Open renovate[bot] opened 1 month ago
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The overall change involves updating the version specifications for the slate
dependency across multiple packages. The primary modification expands the compatibility range from a fixed version, ^0.72.0
, to a broader range that includes ^0.72.0 || ^0.103.0
. This allows developers to utilize newer features and improvements from the slate
library while maintaining support for existing implementations.
Files | Change Summary |
---|---|
packages/basic-modules/package.json , packages/code-highlight/package.json , packages/core/package.json , packages/list-module/package.json , packages/table-module/package.json , packages/upload-image-module/package.json , packages/video-module/package.json |
Updated slate dependency from "^0.72.0" to "^0.72.0 || ^0.103.0" for broader compatibility. |
packages/editor/package.json |
Upgraded slate dependency from "^0.72.0" to "^0.103.0" , indicating a transition to a newer version with enhancements. |
🌼 In the meadow where rabbits play,
New versions dance and sway!
Slate's range now broad and bright,
A hop, a skip, a joyful flight!
Code and bunnies leap with glee,
For changes bring new harmony! 🐇✨
This PR contains the following updates:
^0.72.0
->^0.103.0
^0.72.0
->^0.72.0 \|\| ^0.103.0
Release Notes
ianstormtaylor/slate (slate)
### [`v0.103.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.103.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.102.0...slate@0.103.0) ##### Minor Changes - [#5621](https://redirect.github.com/ianstormtaylor/slate/pull/5621) [`d271c4be`](https://redirect.github.com/ianstormtaylor/slate/commit/d271c4be543027be2197f353d7ea61b51e9c48c6) Thanks [@felixfeng33](https://redirect.github.com/felixfeng33)! - Add a `shouldMergeNodesRemovePrevNode` editor method to control when `Transforms.mergeNodes` should remove the previous node rather than carrying out a merge operation. ##### Patch Changes - [#5620](https://redirect.github.com/ianstormtaylor/slate/pull/5620) [`4470f370`](https://redirect.github.com/ianstormtaylor/slate/commit/4470f370570ed1f2dce8b4b58d6117d3a87fa6c0) Thanks [@JohnCosta27](https://redirect.github.com/JohnCosta27)! - Making `normalizeNode` capable of normalizing erronous nodes, making slate more resilient. ### [`v0.102.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate-react%400.102.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.101.5...slate@0.102.0) ##### Patch Changes - [#5541](https://redirect.github.com/ianstormtaylor/slate/pull/5541) [`c2ae1eda`](https://redirect.github.com/ianstormtaylor/slate/commit/c2ae1eda91d0aae1cd63bd46af759c542c292a8a) Thanks [@12joan](https://redirect.github.com/12joan)! - Do not move selection outside inline node when composition starts ### [`v0.101.5`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.101.5) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.101.4...slate@0.101.5) ##### Patch Changes - [#5316](https://redirect.github.com/ianstormtaylor/slate/pull/5316) [`8ba3a9c0`](https://redirect.github.com/ianstormtaylor/slate/commit/8ba3a9c0348f73324b7c9ec32a4bbd348564d4f0) Thanks [@GeneralChauhan](https://redirect.github.com/GeneralChauhan)! - Punctuation Mark "+" Support Added ### [`v0.101.4`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.101.4) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.101.1...slate@0.101.4) ##### Patch Changes - [#5580](https://redirect.github.com/ianstormtaylor/slate/pull/5580) [`a374895b`](https://redirect.github.com/ianstormtaylor/slate/commit/a374895b3265ad60dbfe563eaa1a9415a440620e) Thanks [@Kaporos](https://redirect.github.com/Kaporos)! - Fix firefox double-click marks issue ### [`v0.101.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.101.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.100.0...slate@0.101.1) ##### Patch Changes - [#5562](https://redirect.github.com/ianstormtaylor/slate/pull/5562) [`91400a8e`](https://redirect.github.com/ianstormtaylor/slate/commit/91400a8e341b20194ce2fca078d8ba4b7a0476ea) Thanks [@YaoKaiLun](https://redirect.github.com/YaoKaiLun)! - Fix the 'select' parameter of the insertNodes function has been overridden ### [`v0.100.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate-react%400.100.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.94.1...slate@0.100.0) ##### Minor Changes - [#5526](https://redirect.github.com/ianstormtaylor/slate/pull/5526) [`623f4452`](https://redirect.github.com/ianstormtaylor/slate/commit/623f44521ee95be38c53b6def456ed8c5f16e14b) Thanks [@jkcs](https://redirect.github.com/jkcs)! - Add `onSelectionChange` and `onValueChange` in Slate React component - [#5528](https://redirect.github.com/ianstormtaylor/slate/pull/5528) [`c4c14882`](https://redirect.github.com/ianstormtaylor/slate/commit/c4c14882edf13828f6583a88e50754ce63583bd7) Thanks [@dylans](https://redirect.github.com/dylans)! - Update dependencies to React 18, Node 20, TS 5.2, etc. ### [`v0.94.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.94.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.94.0...slate@0.94.1) ##### Patch Changes - [#5415](https://redirect.github.com/ianstormtaylor/slate/pull/5415) [`01f0210b`](https://redirect.github.com/ianstormtaylor/slate/commit/01f0210bccfe2c3a81c252f527bad9ded36a68ff) Thanks [@zbeyens](https://redirect.github.com/zbeyens)! - `Editor.insertFragment`, `Editor.insertNode`, `Editor.insertText` now accept `options`. For all insert methods, the default location is now the editor selection if `at` is not defined, or the end of document if `editor.selection` is not defined. ### [`v0.94.0`](https://redirect.github.com/ianstormtaylor/slate/compare/07b049f59b2da68a01149ecb81ba23559327a452...33a1e9b9239726cdbc1d65a664d88ca3d1c8a41e) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.93.0...slate@0.94.0) ### [`v0.93.0`](https://redirect.github.com/ianstormtaylor/slate/compare/b32428e882ba0fbc62e9b0d758a4d87f7f9f152d...07b049f59b2da68a01149ecb81ba23559327a452) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.91.4...slate@0.93.0) ### [`v0.91.4`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.91.4) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.91.3...slate@0.91.4) ##### Patch Changes - [#5311](https://redirect.github.com/ianstormtaylor/slate/pull/5311) [`0ac72a62`](https://redirect.github.com/ianstormtaylor/slate/commit/0ac72a626c41a9e259dc945b408d09367eca4b3f) Thanks [@zbeyens](https://redirect.github.com/zbeyens)! - Fix [#5295](https://redirect.github.com/ianstormtaylor/slate/issues/5295) regression. `editor.shouldNormalize` new option: `initialDirtyPathsLength: number` ### [`v0.91.3`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.91.3) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.91.1...slate@0.91.3) ##### Patch Changes - [#5295](https://redirect.github.com/ianstormtaylor/slate/pull/5295) [`84f811a7`](https://redirect.github.com/ianstormtaylor/slate/commit/84f811a79c9b76050cb3dbe424efca3192cc44c6) Thanks [@zbeyens](https://redirect.github.com/zbeyens)! - New `editor` method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length. ```ts shouldNormalize: ({ iteration, dirtyPaths, operation, }: { iteration: number dirtyPaths: Path[] operation?: Operation }) => boolean ``` - `editor.onChange` signature change: `(options?: { operation?: Operation }) => void` where `operation` is triggering the function. - `editor.normalizeNode` signature change: `(entry: NodeEntry, options?: { operation?: Operation }) => void` where `operation` is triggering the function. - `EditorNormalizeOptions` new option `operation?: Operation` where `operation` is triggering the function. ### [`v0.91.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate-react%400.91.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.90.0...slate@0.91.1) ##### Patch Changes - [#5251](https://redirect.github.com/ianstormtaylor/slate/pull/5251) [`6fa4b954`](https://redirect.github.com/ianstormtaylor/slate/commit/6fa4b954a5e4c67cff87d00b1253b2a838c0db94) Thanks [@YaoKaiLun](https://redirect.github.com/YaoKaiLun)! - Fix the cursor jump to an unexpected position after deleting in android ### [`v0.90.0`](https://redirect.github.com/ianstormtaylor/slate/compare/cb133a785fe882a03f25d749a78110e20b3dd869...9de2e2c3162f88260e7255ed824dcd7b9d48110c) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.88.1...slate@0.90.0) ### [`v0.88.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.88.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.87.0...slate@0.88.1) ##### Patch Changes - [#5235](https://redirect.github.com/ianstormtaylor/slate/pull/5235) [`36203b3f`](https://redirect.github.com/ianstormtaylor/slate/commit/36203b3f10fc1ee154923c7c75ce7912fec1e6f7) Thanks [@ppiotrowicz](https://redirect.github.com/ppiotrowicz)! - Fixed Editor.above method that always returned undefined with Point location ### [`v0.87.0`](https://redirect.github.com/ianstormtaylor/slate/compare/a24ddd12cd5b2835a81bced2c1a5aa4e6dc42a48...a4cc21308781243250f06fc938ec252858823df3) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.86.0...slate@0.87.0) ### [`v0.86.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate-history%400.86.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.85.0...slate@0.86.0) ##### Patch Changes - [#5197](https://redirect.github.com/ianstormtaylor/slate/pull/5197) [`70b64dc8`](https://redirect.github.com/ianstormtaylor/slate/commit/70b64dc8f10199658ac09bfef141b56187498652) Thanks [@jacobcarpenter](https://redirect.github.com/jacobcarpenter)! - Fix isHistory check. ### [`v0.85.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate-history%400.85.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.84.0...slate@0.85.0) ##### Minor Changes - [#4717](https://redirect.github.com/ianstormtaylor/slate/pull/4717) [`d73026ee`](https://redirect.github.com/ianstormtaylor/slate/commit/d73026eed2d190da6153e91a914717978b155d8e) Thanks [@bryanph](https://redirect.github.com/bryanph)! - Changes how selections are stored in the history resulting in more consistent results ### [`v0.84.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.84.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.82.1...slate@0.84.0) ##### Minor Changes - [#5137](https://redirect.github.com/ianstormtaylor/slate/pull/5137) [`a2184d86`](https://redirect.github.com/ianstormtaylor/slate/commit/a2184d86571cfd0d89beb67863c444a988174937) Thanks [@mainhanu](https://redirect.github.com/mainhanu)! - transform.delete and transform.insertFragment performance optimize ### [`v0.82.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.82.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.82.0...slate@0.82.1) ##### Patch Changes - [#5069](https://redirect.github.com/ianstormtaylor/slate/pull/5069) [`46d113fe`](https://redirect.github.com/ianstormtaylor/slate/commit/46d113fe1e102c87772681fdd90a086e37a3200d) Thanks [@krenzke](https://redirect.github.com/krenzke)! - Expose getDirtyPaths method on Editor object to allow for customization ### [`v0.82.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.82.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/f55026f0ba4eeea272ab33385ae2a43d3b3d65a0...slate@0.82.0) ##### Patch Changes - [#4988](https://redirect.github.com/ianstormtaylor/slate/pull/4988) [`fbab6331`](https://redirect.github.com/ianstormtaylor/slate/commit/fbab6331a5ecebd9e98c6c8c87d6f4b3b7c43bd0) Thanks [@BitPhinix](https://redirect.github.com/BitPhinix)! - Android input handling rewrite, replace composition insert prefixes with decoration based mark placeholders ### [`v0.81.3`](https://redirect.github.com/ianstormtaylor/slate/compare/slate-hyperscript@0.77.0...f55026f0ba4eeea272ab33385ae2a43d3b3d65a0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.81.1...f55026f0ba4eeea272ab33385ae2a43d3b3d65a0) ### [`v0.81.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.81.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.81.0...slate@0.81.1) ##### Patch Changes - [#5015](https://redirect.github.com/ianstormtaylor/slate/pull/5015) [`9ae37287`](https://redirect.github.com/ianstormtaylor/slate/commit/9ae372875df1ee3ef6041f5d6bd2f57ee8291ea0) Thanks [@tithanayut](https://redirect.github.com/tithanayut)! - Fix deleteBackward behavior for Thai script where deleting N character(s) backward should delete N code point(s) instead of an entire grapheme cluster ### [`v0.81.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.81.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.80.0...slate@0.81.0) ##### Minor Changes - [#4999](https://redirect.github.com/ianstormtaylor/slate/pull/4999) [`fe13a8f9`](https://redirect.github.com/ianstormtaylor/slate/commit/fe13a8f9e750569342ee004951e34233ab6614bf) Thanks [@alexandercampbell](https://redirect.github.com/alexandercampbell)! - Add new Slate.Scrubber interface to allow scrubbing end user data from exception text. The default behavior remains unchanged. ### [`v0.80.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.80.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.78.0...slate@0.80.0) ##### Minor Changes - [#4892](https://redirect.github.com/ianstormtaylor/slate/pull/4892) [`d2fc25c3`](https://redirect.github.com/ianstormtaylor/slate/commit/d2fc25c3c31453597f59cd2ac6ba087a1beb1fe3) Thanks [@suilang](https://redirect.github.com/suilang)! - update insertText logic when selection is not collapsed ##### Patch Changes - [#5008](https://redirect.github.com/ianstormtaylor/slate/pull/5008) [`e9ea2815`](https://redirect.github.com/ianstormtaylor/slate/commit/e9ea2815950fc6b78fb0a2ba0e5d95c8553ac023) Thanks [@steve-codaio](https://redirect.github.com/steve-codaio)! - Revert to previous position behavior around inline voids ### [`v0.78.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.78.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.77.2...slate@0.78.0) ##### Minor Changes - [#4974](https://redirect.github.com/ianstormtaylor/slate/pull/4974) [`3b7a1bf7`](https://redirect.github.com/ianstormtaylor/slate/commit/3b7a1bf72d0c3951416c771f7f149bfbda411111) Thanks [@dylans](https://redirect.github.com/dylans)! - Added types for options and common string literals, thanks [@JoshuaKGoldberg](https://redirect.github.com/JoshuaKGoldberg) ### [`v0.77.2`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.77.2) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.77.0...slate@0.77.2) ##### Patch Changes - [#4952](https://redirect.github.com/ianstormtaylor/slate/pull/4952) [`9ce0a08c`](https://redirect.github.com/ianstormtaylor/slate/commit/9ce0a08c2a8b2b72df14141a06ca08825a66d472) Thanks [@steve-codaio](https://redirect.github.com/steve-codaio)! - Fix positions iteration when starting inside an inline void node ### [`v0.77.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.77.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.76.1...slate@0.77.0) ##### Patch Changes - [#4939](https://redirect.github.com/ianstormtaylor/slate/pull/4939) [`c39c8082`](https://redirect.github.com/ianstormtaylor/slate/commit/c39c8082a97dec8fc9ba64568d817ba87e348b48) Thanks [@ahoisl](https://redirect.github.com/ahoisl)! - Fix pointRef leaks caused by not unref'ing ### [`v0.76.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.76.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.76.0...slate@0.76.1) ##### Patch Changes - [#4914](https://redirect.github.com/ianstormtaylor/slate/pull/4914) [`aff67312`](https://redirect.github.com/ianstormtaylor/slate/commit/aff67312cbfa7e45df5cf6abcaec9f4f7d5f1a89) Thanks [@sennpang](https://redirect.github.com/sennpang)! - Fixed Triple click selection and copy\&paste in read-only mode ### [`v0.76.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.76.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.75.0...slate@0.76.0) ##### Minor Changes - [#4873](https://redirect.github.com/ianstormtaylor/slate/pull/4873) [`20acca4b`](https://redirect.github.com/ianstormtaylor/slate/commit/20acca4bc8f31bd1aa6fbca2c49aaae5f31cadfe) Thanks [@bryanph](https://redirect.github.com/bryanph)! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now. If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead. ##### Patch Changes - [#4912](https://redirect.github.com/ianstormtaylor/slate/pull/4912) [`43ca2b56`](https://redirect.github.com/ianstormtaylor/slate/commit/43ca2b56c8bd8bcc30dd38808dd191f804d53ae4) Thanks [@zhugexinxin](https://redirect.github.com/zhugexinxin)! - feat: add merge to setNodes and test ### [`v0.75.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.75.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.73.1...slate@0.75.0) ##### Patch Changes - [#4889](https://redirect.github.com/ianstormtaylor/slate/pull/4889) [`970523f`](https://redirect.github.com/ianstormtaylor/slate/commit/970523f881bf1918f91cb9de87c961dfb965e8a1)([`970523f`](https://redirect.github.com/ianstormtaylor/slate/commit/970523f881bf1918f91cb9de87c961dfb965e8a1)) Thanks [@zhugexinxin](https://redirect.github.com/zhugexinxin)! - feat: add custom compare node props ### [`v0.73.1`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.73.1) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.73.0...slate@0.73.1) ##### Patch Changes - [#4858](https://redirect.github.com/ianstormtaylor/slate/pull/4858) [`33be22f3`](https://redirect.github.com/ianstormtaylor/slate/commit/33be22f3e3a0321ded199b13c0d97ae577c6b941) Thanks [@TheSpyder](https://redirect.github.com/TheSpyder)! - Reverted [#4804](https://redirect.github.com/ianstormtaylor/slate/issues/4804) as it triggered an exception when inserting text with multi-block selection ### [`v0.73.0`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.73.0) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.72.8...slate@0.73.0) ##### Minor Changes - [#4848](https://redirect.github.com/ianstormtaylor/slate/pull/4848) [`482b090e`](https://redirect.github.com/ianstormtaylor/slate/commit/482b090e6f6f4c5fbc85e6dd2ea65387156ae8b5) Thanks [@rockettomatooo](https://redirect.github.com/rockettomatooo)! - fix point transform for insert_text operations to account for affinity ### [`v0.72.8`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.72.8) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.72.3...slate@0.72.8) ##### Patch Changes - [#4804](https://redirect.github.com/ianstormtaylor/slate/pull/4804) [`03861afc`](https://redirect.github.com/ianstormtaylor/slate/commit/03861afc62c3b27339d20151ca8a3e52f51ff973) Thanks [@suilang](https://redirect.github.com/suilang)! - update insertText logic when selection is not collapsed ### [`v0.72.3`](https://redirect.github.com/ianstormtaylor/slate/releases/tag/slate%400.72.3) [Compare Source](https://redirect.github.com/ianstormtaylor/slate/compare/slate@0.72.0...slate@0.72.3) ##### Patch Changes - [#4703](https://redirect.github.com/ianstormtaylor/slate/pull/4703) [`205d4b7e`](https://redirect.github.com/ianstormtaylor/slate/commit/205d4b7e66b30ec911e8968a736593aaf2be1567) Thanks [@e1himself](https://redirect.github.com/e1himself)! - Add tests for Editor.unhangRange() behaviorConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.