From 6a9ee3ef25292f9e791a47c5d1cf5bbb6e80d6dc Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Tue, 3 Sep 2024 10:26:20 +0100 Subject: [PATCH] Update lexical (#642) Co-authored-by: mark-tate <143323+mark-tate@users.noreply.github.com> --- packages/content-editor-plugin/package.json | 20 +- .../src/components/ContentEditor.tsx | 2 +- .../Toolbar/InsertBlockDropdown.tsx | 10 +- .../src/plugins/MarkdownLinkPlugin.tsx | 6 +- .../src/plugins/TableActionMenuPlugin.tsx | 6 +- .../src/AppHeaderControls/index.tsx | 4 +- .../site-components/src/UserProfile/index.tsx | 2 +- yarn.lock | 337 ++++++++++-------- 8 files changed, 217 insertions(+), 170 deletions(-) diff --git a/packages/content-editor-plugin/package.json b/packages/content-editor-plugin/package.json index 07d07c1e..2d5dc853 100644 --- a/packages/content-editor-plugin/package.json +++ b/packages/content-editor-plugin/package.json @@ -48,19 +48,19 @@ "@salt-ds/lab": "1.0.0-alpha.50", "@salt-ds/theme": "^1.19.0", "@floating-ui/react": "^0.26.6", - "@lexical/code": "^0.11.1", - "@lexical/link": "^0.11.1", - "@lexical/list": "^0.11.1", - "@lexical/rich-text": "^0.11.1", - "@lexical/table": "^0.11.1", - "@lexical/react": "^0.11.1", - "@lexical/selection": "^0.11.1", - "@lexical/utils": "^0.11.1", - "@lexical/markdown": "^0.11.1", + "@lexical/code": "^0.17.1", + "@lexical/link": "^0.17.1", + "@lexical/list": "^0.17.1", + "@lexical/rich-text": "^0.17.1", + "@lexical/table": "^0.17.1", + "@lexical/react": "^0.17.1", + "@lexical/selection": "^0.17.1", + "@lexical/utils": "^0.17.1", + "@lexical/markdown": "^0.17.1", "@vanilla-extract/css": "^1.6.0", "clsx": "^2.0.0", "gray-matter": "^4.0.3", - "lexical": "^0.11.1", + "lexical": "^0.17.1", "react-split": "^2.0.14", "lodash-es": "^4.17.21", "md5": "*", diff --git a/packages/content-editor-plugin/src/components/ContentEditor.tsx b/packages/content-editor-plugin/src/components/ContentEditor.tsx index 3a8a40de..46451aa1 100644 --- a/packages/content-editor-plugin/src/components/ContentEditor.tsx +++ b/packages/content-editor-plugin/src/components/ContentEditor.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'; import { ContentEditable } from '@lexical/react/LexicalContentEditable'; -import LexicalErrorBoundary from '@lexical/react/LexicalErrorBoundary'; +import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary'; const ContentEditor = () => ( $createParagraphNode()); + $setBlocksType(selection, () => $createParagraphNode()); } }); } @@ -56,7 +56,7 @@ export function InsertBlockDropdown({ const selection = $getSelection(); if ($isRangeSelection(selection)) { - $wrapNodes(selection, () => $createHeadingNode(item.type as HeadingTagType)); + $setBlocksType(selection, () => $createHeadingNode(item.type as HeadingTagType)); } }); } @@ -80,7 +80,7 @@ export function InsertBlockDropdown({ const selection = $getSelection(); if ($isRangeSelection(selection)) { - $wrapNodes(selection, () => $createQuoteNode()); + $setBlocksType(selection, () => $createQuoteNode()); } }); } @@ -93,7 +93,7 @@ export function InsertBlockDropdown({ if ($isRangeSelection(selection)) { if (selection.isCollapsed()) { - $wrapNodes(selection, () => $createCodeNode()); + $setBlocksType(selection, () => $createCodeNode()); } else { const textContent = selection.getTextContent(); const codeNode = $createCodeNode(); diff --git a/packages/content-editor-plugin/src/plugins/MarkdownLinkPlugin.tsx b/packages/content-editor-plugin/src/plugins/MarkdownLinkPlugin.tsx index be52dae3..4a94715c 100644 --- a/packages/content-editor-plugin/src/plugins/MarkdownLinkPlugin.tsx +++ b/packages/content-editor-plugin/src/plugins/MarkdownLinkPlugin.tsx @@ -1,10 +1,9 @@ import { $createLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link'; import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'; -import { $wrapNodes } from '@lexical/selection'; import { - $createParagraphNode, $createTextNode, $getSelection, + $insertNodes, $isRangeSelection, $isTextNode, COMMAND_PRIORITY_EDITOR, @@ -40,7 +39,8 @@ function useMarkdownLinkPlugin() { const linkTextNode = $createTextNode(text); linkTextNode.setFormat(selection.focus.getNode().getFormat()); linkNode.append(linkTextNode); - $wrapNodes(selection, () => linkNode, $createParagraphNode()); + $insertNodes([linkNode]); + linkNode.selectEnd(); } } }); diff --git a/packages/content-editor-plugin/src/plugins/TableActionMenuPlugin.tsx b/packages/content-editor-plugin/src/plugins/TableActionMenuPlugin.tsx index d6b97894..cd053f04 100644 --- a/packages/content-editor-plugin/src/plugins/TableActionMenuPlugin.tsx +++ b/packages/content-editor-plugin/src/plugins/TableActionMenuPlugin.tsx @@ -3,7 +3,7 @@ import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext import { $getSelection, $isRangeSelection, LexicalEditor } from 'lexical'; import { $deleteTableColumn, - $getElementGridForTableNode, + $getElementForTableNode, $getTableCellNodeFromLexicalNode, $getTableColumnIndexFromTableCellNode, $getTableNodeFromLexicalNodeOrThrow, @@ -115,7 +115,7 @@ function TableActionMenu({ editor, tableCellNode, onComplete }: TableActionMenuP if ($isTableCellNode(tableCellNode)) { const tableNode = $getTableNodeFromLexicalNodeOrThrow(tableCellNode); const tableRowIndex = $getTableRowIndexFromTableCellNode(tableCellNode); - const grid = $getElementGridForTableNode(editor, tableNode); + const grid = $getElementForTableNode(editor, tableNode); $insertTableRow(tableNode, tableRowIndex, shouldInsertAfter, 1, grid); } @@ -132,7 +132,7 @@ function TableActionMenu({ editor, tableCellNode, onComplete }: TableActionMenuP if ($isTableCellNode(tableCellNode)) { const tableNode = $getTableNodeFromLexicalNodeOrThrow(tableCellNode); const tableColumnIndex = $getTableColumnIndexFromTableCellNode(tableCellNode); - const grid = $getElementGridForTableNode(editor, tableNode); + const grid = $getElementForTableNode(editor, tableNode); $insertTableColumn(tableNode, tableColumnIndex, shouldInsertAfter, 1, grid); } diff --git a/packages/site-components/src/AppHeaderControls/index.tsx b/packages/site-components/src/AppHeaderControls/index.tsx index 57c8c92c..17844f04 100644 --- a/packages/site-components/src/AppHeaderControls/index.tsx +++ b/packages/site-components/src/AppHeaderControls/index.tsx @@ -16,7 +16,7 @@ type ActionMenuItem = { }; function toUpperFirst(str) { - return `${str.substr(0, 1).toUpperCase()}${str.toLowerCase().substr(1)}`; + return `${str.charAt(0).toUpperCase()}${str.slice(1)}`; } export const AppHeaderControls: React.FC = () => { @@ -69,7 +69,7 @@ export const AppHeaderControls: React.FC = () => { {isLoggedIn ? ( ) : ( diff --git a/packages/site-components/src/UserProfile/index.tsx b/packages/site-components/src/UserProfile/index.tsx index dc5adf87..502ae8d1 100644 --- a/packages/site-components/src/UserProfile/index.tsx +++ b/packages/site-components/src/UserProfile/index.tsx @@ -5,7 +5,7 @@ import { Avatar } from '@salt-ds/core'; import styles from './styles.css'; function toUpperFirst(str) { - return `${str.substr(0, 1).toUpperCase()}${str.toLowerCase().substr(1)}`; + return `${str.charAt(0).toUpperCase()}${str.slice(1)}`; } export function UserProfile({ diff --git a/yarn.lock b/yarn.lock index 5ab4fbf2..82d9c035 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2433,159 +2433,206 @@ resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" integrity sha1-nfA7vXxpalxYiFw0qgbaQchUN5Y= -"@lexical/clipboard@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/clipboard/-/clipboard-0.11.1.tgz#05af4274b5971da17b96d57c1ad4bb4f6a9a194d" - integrity sha512-xwesC2BMv+/ZF0DRMaTPHr4hrnaEbqsfkL1MG+xtqHZOM+paavXqEYp2Uh4WEAaSsmkIFWbrxP1Kraq9O8EZbw== - dependencies: - "@lexical/html" "0.11.1" - "@lexical/list" "0.11.1" - "@lexical/selection" "0.11.1" - "@lexical/utils" "0.11.1" - -"@lexical/code@0.11.1", "@lexical/code@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/code/-/code-0.11.1.tgz#18f3dab2ee63c12f54828b4e57a7cdac810babaa" - integrity sha512-6XIclSRdPI3E6QtM0sVvip4M5xSvbghoyUnG0hiGjYv5py73748VrRnkr1JF0narSXeKSLKKe4j7IssTaKYS0A== - dependencies: - "@lexical/utils" "0.11.1" +"@lexical/clipboard@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/clipboard/-/clipboard-0.17.1.tgz#816b2559e60c5cfb5df5c6a4d1d1dcd850662d14" + integrity sha512-OVqnEfWX8XN5xxuMPo6BfgGKHREbz++D5V5ISOiml0Z8fV/TQkdgwqbBJcUdJHGRHWSUwdK7CWGs/VALvVvZyw== + dependencies: + "@lexical/html" "0.17.1" + "@lexical/list" "0.17.1" + "@lexical/selection" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/code@0.17.1", "@lexical/code@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/code/-/code-0.17.1.tgz#1db1cd221fb6ec74342e8a6526ec8ac370f4c06b" + integrity sha512-ZspfTm6g6dN3nAb4G5bPp3SqxzdkB/bjGfa0uRKMU6/eBKtrMUgZsGxt0a8JRZ1eq2TZrQhx+l1ceRoLXii/bQ== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" prismjs "^1.27.0" -"@lexical/dragon@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/dragon/-/dragon-0.11.1.tgz#152d23779dd8888a0c10a16692c11c0531c3f733" - integrity sha512-Yg4lsaHgHdgxMFdz8bapfPHXevxk5rgegleJxsmx/c59+MLG7/R7h1ZIVRoZesIhlYF1rvvZHuWzQCJRqleCrQ== - -"@lexical/hashtag@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/hashtag/-/hashtag-0.11.1.tgz#100a76a1d638b15b24cca887b60d1ca82018c5a5" - integrity sha512-DcAhrVmJ7pJ49z3oGkA8kd+oPtgglsoM89GkBTOOTh0hF8f2y0xpsaRVY/+YnOn7mxE3SAC2DDVh5txqOzZ1HQ== - dependencies: - "@lexical/utils" "0.11.1" - -"@lexical/history@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/history/-/history-0.11.1.tgz#8fd025224eb2f6dd24ac4aa32e7c2032aaaa5f97" - integrity sha512-JDwTb3GvD3GwIsAekdSLSZkKKA9iGVwt/ncnf75hKC19dLogsRmFqlT7gvZGnYmX8QlYhKTb3wyUQsn7Iax3qA== - dependencies: - "@lexical/utils" "0.11.1" - -"@lexical/html@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/html/-/html-0.11.1.tgz#dfcaf00fcc3534eecdeb5438f8f59d1a5d1a1e8b" - integrity sha512-tkXPpJCM73VwMynnWwZPqdL8gN9ydGtJsPz28Q1m5P3WD6sFERwCasJxYyMPCcL3KfGQ6a0WZCCEtnyUn7VQkg== - dependencies: - "@lexical/selection" "0.11.1" - -"@lexical/link@0.11.1", "@lexical/link@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/link/-/link-0.11.1.tgz#4bc0d68b7a7c598cf3cde58d067c9aa900a87420" - integrity sha512-eEVZfSvdYKyjv5g35Rm50y+gglg4d5hgjiWuHzynT6XknU1VmR/WknEdSQybPK9vo2E2qf3qURyp1oAUaAPVjw== - dependencies: - "@lexical/utils" "0.11.1" - -"@lexical/list@0.11.1", "@lexical/list@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/list/-/list-0.11.1.tgz#ff9a244d6a94382a8ea58ea41de00c6223200c8f" - integrity sha512-gONvM0q0eyA7yaSQ9WnoVs0riUrgilqVS4mdXDu3UKlr0hcDfJICEZO8ooorFu9yRkNzp8HRIkGByW6oQBa1cQ== - dependencies: - "@lexical/utils" "0.11.1" - -"@lexical/mark@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/mark/-/mark-0.11.1.tgz#1f4d7afe5b40851b9558f35b7f2c85e78d1b7ff5" - integrity sha512-HA9XTrfXFmipxsFbtDTN8uQl7v9EPm40C4LgJKc2PFV7uNXnz/KF6FE5Gwe/iz/ueMF0EH288t7w3J2KuHbFkQ== - dependencies: - "@lexical/utils" "0.11.1" - -"@lexical/markdown@0.11.1", "@lexical/markdown@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/markdown/-/markdown-0.11.1.tgz#fe6086b46ac9bcfa702e135557709a260c56404f" - integrity sha512-yk8q2808PJrW7yT5ym/4j78lkNCdi/rWmbZN49tNtetWClddHPEYifdOfuSsf2aAOx65/23B7zHs87BuyzXWFw== - dependencies: - "@lexical/code" "0.11.1" - "@lexical/link" "0.11.1" - "@lexical/list" "0.11.1" - "@lexical/rich-text" "0.11.1" - "@lexical/text" "0.11.1" - "@lexical/utils" "0.11.1" - -"@lexical/offset@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/offset/-/offset-0.11.1.tgz#7598423282c61fb980944f196792f7651b6b898b" - integrity sha512-x6ERzo1cHoL9tcetpomqnf52EJ8f/wAF4vnEbJ9k/BRAZJQBc3UX/WYx+IyycxCBVeh3mxOhjZHqesYCvPFTRw== - -"@lexical/overflow@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/overflow/-/overflow-0.11.1.tgz#8fc5e84b82f6e53dd005d070f87911b88845e945" - integrity sha512-mx99fWfGjbr6Va/jPgsagUJzYzC0WV7us43HYk98XSJJpz/dPapNyRUARJrSinv/iu47HkA1X4Kvgd6LqbIvxA== - -"@lexical/plain-text@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/plain-text/-/plain-text-0.11.1.tgz#006c967256eb732237a7901f6ed10ca090091032" - integrity sha512-G4OlqDTPWR2S58ONzEtyJW0XvTh0M46mhCzldrvJatcOUNrnCqL9ZeL3LSld/IRz8T4sjCRD6E1QjAFy51DUxg== - -"@lexical/react@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/react/-/react-0.11.1.tgz#1395ebe615b8f3b1319988bd6cf58a6ac77427d4" - integrity sha512-iXZusD0Z+eqttuh8s58ZP3H+tn0V1JYOay/Xo3y6/N+UXJ3NpBfVXRQB97cY/861jezMgbmvcjXuhH/rlKCvSg== - dependencies: - "@lexical/clipboard" "0.11.1" - "@lexical/code" "0.11.1" - "@lexical/dragon" "0.11.1" - "@lexical/hashtag" "0.11.1" - "@lexical/history" "0.11.1" - "@lexical/link" "0.11.1" - "@lexical/list" "0.11.1" - "@lexical/mark" "0.11.1" - "@lexical/markdown" "0.11.1" - "@lexical/overflow" "0.11.1" - "@lexical/plain-text" "0.11.1" - "@lexical/rich-text" "0.11.1" - "@lexical/selection" "0.11.1" - "@lexical/table" "0.11.1" - "@lexical/text" "0.11.1" - "@lexical/utils" "0.11.1" - "@lexical/yjs" "0.11.1" +"@lexical/devtools-core@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/devtools-core/-/devtools-core-0.17.1.tgz#08e0e0fe7312486a41b49d75c075d6edf60fc11e" + integrity sha512-SzL1EX9Rt5GptIo87t6nDxAc9TtYtl6DyAPNz/sCltspdd69KQgs23sTRa26/tkNFCS1jziRN7vpN3mlnmm5wA== + dependencies: + "@lexical/html" "0.17.1" + "@lexical/link" "0.17.1" + "@lexical/mark" "0.17.1" + "@lexical/table" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/dragon@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/dragon/-/dragon-0.17.1.tgz#e196a8a226889f0d0a7ef271163e9cecd53b8a85" + integrity sha512-lhBRKP7RlhiVCLtF0qiNqmMhEO6cQB43sMe7d4bvuY1G2++oKY/XAJPg6QJZdXRrCGRQ6vZ26QRNhRPmCxL5Ng== + dependencies: + lexical "0.17.1" + +"@lexical/hashtag@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/hashtag/-/hashtag-0.17.1.tgz#137896cff6d7d2e3638cfc8cadf1d3e035809c14" + integrity sha512-XtP0BI8vEewAe7tzq9MC49UPUvuChuNJI/jqFp+ezZlt/RUq0BClQCOPuSlrTJhluvE2rWnUnOnVMk8ILRvggQ== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/history@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/history/-/history-0.17.1.tgz#864f8bd5450bc6a2b513e02c42f022299400e63b" + integrity sha512-OU/ohajz4FXchUhghsWC7xeBPypFe50FCm5OePwo767G7P233IztgRKIng2pTT4zhCPW7S6Mfl53JoFHKehpWA== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/html@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/html/-/html-0.17.1.tgz#746ecfeea6a1aef3b0a5ce821cf059262f182dd5" + integrity sha512-yGG+K2DXl7Wn2DpNuZ0Y3uCHJgfHkJN3/MmnFb4jLnH1FoJJiuy7WJb/BRRh9H+6xBJ9v70iv+kttDJ0u1xp5w== + dependencies: + "@lexical/selection" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/link@0.17.1", "@lexical/link@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/link/-/link-0.17.1.tgz#ef93c41710e33028512986334c98df7f0ad285c4" + integrity sha512-qFJEKBesZAtR8kfJfIVXRFXVw6dwcpmGCW7duJbtBRjdLjralOxrlVKyFhW9PEXGhi4Mdq2Ux16YnnDncpORdQ== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/list@0.17.1", "@lexical/list@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/list/-/list-0.17.1.tgz#8b29d42fe310b25de0a160577adf5fc0b7c2a874" + integrity sha512-k9ZnmQuBvW+xVUtWJZwoGtiVG2cy+hxzkLGU4jTq1sqxRIoSeGcjvhFAK8JSEj4i21SgkB1FmkWXoYK5kbwtRA== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/mark@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/mark/-/mark-0.17.1.tgz#58e74f494e3dc4a43b5b5efd1b28436f2941f937" + integrity sha512-V82SSRjvygmV+ZMwVpy5gwgr2ZDrJpl3TvEDO+G5I4SDSjbgvua8hO4dKryqiDVlooxQq9dsou0GrZ9Qtm6rYg== + dependencies: + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/markdown@0.17.1", "@lexical/markdown@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/markdown/-/markdown-0.17.1.tgz#e5435f4aa711f0859433eba2b96ee2afb04b636a" + integrity sha512-uexR9snyT54jfQTrbr/GZAtzX+8Oyykr4p1HS0vCVL1KU5MDuP2PoyFfOv3rcfB2TASc+aYiINhU2gSXzwCHNg== + dependencies: + "@lexical/code" "0.17.1" + "@lexical/link" "0.17.1" + "@lexical/list" "0.17.1" + "@lexical/rich-text" "0.17.1" + "@lexical/text" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/offset@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/offset/-/offset-0.17.1.tgz#3c008d9a0eb17ff0a056e6db4eab61f1ae909522" + integrity sha512-fX0ZSIFWwUKAjxf6l21vyXFozJGExKWyWxA+EMuOloNAGotHnAInxep0Mt8t/xcvHs7luuyQUxEPw7YrTJP7aw== + dependencies: + lexical "0.17.1" + +"@lexical/overflow@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/overflow/-/overflow-0.17.1.tgz#f158c5498cac353764d7f0c8c53b42ee14582f5b" + integrity sha512-oElVDq486R3rO2+Zz0EllXJGpW3tN0tfcH+joZ5h36+URKuNeKddqkJuDRvgSLOr9l8Jhtv3+/YKduPJVKMz6w== + dependencies: + lexical "0.17.1" + +"@lexical/plain-text@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/plain-text/-/plain-text-0.17.1.tgz#da03dfee8862622c150e64db823065a4eff751cd" + integrity sha512-CSvi4j1a4ame0OAvOKUCCmn2XrNsWcST4lExGTa9Ei/VIh8IZ+a97h4Uby8T3lqOp10x+oiizYWzY30pb9QaBg== + dependencies: + "@lexical/clipboard" "0.17.1" + "@lexical/selection" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" + +"@lexical/react@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/react/-/react-0.17.1.tgz#ec9595e6d554d3d8787885db4558848233c2ce33" + integrity sha512-DI4k25tO0E1WyozrjaLgKMOmLjOB7+39MT4eZN9brPlU7g+w0wzdGbTZUPgPmFGIKPK+MSLybCwAJCK97j8HzQ== + dependencies: + "@lexical/clipboard" "0.17.1" + "@lexical/code" "0.17.1" + "@lexical/devtools-core" "0.17.1" + "@lexical/dragon" "0.17.1" + "@lexical/hashtag" "0.17.1" + "@lexical/history" "0.17.1" + "@lexical/link" "0.17.1" + "@lexical/list" "0.17.1" + "@lexical/mark" "0.17.1" + "@lexical/markdown" "0.17.1" + "@lexical/overflow" "0.17.1" + "@lexical/plain-text" "0.17.1" + "@lexical/rich-text" "0.17.1" + "@lexical/selection" "0.17.1" + "@lexical/table" "0.17.1" + "@lexical/text" "0.17.1" + "@lexical/utils" "0.17.1" + "@lexical/yjs" "0.17.1" + lexical "0.17.1" react-error-boundary "^3.1.4" -"@lexical/rich-text@0.11.1", "@lexical/rich-text@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/rich-text/-/rich-text-0.11.1.tgz#6596122113e31f302eab757193aa4d791795ec85" - integrity sha512-cwko/7VuvHd8nuvt0GTaOxxpDpT24NnP15C0ZMJ6LVBgqKz7hOqhZZ6iAB/JOrivifF9nGBlC+jabZF75Gz3Fw== +"@lexical/rich-text@0.17.1", "@lexical/rich-text@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/rich-text/-/rich-text-0.17.1.tgz#c74b8d5d2ca767e021c313e4f3258e1ecf5cd1a6" + integrity sha512-T3kvj4P1OpedX9jvxN3WN8NP1Khol6mCW2ScFIRNRz2dsXgyN00thH1Q1J/uyu7aKyGS7rzcY0rb1Pz1qFufqQ== + dependencies: + "@lexical/clipboard" "0.17.1" + "@lexical/selection" "0.17.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" -"@lexical/selection@0.11.1", "@lexical/selection@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/selection/-/selection-0.11.1.tgz#ef7c3872a417bfe7f9dc282bd614009323a9c5c3" - integrity sha512-sSiwWlu7LmxasdXAWcphtf5+ZK/6GRe3e/SAuCULfcrvYtEQrXIeyZt1IAvMxStELdQgf8vd0PzwajKcYjEM4A== +"@lexical/selection@0.17.1", "@lexical/selection@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/selection/-/selection-0.17.1.tgz#9a537e69fec4e5682b43b226239c78fd7af19811" + integrity sha512-qBKVn+lMV2YIoyRELNr1/QssXx/4c0id9NCB/BOuYlG8du5IjviVJquEF56NEv2t0GedDv4BpUwkhXT2QbNAxA== + dependencies: + lexical "0.17.1" -"@lexical/table@0.11.1", "@lexical/table@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/table/-/table-0.11.1.tgz#3bf41e12fad3b014687ee4b45b8fc8ab6b38eecf" - integrity sha512-v5HNW6jk4BHFsxsr8tPhAgokWUxL/ekvIHByXnikgEXVQiG7NPXMt7PWKVdOhH4Pn+OeF/OeeqcsTSh1/I8ZKQ== +"@lexical/table@0.17.1", "@lexical/table@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/table/-/table-0.17.1.tgz#62473f95a96c44ab20e4a1c1dec4b53a5093897c" + integrity sha512-2fUYPmxhyuMQX3MRvSsNaxbgvwGNJpHaKx1Ldc+PT2MvDZ6ALZkfsxbi0do54Q3i7dOon8/avRp4TuVaCnqvoA== dependencies: - "@lexical/utils" "0.11.1" + "@lexical/utils" "0.17.1" + lexical "0.17.1" -"@lexical/text@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/text/-/text-0.11.1.tgz#e8e4573752ddea0b35e59152ae3c7d04400f83e8" - integrity sha512-TQ9vb24sStMicnJaGT9U6yUCVXTIVFHAzt5cMPtr7hK6b1CsJPMTRmsM7n5vIo9xnHM9SLLe01AxwL2O7I1QKg== +"@lexical/text@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/text/-/text-0.17.1.tgz#b54ce8c7e6d891e063321d340172053bb43bbd87" + integrity sha512-zD2pAGXaMfPpT8PeNrx3+n0+jGnQORHyn0NEBO+hnyacKfUq5z5sI6Gebsq5NwH789bRadmJM5LvX5w8fsuv6w== + dependencies: + lexical "0.17.1" -"@lexical/utils@0.11.1", "@lexical/utils@^0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/utils/-/utils-0.11.1.tgz#76cf4f02a1deea2de93a5c02649780e1870298e2" - integrity sha512-Sssv82m0yJgRBvShZDZnE4KNX+8O49sAI1Mc2kRKoTlSSbpmpEcrbJnz8S2bmbYcyHalP8+Id/GFziOclI3zUQ== +"@lexical/utils@0.17.1", "@lexical/utils@^0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/utils/-/utils-0.17.1.tgz#58465121a977a04b7995efde6fde8ca97cbfff8d" + integrity sha512-jCQER5EsvhLNxKH3qgcpdWj/necUb82Xjp8qWQ3c0tyL07hIRm2tDRA/s9mQmvcP855HEZSmGVmR5SKtkcEAVg== dependencies: - "@lexical/list" "0.11.1" - "@lexical/selection" "0.11.1" - "@lexical/table" "0.11.1" + "@lexical/list" "0.17.1" + "@lexical/selection" "0.17.1" + "@lexical/table" "0.17.1" + lexical "0.17.1" -"@lexical/yjs@0.11.1": - version "0.11.1" - resolved "https://registry.yarnpkg.com/@lexical/yjs/-/yjs-0.11.1.tgz#251d53e17034e772d3f9dd39b3ae1051b39bf961" - integrity sha512-69Q462s4roXN6S8mk/ogMRZNyqLY024w38RzMVvJkY/W7sz30vPNX1RyEDHvTjgBhPXQqhRgmDUPT2V3lE7dRg== +"@lexical/yjs@0.17.1": + version "0.17.1" + resolved "https://registry.yarnpkg.com/@lexical/yjs/-/yjs-0.17.1.tgz#6d13506f168f465fd6e68cc64aa822b6c49adedb" + integrity sha512-9mn5PDtaH5uLMH6hQ59EAx5FkRzmJJFcVs3E6zSIbtgkG3UASR3CFEfgsLKTjl/GC5NnTGuMck+jXaupDVBhOg== dependencies: - "@lexical/offset" "0.11.1" + "@lexical/offset" "0.17.1" + lexical "0.17.1" "@manypkg/find-root@^1.1.0": version "1.1.0" @@ -8598,10 +8645,10 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" -lexical@^0.11.1: - version "0.11.1" - resolved "https://registry.yarnpkg.com/lexical/-/lexical-0.11.1.tgz#a4ca061c16d9798b3c0b9f2f8e89cc077385e4ea" - integrity sha512-PhAGADxqzwJldmkVK5tvkaARTULCdeJjfhxWTnJQXTAlApE9heJir7SWxbxeUx1G5gdKZQFicGhOQlDXJmma2Q== +lexical@0.17.1, lexical@^0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/lexical/-/lexical-0.17.1.tgz#02f4057b82cb302ceb9ca9b031dcf9406be5780a" + integrity sha512-72/MhR7jqmyqD10bmJw8gztlCm4KDDT+TPtU4elqXrEvHoO5XENi34YAEUD9gIkPfqSwyLa9mwAX1nKzIr5xEA== light-my-request@^5.9.1: version "5.11.0"