@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,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "prosemirror-view",
|
|
3
|
+
"version": "1.42.7",
|
|
4
|
+
"description": "ProseMirror's view component",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./style/prosemirror.css": "./style/prosemirror.css"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": ["./style/prosemirror.css"],
|
|
17
|
+
"style": "style/prosemirror.css",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"maintainers": [
|
|
20
|
+
{
|
|
21
|
+
"name": "Marijn Haverbeke",
|
|
22
|
+
"email": "marijn@haverbeke.berlin",
|
|
23
|
+
"web": "http://marijnhaverbeke.nl"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://code.haverbeke.berlin/prosemirror/prosemirror-view.git"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"prosemirror-model": "^1.25.12",
|
|
32
|
+
"prosemirror-state": "^1.0.0",
|
|
33
|
+
"prosemirror-transform": "^1.1.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@prosemirror/buildhelper": "^0.1.5",
|
|
37
|
+
"prosemirror-test-builder": "^1.0.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"test": "pm-runtests",
|
|
41
|
+
"prepare": "pm-buildhelper src/index.ts"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.ProseMirror {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.ProseMirror {
|
|
6
|
+
word-wrap: break-word;
|
|
7
|
+
white-space: pre-wrap;
|
|
8
|
+
white-space: break-spaces;
|
|
9
|
+
-webkit-font-variant-ligatures: none;
|
|
10
|
+
font-variant-ligatures: none;
|
|
11
|
+
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ProseMirror pre {
|
|
15
|
+
white-space: pre-wrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ProseMirror li {
|
|
19
|
+
position: relative;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ProseMirror-hideselection *::selection { background: transparent; }
|
|
23
|
+
.ProseMirror-hideselection *::-moz-selection { background: transparent; }
|
|
24
|
+
.ProseMirror-hideselection { caret-color: transparent; }
|
|
25
|
+
|
|
26
|
+
/* See https://code.haverbeke.berlin/prosemirror/prosemirror/issues/1421#issuecomment-1759320191 */
|
|
27
|
+
.ProseMirror [draggable][contenteditable=false] { user-select: text }
|
|
28
|
+
|
|
29
|
+
.ProseMirror-selectednode {
|
|
30
|
+
outline: 2px solid #8cf;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Make sure li selections wrap around markers */
|
|
34
|
+
|
|
35
|
+
li.ProseMirror-selectednode {
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
li.ProseMirror-selectednode:after {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: -32px;
|
|
43
|
+
right: -2px; top: -2px; bottom: -2px;
|
|
44
|
+
border: 2px solid #8cf;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Protect against generic img rules */
|
|
49
|
+
|
|
50
|
+
img.ProseMirror-separator {
|
|
51
|
+
display: inline !important;
|
|
52
|
+
border: none !important;
|
|
53
|
+
margin: 0 !important;
|
|
54
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
|
11
|
+
all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# rope-sequence
|
|
2
|
+
|
|
3
|
+
This module implements a single data type, `RopeSequence`, which is a
|
|
4
|
+
persistent sequence type implemented as a loosely-balanced
|
|
5
|
+
[rope](https://www.cs.rit.edu/usr/local/pub/jeh/courses/QUARTERS/FP/Labs/CedarRope/rope-paper.pdf).
|
|
6
|
+
It supports appending, prepending, and slicing without doing a full
|
|
7
|
+
copy. Random access is somewhat more expensive than in an array
|
|
8
|
+
(logarithmic, with some overhead), but should still be relatively
|
|
9
|
+
fast.
|
|
10
|
+
|
|
11
|
+
Licensed under the MIT license.
|
|
12
|
+
|
|
13
|
+
## class `RopeSequence<T>`
|
|
14
|
+
|
|
15
|
+
`static `**`from`**`(?union<[T], RopeSequence<T>>) → RopeSequence<T>`
|
|
16
|
+
|
|
17
|
+
Create a rope representing the given array, or return the rope itself
|
|
18
|
+
if a rope was given.
|
|
19
|
+
|
|
20
|
+
`static `**`empty`**`: RopeSequence<T>`
|
|
21
|
+
|
|
22
|
+
The empty rope.
|
|
23
|
+
|
|
24
|
+
**`length`**`: number`
|
|
25
|
+
|
|
26
|
+
The length of the rope.
|
|
27
|
+
|
|
28
|
+
**`append`**`(union<[T], RopeSequence<T>>) → RopeSequence<T>`
|
|
29
|
+
|
|
30
|
+
Append an array or other rope to this one, returning a new rope.
|
|
31
|
+
|
|
32
|
+
**`prepend`**`(union<[T], RopeSequence<T>>) → RopeSequence<T>`
|
|
33
|
+
|
|
34
|
+
Prepend an array or other rope to this one, returning a new rope.
|
|
35
|
+
|
|
36
|
+
**`slice`**`(from: ?number = 0, to: ?number = this.length) → RopeSequence<T>`
|
|
37
|
+
|
|
38
|
+
Create a rope repesenting a sub-sequence of this rope.
|
|
39
|
+
|
|
40
|
+
**`get`**`(index: number) → T`
|
|
41
|
+
|
|
42
|
+
Retrieve the element at the given position from this rope.
|
|
43
|
+
|
|
44
|
+
**`forEach`**`(f: fn(element: T, index: number) → ?bool, from: ?number, to: ?number)`
|
|
45
|
+
|
|
46
|
+
Call the given function for each element between the given indices.
|
|
47
|
+
This tends to be more efficient than looping over the indices and
|
|
48
|
+
calling `get`, because it doesn't have to descend the tree for every
|
|
49
|
+
element.
|
|
50
|
+
|
|
51
|
+
`to` may be less then `from`, in which case the iteration will happen
|
|
52
|
+
in reverse (starting at index `from - 1`, down to index `to`.
|
|
53
|
+
|
|
54
|
+
The iteration function may return `false` to abort iteration early.
|
|
55
|
+
|
|
56
|
+
**`map`**`(f: fn(element: T, index: number) → U, from: ?number, to: ?number) → [U]`
|
|
57
|
+
|
|
58
|
+
Map the given functions over the elements of the rope, producing a
|
|
59
|
+
flat array.
|
|
60
|
+
|
|
61
|
+
**`flatten`**`() → [T]`
|
|
62
|
+
|
|
63
|
+
Return the content of this rope as an array.
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var GOOD_LEAF_SIZE = 200;
|
|
4
|
+
|
|
5
|
+
// :: class<T> A rope sequence is a persistent sequence data structure
|
|
6
|
+
// that supports appending, prepending, and slicing without doing a
|
|
7
|
+
// full copy. It is represented as a mostly-balanced tree.
|
|
8
|
+
var RopeSequence = function RopeSequence () {};
|
|
9
|
+
|
|
10
|
+
RopeSequence.prototype.append = function append (other) {
|
|
11
|
+
if (!other.length) { return this }
|
|
12
|
+
other = RopeSequence.from(other);
|
|
13
|
+
|
|
14
|
+
return (!this.length && other) ||
|
|
15
|
+
(other.length < GOOD_LEAF_SIZE && this.leafAppend(other)) ||
|
|
16
|
+
(this.length < GOOD_LEAF_SIZE && other.leafPrepend(this)) ||
|
|
17
|
+
this.appendInner(other)
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// :: (union<[T], RopeSequence<T>>) → RopeSequence<T>
|
|
21
|
+
// Prepend an array or other rope to this one, returning a new rope.
|
|
22
|
+
RopeSequence.prototype.prepend = function prepend (other) {
|
|
23
|
+
if (!other.length) { return this }
|
|
24
|
+
return RopeSequence.from(other).append(this)
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
RopeSequence.prototype.appendInner = function appendInner (other) {
|
|
28
|
+
return new Append(this, other)
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// :: (?number, ?number) → RopeSequence<T>
|
|
32
|
+
// Create a rope repesenting a sub-sequence of this rope.
|
|
33
|
+
RopeSequence.prototype.slice = function slice (from, to) {
|
|
34
|
+
if ( from === void 0 ) from = 0;
|
|
35
|
+
if ( to === void 0 ) to = this.length;
|
|
36
|
+
|
|
37
|
+
if (from >= to) { return RopeSequence.empty }
|
|
38
|
+
return this.sliceInner(Math.max(0, from), Math.min(this.length, to))
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// :: (number) → T
|
|
42
|
+
// Retrieve the element at the given position from this rope.
|
|
43
|
+
RopeSequence.prototype.get = function get (i) {
|
|
44
|
+
if (i < 0 || i >= this.length) { return undefined }
|
|
45
|
+
return this.getInner(i)
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// :: ((element: T, index: number) → ?bool, ?number, ?number)
|
|
49
|
+
// Call the given function for each element between the given
|
|
50
|
+
// indices. This tends to be more efficient than looping over the
|
|
51
|
+
// indices and calling `get`, because it doesn't have to descend the
|
|
52
|
+
// tree for every element.
|
|
53
|
+
RopeSequence.prototype.forEach = function forEach (f, from, to) {
|
|
54
|
+
if ( from === void 0 ) from = 0;
|
|
55
|
+
if ( to === void 0 ) to = this.length;
|
|
56
|
+
|
|
57
|
+
if (from <= to)
|
|
58
|
+
{ this.forEachInner(f, from, to, 0); }
|
|
59
|
+
else
|
|
60
|
+
{ this.forEachInvertedInner(f, from, to, 0); }
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// :: ((element: T, index: number) → U, ?number, ?number) → [U]
|
|
64
|
+
// Map the given functions over the elements of the rope, producing
|
|
65
|
+
// a flat array.
|
|
66
|
+
RopeSequence.prototype.map = function map (f, from, to) {
|
|
67
|
+
if ( from === void 0 ) from = 0;
|
|
68
|
+
if ( to === void 0 ) to = this.length;
|
|
69
|
+
|
|
70
|
+
var result = [];
|
|
71
|
+
this.forEach(function (elt, i) { return result.push(f(elt, i)); }, from, to);
|
|
72
|
+
return result
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// :: (?union<[T], RopeSequence<T>>) → RopeSequence<T>
|
|
76
|
+
// Create a rope representing the given array, or return the rope
|
|
77
|
+
// itself if a rope was given.
|
|
78
|
+
RopeSequence.from = function from (values) {
|
|
79
|
+
if (values instanceof RopeSequence) { return values }
|
|
80
|
+
return values && values.length ? new Leaf(values) : RopeSequence.empty
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
var Leaf = /*@__PURE__*/(function (RopeSequence) {
|
|
84
|
+
function Leaf(values) {
|
|
85
|
+
RopeSequence.call(this);
|
|
86
|
+
this.values = values;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if ( RopeSequence ) Leaf.__proto__ = RopeSequence;
|
|
90
|
+
Leaf.prototype = Object.create( RopeSequence && RopeSequence.prototype );
|
|
91
|
+
Leaf.prototype.constructor = Leaf;
|
|
92
|
+
|
|
93
|
+
var prototypeAccessors = { length: { configurable: true },depth: { configurable: true } };
|
|
94
|
+
|
|
95
|
+
Leaf.prototype.flatten = function flatten () {
|
|
96
|
+
return this.values
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
Leaf.prototype.sliceInner = function sliceInner (from, to) {
|
|
100
|
+
if (from == 0 && to == this.length) { return this }
|
|
101
|
+
return new Leaf(this.values.slice(from, to))
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
Leaf.prototype.getInner = function getInner (i) {
|
|
105
|
+
return this.values[i]
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
Leaf.prototype.forEachInner = function forEachInner (f, from, to, start) {
|
|
109
|
+
for (var i = from; i < to; i++)
|
|
110
|
+
{ if (f(this.values[i], start + i) === false) { return false } }
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
Leaf.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {
|
|
114
|
+
for (var i = from - 1; i >= to; i--)
|
|
115
|
+
{ if (f(this.values[i], start + i) === false) { return false } }
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
Leaf.prototype.leafAppend = function leafAppend (other) {
|
|
119
|
+
if (this.length + other.length <= GOOD_LEAF_SIZE)
|
|
120
|
+
{ return new Leaf(this.values.concat(other.flatten())) }
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
Leaf.prototype.leafPrepend = function leafPrepend (other) {
|
|
124
|
+
if (this.length + other.length <= GOOD_LEAF_SIZE)
|
|
125
|
+
{ return new Leaf(other.flatten().concat(this.values)) }
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
prototypeAccessors.length.get = function () { return this.values.length };
|
|
129
|
+
|
|
130
|
+
prototypeAccessors.depth.get = function () { return 0 };
|
|
131
|
+
|
|
132
|
+
Object.defineProperties( Leaf.prototype, prototypeAccessors );
|
|
133
|
+
|
|
134
|
+
return Leaf;
|
|
135
|
+
}(RopeSequence));
|
|
136
|
+
|
|
137
|
+
// :: RopeSequence
|
|
138
|
+
// The empty rope sequence.
|
|
139
|
+
RopeSequence.empty = new Leaf([]);
|
|
140
|
+
|
|
141
|
+
var Append = /*@__PURE__*/(function (RopeSequence) {
|
|
142
|
+
function Append(left, right) {
|
|
143
|
+
RopeSequence.call(this);
|
|
144
|
+
this.left = left;
|
|
145
|
+
this.right = right;
|
|
146
|
+
this.length = left.length + right.length;
|
|
147
|
+
this.depth = Math.max(left.depth, right.depth) + 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if ( RopeSequence ) Append.__proto__ = RopeSequence;
|
|
151
|
+
Append.prototype = Object.create( RopeSequence && RopeSequence.prototype );
|
|
152
|
+
Append.prototype.constructor = Append;
|
|
153
|
+
|
|
154
|
+
Append.prototype.flatten = function flatten () {
|
|
155
|
+
return this.left.flatten().concat(this.right.flatten())
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
Append.prototype.getInner = function getInner (i) {
|
|
159
|
+
return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length)
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
Append.prototype.forEachInner = function forEachInner (f, from, to, start) {
|
|
163
|
+
var leftLen = this.left.length;
|
|
164
|
+
if (from < leftLen &&
|
|
165
|
+
this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false)
|
|
166
|
+
{ return false }
|
|
167
|
+
if (to > leftLen &&
|
|
168
|
+
this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false)
|
|
169
|
+
{ return false }
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
Append.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {
|
|
173
|
+
var leftLen = this.left.length;
|
|
174
|
+
if (from > leftLen &&
|
|
175
|
+
this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false)
|
|
176
|
+
{ return false }
|
|
177
|
+
if (to < leftLen &&
|
|
178
|
+
this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false)
|
|
179
|
+
{ return false }
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
Append.prototype.sliceInner = function sliceInner (from, to) {
|
|
183
|
+
if (from == 0 && to == this.length) { return this }
|
|
184
|
+
var leftLen = this.left.length;
|
|
185
|
+
if (to <= leftLen) { return this.left.slice(from, to) }
|
|
186
|
+
if (from >= leftLen) { return this.right.slice(from - leftLen, to - leftLen) }
|
|
187
|
+
return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen))
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
Append.prototype.leafAppend = function leafAppend (other) {
|
|
191
|
+
var inner = this.right.leafAppend(other);
|
|
192
|
+
if (inner) { return new Append(this.left, inner) }
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
Append.prototype.leafPrepend = function leafPrepend (other) {
|
|
196
|
+
var inner = this.left.leafPrepend(other);
|
|
197
|
+
if (inner) { return new Append(inner, this.right) }
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
Append.prototype.appendInner = function appendInner (other) {
|
|
201
|
+
if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1)
|
|
202
|
+
{ return new Append(this.left, new Append(this.right, other)) }
|
|
203
|
+
return new Append(this, other)
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
return Append;
|
|
207
|
+
}(RopeSequence));
|
|
208
|
+
|
|
209
|
+
module.exports = RopeSequence;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class RopeSequence<T> {
|
|
2
|
+
length: number
|
|
3
|
+
prepend(other: RopeSequence<T> | readonly T[]): RopeSequence<T>
|
|
4
|
+
append(other: RopeSequence<T> | readonly T[]): RopeSequence<T>
|
|
5
|
+
slice(from: number, to?: number): RopeSequence<T>
|
|
6
|
+
get(i: number): T
|
|
7
|
+
forEach(f: (elt: T, index: number) => boolean | void, from?: number, to?: number): void
|
|
8
|
+
map<U>(f: (elt: T, index: number) => U, from?: number, to?: number): U[]
|
|
9
|
+
static from<T>(value: readonly T[] | RopeSequence<T>): RopeSequence<T>
|
|
10
|
+
static empty: RopeSequence<any>
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class RopeSequence<T> {
|
|
2
|
+
length: number
|
|
3
|
+
prepend(other: RopeSequence<T> | readonly T[]): RopeSequence<T>
|
|
4
|
+
append(other: RopeSequence<T> | readonly T[]): RopeSequence<T>
|
|
5
|
+
slice(from: number, to?: number): RopeSequence<T>
|
|
6
|
+
get(i: number): T
|
|
7
|
+
forEach(f: (elt: T, index: number) => boolean | void, from?: number, to?: number): void
|
|
8
|
+
map<U>(f: (elt: T, index: number) => U, from?: number, to?: number): U[]
|
|
9
|
+
static from<T>(value: readonly T[] | RopeSequence<T>): RopeSequence<T>
|
|
10
|
+
static empty: RopeSequence<any>
|
|
11
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
var GOOD_LEAF_SIZE = 200;
|
|
2
|
+
|
|
3
|
+
// :: class<T> A rope sequence is a persistent sequence data structure
|
|
4
|
+
// that supports appending, prepending, and slicing without doing a
|
|
5
|
+
// full copy. It is represented as a mostly-balanced tree.
|
|
6
|
+
var RopeSequence = function RopeSequence () {};
|
|
7
|
+
|
|
8
|
+
RopeSequence.prototype.append = function append (other) {
|
|
9
|
+
if (!other.length) { return this }
|
|
10
|
+
other = RopeSequence.from(other);
|
|
11
|
+
|
|
12
|
+
return (!this.length && other) ||
|
|
13
|
+
(other.length < GOOD_LEAF_SIZE && this.leafAppend(other)) ||
|
|
14
|
+
(this.length < GOOD_LEAF_SIZE && other.leafPrepend(this)) ||
|
|
15
|
+
this.appendInner(other)
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// :: (union<[T], RopeSequence<T>>) → RopeSequence<T>
|
|
19
|
+
// Prepend an array or other rope to this one, returning a new rope.
|
|
20
|
+
RopeSequence.prototype.prepend = function prepend (other) {
|
|
21
|
+
if (!other.length) { return this }
|
|
22
|
+
return RopeSequence.from(other).append(this)
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
RopeSequence.prototype.appendInner = function appendInner (other) {
|
|
26
|
+
return new Append(this, other)
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// :: (?number, ?number) → RopeSequence<T>
|
|
30
|
+
// Create a rope repesenting a sub-sequence of this rope.
|
|
31
|
+
RopeSequence.prototype.slice = function slice (from, to) {
|
|
32
|
+
if ( from === void 0 ) from = 0;
|
|
33
|
+
if ( to === void 0 ) to = this.length;
|
|
34
|
+
|
|
35
|
+
if (from >= to) { return RopeSequence.empty }
|
|
36
|
+
return this.sliceInner(Math.max(0, from), Math.min(this.length, to))
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// :: (number) → T
|
|
40
|
+
// Retrieve the element at the given position from this rope.
|
|
41
|
+
RopeSequence.prototype.get = function get (i) {
|
|
42
|
+
if (i < 0 || i >= this.length) { return undefined }
|
|
43
|
+
return this.getInner(i)
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// :: ((element: T, index: number) → ?bool, ?number, ?number)
|
|
47
|
+
// Call the given function for each element between the given
|
|
48
|
+
// indices. This tends to be more efficient than looping over the
|
|
49
|
+
// indices and calling `get`, because it doesn't have to descend the
|
|
50
|
+
// tree for every element.
|
|
51
|
+
RopeSequence.prototype.forEach = function forEach (f, from, to) {
|
|
52
|
+
if ( from === void 0 ) from = 0;
|
|
53
|
+
if ( to === void 0 ) to = this.length;
|
|
54
|
+
|
|
55
|
+
if (from <= to)
|
|
56
|
+
{ this.forEachInner(f, from, to, 0); }
|
|
57
|
+
else
|
|
58
|
+
{ this.forEachInvertedInner(f, from, to, 0); }
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// :: ((element: T, index: number) → U, ?number, ?number) → [U]
|
|
62
|
+
// Map the given functions over the elements of the rope, producing
|
|
63
|
+
// a flat array.
|
|
64
|
+
RopeSequence.prototype.map = function map (f, from, to) {
|
|
65
|
+
if ( from === void 0 ) from = 0;
|
|
66
|
+
if ( to === void 0 ) to = this.length;
|
|
67
|
+
|
|
68
|
+
var result = [];
|
|
69
|
+
this.forEach(function (elt, i) { return result.push(f(elt, i)); }, from, to);
|
|
70
|
+
return result
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// :: (?union<[T], RopeSequence<T>>) → RopeSequence<T>
|
|
74
|
+
// Create a rope representing the given array, or return the rope
|
|
75
|
+
// itself if a rope was given.
|
|
76
|
+
RopeSequence.from = function from (values) {
|
|
77
|
+
if (values instanceof RopeSequence) { return values }
|
|
78
|
+
return values && values.length ? new Leaf(values) : RopeSequence.empty
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var Leaf = /*@__PURE__*/(function (RopeSequence) {
|
|
82
|
+
function Leaf(values) {
|
|
83
|
+
RopeSequence.call(this);
|
|
84
|
+
this.values = values;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if ( RopeSequence ) Leaf.__proto__ = RopeSequence;
|
|
88
|
+
Leaf.prototype = Object.create( RopeSequence && RopeSequence.prototype );
|
|
89
|
+
Leaf.prototype.constructor = Leaf;
|
|
90
|
+
|
|
91
|
+
var prototypeAccessors = { length: { configurable: true },depth: { configurable: true } };
|
|
92
|
+
|
|
93
|
+
Leaf.prototype.flatten = function flatten () {
|
|
94
|
+
return this.values
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
Leaf.prototype.sliceInner = function sliceInner (from, to) {
|
|
98
|
+
if (from == 0 && to == this.length) { return this }
|
|
99
|
+
return new Leaf(this.values.slice(from, to))
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
Leaf.prototype.getInner = function getInner (i) {
|
|
103
|
+
return this.values[i]
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
Leaf.prototype.forEachInner = function forEachInner (f, from, to, start) {
|
|
107
|
+
for (var i = from; i < to; i++)
|
|
108
|
+
{ if (f(this.values[i], start + i) === false) { return false } }
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
Leaf.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {
|
|
112
|
+
for (var i = from - 1; i >= to; i--)
|
|
113
|
+
{ if (f(this.values[i], start + i) === false) { return false } }
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
Leaf.prototype.leafAppend = function leafAppend (other) {
|
|
117
|
+
if (this.length + other.length <= GOOD_LEAF_SIZE)
|
|
118
|
+
{ return new Leaf(this.values.concat(other.flatten())) }
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
Leaf.prototype.leafPrepend = function leafPrepend (other) {
|
|
122
|
+
if (this.length + other.length <= GOOD_LEAF_SIZE)
|
|
123
|
+
{ return new Leaf(other.flatten().concat(this.values)) }
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
prototypeAccessors.length.get = function () { return this.values.length };
|
|
127
|
+
|
|
128
|
+
prototypeAccessors.depth.get = function () { return 0 };
|
|
129
|
+
|
|
130
|
+
Object.defineProperties( Leaf.prototype, prototypeAccessors );
|
|
131
|
+
|
|
132
|
+
return Leaf;
|
|
133
|
+
}(RopeSequence));
|
|
134
|
+
|
|
135
|
+
// :: RopeSequence
|
|
136
|
+
// The empty rope sequence.
|
|
137
|
+
RopeSequence.empty = new Leaf([]);
|
|
138
|
+
|
|
139
|
+
var Append = /*@__PURE__*/(function (RopeSequence) {
|
|
140
|
+
function Append(left, right) {
|
|
141
|
+
RopeSequence.call(this);
|
|
142
|
+
this.left = left;
|
|
143
|
+
this.right = right;
|
|
144
|
+
this.length = left.length + right.length;
|
|
145
|
+
this.depth = Math.max(left.depth, right.depth) + 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
if ( RopeSequence ) Append.__proto__ = RopeSequence;
|
|
149
|
+
Append.prototype = Object.create( RopeSequence && RopeSequence.prototype );
|
|
150
|
+
Append.prototype.constructor = Append;
|
|
151
|
+
|
|
152
|
+
Append.prototype.flatten = function flatten () {
|
|
153
|
+
return this.left.flatten().concat(this.right.flatten())
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
Append.prototype.getInner = function getInner (i) {
|
|
157
|
+
return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length)
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
Append.prototype.forEachInner = function forEachInner (f, from, to, start) {
|
|
161
|
+
var leftLen = this.left.length;
|
|
162
|
+
if (from < leftLen &&
|
|
163
|
+
this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false)
|
|
164
|
+
{ return false }
|
|
165
|
+
if (to > leftLen &&
|
|
166
|
+
this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false)
|
|
167
|
+
{ return false }
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
Append.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {
|
|
171
|
+
var leftLen = this.left.length;
|
|
172
|
+
if (from > leftLen &&
|
|
173
|
+
this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false)
|
|
174
|
+
{ return false }
|
|
175
|
+
if (to < leftLen &&
|
|
176
|
+
this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false)
|
|
177
|
+
{ return false }
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
Append.prototype.sliceInner = function sliceInner (from, to) {
|
|
181
|
+
if (from == 0 && to == this.length) { return this }
|
|
182
|
+
var leftLen = this.left.length;
|
|
183
|
+
if (to <= leftLen) { return this.left.slice(from, to) }
|
|
184
|
+
if (from >= leftLen) { return this.right.slice(from - leftLen, to - leftLen) }
|
|
185
|
+
return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen))
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
Append.prototype.leafAppend = function leafAppend (other) {
|
|
189
|
+
var inner = this.right.leafAppend(other);
|
|
190
|
+
if (inner) { return new Append(this.left, inner) }
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
Append.prototype.leafPrepend = function leafPrepend (other) {
|
|
194
|
+
var inner = this.left.leafPrepend(other);
|
|
195
|
+
if (inner) { return new Append(inner, this.right) }
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
Append.prototype.appendInner = function appendInner (other) {
|
|
199
|
+
if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1)
|
|
200
|
+
{ return new Append(this.left, new Append(this.right, other)) }
|
|
201
|
+
return new Append(this, other)
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
return Append;
|
|
205
|
+
}(RopeSequence));
|
|
206
|
+
|
|
207
|
+
export default RopeSequence;
|