@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -2
- package/node_modules/@floating-ui/core/LICENSE +20 -0
- package/node_modules/@floating-ui/core/README.md +4 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
- package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
- package/node_modules/@floating-ui/core/package.json +63 -0
- package/node_modules/@floating-ui/dom/LICENSE +20 -0
- package/node_modules/@floating-ui/dom/README.md +4 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
- package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/dom/package.json +72 -0
- package/node_modules/@floating-ui/utils/LICENSE +20 -0
- package/node_modules/@floating-ui/utils/README.md +4 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
- package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
- package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
- package/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/node_modules/@floating-ui/utils/package.json +70 -0
- package/node_modules/@tiptap/core/LICENSE.md +21 -0
- package/node_modules/@tiptap/core/README.md +18 -0
- package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
- package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
- package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
- package/node_modules/@tiptap/core/dist/index.js +8288 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
- package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
- package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
- package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
- package/node_modules/@tiptap/core/package.json +74 -0
- package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
- package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
- package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
- package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bold/README.md +18 -0
- package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
- package/node_modules/@tiptap/extension-bold/package.json +50 -0
- package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
- package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
- package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
- package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code/README.md +18 -0
- package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
- package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
- package/node_modules/@tiptap/extension-code/package.json +50 -0
- package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-code-block/README.md +18 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
- package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
- package/node_modules/@tiptap/extension-code-block/package.json +52 -0
- package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-document/README.md +18 -0
- package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
- package/node_modules/@tiptap/extension-document/package.json +50 -0
- package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
- package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
- package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
- package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
- package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
- package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
- package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-heading/README.md +18 -0
- package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
- package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
- package/node_modules/@tiptap/extension-heading/package.json +50 -0
- package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-highlight/README.md +18 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
- package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
- package/node_modules/@tiptap/extension-highlight/package.json +50 -0
- package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
- package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
- package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-image/README.md +18 -0
- package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
- package/node_modules/@tiptap/extension-image/package.json +50 -0
- package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-italic/README.md +18 -0
- package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
- package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
- package/node_modules/@tiptap/extension-italic/package.json +50 -0
- package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-link/README.md +18 -0
- package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
- package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
- package/node_modules/@tiptap/extension-link/package.json +56 -0
- package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list/README.md +18 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
- package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
- package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
- package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
- package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
- package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
- package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
- package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
- package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
- package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
- package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
- package/node_modules/@tiptap/extension-list/package.json +108 -0
- package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-item/README.md +18 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-item/package.json +50 -0
- package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
- package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
- package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
- package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
- package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
- package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
- package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-strike/README.md +18 -0
- package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
- package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
- package/node_modules/@tiptap/extension-strike/package.json +50 -0
- package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-subscript/README.md +18 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-subscript/package.json +52 -0
- package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-superscript/README.md +18 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
- package/node_modules/@tiptap/extension-superscript/package.json +52 -0
- package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-table/README.md +18 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
- package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
- package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
- package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
- package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
- package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
- package/node_modules/@tiptap/extension-table/package.json +92 -0
- package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text/README.md +18 -0
- package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
- package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
- package/node_modules/@tiptap/extension-text/package.json +50 -0
- package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-align/README.md +18 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
- package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
- package/node_modules/@tiptap/extension-text-align/package.json +50 -0
- package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-text-style/README.md +18 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
- package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
- package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
- package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
- package/node_modules/@tiptap/extension-text-style/package.json +106 -0
- package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-underline/README.md +18 -0
- package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
- package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
- package/node_modules/@tiptap/extension-underline/package.json +50 -0
- package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
- package/node_modules/@tiptap/extension-youtube/README.md +18 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
- package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
- package/node_modules/@tiptap/extension-youtube/package.json +50 -0
- package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
- package/node_modules/@tiptap/extensions/README.md +18 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
- package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
- package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
- package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
- package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
- package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
- package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
- package/node_modules/@tiptap/extensions/dist/index.js +699 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
- package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
- package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
- package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
- package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
- package/node_modules/@tiptap/extensions/package.json +116 -0
- package/node_modules/@tiptap/pm/LICENSE +21 -0
- package/node_modules/@tiptap/pm/README.md +22 -0
- package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
- package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
- package/node_modules/@tiptap/pm/commands/index.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
- package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
- package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
- package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
- package/node_modules/@tiptap/pm/history/index.ts +1 -0
- package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
- package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
- package/node_modules/@tiptap/pm/model/index.ts +1 -0
- package/node_modules/@tiptap/pm/package.json +166 -0
- package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
- package/node_modules/@tiptap/pm/state/index.ts +1 -0
- package/node_modules/@tiptap/pm/tables/index.ts +1 -0
- package/node_modules/@tiptap/pm/transform/index.ts +1 -0
- package/node_modules/@tiptap/pm/view/index.ts +1 -0
- package/node_modules/@tiptap/react/LICENSE.md +21 -0
- package/node_modules/@tiptap/react/README.md +18 -0
- package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
- package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
- package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
- package/node_modules/@tiptap/react/dist/index.js +1337 -0
- package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
- package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
- package/node_modules/@tiptap/react/package.json +80 -0
- package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
- package/node_modules/@tiptap/starter-kit/README.md +18 -0
- package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
- package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
- package/node_modules/@tiptap/starter-kit/package.json +70 -0
- package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
- package/node_modules/@tiptap/suggestion/README.md +18 -0
- package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
- package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
- package/node_modules/@tiptap/suggestion/package.json +54 -0
- package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
- package/node_modules/@types/use-sync-external-store/README.md +15 -0
- package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
- package/node_modules/@types/use-sync-external-store/package.json +30 -0
- package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
- package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
- package/node_modules/fast-equals/LICENSE +21 -0
- package/node_modules/fast-equals/README.md +479 -0
- package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
- package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
- package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
- package/node_modules/fast-equals/dist/es/index.mjs +785 -0
- package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
- package/node_modules/fast-equals/dist/umd/index.js +802 -0
- package/node_modules/fast-equals/index.d.ts +211 -0
- package/node_modules/fast-equals/package.json +120 -0
- package/node_modules/linkifyjs/LICENSE +19 -0
- package/node_modules/linkifyjs/README.md +47 -0
- package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
- package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
- package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
- package/node_modules/linkifyjs/dist/linkify.js +1859 -0
- package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
- package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
- package/node_modules/linkifyjs/package.json +38 -0
- package/node_modules/orderedmap/LICENSE +19 -0
- package/node_modules/orderedmap/README.md +69 -0
- package/node_modules/orderedmap/dist/index.cjs +139 -0
- package/node_modules/orderedmap/dist/index.d.cts +33 -0
- package/node_modules/orderedmap/dist/index.d.ts +33 -0
- package/node_modules/orderedmap/dist/index.js +137 -0
- package/node_modules/orderedmap/package.json +39 -0
- package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
- package/node_modules/prosemirror-changeset/LICENSE +19 -0
- package/node_modules/prosemirror-changeset/README.md +175 -0
- package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
- package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
- package/node_modules/prosemirror-changeset/dist/index.js +722 -0
- package/node_modules/prosemirror-changeset/package.json +40 -0
- package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
- package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
- package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
- package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
- package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
- package/node_modules/prosemirror-commands/.tern-project +8 -0
- package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
- package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-commands/LICENSE +19 -0
- package/node_modules/prosemirror-commands/README.md +28 -0
- package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
- package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
- package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
- package/node_modules/prosemirror-commands/dist/index.js +852 -0
- package/node_modules/prosemirror-commands/package.json +39 -0
- package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
- package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
- package/node_modules/prosemirror-dropcursor/README.md +50 -0
- package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
- package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
- package/node_modules/prosemirror-dropcursor/package.json +38 -0
- package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
- package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
- package/node_modules/prosemirror-gapcursor/README.md +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
- package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
- package/node_modules/prosemirror-gapcursor/package.json +43 -0
- package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
- package/node_modules/prosemirror-history/.tern-project +8 -0
- package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
- package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-history/LICENSE +19 -0
- package/node_modules/prosemirror-history/README.md +27 -0
- package/node_modules/prosemirror-history/dist/index.cjs +383 -0
- package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
- package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
- package/node_modules/prosemirror-history/dist/index.js +454 -0
- package/node_modules/prosemirror-history/package.json +40 -0
- package/node_modules/prosemirror-inputrules/.tern-project +8 -0
- package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
- package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-inputrules/LICENSE +19 -0
- package/node_modules/prosemirror-inputrules/README.md +29 -0
- package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
- package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
- package/node_modules/prosemirror-inputrules/package.json +36 -0
- package/node_modules/prosemirror-keymap/.tern-project +8 -0
- package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
- package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-keymap/LICENSE +19 -0
- package/node_modules/prosemirror-keymap/README.md +27 -0
- package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
- package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
- package/node_modules/prosemirror-keymap/dist/index.js +128 -0
- package/node_modules/prosemirror-keymap/package.json +38 -0
- package/node_modules/prosemirror-model/.tern-project +8 -0
- package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
- package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-model/LICENSE +19 -0
- package/node_modules/prosemirror-model/README.md +29 -0
- package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
- package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
- package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
- package/node_modules/prosemirror-model/dist/index.js +3463 -0
- package/node_modules/prosemirror-model/package.json +38 -0
- package/node_modules/prosemirror-schema-list/.tern-project +8 -0
- package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
- package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
- package/node_modules/prosemirror-schema-list/LICENSE +19 -0
- package/node_modules/prosemirror-schema-list/README.md +28 -0
- package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
- package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
- package/node_modules/prosemirror-schema-list/package.json +40 -0
- package/node_modules/prosemirror-state/.tern-project +8 -0
- package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
- package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-state/LICENSE +19 -0
- package/node_modules/prosemirror-state/README.md +28 -0
- package/node_modules/prosemirror-state/dist/index.cjs +884 -0
- package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
- package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
- package/node_modules/prosemirror-state/dist/index.js +1002 -0
- package/node_modules/prosemirror-state/package.json +39 -0
- package/node_modules/prosemirror-tables/LICENSE +19 -0
- package/node_modules/prosemirror-tables/README.md +254 -0
- package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
- package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
- package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
- package/node_modules/prosemirror-tables/dist/index.js +2626 -0
- package/node_modules/prosemirror-tables/package.json +80 -0
- package/node_modules/prosemirror-tables/style/tables.css +48 -0
- package/node_modules/prosemirror-transform/.tern-project +8 -0
- package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
- package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-transform/LICENSE +19 -0
- package/node_modules/prosemirror-transform/README.md +29 -0
- package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
- package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
- package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
- package/node_modules/prosemirror-transform/dist/index.js +2272 -0
- package/node_modules/prosemirror-transform/package.json +37 -0
- package/node_modules/prosemirror-view/.tern-project +8 -0
- package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
- package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
- package/node_modules/prosemirror-view/LICENSE +19 -0
- package/node_modules/prosemirror-view/README.md +28 -0
- package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
- package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
- package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
- package/node_modules/prosemirror-view/dist/index.js +6053 -0
- package/node_modules/prosemirror-view/package.json +43 -0
- package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
- package/node_modules/rope-sequence/LICENSE +19 -0
- package/node_modules/rope-sequence/README.md +63 -0
- package/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/node_modules/rope-sequence/dist/index.d.cts +11 -0
- package/node_modules/rope-sequence/dist/index.d.ts +11 -0
- package/node_modules/rope-sequence/dist/index.js +207 -0
- package/node_modules/rope-sequence/index.js +190 -0
- package/node_modules/rope-sequence/package.json +34 -0
- package/node_modules/rope-sequence/test.js +78 -0
- package/node_modules/use-sync-external-store/LICENSE +21 -0
- package/node_modules/use-sync-external-store/README.md +5 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
- package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
- package/node_modules/use-sync-external-store/index.js +7 -0
- package/node_modules/use-sync-external-store/package.json +43 -0
- package/node_modules/use-sync-external-store/shim/index.js +7 -0
- package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
- package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
- package/node_modules/use-sync-external-store/with-selector.js +7 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +79 -4
- package/src/Editor.tsx +424 -0
- package/src/ask.tsx +154 -0
- package/src/basic.tsx +149 -0
- package/src/blockMeta.ts +42 -0
- package/src/blockops.ts +179 -0
- package/src/blocks.tsx +189 -0
- package/src/content.ts +22 -0
- package/src/dynamic.tsx +105 -0
- package/src/editor.css +345 -0
- package/src/extensions.ts +78 -0
- package/src/handle.tsx +186 -0
- package/src/handles.tsx +149 -0
- package/src/index.ts +29 -0
- package/src/insert.ts +9 -0
- package/src/inserter.tsx +163 -0
- package/src/inspector.tsx +237 -0
- package/src/labels.ts +135 -0
- package/src/layout.tsx +174 -0
- package/src/layoutUi.tsx +226 -0
- package/src/media.ts +31 -0
- package/src/nodes.tsx +107 -0
- package/src/outline.tsx +124 -0
- package/src/panels.ts +59 -0
- package/src/paste.ts +100 -0
- package/src/patterns.ts +129 -0
- package/src/rank.ts +22 -0
- package/src/registry.ts +20 -0
- package/src/styleattr.ts +55 -0
- package/src/stylepanel.tsx +275 -0
- package/src/synced.tsx +128 -0
- package/src/toolbar.tsx +238 -0
- package/src/types.ts +55 -0
- package/src/unknown.tsx +74 -0
- package/src/util.ts +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "prosemirror-changeset",
|
|
3
|
+
"version": "2.4.4",
|
|
4
|
+
"description": "Distills a series of editing steps into deleted and added ranges",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"maintainers": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Marijn Haverbeke",
|
|
18
|
+
"email": "marijn@haverbeke.berlin",
|
|
19
|
+
"web": "http://marijnhaverbeke.nl"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://code.haverbeke.berlin/prosemirror/prosemirror-changeset.git"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"prosemirror-transform": "^1.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@prosemirror/buildhelper": "^0.1.5",
|
|
31
|
+
"prosemirror-model": "^1.0.0",
|
|
32
|
+
"prosemirror-test-builder": "^1.0.0",
|
|
33
|
+
"builddocs": "^1.0.8"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"test": "pm-runtests",
|
|
37
|
+
"prepare": "pm-buildhelper src/changeset.ts",
|
|
38
|
+
"build-readme": "builddocs --format markdown --main src/README.md src/changeset.ts > README.md"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import ist from "ist"
|
|
2
|
+
import {schema, doc, p} from "prosemirror-test-builder"
|
|
3
|
+
import {Transform} from "prosemirror-transform"
|
|
4
|
+
import {Node} from "prosemirror-model"
|
|
5
|
+
|
|
6
|
+
import {ChangeSet} from "prosemirror-changeset"
|
|
7
|
+
|
|
8
|
+
function mk(doc: Node, change: (tr: Transform) => Transform): {doc0: Node, tr: Transform, data: any[], set0: ChangeSet, set: ChangeSet} {
|
|
9
|
+
let tr = change(new Transform(doc))
|
|
10
|
+
let data = new Array(tr.steps.length).fill("a")
|
|
11
|
+
let set0 = ChangeSet.create(doc)
|
|
12
|
+
return {doc0: doc, tr, data, set0,
|
|
13
|
+
set: set0.addSteps(tr.doc, tr.mapping.maps, data)}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function same(a: any, b: any) {
|
|
17
|
+
ist(JSON.stringify(a), JSON.stringify(b))
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe("ChangeSet.changedRange", () => {
|
|
21
|
+
it("returns null for identical sets", () => {
|
|
22
|
+
let {set, doc0, tr, data} = mk(doc(p("foo")), tr => tr
|
|
23
|
+
.replaceWith(2, 3, schema.text("aaaa"))
|
|
24
|
+
.replaceWith(1, 1, schema.text("xx"))
|
|
25
|
+
.delete(5, 7))
|
|
26
|
+
ist(set.changedRange(set), null)
|
|
27
|
+
ist(set.changedRange(ChangeSet.create(doc0).addSteps(tr.doc, tr.mapping.maps, data)), null)
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it("returns only the changed range in simple cases", () => {
|
|
31
|
+
let {set0, set, tr} = mk(doc(p("abcd")), tr => tr.replaceWith(2, 4, schema.text("u")))
|
|
32
|
+
same(set0.changedRange(set, tr.mapping.maps), {from: 2, to: 3})
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it("expands to cover updated spans", () => {
|
|
36
|
+
let {doc0, set0, set, tr} = mk(doc(p("abcd")), tr => tr
|
|
37
|
+
.replaceWith(2, 2, schema.text("c"))
|
|
38
|
+
.delete(3, 5))
|
|
39
|
+
let set1 = ChangeSet.create(doc0).addSteps(tr.docs[1], [tr.mapping.maps[0]], ["a"])
|
|
40
|
+
same(set0.changedRange(set1, [tr.mapping.maps[0]]), {from: 2, to: 3})
|
|
41
|
+
same(set1.changedRange(set, [tr.mapping.maps[1]]), {from: 2, to: 3})
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
it("detects changes in deletions", () => {
|
|
45
|
+
let {set} = mk(doc(p("abc")), tr => tr.delete(2, 3))
|
|
46
|
+
same(set.changedRange(set.map(() => "b")), {from: 2, to: 2})
|
|
47
|
+
})
|
|
48
|
+
})
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import ist from "ist"
|
|
2
|
+
import {schema, doc, p, blockquote, h1} from "prosemirror-test-builder"
|
|
3
|
+
import {Transform} from "prosemirror-transform"
|
|
4
|
+
import {Node} from "prosemirror-model"
|
|
5
|
+
|
|
6
|
+
import {ChangeSet} from "prosemirror-changeset"
|
|
7
|
+
|
|
8
|
+
describe("ChangeSet", () => {
|
|
9
|
+
it("finds a single insertion",
|
|
10
|
+
find(doc(p("hello")), tr => tr.insert(3, t("XY")), [[3, 3, 3, 5]]))
|
|
11
|
+
|
|
12
|
+
it("finds a single deletion",
|
|
13
|
+
find(doc(p("hello")), tr => tr.delete(3, 5), [[3, 5, 3, 3]]))
|
|
14
|
+
|
|
15
|
+
it("identifies a replacement",
|
|
16
|
+
find(doc(p("hello")), tr => tr.replaceWith(3, 5, t("juj")),
|
|
17
|
+
[[3, 5, 3, 6]]))
|
|
18
|
+
|
|
19
|
+
it("merges adjacent canceling edits",
|
|
20
|
+
find(doc(p("hello")),
|
|
21
|
+
tr => tr.delete(3, 5).insert(3, t("ll")),
|
|
22
|
+
[]))
|
|
23
|
+
|
|
24
|
+
it("doesn't crash when cancelling edits are followed by others",
|
|
25
|
+
find(doc(p("hello")),
|
|
26
|
+
tr => tr.delete(2, 3).insert(2, t("e")).delete(5, 6),
|
|
27
|
+
[[5, 6, 5, 5]]))
|
|
28
|
+
|
|
29
|
+
it("stops handling an inserted span after collapsing it",
|
|
30
|
+
find(doc(p("abcba")), tr => tr.insert(2, t("b")).insert(6, t("b")).delete(3, 6),
|
|
31
|
+
[[3, 4, 3, 3]]))
|
|
32
|
+
|
|
33
|
+
it("partially merges insert at start",
|
|
34
|
+
find(doc(p("helLo")), tr => tr.delete(3, 5).insert(3, t("l")),
|
|
35
|
+
[[4, 5, 4, 4]]))
|
|
36
|
+
|
|
37
|
+
it("partially merges insert at end",
|
|
38
|
+
find(doc(p("helLo")), tr => tr.delete(3, 5).insert(3, t("L")),
|
|
39
|
+
[[3, 4, 3, 3]]))
|
|
40
|
+
|
|
41
|
+
it("partially merges delete at start",
|
|
42
|
+
find(doc(p("abc")), tr => tr.insert(3, t("xyz")).delete(3, 4),
|
|
43
|
+
[[3, 3, 3, 5]]))
|
|
44
|
+
|
|
45
|
+
it("partially merges delete at end",
|
|
46
|
+
find(doc(p("abc")), tr => tr.insert(3, t("xyz")).delete(5, 6),
|
|
47
|
+
[[3, 3, 3, 5]]))
|
|
48
|
+
|
|
49
|
+
it("finds multiple insertions",
|
|
50
|
+
find(doc(p("abc")), tr => tr.insert(1, t("x")).insert(5, t("y")),
|
|
51
|
+
[[1, 1, 1, 2], [4, 4, 5, 6]]))
|
|
52
|
+
|
|
53
|
+
it("finds multiple deletions",
|
|
54
|
+
find(doc(p("xyz")), tr => tr.delete(1, 2).delete(2, 3),
|
|
55
|
+
[[1, 2, 1, 1], [3, 4, 2, 2]]))
|
|
56
|
+
|
|
57
|
+
it("identifies a deletion between insertions",
|
|
58
|
+
find(doc(p("zyz")), tr => tr.insert(2, t("A")).insert(4, t("B")).delete(3, 4),
|
|
59
|
+
[[2, 3, 2, 4]]))
|
|
60
|
+
|
|
61
|
+
it("can add a deletion in a new addStep call", find(doc(p("hello")), [
|
|
62
|
+
tr => tr.delete(1, 2),
|
|
63
|
+
tr => tr.delete(2, 3)
|
|
64
|
+
], [[1, 2, 1, 1], [3, 4, 2, 2]]))
|
|
65
|
+
|
|
66
|
+
it("merges delete/insert from different addStep calls", find(doc(p("hello")), [
|
|
67
|
+
tr => tr.delete(3, 5),
|
|
68
|
+
tr => tr.insert(3, t("ll"))
|
|
69
|
+
], []))
|
|
70
|
+
|
|
71
|
+
it("revert a deletion by inserting the character again", find(doc(p("bar")), [
|
|
72
|
+
tr => tr.delete(2, 3), // br
|
|
73
|
+
tr => tr.insert(2, t("x")), // bxr
|
|
74
|
+
tr => tr.insert(2, t("a")) // baxr
|
|
75
|
+
], [[3, 3, 3, 4]]))
|
|
76
|
+
|
|
77
|
+
it("insert character before changed character", find(doc(p("bar")), [
|
|
78
|
+
tr => tr.delete(2, 3), // br
|
|
79
|
+
tr => tr.insert(2, t("x")), // bxr
|
|
80
|
+
tr => tr.insert(2, t("x")) // bxxr
|
|
81
|
+
], [[2, 3, 2, 4]]))
|
|
82
|
+
|
|
83
|
+
it("partially merges delete/insert from different addStep calls", find(doc(p("heljo")), [
|
|
84
|
+
tr => tr.delete(3, 5),
|
|
85
|
+
tr => tr.insert(3, t("ll"))
|
|
86
|
+
], [[4, 5, 4, 5]]))
|
|
87
|
+
|
|
88
|
+
it("merges insert/delete from different addStep calls", find(doc(p("ok")), [
|
|
89
|
+
tr => tr.insert(2, t("--")),
|
|
90
|
+
tr => tr.delete(2, 4)
|
|
91
|
+
], []))
|
|
92
|
+
|
|
93
|
+
it("partially merges insert/delete from different addStep calls", find(doc(p("ok")), [
|
|
94
|
+
tr => tr.insert(2, t("--")),
|
|
95
|
+
tr => tr.delete(2, 3)
|
|
96
|
+
], [[2, 2, 2, 3]]))
|
|
97
|
+
|
|
98
|
+
it("maps deletions forward", find(doc(p("foobar")), [
|
|
99
|
+
tr => tr.delete(5, 6),
|
|
100
|
+
tr => tr.insert(1, t("OKAY"))
|
|
101
|
+
], [[1, 1, 1, 5], [5, 6, 9, 9]]))
|
|
102
|
+
|
|
103
|
+
it("can incrementally undo then redo", find(doc(p("bar")), [
|
|
104
|
+
tr => tr.delete(2, 3),
|
|
105
|
+
tr => tr.insert(2, t("a")),
|
|
106
|
+
tr => tr.delete(2, 3)
|
|
107
|
+
], [[2, 3, 2, 2]]))
|
|
108
|
+
|
|
109
|
+
it("can map through complicated changesets", find(doc(p("12345678901234")), [
|
|
110
|
+
tr => tr.delete(9, 12).insert(6, t("xyz")).replaceWith(2, 3, t("uv")),
|
|
111
|
+
tr => tr.delete(14, 15).insert(13, t("90")).delete(8, 9)
|
|
112
|
+
], [[2, 3, 2, 4], [6, 6, 7, 9], [11, 12, 14, 14], [13, 14, 15, 15]]))
|
|
113
|
+
|
|
114
|
+
it("computes a proper diff of the changes",
|
|
115
|
+
find(doc(p("abcd"), p("efgh")), tr => tr.delete(2, 10).insert(2, t("cdef")),
|
|
116
|
+
[[2, 3, 2, 2], [5, 7, 4, 4], [9, 10, 6, 6]]))
|
|
117
|
+
|
|
118
|
+
it("handles re-adding content step by step", find(doc(p("one two three")), [
|
|
119
|
+
tr => tr.delete(1, 14),
|
|
120
|
+
tr => tr.insert(1, t("two")),
|
|
121
|
+
tr => tr.insert(4, t(" ")),
|
|
122
|
+
tr => tr.insert(5, t("three"))
|
|
123
|
+
], [[1, 5, 1, 1]]))
|
|
124
|
+
|
|
125
|
+
it("doesn't get confused by split deletions", find(doc(blockquote(h1("one"), p("two four"))), [
|
|
126
|
+
tr => tr.delete(7, 11),
|
|
127
|
+
tr => tr.replaceWith(0, 13, blockquote(h1("one"), p("four")))
|
|
128
|
+
], [[7, 11, 7, 7, [[4, 0]], []]], true))
|
|
129
|
+
|
|
130
|
+
it("doesn't get confused by multiply split deletions", find(doc(blockquote(h1("one"), p("two three"))), [
|
|
131
|
+
tr => tr.delete(14, 16),
|
|
132
|
+
tr => tr.delete(7, 11),
|
|
133
|
+
tr => tr.delete(3, 5),
|
|
134
|
+
tr => tr.replaceWith(0, 10, blockquote(h1("o"), p("thr")))
|
|
135
|
+
], [[3, 5, 3, 3, [[2, 2]], []], [8, 12, 6, 6, [[3, 1], [1, 3]], []],
|
|
136
|
+
[14, 16, 8, 8, [[2, 0]], []]], true))
|
|
137
|
+
|
|
138
|
+
it("won't lose the order of overlapping changes", find(doc(p("12345")), [
|
|
139
|
+
tr => tr.delete(4, 5),
|
|
140
|
+
tr => tr.replaceWith(2, 2, t("a")),
|
|
141
|
+
tr => tr.delete(1, 6),
|
|
142
|
+
tr => tr.replaceWith(1, 1, t("1a235"))
|
|
143
|
+
], [[2, 2, 2, 3, [], [[1, 1]]], [4, 5, 5, 5, [[1, 0]], []]], [0, 0, 1, 1]))
|
|
144
|
+
|
|
145
|
+
it("properly maps deleted positions", find(doc(p("jTKqvPrzApX")), [
|
|
146
|
+
tr => tr.delete(8, 11),
|
|
147
|
+
tr => tr.replaceWith(1, 1, t("MPu")),
|
|
148
|
+
tr => tr.delete(2, 12),
|
|
149
|
+
tr => tr.replaceWith(2, 2, t("PujTKqvPrX"))
|
|
150
|
+
], [[1, 1, 1, 4, [], [[3, 2]]], [8, 11, 11, 11, [[3, 1]], []]], [1, 2, 2, 2]))
|
|
151
|
+
|
|
152
|
+
it("fuzz issue 1", find(doc(p("hzwiKqBPzn")), [
|
|
153
|
+
tr => tr.delete(3, 7),
|
|
154
|
+
tr => tr.replaceWith(5, 5, t("LH")),
|
|
155
|
+
tr => tr.replaceWith(6, 6, t("uE")),
|
|
156
|
+
tr => tr.delete(1, 6),
|
|
157
|
+
tr => tr.delete(3, 6)
|
|
158
|
+
], [[1, 11, 1, 3, [[2, 1], [4, 0], [2, 1], [2, 0]], [[2, 0]]]], [0, 1, 0, 1, 0]))
|
|
159
|
+
|
|
160
|
+
it("fuzz issue 2", find(doc(p("eAMISWgauf")), [
|
|
161
|
+
tr => tr.delete(5, 10),
|
|
162
|
+
tr => tr.replaceWith(5, 5, t("KkM")),
|
|
163
|
+
tr => tr.replaceWith(3, 3, t("UDO")),
|
|
164
|
+
tr => tr.delete(1, 12),
|
|
165
|
+
tr => tr.replaceWith(1, 1, t("eAUDOMIKkMf")),
|
|
166
|
+
tr => tr.delete(5, 8),
|
|
167
|
+
tr => tr.replaceWith(3, 3, t("qX"))
|
|
168
|
+
], [[3, 10, 3, 10, [[2, 0], [5, 2]], [[7, 0]]]], [2, 0, 0, 0, 0, 0, 0]))
|
|
169
|
+
|
|
170
|
+
it("fuzz issue 3", find(doc(p("hfxjahnOuH")), [
|
|
171
|
+
tr => tr.delete(1, 5),
|
|
172
|
+
tr => tr.replaceWith(3, 3, t("X")),
|
|
173
|
+
tr => tr.delete(1, 8),
|
|
174
|
+
tr => tr.replaceWith(1, 1, t("ahXnOuH")),
|
|
175
|
+
tr => tr.delete(2, 4),
|
|
176
|
+
tr => tr.replaceWith(2, 2, t("tn")),
|
|
177
|
+
tr => tr.delete(5, 7),
|
|
178
|
+
tr => tr.delete(1, 6),
|
|
179
|
+
tr => tr.replaceWith(1, 1, t("atnnH")),
|
|
180
|
+
tr => tr.delete(2, 6)
|
|
181
|
+
], [[1, 11, 1, 2, [[4, 1], [1, 0], [1, 1], [1, 0], [2, 1], [1, 0]], [[1, 0]]]], [1, 0, 1, 1, 1, 1, 1, 0, 0, 0]))
|
|
182
|
+
|
|
183
|
+
it("correctly handles steps with multiple map entries", find(doc(p()), [
|
|
184
|
+
tr => tr.replaceWith(1, 1, t("ab")),
|
|
185
|
+
tr => tr.wrap(tr.doc.resolve(1).blockRange()!, [{type: schema.nodes.blockquote}])
|
|
186
|
+
], [[0, 0, 0, 1], [1, 1, 2, 4], [2, 2, 5, 6]]))
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
function find(doc: Node, build: ((tr: Transform) => void) | ((tr: Transform) => void)[],
|
|
190
|
+
changes: any[], sep?: number[] | boolean) {
|
|
191
|
+
return () => {
|
|
192
|
+
let set = ChangeSet.create(doc), curDoc = doc
|
|
193
|
+
if (!Array.isArray(build)) build = [build]
|
|
194
|
+
build.forEach((build, i) => {
|
|
195
|
+
let tr = new Transform(curDoc)
|
|
196
|
+
build(tr)
|
|
197
|
+
set = set.addSteps(tr.doc, tr.mapping.maps, !sep ? 0 : Array.isArray(sep) ? sep[i] : i)
|
|
198
|
+
curDoc = tr.doc
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
let owner = sep && changes.length && changes[0].length > 4
|
|
202
|
+
ist(JSON.stringify(set.changes.map(ch => {
|
|
203
|
+
let range: any[] = [ch.fromA, ch.toA, ch.fromB, ch.toB]
|
|
204
|
+
if (owner) range.push(ch.deleted.map(d => [d.length, d.data]),
|
|
205
|
+
ch.inserted.map(d => [d.length, d.data]))
|
|
206
|
+
return range
|
|
207
|
+
})), JSON.stringify(changes))
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function t(str: string) { return schema.text(str) }
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import ist from "ist"
|
|
2
|
+
import {doc, p, em, strong, h1, h2} from "prosemirror-test-builder"
|
|
3
|
+
import {Node} from "prosemirror-model"
|
|
4
|
+
import {Span, Change, ChangeSet} from "prosemirror-changeset"
|
|
5
|
+
const {computeDiff} = ChangeSet
|
|
6
|
+
|
|
7
|
+
describe("computeDiff", () => {
|
|
8
|
+
function test(doc1: Node, doc2: Node, ...ranges: number[][]) {
|
|
9
|
+
let diff = computeDiff(doc1.content, doc2.content,
|
|
10
|
+
new Change(0, doc1.content.size, 0, doc2.content.size,
|
|
11
|
+
[new Span(doc1.content.size, 0)],
|
|
12
|
+
[new Span(doc2.content.size, 0)]))
|
|
13
|
+
ist(JSON.stringify(diff.map(r => [r.fromA, r.toA, r.fromB, r.toB])), JSON.stringify(ranges))
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
it("returns an empty diff for identical documents", () =>
|
|
17
|
+
test(doc(p("foo"), p("bar")), doc(p("foo"), p("bar"))))
|
|
18
|
+
|
|
19
|
+
it("finds single-letter changes", () =>
|
|
20
|
+
test(doc(p("foo"), p("bar")), doc(p("foa"), p("bar")),
|
|
21
|
+
[3, 4, 3, 4]))
|
|
22
|
+
|
|
23
|
+
it("finds simple structure changes", () =>
|
|
24
|
+
test(doc(p("foo"), p("bar")), doc(p("foobar")),
|
|
25
|
+
[4, 6, 4, 4]))
|
|
26
|
+
|
|
27
|
+
it("finds multiple changes", () =>
|
|
28
|
+
test(doc(p("foo"), p("---bar")), doc(p("fgo"), p("---bur")),
|
|
29
|
+
[2, 4, 2, 4], [10, 11, 10, 11]))
|
|
30
|
+
|
|
31
|
+
it("ignores single-letter unchanged parts", () =>
|
|
32
|
+
test(doc(p("abcdef")), doc(p("axydzf")), [2, 6, 2, 6]))
|
|
33
|
+
|
|
34
|
+
it("ignores matching substrings in longer diffs", () =>
|
|
35
|
+
test(doc(p("One two three")), doc(p("One"), p("And another long paragraph that has wo and ee in it")),
|
|
36
|
+
[4, 14, 4, 57]))
|
|
37
|
+
|
|
38
|
+
it("finds deletions", () =>
|
|
39
|
+
test(doc(p("abc"), p("def")), doc(p("ac"), p("d")),
|
|
40
|
+
[2, 3, 2, 2], [7, 9, 6, 6]))
|
|
41
|
+
|
|
42
|
+
it("ignores marks", () =>
|
|
43
|
+
test(doc(p("abc")), doc(p(em("a"), strong("bc")))))
|
|
44
|
+
|
|
45
|
+
it("ignores marks in diffing", () =>
|
|
46
|
+
test(doc(p("abcdefghi")), doc(p(em("x"), strong("bc"), "defgh", em("y"))),
|
|
47
|
+
[1, 2, 1, 2], [9, 10, 9, 10]))
|
|
48
|
+
|
|
49
|
+
it("ignores attributes", () =>
|
|
50
|
+
test(doc(h1("x")), doc(h2("x"))))
|
|
51
|
+
|
|
52
|
+
it("finds huge deletions", () => {
|
|
53
|
+
let xs = "x".repeat(200), bs = "b".repeat(20)
|
|
54
|
+
test(doc(p("a" + bs + "c")), doc(p("a" + xs + bs + xs + "c")),
|
|
55
|
+
[2, 2, 2, 202], [22, 22, 222, 422])
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
it("finds huge insertions", () => {
|
|
59
|
+
let xs = "x".repeat(200), bs = "b".repeat(20)
|
|
60
|
+
test(doc(p("a" + xs + bs + xs + "c")), doc(p("a" + bs + "c")),
|
|
61
|
+
[2, 202, 2, 2], [222, 422, 22, 22])
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it("can handle ambiguous diffs", () =>
|
|
65
|
+
test(doc(p("abcbcd")), doc(p("abcd")), [4, 6, 4, 4]))
|
|
66
|
+
|
|
67
|
+
it("sees the difference between different closing tokens", () =>
|
|
68
|
+
test(doc(p("a")), doc(h1("oo")), [0, 3, 0, 4]))
|
|
69
|
+
|
|
70
|
+
it("finds no changes on unchanged content", () =>
|
|
71
|
+
test(doc(p("abc")), doc(p("abc"))))
|
|
72
|
+
|
|
73
|
+
it("can compute a diff for a big change with unchanged prefix/suffix", () =>
|
|
74
|
+
test(doc(p("x".repeat(2000) + "a" + "y".repeat(2000))),
|
|
75
|
+
doc(p("x".repeat(2000) + "b" + "y".repeat(2000))),
|
|
76
|
+
[2001, 2002, 2001, 2002]))
|
|
77
|
+
})
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import ist from "ist"
|
|
2
|
+
import {Change, Span} from "prosemirror-changeset"
|
|
3
|
+
|
|
4
|
+
describe("mergeChanges", () => {
|
|
5
|
+
it("can merge simple insertions", () => test(
|
|
6
|
+
[[1, 1, 1, 2]], [[1, 1, 1, 2]], [[1, 1, 1, 3]]
|
|
7
|
+
))
|
|
8
|
+
|
|
9
|
+
it("can merge simple deletions", () => test(
|
|
10
|
+
[[1, 2, 1, 1]], [[1, 2, 1, 1]], [[1, 3, 1, 1]]
|
|
11
|
+
))
|
|
12
|
+
|
|
13
|
+
it("can merge insertion before deletion", () => test(
|
|
14
|
+
[[2, 3, 2, 2]], [[1, 1, 1, 2]], [[1, 1, 1, 2], [2, 3, 3, 3]]
|
|
15
|
+
))
|
|
16
|
+
|
|
17
|
+
it("can merge insertion after deletion", () => test(
|
|
18
|
+
[[2, 3, 2, 2]], [[2, 2, 2, 3]], [[2, 3, 2, 3]]
|
|
19
|
+
))
|
|
20
|
+
|
|
21
|
+
it("can merge deletion before insertion", () => test(
|
|
22
|
+
[[2, 2, 2, 3]], [[1, 2, 1, 1]], [[1, 2, 1, 2]]
|
|
23
|
+
))
|
|
24
|
+
|
|
25
|
+
it("can merge deletion after insertion", () => test(
|
|
26
|
+
[[2, 2, 2, 3]], [[3, 4, 3, 3]], [[2, 3, 2, 3]]
|
|
27
|
+
))
|
|
28
|
+
|
|
29
|
+
it("can merge deletion of insertion", () => test(
|
|
30
|
+
[[2, 2, 2, 3]], [[2, 3, 2, 2]], []
|
|
31
|
+
))
|
|
32
|
+
|
|
33
|
+
it("can merge insertion after replace", () => test(
|
|
34
|
+
[[2, 3, 2, 3]], [[3, 3, 3, 4]], [[2, 3, 2, 4]]
|
|
35
|
+
))
|
|
36
|
+
|
|
37
|
+
it("can merge insertion before replace", () => test(
|
|
38
|
+
[[2, 3, 2, 3]], [[2, 2, 2, 3]], [[2, 3, 2, 4]]
|
|
39
|
+
))
|
|
40
|
+
|
|
41
|
+
it("can merge replace after insert", () => test(
|
|
42
|
+
[[2, 2, 2, 3]], [[2, 3, 2, 3]], [[2, 2, 2, 3]]
|
|
43
|
+
))
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
function range(array: number[], author = 0) {
|
|
47
|
+
let [fromA, toA] = array
|
|
48
|
+
let [fromB, toB] = array.length > 2 ? array.slice(2) : array
|
|
49
|
+
return new Change(fromA, toA, fromB, toB, [new Span(toA - fromA, author)], [new Span(toB - fromB, author)])
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function test(changeA: number[][], changeB: number[][], expected: number[][]) {
|
|
53
|
+
const result = Change.merge(changeA.map(range), changeB.map(range), a => a)
|
|
54
|
+
.map(r => [r.fromA, r.toA, r.fromB, r.toB])
|
|
55
|
+
ist(JSON.stringify(result), JSON.stringify(expected))
|
|
56
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import ist from "ist"
|
|
2
|
+
import {doc, p, img} from "prosemirror-test-builder"
|
|
3
|
+
import {Node} from "prosemirror-model"
|
|
4
|
+
import {simplifyChanges, Change, Span} from "prosemirror-changeset"
|
|
5
|
+
|
|
6
|
+
describe("simplifyChanges", () => {
|
|
7
|
+
it("doesn't change insertion-only changes", () => test(
|
|
8
|
+
[[1, 1, 1, 2], [2, 2, 3, 4]], doc(p("hello")), [[1, 1, 1, 2], [2, 2, 3, 4]]))
|
|
9
|
+
|
|
10
|
+
it("doesn't change deletion-only changes", () => test(
|
|
11
|
+
[[1, 2, 1, 1], [3, 4, 2, 2]], doc(p("hello")), [[1, 2, 1, 1], [3, 4, 2, 2]]))
|
|
12
|
+
|
|
13
|
+
it("doesn't change single-letter-replacements", () => test(
|
|
14
|
+
[[1, 2, 1, 2]], doc(p("hello")), [[1, 2, 1, 2]]))
|
|
15
|
+
|
|
16
|
+
it("does expand multiple-letter replacements", () => test(
|
|
17
|
+
[[2, 4, 2, 4]], doc(p("hello")), [[1, 6, 1, 6]]))
|
|
18
|
+
|
|
19
|
+
it("does combine changes within the same word", () => test(
|
|
20
|
+
[[1, 3, 1, 1], [5, 5, 3, 4]], doc(p("hello")), [[1, 7, 1, 6]]))
|
|
21
|
+
|
|
22
|
+
it("expands changes to cover full words", () => test(
|
|
23
|
+
[[7, 10]], doc(p("one two three four")), [[5, 14]]))
|
|
24
|
+
|
|
25
|
+
it("doesn't expand across non-word text", () => test(
|
|
26
|
+
[[7, 10]], doc(p("one two ----- four")), [[5, 10]]))
|
|
27
|
+
|
|
28
|
+
it("doesn't expand replacements across bracket characters", () => test(
|
|
29
|
+
[[7, 10]], doc(p("one two [SFX] four")), [[5, 10]]))
|
|
30
|
+
|
|
31
|
+
it("treats leaf nodes as non-words", () => test(
|
|
32
|
+
[[2, 3], [6, 7]], doc(p("one", img(), "two")), [[2, 3], [6, 7]]))
|
|
33
|
+
|
|
34
|
+
it("treats node boundaries as non-words", () => test(
|
|
35
|
+
[[2, 3], [7, 8]], doc(p("one"), p("two")), [[2, 3], [7, 8]]))
|
|
36
|
+
|
|
37
|
+
it("can merge stretches of changes", () => test(
|
|
38
|
+
[[2, 3], [4, 6], [8, 10], [15, 16]], doc(p("foo bar baz bug ugh")), [[1, 12], [15, 16]]))
|
|
39
|
+
|
|
40
|
+
it("handles realistic word updates", () => test(
|
|
41
|
+
[[8, 8, 8, 11], [10, 15, 13, 17]], doc(p("chonic condition")), [[8, 15, 8, 17]]))
|
|
42
|
+
|
|
43
|
+
it("works when after significant content", () => test(
|
|
44
|
+
[[63, 80, 63, 83]], doc(p("one long paragraph -----"), p("two long paragraphs ------"), p("a vote against the government")),
|
|
45
|
+
[[62, 81, 62, 84]]))
|
|
46
|
+
|
|
47
|
+
it("joins changes that grow together when simplifying", () => test(
|
|
48
|
+
[[1, 5, 1, 5], [7, 13, 7, 9], [20, 21, 16, 16]], doc(p('and his co-star')),
|
|
49
|
+
[[1, 13, 1, 9], [20, 21, 16, 16]]))
|
|
50
|
+
|
|
51
|
+
it("properly fills in metadata", () => {
|
|
52
|
+
let simple = simplifyChanges([range([2, 3], 0), range([4, 6], 1), range([8, 9, 8, 8], 2)],
|
|
53
|
+
doc(p("1234567890")))
|
|
54
|
+
ist(simple.length, 1)
|
|
55
|
+
ist(JSON.stringify(simple[0].deleted.map(s => [s.length, s.data])),
|
|
56
|
+
JSON.stringify([[3, 0], [4, 1], [4, 2]]))
|
|
57
|
+
ist(JSON.stringify(simple[0].inserted.map(s => [s.length, s.data])),
|
|
58
|
+
JSON.stringify([[3, 0], [4, 1], [3, 2]]))
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
function range(array: number[], author = 0) {
|
|
63
|
+
let [fromA, toA] = array
|
|
64
|
+
let [fromB, toB] = array.length > 2 ? array.slice(2) : array
|
|
65
|
+
return new Change(fromA, toA, fromB, toB, [new Span(toA - fromA, author)], [new Span(toB - fromB, author)])
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function test(changes: number[][], doc: Node, result: number[][]) {
|
|
69
|
+
let ranges = changes.map(range)
|
|
70
|
+
ist(JSON.stringify(simplifyChanges(ranges, doc).map((r, i) => {
|
|
71
|
+
if (result[i] && result[i].length > 2) return [r.fromA, r.toA, r.fromB, r.toB]
|
|
72
|
+
else return [r.fromB, r.toB]
|
|
73
|
+
})), JSON.stringify(result))
|
|
74
|
+
}
|