Marton Langa
f7a72a1977
Fix typo in docs ( #3166 )
2019-11-29 12:41:52 -05:00
Ian Storm Taylor
5e5f1d9046
fix guides links
2019-11-29 08:11:37 -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
slate@0.50.2
slate-schema@0.50.2
slate-react@0.50.3
slate-hyperscript@0.50.2
slate-history@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
40d44e12ee
update issue template
2019-11-29 07:40:17 -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
slate@0.50.1
slate-schema@0.50.1
slate-react@0.50.2
slate-hyperscript@0.50.1
slate-history@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
Irwan Fario Subastian
cedc7dc2a5
lint & example fixes ( #3160 )
...
* fix import extensions of eslint
* revert next.config.cjs
* fix eslint globbing
* add migrating to docs’ sidebar
* fix prettier error on Contributing.md
* put quotes for glob matching for windows user
* remove type: module from package.json
2019-11-29 00:16:39 -05:00
Ian Storm Taylor
ac21510597
fix ci to run on PRs
2019-11-28 20:32:43 -05:00
Nathan Fenner
5bf58bbb71
improve prop typings for Editable ( #3158 )
2019-11-28 20:28:35 -05:00
DamareYoh
ac1d6165b5
improved the contributors.md file to call out more explicitly that the repo must be built for lerna to work and why ( #3159 )
2019-11-28 20:26:48 -05:00
Ian Storm Taylor
42c9753742
fix test script
2019-11-28 17:37:38 -05:00
DamareYoh
4bbbfba142
Nodejs 13 compat and eslint/prettier glob fix ( #3149 )
2019-11-28 17:32:26 -05:00
Marton Langa
6608a5df39
Remove controlled value state ( #3153 )
2019-11-28 17:21:12 -05:00
Marton Langa
5de91cb4ee
Fix variable name ( #3156 )
2019-11-28 17:20:54 -05:00
Ian Storm Taylor
cd3a925592
Publish
...
- slate-react@0.50.1
slate-react@0.50.1
2019-11-28 16:43:32 -05:00
Ian Storm Taylor
2b38fb3f3a
fix placeholder prop
2019-11-28 16:18:15 -05:00
Ian Storm Taylor
7f2bbcfef2
fix linter
2019-11-28 12:38:12 -05:00
Matt Mazzola
d457bc52b9
Docs fixes for 0.50.0 ( #3133 )
...
* docs: typos
* docs: markdown inline code formatting
https://meta.stackexchange.com/questions/82718/how-do-i-escape-a-backtick-within-in-line-code-in-markdown
* docs: remove unused value, move comment, add deps to callback
* docs: add deps to renderMark callback
2019-11-28 10:37:35 -05:00
Charlie Rudenstål
4140066c0b
fix links to examples in readme and site ( #3132 )
2019-11-28 10:33:10 -05:00
tepythai
15a8e0ee72
Fix typo in XX-migrating.md ( #3136 )
...
In ### Hooks section, I suppose it is "they use React's Context API" rather than "the use React's Content API". Please ignore this if it is not a typo. Thanks.
2019-11-28 10:31:54 -05:00
Ziad Beyens
f8c8ae8596
fix: make onDOMBeforeInput optional ( #3138 )
...
Fix this typescript error:
```
Property 'onDOMBeforeInput' is missing in type '{}' but required in type ...
```
with this code:
```
<Slate editor={editor} defaultValue={defaultValue}>
<Editable />
</Slate>
```
2019-11-28 10:31:11 -05:00
Charley DAVID
b2c5d57788
Add Slite.com as example of usage ( #3142 )
2019-11-28 10:30:15 -05:00
Ian Storm Taylor
5b1d63ea8d
fix yarn
2019-11-27 21:15:37 -05:00
Ian Storm Taylor
214b76d84b
Publish
...
- slate-history@0.50.0
- slate-hyperscript@0.50.0
- slate-react@0.50.0
- slate-schema@0.50.0
- slate@0.50.0
slate@0.50.0
slate-schema@0.50.0
slate-react@0.50.0
slate-hyperscript@0.50.0
slate-history@0.50.0
2019-11-27 21:13:54 -05:00
Ian Storm Taylor
45cdab6bbb
fix scripts
2019-11-27 21:08:16 -05:00
Ian Storm Taylor
e766e7a4ac
update contributing docs
2019-11-27 20:57:55 -05:00
Ian Storm Taylor
4ff6972096
Next ( #3093 )
...
* remove some key usage from core, refactor Operations.apply
* undeprecate some methods
* convert more key usage to paths
* update deprecations
* convert selection commands to use all paths
* refactor word boundary selection logic
* convert many at-range commands to use paths
* convert wrapBlock and wrapInline to not use keys
* cleanup
* remove chainability from editor
* simplify commands, queries and middleware
* convert deleteAtRange
* remove key usage from schema, deprecate *ByKey methods
* migrate *ByKey tests, remove index from *ByPath signatures
* rename at-current-range tests
* deprecate mode key usage, migrate more tests away from keys
* deprecate range and point methods which rely on keys to work
* refactor insertBlock, without fixing warnings
* add pathRef/pointRef, fix insertBlock/Inline deprecations, work on insertFragment
* refactor insertFragment
* get rich-text example rendering
* fix lint
* refactor query files, fix more tests
* remove unused queries, refactor others
* deprecate splitDescendantsByPath
* merge master
* add typescript, convert slate, slate-hyperscript, slate-plain-serializer
* add Point, Path, Range, Annotation tests
* add Annotation, Change, Element, Fragment, Mark, Range, Selection, Value interfaces tests
* add Operation and Text tests
* add Node tests
* get operations and normalization tests working for slate
* get *AtPath command tests passing
* rename *AtPath command tests
* rename
* get *AtPoint tests working
* rename
* rename
* add value queries tests
* add element, mark and path queries tests
* convert most on-selection tests
* convert on-selection commands
* rename
* get addMarks and delete commands working
* rename
* rename
* rename
* refactor value.positions(), work on delete tests
* progress on delete tests
* more delete work
* finish delete tests
* start converting to at-based commands
* restructure query tests
* restructure operations tests
* more work converting to multi-purpose commands
* lots of progress on converting to at-based commands
* add unwrapNodes
* remove setValue
* more progress
* refactor node commands to use consistent matching logic
* cleanup, get non-fragment commands passing
* remove annotations and isAtomic
* rename surround/pluck to cover/uncover
* add location concept, change at-path to from-path for iterables
* refactor batches
* add location-based queries
* refactor hanging logic
* more location query work
* renaming
* use getMatch more
* add split to wrap/unwrap
* flip levels/ancestors ordering
* switch splitNodes to use levels
* change split to always:false by default
* fix tests
* add more queries tests
* fixing more delete logic
* add more splitNodes tests
* get rest of delete tests passing
* fix location-based logic in some commands
* cleanup
* get previous packages tests passing again
* add slate-history package
* start slate-schema work
* start of react working
* rendering fixes
* get rich and plain text examples working
* get image example working with hooks and dropping
* refactor onDrop to be internal
* inline more event handlers
* refactor lots of event-related logic
* change rendering to use render props
* delete unused stuff
* cleanup dom utils
* remove unused deps
* remove unnecessary packages, add placeholder
* remove slate-react-placeholder package
* remove unused dep
* remove unnecessary tests, fix readonly example
* convert checklists example
* switch to next from webpack
* get link example working
* convert more examples
* preserve keys, memoized leafs/texts, fix node lookup
* fix to always useLayoutEffect for ordering
* fix annotations to be maps, memoize elements
* remove Change interface
* remove String interface
* rename Node.entries to Node.nodes
* remove unnecessary value queries
* default to selection when iterating, cleanup
* remove unused files
* update scroll into view logic
* fix undoing, remove constructor types
* dont sync selection while composing
* add workflows
* remove unused deps
* convert mentions example
* tweaks
* convert remaining examples
* rename h to jsx, update schema
* fix schema tests
* fix slate-schema logic and tests
* really fix slate-schema and forced-layout example
* get start of insertFragment tests working
* remove Fragment interface
* remove debugger
* get all non-skipped tests passing
* cleanup deps
* run prettier
* configure eslint for typescript
* more eslint fixes...
* more passing
* update some docs
* fix examples
* port windows undo hotkey change
* fix deps, add basic firefox support
* add event overriding, update walkthroughs
* add commands, remove classes, cleanup examples
* cleanup rollup config
* update tests
* rename queries tests
* update other tests
* update walkthroughs
* cleanup interface exports
* cleanup, change mark transforms to require location
* undo mark transform change
* more
* fix tests
* fix example
* update walkthroughs
* update docs
* update docs
* remove annotations
* remove value, move selection and children to editor
* add migrating doc
* fix lint
* fix tests
* fix DOM types aliasing
* add next export
* update deps, fix prod build
* fix prod build
* update scripts
* update docs and changelogs
* update workflow and pull request template
2019-11-27 20:54:42 -05:00
stefaniehansen
02b87d5968
Add redo hotkey for Windows (Ctrl+Shift+Z) ( #3110 )
2019-11-13 11:40:04 -05:00
Ian Storm Taylor
a0b7976cb9
Publish
...
- slate-base64-serializer@0.2.112
- slate-html-serializer@0.8.11
- slate-hyperscript@0.13.9
- slate-plain-serializer@0.7.11
- slate-prop-types@0.5.42
- slate-react-placeholder@0.2.9
- slate-react@0.22.10
- slate@0.47.9
slate@0.47.9
slate-react@0.22.10
slate-react-placeholder@0.2.9
slate-prop-types@0.5.42
slate-plain-serializer@0.7.11
slate-hyperscript@0.13.9
slate-html-serializer@0.8.11
slate-base64-serializer@0.2.112
2019-11-09 20:37:07 -05:00
Ian Storm Taylor
a39277ad15
Update ci.yml
2019-11-09 20:29:14 -05:00
Ian Storm Taylor
c381d72b41
Update ci.yml
2019-11-09 20:26:58 -05:00
Ian Storm Taylor
06812a1efe
Create ci.yml
2019-11-09 20:22:31 -05:00
dependabot[bot]
69f85a77f2
Bump macaddress from 0.2.8 to 0.2.9 ( #3106 )
...
Bumps [macaddress](https://github.com/scravy/node-macaddress ) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/scravy/node-macaddress/releases )
- [Commits](https://github.com/scravy/node-macaddress/compare/0.2.8...0.2.9 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 19:59:00 -05:00
Kamil Kamiński
df743127ca
Simplify the mentions example ( #3079 )
...
* Simplify the mentions example
* Fix wrong method call in onChange
* Return after inserting the mention
2019-11-09 19:58:29 -05:00
dependabot[bot]
dd6438436d
Bump webpack-dev-server from 2.11.1 to 3.1.11 ( #3104 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 2.11.1 to 3.1.11.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v2.11.1...v3.1.11 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 19:46:03 -05:00
dependabot[bot]
06635fde9b
Bump atob from 2.0.3 to 2.1.2 ( #3105 )
...
Bumps [atob](https://github.com/coolaj86/node-browser-compat ) from 2.0.3 to 2.1.2.
- [Release notes](https://github.com/coolaj86/node-browser-compat/releases )
- [Commits](https://github.com/coolaj86/node-browser-compat/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 19:45:57 -05:00
dependabot[bot]
84d1ba4a2b
Bump tar from 2.2.1 to 2.2.2 ( #3102 )
...
Bumps [tar](https://github.com/npm/node-tar ) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases )
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 19:45:17 -05:00
dependabot[bot]
4812ad4833
Bump extend from 3.0.1 to 3.0.2 ( #3103 )
...
Bumps [extend](https://github.com/justmoon/node-extend ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases )
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md )
- [Commits](https://github.com/justmoon/node-extend/compare/v3.0.1...v3.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 19:45:09 -05:00
dependabot[bot]
ec3e32c95b
Bump sshpk from 1.13.0 to 1.16.1 ( #3100 )
...
Bumps [sshpk](https://github.com/joyent/node-sshpk ) from 1.13.0 to 1.16.1.
- [Release notes](https://github.com/joyent/node-sshpk/releases )
- [Commits](https://github.com/joyent/node-sshpk/compare/v1.13.0...v1.16.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:33:09 -05:00
dependabot[bot]
c2a33e9664
Bump fstream from 1.0.11 to 1.0.12 ( #3101 )
...
Bumps [fstream](https://github.com/npm/fstream ) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases )
- [Commits](https://github.com/npm/fstream/compare/v1.0.11...v1.0.12 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:33:02 -05:00
dependabot[bot]
488cede2f6
Bump mixin-deep from 1.3.1 to 1.3.2 ( #3099 )
...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases )
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:32:45 -05:00
dependabot[bot]
7084bd4f08
Bump clean-css from 4.1.9 to 4.1.11 ( #3098 )
...
Bumps [clean-css](https://github.com/jakubpawlowicz/clean-css ) from 4.1.9 to 4.1.11.
- [Release notes](https://github.com/jakubpawlowicz/clean-css/releases )
- [Changelog](https://github.com/jakubpawlowicz/clean-css/blob/master/History.md )
- [Commits](https://github.com/jakubpawlowicz/clean-css/compare/v4.1.9...v4.1.11 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:32:36 -05:00
dependabot[bot]
51400f377e
Bump lodash from 4.17.4 to 4.17.13 ( #3097 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.4 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.4...4.17.13 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:32:23 -05:00
dependabot[bot]
db688e5460
Bump nwmatcher from 1.4.3 to 1.4.4 ( #3096 )
...
Bumps [nwmatcher](https://github.com/dperini/nwmatcher ) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/dperini/nwmatcher/releases )
- [Commits](https://github.com/dperini/nwmatcher/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-09 18:32:05 -05:00
Justin Weiss
3635390820
Include data and type when converting set_annotation to JS ( #3085 )
...
These were missing, and `set_annotation` operations don't have
marks. This meant that when converting these operations to JS and
back, they could not become real annotations again.
2019-11-09 18:01:15 -05:00
Kamil Kamiński
88b7efa975
Change renderNode docs to renderBlock and renderInline ( #3083 )
2019-11-09 17:59:31 -05:00
whyour
91c2cb4e9e
Fix when clear search text, all text split by blank ( #3072 )
...
in search-highlighting example, when search text is empty, no need to split text and addAnnotation
2019-11-09 17:58:53 -05:00
Entkenntnis
862e74a0cb
fixing paste html example ( #3070 )
2019-11-09 17:56:46 -05:00