@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.0
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 +424 -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/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 +186 -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,263 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
let _tiptap_core = require("@tiptap/core");
|
|
15
|
+
let _tiptap_pm_model = require("@tiptap/pm/model");
|
|
16
|
+
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
17
|
+
//#region src/keymap/listHelpers/findListItemPos.ts
|
|
18
|
+
const findListItemPos = (typeOrName, state) => {
|
|
19
|
+
const { $from } = state.selection;
|
|
20
|
+
const nodeType = (0, _tiptap_core.getNodeType)(typeOrName, state.schema);
|
|
21
|
+
let currentNode = null;
|
|
22
|
+
let currentDepth = $from.depth;
|
|
23
|
+
let currentPos = $from.pos;
|
|
24
|
+
let targetDepth = null;
|
|
25
|
+
while (currentDepth > 0 && targetDepth === null) {
|
|
26
|
+
currentNode = $from.node(currentDepth);
|
|
27
|
+
if (currentNode.type === nodeType) targetDepth = currentDepth;
|
|
28
|
+
else {
|
|
29
|
+
currentDepth -= 1;
|
|
30
|
+
currentPos -= 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (targetDepth === null) return null;
|
|
34
|
+
return {
|
|
35
|
+
$pos: state.doc.resolve(currentPos),
|
|
36
|
+
depth: targetDepth
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/keymap/listHelpers/getNextListDepth.ts
|
|
41
|
+
const getNextListDepth = (typeOrName, state) => {
|
|
42
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
43
|
+
if (!listItemPos) return false;
|
|
44
|
+
const [, depth] = (0, _tiptap_core.getNodeAtPosition)(state, typeOrName, listItemPos.$pos.pos + 4);
|
|
45
|
+
return depth;
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/keymap/listHelpers/hasListBefore.ts
|
|
49
|
+
const hasListBefore = (editorState, name, parentListTypes) => {
|
|
50
|
+
const { $anchor } = editorState.selection;
|
|
51
|
+
const previousNodePos = Math.max(0, $anchor.pos - 2);
|
|
52
|
+
const previousNode = editorState.doc.resolve(previousNodePos).node();
|
|
53
|
+
if (!previousNode || !parentListTypes.includes(previousNode.type.name)) return false;
|
|
54
|
+
return true;
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/keymap/listHelpers/handleBackspace.ts
|
|
58
|
+
const handleBackspace = (editor, name, parentListTypes) => {
|
|
59
|
+
if (editor.commands.undoInputRule()) return true;
|
|
60
|
+
if (editor.state.selection.from !== editor.state.selection.to) return false;
|
|
61
|
+
if (!(0, _tiptap_core.isNodeActive)(editor.state, name) && hasListBefore(editor.state, name, parentListTypes)) {
|
|
62
|
+
const { $anchor } = editor.state.selection;
|
|
63
|
+
const $listPos = editor.state.doc.resolve($anchor.before() - 1);
|
|
64
|
+
const listDescendants = [];
|
|
65
|
+
$listPos.node().descendants((node, pos) => {
|
|
66
|
+
if (node.type.name === name) listDescendants.push({
|
|
67
|
+
node,
|
|
68
|
+
pos
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
const lastItem = listDescendants.at(-1);
|
|
72
|
+
if (!lastItem) return false;
|
|
73
|
+
const $lastItemPos = editor.state.doc.resolve($listPos.start() + lastItem.pos + 1);
|
|
74
|
+
return editor.chain().cut({
|
|
75
|
+
from: $anchor.start() - 1,
|
|
76
|
+
to: $anchor.end() + 1
|
|
77
|
+
}, $lastItemPos.end()).joinForward().run();
|
|
78
|
+
}
|
|
79
|
+
if (!(0, _tiptap_core.isNodeActive)(editor.state, name)) return false;
|
|
80
|
+
if (!(0, _tiptap_core.isAtStartOfNode)(editor.state)) return false;
|
|
81
|
+
const { $from } = editor.state.selection;
|
|
82
|
+
const itemDepth = $from.depth - 1;
|
|
83
|
+
if ($from.node(itemDepth).type !== editor.schema.nodes[name] || $from.index(itemDepth) !== 0) return false;
|
|
84
|
+
return editor.chain().liftListItem(name).run();
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/keymap/listHelpers/nextListIsDeeper.ts
|
|
88
|
+
const nextListIsDeeper = (typeOrName, state) => {
|
|
89
|
+
const listDepth = getNextListDepth(typeOrName, state);
|
|
90
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
91
|
+
if (!listItemPos || !listDepth) return false;
|
|
92
|
+
if (listDepth > listItemPos.depth) return true;
|
|
93
|
+
return false;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/keymap/listHelpers/nextListIsHigher.ts
|
|
97
|
+
const nextListIsHigher = (typeOrName, state) => {
|
|
98
|
+
const listDepth = getNextListDepth(typeOrName, state);
|
|
99
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
100
|
+
if (!listItemPos || !listDepth) return false;
|
|
101
|
+
if (listDepth < listItemPos.depth) return true;
|
|
102
|
+
return false;
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/keymap/listHelpers/handleDelete.ts
|
|
106
|
+
const handleDelete = (editor, name) => {
|
|
107
|
+
if (!(0, _tiptap_core.isNodeActive)(editor.state, name)) return false;
|
|
108
|
+
if (!(0, _tiptap_core.isAtEndOfNode)(editor.state, name)) return false;
|
|
109
|
+
const { selection } = editor.state;
|
|
110
|
+
const { $from, $to } = selection;
|
|
111
|
+
if (!selection.empty && $from.sameParent($to)) return false;
|
|
112
|
+
if (nextListIsDeeper(name, editor.state)) return editor.chain().focus(editor.state.selection.from + 4).lift(name).joinBackward().run();
|
|
113
|
+
if (nextListIsHigher(name, editor.state)) return editor.chain().joinForward().joinBackward().run();
|
|
114
|
+
return editor.commands.joinItemForward();
|
|
115
|
+
};
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/keymap/listHelpers/handleTab.ts
|
|
118
|
+
const handleTab = (editor, name, parentListTypes) => {
|
|
119
|
+
const { state } = editor;
|
|
120
|
+
const { selection } = state;
|
|
121
|
+
if (!selection.empty) return false;
|
|
122
|
+
const { $from } = selection;
|
|
123
|
+
if ($from.parentOffset !== 0) return false;
|
|
124
|
+
if (!$from.parent.isTextblock) return false;
|
|
125
|
+
if ((0, _tiptap_core.isNodeActive)(state, name)) return false;
|
|
126
|
+
const previous = (0, _tiptap_core.getPreviousBlockSibling)($from);
|
|
127
|
+
if (!previous || !parentListTypes.includes(previous.type.name)) return false;
|
|
128
|
+
const lastItem = previous.lastChild;
|
|
129
|
+
if (!lastItem || lastItem.type.name !== name) return false;
|
|
130
|
+
const block = $from.parent;
|
|
131
|
+
if (!lastItem.canReplace(lastItem.childCount, lastItem.childCount, _tiptap_pm_model.Fragment.from(block))) return false;
|
|
132
|
+
const blockStart = $from.before();
|
|
133
|
+
const blockEnd = $from.after();
|
|
134
|
+
const insideLastItemEnd = blockStart - 2;
|
|
135
|
+
return editor.commands.command(({ tr, dispatch }) => {
|
|
136
|
+
if (dispatch) {
|
|
137
|
+
tr.delete(blockStart, blockEnd).insert(insideLastItemEnd, _tiptap_pm_model.Fragment.from(block));
|
|
138
|
+
tr.setSelection(_tiptap_pm_state.TextSelection.create(tr.doc, insideLastItemEnd + 1));
|
|
139
|
+
tr.scrollIntoView();
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/keymap/listHelpers/hasListItemAfter.ts
|
|
146
|
+
const hasListItemAfter = (typeOrName, state) => {
|
|
147
|
+
var _$targetPos$nodeAfter;
|
|
148
|
+
const { $anchor } = state.selection;
|
|
149
|
+
const $targetPos = state.doc.resolve($anchor.pos - $anchor.parentOffset - 2);
|
|
150
|
+
if ($targetPos.index() === $targetPos.parent.childCount - 1) return false;
|
|
151
|
+
if (((_$targetPos$nodeAfter = $targetPos.nodeAfter) === null || _$targetPos$nodeAfter === void 0 ? void 0 : _$targetPos$nodeAfter.type.name) !== typeOrName) return false;
|
|
152
|
+
return true;
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/keymap/listHelpers/hasListItemBefore.ts
|
|
156
|
+
const hasListItemBefore = (typeOrName, state) => {
|
|
157
|
+
var _$targetPos$nodeBefor;
|
|
158
|
+
const { $anchor } = state.selection;
|
|
159
|
+
const $targetPos = state.doc.resolve($anchor.pos - 2);
|
|
160
|
+
if ($targetPos.index() === 0) return false;
|
|
161
|
+
if (((_$targetPos$nodeBefor = $targetPos.nodeBefore) === null || _$targetPos$nodeBefor === void 0 ? void 0 : _$targetPos$nodeBefor.type.name) !== typeOrName) return false;
|
|
162
|
+
return true;
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/keymap/listHelpers/listItemHasSubList.ts
|
|
166
|
+
const listItemHasSubList = (typeOrName, state, node) => {
|
|
167
|
+
if (!node) return false;
|
|
168
|
+
const nodeType = (0, _tiptap_core.getNodeType)(typeOrName, state.schema);
|
|
169
|
+
let hasSubList = false;
|
|
170
|
+
node.descendants((child) => {
|
|
171
|
+
if (child.type === nodeType) hasSubList = true;
|
|
172
|
+
});
|
|
173
|
+
return hasSubList;
|
|
174
|
+
};
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/keymap/listHelpers/index.ts
|
|
177
|
+
var listHelpers_exports = /* @__PURE__ */ __exportAll({
|
|
178
|
+
findListItemPos: () => findListItemPos,
|
|
179
|
+
getNextListDepth: () => getNextListDepth,
|
|
180
|
+
handleBackspace: () => handleBackspace,
|
|
181
|
+
handleDelete: () => handleDelete,
|
|
182
|
+
handleTab: () => handleTab,
|
|
183
|
+
hasListBefore: () => hasListBefore,
|
|
184
|
+
hasListItemAfter: () => hasListItemAfter,
|
|
185
|
+
hasListItemBefore: () => hasListItemBefore,
|
|
186
|
+
listItemHasSubList: () => listItemHasSubList,
|
|
187
|
+
nextListIsDeeper: () => nextListIsDeeper,
|
|
188
|
+
nextListIsHigher: () => nextListIsHigher
|
|
189
|
+
});
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/keymap/list-keymap.ts
|
|
192
|
+
/**
|
|
193
|
+
* This extension registers custom keymaps to change the behaviour of the backspace and delete keys.
|
|
194
|
+
* By default Prosemirror keyhandling will always lift or sink items so paragraphs are joined into
|
|
195
|
+
* the adjacent or previous list item. This extension will prevent this behaviour and instead will
|
|
196
|
+
* try to join paragraphs from two list items into a single list item.
|
|
197
|
+
* @see https://www.tiptap.dev/api/extensions/list-keymap
|
|
198
|
+
*/
|
|
199
|
+
const ListKeymap = _tiptap_core.Extension.create({
|
|
200
|
+
name: "listKeymap",
|
|
201
|
+
addOptions() {
|
|
202
|
+
return { listTypes: [{
|
|
203
|
+
itemName: "listItem",
|
|
204
|
+
wrapperNames: ["bulletList", "orderedList"]
|
|
205
|
+
}, {
|
|
206
|
+
itemName: "taskItem",
|
|
207
|
+
wrapperNames: ["taskList"]
|
|
208
|
+
}] };
|
|
209
|
+
},
|
|
210
|
+
addKeyboardShortcuts() {
|
|
211
|
+
return {
|
|
212
|
+
Delete: ({ editor }) => {
|
|
213
|
+
let handled = false;
|
|
214
|
+
this.options.listTypes.forEach(({ itemName }) => {
|
|
215
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
216
|
+
if (handleDelete(editor, itemName)) handled = true;
|
|
217
|
+
});
|
|
218
|
+
return handled;
|
|
219
|
+
},
|
|
220
|
+
"Mod-Delete": ({ editor }) => {
|
|
221
|
+
let handled = false;
|
|
222
|
+
this.options.listTypes.forEach(({ itemName }) => {
|
|
223
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
224
|
+
if (handleDelete(editor, itemName)) handled = true;
|
|
225
|
+
});
|
|
226
|
+
return handled;
|
|
227
|
+
},
|
|
228
|
+
Backspace: ({ editor }) => {
|
|
229
|
+
let handled = false;
|
|
230
|
+
this.options.listTypes.forEach(({ itemName, wrapperNames }) => {
|
|
231
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
232
|
+
if (handleBackspace(editor, itemName, wrapperNames)) handled = true;
|
|
233
|
+
});
|
|
234
|
+
return handled;
|
|
235
|
+
},
|
|
236
|
+
"Mod-Backspace": ({ editor }) => {
|
|
237
|
+
let handled = false;
|
|
238
|
+
this.options.listTypes.forEach(({ itemName, wrapperNames }) => {
|
|
239
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
240
|
+
if (handleBackspace(editor, itemName, wrapperNames)) handled = true;
|
|
241
|
+
});
|
|
242
|
+
return handled;
|
|
243
|
+
},
|
|
244
|
+
Tab: ({ editor }) => {
|
|
245
|
+
for (const { itemName, wrapperNames } of this.options.listTypes) {
|
|
246
|
+
if (editor.state.schema.nodes[itemName] === void 0) continue;
|
|
247
|
+
if (handleTab(editor, itemName, wrapperNames)) return true;
|
|
248
|
+
}
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
//#endregion
|
|
255
|
+
exports.ListKeymap = ListKeymap;
|
|
256
|
+
Object.defineProperty(exports, "listHelpers", {
|
|
257
|
+
enumerable: true,
|
|
258
|
+
get: function() {
|
|
259
|
+
return listHelpers_exports;
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Editor, Extension } from "@tiptap/core";
|
|
2
|
+
import { Node, NodeType } from "@tiptap/pm/model";
|
|
3
|
+
import { EditorState } from "@tiptap/pm/state";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/keymap/list-keymap.d.ts
|
|
6
|
+
type ListKeymapOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* An array of list types. This is used for item and wrapper list matching.
|
|
9
|
+
* @default []
|
|
10
|
+
* @example [{ itemName: 'listItem', wrapperNames: ['bulletList', 'orderedList'] }]
|
|
11
|
+
*/
|
|
12
|
+
listTypes: Array<{
|
|
13
|
+
itemName: string;
|
|
14
|
+
wrapperNames: string[];
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* This extension registers custom keymaps to change the behaviour of the backspace and delete keys.
|
|
19
|
+
* By default Prosemirror keyhandling will always lift or sink items so paragraphs are joined into
|
|
20
|
+
* the adjacent or previous list item. This extension will prevent this behaviour and instead will
|
|
21
|
+
* try to join paragraphs from two list items into a single list item.
|
|
22
|
+
* @see https://www.tiptap.dev/api/extensions/list-keymap
|
|
23
|
+
*/
|
|
24
|
+
declare const ListKeymap: Extension<ListKeymapOptions, any>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/keymap/listHelpers/findListItemPos.d.ts
|
|
27
|
+
declare const findListItemPos: (typeOrName: string | NodeType, state: EditorState) => {
|
|
28
|
+
$pos: import("prosemirror-model").ResolvedPos;
|
|
29
|
+
depth: number;
|
|
30
|
+
} | null;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/keymap/listHelpers/getNextListDepth.d.ts
|
|
33
|
+
declare const getNextListDepth: (typeOrName: string, state: EditorState) => number | false;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/keymap/listHelpers/handleBackspace.d.ts
|
|
36
|
+
declare const handleBackspace: (editor: Editor, name: string, parentListTypes: string[]) => boolean;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/keymap/listHelpers/handleDelete.d.ts
|
|
39
|
+
declare const handleDelete: (editor: Editor, name: string) => boolean;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/keymap/listHelpers/handleTab.d.ts
|
|
42
|
+
declare const handleTab: (editor: Editor, name: string, parentListTypes: string[]) => boolean;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/keymap/listHelpers/hasListBefore.d.ts
|
|
45
|
+
declare const hasListBefore: (editorState: EditorState, name: string, parentListTypes: string[]) => boolean;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/keymap/listHelpers/hasListItemAfter.d.ts
|
|
48
|
+
declare const hasListItemAfter: (typeOrName: string, state: EditorState) => boolean;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/keymap/listHelpers/hasListItemBefore.d.ts
|
|
51
|
+
declare const hasListItemBefore: (typeOrName: string, state: EditorState) => boolean;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/keymap/listHelpers/listItemHasSubList.d.ts
|
|
54
|
+
declare const listItemHasSubList: (typeOrName: string, state: EditorState, node?: Node) => boolean;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/keymap/listHelpers/nextListIsDeeper.d.ts
|
|
57
|
+
declare const nextListIsDeeper: (typeOrName: string, state: EditorState) => boolean;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/keymap/listHelpers/nextListIsHigher.d.ts
|
|
60
|
+
declare const nextListIsHigher: (typeOrName: string, state: EditorState) => boolean;
|
|
61
|
+
declare namespace index_d_exports {
|
|
62
|
+
export { findListItemPos, getNextListDepth, handleBackspace, handleDelete, handleTab, hasListBefore, hasListItemAfter, hasListItemBefore, listItemHasSubList, nextListIsDeeper, nextListIsHigher };
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { ListKeymap, ListKeymapOptions, index_d_exports as listHelpers };
|
|
66
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Editor, Extension } from "@tiptap/core";
|
|
2
|
+
import { Node, NodeType } from "@tiptap/pm/model";
|
|
3
|
+
import { EditorState } from "@tiptap/pm/state";
|
|
4
|
+
//#region src/keymap/list-keymap.d.ts
|
|
5
|
+
type ListKeymapOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* An array of list types. This is used for item and wrapper list matching.
|
|
8
|
+
* @default []
|
|
9
|
+
* @example [{ itemName: 'listItem', wrapperNames: ['bulletList', 'orderedList'] }]
|
|
10
|
+
*/
|
|
11
|
+
listTypes: Array<{
|
|
12
|
+
itemName: string;
|
|
13
|
+
wrapperNames: string[];
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This extension registers custom keymaps to change the behaviour of the backspace and delete keys.
|
|
18
|
+
* By default Prosemirror keyhandling will always lift or sink items so paragraphs are joined into
|
|
19
|
+
* the adjacent or previous list item. This extension will prevent this behaviour and instead will
|
|
20
|
+
* try to join paragraphs from two list items into a single list item.
|
|
21
|
+
* @see https://www.tiptap.dev/api/extensions/list-keymap
|
|
22
|
+
*/
|
|
23
|
+
declare const ListKeymap: Extension<ListKeymapOptions, any>;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/keymap/listHelpers/findListItemPos.d.ts
|
|
26
|
+
declare const findListItemPos: (typeOrName: string | NodeType, state: EditorState) => {
|
|
27
|
+
$pos: import("prosemirror-model").ResolvedPos;
|
|
28
|
+
depth: number;
|
|
29
|
+
} | null;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/keymap/listHelpers/getNextListDepth.d.ts
|
|
32
|
+
declare const getNextListDepth: (typeOrName: string, state: EditorState) => number | false;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/keymap/listHelpers/handleBackspace.d.ts
|
|
35
|
+
declare const handleBackspace: (editor: Editor, name: string, parentListTypes: string[]) => boolean;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/keymap/listHelpers/handleDelete.d.ts
|
|
38
|
+
declare const handleDelete: (editor: Editor, name: string) => boolean;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/keymap/listHelpers/handleTab.d.ts
|
|
41
|
+
declare const handleTab: (editor: Editor, name: string, parentListTypes: string[]) => boolean;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/keymap/listHelpers/hasListBefore.d.ts
|
|
44
|
+
declare const hasListBefore: (editorState: EditorState, name: string, parentListTypes: string[]) => boolean;
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/keymap/listHelpers/hasListItemAfter.d.ts
|
|
47
|
+
declare const hasListItemAfter: (typeOrName: string, state: EditorState) => boolean;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/keymap/listHelpers/hasListItemBefore.d.ts
|
|
50
|
+
declare const hasListItemBefore: (typeOrName: string, state: EditorState) => boolean;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/keymap/listHelpers/listItemHasSubList.d.ts
|
|
53
|
+
declare const listItemHasSubList: (typeOrName: string, state: EditorState, node?: Node) => boolean;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/keymap/listHelpers/nextListIsDeeper.d.ts
|
|
56
|
+
declare const nextListIsDeeper: (typeOrName: string, state: EditorState) => boolean;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/keymap/listHelpers/nextListIsHigher.d.ts
|
|
59
|
+
declare const nextListIsHigher: (typeOrName: string, state: EditorState) => boolean;
|
|
60
|
+
declare namespace index_d_exports {
|
|
61
|
+
export { findListItemPos, getNextListDepth, handleBackspace, handleDelete, handleTab, hasListBefore, hasListItemAfter, hasListItemBefore, listItemHasSubList, nextListIsDeeper, nextListIsHigher };
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ListKeymap, ListKeymapOptions, index_d_exports as listHelpers };
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { Extension, getNodeAtPosition, getNodeType, getPreviousBlockSibling, isAtEndOfNode, isAtStartOfNode, isNodeActive } from "@tiptap/core";
|
|
3
|
+
import { Fragment } from "@tiptap/pm/model";
|
|
4
|
+
import { TextSelection } from "@tiptap/pm/state";
|
|
5
|
+
//#region src/keymap/listHelpers/findListItemPos.ts
|
|
6
|
+
const findListItemPos = (typeOrName, state) => {
|
|
7
|
+
const { $from } = state.selection;
|
|
8
|
+
const nodeType = getNodeType(typeOrName, state.schema);
|
|
9
|
+
let currentNode = null;
|
|
10
|
+
let currentDepth = $from.depth;
|
|
11
|
+
let currentPos = $from.pos;
|
|
12
|
+
let targetDepth = null;
|
|
13
|
+
while (currentDepth > 0 && targetDepth === null) {
|
|
14
|
+
currentNode = $from.node(currentDepth);
|
|
15
|
+
if (currentNode.type === nodeType) targetDepth = currentDepth;
|
|
16
|
+
else {
|
|
17
|
+
currentDepth -= 1;
|
|
18
|
+
currentPos -= 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
if (targetDepth === null) return null;
|
|
22
|
+
return {
|
|
23
|
+
$pos: state.doc.resolve(currentPos),
|
|
24
|
+
depth: targetDepth
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/keymap/listHelpers/getNextListDepth.ts
|
|
29
|
+
const getNextListDepth = (typeOrName, state) => {
|
|
30
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
31
|
+
if (!listItemPos) return false;
|
|
32
|
+
const [, depth] = getNodeAtPosition(state, typeOrName, listItemPos.$pos.pos + 4);
|
|
33
|
+
return depth;
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/keymap/listHelpers/hasListBefore.ts
|
|
37
|
+
const hasListBefore = (editorState, name, parentListTypes) => {
|
|
38
|
+
const { $anchor } = editorState.selection;
|
|
39
|
+
const previousNodePos = Math.max(0, $anchor.pos - 2);
|
|
40
|
+
const previousNode = editorState.doc.resolve(previousNodePos).node();
|
|
41
|
+
if (!previousNode || !parentListTypes.includes(previousNode.type.name)) return false;
|
|
42
|
+
return true;
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/keymap/listHelpers/handleBackspace.ts
|
|
46
|
+
const handleBackspace = (editor, name, parentListTypes) => {
|
|
47
|
+
if (editor.commands.undoInputRule()) return true;
|
|
48
|
+
if (editor.state.selection.from !== editor.state.selection.to) return false;
|
|
49
|
+
if (!isNodeActive(editor.state, name) && hasListBefore(editor.state, name, parentListTypes)) {
|
|
50
|
+
const { $anchor } = editor.state.selection;
|
|
51
|
+
const $listPos = editor.state.doc.resolve($anchor.before() - 1);
|
|
52
|
+
const listDescendants = [];
|
|
53
|
+
$listPos.node().descendants((node, pos) => {
|
|
54
|
+
if (node.type.name === name) listDescendants.push({
|
|
55
|
+
node,
|
|
56
|
+
pos
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const lastItem = listDescendants.at(-1);
|
|
60
|
+
if (!lastItem) return false;
|
|
61
|
+
const $lastItemPos = editor.state.doc.resolve($listPos.start() + lastItem.pos + 1);
|
|
62
|
+
return editor.chain().cut({
|
|
63
|
+
from: $anchor.start() - 1,
|
|
64
|
+
to: $anchor.end() + 1
|
|
65
|
+
}, $lastItemPos.end()).joinForward().run();
|
|
66
|
+
}
|
|
67
|
+
if (!isNodeActive(editor.state, name)) return false;
|
|
68
|
+
if (!isAtStartOfNode(editor.state)) return false;
|
|
69
|
+
const { $from } = editor.state.selection;
|
|
70
|
+
const itemDepth = $from.depth - 1;
|
|
71
|
+
if ($from.node(itemDepth).type !== editor.schema.nodes[name] || $from.index(itemDepth) !== 0) return false;
|
|
72
|
+
return editor.chain().liftListItem(name).run();
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/keymap/listHelpers/nextListIsDeeper.ts
|
|
76
|
+
const nextListIsDeeper = (typeOrName, state) => {
|
|
77
|
+
const listDepth = getNextListDepth(typeOrName, state);
|
|
78
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
79
|
+
if (!listItemPos || !listDepth) return false;
|
|
80
|
+
if (listDepth > listItemPos.depth) return true;
|
|
81
|
+
return false;
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/keymap/listHelpers/nextListIsHigher.ts
|
|
85
|
+
const nextListIsHigher = (typeOrName, state) => {
|
|
86
|
+
const listDepth = getNextListDepth(typeOrName, state);
|
|
87
|
+
const listItemPos = findListItemPos(typeOrName, state);
|
|
88
|
+
if (!listItemPos || !listDepth) return false;
|
|
89
|
+
if (listDepth < listItemPos.depth) return true;
|
|
90
|
+
return false;
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/keymap/listHelpers/handleDelete.ts
|
|
94
|
+
const handleDelete = (editor, name) => {
|
|
95
|
+
if (!isNodeActive(editor.state, name)) return false;
|
|
96
|
+
if (!isAtEndOfNode(editor.state, name)) return false;
|
|
97
|
+
const { selection } = editor.state;
|
|
98
|
+
const { $from, $to } = selection;
|
|
99
|
+
if (!selection.empty && $from.sameParent($to)) return false;
|
|
100
|
+
if (nextListIsDeeper(name, editor.state)) return editor.chain().focus(editor.state.selection.from + 4).lift(name).joinBackward().run();
|
|
101
|
+
if (nextListIsHigher(name, editor.state)) return editor.chain().joinForward().joinBackward().run();
|
|
102
|
+
return editor.commands.joinItemForward();
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/keymap/listHelpers/handleTab.ts
|
|
106
|
+
const handleTab = (editor, name, parentListTypes) => {
|
|
107
|
+
const { state } = editor;
|
|
108
|
+
const { selection } = state;
|
|
109
|
+
if (!selection.empty) return false;
|
|
110
|
+
const { $from } = selection;
|
|
111
|
+
if ($from.parentOffset !== 0) return false;
|
|
112
|
+
if (!$from.parent.isTextblock) return false;
|
|
113
|
+
if (isNodeActive(state, name)) return false;
|
|
114
|
+
const previous = getPreviousBlockSibling($from);
|
|
115
|
+
if (!previous || !parentListTypes.includes(previous.type.name)) return false;
|
|
116
|
+
const lastItem = previous.lastChild;
|
|
117
|
+
if (!lastItem || lastItem.type.name !== name) return false;
|
|
118
|
+
const block = $from.parent;
|
|
119
|
+
if (!lastItem.canReplace(lastItem.childCount, lastItem.childCount, Fragment.from(block))) return false;
|
|
120
|
+
const blockStart = $from.before();
|
|
121
|
+
const blockEnd = $from.after();
|
|
122
|
+
const insideLastItemEnd = blockStart - 2;
|
|
123
|
+
return editor.commands.command(({ tr, dispatch }) => {
|
|
124
|
+
if (dispatch) {
|
|
125
|
+
tr.delete(blockStart, blockEnd).insert(insideLastItemEnd, Fragment.from(block));
|
|
126
|
+
tr.setSelection(TextSelection.create(tr.doc, insideLastItemEnd + 1));
|
|
127
|
+
tr.scrollIntoView();
|
|
128
|
+
}
|
|
129
|
+
return true;
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/keymap/listHelpers/hasListItemAfter.ts
|
|
134
|
+
const hasListItemAfter = (typeOrName, state) => {
|
|
135
|
+
var _$targetPos$nodeAfter;
|
|
136
|
+
const { $anchor } = state.selection;
|
|
137
|
+
const $targetPos = state.doc.resolve($anchor.pos - $anchor.parentOffset - 2);
|
|
138
|
+
if ($targetPos.index() === $targetPos.parent.childCount - 1) return false;
|
|
139
|
+
if (((_$targetPos$nodeAfter = $targetPos.nodeAfter) === null || _$targetPos$nodeAfter === void 0 ? void 0 : _$targetPos$nodeAfter.type.name) !== typeOrName) return false;
|
|
140
|
+
return true;
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/keymap/listHelpers/hasListItemBefore.ts
|
|
144
|
+
const hasListItemBefore = (typeOrName, state) => {
|
|
145
|
+
var _$targetPos$nodeBefor;
|
|
146
|
+
const { $anchor } = state.selection;
|
|
147
|
+
const $targetPos = state.doc.resolve($anchor.pos - 2);
|
|
148
|
+
if ($targetPos.index() === 0) return false;
|
|
149
|
+
if (((_$targetPos$nodeBefor = $targetPos.nodeBefore) === null || _$targetPos$nodeBefor === void 0 ? void 0 : _$targetPos$nodeBefor.type.name) !== typeOrName) return false;
|
|
150
|
+
return true;
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/keymap/listHelpers/listItemHasSubList.ts
|
|
154
|
+
const listItemHasSubList = (typeOrName, state, node) => {
|
|
155
|
+
if (!node) return false;
|
|
156
|
+
const nodeType = getNodeType(typeOrName, state.schema);
|
|
157
|
+
let hasSubList = false;
|
|
158
|
+
node.descendants((child) => {
|
|
159
|
+
if (child.type === nodeType) hasSubList = true;
|
|
160
|
+
});
|
|
161
|
+
return hasSubList;
|
|
162
|
+
};
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/keymap/listHelpers/index.ts
|
|
165
|
+
var listHelpers_exports = /* @__PURE__ */ __exportAll({
|
|
166
|
+
findListItemPos: () => findListItemPos,
|
|
167
|
+
getNextListDepth: () => getNextListDepth,
|
|
168
|
+
handleBackspace: () => handleBackspace,
|
|
169
|
+
handleDelete: () => handleDelete,
|
|
170
|
+
handleTab: () => handleTab,
|
|
171
|
+
hasListBefore: () => hasListBefore,
|
|
172
|
+
hasListItemAfter: () => hasListItemAfter,
|
|
173
|
+
hasListItemBefore: () => hasListItemBefore,
|
|
174
|
+
listItemHasSubList: () => listItemHasSubList,
|
|
175
|
+
nextListIsDeeper: () => nextListIsDeeper,
|
|
176
|
+
nextListIsHigher: () => nextListIsHigher
|
|
177
|
+
});
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/keymap/list-keymap.ts
|
|
180
|
+
/**
|
|
181
|
+
* This extension registers custom keymaps to change the behaviour of the backspace and delete keys.
|
|
182
|
+
* By default Prosemirror keyhandling will always lift or sink items so paragraphs are joined into
|
|
183
|
+
* the adjacent or previous list item. This extension will prevent this behaviour and instead will
|
|
184
|
+
* try to join paragraphs from two list items into a single list item.
|
|
185
|
+
* @see https://www.tiptap.dev/api/extensions/list-keymap
|
|
186
|
+
*/
|
|
187
|
+
const ListKeymap = Extension.create({
|
|
188
|
+
name: "listKeymap",
|
|
189
|
+
addOptions() {
|
|
190
|
+
return { listTypes: [{
|
|
191
|
+
itemName: "listItem",
|
|
192
|
+
wrapperNames: ["bulletList", "orderedList"]
|
|
193
|
+
}, {
|
|
194
|
+
itemName: "taskItem",
|
|
195
|
+
wrapperNames: ["taskList"]
|
|
196
|
+
}] };
|
|
197
|
+
},
|
|
198
|
+
addKeyboardShortcuts() {
|
|
199
|
+
return {
|
|
200
|
+
Delete: ({ editor }) => {
|
|
201
|
+
let handled = false;
|
|
202
|
+
this.options.listTypes.forEach(({ itemName }) => {
|
|
203
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
204
|
+
if (handleDelete(editor, itemName)) handled = true;
|
|
205
|
+
});
|
|
206
|
+
return handled;
|
|
207
|
+
},
|
|
208
|
+
"Mod-Delete": ({ editor }) => {
|
|
209
|
+
let handled = false;
|
|
210
|
+
this.options.listTypes.forEach(({ itemName }) => {
|
|
211
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
212
|
+
if (handleDelete(editor, itemName)) handled = true;
|
|
213
|
+
});
|
|
214
|
+
return handled;
|
|
215
|
+
},
|
|
216
|
+
Backspace: ({ editor }) => {
|
|
217
|
+
let handled = false;
|
|
218
|
+
this.options.listTypes.forEach(({ itemName, wrapperNames }) => {
|
|
219
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
220
|
+
if (handleBackspace(editor, itemName, wrapperNames)) handled = true;
|
|
221
|
+
});
|
|
222
|
+
return handled;
|
|
223
|
+
},
|
|
224
|
+
"Mod-Backspace": ({ editor }) => {
|
|
225
|
+
let handled = false;
|
|
226
|
+
this.options.listTypes.forEach(({ itemName, wrapperNames }) => {
|
|
227
|
+
if (editor.state.schema.nodes[itemName] === void 0) return;
|
|
228
|
+
if (handleBackspace(editor, itemName, wrapperNames)) handled = true;
|
|
229
|
+
});
|
|
230
|
+
return handled;
|
|
231
|
+
},
|
|
232
|
+
Tab: ({ editor }) => {
|
|
233
|
+
for (const { itemName, wrapperNames } of this.options.listTypes) {
|
|
234
|
+
if (editor.state.schema.nodes[itemName] === void 0) continue;
|
|
235
|
+
if (handleTab(editor, itemName, wrapperNames)) return true;
|
|
236
|
+
}
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
//#endregion
|
|
243
|
+
export { ListKeymap, listHelpers_exports as listHelpers };
|
|
244
|
+
|
|
245
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|