@btst/stack 1.9.1 → 1.11.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/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 +3 -3
- 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 +3 -3
- 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 +8 -2
- package/dist/packages/ui/src/components/dialog.mjs +6 -1
- 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/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 +168 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +157 -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 +5 -5
- 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 +276 -0
- package/dist/packages/ui/src/components/ui-builder/index.mjs +264 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +298 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +292 -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 +410 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +404 -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 +21 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +19 -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 +558 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +543 -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/draggable-new-component.cjs +67 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/draggable-new-component.mjs +62 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +300 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +293 -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 +214 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +212 -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 +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +64 -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 +281 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +275 -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 +227 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +224 -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 +164 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +162 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +119 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +112 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +22 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +17 -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 +47 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +44 -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 +92 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +90 -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 +43 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +41 -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 +284 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +275 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +39 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +37 -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 +430 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +427 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +327 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +312 -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 +42 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +34 -0
- package/dist/plugins/blog/api/index.d.cts +1 -1
- package/dist/plugins/blog/api/index.d.mts +1 -1
- package/dist/plugins/blog/api/index.d.ts +1 -1
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +1 -1
- package/dist/plugins/blog/client/index.d.mts +1 -1
- package/dist/plugins/blog/client/index.d.ts +1 -1
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/api/index.d.cts +1 -1
- package/dist/plugins/cms/api/index.d.mts +1 -1
- package/dist/plugins/cms/api/index.d.ts +1 -1
- 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 +1 -1
- package/dist/plugins/cms/client/index.d.mts +1 -1
- package/dist/plugins/cms/client/index.d.ts +1 -1
- 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/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 +1 -1
- package/dist/plugins/form-builder/client/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/index.d.ts +1 -1
- 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 +359 -0
- package/dist/plugins/ui-builder/client/index.d.mts +359 -0
- package/dist/plugins/ui-builder/client/index.d.ts +359 -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.DGjhPqmF.d.mts → stack.8nldKomx.d.cts} +1 -1
- package/dist/shared/{stack.DGjhPqmF.d.ts → stack.8nldKomx.d.mts} +1 -1
- package/dist/shared/{stack.DGjhPqmF.d.cts → stack.8nldKomx.d.ts} +1 -1
- package/dist/shared/stack.BYysGdHl.d.cts +116 -0
- package/dist/shared/stack.BdJFrdyt.d.cts +48 -0
- package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.mts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.ts} +1 -1
- package/dist/shared/stack.ChVuHi5e.d.mts +48 -0
- package/dist/shared/stack.DYCFcnkL.d.mts +116 -0
- package/dist/shared/stack.EhM4pmtN.d.ts +48 -0
- package/dist/shared/stack.kFbDspnF.d.ts +116 -0
- package/package.json +54 -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/shared/{stack.CcI4sYJP.d.cts → stack.DLhzx1-D.d.cts} +1 -1
- package/dist/shared/{stack.CcI4sYJP.d.mts → stack.DLhzx1-D.d.mts} +1 -1
- package/dist/shared/{stack.CcI4sYJP.d.ts → stack.DLhzx1-D.d.ts} +1 -1
|
@@ -0,0 +1,2418 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopNamespaceCompat(e) {
|
|
6
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
7
|
+
const n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
for (const k in e) {
|
|
10
|
+
n[k] = e[k];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
n.default = e;
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
18
|
+
|
|
19
|
+
const isBrowser = typeof window !== "undefined";
|
|
20
|
+
|
|
21
|
+
// The "contextmenu" event is not supported as a PointerEvent in all browsers yet, so MouseEvent still need to be handled
|
|
22
|
+
|
|
23
|
+
const PanelGroupContext = React.createContext(null);
|
|
24
|
+
PanelGroupContext.displayName = "PanelGroupContext";
|
|
25
|
+
|
|
26
|
+
const DATA_ATTRIBUTES = {
|
|
27
|
+
group: "data-panel-group",
|
|
28
|
+
groupDirection: "data-panel-group-direction",
|
|
29
|
+
groupId: "data-panel-group-id",
|
|
30
|
+
panel: "data-panel",
|
|
31
|
+
panelCollapsible: "data-panel-collapsible",
|
|
32
|
+
panelId: "data-panel-id",
|
|
33
|
+
panelSize: "data-panel-size",
|
|
34
|
+
resizeHandle: "data-resize-handle",
|
|
35
|
+
resizeHandleActive: "data-resize-handle-active",
|
|
36
|
+
resizeHandleEnabled: "data-panel-resize-handle-enabled",
|
|
37
|
+
resizeHandleId: "data-panel-resize-handle-id",
|
|
38
|
+
resizeHandleState: "data-resize-handle-state"
|
|
39
|
+
};
|
|
40
|
+
const PRECISION = 10;
|
|
41
|
+
|
|
42
|
+
const useIsomorphicLayoutEffect = isBrowser ? React.useLayoutEffect : () => {};
|
|
43
|
+
|
|
44
|
+
const useId = React__namespace["useId".toString()];
|
|
45
|
+
const wrappedUseId = typeof useId === "function" ? useId : () => null;
|
|
46
|
+
let counter = 0;
|
|
47
|
+
function useUniqueId(idFromParams = null) {
|
|
48
|
+
const idFromUseId = wrappedUseId();
|
|
49
|
+
const idRef = React.useRef(idFromParams || idFromUseId || null);
|
|
50
|
+
if (idRef.current === null) {
|
|
51
|
+
idRef.current = "" + counter++;
|
|
52
|
+
}
|
|
53
|
+
return idFromParams !== null && idFromParams !== void 0 ? idFromParams : idRef.current;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function PanelWithForwardedRef({
|
|
57
|
+
children,
|
|
58
|
+
className: classNameFromProps = "",
|
|
59
|
+
collapsedSize,
|
|
60
|
+
collapsible,
|
|
61
|
+
defaultSize,
|
|
62
|
+
forwardedRef,
|
|
63
|
+
id: idFromProps,
|
|
64
|
+
maxSize,
|
|
65
|
+
minSize,
|
|
66
|
+
onCollapse,
|
|
67
|
+
onExpand,
|
|
68
|
+
onResize,
|
|
69
|
+
order,
|
|
70
|
+
style: styleFromProps,
|
|
71
|
+
tagName: Type = "div",
|
|
72
|
+
...rest
|
|
73
|
+
}) {
|
|
74
|
+
const context = React.useContext(PanelGroupContext);
|
|
75
|
+
if (context === null) {
|
|
76
|
+
throw Error(`Panel components must be rendered within a PanelGroup container`);
|
|
77
|
+
}
|
|
78
|
+
const {
|
|
79
|
+
collapsePanel,
|
|
80
|
+
expandPanel,
|
|
81
|
+
getPanelSize,
|
|
82
|
+
getPanelStyle,
|
|
83
|
+
groupId,
|
|
84
|
+
isPanelCollapsed,
|
|
85
|
+
reevaluatePanelConstraints,
|
|
86
|
+
registerPanel,
|
|
87
|
+
resizePanel,
|
|
88
|
+
unregisterPanel
|
|
89
|
+
} = context;
|
|
90
|
+
const panelId = useUniqueId(idFromProps);
|
|
91
|
+
const panelDataRef = React.useRef({
|
|
92
|
+
callbacks: {
|
|
93
|
+
onCollapse,
|
|
94
|
+
onExpand,
|
|
95
|
+
onResize
|
|
96
|
+
},
|
|
97
|
+
constraints: {
|
|
98
|
+
collapsedSize,
|
|
99
|
+
collapsible,
|
|
100
|
+
defaultSize,
|
|
101
|
+
maxSize,
|
|
102
|
+
minSize
|
|
103
|
+
},
|
|
104
|
+
id: panelId,
|
|
105
|
+
idIsFromProps: idFromProps !== undefined,
|
|
106
|
+
order
|
|
107
|
+
});
|
|
108
|
+
React.useRef({
|
|
109
|
+
didLogMissingDefaultSizeWarning: false
|
|
110
|
+
});
|
|
111
|
+
useIsomorphicLayoutEffect(() => {
|
|
112
|
+
const {
|
|
113
|
+
callbacks,
|
|
114
|
+
constraints
|
|
115
|
+
} = panelDataRef.current;
|
|
116
|
+
const prevConstraints = {
|
|
117
|
+
...constraints
|
|
118
|
+
};
|
|
119
|
+
panelDataRef.current.id = panelId;
|
|
120
|
+
panelDataRef.current.idIsFromProps = idFromProps !== undefined;
|
|
121
|
+
panelDataRef.current.order = order;
|
|
122
|
+
callbacks.onCollapse = onCollapse;
|
|
123
|
+
callbacks.onExpand = onExpand;
|
|
124
|
+
callbacks.onResize = onResize;
|
|
125
|
+
constraints.collapsedSize = collapsedSize;
|
|
126
|
+
constraints.collapsible = collapsible;
|
|
127
|
+
constraints.defaultSize = defaultSize;
|
|
128
|
+
constraints.maxSize = maxSize;
|
|
129
|
+
constraints.minSize = minSize;
|
|
130
|
+
|
|
131
|
+
// If constraints have changed, we should revisit panel sizes.
|
|
132
|
+
// This is uncommon but may happen if people are trying to implement pixel based constraints.
|
|
133
|
+
if (prevConstraints.collapsedSize !== constraints.collapsedSize || prevConstraints.collapsible !== constraints.collapsible || prevConstraints.maxSize !== constraints.maxSize || prevConstraints.minSize !== constraints.minSize) {
|
|
134
|
+
reevaluatePanelConstraints(panelDataRef.current, prevConstraints);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
useIsomorphicLayoutEffect(() => {
|
|
138
|
+
const panelData = panelDataRef.current;
|
|
139
|
+
registerPanel(panelData);
|
|
140
|
+
return () => {
|
|
141
|
+
unregisterPanel(panelData);
|
|
142
|
+
};
|
|
143
|
+
}, [order, panelId, registerPanel, unregisterPanel]);
|
|
144
|
+
React.useImperativeHandle(forwardedRef, () => ({
|
|
145
|
+
collapse: () => {
|
|
146
|
+
collapsePanel(panelDataRef.current);
|
|
147
|
+
},
|
|
148
|
+
expand: minSize => {
|
|
149
|
+
expandPanel(panelDataRef.current, minSize);
|
|
150
|
+
},
|
|
151
|
+
getId() {
|
|
152
|
+
return panelId;
|
|
153
|
+
},
|
|
154
|
+
getSize() {
|
|
155
|
+
return getPanelSize(panelDataRef.current);
|
|
156
|
+
},
|
|
157
|
+
isCollapsed() {
|
|
158
|
+
return isPanelCollapsed(panelDataRef.current);
|
|
159
|
+
},
|
|
160
|
+
isExpanded() {
|
|
161
|
+
return !isPanelCollapsed(panelDataRef.current);
|
|
162
|
+
},
|
|
163
|
+
resize: size => {
|
|
164
|
+
resizePanel(panelDataRef.current, size);
|
|
165
|
+
}
|
|
166
|
+
}), [collapsePanel, expandPanel, getPanelSize, isPanelCollapsed, panelId, resizePanel]);
|
|
167
|
+
const style = getPanelStyle(panelDataRef.current, defaultSize);
|
|
168
|
+
return React.createElement(Type, {
|
|
169
|
+
...rest,
|
|
170
|
+
children,
|
|
171
|
+
className: classNameFromProps,
|
|
172
|
+
id: panelId,
|
|
173
|
+
style: {
|
|
174
|
+
...style,
|
|
175
|
+
...styleFromProps
|
|
176
|
+
},
|
|
177
|
+
// CSS selectors
|
|
178
|
+
[DATA_ATTRIBUTES.groupId]: groupId,
|
|
179
|
+
[DATA_ATTRIBUTES.panel]: "",
|
|
180
|
+
[DATA_ATTRIBUTES.panelCollapsible]: collapsible || undefined,
|
|
181
|
+
[DATA_ATTRIBUTES.panelId]: panelId,
|
|
182
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + style.flexGrow).toFixed(1)
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
const Panel = React.forwardRef((props, ref) => React.createElement(PanelWithForwardedRef, {
|
|
186
|
+
...props,
|
|
187
|
+
forwardedRef: ref
|
|
188
|
+
}));
|
|
189
|
+
PanelWithForwardedRef.displayName = "Panel";
|
|
190
|
+
Panel.displayName = "forwardRef(Panel)";
|
|
191
|
+
|
|
192
|
+
let currentCursorStyle = null;
|
|
193
|
+
let prevRuleIndex = -1;
|
|
194
|
+
let styleElement = null;
|
|
195
|
+
function getCursorStyle(state, constraintFlags) {
|
|
196
|
+
if (constraintFlags) {
|
|
197
|
+
const horizontalMin = (constraintFlags & EXCEEDED_HORIZONTAL_MIN) !== 0;
|
|
198
|
+
const horizontalMax = (constraintFlags & EXCEEDED_HORIZONTAL_MAX) !== 0;
|
|
199
|
+
const verticalMin = (constraintFlags & EXCEEDED_VERTICAL_MIN) !== 0;
|
|
200
|
+
const verticalMax = (constraintFlags & EXCEEDED_VERTICAL_MAX) !== 0;
|
|
201
|
+
if (horizontalMin) {
|
|
202
|
+
if (verticalMin) {
|
|
203
|
+
return "se-resize";
|
|
204
|
+
} else if (verticalMax) {
|
|
205
|
+
return "ne-resize";
|
|
206
|
+
} else {
|
|
207
|
+
return "e-resize";
|
|
208
|
+
}
|
|
209
|
+
} else if (horizontalMax) {
|
|
210
|
+
if (verticalMin) {
|
|
211
|
+
return "sw-resize";
|
|
212
|
+
} else if (verticalMax) {
|
|
213
|
+
return "nw-resize";
|
|
214
|
+
} else {
|
|
215
|
+
return "w-resize";
|
|
216
|
+
}
|
|
217
|
+
} else if (verticalMin) {
|
|
218
|
+
return "s-resize";
|
|
219
|
+
} else if (verticalMax) {
|
|
220
|
+
return "n-resize";
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
switch (state) {
|
|
224
|
+
case "horizontal":
|
|
225
|
+
return "ew-resize";
|
|
226
|
+
case "intersection":
|
|
227
|
+
return "move";
|
|
228
|
+
case "vertical":
|
|
229
|
+
return "ns-resize";
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function resetGlobalCursorStyle() {
|
|
233
|
+
if (styleElement !== null) {
|
|
234
|
+
document.head.removeChild(styleElement);
|
|
235
|
+
currentCursorStyle = null;
|
|
236
|
+
styleElement = null;
|
|
237
|
+
prevRuleIndex = -1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function setGlobalCursorStyle(state, constraintFlags) {
|
|
241
|
+
var _styleElement$sheet$i, _styleElement$sheet2;
|
|
242
|
+
const style = getCursorStyle(state, constraintFlags);
|
|
243
|
+
if (currentCursorStyle === style) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
currentCursorStyle = style;
|
|
247
|
+
if (styleElement === null) {
|
|
248
|
+
styleElement = document.createElement("style");
|
|
249
|
+
document.head.appendChild(styleElement);
|
|
250
|
+
}
|
|
251
|
+
if (prevRuleIndex >= 0) {
|
|
252
|
+
var _styleElement$sheet;
|
|
253
|
+
(_styleElement$sheet = styleElement.sheet) === null || _styleElement$sheet === void 0 ? void 0 : _styleElement$sheet.removeRule(prevRuleIndex);
|
|
254
|
+
}
|
|
255
|
+
prevRuleIndex = (_styleElement$sheet$i = (_styleElement$sheet2 = styleElement.sheet) === null || _styleElement$sheet2 === void 0 ? void 0 : _styleElement$sheet2.insertRule(`*{cursor: ${style} !important;}`)) !== null && _styleElement$sheet$i !== void 0 ? _styleElement$sheet$i : -1;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
function isKeyDown(event) {
|
|
259
|
+
return event.type === "keydown";
|
|
260
|
+
}
|
|
261
|
+
function isPointerEvent(event) {
|
|
262
|
+
return event.type.startsWith("pointer");
|
|
263
|
+
}
|
|
264
|
+
function isMouseEvent(event) {
|
|
265
|
+
return event.type.startsWith("mouse");
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function getResizeEventCoordinates(event) {
|
|
269
|
+
if (isPointerEvent(event)) {
|
|
270
|
+
if (event.isPrimary) {
|
|
271
|
+
return {
|
|
272
|
+
x: event.clientX,
|
|
273
|
+
y: event.clientY
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
} else if (isMouseEvent(event)) {
|
|
277
|
+
return {
|
|
278
|
+
x: event.clientX,
|
|
279
|
+
y: event.clientY
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
return {
|
|
283
|
+
x: Infinity,
|
|
284
|
+
y: Infinity
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function getInputType() {
|
|
289
|
+
if (typeof matchMedia === "function") {
|
|
290
|
+
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function intersects(rectOne, rectTwo, strict) {
|
|
295
|
+
{
|
|
296
|
+
return rectOne.x < rectTwo.x + rectTwo.width && rectOne.x + rectOne.width > rectTwo.x && rectOne.y < rectTwo.y + rectTwo.height && rectOne.y + rectOne.height > rectTwo.y;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// Forked from NPM stacking-order@2.0.0
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Determine which of two nodes appears in front of the other —
|
|
304
|
+
* if `a` is in front, returns 1, otherwise returns -1
|
|
305
|
+
* @param {HTMLElement | SVGElement} a
|
|
306
|
+
* @param {HTMLElement | SVGElement} b
|
|
307
|
+
*/
|
|
308
|
+
function compare(a, b) {
|
|
309
|
+
if (a === b) throw new Error("Cannot compare node with itself");
|
|
310
|
+
const ancestors = {
|
|
311
|
+
a: get_ancestors(a),
|
|
312
|
+
b: get_ancestors(b)
|
|
313
|
+
};
|
|
314
|
+
let common_ancestor;
|
|
315
|
+
|
|
316
|
+
// remove shared ancestors
|
|
317
|
+
while (ancestors.a.at(-1) === ancestors.b.at(-1)) {
|
|
318
|
+
a = ancestors.a.pop();
|
|
319
|
+
b = ancestors.b.pop();
|
|
320
|
+
common_ancestor = a;
|
|
321
|
+
}
|
|
322
|
+
assert(common_ancestor, "Stacking order can only be calculated for elements with a common ancestor");
|
|
323
|
+
const z_indexes = {
|
|
324
|
+
a: get_z_index(find_stacking_context(ancestors.a)),
|
|
325
|
+
b: get_z_index(find_stacking_context(ancestors.b))
|
|
326
|
+
};
|
|
327
|
+
if (z_indexes.a === z_indexes.b) {
|
|
328
|
+
const children = common_ancestor.childNodes;
|
|
329
|
+
const furthest_ancestors = {
|
|
330
|
+
a: ancestors.a.at(-1),
|
|
331
|
+
b: ancestors.b.at(-1)
|
|
332
|
+
};
|
|
333
|
+
let i = children.length;
|
|
334
|
+
while (i--) {
|
|
335
|
+
const child = children[i];
|
|
336
|
+
if (child === furthest_ancestors.a) return 1;
|
|
337
|
+
if (child === furthest_ancestors.b) return -1;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return Math.sign(z_indexes.a - z_indexes.b);
|
|
341
|
+
}
|
|
342
|
+
const props = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
343
|
+
|
|
344
|
+
/** @param {HTMLElement | SVGElement} node */
|
|
345
|
+
function is_flex_item(node) {
|
|
346
|
+
var _get_parent;
|
|
347
|
+
// @ts-ignore
|
|
348
|
+
const display = getComputedStyle((_get_parent = get_parent(node)) !== null && _get_parent !== void 0 ? _get_parent : node).display;
|
|
349
|
+
return display === "flex" || display === "inline-flex";
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/** @param {HTMLElement | SVGElement} node */
|
|
353
|
+
function creates_stacking_context(node) {
|
|
354
|
+
const style = getComputedStyle(node);
|
|
355
|
+
|
|
356
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
357
|
+
if (style.position === "fixed") return true;
|
|
358
|
+
// Forked to fix upstream bug https://github.com/Rich-Harris/stacking-order/issues/3
|
|
359
|
+
// if (
|
|
360
|
+
// (style.zIndex !== "auto" && style.position !== "static") ||
|
|
361
|
+
// is_flex_item(node)
|
|
362
|
+
// )
|
|
363
|
+
if (style.zIndex !== "auto" && (style.position !== "static" || is_flex_item(node))) return true;
|
|
364
|
+
if (+style.opacity < 1) return true;
|
|
365
|
+
if ("transform" in style && style.transform !== "none") return true;
|
|
366
|
+
if ("webkitTransform" in style && style.webkitTransform !== "none") return true;
|
|
367
|
+
if ("mixBlendMode" in style && style.mixBlendMode !== "normal") return true;
|
|
368
|
+
if ("filter" in style && style.filter !== "none") return true;
|
|
369
|
+
if ("webkitFilter" in style && style.webkitFilter !== "none") return true;
|
|
370
|
+
if ("isolation" in style && style.isolation === "isolate") return true;
|
|
371
|
+
if (props.test(style.willChange)) return true;
|
|
372
|
+
// @ts-expect-error
|
|
373
|
+
if (style.webkitOverflowScrolling === "touch") return true;
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** @param {(HTMLElement| SVGElement)[]} nodes */
|
|
378
|
+
function find_stacking_context(nodes) {
|
|
379
|
+
let i = nodes.length;
|
|
380
|
+
while (i--) {
|
|
381
|
+
const node = nodes[i];
|
|
382
|
+
assert(node, "Missing node");
|
|
383
|
+
if (creates_stacking_context(node)) return node;
|
|
384
|
+
}
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/** @param {HTMLElement | SVGElement} node */
|
|
389
|
+
function get_z_index(node) {
|
|
390
|
+
return node && Number(getComputedStyle(node).zIndex) || 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/** @param {HTMLElement} node */
|
|
394
|
+
function get_ancestors(node) {
|
|
395
|
+
const ancestors = [];
|
|
396
|
+
while (node) {
|
|
397
|
+
ancestors.push(node);
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
node = get_parent(node);
|
|
400
|
+
}
|
|
401
|
+
return ancestors; // [ node, ... <body>, <html>, document ]
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/** @param {HTMLElement} node */
|
|
405
|
+
function get_parent(node) {
|
|
406
|
+
const {
|
|
407
|
+
parentNode
|
|
408
|
+
} = node;
|
|
409
|
+
if (parentNode && parentNode instanceof ShadowRoot) {
|
|
410
|
+
return parentNode.host;
|
|
411
|
+
}
|
|
412
|
+
return parentNode;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
const EXCEEDED_HORIZONTAL_MIN = 0b0001;
|
|
416
|
+
const EXCEEDED_HORIZONTAL_MAX = 0b0010;
|
|
417
|
+
const EXCEEDED_VERTICAL_MIN = 0b0100;
|
|
418
|
+
const EXCEEDED_VERTICAL_MAX = 0b1000;
|
|
419
|
+
const isCoarsePointer = getInputType() === "coarse";
|
|
420
|
+
let intersectingHandles = [];
|
|
421
|
+
let isPointerDown = false;
|
|
422
|
+
let ownerDocumentCounts = new Map();
|
|
423
|
+
let panelConstraintFlags = new Map();
|
|
424
|
+
const registeredResizeHandlers = new Set();
|
|
425
|
+
function registerResizeHandle(resizeHandleId, element, direction, hitAreaMargins, setResizeHandlerState) {
|
|
426
|
+
var _ownerDocumentCounts$;
|
|
427
|
+
const {
|
|
428
|
+
ownerDocument
|
|
429
|
+
} = element;
|
|
430
|
+
const data = {
|
|
431
|
+
direction,
|
|
432
|
+
element,
|
|
433
|
+
hitAreaMargins,
|
|
434
|
+
setResizeHandlerState
|
|
435
|
+
};
|
|
436
|
+
const count = (_ownerDocumentCounts$ = ownerDocumentCounts.get(ownerDocument)) !== null && _ownerDocumentCounts$ !== void 0 ? _ownerDocumentCounts$ : 0;
|
|
437
|
+
ownerDocumentCounts.set(ownerDocument, count + 1);
|
|
438
|
+
registeredResizeHandlers.add(data);
|
|
439
|
+
updateListeners();
|
|
440
|
+
return function unregisterResizeHandle() {
|
|
441
|
+
var _ownerDocumentCounts$2;
|
|
442
|
+
panelConstraintFlags.delete(resizeHandleId);
|
|
443
|
+
registeredResizeHandlers.delete(data);
|
|
444
|
+
const count = (_ownerDocumentCounts$2 = ownerDocumentCounts.get(ownerDocument)) !== null && _ownerDocumentCounts$2 !== void 0 ? _ownerDocumentCounts$2 : 1;
|
|
445
|
+
ownerDocumentCounts.set(ownerDocument, count - 1);
|
|
446
|
+
updateListeners();
|
|
447
|
+
if (count === 1) {
|
|
448
|
+
ownerDocumentCounts.delete(ownerDocument);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// If the resize handle that is currently unmounting is intersecting with the pointer,
|
|
452
|
+
// update the global pointer to account for the change
|
|
453
|
+
if (intersectingHandles.includes(data)) {
|
|
454
|
+
const index = intersectingHandles.indexOf(data);
|
|
455
|
+
if (index >= 0) {
|
|
456
|
+
intersectingHandles.splice(index, 1);
|
|
457
|
+
}
|
|
458
|
+
updateCursor();
|
|
459
|
+
|
|
460
|
+
// Also instruct the handle to stop dragging; this prevents the parent group from being left in an inconsistent state
|
|
461
|
+
// See github.com/bvaughn/react-resizable-panels/issues/402
|
|
462
|
+
setResizeHandlerState("up", true, null);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
function handlePointerDown(event) {
|
|
467
|
+
const {
|
|
468
|
+
target
|
|
469
|
+
} = event;
|
|
470
|
+
const {
|
|
471
|
+
x,
|
|
472
|
+
y
|
|
473
|
+
} = getResizeEventCoordinates(event);
|
|
474
|
+
isPointerDown = true;
|
|
475
|
+
recalculateIntersectingHandles({
|
|
476
|
+
target,
|
|
477
|
+
x,
|
|
478
|
+
y
|
|
479
|
+
});
|
|
480
|
+
updateListeners();
|
|
481
|
+
if (intersectingHandles.length > 0) {
|
|
482
|
+
updateResizeHandlerStates("down", event);
|
|
483
|
+
event.preventDefault();
|
|
484
|
+
if (!isWithinResizeHandle(target)) {
|
|
485
|
+
event.stopImmediatePropagation();
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function handlePointerMove(event) {
|
|
490
|
+
const {
|
|
491
|
+
x,
|
|
492
|
+
y
|
|
493
|
+
} = getResizeEventCoordinates(event);
|
|
494
|
+
|
|
495
|
+
// Edge case (see #340)
|
|
496
|
+
// Detect when the pointer has been released outside an iframe on a different domain
|
|
497
|
+
if (isPointerDown && event.buttons === 0) {
|
|
498
|
+
isPointerDown = false;
|
|
499
|
+
updateResizeHandlerStates("up", event);
|
|
500
|
+
}
|
|
501
|
+
if (!isPointerDown) {
|
|
502
|
+
const {
|
|
503
|
+
target
|
|
504
|
+
} = event;
|
|
505
|
+
|
|
506
|
+
// Recalculate intersecting handles whenever the pointer moves, except if it has already been pressed
|
|
507
|
+
// at that point, the handles may not move with the pointer (depending on constraints)
|
|
508
|
+
// but the same set of active handles should be locked until the pointer is released
|
|
509
|
+
recalculateIntersectingHandles({
|
|
510
|
+
target,
|
|
511
|
+
x,
|
|
512
|
+
y
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
updateResizeHandlerStates("move", event);
|
|
516
|
+
|
|
517
|
+
// Update cursor based on return value(s) from active handles
|
|
518
|
+
updateCursor();
|
|
519
|
+
if (intersectingHandles.length > 0) {
|
|
520
|
+
event.preventDefault();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
function handlePointerUp(event) {
|
|
524
|
+
const {
|
|
525
|
+
target
|
|
526
|
+
} = event;
|
|
527
|
+
const {
|
|
528
|
+
x,
|
|
529
|
+
y
|
|
530
|
+
} = getResizeEventCoordinates(event);
|
|
531
|
+
panelConstraintFlags.clear();
|
|
532
|
+
isPointerDown = false;
|
|
533
|
+
if (intersectingHandles.length > 0) {
|
|
534
|
+
event.preventDefault();
|
|
535
|
+
if (!isWithinResizeHandle(target)) {
|
|
536
|
+
event.stopImmediatePropagation();
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
updateResizeHandlerStates("up", event);
|
|
540
|
+
recalculateIntersectingHandles({
|
|
541
|
+
target,
|
|
542
|
+
x,
|
|
543
|
+
y
|
|
544
|
+
});
|
|
545
|
+
updateCursor();
|
|
546
|
+
updateListeners();
|
|
547
|
+
}
|
|
548
|
+
function isWithinResizeHandle(element) {
|
|
549
|
+
let currentElement = element;
|
|
550
|
+
while (currentElement) {
|
|
551
|
+
if (currentElement.hasAttribute(DATA_ATTRIBUTES.resizeHandle)) {
|
|
552
|
+
return true;
|
|
553
|
+
}
|
|
554
|
+
currentElement = currentElement.parentElement;
|
|
555
|
+
}
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
function recalculateIntersectingHandles({
|
|
559
|
+
target,
|
|
560
|
+
x,
|
|
561
|
+
y
|
|
562
|
+
}) {
|
|
563
|
+
intersectingHandles.splice(0);
|
|
564
|
+
let targetElement = null;
|
|
565
|
+
if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
566
|
+
targetElement = target;
|
|
567
|
+
}
|
|
568
|
+
registeredResizeHandlers.forEach(data => {
|
|
569
|
+
const {
|
|
570
|
+
element: dragHandleElement,
|
|
571
|
+
hitAreaMargins
|
|
572
|
+
} = data;
|
|
573
|
+
const dragHandleRect = dragHandleElement.getBoundingClientRect();
|
|
574
|
+
const {
|
|
575
|
+
bottom,
|
|
576
|
+
left,
|
|
577
|
+
right,
|
|
578
|
+
top
|
|
579
|
+
} = dragHandleRect;
|
|
580
|
+
const margin = isCoarsePointer ? hitAreaMargins.coarse : hitAreaMargins.fine;
|
|
581
|
+
const eventIntersects = x >= left - margin && x <= right + margin && y >= top - margin && y <= bottom + margin;
|
|
582
|
+
if (eventIntersects) {
|
|
583
|
+
// TRICKY
|
|
584
|
+
// We listen for pointers events at the root in order to support hit area margins
|
|
585
|
+
// (determining when the pointer is close enough to an element to be considered a "hit")
|
|
586
|
+
// Clicking on an element "above" a handle (e.g. a modal) should prevent a hit though
|
|
587
|
+
// so at this point we need to compare stacking order of a potentially intersecting drag handle,
|
|
588
|
+
// and the element that was actually clicked/touched
|
|
589
|
+
if (targetElement !== null && document.contains(targetElement) && dragHandleElement !== targetElement && !dragHandleElement.contains(targetElement) && !targetElement.contains(dragHandleElement) &&
|
|
590
|
+
// Calculating stacking order has a cost, so we should avoid it if possible
|
|
591
|
+
// That is why we only check potentially intersecting handles,
|
|
592
|
+
// and why we skip if the event target is within the handle's DOM
|
|
593
|
+
compare(targetElement, dragHandleElement) > 0) {
|
|
594
|
+
// If the target is above the drag handle, then we also need to confirm they overlap
|
|
595
|
+
// If they are beside each other (e.g. a panel and its drag handle) then the handle is still interactive
|
|
596
|
+
//
|
|
597
|
+
// It's not enough to compare only the target
|
|
598
|
+
// The target might be a small element inside of a larger container
|
|
599
|
+
// (For example, a SPAN or a DIV inside of a larger modal dialog)
|
|
600
|
+
let currentElement = targetElement;
|
|
601
|
+
let didIntersect = false;
|
|
602
|
+
while (currentElement) {
|
|
603
|
+
if (currentElement.contains(dragHandleElement)) {
|
|
604
|
+
break;
|
|
605
|
+
} else if (intersects(currentElement.getBoundingClientRect(), dragHandleRect)) {
|
|
606
|
+
didIntersect = true;
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
currentElement = currentElement.parentElement;
|
|
610
|
+
}
|
|
611
|
+
if (didIntersect) {
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
intersectingHandles.push(data);
|
|
616
|
+
}
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
function reportConstraintsViolation(resizeHandleId, flag) {
|
|
620
|
+
panelConstraintFlags.set(resizeHandleId, flag);
|
|
621
|
+
}
|
|
622
|
+
function updateCursor() {
|
|
623
|
+
let intersectsHorizontal = false;
|
|
624
|
+
let intersectsVertical = false;
|
|
625
|
+
intersectingHandles.forEach(data => {
|
|
626
|
+
const {
|
|
627
|
+
direction
|
|
628
|
+
} = data;
|
|
629
|
+
if (direction === "horizontal") {
|
|
630
|
+
intersectsHorizontal = true;
|
|
631
|
+
} else {
|
|
632
|
+
intersectsVertical = true;
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
let constraintFlags = 0;
|
|
636
|
+
panelConstraintFlags.forEach(flag => {
|
|
637
|
+
constraintFlags |= flag;
|
|
638
|
+
});
|
|
639
|
+
if (intersectsHorizontal && intersectsVertical) {
|
|
640
|
+
setGlobalCursorStyle("intersection", constraintFlags);
|
|
641
|
+
} else if (intersectsHorizontal) {
|
|
642
|
+
setGlobalCursorStyle("horizontal", constraintFlags);
|
|
643
|
+
} else if (intersectsVertical) {
|
|
644
|
+
setGlobalCursorStyle("vertical", constraintFlags);
|
|
645
|
+
} else {
|
|
646
|
+
resetGlobalCursorStyle();
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
let listenersAbortController = new AbortController();
|
|
650
|
+
function updateListeners() {
|
|
651
|
+
listenersAbortController.abort();
|
|
652
|
+
listenersAbortController = new AbortController();
|
|
653
|
+
const options = {
|
|
654
|
+
capture: true,
|
|
655
|
+
signal: listenersAbortController.signal
|
|
656
|
+
};
|
|
657
|
+
if (!registeredResizeHandlers.size) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
if (isPointerDown) {
|
|
661
|
+
if (intersectingHandles.length > 0) {
|
|
662
|
+
ownerDocumentCounts.forEach((count, ownerDocument) => {
|
|
663
|
+
const {
|
|
664
|
+
body
|
|
665
|
+
} = ownerDocument;
|
|
666
|
+
if (count > 0) {
|
|
667
|
+
body.addEventListener("contextmenu", handlePointerUp, options);
|
|
668
|
+
body.addEventListener("pointerleave", handlePointerMove, options);
|
|
669
|
+
body.addEventListener("pointermove", handlePointerMove, options);
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
window.addEventListener("pointerup", handlePointerUp, options);
|
|
674
|
+
window.addEventListener("pointercancel", handlePointerUp, options);
|
|
675
|
+
} else {
|
|
676
|
+
ownerDocumentCounts.forEach((count, ownerDocument) => {
|
|
677
|
+
const {
|
|
678
|
+
body
|
|
679
|
+
} = ownerDocument;
|
|
680
|
+
if (count > 0) {
|
|
681
|
+
body.addEventListener("pointerdown", handlePointerDown, options);
|
|
682
|
+
body.addEventListener("pointermove", handlePointerMove, options);
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
function updateResizeHandlerStates(action, event) {
|
|
688
|
+
registeredResizeHandlers.forEach(data => {
|
|
689
|
+
const {
|
|
690
|
+
setResizeHandlerState
|
|
691
|
+
} = data;
|
|
692
|
+
const isActive = intersectingHandles.includes(data);
|
|
693
|
+
setResizeHandlerState(action, isActive, event);
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
function useForceUpdate() {
|
|
698
|
+
const [_, setCount] = React.useState(0);
|
|
699
|
+
return React.useCallback(() => setCount(prevCount => prevCount + 1), []);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
function assert(expectedCondition, message) {
|
|
703
|
+
if (!expectedCondition) {
|
|
704
|
+
console.error(message);
|
|
705
|
+
throw Error(message);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
function fuzzyCompareNumbers(actual, expected, fractionDigits = PRECISION) {
|
|
710
|
+
if (actual.toFixed(fractionDigits) === expected.toFixed(fractionDigits)) {
|
|
711
|
+
return 0;
|
|
712
|
+
} else {
|
|
713
|
+
return actual > expected ? 1 : -1;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
function fuzzyNumbersEqual$1(actual, expected, fractionDigits = PRECISION) {
|
|
717
|
+
return fuzzyCompareNumbers(actual, expected, fractionDigits) === 0;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function fuzzyNumbersEqual(actual, expected, fractionDigits) {
|
|
721
|
+
return fuzzyCompareNumbers(actual, expected, fractionDigits) === 0;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
function fuzzyLayoutsEqual(actual, expected, fractionDigits) {
|
|
725
|
+
if (actual.length !== expected.length) {
|
|
726
|
+
return false;
|
|
727
|
+
}
|
|
728
|
+
for (let index = 0; index < actual.length; index++) {
|
|
729
|
+
const actualSize = actual[index];
|
|
730
|
+
const expectedSize = expected[index];
|
|
731
|
+
if (!fuzzyNumbersEqual(actualSize, expectedSize, fractionDigits)) {
|
|
732
|
+
return false;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return true;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
// Panel size must be in percentages; pixel values should be pre-converted
|
|
739
|
+
function resizePanel({
|
|
740
|
+
panelConstraints: panelConstraintsArray,
|
|
741
|
+
panelIndex,
|
|
742
|
+
size
|
|
743
|
+
}) {
|
|
744
|
+
const panelConstraints = panelConstraintsArray[panelIndex];
|
|
745
|
+
assert(panelConstraints != null, `Panel constraints not found for index ${panelIndex}`);
|
|
746
|
+
let {
|
|
747
|
+
collapsedSize = 0,
|
|
748
|
+
collapsible,
|
|
749
|
+
maxSize = 100,
|
|
750
|
+
minSize = 0
|
|
751
|
+
} = panelConstraints;
|
|
752
|
+
if (fuzzyCompareNumbers(size, minSize) < 0) {
|
|
753
|
+
if (collapsible) {
|
|
754
|
+
// Collapsible panels should snap closed or open only once they cross the halfway point between collapsed and min size.
|
|
755
|
+
const halfwayPoint = (collapsedSize + minSize) / 2;
|
|
756
|
+
if (fuzzyCompareNumbers(size, halfwayPoint) < 0) {
|
|
757
|
+
size = collapsedSize;
|
|
758
|
+
} else {
|
|
759
|
+
size = minSize;
|
|
760
|
+
}
|
|
761
|
+
} else {
|
|
762
|
+
size = minSize;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
size = Math.min(maxSize, size);
|
|
766
|
+
size = parseFloat(size.toFixed(PRECISION));
|
|
767
|
+
return size;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// All units must be in percentages; pixel values should be pre-converted
|
|
771
|
+
function adjustLayoutByDelta({
|
|
772
|
+
delta,
|
|
773
|
+
initialLayout,
|
|
774
|
+
panelConstraints: panelConstraintsArray,
|
|
775
|
+
pivotIndices,
|
|
776
|
+
prevLayout,
|
|
777
|
+
trigger
|
|
778
|
+
}) {
|
|
779
|
+
if (fuzzyNumbersEqual(delta, 0)) {
|
|
780
|
+
return initialLayout;
|
|
781
|
+
}
|
|
782
|
+
const nextLayout = [...initialLayout];
|
|
783
|
+
const [firstPivotIndex, secondPivotIndex] = pivotIndices;
|
|
784
|
+
assert(firstPivotIndex != null, "Invalid first pivot index");
|
|
785
|
+
assert(secondPivotIndex != null, "Invalid second pivot index");
|
|
786
|
+
let deltaApplied = 0;
|
|
787
|
+
|
|
788
|
+
// const DEBUG = [];
|
|
789
|
+
// DEBUG.push(`adjustLayoutByDelta()`);
|
|
790
|
+
// DEBUG.push(` initialLayout: ${initialLayout.join(", ")}`);
|
|
791
|
+
// DEBUG.push(` prevLayout: ${prevLayout.join(", ")}`);
|
|
792
|
+
// DEBUG.push(` delta: ${delta}`);
|
|
793
|
+
// DEBUG.push(` pivotIndices: ${pivotIndices.join(", ")}`);
|
|
794
|
+
// DEBUG.push(` trigger: ${trigger}`);
|
|
795
|
+
// DEBUG.push("");
|
|
796
|
+
|
|
797
|
+
// A resizing panel affects the panels before or after it.
|
|
798
|
+
//
|
|
799
|
+
// A negative delta means the panel(s) immediately after the resize handle should grow/expand by decreasing its offset.
|
|
800
|
+
// Other panels may also need to shrink/contract (and shift) to make room, depending on the min weights.
|
|
801
|
+
//
|
|
802
|
+
// A positive delta means the panel(s) immediately before the resize handle should "expand".
|
|
803
|
+
// This is accomplished by shrinking/contracting (and shifting) one or more of the panels after the resize handle.
|
|
804
|
+
|
|
805
|
+
{
|
|
806
|
+
// If this is a resize triggered by a keyboard event, our logic for expanding/collapsing is different.
|
|
807
|
+
// We no longer check the halfway threshold because this may prevent the panel from expanding at all.
|
|
808
|
+
if (trigger === "keyboard") {
|
|
809
|
+
{
|
|
810
|
+
// Check if we should expand a collapsed panel
|
|
811
|
+
const index = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
812
|
+
const panelConstraints = panelConstraintsArray[index];
|
|
813
|
+
assert(panelConstraints, `Panel constraints not found for index ${index}`);
|
|
814
|
+
const {
|
|
815
|
+
collapsedSize = 0,
|
|
816
|
+
collapsible,
|
|
817
|
+
minSize = 0
|
|
818
|
+
} = panelConstraints;
|
|
819
|
+
|
|
820
|
+
// DEBUG.push(`edge case check 1: ${index}`);
|
|
821
|
+
// DEBUG.push(` -> collapsible? ${collapsible}`);
|
|
822
|
+
if (collapsible) {
|
|
823
|
+
const prevSize = initialLayout[index];
|
|
824
|
+
assert(prevSize != null, `Previous layout not found for panel index ${index}`);
|
|
825
|
+
if (fuzzyNumbersEqual(prevSize, collapsedSize)) {
|
|
826
|
+
const localDelta = minSize - prevSize;
|
|
827
|
+
// DEBUG.push(` -> expand delta: ${localDelta}`);
|
|
828
|
+
|
|
829
|
+
if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {
|
|
830
|
+
delta = delta < 0 ? 0 - localDelta : localDelta;
|
|
831
|
+
// DEBUG.push(` -> delta: ${delta}`);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
{
|
|
838
|
+
// Check if we should collapse a panel at its minimum size
|
|
839
|
+
const index = delta < 0 ? firstPivotIndex : secondPivotIndex;
|
|
840
|
+
const panelConstraints = panelConstraintsArray[index];
|
|
841
|
+
assert(panelConstraints, `No panel constraints found for index ${index}`);
|
|
842
|
+
const {
|
|
843
|
+
collapsedSize = 0,
|
|
844
|
+
collapsible,
|
|
845
|
+
minSize = 0
|
|
846
|
+
} = panelConstraints;
|
|
847
|
+
|
|
848
|
+
// DEBUG.push(`edge case check 2: ${index}`);
|
|
849
|
+
// DEBUG.push(` -> collapsible? ${collapsible}`);
|
|
850
|
+
if (collapsible) {
|
|
851
|
+
const prevSize = initialLayout[index];
|
|
852
|
+
assert(prevSize != null, `Previous layout not found for panel index ${index}`);
|
|
853
|
+
if (fuzzyNumbersEqual(prevSize, minSize)) {
|
|
854
|
+
const localDelta = prevSize - collapsedSize;
|
|
855
|
+
// DEBUG.push(` -> expand delta: ${localDelta}`);
|
|
856
|
+
|
|
857
|
+
if (fuzzyCompareNumbers(localDelta, Math.abs(delta)) > 0) {
|
|
858
|
+
delta = delta < 0 ? 0 - localDelta : localDelta;
|
|
859
|
+
// DEBUG.push(` -> delta: ${delta}`);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
// DEBUG.push("");
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
{
|
|
869
|
+
// Pre-calculate max available delta in the opposite direction of our pivot.
|
|
870
|
+
// This will be the maximum amount we're allowed to expand/contract the panels in the primary direction.
|
|
871
|
+
// If this amount is less than the requested delta, adjust the requested delta.
|
|
872
|
+
// If this amount is greater than the requested delta, that's useful information too–
|
|
873
|
+
// as an expanding panel might change from collapsed to min size.
|
|
874
|
+
|
|
875
|
+
const increment = delta < 0 ? 1 : -1;
|
|
876
|
+
let index = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
877
|
+
let maxAvailableDelta = 0;
|
|
878
|
+
|
|
879
|
+
// DEBUG.push("pre calc...");
|
|
880
|
+
while (true) {
|
|
881
|
+
const prevSize = initialLayout[index];
|
|
882
|
+
assert(prevSize != null, `Previous layout not found for panel index ${index}`);
|
|
883
|
+
const maxSafeSize = resizePanel({
|
|
884
|
+
panelConstraints: panelConstraintsArray,
|
|
885
|
+
panelIndex: index,
|
|
886
|
+
size: 100
|
|
887
|
+
});
|
|
888
|
+
const delta = maxSafeSize - prevSize;
|
|
889
|
+
// DEBUG.push(` ${index}: ${prevSize} -> ${maxSafeSize}`);
|
|
890
|
+
|
|
891
|
+
maxAvailableDelta += delta;
|
|
892
|
+
index += increment;
|
|
893
|
+
if (index < 0 || index >= panelConstraintsArray.length) {
|
|
894
|
+
break;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// DEBUG.push(` -> max available delta: ${maxAvailableDelta}`);
|
|
899
|
+
const minAbsDelta = Math.min(Math.abs(delta), Math.abs(maxAvailableDelta));
|
|
900
|
+
delta = delta < 0 ? 0 - minAbsDelta : minAbsDelta;
|
|
901
|
+
// DEBUG.push(` -> adjusted delta: ${delta}`);
|
|
902
|
+
// DEBUG.push("");
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
{
|
|
906
|
+
// Delta added to a panel needs to be subtracted from other panels (within the constraints that those panels allow).
|
|
907
|
+
|
|
908
|
+
const pivotIndex = delta < 0 ? firstPivotIndex : secondPivotIndex;
|
|
909
|
+
let index = pivotIndex;
|
|
910
|
+
while (index >= 0 && index < panelConstraintsArray.length) {
|
|
911
|
+
const deltaRemaining = Math.abs(delta) - Math.abs(deltaApplied);
|
|
912
|
+
const prevSize = initialLayout[index];
|
|
913
|
+
assert(prevSize != null, `Previous layout not found for panel index ${index}`);
|
|
914
|
+
const unsafeSize = prevSize - deltaRemaining;
|
|
915
|
+
const safeSize = resizePanel({
|
|
916
|
+
panelConstraints: panelConstraintsArray,
|
|
917
|
+
panelIndex: index,
|
|
918
|
+
size: unsafeSize
|
|
919
|
+
});
|
|
920
|
+
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
921
|
+
deltaApplied += prevSize - safeSize;
|
|
922
|
+
nextLayout[index] = safeSize;
|
|
923
|
+
if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), undefined, {
|
|
924
|
+
numeric: true
|
|
925
|
+
}) >= 0) {
|
|
926
|
+
break;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
if (delta < 0) {
|
|
930
|
+
index--;
|
|
931
|
+
} else {
|
|
932
|
+
index++;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
// DEBUG.push(`after 1: ${nextLayout.join(", ")}`);
|
|
937
|
+
// DEBUG.push(` deltaApplied: ${deltaApplied}`);
|
|
938
|
+
// DEBUG.push("");
|
|
939
|
+
|
|
940
|
+
// If we were unable to resize any of the panels panels, return the previous state.
|
|
941
|
+
// This will essentially bailout and ignore e.g. drags past a panel's boundaries
|
|
942
|
+
if (fuzzyLayoutsEqual(prevLayout, nextLayout)) {
|
|
943
|
+
// DEBUG.push(`bailout to previous layout: ${prevLayout.join(", ")}`);
|
|
944
|
+
// console.log(DEBUG.join("\n"));
|
|
945
|
+
|
|
946
|
+
return prevLayout;
|
|
947
|
+
}
|
|
948
|
+
{
|
|
949
|
+
// Now distribute the applied delta to the panels in the other direction
|
|
950
|
+
const pivotIndex = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
951
|
+
const prevSize = initialLayout[pivotIndex];
|
|
952
|
+
assert(prevSize != null, `Previous layout not found for panel index ${pivotIndex}`);
|
|
953
|
+
const unsafeSize = prevSize + deltaApplied;
|
|
954
|
+
const safeSize = resizePanel({
|
|
955
|
+
panelConstraints: panelConstraintsArray,
|
|
956
|
+
panelIndex: pivotIndex,
|
|
957
|
+
size: unsafeSize
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// Adjust the pivot panel before, but only by the amount that surrounding panels were able to shrink/contract.
|
|
961
|
+
nextLayout[pivotIndex] = safeSize;
|
|
962
|
+
|
|
963
|
+
// Edge case where expanding or contracting one panel caused another one to change collapsed state
|
|
964
|
+
if (!fuzzyNumbersEqual(safeSize, unsafeSize)) {
|
|
965
|
+
let deltaRemaining = unsafeSize - safeSize;
|
|
966
|
+
const pivotIndex = delta < 0 ? secondPivotIndex : firstPivotIndex;
|
|
967
|
+
let index = pivotIndex;
|
|
968
|
+
while (index >= 0 && index < panelConstraintsArray.length) {
|
|
969
|
+
const prevSize = nextLayout[index];
|
|
970
|
+
assert(prevSize != null, `Previous layout not found for panel index ${index}`);
|
|
971
|
+
const unsafeSize = prevSize + deltaRemaining;
|
|
972
|
+
const safeSize = resizePanel({
|
|
973
|
+
panelConstraints: panelConstraintsArray,
|
|
974
|
+
panelIndex: index,
|
|
975
|
+
size: unsafeSize
|
|
976
|
+
});
|
|
977
|
+
if (!fuzzyNumbersEqual(prevSize, safeSize)) {
|
|
978
|
+
deltaRemaining -= safeSize - prevSize;
|
|
979
|
+
nextLayout[index] = safeSize;
|
|
980
|
+
}
|
|
981
|
+
if (fuzzyNumbersEqual(deltaRemaining, 0)) {
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
if (delta > 0) {
|
|
985
|
+
index--;
|
|
986
|
+
} else {
|
|
987
|
+
index++;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
// DEBUG.push(`after 2: ${nextLayout.join(", ")}`);
|
|
993
|
+
// DEBUG.push(` deltaApplied: ${deltaApplied}`);
|
|
994
|
+
// DEBUG.push("");
|
|
995
|
+
|
|
996
|
+
const totalSize = nextLayout.reduce((total, size) => size + total, 0);
|
|
997
|
+
// DEBUG.push(`total size: ${totalSize}`);
|
|
998
|
+
|
|
999
|
+
// If our new layout doesn't add up to 100%, that means the requested delta can't be applied
|
|
1000
|
+
// In that case, fall back to our most recent valid layout
|
|
1001
|
+
if (!fuzzyNumbersEqual(totalSize, 100)) {
|
|
1002
|
+
// DEBUG.push(`bailout to previous layout: ${prevLayout.join(", ")}`);
|
|
1003
|
+
// console.log(DEBUG.join("\n"));
|
|
1004
|
+
|
|
1005
|
+
return prevLayout;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// console.log(DEBUG.join("\n"));
|
|
1009
|
+
return nextLayout;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
function calculateAriaValues({
|
|
1013
|
+
layout,
|
|
1014
|
+
panelsArray,
|
|
1015
|
+
pivotIndices
|
|
1016
|
+
}) {
|
|
1017
|
+
let currentMinSize = 0;
|
|
1018
|
+
let currentMaxSize = 100;
|
|
1019
|
+
let totalMinSize = 0;
|
|
1020
|
+
let totalMaxSize = 0;
|
|
1021
|
+
const firstIndex = pivotIndices[0];
|
|
1022
|
+
assert(firstIndex != null, "No pivot index found");
|
|
1023
|
+
|
|
1024
|
+
// A panel's effective min/max sizes also need to account for other panel's sizes.
|
|
1025
|
+
panelsArray.forEach((panelData, index) => {
|
|
1026
|
+
const {
|
|
1027
|
+
constraints
|
|
1028
|
+
} = panelData;
|
|
1029
|
+
const {
|
|
1030
|
+
maxSize = 100,
|
|
1031
|
+
minSize = 0
|
|
1032
|
+
} = constraints;
|
|
1033
|
+
if (index === firstIndex) {
|
|
1034
|
+
currentMinSize = minSize;
|
|
1035
|
+
currentMaxSize = maxSize;
|
|
1036
|
+
} else {
|
|
1037
|
+
totalMinSize += minSize;
|
|
1038
|
+
totalMaxSize += maxSize;
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
const valueMax = Math.min(currentMaxSize, 100 - totalMinSize);
|
|
1042
|
+
const valueMin = Math.max(currentMinSize, 100 - totalMaxSize);
|
|
1043
|
+
const valueNow = layout[firstIndex];
|
|
1044
|
+
return {
|
|
1045
|
+
valueMax,
|
|
1046
|
+
valueMin,
|
|
1047
|
+
valueNow
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
function getResizeHandleElementsForGroup(groupId, scope = document) {
|
|
1052
|
+
return Array.from(scope.querySelectorAll(`[${DATA_ATTRIBUTES.resizeHandleId}][data-panel-group-id="${groupId}"]`));
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
function getResizeHandleElementIndex(groupId, id, scope = document) {
|
|
1056
|
+
const handles = getResizeHandleElementsForGroup(groupId, scope);
|
|
1057
|
+
const index = handles.findIndex(handle => handle.getAttribute(DATA_ATTRIBUTES.resizeHandleId) === id);
|
|
1058
|
+
return index !== null && index !== void 0 ? index : null;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
function determinePivotIndices(groupId, dragHandleId, panelGroupElement) {
|
|
1062
|
+
const index = getResizeHandleElementIndex(groupId, dragHandleId, panelGroupElement);
|
|
1063
|
+
return index != null ? [index, index + 1] : [-1, -1];
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
function getPanelGroupElement(id, rootElement = document) {
|
|
1067
|
+
var _dataset;
|
|
1068
|
+
//If the root element is the PanelGroup
|
|
1069
|
+
if (rootElement instanceof HTMLElement && (rootElement === null || rootElement === void 0 ? void 0 : (_dataset = rootElement.dataset) === null || _dataset === void 0 ? void 0 : _dataset.panelGroupId) == id) {
|
|
1070
|
+
return rootElement;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
//Else query children
|
|
1074
|
+
const element = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
|
|
1075
|
+
if (element) {
|
|
1076
|
+
return element;
|
|
1077
|
+
}
|
|
1078
|
+
return null;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
function getResizeHandleElement(id, scope = document) {
|
|
1082
|
+
const element = scope.querySelector(`[${DATA_ATTRIBUTES.resizeHandleId}="${id}"]`);
|
|
1083
|
+
if (element) {
|
|
1084
|
+
return element;
|
|
1085
|
+
}
|
|
1086
|
+
return null;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
function getResizeHandlePanelIds(groupId, handleId, panelsArray, scope = document) {
|
|
1090
|
+
var _panelsArray$index$id, _panelsArray$index, _panelsArray$id, _panelsArray;
|
|
1091
|
+
const handle = getResizeHandleElement(handleId, scope);
|
|
1092
|
+
const handles = getResizeHandleElementsForGroup(groupId, scope);
|
|
1093
|
+
const index = handle ? handles.indexOf(handle) : -1;
|
|
1094
|
+
const idBefore = (_panelsArray$index$id = (_panelsArray$index = panelsArray[index]) === null || _panelsArray$index === void 0 ? void 0 : _panelsArray$index.id) !== null && _panelsArray$index$id !== void 0 ? _panelsArray$index$id : null;
|
|
1095
|
+
const idAfter = (_panelsArray$id = (_panelsArray = panelsArray[index + 1]) === null || _panelsArray === void 0 ? void 0 : _panelsArray.id) !== null && _panelsArray$id !== void 0 ? _panelsArray$id : null;
|
|
1096
|
+
return [idBefore, idAfter];
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/
|
|
1100
|
+
|
|
1101
|
+
function useWindowSplitterPanelGroupBehavior({
|
|
1102
|
+
committedValuesRef,
|
|
1103
|
+
eagerValuesRef,
|
|
1104
|
+
groupId,
|
|
1105
|
+
layout,
|
|
1106
|
+
panelDataArray,
|
|
1107
|
+
panelGroupElement,
|
|
1108
|
+
setLayout
|
|
1109
|
+
}) {
|
|
1110
|
+
React.useRef({
|
|
1111
|
+
didWarnAboutMissingResizeHandle: false
|
|
1112
|
+
});
|
|
1113
|
+
useIsomorphicLayoutEffect(() => {
|
|
1114
|
+
if (!panelGroupElement) {
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
const resizeHandleElements = getResizeHandleElementsForGroup(groupId, panelGroupElement);
|
|
1118
|
+
for (let index = 0; index < panelDataArray.length - 1; index++) {
|
|
1119
|
+
const {
|
|
1120
|
+
valueMax,
|
|
1121
|
+
valueMin,
|
|
1122
|
+
valueNow
|
|
1123
|
+
} = calculateAriaValues({
|
|
1124
|
+
layout,
|
|
1125
|
+
panelsArray: panelDataArray,
|
|
1126
|
+
pivotIndices: [index, index + 1]
|
|
1127
|
+
});
|
|
1128
|
+
const resizeHandleElement = resizeHandleElements[index];
|
|
1129
|
+
if (resizeHandleElement == null) ; else {
|
|
1130
|
+
const panelData = panelDataArray[index];
|
|
1131
|
+
assert(panelData, `No panel data found for index "${index}"`);
|
|
1132
|
+
resizeHandleElement.setAttribute("aria-controls", panelData.id);
|
|
1133
|
+
resizeHandleElement.setAttribute("aria-valuemax", "" + Math.round(valueMax));
|
|
1134
|
+
resizeHandleElement.setAttribute("aria-valuemin", "" + Math.round(valueMin));
|
|
1135
|
+
resizeHandleElement.setAttribute("aria-valuenow", valueNow != null ? "" + Math.round(valueNow) : "");
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
return () => {
|
|
1139
|
+
resizeHandleElements.forEach((resizeHandleElement, index) => {
|
|
1140
|
+
resizeHandleElement.removeAttribute("aria-controls");
|
|
1141
|
+
resizeHandleElement.removeAttribute("aria-valuemax");
|
|
1142
|
+
resizeHandleElement.removeAttribute("aria-valuemin");
|
|
1143
|
+
resizeHandleElement.removeAttribute("aria-valuenow");
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
}, [groupId, layout, panelDataArray, panelGroupElement]);
|
|
1147
|
+
React.useEffect(() => {
|
|
1148
|
+
if (!panelGroupElement) {
|
|
1149
|
+
return;
|
|
1150
|
+
}
|
|
1151
|
+
const eagerValues = eagerValuesRef.current;
|
|
1152
|
+
assert(eagerValues, `Eager values not found`);
|
|
1153
|
+
const {
|
|
1154
|
+
panelDataArray
|
|
1155
|
+
} = eagerValues;
|
|
1156
|
+
const groupElement = getPanelGroupElement(groupId, panelGroupElement);
|
|
1157
|
+
assert(groupElement != null, `No group found for id "${groupId}"`);
|
|
1158
|
+
const handles = getResizeHandleElementsForGroup(groupId, panelGroupElement);
|
|
1159
|
+
assert(handles, `No resize handles found for group id "${groupId}"`);
|
|
1160
|
+
const cleanupFunctions = handles.map(handle => {
|
|
1161
|
+
const handleId = handle.getAttribute(DATA_ATTRIBUTES.resizeHandleId);
|
|
1162
|
+
assert(handleId, `Resize handle element has no handle id attribute`);
|
|
1163
|
+
const [idBefore, idAfter] = getResizeHandlePanelIds(groupId, handleId, panelDataArray, panelGroupElement);
|
|
1164
|
+
if (idBefore == null || idAfter == null) {
|
|
1165
|
+
return () => {};
|
|
1166
|
+
}
|
|
1167
|
+
const onKeyDown = event => {
|
|
1168
|
+
if (event.defaultPrevented) {
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
switch (event.key) {
|
|
1172
|
+
case "Enter":
|
|
1173
|
+
{
|
|
1174
|
+
event.preventDefault();
|
|
1175
|
+
const index = panelDataArray.findIndex(panelData => panelData.id === idBefore);
|
|
1176
|
+
if (index >= 0) {
|
|
1177
|
+
const panelData = panelDataArray[index];
|
|
1178
|
+
assert(panelData, `No panel data found for index ${index}`);
|
|
1179
|
+
const size = layout[index];
|
|
1180
|
+
const {
|
|
1181
|
+
collapsedSize = 0,
|
|
1182
|
+
collapsible,
|
|
1183
|
+
minSize = 0
|
|
1184
|
+
} = panelData.constraints;
|
|
1185
|
+
if (size != null && collapsible) {
|
|
1186
|
+
const nextLayout = adjustLayoutByDelta({
|
|
1187
|
+
delta: fuzzyNumbersEqual(size, collapsedSize) ? minSize - collapsedSize : collapsedSize - size,
|
|
1188
|
+
initialLayout: layout,
|
|
1189
|
+
panelConstraints: panelDataArray.map(panelData => panelData.constraints),
|
|
1190
|
+
pivotIndices: determinePivotIndices(groupId, handleId, panelGroupElement),
|
|
1191
|
+
prevLayout: layout,
|
|
1192
|
+
trigger: "keyboard"
|
|
1193
|
+
});
|
|
1194
|
+
if (layout !== nextLayout) {
|
|
1195
|
+
setLayout(nextLayout);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
break;
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
handle.addEventListener("keydown", onKeyDown);
|
|
1204
|
+
return () => {
|
|
1205
|
+
handle.removeEventListener("keydown", onKeyDown);
|
|
1206
|
+
};
|
|
1207
|
+
});
|
|
1208
|
+
return () => {
|
|
1209
|
+
cleanupFunctions.forEach(cleanupFunction => cleanupFunction());
|
|
1210
|
+
};
|
|
1211
|
+
}, [panelGroupElement, committedValuesRef, eagerValuesRef, groupId, layout, panelDataArray, setLayout]);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
function areEqual(arrayA, arrayB) {
|
|
1215
|
+
if (arrayA.length !== arrayB.length) {
|
|
1216
|
+
return false;
|
|
1217
|
+
}
|
|
1218
|
+
for (let index = 0; index < arrayA.length; index++) {
|
|
1219
|
+
if (arrayA[index] !== arrayB[index]) {
|
|
1220
|
+
return false;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
return true;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
function getResizeEventCursorPosition(direction, event) {
|
|
1227
|
+
const isHorizontal = direction === "horizontal";
|
|
1228
|
+
const {
|
|
1229
|
+
x,
|
|
1230
|
+
y
|
|
1231
|
+
} = getResizeEventCoordinates(event);
|
|
1232
|
+
return isHorizontal ? x : y;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
function calculateDragOffsetPercentage(event, dragHandleId, direction, initialDragState, panelGroupElement) {
|
|
1236
|
+
const isHorizontal = direction === "horizontal";
|
|
1237
|
+
const handleElement = getResizeHandleElement(dragHandleId, panelGroupElement);
|
|
1238
|
+
assert(handleElement, `No resize handle element found for id "${dragHandleId}"`);
|
|
1239
|
+
const groupId = handleElement.getAttribute(DATA_ATTRIBUTES.groupId);
|
|
1240
|
+
assert(groupId, `Resize handle element has no group id attribute`);
|
|
1241
|
+
let {
|
|
1242
|
+
initialCursorPosition
|
|
1243
|
+
} = initialDragState;
|
|
1244
|
+
const cursorPosition = getResizeEventCursorPosition(direction, event);
|
|
1245
|
+
const groupElement = getPanelGroupElement(groupId, panelGroupElement);
|
|
1246
|
+
assert(groupElement, `No group element found for id "${groupId}"`);
|
|
1247
|
+
const groupRect = groupElement.getBoundingClientRect();
|
|
1248
|
+
const groupSizeInPixels = isHorizontal ? groupRect.width : groupRect.height;
|
|
1249
|
+
const offsetPixels = cursorPosition - initialCursorPosition;
|
|
1250
|
+
const offsetPercentage = offsetPixels / groupSizeInPixels * 100;
|
|
1251
|
+
return offsetPercentage;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX
|
|
1255
|
+
function calculateDeltaPercentage(event, dragHandleId, direction, initialDragState, keyboardResizeBy, panelGroupElement) {
|
|
1256
|
+
if (isKeyDown(event)) {
|
|
1257
|
+
const isHorizontal = direction === "horizontal";
|
|
1258
|
+
let delta = 0;
|
|
1259
|
+
if (event.shiftKey) {
|
|
1260
|
+
delta = 100;
|
|
1261
|
+
} else if (keyboardResizeBy != null) {
|
|
1262
|
+
delta = keyboardResizeBy;
|
|
1263
|
+
} else {
|
|
1264
|
+
delta = 10;
|
|
1265
|
+
}
|
|
1266
|
+
let movement = 0;
|
|
1267
|
+
switch (event.key) {
|
|
1268
|
+
case "ArrowDown":
|
|
1269
|
+
movement = isHorizontal ? 0 : delta;
|
|
1270
|
+
break;
|
|
1271
|
+
case "ArrowLeft":
|
|
1272
|
+
movement = isHorizontal ? -delta : 0;
|
|
1273
|
+
break;
|
|
1274
|
+
case "ArrowRight":
|
|
1275
|
+
movement = isHorizontal ? delta : 0;
|
|
1276
|
+
break;
|
|
1277
|
+
case "ArrowUp":
|
|
1278
|
+
movement = isHorizontal ? 0 : -delta;
|
|
1279
|
+
break;
|
|
1280
|
+
case "End":
|
|
1281
|
+
movement = 100;
|
|
1282
|
+
break;
|
|
1283
|
+
case "Home":
|
|
1284
|
+
movement = -100;
|
|
1285
|
+
break;
|
|
1286
|
+
}
|
|
1287
|
+
return movement;
|
|
1288
|
+
} else {
|
|
1289
|
+
if (initialDragState == null) {
|
|
1290
|
+
return 0;
|
|
1291
|
+
}
|
|
1292
|
+
return calculateDragOffsetPercentage(event, dragHandleId, direction, initialDragState, panelGroupElement);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
function calculateUnsafeDefaultLayout({
|
|
1297
|
+
panelDataArray
|
|
1298
|
+
}) {
|
|
1299
|
+
const layout = Array(panelDataArray.length);
|
|
1300
|
+
const panelConstraintsArray = panelDataArray.map(panelData => panelData.constraints);
|
|
1301
|
+
let numPanelsWithSizes = 0;
|
|
1302
|
+
let remainingSize = 100;
|
|
1303
|
+
|
|
1304
|
+
// Distribute default sizes first
|
|
1305
|
+
for (let index = 0; index < panelDataArray.length; index++) {
|
|
1306
|
+
const panelConstraints = panelConstraintsArray[index];
|
|
1307
|
+
assert(panelConstraints, `Panel constraints not found for index ${index}`);
|
|
1308
|
+
const {
|
|
1309
|
+
defaultSize
|
|
1310
|
+
} = panelConstraints;
|
|
1311
|
+
if (defaultSize != null) {
|
|
1312
|
+
numPanelsWithSizes++;
|
|
1313
|
+
layout[index] = defaultSize;
|
|
1314
|
+
remainingSize -= defaultSize;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
// Remaining size should be distributed evenly between panels without default sizes
|
|
1319
|
+
for (let index = 0; index < panelDataArray.length; index++) {
|
|
1320
|
+
const panelConstraints = panelConstraintsArray[index];
|
|
1321
|
+
assert(panelConstraints, `Panel constraints not found for index ${index}`);
|
|
1322
|
+
const {
|
|
1323
|
+
defaultSize
|
|
1324
|
+
} = panelConstraints;
|
|
1325
|
+
if (defaultSize != null) {
|
|
1326
|
+
continue;
|
|
1327
|
+
}
|
|
1328
|
+
const numRemainingPanels = panelDataArray.length - numPanelsWithSizes;
|
|
1329
|
+
const size = remainingSize / numRemainingPanels;
|
|
1330
|
+
numPanelsWithSizes++;
|
|
1331
|
+
layout[index] = size;
|
|
1332
|
+
remainingSize -= size;
|
|
1333
|
+
}
|
|
1334
|
+
return layout;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
// Layout should be pre-converted into percentages
|
|
1338
|
+
function callPanelCallbacks(panelsArray, layout, panelIdToLastNotifiedSizeMap) {
|
|
1339
|
+
layout.forEach((size, index) => {
|
|
1340
|
+
const panelData = panelsArray[index];
|
|
1341
|
+
assert(panelData, `Panel data not found for index ${index}`);
|
|
1342
|
+
const {
|
|
1343
|
+
callbacks,
|
|
1344
|
+
constraints,
|
|
1345
|
+
id: panelId
|
|
1346
|
+
} = panelData;
|
|
1347
|
+
const {
|
|
1348
|
+
collapsedSize = 0,
|
|
1349
|
+
collapsible
|
|
1350
|
+
} = constraints;
|
|
1351
|
+
const lastNotifiedSize = panelIdToLastNotifiedSizeMap[panelId];
|
|
1352
|
+
if (lastNotifiedSize == null || size !== lastNotifiedSize) {
|
|
1353
|
+
panelIdToLastNotifiedSizeMap[panelId] = size;
|
|
1354
|
+
const {
|
|
1355
|
+
onCollapse,
|
|
1356
|
+
onExpand,
|
|
1357
|
+
onResize
|
|
1358
|
+
} = callbacks;
|
|
1359
|
+
if (onResize) {
|
|
1360
|
+
onResize(size, lastNotifiedSize);
|
|
1361
|
+
}
|
|
1362
|
+
if (collapsible && (onCollapse || onExpand)) {
|
|
1363
|
+
if (onExpand && (lastNotifiedSize == null || fuzzyNumbersEqual$1(lastNotifiedSize, collapsedSize)) && !fuzzyNumbersEqual$1(size, collapsedSize)) {
|
|
1364
|
+
onExpand();
|
|
1365
|
+
}
|
|
1366
|
+
if (onCollapse && (lastNotifiedSize == null || !fuzzyNumbersEqual$1(lastNotifiedSize, collapsedSize)) && fuzzyNumbersEqual$1(size, collapsedSize)) {
|
|
1367
|
+
onCollapse();
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function compareLayouts(a, b) {
|
|
1375
|
+
if (a.length !== b.length) {
|
|
1376
|
+
return false;
|
|
1377
|
+
} else {
|
|
1378
|
+
for (let index = 0; index < a.length; index++) {
|
|
1379
|
+
if (a[index] != b[index]) {
|
|
1380
|
+
return false;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
return true;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
// This method returns a number between 1 and 100 representing
|
|
1388
|
+
|
|
1389
|
+
// the % of the group's overall space this panel should occupy.
|
|
1390
|
+
function computePanelFlexBoxStyle({
|
|
1391
|
+
defaultSize,
|
|
1392
|
+
dragState,
|
|
1393
|
+
layout,
|
|
1394
|
+
panelData,
|
|
1395
|
+
panelIndex,
|
|
1396
|
+
precision = 3
|
|
1397
|
+
}) {
|
|
1398
|
+
const size = layout[panelIndex];
|
|
1399
|
+
let flexGrow;
|
|
1400
|
+
if (size == null) {
|
|
1401
|
+
// Initial render (before panels have registered themselves)
|
|
1402
|
+
// In order to support server rendering, fall back to default size if provided
|
|
1403
|
+
flexGrow = defaultSize != undefined ? defaultSize.toPrecision(precision) : "1";
|
|
1404
|
+
} else if (panelData.length === 1) {
|
|
1405
|
+
// Special case: Single panel group should always fill full width/height
|
|
1406
|
+
flexGrow = "1";
|
|
1407
|
+
} else {
|
|
1408
|
+
flexGrow = size.toPrecision(precision);
|
|
1409
|
+
}
|
|
1410
|
+
return {
|
|
1411
|
+
flexBasis: 0,
|
|
1412
|
+
flexGrow,
|
|
1413
|
+
flexShrink: 1,
|
|
1414
|
+
// Without this, Panel sizes may be unintentionally overridden by their content
|
|
1415
|
+
overflow: "hidden",
|
|
1416
|
+
// Disable pointer events inside of a panel during resize
|
|
1417
|
+
// This avoid edge cases like nested iframes
|
|
1418
|
+
pointerEvents: dragState !== null ? "none" : undefined
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
function debounce(callback, durationMs = 10) {
|
|
1423
|
+
let timeoutId = null;
|
|
1424
|
+
let callable = (...args) => {
|
|
1425
|
+
if (timeoutId !== null) {
|
|
1426
|
+
clearTimeout(timeoutId);
|
|
1427
|
+
}
|
|
1428
|
+
timeoutId = setTimeout(() => {
|
|
1429
|
+
callback(...args);
|
|
1430
|
+
}, durationMs);
|
|
1431
|
+
};
|
|
1432
|
+
return callable;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
// PanelGroup might be rendering in a server-side environment where localStorage is not available
|
|
1436
|
+
// or on a browser with cookies/storage disabled.
|
|
1437
|
+
// In either case, this function avoids accessing localStorage until needed,
|
|
1438
|
+
// and avoids throwing user-visible errors.
|
|
1439
|
+
function initializeDefaultStorage(storageObject) {
|
|
1440
|
+
try {
|
|
1441
|
+
if (typeof localStorage !== "undefined") {
|
|
1442
|
+
// Bypass this check for future calls
|
|
1443
|
+
storageObject.getItem = name => {
|
|
1444
|
+
return localStorage.getItem(name);
|
|
1445
|
+
};
|
|
1446
|
+
storageObject.setItem = (name, value) => {
|
|
1447
|
+
localStorage.setItem(name, value);
|
|
1448
|
+
};
|
|
1449
|
+
} else {
|
|
1450
|
+
throw new Error("localStorage not supported in this environment");
|
|
1451
|
+
}
|
|
1452
|
+
} catch (error) {
|
|
1453
|
+
console.error(error);
|
|
1454
|
+
storageObject.getItem = () => null;
|
|
1455
|
+
storageObject.setItem = () => {};
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
function getPanelGroupKey(autoSaveId) {
|
|
1460
|
+
return `react-resizable-panels:${autoSaveId}`;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
// Note that Panel ids might be user-provided (stable) or useId generated (non-deterministic)
|
|
1464
|
+
// so they should not be used as part of the serialization key.
|
|
1465
|
+
// Using the min/max size attributes should work well enough as a backup.
|
|
1466
|
+
// Pre-sorting by minSize allows remembering layouts even if panels are re-ordered/dragged.
|
|
1467
|
+
function getPanelKey(panels) {
|
|
1468
|
+
return panels.map(panel => {
|
|
1469
|
+
const {
|
|
1470
|
+
constraints,
|
|
1471
|
+
id,
|
|
1472
|
+
idIsFromProps,
|
|
1473
|
+
order
|
|
1474
|
+
} = panel;
|
|
1475
|
+
if (idIsFromProps) {
|
|
1476
|
+
return id;
|
|
1477
|
+
} else {
|
|
1478
|
+
return order ? `${order}:${JSON.stringify(constraints)}` : JSON.stringify(constraints);
|
|
1479
|
+
}
|
|
1480
|
+
}).sort((a, b) => a.localeCompare(b)).join(",");
|
|
1481
|
+
}
|
|
1482
|
+
function loadSerializedPanelGroupState(autoSaveId, storage) {
|
|
1483
|
+
try {
|
|
1484
|
+
const panelGroupKey = getPanelGroupKey(autoSaveId);
|
|
1485
|
+
const serialized = storage.getItem(panelGroupKey);
|
|
1486
|
+
if (serialized) {
|
|
1487
|
+
const parsed = JSON.parse(serialized);
|
|
1488
|
+
if (typeof parsed === "object" && parsed != null) {
|
|
1489
|
+
return parsed;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
} catch (error) {}
|
|
1493
|
+
return null;
|
|
1494
|
+
}
|
|
1495
|
+
function loadPanelGroupState(autoSaveId, panels, storage) {
|
|
1496
|
+
var _loadSerializedPanelG, _state$panelKey;
|
|
1497
|
+
const state = (_loadSerializedPanelG = loadSerializedPanelGroupState(autoSaveId, storage)) !== null && _loadSerializedPanelG !== void 0 ? _loadSerializedPanelG : {};
|
|
1498
|
+
const panelKey = getPanelKey(panels);
|
|
1499
|
+
return (_state$panelKey = state[panelKey]) !== null && _state$panelKey !== void 0 ? _state$panelKey : null;
|
|
1500
|
+
}
|
|
1501
|
+
function savePanelGroupState(autoSaveId, panels, panelSizesBeforeCollapse, sizes, storage) {
|
|
1502
|
+
var _loadSerializedPanelG2;
|
|
1503
|
+
const panelGroupKey = getPanelGroupKey(autoSaveId);
|
|
1504
|
+
const panelKey = getPanelKey(panels);
|
|
1505
|
+
const state = (_loadSerializedPanelG2 = loadSerializedPanelGroupState(autoSaveId, storage)) !== null && _loadSerializedPanelG2 !== void 0 ? _loadSerializedPanelG2 : {};
|
|
1506
|
+
state[panelKey] = {
|
|
1507
|
+
expandToSizes: Object.fromEntries(panelSizesBeforeCollapse.entries()),
|
|
1508
|
+
layout: sizes
|
|
1509
|
+
};
|
|
1510
|
+
try {
|
|
1511
|
+
storage.setItem(panelGroupKey, JSON.stringify(state));
|
|
1512
|
+
} catch (error) {
|
|
1513
|
+
console.error(error);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
// All units must be in percentages; pixel values should be pre-converted
|
|
1518
|
+
function validatePanelGroupLayout({
|
|
1519
|
+
layout: prevLayout,
|
|
1520
|
+
panelConstraints
|
|
1521
|
+
}) {
|
|
1522
|
+
const nextLayout = [...prevLayout];
|
|
1523
|
+
const nextLayoutTotalSize = nextLayout.reduce((accumulated, current) => accumulated + current, 0);
|
|
1524
|
+
|
|
1525
|
+
// Validate layout expectations
|
|
1526
|
+
if (nextLayout.length !== panelConstraints.length) {
|
|
1527
|
+
throw Error(`Invalid ${panelConstraints.length} panel layout: ${nextLayout.map(size => `${size}%`).join(", ")}`);
|
|
1528
|
+
} else if (!fuzzyNumbersEqual(nextLayoutTotalSize, 100) && nextLayout.length > 0) {
|
|
1529
|
+
for (let index = 0; index < panelConstraints.length; index++) {
|
|
1530
|
+
const unsafeSize = nextLayout[index];
|
|
1531
|
+
assert(unsafeSize != null, `No layout data found for index ${index}`);
|
|
1532
|
+
const safeSize = 100 / nextLayoutTotalSize * unsafeSize;
|
|
1533
|
+
nextLayout[index] = safeSize;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
let remainingSize = 0;
|
|
1537
|
+
|
|
1538
|
+
// First pass: Validate the proposed layout given each panel's constraints
|
|
1539
|
+
for (let index = 0; index < panelConstraints.length; index++) {
|
|
1540
|
+
const unsafeSize = nextLayout[index];
|
|
1541
|
+
assert(unsafeSize != null, `No layout data found for index ${index}`);
|
|
1542
|
+
const safeSize = resizePanel({
|
|
1543
|
+
panelConstraints,
|
|
1544
|
+
panelIndex: index,
|
|
1545
|
+
size: unsafeSize
|
|
1546
|
+
});
|
|
1547
|
+
if (unsafeSize != safeSize) {
|
|
1548
|
+
remainingSize += unsafeSize - safeSize;
|
|
1549
|
+
nextLayout[index] = safeSize;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
// If there is additional, left over space, assign it to any panel(s) that permits it
|
|
1554
|
+
// (It's not worth taking multiple additional passes to evenly distribute)
|
|
1555
|
+
if (!fuzzyNumbersEqual(remainingSize, 0)) {
|
|
1556
|
+
for (let index = 0; index < panelConstraints.length; index++) {
|
|
1557
|
+
const prevSize = nextLayout[index];
|
|
1558
|
+
assert(prevSize != null, `No layout data found for index ${index}`);
|
|
1559
|
+
const unsafeSize = prevSize + remainingSize;
|
|
1560
|
+
const safeSize = resizePanel({
|
|
1561
|
+
panelConstraints,
|
|
1562
|
+
panelIndex: index,
|
|
1563
|
+
size: unsafeSize
|
|
1564
|
+
});
|
|
1565
|
+
if (prevSize !== safeSize) {
|
|
1566
|
+
remainingSize -= safeSize - prevSize;
|
|
1567
|
+
nextLayout[index] = safeSize;
|
|
1568
|
+
|
|
1569
|
+
// Once we've used up the remainder, bail
|
|
1570
|
+
if (fuzzyNumbersEqual(remainingSize, 0)) {
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
return nextLayout;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
const LOCAL_STORAGE_DEBOUNCE_INTERVAL = 100;
|
|
1580
|
+
const defaultStorage = {
|
|
1581
|
+
getItem: name => {
|
|
1582
|
+
initializeDefaultStorage(defaultStorage);
|
|
1583
|
+
return defaultStorage.getItem(name);
|
|
1584
|
+
},
|
|
1585
|
+
setItem: (name, value) => {
|
|
1586
|
+
initializeDefaultStorage(defaultStorage);
|
|
1587
|
+
defaultStorage.setItem(name, value);
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
const debounceMap = {};
|
|
1591
|
+
function PanelGroupWithForwardedRef({
|
|
1592
|
+
autoSaveId = null,
|
|
1593
|
+
children,
|
|
1594
|
+
className: classNameFromProps = "",
|
|
1595
|
+
direction,
|
|
1596
|
+
forwardedRef,
|
|
1597
|
+
id: idFromProps = null,
|
|
1598
|
+
onLayout = null,
|
|
1599
|
+
keyboardResizeBy = null,
|
|
1600
|
+
storage = defaultStorage,
|
|
1601
|
+
style: styleFromProps,
|
|
1602
|
+
tagName: Type = "div",
|
|
1603
|
+
...rest
|
|
1604
|
+
}) {
|
|
1605
|
+
const groupId = useUniqueId(idFromProps);
|
|
1606
|
+
const panelGroupElementRef = React.useRef(null);
|
|
1607
|
+
const [dragState, setDragState] = React.useState(null);
|
|
1608
|
+
const [layout, setLayout] = React.useState([]);
|
|
1609
|
+
const forceUpdate = useForceUpdate();
|
|
1610
|
+
const panelIdToLastNotifiedSizeMapRef = React.useRef({});
|
|
1611
|
+
const panelSizeBeforeCollapseRef = React.useRef(new Map());
|
|
1612
|
+
const prevDeltaRef = React.useRef(0);
|
|
1613
|
+
const committedValuesRef = React.useRef({
|
|
1614
|
+
autoSaveId,
|
|
1615
|
+
direction,
|
|
1616
|
+
dragState,
|
|
1617
|
+
id: groupId,
|
|
1618
|
+
keyboardResizeBy,
|
|
1619
|
+
onLayout,
|
|
1620
|
+
storage
|
|
1621
|
+
});
|
|
1622
|
+
const eagerValuesRef = React.useRef({
|
|
1623
|
+
layout,
|
|
1624
|
+
panelDataArray: [],
|
|
1625
|
+
panelDataArrayChanged: false
|
|
1626
|
+
});
|
|
1627
|
+
React.useRef({
|
|
1628
|
+
didLogIdAndOrderWarning: false,
|
|
1629
|
+
didLogPanelConstraintsWarning: false,
|
|
1630
|
+
prevPanelIds: []
|
|
1631
|
+
});
|
|
1632
|
+
React.useImperativeHandle(forwardedRef, () => ({
|
|
1633
|
+
getId: () => committedValuesRef.current.id,
|
|
1634
|
+
getLayout: () => {
|
|
1635
|
+
const {
|
|
1636
|
+
layout
|
|
1637
|
+
} = eagerValuesRef.current;
|
|
1638
|
+
return layout;
|
|
1639
|
+
},
|
|
1640
|
+
setLayout: unsafeLayout => {
|
|
1641
|
+
const {
|
|
1642
|
+
onLayout
|
|
1643
|
+
} = committedValuesRef.current;
|
|
1644
|
+
const {
|
|
1645
|
+
layout: prevLayout,
|
|
1646
|
+
panelDataArray
|
|
1647
|
+
} = eagerValuesRef.current;
|
|
1648
|
+
const safeLayout = validatePanelGroupLayout({
|
|
1649
|
+
layout: unsafeLayout,
|
|
1650
|
+
panelConstraints: panelDataArray.map(panelData => panelData.constraints)
|
|
1651
|
+
});
|
|
1652
|
+
if (!areEqual(prevLayout, safeLayout)) {
|
|
1653
|
+
setLayout(safeLayout);
|
|
1654
|
+
eagerValuesRef.current.layout = safeLayout;
|
|
1655
|
+
if (onLayout) {
|
|
1656
|
+
onLayout(safeLayout);
|
|
1657
|
+
}
|
|
1658
|
+
callPanelCallbacks(panelDataArray, safeLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
}), []);
|
|
1662
|
+
useIsomorphicLayoutEffect(() => {
|
|
1663
|
+
committedValuesRef.current.autoSaveId = autoSaveId;
|
|
1664
|
+
committedValuesRef.current.direction = direction;
|
|
1665
|
+
committedValuesRef.current.dragState = dragState;
|
|
1666
|
+
committedValuesRef.current.id = groupId;
|
|
1667
|
+
committedValuesRef.current.onLayout = onLayout;
|
|
1668
|
+
committedValuesRef.current.storage = storage;
|
|
1669
|
+
});
|
|
1670
|
+
useWindowSplitterPanelGroupBehavior({
|
|
1671
|
+
committedValuesRef,
|
|
1672
|
+
eagerValuesRef,
|
|
1673
|
+
groupId,
|
|
1674
|
+
layout,
|
|
1675
|
+
panelDataArray: eagerValuesRef.current.panelDataArray,
|
|
1676
|
+
setLayout,
|
|
1677
|
+
panelGroupElement: panelGroupElementRef.current
|
|
1678
|
+
});
|
|
1679
|
+
React.useEffect(() => {
|
|
1680
|
+
const {
|
|
1681
|
+
panelDataArray
|
|
1682
|
+
} = eagerValuesRef.current;
|
|
1683
|
+
|
|
1684
|
+
// If this panel has been configured to persist sizing information, save sizes to local storage.
|
|
1685
|
+
if (autoSaveId) {
|
|
1686
|
+
if (layout.length === 0 || layout.length !== panelDataArray.length) {
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
let debouncedSave = debounceMap[autoSaveId];
|
|
1690
|
+
|
|
1691
|
+
// Limit the frequency of localStorage updates.
|
|
1692
|
+
if (debouncedSave == null) {
|
|
1693
|
+
debouncedSave = debounce(savePanelGroupState, LOCAL_STORAGE_DEBOUNCE_INTERVAL);
|
|
1694
|
+
debounceMap[autoSaveId] = debouncedSave;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
// Clone mutable data before passing to the debounced function,
|
|
1698
|
+
// else we run the risk of saving an incorrect combination of mutable and immutable values to state.
|
|
1699
|
+
const clonedPanelDataArray = [...panelDataArray];
|
|
1700
|
+
const clonedPanelSizesBeforeCollapse = new Map(panelSizeBeforeCollapseRef.current);
|
|
1701
|
+
debouncedSave(autoSaveId, clonedPanelDataArray, clonedPanelSizesBeforeCollapse, layout, storage);
|
|
1702
|
+
}
|
|
1703
|
+
}, [autoSaveId, layout, storage]);
|
|
1704
|
+
|
|
1705
|
+
// DEV warnings
|
|
1706
|
+
React.useEffect(() => {
|
|
1707
|
+
});
|
|
1708
|
+
|
|
1709
|
+
// External APIs are safe to memoize via committed values ref
|
|
1710
|
+
const collapsePanel = React.useCallback(panelData => {
|
|
1711
|
+
const {
|
|
1712
|
+
onLayout
|
|
1713
|
+
} = committedValuesRef.current;
|
|
1714
|
+
const {
|
|
1715
|
+
layout: prevLayout,
|
|
1716
|
+
panelDataArray
|
|
1717
|
+
} = eagerValuesRef.current;
|
|
1718
|
+
if (panelData.constraints.collapsible) {
|
|
1719
|
+
const panelConstraintsArray = panelDataArray.map(panelData => panelData.constraints);
|
|
1720
|
+
const {
|
|
1721
|
+
collapsedSize = 0,
|
|
1722
|
+
panelSize,
|
|
1723
|
+
pivotIndices
|
|
1724
|
+
} = panelDataHelper(panelDataArray, panelData, prevLayout);
|
|
1725
|
+
assert(panelSize != null, `Panel size not found for panel "${panelData.id}"`);
|
|
1726
|
+
if (!fuzzyNumbersEqual$1(panelSize, collapsedSize)) {
|
|
1727
|
+
// Store size before collapse;
|
|
1728
|
+
// This is the size that gets restored if the expand() API is used.
|
|
1729
|
+
panelSizeBeforeCollapseRef.current.set(panelData.id, panelSize);
|
|
1730
|
+
const isLastPanel = findPanelDataIndex(panelDataArray, panelData) === panelDataArray.length - 1;
|
|
1731
|
+
const delta = isLastPanel ? panelSize - collapsedSize : collapsedSize - panelSize;
|
|
1732
|
+
const nextLayout = adjustLayoutByDelta({
|
|
1733
|
+
delta,
|
|
1734
|
+
initialLayout: prevLayout,
|
|
1735
|
+
panelConstraints: panelConstraintsArray,
|
|
1736
|
+
pivotIndices,
|
|
1737
|
+
prevLayout,
|
|
1738
|
+
trigger: "imperative-api"
|
|
1739
|
+
});
|
|
1740
|
+
if (!compareLayouts(prevLayout, nextLayout)) {
|
|
1741
|
+
setLayout(nextLayout);
|
|
1742
|
+
eagerValuesRef.current.layout = nextLayout;
|
|
1743
|
+
if (onLayout) {
|
|
1744
|
+
onLayout(nextLayout);
|
|
1745
|
+
}
|
|
1746
|
+
callPanelCallbacks(panelDataArray, nextLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}, []);
|
|
1751
|
+
|
|
1752
|
+
// External APIs are safe to memoize via committed values ref
|
|
1753
|
+
const expandPanel = React.useCallback((panelData, minSizeOverride) => {
|
|
1754
|
+
const {
|
|
1755
|
+
onLayout
|
|
1756
|
+
} = committedValuesRef.current;
|
|
1757
|
+
const {
|
|
1758
|
+
layout: prevLayout,
|
|
1759
|
+
panelDataArray
|
|
1760
|
+
} = eagerValuesRef.current;
|
|
1761
|
+
if (panelData.constraints.collapsible) {
|
|
1762
|
+
const panelConstraintsArray = panelDataArray.map(panelData => panelData.constraints);
|
|
1763
|
+
const {
|
|
1764
|
+
collapsedSize = 0,
|
|
1765
|
+
panelSize = 0,
|
|
1766
|
+
minSize: minSizeFromProps = 0,
|
|
1767
|
+
pivotIndices
|
|
1768
|
+
} = panelDataHelper(panelDataArray, panelData, prevLayout);
|
|
1769
|
+
const minSize = minSizeOverride !== null && minSizeOverride !== void 0 ? minSizeOverride : minSizeFromProps;
|
|
1770
|
+
if (fuzzyNumbersEqual$1(panelSize, collapsedSize)) {
|
|
1771
|
+
// Restore this panel to the size it was before it was collapsed, if possible.
|
|
1772
|
+
const prevPanelSize = panelSizeBeforeCollapseRef.current.get(panelData.id);
|
|
1773
|
+
const baseSize = prevPanelSize != null && prevPanelSize >= minSize ? prevPanelSize : minSize;
|
|
1774
|
+
const isLastPanel = findPanelDataIndex(panelDataArray, panelData) === panelDataArray.length - 1;
|
|
1775
|
+
const delta = isLastPanel ? panelSize - baseSize : baseSize - panelSize;
|
|
1776
|
+
const nextLayout = adjustLayoutByDelta({
|
|
1777
|
+
delta,
|
|
1778
|
+
initialLayout: prevLayout,
|
|
1779
|
+
panelConstraints: panelConstraintsArray,
|
|
1780
|
+
pivotIndices,
|
|
1781
|
+
prevLayout,
|
|
1782
|
+
trigger: "imperative-api"
|
|
1783
|
+
});
|
|
1784
|
+
if (!compareLayouts(prevLayout, nextLayout)) {
|
|
1785
|
+
setLayout(nextLayout);
|
|
1786
|
+
eagerValuesRef.current.layout = nextLayout;
|
|
1787
|
+
if (onLayout) {
|
|
1788
|
+
onLayout(nextLayout);
|
|
1789
|
+
}
|
|
1790
|
+
callPanelCallbacks(panelDataArray, nextLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}, []);
|
|
1795
|
+
|
|
1796
|
+
// External APIs are safe to memoize via committed values ref
|
|
1797
|
+
const getPanelSize = React.useCallback(panelData => {
|
|
1798
|
+
const {
|
|
1799
|
+
layout,
|
|
1800
|
+
panelDataArray
|
|
1801
|
+
} = eagerValuesRef.current;
|
|
1802
|
+
const {
|
|
1803
|
+
panelSize
|
|
1804
|
+
} = panelDataHelper(panelDataArray, panelData, layout);
|
|
1805
|
+
assert(panelSize != null, `Panel size not found for panel "${panelData.id}"`);
|
|
1806
|
+
return panelSize;
|
|
1807
|
+
}, []);
|
|
1808
|
+
|
|
1809
|
+
// This API should never read from committedValuesRef
|
|
1810
|
+
const getPanelStyle = React.useCallback((panelData, defaultSize) => {
|
|
1811
|
+
const {
|
|
1812
|
+
panelDataArray
|
|
1813
|
+
} = eagerValuesRef.current;
|
|
1814
|
+
const panelIndex = findPanelDataIndex(panelDataArray, panelData);
|
|
1815
|
+
return computePanelFlexBoxStyle({
|
|
1816
|
+
defaultSize,
|
|
1817
|
+
dragState,
|
|
1818
|
+
layout,
|
|
1819
|
+
panelData: panelDataArray,
|
|
1820
|
+
panelIndex
|
|
1821
|
+
});
|
|
1822
|
+
}, [dragState, layout]);
|
|
1823
|
+
|
|
1824
|
+
// External APIs are safe to memoize via committed values ref
|
|
1825
|
+
const isPanelCollapsed = React.useCallback(panelData => {
|
|
1826
|
+
const {
|
|
1827
|
+
layout,
|
|
1828
|
+
panelDataArray
|
|
1829
|
+
} = eagerValuesRef.current;
|
|
1830
|
+
const {
|
|
1831
|
+
collapsedSize = 0,
|
|
1832
|
+
collapsible,
|
|
1833
|
+
panelSize
|
|
1834
|
+
} = panelDataHelper(panelDataArray, panelData, layout);
|
|
1835
|
+
assert(panelSize != null, `Panel size not found for panel "${panelData.id}"`);
|
|
1836
|
+
return collapsible === true && fuzzyNumbersEqual$1(panelSize, collapsedSize);
|
|
1837
|
+
}, []);
|
|
1838
|
+
|
|
1839
|
+
// External APIs are safe to memoize via committed values ref
|
|
1840
|
+
const isPanelExpanded = React.useCallback(panelData => {
|
|
1841
|
+
const {
|
|
1842
|
+
layout,
|
|
1843
|
+
panelDataArray
|
|
1844
|
+
} = eagerValuesRef.current;
|
|
1845
|
+
const {
|
|
1846
|
+
collapsedSize = 0,
|
|
1847
|
+
collapsible,
|
|
1848
|
+
panelSize
|
|
1849
|
+
} = panelDataHelper(panelDataArray, panelData, layout);
|
|
1850
|
+
assert(panelSize != null, `Panel size not found for panel "${panelData.id}"`);
|
|
1851
|
+
return !collapsible || fuzzyCompareNumbers(panelSize, collapsedSize) > 0;
|
|
1852
|
+
}, []);
|
|
1853
|
+
const registerPanel = React.useCallback(panelData => {
|
|
1854
|
+
const {
|
|
1855
|
+
panelDataArray
|
|
1856
|
+
} = eagerValuesRef.current;
|
|
1857
|
+
panelDataArray.push(panelData);
|
|
1858
|
+
panelDataArray.sort((panelA, panelB) => {
|
|
1859
|
+
const orderA = panelA.order;
|
|
1860
|
+
const orderB = panelB.order;
|
|
1861
|
+
if (orderA == null && orderB == null) {
|
|
1862
|
+
return 0;
|
|
1863
|
+
} else if (orderA == null) {
|
|
1864
|
+
return -1;
|
|
1865
|
+
} else if (orderB == null) {
|
|
1866
|
+
return 1;
|
|
1867
|
+
} else {
|
|
1868
|
+
return orderA - orderB;
|
|
1869
|
+
}
|
|
1870
|
+
});
|
|
1871
|
+
eagerValuesRef.current.panelDataArrayChanged = true;
|
|
1872
|
+
forceUpdate();
|
|
1873
|
+
}, [forceUpdate]);
|
|
1874
|
+
|
|
1875
|
+
// (Re)calculate group layout whenever panels are registered or unregistered.
|
|
1876
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1877
|
+
useIsomorphicLayoutEffect(() => {
|
|
1878
|
+
if (eagerValuesRef.current.panelDataArrayChanged) {
|
|
1879
|
+
eagerValuesRef.current.panelDataArrayChanged = false;
|
|
1880
|
+
const {
|
|
1881
|
+
autoSaveId,
|
|
1882
|
+
onLayout,
|
|
1883
|
+
storage
|
|
1884
|
+
} = committedValuesRef.current;
|
|
1885
|
+
const {
|
|
1886
|
+
layout: prevLayout,
|
|
1887
|
+
panelDataArray
|
|
1888
|
+
} = eagerValuesRef.current;
|
|
1889
|
+
|
|
1890
|
+
// If this panel has been configured to persist sizing information,
|
|
1891
|
+
// default size should be restored from local storage if possible.
|
|
1892
|
+
let unsafeLayout = null;
|
|
1893
|
+
if (autoSaveId) {
|
|
1894
|
+
const state = loadPanelGroupState(autoSaveId, panelDataArray, storage);
|
|
1895
|
+
if (state) {
|
|
1896
|
+
panelSizeBeforeCollapseRef.current = new Map(Object.entries(state.expandToSizes));
|
|
1897
|
+
unsafeLayout = state.layout;
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
if (unsafeLayout == null) {
|
|
1901
|
+
unsafeLayout = calculateUnsafeDefaultLayout({
|
|
1902
|
+
panelDataArray
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
// Validate even saved layouts in case something has changed since last render
|
|
1907
|
+
// e.g. for pixel groups, this could be the size of the window
|
|
1908
|
+
const nextLayout = validatePanelGroupLayout({
|
|
1909
|
+
layout: unsafeLayout,
|
|
1910
|
+
panelConstraints: panelDataArray.map(panelData => panelData.constraints)
|
|
1911
|
+
});
|
|
1912
|
+
if (!areEqual(prevLayout, nextLayout)) {
|
|
1913
|
+
setLayout(nextLayout);
|
|
1914
|
+
eagerValuesRef.current.layout = nextLayout;
|
|
1915
|
+
if (onLayout) {
|
|
1916
|
+
onLayout(nextLayout);
|
|
1917
|
+
}
|
|
1918
|
+
callPanelCallbacks(panelDataArray, nextLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
});
|
|
1922
|
+
|
|
1923
|
+
// Reset the cached layout if hidden by the Activity/Offscreen API
|
|
1924
|
+
useIsomorphicLayoutEffect(() => {
|
|
1925
|
+
const eagerValues = eagerValuesRef.current;
|
|
1926
|
+
return () => {
|
|
1927
|
+
eagerValues.layout = [];
|
|
1928
|
+
};
|
|
1929
|
+
}, []);
|
|
1930
|
+
const registerResizeHandle = React.useCallback(dragHandleId => {
|
|
1931
|
+
let isRTL = false;
|
|
1932
|
+
const panelGroupElement = panelGroupElementRef.current;
|
|
1933
|
+
if (panelGroupElement) {
|
|
1934
|
+
const style = window.getComputedStyle(panelGroupElement, null);
|
|
1935
|
+
if (style.getPropertyValue("direction") === "rtl") {
|
|
1936
|
+
isRTL = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
return function resizeHandler(event) {
|
|
1940
|
+
event.preventDefault();
|
|
1941
|
+
const panelGroupElement = panelGroupElementRef.current;
|
|
1942
|
+
if (!panelGroupElement) {
|
|
1943
|
+
return () => null;
|
|
1944
|
+
}
|
|
1945
|
+
const {
|
|
1946
|
+
direction,
|
|
1947
|
+
dragState,
|
|
1948
|
+
id: groupId,
|
|
1949
|
+
keyboardResizeBy,
|
|
1950
|
+
onLayout
|
|
1951
|
+
} = committedValuesRef.current;
|
|
1952
|
+
const {
|
|
1953
|
+
layout: prevLayout,
|
|
1954
|
+
panelDataArray
|
|
1955
|
+
} = eagerValuesRef.current;
|
|
1956
|
+
const {
|
|
1957
|
+
initialLayout
|
|
1958
|
+
} = dragState !== null && dragState !== void 0 ? dragState : {};
|
|
1959
|
+
const pivotIndices = determinePivotIndices(groupId, dragHandleId, panelGroupElement);
|
|
1960
|
+
let delta = calculateDeltaPercentage(event, dragHandleId, direction, dragState, keyboardResizeBy, panelGroupElement);
|
|
1961
|
+
const isHorizontal = direction === "horizontal";
|
|
1962
|
+
if (isHorizontal && isRTL) {
|
|
1963
|
+
delta = -delta;
|
|
1964
|
+
}
|
|
1965
|
+
const panelConstraints = panelDataArray.map(panelData => panelData.constraints);
|
|
1966
|
+
const nextLayout = adjustLayoutByDelta({
|
|
1967
|
+
delta,
|
|
1968
|
+
initialLayout: initialLayout !== null && initialLayout !== void 0 ? initialLayout : prevLayout,
|
|
1969
|
+
panelConstraints,
|
|
1970
|
+
pivotIndices,
|
|
1971
|
+
prevLayout,
|
|
1972
|
+
trigger: isKeyDown(event) ? "keyboard" : "mouse-or-touch"
|
|
1973
|
+
});
|
|
1974
|
+
const layoutChanged = !compareLayouts(prevLayout, nextLayout);
|
|
1975
|
+
|
|
1976
|
+
// Only update the cursor for layout changes triggered by touch/mouse events (not keyboard)
|
|
1977
|
+
// Update the cursor even if the layout hasn't changed (we may need to show an invalid cursor state)
|
|
1978
|
+
if (isPointerEvent(event) || isMouseEvent(event)) {
|
|
1979
|
+
// Watch for multiple subsequent deltas; this might occur for tiny cursor movements.
|
|
1980
|
+
// In this case, Panel sizes might not change–
|
|
1981
|
+
// but updating cursor in this scenario would cause a flicker.
|
|
1982
|
+
if (prevDeltaRef.current != delta) {
|
|
1983
|
+
prevDeltaRef.current = delta;
|
|
1984
|
+
if (!layoutChanged && delta !== 0) {
|
|
1985
|
+
// If the pointer has moved too far to resize the panel any further, note this so we can update the cursor.
|
|
1986
|
+
// This mimics VS Code behavior.
|
|
1987
|
+
if (isHorizontal) {
|
|
1988
|
+
reportConstraintsViolation(dragHandleId, delta < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX);
|
|
1989
|
+
} else {
|
|
1990
|
+
reportConstraintsViolation(dragHandleId, delta < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX);
|
|
1991
|
+
}
|
|
1992
|
+
} else {
|
|
1993
|
+
reportConstraintsViolation(dragHandleId, 0);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
if (layoutChanged) {
|
|
1998
|
+
setLayout(nextLayout);
|
|
1999
|
+
eagerValuesRef.current.layout = nextLayout;
|
|
2000
|
+
if (onLayout) {
|
|
2001
|
+
onLayout(nextLayout);
|
|
2002
|
+
}
|
|
2003
|
+
callPanelCallbacks(panelDataArray, nextLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
2004
|
+
}
|
|
2005
|
+
};
|
|
2006
|
+
}, []);
|
|
2007
|
+
|
|
2008
|
+
// External APIs are safe to memoize via committed values ref
|
|
2009
|
+
const resizePanel = React.useCallback((panelData, unsafePanelSize) => {
|
|
2010
|
+
const {
|
|
2011
|
+
onLayout
|
|
2012
|
+
} = committedValuesRef.current;
|
|
2013
|
+
const {
|
|
2014
|
+
layout: prevLayout,
|
|
2015
|
+
panelDataArray
|
|
2016
|
+
} = eagerValuesRef.current;
|
|
2017
|
+
const panelConstraintsArray = panelDataArray.map(panelData => panelData.constraints);
|
|
2018
|
+
const {
|
|
2019
|
+
panelSize,
|
|
2020
|
+
pivotIndices
|
|
2021
|
+
} = panelDataHelper(panelDataArray, panelData, prevLayout);
|
|
2022
|
+
assert(panelSize != null, `Panel size not found for panel "${panelData.id}"`);
|
|
2023
|
+
const isLastPanel = findPanelDataIndex(panelDataArray, panelData) === panelDataArray.length - 1;
|
|
2024
|
+
const delta = isLastPanel ? panelSize - unsafePanelSize : unsafePanelSize - panelSize;
|
|
2025
|
+
const nextLayout = adjustLayoutByDelta({
|
|
2026
|
+
delta,
|
|
2027
|
+
initialLayout: prevLayout,
|
|
2028
|
+
panelConstraints: panelConstraintsArray,
|
|
2029
|
+
pivotIndices,
|
|
2030
|
+
prevLayout,
|
|
2031
|
+
trigger: "imperative-api"
|
|
2032
|
+
});
|
|
2033
|
+
if (!compareLayouts(prevLayout, nextLayout)) {
|
|
2034
|
+
setLayout(nextLayout);
|
|
2035
|
+
eagerValuesRef.current.layout = nextLayout;
|
|
2036
|
+
if (onLayout) {
|
|
2037
|
+
onLayout(nextLayout);
|
|
2038
|
+
}
|
|
2039
|
+
callPanelCallbacks(panelDataArray, nextLayout, panelIdToLastNotifiedSizeMapRef.current);
|
|
2040
|
+
}
|
|
2041
|
+
}, []);
|
|
2042
|
+
const reevaluatePanelConstraints = React.useCallback((panelData, prevConstraints) => {
|
|
2043
|
+
const {
|
|
2044
|
+
layout,
|
|
2045
|
+
panelDataArray
|
|
2046
|
+
} = eagerValuesRef.current;
|
|
2047
|
+
const {
|
|
2048
|
+
collapsedSize: prevCollapsedSize = 0,
|
|
2049
|
+
collapsible: prevCollapsible
|
|
2050
|
+
} = prevConstraints;
|
|
2051
|
+
const {
|
|
2052
|
+
collapsedSize: nextCollapsedSize = 0,
|
|
2053
|
+
collapsible: nextCollapsible,
|
|
2054
|
+
maxSize: nextMaxSize = 100,
|
|
2055
|
+
minSize: nextMinSize = 0
|
|
2056
|
+
} = panelData.constraints;
|
|
2057
|
+
const {
|
|
2058
|
+
panelSize: prevPanelSize
|
|
2059
|
+
} = panelDataHelper(panelDataArray, panelData, layout);
|
|
2060
|
+
if (prevPanelSize == null) {
|
|
2061
|
+
// It's possible that the panels in this group have changed since the last render
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2064
|
+
if (prevCollapsible && nextCollapsible && fuzzyNumbersEqual$1(prevPanelSize, prevCollapsedSize)) {
|
|
2065
|
+
if (!fuzzyNumbersEqual$1(prevCollapsedSize, nextCollapsedSize)) {
|
|
2066
|
+
resizePanel(panelData, nextCollapsedSize);
|
|
2067
|
+
}
|
|
2068
|
+
} else if (prevPanelSize < nextMinSize) {
|
|
2069
|
+
resizePanel(panelData, nextMinSize);
|
|
2070
|
+
} else if (prevPanelSize > nextMaxSize) {
|
|
2071
|
+
resizePanel(panelData, nextMaxSize);
|
|
2072
|
+
}
|
|
2073
|
+
}, [resizePanel]);
|
|
2074
|
+
|
|
2075
|
+
// TODO Multiple drag handles can be active at the same time so this API is a bit awkward now
|
|
2076
|
+
const startDragging = React.useCallback((dragHandleId, event) => {
|
|
2077
|
+
const {
|
|
2078
|
+
direction
|
|
2079
|
+
} = committedValuesRef.current;
|
|
2080
|
+
const {
|
|
2081
|
+
layout
|
|
2082
|
+
} = eagerValuesRef.current;
|
|
2083
|
+
if (!panelGroupElementRef.current) {
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2086
|
+
const handleElement = getResizeHandleElement(dragHandleId, panelGroupElementRef.current);
|
|
2087
|
+
assert(handleElement, `Drag handle element not found for id "${dragHandleId}"`);
|
|
2088
|
+
const initialCursorPosition = getResizeEventCursorPosition(direction, event);
|
|
2089
|
+
setDragState({
|
|
2090
|
+
dragHandleId,
|
|
2091
|
+
dragHandleRect: handleElement.getBoundingClientRect(),
|
|
2092
|
+
initialCursorPosition,
|
|
2093
|
+
initialLayout: layout
|
|
2094
|
+
});
|
|
2095
|
+
}, []);
|
|
2096
|
+
const stopDragging = React.useCallback(() => {
|
|
2097
|
+
setDragState(null);
|
|
2098
|
+
}, []);
|
|
2099
|
+
const unregisterPanel = React.useCallback(panelData => {
|
|
2100
|
+
const {
|
|
2101
|
+
panelDataArray
|
|
2102
|
+
} = eagerValuesRef.current;
|
|
2103
|
+
const index = findPanelDataIndex(panelDataArray, panelData);
|
|
2104
|
+
if (index >= 0) {
|
|
2105
|
+
panelDataArray.splice(index, 1);
|
|
2106
|
+
|
|
2107
|
+
// TRICKY
|
|
2108
|
+
// When a panel is removed from the group, we should delete the most recent prev-size entry for it.
|
|
2109
|
+
// If we don't do this, then a conditionally rendered panel might not call onResize when it's re-mounted.
|
|
2110
|
+
// Strict effects mode makes this tricky though because all panels will be registered, unregistered, then re-registered on mount.
|
|
2111
|
+
delete panelIdToLastNotifiedSizeMapRef.current[panelData.id];
|
|
2112
|
+
eagerValuesRef.current.panelDataArrayChanged = true;
|
|
2113
|
+
forceUpdate();
|
|
2114
|
+
}
|
|
2115
|
+
}, [forceUpdate]);
|
|
2116
|
+
const context = React.useMemo(() => ({
|
|
2117
|
+
collapsePanel,
|
|
2118
|
+
direction,
|
|
2119
|
+
dragState,
|
|
2120
|
+
expandPanel,
|
|
2121
|
+
getPanelSize,
|
|
2122
|
+
getPanelStyle,
|
|
2123
|
+
groupId,
|
|
2124
|
+
isPanelCollapsed,
|
|
2125
|
+
isPanelExpanded,
|
|
2126
|
+
reevaluatePanelConstraints,
|
|
2127
|
+
registerPanel,
|
|
2128
|
+
registerResizeHandle,
|
|
2129
|
+
resizePanel,
|
|
2130
|
+
startDragging,
|
|
2131
|
+
stopDragging,
|
|
2132
|
+
unregisterPanel,
|
|
2133
|
+
panelGroupElement: panelGroupElementRef.current
|
|
2134
|
+
}), [collapsePanel, dragState, direction, expandPanel, getPanelSize, getPanelStyle, groupId, isPanelCollapsed, isPanelExpanded, reevaluatePanelConstraints, registerPanel, registerResizeHandle, resizePanel, startDragging, stopDragging, unregisterPanel]);
|
|
2135
|
+
const style = {
|
|
2136
|
+
display: "flex",
|
|
2137
|
+
flexDirection: direction === "horizontal" ? "row" : "column",
|
|
2138
|
+
height: "100%",
|
|
2139
|
+
overflow: "hidden",
|
|
2140
|
+
width: "100%"
|
|
2141
|
+
};
|
|
2142
|
+
return React.createElement(PanelGroupContext.Provider, {
|
|
2143
|
+
value: context
|
|
2144
|
+
}, React.createElement(Type, {
|
|
2145
|
+
...rest,
|
|
2146
|
+
children,
|
|
2147
|
+
className: classNameFromProps,
|
|
2148
|
+
id: idFromProps,
|
|
2149
|
+
ref: panelGroupElementRef,
|
|
2150
|
+
style: {
|
|
2151
|
+
...style,
|
|
2152
|
+
...styleFromProps
|
|
2153
|
+
},
|
|
2154
|
+
// CSS selectors
|
|
2155
|
+
[DATA_ATTRIBUTES.group]: "",
|
|
2156
|
+
[DATA_ATTRIBUTES.groupDirection]: direction,
|
|
2157
|
+
[DATA_ATTRIBUTES.groupId]: groupId
|
|
2158
|
+
}));
|
|
2159
|
+
}
|
|
2160
|
+
const PanelGroup = React.forwardRef((props, ref) => React.createElement(PanelGroupWithForwardedRef, {
|
|
2161
|
+
...props,
|
|
2162
|
+
forwardedRef: ref
|
|
2163
|
+
}));
|
|
2164
|
+
PanelGroupWithForwardedRef.displayName = "PanelGroup";
|
|
2165
|
+
PanelGroup.displayName = "forwardRef(PanelGroup)";
|
|
2166
|
+
function findPanelDataIndex(panelDataArray, panelData) {
|
|
2167
|
+
return panelDataArray.findIndex(prevPanelData => prevPanelData === panelData || prevPanelData.id === panelData.id);
|
|
2168
|
+
}
|
|
2169
|
+
function panelDataHelper(panelDataArray, panelData, layout) {
|
|
2170
|
+
const panelIndex = findPanelDataIndex(panelDataArray, panelData);
|
|
2171
|
+
const isLastPanel = panelIndex === panelDataArray.length - 1;
|
|
2172
|
+
const pivotIndices = isLastPanel ? [panelIndex - 1, panelIndex] : [panelIndex, panelIndex + 1];
|
|
2173
|
+
const panelSize = layout[panelIndex];
|
|
2174
|
+
return {
|
|
2175
|
+
...panelData.constraints,
|
|
2176
|
+
panelSize,
|
|
2177
|
+
pivotIndices
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
// https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/
|
|
2182
|
+
|
|
2183
|
+
function useWindowSplitterResizeHandlerBehavior({
|
|
2184
|
+
disabled,
|
|
2185
|
+
handleId,
|
|
2186
|
+
resizeHandler,
|
|
2187
|
+
panelGroupElement
|
|
2188
|
+
}) {
|
|
2189
|
+
React.useEffect(() => {
|
|
2190
|
+
if (disabled || resizeHandler == null || panelGroupElement == null) {
|
|
2191
|
+
return;
|
|
2192
|
+
}
|
|
2193
|
+
const handleElement = getResizeHandleElement(handleId, panelGroupElement);
|
|
2194
|
+
if (handleElement == null) {
|
|
2195
|
+
return;
|
|
2196
|
+
}
|
|
2197
|
+
const onKeyDown = event => {
|
|
2198
|
+
if (event.defaultPrevented) {
|
|
2199
|
+
return;
|
|
2200
|
+
}
|
|
2201
|
+
switch (event.key) {
|
|
2202
|
+
case "ArrowDown":
|
|
2203
|
+
case "ArrowLeft":
|
|
2204
|
+
case "ArrowRight":
|
|
2205
|
+
case "ArrowUp":
|
|
2206
|
+
case "End":
|
|
2207
|
+
case "Home":
|
|
2208
|
+
{
|
|
2209
|
+
event.preventDefault();
|
|
2210
|
+
resizeHandler(event);
|
|
2211
|
+
break;
|
|
2212
|
+
}
|
|
2213
|
+
case "F6":
|
|
2214
|
+
{
|
|
2215
|
+
event.preventDefault();
|
|
2216
|
+
const groupId = handleElement.getAttribute(DATA_ATTRIBUTES.groupId);
|
|
2217
|
+
assert(groupId, `No group element found for id "${groupId}"`);
|
|
2218
|
+
const handles = getResizeHandleElementsForGroup(groupId, panelGroupElement);
|
|
2219
|
+
const index = getResizeHandleElementIndex(groupId, handleId, panelGroupElement);
|
|
2220
|
+
assert(index !== null, `No resize element found for id "${handleId}"`);
|
|
2221
|
+
const nextIndex = event.shiftKey ? index > 0 ? index - 1 : handles.length - 1 : index + 1 < handles.length ? index + 1 : 0;
|
|
2222
|
+
const nextHandle = handles[nextIndex];
|
|
2223
|
+
nextHandle.focus();
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
handleElement.addEventListener("keydown", onKeyDown);
|
|
2229
|
+
return () => {
|
|
2230
|
+
handleElement.removeEventListener("keydown", onKeyDown);
|
|
2231
|
+
};
|
|
2232
|
+
}, [panelGroupElement, disabled, handleId, resizeHandler]);
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
function PanelResizeHandle({
|
|
2236
|
+
children = null,
|
|
2237
|
+
className: classNameFromProps = "",
|
|
2238
|
+
disabled = false,
|
|
2239
|
+
hitAreaMargins,
|
|
2240
|
+
id: idFromProps,
|
|
2241
|
+
onBlur,
|
|
2242
|
+
onClick,
|
|
2243
|
+
onDragging,
|
|
2244
|
+
onFocus,
|
|
2245
|
+
onPointerDown,
|
|
2246
|
+
onPointerUp,
|
|
2247
|
+
style: styleFromProps = {},
|
|
2248
|
+
tabIndex = 0,
|
|
2249
|
+
tagName: Type = "div",
|
|
2250
|
+
...rest
|
|
2251
|
+
}) {
|
|
2252
|
+
var _hitAreaMargins$coars, _hitAreaMargins$fine;
|
|
2253
|
+
const elementRef = React.useRef(null);
|
|
2254
|
+
|
|
2255
|
+
// Use a ref to guard against users passing inline props
|
|
2256
|
+
const callbacksRef = React.useRef({
|
|
2257
|
+
onClick,
|
|
2258
|
+
onDragging,
|
|
2259
|
+
onPointerDown,
|
|
2260
|
+
onPointerUp
|
|
2261
|
+
});
|
|
2262
|
+
React.useEffect(() => {
|
|
2263
|
+
callbacksRef.current.onClick = onClick;
|
|
2264
|
+
callbacksRef.current.onDragging = onDragging;
|
|
2265
|
+
callbacksRef.current.onPointerDown = onPointerDown;
|
|
2266
|
+
callbacksRef.current.onPointerUp = onPointerUp;
|
|
2267
|
+
});
|
|
2268
|
+
const panelGroupContext = React.useContext(PanelGroupContext);
|
|
2269
|
+
if (panelGroupContext === null) {
|
|
2270
|
+
throw Error(`PanelResizeHandle components must be rendered within a PanelGroup container`);
|
|
2271
|
+
}
|
|
2272
|
+
const {
|
|
2273
|
+
direction,
|
|
2274
|
+
groupId,
|
|
2275
|
+
registerResizeHandle: registerResizeHandleWithParentGroup,
|
|
2276
|
+
startDragging,
|
|
2277
|
+
stopDragging,
|
|
2278
|
+
panelGroupElement
|
|
2279
|
+
} = panelGroupContext;
|
|
2280
|
+
const resizeHandleId = useUniqueId(idFromProps);
|
|
2281
|
+
const [state, setState] = React.useState("inactive");
|
|
2282
|
+
const [isFocused, setIsFocused] = React.useState(false);
|
|
2283
|
+
const [resizeHandler, setResizeHandler] = React.useState(null);
|
|
2284
|
+
const committedValuesRef = React.useRef({
|
|
2285
|
+
state
|
|
2286
|
+
});
|
|
2287
|
+
useIsomorphicLayoutEffect(() => {
|
|
2288
|
+
committedValuesRef.current.state = state;
|
|
2289
|
+
});
|
|
2290
|
+
React.useEffect(() => {
|
|
2291
|
+
if (disabled) {
|
|
2292
|
+
setResizeHandler(null);
|
|
2293
|
+
} else {
|
|
2294
|
+
const resizeHandler = registerResizeHandleWithParentGroup(resizeHandleId);
|
|
2295
|
+
setResizeHandler(() => resizeHandler);
|
|
2296
|
+
}
|
|
2297
|
+
}, [disabled, resizeHandleId, registerResizeHandleWithParentGroup]);
|
|
2298
|
+
|
|
2299
|
+
// Extract hit area margins before passing them to the effect's dependency array
|
|
2300
|
+
// so that inline object values won't trigger re-renders
|
|
2301
|
+
const coarseHitAreaMargins = (_hitAreaMargins$coars = hitAreaMargins === null || hitAreaMargins === void 0 ? void 0 : hitAreaMargins.coarse) !== null && _hitAreaMargins$coars !== void 0 ? _hitAreaMargins$coars : 15;
|
|
2302
|
+
const fineHitAreaMargins = (_hitAreaMargins$fine = hitAreaMargins === null || hitAreaMargins === void 0 ? void 0 : hitAreaMargins.fine) !== null && _hitAreaMargins$fine !== void 0 ? _hitAreaMargins$fine : 5;
|
|
2303
|
+
React.useEffect(() => {
|
|
2304
|
+
if (disabled || resizeHandler == null) {
|
|
2305
|
+
return;
|
|
2306
|
+
}
|
|
2307
|
+
const element = elementRef.current;
|
|
2308
|
+
assert(element, "Element ref not attached");
|
|
2309
|
+
let didMove = false;
|
|
2310
|
+
const setResizeHandlerState = (action, isActive, event) => {
|
|
2311
|
+
if (!isActive) {
|
|
2312
|
+
setState("inactive");
|
|
2313
|
+
return;
|
|
2314
|
+
}
|
|
2315
|
+
switch (action) {
|
|
2316
|
+
case "down":
|
|
2317
|
+
{
|
|
2318
|
+
setState("drag");
|
|
2319
|
+
didMove = false;
|
|
2320
|
+
assert(event, 'Expected event to be defined for "down" action');
|
|
2321
|
+
startDragging(resizeHandleId, event);
|
|
2322
|
+
const {
|
|
2323
|
+
onDragging,
|
|
2324
|
+
onPointerDown
|
|
2325
|
+
} = callbacksRef.current;
|
|
2326
|
+
onDragging === null || onDragging === void 0 ? void 0 : onDragging(true);
|
|
2327
|
+
onPointerDown === null || onPointerDown === void 0 ? void 0 : onPointerDown();
|
|
2328
|
+
break;
|
|
2329
|
+
}
|
|
2330
|
+
case "move":
|
|
2331
|
+
{
|
|
2332
|
+
const {
|
|
2333
|
+
state
|
|
2334
|
+
} = committedValuesRef.current;
|
|
2335
|
+
didMove = true;
|
|
2336
|
+
if (state !== "drag") {
|
|
2337
|
+
setState("hover");
|
|
2338
|
+
}
|
|
2339
|
+
assert(event, 'Expected event to be defined for "move" action');
|
|
2340
|
+
resizeHandler(event);
|
|
2341
|
+
break;
|
|
2342
|
+
}
|
|
2343
|
+
case "up":
|
|
2344
|
+
{
|
|
2345
|
+
setState("hover");
|
|
2346
|
+
stopDragging();
|
|
2347
|
+
const {
|
|
2348
|
+
onClick,
|
|
2349
|
+
onDragging,
|
|
2350
|
+
onPointerUp
|
|
2351
|
+
} = callbacksRef.current;
|
|
2352
|
+
onDragging === null || onDragging === void 0 ? void 0 : onDragging(false);
|
|
2353
|
+
onPointerUp === null || onPointerUp === void 0 ? void 0 : onPointerUp();
|
|
2354
|
+
if (!didMove) {
|
|
2355
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
2356
|
+
}
|
|
2357
|
+
break;
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
};
|
|
2361
|
+
return registerResizeHandle(resizeHandleId, element, direction, {
|
|
2362
|
+
coarse: coarseHitAreaMargins,
|
|
2363
|
+
fine: fineHitAreaMargins
|
|
2364
|
+
}, setResizeHandlerState);
|
|
2365
|
+
}, [coarseHitAreaMargins, direction, disabled, fineHitAreaMargins, registerResizeHandleWithParentGroup, resizeHandleId, resizeHandler, startDragging, stopDragging]);
|
|
2366
|
+
useWindowSplitterResizeHandlerBehavior({
|
|
2367
|
+
disabled,
|
|
2368
|
+
handleId: resizeHandleId,
|
|
2369
|
+
resizeHandler,
|
|
2370
|
+
panelGroupElement
|
|
2371
|
+
});
|
|
2372
|
+
const style = {
|
|
2373
|
+
touchAction: "none",
|
|
2374
|
+
userSelect: "none"
|
|
2375
|
+
};
|
|
2376
|
+
return React.createElement(Type, {
|
|
2377
|
+
...rest,
|
|
2378
|
+
children,
|
|
2379
|
+
className: classNameFromProps,
|
|
2380
|
+
id: idFromProps,
|
|
2381
|
+
onBlur: () => {
|
|
2382
|
+
setIsFocused(false);
|
|
2383
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
|
2384
|
+
},
|
|
2385
|
+
onFocus: () => {
|
|
2386
|
+
setIsFocused(true);
|
|
2387
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus();
|
|
2388
|
+
},
|
|
2389
|
+
ref: elementRef,
|
|
2390
|
+
role: "separator",
|
|
2391
|
+
style: {
|
|
2392
|
+
...style,
|
|
2393
|
+
...styleFromProps
|
|
2394
|
+
},
|
|
2395
|
+
tabIndex,
|
|
2396
|
+
// CSS selectors
|
|
2397
|
+
[DATA_ATTRIBUTES.groupDirection]: direction,
|
|
2398
|
+
[DATA_ATTRIBUTES.groupId]: groupId,
|
|
2399
|
+
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
2400
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: state === "drag" ? "pointer" : isFocused ? "keyboard" : undefined,
|
|
2401
|
+
[DATA_ATTRIBUTES.resizeHandleEnabled]: !disabled,
|
|
2402
|
+
[DATA_ATTRIBUTES.resizeHandleId]: resizeHandleId,
|
|
2403
|
+
[DATA_ATTRIBUTES.resizeHandleState]: state
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
2407
|
+
|
|
2408
|
+
exports.DATA_ATTRIBUTES = DATA_ATTRIBUTES;
|
|
2409
|
+
exports.Panel = Panel;
|
|
2410
|
+
exports.PanelGroup = PanelGroup;
|
|
2411
|
+
exports.PanelResizeHandle = PanelResizeHandle;
|
|
2412
|
+
exports.assert = assert;
|
|
2413
|
+
exports.getPanelGroupElement = getPanelGroupElement;
|
|
2414
|
+
exports.getResizeHandleElement = getResizeHandleElement;
|
|
2415
|
+
exports.getResizeHandleElementIndex = getResizeHandleElementIndex;
|
|
2416
|
+
exports.getResizeHandleElementsForGroup = getResizeHandleElementsForGroup;
|
|
2417
|
+
exports.getResizeHandlePanelIds = getResizeHandlePanelIds;
|
|
2418
|
+
exports.intersects = intersects;
|