@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,665 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
6
|
+
let _tiptap_core = require("@tiptap/core");
|
|
7
|
+
let _tiptap_pm_view = require("@tiptap/pm/view");
|
|
8
|
+
let _floating_ui_dom = require("@floating-ui/dom");
|
|
9
|
+
//#region src/findSuggestionMatch.ts
|
|
10
|
+
function findSuggestionMatch(config) {
|
|
11
|
+
var _$position$nodeBefore;
|
|
12
|
+
const { char, allowSpaces: allowSpacesOption, allowToIncludeChar, allowedPrefixes, startOfLine, $position } = config;
|
|
13
|
+
const allowSpaces = allowSpacesOption && !allowToIncludeChar;
|
|
14
|
+
const escapedChar = (0, _tiptap_core.escapeForRegEx)(char);
|
|
15
|
+
const suffix = new RegExp(`\\s${escapedChar}$`);
|
|
16
|
+
const prefix = startOfLine ? "^" : "";
|
|
17
|
+
const finalEscapedChar = allowToIncludeChar ? "" : escapedChar;
|
|
18
|
+
const regexp = allowSpaces ? new RegExp(`${prefix}${escapedChar}.*?(?=\\s${finalEscapedChar}|$)`, "gm") : new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${finalEscapedChar}]*`, "gm");
|
|
19
|
+
const text = ((_$position$nodeBefore = $position.nodeBefore) === null || _$position$nodeBefore === void 0 ? void 0 : _$position$nodeBefore.isText) && $position.nodeBefore.text;
|
|
20
|
+
if (!text) return null;
|
|
21
|
+
const textFrom = $position.pos - text.length;
|
|
22
|
+
const match = Array.from(text.matchAll(regexp)).pop();
|
|
23
|
+
if (!match || match.input === void 0 || match.index === void 0) return null;
|
|
24
|
+
const matchPrefix = match.input.slice(Math.max(0, match.index - 1), match.index);
|
|
25
|
+
const matchPrefixIsAllowed = new RegExp(`^[${allowedPrefixes === null || allowedPrefixes === void 0 ? void 0 : allowedPrefixes.join("")}\0]?$`).test(matchPrefix);
|
|
26
|
+
if (allowedPrefixes !== null && !matchPrefixIsAllowed) return null;
|
|
27
|
+
const from = textFrom + match.index;
|
|
28
|
+
let to = from + match[0].length;
|
|
29
|
+
if (allowSpaces && suffix.test(text.slice(to - 1, to + 1))) {
|
|
30
|
+
match[0] += " ";
|
|
31
|
+
to += 1;
|
|
32
|
+
}
|
|
33
|
+
if (from < $position.pos && to >= $position.pos) return {
|
|
34
|
+
range: {
|
|
35
|
+
from,
|
|
36
|
+
to
|
|
37
|
+
},
|
|
38
|
+
query: match[0].slice(char.length),
|
|
39
|
+
text: match[0]
|
|
40
|
+
};
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/helpers.ts
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the transaction inserted any whitespace or newline character.
|
|
47
|
+
* Used to determine when a dismissed suggestion should become active again.
|
|
48
|
+
*/
|
|
49
|
+
function hasInsertedWhitespace(transaction) {
|
|
50
|
+
if (!transaction.docChanged) return false;
|
|
51
|
+
return transaction.steps.some((step) => {
|
|
52
|
+
const slice = step.slice;
|
|
53
|
+
if (!(slice === null || slice === void 0 ? void 0 : slice.content)) return false;
|
|
54
|
+
const inserted = slice.content.textBetween(0, slice.content.size, "\n");
|
|
55
|
+
return /\s/.test(inserted);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Gets the DOM rectangle corresponding to the current editor cursor anchor position.
|
|
60
|
+
* Calculates screen coordinates based on Tiptap's cursor position and converts to a DOMRect object.
|
|
61
|
+
*/
|
|
62
|
+
function getAnchorClientRect(editor) {
|
|
63
|
+
return () => {
|
|
64
|
+
const pos = editor.state.selection.$anchor.pos;
|
|
65
|
+
const { top, right, bottom, left } = editor.view.coordsAtPos(pos);
|
|
66
|
+
try {
|
|
67
|
+
return new DOMRect(left, top, right - left, bottom - top);
|
|
68
|
+
} catch {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates a clientRect callback for a given decoration node.
|
|
75
|
+
* Returns the anchor rect when no decoration node is present.
|
|
76
|
+
* Uses the pluginKey's state to resolve the current decoration node on demand.
|
|
77
|
+
*/
|
|
78
|
+
function clientRectFor(editor, view, decorationNode, pluginKey) {
|
|
79
|
+
if (!decorationNode) return getAnchorClientRect(editor);
|
|
80
|
+
return () => {
|
|
81
|
+
const state = pluginKey.getState(editor.state);
|
|
82
|
+
const decorationId = state === null || state === void 0 ? void 0 : state.decorationId;
|
|
83
|
+
const currentDecorationNode = view.dom.querySelector(`[data-decoration-id="${decorationId}"]`);
|
|
84
|
+
return (currentDecorationNode === null || currentDecorationNode === void 0 ? void 0 : currentDecorationNode.getBoundingClientRect()) || null;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Determines whether a dismissed suggestion should stay dismissed.
|
|
89
|
+
* Returns `true` (keep dismissed) or `false` (allow reactivation).
|
|
90
|
+
*/
|
|
91
|
+
function shouldKeepDismissed({ match, dismissedRange, state, transaction, editor, shouldResetDismissed, effectiveAllowSpaces }) {
|
|
92
|
+
if (shouldResetDismissed === null || shouldResetDismissed === void 0 ? void 0 : shouldResetDismissed({
|
|
93
|
+
editor,
|
|
94
|
+
state,
|
|
95
|
+
range: dismissedRange,
|
|
96
|
+
match,
|
|
97
|
+
transaction,
|
|
98
|
+
allowSpaces: effectiveAllowSpaces
|
|
99
|
+
})) return false;
|
|
100
|
+
if (effectiveAllowSpaces) return match.range.from === dismissedRange.from;
|
|
101
|
+
return match.range.from === dismissedRange.from && !hasInsertedWhitespace(transaction);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Dispatch an exit of the suggestion plugin by dispatching a metadata-only
|
|
105
|
+
* transaction to clear the plugin state. The renderer's onExit hook is NOT
|
|
106
|
+
* called here — it fires via the plugin view's stopped transition, which
|
|
107
|
+
* builds SuggestionProps consistently with the normal lifecycle.
|
|
108
|
+
*
|
|
109
|
+
* This prevents a double onExit call (one from dispatchExit, one from the
|
|
110
|
+
* view's update) and keeps exitSuggestion consistent with Escape-triggered
|
|
111
|
+
* exits.
|
|
112
|
+
*/
|
|
113
|
+
function dispatchExit({ view, pluginKeyRef }) {
|
|
114
|
+
const tr = view.state.tr.setMeta(pluginKeyRef, { exit: true });
|
|
115
|
+
view.dispatch(tr);
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/plugin/props.ts
|
|
119
|
+
/**
|
|
120
|
+
* Creates the `props` object for the suggestion ProseMirror plugin.
|
|
121
|
+
* Contains `handleKeyDown` for keyboard handling and `decorations`
|
|
122
|
+
* for rendering the suggestion highlight.
|
|
123
|
+
*/
|
|
124
|
+
function createSuggestionProps({ pluginKey, decorationTag, decorationClass, decorationContent, decorationEmptyClass, renderer, dispatchExit }) {
|
|
125
|
+
return {
|
|
126
|
+
/**
|
|
127
|
+
* Call the keydown hook if suggestion is active.
|
|
128
|
+
*/
|
|
129
|
+
handleKeyDown(view, event) {
|
|
130
|
+
var _renderer$onKeyDown2;
|
|
131
|
+
const state = pluginKey.getState(view.state);
|
|
132
|
+
if (!state.active) return false;
|
|
133
|
+
if (event.key === "Escape" || event.key === "Esc") {
|
|
134
|
+
var _renderer$onKeyDown;
|
|
135
|
+
renderer === null || renderer === void 0 || (_renderer$onKeyDown = renderer.onKeyDown) === null || _renderer$onKeyDown === void 0 || _renderer$onKeyDown.call(renderer, {
|
|
136
|
+
view,
|
|
137
|
+
event,
|
|
138
|
+
range: state.range
|
|
139
|
+
});
|
|
140
|
+
dispatchExit(view);
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
return (renderer === null || renderer === void 0 || (_renderer$onKeyDown2 = renderer.onKeyDown) === null || _renderer$onKeyDown2 === void 0 ? void 0 : _renderer$onKeyDown2.call(renderer, {
|
|
144
|
+
view,
|
|
145
|
+
event,
|
|
146
|
+
range: state.range
|
|
147
|
+
})) || false;
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
* Setup decorator on the currently active suggestion.
|
|
151
|
+
*/
|
|
152
|
+
decorations(state) {
|
|
153
|
+
const { active, range, decorationId, query } = pluginKey.getState(state);
|
|
154
|
+
if (!active) return null;
|
|
155
|
+
const isEmpty = !(query === null || query === void 0 ? void 0 : query.length);
|
|
156
|
+
const classNames = [decorationClass];
|
|
157
|
+
if (isEmpty) classNames.push(decorationEmptyClass);
|
|
158
|
+
return _tiptap_pm_view.DecorationSet.create(state.doc, [_tiptap_pm_view.Decoration.inline(range.from, range.to, {
|
|
159
|
+
nodeName: decorationTag,
|
|
160
|
+
class: classNames.join(" "),
|
|
161
|
+
"data-decoration-id": decorationId || void 0,
|
|
162
|
+
"data-decoration-content": decorationContent
|
|
163
|
+
})]);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/plugin/state.ts
|
|
169
|
+
/**
|
|
170
|
+
* Creates the `state` object for the suggestion ProseMirror plugin.
|
|
171
|
+
* Contains `init()` and `apply()` for managing the plugin's internal state
|
|
172
|
+
* across transactions.
|
|
173
|
+
*/
|
|
174
|
+
function createSuggestionState({ editor, char, effectiveAllowSpaces, allowToIncludeChar, allowedPrefixes, startOfLine, findSuggestionMatch, allow, shouldShow, shouldKeepDismissed, pluginKey }) {
|
|
175
|
+
return {
|
|
176
|
+
/**
|
|
177
|
+
* Initialize the plugin's internal state.
|
|
178
|
+
*/
|
|
179
|
+
init() {
|
|
180
|
+
return {
|
|
181
|
+
active: false,
|
|
182
|
+
range: {
|
|
183
|
+
from: 0,
|
|
184
|
+
to: 0
|
|
185
|
+
},
|
|
186
|
+
query: null,
|
|
187
|
+
text: null,
|
|
188
|
+
composing: false,
|
|
189
|
+
dismissedRange: null
|
|
190
|
+
};
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* Apply changes to the plugin state from a view transaction.
|
|
194
|
+
*/
|
|
195
|
+
apply(transaction, prev, _oldState, state) {
|
|
196
|
+
const { isEditable } = editor;
|
|
197
|
+
const { composing } = editor.view;
|
|
198
|
+
const { selection } = transaction;
|
|
199
|
+
const { empty, from } = selection;
|
|
200
|
+
const next = { ...prev };
|
|
201
|
+
const meta = transaction.getMeta(pluginKey);
|
|
202
|
+
if (meta && meta.exit) {
|
|
203
|
+
next.active = false;
|
|
204
|
+
next.decorationId = null;
|
|
205
|
+
next.range = {
|
|
206
|
+
from: 0,
|
|
207
|
+
to: 0
|
|
208
|
+
};
|
|
209
|
+
next.query = null;
|
|
210
|
+
next.text = null;
|
|
211
|
+
next.dismissedRange = prev.active ? { ...prev.range } : prev.dismissedRange;
|
|
212
|
+
return next;
|
|
213
|
+
}
|
|
214
|
+
next.composing = composing;
|
|
215
|
+
if (transaction.docChanged && next.dismissedRange !== null) next.dismissedRange = {
|
|
216
|
+
from: transaction.mapping.map(next.dismissedRange.from),
|
|
217
|
+
to: transaction.mapping.map(next.dismissedRange.to)
|
|
218
|
+
};
|
|
219
|
+
if (isEditable && (empty || editor.view.composing)) {
|
|
220
|
+
if ((from < prev.range.from || from > prev.range.to) && !composing && !prev.composing) next.active = false;
|
|
221
|
+
const match = findSuggestionMatch({
|
|
222
|
+
char,
|
|
223
|
+
allowSpaces: effectiveAllowSpaces,
|
|
224
|
+
allowToIncludeChar,
|
|
225
|
+
allowedPrefixes,
|
|
226
|
+
startOfLine,
|
|
227
|
+
$position: selection.$from
|
|
228
|
+
});
|
|
229
|
+
const decorationId = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
230
|
+
if (match && allow({
|
|
231
|
+
editor,
|
|
232
|
+
state,
|
|
233
|
+
range: match.range,
|
|
234
|
+
isActive: prev.active
|
|
235
|
+
}) && (!shouldShow || shouldShow({
|
|
236
|
+
editor,
|
|
237
|
+
range: match.range,
|
|
238
|
+
query: match.query,
|
|
239
|
+
text: match.text,
|
|
240
|
+
transaction
|
|
241
|
+
}))) {
|
|
242
|
+
if (next.dismissedRange !== null && !shouldKeepDismissed({
|
|
243
|
+
match,
|
|
244
|
+
dismissedRange: next.dismissedRange,
|
|
245
|
+
state,
|
|
246
|
+
transaction
|
|
247
|
+
})) next.dismissedRange = null;
|
|
248
|
+
if (next.dismissedRange === null) {
|
|
249
|
+
next.active = true;
|
|
250
|
+
next.decorationId = prev.decorationId || decorationId;
|
|
251
|
+
next.range = match.range;
|
|
252
|
+
next.query = match.query;
|
|
253
|
+
next.text = match.text;
|
|
254
|
+
} else next.active = false;
|
|
255
|
+
} else {
|
|
256
|
+
if (!match) next.dismissedRange = null;
|
|
257
|
+
next.active = false;
|
|
258
|
+
}
|
|
259
|
+
} else next.active = false;
|
|
260
|
+
if (!next.active) {
|
|
261
|
+
next.decorationId = null;
|
|
262
|
+
next.range = {
|
|
263
|
+
from: 0,
|
|
264
|
+
to: 0
|
|
265
|
+
};
|
|
266
|
+
next.query = null;
|
|
267
|
+
next.text = null;
|
|
268
|
+
}
|
|
269
|
+
return next;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/plugin/async.ts
|
|
275
|
+
function createSuggestionAsyncRequestManager({ editor, items }) {
|
|
276
|
+
let abortController = null;
|
|
277
|
+
let debounceTimer = null;
|
|
278
|
+
let debounceResolve = null;
|
|
279
|
+
const clearDebounceTimer = () => {
|
|
280
|
+
if (debounceTimer !== null) {
|
|
281
|
+
clearTimeout(debounceTimer);
|
|
282
|
+
debounceTimer = null;
|
|
283
|
+
}
|
|
284
|
+
debounceResolve === null || debounceResolve === void 0 || debounceResolve();
|
|
285
|
+
debounceResolve = null;
|
|
286
|
+
};
|
|
287
|
+
const waitForDebounce = (delay) => {
|
|
288
|
+
return new Promise((resolve) => {
|
|
289
|
+
debounceResolve = resolve;
|
|
290
|
+
debounceTimer = setTimeout(() => {
|
|
291
|
+
debounceTimer = null;
|
|
292
|
+
const pendingResolve = debounceResolve;
|
|
293
|
+
debounceResolve = null;
|
|
294
|
+
pendingResolve === null || pendingResolve === void 0 || pendingResolve();
|
|
295
|
+
}, delay);
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
const abort = () => {
|
|
299
|
+
abortController === null || abortController === void 0 || abortController.abort();
|
|
300
|
+
clearDebounceTimer();
|
|
301
|
+
abortController = null;
|
|
302
|
+
};
|
|
303
|
+
const fetch = async (query, debounce) => {
|
|
304
|
+
abort();
|
|
305
|
+
abortController = new AbortController();
|
|
306
|
+
const controller = abortController;
|
|
307
|
+
if (debounce > 0) await waitForDebounce(debounce);
|
|
308
|
+
if (abortController !== controller || controller.signal.aborted) return { status: "aborted" };
|
|
309
|
+
try {
|
|
310
|
+
const result = await items({
|
|
311
|
+
editor,
|
|
312
|
+
query,
|
|
313
|
+
signal: controller.signal
|
|
314
|
+
});
|
|
315
|
+
if (abortController !== controller || controller.signal.aborted) return { status: "aborted" };
|
|
316
|
+
return {
|
|
317
|
+
status: "resolved",
|
|
318
|
+
items: result
|
|
319
|
+
};
|
|
320
|
+
} catch {
|
|
321
|
+
if (abortController !== controller || controller.signal.aborted) return { status: "aborted" };
|
|
322
|
+
return { status: "error" };
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
return {
|
|
326
|
+
abort,
|
|
327
|
+
fetch
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/plugin/floating-ui.ts
|
|
332
|
+
function createSuggestionFloatingUiConfig({ placement, offset, flip, floatingUi }) {
|
|
333
|
+
var _offset$mainAxis, _offset$crossAxis, _floatingUi$middlewar, _floatingUi$strategy;
|
|
334
|
+
const middleware = [(0, _floating_ui_dom.offset)({
|
|
335
|
+
mainAxis: (_offset$mainAxis = offset.mainAxis) !== null && _offset$mainAxis !== void 0 ? _offset$mainAxis : 4,
|
|
336
|
+
crossAxis: (_offset$crossAxis = offset.crossAxis) !== null && _offset$crossAxis !== void 0 ? _offset$crossAxis : 0
|
|
337
|
+
})];
|
|
338
|
+
if (flip) middleware.push((0, _floating_ui_dom.flip)());
|
|
339
|
+
if (floatingUi === null || floatingUi === void 0 || (_floatingUi$middlewar = floatingUi.middleware) === null || _floatingUi$middlewar === void 0 ? void 0 : _floatingUi$middlewar.length) middleware.push(...floatingUi.middleware);
|
|
340
|
+
return {
|
|
341
|
+
placement,
|
|
342
|
+
strategy: (_floatingUi$strategy = floatingUi === null || floatingUi === void 0 ? void 0 : floatingUi.strategy) !== null && _floatingUi$strategy !== void 0 ? _floatingUi$strategy : "absolute",
|
|
343
|
+
middleware
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Resolves a container option (selector or element) to a mount target,
|
|
348
|
+
* falling back to `document.body` when it can't be resolved.
|
|
349
|
+
*/
|
|
350
|
+
function resolveContainer(container) {
|
|
351
|
+
if (container instanceof HTMLElement) return container;
|
|
352
|
+
if (typeof container === "string") try {
|
|
353
|
+
const found = document.querySelector(container);
|
|
354
|
+
if (found) return found;
|
|
355
|
+
} catch {
|
|
356
|
+
return document.body;
|
|
357
|
+
}
|
|
358
|
+
return document.body;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Builds the `mount` function handed to the renderer on `SuggestionProps`.
|
|
362
|
+
*
|
|
363
|
+
* Mounts the popup into the container, then wires Floating UI's `autoUpdate`
|
|
364
|
+
* against a virtual reference that re-reads the live cursor rect, so the popup
|
|
365
|
+
* stays anchored across scroll, resize, and layout shifts without the consumer
|
|
366
|
+
* attaching any listeners. The returned `unmount` tears all of that down.
|
|
367
|
+
*/
|
|
368
|
+
function createMount({ getReferenceRect, contextElement, config, container, dismissOnOutsideClick, dismiss }) {
|
|
369
|
+
return (element, options = {}) => {
|
|
370
|
+
const reference = {
|
|
371
|
+
getBoundingClientRect: () => {
|
|
372
|
+
var _getReferenceRect;
|
|
373
|
+
return (_getReferenceRect = getReferenceRect()) !== null && _getReferenceRect !== void 0 ? _getReferenceRect : new DOMRect();
|
|
374
|
+
},
|
|
375
|
+
contextElement
|
|
376
|
+
};
|
|
377
|
+
let positioned = false;
|
|
378
|
+
const mountedByUs = !element.isConnected;
|
|
379
|
+
if (mountedByUs) resolveContainer(container).appendChild(element);
|
|
380
|
+
if (!options.onPosition) {
|
|
381
|
+
element.style.visibility = "hidden";
|
|
382
|
+
element.style.width = "max-content";
|
|
383
|
+
}
|
|
384
|
+
const update = () => {
|
|
385
|
+
(0, _floating_ui_dom.computePosition)(reference, element, {
|
|
386
|
+
placement: config.placement,
|
|
387
|
+
strategy: config.strategy,
|
|
388
|
+
middleware: config.middleware
|
|
389
|
+
}).then(({ x, y, placement, strategy }) => {
|
|
390
|
+
if (options.onPosition) {
|
|
391
|
+
options.onPosition({
|
|
392
|
+
x,
|
|
393
|
+
y,
|
|
394
|
+
placement,
|
|
395
|
+
strategy
|
|
396
|
+
});
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
Object.assign(element.style, {
|
|
400
|
+
position: strategy,
|
|
401
|
+
left: `${x}px`,
|
|
402
|
+
top: `${y}px`
|
|
403
|
+
});
|
|
404
|
+
if (!positioned) {
|
|
405
|
+
positioned = true;
|
|
406
|
+
element.style.visibility = "";
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
const cleanupAutoUpdate = (0, _floating_ui_dom.autoUpdate)(reference, element, update, options.autoUpdate);
|
|
411
|
+
let onOutsidePointerDown;
|
|
412
|
+
if (dismissOnOutsideClick) {
|
|
413
|
+
onOutsidePointerDown = (event) => {
|
|
414
|
+
const target = event.target;
|
|
415
|
+
if (!(target instanceof Node) || element.contains(target) || contextElement.contains(target)) return;
|
|
416
|
+
dismiss();
|
|
417
|
+
};
|
|
418
|
+
document.addEventListener("pointerdown", onOutsidePointerDown, true);
|
|
419
|
+
}
|
|
420
|
+
return () => {
|
|
421
|
+
cleanupAutoUpdate();
|
|
422
|
+
if (onOutsidePointerDown) document.removeEventListener("pointerdown", onOutsidePointerDown, true);
|
|
423
|
+
if (mountedByUs) element.remove();
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region src/plugin/view.ts
|
|
429
|
+
/**
|
|
430
|
+
* Creates the `view` object for the suggestion ProseMirror plugin.
|
|
431
|
+
*
|
|
432
|
+
* Manages the async lifecycle: tracks state transitions, calls renderer hooks,
|
|
433
|
+
* fetches items with debounce and AbortController support.
|
|
434
|
+
*
|
|
435
|
+
* 1. Tracks plugin state transitions (started, updated, stopped) to determine when to call renderer hooks.
|
|
436
|
+
* 2. Calls `onBeforeStart`, `onBeforeUpdate`, `onStart` before fetching to allow the renderer to prepare for first render
|
|
437
|
+
* 3. Manages async fetching of suggestion items with support for debouncing and aborting in-flight requests
|
|
438
|
+
* 4. Calls `onUpdate` after fetching new items to update the renderer with the latest data
|
|
439
|
+
* 5. At the end calls a final `onExit` or `onUpdate` to allow the renderer to clean up or finalize the state
|
|
440
|
+
*/
|
|
441
|
+
function createSuggestionView({ editor, pluginKey, items, renderer, minQueryLength, debounce, initialItems, placement, offset: offsetOption, container, flip, floatingUi, dismissOnOutsideClick, command, clientRectFor, dispatchExit }) {
|
|
442
|
+
let props;
|
|
443
|
+
const asyncRequest = createSuggestionAsyncRequestManager({
|
|
444
|
+
editor,
|
|
445
|
+
items
|
|
446
|
+
});
|
|
447
|
+
const floatingUiConfig = createSuggestionFloatingUiConfig({
|
|
448
|
+
placement,
|
|
449
|
+
offset: offsetOption,
|
|
450
|
+
flip,
|
|
451
|
+
floatingUi
|
|
452
|
+
});
|
|
453
|
+
function dispatchStateUpdate(state, dispatchProps) {
|
|
454
|
+
switch (state) {
|
|
455
|
+
case "started":
|
|
456
|
+
var _renderer$onStart;
|
|
457
|
+
renderer === null || renderer === void 0 || (_renderer$onStart = renderer.onStart) === null || _renderer$onStart === void 0 || _renderer$onStart.call(renderer, dispatchProps);
|
|
458
|
+
break;
|
|
459
|
+
case "updated":
|
|
460
|
+
var _renderer$onUpdate;
|
|
461
|
+
renderer === null || renderer === void 0 || (_renderer$onUpdate = renderer.onUpdate) === null || _renderer$onUpdate === void 0 || _renderer$onUpdate.call(renderer, dispatchProps);
|
|
462
|
+
break;
|
|
463
|
+
case "stopped":
|
|
464
|
+
var _renderer$onExit;
|
|
465
|
+
renderer === null || renderer === void 0 || (_renderer$onExit = renderer.onExit) === null || _renderer$onExit === void 0 || _renderer$onExit.call(renderer, dispatchProps);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
return {
|
|
469
|
+
update: async (view, prevState) => {
|
|
470
|
+
var _offsetOption$mainAxi, _offsetOption$crossAx;
|
|
471
|
+
const prev = pluginKey.getState(prevState);
|
|
472
|
+
const next = pluginKey.getState(view.state);
|
|
473
|
+
if (!prev || !next) return;
|
|
474
|
+
let currentState = null;
|
|
475
|
+
const queryChanged = prev.query !== next.query;
|
|
476
|
+
const textChanged = prev.text !== next.text;
|
|
477
|
+
const rangeChanged = prev.range.from !== next.range.from || prev.range.to !== next.range.to;
|
|
478
|
+
const effectiveQueryChanged = queryChanged || textChanged || rangeChanged;
|
|
479
|
+
if (!prev.active && next.active) currentState = "started";
|
|
480
|
+
else if (prev.active && !next.active) currentState = "stopped";
|
|
481
|
+
else if (next.active && effectiveQueryChanged) currentState = "updated";
|
|
482
|
+
else return;
|
|
483
|
+
const state = currentState === "stopped" ? prev : next;
|
|
484
|
+
const decorationNode = view.dom.querySelector(`[data-decoration-id="${state.decorationId}"]`);
|
|
485
|
+
const clientRect = clientRectFor(view, decorationNode);
|
|
486
|
+
const exceedsMinQueryLength = minQueryLength === 0 || (state.query ? state.query.length >= minQueryLength : false);
|
|
487
|
+
const willFetch = (currentState === "started" || currentState === "updated") && exceedsMinQueryLength;
|
|
488
|
+
props = {
|
|
489
|
+
editor,
|
|
490
|
+
range: state.range,
|
|
491
|
+
query: state.query || "",
|
|
492
|
+
text: state.text || "",
|
|
493
|
+
items: initialItems !== null && initialItems !== void 0 ? initialItems : [],
|
|
494
|
+
command: (commandProps) => {
|
|
495
|
+
return command({
|
|
496
|
+
editor,
|
|
497
|
+
range: state.range,
|
|
498
|
+
props: commandProps
|
|
499
|
+
});
|
|
500
|
+
},
|
|
501
|
+
decorationNode,
|
|
502
|
+
clientRect,
|
|
503
|
+
loading: willFetch,
|
|
504
|
+
placement,
|
|
505
|
+
offset: {
|
|
506
|
+
mainAxis: (_offsetOption$mainAxi = offsetOption.mainAxis) !== null && _offsetOption$mainAxi !== void 0 ? _offsetOption$mainAxi : 4,
|
|
507
|
+
crossAxis: (_offsetOption$crossAx = offsetOption.crossAxis) !== null && _offsetOption$crossAx !== void 0 ? _offsetOption$crossAx : 0
|
|
508
|
+
},
|
|
509
|
+
container,
|
|
510
|
+
flip,
|
|
511
|
+
floatingUi: floatingUiConfig,
|
|
512
|
+
mount: createMount({
|
|
513
|
+
getReferenceRect: clientRect,
|
|
514
|
+
contextElement: view.dom,
|
|
515
|
+
config: floatingUiConfig,
|
|
516
|
+
container,
|
|
517
|
+
dismissOnOutsideClick,
|
|
518
|
+
dismiss: () => dispatchExit(editor.view)
|
|
519
|
+
})
|
|
520
|
+
};
|
|
521
|
+
if (currentState === "started") {
|
|
522
|
+
var _renderer$onBeforeSta;
|
|
523
|
+
renderer === null || renderer === void 0 || (_renderer$onBeforeSta = renderer.onBeforeStart) === null || _renderer$onBeforeSta === void 0 || _renderer$onBeforeSta.call(renderer, props);
|
|
524
|
+
}
|
|
525
|
+
if (currentState === "updated") {
|
|
526
|
+
var _renderer$onBeforeUpd;
|
|
527
|
+
renderer === null || renderer === void 0 || (_renderer$onBeforeUpd = renderer.onBeforeUpdate) === null || _renderer$onBeforeUpd === void 0 || _renderer$onBeforeUpd.call(renderer, props);
|
|
528
|
+
}
|
|
529
|
+
if (currentState === "started") dispatchStateUpdate(currentState, props);
|
|
530
|
+
if (currentState === "started" || currentState === "updated") {
|
|
531
|
+
if (!willFetch) {
|
|
532
|
+
asyncRequest.abort();
|
|
533
|
+
props = {
|
|
534
|
+
...props,
|
|
535
|
+
items: initialItems !== null && initialItems !== void 0 ? initialItems : [],
|
|
536
|
+
loading: false
|
|
537
|
+
};
|
|
538
|
+
} else {
|
|
539
|
+
props = {
|
|
540
|
+
...props,
|
|
541
|
+
items: initialItems !== null && initialItems !== void 0 ? initialItems : [],
|
|
542
|
+
loading: true
|
|
543
|
+
};
|
|
544
|
+
currentState = "updated";
|
|
545
|
+
dispatchStateUpdate(currentState, props);
|
|
546
|
+
const result = await asyncRequest.fetch(state.query || "", debounce);
|
|
547
|
+
if (result.status === "aborted") return;
|
|
548
|
+
const currentPluginState = pluginKey.getState(view.state);
|
|
549
|
+
if (!(currentPluginState === null || currentPluginState === void 0 ? void 0 : currentPluginState.active)) {
|
|
550
|
+
asyncRequest.abort();
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
props = result.status === "resolved" ? {
|
|
554
|
+
...props,
|
|
555
|
+
items: result.items,
|
|
556
|
+
loading: false
|
|
557
|
+
} : {
|
|
558
|
+
...props,
|
|
559
|
+
loading: false
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (currentState === "stopped") {
|
|
564
|
+
asyncRequest.abort();
|
|
565
|
+
dispatchStateUpdate(currentState, props);
|
|
566
|
+
props = void 0;
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
if (currentState === "updated") dispatchStateUpdate(currentState, props);
|
|
570
|
+
},
|
|
571
|
+
destroy: () => {
|
|
572
|
+
var _renderer$onExit2;
|
|
573
|
+
asyncRequest.abort();
|
|
574
|
+
if (!props) return;
|
|
575
|
+
renderer === null || renderer === void 0 || (_renderer$onExit2 = renderer.onExit) === null || _renderer$onExit2 === void 0 || _renderer$onExit2.call(renderer, props);
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
//#endregion
|
|
580
|
+
//#region src/suggestion.ts
|
|
581
|
+
const SuggestionPluginKey = new _tiptap_pm_state.PluginKey("suggestion");
|
|
582
|
+
/**
|
|
583
|
+
* This utility allows you to create suggestions.
|
|
584
|
+
* @see https://tiptap.dev/api/utilities/suggestion
|
|
585
|
+
*/
|
|
586
|
+
function Suggestion({ pluginKey = SuggestionPluginKey, editor, char = "@", allowSpaces = false, allowToIncludeChar = false, allowedPrefixes = [" "], startOfLine = false, decorationTag = "span", decorationClass = "suggestion", decorationContent = "", decorationEmptyClass = "is-empty", command = () => null, items = () => [], minQueryLength = 0, debounce = 0, initialItems, placement = "bottom-start", offset: offsetOption = {}, container, flip = true, floatingUi, dismissOnOutsideClick = true, render = () => ({}), allow = () => true, findSuggestionMatch: findSuggestionMatch$1 = findSuggestionMatch, shouldShow, shouldResetDismissed }) {
|
|
587
|
+
const renderer = render === null || render === void 0 ? void 0 : render();
|
|
588
|
+
const effectiveAllowSpaces = allowSpaces && !allowToIncludeChar;
|
|
589
|
+
const clientRectFor$1 = (view, decorationNode) => clientRectFor(editor, view, decorationNode, pluginKey);
|
|
590
|
+
function shouldKeepDismissed$1(props) {
|
|
591
|
+
return shouldKeepDismissed({
|
|
592
|
+
...props,
|
|
593
|
+
editor,
|
|
594
|
+
shouldResetDismissed,
|
|
595
|
+
effectiveAllowSpaces
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
const dispatchExit$1 = (view) => dispatchExit({
|
|
599
|
+
view,
|
|
600
|
+
pluginKeyRef: pluginKey
|
|
601
|
+
});
|
|
602
|
+
return new _tiptap_pm_state.Plugin({
|
|
603
|
+
key: pluginKey,
|
|
604
|
+
view: () => createSuggestionView({
|
|
605
|
+
editor,
|
|
606
|
+
pluginKey,
|
|
607
|
+
items,
|
|
608
|
+
renderer,
|
|
609
|
+
minQueryLength,
|
|
610
|
+
debounce,
|
|
611
|
+
initialItems,
|
|
612
|
+
placement,
|
|
613
|
+
offset: offsetOption,
|
|
614
|
+
container,
|
|
615
|
+
flip,
|
|
616
|
+
floatingUi,
|
|
617
|
+
dismissOnOutsideClick,
|
|
618
|
+
command,
|
|
619
|
+
clientRectFor: clientRectFor$1,
|
|
620
|
+
dispatchExit: dispatchExit$1
|
|
621
|
+
}),
|
|
622
|
+
state: createSuggestionState({
|
|
623
|
+
editor,
|
|
624
|
+
char,
|
|
625
|
+
effectiveAllowSpaces,
|
|
626
|
+
allowToIncludeChar,
|
|
627
|
+
allowedPrefixes,
|
|
628
|
+
startOfLine,
|
|
629
|
+
findSuggestionMatch: findSuggestionMatch$1,
|
|
630
|
+
allow,
|
|
631
|
+
shouldShow,
|
|
632
|
+
shouldKeepDismissed: shouldKeepDismissed$1,
|
|
633
|
+
pluginKey
|
|
634
|
+
}),
|
|
635
|
+
props: createSuggestionProps({
|
|
636
|
+
pluginKey,
|
|
637
|
+
decorationTag,
|
|
638
|
+
decorationClass,
|
|
639
|
+
decorationContent,
|
|
640
|
+
decorationEmptyClass,
|
|
641
|
+
renderer,
|
|
642
|
+
dispatchExit: dispatchExit$1
|
|
643
|
+
})
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Programmatically exit a suggestion plugin by dispatching a metadata-only
|
|
648
|
+
* transaction. This is the safe, recommended API to remove suggestion
|
|
649
|
+
* decorations without touching the document or causing mapping errors.
|
|
650
|
+
*/
|
|
651
|
+
function exitSuggestion(view, pluginKeyRef = SuggestionPluginKey) {
|
|
652
|
+
const tr = view.state.tr.setMeta(pluginKeyRef, { exit: true });
|
|
653
|
+
view.dispatch(tr);
|
|
654
|
+
}
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region src/index.ts
|
|
657
|
+
var src_default = Suggestion;
|
|
658
|
+
//#endregion
|
|
659
|
+
exports.Suggestion = Suggestion;
|
|
660
|
+
exports.SuggestionPluginKey = SuggestionPluginKey;
|
|
661
|
+
exports.default = src_default;
|
|
662
|
+
exports.exitSuggestion = exitSuggestion;
|
|
663
|
+
exports.findSuggestionMatch = findSuggestionMatch;
|
|
664
|
+
|
|
665
|
+
//# sourceMappingURL=index.cjs.map
|