1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-23 16:55:23 +01:00

3512 Commits

Author SHA1 Message Date
Claudéric Demers
67f646098e
Tweak release workflow (#4291) 2021-05-26 09:39:13 -04:00
Claudéric Demers
c7ff274a68
Update release workflow to make sure latest job runs before dev (#4274) 2021-05-26 08:56:17 -04:00
Sunny Hirai
1ef84f4d48 docs: Fix marks definition in Editor interface 2021-05-26 00:20:39 -07:00
Sunny Hirai
5e4459ed17 docs: Fix spacing in Editor API interface code 2021-05-26 00:19:19 -07:00
Sunny Hirai
708372c745 docs: Add fat arrows to Text API 2021-05-26 00:16:24 -07:00
Sunny Hirai
c1496f4729 docs: Add fat arrows to Nodes API 2021-05-26 00:15:09 -07:00
Sunny Hirai
21a213e5a5 docs: Add return types to Editor schema specific overrides 2021-05-26 00:11:48 -07:00
Sunny Hirai
2fbcb335bb docs: change Editor static methods to use fat arrows in method names 2021-05-26 00:06:46 -07:00
Sunny Hirai
ced37b93c7 docs: Try changing function format to use fat arrow to see how it looks 2021-05-26 00:00:59 -07:00
Sunny Hirai
09944130b1 Add markdownlint to remove unnecessary warnings 2021-05-25 23:58:16 -07:00
Sunny Hirai
03746d9eed docs: Add generics to Editor API and add missing method 2021-05-25 23:52:03 -07:00
Sunny Hirai
b3784e451d docs: Try putting options in a list in Transforms API for better readability 2021-05-25 20:00:13 -07:00
Sunny Hirai
7e736c9138 docs: Remove puffery from docs 2021-05-25 19:06:09 -07:00
Sunny Hirai
0a7e04c487 docs: Add links about at and match options 2021-05-25 19:04:11 -07:00
Sunny Hirai
cf6145dc6e docs: minor grammatical fix 2021-05-25 18:52:36 -07:00
Sunny Hirai
65a1a9e281 docs: rename element configuration to behavior types 2021-05-25 18:50:27 -07:00
Sunny Hirai
a55c4a2e71 docs: organize Editor configuration into headings and subheading 2021-05-25 18:48:11 -07:00
Sunny Hirai
ffbb92f28a docs: Add descriptions and links to describe void/inline and void/not void elements in API 2021-05-25 18:44:12 -07:00
Sunny Hirai
29051c8fc0 Add documentation for options.split in Transforms.wrapNodes 2021-05-21 18:23:33 -07:00
Sunny Hirai
b5f3678a05 docs: clarify Range.includes method to mean intersects 2021-05-21 16:54:41 -07:00
Sunny Hirai
438722df87 Add links from concepts/editor to Editor API Reference 2021-05-20 23:54:42 -07:00
Sunny Hirai
53324cb7ca Adjust link references to be consistent with other by adding Robot emoji and blockquote 2021-05-20 23:50:18 -07:00
Sunny Hirai
76cfab15b4 Fix link target in concepts/nodes 2021-05-20 23:46:18 -07:00
Sunny Hirai
fcdcbc128d Fix link in concepts/nodes 2021-05-20 23:43:45 -07:00
Sunny Hirai
ecf26bf6cf Fix another link in concepts/transforms 2021-05-20 23:42:06 -07:00
Sunny Hirai
5dea3d2fc8 Another attempt to fix broken links using .md extension 2021-05-20 23:39:26 -07:00
Sunny Hirai
f12a9ed9b1 Attempt to fix broken links in GitBook to API Reference 2021-05-20 23:34:56 -07:00
Sunny Hirai
832597fe91 Add link to Selection Transforms API Reference in Transforms Concepts 2021-05-20 23:31:11 -07:00
Omer Gurarslan
ff267767f6
chore(slate-react) typo - rename extractMatch to exactMatch (#4271)
* Fix typo - rename extractMatch to exactMatch

* update changelog

* update changelog
2021-05-20 17:21:38 +01:00
Claudéric Demers
294d5120ae
Fix errors accessing globalThis in browsers that do not implement it (#4272) 2021-05-20 11:49:29 -04:00
Sunny Hirai
cb1db7fca9 Add getFragment to the API docs 2021-05-14 21:29:34 -07:00
github-actions[bot]
7632d4d0e5
Version Packages (#4259)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2021-05-14 15:35:42 -04:00
Claudéric Demers
4f0d1120d4
(Re)-Introduce Android support via a MutationObserver based reconciliation layer
* Revert "Temporarily revert Android commits in order to create a release of Slate focused solely on Android (#4256)"

This reverts commit 4f502119841d013ea2749e91f4bd1f793dc7f98e. 

* Updates to android composition manager

* Add user input tracking

It's necessary to only track mutations that result from user input. Some mutations that happen inside block or leaf nodes can happen outside of the render loop of the Editable component.
2021-05-14 15:25:52 -04:00
github-actions[bot]
39b0254867
Version Packages (#4243)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
slate@0.63.0 slate-react@0.63.0
2021-05-12 21:29:31 -04:00
Claudéric Demers
4f50211984
Temporarily revert Android commits in order to create a release of Slate focused solely on Android (#4256)
* Revert "Add DefaultEditable and AndroidEditable to exports (#4255)"

This reverts commit 5298e51f6e8a7d62acb71092f7afd6565cbdc65e.

* Revert "Feature/android keyboard support (#4200)"

This reverts commit e03ce7c5614a1a69d039bfbeea94696376585fd0.
2021-05-12 21:24:57 -04:00
Sunny Hirai
5298e51f6e
Add DefaultEditable and AndroidEditable to exports (#4255) 2021-05-12 17:02:54 -07:00
Wayne Leroux
e03ce7c561
Feature/android keyboard support (#4200)
* Added Android Keyboard Support

* Added changeset for android keyboard support

* Removed dead code in android editable that supported non-android environments

* Removed unnecessary attributes observation for android-editable

* Removed dead code

* Added no-error boundary

* Fixed issues with linters
2021-05-12 16:30:39 -07:00
Rickert Mulder
351d0a1c36
Fix typo (#4252)
complience -> compliance
2021-05-13 07:08:09 +10:00
dependabot[bot]
d2e011d8fc
build(deps): bump lodash from 4.17.19 to 4.17.21 (#4251)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 06:51:54 +10:00
dependabot[bot]
2b7af0541b
build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#4254)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 06:48:37 +10:00
Jonas Kruckenberg
b33a531bd0
replace lodash depency in slate (#4245)
* replace lodash/omit with custom fn

* replace lodash/isEqual with fast-deep-equal
2021-05-13 06:45:45 +10:00
dependabot[bot]
41af0584d2
build(deps): bump handlebars from 4.7.6 to 4.7.7 (#4249)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-07 09:54:30 -04:00
Bjørn Stabell
b4eeccb017
Ensure round-trip tests don't mutate output before checking against it => reveals 4 tests are broken (#4188)
* Ensure round-trip tests don't mutate output before checking against it.  Need deep copy instead of shallow.

* Skip the 4 tests that are broken - they should perhaps be fixed in a separate PR
2021-05-07 09:52:55 -04:00
Juan J. Jimenez-Anca
1808d0ed9e
Update transforms.md (#4247)
Clarify the different usage for `select` and `setSelect`
2021-05-07 09:49:13 -04:00
Ulion
e6413d4625
Fix addMark/removeMark caused unexpected onChange. (#4227)
* Fix addMark/removeMark caused unexpected onChange.

* Create three-parrots-remember.md

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-05-05 20:30:17 -04:00
Dylan Schiemann
623960a7d1
Update IS_FIREFOX_LEGACY flag to prevent FF crash (#4237)
* Update IS_FIREFOX_LEGACY flag to prevent FF crash

#4118 and #4150 introduced IS_FIREFOX_LEGACY, but this block of code was not updated to reflect that. This breaks insertion of emoji and unicode characters in slate-react. This change fixes #3855.

* Update editable.tsx

* Create forty-mails-roll.md

* Update editable.tsx

Apologies, in my tests I was using yarn patch and didn't need to modify the import statement, hopefully this will pass CI now.

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
2021-05-05 19:56:10 -04:00
dependabot[bot]
3b3c94a72c
Bump immer from 7.0.7 to 8.0.1 (#4050)
Bumps [immer](https://github.com/immerjs/immer) from 7.0.7 to 8.0.1.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v7.0.7...v8.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-05 19:52:00 -04:00
Andrew Herron
feb293aaa2
Apply no-children normalization fix before normalization (#4208)
* Test cases for failure condition

* Before normalizing ensure all elements have at least one text child. This is a normalization requirement that some normalization fixes require, so it must be done as an initial dedicated pass.
2021-05-05 19:39:37 -04:00
Andrew Herron
796389c7d3
Added insert_node path checking to match how other operations are applied (#4230)
* Added try/finally to editor.apply and Editor.withoutNormalizing for state cleanup

* Added insert_node path checking to match how other operations are applied
2021-05-05 19:31:13 -04:00
Claudéric Demers
c14e1fbc77
Fix duplicated content and other bugs related to drag and drop handling (#4238)
* Fix drag and drop logic

* Add changeset
2021-05-05 19:26:43 -04:00