1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 11:44:55 +01:00

1803 Commits

Author SHA1 Message Date
Ian Storm Taylor
33ddd30486 0.22.12 v0.22.12 2017-09-07 16:03:28 -07:00
Ian Storm Taylor
1e519fb4e6 Cleanup onSelect comments (#1086)
* remove extra unnecessary onSelect logic

* re-add with comment

* fix comments and logic more

* Update content.js
2017-09-07 16:00:09 -07:00
Per-Kristian Nordnes
59c538c2aa Remove an incorrect selection manipulation from Content (#1085) 2017-09-07 14:53:41 -07:00
Ian Storm Taylor
1c0b068023 0.22.11 v0.22.11 2017-09-07 14:35:22 -07:00
Ian Storm Taylor
16d29db8cb add isSelected prop, cleanup sCU, add custom component reference (#1084)
* add isSelected prop, cleanup sCU, add custom component reference, fixes #1080

* fix custom node reference

* update custom node reference

* remove sCU check for text-only children
2017-09-07 14:33:34 -07:00
Ian Storm Taylor
d8004c33b1 0.22.10 v0.22.10 2017-09-07 12:12:55 -07:00
Ian Storm Taylor
d69f879fe1 fix empty selections active marks logic (#1083) 2017-09-07 12:09:49 -07:00
Ian Storm Taylor
cf0745a178 refactor delete at range, fixing edge cases (#1082) 2017-09-07 12:06:42 -07:00
Ian Storm Taylor
976af2cda1 deprecate onDocumentChange and onSelectionChange, fixes #614 (#1081) 2017-09-07 11:51:45 -07:00
Ian Storm Taylor
c3caa2878c 0.22.9 v0.22.9 2017-09-07 09:19:30 -07:00
Per-Kristian Nordnes
86c69f9d8d Fix bug with updating a deselected selection and void block selection issues (#1075)
* If the selection has no anchorKey and focusKey (deselected) do nothing

* Fix bug related to selecting void blocks and non-void-blocks with a trailing void-block

* Update content.js

* Update content.js
2017-09-07 09:18:04 -07:00
Per-Kristian Nordnes
697a771014 Fix bugs in deleteAtRange (#1072)
* Fix bug in deleteAtRange when selecting part of non-void block followed by void block

* Fix bug in deleteAtRange when selecting from an inline void node

* Fix bug with deleteAtRange if a whole startBlock was selected, fixes #1021
2017-09-07 09:15:25 -07:00
Ian Storm Taylor
01bc6944bd fix change logic in embeds example, fixes #1074 (#1078) 2017-09-07 09:04:17 -07:00
Ian Storm Taylor
2b168541dc restrict globals that are permitted for linting (#1077) 2017-09-07 08:54:35 -07:00
Per-Kristian Nordnes
ad24622e88 Add missing import (#1071) 2017-09-07 08:11:31 -07:00
Ian Storm Taylor
3257643ba0 0.22.8 v0.22.8 2017-09-06 19:56:14 -07:00
Ryan Yurkanin
f6d5f9d6dd sCU Changes for #1058 (#1064)
* changing up should component update

* checking if it has nodes

* Update node.js

* more flexible checking
2017-09-06 19:54:54 -07:00
Ian Storm Taylor
4e945e2977 0.22.7 v0.22.7 2017-09-06 19:03:38 -07:00
Ian Storm Taylor
0db3ac7222 fix get*AtRange methods for unset ranges, fixes #1002 (#1068) 2017-09-06 18:58:47 -07:00
Ian Storm Taylor
ca514eee66 0.22.6 v0.22.6 2017-09-06 18:43:00 -07:00
Ian Storm Taylor
f9e3d08fe3 fix isList and isSet methods for empty case (#1065) 2017-09-06 18:27:18 -07:00
Ian Storm Taylor
53a19c2d0d revert changes to up/down behavior near void nodes, fixes #1063 (#1066) 2017-09-06 18:14:35 -07:00
David Gertmenian-Wong
a75899f57a Update walkthrough docs to use change object instead of state (#1062) 2017-09-06 17:51:40 -07:00
Ian Storm Taylor
c0b4a30ce6 0.22.5 v0.22.5 2017-09-06 15:29:17 -07:00
Ian Storm Taylor
e51cf5e028 cleanup many things in ./utils (#1061) 2017-09-06 15:27:55 -07:00
Ian Storm Taylor
a5ce937986 0.22.4 v0.22.4 2017-09-06 14:26:31 -07:00
Ian Storm Taylor
8d47f8e8b6 refactor to eliminate ./utils/normalize, fixes #372 (#1060)
* refactor to eliminate ./utils/normalize, fixes #372

* fix mark default value
2017-09-06 14:24:48 -07:00
Ian Storm Taylor
e77cae7bf7 0.22.3 v0.22.3 2017-09-06 11:55:59 -07:00
Ian Storm Taylor
bdb8234b8d fix pasting plain text, fixes #586 fixes #795 (#1059) 2017-09-06 11:54:33 -07:00
Ryan Yurkanin
2632c82228 Fix hasUndos and hasRedos (#1053)
* tiny fix for hasUndos/hasRedos computed values

* clear redos when saving while redos are on the history stack

* Update history.js
2017-09-06 11:51:18 -07:00
Peter Klipfel
0ab70fd1af fixes errors for basic app with installation (#1056)
The old onChange function caused a bunch of `Uncaught TypeError: _this.state.state.change is not a function` errors. Adding the object destructure to the arguments fixes this.
2017-09-06 11:49:50 -07:00
Ian Storm Taylor
1075e67830 fix state accessors, closes #1046 (#1055) 2017-09-06 10:57:15 -07:00
Ian Storm Taylor
025a280171 cleanup at-current-range transforms (#1054) 2017-09-06 10:27:31 -07:00
Ian Storm Taylor
de736dd57d 0.22.2 v0.22.2 2017-09-06 09:36:29 -07:00
Ian Storm Taylor
d7b01f705a Merge branch 'master' of github.com:ianstormtaylor/slate 2017-09-06 09:35:12 -07:00
Ian Storm Taylor
1c03d2a5af update docs 2017-09-06 09:35:08 -07:00
Tobias Andersen
7eed37164b Make sure nodes always know if they're selected (#1029)
* Make sure nodes update when their selection change

(cherry picked from commit 3e8744409ea94554faafa1e72415cdfb54b4bc78)

* Update examples of showing selected blocks nodes
2017-09-06 09:07:46 -07:00
Ian Storm Taylor
f0325a9afb 0.22.1 v0.22.1 2017-09-06 09:03:30 -07:00
Ian Storm Taylor
0e6008e554 Merge branch 'master' of github.com:ianstormtaylor/slate 2017-09-06 09:02:11 -07:00
Ian Storm Taylor
7324ab715f add change.setOperationFlag for setting the save and merge flags 2017-09-06 09:02:04 -07:00
Ryan Yurkanin
609ab2e198 Add Linking to Change in docs (#1052)
* fixing a breaking change in node/mark properties

* Fixing gitbook linking to change.md
2017-09-06 08:58:26 -07:00
Ian Storm Taylor
01a1699a08 0.22.0 v0.22.0 2017-09-05 18:31:37 -07:00
Ian Storm Taylor
a8651d66a8 update changelog 2017-09-05 18:27:23 -07:00
Ian Storm Taylor
367a22c39a fix mark operation range creation 2017-09-05 18:24:21 -07:00
Ian Storm Taylor
6f3f8ee685 update changelog 2017-09-05 18:24:08 -07:00
Ian Storm Taylor
7470a6dd53 Expose transforms (#836)
* refactor to extract applyOperation util

* change handlers to receive transform instead of state

* change onChange to receive a transform, update rich-text example

* fix stack iterationg, convert check-list example

* convert code-highlighting, embeds, emojis examples

* change operations to use full paths, not indexes

* switch split and join to be recursive

* fix linter

* fix onChange calls

* make all operations invertable, add src/operations/* logic

* rename "join" to "merge"

* remove .length property of nodes

* fix node.getFragmentAtRange logic

* convert remaining examples, fix existing changes

* fix .apply() calls and tests

* change setSave and setIsNative transforms

* fix insert_text operations to include marks always

* cleanup and fixes

* fix node inheritance

* fix core onCut handler

* skip constructor in node inheritance

* cleanup

* change updateDescendant to updateNode

* add and update docs

* eliminate need for .apply(), change history to mutable

* add missing file

* add deprecation support to Transform objects

* rename "transform" to "change"

* update benchmark

* add deprecation util to logger

* update transform isNative attr

* fix remaining warn use

* simplify history checkpointing logic

* fix tests

* revert history to being immutable

* fix history

* fix normalize

* fix syntax error from merge
2017-09-05 18:03:41 -07:00
Dan Burzo
786050f732 Introduces state.activeMarks and has add/remove/toggleMark use it instead of state.marks (#990)
* WIP getting raw marks arrays from the current range

* Always handle marksRaw as Array, fixes tests/lint

* Clean up

* Fixes collapsed selection raw marks, simpler _every_ condition, harmonize toolbar buttons in rich-text example

* raw -> perCharacter

* Add tests for toggleMark collapsed selection

* Add .DS_Store to .gitignore

* Added test for toggleMark add in partially marked selection, with and without other marks

* Added docs for state.marksPerCharacter

* replace marksPerCharacter with activeMarks

* Update the other examples

* Clarify getActiveMarksAtRange

* AddMark/RemoveMark to use getActiveMarksByRange

* User activeMarks for toggle§MarkAtRange transform
2017-09-05 17:48:19 -07:00
Anuj
d21728ed86 Fix how plain text serializer serializes nested block (#1028)
* Fix how plain text serializer serializes nested blocks

* Updated test to check for more nested blocks

* Renamed getSerializedTextForNode to serializeNode, and added comment block

* Added a test for plain serializer: nested blocks with nested inlines

* Added additional test for simple inlines within block

* fixed expected test output

* fixed case where block has inlines but not other nested blocks
2017-09-05 17:48:06 -07:00
Ian Storm Taylor
9b5e7ba306 0.21.6 v0.21.6 2017-09-05 17:07:25 -07:00
Travis Person
84563aef43 Update schema model documentation (#1048)
When talking about `rules` and old interface was being used.
2017-09-05 16:44:20 -07:00