diff --git a/package-lock.json b/package-lock.json index bbd7f208..f332070e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,15 +14,15 @@ "@codemirror/state": "^6.2.1", "@codemirror/view": "^6.21.0", "@codesandbox/sandpack-react": "^2.6.7", - "@lexical/clipboard": "^0.12.2", - "@lexical/link": "^0.12.2", - "@lexical/list": "^0.12.2", - "@lexical/markdown": "^0.12.2", - "@lexical/plain-text": "^0.12.2", - "@lexical/react": "^0.12.2", - "@lexical/rich-text": "^0.12.2", - "@lexical/selection": "^0.12.2", - "@lexical/utils": "^0.12.2", + "@lexical/clipboard": "^0.12.4", + "@lexical/link": "^0.12.4", + "@lexical/list": "^0.12.4", + "@lexical/markdown": "^0.12.4", + "@lexical/plain-text": "^0.12.4", + "@lexical/react": "^0.12.4", + "@lexical/rich-text": "^0.12.4", + "@lexical/selection": "^0.12.4", + "@lexical/utils": "^0.12.4", "@radix-ui/colors": "^0.1.8", "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-icons": "^1.3.0", @@ -39,7 +39,7 @@ "hast-util-sanitize": "^4.1.0", "hast-util-to-html": "^8.0.4", "js-yaml": "4.1.0", - "lexical": "^0.12.2", + "lexical": "^0.12.4", "mdast-util-directive": "2.2.4", "mdast-util-from-markdown": "^1.3.0", "mdast-util-frontmatter": "1.0.1", @@ -1773,238 +1773,239 @@ } }, "node_modules/@lexical/clipboard": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.12.2.tgz", - "integrity": "sha512-RldmfZquuJJJCJ5WquCyoJ1/eZ+AnNgdksqvd+G+Yn/GyJl/+O3dnHM0QVaDSPvh/PynLFcCtz/57ySLo2kQxQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.12.4.tgz", + "integrity": "sha512-kFR+UdhtLCMTQgZCyDmYzp2yjPFMNpUZ4TaRjuRBpCRFYwKMlgie4p1J4VJm6sT23kkAFZtVjOfp+gDEYnPHRQ==", "dependencies": { - "@lexical/html": "0.12.2", - "@lexical/list": "0.12.2", - "@lexical/selection": "0.12.2", - "@lexical/utils": "0.12.2" + "@lexical/html": "0.12.4", + "@lexical/list": "0.12.4", + "@lexical/selection": "0.12.4", + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/code": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/code/-/code-0.12.2.tgz", - "integrity": "sha512-w2JeJdnMUtYnC/Fx78sL3iJBt9Ug8pFSDOcI9ay/BkMQFQV8oqq1iyuLLBBJSG4FAM8b2DXrVdGklRQ+jTfTVw==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/code/-/code-0.12.4.tgz", + "integrity": "sha512-pX7rJCjbjCl6VdOPl2hl/UkjP3iPPyCQgH2VQ+WlXapDd+0uZ54nPL1MKCCaFUZocHPmOmSRKKGUp6K2CNiqzg==", "dependencies": { - "@lexical/utils": "0.12.2", + "@lexical/utils": "0.12.4", "prismjs": "^1.27.0" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/dragon": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.12.2.tgz", - "integrity": "sha512-Mt8NLzTOt+VgQtc2DKDbHBwKeRlvKqbLqRIMYUVk60gol+YV7NpVBsP1PAMuYYjrTQLhlckBSC32H1SUHZRavA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.12.4.tgz", + "integrity": "sha512-7DaXdQ/5GJ8HRpPYr2+SjaUi912tG9L6ukg9IglG1t51lWGxqLx2chW17tp50XDTtY05w9VnoMaxtgsuCN5Pmg==", "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/hashtag": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.12.2.tgz", - "integrity": "sha512-2vYzIu5Ldf+eYdUrNA2m80c3N3MF3vJ0fIJzpl5QyX8OdViggEWl1bh+lKtw1Ju0H0CUyDIXdDLZ2apW3WDkTA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.12.4.tgz", + "integrity": "sha512-iCxQRBZmgwAV6kypmxtWg7HVhBC7PKclmqLNaLDLoKBm+keEXpKnGB5iEtgK/tCMiwkzrg+wGcrw5qi+YjvM9Q==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/history": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/history/-/history-0.12.2.tgz", - "integrity": "sha512-PM/EDjnUyBPMWh1UiYb7T+FLbvTk14HwUWLXvZxn72S6Kj8ExH/PfLbWZWLCFL8RfzvbP407VwfSN8S0bF5H6g==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/history/-/history-0.12.4.tgz", + "integrity": "sha512-XLbSSr9FueAxuKHo4LBi+lZNVAEReNNDCt4MM2Ol8UZhWPlpNskSB/sECYEEQ6/ItlzgtnKyKWjfDFBHRWvC2g==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/html": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/html/-/html-0.12.2.tgz", - "integrity": "sha512-LWUO6OKhDtDZa9X1spHAqzsp+4EF01exis4cz5H9y2sHi7EofogXnRCadZ+fa07NVwPVTZWsStkk5qdSe/NEzg==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/html/-/html-0.12.4.tgz", + "integrity": "sha512-RD/n9n1eCuTZtLaTEI3wuUDlJjCn6j+/0c9GvzqLKhNz9f+E5zMVExhzTT4cZQh5WXbzGFNlwC/cuOtaM3wODg==", "dependencies": { - "@lexical/selection": "0.12.2" + "@lexical/selection": "0.12.4", + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/link": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/link/-/link-0.12.2.tgz", - "integrity": "sha512-etOIONa7uyRDmwg8GN52kDlf8thD2Zk1LOFLeocHWz1V8fe3i2unGUek5s/rNPkc6ynpPpNsHdN1VEghOLCCmw==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/link/-/link-0.12.4.tgz", + "integrity": "sha512-gmEs0GJGDhgwV1x0IrO7Br2GCALijZLIayGWoLAgYiXZee4WZpvjbngZuC6yghYBhrme6muPRMG2sLMwV2cWiQ==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/list": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/list/-/list-0.12.2.tgz", - "integrity": "sha512-3CyWtYQC+IlK4cK/oiD8Uz1gSXD8UcKGOF2vVsDXkMU06O6zvHNmHZOnVJqA0JVNgZAoR9dMR1fi2xd4iuCAiw==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/list/-/list-0.12.4.tgz", + "integrity": "sha512-qxwRIz+4Aj2u2fzyGPo86vX+1ebwCnamppr/c5ZWuqpRTWtYDWjq5LQKIwAvZBxCzPdtP5jzwyZ6VYWQXYW4Kg==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/mark": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/mark/-/mark-0.12.2.tgz", - "integrity": "sha512-ub+37PDfmThsqAWipRTrwqpgE+83ckqJ5C3mKQUBZvhZfVZW1rEUXZnKjFh2Q3eZK6iT7zVgoVJWJS9ZgEEyag==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/mark/-/mark-0.12.4.tgz", + "integrity": "sha512-NFFk/3AFFJARjsth8wd5HdeW8XhcaECoQ8wwnJ4fRZzgN0lu3ZSiq+CuVm0NRN5xA5KoUT6sfIQqGOzIPfvdsw==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/markdown": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.12.2.tgz", - "integrity": "sha512-F2jTFtBp7Q+yoA11BeUOEcxhROzW+HUhUGdsn20pSLhuxsWRj3oUuryWFeNKFofpzTCVoqU6dwpaMNMI2mL/sQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.12.4.tgz", + "integrity": "sha512-cOk0dkafyvQI4DMwwMfkP329bRVfyhXcVF3dcRiydl6ZIgqOrj/EMi+C0qxQkcqg0MO26Rky6LLJ4vQi6AgJDg==", "dependencies": { - "@lexical/code": "0.12.2", - "@lexical/link": "0.12.2", - "@lexical/list": "0.12.2", - "@lexical/rich-text": "0.12.2", - "@lexical/text": "0.12.2", - "@lexical/utils": "0.12.2" + "@lexical/code": "0.12.4", + "@lexical/link": "0.12.4", + "@lexical/list": "0.12.4", + "@lexical/rich-text": "0.12.4", + "@lexical/text": "0.12.4", + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/offset": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/offset/-/offset-0.12.2.tgz", - "integrity": "sha512-rZLZXfOBmpmM8A2UZsX3cr/CQYw5F/ou67AbaKI0WImb5sjnIgICZqzu9VFUnkKlVNUurEpplV3UG3D1YYh1OQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/offset/-/offset-0.12.4.tgz", + "integrity": "sha512-6fjXCx+YD1TMl6GFL4wowhBgbIg+UX3j2OOXh3F7WEp3SDvzoJsJ6F7xRctrHQbluCITM3oDwOyHa1J0m5lrFg==", "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/overflow": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.12.2.tgz", - "integrity": "sha512-UgE5j3ukO6qRFRpH4T7m/DvnodE9nCtImD7QinyGdsTa0hi5xlRnl0FUo605vH+vz7xEsUNAGwQXYPX9Sc/vig==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.12.4.tgz", + "integrity": "sha512-mEWgVukoOgcyDruHvzk1amy9jgGDVXFYiPn20ykxgrVQz6XEpq+lfyic/BUnN4toNR8p6jc/Yxi2lF1ELCU0Kg==", "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/plain-text": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.12.2.tgz", - "integrity": "sha512-Lcg6+ngRnX70//kz34azYhID3bvW66HSHCfu5UPhCXT+vQ/Jkd/InhRKajBwWXpaJxMM1huoi3sjzVDb3luNtw==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.12.4.tgz", + "integrity": "sha512-osbqOyt19oFG0kTbV71jxxCdgnUqNYW6QXIIaS1SwcCN/N1CdFZ0sNpjPkHIFx9AdZ/Tmi4u9SNFUo16DjvThA==", "peerDependencies": { - "@lexical/clipboard": "0.12.2", - "@lexical/selection": "0.12.2", - "@lexical/utils": "0.12.2", - "lexical": "0.12.2" + "@lexical/clipboard": "0.12.4", + "@lexical/selection": "0.12.4", + "@lexical/utils": "0.12.4", + "lexical": "0.12.4" } }, "node_modules/@lexical/react": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/react/-/react-0.12.2.tgz", - "integrity": "sha512-ZBUvf5xmhiYWBw8pPrhYmLAEwFWrbF/cd15y76TUKD9l/2zDwwPs6nJQxBzfz3ei65r2/nnavLDV8W3QfvxfUA==", - "dependencies": { - "@lexical/clipboard": "0.12.2", - "@lexical/code": "0.12.2", - "@lexical/dragon": "0.12.2", - "@lexical/hashtag": "0.12.2", - "@lexical/history": "0.12.2", - "@lexical/link": "0.12.2", - "@lexical/list": "0.12.2", - "@lexical/mark": "0.12.2", - "@lexical/markdown": "0.12.2", - "@lexical/overflow": "0.12.2", - "@lexical/plain-text": "0.12.2", - "@lexical/rich-text": "0.12.2", - "@lexical/selection": "0.12.2", - "@lexical/table": "0.12.2", - "@lexical/text": "0.12.2", - "@lexical/utils": "0.12.2", - "@lexical/yjs": "0.12.2", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/react/-/react-0.12.4.tgz", + "integrity": "sha512-tz4ebqJ++YP/Y6FCjk5aU3bvgrps8+i9abqvaaNCSzSQavI0qHtdS7EGy4S9qyO6qKuthXcOGIQxGTweRTkDsA==", + "dependencies": { + "@lexical/clipboard": "0.12.4", + "@lexical/code": "0.12.4", + "@lexical/dragon": "0.12.4", + "@lexical/hashtag": "0.12.4", + "@lexical/history": "0.12.4", + "@lexical/link": "0.12.4", + "@lexical/list": "0.12.4", + "@lexical/mark": "0.12.4", + "@lexical/markdown": "0.12.4", + "@lexical/overflow": "0.12.4", + "@lexical/plain-text": "0.12.4", + "@lexical/rich-text": "0.12.4", + "@lexical/selection": "0.12.4", + "@lexical/table": "0.12.4", + "@lexical/text": "0.12.4", + "@lexical/utils": "0.12.4", + "@lexical/yjs": "0.12.4", "react-error-boundary": "^3.1.4" }, "peerDependencies": { - "lexical": "0.12.2", + "lexical": "0.12.4", "react": ">=17.x", "react-dom": ">=17.x" } }, "node_modules/@lexical/rich-text": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.12.2.tgz", - "integrity": "sha512-igsEuv7CwBOAj5c8jeE41cnx6zkhI/Bkbu4W7shT6S6lNA/3cnyZpAMlgixwyK5RoqjGRCT+IJK5l6yBxQfNkw==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.12.4.tgz", + "integrity": "sha512-gWMDmdRRFPk00JfQv52650qcpjTN6oBrrYwBydYvEG8WTC8o1k8qEOZaOFja6GElPt0520dpyvcWHTlIL0jv3Q==", "peerDependencies": { - "@lexical/clipboard": "0.12.2", - "@lexical/selection": "0.12.2", - "@lexical/utils": "0.12.2", - "lexical": "0.12.2" + "@lexical/clipboard": "0.12.4", + "@lexical/selection": "0.12.4", + "@lexical/utils": "0.12.4", + "lexical": "0.12.4" } }, "node_modules/@lexical/selection": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/selection/-/selection-0.12.2.tgz", - "integrity": "sha512-h+g3oOnihHKIyLTyG6uLCEVR/DmUEVdCcZO1iAoGsuW7nwWiWNPWj6oZ3Cw5J1Mk5u62DHnkkVDQsVSZbAwmtg==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/selection/-/selection-0.12.4.tgz", + "integrity": "sha512-9lJt9PBJW7lWYiPDo/PGl2nZ6NrdYaDBidEoMNhyusPjeBEr35z4Hm0qWUhDrPDQPhK2i1oBw6nZa94bxuS9Lw==", "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/table": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/table/-/table-0.12.2.tgz", - "integrity": "sha512-tiAmTq6RKHDVER9v589Ajm9/RL+WTF1WschrH6HHVCtil6cfJfTJeJ+MF45+XEzB9fkqy2LfrScAfWxqLjVePA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/table/-/table-0.12.4.tgz", + "integrity": "sha512-Lyy6y1HOQqzU8O2cH5Zhzek46B0UU7NceM2fJKM7qiBSuxY/nE0BzkFq0xDk3x5W+vhXob6Z32sJSNFImtuqKw==", "dependencies": { - "@lexical/utils": "0.12.2" + "@lexical/utils": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/text": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/text/-/text-0.12.2.tgz", - "integrity": "sha512-HyuIGuQvVi5djJKKBf+jYEBjK+0Eo9cKHf6WS7dlFozuCZvcCQEJkFy2yceWOwIVk+f2kptVQ5uO7aiZHExH2A==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/text/-/text-0.12.4.tgz", + "integrity": "sha512-r/7402eCf6C/7BqUNR7ZLZQQjsE62wjeuf0rFeW1ulOpwiti/dFn1o+EsCb0hvNeHPzfGgRC+FuDT9KSEKu7Ig==", "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/utils": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/utils/-/utils-0.12.2.tgz", - "integrity": "sha512-xW4y4l2Yd37+qLwkBvBGyzsKCA9wnh1ljphBJeR2vreT193i2gaIwuku2ZKlER14VHw4192qNJF7vUoAEmwurQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/utils/-/utils-0.12.4.tgz", + "integrity": "sha512-ColV11ANBY6deT7CdGwP4lzv3pb5caFfFLcVKdGDMMJSUYFQ5l69aZvDP2qWWnNqzGLb+AJSunMd142wWc5LGg==", "dependencies": { - "@lexical/list": "0.12.2", - "@lexical/selection": "0.12.2", - "@lexical/table": "0.12.2" + "@lexical/list": "0.12.4", + "@lexical/selection": "0.12.4", + "@lexical/table": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2" + "lexical": "0.12.4" } }, "node_modules/@lexical/yjs": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.12.2.tgz", - "integrity": "sha512-OPJhkJD1Mp9W80mfLzASTB3OFWFMzJteUYA+eSyDgiX9zNi1VGxAqmIITTkDvnCMa+qvw4EfhGeGezpjx6Og4A==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.12.4.tgz", + "integrity": "sha512-qtCiABugE1CiZ7K5iFfQnB1KqfWtLyiRK0nxAaSxuZzQTO4+Kh3WDh7ULppPa53Sf3pKpw8Sq2XB4AXP6csbkg==", "dependencies": { - "@lexical/offset": "0.12.2" + "@lexical/offset": "0.12.4" }, "peerDependencies": { - "lexical": "0.12.2", + "lexical": "0.12.4", "yjs": ">=13.5.22" } }, @@ -11295,9 +11296,9 @@ } }, "node_modules/lexical": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/lexical/-/lexical-0.12.2.tgz", - "integrity": "sha512-Kxavd+ETjxtVwG/hvPd6WZfXD44sLOKe9Vlkwxy7lBQ1qZArS+rZfs+u5iXwXe6tX9f2PIM0u3RHsrCEDDE0fw==" + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/lexical/-/lexical-0.12.4.tgz", + "integrity": "sha512-giNrnp45H6P4IHFhkKaHEPTF+bKLBWdEIDL/FGjRZf+to7l7TORIBk/23Zdchzt/VGgKGWu950EOvGh53gkVMQ==" }, "node_modules/lib0": { "version": "0.2.87", @@ -21319,12 +21320,12 @@ } }, "node_modules/yjs": { - "version": "13.6.8", - "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.8.tgz", - "integrity": "sha512-ZPq0hpJQb6f59B++Ngg4cKexDJTvfOgeiv0sBc4sUm8CaBWH7OQC4kcCgrqbjJ/B2+6vO49exvTmYfdlPtcjbg==", + "version": "13.6.10", + "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.10.tgz", + "integrity": "sha512-1JcyQek1vaMyrDm7Fqfa+pvHg/DURSbVo4VmeN7wjnTKB/lZrfIPhdCj7d8sboK6zLfRBJXegTjc9JlaDd8/Zw==", "peer": true, "dependencies": { - "lib0": "^0.2.74" + "lib0": "^0.2.86" }, "engines": { "node": ">=16.0.0", diff --git a/package.json b/package.json index 2da3de1f..20c07392 100644 --- a/package.json +++ b/package.json @@ -40,15 +40,15 @@ "@codemirror/state": "^6.2.1", "@codemirror/view": "^6.21.0", "@codesandbox/sandpack-react": "^2.6.7", - "@lexical/clipboard": "^0.12.2", - "@lexical/link": "^0.12.2", - "@lexical/list": "^0.12.2", - "@lexical/markdown": "^0.12.2", - "@lexical/plain-text": "^0.12.2", - "@lexical/react": "^0.12.2", - "@lexical/rich-text": "^0.12.2", - "@lexical/selection": "^0.12.2", - "@lexical/utils": "^0.12.2", + "@lexical/clipboard": "^0.12.4", + "@lexical/link": "^0.12.4", + "@lexical/list": "^0.12.4", + "@lexical/markdown": "^0.12.4", + "@lexical/plain-text": "^0.12.4", + "@lexical/react": "^0.12.4", + "@lexical/rich-text": "^0.12.4", + "@lexical/selection": "^0.12.4", + "@lexical/utils": "^0.12.4", "@radix-ui/colors": "^0.1.8", "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-icons": "^1.3.0", @@ -65,7 +65,7 @@ "hast-util-sanitize": "^4.1.0", "hast-util-to-html": "^8.0.4", "js-yaml": "4.1.0", - "lexical": "^0.12.2", + "lexical": "^0.12.4", "mdast-util-directive": "2.2.4", "mdast-util-from-markdown": "^1.3.0", "mdast-util-frontmatter": "1.0.1", diff --git a/src/plugins/link-dialog/index.ts b/src/plugins/link-dialog/index.ts index 1c51b643..c1f42737 100644 --- a/src/plugins/link-dialog/index.ts +++ b/src/plugins/link-dialog/index.ts @@ -197,15 +197,6 @@ const linkDialogSystem = system( editor?.dispatchCommand(TOGGLE_LINK_COMMAND, { url, title }) - // the dispatch command implementation fails to set the title for a fresh link creation. - // Work around with the code below. - setTimeout(() => { - editor?.update(() => { - const node = getLinkNodeInSelection($getSelection() as RangeSelection) - node?.setTitle(title) - }) - }, 100) - r.pub(linkDialogState, { type: 'preview', linkNodeKey: state.linkNodeKey,