1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-18 22:08:18 +01:00

3165 Commits

Author SHA1 Message Date
Marcus Wood
42748e64e1
remove package-lock.json (#3959) 2020-11-02 20:20:54 -05:00
Marcus Wood
bf2fe9ffe5
export useEditor back out of package (#3961) 2020-11-02 17:04:36 -05:00
Mitchell Donaldson
bf428df4e2
Add hasPrevious method to Path (#3963)
* Add hasPrevious method to Path API.

Co-authored-by: Mitchell Donaldson <mitch@nod.money>
2020-11-02 16:28:43 -05:00
Isaac Schultz
d3f88fb922
Check if a node exists before normalization in Editor.normalize (#3907)
* Check if a node exists before normalization
2020-10-29 20:56:14 -04:00
Song You
4ae58e5c95
Differentiate between useSlate and useEditor hooks (#3941)
* Rename useEditor function to useSlateStatic

* Expose useEditor hook with deprecated flag

* Clarify useEditor deprecation in file and in docs
2020-10-29 15:39:21 -04:00
CameronAckermanSEL
60b56651b2 v0.59.0 v0.59.0 2020-09-24 20:46:51 -07:00
Wayne Leroux
4c3e737dda
Fixed issue where virtual keyboard closes when resynchronizing selection in Chrome on Android (#3866)
* Fixed issue where virtual keyboard closes when resynchronizing selection

* Fixed lint issue

* Added inversion of start-end to end-start when range is backwards
2020-09-16 20:48:12 -07:00
Jason Tamulonis
b616e75d63
Upgrade rollup packages to remove security vulnerability (#3844) 2020-08-27 14:18:39 -04:00
Jason Tamulonis
b27c3fde3b
Remove unused dependency (#3843) 2020-08-27 12:32:47 -04:00
Githoniel
79eee6b378
fix inconsistent render reversed selection (#3804)
* fix inconsistent render reversed selection

* fix type error

* add comment for setReverseDomSelection

* add comment for setReverseDomSelection

* add comment for toDOMRange
2020-08-20 08:43:16 -07:00
dependabot[bot]
91564f8812
Bump prismjs from 1.17.1 to 1.21.0 (#3817)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.17.1 to 1.21.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.17.1...v1.21.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-19 10:35:32 -07:00
Vincent
94158838f0
delete legacy rollup config (#3833) 2020-08-19 10:33:49 -07:00
CameronAckermanSEL
e40fd0534d fix #3830 2020-08-19 09:41:28 -07:00
CameronAckermanSEL
e7b5f75989 fixed path to examples 2020-08-19 09:23:39 -07:00
Wendell Hu
912d4b79da
docs: convert examples to typescript (#3766)
* docs: convert examples to typescript

* docs: convert remaining examples

* docs: update next.js

* ci: fix lint

* docs: fix next.js path

* docs: cleanup

* update

Co-authored-by: wendellhu <wendellhu@tencent.com>
2020-08-19 09:14:51 -07:00
Jason Tamulonis
7b2b6df215
Remove duplicate transform code (#3793) 2020-08-18 16:33:22 -07:00
Marcus Wood
9f3bc0a4da
Fix typo (#3827) 2020-08-18 15:21:41 -07:00
Diana Lease
63f099952e
fix(slate-react): update onDOMBeforeInput when onDOMBeforeInput prop changes (#3617) (#3829)
Signed-off-by: Diana Lease <dianarlease@gmail.com>
2020-08-18 15:21:14 -07:00
Brent Farese
0468290eee
Replace Iterable with Generator. (#3726)
* Replace Iterable with Generator for correct types.
2020-08-06 20:17:50 -04:00
Maria Jaramillo
d5eaa1164d
Fixed html (#3809)
* Add version 100.0.0 to package.json

* Revert "Add version 100.0.0 to package.json"

This reverts commit 329e44e43d968700655b1c46f968bfd3147e7339.

* fixed typo in html file

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-08-05 15:57:48 -07:00
dependabot[bot]
983961dfcd
Bump elliptic from 6.5.1 to 6.5.3 (#3806)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.1 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.1...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 10:32:33 -04:00
dependabot[bot]
7b1768aba3
Bump lodash from 4.17.15 to 4.17.19 (#3790)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 10:29:29 -04:00
Awasum Yannick
a180cc5300
Auto Rebase Github Action (#3774)
* Auto Rebase Github Action

* Update .github/workflows/rebase.yml

Place env at the beginning of job.

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-07-31 08:18:31 -04:00
Jason Tamulonis
1cf63f0a19
Make Range.transform options optional (#3794) 2020-07-24 15:27:22 -04:00
Maria Jaramillo
93fe251517
Convert Slate tests to TypeScript (#3784)
* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* changed to tsx

* slate tests

* finished making typescript tests

* linting

* linting

* reverted slate-hyperscript files to jsx and changed edlint config

* removed extra file

* Update package.json

* Update package.json

* deleted { file

* rebase

* removed ~ files

* changed yarn
2020-07-14 13:47:47 -04:00
Nikolay Martynenko
97dbab13a8
Trigger editor.insertText by paste too (#3776) 2020-07-10 09:31:25 -07:00
Mitchell Busby
68acd6b876
Resolves iamstormtaylor/slate#3778: Check if editable target before handling paste event (#3779) 2020-07-10 09:30:26 -07:00
Maria Jaramillo
a35b8737b7
syntax highlighting (#3762)
* syntax highlighting

* Delete package-lock.json

* Update package.json

* Update package.json

* Delete syntax-highlighting.js

* Update [example].js

* Update [example].js

* Update [example].js

* added correct file

* linting

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* Update site/examples/code-highlighting.js

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>

* updated pull request with some linting

* moved getLength fcn

Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
2020-07-09 18:23:56 -04:00
CameronAckermanSEL
958189bc4a v0.58.4 v0.58.4 2020-07-07 18:17:33 -07:00
Jason Tamulonis
b1f291ef88
Remove legacy target operation property (#3743) 2020-07-02 08:25:13 -07:00
Jatin Shridhar
1e495a5cde
minor elaboration on decorations (#3747)
* minor elaboration on decorations

 highlights the difference with marks

* instead of pronoun use the word "Decorations"
2020-07-02 08:21:58 -07:00
wendellhu
c8a7883b2a
doc: fix parenthesis missing (#3754) 2020-07-02 08:21:20 -07:00
Frederik Eychenié
32e120af19
docs: remove unused "selection" from code example (#3731) 2020-06-13 09:49:00 -07:00
Frederik Eychenié
0954ffc191
docs: add GraphCMS to products using slate (#3732) 2020-06-13 09:48:12 -07:00
Dylan Markow
a5720b289f
Fix placeholder text alignment (#3724)
Using verticalAlign: text-top was causing a slight height change when entering actual content.
2020-06-05 11:44:35 -07:00
Dan
788a8cefdc
fix older chrome support (#3722)
* fix older chrome support

* fix chrome regex
2020-06-05 00:02:40 -07:00
Jack Hanford
5ba551ad48
Update 10-normalizing.md (#3721)
Add `Transforms` to slate import so code runs when copy/pasted 😃
2020-06-04 18:36:30 -07:00
CameronAckermanSEL
ca126fbb39 v0.58.3 v0.58.3 2020-06-03 18:24:33 -07:00
Jason Tamulonis
994514b415
Fix path transform for sibling ancestor moves (#3712)
* Fix path transform for sibling ancestor moves

* Add some more tests
2020-06-03 13:33:18 -07:00
Jamie Talbot
7c8eb8e80b
Allow void nodes to be copied. Fixes #3665 (#3716) 2020-06-03 09:34:28 -07:00
anatolzak
44675c2080
Overrode Mark Styles in Placeholder (#3703)
* disabled user select on placeholder

* fixed css property value without quotes

* overrode mark styles in placeholder

Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-28 14:56:41 -07:00
Jason Tamulonis
4e7327d238
Fix inverse of sibling move operation (#3691)
* Fix path transform against sibling move operations

* Fix my jibberish

* Add some comments
2020-05-28 14:54:05 -07:00
Jason Tamulonis
9054d3a381
Fix path transform against sibling move operations (#3675) 2020-05-27 17:19:41 -07:00
CameronAckermanSEL
97a7e8a469 v0.58.2 v0.58.2 2020-05-27 08:55:33 -07:00
anatolzak
20d7dd41b7
disabled user select on placeholder (#3701)
* disabled user select on placeholder

* fixed css property value without quotes
2020-05-27 08:46:02 -07:00
Mitchell Busby
26fbc1dc41
Fix scrolling boundary detection (see #3463) (#3678) 2020-05-20 17:32:56 -07:00
Nikolay Martynenko
31709160a3
Fix selection, if click event fired after (#3650) 2020-05-20 17:26:21 -07:00
Matthew Steedman
c1760127f1
Fix Editable onPaste handler not getting called (#3670) 2020-05-20 17:22:39 -07:00
Ziad Beyens
557c51e7d4
slate-plugins-next (#3692)
Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
2020-05-20 17:03:35 -07:00
Scott Parker
76acd9c449
Remove Outline since they switched to ProseMirror (#3694) 2020-05-20 17:01:56 -07:00