1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 12:30:11 +02:00
Commit Graph

3442 Commits

Author SHA1 Message Date
Ian Storm Taylor
a23ae65811 update changelog with notice about splitting 2021-04-01 02:31:57 -04:00
Ian Storm Taylor
bf93f7572f convery release workflow to matrix 2021-04-01 02:23:43 -04:00
Ian Storm Taylor
f098864572 change ci workflow to use a matrix 2021-04-01 02:18:37 -04:00
Ian Storm Taylor
8dfecd7759 update workflows 2021-04-01 02:13:47 -04:00
Ian Storm Taylor
990def3906 update ci workflow 2021-04-01 02:11:28 -04:00
Ian Storm Taylor
22cb79c37a update workflows 2021-04-01 02:04:28 -04:00
Ian Storm Taylor
f6ec6c4bf7 merge conflicts 2021-04-01 01:42:05 -04:00
Ian Storm Taylor
c5d412f5c6 add lint-staged for auto-formatting commits 2021-04-01 01:41:07 -04:00
github-actions[bot]
f76ff2a276 v0.62.0 (#4156)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-04-01 01:38:28 -04:00
Ian Storm Taylor
5863c9211f Merge branch 'master' of github.com:ianstormtaylor/slate 2021-04-01 01:20:56 -04:00
Ian Storm Taylor
b650dcaac0 update contributing docs 2021-04-01 01:20:51 -04:00
Ian Storm Taylor
a406c6a738 add typescript linting 2021-04-01 01:19:21 -04:00
Ian Storm Taylor
d3c4e911f7 add .tsbuildinfo to .gitignore 2021-04-01 00:57:46 -04:00
Ian Storm Taylor
b5a10724ec remove .tsbuildinfo file 2021-04-01 00:57:26 -04:00
Ian Storm Taylor
d288842aee fix typescript errors 2021-04-01 00:43:24 -04:00
github-actions[bot]
dc2d2f16b4 v0.62.0 (#4156)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-04-01 00:20:29 -04:00
Ian Storm Taylor
6712e6fbc9 update changelog 2021-03-31 22:53:38 -04:00
Ian Storm Taylor
84d1267ca2 update changelog 2021-03-31 22:39:31 -04:00
Ian Storm Taylor
d5e27bedbd try updating changesets config 2021-03-31 22:36:02 -04:00
Ian Storm Taylor
6d22dd58eb Merge branch 'master' of github.com:ianstormtaylor/slate 2021-03-31 22:07:27 -04:00
Ian Storm Taylor
d5589279e8 add changesets 2021-03-31 22:07:22 -04:00
Ulion
8a2a60b052 Fix normalizeDOMPoint to do better job. (#4048) 2021-03-31 22:06:30 -04:00
Ian Storm Taylor
00393bb185 port long placeholder pr to master 2021-03-31 22:04:30 -04:00
Ian Storm Taylor
b15fba61f8 port re-rendering on focus pr to master 2021-03-31 22:02:41 -04:00
Ian Storm Taylor
df23ed7aa7 port update to serialization pr to master 2021-03-31 22:00:33 -04:00
Ian Storm Taylor
7723935b68 port remove link button pr to master 2021-03-31 21:59:57 -04:00
Ian Storm Taylor
c60020244b update changesets 2021-03-31 21:55:10 -04:00
Ulion
39e47dc518 Decorate re-render optimize to not re-render all elements. (#4138)
* Decorate re-render optimize to not re-render all elements.

* Move provider one level up due to Children no longer component.

* lint fix
2021-03-31 21:24:07 -04:00
dchikulaev
7a9b4c5787 Fixed converting querySelectorAll results to array (#4099)
for Babel loose mode.
2021-03-31 20:26:38 -04:00
cvlmtg
469e6b26f5 fix onPaste handler on Chrome / Safari (#3396)
* fix onDOMBeforeInput callback definition

* fix onPaste on chrome / safari

* improve comment

* Update editable.tsx

* Create real-suns-matter.md

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-03-31 18:34:04 -04:00
Mikel Canovas
7fe41f1566 Fix error when trying to grab selection of a void node while read only (#3894)
* fix(react-editor): text node spacer can be non-existant if editor is in readonly mode

* v0.59.1

* Revert "v0.59.1"

This reverts commit 58cb7f1d61.

* Update react-editor.ts

* Update react-editor.ts

* Create rude-lemons-crash.md

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-03-31 18:33:28 -04:00
Johan Sörlin
e344f47f03 added support for deleting selection properties by setting them to null (#4109)
added tests for setting and deleting custom selection props
2021-03-31 18:32:51 -04:00
Claudéric Demers
1b77385848 Fix deletion of hanging range with trailing void block node (#4125)
Only unhang the range if the end of the range doesn't match the end of the document.
2021-03-31 18:30:45 -04:00
Ulion
b64fbd06d3 Fix move_node caused full re-render. (#4120) 2021-03-31 18:25:09 -04:00
nivekithan
bbd7d9c330 replace IS_FIREFOX with IS_FIREFOX_LEGACY in HAS_BEFORE_INPUT_SUPPORT (#4150)
* replace IS_FIREFOX with IS_FIREFOX_LEGACY in HAS_BEFORE_INPUT_SUPPORT

* fix linting errors

* Create afraid-donuts-flow.md

* Update environment.ts

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-03-31 18:09:46 -04:00
Jack Hanford
165ac3c695 disable spellCheck, autoCorrect, autoCapitalize when browser doesnt HAS_BEFORE_INPUT_SUPPORT (#3946) 2021-03-31 18:05:33 -04:00
kenzobanaag
2db9a36f93 Added isImageUrl validation to button, added alert when not image (#3933)
* Added isImageUrl validation to button, added alert when not image

* Fixed lint error
2021-03-31 18:03:36 -04:00
Kiko Estrada
b57422b0e6 Docs: Optimize image sizes (#4045)
* [ImgBot] Optimize images

*Total -- 753.66kb -> 550.59kb (26.94%)

/docs/images/glossary/anchor-point.gif -- 193.91kb -> 31.38kb (83.82%)
/docs/images/logo.png -- 2.95kb -> 2.50kb (15.31%)
/docs/images/icon.png -- 1.04kb -> 0.91kb (12.7%)
/docs/images/banner.png -- 3.95kb -> 3.48kb (11.76%)
/docs/images/jsfiddle.png -- 139.22kb -> 124.94kb (10.25%)
/docs/images/slack.png -- 251.73kb -> 232.76kb (7.53%)
/docs/images/preview.png -- 72.85kb -> 69.25kb (4.95%)
/docs/images/glossary/focus-point.gif -- 27.86kb -> 26.82kb (3.74%)
/docs/images/glossary/collapsed.gif -- 60.15kb -> 58.54kb (2.67%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

* Docs: Fix example code links

Replaced old .js links with current .tsx format

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-03-31 18:01:10 -04:00
Ulion
286f4b2f55 Fix toSlatePoint wrong offset for void element. (#4057) 2021-03-31 17:59:34 -04:00
Krzysztof Mędrzycki
b7a56276b2 Normalize moved node (#3851) 2021-03-31 17:49:09 -04:00
Githoniel
aafee36834 fix: mergeNodes by point would delete nested multi-child node (#3825) 2021-03-31 17:41:14 -04:00
Krzysztof Mędrzycki
9fce1066ba Collapse selection according to reverse (#3799)
* Rename test slate transforms delete unit-character inline-before to inline-afte

* Add missing tests for Transforms.delete, symmetric to existing tests with respect to options.reverse

* In Transforms.delete collapse selection according to options.reverse

* Add directionality to Editor#deleteFragment
2021-03-31 17:38:02 -04:00
Luke Murray
e2576108a6 Add voids to the interface definition of positions (#4062)
* Add voids to the interface definition of positions

* Update editor.ts
2021-03-31 17:35:42 -04:00
Ian Storm Taylor
d12413fff9 add v0.59 chinese docs translation, fixes #3985 2021-03-31 17:23:56 -04:00
Githoniel
5b24c86547 fix: cut will remove void element when only select void element (#4107) 2021-03-31 17:19:25 -04:00
pubuzhixing8
bf83f333e6 fix DOM selection can not be updated when use composition input on Safari #3196 (#3698)
* fix DOM selection can not be updated when use composition input on Safari #3196

* Update editable.tsx

* Create dry-deers-applaud.md

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-03-31 17:06:31 -04:00
Yangyang Li
6799dfd228 fix typo (#3890) 2021-03-31 16:49:06 -04:00
Isaac Schultz
2a9ceee03c using js-to-ts converter on JSX. (#3906)
Added 'include' parameter to tsconfig to tell the compiler to only look inside the src directory
2021-03-31 16:48:09 -04:00
Josias
a95ec9249d Correct onDOMBeforeInput typings (#3549)
TS will report an error when trying to access event.inputType since it was declared of type "Event" and not "InputEvent".
2021-03-31 16:45:20 -04:00
Tim Buckley
e4e48b9fa7 Text.equals now works with more nested Text nodes, and non-primitive attributes. (#3532)
* Use lodash.isEqual to compare text nodes

The key improvement here is that this allows Text nodes to have more complex attributes like objects. The previous behavior failed to find equivalent object properties as equal due to JS's !== reference check.

* Install lodash in slate's pkgjson
2021-03-31 16:44:26 -04:00