@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,588 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
function typeID(type) {
|
|
16
|
+
var cache = type.schema.cached.changeSetIDs || (type.schema.cached.changeSetIDs = Object.create(null));
|
|
17
|
+
var id = cache[type.name];
|
|
18
|
+
if (id == null) cache[type.name] = id = Object.keys(type.schema.nodes).indexOf(type.name) + 1;
|
|
19
|
+
return id;
|
|
20
|
+
}
|
|
21
|
+
var DefaultEncoder = {
|
|
22
|
+
encodeCharacter: function encodeCharacter(_char) {
|
|
23
|
+
return _char;
|
|
24
|
+
},
|
|
25
|
+
encodeNodeStart: function encodeNodeStart(node) {
|
|
26
|
+
return node.type.name;
|
|
27
|
+
},
|
|
28
|
+
encodeNodeEnd: function encodeNodeEnd(node) {
|
|
29
|
+
return -typeID(node.type);
|
|
30
|
+
},
|
|
31
|
+
compareTokens: function compareTokens(a, b) {
|
|
32
|
+
return a === b;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function tokens(frag, encoder, start, end, target) {
|
|
36
|
+
for (var i = 0, off = 0; i < frag.childCount; i++) {
|
|
37
|
+
var child = frag.child(i),
|
|
38
|
+
endOff = off + child.nodeSize;
|
|
39
|
+
var from = Math.max(off, start),
|
|
40
|
+
to = Math.min(endOff, end);
|
|
41
|
+
if (from < to) {
|
|
42
|
+
if (child.isText) {
|
|
43
|
+
for (var j = from; j < to; j++) target.push(encoder.encodeCharacter(child.text.charCodeAt(j - off), child.marks));
|
|
44
|
+
} else if (child.isLeaf) {
|
|
45
|
+
target.push(encoder.encodeNodeStart(child));
|
|
46
|
+
} else {
|
|
47
|
+
if (from == off) target.push(encoder.encodeNodeStart(child));
|
|
48
|
+
tokens(child.content, encoder, Math.max(off + 1, from) - off - 1, Math.min(endOff - 1, to) - off - 1, target);
|
|
49
|
+
if (to == endOff) target.push(encoder.encodeNodeEnd(child));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
off = endOff;
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
var MAX_DIFF_SIZE = 2500,
|
|
57
|
+
MAX_TOKEN_SIZE = 10000;
|
|
58
|
+
function minUnchanged(sizeA, sizeB) {
|
|
59
|
+
return Math.min(15, Math.max(2, Math.floor(Math.max(sizeA, sizeB) / 10)));
|
|
60
|
+
}
|
|
61
|
+
function computeDiff(fragA, fragB, range) {
|
|
62
|
+
var encoder = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DefaultEncoder;
|
|
63
|
+
if (Math.max(range.toA - range.fromA, range.toB - range.fromB) > MAX_TOKEN_SIZE) return [range];
|
|
64
|
+
var tokA = tokens(fragA, encoder, range.fromA, range.toA, []);
|
|
65
|
+
var tokB = tokens(fragB, encoder, range.fromB, range.toB, []);
|
|
66
|
+
return diff(tokA, tokB, range, encoder.compareTokens);
|
|
67
|
+
}
|
|
68
|
+
function diff(tokA, tokB, range, cmp) {
|
|
69
|
+
var start = 0,
|
|
70
|
+
endA = tokA.length,
|
|
71
|
+
endB = tokB.length;
|
|
72
|
+
while (start < tokA.length && start < tokB.length && cmp(tokA[start], tokB[start])) start++;
|
|
73
|
+
if (start == tokA.length && start == tokB.length) return [];
|
|
74
|
+
while (endA > start && endB > start && cmp(tokA[endA - 1], tokB[endB - 1])) endA--, endB--;
|
|
75
|
+
if (endA == start && endB == start) return [];
|
|
76
|
+
if (endA == start || endB == start || endA == endB && endA == start + 1 || Math.max(endA, endB) - start > MAX_DIFF_SIZE) return [range.slice(start, endA, start, endB)];
|
|
77
|
+
var lenA = endA - start,
|
|
78
|
+
lenB = endB - start;
|
|
79
|
+
var max = Math.min(MAX_DIFF_SIZE, lenA + lenB);
|
|
80
|
+
var history = [];
|
|
81
|
+
var frontier = new Int16Array((max + 1) * 2).fill(-1);
|
|
82
|
+
for (var size = 0; size <= max; size++) {
|
|
83
|
+
var _loop = function _loop(_diag) {
|
|
84
|
+
var next = frontier[_diag + 1 + max],
|
|
85
|
+
prev = frontier[_diag - 1 + max];
|
|
86
|
+
var x = next < prev ? prev : next + 1,
|
|
87
|
+
y = x + _diag;
|
|
88
|
+
while (x < lenA && y < lenB && cmp(tokA[start + x], tokB[start + y])) x++, y++;
|
|
89
|
+
frontier[_diag + max] = x;
|
|
90
|
+
if (x >= lenA && y >= lenB) {
|
|
91
|
+
var _diff = [],
|
|
92
|
+
minSpan = minUnchanged(endA - start, endB - start);
|
|
93
|
+
var fromA = -1,
|
|
94
|
+
toA = -1,
|
|
95
|
+
fromB = -1,
|
|
96
|
+
toB = -1;
|
|
97
|
+
var add = function add(fA, tA, fB, tB) {
|
|
98
|
+
if (fromA > -1 && fromA < tA + minSpan) {
|
|
99
|
+
fromA = fA;
|
|
100
|
+
fromB = fB;
|
|
101
|
+
} else {
|
|
102
|
+
if (fromA > -1) _diff.push(range.slice(fromA, toA, fromB, toB));
|
|
103
|
+
fromA = fA;
|
|
104
|
+
toA = tA;
|
|
105
|
+
fromB = fB;
|
|
106
|
+
toB = tB;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
for (var i = size - 1; i >= 0; i--) {
|
|
110
|
+
var _next = frontier[_diag + 1 + max],
|
|
111
|
+
_prev = frontier[_diag - 1 + max];
|
|
112
|
+
if (_next < _prev) {
|
|
113
|
+
_diag--;
|
|
114
|
+
x = _prev + start;
|
|
115
|
+
y = x + _diag;
|
|
116
|
+
add(x, x, y, y + 1);
|
|
117
|
+
} else {
|
|
118
|
+
_diag++;
|
|
119
|
+
x = _next + start;
|
|
120
|
+
y = x + _diag;
|
|
121
|
+
add(x, x + 1, y, y);
|
|
122
|
+
}
|
|
123
|
+
frontier = history[i >> 1];
|
|
124
|
+
}
|
|
125
|
+
if (fromA > -1) _diff.push(range.slice(fromA, toA, fromB, toB));
|
|
126
|
+
return {
|
|
127
|
+
v: _diff.reverse()
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
diag = _diag;
|
|
131
|
+
},
|
|
132
|
+
_ret;
|
|
133
|
+
for (var diag = -size; diag <= size; diag += 2) {
|
|
134
|
+
_ret = _loop(diag);
|
|
135
|
+
if (_ret) return _ret.v;
|
|
136
|
+
}
|
|
137
|
+
if (size % 2 == 0) history.push(frontier.slice());
|
|
138
|
+
}
|
|
139
|
+
return [range.slice(start, endA, start, endB)];
|
|
140
|
+
}
|
|
141
|
+
var Span = function () {
|
|
142
|
+
function Span(length, data) {
|
|
143
|
+
_classCallCheck(this, Span);
|
|
144
|
+
this.length = length;
|
|
145
|
+
this.data = data;
|
|
146
|
+
}
|
|
147
|
+
_createClass(Span, [{
|
|
148
|
+
key: "cut",
|
|
149
|
+
value: function cut(length) {
|
|
150
|
+
return length == this.length ? this : new Span(length, this.data);
|
|
151
|
+
}
|
|
152
|
+
}], [{
|
|
153
|
+
key: "slice",
|
|
154
|
+
value: function slice(spans, from, to) {
|
|
155
|
+
if (from == to) return Span.none;
|
|
156
|
+
if (from == 0 && to == Span.len(spans)) return spans;
|
|
157
|
+
var result = [];
|
|
158
|
+
for (var i = 0, off = 0; off < to; i++) {
|
|
159
|
+
var span = spans[i],
|
|
160
|
+
end = off + span.length;
|
|
161
|
+
var overlap = Math.min(to, end) - Math.max(from, off);
|
|
162
|
+
if (overlap > 0) result.push(span.cut(overlap));
|
|
163
|
+
off = end;
|
|
164
|
+
}
|
|
165
|
+
return result;
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "join",
|
|
169
|
+
value: function join(a, b, combine) {
|
|
170
|
+
if (a.length == 0) return b;
|
|
171
|
+
if (b.length == 0) return a;
|
|
172
|
+
var combined = combine(a[a.length - 1].data, b[0].data);
|
|
173
|
+
if (combined == null) return a.concat(b);
|
|
174
|
+
var result = a.slice(0, a.length - 1);
|
|
175
|
+
result.push(new Span(a[a.length - 1].length + b[0].length, combined));
|
|
176
|
+
for (var i = 1; i < b.length; i++) result.push(b[i]);
|
|
177
|
+
return result;
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
key: "len",
|
|
181
|
+
value: function len(spans) {
|
|
182
|
+
var len = 0;
|
|
183
|
+
for (var i = 0; i < spans.length; i++) len += spans[i].length;
|
|
184
|
+
return len;
|
|
185
|
+
}
|
|
186
|
+
}]);
|
|
187
|
+
return Span;
|
|
188
|
+
}();
|
|
189
|
+
Span.none = [];
|
|
190
|
+
var Change = function () {
|
|
191
|
+
function Change(fromA, toA, fromB, toB, deleted, inserted) {
|
|
192
|
+
_classCallCheck(this, Change);
|
|
193
|
+
this.fromA = fromA;
|
|
194
|
+
this.toA = toA;
|
|
195
|
+
this.fromB = fromB;
|
|
196
|
+
this.toB = toB;
|
|
197
|
+
this.deleted = deleted;
|
|
198
|
+
this.inserted = inserted;
|
|
199
|
+
}
|
|
200
|
+
_createClass(Change, [{
|
|
201
|
+
key: "lenA",
|
|
202
|
+
get: function get() {
|
|
203
|
+
return this.toA - this.fromA;
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
key: "lenB",
|
|
207
|
+
get: function get() {
|
|
208
|
+
return this.toB - this.fromB;
|
|
209
|
+
}
|
|
210
|
+
}, {
|
|
211
|
+
key: "slice",
|
|
212
|
+
value: function slice(startA, endA, startB, endB) {
|
|
213
|
+
if (startA == 0 && startB == 0 && endA == this.toA - this.fromA && endB == this.toB - this.fromB) return this;
|
|
214
|
+
return new Change(this.fromA + startA, this.fromA + endA, this.fromB + startB, this.fromB + endB, Span.slice(this.deleted, startA, endA), Span.slice(this.inserted, startB, endB));
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
key: "toJSON",
|
|
218
|
+
value: function toJSON() {
|
|
219
|
+
return this;
|
|
220
|
+
}
|
|
221
|
+
}], [{
|
|
222
|
+
key: "merge",
|
|
223
|
+
value: function merge(x, y, combine) {
|
|
224
|
+
if (x.length == 0) return y;
|
|
225
|
+
if (y.length == 0) return x;
|
|
226
|
+
var result = [];
|
|
227
|
+
for (var iX = 0, iY = 0, curX = x[0], curY = y[0];;) {
|
|
228
|
+
if (!curX && !curY) {
|
|
229
|
+
return result;
|
|
230
|
+
} else if (curX && (!curY || curX.toB < curY.fromA)) {
|
|
231
|
+
var off = iY ? y[iY - 1].toB - y[iY - 1].toA : 0;
|
|
232
|
+
result.push(off == 0 ? curX : new Change(curX.fromA, curX.toA, curX.fromB + off, curX.toB + off, curX.deleted, curX.inserted));
|
|
233
|
+
curX = iX++ == x.length ? null : x[iX];
|
|
234
|
+
} else if (curY && (!curX || curY.toA < curX.fromB)) {
|
|
235
|
+
var _off = iX ? x[iX - 1].toB - x[iX - 1].toA : 0;
|
|
236
|
+
result.push(_off == 0 ? curY : new Change(curY.fromA - _off, curY.toA - _off, curY.fromB, curY.toB, curY.deleted, curY.inserted));
|
|
237
|
+
curY = iY++ == y.length ? null : y[iY];
|
|
238
|
+
} else {
|
|
239
|
+
var pos = Math.min(curX.fromB, curY.fromA);
|
|
240
|
+
var fromA = Math.min(curX.fromA, curY.fromA - (iX ? x[iX - 1].toB - x[iX - 1].toA : 0)),
|
|
241
|
+
toA = fromA;
|
|
242
|
+
var fromB = Math.min(curY.fromB, curX.fromB + (iY ? y[iY - 1].toB - y[iY - 1].toA : 0)),
|
|
243
|
+
toB = fromB;
|
|
244
|
+
var deleted = Span.none,
|
|
245
|
+
inserted = Span.none;
|
|
246
|
+
var enteredX = false,
|
|
247
|
+
enteredY = false;
|
|
248
|
+
for (;;) {
|
|
249
|
+
var nextX = !curX ? 2e8 : pos >= curX.fromB ? curX.toB : curX.fromB;
|
|
250
|
+
var nextY = !curY ? 2e8 : pos >= curY.fromA ? curY.toA : curY.fromA;
|
|
251
|
+
var next = Math.min(nextX, nextY);
|
|
252
|
+
var inX = curX && pos >= curX.fromB,
|
|
253
|
+
inY = curY && pos >= curY.fromA;
|
|
254
|
+
if (!inX && !inY) break;
|
|
255
|
+
if (inX && pos == curX.fromB && !enteredX) {
|
|
256
|
+
deleted = Span.join(deleted, curX.deleted, combine);
|
|
257
|
+
toA += curX.lenA;
|
|
258
|
+
enteredX = true;
|
|
259
|
+
}
|
|
260
|
+
if (inX && !inY) {
|
|
261
|
+
inserted = Span.join(inserted, Span.slice(curX.inserted, pos - curX.fromB, next - curX.fromB), combine);
|
|
262
|
+
toB += next - pos;
|
|
263
|
+
}
|
|
264
|
+
if (inY && pos == curY.fromA && !enteredY) {
|
|
265
|
+
inserted = Span.join(inserted, curY.inserted, combine);
|
|
266
|
+
toB += curY.lenB;
|
|
267
|
+
enteredY = true;
|
|
268
|
+
}
|
|
269
|
+
if (inY && !inX) {
|
|
270
|
+
deleted = Span.join(deleted, Span.slice(curY.deleted, pos - curY.fromA, next - curY.fromA), combine);
|
|
271
|
+
toA += next - pos;
|
|
272
|
+
}
|
|
273
|
+
if (inX && next == curX.toB) {
|
|
274
|
+
curX = iX++ == x.length ? null : x[iX];
|
|
275
|
+
enteredX = false;
|
|
276
|
+
}
|
|
277
|
+
if (inY && next == curY.toA) {
|
|
278
|
+
curY = iY++ == y.length ? null : y[iY];
|
|
279
|
+
enteredY = false;
|
|
280
|
+
}
|
|
281
|
+
pos = next;
|
|
282
|
+
}
|
|
283
|
+
if (fromA < toA || fromB < toB) result.push(new Change(fromA, toA, fromB, toB, deleted, inserted));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}, {
|
|
288
|
+
key: "fromJSON",
|
|
289
|
+
value: function fromJSON(json) {
|
|
290
|
+
return new Change(json.fromA, json.toA, json.fromB, json.toB, json.deleted.map(function (d) {
|
|
291
|
+
return new Span(d.length, d.data);
|
|
292
|
+
}), json.inserted.map(function (d) {
|
|
293
|
+
return new Span(d.length, d.data);
|
|
294
|
+
}));
|
|
295
|
+
}
|
|
296
|
+
}]);
|
|
297
|
+
return Change;
|
|
298
|
+
}();
|
|
299
|
+
var letter;
|
|
300
|
+
try {
|
|
301
|
+
letter = new RegExp("[\\p{Alphabetic}_]", "u");
|
|
302
|
+
} catch (_) {}
|
|
303
|
+
var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
304
|
+
function isLetter(code) {
|
|
305
|
+
if (code < 128) return code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
306
|
+
var ch = String.fromCharCode(code);
|
|
307
|
+
if (letter) return letter.test(ch);
|
|
308
|
+
return ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch);
|
|
309
|
+
}
|
|
310
|
+
function getText(frag, start, end) {
|
|
311
|
+
var out = "";
|
|
312
|
+
function convert(frag, start, end) {
|
|
313
|
+
for (var i = 0, off = 0; i < frag.childCount; i++) {
|
|
314
|
+
var child = frag.child(i),
|
|
315
|
+
endOff = off + child.nodeSize;
|
|
316
|
+
var from = Math.max(off, start),
|
|
317
|
+
to = Math.min(endOff, end);
|
|
318
|
+
if (from < to) {
|
|
319
|
+
if (child.isText) {
|
|
320
|
+
out += child.text.slice(Math.max(0, start - off), Math.min(child.text.length, end - off));
|
|
321
|
+
} else if (child.isLeaf) {
|
|
322
|
+
out += " ";
|
|
323
|
+
} else {
|
|
324
|
+
if (from == off) out += " ";
|
|
325
|
+
convert(child.content, Math.max(0, from - off - 1), Math.min(child.content.size, end - off));
|
|
326
|
+
if (to == endOff) out += " ";
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
off = endOff;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
convert(frag, start, end);
|
|
333
|
+
return out;
|
|
334
|
+
}
|
|
335
|
+
var MAX_SIMPLIFY_DISTANCE = 30;
|
|
336
|
+
function simplifyChanges(changes, doc) {
|
|
337
|
+
var result = [];
|
|
338
|
+
for (var i = 0; i < changes.length; i++) {
|
|
339
|
+
var end = changes[i].toB,
|
|
340
|
+
start = i;
|
|
341
|
+
while (i < changes.length - 1 && changes[i + 1].fromB <= end + MAX_SIMPLIFY_DISTANCE) end = changes[++i].toB;
|
|
342
|
+
simplifyAdjacentChanges(changes, start, i + 1, doc, result);
|
|
343
|
+
}
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
function simplifyAdjacentChanges(changes, from, to, doc, target) {
|
|
347
|
+
var start = Math.max(0, changes[from].fromB - MAX_SIMPLIFY_DISTANCE);
|
|
348
|
+
var end = Math.min(doc.content.size, changes[to - 1].toB + MAX_SIMPLIFY_DISTANCE);
|
|
349
|
+
var text = getText(doc.content, start, end);
|
|
350
|
+
for (var i = from; i < to; i++) {
|
|
351
|
+
var startI = i,
|
|
352
|
+
last = changes[i],
|
|
353
|
+
deleted = last.lenA,
|
|
354
|
+
inserted = last.lenB;
|
|
355
|
+
while (i < to - 1) {
|
|
356
|
+
var next = changes[i + 1],
|
|
357
|
+
boundary = false;
|
|
358
|
+
var prevLetter = last.toB == end ? false : isLetter(text.charCodeAt(last.toB - 1 - start));
|
|
359
|
+
for (var pos = last.toB; !boundary && pos < next.fromB; pos++) {
|
|
360
|
+
var nextLetter = pos == end ? false : isLetter(text.charCodeAt(pos - start));
|
|
361
|
+
if ((!prevLetter || !nextLetter) && pos != changes[startI].fromB) boundary = true;
|
|
362
|
+
prevLetter = nextLetter;
|
|
363
|
+
}
|
|
364
|
+
if (boundary) break;
|
|
365
|
+
deleted += next.lenA;
|
|
366
|
+
inserted += next.lenB;
|
|
367
|
+
last = next;
|
|
368
|
+
i++;
|
|
369
|
+
}
|
|
370
|
+
if (inserted > 0 && deleted > 0 && !(inserted == 1 && deleted == 1)) {
|
|
371
|
+
var _from = changes[startI].fromB,
|
|
372
|
+
_to = changes[i].toB;
|
|
373
|
+
if (_from < end && isLetter(text.charCodeAt(_from - start))) while (_from > start && isLetter(text.charCodeAt(_from - 1 - start))) _from--;
|
|
374
|
+
if (_to > start && isLetter(text.charCodeAt(_to - 1 - start))) while (_to < end && isLetter(text.charCodeAt(_to - start))) _to++;
|
|
375
|
+
var joined = fillChange(changes.slice(startI, i + 1), _from, _to);
|
|
376
|
+
var _last = target.length ? target[target.length - 1] : null;
|
|
377
|
+
if (_last && _last.toA == joined.fromA) target[target.length - 1] = new Change(_last.fromA, joined.toA, _last.fromB, joined.toB, _last.deleted.concat(joined.deleted), _last.inserted.concat(joined.inserted));else target.push(joined);
|
|
378
|
+
} else {
|
|
379
|
+
for (var j = startI; j <= i; j++) target.push(changes[j]);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return changes;
|
|
383
|
+
}
|
|
384
|
+
function combine(a, b) {
|
|
385
|
+
return a === b ? a : null;
|
|
386
|
+
}
|
|
387
|
+
function fillChange(changes, fromB, toB) {
|
|
388
|
+
var fromA = changes[0].fromA - (changes[0].fromB - fromB);
|
|
389
|
+
var last = changes[changes.length - 1];
|
|
390
|
+
var toA = last.toA + (toB - last.toB);
|
|
391
|
+
var deleted = Span.none,
|
|
392
|
+
inserted = Span.none;
|
|
393
|
+
var delData = (changes[0].deleted.length ? changes[0].deleted : changes[0].inserted)[0].data;
|
|
394
|
+
var insData = (changes[0].inserted.length ? changes[0].inserted : changes[0].deleted)[0].data;
|
|
395
|
+
for (var posA = fromA, posB = fromB, i = 0;; i++) {
|
|
396
|
+
var next = i == changes.length ? null : changes[i];
|
|
397
|
+
var endA = next ? next.fromA : toA,
|
|
398
|
+
endB = next ? next.fromB : toB;
|
|
399
|
+
if (endA > posA) deleted = Span.join(deleted, [new Span(endA - posA, delData)], combine);
|
|
400
|
+
if (endB > posB) inserted = Span.join(inserted, [new Span(endB - posB, insData)], combine);
|
|
401
|
+
if (!next) break;
|
|
402
|
+
deleted = Span.join(deleted, next.deleted, combine);
|
|
403
|
+
inserted = Span.join(inserted, next.inserted, combine);
|
|
404
|
+
if (deleted.length) delData = deleted[deleted.length - 1].data;
|
|
405
|
+
if (inserted.length) insData = inserted[inserted.length - 1].data;
|
|
406
|
+
posA = next.toA;
|
|
407
|
+
posB = next.toB;
|
|
408
|
+
}
|
|
409
|
+
return new Change(fromA, toA, fromB, toB, deleted, inserted);
|
|
410
|
+
}
|
|
411
|
+
var ChangeSet = function () {
|
|
412
|
+
function ChangeSet(config, changes) {
|
|
413
|
+
_classCallCheck(this, ChangeSet);
|
|
414
|
+
this.config = config;
|
|
415
|
+
this.changes = changes;
|
|
416
|
+
}
|
|
417
|
+
_createClass(ChangeSet, [{
|
|
418
|
+
key: "addSteps",
|
|
419
|
+
value: function addSteps(newDoc, maps, data) {
|
|
420
|
+
var _this = this;
|
|
421
|
+
var stepChanges = [];
|
|
422
|
+
var _loop2 = function _loop2() {
|
|
423
|
+
var d = Array.isArray(data) ? data[i] : data;
|
|
424
|
+
var off = 0;
|
|
425
|
+
maps[i].forEach(function (fromA, toA, fromB, toB) {
|
|
426
|
+
stepChanges.push(new Change(fromA + off, toA + off, fromB, toB, fromA == toA ? Span.none : [new Span(toA - fromA, d)], fromB == toB ? Span.none : [new Span(toB - fromB, d)]));
|
|
427
|
+
off = toB - fromB - (toA - fromA);
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
for (var i = 0; i < maps.length; i++) {
|
|
431
|
+
_loop2();
|
|
432
|
+
}
|
|
433
|
+
if (stepChanges.length == 0) return this;
|
|
434
|
+
var newChanges = mergeAll(stepChanges, this.config.combine);
|
|
435
|
+
var changes = Change.merge(this.changes, newChanges, this.config.combine);
|
|
436
|
+
var updated = changes;
|
|
437
|
+
var _loop3 = function _loop3(_i2) {
|
|
438
|
+
var change = updated[_i2];
|
|
439
|
+
if (change.fromA == change.toA || change.fromB == change.toB || !newChanges.some(function (r) {
|
|
440
|
+
return r.toB > change.fromB && r.fromB < change.toB;
|
|
441
|
+
})) {
|
|
442
|
+
_i = _i2;
|
|
443
|
+
return 0;
|
|
444
|
+
}
|
|
445
|
+
var diff = computeDiff(_this.config.doc.content, newDoc.content, change, _this.config.encoder);
|
|
446
|
+
if (diff.length == 1 && diff[0].fromB == 0 && diff[0].toB == change.toB - change.fromB) {
|
|
447
|
+
_i = _i2;
|
|
448
|
+
return 0;
|
|
449
|
+
}
|
|
450
|
+
if (updated == changes) updated = changes.slice();
|
|
451
|
+
if (diff.length == 1) {
|
|
452
|
+
updated[_i2] = diff[0];
|
|
453
|
+
} else {
|
|
454
|
+
var _updated;
|
|
455
|
+
(_updated = updated).splice.apply(_updated, [_i2, 1].concat(_toConsumableArray(diff)));
|
|
456
|
+
_i2 += diff.length - 1;
|
|
457
|
+
}
|
|
458
|
+
_i = _i2;
|
|
459
|
+
},
|
|
460
|
+
_ret2;
|
|
461
|
+
for (var _i = 0; _i < updated.length; _i++) {
|
|
462
|
+
_ret2 = _loop3(_i);
|
|
463
|
+
if (_ret2 === 0) continue;
|
|
464
|
+
}
|
|
465
|
+
return new ChangeSet(this.config, updated);
|
|
466
|
+
}
|
|
467
|
+
}, {
|
|
468
|
+
key: "startDoc",
|
|
469
|
+
get: function get() {
|
|
470
|
+
return this.config.doc;
|
|
471
|
+
}
|
|
472
|
+
}, {
|
|
473
|
+
key: "map",
|
|
474
|
+
value: function map(f) {
|
|
475
|
+
var mapSpan = function mapSpan(span) {
|
|
476
|
+
var newData = f(span);
|
|
477
|
+
return newData === span.data ? span : new Span(span.length, newData);
|
|
478
|
+
};
|
|
479
|
+
return new ChangeSet(this.config, this.changes.map(function (ch) {
|
|
480
|
+
return new Change(ch.fromA, ch.toA, ch.fromB, ch.toB, ch.deleted.map(mapSpan), ch.inserted.map(mapSpan));
|
|
481
|
+
}));
|
|
482
|
+
}
|
|
483
|
+
}, {
|
|
484
|
+
key: "changedRange",
|
|
485
|
+
value: function changedRange(b, maps) {
|
|
486
|
+
if (b == this) return null;
|
|
487
|
+
var touched = maps && touchedRange(maps);
|
|
488
|
+
var moved = touched ? touched.toB - touched.fromB - (touched.toA - touched.fromA) : 0;
|
|
489
|
+
function map(p) {
|
|
490
|
+
return !touched || p <= touched.fromA ? p : p + moved;
|
|
491
|
+
}
|
|
492
|
+
var from = touched ? touched.fromB : 2e8,
|
|
493
|
+
to = touched ? touched.toB : -2e8;
|
|
494
|
+
function add(start) {
|
|
495
|
+
var end = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : start;
|
|
496
|
+
from = Math.min(start, from);
|
|
497
|
+
to = Math.max(end, to);
|
|
498
|
+
}
|
|
499
|
+
var rA = this.changes,
|
|
500
|
+
rB = b.changes;
|
|
501
|
+
for (var iA = 0, iB = 0; iA < rA.length && iB < rB.length;) {
|
|
502
|
+
var rangeA = rA[iA],
|
|
503
|
+
rangeB = rB[iB];
|
|
504
|
+
if (rangeA && rangeB && sameRanges(rangeA, rangeB, map)) {
|
|
505
|
+
iA++;
|
|
506
|
+
iB++;
|
|
507
|
+
} else if (rangeB && (!rangeA || map(rangeA.fromB) >= rangeB.fromB)) {
|
|
508
|
+
add(rangeB.fromB, rangeB.toB);
|
|
509
|
+
iB++;
|
|
510
|
+
} else {
|
|
511
|
+
add(map(rangeA.fromB), map(rangeA.toB));
|
|
512
|
+
iA++;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
return from <= to ? {
|
|
516
|
+
from: from,
|
|
517
|
+
to: to
|
|
518
|
+
} : null;
|
|
519
|
+
}
|
|
520
|
+
}], [{
|
|
521
|
+
key: "create",
|
|
522
|
+
value: function create(doc) {
|
|
523
|
+
var combine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (a, b) {
|
|
524
|
+
return a === b ? a : null;
|
|
525
|
+
};
|
|
526
|
+
var tokenEncoder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DefaultEncoder;
|
|
527
|
+
var changes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
528
|
+
return new ChangeSet({
|
|
529
|
+
combine: combine,
|
|
530
|
+
doc: doc,
|
|
531
|
+
encoder: tokenEncoder
|
|
532
|
+
}, changes);
|
|
533
|
+
}
|
|
534
|
+
}]);
|
|
535
|
+
return ChangeSet;
|
|
536
|
+
}();
|
|
537
|
+
ChangeSet.computeDiff = computeDiff;
|
|
538
|
+
function mergeAll(ranges, combine) {
|
|
539
|
+
var start = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
540
|
+
var end = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ranges.length;
|
|
541
|
+
if (end == start + 1) return [ranges[start]];
|
|
542
|
+
var mid = start + end >> 1;
|
|
543
|
+
return Change.merge(mergeAll(ranges, combine, start, mid), mergeAll(ranges, combine, mid, end), combine);
|
|
544
|
+
}
|
|
545
|
+
function endRange(maps) {
|
|
546
|
+
var from = 2e8,
|
|
547
|
+
to = -2e8;
|
|
548
|
+
for (var i = 0; i < maps.length; i++) {
|
|
549
|
+
var map = maps[i];
|
|
550
|
+
if (from != 2e8) {
|
|
551
|
+
from = map.map(from, -1);
|
|
552
|
+
to = map.map(to, 1);
|
|
553
|
+
}
|
|
554
|
+
map.forEach(function (_s, _e, start, end) {
|
|
555
|
+
from = Math.min(from, start);
|
|
556
|
+
to = Math.max(to, end);
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
return from == 2e8 ? null : {
|
|
560
|
+
from: from,
|
|
561
|
+
to: to
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
function touchedRange(maps) {
|
|
565
|
+
var b = endRange(maps);
|
|
566
|
+
if (!b) return null;
|
|
567
|
+
var a = endRange(maps.map(function (m) {
|
|
568
|
+
return m.invert();
|
|
569
|
+
}).reverse());
|
|
570
|
+
return {
|
|
571
|
+
fromA: a.from,
|
|
572
|
+
toA: a.to,
|
|
573
|
+
fromB: b.from,
|
|
574
|
+
toB: b.to
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
function sameRanges(a, b, map) {
|
|
578
|
+
return map(a.fromB) == b.fromB && map(a.toB) == b.toB && sameSpans(a.deleted, b.deleted) && sameSpans(a.inserted, b.inserted);
|
|
579
|
+
}
|
|
580
|
+
function sameSpans(a, b) {
|
|
581
|
+
if (a.length != b.length) return false;
|
|
582
|
+
for (var i = 0; i < a.length; i++) if (a[i].length != b[i].length || a[i].data !== b[i].data) return false;
|
|
583
|
+
return true;
|
|
584
|
+
}
|
|
585
|
+
exports.Change = Change;
|
|
586
|
+
exports.ChangeSet = ChangeSet;
|
|
587
|
+
exports.Span = Span;
|
|
588
|
+
exports.simplifyChanges = simplifyChanges;
|