Ian Storm Taylor
ace9f47930
change slate to be a monorepo using lerna ( #1106 )
...
* init lerna, move files into ./packages
* move test files into ./packages
* more moving around
* fill out package.json files
* fixing imports
* more fixing of imports, and horribleness
* convert examples, fix linting errors
* add documentation
* update docs
* get tests passing
* update travis.yml
* update travis.yml
* update travis.yml
* update test script
* update travis.yml
* update scripts
* try simplifying travis.yml
* ocd stuff
* remove slate-core-test-helpers package
* add package readmes
* update reference docs structure
* refactor slate-simulator into its own package
* add docs for new packages
* update docs
* separate benchmarks into packages, and refactor them
2017-09-11 18:11:45 -07:00
Ian Storm Taylor
4d73f19dc7
0.23.1
v0.23.1
2017-09-11 17:51:10 -07:00
Ian Storm Taylor
4f59771453
remove problematic unused dep
2017-09-11 17:40:31 -07:00
Per-Kristian Nordnes
90c430edac
Fix an invalid require statement in base-64 serializer ( #1108 )
2017-09-11 10:26:36 -07:00
Ian Storm Taylor
9760f945c8
0.23.0
v0.23.0
2017-09-10 15:37:04 -07:00
Ian Storm Taylor
f5064c01ea
update changelog
2017-09-10 15:34:44 -07:00
Ian Storm Taylor
630b10d4ab
update changelog
2017-09-10 15:32:21 -07:00
Ian Storm Taylor
133831ee4e
update docs
2017-09-10 15:29:42 -07:00
Ian Storm Taylor
10e4216d00
Remove is native ( #1088 )
...
* start removing isNative
* more
* remove more isNative logic
* fix linter
2017-09-10 14:56:40 -07:00
Ian Storm Taylor
9fca2d3b9b
start removing raw serializer ( #1098 )
...
* start removing raw serializer
* convert first tests to use jsx
* simplify jsx tests for raw serializer
* allow for options in raw serializer tests
* add more preserve option tests
* convert plain serializer tests
* convert html serialize
* start converting html deserialize
* add hyperscript util
* remove slate-sugar copy-pasted
* finish converting html deserialize
* convert plugins tests
* update rendering tests
* convert schemas tests
* convert core plugin tests
* update hyperscript utl
* refactor changes test directory structure
* fix changes before migration
* add migrated changes test files
* remove <x- prefixes from migration
* get addMark at-current-range tests passing
* get delete at-current-range tests passing
* remove old tests
* convert deleteForward and deleteBackward
* convert insertBlock, insertInline, insertFragment, insertText
* convert removeMark, setBlock, setInline, splitBlock, splitInline
* add unstaged tests
* convert toggleMark, unwrapBlock, unwrapInline, wrapBlock, wrapInline, wrapText
* convert call, setData
* convert on-selection tests
* remove old on-selection tests
* convert history tests
* convert insertFragmentByKey, insertNodeByKey, insertTextByKey, mergeNodeByKey, moveNodeByKey
* convert removeNodeByKey, removeTextByKey, setMarkByKey, setNodeByKey
* convert splitDescendantsByKey, splitNodeByKey, unwrapBlockByKey, unwrapInlineByKey, unwrapNodeByKey, wrapBlockByKey
* fix tests
* port missing at-range tests to at-current-range
* remove at-range tests
* fix raw serializer tests
* fix linter
* fix to prefer toJSON as the canonical method name
* fix todos
* remove internal references to Raw
* add deprecation helper to Text.fromJSON
* convert examples to not use Raw, and not rely on terse
* remove focus-blur example, rename large document example
* refactor Raw serialize to deprecate, not remove, terse
* deprecate defaultBlockType, toRaw, cleanup serializers
2017-09-10 14:56:03 -07:00
AlbertHilb
17adfd2f34
Fix parameter name, remove trailing spaces. ( #1101 )
2017-09-09 12:45:15 -07:00
AlbertHilb
25d54e30b0
Avoid finding native selection focus position when selection is collapsed ( #1100 )
...
* Avoid finding native selection focus position when selection is
collapsed. Use already calculated anchor position instead.
Move code to get caret position from a selection point in `utils`.
* Update content.js
* Update get-caret-position.js
2017-09-09 11:08:17 -07:00
Tobias Andersen
5135f98845
Update plugin reference to use Change instead of State ( #1093 )
...
* update plugin reference to use Change instead of State
* fix description of onCopy event handler
2017-09-08 07:52:39 -07:00
Ian Storm Taylor
395c0a4f8b
0.22.14
v0.22.14
2017-09-08 00:11:17 -07:00
Ian Storm Taylor
1b406c345f
fix plain serializer handling empty blocks, fixes #1090 ( #1091 )
...
* fix plain serializer handling empty blocks, fixes #1090
* clean up block list test
2017-09-08 00:09:46 -07:00
Ian Storm Taylor
3e2e533c21
0.22.13
v0.22.13
2017-09-07 18:06:03 -07:00
Ian Storm Taylor
808848e22e
fix the performance of calculating isSelected ( #1087 )
...
* fix the performance of calculating isSelected
* ocd
2017-09-07 18:04:40 -07:00
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