@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,2211 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs');
|
|
4
|
+
const index$2 = require('../../../../prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs');
|
|
5
|
+
const index$3 = require('../../../../prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs');
|
|
6
|
+
const index$1 = require('../../../../prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs');
|
|
7
|
+
const index$4 = require('../../../../prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs');
|
|
8
|
+
|
|
9
|
+
// src/index.ts
|
|
10
|
+
|
|
11
|
+
// src/tablemap.ts
|
|
12
|
+
var readFromCache;
|
|
13
|
+
var addToCache;
|
|
14
|
+
if (typeof WeakMap != "undefined") {
|
|
15
|
+
let cache = /* @__PURE__ */ new WeakMap();
|
|
16
|
+
readFromCache = (key) => cache.get(key);
|
|
17
|
+
addToCache = (key, value) => {
|
|
18
|
+
cache.set(key, value);
|
|
19
|
+
return value;
|
|
20
|
+
};
|
|
21
|
+
} else {
|
|
22
|
+
const cache = [];
|
|
23
|
+
const cacheSize = 10;
|
|
24
|
+
let cachePos = 0;
|
|
25
|
+
readFromCache = (key) => {
|
|
26
|
+
for (let i = 0; i < cache.length; i += 2)
|
|
27
|
+
if (cache[i] == key) return cache[i + 1];
|
|
28
|
+
};
|
|
29
|
+
addToCache = (key, value) => {
|
|
30
|
+
if (cachePos == cacheSize) cachePos = 0;
|
|
31
|
+
cache[cachePos++] = key;
|
|
32
|
+
return cache[cachePos++] = value;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
var TableMap = class {
|
|
36
|
+
constructor(width, height, map, problems) {
|
|
37
|
+
this.width = width;
|
|
38
|
+
this.height = height;
|
|
39
|
+
this.map = map;
|
|
40
|
+
this.problems = problems;
|
|
41
|
+
}
|
|
42
|
+
// Find the dimensions of the cell at the given position.
|
|
43
|
+
findCell(pos) {
|
|
44
|
+
for (let i = 0; i < this.map.length; i++) {
|
|
45
|
+
const curPos = this.map[i];
|
|
46
|
+
if (curPos != pos) continue;
|
|
47
|
+
const left = i % this.width;
|
|
48
|
+
const top = i / this.width | 0;
|
|
49
|
+
let right = left + 1;
|
|
50
|
+
let bottom = top + 1;
|
|
51
|
+
for (let j = 1; right < this.width && this.map[i + j] == curPos; j++) {
|
|
52
|
+
right++;
|
|
53
|
+
}
|
|
54
|
+
for (let j = 1; bottom < this.height && this.map[i + this.width * j] == curPos; j++) {
|
|
55
|
+
bottom++;
|
|
56
|
+
}
|
|
57
|
+
return { left, top, right, bottom };
|
|
58
|
+
}
|
|
59
|
+
throw new RangeError(`No cell with offset ${pos} found`);
|
|
60
|
+
}
|
|
61
|
+
// Find the left side of the cell at the given position.
|
|
62
|
+
colCount(pos) {
|
|
63
|
+
for (let i = 0; i < this.map.length; i++) {
|
|
64
|
+
if (this.map[i] == pos) {
|
|
65
|
+
return i % this.width;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
throw new RangeError(`No cell with offset ${pos} found`);
|
|
69
|
+
}
|
|
70
|
+
// Find the next cell in the given direction, starting from the cell
|
|
71
|
+
// at `pos`, if any.
|
|
72
|
+
nextCell(pos, axis, dir) {
|
|
73
|
+
const { left, right, top, bottom } = this.findCell(pos);
|
|
74
|
+
if (axis == "horiz") {
|
|
75
|
+
if (dir < 0 ? left == 0 : right == this.width) return null;
|
|
76
|
+
return this.map[top * this.width + (dir < 0 ? left - 1 : right)];
|
|
77
|
+
} else {
|
|
78
|
+
if (dir < 0 ? top == 0 : bottom == this.height) return null;
|
|
79
|
+
return this.map[left + this.width * (dir < 0 ? top - 1 : bottom)];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
// Get the rectangle spanning the two given cells.
|
|
83
|
+
rectBetween(a, b) {
|
|
84
|
+
const {
|
|
85
|
+
left: leftA,
|
|
86
|
+
right: rightA,
|
|
87
|
+
top: topA,
|
|
88
|
+
bottom: bottomA
|
|
89
|
+
} = this.findCell(a);
|
|
90
|
+
const {
|
|
91
|
+
left: leftB,
|
|
92
|
+
right: rightB,
|
|
93
|
+
top: topB,
|
|
94
|
+
bottom: bottomB
|
|
95
|
+
} = this.findCell(b);
|
|
96
|
+
return {
|
|
97
|
+
left: Math.min(leftA, leftB),
|
|
98
|
+
top: Math.min(topA, topB),
|
|
99
|
+
right: Math.max(rightA, rightB),
|
|
100
|
+
bottom: Math.max(bottomA, bottomB)
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
// Return the position of all cells that have the top left corner in
|
|
104
|
+
// the given rectangle.
|
|
105
|
+
cellsInRect(rect) {
|
|
106
|
+
const result = [];
|
|
107
|
+
const seen = {};
|
|
108
|
+
for (let row = rect.top; row < rect.bottom; row++) {
|
|
109
|
+
for (let col = rect.left; col < rect.right; col++) {
|
|
110
|
+
const index = row * this.width + col;
|
|
111
|
+
const pos = this.map[index];
|
|
112
|
+
if (seen[pos]) continue;
|
|
113
|
+
seen[pos] = true;
|
|
114
|
+
if (col == rect.left && col && this.map[index - 1] == pos || row == rect.top && row && this.map[index - this.width] == pos) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
result.push(pos);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
// Return the position at which the cell at the given row and column
|
|
123
|
+
// starts, or would start, if a cell started there.
|
|
124
|
+
positionAt(row, col, table) {
|
|
125
|
+
for (let i = 0, rowStart = 0; ; i++) {
|
|
126
|
+
const rowEnd = rowStart + table.child(i).nodeSize;
|
|
127
|
+
if (i == row) {
|
|
128
|
+
let index = col + row * this.width;
|
|
129
|
+
const rowEndIndex = (row + 1) * this.width;
|
|
130
|
+
while (index < rowEndIndex && this.map[index] < rowStart) index++;
|
|
131
|
+
return index == rowEndIndex ? rowEnd - 1 : this.map[index];
|
|
132
|
+
}
|
|
133
|
+
rowStart = rowEnd;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// Find the table map for the given table node.
|
|
137
|
+
static get(table) {
|
|
138
|
+
return readFromCache(table) || addToCache(table, computeMap(table));
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
function computeMap(table) {
|
|
142
|
+
if (table.type.spec.tableRole != "table")
|
|
143
|
+
throw new RangeError("Not a table node: " + table.type.name);
|
|
144
|
+
const width = findWidth(table), height = table.childCount;
|
|
145
|
+
const map = [];
|
|
146
|
+
let mapPos = 0;
|
|
147
|
+
let problems = null;
|
|
148
|
+
const colWidths = [];
|
|
149
|
+
for (let i = 0, e = width * height; i < e; i++) map[i] = 0;
|
|
150
|
+
for (let row = 0, pos = 0; row < height; row++) {
|
|
151
|
+
const rowNode = table.child(row);
|
|
152
|
+
pos++;
|
|
153
|
+
for (let i = 0; ; i++) {
|
|
154
|
+
while (mapPos < map.length && map[mapPos] != 0) mapPos++;
|
|
155
|
+
if (i == rowNode.childCount) break;
|
|
156
|
+
const cellNode = rowNode.child(i);
|
|
157
|
+
const { colspan, rowspan, colwidth } = cellNode.attrs;
|
|
158
|
+
for (let h = 0; h < rowspan; h++) {
|
|
159
|
+
if (h + row >= height) {
|
|
160
|
+
(problems || (problems = [])).push({
|
|
161
|
+
type: "overlong_rowspan",
|
|
162
|
+
pos,
|
|
163
|
+
n: rowspan - h
|
|
164
|
+
});
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
const start = mapPos + h * width;
|
|
168
|
+
for (let w = 0; w < colspan; w++) {
|
|
169
|
+
if (map[start + w] == 0) map[start + w] = pos;
|
|
170
|
+
else
|
|
171
|
+
(problems || (problems = [])).push({
|
|
172
|
+
type: "collision",
|
|
173
|
+
row,
|
|
174
|
+
pos,
|
|
175
|
+
n: colspan - w
|
|
176
|
+
});
|
|
177
|
+
const colW = colwidth && colwidth[w];
|
|
178
|
+
if (colW) {
|
|
179
|
+
const widthIndex = (start + w) % width * 2, prev = colWidths[widthIndex];
|
|
180
|
+
if (prev == null || prev != colW && colWidths[widthIndex + 1] == 1) {
|
|
181
|
+
colWidths[widthIndex] = colW;
|
|
182
|
+
colWidths[widthIndex + 1] = 1;
|
|
183
|
+
} else if (prev == colW) {
|
|
184
|
+
colWidths[widthIndex + 1]++;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
mapPos += colspan;
|
|
190
|
+
pos += cellNode.nodeSize;
|
|
191
|
+
}
|
|
192
|
+
const expectedPos = (row + 1) * width;
|
|
193
|
+
let missing = 0;
|
|
194
|
+
while (mapPos < expectedPos) if (map[mapPos++] == 0) missing++;
|
|
195
|
+
if (missing)
|
|
196
|
+
(problems || (problems = [])).push({ type: "missing", row, n: missing });
|
|
197
|
+
pos++;
|
|
198
|
+
}
|
|
199
|
+
if (width === 0 || height === 0)
|
|
200
|
+
(problems || (problems = [])).push({ type: "zero_sized" });
|
|
201
|
+
const tableMap = new TableMap(width, height, map, problems);
|
|
202
|
+
let badWidths = false;
|
|
203
|
+
for (let i = 0; !badWidths && i < colWidths.length; i += 2)
|
|
204
|
+
if (colWidths[i] != null && colWidths[i + 1] < height) badWidths = true;
|
|
205
|
+
if (badWidths) findBadColWidths(tableMap, colWidths, table);
|
|
206
|
+
return tableMap;
|
|
207
|
+
}
|
|
208
|
+
function findWidth(table) {
|
|
209
|
+
let width = -1;
|
|
210
|
+
let hasRowSpan = false;
|
|
211
|
+
for (let row = 0; row < table.childCount; row++) {
|
|
212
|
+
const rowNode = table.child(row);
|
|
213
|
+
let rowWidth = 0;
|
|
214
|
+
if (hasRowSpan)
|
|
215
|
+
for (let j = 0; j < row; j++) {
|
|
216
|
+
const prevRow = table.child(j);
|
|
217
|
+
for (let i = 0; i < prevRow.childCount; i++) {
|
|
218
|
+
const cell = prevRow.child(i);
|
|
219
|
+
if (j + cell.attrs.rowspan > row) rowWidth += cell.attrs.colspan;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
for (let i = 0; i < rowNode.childCount; i++) {
|
|
223
|
+
const cell = rowNode.child(i);
|
|
224
|
+
rowWidth += cell.attrs.colspan;
|
|
225
|
+
if (cell.attrs.rowspan > 1) hasRowSpan = true;
|
|
226
|
+
}
|
|
227
|
+
if (width == -1) width = rowWidth;
|
|
228
|
+
else if (width != rowWidth) width = Math.max(width, rowWidth);
|
|
229
|
+
}
|
|
230
|
+
return width;
|
|
231
|
+
}
|
|
232
|
+
function findBadColWidths(map, colWidths, table) {
|
|
233
|
+
if (!map.problems) map.problems = [];
|
|
234
|
+
const seen = {};
|
|
235
|
+
for (let i = 0; i < map.map.length; i++) {
|
|
236
|
+
const pos = map.map[i];
|
|
237
|
+
if (seen[pos]) continue;
|
|
238
|
+
seen[pos] = true;
|
|
239
|
+
const node = table.nodeAt(pos);
|
|
240
|
+
if (!node) {
|
|
241
|
+
throw new RangeError(`No cell with offset ${pos} found`);
|
|
242
|
+
}
|
|
243
|
+
let updated = null;
|
|
244
|
+
const attrs = node.attrs;
|
|
245
|
+
for (let j = 0; j < attrs.colspan; j++) {
|
|
246
|
+
const col = (i + j) % map.width;
|
|
247
|
+
const colWidth = colWidths[col * 2];
|
|
248
|
+
if (colWidth != null && (!attrs.colwidth || attrs.colwidth[j] != colWidth))
|
|
249
|
+
(updated || (updated = freshColWidth(attrs)))[j] = colWidth;
|
|
250
|
+
}
|
|
251
|
+
if (updated)
|
|
252
|
+
map.problems.unshift({
|
|
253
|
+
type: "colwidth mismatch",
|
|
254
|
+
pos,
|
|
255
|
+
colwidth: updated
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
function freshColWidth(attrs) {
|
|
260
|
+
if (attrs.colwidth) return attrs.colwidth.slice();
|
|
261
|
+
const result = [];
|
|
262
|
+
for (let i = 0; i < attrs.colspan; i++) result.push(0);
|
|
263
|
+
return result;
|
|
264
|
+
}
|
|
265
|
+
function tableNodeTypes(schema) {
|
|
266
|
+
let result = schema.cached.tableNodeTypes;
|
|
267
|
+
if (!result) {
|
|
268
|
+
result = schema.cached.tableNodeTypes = {};
|
|
269
|
+
for (const name in schema.nodes) {
|
|
270
|
+
const type = schema.nodes[name], role = type.spec.tableRole;
|
|
271
|
+
if (role) result[role] = type;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return result;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// src/util.ts
|
|
278
|
+
var tableEditingKey = new index.PluginKey("selectingCells");
|
|
279
|
+
function cellAround($pos) {
|
|
280
|
+
for (let d = $pos.depth - 1; d > 0; d--)
|
|
281
|
+
if ($pos.node(d).type.spec.tableRole == "row")
|
|
282
|
+
return $pos.node(0).resolve($pos.before(d + 1));
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
function cellWrapping($pos) {
|
|
286
|
+
for (let d = $pos.depth; d > 0; d--) {
|
|
287
|
+
const role = $pos.node(d).type.spec.tableRole;
|
|
288
|
+
if (role === "cell" || role === "header_cell") return $pos.node(d);
|
|
289
|
+
}
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
function isInTable(state) {
|
|
293
|
+
const $head = state.selection.$head;
|
|
294
|
+
for (let d = $head.depth; d > 0; d--)
|
|
295
|
+
if ($head.node(d).type.spec.tableRole == "row") return true;
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
function selectionCell(state) {
|
|
299
|
+
const sel = state.selection;
|
|
300
|
+
if ("$anchorCell" in sel && sel.$anchorCell) {
|
|
301
|
+
return sel.$anchorCell.pos > sel.$headCell.pos ? sel.$anchorCell : sel.$headCell;
|
|
302
|
+
} else if ("node" in sel && sel.node && sel.node.type.spec.tableRole == "cell") {
|
|
303
|
+
return sel.$anchor;
|
|
304
|
+
}
|
|
305
|
+
const $cell = cellAround(sel.$head) || cellNear(sel.$head);
|
|
306
|
+
if ($cell) {
|
|
307
|
+
return $cell;
|
|
308
|
+
}
|
|
309
|
+
throw new RangeError(`No cell found around position ${sel.head}`);
|
|
310
|
+
}
|
|
311
|
+
function cellNear($pos) {
|
|
312
|
+
for (let after = $pos.nodeAfter, pos = $pos.pos; after; after = after.firstChild, pos++) {
|
|
313
|
+
const role = after.type.spec.tableRole;
|
|
314
|
+
if (role == "cell" || role == "header_cell") return $pos.doc.resolve(pos);
|
|
315
|
+
}
|
|
316
|
+
for (let before = $pos.nodeBefore, pos = $pos.pos; before; before = before.lastChild, pos--) {
|
|
317
|
+
const role = before.type.spec.tableRole;
|
|
318
|
+
if (role == "cell" || role == "header_cell")
|
|
319
|
+
return $pos.doc.resolve(pos - before.nodeSize);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function pointsAtCell($pos) {
|
|
323
|
+
return $pos.parent.type.spec.tableRole == "row" && !!$pos.nodeAfter;
|
|
324
|
+
}
|
|
325
|
+
function moveCellForward($pos) {
|
|
326
|
+
return $pos.node(0).resolve($pos.pos + $pos.nodeAfter.nodeSize);
|
|
327
|
+
}
|
|
328
|
+
function inSameTable($cellA, $cellB) {
|
|
329
|
+
return $cellA.depth == $cellB.depth && $cellA.pos >= $cellB.start(-1) && $cellA.pos <= $cellB.end(-1);
|
|
330
|
+
}
|
|
331
|
+
function nextCell($pos, axis, dir) {
|
|
332
|
+
const table = $pos.node(-1);
|
|
333
|
+
const map = TableMap.get(table);
|
|
334
|
+
const tableStart = $pos.start(-1);
|
|
335
|
+
const moved = map.nextCell($pos.pos - tableStart, axis, dir);
|
|
336
|
+
return moved == null ? null : $pos.node(0).resolve(tableStart + moved);
|
|
337
|
+
}
|
|
338
|
+
function removeColSpan(attrs, pos, n = 1) {
|
|
339
|
+
const result = { ...attrs, colspan: attrs.colspan - n };
|
|
340
|
+
if (result.colwidth) {
|
|
341
|
+
result.colwidth = result.colwidth.slice();
|
|
342
|
+
result.colwidth.splice(pos, n);
|
|
343
|
+
if (!result.colwidth.some((w) => w > 0)) result.colwidth = null;
|
|
344
|
+
}
|
|
345
|
+
return result;
|
|
346
|
+
}
|
|
347
|
+
function addColSpan(attrs, pos, n = 1) {
|
|
348
|
+
const result = { ...attrs, colspan: attrs.colspan + n };
|
|
349
|
+
if (result.colwidth) {
|
|
350
|
+
result.colwidth = result.colwidth.slice();
|
|
351
|
+
for (let i = 0; i < n; i++) result.colwidth.splice(pos, 0, 0);
|
|
352
|
+
}
|
|
353
|
+
return result;
|
|
354
|
+
}
|
|
355
|
+
function columnIsHeader(map, table, col) {
|
|
356
|
+
const headerCell = tableNodeTypes(table.type.schema).header_cell;
|
|
357
|
+
for (let row = 0; row < map.height; row++)
|
|
358
|
+
if (table.nodeAt(map.map[col + row * map.width]).type != headerCell)
|
|
359
|
+
return false;
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// src/cellselection.ts
|
|
364
|
+
var CellSelection = class _CellSelection extends index.Selection {
|
|
365
|
+
// A table selection is identified by its anchor and head cells. The
|
|
366
|
+
// positions given to this constructor should point _before_ two
|
|
367
|
+
// cells in the same table. They may be the same, to select a single
|
|
368
|
+
// cell.
|
|
369
|
+
constructor($anchorCell, $headCell = $anchorCell) {
|
|
370
|
+
const table = $anchorCell.node(-1);
|
|
371
|
+
const map = TableMap.get(table);
|
|
372
|
+
const tableStart = $anchorCell.start(-1);
|
|
373
|
+
const rect = map.rectBetween(
|
|
374
|
+
$anchorCell.pos - tableStart,
|
|
375
|
+
$headCell.pos - tableStart
|
|
376
|
+
);
|
|
377
|
+
const doc = $anchorCell.node(0);
|
|
378
|
+
const cells = map.cellsInRect(rect).filter((p) => p != $headCell.pos - tableStart);
|
|
379
|
+
cells.unshift($headCell.pos - tableStart);
|
|
380
|
+
const ranges = cells.map((pos) => {
|
|
381
|
+
const cell = table.nodeAt(pos);
|
|
382
|
+
if (!cell) {
|
|
383
|
+
throw RangeError(`No cell with offset ${pos} found`);
|
|
384
|
+
}
|
|
385
|
+
const from = tableStart + pos + 1;
|
|
386
|
+
return new index.SelectionRange(
|
|
387
|
+
doc.resolve(from),
|
|
388
|
+
doc.resolve(from + cell.content.size)
|
|
389
|
+
);
|
|
390
|
+
});
|
|
391
|
+
super(ranges[0].$from, ranges[0].$to, ranges);
|
|
392
|
+
this.$anchorCell = $anchorCell;
|
|
393
|
+
this.$headCell = $headCell;
|
|
394
|
+
}
|
|
395
|
+
map(doc, mapping) {
|
|
396
|
+
const $anchorCell = doc.resolve(mapping.map(this.$anchorCell.pos));
|
|
397
|
+
const $headCell = doc.resolve(mapping.map(this.$headCell.pos));
|
|
398
|
+
if (pointsAtCell($anchorCell) && pointsAtCell($headCell) && inSameTable($anchorCell, $headCell)) {
|
|
399
|
+
const tableChanged = this.$anchorCell.node(-1) != $anchorCell.node(-1);
|
|
400
|
+
if (tableChanged && this.isRowSelection())
|
|
401
|
+
return _CellSelection.rowSelection($anchorCell, $headCell);
|
|
402
|
+
else if (tableChanged && this.isColSelection())
|
|
403
|
+
return _CellSelection.colSelection($anchorCell, $headCell);
|
|
404
|
+
else return new _CellSelection($anchorCell, $headCell);
|
|
405
|
+
}
|
|
406
|
+
return index.TextSelection.between($anchorCell, $headCell);
|
|
407
|
+
}
|
|
408
|
+
// Returns a rectangular slice of table rows containing the selected
|
|
409
|
+
// cells.
|
|
410
|
+
content() {
|
|
411
|
+
const table = this.$anchorCell.node(-1);
|
|
412
|
+
const map = TableMap.get(table);
|
|
413
|
+
const tableStart = this.$anchorCell.start(-1);
|
|
414
|
+
const rect = map.rectBetween(
|
|
415
|
+
this.$anchorCell.pos - tableStart,
|
|
416
|
+
this.$headCell.pos - tableStart
|
|
417
|
+
);
|
|
418
|
+
const seen = {};
|
|
419
|
+
const rows = [];
|
|
420
|
+
for (let row = rect.top; row < rect.bottom; row++) {
|
|
421
|
+
const rowContent = [];
|
|
422
|
+
for (let index = row * map.width + rect.left, col = rect.left; col < rect.right; col++, index++) {
|
|
423
|
+
const pos = map.map[index];
|
|
424
|
+
if (seen[pos]) continue;
|
|
425
|
+
seen[pos] = true;
|
|
426
|
+
const cellRect = map.findCell(pos);
|
|
427
|
+
let cell = table.nodeAt(pos);
|
|
428
|
+
if (!cell) {
|
|
429
|
+
throw RangeError(`No cell with offset ${pos} found`);
|
|
430
|
+
}
|
|
431
|
+
const extraLeft = rect.left - cellRect.left;
|
|
432
|
+
const extraRight = cellRect.right - rect.right;
|
|
433
|
+
if (extraLeft > 0 || extraRight > 0) {
|
|
434
|
+
let attrs = cell.attrs;
|
|
435
|
+
if (extraLeft > 0) {
|
|
436
|
+
attrs = removeColSpan(attrs, 0, extraLeft);
|
|
437
|
+
}
|
|
438
|
+
if (extraRight > 0) {
|
|
439
|
+
attrs = removeColSpan(
|
|
440
|
+
attrs,
|
|
441
|
+
attrs.colspan - extraRight,
|
|
442
|
+
extraRight
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
if (cellRect.left < rect.left) {
|
|
446
|
+
cell = cell.type.createAndFill(attrs);
|
|
447
|
+
if (!cell) {
|
|
448
|
+
throw RangeError(
|
|
449
|
+
`Could not create cell with attrs ${JSON.stringify(attrs)}`
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
} else {
|
|
453
|
+
cell = cell.type.create(attrs, cell.content);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (cellRect.top < rect.top || cellRect.bottom > rect.bottom) {
|
|
457
|
+
const attrs = {
|
|
458
|
+
...cell.attrs,
|
|
459
|
+
rowspan: Math.min(cellRect.bottom, rect.bottom) - Math.max(cellRect.top, rect.top)
|
|
460
|
+
};
|
|
461
|
+
if (cellRect.top < rect.top) {
|
|
462
|
+
cell = cell.type.createAndFill(attrs);
|
|
463
|
+
} else {
|
|
464
|
+
cell = cell.type.create(attrs, cell.content);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
rowContent.push(cell);
|
|
468
|
+
}
|
|
469
|
+
rows.push(table.child(row).copy(index$2.Fragment.from(rowContent)));
|
|
470
|
+
}
|
|
471
|
+
const fragment = this.isColSelection() && this.isRowSelection() ? table : rows;
|
|
472
|
+
return new index$2.Slice(index$2.Fragment.from(fragment), 1, 1);
|
|
473
|
+
}
|
|
474
|
+
replace(tr, content = index$2.Slice.empty) {
|
|
475
|
+
const mapFrom = tr.steps.length, ranges = this.ranges;
|
|
476
|
+
for (let i = 0; i < ranges.length; i++) {
|
|
477
|
+
const { $from, $to } = ranges[i], mapping = tr.mapping.slice(mapFrom);
|
|
478
|
+
tr.replace(
|
|
479
|
+
mapping.map($from.pos),
|
|
480
|
+
mapping.map($to.pos),
|
|
481
|
+
i ? index$2.Slice.empty : content
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
const sel = index.Selection.findFrom(
|
|
485
|
+
tr.doc.resolve(tr.mapping.slice(mapFrom).map(this.to)),
|
|
486
|
+
-1
|
|
487
|
+
);
|
|
488
|
+
if (sel) tr.setSelection(sel);
|
|
489
|
+
}
|
|
490
|
+
replaceWith(tr, node) {
|
|
491
|
+
this.replace(tr, new index$2.Slice(index$2.Fragment.from(node), 0, 0));
|
|
492
|
+
}
|
|
493
|
+
forEachCell(f) {
|
|
494
|
+
const table = this.$anchorCell.node(-1);
|
|
495
|
+
const map = TableMap.get(table);
|
|
496
|
+
const tableStart = this.$anchorCell.start(-1);
|
|
497
|
+
const cells = map.cellsInRect(
|
|
498
|
+
map.rectBetween(
|
|
499
|
+
this.$anchorCell.pos - tableStart,
|
|
500
|
+
this.$headCell.pos - tableStart
|
|
501
|
+
)
|
|
502
|
+
);
|
|
503
|
+
for (let i = 0; i < cells.length; i++) {
|
|
504
|
+
f(table.nodeAt(cells[i]), tableStart + cells[i]);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
// True if this selection goes all the way from the top to the
|
|
508
|
+
// bottom of the table.
|
|
509
|
+
isColSelection() {
|
|
510
|
+
const anchorTop = this.$anchorCell.index(-1);
|
|
511
|
+
const headTop = this.$headCell.index(-1);
|
|
512
|
+
if (Math.min(anchorTop, headTop) > 0) return false;
|
|
513
|
+
const anchorBottom = anchorTop + this.$anchorCell.nodeAfter.attrs.rowspan;
|
|
514
|
+
const headBottom = headTop + this.$headCell.nodeAfter.attrs.rowspan;
|
|
515
|
+
return Math.max(anchorBottom, headBottom) == this.$headCell.node(-1).childCount;
|
|
516
|
+
}
|
|
517
|
+
// Returns the smallest column selection that covers the given anchor
|
|
518
|
+
// and head cell.
|
|
519
|
+
static colSelection($anchorCell, $headCell = $anchorCell) {
|
|
520
|
+
const table = $anchorCell.node(-1);
|
|
521
|
+
const map = TableMap.get(table);
|
|
522
|
+
const tableStart = $anchorCell.start(-1);
|
|
523
|
+
const anchorRect = map.findCell($anchorCell.pos - tableStart);
|
|
524
|
+
const headRect = map.findCell($headCell.pos - tableStart);
|
|
525
|
+
const doc = $anchorCell.node(0);
|
|
526
|
+
if (anchorRect.top <= headRect.top) {
|
|
527
|
+
if (anchorRect.top > 0)
|
|
528
|
+
$anchorCell = doc.resolve(tableStart + map.map[anchorRect.left]);
|
|
529
|
+
if (headRect.bottom < map.height)
|
|
530
|
+
$headCell = doc.resolve(
|
|
531
|
+
tableStart + map.map[map.width * (map.height - 1) + headRect.right - 1]
|
|
532
|
+
);
|
|
533
|
+
} else {
|
|
534
|
+
if (headRect.top > 0)
|
|
535
|
+
$headCell = doc.resolve(tableStart + map.map[headRect.left]);
|
|
536
|
+
if (anchorRect.bottom < map.height)
|
|
537
|
+
$anchorCell = doc.resolve(
|
|
538
|
+
tableStart + map.map[map.width * (map.height - 1) + anchorRect.right - 1]
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
return new _CellSelection($anchorCell, $headCell);
|
|
542
|
+
}
|
|
543
|
+
// True if this selection goes all the way from the left to the
|
|
544
|
+
// right of the table.
|
|
545
|
+
isRowSelection() {
|
|
546
|
+
const table = this.$anchorCell.node(-1);
|
|
547
|
+
const map = TableMap.get(table);
|
|
548
|
+
const tableStart = this.$anchorCell.start(-1);
|
|
549
|
+
const anchorLeft = map.colCount(this.$anchorCell.pos - tableStart);
|
|
550
|
+
const headLeft = map.colCount(this.$headCell.pos - tableStart);
|
|
551
|
+
if (Math.min(anchorLeft, headLeft) > 0) return false;
|
|
552
|
+
const anchorRight = anchorLeft + this.$anchorCell.nodeAfter.attrs.colspan;
|
|
553
|
+
const headRight = headLeft + this.$headCell.nodeAfter.attrs.colspan;
|
|
554
|
+
return Math.max(anchorRight, headRight) == map.width;
|
|
555
|
+
}
|
|
556
|
+
eq(other) {
|
|
557
|
+
return other instanceof _CellSelection && other.$anchorCell.pos == this.$anchorCell.pos && other.$headCell.pos == this.$headCell.pos;
|
|
558
|
+
}
|
|
559
|
+
// Returns the smallest row selection that covers the given anchor
|
|
560
|
+
// and head cell.
|
|
561
|
+
static rowSelection($anchorCell, $headCell = $anchorCell) {
|
|
562
|
+
const table = $anchorCell.node(-1);
|
|
563
|
+
const map = TableMap.get(table);
|
|
564
|
+
const tableStart = $anchorCell.start(-1);
|
|
565
|
+
const anchorRect = map.findCell($anchorCell.pos - tableStart);
|
|
566
|
+
const headRect = map.findCell($headCell.pos - tableStart);
|
|
567
|
+
const doc = $anchorCell.node(0);
|
|
568
|
+
if (anchorRect.left <= headRect.left) {
|
|
569
|
+
if (anchorRect.left > 0)
|
|
570
|
+
$anchorCell = doc.resolve(
|
|
571
|
+
tableStart + map.map[anchorRect.top * map.width]
|
|
572
|
+
);
|
|
573
|
+
if (headRect.right < map.width)
|
|
574
|
+
$headCell = doc.resolve(
|
|
575
|
+
tableStart + map.map[map.width * (headRect.top + 1) - 1]
|
|
576
|
+
);
|
|
577
|
+
} else {
|
|
578
|
+
if (headRect.left > 0)
|
|
579
|
+
$headCell = doc.resolve(tableStart + map.map[headRect.top * map.width]);
|
|
580
|
+
if (anchorRect.right < map.width)
|
|
581
|
+
$anchorCell = doc.resolve(
|
|
582
|
+
tableStart + map.map[map.width * (anchorRect.top + 1) - 1]
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
return new _CellSelection($anchorCell, $headCell);
|
|
586
|
+
}
|
|
587
|
+
toJSON() {
|
|
588
|
+
return {
|
|
589
|
+
type: "cell",
|
|
590
|
+
anchor: this.$anchorCell.pos,
|
|
591
|
+
head: this.$headCell.pos
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
static fromJSON(doc, json) {
|
|
595
|
+
return new _CellSelection(doc.resolve(json.anchor), doc.resolve(json.head));
|
|
596
|
+
}
|
|
597
|
+
static create(doc, anchorCell, headCell = anchorCell) {
|
|
598
|
+
return new _CellSelection(doc.resolve(anchorCell), doc.resolve(headCell));
|
|
599
|
+
}
|
|
600
|
+
getBookmark() {
|
|
601
|
+
return new CellBookmark(this.$anchorCell.pos, this.$headCell.pos);
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
CellSelection.prototype.visible = false;
|
|
605
|
+
index.Selection.jsonID("cell", CellSelection);
|
|
606
|
+
var CellBookmark = class _CellBookmark {
|
|
607
|
+
constructor(anchor, head) {
|
|
608
|
+
this.anchor = anchor;
|
|
609
|
+
this.head = head;
|
|
610
|
+
}
|
|
611
|
+
map(mapping) {
|
|
612
|
+
return new _CellBookmark(mapping.map(this.anchor), mapping.map(this.head));
|
|
613
|
+
}
|
|
614
|
+
resolve(doc) {
|
|
615
|
+
const $anchorCell = doc.resolve(this.anchor), $headCell = doc.resolve(this.head);
|
|
616
|
+
if ($anchorCell.parent.type.spec.tableRole == "row" && $headCell.parent.type.spec.tableRole == "row" && $anchorCell.index() < $anchorCell.parent.childCount && $headCell.index() < $headCell.parent.childCount && inSameTable($anchorCell, $headCell))
|
|
617
|
+
return new CellSelection($anchorCell, $headCell);
|
|
618
|
+
else return index.Selection.near($headCell, 1);
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
function drawCellSelection(state) {
|
|
622
|
+
if (!(state.selection instanceof CellSelection)) return null;
|
|
623
|
+
const cells = [];
|
|
624
|
+
state.selection.forEachCell((node, pos) => {
|
|
625
|
+
cells.push(
|
|
626
|
+
index$3.Decoration.node(pos, pos + node.nodeSize, { class: "selectedCell" })
|
|
627
|
+
);
|
|
628
|
+
});
|
|
629
|
+
return index$3.DecorationSet.create(state.doc, cells);
|
|
630
|
+
}
|
|
631
|
+
function isCellBoundarySelection({ $from, $to }) {
|
|
632
|
+
if ($from.pos == $to.pos || $from.pos < $to.pos - 6) return false;
|
|
633
|
+
let afterFrom = $from.pos;
|
|
634
|
+
let beforeTo = $to.pos;
|
|
635
|
+
let depth = $from.depth;
|
|
636
|
+
for (; depth >= 0; depth--, afterFrom++)
|
|
637
|
+
if ($from.after(depth + 1) < $from.end(depth)) break;
|
|
638
|
+
for (let d = $to.depth; d >= 0; d--, beforeTo--)
|
|
639
|
+
if ($to.before(d + 1) > $to.start(d)) break;
|
|
640
|
+
return afterFrom == beforeTo && /row|table/.test($from.node(depth).type.spec.tableRole);
|
|
641
|
+
}
|
|
642
|
+
function isTextSelectionAcrossCells({ $from, $to }) {
|
|
643
|
+
let fromCellBoundaryNode;
|
|
644
|
+
let toCellBoundaryNode;
|
|
645
|
+
for (let i = $from.depth; i > 0; i--) {
|
|
646
|
+
const node = $from.node(i);
|
|
647
|
+
if (node.type.spec.tableRole === "cell" || node.type.spec.tableRole === "header_cell") {
|
|
648
|
+
fromCellBoundaryNode = node;
|
|
649
|
+
break;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
for (let i = $to.depth; i > 0; i--) {
|
|
653
|
+
const node = $to.node(i);
|
|
654
|
+
if (node.type.spec.tableRole === "cell" || node.type.spec.tableRole === "header_cell") {
|
|
655
|
+
toCellBoundaryNode = node;
|
|
656
|
+
break;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
return fromCellBoundaryNode !== toCellBoundaryNode && $to.parentOffset === 0;
|
|
660
|
+
}
|
|
661
|
+
function normalizeSelection(state, tr, allowTableNodeSelection) {
|
|
662
|
+
const sel = (tr || state).selection;
|
|
663
|
+
const doc = (tr || state).doc;
|
|
664
|
+
let normalize;
|
|
665
|
+
let role;
|
|
666
|
+
if (sel instanceof index.NodeSelection && (role = sel.node.type.spec.tableRole)) {
|
|
667
|
+
if (role == "cell" || role == "header_cell") {
|
|
668
|
+
normalize = CellSelection.create(doc, sel.from);
|
|
669
|
+
} else if (role == "row") {
|
|
670
|
+
const $cell = doc.resolve(sel.from + 1);
|
|
671
|
+
normalize = CellSelection.rowSelection($cell, $cell);
|
|
672
|
+
} else if (!allowTableNodeSelection) {
|
|
673
|
+
const map = TableMap.get(sel.node);
|
|
674
|
+
const start = sel.from + 1;
|
|
675
|
+
const lastCell = start + map.map[map.width * map.height - 1];
|
|
676
|
+
normalize = CellSelection.create(doc, start + 1, lastCell);
|
|
677
|
+
}
|
|
678
|
+
} else if (sel instanceof index.TextSelection && isCellBoundarySelection(sel)) {
|
|
679
|
+
normalize = index.TextSelection.create(doc, sel.from);
|
|
680
|
+
} else if (sel instanceof index.TextSelection && isTextSelectionAcrossCells(sel)) {
|
|
681
|
+
normalize = index.TextSelection.create(doc, sel.$from.start(), sel.$from.end());
|
|
682
|
+
}
|
|
683
|
+
if (normalize) (tr || (tr = state.tr)).setSelection(normalize);
|
|
684
|
+
return tr;
|
|
685
|
+
}
|
|
686
|
+
var fixTablesKey = new index.PluginKey("fix-tables");
|
|
687
|
+
function changedDescendants(old, cur, offset, f) {
|
|
688
|
+
const oldSize = old.childCount, curSize = cur.childCount;
|
|
689
|
+
outer: for (let i = 0, j = 0; i < curSize; i++) {
|
|
690
|
+
const child = cur.child(i);
|
|
691
|
+
for (let scan = j, e = Math.min(oldSize, i + 3); scan < e; scan++) {
|
|
692
|
+
if (old.child(scan) == child) {
|
|
693
|
+
j = scan + 1;
|
|
694
|
+
offset += child.nodeSize;
|
|
695
|
+
continue outer;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
f(child, offset);
|
|
699
|
+
if (j < oldSize && old.child(j).sameMarkup(child))
|
|
700
|
+
changedDescendants(old.child(j), child, offset + 1, f);
|
|
701
|
+
else child.nodesBetween(0, child.content.size, f, offset + 1);
|
|
702
|
+
offset += child.nodeSize;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
function fixTables(state, oldState) {
|
|
706
|
+
let tr;
|
|
707
|
+
const check = (node, pos) => {
|
|
708
|
+
if (node.type.spec.tableRole == "table")
|
|
709
|
+
tr = fixTable(state, node, pos, tr);
|
|
710
|
+
};
|
|
711
|
+
if (!oldState) state.doc.descendants(check);
|
|
712
|
+
else if (oldState.doc != state.doc)
|
|
713
|
+
changedDescendants(oldState.doc, state.doc, 0, check);
|
|
714
|
+
return tr;
|
|
715
|
+
}
|
|
716
|
+
function fixTable(state, table, tablePos, tr) {
|
|
717
|
+
const map = TableMap.get(table);
|
|
718
|
+
if (!map.problems) return tr;
|
|
719
|
+
if (!tr) tr = state.tr;
|
|
720
|
+
const mustAdd = [];
|
|
721
|
+
for (let i = 0; i < map.height; i++) mustAdd.push(0);
|
|
722
|
+
for (let i = 0; i < map.problems.length; i++) {
|
|
723
|
+
const prob = map.problems[i];
|
|
724
|
+
if (prob.type == "collision") {
|
|
725
|
+
const cell = table.nodeAt(prob.pos);
|
|
726
|
+
if (!cell) continue;
|
|
727
|
+
const attrs = cell.attrs;
|
|
728
|
+
for (let j = 0; j < attrs.rowspan; j++) mustAdd[prob.row + j] += prob.n;
|
|
729
|
+
tr.setNodeMarkup(
|
|
730
|
+
tr.mapping.map(tablePos + 1 + prob.pos),
|
|
731
|
+
null,
|
|
732
|
+
removeColSpan(attrs, attrs.colspan - prob.n, prob.n)
|
|
733
|
+
);
|
|
734
|
+
} else if (prob.type == "missing") {
|
|
735
|
+
mustAdd[prob.row] += prob.n;
|
|
736
|
+
} else if (prob.type == "overlong_rowspan") {
|
|
737
|
+
const cell = table.nodeAt(prob.pos);
|
|
738
|
+
if (!cell) continue;
|
|
739
|
+
tr.setNodeMarkup(tr.mapping.map(tablePos + 1 + prob.pos), null, {
|
|
740
|
+
...cell.attrs,
|
|
741
|
+
rowspan: cell.attrs.rowspan - prob.n
|
|
742
|
+
});
|
|
743
|
+
} else if (prob.type == "colwidth mismatch") {
|
|
744
|
+
const cell = table.nodeAt(prob.pos);
|
|
745
|
+
if (!cell) continue;
|
|
746
|
+
tr.setNodeMarkup(tr.mapping.map(tablePos + 1 + prob.pos), null, {
|
|
747
|
+
...cell.attrs,
|
|
748
|
+
colwidth: prob.colwidth
|
|
749
|
+
});
|
|
750
|
+
} else if (prob.type == "zero_sized") {
|
|
751
|
+
const pos = tr.mapping.map(tablePos);
|
|
752
|
+
tr.delete(pos, pos + table.nodeSize);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
let first, last;
|
|
756
|
+
for (let i = 0; i < mustAdd.length; i++)
|
|
757
|
+
if (mustAdd[i]) {
|
|
758
|
+
if (first == null) first = i;
|
|
759
|
+
last = i;
|
|
760
|
+
}
|
|
761
|
+
for (let i = 0, pos = tablePos + 1; i < map.height; i++) {
|
|
762
|
+
const row = table.child(i);
|
|
763
|
+
const end = pos + row.nodeSize;
|
|
764
|
+
const add = mustAdd[i];
|
|
765
|
+
if (add > 0) {
|
|
766
|
+
let role = "cell";
|
|
767
|
+
if (row.firstChild) {
|
|
768
|
+
role = row.firstChild.type.spec.tableRole;
|
|
769
|
+
}
|
|
770
|
+
const nodes = [];
|
|
771
|
+
for (let j = 0; j < add; j++) {
|
|
772
|
+
const node = tableNodeTypes(state.schema)[role].createAndFill();
|
|
773
|
+
if (node) nodes.push(node);
|
|
774
|
+
}
|
|
775
|
+
const side = (i == 0 || first == i - 1) && last == i ? pos + 1 : end - 1;
|
|
776
|
+
tr.insert(tr.mapping.map(side), nodes);
|
|
777
|
+
}
|
|
778
|
+
pos = end;
|
|
779
|
+
}
|
|
780
|
+
return tr.setMeta(fixTablesKey, { fixTables: true });
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
// src/commands.ts
|
|
784
|
+
function selectedRect(state) {
|
|
785
|
+
const sel = state.selection;
|
|
786
|
+
const $pos = selectionCell(state);
|
|
787
|
+
const table = $pos.node(-1);
|
|
788
|
+
const tableStart = $pos.start(-1);
|
|
789
|
+
const map = TableMap.get(table);
|
|
790
|
+
const rect = sel instanceof CellSelection ? map.rectBetween(
|
|
791
|
+
sel.$anchorCell.pos - tableStart,
|
|
792
|
+
sel.$headCell.pos - tableStart
|
|
793
|
+
) : map.findCell($pos.pos - tableStart);
|
|
794
|
+
return { ...rect, tableStart, map, table };
|
|
795
|
+
}
|
|
796
|
+
function addColumn(tr, { map, tableStart, table }, col) {
|
|
797
|
+
let refColumn = col > 0 ? -1 : 0;
|
|
798
|
+
if (columnIsHeader(map, table, col + refColumn)) {
|
|
799
|
+
refColumn = col == 0 || col == map.width ? null : 0;
|
|
800
|
+
}
|
|
801
|
+
for (let row = 0; row < map.height; row++) {
|
|
802
|
+
const index = row * map.width + col;
|
|
803
|
+
if (col > 0 && col < map.width && map.map[index - 1] == map.map[index]) {
|
|
804
|
+
const pos = map.map[index];
|
|
805
|
+
const cell = table.nodeAt(pos);
|
|
806
|
+
tr.setNodeMarkup(
|
|
807
|
+
tr.mapping.map(tableStart + pos),
|
|
808
|
+
null,
|
|
809
|
+
addColSpan(cell.attrs, col - map.colCount(pos))
|
|
810
|
+
);
|
|
811
|
+
row += cell.attrs.rowspan - 1;
|
|
812
|
+
} else {
|
|
813
|
+
const type = refColumn == null ? tableNodeTypes(table.type.schema).cell : table.nodeAt(map.map[index + refColumn]).type;
|
|
814
|
+
const pos = map.positionAt(row, col, table);
|
|
815
|
+
tr.insert(tr.mapping.map(tableStart + pos), type.createAndFill());
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return tr;
|
|
819
|
+
}
|
|
820
|
+
function addColumnBefore(state, dispatch) {
|
|
821
|
+
if (!isInTable(state)) return false;
|
|
822
|
+
if (dispatch) {
|
|
823
|
+
const rect = selectedRect(state);
|
|
824
|
+
dispatch(addColumn(state.tr, rect, rect.left));
|
|
825
|
+
}
|
|
826
|
+
return true;
|
|
827
|
+
}
|
|
828
|
+
function addColumnAfter(state, dispatch) {
|
|
829
|
+
if (!isInTable(state)) return false;
|
|
830
|
+
if (dispatch) {
|
|
831
|
+
const rect = selectedRect(state);
|
|
832
|
+
dispatch(addColumn(state.tr, rect, rect.right));
|
|
833
|
+
}
|
|
834
|
+
return true;
|
|
835
|
+
}
|
|
836
|
+
function removeColumn(tr, { map, table, tableStart }, col) {
|
|
837
|
+
const mapStart = tr.mapping.maps.length;
|
|
838
|
+
for (let row = 0; row < map.height; ) {
|
|
839
|
+
const index = row * map.width + col;
|
|
840
|
+
const pos = map.map[index];
|
|
841
|
+
const cell = table.nodeAt(pos);
|
|
842
|
+
const attrs = cell.attrs;
|
|
843
|
+
if (col > 0 && map.map[index - 1] == pos || col < map.width - 1 && map.map[index + 1] == pos) {
|
|
844
|
+
tr.setNodeMarkup(
|
|
845
|
+
tr.mapping.slice(mapStart).map(tableStart + pos),
|
|
846
|
+
null,
|
|
847
|
+
removeColSpan(attrs, col - map.colCount(pos))
|
|
848
|
+
);
|
|
849
|
+
} else {
|
|
850
|
+
const start = tr.mapping.slice(mapStart).map(tableStart + pos);
|
|
851
|
+
tr.delete(start, start + cell.nodeSize);
|
|
852
|
+
}
|
|
853
|
+
row += attrs.rowspan;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
function deleteColumn(state, dispatch) {
|
|
857
|
+
if (!isInTable(state)) return false;
|
|
858
|
+
if (dispatch) {
|
|
859
|
+
const rect = selectedRect(state);
|
|
860
|
+
const tr = state.tr;
|
|
861
|
+
if (rect.left == 0 && rect.right == rect.map.width) return false;
|
|
862
|
+
for (let i = rect.right - 1; ; i--) {
|
|
863
|
+
removeColumn(tr, rect, i);
|
|
864
|
+
if (i == rect.left) break;
|
|
865
|
+
const table = rect.tableStart ? tr.doc.nodeAt(rect.tableStart - 1) : tr.doc;
|
|
866
|
+
if (!table) {
|
|
867
|
+
throw RangeError("No table found");
|
|
868
|
+
}
|
|
869
|
+
rect.table = table;
|
|
870
|
+
rect.map = TableMap.get(table);
|
|
871
|
+
}
|
|
872
|
+
dispatch(tr);
|
|
873
|
+
}
|
|
874
|
+
return true;
|
|
875
|
+
}
|
|
876
|
+
function rowIsHeader(map, table, row) {
|
|
877
|
+
var _a;
|
|
878
|
+
const headerCell = tableNodeTypes(table.type.schema).header_cell;
|
|
879
|
+
for (let col = 0; col < map.width; col++)
|
|
880
|
+
if (((_a = table.nodeAt(map.map[col + row * map.width])) == null ? void 0 : _a.type) != headerCell)
|
|
881
|
+
return false;
|
|
882
|
+
return true;
|
|
883
|
+
}
|
|
884
|
+
function addRow(tr, { map, tableStart, table }, row) {
|
|
885
|
+
var _a;
|
|
886
|
+
let rowPos = tableStart;
|
|
887
|
+
for (let i = 0; i < row; i++) rowPos += table.child(i).nodeSize;
|
|
888
|
+
const cells = [];
|
|
889
|
+
let refRow = row > 0 ? -1 : 0;
|
|
890
|
+
if (rowIsHeader(map, table, row + refRow))
|
|
891
|
+
refRow = row == 0 || row == map.height ? null : 0;
|
|
892
|
+
for (let col = 0, index = map.width * row; col < map.width; col++, index++) {
|
|
893
|
+
if (row > 0 && row < map.height && map.map[index] == map.map[index - map.width]) {
|
|
894
|
+
const pos = map.map[index];
|
|
895
|
+
const attrs = table.nodeAt(pos).attrs;
|
|
896
|
+
tr.setNodeMarkup(tableStart + pos, null, {
|
|
897
|
+
...attrs,
|
|
898
|
+
rowspan: attrs.rowspan + 1
|
|
899
|
+
});
|
|
900
|
+
col += attrs.colspan - 1;
|
|
901
|
+
} else {
|
|
902
|
+
const type = refRow == null ? tableNodeTypes(table.type.schema).cell : (_a = table.nodeAt(map.map[index + refRow * map.width])) == null ? void 0 : _a.type;
|
|
903
|
+
const node = type == null ? void 0 : type.createAndFill();
|
|
904
|
+
if (node) cells.push(node);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
tr.insert(rowPos, tableNodeTypes(table.type.schema).row.create(null, cells));
|
|
908
|
+
return tr;
|
|
909
|
+
}
|
|
910
|
+
function addRowBefore(state, dispatch) {
|
|
911
|
+
if (!isInTable(state)) return false;
|
|
912
|
+
if (dispatch) {
|
|
913
|
+
const rect = selectedRect(state);
|
|
914
|
+
dispatch(addRow(state.tr, rect, rect.top));
|
|
915
|
+
}
|
|
916
|
+
return true;
|
|
917
|
+
}
|
|
918
|
+
function addRowAfter(state, dispatch) {
|
|
919
|
+
if (!isInTable(state)) return false;
|
|
920
|
+
if (dispatch) {
|
|
921
|
+
const rect = selectedRect(state);
|
|
922
|
+
dispatch(addRow(state.tr, rect, rect.bottom));
|
|
923
|
+
}
|
|
924
|
+
return true;
|
|
925
|
+
}
|
|
926
|
+
function removeRow(tr, { map, table, tableStart }, row) {
|
|
927
|
+
let rowPos = 0;
|
|
928
|
+
for (let i = 0; i < row; i++) rowPos += table.child(i).nodeSize;
|
|
929
|
+
const nextRow = rowPos + table.child(row).nodeSize;
|
|
930
|
+
const mapFrom = tr.mapping.maps.length;
|
|
931
|
+
tr.delete(rowPos + tableStart, nextRow + tableStart);
|
|
932
|
+
const seen = /* @__PURE__ */ new Set();
|
|
933
|
+
for (let col = 0, index = row * map.width; col < map.width; col++, index++) {
|
|
934
|
+
const pos = map.map[index];
|
|
935
|
+
if (seen.has(pos)) continue;
|
|
936
|
+
seen.add(pos);
|
|
937
|
+
if (row > 0 && pos == map.map[index - map.width]) {
|
|
938
|
+
const attrs = table.nodeAt(pos).attrs;
|
|
939
|
+
tr.setNodeMarkup(tr.mapping.slice(mapFrom).map(pos + tableStart), null, {
|
|
940
|
+
...attrs,
|
|
941
|
+
rowspan: attrs.rowspan - 1
|
|
942
|
+
});
|
|
943
|
+
col += attrs.colspan - 1;
|
|
944
|
+
} else if (row < map.height && pos == map.map[index + map.width]) {
|
|
945
|
+
const cell = table.nodeAt(pos);
|
|
946
|
+
const attrs = cell.attrs;
|
|
947
|
+
const copy = cell.type.create(
|
|
948
|
+
{ ...attrs, rowspan: cell.attrs.rowspan - 1 },
|
|
949
|
+
cell.content
|
|
950
|
+
);
|
|
951
|
+
const newPos = map.positionAt(row + 1, col, table);
|
|
952
|
+
tr.insert(tr.mapping.slice(mapFrom).map(tableStart + newPos), copy);
|
|
953
|
+
col += attrs.colspan - 1;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
function deleteRow(state, dispatch) {
|
|
958
|
+
if (!isInTable(state)) return false;
|
|
959
|
+
if (dispatch) {
|
|
960
|
+
const rect = selectedRect(state), tr = state.tr;
|
|
961
|
+
if (rect.top == 0 && rect.bottom == rect.map.height) return false;
|
|
962
|
+
for (let i = rect.bottom - 1; ; i--) {
|
|
963
|
+
removeRow(tr, rect, i);
|
|
964
|
+
if (i == rect.top) break;
|
|
965
|
+
const table = rect.tableStart ? tr.doc.nodeAt(rect.tableStart - 1) : tr.doc;
|
|
966
|
+
if (!table) {
|
|
967
|
+
throw RangeError("No table found");
|
|
968
|
+
}
|
|
969
|
+
rect.table = table;
|
|
970
|
+
rect.map = TableMap.get(rect.table);
|
|
971
|
+
}
|
|
972
|
+
dispatch(tr);
|
|
973
|
+
}
|
|
974
|
+
return true;
|
|
975
|
+
}
|
|
976
|
+
function isEmpty(cell) {
|
|
977
|
+
const c = cell.content;
|
|
978
|
+
return c.childCount == 1 && c.child(0).isTextblock && c.child(0).childCount == 0;
|
|
979
|
+
}
|
|
980
|
+
function cellsOverlapRectangle({ width, height, map }, rect) {
|
|
981
|
+
let indexTop = rect.top * width + rect.left, indexLeft = indexTop;
|
|
982
|
+
let indexBottom = (rect.bottom - 1) * width + rect.left, indexRight = indexTop + (rect.right - rect.left - 1);
|
|
983
|
+
for (let i = rect.top; i < rect.bottom; i++) {
|
|
984
|
+
if (rect.left > 0 && map[indexLeft] == map[indexLeft - 1] || rect.right < width && map[indexRight] == map[indexRight + 1])
|
|
985
|
+
return true;
|
|
986
|
+
indexLeft += width;
|
|
987
|
+
indexRight += width;
|
|
988
|
+
}
|
|
989
|
+
for (let i = rect.left; i < rect.right; i++) {
|
|
990
|
+
if (rect.top > 0 && map[indexTop] == map[indexTop - width] || rect.bottom < height && map[indexBottom] == map[indexBottom + width])
|
|
991
|
+
return true;
|
|
992
|
+
indexTop++;
|
|
993
|
+
indexBottom++;
|
|
994
|
+
}
|
|
995
|
+
return false;
|
|
996
|
+
}
|
|
997
|
+
function mergeCells(state, dispatch) {
|
|
998
|
+
const sel = state.selection;
|
|
999
|
+
if (!(sel instanceof CellSelection) || sel.$anchorCell.pos == sel.$headCell.pos)
|
|
1000
|
+
return false;
|
|
1001
|
+
const rect = selectedRect(state), { map } = rect;
|
|
1002
|
+
if (cellsOverlapRectangle(map, rect)) return false;
|
|
1003
|
+
if (dispatch) {
|
|
1004
|
+
const tr = state.tr;
|
|
1005
|
+
const seen = {};
|
|
1006
|
+
let content = index$2.Fragment.empty;
|
|
1007
|
+
let mergedPos;
|
|
1008
|
+
let mergedCell;
|
|
1009
|
+
for (let row = rect.top; row < rect.bottom; row++) {
|
|
1010
|
+
for (let col = rect.left; col < rect.right; col++) {
|
|
1011
|
+
const cellPos = map.map[row * map.width + col];
|
|
1012
|
+
const cell = rect.table.nodeAt(cellPos);
|
|
1013
|
+
if (seen[cellPos] || !cell) continue;
|
|
1014
|
+
seen[cellPos] = true;
|
|
1015
|
+
if (mergedPos == null) {
|
|
1016
|
+
mergedPos = cellPos;
|
|
1017
|
+
mergedCell = cell;
|
|
1018
|
+
} else {
|
|
1019
|
+
if (!isEmpty(cell)) content = content.append(cell.content);
|
|
1020
|
+
const mapped = tr.mapping.map(cellPos + rect.tableStart);
|
|
1021
|
+
tr.delete(mapped, mapped + cell.nodeSize);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if (mergedPos == null || mergedCell == null) {
|
|
1026
|
+
return true;
|
|
1027
|
+
}
|
|
1028
|
+
tr.setNodeMarkup(mergedPos + rect.tableStart, null, {
|
|
1029
|
+
...addColSpan(
|
|
1030
|
+
mergedCell.attrs,
|
|
1031
|
+
mergedCell.attrs.colspan,
|
|
1032
|
+
rect.right - rect.left - mergedCell.attrs.colspan
|
|
1033
|
+
),
|
|
1034
|
+
rowspan: rect.bottom - rect.top
|
|
1035
|
+
});
|
|
1036
|
+
if (content.size) {
|
|
1037
|
+
const end = mergedPos + 1 + mergedCell.content.size;
|
|
1038
|
+
const start = isEmpty(mergedCell) ? mergedPos + 1 : end;
|
|
1039
|
+
tr.replaceWith(start + rect.tableStart, end + rect.tableStart, content);
|
|
1040
|
+
}
|
|
1041
|
+
tr.setSelection(
|
|
1042
|
+
new CellSelection(tr.doc.resolve(mergedPos + rect.tableStart))
|
|
1043
|
+
);
|
|
1044
|
+
dispatch(tr);
|
|
1045
|
+
}
|
|
1046
|
+
return true;
|
|
1047
|
+
}
|
|
1048
|
+
function splitCell(state, dispatch) {
|
|
1049
|
+
const nodeTypes = tableNodeTypes(state.schema);
|
|
1050
|
+
return splitCellWithType(({ node }) => {
|
|
1051
|
+
return nodeTypes[node.type.spec.tableRole];
|
|
1052
|
+
})(state, dispatch);
|
|
1053
|
+
}
|
|
1054
|
+
function splitCellWithType(getCellType) {
|
|
1055
|
+
return (state, dispatch) => {
|
|
1056
|
+
var _a;
|
|
1057
|
+
const sel = state.selection;
|
|
1058
|
+
let cellNode;
|
|
1059
|
+
let cellPos;
|
|
1060
|
+
if (!(sel instanceof CellSelection)) {
|
|
1061
|
+
cellNode = cellWrapping(sel.$from);
|
|
1062
|
+
if (!cellNode) return false;
|
|
1063
|
+
cellPos = (_a = cellAround(sel.$from)) == null ? void 0 : _a.pos;
|
|
1064
|
+
} else {
|
|
1065
|
+
if (sel.$anchorCell.pos != sel.$headCell.pos) return false;
|
|
1066
|
+
cellNode = sel.$anchorCell.nodeAfter;
|
|
1067
|
+
cellPos = sel.$anchorCell.pos;
|
|
1068
|
+
}
|
|
1069
|
+
if (cellNode == null || cellPos == null) {
|
|
1070
|
+
return false;
|
|
1071
|
+
}
|
|
1072
|
+
if (cellNode.attrs.colspan == 1 && cellNode.attrs.rowspan == 1) {
|
|
1073
|
+
return false;
|
|
1074
|
+
}
|
|
1075
|
+
if (dispatch) {
|
|
1076
|
+
let baseAttrs = cellNode.attrs;
|
|
1077
|
+
const attrs = [];
|
|
1078
|
+
const colwidth = baseAttrs.colwidth;
|
|
1079
|
+
if (baseAttrs.rowspan > 1) baseAttrs = { ...baseAttrs, rowspan: 1 };
|
|
1080
|
+
if (baseAttrs.colspan > 1) baseAttrs = { ...baseAttrs, colspan: 1 };
|
|
1081
|
+
const rect = selectedRect(state), tr = state.tr;
|
|
1082
|
+
for (let i = 0; i < rect.right - rect.left; i++)
|
|
1083
|
+
attrs.push(
|
|
1084
|
+
colwidth ? {
|
|
1085
|
+
...baseAttrs,
|
|
1086
|
+
colwidth: colwidth && colwidth[i] ? [colwidth[i]] : null
|
|
1087
|
+
} : baseAttrs
|
|
1088
|
+
);
|
|
1089
|
+
let lastCell;
|
|
1090
|
+
for (let row = rect.top; row < rect.bottom; row++) {
|
|
1091
|
+
let pos = rect.map.positionAt(row, rect.left, rect.table);
|
|
1092
|
+
if (row == rect.top) pos += cellNode.nodeSize;
|
|
1093
|
+
for (let col = rect.left, i = 0; col < rect.right; col++, i++) {
|
|
1094
|
+
if (col == rect.left && row == rect.top) continue;
|
|
1095
|
+
tr.insert(
|
|
1096
|
+
lastCell = tr.mapping.map(pos + rect.tableStart, 1),
|
|
1097
|
+
getCellType({ node: cellNode, row, col }).createAndFill(attrs[i])
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
tr.setNodeMarkup(
|
|
1102
|
+
cellPos,
|
|
1103
|
+
getCellType({ node: cellNode, row: rect.top, col: rect.left }),
|
|
1104
|
+
attrs[0]
|
|
1105
|
+
);
|
|
1106
|
+
if (sel instanceof CellSelection)
|
|
1107
|
+
tr.setSelection(
|
|
1108
|
+
new CellSelection(
|
|
1109
|
+
tr.doc.resolve(sel.$anchorCell.pos),
|
|
1110
|
+
lastCell ? tr.doc.resolve(lastCell) : void 0
|
|
1111
|
+
)
|
|
1112
|
+
);
|
|
1113
|
+
dispatch(tr);
|
|
1114
|
+
}
|
|
1115
|
+
return true;
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
function setCellAttr(name, value) {
|
|
1119
|
+
return function(state, dispatch) {
|
|
1120
|
+
if (!isInTable(state)) return false;
|
|
1121
|
+
const $cell = selectionCell(state);
|
|
1122
|
+
if ($cell.nodeAfter.attrs[name] === value) return false;
|
|
1123
|
+
if (dispatch) {
|
|
1124
|
+
const tr = state.tr;
|
|
1125
|
+
if (state.selection instanceof CellSelection)
|
|
1126
|
+
state.selection.forEachCell((node, pos) => {
|
|
1127
|
+
if (node.attrs[name] !== value)
|
|
1128
|
+
tr.setNodeMarkup(pos, null, {
|
|
1129
|
+
...node.attrs,
|
|
1130
|
+
[name]: value
|
|
1131
|
+
});
|
|
1132
|
+
});
|
|
1133
|
+
else
|
|
1134
|
+
tr.setNodeMarkup($cell.pos, null, {
|
|
1135
|
+
...$cell.nodeAfter.attrs,
|
|
1136
|
+
[name]: value
|
|
1137
|
+
});
|
|
1138
|
+
dispatch(tr);
|
|
1139
|
+
}
|
|
1140
|
+
return true;
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
function deprecated_toggleHeader(type) {
|
|
1144
|
+
return function(state, dispatch) {
|
|
1145
|
+
if (!isInTable(state)) return false;
|
|
1146
|
+
if (dispatch) {
|
|
1147
|
+
const types = tableNodeTypes(state.schema);
|
|
1148
|
+
const rect = selectedRect(state), tr = state.tr;
|
|
1149
|
+
const cells = rect.map.cellsInRect(
|
|
1150
|
+
type == "column" ? {
|
|
1151
|
+
left: rect.left,
|
|
1152
|
+
top: 0,
|
|
1153
|
+
right: rect.right,
|
|
1154
|
+
bottom: rect.map.height
|
|
1155
|
+
} : type == "row" ? {
|
|
1156
|
+
left: 0,
|
|
1157
|
+
top: rect.top,
|
|
1158
|
+
right: rect.map.width,
|
|
1159
|
+
bottom: rect.bottom
|
|
1160
|
+
} : rect
|
|
1161
|
+
);
|
|
1162
|
+
const nodes = cells.map((pos) => rect.table.nodeAt(pos));
|
|
1163
|
+
for (let i = 0; i < cells.length; i++)
|
|
1164
|
+
if (nodes[i].type == types.header_cell)
|
|
1165
|
+
tr.setNodeMarkup(
|
|
1166
|
+
rect.tableStart + cells[i],
|
|
1167
|
+
types.cell,
|
|
1168
|
+
nodes[i].attrs
|
|
1169
|
+
);
|
|
1170
|
+
if (tr.steps.length == 0)
|
|
1171
|
+
for (let i = 0; i < cells.length; i++)
|
|
1172
|
+
tr.setNodeMarkup(
|
|
1173
|
+
rect.tableStart + cells[i],
|
|
1174
|
+
types.header_cell,
|
|
1175
|
+
nodes[i].attrs
|
|
1176
|
+
);
|
|
1177
|
+
dispatch(tr);
|
|
1178
|
+
}
|
|
1179
|
+
return true;
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
function isHeaderEnabledByType(type, rect, types) {
|
|
1183
|
+
const cellPositions = rect.map.cellsInRect({
|
|
1184
|
+
left: 0,
|
|
1185
|
+
top: 0,
|
|
1186
|
+
right: type == "row" ? rect.map.width : 1,
|
|
1187
|
+
bottom: type == "column" ? rect.map.height : 1
|
|
1188
|
+
});
|
|
1189
|
+
for (let i = 0; i < cellPositions.length; i++) {
|
|
1190
|
+
const cell = rect.table.nodeAt(cellPositions[i]);
|
|
1191
|
+
if (cell && cell.type !== types.header_cell) {
|
|
1192
|
+
return false;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
return true;
|
|
1196
|
+
}
|
|
1197
|
+
function toggleHeader(type, options) {
|
|
1198
|
+
options = options || { useDeprecatedLogic: false };
|
|
1199
|
+
if (options.useDeprecatedLogic) return deprecated_toggleHeader(type);
|
|
1200
|
+
return function(state, dispatch) {
|
|
1201
|
+
if (!isInTable(state)) return false;
|
|
1202
|
+
if (dispatch) {
|
|
1203
|
+
const types = tableNodeTypes(state.schema);
|
|
1204
|
+
const rect = selectedRect(state), tr = state.tr;
|
|
1205
|
+
const isHeaderRowEnabled = isHeaderEnabledByType("row", rect, types);
|
|
1206
|
+
const isHeaderColumnEnabled = isHeaderEnabledByType(
|
|
1207
|
+
"column",
|
|
1208
|
+
rect,
|
|
1209
|
+
types
|
|
1210
|
+
);
|
|
1211
|
+
const isHeaderEnabled = type === "column" ? isHeaderRowEnabled : type === "row" ? isHeaderColumnEnabled : false;
|
|
1212
|
+
const selectionStartsAt = isHeaderEnabled ? 1 : 0;
|
|
1213
|
+
const cellsRect = type == "column" ? {
|
|
1214
|
+
left: 0,
|
|
1215
|
+
top: selectionStartsAt,
|
|
1216
|
+
right: 1,
|
|
1217
|
+
bottom: rect.map.height
|
|
1218
|
+
} : type == "row" ? {
|
|
1219
|
+
left: selectionStartsAt,
|
|
1220
|
+
top: 0,
|
|
1221
|
+
right: rect.map.width,
|
|
1222
|
+
bottom: 1
|
|
1223
|
+
} : rect;
|
|
1224
|
+
const newType = type == "column" ? isHeaderColumnEnabled ? types.cell : types.header_cell : type == "row" ? isHeaderRowEnabled ? types.cell : types.header_cell : types.cell;
|
|
1225
|
+
rect.map.cellsInRect(cellsRect).forEach((relativeCellPos) => {
|
|
1226
|
+
const cellPos = relativeCellPos + rect.tableStart;
|
|
1227
|
+
const cell = tr.doc.nodeAt(cellPos);
|
|
1228
|
+
if (cell) {
|
|
1229
|
+
tr.setNodeMarkup(cellPos, newType, cell.attrs);
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
dispatch(tr);
|
|
1233
|
+
}
|
|
1234
|
+
return true;
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
toggleHeader("row", {
|
|
1238
|
+
useDeprecatedLogic: true
|
|
1239
|
+
});
|
|
1240
|
+
toggleHeader("column", {
|
|
1241
|
+
useDeprecatedLogic: true
|
|
1242
|
+
});
|
|
1243
|
+
var toggleHeaderCell = toggleHeader("cell", {
|
|
1244
|
+
useDeprecatedLogic: true
|
|
1245
|
+
});
|
|
1246
|
+
function findNextCell($cell, dir) {
|
|
1247
|
+
if (dir < 0) {
|
|
1248
|
+
const before = $cell.nodeBefore;
|
|
1249
|
+
if (before) return $cell.pos - before.nodeSize;
|
|
1250
|
+
for (let row = $cell.index(-1) - 1, rowEnd = $cell.before(); row >= 0; row--) {
|
|
1251
|
+
const rowNode = $cell.node(-1).child(row);
|
|
1252
|
+
const lastChild = rowNode.lastChild;
|
|
1253
|
+
if (lastChild) {
|
|
1254
|
+
return rowEnd - 1 - lastChild.nodeSize;
|
|
1255
|
+
}
|
|
1256
|
+
rowEnd -= rowNode.nodeSize;
|
|
1257
|
+
}
|
|
1258
|
+
} else {
|
|
1259
|
+
if ($cell.index() < $cell.parent.childCount - 1) {
|
|
1260
|
+
return $cell.pos + $cell.nodeAfter.nodeSize;
|
|
1261
|
+
}
|
|
1262
|
+
const table = $cell.node(-1);
|
|
1263
|
+
for (let row = $cell.indexAfter(-1), rowStart = $cell.after(); row < table.childCount; row++) {
|
|
1264
|
+
const rowNode = table.child(row);
|
|
1265
|
+
if (rowNode.childCount) return rowStart + 1;
|
|
1266
|
+
rowStart += rowNode.nodeSize;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
return null;
|
|
1270
|
+
}
|
|
1271
|
+
function goToNextCell(direction) {
|
|
1272
|
+
return function(state, dispatch) {
|
|
1273
|
+
if (!isInTable(state)) return false;
|
|
1274
|
+
const cell = findNextCell(selectionCell(state), direction);
|
|
1275
|
+
if (cell == null) return false;
|
|
1276
|
+
if (dispatch) {
|
|
1277
|
+
const $cell = state.doc.resolve(cell);
|
|
1278
|
+
dispatch(
|
|
1279
|
+
state.tr.setSelection(index.TextSelection.between($cell, moveCellForward($cell))).scrollIntoView()
|
|
1280
|
+
);
|
|
1281
|
+
}
|
|
1282
|
+
return true;
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
function deleteTable(state, dispatch) {
|
|
1286
|
+
const $pos = state.selection.$anchor;
|
|
1287
|
+
for (let d = $pos.depth; d > 0; d--) {
|
|
1288
|
+
const node = $pos.node(d);
|
|
1289
|
+
if (node.type.spec.tableRole == "table") {
|
|
1290
|
+
if (dispatch)
|
|
1291
|
+
dispatch(
|
|
1292
|
+
state.tr.delete($pos.before(d), $pos.after(d)).scrollIntoView()
|
|
1293
|
+
);
|
|
1294
|
+
return true;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
return false;
|
|
1298
|
+
}
|
|
1299
|
+
function deleteCellSelection(state, dispatch) {
|
|
1300
|
+
const sel = state.selection;
|
|
1301
|
+
if (!(sel instanceof CellSelection)) return false;
|
|
1302
|
+
if (dispatch) {
|
|
1303
|
+
const tr = state.tr;
|
|
1304
|
+
const baseContent = tableNodeTypes(state.schema).cell.createAndFill().content;
|
|
1305
|
+
sel.forEachCell((cell, pos) => {
|
|
1306
|
+
if (!cell.content.eq(baseContent))
|
|
1307
|
+
tr.replace(
|
|
1308
|
+
tr.mapping.map(pos + 1),
|
|
1309
|
+
tr.mapping.map(pos + cell.nodeSize - 1),
|
|
1310
|
+
new index$2.Slice(baseContent, 0, 0)
|
|
1311
|
+
);
|
|
1312
|
+
});
|
|
1313
|
+
if (tr.docChanged) dispatch(tr);
|
|
1314
|
+
}
|
|
1315
|
+
return true;
|
|
1316
|
+
}
|
|
1317
|
+
function pastedCells(slice) {
|
|
1318
|
+
if (!slice.size) return null;
|
|
1319
|
+
let { content, openStart, openEnd } = slice;
|
|
1320
|
+
while (content.childCount == 1 && (openStart > 0 && openEnd > 0 || content.child(0).type.spec.tableRole == "table")) {
|
|
1321
|
+
openStart--;
|
|
1322
|
+
openEnd--;
|
|
1323
|
+
content = content.child(0).content;
|
|
1324
|
+
}
|
|
1325
|
+
const first = content.child(0);
|
|
1326
|
+
const role = first.type.spec.tableRole;
|
|
1327
|
+
const schema = first.type.schema, rows = [];
|
|
1328
|
+
if (role == "row") {
|
|
1329
|
+
for (let i = 0; i < content.childCount; i++) {
|
|
1330
|
+
let cells = content.child(i).content;
|
|
1331
|
+
const left = i ? 0 : Math.max(0, openStart - 1);
|
|
1332
|
+
const right = i < content.childCount - 1 ? 0 : Math.max(0, openEnd - 1);
|
|
1333
|
+
if (left || right)
|
|
1334
|
+
cells = fitSlice(
|
|
1335
|
+
tableNodeTypes(schema).row,
|
|
1336
|
+
new index$2.Slice(cells, left, right)
|
|
1337
|
+
).content;
|
|
1338
|
+
rows.push(cells);
|
|
1339
|
+
}
|
|
1340
|
+
} else if (role == "cell" || role == "header_cell") {
|
|
1341
|
+
rows.push(
|
|
1342
|
+
openStart || openEnd ? fitSlice(
|
|
1343
|
+
tableNodeTypes(schema).row,
|
|
1344
|
+
new index$2.Slice(content, openStart, openEnd)
|
|
1345
|
+
).content : content
|
|
1346
|
+
);
|
|
1347
|
+
} else {
|
|
1348
|
+
return null;
|
|
1349
|
+
}
|
|
1350
|
+
return ensureRectangular(schema, rows);
|
|
1351
|
+
}
|
|
1352
|
+
function ensureRectangular(schema, rows) {
|
|
1353
|
+
const widths = [];
|
|
1354
|
+
for (let i = 0; i < rows.length; i++) {
|
|
1355
|
+
const row = rows[i];
|
|
1356
|
+
for (let j = row.childCount - 1; j >= 0; j--) {
|
|
1357
|
+
const { rowspan, colspan } = row.child(j).attrs;
|
|
1358
|
+
for (let r = i; r < i + rowspan; r++)
|
|
1359
|
+
widths[r] = (widths[r] || 0) + colspan;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
let width = 0;
|
|
1363
|
+
for (let r = 0; r < widths.length; r++) width = Math.max(width, widths[r]);
|
|
1364
|
+
for (let r = 0; r < widths.length; r++) {
|
|
1365
|
+
if (r >= rows.length) rows.push(index$2.Fragment.empty);
|
|
1366
|
+
if (widths[r] < width) {
|
|
1367
|
+
const empty = tableNodeTypes(schema).cell.createAndFill();
|
|
1368
|
+
const cells = [];
|
|
1369
|
+
for (let i = widths[r]; i < width; i++) {
|
|
1370
|
+
cells.push(empty);
|
|
1371
|
+
}
|
|
1372
|
+
rows[r] = rows[r].append(index$2.Fragment.from(cells));
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
return { height: rows.length, width, rows };
|
|
1376
|
+
}
|
|
1377
|
+
function fitSlice(nodeType, slice) {
|
|
1378
|
+
const node = nodeType.createAndFill();
|
|
1379
|
+
const tr = new index$4.Transform(node).replace(0, node.content.size, slice);
|
|
1380
|
+
return tr.doc;
|
|
1381
|
+
}
|
|
1382
|
+
function clipCells({ width, height, rows }, newWidth, newHeight) {
|
|
1383
|
+
if (width != newWidth) {
|
|
1384
|
+
const added = [];
|
|
1385
|
+
const newRows = [];
|
|
1386
|
+
for (let row = 0; row < rows.length; row++) {
|
|
1387
|
+
const frag = rows[row], cells = [];
|
|
1388
|
+
for (let col = added[row] || 0, i = 0; col < newWidth; i++) {
|
|
1389
|
+
let cell = frag.child(i % frag.childCount);
|
|
1390
|
+
if (col + cell.attrs.colspan > newWidth)
|
|
1391
|
+
cell = cell.type.createChecked(
|
|
1392
|
+
removeColSpan(
|
|
1393
|
+
cell.attrs,
|
|
1394
|
+
cell.attrs.colspan,
|
|
1395
|
+
col + cell.attrs.colspan - newWidth
|
|
1396
|
+
),
|
|
1397
|
+
cell.content
|
|
1398
|
+
);
|
|
1399
|
+
cells.push(cell);
|
|
1400
|
+
col += cell.attrs.colspan;
|
|
1401
|
+
for (let j = 1; j < cell.attrs.rowspan; j++)
|
|
1402
|
+
added[row + j] = (added[row + j] || 0) + cell.attrs.colspan;
|
|
1403
|
+
}
|
|
1404
|
+
newRows.push(index$2.Fragment.from(cells));
|
|
1405
|
+
}
|
|
1406
|
+
rows = newRows;
|
|
1407
|
+
width = newWidth;
|
|
1408
|
+
}
|
|
1409
|
+
if (height != newHeight) {
|
|
1410
|
+
const newRows = [];
|
|
1411
|
+
for (let row = 0, i = 0; row < newHeight; row++, i++) {
|
|
1412
|
+
const cells = [], source = rows[i % height];
|
|
1413
|
+
for (let j = 0; j < source.childCount; j++) {
|
|
1414
|
+
let cell = source.child(j);
|
|
1415
|
+
if (row + cell.attrs.rowspan > newHeight)
|
|
1416
|
+
cell = cell.type.create(
|
|
1417
|
+
{
|
|
1418
|
+
...cell.attrs,
|
|
1419
|
+
rowspan: Math.max(1, newHeight - cell.attrs.rowspan)
|
|
1420
|
+
},
|
|
1421
|
+
cell.content
|
|
1422
|
+
);
|
|
1423
|
+
cells.push(cell);
|
|
1424
|
+
}
|
|
1425
|
+
newRows.push(index$2.Fragment.from(cells));
|
|
1426
|
+
}
|
|
1427
|
+
rows = newRows;
|
|
1428
|
+
height = newHeight;
|
|
1429
|
+
}
|
|
1430
|
+
return { width, height, rows };
|
|
1431
|
+
}
|
|
1432
|
+
function growTable(tr, map, table, start, width, height, mapFrom) {
|
|
1433
|
+
const schema = tr.doc.type.schema;
|
|
1434
|
+
const types = tableNodeTypes(schema);
|
|
1435
|
+
let empty;
|
|
1436
|
+
let emptyHead;
|
|
1437
|
+
if (width > map.width) {
|
|
1438
|
+
for (let row = 0, rowEnd = 0; row < map.height; row++) {
|
|
1439
|
+
const rowNode = table.child(row);
|
|
1440
|
+
rowEnd += rowNode.nodeSize;
|
|
1441
|
+
const cells = [];
|
|
1442
|
+
let add;
|
|
1443
|
+
if (rowNode.lastChild == null || rowNode.lastChild.type == types.cell)
|
|
1444
|
+
add = empty || (empty = types.cell.createAndFill());
|
|
1445
|
+
else add = emptyHead || (emptyHead = types.header_cell.createAndFill());
|
|
1446
|
+
for (let i = map.width; i < width; i++) cells.push(add);
|
|
1447
|
+
tr.insert(tr.mapping.slice(mapFrom).map(rowEnd - 1 + start), cells);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
if (height > map.height) {
|
|
1451
|
+
const cells = [];
|
|
1452
|
+
for (let i = 0, start2 = (map.height - 1) * map.width; i < Math.max(map.width, width); i++) {
|
|
1453
|
+
const header = i >= map.width ? false : table.nodeAt(map.map[start2 + i]).type == types.header_cell;
|
|
1454
|
+
cells.push(
|
|
1455
|
+
header ? emptyHead || (emptyHead = types.header_cell.createAndFill()) : empty || (empty = types.cell.createAndFill())
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
const emptyRow = types.row.create(null, index$2.Fragment.from(cells)), rows = [];
|
|
1459
|
+
for (let i = map.height; i < height; i++) rows.push(emptyRow);
|
|
1460
|
+
tr.insert(tr.mapping.slice(mapFrom).map(start + table.nodeSize - 2), rows);
|
|
1461
|
+
}
|
|
1462
|
+
return !!(empty || emptyHead);
|
|
1463
|
+
}
|
|
1464
|
+
function isolateHorizontal(tr, map, table, start, left, right, top, mapFrom) {
|
|
1465
|
+
if (top == 0 || top == map.height) return false;
|
|
1466
|
+
let found = false;
|
|
1467
|
+
for (let col = left; col < right; col++) {
|
|
1468
|
+
const index = top * map.width + col, pos = map.map[index];
|
|
1469
|
+
if (map.map[index - map.width] == pos) {
|
|
1470
|
+
found = true;
|
|
1471
|
+
const cell = table.nodeAt(pos);
|
|
1472
|
+
const { top: cellTop, left: cellLeft } = map.findCell(pos);
|
|
1473
|
+
tr.setNodeMarkup(tr.mapping.slice(mapFrom).map(pos + start), null, {
|
|
1474
|
+
...cell.attrs,
|
|
1475
|
+
rowspan: top - cellTop
|
|
1476
|
+
});
|
|
1477
|
+
tr.insert(
|
|
1478
|
+
tr.mapping.slice(mapFrom).map(map.positionAt(top, cellLeft, table)),
|
|
1479
|
+
cell.type.createAndFill({
|
|
1480
|
+
...cell.attrs,
|
|
1481
|
+
rowspan: cellTop + cell.attrs.rowspan - top
|
|
1482
|
+
})
|
|
1483
|
+
);
|
|
1484
|
+
col += cell.attrs.colspan - 1;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
return found;
|
|
1488
|
+
}
|
|
1489
|
+
function isolateVertical(tr, map, table, start, top, bottom, left, mapFrom) {
|
|
1490
|
+
if (left == 0 || left == map.width) return false;
|
|
1491
|
+
let found = false;
|
|
1492
|
+
for (let row = top; row < bottom; row++) {
|
|
1493
|
+
const index = row * map.width + left, pos = map.map[index];
|
|
1494
|
+
if (map.map[index - 1] == pos) {
|
|
1495
|
+
found = true;
|
|
1496
|
+
const cell = table.nodeAt(pos);
|
|
1497
|
+
const cellLeft = map.colCount(pos);
|
|
1498
|
+
const updatePos = tr.mapping.slice(mapFrom).map(pos + start);
|
|
1499
|
+
tr.setNodeMarkup(
|
|
1500
|
+
updatePos,
|
|
1501
|
+
null,
|
|
1502
|
+
removeColSpan(
|
|
1503
|
+
cell.attrs,
|
|
1504
|
+
left - cellLeft,
|
|
1505
|
+
cell.attrs.colspan - (left - cellLeft)
|
|
1506
|
+
)
|
|
1507
|
+
);
|
|
1508
|
+
tr.insert(
|
|
1509
|
+
updatePos + cell.nodeSize,
|
|
1510
|
+
cell.type.createAndFill(
|
|
1511
|
+
removeColSpan(cell.attrs, 0, left - cellLeft)
|
|
1512
|
+
)
|
|
1513
|
+
);
|
|
1514
|
+
row += cell.attrs.rowspan - 1;
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
return found;
|
|
1518
|
+
}
|
|
1519
|
+
function insertCells(state, dispatch, tableStart, rect, cells) {
|
|
1520
|
+
let table = tableStart ? state.doc.nodeAt(tableStart - 1) : state.doc;
|
|
1521
|
+
if (!table) {
|
|
1522
|
+
throw new Error("No table found");
|
|
1523
|
+
}
|
|
1524
|
+
let map = TableMap.get(table);
|
|
1525
|
+
const { top, left } = rect;
|
|
1526
|
+
const right = left + cells.width, bottom = top + cells.height;
|
|
1527
|
+
const tr = state.tr;
|
|
1528
|
+
let mapFrom = 0;
|
|
1529
|
+
function recomp() {
|
|
1530
|
+
table = tableStart ? tr.doc.nodeAt(tableStart - 1) : tr.doc;
|
|
1531
|
+
if (!table) {
|
|
1532
|
+
throw new Error("No table found");
|
|
1533
|
+
}
|
|
1534
|
+
map = TableMap.get(table);
|
|
1535
|
+
mapFrom = tr.mapping.maps.length;
|
|
1536
|
+
}
|
|
1537
|
+
if (growTable(tr, map, table, tableStart, right, bottom, mapFrom)) recomp();
|
|
1538
|
+
if (isolateHorizontal(tr, map, table, tableStart, left, right, top, mapFrom))
|
|
1539
|
+
recomp();
|
|
1540
|
+
if (isolateHorizontal(tr, map, table, tableStart, left, right, bottom, mapFrom))
|
|
1541
|
+
recomp();
|
|
1542
|
+
if (isolateVertical(tr, map, table, tableStart, top, bottom, left, mapFrom))
|
|
1543
|
+
recomp();
|
|
1544
|
+
if (isolateVertical(tr, map, table, tableStart, top, bottom, right, mapFrom))
|
|
1545
|
+
recomp();
|
|
1546
|
+
for (let row = top; row < bottom; row++) {
|
|
1547
|
+
const from = map.positionAt(row, left, table), to = map.positionAt(row, right, table);
|
|
1548
|
+
tr.replace(
|
|
1549
|
+
tr.mapping.slice(mapFrom).map(from + tableStart),
|
|
1550
|
+
tr.mapping.slice(mapFrom).map(to + tableStart),
|
|
1551
|
+
new index$2.Slice(cells.rows[row - top], 0, 0)
|
|
1552
|
+
);
|
|
1553
|
+
}
|
|
1554
|
+
recomp();
|
|
1555
|
+
tr.setSelection(
|
|
1556
|
+
new CellSelection(
|
|
1557
|
+
tr.doc.resolve(tableStart + map.positionAt(top, left, table)),
|
|
1558
|
+
tr.doc.resolve(tableStart + map.positionAt(bottom - 1, right - 1, table))
|
|
1559
|
+
)
|
|
1560
|
+
);
|
|
1561
|
+
dispatch(tr);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
// src/input.ts
|
|
1565
|
+
var handleKeyDown = index$1.keydownHandler({
|
|
1566
|
+
ArrowLeft: arrow("horiz", -1),
|
|
1567
|
+
ArrowRight: arrow("horiz", 1),
|
|
1568
|
+
ArrowUp: arrow("vert", -1),
|
|
1569
|
+
ArrowDown: arrow("vert", 1),
|
|
1570
|
+
"Shift-ArrowLeft": shiftArrow("horiz", -1),
|
|
1571
|
+
"Shift-ArrowRight": shiftArrow("horiz", 1),
|
|
1572
|
+
"Shift-ArrowUp": shiftArrow("vert", -1),
|
|
1573
|
+
"Shift-ArrowDown": shiftArrow("vert", 1),
|
|
1574
|
+
Backspace: deleteCellSelection,
|
|
1575
|
+
"Mod-Backspace": deleteCellSelection,
|
|
1576
|
+
Delete: deleteCellSelection,
|
|
1577
|
+
"Mod-Delete": deleteCellSelection
|
|
1578
|
+
});
|
|
1579
|
+
function maybeSetSelection(state, dispatch, selection) {
|
|
1580
|
+
if (selection.eq(state.selection)) return false;
|
|
1581
|
+
if (dispatch) dispatch(state.tr.setSelection(selection).scrollIntoView());
|
|
1582
|
+
return true;
|
|
1583
|
+
}
|
|
1584
|
+
function arrow(axis, dir) {
|
|
1585
|
+
return (state, dispatch, view) => {
|
|
1586
|
+
if (!view) return false;
|
|
1587
|
+
const sel = state.selection;
|
|
1588
|
+
if (sel instanceof CellSelection) {
|
|
1589
|
+
return maybeSetSelection(
|
|
1590
|
+
state,
|
|
1591
|
+
dispatch,
|
|
1592
|
+
index.Selection.near(sel.$headCell, dir)
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1595
|
+
if (axis != "horiz" && !sel.empty) return false;
|
|
1596
|
+
const end = atEndOfCell(view, axis, dir);
|
|
1597
|
+
if (end == null) return false;
|
|
1598
|
+
if (axis == "horiz") {
|
|
1599
|
+
return maybeSetSelection(
|
|
1600
|
+
state,
|
|
1601
|
+
dispatch,
|
|
1602
|
+
index.Selection.near(state.doc.resolve(sel.head + dir), dir)
|
|
1603
|
+
);
|
|
1604
|
+
} else {
|
|
1605
|
+
const $cell = state.doc.resolve(end);
|
|
1606
|
+
const $next = nextCell($cell, axis, dir);
|
|
1607
|
+
let newSel;
|
|
1608
|
+
if ($next) newSel = index.Selection.near($next, 1);
|
|
1609
|
+
else if (dir < 0)
|
|
1610
|
+
newSel = index.Selection.near(state.doc.resolve($cell.before(-1)), -1);
|
|
1611
|
+
else newSel = index.Selection.near(state.doc.resolve($cell.after(-1)), 1);
|
|
1612
|
+
return maybeSetSelection(state, dispatch, newSel);
|
|
1613
|
+
}
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
function shiftArrow(axis, dir) {
|
|
1617
|
+
return (state, dispatch, view) => {
|
|
1618
|
+
if (!view) return false;
|
|
1619
|
+
const sel = state.selection;
|
|
1620
|
+
let cellSel;
|
|
1621
|
+
if (sel instanceof CellSelection) {
|
|
1622
|
+
cellSel = sel;
|
|
1623
|
+
} else {
|
|
1624
|
+
const end = atEndOfCell(view, axis, dir);
|
|
1625
|
+
if (end == null) return false;
|
|
1626
|
+
cellSel = new CellSelection(state.doc.resolve(end));
|
|
1627
|
+
}
|
|
1628
|
+
const $head = nextCell(cellSel.$headCell, axis, dir);
|
|
1629
|
+
if (!$head) return false;
|
|
1630
|
+
return maybeSetSelection(
|
|
1631
|
+
state,
|
|
1632
|
+
dispatch,
|
|
1633
|
+
new CellSelection(cellSel.$anchorCell, $head)
|
|
1634
|
+
);
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
function handleTripleClick(view, pos) {
|
|
1638
|
+
const doc = view.state.doc, $cell = cellAround(doc.resolve(pos));
|
|
1639
|
+
if (!$cell) return false;
|
|
1640
|
+
view.dispatch(view.state.tr.setSelection(new CellSelection($cell)));
|
|
1641
|
+
return true;
|
|
1642
|
+
}
|
|
1643
|
+
function handlePaste(view, _, slice) {
|
|
1644
|
+
if (!isInTable(view.state)) return false;
|
|
1645
|
+
let cells = pastedCells(slice);
|
|
1646
|
+
const sel = view.state.selection;
|
|
1647
|
+
if (sel instanceof CellSelection) {
|
|
1648
|
+
if (!cells)
|
|
1649
|
+
cells = {
|
|
1650
|
+
width: 1,
|
|
1651
|
+
height: 1,
|
|
1652
|
+
rows: [
|
|
1653
|
+
index$2.Fragment.from(
|
|
1654
|
+
fitSlice(tableNodeTypes(view.state.schema).cell, slice)
|
|
1655
|
+
)
|
|
1656
|
+
]
|
|
1657
|
+
};
|
|
1658
|
+
const table = sel.$anchorCell.node(-1);
|
|
1659
|
+
const start = sel.$anchorCell.start(-1);
|
|
1660
|
+
const rect = TableMap.get(table).rectBetween(
|
|
1661
|
+
sel.$anchorCell.pos - start,
|
|
1662
|
+
sel.$headCell.pos - start
|
|
1663
|
+
);
|
|
1664
|
+
cells = clipCells(cells, rect.right - rect.left, rect.bottom - rect.top);
|
|
1665
|
+
insertCells(view.state, view.dispatch, start, rect, cells);
|
|
1666
|
+
return true;
|
|
1667
|
+
} else if (cells) {
|
|
1668
|
+
const $cell = selectionCell(view.state);
|
|
1669
|
+
const start = $cell.start(-1);
|
|
1670
|
+
insertCells(
|
|
1671
|
+
view.state,
|
|
1672
|
+
view.dispatch,
|
|
1673
|
+
start,
|
|
1674
|
+
TableMap.get($cell.node(-1)).findCell($cell.pos - start),
|
|
1675
|
+
cells
|
|
1676
|
+
);
|
|
1677
|
+
return true;
|
|
1678
|
+
} else {
|
|
1679
|
+
return false;
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
function handleMouseDown(view, startEvent) {
|
|
1683
|
+
var _a;
|
|
1684
|
+
if (startEvent.ctrlKey || startEvent.metaKey) return;
|
|
1685
|
+
const startDOMCell = domInCell(view, startEvent.target);
|
|
1686
|
+
let $anchor;
|
|
1687
|
+
if (startEvent.shiftKey && view.state.selection instanceof CellSelection) {
|
|
1688
|
+
setCellSelection(view.state.selection.$anchorCell, startEvent);
|
|
1689
|
+
startEvent.preventDefault();
|
|
1690
|
+
} else if (startEvent.shiftKey && startDOMCell && ($anchor = cellAround(view.state.selection.$anchor)) != null && ((_a = cellUnderMouse(view, startEvent)) == null ? void 0 : _a.pos) != $anchor.pos) {
|
|
1691
|
+
setCellSelection($anchor, startEvent);
|
|
1692
|
+
startEvent.preventDefault();
|
|
1693
|
+
} else if (!startDOMCell) {
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
function setCellSelection($anchor2, event) {
|
|
1697
|
+
let $head = cellUnderMouse(view, event);
|
|
1698
|
+
const starting = tableEditingKey.getState(view.state) == null;
|
|
1699
|
+
if (!$head || !inSameTable($anchor2, $head)) {
|
|
1700
|
+
if (starting) $head = $anchor2;
|
|
1701
|
+
else return;
|
|
1702
|
+
}
|
|
1703
|
+
const selection = new CellSelection($anchor2, $head);
|
|
1704
|
+
if (starting || !view.state.selection.eq(selection)) {
|
|
1705
|
+
const tr = view.state.tr.setSelection(selection);
|
|
1706
|
+
if (starting) tr.setMeta(tableEditingKey, $anchor2.pos);
|
|
1707
|
+
view.dispatch(tr);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
function stop() {
|
|
1711
|
+
view.root.removeEventListener("mouseup", stop);
|
|
1712
|
+
view.root.removeEventListener("dragstart", stop);
|
|
1713
|
+
view.root.removeEventListener("mousemove", move);
|
|
1714
|
+
if (tableEditingKey.getState(view.state) != null)
|
|
1715
|
+
view.dispatch(view.state.tr.setMeta(tableEditingKey, -1));
|
|
1716
|
+
}
|
|
1717
|
+
function move(_event) {
|
|
1718
|
+
const event = _event;
|
|
1719
|
+
const anchor = tableEditingKey.getState(view.state);
|
|
1720
|
+
let $anchor2;
|
|
1721
|
+
if (anchor != null) {
|
|
1722
|
+
$anchor2 = view.state.doc.resolve(anchor);
|
|
1723
|
+
} else if (domInCell(view, event.target) != startDOMCell) {
|
|
1724
|
+
$anchor2 = cellUnderMouse(view, startEvent);
|
|
1725
|
+
if (!$anchor2) return stop();
|
|
1726
|
+
}
|
|
1727
|
+
if ($anchor2) setCellSelection($anchor2, event);
|
|
1728
|
+
}
|
|
1729
|
+
view.root.addEventListener("mouseup", stop);
|
|
1730
|
+
view.root.addEventListener("dragstart", stop);
|
|
1731
|
+
view.root.addEventListener("mousemove", move);
|
|
1732
|
+
}
|
|
1733
|
+
function atEndOfCell(view, axis, dir) {
|
|
1734
|
+
if (!(view.state.selection instanceof index.TextSelection)) return null;
|
|
1735
|
+
const { $head } = view.state.selection;
|
|
1736
|
+
for (let d = $head.depth - 1; d >= 0; d--) {
|
|
1737
|
+
const parent = $head.node(d), index = dir < 0 ? $head.index(d) : $head.indexAfter(d);
|
|
1738
|
+
if (index != (dir < 0 ? 0 : parent.childCount)) return null;
|
|
1739
|
+
if (parent.type.spec.tableRole == "cell" || parent.type.spec.tableRole == "header_cell") {
|
|
1740
|
+
const cellPos = $head.before(d);
|
|
1741
|
+
const dirStr = axis == "vert" ? dir > 0 ? "down" : "up" : dir > 0 ? "right" : "left";
|
|
1742
|
+
return view.endOfTextblock(dirStr) ? cellPos : null;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
return null;
|
|
1746
|
+
}
|
|
1747
|
+
function domInCell(view, dom) {
|
|
1748
|
+
for (; dom && dom != view.dom; dom = dom.parentNode) {
|
|
1749
|
+
if (dom.nodeName == "TD" || dom.nodeName == "TH") {
|
|
1750
|
+
return dom;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
return null;
|
|
1754
|
+
}
|
|
1755
|
+
function cellUnderMouse(view, event) {
|
|
1756
|
+
const mousePos = view.posAtCoords({
|
|
1757
|
+
left: event.clientX,
|
|
1758
|
+
top: event.clientY
|
|
1759
|
+
});
|
|
1760
|
+
if (!mousePos) return null;
|
|
1761
|
+
return mousePos ? cellAround(view.state.doc.resolve(mousePos.pos)) : null;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
// src/tableview.ts
|
|
1765
|
+
var TableView = class {
|
|
1766
|
+
constructor(node, defaultCellMinWidth) {
|
|
1767
|
+
this.node = node;
|
|
1768
|
+
this.defaultCellMinWidth = defaultCellMinWidth;
|
|
1769
|
+
this.dom = document.createElement("div");
|
|
1770
|
+
this.dom.className = "tableWrapper";
|
|
1771
|
+
this.table = this.dom.appendChild(document.createElement("table"));
|
|
1772
|
+
this.table.style.setProperty(
|
|
1773
|
+
"--default-cell-min-width",
|
|
1774
|
+
`${defaultCellMinWidth}px`
|
|
1775
|
+
);
|
|
1776
|
+
this.colgroup = this.table.appendChild(document.createElement("colgroup"));
|
|
1777
|
+
updateColumnsOnResize(node, this.colgroup, this.table, defaultCellMinWidth);
|
|
1778
|
+
this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
1779
|
+
}
|
|
1780
|
+
update(node) {
|
|
1781
|
+
if (node.type != this.node.type) return false;
|
|
1782
|
+
this.node = node;
|
|
1783
|
+
updateColumnsOnResize(
|
|
1784
|
+
node,
|
|
1785
|
+
this.colgroup,
|
|
1786
|
+
this.table,
|
|
1787
|
+
this.defaultCellMinWidth
|
|
1788
|
+
);
|
|
1789
|
+
return true;
|
|
1790
|
+
}
|
|
1791
|
+
ignoreMutation(record) {
|
|
1792
|
+
return record.type == "attributes" && (record.target == this.table || this.colgroup.contains(record.target));
|
|
1793
|
+
}
|
|
1794
|
+
};
|
|
1795
|
+
function updateColumnsOnResize(node, colgroup, table, defaultCellMinWidth, overrideCol, overrideValue) {
|
|
1796
|
+
var _a;
|
|
1797
|
+
let totalWidth = 0;
|
|
1798
|
+
let fixedWidth = true;
|
|
1799
|
+
let nextDOM = colgroup.firstChild;
|
|
1800
|
+
const row = node.firstChild;
|
|
1801
|
+
if (!row) return;
|
|
1802
|
+
for (let i = 0, col = 0; i < row.childCount; i++) {
|
|
1803
|
+
const { colspan, colwidth } = row.child(i).attrs;
|
|
1804
|
+
for (let j = 0; j < colspan; j++, col++) {
|
|
1805
|
+
const hasWidth = overrideCol == col ? overrideValue : colwidth && colwidth[j];
|
|
1806
|
+
const cssWidth = hasWidth ? hasWidth + "px" : "";
|
|
1807
|
+
totalWidth += hasWidth || defaultCellMinWidth;
|
|
1808
|
+
if (!hasWidth) fixedWidth = false;
|
|
1809
|
+
if (!nextDOM) {
|
|
1810
|
+
const col2 = document.createElement("col");
|
|
1811
|
+
col2.style.width = cssWidth;
|
|
1812
|
+
colgroup.appendChild(col2);
|
|
1813
|
+
} else {
|
|
1814
|
+
if (nextDOM.style.width != cssWidth) {
|
|
1815
|
+
nextDOM.style.width = cssWidth;
|
|
1816
|
+
}
|
|
1817
|
+
nextDOM = nextDOM.nextSibling;
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
while (nextDOM) {
|
|
1822
|
+
const after = nextDOM.nextSibling;
|
|
1823
|
+
(_a = nextDOM.parentNode) == null ? void 0 : _a.removeChild(nextDOM);
|
|
1824
|
+
nextDOM = after;
|
|
1825
|
+
}
|
|
1826
|
+
if (fixedWidth) {
|
|
1827
|
+
table.style.width = totalWidth + "px";
|
|
1828
|
+
table.style.minWidth = "";
|
|
1829
|
+
} else {
|
|
1830
|
+
table.style.width = "";
|
|
1831
|
+
table.style.minWidth = totalWidth + "px";
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
// src/columnresizing.ts
|
|
1836
|
+
var columnResizingPluginKey = new index.PluginKey(
|
|
1837
|
+
"tableColumnResizing"
|
|
1838
|
+
);
|
|
1839
|
+
function columnResizing({
|
|
1840
|
+
handleWidth = 5,
|
|
1841
|
+
cellMinWidth = 25,
|
|
1842
|
+
defaultCellMinWidth = 100,
|
|
1843
|
+
View = TableView,
|
|
1844
|
+
lastColumnResizable = true
|
|
1845
|
+
} = {}) {
|
|
1846
|
+
const plugin = new index.Plugin({
|
|
1847
|
+
key: columnResizingPluginKey,
|
|
1848
|
+
state: {
|
|
1849
|
+
init(_, state) {
|
|
1850
|
+
var _a, _b;
|
|
1851
|
+
const nodeViews = (_b = (_a = plugin.spec) == null ? void 0 : _a.props) == null ? void 0 : _b.nodeViews;
|
|
1852
|
+
const tableName = tableNodeTypes(state.schema).table.name;
|
|
1853
|
+
if (View && nodeViews) {
|
|
1854
|
+
nodeViews[tableName] = (node, view) => {
|
|
1855
|
+
return new View(node, defaultCellMinWidth, view);
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
return new ResizeState(-1, false);
|
|
1859
|
+
},
|
|
1860
|
+
apply(tr, prev) {
|
|
1861
|
+
return prev.apply(tr);
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
props: {
|
|
1865
|
+
attributes: (state) => {
|
|
1866
|
+
const pluginState = columnResizingPluginKey.getState(state);
|
|
1867
|
+
return pluginState && pluginState.activeHandle > -1 ? { class: "resize-cursor" } : {};
|
|
1868
|
+
},
|
|
1869
|
+
handleDOMEvents: {
|
|
1870
|
+
mousemove: (view, event) => {
|
|
1871
|
+
handleMouseMove(view, event, handleWidth, lastColumnResizable);
|
|
1872
|
+
},
|
|
1873
|
+
mouseleave: (view) => {
|
|
1874
|
+
handleMouseLeave(view);
|
|
1875
|
+
},
|
|
1876
|
+
mousedown: (view, event) => {
|
|
1877
|
+
handleMouseDown2(view, event, cellMinWidth, defaultCellMinWidth);
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
decorations: (state) => {
|
|
1881
|
+
const pluginState = columnResizingPluginKey.getState(state);
|
|
1882
|
+
if (pluginState && pluginState.activeHandle > -1) {
|
|
1883
|
+
return handleDecorations(state, pluginState.activeHandle);
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
nodeViews: {}
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
return plugin;
|
|
1890
|
+
}
|
|
1891
|
+
var ResizeState = class _ResizeState {
|
|
1892
|
+
constructor(activeHandle, dragging) {
|
|
1893
|
+
this.activeHandle = activeHandle;
|
|
1894
|
+
this.dragging = dragging;
|
|
1895
|
+
}
|
|
1896
|
+
apply(tr) {
|
|
1897
|
+
const state = this;
|
|
1898
|
+
const action = tr.getMeta(columnResizingPluginKey);
|
|
1899
|
+
if (action && action.setHandle != null)
|
|
1900
|
+
return new _ResizeState(action.setHandle, false);
|
|
1901
|
+
if (action && action.setDragging !== void 0)
|
|
1902
|
+
return new _ResizeState(state.activeHandle, action.setDragging);
|
|
1903
|
+
if (state.activeHandle > -1 && tr.docChanged) {
|
|
1904
|
+
let handle = tr.mapping.map(state.activeHandle, -1);
|
|
1905
|
+
if (!pointsAtCell(tr.doc.resolve(handle))) {
|
|
1906
|
+
handle = -1;
|
|
1907
|
+
}
|
|
1908
|
+
return new _ResizeState(handle, state.dragging);
|
|
1909
|
+
}
|
|
1910
|
+
return state;
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
function handleMouseMove(view, event, handleWidth, lastColumnResizable) {
|
|
1914
|
+
if (!view.editable) return;
|
|
1915
|
+
const pluginState = columnResizingPluginKey.getState(view.state);
|
|
1916
|
+
if (!pluginState) return;
|
|
1917
|
+
if (!pluginState.dragging) {
|
|
1918
|
+
const target = domCellAround(event.target);
|
|
1919
|
+
let cell = -1;
|
|
1920
|
+
if (target) {
|
|
1921
|
+
const { left, right } = target.getBoundingClientRect();
|
|
1922
|
+
if (event.clientX - left <= handleWidth)
|
|
1923
|
+
cell = edgeCell(view, event, "left", handleWidth);
|
|
1924
|
+
else if (right - event.clientX <= handleWidth)
|
|
1925
|
+
cell = edgeCell(view, event, "right", handleWidth);
|
|
1926
|
+
}
|
|
1927
|
+
if (cell != pluginState.activeHandle) {
|
|
1928
|
+
if (!lastColumnResizable && cell !== -1) {
|
|
1929
|
+
const $cell = view.state.doc.resolve(cell);
|
|
1930
|
+
const table = $cell.node(-1);
|
|
1931
|
+
const map = TableMap.get(table);
|
|
1932
|
+
const tableStart = $cell.start(-1);
|
|
1933
|
+
const col = map.colCount($cell.pos - tableStart) + $cell.nodeAfter.attrs.colspan - 1;
|
|
1934
|
+
if (col == map.width - 1) {
|
|
1935
|
+
return;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
updateHandle(view, cell);
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
function handleMouseLeave(view) {
|
|
1943
|
+
if (!view.editable) return;
|
|
1944
|
+
const pluginState = columnResizingPluginKey.getState(view.state);
|
|
1945
|
+
if (pluginState && pluginState.activeHandle > -1 && !pluginState.dragging)
|
|
1946
|
+
updateHandle(view, -1);
|
|
1947
|
+
}
|
|
1948
|
+
function handleMouseDown2(view, event, cellMinWidth, defaultCellMinWidth) {
|
|
1949
|
+
var _a;
|
|
1950
|
+
if (!view.editable) return false;
|
|
1951
|
+
const win = (_a = view.dom.ownerDocument.defaultView) != null ? _a : window;
|
|
1952
|
+
const pluginState = columnResizingPluginKey.getState(view.state);
|
|
1953
|
+
if (!pluginState || pluginState.activeHandle == -1 || pluginState.dragging)
|
|
1954
|
+
return false;
|
|
1955
|
+
const cell = view.state.doc.nodeAt(pluginState.activeHandle);
|
|
1956
|
+
const width = currentColWidth(view, pluginState.activeHandle, cell.attrs);
|
|
1957
|
+
view.dispatch(
|
|
1958
|
+
view.state.tr.setMeta(columnResizingPluginKey, {
|
|
1959
|
+
setDragging: { startX: event.clientX, startWidth: width }
|
|
1960
|
+
})
|
|
1961
|
+
);
|
|
1962
|
+
function finish(event2) {
|
|
1963
|
+
win.removeEventListener("mouseup", finish);
|
|
1964
|
+
win.removeEventListener("mousemove", move);
|
|
1965
|
+
const pluginState2 = columnResizingPluginKey.getState(view.state);
|
|
1966
|
+
if (pluginState2 == null ? void 0 : pluginState2.dragging) {
|
|
1967
|
+
updateColumnWidth(
|
|
1968
|
+
view,
|
|
1969
|
+
pluginState2.activeHandle,
|
|
1970
|
+
draggedWidth(pluginState2.dragging, event2, cellMinWidth)
|
|
1971
|
+
);
|
|
1972
|
+
view.dispatch(
|
|
1973
|
+
view.state.tr.setMeta(columnResizingPluginKey, { setDragging: null })
|
|
1974
|
+
);
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
function move(event2) {
|
|
1978
|
+
if (!event2.which) return finish(event2);
|
|
1979
|
+
const pluginState2 = columnResizingPluginKey.getState(view.state);
|
|
1980
|
+
if (!pluginState2) return;
|
|
1981
|
+
if (pluginState2.dragging) {
|
|
1982
|
+
const dragged = draggedWidth(pluginState2.dragging, event2, cellMinWidth);
|
|
1983
|
+
displayColumnWidth(
|
|
1984
|
+
view,
|
|
1985
|
+
pluginState2.activeHandle,
|
|
1986
|
+
dragged,
|
|
1987
|
+
defaultCellMinWidth
|
|
1988
|
+
);
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
displayColumnWidth(
|
|
1992
|
+
view,
|
|
1993
|
+
pluginState.activeHandle,
|
|
1994
|
+
width,
|
|
1995
|
+
defaultCellMinWidth
|
|
1996
|
+
);
|
|
1997
|
+
win.addEventListener("mouseup", finish);
|
|
1998
|
+
win.addEventListener("mousemove", move);
|
|
1999
|
+
event.preventDefault();
|
|
2000
|
+
return true;
|
|
2001
|
+
}
|
|
2002
|
+
function currentColWidth(view, cellPos, { colspan, colwidth }) {
|
|
2003
|
+
const width = colwidth && colwidth[colwidth.length - 1];
|
|
2004
|
+
if (width) return width;
|
|
2005
|
+
const dom = view.domAtPos(cellPos);
|
|
2006
|
+
const node = dom.node.childNodes[dom.offset];
|
|
2007
|
+
let domWidth = node.offsetWidth, parts = colspan;
|
|
2008
|
+
if (colwidth) {
|
|
2009
|
+
for (let i = 0; i < colspan; i++)
|
|
2010
|
+
if (colwidth[i]) {
|
|
2011
|
+
domWidth -= colwidth[i];
|
|
2012
|
+
parts--;
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
return domWidth / parts;
|
|
2016
|
+
}
|
|
2017
|
+
function domCellAround(target) {
|
|
2018
|
+
while (target && target.nodeName != "TD" && target.nodeName != "TH")
|
|
2019
|
+
target = target.classList && target.classList.contains("ProseMirror") ? null : target.parentNode;
|
|
2020
|
+
return target;
|
|
2021
|
+
}
|
|
2022
|
+
function edgeCell(view, event, side, handleWidth) {
|
|
2023
|
+
const offset = side == "right" ? -handleWidth : handleWidth;
|
|
2024
|
+
const found = view.posAtCoords({
|
|
2025
|
+
left: event.clientX + offset,
|
|
2026
|
+
top: event.clientY
|
|
2027
|
+
});
|
|
2028
|
+
if (!found) return -1;
|
|
2029
|
+
const { pos } = found;
|
|
2030
|
+
const $cell = cellAround(view.state.doc.resolve(pos));
|
|
2031
|
+
if (!$cell) return -1;
|
|
2032
|
+
if (side == "right") return $cell.pos;
|
|
2033
|
+
const map = TableMap.get($cell.node(-1)), start = $cell.start(-1);
|
|
2034
|
+
const index = map.map.indexOf($cell.pos - start);
|
|
2035
|
+
return index % map.width == 0 ? -1 : start + map.map[index - 1];
|
|
2036
|
+
}
|
|
2037
|
+
function draggedWidth(dragging, event, resizeMinWidth) {
|
|
2038
|
+
const offset = event.clientX - dragging.startX;
|
|
2039
|
+
return Math.max(resizeMinWidth, dragging.startWidth + offset);
|
|
2040
|
+
}
|
|
2041
|
+
function updateHandle(view, value) {
|
|
2042
|
+
view.dispatch(
|
|
2043
|
+
view.state.tr.setMeta(columnResizingPluginKey, { setHandle: value })
|
|
2044
|
+
);
|
|
2045
|
+
}
|
|
2046
|
+
function updateColumnWidth(view, cell, width) {
|
|
2047
|
+
const $cell = view.state.doc.resolve(cell);
|
|
2048
|
+
const table = $cell.node(-1), map = TableMap.get(table), start = $cell.start(-1);
|
|
2049
|
+
const col = map.colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
|
|
2050
|
+
const tr = view.state.tr;
|
|
2051
|
+
for (let row = 0; row < map.height; row++) {
|
|
2052
|
+
const mapIndex = row * map.width + col;
|
|
2053
|
+
if (row && map.map[mapIndex] == map.map[mapIndex - map.width]) continue;
|
|
2054
|
+
const pos = map.map[mapIndex];
|
|
2055
|
+
const attrs = table.nodeAt(pos).attrs;
|
|
2056
|
+
const index = attrs.colspan == 1 ? 0 : col - map.colCount(pos);
|
|
2057
|
+
if (attrs.colwidth && attrs.colwidth[index] == width) continue;
|
|
2058
|
+
const colwidth = attrs.colwidth ? attrs.colwidth.slice() : zeroes(attrs.colspan);
|
|
2059
|
+
colwidth[index] = width;
|
|
2060
|
+
tr.setNodeMarkup(start + pos, null, { ...attrs, colwidth });
|
|
2061
|
+
}
|
|
2062
|
+
if (tr.docChanged) view.dispatch(tr);
|
|
2063
|
+
}
|
|
2064
|
+
function displayColumnWidth(view, cell, width, defaultCellMinWidth) {
|
|
2065
|
+
const $cell = view.state.doc.resolve(cell);
|
|
2066
|
+
const table = $cell.node(-1), start = $cell.start(-1);
|
|
2067
|
+
const col = TableMap.get(table).colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
|
|
2068
|
+
let dom = view.domAtPos($cell.start(-1)).node;
|
|
2069
|
+
while (dom && dom.nodeName != "TABLE") {
|
|
2070
|
+
dom = dom.parentNode;
|
|
2071
|
+
}
|
|
2072
|
+
if (!dom) return;
|
|
2073
|
+
updateColumnsOnResize(
|
|
2074
|
+
table,
|
|
2075
|
+
dom.firstChild,
|
|
2076
|
+
dom,
|
|
2077
|
+
defaultCellMinWidth,
|
|
2078
|
+
col,
|
|
2079
|
+
width
|
|
2080
|
+
);
|
|
2081
|
+
}
|
|
2082
|
+
function zeroes(n) {
|
|
2083
|
+
return Array(n).fill(0);
|
|
2084
|
+
}
|
|
2085
|
+
function handleDecorations(state, cell) {
|
|
2086
|
+
var _a;
|
|
2087
|
+
const decorations = [];
|
|
2088
|
+
const $cell = state.doc.resolve(cell);
|
|
2089
|
+
const table = $cell.node(-1);
|
|
2090
|
+
if (!table) {
|
|
2091
|
+
return index$3.DecorationSet.empty;
|
|
2092
|
+
}
|
|
2093
|
+
const map = TableMap.get(table);
|
|
2094
|
+
const start = $cell.start(-1);
|
|
2095
|
+
const col = map.colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
|
|
2096
|
+
for (let row = 0; row < map.height; row++) {
|
|
2097
|
+
const index = col + row * map.width;
|
|
2098
|
+
if ((col == map.width - 1 || map.map[index] != map.map[index + 1]) && (row == 0 || map.map[index] != map.map[index - map.width])) {
|
|
2099
|
+
const cellPos = map.map[index];
|
|
2100
|
+
const pos = start + cellPos + table.nodeAt(cellPos).nodeSize - 1;
|
|
2101
|
+
const dom = document.createElement("div");
|
|
2102
|
+
dom.className = "column-resize-handle";
|
|
2103
|
+
if ((_a = columnResizingPluginKey.getState(state)) == null ? void 0 : _a.dragging) {
|
|
2104
|
+
decorations.push(
|
|
2105
|
+
index$3.Decoration.node(
|
|
2106
|
+
start + cellPos,
|
|
2107
|
+
start + cellPos + table.nodeAt(cellPos).nodeSize,
|
|
2108
|
+
{
|
|
2109
|
+
class: "column-resize-dragging"
|
|
2110
|
+
}
|
|
2111
|
+
)
|
|
2112
|
+
);
|
|
2113
|
+
}
|
|
2114
|
+
decorations.push(index$3.Decoration.widget(pos, dom));
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
return index$3.DecorationSet.create(state.doc, decorations);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
// src/index.ts
|
|
2121
|
+
function tableEditing({
|
|
2122
|
+
allowTableNodeSelection = false
|
|
2123
|
+
} = {}) {
|
|
2124
|
+
return new index.Plugin({
|
|
2125
|
+
key: tableEditingKey,
|
|
2126
|
+
// This piece of state is used to remember when a mouse-drag
|
|
2127
|
+
// cell-selection is happening, so that it can continue even as
|
|
2128
|
+
// transactions (which might move its anchor cell) come in.
|
|
2129
|
+
state: {
|
|
2130
|
+
init() {
|
|
2131
|
+
return null;
|
|
2132
|
+
},
|
|
2133
|
+
apply(tr, cur) {
|
|
2134
|
+
const set = tr.getMeta(tableEditingKey);
|
|
2135
|
+
if (set != null) return set == -1 ? null : set;
|
|
2136
|
+
if (cur == null || !tr.docChanged) return cur;
|
|
2137
|
+
const { deleted, pos } = tr.mapping.mapResult(cur);
|
|
2138
|
+
return deleted ? null : pos;
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
props: {
|
|
2142
|
+
decorations: drawCellSelection,
|
|
2143
|
+
handleDOMEvents: {
|
|
2144
|
+
mousedown: handleMouseDown
|
|
2145
|
+
},
|
|
2146
|
+
createSelectionBetween(view) {
|
|
2147
|
+
return tableEditingKey.getState(view.state) != null ? view.state.selection : null;
|
|
2148
|
+
},
|
|
2149
|
+
handleTripleClick,
|
|
2150
|
+
handleKeyDown,
|
|
2151
|
+
handlePaste
|
|
2152
|
+
},
|
|
2153
|
+
appendTransaction(_, oldState, state) {
|
|
2154
|
+
return normalizeSelection(
|
|
2155
|
+
state,
|
|
2156
|
+
fixTables(state, oldState),
|
|
2157
|
+
allowTableNodeSelection
|
|
2158
|
+
);
|
|
2159
|
+
}
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
exports.CellBookmark = CellBookmark;
|
|
2164
|
+
exports.CellSelection = CellSelection;
|
|
2165
|
+
exports.ResizeState = ResizeState;
|
|
2166
|
+
exports.TableMap = TableMap;
|
|
2167
|
+
exports.TableView = TableView;
|
|
2168
|
+
exports.__clipCells = clipCells;
|
|
2169
|
+
exports.__insertCells = insertCells;
|
|
2170
|
+
exports.__pastedCells = pastedCells;
|
|
2171
|
+
exports.addColSpan = addColSpan;
|
|
2172
|
+
exports.addColumn = addColumn;
|
|
2173
|
+
exports.addColumnAfter = addColumnAfter;
|
|
2174
|
+
exports.addColumnBefore = addColumnBefore;
|
|
2175
|
+
exports.addRow = addRow;
|
|
2176
|
+
exports.addRowAfter = addRowAfter;
|
|
2177
|
+
exports.addRowBefore = addRowBefore;
|
|
2178
|
+
exports.cellAround = cellAround;
|
|
2179
|
+
exports.cellNear = cellNear;
|
|
2180
|
+
exports.columnIsHeader = columnIsHeader;
|
|
2181
|
+
exports.columnResizing = columnResizing;
|
|
2182
|
+
exports.columnResizingPluginKey = columnResizingPluginKey;
|
|
2183
|
+
exports.deleteCellSelection = deleteCellSelection;
|
|
2184
|
+
exports.deleteColumn = deleteColumn;
|
|
2185
|
+
exports.deleteRow = deleteRow;
|
|
2186
|
+
exports.deleteTable = deleteTable;
|
|
2187
|
+
exports.fixTables = fixTables;
|
|
2188
|
+
exports.fixTablesKey = fixTablesKey;
|
|
2189
|
+
exports.goToNextCell = goToNextCell;
|
|
2190
|
+
exports.handlePaste = handlePaste;
|
|
2191
|
+
exports.inSameTable = inSameTable;
|
|
2192
|
+
exports.isInTable = isInTable;
|
|
2193
|
+
exports.mergeCells = mergeCells;
|
|
2194
|
+
exports.moveCellForward = moveCellForward;
|
|
2195
|
+
exports.nextCell = nextCell;
|
|
2196
|
+
exports.pointsAtCell = pointsAtCell;
|
|
2197
|
+
exports.removeColSpan = removeColSpan;
|
|
2198
|
+
exports.removeColumn = removeColumn;
|
|
2199
|
+
exports.removeRow = removeRow;
|
|
2200
|
+
exports.rowIsHeader = rowIsHeader;
|
|
2201
|
+
exports.selectedRect = selectedRect;
|
|
2202
|
+
exports.selectionCell = selectionCell;
|
|
2203
|
+
exports.setCellAttr = setCellAttr;
|
|
2204
|
+
exports.splitCell = splitCell;
|
|
2205
|
+
exports.splitCellWithType = splitCellWithType;
|
|
2206
|
+
exports.tableEditing = tableEditing;
|
|
2207
|
+
exports.tableEditingKey = tableEditingKey;
|
|
2208
|
+
exports.tableNodeTypes = tableNodeTypes;
|
|
2209
|
+
exports.toggleHeader = toggleHeader;
|
|
2210
|
+
exports.toggleHeaderCell = toggleHeaderCell;
|
|
2211
|
+
exports.updateColumnsOnResize = updateColumnsOnResize;
|