@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -2
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +72 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@tiptap/core/LICENSE.md +21 -0
- package/node_modules/@tiptap/core/README.md +18 -0
- package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
- package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
- package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
- package/node_modules/@tiptap/core/dist/index.js +8288 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
- package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/package.json +74 -0
- package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
- package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bold/README.md +18 -0
- package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
- package/node_modules/@tiptap/extension-bold/package.json +50 -0
- package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
- package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
- package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
- package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code/README.md +18 -0
- package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
- package/node_modules/@tiptap/extension-code/package.json +50 -0
- package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code-block/README.md +18 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
- package/node_modules/@tiptap/extension-code-block/package.json +52 -0
- package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-document/README.md +18 -0
- package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
- package/node_modules/@tiptap/extension-document/package.json +50 -0
- package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
- package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
- package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
- package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
- package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-heading/README.md +18 -0
- package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
- package/node_modules/@tiptap/extension-heading/package.json +50 -0
- package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-highlight/README.md +18 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
- package/node_modules/@tiptap/extension-highlight/package.json +50 -0
- package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
- package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-image/README.md +18 -0
- package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
- package/node_modules/@tiptap/extension-image/package.json +50 -0
- package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-italic/README.md +18 -0
- package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
- package/node_modules/@tiptap/extension-italic/package.json +50 -0
- package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-link/README.md +18 -0
- package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
- package/node_modules/@tiptap/extension-link/package.json +56 -0
- package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list/README.md +18 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
- package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
- package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
- package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
- package/node_modules/@tiptap/extension-list/package.json +108 -0
- package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-item/README.md +18 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-item/package.json +50 -0
- package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
- package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
- package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
- package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-strike/README.md +18 -0
- package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
- package/node_modules/@tiptap/extension-strike/package.json +50 -0
- package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-subscript/README.md +18 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-subscript/package.json +52 -0
- package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-superscript/README.md +18 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-superscript/package.json +52 -0
- package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-table/README.md +18 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
- package/node_modules/@tiptap/extension-table/package.json +92 -0
- package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text/README.md +18 -0
- package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
- package/node_modules/@tiptap/extension-text/package.json +50 -0
- package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-align/README.md +18 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-text-align/package.json +50 -0
- package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-style/README.md +18 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/package.json +106 -0
- package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-underline/README.md +18 -0
- package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
- package/node_modules/@tiptap/extension-underline/package.json +50 -0
- package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-youtube/README.md +18 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
- package/node_modules/@tiptap/extension-youtube/package.json +50 -0
- package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
- package/node_modules/@tiptap/extensions/README.md +18 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
- package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
- package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.js +699 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
- package/node_modules/@tiptap/extensions/package.json +116 -0
- package/node_modules/@tiptap/pm/LICENSE +21 -0
- package/node_modules/@tiptap/pm/README.md +22 -0
- package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
- package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
- package/node_modules/@tiptap/pm/commands/index.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
- package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/history/index.ts +1 -0
- package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
- package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
- package/node_modules/@tiptap/pm/model/index.ts +1 -0
- package/node_modules/@tiptap/pm/package.json +166 -0
- package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
- package/node_modules/@tiptap/pm/state/index.ts +1 -0
- package/node_modules/@tiptap/pm/tables/index.ts +1 -0
- package/node_modules/@tiptap/pm/transform/index.ts +1 -0
- package/node_modules/@tiptap/pm/view/index.ts +1 -0
- package/node_modules/@tiptap/react/LICENSE.md +21 -0
- package/node_modules/@tiptap/react/README.md +18 -0
- package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
- package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
- package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
- package/node_modules/@tiptap/react/dist/index.js +1337 -0
- package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
- package/node_modules/@tiptap/react/package.json +80 -0
- package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
- package/node_modules/@tiptap/starter-kit/README.md +18 -0
- package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
- package/node_modules/@tiptap/starter-kit/package.json +70 -0
- package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
- package/node_modules/@tiptap/suggestion/README.md +18 -0
- package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
- package/node_modules/@tiptap/suggestion/package.json +54 -0
- package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
- package/node_modules/@types/use-sync-external-store/README.md +15 -0
- package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
- package/node_modules/@types/use-sync-external-store/package.json +30 -0
- package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
- package/node_modules/fast-equals/LICENSE +21 -0
- package/node_modules/fast-equals/README.md +479 -0
- package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
- package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
- package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
- package/node_modules/fast-equals/dist/es/index.mjs +785 -0
- package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
- package/node_modules/fast-equals/dist/umd/index.js +802 -0
- package/node_modules/fast-equals/index.d.ts +211 -0
- package/node_modules/fast-equals/package.json +120 -0
- package/node_modules/linkifyjs/LICENSE +19 -0
- package/node_modules/linkifyjs/README.md +47 -0
- package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
- package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
- package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
- package/node_modules/linkifyjs/dist/linkify.js +1859 -0
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
- package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
- package/node_modules/linkifyjs/package.json +38 -0
- package/node_modules/orderedmap/LICENSE +19 -0
- package/node_modules/orderedmap/README.md +69 -0
- package/node_modules/orderedmap/dist/index.cjs +139 -0
- package/node_modules/orderedmap/dist/index.d.cts +33 -0
- package/node_modules/orderedmap/dist/index.d.ts +33 -0
- package/node_modules/orderedmap/dist/index.js +137 -0
- package/node_modules/orderedmap/package.json +39 -0
- package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
- package/node_modules/prosemirror-changeset/LICENSE +19 -0
- package/node_modules/prosemirror-changeset/README.md +175 -0
- package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
- package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.js +722 -0
- package/node_modules/prosemirror-changeset/package.json +40 -0
- package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
- package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
- package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
- package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
- package/node_modules/prosemirror-commands/.tern-project +8 -0
- package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
- package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-commands/LICENSE +19 -0
- package/node_modules/prosemirror-commands/README.md +28 -0
- package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
- package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
- package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
- package/node_modules/prosemirror-commands/dist/index.js +852 -0
- package/node_modules/prosemirror-commands/package.json +39 -0
- package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
- package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
- package/node_modules/prosemirror-dropcursor/README.md +50 -0
- package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
- package/node_modules/prosemirror-dropcursor/package.json +38 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
- package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
- package/node_modules/prosemirror-gapcursor/README.md +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
- package/node_modules/prosemirror-gapcursor/package.json +43 -0
- package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
- package/node_modules/prosemirror-history/.tern-project +8 -0
- package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
- package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-history/LICENSE +19 -0
- package/node_modules/prosemirror-history/README.md +27 -0
- package/node_modules/prosemirror-history/dist/index.cjs +383 -0
- package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
- package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
- package/node_modules/prosemirror-history/dist/index.js +454 -0
- package/node_modules/prosemirror-history/package.json +40 -0
- package/node_modules/prosemirror-inputrules/.tern-project +8 -0
- package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
- package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-inputrules/LICENSE +19 -0
- package/node_modules/prosemirror-inputrules/README.md +29 -0
- package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
- package/node_modules/prosemirror-inputrules/package.json +36 -0
- package/node_modules/prosemirror-keymap/.tern-project +8 -0
- package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
- package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-keymap/LICENSE +19 -0
- package/node_modules/prosemirror-keymap/README.md +27 -0
- package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
- package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.js +128 -0
- package/node_modules/prosemirror-keymap/package.json +38 -0
- package/node_modules/prosemirror-model/.tern-project +8 -0
- package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-model/LICENSE +19 -0
- package/node_modules/prosemirror-model/README.md +29 -0
- package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
- package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
- package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
- package/node_modules/prosemirror-model/dist/index.js +3463 -0
- package/node_modules/prosemirror-model/package.json +38 -0
- package/node_modules/prosemirror-schema-list/.tern-project +8 -0
- package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
- package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
- package/node_modules/prosemirror-schema-list/LICENSE +19 -0
- package/node_modules/prosemirror-schema-list/README.md +28 -0
- package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
- package/node_modules/prosemirror-schema-list/package.json +40 -0
- package/node_modules/prosemirror-state/.tern-project +8 -0
- package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
- package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-state/LICENSE +19 -0
- package/node_modules/prosemirror-state/README.md +28 -0
- package/node_modules/prosemirror-state/dist/index.cjs +884 -0
- package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
- package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
- package/node_modules/prosemirror-state/dist/index.js +1002 -0
- package/node_modules/prosemirror-state/package.json +39 -0
- package/node_modules/prosemirror-tables/LICENSE +19 -0
- package/node_modules/prosemirror-tables/README.md +254 -0
- package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
- package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
- package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
- package/node_modules/prosemirror-tables/dist/index.js +2626 -0
- package/node_modules/prosemirror-tables/package.json +80 -0
- package/node_modules/prosemirror-tables/style/tables.css +48 -0
- package/node_modules/prosemirror-transform/.tern-project +8 -0
- package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
- package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-transform/LICENSE +19 -0
- package/node_modules/prosemirror-transform/README.md +29 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
- package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
- package/node_modules/prosemirror-transform/dist/index.js +2272 -0
- package/node_modules/prosemirror-transform/package.json +37 -0
- package/node_modules/prosemirror-view/.tern-project +8 -0
- package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
- package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-view/LICENSE +19 -0
- package/node_modules/prosemirror-view/README.md +28 -0
- package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
- package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
- package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
- package/node_modules/prosemirror-view/dist/index.js +6053 -0
- package/node_modules/prosemirror-view/package.json +43 -0
- package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
- package/node_modules/rope-sequence/LICENSE +19 -0
- package/node_modules/rope-sequence/README.md +63 -0
- package/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/node_modules/rope-sequence/dist/index.d.cts +11 -0
- package/node_modules/rope-sequence/dist/index.d.ts +11 -0
- package/node_modules/rope-sequence/dist/index.js +207 -0
- package/node_modules/rope-sequence/index.js +190 -0
- package/node_modules/rope-sequence/package.json +34 -0
- package/node_modules/rope-sequence/test.js +78 -0
- package/node_modules/use-sync-external-store/LICENSE +21 -0
- package/node_modules/use-sync-external-store/README.md +5 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
- package/node_modules/use-sync-external-store/index.js +7 -0
- package/node_modules/use-sync-external-store/package.json +43 -0
- package/node_modules/use-sync-external-store/shim/index.js +7 -0
- package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
- package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
- package/node_modules/use-sync-external-store/with-selector.js +7 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +79 -4
- package/src/Editor.tsx +425 -0
- package/src/ask.tsx +154 -0
- package/src/basic.tsx +149 -0
- package/src/blockMeta.ts +42 -0
- package/src/blockops.ts +179 -0
- package/src/blocks.tsx +189 -0
- package/src/boundary.tsx +17 -0
- package/src/content.ts +22 -0
- package/src/dynamic.tsx +105 -0
- package/src/editor.css +345 -0
- package/src/extensions.ts +78 -0
- package/src/handle.tsx +188 -0
- package/src/handles.tsx +149 -0
- package/src/index.ts +29 -0
- package/src/insert.ts +9 -0
- package/src/inserter.tsx +163 -0
- package/src/inspector.tsx +237 -0
- package/src/labels.ts +135 -0
- package/src/layout.tsx +174 -0
- package/src/layoutUi.tsx +226 -0
- package/src/media.ts +31 -0
- package/src/nodes.tsx +107 -0
- package/src/outline.tsx +124 -0
- package/src/panels.ts +59 -0
- package/src/paste.ts +100 -0
- package/src/patterns.ts +129 -0
- package/src/rank.ts +22 -0
- package/src/registry.ts +20 -0
- package/src/styleattr.ts +55 -0
- package/src/stylepanel.tsx +275 -0
- package/src/synced.tsx +128 -0
- package/src/toolbar.tsx +238 -0
- package/src/types.ts +55 -0
- package/src/unknown.tsx +74 -0
- package/src/util.ts +3 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { Extension, Node, getRenderedAttributes, mergeAttributes, renderNestedMarkdownContent, wrappingInputRule } from "@tiptap/core";
|
|
2
|
+
import { Fragment } from "@tiptap/pm/model";
|
|
3
|
+
//#region src/helpers/getBranchingNestedListAtCursor.ts
|
|
4
|
+
/**
|
|
5
|
+
* Resolves a branching nested list immediately after the cursor when the selection is
|
|
6
|
+
* collapsed at the end of a textblock inside a list item.
|
|
7
|
+
*
|
|
8
|
+
* @param state - The editor state to inspect.
|
|
9
|
+
* @param itemName - The list item node name (for example `listItem` or `taskItem`).
|
|
10
|
+
* @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).
|
|
11
|
+
* @returns Resolved positions and nodes for hoisting, or `null` when not applicable.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const context = getBranchingNestedListAtCursor(editor.state, 'listItem', [
|
|
16
|
+
* 'bulletList',
|
|
17
|
+
* 'orderedList',
|
|
18
|
+
* ])
|
|
19
|
+
*
|
|
20
|
+
* if (context) {
|
|
21
|
+
* // cursor is at the end of Item 1 before a branching nested sublist
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
const getBranchingNestedListAtCursor = (state, itemName, wrapperNames) => {
|
|
26
|
+
const { selection } = state;
|
|
27
|
+
if (!selection.empty) return null;
|
|
28
|
+
const { $from } = selection;
|
|
29
|
+
if (!$from.parent.isTextblock) return null;
|
|
30
|
+
if ($from.parentOffset !== $from.parent.content.size) return null;
|
|
31
|
+
let listItemDepth = -1;
|
|
32
|
+
for (let depth = $from.depth; depth > 0; depth -= 1) if ($from.node(depth).type.name === itemName) {
|
|
33
|
+
listItemDepth = depth;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
if (listItemDepth < 0) return null;
|
|
37
|
+
const listItem = $from.node(listItemDepth);
|
|
38
|
+
const indexInListItem = $from.index(listItemDepth);
|
|
39
|
+
if (indexInListItem + 1 >= listItem.childCount) return null;
|
|
40
|
+
const nextChild = listItem.child(indexInListItem + 1);
|
|
41
|
+
if (!wrapperNames.includes(nextChild.type.name)) return null;
|
|
42
|
+
const itemType = state.schema.nodes[itemName];
|
|
43
|
+
let hasBranching = false;
|
|
44
|
+
nextChild.forEach((child) => {
|
|
45
|
+
if (child.type === itemType && child.childCount > 1) hasBranching = true;
|
|
46
|
+
});
|
|
47
|
+
if (!hasBranching) return null;
|
|
48
|
+
const nodeAfter = state.doc.resolve($from.after()).nodeAfter;
|
|
49
|
+
if (!nodeAfter || !wrapperNames.includes(nodeAfter.type.name)) return null;
|
|
50
|
+
const items = [];
|
|
51
|
+
nodeAfter.forEach((child) => {
|
|
52
|
+
items.push(child);
|
|
53
|
+
});
|
|
54
|
+
if (items.length === 0) return null;
|
|
55
|
+
return {
|
|
56
|
+
listItemDepth,
|
|
57
|
+
nestedList: nodeAfter,
|
|
58
|
+
nestedListPos: $from.after(),
|
|
59
|
+
insertPos: $from.after(listItemDepth),
|
|
60
|
+
items
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/helpers/hoistBranchingNestedList.ts
|
|
65
|
+
/**
|
|
66
|
+
* Hoists all list items from a branching nested list after the cursor into the parent list.
|
|
67
|
+
*
|
|
68
|
+
* Use this when `joinForward` cannot restructure a nested list that contains list items
|
|
69
|
+
* with sublists (see issue #6906).
|
|
70
|
+
*
|
|
71
|
+
* @param state - The editor state to transform.
|
|
72
|
+
* @param dispatch - Optional dispatch function for the transaction.
|
|
73
|
+
* @param itemName - The list item node name (for example `listItem` or `taskItem`).
|
|
74
|
+
* @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).
|
|
75
|
+
* @returns `true` when the nested list was hoisted, otherwise `false`.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* // Cursor at the end of "Item 1" before a nested list with branching items.
|
|
80
|
+
* hoistBranchingNestedList(editor.state, editor.view.dispatch, 'listItem', [
|
|
81
|
+
* 'bulletList',
|
|
82
|
+
* 'orderedList',
|
|
83
|
+
* ])
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
const hoistBranchingNestedList = (state, dispatch, itemName, wrapperNames) => {
|
|
87
|
+
const context = getBranchingNestedListAtCursor(state, itemName, wrapperNames);
|
|
88
|
+
if (!context) return false;
|
|
89
|
+
const { selection } = state;
|
|
90
|
+
const { nestedList, nestedListPos, insertPos, items } = context;
|
|
91
|
+
const tr = state.tr;
|
|
92
|
+
tr.delete(nestedListPos, nestedListPos + nestedList.nodeSize);
|
|
93
|
+
const mappedInsertPos = tr.mapping.map(insertPos);
|
|
94
|
+
tr.insert(mappedInsertPos, Fragment.from(items));
|
|
95
|
+
tr.setSelection(selection.map(tr.doc, tr.mapping));
|
|
96
|
+
if (dispatch) dispatch(tr);
|
|
97
|
+
return true;
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/helpers/handleDeleteBranchingNestedList.ts
|
|
101
|
+
/**
|
|
102
|
+
* Handles Delete for a list item when a branching nested sublist follows the cursor.
|
|
103
|
+
*
|
|
104
|
+
* @param editor - The editor instance whose state should be updated.
|
|
105
|
+
* @param itemName - The list item node name (for example `listItem` or `taskItem`).
|
|
106
|
+
* @param wrapperNames - List wrapper node names (for example `bulletList` and `orderedList`).
|
|
107
|
+
* @returns `true` when the nested list was hoisted, otherwise `false`.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* Delete: () =>
|
|
112
|
+
* handleDeleteBranchingNestedList(editor, 'listItem', ['bulletList', 'orderedList']),
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
const handleDeleteBranchingNestedList = (editor, itemName, wrapperNames) => {
|
|
116
|
+
return hoistBranchingNestedList(editor.state, editor.view.dispatch, itemName, wrapperNames);
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/helpers/createBranchingListDeleteKeymap.ts
|
|
120
|
+
/**
|
|
121
|
+
* Creates a high-priority keymap extension that handles Delete for branching nested lists.
|
|
122
|
+
* Kept separate from the list item node so Enter/Tab shortcuts keep their default priority.
|
|
123
|
+
*/
|
|
124
|
+
const createBranchingListDeleteKeymap = (itemName, wrapperNames) => {
|
|
125
|
+
return Extension.create({
|
|
126
|
+
name: `${itemName}BranchingDeleteKeymap`,
|
|
127
|
+
priority: 101,
|
|
128
|
+
addKeyboardShortcuts() {
|
|
129
|
+
const handleDelete = () => handleDeleteBranchingNestedList(this.editor, itemName, wrapperNames);
|
|
130
|
+
return {
|
|
131
|
+
Delete: handleDelete,
|
|
132
|
+
"Mod-Delete": handleDelete
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/task-item/task-item.ts
|
|
139
|
+
/**
|
|
140
|
+
* Matches a task item to a - [ ] on input.
|
|
141
|
+
*/
|
|
142
|
+
const inputRegex = /^\s*(\[([( |x])?\])\s$/;
|
|
143
|
+
/**
|
|
144
|
+
* Hides the checkbox label visually while keeping it in the accessibility tree.
|
|
145
|
+
*/
|
|
146
|
+
const visuallyHiddenStyle = "position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0";
|
|
147
|
+
const getCheckboxLabel = (node, checked, a11y) => {
|
|
148
|
+
var _a11y$checkboxLabel;
|
|
149
|
+
return (a11y === null || a11y === void 0 || (_a11y$checkboxLabel = a11y.checkboxLabel) === null || _a11y$checkboxLabel === void 0 ? void 0 : _a11y$checkboxLabel.call(a11y, node, checked)) || `Task item checkbox for ${node.textContent || "empty task item"}`;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* This extension allows you to create task items.
|
|
153
|
+
* @see https://www.tiptap.dev/api/nodes/task-item
|
|
154
|
+
*/
|
|
155
|
+
const TaskItem = Node.create({
|
|
156
|
+
name: "taskItem",
|
|
157
|
+
addOptions() {
|
|
158
|
+
return {
|
|
159
|
+
nested: false,
|
|
160
|
+
HTMLAttributes: {},
|
|
161
|
+
taskListTypeName: "taskList",
|
|
162
|
+
a11y: void 0
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
content() {
|
|
166
|
+
return this.options.nested ? "paragraph block*" : "paragraph+";
|
|
167
|
+
},
|
|
168
|
+
defining: true,
|
|
169
|
+
addAttributes() {
|
|
170
|
+
return { checked: {
|
|
171
|
+
default: false,
|
|
172
|
+
keepOnSplit: false,
|
|
173
|
+
parseHTML: (element) => {
|
|
174
|
+
const dataChecked = element.getAttribute("data-checked");
|
|
175
|
+
return dataChecked === "" || dataChecked === "true";
|
|
176
|
+
},
|
|
177
|
+
renderHTML: (attributes) => ({ "data-checked": attributes.checked })
|
|
178
|
+
} };
|
|
179
|
+
},
|
|
180
|
+
parseHTML() {
|
|
181
|
+
return [{
|
|
182
|
+
tag: `li[data-type="${this.name}"]`,
|
|
183
|
+
priority: 51,
|
|
184
|
+
contentElement: (element) => {
|
|
185
|
+
var _element$querySelecto;
|
|
186
|
+
return (_element$querySelecto = element.querySelector("div")) !== null && _element$querySelecto !== void 0 ? _element$querySelecto : element;
|
|
187
|
+
}
|
|
188
|
+
}];
|
|
189
|
+
},
|
|
190
|
+
renderHTML({ node, HTMLAttributes }) {
|
|
191
|
+
return [
|
|
192
|
+
"li",
|
|
193
|
+
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { "data-type": this.name }),
|
|
194
|
+
[
|
|
195
|
+
"label",
|
|
196
|
+
["input", {
|
|
197
|
+
type: "checkbox",
|
|
198
|
+
checked: node.attrs.checked ? "checked" : null
|
|
199
|
+
}],
|
|
200
|
+
["span"]
|
|
201
|
+
],
|
|
202
|
+
["div", 0]
|
|
203
|
+
];
|
|
204
|
+
},
|
|
205
|
+
parseMarkdown: (token, h) => {
|
|
206
|
+
const content = [];
|
|
207
|
+
if (token.tokens && token.tokens.length > 0) content.push(h.createNode("paragraph", {}, h.parseInline(token.tokens)));
|
|
208
|
+
else if (token.text) content.push(h.createNode("paragraph", {}, [h.createNode("text", { text: token.text })]));
|
|
209
|
+
else content.push(h.createNode("paragraph", {}, []));
|
|
210
|
+
if (token.nestedTokens && token.nestedTokens.length > 0) {
|
|
211
|
+
const nestedContent = h.parseChildren(token.nestedTokens);
|
|
212
|
+
content.push(...nestedContent);
|
|
213
|
+
}
|
|
214
|
+
return h.createNode("taskItem", { checked: token.checked || false }, content);
|
|
215
|
+
},
|
|
216
|
+
renderMarkdown: (node, h) => {
|
|
217
|
+
var _node$attrs;
|
|
218
|
+
const prefix = `- [${((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.checked) ? "x" : " "}] `;
|
|
219
|
+
return renderNestedMarkdownContent(node, h, prefix);
|
|
220
|
+
},
|
|
221
|
+
addExtensions() {
|
|
222
|
+
if (!this.options.nested) return [];
|
|
223
|
+
return [createBranchingListDeleteKeymap(this.name, [this.options.taskListTypeName])];
|
|
224
|
+
},
|
|
225
|
+
addKeyboardShortcuts() {
|
|
226
|
+
const shortcuts = {
|
|
227
|
+
Enter: () => this.editor.commands.splitListItem(this.name),
|
|
228
|
+
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
229
|
+
};
|
|
230
|
+
if (!this.options.nested) return shortcuts;
|
|
231
|
+
return {
|
|
232
|
+
...shortcuts,
|
|
233
|
+
Tab: () => this.editor.commands.sinkListItem(this.name)
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
addNodeView() {
|
|
237
|
+
return ({ node, HTMLAttributes, getPos, editor }) => {
|
|
238
|
+
const listItem = document.createElement("li");
|
|
239
|
+
const checkboxWrapper = document.createElement("label");
|
|
240
|
+
const checkboxStyler = document.createElement("span");
|
|
241
|
+
const checkbox = document.createElement("input");
|
|
242
|
+
const content = document.createElement("div");
|
|
243
|
+
checkboxStyler.style.cssText = visuallyHiddenStyle;
|
|
244
|
+
const updateA11Y = (currentNode) => {
|
|
245
|
+
const label = getCheckboxLabel(currentNode, currentNode.attrs.checked, this.options.a11y);
|
|
246
|
+
checkbox.setAttribute("aria-label", label);
|
|
247
|
+
checkboxStyler.textContent = label;
|
|
248
|
+
};
|
|
249
|
+
updateA11Y(node);
|
|
250
|
+
checkboxWrapper.contentEditable = "false";
|
|
251
|
+
checkbox.type = "checkbox";
|
|
252
|
+
checkbox.addEventListener("mousedown", (event) => event.preventDefault());
|
|
253
|
+
checkbox.addEventListener("change", (event) => {
|
|
254
|
+
if (!editor.isEditable && !this.options.onReadOnlyChecked) {
|
|
255
|
+
checkbox.checked = !checkbox.checked;
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
const { checked } = event.target;
|
|
259
|
+
if (editor.isEditable && typeof getPos === "function") editor.chain().focus(void 0, { scrollIntoView: false }).command(({ tr }) => {
|
|
260
|
+
const position = getPos();
|
|
261
|
+
if (typeof position !== "number") return false;
|
|
262
|
+
const currentNode = tr.doc.nodeAt(position);
|
|
263
|
+
tr.setNodeMarkup(position, void 0, {
|
|
264
|
+
...currentNode === null || currentNode === void 0 ? void 0 : currentNode.attrs,
|
|
265
|
+
checked
|
|
266
|
+
});
|
|
267
|
+
return true;
|
|
268
|
+
}).run();
|
|
269
|
+
if (!editor.isEditable && this.options.onReadOnlyChecked) {
|
|
270
|
+
if (!this.options.onReadOnlyChecked(node, checked)) checkbox.checked = !checkbox.checked;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
Object.entries(this.options.HTMLAttributes).forEach(([key, value]) => {
|
|
274
|
+
listItem.setAttribute(key, value);
|
|
275
|
+
});
|
|
276
|
+
listItem.dataset.checked = node.attrs.checked;
|
|
277
|
+
checkbox.checked = node.attrs.checked;
|
|
278
|
+
checkboxWrapper.append(checkbox, checkboxStyler);
|
|
279
|
+
listItem.append(checkboxWrapper, content);
|
|
280
|
+
Object.entries(HTMLAttributes).forEach(([key, value]) => {
|
|
281
|
+
listItem.setAttribute(key, value);
|
|
282
|
+
});
|
|
283
|
+
let prevRenderedAttributeKeys = new Set(Object.keys(HTMLAttributes));
|
|
284
|
+
return {
|
|
285
|
+
dom: listItem,
|
|
286
|
+
contentDOM: content,
|
|
287
|
+
update: (updatedNode) => {
|
|
288
|
+
if (updatedNode.type !== this.type) return false;
|
|
289
|
+
listItem.dataset.checked = updatedNode.attrs.checked;
|
|
290
|
+
checkbox.checked = updatedNode.attrs.checked;
|
|
291
|
+
updateA11Y(updatedNode);
|
|
292
|
+
const extensionAttributes = editor.extensionManager.attributes;
|
|
293
|
+
const newHTMLAttributes = getRenderedAttributes(updatedNode, extensionAttributes);
|
|
294
|
+
const newKeys = new Set(Object.keys(newHTMLAttributes));
|
|
295
|
+
const staticAttrs = this.options.HTMLAttributes;
|
|
296
|
+
prevRenderedAttributeKeys.forEach((key) => {
|
|
297
|
+
if (!newKeys.has(key)) {
|
|
298
|
+
if (key in staticAttrs) listItem.setAttribute(key, staticAttrs[key]);
|
|
299
|
+
else listItem.removeAttribute(key);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
Object.entries(newHTMLAttributes).forEach(([key, value]) => {
|
|
303
|
+
if (value === null || value === void 0) {
|
|
304
|
+
if (key in staticAttrs) listItem.setAttribute(key, staticAttrs[key]);
|
|
305
|
+
else listItem.removeAttribute(key);
|
|
306
|
+
} else listItem.setAttribute(key, value);
|
|
307
|
+
});
|
|
308
|
+
prevRenderedAttributeKeys = newKeys;
|
|
309
|
+
return true;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
},
|
|
314
|
+
addInputRules() {
|
|
315
|
+
return [wrappingInputRule({
|
|
316
|
+
find: inputRegex,
|
|
317
|
+
type: this.type,
|
|
318
|
+
getAttributes: (match) => ({ checked: match[match.length - 1] === "x" })
|
|
319
|
+
})];
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
//#endregion
|
|
323
|
+
export { TaskItem, inputRegex };
|
|
324
|
+
|
|
325
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _tiptap_core = require("@tiptap/core");
|
|
3
|
+
//#region src/task-list/task-list.ts
|
|
4
|
+
/**
|
|
5
|
+
* This extension allows you to create task lists.
|
|
6
|
+
* @see https://www.tiptap.dev/api/nodes/task-list
|
|
7
|
+
*/
|
|
8
|
+
const TaskList = _tiptap_core.Node.create({
|
|
9
|
+
name: "taskList",
|
|
10
|
+
addOptions() {
|
|
11
|
+
return {
|
|
12
|
+
itemTypeName: "taskItem",
|
|
13
|
+
HTMLAttributes: {}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
group: "block list",
|
|
17
|
+
content() {
|
|
18
|
+
return `${this.options.itemTypeName}+`;
|
|
19
|
+
},
|
|
20
|
+
parseHTML() {
|
|
21
|
+
return [{
|
|
22
|
+
tag: `ul[data-type="${this.name}"]`,
|
|
23
|
+
priority: 51
|
|
24
|
+
}];
|
|
25
|
+
},
|
|
26
|
+
renderHTML({ HTMLAttributes }) {
|
|
27
|
+
return [
|
|
28
|
+
"ul",
|
|
29
|
+
(0, _tiptap_core.mergeAttributes)(this.options.HTMLAttributes, HTMLAttributes, { "data-type": this.name }),
|
|
30
|
+
0
|
|
31
|
+
];
|
|
32
|
+
},
|
|
33
|
+
parseMarkdown: (token, h) => {
|
|
34
|
+
return h.createNode("taskList", {}, h.parseChildren(token.items || []));
|
|
35
|
+
},
|
|
36
|
+
renderMarkdown: (node, h) => {
|
|
37
|
+
if (!node.content) return "";
|
|
38
|
+
return h.renderChildren(node.content, "\n");
|
|
39
|
+
},
|
|
40
|
+
markdownTokenizer: {
|
|
41
|
+
name: "taskList",
|
|
42
|
+
level: "block",
|
|
43
|
+
start(src) {
|
|
44
|
+
var _src$match;
|
|
45
|
+
const index = (_src$match = src.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)) === null || _src$match === void 0 ? void 0 : _src$match.index;
|
|
46
|
+
return index !== void 0 ? index : -1;
|
|
47
|
+
},
|
|
48
|
+
tokenize(src, tokens, lexer) {
|
|
49
|
+
const parseTaskListContent = (content) => {
|
|
50
|
+
const nestedResult = (0, _tiptap_core.parseIndentedBlocks)(content, {
|
|
51
|
+
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
52
|
+
extractItemData: (match) => ({
|
|
53
|
+
indentLevel: match[1].length,
|
|
54
|
+
mainContent: match[4],
|
|
55
|
+
checked: match[3].toLowerCase() === "x"
|
|
56
|
+
}),
|
|
57
|
+
createToken: (data, nestedTokens) => ({
|
|
58
|
+
type: "taskItem",
|
|
59
|
+
raw: "",
|
|
60
|
+
mainContent: data.mainContent,
|
|
61
|
+
indentLevel: data.indentLevel,
|
|
62
|
+
checked: data.checked,
|
|
63
|
+
text: data.mainContent,
|
|
64
|
+
tokens: lexer.inlineTokens(data.mainContent),
|
|
65
|
+
nestedTokens
|
|
66
|
+
}),
|
|
67
|
+
customNestedParser: parseTaskListContent
|
|
68
|
+
}, lexer);
|
|
69
|
+
if (nestedResult) {
|
|
70
|
+
const taskListToken = {
|
|
71
|
+
type: "taskList",
|
|
72
|
+
raw: nestedResult.raw,
|
|
73
|
+
items: nestedResult.items
|
|
74
|
+
};
|
|
75
|
+
const remainder = content.slice(nestedResult.raw.length);
|
|
76
|
+
if (remainder.trim()) return [taskListToken, ...lexer.blockTokens(remainder)];
|
|
77
|
+
return [taskListToken];
|
|
78
|
+
}
|
|
79
|
+
return lexer.blockTokens(content);
|
|
80
|
+
};
|
|
81
|
+
const result = (0, _tiptap_core.parseIndentedBlocks)(src, {
|
|
82
|
+
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
83
|
+
extractItemData: (match) => ({
|
|
84
|
+
indentLevel: match[1].length,
|
|
85
|
+
mainContent: match[4],
|
|
86
|
+
checked: match[3].toLowerCase() === "x"
|
|
87
|
+
}),
|
|
88
|
+
createToken: (data, nestedTokens) => ({
|
|
89
|
+
type: "taskItem",
|
|
90
|
+
raw: "",
|
|
91
|
+
mainContent: data.mainContent,
|
|
92
|
+
indentLevel: data.indentLevel,
|
|
93
|
+
checked: data.checked,
|
|
94
|
+
text: data.mainContent,
|
|
95
|
+
tokens: lexer.inlineTokens(data.mainContent),
|
|
96
|
+
nestedTokens
|
|
97
|
+
}),
|
|
98
|
+
customNestedParser: parseTaskListContent
|
|
99
|
+
}, lexer);
|
|
100
|
+
if (!result) return;
|
|
101
|
+
return {
|
|
102
|
+
type: "taskList",
|
|
103
|
+
raw: result.raw,
|
|
104
|
+
items: result.items
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
markdownOptions: { indentsContent: true },
|
|
109
|
+
addCommands() {
|
|
110
|
+
return { toggleTaskList: () => ({ commands }) => {
|
|
111
|
+
return commands.toggleList(this.name, this.options.itemTypeName);
|
|
112
|
+
} };
|
|
113
|
+
},
|
|
114
|
+
addKeyboardShortcuts() {
|
|
115
|
+
return { "Mod-Shift-9": () => this.editor.commands.toggleTaskList() };
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
//#endregion
|
|
119
|
+
exports.TaskList = TaskList;
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
//#region src/task-list/task-list.d.ts
|
|
3
|
+
interface TaskListOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The node type name for a task item.
|
|
6
|
+
* @default 'taskItem'
|
|
7
|
+
* @example 'myCustomTaskItem'
|
|
8
|
+
*/
|
|
9
|
+
itemTypeName: string;
|
|
10
|
+
/**
|
|
11
|
+
* The HTML attributes for a task list node.
|
|
12
|
+
* @default {}
|
|
13
|
+
* @example { class: 'foo' }
|
|
14
|
+
*/
|
|
15
|
+
HTMLAttributes: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
declare module '@tiptap/core' {
|
|
18
|
+
interface Commands<ReturnType> {
|
|
19
|
+
taskList: {
|
|
20
|
+
/**
|
|
21
|
+
* Toggle a task list
|
|
22
|
+
* @example editor.commands.toggleTaskList()
|
|
23
|
+
*/
|
|
24
|
+
toggleTaskList: () => ReturnType;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This extension allows you to create task lists.
|
|
30
|
+
* @see https://www.tiptap.dev/api/nodes/task-list
|
|
31
|
+
*/
|
|
32
|
+
declare const TaskList: Node<TaskListOptions, any>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { TaskList, TaskListOptions };
|
|
35
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
//#region src/task-list/task-list.d.ts
|
|
3
|
+
interface TaskListOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The node type name for a task item.
|
|
6
|
+
* @default 'taskItem'
|
|
7
|
+
* @example 'myCustomTaskItem'
|
|
8
|
+
*/
|
|
9
|
+
itemTypeName: string;
|
|
10
|
+
/**
|
|
11
|
+
* The HTML attributes for a task list node.
|
|
12
|
+
* @default {}
|
|
13
|
+
* @example { class: 'foo' }
|
|
14
|
+
*/
|
|
15
|
+
HTMLAttributes: Record<string, any>;
|
|
16
|
+
}
|
|
17
|
+
declare module '@tiptap/core' {
|
|
18
|
+
interface Commands<ReturnType> {
|
|
19
|
+
taskList: {
|
|
20
|
+
/**
|
|
21
|
+
* Toggle a task list
|
|
22
|
+
* @example editor.commands.toggleTaskList()
|
|
23
|
+
*/
|
|
24
|
+
toggleTaskList: () => ReturnType;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This extension allows you to create task lists.
|
|
30
|
+
* @see https://www.tiptap.dev/api/nodes/task-list
|
|
31
|
+
*/
|
|
32
|
+
declare const TaskList: Node<TaskListOptions, any>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { TaskList, TaskListOptions };
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Node, mergeAttributes, parseIndentedBlocks } from "@tiptap/core";
|
|
2
|
+
//#region src/task-list/task-list.ts
|
|
3
|
+
/**
|
|
4
|
+
* This extension allows you to create task lists.
|
|
5
|
+
* @see https://www.tiptap.dev/api/nodes/task-list
|
|
6
|
+
*/
|
|
7
|
+
const TaskList = Node.create({
|
|
8
|
+
name: "taskList",
|
|
9
|
+
addOptions() {
|
|
10
|
+
return {
|
|
11
|
+
itemTypeName: "taskItem",
|
|
12
|
+
HTMLAttributes: {}
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
group: "block list",
|
|
16
|
+
content() {
|
|
17
|
+
return `${this.options.itemTypeName}+`;
|
|
18
|
+
},
|
|
19
|
+
parseHTML() {
|
|
20
|
+
return [{
|
|
21
|
+
tag: `ul[data-type="${this.name}"]`,
|
|
22
|
+
priority: 51
|
|
23
|
+
}];
|
|
24
|
+
},
|
|
25
|
+
renderHTML({ HTMLAttributes }) {
|
|
26
|
+
return [
|
|
27
|
+
"ul",
|
|
28
|
+
mergeAttributes(this.options.HTMLAttributes, HTMLAttributes, { "data-type": this.name }),
|
|
29
|
+
0
|
|
30
|
+
];
|
|
31
|
+
},
|
|
32
|
+
parseMarkdown: (token, h) => {
|
|
33
|
+
return h.createNode("taskList", {}, h.parseChildren(token.items || []));
|
|
34
|
+
},
|
|
35
|
+
renderMarkdown: (node, h) => {
|
|
36
|
+
if (!node.content) return "";
|
|
37
|
+
return h.renderChildren(node.content, "\n");
|
|
38
|
+
},
|
|
39
|
+
markdownTokenizer: {
|
|
40
|
+
name: "taskList",
|
|
41
|
+
level: "block",
|
|
42
|
+
start(src) {
|
|
43
|
+
var _src$match;
|
|
44
|
+
const index = (_src$match = src.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)) === null || _src$match === void 0 ? void 0 : _src$match.index;
|
|
45
|
+
return index !== void 0 ? index : -1;
|
|
46
|
+
},
|
|
47
|
+
tokenize(src, tokens, lexer) {
|
|
48
|
+
const parseTaskListContent = (content) => {
|
|
49
|
+
const nestedResult = parseIndentedBlocks(content, {
|
|
50
|
+
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
51
|
+
extractItemData: (match) => ({
|
|
52
|
+
indentLevel: match[1].length,
|
|
53
|
+
mainContent: match[4],
|
|
54
|
+
checked: match[3].toLowerCase() === "x"
|
|
55
|
+
}),
|
|
56
|
+
createToken: (data, nestedTokens) => ({
|
|
57
|
+
type: "taskItem",
|
|
58
|
+
raw: "",
|
|
59
|
+
mainContent: data.mainContent,
|
|
60
|
+
indentLevel: data.indentLevel,
|
|
61
|
+
checked: data.checked,
|
|
62
|
+
text: data.mainContent,
|
|
63
|
+
tokens: lexer.inlineTokens(data.mainContent),
|
|
64
|
+
nestedTokens
|
|
65
|
+
}),
|
|
66
|
+
customNestedParser: parseTaskListContent
|
|
67
|
+
}, lexer);
|
|
68
|
+
if (nestedResult) {
|
|
69
|
+
const taskListToken = {
|
|
70
|
+
type: "taskList",
|
|
71
|
+
raw: nestedResult.raw,
|
|
72
|
+
items: nestedResult.items
|
|
73
|
+
};
|
|
74
|
+
const remainder = content.slice(nestedResult.raw.length);
|
|
75
|
+
if (remainder.trim()) return [taskListToken, ...lexer.blockTokens(remainder)];
|
|
76
|
+
return [taskListToken];
|
|
77
|
+
}
|
|
78
|
+
return lexer.blockTokens(content);
|
|
79
|
+
};
|
|
80
|
+
const result = parseIndentedBlocks(src, {
|
|
81
|
+
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
82
|
+
extractItemData: (match) => ({
|
|
83
|
+
indentLevel: match[1].length,
|
|
84
|
+
mainContent: match[4],
|
|
85
|
+
checked: match[3].toLowerCase() === "x"
|
|
86
|
+
}),
|
|
87
|
+
createToken: (data, nestedTokens) => ({
|
|
88
|
+
type: "taskItem",
|
|
89
|
+
raw: "",
|
|
90
|
+
mainContent: data.mainContent,
|
|
91
|
+
indentLevel: data.indentLevel,
|
|
92
|
+
checked: data.checked,
|
|
93
|
+
text: data.mainContent,
|
|
94
|
+
tokens: lexer.inlineTokens(data.mainContent),
|
|
95
|
+
nestedTokens
|
|
96
|
+
}),
|
|
97
|
+
customNestedParser: parseTaskListContent
|
|
98
|
+
}, lexer);
|
|
99
|
+
if (!result) return;
|
|
100
|
+
return {
|
|
101
|
+
type: "taskList",
|
|
102
|
+
raw: result.raw,
|
|
103
|
+
items: result.items
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
markdownOptions: { indentsContent: true },
|
|
108
|
+
addCommands() {
|
|
109
|
+
return { toggleTaskList: () => ({ commands }) => {
|
|
110
|
+
return commands.toggleList(this.name, this.options.itemTypeName);
|
|
111
|
+
} };
|
|
112
|
+
},
|
|
113
|
+
addKeyboardShortcuts() {
|
|
114
|
+
return { "Mod-Shift-9": () => this.editor.commands.toggleTaskList() };
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
//#endregion
|
|
118
|
+
export { TaskList };
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=index.js.map
|