From 8b11ef7201206e9d3874c194a0532f4fe8c7e8c9 Mon Sep 17 00:00:00 2001 From: John Flockton Date: Thu, 9 Feb 2023 14:03:17 +0000 Subject: [PATCH] v0.8.0 (#3866) --- CHANGELOG.md | 17 +++++++++++ package.json | 2 +- packages/lexical-clipboard/package.json | 12 ++++---- packages/lexical-code/package.json | 6 ++-- packages/lexical-dragon/package.json | 4 +-- packages/lexical-file/package.json | 4 +-- packages/lexical-hashtag/package.json | 6 ++-- packages/lexical-headless/package.json | 4 +-- packages/lexical-history/package.json | 6 ++-- packages/lexical-html/package.json | 6 ++-- packages/lexical-link/package.json | 6 ++-- packages/lexical-list/package.json | 6 ++-- packages/lexical-mark/package.json | 6 ++-- packages/lexical-markdown/package.json | 16 +++++----- packages/lexical-offset/package.json | 4 +-- packages/lexical-overflow/package.json | 4 +-- packages/lexical-plain-text/package.json | 10 +++---- packages/lexical-playground/package.json | 32 ++++++++++---------- packages/lexical-react/package.json | 38 ++++++++++++------------ packages/lexical-rich-text/package.json | 10 +++---- packages/lexical-selection/package.json | 4 +-- packages/lexical-table/package.json | 6 ++-- packages/lexical-text/package.json | 4 +-- packages/lexical-utils/package.json | 10 +++---- packages/lexical-yjs/package.json | 6 ++-- packages/lexical/package.json | 2 +- packages/shared/package.json | 4 +-- 27 files changed, 126 insertions(+), 109 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac232ae422a..a26270523e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +## v0.8.9 (2023-02-09) + +This release includes some breaking changes, including: + - Remove of `indentList` and `outdentList` from `@lexical/list`. + - Refactor of the `LexicalContentEditable` types from `@lexical/react` to make them more accurate with `HTMLDivElement` attributes. + +This release adds functionality to apply node transforms to node replacements, it allows users to specify tab indentation sizes, and improved support for tracking the origin of YJS updates for collaborative editing. + +- Ensure deletions capture existing formatting (#3867) Dominic Gannaway +- Add style properties to RangeSelection (#3863) Dominic Gannaway +- List indentation simplified (#3809) EgonBolton +- Update ContentEditable types (#3580) John Flockton +- Allow the format property to be omitted (#3812) Karibash +- Allow users to customise the indentation of tabs (#3802) John Flockton +- Apply node transform not only to the original node but also to the overriding node (#3639) mizuno +- feat: set the update tag from yjs based on the origin (#3608) El-Hussein Abdelraouf + ## v0.7.9 (2023-02-09) - Fix bad import into core (#3861) Dominic Gannaway diff --git a/package.json b/package.json index 1431d0ef499..97a5a9bc287 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@lexical/monorepo", "description": "Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.", - "version": "0.7.9", + "version": "0.8.0", "license": "MIT", "private": true, "workspaces": [ diff --git a/packages/lexical-clipboard/package.json b/packages/lexical-clipboard/package.json index 9fe1729e628..995de741203 100644 --- a/packages/lexical-clipboard/package.json +++ b/packages/lexical-clipboard/package.json @@ -9,16 +9,16 @@ "paste" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalClipboard.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9", - "@lexical/list": "0.7.9", - "@lexical/selection": "0.7.9", - "@lexical/html": "0.7.9" + "@lexical/utils": "0.8.0", + "@lexical/list": "0.8.0", + "@lexical/selection": "0.8.0", + "@lexical/html": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-code/package.json b/packages/lexical-code/package.json index 665724e6c3b..326f909a6ca 100644 --- a/packages/lexical-code/package.json +++ b/packages/lexical-code/package.json @@ -8,13 +8,13 @@ "code" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalCode.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9", + "@lexical/utils": "0.8.0", "prismjs": "^1.27.0" }, "repository": { diff --git a/packages/lexical-dragon/package.json b/packages/lexical-dragon/package.json index a139b84528c..1b46e513d40 100644 --- a/packages/lexical-dragon/package.json +++ b/packages/lexical-dragon/package.json @@ -9,10 +9,10 @@ "accessibility" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalDragon.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-file/package.json b/packages/lexical-file/package.json index a6774d3ea25..b31d7912e11 100644 --- a/packages/lexical-file/package.json +++ b/packages/lexical-file/package.json @@ -10,10 +10,10 @@ "export" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalFile.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-hashtag/package.json b/packages/lexical-hashtag/package.json index d526b1a4835..f7a8f18a755 100644 --- a/packages/lexical-hashtag/package.json +++ b/packages/lexical-hashtag/package.json @@ -8,13 +8,13 @@ "hashtag" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalHashtag.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-headless/package.json b/packages/lexical-headless/package.json index 37880620236..a7714f687c6 100644 --- a/packages/lexical-headless/package.json +++ b/packages/lexical-headless/package.json @@ -8,10 +8,10 @@ "headless" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalHeadless.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-history/package.json b/packages/lexical-history/package.json index b5b79deaf9d..10a16e9820d 100644 --- a/packages/lexical-history/package.json +++ b/packages/lexical-history/package.json @@ -8,13 +8,13 @@ "history" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalHistory.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-html/package.json b/packages/lexical-html/package.json index c08b8a4e103..0ba2476c2ed 100644 --- a/packages/lexical-html/package.json +++ b/packages/lexical-html/package.json @@ -8,10 +8,10 @@ "html" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalHtml.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", @@ -19,6 +19,6 @@ "directory": "packages/lexical-html" }, "dependencies": { - "@lexical/selection": "0.7.9" + "@lexical/selection": "0.8.0" } } diff --git a/packages/lexical-link/package.json b/packages/lexical-link/package.json index 80b300392c3..819391c07f9 100644 --- a/packages/lexical-link/package.json +++ b/packages/lexical-link/package.json @@ -8,13 +8,13 @@ "link" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalLink.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-list/package.json b/packages/lexical-list/package.json index 8bb122c79af..f328e89fed2 100644 --- a/packages/lexical-list/package.json +++ b/packages/lexical-list/package.json @@ -8,13 +8,13 @@ "list" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalList.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-mark/package.json b/packages/lexical-mark/package.json index 3f5a94595d4..2852c487116 100644 --- a/packages/lexical-mark/package.json +++ b/packages/lexical-mark/package.json @@ -8,13 +8,13 @@ "mark" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalMark.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-markdown/package.json b/packages/lexical-markdown/package.json index af612ad9ef9..158c9721cc7 100644 --- a/packages/lexical-markdown/package.json +++ b/packages/lexical-markdown/package.json @@ -8,18 +8,18 @@ "markdown" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalMarkdown.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9", - "@lexical/code": "0.7.9", - "@lexical/text": "0.7.9", - "@lexical/rich-text": "0.7.9", - "@lexical/list": "0.7.9", - "@lexical/link": "0.7.9" + "@lexical/utils": "0.8.0", + "@lexical/code": "0.8.0", + "@lexical/text": "0.8.0", + "@lexical/rich-text": "0.8.0", + "@lexical/list": "0.8.0", + "@lexical/link": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-offset/package.json b/packages/lexical-offset/package.json index 8d5686cc014..b45bacd3f8b 100644 --- a/packages/lexical-offset/package.json +++ b/packages/lexical-offset/package.json @@ -8,10 +8,10 @@ "offset" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalOffset.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-overflow/package.json b/packages/lexical-overflow/package.json index 7a5907b6dcb..e6b5d43da27 100644 --- a/packages/lexical-overflow/package.json +++ b/packages/lexical-overflow/package.json @@ -8,10 +8,10 @@ "overflow" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalOverflow.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-plain-text/package.json b/packages/lexical-plain-text/package.json index 18ad37fba76..645441dc6b8 100644 --- a/packages/lexical-plain-text/package.json +++ b/packages/lexical-plain-text/package.json @@ -7,13 +7,13 @@ "plain-text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalPlainText.js", "peerDependencies": { - "lexical": "0.7.9", - "@lexical/utils": "0.7.9", - "@lexical/selection": "0.7.9", - "@lexical/clipboard": "0.7.9" + "lexical": "0.8.0", + "@lexical/utils": "0.8.0", + "@lexical/selection": "0.8.0", + "@lexical/clipboard": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-playground/package.json b/packages/lexical-playground/package.json index 3a538e70a9d..959143d1903 100644 --- a/packages/lexical-playground/package.json +++ b/packages/lexical-playground/package.json @@ -1,6 +1,6 @@ { "name": "lexical-playground", - "version": "0.7.9", + "version": "0.8.0", "private": true, "scripts": { "dev": "vite --host", @@ -11,22 +11,22 @@ }, "dependencies": { "@excalidraw/excalidraw": "0.11.0", - "@lexical/clipboard": "0.7.9", - "@lexical/code": "0.7.9", - "@lexical/file": "0.7.9", - "@lexical/hashtag": "0.7.9", - "@lexical/link": "0.7.9", - "@lexical/list": "0.7.9", - "@lexical/mark": "0.7.9", - "@lexical/overflow": "0.7.9", - "@lexical/plain-text": "0.7.9", - "@lexical/react": "0.7.9", - "@lexical/rich-text": "0.7.9", - "@lexical/selection": "0.7.9", - "@lexical/table": "0.7.9", - "@lexical/utils": "0.7.9", + "@lexical/clipboard": "0.8.0", + "@lexical/code": "0.8.0", + "@lexical/file": "0.8.0", + "@lexical/hashtag": "0.8.0", + "@lexical/link": "0.8.0", + "@lexical/list": "0.8.0", + "@lexical/mark": "0.8.0", + "@lexical/overflow": "0.8.0", + "@lexical/plain-text": "0.8.0", + "@lexical/react": "0.8.0", + "@lexical/rich-text": "0.8.0", + "@lexical/selection": "0.8.0", + "@lexical/table": "0.8.0", + "@lexical/utils": "0.8.0", "katex": "^0.15.2", - "lexical": "0.7.9", + "lexical": "0.8.0", "lodash-es": "^4.17.21", "prettier": "^2.3.2", "react": "^18.2.0", diff --git a/packages/lexical-react/package.json b/packages/lexical-react/package.json index d3e3f3c814d..06d19c55d29 100644 --- a/packages/lexical-react/package.json +++ b/packages/lexical-react/package.json @@ -8,29 +8,29 @@ "rich-text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "dependencies": { - "@lexical/clipboard": "0.7.9", - "@lexical/code": "0.7.9", - "@lexical/dragon": "0.7.9", - "@lexical/hashtag": "0.7.9", - "@lexical/history": "0.7.9", - "@lexical/link": "0.7.9", - "@lexical/list": "0.7.9", - "@lexical/mark": "0.7.9", - "@lexical/markdown": "0.7.9", - "@lexical/overflow": "0.7.9", - "@lexical/plain-text": "0.7.9", - "@lexical/rich-text": "0.7.9", - "@lexical/selection": "0.7.9", - "@lexical/table": "0.7.9", - "@lexical/text": "0.7.9", - "@lexical/utils": "0.7.9", - "@lexical/yjs": "0.7.9", + "@lexical/clipboard": "0.8.0", + "@lexical/code": "0.8.0", + "@lexical/dragon": "0.8.0", + "@lexical/hashtag": "0.8.0", + "@lexical/history": "0.8.0", + "@lexical/link": "0.8.0", + "@lexical/list": "0.8.0", + "@lexical/mark": "0.8.0", + "@lexical/markdown": "0.8.0", + "@lexical/overflow": "0.8.0", + "@lexical/plain-text": "0.8.0", + "@lexical/rich-text": "0.8.0", + "@lexical/selection": "0.8.0", + "@lexical/table": "0.8.0", + "@lexical/text": "0.8.0", + "@lexical/utils": "0.8.0", + "@lexical/yjs": "0.8.0", "react-error-boundary": "^3.1.4" }, "peerDependencies": { - "lexical": "0.7.9", + "lexical": "0.8.0", "react": ">=17.x", "react-dom": ">=17.x" }, diff --git a/packages/lexical-rich-text/package.json b/packages/lexical-rich-text/package.json index 8e6f6468125..b3f80fa24ab 100644 --- a/packages/lexical-rich-text/package.json +++ b/packages/lexical-rich-text/package.json @@ -7,13 +7,13 @@ "rich-text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalRichText.js", "peerDependencies": { - "lexical": "0.7.9", - "@lexical/selection": "0.7.9", - "@lexical/clipboard": "0.7.9", - "@lexical/utils": "0.7.9" + "lexical": "0.8.0", + "@lexical/selection": "0.8.0", + "@lexical/clipboard": "0.8.0", + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-selection/package.json b/packages/lexical-selection/package.json index f563b122100..571303b8141 100644 --- a/packages/lexical-selection/package.json +++ b/packages/lexical-selection/package.json @@ -9,10 +9,10 @@ "selection" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalSelection.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-table/package.json b/packages/lexical-table/package.json index 22a250f668c..dc94a507462 100644 --- a/packages/lexical-table/package.json +++ b/packages/lexical-table/package.json @@ -8,13 +8,13 @@ "table" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalTable.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/utils": "0.7.9" + "@lexical/utils": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-text/package.json b/packages/lexical-text/package.json index 440c9f645a3..21bafbde162 100644 --- a/packages/lexical-text/package.json +++ b/packages/lexical-text/package.json @@ -9,10 +9,10 @@ "text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalText.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-utils/package.json b/packages/lexical-utils/package.json index 405b4c1caee..841238470cb 100644 --- a/packages/lexical-utils/package.json +++ b/packages/lexical-utils/package.json @@ -8,15 +8,15 @@ "utils" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalUtils.js", "peerDependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "dependencies": { - "@lexical/list": "0.7.9", - "@lexical/table": "0.7.9", - "@lexical/selection": "0.7.9" + "@lexical/list": "0.8.0", + "@lexical/table": "0.8.0", + "@lexical/selection": "0.8.0" }, "repository": { "type": "git", diff --git a/packages/lexical-yjs/package.json b/packages/lexical-yjs/package.json index e48c84d2aa9..f6c5ee64038 100644 --- a/packages/lexical-yjs/package.json +++ b/packages/lexical-yjs/package.json @@ -11,13 +11,13 @@ "crdt" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "LexicalYjs.js", "dependencies": { - "@lexical/offset": "0.7.9" + "@lexical/offset": "0.8.0" }, "peerDependencies": { - "lexical": "0.7.9", + "lexical": "0.8.0", "yjs": ">=13.5.22" }, "repository": { diff --git a/packages/lexical/package.json b/packages/lexical/package.json index f93f4eabe86..455c1692a85 100644 --- a/packages/lexical/package.json +++ b/packages/lexical/package.json @@ -9,7 +9,7 @@ "rich-text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "main": "Lexical.js", "repository": { "type": "git", diff --git a/packages/shared/package.json b/packages/shared/package.json index a51e54333ea..48ec9228d8f 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -8,9 +8,9 @@ "rich-text" ], "license": "MIT", - "version": "0.7.9", + "version": "0.8.0", "dependencies": { - "lexical": "0.7.9" + "lexical": "0.8.0" }, "repository": { "type": "git",