@gsc-basic/components 1.1.6 → 1.1.8
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 +8 -8
- package/dist/es/Button/index.js +9 -4
- package/dist/es/Button/src/Button.css +3 -3
- package/dist/es/Button/src/Button.vue.js +44 -4
- package/dist/es/Button/src/Button2.css +3 -3
- package/dist/es/CodeEditor/index.js +9 -4
- package/dist/es/CodeEditor/src/index.css +4 -4
- package/dist/es/CodeEditor/src/index.vue.js +148 -4
- package/dist/es/CodeEditor/src/index2.css +3 -3
- package/dist/es/CodeEditor/src/index3.css +4 -4
- package/dist/es/ConfigProvider/index.js +9 -4
- package/dist/es/ConfigProvider/src/configProvider.js +17 -4
- package/dist/es/ConfigProvider/src/configProviderProps.js +25 -4
- package/dist/es/ConfigProvider/src/constants.js +12 -4
- package/dist/es/ConfigProvider/src/useGlobalConfig.js +48 -4
- package/dist/es/CountTo/index.js +9 -4
- package/dist/es/CountTo/src/index.css +3 -3
- package/dist/es/CountTo/src/index.vue.js +126 -4
- package/dist/es/Ellipsis/index.js +9 -4
- package/dist/es/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/JsEllipsis.vue.js +181 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/es/Ellipsis/src/components/NativeEllipsis.vue.js +44 -4
- package/dist/es/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/es/Ellipsis/src/index.css +3 -3
- package/dist/es/Ellipsis/src/index.vue.js +96 -4
- package/dist/es/Ellipsis/src/utils/utils.js +59 -4
- package/dist/es/Form/index.js +9 -4
- package/dist/es/Form/src/Form.css +3 -3
- package/dist/es/Form/src/Form.vue.js +377 -4
- package/dist/es/Form/src/Form2.css +3 -3
- package/dist/es/Form/src/styles/form.css +3 -3
- package/dist/es/Marquee/index.js +9 -4
- package/dist/es/Marquee/src/index.css +3 -3
- package/dist/es/Marquee/src/index.vue.js +191 -4
- package/dist/es/Marquee/src/index2.css +3 -3
- package/dist/es/Overlay/index.js +64 -4
- package/dist/es/Overlay/src/Message.css +3 -3
- package/dist/es/Overlay/src/Message.vue.js +39 -4
- package/dist/es/Overlay/src/Message2.css +3 -3
- package/dist/es/Overlay/src/Modal.css +3 -3
- package/dist/es/Overlay/src/Modal.vue.js +70 -4
- package/dist/es/Overlay/src/Modal2.css +3 -3
- package/dist/es/Overlay/src/Notice.css +3 -3
- package/dist/es/Overlay/src/Notice.vue.js +40 -4
- package/dist/es/Overlay/src/Notice2.css +3 -3
- package/dist/es/Overlay/src/Tooltip.css +3 -3
- package/dist/es/Overlay/src/Tooltip.vue.js +87 -4
- package/dist/es/Overlay/src/Tooltip2.css +3 -3
- package/dist/es/RichTextEditor/index.js +9 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/es/RichTextEditor/src/ToolbarPanel.vue.js +162 -4
- package/dist/es/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/BlockquoteButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/CodeBlockButton.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/ColorHighlightPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +58 -4
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +69 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/ImageUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover.vue.js +92 -4
- package/dist/es/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/ListDropdownMenu.vue.js +76 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/MarkButton.vue.js +89 -4
- package/dist/es/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/es/RichTextEditor/src/components/TableButton.vue.js +165 -4
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +85 -4
- package/dist/es/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/es/RichTextEditor/src/components/TextColorPopover.vue.js +40 -4
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarGroup.vue.js +19 -4
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/es/RichTextEditor/src/components/ToolbarSeparator.vue.js +17 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/UndoRedoButton.vue.js +54 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/es/RichTextEditor/src/components/VideoUploadButton.vue.js +74 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/ColorPicker.vue.js +101 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +364 -4
- package/dist/es/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu.vue.js +137 -4
- package/dist/es/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/es/RichTextEditor/src/constant/index.js +53 -4
- package/dist/es/RichTextEditor/src/extensions/video.js +68 -4
- package/dist/es/RichTextEditor/src/index.css +4 -4
- package/dist/es/RichTextEditor/src/index.vue.js +158 -4
- package/dist/es/RichTextEditor/src/index2.css +4 -4
- package/dist/es/RichTextEditor/src/props.js +24 -4
- package/dist/es/ScaleScreen/index.js +9 -4
- package/dist/es/ScaleScreen/src/index.css +3 -3
- package/dist/es/ScaleScreen/src/index.vue.js +118 -4
- package/dist/es/ScaleScreen/src/index2.css +3 -3
- package/dist/es/Transition/index.js +30 -4
- package/dist/es/Transition/src/CollapseTransition.css +3 -3
- package/dist/es/Transition/src/CollapseTransition.vue.js +44 -4
- package/dist/es/Transition/src/CollapseTransition2.css +3 -3
- package/dist/es/Transition/src/CreateTransition.js +75 -6
- package/dist/es/Transition/src/ExpandTransition.js +42 -4
- package/dist/es/Transition/src/style/index.css +3 -3
- package/dist/es/Transition/style.js +4 -4
- package/dist/es/VideoBackground/index.js +9 -4
- package/dist/es/VideoBackground/src/helper.js +32 -4
- package/dist/es/VideoBackground/src/index.css +3 -3
- package/dist/es/VideoBackground/src/index.vue.js +111 -4
- package/dist/es/VideoBackground/src/index2.css +3 -3
- package/dist/es/VideoBackground/src/index3.css +3 -3
- package/dist/es/VideoBackground/src/videoBackground.js +34 -4
- package/dist/es/VideoPlayer/index.js +9 -4
- package/dist/es/VideoPlayer/src/index.css +3 -3
- package/dist/es/VideoPlayer/src/index.vue.js +63 -4
- package/dist/es/VirtualScroll/index.js +9 -4
- package/dist/es/VirtualScroll/src/index.css +3 -3
- package/dist/es/VirtualScroll/src/index.vue.js +11 -4
- package/dist/es/VirtualScroll/src/index.vue2.js +107 -4
- package/dist/es/VirtualScroll/src/index2.css +3 -3
- package/dist/es/_virtual/_commonjsHelpers.js +9 -4
- package/dist/es/_virtual/_plugin-vue_export-helper.js +12 -4
- package/dist/es/_virtual/delegate.js +10 -4
- package/dist/es/_virtual/download.js +10 -4
- package/dist/es/_virtual/download2.js +7 -4
- package/dist/es/_virtual/index.js +5 -4
- package/dist/es/_virtual/index2.js +7 -4
- package/dist/es/_virtual/index3.js +21 -0
- package/dist/es/{Grid/src/components/CellEditor.css → _virtual/index4.js} +7 -4
- package/dist/es/hooks/useLocale.js +28 -4
- package/dist/es/hooks/useNamespace.js +11 -4
- package/dist/es/index.js +79 -4
- package/dist/es/locale/lang/en-US.js +167 -4
- package/dist/es/locale/lang/ja-JP.js +167 -4
- package/dist/es/locale/lang/zh-CN.js +167 -4
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1379 -4
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +847 -4
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +41 -6
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +315 -20
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +51 -6
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +402 -15
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +500 -7
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +219 -7
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +54 -6
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1304 -4
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +660 -6
- package/dist/es/node_modules/@codemirror/search/dist/index.js +842 -5
- package/dist/es/node_modules/@codemirror/state/dist/index.js +2646 -4
- package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +135 -4
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7492 -4
- package/dist/es/node_modules/@lezer/common/dist/index.js +1433 -5
- package/dist/es/node_modules/@lezer/highlight/dist/index.js +640 -4
- package/dist/es/node_modules/@lezer/java/dist/index.js +65 -4
- package/dist/es/node_modules/@lezer/javascript/dist/index.js +164 -4
- package/dist/es/node_modules/@lezer/json/dist/index.js +37 -4
- package/dist/es/node_modules/@lezer/lr/dist/index.js +1312 -4
- package/dist/es/node_modules/@lezer/python/dist/index.js +224 -4
- package/dist/es/node_modules/@lezer/xml/dist/index.js +103 -4
- package/dist/es/node_modules/@lezer/yaml/dist/index.js +277 -4
- package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +72 -4
- package/dist/es/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +181 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/EventClient.js +16 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +409 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +792 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +58 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +112 -5
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +48 -4
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/utils.js +216 -4
- package/dist/es/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +32 -4
- package/dist/es/node_modules/@tanstack/store/dist/esm/alien.js +221 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/atom.js +136 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/batch.js +25 -0
- package/dist/es/node_modules/@tanstack/store/dist/esm/store.js +47 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useField.js +41 -4
- package/dist/es/node_modules/@tanstack/vue-form/dist/esm/useForm.js +36 -4
- package/dist/es/node_modules/@tanstack/vue-store/dist/esm/index.js +51 -4
- package/dist/es/node_modules/@tiptap/core/dist/index.js +3984 -4
- package/dist/es/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +20 -4
- package/dist/es/node_modules/@tiptap/extension-blockquote/dist/index.js +60 -5
- package/dist/es/node_modules/@tiptap/extension-bold/dist/index.js +82 -5
- package/dist/es/node_modules/@tiptap/extension-character-count/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-code/dist/index.js +57 -4
- package/dist/es/node_modules/@tiptap/extension-code-block/dist/index.js +220 -4
- package/dist/es/node_modules/@tiptap/extension-document/dist/index.js +15 -4
- package/dist/es/node_modules/@tiptap/extension-hard-break/dist/index.js +62 -4
- package/dist/es/node_modules/@tiptap/extension-heading/dist/index.js +66 -4
- package/dist/es/node_modules/@tiptap/extension-highlight/dist/index.js +88 -4
- package/dist/es/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +59 -4
- package/dist/es/node_modules/@tiptap/extension-image/dist/index.js +133 -4
- package/dist/es/node_modules/@tiptap/extension-italic/dist/index.js +80 -4
- package/dist/es/node_modules/@tiptap/extension-link/dist/index.js +316 -4
- package/dist/es/node_modules/@tiptap/extension-list/dist/index.js +731 -4
- package/dist/es/node_modules/@tiptap/extension-paragraph/dist/index.js +47 -4
- package/dist/es/node_modules/@tiptap/extension-strike/dist/index.js +69 -4
- package/dist/es/node_modules/@tiptap/extension-subscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-superscript/dist/index.js +44 -4
- package/dist/es/node_modules/@tiptap/extension-table/dist/index.js +383 -4
- package/dist/es/node_modules/@tiptap/extension-task-item/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-task-list/dist/index.js +9 -4
- package/dist/es/node_modules/@tiptap/extension-text/dist/index.js +16 -4
- package/dist/es/node_modules/@tiptap/extension-text-align/dist/index.js +50 -4
- package/dist/es/node_modules/@tiptap/extension-text-style/dist/index.js +243 -4
- package/dist/es/node_modules/@tiptap/extension-underline/dist/index.js +68 -4
- package/dist/es/node_modules/@tiptap/extensions/dist/index.js +299 -4
- package/dist/es/node_modules/@tiptap/html/dist/index.js +28 -0
- package/dist/es/node_modules/@tiptap/starter-kit/dist/index.js +32 -4
- package/dist/es/node_modules/@tiptap/vue-3/dist/index.js +260 -4
- package/dist/es/node_modules/@vueuse/core/dist/index.js +354 -4
- package/dist/es/node_modules/@vueuse/shared/dist/index.js +139 -4
- package/dist/es/node_modules/codemirror/dist/index.js +43 -4
- package/dist/es/node_modules/crelt/index.js +30 -4
- package/dist/es/node_modules/delegate/src/closest.js +24 -4
- package/dist/es/node_modules/delegate/src/delegate.js +32 -4
- package/dist/es/node_modules/downloadjs/download.js +80 -4
- package/dist/es/node_modules/eventemitter3/index.js +114 -4
- package/dist/es/node_modules/linkifyjs/dist/linkify.js +710 -4
- package/dist/es/node_modules/lodash-es/_DataView.js +9 -4
- package/dist/es/node_modules/lodash-es/_Hash.js +23 -4
- package/dist/es/node_modules/lodash-es/_ListCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Map.js +9 -4
- package/dist/es/node_modules/lodash-es/_MapCache.js +23 -4
- package/dist/es/node_modules/lodash-es/_Promise.js +9 -4
- package/dist/es/node_modules/lodash-es/_Set.js +9 -4
- package/dist/es/node_modules/lodash-es/_SetCache.js +26 -0
- package/dist/es/node_modules/lodash-es/_Stack.js +21 -4
- package/dist/es/node_modules/lodash-es/_Symbol.js +8 -4
- package/dist/es/node_modules/lodash-es/_Uint8Array.js +8 -4
- package/dist/es/node_modules/lodash-es/_WeakMap.js +9 -4
- package/dist/es/node_modules/lodash-es/_apply.js +19 -4
- package/dist/es/node_modules/lodash-es/_arrayEach.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayFilter.js +13 -4
- package/dist/es/node_modules/lodash-es/_arrayIncludes.js +21 -0
- package/dist/es/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/dist/es/node_modules/lodash-es/_arrayLikeKeys.js +23 -4
- package/dist/es/node_modules/lodash-es/_arrayMap.js +11 -4
- package/dist/es/node_modules/lodash-es/_arrayPush.js +11 -4
- package/dist/es/node_modules/lodash-es/_arraySome.js +22 -0
- package/dist/es/node_modules/lodash-es/_asciiToArray.js +9 -4
- package/dist/es/node_modules/lodash-es/_assignMergeValue.js +21 -0
- package/dist/es/node_modules/lodash-es/_assignValue.js +13 -4
- package/dist/es/node_modules/lodash-es/_assocIndexOf.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseAssignValue.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseClone.js +57 -4
- package/dist/es/node_modules/lodash-es/_baseCreate.js +30 -0
- package/dist/es/node_modules/lodash-es/_baseFindIndex.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseFlatten.js +16 -4
- package/dist/es/node_modules/lodash-es/_baseFor.js +18 -0
- package/dist/es/node_modules/lodash-es/_baseGet.js +14 -4
- package/dist/es/node_modules/lodash-es/_baseGetAllKeys.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseGetTag.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseIntersection.js +42 -0
- package/dist/es/node_modules/lodash-es/_baseIsArguments.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsEqual.js +21 -0
- package/dist/es/node_modules/lodash-es/_baseIsEqualDeep.js +45 -0
- package/dist/es/node_modules/lodash-es/_baseIsMap.js +12 -4
- package/dist/{lib/Grid/src/components/CellEditor.css → es/node_modules/lodash-es/_baseIsNaN.js} +9 -4
- package/dist/es/node_modules/lodash-es/_baseIsNative.js +19 -4
- package/dist/es/node_modules/lodash-es/_baseIsRegExp.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_baseIsTypedArray.js +15 -4
- package/dist/es/node_modules/lodash-es/_baseKeys.js +27 -0
- package/dist/es/node_modules/lodash-es/_baseKeysIn.js +18 -4
- package/dist/es/node_modules/lodash-es/_baseMerge.js +33 -0
- package/dist/es/node_modules/lodash-es/_baseMergeDeep.js +44 -0
- package/dist/es/node_modules/lodash-es/_baseRest.js +22 -0
- package/dist/es/node_modules/lodash-es/_baseSetToString.js +17 -4
- package/dist/es/node_modules/lodash-es/_baseSlice.js +13 -4
- package/dist/es/node_modules/lodash-es/_baseTimes.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseToString.js +21 -4
- package/dist/es/node_modules/lodash-es/_baseUnary.js +11 -4
- package/dist/es/node_modules/lodash-es/_baseUniq.js +46 -0
- package/dist/es/node_modules/lodash-es/_baseUnset.js +31 -4
- package/dist/es/node_modules/{@tanstack/store/dist/esm/types.js → lodash-es/_cacheHas.js} +9 -4
- package/dist/es/node_modules/lodash-es/_castArrayLikeObject.js +20 -0
- package/dist/es/node_modules/lodash-es/_castPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_castSlice.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneArrayBuffer.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneBuffer.js +14 -4
- package/dist/es/node_modules/lodash-es/_cloneDataView.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneRegExp.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneSymbol.js +11 -4
- package/dist/es/node_modules/lodash-es/_cloneTypedArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_copyArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_copyObject.js +17 -4
- package/dist/es/node_modules/lodash-es/_coreJsData.js +8 -4
- package/dist/es/node_modules/lodash-es/_createAssigner.js +28 -0
- package/dist/es/node_modules/lodash-es/_createBaseFor.js +26 -0
- package/dist/es/node_modules/lodash-es/_createCaseFirst.js +17 -4
- package/dist/es/node_modules/lodash-es/_createSet.js +22 -0
- package/dist/es/node_modules/lodash-es/_customOmitClone.js +10 -4
- package/dist/es/node_modules/lodash-es/_defineProperty.js +14 -4
- package/dist/es/node_modules/lodash-es/_equalArrays.js +53 -0
- package/dist/es/node_modules/lodash-es/_equalByTag.js +58 -0
- package/dist/es/node_modules/lodash-es/_equalObjects.js +49 -0
- package/dist/es/node_modules/lodash-es/_flatRest.js +12 -4
- package/dist/es/node_modules/lodash-es/_freeGlobal.js +7 -4
- package/dist/es/node_modules/lodash-es/_getAllKeys.js +22 -0
- package/dist/es/node_modules/lodash-es/_getAllKeysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/_getMapData.js +11 -4
- package/dist/es/node_modules/lodash-es/_getNative.js +12 -4
- package/dist/es/node_modules/lodash-es/_getPrototype.js +8 -4
- package/dist/es/node_modules/lodash-es/_getRawTag.js +18 -4
- package/dist/es/node_modules/lodash-es/_getSymbols.js +13 -4
- package/dist/es/node_modules/lodash-es/_getSymbolsIn.js +15 -4
- package/dist/es/node_modules/lodash-es/_getTag.js +31 -4
- package/dist/es/node_modules/lodash-es/_getValue.js +9 -4
- package/dist/es/node_modules/lodash-es/_hasUnicode.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_hashGet.js +16 -4
- package/dist/es/node_modules/lodash-es/_hashHas.js +12 -4
- package/dist/es/node_modules/lodash-es/_hashSet.js +12 -4
- package/dist/es/node_modules/lodash-es/_initCloneArray.js +11 -4
- package/dist/es/node_modules/lodash-es/_initCloneByTag.js +45 -4
- package/dist/es/node_modules/lodash-es/_initCloneObject.js +22 -0
- package/dist/es/node_modules/lodash-es/_isFlattenable.js +13 -4
- package/dist/es/node_modules/lodash-es/_isIndex.js +11 -4
- package/dist/es/node_modules/lodash-es/_isIterateeCall.js +26 -0
- package/dist/es/node_modules/lodash-es/_isKey.js +15 -4
- package/dist/es/node_modules/lodash-es/_isKeyable.js +10 -4
- package/dist/es/node_modules/lodash-es/_isMasked.js +14 -4
- package/dist/es/node_modules/lodash-es/_isPrototype.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheClear.js +9 -4
- package/dist/es/node_modules/lodash-es/_listCacheDelete.js +15 -4
- package/dist/es/node_modules/lodash-es/_listCacheGet.js +11 -4
- package/dist/es/node_modules/lodash-es/_listCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_listCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheClear.js +16 -4
- package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapCacheGet.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheHas.js +10 -4
- package/dist/es/node_modules/lodash-es/_mapCacheSet.js +11 -4
- package/dist/es/node_modules/lodash-es/_mapToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_memoizeCapped.js +14 -4
- package/dist/es/node_modules/lodash-es/_nativeCreate.js +8 -4
- package/dist/es/node_modules/lodash-es/_nativeKeys.js +18 -0
- package/dist/es/node_modules/lodash-es/_nativeKeysIn.js +13 -4
- package/dist/es/node_modules/lodash-es/_nodeUtil.js +14 -4
- package/dist/es/node_modules/lodash-es/_objectToString.js +10 -4
- package/dist/es/node_modules/lodash-es/_overArg.js +11 -4
- package/dist/es/node_modules/lodash-es/_overRest.js +18 -4
- package/dist/es/node_modules/lodash-es/_parent.js +11 -4
- package/dist/es/node_modules/lodash-es/_root.js +8 -4
- package/dist/es/node_modules/lodash-es/_safeGet.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheAdd.js +20 -0
- package/dist/es/node_modules/lodash-es/_setCacheHas.js +19 -0
- package/dist/es/node_modules/lodash-es/_setToArray.js +22 -0
- package/dist/es/node_modules/lodash-es/_setToString.js +9 -4
- package/dist/es/node_modules/lodash-es/_shortOut.js +19 -4
- package/dist/es/node_modules/lodash-es/_stackClear.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackDelete.js +10 -4
- package/dist/es/node_modules/lodash-es/_stackGet.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackHas.js +9 -4
- package/dist/es/node_modules/lodash-es/_stackSet.js +20 -4
- package/dist/es/node_modules/lodash-es/_strictIndexOf.js +22 -0
- package/dist/es/node_modules/lodash-es/_stringToArray.js +12 -4
- package/dist/es/node_modules/lodash-es/_stringToPath.js +13 -4
- package/dist/es/node_modules/lodash-es/_toKey.js +13 -4
- package/dist/es/node_modules/lodash-es/_toSource.js +20 -4
- package/dist/es/node_modules/lodash-es/_unicodeToArray.js +10 -4
- package/dist/es/node_modules/lodash-es/constant.js +11 -4
- package/dist/es/node_modules/lodash-es/eq.js +9 -4
- package/dist/es/node_modules/lodash-es/flatten.js +11 -4
- package/dist/es/node_modules/lodash-es/get.js +11 -4
- package/dist/es/node_modules/lodash-es/identity.js +9 -4
- package/dist/es/node_modules/lodash-es/intersectionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/isArguments.js +13 -4
- package/dist/es/node_modules/lodash-es/isArray.js +7 -4
- package/dist/es/node_modules/lodash-es/isArrayLike.js +11 -4
- package/dist/es/node_modules/lodash-es/isArrayLikeObject.js +21 -0
- package/dist/es/node_modules/lodash-es/isBuffer.js +9 -4
- package/dist/es/node_modules/lodash-es/isEqual.js +20 -0
- package/dist/es/node_modules/lodash-es/isFinite.js +11 -4
- package/dist/es/node_modules/lodash-es/isFunction.js +15 -4
- package/dist/es/node_modules/lodash-es/isLength.js +10 -4
- package/dist/es/node_modules/lodash-es/isMap.js +10 -4
- package/dist/es/node_modules/lodash-es/isNaN.js +10 -4
- package/dist/es/node_modules/lodash-es/isNil.js +9 -4
- package/dist/es/node_modules/lodash-es/isNumber.js +12 -4
- package/dist/es/node_modules/lodash-es/isObject.js +10 -4
- package/dist/es/node_modules/lodash-es/isObjectLike.js +9 -4
- package/dist/es/node_modules/lodash-es/isPlainObject.js +19 -4
- package/dist/es/node_modules/lodash-es/isRegExp.js +10 -4
- package/dist/es/node_modules/lodash-es/isSet.js +10 -4
- package/dist/es/node_modules/lodash-es/isString.js +13 -4
- package/dist/es/node_modules/lodash-es/isSymbol.js +12 -4
- package/dist/es/node_modules/lodash-es/isTypedArray.js +10 -4
- package/dist/es/node_modules/lodash-es/keys.js +22 -0
- package/dist/es/node_modules/lodash-es/keysIn.js +12 -4
- package/dist/es/node_modules/lodash-es/last.js +10 -4
- package/dist/es/node_modules/lodash-es/memoize.js +21 -4
- package/dist/es/node_modules/lodash-es/mergeWith.js +21 -0
- package/dist/es/node_modules/lodash-es/noop.js +18 -0
- package/dist/es/node_modules/lodash-es/omit.js +26 -4
- package/dist/es/node_modules/lodash-es/stubArray.js +9 -4
- package/dist/es/node_modules/lodash-es/stubFalse.js +9 -4
- package/dist/es/node_modules/lodash-es/toPlainObject.js +21 -0
- package/dist/es/node_modules/lodash-es/toString.js +10 -4
- package/dist/es/node_modules/lodash-es/unionWith.js +25 -0
- package/dist/es/node_modules/lodash-es/upperFirst.js +8 -4
- package/dist/es/node_modules/orderedmap/dist/index.js +106 -4
- package/dist/es/node_modules/path-to-regexp/dist/index.js +275 -0
- package/dist/es/node_modules/prosemirror-commands/dist/index.js +391 -4
- package/dist/es/node_modules/prosemirror-dropcursor/dist/index.js +89 -4
- package/dist/es/node_modules/prosemirror-gapcursor/dist/index.js +207 -4
- package/dist/es/node_modules/prosemirror-history/dist/index.js +251 -4
- package/dist/es/node_modules/prosemirror-keymap/dist/index.js +65 -4
- package/dist/es/node_modules/prosemirror-model/dist/index.js +2736 -4
- package/dist/es/node_modules/prosemirror-schema-list/dist/index.js +91 -4
- package/dist/es/node_modules/prosemirror-state/dist/index.js +825 -4
- package/dist/es/node_modules/prosemirror-tables/dist/index.js +1449 -4
- package/dist/es/node_modules/prosemirror-transform/dist/index.js +1539 -4
- package/dist/es/node_modules/prosemirror-view/dist/index.js +3797 -4
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +300 -0
- package/dist/es/node_modules/rope-sequence/dist/index.js +103 -4
- package/dist/es/node_modules/sortablejs/modular/sortable.esm.js +1283 -0
- package/dist/es/node_modules/style-mod/src/style-mod.js +112 -4
- package/dist/es/{Grid → node_modules/title-case/dist}/index.js +10 -4
- package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +135 -4
- package/dist/es/node_modules/w3c-keyname/index.js +96 -4
- package/dist/es/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/es/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +200 -4
- package/dist/es/node_modules/xgplayer/es/constant.js +10 -4
- package/dist/es/node_modules/xgplayer/es/defaultConfig.js +90 -4
- package/dist/es/node_modules/xgplayer/es/error.js +67 -4
- package/dist/es/node_modules/xgplayer/es/events.js +70 -4
- package/dist/es/node_modules/xgplayer/es/index.umd.js +48 -4
- package/dist/es/node_modules/xgplayer/es/instManager.js +104 -4
- package/dist/es/node_modules/xgplayer/es/lang/en.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/i18n.js +78 -4
- package/dist/es/node_modules/xgplayer/es/lang/jp.js +82 -4
- package/dist/es/node_modules/xgplayer/es/lang/zh-cn.js +82 -4
- package/dist/es/node_modules/xgplayer/es/mediaProxy.js +469 -4
- package/dist/es/node_modules/xgplayer/es/player.js +1243 -4
- package/dist/es/node_modules/xgplayer/es/plugin/basePlugin.js +210 -4
- package/dist/es/node_modules/xgplayer/es/plugin/hooksDescriptor.js +133 -4
- package/dist/es/node_modules/xgplayer/es/plugin/plugin.js +369 -4
- package/dist/es/node_modules/xgplayer/es/plugin/pluginsManager.js +207 -4
- package/dist/es/node_modules/xgplayer/es/plugin/preset.js +17 -4
- package/dist/es/node_modules/xgplayer/es/plugin/resizeObserver.js +84 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/back.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/download.js +23 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/exitFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/loading.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pause.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIcon.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +16 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/play.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/playNext.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/replay.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/requestFull.js +12 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/rotate.js +20 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/seekicon.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +13 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconPlugin.js +38 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/iconTools.js +15 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionList.js +82 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/optionsIcon.js +196 -4
- package/dist/es/node_modules/xgplayer/es/plugins/common/thumbnail.js +144 -4
- package/dist/es/node_modules/xgplayer/es/plugins/controls/index.js +174 -4
- package/dist/es/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +108 -4
- package/dist/es/node_modules/xgplayer/es/plugins/definition/index.js +113 -4
- package/dist/es/node_modules/xgplayer/es/plugins/download/index.js +86 -4
- package/dist/es/node_modules/xgplayer/es/plugins/dynamicBg/index.js +235 -5
- package/dist/es/node_modules/xgplayer/es/plugins/enter/index.js +45 -4
- package/dist/es/node_modules/xgplayer/es/plugins/error/index.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fpsDetect/index.js +119 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +71 -4
- package/dist/es/node_modules/xgplayer/es/plugins/fullscreen/index.js +153 -4
- package/dist/es/node_modules/xgplayer/es/plugins/gapJump/index.js +99 -4
- package/dist/es/node_modules/xgplayer/es/plugins/keyboard/index.js +302 -4
- package/dist/es/node_modules/xgplayer/es/plugins/loading/index.js +49 -4
- package/dist/es/node_modules/xgplayer/es/plugins/logger/index.js +174 -5
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/index.js +172 -4
- package/dist/es/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +58 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/index.js +446 -4
- package/dist/es/node_modules/xgplayer/es/plugins/mobile/touch.js +141 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pc/index.js +125 -4
- package/dist/es/node_modules/xgplayer/es/plugins/pip/index.js +219 -4
- package/dist/es/node_modules/xgplayer/es/plugins/play/index.js +105 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playNext/index.js +81 -4
- package/dist/es/node_modules/xgplayer/es/plugins/playbackRate/index.js +103 -4
- package/dist/es/node_modules/xgplayer/es/plugins/poster/index.js +122 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/index.js +434 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/innerList.js +218 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progress/miniProgress.js +96 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +178 -4
- package/dist/es/node_modules/xgplayer/es/plugins/progressPreview/index.js +295 -4
- package/dist/es/node_modules/xgplayer/es/plugins/prompt/index.js +89 -4
- package/dist/es/node_modules/xgplayer/es/plugins/replay/index.js +95 -4
- package/dist/es/node_modules/xgplayer/es/plugins/rotate/index.js +109 -4
- package/dist/es/node_modules/xgplayer/es/plugins/screenShot/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/start/index.js +225 -4
- package/dist/es/node_modules/xgplayer/es/plugins/stats/index.js +155 -4
- package/dist/es/node_modules/xgplayer/es/plugins/testspeed/index.js +137 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/index.js +167 -4
- package/dist/es/node_modules/xgplayer/es/plugins/time/timesegments.js +149 -4
- package/dist/es/node_modules/xgplayer/es/plugins/volume/index.js +209 -4
- package/dist/es/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +56 -4
- package/dist/es/node_modules/xgplayer/es/presets/default.js +64 -4
- package/dist/es/node_modules/xgplayer/es/state.js +16 -4
- package/dist/es/node_modules/xgplayer/es/stateClassMap.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/database.js +86 -4
- package/dist/es/node_modules/xgplayer/es/utils/debug.js +37 -4
- package/dist/es/node_modules/xgplayer/es/utils/draggabilly.js +274 -4
- package/dist/es/node_modules/xgplayer/es/utils/sniffer.js +114 -4
- package/dist/es/node_modules/xgplayer/es/utils/util.js +520 -4
- package/dist/es/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +28 -4
- package/dist/es/node_modules/xgplayer/es/version.js +7 -4
- package/dist/es/packages/components/index.js +88 -4
- package/dist/es/packages/hooks/dist/index.js +81 -0
- package/dist/es/packages/utils/dist/index.js +599 -0
- package/dist/es/styles/tokens.css +3 -3
- package/dist/lib/Button/index.js +4 -4
- package/dist/lib/Button/src/Button.css +3 -3
- package/dist/lib/Button/src/Button.vue.js +4 -4
- package/dist/lib/Button/src/Button2.css +3 -3
- package/dist/lib/CodeEditor/index.js +4 -4
- package/dist/lib/CodeEditor/src/index.css +4 -4
- package/dist/lib/CodeEditor/src/index.vue.js +4 -4
- package/dist/lib/CodeEditor/src/index2.css +3 -3
- package/dist/lib/CodeEditor/src/index3.css +4 -4
- package/dist/lib/ConfigProvider/index.js +4 -4
- package/dist/lib/ConfigProvider/src/configProvider.js +4 -4
- package/dist/lib/ConfigProvider/src/configProviderProps.js +4 -4
- package/dist/lib/ConfigProvider/src/constants.js +4 -4
- package/dist/lib/ConfigProvider/src/useGlobalConfig.js +4 -4
- package/dist/lib/CountTo/index.js +4 -4
- package/dist/lib/CountTo/src/index.css +3 -3
- package/dist/lib/CountTo/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/index.js +4 -4
- package/dist/lib/Ellipsis/src/components/JsEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/JsEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.css +3 -3
- package/dist/lib/Ellipsis/src/components/NativeEllipsis.vue.js +4 -4
- package/dist/lib/Ellipsis/src/components/NativeEllipsis2.css +3 -3
- package/dist/lib/Ellipsis/src/index.css +3 -3
- package/dist/lib/Ellipsis/src/index.vue.js +4 -4
- package/dist/lib/Ellipsis/src/utils/utils.js +4 -4
- package/dist/lib/Form/index.js +4 -4
- package/dist/lib/Form/src/Form.css +3 -3
- package/dist/lib/Form/src/Form.vue.js +4 -4
- package/dist/lib/Form/src/Form2.css +3 -3
- package/dist/lib/Form/src/styles/form.css +3 -3
- package/dist/lib/Marquee/index.js +4 -4
- package/dist/lib/Marquee/src/index.css +3 -3
- package/dist/lib/Marquee/src/index.vue.js +4 -4
- package/dist/lib/Marquee/src/index2.css +3 -3
- package/dist/lib/Overlay/index.js +4 -4
- package/dist/lib/Overlay/src/Message.css +3 -3
- package/dist/lib/Overlay/src/Message.vue.js +4 -4
- package/dist/lib/Overlay/src/Message2.css +3 -3
- package/dist/lib/Overlay/src/Modal.css +3 -3
- package/dist/lib/Overlay/src/Modal.vue.js +4 -4
- package/dist/lib/Overlay/src/Modal2.css +3 -3
- package/dist/lib/Overlay/src/Notice.css +3 -3
- package/dist/lib/Overlay/src/Notice.vue.js +4 -4
- package/dist/lib/Overlay/src/Notice2.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.css +3 -3
- package/dist/lib/Overlay/src/Tooltip.vue.js +4 -4
- package/dist/lib/Overlay/src/Tooltip2.css +3 -3
- package/dist/lib/RichTextEditor/index.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel.css +3 -3
- package/dist/lib/RichTextEditor/src/ToolbarPanel.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/ToolbarPanel2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/BlockquoteButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/CodeBlockButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ColorHighlightPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/FontSizeDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/HeadingDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ImageUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.css +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/LinkPopover2.css +4 -4
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ListDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/MarkButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TableButton.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TableButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextAlignDropdownMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.css +3 -3
- package/dist/lib/RichTextEditor/src/components/TextColorPopover.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarGroup.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.css +3 -3
- package/dist/lib/RichTextEditor/src/components/ToolbarSeparator.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/UndoRedoButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.css +4 -4
- package/dist/lib/RichTextEditor/src/components/VideoUploadButton.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/ColorPicker.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/MediaUploadModal2.css +3 -3
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.css +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/components/basic/SelectMenu2.css +4 -4
- package/dist/lib/RichTextEditor/src/constant/index.js +4 -4
- package/dist/lib/RichTextEditor/src/extensions/video.js +4 -4
- package/dist/lib/RichTextEditor/src/index.css +4 -4
- package/dist/lib/RichTextEditor/src/index.vue.js +4 -4
- package/dist/lib/RichTextEditor/src/index2.css +4 -4
- package/dist/lib/RichTextEditor/src/props.js +4 -4
- package/dist/lib/ScaleScreen/index.js +4 -4
- package/dist/lib/ScaleScreen/src/index.css +3 -3
- package/dist/lib/ScaleScreen/src/index.vue.js +4 -4
- package/dist/lib/ScaleScreen/src/index2.css +3 -3
- package/dist/lib/Transition/index.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition.css +3 -3
- package/dist/lib/Transition/src/CollapseTransition.vue.js +4 -4
- package/dist/lib/Transition/src/CollapseTransition2.css +3 -3
- package/dist/lib/Transition/src/CreateTransition.js +4 -4
- package/dist/lib/Transition/src/ExpandTransition.js +4 -4
- package/dist/lib/Transition/src/style/index.css +3 -3
- package/dist/lib/Transition/style.js +4 -4
- package/dist/lib/VideoBackground/index.js +4 -4
- package/dist/lib/VideoBackground/src/helper.js +4 -4
- package/dist/lib/VideoBackground/src/index.css +3 -3
- package/dist/lib/VideoBackground/src/index.vue.js +4 -4
- package/dist/lib/VideoBackground/src/index2.css +3 -3
- package/dist/lib/VideoBackground/src/index3.css +3 -3
- package/dist/lib/VideoBackground/src/videoBackground.js +4 -4
- package/dist/lib/VideoPlayer/index.js +4 -4
- package/dist/lib/VideoPlayer/src/index.css +3 -3
- package/dist/lib/VideoPlayer/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/index.js +4 -4
- package/dist/lib/VirtualScroll/src/index.css +3 -3
- package/dist/lib/VirtualScroll/src/index.vue.js +4 -4
- package/dist/lib/VirtualScroll/src/index.vue2.js +4 -4
- package/dist/lib/VirtualScroll/src/index2.css +3 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +4 -4
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +4 -4
- package/dist/lib/_virtual/delegate.js +4 -4
- package/dist/lib/_virtual/download.js +4 -4
- package/dist/lib/_virtual/download2.js +4 -4
- package/dist/lib/_virtual/index.js +4 -4
- package/dist/lib/_virtual/index2.js +4 -4
- package/dist/lib/_virtual/index3.js +14 -0
- package/dist/lib/{node_modules/@tanstack/store/dist/esm/types.js → _virtual/index4.js} +4 -4
- package/dist/lib/hooks/useLocale.js +4 -4
- package/dist/lib/hooks/useNamespace.js +4 -4
- package/dist/lib/index.js +4 -4
- package/dist/lib/locale/lang/en-US.js +4 -4
- package/dist/lib/locale/lang/ja-JP.js +4 -4
- package/dist/lib/locale/lang/zh-CN.js +4 -4
- package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/commands/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +16 -4
- package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +6 -4
- package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/language/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/lint/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/search/dist/index.js +5 -4
- package/dist/lib/node_modules/@codemirror/state/dist/index.js +8 -4
- package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +4 -4
- package/dist/lib/node_modules/@codemirror/view/dist/index.js +8 -4
- package/dist/lib/node_modules/@lezer/common/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/java/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/javascript/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/json/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/python/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/xml/dist/index.js +4 -4
- package/dist/lib/node_modules/@lezer/yaml/dist/index.js +4 -4
- package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +4 -4
- package/dist/lib/node_modules/@tanstack/devtools-event-client/dist/esm/plugin.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/EventClient.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FieldApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/ValidationLogic.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/metaHelper.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/standardSchemaValidator.js +4 -4
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/utils.js +4 -4
- package/dist/lib/node_modules/@tanstack/pacer-lite/dist/lite-throttler.js +4 -4
- package/dist/lib/node_modules/@tanstack/store/dist/esm/alien.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/atom.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/batch.js +14 -0
- package/dist/lib/node_modules/@tanstack/store/dist/esm/store.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useField.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-form/dist/esm/useForm.js +4 -4
- package/dist/lib/node_modules/@tanstack/vue-store/dist/esm/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/core/dist/index.js +94 -4
- package/dist/lib/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-blockquote/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-bold/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-character-count/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-code-block/dist/index.js +21 -4
- package/dist/lib/node_modules/@tiptap/extension-document/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-hard-break/dist/index.js +6 -4
- package/dist/lib/node_modules/@tiptap/extension-heading/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-highlight/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-image/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-italic/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-link/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-list/dist/index.js +15 -4
- package/dist/lib/node_modules/@tiptap/extension-paragraph/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-strike/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-subscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-superscript/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-table/dist/index.js +8 -4
- package/dist/lib/node_modules/@tiptap/extension-task-item/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-task-list/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-align/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-text-style/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extension-underline/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/extensions/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/html/dist/index.js +14 -0
- package/dist/lib/node_modules/@tiptap/starter-kit/dist/index.js +4 -4
- package/dist/lib/node_modules/@tiptap/vue-3/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/core/dist/index.js +4 -4
- package/dist/lib/node_modules/@vueuse/shared/dist/index.js +4 -4
- package/dist/lib/node_modules/codemirror/dist/index.js +4 -4
- package/dist/lib/node_modules/crelt/index.js +4 -4
- package/dist/lib/node_modules/delegate/src/closest.js +4 -4
- package/dist/lib/node_modules/delegate/src/delegate.js +4 -4
- package/dist/lib/node_modules/downloadjs/download.js +6 -4
- package/dist/lib/node_modules/eventemitter3/index.js +4 -4
- package/dist/lib/node_modules/linkifyjs/dist/linkify.js +8 -4
- package/dist/lib/node_modules/lodash-es/_DataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Hash.js +4 -4
- package/dist/lib/node_modules/lodash-es/_ListCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Map.js +4 -4
- package/dist/lib/node_modules/lodash-es/_MapCache.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Promise.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Set.js +4 -4
- package/dist/lib/node_modules/lodash-es/_SetCache.js +14 -0
- package/dist/lib/node_modules/lodash-es/_Stack.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Symbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_Uint8Array.js +4 -4
- package/dist/lib/node_modules/lodash-es/_WeakMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_apply.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayEach.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayFilter.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayIncludes.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayIncludesWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/_arrayLikeKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arrayPush.js +4 -4
- package/dist/lib/node_modules/lodash-es/_arraySome.js +14 -0
- package/dist/lib/node_modules/lodash-es/_asciiToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assignMergeValue.js +14 -0
- package/dist/lib/node_modules/lodash-es/_assignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseAssignValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFindIndex.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseFlatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetAllKeys.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseGetTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIntersection.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsEqualDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsNaN.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseIsNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseIsTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseMerge.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseMergeDeep.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseRest.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseSetToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseTimes.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUnary.js +4 -4
- package/dist/lib/node_modules/lodash-es/_baseUniq.js +14 -0
- package/dist/lib/node_modules/lodash-es/_baseUnset.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_castPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_castSlice.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneArrayBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneDataView.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/_cloneTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_copyArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_copyObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/_coreJsData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createAssigner.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createBaseFor.js +14 -0
- package/dist/lib/node_modules/lodash-es/_createCaseFirst.js +4 -4
- package/dist/lib/node_modules/lodash-es/_createSet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_customOmitClone.js +4 -4
- package/dist/lib/node_modules/lodash-es/_defineProperty.js +4 -4
- package/dist/lib/node_modules/lodash-es/_equalArrays.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalByTag.js +14 -0
- package/dist/lib/node_modules/lodash-es/_equalObjects.js +14 -0
- package/dist/lib/node_modules/lodash-es/_flatRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getAllKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getMapData.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getNative.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getRawTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbols.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getSymbolsIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_getValue.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hasUnicode.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_hashSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneByTag.js +4 -4
- package/dist/lib/node_modules/lodash-es/_initCloneObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isFlattenable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIndex.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isIterateeCall.js +14 -0
- package/dist/lib/node_modules/lodash-es/_isKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isKeyable.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isMasked.js +4 -4
- package/dist/lib/node_modules/lodash-es/_isPrototype.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_listCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_mapToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nativeKeys.js +14 -0
- package/dist/lib/node_modules/lodash-es/_nativeKeysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/_nodeUtil.js +4 -4
- package/dist/lib/node_modules/lodash-es/_objectToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overArg.js +4 -4
- package/dist/lib/node_modules/lodash-es/_overRest.js +4 -4
- package/dist/lib/node_modules/lodash-es/_parent.js +4 -4
- package/dist/lib/node_modules/lodash-es/_root.js +4 -4
- package/dist/lib/node_modules/lodash-es/_safeGet.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheAdd.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToArray.js +14 -0
- package/dist/lib/node_modules/lodash-es/_setToString.js +4 -4
- package/dist/lib/node_modules/lodash-es/_shortOut.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackClear.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackDelete.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackGet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackHas.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stackSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/_strictIndexOf.js +14 -0
- package/dist/lib/node_modules/lodash-es/_stringToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/_stringToPath.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toKey.js +4 -4
- package/dist/lib/node_modules/lodash-es/_toSource.js +4 -4
- package/dist/lib/node_modules/lodash-es/_unicodeToArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/constant.js +4 -4
- package/dist/lib/node_modules/lodash-es/eq.js +4 -4
- package/dist/lib/node_modules/lodash-es/flatten.js +4 -4
- package/dist/lib/node_modules/lodash-es/get.js +4 -4
- package/dist/lib/node_modules/lodash-es/identity.js +4 -4
- package/dist/lib/node_modules/lodash-es/intersectionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/isArguments.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isArrayLikeObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/isBuffer.js +4 -4
- package/dist/lib/node_modules/lodash-es/isEqual.js +14 -0
- package/dist/lib/node_modules/lodash-es/isFinite.js +4 -4
- package/dist/lib/node_modules/lodash-es/isFunction.js +4 -4
- package/dist/lib/node_modules/lodash-es/isLength.js +4 -4
- package/dist/lib/node_modules/lodash-es/isMap.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNaN.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNil.js +4 -4
- package/dist/lib/node_modules/lodash-es/isNumber.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isObjectLike.js +4 -4
- package/dist/lib/node_modules/lodash-es/isPlainObject.js +4 -4
- package/dist/lib/node_modules/lodash-es/isRegExp.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSet.js +4 -4
- package/dist/lib/node_modules/lodash-es/isString.js +4 -4
- package/dist/lib/node_modules/lodash-es/isSymbol.js +4 -4
- package/dist/lib/node_modules/lodash-es/isTypedArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/keys.js +14 -0
- package/dist/lib/node_modules/lodash-es/keysIn.js +4 -4
- package/dist/lib/node_modules/lodash-es/last.js +4 -4
- package/dist/lib/node_modules/lodash-es/memoize.js +4 -4
- package/dist/lib/node_modules/lodash-es/mergeWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/noop.js +14 -0
- package/dist/lib/node_modules/lodash-es/omit.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubArray.js +4 -4
- package/dist/lib/node_modules/lodash-es/stubFalse.js +4 -4
- package/dist/lib/node_modules/lodash-es/toPlainObject.js +14 -0
- package/dist/lib/node_modules/lodash-es/toString.js +4 -4
- package/dist/lib/node_modules/lodash-es/unionWith.js +14 -0
- package/dist/lib/node_modules/lodash-es/upperFirst.js +4 -4
- package/dist/lib/node_modules/orderedmap/dist/index.js +4 -4
- package/dist/lib/node_modules/path-to-regexp/dist/index.js +14 -0
- package/dist/lib/node_modules/prosemirror-commands/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-dropcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-gapcursor/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-history/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-keymap/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-model/dist/index.js +7 -4
- package/dist/lib/node_modules/prosemirror-schema-list/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-state/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-tables/dist/index.js +4 -4
- package/dist/lib/node_modules/prosemirror-transform/dist/index.js +5 -4
- package/dist/lib/node_modules/prosemirror-view/dist/index.js +8 -4
- package/dist/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +14 -0
- package/dist/lib/node_modules/rope-sequence/dist/index.js +4 -4
- package/dist/lib/node_modules/sortablejs/modular/sortable.esm.js +14 -0
- package/dist/lib/node_modules/style-mod/src/style-mod.js +6 -4
- package/dist/lib/{Grid → node_modules/title-case/dist}/index.js +4 -4
- package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +4 -4
- package/dist/lib/node_modules/w3c-keyname/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/dist/index.min.css +3 -3
- package/dist/lib/node_modules/xgplayer/es/_virtual/_rollupPluginBabelHelpers.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/constant.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/defaultConfig.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/error.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/events.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/index.umd.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/instManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/en.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/i18n.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/jp.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/lang/zh-cn.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/mediaProxy.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/player.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/basePlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/hooksDescriptor.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/plugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/pluginsManager.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/preset.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugin/resizeObserver.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/back.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/download.js +18 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/exitFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/loading.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pause.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIcon.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/pipIconExit.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/play.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/playNext.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/replay.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestCssFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/requestFull.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/rotate.js +15 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/seekicon.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeLarge.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeMuted.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/assets/volumeSmall.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconPlugin.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/iconTools.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/optionsIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/common/thumbnail.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/controls/index.js +12 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/cssFullScreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/definition/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/download/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/dynamicBg/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/enter/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/error/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fpsDetect/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/backicon.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/fullscreen/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/gapJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/keyboard/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/loading/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/logger/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/index.js +16 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/miniScreen/miniScreenIcon.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/index.js +22 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/mobile/touch.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pc/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/pip/index.js +11 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/play/index.js +8 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playNext/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/playbackRate/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/poster/index.js +5 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/index.js +10 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/innerList.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progress/miniProgress.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/dotsApi.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/progressPreview/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/prompt/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/replay/index.js +6 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/rotate/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/screenShot/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/start/index.js +7 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/stats/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/testspeed/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/index.js +9 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/time/timesegments.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/volume/index.js +14 -4
- package/dist/lib/node_modules/xgplayer/es/plugins/waitingTimeoutJump/index.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/presets/default.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/state.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/stateClassMap.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/database.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/debug.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/draggabilly.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/sniffer.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/util.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/utils/xgplayerTimeRange.js +4 -4
- package/dist/lib/node_modules/xgplayer/es/version.js +4 -4
- package/dist/lib/packages/components/index.js +4 -4
- package/dist/lib/packages/hooks/dist/index.js +14 -0
- package/dist/lib/packages/utils/dist/index.js +14 -0
- package/dist/lib/styles/tokens.css +3 -3
- package/index.d.ts +227 -113
- package/package.json +26 -28
- package/dist/es/Grid/src/Grid.css +0 -14
- package/dist/es/Grid/src/Grid.vue.js +0 -14
- package/dist/es/Grid/src/components/ActionBar.css +0 -14
- package/dist/es/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/es/Grid/src/components/CellEditor2.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/es/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/es/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/es/Grid/src/components/DataTable.css +0 -14
- package/dist/es/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/es/Grid/src/components/Pager.css +0 -14
- package/dist/es/Grid/src/components/Pager.vue.js +0 -14
- package/dist/es/Grid/src/components/QueryBar.css +0 -14
- package/dist/es/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/es/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/es/Grid/src/composables/useGridTable.js +0 -14
- package/dist/es/Grid/src/styles/table.css +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/es/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/es/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
- package/dist/lib/Grid/src/Grid.css +0 -14
- package/dist/lib/Grid/src/Grid.vue.js +0 -14
- package/dist/lib/Grid/src/components/ActionBar.css +0 -14
- package/dist/lib/Grid/src/components/ActionBar.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor.vue.js +0 -14
- package/dist/lib/Grid/src/components/CellEditor2.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.css +0 -14
- package/dist/lib/Grid/src/components/ColumnFilter.vue.js +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.css +0 -14
- package/dist/lib/Grid/src/components/ColumnSettings.vue.js +0 -14
- package/dist/lib/Grid/src/components/DataTable.css +0 -14
- package/dist/lib/Grid/src/components/DataTable.vue.js +0 -14
- package/dist/lib/Grid/src/components/Pager.css +0 -14
- package/dist/lib/Grid/src/components/Pager.vue.js +0 -14
- package/dist/lib/Grid/src/components/QueryBar.css +0 -14
- package/dist/lib/Grid/src/components/QueryBar.vue.js +0 -14
- package/dist/lib/Grid/src/composables/useCellEditor.js +0 -14
- package/dist/lib/Grid/src/composables/useGridTable.js +0 -14
- package/dist/lib/Grid/src/styles/table.css +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/derived.js +0 -14
- package/dist/lib/node_modules/@tanstack/store/dist/esm/scheduler.js +0 -14
- package/dist/lib/node_modules/@tanstack/table-core/build/lib/index.js +0 -14
- package/dist/lib/node_modules/@tanstack/vue-table/build/lib/index.js +0 -14
|
@@ -7,8 +7,1543 @@ You shall not disclose such Confidential Information and shall use it only in
|
|
|
7
7
|
accordance with the terms of the license agreement.
|
|
8
8
|
|
|
9
9
|
--- Build Info ---
|
|
10
|
-
Version: 1.1.
|
|
11
|
-
Build Time: 2026/3/
|
|
12
|
-
Build Commit:
|
|
10
|
+
Version: 1.1.7
|
|
11
|
+
Build Time: 2026/3/13 18:25:06
|
|
12
|
+
Build Commit: 0b162dea954baa715e67b70f80401a571205058a
|
|
13
13
|
*/
|
|
14
|
-
import{Slice as t,Fragment as e,Mark as r,ReplaceError as n,MarkType as i}from"../../prosemirror-model/dist/index.js";const s=Math.pow(2,16);function o(t,e){return t+e*s}function l(t){return 65535&t}class a{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class p{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&p.empty)return p.empty}recover(t){let e=0,r=l(t);if(!this.inverted)for(let n=0;n<r;n++)e+=this.ranges[3*n+2]-this.ranges[3*n+1];return this.ranges[3*r]+e+function(t){return(t-(65535&t))/s}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let p=this.ranges[l]-(this.inverted?n:0);if(p>t)break;let h=this.ranges[l+i],c=this.ranges[l+s],f=p+h;if(t<=f){let i=p+n+((h?t==p?-1:t==f?1:e:e)<0?0:c);if(r)return i;let s=t==(e<0?p:f)?null:o(l/3,t-p),d=t==p?2:t==f?1:4;return(e<0?t!=p:t!=f)&&(d|=8),new a(i,d,s)}n+=c-h}return r?t+n:new a(t+n,0,null)}touches(t,e){let r=0,n=l(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let e=this.ranges[o]-(this.inverted?r:0);if(e>t)break;let l=this.ranges[o+i];if(t<=e+l&&o==3*n)return!0;r+=this.ranges[o+s]-l}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),a=this.ranges[n+e],p=this.ranges[n+r];t(o,o+a,l,l+p),i+=p-a}}invert(){return new p(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?p.empty:new p(t<0?[0,-t,0]:[0,0,t])}}p.empty=new p([]);class h{constructor(t,e,r=0,n=(t?t.length:0)){this.mirror=e,this.from=r,this.to=n,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new h(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let n=t.getMirror(e);this.appendMap(t._maps[e],null!=n&&n<e?r+n:void 0)}}getMirror(t){if(this.mirror)for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let n=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=n&&n>e?r-n-1:void 0)}}invert(){let t=new h;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let n=0;for(let i=this.from;i<this.to;i++){let r=this._maps[i].mapResult(t,e);if(null!=r.recover){let e=this.getMirror(i);if(null!=e&&e>i&&e<this.to){i=e,t=this._maps[e].recover(r.recover);continue}}n|=r.delInfo,t=r.pos}return r?t:new a(t,n,null)}}const c=/* @__PURE__ */Object.create(null);class f{getMap(){return p.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=c[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in c)throw new RangeError("Duplicate use of step JSON ID "+t);return c[t]=e,e.prototype.jsonID=t,e}}class d{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new d(t,null)}static fail(t){return new d(null,t)}static fromReplace(t,e,r,i){try{return d.ok(t.replace(e,r,i))}catch(s){if(s instanceof n)return d.fail(s.message);throw s}}}function u(t,r,n){let i=[];for(let e=0;e<t.childCount;e++){let s=t.child(e);s.content.size&&(s=s.copy(u(s.content,r,s))),s.isInline&&(s=r(s,n,e)),i.push(s)}return e.fromArray(i)}class m extends f{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),s=new t(u(r.content,(t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t,i),r.openStart,r.openEnd);return d.fromReplace(e,this.from,this.to,s)}invert(){return new g(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new m(e.pos,r.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}f.jsonID("addMark",m);class g extends f{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),n=new t(u(r.content,t=>t.mark(this.mark.removeFromSet(t.marks)),e),r.openStart,r.openEnd);return d.fromReplace(e,this.from,this.to,n)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new g(e.pos,r.pos,this.mark)}merge(t){return t instanceof g&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new g(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new g(e.from,e.to,t.markFromJSON(e.mark))}}f.jsonID("removeMark",g);class y extends f{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(i),0,n.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new y(this.pos,e.marks[r]);return new y(this.pos,this.mark)}}return new w(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new y(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new y(e.pos,t.markFromJSON(e.mark))}}f.jsonID("addNodeMark",y);class w extends f{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(i),0,n.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new y(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new w(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new w(e.pos,t.markFromJSON(e.mark))}}f.jsonID("removeNodeMark",w);class k extends f{constructor(t,e,r,n=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=n}apply(t){return this.structure&&S(t,this.from,this.to)?d.fail("Structure replace would overwrite content"):d.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new p([this.from,this.to-this.from,this.slice.size])}invert(t){return new k(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deletedAcross&&r.deletedAcross?null:new k(e.pos,Math.max(e.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof k)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let r=this.slice.size+e.slice.size==0?t.empty:new t(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new k(e.from,this.to,r,this.structure)}}{let r=this.slice.size+e.slice.size==0?t.empty:new t(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new k(this.from,this.to+(e.to-e.from),r,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new k(r.from,r.to,t.fromJSON(e,r.slice),!!r.structure)}}f.jsonID("replace",k);class v extends f{constructor(t,e,r,n,i,s,o=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=s,this.structure=o}apply(t){if(this.structure&&(S(t,this.from,this.gapFrom)||S(t,this.gapTo,this.to)))return d.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return d.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?d.fromReplace(t,this.from,this.to,r):d.fail("Content does not fit in gap")}getMap(){return new p([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new v(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),n=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||n<e.pos||i>r.pos?null:new v(e.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(r.from,r.to,r.gapFrom,r.gapTo,t.fromJSON(e,r.slice),r.insert,!!r.structure)}}function S(t,e,r){let n=t.resolve(e),i=r-e,s=n.depth;for(;i>0&&s>0&&n.indexAfter(s)==n.node(s).childCount;)s--,i--;if(i>0){let t=n.node(s).maybeChild(n.indexAfter(s));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function M(r,n,i,s=i.contentMatch,o=!0){let l=r.doc.nodeAt(n),a=[],p=n+1;for(let h=0;h<l.childCount;h++){let n=l.child(h),c=p+n.nodeSize,f=s.matchType(n.type);if(f){s=f;for(let t=0;t<n.marks.length;t++)i.allowsMarkType(n.marks[t].type)||r.step(new g(p,c,n.marks[t]));if(o&&n.isText&&"pre"!=i.whitespace){let r,s,o=/\r?\n|\r/g;for(;r=o.exec(n.text);)s||(s=new t(e.from(i.schema.text(" ",i.allowedMarks(n.marks))),0,0)),a.push(new k(p+r.index,p+r.index+r[0].length,s))}}else a.push(new k(p,c,t.empty));p=c}if(!s.validEnd){let n=s.fillBefore(e.empty,!0);r.replace(p,p,new t(n,0,0))}for(let t=a.length-1;t>=0;t--)r.step(a[t])}function x(t,e,r){return(0==e||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function R(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,n=0,i=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+n,l=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(o,l,e))return r;if(0==r||s.type.spec.isolating||!x(s,o,l))break;o&&(n=1),l<s.childCount&&(i=1)}return null}function C(t,e,r=null,n=t){let i=function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,s=r.contentMatchAt(n).findWrapping(e);if(!s)return null;let o=s.length?s[0]:e;return r.canReplaceWith(n,i,o)?s:null}(t,e),s=i&&function(t,e){let{parent:r,startIndex:n,endIndex:i}=t,s=r.child(n),o=e.contentMatch.findWrapping(s.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let a=n;l&&a<i;a++)l=l.matchType(r.child(a).type);return l&&l.validEnd?o:null}(n,e);return s?i.map(b).concat({type:e,attrs:r}).concat(s.map(b)):null}function b(t){return{type:t,attrs:null}}function N(t,e,r,n){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let i=t.mapping.slice(n).map(r+1+s+o.index);t.replaceWith(i,i+1,e.type.schema.linebreakReplacement.create())}}})}function I(t,e,r,n){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let i=t.mapping.slice(n).map(r+1+s);t.replaceWith(i,i+1,e.type.schema.text("\n"))}})}function T(t,e,r=1,n){let i=t.resolve(e),s=i.depth-r,o=n&&n[n.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let p=i.depth-1,h=r-2;p>s;p--,h--){let t=i.node(p),e=i.index(p);if(t.type.spec.isolating)return!1;let r=t.content.cutByIndex(e,t.childCount),s=n&&n[h+1];s&&(r=r.replaceChild(0,s.type.create(s.attrs)));let o=n&&n[h]||t;if(!t.canReplace(e+1,t.childCount)||!o.type.validContent(r))return!1}let l=i.indexAfter(s),a=n&&n[0];return i.node(s).canReplaceWith(l,l,a?a.type:i.node(s+1).type)}function A(t,e){let r=t.resolve(e),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(t,e){return!(!t||!e||t.isLeaf||!function(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:n}=t.type.schema;for(let i=0;i<e.childCount;i++){let s=e.child(i),o=s.type==n?t.type.schema.nodes.text:s.type;if(r=r.matchType(o),!r)return!1;if(!t.type.allowsMarks(s.marks))return!1}return r.validEnd}(t,e))}function E(t,e,r=-1){let n=t.resolve(e);for(let i=n.depth;;i--){let t,s,o=n.index(i);if(i==n.depth?(t=n.nodeBefore,s=n.nodeAfter):r>0?(t=n.node(i+1),o++,s=n.node(i).maybeChild(o)):(t=n.node(i).maybeChild(o-1),s=n.node(i+1)),t&&!t.isTextblock&&O(t,s)&&n.node(i).canReplace(o,o+1))return e;if(0==i)break;e=r<0?n.before(i):n.after(i)}}function J(t,e,r){let n=t.resolve(e);if(n.parent.canReplaceWith(n.index(),n.index(),r))return e;if(0==n.parentOffset)for(let i=n.depth-1;i>=0;i--){let t=n.index(i);if(n.node(i).canReplaceWith(t,t,r))return n.before(i+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let i=n.depth-1;i>=0;i--){let t=n.indexAfter(i);if(n.node(i).canReplaceWith(t,t,r))return n.after(i+1);if(t<n.node(i).childCount)return null}return null}function z(t,e,r){let n=t.resolve(e);if(!r.content.size)return e;let i=r.content;for(let s=0;s<r.openStart;s++)i=i.firstChild.content;for(let s=1;s<=(0==r.openStart&&r.size?2:1);s++)for(let t=n.depth;t>=0;t--){let e=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,r=n.index(t)+(e>0?1:0),o=n.node(t),l=!1;if(1==s)l=o.canReplace(r,r,i);else{let t=o.contentMatchAt(r).findWrapping(i.firstChild.type);l=t&&o.canReplaceWith(r,r,t[0])}if(l)return 0==e?n.pos:e<0?n.before(t+1):n.after(t+1)}return null}function F(e,r,n=r,i=t.empty){if(r==n&&!i.size)return null;let s=e.resolve(r),o=e.resolve(n);return _(s,o,i)?new k(r,n,i):new D(s,o,i).fit()}function _(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}f.jsonID("replaceAround",v);class D{constructor(t,r,n){this.$from=t,this.$to=r,this.unplaced=n,this.frontier=[],this.placed=e.empty;for(let e=0;e<=t.depth;e++){let r=t.node(e);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(e))})}for(let i=t.depth;i>0;i--)this.placed=e.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let s=this.placed,o=n.depth,l=i.depth;for(;o&&l&&1==s.childCount;)s=s.firstChild.content,o--,l--;let a=new t(s,o,l);return e>-1?new v(n.pos,e,this.$to.pos,this.$to.end(),a,r):a.size||n.pos!=this.$to.pos?new k(n.pos,i.pos,a):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<t;r++){let i=e.firstChild;if(e.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){t=r;break}e=i.content}for(let r=1;r<=2;r++)for(let n=1==r?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=W(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let s=t.firstChild;for(let o=this.depth;o>=0;o--){let t,{type:l,match:a}=this.frontier[o],p=null;if(1==r&&(s?a.matchType(s.type)||(p=a.fillBefore(e.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:o,parent:i,inject:p};if(2==r&&s&&(t=a.findWrapping(s.type)))return{sliceDepth:n,frontierDepth:o,parent:i,wrap:t};if(i&&a.matchType(i.type))break}}}openMore(){let{content:e,openStart:r,openEnd:n}=this.unplaced,i=W(e,r);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new t(e,r+1,Math.max(n,i.size+r>=e.size-n?r+1:0)),!0)}dropNode(){let{content:e,openStart:r,openEnd:n}=this.unplaced,i=W(e,r);if(i.childCount<=1&&r>0){let s=e.size-r<=r+i.size;this.unplaced=new t(B(e,r-1,1),r-1,s?r-1:n)}else this.unplaced=new t(B(e,r,1),r,n)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:s,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let t=0;t<o.length;t++)this.openFrontierNode(o[t]);let l=this.unplaced,a=i?i.content:l.content,p=l.openStart-r,h=0,c=[],{match:f,type:d}=this.frontier[n];if(s){for(let t=0;t<s.childCount;t++)c.push(s.child(t));f=f.matchFragment(s)}let u=a.size+r-(l.content.size-l.openEnd);for(;h<a.childCount;){let t=a.child(h),e=f.matchType(t.type);if(!e)break;h++,(h>1||0==p||t.content.size)&&(f=e,c.push(j(t.mark(d.allowedMarks(t.marks)),1==h?p:0,h==a.childCount?u:-1)))}let m=h==a.childCount;m||(u=-1),this.placed=$(this.placed,n,e.from(c)),this.frontier[n].match=f,m&&u<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t<u;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=m?0==r?t.empty:new t(B(l.content,r-1,1),r-1,u<0?l.openEnd:r-1):new t(B(l.content,r,h),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t,e=this.frontier[this.depth];if(!e.type.isTextblock||!L(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:n}=this.frontier[e],i=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=L(t,e,n,r,i);if(s){for(let r=e-1;r>=0;r--){let{match:e,type:n}=this.frontier[r],i=L(t,r,n,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:s,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=$(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let e=t.node(r),n=e.type.contentMatch.fillBefore(e.content,!0,t.index(r));this.openFrontierNode(e.type,e.attrs,n)}return t}openFrontierNode(t,r=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=$(this.placed,this.depth,e.from(t.create(r,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(e.empty,!0);t.childCount&&(this.placed=$(this.placed,this.frontier.length,t))}}function B(t,e,r){return 0==e?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(B(t.firstChild.content,e-1,r)))}function $(t,e,r){return 0==e?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy($(t.lastChild.content,e-1,r)))}function W(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function j(t,r,n){if(r<=0)return t;let i=t.content;return r>1&&(i=i.replaceChild(0,j(i.firstChild,r-1,1==i.childCount?n-1:0))),r>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(e.empty,!0)))),t.copy(i)}function L(t,e,r,n,i){let s=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==s.childCount&&!r.compatibleContent(s.type))return null;let l=n.fillBefore(s.content,!0,o);return l&&!function(t,e,r){for(let n=r;n<e.childCount;n++)if(!t.allowsMarks(e.child(n).marks))return!0;return!1}(r,s.content,o)?l:null}function q(t){return t.spec.defining||t.spec.definingForContent}function G(t,r,n,i,s){if(r<n){let e=t.firstChild;t=t.replaceChild(0,e.copy(G(e.content,r+1,n,i,e)))}if(r>i){let r=s.contentMatchAt(0),n=r.fillBefore(t).append(t);t=n.append(r.matchFragment(n).fillBefore(e.empty,!0))}return t}function H(t,e){let r=[];for(let n=Math.min(t.depth,e.depth);n>=0;n--){let i=t.start(n);if(i<t.pos-(t.depth-n)||e.end(n)>e.pos+(e.depth-n)||t.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==t.depth&&n==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&r.push(n)}return r}class K extends f{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(r){let n=r.nodeAt(this.pos);if(!n)return d.fail("No node at attribute step's position");let i=/* @__PURE__ */Object.create(null);for(let t in n.attrs)i[t]=n.attrs[t];i[this.attr]=this.value;let s=n.type.create(i,null,n.marks);return d.fromReplace(r,this.pos,this.pos+1,new t(e.from(s),0,n.isLeaf?0:1))}getMap(){return p.empty}invert(t){return new K(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new K(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new K(e.pos,e.attr,e.value)}}f.jsonID("attr",K);class P extends f{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=/* @__PURE__ */Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return d.ok(r)}getMap(){return p.empty}invert(t){return new P(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new P(e.attr,e.value)}}f.jsonID("docAttr",P);let Q=class extends Error{};Q=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r},(Q.prototype=Object.create(Error.prototype)).constructor=Q,Q.prototype.name="TransformError";class U{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new h}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Q(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(t=n.map(t,1),e=n.map(e,-1)),n.forEach((r,n,i,s)=>{t=Math.min(t,i),e=Math.max(e,s)})}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(e,r=e,n=t.empty){let i=F(this.doc,e,r,n);return i&&this.step(i),this}replaceWith(r,n,i){return this.replace(r,n,new t(e.from(i),0,0))}delete(e,r){return this.replace(e,r,t.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(e,r,n){return function(e,r,n,i){if(!i.size)return e.deleteRange(r,n);let s=e.doc.resolve(r),o=e.doc.resolve(n);if(_(s,o,i))return e.step(new k(r,n,i));let l=H(s,o);0==l[l.length-1]&&l.pop();let a=-(s.depth+1);l.unshift(a);for(let t=s.depth,d=s.pos-1;t>0;t--,d--){let e=s.node(t).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;l.indexOf(t)>-1?a=t:s.before(t)==d&&l.splice(1,0,-t)}let p=l.indexOf(a),h=[],c=i.openStart;for(let t=i.content,d=0;;d++){let e=t.firstChild;if(h.push(e),d==i.openStart)break;t=e.content}for(let t=c-1;t>=0;t--){let e=h[t],r=q(e.type);if(r&&!e.sameMarkup(s.node(Math.abs(a)-1)))c=t;else if(r||!e.type.isTextblock)break}for(let d=i.openStart;d>=0;d--){let r=(d+c+1)%(i.openStart+1),a=h[r];if(a)for(let h=0;h<l.length;h++){let c=l[(h+p)%l.length],f=!0;c<0&&(f=!1,c=-c);let d=s.node(c-1),u=s.index(c-1);if(d.canReplaceWith(u,u,a.type,a.marks))return e.replace(s.before(c),f?o.after(c):n,new t(G(i.content,0,i.openStart,r),r,i.openEnd))}}let f=e.steps.length;for(let t=l.length-1;t>=0&&(e.replace(r,n,i),!(e.steps.length>f));t--){let e=l[t];e<0||(r=s.before(e),n=o.after(e))}}(this,e,r,n),this}replaceRangeWith(r,n,i){return function(r,n,i,s){if(!s.isInline&&n==i&&r.doc.resolve(n).parent.content.size){let t=J(r.doc,n,s.type);null!=t&&(n=i=t)}r.replaceRange(n,i,new t(e.from(s),0,0))}(this,r,n,i),this}deleteRange(t,e){return function(t,e,r){let n=t.doc.resolve(e),i=t.doc.resolve(r),s=H(n,i);for(let o=0;o<s.length;o++){let e=s[o],r=o==s.length-1;if(r&&0==e||n.node(e).type.contentMatch.validEnd)return t.delete(n.start(e),i.end(e));if(e>0&&(r||n.node(e-1).canReplace(n.index(e-1),i.indexAfter(e-1))))return t.delete(n.before(e),i.after(e))}for(let o=1;o<=n.depth&&o<=i.depth;o++)if(e-n.start(o)==n.depth-o&&r>n.end(o)&&i.end(o)-r!=i.depth-o&&n.start(o-1)==i.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),i.index(o-1)))return t.delete(n.before(o),r);t.delete(e,r)}(this,t,e),this}lift(r,n){return function(r,n,i){let{$from:s,$to:o,depth:l}=n,a=s.before(l+1),p=o.after(l+1),h=a,c=p,f=e.empty,d=0;for(let t=l,g=!1;t>i;t--)g||s.index(t)>0?(g=!0,f=e.from(s.node(t).copy(f)),d++):h--;let u=e.empty,m=0;for(let t=l,g=!1;t>i;t--)g||o.after(t+1)<o.end(t)?(g=!0,u=e.from(o.node(t).copy(u)),m++):c++;r.step(new v(h,c,a,p,new t(f.append(u),d,m),f.size-d,!0))}(this,r,n),this}join(e,r=1){return function(e,r,n){let i=null,{linebreakReplacement:s}=e.doc.type.schema,o=e.doc.resolve(r-n),l=o.node().type;if(s&&l.inlineContent){let t="pre"==l.whitespace,e=!!l.contentMatch.matchType(s);t&&!e?i=!1:!t&&e&&(i=!0)}let a=e.steps.length;if(!1===i){let t=e.doc.resolve(r+n);I(e,t.node(),t.before(),a)}l.inlineContent&&M(e,r+n-1,l,o.node().contentMatchAt(o.index()),null==i);let p=e.mapping.slice(a),h=p.map(r-n);if(e.step(new k(h,p.map(r+n,-1),t.empty,!0)),!0===i){let t=e.doc.resolve(h);N(e,t.node(),t.before(),e.steps.length)}}(this,e,r),this}wrap(r,n){return function(r,n,i){let s=e.empty;for(let t=i.length-1;t>=0;t--){if(s.size){let e=i[t].type.contentMatch.matchFragment(s);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}s=e.from(i[t].type.create(i[t].attrs,s))}let o=n.start,l=n.end;r.step(new v(o,l,o,l,new t(s,0,0),i.length,!0))}(this,r,n),this}setBlockType(r,n=r,i,s=null){return function(r,n,i,s,o){if(!s.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=r.steps.length;r.doc.nodesBetween(n,i,(n,i)=>{let a="function"==typeof o?o(n):o;if(n.isTextblock&&!n.hasMarkup(s,a)&&function(t,e,r){let n=t.resolve(e),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}(r.doc,r.mapping.slice(l).map(i),s)){let o=null;if(s.schema.linebreakReplacement){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(s.schema.linebreakReplacement);t&&!e?o=!1:!t&&e&&(o=!0)}!1===o&&I(r,n,i,l),M(r,r.mapping.slice(l).map(i,1),s,void 0,null===o);let p=r.mapping.slice(l),h=p.map(i,1),c=p.map(i+n.nodeSize,1);return r.step(new v(h,c,h+1,c-1,new t(e.from(s.create(a,null,n.marks)),0,0),1,!0)),!0===o&&N(r,n,i,l),!1}})}(this,r,n,i,s),this}setNodeMarkup(r,n,i=null,s){return function(r,n,i,s,o){let l=r.doc.nodeAt(n);if(!l)throw new RangeError("No node at given position");i||(i=l.type);let a=i.create(s,null,o||l.marks);if(l.isLeaf)return r.replaceWith(n,n+l.nodeSize,a);if(!i.validContent(l.content))throw new RangeError("Invalid content for node type "+i.name);r.step(new v(n,n+l.nodeSize,n+1,n+l.nodeSize-1,new t(e.from(a),0,0),1,!0))}(this,r,n,i,s),this}setNodeAttribute(t,e,r){return this.step(new K(t,e,r)),this}setDocAttribute(t,e){return this.step(new P(t,e)),this}addNodeMark(t,e){return this.step(new y(t,e)),this}removeNodeMark(t,e){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(e instanceof r)e.isInSet(n.marks)&&this.step(new w(t,e));else{let r,i=n.marks,s=[];for(;r=e.isInSet(i);)s.push(new w(t,r)),i=r.removeFromSet(i);for(let t=s.length-1;t>=0;t--)this.step(s[t])}return this}split(r,n=1,i){return function(r,n,i=1,s){let o=r.doc.resolve(n),l=e.empty,a=e.empty;for(let t=o.depth,p=o.depth-i,h=i-1;t>p;t--,h--){l=e.from(o.node(t).copy(l));let r=s&&s[h];a=e.from(r?r.type.create(r.attrs,a):o.node(t).copy(a))}r.step(new k(n,n,new t(l.append(a),i,i),!0))}(this,r,n,i),this}addMark(t,e,r){return function(t,e,r,n){let i,s,o=[],l=[];t.doc.nodesBetween(e,r,(t,a,p)=>{if(!t.isInline)return;let h=t.marks;if(!n.isInSet(h)&&p.type.allowsMarkType(n.type)){let p=Math.max(a,e),c=Math.min(a+t.nodeSize,r),f=n.addToSet(h);for(let t=0;t<h.length;t++)h[t].isInSet(f)||(i&&i.to==p&&i.mark.eq(h[t])?i.to=c:o.push(i=new g(p,c,h[t])));s&&s.to==p?s.to=c:l.push(s=new m(p,c,n))}}),o.forEach(e=>t.step(e)),l.forEach(e=>t.step(e))}(this,t,e,r),this}removeMark(t,e,r){return function(t,e,r,n){let s=[],o=0;t.doc.nodesBetween(e,r,(t,l)=>{if(!t.isInline)return;o++;let a=null;if(n instanceof i){let e,r=t.marks;for(;e=n.isInSet(r);)(a||(a=[])).push(e),r=e.removeFromSet(r)}else n?n.isInSet(t.marks)&&(a=[n]):a=t.marks;if(a&&a.length){let n=Math.min(l+t.nodeSize,r);for(let t=0;t<a.length;t++){let r,i=a[t];for(let t=0;t<s.length;t++){let e=s[t];e.step==o-1&&i.eq(s[t].style)&&(r=e)}r?(r.to=n,r.step=o):s.push({style:i,from:Math.max(l,e),to:n,step:o})}}}),s.forEach(e=>t.step(new g(e.from,e.to,e.style)))}(this,t,e,r),this}clearIncompatible(t,e,r){return M(this,t,e,r),this}}export{m as AddMarkStep,y as AddNodeMarkStep,K as AttrStep,P as DocAttrStep,a as MapResult,h as Mapping,g as RemoveMarkStep,w as RemoveNodeMarkStep,v as ReplaceAroundStep,k as ReplaceStep,f as Step,p as StepMap,d as StepResult,U as Transform,Q as TransformError,A as canJoin,T as canSplit,z as dropPoint,C as findWrapping,J as insertPoint,E as joinPoint,R as liftTarget,F as replaceStep};
|
|
14
|
+
import { Slice as g, ReplaceError as se, Fragment as w, Mark as oe, MarkType as le } from "../../prosemirror-model/dist/index.js";
|
|
15
|
+
const Q = 65535, U = Math.pow(2, 16);
|
|
16
|
+
function ae(s, e) {
|
|
17
|
+
return s + e * U;
|
|
18
|
+
}
|
|
19
|
+
function H(s) {
|
|
20
|
+
return s & Q;
|
|
21
|
+
}
|
|
22
|
+
function he(s) {
|
|
23
|
+
return (s - (s & Q)) / U;
|
|
24
|
+
}
|
|
25
|
+
const V = 1, X = 2, J = 4, Y = 8;
|
|
26
|
+
class L {
|
|
27
|
+
/**
|
|
28
|
+
@internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(e, t, r) {
|
|
31
|
+
this.pos = e, this.delInfo = t, this.recover = r;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
Tells you whether the position was deleted, that is, whether the
|
|
35
|
+
step removed the token on the side queried (via the `assoc`)
|
|
36
|
+
argument from the document.
|
|
37
|
+
*/
|
|
38
|
+
get deleted() {
|
|
39
|
+
return (this.delInfo & Y) > 0;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
Tells you whether the token before the mapped position was deleted.
|
|
43
|
+
*/
|
|
44
|
+
get deletedBefore() {
|
|
45
|
+
return (this.delInfo & (V | J)) > 0;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
True when the token after the mapped position was deleted.
|
|
49
|
+
*/
|
|
50
|
+
get deletedAfter() {
|
|
51
|
+
return (this.delInfo & (X | J)) > 0;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
Tells whether any of the steps mapped through deletes across the
|
|
55
|
+
position (including both the token before and after the
|
|
56
|
+
position).
|
|
57
|
+
*/
|
|
58
|
+
get deletedAcross() {
|
|
59
|
+
return (this.delInfo & J) > 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
class S {
|
|
63
|
+
/**
|
|
64
|
+
Create a position map. The modifications to the document are
|
|
65
|
+
represented as an array of numbers, in which each group of three
|
|
66
|
+
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
67
|
+
*/
|
|
68
|
+
constructor(e, t = !1) {
|
|
69
|
+
if (this.ranges = e, this.inverted = t, !e.length && S.empty)
|
|
70
|
+
return S.empty;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
@internal
|
|
74
|
+
*/
|
|
75
|
+
recover(e) {
|
|
76
|
+
let t = 0, r = H(e);
|
|
77
|
+
if (!this.inverted)
|
|
78
|
+
for (let n = 0; n < r; n++)
|
|
79
|
+
t += this.ranges[n * 3 + 2] - this.ranges[n * 3 + 1];
|
|
80
|
+
return this.ranges[r * 3] + t + he(e);
|
|
81
|
+
}
|
|
82
|
+
mapResult(e, t = 1) {
|
|
83
|
+
return this._map(e, t, !1);
|
|
84
|
+
}
|
|
85
|
+
map(e, t = 1) {
|
|
86
|
+
return this._map(e, t, !0);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
@internal
|
|
90
|
+
*/
|
|
91
|
+
_map(e, t, r) {
|
|
92
|
+
let n = 0, i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
|
|
93
|
+
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
94
|
+
let a = this.ranges[l] - (this.inverted ? n : 0);
|
|
95
|
+
if (a > e)
|
|
96
|
+
break;
|
|
97
|
+
let h = this.ranges[l + i], p = this.ranges[l + o], c = a + h;
|
|
98
|
+
if (e <= c) {
|
|
99
|
+
let f = h ? e == a ? -1 : e == c ? 1 : t : t, d = a + n + (f < 0 ? 0 : p);
|
|
100
|
+
if (r)
|
|
101
|
+
return d;
|
|
102
|
+
let u = e == (t < 0 ? a : c) ? null : ae(l / 3, e - a), m = e == a ? X : e == c ? V : J;
|
|
103
|
+
return (t < 0 ? e != a : e != c) && (m |= Y), new L(d, m, u);
|
|
104
|
+
}
|
|
105
|
+
n += p - h;
|
|
106
|
+
}
|
|
107
|
+
return r ? e + n : new L(e + n, 0, null);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
@internal
|
|
111
|
+
*/
|
|
112
|
+
touches(e, t) {
|
|
113
|
+
let r = 0, n = H(t), i = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
|
|
114
|
+
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
115
|
+
let a = this.ranges[l] - (this.inverted ? r : 0);
|
|
116
|
+
if (a > e)
|
|
117
|
+
break;
|
|
118
|
+
let h = this.ranges[l + i], p = a + h;
|
|
119
|
+
if (e <= p && l == n * 3)
|
|
120
|
+
return !0;
|
|
121
|
+
r += this.ranges[l + o] - h;
|
|
122
|
+
}
|
|
123
|
+
return !1;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
Calls the given function on each of the changed ranges included in
|
|
127
|
+
this map.
|
|
128
|
+
*/
|
|
129
|
+
forEach(e) {
|
|
130
|
+
let t = this.inverted ? 2 : 1, r = this.inverted ? 1 : 2;
|
|
131
|
+
for (let n = 0, i = 0; n < this.ranges.length; n += 3) {
|
|
132
|
+
let o = this.ranges[n], l = o - (this.inverted ? i : 0), a = o + (this.inverted ? 0 : i), h = this.ranges[n + t], p = this.ranges[n + r];
|
|
133
|
+
e(l, l + h, a, a + p), i += p - h;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
Create an inverted version of this map. The result can be used to
|
|
138
|
+
map positions in the post-step document to the pre-step document.
|
|
139
|
+
*/
|
|
140
|
+
invert() {
|
|
141
|
+
return new S(this.ranges, !this.inverted);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
@internal
|
|
145
|
+
*/
|
|
146
|
+
toString() {
|
|
147
|
+
return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
Create a map that moves all positions by offset `n` (which may be
|
|
151
|
+
negative). This can be useful when applying steps meant for a
|
|
152
|
+
sub-document to a larger document, or vice-versa.
|
|
153
|
+
*/
|
|
154
|
+
static offset(e) {
|
|
155
|
+
return e == 0 ? S.empty : new S(e < 0 ? [0, -e, 0] : [0, 0, e]);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
S.empty = new S([]);
|
|
159
|
+
class A {
|
|
160
|
+
/**
|
|
161
|
+
Create a new mapping with the given position maps.
|
|
162
|
+
*/
|
|
163
|
+
constructor(e, t, r = 0, n = e ? e.length : 0) {
|
|
164
|
+
this.mirror = t, this.from = r, this.to = n, this._maps = e || [], this.ownData = !(e || t);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
The step maps in this mapping.
|
|
168
|
+
*/
|
|
169
|
+
get maps() {
|
|
170
|
+
return this._maps;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
Create a mapping that maps only through a part of this one.
|
|
174
|
+
*/
|
|
175
|
+
slice(e = 0, t = this.maps.length) {
|
|
176
|
+
return new A(this._maps, this.mirror, e, t);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
Add a step map to the end of this mapping. If `mirrors` is
|
|
180
|
+
given, it should be the index of the step map that is the mirror
|
|
181
|
+
image of this one.
|
|
182
|
+
*/
|
|
183
|
+
appendMap(e, t) {
|
|
184
|
+
this.ownData || (this._maps = this._maps.slice(), this.mirror = this.mirror && this.mirror.slice(), this.ownData = !0), this.to = this._maps.push(e), t != null && this.setMirror(this._maps.length - 1, t);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
Add all the step maps in a given mapping to this one (preserving
|
|
188
|
+
mirroring information).
|
|
189
|
+
*/
|
|
190
|
+
appendMapping(e) {
|
|
191
|
+
for (let t = 0, r = this._maps.length; t < e._maps.length; t++) {
|
|
192
|
+
let n = e.getMirror(t);
|
|
193
|
+
this.appendMap(e._maps[t], n != null && n < t ? r + n : void 0);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
Finds the offset of the step map that mirrors the map at the
|
|
198
|
+
given offset, in this mapping (as per the second argument to
|
|
199
|
+
`appendMap`).
|
|
200
|
+
*/
|
|
201
|
+
getMirror(e) {
|
|
202
|
+
if (this.mirror) {
|
|
203
|
+
for (let t = 0; t < this.mirror.length; t++)
|
|
204
|
+
if (this.mirror[t] == e)
|
|
205
|
+
return this.mirror[t + (t % 2 ? -1 : 1)];
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
@internal
|
|
210
|
+
*/
|
|
211
|
+
setMirror(e, t) {
|
|
212
|
+
this.mirror || (this.mirror = []), this.mirror.push(e, t);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
Append the inverse of the given mapping to this one.
|
|
216
|
+
*/
|
|
217
|
+
appendMappingInverted(e) {
|
|
218
|
+
for (let t = e.maps.length - 1, r = this._maps.length + e._maps.length; t >= 0; t--) {
|
|
219
|
+
let n = e.getMirror(t);
|
|
220
|
+
this.appendMap(e._maps[t].invert(), n != null && n > t ? r - n - 1 : void 0);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
Create an inverted version of this mapping.
|
|
225
|
+
*/
|
|
226
|
+
invert() {
|
|
227
|
+
let e = new A();
|
|
228
|
+
return e.appendMappingInverted(this), e;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
Map a position through this mapping.
|
|
232
|
+
*/
|
|
233
|
+
map(e, t = 1) {
|
|
234
|
+
if (this.mirror)
|
|
235
|
+
return this._map(e, t, !0);
|
|
236
|
+
for (let r = this.from; r < this.to; r++)
|
|
237
|
+
e = this._maps[r].map(e, t);
|
|
238
|
+
return e;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
Map a position through this mapping, returning a mapping
|
|
242
|
+
result.
|
|
243
|
+
*/
|
|
244
|
+
mapResult(e, t = 1) {
|
|
245
|
+
return this._map(e, t, !1);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
@internal
|
|
249
|
+
*/
|
|
250
|
+
_map(e, t, r) {
|
|
251
|
+
let n = 0;
|
|
252
|
+
for (let i = this.from; i < this.to; i++) {
|
|
253
|
+
let o = this._maps[i], l = o.mapResult(e, t);
|
|
254
|
+
if (l.recover != null) {
|
|
255
|
+
let a = this.getMirror(i);
|
|
256
|
+
if (a != null && a > i && a < this.to) {
|
|
257
|
+
i = a, e = this._maps[a].recover(l.recover);
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
n |= l.delInfo, e = l.pos;
|
|
262
|
+
}
|
|
263
|
+
return r ? e : new L(e, n, null);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
const B = /* @__PURE__ */ Object.create(null);
|
|
267
|
+
class k {
|
|
268
|
+
/**
|
|
269
|
+
Get the step map that represents the changes made by this step,
|
|
270
|
+
and which can be used to transform between positions in the old
|
|
271
|
+
and the new document.
|
|
272
|
+
*/
|
|
273
|
+
getMap() {
|
|
274
|
+
return S.empty;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
Try to merge this step with another one, to be applied directly
|
|
278
|
+
after it. Returns the merged step when possible, null if the
|
|
279
|
+
steps can't be merged.
|
|
280
|
+
*/
|
|
281
|
+
merge(e) {
|
|
282
|
+
return null;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
Deserialize a step from its JSON representation. Will call
|
|
286
|
+
through to the step class' own implementation of this method.
|
|
287
|
+
*/
|
|
288
|
+
static fromJSON(e, t) {
|
|
289
|
+
if (!t || !t.stepType)
|
|
290
|
+
throw new RangeError("Invalid input for Step.fromJSON");
|
|
291
|
+
let r = B[t.stepType];
|
|
292
|
+
if (!r)
|
|
293
|
+
throw new RangeError(`No step type ${t.stepType} defined`);
|
|
294
|
+
return r.fromJSON(e, t);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
To be able to serialize steps to JSON, each step needs a string
|
|
298
|
+
ID to attach to its JSON representation. Use this method to
|
|
299
|
+
register an ID for your step classes. Try to pick something
|
|
300
|
+
that's unlikely to clash with steps from other modules.
|
|
301
|
+
*/
|
|
302
|
+
static jsonID(e, t) {
|
|
303
|
+
if (e in B)
|
|
304
|
+
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
305
|
+
return B[e] = t, t.prototype.jsonID = e, t;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
class y {
|
|
309
|
+
/**
|
|
310
|
+
@internal
|
|
311
|
+
*/
|
|
312
|
+
constructor(e, t) {
|
|
313
|
+
this.doc = e, this.failed = t;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
Create a successful step result.
|
|
317
|
+
*/
|
|
318
|
+
static ok(e) {
|
|
319
|
+
return new y(e, null);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
Create a failed step result.
|
|
323
|
+
*/
|
|
324
|
+
static fail(e) {
|
|
325
|
+
return new y(null, e);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
329
|
+
arguments. Create a successful result if it succeeds, and a
|
|
330
|
+
failed one if it throws a `ReplaceError`.
|
|
331
|
+
*/
|
|
332
|
+
static fromReplace(e, t, r, n) {
|
|
333
|
+
try {
|
|
334
|
+
return y.ok(e.replace(t, r, n));
|
|
335
|
+
} catch (i) {
|
|
336
|
+
if (i instanceof se)
|
|
337
|
+
return y.fail(i.message);
|
|
338
|
+
throw i;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function P(s, e, t) {
|
|
343
|
+
let r = [];
|
|
344
|
+
for (let n = 0; n < s.childCount; n++) {
|
|
345
|
+
let i = s.child(n);
|
|
346
|
+
i.content.size && (i = i.copy(P(i.content, e, i))), i.isInline && (i = e(i, t, n)), r.push(i);
|
|
347
|
+
}
|
|
348
|
+
return w.fromArray(r);
|
|
349
|
+
}
|
|
350
|
+
class C extends k {
|
|
351
|
+
/**
|
|
352
|
+
Create a mark step.
|
|
353
|
+
*/
|
|
354
|
+
constructor(e, t, r) {
|
|
355
|
+
super(), this.from = e, this.to = t, this.mark = r;
|
|
356
|
+
}
|
|
357
|
+
apply(e) {
|
|
358
|
+
let t = e.slice(this.from, this.to), r = e.resolve(this.from), n = r.node(r.sharedDepth(this.to)), i = new g(P(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), n), t.openStart, t.openEnd);
|
|
359
|
+
return y.fromReplace(e, this.from, this.to, i);
|
|
360
|
+
}
|
|
361
|
+
invert() {
|
|
362
|
+
return new b(this.from, this.to, this.mark);
|
|
363
|
+
}
|
|
364
|
+
map(e) {
|
|
365
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
366
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new C(t.pos, r.pos, this.mark);
|
|
367
|
+
}
|
|
368
|
+
merge(e) {
|
|
369
|
+
return e instanceof C && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new C(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
370
|
+
}
|
|
371
|
+
toJSON() {
|
|
372
|
+
return {
|
|
373
|
+
stepType: "addMark",
|
|
374
|
+
mark: this.mark.toJSON(),
|
|
375
|
+
from: this.from,
|
|
376
|
+
to: this.to
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
@internal
|
|
381
|
+
*/
|
|
382
|
+
static fromJSON(e, t) {
|
|
383
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
384
|
+
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
385
|
+
return new C(t.from, t.to, e.markFromJSON(t.mark));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
k.jsonID("addMark", C);
|
|
389
|
+
class b extends k {
|
|
390
|
+
/**
|
|
391
|
+
Create a mark-removing step.
|
|
392
|
+
*/
|
|
393
|
+
constructor(e, t, r) {
|
|
394
|
+
super(), this.from = e, this.to = t, this.mark = r;
|
|
395
|
+
}
|
|
396
|
+
apply(e) {
|
|
397
|
+
let t = e.slice(this.from, this.to), r = new g(P(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
|
|
398
|
+
return y.fromReplace(e, this.from, this.to, r);
|
|
399
|
+
}
|
|
400
|
+
invert() {
|
|
401
|
+
return new C(this.from, this.to, this.mark);
|
|
402
|
+
}
|
|
403
|
+
map(e) {
|
|
404
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
405
|
+
return t.deleted && r.deleted || t.pos >= r.pos ? null : new b(t.pos, r.pos, this.mark);
|
|
406
|
+
}
|
|
407
|
+
merge(e) {
|
|
408
|
+
return e instanceof b && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new b(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
|
|
409
|
+
}
|
|
410
|
+
toJSON() {
|
|
411
|
+
return {
|
|
412
|
+
stepType: "removeMark",
|
|
413
|
+
mark: this.mark.toJSON(),
|
|
414
|
+
from: this.from,
|
|
415
|
+
to: this.to
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
@internal
|
|
420
|
+
*/
|
|
421
|
+
static fromJSON(e, t) {
|
|
422
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
423
|
+
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
424
|
+
return new b(t.from, t.to, e.markFromJSON(t.mark));
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
k.jsonID("removeMark", b);
|
|
428
|
+
class N extends k {
|
|
429
|
+
/**
|
|
430
|
+
Create a node mark step.
|
|
431
|
+
*/
|
|
432
|
+
constructor(e, t) {
|
|
433
|
+
super(), this.pos = e, this.mark = t;
|
|
434
|
+
}
|
|
435
|
+
apply(e) {
|
|
436
|
+
let t = e.nodeAt(this.pos);
|
|
437
|
+
if (!t)
|
|
438
|
+
return y.fail("No node at mark step's position");
|
|
439
|
+
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
440
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(r), 0, t.isLeaf ? 0 : 1));
|
|
441
|
+
}
|
|
442
|
+
invert(e) {
|
|
443
|
+
let t = e.nodeAt(this.pos);
|
|
444
|
+
if (t) {
|
|
445
|
+
let r = this.mark.addToSet(t.marks);
|
|
446
|
+
if (r.length == t.marks.length) {
|
|
447
|
+
for (let n = 0; n < t.marks.length; n++)
|
|
448
|
+
if (!t.marks[n].isInSet(r))
|
|
449
|
+
return new N(this.pos, t.marks[n]);
|
|
450
|
+
return new N(this.pos, this.mark);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return new R(this.pos, this.mark);
|
|
454
|
+
}
|
|
455
|
+
map(e) {
|
|
456
|
+
let t = e.mapResult(this.pos, 1);
|
|
457
|
+
return t.deletedAfter ? null : new N(t.pos, this.mark);
|
|
458
|
+
}
|
|
459
|
+
toJSON() {
|
|
460
|
+
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
@internal
|
|
464
|
+
*/
|
|
465
|
+
static fromJSON(e, t) {
|
|
466
|
+
if (typeof t.pos != "number")
|
|
467
|
+
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
468
|
+
return new N(t.pos, e.markFromJSON(t.mark));
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
k.jsonID("addNodeMark", N);
|
|
472
|
+
class R extends k {
|
|
473
|
+
/**
|
|
474
|
+
Create a mark-removing step.
|
|
475
|
+
*/
|
|
476
|
+
constructor(e, t) {
|
|
477
|
+
super(), this.pos = e, this.mark = t;
|
|
478
|
+
}
|
|
479
|
+
apply(e) {
|
|
480
|
+
let t = e.nodeAt(this.pos);
|
|
481
|
+
if (!t)
|
|
482
|
+
return y.fail("No node at mark step's position");
|
|
483
|
+
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
484
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(r), 0, t.isLeaf ? 0 : 1));
|
|
485
|
+
}
|
|
486
|
+
invert(e) {
|
|
487
|
+
let t = e.nodeAt(this.pos);
|
|
488
|
+
return !t || !this.mark.isInSet(t.marks) ? this : new N(this.pos, this.mark);
|
|
489
|
+
}
|
|
490
|
+
map(e) {
|
|
491
|
+
let t = e.mapResult(this.pos, 1);
|
|
492
|
+
return t.deletedAfter ? null : new R(t.pos, this.mark);
|
|
493
|
+
}
|
|
494
|
+
toJSON() {
|
|
495
|
+
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
@internal
|
|
499
|
+
*/
|
|
500
|
+
static fromJSON(e, t) {
|
|
501
|
+
if (typeof t.pos != "number")
|
|
502
|
+
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
503
|
+
return new R(t.pos, e.markFromJSON(t.mark));
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
k.jsonID("removeNodeMark", R);
|
|
507
|
+
class v extends k {
|
|
508
|
+
/**
|
|
509
|
+
The given `slice` should fit the 'gap' between `from` and
|
|
510
|
+
`to`—the depths must line up, and the surrounding nodes must be
|
|
511
|
+
able to be joined with the open sides of the slice. When
|
|
512
|
+
`structure` is true, the step will fail if the content between
|
|
513
|
+
from and to is not just a sequence of closing and then opening
|
|
514
|
+
tokens (this is to guard against rebased replace steps
|
|
515
|
+
overwriting something they weren't supposed to).
|
|
516
|
+
*/
|
|
517
|
+
constructor(e, t, r, n = !1) {
|
|
518
|
+
super(), this.from = e, this.to = t, this.slice = r, this.structure = n;
|
|
519
|
+
}
|
|
520
|
+
apply(e) {
|
|
521
|
+
return this.structure && q(e, this.from, this.to) ? y.fail("Structure replace would overwrite content") : y.fromReplace(e, this.from, this.to, this.slice);
|
|
522
|
+
}
|
|
523
|
+
getMap() {
|
|
524
|
+
return new S([this.from, this.to - this.from, this.slice.size]);
|
|
525
|
+
}
|
|
526
|
+
invert(e) {
|
|
527
|
+
return new v(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
|
|
528
|
+
}
|
|
529
|
+
map(e) {
|
|
530
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
|
|
531
|
+
return t.deletedAcross && r.deletedAcross ? null : new v(t.pos, Math.max(t.pos, r.pos), this.slice, this.structure);
|
|
532
|
+
}
|
|
533
|
+
merge(e) {
|
|
534
|
+
if (!(e instanceof v) || e.structure || this.structure)
|
|
535
|
+
return null;
|
|
536
|
+
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
|
537
|
+
let t = this.slice.size + e.slice.size == 0 ? g.empty : new g(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
|
538
|
+
return new v(this.from, this.to + (e.to - e.from), t, this.structure);
|
|
539
|
+
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
|
540
|
+
let t = this.slice.size + e.slice.size == 0 ? g.empty : new g(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
|
541
|
+
return new v(e.from, this.to, t, this.structure);
|
|
542
|
+
} else
|
|
543
|
+
return null;
|
|
544
|
+
}
|
|
545
|
+
toJSON() {
|
|
546
|
+
let e = { stepType: "replace", from: this.from, to: this.to };
|
|
547
|
+
return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
@internal
|
|
551
|
+
*/
|
|
552
|
+
static fromJSON(e, t) {
|
|
553
|
+
if (typeof t.from != "number" || typeof t.to != "number")
|
|
554
|
+
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
555
|
+
return new v(t.from, t.to, g.fromJSON(e, t.slice), !!t.structure);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
k.jsonID("replace", v);
|
|
559
|
+
class M extends k {
|
|
560
|
+
/**
|
|
561
|
+
Create a replace-around step with the given range and gap.
|
|
562
|
+
`insert` should be the point in the slice into which the content
|
|
563
|
+
of the gap should be moved. `structure` has the same meaning as
|
|
564
|
+
it has in the [`ReplaceStep`](https://prosemirror.net/docs/ref/#transform.ReplaceStep) class.
|
|
565
|
+
*/
|
|
566
|
+
constructor(e, t, r, n, i, o, l = !1) {
|
|
567
|
+
super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = n, this.slice = i, this.insert = o, this.structure = l;
|
|
568
|
+
}
|
|
569
|
+
apply(e) {
|
|
570
|
+
if (this.structure && (q(e, this.from, this.gapFrom) || q(e, this.gapTo, this.to)))
|
|
571
|
+
return y.fail("Structure gap-replace would overwrite content");
|
|
572
|
+
let t = e.slice(this.gapFrom, this.gapTo);
|
|
573
|
+
if (t.openStart || t.openEnd)
|
|
574
|
+
return y.fail("Gap is not a flat range");
|
|
575
|
+
let r = this.slice.insertAt(this.insert, t.content);
|
|
576
|
+
return r ? y.fromReplace(e, this.from, this.to, r) : y.fail("Content does not fit in gap");
|
|
577
|
+
}
|
|
578
|
+
getMap() {
|
|
579
|
+
return new S([
|
|
580
|
+
this.from,
|
|
581
|
+
this.gapFrom - this.from,
|
|
582
|
+
this.insert,
|
|
583
|
+
this.gapTo,
|
|
584
|
+
this.to - this.gapTo,
|
|
585
|
+
this.slice.size - this.insert
|
|
586
|
+
]);
|
|
587
|
+
}
|
|
588
|
+
invert(e) {
|
|
589
|
+
let t = this.gapTo - this.gapFrom;
|
|
590
|
+
return new M(this.from, this.from + this.slice.size + t, this.from + this.insert, this.from + this.insert + t, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
591
|
+
}
|
|
592
|
+
map(e) {
|
|
593
|
+
let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), n = this.from == this.gapFrom ? t.pos : e.map(this.gapFrom, -1), i = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
|
|
594
|
+
return t.deletedAcross && r.deletedAcross || n < t.pos || i > r.pos ? null : new M(t.pos, r.pos, n, i, this.slice, this.insert, this.structure);
|
|
595
|
+
}
|
|
596
|
+
toJSON() {
|
|
597
|
+
let e = {
|
|
598
|
+
stepType: "replaceAround",
|
|
599
|
+
from: this.from,
|
|
600
|
+
to: this.to,
|
|
601
|
+
gapFrom: this.gapFrom,
|
|
602
|
+
gapTo: this.gapTo,
|
|
603
|
+
insert: this.insert
|
|
604
|
+
};
|
|
605
|
+
return this.slice.size && (e.slice = this.slice.toJSON()), this.structure && (e.structure = !0), e;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
@internal
|
|
609
|
+
*/
|
|
610
|
+
static fromJSON(e, t) {
|
|
611
|
+
if (typeof t.from != "number" || typeof t.to != "number" || typeof t.gapFrom != "number" || typeof t.gapTo != "number" || typeof t.insert != "number")
|
|
612
|
+
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
613
|
+
return new M(t.from, t.to, t.gapFrom, t.gapTo, g.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
k.jsonID("replaceAround", M);
|
|
617
|
+
function q(s, e, t) {
|
|
618
|
+
let r = s.resolve(e), n = t - e, i = r.depth;
|
|
619
|
+
for (; n > 0 && i > 0 && r.indexAfter(i) == r.node(i).childCount; )
|
|
620
|
+
i--, n--;
|
|
621
|
+
if (n > 0) {
|
|
622
|
+
let o = r.node(i).maybeChild(r.indexAfter(i));
|
|
623
|
+
for (; n > 0; ) {
|
|
624
|
+
if (!o || o.isLeaf)
|
|
625
|
+
return !0;
|
|
626
|
+
o = o.firstChild, n--;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return !1;
|
|
630
|
+
}
|
|
631
|
+
function pe(s, e, t, r) {
|
|
632
|
+
let n = [], i = [], o, l;
|
|
633
|
+
s.doc.nodesBetween(e, t, (a, h, p) => {
|
|
634
|
+
if (!a.isInline)
|
|
635
|
+
return;
|
|
636
|
+
let c = a.marks;
|
|
637
|
+
if (!r.isInSet(c) && p.type.allowsMarkType(r.type)) {
|
|
638
|
+
let f = Math.max(h, e), d = Math.min(h + a.nodeSize, t), u = r.addToSet(c);
|
|
639
|
+
for (let m = 0; m < c.length; m++)
|
|
640
|
+
c[m].isInSet(u) || (o && o.to == f && o.mark.eq(c[m]) ? o.to = d : n.push(o = new b(f, d, c[m])));
|
|
641
|
+
l && l.to == f ? l.to = d : i.push(l = new C(f, d, r));
|
|
642
|
+
}
|
|
643
|
+
}), n.forEach((a) => s.step(a)), i.forEach((a) => s.step(a));
|
|
644
|
+
}
|
|
645
|
+
function fe(s, e, t, r) {
|
|
646
|
+
let n = [], i = 0;
|
|
647
|
+
s.doc.nodesBetween(e, t, (o, l) => {
|
|
648
|
+
if (!o.isInline)
|
|
649
|
+
return;
|
|
650
|
+
i++;
|
|
651
|
+
let a = null;
|
|
652
|
+
if (r instanceof le) {
|
|
653
|
+
let h = o.marks, p;
|
|
654
|
+
for (; p = r.isInSet(h); )
|
|
655
|
+
(a || (a = [])).push(p), h = p.removeFromSet(h);
|
|
656
|
+
} else r ? r.isInSet(o.marks) && (a = [r]) : a = o.marks;
|
|
657
|
+
if (a && a.length) {
|
|
658
|
+
let h = Math.min(l + o.nodeSize, t);
|
|
659
|
+
for (let p = 0; p < a.length; p++) {
|
|
660
|
+
let c = a[p], f;
|
|
661
|
+
for (let d = 0; d < n.length; d++) {
|
|
662
|
+
let u = n[d];
|
|
663
|
+
u.step == i - 1 && c.eq(n[d].style) && (f = u);
|
|
664
|
+
}
|
|
665
|
+
f ? (f.to = h, f.step = i) : n.push({ style: c, from: Math.max(l, e), to: h, step: i });
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}), n.forEach((o) => s.step(new b(o.from, o.to, o.style)));
|
|
669
|
+
}
|
|
670
|
+
function $(s, e, t, r = t.contentMatch, n = !0) {
|
|
671
|
+
let i = s.doc.nodeAt(e), o = [], l = e + 1;
|
|
672
|
+
for (let a = 0; a < i.childCount; a++) {
|
|
673
|
+
let h = i.child(a), p = l + h.nodeSize, c = r.matchType(h.type);
|
|
674
|
+
if (!c)
|
|
675
|
+
o.push(new v(l, p, g.empty));
|
|
676
|
+
else {
|
|
677
|
+
r = c;
|
|
678
|
+
for (let f = 0; f < h.marks.length; f++)
|
|
679
|
+
t.allowsMarkType(h.marks[f].type) || s.step(new b(l, p, h.marks[f]));
|
|
680
|
+
if (n && h.isText && t.whitespace != "pre") {
|
|
681
|
+
let f, d = /\r?\n|\r/g, u;
|
|
682
|
+
for (; f = d.exec(h.text); )
|
|
683
|
+
u || (u = new g(w.from(t.schema.text(" ", t.allowedMarks(h.marks))), 0, 0)), o.push(new v(l + f.index, l + f.index + f[0].length, u));
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
l = p;
|
|
687
|
+
}
|
|
688
|
+
if (!r.validEnd) {
|
|
689
|
+
let a = r.fillBefore(w.empty, !0);
|
|
690
|
+
s.replace(l, l, new g(a, 0, 0));
|
|
691
|
+
}
|
|
692
|
+
for (let a = o.length - 1; a >= 0; a--)
|
|
693
|
+
s.step(o[a]);
|
|
694
|
+
}
|
|
695
|
+
function ce(s, e, t) {
|
|
696
|
+
return (e == 0 || s.canReplace(e, s.childCount)) && (t == s.childCount || s.canReplace(0, t));
|
|
697
|
+
}
|
|
698
|
+
function Fe(s) {
|
|
699
|
+
let t = s.parent.content.cutByIndex(s.startIndex, s.endIndex);
|
|
700
|
+
for (let r = s.depth, n = 0, i = 0; ; --r) {
|
|
701
|
+
let o = s.$from.node(r), l = s.$from.index(r) + n, a = s.$to.indexAfter(r) - i;
|
|
702
|
+
if (r < s.depth && o.canReplace(l, a, t))
|
|
703
|
+
return r;
|
|
704
|
+
if (r == 0 || o.type.spec.isolating || !ce(o, l, a))
|
|
705
|
+
break;
|
|
706
|
+
l && (n = 1), a < o.childCount && (i = 1);
|
|
707
|
+
}
|
|
708
|
+
return null;
|
|
709
|
+
}
|
|
710
|
+
function de(s, e, t) {
|
|
711
|
+
let { $from: r, $to: n, depth: i } = e, o = r.before(i + 1), l = n.after(i + 1), a = o, h = l, p = w.empty, c = 0;
|
|
712
|
+
for (let u = i, m = !1; u > t; u--)
|
|
713
|
+
m || r.index(u) > 0 ? (m = !0, p = w.from(r.node(u).copy(p)), c++) : a--;
|
|
714
|
+
let f = w.empty, d = 0;
|
|
715
|
+
for (let u = i, m = !1; u > t; u--)
|
|
716
|
+
m || n.after(u + 1) < n.end(u) ? (m = !0, f = w.from(n.node(u).copy(f)), d++) : h++;
|
|
717
|
+
s.step(new M(a, h, o, l, new g(p.append(f), c, d), p.size - c, !0));
|
|
718
|
+
}
|
|
719
|
+
function ze(s, e, t = null, r = s) {
|
|
720
|
+
let n = ue(s, e), i = n && me(r, e);
|
|
721
|
+
return i ? n.map(K).concat({ type: e, attrs: t }).concat(i.map(K)) : null;
|
|
722
|
+
}
|
|
723
|
+
function K(s) {
|
|
724
|
+
return { type: s, attrs: null };
|
|
725
|
+
}
|
|
726
|
+
function ue(s, e) {
|
|
727
|
+
let { parent: t, startIndex: r, endIndex: n } = s, i = t.contentMatchAt(r).findWrapping(e);
|
|
728
|
+
if (!i)
|
|
729
|
+
return null;
|
|
730
|
+
let o = i.length ? i[0] : e;
|
|
731
|
+
return t.canReplaceWith(r, n, o) ? i : null;
|
|
732
|
+
}
|
|
733
|
+
function me(s, e) {
|
|
734
|
+
let { parent: t, startIndex: r, endIndex: n } = s, i = t.child(r), o = e.contentMatch.findWrapping(i.type);
|
|
735
|
+
if (!o)
|
|
736
|
+
return null;
|
|
737
|
+
let a = (o.length ? o[o.length - 1] : e).contentMatch;
|
|
738
|
+
for (let h = r; a && h < n; h++)
|
|
739
|
+
a = a.matchType(t.child(h).type);
|
|
740
|
+
return !a || !a.validEnd ? null : o;
|
|
741
|
+
}
|
|
742
|
+
function ge(s, e, t) {
|
|
743
|
+
let r = w.empty;
|
|
744
|
+
for (let o = t.length - 1; o >= 0; o--) {
|
|
745
|
+
if (r.size) {
|
|
746
|
+
let l = t[o].type.contentMatch.matchFragment(r);
|
|
747
|
+
if (!l || !l.validEnd)
|
|
748
|
+
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
749
|
+
}
|
|
750
|
+
r = w.from(t[o].type.create(t[o].attrs, r));
|
|
751
|
+
}
|
|
752
|
+
let n = e.start, i = e.end;
|
|
753
|
+
s.step(new M(n, i, n, i, new g(r, 0, 0), t.length, !0));
|
|
754
|
+
}
|
|
755
|
+
function we(s, e, t, r, n) {
|
|
756
|
+
if (!r.isTextblock)
|
|
757
|
+
throw new RangeError("Type given to setBlockType should be a textblock");
|
|
758
|
+
let i = s.steps.length;
|
|
759
|
+
s.doc.nodesBetween(e, t, (o, l) => {
|
|
760
|
+
let a = typeof n == "function" ? n(o) : n;
|
|
761
|
+
if (o.isTextblock && !o.hasMarkup(r, a) && ye(s.doc, s.mapping.slice(i).map(l), r)) {
|
|
762
|
+
let h = null;
|
|
763
|
+
if (r.schema.linebreakReplacement) {
|
|
764
|
+
let d = r.whitespace == "pre", u = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
765
|
+
d && !u ? h = !1 : !d && u && (h = !0);
|
|
766
|
+
}
|
|
767
|
+
h === !1 && _(s, o, l, i), $(s, s.mapping.slice(i).map(l, 1), r, void 0, h === null);
|
|
768
|
+
let p = s.mapping.slice(i), c = p.map(l, 1), f = p.map(l + o.nodeSize, 1);
|
|
769
|
+
return s.step(new M(c, f, c + 1, f - 1, new g(w.from(r.create(a, null, o.marks)), 0, 0), 1, !0)), h === !0 && Z(s, o, l, i), !1;
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
function Z(s, e, t, r) {
|
|
774
|
+
e.forEach((n, i) => {
|
|
775
|
+
if (n.isText) {
|
|
776
|
+
let o, l = /\r?\n|\r/g;
|
|
777
|
+
for (; o = l.exec(n.text); ) {
|
|
778
|
+
let a = s.mapping.slice(r).map(t + 1 + i + o.index);
|
|
779
|
+
s.replaceWith(a, a + 1, e.type.schema.linebreakReplacement.create());
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
function _(s, e, t, r) {
|
|
785
|
+
e.forEach((n, i) => {
|
|
786
|
+
if (n.type == n.type.schema.linebreakReplacement) {
|
|
787
|
+
let o = s.mapping.slice(r).map(t + 1 + i);
|
|
788
|
+
s.replaceWith(o, o + 1, e.type.schema.text(`
|
|
789
|
+
`));
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
function ye(s, e, t) {
|
|
794
|
+
let r = s.resolve(e), n = r.index();
|
|
795
|
+
return r.parent.canReplaceWith(n, n + 1, t);
|
|
796
|
+
}
|
|
797
|
+
function ke(s, e, t, r, n) {
|
|
798
|
+
let i = s.doc.nodeAt(e);
|
|
799
|
+
if (!i)
|
|
800
|
+
throw new RangeError("No node at given position");
|
|
801
|
+
t || (t = i.type);
|
|
802
|
+
let o = t.create(r, null, n || i.marks);
|
|
803
|
+
if (i.isLeaf)
|
|
804
|
+
return s.replaceWith(e, e + i.nodeSize, o);
|
|
805
|
+
if (!t.validContent(i.content))
|
|
806
|
+
throw new RangeError("Invalid content for node type " + t.name);
|
|
807
|
+
s.step(new M(e, e + i.nodeSize, e + 1, e + i.nodeSize - 1, new g(w.from(o), 0, 0), 1, !0));
|
|
808
|
+
}
|
|
809
|
+
function Je(s, e, t = 1, r) {
|
|
810
|
+
let n = s.resolve(e), i = n.depth - t, o = r && r[r.length - 1] || n.parent;
|
|
811
|
+
if (i < 0 || n.parent.type.spec.isolating || !n.parent.canReplace(n.index(), n.parent.childCount) || !o.type.validContent(n.parent.content.cutByIndex(n.index(), n.parent.childCount)))
|
|
812
|
+
return !1;
|
|
813
|
+
for (let h = n.depth - 1, p = t - 2; h > i; h--, p--) {
|
|
814
|
+
let c = n.node(h), f = n.index(h);
|
|
815
|
+
if (c.type.spec.isolating)
|
|
816
|
+
return !1;
|
|
817
|
+
let d = c.content.cutByIndex(f, c.childCount), u = r && r[p + 1];
|
|
818
|
+
u && (d = d.replaceChild(0, u.type.create(u.attrs)));
|
|
819
|
+
let m = r && r[p] || c;
|
|
820
|
+
if (!c.canReplace(f + 1, c.childCount) || !m.type.validContent(d))
|
|
821
|
+
return !1;
|
|
822
|
+
}
|
|
823
|
+
let l = n.indexAfter(i), a = r && r[0];
|
|
824
|
+
return n.node(i).canReplaceWith(l, l, a ? a.type : n.node(i + 1).type);
|
|
825
|
+
}
|
|
826
|
+
function ve(s, e, t = 1, r) {
|
|
827
|
+
let n = s.doc.resolve(e), i = w.empty, o = w.empty;
|
|
828
|
+
for (let l = n.depth, a = n.depth - t, h = t - 1; l > a; l--, h--) {
|
|
829
|
+
i = w.from(n.node(l).copy(i));
|
|
830
|
+
let p = r && r[h];
|
|
831
|
+
o = w.from(p ? p.type.create(p.attrs, o) : n.node(l).copy(o));
|
|
832
|
+
}
|
|
833
|
+
s.step(new v(e, e, new g(i.append(o), t, t), !0));
|
|
834
|
+
}
|
|
835
|
+
function Ae(s, e) {
|
|
836
|
+
let t = s.resolve(e), r = t.index();
|
|
837
|
+
return j(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
|
|
838
|
+
}
|
|
839
|
+
function xe(s, e) {
|
|
840
|
+
e.content.size || s.type.compatibleContent(e.type);
|
|
841
|
+
let t = s.contentMatchAt(s.childCount), { linebreakReplacement: r } = s.type.schema;
|
|
842
|
+
for (let n = 0; n < e.childCount; n++) {
|
|
843
|
+
let i = e.child(n), o = i.type == r ? s.type.schema.nodes.text : i.type;
|
|
844
|
+
if (t = t.matchType(o), !t || !s.type.allowsMarks(i.marks))
|
|
845
|
+
return !1;
|
|
846
|
+
}
|
|
847
|
+
return t.validEnd;
|
|
848
|
+
}
|
|
849
|
+
function j(s, e) {
|
|
850
|
+
return !!(s && e && !s.isLeaf && xe(s, e));
|
|
851
|
+
}
|
|
852
|
+
function Be(s, e, t = -1) {
|
|
853
|
+
let r = s.resolve(e);
|
|
854
|
+
for (let n = r.depth; ; n--) {
|
|
855
|
+
let i, o, l = r.index(n);
|
|
856
|
+
if (n == r.depth ? (i = r.nodeBefore, o = r.nodeAfter) : t > 0 ? (i = r.node(n + 1), l++, o = r.node(n).maybeChild(l)) : (i = r.node(n).maybeChild(l - 1), o = r.node(n + 1)), i && !i.isTextblock && j(i, o) && r.node(n).canReplace(l, l + 1))
|
|
857
|
+
return e;
|
|
858
|
+
if (n == 0)
|
|
859
|
+
break;
|
|
860
|
+
e = t < 0 ? r.before(n) : r.after(n);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
function Se(s, e, t) {
|
|
864
|
+
let r = null, { linebreakReplacement: n } = s.doc.type.schema, i = s.doc.resolve(e - t), o = i.node().type;
|
|
865
|
+
if (n && o.inlineContent) {
|
|
866
|
+
let p = o.whitespace == "pre", c = !!o.contentMatch.matchType(n);
|
|
867
|
+
p && !c ? r = !1 : !p && c && (r = !0);
|
|
868
|
+
}
|
|
869
|
+
let l = s.steps.length;
|
|
870
|
+
if (r === !1) {
|
|
871
|
+
let p = s.doc.resolve(e + t);
|
|
872
|
+
_(s, p.node(), p.before(), l);
|
|
873
|
+
}
|
|
874
|
+
o.inlineContent && $(s, e + t - 1, o, i.node().contentMatchAt(i.index()), r == null);
|
|
875
|
+
let a = s.mapping.slice(l), h = a.map(e - t);
|
|
876
|
+
if (s.step(new v(h, a.map(e + t, -1), g.empty, !0)), r === !0) {
|
|
877
|
+
let p = s.doc.resolve(h);
|
|
878
|
+
Z(s, p.node(), p.before(), s.steps.length);
|
|
879
|
+
}
|
|
880
|
+
return s;
|
|
881
|
+
}
|
|
882
|
+
function be(s, e, t) {
|
|
883
|
+
let r = s.resolve(e);
|
|
884
|
+
if (r.parent.canReplaceWith(r.index(), r.index(), t))
|
|
885
|
+
return e;
|
|
886
|
+
if (r.parentOffset == 0)
|
|
887
|
+
for (let n = r.depth - 1; n >= 0; n--) {
|
|
888
|
+
let i = r.index(n);
|
|
889
|
+
if (r.node(n).canReplaceWith(i, i, t))
|
|
890
|
+
return r.before(n + 1);
|
|
891
|
+
if (i > 0)
|
|
892
|
+
return null;
|
|
893
|
+
}
|
|
894
|
+
if (r.parentOffset == r.parent.content.size)
|
|
895
|
+
for (let n = r.depth - 1; n >= 0; n--) {
|
|
896
|
+
let i = r.indexAfter(n);
|
|
897
|
+
if (r.node(n).canReplaceWith(i, i, t))
|
|
898
|
+
return r.after(n + 1);
|
|
899
|
+
if (i < r.node(n).childCount)
|
|
900
|
+
return null;
|
|
901
|
+
}
|
|
902
|
+
return null;
|
|
903
|
+
}
|
|
904
|
+
function We(s, e, t) {
|
|
905
|
+
let r = s.resolve(e);
|
|
906
|
+
if (!t.content.size)
|
|
907
|
+
return e;
|
|
908
|
+
let n = t.content;
|
|
909
|
+
for (let i = 0; i < t.openStart; i++)
|
|
910
|
+
n = n.firstChild.content;
|
|
911
|
+
for (let i = 1; i <= (t.openStart == 0 && t.size ? 2 : 1); i++)
|
|
912
|
+
for (let o = r.depth; o >= 0; o--) {
|
|
913
|
+
let l = o == r.depth ? 0 : r.pos <= (r.start(o + 1) + r.end(o + 1)) / 2 ? -1 : 1, a = r.index(o) + (l > 0 ? 1 : 0), h = r.node(o), p = !1;
|
|
914
|
+
if (i == 1)
|
|
915
|
+
p = h.canReplace(a, a, n);
|
|
916
|
+
else {
|
|
917
|
+
let c = h.contentMatchAt(a).findWrapping(n.firstChild.type);
|
|
918
|
+
p = c && h.canReplaceWith(a, a, c[0]);
|
|
919
|
+
}
|
|
920
|
+
if (p)
|
|
921
|
+
return l == 0 ? r.pos : l < 0 ? r.before(o + 1) : r.after(o + 1);
|
|
922
|
+
}
|
|
923
|
+
return null;
|
|
924
|
+
}
|
|
925
|
+
function Me(s, e, t = e, r = g.empty) {
|
|
926
|
+
if (e == t && !r.size)
|
|
927
|
+
return null;
|
|
928
|
+
let n = s.resolve(e), i = s.resolve(t);
|
|
929
|
+
return ee(n, i, r) ? new v(e, t, r) : new Ce(n, i, r).fit();
|
|
930
|
+
}
|
|
931
|
+
function ee(s, e, t) {
|
|
932
|
+
return !t.openStart && !t.openEnd && s.start() == e.start() && s.parent.canReplace(s.index(), e.index(), t.content);
|
|
933
|
+
}
|
|
934
|
+
class Ce {
|
|
935
|
+
constructor(e, t, r) {
|
|
936
|
+
this.$from = e, this.$to = t, this.unplaced = r, this.frontier = [], this.placed = w.empty;
|
|
937
|
+
for (let n = 0; n <= e.depth; n++) {
|
|
938
|
+
let i = e.node(n);
|
|
939
|
+
this.frontier.push({
|
|
940
|
+
type: i.type,
|
|
941
|
+
match: i.contentMatchAt(e.indexAfter(n))
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
for (let n = e.depth; n > 0; n--)
|
|
945
|
+
this.placed = w.from(e.node(n).copy(this.placed));
|
|
946
|
+
}
|
|
947
|
+
get depth() {
|
|
948
|
+
return this.frontier.length - 1;
|
|
949
|
+
}
|
|
950
|
+
fit() {
|
|
951
|
+
for (; this.unplaced.size; ) {
|
|
952
|
+
let h = this.findFittable();
|
|
953
|
+
h ? this.placeNodes(h) : this.openMore() || this.dropNode();
|
|
954
|
+
}
|
|
955
|
+
let e = this.mustMoveInline(), t = this.placed.size - this.depth - this.$from.depth, r = this.$from, n = this.close(e < 0 ? this.$to : r.doc.resolve(e));
|
|
956
|
+
if (!n)
|
|
957
|
+
return null;
|
|
958
|
+
let i = this.placed, o = r.depth, l = n.depth;
|
|
959
|
+
for (; o && l && i.childCount == 1; )
|
|
960
|
+
i = i.firstChild.content, o--, l--;
|
|
961
|
+
let a = new g(i, o, l);
|
|
962
|
+
return e > -1 ? new M(r.pos, e, this.$to.pos, this.$to.end(), a, t) : a.size || r.pos != this.$to.pos ? new v(r.pos, n.pos, a) : null;
|
|
963
|
+
}
|
|
964
|
+
// Find a position on the start spine of `this.unplaced` that has
|
|
965
|
+
// content that can be moved somewhere on the frontier. Returns two
|
|
966
|
+
// depths, one for the slice and one for the frontier.
|
|
967
|
+
findFittable() {
|
|
968
|
+
let e = this.unplaced.openStart;
|
|
969
|
+
for (let t = this.unplaced.content, r = 0, n = this.unplaced.openEnd; r < e; r++) {
|
|
970
|
+
let i = t.firstChild;
|
|
971
|
+
if (t.childCount > 1 && (n = 0), i.type.spec.isolating && n <= r) {
|
|
972
|
+
e = r;
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
t = i.content;
|
|
976
|
+
}
|
|
977
|
+
for (let t = 1; t <= 2; t++)
|
|
978
|
+
for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
979
|
+
let n, i = null;
|
|
980
|
+
r ? (i = W(this.unplaced.content, r - 1).firstChild, n = i.content) : n = this.unplaced.content;
|
|
981
|
+
let o = n.firstChild;
|
|
982
|
+
for (let l = this.depth; l >= 0; l--) {
|
|
983
|
+
let { type: a, match: h } = this.frontier[l], p, c = null;
|
|
984
|
+
if (t == 1 && (o ? h.matchType(o.type) || (c = h.fillBefore(w.from(o), !1)) : i && a.compatibleContent(i.type)))
|
|
985
|
+
return { sliceDepth: r, frontierDepth: l, parent: i, inject: c };
|
|
986
|
+
if (t == 2 && o && (p = h.findWrapping(o.type)))
|
|
987
|
+
return { sliceDepth: r, frontierDepth: l, parent: i, wrap: p };
|
|
988
|
+
if (i && h.matchType(i.type))
|
|
989
|
+
break;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
openMore() {
|
|
994
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
|
|
995
|
+
return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new g(e, t + 1, Math.max(r, n.size + t >= e.size - r ? t + 1 : 0)), !0);
|
|
996
|
+
}
|
|
997
|
+
dropNode() {
|
|
998
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, n = W(e, t);
|
|
999
|
+
if (n.childCount <= 1 && t > 0) {
|
|
1000
|
+
let i = e.size - t <= t + n.size;
|
|
1001
|
+
this.unplaced = new g(O(e, t - 1, 1), t - 1, i ? t - 1 : r);
|
|
1002
|
+
} else
|
|
1003
|
+
this.unplaced = new g(O(e, t, 1), t, r);
|
|
1004
|
+
}
|
|
1005
|
+
// Move content from the unplaced slice at `sliceDepth` to the
|
|
1006
|
+
// frontier node at `frontierDepth`. Close that frontier node when
|
|
1007
|
+
// applicable.
|
|
1008
|
+
placeNodes({ sliceDepth: e, frontierDepth: t, parent: r, inject: n, wrap: i }) {
|
|
1009
|
+
for (; this.depth > t; )
|
|
1010
|
+
this.closeFrontierNode();
|
|
1011
|
+
if (i)
|
|
1012
|
+
for (let m = 0; m < i.length; m++)
|
|
1013
|
+
this.openFrontierNode(i[m]);
|
|
1014
|
+
let o = this.unplaced, l = r ? r.content : o.content, a = o.openStart - e, h = 0, p = [], { match: c, type: f } = this.frontier[t];
|
|
1015
|
+
if (n) {
|
|
1016
|
+
for (let m = 0; m < n.childCount; m++)
|
|
1017
|
+
p.push(n.child(m));
|
|
1018
|
+
c = c.matchFragment(n);
|
|
1019
|
+
}
|
|
1020
|
+
let d = l.size + e - (o.content.size - o.openEnd);
|
|
1021
|
+
for (; h < l.childCount; ) {
|
|
1022
|
+
let m = l.child(h), x = c.matchType(m.type);
|
|
1023
|
+
if (!x)
|
|
1024
|
+
break;
|
|
1025
|
+
h++, (h > 1 || a == 0 || m.content.size) && (c = x, p.push(te(m.mark(f.allowedMarks(m.marks)), h == 1 ? a : 0, h == l.childCount ? d : -1)));
|
|
1026
|
+
}
|
|
1027
|
+
let u = h == l.childCount;
|
|
1028
|
+
u || (d = -1), this.placed = F(this.placed, t, w.from(p)), this.frontier[t].match = c, u && d < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
1029
|
+
for (let m = 0, x = l; m < d; m++) {
|
|
1030
|
+
let I = x.lastChild;
|
|
1031
|
+
this.frontier.push({ type: I.type, match: I.contentMatchAt(I.childCount) }), x = I.content;
|
|
1032
|
+
}
|
|
1033
|
+
this.unplaced = u ? e == 0 ? g.empty : new g(O(o.content, e - 1, 1), e - 1, d < 0 ? o.openEnd : e - 1) : new g(O(o.content, e, h), o.openStart, o.openEnd);
|
|
1034
|
+
}
|
|
1035
|
+
mustMoveInline() {
|
|
1036
|
+
if (!this.$to.parent.isTextblock)
|
|
1037
|
+
return -1;
|
|
1038
|
+
let e = this.frontier[this.depth], t;
|
|
1039
|
+
if (!e.type.isTextblock || !D(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
|
|
1040
|
+
return -1;
|
|
1041
|
+
let { depth: r } = this.$to, n = this.$to.after(r);
|
|
1042
|
+
for (; r > 1 && n == this.$to.end(--r); )
|
|
1043
|
+
++n;
|
|
1044
|
+
return n;
|
|
1045
|
+
}
|
|
1046
|
+
findCloseLevel(e) {
|
|
1047
|
+
e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
1048
|
+
let { match: r, type: n } = this.frontier[t], i = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), o = D(e, t, n, r, i);
|
|
1049
|
+
if (o) {
|
|
1050
|
+
for (let l = t - 1; l >= 0; l--) {
|
|
1051
|
+
let { match: a, type: h } = this.frontier[l], p = D(e, l, h, a, !0);
|
|
1052
|
+
if (!p || p.childCount)
|
|
1053
|
+
continue e;
|
|
1054
|
+
}
|
|
1055
|
+
return { depth: t, fit: o, move: i ? e.doc.resolve(e.after(t + 1)) : e };
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
close(e) {
|
|
1060
|
+
let t = this.findCloseLevel(e);
|
|
1061
|
+
if (!t)
|
|
1062
|
+
return null;
|
|
1063
|
+
for (; this.depth > t.depth; )
|
|
1064
|
+
this.closeFrontierNode();
|
|
1065
|
+
t.fit.childCount && (this.placed = F(this.placed, t.depth, t.fit)), e = t.move;
|
|
1066
|
+
for (let r = t.depth + 1; r <= e.depth; r++) {
|
|
1067
|
+
let n = e.node(r), i = n.type.contentMatch.fillBefore(n.content, !0, e.index(r));
|
|
1068
|
+
this.openFrontierNode(n.type, n.attrs, i);
|
|
1069
|
+
}
|
|
1070
|
+
return e;
|
|
1071
|
+
}
|
|
1072
|
+
openFrontierNode(e, t = null, r) {
|
|
1073
|
+
let n = this.frontier[this.depth];
|
|
1074
|
+
n.match = n.match.matchType(e), this.placed = F(this.placed, this.depth, w.from(e.create(t, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
1075
|
+
}
|
|
1076
|
+
closeFrontierNode() {
|
|
1077
|
+
let t = this.frontier.pop().match.fillBefore(w.empty, !0);
|
|
1078
|
+
t.childCount && (this.placed = F(this.placed, this.frontier.length, t));
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
function O(s, e, t) {
|
|
1082
|
+
return e == 0 ? s.cutByIndex(t, s.childCount) : s.replaceChild(0, s.firstChild.copy(O(s.firstChild.content, e - 1, t)));
|
|
1083
|
+
}
|
|
1084
|
+
function F(s, e, t) {
|
|
1085
|
+
return e == 0 ? s.append(t) : s.replaceChild(s.childCount - 1, s.lastChild.copy(F(s.lastChild.content, e - 1, t)));
|
|
1086
|
+
}
|
|
1087
|
+
function W(s, e) {
|
|
1088
|
+
for (let t = 0; t < e; t++)
|
|
1089
|
+
s = s.firstChild.content;
|
|
1090
|
+
return s;
|
|
1091
|
+
}
|
|
1092
|
+
function te(s, e, t) {
|
|
1093
|
+
if (e <= 0)
|
|
1094
|
+
return s;
|
|
1095
|
+
let r = s.content;
|
|
1096
|
+
return e > 1 && (r = r.replaceChild(0, te(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = s.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(s.type.contentMatch.matchFragment(r).fillBefore(w.empty, !0)))), s.copy(r);
|
|
1097
|
+
}
|
|
1098
|
+
function D(s, e, t, r, n) {
|
|
1099
|
+
let i = s.node(e), o = n ? s.indexAfter(e) : s.index(e);
|
|
1100
|
+
if (o == i.childCount && !t.compatibleContent(i.type))
|
|
1101
|
+
return null;
|
|
1102
|
+
let l = r.fillBefore(i.content, !0, o);
|
|
1103
|
+
return l && !Ne(t, i.content, o) ? l : null;
|
|
1104
|
+
}
|
|
1105
|
+
function Ne(s, e, t) {
|
|
1106
|
+
for (let r = t; r < e.childCount; r++)
|
|
1107
|
+
if (!s.allowsMarks(e.child(r).marks))
|
|
1108
|
+
return !0;
|
|
1109
|
+
return !1;
|
|
1110
|
+
}
|
|
1111
|
+
function Ie(s) {
|
|
1112
|
+
return s.spec.defining || s.spec.definingForContent;
|
|
1113
|
+
}
|
|
1114
|
+
function Re(s, e, t, r) {
|
|
1115
|
+
if (!r.size)
|
|
1116
|
+
return s.deleteRange(e, t);
|
|
1117
|
+
let n = s.doc.resolve(e), i = s.doc.resolve(t);
|
|
1118
|
+
if (ee(n, i, r))
|
|
1119
|
+
return s.step(new v(e, t, r));
|
|
1120
|
+
let o = ne(n, i);
|
|
1121
|
+
o[o.length - 1] == 0 && o.pop();
|
|
1122
|
+
let l = -(n.depth + 1);
|
|
1123
|
+
o.unshift(l);
|
|
1124
|
+
for (let f = n.depth, d = n.pos - 1; f > 0; f--, d--) {
|
|
1125
|
+
let u = n.node(f).type.spec;
|
|
1126
|
+
if (u.defining || u.definingAsContext || u.isolating)
|
|
1127
|
+
break;
|
|
1128
|
+
o.indexOf(f) > -1 ? l = f : n.before(f) == d && o.splice(1, 0, -f);
|
|
1129
|
+
}
|
|
1130
|
+
let a = o.indexOf(l), h = [], p = r.openStart;
|
|
1131
|
+
for (let f = r.content, d = 0; ; d++) {
|
|
1132
|
+
let u = f.firstChild;
|
|
1133
|
+
if (h.push(u), d == r.openStart)
|
|
1134
|
+
break;
|
|
1135
|
+
f = u.content;
|
|
1136
|
+
}
|
|
1137
|
+
for (let f = p - 1; f >= 0; f--) {
|
|
1138
|
+
let d = h[f], u = Ie(d.type);
|
|
1139
|
+
if (u && !d.sameMarkup(n.node(Math.abs(l) - 1)))
|
|
1140
|
+
p = f;
|
|
1141
|
+
else if (u || !d.type.isTextblock)
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
for (let f = r.openStart; f >= 0; f--) {
|
|
1145
|
+
let d = (f + p + 1) % (r.openStart + 1), u = h[d];
|
|
1146
|
+
if (u)
|
|
1147
|
+
for (let m = 0; m < o.length; m++) {
|
|
1148
|
+
let x = o[(m + a) % o.length], I = !0;
|
|
1149
|
+
x < 0 && (I = !1, x = -x);
|
|
1150
|
+
let ie = n.node(x - 1), G = n.index(x - 1);
|
|
1151
|
+
if (ie.canReplaceWith(G, G, u.type, u.marks))
|
|
1152
|
+
return s.replace(n.before(x), I ? i.after(x) : t, new g(re(r.content, 0, r.openStart, d), d, r.openEnd));
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
let c = s.steps.length;
|
|
1156
|
+
for (let f = o.length - 1; f >= 0 && (s.replace(e, t, r), !(s.steps.length > c)); f--) {
|
|
1157
|
+
let d = o[f];
|
|
1158
|
+
d < 0 || (e = n.before(d), t = i.after(d));
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
function re(s, e, t, r, n) {
|
|
1162
|
+
if (e < t) {
|
|
1163
|
+
let i = s.firstChild;
|
|
1164
|
+
s = s.replaceChild(0, i.copy(re(i.content, e + 1, t, r, i)));
|
|
1165
|
+
}
|
|
1166
|
+
if (e > r) {
|
|
1167
|
+
let i = n.contentMatchAt(0), o = i.fillBefore(s).append(s);
|
|
1168
|
+
s = o.append(i.matchFragment(o).fillBefore(w.empty, !0));
|
|
1169
|
+
}
|
|
1170
|
+
return s;
|
|
1171
|
+
}
|
|
1172
|
+
function Ee(s, e, t, r) {
|
|
1173
|
+
if (!r.isInline && e == t && s.doc.resolve(e).parent.content.size) {
|
|
1174
|
+
let n = be(s.doc, e, r.type);
|
|
1175
|
+
n != null && (e = t = n);
|
|
1176
|
+
}
|
|
1177
|
+
s.replaceRange(e, t, new g(w.from(r), 0, 0));
|
|
1178
|
+
}
|
|
1179
|
+
function Te(s, e, t) {
|
|
1180
|
+
let r = s.doc.resolve(e), n = s.doc.resolve(t), i = ne(r, n);
|
|
1181
|
+
for (let o = 0; o < i.length; o++) {
|
|
1182
|
+
let l = i[o], a = o == i.length - 1;
|
|
1183
|
+
if (a && l == 0 || r.node(l).type.contentMatch.validEnd)
|
|
1184
|
+
return s.delete(r.start(l), n.end(l));
|
|
1185
|
+
if (l > 0 && (a || r.node(l - 1).canReplace(r.index(l - 1), n.indexAfter(l - 1))))
|
|
1186
|
+
return s.delete(r.before(l), n.after(l));
|
|
1187
|
+
}
|
|
1188
|
+
for (let o = 1; o <= r.depth && o <= n.depth; o++)
|
|
1189
|
+
if (e - r.start(o) == r.depth - o && t > r.end(o) && n.end(o) - t != n.depth - o && r.start(o - 1) == n.start(o - 1) && r.node(o - 1).canReplace(r.index(o - 1), n.index(o - 1)))
|
|
1190
|
+
return s.delete(r.before(o), t);
|
|
1191
|
+
s.delete(e, t);
|
|
1192
|
+
}
|
|
1193
|
+
function ne(s, e) {
|
|
1194
|
+
let t = [], r = Math.min(s.depth, e.depth);
|
|
1195
|
+
for (let n = r; n >= 0; n--) {
|
|
1196
|
+
let i = s.start(n);
|
|
1197
|
+
if (i < s.pos - (s.depth - n) || e.end(n) > e.pos + (e.depth - n) || s.node(n).type.spec.isolating || e.node(n).type.spec.isolating)
|
|
1198
|
+
break;
|
|
1199
|
+
(i == e.start(n) || n == s.depth && n == e.depth && s.parent.inlineContent && e.parent.inlineContent && n && e.start(n - 1) == i - 1) && t.push(n);
|
|
1200
|
+
}
|
|
1201
|
+
return t;
|
|
1202
|
+
}
|
|
1203
|
+
class E extends k {
|
|
1204
|
+
/**
|
|
1205
|
+
Construct an attribute step.
|
|
1206
|
+
*/
|
|
1207
|
+
constructor(e, t, r) {
|
|
1208
|
+
super(), this.pos = e, this.attr = t, this.value = r;
|
|
1209
|
+
}
|
|
1210
|
+
apply(e) {
|
|
1211
|
+
let t = e.nodeAt(this.pos);
|
|
1212
|
+
if (!t)
|
|
1213
|
+
return y.fail("No node at attribute step's position");
|
|
1214
|
+
let r = /* @__PURE__ */ Object.create(null);
|
|
1215
|
+
for (let i in t.attrs)
|
|
1216
|
+
r[i] = t.attrs[i];
|
|
1217
|
+
r[this.attr] = this.value;
|
|
1218
|
+
let n = t.type.create(r, null, t.marks);
|
|
1219
|
+
return y.fromReplace(e, this.pos, this.pos + 1, new g(w.from(n), 0, t.isLeaf ? 0 : 1));
|
|
1220
|
+
}
|
|
1221
|
+
getMap() {
|
|
1222
|
+
return S.empty;
|
|
1223
|
+
}
|
|
1224
|
+
invert(e) {
|
|
1225
|
+
return new E(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
|
|
1226
|
+
}
|
|
1227
|
+
map(e) {
|
|
1228
|
+
let t = e.mapResult(this.pos, 1);
|
|
1229
|
+
return t.deletedAfter ? null : new E(t.pos, this.attr, this.value);
|
|
1230
|
+
}
|
|
1231
|
+
toJSON() {
|
|
1232
|
+
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
1233
|
+
}
|
|
1234
|
+
static fromJSON(e, t) {
|
|
1235
|
+
if (typeof t.pos != "number" || typeof t.attr != "string")
|
|
1236
|
+
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
1237
|
+
return new E(t.pos, t.attr, t.value);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
k.jsonID("attr", E);
|
|
1241
|
+
class z extends k {
|
|
1242
|
+
/**
|
|
1243
|
+
Construct an attribute step.
|
|
1244
|
+
*/
|
|
1245
|
+
constructor(e, t) {
|
|
1246
|
+
super(), this.attr = e, this.value = t;
|
|
1247
|
+
}
|
|
1248
|
+
apply(e) {
|
|
1249
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
1250
|
+
for (let n in e.attrs)
|
|
1251
|
+
t[n] = e.attrs[n];
|
|
1252
|
+
t[this.attr] = this.value;
|
|
1253
|
+
let r = e.type.create(t, e.content, e.marks);
|
|
1254
|
+
return y.ok(r);
|
|
1255
|
+
}
|
|
1256
|
+
getMap() {
|
|
1257
|
+
return S.empty;
|
|
1258
|
+
}
|
|
1259
|
+
invert(e) {
|
|
1260
|
+
return new z(this.attr, e.attrs[this.attr]);
|
|
1261
|
+
}
|
|
1262
|
+
map(e) {
|
|
1263
|
+
return this;
|
|
1264
|
+
}
|
|
1265
|
+
toJSON() {
|
|
1266
|
+
return { stepType: "docAttr", attr: this.attr, value: this.value };
|
|
1267
|
+
}
|
|
1268
|
+
static fromJSON(e, t) {
|
|
1269
|
+
if (typeof t.attr != "string")
|
|
1270
|
+
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
1271
|
+
return new z(t.attr, t.value);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
k.jsonID("docAttr", z);
|
|
1275
|
+
let T = class extends Error {
|
|
1276
|
+
};
|
|
1277
|
+
T = function s(e) {
|
|
1278
|
+
let t = Error.call(this, e);
|
|
1279
|
+
return t.__proto__ = s.prototype, t;
|
|
1280
|
+
};
|
|
1281
|
+
T.prototype = Object.create(Error.prototype);
|
|
1282
|
+
T.prototype.constructor = T;
|
|
1283
|
+
T.prototype.name = "TransformError";
|
|
1284
|
+
class De {
|
|
1285
|
+
/**
|
|
1286
|
+
Create a transform that starts with the given document.
|
|
1287
|
+
*/
|
|
1288
|
+
constructor(e) {
|
|
1289
|
+
this.doc = e, this.steps = [], this.docs = [], this.mapping = new A();
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
The starting document.
|
|
1293
|
+
*/
|
|
1294
|
+
get before() {
|
|
1295
|
+
return this.docs.length ? this.docs[0] : this.doc;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
Apply a new step in this transform, saving the result. Throws an
|
|
1299
|
+
error when the step fails.
|
|
1300
|
+
*/
|
|
1301
|
+
step(e) {
|
|
1302
|
+
let t = this.maybeStep(e);
|
|
1303
|
+
if (t.failed)
|
|
1304
|
+
throw new T(t.failed);
|
|
1305
|
+
return this;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
Try to apply a step in this transformation, ignoring it if it
|
|
1309
|
+
fails. Returns the step result.
|
|
1310
|
+
*/
|
|
1311
|
+
maybeStep(e) {
|
|
1312
|
+
let t = e.apply(this.doc);
|
|
1313
|
+
return t.failed || this.addStep(e, t.doc), t;
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
True when the document has been changed (when there are any
|
|
1317
|
+
steps).
|
|
1318
|
+
*/
|
|
1319
|
+
get docChanged() {
|
|
1320
|
+
return this.steps.length > 0;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
Return a single range, in post-transform document positions,
|
|
1324
|
+
that covers all content changed by this transform. Returns null
|
|
1325
|
+
if no replacements are made. Note that this will ignore changes
|
|
1326
|
+
that add/remove marks without replacing the underlying content.
|
|
1327
|
+
*/
|
|
1328
|
+
changedRange() {
|
|
1329
|
+
let e = 1e9, t = -1e9;
|
|
1330
|
+
for (let r = 0; r < this.mapping.maps.length; r++) {
|
|
1331
|
+
let n = this.mapping.maps[r];
|
|
1332
|
+
r && (e = n.map(e, 1), t = n.map(t, -1)), n.forEach((i, o, l, a) => {
|
|
1333
|
+
e = Math.min(e, l), t = Math.max(t, a);
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
return e == 1e9 ? null : { from: e, to: t };
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
@internal
|
|
1340
|
+
*/
|
|
1341
|
+
addStep(e, t) {
|
|
1342
|
+
this.docs.push(this.doc), this.steps.push(e), this.mapping.appendMap(e.getMap()), this.doc = t;
|
|
1343
|
+
}
|
|
1344
|
+
/**
|
|
1345
|
+
Replace the part of the document between `from` and `to` with the
|
|
1346
|
+
given `slice`.
|
|
1347
|
+
*/
|
|
1348
|
+
replace(e, t = e, r = g.empty) {
|
|
1349
|
+
let n = Me(this.doc, e, t, r);
|
|
1350
|
+
return n && this.step(n), this;
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
Replace the given range with the given content, which may be a
|
|
1354
|
+
fragment, node, or array of nodes.
|
|
1355
|
+
*/
|
|
1356
|
+
replaceWith(e, t, r) {
|
|
1357
|
+
return this.replace(e, t, new g(w.from(r), 0, 0));
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
Delete the content between the given positions.
|
|
1361
|
+
*/
|
|
1362
|
+
delete(e, t) {
|
|
1363
|
+
return this.replace(e, t, g.empty);
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
Insert the given content at the given position.
|
|
1367
|
+
*/
|
|
1368
|
+
insert(e, t) {
|
|
1369
|
+
return this.replaceWith(e, e, t);
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
Replace a range of the document with a given slice, using
|
|
1373
|
+
`from`, `to`, and the slice's
|
|
1374
|
+
[`openStart`](https://prosemirror.net/docs/ref/#model.Slice.openStart) property as hints, rather
|
|
1375
|
+
than fixed start and end points. This method may grow the
|
|
1376
|
+
replaced area or close open nodes in the slice in order to get a
|
|
1377
|
+
fit that is more in line with WYSIWYG expectations, by dropping
|
|
1378
|
+
fully covered parent nodes of the replaced region when they are
|
|
1379
|
+
marked [non-defining as
|
|
1380
|
+
context](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext), or including an
|
|
1381
|
+
open parent node from the slice that _is_ marked as [defining
|
|
1382
|
+
its content](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
|
|
1383
|
+
|
|
1384
|
+
This is the method, for example, to handle paste. The similar
|
|
1385
|
+
[`replace`](https://prosemirror.net/docs/ref/#transform.Transform.replace) method is a more
|
|
1386
|
+
primitive tool which will _not_ move the start and end of its given
|
|
1387
|
+
range, and is useful in situations where you need more precise
|
|
1388
|
+
control over what happens.
|
|
1389
|
+
*/
|
|
1390
|
+
replaceRange(e, t, r) {
|
|
1391
|
+
return Re(this, e, t, r), this;
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
Replace the given range with a node, but use `from` and `to` as
|
|
1395
|
+
hints, rather than precise positions. When from and to are the same
|
|
1396
|
+
and are at the start or end of a parent node in which the given
|
|
1397
|
+
node doesn't fit, this method may _move_ them out towards a parent
|
|
1398
|
+
that does allow the given node to be placed. When the given range
|
|
1399
|
+
completely covers a parent node, this method may completely replace
|
|
1400
|
+
that parent node.
|
|
1401
|
+
*/
|
|
1402
|
+
replaceRangeWith(e, t, r) {
|
|
1403
|
+
return Ee(this, e, t, r), this;
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
Delete the given range, expanding it to cover fully covered
|
|
1407
|
+
parent nodes until a valid replace is found.
|
|
1408
|
+
*/
|
|
1409
|
+
deleteRange(e, t) {
|
|
1410
|
+
return Te(this, e, t), this;
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
Split the content in the given range off from its parent, if there
|
|
1414
|
+
is sibling content before or after it, and move it up the tree to
|
|
1415
|
+
the depth specified by `target`. You'll probably want to use
|
|
1416
|
+
[`liftTarget`](https://prosemirror.net/docs/ref/#transform.liftTarget) to compute `target`, to make
|
|
1417
|
+
sure the lift is valid.
|
|
1418
|
+
*/
|
|
1419
|
+
lift(e, t) {
|
|
1420
|
+
return de(this, e, t), this;
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
Join the blocks around the given position. If depth is 2, their
|
|
1424
|
+
last and first siblings are also joined, and so on.
|
|
1425
|
+
*/
|
|
1426
|
+
join(e, t = 1) {
|
|
1427
|
+
return Se(this, e, t), this;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
|
|
1431
|
+
The wrappers are assumed to be valid in this position, and should
|
|
1432
|
+
probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
|
|
1433
|
+
*/
|
|
1434
|
+
wrap(e, t) {
|
|
1435
|
+
return ge(this, e, t), this;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
Set the type of all textblocks (partly) between `from` and `to` to
|
|
1439
|
+
the given node type with the given attributes.
|
|
1440
|
+
*/
|
|
1441
|
+
setBlockType(e, t = e, r, n = null) {
|
|
1442
|
+
return we(this, e, t, r, n), this;
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
Change the type, attributes, and/or marks of the node at `pos`.
|
|
1446
|
+
When `type` isn't given, the existing node type is preserved,
|
|
1447
|
+
*/
|
|
1448
|
+
setNodeMarkup(e, t, r = null, n) {
|
|
1449
|
+
return ke(this, e, t, r, n), this;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
Set a single attribute on a given node to a new value.
|
|
1453
|
+
The `pos` addresses the document content. Use `setDocAttribute`
|
|
1454
|
+
to set attributes on the document itself.
|
|
1455
|
+
*/
|
|
1456
|
+
setNodeAttribute(e, t, r) {
|
|
1457
|
+
return this.step(new E(e, t, r)), this;
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
Set a single attribute on the document to a new value.
|
|
1461
|
+
*/
|
|
1462
|
+
setDocAttribute(e, t) {
|
|
1463
|
+
return this.step(new z(e, t)), this;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
Add a mark to the node at position `pos`.
|
|
1467
|
+
*/
|
|
1468
|
+
addNodeMark(e, t) {
|
|
1469
|
+
return this.step(new N(e, t)), this;
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
Remove a mark (or all marks of the given type) from the node at
|
|
1473
|
+
position `pos`.
|
|
1474
|
+
*/
|
|
1475
|
+
removeNodeMark(e, t) {
|
|
1476
|
+
let r = this.doc.nodeAt(e);
|
|
1477
|
+
if (!r)
|
|
1478
|
+
throw new RangeError("No node at position " + e);
|
|
1479
|
+
if (t instanceof oe)
|
|
1480
|
+
t.isInSet(r.marks) && this.step(new R(e, t));
|
|
1481
|
+
else {
|
|
1482
|
+
let n = r.marks, i, o = [];
|
|
1483
|
+
for (; i = t.isInSet(n); )
|
|
1484
|
+
o.push(new R(e, i)), n = i.removeFromSet(n);
|
|
1485
|
+
for (let l = o.length - 1; l >= 0; l--)
|
|
1486
|
+
this.step(o[l]);
|
|
1487
|
+
}
|
|
1488
|
+
return this;
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
Split the node at the given position, and optionally, if `depth` is
|
|
1492
|
+
greater than one, any number of nodes above that. By default, the
|
|
1493
|
+
parts split off will inherit the node type of the original node.
|
|
1494
|
+
This can be changed by passing an array of types and attributes to
|
|
1495
|
+
use after the split (with the outermost nodes coming first).
|
|
1496
|
+
*/
|
|
1497
|
+
split(e, t = 1, r) {
|
|
1498
|
+
return ve(this, e, t, r), this;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
Add the given mark to the inline content between `from` and `to`.
|
|
1502
|
+
*/
|
|
1503
|
+
addMark(e, t, r) {
|
|
1504
|
+
return pe(this, e, t, r), this;
|
|
1505
|
+
}
|
|
1506
|
+
/**
|
|
1507
|
+
Remove marks from inline nodes between `from` and `to`. When
|
|
1508
|
+
`mark` is a single mark, remove precisely that mark. When it is
|
|
1509
|
+
a mark type, remove all marks of that type. When it is null,
|
|
1510
|
+
remove all marks of any type.
|
|
1511
|
+
*/
|
|
1512
|
+
removeMark(e, t, r) {
|
|
1513
|
+
return fe(this, e, t, r), this;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
Removes all marks and nodes from the content of the node at
|
|
1517
|
+
`pos` that don't match the given new parent node type. Accepts
|
|
1518
|
+
an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
|
|
1519
|
+
third argument.
|
|
1520
|
+
*/
|
|
1521
|
+
clearIncompatible(e, t, r) {
|
|
1522
|
+
return $(this, e, t, r), this;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
export {
|
|
1526
|
+
C as AddMarkStep,
|
|
1527
|
+
N as AddNodeMarkStep,
|
|
1528
|
+
E as AttrStep,
|
|
1529
|
+
z as DocAttrStep,
|
|
1530
|
+
L as MapResult,
|
|
1531
|
+
A as Mapping,
|
|
1532
|
+
b as RemoveMarkStep,
|
|
1533
|
+
R as RemoveNodeMarkStep,
|
|
1534
|
+
M as ReplaceAroundStep,
|
|
1535
|
+
v as ReplaceStep,
|
|
1536
|
+
k as Step,
|
|
1537
|
+
S as StepMap,
|
|
1538
|
+
y as StepResult,
|
|
1539
|
+
De as Transform,
|
|
1540
|
+
T as TransformError,
|
|
1541
|
+
Ae as canJoin,
|
|
1542
|
+
Je as canSplit,
|
|
1543
|
+
We as dropPoint,
|
|
1544
|
+
ze as findWrapping,
|
|
1545
|
+
be as insertPoint,
|
|
1546
|
+
Be as joinPoint,
|
|
1547
|
+
Fe as liftTarget,
|
|
1548
|
+
Me as replaceStep
|
|
1549
|
+
};
|