From f5944455508eafa20b552cf30852fa4047f634e9 Mon Sep 17 00:00:00 2001 From: pubuzhixing8 Date: Tue, 26 Mar 2024 14:51:02 +0800 Subject: [PATCH] build: release 16.1.0 --- .changeset/calm-jokes-shout.md | 5 -- .changeset/chatty-worms-melt.md | 6 --- .changeset/cold-dryers-carry.md | 5 -- .changeset/cyan-jars-cry.md | 5 -- .changeset/famous-feet-bow.md | 5 -- .changeset/five-lies-vanish.md | 10 ---- .changeset/happy-dancers-fix.md | 6 --- .changeset/hip-planes-grin.md | 5 -- .changeset/honest-wolves-mate.md | 5 -- .changeset/large-ladybugs-poke.md | 5 -- .changeset/loud-meals-knock.md | 5 -- .changeset/modern-moose-pull.md | 5 -- .changeset/modern-shoes-hear.md | 5 -- .changeset/nice-parrots-rest.md | 5 -- .changeset/ninety-snakes-yawn.md | 5 -- .changeset/pre.json | 35 -------------- .changeset/rare-snails-join.md | 5 -- .changeset/red-poets-grin.md | 5 -- .changeset/shy-weeks-report.md | 5 -- .changeset/silly-pillows-mate.md | 5 -- .changeset/slimy-cycles-share.md | 5 -- .changeset/strange-flowers-suffer.md | 5 -- .changeset/stupid-files-wait.md | 5 -- .changeset/stupid-grapes-warn.md | 5 -- .changeset/tender-cobras-walk.md | 5 -- .changeset/twenty-geckos-roll.md | 9 ---- .changeset/witty-walls-hunt.md | 6 --- packages/CHANGELOG.md | 68 ++++++++++++++++++++++++++++ packages/package.json | 2 +- 29 files changed, 69 insertions(+), 178 deletions(-) delete mode 100644 .changeset/calm-jokes-shout.md delete mode 100644 .changeset/chatty-worms-melt.md delete mode 100644 .changeset/cold-dryers-carry.md delete mode 100644 .changeset/cyan-jars-cry.md delete mode 100644 .changeset/famous-feet-bow.md delete mode 100644 .changeset/five-lies-vanish.md delete mode 100644 .changeset/happy-dancers-fix.md delete mode 100644 .changeset/hip-planes-grin.md delete mode 100644 .changeset/honest-wolves-mate.md delete mode 100644 .changeset/large-ladybugs-poke.md delete mode 100644 .changeset/loud-meals-knock.md delete mode 100644 .changeset/modern-moose-pull.md delete mode 100644 .changeset/modern-shoes-hear.md delete mode 100644 .changeset/nice-parrots-rest.md delete mode 100644 .changeset/ninety-snakes-yawn.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/rare-snails-join.md delete mode 100644 .changeset/red-poets-grin.md delete mode 100644 .changeset/shy-weeks-report.md delete mode 100644 .changeset/silly-pillows-mate.md delete mode 100644 .changeset/slimy-cycles-share.md delete mode 100644 .changeset/strange-flowers-suffer.md delete mode 100644 .changeset/stupid-files-wait.md delete mode 100644 .changeset/stupid-grapes-warn.md delete mode 100644 .changeset/tender-cobras-walk.md delete mode 100644 .changeset/twenty-geckos-roll.md delete mode 100644 .changeset/witty-walls-hunt.md diff --git a/.changeset/calm-jokes-shout.md b/.changeset/calm-jokes-shout.md deleted file mode 100644 index dada0d7..0000000 --- a/.changeset/calm-jokes-shout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -support custom elements to set the position of children elements diff --git a/.changeset/chatty-worms-melt.md b/.changeset/chatty-worms-melt.md deleted file mode 100644 index f0f5d5d..0000000 --- a/.changeset/chatty-worms-melt.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'slate-angular': minor ---- - -initialize list render and leaves render to optimized rendering performance -deprecated container diff --git a/.changeset/cold-dryers-carry.md b/.changeset/cold-dryers-carry.md deleted file mode 100644 index e9e404d..0000000 --- a/.changeset/cold-dryers-carry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -the beforeinput event will not fire while use press `deleteBackward` on void block element since remove contentEditable form void text element, so invoke deleteBackward manually as inline void element diff --git a/.changeset/cyan-jars-cry.md b/.changeset/cyan-jars-cry.md deleted file mode 100644 index dbc21a7..0000000 --- a/.changeset/cyan-jars-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": minor ---- - -support suppressThrow in toSlateRange/toSlatePoint/isLeafInEditor to check domSelection is valid diff --git a/.changeset/famous-feet-bow.md b/.changeset/famous-feet-bow.md deleted file mode 100644 index 1ea8c58..0000000 --- a/.changeset/famous-feet-bow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -add hasAfterContextChange that the timing is after detectChanges diff --git a/.changeset/five-lies-vanish.md b/.changeset/five-lies-vanish.md deleted file mode 100644 index 05a9a0f..0000000 --- a/.changeset/five-lies-vanish.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"slate-angular": patch ---- - -Update README: - -1. depend on slate@0.101.5 - -2. remove from template of custom text component - diff --git a/.changeset/happy-dancers-fix.md b/.changeset/happy-dancers-fix.md deleted file mode 100644 index a595448..0000000 --- a/.changeset/happy-dancers-fix.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"slate-angular": patch ---- - -Fix error when triple-clicking a word preceding a `contenteditable="false"` DOM node in Chrome -refer to: https://github.com/ianstormtaylor/slate/pull/5343 diff --git a/.changeset/hip-planes-grin.md b/.changeset/hip-planes-grin.md deleted file mode 100644 index 0353fba..0000000 --- a/.changeset/hip-planes-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -remove path from SlateElementContext diff --git a/.changeset/honest-wolves-mate.md b/.changeset/honest-wolves-mate.md deleted file mode 100644 index ac971ae..0000000 --- a/.changeset/honest-wolves-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': minor ---- - -Update dependencies (like slate) to latest versions diff --git a/.changeset/large-ladybugs-poke.md b/.changeset/large-ladybugs-poke.md deleted file mode 100644 index 4158988..0000000 --- a/.changeset/large-ladybugs-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -support overridable methods expanded to control the expanded or collapsed state of children view, such as toggle-list plugin diff --git a/.changeset/loud-meals-knock.md b/.changeset/loud-meals-knock.md deleted file mode 100644 index d80dbb1..0000000 --- a/.changeset/loud-meals-knock.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -isTargetInsideVoid add suppressThrow config diff --git a/.changeset/modern-moose-pull.md b/.changeset/modern-moose-pull.md deleted file mode 100644 index 7e59c1e..0000000 --- a/.changeset/modern-moose-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -update block card append timing diff --git a/.changeset/modern-shoes-hear.md b/.changeset/modern-shoes-hear.md deleted file mode 100644 index 1ca021f..0000000 --- a/.changeset/modern-shoes-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -add contenteditable = 'false' when element is void(Revert recent logic changes) diff --git a/.changeset/nice-parrots-rest.md b/.changeset/nice-parrots-rest.md deleted file mode 100644 index 0df156a..0000000 --- a/.changeset/nice-parrots-rest.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -use parent element of outlet to insert fragment diff --git a/.changeset/ninety-snakes-yawn.md b/.changeset/ninety-snakes-yawn.md deleted file mode 100644 index aad32f1..0000000 --- a/.changeset/ninety-snakes-yawn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -get template's root nodes by data-slate-node and data-slate-leaf attribute to avoid operating other HTMLElement diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index a7f286c..0000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "mode": "exit", - "tag": "next", - "initialVersions": { - "slate-angular": "16.1.0-next" - }, - "changesets": [ - "calm-jokes-shout", - "chatty-worms-melt", - "cold-dryers-carry", - "cyan-jars-cry", - "famous-feet-bow", - "five-lies-vanish", - "happy-dancers-fix", - "hip-planes-grin", - "honest-wolves-mate", - "large-ladybugs-poke", - "loud-meals-knock", - "modern-moose-pull", - "modern-shoes-hear", - "nice-parrots-rest", - "ninety-snakes-yawn", - "rare-snails-join", - "red-poets-grin", - "shy-weeks-report", - "silly-pillows-mate", - "slimy-cycles-share", - "strange-flowers-suffer", - "stupid-files-wait", - "stupid-grapes-warn", - "tender-cobras-walk", - "twenty-geckos-roll", - "witty-walls-hunt" - ] -} diff --git a/.changeset/rare-snails-join.md b/.changeset/rare-snails-join.md deleted file mode 100644 index d3c85bc..0000000 --- a/.changeset/rare-snails-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': minor ---- - -improve isLineBreakEmptyString、forEachMovedItem、setBaseAndExtent performance issues diff --git a/.changeset/red-poets-grin.md b/.changeset/red-poets-grin.md deleted file mode 100644 index e53f97e..0000000 --- a/.changeset/red-poets-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -fix query void text error diff --git a/.changeset/shy-weeks-report.md b/.changeset/shy-weeks-report.md deleted file mode 100644 index feac26e..0000000 --- a/.changeset/shy-weeks-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -prevent move selection when selection is in left or right cursor when click up diff --git a/.changeset/silly-pillows-mate.md b/.changeset/silly-pillows-mate.md deleted file mode 100644 index 305afb3..0000000 --- a/.changeset/silly-pillows-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -export throttle utils diff --git a/.changeset/slimy-cycles-share.md b/.changeset/slimy-cycles-share.md deleted file mode 100644 index bf330a2..0000000 --- a/.changeset/slimy-cycles-share.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -should invoke initialize when previous children is empty diff --git a/.changeset/strange-flowers-suffer.md b/.changeset/strange-flowers-suffer.md deleted file mode 100644 index e8551de..0000000 --- a/.changeset/strange-flowers-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -cancel throttleRAF for setBaseAndExtent diff --git a/.changeset/stupid-files-wait.md b/.changeset/stupid-files-wait.md deleted file mode 100644 index 93b095f..0000000 --- a/.changeset/stupid-files-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-angular': patch ---- - -update detect changes timing when set context diff --git a/.changeset/stupid-grapes-warn.md b/.changeset/stupid-grapes-warn.md deleted file mode 100644 index 19cb1cc..0000000 --- a/.changeset/stupid-grapes-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -execute detectChanges after create black card component to avoid incorrect render timing of left and right caret diff --git a/.changeset/tender-cobras-walk.md b/.changeset/tender-cobras-walk.md deleted file mode 100644 index 6e1d9bd..0000000 --- a/.changeset/tender-cobras-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"slate-angular": patch ---- - -update NODE_TO_INDEX and NODE_TO_PARENT when diffResult is undefined diff --git a/.changeset/twenty-geckos-roll.md b/.changeset/twenty-geckos-roll.md deleted file mode 100644 index 52ab793..0000000 --- a/.changeset/twenty-geckos-roll.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"slate-angular": patch ---- - -handle triple-click -remove the attribute of editable='false' in void element to void strange behavior when click before image element -refer to: -https://github.com/ianstormtaylor/slate/pull/4588 -https://github.com/ianstormtaylor/slate/pull/4965 diff --git a/.changeset/witty-walls-hunt.md b/.changeset/witty-walls-hunt.md deleted file mode 100644 index 6299ad7..0000000 --- a/.changeset/witty-walls-hunt.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"slate-angular": patch ---- - -add afterViewInit method to handle performance issue -set contenteditable will cause performance issue during dynamic created component execute detectChanges diff --git a/packages/CHANGELOG.md b/packages/CHANGELOG.md index 8cc799e..e75df2e 100644 --- a/packages/CHANGELOG.md +++ b/packages/CHANGELOG.md @@ -1,5 +1,73 @@ # Changelog +## 16.1.0 + +### Minor Changes + +- [#242](https://github.com/worktile/slate-angular/pull/242) [`bcfe6ab`](https://github.com/worktile/slate-angular/commit/bcfe6abfde24189db8040459f0bfbaa47dce911a) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - initialize list render and leaves render to optimized rendering performance + deprecated container + +- [`4b7cbb6`](https://github.com/worktile/slate-angular/commit/4b7cbb6bcaed1ef1aaa9f51efc24fbb264bc9e4e) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support suppressThrow in toSlateRange/toSlatePoint/isLeafInEditor to check domSelection is valid + +- [#246](https://github.com/worktile/slate-angular/pull/246) [`2fa7dd7`](https://github.com/worktile/slate-angular/commit/2fa7dd72d29c18fbbae0998ca94c3800c75839fd) Thanks [@Bricklou](https://github.com/Bricklou)! - Update dependencies (like slate) to latest versions + +- [#242](https://github.com/worktile/slate-angular/pull/242) [`fface3b`](https://github.com/worktile/slate-angular/commit/fface3b4fc907b7f569a06d23a2ebf22bf2803ba) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - improve isLineBreakEmptyString、forEachMovedItem、setBaseAndExtent performance issues + +### Patch Changes + +- [#250](https://github.com/worktile/slate-angular/pull/250) [`40f4214`](https://github.com/worktile/slate-angular/commit/40f4214e86ad60b30ce7cf9a1c4cf6287e88823d) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support custom elements to set the position of children elements + +- [`f3395b1`](https://github.com/worktile/slate-angular/commit/f3395b1937979236cade5d510c4ed62f1bfaa06a) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - the beforeinput event will not fire while use press `deleteBackward` on void block element since remove contentEditable form void text element, so invoke deleteBackward manually as inline void element + +- [`5d7d22d`](https://github.com/worktile/slate-angular/commit/5d7d22d5fe11cf2a666b4b5dc3d5613b83035f09) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add hasAfterContextChange that the timing is after detectChanges + +- [`b494e6d`](https://github.com/worktile/slate-angular/commit/b494e6d8587562b0dae5d356c9acbabb8f714fa9) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - Update README: + + 1. depend on slate@0.101.5 + 2. remove from template of custom text component + +- [`4ef6370`](https://github.com/worktile/slate-angular/commit/4ef6370b65494715e2190afab64d46ecf11bfd14) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - Fix error when triple-clicking a word preceding a `contenteditable="false"` DOM node in Chrome + refer to: https://github.com/ianstormtaylor/slate/pull/5343 + +- [`6eee752`](https://github.com/worktile/slate-angular/commit/6eee752297d0e447e9849e29a8c64b3691929bcc) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - remove path from SlateElementContext + +- [`db55c5c`](https://github.com/worktile/slate-angular/commit/db55c5c958de8d473504cc5a391d9098f1d178d7) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - support overridable methods expanded to control the expanded or collapsed state of children view, such as toggle-list plugin + +- [`78bcc2b`](https://github.com/worktile/slate-angular/commit/78bcc2b539debcb69c55f917ddd7f4a526614452) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - isTargetInsideVoid add suppressThrow config + +- [`f122a37`](https://github.com/worktile/slate-angular/commit/f122a3770ea0851688ba4b7292e7c05b496b36c8) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - update block card append timing + +- [`f1e3831`](https://github.com/worktile/slate-angular/commit/f1e3831d107defbc0e1c4ca9a2e9fb035fa08ea3) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add contenteditable = 'false' when element is void(Revert recent logic changes) + +- [`0657338`](https://github.com/worktile/slate-angular/commit/065733809960ec3c50c1c24f5bb92f1944760bfc) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - use parent element of outlet to insert fragment + +- [`34a268a`](https://github.com/worktile/slate-angular/commit/34a268a4ce2291432c4951b86d2c0ff1d6748fe3) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - get template's root nodes by data-slate-node and data-slate-leaf attribute to avoid operating other HTMLElement + +- [`fa62932`](https://github.com/worktile/slate-angular/commit/fa629326a82c4245f5d2c3d1ce99ed734c5f418b) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - fix query void text error + +- [`52fcaa1`](https://github.com/worktile/slate-angular/commit/52fcaa1f7cb6a680c02cdbc1a96059e30e8f1b53) Thanks [@huanhuanwa](https://github.com/huanhuanwa)! - prevent move selection when selection is in left or right cursor when click up + +- [`b4f5020`](https://github.com/worktile/slate-angular/commit/b4f5020e1406cf147f5cc7c9b35ac11d5486dcde) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - export throttle utils + +- [`e59cc1d`](https://github.com/worktile/slate-angular/commit/e59cc1db93672b9379b0937f72e21b86a2d28ead) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - should invoke initialize when previous children is empty + +- [`0c59f49`](https://github.com/worktile/slate-angular/commit/0c59f492371b901c3bb7791b9a2bf2cc166e42af) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - cancel throttleRAF for setBaseAndExtent + +- [`ae78be8`](https://github.com/worktile/slate-angular/commit/ae78be824c2a6fb03ea88c3c9920ff122da1451d) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - update detect changes timing when set context + +- [`a43d313`](https://github.com/worktile/slate-angular/commit/a43d313d7bcfdfa277a2093d2687d32685561264) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - execute detectChanges after create black card component to avoid incorrect render timing of left and right caret + +- [`edd539d`](https://github.com/worktile/slate-angular/commit/edd539d6abd59787c2c9c65ca5fe0effddfd31e1) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - update NODE_TO_INDEX and NODE_TO_PARENT when diffResult is undefined + +- [#253](https://github.com/worktile/slate-angular/pull/253) [`fa01d81`](https://github.com/worktile/slate-angular/commit/fa01d81fbfd3c932cb4147d8175da46ff42cca29) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - handle triple-click + remove the attribute of editable='false' in void element to void strange behavior when click before image element + refer to: + https://github.com/ianstormtaylor/slate/pull/4588 + https://github.com/ianstormtaylor/slate/pull/4965 + +- [`46d0659`](https://github.com/worktile/slate-angular/commit/46d0659f932923224af411798b57255f7003327e) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - add afterViewInit method to handle performance issue + set contenteditable will cause performance issue during dynamic created component execute detectChanges + ## 16.1.0-next.20 ### Patch Changes diff --git a/packages/package.json b/packages/package.json index 99fc641..54f124e 100644 --- a/packages/package.json +++ b/packages/package.json @@ -1,6 +1,6 @@ { "name": "slate-angular", - "version": "16.1.0-next.20", + "version": "16.1.0", "description": "Angular view layer for Slate", "author": "pubuzhixing ", "homepage": "https://github.com/worktile/slate-angular#readme",