Corentin.Andre
e54b07eba8
fix: undoing and redoing are switched ( #3363 )
2019-12-19 11:50:32 -05:00
Sunny Hirai
3ffd73cd7d
Fix broken link in introduction of docs ( #3357 )
2019-12-18 18:23:05 -08:00
Sunny Hirai
cc7f035229
Added a warning for Android in faq ( #3356 )
2019-12-18 21:18:35 -05:00
Ian Storm Taylor
922d03e006
v0.57.0
v0.57.0
2019-12-18 16:04:05 -05:00
Jack Turnbull
6659152145
build: relax transpilation for es modules ( #3337 )
...
* build: relax transpilation for es modules
ES module output currently includes regenerator runtime functions which
can block strict content security policies. For an ES module output this
isn't required because any runtime supporting ES modules will also
support async/await natively. It is also highly likely that users of the
ES module would also be performing their own transipliation of
async/await and we should not make assumptions on their behalf (some may
prefer promises to regenerator, for example).
This commit splits the babel config into two; an unchanged one for the
UMD output, and another for module output.
* build: override babel settings from plugin
2019-12-18 15:53:59 -05:00
Ian Storm Taylor
40617e4f1a
update changelog
2019-12-18 15:47:41 -05:00
Ian Storm Taylor
0bbe121d76
Remove commands ( #3351 )
...
* remove commands in favor of editor-level functions
* update examples
* fix lint
2019-12-18 15:00:42 -05:00
Ian Storm Taylor
c2d7905e19
v0.56.1
v0.56.1
2019-12-18 14:59:46 -05:00
Dylan Markow
0e4917f49b
Swap remove_mark/add_mark example ( #3349 )
2019-12-18 12:25:54 -05:00
Christopher Biscardi
af7a7e7c45
deletebackward -> deleteforward ( #3346 )
2019-12-18 11:15:59 -05:00
cvlmtg
0b7644e975
fix onBeforeInput memoization ( #3347 )
...
* fix memoization of onBeforeInput callback
* fix lint
* fix callbacks dependencies
2019-12-18 11:15:17 -05:00
Ian Storm Taylor
d765cbc3a8
v0.56.0
v0.56.0
2019-12-17 23:03:12 -05:00
Ian Storm Taylor
72036826cf
update changelog
2019-12-17 22:55:13 -05:00
Ian Storm Taylor
28b5217370
split format_text
into two commands ( #3340 )
...
* split format_text into two commands
* fix lint
2019-12-17 22:17:33 -05:00
Ian Storm Taylor
235a578967
rename Node.text
to Node.string
( #3341 )
2019-12-17 22:17:21 -05:00
Ian Storm Taylor
4ee9f8b4e6
fix LOC estimates with new version of cloc
2019-12-16 16:41:35 -05:00
Ian Storm Taylor
6f98363566
v0.55.3
v0.55.3
2019-12-16 16:36:55 -05:00
Ian Storm Taylor
c77e1233d4
remove unused deps, fix peerDependencies
2019-12-16 16:32:44 -05:00
Ian Storm Taylor
72b4bf11db
v0.55.2
v0.55.2
2019-12-16 16:20:19 -05:00
Rinoc Johnson
63a94a23c7
Fix emoji offsets ( #3310 )
...
* Fix emoji offsets
* Fix linting
* Remove the unused `forward` argument
* Fix linting
* Code review
* Fix linting
* Add newline to end of file
2019-12-16 16:12:27 -05:00
Ian Storm Taylor
1f367a25fa
v0.55.1
v0.55.1
2019-12-16 16:05:01 -05:00
Ian Storm Taylor
0f1d97eced
add match
option to Editor.levels
2019-12-16 15:59:02 -05:00
Ian Storm Taylor
00bed99bc8
fix changelog typo
2019-12-15 21:10:06 -05:00
Ian Storm Taylor
40856cfa95
v0.55.0
v0.55.0
2019-12-15 21:03:17 -05:00
Ian Storm Taylor
39c14b12a1
god i hate lerna
2019-12-15 20:55:55 -05:00
Ian Storm Taylor
97d229fde7
update lerna config?
2019-12-15 20:52:38 -05:00
Ian Storm Taylor
c21d8cf825
update lerna config
2019-12-15 20:50:39 -05:00
Ian Storm Taylor
483b4f7740
update changelog
2019-12-15 20:48:32 -05:00
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
slate@0.54.6
slate-react@0.54.6
slate-hyperscript@0.54.6
slate-history@0.54.6
2019-12-13 19:15:11 -05:00
Ian Storm Taylor
b9c441f1a4
fix nested unwrapping with splitting
2019-12-13 19:12:50 -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
slate@0.54.5
slate-react@0.54.5
slate-hyperscript@0.54.5
slate-history@0.54.5
2019-12-13 17:00:38 -05:00
Ian Storm Taylor
7057bb2c4c
fix wrapNodes for uneven blocks
2019-12-13 16:57:26 -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
slate@0.54.4
slate-react@0.54.4
slate-hyperscript@0.54.4
slate-history@0.54.4
2019-12-13 16:08:08 -05:00
Ian Storm Taylor
3d4b964444
cleanup unnecessary variable
2019-12-13 16:06:27 -05:00
Ian Storm Taylor
e0176a99a3
fix selection coercing when removing nodes
2019-12-13 16:03:07 -05:00
Ian Storm Taylor
b3333e8d2e
add void node removal tests
2019-12-13 15:36:07 -05:00
Ian Storm Taylor
cc27ed2564
fix typo in readme
2019-12-13 13:16:14 -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
slate@0.54.3
slate-react@0.54.3
slate-hyperscript@0.54.3
slate-history@0.54.3
2019-12-13 12:55:48 -05:00
Ian Storm Taylor
bb6a4d9ce8
fix tests missing selection, unskip some tests
2019-12-13 12:53:58 -05:00
Ian Storm Taylor
d8b915a406
add testes
2019-12-13 12:32:53 -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
slate@0.54.2
slate-react@0.54.2
slate-hyperscript@0.54.2
slate-history@0.54.2
2019-12-12 20:23:18 -05:00
Ian Storm Taylor
e0f0122de9
fix lint
2019-12-12 20:20:00 -05:00
Ian Storm Taylor
31b7ceadc9
add select
option to insertNodes
2019-12-12 18:50:37 -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
slate@0.54.1
slate-react@0.54.1
slate-hyperscript@0.54.1
slate-history@0.54.1
2019-12-12 17:13:18 -05:00
Ian Storm Taylor
cf571d36bd
fix inserting nodes in empty documents
2019-12-12 17:11:26 -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
slate@0.54.0
slate-react@0.54.0
slate-hyperscript@0.54.0
slate-history@0.54.0
2019-12-12 16:00:14 -05:00
Ian Storm Taylor
49c799d1f9
update changelog
2019-12-12 15:57:10 -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
Ziad Beyens
ed40c08b80
fix: ts ( #3301 )
2019-12-11 17:18:38 -05:00