@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,671 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
3
|
+
let _tiptap_core = require("@tiptap/core");
|
|
4
|
+
//#region src/ordered-list/roman.ts
|
|
5
|
+
const ROMAN_NUMERALS = [
|
|
6
|
+
[1e3, "m"],
|
|
7
|
+
[900, "cm"],
|
|
8
|
+
[500, "d"],
|
|
9
|
+
[400, "cd"],
|
|
10
|
+
[100, "c"],
|
|
11
|
+
[90, "xc"],
|
|
12
|
+
[50, "l"],
|
|
13
|
+
[40, "xl"],
|
|
14
|
+
[10, "x"],
|
|
15
|
+
[9, "ix"],
|
|
16
|
+
[5, "v"],
|
|
17
|
+
[4, "iv"],
|
|
18
|
+
[1, "i"]
|
|
19
|
+
];
|
|
20
|
+
const ALPHA_NUMERALS = "abcdefghijklmnopqrstuvwxyz";
|
|
21
|
+
/**
|
|
22
|
+
* Marker segment for ordered list lines: numeric, roman, or 1–2 letter alpha.
|
|
23
|
+
* Roman is matched before alpha so "iii" is roman; invalid romans like "aa" fall through to alpha.
|
|
24
|
+
*/
|
|
25
|
+
const ORDERED_LIST_MARKER_PATTERN = String.raw`\d+|[ivxlcdmIVXLCDM]+|${"[a-zA-Z]{1,2}"}`;
|
|
26
|
+
/**
|
|
27
|
+
* Convert a number to lowercase roman numerals.
|
|
28
|
+
* @example toRoman(1) // 'i'
|
|
29
|
+
* @example toRoman(4) // 'iv'
|
|
30
|
+
*/
|
|
31
|
+
function toRoman(num) {
|
|
32
|
+
let remaining = num;
|
|
33
|
+
let result = "";
|
|
34
|
+
for (const [value, numeral] of ROMAN_NUMERALS) while (remaining >= value) {
|
|
35
|
+
result += numeral;
|
|
36
|
+
remaining -= value;
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Convert a number to uppercase roman numerals.
|
|
42
|
+
* @example toRomanUpper(1) // 'I'
|
|
43
|
+
* @example toRomanUpper(4) // 'IV'
|
|
44
|
+
*/
|
|
45
|
+
function toRomanUpper(num) {
|
|
46
|
+
return toRoman(num).toUpperCase();
|
|
47
|
+
}
|
|
48
|
+
function fromRoman(roman) {
|
|
49
|
+
const lower = roman.toLowerCase();
|
|
50
|
+
let index = 0;
|
|
51
|
+
let result = 0;
|
|
52
|
+
while (index < lower.length) {
|
|
53
|
+
let matched = false;
|
|
54
|
+
for (const [value, numeral] of ROMAN_NUMERALS) if (lower.startsWith(numeral, index)) {
|
|
55
|
+
result += value;
|
|
56
|
+
index += numeral.length;
|
|
57
|
+
matched = true;
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
if (!matched) return 0;
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
function isValidRoman(marker) {
|
|
65
|
+
if (!/^[ivxlcdmIVXLCDM]+$/.test(marker)) return false;
|
|
66
|
+
const value = fromRoman(marker);
|
|
67
|
+
if (value <= 0) return false;
|
|
68
|
+
return (marker === marker.toLowerCase() ? toRoman(value) : toRomanUpper(value)) === marker;
|
|
69
|
+
}
|
|
70
|
+
function fromAlpha(marker) {
|
|
71
|
+
const lower = marker.toLowerCase();
|
|
72
|
+
if (lower.length === 1) return lower.charCodeAt(0) - "a".charCodeAt(0) + 1;
|
|
73
|
+
if (lower.length === 2) {
|
|
74
|
+
const first = lower.charCodeAt(0) - "a".charCodeAt(0);
|
|
75
|
+
const second = lower.charCodeAt(1) - "a".charCodeAt(0);
|
|
76
|
+
return (first + 1) * 26 + second + 1;
|
|
77
|
+
}
|
|
78
|
+
return 0;
|
|
79
|
+
}
|
|
80
|
+
function toRomanAlpha(num) {
|
|
81
|
+
if (num <= 26) return ALPHA_NUMERALS[num - 1];
|
|
82
|
+
const first = Math.floor((num - 1) / 26) - 1;
|
|
83
|
+
const second = (num - 1) % 26;
|
|
84
|
+
if (first < 0) return ALPHA_NUMERALS[second];
|
|
85
|
+
return ALPHA_NUMERALS[first] + ALPHA_NUMERALS[second];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Extract the list marker type from a marker string.
|
|
89
|
+
* Supports "1", "a", "A", "i", "I" marker styles.
|
|
90
|
+
*
|
|
91
|
+
* @param marker The text content of the list marker (e.g. "a", "1", "iii", "b")
|
|
92
|
+
* @returns The normalized type string, or undefined for default numeric type
|
|
93
|
+
*/
|
|
94
|
+
function detectMarkerType(marker) {
|
|
95
|
+
if (!marker || /^\d+$/.test(marker)) return;
|
|
96
|
+
if (isValidRoman(marker)) return marker === marker.toLowerCase() ? "i" : "I";
|
|
97
|
+
if (/^[a-z]{1,2}$/.test(marker)) return "a";
|
|
98
|
+
if (/^[A-Z]{1,2}$/.test(marker)) return "A";
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Convert a list marker string to its numeric start position.
|
|
102
|
+
*
|
|
103
|
+
* @param marker The text content of the list marker (e.g. "3", "b", "II")
|
|
104
|
+
* @returns The 1-based start value for the ordered list
|
|
105
|
+
*/
|
|
106
|
+
function markerToStart(marker) {
|
|
107
|
+
if (/^\d+$/.test(marker)) return parseInt(marker, 10);
|
|
108
|
+
const type = detectMarkerType(marker);
|
|
109
|
+
if (type === "i" || type === "I") return fromRoman(marker);
|
|
110
|
+
if (type === "a" || type === "A") {
|
|
111
|
+
const start = fromAlpha(marker);
|
|
112
|
+
return start > 0 ? start : 1;
|
|
113
|
+
}
|
|
114
|
+
const parsed = parseInt(marker, 10);
|
|
115
|
+
return Number.isNaN(parsed) ? 1 : parsed;
|
|
116
|
+
}
|
|
117
|
+
function startToMarker(type, start) {
|
|
118
|
+
if (type === "numeric") return String(start);
|
|
119
|
+
switch (type) {
|
|
120
|
+
case "a": return toRomanAlpha(start);
|
|
121
|
+
case "A": return toRomanAlpha(start).toUpperCase();
|
|
122
|
+
case "i": return toRoman(start);
|
|
123
|
+
case "I": return toRomanUpper(start);
|
|
124
|
+
default: return String(start);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Returns true when all markers share the same style and increment by 1.
|
|
129
|
+
* Style is inferred from the first marker so ambiguous letters (e.g. "c", "i")
|
|
130
|
+
* are not re-classified differently on later lines.
|
|
131
|
+
*/
|
|
132
|
+
function areOrderedListMarkersSequential(markers) {
|
|
133
|
+
var _detectMarkerType;
|
|
134
|
+
if (markers.length === 0) return false;
|
|
135
|
+
const firstType = (_detectMarkerType = detectMarkerType(markers[0])) !== null && _detectMarkerType !== void 0 ? _detectMarkerType : "numeric";
|
|
136
|
+
const firstStart = markerToStart(markers[0]);
|
|
137
|
+
if (firstStart < 1) return false;
|
|
138
|
+
for (let i = 0; i < markers.length; i++) {
|
|
139
|
+
const expected = startToMarker(firstType, firstStart + i);
|
|
140
|
+
if (markers[i] !== expected) return false;
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Parse a list marker into HTML ordered-list attrs (type + start).
|
|
146
|
+
*/
|
|
147
|
+
function parseListMarker(marker) {
|
|
148
|
+
return {
|
|
149
|
+
type: detectMarkerType(marker),
|
|
150
|
+
start: markerToStart(marker)
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Build orderedList node attrs from the first list item marker.
|
|
155
|
+
*/
|
|
156
|
+
function buildOrderedListAttrsFromMarker(marker) {
|
|
157
|
+
const { type, start } = parseListMarker(marker);
|
|
158
|
+
const attrs = {};
|
|
159
|
+
if (type) attrs.type = type;
|
|
160
|
+
if (start !== 1) attrs.start = start;
|
|
161
|
+
return attrs;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Returns the list marker prefix for a given item at a given index.
|
|
165
|
+
*
|
|
166
|
+
* @param type The list type attribute (e.g. "a", "A", "i", "I", null/undefined for default)
|
|
167
|
+
* @param index The zero-based index of the list item
|
|
168
|
+
* @param separator The separator to use (default: ". ")
|
|
169
|
+
* @returns The marker string (e.g. "a. ", "I. ", "1. ")
|
|
170
|
+
*/
|
|
171
|
+
function getListMarker(type, index, separator = ". ") {
|
|
172
|
+
const position = index + 1;
|
|
173
|
+
if (!type || type === "1") return `${position}${separator}`;
|
|
174
|
+
switch (type) {
|
|
175
|
+
case "a": return `${toRomanAlpha(position)}${separator}`;
|
|
176
|
+
case "A": return `${toRomanAlpha(position).toUpperCase()}${separator}`;
|
|
177
|
+
case "i": return `${toRoman(position)}${separator}`;
|
|
178
|
+
case "I": return `${toRomanUpper(position)}${separator}`;
|
|
179
|
+
default: return `${position}${separator}`;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/ordered-list/utils.ts
|
|
184
|
+
/**
|
|
185
|
+
* Matches an ordered list item line with optional leading whitespace.
|
|
186
|
+
* Captures: (1) indentation spaces, (2) item marker (number, letter, or roman numeral),
|
|
187
|
+
* (3) separator (. or )), (4) content after marker
|
|
188
|
+
*
|
|
189
|
+
* Examples: "1. Item", " a) Nested item", " I. Roman item", "iii. Another", "aa. Item 27"
|
|
190
|
+
*/
|
|
191
|
+
const ORDERED_LIST_ITEM_REGEX = new RegExp(`^(\\s*)(${ORDERED_LIST_MARKER_PATTERN})([.)])\\s+(.*)$`);
|
|
192
|
+
/**
|
|
193
|
+
* Matches any line that starts with whitespace (indented content).
|
|
194
|
+
* Used to identify continuation content that belongs to a list item.
|
|
195
|
+
*/
|
|
196
|
+
const INDENTED_LINE_REGEX = /^\s/;
|
|
197
|
+
/**
|
|
198
|
+
* This are blocks that can interrupt a paragraph, so a line starting with one of
|
|
199
|
+
* them can never be lazy continuation text of a list item
|
|
200
|
+
*/
|
|
201
|
+
const PARAGRAPH_INTERRUPTERS = {
|
|
202
|
+
heading: /^#{1,6}(?:\s|$)/,
|
|
203
|
+
bulletItem: /^[-+*]\s+/,
|
|
204
|
+
codeFence: /^(?:```|~~~)/,
|
|
205
|
+
blockMath: /^\$\$/,
|
|
206
|
+
thematicBreak: /^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/
|
|
207
|
+
};
|
|
208
|
+
function isOrderedListMarkerLine(line) {
|
|
209
|
+
return ORDERED_LIST_ITEM_REGEX.test(line.trimStart());
|
|
210
|
+
}
|
|
211
|
+
function isBlockContentLine(line) {
|
|
212
|
+
const trimmedLine = line.trimStart();
|
|
213
|
+
return PARAGRAPH_INTERRUPTERS.bulletItem.test(trimmedLine) || isOrderedListMarkerLine(trimmedLine) || PARAGRAPH_INTERRUPTERS.heading.test(trimmedLine) || PARAGRAPH_INTERRUPTERS.thematicBreak.test(trimmedLine) && !trimmedLine.startsWith("-") || /^>\s?/.test(trimmedLine) || PARAGRAPH_INTERRUPTERS.codeFence.test(trimmedLine) || PARAGRAPH_INTERRUPTERS.blockMath.test(trimmedLine);
|
|
214
|
+
}
|
|
215
|
+
function interruptsLazyContinuation(line) {
|
|
216
|
+
return Object.values(PARAGRAPH_INTERRUPTERS).some((pattern) => pattern.test(line));
|
|
217
|
+
}
|
|
218
|
+
function splitItemContent(contentLines) {
|
|
219
|
+
const paragraphLines = [];
|
|
220
|
+
const blockLines = [];
|
|
221
|
+
let reachedBlockBoundary = false;
|
|
222
|
+
contentLines.forEach((line) => {
|
|
223
|
+
if (reachedBlockBoundary) {
|
|
224
|
+
blockLines.push(line);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
if (line.trim() === "") {
|
|
228
|
+
reachedBlockBoundary = true;
|
|
229
|
+
blockLines.push(line);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (paragraphLines.length > 0 && isBlockContentLine(line)) {
|
|
233
|
+
reachedBlockBoundary = true;
|
|
234
|
+
blockLines.push(line);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
paragraphLines.push(line);
|
|
238
|
+
});
|
|
239
|
+
return {
|
|
240
|
+
paragraphLines,
|
|
241
|
+
blockLines
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Collects all ordered list items from lines, parsing them into a flat array
|
|
246
|
+
* with indentation information. Stops collecting continuation content when
|
|
247
|
+
* encountering nested list items, allowing them to be processed separately.
|
|
248
|
+
*
|
|
249
|
+
* @param lines - Array of source lines to parse
|
|
250
|
+
* @returns Tuple of [listItems array, number of lines consumed]
|
|
251
|
+
*/
|
|
252
|
+
function collectOrderedListItems(lines) {
|
|
253
|
+
const listItems = [];
|
|
254
|
+
let currentLineIndex = 0;
|
|
255
|
+
let consumed = 0;
|
|
256
|
+
while (currentLineIndex < lines.length) {
|
|
257
|
+
const line = lines[currentLineIndex];
|
|
258
|
+
const match = line.match(ORDERED_LIST_ITEM_REGEX);
|
|
259
|
+
if (!match) break;
|
|
260
|
+
const [, indent, marker, _separator, content] = match;
|
|
261
|
+
const indentLevel = indent.length;
|
|
262
|
+
const number = parseInt(marker, 10);
|
|
263
|
+
const markerType = isNaN(number) ? detectMarkerType(marker) : void 0;
|
|
264
|
+
const itemNumber = isNaN(number) ? markerToStart(marker) : number;
|
|
265
|
+
const itemContentLines = [content];
|
|
266
|
+
let nextLineIndex = currentLineIndex + 1;
|
|
267
|
+
const itemLines = [line];
|
|
268
|
+
let sawBlankLine = false;
|
|
269
|
+
while (nextLineIndex < lines.length) {
|
|
270
|
+
const nextLine = lines[nextLineIndex];
|
|
271
|
+
if (nextLine.match(ORDERED_LIST_ITEM_REGEX)) break;
|
|
272
|
+
if (nextLine.trim() === "") {
|
|
273
|
+
itemLines.push(nextLine);
|
|
274
|
+
itemContentLines.push("");
|
|
275
|
+
sawBlankLine = true;
|
|
276
|
+
nextLineIndex += 1;
|
|
277
|
+
} else if (nextLine.match(INDENTED_LINE_REGEX)) {
|
|
278
|
+
const leadingWhitespace = nextLine.length - nextLine.trimStart().length;
|
|
279
|
+
const contentIndent = indentLevel + marker.length + 1;
|
|
280
|
+
itemLines.push(nextLine);
|
|
281
|
+
itemContentLines.push(nextLine.slice(Math.min(leadingWhitespace, contentIndent)));
|
|
282
|
+
nextLineIndex += 1;
|
|
283
|
+
} else {
|
|
284
|
+
if (sawBlankLine || interruptsLazyContinuation(nextLine)) break;
|
|
285
|
+
itemLines.push(nextLine);
|
|
286
|
+
itemContentLines.push(nextLine);
|
|
287
|
+
nextLineIndex += 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
listItems.push({
|
|
291
|
+
indent: indentLevel,
|
|
292
|
+
number: itemNumber,
|
|
293
|
+
type: markerType,
|
|
294
|
+
content: itemContentLines.join("\n").trim(),
|
|
295
|
+
contentLines: itemContentLines,
|
|
296
|
+
raw: itemLines.join("\n")
|
|
297
|
+
});
|
|
298
|
+
consumed = nextLineIndex;
|
|
299
|
+
currentLineIndex = nextLineIndex;
|
|
300
|
+
}
|
|
301
|
+
return [listItems, consumed];
|
|
302
|
+
}
|
|
303
|
+
const PLAIN_TEXT_ORDERED_LIST_LINE_REGEX = new RegExp(`^(${ORDERED_LIST_MARKER_PATTERN})([.)])\\s+(.+)$`);
|
|
304
|
+
/**
|
|
305
|
+
* Parse plain-text pasted ordered list lines into JSONContent, or null if not a typed list.
|
|
306
|
+
*/
|
|
307
|
+
function parsePlainTextOrderedListPaste(text) {
|
|
308
|
+
const lines = text.split("\n").filter((l) => l.trim().length > 0);
|
|
309
|
+
if (lines.length === 0) return null;
|
|
310
|
+
const parsedItems = [];
|
|
311
|
+
for (const line of lines) {
|
|
312
|
+
const match = line.trim().match(PLAIN_TEXT_ORDERED_LIST_LINE_REGEX);
|
|
313
|
+
if (!match) return null;
|
|
314
|
+
parsedItems.push({
|
|
315
|
+
marker: match[1],
|
|
316
|
+
content: match[3]
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
if (!areOrderedListMarkersSequential(parsedItems.map((item) => item.marker))) return null;
|
|
320
|
+
return {
|
|
321
|
+
type: "orderedList",
|
|
322
|
+
attrs: buildOrderedListAttrsFromMarker(parsedItems[0].marker),
|
|
323
|
+
content: parsedItems.map((item) => ({
|
|
324
|
+
type: "listItem",
|
|
325
|
+
content: [{
|
|
326
|
+
type: "paragraph",
|
|
327
|
+
content: [{
|
|
328
|
+
type: "text",
|
|
329
|
+
text: item.content
|
|
330
|
+
}]
|
|
331
|
+
}]
|
|
332
|
+
}))
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Recursively builds a nested structure from a flat array of list items
|
|
337
|
+
* based on their indentation levels. Creates proper markdown tokens with
|
|
338
|
+
* nested lists where appropriate.
|
|
339
|
+
*
|
|
340
|
+
* @param items - Flat array of list items with indentation info
|
|
341
|
+
* @param baseIndent - The indentation level to process at this recursion level
|
|
342
|
+
* @param lexer - Markdown lexer for parsing inline and block content
|
|
343
|
+
* @returns Array of list_item tokens with proper nesting
|
|
344
|
+
*/
|
|
345
|
+
function buildNestedStructure(items, baseIndent, lexer) {
|
|
346
|
+
const result = [];
|
|
347
|
+
let currentIndex = 0;
|
|
348
|
+
while (currentIndex < items.length) {
|
|
349
|
+
const item = items[currentIndex];
|
|
350
|
+
if (item.indent === baseIndent) {
|
|
351
|
+
const { paragraphLines, blockLines } = splitItemContent(item.contentLines);
|
|
352
|
+
const mainText = paragraphLines.join("\n").trim();
|
|
353
|
+
const tokens = [];
|
|
354
|
+
if (mainText) tokens.push({
|
|
355
|
+
type: "paragraph",
|
|
356
|
+
raw: mainText,
|
|
357
|
+
tokens: lexer.inlineTokens(mainText)
|
|
358
|
+
});
|
|
359
|
+
const additionalContent = blockLines.join("\n").trim();
|
|
360
|
+
if (additionalContent) {
|
|
361
|
+
const blockTokens = lexer.blockTokens(additionalContent);
|
|
362
|
+
tokens.push(...blockTokens);
|
|
363
|
+
}
|
|
364
|
+
let lookAheadIndex = currentIndex + 1;
|
|
365
|
+
const nestedItems = [];
|
|
366
|
+
while (lookAheadIndex < items.length && items[lookAheadIndex].indent > baseIndent) {
|
|
367
|
+
nestedItems.push(items[lookAheadIndex]);
|
|
368
|
+
lookAheadIndex += 1;
|
|
369
|
+
}
|
|
370
|
+
if (nestedItems.length > 0) {
|
|
371
|
+
const nestedListItems = buildNestedStructure(nestedItems, Math.min(...nestedItems.map((nestedItem) => nestedItem.indent)), lexer);
|
|
372
|
+
tokens.push({
|
|
373
|
+
type: "list",
|
|
374
|
+
ordered: true,
|
|
375
|
+
start: nestedItems[0].number,
|
|
376
|
+
typeMarker: nestedItems[0].type,
|
|
377
|
+
items: nestedListItems,
|
|
378
|
+
raw: nestedItems.map((nestedItem) => nestedItem.raw).join("\n")
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
result.push({
|
|
382
|
+
type: "list_item",
|
|
383
|
+
raw: item.raw,
|
|
384
|
+
tokens
|
|
385
|
+
});
|
|
386
|
+
currentIndex = lookAheadIndex;
|
|
387
|
+
} else currentIndex += 1;
|
|
388
|
+
}
|
|
389
|
+
return result;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Parses markdown list item tokens into Tiptap JSONContent structure,
|
|
393
|
+
* ensuring text content is properly wrapped in paragraph nodes.
|
|
394
|
+
*
|
|
395
|
+
* @param items - Array of markdown tokens representing list items
|
|
396
|
+
* @param helpers - Markdown parse helpers for recursive parsing
|
|
397
|
+
* @returns Array of listItem JSONContent nodes
|
|
398
|
+
*/
|
|
399
|
+
function parseListItems(items, helpers) {
|
|
400
|
+
return items.map((item) => {
|
|
401
|
+
if (item.type !== "list_item") return helpers.parseChildren([item])[0];
|
|
402
|
+
const content = [];
|
|
403
|
+
if (item.tokens && item.tokens.length > 0) item.tokens.forEach((itemToken) => {
|
|
404
|
+
if (itemToken.type === "paragraph" || itemToken.type === "list" || itemToken.type === "blockquote" || itemToken.type === "code") content.push(...helpers.parseChildren([itemToken]));
|
|
405
|
+
else if (itemToken.type === "text" && itemToken.tokens) {
|
|
406
|
+
const inlineContent = helpers.parseChildren([itemToken]);
|
|
407
|
+
content.push({
|
|
408
|
+
type: "paragraph",
|
|
409
|
+
content: inlineContent
|
|
410
|
+
});
|
|
411
|
+
} else {
|
|
412
|
+
const parsed = helpers.parseChildren([itemToken]);
|
|
413
|
+
if (parsed.length > 0) content.push(...parsed);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
return {
|
|
417
|
+
type: "listItem",
|
|
418
|
+
content
|
|
419
|
+
};
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/ordered-list/collectOrderedListItemsFromSource.ts
|
|
424
|
+
const ORDERED_LIST_SCAN_WINDOW = 64;
|
|
425
|
+
function takeLines(source, max) {
|
|
426
|
+
const lines = [];
|
|
427
|
+
let start = 0;
|
|
428
|
+
while (lines.length < max) {
|
|
429
|
+
const lineEnd = source.indexOf("\n", start);
|
|
430
|
+
if (lineEnd === -1) {
|
|
431
|
+
lines.push(source.slice(start));
|
|
432
|
+
return lines;
|
|
433
|
+
}
|
|
434
|
+
lines.push(source.slice(start, lineEnd));
|
|
435
|
+
start = lineEnd + 1;
|
|
436
|
+
}
|
|
437
|
+
return lines;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Collect ordered list items from the start of `source`, reading only the lines the list needs.
|
|
441
|
+
*
|
|
442
|
+
* @param source Markdown beginning at a block boundary.
|
|
443
|
+
* @returns The items, how many lines they consumed, and the lines that were read.
|
|
444
|
+
* @example
|
|
445
|
+
* collectOrderedListItemsFromSource('1. one\n2. two\n\nAfter')
|
|
446
|
+
* // → [[item, item], 3, ['1. one', '2. two', '', 'After']]
|
|
447
|
+
*/
|
|
448
|
+
function collectOrderedListItemsFromSource(source) {
|
|
449
|
+
const firstLineEnd = source.indexOf("\n");
|
|
450
|
+
const firstLine = firstLineEnd === -1 ? source : source.slice(0, firstLineEnd);
|
|
451
|
+
if (!ORDERED_LIST_ITEM_REGEX.test(firstLine)) return [
|
|
452
|
+
[],
|
|
453
|
+
0,
|
|
454
|
+
[]
|
|
455
|
+
];
|
|
456
|
+
let windowSize = ORDERED_LIST_SCAN_WINDOW;
|
|
457
|
+
let lines = takeLines(source, windowSize);
|
|
458
|
+
let collected = collectOrderedListItems(lines);
|
|
459
|
+
while (collected[1] === lines.length && lines.length === windowSize) {
|
|
460
|
+
windowSize *= 2;
|
|
461
|
+
lines = takeLines(source, windowSize);
|
|
462
|
+
collected = collectOrderedListItems(lines);
|
|
463
|
+
}
|
|
464
|
+
return [
|
|
465
|
+
collected[0],
|
|
466
|
+
collected[1],
|
|
467
|
+
lines
|
|
468
|
+
];
|
|
469
|
+
}
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/ordered-list/ordered-list.ts
|
|
472
|
+
const ListItemName = "listItem";
|
|
473
|
+
const TextStyleName = "textStyle";
|
|
474
|
+
/**
|
|
475
|
+
* Matches an ordered list to a 1. on input (or any number followed by a dot).
|
|
476
|
+
*/
|
|
477
|
+
const orderedListInputRegex = /^(\d+)\.\s$/;
|
|
478
|
+
/**
|
|
479
|
+
* Maps CSS list-style-type values to HTML type attribute values.
|
|
480
|
+
* Google Docs and Word often use CSS instead of the HTML type attribute.
|
|
481
|
+
*/
|
|
482
|
+
function cssListStyleTypeToHtmlType(style) {
|
|
483
|
+
const match = style.match(/list-style-type\s*:\s*([^;]+)/i);
|
|
484
|
+
if (!match) return null;
|
|
485
|
+
switch (match[1].trim().toLowerCase()) {
|
|
486
|
+
case "upper-roman": return "I";
|
|
487
|
+
case "lower-roman": return "i";
|
|
488
|
+
case "upper-alpha":
|
|
489
|
+
case "upper-latin": return "A";
|
|
490
|
+
case "lower-alpha":
|
|
491
|
+
case "lower-latin": return "a";
|
|
492
|
+
default: return null;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* This extension allows you to create ordered lists.
|
|
497
|
+
* This requires the ListItem extension
|
|
498
|
+
* @see https://www.tiptap.dev/api/nodes/ordered-list
|
|
499
|
+
* @see https://www.tiptap.dev/api/nodes/list-item
|
|
500
|
+
*/
|
|
501
|
+
const OrderedList = _tiptap_core.Node.create({
|
|
502
|
+
name: "orderedList",
|
|
503
|
+
addOptions() {
|
|
504
|
+
return {
|
|
505
|
+
itemTypeName: "listItem",
|
|
506
|
+
HTMLAttributes: {},
|
|
507
|
+
keepMarks: false,
|
|
508
|
+
keepAttributes: false
|
|
509
|
+
};
|
|
510
|
+
},
|
|
511
|
+
group: "block list",
|
|
512
|
+
content() {
|
|
513
|
+
return `${this.options.itemTypeName}+`;
|
|
514
|
+
},
|
|
515
|
+
addAttributes() {
|
|
516
|
+
return {
|
|
517
|
+
start: {
|
|
518
|
+
default: 1,
|
|
519
|
+
parseHTML: (element) => {
|
|
520
|
+
return element.hasAttribute("start") ? parseInt(element.getAttribute("start") || "", 10) : 1;
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
type: {
|
|
524
|
+
default: null,
|
|
525
|
+
parseHTML: (element) => {
|
|
526
|
+
const htmlType = element.getAttribute("type");
|
|
527
|
+
if (htmlType) return htmlType;
|
|
528
|
+
const style = element.getAttribute("style");
|
|
529
|
+
if (style) {
|
|
530
|
+
const mappedFromOl = cssListStyleTypeToHtmlType(style);
|
|
531
|
+
if (mappedFromOl) return mappedFromOl;
|
|
532
|
+
}
|
|
533
|
+
const firstLi = element.querySelector("li");
|
|
534
|
+
if (firstLi) {
|
|
535
|
+
const liStyle = firstLi.getAttribute("style");
|
|
536
|
+
if (liStyle) {
|
|
537
|
+
const mappedFromLi = cssListStyleTypeToHtmlType(liStyle);
|
|
538
|
+
if (mappedFromLi) return mappedFromLi;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return null;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
},
|
|
546
|
+
parseHTML() {
|
|
547
|
+
return [{ tag: "ol" }];
|
|
548
|
+
},
|
|
549
|
+
renderHTML({ HTMLAttributes }) {
|
|
550
|
+
const { start, type, ...attributesWithoutType } = HTMLAttributes;
|
|
551
|
+
const attrs = (0, _tiptap_core.mergeAttributes)(this.options.HTMLAttributes, attributesWithoutType);
|
|
552
|
+
if (start !== 1) attrs.start = start;
|
|
553
|
+
if (type && type !== "1") attrs.type = type;
|
|
554
|
+
return [
|
|
555
|
+
"ol",
|
|
556
|
+
attrs,
|
|
557
|
+
0
|
|
558
|
+
];
|
|
559
|
+
},
|
|
560
|
+
markdownTokenName: "list",
|
|
561
|
+
parseMarkdown: (token, helpers) => {
|
|
562
|
+
if (token.type !== "list" || !token.ordered) return [];
|
|
563
|
+
const startValue = token.start || 1;
|
|
564
|
+
const typeValue = token.typeMarker;
|
|
565
|
+
const content = token.items ? parseListItems(token.items, helpers) : [];
|
|
566
|
+
const attrs = {};
|
|
567
|
+
if (startValue !== 1) attrs.start = startValue;
|
|
568
|
+
if (typeValue) attrs.type = typeValue;
|
|
569
|
+
if (Object.keys(attrs).length > 0) return {
|
|
570
|
+
type: "orderedList",
|
|
571
|
+
attrs,
|
|
572
|
+
content
|
|
573
|
+
};
|
|
574
|
+
return {
|
|
575
|
+
type: "orderedList",
|
|
576
|
+
content
|
|
577
|
+
};
|
|
578
|
+
},
|
|
579
|
+
renderMarkdown: (node, h) => {
|
|
580
|
+
if (!node.content) return "";
|
|
581
|
+
return h.renderChildren(node.content, "\n");
|
|
582
|
+
},
|
|
583
|
+
markdownTokenizer: {
|
|
584
|
+
name: "orderedList",
|
|
585
|
+
level: "block",
|
|
586
|
+
start: () => -1,
|
|
587
|
+
tokenize: (src, _tokens, lexer) => {
|
|
588
|
+
var _listItems$, _listItems$2;
|
|
589
|
+
const [listItems, consumed, lines] = collectOrderedListItemsFromSource(src);
|
|
590
|
+
if (listItems.length === 0) return;
|
|
591
|
+
const items = buildNestedStructure(listItems, listItems[0].indent, lexer);
|
|
592
|
+
if (items.length === 0) return;
|
|
593
|
+
return {
|
|
594
|
+
type: "list",
|
|
595
|
+
ordered: true,
|
|
596
|
+
start: ((_listItems$ = listItems[0]) === null || _listItems$ === void 0 ? void 0 : _listItems$.number) || 1,
|
|
597
|
+
typeMarker: (_listItems$2 = listItems[0]) === null || _listItems$2 === void 0 ? void 0 : _listItems$2.type,
|
|
598
|
+
items,
|
|
599
|
+
raw: lines.slice(0, consumed).join("\n")
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
markdownOptions: { indentsContent: true },
|
|
604
|
+
addCommands() {
|
|
605
|
+
return { toggleOrderedList: () => ({ commands, chain }) => {
|
|
606
|
+
if (this.options.keepAttributes) return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName)).run();
|
|
607
|
+
return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks);
|
|
608
|
+
} };
|
|
609
|
+
},
|
|
610
|
+
addKeyboardShortcuts() {
|
|
611
|
+
return { "Mod-Shift-7": () => this.editor.commands.toggleOrderedList() };
|
|
612
|
+
},
|
|
613
|
+
addProseMirrorPlugins() {
|
|
614
|
+
return [new _tiptap_pm_state.Plugin({ props: { handlePaste: (view, event) => {
|
|
615
|
+
var _event$clipboardData, _event$clipboardData2;
|
|
616
|
+
const html = (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.getData("text/html");
|
|
617
|
+
if (html === null || html === void 0 ? void 0 : html.trim()) return false;
|
|
618
|
+
const text = (_event$clipboardData2 = event.clipboardData) === null || _event$clipboardData2 === void 0 ? void 0 : _event$clipboardData2.getData("text/plain");
|
|
619
|
+
if (!text) return false;
|
|
620
|
+
const orderedListContent = parsePlainTextOrderedListPaste(text);
|
|
621
|
+
if (!orderedListContent) return false;
|
|
622
|
+
try {
|
|
623
|
+
const orderedListNode = view.state.schema.nodeFromJSON(orderedListContent);
|
|
624
|
+
const tr = view.state.tr.replaceSelectionWith(orderedListNode);
|
|
625
|
+
view.dispatch(tr);
|
|
626
|
+
return true;
|
|
627
|
+
} catch {
|
|
628
|
+
return false;
|
|
629
|
+
}
|
|
630
|
+
} } })];
|
|
631
|
+
},
|
|
632
|
+
addInputRules() {
|
|
633
|
+
const joinPredicate = (match, node) => {
|
|
634
|
+
return (!node.attrs.type || node.attrs.type === "1") && node.childCount + node.attrs.start === +match[1];
|
|
635
|
+
};
|
|
636
|
+
let inputRule = (0, _tiptap_core.wrappingInputRule)({
|
|
637
|
+
find: orderedListInputRegex,
|
|
638
|
+
type: this.type,
|
|
639
|
+
getAttributes: (match) => ({ start: +match[1] }),
|
|
640
|
+
joinPredicate
|
|
641
|
+
});
|
|
642
|
+
if (this.options.keepMarks || this.options.keepAttributes) inputRule = (0, _tiptap_core.wrappingInputRule)({
|
|
643
|
+
find: orderedListInputRegex,
|
|
644
|
+
type: this.type,
|
|
645
|
+
keepMarks: this.options.keepMarks,
|
|
646
|
+
keepAttributes: this.options.keepAttributes,
|
|
647
|
+
getAttributes: (match) => ({
|
|
648
|
+
start: +match[1],
|
|
649
|
+
...this.editor.getAttributes(TextStyleName)
|
|
650
|
+
}),
|
|
651
|
+
joinPredicate,
|
|
652
|
+
editor: this.editor
|
|
653
|
+
});
|
|
654
|
+
return [inputRule];
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
//#endregion
|
|
658
|
+
exports.ORDERED_LIST_MARKER_PATTERN = ORDERED_LIST_MARKER_PATTERN;
|
|
659
|
+
exports.OrderedList = OrderedList;
|
|
660
|
+
exports.areOrderedListMarkersSequential = areOrderedListMarkersSequential;
|
|
661
|
+
exports.buildOrderedListAttrsFromMarker = buildOrderedListAttrsFromMarker;
|
|
662
|
+
exports.detectMarkerType = detectMarkerType;
|
|
663
|
+
exports.getListMarker = getListMarker;
|
|
664
|
+
exports.markerToStart = markerToStart;
|
|
665
|
+
exports.orderedListInputRegex = orderedListInputRegex;
|
|
666
|
+
exports.parseListMarker = parseListMarker;
|
|
667
|
+
exports.parsePlainTextOrderedListPaste = parsePlainTextOrderedListPaste;
|
|
668
|
+
exports.toRoman = toRoman;
|
|
669
|
+
exports.toRomanUpper = toRomanUpper;
|
|
670
|
+
|
|
671
|
+
//# sourceMappingURL=index.cjs.map
|