Ian Storm Taylor
a75c06b501
Publish
...
- slate-base64-serializer@0.2.89
- slate-html-serializer@0.7.28
- slate-hyperscript@0.11.19
- slate-plain-serializer@0.6.28
- slate-prop-types@0.5.19
- slate-react-placeholder@0.1.7
- slate-react@0.21.10
- slate@0.44.4
slate@0.44.4
slate-react@0.21.10
slate-react-placeholder@0.1.7
slate-prop-types@0.5.19
slate-plain-serializer@0.6.28
slate-hyperscript@0.11.19
slate-html-serializer@0.7.28
slate-base64-serializer@0.2.89
2018-11-09 17:27:30 -08:00
Ian Storm Taylor
6cd1c0968e
fix lint
2018-11-09 17:25:45 -08:00
Ian Storm Taylor
b01992474c
add child
to child_max_invalid
schema errors
2018-11-09 17:24:02 -08:00
Ian Storm Taylor
f13571cb65
Publish
...
- slate-base64-serializer@0.2.88
- slate-html-serializer@0.7.27
- slate-hyperscript@0.11.18
- slate-plain-serializer@0.6.27
- slate-prop-types@0.5.18
- slate-react-placeholder@0.1.6
- slate-react@0.21.9
- slate@0.44.3
slate@0.44.3
slate-react@0.21.9
slate-react-placeholder@0.1.6
slate-prop-types@0.5.18
slate-plain-serializer@0.6.27
slate-hyperscript@0.11.18
slate-html-serializer@0.7.27
slate-base64-serializer@0.2.88
2018-11-09 16:41:50 -08:00
Ian Storm Taylor
7a31faa3f6
remove code coverage reporting
2018-11-09 16:39:56 -08:00
Ian Storm Taylor
b33605ec06
fix schema normalization bug for child_max_invalid
2018-11-09 16:39:33 -08:00
Ian Storm Taylor
03d531ba77
fix path transformation bug when moving exactly
2018-11-09 16:39:11 -08:00
Ian Storm Taylor
f3922ed2f7
Publish
...
- slate-base64-serializer@0.2.87
- slate-html-serializer@0.7.26
- slate-hyperscript@0.11.17
- slate-plain-serializer@0.6.26
- slate-prop-types@0.5.17
- slate-react-placeholder@0.1.5
- slate-react@0.21.8
- slate@0.44.2
slate@0.44.2
slate-react@0.21.8
slate-react-placeholder@0.1.5
slate-prop-types@0.5.17
slate-plain-serializer@0.6.26
slate-hyperscript@0.11.17
slate-html-serializer@0.7.26
slate-base64-serializer@0.2.87
2018-11-09 08:31:56 -08:00
Dundercover
3f0f55ff38
Do not show placeholder when document contains multiple text nodes ( #2403 )
2018-11-09 08:29:22 -08:00
云无心
65d662fea1
when document is very big ,toArray
is very time-consuming ( #2404 )
...
* when document is very big ,`toArray` is very time-consuming
* when document is very big ,`toArray` is very time-consuming
2018-11-09 08:28:11 -08:00
Ian Storm Taylor
6ddba0ea35
Publish
...
- slate-base64-serializer@0.2.86
- slate-html-serializer@0.7.25
- slate-hyperscript@0.11.16
- slate-plain-serializer@0.6.25
- slate-prop-types@0.5.16
- slate-react-placeholder@0.1.4
- slate-react@0.21.7
- slate@0.44.1
slate@0.44.1
slate-react@0.21.7
slate-react-placeholder@0.1.4
slate-prop-types@0.5.16
slate-plain-serializer@0.6.25
slate-hyperscript@0.11.16
slate-html-serializer@0.7.25
slate-base64-serializer@0.2.86
2018-11-08 15:40:26 -08:00
Dundercover
4df88cfaeb
Add node.isNodeInRange
( #2401 )
...
* Add `node.isNodeInRange`
* Add tests for `node.isNodeInRange`
2018-11-08 15:38:18 -08:00
Dundercover
13107b0c43
Add optional id
prop to the Editor
component ( #2402 )
2018-11-08 15:36:44 -08:00
Dundercover
eb79c3dbff
Add path type change to changelog entry ( #2400 )
2018-11-08 15:36:05 -08:00
Ian Storm Taylor
7a47a52e29
Publish
...
- slate-base64-serializer@0.2.85
- slate-html-serializer@0.7.24
- slate-hyperscript@0.11.15
- slate-plain-serializer@0.6.24
- slate-prop-types@0.5.15
- slate-react-placeholder@0.1.3
- slate-react@0.21.6
- slate@0.44.0
slate@0.44.0
slate-react@0.21.6
slate-react-placeholder@0.1.3
slate-prop-types@0.5.15
slate-plain-serializer@0.6.24
slate-hyperscript@0.11.15
slate-html-serializer@0.7.24
slate-base64-serializer@0.2.85
2018-11-08 13:17:10 -08:00
Ian Storm Taylor
bd3399f362
update changelog
2018-11-08 13:14:11 -08:00
Krzysztof Mędrzycki
746b63db7e
Improve schema validation for nodes and min/max ( #2388 )
...
* Better schema violations for underflow and overflow
* Rename child_required_under/overflow to child_min/max_invalid
* Remove tailing whitespace
* Add tests to cover more branches
* Insert missing comma
2018-11-08 13:05:59 -08:00
Dundercover
698edc24d8
Add node.getLeafXAtRange
and node.getRootXAtRange
( #2399 )
...
#### Is this adding or improving a _feature_ or fixing a _bug_?
Adding and improving
#### What's the new behavior?
Renames the following node methods (deprecating the old ones):
- `getBlocksAtRangeAsArray` -> `getLeafBlocksAtRangeAsArray`
- `getBlocksAtRange` -> `getLeafBlocksAtRange`
- `getInlinesAtRangeAsArray` -> `getLeafInlinesAtRangeAsArray`
- `getInlinesAtRange` -> `getLeafInlinesAtRange`
Adds the following nodes methods:
- `getRootBlocksAtRange`
- `getRootInlinesAtRange`
#### How does this change work?
Have not changed the implementation of the renamed methods. Added tests for both renamed methods and added methods.
#### Have you checked that...?
* [x] The new code matches the existing patterns and styles.
* [x] The tests pass with `yarn test`.
* [x] The linter passes with `yarn lint`. (Fix errors with `yarn prettier`.)
* [x] The relevant examples still work. (Run examples with `yarn watch`.)
#### Does this fix any issues or need any specific reviewers?
Discussed in #2351
2018-11-08 13:04:27 -08:00
Dundercover
e6d611d726
Add node.getNodesAtRange
( #2398 )
...
* Add `Node.getNodesAtRange`
* Add tests for `Node.getNodesAtRange`
2018-11-08 11:31:54 -08:00
Ian Storm Taylor
f2f97e502e
Publish
...
- slate-react@0.21.5
slate-react@0.21.5
2018-11-07 16:47:24 -08:00
Ian Storm Taylor
e493905f29
fix focusing across multiple editors ( #2396 )
2018-11-07 16:45:01 -08:00
Gersom van Ginkel
990d37b694
Avoid async commands causing rerenders after unmount. ( #2395 )
...
* When the component unmounts, make sure async commands don't trigger react updates.
* Eslint fix
2018-11-07 11:34:15 -08:00
Irwan Fario Subastian
8d616b1f98
fix softbreak at the end of the leaf ( #2389 )
2018-11-06 18:25:51 -08:00
Ian Storm Taylor
312a4ce1a5
Publish
...
- slate-react@0.21.4
slate-react@0.21.4
2018-11-06 14:04:11 -08:00
Ian Storm Taylor
836ab1d494
fix findDOMPoint for non-empty void node offsets
2018-11-06 14:01:55 -08:00
Ian Storm Taylor
9446bcbf6d
Publish
...
- slate-react@0.21.3
slate-react@0.21.3
2018-11-06 13:53:36 -08:00
Ian Storm Taylor
07ecbc69c9
fix findDOMPoint for void nodes with content length
2018-11-06 13:51:52 -08:00
Ian Storm Taylor
60e897599f
Publish
...
- slate-base64-serializer@0.2.84
- slate-html-serializer@0.7.23
- slate-hyperscript@0.11.14
- slate-plain-serializer@0.6.23
- slate-prop-types@0.5.14
- slate-react-placeholder@0.1.2
- slate-react@0.21.2
- slate@0.43.7
slate@0.43.7
slate-react@0.21.2
slate-react-placeholder@0.1.2
slate-prop-types@0.5.14
slate-plain-serializer@0.6.23
slate-hyperscript@0.11.14
slate-html-serializer@0.7.23
slate-base64-serializer@0.2.84
2018-11-06 12:54:58 -08:00
Ian Storm Taylor
7079433ac1
fix findDOMPoint behavior for void nodes
2018-11-06 12:53:05 -08:00
CameronAckermanSEL
88aa5a5cc8
added the schema reference to the list of documents for gitbook, renamed Readme.md to Summary to be consistent with conventions. ( #2387 )
2018-11-06 12:15:43 -08:00
Eric Edem
3093b0cf61
fix: support mobile devices in examples ( #2380 )
...
This change adds the standard meta tag for supporting mobile devices. Now when viewing on mobile the viewport width will adapt to the device.
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag#Viewport_basics
2018-11-05 17:37:04 -08:00
Dundercover
7fdfce1289
Fix broken versions example ( #2379 )
2018-11-05 17:30:30 -08:00
Dundercover
a8972f3f3d
Add documentation for the Operation.data
property ( #2377 )
...
* Add documentation for the `Operation.data` property
* Fix typo in documentation for `Operation` model
2018-11-05 08:29:18 -08:00
Dundercover
b773d44ae9
Data property for Operation model ( #2373 )
...
* Add possibility to add arbitrary data to operations
Using a data property similar to the node models (block, inline, etc)
* Fix broken example 'Syncing Operations'
Using data property on operations that are applied
2018-11-04 21:02:05 -08:00
Dundercover
220dd476e3
Check if inline ancestor exists before using it in wrapInlineAtRange ( #2374 )
2018-11-04 20:58:45 -08:00
Ian Storm Taylor
24af6113dc
Publish
...
- slate-react-placeholder@0.1.1
- slate-react@0.21.1
slate-react@0.21.1
slate-react-placeholder@0.1.1
2018-11-02 17:42:51 -07:00
Ian Storm Taylor
456d8f570f
fix slate-react-* peerDependencies
2018-11-02 17:39:29 -07:00
Ian Storm Taylor
bb6d39edb6
Publish
...
- slate-base64-serializer@0.2.83
- slate-html-serializer@0.7.22
- slate-hyperscript@0.11.13
- slate-plain-serializer@0.6.22
- slate-prop-types@0.5.13
- slate-react-placeholder@0.1.0
- slate-react@0.21.0
- slate@0.43.6
slate@0.43.6
slate-react@0.21.0
slate-react-placeholder@0.1.0
slate-prop-types@0.5.13
slate-plain-serializer@0.6.22
slate-hyperscript@0.11.13
slate-html-serializer@0.7.22
slate-base64-serializer@0.2.83
2018-11-02 17:07:12 -07:00
Ian Storm Taylor
a09c3c2fdf
Remove renderPlaceholder
( #2370 )
...
* add placeholder plugin in slate-react
* remove renderPlaceholder logic
* extract placeholder into a plugin
* remove other old placeholder-based logic
* update changelogs
2018-11-02 17:04:20 -07:00
Ian Storm Taylor
0cf94c73c9
Publish
...
- slate-base64-serializer@0.2.82
- slate-html-serializer@0.7.21
- slate-hyperscript@0.11.12
- slate-plain-serializer@0.6.21
- slate-prop-types@0.5.12
- slate-react@0.20.8
- slate@0.43.5
slate@0.43.5
slate-react@0.20.8
slate-prop-types@0.5.12
slate-plain-serializer@0.6.21
slate-hyperscript@0.11.12
slate-html-serializer@0.7.21
slate-base64-serializer@0.2.82
2018-11-02 16:18:24 -07:00
Ian Storm Taylor
8fce9b18c9
Merge branch 'master' of github.com:ianstormtaylor/slate
2018-11-02 16:14:20 -07:00
Ian Storm Taylor
f438f12d5b
fix peer dependency ranges
2018-11-02 16:14:14 -07:00
Yevhen
08fae3f67c
Fix typo in docs ( #2369 )
2018-11-02 08:17:34 -07:00
Ian Storm Taylor
562f7be4b6
Publish
...
- slate-react@0.20.7
slate-react@0.20.7
2018-11-01 19:29:44 -07:00
Slapbox
0436ad4a64
Skip operations on child nodes if !node.nodes.size ( #2365 )
...
* Skip operations on child nodes if !node.nodes.size
Avoid running decoration and text decoration related functions on child nodes that don't exist.
* Uses isLeafBlock
* Restores the original order of statements
2018-11-01 18:26:46 -07:00
Ian Storm Taylor
fac8228f23
Publish
...
- slate-base64-serializer@0.2.81
- slate-html-serializer@0.7.20
- slate-hyperscript@0.11.11
- slate-plain-serializer@0.6.20
- slate-prop-types@0.5.11
- slate-react@0.20.6
- slate@0.43.4
slate@0.43.4
slate-react@0.20.6
slate-prop-types@0.5.11
slate-plain-serializer@0.6.20
slate-hyperscript@0.11.11
slate-html-serializer@0.7.20
slate-base64-serializer@0.2.81
2018-11-01 17:59:52 -07:00
Ian Storm Taylor
6e18719f3d
Fix delete intent ( #2367 )
...
* fix delete intent
* refactor deleteAtRange helper logic
* cleanup delete at range commands
* cleanup
2018-11-01 17:57:52 -07:00
Dylan
ea3443eb42
Fix a typo ( #2362 )
2018-11-01 12:15:13 -07:00
Eric Edem
924f84d597
fix: update mentions example to slate 0.43 ( #2363 )
...
It also works in Safari now :)
2018-11-01 12:14:44 -07:00
Ian Storm Taylor
d5bb44383d
Publish
...
- slate-base64-serializer@0.2.80
- slate-html-serializer@0.7.19
- slate-hyperscript@0.11.10
- slate-plain-serializer@0.6.19
- slate-prop-types@0.5.10
- slate-react@0.20.5
- slate@0.43.3
slate@0.43.3
slate-react@0.20.5
slate-prop-types@0.5.10
slate-plain-serializer@0.6.19
slate-hyperscript@0.11.10
slate-html-serializer@0.7.19
slate-base64-serializer@0.2.80
2018-10-31 14:33:50 -07:00