@btst/stack 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.cjs +7 -0
- package/dist/_virtual/_commonjsHelpers.mjs +5 -0
- package/dist/_virtual/a11y-dark.cjs +5 -0
- package/dist/_virtual/a11y-dark.mjs +3 -0
- package/dist/_virtual/atom-dark.cjs +5 -0
- package/dist/_virtual/atom-dark.mjs +3 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
- package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
- package/dist/_virtual/cb.cjs +5 -0
- package/dist/_virtual/cb.mjs +3 -0
- package/dist/_virtual/coldark-cold.cjs +5 -0
- package/dist/_virtual/coldark-cold.mjs +3 -0
- package/dist/_virtual/coldark-dark.cjs +5 -0
- package/dist/_virtual/coldark-dark.mjs +3 -0
- package/dist/_virtual/coy-without-shadows.cjs +5 -0
- package/dist/_virtual/coy-without-shadows.mjs +3 -0
- package/dist/_virtual/coy.cjs +5 -0
- package/dist/_virtual/coy.mjs +3 -0
- package/dist/_virtual/darcula.cjs +5 -0
- package/dist/_virtual/darcula.mjs +3 -0
- package/dist/_virtual/dark.cjs +5 -0
- package/dist/_virtual/dark.mjs +3 -0
- package/dist/_virtual/dracula.cjs +5 -0
- package/dist/_virtual/dracula.mjs +3 -0
- package/dist/_virtual/duotone-dark.cjs +5 -0
- package/dist/_virtual/duotone-dark.mjs +3 -0
- package/dist/_virtual/duotone-earth.cjs +5 -0
- package/dist/_virtual/duotone-earth.mjs +3 -0
- package/dist/_virtual/duotone-forest.cjs +5 -0
- package/dist/_virtual/duotone-forest.mjs +3 -0
- package/dist/_virtual/duotone-light.cjs +5 -0
- package/dist/_virtual/duotone-light.mjs +3 -0
- package/dist/_virtual/duotone-sea.cjs +5 -0
- package/dist/_virtual/duotone-sea.mjs +3 -0
- package/dist/_virtual/duotone-space.cjs +5 -0
- package/dist/_virtual/duotone-space.mjs +3 -0
- package/dist/_virtual/funky.cjs +5 -0
- package/dist/_virtual/funky.mjs +3 -0
- package/dist/_virtual/ghcolors.cjs +5 -0
- package/dist/_virtual/ghcolors.mjs +3 -0
- package/dist/_virtual/gruvbox-dark.cjs +5 -0
- package/dist/_virtual/gruvbox-dark.mjs +3 -0
- package/dist/_virtual/gruvbox-light.cjs +5 -0
- package/dist/_virtual/gruvbox-light.mjs +3 -0
- package/dist/_virtual/holi-theme.cjs +5 -0
- package/dist/_virtual/holi-theme.mjs +3 -0
- package/dist/_virtual/hopscotch.cjs +5 -0
- package/dist/_virtual/hopscotch.mjs +3 -0
- package/dist/_virtual/index.cjs +9 -0
- package/dist/_virtual/index.mjs +7 -0
- package/dist/_virtual/index2.cjs +7 -0
- package/dist/_virtual/index2.mjs +5 -0
- package/dist/_virtual/index3.cjs +7 -0
- package/dist/_virtual/index3.mjs +5 -0
- package/dist/_virtual/index4.cjs +9 -0
- package/dist/_virtual/index4.mjs +7 -0
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.mjs +3 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.mjs +3 -0
- package/dist/_virtual/index7.cjs +5 -0
- package/dist/_virtual/index7.mjs +3 -0
- package/dist/_virtual/index8.cjs +5 -0
- package/dist/_virtual/index8.mjs +3 -0
- package/dist/_virtual/interopRequireDefault.cjs +5 -0
- package/dist/_virtual/interopRequireDefault.mjs +3 -0
- package/dist/_virtual/lucario.cjs +5 -0
- package/dist/_virtual/lucario.mjs +3 -0
- package/dist/_virtual/material-dark.cjs +5 -0
- package/dist/_virtual/material-dark.mjs +3 -0
- package/dist/_virtual/material-light.cjs +5 -0
- package/dist/_virtual/material-light.mjs +3 -0
- package/dist/_virtual/material-oceanic.cjs +5 -0
- package/dist/_virtual/material-oceanic.mjs +3 -0
- package/dist/_virtual/night-owl.cjs +5 -0
- package/dist/_virtual/night-owl.mjs +3 -0
- package/dist/_virtual/nord.cjs +5 -0
- package/dist/_virtual/nord.mjs +3 -0
- package/dist/_virtual/okaidia.cjs +5 -0
- package/dist/_virtual/okaidia.mjs +3 -0
- package/dist/_virtual/one-dark.cjs +5 -0
- package/dist/_virtual/one-dark.mjs +3 -0
- package/dist/_virtual/one-light.cjs +5 -0
- package/dist/_virtual/one-light.mjs +3 -0
- package/dist/_virtual/pojoaque.cjs +5 -0
- package/dist/_virtual/pojoaque.mjs +3 -0
- package/dist/_virtual/prism.cjs +5 -0
- package/dist/_virtual/prism.mjs +3 -0
- package/dist/_virtual/shades-of-purple.cjs +5 -0
- package/dist/_virtual/shades-of-purple.mjs +3 -0
- package/dist/_virtual/solarized-dark-atom.cjs +5 -0
- package/dist/_virtual/solarized-dark-atom.mjs +3 -0
- package/dist/_virtual/solarizedlight.cjs +5 -0
- package/dist/_virtual/solarizedlight.mjs +3 -0
- package/dist/_virtual/synthwave84.cjs +5 -0
- package/dist/_virtual/synthwave84.mjs +3 -0
- package/dist/_virtual/tomorrow.cjs +5 -0
- package/dist/_virtual/tomorrow.mjs +3 -0
- package/dist/_virtual/twilight.cjs +5 -0
- package/dist/_virtual/twilight.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
- package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
- package/dist/_virtual/vs.cjs +5 -0
- package/dist/_virtual/vs.mjs +3 -0
- package/dist/_virtual/vsc-dark-plus.cjs +5 -0
- package/dist/_virtual/vsc-dark-plus.mjs +3 -0
- package/dist/_virtual/with-selector.cjs +9 -0
- package/dist/_virtual/with-selector.development.cjs +5 -0
- package/dist/_virtual/with-selector.development.mjs +3 -0
- package/dist/_virtual/with-selector.development2.cjs +5 -0
- package/dist/_virtual/with-selector.development2.mjs +3 -0
- package/dist/_virtual/with-selector.mjs +7 -0
- package/dist/_virtual/with-selector.production.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.cjs +5 -0
- package/dist/_virtual/with-selector.production.min.mjs +3 -0
- package/dist/_virtual/with-selector.production.mjs +3 -0
- package/dist/_virtual/with-selector2.cjs +7 -0
- package/dist/_virtual/with-selector2.mjs +5 -0
- package/dist/_virtual/with-selector3.cjs +5 -0
- package/dist/_virtual/with-selector3.mjs +3 -0
- package/dist/_virtual/with-selector4.cjs +5 -0
- package/dist/_virtual/with-selector4.mjs +3 -0
- package/dist/_virtual/xonokai.cjs +5 -0
- package/dist/_virtual/xonokai.mjs +3 -0
- package/dist/_virtual/z-touch.cjs +5 -0
- package/dist/_virtual/z-touch.mjs +3 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +62 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +64 -3
- package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +269 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +243 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +48 -0
- package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +32 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +15 -15
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +12 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +3 -2
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +569 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +544 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +178 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +169 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.mjs +37 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.cjs +519 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.mjs +492 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -1
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +22 -0
- package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.cjs +96 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.mjs +90 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +375 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.mjs +372 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.cjs +150 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.mjs +144 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.cjs +325 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.mjs +318 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.cjs +72 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.mjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +246 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.mjs +243 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.cjs +68 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.mjs +66 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.cjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.mjs +86 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +82 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.mjs +80 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.cjs +156 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.mjs +153 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.cjs +94 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.mjs +88 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.cjs +421 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.mjs +418 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.cjs +1060 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.mjs +1049 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.cjs +54 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.mjs +52 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.cjs +81 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.mjs +77 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.cjs +580 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.mjs +568 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.mjs +339 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.cjs +18 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.mjs +16 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.cjs +216 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.cjs +76 -0
- package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.mjs +74 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.cjs +364 -0
- package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.mjs +357 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.cjs +958 -0
- package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.mjs +947 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.cjs +1030 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.mjs +909 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.cjs +122 -0
- package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.mjs +116 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
- package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
- package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.cjs +36 -0
- package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +27 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
- package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
- package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
- package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
- package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
- package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
- package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
- package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
- package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.cjs +541 -0
- package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.mjs +533 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
- package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
- package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
- package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
- package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
- package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
- package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
- package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
- package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs +6 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
- package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
- package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
- package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
- package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
- package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
- package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
- package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
- package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
- package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
- package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
- package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
- package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
- package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
- package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
- package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.cjs +101 -0
- package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.mjs +94 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.cjs +807 -0
- package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +800 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.cjs +2418 -0
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.mjs +2393 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.cjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.mjs +164 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.cjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.mjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.cjs +406 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.mjs +404 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.cjs +202 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.mjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.cjs +269 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.mjs +267 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.cjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.mjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.cjs +238 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.mjs +236 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.cjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.mjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.cjs +197 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.mjs +195 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.cjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.mjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.cjs +168 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.mjs +166 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs +373 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.mjs +371 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.cjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.mjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.cjs +215 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.mjs +213 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.cjs +223 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.mjs +221 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.cjs +219 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.mjs +217 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.cjs +172 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.mjs +170 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.cjs +176 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.mjs +174 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.cjs +521 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.mjs +519 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.cjs +509 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.mjs +507 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.cjs +181 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.mjs +179 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.cjs +212 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.mjs +210 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.cjs +254 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.mjs +252 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.cjs +188 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.mjs +186 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.cjs +203 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.mjs +201 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.cjs +173 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.mjs +171 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.cjs +234 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.mjs +232 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.cjs +226 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.mjs +224 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.cjs +302 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.mjs +300 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.cjs +200 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.mjs +198 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.cjs +216 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.mjs +214 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +8 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +6 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +121 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +110 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +394 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +388 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.cjs +9 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +7 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.cjs +12 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.cjs +196 -0
- package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +194 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1867 -0
- package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.mjs +1854 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
- package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
- package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
- package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +181 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +175 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.cjs +32 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +26 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +254 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +248 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.cjs +30 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +24 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +115 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +109 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.cjs +103 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +97 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +112 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +106 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +83 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +77 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
- package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.cjs +112 -0
- package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.mjs +110 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.cjs +47 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.mjs +39 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.cjs +339 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.mjs +336 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.cjs +34 -0
- package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.mjs +32 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +5 -5
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
- package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
- package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
- package/dist/packages/ui/src/components/accordion.cjs +2 -2
- package/dist/packages/ui/src/components/accordion.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/array.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/fields/array.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/date.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/date.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/enum.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/enum.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/object.cjs +9 -9
- package/dist/packages/ui/src/components/auto-form/fields/object.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/auto-form/fields/radio-group.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/index.cjs +5 -5
- package/dist/packages/ui/src/components/auto-form/index.mjs +1 -1
- package/dist/packages/ui/src/components/button.cjs +4 -2
- package/dist/packages/ui/src/components/button.mjs +4 -2
- package/dist/packages/ui/src/components/calendar.cjs +4 -4
- package/dist/packages/ui/src/components/card.cjs +11 -0
- package/dist/packages/ui/src/components/card.mjs +11 -1
- package/dist/packages/ui/src/components/carousel.cjs +3 -3
- package/dist/packages/ui/src/components/checkbox.cjs +2 -2
- package/dist/packages/ui/src/components/command.cjs +33 -2
- package/dist/packages/ui/src/components/command.mjs +31 -2
- package/dist/packages/ui/src/components/date-picker.cjs +2 -2
- package/dist/packages/ui/src/components/dialog.cjs +9 -3
- package/dist/packages/ui/src/components/dialog.mjs +7 -2
- package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
- package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
- package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/form-preview.cjs +5 -5
- package/dist/packages/ui/src/components/form-builder/form-preview.mjs +1 -1
- package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
- package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
- package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
- package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
- package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
- package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
- package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
- package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +164 -0
- package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +153 -0
- package/dist/packages/ui/src/components/multi-select.cjs +3 -3
- package/dist/packages/ui/src/components/radio-group.cjs +2 -2
- package/dist/packages/ui/src/components/resizable.cjs +51 -0
- package/dist/packages/ui/src/components/resizable.mjs +47 -0
- package/dist/packages/ui/src/components/select.cjs +13 -6
- package/dist/packages/ui/src/components/select.mjs +9 -2
- package/dist/packages/ui/src/components/sheet.cjs +2 -2
- package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
- package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
- package/dist/packages/ui/src/components/toggle.cjs +46 -0
- package/dist/packages/ui/src/components/toggle.mjs +43 -0
- package/dist/packages/ui/src/components/tooltip.cjs +58 -0
- package/dist/packages/ui/src/components/tooltip.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
- package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
- package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
- package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
- package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
- package/dist/packages/ui/src/components/ui-builder/index.cjs +274 -0
- package/dist/packages/ui/src/components/ui-builder/index.mjs +262 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +295 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +289 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +230 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +224 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +19 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +17 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +555 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +540 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
- package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +156 -0
- package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +150 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
- package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +207 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +205 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +65 -0
- package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +63 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
- package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +269 -0
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +263 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
- package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +173 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +171 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
- package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
- package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
- package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
- package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
- package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
- package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
- package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
- package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
- package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
- package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
- package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
- package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +159 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +157 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +91 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +88 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +16 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +44 -0
- package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +55 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +27 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +25 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
- package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +185 -0
- package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +177 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +36 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
- package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +384 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +381 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +326 -0
- package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +311 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
- package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +30 -0
- package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +23 -0
- package/dist/plugins/cms/api/index.d.cts +2 -2
- package/dist/plugins/cms/api/index.d.mts +2 -2
- package/dist/plugins/cms/api/index.d.ts +2 -2
- package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
- package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
- package/dist/plugins/cms/client/index.d.cts +2 -2
- package/dist/plugins/cms/client/index.d.mts +2 -2
- package/dist/plugins/cms/client/index.d.ts +2 -2
- package/dist/plugins/cms/query-keys.d.cts +1 -1
- package/dist/plugins/cms/query-keys.d.mts +1 -1
- package/dist/plugins/cms/query-keys.d.ts +1 -1
- package/dist/plugins/form-builder/api/index.d.cts +1 -1
- package/dist/plugins/form-builder/api/index.d.mts +1 -1
- package/dist/plugins/form-builder/api/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/index.d.cts +2 -2
- package/dist/plugins/form-builder/client/index.d.mts +2 -2
- package/dist/plugins/form-builder/client/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
- package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
- package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
- package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
- package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
- package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
- package/dist/plugins/ui-builder/client/index.cjs +38 -0
- package/dist/plugins/ui-builder/client/index.d.cts +349 -0
- package/dist/plugins/ui-builder/client/index.d.mts +349 -0
- package/dist/plugins/ui-builder/client/index.d.ts +349 -0
- package/dist/plugins/ui-builder/client/index.mjs +8 -0
- package/dist/plugins/ui-builder/client.css +2 -0
- package/dist/plugins/ui-builder/index.cjs +9 -0
- package/dist/plugins/ui-builder/index.d.cts +47 -0
- package/dist/plugins/ui-builder/index.d.mts +47 -0
- package/dist/plugins/ui-builder/index.d.ts +47 -0
- package/dist/plugins/ui-builder/index.mjs +1 -0
- package/dist/plugins/ui-builder/style.css +26 -0
- package/dist/shared/{stack.BIh2AXaW.d.cts → stack.8nldKomx.d.cts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.mts → stack.8nldKomx.d.mts} +1 -10
- package/dist/shared/{stack.BIh2AXaW.d.ts → stack.8nldKomx.d.ts} +1 -10
- package/dist/shared/stack.BD1m-4yB.d.ts +116 -0
- package/dist/shared/stack.BSM2cgoq.d.cts +116 -0
- package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.mts} +1 -1
- package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.ts} +1 -1
- package/dist/shared/stack.CLtOoAqF.d.mts +116 -0
- package/dist/shared/{stack.AX5nZ6A3.d.ts → stack.Co034Fpm.d.cts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.cts → stack.Co034Fpm.d.mts} +0 -21
- package/dist/shared/{stack.AX5nZ6A3.d.mts → stack.Co034Fpm.d.ts} +0 -21
- package/dist/shared/stack.CqfZWfjJ.d.cts +42 -0
- package/dist/shared/stack.MMntCVZZ.d.ts +42 -0
- package/dist/shared/stack.e1FN86dE.d.mts +42 -0
- package/package.json +54 -1
- package/src/plugins/cms/client/components/forms/content-form.tsx +2 -2
- package/src/plugins/form-builder/client/components/forms/form-renderer.tsx +1 -1
- package/src/plugins/ui-builder/client/components/index.ts +10 -0
- package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
- package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
- package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
- package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
- package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
- package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
- package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
- package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
- package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
- package/src/plugins/ui-builder/client/index.ts +64 -0
- package/src/plugins/ui-builder/client/localization/index.ts +64 -0
- package/src/plugins/ui-builder/client/overrides.ts +99 -0
- package/src/plugins/ui-builder/client/plugin.tsx +315 -0
- package/src/plugins/ui-builder/client/registry.ts +611 -0
- package/src/plugins/ui-builder/client.css +2 -0
- package/src/plugins/ui-builder/index.ts +41 -0
- package/src/plugins/ui-builder/schemas.ts +48 -0
- package/src/plugins/ui-builder/style.css +26 -0
- package/src/plugins/ui-builder/types.ts +137 -0
- package/src/plugins/index.ts +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.cjs → helpers.cjs} +0 -0
- /package/dist/packages/ui/src/components/auto-form/{utils.mjs → helpers.mjs} +0 -0
|
@@ -0,0 +1,1867 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
6
|
+
|
|
7
|
+
const React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Rounds number to given decimal
|
|
11
|
+
* eg. roundNumber(2.34343, 1) => 2.3
|
|
12
|
+
*/
|
|
13
|
+
var roundNumber = function (num, decimal) {
|
|
14
|
+
return Number(num.toFixed(decimal));
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Checks if value is number, if not it returns default value
|
|
18
|
+
* 1# eg. checkIsNumber(2, 30) => 2
|
|
19
|
+
* 2# eg. checkIsNumber(null, 30) => 30
|
|
20
|
+
*/
|
|
21
|
+
var checkIsNumber = function (num, defaultValue) {
|
|
22
|
+
return defaultValue;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var handleCallback = function (context, event, callback) {
|
|
26
|
+
if (callback && typeof callback === "function") {
|
|
27
|
+
callback(context, event);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/* eslint-disable no-plusplus */
|
|
32
|
+
/* eslint-disable no-param-reassign */
|
|
33
|
+
/**
|
|
34
|
+
* Functions should return denominator of the target value, which is the next animation step.
|
|
35
|
+
* t is a value from 0 to 1, reflecting the percentage of animation status.
|
|
36
|
+
*/
|
|
37
|
+
var easeOut = function (t) {
|
|
38
|
+
return -Math.cos(t * Math.PI) / 2 + 0.5;
|
|
39
|
+
};
|
|
40
|
+
// linear
|
|
41
|
+
var linear = function (t) {
|
|
42
|
+
return t;
|
|
43
|
+
};
|
|
44
|
+
// accelerating from zero velocity
|
|
45
|
+
var easeInQuad = function (t) {
|
|
46
|
+
return t * t;
|
|
47
|
+
};
|
|
48
|
+
// decelerating to zero velocity
|
|
49
|
+
var easeOutQuad = function (t) {
|
|
50
|
+
return t * (2 - t);
|
|
51
|
+
};
|
|
52
|
+
// acceleration until halfway, then deceleration
|
|
53
|
+
var easeInOutQuad = function (t) {
|
|
54
|
+
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
|
|
55
|
+
};
|
|
56
|
+
// accelerating from zero velocity
|
|
57
|
+
var easeInCubic = function (t) {
|
|
58
|
+
return t * t * t;
|
|
59
|
+
};
|
|
60
|
+
// decelerating to zero velocity
|
|
61
|
+
var easeOutCubic = function (t) {
|
|
62
|
+
return --t * t * t + 1;
|
|
63
|
+
};
|
|
64
|
+
// acceleration until halfway, then deceleration
|
|
65
|
+
var easeInOutCubic = function (t) {
|
|
66
|
+
return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
|
|
67
|
+
};
|
|
68
|
+
// accelerating from zero velocity
|
|
69
|
+
var easeInQuart = function (t) {
|
|
70
|
+
return t * t * t * t;
|
|
71
|
+
};
|
|
72
|
+
// decelerating to zero velocity
|
|
73
|
+
var easeOutQuart = function (t) {
|
|
74
|
+
return 1 - --t * t * t * t;
|
|
75
|
+
};
|
|
76
|
+
// acceleration until halfway, then deceleration
|
|
77
|
+
var easeInOutQuart = function (t) {
|
|
78
|
+
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
|
|
79
|
+
};
|
|
80
|
+
// accelerating from zero velocity
|
|
81
|
+
var easeInQuint = function (t) {
|
|
82
|
+
return t * t * t * t * t;
|
|
83
|
+
};
|
|
84
|
+
// decelerating to zero velocity
|
|
85
|
+
var easeOutQuint = function (t) {
|
|
86
|
+
return 1 + --t * t * t * t * t;
|
|
87
|
+
};
|
|
88
|
+
// acceleration until halfway, then deceleration
|
|
89
|
+
var easeInOutQuint = function (t) {
|
|
90
|
+
return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;
|
|
91
|
+
};
|
|
92
|
+
var animations = {
|
|
93
|
+
easeOut: easeOut,
|
|
94
|
+
linear: linear,
|
|
95
|
+
easeInQuad: easeInQuad,
|
|
96
|
+
easeOutQuad: easeOutQuad,
|
|
97
|
+
easeInOutQuad: easeInOutQuad,
|
|
98
|
+
easeInCubic: easeInCubic,
|
|
99
|
+
easeOutCubic: easeOutCubic,
|
|
100
|
+
easeInOutCubic: easeInOutCubic,
|
|
101
|
+
easeInQuart: easeInQuart,
|
|
102
|
+
easeOutQuart: easeOutQuart,
|
|
103
|
+
easeInOutQuart: easeInOutQuart,
|
|
104
|
+
easeInQuint: easeInQuint,
|
|
105
|
+
easeOutQuint: easeOutQuint,
|
|
106
|
+
easeInOutQuint: easeInOutQuint,
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/* eslint-disable no-param-reassign */
|
|
110
|
+
var handleCancelAnimationFrame = function (animation) {
|
|
111
|
+
if (typeof animation === "number") {
|
|
112
|
+
cancelAnimationFrame(animation);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var handleCancelAnimation = function (contextInstance) {
|
|
116
|
+
if (!contextInstance.mounted)
|
|
117
|
+
return;
|
|
118
|
+
handleCancelAnimationFrame(contextInstance.animation);
|
|
119
|
+
// Clear animation state
|
|
120
|
+
contextInstance.animate = false;
|
|
121
|
+
contextInstance.animation = null;
|
|
122
|
+
contextInstance.velocity = null;
|
|
123
|
+
};
|
|
124
|
+
function handleSetupAnimation(contextInstance, animationName, animationTime, callback) {
|
|
125
|
+
if (!contextInstance.mounted)
|
|
126
|
+
return;
|
|
127
|
+
var startTime = new Date().getTime();
|
|
128
|
+
var lastStep = 1;
|
|
129
|
+
// if another animation is active
|
|
130
|
+
handleCancelAnimation(contextInstance);
|
|
131
|
+
// new animation
|
|
132
|
+
contextInstance.animation = function () {
|
|
133
|
+
if (!contextInstance.mounted) {
|
|
134
|
+
return handleCancelAnimationFrame(contextInstance.animation);
|
|
135
|
+
}
|
|
136
|
+
var frameTime = new Date().getTime() - startTime;
|
|
137
|
+
var animationProgress = frameTime / animationTime;
|
|
138
|
+
var animationType = animations[animationName];
|
|
139
|
+
var step = animationType(animationProgress);
|
|
140
|
+
if (frameTime >= animationTime) {
|
|
141
|
+
callback(lastStep);
|
|
142
|
+
contextInstance.animation = null;
|
|
143
|
+
}
|
|
144
|
+
else if (contextInstance.animation) {
|
|
145
|
+
callback(step);
|
|
146
|
+
requestAnimationFrame(contextInstance.animation);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
requestAnimationFrame(contextInstance.animation);
|
|
150
|
+
}
|
|
151
|
+
function isValidTargetState(targetState) {
|
|
152
|
+
var scale = targetState.scale, positionX = targetState.positionX, positionY = targetState.positionY;
|
|
153
|
+
if (Number.isNaN(scale) ||
|
|
154
|
+
Number.isNaN(positionX) ||
|
|
155
|
+
Number.isNaN(positionY)) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
function animate(contextInstance, targetState, animationTime, animationName) {
|
|
161
|
+
var isValid = isValidTargetState(targetState);
|
|
162
|
+
if (!contextInstance.mounted || !isValid)
|
|
163
|
+
return;
|
|
164
|
+
var setTransformState = contextInstance.setTransformState;
|
|
165
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
166
|
+
var scaleDiff = targetState.scale - scale;
|
|
167
|
+
var positionXDiff = targetState.positionX - positionX;
|
|
168
|
+
var positionYDiff = targetState.positionY - positionY;
|
|
169
|
+
if (animationTime === 0) {
|
|
170
|
+
setTransformState(targetState.scale, targetState.positionX, targetState.positionY);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
// animation start timestamp
|
|
174
|
+
handleSetupAnimation(contextInstance, animationName, animationTime, function (step) {
|
|
175
|
+
var newScale = scale + scaleDiff * step;
|
|
176
|
+
var newPositionX = positionX + positionXDiff * step;
|
|
177
|
+
var newPositionY = positionY + positionYDiff * step;
|
|
178
|
+
setTransformState(newScale, newPositionX, newPositionY);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* eslint-disable no-param-reassign */
|
|
184
|
+
function getComponentsSizes(wrapperComponent, contentComponent, newScale) {
|
|
185
|
+
var wrapperWidth = wrapperComponent.offsetWidth;
|
|
186
|
+
var wrapperHeight = wrapperComponent.offsetHeight;
|
|
187
|
+
var contentWidth = contentComponent.offsetWidth;
|
|
188
|
+
var contentHeight = contentComponent.offsetHeight;
|
|
189
|
+
var newContentWidth = contentWidth * newScale;
|
|
190
|
+
var newContentHeight = contentHeight * newScale;
|
|
191
|
+
var newDiffWidth = wrapperWidth - newContentWidth;
|
|
192
|
+
var newDiffHeight = wrapperHeight - newContentHeight;
|
|
193
|
+
return {
|
|
194
|
+
wrapperWidth: wrapperWidth,
|
|
195
|
+
wrapperHeight: wrapperHeight,
|
|
196
|
+
newContentWidth: newContentWidth,
|
|
197
|
+
newDiffWidth: newDiffWidth,
|
|
198
|
+
newContentHeight: newContentHeight,
|
|
199
|
+
newDiffHeight: newDiffHeight,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
var getBounds = function (wrapperWidth, newContentWidth, diffWidth, wrapperHeight, newContentHeight, diffHeight, centerZoomedOut) {
|
|
203
|
+
var scaleWidthFactor = wrapperWidth > newContentWidth
|
|
204
|
+
? diffWidth * (centerZoomedOut ? 1 : 0.5)
|
|
205
|
+
: 0;
|
|
206
|
+
var scaleHeightFactor = wrapperHeight > newContentHeight
|
|
207
|
+
? diffHeight * (centerZoomedOut ? 1 : 0.5)
|
|
208
|
+
: 0;
|
|
209
|
+
var minPositionX = wrapperWidth - newContentWidth - scaleWidthFactor;
|
|
210
|
+
var maxPositionX = scaleWidthFactor;
|
|
211
|
+
var minPositionY = wrapperHeight - newContentHeight - scaleHeightFactor;
|
|
212
|
+
var maxPositionY = scaleHeightFactor;
|
|
213
|
+
return { minPositionX: minPositionX, maxPositionX: maxPositionX, minPositionY: minPositionY, maxPositionY: maxPositionY };
|
|
214
|
+
};
|
|
215
|
+
var calculateBounds = function (contextInstance, newScale) {
|
|
216
|
+
var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;
|
|
217
|
+
var centerZoomedOut = contextInstance.setup.centerZoomedOut;
|
|
218
|
+
if (!wrapperComponent || !contentComponent) {
|
|
219
|
+
throw new Error("Components are not mounted");
|
|
220
|
+
}
|
|
221
|
+
var _a = getComponentsSizes(wrapperComponent, contentComponent, newScale), wrapperWidth = _a.wrapperWidth, wrapperHeight = _a.wrapperHeight, newContentWidth = _a.newContentWidth, newDiffWidth = _a.newDiffWidth, newContentHeight = _a.newContentHeight, newDiffHeight = _a.newDiffHeight;
|
|
222
|
+
var bounds = getBounds(wrapperWidth, newContentWidth, newDiffWidth, wrapperHeight, newContentHeight, newDiffHeight, Boolean(centerZoomedOut));
|
|
223
|
+
return bounds;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Keeps value between given bounds, used for limiting view to given boundaries
|
|
227
|
+
* 1# eg. boundLimiter(2, 0, 3, true) => 2
|
|
228
|
+
* 2# eg. boundLimiter(4, 0, 3, true) => 3
|
|
229
|
+
* 3# eg. boundLimiter(-2, 0, 3, true) => 0
|
|
230
|
+
* 4# eg. boundLimiter(10, 0, 3, false) => 10
|
|
231
|
+
*/
|
|
232
|
+
var boundLimiter = function (value, minBound, maxBound, isActive) {
|
|
233
|
+
if (!isActive)
|
|
234
|
+
return roundNumber(value, 2);
|
|
235
|
+
if (value < minBound)
|
|
236
|
+
return roundNumber(minBound, 2);
|
|
237
|
+
if (value > maxBound)
|
|
238
|
+
return roundNumber(maxBound, 2);
|
|
239
|
+
return roundNumber(value, 2);
|
|
240
|
+
};
|
|
241
|
+
var handleCalculateBounds = function (contextInstance, newScale) {
|
|
242
|
+
var bounds = calculateBounds(contextInstance, newScale);
|
|
243
|
+
// Save bounds
|
|
244
|
+
contextInstance.bounds = bounds;
|
|
245
|
+
return bounds;
|
|
246
|
+
};
|
|
247
|
+
function getMouseBoundedPosition(positionX, positionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent) {
|
|
248
|
+
var minPositionX = bounds.minPositionX, minPositionY = bounds.minPositionY, maxPositionX = bounds.maxPositionX, maxPositionY = bounds.maxPositionY;
|
|
249
|
+
var paddingX = 0;
|
|
250
|
+
var paddingY = 0;
|
|
251
|
+
if (wrapperComponent) {
|
|
252
|
+
paddingX = paddingValueX;
|
|
253
|
+
paddingY = paddingValueY;
|
|
254
|
+
}
|
|
255
|
+
var x = boundLimiter(positionX, minPositionX - paddingX, maxPositionX + paddingX, limitToBounds);
|
|
256
|
+
var y = boundLimiter(positionY, minPositionY - paddingY, maxPositionY + paddingY, limitToBounds);
|
|
257
|
+
return { x: x, y: y };
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function handleCalculateZoomPositions(contextInstance, mouseX, mouseY, newScale, bounds, limitToBounds) {
|
|
261
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
262
|
+
var scaleDifference = newScale - scale;
|
|
263
|
+
if (typeof mouseX !== "number" || typeof mouseY !== "number") {
|
|
264
|
+
console.error("Mouse X and Y position were not provided!");
|
|
265
|
+
return { x: positionX, y: positionY };
|
|
266
|
+
}
|
|
267
|
+
var calculatedPositionX = positionX - mouseX * scaleDifference;
|
|
268
|
+
var calculatedPositionY = positionY - mouseY * scaleDifference;
|
|
269
|
+
// do not limit to bounds when there is padding animation,
|
|
270
|
+
// it causes animation strange behaviour
|
|
271
|
+
var newPositions = getMouseBoundedPosition(calculatedPositionX, calculatedPositionY, bounds, limitToBounds, 0, 0, null);
|
|
272
|
+
return newPositions;
|
|
273
|
+
}
|
|
274
|
+
function checkZoomBounds(zoom, minScale, maxScale, zoomPadding, enablePadding) {
|
|
275
|
+
var scalePadding = enablePadding ? zoomPadding : 0;
|
|
276
|
+
var minScaleWithPadding = minScale - scalePadding;
|
|
277
|
+
if (!Number.isNaN(maxScale) && zoom >= maxScale)
|
|
278
|
+
return maxScale;
|
|
279
|
+
if (!Number.isNaN(minScale) && zoom <= minScaleWithPadding)
|
|
280
|
+
return minScaleWithPadding;
|
|
281
|
+
return zoom;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
var isPanningStartAllowed = function (contextInstance, event) {
|
|
285
|
+
var excluded = contextInstance.setup.panning.excluded;
|
|
286
|
+
var isInitialized = contextInstance.isInitialized, wrapperComponent = contextInstance.wrapperComponent;
|
|
287
|
+
var target = event.target;
|
|
288
|
+
var targetIsShadowDom = "shadowRoot" in target && "composedPath" in event;
|
|
289
|
+
var isWrapperChild = targetIsShadowDom
|
|
290
|
+
? event.composedPath().some(function (el) {
|
|
291
|
+
if (!(el instanceof Element)) {
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
return wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.contains(el);
|
|
295
|
+
})
|
|
296
|
+
: wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.contains(target);
|
|
297
|
+
var isAllowed = isInitialized && target && isWrapperChild;
|
|
298
|
+
if (!isAllowed)
|
|
299
|
+
return false;
|
|
300
|
+
var isExcluded = isExcludedNode(target, excluded);
|
|
301
|
+
if (isExcluded)
|
|
302
|
+
return false;
|
|
303
|
+
return true;
|
|
304
|
+
};
|
|
305
|
+
var isPanningAllowed = function (contextInstance) {
|
|
306
|
+
var isInitialized = contextInstance.isInitialized, isPanning = contextInstance.isPanning, setup = contextInstance.setup;
|
|
307
|
+
var disabled = setup.panning.disabled;
|
|
308
|
+
var isAllowed = isInitialized && isPanning && !disabled;
|
|
309
|
+
if (!isAllowed)
|
|
310
|
+
return false;
|
|
311
|
+
return true;
|
|
312
|
+
};
|
|
313
|
+
var handlePanningSetup = function (contextInstance, event) {
|
|
314
|
+
var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY;
|
|
315
|
+
contextInstance.isPanning = true;
|
|
316
|
+
// Panning with mouse
|
|
317
|
+
var x = event.clientX;
|
|
318
|
+
var y = event.clientY;
|
|
319
|
+
contextInstance.startCoords = { x: x - positionX, y: y - positionY };
|
|
320
|
+
};
|
|
321
|
+
var handleTouchPanningSetup = function (contextInstance, event) {
|
|
322
|
+
var touches = event.touches;
|
|
323
|
+
var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY;
|
|
324
|
+
contextInstance.isPanning = true;
|
|
325
|
+
// Panning with touch
|
|
326
|
+
var oneFingerTouch = touches.length === 1;
|
|
327
|
+
if (oneFingerTouch) {
|
|
328
|
+
var x = touches[0].clientX;
|
|
329
|
+
var y = touches[0].clientY;
|
|
330
|
+
contextInstance.startCoords = { x: x - positionX, y: y - positionY };
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
function handlePanToBounds(contextInstance) {
|
|
334
|
+
var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY, scale = _a.scale;
|
|
335
|
+
var _b = contextInstance.setup, disabled = _b.disabled, limitToBounds = _b.limitToBounds, centerZoomedOut = _b.centerZoomedOut;
|
|
336
|
+
var wrapperComponent = contextInstance.wrapperComponent;
|
|
337
|
+
if (disabled || !wrapperComponent || !contextInstance.bounds)
|
|
338
|
+
return;
|
|
339
|
+
var _c = contextInstance.bounds, maxPositionX = _c.maxPositionX, minPositionX = _c.minPositionX, maxPositionY = _c.maxPositionY, minPositionY = _c.minPositionY;
|
|
340
|
+
var xChanged = positionX > maxPositionX || positionX < minPositionX;
|
|
341
|
+
var yChanged = positionY > maxPositionY || positionY < minPositionY;
|
|
342
|
+
var mousePosX = positionX > maxPositionX
|
|
343
|
+
? wrapperComponent.offsetWidth
|
|
344
|
+
: contextInstance.setup.minPositionX || 0;
|
|
345
|
+
var mousePosY = positionY > maxPositionY
|
|
346
|
+
? wrapperComponent.offsetHeight
|
|
347
|
+
: contextInstance.setup.minPositionY || 0;
|
|
348
|
+
var _d = handleCalculateZoomPositions(contextInstance, mousePosX, mousePosY, scale, contextInstance.bounds, limitToBounds || centerZoomedOut), x = _d.x, y = _d.y;
|
|
349
|
+
return {
|
|
350
|
+
scale: scale,
|
|
351
|
+
positionX: xChanged ? x : positionX,
|
|
352
|
+
positionY: yChanged ? y : positionY,
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
function handleNewPosition(contextInstance, newPositionX, newPositionY, paddingValueX, paddingValueY) {
|
|
356
|
+
var limitToBounds = contextInstance.setup.limitToBounds;
|
|
357
|
+
var wrapperComponent = contextInstance.wrapperComponent, bounds = contextInstance.bounds;
|
|
358
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
359
|
+
if (wrapperComponent === null ||
|
|
360
|
+
bounds === null ||
|
|
361
|
+
(newPositionX === positionX && newPositionY === positionY)) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
var _b = getMouseBoundedPosition(newPositionX, newPositionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent), x = _b.x, y = _b.y;
|
|
365
|
+
contextInstance.setTransformState(scale, x, y);
|
|
366
|
+
}
|
|
367
|
+
var getPanningClientPosition = function (contextInstance, clientX, clientY) {
|
|
368
|
+
var startCoords = contextInstance.startCoords, transformState = contextInstance.transformState;
|
|
369
|
+
var panning = contextInstance.setup.panning;
|
|
370
|
+
var lockAxisX = panning.lockAxisX, lockAxisY = panning.lockAxisY;
|
|
371
|
+
var positionX = transformState.positionX, positionY = transformState.positionY;
|
|
372
|
+
if (!startCoords) {
|
|
373
|
+
return { x: positionX, y: positionY };
|
|
374
|
+
}
|
|
375
|
+
var mouseX = clientX - startCoords.x;
|
|
376
|
+
var mouseY = clientY - startCoords.y;
|
|
377
|
+
var newPositionX = lockAxisX ? positionX : mouseX;
|
|
378
|
+
var newPositionY = lockAxisY ? positionY : mouseY;
|
|
379
|
+
return { x: newPositionX, y: newPositionY };
|
|
380
|
+
};
|
|
381
|
+
var getPaddingValue = function (contextInstance, size) {
|
|
382
|
+
var setup = contextInstance.setup, transformState = contextInstance.transformState;
|
|
383
|
+
var scale = transformState.scale;
|
|
384
|
+
var minScale = setup.minScale, disablePadding = setup.disablePadding;
|
|
385
|
+
if (size > 0 && scale >= minScale && !disablePadding) {
|
|
386
|
+
return size;
|
|
387
|
+
}
|
|
388
|
+
return 0;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
var isVelocityCalculationAllowed = function (contextInstance) {
|
|
392
|
+
var mounted = contextInstance.mounted;
|
|
393
|
+
var _a = contextInstance.setup, disabled = _a.disabled, velocityAnimation = _a.velocityAnimation;
|
|
394
|
+
var scale = contextInstance.transformState.scale;
|
|
395
|
+
var disabledVelocity = velocityAnimation.disabled;
|
|
396
|
+
var isAllowed = !disabledVelocity || scale > 1 || !disabled || mounted;
|
|
397
|
+
if (!isAllowed)
|
|
398
|
+
return false;
|
|
399
|
+
return true;
|
|
400
|
+
};
|
|
401
|
+
var isVelocityAllowed = function (contextInstance) {
|
|
402
|
+
var mounted = contextInstance.mounted, velocity = contextInstance.velocity, bounds = contextInstance.bounds;
|
|
403
|
+
var _a = contextInstance.setup, disabled = _a.disabled, velocityAnimation = _a.velocityAnimation;
|
|
404
|
+
var scale = contextInstance.transformState.scale;
|
|
405
|
+
var disabledVelocity = velocityAnimation.disabled;
|
|
406
|
+
var isAllowed = !disabledVelocity || scale > 1 || !disabled || mounted;
|
|
407
|
+
if (!isAllowed)
|
|
408
|
+
return false;
|
|
409
|
+
if (!velocity || !bounds)
|
|
410
|
+
return false;
|
|
411
|
+
return true;
|
|
412
|
+
};
|
|
413
|
+
function getVelocityMoveTime(contextInstance, velocity) {
|
|
414
|
+
var velocityAnimation = contextInstance.setup.velocityAnimation;
|
|
415
|
+
var equalToMove = velocityAnimation.equalToMove, animationTime = velocityAnimation.animationTime, sensitivity = velocityAnimation.sensitivity;
|
|
416
|
+
if (equalToMove) {
|
|
417
|
+
return animationTime * velocity * sensitivity;
|
|
418
|
+
}
|
|
419
|
+
return animationTime;
|
|
420
|
+
}
|
|
421
|
+
function getVelocityPosition(newPosition, startPosition, currentPosition, isLocked, limitToBounds, minPosition, maxPosition, minTarget, maxTarget, step) {
|
|
422
|
+
if (limitToBounds) {
|
|
423
|
+
if (startPosition > maxPosition && currentPosition > maxPosition) {
|
|
424
|
+
var calculatedPosition = maxPosition + (newPosition - maxPosition) * step;
|
|
425
|
+
if (calculatedPosition > maxTarget)
|
|
426
|
+
return maxTarget;
|
|
427
|
+
if (calculatedPosition < maxPosition)
|
|
428
|
+
return maxPosition;
|
|
429
|
+
return calculatedPosition;
|
|
430
|
+
}
|
|
431
|
+
if (startPosition < minPosition && currentPosition < minPosition) {
|
|
432
|
+
var calculatedPosition = minPosition + (newPosition - minPosition) * step;
|
|
433
|
+
if (calculatedPosition < minTarget)
|
|
434
|
+
return minTarget;
|
|
435
|
+
if (calculatedPosition > minPosition)
|
|
436
|
+
return minPosition;
|
|
437
|
+
return calculatedPosition;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
if (isLocked)
|
|
441
|
+
return startPosition;
|
|
442
|
+
return boundLimiter(newPosition, minPosition, maxPosition, limitToBounds);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
function getSizeMultiplier(wrapperComponent, equalToMove) {
|
|
446
|
+
var defaultMultiplier = 1;
|
|
447
|
+
if (equalToMove) {
|
|
448
|
+
return Math.min(defaultMultiplier, wrapperComponent.offsetWidth / window.innerWidth);
|
|
449
|
+
}
|
|
450
|
+
return defaultMultiplier;
|
|
451
|
+
}
|
|
452
|
+
function handleCalculateVelocity(contextInstance, position) {
|
|
453
|
+
var isAllowed = isVelocityCalculationAllowed(contextInstance);
|
|
454
|
+
if (!isAllowed) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
var lastMousePosition = contextInstance.lastMousePosition, velocityTime = contextInstance.velocityTime, setup = contextInstance.setup;
|
|
458
|
+
var wrapperComponent = contextInstance.wrapperComponent;
|
|
459
|
+
var equalToMove = setup.velocityAnimation.equalToMove;
|
|
460
|
+
var now = Date.now();
|
|
461
|
+
if (lastMousePosition && velocityTime && wrapperComponent) {
|
|
462
|
+
var sizeMultiplier = getSizeMultiplier(wrapperComponent, equalToMove);
|
|
463
|
+
var distanceX = position.x - lastMousePosition.x;
|
|
464
|
+
var distanceY = position.y - lastMousePosition.y;
|
|
465
|
+
var velocityX = distanceX / sizeMultiplier;
|
|
466
|
+
var velocityY = distanceY / sizeMultiplier;
|
|
467
|
+
var interval = now - velocityTime;
|
|
468
|
+
var speed = distanceX * distanceX + distanceY * distanceY;
|
|
469
|
+
var velocity = Math.sqrt(speed) / interval;
|
|
470
|
+
contextInstance.velocity = { velocityX: velocityX, velocityY: velocityY, total: velocity };
|
|
471
|
+
}
|
|
472
|
+
contextInstance.lastMousePosition = position;
|
|
473
|
+
contextInstance.velocityTime = now;
|
|
474
|
+
}
|
|
475
|
+
function handleVelocityPanning(contextInstance) {
|
|
476
|
+
var velocity = contextInstance.velocity, bounds = contextInstance.bounds, setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;
|
|
477
|
+
var isAllowed = isVelocityAllowed(contextInstance);
|
|
478
|
+
if (!isAllowed || !velocity || !bounds || !wrapperComponent) {
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
481
|
+
var velocityX = velocity.velocityX, velocityY = velocity.velocityY, total = velocity.total;
|
|
482
|
+
var maxPositionX = bounds.maxPositionX, minPositionX = bounds.minPositionX, maxPositionY = bounds.maxPositionY, minPositionY = bounds.minPositionY;
|
|
483
|
+
var limitToBounds = setup.limitToBounds, alignmentAnimation = setup.alignmentAnimation;
|
|
484
|
+
var zoomAnimation = setup.zoomAnimation, panning = setup.panning;
|
|
485
|
+
var lockAxisY = panning.lockAxisY, lockAxisX = panning.lockAxisX;
|
|
486
|
+
var animationType = zoomAnimation.animationType;
|
|
487
|
+
var sizeX = alignmentAnimation.sizeX, sizeY = alignmentAnimation.sizeY, velocityAlignmentTime = alignmentAnimation.velocityAlignmentTime;
|
|
488
|
+
var alignAnimationTime = velocityAlignmentTime;
|
|
489
|
+
var moveAnimationTime = getVelocityMoveTime(contextInstance, total);
|
|
490
|
+
var finalAnimationTime = Math.max(moveAnimationTime, alignAnimationTime);
|
|
491
|
+
var paddingValueX = getPaddingValue(contextInstance, sizeX);
|
|
492
|
+
var paddingValueY = getPaddingValue(contextInstance, sizeY);
|
|
493
|
+
var paddingX = (paddingValueX * wrapperComponent.offsetWidth) / 100;
|
|
494
|
+
var paddingY = (paddingValueY * wrapperComponent.offsetHeight) / 100;
|
|
495
|
+
var maxTargetX = maxPositionX + paddingX;
|
|
496
|
+
var minTargetX = minPositionX - paddingX;
|
|
497
|
+
var maxTargetY = maxPositionY + paddingY;
|
|
498
|
+
var minTargetY = minPositionY - paddingY;
|
|
499
|
+
var startState = contextInstance.transformState;
|
|
500
|
+
var startTime = new Date().getTime();
|
|
501
|
+
handleSetupAnimation(contextInstance, animationType, finalAnimationTime, function (step) {
|
|
502
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
503
|
+
var frameTime = new Date().getTime() - startTime;
|
|
504
|
+
var animationProgress = frameTime / alignAnimationTime;
|
|
505
|
+
var alignAnimation = animations[alignmentAnimation.animationType];
|
|
506
|
+
var alignStep = 1 - alignAnimation(Math.min(1, animationProgress));
|
|
507
|
+
var customStep = 1 - step;
|
|
508
|
+
var newPositionX = positionX + velocityX * customStep;
|
|
509
|
+
var newPositionY = positionY + velocityY * customStep;
|
|
510
|
+
var currentPositionX = getVelocityPosition(newPositionX, startState.positionX, positionX, lockAxisX, limitToBounds, minPositionX, maxPositionX, minTargetX, maxTargetX, alignStep);
|
|
511
|
+
var currentPositionY = getVelocityPosition(newPositionY, startState.positionY, positionY, lockAxisY, limitToBounds, minPositionY, maxPositionY, minTargetY, maxTargetY, alignStep);
|
|
512
|
+
if (positionX !== newPositionX || positionY !== newPositionY) {
|
|
513
|
+
contextInstance.setTransformState(scale, currentPositionX, currentPositionY);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
function handlePanningStart(contextInstance, event) {
|
|
519
|
+
var scale = contextInstance.transformState.scale;
|
|
520
|
+
handleCancelAnimation(contextInstance);
|
|
521
|
+
handleCalculateBounds(contextInstance, scale);
|
|
522
|
+
if (window.TouchEvent !== undefined && event instanceof TouchEvent) {
|
|
523
|
+
handleTouchPanningSetup(contextInstance, event);
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
handlePanningSetup(contextInstance, event);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
function handleAlignToBounds(contextInstance, customAnimationTime) {
|
|
530
|
+
var scale = contextInstance.transformState.scale;
|
|
531
|
+
var _a = contextInstance.setup, minScale = _a.minScale, alignmentAnimation = _a.alignmentAnimation;
|
|
532
|
+
var disabled = alignmentAnimation.disabled, sizeX = alignmentAnimation.sizeX, sizeY = alignmentAnimation.sizeY, animationTime = alignmentAnimation.animationTime, animationType = alignmentAnimation.animationType;
|
|
533
|
+
var isDisabled = disabled || scale < minScale || (!sizeX && !sizeY);
|
|
534
|
+
if (isDisabled)
|
|
535
|
+
return;
|
|
536
|
+
var targetState = handlePanToBounds(contextInstance);
|
|
537
|
+
if (targetState) {
|
|
538
|
+
animate(contextInstance, targetState, customAnimationTime !== null && customAnimationTime !== void 0 ? customAnimationTime : animationTime, animationType);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
function handlePanning(contextInstance, clientX, clientY) {
|
|
542
|
+
var startCoords = contextInstance.startCoords, setup = contextInstance.setup;
|
|
543
|
+
var _a = setup.alignmentAnimation, sizeX = _a.sizeX, sizeY = _a.sizeY;
|
|
544
|
+
if (!startCoords)
|
|
545
|
+
return;
|
|
546
|
+
var _b = getPanningClientPosition(contextInstance, clientX, clientY), x = _b.x, y = _b.y;
|
|
547
|
+
var paddingValueX = getPaddingValue(contextInstance, sizeX);
|
|
548
|
+
var paddingValueY = getPaddingValue(contextInstance, sizeY);
|
|
549
|
+
handleCalculateVelocity(contextInstance, { x: x, y: y });
|
|
550
|
+
handleNewPosition(contextInstance, x, y, paddingValueX, paddingValueY);
|
|
551
|
+
}
|
|
552
|
+
function handlePanningEnd(contextInstance) {
|
|
553
|
+
if (contextInstance.isPanning) {
|
|
554
|
+
var velocityDisabled = contextInstance.setup.panning.velocityDisabled;
|
|
555
|
+
var velocity = contextInstance.velocity, wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;
|
|
556
|
+
contextInstance.isPanning = false;
|
|
557
|
+
contextInstance.animate = false;
|
|
558
|
+
contextInstance.animation = null;
|
|
559
|
+
var wrapperRect = wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.getBoundingClientRect();
|
|
560
|
+
var contentRect = contentComponent === null || contentComponent === void 0 ? void 0 : contentComponent.getBoundingClientRect();
|
|
561
|
+
var wrapperWidth = (wrapperRect === null || wrapperRect === void 0 ? void 0 : wrapperRect.width) || 0;
|
|
562
|
+
var wrapperHeight = (wrapperRect === null || wrapperRect === void 0 ? void 0 : wrapperRect.height) || 0;
|
|
563
|
+
var contentWidth = (contentRect === null || contentRect === void 0 ? void 0 : contentRect.width) || 0;
|
|
564
|
+
var contentHeight = (contentRect === null || contentRect === void 0 ? void 0 : contentRect.height) || 0;
|
|
565
|
+
var isZoomed = wrapperWidth < contentWidth || wrapperHeight < contentHeight;
|
|
566
|
+
var shouldAnimate = !velocityDisabled && velocity && (velocity === null || velocity === void 0 ? void 0 : velocity.total) > 0.1 && isZoomed;
|
|
567
|
+
if (shouldAnimate) {
|
|
568
|
+
handleVelocityPanning(contextInstance);
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
handleAlignToBounds(contextInstance);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
function handleZoomToPoint(contextInstance, scale, mouseX, mouseY) {
|
|
577
|
+
var _a = contextInstance.setup, minScale = _a.minScale, maxScale = _a.maxScale, limitToBounds = _a.limitToBounds;
|
|
578
|
+
var newScale = checkZoomBounds(roundNumber(scale, 2), minScale, maxScale, 0, false);
|
|
579
|
+
var bounds = handleCalculateBounds(contextInstance, newScale);
|
|
580
|
+
var _b = handleCalculateZoomPositions(contextInstance, mouseX, mouseY, newScale, bounds, limitToBounds), x = _b.x, y = _b.y;
|
|
581
|
+
return { scale: newScale, positionX: x, positionY: y };
|
|
582
|
+
}
|
|
583
|
+
function handleAlignToScaleBounds(contextInstance, mousePositionX, mousePositionY) {
|
|
584
|
+
var scale = contextInstance.transformState.scale;
|
|
585
|
+
var wrapperComponent = contextInstance.wrapperComponent;
|
|
586
|
+
var _a = contextInstance.setup, minScale = _a.minScale, limitToBounds = _a.limitToBounds, zoomAnimation = _a.zoomAnimation;
|
|
587
|
+
var disabled = zoomAnimation.disabled, animationTime = zoomAnimation.animationTime, animationType = zoomAnimation.animationType;
|
|
588
|
+
var isDisabled = disabled || scale >= minScale;
|
|
589
|
+
if (scale >= 1 || limitToBounds) {
|
|
590
|
+
// fire fit to bounds animation
|
|
591
|
+
handleAlignToBounds(contextInstance);
|
|
592
|
+
}
|
|
593
|
+
if (isDisabled || !wrapperComponent || !contextInstance.mounted)
|
|
594
|
+
return;
|
|
595
|
+
var mouseX = mousePositionX || wrapperComponent.offsetWidth / 2;
|
|
596
|
+
var mouseY = mousePositionY || wrapperComponent.offsetHeight / 2;
|
|
597
|
+
var targetState = handleZoomToPoint(contextInstance, minScale, mouseX, mouseY);
|
|
598
|
+
if (targetState) {
|
|
599
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/******************************************************************************
|
|
604
|
+
Copyright (c) Microsoft Corporation.
|
|
605
|
+
|
|
606
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
607
|
+
purpose with or without fee is hereby granted.
|
|
608
|
+
|
|
609
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
610
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
611
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
612
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
613
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
614
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
615
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
616
|
+
***************************************************************************** */
|
|
617
|
+
|
|
618
|
+
var __assign = function() {
|
|
619
|
+
__assign = Object.assign || function __assign(t) {
|
|
620
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
621
|
+
s = arguments[i];
|
|
622
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
623
|
+
}
|
|
624
|
+
return t;
|
|
625
|
+
};
|
|
626
|
+
return __assign.apply(this, arguments);
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
function __spreadArray(to, from, pack) {
|
|
630
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
631
|
+
if (ar || !(i in from)) {
|
|
632
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
633
|
+
ar[i] = from[i];
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
640
|
+
var e = new Error(message);
|
|
641
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
var initialState = {
|
|
645
|
+
scale: 1,
|
|
646
|
+
positionX: 0,
|
|
647
|
+
positionY: 0,
|
|
648
|
+
};
|
|
649
|
+
var initialSetup = {
|
|
650
|
+
disabled: false,
|
|
651
|
+
minPositionX: null,
|
|
652
|
+
maxPositionX: null,
|
|
653
|
+
minPositionY: null,
|
|
654
|
+
maxPositionY: null,
|
|
655
|
+
minScale: 1,
|
|
656
|
+
maxScale: 8,
|
|
657
|
+
limitToBounds: true,
|
|
658
|
+
centerZoomedOut: false,
|
|
659
|
+
centerOnInit: false,
|
|
660
|
+
disablePadding: false,
|
|
661
|
+
smooth: true,
|
|
662
|
+
wheel: {
|
|
663
|
+
step: 0.2,
|
|
664
|
+
disabled: false,
|
|
665
|
+
smoothStep: 0.001,
|
|
666
|
+
wheelDisabled: false,
|
|
667
|
+
touchPadDisabled: false,
|
|
668
|
+
activationKeys: [],
|
|
669
|
+
excluded: [],
|
|
670
|
+
},
|
|
671
|
+
panning: {
|
|
672
|
+
disabled: false,
|
|
673
|
+
velocityDisabled: false,
|
|
674
|
+
lockAxisX: false,
|
|
675
|
+
lockAxisY: false,
|
|
676
|
+
allowLeftClickPan: true,
|
|
677
|
+
allowMiddleClickPan: true,
|
|
678
|
+
allowRightClickPan: true,
|
|
679
|
+
wheelPanning: false,
|
|
680
|
+
activationKeys: [],
|
|
681
|
+
excluded: [],
|
|
682
|
+
},
|
|
683
|
+
pinch: {
|
|
684
|
+
step: 5,
|
|
685
|
+
disabled: false,
|
|
686
|
+
excluded: [],
|
|
687
|
+
},
|
|
688
|
+
doubleClick: {
|
|
689
|
+
disabled: false,
|
|
690
|
+
step: 0.7,
|
|
691
|
+
mode: "zoomIn",
|
|
692
|
+
animationType: "easeOut",
|
|
693
|
+
animationTime: 200,
|
|
694
|
+
excluded: [],
|
|
695
|
+
},
|
|
696
|
+
zoomAnimation: {
|
|
697
|
+
disabled: false,
|
|
698
|
+
size: 0.4,
|
|
699
|
+
animationTime: 200,
|
|
700
|
+
animationType: "easeOut",
|
|
701
|
+
},
|
|
702
|
+
alignmentAnimation: {
|
|
703
|
+
disabled: false,
|
|
704
|
+
sizeX: 100,
|
|
705
|
+
sizeY: 100,
|
|
706
|
+
animationTime: 200,
|
|
707
|
+
velocityAlignmentTime: 400,
|
|
708
|
+
animationType: "easeOut",
|
|
709
|
+
},
|
|
710
|
+
velocityAnimation: {
|
|
711
|
+
disabled: false,
|
|
712
|
+
sensitivity: 1,
|
|
713
|
+
animationTime: 400,
|
|
714
|
+
animationType: "easeOut",
|
|
715
|
+
equalToMove: true,
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
var baseClasses = {
|
|
719
|
+
wrapperClass: "react-transform-wrapper",
|
|
720
|
+
contentClass: "react-transform-component",
|
|
721
|
+
};
|
|
722
|
+
|
|
723
|
+
var createState = function (props) {
|
|
724
|
+
var _a, _b, _c, _d;
|
|
725
|
+
return {
|
|
726
|
+
previousScale: (_a = props.initialScale) !== null && _a !== void 0 ? _a : initialState.scale,
|
|
727
|
+
scale: (_b = props.initialScale) !== null && _b !== void 0 ? _b : initialState.scale,
|
|
728
|
+
positionX: (_c = props.initialPositionX) !== null && _c !== void 0 ? _c : initialState.positionX,
|
|
729
|
+
positionY: (_d = props.initialPositionY) !== null && _d !== void 0 ? _d : initialState.positionY,
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
var createSetup = function (props) {
|
|
733
|
+
var newSetup = __assign({}, initialSetup);
|
|
734
|
+
Object.keys(props).forEach(function (key) {
|
|
735
|
+
var validValue = typeof props[key] !== "undefined";
|
|
736
|
+
var validParameter = typeof initialSetup[key] !== "undefined";
|
|
737
|
+
if (validParameter && validValue) {
|
|
738
|
+
var dataType = Object.prototype.toString.call(initialSetup[key]);
|
|
739
|
+
var isObject = dataType === "[object Object]";
|
|
740
|
+
var isArray = dataType === "[object Array]";
|
|
741
|
+
if (isObject) {
|
|
742
|
+
newSetup[key] = __assign(__assign({}, initialSetup[key]), props[key]);
|
|
743
|
+
}
|
|
744
|
+
else if (isArray) {
|
|
745
|
+
newSetup[key] = __spreadArray(__spreadArray([], initialSetup[key], true), props[key]);
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
newSetup[key] = props[key];
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
return newSetup;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
var handleCalculateButtonZoom = function (contextInstance, delta, step) {
|
|
756
|
+
var scale = contextInstance.transformState.scale;
|
|
757
|
+
var wrapperComponent = contextInstance.wrapperComponent, setup = contextInstance.setup;
|
|
758
|
+
var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, smooth = setup.smooth;
|
|
759
|
+
var size = zoomAnimation.size;
|
|
760
|
+
if (!wrapperComponent) {
|
|
761
|
+
throw new Error("Wrapper is not mounted");
|
|
762
|
+
}
|
|
763
|
+
var targetScale = smooth
|
|
764
|
+
? scale * Math.exp(delta * step)
|
|
765
|
+
: scale + delta * step;
|
|
766
|
+
var newScale = checkZoomBounds(roundNumber(targetScale, 3), minScale, maxScale, size, false);
|
|
767
|
+
return newScale;
|
|
768
|
+
};
|
|
769
|
+
function handleZoomToViewCenter(contextInstance, delta, step, animationTime, animationType) {
|
|
770
|
+
var wrapperComponent = contextInstance.wrapperComponent;
|
|
771
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
772
|
+
if (!wrapperComponent)
|
|
773
|
+
return console.error("No WrapperComponent found");
|
|
774
|
+
var wrapperWidth = wrapperComponent.offsetWidth;
|
|
775
|
+
var wrapperHeight = wrapperComponent.offsetHeight;
|
|
776
|
+
var mouseX = (wrapperWidth / 2 - positionX) / scale;
|
|
777
|
+
var mouseY = (wrapperHeight / 2 - positionY) / scale;
|
|
778
|
+
var newScale = handleCalculateButtonZoom(contextInstance, delta, step);
|
|
779
|
+
var targetState = handleZoomToPoint(contextInstance, newScale, mouseX, mouseY);
|
|
780
|
+
if (!targetState) {
|
|
781
|
+
return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
782
|
+
}
|
|
783
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
784
|
+
}
|
|
785
|
+
function resetTransformations(contextInstance, animationTime, animationType, onResetTransformation) {
|
|
786
|
+
var setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;
|
|
787
|
+
var limitToBounds = setup.limitToBounds;
|
|
788
|
+
var initialTransformation = createState(contextInstance.props);
|
|
789
|
+
var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
790
|
+
if (!wrapperComponent)
|
|
791
|
+
return;
|
|
792
|
+
var newBounds = calculateBounds(contextInstance, initialTransformation.scale);
|
|
793
|
+
var boundedPositions = getMouseBoundedPosition(initialTransformation.positionX, initialTransformation.positionY, newBounds, limitToBounds, 0, 0, wrapperComponent);
|
|
794
|
+
var newState = {
|
|
795
|
+
scale: initialTransformation.scale,
|
|
796
|
+
positionX: boundedPositions.x,
|
|
797
|
+
positionY: boundedPositions.y,
|
|
798
|
+
};
|
|
799
|
+
if (scale === initialTransformation.scale &&
|
|
800
|
+
positionX === initialTransformation.positionX &&
|
|
801
|
+
positionY === initialTransformation.positionY) {
|
|
802
|
+
return;
|
|
803
|
+
}
|
|
804
|
+
onResetTransformation === null || onResetTransformation === void 0 ? void 0 : onResetTransformation();
|
|
805
|
+
animate(contextInstance, newState, animationTime, animationType);
|
|
806
|
+
}
|
|
807
|
+
function getOffset(element, wrapper, content, state) {
|
|
808
|
+
var offset = element.getBoundingClientRect();
|
|
809
|
+
var wrapperOffset = wrapper.getBoundingClientRect();
|
|
810
|
+
var contentOffset = content.getBoundingClientRect();
|
|
811
|
+
var xOff = wrapperOffset.x * state.scale;
|
|
812
|
+
var yOff = wrapperOffset.y * state.scale;
|
|
813
|
+
return {
|
|
814
|
+
x: (offset.x - contentOffset.x + xOff) / state.scale,
|
|
815
|
+
y: (offset.y - contentOffset.y + yOff) / state.scale,
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
function calculateZoomToNode(contextInstance, node, customZoom) {
|
|
819
|
+
var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent, transformState = contextInstance.transformState;
|
|
820
|
+
var _a = contextInstance.setup, limitToBounds = _a.limitToBounds, minScale = _a.minScale, maxScale = _a.maxScale;
|
|
821
|
+
if (!wrapperComponent || !contentComponent)
|
|
822
|
+
return transformState;
|
|
823
|
+
var wrapperRect = wrapperComponent.getBoundingClientRect();
|
|
824
|
+
var nodeRect = node.getBoundingClientRect();
|
|
825
|
+
var nodeOffset = getOffset(node, wrapperComponent, contentComponent, transformState);
|
|
826
|
+
var nodeLeft = nodeOffset.x;
|
|
827
|
+
var nodeTop = nodeOffset.y;
|
|
828
|
+
var nodeWidth = nodeRect.width / transformState.scale;
|
|
829
|
+
var nodeHeight = nodeRect.height / transformState.scale;
|
|
830
|
+
var scaleX = wrapperComponent.offsetWidth / nodeWidth;
|
|
831
|
+
var scaleY = wrapperComponent.offsetHeight / nodeHeight;
|
|
832
|
+
var newScale = checkZoomBounds(customZoom || Math.min(scaleX, scaleY), minScale, maxScale, 0, false);
|
|
833
|
+
var offsetX = (wrapperRect.width - nodeWidth * newScale) / 2;
|
|
834
|
+
var offsetY = (wrapperRect.height - nodeHeight * newScale) / 2;
|
|
835
|
+
var newPositionX = (wrapperRect.left - nodeLeft) * newScale + offsetX;
|
|
836
|
+
var newPositionY = (wrapperRect.top - nodeTop) * newScale + offsetY;
|
|
837
|
+
var bounds = calculateBounds(contextInstance, newScale);
|
|
838
|
+
var _b = getMouseBoundedPosition(newPositionX, newPositionY, bounds, limitToBounds, 0, 0, wrapperComponent), x = _b.x, y = _b.y;
|
|
839
|
+
return { positionX: x, positionY: y, scale: newScale };
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
var zoomIn = function (contextInstance) {
|
|
843
|
+
return function (step, animationTime, animationType) {
|
|
844
|
+
if (step === void 0) { step = 0.5; }
|
|
845
|
+
if (animationTime === void 0) { animationTime = 300; }
|
|
846
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
847
|
+
handleZoomToViewCenter(contextInstance, 1, step, animationTime, animationType);
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
var zoomOut = function (contextInstance) {
|
|
851
|
+
return function (step, animationTime, animationType) {
|
|
852
|
+
if (step === void 0) { step = 0.5; }
|
|
853
|
+
if (animationTime === void 0) { animationTime = 300; }
|
|
854
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
855
|
+
handleZoomToViewCenter(contextInstance, -1, step, animationTime, animationType);
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
var setTransform = function (contextInstance) {
|
|
859
|
+
return function (newPositionX, newPositionY, newScale, animationTime, animationType) {
|
|
860
|
+
if (animationTime === void 0) { animationTime = 300; }
|
|
861
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
862
|
+
var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY, scale = _a.scale;
|
|
863
|
+
var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;
|
|
864
|
+
var disabled = contextInstance.setup.disabled;
|
|
865
|
+
if (disabled || !wrapperComponent || !contentComponent)
|
|
866
|
+
return;
|
|
867
|
+
var targetState = {
|
|
868
|
+
positionX: Number.isNaN(newPositionX) ? positionX : newPositionX,
|
|
869
|
+
positionY: Number.isNaN(newPositionY) ? positionY : newPositionY,
|
|
870
|
+
scale: Number.isNaN(newScale) ? scale : newScale,
|
|
871
|
+
};
|
|
872
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
var resetTransform = function (contextInstance) {
|
|
876
|
+
return function (animationTime, animationType) {
|
|
877
|
+
if (animationTime === void 0) { animationTime = 200; }
|
|
878
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
879
|
+
resetTransformations(contextInstance, animationTime, animationType);
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
var centerView = function (contextInstance) {
|
|
883
|
+
return function (scale, animationTime, animationType) {
|
|
884
|
+
if (animationTime === void 0) { animationTime = 200; }
|
|
885
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
886
|
+
var transformState = contextInstance.transformState, wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;
|
|
887
|
+
if (wrapperComponent && contentComponent) {
|
|
888
|
+
var targetState = getCenterPosition(scale || transformState.scale, wrapperComponent, contentComponent);
|
|
889
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
var zoomToElement = function (contextInstance) {
|
|
894
|
+
return function (node, scale, animationTime, animationType) {
|
|
895
|
+
if (animationTime === void 0) { animationTime = 600; }
|
|
896
|
+
if (animationType === void 0) { animationType = "easeOut"; }
|
|
897
|
+
handleCancelAnimation(contextInstance);
|
|
898
|
+
var wrapperComponent = contextInstance.wrapperComponent;
|
|
899
|
+
var target = typeof node === "string" ? document.getElementById(node) : node;
|
|
900
|
+
if (wrapperComponent && target && wrapperComponent.contains(target)) {
|
|
901
|
+
var targetState = calculateZoomToNode(contextInstance, target, scale);
|
|
902
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
var getControls = function (contextInstance) {
|
|
908
|
+
return {
|
|
909
|
+
instance: contextInstance,
|
|
910
|
+
zoomIn: zoomIn(contextInstance),
|
|
911
|
+
zoomOut: zoomOut(contextInstance),
|
|
912
|
+
setTransform: setTransform(contextInstance),
|
|
913
|
+
resetTransform: resetTransform(contextInstance),
|
|
914
|
+
centerView: centerView(contextInstance),
|
|
915
|
+
zoomToElement: zoomToElement(contextInstance),
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
var getState = function (contextInstance) {
|
|
919
|
+
return {
|
|
920
|
+
instance: contextInstance,
|
|
921
|
+
state: contextInstance.transformState,
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
var getContext = function (contextInstance) {
|
|
925
|
+
var ref = {};
|
|
926
|
+
Object.assign(ref, getState(contextInstance));
|
|
927
|
+
Object.assign(ref, getControls(contextInstance));
|
|
928
|
+
return ref;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
// We want to make event listeners non-passive, and to do so have to check
|
|
932
|
+
// that browsers support EventListenerOptions in the first place.
|
|
933
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
|
|
934
|
+
var passiveSupported = false;
|
|
935
|
+
function makePassiveEventOption() {
|
|
936
|
+
try {
|
|
937
|
+
var options = {
|
|
938
|
+
get passive() {
|
|
939
|
+
// This function will be called when the browser
|
|
940
|
+
// attempts to access the passive property.
|
|
941
|
+
passiveSupported = true;
|
|
942
|
+
return false;
|
|
943
|
+
},
|
|
944
|
+
};
|
|
945
|
+
return options;
|
|
946
|
+
}
|
|
947
|
+
catch (err) {
|
|
948
|
+
passiveSupported = false;
|
|
949
|
+
return passiveSupported;
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
var matchPrefix = ".".concat(baseClasses.wrapperClass);
|
|
954
|
+
var isExcludedNode = function (node, excluded) {
|
|
955
|
+
return excluded.some(function (exclude) {
|
|
956
|
+
return node.matches("".concat(matchPrefix, " ").concat(exclude, ", ").concat(matchPrefix, " .").concat(exclude, ", ").concat(matchPrefix, " ").concat(exclude, " *, ").concat(matchPrefix, " .").concat(exclude, " *"));
|
|
957
|
+
});
|
|
958
|
+
};
|
|
959
|
+
var cancelTimeout = function (timeout) {
|
|
960
|
+
if (timeout) {
|
|
961
|
+
clearTimeout(timeout);
|
|
962
|
+
}
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
var getTransformStyles = function (x, y, scale) {
|
|
966
|
+
// Standard translate prevents blurry svg on the safari
|
|
967
|
+
return "translate(".concat(x, "px, ").concat(y, "px) scale(").concat(scale, ")");
|
|
968
|
+
};
|
|
969
|
+
var getCenterPosition = function (scale, wrapperComponent, contentComponent) {
|
|
970
|
+
var contentWidth = contentComponent.offsetWidth * scale;
|
|
971
|
+
var contentHeight = contentComponent.offsetHeight * scale;
|
|
972
|
+
var centerPositionX = (wrapperComponent.offsetWidth - contentWidth) / 2;
|
|
973
|
+
var centerPositionY = (wrapperComponent.offsetHeight - contentHeight) / 2;
|
|
974
|
+
return {
|
|
975
|
+
scale: scale,
|
|
976
|
+
positionX: centerPositionX,
|
|
977
|
+
positionY: centerPositionY,
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
function mergeRefs(refs) {
|
|
982
|
+
return function (value) {
|
|
983
|
+
refs.forEach(function (ref) {
|
|
984
|
+
if (typeof ref === "function") {
|
|
985
|
+
ref(value);
|
|
986
|
+
}
|
|
987
|
+
else if (ref != null) {
|
|
988
|
+
ref.current = value;
|
|
989
|
+
}
|
|
990
|
+
});
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
var isWheelAllowed = function (contextInstance, event) {
|
|
995
|
+
var _a = contextInstance.setup.wheel, disabled = _a.disabled, wheelDisabled = _a.wheelDisabled, touchPadDisabled = _a.touchPadDisabled, excluded = _a.excluded;
|
|
996
|
+
var isInitialized = contextInstance.isInitialized, isPanning = contextInstance.isPanning;
|
|
997
|
+
var target = event.target;
|
|
998
|
+
var isAllowed = isInitialized && !isPanning && !disabled && target;
|
|
999
|
+
if (!isAllowed)
|
|
1000
|
+
return false;
|
|
1001
|
+
// Event ctrlKey detects if touchpad action is executing wheel or pinch gesture
|
|
1002
|
+
if (wheelDisabled && !event.ctrlKey)
|
|
1003
|
+
return false;
|
|
1004
|
+
if (touchPadDisabled && event.ctrlKey)
|
|
1005
|
+
return false;
|
|
1006
|
+
var isExcluded = isExcludedNode(target, excluded);
|
|
1007
|
+
if (isExcluded)
|
|
1008
|
+
return false;
|
|
1009
|
+
return true;
|
|
1010
|
+
};
|
|
1011
|
+
var getDeltaY = function (event) {
|
|
1012
|
+
if (event) {
|
|
1013
|
+
return event.deltaY < 0 ? 1 : -1;
|
|
1014
|
+
}
|
|
1015
|
+
return 0;
|
|
1016
|
+
};
|
|
1017
|
+
function getDelta(event, customDelta) {
|
|
1018
|
+
var deltaY = getDeltaY(event);
|
|
1019
|
+
var delta = checkIsNumber(customDelta, deltaY);
|
|
1020
|
+
return delta;
|
|
1021
|
+
}
|
|
1022
|
+
function getMousePosition(event, contentComponent, scale) {
|
|
1023
|
+
var contentRect = contentComponent.getBoundingClientRect();
|
|
1024
|
+
var mouseX = 0;
|
|
1025
|
+
var mouseY = 0;
|
|
1026
|
+
if ("clientX" in event) {
|
|
1027
|
+
// mouse position x, y over wrapper component
|
|
1028
|
+
mouseX = (event.clientX - contentRect.left) / scale;
|
|
1029
|
+
mouseY = (event.clientY - contentRect.top) / scale;
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
var touch = event.touches[0];
|
|
1033
|
+
mouseX = (touch.clientX - contentRect.left) / scale;
|
|
1034
|
+
mouseY = (touch.clientY - contentRect.top) / scale;
|
|
1035
|
+
}
|
|
1036
|
+
if (Number.isNaN(mouseX) || Number.isNaN(mouseY))
|
|
1037
|
+
console.error("No mouse or touch offset found");
|
|
1038
|
+
return {
|
|
1039
|
+
x: mouseX,
|
|
1040
|
+
y: mouseY,
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
var handleCalculateWheelZoom = function (contextInstance, delta, step, disable, getTarget) {
|
|
1044
|
+
var scale = contextInstance.transformState.scale;
|
|
1045
|
+
var wrapperComponent = contextInstance.wrapperComponent, setup = contextInstance.setup;
|
|
1046
|
+
var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, disablePadding = setup.disablePadding;
|
|
1047
|
+
var size = zoomAnimation.size, disabled = zoomAnimation.disabled;
|
|
1048
|
+
if (!wrapperComponent) {
|
|
1049
|
+
throw new Error("Wrapper is not mounted");
|
|
1050
|
+
}
|
|
1051
|
+
var targetScale = scale + delta * step;
|
|
1052
|
+
var paddingEnabled = disable ? false : !disabled;
|
|
1053
|
+
var newScale = checkZoomBounds(roundNumber(targetScale, 3), minScale, maxScale, size, paddingEnabled && !disablePadding);
|
|
1054
|
+
return newScale;
|
|
1055
|
+
};
|
|
1056
|
+
var handleWheelZoomStop = function (contextInstance, event) {
|
|
1057
|
+
var previousWheelEvent = contextInstance.previousWheelEvent;
|
|
1058
|
+
var scale = contextInstance.transformState.scale;
|
|
1059
|
+
var _a = contextInstance.setup, maxScale = _a.maxScale, minScale = _a.minScale;
|
|
1060
|
+
if (!previousWheelEvent)
|
|
1061
|
+
return false;
|
|
1062
|
+
if (scale < maxScale || scale > minScale)
|
|
1063
|
+
return true;
|
|
1064
|
+
if (Math.sign(previousWheelEvent.deltaY) !== Math.sign(event.deltaY))
|
|
1065
|
+
return true;
|
|
1066
|
+
if (previousWheelEvent.deltaY > 0 && previousWheelEvent.deltaY < event.deltaY)
|
|
1067
|
+
return true;
|
|
1068
|
+
if (previousWheelEvent.deltaY < 0 && previousWheelEvent.deltaY > event.deltaY)
|
|
1069
|
+
return true;
|
|
1070
|
+
if (Math.sign(previousWheelEvent.deltaY) !== Math.sign(event.deltaY))
|
|
1071
|
+
return true;
|
|
1072
|
+
return false;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
var isPinchStartAllowed = function (contextInstance, event) {
|
|
1076
|
+
var _a = contextInstance.setup.pinch, disabled = _a.disabled, excluded = _a.excluded;
|
|
1077
|
+
var isInitialized = contextInstance.isInitialized;
|
|
1078
|
+
var target = event.target;
|
|
1079
|
+
var isAllowed = isInitialized && !disabled && target;
|
|
1080
|
+
if (!isAllowed)
|
|
1081
|
+
return false;
|
|
1082
|
+
var isExcluded = isExcludedNode(target, excluded);
|
|
1083
|
+
if (isExcluded)
|
|
1084
|
+
return false;
|
|
1085
|
+
return true;
|
|
1086
|
+
};
|
|
1087
|
+
var isPinchAllowed = function (contextInstance) {
|
|
1088
|
+
var disabled = contextInstance.setup.pinch.disabled;
|
|
1089
|
+
var isInitialized = contextInstance.isInitialized, pinchStartDistance = contextInstance.pinchStartDistance;
|
|
1090
|
+
var isAllowed = isInitialized && !disabled && pinchStartDistance;
|
|
1091
|
+
if (!isAllowed)
|
|
1092
|
+
return false;
|
|
1093
|
+
return true;
|
|
1094
|
+
};
|
|
1095
|
+
var calculateTouchMidPoint = function (event, scale, contentComponent) {
|
|
1096
|
+
var contentRect = contentComponent.getBoundingClientRect();
|
|
1097
|
+
var touches = event.touches;
|
|
1098
|
+
var firstPointX = roundNumber(touches[0].clientX - contentRect.left, 5);
|
|
1099
|
+
var firstPointY = roundNumber(touches[0].clientY - contentRect.top, 5);
|
|
1100
|
+
var secondPointX = roundNumber(touches[1].clientX - contentRect.left, 5);
|
|
1101
|
+
var secondPointY = roundNumber(touches[1].clientY - contentRect.top, 5);
|
|
1102
|
+
return {
|
|
1103
|
+
x: (firstPointX + secondPointX) / 2 / scale,
|
|
1104
|
+
y: (firstPointY + secondPointY) / 2 / scale,
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
var getTouchDistance = function (event) {
|
|
1108
|
+
return Math.sqrt(Math.pow((event.touches[0].pageX - event.touches[1].pageX), 2) +
|
|
1109
|
+
Math.pow((event.touches[0].pageY - event.touches[1].pageY), 2));
|
|
1110
|
+
};
|
|
1111
|
+
var calculatePinchZoom = function (contextInstance, currentDistance) {
|
|
1112
|
+
var pinchStartScale = contextInstance.pinchStartScale, pinchStartDistance = contextInstance.pinchStartDistance, setup = contextInstance.setup;
|
|
1113
|
+
var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, disablePadding = setup.disablePadding;
|
|
1114
|
+
var size = zoomAnimation.size, disabled = zoomAnimation.disabled;
|
|
1115
|
+
if (!pinchStartScale || pinchStartDistance === null || !currentDistance) {
|
|
1116
|
+
throw new Error("Pinch touches distance was not provided");
|
|
1117
|
+
}
|
|
1118
|
+
if (currentDistance < 0) {
|
|
1119
|
+
return contextInstance.transformState.scale;
|
|
1120
|
+
}
|
|
1121
|
+
var touchProportion = currentDistance / pinchStartDistance;
|
|
1122
|
+
var scaleDifference = touchProportion * pinchStartScale;
|
|
1123
|
+
return checkZoomBounds(roundNumber(scaleDifference, 2), minScale, maxScale, size, !disabled && !disablePadding);
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
var wheelStopEventTime = 160;
|
|
1127
|
+
var wheelAnimationTime = 100;
|
|
1128
|
+
var handleWheelStart = function (contextInstance, event) {
|
|
1129
|
+
var _a = contextInstance.props, onWheelStart = _a.onWheelStart, onZoomStart = _a.onZoomStart;
|
|
1130
|
+
if (!contextInstance.wheelStopEventTimer) {
|
|
1131
|
+
handleCancelAnimation(contextInstance);
|
|
1132
|
+
handleCallback(getContext(contextInstance), event, onWheelStart);
|
|
1133
|
+
handleCallback(getContext(contextInstance), event, onZoomStart);
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
var handleWheelZoom = function (contextInstance, event) {
|
|
1137
|
+
var _a = contextInstance.props, onWheel = _a.onWheel, onZoom = _a.onZoom;
|
|
1138
|
+
var contentComponent = contextInstance.contentComponent, setup = contextInstance.setup, transformState = contextInstance.transformState;
|
|
1139
|
+
var scale = transformState.scale;
|
|
1140
|
+
var limitToBounds = setup.limitToBounds, centerZoomedOut = setup.centerZoomedOut, zoomAnimation = setup.zoomAnimation, wheel = setup.wheel, disablePadding = setup.disablePadding, smooth = setup.smooth;
|
|
1141
|
+
var size = zoomAnimation.size, disabled = zoomAnimation.disabled;
|
|
1142
|
+
var step = wheel.step, smoothStep = wheel.smoothStep;
|
|
1143
|
+
if (!contentComponent) {
|
|
1144
|
+
throw new Error("Component not mounted");
|
|
1145
|
+
}
|
|
1146
|
+
event.preventDefault();
|
|
1147
|
+
event.stopPropagation();
|
|
1148
|
+
var delta = getDelta(event, null);
|
|
1149
|
+
var zoomStep = smooth ? smoothStep * Math.abs(event.deltaY) : step;
|
|
1150
|
+
var newScale = handleCalculateWheelZoom(contextInstance, delta, zoomStep, !event.ctrlKey);
|
|
1151
|
+
// if scale not change
|
|
1152
|
+
if (scale === newScale)
|
|
1153
|
+
return;
|
|
1154
|
+
var bounds = handleCalculateBounds(contextInstance, newScale);
|
|
1155
|
+
var mousePosition = getMousePosition(event, contentComponent, scale);
|
|
1156
|
+
var isPaddingDisabled = disabled || size === 0 || centerZoomedOut || disablePadding;
|
|
1157
|
+
var isLimitedToBounds = limitToBounds && isPaddingDisabled;
|
|
1158
|
+
var _b = handleCalculateZoomPositions(contextInstance, mousePosition.x, mousePosition.y, newScale, bounds, isLimitedToBounds), x = _b.x, y = _b.y;
|
|
1159
|
+
contextInstance.previousWheelEvent = event;
|
|
1160
|
+
contextInstance.setTransformState(newScale, x, y);
|
|
1161
|
+
handleCallback(getContext(contextInstance), event, onWheel);
|
|
1162
|
+
handleCallback(getContext(contextInstance), event, onZoom);
|
|
1163
|
+
};
|
|
1164
|
+
var handleWheelStop = function (contextInstance, event) {
|
|
1165
|
+
var _a = contextInstance.props, onWheelStop = _a.onWheelStop, onZoomStop = _a.onZoomStop;
|
|
1166
|
+
// fire animation
|
|
1167
|
+
cancelTimeout(contextInstance.wheelAnimationTimer);
|
|
1168
|
+
contextInstance.wheelAnimationTimer = setTimeout(function () {
|
|
1169
|
+
if (!contextInstance.mounted)
|
|
1170
|
+
return;
|
|
1171
|
+
handleAlignToScaleBounds(contextInstance, event.x, event.y);
|
|
1172
|
+
contextInstance.wheelAnimationTimer = null;
|
|
1173
|
+
}, wheelAnimationTime);
|
|
1174
|
+
// Wheel stop event
|
|
1175
|
+
var hasStoppedZooming = handleWheelZoomStop(contextInstance, event);
|
|
1176
|
+
if (hasStoppedZooming) {
|
|
1177
|
+
cancelTimeout(contextInstance.wheelStopEventTimer);
|
|
1178
|
+
contextInstance.wheelStopEventTimer = setTimeout(function () {
|
|
1179
|
+
if (!contextInstance.mounted)
|
|
1180
|
+
return;
|
|
1181
|
+
contextInstance.wheelStopEventTimer = null;
|
|
1182
|
+
handleCallback(getContext(contextInstance), event, onWheelStop);
|
|
1183
|
+
handleCallback(getContext(contextInstance), event, onZoomStop);
|
|
1184
|
+
}, wheelStopEventTime);
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
var getTouchCenter = function (event) {
|
|
1189
|
+
var totalX = 0;
|
|
1190
|
+
var totalY = 0;
|
|
1191
|
+
// Sum up the positions of all touches
|
|
1192
|
+
for (var i = 0; i < 2; i += 1) {
|
|
1193
|
+
totalX += event.touches[i].clientX;
|
|
1194
|
+
totalY += event.touches[i].clientY;
|
|
1195
|
+
}
|
|
1196
|
+
// Calculate the average position
|
|
1197
|
+
var x = totalX / 2;
|
|
1198
|
+
var y = totalY / 2;
|
|
1199
|
+
return { x: x, y: y };
|
|
1200
|
+
};
|
|
1201
|
+
var handlePinchStart = function (contextInstance, event) {
|
|
1202
|
+
var distance = getTouchDistance(event);
|
|
1203
|
+
contextInstance.pinchStartDistance = distance;
|
|
1204
|
+
contextInstance.lastDistance = distance;
|
|
1205
|
+
contextInstance.pinchStartScale = contextInstance.transformState.scale;
|
|
1206
|
+
contextInstance.isPanning = false;
|
|
1207
|
+
var center = getTouchCenter(event);
|
|
1208
|
+
contextInstance.pinchLastCenterX = center.x;
|
|
1209
|
+
contextInstance.pinchLastCenterY = center.y;
|
|
1210
|
+
handleCancelAnimation(contextInstance);
|
|
1211
|
+
};
|
|
1212
|
+
var handlePinchZoom = function (contextInstance, event) {
|
|
1213
|
+
var contentComponent = contextInstance.contentComponent, pinchStartDistance = contextInstance.pinchStartDistance, wrapperComponent = contextInstance.wrapperComponent;
|
|
1214
|
+
var scale = contextInstance.transformState.scale;
|
|
1215
|
+
var _a = contextInstance.setup, limitToBounds = _a.limitToBounds, centerZoomedOut = _a.centerZoomedOut, zoomAnimation = _a.zoomAnimation, alignmentAnimation = _a.alignmentAnimation;
|
|
1216
|
+
var disabled = zoomAnimation.disabled, size = zoomAnimation.size;
|
|
1217
|
+
// if one finger starts from outside of wrapper
|
|
1218
|
+
if (pinchStartDistance === null || !contentComponent)
|
|
1219
|
+
return;
|
|
1220
|
+
var midPoint = calculateTouchMidPoint(event, scale, contentComponent);
|
|
1221
|
+
// if touches goes off of the wrapper element
|
|
1222
|
+
if (!Number.isFinite(midPoint.x) || !Number.isFinite(midPoint.y))
|
|
1223
|
+
return;
|
|
1224
|
+
var currentDistance = getTouchDistance(event);
|
|
1225
|
+
var newScale = calculatePinchZoom(contextInstance, currentDistance);
|
|
1226
|
+
var center = getTouchCenter(event);
|
|
1227
|
+
// pan should be scale invariant.
|
|
1228
|
+
var panX = center.x - (contextInstance.pinchLastCenterX || 0);
|
|
1229
|
+
var panY = center.y - (contextInstance.pinchLastCenterY || 0);
|
|
1230
|
+
if (newScale === scale && panX === 0 && panY === 0)
|
|
1231
|
+
return;
|
|
1232
|
+
contextInstance.pinchLastCenterX = center.x;
|
|
1233
|
+
contextInstance.pinchLastCenterY = center.y;
|
|
1234
|
+
var bounds = handleCalculateBounds(contextInstance, newScale);
|
|
1235
|
+
var isPaddingDisabled = disabled || size === 0 || centerZoomedOut;
|
|
1236
|
+
var isLimitedToBounds = limitToBounds && isPaddingDisabled;
|
|
1237
|
+
var _b = handleCalculateZoomPositions(contextInstance, midPoint.x, midPoint.y, newScale, bounds, isLimitedToBounds), x = _b.x, y = _b.y;
|
|
1238
|
+
contextInstance.pinchMidpoint = midPoint;
|
|
1239
|
+
contextInstance.lastDistance = currentDistance;
|
|
1240
|
+
var sizeX = alignmentAnimation.sizeX, sizeY = alignmentAnimation.sizeY;
|
|
1241
|
+
var paddingValueX = getPaddingValue(contextInstance, sizeX);
|
|
1242
|
+
var paddingValueY = getPaddingValue(contextInstance, sizeY);
|
|
1243
|
+
var newPositionX = x + panX;
|
|
1244
|
+
var newPositionY = y + panY;
|
|
1245
|
+
var _c = getMouseBoundedPosition(newPositionX, newPositionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent), finalX = _c.x, finalY = _c.y;
|
|
1246
|
+
contextInstance.setTransformState(newScale, finalX, finalY);
|
|
1247
|
+
};
|
|
1248
|
+
var handlePinchStop = function (contextInstance) {
|
|
1249
|
+
var pinchMidpoint = contextInstance.pinchMidpoint;
|
|
1250
|
+
contextInstance.velocity = null;
|
|
1251
|
+
contextInstance.lastDistance = null;
|
|
1252
|
+
contextInstance.pinchMidpoint = null;
|
|
1253
|
+
contextInstance.pinchStartScale = null;
|
|
1254
|
+
contextInstance.pinchStartDistance = null;
|
|
1255
|
+
handleAlignToScaleBounds(contextInstance, pinchMidpoint === null || pinchMidpoint === void 0 ? void 0 : pinchMidpoint.x, pinchMidpoint === null || pinchMidpoint === void 0 ? void 0 : pinchMidpoint.y);
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
var handleDoubleClickStop = function (contextInstance, event) {
|
|
1259
|
+
var onZoomStop = contextInstance.props.onZoomStop;
|
|
1260
|
+
var animationTime = contextInstance.setup.doubleClick.animationTime;
|
|
1261
|
+
cancelTimeout(contextInstance.doubleClickStopEventTimer);
|
|
1262
|
+
contextInstance.doubleClickStopEventTimer = setTimeout(function () {
|
|
1263
|
+
contextInstance.doubleClickStopEventTimer = null;
|
|
1264
|
+
handleCallback(getContext(contextInstance), event, onZoomStop);
|
|
1265
|
+
}, animationTime);
|
|
1266
|
+
};
|
|
1267
|
+
var handleDoubleClickResetMode = function (contextInstance, event) {
|
|
1268
|
+
var _a = contextInstance.props, onZoomStart = _a.onZoomStart, onZoom = _a.onZoom;
|
|
1269
|
+
var _b = contextInstance.setup.doubleClick, animationTime = _b.animationTime, animationType = _b.animationType;
|
|
1270
|
+
handleCallback(getContext(contextInstance), event, onZoomStart);
|
|
1271
|
+
resetTransformations(contextInstance, animationTime, animationType, function () {
|
|
1272
|
+
return handleCallback(getContext(contextInstance), event, onZoom);
|
|
1273
|
+
});
|
|
1274
|
+
handleDoubleClickStop(contextInstance, event);
|
|
1275
|
+
};
|
|
1276
|
+
function getDoubleClickScale(mode, scale) {
|
|
1277
|
+
if (mode === "toggle") {
|
|
1278
|
+
return scale === 1 ? 1 : -1;
|
|
1279
|
+
}
|
|
1280
|
+
return mode === "zoomOut" ? -1 : 1;
|
|
1281
|
+
}
|
|
1282
|
+
function handleDoubleClick(contextInstance, event) {
|
|
1283
|
+
var setup = contextInstance.setup, doubleClickStopEventTimer = contextInstance.doubleClickStopEventTimer, transformState = contextInstance.transformState, contentComponent = contextInstance.contentComponent;
|
|
1284
|
+
var scale = transformState.scale;
|
|
1285
|
+
var _a = contextInstance.props, onZoomStart = _a.onZoomStart, onZoom = _a.onZoom;
|
|
1286
|
+
var _b = setup.doubleClick, disabled = _b.disabled, mode = _b.mode, step = _b.step, animationTime = _b.animationTime, animationType = _b.animationType;
|
|
1287
|
+
if (disabled)
|
|
1288
|
+
return;
|
|
1289
|
+
if (doubleClickStopEventTimer)
|
|
1290
|
+
return;
|
|
1291
|
+
if (mode === "reset") {
|
|
1292
|
+
return handleDoubleClickResetMode(contextInstance, event);
|
|
1293
|
+
}
|
|
1294
|
+
if (!contentComponent)
|
|
1295
|
+
return console.error("No ContentComponent found");
|
|
1296
|
+
var delta = getDoubleClickScale(mode, contextInstance.transformState.scale);
|
|
1297
|
+
var newScale = handleCalculateButtonZoom(contextInstance, delta, step);
|
|
1298
|
+
// stop execution when scale didn't change
|
|
1299
|
+
if (scale === newScale)
|
|
1300
|
+
return;
|
|
1301
|
+
handleCallback(getContext(contextInstance), event, onZoomStart);
|
|
1302
|
+
var mousePosition = getMousePosition(event, contentComponent, scale);
|
|
1303
|
+
var targetState = handleZoomToPoint(contextInstance, newScale, mousePosition.x, mousePosition.y);
|
|
1304
|
+
if (!targetState) {
|
|
1305
|
+
return console.error("Error during zoom event. New transformation state was not calculated.");
|
|
1306
|
+
}
|
|
1307
|
+
handleCallback(getContext(contextInstance), event, onZoom);
|
|
1308
|
+
animate(contextInstance, targetState, animationTime, animationType);
|
|
1309
|
+
handleDoubleClickStop(contextInstance, event);
|
|
1310
|
+
}
|
|
1311
|
+
var isDoubleClickAllowed = function (contextInstance, event) {
|
|
1312
|
+
var isInitialized = contextInstance.isInitialized, setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;
|
|
1313
|
+
var _a = setup.doubleClick, disabled = _a.disabled, excluded = _a.excluded;
|
|
1314
|
+
var target = event.target;
|
|
1315
|
+
var isWrapperChild = wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.contains(target);
|
|
1316
|
+
var isAllowed = isInitialized && target && isWrapperChild && !disabled;
|
|
1317
|
+
if (!isAllowed)
|
|
1318
|
+
return false;
|
|
1319
|
+
var isExcluded = isExcludedNode(target, excluded);
|
|
1320
|
+
if (isExcluded)
|
|
1321
|
+
return false;
|
|
1322
|
+
return true;
|
|
1323
|
+
};
|
|
1324
|
+
|
|
1325
|
+
var ZoomPanPinch = /** @class */ (function () {
|
|
1326
|
+
function ZoomPanPinch(props) {
|
|
1327
|
+
var _this = this;
|
|
1328
|
+
this.mounted = true;
|
|
1329
|
+
this.pinchLastCenterX = null;
|
|
1330
|
+
this.pinchLastCenterY = null;
|
|
1331
|
+
this.onChangeCallbacks = new Set();
|
|
1332
|
+
this.onInitCallbacks = new Set();
|
|
1333
|
+
// Components
|
|
1334
|
+
this.wrapperComponent = null;
|
|
1335
|
+
this.contentComponent = null;
|
|
1336
|
+
// Initialization
|
|
1337
|
+
this.isInitialized = false;
|
|
1338
|
+
this.bounds = null;
|
|
1339
|
+
// wheel helpers
|
|
1340
|
+
this.previousWheelEvent = null;
|
|
1341
|
+
this.wheelStopEventTimer = null;
|
|
1342
|
+
this.wheelAnimationTimer = null;
|
|
1343
|
+
// panning helpers
|
|
1344
|
+
this.isPanning = false;
|
|
1345
|
+
this.isWheelPanning = false;
|
|
1346
|
+
this.startCoords = null;
|
|
1347
|
+
this.lastTouch = null;
|
|
1348
|
+
// pinch helpers
|
|
1349
|
+
this.distance = null;
|
|
1350
|
+
this.lastDistance = null;
|
|
1351
|
+
this.pinchStartDistance = null;
|
|
1352
|
+
this.pinchStartScale = null;
|
|
1353
|
+
this.pinchMidpoint = null;
|
|
1354
|
+
// double click helpers
|
|
1355
|
+
this.doubleClickStopEventTimer = null;
|
|
1356
|
+
// velocity helpers
|
|
1357
|
+
this.velocity = null;
|
|
1358
|
+
this.velocityTime = null;
|
|
1359
|
+
this.lastMousePosition = null;
|
|
1360
|
+
// animations helpers
|
|
1361
|
+
this.animate = false;
|
|
1362
|
+
this.animation = null;
|
|
1363
|
+
this.maxBounds = null;
|
|
1364
|
+
// key press
|
|
1365
|
+
this.pressedKeys = {};
|
|
1366
|
+
this.mount = function () {
|
|
1367
|
+
_this.initializeWindowEvents();
|
|
1368
|
+
};
|
|
1369
|
+
this.unmount = function () {
|
|
1370
|
+
_this.cleanupWindowEvents();
|
|
1371
|
+
};
|
|
1372
|
+
this.update = function (newProps) {
|
|
1373
|
+
_this.props = newProps;
|
|
1374
|
+
handleCalculateBounds(_this, _this.transformState.scale);
|
|
1375
|
+
_this.setup = createSetup(newProps);
|
|
1376
|
+
};
|
|
1377
|
+
this.initializeWindowEvents = function () {
|
|
1378
|
+
var _a, _b;
|
|
1379
|
+
var passive = makePassiveEventOption();
|
|
1380
|
+
var currentDocument = (_a = _this.wrapperComponent) === null || _a === void 0 ? void 0 : _a.ownerDocument;
|
|
1381
|
+
var currentWindow = currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.defaultView;
|
|
1382
|
+
(_b = _this.wrapperComponent) === null || _b === void 0 ? void 0 : _b.addEventListener("wheel", _this.onWheelPanning, passive);
|
|
1383
|
+
// Panning on window to allow panning when mouse is out of component wrapper
|
|
1384
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener("mousedown", _this.onPanningStart, passive);
|
|
1385
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener("mousemove", _this.onPanning, passive);
|
|
1386
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener("mouseup", _this.onPanningStop, passive);
|
|
1387
|
+
currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.addEventListener("mouseleave", _this.clearPanning, passive);
|
|
1388
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener("keyup", _this.setKeyUnPressed, passive);
|
|
1389
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener("keydown", _this.setKeyPressed, passive);
|
|
1390
|
+
};
|
|
1391
|
+
this.cleanupWindowEvents = function () {
|
|
1392
|
+
var _a, _b;
|
|
1393
|
+
var passive = makePassiveEventOption();
|
|
1394
|
+
var currentDocument = (_a = _this.wrapperComponent) === null || _a === void 0 ? void 0 : _a.ownerDocument;
|
|
1395
|
+
var currentWindow = currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.defaultView;
|
|
1396
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener("mousedown", _this.onPanningStart, passive);
|
|
1397
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener("mousemove", _this.onPanning, passive);
|
|
1398
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener("mouseup", _this.onPanningStop, passive);
|
|
1399
|
+
currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.removeEventListener("mouseleave", _this.clearPanning, passive);
|
|
1400
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener("keyup", _this.setKeyUnPressed, passive);
|
|
1401
|
+
currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener("keydown", _this.setKeyPressed, passive);
|
|
1402
|
+
document.removeEventListener("mouseleave", _this.clearPanning, passive);
|
|
1403
|
+
handleCancelAnimation(_this);
|
|
1404
|
+
(_b = _this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
1405
|
+
};
|
|
1406
|
+
this.handleInitializeWrapperEvents = function (wrapper) {
|
|
1407
|
+
// Zooming events on wrapper
|
|
1408
|
+
var passive = makePassiveEventOption();
|
|
1409
|
+
wrapper.addEventListener("wheel", _this.onWheelZoom, passive);
|
|
1410
|
+
wrapper.addEventListener("dblclick", _this.onDoubleClick, passive);
|
|
1411
|
+
wrapper.addEventListener("touchstart", _this.onTouchPanningStart, passive);
|
|
1412
|
+
wrapper.addEventListener("touchmove", _this.onTouchPanning, passive);
|
|
1413
|
+
wrapper.addEventListener("touchend", _this.onTouchPanningStop, passive);
|
|
1414
|
+
};
|
|
1415
|
+
this.handleInitialize = function (wrapper, contentComponent) {
|
|
1416
|
+
var isCentered = false;
|
|
1417
|
+
var centerOnInit = _this.setup.centerOnInit;
|
|
1418
|
+
var hasTarget = function (entries, target) {
|
|
1419
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
1420
|
+
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
1421
|
+
var entry = entries_1[_i];
|
|
1422
|
+
if (entry.target === target) {
|
|
1423
|
+
return true;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
return false;
|
|
1427
|
+
};
|
|
1428
|
+
_this.applyTransformation();
|
|
1429
|
+
_this.onInitCallbacks.forEach(function (callback) {
|
|
1430
|
+
callback(getContext(_this));
|
|
1431
|
+
});
|
|
1432
|
+
_this.observer = new ResizeObserver(function (entries) {
|
|
1433
|
+
if (hasTarget(entries, wrapper) || hasTarget(entries, contentComponent)) {
|
|
1434
|
+
if (centerOnInit && !isCentered) {
|
|
1435
|
+
var currentWidth = contentComponent.offsetWidth;
|
|
1436
|
+
var currentHeight = contentComponent.offsetHeight;
|
|
1437
|
+
if (currentWidth > 0 || currentHeight > 0) {
|
|
1438
|
+
isCentered = true;
|
|
1439
|
+
_this.setCenter();
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
else {
|
|
1443
|
+
handleCancelAnimation(_this);
|
|
1444
|
+
handleCalculateBounds(_this, _this.transformState.scale);
|
|
1445
|
+
handleAlignToBounds(_this, 0);
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
});
|
|
1449
|
+
// Start observing the target node for configured mutations
|
|
1450
|
+
_this.observer.observe(wrapper);
|
|
1451
|
+
_this.observer.observe(contentComponent);
|
|
1452
|
+
};
|
|
1453
|
+
/// ///////
|
|
1454
|
+
// Zoom
|
|
1455
|
+
/// ///////
|
|
1456
|
+
this.onWheelZoom = function (event) {
|
|
1457
|
+
var disabled = _this.setup.disabled;
|
|
1458
|
+
if (disabled)
|
|
1459
|
+
return;
|
|
1460
|
+
var isAllowed = isWheelAllowed(_this, event);
|
|
1461
|
+
if (!isAllowed)
|
|
1462
|
+
return;
|
|
1463
|
+
var keysPressed = _this.isPressingKeys(_this.setup.wheel.activationKeys);
|
|
1464
|
+
if (!keysPressed)
|
|
1465
|
+
return;
|
|
1466
|
+
handleWheelStart(_this, event);
|
|
1467
|
+
handleWheelZoom(_this, event);
|
|
1468
|
+
handleWheelStop(_this, event);
|
|
1469
|
+
};
|
|
1470
|
+
/// ///////
|
|
1471
|
+
// Pan
|
|
1472
|
+
/// ///////
|
|
1473
|
+
this.onWheelPanning = function (event) {
|
|
1474
|
+
var _a = _this.setup, disabled = _a.disabled, wheel = _a.wheel, panning = _a.panning;
|
|
1475
|
+
if (!_this.wrapperComponent ||
|
|
1476
|
+
!_this.contentComponent ||
|
|
1477
|
+
disabled ||
|
|
1478
|
+
!wheel.wheelDisabled ||
|
|
1479
|
+
panning.disabled ||
|
|
1480
|
+
!panning.wheelPanning ||
|
|
1481
|
+
event.ctrlKey) {
|
|
1482
|
+
return;
|
|
1483
|
+
}
|
|
1484
|
+
event.preventDefault();
|
|
1485
|
+
event.stopPropagation();
|
|
1486
|
+
var _b = _this.transformState, positionX = _b.positionX, positionY = _b.positionY;
|
|
1487
|
+
var mouseX = positionX - event.deltaX;
|
|
1488
|
+
var mouseY = positionY - event.deltaY;
|
|
1489
|
+
var newPositionX = panning.lockAxisX ? positionX : mouseX;
|
|
1490
|
+
var newPositionY = panning.lockAxisY ? positionY : mouseY;
|
|
1491
|
+
var _c = _this.setup.alignmentAnimation, sizeX = _c.sizeX, sizeY = _c.sizeY;
|
|
1492
|
+
var paddingValueX = getPaddingValue(_this, sizeX);
|
|
1493
|
+
var paddingValueY = getPaddingValue(_this, sizeY);
|
|
1494
|
+
if (newPositionX === positionX && newPositionY === positionY)
|
|
1495
|
+
return;
|
|
1496
|
+
handleNewPosition(_this, newPositionX, newPositionY, paddingValueX, paddingValueY);
|
|
1497
|
+
};
|
|
1498
|
+
this.onPanningStart = function (event) {
|
|
1499
|
+
var disabled = _this.setup.disabled;
|
|
1500
|
+
var onPanningStart = _this.props.onPanningStart;
|
|
1501
|
+
if (disabled)
|
|
1502
|
+
return;
|
|
1503
|
+
var isAllowed = isPanningStartAllowed(_this, event);
|
|
1504
|
+
if (!isAllowed)
|
|
1505
|
+
return;
|
|
1506
|
+
var keysPressed = _this.isPressingKeys(_this.setup.panning.activationKeys);
|
|
1507
|
+
if (!keysPressed)
|
|
1508
|
+
return;
|
|
1509
|
+
if (event.button === 0 && !_this.setup.panning.allowLeftClickPan)
|
|
1510
|
+
return;
|
|
1511
|
+
if (event.button === 1 && !_this.setup.panning.allowMiddleClickPan)
|
|
1512
|
+
return;
|
|
1513
|
+
if (event.button === 2 && !_this.setup.panning.allowRightClickPan)
|
|
1514
|
+
return;
|
|
1515
|
+
event.preventDefault();
|
|
1516
|
+
event.stopPropagation();
|
|
1517
|
+
handleCancelAnimation(_this);
|
|
1518
|
+
handlePanningStart(_this, event);
|
|
1519
|
+
handleCallback(getContext(_this), event, onPanningStart);
|
|
1520
|
+
};
|
|
1521
|
+
this.onPanning = function (event) {
|
|
1522
|
+
var disabled = _this.setup.disabled;
|
|
1523
|
+
var onPanning = _this.props.onPanning;
|
|
1524
|
+
if (disabled)
|
|
1525
|
+
return;
|
|
1526
|
+
var isAllowed = isPanningAllowed(_this);
|
|
1527
|
+
if (!isAllowed)
|
|
1528
|
+
return;
|
|
1529
|
+
var keysPressed = _this.isPressingKeys(_this.setup.panning.activationKeys);
|
|
1530
|
+
if (!keysPressed)
|
|
1531
|
+
return;
|
|
1532
|
+
event.preventDefault();
|
|
1533
|
+
event.stopPropagation();
|
|
1534
|
+
handlePanning(_this, event.clientX, event.clientY);
|
|
1535
|
+
handleCallback(getContext(_this), event, onPanning);
|
|
1536
|
+
};
|
|
1537
|
+
this.onPanningStop = function (event) {
|
|
1538
|
+
var onPanningStop = _this.props.onPanningStop;
|
|
1539
|
+
if (_this.isPanning) {
|
|
1540
|
+
handlePanningEnd(_this);
|
|
1541
|
+
handleCallback(getContext(_this), event, onPanningStop);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
/// ///////
|
|
1545
|
+
// Pinch
|
|
1546
|
+
/// ///////
|
|
1547
|
+
this.onPinchStart = function (event) {
|
|
1548
|
+
var disabled = _this.setup.disabled;
|
|
1549
|
+
var _a = _this.props, onPinchingStart = _a.onPinchingStart, onZoomStart = _a.onZoomStart;
|
|
1550
|
+
if (disabled)
|
|
1551
|
+
return;
|
|
1552
|
+
var isAllowed = isPinchStartAllowed(_this, event);
|
|
1553
|
+
if (!isAllowed)
|
|
1554
|
+
return;
|
|
1555
|
+
handlePinchStart(_this, event);
|
|
1556
|
+
handleCancelAnimation(_this);
|
|
1557
|
+
handleCallback(getContext(_this), event, onPinchingStart);
|
|
1558
|
+
handleCallback(getContext(_this), event, onZoomStart);
|
|
1559
|
+
};
|
|
1560
|
+
this.onPinch = function (event) {
|
|
1561
|
+
var disabled = _this.setup.disabled;
|
|
1562
|
+
var _a = _this.props, onPinching = _a.onPinching, onZoom = _a.onZoom;
|
|
1563
|
+
if (disabled)
|
|
1564
|
+
return;
|
|
1565
|
+
var isAllowed = isPinchAllowed(_this);
|
|
1566
|
+
if (!isAllowed)
|
|
1567
|
+
return;
|
|
1568
|
+
event.preventDefault();
|
|
1569
|
+
event.stopPropagation();
|
|
1570
|
+
handlePinchZoom(_this, event);
|
|
1571
|
+
handleCallback(getContext(_this), event, onPinching);
|
|
1572
|
+
handleCallback(getContext(_this), event, onZoom);
|
|
1573
|
+
};
|
|
1574
|
+
this.onPinchStop = function (event) {
|
|
1575
|
+
var _a = _this.props, onPinchingStop = _a.onPinchingStop, onZoomStop = _a.onZoomStop;
|
|
1576
|
+
if (_this.pinchStartScale) {
|
|
1577
|
+
handlePinchStop(_this);
|
|
1578
|
+
handleCallback(getContext(_this), event, onPinchingStop);
|
|
1579
|
+
handleCallback(getContext(_this), event, onZoomStop);
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
/// ///////
|
|
1583
|
+
// Touch
|
|
1584
|
+
/// ///////
|
|
1585
|
+
this.onTouchPanningStart = function (event) {
|
|
1586
|
+
var disabled = _this.setup.disabled;
|
|
1587
|
+
var onPanningStart = _this.props.onPanningStart;
|
|
1588
|
+
if (disabled)
|
|
1589
|
+
return;
|
|
1590
|
+
var isAllowed = isPanningStartAllowed(_this, event);
|
|
1591
|
+
if (!isAllowed)
|
|
1592
|
+
return;
|
|
1593
|
+
var isDoubleTap = _this.lastTouch &&
|
|
1594
|
+
+new Date() - _this.lastTouch < 200 &&
|
|
1595
|
+
event.touches.length === 1;
|
|
1596
|
+
if (!isDoubleTap) {
|
|
1597
|
+
_this.lastTouch = +new Date();
|
|
1598
|
+
handleCancelAnimation(_this);
|
|
1599
|
+
var touches = event.touches;
|
|
1600
|
+
var isPanningAction = touches.length === 1;
|
|
1601
|
+
var isPinchAction = touches.length === 2;
|
|
1602
|
+
if (isPanningAction) {
|
|
1603
|
+
handleCancelAnimation(_this);
|
|
1604
|
+
handlePanningStart(_this, event);
|
|
1605
|
+
handleCallback(getContext(_this), event, onPanningStart);
|
|
1606
|
+
}
|
|
1607
|
+
if (isPinchAction) {
|
|
1608
|
+
_this.onPinchStart(event);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1612
|
+
this.onTouchPanning = function (event) {
|
|
1613
|
+
var disabled = _this.setup.disabled;
|
|
1614
|
+
var onPanning = _this.props.onPanning;
|
|
1615
|
+
if (_this.isPanning && event.touches.length === 1) {
|
|
1616
|
+
if (disabled)
|
|
1617
|
+
return;
|
|
1618
|
+
var isAllowed = isPanningAllowed(_this);
|
|
1619
|
+
if (!isAllowed)
|
|
1620
|
+
return;
|
|
1621
|
+
event.preventDefault();
|
|
1622
|
+
event.stopPropagation();
|
|
1623
|
+
var touch = event.touches[0];
|
|
1624
|
+
handlePanning(_this, touch.clientX, touch.clientY);
|
|
1625
|
+
handleCallback(getContext(_this), event, onPanning);
|
|
1626
|
+
}
|
|
1627
|
+
else if (event.touches.length > 1) {
|
|
1628
|
+
_this.onPinch(event);
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
this.onTouchPanningStop = function (event) {
|
|
1632
|
+
_this.onPanningStop(event);
|
|
1633
|
+
_this.onPinchStop(event);
|
|
1634
|
+
};
|
|
1635
|
+
/// ///////
|
|
1636
|
+
// Double Click
|
|
1637
|
+
/// ///////
|
|
1638
|
+
this.onDoubleClick = function (event) {
|
|
1639
|
+
var disabled = _this.setup.disabled;
|
|
1640
|
+
if (disabled)
|
|
1641
|
+
return;
|
|
1642
|
+
var isAllowed = isDoubleClickAllowed(_this, event);
|
|
1643
|
+
if (!isAllowed)
|
|
1644
|
+
return;
|
|
1645
|
+
handleDoubleClick(_this, event);
|
|
1646
|
+
};
|
|
1647
|
+
/// ///////
|
|
1648
|
+
// Helpers
|
|
1649
|
+
/// ///////
|
|
1650
|
+
this.clearPanning = function (event) {
|
|
1651
|
+
if (_this.isPanning) {
|
|
1652
|
+
_this.onPanningStop(event);
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
this.setKeyPressed = function (e) {
|
|
1656
|
+
_this.pressedKeys[e.key] = true;
|
|
1657
|
+
};
|
|
1658
|
+
this.setKeyUnPressed = function (e) {
|
|
1659
|
+
_this.pressedKeys[e.key] = false;
|
|
1660
|
+
};
|
|
1661
|
+
this.isPressingKeys = function (keys) {
|
|
1662
|
+
if (!keys.length) {
|
|
1663
|
+
return true;
|
|
1664
|
+
}
|
|
1665
|
+
return Boolean(keys.find(function (key) { return _this.pressedKeys[key]; }));
|
|
1666
|
+
};
|
|
1667
|
+
this.setTransformState = function (scale, positionX, positionY) {
|
|
1668
|
+
var onTransformed = _this.props.onTransformed;
|
|
1669
|
+
if (!Number.isNaN(scale) &&
|
|
1670
|
+
!Number.isNaN(positionX) &&
|
|
1671
|
+
!Number.isNaN(positionY)) {
|
|
1672
|
+
if (scale !== _this.transformState.scale) {
|
|
1673
|
+
_this.transformState.previousScale = _this.transformState.scale;
|
|
1674
|
+
_this.transformState.scale = scale;
|
|
1675
|
+
}
|
|
1676
|
+
_this.transformState.positionX = positionX;
|
|
1677
|
+
_this.transformState.positionY = positionY;
|
|
1678
|
+
_this.applyTransformation();
|
|
1679
|
+
var ctx_1 = getContext(_this);
|
|
1680
|
+
_this.onChangeCallbacks.forEach(function (callback) { return callback(ctx_1); });
|
|
1681
|
+
handleCallback(ctx_1, { scale: scale, positionX: positionX, positionY: positionY }, onTransformed);
|
|
1682
|
+
}
|
|
1683
|
+
else {
|
|
1684
|
+
console.error("Detected NaN set state values");
|
|
1685
|
+
}
|
|
1686
|
+
};
|
|
1687
|
+
this.setCenter = function () {
|
|
1688
|
+
if (_this.wrapperComponent && _this.contentComponent) {
|
|
1689
|
+
var targetState = getCenterPosition(_this.transformState.scale, _this.wrapperComponent, _this.contentComponent);
|
|
1690
|
+
_this.setTransformState(targetState.scale, targetState.positionX, targetState.positionY);
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
this.handleTransformStyles = function (x, y, scale) {
|
|
1694
|
+
if (_this.props.customTransform) {
|
|
1695
|
+
return _this.props.customTransform(x, y, scale);
|
|
1696
|
+
}
|
|
1697
|
+
return getTransformStyles(x, y, scale);
|
|
1698
|
+
};
|
|
1699
|
+
this.applyTransformation = function () {
|
|
1700
|
+
if (!_this.mounted || !_this.contentComponent)
|
|
1701
|
+
return;
|
|
1702
|
+
var _a = _this.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;
|
|
1703
|
+
var transform = _this.handleTransformStyles(positionX, positionY, scale);
|
|
1704
|
+
_this.contentComponent.style.transform = transform;
|
|
1705
|
+
};
|
|
1706
|
+
this.getContext = function () {
|
|
1707
|
+
return getContext(_this);
|
|
1708
|
+
};
|
|
1709
|
+
/**
|
|
1710
|
+
* Hooks
|
|
1711
|
+
*/
|
|
1712
|
+
this.onChange = function (callback) {
|
|
1713
|
+
if (!_this.onChangeCallbacks.has(callback)) {
|
|
1714
|
+
_this.onChangeCallbacks.add(callback);
|
|
1715
|
+
}
|
|
1716
|
+
return function () {
|
|
1717
|
+
_this.onChangeCallbacks.delete(callback);
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
this.onInit = function (callback) {
|
|
1721
|
+
if (!_this.onInitCallbacks.has(callback)) {
|
|
1722
|
+
_this.onInitCallbacks.add(callback);
|
|
1723
|
+
}
|
|
1724
|
+
return function () {
|
|
1725
|
+
_this.onInitCallbacks.delete(callback);
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
/**
|
|
1729
|
+
* Initialization
|
|
1730
|
+
*/
|
|
1731
|
+
this.init = function (wrapperComponent, contentComponent) {
|
|
1732
|
+
_this.cleanupWindowEvents();
|
|
1733
|
+
_this.wrapperComponent = wrapperComponent;
|
|
1734
|
+
_this.contentComponent = contentComponent;
|
|
1735
|
+
handleCalculateBounds(_this, _this.transformState.scale);
|
|
1736
|
+
_this.handleInitializeWrapperEvents(wrapperComponent);
|
|
1737
|
+
_this.handleInitialize(wrapperComponent, contentComponent);
|
|
1738
|
+
_this.initializeWindowEvents();
|
|
1739
|
+
_this.isInitialized = true;
|
|
1740
|
+
var ctx = getContext(_this);
|
|
1741
|
+
handleCallback(ctx, undefined, _this.props.onInit);
|
|
1742
|
+
};
|
|
1743
|
+
this.props = props;
|
|
1744
|
+
this.setup = createSetup(this.props);
|
|
1745
|
+
this.transformState = createState(this.props);
|
|
1746
|
+
}
|
|
1747
|
+
return ZoomPanPinch;
|
|
1748
|
+
}());
|
|
1749
|
+
|
|
1750
|
+
var Context = React__default.createContext(null);
|
|
1751
|
+
var getContent = function (children, ctx) {
|
|
1752
|
+
if (typeof children === "function") {
|
|
1753
|
+
return children(ctx);
|
|
1754
|
+
}
|
|
1755
|
+
return children;
|
|
1756
|
+
};
|
|
1757
|
+
var TransformWrapper = React__default.forwardRef(function (props, ref) {
|
|
1758
|
+
var instance = React.useRef(new ZoomPanPinch(props)).current;
|
|
1759
|
+
var content = getContent(props.children, getControls(instance));
|
|
1760
|
+
React.useImperativeHandle(ref, function () { return getControls(instance); }, [instance]);
|
|
1761
|
+
React.useEffect(function () {
|
|
1762
|
+
instance.update(props);
|
|
1763
|
+
}, [instance, props]);
|
|
1764
|
+
return React__default.createElement(Context.Provider, { value: instance }, content);
|
|
1765
|
+
});
|
|
1766
|
+
|
|
1767
|
+
React__default.forwardRef(function (props, ref) {
|
|
1768
|
+
var localRef = React.useRef(null);
|
|
1769
|
+
var instance = React.useContext(Context);
|
|
1770
|
+
React.useEffect(function () {
|
|
1771
|
+
return instance.onChange(function (ctx) {
|
|
1772
|
+
if (localRef.current) {
|
|
1773
|
+
var positionX = 0;
|
|
1774
|
+
var positionY = 0;
|
|
1775
|
+
localRef.current.style.transform = instance.handleTransformStyles(positionX, positionY, 1 / ctx.instance.transformState.scale);
|
|
1776
|
+
}
|
|
1777
|
+
});
|
|
1778
|
+
}, [instance]);
|
|
1779
|
+
return React__default.createElement("div", __assign({}, props, { ref: mergeRefs([localRef, ref]) }));
|
|
1780
|
+
});
|
|
1781
|
+
|
|
1782
|
+
function styleInject(css, ref) {
|
|
1783
|
+
if ( ref === void 0 ) ref = {};
|
|
1784
|
+
var insertAt = ref.insertAt;
|
|
1785
|
+
|
|
1786
|
+
if (typeof document === 'undefined') { return; }
|
|
1787
|
+
|
|
1788
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1789
|
+
var style = document.createElement('style');
|
|
1790
|
+
style.type = 'text/css';
|
|
1791
|
+
|
|
1792
|
+
if (insertAt === 'top') {
|
|
1793
|
+
if (head.firstChild) {
|
|
1794
|
+
head.insertBefore(style, head.firstChild);
|
|
1795
|
+
} else {
|
|
1796
|
+
head.appendChild(style);
|
|
1797
|
+
}
|
|
1798
|
+
} else {
|
|
1799
|
+
head.appendChild(style);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
if (style.styleSheet) {
|
|
1803
|
+
style.styleSheet.cssText = css;
|
|
1804
|
+
} else {
|
|
1805
|
+
style.appendChild(document.createTextNode(css));
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
var css_248z = ".transform-component-module_wrapper__SPB86 {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n transform: translate3d(0, 0, 0);\n}\n.transform-component-module_content__FBWxo {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__FBWxo img {\n pointer-events: none;\n}\n";
|
|
1810
|
+
var styles = {"wrapper":"transform-component-module_wrapper__SPB86","content":"transform-component-module_content__FBWxo"};
|
|
1811
|
+
styleInject(css_248z);
|
|
1812
|
+
|
|
1813
|
+
var TransformComponent = function (_a) {
|
|
1814
|
+
var children = _a.children, _b = _a.wrapperClass, wrapperClass = _b === void 0 ? "" : _b, _c = _a.contentClass, contentClass = _c === void 0 ? "" : _c, wrapperStyle = _a.wrapperStyle, contentStyle = _a.contentStyle, _d = _a.wrapperProps, wrapperProps = _d === void 0 ? {} : _d, _e = _a.contentProps, contentProps = _e === void 0 ? {} : _e;
|
|
1815
|
+
var _f = React.useContext(Context), init = _f.init, cleanupWindowEvents = _f.cleanupWindowEvents;
|
|
1816
|
+
var wrapperRef = React.useRef(null);
|
|
1817
|
+
var contentRef = React.useRef(null);
|
|
1818
|
+
React.useEffect(function () {
|
|
1819
|
+
var wrapper = wrapperRef.current;
|
|
1820
|
+
var content = contentRef.current;
|
|
1821
|
+
if (wrapper !== null && content !== null && init) {
|
|
1822
|
+
init === null || init === void 0 ? void 0 : init(wrapper, content);
|
|
1823
|
+
}
|
|
1824
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1825
|
+
return function () {
|
|
1826
|
+
cleanupWindowEvents === null || cleanupWindowEvents === void 0 ? void 0 : cleanupWindowEvents();
|
|
1827
|
+
};
|
|
1828
|
+
}, []);
|
|
1829
|
+
return (React__default.createElement("div", __assign({}, wrapperProps, { ref: wrapperRef, className: "".concat(baseClasses.wrapperClass, " ").concat(styles.wrapper, " ").concat(wrapperClass), style: wrapperStyle }),
|
|
1830
|
+
React__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children)));
|
|
1831
|
+
};
|
|
1832
|
+
|
|
1833
|
+
var useTransformContext = function () {
|
|
1834
|
+
var libraryContext = React.useContext(Context);
|
|
1835
|
+
if (!libraryContext) {
|
|
1836
|
+
throw new Error("Transform context must be placed inside TransformWrapper");
|
|
1837
|
+
}
|
|
1838
|
+
return libraryContext;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
var useControls = function () {
|
|
1842
|
+
var libraryContext = useTransformContext();
|
|
1843
|
+
return getControls(libraryContext);
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1846
|
+
var useTransformEffect = function (callback) {
|
|
1847
|
+
var libraryContext = useTransformContext();
|
|
1848
|
+
React.useEffect(function () {
|
|
1849
|
+
var unmountCallback;
|
|
1850
|
+
var unmount = libraryContext.onChange(function (ref) {
|
|
1851
|
+
unmountCallback = callback(getState(ref.instance));
|
|
1852
|
+
});
|
|
1853
|
+
return function () {
|
|
1854
|
+
unmount();
|
|
1855
|
+
unmountCallback === null || unmountCallback === void 0 ? void 0 : unmountCallback();
|
|
1856
|
+
};
|
|
1857
|
+
}, [callback, libraryContext]);
|
|
1858
|
+
};
|
|
1859
|
+
|
|
1860
|
+
exports.Context = Context;
|
|
1861
|
+
exports.TransformComponent = TransformComponent;
|
|
1862
|
+
exports.TransformWrapper = TransformWrapper;
|
|
1863
|
+
exports.getCenterPosition = getCenterPosition;
|
|
1864
|
+
exports.getTransformStyles = getTransformStyles;
|
|
1865
|
+
exports.useControls = useControls;
|
|
1866
|
+
exports.useTransformContext = useTransformContext;
|
|
1867
|
+
exports.useTransformEffect = useTransformEffect;
|