From 40500c45347a431a57df0cb289a511552e9f3ab5 Mon Sep 17 00:00:00 2001 From: David Ten Sing Date: Thu, 4 Apr 2024 11:05:56 +0700 Subject: [PATCH 1/3] chore(deps): update lexical packages to 0.14.3 --- package-lock.json | 316 +++++++++++++++++++++------------------------- package.json | 20 +-- 2 files changed, 157 insertions(+), 179 deletions(-) diff --git a/package-lock.json b/package-lock.json index 70dc8b41..7ee9ac69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,15 +14,15 @@ "@codemirror/state": "^6.4.0", "@codemirror/view": "^6.23.0", "@codesandbox/sandpack-react": "^2.10.0", - "@lexical/clipboard": "^0.14.2", - "@lexical/link": "^0.14.2", - "@lexical/list": "^0.14.2", - "@lexical/markdown": "^0.14.2", - "@lexical/plain-text": "^0.14.2", - "@lexical/react": "^0.14.2", - "@lexical/rich-text": "^0.14.2", - "@lexical/selection": "^0.14.2", - "@lexical/utils": "^0.14.2", + "@lexical/clipboard": "^0.14.3", + "@lexical/link": "^0.14.3", + "@lexical/list": "^0.14.3", + "@lexical/markdown": "^0.14.3", + "@lexical/plain-text": "^0.14.3", + "@lexical/react": "^0.14.3", + "@lexical/rich-text": "^0.14.3", + "@lexical/selection": "^0.14.3", + "@lexical/utils": "^0.14.3", "@mdxeditor/gurx": "^1.1.1", "@radix-ui/colors": "^3.0.0", "@radix-ui/react-dialog": "^1.0.5", @@ -37,7 +37,7 @@ "codemirror": "^6.0.1", "downshift": "^7.6.0", "js-yaml": "4.1.0", - "lexical": "^0.14.2", + "lexical": "^0.14.3", "mdast-util-directive": "^3.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-frontmatter": "^2.0.1", @@ -1857,239 +1857,217 @@ } }, "node_modules/@lexical/clipboard": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.14.2.tgz", - "integrity": "sha512-WevZZ+VPpkvcgZZXxjHY2lc3+2kw+UA6q19MWdZA2y4NVQyeDmjxQp5uxdUWGTKTBzt22vlzeQ2jbtKz4wY3/g==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.14.3.tgz", + "integrity": "sha512-kMasHJQCNSSdD6US8XF/GJEZAgdmIUIoqwcV/7Q8jVUICYT53bcr+Rh7RxL+1c7ZpJE2rXg5KTELsUPGjs0uwA==", "dependencies": { - "@lexical/html": "0.14.2", - "@lexical/list": "0.14.2", - "@lexical/selection": "0.14.2", - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/html": "0.14.3", + "@lexical/list": "0.14.3", + "@lexical/selection": "0.14.3", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/code": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/code/-/code-0.14.2.tgz", - "integrity": "sha512-XByweRm8flv/2nwwLbnZwskl2y6jWuDFuKB/8ywvSenMsGyr7OSg5ALJrsFuX5KUo9mEGGpaiM8UVeMoeaqMgg==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/code/-/code-0.14.3.tgz", + "integrity": "sha512-eBhs+TsJ5z7Vg/0e77bau86lN7R5nqO7effkPNNndn0XV2VSDpjMF+PTj4Cd1peenFlfqVivBr9gdewDrvPQng==", "dependencies": { - "@lexical/utils": "0.14.2", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3", "prismjs": "^1.27.0" - }, - "peerDependencies": { - "lexical": "0.14.2" } }, "node_modules/@lexical/dragon": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.14.2.tgz", - "integrity": "sha512-yzYJ3HD/goZZW5+ckYGCidtQ5zwrT08yDPhNgFUh9eni2ePQ9b56x2Bko01urocIkEqA0d6VEtfoO+hAOHiq6Q==", - "peerDependencies": { - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.14.3.tgz", + "integrity": "sha512-GTnt5a5Zs1f3q5Z9tC63VPzCFNAG+37ySHO+mQpVqlTsDmwSeJzFKGZyxq81tZXsKaXQZ4llc9K6I1f/XJoypw==", + "dependencies": { + "lexical": "0.14.3" } }, "node_modules/@lexical/hashtag": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.14.2.tgz", - "integrity": "sha512-H2z71iGX3n0ZB45y5uoI7aPwVjClo01df480IrTecKxr4aAKbK5LhFQWOphiUXBiv4O1sn+Xa88f8IpbfqQ5Vg==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.14.3.tgz", + "integrity": "sha512-BlMhegitxNscJyM0QGjnzpt7QQaiftVf80dqfiVGdgFJi9hS4wrYEsPpA7jlsZG5Q46DSw/zMRp3tpHfdU6TCQ==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/history": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/history/-/history-0.14.2.tgz", - "integrity": "sha512-k0gNIKCDeyIWEHIJKHZFfGVEN4yPID8tfuR4/R1M12WUwnga/X3regxPSMV8LE1SWbCz6iiQuaeZozxOJ3AlRw==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/history/-/history-0.14.3.tgz", + "integrity": "sha512-I5Ssaz+uRYsFmqN5WfKCyTkPPV1CTnEQ21vuKp8PVI4hBdlIy5aJdeQXbQhg0BdCtQVSjpm7WRGMk5ATiAXLPw==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/html": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/html/-/html-0.14.2.tgz", - "integrity": "sha512-5uL0wSfS9H5/HNeCM4QaJMekoL1w4D81361RlC2ppKt1diSzLiWOITX1qElaTcnDJBGez5mv1ZNiRTutYOPV4Q==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/html/-/html-0.14.3.tgz", + "integrity": "sha512-ID4RdHdOXv2qIg6cqNhbYiqgcV5aEJFAV+zZ14CMpxPlW71tiRlmy/Pp4WqCFgjnZ2GZRq34+kag+cT2H69ILQ==", "dependencies": { - "@lexical/selection": "0.14.2", - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/selection": "0.14.3", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/link": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/link/-/link-0.14.2.tgz", - "integrity": "sha512-XD4VdxtBm9Yx5vk2hDEDKY1BjgNVdfmxQHo6Y/kyImAHhGRiBWa6V1+l55qfgcjPW3tN2QY/gSKDCPQGk7vKJw==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/link/-/link-0.14.3.tgz", + "integrity": "sha512-txhuzcx2OfOtZ/fy9cgauDGW1gi2vSU0iQdde4i0UP2KK4ltioA9eFkjqAacGiPvwJ8w2CZV9q5Ck4DgFAKQ7w==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/list": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/list/-/list-0.14.2.tgz", - "integrity": "sha512-74MVHcYtTC5Plj+GGRV08uk9qbI1AaKc37NGLe3T08aVBqzqxXl1qZK9BhrM2mqTVXB98ZnOXkBk+07vke+b0Q==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/list/-/list-0.14.3.tgz", + "integrity": "sha512-d9ZiEkZ34DpzBNq2GkedJpXF8sIxSQvHOGhNbVvTuBvgDcCwbmXL0KY4k+xu+jMScRO/3oR7C6YZpZT3GaUO+Q==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/mark": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/mark/-/mark-0.14.2.tgz", - "integrity": "sha512-8G1p2tuUkymWXvWgUUShZp5AgYIODUZrBYDpGsCBNkXuSdGagOirS5LhKeiT/68BnrPzGrlnCdmomnI/kMxh6w==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/mark/-/mark-0.14.3.tgz", + "integrity": "sha512-HegYMuiCazmM4XXVUzteA5bOFEiWxeIZSMK98rCV7t5czYlQmgaV5PWIT5/wLnSgrJA6apa02JHLINE9CuUHlw==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/markdown": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.14.2.tgz", - "integrity": "sha512-U5P8ceEhiQqEKyy3dx4ldVBdoajquVndrZ4TvS6HJs8jeqOH49sLMvbKtNpXPL1plGvvwAjutQzEUdY+ifpGgw==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.14.3.tgz", + "integrity": "sha512-G97Twk0qq5Mkj7S95fFODN6D7nBZsHiXgd2QeCZQ+qbrItEsjEsM0vCtVBELpZzyl700ExfIJCA9eHrq28VNxw==", "dependencies": { - "@lexical/code": "0.14.2", - "@lexical/link": "0.14.2", - "@lexical/list": "0.14.2", - "@lexical/rich-text": "0.14.2", - "@lexical/text": "0.14.2", - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/code": "0.14.3", + "@lexical/link": "0.14.3", + "@lexical/list": "0.14.3", + "@lexical/rich-text": "0.14.3", + "@lexical/text": "0.14.3", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/offset": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/offset/-/offset-0.14.2.tgz", - "integrity": "sha512-bv6M+HITGNDuXvIELB1NLobRKoxtP1JPG3zDhKGPnLyjzFeHE5FZ6QbGc9y8ltrhUafVmxgzW/Es0IJXTsGf7Q==", - "peerDependencies": { - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/offset/-/offset-0.14.3.tgz", + "integrity": "sha512-xzyHLED9N3VPsLSpxs235W1xnh1xLl0SFqLLN9fkZs4fBLPtoPrzfYjjTMx6KgRPCa96GauAMsAaKn+JWHaD4g==", + "dependencies": { + "lexical": "0.14.3" } }, "node_modules/@lexical/overflow": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.14.2.tgz", - "integrity": "sha512-2eHirK9GmGr7juMjeF54fZ8xPwdMMzni+FXC4NVMDWzzM3yjK3BCBK6AUJsU3o4Y4bV3mUvZp55x9Ys5lX3zOw==", - "peerDependencies": { - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.14.3.tgz", + "integrity": "sha512-2PabHT5vCtfN1lx2d3j1AW6naGJEcjLyUxEMrPzqNZ8IDGuLbD3uRi/wS8evmFLgKkF5mqRnPPlpwGbqGg+qUw==", + "dependencies": { + "lexical": "0.14.3" } }, "node_modules/@lexical/plain-text": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.14.2.tgz", - "integrity": "sha512-vHvJ+Dy+SpzZ0hVN3r+DONHoSn0WzuK6htwsV0IyaMyEeypxnFs6FB/znyWmoU+X2EAhDCu5O9npLDWmrJjCdQ==", - "peerDependencies": { - "@lexical/clipboard": "0.14.2", - "@lexical/selection": "0.14.2", - "@lexical/utils": "0.14.2", - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.14.3.tgz", + "integrity": "sha512-Ct3sQmhc34Iuj0YWT5dlLzTcuCLAMx7uaLKb0lxb7A6bcUBPfC1eBv2KtILZ9eW/GEUCMTqYEnmixTY7vPR9AA==", + "dependencies": { + "@lexical/clipboard": "0.14.3", + "@lexical/selection": "0.14.3", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/react": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/react/-/react-0.14.2.tgz", - "integrity": "sha512-HCsZv5yExA/8h7Ul6y5NcqUAGctL79A7qSz7YSlrwfw8EYyUHXW5LzeoFTWSl12SKs600PM+I8jLGXu72N6kfQ==", - "dependencies": { - "@lexical/clipboard": "0.14.2", - "@lexical/code": "0.14.2", - "@lexical/dragon": "0.14.2", - "@lexical/hashtag": "0.14.2", - "@lexical/history": "0.14.2", - "@lexical/link": "0.14.2", - "@lexical/list": "0.14.2", - "@lexical/mark": "0.14.2", - "@lexical/markdown": "0.14.2", - "@lexical/overflow": "0.14.2", - "@lexical/plain-text": "0.14.2", - "@lexical/rich-text": "0.14.2", - "@lexical/selection": "0.14.2", - "@lexical/table": "0.14.2", - "@lexical/text": "0.14.2", - "@lexical/utils": "0.14.2", - "@lexical/yjs": "0.14.2", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/react/-/react-0.14.3.tgz", + "integrity": "sha512-sUgF7dStJTYvkS14QzlpB5XJ5p498JDSEBSADRsf0KOJsTINAQhh27vXuS8/I2FH3FanonH/RrLwSildL/FnzA==", + "dependencies": { + "@lexical/clipboard": "0.14.3", + "@lexical/code": "0.14.3", + "@lexical/dragon": "0.14.3", + "@lexical/hashtag": "0.14.3", + "@lexical/history": "0.14.3", + "@lexical/link": "0.14.3", + "@lexical/list": "0.14.3", + "@lexical/mark": "0.14.3", + "@lexical/markdown": "0.14.3", + "@lexical/overflow": "0.14.3", + "@lexical/plain-text": "0.14.3", + "@lexical/rich-text": "0.14.3", + "@lexical/selection": "0.14.3", + "@lexical/table": "0.14.3", + "@lexical/text": "0.14.3", + "@lexical/utils": "0.14.3", + "@lexical/yjs": "0.14.3", + "lexical": "0.14.3", "react-error-boundary": "^3.1.4" }, "peerDependencies": { - "lexical": "0.14.2", "react": ">=17.x", "react-dom": ">=17.x" } }, "node_modules/@lexical/rich-text": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.14.2.tgz", - "integrity": "sha512-KXxeVfzHw4volw5Tm/TXGCDH+OCvFm1QU17LK3ToAulN2M+j0745yxpudtRfcl96fIbB9THY2toAZpJ9YbMTNQ==", - "peerDependencies": { - "@lexical/clipboard": "0.14.2", - "@lexical/selection": "0.14.2", - "@lexical/utils": "0.14.2", - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.14.3.tgz", + "integrity": "sha512-o8wGvRDyPSRcfb6bauF5lzK5u/kzCW+hAQq0ExM1e8p4GHDb0vwz9DA6NH5D0BPHb2fUgknwClHOoJX95WUA8A==", + "dependencies": { + "@lexical/clipboard": "0.14.3", + "@lexical/selection": "0.14.3", + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/selection": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/selection/-/selection-0.14.2.tgz", - "integrity": "sha512-M122XXGEiBgaxEhL63d+su0pPri67/GlFIwGC/j3D0TN4Giyt/j0ToHhqvlIF6TfuXlBusIYbSuJ19ny12lCEg==", - "peerDependencies": { - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/selection/-/selection-0.14.3.tgz", + "integrity": "sha512-43EmqG6flLqFJJNZ7GCxFlx3qXy7osB3AQBgxKTthWtQeBrJPdgacctL1jhO7etTIQWP5C1DExy3opDLVKyDjg==", + "dependencies": { + "lexical": "0.14.3" } }, "node_modules/@lexical/table": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/table/-/table-0.14.2.tgz", - "integrity": "sha512-iwsZ5AqkM7RGyU38daK0XgpC8DG0TlEqEYsXhOLjCpAERY/+bgfdjxP8YWtUV5eIgHX0yY7FkqCUZUJSEcbUeA==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/table/-/table-0.14.3.tgz", + "integrity": "sha512-9btpU2lfAE34ucIqlMu5RiSVlxREXY7Zp+s26oFsXNoNPhW57iND96TrqwYo9FJl/6zXXfvqYxnUEcUD2dLgwQ==", "dependencies": { - "@lexical/utils": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/utils": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/text": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/text/-/text-0.14.2.tgz", - "integrity": "sha512-5N1Bwr75EGdP/4izQRzoxyKpozy+0YixGJOo3OoldlX9/j+Sf5XiCFj3Ifgfl5dygZ0oITQk4duHpzjPHez59Q==", - "peerDependencies": { - "lexical": "0.14.2" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/text/-/text-0.14.3.tgz", + "integrity": "sha512-7+B9KkA37iHTlPqt6GHdfBIoaA9dQfhKrQNP9+422/CO/adCru4S94yNxiHXFq7iCvgucfuFop9M8jOfqLQbBQ==", + "dependencies": { + "lexical": "0.14.3" } }, "node_modules/@lexical/utils": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/utils/-/utils-0.14.2.tgz", - "integrity": "sha512-IGknsaSyQbBJYKJJrrjNPaZuQPsJmFqGrCmNR6DcQNenWrFnmAliQPFA7HbszwRSxOFTo/BCAsIgXRQob6RjOQ==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/utils/-/utils-0.14.3.tgz", + "integrity": "sha512-coqG2AO7QhJCM0xBlYvtETjl0il9u4HQRuc8ye3j8jMfNadVvVVWO3Fodmm/8FTPyJuxIij1Ruma9zqhlAbN6Q==", "dependencies": { - "@lexical/list": "0.14.2", - "@lexical/selection": "0.14.2", - "@lexical/table": "0.14.2" - }, - "peerDependencies": { - "lexical": "0.14.2" + "@lexical/list": "0.14.3", + "@lexical/selection": "0.14.3", + "@lexical/table": "0.14.3", + "lexical": "0.14.3" } }, "node_modules/@lexical/yjs": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.14.2.tgz", - "integrity": "sha512-0AKwQYRx7KvAKTdizoAXd9XZhkTO6l3LmHRvsu70YAHVZUEb9tVQBM7lp/dtBBQF0SII/7uKwrluX6Vi/apWYA==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.14.3.tgz", + "integrity": "sha512-Ju+PQJg4NjQoNzfPlQKa6A71sjgGWj5lL4cbe+4xlNoknfK3NApVeznOi3xAM7rUCr6fPBAjzF9/uwfMXR451g==", "dependencies": { - "@lexical/offset": "0.14.2" + "@lexical/offset": "0.14.3", + "lexical": "0.14.3" }, "peerDependencies": { - "lexical": "0.14.2", "yjs": ">=13.5.22" } }, @@ -12330,9 +12308,9 @@ } }, "node_modules/lexical": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/lexical/-/lexical-0.14.2.tgz", - "integrity": "sha512-Uxe0jD2T4XY/+WKiVgnV6OH/GmsF1I0YStcSuMR3Alfhnv5MEYuCa482zo+S5zOPjB1x9j/b+TOLtZEMArwELw==" + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/lexical/-/lexical-0.14.3.tgz", + "integrity": "sha512-LaWSKj6OpvJ+bdfQA2AybEzho0YoWfAdRGkuCtPNYd/uf7IHyoEwCFQsIBvWCQF23saDgE1NONR4uiwl6iaJ9g==" }, "node_modules/lib0": { "version": "0.2.93", diff --git a/package.json b/package.json index 0f62ad0b..5b0fd7c2 100644 --- a/package.json +++ b/package.json @@ -41,15 +41,15 @@ "@codemirror/state": "^6.4.0", "@codemirror/view": "^6.23.0", "@codesandbox/sandpack-react": "^2.10.0", - "@lexical/clipboard": "^0.14.2", - "@lexical/link": "^0.14.2", - "@lexical/list": "^0.14.2", - "@lexical/markdown": "^0.14.2", - "@lexical/plain-text": "^0.14.2", - "@lexical/react": "^0.14.2", - "@lexical/rich-text": "^0.14.2", - "@lexical/selection": "^0.14.2", - "@lexical/utils": "^0.14.2", + "@lexical/clipboard": "^0.14.3", + "@lexical/link": "^0.14.3", + "@lexical/list": "^0.14.3", + "@lexical/markdown": "^0.14.3", + "@lexical/plain-text": "^0.14.3", + "@lexical/react": "^0.14.3", + "@lexical/rich-text": "^0.14.3", + "@lexical/selection": "^0.14.3", + "@lexical/utils": "^0.14.3", "@mdxeditor/gurx": "^1.1.1", "@radix-ui/colors": "^3.0.0", "@radix-ui/react-dialog": "^1.0.5", @@ -64,7 +64,7 @@ "codemirror": "^6.0.1", "downshift": "^7.6.0", "js-yaml": "4.1.0", - "lexical": "^0.14.2", + "lexical": "^0.14.3", "mdast-util-directive": "^3.0.0", "mdast-util-from-markdown": "^2.0.0", "mdast-util-frontmatter": "^2.0.1", From 531109255574b3cdc33c6f8e403f081c7b97e8ad Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Sun, 7 Apr 2024 11:27:37 +0300 Subject: [PATCH 2/3] fix: empty title case Fixes #350 --- src/plugins/link-dialog/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/link-dialog/index.ts b/src/plugins/link-dialog/index.ts index d87a2b7a..d012ec9c 100644 --- a/src/plugins/link-dialog/index.ts +++ b/src/plugins/link-dialog/index.ts @@ -148,10 +148,10 @@ export const linkDialogState$ = Cell { - const url = payload.url.trim() - const title = payload.title.trim() + const url = payload.url?.trim() ?? '' + const title = payload.title?.trim() ?? '' - if (url.trim() !== '') { + if (url !== '') { if (selection?.isCollapsed()) { const linkContent = title || url editor?.update( From 1e942c68c57acd3669f955d8cbecb1ddc202b8c9 Mon Sep 17 00:00:00 2001 From: Peng Deng Date: Sat, 6 Apr 2024 11:12:57 +0800 Subject: [PATCH 3/3] feat: add Chinese(Simplified) language translation --- locales/zh-cn/translation.json | 101 +++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 locales/zh-cn/translation.json diff --git a/locales/zh-cn/translation.json b/locales/zh-cn/translation.json new file mode 100644 index 00000000..392d60a2 --- /dev/null +++ b/locales/zh-cn/translation.json @@ -0,0 +1,101 @@ +{ + "frontmatterEditor": { + "title": "编辑前置元数据", + "key": "键", + "value": "值", + "addEntry": "添加项目" + }, + "dialogControls": { + "save": "保存", + "cancel": "取消" + }, + "uploadImage": { + "uploadInstructions": "从您的设备中上传图片:", + "addViaUrlInstructions": "或从网址新增图片:", + "autoCompletePlaceholder": "选择或粘贴图片", + "alt": "替代文本:", + "title": "标题:" + }, + "imageEditor": { + "editImage": "编辑图片" + }, + "createLink": { + "url": "网址", + "urlPlaceholder": "选择或粘贴网址", + "title": "标题", + "saveTooltip": "设置网址", + "cancelTooltip": "取消更改" + }, + "linkPreview": { + "open": "在新窗口中打开 {{url}}", + "edit": "编辑链接网址", + "copyToClipboard": "复制到剪贴板", + "copied": "已复制!", + "remove": "移除链接" + }, + "table": { + "deleteTable": "删除表格", + "columnMenu": "列菜单", + "textAlignment": "文字对齐", + "alignLeft": "左对齐", + "alignCenter": "居中对齐", + "alignRight": "右对齐", + "insertColumnLeft": "在当前列左侧插入一列", + "insertColumnRight": "在当前列右侧插入一列", + "deleteColumn": "删除此列", + "rowMenu": "行菜单", + "insertRowAbove": "在当前行上方插入一行", + "insertRowBelow": "在当前行下方插入一行", + "deleteRow": "删除此行" + }, + "toolbar": { + "blockTypes": { + "paragraph": "段落", + "quote": "引用", + "heading": "标题 {{level}}" + }, + "blockTypeSelect": { + "selectBlockTypeTooltip": "选择块类型", + "placeholder": "块类型" + }, + "removeBold": "移除粗体", + "bold": "粗体", + "removeItalic": "移除斜体", + "italic": "斜体", + "underline": "移除下划线", + "removeUnderline": "下划线", + "removeInlineCode": "移除内联代码样式", + "inlineCode": "内联代码样式", + "link": "创建链接", + "richText": "富文本", + "diffMode": "差异模式", + "source": "源码模式", + "admonition": "插入注释区块", + "codeBlock": "插入代码块", + "editFrontmatter": "编辑前置元数据", + "insertFrontmatter": "插入前置元数据", + "image": "插入图片", + "insertSandpack": "插入 Sandpack", + "table": "插入表格", + "thematicBreak": "插入主题换行", + "bulletedList": "无序列表", + "numberedList": "有序列表", + "checkList": "任务列表", + "deleteSandpack": "删除 Sandpack", + "undo": "撤销 {{shortcut}}", + "redo": "重做 {{shortcut}}" + }, + "admonitions": { + "note": "注意", + "tip": "提示", + "danger": "危险", + "info": "信息", + "caution": "警告", + "changeType": "选择注释区块类型", + "placeholder": "注释区块类型" + }, + "codeBlock": { + "language": "代码块语言", + "selectLanguage": "选择代码块语言" + } +}