1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 01:02:31 +01:00

984 Commits

Author SHA1 Message Date
Ian Storm Taylor
90d40fd764
change schema plugin to be returned from function (#3252)
* change schema plugin to be returned from function

* fix forced-layout example
2019-12-05 15:29:02 -05:00
Ian Storm Taylor
be1ce2e099
fix schema properties to be exhaustive, add leaves (#3251) 2019-12-05 15:16:49 -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
6627ba4b94
fix universal matching mode for marks (#3230)
* fix universal matching mode for marks

* fix lint
2019-12-04 12:57:15 -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
Dylan Markow
f355f8a6f0 Fix child_min_invalid checks (#3219) 2019-12-03 21:22:05 -05:00
Ziad Beyens
2240ce2274 fix: ts (#3217) 2019-12-03 19:11:16 -05:00
Ian Storm Taylor
687f25df4b add more schema tests 2019-12-03 15:32:09 -05:00
Jokcy
12d21eac2d onCompositionEnd not need to insert text in firfox (#3202) 2019-12-03 01:49:23 -05:00
Ian Storm Taylor
020bb5fb1c Publish
- slate-schema@0.50.12
2019-12-03 00:14:55 -05:00
Ian Storm Taylor
ed2b84ca7a fix parent-based schema rules with multiple rules present 2019-12-02 23:23:30 -05:00
Ian Storm Taylor
ade90ca007 Publish
- slate-schema@0.50.11
2019-12-02 22:23:24 -05:00
Ian Storm Taylor
d92d2257e1 fix parent schema rule normalization 2019-12-02 22:10:05 -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
ea62ad9e44 fix inline matching, add matching arrays, closes #3174 #3191 2019-12-02 18:54:22 -05:00
Ian Storm Taylor
c06f82c5e8 add insertText parent path test 2019-12-02 16:33:55 -05:00
Ian Storm Taylor
258afae442 add marks empty schema test 2019-12-02 15:04:58 -05:00
Ian Storm Taylor
1d0711b723 Publish
- slate-schema@0.50.9
2019-12-02 12:13:41 -05:00
Ian Storm Taylor
cba6be7c24 fix child_* schema errors to reference child, closes #3197 2019-12-02 11:51:53 -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
00d0b36aa4 allow Editor.insertText to take all location types 2019-12-01 22:53:12 -05:00
Ian Storm Taylor
b2d0255097 Publish
- slate-history@0.50.8
2019-12-01 20:20:43 -05:00
Ian Storm Taylor
169bfe855e fix return type of withHistory 2019-12-01 20:18:57 -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
Ziad Beyens
0dd3d17cdb fix: type (#3190) 2019-12-01 17:58:47 -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
Ian Storm Taylor
0b27f04636 add match/mode to all Editor node iterators, cleanup iterators, closes #3186 2019-12-01 14:47:07 -05:00
Wee
434ce21cec feat: allow MarkTransforms methods to take a single mark (resolve #3175) (#3183) 2019-12-01 13:49:29 -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
012d5d5086 Publish
- slate-history@0.50.5
2019-11-30 18:27:50 -05:00
Wee
72d78f5a69 fix: lost redos when trigger set_selection (fix #3140) (#3176)
* fix: lost redos when trigger set_selection (fix #3140)

* Update with-history.ts
2019-11-30 17:21:24 -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
76afb00631 fix lint 2019-11-30 01:40:01 -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
68569f286e improve Editor.marks and Editor.nodes abstraction 2019-11-29 23:15: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