A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat(editor): integrate TipTap WYSIWYG editor with Markdown support and enhance editor functionalities
robin9ef55ca07c66
diff --git a/ui/package.json b/ui/package.jsonindex b88fc12d..5a6704ce 100644--- a/ui/package.json+++ b/ui/package.json@@ -21,6 +21,12 @@"@codemirror/language-data": "^6.5.0","@codemirror/state": "^6.5.0","@codemirror/view": "^6.26.1",+ "@tiptap/extension-image": "^3.11.1",+ "@tiptap/extension-placeholder": "^3.11.1",+ "@tiptap/extension-table": "^3.11.1",+ "@tiptap/markdown": "^3.11.1",+ "@tiptap/react": "^3.11.1",+ "@tiptap/starter-kit": "^3.11.1","axios": "^1.7.7","bootstrap": "^5.3.2","bootstrap-icons": "^1.10.5",@@ -100,4 +106,4 @@"pnpm": ">=9"},"license": "MIT"-}+}\ No newline at end of filediff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yamlindex 842009a7..901c503d 100644--- a/ui/pnpm-lock.yaml+++ b/ui/pnpm-lock.yaml@@ -20,6 +20,36 @@ importers:'@codemirror/view':specifier: ^6.26.1version: 6.35.3+ '@tiptap/extension-image':+ specifier: ^3.11.1+ version: 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-list':+ specifier: ^3.11.1+ '@tiptap/extension-placeholder':+ specifier: ^3.11.1+ version: 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table':+ specifier: ^3.11.1+ '@tiptap/extension-table-cell':+ specifier: ^3.11.1+ version: 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table-header':+ specifier: ^3.11.1+ version: 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-table-row':+ specifier: ^3.11.1+ version: 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/markdown':+ specifier: ^3.11.1+ '@tiptap/react':+ specifier: ^3.11.1+ version: 3.11.1(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@tiptap/starter-kit':+ specifier: ^3.11.1+ version: 3.11.1axios:specifier: ^1.7.7version: 1.7.9@@ -97,11 +127,11 @@ importers:version: 1.3.0([email protected])zustand:specifier: ^5.0.2- version: 5.0.2(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))+ version: 5.0.2(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))devDependencies:'@commitlint/cli':specifier: ^17.0.3- version: 17.8.1+ version: 17.8.1(@swc/[email protected])'@commitlint/config-conventional':specifier: ^17.2.0version: 17.8.1@@ -212,13 +242,13 @@ importers:version: 3.4.2purgecss-webpack-plugin:specifier: ^4.1.3- version: 4.1.3([email protected])+ version: 4.1.3([email protected](@swc/[email protected]))react-app-rewired:specifier: ^2.2.1- version: 2.2.1([email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]))+ version: 2.2.1([email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])([email protected])([email protected]))react-scripts:specifier: 5.0.1- version: 5.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ version: 5.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])([email protected])([email protected])sass:specifier: 1.54.4version: 1.54.4@@ -232,6 +262,190 @@ importers:specifier: ^0.8.0version: 0.8.1+ src/plugins/demo-captcha:+ dependencies:+ react:+ specifier: ^18.2.0+ version: 18.3.1+ react-bootstrap:+ specifier: ^2.10.0+ version: 2.10.6(@types/[email protected])([email protected]([email protected]))([email protected])+ react-dom:+ specifier: ^18.2.0+ version: 18.3.1([email protected])+ react-i18next:+ specifier: ^11.18.3+ devDependencies:+ '@modyfi/vite-plugin-yaml':+ specifier: ^1.1.0+ version: 1.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]))+ '@typescript-eslint/eslint-plugin':+ specifier: ^6.0.0+ version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser':+ specifier: ^6.0.0+ version: 6.21.0([email protected])([email protected])+ '@vitejs/plugin-react-swc':+ specifier: ^3.3.2+ version: 3.11.0([email protected](@types/[email protected])([email protected])([email protected]))+ eslint:+ specifier: ^8.45.0+ version: 8.57.1+ eslint-plugin-react-hooks:+ specifier: ^4.6.0+ version: 4.6.2([email protected])+ eslint-plugin-react-refresh:+ specifier: ^0.4.3+ version: 0.4.24([email protected])+ typescript:+ specifier: ^5.0.2+ version: 5.9.3+ vite:+ specifier: ^4.4.5+ vite-plugin-dts:+ specifier: ^3.9.1+ version: 3.9.1(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))++ src/plugins/demo-editor:+ dependencies:+ react:+ specifier: ^18.2.0+ version: 18.3.1+ react-bootstrap:+ specifier: ^2.10.0+ version: 2.10.6(@types/[email protected])([email protected]([email protected]))([email protected])+ react-dom:+ specifier: ^18.2.0+ version: 18.3.1([email protected])+ react-i18next:+ specifier: ^11.18.3+ devDependencies:+ '@modyfi/vite-plugin-yaml':+ specifier: ^1.1.0+ version: 1.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]))+ '@typescript-eslint/eslint-plugin':+ specifier: ^6.0.0+ version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser':+ specifier: ^6.0.0+ version: 6.21.0([email protected])([email protected])+ '@vitejs/plugin-react-swc':+ specifier: ^3.3.2+ version: 3.11.0([email protected](@types/[email protected])([email protected])([email protected]))+ eslint:+ specifier: ^8.45.0+ version: 8.57.1+ eslint-plugin-react-hooks:+ specifier: ^4.6.0+ version: 4.6.2([email protected])+ eslint-plugin-react-refresh:+ specifier: ^0.4.3+ version: 0.4.24([email protected])+ typescript:+ specifier: ^5.0.2+ version: 5.9.3+ vite:+ specifier: ^4.4.5+ vite-plugin-dts:+ specifier: ^3.9.1+ version: 3.9.1(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))++ src/plugins/demo-render:+ dependencies:+ react:+ specifier: ^18.2.0+ version: 18.3.1+ react-bootstrap:+ specifier: ^2.10.0+ version: 2.10.6(@types/[email protected])([email protected]([email protected]))([email protected])+ react-dom:+ specifier: ^18.2.0+ version: 18.3.1([email protected])+ react-i18next:+ specifier: ^11.18.3+ devDependencies:+ '@modyfi/vite-plugin-yaml':+ specifier: ^1.1.0+ version: 1.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]))+ '@typescript-eslint/eslint-plugin':+ specifier: ^6.0.0+ version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser':+ specifier: ^6.0.0+ version: 6.21.0([email protected])([email protected])+ '@vitejs/plugin-react-swc':+ specifier: ^3.3.2+ version: 3.11.0([email protected](@types/[email protected])([email protected])([email protected]))+ eslint:+ specifier: ^8.45.0+ version: 8.57.1+ eslint-plugin-react-hooks:+ specifier: ^4.6.0+ version: 4.6.2([email protected])+ eslint-plugin-react-refresh:+ specifier: ^0.4.3+ version: 0.4.24([email protected])+ typescript:+ specifier: ^5.0.2+ version: 5.9.3+ vite:+ specifier: ^4.4.5+ vite-plugin-dts:+ specifier: ^3.9.1+ version: 3.9.1(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))++ src/plugins/demo-route:+ dependencies:+ react:+ specifier: ^18.2.0+ version: 18.3.1+ react-bootstrap:+ specifier: ^2.10.0+ version: 2.10.6(@types/[email protected])([email protected]([email protected]))([email protected])+ react-dom:+ specifier: ^18.2.0+ version: 18.3.1([email protected])+ react-i18next:+ specifier: ^11.18.3+ devDependencies:+ '@modyfi/vite-plugin-yaml':+ specifier: ^1.1.0+ version: 1.1.1([email protected])([email protected](@types/[email protected])([email protected])([email protected]))+ '@typescript-eslint/eslint-plugin':+ specifier: ^6.0.0+ version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser':+ specifier: ^6.0.0+ version: 6.21.0([email protected])([email protected])+ '@vitejs/plugin-react-swc':+ specifier: ^3.3.2+ version: 3.11.0([email protected](@types/[email protected])([email protected])([email protected]))+ eslint:+ specifier: ^8.45.0+ version: 8.57.1+ eslint-plugin-react-hooks:+ specifier: ^4.6.0+ version: 4.6.2([email protected])+ eslint-plugin-react-refresh:+ specifier: ^0.4.3+ version: 0.4.24([email protected])+ typescript:+ specifier: ^5.0.2+ version: 5.9.3+ vite:+ specifier: ^4.4.5+ vite-plugin-dts:+ specifier: ^3.9.1+ version: 3.9.1(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))+packages:'@alloc/[email protected]':@@ -338,10 +552,18 @@ packages:resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}+ engines: {node: '>=6.9.0'}+'@babel/[email protected]':resolution: {integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==}engines: {node: '>=6.9.0'}@@ -359,6 +581,11 @@ packages:engines: {node: '>=6.0.0'}hasBin: true+ '@babel/[email protected]':+ resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==}+ engines: {node: '>=6.0.0'}+ hasBin: true+'@babel/[email protected]':resolution: {integrity: sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==}engines: {node: '>=6.9.0'}@@ -945,6 +1172,10 @@ packages:resolution: {integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==}engines: {node: '>=6.9.0'}+ '@babel/[email protected]':+ resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==}+ engines: {node: '>=6.9.0'}+'@bcoe/[email protected]':resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}@@ -1206,6 +1437,138 @@ packages:peerDependencies:postcss-selector-parser: ^6.0.10+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==}+ engines: {node: '>=12'}+ cpu: [loong64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]+'@eslint-community/[email protected]':resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -1224,6 +1587,15 @@ packages:resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}+'@fullhuman/[email protected]':resolution: {integrity: sha512-jqcsyfvq09VOsMXxJMPLRF6Fhg/NNltzWKnC9qtzva+QKTxerCO4esG6je7hbnmkpZtaDyPTwMBj9bzfWorsrw==}peerDependencies:@@ -1346,6 +1718,9 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}+ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}+'@jridgewell/[email protected]':resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}@@ -1409,6 +1784,24 @@ packages:'@marijn/[email protected]':resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==}+ '@microsoft/[email protected]':+ resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==}++ '@microsoft/[email protected]':+ resolution: {integrity: sha512-GFhTcJpB+MI6FhvXEI9b2K0snulNLWHqC/BbcJtyNYcKUiw7l3Lgis5ApsYncJ0leALX7/of4XfmXk+maT111w==}+ hasBin: true++ '@microsoft/[email protected]':+ resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==}++ '@microsoft/[email protected]':+ resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==}++ '@modyfi/[email protected]':+ resolution: {integrity: sha512-rEbfFNlMGLKpAYs2RsfLAhxCHFa6M4QKHHk0A4EYcCJAUwFtFO6qiEdLjUGUTtnRUxAC7GxxCa+ZbeUILSDvqQ==}+ peerDependencies:+ vite: '>=3.2.7'+'@nicolo-ribaudo/[email protected]':resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==}@@ -1467,6 +1860,9 @@ packages:peerDependencies:react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1+ '@remirror/[email protected]':+ resolution: {integrity: sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==}+'@restart/[email protected]':resolution: {integrity: sha512-f7aCv7c+nU/3mF7NWLtVVr0Ra80RqsO89hO72r+Y/nvQr5+q0UFGkocElTH6MJApvReVh6JHUFYn2cw1WdHF3w==}peerDependencies:@@ -1483,6 +1879,9 @@ packages:react: '>=16.14.0'react-dom: '>=16.14.0'+ '@rolldown/[email protected]':+ resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==}+'@rollup/[email protected]':resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==}engines: {node: '>= 10.0.0'}@@ -1511,12 +1910,52 @@ packages:peerDependencies:rollup: ^1.20.0||^2.0.0+ '@rollup/[email protected]':+ resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0+ peerDependenciesMeta:+ rollup:+ optional: true++ '@rollup/[email protected]':+ resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0+ peerDependenciesMeta:+ rollup:+ optional: true+'@rtsao/[email protected]':resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}'@rushstack/[email protected]':resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==}+ '@rushstack/[email protected]':+ resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==}+ peerDependencies:+ '@types/node': '*'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@rushstack/[email protected]':+ resolution: {integrity: sha512-mUDecIJeH3yYGZs2a48k+pbhM6JYwWlgjs2Ca5f2n1G2/kgdgP9D/07oglEGf6mRyXEnazhEENeYTSNDRCwdqA==}++ '@rushstack/[email protected]':+ resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==}+ peerDependencies:+ '@types/node': '*'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@rushstack/[email protected]':+ resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==}+'@sinclair/[email protected]':resolution: {integrity: sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA==}@@ -1585,9 +2024,84 @@ packages:resolution: {integrity: sha512-DOBOK255wfQxguUta2INKkzPj6AIS6iafZYiYmHn6W3pHlycSRRlvWKCfLDG10fXfLWqE3DJHgRUOyJYmARa7g==}engines: {node: '>=10'}+ '@swc/[email protected]':+ resolution: {integrity: sha512-AXfeQn0CvcQ4cndlIshETx6jrAM45oeUrK8YeEY6oUZU/qzz0Id0CyvlEywxkWVC81Ajpd8TQQ1fW5yx6zQWkQ==}+ engines: {node: '>=10'}+ cpu: [arm64]+ os: [darwin]++ '@swc/[email protected]':+ resolution: {integrity: sha512-p68OeCz1ui+MZYG4wmfJGvcsAcFYb6Sl25H9TxWl+GkBgmNimIiRdnypK9nBGlqMZAcxngNPtnG3kEMNnvoJ2A==}+ engines: {node: '>=10'}+ cpu: [x64]+ os: [darwin]++ '@swc/[email protected]':+ resolution: {integrity: sha512-Nuj5iF4JteFgwrai97mUX+xUOl+rQRHqTvnvHMATL/l9xE6/TJfPBpd3hk/PVpClMXG3Uvk1MxUFOEzM1JrMYg==}+ engines: {node: '>=10'}+ cpu: [arm]+ os: [linux]++ '@swc/[email protected]':+ resolution: {integrity: sha512-2Nc/s8jE6mW2EjXWxO/lyQuLKShcmTrym2LRf5Ayp3ICEMX6HwFqB1EzDhwoMa2DcUgmnZIalesq2lG3krrUNw==}+ engines: {node: '>=10'}+ cpu: [arm64]+ os: [linux]++ '@swc/[email protected]':+ resolution: {integrity: sha512-j4SJniZ/qaZ5g8op+p1G9K1z22s/EYGg1UXIb3+Cg4nsxEpF5uSIGEE4mHUfA70L0BR9wKT2QF/zv3vkhfpX4g==}+ engines: {node: '>=10'}+ cpu: [arm64]+ os: [linux]++ '@swc/[email protected]':+ resolution: {integrity: sha512-aKttAZnz8YB1VJwPQZtyU8Uk0BfMP63iDMkvjhJzRZVgySmqt/apWSdnoIcZlUoGheBrcqbMC17GGUmur7OT5A==}+ engines: {node: '>=10'}+ cpu: [x64]+ os: [linux]++ '@swc/[email protected]':+ resolution: {integrity: sha512-oe8FctPu1gnUsdtGJRO2rvOUIkkIIaHqsO9xxN0bTR7dFTlPTGi2Fhk1tnvXeyAvCPxLIcwD8phzKg6wLv9yug==}+ engines: {node: '>=10'}+ cpu: [x64]+ os: [linux]++ '@swc/[email protected]':+ resolution: {integrity: sha512-L9AjzP2ZQ/Xh58e0lTRMLvEDrcJpR7GwZqAtIeNLcTK7JVE+QineSyHp0kLkO1rttCHyCy0U74kDTj0dRz6raA==}+ engines: {node: '>=10'}+ cpu: [arm64]+ os: [win32]++ '@swc/[email protected]':+ resolution: {integrity: sha512-B8UtogMzErUPDWUoKONSVBdsgKYd58rRyv2sHJWKOIMCHfZ22FVXICR4O/VwIYtlnZ7ahERcjayBHDlBZpR0aw==}+ engines: {node: '>=10'}+ cpu: [ia32]+ os: [win32]++ '@swc/[email protected]':+ resolution: {integrity: sha512-SpZKMR9QBTecHeqpzJdYEfgw30Oo8b/Xl6rjSzBt1g0ZsXyy60KLXrp6IagQyfTYqNYE/caDvwtF2FPn7pomog==}+ engines: {node: '>=10'}+ cpu: [x64]+ os: [win32]++ '@swc/[email protected]':+ resolution: {integrity: sha512-Qd8eBPkUFL4eAONgGjycZXj1jFCBW8Fd+xF0PzdTlBCWQIV1xnUT7B93wUANtW3KGjl3TRcOyxwSx/u/jyKw/Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@swc/helpers': '>=0.5.17'+ peerDependenciesMeta:+ '@swc/helpers':+ optional: true++ '@swc/[email protected]':+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}+'@swc/[email protected]':resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}+ '@swc/[email protected]':+ resolution: {integrity: sha512-iAoY/qRhNH8a/hBvm3zKj9qQ4oc2+3w1unPJa2XvTK3XjeLXtzcCingVPw/9e5mn1+0yPqxcBGp9Jf0pkfMb1g==}+'@testing-library/[email protected]':resolution: {integrity: sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g==}engines: {node: '>=12'}@@ -1609,6 +2123,192 @@ packages:peerDependencies:'@testing-library/dom': '>=7.21.4'+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-q7uzYrCq40JOIi6lceWe2HuA8tSr97iPwP/xtJd0bZjyL1rWhUyqxMb7y+aq4RcELrx/aNRa2JIvLtRRdy02Dg==}+ peerDependencies:+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-c3DN5c/9kl8w1wCcylH9XqW0OyCegqE3EL4rDlVYkyBD0GwCnUS30pN+jdxCUq/tl94lkkRk7XMyEUwzQmG+5g==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ee/OoAPViUAgJb8dxF7D2YSSYUWcw8RXqhNSDx15w58rxpYbJbvOv3WDMrGNvl4M9nuwXYfXc3iPl/eYtwHx2w==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-rLgU2drvoSTpdXEmoo61ZSmtRR44vMeS36OoDpUA1dNzo/vWAiOzQeLnm8gC9cD2TmvJ+WIe7tOkpAEfw4kmiQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-6fj0b0Ynam8FMsP3NiCZ4a2uP7lCBHDFBXfcRwFDOqAgBIPvIK+r6CuHEGothGaF7EeQ9MTyj9fwlGjyHsPQcg==}+ peerDependencies:+ '@tiptap/extension-list': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Bk7mmA+m510zzLG5AMFmywrL50NlBA5p7bR0cKfdp4ckXr8FohxH3QS0Woy1MRnFUGRtIzJkSYQTJ3O/G1lBqQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-R3HtNPAuaKqbDwK1uWO/6QFHXbbKcxbV27XVCVtTQ4gCAzIZbJElp9REEqAOp/zI6bqt774UrAekeV+5i8NQYw==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Px8T7Kv8EEiFpM/h13Rro8HoynrlK8zA3u3ekHq/FBSTXnPtqPAUYNx/DUhIrLs3eWWJ8+P0Onm+sVLZmaLMug==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-+tmWD/4tg7Mt1TArrvc1Gna1FiSyru2rE6sapEerXCH3RFfaqGBeMqeRaOeZrCiqB+vIsXfthHDC/7xz5rFp/g==}+ peerDependencies:+ '@tiptap/extensions': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-HGF04KhDn1oAD+2/zStSWeGIgR41l/raf64h/Rwkvde5Sf2g3BPRW4M1ESS6e2Rjw74Kwa4/xNO6CzZNid6yRg==}+ peerDependencies:+ '@floating-ui/dom': ^1.0.0+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-rZ4eIFOPrLPM0bAMW560v/i9WeAz6D6PPtmFJ/Rwh7F5QFbg+jSXAyGvg7V9ZwzA5OaXqsToyJBR7qtGXBXAhQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-JMp6CizdB7LoY2jmaZub2D+Aj6RJTkSu0EhIcN/bmBrm4MjYa/ir6nRoo4/gYGIHzHwgwGR/1KmlqTJZW/xl4g==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-b9ShCSQhWXNzdbdn9a3j33cq646nS0EpVyNBQr0BMOpIcMI4Ot8LGEvPo0BNqPPvpjMJaP2N6xp+EIdk6tunfQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-9zr6dItcJvzZtFlC+dyFb5VfWGzKzldPAOuln1d/GwKrBZds53O2vBmu4Jxfy22N9LuwiGB+2PYerq0UkLnxnA==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-lI+FyyHavUXHmDKxvSAdqGAvaYtVesAxHckeA60ZjZu9fBkUnVWHD8uR0TStX7EdOIRBWpzYrG7dDT4EkFVjTA==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-SrjsU+gvhjoPKelc4YSeC2AQ0lhwLiDWMO7fW83CVitCF8iWXpBSeVCI5SxtPeZNKTZ1ZCc3lIQCeEHOC/gP0g==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ds5auQnWGcHwC2/c1iEvvybdLPcSDlxsii7FPaZg4LaSGdNojRB0qDRZw5dzYQZbfIf5vgYGcIVCVjNPZs1UwQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-KFw3TAwN6hQ+oDeE3lRqwzCRKhxU1NWf9q5SAwiUxlp/LcEjuhXcYJYX8SHPOLOlTo0P42v1i0KBeLUPKnO58g==}+ peerDependencies:+ '@tiptap/extension-list': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-MpeuVi+bOHulbN65bOjaeoNJstNuAAEPdLwNjW25c9y2a8b5iZFY8vdVNENDiqq+dI+F5EaFGaEq0FN0uslfiA==}+ peerDependencies:+ '@tiptap/extension-list': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-XJRN9pOPMi3SsaKv4qM8WBEi3YDrjXYtYlAlZutQe1JpdKykSjLwwYq7k3V8UHqR3YKxyOV8HTYOYoOaZ9TMTQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Aphq0kfk6J/hNQennJ+bntvDzqRPT7RVpnow1s4U4dLBsR6PP7X4zEBg96uAv2OW0RjDHFK9NFqpJPbZtQTmFw==}+ peerDependencies:+ '@tiptap/extension-list': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-a3lm1WvYewAP2IESq+qnbOtLSJ9yULY2Bj/6DvBq9fzWpb2gSlUdElYh6JLunxB1HEPECTuuRsNPdTrMsSpV4g==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-RCPLeZ12+20YeqjwENK8rviaCnN0mL+Rm7dS+NT8Dz1WHjv9ZWwWS7WzAHfY2w3CNlMfOKwctnaobKmJ/2++CQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-1LfkHNkrGR509cPRgcMr95+nWcAHE0JDm9LkuzdexunhCfJ2tl/h1rA14x3sic8GxQFqEnMefvBUpUbQwPydYw==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-loFq2aZ+nDyrgxPjOCY/73YelRHqQWMw4oIiB4D0sYiDka+bBN/cV7LGWqfP5CldF8oSBJ8u+5ViDWCilTfDeg==}+ peerDependencies:+ '@tiptap/extension-table': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-oCn71L7FYxnpzHO7hn8xbaF6jxRhPinNsqgde+5OY23BEvVBpX8QFbOJkphQDyMwvSHAw/3S+ZF+vxHZU51aRg==}+ peerDependencies:+ '@tiptap/extension-table': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-KfB9axBtfE59/xC++4SS2iYkfEv93k5EWDbjIjC6T62FpfTYlBDOQutj79Nnmn8XkS5srT4nmxrohqRc1wUSQg==}+ peerDependencies:+ '@tiptap/extension-table': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ae81cJgJ3cAA1Ry0JtLKtoPpA23YvMy0WnAw1gqnOX9yTYRYgT5W6MzP0O2rIBOI6b5Xkt6xtZzChjwMzioGbQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-5E94ggkFAZ7OSFSwnofAsmxqmSStRoeCB8AnRuWrR+nnXi43Rq7yptdejQaLi13Z9fSVdnF6h+pB3ua2Exg6WQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Y3EJxfE1g4XSGbUZN+74o38mp3O+BQXtlqxAQvedzXiGGrdK2kWhp2b4nj3IkxHdRdoSijf+oZzgyBrRDdgC/w==}+ peerDependencies:+ '@tiptap/core': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-/xXJdV+EVvSQv2slvAUChb5iGVv5K0EqBqxPGAAuBHdIc4Y7Id1aaKKSiyDmqon+kjSnnQIIda9oUt+o/Z66uA==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-cC3mKV+bBoHJ0Bsd4zstVYFBm8KGsbeAhIayVzY59G4QpvIQC78BgajqXukfUKDLcehiycRYYW/HcOAwvAysWg==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-8RIUhlEoCFGsbdNb+EUdQctG1Wnd7rl4wlMLS6giO7UcZT5dVfg625eMZVrl0/kA7JBJdKLIuqNmzzQ0MxsJEw==}++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-aPInZbpSWYzJvCFXaY6EhxD+H5ITURElUmUXBoRvlAB6QrR6NIWBt68hNe8i+aDGmuvLS18g60HWK5S6K2RjWQ==}+ peerDependencies:+ '@tiptap/core': ^3.11.1+ '@tiptap/pm': ^3.11.1+ '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0+ '@types/react-dom': ^17.0.0 || ^18.0.0 || ^19.0.0+ react: ^17.0.0 || ^18.0.0 || ^19.0.0+ react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-weRrhp0p5J6cMNcybYobhbOVrgym7KYIwBblJ/1M1snykg+avZawVk2M5Y7j9gM1p2zo112MCw8z8nOa9Yrwow==}+'@tootallnate/[email protected]':resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==}engines: {node: '>= 6'}@@ -1629,6 +2329,9 @@ packages:'@tsconfig/[email protected]':resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==}+'@types/[email protected]':resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}@@ -1728,12 +2431,21 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}+ '@types/[email protected]':+ resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==}+'@types/[email protected]':resolution: {integrity: sha512-lfx+dftrEZcdBPczf9d0Qv0x+j/rfNCMuC6OcfXmO8gkfeNAY88PgKUbvG56whcN23gc27yenwF6oJZXGFpYxg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==}+'@types/[email protected]':resolution: {integrity: sha512-a79Yc3TOk6dGdituy8hmTTJXjOkZ7zsFYV10L337ttq/rec8lRMDBpV7fL3uLx6TgbFCa5DU/h8FmIBQPSbU0w==}+ '@types/[email protected]':+ resolution: {integrity: sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==}+'@types/[email protected]':resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==}@@ -1808,6 +2520,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}+'@types/[email protected]':resolution: {integrity: sha512-D1XC7WK8K+zZEveUPY+cf4+kgauk8N4eHr/XIHXGlGYkHLud6hK9lYfZk1ry1TNh798cZUCgb6MqGEG8DkJt6Q==}@@ -1951,6 +2666,37 @@ packages:'@ungap/[email protected]':resolution: {integrity: sha512-fEzPV3hSkSMltkw152tJKNARhOupqbH96MZWyRjNaYZOMIzbrTeQDG+MTc6Mr2pgzFQzFxAfmhGDNP5QK++2ZA==}+ '@vitejs/[email protected]':+ resolution: {integrity: sha512-YTJCGFdNMHCMfjODYtxRNVAYmTWQ1Lb8PulP/2/f/oEEtglw8oKxKIZmmRkyXrVrHfsKOaVkAc3NT9/dMutO5w==}+ peerDependencies:+ vite: ^4 || ^5 || ^6 || ^7++ '@volar/[email protected]':+ resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==}++ '@volar/[email protected]':+ resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==}++ '@volar/[email protected]':+ resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-4We0OAcMZsKgYoGlMjzYvaoErltdFI2/25wqanuTu+S4gismOTRTBPi4IASOjxWdzIwrYSjnqONfKvuqkXzE2Q==}++ '@vue/[email protected]':+ resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}+ peerDependencies:+ typescript: '*'+ peerDependenciesMeta:+ typescript:+ optional: true++ '@vue/[email protected]':+ resolution: {integrity: sha512-AbOPdQQnAnzs58H2FrrDxYj/TJfmeS2jdfEEhgiKINy+bnOANmVizIEgq1r+C5zsbs6l1CCQxtcj71rwNQ4jWg==}+'@webassemblyjs/[email protected]':resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==}@@ -2554,6 +3300,10 @@ packages:resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}engines: {node: '>= 12'}+ resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}+ engines: {node: ^12.20.0 || >=14}+resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==}engines: {node: '>=4.0.0'}@@ -2572,6 +3322,9 @@ packages:resolution: {integrity: sha512-bQJ0YRck5ak3LgtnpKkiabX5pNF7tMUh1BSy2ZBOTh0Dim0BUu6aPPwByIns6/A5Prh8PufSPerMDUklpzes2Q==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==}+resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}@@ -2836,6 +3589,9 @@ packages:resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==}+ resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==}+resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}peerDependencies:@@ -3086,6 +3842,10 @@ packages:resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}+ engines: {node: '>=0.12'}+resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}engines: {node: '>=18'}@@ -3136,6 +3896,11 @@ packages:resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==}+ engines: {node: '>=12'}+ hasBin: true+resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}engines: {node: '>=6'}@@ -3331,6 +4096,11 @@ packages:peerDependencies:eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0+ resolution: {integrity: sha512-nLHIW7TEq3aLrEYWpVaJ1dRgFR+wLDPN8e8FpYAql/bMV2oBEfC37K0gLEGgv9fy66juNShSMV8OkTqzltcG/w==}+ peerDependencies:+ eslint: '>=8.40'+resolution: {integrity: sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==}engines: {node: '>=4'}@@ -3405,6 +4175,9 @@ packages:resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==}+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}+resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}@@ -3580,6 +4353,10 @@ packages:resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==}engines: {node: '>=14.14'}+ resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==}+ engines: {node: '>=6 <7 || >=8'}+resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==}engines: {node: '>=10'}@@ -3889,6 +4666,10 @@ packages:resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}engines: {node: '>=6'}+ resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==}engines: {node: '>=8'}@@ -4349,6 +5130,9 @@ packages:resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==}hasBin: true+ resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}+resolution: {integrity: sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q==}@@ -4404,6 +5188,9 @@ packages:engines: {node: '>=6'}hasBin: true+ resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}+resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}@@ -4440,6 +5227,9 @@ packages:resolution: {integrity: sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==}engines: {node: '>= 8'}+ resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}+resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}@@ -4473,6 +5263,12 @@ packages:resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}+ resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}++ resolution: {integrity: sha512-NT1CJtq3hHIreOianA8aSXn6Cw0JzYOuDQbOrSPe7gqFnCpKP++MQe3ODgO3oh2GJFORkAAdqredOa60z63GbA==}+resolution: {integrity: sha512-WyCzSbfYGhK7cU+UuDDkzUiytbfbi0ZdPy2orwtM75P3WTtQBzmG40cCxIa8Ii2+XjfxzLH6Be46tUfWS85Xfg==}engines: {node: '>=18.12.0'}@@ -4515,6 +5311,14 @@ packages:resolution: {integrity: sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw==}+ resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==}+ deprecated: This package is deprecated. Use the optional chaining (?.) operator instead.++ resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}+ deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.+resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==}@@ -4579,6 +5383,9 @@ packages:resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}+resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}engines: {node: '>=8'}@@ -4601,6 +5408,15 @@ packages:resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==}+ hasBin: true++ resolution: {integrity: sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==}+ engines: {node: '>= 18'}+ hasBin: true+resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==}engines: {node: '>= 12'}@@ -4612,6 +5428,9 @@ packages:resolution: {integrity: sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA==}+ resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}+resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==}engines: {node: '>= 0.6'}@@ -4684,6 +5503,9 @@ packages:resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==}+ resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==}+resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}@@ -4720,6 +5542,9 @@ packages:resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}+ resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==}+resolution: {integrity: sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==}hasBin: true@@ -4890,6 +5715,9 @@ packages:resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}engines: {node: '>= 0.8.0'}+ resolution: {integrity: sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==}+resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}engines: {node: '>=6'}@@ -4942,6 +5770,9 @@ packages:resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}+resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}engines: {node: '>=4'}@@ -4989,6 +5820,10 @@ packages:resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}engines: {node: '>=8.6'}+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}engines: {node: '>=0.10'}@@ -5502,6 +6337,64 @@ packages:resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}+ resolution: {integrity: sha512-j0kORIBm8ayJNl3zQvD1TTPHJX3g042et6y/KQhZhnPrruO8exkTgG8X+NRpj7kIyMMEx74Xb3DyMIBtO0IKkQ==}++ resolution: {integrity: sha512-4SnynYR9TTYaQVXd/ieUvsVV4PDMBzrq2xPUWutHivDuOshZXqQ5rGbZM84HEaXKbLdItse7weMGOUdDVcLKEQ==}++ resolution: {integrity: sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==}++ resolution: {integrity: sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==}++ resolution: {integrity: sha512-z00qvurSdCEWUIulij/isHaqu4uLS8r/Fi61IbjdIPJEonQgggbJsLnstW7Lgdk4zQ68/yr6B6bf7sJXowIgdQ==}++ resolution: {integrity: sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==}++ resolution: {integrity: sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==}++ resolution: {integrity: sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==}++ resolution: {integrity: sha512-FPD9rHPdA9fqzNmIIDhhnYQ6WgNoSWX9StUZ8LEKapaXU9i6XgykaHKhp6XMyXlOWetmaFgGDS/nu/w9/vUc5g==}++ resolution: {integrity: sha512-qwXzynnpBIeg1D7BAtjOusR+81xCp53j7iWu/IargiRZqRjGIlQuu1f3jFi+ehrHhWMLoyOQTSRx/IWZJqOYtQ==}++ resolution: {integrity: sha512-PIM7E43PBxKce8OQeezAs9j4TP+5yDpZVbuurd1h5phUxEKIu+G2a+EUZzIC5nS1mJktDJWzbqS23n1tsAf5QA==}++ resolution: {integrity: sha512-ELxP4TlX3yr2v5rM7Sb70SqStq5NvI15c0j9j/gjsrO5vaw+fnnpovCLEGIcpeGfifkuqJwl4fon6b+KdrODYQ==}++ resolution: {integrity: sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==}++ resolution: {integrity: sha512-6jiYHH2CIGbCfnxdHbXZ12gySFY/fz/ulZE333G6bPqIZ4F+TXo9ifiR86nAHpWnfoNjOb3o5ESi7J8Uz1jXHw==}++ resolution: {integrity: sha512-DAgDoUYHCcc6tOGpLVPSU1k84kCUWTWnfWX3UDy2Delv4ryH0KqTD6RBI6k4yi9j9I8gl3j8MkPpRD/vWPZbug==}++ resolution: {integrity: sha512-xiun5/3q0w5eRnGYfNlW1uU9W6x5MoFKWwq/0TIRgt09lv7Hcser2QYV8t4muXbEr+Fwo0geYn79Xs4GKywrRQ==}+ peerDependencies:+ prosemirror-model: ^1.22.1+ prosemirror-state: ^1.4.2+ prosemirror-view: ^1.33.8++ resolution: {integrity: sha512-RPDQCxIDhIBb1o36xxwsaeAvivO8VLJcgBtzmOwQ64bMtsVFh5SSuJ6dWSxO1UsHTiTXPCgQm3PDJt7p6IOLbw==}++ resolution: {integrity: sha512-SqMiYMUQNNBP9kfPhLO8WXEk/fon47vc52FQsUiJzTBuyjKgEcoAwMyF04eQ4WZ2ArMn7+ReypYL60aKngbACQ==}+resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}engines: {node: '>= 0.10'}@@ -5512,6 +6405,10 @@ packages:resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==}+ resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}engines: {node: '>=6'}@@ -5813,6 +6710,9 @@ packages:resolution: {integrity: sha512-/NtpHNDN7jWhAaQ9BvBUYZ6YTXsRBgfqWFWP7BZBaoMJO/I3G5OFzvTuWNlZC3aPjins1F+TNrLKsGbH4rfsRQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==}+resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}hasBin: true@@ -5857,6 +6757,14 @@ packages:engines: {node: '>=10.0.0'}hasBin: true+ resolution: {integrity: sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==}+ engines: {node: '>=14.18.0', npm: '>=8.0.0'}+ hasBin: true++ resolution: {integrity: sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==}+resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}@@ -6084,6 +6992,7 @@ packages:resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==}engines: {node: '>= 8'}+ deprecated: The work that was done in this beta branch won't be included in future versionsresolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==}@@ -6395,6 +7304,10 @@ packages:resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}engines: {node: '>=0.6'}+ resolution: {integrity: sha512-KAB2lrSS48y91MzFPFuDg4hLbvDiyTjOVgaK7Erw+5AmZXNq4sFRVn8r6yxSLuNs15PaokrDRpS61ERY9uZOug==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==}engines: {node: '>=6'}@@ -6522,6 +7435,19 @@ packages:engines: {node: '>=4.2.0'}hasBin: true+ resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==}+ engines: {node: '>=14.17'}+ hasBin: true++ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}+ engines: {node: '>=14.17'}+ hasBin: true++ resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==}+resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}@@ -6558,6 +7484,10 @@ packages:resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==}engines: {node: '>=8'}+ resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}+ engines: {node: '>= 4.0.0'}+resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==}engines: {node: '>= 4.0.0'}@@ -6593,10 +7523,10 @@ packages:resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==}- resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==}+ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -6625,14 +7555,65 @@ packages:resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}+ resolution: {integrity: sha512-4yoz1kEWqUjzi5zsPbAS/903QXSYp0UOtHsPpp7p9rHAw/W+dkInskAE386Fat3oKRROwO98d9ZB0G4cObgUyw==}+ engines: {node: '>= 0.10'}+resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-rVp2KM9Ue22NGWB8dNtWEr+KekN3rIgz1tWD050QnRGlriUCmaDwa7qA5zDEjbXg5lAXhYMSBJtx3q3hQIJZSg==}+ engines: {node: ^14.18.0 || >=16.0.0}+ peerDependencies:+ typescript: '*'+ vite: '*'+ peerDependenciesMeta:+ vite:+ optional: true++ resolution: {integrity: sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==}+ engines: {node: ^14.18.0 || >=16.0.0}+ hasBin: true+ peerDependencies:+ '@types/node': '>= 14'+ less: '*'+ lightningcss: ^1.21.0+ sass: '*'+ stylus: '*'+ sugarss: '*'+ terser: ^5.4.0+ peerDependenciesMeta:+ '@types/node':+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==}++ resolution: {integrity: sha512-WesKCAZCRAbmmhuGl3+VrdWItEvfoFIPXOvUJkjULi+x+6G/Dy69yO3TBRJDr9eUlmsNAwVmxsNZxvHKzbkKdg==}+ hasBin: true+ peerDependencies:+ typescript: '*'+resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==}deprecated: Use your platform's native performance.now() and performance.timeOrigin.@@ -6942,6 +7923,11 @@ packages:resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}engines: {node: '>=10'}+ resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==}+ engines: {node: '>=8.0.0'}+ hasBin: true+resolution: {integrity: sha512-8qNdnJVJlHlrKXi50LDqqUNmUbuBjoKLrYQBnoChIbVph7vni+sY+YpvdjXG9YLd/Bxr6scMcR+rm5H3aSqPaw==}engines: {node: '>=12.20.0'}@@ -7119,8 +8105,12 @@ snapshots:'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]': {}+ '@babel/[email protected]': {}+'@babel/[email protected]': {}'@babel/[email protected]':@@ -7140,6 +8130,10 @@ snapshots:dependencies:'@babel/types': 7.26.3+ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.28.5+'@babel/[email protected](@babel/[email protected])':dependencies:'@babel/core': 7.26.0@@ -7855,6 +8849,11 @@ snapshots:'@babel/helper-string-parser': 7.25.9'@babel/helper-validator-identifier': 7.25.9+ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.28.5+'@bcoe/[email protected]': {}'@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':@@ -8111,11 +9110,11 @@ snapshots:style-mod: 4.1.2w3c-keyname: 2.2.8- '@commitlint/[email protected]':+ '@commitlint/[email protected](@swc/[email protected])':dependencies:'@commitlint/format': 17.8.1'@commitlint/lint': 17.8.1- '@commitlint/load': 17.8.1+ '@commitlint/load': 17.8.1(@swc/[email protected])'@commitlint/read': 17.8.1'@commitlint/types': 17.8.1execa: 5.1.1@@ -8164,7 +9163,7 @@ snapshots:'@commitlint/rules': 17.8.1'@commitlint/types': 17.8.1- '@commitlint/[email protected]':+ '@commitlint/[email protected](@swc/[email protected])':dependencies:'@commitlint/config-validator': 17.8.1'@commitlint/execute-rule': 17.8.1@@ -8173,12 +9172,12 @@ snapshots:'@types/node': 20.5.1chalk: 4.1.2cosmiconfig: 8.3.6([email protected])- cosmiconfig-typescript-loader: 4.4.0(@types/[email protected])([email protected]([email protected]))([email protected](@types/[email protected])([email protected]))([email protected])+ cosmiconfig-typescript-loader: 4.4.0(@types/[email protected])([email protected]([email protected]))([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])lodash.isplainobject: 4.0.6lodash.merge: 4.6.2lodash.uniq: 4.5.0resolve-from: 5.0.0- ts-node: 10.9.2(@types/[email protected])([email protected])typescript: 4.9.5transitivePeerDependencies:- '@swc/core'@@ -8311,6 +9310,72 @@ snapshots:dependencies:postcss-selector-parser: 6.1.2+ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true+'@eslint-community/[email protected]([email protected])':dependencies:eslint: 8.57.1@@ -8334,6 +9399,20 @@ snapshots:'@eslint/[email protected]': {}+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.10+ optional: true++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.7.3+ '@floating-ui/utils': 0.2.10+ optional: true++ '@floating-ui/[email protected]':+ optional: true+'@fullhuman/[email protected]([email protected])':dependencies:postcss: 8.4.49@@ -8388,7 +9467,7 @@ snapshots:jest-util: 28.1.3slash: 3.0.0+ '@jest/[email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected]))':dependencies:'@jest/console': 27.5.1'@jest/reporters': 27.5.1@@ -8402,7 +9481,7 @@ snapshots:exit: 0.1.2graceful-fs: 4.2.11jest-changed-files: 27.5.1+ jest-config: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))jest-haste-map: 27.5.1jest-message-util: 27.5.1jest-regex-util: 27.5.1@@ -8570,6 +9649,8 @@ snapshots:'@jridgewell/[email protected]': {}+ '@jridgewell/[email protected]': {}+'@jridgewell/[email protected]':dependencies:'@jridgewell/resolve-uri': 3.1.2@@ -8677,6 +9758,50 @@ snapshots:'@marijn/[email protected]': {}+ '@microsoft/[email protected](@types/[email protected])':+ dependencies:+ '@microsoft/tsdoc': 0.14.2+ '@microsoft/tsdoc-config': 0.16.2+ '@rushstack/node-core-library': 4.0.2(@types/[email protected])+ transitivePeerDependencies:+ - '@types/node'++ '@microsoft/[email protected](@types/[email protected])':+ dependencies:+ '@microsoft/api-extractor-model': 7.28.13(@types/[email protected])+ '@microsoft/tsdoc': 0.14.2+ '@microsoft/tsdoc-config': 0.16.2+ '@rushstack/node-core-library': 4.0.2(@types/[email protected])+ '@rushstack/rig-package': 0.5.2+ '@rushstack/terminal': 0.10.0(@types/[email protected])+ '@rushstack/ts-command-line': 4.19.1(@types/[email protected])+ lodash: 4.17.21+ minimatch: 3.0.8+ resolve: 1.22.8+ semver: 7.5.4+ source-map: 0.6.1+ typescript: 5.4.2+ transitivePeerDependencies:+ - '@types/node'++ '@microsoft/[email protected]':+ dependencies:+ '@microsoft/tsdoc': 0.14.2+ ajv: 6.12.6+ jju: 1.4.0+ resolve: 1.19.0++ '@microsoft/[email protected]': {}++ '@modyfi/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected]))':+ dependencies:+ '@rollup/pluginutils': 5.1.0([email protected])+ js-yaml: 4.1.0+ tosource: 2.0.0-alpha.3+ transitivePeerDependencies:+ - rollup+'@nicolo-ribaudo/[email protected]':dependencies:eslint-scope: 5.1.1@@ -8698,7 +9823,7 @@ snapshots:'@pkgr/[email protected]': {}- '@pmmmwh/[email protected]([email protected])([email protected])([email protected]([email protected]))([email protected])':+ '@pmmmwh/[email protected]([email protected])([email protected])([email protected]([email protected](@swc/[email protected])))([email protected](@swc/[email protected]))':dependencies:ansi-html: 0.0.9core-js-pure: 3.39.0@@ -8708,10 +9833,10 @@ snapshots:react-refresh: 0.11.0schema-utils: 4.2.0source-map: 0.7.4- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])optionalDependencies:type-fest: 1.4.0- webpack-dev-server: 4.15.2([email protected])+ webpack-dev-server: 4.15.2([email protected](@swc/[email protected]))'@popperjs/[email protected]': {}@@ -8720,6 +9845,8 @@ snapshots:'@swc/helpers': 0.5.15react: 18.3.1+ '@remirror/[email protected]': {}+'@restart/[email protected]([email protected])':dependencies:dequal: 2.0.3@@ -8744,6 +9871,8 @@ snapshots:uncontrollable: 8.0.4([email protected])warning: 4.0.3+ '@rolldown/[email protected]': {}+dependencies:'@babel/core': 7.26.0@@ -8778,10 +9907,58 @@ snapshots:picomatch: 2.3.1rollup: 2.79.2+ '@rollup/[email protected]([email protected])':+ dependencies:+ '@types/estree': 1.0.6+ estree-walker: 2.0.2+ picomatch: 2.3.1+ optionalDependencies:+ rollup: 3.29.5++ '@rollup/[email protected]([email protected])':+ dependencies:+ '@types/estree': 1.0.6+ estree-walker: 2.0.2+ picomatch: 4.0.3+ optionalDependencies:+ rollup: 3.29.5+'@rtsao/[email protected]': {}'@rushstack/[email protected]': {}+ '@rushstack/[email protected](@types/[email protected])':+ dependencies:+ fs-extra: 7.0.1+ import-lazy: 4.0.0+ jju: 1.4.0+ resolve: 1.22.8+ semver: 7.5.4+ z-schema: 5.0.5+ optionalDependencies:+ '@types/node': 20.5.1++ '@rushstack/[email protected]':+ dependencies:+ resolve: 1.22.8+ strip-json-comments: 3.1.1++ '@rushstack/[email protected](@types/[email protected])':+ dependencies:+ '@rushstack/node-core-library': 4.0.2(@types/[email protected])+ supports-color: 8.1.1+ optionalDependencies:+ '@types/node': 20.5.1++ '@rushstack/[email protected](@types/[email protected])':+ dependencies:+ '@rushstack/terminal': 0.10.0(@types/[email protected])+ '@types/argparse': 1.0.38+ argparse: 1.0.10+ string-argv: 0.3.2+ transitivePeerDependencies:+ - '@types/node'+'@sinclair/[email protected]': {}'@sinonjs/[email protected]':@@ -8847,66 +10024,326 @@ snapshots:transitivePeerDependencies:- supports-color- '@svgr/[email protected]':+ '@svgr/[email protected]':+ dependencies:+ cosmiconfig: 7.1.0+ deepmerge: 4.3.1+ svgo: 1.3.2++ '@svgr/[email protected]':+ dependencies:+ '@babel/core': 7.26.0+ '@babel/plugin-transform-react-constant-elements': 7.25.9(@babel/[email protected])+ '@babel/preset-env': 7.26.0(@babel/[email protected])+ '@babel/preset-react': 7.26.3(@babel/[email protected])+ '@svgr/core': 5.5.0+ '@svgr/plugin-jsx': 5.5.0+ '@svgr/plugin-svgo': 5.5.0+ loader-utils: 2.0.4+ transitivePeerDependencies:+ - supports-color++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ optional: true++ '@swc/[email protected]':+ dependencies:+ '@swc/counter': 0.1.3+ '@swc/types': 0.1.25+ optionalDependencies:+ '@swc/core-darwin-arm64': 1.15.3+ '@swc/core-darwin-x64': 1.15.3+ '@swc/core-linux-arm-gnueabihf': 1.15.3+ '@swc/core-linux-arm64-gnu': 1.15.3+ '@swc/core-linux-arm64-musl': 1.15.3+ '@swc/core-linux-x64-gnu': 1.15.3+ '@swc/core-linux-x64-musl': 1.15.3+ '@swc/core-win32-arm64-msvc': 1.15.3+ '@swc/core-win32-ia32-msvc': 1.15.3+ '@swc/core-win32-x64-msvc': 1.15.3++ '@swc/[email protected]': {}++ '@swc/[email protected]':+ dependencies:+ tslib: 2.8.1++ '@swc/[email protected]':+ dependencies:+ '@swc/counter': 0.1.3++ '@testing-library/[email protected]':+ dependencies:+ '@babel/code-frame': 7.26.2+ '@babel/runtime': 7.26.0+ '@types/aria-query': 5.0.4+ aria-query: 5.1.3+ chalk: 4.1.2+ dom-accessibility-api: 0.5.16+ lz-string: 1.5.0+ pretty-format: 27.5.1++ '@testing-library/[email protected]':+ dependencies:+ '@babel/runtime': 7.26.0+ chalk: 2.4.2+ css: 2.2.4+ css.escape: 1.5.1+ jest-diff: 24.9.0+ jest-matcher-utils: 24.9.0+ lodash: 4.17.21+ pretty-format: 24.9.0+ redent: 3.0.0++ '@testing-library/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.26.0+ '@testing-library/dom': 8.20.1+ '@types/react-dom': 18.3.5(@types/[email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ transitivePeerDependencies:+ - '@types/react'++ '@testing-library/[email protected](@testing-library/[email protected])':+ dependencies:+ '@babel/runtime': 7.26.0+ '@testing-library/dom': 8.20.1++ '@tiptap/[email protected](@tiptap/[email protected])':+ dependencies:+ '@tiptap/pm': 3.11.1++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@floating-ui/dom': 1.7.4+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1+ optional: true++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extensions': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@floating-ui/dom': 1.7.4+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1+ optional: true++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extensions': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1+ linkifyjs: 4.3.2++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extensions': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-table': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ dependencies:+ '@tiptap/extension-table': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- cosmiconfig: 7.1.0- deepmerge: 4.3.1- svgo: 1.3.2+ '@tiptap/extension-table': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@svgr/[email protected]':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@babel/core': 7.26.0- '@babel/plugin-transform-react-constant-elements': 7.25.9(@babel/[email protected])- '@babel/preset-env': 7.26.0(@babel/[email protected])- '@babel/preset-react': 7.26.3(@babel/[email protected])- '@svgr/core': 5.5.0- '@svgr/plugin-jsx': 5.5.0- '@svgr/plugin-svgo': 5.5.0- loader-utils: 2.0.4- transitivePeerDependencies:- - supports-color+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1- '@swc/[email protected]':dependencies:- tslib: 2.8.1+ '@tiptap/core': 3.11.1(@tiptap/[email protected])- '@testing-library/[email protected]':dependencies:- '@babel/code-frame': 7.26.2- '@babel/runtime': 7.26.0- '@types/aria-query': 5.0.4- aria-query: 5.1.3- chalk: 4.1.2- dom-accessibility-api: 0.5.16- lz-string: 1.5.0- pretty-format: 27.5.1+ '@tiptap/core': 3.11.1(@tiptap/[email protected])- '@testing-library/[email protected]':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@babel/runtime': 7.26.0- chalk: 2.4.2- css: 2.2.4- css.escape: 1.5.1- jest-diff: 24.9.0- jest-matcher-utils: 24.9.0- lodash: 4.17.21- pretty-format: 24.9.0- redent: 3.0.0+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1- '@testing-library/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@babel/runtime': 7.26.0- '@testing-library/dom': 8.20.1+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1+ marked: 15.0.12++ '@tiptap/[email protected]':+ dependencies:+ prosemirror-changeset: 2.3.1+ prosemirror-collab: 1.3.1+ prosemirror-commands: 1.7.1+ prosemirror-dropcursor: 1.8.2+ prosemirror-gapcursor: 1.4.0+ prosemirror-history: 1.5.0+ prosemirror-inputrules: 1.5.1+ prosemirror-keymap: 1.2.3+ prosemirror-markdown: 1.13.2+ prosemirror-menu: 1.2.5+ prosemirror-model: 1.25.4+ prosemirror-schema-basic: 1.2.4+ prosemirror-schema-list: 1.5.1+ prosemirror-state: 1.4.4+ prosemirror-tables: 1.8.1+ prosemirror-transform: 1.10.5+ prosemirror-view: 1.41.3++ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1+ '@types/react': 18.3.16'@types/react-dom': 18.3.5(@types/[email protected])+ '@types/use-sync-external-store': 0.0.6+ fast-deep-equal: 3.1.3react: 18.3.1react-dom: 18.3.1([email protected])+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ '@tiptap/extension-bubble-menu': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-floating-menu': 3.11.1(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])transitivePeerDependencies:- - '@types/react'-- '@testing-library/[email protected](@testing-library/[email protected])':- dependencies:- '@babel/runtime': 7.26.0- '@testing-library/dom': 8.20.1+ - '@floating-ui/dom'++ '@tiptap/[email protected]':+ dependencies:+ '@tiptap/core': 3.11.1(@tiptap/[email protected])+ '@tiptap/extension-blockquote': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bold': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bullet-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-code': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-code-block': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-document': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-dropcursor': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-gapcursor': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-hard-break': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-heading': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-horizontal-rule': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-italic': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-link': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list-item': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-list-keymap': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-ordered-list': 3.11.1(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-paragraph': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-strike': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-text': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-underline': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extensions': 3.11.1(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 3.11.1'@tootallnate/[email protected]': {}@@ -8920,6 +10357,8 @@ snapshots:'@tsconfig/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':@@ -9053,10 +10492,19 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ '@types/linkify-it': 5.0.0+ '@types/mdurl': 2.0.0+'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}@@ -9127,6 +10575,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]':@@ -9186,6 +10636,26 @@ snapshots:transitivePeerDependencies:- supports-color+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ dependencies:+ '@eslint-community/regexpp': 4.12.1+ '@typescript-eslint/parser': 6.21.0([email protected])([email protected])+ '@typescript-eslint/scope-manager': 6.21.0+ '@typescript-eslint/type-utils': 6.21.0([email protected])([email protected])+ '@typescript-eslint/utils': 6.21.0([email protected])([email protected])+ '@typescript-eslint/visitor-keys': 6.21.0+ debug: 4.4.0+ eslint: 8.57.1+ graphemer: 1.4.0+ ignore: 5.3.2+ natural-compare: 1.4.0+ semver: 7.6.3+ ts-api-utils: 1.4.3([email protected])+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color+dependencies:'@typescript-eslint/utils': 5.62.0([email protected])([email protected])@@ -9219,6 +10689,19 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@typescript-eslint/scope-manager': 6.21.0+ '@typescript-eslint/types': 6.21.0+ '@typescript-eslint/typescript-estree': 6.21.0([email protected])+ '@typescript-eslint/visitor-keys': 6.21.0+ debug: 4.4.0+ eslint: 8.57.1+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color+'@typescript-eslint/[email protected]':dependencies:'@typescript-eslint/types': 5.62.0@@ -9253,6 +10736,18 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@typescript-eslint/typescript-estree': 6.21.0([email protected])+ '@typescript-eslint/utils': 6.21.0([email protected])([email protected])+ debug: 4.4.0+ eslint: 8.57.1+ ts-api-utils: 1.4.3([email protected])+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color+'@typescript-eslint/[email protected]': {}'@typescript-eslint/[email protected]': {}@@ -9286,6 +10781,21 @@ snapshots:transitivePeerDependencies:- supports-color+ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ '@typescript-eslint/types': 6.21.0+ '@typescript-eslint/visitor-keys': 6.21.0+ debug: 4.4.0+ globby: 11.1.0+ is-glob: 4.0.3+ minimatch: 9.0.3+ semver: 7.6.3+ ts-api-utils: 1.4.3([email protected])+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color+dependencies:'@eslint-community/eslint-utils': 4.4.1([email protected])@@ -9315,6 +10825,20 @@ snapshots:- supports-color- typescript+ dependencies:+ '@eslint-community/eslint-utils': 4.4.1([email protected])+ '@types/json-schema': 7.0.15+ '@types/semver': 7.5.8+ '@typescript-eslint/scope-manager': 6.21.0+ '@typescript-eslint/types': 6.21.0+ '@typescript-eslint/typescript-estree': 6.21.0([email protected])+ eslint: 8.57.1+ semver: 7.6.3+ transitivePeerDependencies:+ - supports-color+ - typescript+'@typescript-eslint/[email protected]':dependencies:'@typescript-eslint/types': 5.62.0@@ -9327,6 +10851,56 @@ snapshots:'@ungap/[email protected]': {}+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':+ dependencies:+ '@rolldown/pluginutils': 1.0.0-beta.27+ '@swc/core': 1.15.3+ transitivePeerDependencies:+ - '@swc/helpers'++ '@volar/[email protected]':+ dependencies:+ '@volar/source-map': 1.11.1++ '@volar/[email protected]':+ dependencies:+ muggle-string: 0.3.1++ '@volar/[email protected]':+ dependencies:+ '@volar/language-core': 1.11.1+ path-browserify: 1.0.1++ '@vue/[email protected]':+ dependencies:+ '@babel/parser': 7.28.5+ '@vue/shared': 3.5.25+ entities: 4.5.0+ estree-walker: 2.0.2+ source-map-js: 1.2.1++ '@vue/[email protected]':+ dependencies:+ '@vue/compiler-core': 3.5.25+ '@vue/shared': 3.5.25++ '@vue/[email protected]([email protected])':+ dependencies:+ '@volar/language-core': 1.11.1+ '@volar/source-map': 1.11.1+ '@vue/compiler-dom': 3.5.25+ '@vue/shared': 3.5.25+ computeds: 0.0.1+ minimatch: 9.0.5+ muggle-string: 0.3.1+ path-browserify: 1.0.1+ vue-template-compiler: 2.7.16+ optionalDependencies:+ typescript: 5.9.3++ '@vue/[email protected]': {}+'@webassemblyjs/[email protected]':dependencies:'@webassemblyjs/helper-numbers': 1.13.2@@ -9666,14 +11240,14 @@ snapshots:transitivePeerDependencies:- supports-colordependencies:'@babel/core': 7.26.0find-cache-dir: 3.3.2loader-utils: 2.0.4make-dir: 3.1.0schema-utils: 2.7.1- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -10042,6 +11616,9 @@ snapshots:+ optional: true+@@ -10067,6 +11644,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -10118,11 +11697,11 @@ snapshots:- [email protected](@types/[email protected])([email protected]([email protected]))([email protected](@types/[email protected])([email protected]))([email protected]):+ [email protected](@types/[email protected])([email protected]([email protected]))([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected]):dependencies:'@types/node': 20.5.1cosmiconfig: 8.3.6([email protected])- ts-node: 10.9.2(@types/[email protected])([email protected])typescript: 4.9.5@@ -10176,7 +11755,7 @@ snapshots:postcss: 8.4.49postcss-selector-parser: 6.1.2dependencies:icss-utils: 5.1.0([email protected])postcss: 8.4.49@@ -10187,9 +11766,9 @@ snapshots:postcss-value-parser: 4.2.0semver: 7.6.3optionalDependencies:- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:cssnano: 5.1.15([email protected])jest-worker: 27.5.1@@ -10197,7 +11776,7 @@ snapshots:schema-utils: 4.2.0serialize-javascript: 6.0.2source-map: 0.6.1- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -10339,6 +11918,8 @@ snapshots:+ [email protected]: {}+dependencies:ms: 2.0.0@@ -10557,6 +12138,8 @@ snapshots:+ [email protected]: {}+@@ -10674,6 +12257,31 @@ snapshots:is-date-object: 1.0.5is-symbol: 1.1.0+ optionalDependencies:+ '@esbuild/android-arm': 0.18.20+ '@esbuild/android-arm64': 0.18.20+ '@esbuild/android-x64': 0.18.20+ '@esbuild/darwin-arm64': 0.18.20+ '@esbuild/darwin-x64': 0.18.20+ '@esbuild/freebsd-arm64': 0.18.20+ '@esbuild/freebsd-x64': 0.18.20+ '@esbuild/linux-arm': 0.18.20+ '@esbuild/linux-arm64': 0.18.20+ '@esbuild/linux-ia32': 0.18.20+ '@esbuild/linux-loong64': 0.18.20+ '@esbuild/linux-mips64el': 0.18.20+ '@esbuild/linux-ppc64': 0.18.20+ '@esbuild/linux-riscv64': 0.18.20+ '@esbuild/linux-s390x': 0.18.20+ '@esbuild/linux-x64': 0.18.20+ '@esbuild/netbsd-x64': 0.18.20+ '@esbuild/openbsd-x64': 0.18.20+ '@esbuild/sunos-x64': 0.18.20+ '@esbuild/win32-arm64': 0.18.20+ '@esbuild/win32-ia32': 0.18.20+ '@esbuild/win32-x64': 0.18.20+@@ -10738,7 +12346,7 @@ snapshots:dependencies:eslint: 8.57.1- [email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))([email protected]):+ [email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])))([email protected]):dependencies:'@babel/core': 7.26.0'@babel/eslint-parser': 7.25.9(@babel/[email protected])([email protected])@@ -10750,7 +12358,7 @@ snapshots:eslint: 8.57.1eslint-plugin-flowtype: 8.0.3(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))([email protected])eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])- eslint-plugin-jest: 25.7.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))([email protected])+ eslint-plugin-jest: 25.7.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])))([email protected])eslint-plugin-jsx-a11y: 6.10.2([email protected])eslint-plugin-react: 7.37.2([email protected])eslint-plugin-react-hooks: 4.6.2([email protected])@@ -10886,13 +12494,13 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))([email protected]):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])))([email protected]):dependencies:'@typescript-eslint/experimental-utils': 5.62.0([email protected])([email protected])eslint: 8.57.1optionalDependencies:'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ jest: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))transitivePeerDependencies:- supports-color- typescript@@ -10949,6 +12557,10 @@ snapshots:dependencies:eslint: 8.57.1+ dependencies:+ eslint: 8.57.1+dependencies:array-includes: 3.1.8@@ -10993,7 +12605,7 @@ snapshots:dependencies:'@types/eslint': 8.56.12eslint: 8.57.1@@ -11001,7 +12613,7 @@ snapshots:micromatch: 4.0.8normalize-path: 3.0.0schema-utils: 4.2.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -11070,6 +12682,8 @@ snapshots:+ [email protected]: {}+@@ -11183,11 +12797,11 @@ snapshots:dependencies:flat-cache: 3.2.0dependencies:loader-utils: 2.0.4schema-utils: 3.3.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -11250,7 +12864,7 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0+ [email protected]([email protected])([email protected])([email protected])([email protected](@swc/[email protected])):dependencies:'@babel/code-frame': 7.26.2'@types/json-schema': 7.0.15@@ -11266,9 +12880,10 @@ snapshots:semver: 7.6.3tapable: 1.1.3typescript: 4.9.5- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])optionalDependencies:eslint: 8.57.1+ vue-template-compiler: 2.7.16dependencies:@@ -11304,6 +12919,12 @@ snapshots:jsonfile: 6.1.0universalify: 2.0.1+ dependencies:+ graceful-fs: 4.2.11+ jsonfile: 4.0.0+ universalify: 0.1.2+dependencies:at-least-node: 1.0.0@@ -11513,7 +13134,7 @@ snapshots:dependencies:void-elements: 3.1.0dependencies:'@types/html-minifier-terser': 6.1.0html-minifier-terser: 6.1.0@@ -11521,7 +13142,7 @@ snapshots:pretty-error: 4.0.0tapable: 2.2.1optionalDependencies:- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -11625,6 +13246,8 @@ snapshots:parent-module: 1.0.1resolve-from: 4.0.0+ [email protected]: {}+dependencies:pkg-dir: 4.2.0@@ -11906,16 +13529,16 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:+ '@jest/core': 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))'@jest/test-result': 27.5.1'@jest/types': 27.5.1chalk: 4.1.2exit: 0.1.2graceful-fs: 4.2.11import-local: 3.2.0+ jest-config: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))jest-util: 27.5.1jest-validate: 27.5.1prompts: 2.4.2@@ -11927,7 +13550,7 @@ snapshots:- ts-node- utf-8-validate+ [email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@babel/core': 7.26.0'@jest/test-sequencer': 27.5.1@@ -11954,7 +13577,7 @@ snapshots:slash: 3.0.0strip-json-comments: 3.1.1optionalDependencies:- ts-node: 10.9.2(@types/[email protected])([email protected])transitivePeerDependencies:- bufferutil- canvas@@ -12246,11 +13869,11 @@ snapshots:leven: 3.1.0pretty-format: 27.5.1- [email protected]([email protected]([email protected](@types/[email protected])([email protected]))):+ [email protected]([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected]))):dependencies:ansi-escapes: 4.3.2chalk: 4.1.2+ jest: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))jest-regex-util: 28.0.2jest-watcher: 28.1.3slash: 4.0.0@@ -12296,11 +13919,11 @@ snapshots:merge-stream: 2.0.0supports-color: 8.1.1+ [email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:+ '@jest/core': 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))import-local: 3.2.0+ jest-cli: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))transitivePeerDependencies:- bufferutil- canvas@@ -12310,6 +13933,8 @@ snapshots:+ [email protected]: {}+@@ -12377,6 +14002,10 @@ snapshots:+ optionalDependencies:+ graceful-fs: 4.2.11+dependencies:universalify: 2.0.1@@ -12416,6 +14045,8 @@ snapshots:+ [email protected]: {}+@@ -12445,6 +14076,12 @@ snapshots:+ dependencies:+ uc.micro: 2.1.0++ [email protected]: {}+dependencies:chalk: 5.4.1@@ -12498,6 +14135,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -12554,6 +14195,10 @@ snapshots:dependencies:sourcemap-codec: 1.4.8+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5+dependencies:semver: 6.3.1@@ -12572,12 +14217,25 @@ snapshots:+ dependencies:+ argparse: 2.0.1+ entities: 4.5.0+ linkify-it: 5.0.0+ mdurl: 2.0.0+ punycode.js: 2.3.1+ uc.micro: 2.1.0++ [email protected]: {}++ [email protected]: {}+@@ -12629,14 +14287,18 @@ snapshots:dependencies:schema-utils: 4.2.0tapable: 2.2.1- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])+ dependencies:+ brace-expansion: 1.1.11+dependencies:brace-expansion: 1.1.11@@ -12671,6 +14333,8 @@ snapshots:+ [email protected]: {}+dependencies:dns-packet: 5.6.1@@ -12858,6 +14522,8 @@ snapshots:type-check: 0.4.0word-wrap: 1.2.5+ [email protected]: {}+dependencies:p-try: 2.2.0@@ -12912,6 +14578,8 @@ snapshots:no-case: 3.0.4tslib: 2.8.1+ [email protected]: {}+@@ -12941,6 +14609,8 @@ snapshots:+ [email protected]: {}+@@ -13105,21 +14775,21 @@ snapshots:postcss: 8.4.49postcss-value-parser: 4.2.0- [email protected]([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:lilconfig: 3.1.3yaml: 2.7.0optionalDependencies:postcss: 8.4.49- ts-node: 10.9.2(@types/[email protected])([email protected])dependencies:cosmiconfig: 7.1.0klona: 2.0.6postcss: 8.4.49semver: 7.6.3- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -13449,6 +15119,109 @@ snapshots:object-assign: 4.1.1react-is: 16.13.1+ dependencies:+ prosemirror-transform: 1.10.5++ dependencies:+ prosemirror-state: 1.4.4++ dependencies:+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5++ dependencies:+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5+ prosemirror-view: 1.41.3++ dependencies:+ prosemirror-keymap: 1.2.3+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-view: 1.41.3++ dependencies:+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5+ prosemirror-view: 1.41.3+ rope-sequence: 1.3.4++ dependencies:+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5++ dependencies:+ prosemirror-state: 1.4.4+ w3c-keyname: 2.2.8++ dependencies:+ '@types/markdown-it': 14.1.2+ markdown-it: 14.1.0+ prosemirror-model: 1.25.4++ dependencies:+ crelt: 1.0.6+ prosemirror-commands: 1.7.1+ prosemirror-history: 1.5.0+ prosemirror-state: 1.4.4++ dependencies:+ orderedmap: 2.1.1++ dependencies:+ prosemirror-model: 1.25.4++ dependencies:+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5++ dependencies:+ prosemirror-model: 1.25.4+ prosemirror-transform: 1.10.5+ prosemirror-view: 1.41.3++ dependencies:+ prosemirror-keymap: 1.2.3+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5+ prosemirror-view: 1.41.3++ dependencies:+ '@remirror/core-constants': 3.0.0+ escape-string-regexp: 4.0.0+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-view: 1.41.3++ dependencies:+ prosemirror-model: 1.25.4++ dependencies:+ prosemirror-model: 1.25.4+ prosemirror-state: 1.4.4+ prosemirror-transform: 1.10.5+dependencies:forwarded: 0.2.0@@ -13460,12 +15233,14 @@ snapshots:dependencies:punycode: 2.3.1+ [email protected]: {}+dependencies:purgecss: 4.1.3- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])webpack-sources: 3.2.3@@ -13523,9 +15298,9 @@ snapshots:regenerator-runtime: 0.13.11whatwg-fetch: 3.6.20- [email protected]([email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])):+ [email protected]([email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])([email protected])([email protected])):dependencies:- react-scripts: 5.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ react-scripts: 5.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])([email protected])([email protected])semver: 5.7.2[email protected](@types/[email protected])([email protected]([email protected]))([email protected]):@@ -13547,7 +15322,7 @@ snapshots:optionalDependencies:'@types/react': 18.3.16+ [email protected]([email protected])([email protected])([email protected])([email protected](@swc/[email protected])):dependencies:'@babel/code-frame': 7.26.2address: 1.2.2@@ -13558,7 +15333,7 @@ snapshots:escape-string-regexp: 4.0.0filesize: 8.0.7find-up: 5.0.0+ fork-ts-checker-webpack-plugin: 6.5.3([email protected])([email protected])([email protected])([email protected](@swc/[email protected]))global-modules: 2.0.0globby: 11.1.0gzip-size: 6.0.0@@ -13573,7 +15348,7 @@ snapshots:shell-quote: 1.8.2strip-ansi: 6.0.1text-table: 0.2.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])optionalDependencies:typescript: 4.9.5transitivePeerDependencies:@@ -13636,56 +15411,56 @@ snapshots:optionalDependencies:react-dom: 18.3.1([email protected])- [email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):+ [email protected](@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))(@swc/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:'@babel/core': 7.26.0- '@pmmmwh/react-refresh-webpack-plugin': 0.5.15([email protected])([email protected])([email protected]([email protected]))([email protected])+ '@pmmmwh/react-refresh-webpack-plugin': 0.5.15([email protected])([email protected])([email protected]([email protected](@swc/[email protected])))([email protected](@swc/[email protected]))'@svgr/webpack': 5.5.0babel-jest: 27.5.1(@babel/[email protected])- babel-loader: 8.4.1(@babel/[email protected])([email protected])babel-plugin-named-asset-import: 0.3.8(@babel/[email protected])babel-preset-react-app: 10.0.1bfj: 7.1.0browserslist: 4.24.2camelcase: 6.3.0case-sensitive-paths-webpack-plugin: 2.4.0- css-loader: 6.11.0([email protected])- css-minimizer-webpack-plugin: 3.4.1([email protected])+ css-loader: 6.11.0([email protected](@swc/[email protected]))+ css-minimizer-webpack-plugin: 3.4.1([email protected](@swc/[email protected]))dotenv: 10.0.0dotenv-expand: 5.1.0eslint: 8.57.1- eslint-config-react-app: 7.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))([email protected])- eslint-webpack-plugin: 3.2.0([email protected])([email protected])- file-loader: 6.2.0([email protected])+ eslint-config-react-app: 7.0.1(@babel/[email protected](@babel/[email protected]))(@babel/[email protected](@babel/[email protected]))([email protected])([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])))([email protected])+ file-loader: 6.2.0([email protected](@swc/[email protected]))fs-extra: 10.1.0- html-webpack-plugin: 5.6.3([email protected])+ html-webpack-plugin: 5.6.3([email protected](@swc/[email protected]))identity-obj-proxy: 3.0.0+ jest: 27.5.1([email protected](@swc/[email protected])(@types/[email protected])([email protected]))jest-resolve: 27.5.1- jest-watch-typeahead: 1.1.0([email protected]([email protected](@types/[email protected])([email protected])))- mini-css-extract-plugin: 2.9.2([email protected])+ jest-watch-typeahead: 1.1.0([email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])))+ mini-css-extract-plugin: 2.9.2([email protected](@swc/[email protected]))postcss: 8.4.49postcss-flexbugs-fixes: 5.0.2([email protected])- postcss-loader: 6.2.1([email protected])([email protected])postcss-normalize: 10.0.1([email protected])([email protected])postcss-preset-env: 7.8.3([email protected])prompts: 2.4.2react: 18.3.1react-app-polyfill: 3.0.0+ react-dev-utils: 12.0.1([email protected])([email protected])([email protected])([email protected](@swc/[email protected]))react-refresh: 0.11.0resolve: 1.22.8resolve-url-loader: 4.0.0- sass-loader: 12.6.0([email protected])([email protected])semver: 7.6.3- source-map-loader: 3.0.2([email protected])- style-loader: 3.3.4([email protected])- terser-webpack-plugin: 5.3.10([email protected])- webpack: 5.97.1- webpack-dev-server: 4.15.2([email protected])- webpack-manifest-plugin: 4.1.1([email protected])- workbox-webpack-plugin: 6.6.0(@types/[email protected])([email protected])+ source-map-loader: 3.0.2([email protected](@swc/[email protected]))+ style-loader: 3.3.4([email protected](@swc/[email protected]))+ tailwindcss: 3.4.16([email protected](@swc/[email protected])(@types/[email protected])([email protected]))+ webpack: 5.97.1(@swc/[email protected])+ webpack-dev-server: 4.15.2([email protected](@swc/[email protected]))+ webpack-manifest-plugin: 4.1.1([email protected](@swc/[email protected]))+ workbox-webpack-plugin: 6.6.0(@types/[email protected])([email protected](@swc/[email protected]))optionalDependencies:fsevents: 2.3.3typescript: 4.9.5@@ -13875,6 +15650,11 @@ snapshots:+ dependencies:+ is-core-module: 2.15.1+ path-parse: 1.0.7+dependencies:is-core-module: 2.15.1@@ -13918,6 +15698,12 @@ snapshots:optionalDependencies:fsevents: 2.3.3+ optionalDependencies:+ fsevents: 2.3.3++ [email protected]: {}+dependencies:queue-microtask: 1.2.3@@ -13943,11 +15729,11 @@ snapshots:dependencies:klona: 2.0.6neo-async: 2.6.2- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])optionalDependencies:sass: 1.54.4@@ -14146,12 +15932,12 @@ snapshots:dependencies:abab: 2.0.6iconv-lite: 0.6.3source-map-js: 1.2.1- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:@@ -14354,9 +16140,9 @@ snapshots:dependencies:- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])@@ -14434,7 +16220,7 @@ snapshots:'@pkgr/core': 0.1.1tslib: 2.8.1+ [email protected]([email protected](@swc/[email protected])(@types/[email protected])([email protected])):dependencies:'@alloc/quick-lru': 5.2.0arg: 5.0.2@@ -14453,7 +16239,7 @@ snapshots:postcss: 8.4.49postcss-import: 15.1.0([email protected])postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])([email protected](@types/[email protected])([email protected]))+ postcss-load-config: 4.0.2([email protected])([email protected](@swc/[email protected])(@types/[email protected])([email protected]))postcss-nested: 6.2.0([email protected])postcss-selector-parser: 6.1.2resolve: 1.22.8@@ -14484,14 +16270,16 @@ snapshots:ansi-escapes: 4.3.2supports-hyperlinks: 2.3.0dependencies:'@jridgewell/trace-mapping': 0.3.25jest-worker: 27.5.1schema-utils: 3.3.0serialize-javascript: 6.0.2terser: 5.37.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])+ optionalDependencies:+ '@swc/core': 1.15.3dependencies:@@ -14538,6 +16326,8 @@ snapshots:+ [email protected]: {}+dependencies:psl: 1.15.0@@ -14561,16 +16351,20 @@ snapshots:dependencies:typescript: 4.9.5+ dependencies:+ typescript: 5.9.3+dependencies:'@cspotcode/source-map-support': 0.8.1'@tsconfig/node10': 1.0.11'@tsconfig/node12': 1.0.11'@tsconfig/node14': 1.0.3'@tsconfig/node16': 1.0.4- '@types/node': 20.5.1+ '@types/node': 16.18.121acorn: 8.14.0acorn-walk: 8.3.4arg: 4.1.3@@ -14580,6 +16374,8 @@ snapshots:typescript: 4.9.5v8-compile-cache-lib: 3.0.1yn: 3.1.1+ optionalDependencies:+ '@swc/core': 1.15.3dependencies:@@ -14668,6 +16464,12 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+dependencies:call-bind: 1.0.8@@ -14704,6 +16506,8 @@ snapshots:dependencies:crypto-random-string: 2.0.0+ [email protected]: {}+@@ -14731,10 +16535,9 @@ snapshots:querystringify: 2.2.0requires-port: 1.0.0dependencies:react: 18.3.1- optional: true@@ -14764,10 +16567,52 @@ snapshots:spdx-correct: 3.2.0spdx-expression-parse: 3.0.1+ [email protected]: {}++ [email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])):+ dependencies:+ '@microsoft/api-extractor': 7.43.0(@types/[email protected])+ '@rollup/pluginutils': 5.3.0([email protected])+ '@vue/language-core': 1.8.27([email protected])+ debug: 4.4.0+ kolorist: 1.8.0+ magic-string: 0.30.21+ typescript: 5.9.3+ vue-tsc: 1.8.27([email protected])+ optionalDependencies:+ transitivePeerDependencies:+ - '@types/node'+ - rollup+ - supports-color++ dependencies:+ esbuild: 0.18.20+ postcss: 8.4.49+ rollup: 3.29.5+ optionalDependencies:+ '@types/node': 20.5.1+ fsevents: 2.3.3+ sass: 1.54.4+ terser: 5.37.0++ dependencies:+ de-indent: 1.0.2+ he: 1.2.0++ dependencies:+ '@volar/typescript': 1.11.1+ '@vue/language-core': 1.8.27([email protected])+ semver: 7.6.3+ typescript: 5.9.3+dependencies:browser-process-hrtime: 1.0.0@@ -14801,16 +16646,16 @@ snapshots:dependencies:colorette: 2.0.20memfs: 3.5.3mime-types: 2.1.35range-parser: 1.2.1schema-utils: 4.2.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])dependencies:'@types/bonjour': 3.5.13'@types/connect-history-api-fallback': 1.5.4@@ -14840,20 +16685,20 @@ snapshots:serve-index: 1.9.1sockjs: 0.3.24spdy: 4.0.2- webpack-dev-middleware: 5.3.4([email protected])+ webpack-dev-middleware: 5.3.4([email protected](@swc/[email protected]))ws: 8.18.0optionalDependencies:- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])transitivePeerDependencies:- bufferutil- debug- supports-color- utf-8-validatedependencies:tapable: 2.2.1- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])webpack-sources: 2.3.1@@ -14868,7 +16713,7 @@ snapshots:+ [email protected](@swc/[email protected]):dependencies:'@types/eslint-scope': 3.7.7'@types/estree': 1.0.6@@ -14890,7 +16735,7 @@ snapshots:neo-async: 2.6.2schema-utils: 3.3.0tapable: 2.2.1- terser-webpack-plugin: 5.3.10([email protected])watchpack: 2.4.2webpack-sources: 3.2.3transitivePeerDependencies:@@ -15085,12 +16930,12 @@ snapshots:dependencies:fast-json-stable-stringify: 2.1.0pretty-bytes: 5.6.0upath: 1.2.0- webpack: 5.97.1+ webpack: 5.97.1(@swc/[email protected])webpack-sources: 1.4.3workbox-build: 6.6.0(@types/[email protected])transitivePeerDependencies:@@ -15210,9 +17055,17 @@ snapshots:- [email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected])):+ dependencies:+ lodash.get: 4.4.2+ lodash.isequal: 4.5.0+ validator: 13.15.23+ optionalDependencies:+ commander: 9.5.0++ [email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected])):optionalDependencies:'@types/react': 18.3.16immer: 9.0.21react: 18.3.1- use-sync-external-store: 1.2.2([email protected])+ use-sync-external-store: 1.6.0([email protected])diff --git a/ui/src/components/Editor/EditorContext.ts b/ui/src/components/Editor/EditorContext.tsindex 9cfaffe2..c5c58457 100644--- a/ui/src/components/Editor/EditorContext.ts+++ b/ui/src/components/Editor/EditorContext.ts@@ -19,6 +19,6 @@import React from 'react';-import { IEditorContext } from './types';+import { Editor } from './types';-export const EditorContext = React.createContext<IEditorContext | any>({});+export const EditorContext = React.createContext<Editor | null>(null);diff --git a/ui/src/components/Editor/MarkdownEditor.tsx b/ui/src/components/Editor/MarkdownEditor.tsxnew file mode 100644index 00000000..10145a22--- /dev/null+++ b/ui/src/components/Editor/MarkdownEditor.tsx@@ -0,0 +1,112 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { useEffect, useRef } from 'react';++import { EditorView } from '@codemirror/view';++import { Editor } from './types';+import { useEditor } from './utils';++interface MarkdownEditorProps {+ value: string;+ onChange?: (value: string) => void;+ onFocus?: () => void;+ onBlur?: () => void;+ placeholder?: string;+ autoFocus?: boolean;+ onEditorReady?: (editor: Editor) => void;+}++const MarkdownEditor: React.FC<MarkdownEditorProps> = ({+ value,+ onChange,+ onFocus,+ onBlur,+ placeholder,+ autoFocus,+ onEditorReady,+}) => {+ const editorRef = useRef<HTMLDivElement>(null);+ const lastSyncedValueRef = useRef<string>(value);++ const editor = useEditor({+ editorRef,+ onChange,+ onFocus,+ onBlur,+ placeholder,+ autoFocus,+ });++ // 初始化内容(只在编辑器创建时执行)+ useEffect(() => {+ if (!editor) {+ return;+ }++ // 初始化编辑器内容+ editor.setValue(value || '');+ lastSyncedValueRef.current = value || '';+ onEditorReady?.(editor);+ }, [editor]); // 只在编辑器创建时执行++ // 当外部 value 变化时更新(但不是用户输入导致的)+ useEffect(() => {+ if (!editor) {+ return;+ }++ // 如果 value 和 lastSyncedValueRef 相同,说明是用户输入导致的更新,跳过+ if (value === lastSyncedValueRef.current) {+ return;+ }++ // 外部 value 真正变化,更新编辑器+ const currentValue = editor.getValue();+ if (currentValue !== value) {+ editor.setValue(value || '');+ lastSyncedValueRef.current = value || '';+ }+ }, [editor, value]);++ // 清理:组件卸载时销毁编辑器+ useEffect(() => {+ return () => {+ if (editor) {+ // CodeMirror EditorView 有 destroy 方法+ const view = editor as unknown as EditorView;+ if (view.destroy) {+ view.destroy();+ }+ }+ };+ }, [editor]);++ return (+ <div className="content-wrap">+ <div+ className="md-editor position-relative w-100 h-100"+ ref={editorRef}+ />+ </div>+ );+};++export default MarkdownEditor;diff --git a/ui/src/components/Editor/ToolBars/blockquote.tsx b/ui/src/components/Editor/ToolBars/blockquote.tsxindex fac2fc5a..27147ed2 100644--- a/ui/src/components/Editor/ToolBars/blockquote.tsx+++ b/ui/src/components/Editor/ToolBars/blockquote.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const BlockQuote = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });@@ -33,21 +32,9 @@ const BlockQuote = () => {tip: `${t('blockquote.text')} (Ctrl+Q)`,};- const handleClick = (ctx) => {- context = ctx;- context.replaceLines((line) => {- const FIND_BLOCKQUOTE_RX = /^>\s+?/g;-- if (line === `> ${t('blockquote.text')}`) {- line = '';- } else if (line.match(FIND_BLOCKQUOTE_RX)) {- line = line.replace(FIND_BLOCKQUOTE_RX, '');- } else {- line = `> ${line || t('blockquote.text')}`;- }- return line;- }, 2);- context.editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.insertBlockquote(t('blockquote.text'));+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/bold.tsx b/ui/src/components/Editor/ToolBars/bold.tsxindex 8efe69c5..2a9a292e 100644--- a/ui/src/components/Editor/ToolBars/bold.tsx+++ b/ui/src/components/Editor/ToolBars/bold.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Bold = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -33,10 +32,9 @@ const Bold = () => {};const DEFAULTTEXT = t('bold.text');- const handleClick = (ctx) => {- context = ctx;- context.wrapText('**', '**', DEFAULTTEXT);- context.editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.insertBold(DEFAULTTEXT);+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/code.tsx b/ui/src/components/Editor/ToolBars/code.tsxindex afbd7dde..599ffaea 100644--- a/ui/src/components/Editor/ToolBars/code.tsx+++ b/ui/src/components/Editor/ToolBars/code.tsx@@ -23,7 +23,7 @@ import { useTranslation } from 'react-i18next';import Select from '../Select';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';const codeLanguageType = ['bash',@@ -150,7 +150,6 @@ const codeLanguageType = ['yml',];-let context: IEditorContext;const Code = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });@@ -170,22 +169,20 @@ const Code = () => {const inputRef = useRef<HTMLTextAreaElement>(null);const SINGLELINEMAXLENGTH = 40;- const addCode = (ctx) => {- context = ctx;+ const [currentEditor, setCurrentEditor] = useState<Editor | null>(null);- const { wrapText, editor } = context;-- const text = context.editor.getSelection();+ const addCode = (editor: Editor) => {+ setCurrentEditor(editor);+ const text = editor.getSelection();if (!text) {setVisible(true);-return;}if (text.length > SINGLELINEMAXLENGTH) {- context.wrapText('```\n', '\n```');+ editor.insertCodeBlock('', text);} else {- wrapText('`', '`');+ editor.insertCode(text);}editor.focus();};@@ -197,6 +194,10 @@ const Code = () => {}, [visible]);const handleClick = () => {+ if (!currentEditor) {+ return;+ }+if (!code.value.trim()) {setCode({...code,@@ -206,17 +207,15 @@ const Code = () => {return;}- let value;-if (code.value.split('\n').length > 1 ||code.value.length >= SINGLELINEMAXLENGTH) {- value = `\n\`\`\`${lang}\n${code.value}\n\`\`\`\n`;+ currentEditor.insertCodeBlock(lang || undefined, code.value);} else {- value = `\`${code.value}\``;+ currentEditor.insertCode(code.value);}- context.editor.replaceSelection(value);+setCode({value: '',isInvalid: false,@@ -224,9 +223,10 @@ const Code = () => {});setLang('');setVisible(false);+ currentEditor.focus();};const onHide = () => setVisible(false);- const onExited = () => context.editor?.focus();+ const onExited = () => currentEditor?.focus();return (<ToolItem {...item} onClick={addCode}>diff --git a/ui/src/components/Editor/ToolBars/file.tsx b/ui/src/components/Editor/ToolBars/file.tsxindex 9e6e7399..d48c0e6a 100644--- a/ui/src/components/Editor/ToolBars/file.tsx+++ b/ui/src/components/Editor/ToolBars/file.tsx@@ -17,31 +17,28 @@* under the License.*/-import { useState, memo, useRef } from 'react';+import { memo, useRef, useContext } from 'react';import { useTranslation } from 'react-i18next';import { Modal as AnswerModal } from '@/components';import ToolItem from '../toolItem';-import { IEditorContext, Editor } from '../types';+import { EditorContext } from '../EditorContext';import { uploadImage } from '@/services';import { writeSettingStore } from '@/stores';-let context: IEditorContext;-const Image = ({ editorInstance }) => {+const File = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const { max_attachment_size = 8, authorized_attachment_extensions = [] } =writeSettingStore((state) => state.write);const fileInputRef = useRef<HTMLInputElement>(null);- const [editor, setEditor] = useState<Editor>(editorInstance);+ const editor = useContext(EditorContext);const item = {label: 'paperclip',tip: `${t('file.text')}`,};- const addLink = (ctx) => {- context = ctx;- setEditor(context.editor);+ const addLink = () => {fileInputRef.current?.click?.();};@@ -132,4 +129,4 @@ const Image = ({ editorInstance }) => {);};-export default memo(Image);+export default memo(File);diff --git a/ui/src/components/Editor/ToolBars/heading.tsx b/ui/src/components/Editor/ToolBars/heading.tsxindex 8b0cb604..4b49212c 100644--- a/ui/src/components/Editor/ToolBars/heading.tsx+++ b/ui/src/components/Editor/ToolBars/heading.tsx@@ -22,9 +22,8 @@ import { Dropdown } from 'react-bootstrap';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor, Level } from '../types';-let context: IEditorContext;const Heading = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const headerList = [@@ -61,19 +60,18 @@ const Heading = () => {};const [isShow, setShowState] = useState(false);const [isLocked, setLockState] = useState(false);+ const [currentEditor, setCurrentEditor] = useState<Editor | null>(null);- const handleClick = (level = 2, label = '大标题') => {- const { replaceLines } = context;-- replaceLines((line) => {- line = line.trim().replace(/^#*/, '').trim();- line = `${'#'.repeat(level)} ${line || label}`;- return line;- }, level + 1);+ const handleClick = (level: Level = 2, label = '大标题') => {+ if (!currentEditor) {+ return;+ }+ currentEditor.insertHeading(level, label);+ currentEditor.focus();setShowState(false);};- const onAddHeader = (ctx) => {- context = ctx;+ const onAddHeader = (editor: Editor) => {+ setCurrentEditor(editor);if (isLocked) {return;}@@ -104,7 +102,7 @@ const Heading = () => {onClick={(e) => {e.preventDefault();e.stopPropagation();- handleClick(header.level, header.label);+ handleClick(header.level as Level, header.label);}}dangerouslySetInnerHTML={{ __html: header.text }}/>diff --git a/ui/src/components/Editor/ToolBars/hr.tsx b/ui/src/components/Editor/ToolBars/hr.tsxindex ac988a87..6919eb3b 100644--- a/ui/src/components/Editor/ToolBars/hr.tsx+++ b/ui/src/components/Editor/ToolBars/hr.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Hr = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -31,11 +30,9 @@ const Hr = () => {keyMap: ['Ctrl-r'],tip: `${t('hr.text')} (Ctrl+r)`,};- const handleClick = (ctx) => {- context = ctx;- const { appendBlock, editor } = context;- appendBlock('----------\n');- editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.insertHorizontalRule();+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/image.tsx b/ui/src/components/Editor/ToolBars/image.tsxindex c9950b06..67a79b3c 100644--- a/ui/src/components/Editor/ToolBars/image.tsx+++ b/ui/src/components/Editor/ToolBars/image.tsx@@ -17,19 +17,28 @@* under the License.*/-import { useEffect, useState, memo } from 'react';+import { useEffect, useState, memo, useContext } from 'react';import { Button, Form, Modal, Tab, Tabs } from 'react-bootstrap';import { useTranslation } from 'react-i18next';import { Modal as AnswerModal } from '@/components';import ToolItem from '../toolItem';-import { IEditorContext, Editor } from '../types';+import { EditorContext } from '../EditorContext';+import { Editor } from '../types';import { uploadImage } from '@/services';import { writeSettingStore } from '@/stores';-let context: IEditorContext;-const Image = ({ editorInstance }) => {- const [editor, setEditor] = useState<Editor>(editorInstance);+const Image = () => {+ const editor = useContext(EditorContext);+ const [editorState, setEditorState] = useState<Editor | null>(editor);++ // 当 editor 改变时,更新 editor state+ // 这样切换编辑器模式时,事件监听器会重新绑定+ useEffect(() => {+ if (editor) {+ setEditorState(editor);+ }+ }, [editor]);const { t } = useTranslation('translation', { keyPrefix: 'editor' });const {max_image_size = 4,@@ -160,19 +169,22 @@ const Image = ({ editorInstance }) => {return;}- const startPos = editor.getCursor();+ if (!editorState) {+ return;+ }+ const startPos = editorState.getCursor();const endPos = { ...startPos, ch: startPos.ch + loadingText.length };- editor.replaceSelection(loadingText);- editor.setReadOnly(true);+ editorState.replaceSelection(loadingText);+ editorState.setReadOnly(true);const urls = await upload(fileList).catch(() => {- editor.replaceRange('', startPos, endPos);+ editorState.replaceRange('', startPos, endPos);}).finally(() => {- editor.setReadOnly(false);- editor.focus();+ editorState?.setReadOnly(false);+ editorState?.focus();});const text: string[] = [];@@ -184,9 +196,9 @@ const Image = ({ editorInstance }) => {});}if (text.length) {- editor.replaceRange(text.join('\n'), startPos, endPos);+ editorState.replaceRange(text.join('\n'), startPos, endPos);} else {- editor.replaceRange('', startPos, endPos);+ editorState?.replaceRange('', startPos, endPos);}};@@ -197,25 +209,28 @@ const Image = ({ editorInstance }) => {if (bool) {event.preventDefault();- const startPos = editor.getCursor();+ if (!editorState) {+ return;+ }+ const startPos = editorState.getCursor();const endPos = { ...startPos, ch: startPos.ch + loadingText.length };- editor.replaceSelection(loadingText);- editor.setReadOnly(true);+ editorState?.replaceSelection(loadingText);+ editorState?.setReadOnly(true);upload(clipboard.files).then((urls) => {const text = urls.map(({ name, url, type }) => {return `${type === 'post' ? '!' : ''}[${name}](${url})`;});- editor.replaceRange(text.join('\n'), startPos, endPos);+ editorState.replaceRange(text.join('\n'), startPos, endPos);}).catch(() => {- editor.replaceRange('', startPos, endPos);+ editorState.replaceRange('', startPos, endPos);}).finally(() => {- editor.setReadOnly(false);- editor.focus();+ editorState?.setReadOnly(false);+ editorState?.focus();});return;@@ -289,7 +304,9 @@ const Image = ({ editorInstance }) => {return match.length > 1 ? '\n\n' : match;});- editor.replaceSelection(markdownText);+ if (editorState) {+ editorState.replaceSelection(markdownText);+ }};const handleClick = () => {if (!link.value) {@@ -298,28 +315,35 @@ const Image = ({ editorInstance }) => {}setLink({ ...link, type: '' });- const text = ``;-- editor.replaceSelection(text);+ if (editorState) {+ editorState.insertImage(link.value, imageName.value || undefined);+ }setVisible(false);- editor.focus();+ editorState?.focus();setLink({ ...link, value: '' });setImageName({ ...imageName, value: '' });};useEffect(() => {- editor?.on('dragenter', dragenter);- editor?.on('dragover', dragover);- editor?.on('drop', drop);- editor?.on('paste', paste);+ if (!editorState) {+ return undefined;+ }+ // 绑定事件监听器+ editorState.on('dragenter', dragenter);+ editorState.on('dragover', dragover);+ editorState.on('drop', drop);+ editorState.on('paste', paste);return () => {- editor?.off('dragenter', dragenter);- editor?.off('dragover', dragover);- editor?.off('drop', drop);- editor?.off('paste', paste);+ // 清理事件监听器+ editorState.off('dragenter', dragenter);+ editorState.off('dragover', dragover);+ editorState.off('drop', drop);+ editorState.off('paste', paste);};- }, [editor]);+ // 注意:dragenter, dragover, drop, paste 函数在组件生命周期内是稳定的+ // 它们不依赖任何会变化的值,所以不需要加入依赖项+ }, [editorState]);useEffect(() => {if (link.value && link.type === 'drop') {@@ -327,10 +351,9 @@ const Image = ({ editorInstance }) => {}}, [link.value]);- const addLink = (ctx) => {- context = ctx;- setEditor(context.editor);- const text = context.editor?.getSelection();+ const addLink = (editorInstance: Editor) => {+ setEditorState(editorInstance);+ const text = editorInstance?.getSelection();setImageName({ ...imageName, value: text });diff --git a/ui/src/components/Editor/ToolBars/indent.tsx b/ui/src/components/Editor/ToolBars/indent.tsxindex 6ec01dce..7099fbcb 100644--- a/ui/src/components/Editor/ToolBars/indent.tsx+++ b/ui/src/components/Editor/ToolBars/indent.tsx@@ -21,24 +21,17 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Indent = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {label: 'text-indent-left',tip: t('indent.text'),};- const handleClick = (ctx) => {- context = ctx;- const { editor, replaceLines } = context;-- replaceLines((line) => {- line = ` ${line}`;- return line;- });- editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.indent();+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/italic.tsx b/ui/src/components/Editor/ToolBars/italic.tsxindex cb585893..4b359d2a 100644--- a/ui/src/components/Editor/ToolBars/italic.tsx+++ b/ui/src/components/Editor/ToolBars/italic.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Italic = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -33,11 +32,9 @@ const Italic = () => {};const DEFAULTTEXT = t('italic.text');- const handleClick = (ctx) => {- context = ctx;- const { editor, wrapText } = context;- wrapText('*', '*', DEFAULTTEXT);- editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.insertItalic(DEFAULTTEXT);+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/link.tsx b/ui/src/components/Editor/ToolBars/link.tsxindex e761ef3d..be84c1b3 100644--- a/ui/src/components/Editor/ToolBars/link.tsx+++ b/ui/src/components/Editor/ToolBars/link.tsx@@ -22,9 +22,8 @@ import { Button, Form, Modal } from 'react-bootstrap';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Link = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -33,6 +32,7 @@ const Link = () => {tip: `${t('link.text')} (Ctrl+l)`,};const [visible, setVisible] = useState(false);+ const [currentEditor, setCurrentEditor] = useState<Editor | null>(null);const [link, setLink] = useState({value: 'https://',isInvalid: false,@@ -52,39 +52,32 @@ const Link = () => {}}, [visible]);- const addLink = (ctx) => {- context = ctx;- const { editor } = context;-+ const addLink = (editor: Editor) => {+ setCurrentEditor(editor);const text = editor.getSelection();-setName({ ...name, value: text });-setVisible(true);};const handleClick = () => {- const { editor } = context;+ if (!currentEditor) {+ return;+ }if (!link.value) {setLink({ ...link, isInvalid: true });return;}- const newStr = name.value- ? `[${name.value}](${link.value})`- : `<${link.value}>`;- editor.replaceSelection(newStr);+ currentEditor.insertLink(link.value, name.value || undefined);setVisible(false);-- editor.focus();+ currentEditor.focus();setLink({ ...link, value: '' });setName({ ...name, value: '' });};const onHide = () => setVisible(false);const onExited = () => {- const { editor } = context;- editor.focus();+ currentEditor?.focus();};return (diff --git a/ui/src/components/Editor/ToolBars/ol.tsx b/ui/src/components/Editor/ToolBars/ol.tsxindex 011c35a3..a4252348 100644--- a/ui/src/components/Editor/ToolBars/ol.tsx+++ b/ui/src/components/Editor/ToolBars/ol.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const OL = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -32,20 +31,8 @@ const OL = () => {tip: `${t('ordered_list.text')} (Ctrl+o)`,};- const handleClick = (ctx) => {- context = ctx;- const { editor, replaceLines } = context;-- replaceLines((line, i) => {- const FIND_OL_RX = /^(\s{0,})(\d+)\.\s/;-- if (line.match(FIND_OL_RX)) {- line = line.replace(FIND_OL_RX, '');- } else {- line = `${i + 1}. ${line}`;- }- return line;- });+ const handleClick = (editor: Editor) => {+ editor.insertOrderedList();editor.focus();};diff --git a/ui/src/components/Editor/ToolBars/outdent.tsx b/ui/src/components/Editor/ToolBars/outdent.tsxindex b8067037..484e434c 100644--- a/ui/src/components/Editor/ToolBars/outdent.tsx+++ b/ui/src/components/Editor/ToolBars/outdent.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Outdent = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -31,16 +30,9 @@ const Outdent = () => {keyMap: ['Shift-Tab'],tip: t('outdent.text'),};- const handleClick = (ctx) => {- context = ctx;- const { editor, replaceLines } = context;- replaceLines((line) => {- line = line.replace(/^(\s{0,})/, (_1, $1) => {- return $1.length > 4 ? $1.substring(4) : '';- });- return line;- });- editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.outdent();+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/table.tsx b/ui/src/components/Editor/ToolBars/table.tsxindex 30ca101d..6381f4cc 100644--- a/ui/src/components/Editor/ToolBars/table.tsx+++ b/ui/src/components/Editor/ToolBars/table.tsx@@ -21,77 +21,18 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const Table = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {label: 'table',tip: t('table.text'),};- const tableData = [- [`${t('table.heading')} A`],- [`${t('table.heading')} B`],- [`${t('table.cell')} 1`],- [`${t('table.cell')} 2`],- [`${t('table.cell')} 3`],- [`${t('table.cell')} 4`],- ];- const makeHeader = (col, data) => {- let header = '|';- let border = '|';- let index = 0;-- while (col) {- if (data) {- header += ` ${data[index]} |`;- index += 1;- } else {- header += ' |';- }-- border += ' ----- |';-- col -= 1;- }-- return `${header}\n${border}\n`;- };-- const makeBody = (col, row, data) => {- let body = '';- let index = col;-- for (let irow = 0; irow < row; irow += 1) {- body += '|';-- for (let icol = 0; icol < col; icol += 1) {- if (data) {- body += ` ${data[index]} |`;- index += 1;- } else {- body += ' |';- }- }-- body += '\n';- }-- body = body.replace(/\n$/g, '');-- return body;- };- const handleClick = (ctx) => {- context = ctx;- const { editor } = context;- let table = '\n';-- table += makeHeader(2, tableData);- table += makeBody(2, 2, tableData);- editor?.replaceSelection(table);- editor?.focus();+ const handleClick = (editor: Editor) => {+ editor.insertTable(3, 3);+ editor.focus();};return <ToolItem {...item} onClick={handleClick} />;diff --git a/ui/src/components/Editor/ToolBars/ul.tsx b/ui/src/components/Editor/ToolBars/ul.tsxindex b906a346..9651f5a4 100644--- a/ui/src/components/Editor/ToolBars/ul.tsx+++ b/ui/src/components/Editor/ToolBars/ul.tsx@@ -21,9 +21,8 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';import ToolItem from '../toolItem';-import { IEditorContext } from '../types';+import { Editor } from '../types';-let context: IEditorContext;const UL = () => {const { t } = useTranslation('translation', { keyPrefix: 'editor' });const item = {@@ -32,20 +31,8 @@ const UL = () => {tip: `${t('unordered_list.text')} (Ctrl+u)`,};- const handleClick = (ctx) => {- context = ctx;- const { editor, replaceLines } = context;-- replaceLines((line) => {- const FIND_UL_RX = /^(\s{0,})(-|\*)\s/;-- if (line.match(FIND_UL_RX)) {- line = line.replace(FIND_UL_RX, '');- } else {- line = `* ${line}`;- }- return line;- });+ const handleClick = (editor: Editor) => {+ editor.insertUnorderedList();editor.focus();};diff --git a/ui/src/components/Editor/WysiwygEditor.tsx b/ui/src/components/Editor/WysiwygEditor.tsxnew file mode 100644index 00000000..7ddb2836--- /dev/null+++ b/ui/src/components/Editor/WysiwygEditor.tsx@@ -0,0 +1,162 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { useEffect, useRef, useCallback } from 'react';++import {+ useEditor,+ EditorContent,+ Editor as TipTapEditor,+} from '@tiptap/react';+import StarterKit from '@tiptap/starter-kit';+import Placeholder from '@tiptap/extension-placeholder';+import { Markdown } from '@tiptap/markdown';+import Image from '@tiptap/extension-image';+import { TableKit } from '@tiptap/extension-table';++import { Editor } from './types';+import { createTipTapAdapter } from './utils/tiptap/adapter';++interface WysiwygEditorProps {+ value: string;+ onChange?: (value: string) => void;+ onFocus?: () => void;+ onBlur?: () => void;+ placeholder?: string;+ autoFocus?: boolean;+ onEditorReady?: (editor: Editor) => void;+}++const WysiwygEditor: React.FC<WysiwygEditorProps> = ({+ value,+ onChange,+ onFocus,+ onBlur,+ placeholder = '',+ autoFocus = false,+ onEditorReady,+}) => {+ const lastSyncedValueRef = useRef<string>(value);++ const adaptedEditorRef = useRef<Editor | null>(null);++ const handleUpdate = useCallback(+ ({ editor: editorInstance }: { editor: TipTapEditor }) => {+ if (onChange) {+ const markdown = editorInstance.getMarkdown();+ onChange(markdown);+ }+ },+ [onChange],+ );++ const handleFocus = useCallback(() => {+ onFocus?.();+ }, [onFocus]);++ const handleBlur = useCallback(() => {+ onBlur?.();+ }, [onBlur]);++ const editor = useEditor({+ extensions: [+ StarterKit,+ Markdown,+ Image,+ TableKit,+ Placeholder.configure({+ placeholder,+ }),+ ],+ content: value || '',+ onUpdate: handleUpdate,+ onFocus: handleFocus,+ onBlur: handleBlur,+ editorProps: {+ attributes: {+ class: 'tiptap-editor',+ },+ },+ });++ useEffect(() => {+ if (!editor) {+ return;+ }++ const checkEditorReady = () => {+ if (editor.view && editor.view.dom) {+ if (value && value.trim() !== '') {+ editor.commands.setContent(value, { contentType: 'markdown' });+ } else {+ editor.commands.clearContent();+ }+ lastSyncedValueRef.current = value || '';+ if (!adaptedEditorRef.current) {+ adaptedEditorRef.current = createTipTapAdapter(editor);+ }+ onEditorReady?.(adaptedEditorRef.current);+ } else {+ setTimeout(checkEditorReady, 10);+ }+ };++ checkEditorReady();+ }, [editor]);++ useEffect(() => {+ if (!editor) {+ return;+ }++ if (value === lastSyncedValueRef.current) {+ return;+ }++ const currentMarkdown = editor.getMarkdown();+ if (currentMarkdown !== value) {+ if (value && value.trim() !== '') {+ editor.commands.setContent(value, { contentType: 'markdown' });+ } else {+ editor.commands.clearContent();+ }+ lastSyncedValueRef.current = value || '';+ }+ }, [editor, value]);++ useEffect(() => {+ if (editor && autoFocus) {+ setTimeout(() => {+ editor.commands.focus();+ }, 100);+ }+ }, [editor, autoFocus]);++ if (!editor) {+ return <div className="editor-loading">Loading editor...</div>;+ }++ return (+ <div className="wysiwyg-editor-wrap">+ <EditorContent editor={editor} />+ </div>+ );+};++export default WysiwygEditor;diff --git a/ui/src/components/Editor/index.scss b/ui/src/components/Editor/index.scssindex afd15871..20ab5bab 100644--- a/ui/src/components/Editor/index.scss+++ b/ui/src/components/Editor/index.scss@@ -114,6 +114,119 @@height: 264px;}+ // WYSIWYG 编辑器样式+ .wysiwyg-editor-wrap {+ height: 264px;+ overflow-y: auto;+ padding: 0.375rem 0.75rem;++ .tiptap-editor {+ outline: none;+ min-height: 100%;++ &:focus {+ outline: none;+ }++ p {+ margin: 0.5rem 0;+ line-height: 1.6;++ &.is-editor-empty:first-child::before {+ content: attr(data-placeholder);+ float: left;+ color: var(--an-editor-placeholder-color);+ pointer-events: none;+ height: 0;+ }+ }++ h1,+ h2,+ h3,+ h4,+ h5,+ h6 {+ margin: 1rem 0 0.5rem;+ font-weight: 600;+ line-height: 1.4;+ }++ ul,+ ol {+ padding-left: 1.5rem;+ margin: 0.5rem 0;+ }++ li {+ margin: 0.25rem 0;+ }++ code {+ background-color: var(--an-code-bg, #f4f4f4);+ color: var(--an-code-color, #e83e8c);+ padding: 0.2em 0.4em;+ border-radius: 3px;+ font-size: 0.9em;+ }++ pre {+ background-color: var(--an-code-block-bg, #f8f9fa);+ border: 1px solid var(--an-ced4da);+ border-radius: 4px;+ padding: 1rem;+ margin: 0.5rem 0;+ overflow-x: auto;++ code {+ background-color: transparent;+ color: inherit;+ padding: 0;+ }+ }++ blockquote {+ border-left: 4px solid var(--an-primary, #0d6efd);+ padding-left: 1rem;+ margin: 0.5rem 0;+ color: var(--an-text-secondary, #6c757d);+ }++ a {+ color: var(--an-link-color, #0d6efd);+ text-decoration: underline;++ &:hover {+ text-decoration: none;+ }+ }++ img {+ max-width: 100%;+ height: auto;+ border-radius: 4px;+ }++ hr {+ border: none;+ border-top: 1px solid var(--an-ced4da);+ margin: 1rem 0;+ }++ ::selection {+ background-color: var(--an-selection-bg, rgba(0, 123, 255, 0.2));+ }+ }++ .editor-loading {+ display: flex;+ align-items: center;+ justify-content: center;+ height: 100%;+ color: var(--an-text-secondary, #6c757d);+ }+ }+.CodeMirror {height: auto;font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',diff --git a/ui/src/components/Editor/index.tsx b/ui/src/components/Editor/index.tsxindex 45919b2c..a914d912 100644--- a/ui/src/components/Editor/index.tsx+++ b/ui/src/components/Editor/index.tsx@@ -18,11 +18,12 @@*/import {- useEffect,useRef,+ useState,ForwardRefRenderFunction,forwardRef,useImperativeHandle,+ useCallback,} from 'react';import classNames from 'classnames';@@ -47,9 +48,12 @@ import {UL,File,} from './ToolBars';-import { htmlRender, useEditor } from './utils';+import { htmlRender } from './utils';import Viewer from './Viewer';import { EditorContext } from './EditorContext';+import WysiwygEditor from './WysiwygEditor';+import MarkdownEditor from './MarkdownEditor';+import { Editor } from './types';import './index.scss';@@ -82,75 +86,106 @@ const MDEditor: ForwardRefRenderFunction<EditorRef, Props> = (},ref,) => {- const editorRef = useRef<HTMLDivElement>(null);+ const [mode, setMode] = useState<'markdown' | 'wysiwyg'>('markdown');+ const [currentEditor, setCurrentEditor] = useState<Editor | null>(null);const previewRef = useRef<{ getHtml; element } | null>(null);useRenderPlugin(previewRef.current?.element);- const editor = useEditor({- editorRef,- onChange,- onFocus,- onBlur,- placeholder: editorPlaceholder,- autoFocus,- });+ const handleModeChange = useCallback(+ (newMode: 'markdown' | 'wysiwyg') => {+ if (newMode === mode) {+ return;+ }- const getHtml = () => {- return previewRef.current?.getHtml();- };+ setMode(newMode);+ setCurrentEditor(null);+ },+ [mode, currentEditor],+ );- useImperativeHandle(ref, () => ({- getHtml,- }));+ const getHtml = useCallback(() => {+ return previewRef.current?.getHtml();+ }, []);++ useImperativeHandle(+ ref,+ () => ({+ getHtml,+ }),+ [getHtml],+ );- useEffect(() => {- if (!editor) {- return;- }- if (editor.getValue() !== value) {- editor.setValue(value || '');- }- }, [editor, value]);+ const EditorComponent = mode === 'markdown' ? MarkdownEditor : WysiwygEditor;return (<><div className={classNames('md-editor-wrap rounded', className)}>- <EditorContext.Provider value={editor}>- {editor && (- <PluginRender- type={PluginType.Editor}- className="toolbar-wrap px-3 d-flex align-items-center flex-wrap"- editor={editor}- previewElement={previewRef.current?.element}>- <Heading />- <Bold />- <Italice />- <div className="toolbar-divider" />- <Code />- <LinkItem />- <BlockQuote />- <Image editorInstance={editor} />- <File editorInstance={editor} />- <Table />- <div className="toolbar-divider" />- <OL />- <UL />- <Indent />- <Outdent />- <Hr />- <div className="toolbar-divider" />- <Help />- </PluginRender>- )}- </EditorContext.Provider>-- <div className="content-wrap">- <div- className="md-editor position-relative w-100 h-100"- ref={editorRef}- />+ <div className="toolbar-wrap px-3 d-flex align-items-center flex-wrap">+ <EditorContext.Provider value={currentEditor}>+ {currentEditor && (+ <PluginRender+ type={PluginType.Editor}+ className="d-flex align-items-center flex-wrap"+ editor={currentEditor}+ previewElement={previewRef.current?.element}>+ <Heading />+ <Bold />+ <Italice />+ <div className="toolbar-divider" />+ <Code />+ <LinkItem />+ <BlockQuote />+ <Image />+ <File />+ <Table />+ <div className="toolbar-divider" />+ <OL />+ <UL />+ <Indent />+ <Outdent />+ <Hr />+ <div className="toolbar-divider" />+ <Help />+ </PluginRender>+ )}+ </EditorContext.Provider>++ <div className="btn-group ms-auto" role="group">+ <button+ type="button"+ className={`btn btn-sm ${+ mode === 'markdown' ? 'btn-primary' : 'btn-outline-secondary'+ }`}+ title="Markdown 模式"+ onClick={() => handleModeChange('markdown')}>+ <i className="bi bi-filetype-md" />+ </button>+ <button+ type="button"+ className={`btn btn-sm ${+ mode === 'wysiwyg' ? 'btn-primary' : 'btn-outline-secondary'+ }`}+ title="WYSIWYG 模式"+ onClick={() => handleModeChange('wysiwyg')}>+ <i className="bi bi-type" />+ </button>+ </div></div>++ <EditorComponent+ value={value}+ onChange={(markdown) => {+ onChange?.(markdown);+ }}+ onFocus={onFocus}+ onBlur={onBlur}+ placeholder={editorPlaceholder}+ autoFocus={autoFocus}+ onEditorReady={(editor) => {+ setCurrentEditor(editor);+ }}+ /></div><Viewer ref={previewRef} value={value} /></>diff --git a/ui/src/components/Editor/toolItem.tsx b/ui/src/components/Editor/toolItem.tsxindex 0c4ca2f1..c0fdf175 100644--- a/ui/src/components/Editor/toolItem.tsx+++ b/ui/src/components/Editor/toolItem.tsx@@ -21,16 +21,11 @@ import { FC, useContext, useEffect } from 'react';import { Dropdown, Button } from 'react-bootstrap';import { EditorContext } from './EditorContext';-import { IEditorContext } from './types';+import { Editor } from './types';interface IProps {keyMap?: string[];- onClick?: ({- editor,- wrapText,- replaceLines,- appendBlock,- }: IEditorContext) => void;+ onClick?: (editor: Editor) => void;tip?: string;className?: string;as?: any;@@ -38,12 +33,7 @@ interface IProps {label?: string;disable?: boolean;isShow?: boolean;- onBlur?: ({- editor,- wrapText,- replaceLines,- appendBlock,- }: IEditorContext) => void;+ onBlur?: (editor: Editor) => void;}const ToolItem: FC<IProps> = (props) => {const editor = useContext(EditorContext);@@ -72,12 +62,8 @@ const ToolItem: FC<IProps> = (props) => {keyMap.forEach((key) => {editor?.addKeyMap({[key]: () => {- onClick?.({- editor,- wrapText: editor?.wrapText,- replaceLines: editor?.replaceLines,- appendBlock: editor?.appendBlock,- });+ onClick?.(editor);+ return true; // Command 类型要求返回 boolean},});});@@ -94,21 +80,15 @@ const ToolItem: FC<IProps> = (props) => {tabIndex={-1}onClick={(e) => {e.preventDefault();- onClick?.({- editor,- wrapText: editor?.wrapText,- replaceLines: editor?.replaceLines,- appendBlock: editor?.appendBlock,- });+ if (editor) {+ onClick?.(editor);+ }}}onBlur={(e) => {e.preventDefault();- onBlur?.({- editor,- wrapText: editor?.wrapText,- replaceLines: editor?.replaceLines,- appendBlock: editor?.appendBlock,- });+ if (editor) {+ onBlur?.(editor);+ }}}><i className={`bi bi-${label}`} /></Button>diff --git a/ui/src/components/Editor/types.ts b/ui/src/components/Editor/types.tsindex ce33833f..926d3c20 100644--- a/ui/src/components/Editor/types.ts+++ b/ui/src/components/Editor/types.ts@@ -24,6 +24,9 @@ export interface Position {line: number;sticky?: string | undefined;}++export type Level = 1 | 2 | 3 | 4 | 5 | 6;+export interface ExtendEditor {addKeyMap: (keyMap: Record<string, Command>) => void;on: (@@ -53,16 +56,57 @@ export interface ExtendEditor {getSelection: () => string;replaceSelection: (value: string) => void;focus: () => void;+ getCursor: () => Position;+ replaceRange: (value: string, from: Position, to: Position) => void;+ setSelection: (anchor: Position, head?: Position) => void;+ setReadOnly: (readOnly: boolean) => void;++ // 底层方法(供编辑器内部使用,不推荐工具栏直接使用)wrapText: (before: string, after?: string, defaultText?: string) => void;replaceLines: (replace: Parameters<Array<string>['map']>[0],symbolLen?: number,) => void;appendBlock: (content: string) => void;- getCursor: () => Position;- replaceRange: (value: string, from: Position, to: Position) => void;- setSelection: (anchor: Position, head?: Position) => void;- setReadOnly: (readOnly: boolean) => void;++ // 语义化高级方法(工具栏推荐使用)+ // 文本格式+ insertBold: (text?: string) => void;+ insertItalic: (text?: string) => void;+ insertCode: (text?: string) => void;+ insertStrikethrough: (text?: string) => void;++ // 块级元素+ insertHeading: (level: Level, text?: string) => void;+ insertBlockquote: (text?: string) => void;+ insertCodeBlock: (language?: string, code?: string) => void;+ insertHorizontalRule: () => void;++ // 列表+ insertOrderedList: () => void;+ insertUnorderedList: () => void;+ toggleOrderedList: () => void;+ toggleUnorderedList: () => void;++ // 链接和媒体+ insertLink: (url: string, text?: string) => void;+ insertImage: (url: string, alt?: string) => void;++ // 表格+ insertTable: (rows?: number, cols?: number) => void;++ // 缩进+ indent: () => void;+ outdent: () => void;++ // 状态查询+ isBold: () => boolean;+ isItalic: () => boolean;+ isHeading: (level?: number) => boolean;+ isBlockquote: () => boolean;+ isCodeBlock: () => boolean;+ isOrderedList: () => boolean;+ isUnorderedList: () => boolean;}export type Editor = EditorView & ExtendEditor;@@ -72,6 +116,8 @@ export interface CodeMirrorEditor extends Editor {moduleType;}+// @deprecated 已废弃,请直接使用 Editor 接口+// 保留此接口仅用于向后兼容,新代码不应使用export interface IEditorContext {editor: Editor;wrapText?;diff --git a/ui/src/components/Editor/utils/codemirror/adapter.ts b/ui/src/components/Editor/utils/codemirror/adapter.tsnew file mode 100644index 00000000..7e3f681b--- /dev/null+++ b/ui/src/components/Editor/utils/codemirror/adapter.ts@@ -0,0 +1,59 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor, ExtendEditor } from '../../types';++import { createBaseMethods } from './base';+import { createEventMethods } from './events';+import { createCommandMethods } from './commands';++/**+ * Adapts CodeMirror editor to unified editor interface+ *+ * This adapter function extends CodeMirror editor with additional methods,+ * enabling toolbar components to work properly in Markdown mode. The adapter+ * implements the complete `ExtendEditor` interface, including base methods,+ * event handling, and command methods.+ *+ * @param editor - CodeMirror editor instance+ * @returns Extended editor instance that implements the unified Editor interface+ *+ * @example+ * ```typescript+ * const cmEditor = new EditorView({ ... });+ * const adaptedEditor = createCodeMirrorAdapter(cmEditor as Editor);+ * // Now you can use the unified API+ * adaptedEditor.insertBold('text');+ * adaptedEditor.insertHeading(1, 'Title');+ * ```+ */+export function createCodeMirrorAdapter(editor: Editor): Editor {+ const baseMethods = createBaseMethods(editor);+ const eventMethods = createEventMethods(editor);+ const commandMethods = createCommandMethods(editor);++ const editorAdapter: ExtendEditor = {+ ...editor,+ ...baseMethods,+ ...eventMethods,+ ...commandMethods,+ };++ return editorAdapter as unknown as Editor;+}diff --git a/ui/src/components/Editor/utils/codemirror/base.ts b/ui/src/components/Editor/utils/codemirror/base.tsnew file mode 100644index 00000000..4a257f04--- /dev/null+++ b/ui/src/components/Editor/utils/codemirror/base.ts@@ -0,0 +1,110 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { EditorSelection, StateEffect } from '@codemirror/state';+import { keymap, KeyBinding, Command } from '@codemirror/view';++import { Editor, Position } from '../../types';++/**+ * Creates base methods module+ *+ * Provides core base methods for the editor, including:+ * - Content getter and setter (getValue, setValue)+ * - Selection operations (getSelection, replaceSelection)+ * - Cursor and selection position (getCursor, setSelection)+ * - Focus and keyboard mapping (focus, addKeyMap)+ *+ * @param editor - CodeMirror editor instance+ * @returns Object containing base methods+ */+export function createBaseMethods(editor: Editor) {+ return {+ focus: () => {+ editor.contentDOM.focus();+ },++ getCursor: () => {+ const range = editor.state.selection.ranges[0];+ const line = editor.state.doc.lineAt(range.from).number;+ const { from, to } = editor.state.doc.line(line);+ return { from, to, ch: range.from - from, line };+ },++ addKeyMap: (keyMap: Record<string, Command>) => {+ const array = Object.entries(keyMap).map(([key, value]) => {+ const keyBinding: KeyBinding = {+ key,+ preventDefault: true,+ run: value,+ };+ return keyBinding;+ });++ editor.dispatch({+ effects: StateEffect.appendConfig.of(keymap.of(array)),+ });+ },++ getSelection: () => {+ return editor.state.sliceDoc(+ editor.state.selection.main.from,+ editor.state.selection.main.to,+ );+ },++ replaceSelection: (value: string) => {+ editor.dispatch({+ changes: [+ {+ from: editor.state.selection.main.from,+ to: editor.state.selection.main.to,+ insert: value,+ },+ ],+ selection: EditorSelection.cursor(+ editor.state.selection.main.from + value.length,+ ),+ });+ },++ setSelection: (anchor: Position, head?: Position) => {+ editor.dispatch({+ selection: EditorSelection.create([+ EditorSelection.range(+ editor.state.doc.line(anchor.line).from + anchor.ch,+ head+ ? editor.state.doc.line(head.line).from + head.ch+ : editor.state.doc.line(anchor.line).from + anchor.ch,+ ),+ ]),+ });+ },++ getValue: () => {+ return editor.state.doc.toString();+ },++ setValue: (value: string) => {+ editor.dispatch({+ changes: { from: 0, to: editor.state.doc.length, insert: value },+ });+ },+ };+}diff --git a/ui/src/components/Editor/utils/codemirror/commands.ts b/ui/src/components/Editor/utils/codemirror/commands.tsnew file mode 100644index 00000000..59ab064e--- /dev/null+++ b/ui/src/components/Editor/utils/codemirror/commands.ts@@ -0,0 +1,264 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { EditorSelection } from '@codemirror/state';++import { Editor, Level } from '../../types';++/**+ * Creates command methods module+ *+ * Provides semantic command methods and low-level text manipulation methods:+ * - Semantic methods: insertBold, insertHeading, insertImage, etc. (for toolbar use)+ * - Low-level methods: wrapText, replaceLines, appendBlock (for internal use)+ * - State query methods: isBold, isHeading, etc.+ *+ * @param editor - CodeMirror editor instance+ * @returns Object containing all command methods+ */+export function createCommandMethods(editor: Editor) {+ return {+ wrapText: (before: string, after = before, defaultText) => {+ const range = editor.state.selection.ranges[0];+ const selectedText = editor.state.sliceDoc(range.from, range.to);+ const text = selectedText || defaultText || '';+ const wrappedText = before + text + after;+ const insertFrom = range.from;+ const insertTo = range.to;++ editor.dispatch({+ changes: [+ {+ from: insertFrom,+ to: insertTo,+ insert: wrappedText,+ },+ ],+ selection: selectedText+ ? EditorSelection.cursor(insertFrom + before.length + text.length)+ : EditorSelection.range(+ insertFrom + before.length,+ insertFrom + before.length + text.length,+ ),+ });+ },++ replaceLines: (replace: Parameters<Array<string>['map']>[0]) => {+ const { doc } = editor.state;+ const lines: string[] = [];+ for (let i = 1; i <= doc.lines; i += 1) {+ lines.push(doc.line(i).text);+ }++ const newLines = lines.map(replace) as string[];+ const newText = newLines.join('\n');+ editor.setValue(newText);+ },++ appendBlock: (content: string) => {+ const { doc } = editor.state;+ const currentText = doc.toString();+ const newText = currentText ? `${currentText}\n\n${content}` : content;+ editor.setValue(newText);+ },++ insertBold: (text?: string) => {+ editor.wrapText('**', '**', text || 'bold text');+ },++ insertItalic: (text?: string) => {+ editor.wrapText('*', '*', text || 'italic text');+ },++ insertCode: (text?: string) => {+ editor.wrapText('`', '`', text || 'code');+ },++ insertStrikethrough: (text?: string) => {+ editor.wrapText('~~', '~~', text || 'strikethrough text');+ },++ insertHeading: (level: Level, text?: string) => {+ const headingText = '#'.repeat(level);+ editor.wrapText(`${headingText} `, '', text || 'heading');+ },++ insertBlockquote: (text?: string) => {+ editor.wrapText('> ', '', text || 'quote');+ },++ insertCodeBlock: (language?: string, code?: string) => {+ const lang = language || '';+ const codeText = code || '';+ const block = `\`\`\`${lang}\n${codeText}\n\`\`\``;+ editor.appendBlock(block);+ },++ insertHorizontalRule: () => {+ editor.appendBlock('---');+ },++ insertOrderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ if (/^\d+\.\s/.test(lineText)) {+ return;+ }+ editor.replaceLines((lineItem) => {+ if (lineItem.trim() === '') {+ return lineItem;+ }+ return `1. ${lineItem}`;+ });+ },++ insertUnorderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ if (/^[-*+]\s/.test(lineText)) {+ return;+ }+ editor.replaceLines((lineItem) => {+ if (lineItem.trim() === '') {+ return lineItem;+ }+ return `- ${lineItem}`;+ });+ },++ toggleOrderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ if (/^\d+\.\s/.test(lineText)) {+ editor.replaceLines((lineItem) => {+ return lineItem.replace(/^\d+\.\s/, '');+ });+ } else {+ editor.insertOrderedList();+ }+ },++ toggleUnorderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ if (/^[-*+]\s/.test(lineText)) {+ editor.replaceLines((lineItem) => {+ return lineItem.replace(/^[-*+]\s/, '');+ });+ } else {+ editor.insertUnorderedList();+ }+ },++ insertLink: (url: string, text?: string) => {+ const linkText = text || url;+ editor.wrapText('[', `](${url})`, linkText);+ },++ insertImage: (url: string, alt?: string) => {+ const altText = alt || '';+ editor.wrapText('`, altText);+ },++ insertTable: (rows = 3, cols = 3) => {+ const table: string[] = [];+ for (let i = 0; i < rows; i += 1) {+ const row: string[] = [];+ for (let j = 0; j < cols; j += 1) {+ row.push(i === 0 ? 'Header' : 'Cell');+ }+ table.push(`| ${row.join(' | ')} |`);+ if (i === 0) {+ table.push(`| ${'---'.repeat(cols).split('').join(' | ')} |`);+ }+ }+ editor.appendBlock(table.join('\n'));+ },++ indent: () => {+ editor.replaceLines((line) => {+ if (line.trim() === '') {+ return line;+ }+ return ` ${line}`;+ });+ },++ outdent: () => {+ editor.replaceLines((line) => {+ if (line.trim() === '') {+ return line;+ }+ return line.replace(/^ {2}/, '');+ });+ },++ isBold: () => {+ const selection = editor.getSelection();+ return /^\*\*.*\*\*$/.test(selection) || /^__.*__$/.test(selection);+ },++ isItalic: () => {+ const selection = editor.getSelection();+ return /^\*.*\*$/.test(selection) || /^_.*_$/.test(selection);+ },++ isHeading: (level?: number) => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ if (level) {+ return new RegExp(`^#{${level}}\\s`).test(lineText);+ }+ return /^#{1,6}\s/.test(lineText);+ },++ isBlockquote: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ return /^>\s/.test(lineText);+ },++ isCodeBlock: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ return /^```/.test(lineText);+ },++ isOrderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ return /^\d+\.\s/.test(lineText);+ },++ isUnorderedList: () => {+ const cursor = editor.getCursor();+ const line = editor.state.doc.line(cursor.line);+ const lineText = line.text.trim();+ return /^[-*+]\s/.test(lineText);+ },+ };+}diff --git a/ui/src/components/Editor/utils/codemirror/events.ts b/ui/src/components/Editor/utils/codemirror/events.tsnew file mode 100644index 00000000..dea832c6--- /dev/null+++ b/ui/src/components/Editor/utils/codemirror/events.ts@@ -0,0 +1,98 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { StateEffect } from '@codemirror/state';+import { EditorView } from '@codemirror/view';++import { Editor } from '../../types';++/**+ * Creates event methods module+ *+ * Provides event listener registration and removal for the editor.+ * Handles various DOM events including focus, blur, drag, drop, and paste.+ *+ * @param editor - CodeMirror editor instance+ * @returns Object containing event methods (on, off)+ */+export function createEventMethods(editor: Editor) {+ return {+ on: (event, callback) => {+ if (event === 'change') {+ const change = EditorView.updateListener.of((update) => {+ if (update.docChanged) {+ callback();+ }+ });++ editor.dispatch({+ effects: StateEffect.appendConfig.of(change),+ });+ }+ if (event === 'focus') {+ editor.contentDOM.addEventListener('focus', callback);+ }+ if (event === 'blur') {+ editor.contentDOM.addEventListener('blur', callback);+ }++ if (event === 'dragenter') {+ editor.contentDOM.addEventListener('dragenter', callback);+ }++ if (event === 'dragover') {+ editor.contentDOM.addEventListener('dragover', callback);+ }++ if (event === 'drop') {+ editor.contentDOM.addEventListener('drop', callback);+ }++ if (event === 'paste') {+ editor.contentDOM.addEventListener('paste', callback);+ }+ },++ off: (event, callback) => {+ if (event === 'focus') {+ editor.contentDOM.removeEventListener('focus', callback);+ }++ if (event === 'blur') {+ editor.contentDOM.removeEventListener('blur', callback);+ }++ if (event === 'dragenter') {+ editor.contentDOM.removeEventListener('dragenter', callback);+ }++ if (event === 'dragover') {+ editor.contentDOM.removeEventListener('dragover', callback);+ }++ if (event === 'drop') {+ editor.contentDOM.removeEventListener('drop', callback);+ }++ if (event === 'paste') {+ editor.contentDOM.removeEventListener('paste', callback);+ }+ },+ };+}diff --git a/ui/src/components/Editor/utils/extension.ts b/ui/src/components/Editor/utils/extension.tsdeleted file mode 100644index 4118fed4..00000000--- a/ui/src/components/Editor/utils/extension.ts+++ /dev/null@@ -1,255 +0,0 @@-/*- * Licensed to the Apache Software Foundation (ASF) under one- * or more contributor license agreements. See the NOTICE file- * distributed with this work for additional information- * regarding copyright ownership. The ASF licenses this file- * to you under the Apache License, Version 2.0 (the- * "License"); you may not use this file except in compliance- * with the License. You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing,- * software distributed under the License is distributed on an- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY- * KIND, either express or implied. See the License for the- * specific language governing permissions and limitations- * under the License.- */--import { EditorSelection, StateEffect } from '@codemirror/state';-import { EditorView, keymap, KeyBinding } from '@codemirror/view';--import { Editor, Position } from '../types';--const createEditorUtils = (editor: Editor) => {- editor.focus = () => {- editor.contentDOM.focus();- };-- editor.getCursor = () => {- const range = editor.state.selection.ranges[0];- const line = editor.state.doc.lineAt(range.from).number;- const { from, to } = editor.state.doc.line(line);- return { from, to, ch: range.from - from, line };- };-- editor.addKeyMap = (keyMap) => {- const array = Object.entries(keyMap).map(([key, value]) => {- const keyBinding: KeyBinding = {- key,- preventDefault: true,- run: value,- };- return keyBinding;- });-- editor.dispatch({- effects: StateEffect.appendConfig.of(keymap.of(array)),- });- };-- editor.getSelection = () => {- return editor.state.sliceDoc(- editor.state.selection.main.from,- editor.state.selection.main.to,- );- };-- editor.replaceSelection = (value: string) => {- editor.dispatch({- changes: [- {- from: editor.state.selection.main.from,- to: editor.state.selection.main.to,- insert: value,- },- ],- selection: EditorSelection.cursor(- editor.state.selection.main.from + value.length,- ),- });- };-- editor.setSelection = (anchor: Position, head?: Position) => {- editor.dispatch({- selection: EditorSelection.create([- EditorSelection.range(- editor.state.doc.line(anchor.line).from + anchor.ch,- head- ? editor.state.doc.line(head.line).from + head.ch- : editor.state.doc.line(anchor.line).from + anchor.ch,- ),- ]),- });- };-- editor.on = (event, callback) => {- if (event === 'change') {- const change = EditorView.updateListener.of((update) => {- if (update.docChanged) {- callback();- }- });-- editor.dispatch({- effects: StateEffect.appendConfig.of(change),- });- }- if (event === 'focus') {- editor.contentDOM.addEventListener('focus', callback);- }- if (event === 'blur') {- editor.contentDOM.addEventListener('blur', callback);- }-- if (event === 'dragenter') {- editor.contentDOM.addEventListener('dragenter', callback);- }-- if (event === 'dragover') {- editor.contentDOM.addEventListener('dragover', callback);- }-- if (event === 'drop') {- editor.contentDOM.addEventListener('drop', callback);- }-- if (event === 'paste') {- editor.contentDOM.addEventListener('paste', callback);- }- };-- editor.off = (event, callback) => {- if (event === 'focus') {- editor.contentDOM.removeEventListener('focus', callback);- }-- if (event === 'blur') {- editor.contentDOM.removeEventListener('blur', callback);- }-- if (event === 'dragenter') {- editor.contentDOM.removeEventListener('dragenter', callback);- }-- if (event === 'dragover') {- editor.contentDOM.removeEventListener('dragover', callback);- }-- if (event === 'drop') {- editor.contentDOM.removeEventListener('drop', callback);- }-- if (event === 'paste') {- editor.contentDOM.removeEventListener('paste', callback);- }- };-- editor.getValue = () => {- return editor.state.doc.toString();- };-- editor.setValue = (value: string) => {- editor.dispatch({- changes: { from: 0, to: editor.state.doc.length, insert: value },- });- };-- editor.wrapText = (before: string, after = before, defaultText) => {- const range = editor.state.selection.ranges[0];- const selection = editor.state.sliceDoc(range.from, range.to);- const text = `${before}${selection || defaultText}${after}`;-- editor.dispatch({- changes: [- {- from: range.from,- to: range.to,- insert: text,- },- ],- selection: EditorSelection.range(- range.from + before.length,- range.to + before.length,- ),- });- };-- editor.replaceLines = (- replace: Parameters<Array<string>['map']>[0],- symbolLen = 0,- ) => {- const range = editor.state.selection.ranges[0];- const line = editor.state.doc.lineAt(range.from).number;- const { from, to } = editor.state.doc.line(line);- const lines = editor.state.sliceDoc(from, to).split('\n');-- const insert = lines.map(replace).join('\n');- const selectionStart = from;- const selectionEnd = from + insert.length;-- editor.dispatch({- changes: [- {- from,- to,- insert,- },- ],- selection: EditorSelection.create([- EditorSelection.range(selectionStart + symbolLen, selectionEnd),- ]),- });- };-- editor.appendBlock = (content: string) => {- const range = editor.state.selection.ranges[0];- const line = editor.state.doc.lineAt(range.from).number;- const { from, to } = editor.state.doc.line(line);-- let insert = `\n\n${content}`;-- let selection = EditorSelection.single(to, to + content.length);- if (from === to) {- insert = `${content}\n`;- selection = EditorSelection.create([- EditorSelection.cursor(to + content.length),- ]);- }-- editor.dispatch({- changes: [- {- from: to,- insert,- },- ],- selection,- });- };-- editor.replaceRange = (- value: string,- selectionStart: Position,- selectionEnd: Position,- ) => {- const from =- editor.state.doc.line(selectionStart.line).from + selectionStart.ch;- const to = editor.state.doc.line(selectionEnd.line).from + selectionEnd.ch;- editor.dispatch({- changes: [- {- from,- to,- insert: value,- },- ],- selection: EditorSelection.cursor(from + value.length),- });- };-- return editor;-};--export default createEditorUtils;diff --git a/ui/src/components/Editor/utils/index.ts b/ui/src/components/Editor/utils/index.tsindex 61e95fbb..938b3761 100644--- a/ui/src/components/Editor/utils/index.ts+++ b/ui/src/components/Editor/utils/index.ts@@ -30,7 +30,7 @@ import Tooltip from 'bootstrap/js/dist/tooltip';import { Editor } from '../types';import { isDarkTheme } from '@/utils/common';-import createEditorUtils from './extension';+import { createCodeMirrorAdapter } from './codemirror/adapter';const editableCompartment = new Compartment();interface htmlRenderConfig {@@ -190,7 +190,7 @@ export const useEditor = ({state: startState,});- const cm = createEditorUtils(view as Editor);+ const cm = createCodeMirrorAdapter(view as Editor);cm.setReadOnly = (readOnly: boolean) => {cm.dispatch({diff --git a/ui/src/components/Editor/utils/tiptap/adapter.ts b/ui/src/components/Editor/utils/tiptap/adapter.tsnew file mode 100644index 00000000..862cbf6c--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/adapter.ts@@ -0,0 +1,59 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor as TipTapEditor } from '@tiptap/react';++import { Editor, ExtendEditor } from '../../types';++import { createBaseMethods } from './base';+import { createEventMethods } from './events';+import { createCommandMethods } from './commands';++/**+ * Adapts TipTap editor to CodeMirror editor interface+ *+ * This adapter function converts TipTap editor's API to a CodeMirror-compatible interface,+ * enabling toolbar components to work properly in WYSIWYG mode. The adapter implements+ * the complete `ExtendEditor` interface, including base methods, event handling, and command methods.+ *+ * @param editor - TipTap editor instance+ * @returns Adapted editor instance that implements the unified Editor interface+ *+ * @example+ * ```typescript+ * const tipTapEditor = useEditor({ ... });+ * const adaptedEditor = createTipTapAdapter(tipTapEditor);+ * // Now you can use the unified API+ * adaptedEditor.insertBold('text');+ * adaptedEditor.insertHeading(1, 'Title');+ * ```+ */+export function createTipTapAdapter(editor: TipTapEditor): Editor {+ const baseMethods = createBaseMethods(editor);+ const eventMethods = createEventMethods(editor);+ const commandMethods = createCommandMethods(editor);++ const editorAdapter: ExtendEditor = {+ ...baseMethods,+ ...eventMethods,+ ...commandMethods,+ };++ return editorAdapter as unknown as Editor;+}diff --git a/ui/src/components/Editor/utils/tiptap/base.ts b/ui/src/components/Editor/utils/tiptap/base.tsnew file mode 100644index 00000000..e088a9f5--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/base.ts@@ -0,0 +1,358 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor as TipTapEditor } from '@tiptap/react';++import { Position } from '../../types';++import {+ safeExecuteCommand,+ EditorErrorType,+ handleEditorError,+} from './errorHandler';+import {+ convertTipTapPositionToCodeMirror,+ convertCodeMirrorPositionToTipTap,+} from './position';+import { MARKDOWN_PATTERNS } from './constants';++/**+ * Creates base methods module+ *+ * Provides core base methods for the editor, including:+ * - Content getter and setter (getValue, setValue)+ * - Selection operations (getSelection, replaceSelection)+ * - Cursor and selection position (getCursor, setSelection)+ * - Read-only state control (setReadOnly)+ *+ * @param editor - TipTap editor instance+ * @returns Object containing base methods+ */+export function createBaseMethods(editor: TipTapEditor) {+ return {+ getValue: () => {+ return (+ safeExecuteCommand(+ () => editor.getMarkdown(),+ () => '',+ EditorErrorType.COMMAND_EXECUTION_FAILED,+ { function: 'getValue' },+ ) || ''+ );+ },++ setValue: (value: string) => {+ safeExecuteCommand(+ () => {+ editor.commands.setContent(value, { contentType: 'markdown' });+ },+ undefined,+ EditorErrorType.COMMAND_EXECUTION_FAILED,+ { function: 'setValue', valueLength: value.length },+ );+ },++ getSelection: () => {+ const { from, to } = editor.state.selection;+ return editor.state.doc.textBetween(from, to);+ },++ replaceSelection: (value: string) => {+ const inlineCodeMatch = value.match(MARKDOWN_PATTERNS.INLINE_CODE);+ if (inlineCodeMatch && value.length > 2) {+ const codeText = inlineCodeMatch[1];+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'text',+ text: codeText,+ marks: [{ type: 'code' }],+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ const codeBlockMatch = value.match(MARKDOWN_PATTERNS.CODE_BLOCK);+ if (codeBlockMatch) {+ const [, , lang, codeText] = codeBlockMatch;+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'codeBlock',+ attrs: lang ? { language: lang } : {},+ content: [+ {+ type: 'text',+ text: codeText,+ },+ ],+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ const imageMatch = value.match(MARKDOWN_PATTERNS.IMAGE);+ if (imageMatch) {+ const [, alt, url] = imageMatch;+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'image',+ attrs: {+ src: url,+ alt: alt || '',+ },+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ const linkMatch = value.match(MARKDOWN_PATTERNS.LINK);+ if (linkMatch) {+ const [, text, url] = linkMatch;+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'text',+ text: text || url,+ marks: [+ {+ type: 'link',+ attrs: {+ href: url,+ },+ },+ ],+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ const autoLinkMatch = value.match(MARKDOWN_PATTERNS.AUTO_LINK);+ if (autoLinkMatch && value.length > 2) {+ const url = autoLinkMatch[1];+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'text',+ text: url,+ marks: [+ {+ type: 'link',+ attrs: {+ href: url,+ },+ },+ ],+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ if (MARKDOWN_PATTERNS.HORIZONTAL_RULE.test(value.trim())) {+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'horizontalRule',+ });+ },+ () => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ },+ );+ return;+ }++ safeExecuteCommand(() => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ });+ },++ focus: () => {+ editor.commands.focus();+ },++ getCursor: () => {+ try {+ const { from } = editor.state.selection;+ return convertTipTapPositionToCodeMirror(editor, from);+ } catch (error) {+ handleEditorError(+ error as Error,+ EditorErrorType.POSITION_CONVERSION_FAILED,+ {+ function: 'getCursor',+ },+ );+ return { line: 0, ch: 0 };+ }+ },++ setSelection: (anchor?: unknown, head?: unknown) => {+ try {+ if (+ anchor &&+ typeof anchor === 'object' &&+ 'line' in anchor &&+ 'ch' in anchor+ ) {+ const anchorPos = convertCodeMirrorPositionToTipTap(+ editor,+ anchor as Position,+ );+ let headPos = anchorPos;++ if (+ head &&+ typeof head === 'object' &&+ 'line' in head &&+ 'ch' in head+ ) {+ headPos = convertCodeMirrorPositionToTipTap(+ editor,+ head as Position,+ );+ }++ safeExecuteCommand(+ () => {+ editor.commands.setTextSelection({+ from: anchorPos,+ to: headPos,+ });+ },+ undefined,+ EditorErrorType.COMMAND_EXECUTION_FAILED,+ { function: 'setSelection', anchorPos, headPos },+ );+ } else {+ editor.commands.focus();+ }+ } catch (error) {+ handleEditorError(+ error as Error,+ EditorErrorType.COMMAND_EXECUTION_FAILED,+ {+ function: 'setSelection',+ anchor,+ head,+ },+ );+ safeExecuteCommand(+ () => {+ editor.commands.focus();+ },+ undefined,+ EditorErrorType.COMMAND_EXECUTION_FAILED,+ { function: 'setSelection', isFallback: true },+ );+ }+ },++ setReadOnly: (readOnly: boolean) => {+ editor.setEditable(!readOnly);+ },++ replaceRange: (value: string, from?: unknown, to?: unknown) => {+ if (from && to && typeof from === 'object' && typeof to === 'object') {+ const { from: currentFrom, to: currentTo } = editor.state.selection;+ const imageMatch = value.match(MARKDOWN_PATTERNS.IMAGE);+ if (imageMatch) {+ const [, alt, url] = imageMatch;+ safeExecuteCommand(+ () => {+ editor.commands.insertContentAt(+ { from: currentFrom, to: currentTo },+ {+ type: 'image',+ attrs: {+ src: url,+ alt: alt || '',+ },+ },+ );+ },+ () => {+ editor.commands.insertContentAt(+ { from: currentFrom, to: currentTo },+ value,+ { contentType: 'markdown' },+ );+ },+ );+ return;+ }++ safeExecuteCommand(() => {+ editor.commands.insertContentAt(+ { from: currentFrom, to: currentTo },+ value,+ { contentType: 'markdown' },+ );+ });+ } else {+ const imageMatch = value.match(MARKDOWN_PATTERNS.IMAGE);+ if (imageMatch) {+ const [, alt, url] = imageMatch;+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'image',+ attrs: {+ src: url,+ alt: alt || '',+ },+ });+ },+ () => {+ editor.commands.insertContent(value, {+ contentType: 'markdown',+ });+ },+ );+ return;+ }++ safeExecuteCommand(() => {+ editor.commands.insertContent(value, { contentType: 'markdown' });+ });+ }+ },+ };+}diff --git a/ui/src/components/Editor/utils/tiptap/commands.ts b/ui/src/components/Editor/utils/tiptap/commands.tsnew file mode 100644index 00000000..ee32a4a3--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/commands.ts@@ -0,0 +1,718 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor as TipTapEditor } from '@tiptap/react';+import { Command } from '@codemirror/view';++import { Level } from '../../types';++import { safeExecuteCommand, logWarning } from './errorHandler';+import { MARKDOWN_PATTERNS } from './constants';++/**+ * Creates command methods module+ *+ * Provides command methods for the editor, including:+ * - Low-level methods: wrapText, replaceLines, appendBlock (for internal editor use)+ * - Semantic methods: insertBold, insertHeading, insertImage, etc. (for toolbar use)+ * - State query methods: isBold, isHeading, etc.+ *+ * @param editor - TipTap editor instance+ * @returns Object containing all command methods+ */+export function createCommandMethods(editor: TipTapEditor) {+ return {+ wrapText: (before: string, after?: string, defaultText?: string) => {+ const { from, to } = editor.state.selection;+ const actualAfter = after || before;++ if (before === '**' && actualAfter === '**') {+ if (from === to) {+ if (defaultText) {+ const insertPos = from;+ editor.commands.insertContent(defaultText);+ editor.commands.setTextSelection({+ from: insertPos,+ to: insertPos + defaultText.length,+ });+ editor.commands.toggleBold();+ } else {+ editor.commands.toggleBold();+ }+ } else {+ editor.commands.toggleBold();+ }+ return;+ }++ if (before === '*' && actualAfter === '*') {+ if (from === to) {+ if (defaultText) {+ const insertPos = from;+ editor.commands.insertContent(defaultText);+ editor.commands.setTextSelection({+ from: insertPos,+ to: insertPos + defaultText.length,+ });+ editor.commands.toggleItalic();+ } else {+ editor.commands.toggleItalic();+ }+ } else {+ editor.commands.toggleItalic();+ }+ return;+ }++ if (before === '`' && actualAfter === '`') {+ if (from === to) {+ if (defaultText) {+ const insertPos = from;+ editor.commands.insertContent(defaultText);+ editor.commands.setTextSelection({+ from: insertPos,+ to: insertPos + defaultText.length,+ });+ editor.commands.toggleCode();+ } else {+ editor.commands.toggleCode();+ }+ } else {+ editor.commands.toggleCode();+ }+ return;+ }++ if (before === '```\n' && actualAfter === '\n```') {+ if (from === to) {+ const codeBlockText = defaultText+ ? `\`\`\`\n${defaultText}\n\`\`\``+ : '```\n\n```';+ safeExecuteCommand(+ () => {+ editor.commands.insertContent(codeBlockText, {+ contentType: 'markdown',+ });+ },+ () => {+ editor.commands.insertContent({+ type: 'codeBlock',+ content: defaultText+ ? [+ {+ type: 'text',+ text: defaultText,+ },+ ]+ : [],+ });+ },+ );+ } else {+ const selectedText = editor.state.doc.textBetween(from, to);+ safeExecuteCommand(+ () => {+ editor.commands.insertContentAt(+ { from, to },+ {+ type: 'codeBlock',+ content: [+ {+ type: 'text',+ text: selectedText,+ },+ ],+ },+ );+ },+ () => {+ const codeBlockText = `\`\`\`\n${selectedText}\n\`\`\``;+ editor.commands.insertContentAt({ from, to }, codeBlockText, {+ contentType: 'markdown',+ });+ },+ );+ }+ return;+ }++ if (from === to) {+ const text = before + (defaultText || '') + actualAfter;+ editor.commands.insertContent(text, { contentType: 'markdown' });+ } else {+ const selectedText = editor.state.doc.textBetween(from, to);+ const wrappedText = before + selectedText + actualAfter;+ editor.commands.insertContentAt({ from, to }, wrappedText, {+ contentType: 'markdown',+ });+ }+ },++ replaceLines: (replace: Parameters<Array<string>['map']>[0]) => {+ const { from } = editor.state.selection;+ const $pos = editor.state.doc.resolve(from);+ const block = $pos.parent;+ const lineText = block.textContent;+ const newText = replace(lineText, 0, [lineText]) as string;++ const finalText = newText || ' ';+ const headingMatch = finalText.match(MARKDOWN_PATTERNS.HEADING);+ if (headingMatch) {+ const [, hashes, text] = headingMatch;+ const level = hashes.length;+ const start = $pos.start($pos.depth);+ const end = $pos.end($pos.depth);++ if (start < 0 || end < 0 || start > end) {+ logWarning('Invalid position range for heading', { start, end });+ return;+ }++ const headingText = text.trim() || 'Heading';+ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'heading',+ attrs: { level },+ content: [+ {+ type: 'text',+ text: headingText,+ },+ ],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'heading',+ attrs: { level },+ content: [+ {+ type: 'text',+ text: headingText,+ },+ ],+ },+ );+ }+ },+ () => {+ const markdownText = finalText.trim() || `# Heading`;+ if (start === end) {+ editor.commands.insertContent(markdownText, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ markdownText,+ { contentType: 'markdown' },+ );+ }+ },+ );+ return;+ }++ if (finalText.startsWith('> ')) {+ const quoteText = finalText.slice(2).trim();+ const start = $pos.start($pos.depth);+ const end = $pos.end($pos.depth);++ if (start < 0 || end < 0 || start > end) {+ logWarning('Invalid position range for heading', { start, end });+ return;+ }++ const quoteMarkdown = quoteText ? `> ${quoteText}` : '> ';+ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(quoteMarkdown, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ quoteMarkdown,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: quoteText ? [{ type: 'text', text: quoteText }] : [],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: quoteText ? [{ type: 'text', text: quoteText }] : [],+ },+ );+ }+ },+ );+ return;+ }++ const olMatchOriginal = lineText.match(+ MARKDOWN_PATTERNS.ORDERED_LIST_ORIGINAL,+ );+ const olMatchNew = finalText.match(MARKDOWN_PATTERNS.ORDERED_LIST_NEW);++ if (olMatchOriginal || olMatchNew) {+ const isInOrderedList = editor.isActive('orderedList');+ const start = $pos.start($pos.depth);+ const end = $pos.end($pos.depth);++ if (start < 0 || end < 0 || start > end) {+ logWarning('Invalid position range for ordered list', {+ start,+ end,+ });+ return;+ }++ if (olMatchOriginal && !olMatchNew) {+ const textContent = finalText.trim();+ const contentToInsert = textContent || 'Paragraph';++ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(contentToInsert, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ contentToInsert,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ },+ );+ }+ },+ );+ if (isInOrderedList) {+ safeExecuteCommand(() => {+ editor.chain().focus().toggleOrderedList().run();+ });+ }+ } else if (!olMatchOriginal && olMatchNew) {+ const [, , text] = olMatchNew;+ const textContent = text.trim();+ const contentToInsert = textContent || 'List item';++ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(contentToInsert, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ contentToInsert,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ },+ );+ }+ },+ );+ if (!isInOrderedList) {+ safeExecuteCommand(() => {+ editor.chain().focus().toggleOrderedList().run();+ });+ }+ }+ return;+ }+ const ulMatchOriginal = lineText.match(+ MARKDOWN_PATTERNS.UNORDERED_LIST_ORIGINAL,+ );+ const ulMatchNew = finalText.match(MARKDOWN_PATTERNS.UNORDERED_LIST_NEW);++ if (ulMatchOriginal || ulMatchNew) {+ const isInBulletList = editor.isActive('bulletList');+ const start = $pos.start($pos.depth);+ const end = $pos.end($pos.depth);++ if (start < 0 || end < 0 || start > end) {+ logWarning('Invalid position range for unordered list', {+ start,+ end,+ });+ return;+ }++ if (ulMatchOriginal && !ulMatchNew) {+ const textContent = finalText.trim();+ const contentToInsert = textContent || 'Paragraph';++ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(contentToInsert, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ contentToInsert,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ },+ );+ }+ },+ );+ if (isInBulletList) {+ safeExecuteCommand(() => {+ editor.chain().focus().toggleBulletList().run();+ });+ }+ } else if (!ulMatchOriginal && ulMatchNew) {+ const [, text] = ulMatchNew;+ const textContent = text.trim();+ const contentToInsert = textContent || 'List item';++ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(contentToInsert, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ contentToInsert,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ },+ );+ }+ },+ );+ if (!isInBulletList) {+ safeExecuteCommand(() => {+ editor.chain().focus().toggleBulletList().run();+ });+ }+ }+ return;+ }++ const start = $pos.start($pos.depth);+ const end = $pos.end($pos.depth);++ if (start < 0 || end < 0 || start > end) {+ logWarning('Invalid position range', {+ start,+ end,+ function: 'replaceLines',+ });+ return;+ }++ const contentToInsert = finalText.trim() || ' ';++ safeExecuteCommand(+ () => {+ if (start === end) {+ editor.commands.insertContent(contentToInsert, {+ contentType: 'markdown',+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ contentToInsert,+ { contentType: 'markdown' },+ );+ }+ },+ () => {+ if (start === end) {+ editor.commands.insertContent({+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ });+ } else {+ editor.commands.insertContentAt(+ { from: start, to: end },+ {+ type: 'paragraph',+ content: [{ type: 'text', text: contentToInsert }],+ },+ );+ }+ },+ );+ },++ appendBlock: (content: string) => {+ if (MARKDOWN_PATTERNS.HORIZONTAL_RULE.test(content.trim())) {+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'horizontalRule',+ });+ },+ () => {+ editor.commands.insertContent(content, {+ contentType: 'markdown',+ });+ },+ );+ return;+ }++ safeExecuteCommand(() => {+ editor.commands.insertContent(`\n\n${content}`, {+ contentType: 'markdown',+ });+ });+ },++ addKeyMap: (keyMap: Record<string, Command>) => {+ Object.keys(keyMap).forEach(() => {});+ },+ insertBold: (text?: string) => {+ if (text) {+ const { from } = editor.state.selection;+ editor.commands.insertContent(text);+ editor.commands.setTextSelection({ from, to: from + text.length });+ }+ editor.commands.toggleBold();+ },++ insertItalic: (text?: string) => {+ if (text) {+ const { from } = editor.state.selection;+ editor.commands.insertContent(text);+ editor.commands.setTextSelection({ from, to: from + text.length });+ }+ editor.commands.toggleItalic();+ },++ insertCode: (text?: string) => {+ if (text) {+ const { from } = editor.state.selection;+ editor.commands.insertContent(text);+ editor.commands.setTextSelection({ from, to: from + text.length });+ }+ editor.commands.toggleCode();+ },++ insertStrikethrough: (text?: string) => {+ if (text) {+ const { from } = editor.state.selection;+ editor.commands.insertContent(text);+ editor.commands.setTextSelection({ from, to: from + text.length });+ }+ editor.commands.toggleStrike();+ },++ insertHeading: (level: Level, text?: string) => {+ if (text) {+ // Insert heading using TipTap's native API to ensure proper structure+ safeExecuteCommand(+ () => {+ editor.commands.insertContent({+ type: 'heading',+ attrs: { level },+ content: [+ {+ type: 'text',+ text,+ },+ ],+ });+ // Select only the text part (excluding the heading node structure)+ // After insertion, the cursor is at the end of the heading+ // We need to select backwards from the current position+ const { to } = editor.state.selection;+ editor.commands.setTextSelection({+ from: to - text.length,+ to,+ });+ },+ () => {+ // Fallback: use markdown format+ const headingText = `${'#'.repeat(level)} ${text}`;+ editor.commands.insertContent(headingText, {+ contentType: 'markdown',+ });+ },+ );+ } else {+ editor.commands.toggleHeading({ level });+ }+ },++ insertBlockquote: (text?: string) => {+ if (text) {+ const { from } = editor.state.selection;+ const blockquoteText = `> ${text}`;+ editor.commands.insertContent(blockquoteText, {+ contentType: 'markdown',+ });+ // Select the text part (excluding the '> ' marker)+ const textStart = from + 2; // 2 for '> '+ editor.commands.setTextSelection({+ from: textStart,+ to: textStart + text.length,+ });+ } else {+ editor.commands.toggleBlockquote();+ }+ },++ insertCodeBlock: (language?: string, code?: string) => {+ const lang = language || '';+ const codeText = code || 'code here';+ editor.commands.insertContent(`\`\`\`${lang}\n${codeText}\n\`\`\``, {+ contentType: 'markdown',+ });+ },++ insertHorizontalRule: () => {+ editor.commands.setHorizontalRule();+ },++ insertOrderedList: () => {+ editor.commands.toggleOrderedList();+ },++ insertUnorderedList: () => {+ editor.commands.toggleBulletList();+ },++ toggleOrderedList: () => {+ editor.commands.toggleOrderedList();+ },++ toggleUnorderedList: () => {+ editor.commands.toggleBulletList();+ },++ insertLink: (url: string, text?: string) => {+ const linkText = text || url;+ editor.commands.insertContent(`[${linkText}](${url})`, {+ contentType: 'markdown',+ });+ },++ insertImage: (url: string, alt?: string) => {+ editor.commands.setImage({ src: url, alt: alt || 'image' });+ },++ insertTable: (rows = 3, cols = 3) => {+ editor.commands.insertTable({+ rows,+ cols,+ withHeaderRow: true,+ });+ },++ indent: () => {+ editor.commands.sinkListItem('listItem');+ },++ outdent: () => {+ editor.commands.liftListItem('listItem');+ },++ isBold: () => editor.isActive('bold'),+ isItalic: () => editor.isActive('italic'),+ isHeading: (level?: number) => {+ if (level) {+ return editor.isActive('heading', { level });+ }+ return editor.isActive('heading');+ },+ isBlockquote: () => editor.isActive('blockquote'),+ isCodeBlock: () => editor.isActive('codeBlock'),+ isOrderedList: () => editor.isActive('orderedList'),+ isUnorderedList: () => editor.isActive('bulletList'),+ };+}diff --git a/ui/src/components/Editor/utils/tiptap/constants.ts b/ui/src/components/Editor/utils/tiptap/constants.tsnew file mode 100644index 00000000..a4ff7de4--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/constants.ts@@ -0,0 +1,48 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++/**+ * Markdown pattern matching regular expression constants+ *+ * Defines regular expression patterns for parsing and matching Markdown syntax.+ * These patterns are used to convert Markdown syntax to TipTap nodes, or from TipTap nodes+ * to Markdown format.+ *+ * @example+ * ```typescript+ * const headingMatch = text.match(MARKDOWN_PATTERNS.HEADING);+ * if (headingMatch) {+ * const level = headingMatch[1].length; // Number of #+ * const text = headingMatch[2]; // Heading text+ * }+ * ```+ */+export const MARKDOWN_PATTERNS = {+ HEADING: /^(#{1,6})\s+(.+)$/,+ ORDERED_LIST_ORIGINAL: /^(\s{0,})(\d+)\.\s/,+ ORDERED_LIST_NEW: /^(\d+)\.\s*(.*)$/,+ UNORDERED_LIST_ORIGINAL: /^(\s{0,})(-|\*)\s/,+ UNORDERED_LIST_NEW: /^[-*]\s*(.*)$/,+ INLINE_CODE: /^`(.+?)`$/,+ CODE_BLOCK: /^(\n)?```(\w+)?\n([\s\S]*?)\n```(\n)?$/,+ IMAGE: /^!\[([^\]]*)\]\(([^)]+)\)$/,+ LINK: /^\[([^\]]*)\]\(([^)]+)\)$/,+ AUTO_LINK: /^<(.+?)>$/,+ HORIZONTAL_RULE: /^-{3,}$/,+} as const;diff --git a/ui/src/components/Editor/utils/tiptap/errorHandler.ts b/ui/src/components/Editor/utils/tiptap/errorHandler.tsnew file mode 100644index 00000000..c8f4e7a3--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/errorHandler.ts@@ -0,0 +1,155 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++/**+ * Editor error type enumeration+ *+ * Defines various error types that may occur in the editor, used for error classification and handling.+ */+export enum EditorErrorType {+ COMMAND_EXECUTION_FAILED = 'COMMAND_EXECUTION_FAILED',+ POSITION_CONVERSION_FAILED = 'POSITION_CONVERSION_FAILED',+ CONTENT_PARSING_FAILED = 'CONTENT_PARSING_FAILED',+ EVENT_LISTENER_FAILED = 'EVENT_LISTENER_FAILED',+}++/**+ * Editor error interface+ */+export interface EditorError {+ type: EditorErrorType;+ message: string;+ originalError?: Error;+ context?: Record<string, unknown>;+ timestamp: number;+}++/**+ * Handles editor errors with unified log format+ *+ * Unified error handling for the editor, recording error information, context, and stack traces+ * for easier problem identification and debugging.+ *+ * @param error - Original error object+ * @param type - Error type+ * @param context - Optional context information (function name, parameters, etc.)+ * @returns Processed error object+ *+ * @example+ * ```typescript+ * try {+ * editor.commands.insertContent(content);+ * } catch (error) {+ * handleEditorError(error, EditorErrorType.COMMAND_EXECUTION_FAILED, {+ * function: 'insertContent',+ * content: content.substring(0, 50),+ * });+ * }+ * ```+ */+export function handleEditorError(+ error: Error,+ type: EditorErrorType,+ context?: Record<string, unknown>,+): EditorError {+ const editorError: EditorError = {+ type,+ message: error.message,+ originalError: error,+ context,+ timestamp: Date.now(),+ };++ console.error(`[Editor Error] ${type}:`, {+ message: editorError.message,+ context: editorError.context,+ stack: error.stack,+ });++ return editorError;+}++/**+ * Safely executes TipTap command with error handling and fallback strategy+ *+ * Automatically catches errors when executing TipTap commands. If a fallback function is provided,+ * it attempts to execute the fallback operation when the main command fails. All errors are uniformly recorded.+ *+ * @param command - Main command function to execute+ * @param fallback - Optional fallback function to execute when main command fails+ * @param errorType - Error type, defaults to COMMAND_EXECUTION_FAILED+ * @param context - Optional context information+ * @returns Command execution result, returns undefined if failed and no fallback+ *+ * @example+ * ```typescript+ * const result = safeExecuteCommand(+ * () => editor.commands.insertContent(content),+ * () => editor.commands.insertContent(content, { contentType: 'markdown' }),+ * EditorErrorType.COMMAND_EXECUTION_FAILED,+ * { function: 'insertContent', contentLength: content.length }+ * );+ * ```+ */+export function safeExecuteCommand<T>(+ command: () => T,+ fallback?: () => T,+ errorType: EditorErrorType = EditorErrorType.COMMAND_EXECUTION_FAILED,+ context?: Record<string, unknown>,+): T | undefined {+ try {+ return command();+ } catch (error) {+ handleEditorError(error as Error, errorType, context);+ if (fallback) {+ try {+ return fallback();+ } catch (fallbackError) {+ handleEditorError(fallbackError as Error, errorType, {+ ...context,+ isFallback: true,+ });+ }+ }+ return undefined;+ }+}++/**+ * Logs warning information (for non-fatal errors)+ *+ * Records non-fatal warning information to alert potential issues without affecting functionality.+ *+ * @param message - Warning message+ * @param context - Optional context information+ *+ * @example+ * ```typescript+ * if (start < 0 || end < 0) {+ * logWarning('Invalid position range', { start, end, function: 'setSelection' });+ * return;+ * }+ * ```+ */+export function logWarning(+ message: string,+ context?: Record<string, unknown>,+): void {+ console.warn(`[Editor Warning] ${message}`, context || {});+}diff --git a/ui/src/components/Editor/utils/tiptap/events.ts b/ui/src/components/Editor/utils/tiptap/events.tsnew file mode 100644index 00000000..495ee6e5--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/events.ts@@ -0,0 +1,98 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor as TipTapEditor } from '@tiptap/react';++import { logWarning } from './errorHandler';++/**+ * Checks if editor view is available+ */+function isViewAvailable(editor: TipTapEditor): boolean {+ return !!(editor.view && editor.view.dom);+}++/**+ * Creates event handling methods module+ *+ * Provides event handling methods for the editor, including:+ * - on: Register event listeners (change, focus, blur, dragenter, dragover, drop, paste)+ * - off: Remove event listeners+ *+ * Note: For DOM events (dragenter, dragover, drop, paste),+ * the editor view must be mounted before binding events.+ *+ * @param editor - TipTap editor instance+ * @returns Object containing event handling methods+ */+export function createEventMethods(editor: TipTapEditor) {+ return {+ on: (event: string, callback: (e?: unknown) => void) => {+ if (event === 'change') {+ editor.on('update', callback);+ } else if (event === 'focus') {+ editor.on('focus', callback);+ } else if (event === 'blur') {+ editor.on('blur', callback);+ } else if (+ event === 'dragenter' ||+ event === 'dragover' ||+ event === 'drop' ||+ event === 'paste'+ ) {+ if (!isViewAvailable(editor)) {+ logWarning(+ 'TipTap editor view is not available yet. Event listener not attached.',+ {+ event,+ },+ );+ return;+ }+ editor.view.dom.addEventListener(event, callback as EventListener);+ }+ },++ off: (event: string, callback: (e?: unknown) => void) => {+ if (+ (event === 'dragenter' ||+ event === 'dragover' ||+ event === 'drop' ||+ event === 'paste') &&+ !isViewAvailable(editor)+ ) {+ return;+ }+ if (event === 'change') {+ editor.off('update', callback);+ } else if (event === 'focus') {+ editor.off('focus', callback);+ } else if (event === 'blur') {+ editor.off('blur', callback);+ } else if (+ event === 'dragenter' ||+ event === 'dragover' ||+ event === 'drop' ||+ event === 'paste'+ ) {+ editor.view.dom.removeEventListener(event, callback as EventListener);+ }+ },+ };+}diff --git a/ui/src/components/Editor/utils/tiptap/position.ts b/ui/src/components/Editor/utils/tiptap/position.tsnew file mode 100644index 00000000..378908b8--- /dev/null+++ b/ui/src/components/Editor/utils/tiptap/position.ts@@ -0,0 +1,147 @@+/*+ * Licensed to the Apache Software Foundation (ASF) under one+ * or more contributor license agreements. See the NOTICE file+ * distributed with this work for additional information+ * regarding copyright ownership. The ASF licenses this file+ * to you under the Apache License, Version 2.0 (the+ * "License"); you may not use this file except in compliance+ * with the License. You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing,+ * software distributed under the License is distributed on an+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ * KIND, either express or implied. See the License for the+ * specific language governing permissions and limitations+ * under the License.+ */++import { Editor as TipTapEditor } from '@tiptap/react';++import { Position } from '../../types';++import { handleEditorError, EditorErrorType } from './errorHandler';++/**+ * Converts TipTap position to CodeMirror Position+ *+ * TipTap uses document tree-based node positions (character index), while CodeMirror uses+ * line-based positions (line number and column number). This function converts between them.+ *+ * @param editor - TipTap editor instance+ * @param pos - TipTap position index (character position)+ * @returns CodeMirror position object with line and ch properties+ *+ * @example+ * ```typescript+ * const tipTapPos = 100; // Character position+ * const codeMirrorPos = convertTipTapPositionToCodeMirror(editor, tipTapPos);+ * // { line: 5, ch: 10 }+ * ```+ */+export function convertTipTapPositionToCodeMirror(+ editor: TipTapEditor,+ pos: number,+): Position {+ try {+ const { doc } = editor.state;+ let line = 0;+ let ch = 0;+ let currentPos = 0;++ for (let i = 0; i < doc.content.childCount; i += 1) {+ const child = doc.content.child(i);+ const childSize = child.nodeSize;++ if (currentPos + childSize > pos) {+ const text = child.textContent;+ const relativePos = pos - currentPos;++ const textBeforePos = text.substring(0, relativePos);+ const newlineMatches = textBeforePos.match(/\n/g);+ line += newlineMatches ? newlineMatches.length : 0;+ ch = relativePos - textBeforePos.lastIndexOf('\n') - 1;+ break;+ }++ const text = child.textContent;+ const newlineMatches = text.match(/\n/g);+ line += newlineMatches ? newlineMatches.length : 0;+ currentPos += childSize;+ }++ return { line, ch };+ } catch (error) {+ handleEditorError(+ error as Error,+ EditorErrorType.POSITION_CONVERSION_FAILED,+ {+ function: 'convertTipTapPositionToCodeMirror',+ position: pos,+ },+ );+ return { line: 0, ch: 0 };+ }+}++/**+ * Converts CodeMirror Position to TipTap position index+ *+ * Converts CodeMirror's line-based position to TipTap's character index position.+ *+ * @param editor - TipTap editor instance+ * @param position - CodeMirror position object with line and ch properties+ * @returns TipTap position index (character position)+ *+ * @example+ * ```typescript+ * const codeMirrorPos = { line: 5, ch: 10 };+ * const tipTapPos = convertCodeMirrorPositionToTipTap(editor, codeMirrorPos);+ * // 100 (character position)+ * ```+ */+export function convertCodeMirrorPositionToTipTap(+ editor: TipTapEditor,+ position: Position,+): number {+ try {+ const { doc } = editor.state;+ let currentLine = 0;+ let currentPos = 0;++ for (let i = 0; i < doc.content.childCount; i += 1) {+ const child = doc.content.child(i);+ const text = child.textContent;+ const lines = text.split('\n');++ if (currentLine + lines.length - 1 >= position.line) {+ const lineInNode = position.line - currentLine;+ const { ch: posInLine } = position;++ let pos = 0;+ for (let j = 0; j < lineInNode; j += 1) {+ pos += lines[j].length + 1; // +1 for newline+ }+ pos += posInLine;++ return currentPos + pos;+ }++ currentLine += lines.length - 1;+ currentPos += child.nodeSize;+ }++ return doc.content.size;+ } catch (error) {+ handleEditorError(+ error as Error,+ EditorErrorType.POSITION_CONVERSION_FAILED,+ {+ function: 'convertCodeMirrorPositionToTipTap',+ position,+ },+ );+ return editor.state.doc.content.size;+ }+}diff --git a/ui/src/pages/Questions/Detail/index.scss b/ui/src/pages/Questions/Detail/index.scssindex a5726b6a..da379ba9 100644--- a/ui/src/pages/Questions/Detail/index.scss+++ b/ui/src/pages/Questions/Detail/index.scss@@ -47,11 +47,12 @@[data-bs-theme='dark'] & {color: var(--bs-gray-400) !important;background-color: var(--bs-gray-800);- &:active, &.active {- background-color: #626E79 !important;+ &:active,+ &.active {+ background-color: #626e79 !important;}&:hover {- background-color: #57616B !important;+ background-color: #57616b !important;}}}@@ -78,4 +79,4 @@font-size: calc(1.275rem + 0.3vw) !important;}}-}\ No newline at end of file+}