@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,722 @@
|
|
|
1
|
+
function typeID(type) {
|
|
2
|
+
let cache = type.schema.cached.changeSetIDs || (type.schema.cached.changeSetIDs = Object.create(null));
|
|
3
|
+
let id = cache[type.name];
|
|
4
|
+
if (id == null)
|
|
5
|
+
cache[type.name] = id = Object.keys(type.schema.nodes).indexOf(type.name) + 1;
|
|
6
|
+
return id;
|
|
7
|
+
}
|
|
8
|
+
// The default token encoder, which encodes node open tokens are
|
|
9
|
+
// encoded as strings holding the node name, characters as their
|
|
10
|
+
// character code, and node close tokens as negative numbers.
|
|
11
|
+
const DefaultEncoder = {
|
|
12
|
+
encodeCharacter: char => char,
|
|
13
|
+
encodeNodeStart: node => node.type.name,
|
|
14
|
+
encodeNodeEnd: node => -typeID(node.type),
|
|
15
|
+
compareTokens: (a, b) => a === b
|
|
16
|
+
};
|
|
17
|
+
// Convert the given range of a fragment to tokens.
|
|
18
|
+
function tokens(frag, encoder, start, end, target) {
|
|
19
|
+
for (let i = 0, off = 0; i < frag.childCount; i++) {
|
|
20
|
+
let child = frag.child(i), endOff = off + child.nodeSize;
|
|
21
|
+
let from = Math.max(off, start), to = Math.min(endOff, end);
|
|
22
|
+
if (from < to) {
|
|
23
|
+
if (child.isText) {
|
|
24
|
+
for (let j = from; j < to; j++)
|
|
25
|
+
target.push(encoder.encodeCharacter(child.text.charCodeAt(j - off), child.marks));
|
|
26
|
+
}
|
|
27
|
+
else if (child.isLeaf) {
|
|
28
|
+
target.push(encoder.encodeNodeStart(child));
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (from == off)
|
|
32
|
+
target.push(encoder.encodeNodeStart(child));
|
|
33
|
+
tokens(child.content, encoder, Math.max(off + 1, from) - off - 1, Math.min(endOff - 1, to) - off - 1, target);
|
|
34
|
+
if (to == endOff)
|
|
35
|
+
target.push(encoder.encodeNodeEnd(child));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
off = endOff;
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
// The code below will refuse to compute a diff with more than 5000
|
|
43
|
+
// insertions or deletions, which takes about 300ms to reach on my
|
|
44
|
+
// machine. This is a safeguard against runaway computations.
|
|
45
|
+
const MAX_DIFF_SIZE = 2500, MAX_TOKEN_SIZE = 10000;
|
|
46
|
+
// This obscure mess of constants computes the minimum length of an
|
|
47
|
+
// unchanged range (not at the start/end of the compared content). The
|
|
48
|
+
// idea is to make it higher in bigger replacements, so that you don't
|
|
49
|
+
// get a diff soup of coincidentally identical letters when replacing
|
|
50
|
+
// a paragraph.
|
|
51
|
+
function minUnchanged(sizeA, sizeB) {
|
|
52
|
+
return Math.min(15, Math.max(2, Math.floor(Math.max(sizeA, sizeB) / 10)));
|
|
53
|
+
}
|
|
54
|
+
function computeDiff(fragA, fragB, range, encoder = DefaultEncoder) {
|
|
55
|
+
// When one side is longer than our max scan distance, the algorithm
|
|
56
|
+
// will never find a diff.
|
|
57
|
+
if (Math.max(range.toA - range.fromA, range.toB - range.fromB) > MAX_TOKEN_SIZE)
|
|
58
|
+
return [range];
|
|
59
|
+
let tokA = tokens(fragA, encoder, range.fromA, range.toA, []);
|
|
60
|
+
let tokB = tokens(fragB, encoder, range.fromB, range.toB, []);
|
|
61
|
+
return diff(tokA, tokB, range, encoder.compareTokens);
|
|
62
|
+
}
|
|
63
|
+
function diff(tokA, tokB, range, cmp) {
|
|
64
|
+
// Scan from both sides to cheaply eliminate work
|
|
65
|
+
let start = 0, endA = tokA.length, endB = tokB.length;
|
|
66
|
+
while (start < tokA.length && start < tokB.length && cmp(tokA[start], tokB[start]))
|
|
67
|
+
start++;
|
|
68
|
+
if (start == tokA.length && start == tokB.length)
|
|
69
|
+
return [];
|
|
70
|
+
while (endA > start && endB > start && cmp(tokA[endA - 1], tokB[endB - 1]))
|
|
71
|
+
endA--, endB--;
|
|
72
|
+
// No difference
|
|
73
|
+
if (endA == start && endB == start)
|
|
74
|
+
return [];
|
|
75
|
+
// If the result is simple _or_ too big to cheaply compute, return
|
|
76
|
+
// the remaining region as the diff
|
|
77
|
+
if (endA == start || endB == start || (endA == endB && endA == start + 1) || Math.max(endA, endB) - start > MAX_DIFF_SIZE)
|
|
78
|
+
return [range.slice(start, endA, start, endB)];
|
|
79
|
+
// This is an implementation of Myers' diff algorithm
|
|
80
|
+
// See https://neil.fraser.name/writing/diff/myers.pdf and
|
|
81
|
+
// https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/
|
|
82
|
+
let lenA = endA - start, lenB = endB - start;
|
|
83
|
+
let max = Math.min(MAX_DIFF_SIZE, lenA + lenB);
|
|
84
|
+
let history = [];
|
|
85
|
+
let frontier = new Int16Array((max + 1) * 2).fill(-1);
|
|
86
|
+
for (let size = 0; size <= max; size++) {
|
|
87
|
+
for (let diag = -size; diag <= size; diag += 2) {
|
|
88
|
+
let next = frontier[diag + 1 + max], prev = frontier[diag - 1 + max];
|
|
89
|
+
let x = next < prev ? prev : next + 1, y = x + diag;
|
|
90
|
+
while (x < lenA && y < lenB && cmp(tokA[start + x], tokB[start + y]))
|
|
91
|
+
x++, y++;
|
|
92
|
+
frontier[diag + max] = x;
|
|
93
|
+
// Found a match
|
|
94
|
+
if (x >= lenA && y >= lenB) {
|
|
95
|
+
// Trace back through the history to build up a set of changed ranges.
|
|
96
|
+
let diff = [], minSpan = minUnchanged(endA - start, endB - start);
|
|
97
|
+
// Used to add steps to a diff one at a time, back to front, merging
|
|
98
|
+
// ones that are less than minSpan tokens apart
|
|
99
|
+
let fromA = -1, toA = -1, fromB = -1, toB = -1;
|
|
100
|
+
let add = (fA, tA, fB, tB) => {
|
|
101
|
+
if (fromA > -1 && fromA < tA + minSpan) {
|
|
102
|
+
fromA = fA;
|
|
103
|
+
fromB = fB;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
if (fromA > -1)
|
|
107
|
+
diff.push(range.slice(fromA, toA, fromB, toB));
|
|
108
|
+
fromA = fA;
|
|
109
|
+
toA = tA;
|
|
110
|
+
fromB = fB;
|
|
111
|
+
toB = tB;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
for (let i = size - 1; i >= 0; i--) {
|
|
115
|
+
let next = frontier[diag + 1 + max], prev = frontier[diag - 1 + max];
|
|
116
|
+
if (next < prev) { // Deletion
|
|
117
|
+
diag--;
|
|
118
|
+
x = prev + start;
|
|
119
|
+
y = x + diag;
|
|
120
|
+
add(x, x, y, y + 1);
|
|
121
|
+
}
|
|
122
|
+
else { // Insertion
|
|
123
|
+
diag++;
|
|
124
|
+
x = next + start;
|
|
125
|
+
y = x + diag;
|
|
126
|
+
add(x, x + 1, y, y);
|
|
127
|
+
}
|
|
128
|
+
frontier = history[i >> 1];
|
|
129
|
+
}
|
|
130
|
+
if (fromA > -1)
|
|
131
|
+
diff.push(range.slice(fromA, toA, fromB, toB));
|
|
132
|
+
return diff.reverse();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// Since only either odd or even diagonals are read from each
|
|
136
|
+
// frontier, we only copy them every other iteration.
|
|
137
|
+
if (size % 2 == 0)
|
|
138
|
+
history.push(frontier.slice());
|
|
139
|
+
}
|
|
140
|
+
// The loop exited, meaning the maximum amount of work was done.
|
|
141
|
+
// Just return a change spanning the entire range.
|
|
142
|
+
return [range.slice(start, endA, start, endB)];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
Stores metadata for a part of a change.
|
|
147
|
+
*/
|
|
148
|
+
class Span {
|
|
149
|
+
/**
|
|
150
|
+
@internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(
|
|
153
|
+
/**
|
|
154
|
+
The length of this span.
|
|
155
|
+
*/
|
|
156
|
+
length,
|
|
157
|
+
/**
|
|
158
|
+
The data associated with this span.
|
|
159
|
+
*/
|
|
160
|
+
data) {
|
|
161
|
+
this.length = length;
|
|
162
|
+
this.data = data;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
@internal
|
|
166
|
+
*/
|
|
167
|
+
cut(length) {
|
|
168
|
+
return length == this.length ? this : new Span(length, this.data);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
@internal
|
|
172
|
+
*/
|
|
173
|
+
static slice(spans, from, to) {
|
|
174
|
+
if (from == to)
|
|
175
|
+
return Span.none;
|
|
176
|
+
if (from == 0 && to == Span.len(spans))
|
|
177
|
+
return spans;
|
|
178
|
+
let result = [];
|
|
179
|
+
for (let i = 0, off = 0; off < to; i++) {
|
|
180
|
+
let span = spans[i], end = off + span.length;
|
|
181
|
+
let overlap = Math.min(to, end) - Math.max(from, off);
|
|
182
|
+
if (overlap > 0)
|
|
183
|
+
result.push(span.cut(overlap));
|
|
184
|
+
off = end;
|
|
185
|
+
}
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
@internal
|
|
190
|
+
*/
|
|
191
|
+
static join(a, b, combine) {
|
|
192
|
+
if (a.length == 0)
|
|
193
|
+
return b;
|
|
194
|
+
if (b.length == 0)
|
|
195
|
+
return a;
|
|
196
|
+
let combined = combine(a[a.length - 1].data, b[0].data);
|
|
197
|
+
if (combined == null)
|
|
198
|
+
return a.concat(b);
|
|
199
|
+
let result = a.slice(0, a.length - 1);
|
|
200
|
+
result.push(new Span(a[a.length - 1].length + b[0].length, combined));
|
|
201
|
+
for (let i = 1; i < b.length; i++)
|
|
202
|
+
result.push(b[i]);
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
@internal
|
|
207
|
+
*/
|
|
208
|
+
static len(spans) {
|
|
209
|
+
let len = 0;
|
|
210
|
+
for (let i = 0; i < spans.length; i++)
|
|
211
|
+
len += spans[i].length;
|
|
212
|
+
return len;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
@internal
|
|
217
|
+
*/
|
|
218
|
+
Span.none = [];
|
|
219
|
+
/**
|
|
220
|
+
A replaced range with metadata associated with it.
|
|
221
|
+
*/
|
|
222
|
+
class Change {
|
|
223
|
+
/**
|
|
224
|
+
@internal
|
|
225
|
+
*/
|
|
226
|
+
constructor(
|
|
227
|
+
/**
|
|
228
|
+
The start of the range deleted/replaced in the old document.
|
|
229
|
+
*/
|
|
230
|
+
fromA,
|
|
231
|
+
/**
|
|
232
|
+
The end of the range in the old document.
|
|
233
|
+
*/
|
|
234
|
+
toA,
|
|
235
|
+
/**
|
|
236
|
+
The start of the range inserted in the new document.
|
|
237
|
+
*/
|
|
238
|
+
fromB,
|
|
239
|
+
/**
|
|
240
|
+
The end of the range in the new document.
|
|
241
|
+
*/
|
|
242
|
+
toB,
|
|
243
|
+
/**
|
|
244
|
+
Data associated with the deleted content. The length of these
|
|
245
|
+
spans adds up to `this.toA - this.fromA`.
|
|
246
|
+
*/
|
|
247
|
+
deleted,
|
|
248
|
+
/**
|
|
249
|
+
Data associated with the inserted content. Length adds up to
|
|
250
|
+
`this.toB - this.fromB`.
|
|
251
|
+
*/
|
|
252
|
+
inserted) {
|
|
253
|
+
this.fromA = fromA;
|
|
254
|
+
this.toA = toA;
|
|
255
|
+
this.fromB = fromB;
|
|
256
|
+
this.toB = toB;
|
|
257
|
+
this.deleted = deleted;
|
|
258
|
+
this.inserted = inserted;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
@internal
|
|
262
|
+
*/
|
|
263
|
+
get lenA() { return this.toA - this.fromA; }
|
|
264
|
+
/**
|
|
265
|
+
@internal
|
|
266
|
+
*/
|
|
267
|
+
get lenB() { return this.toB - this.fromB; }
|
|
268
|
+
/**
|
|
269
|
+
@internal
|
|
270
|
+
*/
|
|
271
|
+
slice(startA, endA, startB, endB) {
|
|
272
|
+
if (startA == 0 && startB == 0 && endA == this.toA - this.fromA &&
|
|
273
|
+
endB == this.toB - this.fromB)
|
|
274
|
+
return this;
|
|
275
|
+
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));
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
This merges two changesets (the end document of x should be the
|
|
279
|
+
start document of y) into a single one spanning the start of x to
|
|
280
|
+
the end of y.
|
|
281
|
+
*/
|
|
282
|
+
static merge(x, y, combine) {
|
|
283
|
+
if (x.length == 0)
|
|
284
|
+
return y;
|
|
285
|
+
if (y.length == 0)
|
|
286
|
+
return x;
|
|
287
|
+
let result = [];
|
|
288
|
+
// Iterate over both sets in parallel, using the middle coordinate
|
|
289
|
+
// system (B in x, A in y) to synchronize.
|
|
290
|
+
for (let iX = 0, iY = 0, curX = x[0], curY = y[0];;) {
|
|
291
|
+
if (!curX && !curY) {
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
else if (curX && (!curY || curX.toB < curY.fromA)) { // curX entirely in front of curY
|
|
295
|
+
let off = iY ? y[iY - 1].toB - y[iY - 1].toA : 0;
|
|
296
|
+
result.push(off == 0 ? curX :
|
|
297
|
+
new Change(curX.fromA, curX.toA, curX.fromB + off, curX.toB + off, curX.deleted, curX.inserted));
|
|
298
|
+
curX = iX++ == x.length ? null : x[iX];
|
|
299
|
+
}
|
|
300
|
+
else if (curY && (!curX || curY.toA < curX.fromB)) { // curY entirely in front of curX
|
|
301
|
+
let off = iX ? x[iX - 1].toB - x[iX - 1].toA : 0;
|
|
302
|
+
result.push(off == 0 ? curY :
|
|
303
|
+
new Change(curY.fromA - off, curY.toA - off, curY.fromB, curY.toB, curY.deleted, curY.inserted));
|
|
304
|
+
curY = iY++ == y.length ? null : y[iY];
|
|
305
|
+
}
|
|
306
|
+
else { // Touch, need to merge
|
|
307
|
+
// The rules for merging ranges are that deletions from the
|
|
308
|
+
// old set and insertions from the new are kept. Areas of the
|
|
309
|
+
// middle document covered by a but not by b are insertions
|
|
310
|
+
// from a that need to be added, and areas covered by b but
|
|
311
|
+
// not a are deletions from b that need to be added.
|
|
312
|
+
let pos = Math.min(curX.fromB, curY.fromA);
|
|
313
|
+
let fromA = Math.min(curX.fromA, curY.fromA - (iX ? x[iX - 1].toB - x[iX - 1].toA : 0)), toA = fromA;
|
|
314
|
+
let fromB = Math.min(curY.fromB, curX.fromB + (iY ? y[iY - 1].toB - y[iY - 1].toA : 0)), toB = fromB;
|
|
315
|
+
let deleted = Span.none, inserted = Span.none;
|
|
316
|
+
// Used to prevent appending ins/del range for the same Change twice
|
|
317
|
+
let enteredX = false, enteredY = false;
|
|
318
|
+
// Need to have an inner loop since any number of further
|
|
319
|
+
// ranges might be touching this group
|
|
320
|
+
for (;;) {
|
|
321
|
+
let nextX = !curX ? 2e8 : pos >= curX.fromB ? curX.toB : curX.fromB;
|
|
322
|
+
let nextY = !curY ? 2e8 : pos >= curY.fromA ? curY.toA : curY.fromA;
|
|
323
|
+
let next = Math.min(nextX, nextY);
|
|
324
|
+
let inX = curX && pos >= curX.fromB, inY = curY && pos >= curY.fromA;
|
|
325
|
+
if (!inX && !inY)
|
|
326
|
+
break;
|
|
327
|
+
if (inX && pos == curX.fromB && !enteredX) {
|
|
328
|
+
deleted = Span.join(deleted, curX.deleted, combine);
|
|
329
|
+
toA += curX.lenA;
|
|
330
|
+
enteredX = true;
|
|
331
|
+
}
|
|
332
|
+
if (inX && !inY) {
|
|
333
|
+
inserted = Span.join(inserted, Span.slice(curX.inserted, pos - curX.fromB, next - curX.fromB), combine);
|
|
334
|
+
toB += next - pos;
|
|
335
|
+
}
|
|
336
|
+
if (inY && pos == curY.fromA && !enteredY) {
|
|
337
|
+
inserted = Span.join(inserted, curY.inserted, combine);
|
|
338
|
+
toB += curY.lenB;
|
|
339
|
+
enteredY = true;
|
|
340
|
+
}
|
|
341
|
+
if (inY && !inX) {
|
|
342
|
+
deleted = Span.join(deleted, Span.slice(curY.deleted, pos - curY.fromA, next - curY.fromA), combine);
|
|
343
|
+
toA += next - pos;
|
|
344
|
+
}
|
|
345
|
+
if (inX && next == curX.toB) {
|
|
346
|
+
curX = iX++ == x.length ? null : x[iX];
|
|
347
|
+
enteredX = false;
|
|
348
|
+
}
|
|
349
|
+
if (inY && next == curY.toA) {
|
|
350
|
+
curY = iY++ == y.length ? null : y[iY];
|
|
351
|
+
enteredY = false;
|
|
352
|
+
}
|
|
353
|
+
pos = next;
|
|
354
|
+
}
|
|
355
|
+
if (fromA < toA || fromB < toB)
|
|
356
|
+
result.push(new Change(fromA, toA, fromB, toB, deleted, inserted));
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
Deserialize a change from JSON format.
|
|
362
|
+
*/
|
|
363
|
+
static fromJSON(json) {
|
|
364
|
+
return new Change(json.fromA, json.toA, json.fromB, json.toB, json.deleted.map(d => new Span(d.length, d.data)), json.inserted.map(d => new Span(d.length, d.data)));
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
Returns a JSON-serializeable object to represent this change.
|
|
368
|
+
*/
|
|
369
|
+
toJSON() { return this; }
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
let letter;
|
|
373
|
+
// If the runtime support unicode properties in regexps, that's a good
|
|
374
|
+
// source of info on whether something is a letter.
|
|
375
|
+
try {
|
|
376
|
+
letter = new RegExp("[\\p{Alphabetic}_]", "u");
|
|
377
|
+
}
|
|
378
|
+
catch (_) { }
|
|
379
|
+
// Otherwise, we see if the character changes when upper/lowercased,
|
|
380
|
+
// or if it is part of these common single-case scripts.
|
|
381
|
+
const nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
382
|
+
function isLetter(code) {
|
|
383
|
+
if (code < 128)
|
|
384
|
+
return code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122;
|
|
385
|
+
let ch = String.fromCharCode(code);
|
|
386
|
+
if (letter)
|
|
387
|
+
return letter.test(ch);
|
|
388
|
+
return ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch);
|
|
389
|
+
}
|
|
390
|
+
// Convert a range of document into a string, so that we can easily
|
|
391
|
+
// access characters at a given position. Treat non-text tokens as
|
|
392
|
+
// spaces so that they aren't considered part of a word.
|
|
393
|
+
function getText(frag, start, end) {
|
|
394
|
+
let out = "";
|
|
395
|
+
function convert(frag, start, end) {
|
|
396
|
+
for (let i = 0, off = 0; i < frag.childCount; i++) {
|
|
397
|
+
let child = frag.child(i), endOff = off + child.nodeSize;
|
|
398
|
+
let from = Math.max(off, start), to = Math.min(endOff, end);
|
|
399
|
+
if (from < to) {
|
|
400
|
+
if (child.isText) {
|
|
401
|
+
out += child.text.slice(Math.max(0, start - off), Math.min(child.text.length, end - off));
|
|
402
|
+
}
|
|
403
|
+
else if (child.isLeaf) {
|
|
404
|
+
out += " ";
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
if (from == off)
|
|
408
|
+
out += " ";
|
|
409
|
+
convert(child.content, Math.max(0, from - off - 1), Math.min(child.content.size, end - off));
|
|
410
|
+
if (to == endOff)
|
|
411
|
+
out += " ";
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
off = endOff;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
convert(frag, start, end);
|
|
418
|
+
return out;
|
|
419
|
+
}
|
|
420
|
+
// The distance changes have to be apart for us to not consider them
|
|
421
|
+
// candidates for merging.
|
|
422
|
+
const MAX_SIMPLIFY_DISTANCE = 30;
|
|
423
|
+
/**
|
|
424
|
+
Simplifies a set of changes for presentation. This makes the
|
|
425
|
+
assumption that having both insertions and deletions within a word
|
|
426
|
+
is confusing, and, when such changes occur without a word boundary
|
|
427
|
+
between them, they should be expanded to cover the entire set of
|
|
428
|
+
words (in the new document) they touch. An exception is made for
|
|
429
|
+
single-character replacements.
|
|
430
|
+
*/
|
|
431
|
+
function simplifyChanges(changes, doc) {
|
|
432
|
+
let result = [];
|
|
433
|
+
for (let i = 0; i < changes.length; i++) {
|
|
434
|
+
let end = changes[i].toB, start = i;
|
|
435
|
+
while (i < changes.length - 1 && changes[i + 1].fromB <= end + MAX_SIMPLIFY_DISTANCE)
|
|
436
|
+
end = changes[++i].toB;
|
|
437
|
+
simplifyAdjacentChanges(changes, start, i + 1, doc, result);
|
|
438
|
+
}
|
|
439
|
+
return result;
|
|
440
|
+
}
|
|
441
|
+
function simplifyAdjacentChanges(changes, from, to, doc, target) {
|
|
442
|
+
let start = Math.max(0, changes[from].fromB - MAX_SIMPLIFY_DISTANCE);
|
|
443
|
+
let end = Math.min(doc.content.size, changes[to - 1].toB + MAX_SIMPLIFY_DISTANCE);
|
|
444
|
+
let text = getText(doc.content, start, end);
|
|
445
|
+
for (let i = from; i < to; i++) {
|
|
446
|
+
let startI = i, last = changes[i], deleted = last.lenA, inserted = last.lenB;
|
|
447
|
+
while (i < to - 1) {
|
|
448
|
+
let next = changes[i + 1], boundary = false;
|
|
449
|
+
let prevLetter = last.toB == end ? false : isLetter(text.charCodeAt(last.toB - 1 - start));
|
|
450
|
+
for (let pos = last.toB; !boundary && pos < next.fromB; pos++) {
|
|
451
|
+
let nextLetter = pos == end ? false : isLetter(text.charCodeAt(pos - start));
|
|
452
|
+
if ((!prevLetter || !nextLetter) && pos != changes[startI].fromB)
|
|
453
|
+
boundary = true;
|
|
454
|
+
prevLetter = nextLetter;
|
|
455
|
+
}
|
|
456
|
+
if (boundary)
|
|
457
|
+
break;
|
|
458
|
+
deleted += next.lenA;
|
|
459
|
+
inserted += next.lenB;
|
|
460
|
+
last = next;
|
|
461
|
+
i++;
|
|
462
|
+
}
|
|
463
|
+
if (inserted > 0 && deleted > 0 && !(inserted == 1 && deleted == 1)) {
|
|
464
|
+
let from = changes[startI].fromB, to = changes[i].toB;
|
|
465
|
+
if (from < end && isLetter(text.charCodeAt(from - start)))
|
|
466
|
+
while (from > start && isLetter(text.charCodeAt(from - 1 - start)))
|
|
467
|
+
from--;
|
|
468
|
+
if (to > start && isLetter(text.charCodeAt(to - 1 - start)))
|
|
469
|
+
while (to < end && isLetter(text.charCodeAt(to - start)))
|
|
470
|
+
to++;
|
|
471
|
+
let joined = fillChange(changes.slice(startI, i + 1), from, to);
|
|
472
|
+
let last = target.length ? target[target.length - 1] : null;
|
|
473
|
+
if (last && last.toA == joined.fromA)
|
|
474
|
+
target[target.length - 1] = new Change(last.fromA, joined.toA, last.fromB, joined.toB, last.deleted.concat(joined.deleted), last.inserted.concat(joined.inserted));
|
|
475
|
+
else
|
|
476
|
+
target.push(joined);
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
for (let j = startI; j <= i; j++)
|
|
480
|
+
target.push(changes[j]);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return changes;
|
|
484
|
+
}
|
|
485
|
+
function combine(a, b) { return a === b ? a : null; }
|
|
486
|
+
function fillChange(changes, fromB, toB) {
|
|
487
|
+
let fromA = changes[0].fromA - (changes[0].fromB - fromB);
|
|
488
|
+
let last = changes[changes.length - 1];
|
|
489
|
+
let toA = last.toA + (toB - last.toB);
|
|
490
|
+
let deleted = Span.none, inserted = Span.none;
|
|
491
|
+
let delData = (changes[0].deleted.length ? changes[0].deleted : changes[0].inserted)[0].data;
|
|
492
|
+
let insData = (changes[0].inserted.length ? changes[0].inserted : changes[0].deleted)[0].data;
|
|
493
|
+
for (let posA = fromA, posB = fromB, i = 0;; i++) {
|
|
494
|
+
let next = i == changes.length ? null : changes[i];
|
|
495
|
+
let endA = next ? next.fromA : toA, endB = next ? next.fromB : toB;
|
|
496
|
+
if (endA > posA)
|
|
497
|
+
deleted = Span.join(deleted, [new Span(endA - posA, delData)], combine);
|
|
498
|
+
if (endB > posB)
|
|
499
|
+
inserted = Span.join(inserted, [new Span(endB - posB, insData)], combine);
|
|
500
|
+
if (!next)
|
|
501
|
+
break;
|
|
502
|
+
deleted = Span.join(deleted, next.deleted, combine);
|
|
503
|
+
inserted = Span.join(inserted, next.inserted, combine);
|
|
504
|
+
if (deleted.length)
|
|
505
|
+
delData = deleted[deleted.length - 1].data;
|
|
506
|
+
if (inserted.length)
|
|
507
|
+
insData = inserted[inserted.length - 1].data;
|
|
508
|
+
posA = next.toA;
|
|
509
|
+
posB = next.toB;
|
|
510
|
+
}
|
|
511
|
+
return new Change(fromA, toA, fromB, toB, deleted, inserted);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
A change set tracks the changes to a document from a given point
|
|
516
|
+
in the past. It condenses a number of step maps down to a flat
|
|
517
|
+
sequence of replacements, and simplifies replacments that
|
|
518
|
+
partially undo themselves by comparing their content.
|
|
519
|
+
*/
|
|
520
|
+
class ChangeSet {
|
|
521
|
+
/**
|
|
522
|
+
@internal
|
|
523
|
+
*/
|
|
524
|
+
constructor(
|
|
525
|
+
/**
|
|
526
|
+
@internal
|
|
527
|
+
*/
|
|
528
|
+
config,
|
|
529
|
+
/**
|
|
530
|
+
Replaced regions.
|
|
531
|
+
*/
|
|
532
|
+
changes) {
|
|
533
|
+
this.config = config;
|
|
534
|
+
this.changes = changes;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
Computes a new changeset by adding the given step maps and
|
|
538
|
+
metadata (either as an array, per-map, or as a single value to be
|
|
539
|
+
associated with all maps) to the current set. Will not mutate the
|
|
540
|
+
old set.
|
|
541
|
+
|
|
542
|
+
Note that due to simplification that happens after each add,
|
|
543
|
+
incrementally adding steps might create a different final set
|
|
544
|
+
than adding all those changes at once, since different document
|
|
545
|
+
tokens might be matched during simplification depending on the
|
|
546
|
+
boundaries of the current changed ranges.
|
|
547
|
+
*/
|
|
548
|
+
addSteps(newDoc, maps, data) {
|
|
549
|
+
// This works by inspecting the position maps for the changes,
|
|
550
|
+
// which indicate what parts of the document were replaced by new
|
|
551
|
+
// content, and the size of that new content. It uses these to
|
|
552
|
+
// build up Change objects.
|
|
553
|
+
//
|
|
554
|
+
// These change objects are put in sets and merged together using
|
|
555
|
+
// Change.merge, giving us the changes created by the new steps.
|
|
556
|
+
// Those changes can then be merged with the existing set of
|
|
557
|
+
// changes.
|
|
558
|
+
//
|
|
559
|
+
// For each change that was touched by the new steps, we recompute
|
|
560
|
+
// a diff to try to minimize the change by dropping matching
|
|
561
|
+
// pieces of the old and new document from the change.
|
|
562
|
+
let stepChanges = [];
|
|
563
|
+
// Add spans for new steps.
|
|
564
|
+
for (let i = 0; i < maps.length; i++) {
|
|
565
|
+
let d = Array.isArray(data) ? data[i] : data;
|
|
566
|
+
let off = 0;
|
|
567
|
+
maps[i].forEach((fromA, toA, fromB, toB) => {
|
|
568
|
+
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)]));
|
|
569
|
+
off = (toB - fromB) - (toA - fromA);
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
if (stepChanges.length == 0)
|
|
573
|
+
return this;
|
|
574
|
+
let newChanges = mergeAll(stepChanges, this.config.combine);
|
|
575
|
+
let changes = Change.merge(this.changes, newChanges, this.config.combine);
|
|
576
|
+
let updated = changes;
|
|
577
|
+
// Minimize changes when possible
|
|
578
|
+
for (let i = 0; i < updated.length; i++) {
|
|
579
|
+
let change = updated[i];
|
|
580
|
+
if (change.fromA == change.toA || change.fromB == change.toB ||
|
|
581
|
+
// Only look at changes that touch newly added changed ranges
|
|
582
|
+
!newChanges.some(r => r.toB > change.fromB && r.fromB < change.toB))
|
|
583
|
+
continue;
|
|
584
|
+
let diff = computeDiff(this.config.doc.content, newDoc.content, change, this.config.encoder);
|
|
585
|
+
// Fast path: If they are completely different, don't do anything
|
|
586
|
+
if (diff.length == 1 && diff[0].fromB == 0 && diff[0].toB == change.toB - change.fromB)
|
|
587
|
+
continue;
|
|
588
|
+
if (updated == changes)
|
|
589
|
+
updated = changes.slice();
|
|
590
|
+
if (diff.length == 1) {
|
|
591
|
+
updated[i] = diff[0];
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
updated.splice(i, 1, ...diff);
|
|
595
|
+
i += diff.length - 1;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
return new ChangeSet(this.config, updated);
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
The starting document of the change set.
|
|
602
|
+
*/
|
|
603
|
+
get startDoc() { return this.config.doc; }
|
|
604
|
+
/**
|
|
605
|
+
Map the span's data values in the given set through a function
|
|
606
|
+
and construct a new set with the resulting data.
|
|
607
|
+
*/
|
|
608
|
+
map(f) {
|
|
609
|
+
let mapSpan = (span) => {
|
|
610
|
+
let newData = f(span);
|
|
611
|
+
return newData === span.data ? span : new Span(span.length, newData);
|
|
612
|
+
};
|
|
613
|
+
return new ChangeSet(this.config, this.changes.map((ch) => {
|
|
614
|
+
return new Change(ch.fromA, ch.toA, ch.fromB, ch.toB, ch.deleted.map(mapSpan), ch.inserted.map(mapSpan));
|
|
615
|
+
}));
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
Compare two changesets and return the range in which they are
|
|
619
|
+
changed, if any. If the document changed between the maps, pass
|
|
620
|
+
the maps for the steps that changed it as second argument, and
|
|
621
|
+
make sure the method is called on the old set and passed the new
|
|
622
|
+
set. The returned positions will be in new document coordinates.
|
|
623
|
+
*/
|
|
624
|
+
changedRange(b, maps) {
|
|
625
|
+
if (b == this)
|
|
626
|
+
return null;
|
|
627
|
+
let touched = maps && touchedRange(maps);
|
|
628
|
+
let moved = touched ? (touched.toB - touched.fromB) - (touched.toA - touched.fromA) : 0;
|
|
629
|
+
function map(p) {
|
|
630
|
+
return !touched || p <= touched.fromA ? p : p + moved;
|
|
631
|
+
}
|
|
632
|
+
let from = touched ? touched.fromB : 2e8, to = touched ? touched.toB : -2e8;
|
|
633
|
+
function add(start, end = start) {
|
|
634
|
+
from = Math.min(start, from);
|
|
635
|
+
to = Math.max(end, to);
|
|
636
|
+
}
|
|
637
|
+
let rA = this.changes, rB = b.changes;
|
|
638
|
+
for (let iA = 0, iB = 0; iA < rA.length && iB < rB.length;) {
|
|
639
|
+
let rangeA = rA[iA], rangeB = rB[iB];
|
|
640
|
+
if (rangeA && rangeB && sameRanges(rangeA, rangeB, map)) {
|
|
641
|
+
iA++;
|
|
642
|
+
iB++;
|
|
643
|
+
}
|
|
644
|
+
else if (rangeB && (!rangeA || map(rangeA.fromB) >= rangeB.fromB)) {
|
|
645
|
+
add(rangeB.fromB, rangeB.toB);
|
|
646
|
+
iB++;
|
|
647
|
+
}
|
|
648
|
+
else {
|
|
649
|
+
add(map(rangeA.fromB), map(rangeA.toB));
|
|
650
|
+
iA++;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return from <= to ? { from, to } : null;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
Create a changeset with the given base object and configuration.
|
|
657
|
+
|
|
658
|
+
The `combine` function is used to compare and combine metadata—it
|
|
659
|
+
should return null when metadata isn't compatible, and a combined
|
|
660
|
+
version for a merged range when it is.
|
|
661
|
+
|
|
662
|
+
When given, a token encoder determines how document tokens are
|
|
663
|
+
serialized and compared when diffing the content produced by
|
|
664
|
+
changes. The default is to just compare nodes by name and text
|
|
665
|
+
by character, ignoring marks and attributes.
|
|
666
|
+
|
|
667
|
+
To serialize a change set, you can store its document and
|
|
668
|
+
change array as JSON, and then pass the deserialized (via
|
|
669
|
+
[`Change.fromJSON`](https://prosemirror.net/docs/ref/#changes.Change^fromJSON)) set of changes
|
|
670
|
+
as fourth argument to `create` to recreate the set.
|
|
671
|
+
*/
|
|
672
|
+
static create(doc, combine = (a, b) => a === b ? a : null, tokenEncoder = DefaultEncoder, changes = []) {
|
|
673
|
+
return new ChangeSet({ combine, doc, encoder: tokenEncoder }, changes);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
Exported for testing @internal
|
|
678
|
+
*/
|
|
679
|
+
ChangeSet.computeDiff = computeDiff;
|
|
680
|
+
// Divide-and-conquer approach to merging a series of ranges.
|
|
681
|
+
function mergeAll(ranges, combine, start = 0, end = ranges.length) {
|
|
682
|
+
if (end == start + 1)
|
|
683
|
+
return [ranges[start]];
|
|
684
|
+
let mid = (start + end) >> 1;
|
|
685
|
+
return Change.merge(mergeAll(ranges, combine, start, mid), mergeAll(ranges, combine, mid, end), combine);
|
|
686
|
+
}
|
|
687
|
+
function endRange(maps) {
|
|
688
|
+
let from = 2e8, to = -2e8;
|
|
689
|
+
for (let i = 0; i < maps.length; i++) {
|
|
690
|
+
let map = maps[i];
|
|
691
|
+
if (from != 2e8) {
|
|
692
|
+
from = map.map(from, -1);
|
|
693
|
+
to = map.map(to, 1);
|
|
694
|
+
}
|
|
695
|
+
map.forEach((_s, _e, start, end) => {
|
|
696
|
+
from = Math.min(from, start);
|
|
697
|
+
to = Math.max(to, end);
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
return from == 2e8 ? null : { from, to };
|
|
701
|
+
}
|
|
702
|
+
function touchedRange(maps) {
|
|
703
|
+
let b = endRange(maps);
|
|
704
|
+
if (!b)
|
|
705
|
+
return null;
|
|
706
|
+
let a = endRange(maps.map(m => m.invert()).reverse());
|
|
707
|
+
return { fromA: a.from, toA: a.to, fromB: b.from, toB: b.to };
|
|
708
|
+
}
|
|
709
|
+
function sameRanges(a, b, map) {
|
|
710
|
+
return map(a.fromB) == b.fromB && map(a.toB) == b.toB &&
|
|
711
|
+
sameSpans(a.deleted, b.deleted) && sameSpans(a.inserted, b.inserted);
|
|
712
|
+
}
|
|
713
|
+
function sameSpans(a, b) {
|
|
714
|
+
if (a.length != b.length)
|
|
715
|
+
return false;
|
|
716
|
+
for (let i = 0; i < a.length; i++)
|
|
717
|
+
if (a[i].length != b[i].length || a[i].data !== b[i].data)
|
|
718
|
+
return false;
|
|
719
|
+
return true;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export { Change, ChangeSet, Span, simplifyChanges };
|