@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -2
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +72 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@tiptap/core/LICENSE.md +21 -0
- package/node_modules/@tiptap/core/README.md +18 -0
- package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
- package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
- package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
- package/node_modules/@tiptap/core/dist/index.js +8288 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
- package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/package.json +74 -0
- package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
- package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bold/README.md +18 -0
- package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
- package/node_modules/@tiptap/extension-bold/package.json +50 -0
- package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
- package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
- package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
- package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code/README.md +18 -0
- package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
- package/node_modules/@tiptap/extension-code/package.json +50 -0
- package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code-block/README.md +18 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
- package/node_modules/@tiptap/extension-code-block/package.json +52 -0
- package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-document/README.md +18 -0
- package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
- package/node_modules/@tiptap/extension-document/package.json +50 -0
- package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
- package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
- package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
- package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
- package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-heading/README.md +18 -0
- package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
- package/node_modules/@tiptap/extension-heading/package.json +50 -0
- package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-highlight/README.md +18 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
- package/node_modules/@tiptap/extension-highlight/package.json +50 -0
- package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
- package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-image/README.md +18 -0
- package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
- package/node_modules/@tiptap/extension-image/package.json +50 -0
- package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-italic/README.md +18 -0
- package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
- package/node_modules/@tiptap/extension-italic/package.json +50 -0
- package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-link/README.md +18 -0
- package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
- package/node_modules/@tiptap/extension-link/package.json +56 -0
- package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list/README.md +18 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
- package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
- package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
- package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
- package/node_modules/@tiptap/extension-list/package.json +108 -0
- package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-item/README.md +18 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-item/package.json +50 -0
- package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
- package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
- package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
- package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-strike/README.md +18 -0
- package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
- package/node_modules/@tiptap/extension-strike/package.json +50 -0
- package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-subscript/README.md +18 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-subscript/package.json +52 -0
- package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-superscript/README.md +18 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-superscript/package.json +52 -0
- package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-table/README.md +18 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
- package/node_modules/@tiptap/extension-table/package.json +92 -0
- package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text/README.md +18 -0
- package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
- package/node_modules/@tiptap/extension-text/package.json +50 -0
- package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-align/README.md +18 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-text-align/package.json +50 -0
- package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-style/README.md +18 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/package.json +106 -0
- package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-underline/README.md +18 -0
- package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
- package/node_modules/@tiptap/extension-underline/package.json +50 -0
- package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-youtube/README.md +18 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
- package/node_modules/@tiptap/extension-youtube/package.json +50 -0
- package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
- package/node_modules/@tiptap/extensions/README.md +18 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
- package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
- package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.js +699 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
- package/node_modules/@tiptap/extensions/package.json +116 -0
- package/node_modules/@tiptap/pm/LICENSE +21 -0
- package/node_modules/@tiptap/pm/README.md +22 -0
- package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
- package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
- package/node_modules/@tiptap/pm/commands/index.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
- package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/history/index.ts +1 -0
- package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
- package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
- package/node_modules/@tiptap/pm/model/index.ts +1 -0
- package/node_modules/@tiptap/pm/package.json +166 -0
- package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
- package/node_modules/@tiptap/pm/state/index.ts +1 -0
- package/node_modules/@tiptap/pm/tables/index.ts +1 -0
- package/node_modules/@tiptap/pm/transform/index.ts +1 -0
- package/node_modules/@tiptap/pm/view/index.ts +1 -0
- package/node_modules/@tiptap/react/LICENSE.md +21 -0
- package/node_modules/@tiptap/react/README.md +18 -0
- package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
- package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
- package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
- package/node_modules/@tiptap/react/dist/index.js +1337 -0
- package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
- package/node_modules/@tiptap/react/package.json +80 -0
- package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
- package/node_modules/@tiptap/starter-kit/README.md +18 -0
- package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
- package/node_modules/@tiptap/starter-kit/package.json +70 -0
- package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
- package/node_modules/@tiptap/suggestion/README.md +18 -0
- package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
- package/node_modules/@tiptap/suggestion/package.json +54 -0
- package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
- package/node_modules/@types/use-sync-external-store/README.md +15 -0
- package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
- package/node_modules/@types/use-sync-external-store/package.json +30 -0
- package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
- package/node_modules/fast-equals/LICENSE +21 -0
- package/node_modules/fast-equals/README.md +479 -0
- package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
- package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
- package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
- package/node_modules/fast-equals/dist/es/index.mjs +785 -0
- package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
- package/node_modules/fast-equals/dist/umd/index.js +802 -0
- package/node_modules/fast-equals/index.d.ts +211 -0
- package/node_modules/fast-equals/package.json +120 -0
- package/node_modules/linkifyjs/LICENSE +19 -0
- package/node_modules/linkifyjs/README.md +47 -0
- package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
- package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
- package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
- package/node_modules/linkifyjs/dist/linkify.js +1859 -0
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
- package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
- package/node_modules/linkifyjs/package.json +38 -0
- package/node_modules/orderedmap/LICENSE +19 -0
- package/node_modules/orderedmap/README.md +69 -0
- package/node_modules/orderedmap/dist/index.cjs +139 -0
- package/node_modules/orderedmap/dist/index.d.cts +33 -0
- package/node_modules/orderedmap/dist/index.d.ts +33 -0
- package/node_modules/orderedmap/dist/index.js +137 -0
- package/node_modules/orderedmap/package.json +39 -0
- package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
- package/node_modules/prosemirror-changeset/LICENSE +19 -0
- package/node_modules/prosemirror-changeset/README.md +175 -0
- package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
- package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.js +722 -0
- package/node_modules/prosemirror-changeset/package.json +40 -0
- package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
- package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
- package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
- package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
- package/node_modules/prosemirror-commands/.tern-project +8 -0
- package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
- package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-commands/LICENSE +19 -0
- package/node_modules/prosemirror-commands/README.md +28 -0
- package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
- package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
- package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
- package/node_modules/prosemirror-commands/dist/index.js +852 -0
- package/node_modules/prosemirror-commands/package.json +39 -0
- package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
- package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
- package/node_modules/prosemirror-dropcursor/README.md +50 -0
- package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
- package/node_modules/prosemirror-dropcursor/package.json +38 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
- package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
- package/node_modules/prosemirror-gapcursor/README.md +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
- package/node_modules/prosemirror-gapcursor/package.json +43 -0
- package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
- package/node_modules/prosemirror-history/.tern-project +8 -0
- package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
- package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-history/LICENSE +19 -0
- package/node_modules/prosemirror-history/README.md +27 -0
- package/node_modules/prosemirror-history/dist/index.cjs +383 -0
- package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
- package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
- package/node_modules/prosemirror-history/dist/index.js +454 -0
- package/node_modules/prosemirror-history/package.json +40 -0
- package/node_modules/prosemirror-inputrules/.tern-project +8 -0
- package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
- package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-inputrules/LICENSE +19 -0
- package/node_modules/prosemirror-inputrules/README.md +29 -0
- package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
- package/node_modules/prosemirror-inputrules/package.json +36 -0
- package/node_modules/prosemirror-keymap/.tern-project +8 -0
- package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
- package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-keymap/LICENSE +19 -0
- package/node_modules/prosemirror-keymap/README.md +27 -0
- package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
- package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.js +128 -0
- package/node_modules/prosemirror-keymap/package.json +38 -0
- package/node_modules/prosemirror-model/.tern-project +8 -0
- package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-model/LICENSE +19 -0
- package/node_modules/prosemirror-model/README.md +29 -0
- package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
- package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
- package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
- package/node_modules/prosemirror-model/dist/index.js +3463 -0
- package/node_modules/prosemirror-model/package.json +38 -0
- package/node_modules/prosemirror-schema-list/.tern-project +8 -0
- package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
- package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
- package/node_modules/prosemirror-schema-list/LICENSE +19 -0
- package/node_modules/prosemirror-schema-list/README.md +28 -0
- package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
- package/node_modules/prosemirror-schema-list/package.json +40 -0
- package/node_modules/prosemirror-state/.tern-project +8 -0
- package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
- package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-state/LICENSE +19 -0
- package/node_modules/prosemirror-state/README.md +28 -0
- package/node_modules/prosemirror-state/dist/index.cjs +884 -0
- package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
- package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
- package/node_modules/prosemirror-state/dist/index.js +1002 -0
- package/node_modules/prosemirror-state/package.json +39 -0
- package/node_modules/prosemirror-tables/LICENSE +19 -0
- package/node_modules/prosemirror-tables/README.md +254 -0
- package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
- package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
- package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
- package/node_modules/prosemirror-tables/dist/index.js +2626 -0
- package/node_modules/prosemirror-tables/package.json +80 -0
- package/node_modules/prosemirror-tables/style/tables.css +48 -0
- package/node_modules/prosemirror-transform/.tern-project +8 -0
- package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
- package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-transform/LICENSE +19 -0
- package/node_modules/prosemirror-transform/README.md +29 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
- package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
- package/node_modules/prosemirror-transform/dist/index.js +2272 -0
- package/node_modules/prosemirror-transform/package.json +37 -0
- package/node_modules/prosemirror-view/.tern-project +8 -0
- package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
- package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-view/LICENSE +19 -0
- package/node_modules/prosemirror-view/README.md +28 -0
- package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
- package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
- package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
- package/node_modules/prosemirror-view/dist/index.js +6053 -0
- package/node_modules/prosemirror-view/package.json +43 -0
- package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
- package/node_modules/rope-sequence/LICENSE +19 -0
- package/node_modules/rope-sequence/README.md +63 -0
- package/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/node_modules/rope-sequence/dist/index.d.cts +11 -0
- package/node_modules/rope-sequence/dist/index.d.ts +11 -0
- package/node_modules/rope-sequence/dist/index.js +207 -0
- package/node_modules/rope-sequence/index.js +190 -0
- package/node_modules/rope-sequence/package.json +34 -0
- package/node_modules/rope-sequence/test.js +78 -0
- package/node_modules/use-sync-external-store/LICENSE +21 -0
- package/node_modules/use-sync-external-store/README.md +5 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
- package/node_modules/use-sync-external-store/index.js +7 -0
- package/node_modules/use-sync-external-store/package.json +43 -0
- package/node_modules/use-sync-external-store/shim/index.js +7 -0
- package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
- package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
- package/node_modules/use-sync-external-store/with-selector.js +7 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +79 -4
- package/src/Editor.tsx +425 -0
- package/src/ask.tsx +154 -0
- package/src/basic.tsx +149 -0
- package/src/blockMeta.ts +42 -0
- package/src/blockops.ts +179 -0
- package/src/blocks.tsx +189 -0
- package/src/boundary.tsx +17 -0
- package/src/content.ts +22 -0
- package/src/dynamic.tsx +105 -0
- package/src/editor.css +345 -0
- package/src/extensions.ts +78 -0
- package/src/handle.tsx +188 -0
- package/src/handles.tsx +149 -0
- package/src/index.ts +29 -0
- package/src/insert.ts +9 -0
- package/src/inserter.tsx +163 -0
- package/src/inspector.tsx +237 -0
- package/src/labels.ts +135 -0
- package/src/layout.tsx +174 -0
- package/src/layoutUi.tsx +226 -0
- package/src/media.ts +31 -0
- package/src/nodes.tsx +107 -0
- package/src/outline.tsx +124 -0
- package/src/panels.ts +59 -0
- package/src/paste.ts +100 -0
- package/src/patterns.ts +129 -0
- package/src/rank.ts +22 -0
- package/src/registry.ts +20 -0
- package/src/styleattr.ts +55 -0
- package/src/stylepanel.tsx +275 -0
- package/src/synced.tsx +128 -0
- package/src/toolbar.tsx +238 -0
- package/src/types.ts +55 -0
- package/src/unknown.tsx +74 -0
- package/src/util.ts +3 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
//#region src/utils.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether a url is a youtube url that the extension can embed.
|
|
5
|
+
*
|
|
6
|
+
* The `src` attribute of a youtube node is declared with `default: null`, so a node
|
|
7
|
+
* parsed from an iframe without a `src` attribute legitimately carries no url. Guard
|
|
8
|
+
* against that here instead of letting the caller dereference it.
|
|
9
|
+
*/
|
|
10
|
+
declare const isValidYoutubeUrl: (url: string | null | undefined) => RegExpMatchArray | null;
|
|
11
|
+
interface GetEmbedUrlOptions {
|
|
12
|
+
url: string;
|
|
13
|
+
allowFullscreen?: boolean;
|
|
14
|
+
autoplay?: boolean;
|
|
15
|
+
ccLanguage?: string;
|
|
16
|
+
ccLoadPolicy?: boolean;
|
|
17
|
+
controls?: boolean;
|
|
18
|
+
disableKBcontrols?: boolean;
|
|
19
|
+
enableIFrameApi?: boolean;
|
|
20
|
+
endTime?: number;
|
|
21
|
+
interfaceLanguage?: string;
|
|
22
|
+
ivLoadPolicy?: number;
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
modestBranding?: boolean;
|
|
25
|
+
nocookie?: boolean;
|
|
26
|
+
origin?: string;
|
|
27
|
+
playlist?: string;
|
|
28
|
+
progressBarColor?: string;
|
|
29
|
+
startAt?: number;
|
|
30
|
+
rel?: number;
|
|
31
|
+
}
|
|
32
|
+
interface YoutubeEmbedAttributes {
|
|
33
|
+
src: string;
|
|
34
|
+
start?: number;
|
|
35
|
+
}
|
|
36
|
+
declare const getEmbedUrlFromYoutubeUrl: (options: GetEmbedUrlOptions) => string | null;
|
|
37
|
+
declare const getAttributesFromYoutubeEmbedUrl: (url: string) => YoutubeEmbedAttributes | null;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/youtube.d.ts
|
|
40
|
+
interface YoutubeOptions {
|
|
41
|
+
/**
|
|
42
|
+
* Controls if the paste handler for youtube videos should be added.
|
|
43
|
+
* @default true
|
|
44
|
+
* @example false
|
|
45
|
+
*/
|
|
46
|
+
addPasteHandler: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Controls if the youtube video should be allowed to go fullscreen.
|
|
49
|
+
* @default true
|
|
50
|
+
* @example false
|
|
51
|
+
*/
|
|
52
|
+
allowFullscreen: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Controls if the youtube video should autoplay.
|
|
55
|
+
* @default false
|
|
56
|
+
* @example true
|
|
57
|
+
*/
|
|
58
|
+
autoplay: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The language of the captions shown in the youtube video.
|
|
61
|
+
* @default undefined
|
|
62
|
+
* @example 'en'
|
|
63
|
+
*/
|
|
64
|
+
ccLanguage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Controls if the captions should be shown in the youtube video.
|
|
67
|
+
* @default undefined
|
|
68
|
+
* @example true
|
|
69
|
+
*/
|
|
70
|
+
ccLoadPolicy?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Controls if the controls should be shown in the youtube video.
|
|
73
|
+
* @default true
|
|
74
|
+
* @example false
|
|
75
|
+
*/
|
|
76
|
+
controls: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Controls if the keyboard controls should be disabled in the youtube video.
|
|
79
|
+
* @default false
|
|
80
|
+
* @example true
|
|
81
|
+
*/
|
|
82
|
+
disableKBcontrols: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Controls if the iframe api should be enabled in the youtube video.
|
|
85
|
+
* @default false
|
|
86
|
+
* @example true
|
|
87
|
+
*/
|
|
88
|
+
enableIFrameApi: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The end time of the youtube video.
|
|
91
|
+
* @default 0
|
|
92
|
+
* @example 120
|
|
93
|
+
*/
|
|
94
|
+
endTime: number;
|
|
95
|
+
/**
|
|
96
|
+
* The height of the youtube video.
|
|
97
|
+
* @default 480
|
|
98
|
+
* @example 720
|
|
99
|
+
* @example '100%'
|
|
100
|
+
*/
|
|
101
|
+
height: number | string;
|
|
102
|
+
/**
|
|
103
|
+
* The language of the youtube video.
|
|
104
|
+
* @default undefined
|
|
105
|
+
* @example 'en'
|
|
106
|
+
*/
|
|
107
|
+
interfaceLanguage?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Controls if the video annotations should be shown in the youtube video.
|
|
110
|
+
* @default 0
|
|
111
|
+
* @example 1
|
|
112
|
+
*/
|
|
113
|
+
ivLoadPolicy: number;
|
|
114
|
+
/**
|
|
115
|
+
* Controls if the youtube video should loop.
|
|
116
|
+
* @default false
|
|
117
|
+
* @example true
|
|
118
|
+
*/
|
|
119
|
+
loop: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Controls if the youtube video should show a small youtube logo.
|
|
122
|
+
* @default false
|
|
123
|
+
* @example true
|
|
124
|
+
*/
|
|
125
|
+
modestBranding: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The HTML attributes for a youtube video node.
|
|
128
|
+
* @default {}
|
|
129
|
+
* @example { class: 'foo' }
|
|
130
|
+
*/
|
|
131
|
+
HTMLAttributes: Record<string, any>;
|
|
132
|
+
/**
|
|
133
|
+
* Controls if the youtube node should be inline or not.
|
|
134
|
+
* @default false
|
|
135
|
+
* @example true
|
|
136
|
+
*/
|
|
137
|
+
inline: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Controls if the youtube video should be loaded from youtube-nocookie.com.
|
|
140
|
+
* @default false
|
|
141
|
+
* @example true
|
|
142
|
+
*/
|
|
143
|
+
nocookie: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The origin of the youtube video.
|
|
146
|
+
* @default ''
|
|
147
|
+
* @example 'https://tiptap.dev'
|
|
148
|
+
*/
|
|
149
|
+
origin: string;
|
|
150
|
+
/**
|
|
151
|
+
* The playlist of the youtube video.
|
|
152
|
+
* @default ''
|
|
153
|
+
* @example 'PLQg6GaokU5CwiVmsZ0dZm6VeIg0V5z1tK'
|
|
154
|
+
*/
|
|
155
|
+
playlist: string;
|
|
156
|
+
/**
|
|
157
|
+
* The color of the youtube video progress bar.
|
|
158
|
+
* @default undefined
|
|
159
|
+
* @example 'red'
|
|
160
|
+
*/
|
|
161
|
+
progressBarColor?: string;
|
|
162
|
+
/**
|
|
163
|
+
* The width of the youtube video.
|
|
164
|
+
* @default 640
|
|
165
|
+
* @example 1280
|
|
166
|
+
* @example '100%'
|
|
167
|
+
*/
|
|
168
|
+
width: number | string;
|
|
169
|
+
/**
|
|
170
|
+
* Controls if the related youtube videos at the end are from the same channel.
|
|
171
|
+
* @default 1
|
|
172
|
+
* @example 0
|
|
173
|
+
*/
|
|
174
|
+
rel: number;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* The options for setting a youtube video.
|
|
178
|
+
*/
|
|
179
|
+
type SetYoutubeVideoOptions = {
|
|
180
|
+
src: string;
|
|
181
|
+
width?: number | string;
|
|
182
|
+
height?: number | string;
|
|
183
|
+
start?: number;
|
|
184
|
+
};
|
|
185
|
+
declare module '@tiptap/core' {
|
|
186
|
+
interface Commands<ReturnType> {
|
|
187
|
+
youtube: {
|
|
188
|
+
/**
|
|
189
|
+
* Insert a youtube video
|
|
190
|
+
* @param options The youtube video attributes
|
|
191
|
+
* @example editor.commands.setYoutubeVideo({ src: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' })
|
|
192
|
+
*/
|
|
193
|
+
setYoutubeVideo: (options: SetYoutubeVideoOptions) => ReturnType;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* This extension adds support for youtube videos.
|
|
199
|
+
* @see https://www.tiptap.dev/api/nodes/youtube
|
|
200
|
+
*/
|
|
201
|
+
declare const Youtube: Node<YoutubeOptions, any>;
|
|
202
|
+
//#endregion
|
|
203
|
+
export { type GetEmbedUrlOptions, Youtube, Youtube as default, YoutubeOptions, getAttributesFromYoutubeEmbedUrl, getEmbedUrlFromYoutubeUrl, isValidYoutubeUrl };
|
|
204
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { Node, createAtomBlockMarkdownSpec, mergeAttributes, nodePasteRule } from "@tiptap/core";
|
|
2
|
+
//#region src/utils.ts
|
|
3
|
+
const YOUTUBE_REGEX = /^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/;
|
|
4
|
+
const YOUTUBE_REGEX_GLOBAL = /^((?:https?:)?\/\/)?((?:www|m|music)\.)?((?:youtube\.com|youtu\.be|youtube-nocookie\.com))(\/(?:[\w-]+\?v=|embed\/|v\/)?)([\w-]+)(\S+)?$/g;
|
|
5
|
+
/**
|
|
6
|
+
* Checks whether a url is a youtube url that the extension can embed.
|
|
7
|
+
*
|
|
8
|
+
* The `src` attribute of a youtube node is declared with `default: null`, so a node
|
|
9
|
+
* parsed from an iframe without a `src` attribute legitimately carries no url. Guard
|
|
10
|
+
* against that here instead of letting the caller dereference it.
|
|
11
|
+
*/
|
|
12
|
+
const isValidYoutubeUrl = (url) => {
|
|
13
|
+
if (!url) return null;
|
|
14
|
+
return url.match(YOUTUBE_REGEX);
|
|
15
|
+
};
|
|
16
|
+
const getYoutubeEmbedUrl = (nocookie, isPlaylist) => {
|
|
17
|
+
if (isPlaylist) return "https://www.youtube-nocookie.com/embed/videoseries?list=";
|
|
18
|
+
return nocookie ? "https://www.youtube-nocookie.com/embed/" : "https://www.youtube.com/embed/";
|
|
19
|
+
};
|
|
20
|
+
const getEmbedUrlFromYoutubeUrl = (options) => {
|
|
21
|
+
const { url, allowFullscreen, autoplay, ccLanguage, ccLoadPolicy, controls, disableKBcontrols, enableIFrameApi, endTime, interfaceLanguage, ivLoadPolicy, loop, modestBranding, nocookie, origin, playlist, progressBarColor, startAt, rel } = options;
|
|
22
|
+
if (!isValidYoutubeUrl(url)) return null;
|
|
23
|
+
if (url.includes("/embed/")) return url;
|
|
24
|
+
if (url.includes("youtu.be")) {
|
|
25
|
+
const id = url.split("/").pop();
|
|
26
|
+
if (!id) return null;
|
|
27
|
+
return `${getYoutubeEmbedUrl(nocookie)}${id}`;
|
|
28
|
+
}
|
|
29
|
+
const matches = /(?:(v|list)=|\/(?:shorts|live)\/)([-\w]+)/gm.exec(url);
|
|
30
|
+
if (!matches || !matches[2]) return null;
|
|
31
|
+
let outputUrl = `${getYoutubeEmbedUrl(nocookie, matches[1] === "list")}${matches[2]}`;
|
|
32
|
+
const params = [];
|
|
33
|
+
if (allowFullscreen === false) params.push("fs=0");
|
|
34
|
+
if (autoplay) params.push("autoplay=1");
|
|
35
|
+
if (ccLanguage) params.push(`cc_lang_pref=${ccLanguage}`);
|
|
36
|
+
if (ccLoadPolicy) params.push("cc_load_policy=1");
|
|
37
|
+
if (!controls) params.push("controls=0");
|
|
38
|
+
if (disableKBcontrols) params.push("disablekb=1");
|
|
39
|
+
if (enableIFrameApi) params.push("enablejsapi=1");
|
|
40
|
+
if (endTime) params.push(`end=${endTime}`);
|
|
41
|
+
if (interfaceLanguage) params.push(`hl=${interfaceLanguage}`);
|
|
42
|
+
if (ivLoadPolicy) params.push(`iv_load_policy=${ivLoadPolicy}`);
|
|
43
|
+
if (loop) params.push("loop=1");
|
|
44
|
+
if (modestBranding) params.push("modestbranding=1");
|
|
45
|
+
if (origin) params.push(`origin=${origin}`);
|
|
46
|
+
if (playlist) params.push(`playlist=${playlist}`);
|
|
47
|
+
if (startAt) params.push(`start=${startAt}`);
|
|
48
|
+
if (progressBarColor) params.push(`color=${progressBarColor}`);
|
|
49
|
+
if (rel !== void 0) params.push(`rel=${rel}`);
|
|
50
|
+
if (params.length) outputUrl += `${matches[1] === "list" ? "&" : "?"}${params.join("&")}`;
|
|
51
|
+
return outputUrl;
|
|
52
|
+
};
|
|
53
|
+
const getAttributesFromYoutubeEmbedUrl = (url) => {
|
|
54
|
+
let parsedUrl;
|
|
55
|
+
try {
|
|
56
|
+
parsedUrl = new URL(url);
|
|
57
|
+
} catch {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const hostname = parsedUrl.hostname.replace(/^www\./, "");
|
|
61
|
+
if (hostname !== "youtube.com" && hostname !== "youtube-nocookie.com") return null;
|
|
62
|
+
let src = null;
|
|
63
|
+
if (parsedUrl.pathname === "/embed/videoseries") {
|
|
64
|
+
const list = parsedUrl.searchParams.get("list");
|
|
65
|
+
if (!list) return null;
|
|
66
|
+
src = `https://www.youtube.com/playlist?list=${list}`;
|
|
67
|
+
} else {
|
|
68
|
+
const matches = parsedUrl.pathname.match(/^\/embed\/([\w-]+)$/);
|
|
69
|
+
if (!(matches === null || matches === void 0 ? void 0 : matches[1])) return null;
|
|
70
|
+
src = `https://www.youtube.com/watch?v=${matches[1]}`;
|
|
71
|
+
}
|
|
72
|
+
if (!isValidYoutubeUrl(src)) return null;
|
|
73
|
+
const attributes = { src };
|
|
74
|
+
const start = parsedUrl.searchParams.get("start");
|
|
75
|
+
if (start) {
|
|
76
|
+
const parsedStart = Number.parseInt(start, 10);
|
|
77
|
+
if (!Number.isNaN(parsedStart)) attributes.start = parsedStart;
|
|
78
|
+
}
|
|
79
|
+
return attributes;
|
|
80
|
+
};
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/youtube.ts
|
|
83
|
+
const getParsedDimension = (value) => {
|
|
84
|
+
if (!value) return null;
|
|
85
|
+
const trimmedValue = value.trim();
|
|
86
|
+
if (trimmedValue === "") return null;
|
|
87
|
+
const parsedValue = Number(trimmedValue);
|
|
88
|
+
return Number.isNaN(parsedValue) ? trimmedValue : parsedValue;
|
|
89
|
+
};
|
|
90
|
+
const getParsedYoutubeAttributes = (element) => {
|
|
91
|
+
const src = element.getAttribute("src");
|
|
92
|
+
if (!src) return null;
|
|
93
|
+
const embedAttributes = getAttributesFromYoutubeEmbedUrl(src);
|
|
94
|
+
if (embedAttributes) return embedAttributes;
|
|
95
|
+
return { src };
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* This extension adds support for youtube videos.
|
|
99
|
+
* @see https://www.tiptap.dev/api/nodes/youtube
|
|
100
|
+
*/
|
|
101
|
+
const Youtube = Node.create({
|
|
102
|
+
name: "youtube",
|
|
103
|
+
addOptions() {
|
|
104
|
+
return {
|
|
105
|
+
addPasteHandler: true,
|
|
106
|
+
allowFullscreen: true,
|
|
107
|
+
autoplay: false,
|
|
108
|
+
ccLanguage: void 0,
|
|
109
|
+
ccLoadPolicy: void 0,
|
|
110
|
+
controls: true,
|
|
111
|
+
disableKBcontrols: false,
|
|
112
|
+
enableIFrameApi: false,
|
|
113
|
+
endTime: 0,
|
|
114
|
+
height: 480,
|
|
115
|
+
interfaceLanguage: void 0,
|
|
116
|
+
ivLoadPolicy: 0,
|
|
117
|
+
loop: false,
|
|
118
|
+
modestBranding: false,
|
|
119
|
+
HTMLAttributes: {},
|
|
120
|
+
inline: false,
|
|
121
|
+
nocookie: false,
|
|
122
|
+
origin: "",
|
|
123
|
+
playlist: "",
|
|
124
|
+
progressBarColor: void 0,
|
|
125
|
+
width: 640,
|
|
126
|
+
rel: 1
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
inline() {
|
|
130
|
+
return this.options.inline;
|
|
131
|
+
},
|
|
132
|
+
group() {
|
|
133
|
+
return this.options.inline ? "inline" : "block";
|
|
134
|
+
},
|
|
135
|
+
draggable: true,
|
|
136
|
+
addAttributes() {
|
|
137
|
+
return {
|
|
138
|
+
src: {
|
|
139
|
+
default: null,
|
|
140
|
+
parseHTML: (element) => {
|
|
141
|
+
var _getParsedYoutubeAttr;
|
|
142
|
+
return (_getParsedYoutubeAttr = getParsedYoutubeAttributes(element)) === null || _getParsedYoutubeAttr === void 0 ? void 0 : _getParsedYoutubeAttr.src;
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
start: {
|
|
146
|
+
default: 0,
|
|
147
|
+
parseHTML: (element) => {
|
|
148
|
+
var _getParsedYoutubeAttr2;
|
|
149
|
+
return (_getParsedYoutubeAttr2 = getParsedYoutubeAttributes(element)) === null || _getParsedYoutubeAttr2 === void 0 ? void 0 : _getParsedYoutubeAttr2.start;
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
width: {
|
|
153
|
+
default: this.options.width,
|
|
154
|
+
parseHTML: (element) => getParsedDimension(element.getAttribute("width"))
|
|
155
|
+
},
|
|
156
|
+
height: {
|
|
157
|
+
default: this.options.height,
|
|
158
|
+
parseHTML: (element) => getParsedDimension(element.getAttribute("height"))
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
parseHTML() {
|
|
163
|
+
return [{ tag: "div[data-youtube-video] iframe" }];
|
|
164
|
+
},
|
|
165
|
+
addCommands() {
|
|
166
|
+
return { setYoutubeVideo: (options) => ({ commands }) => {
|
|
167
|
+
if (!isValidYoutubeUrl(options.src)) return false;
|
|
168
|
+
return commands.insertContent({
|
|
169
|
+
type: this.name,
|
|
170
|
+
attrs: options
|
|
171
|
+
});
|
|
172
|
+
} };
|
|
173
|
+
},
|
|
174
|
+
addPasteRules() {
|
|
175
|
+
if (!this.options.addPasteHandler) return [];
|
|
176
|
+
return [nodePasteRule({
|
|
177
|
+
find: YOUTUBE_REGEX_GLOBAL,
|
|
178
|
+
type: this.type,
|
|
179
|
+
getAttributes: (match) => {
|
|
180
|
+
return { src: match.input };
|
|
181
|
+
}
|
|
182
|
+
})];
|
|
183
|
+
},
|
|
184
|
+
renderHTML({ HTMLAttributes }) {
|
|
185
|
+
HTMLAttributes.src = getEmbedUrlFromYoutubeUrl({
|
|
186
|
+
url: HTMLAttributes.src,
|
|
187
|
+
allowFullscreen: this.options.allowFullscreen,
|
|
188
|
+
autoplay: this.options.autoplay,
|
|
189
|
+
ccLanguage: this.options.ccLanguage,
|
|
190
|
+
ccLoadPolicy: this.options.ccLoadPolicy,
|
|
191
|
+
controls: this.options.controls,
|
|
192
|
+
disableKBcontrols: this.options.disableKBcontrols,
|
|
193
|
+
enableIFrameApi: this.options.enableIFrameApi,
|
|
194
|
+
endTime: this.options.endTime,
|
|
195
|
+
interfaceLanguage: this.options.interfaceLanguage,
|
|
196
|
+
ivLoadPolicy: this.options.ivLoadPolicy,
|
|
197
|
+
loop: this.options.loop,
|
|
198
|
+
modestBranding: this.options.modestBranding,
|
|
199
|
+
nocookie: this.options.nocookie,
|
|
200
|
+
origin: this.options.origin,
|
|
201
|
+
playlist: this.options.playlist,
|
|
202
|
+
progressBarColor: this.options.progressBarColor,
|
|
203
|
+
startAt: HTMLAttributes.start || 0,
|
|
204
|
+
rel: this.options.rel
|
|
205
|
+
});
|
|
206
|
+
return [
|
|
207
|
+
"div",
|
|
208
|
+
{ "data-youtube-video": "" },
|
|
209
|
+
["iframe", mergeAttributes(this.options.HTMLAttributes, {
|
|
210
|
+
width: this.options.width,
|
|
211
|
+
height: this.options.height,
|
|
212
|
+
allowfullscreen: this.options.allowFullscreen,
|
|
213
|
+
autoplay: this.options.autoplay,
|
|
214
|
+
ccLanguage: this.options.ccLanguage,
|
|
215
|
+
ccLoadPolicy: this.options.ccLoadPolicy,
|
|
216
|
+
disableKBcontrols: this.options.disableKBcontrols,
|
|
217
|
+
enableIFrameApi: this.options.enableIFrameApi,
|
|
218
|
+
endTime: this.options.endTime,
|
|
219
|
+
interfaceLanguage: this.options.interfaceLanguage,
|
|
220
|
+
ivLoadPolicy: this.options.ivLoadPolicy,
|
|
221
|
+
loop: this.options.loop,
|
|
222
|
+
modestBranding: this.options.modestBranding,
|
|
223
|
+
origin: this.options.origin,
|
|
224
|
+
playlist: this.options.playlist,
|
|
225
|
+
progressBarColor: this.options.progressBarColor,
|
|
226
|
+
rel: this.options.rel
|
|
227
|
+
}, HTMLAttributes)]
|
|
228
|
+
];
|
|
229
|
+
},
|
|
230
|
+
...createAtomBlockMarkdownSpec({
|
|
231
|
+
nodeName: "youtube",
|
|
232
|
+
allowedAttributes: [
|
|
233
|
+
"src",
|
|
234
|
+
"width",
|
|
235
|
+
"height",
|
|
236
|
+
"start"
|
|
237
|
+
]
|
|
238
|
+
})
|
|
239
|
+
});
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/index.ts
|
|
242
|
+
var src_default = Youtube;
|
|
243
|
+
//#endregion
|
|
244
|
+
export { Youtube, src_default as default, getAttributesFromYoutubeEmbedUrl, getEmbedUrlFromYoutubeUrl, isValidYoutubeUrl };
|
|
245
|
+
|
|
246
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tiptap/extension-youtube",
|
|
3
|
+
"version": "3.32.0",
|
|
4
|
+
"description": "a youtube embed extension for tiptap",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tiptap",
|
|
7
|
+
"tiptap extension"
|
|
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/extension-youtube"
|
|
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
|
+
"main": "dist/index.cjs",
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": {
|
|
34
|
+
"import": "./dist/index.d.ts",
|
|
35
|
+
"require": "./dist/index.d.cts"
|
|
36
|
+
},
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"require": "./dist/index.cjs"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@tiptap/core": "^3.32.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@tiptap/core": "3.32.0"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "vp pack"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -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/extensions
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@tiptap/extension-focus)
|
|
4
|
+
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
|
5
|
+
[](https://www.npmjs.com/package/@tiptap/extension-focus)
|
|
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,87 @@
|
|
|
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/character-count/character-count.ts
|
|
5
|
+
/**
|
|
6
|
+
* This extension allows you to count the characters and words of your document.
|
|
7
|
+
* @see https://tiptap.dev/api/extensions/character-count
|
|
8
|
+
*/
|
|
9
|
+
const CharacterCount = _tiptap_core.Extension.create({
|
|
10
|
+
name: "characterCount",
|
|
11
|
+
addOptions() {
|
|
12
|
+
return {
|
|
13
|
+
limit: null,
|
|
14
|
+
autoTrim: true,
|
|
15
|
+
mode: "textSize",
|
|
16
|
+
textCounter: (text) => text.length,
|
|
17
|
+
wordCounter: (text) => text.split(" ").filter((word) => word !== "").length
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
addStorage() {
|
|
21
|
+
return {
|
|
22
|
+
characters: () => 0,
|
|
23
|
+
words: () => 0
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
onBeforeCreate() {
|
|
27
|
+
this.storage.characters = (options) => {
|
|
28
|
+
const node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;
|
|
29
|
+
if (((options === null || options === void 0 ? void 0 : options.mode) || this.options.mode) === "textSize") {
|
|
30
|
+
const text = node.textBetween(0, node.content.size, void 0, " ");
|
|
31
|
+
return this.options.textCounter(text);
|
|
32
|
+
}
|
|
33
|
+
return node.nodeSize;
|
|
34
|
+
};
|
|
35
|
+
this.storage.words = (options) => {
|
|
36
|
+
const node = (options === null || options === void 0 ? void 0 : options.node) || this.editor.state.doc;
|
|
37
|
+
const text = node.textBetween(0, node.content.size, " ", " ");
|
|
38
|
+
return this.options.wordCounter(text);
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
addProseMirrorPlugins() {
|
|
42
|
+
let initialEvaluationDone = false;
|
|
43
|
+
return [new _tiptap_pm_state.Plugin({
|
|
44
|
+
key: new _tiptap_pm_state.PluginKey("characterCount"),
|
|
45
|
+
appendTransaction: (transactions, oldState, newState) => {
|
|
46
|
+
if (initialEvaluationDone) return;
|
|
47
|
+
const limit = this.options.limit;
|
|
48
|
+
const autoTrim = this.options.autoTrim;
|
|
49
|
+
if (limit === null || limit === void 0 || limit === 0 || autoTrim === false) {
|
|
50
|
+
initialEvaluationDone = true;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const initialContentSize = this.storage.characters({ node: newState.doc });
|
|
54
|
+
if (initialContentSize > limit) {
|
|
55
|
+
const over = initialContentSize - limit;
|
|
56
|
+
const from = 0;
|
|
57
|
+
const to = over;
|
|
58
|
+
console.warn(`[CharacterCount] Initial content exceeded limit of ${limit} characters. Content was automatically trimmed.`);
|
|
59
|
+
const tr = newState.tr.deleteRange(from, to);
|
|
60
|
+
initialEvaluationDone = true;
|
|
61
|
+
return tr;
|
|
62
|
+
}
|
|
63
|
+
initialEvaluationDone = true;
|
|
64
|
+
},
|
|
65
|
+
filterTransaction: (transaction, state) => {
|
|
66
|
+
const limit = this.options.limit;
|
|
67
|
+
if (!transaction.docChanged || limit === 0 || limit === null || limit === void 0) return true;
|
|
68
|
+
const oldSize = this.storage.characters({ node: state.doc });
|
|
69
|
+
const newSize = this.storage.characters({ node: transaction.doc });
|
|
70
|
+
if (newSize <= limit) return true;
|
|
71
|
+
if (oldSize > limit && newSize > limit && newSize <= oldSize) return true;
|
|
72
|
+
if (oldSize > limit && newSize > limit && newSize > oldSize) return false;
|
|
73
|
+
if (!transaction.getMeta("paste")) return false;
|
|
74
|
+
const pos = transaction.selection.$head.pos;
|
|
75
|
+
const from = pos - (newSize - limit);
|
|
76
|
+
const to = pos;
|
|
77
|
+
transaction.deleteRange(from, to);
|
|
78
|
+
if (this.storage.characters({ node: transaction.doc }) > limit) return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
})];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
exports.CharacterCount = CharacterCount;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
import { Node } from "@tiptap/pm/model";
|
|
3
|
+
//#region src/character-count/character-count.d.ts
|
|
4
|
+
interface CharacterCountOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The maximum number of characters that should be allowed. Defaults to `0`.
|
|
7
|
+
* @default null
|
|
8
|
+
* @example 180
|
|
9
|
+
*/
|
|
10
|
+
limit: number | null | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The mode by which the size is calculated. If set to `textSize`, the textContent of the document is used.
|
|
13
|
+
* If set to `nodeSize`, the nodeSize of the document is used.
|
|
14
|
+
* @default 'textSize'
|
|
15
|
+
* @example 'textSize'
|
|
16
|
+
*/
|
|
17
|
+
mode: 'textSize' | 'nodeSize';
|
|
18
|
+
/**
|
|
19
|
+
* Sets whether the content will be automatically trimmed when programatically setting content over the limit.
|
|
20
|
+
* If set to false, the user will be able to trim the text manually.
|
|
21
|
+
* @default true
|
|
22
|
+
* @example false
|
|
23
|
+
*/
|
|
24
|
+
autoTrim?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The text counter function to use. Defaults to a simple character count.
|
|
27
|
+
* @default (text) => text.length
|
|
28
|
+
* @example (text) => [...new Intl.Segmenter().segment(text)].length
|
|
29
|
+
*/
|
|
30
|
+
textCounter: (text: string) => number;
|
|
31
|
+
/**
|
|
32
|
+
* The word counter function to use. Defaults to a simple word count.
|
|
33
|
+
* @default (text) => text.split(' ').filter(word => word !== '').length
|
|
34
|
+
* @example (text) => text.split(/\s+/).filter(word => word !== '').length
|
|
35
|
+
*/
|
|
36
|
+
wordCounter: (text: string) => number;
|
|
37
|
+
}
|
|
38
|
+
interface CharacterCountStorage {
|
|
39
|
+
/**
|
|
40
|
+
* Get the number of characters for the current document.
|
|
41
|
+
* @param options The options for the character count. (optional)
|
|
42
|
+
* @param options.node The node to get the characters from. Defaults to the current document.
|
|
43
|
+
* @param options.mode The mode by which the size is calculated. If set to `textSize`, the textContent of the document is used.
|
|
44
|
+
*/
|
|
45
|
+
characters: (options?: {
|
|
46
|
+
node?: Node;
|
|
47
|
+
mode?: 'textSize' | 'nodeSize';
|
|
48
|
+
}) => number;
|
|
49
|
+
/**
|
|
50
|
+
* Get the number of words for the current document.
|
|
51
|
+
* @param options The options for the character count. (optional)
|
|
52
|
+
* @param options.node The node to get the words from. Defaults to the current document.
|
|
53
|
+
*/
|
|
54
|
+
words: (options?: {
|
|
55
|
+
node?: Node;
|
|
56
|
+
}) => number;
|
|
57
|
+
}
|
|
58
|
+
declare module '@tiptap/core' {
|
|
59
|
+
interface Storage {
|
|
60
|
+
characterCount: CharacterCountStorage;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* This extension allows you to count the characters and words of your document.
|
|
65
|
+
* @see https://tiptap.dev/api/extensions/character-count
|
|
66
|
+
*/
|
|
67
|
+
declare const CharacterCount: Extension<CharacterCountOptions, CharacterCountStorage>;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { CharacterCount, CharacterCountOptions, CharacterCountStorage };
|
|
70
|
+
//# sourceMappingURL=index.d.cts.map
|