@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,444 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { BubbleMenuPlugin } from "@tiptap/extension-bubble-menu";
|
|
3
|
+
import { useCurrentEditor } from "@tiptap/react";
|
|
4
|
+
import React, { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
|
+
import { PluginKey } from "@tiptap/pm/state";
|
|
7
|
+
import { FloatingMenuPlugin } from "@tiptap/extension-floating-menu";
|
|
8
|
+
//#region src/menus/getAutoPluginKey.ts
|
|
9
|
+
function getAutoPluginKey(pluginKey, defaultName) {
|
|
10
|
+
return pluginKey !== null && pluginKey !== void 0 ? pluginKey : new PluginKey(defaultName);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/menus/useMenuElementProps.ts
|
|
14
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
15
|
+
const PLUGIN_MANAGED_STYLE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
16
|
+
"left",
|
|
17
|
+
"opacity",
|
|
18
|
+
"position",
|
|
19
|
+
"top",
|
|
20
|
+
"visibility",
|
|
21
|
+
"width"
|
|
22
|
+
]);
|
|
23
|
+
const UNITLESS_STYLE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
24
|
+
"animationIterationCount",
|
|
25
|
+
"aspectRatio",
|
|
26
|
+
"borderImageOutset",
|
|
27
|
+
"borderImageSlice",
|
|
28
|
+
"borderImageWidth",
|
|
29
|
+
"columnCount",
|
|
30
|
+
"columns",
|
|
31
|
+
"fillOpacity",
|
|
32
|
+
"flex",
|
|
33
|
+
"flexGrow",
|
|
34
|
+
"flexShrink",
|
|
35
|
+
"fontWeight",
|
|
36
|
+
"gridArea",
|
|
37
|
+
"gridColumn",
|
|
38
|
+
"gridColumnEnd",
|
|
39
|
+
"gridColumnStart",
|
|
40
|
+
"gridRow",
|
|
41
|
+
"gridRowEnd",
|
|
42
|
+
"gridRowStart",
|
|
43
|
+
"lineClamp",
|
|
44
|
+
"lineHeight",
|
|
45
|
+
"opacity",
|
|
46
|
+
"order",
|
|
47
|
+
"orphans",
|
|
48
|
+
"scale",
|
|
49
|
+
"stopOpacity",
|
|
50
|
+
"strokeDasharray",
|
|
51
|
+
"strokeDashoffset",
|
|
52
|
+
"strokeMiterlimit",
|
|
53
|
+
"strokeOpacity",
|
|
54
|
+
"strokeWidth",
|
|
55
|
+
"tabSize",
|
|
56
|
+
"widows",
|
|
57
|
+
"zIndex",
|
|
58
|
+
"zoom"
|
|
59
|
+
]);
|
|
60
|
+
const ATTRIBUTE_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
61
|
+
"children",
|
|
62
|
+
"className",
|
|
63
|
+
"style"
|
|
64
|
+
]);
|
|
65
|
+
const DIRECT_PROPERTY_KEYS = /* @__PURE__ */ new Set(["tabIndex"]);
|
|
66
|
+
const FORWARDED_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
|
|
67
|
+
"accessKey",
|
|
68
|
+
"autoCapitalize",
|
|
69
|
+
"contentEditable",
|
|
70
|
+
"contextMenu",
|
|
71
|
+
"dir",
|
|
72
|
+
"draggable",
|
|
73
|
+
"enterKeyHint",
|
|
74
|
+
"hidden",
|
|
75
|
+
"id",
|
|
76
|
+
"lang",
|
|
77
|
+
"nonce",
|
|
78
|
+
"role",
|
|
79
|
+
"slot",
|
|
80
|
+
"spellCheck",
|
|
81
|
+
"tabIndex",
|
|
82
|
+
"title",
|
|
83
|
+
"translate"
|
|
84
|
+
]);
|
|
85
|
+
const SPECIAL_EVENT_NAMES = {
|
|
86
|
+
Blur: "focusout",
|
|
87
|
+
DoubleClick: "dblclick",
|
|
88
|
+
Focus: "focusin",
|
|
89
|
+
MouseEnter: "mouseenter",
|
|
90
|
+
MouseLeave: "mouseleave"
|
|
91
|
+
};
|
|
92
|
+
function isEventProp(key, value) {
|
|
93
|
+
return /^on[A-Z]/.test(key) && typeof value === "function";
|
|
94
|
+
}
|
|
95
|
+
function toAttributeName(key) {
|
|
96
|
+
if (key.startsWith("aria-") || key.startsWith("data-")) return key;
|
|
97
|
+
return key;
|
|
98
|
+
}
|
|
99
|
+
function isForwardedAttributeKey(key) {
|
|
100
|
+
return key.startsWith("aria-") || key.startsWith("data-") || FORWARDED_ATTRIBUTE_KEYS.has(key);
|
|
101
|
+
}
|
|
102
|
+
function toStylePropertyName(key) {
|
|
103
|
+
if (key.startsWith("--")) return key;
|
|
104
|
+
return key.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
105
|
+
}
|
|
106
|
+
function toEventConfig(key) {
|
|
107
|
+
var _SPECIAL_EVENT_NAMES$;
|
|
108
|
+
const useCapture = key.endsWith("Capture");
|
|
109
|
+
const reactEventName = (useCapture ? key.slice(0, -7) : key).slice(2);
|
|
110
|
+
return {
|
|
111
|
+
eventName: (_SPECIAL_EVENT_NAMES$ = SPECIAL_EVENT_NAMES[reactEventName]) !== null && _SPECIAL_EVENT_NAMES$ !== void 0 ? _SPECIAL_EVENT_NAMES$ : reactEventName.toLowerCase(),
|
|
112
|
+
options: useCapture ? { capture: true } : void 0
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function createSyntheticEvent(element, nativeEvent) {
|
|
116
|
+
let defaultPrevented = nativeEvent.defaultPrevented;
|
|
117
|
+
let propagationStopped = false;
|
|
118
|
+
const syntheticEvent = Object.create(nativeEvent);
|
|
119
|
+
Object.defineProperties(syntheticEvent, {
|
|
120
|
+
nativeEvent: { value: nativeEvent },
|
|
121
|
+
currentTarget: { value: element },
|
|
122
|
+
target: { value: nativeEvent.target },
|
|
123
|
+
persist: { value: () => void 0 },
|
|
124
|
+
isDefaultPrevented: { value: () => defaultPrevented },
|
|
125
|
+
isPropagationStopped: { value: () => propagationStopped },
|
|
126
|
+
preventDefault: { value: () => {
|
|
127
|
+
defaultPrevented = true;
|
|
128
|
+
nativeEvent.preventDefault();
|
|
129
|
+
} },
|
|
130
|
+
stopPropagation: { value: () => {
|
|
131
|
+
propagationStopped = true;
|
|
132
|
+
nativeEvent.stopPropagation();
|
|
133
|
+
} }
|
|
134
|
+
});
|
|
135
|
+
return syntheticEvent;
|
|
136
|
+
}
|
|
137
|
+
function isDirectPropertyKey(key) {
|
|
138
|
+
return DIRECT_PROPERTY_KEYS.has(key);
|
|
139
|
+
}
|
|
140
|
+
function setDirectProperty(element, key, value) {
|
|
141
|
+
if (key === "tabIndex") {
|
|
142
|
+
element.tabIndex = Number(value);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
element[key] = value;
|
|
146
|
+
}
|
|
147
|
+
function clearDirectProperty(element, key) {
|
|
148
|
+
if (key === "tabIndex") {
|
|
149
|
+
element.removeAttribute("tabindex");
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
const propertyValue = element[key];
|
|
153
|
+
if (typeof propertyValue === "boolean") {
|
|
154
|
+
element[key] = false;
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
if (typeof propertyValue === "number") {
|
|
158
|
+
element[key] = 0;
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
element[key] = "";
|
|
162
|
+
}
|
|
163
|
+
function toStyleValue(styleName, value) {
|
|
164
|
+
if (typeof value !== "number" || value === 0 || styleName.startsWith("--") || UNITLESS_STYLE_PROPERTIES.has(styleName)) return String(value);
|
|
165
|
+
return `${value}px`;
|
|
166
|
+
}
|
|
167
|
+
function removeStyleProperty(element, styleName) {
|
|
168
|
+
if (PLUGIN_MANAGED_STYLE_PROPERTIES.has(styleName)) return;
|
|
169
|
+
element.style.removeProperty(toStylePropertyName(styleName));
|
|
170
|
+
}
|
|
171
|
+
function applyStyleProperty(element, styleName, value) {
|
|
172
|
+
if (PLUGIN_MANAGED_STYLE_PROPERTIES.has(styleName)) return;
|
|
173
|
+
element.style.setProperty(toStylePropertyName(styleName), toStyleValue(styleName, value));
|
|
174
|
+
}
|
|
175
|
+
function syncAttributes(element, prevProps, nextProps) {
|
|
176
|
+
(/* @__PURE__ */ new Set([...Object.keys(prevProps), ...Object.keys(nextProps)])).forEach((key) => {
|
|
177
|
+
if (ATTRIBUTE_EXCLUSIONS.has(key) || !isForwardedAttributeKey(key) || isEventProp(key, prevProps[key]) || isEventProp(key, nextProps[key])) return;
|
|
178
|
+
const prevValue = prevProps[key];
|
|
179
|
+
const nextValue = nextProps[key];
|
|
180
|
+
if (prevValue === nextValue) return;
|
|
181
|
+
const attributeName = toAttributeName(key);
|
|
182
|
+
if (nextValue == null || nextValue === false) {
|
|
183
|
+
if (isDirectPropertyKey(key)) clearDirectProperty(element, key);
|
|
184
|
+
element.removeAttribute(attributeName);
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (nextValue === true) {
|
|
188
|
+
if (isDirectPropertyKey(key)) setDirectProperty(element, key, true);
|
|
189
|
+
element.setAttribute(attributeName, "");
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
if (isDirectPropertyKey(key)) {
|
|
193
|
+
setDirectProperty(element, key, nextValue);
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
element.setAttribute(attributeName, String(nextValue));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function syncClassName(element, prevClassName, nextClassName) {
|
|
200
|
+
if (prevClassName === nextClassName) return;
|
|
201
|
+
if (nextClassName) {
|
|
202
|
+
element.className = nextClassName;
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
element.removeAttribute("class");
|
|
206
|
+
}
|
|
207
|
+
function syncStyles(element, prevStyle, nextStyle) {
|
|
208
|
+
const previousStyle = prevStyle !== null && prevStyle !== void 0 ? prevStyle : {};
|
|
209
|
+
const currentStyle = nextStyle !== null && nextStyle !== void 0 ? nextStyle : {};
|
|
210
|
+
(/* @__PURE__ */ new Set([...Object.keys(previousStyle), ...Object.keys(currentStyle)])).forEach((styleName) => {
|
|
211
|
+
const prevValue = previousStyle[styleName];
|
|
212
|
+
const nextValue = currentStyle[styleName];
|
|
213
|
+
if (prevValue === nextValue) return;
|
|
214
|
+
if (nextValue == null) {
|
|
215
|
+
removeStyleProperty(element, styleName);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
applyStyleProperty(element, styleName, nextValue);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
function syncEventListeners(element, prevListeners, nextProps) {
|
|
222
|
+
prevListeners.forEach(({ eventName, listener, options }) => {
|
|
223
|
+
element.removeEventListener(eventName, listener, options);
|
|
224
|
+
});
|
|
225
|
+
const nextListeners = [];
|
|
226
|
+
Object.entries(nextProps).forEach(([key, value]) => {
|
|
227
|
+
if (!isEventProp(key, value)) return;
|
|
228
|
+
const { eventName, options } = toEventConfig(key);
|
|
229
|
+
const listener = (event) => {
|
|
230
|
+
value(createSyntheticEvent(element, event));
|
|
231
|
+
};
|
|
232
|
+
element.addEventListener(eventName, listener, options);
|
|
233
|
+
nextListeners.push({
|
|
234
|
+
eventName,
|
|
235
|
+
listener,
|
|
236
|
+
options
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
return nextListeners;
|
|
240
|
+
}
|
|
241
|
+
function useMenuElementProps(element, props) {
|
|
242
|
+
const previousPropsRef = useRef({});
|
|
243
|
+
const listenersRef = useRef([]);
|
|
244
|
+
useIsomorphicLayoutEffect(() => {
|
|
245
|
+
const previousProps = previousPropsRef.current;
|
|
246
|
+
syncClassName(element, previousProps.className, props.className);
|
|
247
|
+
syncStyles(element, previousProps.style, props.style);
|
|
248
|
+
syncAttributes(element, previousProps, props);
|
|
249
|
+
listenersRef.current = syncEventListeners(element, listenersRef.current, props);
|
|
250
|
+
previousPropsRef.current = props;
|
|
251
|
+
return () => {
|
|
252
|
+
listenersRef.current.forEach(({ eventName, listener, options }) => {
|
|
253
|
+
element.removeEventListener(eventName, listener, options);
|
|
254
|
+
});
|
|
255
|
+
listenersRef.current = [];
|
|
256
|
+
};
|
|
257
|
+
}, [element, props]);
|
|
258
|
+
}
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/menus/BubbleMenu.tsx
|
|
261
|
+
const BubbleMenu = React.forwardRef(({ pluginKey, editor, updateDelay, resizeDelay, appendTo, shouldShow = null, getReferencedVirtualElement, options, children, ...restProps }, ref) => {
|
|
262
|
+
const menuEl = useRef(document.createElement("div"));
|
|
263
|
+
const resolvedPluginKey = useRef(getAutoPluginKey(pluginKey, "bubbleMenu")).current;
|
|
264
|
+
useMenuElementProps(menuEl.current, restProps);
|
|
265
|
+
if (typeof ref === "function") ref(menuEl.current);
|
|
266
|
+
else if (ref) ref.current = menuEl.current;
|
|
267
|
+
const { editor: currentEditor } = useCurrentEditor();
|
|
268
|
+
/**
|
|
269
|
+
* The editor instance where the bubble menu plugin will be registered.
|
|
270
|
+
*/
|
|
271
|
+
const pluginEditor = editor || currentEditor;
|
|
272
|
+
const bubbleMenuPluginProps = {
|
|
273
|
+
updateDelay,
|
|
274
|
+
resizeDelay,
|
|
275
|
+
appendTo,
|
|
276
|
+
pluginKey: resolvedPluginKey,
|
|
277
|
+
shouldShow,
|
|
278
|
+
getReferencedVirtualElement,
|
|
279
|
+
options
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* The props for the bubble menu plugin. They are accessed inside a ref to
|
|
283
|
+
* avoid running the useEffect hook and re-registering the plugin when the
|
|
284
|
+
* props change.
|
|
285
|
+
*/
|
|
286
|
+
const bubbleMenuPluginPropsRef = useRef(bubbleMenuPluginProps);
|
|
287
|
+
bubbleMenuPluginPropsRef.current = bubbleMenuPluginProps;
|
|
288
|
+
/**
|
|
289
|
+
* Track whether the plugin has been initialized, so we only send updates
|
|
290
|
+
* after the initial registration.
|
|
291
|
+
*/
|
|
292
|
+
const [pluginInitialized, setPluginInitialized] = useState(false);
|
|
293
|
+
/**
|
|
294
|
+
* Track whether we need to skip the first options update dispatch.
|
|
295
|
+
* This prevents unnecessary updates right after plugin initialization.
|
|
296
|
+
*/
|
|
297
|
+
const skipFirstUpdateRef = useRef(true);
|
|
298
|
+
useEffect(() => {
|
|
299
|
+
if (pluginEditor === null || pluginEditor === void 0 ? void 0 : pluginEditor.isDestroyed) return;
|
|
300
|
+
if (!pluginEditor) {
|
|
301
|
+
console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
const bubbleMenuElement = menuEl.current;
|
|
305
|
+
bubbleMenuElement.style.visibility = "hidden";
|
|
306
|
+
bubbleMenuElement.style.position = "absolute";
|
|
307
|
+
const plugin = BubbleMenuPlugin({
|
|
308
|
+
...bubbleMenuPluginPropsRef.current,
|
|
309
|
+
editor: pluginEditor,
|
|
310
|
+
element: bubbleMenuElement
|
|
311
|
+
});
|
|
312
|
+
pluginEditor.registerPlugin(plugin);
|
|
313
|
+
const createdPluginKey = bubbleMenuPluginPropsRef.current.pluginKey;
|
|
314
|
+
skipFirstUpdateRef.current = true;
|
|
315
|
+
setPluginInitialized(true);
|
|
316
|
+
return () => {
|
|
317
|
+
setPluginInitialized(false);
|
|
318
|
+
pluginEditor.unregisterPlugin(createdPluginKey);
|
|
319
|
+
window.requestAnimationFrame(() => {
|
|
320
|
+
if (bubbleMenuElement.parentNode) bubbleMenuElement.parentNode.removeChild(bubbleMenuElement);
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
}, [pluginEditor]);
|
|
324
|
+
/**
|
|
325
|
+
* Update the plugin options when props change after the plugin has been initialized.
|
|
326
|
+
* This allows dynamic updates to options like scrollTarget without re-registering the entire plugin.
|
|
327
|
+
*/
|
|
328
|
+
useEffect(() => {
|
|
329
|
+
if (!pluginInitialized || !pluginEditor || pluginEditor.isDestroyed) return;
|
|
330
|
+
if (skipFirstUpdateRef.current) {
|
|
331
|
+
skipFirstUpdateRef.current = false;
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
pluginEditor.view.dispatch(pluginEditor.state.tr.setMeta(resolvedPluginKey, {
|
|
335
|
+
type: "updateOptions",
|
|
336
|
+
options: bubbleMenuPluginPropsRef.current
|
|
337
|
+
}));
|
|
338
|
+
}, [
|
|
339
|
+
pluginInitialized,
|
|
340
|
+
pluginEditor,
|
|
341
|
+
updateDelay,
|
|
342
|
+
resizeDelay,
|
|
343
|
+
shouldShow,
|
|
344
|
+
options,
|
|
345
|
+
appendTo,
|
|
346
|
+
getReferencedVirtualElement,
|
|
347
|
+
resolvedPluginKey
|
|
348
|
+
]);
|
|
349
|
+
return createPortal(children, menuEl.current);
|
|
350
|
+
});
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/menus/FloatingMenu.tsx
|
|
353
|
+
const FloatingMenu = React.forwardRef(({ pluginKey, editor, updateDelay, resizeDelay, appendTo, shouldShow = null, options, children, ...restProps }, ref) => {
|
|
354
|
+
const menuEl = useRef(document.createElement("div"));
|
|
355
|
+
const resolvedPluginKey = useRef(getAutoPluginKey(pluginKey, "floatingMenu")).current;
|
|
356
|
+
useMenuElementProps(menuEl.current, restProps);
|
|
357
|
+
if (typeof ref === "function") ref(menuEl.current);
|
|
358
|
+
else if (ref) ref.current = menuEl.current;
|
|
359
|
+
const { editor: currentEditor } = useCurrentEditor();
|
|
360
|
+
/**
|
|
361
|
+
* The editor instance where the floating menu plugin will be registered.
|
|
362
|
+
*/
|
|
363
|
+
const pluginEditor = editor || currentEditor;
|
|
364
|
+
const floatingMenuPluginProps = {
|
|
365
|
+
updateDelay,
|
|
366
|
+
resizeDelay,
|
|
367
|
+
appendTo,
|
|
368
|
+
pluginKey: resolvedPluginKey,
|
|
369
|
+
shouldShow,
|
|
370
|
+
options
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* The props for the floating menu plugin. They are accessed inside a ref to
|
|
374
|
+
* avoid running the useEffect hook and re-registering the plugin when the
|
|
375
|
+
* props change.
|
|
376
|
+
*/
|
|
377
|
+
const floatingMenuPluginPropsRef = useRef(floatingMenuPluginProps);
|
|
378
|
+
floatingMenuPluginPropsRef.current = floatingMenuPluginProps;
|
|
379
|
+
/**
|
|
380
|
+
* Track whether the plugin has been initialized, so we only send updates
|
|
381
|
+
* after the initial registration.
|
|
382
|
+
*/
|
|
383
|
+
const [pluginInitialized, setPluginInitialized] = useState(false);
|
|
384
|
+
/**
|
|
385
|
+
* Track whether we need to skip the first options update dispatch.
|
|
386
|
+
* This prevents unnecessary updates right after plugin initialization.
|
|
387
|
+
*/
|
|
388
|
+
const skipFirstUpdateRef = useRef(true);
|
|
389
|
+
useEffect(() => {
|
|
390
|
+
if (pluginEditor === null || pluginEditor === void 0 ? void 0 : pluginEditor.isDestroyed) return;
|
|
391
|
+
if (!pluginEditor) {
|
|
392
|
+
console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
const floatingMenuElement = menuEl.current;
|
|
396
|
+
floatingMenuElement.style.visibility = "hidden";
|
|
397
|
+
floatingMenuElement.style.position = "absolute";
|
|
398
|
+
const plugin = FloatingMenuPlugin({
|
|
399
|
+
...floatingMenuPluginPropsRef.current,
|
|
400
|
+
editor: pluginEditor,
|
|
401
|
+
element: floatingMenuElement
|
|
402
|
+
});
|
|
403
|
+
pluginEditor.registerPlugin(plugin);
|
|
404
|
+
const createdPluginKey = floatingMenuPluginPropsRef.current.pluginKey;
|
|
405
|
+
skipFirstUpdateRef.current = true;
|
|
406
|
+
setPluginInitialized(true);
|
|
407
|
+
return () => {
|
|
408
|
+
setPluginInitialized(false);
|
|
409
|
+
pluginEditor.unregisterPlugin(createdPluginKey);
|
|
410
|
+
window.requestAnimationFrame(() => {
|
|
411
|
+
if (floatingMenuElement.parentNode) floatingMenuElement.parentNode.removeChild(floatingMenuElement);
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
}, [pluginEditor]);
|
|
415
|
+
/**
|
|
416
|
+
* Update the plugin options when props change after the plugin has been initialized.
|
|
417
|
+
* This allows dynamic updates to options like scrollTarget without re-registering the entire plugin.
|
|
418
|
+
*/
|
|
419
|
+
useEffect(() => {
|
|
420
|
+
if (!pluginInitialized || !pluginEditor || pluginEditor.isDestroyed) return;
|
|
421
|
+
if (skipFirstUpdateRef.current) {
|
|
422
|
+
skipFirstUpdateRef.current = false;
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
pluginEditor.view.dispatch(pluginEditor.state.tr.setMeta(resolvedPluginKey, {
|
|
426
|
+
type: "updateOptions",
|
|
427
|
+
options: floatingMenuPluginPropsRef.current
|
|
428
|
+
}));
|
|
429
|
+
}, [
|
|
430
|
+
pluginInitialized,
|
|
431
|
+
pluginEditor,
|
|
432
|
+
updateDelay,
|
|
433
|
+
resizeDelay,
|
|
434
|
+
shouldShow,
|
|
435
|
+
options,
|
|
436
|
+
appendTo,
|
|
437
|
+
resolvedPluginKey
|
|
438
|
+
]);
|
|
439
|
+
return createPortal(children, menuEl.current);
|
|
440
|
+
});
|
|
441
|
+
//#endregion
|
|
442
|
+
export { BubbleMenu, FloatingMenu };
|
|
443
|
+
|
|
444
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tiptap/react",
|
|
3
|
+
"version": "3.32.0",
|
|
4
|
+
"description": "React components for tiptap",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tiptap",
|
|
7
|
+
"tiptap react components"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://tiptap.dev",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/ueberdosis/tiptap/issues"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/ueberdosis/tiptap",
|
|
17
|
+
"directory": "packages/react"
|
|
18
|
+
},
|
|
19
|
+
"funding": {
|
|
20
|
+
"type": "github",
|
|
21
|
+
"url": "https://github.com/sponsors/ueberdosis"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"src",
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"main": "dist/index.cjs",
|
|
30
|
+
"module": "dist/index.js",
|
|
31
|
+
"types": "dist/index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": {
|
|
35
|
+
"import": "./dist/index.d.ts",
|
|
36
|
+
"require": "./dist/index.d.cts"
|
|
37
|
+
},
|
|
38
|
+
"import": "./dist/index.js",
|
|
39
|
+
"require": "./dist/index.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./menus": {
|
|
42
|
+
"types": {
|
|
43
|
+
"import": "./dist/menus/index.d.ts",
|
|
44
|
+
"require": "./dist/menus/index.d.cts"
|
|
45
|
+
},
|
|
46
|
+
"import": "./dist/menus/index.js",
|
|
47
|
+
"require": "./dist/menus/index.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@types/use-sync-external-store": "^0.0.6",
|
|
52
|
+
"fast-equals": "^5.3.3",
|
|
53
|
+
"use-sync-external-store": "^1.4.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@testing-library/react": "16.2.0",
|
|
57
|
+
"@types/react": "^19.0.0",
|
|
58
|
+
"@types/react-dom": "^19.0.0",
|
|
59
|
+
"react": "^19.0.0",
|
|
60
|
+
"react-dom": "^19.0.0",
|
|
61
|
+
"vite-plus": "0.3.0",
|
|
62
|
+
"@tiptap/core": "^3.32.0",
|
|
63
|
+
"@tiptap/pm": "^3.32.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
67
|
+
"@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
68
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
69
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
70
|
+
"@tiptap/core": "3.32.0",
|
|
71
|
+
"@tiptap/pm": "3.32.0"
|
|
72
|
+
},
|
|
73
|
+
"optionalDependencies": {
|
|
74
|
+
"@tiptap/extension-floating-menu": "3.32.0",
|
|
75
|
+
"@tiptap/extension-bubble-menu": "3.32.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "vp pack"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @tiptap/starter-kit
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
|
4
|
+
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
|
5
|
+
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
|
6
|
+
[](https://github.com/sponsors/ueberdosis)
|
|
7
|
+
|
|
8
|
+
## Introduction
|
|
9
|
+
|
|
10
|
+
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
|
|
11
|
+
|
|
12
|
+
## Official Documentation
|
|
13
|
+
|
|
14
|
+
Documentation can be found on the [Tiptap website](https://tiptap.dev).
|
|
15
|
+
|
|
16
|
+
## License
|
|
17
|
+
|
|
18
|
+
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _tiptap_core = require("@tiptap/core");
|
|
6
|
+
let _tiptap_extension_blockquote = require("@tiptap/extension-blockquote");
|
|
7
|
+
let _tiptap_extension_bold = require("@tiptap/extension-bold");
|
|
8
|
+
let _tiptap_extension_code = require("@tiptap/extension-code");
|
|
9
|
+
let _tiptap_extension_code_block = require("@tiptap/extension-code-block");
|
|
10
|
+
let _tiptap_extension_document = require("@tiptap/extension-document");
|
|
11
|
+
let _tiptap_extension_hard_break = require("@tiptap/extension-hard-break");
|
|
12
|
+
let _tiptap_extension_heading = require("@tiptap/extension-heading");
|
|
13
|
+
let _tiptap_extension_horizontal_rule = require("@tiptap/extension-horizontal-rule");
|
|
14
|
+
let _tiptap_extension_italic = require("@tiptap/extension-italic");
|
|
15
|
+
let _tiptap_extension_link = require("@tiptap/extension-link");
|
|
16
|
+
let _tiptap_extension_list = require("@tiptap/extension-list");
|
|
17
|
+
let _tiptap_extension_paragraph = require("@tiptap/extension-paragraph");
|
|
18
|
+
let _tiptap_extension_strike = require("@tiptap/extension-strike");
|
|
19
|
+
let _tiptap_extension_text = require("@tiptap/extension-text");
|
|
20
|
+
let _tiptap_extension_underline = require("@tiptap/extension-underline");
|
|
21
|
+
let _tiptap_extensions = require("@tiptap/extensions");
|
|
22
|
+
//#region src/starter-kit.ts
|
|
23
|
+
/**
|
|
24
|
+
* The starter kit is a collection of essential editor extensions.
|
|
25
|
+
*
|
|
26
|
+
* It’s a good starting point for building your own editor.
|
|
27
|
+
*/
|
|
28
|
+
const StarterKit = _tiptap_core.Extension.create({
|
|
29
|
+
name: "starterKit",
|
|
30
|
+
addExtensions() {
|
|
31
|
+
const extensions = [];
|
|
32
|
+
if (this.options.bold !== false) extensions.push(_tiptap_extension_bold.Bold.configure(this.options.bold));
|
|
33
|
+
if (this.options.blockquote !== false) extensions.push(_tiptap_extension_blockquote.Blockquote.configure(this.options.blockquote));
|
|
34
|
+
if (this.options.bulletList !== false) extensions.push(_tiptap_extension_list.BulletList.configure(this.options.bulletList));
|
|
35
|
+
if (this.options.code !== false) extensions.push(_tiptap_extension_code.Code.configure(this.options.code));
|
|
36
|
+
if (this.options.codeBlock !== false) extensions.push(_tiptap_extension_code_block.CodeBlock.configure(this.options.codeBlock));
|
|
37
|
+
if (this.options.document !== false) extensions.push(_tiptap_extension_document.Document.configure(this.options.document));
|
|
38
|
+
if (this.options.dropcursor !== false) extensions.push(_tiptap_extensions.Dropcursor.configure(this.options.dropcursor));
|
|
39
|
+
if (this.options.gapcursor !== false) extensions.push(_tiptap_extensions.Gapcursor.configure(this.options.gapcursor));
|
|
40
|
+
if (this.options.hardBreak !== false) extensions.push(_tiptap_extension_hard_break.HardBreak.configure(this.options.hardBreak));
|
|
41
|
+
if (this.options.heading !== false) extensions.push(_tiptap_extension_heading.Heading.configure(this.options.heading));
|
|
42
|
+
if (this.options.undoRedo !== false) extensions.push(_tiptap_extensions.UndoRedo.configure(this.options.undoRedo));
|
|
43
|
+
if (this.options.horizontalRule !== false) extensions.push(_tiptap_extension_horizontal_rule.HorizontalRule.configure(this.options.horizontalRule));
|
|
44
|
+
if (this.options.italic !== false) extensions.push(_tiptap_extension_italic.Italic.configure(this.options.italic));
|
|
45
|
+
if (this.options.listItem !== false) extensions.push(_tiptap_extension_list.ListItem.configure(this.options.listItem));
|
|
46
|
+
if (this.options.listKeymap !== false) {
|
|
47
|
+
var _this$options;
|
|
48
|
+
extensions.push(_tiptap_extension_list.ListKeymap.configure((_this$options = this.options) === null || _this$options === void 0 ? void 0 : _this$options.listKeymap));
|
|
49
|
+
}
|
|
50
|
+
if (this.options.link !== false) {
|
|
51
|
+
var _this$options2;
|
|
52
|
+
extensions.push(_tiptap_extension_link.Link.configure((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : _this$options2.link));
|
|
53
|
+
}
|
|
54
|
+
if (this.options.orderedList !== false) extensions.push(_tiptap_extension_list.OrderedList.configure(this.options.orderedList));
|
|
55
|
+
if (this.options.paragraph !== false) extensions.push(_tiptap_extension_paragraph.Paragraph.configure(this.options.paragraph));
|
|
56
|
+
if (this.options.strike !== false) extensions.push(_tiptap_extension_strike.Strike.configure(this.options.strike));
|
|
57
|
+
if (this.options.text !== false) extensions.push(_tiptap_extension_text.Text.configure(this.options.text));
|
|
58
|
+
if (this.options.underline !== false) {
|
|
59
|
+
var _this$options3;
|
|
60
|
+
extensions.push(_tiptap_extension_underline.Underline.configure((_this$options3 = this.options) === null || _this$options3 === void 0 ? void 0 : _this$options3.underline));
|
|
61
|
+
}
|
|
62
|
+
if (this.options.trailingNode !== false) {
|
|
63
|
+
var _this$options4;
|
|
64
|
+
extensions.push(_tiptap_extensions.TrailingNode.configure((_this$options4 = this.options) === null || _this$options4 === void 0 ? void 0 : _this$options4.trailingNode));
|
|
65
|
+
}
|
|
66
|
+
return extensions;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/index.ts
|
|
71
|
+
var src_default = StarterKit;
|
|
72
|
+
//#endregion
|
|
73
|
+
exports.StarterKit = StarterKit;
|
|
74
|
+
exports.default = src_default;
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=index.cjs.map
|