Maria Jaramillo
93fe251517
Convert Slate tests to TypeScript ( #3784 )
...
* changed to tsx
* slate tests
* finished making typescript tests
* linting
* linting
* reverted slate-hyperscript files to jsx and changed edlint config
* removed extra file
* Update package.json
* Update package.json
* deleted { file
* changed to tsx
* slate tests
* finished making typescript tests
* linting
* linting
* reverted slate-hyperscript files to jsx and changed edlint config
* removed extra file
* Update package.json
* Update package.json
* deleted { file
* rebase
* removed ~ files
* changed yarn
2020-07-14 13:47:47 -04:00
Nikolay Martynenko
97dbab13a8
Trigger editor.insertText by paste too ( #3776 )
2020-07-10 09:31:25 -07:00
Mitchell Busby
68acd6b876
Resolves iamstormtaylor/slate#3778: Check if editable target before handling paste event ( #3779 )
2020-07-10 09:30:26 -07:00
Maria Jaramillo
a35b8737b7
syntax highlighting ( #3762 )
...
* syntax highlighting
* Delete package-lock.json
* Update package.json
* Update package.json
* Delete syntax-highlighting.js
* Update [example].js
* Update [example].js
* Update [example].js
* added correct file
* linting
* Update site/examples/code-highlighting.js
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update site/examples/code-highlighting.js
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* Update site/examples/code-highlighting.js
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
* updated pull request with some linting
* moved getLength fcn
Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-07-09 18:23:56 -04:00
CameronAckermanSEL
958189bc4a
v0.58.4
v0.58.4
2020-07-07 18:17:33 -07:00
Jason Tamulonis
b1f291ef88
Remove legacy target operation property ( #3743 )
2020-07-02 08:25:13 -07:00
Jatin Shridhar
1e495a5cde
minor elaboration on decorations ( #3747 )
...
* minor elaboration on decorations
highlights the difference with marks
* instead of pronoun use the word "Decorations"
2020-07-02 08:21:58 -07:00
wendellhu
c8a7883b2a
doc: fix parenthesis missing ( #3754 )
2020-07-02 08:21:20 -07:00
Frederik Eychenié
32e120af19
docs: remove unused "selection" from code example ( #3731 )
2020-06-13 09:49:00 -07:00
Frederik Eychenié
0954ffc191
docs: add GraphCMS to products using slate ( #3732 )
2020-06-13 09:48:12 -07:00
Dylan Markow
a5720b289f
Fix placeholder text alignment ( #3724 )
...
Using verticalAlign: text-top was causing a slight height change when entering actual content.
2020-06-05 11:44:35 -07:00
Dan
788a8cefdc
fix older chrome support ( #3722 )
...
* fix older chrome support
* fix chrome regex
2020-06-05 00:02:40 -07:00
Jack Hanford
5ba551ad48
Update 10-normalizing.md ( #3721 )
...
Add `Transforms` to slate import so code runs when copy/pasted 😃
2020-06-04 18:36:30 -07:00
CameronAckermanSEL
ca126fbb39
v0.58.3
v0.58.3
2020-06-03 18:24:33 -07:00
Jason Tamulonis
994514b415
Fix path transform for sibling ancestor moves ( #3712 )
...
* Fix path transform for sibling ancestor moves
* Add some more tests
2020-06-03 13:33:18 -07:00
Jamie Talbot
7c8eb8e80b
Allow void nodes to be copied. Fixes #3665 ( #3716 )
2020-06-03 09:34:28 -07:00
anatolzak
44675c2080
Overrode Mark Styles in Placeholder ( #3703 )
...
* disabled user select on placeholder
* fixed css property value without quotes
* overrode mark styles in placeholder
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-28 14:56:41 -07:00
Jason Tamulonis
4e7327d238
Fix inverse of sibling move operation ( #3691 )
...
* Fix path transform against sibling move operations
* Fix my jibberish
* Add some comments
2020-05-28 14:54:05 -07:00
Jason Tamulonis
9054d3a381
Fix path transform against sibling move operations ( #3675 )
2020-05-27 17:19:41 -07:00
CameronAckermanSEL
97a7e8a469
v0.58.2
v0.58.2
2020-05-27 08:55:33 -07:00
anatolzak
20d7dd41b7
disabled user select on placeholder ( #3701 )
...
* disabled user select on placeholder
* fixed css property value without quotes
2020-05-27 08:46:02 -07:00
Mitchell Busby
26fbc1dc41
Fix scrolling boundary detection (see #3463 ) ( #3678 )
2020-05-20 17:32:56 -07:00
Nikolay Martynenko
31709160a3
Fix selection, if click event fired after ( #3650 )
2020-05-20 17:26:21 -07:00
Matthew Steedman
c1760127f1
Fix Editable onPaste handler not getting called ( #3670 )
2020-05-20 17:22:39 -07:00
Ziad Beyens
557c51e7d4
slate-plugins-next ( #3692 )
...
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-20 17:03:35 -07:00
Scott Parker
76acd9c449
Remove Outline since they switched to ProseMirror ( #3694 )
2020-05-20 17:01:56 -07:00
Ali Muqaddas
9834fe4e95
Fix: ESlint Error ( #3688 )
...
Value is defined in the upper scope
2020-05-17 08:51:07 -07:00
Jolene Langlinais
c00f246c7e
docs(resources): adjust editor link ( #3687 )
...
Adjusting for the new monorepo for Accord Project Markdown Editor.
2020-05-14 23:12:29 -07:00
Kevin Simons
3c80c3e88b
Fix a few issues with the documentation ( #3679 )
...
* Fix a few issues with the documentation
* Add Kitemaker to the list of sites using Slate
2020-05-13 08:56:24 -07:00
CameronAckermanSEL
aabb9b50bd
v0.58.1
v0.58.1
2020-05-11 16:31:12 -07:00
Cameron Ackerman
07c375f82e
Bugfix/fix bundles ( #3673 )
...
* fix index.js main bundles to be commonjs instead of modules
* Change rm -rf to rimraf to be cross os compatible
* add rimraf as dependency
Co-authored-by: damareyoh <chackerman@wsu.edu>
2020-05-11 10:18:00 -07:00
whyour
08f7ef588c
fix hovering toolbar format hotkeys ( #3667 )
2020-05-10 23:01:35 -07:00
Ted Chen
a1ce4477c3
Update codepen in ISSUE_TEMPLATE.md for v0.58.0 ( #3659 )
...
Updates the codepen in the ISSUE_TEMPLATE.md to be a working example of v0.58.0
2020-05-06 21:47:52 -07:00
CameronAckermanSEL
8737f0411a
v0.58.0
v0.58.0
2020-05-05 18:50:22 -07:00
CameronAckermanSEL
44c4b7dc8d
updated changelog for 0.58.0
2020-05-05 18:41:45 -07:00
Cameron Ackerman
f4ee75d13d
fix issue #3651 where initial click on a void block can cause the editor to crash ( #3654 )
...
* fix issue #3651 where initial click on a void block can cause the editor to crash
* simplify non null cast for editor to element weakmap retrieve
* get prettier to shut up
* fixed comment
2020-05-05 10:31:01 -07:00
Nikolay Martynenko
e25c30c7a8
Fixing selection across a void node (i.e. mention or image) with the mouse ( #3649 )
...
* Fixing selection across a void node (i.e. mention or image) with the mouse.
* Fixing selection across a void nodes via mouse
2020-05-04 17:49:37 -07:00
CameronAckermanSEL
d82ffe49a5
Revert "Revert "TypeScript Improvement: Use [key: string]: unknown
, not [key: string]: any
( #3565 )""
...
This reverts commit 81d2f9bb8f6a78590d7868deb289ec36fb208629.
2020-05-04 17:38:14 -07:00
CameronAckermanSEL
036ee664af
v0.57.3
v0.57.3
2020-05-04 17:36:43 -07:00
CameronAckermanSEL
81d2f9bb8f
Revert "TypeScript Improvement: Use [key: string]: unknown
, not [key: string]: any
( #3565 )"
...
This reverts commit d8adf51add861c81b51e969de704d93a51a8990f.
2020-05-04 17:33:39 -07:00
Tim Buckley
d8adf51add
TypeScript Improvement: Use [key: string]: unknown
, not [key: string]: any
( #3566 )
...
* Change all [key:string]:any -> unknown
Skipping slate-hyperscript, since it seems to be an appropriate use of key: any
* Minor typo fix docs/api/locations
* Check/assert unknown attributes when needed
2020-05-04 17:16:03 -04:00
Jolene Langlinais
aacfde3bad
docs(libraries): init docs for slate sub-libraries ( #3645 )
...
* docs(libraries): init docs for slate sub-libraries
Signed-off-by: irmerk <jolenelanglinais@gmail.com>
* docs(libraries): reword slate history summary
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-01 12:16:36 -07:00
Brent Farese
217b84ff1f
Update wrapNodes to use lowest mode and create passing test. ( #3579 )
...
* Update wrapNodes to use lowest mode and create passing test.
* Add .idea to .gitignore.
* Restore wrapNodes/inline/inline-across.js test.
Co-authored-by: Brent Farese <brentfarese@gmail.com>
2020-04-30 15:11:35 -07:00
Jamie Talbot
ddef719467
Make setFragmentData and getFragment pluggable in ReactEditor ( #3620 )
2020-04-27 12:05:28 -07:00
Cameron Ackerman
7369bb9e97
upgrade next to 9.3.5 to fix security finding ( #3640 )
2020-04-26 16:58:34 -07:00
dependabot[bot]
b3f688f151
Bump acorn from 5.7.3 to 5.7.4 ( #3548 )
...
Bumps [acorn](https://github.com/acornjs/acorn ) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases )
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-26 12:23:38 -07:00
喵喵喵
cc57894f98
fix(unmount): add destroyed flag, prevent apply change when component… ( #3553 )
...
* fix(unmount): add destroyed flag, prevent apply change when component has been destroyed.
* style(format): update format
* refactor(unmount): remove destroyed flag, use effect return callback to destroy onchange event
* styles(format): format styles
Co-authored-by: wangchao <wangchao08@kuaishou.com>
2020-04-26 12:19:25 -07:00
David Hrdlicka
67c4b3b330
Prioritize using Selection over Range to preserve direction ( #3594 )
...
accout for zero-width nodes
2020-04-25 22:23:52 -07:00
CameronAckermanSEL
4f6ca7bc62
v0.57.2
v0.57.2
2020-04-24 16:26:26 -07:00
Jolene Langlinais
970c2aac13
docs(concepts): include normalizing inline default behavior ( #3637 )
...
Signed-off-by: irmerk <jolenelanglinais@gmail.com>
2020-04-24 08:28:21 -07:00