@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,368 @@
|
|
|
1
|
+
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
2
|
+
import { Extension, getChangedRanges, isNodeEmpty } from "@tiptap/core";
|
|
3
|
+
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
4
|
+
//#region src/placeholder/constants.ts
|
|
5
|
+
/** The default data attribute label */
|
|
6
|
+
const DEFAULT_DATA_ATTRIBUTE = "placeholder";
|
|
7
|
+
/** The plugin key used to store and read the placeholder decoration set */
|
|
8
|
+
const PLUGIN_KEY = new PluginKey("tiptap__placeholder");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/placeholder/utils/createPlaceholderDecoration.ts
|
|
11
|
+
/**
|
|
12
|
+
* Creates a ProseMirror node decoration that applies a placeholder
|
|
13
|
+
* CSS class and data attribute to an empty node.
|
|
14
|
+
* @param options.editor - The editor instance
|
|
15
|
+
* @param options.pos - The position of the node in the document
|
|
16
|
+
* @param options.node - The ProseMirror node
|
|
17
|
+
* @param options.isEmptyDoc - Whether the entire document is empty
|
|
18
|
+
* @param options.hasAnchor - Whether the selection anchor is within the node
|
|
19
|
+
* @param options.dataAttribute - The data attribute name (e.g. `data-placeholder`)
|
|
20
|
+
* @param options.classes - CSS classes for empty nodes and the empty editor
|
|
21
|
+
* @param options.placeholder - The placeholder text or a function that returns it
|
|
22
|
+
* @returns A ProseMirror node decoration with placeholder classes and data attribute
|
|
23
|
+
*/
|
|
24
|
+
function createPlaceholderDecoration(options) {
|
|
25
|
+
const { editor, placeholder, dataAttribute, pos, node, isEmptyDoc, hasAnchor, classes: { emptyNode, emptyEditor } } = options;
|
|
26
|
+
const classes = [emptyNode];
|
|
27
|
+
if (isEmptyDoc) classes.push(emptyEditor);
|
|
28
|
+
return Decoration.node(pos, pos + node.nodeSize, {
|
|
29
|
+
class: classes.join(" "),
|
|
30
|
+
[dataAttribute]: typeof placeholder === "function" ? placeholder({
|
|
31
|
+
editor,
|
|
32
|
+
node,
|
|
33
|
+
pos,
|
|
34
|
+
hasAnchor
|
|
35
|
+
}) : placeholder
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/placeholder/utils/buildPlaceholderDecorations.ts
|
|
40
|
+
function resolveEmptyNodeClass(emptyNodeClass, props) {
|
|
41
|
+
return typeof emptyNodeClass === "function" ? emptyNodeClass(props) : emptyNodeClass;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Scans a document range for empty textblocks that should receive placeholder
|
|
45
|
+
* decorations. Used by the slow path and incremental state updates.
|
|
46
|
+
*/
|
|
47
|
+
function scanRangeForDecorations({ editor, options, dataAttribute, doc, selection, from, to }) {
|
|
48
|
+
const { anchor } = selection;
|
|
49
|
+
const decorations = [];
|
|
50
|
+
const isEmptyDoc = editor.isEmpty;
|
|
51
|
+
doc.nodesBetween(from, to, (node, pos) => {
|
|
52
|
+
const hasAnchor = anchor >= pos && anchor <= pos + node.nodeSize;
|
|
53
|
+
const isEmpty = !node.isLeaf && isNodeEmpty(node);
|
|
54
|
+
if (!node.type.isTextblock) return options.includeChildren;
|
|
55
|
+
if ((hasAnchor || !options.showOnlyCurrent) && isEmpty) decorations.push(createPlaceholderDecoration({
|
|
56
|
+
editor,
|
|
57
|
+
isEmptyDoc,
|
|
58
|
+
dataAttribute,
|
|
59
|
+
hasAnchor,
|
|
60
|
+
placeholder: options.placeholder,
|
|
61
|
+
classes: {
|
|
62
|
+
emptyEditor: options.emptyEditorClass,
|
|
63
|
+
emptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {
|
|
64
|
+
editor,
|
|
65
|
+
node,
|
|
66
|
+
pos,
|
|
67
|
+
hasAnchor
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
node,
|
|
71
|
+
pos
|
|
72
|
+
}));
|
|
73
|
+
return options.includeChildren;
|
|
74
|
+
});
|
|
75
|
+
return decorations;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Builds the placeholder decorations for the current document state.
|
|
79
|
+
* @param options.editor - The editor instance.
|
|
80
|
+
* @param options.options - The resolved placeholder options.
|
|
81
|
+
* @param options.dataAttribute - The prepared `data-*` attribute name.
|
|
82
|
+
* @param options.doc - The current document node.
|
|
83
|
+
* @param options.selection - The current selection.
|
|
84
|
+
* @returns A decoration set, or `null` when no placeholders should be shown.
|
|
85
|
+
*/
|
|
86
|
+
function buildPlaceholderDecorations({ editor, options, dataAttribute, doc, selection }) {
|
|
87
|
+
if (!(editor.isEditable || !options.showOnlyWhenEditable)) return null;
|
|
88
|
+
const { anchor } = selection;
|
|
89
|
+
const decorations = [];
|
|
90
|
+
const isEmptyDoc = editor.isEmpty;
|
|
91
|
+
if (options.showOnlyCurrent && !options.includeChildren) {
|
|
92
|
+
const resolved = doc.resolve(anchor);
|
|
93
|
+
const node = resolved.depth > 0 ? resolved.node(1) : resolved.nodeAfter;
|
|
94
|
+
const nodeStart = resolved.depth > 0 ? resolved.before(1) : anchor;
|
|
95
|
+
if (node && node.type.isTextblock && isNodeEmpty(node)) {
|
|
96
|
+
const hasAnchor = anchor >= nodeStart && anchor <= nodeStart + node.nodeSize;
|
|
97
|
+
decorations.push(createPlaceholderDecoration({
|
|
98
|
+
editor,
|
|
99
|
+
isEmptyDoc,
|
|
100
|
+
dataAttribute,
|
|
101
|
+
hasAnchor,
|
|
102
|
+
placeholder: options.placeholder,
|
|
103
|
+
classes: {
|
|
104
|
+
emptyEditor: options.emptyEditorClass,
|
|
105
|
+
emptyNode: resolveEmptyNodeClass(options.emptyNodeClass, {
|
|
106
|
+
editor,
|
|
107
|
+
node,
|
|
108
|
+
pos: nodeStart,
|
|
109
|
+
hasAnchor
|
|
110
|
+
})
|
|
111
|
+
},
|
|
112
|
+
node,
|
|
113
|
+
pos: nodeStart
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
} else decorations.push(...scanRangeForDecorations({
|
|
117
|
+
editor,
|
|
118
|
+
options,
|
|
119
|
+
dataAttribute,
|
|
120
|
+
doc,
|
|
121
|
+
selection,
|
|
122
|
+
from: 0,
|
|
123
|
+
to: doc.content.size
|
|
124
|
+
}));
|
|
125
|
+
return DecorationSet.create(doc, decorations);
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/placeholder/utils/resolveTopLevelRange.ts
|
|
129
|
+
/**
|
|
130
|
+
* Resolves a document position to the `[from, to)` range of its containing
|
|
131
|
+
* top-level block node in absolute document positions.
|
|
132
|
+
*/
|
|
133
|
+
function resolveTopLevelRange(doc, pos) {
|
|
134
|
+
const resolved = doc.resolve(pos);
|
|
135
|
+
if (resolved.depth === 0) {
|
|
136
|
+
var _resolved$nodeAfter;
|
|
137
|
+
const node = (_resolved$nodeAfter = resolved.nodeAfter) !== null && _resolved$nodeAfter !== void 0 ? _resolved$nodeAfter : resolved.nodeBefore;
|
|
138
|
+
if (!node) return {
|
|
139
|
+
from: pos,
|
|
140
|
+
to: pos
|
|
141
|
+
};
|
|
142
|
+
const nodePos = resolved.nodeAfter ? pos : pos - node.nodeSize;
|
|
143
|
+
return {
|
|
144
|
+
from: nodePos,
|
|
145
|
+
to: nodePos + node.nodeSize
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const topLevelPos = resolved.before(1);
|
|
149
|
+
return {
|
|
150
|
+
from: topLevelPos,
|
|
151
|
+
to: topLevelPos + resolved.node(1).nodeSize
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Converts an absolute document range to content-relative positions used by
|
|
156
|
+
* `Node#nodesBetween` and `Node#forEach` offsets.
|
|
157
|
+
*/
|
|
158
|
+
function toContentRelativeRange(doc, range) {
|
|
159
|
+
return {
|
|
160
|
+
from: Math.max(0, range.from - 1),
|
|
161
|
+
to: Math.min(doc.content.size, range.to - 1)
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Returns the top-level block ranges that intersect a document change range.
|
|
166
|
+
* Input `from`/`to` are absolute positions (e.g. from `getChangedRanges`).
|
|
167
|
+
* Returned ranges are content-relative, matching `Node#forEach` offsets.
|
|
168
|
+
*/
|
|
169
|
+
function getTopLevelBlocksInRange(doc, from, to) {
|
|
170
|
+
const ranges = [];
|
|
171
|
+
doc.forEach((node, offset) => {
|
|
172
|
+
const nodeStart = offset;
|
|
173
|
+
const nodeEnd = nodeStart + node.nodeSize;
|
|
174
|
+
const absNodeStart = nodeStart + 1;
|
|
175
|
+
const absNodeEnd = nodeEnd + 1;
|
|
176
|
+
if (absNodeStart < to && absNodeEnd > from) ranges.push({
|
|
177
|
+
from: nodeStart,
|
|
178
|
+
to: nodeEnd
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
return ranges;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Sorts ranges by start position and merges overlapping or adjacent ranges.
|
|
185
|
+
*/
|
|
186
|
+
function mergeRanges(ranges) {
|
|
187
|
+
if (ranges.length === 0) return [];
|
|
188
|
+
const sorted = [...ranges].sort((a, b) => a.from - b.from);
|
|
189
|
+
const merged = [{ ...sorted[0] }];
|
|
190
|
+
for (let i = 1; i < sorted.length; i += 1) {
|
|
191
|
+
const last = merged[merged.length - 1];
|
|
192
|
+
const current = sorted[i];
|
|
193
|
+
if (current.from <= last.to) last.to = Math.max(last.to, current.to);
|
|
194
|
+
else merged.push({ ...current });
|
|
195
|
+
}
|
|
196
|
+
return merged;
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/placeholder/utils/placeholderStateField.ts
|
|
200
|
+
/**
|
|
201
|
+
* Expands a single changed range to the top-level blocks it touches.
|
|
202
|
+
* Also resolves blocks at range boundaries so split/merge edits update
|
|
203
|
+
* adjacent empty nodes (e.g. a new paragraph after Enter).
|
|
204
|
+
*/
|
|
205
|
+
function collectBlocksForChange(doc, change) {
|
|
206
|
+
const ranges = getTopLevelBlocksInRange(doc, change.from, change.to);
|
|
207
|
+
ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, change.from)));
|
|
208
|
+
if (change.to > change.from) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.to, doc.content.size + 1) - 1)));
|
|
209
|
+
else if (change.from < doc.content.size + 1) ranges.push(toContentRelativeRange(doc, resolveTopLevelRange(doc, Math.min(change.from + 1, doc.content.size))));
|
|
210
|
+
return ranges;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Collects content-relative top-level block ranges that need placeholder
|
|
214
|
+
* decorations recomputed after a transaction.
|
|
215
|
+
*/
|
|
216
|
+
function collectRescanRanges(tr, oldState, newState) {
|
|
217
|
+
const ranges = [];
|
|
218
|
+
if (tr.docChanged) {
|
|
219
|
+
const changes = getChangedRanges(tr);
|
|
220
|
+
for (const change of changes) ranges.push(...collectBlocksForChange(newState.doc, change.newRange));
|
|
221
|
+
}
|
|
222
|
+
if (tr.selectionSet) {
|
|
223
|
+
ranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, tr.mapping.map(oldState.selection.anchor))));
|
|
224
|
+
ranges.push(toContentRelativeRange(newState.doc, resolveTopLevelRange(newState.doc, newState.selection.anchor)));
|
|
225
|
+
}
|
|
226
|
+
return mergeRanges(ranges);
|
|
227
|
+
}
|
|
228
|
+
/** Clamps a content-relative range to `[0, doc.content.size]`. */
|
|
229
|
+
function clampRange(from, to, doc) {
|
|
230
|
+
const clampedFrom = Math.max(0, Math.min(from, doc.content.size));
|
|
231
|
+
return {
|
|
232
|
+
from: clampedFrom,
|
|
233
|
+
to: Math.max(clampedFrom, Math.min(to, doc.content.size))
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Removes and rebuilds placeholder decorations within the given ranges.
|
|
238
|
+
* Only drops decorations fully contained in a range so mapped decorations
|
|
239
|
+
* on neighbouring blocks (e.g. at a block boundary) are kept intact.
|
|
240
|
+
*/
|
|
241
|
+
function updateDecorationsInRanges({ decorations, ranges, editor, options, dataAttribute, doc, selection }) {
|
|
242
|
+
let next = decorations;
|
|
243
|
+
for (const range of ranges) {
|
|
244
|
+
const { from, to } = clampRange(range.from, range.to, doc);
|
|
245
|
+
const existing = next.find(from, to).filter((decoration) => decoration.from >= from && decoration.to <= to);
|
|
246
|
+
if (existing.length) next = next.remove(existing);
|
|
247
|
+
const newDecos = scanRangeForDecorations({
|
|
248
|
+
editor,
|
|
249
|
+
options,
|
|
250
|
+
dataAttribute,
|
|
251
|
+
doc,
|
|
252
|
+
selection,
|
|
253
|
+
from,
|
|
254
|
+
to
|
|
255
|
+
});
|
|
256
|
+
if (newDecos.length) next = next.add(doc, newDecos);
|
|
257
|
+
}
|
|
258
|
+
return next;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Creates the incremental `StateField<DecorationSet>` used by the slow path
|
|
262
|
+
* (`showOnlyCurrent: false` or `includeChildren: true`).
|
|
263
|
+
*
|
|
264
|
+
* Decorations are mapped through each transaction and only recomputed for
|
|
265
|
+
* top-level blocks touched by document or selection changes.
|
|
266
|
+
* @param options.editor - The editor instance.
|
|
267
|
+
* @param options.options - The resolved placeholder options.
|
|
268
|
+
* @param options.dataAttribute - The prepared `data-*` attribute name.
|
|
269
|
+
* @returns A ProseMirror state field storing the placeholder decoration set.
|
|
270
|
+
*/
|
|
271
|
+
function createPlaceholderStateField({ editor, options, dataAttribute }) {
|
|
272
|
+
return {
|
|
273
|
+
init(_config, state) {
|
|
274
|
+
const decorations = buildPlaceholderDecorations({
|
|
275
|
+
editor,
|
|
276
|
+
options,
|
|
277
|
+
dataAttribute,
|
|
278
|
+
doc: state.doc,
|
|
279
|
+
selection: state.selection
|
|
280
|
+
});
|
|
281
|
+
return decorations !== null && decorations !== void 0 ? decorations : DecorationSet.empty;
|
|
282
|
+
},
|
|
283
|
+
apply(tr, prev, oldState, newState) {
|
|
284
|
+
if (!tr.docChanged && !tr.selectionSet) return prev;
|
|
285
|
+
return updateDecorationsInRanges({
|
|
286
|
+
decorations: prev.map(tr.mapping, tr.doc),
|
|
287
|
+
ranges: collectRescanRanges(tr, oldState, newState),
|
|
288
|
+
editor,
|
|
289
|
+
options,
|
|
290
|
+
dataAttribute,
|
|
291
|
+
doc: newState.doc,
|
|
292
|
+
selection: newState.selection
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region src/placeholder/utils/preparePlaceholderAttribute.ts
|
|
299
|
+
/**
|
|
300
|
+
* Prepares the placeholder attribute by ensuring it is properly formatted.
|
|
301
|
+
* @param attr - The placeholder attribute string.
|
|
302
|
+
* @returns The prepared placeholder attribute string.
|
|
303
|
+
*/
|
|
304
|
+
function preparePlaceholderAttribute(attr) {
|
|
305
|
+
return attr.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
306
|
+
}
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/placeholder/plugins/PlaceholderPlugin.ts
|
|
309
|
+
/**
|
|
310
|
+
* Creates the ProseMirror plugin that renders placeholder decorations.
|
|
311
|
+
* @param options.editor - The editor instance.
|
|
312
|
+
* @param options.options - The resolved placeholder options.
|
|
313
|
+
* @returns The configured placeholder plugin.
|
|
314
|
+
*/
|
|
315
|
+
function createPlaceholderPlugin({ editor, options }) {
|
|
316
|
+
const dataAttribute = options.dataAttribute ? `data-${preparePlaceholderAttribute(options.dataAttribute)}` : `data-${DEFAULT_DATA_ATTRIBUTE}`;
|
|
317
|
+
const useResolvedPath = options.showOnlyCurrent && !options.includeChildren;
|
|
318
|
+
return new Plugin({
|
|
319
|
+
key: PLUGIN_KEY,
|
|
320
|
+
...useResolvedPath ? {} : { state: createPlaceholderStateField({
|
|
321
|
+
editor,
|
|
322
|
+
options,
|
|
323
|
+
dataAttribute
|
|
324
|
+
}) },
|
|
325
|
+
props: { decorations: useResolvedPath ? ({ doc, selection }) => buildPlaceholderDecorations({
|
|
326
|
+
editor,
|
|
327
|
+
options,
|
|
328
|
+
dataAttribute,
|
|
329
|
+
doc,
|
|
330
|
+
selection
|
|
331
|
+
}) : (state) => {
|
|
332
|
+
var _PLUGIN_KEY$getState;
|
|
333
|
+
if (options.showOnlyWhenEditable && !editor.isEditable) return DecorationSet.empty;
|
|
334
|
+
return (_PLUGIN_KEY$getState = PLUGIN_KEY.getState(state)) !== null && _PLUGIN_KEY$getState !== void 0 ? _PLUGIN_KEY$getState : DecorationSet.empty;
|
|
335
|
+
} }
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/placeholder/placeholder.ts
|
|
340
|
+
/**
|
|
341
|
+
* This extension allows you to add a placeholder to your editor.
|
|
342
|
+
* A placeholder is a text that appears when the editor or a node is empty.
|
|
343
|
+
* @see https://www.tiptap.dev/api/extensions/placeholder
|
|
344
|
+
*/
|
|
345
|
+
const Placeholder = Extension.create({
|
|
346
|
+
name: "placeholder",
|
|
347
|
+
addOptions() {
|
|
348
|
+
return {
|
|
349
|
+
emptyEditorClass: "is-editor-empty",
|
|
350
|
+
emptyNodeClass: "is-empty",
|
|
351
|
+
dataAttribute: DEFAULT_DATA_ATTRIBUTE,
|
|
352
|
+
placeholder: "Write something …",
|
|
353
|
+
showOnlyWhenEditable: true,
|
|
354
|
+
showOnlyCurrent: true,
|
|
355
|
+
includeChildren: false
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
addProseMirrorPlugins() {
|
|
359
|
+
return [createPlaceholderPlugin({
|
|
360
|
+
editor: this.editor,
|
|
361
|
+
options: this.options
|
|
362
|
+
})];
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
//#endregion
|
|
366
|
+
export { DEFAULT_DATA_ATTRIBUTE, PLUGIN_KEY, Placeholder, preparePlaceholderAttribute };
|
|
367
|
+
|
|
368
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _tiptap_core = require("@tiptap/core");
|
|
3
|
+
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
4
|
+
let _tiptap_pm_view = require("@tiptap/pm/view");
|
|
5
|
+
//#region src/selection/selection.ts
|
|
6
|
+
/**
|
|
7
|
+
* Whether the native browser selection should be cleared on blur and restored on focus.
|
|
8
|
+
* Only applies to non-empty text selections in an editable editor.
|
|
9
|
+
*/
|
|
10
|
+
function shouldSyncDomSelection(state, editor) {
|
|
11
|
+
return !state.selection.empty && !(0, _tiptap_core.isNodeSelection)(state.selection) && editor.isEditable;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Whether the selection decoration should be rendered to keep the selection
|
|
15
|
+
* visible while the editor is blurred (and not dragging).
|
|
16
|
+
*/
|
|
17
|
+
function shouldPreserveSelection(state, editor) {
|
|
18
|
+
return shouldSyncDomSelection(state, editor) && !editor.isFocused && !editor.view.dragging;
|
|
19
|
+
}
|
|
20
|
+
function clearDomSelection() {
|
|
21
|
+
var _window$getSelection;
|
|
22
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Sync the native selection from the editor state.
|
|
26
|
+
* @see https://prosemirror.net/docs/ref/#view.EditorView.focus
|
|
27
|
+
*/
|
|
28
|
+
function restoreDomSelection(view) {
|
|
29
|
+
view.focus();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* This extension allows you to add a class to the selected text when the editor is blurred.
|
|
33
|
+
* It clears the native browser selection on blur (so `::selection` styles do not overlap the
|
|
34
|
+
* decoration) and restores it when the editor is focused again.
|
|
35
|
+
* @see https://www.tiptap.dev/api/extensions/selection
|
|
36
|
+
*/
|
|
37
|
+
const Selection = _tiptap_core.Extension.create({
|
|
38
|
+
name: "selection",
|
|
39
|
+
addOptions() {
|
|
40
|
+
return { className: "selection" };
|
|
41
|
+
},
|
|
42
|
+
addProseMirrorPlugins() {
|
|
43
|
+
const { editor, options } = this;
|
|
44
|
+
return [new _tiptap_pm_state.Plugin({
|
|
45
|
+
key: new _tiptap_pm_state.PluginKey("selection"),
|
|
46
|
+
props: {
|
|
47
|
+
decorations(state) {
|
|
48
|
+
if (!shouldPreserveSelection(state, editor)) return null;
|
|
49
|
+
return _tiptap_pm_view.DecorationSet.create(state.doc, [_tiptap_pm_view.Decoration.inline(state.selection.from, state.selection.to, { class: options.className })]);
|
|
50
|
+
},
|
|
51
|
+
handleDOMEvents: {
|
|
52
|
+
blur(view) {
|
|
53
|
+
if (!shouldSyncDomSelection(view.state, editor)) return false;
|
|
54
|
+
clearDomSelection();
|
|
55
|
+
return false;
|
|
56
|
+
},
|
|
57
|
+
focus(view) {
|
|
58
|
+
if (!shouldSyncDomSelection(view.state, editor)) return false;
|
|
59
|
+
requestAnimationFrame(() => {
|
|
60
|
+
if (!editor.isDestroyed && view.hasFocus()) restoreDomSelection(view);
|
|
61
|
+
});
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
exports.Selection = Selection;
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
//#region src/selection/selection.d.ts
|
|
3
|
+
type SelectionOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* The class name that should be added to the selected text.
|
|
6
|
+
* @default 'selection'
|
|
7
|
+
* @example 'is-selected'
|
|
8
|
+
*/
|
|
9
|
+
className: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* This extension allows you to add a class to the selected text when the editor is blurred.
|
|
13
|
+
* It clears the native browser selection on blur (so `::selection` styles do not overlap the
|
|
14
|
+
* decoration) and restores it when the editor is focused again.
|
|
15
|
+
* @see https://www.tiptap.dev/api/extensions/selection
|
|
16
|
+
*/
|
|
17
|
+
declare const Selection: Extension<SelectionOptions, any>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Selection, SelectionOptions };
|
|
20
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
//#region src/selection/selection.d.ts
|
|
3
|
+
type SelectionOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* The class name that should be added to the selected text.
|
|
6
|
+
* @default 'selection'
|
|
7
|
+
* @example 'is-selected'
|
|
8
|
+
*/
|
|
9
|
+
className: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* This extension allows you to add a class to the selected text when the editor is blurred.
|
|
13
|
+
* It clears the native browser selection on blur (so `::selection` styles do not overlap the
|
|
14
|
+
* decoration) and restores it when the editor is focused again.
|
|
15
|
+
* @see https://www.tiptap.dev/api/extensions/selection
|
|
16
|
+
*/
|
|
17
|
+
declare const Selection: Extension<SelectionOptions, any>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Selection, SelectionOptions };
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Extension, isNodeSelection } from "@tiptap/core";
|
|
2
|
+
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
3
|
+
import { Decoration, DecorationSet } from "@tiptap/pm/view";
|
|
4
|
+
//#region src/selection/selection.ts
|
|
5
|
+
/**
|
|
6
|
+
* Whether the native browser selection should be cleared on blur and restored on focus.
|
|
7
|
+
* Only applies to non-empty text selections in an editable editor.
|
|
8
|
+
*/
|
|
9
|
+
function shouldSyncDomSelection(state, editor) {
|
|
10
|
+
return !state.selection.empty && !isNodeSelection(state.selection) && editor.isEditable;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Whether the selection decoration should be rendered to keep the selection
|
|
14
|
+
* visible while the editor is blurred (and not dragging).
|
|
15
|
+
*/
|
|
16
|
+
function shouldPreserveSelection(state, editor) {
|
|
17
|
+
return shouldSyncDomSelection(state, editor) && !editor.isFocused && !editor.view.dragging;
|
|
18
|
+
}
|
|
19
|
+
function clearDomSelection() {
|
|
20
|
+
var _window$getSelection;
|
|
21
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Sync the native selection from the editor state.
|
|
25
|
+
* @see https://prosemirror.net/docs/ref/#view.EditorView.focus
|
|
26
|
+
*/
|
|
27
|
+
function restoreDomSelection(view) {
|
|
28
|
+
view.focus();
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This extension allows you to add a class to the selected text when the editor is blurred.
|
|
32
|
+
* It clears the native browser selection on blur (so `::selection` styles do not overlap the
|
|
33
|
+
* decoration) and restores it when the editor is focused again.
|
|
34
|
+
* @see https://www.tiptap.dev/api/extensions/selection
|
|
35
|
+
*/
|
|
36
|
+
const Selection = Extension.create({
|
|
37
|
+
name: "selection",
|
|
38
|
+
addOptions() {
|
|
39
|
+
return { className: "selection" };
|
|
40
|
+
},
|
|
41
|
+
addProseMirrorPlugins() {
|
|
42
|
+
const { editor, options } = this;
|
|
43
|
+
return [new Plugin({
|
|
44
|
+
key: new PluginKey("selection"),
|
|
45
|
+
props: {
|
|
46
|
+
decorations(state) {
|
|
47
|
+
if (!shouldPreserveSelection(state, editor)) return null;
|
|
48
|
+
return DecorationSet.create(state.doc, [Decoration.inline(state.selection.from, state.selection.to, { class: options.className })]);
|
|
49
|
+
},
|
|
50
|
+
handleDOMEvents: {
|
|
51
|
+
blur(view) {
|
|
52
|
+
if (!shouldSyncDomSelection(view.state, editor)) return false;
|
|
53
|
+
clearDomSelection();
|
|
54
|
+
return false;
|
|
55
|
+
},
|
|
56
|
+
focus(view) {
|
|
57
|
+
if (!shouldSyncDomSelection(view.state, editor)) return false;
|
|
58
|
+
requestAnimationFrame(() => {
|
|
59
|
+
if (!editor.isDestroyed && view.hasFocus()) restoreDomSelection(view);
|
|
60
|
+
});
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Selection };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _tiptap_core = require("@tiptap/core");
|
|
3
|
+
let _tiptap_pm_state = require("@tiptap/pm/state");
|
|
4
|
+
//#region src/trailing-node/trailing-node.ts
|
|
5
|
+
const skipTrailingNodeMeta = "skipTrailingNode";
|
|
6
|
+
function nodeEqualsType({ types, node }) {
|
|
7
|
+
return node && Array.isArray(types) && types.includes(node.type) || (node === null || node === void 0 ? void 0 : node.type) === types;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This extension allows you to add an extra node at the end of the document.
|
|
11
|
+
* @see https://www.tiptap.dev/api/extensions/trailing-node
|
|
12
|
+
*/
|
|
13
|
+
const TrailingNode = _tiptap_core.Extension.create({
|
|
14
|
+
name: "trailingNode",
|
|
15
|
+
addOptions() {
|
|
16
|
+
return {
|
|
17
|
+
node: void 0,
|
|
18
|
+
notAfter: []
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
addProseMirrorPlugins() {
|
|
22
|
+
var _this$editor$schema$t;
|
|
23
|
+
const plugin = new _tiptap_pm_state.PluginKey(this.name);
|
|
24
|
+
const defaultNode = this.options.node || ((_this$editor$schema$t = this.editor.schema.topNodeType.contentMatch.defaultType) === null || _this$editor$schema$t === void 0 ? void 0 : _this$editor$schema$t.name) || "paragraph";
|
|
25
|
+
const disabledNodes = Object.entries(this.editor.schema.nodes).map(([, value]) => value).filter((node) => (this.options.notAfter || []).concat(defaultNode).includes(node.name));
|
|
26
|
+
return [new _tiptap_pm_state.Plugin({
|
|
27
|
+
key: plugin,
|
|
28
|
+
appendTransaction: (transactions, __, state) => {
|
|
29
|
+
const { doc, tr, schema } = state;
|
|
30
|
+
const shouldInsertNodeAtEnd = plugin.getState(state);
|
|
31
|
+
const endPosition = doc.content.size;
|
|
32
|
+
const type = schema.nodes[defaultNode];
|
|
33
|
+
if (transactions.some((transaction) => transaction.getMeta("skipTrailingNode"))) return;
|
|
34
|
+
if (!shouldInsertNodeAtEnd) return;
|
|
35
|
+
return tr.insert(endPosition, type.create());
|
|
36
|
+
},
|
|
37
|
+
state: {
|
|
38
|
+
init: (_, state) => {
|
|
39
|
+
const lastNode = state.tr.doc.lastChild;
|
|
40
|
+
return !nodeEqualsType({
|
|
41
|
+
node: lastNode,
|
|
42
|
+
types: disabledNodes
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
apply: (tr, value) => {
|
|
46
|
+
if (!tr.docChanged) return value;
|
|
47
|
+
if (tr.getMeta("__uniqueIDTransaction")) return value;
|
|
48
|
+
const lastNode = tr.doc.lastChild;
|
|
49
|
+
return !nodeEqualsType({
|
|
50
|
+
node: lastNode,
|
|
51
|
+
types: disabledNodes
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
exports.TrailingNode = TrailingNode;
|
|
60
|
+
exports.skipTrailingNodeMeta = skipTrailingNodeMeta;
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
//#region src/trailing-node/trailing-node.d.ts
|
|
3
|
+
declare const skipTrailingNodeMeta = "skipTrailingNode";
|
|
4
|
+
/**
|
|
5
|
+
* Extension based on:
|
|
6
|
+
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
7
|
+
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
|
8
|
+
*/
|
|
9
|
+
interface TrailingNodeOptions {
|
|
10
|
+
/**
|
|
11
|
+
* The node type that should be inserted at the end of the document.
|
|
12
|
+
* @note the node will always be added to the `notAfter` lists to
|
|
13
|
+
* prevent an infinite loop.
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
16
|
+
node?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The node types after which the trailing node should not be inserted.
|
|
19
|
+
* @default ['paragraph']
|
|
20
|
+
*/
|
|
21
|
+
notAfter?: string | string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* This extension allows you to add an extra node at the end of the document.
|
|
25
|
+
* @see https://www.tiptap.dev/api/extensions/trailing-node
|
|
26
|
+
*/
|
|
27
|
+
declare const TrailingNode: Extension<TrailingNodeOptions, any>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { TrailingNode, TrailingNodeOptions, skipTrailingNodeMeta };
|
|
30
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
//#region src/trailing-node/trailing-node.d.ts
|
|
3
|
+
declare const skipTrailingNodeMeta = "skipTrailingNode";
|
|
4
|
+
/**
|
|
5
|
+
* Extension based on:
|
|
6
|
+
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
7
|
+
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
|
8
|
+
*/
|
|
9
|
+
interface TrailingNodeOptions {
|
|
10
|
+
/**
|
|
11
|
+
* The node type that should be inserted at the end of the document.
|
|
12
|
+
* @note the node will always be added to the `notAfter` lists to
|
|
13
|
+
* prevent an infinite loop.
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
16
|
+
node?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The node types after which the trailing node should not be inserted.
|
|
19
|
+
* @default ['paragraph']
|
|
20
|
+
*/
|
|
21
|
+
notAfter?: string | string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* This extension allows you to add an extra node at the end of the document.
|
|
25
|
+
* @see https://www.tiptap.dev/api/extensions/trailing-node
|
|
26
|
+
*/
|
|
27
|
+
declare const TrailingNode: Extension<TrailingNodeOptions, any>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { TrailingNode, TrailingNodeOptions, skipTrailingNodeMeta };
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|