Ian Storm Taylor
7d832b5e12
Standardize node matching APIs ( #3327 )
...
* add lowest mode and universal flag to `Editor.nodes`
* add `mode` handling to all transforms
* add extra `Editor.is*` helpers
* change `Editor.previous` to make all optional
* change `Editor.next` to make all optional
* change `Editor.match` to make all optional
* add `Editor.void` helper
* remove non-function match arguments
* remove NodeMatch interface
* change to lowest match by default everywhere
* rename `Editor.match` to `Editor.above`
* use new helpers
* cleanup
* make NodeEntry generic, cleanup
* fix NodeEntry generics
* ensure only ancestors are returned from Editor.above
* add type-narrowing to `Editor.nodes`, remove extras
* remove other Node entry types
* cleanup
* remove `Editor.block` and `Editor.inline` helpers
2019-12-15 19:36:05 -05:00
Ian Storm Taylor
b927fa3a11
Publish
...
- slate-history@0.54.6
- slate-hyperscript@0.54.6
- slate-react@0.54.6
- slate@0.54.6
2019-12-13 19:15:11 -05:00
Ian Storm Taylor
00c5954f41
Publish
...
- slate-history@0.54.5
- slate-hyperscript@0.54.5
- slate-react@0.54.5
- slate@0.54.5
2019-12-13 17:00:38 -05:00
Ian Storm Taylor
f05cefa7a8
Publish
...
- slate-history@0.54.4
- slate-hyperscript@0.54.4
- slate-react@0.54.4
- slate@0.54.4
2019-12-13 16:08:08 -05:00
Ian Storm Taylor
54d8be1172
Publish
...
- slate-history@0.54.3
- slate-hyperscript@0.54.3
- slate-react@0.54.3
- slate@0.54.3
2019-12-13 12:55:48 -05:00
Ian Storm Taylor
c20f771b0a
Publish
...
- slate-history@0.54.2
- slate-hyperscript@0.54.2
- slate-react@0.54.2
- slate@0.54.2
2019-12-12 20:23:18 -05:00
Ian Storm Taylor
262abdc687
Publish
...
- slate-history@0.54.1
- slate-hyperscript@0.54.1
- slate-react@0.54.1
- slate@0.54.1
2019-12-12 17:13:18 -05:00
Ian Storm Taylor
c9ee503828
Publish
...
- slate-history@0.54.0
- slate-hyperscript@0.54.0
- slate-react@0.54.0
- slate@0.54.0
2019-12-12 16:00:14 -05:00
Ian Storm Taylor
6552da940a
Add format_text
command, and editor.marks
state ( #3308 )
...
* add format_text command, refactor command extensions
* update onChange to not receive selection
* update docs
* fix tests
2019-12-12 15:37:55 -05:00
Ian Storm Taylor
26b67578d4
Publish
...
- slate-history@0.53.0
- slate-hyperscript@0.53.0
- slate-react@0.53.0
- slate@0.53.0
2019-12-10 19:02:04 -05:00
Ian Storm Taylor
9d4a9d7a65
Publish
...
- slate-history@0.52.6
- slate-hyperscript@0.52.6
- slate-react@0.52.7
- slate-schema@0.52.6
- slate@0.52.6
2019-12-10 16:18:34 -05:00
Eddy Wilson
5bddee673f
Make Editable accept 'as' prop ( #3288 )
...
* allow passing 'as' prop to render custom component
* Update editable.tsx
2019-12-10 16:09:58 -05:00
Ian Storm Taylor
6b37e46d5c
Publish
...
- slate-react@0.52.6
2019-12-09 20:49:47 -05:00
Eddy Wilson
7f7f7c9e9d
fix trailing new line ( #3280 )
2019-12-09 18:40:29 -05:00
Ian Storm Taylor
bf5cd700ca
Publish
...
- slate-history@0.52.5
- slate-hyperscript@0.52.5
- slate-react@0.52.5
- slate-schema@0.52.5
- slate@0.52.5
2019-12-07 22:57:26 -05:00
Ian Storm Taylor
cfd4c3dd17
Publish
...
- slate-history@0.52.4
- slate-hyperscript@0.52.4
- slate-react@0.52.4
- slate-schema@0.52.4
- slate@0.52.4
2019-12-07 18:14:07 -05:00
Ian Storm Taylor
0856dd7115
Publish
...
- slate-history@0.52.3
- slate-hyperscript@0.52.3
- slate-react@0.52.3
- slate-schema@0.52.3
- slate@0.52.3
2019-12-07 11:47:18 -05:00
Ian Storm Taylor
e1918a7cf4
try to fix rollup ts declarations
2019-12-07 11:40:48 -05:00
Ian Storm Taylor
7fee65b87c
Publish
...
- slate-history@0.52.2
- slate-hyperscript@0.52.2
- slate-react@0.52.2
- slate-schema@0.52.2
- slate@0.52.2
2019-12-06 17:57:37 -05:00
Eddy Wilson
56d798a943
implement isomorphic layout effect ( #3262 )
...
supresses warning on SSR when using useLayoutEffect by falling back
to useEffect when window is undefined
neither useLayoutEffect nor useEffect is run on server
2019-12-06 14:37:50 -05:00
Ian Storm Taylor
1389093f06
Publish
...
- slate-history@0.52.1
- slate-hyperscript@0.52.1
- slate-react@0.52.1
- slate-schema@0.52.1
- slate@0.52.1
2019-12-06 12:39:26 -05:00
Dylan Markow
eeecae023f
Force a zero offset when inside a void node ( #3261 )
2019-12-06 11:13:03 -05:00
Ian Storm Taylor
8653e74f6c
Publish
...
- slate-history@0.52.0
- slate-hyperscript@0.52.0
- slate-react@0.52.0
- slate-schema@0.52.0
- slate@0.52.0
2019-12-05 15:39:58 -05:00
Ian Storm Taylor
c2f962da58
update keywords
2019-12-05 15:38:14 -05:00
Ian Storm Taylor
c34b4b7462
Publish
...
- slate-history@0.51.0
- slate-hyperscript@0.51.0
- slate-react@0.51.0
- slate-schema@0.51.0
- slate@0.51.0
2019-12-05 12:52:03 -05:00
Ian Storm Taylor
f461ae5d45
fix ReactDOM batchedUpdates import
2019-12-05 12:02:41 -05:00
Ian Storm Taylor
7e6f680a1f
update changelogs
2019-12-05 11:44:07 -05:00
Ian Storm Taylor
f3fc2c2a54
Change <Slate>
to a controlled component ( #3216 )
...
* change <Slate> to be a controlled component
* add comment about unstable React API
2019-12-05 11:36:44 -05:00
Ian Storm Taylor
4c03b497d9
remove marks, in favor of text properties ( #3235 )
...
* remove marks, in favor of text properties
* fix lint
* fix more examples
* update docs
2019-12-05 11:21:15 -05:00
Dylan Markow
75e5015cc5
Handle autoFocus after mounting ( #3226 )
2019-12-04 15:01:41 -05:00
Ian Storm Taylor
f72ef80529
Publish
...
- slate-react@0.50.11
- slate-schema@0.50.13
2019-12-03 21:35:23 -05:00
Ziad Beyens
2240ce2274
fix: ts ( #3217 )
2019-12-03 19:11:16 -05:00
Jokcy
12d21eac2d
onCompositionEnd not need to insert text in firfox ( #3202 )
2019-12-03 01:49:23 -05:00
Ian Storm Taylor
20cb063a90
Publish
...
- slate-history@0.50.10
- slate-hyperscript@0.50.8
- slate-react@0.50.10
- slate-schema@0.50.10
- slate@0.50.8
2019-12-02 18:56:42 -05:00
Ian Storm Taylor
fccd0a7502
Publish
...
- slate-history@0.50.9
- slate-hyperscript@0.50.7
- slate-react@0.50.9
- slate-schema@0.50.8
- slate@0.50.7
2019-12-01 23:05:56 -05:00
Ian Storm Taylor
a72d21225e
Publish
...
- slate-react@0.50.8
- slate-schema@0.50.7
2019-12-01 19:21:32 -05:00
Caleb Delnay
52e20da69a
Fix missing callback dependencies in slate-react <Editable /> ( #3192 )
...
* Fix missing callback dependencies
* Fix editable formatting
2019-12-01 19:19:39 -05:00
Ian Storm Taylor
00826407aa
expose render prop types, refactor default renderers
2019-12-01 17:56:56 -05:00
Ian Storm Taylor
bd07635b1e
Publish
...
- slate-history@0.50.7
- slate-hyperscript@0.50.6
- slate-react@0.50.7
- slate-schema@0.50.6
- slate@0.50.6
2019-12-01 16:22:26 -05:00
Ian Storm Taylor
490acc502d
simplify dist folder structure
2019-12-01 16:18:57 -05:00
Ian Storm Taylor
46f3be5319
Publish
...
- slate-history@0.50.6
- slate-hyperscript@0.50.5
- slate-react@0.50.6
- slate-schema@0.50.5
- slate@0.50.5
2019-12-01 14:48:53 -05:00
Ziad Beyens
d99629517d
fix: ts error ( #3180 )
...
autoFocus was not an allowed property
2019-12-01 10:45:18 -05:00
Ziad Beyens
b4c15e13c1
fix: ts error ( #3179 )
...
This JSX tag's 'children' prop expects a single child of type 'Element', but multiple children were provided.
2019-12-01 10:44:26 -05:00
Ian Storm Taylor
f979332ea6
Publish
...
- slate-history@0.50.4
- slate-hyperscript@0.50.4
- slate-react@0.50.5
- slate-schema@0.50.4
- slate@0.50.4
2019-11-30 01:41:40 -05:00
Ian Storm Taylor
6bbecb1a9c
Publish
...
- slate-history@0.50.3
- slate-hyperscript@0.50.3
- slate-react@0.50.4
- slate-schema@0.50.3
- slate@0.50.3
2019-11-30 01:13:08 -05:00
Ian Storm Taylor
fbd2a7154b
Publish
...
- slate-history@0.50.2
- slate-hyperscript@0.50.2
- slate-react@0.50.3
- slate-schema@0.50.2
- slate@0.50.2
2019-11-29 08:10:57 -05:00
Ian Storm Taylor
75a0a4a703
add sideEffects: false, closes #2787
2019-11-29 08:01:17 -05:00
Ian Storm Taylor
57d9263088
fix editing commands in firefox, closes #3141
2019-11-29 07:58:43 -05:00
Ian Storm Taylor
9db1ef5b7a
Publish
...
- slate-history@0.50.1
- slate-hyperscript@0.50.1
- slate-react@0.50.2
- slate-schema@0.50.1
- slate@0.50.1
2019-11-29 07:39:58 -05:00
Ian Storm Taylor
e1458c8c1b
fix decorate logic
2019-11-29 07:35:12 -05:00