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
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
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
Sidwyn Koh
26a91f805a
Allow links to be pasted without a selection ( #3297 )
...
* Allow links to be pasted without a selection
* Update links.js
2019-12-11 13:04:34 -05:00
Dylan Markow
28c31c2c0c
Fix forced layout example ( #3294 )
2019-12-10 23:58:40 -05:00
Ian Storm Taylor
e68a5cd305
remove the slate-schema package ( #3291 )
2019-12-10 17:53:27 -05:00
Ziad Beyens
a234667935
fix: typo ( #3281 )
2019-12-09 18:39:50 -05:00
Ziad Beyens
0e95b02399
fix: ts ( #3271 )
...
* fix: ts
* remove suggest
2019-12-07 15:33:59 -05:00
Ziad Beyens
3b16a1c3f0
fix: ts ( #3270 )
...
* fix: ts
Fix:
- Argument of type 'Point | undefined' is not assignable to parameter of type 'Location'.
Type 'undefined' is not assignable to type 'Location'.
- Types of property 'zIndex' are incompatible.
* use &&
* use optional chaining
* revert optional chaining (not supported)
2019-12-07 15:31:51 -05:00
Ian Storm Taylor
043a5c1709
fix parse error
2019-12-07 15:27:22 -05:00
Ziad Beyens
7ac85e6a93
style: no-unused-vars ( #3269 )
2019-12-07 11:53:31 -05:00
Dylan Markow
b629be3398
Fix paste example: nested formatting ( #3264 )
2019-12-06 17:14:35 -05:00
Ian Storm Taylor
90d40fd764
change schema plugin to be returned from function ( #3252 )
...
* change schema plugin to be returned from function
* fix forced-layout example
2019-12-05 15:29:02 -05:00
Ian Storm Taylor
97426525ca
fix richtext and plaintext naming
2019-12-05 12:57:39 -05:00
Ian Storm Taylor
124ff37c3a
update docs
2019-12-05 12:52:52 -05:00
Ian Storm Taylor
f3fc2c2a54
Change <Slate>
to a controlled component ( #3216 )
...
* change <Slate> to be a controlled component
* add comment about unstable React API
2019-12-05 11:36:44 -05:00
Ian Storm Taylor
4c03b497d9
remove marks, in favor of text properties ( #3235 )
...
* remove marks, in favor of text properties
* fix lint
* fix more examples
* update docs
2019-12-05 11:21:15 -05:00
Urban Etter
31df397930
Fix check list example ( #3232 )
...
* Fix check list example
* Fix lint errors
2019-12-04 15:02:18 -05:00
Ian Storm Taylor
6627ba4b94
fix universal matching mode for marks ( #3230 )
...
* fix universal matching mode for marks
* fix lint
2019-12-04 12:57:15 -05:00
Dylan Markow
fe2cebb58f
Load with correct starting example ( #3220 )
2019-12-04 10:43:06 -05:00
Dylan Markow
f355f8a6f0
Fix child_min_invalid checks ( #3219 )
2019-12-03 21:22:05 -05:00
Ziad Beyens
b5fe096844
fix: support upper case search ( #3218 )
2019-12-03 21:19:15 -05:00
Ian Storm Taylor
62af4cb053
upgrade mentions example to use a portal with suggestions, closes #3206 ( #3214 )
2019-12-03 14:40:42 -05:00
Urban Etter
5a8a5dcdcf
Fix InsertImageButton in image example ( #3210 )
2019-12-03 10:59:50 -05:00
Ian Storm Taylor
e39f1e77ea
fix rich-text to unwrap lists with splitting, closes #3199
2019-12-02 18:19:51 -05:00
Ziad Beyens
b1b0052705
fix: promptMention not defined ( #3195 )
...
* fix: promptMention not defined
* style: eslint
2019-12-01 20:56:28 -05:00
Ziad Beyens
2ad3dfeef8
fix: typo ( #3193 )
...
url is not defined
2019-12-01 20:18:21 -05:00
Ziad Beyens
357e3b8547
fix: typo ( #3194 )
2019-12-01 20:17:21 -05:00
Ziad Beyens
c12d0ff9de
fix: typo ( #3187 )
2019-12-01 14:50:41 -05:00
Ian Storm Taylor
68569f286e
improve Editor.marks and Editor.nodes abstraction
2019-11-29 23:15:08 -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
DamareYoh
4bbbfba142
Nodejs 13 compat and eslint/prettier glob fix ( #3149 )
2019-11-28 17:32:26 -05:00
Ian Storm Taylor
2b38fb3f3a
fix placeholder prop
2019-11-28 16:18:15 -05:00
Charlie Rudenstål
4140066c0b
fix links to examples in readme and site ( #3132 )
2019-11-28 10:33:10 -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