@btst/stack 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.mjs +5 -0
- package/dist/_virtual/a11y-dark.cjs +5 -0
- package/dist/_virtual/a11y-dark.mjs +3 -0
- package/dist/_virtual/atom-dark.cjs +5 -0
- package/dist/_virtual/atom-dark.mjs +3 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
- package/dist/_virtual/cb.cjs +5 -0
- package/dist/_virtual/cb.mjs +3 -0
- package/dist/_virtual/coldark-cold.cjs +5 -0
- package/dist/_virtual/coldark-cold.mjs +3 -0
- package/dist/_virtual/coldark-dark.cjs +5 -0
- package/dist/_virtual/coldark-dark.mjs +3 -0
- package/dist/_virtual/coy-without-shadows.cjs +5 -0
- package/dist/_virtual/coy-without-shadows.mjs +3 -0
- package/dist/_virtual/coy.cjs +5 -0
- package/dist/_virtual/coy.mjs +3 -0
- package/dist/_virtual/darcula.cjs +5 -0
- package/dist/_virtual/darcula.mjs +3 -0
- package/dist/_virtual/dark.cjs +5 -0
- package/dist/_virtual/dark.mjs +3 -0
- package/dist/_virtual/dracula.cjs +5 -0
- package/dist/_virtual/dracula.mjs +3 -0
- package/dist/_virtual/duotone-dark.cjs +5 -0
- package/dist/_virtual/duotone-dark.mjs +3 -0
- package/dist/_virtual/duotone-earth.cjs +5 -0
- package/dist/_virtual/duotone-earth.mjs +3 -0
- package/dist/_virtual/duotone-forest.cjs +5 -0
- package/dist/_virtual/duotone-forest.mjs +3 -0
- package/dist/_virtual/duotone-light.cjs +5 -0
- package/dist/_virtual/duotone-light.mjs +3 -0
- package/dist/_virtual/duotone-sea.cjs +5 -0
- package/dist/_virtual/duotone-sea.mjs +3 -0
- package/dist/_virtual/duotone-space.cjs +5 -0
- package/dist/_virtual/duotone-space.mjs +3 -0
- package/dist/_virtual/funky.cjs +5 -0
- package/dist/_virtual/funky.mjs +3 -0
- package/dist/_virtual/ghcolors.cjs +5 -0
- package/dist/_virtual/ghcolors.mjs +3 -0
- package/dist/_virtual/gruvbox-dark.cjs +5 -0
- package/dist/_virtual/gruvbox-dark.mjs +3 -0
- package/dist/_virtual/gruvbox-light.cjs +5 -0
- package/dist/_virtual/gruvbox-light.mjs +3 -0
- package/dist/_virtual/holi-theme.cjs +5 -0
- package/dist/_virtual/holi-theme.mjs +3 -0
- package/dist/_virtual/hopscotch.cjs +5 -0
- package/dist/_virtual/hopscotch.mjs +3 -0
- package/dist/_virtual/index.cjs +9 -0
- package/dist/_virtual/index.mjs +7 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.mjs +5 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.mjs +5 -0
- package/dist/_virtual/index4.cjs +9 -0
- package/dist/_virtual/index4.mjs +7 -0
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.mjs +3 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.mjs +3 -0
- package/dist/_virtual/index7.cjs +5 -0
- package/dist/_virtual/index7.mjs +3 -0
- package/dist/_virtual/index8.cjs +5 -0
- package/dist/_virtual/index8.mjs +3 -0
- package/dist/_virtual/interopRequireDefault.cjs +5 -0
- package/dist/_virtual/interopRequireDefault.mjs +3 -0
- package/dist/_virtual/lucario.cjs +5 -0
- package/dist/_virtual/lucario.mjs +3 -0
- package/dist/_virtual/material-dark.cjs +5 -0
- package/dist/_virtual/material-dark.mjs +3 -0
- package/dist/_virtual/material-light.cjs +5 -0
- package/dist/_virtual/material-light.mjs +3 -0
- package/dist/_virtual/material-oceanic.cjs +5 -0
- package/dist/_virtual/material-oceanic.mjs +3 -0
- package/dist/_virtual/night-owl.cjs +5 -0
- package/dist/_virtual/night-owl.mjs +3 -0
- package/dist/_virtual/nord.cjs +5 -0
- package/dist/_virtual/nord.mjs +3 -0
- package/dist/_virtual/okaidia.cjs +5 -0
- package/dist/_virtual/okaidia.mjs +3 -0
- package/dist/_virtual/one-dark.cjs +5 -0
- package/dist/_virtual/one-dark.mjs +3 -0
- package/dist/_virtual/one-light.cjs +5 -0
- package/dist/_virtual/one-light.mjs +3 -0
- package/dist/_virtual/pojoaque.cjs +5 -0
- package/dist/_virtual/pojoaque.mjs +3 -0
- package/dist/_virtual/prism.cjs +5 -0
- package/dist/_virtual/prism.mjs +3 -0
- package/dist/_virtual/shades-of-purple.cjs +5 -0
- package/dist/_virtual/shades-of-purple.mjs +3 -0
- package/dist/_virtual/solarized-dark-atom.cjs +5 -0
- package/dist/_virtual/solarized-dark-atom.mjs +3 -0
- package/dist/_virtual/solarizedlight.cjs +5 -0
- package/dist/_virtual/solarizedlight.mjs +3 -0
- package/dist/_virtual/synthwave84.cjs +5 -0
- package/dist/_virtual/synthwave84.mjs +3 -0
- package/dist/_virtual/tomorrow.cjs +5 -0
- package/dist/_virtual/tomorrow.mjs +3 -0
- package/dist/_virtual/twilight.cjs +5 -0
- package/dist/_virtual/twilight.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
- package/dist/_virtual/vs.cjs +5 -0
- package/dist/_virtual/vs.mjs +3 -0
- package/dist/_virtual/vsc-dark-plus.cjs +5 -0
- package/dist/_virtual/vsc-dark-plus.mjs +3 -0
- package/dist/_virtual/with-selector.cjs +9 -0
- package/dist/_virtual/with-selector.development.cjs +5 -0
- package/dist/_virtual/with-selector.development.mjs +3 -0
- package/dist/_virtual/with-selector.development2.cjs +5 -0
- package/dist/_virtual/with-selector.development2.mjs +3 -0
- package/dist/_virtual/with-selector.mjs +7 -0
- package/dist/_virtual/with-selector.production.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.mjs +3 -0
- package/dist/_virtual/with-selector.production.mjs +3 -0
- package/dist/_virtual/with-selector2.cjs +7 -0
- package/dist/_virtual/with-selector2.mjs +5 -0
- package/dist/_virtual/with-selector3.cjs +5 -0
- package/dist/_virtual/with-selector3.mjs +3 -0
- package/dist/_virtual/with-selector4.cjs +5 -0
- package/dist/_virtual/with-selector4.mjs +3 -0
- package/dist/_virtual/xonokai.cjs +5 -0
- package/dist/_virtual/xonokai.mjs +3 -0
- package/dist/_virtual/z-touch.cjs +5 -0
- package/dist/_virtual/z-touch.mjs +3 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +62 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +64 -3
- package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +269 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +243 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +48 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +32 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +15 -15
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +12 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +3 -2
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +569 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +544 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +178 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +169 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.cjs +519 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.mjs +492 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -1
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +22 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.cjs +96 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.mjs +90 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +375 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.mjs +372 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.cjs +150 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.mjs +144 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.cjs +325 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.mjs +318 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.cjs +72 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.mjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +246 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.mjs +243 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.cjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.mjs +66 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.cjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.mjs +86 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +82 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.mjs +80 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.cjs +156 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.mjs +153 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.mjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.cjs +421 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.mjs +418 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.cjs +1060 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.mjs +1049 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.mjs +52 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.cjs +81 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.mjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.cjs +580 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.mjs +568 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.mjs +339 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.cjs +216 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.cjs +76 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.cjs +364 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.mjs +357 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.cjs +958 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.mjs +947 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.cjs +1030 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.mjs +909 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.cjs +122 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.mjs +116 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.cjs +36 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +27 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.cjs +541 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.mjs +533 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.cjs +101 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.cjs +807 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +800 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.cjs +2418 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.mjs +2393 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.cjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.mjs +164 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.cjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.mjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.cjs +202 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.mjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.cjs +269 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.mjs +267 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.cjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.mjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.cjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.mjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.cjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.mjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.cjs +168 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.mjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs +373 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.mjs +371 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.cjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.mjs +213 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.cjs +223 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.mjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.cjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.mjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.cjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.mjs +170 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.cjs +176 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.mjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.cjs +521 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.mjs +519 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.cjs +509 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.mjs +507 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.cjs +254 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.mjs +252 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.cjs +188 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.mjs +186 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.cjs +203 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.mjs +201 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.cjs +234 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.mjs +232 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.cjs +226 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.mjs +224 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.cjs +302 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.mjs +300 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.cjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.mjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.cjs +216 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.mjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +8 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +6 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +121 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +110 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +394 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +388 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.cjs +9 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +7 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.cjs +12 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.cjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +194 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1867 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.mjs +1854 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +181 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +175 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.cjs +32 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +26 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +254 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +248 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.cjs +30 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +24 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +115 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +109 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.cjs +103 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +97 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +112 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +106 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +83 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +77 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.cjs +112 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.mjs +110 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.cjs +47 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.mjs +39 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.cjs +339 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.mjs +336 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.cjs +34 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.mjs +32 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
- package/dist/packages/ui/src/components/accordion.cjs +2 -2
- package/dist/packages/ui/src/components/accordion.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/array.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/fields/array.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/date.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/date.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/enum.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/enum.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/object.cjs +9 -9
- package/dist/packages/ui/src/components/auto-form/fields/object.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/index.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/index.mjs +1 -1
- package/dist/packages/ui/src/components/button.cjs +4 -2
- package/dist/packages/ui/src/components/button.mjs +4 -2
- package/dist/packages/ui/src/components/calendar.cjs +4 -4
- package/dist/packages/ui/src/components/card.cjs +11 -0
- package/dist/packages/ui/src/components/card.mjs +11 -1
- package/dist/packages/ui/src/components/carousel.cjs +3 -3
- package/dist/packages/ui/src/components/checkbox.cjs +2 -2
- package/dist/packages/ui/src/components/command.cjs +33 -2
- package/dist/packages/ui/src/components/command.mjs +31 -2
- package/dist/packages/ui/src/components/date-picker.cjs +2 -2
- package/dist/packages/ui/src/components/dialog.cjs +9 -3
- package/dist/packages/ui/src/components/dialog.mjs +7 -2
- package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
- package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
- package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/form-preview.cjs +5 -5
- package/dist/packages/ui/src/components/form-builder/form-preview.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
- package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
- package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +164 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +153 -0
- package/dist/packages/ui/src/components/multi-select.cjs +3 -3
- package/dist/packages/ui/src/components/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/resizable.cjs +51 -0
- package/dist/packages/ui/src/components/resizable.mjs +47 -0
- package/dist/packages/ui/src/components/select.cjs +13 -6
- package/dist/packages/ui/src/components/select.mjs +9 -2
- package/dist/packages/ui/src/components/sheet.cjs +2 -2
- package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
- package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
- package/dist/packages/ui/src/components/toggle.cjs +46 -0
- package/dist/packages/ui/src/components/toggle.mjs +43 -0
- package/dist/packages/ui/src/components/tooltip.cjs +58 -0
- package/dist/packages/ui/src/components/tooltip.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
- package/dist/packages/ui/src/components/ui-builder/index.cjs +274 -0
- package/dist/packages/ui/src/components/ui-builder/index.mjs +262 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +295 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +289 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +230 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +224 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +19 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +17 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +555 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +540 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +156 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +150 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +207 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +269 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +263 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
- package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
- package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
- package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
- package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
- package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
- package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +159 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +157 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +91 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +88 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +44 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +55 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +27 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +25 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +185 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +177 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +36 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +384 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +381 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +326 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +311 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +30 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +23 -0
- package/dist/plugins/cms/api/index.d.cts +2 -2
- package/dist/plugins/cms/api/index.d.mts +2 -2
- package/dist/plugins/cms/api/index.d.ts +2 -2
- package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
- package/dist/plugins/cms/client/index.d.cts +2 -2
- package/dist/plugins/cms/client/index.d.mts +2 -2
- package/dist/plugins/cms/client/index.d.ts +2 -2
- package/dist/plugins/cms/query-keys.d.cts +1 -1
- package/dist/plugins/cms/query-keys.d.mts +1 -1
- package/dist/plugins/cms/query-keys.d.ts +1 -1
- package/dist/plugins/form-builder/api/index.d.cts +1 -1
- package/dist/plugins/form-builder/api/index.d.mts +1 -1
- package/dist/plugins/form-builder/api/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/index.d.cts +2 -2
- package/dist/plugins/form-builder/client/index.d.mts +2 -2
- package/dist/plugins/form-builder/client/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
- package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
- package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
- package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
- package/dist/plugins/ui-builder/client/index.cjs +38 -0
- package/dist/plugins/ui-builder/client/index.d.cts +349 -0
- package/dist/plugins/ui-builder/client/index.d.mts +349 -0
- package/dist/plugins/ui-builder/client/index.d.ts +349 -0
- package/dist/plugins/ui-builder/client/index.mjs +8 -0
- package/dist/plugins/ui-builder/client.css +2 -0
- package/dist/plugins/ui-builder/index.cjs +9 -0
- package/dist/plugins/ui-builder/index.d.cts +47 -0
- package/dist/plugins/ui-builder/index.d.mts +47 -0
- package/dist/plugins/ui-builder/index.d.ts +47 -0
- package/dist/plugins/ui-builder/index.mjs +1 -0
- package/dist/plugins/ui-builder/style.css +26 -0
- package/dist/shared/{stack.BIh2AXaW.d.cts → stack.8nldKomx.d.cts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.mts → stack.8nldKomx.d.mts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.ts → stack.8nldKomx.d.ts} +1 -10
- package/dist/shared/stack.BD1m-4yB.d.ts +116 -0
- package/dist/shared/stack.BSM2cgoq.d.cts +116 -0
- package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.mts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.ts} +1 -1
- package/dist/shared/stack.CLtOoAqF.d.mts +116 -0
- package/dist/shared/{stack.AX5nZ6A3.d.ts → stack.Co034Fpm.d.cts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.cts → stack.Co034Fpm.d.mts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.mts → stack.Co034Fpm.d.ts} +0 -21
- package/dist/shared/stack.CqfZWfjJ.d.cts +42 -0
- package/dist/shared/stack.MMntCVZZ.d.ts +42 -0
- package/dist/shared/stack.e1FN86dE.d.mts +42 -0
- package/package.json +54 -1
- package/src/plugins/cms/client/components/forms/content-form.tsx +2 -2
- package/src/plugins/form-builder/client/components/forms/form-renderer.tsx +1 -1
- package/src/plugins/ui-builder/client/components/index.ts +10 -0
- package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
- package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
- package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
- package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
- package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
- package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
- package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
- package/src/plugins/ui-builder/client/index.ts +64 -0
- package/src/plugins/ui-builder/client/localization/index.ts +64 -0
- package/src/plugins/ui-builder/client/overrides.ts +99 -0
- package/src/plugins/ui-builder/client/plugin.tsx +315 -0
- package/src/plugins/ui-builder/client/registry.ts +611 -0
- package/src/plugins/ui-builder/client.css +2 -0
- package/src/plugins/ui-builder/index.ts +41 -0
- package/src/plugins/ui-builder/schemas.ts +48 -0
- package/src/plugins/ui-builder/style.css +26 -0
- package/src/plugins/ui-builder/types.ts +137 -0
- package/src/plugins/index.ts +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.cjs → helpers.cjs} +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.mjs → helpers.mjs} +0 -0
|
@@ -0,0 +1,2183 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('../../../../prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs');
|
|
4
|
+
|
|
5
|
+
// Recovery values encode a range index and an offset. They are
|
|
6
|
+
// represented as numbers, because tons of them will be created when
|
|
7
|
+
// mapping, for example, a large number of decorations. The number's
|
|
8
|
+
// lower 16 bits provide the index, the remaining bits the offset.
|
|
9
|
+
//
|
|
10
|
+
// Note: We intentionally don't use bit shift operators to en- and
|
|
11
|
+
// decode these, since those clip to 32 bits, which we might in rare
|
|
12
|
+
// cases want to overflow. A 64-bit float can represent 48-bit
|
|
13
|
+
// integers precisely.
|
|
14
|
+
const lower16 = 0xffff;
|
|
15
|
+
const factor16 = Math.pow(2, 16);
|
|
16
|
+
function makeRecover(index, offset) { return index + offset * factor16; }
|
|
17
|
+
function recoverIndex(value) { return value & lower16; }
|
|
18
|
+
function recoverOffset(value) { return (value - (value & lower16)) / factor16; }
|
|
19
|
+
const DEL_BEFORE = 1, DEL_AFTER = 2, DEL_ACROSS = 4, DEL_SIDE = 8;
|
|
20
|
+
/**
|
|
21
|
+
An object representing a mapped position with extra
|
|
22
|
+
information.
|
|
23
|
+
*/
|
|
24
|
+
class MapResult {
|
|
25
|
+
/**
|
|
26
|
+
@internal
|
|
27
|
+
*/
|
|
28
|
+
constructor(
|
|
29
|
+
/**
|
|
30
|
+
The mapped version of the position.
|
|
31
|
+
*/
|
|
32
|
+
pos,
|
|
33
|
+
/**
|
|
34
|
+
@internal
|
|
35
|
+
*/
|
|
36
|
+
delInfo,
|
|
37
|
+
/**
|
|
38
|
+
@internal
|
|
39
|
+
*/
|
|
40
|
+
recover) {
|
|
41
|
+
this.pos = pos;
|
|
42
|
+
this.delInfo = delInfo;
|
|
43
|
+
this.recover = recover;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
Tells you whether the position was deleted, that is, whether the
|
|
47
|
+
step removed the token on the side queried (via the `assoc`)
|
|
48
|
+
argument from the document.
|
|
49
|
+
*/
|
|
50
|
+
get deleted() { return (this.delInfo & DEL_SIDE) > 0; }
|
|
51
|
+
/**
|
|
52
|
+
Tells you whether the token before the mapped position was deleted.
|
|
53
|
+
*/
|
|
54
|
+
get deletedBefore() { return (this.delInfo & (DEL_BEFORE | DEL_ACROSS)) > 0; }
|
|
55
|
+
/**
|
|
56
|
+
True when the token after the mapped position was deleted.
|
|
57
|
+
*/
|
|
58
|
+
get deletedAfter() { return (this.delInfo & (DEL_AFTER | DEL_ACROSS)) > 0; }
|
|
59
|
+
/**
|
|
60
|
+
Tells whether any of the steps mapped through deletes across the
|
|
61
|
+
position (including both the token before and after the
|
|
62
|
+
position).
|
|
63
|
+
*/
|
|
64
|
+
get deletedAcross() { return (this.delInfo & DEL_ACROSS) > 0; }
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
A map describing the deletions and insertions made by a step, which
|
|
68
|
+
can be used to find the correspondence between positions in the
|
|
69
|
+
pre-step version of a document and the same position in the
|
|
70
|
+
post-step version.
|
|
71
|
+
*/
|
|
72
|
+
class StepMap {
|
|
73
|
+
/**
|
|
74
|
+
Create a position map. The modifications to the document are
|
|
75
|
+
represented as an array of numbers, in which each group of three
|
|
76
|
+
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
77
|
+
*/
|
|
78
|
+
constructor(
|
|
79
|
+
/**
|
|
80
|
+
@internal
|
|
81
|
+
*/
|
|
82
|
+
ranges,
|
|
83
|
+
/**
|
|
84
|
+
@internal
|
|
85
|
+
*/
|
|
86
|
+
inverted = false) {
|
|
87
|
+
this.ranges = ranges;
|
|
88
|
+
this.inverted = inverted;
|
|
89
|
+
if (!ranges.length && StepMap.empty)
|
|
90
|
+
return StepMap.empty;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
@internal
|
|
94
|
+
*/
|
|
95
|
+
recover(value) {
|
|
96
|
+
let diff = 0, index = recoverIndex(value);
|
|
97
|
+
if (!this.inverted)
|
|
98
|
+
for (let i = 0; i < index; i++)
|
|
99
|
+
diff += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
|
|
100
|
+
return this.ranges[index * 3] + diff + recoverOffset(value);
|
|
101
|
+
}
|
|
102
|
+
mapResult(pos, assoc = 1) { return this._map(pos, assoc, false); }
|
|
103
|
+
map(pos, assoc = 1) { return this._map(pos, assoc, true); }
|
|
104
|
+
/**
|
|
105
|
+
@internal
|
|
106
|
+
*/
|
|
107
|
+
_map(pos, assoc, simple) {
|
|
108
|
+
let diff = 0, oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
|
|
109
|
+
for (let i = 0; i < this.ranges.length; i += 3) {
|
|
110
|
+
let start = this.ranges[i] - (this.inverted ? diff : 0);
|
|
111
|
+
if (start > pos)
|
|
112
|
+
break;
|
|
113
|
+
let oldSize = this.ranges[i + oldIndex], newSize = this.ranges[i + newIndex], end = start + oldSize;
|
|
114
|
+
if (pos <= end) {
|
|
115
|
+
let side = !oldSize ? assoc : pos == start ? -1 : pos == end ? 1 : assoc;
|
|
116
|
+
let result = start + diff + (side < 0 ? 0 : newSize);
|
|
117
|
+
if (simple)
|
|
118
|
+
return result;
|
|
119
|
+
let recover = pos == (assoc < 0 ? start : end) ? null : makeRecover(i / 3, pos - start);
|
|
120
|
+
let del = pos == start ? DEL_AFTER : pos == end ? DEL_BEFORE : DEL_ACROSS;
|
|
121
|
+
if (assoc < 0 ? pos != start : pos != end)
|
|
122
|
+
del |= DEL_SIDE;
|
|
123
|
+
return new MapResult(result, del, recover);
|
|
124
|
+
}
|
|
125
|
+
diff += newSize - oldSize;
|
|
126
|
+
}
|
|
127
|
+
return simple ? pos + diff : new MapResult(pos + diff, 0, null);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
@internal
|
|
131
|
+
*/
|
|
132
|
+
touches(pos, recover) {
|
|
133
|
+
let diff = 0, index = recoverIndex(recover);
|
|
134
|
+
let oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
|
|
135
|
+
for (let i = 0; i < this.ranges.length; i += 3) {
|
|
136
|
+
let start = this.ranges[i] - (this.inverted ? diff : 0);
|
|
137
|
+
if (start > pos)
|
|
138
|
+
break;
|
|
139
|
+
let oldSize = this.ranges[i + oldIndex], end = start + oldSize;
|
|
140
|
+
if (pos <= end && i == index * 3)
|
|
141
|
+
return true;
|
|
142
|
+
diff += this.ranges[i + newIndex] - oldSize;
|
|
143
|
+
}
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
Calls the given function on each of the changed ranges included in
|
|
148
|
+
this map.
|
|
149
|
+
*/
|
|
150
|
+
forEach(f) {
|
|
151
|
+
let oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
|
|
152
|
+
for (let i = 0, diff = 0; i < this.ranges.length; i += 3) {
|
|
153
|
+
let start = this.ranges[i], oldStart = start - (this.inverted ? diff : 0), newStart = start + (this.inverted ? 0 : diff);
|
|
154
|
+
let oldSize = this.ranges[i + oldIndex], newSize = this.ranges[i + newIndex];
|
|
155
|
+
f(oldStart, oldStart + oldSize, newStart, newStart + newSize);
|
|
156
|
+
diff += newSize - oldSize;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
Create an inverted version of this map. The result can be used to
|
|
161
|
+
map positions in the post-step document to the pre-step document.
|
|
162
|
+
*/
|
|
163
|
+
invert() {
|
|
164
|
+
return new StepMap(this.ranges, !this.inverted);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
@internal
|
|
168
|
+
*/
|
|
169
|
+
toString() {
|
|
170
|
+
return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
Create a map that moves all positions by offset `n` (which may be
|
|
174
|
+
negative). This can be useful when applying steps meant for a
|
|
175
|
+
sub-document to a larger document, or vice-versa.
|
|
176
|
+
*/
|
|
177
|
+
static offset(n) {
|
|
178
|
+
return n == 0 ? StepMap.empty : new StepMap(n < 0 ? [0, -n, 0] : [0, 0, n]);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
A StepMap that contains no changed ranges.
|
|
183
|
+
*/
|
|
184
|
+
StepMap.empty = new StepMap([]);
|
|
185
|
+
/**
|
|
186
|
+
A mapping represents a pipeline of zero or more [step
|
|
187
|
+
maps](https://prosemirror.net/docs/ref/#transform.StepMap). It has special provisions for losslessly
|
|
188
|
+
handling mapping positions through a series of steps in which some
|
|
189
|
+
steps are inverted versions of earlier steps. (This comes up when
|
|
190
|
+
‘[rebasing](https://prosemirror.net/docs/guide/#transform.rebasing)’ steps for
|
|
191
|
+
collaboration or history management.)
|
|
192
|
+
*/
|
|
193
|
+
class Mapping {
|
|
194
|
+
/**
|
|
195
|
+
Create a new mapping with the given position maps.
|
|
196
|
+
*/
|
|
197
|
+
constructor(maps,
|
|
198
|
+
/**
|
|
199
|
+
@internal
|
|
200
|
+
*/
|
|
201
|
+
mirror,
|
|
202
|
+
/**
|
|
203
|
+
The starting position in the `maps` array, used when `map` or
|
|
204
|
+
`mapResult` is called.
|
|
205
|
+
*/
|
|
206
|
+
from = 0,
|
|
207
|
+
/**
|
|
208
|
+
The end position in the `maps` array.
|
|
209
|
+
*/
|
|
210
|
+
to = maps ? maps.length : 0) {
|
|
211
|
+
this.mirror = mirror;
|
|
212
|
+
this.from = from;
|
|
213
|
+
this.to = to;
|
|
214
|
+
this._maps = maps || [];
|
|
215
|
+
this.ownData = !(maps || mirror);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
The step maps in this mapping.
|
|
219
|
+
*/
|
|
220
|
+
get maps() { return this._maps; }
|
|
221
|
+
/**
|
|
222
|
+
Create a mapping that maps only through a part of this one.
|
|
223
|
+
*/
|
|
224
|
+
slice(from = 0, to = this.maps.length) {
|
|
225
|
+
return new Mapping(this._maps, this.mirror, from, to);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
Add a step map to the end of this mapping. If `mirrors` is
|
|
229
|
+
given, it should be the index of the step map that is the mirror
|
|
230
|
+
image of this one.
|
|
231
|
+
*/
|
|
232
|
+
appendMap(map, mirrors) {
|
|
233
|
+
if (!this.ownData) {
|
|
234
|
+
this._maps = this._maps.slice();
|
|
235
|
+
this.mirror = this.mirror && this.mirror.slice();
|
|
236
|
+
this.ownData = true;
|
|
237
|
+
}
|
|
238
|
+
this.to = this._maps.push(map);
|
|
239
|
+
if (mirrors != null)
|
|
240
|
+
this.setMirror(this._maps.length - 1, mirrors);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
Add all the step maps in a given mapping to this one (preserving
|
|
244
|
+
mirroring information).
|
|
245
|
+
*/
|
|
246
|
+
appendMapping(mapping) {
|
|
247
|
+
for (let i = 0, startSize = this._maps.length; i < mapping._maps.length; i++) {
|
|
248
|
+
let mirr = mapping.getMirror(i);
|
|
249
|
+
this.appendMap(mapping._maps[i], mirr != null && mirr < i ? startSize + mirr : undefined);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
Finds the offset of the step map that mirrors the map at the
|
|
254
|
+
given offset, in this mapping (as per the second argument to
|
|
255
|
+
`appendMap`).
|
|
256
|
+
*/
|
|
257
|
+
getMirror(n) {
|
|
258
|
+
if (this.mirror)
|
|
259
|
+
for (let i = 0; i < this.mirror.length; i++)
|
|
260
|
+
if (this.mirror[i] == n)
|
|
261
|
+
return this.mirror[i + (i % 2 ? -1 : 1)];
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
@internal
|
|
265
|
+
*/
|
|
266
|
+
setMirror(n, m) {
|
|
267
|
+
if (!this.mirror)
|
|
268
|
+
this.mirror = [];
|
|
269
|
+
this.mirror.push(n, m);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
Append the inverse of the given mapping to this one.
|
|
273
|
+
*/
|
|
274
|
+
appendMappingInverted(mapping) {
|
|
275
|
+
for (let i = mapping.maps.length - 1, totalSize = this._maps.length + mapping._maps.length; i >= 0; i--) {
|
|
276
|
+
let mirr = mapping.getMirror(i);
|
|
277
|
+
this.appendMap(mapping._maps[i].invert(), mirr != null && mirr > i ? totalSize - mirr - 1 : undefined);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
Create an inverted version of this mapping.
|
|
282
|
+
*/
|
|
283
|
+
invert() {
|
|
284
|
+
let inverse = new Mapping;
|
|
285
|
+
inverse.appendMappingInverted(this);
|
|
286
|
+
return inverse;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
Map a position through this mapping.
|
|
290
|
+
*/
|
|
291
|
+
map(pos, assoc = 1) {
|
|
292
|
+
if (this.mirror)
|
|
293
|
+
return this._map(pos, assoc, true);
|
|
294
|
+
for (let i = this.from; i < this.to; i++)
|
|
295
|
+
pos = this._maps[i].map(pos, assoc);
|
|
296
|
+
return pos;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
Map a position through this mapping, returning a mapping
|
|
300
|
+
result.
|
|
301
|
+
*/
|
|
302
|
+
mapResult(pos, assoc = 1) { return this._map(pos, assoc, false); }
|
|
303
|
+
/**
|
|
304
|
+
@internal
|
|
305
|
+
*/
|
|
306
|
+
_map(pos, assoc, simple) {
|
|
307
|
+
let delInfo = 0;
|
|
308
|
+
for (let i = this.from; i < this.to; i++) {
|
|
309
|
+
let map = this._maps[i], result = map.mapResult(pos, assoc);
|
|
310
|
+
if (result.recover != null) {
|
|
311
|
+
let corr = this.getMirror(i);
|
|
312
|
+
if (corr != null && corr > i && corr < this.to) {
|
|
313
|
+
i = corr;
|
|
314
|
+
pos = this._maps[corr].recover(result.recover);
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
delInfo |= result.delInfo;
|
|
319
|
+
pos = result.pos;
|
|
320
|
+
}
|
|
321
|
+
return simple ? pos : new MapResult(pos, delInfo, null);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const stepsByID = Object.create(null);
|
|
326
|
+
/**
|
|
327
|
+
A step object represents an atomic change. It generally applies
|
|
328
|
+
only to the document it was created for, since the positions
|
|
329
|
+
stored in it will only make sense for that document.
|
|
330
|
+
|
|
331
|
+
New steps are defined by creating classes that extend `Step`,
|
|
332
|
+
overriding the `apply`, `invert`, `map`, `getMap` and `fromJSON`
|
|
333
|
+
methods, and registering your class with a unique
|
|
334
|
+
JSON-serialization identifier using
|
|
335
|
+
[`Step.jsonID`](https://prosemirror.net/docs/ref/#transform.Step^jsonID).
|
|
336
|
+
*/
|
|
337
|
+
class Step {
|
|
338
|
+
/**
|
|
339
|
+
Get the step map that represents the changes made by this step,
|
|
340
|
+
and which can be used to transform between positions in the old
|
|
341
|
+
and the new document.
|
|
342
|
+
*/
|
|
343
|
+
getMap() { return StepMap.empty; }
|
|
344
|
+
/**
|
|
345
|
+
Try to merge this step with another one, to be applied directly
|
|
346
|
+
after it. Returns the merged step when possible, null if the
|
|
347
|
+
steps can't be merged.
|
|
348
|
+
*/
|
|
349
|
+
merge(other) { return null; }
|
|
350
|
+
/**
|
|
351
|
+
Deserialize a step from its JSON representation. Will call
|
|
352
|
+
through to the step class' own implementation of this method.
|
|
353
|
+
*/
|
|
354
|
+
static fromJSON(schema, json) {
|
|
355
|
+
if (!json || !json.stepType)
|
|
356
|
+
throw new RangeError("Invalid input for Step.fromJSON");
|
|
357
|
+
let type = stepsByID[json.stepType];
|
|
358
|
+
if (!type)
|
|
359
|
+
throw new RangeError(`No step type ${json.stepType} defined`);
|
|
360
|
+
return type.fromJSON(schema, json);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
To be able to serialize steps to JSON, each step needs a string
|
|
364
|
+
ID to attach to its JSON representation. Use this method to
|
|
365
|
+
register an ID for your step classes. Try to pick something
|
|
366
|
+
that's unlikely to clash with steps from other modules.
|
|
367
|
+
*/
|
|
368
|
+
static jsonID(id, stepClass) {
|
|
369
|
+
if (id in stepsByID)
|
|
370
|
+
throw new RangeError("Duplicate use of step JSON ID " + id);
|
|
371
|
+
stepsByID[id] = stepClass;
|
|
372
|
+
stepClass.prototype.jsonID = id;
|
|
373
|
+
return stepClass;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
The result of [applying](https://prosemirror.net/docs/ref/#transform.Step.apply) a step. Contains either a
|
|
378
|
+
new document or a failure value.
|
|
379
|
+
*/
|
|
380
|
+
class StepResult {
|
|
381
|
+
/**
|
|
382
|
+
@internal
|
|
383
|
+
*/
|
|
384
|
+
constructor(
|
|
385
|
+
/**
|
|
386
|
+
The transformed document, if successful.
|
|
387
|
+
*/
|
|
388
|
+
doc,
|
|
389
|
+
/**
|
|
390
|
+
The failure message, if unsuccessful.
|
|
391
|
+
*/
|
|
392
|
+
failed) {
|
|
393
|
+
this.doc = doc;
|
|
394
|
+
this.failed = failed;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
Create a successful step result.
|
|
398
|
+
*/
|
|
399
|
+
static ok(doc) { return new StepResult(doc, null); }
|
|
400
|
+
/**
|
|
401
|
+
Create a failed step result.
|
|
402
|
+
*/
|
|
403
|
+
static fail(message) { return new StepResult(null, message); }
|
|
404
|
+
/**
|
|
405
|
+
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
406
|
+
arguments. Create a successful result if it succeeds, and a
|
|
407
|
+
failed one if it throws a `ReplaceError`.
|
|
408
|
+
*/
|
|
409
|
+
static fromReplace(doc, from, to, slice) {
|
|
410
|
+
try {
|
|
411
|
+
return StepResult.ok(doc.replace(from, to, slice));
|
|
412
|
+
}
|
|
413
|
+
catch (e) {
|
|
414
|
+
if (e instanceof index.ReplaceError)
|
|
415
|
+
return StepResult.fail(e.message);
|
|
416
|
+
throw e;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function mapFragment(fragment, f, parent) {
|
|
422
|
+
let mapped = [];
|
|
423
|
+
for (let i = 0; i < fragment.childCount; i++) {
|
|
424
|
+
let child = fragment.child(i);
|
|
425
|
+
if (child.content.size)
|
|
426
|
+
child = child.copy(mapFragment(child.content, f, child));
|
|
427
|
+
if (child.isInline)
|
|
428
|
+
child = f(child, parent, i);
|
|
429
|
+
mapped.push(child);
|
|
430
|
+
}
|
|
431
|
+
return index.Fragment.fromArray(mapped);
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
Add a mark to all inline content between two positions.
|
|
435
|
+
*/
|
|
436
|
+
class AddMarkStep extends Step {
|
|
437
|
+
/**
|
|
438
|
+
Create a mark step.
|
|
439
|
+
*/
|
|
440
|
+
constructor(
|
|
441
|
+
/**
|
|
442
|
+
The start of the marked range.
|
|
443
|
+
*/
|
|
444
|
+
from,
|
|
445
|
+
/**
|
|
446
|
+
The end of the marked range.
|
|
447
|
+
*/
|
|
448
|
+
to,
|
|
449
|
+
/**
|
|
450
|
+
The mark to add.
|
|
451
|
+
*/
|
|
452
|
+
mark) {
|
|
453
|
+
super();
|
|
454
|
+
this.from = from;
|
|
455
|
+
this.to = to;
|
|
456
|
+
this.mark = mark;
|
|
457
|
+
}
|
|
458
|
+
apply(doc) {
|
|
459
|
+
let oldSlice = doc.slice(this.from, this.to), $from = doc.resolve(this.from);
|
|
460
|
+
let parent = $from.node($from.sharedDepth(this.to));
|
|
461
|
+
let slice = new index.Slice(mapFragment(oldSlice.content, (node, parent) => {
|
|
462
|
+
if (!node.isAtom || !parent.type.allowsMarkType(this.mark.type))
|
|
463
|
+
return node;
|
|
464
|
+
return node.mark(this.mark.addToSet(node.marks));
|
|
465
|
+
}, parent), oldSlice.openStart, oldSlice.openEnd);
|
|
466
|
+
return StepResult.fromReplace(doc, this.from, this.to, slice);
|
|
467
|
+
}
|
|
468
|
+
invert() {
|
|
469
|
+
return new RemoveMarkStep(this.from, this.to, this.mark);
|
|
470
|
+
}
|
|
471
|
+
map(mapping) {
|
|
472
|
+
let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
|
|
473
|
+
if (from.deleted && to.deleted || from.pos >= to.pos)
|
|
474
|
+
return null;
|
|
475
|
+
return new AddMarkStep(from.pos, to.pos, this.mark);
|
|
476
|
+
}
|
|
477
|
+
merge(other) {
|
|
478
|
+
if (other instanceof AddMarkStep &&
|
|
479
|
+
other.mark.eq(this.mark) &&
|
|
480
|
+
this.from <= other.to && this.to >= other.from)
|
|
481
|
+
return new AddMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);
|
|
482
|
+
return null;
|
|
483
|
+
}
|
|
484
|
+
toJSON() {
|
|
485
|
+
return { stepType: "addMark", mark: this.mark.toJSON(),
|
|
486
|
+
from: this.from, to: this.to };
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
@internal
|
|
490
|
+
*/
|
|
491
|
+
static fromJSON(schema, json) {
|
|
492
|
+
if (typeof json.from != "number" || typeof json.to != "number")
|
|
493
|
+
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
494
|
+
return new AddMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
Step.jsonID("addMark", AddMarkStep);
|
|
498
|
+
/**
|
|
499
|
+
Remove a mark from all inline content between two positions.
|
|
500
|
+
*/
|
|
501
|
+
class RemoveMarkStep extends Step {
|
|
502
|
+
/**
|
|
503
|
+
Create a mark-removing step.
|
|
504
|
+
*/
|
|
505
|
+
constructor(
|
|
506
|
+
/**
|
|
507
|
+
The start of the unmarked range.
|
|
508
|
+
*/
|
|
509
|
+
from,
|
|
510
|
+
/**
|
|
511
|
+
The end of the unmarked range.
|
|
512
|
+
*/
|
|
513
|
+
to,
|
|
514
|
+
/**
|
|
515
|
+
The mark to remove.
|
|
516
|
+
*/
|
|
517
|
+
mark) {
|
|
518
|
+
super();
|
|
519
|
+
this.from = from;
|
|
520
|
+
this.to = to;
|
|
521
|
+
this.mark = mark;
|
|
522
|
+
}
|
|
523
|
+
apply(doc) {
|
|
524
|
+
let oldSlice = doc.slice(this.from, this.to);
|
|
525
|
+
let slice = new index.Slice(mapFragment(oldSlice.content, node => {
|
|
526
|
+
return node.mark(this.mark.removeFromSet(node.marks));
|
|
527
|
+
}, doc), oldSlice.openStart, oldSlice.openEnd);
|
|
528
|
+
return StepResult.fromReplace(doc, this.from, this.to, slice);
|
|
529
|
+
}
|
|
530
|
+
invert() {
|
|
531
|
+
return new AddMarkStep(this.from, this.to, this.mark);
|
|
532
|
+
}
|
|
533
|
+
map(mapping) {
|
|
534
|
+
let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
|
|
535
|
+
if (from.deleted && to.deleted || from.pos >= to.pos)
|
|
536
|
+
return null;
|
|
537
|
+
return new RemoveMarkStep(from.pos, to.pos, this.mark);
|
|
538
|
+
}
|
|
539
|
+
merge(other) {
|
|
540
|
+
if (other instanceof RemoveMarkStep &&
|
|
541
|
+
other.mark.eq(this.mark) &&
|
|
542
|
+
this.from <= other.to && this.to >= other.from)
|
|
543
|
+
return new RemoveMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);
|
|
544
|
+
return null;
|
|
545
|
+
}
|
|
546
|
+
toJSON() {
|
|
547
|
+
return { stepType: "removeMark", mark: this.mark.toJSON(),
|
|
548
|
+
from: this.from, to: this.to };
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
@internal
|
|
552
|
+
*/
|
|
553
|
+
static fromJSON(schema, json) {
|
|
554
|
+
if (typeof json.from != "number" || typeof json.to != "number")
|
|
555
|
+
throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
|
|
556
|
+
return new RemoveMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
Step.jsonID("removeMark", RemoveMarkStep);
|
|
560
|
+
/**
|
|
561
|
+
Add a mark to a specific node.
|
|
562
|
+
*/
|
|
563
|
+
class AddNodeMarkStep extends Step {
|
|
564
|
+
/**
|
|
565
|
+
Create a node mark step.
|
|
566
|
+
*/
|
|
567
|
+
constructor(
|
|
568
|
+
/**
|
|
569
|
+
The position of the target node.
|
|
570
|
+
*/
|
|
571
|
+
pos,
|
|
572
|
+
/**
|
|
573
|
+
The mark to add.
|
|
574
|
+
*/
|
|
575
|
+
mark) {
|
|
576
|
+
super();
|
|
577
|
+
this.pos = pos;
|
|
578
|
+
this.mark = mark;
|
|
579
|
+
}
|
|
580
|
+
apply(doc) {
|
|
581
|
+
let node = doc.nodeAt(this.pos);
|
|
582
|
+
if (!node)
|
|
583
|
+
return StepResult.fail("No node at mark step's position");
|
|
584
|
+
let updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
|
|
585
|
+
return StepResult.fromReplace(doc, this.pos, this.pos + 1, new index.Slice(index.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
|
|
586
|
+
}
|
|
587
|
+
invert(doc) {
|
|
588
|
+
let node = doc.nodeAt(this.pos);
|
|
589
|
+
if (node) {
|
|
590
|
+
let newSet = this.mark.addToSet(node.marks);
|
|
591
|
+
if (newSet.length == node.marks.length) {
|
|
592
|
+
for (let i = 0; i < node.marks.length; i++)
|
|
593
|
+
if (!node.marks[i].isInSet(newSet))
|
|
594
|
+
return new AddNodeMarkStep(this.pos, node.marks[i]);
|
|
595
|
+
return new AddNodeMarkStep(this.pos, this.mark);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
return new RemoveNodeMarkStep(this.pos, this.mark);
|
|
599
|
+
}
|
|
600
|
+
map(mapping) {
|
|
601
|
+
let pos = mapping.mapResult(this.pos, 1);
|
|
602
|
+
return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
|
|
603
|
+
}
|
|
604
|
+
toJSON() {
|
|
605
|
+
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
@internal
|
|
609
|
+
*/
|
|
610
|
+
static fromJSON(schema, json) {
|
|
611
|
+
if (typeof json.pos != "number")
|
|
612
|
+
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
613
|
+
return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
Step.jsonID("addNodeMark", AddNodeMarkStep);
|
|
617
|
+
/**
|
|
618
|
+
Remove a mark from a specific node.
|
|
619
|
+
*/
|
|
620
|
+
class RemoveNodeMarkStep extends Step {
|
|
621
|
+
/**
|
|
622
|
+
Create a mark-removing step.
|
|
623
|
+
*/
|
|
624
|
+
constructor(
|
|
625
|
+
/**
|
|
626
|
+
The position of the target node.
|
|
627
|
+
*/
|
|
628
|
+
pos,
|
|
629
|
+
/**
|
|
630
|
+
The mark to remove.
|
|
631
|
+
*/
|
|
632
|
+
mark) {
|
|
633
|
+
super();
|
|
634
|
+
this.pos = pos;
|
|
635
|
+
this.mark = mark;
|
|
636
|
+
}
|
|
637
|
+
apply(doc) {
|
|
638
|
+
let node = doc.nodeAt(this.pos);
|
|
639
|
+
if (!node)
|
|
640
|
+
return StepResult.fail("No node at mark step's position");
|
|
641
|
+
let updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
|
|
642
|
+
return StepResult.fromReplace(doc, this.pos, this.pos + 1, new index.Slice(index.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
|
|
643
|
+
}
|
|
644
|
+
invert(doc) {
|
|
645
|
+
let node = doc.nodeAt(this.pos);
|
|
646
|
+
if (!node || !this.mark.isInSet(node.marks))
|
|
647
|
+
return this;
|
|
648
|
+
return new AddNodeMarkStep(this.pos, this.mark);
|
|
649
|
+
}
|
|
650
|
+
map(mapping) {
|
|
651
|
+
let pos = mapping.mapResult(this.pos, 1);
|
|
652
|
+
return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
|
|
653
|
+
}
|
|
654
|
+
toJSON() {
|
|
655
|
+
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
@internal
|
|
659
|
+
*/
|
|
660
|
+
static fromJSON(schema, json) {
|
|
661
|
+
if (typeof json.pos != "number")
|
|
662
|
+
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
663
|
+
return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
Replace a part of the document with a slice of new content.
|
|
670
|
+
*/
|
|
671
|
+
class ReplaceStep extends Step {
|
|
672
|
+
/**
|
|
673
|
+
The given `slice` should fit the 'gap' between `from` and
|
|
674
|
+
`to`—the depths must line up, and the surrounding nodes must be
|
|
675
|
+
able to be joined with the open sides of the slice. When
|
|
676
|
+
`structure` is true, the step will fail if the content between
|
|
677
|
+
from and to is not just a sequence of closing and then opening
|
|
678
|
+
tokens (this is to guard against rebased replace steps
|
|
679
|
+
overwriting something they weren't supposed to).
|
|
680
|
+
*/
|
|
681
|
+
constructor(
|
|
682
|
+
/**
|
|
683
|
+
The start position of the replaced range.
|
|
684
|
+
*/
|
|
685
|
+
from,
|
|
686
|
+
/**
|
|
687
|
+
The end position of the replaced range.
|
|
688
|
+
*/
|
|
689
|
+
to,
|
|
690
|
+
/**
|
|
691
|
+
The slice to insert.
|
|
692
|
+
*/
|
|
693
|
+
slice,
|
|
694
|
+
/**
|
|
695
|
+
@internal
|
|
696
|
+
*/
|
|
697
|
+
structure = false) {
|
|
698
|
+
super();
|
|
699
|
+
this.from = from;
|
|
700
|
+
this.to = to;
|
|
701
|
+
this.slice = slice;
|
|
702
|
+
this.structure = structure;
|
|
703
|
+
}
|
|
704
|
+
apply(doc) {
|
|
705
|
+
if (this.structure && contentBetween(doc, this.from, this.to))
|
|
706
|
+
return StepResult.fail("Structure replace would overwrite content");
|
|
707
|
+
return StepResult.fromReplace(doc, this.from, this.to, this.slice);
|
|
708
|
+
}
|
|
709
|
+
getMap() {
|
|
710
|
+
return new StepMap([this.from, this.to - this.from, this.slice.size]);
|
|
711
|
+
}
|
|
712
|
+
invert(doc) {
|
|
713
|
+
return new ReplaceStep(this.from, this.from + this.slice.size, doc.slice(this.from, this.to));
|
|
714
|
+
}
|
|
715
|
+
map(mapping) {
|
|
716
|
+
let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
|
|
717
|
+
if (from.deletedAcross && to.deletedAcross)
|
|
718
|
+
return null;
|
|
719
|
+
return new ReplaceStep(from.pos, Math.max(from.pos, to.pos), this.slice, this.structure);
|
|
720
|
+
}
|
|
721
|
+
merge(other) {
|
|
722
|
+
if (!(other instanceof ReplaceStep) || other.structure || this.structure)
|
|
723
|
+
return null;
|
|
724
|
+
if (this.from + this.slice.size == other.from && !this.slice.openEnd && !other.slice.openStart) {
|
|
725
|
+
let slice = this.slice.size + other.slice.size == 0 ? index.Slice.empty
|
|
726
|
+
: new index.Slice(this.slice.content.append(other.slice.content), this.slice.openStart, other.slice.openEnd);
|
|
727
|
+
return new ReplaceStep(this.from, this.to + (other.to - other.from), slice, this.structure);
|
|
728
|
+
}
|
|
729
|
+
else if (other.to == this.from && !this.slice.openStart && !other.slice.openEnd) {
|
|
730
|
+
let slice = this.slice.size + other.slice.size == 0 ? index.Slice.empty
|
|
731
|
+
: new index.Slice(other.slice.content.append(this.slice.content), other.slice.openStart, this.slice.openEnd);
|
|
732
|
+
return new ReplaceStep(other.from, this.to, slice, this.structure);
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
return null;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
toJSON() {
|
|
739
|
+
let json = { stepType: "replace", from: this.from, to: this.to };
|
|
740
|
+
if (this.slice.size)
|
|
741
|
+
json.slice = this.slice.toJSON();
|
|
742
|
+
if (this.structure)
|
|
743
|
+
json.structure = true;
|
|
744
|
+
return json;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
@internal
|
|
748
|
+
*/
|
|
749
|
+
static fromJSON(schema, json) {
|
|
750
|
+
if (typeof json.from != "number" || typeof json.to != "number")
|
|
751
|
+
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
|
752
|
+
return new ReplaceStep(json.from, json.to, index.Slice.fromJSON(schema, json.slice), !!json.structure);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
Step.jsonID("replace", ReplaceStep);
|
|
756
|
+
/**
|
|
757
|
+
Replace a part of the document with a slice of content, but
|
|
758
|
+
preserve a range of the replaced content by moving it into the
|
|
759
|
+
slice.
|
|
760
|
+
*/
|
|
761
|
+
class ReplaceAroundStep extends Step {
|
|
762
|
+
/**
|
|
763
|
+
Create a replace-around step with the given range and gap.
|
|
764
|
+
`insert` should be the point in the slice into which the content
|
|
765
|
+
of the gap should be moved. `structure` has the same meaning as
|
|
766
|
+
it has in the [`ReplaceStep`](https://prosemirror.net/docs/ref/#transform.ReplaceStep) class.
|
|
767
|
+
*/
|
|
768
|
+
constructor(
|
|
769
|
+
/**
|
|
770
|
+
The start position of the replaced range.
|
|
771
|
+
*/
|
|
772
|
+
from,
|
|
773
|
+
/**
|
|
774
|
+
The end position of the replaced range.
|
|
775
|
+
*/
|
|
776
|
+
to,
|
|
777
|
+
/**
|
|
778
|
+
The start of preserved range.
|
|
779
|
+
*/
|
|
780
|
+
gapFrom,
|
|
781
|
+
/**
|
|
782
|
+
The end of preserved range.
|
|
783
|
+
*/
|
|
784
|
+
gapTo,
|
|
785
|
+
/**
|
|
786
|
+
The slice to insert.
|
|
787
|
+
*/
|
|
788
|
+
slice,
|
|
789
|
+
/**
|
|
790
|
+
The position in the slice where the preserved range should be
|
|
791
|
+
inserted.
|
|
792
|
+
*/
|
|
793
|
+
insert,
|
|
794
|
+
/**
|
|
795
|
+
@internal
|
|
796
|
+
*/
|
|
797
|
+
structure = false) {
|
|
798
|
+
super();
|
|
799
|
+
this.from = from;
|
|
800
|
+
this.to = to;
|
|
801
|
+
this.gapFrom = gapFrom;
|
|
802
|
+
this.gapTo = gapTo;
|
|
803
|
+
this.slice = slice;
|
|
804
|
+
this.insert = insert;
|
|
805
|
+
this.structure = structure;
|
|
806
|
+
}
|
|
807
|
+
apply(doc) {
|
|
808
|
+
if (this.structure && (contentBetween(doc, this.from, this.gapFrom) ||
|
|
809
|
+
contentBetween(doc, this.gapTo, this.to)))
|
|
810
|
+
return StepResult.fail("Structure gap-replace would overwrite content");
|
|
811
|
+
let gap = doc.slice(this.gapFrom, this.gapTo);
|
|
812
|
+
if (gap.openStart || gap.openEnd)
|
|
813
|
+
return StepResult.fail("Gap is not a flat range");
|
|
814
|
+
let inserted = this.slice.insertAt(this.insert, gap.content);
|
|
815
|
+
if (!inserted)
|
|
816
|
+
return StepResult.fail("Content does not fit in gap");
|
|
817
|
+
return StepResult.fromReplace(doc, this.from, this.to, inserted);
|
|
818
|
+
}
|
|
819
|
+
getMap() {
|
|
820
|
+
return new StepMap([this.from, this.gapFrom - this.from, this.insert,
|
|
821
|
+
this.gapTo, this.to - this.gapTo, this.slice.size - this.insert]);
|
|
822
|
+
}
|
|
823
|
+
invert(doc) {
|
|
824
|
+
let gap = this.gapTo - this.gapFrom;
|
|
825
|
+
return new ReplaceAroundStep(this.from, this.from + this.slice.size + gap, this.from + this.insert, this.from + this.insert + gap, doc.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
|
|
826
|
+
}
|
|
827
|
+
map(mapping) {
|
|
828
|
+
let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
|
|
829
|
+
let gapFrom = this.from == this.gapFrom ? from.pos : mapping.map(this.gapFrom, -1);
|
|
830
|
+
let gapTo = this.to == this.gapTo ? to.pos : mapping.map(this.gapTo, 1);
|
|
831
|
+
if ((from.deletedAcross && to.deletedAcross) || gapFrom < from.pos || gapTo > to.pos)
|
|
832
|
+
return null;
|
|
833
|
+
return new ReplaceAroundStep(from.pos, to.pos, gapFrom, gapTo, this.slice, this.insert, this.structure);
|
|
834
|
+
}
|
|
835
|
+
toJSON() {
|
|
836
|
+
let json = { stepType: "replaceAround", from: this.from, to: this.to,
|
|
837
|
+
gapFrom: this.gapFrom, gapTo: this.gapTo, insert: this.insert };
|
|
838
|
+
if (this.slice.size)
|
|
839
|
+
json.slice = this.slice.toJSON();
|
|
840
|
+
if (this.structure)
|
|
841
|
+
json.structure = true;
|
|
842
|
+
return json;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
@internal
|
|
846
|
+
*/
|
|
847
|
+
static fromJSON(schema, json) {
|
|
848
|
+
if (typeof json.from != "number" || typeof json.to != "number" ||
|
|
849
|
+
typeof json.gapFrom != "number" || typeof json.gapTo != "number" || typeof json.insert != "number")
|
|
850
|
+
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
|
851
|
+
return new ReplaceAroundStep(json.from, json.to, json.gapFrom, json.gapTo, index.Slice.fromJSON(schema, json.slice), json.insert, !!json.structure);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
Step.jsonID("replaceAround", ReplaceAroundStep);
|
|
855
|
+
function contentBetween(doc, from, to) {
|
|
856
|
+
let $from = doc.resolve(from), dist = to - from, depth = $from.depth;
|
|
857
|
+
while (dist > 0 && depth > 0 && $from.indexAfter(depth) == $from.node(depth).childCount) {
|
|
858
|
+
depth--;
|
|
859
|
+
dist--;
|
|
860
|
+
}
|
|
861
|
+
if (dist > 0) {
|
|
862
|
+
let next = $from.node(depth).maybeChild($from.indexAfter(depth));
|
|
863
|
+
while (dist > 0) {
|
|
864
|
+
if (!next || next.isLeaf)
|
|
865
|
+
return true;
|
|
866
|
+
next = next.firstChild;
|
|
867
|
+
dist--;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
return false;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
function addMark(tr, from, to, mark) {
|
|
874
|
+
let removed = [], added = [];
|
|
875
|
+
let removing, adding;
|
|
876
|
+
tr.doc.nodesBetween(from, to, (node, pos, parent) => {
|
|
877
|
+
if (!node.isInline)
|
|
878
|
+
return;
|
|
879
|
+
let marks = node.marks;
|
|
880
|
+
if (!mark.isInSet(marks) && parent.type.allowsMarkType(mark.type)) {
|
|
881
|
+
let start = Math.max(pos, from), end = Math.min(pos + node.nodeSize, to);
|
|
882
|
+
let newSet = mark.addToSet(marks);
|
|
883
|
+
for (let i = 0; i < marks.length; i++) {
|
|
884
|
+
if (!marks[i].isInSet(newSet)) {
|
|
885
|
+
if (removing && removing.to == start && removing.mark.eq(marks[i]))
|
|
886
|
+
removing.to = end;
|
|
887
|
+
else
|
|
888
|
+
removed.push(removing = new RemoveMarkStep(start, end, marks[i]));
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
if (adding && adding.to == start)
|
|
892
|
+
adding.to = end;
|
|
893
|
+
else
|
|
894
|
+
added.push(adding = new AddMarkStep(start, end, mark));
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
removed.forEach(s => tr.step(s));
|
|
898
|
+
added.forEach(s => tr.step(s));
|
|
899
|
+
}
|
|
900
|
+
function removeMark(tr, from, to, mark) {
|
|
901
|
+
let matched = [], step = 0;
|
|
902
|
+
tr.doc.nodesBetween(from, to, (node, pos) => {
|
|
903
|
+
if (!node.isInline)
|
|
904
|
+
return;
|
|
905
|
+
step++;
|
|
906
|
+
let toRemove = null;
|
|
907
|
+
if (mark instanceof index.MarkType) {
|
|
908
|
+
let set = node.marks, found;
|
|
909
|
+
while (found = mark.isInSet(set)) {
|
|
910
|
+
(toRemove || (toRemove = [])).push(found);
|
|
911
|
+
set = found.removeFromSet(set);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
else if (mark) {
|
|
915
|
+
if (mark.isInSet(node.marks))
|
|
916
|
+
toRemove = [mark];
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
toRemove = node.marks;
|
|
920
|
+
}
|
|
921
|
+
if (toRemove && toRemove.length) {
|
|
922
|
+
let end = Math.min(pos + node.nodeSize, to);
|
|
923
|
+
for (let i = 0; i < toRemove.length; i++) {
|
|
924
|
+
let style = toRemove[i], found;
|
|
925
|
+
for (let j = 0; j < matched.length; j++) {
|
|
926
|
+
let m = matched[j];
|
|
927
|
+
if (m.step == step - 1 && style.eq(matched[j].style))
|
|
928
|
+
found = m;
|
|
929
|
+
}
|
|
930
|
+
if (found) {
|
|
931
|
+
found.to = end;
|
|
932
|
+
found.step = step;
|
|
933
|
+
}
|
|
934
|
+
else {
|
|
935
|
+
matched.push({ style, from: Math.max(pos, from), to: end, step });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
matched.forEach(m => tr.step(new RemoveMarkStep(m.from, m.to, m.style)));
|
|
941
|
+
}
|
|
942
|
+
function clearIncompatible(tr, pos, parentType, match = parentType.contentMatch, clearNewlines = true) {
|
|
943
|
+
let node = tr.doc.nodeAt(pos);
|
|
944
|
+
let replSteps = [], cur = pos + 1;
|
|
945
|
+
for (let i = 0; i < node.childCount; i++) {
|
|
946
|
+
let child = node.child(i), end = cur + child.nodeSize;
|
|
947
|
+
let allowed = match.matchType(child.type);
|
|
948
|
+
if (!allowed) {
|
|
949
|
+
replSteps.push(new ReplaceStep(cur, end, index.Slice.empty));
|
|
950
|
+
}
|
|
951
|
+
else {
|
|
952
|
+
match = allowed;
|
|
953
|
+
for (let j = 0; j < child.marks.length; j++)
|
|
954
|
+
if (!parentType.allowsMarkType(child.marks[j].type))
|
|
955
|
+
tr.step(new RemoveMarkStep(cur, end, child.marks[j]));
|
|
956
|
+
if (clearNewlines && child.isText && parentType.whitespace != "pre") {
|
|
957
|
+
let m, newline = /\r?\n|\r/g, slice;
|
|
958
|
+
while (m = newline.exec(child.text)) {
|
|
959
|
+
if (!slice)
|
|
960
|
+
slice = new index.Slice(index.Fragment.from(parentType.schema.text(" ", parentType.allowedMarks(child.marks))), 0, 0);
|
|
961
|
+
replSteps.push(new ReplaceStep(cur + m.index, cur + m.index + m[0].length, slice));
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
cur = end;
|
|
966
|
+
}
|
|
967
|
+
if (!match.validEnd) {
|
|
968
|
+
let fill = match.fillBefore(index.Fragment.empty, true);
|
|
969
|
+
tr.replace(cur, cur, new index.Slice(fill, 0, 0));
|
|
970
|
+
}
|
|
971
|
+
for (let i = replSteps.length - 1; i >= 0; i--)
|
|
972
|
+
tr.step(replSteps[i]);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
function canCut(node, start, end) {
|
|
976
|
+
return (start == 0 || node.canReplace(start, node.childCount)) &&
|
|
977
|
+
(end == node.childCount || node.canReplace(0, end));
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
Try to find a target depth to which the content in the given range
|
|
981
|
+
can be lifted. Will not go across
|
|
982
|
+
[isolating](https://prosemirror.net/docs/ref/#model.NodeSpec.isolating) parent nodes.
|
|
983
|
+
*/
|
|
984
|
+
function liftTarget(range) {
|
|
985
|
+
let parent = range.parent;
|
|
986
|
+
let content = parent.content.cutByIndex(range.startIndex, range.endIndex);
|
|
987
|
+
for (let depth = range.depth, contentBefore = 0, contentAfter = 0;; --depth) {
|
|
988
|
+
let node = range.$from.node(depth);
|
|
989
|
+
let index = range.$from.index(depth) + contentBefore, endIndex = range.$to.indexAfter(depth) - contentAfter;
|
|
990
|
+
if (depth < range.depth && node.canReplace(index, endIndex, content))
|
|
991
|
+
return depth;
|
|
992
|
+
if (depth == 0 || node.type.spec.isolating || !canCut(node, index, endIndex))
|
|
993
|
+
break;
|
|
994
|
+
if (index)
|
|
995
|
+
contentBefore = 1;
|
|
996
|
+
if (endIndex < node.childCount)
|
|
997
|
+
contentAfter = 1;
|
|
998
|
+
}
|
|
999
|
+
return null;
|
|
1000
|
+
}
|
|
1001
|
+
function lift(tr, range, target) {
|
|
1002
|
+
let { $from, $to, depth } = range;
|
|
1003
|
+
let gapStart = $from.before(depth + 1), gapEnd = $to.after(depth + 1);
|
|
1004
|
+
let start = gapStart, end = gapEnd;
|
|
1005
|
+
let before = index.Fragment.empty, openStart = 0;
|
|
1006
|
+
for (let d = depth, splitting = false; d > target; d--)
|
|
1007
|
+
if (splitting || $from.index(d) > 0) {
|
|
1008
|
+
splitting = true;
|
|
1009
|
+
before = index.Fragment.from($from.node(d).copy(before));
|
|
1010
|
+
openStart++;
|
|
1011
|
+
}
|
|
1012
|
+
else {
|
|
1013
|
+
start--;
|
|
1014
|
+
}
|
|
1015
|
+
let after = index.Fragment.empty, openEnd = 0;
|
|
1016
|
+
for (let d = depth, splitting = false; d > target; d--)
|
|
1017
|
+
if (splitting || $to.after(d + 1) < $to.end(d)) {
|
|
1018
|
+
splitting = true;
|
|
1019
|
+
after = index.Fragment.from($to.node(d).copy(after));
|
|
1020
|
+
openEnd++;
|
|
1021
|
+
}
|
|
1022
|
+
else {
|
|
1023
|
+
end++;
|
|
1024
|
+
}
|
|
1025
|
+
tr.step(new ReplaceAroundStep(start, end, gapStart, gapEnd, new index.Slice(before.append(after), openStart, openEnd), before.size - openStart, true));
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
Try to find a valid way to wrap the content in the given range in a
|
|
1029
|
+
node of the given type. May introduce extra nodes around and inside
|
|
1030
|
+
the wrapper node, if necessary. Returns null if no valid wrapping
|
|
1031
|
+
could be found. When `innerRange` is given, that range's content is
|
|
1032
|
+
used as the content to fit into the wrapping, instead of the
|
|
1033
|
+
content of `range`.
|
|
1034
|
+
*/
|
|
1035
|
+
function findWrapping(range, nodeType, attrs = null, innerRange = range) {
|
|
1036
|
+
let around = findWrappingOutside(range, nodeType);
|
|
1037
|
+
let inner = around && findWrappingInside(innerRange, nodeType);
|
|
1038
|
+
if (!inner)
|
|
1039
|
+
return null;
|
|
1040
|
+
return around.map(withAttrs)
|
|
1041
|
+
.concat({ type: nodeType, attrs }).concat(inner.map(withAttrs));
|
|
1042
|
+
}
|
|
1043
|
+
function withAttrs(type) { return { type, attrs: null }; }
|
|
1044
|
+
function findWrappingOutside(range, type) {
|
|
1045
|
+
let { parent, startIndex, endIndex } = range;
|
|
1046
|
+
let around = parent.contentMatchAt(startIndex).findWrapping(type);
|
|
1047
|
+
if (!around)
|
|
1048
|
+
return null;
|
|
1049
|
+
let outer = around.length ? around[0] : type;
|
|
1050
|
+
return parent.canReplaceWith(startIndex, endIndex, outer) ? around : null;
|
|
1051
|
+
}
|
|
1052
|
+
function findWrappingInside(range, type) {
|
|
1053
|
+
let { parent, startIndex, endIndex } = range;
|
|
1054
|
+
let inner = parent.child(startIndex);
|
|
1055
|
+
let inside = type.contentMatch.findWrapping(inner.type);
|
|
1056
|
+
if (!inside)
|
|
1057
|
+
return null;
|
|
1058
|
+
let lastType = inside.length ? inside[inside.length - 1] : type;
|
|
1059
|
+
let innerMatch = lastType.contentMatch;
|
|
1060
|
+
for (let i = startIndex; innerMatch && i < endIndex; i++)
|
|
1061
|
+
innerMatch = innerMatch.matchType(parent.child(i).type);
|
|
1062
|
+
if (!innerMatch || !innerMatch.validEnd)
|
|
1063
|
+
return null;
|
|
1064
|
+
return inside;
|
|
1065
|
+
}
|
|
1066
|
+
function wrap(tr, range, wrappers) {
|
|
1067
|
+
let content = index.Fragment.empty;
|
|
1068
|
+
for (let i = wrappers.length - 1; i >= 0; i--) {
|
|
1069
|
+
if (content.size) {
|
|
1070
|
+
let match = wrappers[i].type.contentMatch.matchFragment(content);
|
|
1071
|
+
if (!match || !match.validEnd)
|
|
1072
|
+
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
1073
|
+
}
|
|
1074
|
+
content = index.Fragment.from(wrappers[i].type.create(wrappers[i].attrs, content));
|
|
1075
|
+
}
|
|
1076
|
+
let start = range.start, end = range.end;
|
|
1077
|
+
tr.step(new ReplaceAroundStep(start, end, start, end, new index.Slice(content, 0, 0), wrappers.length, true));
|
|
1078
|
+
}
|
|
1079
|
+
function setBlockType(tr, from, to, type, attrs) {
|
|
1080
|
+
if (!type.isTextblock)
|
|
1081
|
+
throw new RangeError("Type given to setBlockType should be a textblock");
|
|
1082
|
+
let mapFrom = tr.steps.length;
|
|
1083
|
+
tr.doc.nodesBetween(from, to, (node, pos) => {
|
|
1084
|
+
let attrsHere = typeof attrs == "function" ? attrs(node) : attrs;
|
|
1085
|
+
if (node.isTextblock && !node.hasMarkup(type, attrsHere) &&
|
|
1086
|
+
canChangeType(tr.doc, tr.mapping.slice(mapFrom).map(pos), type)) {
|
|
1087
|
+
let convertNewlines = null;
|
|
1088
|
+
if (type.schema.linebreakReplacement) {
|
|
1089
|
+
let pre = type.whitespace == "pre", supportLinebreak = !!type.contentMatch.matchType(type.schema.linebreakReplacement);
|
|
1090
|
+
if (pre && !supportLinebreak)
|
|
1091
|
+
convertNewlines = false;
|
|
1092
|
+
else if (!pre && supportLinebreak)
|
|
1093
|
+
convertNewlines = true;
|
|
1094
|
+
}
|
|
1095
|
+
// Ensure all markup that isn't allowed in the new node type is cleared
|
|
1096
|
+
if (convertNewlines === false)
|
|
1097
|
+
replaceLinebreaks(tr, node, pos, mapFrom);
|
|
1098
|
+
clearIncompatible(tr, tr.mapping.slice(mapFrom).map(pos, 1), type, undefined, convertNewlines === null);
|
|
1099
|
+
let mapping = tr.mapping.slice(mapFrom);
|
|
1100
|
+
let startM = mapping.map(pos, 1), endM = mapping.map(pos + node.nodeSize, 1);
|
|
1101
|
+
tr.step(new ReplaceAroundStep(startM, endM, startM + 1, endM - 1, new index.Slice(index.Fragment.from(type.create(attrsHere, null, node.marks)), 0, 0), 1, true));
|
|
1102
|
+
if (convertNewlines === true)
|
|
1103
|
+
replaceNewlines(tr, node, pos, mapFrom);
|
|
1104
|
+
return false;
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
function replaceNewlines(tr, node, pos, mapFrom) {
|
|
1109
|
+
node.forEach((child, offset) => {
|
|
1110
|
+
if (child.isText) {
|
|
1111
|
+
let m, newline = /\r?\n|\r/g;
|
|
1112
|
+
while (m = newline.exec(child.text)) {
|
|
1113
|
+
let start = tr.mapping.slice(mapFrom).map(pos + 1 + offset + m.index);
|
|
1114
|
+
tr.replaceWith(start, start + 1, node.type.schema.linebreakReplacement.create());
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
function replaceLinebreaks(tr, node, pos, mapFrom) {
|
|
1120
|
+
node.forEach((child, offset) => {
|
|
1121
|
+
if (child.type == child.type.schema.linebreakReplacement) {
|
|
1122
|
+
let start = tr.mapping.slice(mapFrom).map(pos + 1 + offset);
|
|
1123
|
+
tr.replaceWith(start, start + 1, node.type.schema.text("\n"));
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
function canChangeType(doc, pos, type) {
|
|
1128
|
+
let $pos = doc.resolve(pos), index = $pos.index();
|
|
1129
|
+
return $pos.parent.canReplaceWith(index, index + 1, type);
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
Change the type, attributes, and/or marks of the node at `pos`.
|
|
1133
|
+
When `type` isn't given, the existing node type is preserved,
|
|
1134
|
+
*/
|
|
1135
|
+
function setNodeMarkup(tr, pos, type, attrs, marks) {
|
|
1136
|
+
let node = tr.doc.nodeAt(pos);
|
|
1137
|
+
if (!node)
|
|
1138
|
+
throw new RangeError("No node at given position");
|
|
1139
|
+
if (!type)
|
|
1140
|
+
type = node.type;
|
|
1141
|
+
let newNode = type.create(attrs, null, marks || node.marks);
|
|
1142
|
+
if (node.isLeaf)
|
|
1143
|
+
return tr.replaceWith(pos, pos + node.nodeSize, newNode);
|
|
1144
|
+
if (!type.validContent(node.content))
|
|
1145
|
+
throw new RangeError("Invalid content for node type " + type.name);
|
|
1146
|
+
tr.step(new ReplaceAroundStep(pos, pos + node.nodeSize, pos + 1, pos + node.nodeSize - 1, new index.Slice(index.Fragment.from(newNode), 0, 0), 1, true));
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
Check whether splitting at the given position is allowed.
|
|
1150
|
+
*/
|
|
1151
|
+
function canSplit(doc, pos, depth = 1, typesAfter) {
|
|
1152
|
+
let $pos = doc.resolve(pos), base = $pos.depth - depth;
|
|
1153
|
+
let innerType = (typesAfter && typesAfter[typesAfter.length - 1]) || $pos.parent;
|
|
1154
|
+
if (base < 0 || $pos.parent.type.spec.isolating ||
|
|
1155
|
+
!$pos.parent.canReplace($pos.index(), $pos.parent.childCount) ||
|
|
1156
|
+
!innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount)))
|
|
1157
|
+
return false;
|
|
1158
|
+
for (let d = $pos.depth - 1, i = depth - 2; d > base; d--, i--) {
|
|
1159
|
+
let node = $pos.node(d), index = $pos.index(d);
|
|
1160
|
+
if (node.type.spec.isolating)
|
|
1161
|
+
return false;
|
|
1162
|
+
let rest = node.content.cutByIndex(index, node.childCount);
|
|
1163
|
+
let overrideChild = typesAfter && typesAfter[i + 1];
|
|
1164
|
+
if (overrideChild)
|
|
1165
|
+
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
|
|
1166
|
+
let after = (typesAfter && typesAfter[i]) || node;
|
|
1167
|
+
if (!node.canReplace(index + 1, node.childCount) || !after.type.validContent(rest))
|
|
1168
|
+
return false;
|
|
1169
|
+
}
|
|
1170
|
+
let index = $pos.indexAfter(base);
|
|
1171
|
+
let baseType = typesAfter && typesAfter[0];
|
|
1172
|
+
return $pos.node(base).canReplaceWith(index, index, baseType ? baseType.type : $pos.node(base + 1).type);
|
|
1173
|
+
}
|
|
1174
|
+
function split(tr, pos, depth = 1, typesAfter) {
|
|
1175
|
+
let $pos = tr.doc.resolve(pos), before = index.Fragment.empty, after = index.Fragment.empty;
|
|
1176
|
+
for (let d = $pos.depth, e = $pos.depth - depth, i = depth - 1; d > e; d--, i--) {
|
|
1177
|
+
before = index.Fragment.from($pos.node(d).copy(before));
|
|
1178
|
+
let typeAfter = typesAfter && typesAfter[i];
|
|
1179
|
+
after = index.Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d).copy(after));
|
|
1180
|
+
}
|
|
1181
|
+
tr.step(new ReplaceStep(pos, pos, new index.Slice(before.append(after), depth, depth), true));
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
Test whether the blocks before and after a given position can be
|
|
1185
|
+
joined.
|
|
1186
|
+
*/
|
|
1187
|
+
function canJoin(doc, pos) {
|
|
1188
|
+
let $pos = doc.resolve(pos), index = $pos.index();
|
|
1189
|
+
return joinable($pos.nodeBefore, $pos.nodeAfter) &&
|
|
1190
|
+
$pos.parent.canReplace(index, index + 1);
|
|
1191
|
+
}
|
|
1192
|
+
function canAppendWithSubstitutedLinebreaks(a, b) {
|
|
1193
|
+
if (!b.content.size)
|
|
1194
|
+
a.type.compatibleContent(b.type);
|
|
1195
|
+
let match = a.contentMatchAt(a.childCount);
|
|
1196
|
+
let { linebreakReplacement } = a.type.schema;
|
|
1197
|
+
for (let i = 0; i < b.childCount; i++) {
|
|
1198
|
+
let child = b.child(i);
|
|
1199
|
+
let type = child.type == linebreakReplacement ? a.type.schema.nodes.text : child.type;
|
|
1200
|
+
match = match.matchType(type);
|
|
1201
|
+
if (!match)
|
|
1202
|
+
return false;
|
|
1203
|
+
if (!a.type.allowsMarks(child.marks))
|
|
1204
|
+
return false;
|
|
1205
|
+
}
|
|
1206
|
+
return match.validEnd;
|
|
1207
|
+
}
|
|
1208
|
+
function joinable(a, b) {
|
|
1209
|
+
return !!(a && b && !a.isLeaf && canAppendWithSubstitutedLinebreaks(a, b));
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
Find an ancestor of the given position that can be joined to the
|
|
1213
|
+
block before (or after if `dir` is positive). Returns the joinable
|
|
1214
|
+
point, if any.
|
|
1215
|
+
*/
|
|
1216
|
+
function joinPoint(doc, pos, dir = -1) {
|
|
1217
|
+
let $pos = doc.resolve(pos);
|
|
1218
|
+
for (let d = $pos.depth;; d--) {
|
|
1219
|
+
let before, after, index = $pos.index(d);
|
|
1220
|
+
if (d == $pos.depth) {
|
|
1221
|
+
before = $pos.nodeBefore;
|
|
1222
|
+
after = $pos.nodeAfter;
|
|
1223
|
+
}
|
|
1224
|
+
else if (dir > 0) {
|
|
1225
|
+
before = $pos.node(d + 1);
|
|
1226
|
+
index++;
|
|
1227
|
+
after = $pos.node(d).maybeChild(index);
|
|
1228
|
+
}
|
|
1229
|
+
else {
|
|
1230
|
+
before = $pos.node(d).maybeChild(index - 1);
|
|
1231
|
+
after = $pos.node(d + 1);
|
|
1232
|
+
}
|
|
1233
|
+
if (before && !before.isTextblock && joinable(before, after) &&
|
|
1234
|
+
$pos.node(d).canReplace(index, index + 1))
|
|
1235
|
+
return pos;
|
|
1236
|
+
if (d == 0)
|
|
1237
|
+
break;
|
|
1238
|
+
pos = dir < 0 ? $pos.before(d) : $pos.after(d);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
function join(tr, pos, depth) {
|
|
1242
|
+
let convertNewlines = null;
|
|
1243
|
+
let { linebreakReplacement } = tr.doc.type.schema;
|
|
1244
|
+
let $before = tr.doc.resolve(pos - depth), beforeType = $before.node().type;
|
|
1245
|
+
if (linebreakReplacement && beforeType.inlineContent) {
|
|
1246
|
+
let pre = beforeType.whitespace == "pre";
|
|
1247
|
+
let supportLinebreak = !!beforeType.contentMatch.matchType(linebreakReplacement);
|
|
1248
|
+
if (pre && !supportLinebreak)
|
|
1249
|
+
convertNewlines = false;
|
|
1250
|
+
else if (!pre && supportLinebreak)
|
|
1251
|
+
convertNewlines = true;
|
|
1252
|
+
}
|
|
1253
|
+
let mapFrom = tr.steps.length;
|
|
1254
|
+
if (convertNewlines === false) {
|
|
1255
|
+
let $after = tr.doc.resolve(pos + depth);
|
|
1256
|
+
replaceLinebreaks(tr, $after.node(), $after.before(), mapFrom);
|
|
1257
|
+
}
|
|
1258
|
+
if (beforeType.inlineContent)
|
|
1259
|
+
clearIncompatible(tr, pos + depth - 1, beforeType, $before.node().contentMatchAt($before.index()), convertNewlines == null);
|
|
1260
|
+
let mapping = tr.mapping.slice(mapFrom), start = mapping.map(pos - depth);
|
|
1261
|
+
tr.step(new ReplaceStep(start, mapping.map(pos + depth, -1), index.Slice.empty, true));
|
|
1262
|
+
if (convertNewlines === true) {
|
|
1263
|
+
let $full = tr.doc.resolve(start);
|
|
1264
|
+
replaceNewlines(tr, $full.node(), $full.before(), tr.steps.length);
|
|
1265
|
+
}
|
|
1266
|
+
return tr;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
Try to find a point where a node of the given type can be inserted
|
|
1270
|
+
near `pos`, by searching up the node hierarchy when `pos` itself
|
|
1271
|
+
isn't a valid place but is at the start or end of a node. Return
|
|
1272
|
+
null if no position was found.
|
|
1273
|
+
*/
|
|
1274
|
+
function insertPoint(doc, pos, nodeType) {
|
|
1275
|
+
let $pos = doc.resolve(pos);
|
|
1276
|
+
if ($pos.parent.canReplaceWith($pos.index(), $pos.index(), nodeType))
|
|
1277
|
+
return pos;
|
|
1278
|
+
if ($pos.parentOffset == 0)
|
|
1279
|
+
for (let d = $pos.depth - 1; d >= 0; d--) {
|
|
1280
|
+
let index = $pos.index(d);
|
|
1281
|
+
if ($pos.node(d).canReplaceWith(index, index, nodeType))
|
|
1282
|
+
return $pos.before(d + 1);
|
|
1283
|
+
if (index > 0)
|
|
1284
|
+
return null;
|
|
1285
|
+
}
|
|
1286
|
+
if ($pos.parentOffset == $pos.parent.content.size)
|
|
1287
|
+
for (let d = $pos.depth - 1; d >= 0; d--) {
|
|
1288
|
+
let index = $pos.indexAfter(d);
|
|
1289
|
+
if ($pos.node(d).canReplaceWith(index, index, nodeType))
|
|
1290
|
+
return $pos.after(d + 1);
|
|
1291
|
+
if (index < $pos.node(d).childCount)
|
|
1292
|
+
return null;
|
|
1293
|
+
}
|
|
1294
|
+
return null;
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
Finds a position at or around the given position where the given
|
|
1298
|
+
slice can be inserted. Will look at parent nodes' nearest boundary
|
|
1299
|
+
and try there, even if the original position wasn't directly at the
|
|
1300
|
+
start or end of that node. Returns null when no position was found.
|
|
1301
|
+
*/
|
|
1302
|
+
function dropPoint(doc, pos, slice) {
|
|
1303
|
+
let $pos = doc.resolve(pos);
|
|
1304
|
+
if (!slice.content.size)
|
|
1305
|
+
return pos;
|
|
1306
|
+
let content = slice.content;
|
|
1307
|
+
for (let i = 0; i < slice.openStart; i++)
|
|
1308
|
+
content = content.firstChild.content;
|
|
1309
|
+
for (let pass = 1; pass <= (slice.openStart == 0 && slice.size ? 2 : 1); pass++) {
|
|
1310
|
+
for (let d = $pos.depth; d >= 0; d--) {
|
|
1311
|
+
let bias = d == $pos.depth ? 0 : $pos.pos <= ($pos.start(d + 1) + $pos.end(d + 1)) / 2 ? -1 : 1;
|
|
1312
|
+
let insertPos = $pos.index(d) + (bias > 0 ? 1 : 0);
|
|
1313
|
+
let parent = $pos.node(d), fits = false;
|
|
1314
|
+
if (pass == 1) {
|
|
1315
|
+
fits = parent.canReplace(insertPos, insertPos, content);
|
|
1316
|
+
}
|
|
1317
|
+
else {
|
|
1318
|
+
let wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type);
|
|
1319
|
+
fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);
|
|
1320
|
+
}
|
|
1321
|
+
if (fits)
|
|
1322
|
+
return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
return null;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
‘Fit’ a slice into a given position in the document, producing a
|
|
1330
|
+
[step](https://prosemirror.net/docs/ref/#transform.Step) that inserts it. Will return null if
|
|
1331
|
+
there's no meaningful way to insert the slice here, or inserting it
|
|
1332
|
+
would be a no-op (an empty slice over an empty range).
|
|
1333
|
+
*/
|
|
1334
|
+
function replaceStep(doc, from, to = from, slice = index.Slice.empty) {
|
|
1335
|
+
if (from == to && !slice.size)
|
|
1336
|
+
return null;
|
|
1337
|
+
let $from = doc.resolve(from), $to = doc.resolve(to);
|
|
1338
|
+
// Optimization -- avoid work if it's obvious that it's not needed.
|
|
1339
|
+
if (fitsTrivially($from, $to, slice))
|
|
1340
|
+
return new ReplaceStep(from, to, slice);
|
|
1341
|
+
return new Fitter($from, $to, slice).fit();
|
|
1342
|
+
}
|
|
1343
|
+
function fitsTrivially($from, $to, slice) {
|
|
1344
|
+
return !slice.openStart && !slice.openEnd && $from.start() == $to.start() &&
|
|
1345
|
+
$from.parent.canReplace($from.index(), $to.index(), slice.content);
|
|
1346
|
+
}
|
|
1347
|
+
// Algorithm for 'placing' the elements of a slice into a gap:
|
|
1348
|
+
//
|
|
1349
|
+
// We consider the content of each node that is open to the left to be
|
|
1350
|
+
// independently placeable. I.e. in <p("foo"), p("bar")>, when the
|
|
1351
|
+
// paragraph on the left is open, "foo" can be placed (somewhere on
|
|
1352
|
+
// the left side of the replacement gap) independently from p("bar").
|
|
1353
|
+
//
|
|
1354
|
+
// This class tracks the state of the placement progress in the
|
|
1355
|
+
// following properties:
|
|
1356
|
+
//
|
|
1357
|
+
// - `frontier` holds a stack of `{type, match}` objects that
|
|
1358
|
+
// represent the open side of the replacement. It starts at
|
|
1359
|
+
// `$from`, then moves forward as content is placed, and is finally
|
|
1360
|
+
// reconciled with `$to`.
|
|
1361
|
+
//
|
|
1362
|
+
// - `unplaced` is a slice that represents the content that hasn't
|
|
1363
|
+
// been placed yet.
|
|
1364
|
+
//
|
|
1365
|
+
// - `placed` is a fragment of placed content. Its open-start value
|
|
1366
|
+
// is implicit in `$from`, and its open-end value in `frontier`.
|
|
1367
|
+
class Fitter {
|
|
1368
|
+
constructor($from, $to, unplaced) {
|
|
1369
|
+
this.$from = $from;
|
|
1370
|
+
this.$to = $to;
|
|
1371
|
+
this.unplaced = unplaced;
|
|
1372
|
+
this.frontier = [];
|
|
1373
|
+
this.placed = index.Fragment.empty;
|
|
1374
|
+
for (let i = 0; i <= $from.depth; i++) {
|
|
1375
|
+
let node = $from.node(i);
|
|
1376
|
+
this.frontier.push({
|
|
1377
|
+
type: node.type,
|
|
1378
|
+
match: node.contentMatchAt($from.indexAfter(i))
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
for (let i = $from.depth; i > 0; i--)
|
|
1382
|
+
this.placed = index.Fragment.from($from.node(i).copy(this.placed));
|
|
1383
|
+
}
|
|
1384
|
+
get depth() { return this.frontier.length - 1; }
|
|
1385
|
+
fit() {
|
|
1386
|
+
// As long as there's unplaced content, try to place some of it.
|
|
1387
|
+
// If that fails, either increase the open score of the unplaced
|
|
1388
|
+
// slice, or drop nodes from it, and then try again.
|
|
1389
|
+
while (this.unplaced.size) {
|
|
1390
|
+
let fit = this.findFittable();
|
|
1391
|
+
if (fit)
|
|
1392
|
+
this.placeNodes(fit);
|
|
1393
|
+
else
|
|
1394
|
+
this.openMore() || this.dropNode();
|
|
1395
|
+
}
|
|
1396
|
+
// When there's inline content directly after the frontier _and_
|
|
1397
|
+
// directly after `this.$to`, we must generate a `ReplaceAround`
|
|
1398
|
+
// step that pulls that content into the node after the frontier.
|
|
1399
|
+
// That means the fitting must be done to the end of the textblock
|
|
1400
|
+
// node after `this.$to`, not `this.$to` itself.
|
|
1401
|
+
let moveInline = this.mustMoveInline(), placedSize = this.placed.size - this.depth - this.$from.depth;
|
|
1402
|
+
let $from = this.$from, $to = this.close(moveInline < 0 ? this.$to : $from.doc.resolve(moveInline));
|
|
1403
|
+
if (!$to)
|
|
1404
|
+
return null;
|
|
1405
|
+
// If closing to `$to` succeeded, create a step
|
|
1406
|
+
let content = this.placed, openStart = $from.depth, openEnd = $to.depth;
|
|
1407
|
+
while (openStart && openEnd && content.childCount == 1) { // Normalize by dropping open parent nodes
|
|
1408
|
+
content = content.firstChild.content;
|
|
1409
|
+
openStart--;
|
|
1410
|
+
openEnd--;
|
|
1411
|
+
}
|
|
1412
|
+
let slice = new index.Slice(content, openStart, openEnd);
|
|
1413
|
+
if (moveInline > -1)
|
|
1414
|
+
return new ReplaceAroundStep($from.pos, moveInline, this.$to.pos, this.$to.end(), slice, placedSize);
|
|
1415
|
+
if (slice.size || $from.pos != this.$to.pos) // Don't generate no-op steps
|
|
1416
|
+
return new ReplaceStep($from.pos, $to.pos, slice);
|
|
1417
|
+
return null;
|
|
1418
|
+
}
|
|
1419
|
+
// Find a position on the start spine of `this.unplaced` that has
|
|
1420
|
+
// content that can be moved somewhere on the frontier. Returns two
|
|
1421
|
+
// depths, one for the slice and one for the frontier.
|
|
1422
|
+
findFittable() {
|
|
1423
|
+
let startDepth = this.unplaced.openStart;
|
|
1424
|
+
for (let cur = this.unplaced.content, d = 0, openEnd = this.unplaced.openEnd; d < startDepth; d++) {
|
|
1425
|
+
let node = cur.firstChild;
|
|
1426
|
+
if (cur.childCount > 1)
|
|
1427
|
+
openEnd = 0;
|
|
1428
|
+
if (node.type.spec.isolating && openEnd <= d) {
|
|
1429
|
+
startDepth = d;
|
|
1430
|
+
break;
|
|
1431
|
+
}
|
|
1432
|
+
cur = node.content;
|
|
1433
|
+
}
|
|
1434
|
+
// Only try wrapping nodes (pass 2) after finding a place without
|
|
1435
|
+
// wrapping failed.
|
|
1436
|
+
for (let pass = 1; pass <= 2; pass++) {
|
|
1437
|
+
for (let sliceDepth = pass == 1 ? startDepth : this.unplaced.openStart; sliceDepth >= 0; sliceDepth--) {
|
|
1438
|
+
let fragment, parent = null;
|
|
1439
|
+
if (sliceDepth) {
|
|
1440
|
+
parent = contentAt(this.unplaced.content, sliceDepth - 1).firstChild;
|
|
1441
|
+
fragment = parent.content;
|
|
1442
|
+
}
|
|
1443
|
+
else {
|
|
1444
|
+
fragment = this.unplaced.content;
|
|
1445
|
+
}
|
|
1446
|
+
let first = fragment.firstChild;
|
|
1447
|
+
for (let frontierDepth = this.depth; frontierDepth >= 0; frontierDepth--) {
|
|
1448
|
+
let { type, match } = this.frontier[frontierDepth], wrap, inject = null;
|
|
1449
|
+
// In pass 1, if the next node matches, or there is no next
|
|
1450
|
+
// node but the parents look compatible, we've found a
|
|
1451
|
+
// place.
|
|
1452
|
+
if (pass == 1 && (first ? match.matchType(first.type) || (inject = match.fillBefore(index.Fragment.from(first), false))
|
|
1453
|
+
: parent && type.compatibleContent(parent.type)))
|
|
1454
|
+
return { sliceDepth, frontierDepth, parent, inject };
|
|
1455
|
+
// In pass 2, look for a set of wrapping nodes that make
|
|
1456
|
+
// `first` fit here.
|
|
1457
|
+
else if (pass == 2 && first && (wrap = match.findWrapping(first.type)))
|
|
1458
|
+
return { sliceDepth, frontierDepth, parent, wrap };
|
|
1459
|
+
// Don't continue looking further up if the parent node
|
|
1460
|
+
// would fit here.
|
|
1461
|
+
if (parent && match.matchType(parent.type))
|
|
1462
|
+
break;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
openMore() {
|
|
1468
|
+
let { content, openStart, openEnd } = this.unplaced;
|
|
1469
|
+
let inner = contentAt(content, openStart);
|
|
1470
|
+
if (!inner.childCount || inner.firstChild.isLeaf)
|
|
1471
|
+
return false;
|
|
1472
|
+
this.unplaced = new index.Slice(content, openStart + 1, Math.max(openEnd, inner.size + openStart >= content.size - openEnd ? openStart + 1 : 0));
|
|
1473
|
+
return true;
|
|
1474
|
+
}
|
|
1475
|
+
dropNode() {
|
|
1476
|
+
let { content, openStart, openEnd } = this.unplaced;
|
|
1477
|
+
let inner = contentAt(content, openStart);
|
|
1478
|
+
if (inner.childCount <= 1 && openStart > 0) {
|
|
1479
|
+
let openAtEnd = content.size - openStart <= openStart + inner.size;
|
|
1480
|
+
this.unplaced = new index.Slice(dropFromFragment(content, openStart - 1, 1), openStart - 1, openAtEnd ? openStart - 1 : openEnd);
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
this.unplaced = new index.Slice(dropFromFragment(content, openStart, 1), openStart, openEnd);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
// Move content from the unplaced slice at `sliceDepth` to the
|
|
1487
|
+
// frontier node at `frontierDepth`. Close that frontier node when
|
|
1488
|
+
// applicable.
|
|
1489
|
+
placeNodes({ sliceDepth, frontierDepth, parent, inject, wrap }) {
|
|
1490
|
+
while (this.depth > frontierDepth)
|
|
1491
|
+
this.closeFrontierNode();
|
|
1492
|
+
if (wrap)
|
|
1493
|
+
for (let i = 0; i < wrap.length; i++)
|
|
1494
|
+
this.openFrontierNode(wrap[i]);
|
|
1495
|
+
let slice = this.unplaced, fragment = parent ? parent.content : slice.content;
|
|
1496
|
+
let openStart = slice.openStart - sliceDepth;
|
|
1497
|
+
let taken = 0, add = [];
|
|
1498
|
+
let { match, type } = this.frontier[frontierDepth];
|
|
1499
|
+
if (inject) {
|
|
1500
|
+
for (let i = 0; i < inject.childCount; i++)
|
|
1501
|
+
add.push(inject.child(i));
|
|
1502
|
+
match = match.matchFragment(inject);
|
|
1503
|
+
}
|
|
1504
|
+
// Computes the amount of (end) open nodes at the end of the
|
|
1505
|
+
// fragment. When 0, the parent is open, but no more. When
|
|
1506
|
+
// negative, nothing is open.
|
|
1507
|
+
let openEndCount = (fragment.size + sliceDepth) - (slice.content.size - slice.openEnd);
|
|
1508
|
+
// Scan over the fragment, fitting as many child nodes as
|
|
1509
|
+
// possible.
|
|
1510
|
+
while (taken < fragment.childCount) {
|
|
1511
|
+
let next = fragment.child(taken), matches = match.matchType(next.type);
|
|
1512
|
+
if (!matches)
|
|
1513
|
+
break;
|
|
1514
|
+
taken++;
|
|
1515
|
+
if (taken > 1 || openStart == 0 || next.content.size) { // Drop empty open nodes
|
|
1516
|
+
match = matches;
|
|
1517
|
+
add.push(closeNodeStart(next.mark(type.allowedMarks(next.marks)), taken == 1 ? openStart : 0, taken == fragment.childCount ? openEndCount : -1));
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
let toEnd = taken == fragment.childCount;
|
|
1521
|
+
if (!toEnd)
|
|
1522
|
+
openEndCount = -1;
|
|
1523
|
+
this.placed = addToFragment(this.placed, frontierDepth, index.Fragment.from(add));
|
|
1524
|
+
this.frontier[frontierDepth].match = match;
|
|
1525
|
+
// If the parent types match, and the entire node was moved, and
|
|
1526
|
+
// it's not open, close this frontier node right away.
|
|
1527
|
+
if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type && this.frontier.length > 1)
|
|
1528
|
+
this.closeFrontierNode();
|
|
1529
|
+
// Add new frontier nodes for any open nodes at the end.
|
|
1530
|
+
for (let i = 0, cur = fragment; i < openEndCount; i++) {
|
|
1531
|
+
let node = cur.lastChild;
|
|
1532
|
+
this.frontier.push({ type: node.type, match: node.contentMatchAt(node.childCount) });
|
|
1533
|
+
cur = node.content;
|
|
1534
|
+
}
|
|
1535
|
+
// Update `this.unplaced`. Drop the entire node from which we
|
|
1536
|
+
// placed it we got to its end, otherwise just drop the placed
|
|
1537
|
+
// nodes.
|
|
1538
|
+
this.unplaced = !toEnd ? new index.Slice(dropFromFragment(slice.content, sliceDepth, taken), slice.openStart, slice.openEnd)
|
|
1539
|
+
: sliceDepth == 0 ? index.Slice.empty
|
|
1540
|
+
: new index.Slice(dropFromFragment(slice.content, sliceDepth - 1, 1), sliceDepth - 1, openEndCount < 0 ? slice.openEnd : sliceDepth - 1);
|
|
1541
|
+
}
|
|
1542
|
+
mustMoveInline() {
|
|
1543
|
+
if (!this.$to.parent.isTextblock)
|
|
1544
|
+
return -1;
|
|
1545
|
+
let top = this.frontier[this.depth], level;
|
|
1546
|
+
if (!top.type.isTextblock || !contentAfterFits(this.$to, this.$to.depth, top.type, top.match, false) ||
|
|
1547
|
+
(this.$to.depth == this.depth && (level = this.findCloseLevel(this.$to)) && level.depth == this.depth))
|
|
1548
|
+
return -1;
|
|
1549
|
+
let { depth } = this.$to, after = this.$to.after(depth);
|
|
1550
|
+
while (depth > 1 && after == this.$to.end(--depth))
|
|
1551
|
+
++after;
|
|
1552
|
+
return after;
|
|
1553
|
+
}
|
|
1554
|
+
findCloseLevel($to) {
|
|
1555
|
+
scan: for (let i = Math.min(this.depth, $to.depth); i >= 0; i--) {
|
|
1556
|
+
let { match, type } = this.frontier[i];
|
|
1557
|
+
let dropInner = i < $to.depth && $to.end(i + 1) == $to.pos + ($to.depth - (i + 1));
|
|
1558
|
+
let fit = contentAfterFits($to, i, type, match, dropInner);
|
|
1559
|
+
if (!fit)
|
|
1560
|
+
continue;
|
|
1561
|
+
for (let d = i - 1; d >= 0; d--) {
|
|
1562
|
+
let { match, type } = this.frontier[d];
|
|
1563
|
+
let matches = contentAfterFits($to, d, type, match, true);
|
|
1564
|
+
if (!matches || matches.childCount)
|
|
1565
|
+
continue scan;
|
|
1566
|
+
}
|
|
1567
|
+
return { depth: i, fit, move: dropInner ? $to.doc.resolve($to.after(i + 1)) : $to };
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
close($to) {
|
|
1571
|
+
let close = this.findCloseLevel($to);
|
|
1572
|
+
if (!close)
|
|
1573
|
+
return null;
|
|
1574
|
+
while (this.depth > close.depth)
|
|
1575
|
+
this.closeFrontierNode();
|
|
1576
|
+
if (close.fit.childCount)
|
|
1577
|
+
this.placed = addToFragment(this.placed, close.depth, close.fit);
|
|
1578
|
+
$to = close.move;
|
|
1579
|
+
for (let d = close.depth + 1; d <= $to.depth; d++) {
|
|
1580
|
+
let node = $to.node(d), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));
|
|
1581
|
+
this.openFrontierNode(node.type, node.attrs, add);
|
|
1582
|
+
}
|
|
1583
|
+
return $to;
|
|
1584
|
+
}
|
|
1585
|
+
openFrontierNode(type, attrs = null, content) {
|
|
1586
|
+
let top = this.frontier[this.depth];
|
|
1587
|
+
top.match = top.match.matchType(type);
|
|
1588
|
+
this.placed = addToFragment(this.placed, this.depth, index.Fragment.from(type.create(attrs, content)));
|
|
1589
|
+
this.frontier.push({ type, match: type.contentMatch });
|
|
1590
|
+
}
|
|
1591
|
+
closeFrontierNode() {
|
|
1592
|
+
let open = this.frontier.pop();
|
|
1593
|
+
let add = open.match.fillBefore(index.Fragment.empty, true);
|
|
1594
|
+
if (add.childCount)
|
|
1595
|
+
this.placed = addToFragment(this.placed, this.frontier.length, add);
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
function dropFromFragment(fragment, depth, count) {
|
|
1599
|
+
if (depth == 0)
|
|
1600
|
+
return fragment.cutByIndex(count, fragment.childCount);
|
|
1601
|
+
return fragment.replaceChild(0, fragment.firstChild.copy(dropFromFragment(fragment.firstChild.content, depth - 1, count)));
|
|
1602
|
+
}
|
|
1603
|
+
function addToFragment(fragment, depth, content) {
|
|
1604
|
+
if (depth == 0)
|
|
1605
|
+
return fragment.append(content);
|
|
1606
|
+
return fragment.replaceChild(fragment.childCount - 1, fragment.lastChild.copy(addToFragment(fragment.lastChild.content, depth - 1, content)));
|
|
1607
|
+
}
|
|
1608
|
+
function contentAt(fragment, depth) {
|
|
1609
|
+
for (let i = 0; i < depth; i++)
|
|
1610
|
+
fragment = fragment.firstChild.content;
|
|
1611
|
+
return fragment;
|
|
1612
|
+
}
|
|
1613
|
+
function closeNodeStart(node, openStart, openEnd) {
|
|
1614
|
+
if (openStart <= 0)
|
|
1615
|
+
return node;
|
|
1616
|
+
let frag = node.content;
|
|
1617
|
+
if (openStart > 1)
|
|
1618
|
+
frag = frag.replaceChild(0, closeNodeStart(frag.firstChild, openStart - 1, frag.childCount == 1 ? openEnd - 1 : 0));
|
|
1619
|
+
if (openStart > 0) {
|
|
1620
|
+
frag = node.type.contentMatch.fillBefore(frag).append(frag);
|
|
1621
|
+
if (openEnd <= 0)
|
|
1622
|
+
frag = frag.append(node.type.contentMatch.matchFragment(frag).fillBefore(index.Fragment.empty, true));
|
|
1623
|
+
}
|
|
1624
|
+
return node.copy(frag);
|
|
1625
|
+
}
|
|
1626
|
+
function contentAfterFits($to, depth, type, match, open) {
|
|
1627
|
+
let node = $to.node(depth), index = open ? $to.indexAfter(depth) : $to.index(depth);
|
|
1628
|
+
if (index == node.childCount && !type.compatibleContent(node.type))
|
|
1629
|
+
return null;
|
|
1630
|
+
let fit = match.fillBefore(node.content, true, index);
|
|
1631
|
+
return fit && !invalidMarks(type, node.content, index) ? fit : null;
|
|
1632
|
+
}
|
|
1633
|
+
function invalidMarks(type, fragment, start) {
|
|
1634
|
+
for (let i = start; i < fragment.childCount; i++)
|
|
1635
|
+
if (!type.allowsMarks(fragment.child(i).marks))
|
|
1636
|
+
return true;
|
|
1637
|
+
return false;
|
|
1638
|
+
}
|
|
1639
|
+
function definesContent(type) {
|
|
1640
|
+
return type.spec.defining || type.spec.definingForContent;
|
|
1641
|
+
}
|
|
1642
|
+
function replaceRange(tr, from, to, slice) {
|
|
1643
|
+
if (!slice.size)
|
|
1644
|
+
return tr.deleteRange(from, to);
|
|
1645
|
+
let $from = tr.doc.resolve(from), $to = tr.doc.resolve(to);
|
|
1646
|
+
if (fitsTrivially($from, $to, slice))
|
|
1647
|
+
return tr.step(new ReplaceStep(from, to, slice));
|
|
1648
|
+
let targetDepths = coveredDepths($from, $to);
|
|
1649
|
+
// Can't replace the whole document, so remove 0 if it's present
|
|
1650
|
+
if (targetDepths[targetDepths.length - 1] == 0)
|
|
1651
|
+
targetDepths.pop();
|
|
1652
|
+
// Negative numbers represent not expansion over the whole node at
|
|
1653
|
+
// that depth, but replacing from $from.before(-D) to $to.pos.
|
|
1654
|
+
let preferredTarget = -($from.depth + 1);
|
|
1655
|
+
targetDepths.unshift(preferredTarget);
|
|
1656
|
+
// This loop picks a preferred target depth, if one of the covering
|
|
1657
|
+
// depths is not outside of a defining node, and adds negative
|
|
1658
|
+
// depths for any depth that has $from at its start and does not
|
|
1659
|
+
// cross a defining node.
|
|
1660
|
+
for (let d = $from.depth, pos = $from.pos - 1; d > 0; d--, pos--) {
|
|
1661
|
+
let spec = $from.node(d).type.spec;
|
|
1662
|
+
if (spec.defining || spec.definingAsContext || spec.isolating)
|
|
1663
|
+
break;
|
|
1664
|
+
if (targetDepths.indexOf(d) > -1)
|
|
1665
|
+
preferredTarget = d;
|
|
1666
|
+
else if ($from.before(d) == pos)
|
|
1667
|
+
targetDepths.splice(1, 0, -d);
|
|
1668
|
+
}
|
|
1669
|
+
// Try to fit each possible depth of the slice into each possible
|
|
1670
|
+
// target depth, starting with the preferred depths.
|
|
1671
|
+
let preferredTargetIndex = targetDepths.indexOf(preferredTarget);
|
|
1672
|
+
let leftNodes = [], preferredDepth = slice.openStart;
|
|
1673
|
+
for (let content = slice.content, i = 0;; i++) {
|
|
1674
|
+
let node = content.firstChild;
|
|
1675
|
+
leftNodes.push(node);
|
|
1676
|
+
if (i == slice.openStart)
|
|
1677
|
+
break;
|
|
1678
|
+
content = node.content;
|
|
1679
|
+
}
|
|
1680
|
+
// Back up preferredDepth to cover defining textblocks directly
|
|
1681
|
+
// above it, possibly skipping a non-defining textblock.
|
|
1682
|
+
for (let d = preferredDepth - 1; d >= 0; d--) {
|
|
1683
|
+
let leftNode = leftNodes[d], def = definesContent(leftNode.type);
|
|
1684
|
+
if (def && !leftNode.sameMarkup($from.node(Math.abs(preferredTarget) - 1)))
|
|
1685
|
+
preferredDepth = d;
|
|
1686
|
+
else if (def || !leftNode.type.isTextblock)
|
|
1687
|
+
break;
|
|
1688
|
+
}
|
|
1689
|
+
for (let j = slice.openStart; j >= 0; j--) {
|
|
1690
|
+
let openDepth = (j + preferredDepth + 1) % (slice.openStart + 1);
|
|
1691
|
+
let insert = leftNodes[openDepth];
|
|
1692
|
+
if (!insert)
|
|
1693
|
+
continue;
|
|
1694
|
+
for (let i = 0; i < targetDepths.length; i++) {
|
|
1695
|
+
// Loop over possible expansion levels, starting with the
|
|
1696
|
+
// preferred one
|
|
1697
|
+
let targetDepth = targetDepths[(i + preferredTargetIndex) % targetDepths.length], expand = true;
|
|
1698
|
+
if (targetDepth < 0) {
|
|
1699
|
+
expand = false;
|
|
1700
|
+
targetDepth = -targetDepth;
|
|
1701
|
+
}
|
|
1702
|
+
let parent = $from.node(targetDepth - 1), index$1 = $from.index(targetDepth - 1);
|
|
1703
|
+
if (parent.canReplaceWith(index$1, index$1, insert.type, insert.marks))
|
|
1704
|
+
return tr.replace($from.before(targetDepth), expand ? $to.after(targetDepth) : to, new index.Slice(closeFragment(slice.content, 0, slice.openStart, openDepth), openDepth, slice.openEnd));
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
let startSteps = tr.steps.length;
|
|
1708
|
+
for (let i = targetDepths.length - 1; i >= 0; i--) {
|
|
1709
|
+
tr.replace(from, to, slice);
|
|
1710
|
+
if (tr.steps.length > startSteps)
|
|
1711
|
+
break;
|
|
1712
|
+
let depth = targetDepths[i];
|
|
1713
|
+
if (depth < 0)
|
|
1714
|
+
continue;
|
|
1715
|
+
from = $from.before(depth);
|
|
1716
|
+
to = $to.after(depth);
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
function closeFragment(fragment, depth, oldOpen, newOpen, parent) {
|
|
1720
|
+
if (depth < oldOpen) {
|
|
1721
|
+
let first = fragment.firstChild;
|
|
1722
|
+
fragment = fragment.replaceChild(0, first.copy(closeFragment(first.content, depth + 1, oldOpen, newOpen, first)));
|
|
1723
|
+
}
|
|
1724
|
+
if (depth > newOpen) {
|
|
1725
|
+
let match = parent.contentMatchAt(0);
|
|
1726
|
+
let start = match.fillBefore(fragment).append(fragment);
|
|
1727
|
+
fragment = start.append(match.matchFragment(start).fillBefore(index.Fragment.empty, true));
|
|
1728
|
+
}
|
|
1729
|
+
return fragment;
|
|
1730
|
+
}
|
|
1731
|
+
function replaceRangeWith(tr, from, to, node) {
|
|
1732
|
+
if (!node.isInline && from == to && tr.doc.resolve(from).parent.content.size) {
|
|
1733
|
+
let point = insertPoint(tr.doc, from, node.type);
|
|
1734
|
+
if (point != null)
|
|
1735
|
+
from = to = point;
|
|
1736
|
+
}
|
|
1737
|
+
tr.replaceRange(from, to, new index.Slice(index.Fragment.from(node), 0, 0));
|
|
1738
|
+
}
|
|
1739
|
+
function deleteRange(tr, from, to) {
|
|
1740
|
+
let $from = tr.doc.resolve(from), $to = tr.doc.resolve(to);
|
|
1741
|
+
let covered = coveredDepths($from, $to);
|
|
1742
|
+
for (let i = 0; i < covered.length; i++) {
|
|
1743
|
+
let depth = covered[i], last = i == covered.length - 1;
|
|
1744
|
+
if ((last && depth == 0) || $from.node(depth).type.contentMatch.validEnd)
|
|
1745
|
+
return tr.delete($from.start(depth), $to.end(depth));
|
|
1746
|
+
if (depth > 0 && (last || $from.node(depth - 1).canReplace($from.index(depth - 1), $to.indexAfter(depth - 1))))
|
|
1747
|
+
return tr.delete($from.before(depth), $to.after(depth));
|
|
1748
|
+
}
|
|
1749
|
+
for (let d = 1; d <= $from.depth && d <= $to.depth; d++) {
|
|
1750
|
+
if (from - $from.start(d) == $from.depth - d && to > $from.end(d) && $to.end(d) - to != $to.depth - d &&
|
|
1751
|
+
$from.start(d - 1) == $to.start(d - 1) && $from.node(d - 1).canReplace($from.index(d - 1), $to.index(d - 1)))
|
|
1752
|
+
return tr.delete($from.before(d), to);
|
|
1753
|
+
}
|
|
1754
|
+
tr.delete(from, to);
|
|
1755
|
+
}
|
|
1756
|
+
// Returns an array of all depths for which $from - $to spans the
|
|
1757
|
+
// whole content of the nodes at that depth.
|
|
1758
|
+
function coveredDepths($from, $to) {
|
|
1759
|
+
let result = [], minDepth = Math.min($from.depth, $to.depth);
|
|
1760
|
+
for (let d = minDepth; d >= 0; d--) {
|
|
1761
|
+
let start = $from.start(d);
|
|
1762
|
+
if (start < $from.pos - ($from.depth - d) ||
|
|
1763
|
+
$to.end(d) > $to.pos + ($to.depth - d) ||
|
|
1764
|
+
$from.node(d).type.spec.isolating ||
|
|
1765
|
+
$to.node(d).type.spec.isolating)
|
|
1766
|
+
break;
|
|
1767
|
+
if (start == $to.start(d) ||
|
|
1768
|
+
(d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent &&
|
|
1769
|
+
d && $to.start(d - 1) == start - 1))
|
|
1770
|
+
result.push(d);
|
|
1771
|
+
}
|
|
1772
|
+
return result;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
Update an attribute in a specific node.
|
|
1777
|
+
*/
|
|
1778
|
+
class AttrStep extends Step {
|
|
1779
|
+
/**
|
|
1780
|
+
Construct an attribute step.
|
|
1781
|
+
*/
|
|
1782
|
+
constructor(
|
|
1783
|
+
/**
|
|
1784
|
+
The position of the target node.
|
|
1785
|
+
*/
|
|
1786
|
+
pos,
|
|
1787
|
+
/**
|
|
1788
|
+
The attribute to set.
|
|
1789
|
+
*/
|
|
1790
|
+
attr,
|
|
1791
|
+
// The attribute's new value.
|
|
1792
|
+
value) {
|
|
1793
|
+
super();
|
|
1794
|
+
this.pos = pos;
|
|
1795
|
+
this.attr = attr;
|
|
1796
|
+
this.value = value;
|
|
1797
|
+
}
|
|
1798
|
+
apply(doc) {
|
|
1799
|
+
let node = doc.nodeAt(this.pos);
|
|
1800
|
+
if (!node)
|
|
1801
|
+
return StepResult.fail("No node at attribute step's position");
|
|
1802
|
+
let attrs = Object.create(null);
|
|
1803
|
+
for (let name in node.attrs)
|
|
1804
|
+
attrs[name] = node.attrs[name];
|
|
1805
|
+
attrs[this.attr] = this.value;
|
|
1806
|
+
let updated = node.type.create(attrs, null, node.marks);
|
|
1807
|
+
return StepResult.fromReplace(doc, this.pos, this.pos + 1, new index.Slice(index.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
|
|
1808
|
+
}
|
|
1809
|
+
getMap() {
|
|
1810
|
+
return StepMap.empty;
|
|
1811
|
+
}
|
|
1812
|
+
invert(doc) {
|
|
1813
|
+
return new AttrStep(this.pos, this.attr, doc.nodeAt(this.pos).attrs[this.attr]);
|
|
1814
|
+
}
|
|
1815
|
+
map(mapping) {
|
|
1816
|
+
let pos = mapping.mapResult(this.pos, 1);
|
|
1817
|
+
return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
|
|
1818
|
+
}
|
|
1819
|
+
toJSON() {
|
|
1820
|
+
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
1821
|
+
}
|
|
1822
|
+
static fromJSON(schema, json) {
|
|
1823
|
+
if (typeof json.pos != "number" || typeof json.attr != "string")
|
|
1824
|
+
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
1825
|
+
return new AttrStep(json.pos, json.attr, json.value);
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
Step.jsonID("attr", AttrStep);
|
|
1829
|
+
/**
|
|
1830
|
+
Update an attribute in the doc node.
|
|
1831
|
+
*/
|
|
1832
|
+
class DocAttrStep extends Step {
|
|
1833
|
+
/**
|
|
1834
|
+
Construct an attribute step.
|
|
1835
|
+
*/
|
|
1836
|
+
constructor(
|
|
1837
|
+
/**
|
|
1838
|
+
The attribute to set.
|
|
1839
|
+
*/
|
|
1840
|
+
attr,
|
|
1841
|
+
// The attribute's new value.
|
|
1842
|
+
value) {
|
|
1843
|
+
super();
|
|
1844
|
+
this.attr = attr;
|
|
1845
|
+
this.value = value;
|
|
1846
|
+
}
|
|
1847
|
+
apply(doc) {
|
|
1848
|
+
let attrs = Object.create(null);
|
|
1849
|
+
for (let name in doc.attrs)
|
|
1850
|
+
attrs[name] = doc.attrs[name];
|
|
1851
|
+
attrs[this.attr] = this.value;
|
|
1852
|
+
let updated = doc.type.create(attrs, doc.content, doc.marks);
|
|
1853
|
+
return StepResult.ok(updated);
|
|
1854
|
+
}
|
|
1855
|
+
getMap() {
|
|
1856
|
+
return StepMap.empty;
|
|
1857
|
+
}
|
|
1858
|
+
invert(doc) {
|
|
1859
|
+
return new DocAttrStep(this.attr, doc.attrs[this.attr]);
|
|
1860
|
+
}
|
|
1861
|
+
map(mapping) {
|
|
1862
|
+
return this;
|
|
1863
|
+
}
|
|
1864
|
+
toJSON() {
|
|
1865
|
+
return { stepType: "docAttr", attr: this.attr, value: this.value };
|
|
1866
|
+
}
|
|
1867
|
+
static fromJSON(schema, json) {
|
|
1868
|
+
if (typeof json.attr != "string")
|
|
1869
|
+
throw new RangeError("Invalid input for DocAttrStep.fromJSON");
|
|
1870
|
+
return new DocAttrStep(json.attr, json.value);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
Step.jsonID("docAttr", DocAttrStep);
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
@internal
|
|
1877
|
+
*/
|
|
1878
|
+
exports.TransformError = class TransformError extends Error {
|
|
1879
|
+
};
|
|
1880
|
+
exports.TransformError = function TransformError(message) {
|
|
1881
|
+
let err = Error.call(this, message);
|
|
1882
|
+
err.__proto__ = TransformError.prototype;
|
|
1883
|
+
return err;
|
|
1884
|
+
};
|
|
1885
|
+
exports.TransformError.prototype = Object.create(Error.prototype);
|
|
1886
|
+
exports.TransformError.prototype.constructor = exports.TransformError;
|
|
1887
|
+
exports.TransformError.prototype.name = "TransformError";
|
|
1888
|
+
/**
|
|
1889
|
+
Abstraction to build up and track an array of
|
|
1890
|
+
[steps](https://prosemirror.net/docs/ref/#transform.Step) representing a document transformation.
|
|
1891
|
+
|
|
1892
|
+
Most transforming methods return the `Transform` object itself, so
|
|
1893
|
+
that they can be chained.
|
|
1894
|
+
*/
|
|
1895
|
+
class Transform {
|
|
1896
|
+
/**
|
|
1897
|
+
Create a transform that starts with the given document.
|
|
1898
|
+
*/
|
|
1899
|
+
constructor(
|
|
1900
|
+
/**
|
|
1901
|
+
The current document (the result of applying the steps in the
|
|
1902
|
+
transform).
|
|
1903
|
+
*/
|
|
1904
|
+
doc) {
|
|
1905
|
+
this.doc = doc;
|
|
1906
|
+
/**
|
|
1907
|
+
The steps in this transform.
|
|
1908
|
+
*/
|
|
1909
|
+
this.steps = [];
|
|
1910
|
+
/**
|
|
1911
|
+
The documents before each of the steps.
|
|
1912
|
+
*/
|
|
1913
|
+
this.docs = [];
|
|
1914
|
+
/**
|
|
1915
|
+
A mapping with the maps for each of the steps in this transform.
|
|
1916
|
+
*/
|
|
1917
|
+
this.mapping = new Mapping;
|
|
1918
|
+
}
|
|
1919
|
+
/**
|
|
1920
|
+
The starting document.
|
|
1921
|
+
*/
|
|
1922
|
+
get before() { return this.docs.length ? this.docs[0] : this.doc; }
|
|
1923
|
+
/**
|
|
1924
|
+
Apply a new step in this transform, saving the result. Throws an
|
|
1925
|
+
error when the step fails.
|
|
1926
|
+
*/
|
|
1927
|
+
step(step) {
|
|
1928
|
+
let result = this.maybeStep(step);
|
|
1929
|
+
if (result.failed)
|
|
1930
|
+
throw new exports.TransformError(result.failed);
|
|
1931
|
+
return this;
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
Try to apply a step in this transformation, ignoring it if it
|
|
1935
|
+
fails. Returns the step result.
|
|
1936
|
+
*/
|
|
1937
|
+
maybeStep(step) {
|
|
1938
|
+
let result = step.apply(this.doc);
|
|
1939
|
+
if (!result.failed)
|
|
1940
|
+
this.addStep(step, result.doc);
|
|
1941
|
+
return result;
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
True when the document has been changed (when there are any
|
|
1945
|
+
steps).
|
|
1946
|
+
*/
|
|
1947
|
+
get docChanged() {
|
|
1948
|
+
return this.steps.length > 0;
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
@internal
|
|
1952
|
+
*/
|
|
1953
|
+
addStep(step, doc) {
|
|
1954
|
+
this.docs.push(this.doc);
|
|
1955
|
+
this.steps.push(step);
|
|
1956
|
+
this.mapping.appendMap(step.getMap());
|
|
1957
|
+
this.doc = doc;
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
Replace the part of the document between `from` and `to` with the
|
|
1961
|
+
given `slice`.
|
|
1962
|
+
*/
|
|
1963
|
+
replace(from, to = from, slice = index.Slice.empty) {
|
|
1964
|
+
let step = replaceStep(this.doc, from, to, slice);
|
|
1965
|
+
if (step)
|
|
1966
|
+
this.step(step);
|
|
1967
|
+
return this;
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
Replace the given range with the given content, which may be a
|
|
1971
|
+
fragment, node, or array of nodes.
|
|
1972
|
+
*/
|
|
1973
|
+
replaceWith(from, to, content) {
|
|
1974
|
+
return this.replace(from, to, new index.Slice(index.Fragment.from(content), 0, 0));
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
Delete the content between the given positions.
|
|
1978
|
+
*/
|
|
1979
|
+
delete(from, to) {
|
|
1980
|
+
return this.replace(from, to, index.Slice.empty);
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
Insert the given content at the given position.
|
|
1984
|
+
*/
|
|
1985
|
+
insert(pos, content) {
|
|
1986
|
+
return this.replaceWith(pos, pos, content);
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
Replace a range of the document with a given slice, using
|
|
1990
|
+
`from`, `to`, and the slice's
|
|
1991
|
+
[`openStart`](https://prosemirror.net/docs/ref/#model.Slice.openStart) property as hints, rather
|
|
1992
|
+
than fixed start and end points. This method may grow the
|
|
1993
|
+
replaced area or close open nodes in the slice in order to get a
|
|
1994
|
+
fit that is more in line with WYSIWYG expectations, by dropping
|
|
1995
|
+
fully covered parent nodes of the replaced region when they are
|
|
1996
|
+
marked [non-defining as
|
|
1997
|
+
context](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext), or including an
|
|
1998
|
+
open parent node from the slice that _is_ marked as [defining
|
|
1999
|
+
its content](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
|
|
2000
|
+
|
|
2001
|
+
This is the method, for example, to handle paste. The similar
|
|
2002
|
+
[`replace`](https://prosemirror.net/docs/ref/#transform.Transform.replace) method is a more
|
|
2003
|
+
primitive tool which will _not_ move the start and end of its given
|
|
2004
|
+
range, and is useful in situations where you need more precise
|
|
2005
|
+
control over what happens.
|
|
2006
|
+
*/
|
|
2007
|
+
replaceRange(from, to, slice) {
|
|
2008
|
+
replaceRange(this, from, to, slice);
|
|
2009
|
+
return this;
|
|
2010
|
+
}
|
|
2011
|
+
/**
|
|
2012
|
+
Replace the given range with a node, but use `from` and `to` as
|
|
2013
|
+
hints, rather than precise positions. When from and to are the same
|
|
2014
|
+
and are at the start or end of a parent node in which the given
|
|
2015
|
+
node doesn't fit, this method may _move_ them out towards a parent
|
|
2016
|
+
that does allow the given node to be placed. When the given range
|
|
2017
|
+
completely covers a parent node, this method may completely replace
|
|
2018
|
+
that parent node.
|
|
2019
|
+
*/
|
|
2020
|
+
replaceRangeWith(from, to, node) {
|
|
2021
|
+
replaceRangeWith(this, from, to, node);
|
|
2022
|
+
return this;
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
Delete the given range, expanding it to cover fully covered
|
|
2026
|
+
parent nodes until a valid replace is found.
|
|
2027
|
+
*/
|
|
2028
|
+
deleteRange(from, to) {
|
|
2029
|
+
deleteRange(this, from, to);
|
|
2030
|
+
return this;
|
|
2031
|
+
}
|
|
2032
|
+
/**
|
|
2033
|
+
Split the content in the given range off from its parent, if there
|
|
2034
|
+
is sibling content before or after it, and move it up the tree to
|
|
2035
|
+
the depth specified by `target`. You'll probably want to use
|
|
2036
|
+
[`liftTarget`](https://prosemirror.net/docs/ref/#transform.liftTarget) to compute `target`, to make
|
|
2037
|
+
sure the lift is valid.
|
|
2038
|
+
*/
|
|
2039
|
+
lift(range, target) {
|
|
2040
|
+
lift(this, range, target);
|
|
2041
|
+
return this;
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
Join the blocks around the given position. If depth is 2, their
|
|
2045
|
+
last and first siblings are also joined, and so on.
|
|
2046
|
+
*/
|
|
2047
|
+
join(pos, depth = 1) {
|
|
2048
|
+
join(this, pos, depth);
|
|
2049
|
+
return this;
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
|
|
2053
|
+
The wrappers are assumed to be valid in this position, and should
|
|
2054
|
+
probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
|
|
2055
|
+
*/
|
|
2056
|
+
wrap(range, wrappers) {
|
|
2057
|
+
wrap(this, range, wrappers);
|
|
2058
|
+
return this;
|
|
2059
|
+
}
|
|
2060
|
+
/**
|
|
2061
|
+
Set the type of all textblocks (partly) between `from` and `to` to
|
|
2062
|
+
the given node type with the given attributes.
|
|
2063
|
+
*/
|
|
2064
|
+
setBlockType(from, to = from, type, attrs = null) {
|
|
2065
|
+
setBlockType(this, from, to, type, attrs);
|
|
2066
|
+
return this;
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
Change the type, attributes, and/or marks of the node at `pos`.
|
|
2070
|
+
When `type` isn't given, the existing node type is preserved,
|
|
2071
|
+
*/
|
|
2072
|
+
setNodeMarkup(pos, type, attrs = null, marks) {
|
|
2073
|
+
setNodeMarkup(this, pos, type, attrs, marks);
|
|
2074
|
+
return this;
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
Set a single attribute on a given node to a new value.
|
|
2078
|
+
The `pos` addresses the document content. Use `setDocAttribute`
|
|
2079
|
+
to set attributes on the document itself.
|
|
2080
|
+
*/
|
|
2081
|
+
setNodeAttribute(pos, attr, value) {
|
|
2082
|
+
this.step(new AttrStep(pos, attr, value));
|
|
2083
|
+
return this;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
Set a single attribute on the document to a new value.
|
|
2087
|
+
*/
|
|
2088
|
+
setDocAttribute(attr, value) {
|
|
2089
|
+
this.step(new DocAttrStep(attr, value));
|
|
2090
|
+
return this;
|
|
2091
|
+
}
|
|
2092
|
+
/**
|
|
2093
|
+
Add a mark to the node at position `pos`.
|
|
2094
|
+
*/
|
|
2095
|
+
addNodeMark(pos, mark) {
|
|
2096
|
+
this.step(new AddNodeMarkStep(pos, mark));
|
|
2097
|
+
return this;
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
Remove a mark (or all marks of the given type) from the node at
|
|
2101
|
+
position `pos`.
|
|
2102
|
+
*/
|
|
2103
|
+
removeNodeMark(pos, mark) {
|
|
2104
|
+
let node = this.doc.nodeAt(pos);
|
|
2105
|
+
if (!node)
|
|
2106
|
+
throw new RangeError("No node at position " + pos);
|
|
2107
|
+
if (mark instanceof index.Mark) {
|
|
2108
|
+
if (mark.isInSet(node.marks))
|
|
2109
|
+
this.step(new RemoveNodeMarkStep(pos, mark));
|
|
2110
|
+
}
|
|
2111
|
+
else {
|
|
2112
|
+
let set = node.marks, found, steps = [];
|
|
2113
|
+
while (found = mark.isInSet(set)) {
|
|
2114
|
+
steps.push(new RemoveNodeMarkStep(pos, found));
|
|
2115
|
+
set = found.removeFromSet(set);
|
|
2116
|
+
}
|
|
2117
|
+
for (let i = steps.length - 1; i >= 0; i--)
|
|
2118
|
+
this.step(steps[i]);
|
|
2119
|
+
}
|
|
2120
|
+
return this;
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
Split the node at the given position, and optionally, if `depth` is
|
|
2124
|
+
greater than one, any number of nodes above that. By default, the
|
|
2125
|
+
parts split off will inherit the node type of the original node.
|
|
2126
|
+
This can be changed by passing an array of types and attributes to
|
|
2127
|
+
use after the split (with the outermost nodes coming first).
|
|
2128
|
+
*/
|
|
2129
|
+
split(pos, depth = 1, typesAfter) {
|
|
2130
|
+
split(this, pos, depth, typesAfter);
|
|
2131
|
+
return this;
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
Add the given mark to the inline content between `from` and `to`.
|
|
2135
|
+
*/
|
|
2136
|
+
addMark(from, to, mark) {
|
|
2137
|
+
addMark(this, from, to, mark);
|
|
2138
|
+
return this;
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
Remove marks from inline nodes between `from` and `to`. When
|
|
2142
|
+
`mark` is a single mark, remove precisely that mark. When it is
|
|
2143
|
+
a mark type, remove all marks of that type. When it is null,
|
|
2144
|
+
remove all marks of any type.
|
|
2145
|
+
*/
|
|
2146
|
+
removeMark(from, to, mark) {
|
|
2147
|
+
removeMark(this, from, to, mark);
|
|
2148
|
+
return this;
|
|
2149
|
+
}
|
|
2150
|
+
/**
|
|
2151
|
+
Removes all marks and nodes from the content of the node at
|
|
2152
|
+
`pos` that don't match the given new parent node type. Accepts
|
|
2153
|
+
an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
|
|
2154
|
+
third argument.
|
|
2155
|
+
*/
|
|
2156
|
+
clearIncompatible(pos, parentType, match) {
|
|
2157
|
+
clearIncompatible(this, pos, parentType, match);
|
|
2158
|
+
return this;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
exports.AddMarkStep = AddMarkStep;
|
|
2163
|
+
exports.AddNodeMarkStep = AddNodeMarkStep;
|
|
2164
|
+
exports.AttrStep = AttrStep;
|
|
2165
|
+
exports.DocAttrStep = DocAttrStep;
|
|
2166
|
+
exports.MapResult = MapResult;
|
|
2167
|
+
exports.Mapping = Mapping;
|
|
2168
|
+
exports.RemoveMarkStep = RemoveMarkStep;
|
|
2169
|
+
exports.RemoveNodeMarkStep = RemoveNodeMarkStep;
|
|
2170
|
+
exports.ReplaceAroundStep = ReplaceAroundStep;
|
|
2171
|
+
exports.ReplaceStep = ReplaceStep;
|
|
2172
|
+
exports.Step = Step;
|
|
2173
|
+
exports.StepMap = StepMap;
|
|
2174
|
+
exports.StepResult = StepResult;
|
|
2175
|
+
exports.Transform = Transform;
|
|
2176
|
+
exports.canJoin = canJoin;
|
|
2177
|
+
exports.canSplit = canSplit;
|
|
2178
|
+
exports.dropPoint = dropPoint;
|
|
2179
|
+
exports.findWrapping = findWrapping;
|
|
2180
|
+
exports.insertPoint = insertPoint;
|
|
2181
|
+
exports.joinPoint = joinPoint;
|
|
2182
|
+
exports.liftTarget = liftTarget;
|
|
2183
|
+
exports.replaceStep = replaceStep;
|