@btst/stack 1.9.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1515) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +7 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +5 -0
  3. package/dist/_virtual/a11y-dark.cjs +5 -0
  4. package/dist/_virtual/a11y-dark.mjs +3 -0
  5. package/dist/_virtual/atom-dark.cjs +5 -0
  6. package/dist/_virtual/atom-dark.mjs +3 -0
  7. package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
  8. package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
  9. package/dist/_virtual/cb.cjs +5 -0
  10. package/dist/_virtual/cb.mjs +3 -0
  11. package/dist/_virtual/coldark-cold.cjs +5 -0
  12. package/dist/_virtual/coldark-cold.mjs +3 -0
  13. package/dist/_virtual/coldark-dark.cjs +5 -0
  14. package/dist/_virtual/coldark-dark.mjs +3 -0
  15. package/dist/_virtual/coy-without-shadows.cjs +5 -0
  16. package/dist/_virtual/coy-without-shadows.mjs +3 -0
  17. package/dist/_virtual/coy.cjs +5 -0
  18. package/dist/_virtual/coy.mjs +3 -0
  19. package/dist/_virtual/darcula.cjs +5 -0
  20. package/dist/_virtual/darcula.mjs +3 -0
  21. package/dist/_virtual/dark.cjs +5 -0
  22. package/dist/_virtual/dark.mjs +3 -0
  23. package/dist/_virtual/dracula.cjs +5 -0
  24. package/dist/_virtual/dracula.mjs +3 -0
  25. package/dist/_virtual/duotone-dark.cjs +5 -0
  26. package/dist/_virtual/duotone-dark.mjs +3 -0
  27. package/dist/_virtual/duotone-earth.cjs +5 -0
  28. package/dist/_virtual/duotone-earth.mjs +3 -0
  29. package/dist/_virtual/duotone-forest.cjs +5 -0
  30. package/dist/_virtual/duotone-forest.mjs +3 -0
  31. package/dist/_virtual/duotone-light.cjs +5 -0
  32. package/dist/_virtual/duotone-light.mjs +3 -0
  33. package/dist/_virtual/duotone-sea.cjs +5 -0
  34. package/dist/_virtual/duotone-sea.mjs +3 -0
  35. package/dist/_virtual/duotone-space.cjs +5 -0
  36. package/dist/_virtual/duotone-space.mjs +3 -0
  37. package/dist/_virtual/funky.cjs +5 -0
  38. package/dist/_virtual/funky.mjs +3 -0
  39. package/dist/_virtual/ghcolors.cjs +5 -0
  40. package/dist/_virtual/ghcolors.mjs +3 -0
  41. package/dist/_virtual/gruvbox-dark.cjs +5 -0
  42. package/dist/_virtual/gruvbox-dark.mjs +3 -0
  43. package/dist/_virtual/gruvbox-light.cjs +5 -0
  44. package/dist/_virtual/gruvbox-light.mjs +3 -0
  45. package/dist/_virtual/holi-theme.cjs +5 -0
  46. package/dist/_virtual/holi-theme.mjs +3 -0
  47. package/dist/_virtual/hopscotch.cjs +5 -0
  48. package/dist/_virtual/hopscotch.mjs +3 -0
  49. package/dist/_virtual/index.cjs +9 -0
  50. package/dist/_virtual/index.mjs +7 -0
  51. package/dist/_virtual/index2.cjs +7 -0
  52. package/dist/_virtual/index2.mjs +5 -0
  53. package/dist/_virtual/index3.cjs +7 -0
  54. package/dist/_virtual/index3.mjs +5 -0
  55. package/dist/_virtual/index4.cjs +9 -0
  56. package/dist/_virtual/index4.mjs +7 -0
  57. package/dist/_virtual/index5.cjs +5 -0
  58. package/dist/_virtual/index5.mjs +3 -0
  59. package/dist/_virtual/index6.cjs +5 -0
  60. package/dist/_virtual/index6.mjs +3 -0
  61. package/dist/_virtual/index7.cjs +5 -0
  62. package/dist/_virtual/index7.mjs +3 -0
  63. package/dist/_virtual/index8.cjs +5 -0
  64. package/dist/_virtual/index8.mjs +3 -0
  65. package/dist/_virtual/interopRequireDefault.cjs +5 -0
  66. package/dist/_virtual/interopRequireDefault.mjs +3 -0
  67. package/dist/_virtual/lucario.cjs +5 -0
  68. package/dist/_virtual/lucario.mjs +3 -0
  69. package/dist/_virtual/material-dark.cjs +5 -0
  70. package/dist/_virtual/material-dark.mjs +3 -0
  71. package/dist/_virtual/material-light.cjs +5 -0
  72. package/dist/_virtual/material-light.mjs +3 -0
  73. package/dist/_virtual/material-oceanic.cjs +5 -0
  74. package/dist/_virtual/material-oceanic.mjs +3 -0
  75. package/dist/_virtual/night-owl.cjs +5 -0
  76. package/dist/_virtual/night-owl.mjs +3 -0
  77. package/dist/_virtual/nord.cjs +5 -0
  78. package/dist/_virtual/nord.mjs +3 -0
  79. package/dist/_virtual/okaidia.cjs +5 -0
  80. package/dist/_virtual/okaidia.mjs +3 -0
  81. package/dist/_virtual/one-dark.cjs +5 -0
  82. package/dist/_virtual/one-dark.mjs +3 -0
  83. package/dist/_virtual/one-light.cjs +5 -0
  84. package/dist/_virtual/one-light.mjs +3 -0
  85. package/dist/_virtual/pojoaque.cjs +5 -0
  86. package/dist/_virtual/pojoaque.mjs +3 -0
  87. package/dist/_virtual/prism.cjs +5 -0
  88. package/dist/_virtual/prism.mjs +3 -0
  89. package/dist/_virtual/shades-of-purple.cjs +5 -0
  90. package/dist/_virtual/shades-of-purple.mjs +3 -0
  91. package/dist/_virtual/solarized-dark-atom.cjs +5 -0
  92. package/dist/_virtual/solarized-dark-atom.mjs +3 -0
  93. package/dist/_virtual/solarizedlight.cjs +5 -0
  94. package/dist/_virtual/solarizedlight.mjs +3 -0
  95. package/dist/_virtual/synthwave84.cjs +5 -0
  96. package/dist/_virtual/synthwave84.mjs +3 -0
  97. package/dist/_virtual/tomorrow.cjs +5 -0
  98. package/dist/_virtual/tomorrow.mjs +3 -0
  99. package/dist/_virtual/twilight.cjs +5 -0
  100. package/dist/_virtual/twilight.mjs +3 -0
  101. package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
  102. package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
  103. package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
  104. package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
  105. package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
  106. package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
  107. package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
  108. package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
  109. package/dist/_virtual/vs.cjs +5 -0
  110. package/dist/_virtual/vs.mjs +3 -0
  111. package/dist/_virtual/vsc-dark-plus.cjs +5 -0
  112. package/dist/_virtual/vsc-dark-plus.mjs +3 -0
  113. package/dist/_virtual/with-selector.cjs +9 -0
  114. package/dist/_virtual/with-selector.development.cjs +5 -0
  115. package/dist/_virtual/with-selector.development.mjs +3 -0
  116. package/dist/_virtual/with-selector.development2.cjs +5 -0
  117. package/dist/_virtual/with-selector.development2.mjs +3 -0
  118. package/dist/_virtual/with-selector.mjs +7 -0
  119. package/dist/_virtual/with-selector.production.cjs +5 -0
  120. package/dist/_virtual/with-selector.production.min.cjs +5 -0
  121. package/dist/_virtual/with-selector.production.min.mjs +3 -0
  122. package/dist/_virtual/with-selector.production.mjs +3 -0
  123. package/dist/_virtual/with-selector2.cjs +7 -0
  124. package/dist/_virtual/with-selector2.mjs +5 -0
  125. package/dist/_virtual/with-selector3.cjs +5 -0
  126. package/dist/_virtual/with-selector3.mjs +3 -0
  127. package/dist/_virtual/with-selector4.cjs +5 -0
  128. package/dist/_virtual/with-selector4.mjs +3 -0
  129. package/dist/_virtual/xonokai.cjs +5 -0
  130. package/dist/_virtual/xonokai.mjs +3 -0
  131. package/dist/_virtual/z-touch.cjs +5 -0
  132. package/dist/_virtual/z-touch.mjs +3 -0
  133. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
  134. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
  135. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
  136. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
  137. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
  138. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  139. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
  140. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
  141. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
  142. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
  143. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
  144. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
  145. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
  146. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  147. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
  148. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
  149. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
  150. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  151. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
  152. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
  153. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
  154. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  155. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
  156. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  157. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
  158. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
  159. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
  160. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
  161. 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
  162. 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
  163. 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
  164. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
  165. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
  166. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
  167. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
  168. 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
  169. 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
  170. 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
  171. 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
  172. 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
  173. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
  174. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
  191. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
  192. 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
  193. 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
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. 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
  201. 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
  202. 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
  203. 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
  204. 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
  205. 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
  206. 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
  207. 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
  208. 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
  209. 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
  210. 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
  211. 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
  212. 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
  213. 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
  214. 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
  215. 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
  216. 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
  217. 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
  218. 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
  219. 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
  220. 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
  221. 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
  222. 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
  223. 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
  224. 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
  225. 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
  226. 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
  227. 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
  228. 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
  229. 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
  230. 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
  231. 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
  232. 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
  233. 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
  234. 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
  235. 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
  236. 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
  237. 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
  238. 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
  239. 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
  240. 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
  241. 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
  242. 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
  243. 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
  244. 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
  245. 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
  246. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
  247. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
  248. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
  249. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
  250. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
  251. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
  252. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
  253. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
  254. 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
  255. 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
  256. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
  257. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
  258. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
  259. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
  260. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
  261. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
  262. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
  263. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
  264. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
  265. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
  266. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
  267. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
  268. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
  269. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
  270. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
  271. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
  272. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
  273. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
  274. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
  275. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
  276. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
  277. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
  278. 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
  279. 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
  280. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
  281. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
  282. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
  283. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
  284. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
  285. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
  286. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
  287. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
  288. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
  289. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
  290. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
  291. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
  292. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
  293. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
  294. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
  295. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
  296. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
  297. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
  298. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
  299. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
  300. 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
  301. 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
  302. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
  303. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
  304. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
  305. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
  306. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
  307. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
  308. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
  309. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
  310. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
  311. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
  312. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
  313. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
  314. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
  315. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
  316. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
  317. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
  318. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
  319. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
  320. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
  321. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
  322. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
  323. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
  324. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
  325. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
  326. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
  327. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
  328. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
  329. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
  330. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
  331. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
  332. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
  333. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
  334. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
  335. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
  336. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
  337. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
  338. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
  339. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
  340. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
  341. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
  342. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
  343. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
  344. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
  345. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
  346. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
  347. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
  348. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
  349. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
  350. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
  351. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
  352. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
  353. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
  354. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
  355. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
  356. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
  357. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
  358. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
  359. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
  360. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
  361. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
  362. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
  363. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
  364. 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
  365. 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
  366. 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
  367. 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
  368. 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
  369. 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
  370. 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
  371. 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
  372. 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
  373. 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
  374. 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
  375. 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
  376. 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
  377. 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
  378. 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
  379. 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
  380. 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
  381. 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
  382. 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
  383. 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
  384. 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
  385. 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
  386. 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
  387. 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
  388. 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
  389. 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
  390. 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
  391. 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
  392. 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
  393. 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
  394. 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
  395. 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
  396. 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
  397. 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
  398. 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
  399. 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
  400. 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
  401. 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
  402. 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
  403. 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
  404. 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
  405. 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
  406. 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
  407. 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
  408. 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
  409. 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
  410. 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
  411. 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
  412. 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
  413. 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
  414. 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
  415. 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
  416. 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
  417. 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
  418. 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
  419. 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
  420. 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
  421. 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
  422. 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
  423. 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
  424. 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
  425. 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
  426. 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
  427. 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
  428. 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
  429. 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
  430. 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
  431. 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
  432. 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
  433. 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
  434. 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
  435. 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
  436. 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
  437. 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
  438. 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
  439. 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
  440. 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
  441. 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
  442. 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
  443. 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
  444. 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
  445. 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
  446. 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
  447. 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
  448. 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
  449. 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
  450. 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
  451. 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
  452. 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
  453. 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
  454. 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
  455. 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
  456. 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
  457. 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
  458. 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
  459. 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
  460. 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
  461. 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
  462. 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
  463. 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
  464. 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
  465. 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
  466. 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
  467. 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
  468. 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
  469. 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
  470. 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
  471. 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
  472. 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
  473. 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
  474. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
  475. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
  476. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
  477. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
  478. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
  479. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
  480. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
  481. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
  482. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
  483. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
  484. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
  485. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
  486. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
  487. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
  488. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
  489. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
  490. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
  491. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
  492. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
  493. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
  494. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
  495. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
  496. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
  497. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
  498. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
  499. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
  500. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
  501. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
  502. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
  503. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
  504. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
  505. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
  506. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
  507. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
  508. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
  509. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
  510. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
  511. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
  512. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
  513. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
  514. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
  515. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
  516. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
  517. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
  518. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
  519. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
  520. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
  521. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
  522. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
  523. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
  524. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
  525. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
  526. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
  527. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
  528. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
  529. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
  530. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
  531. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
  532. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
  533. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
  534. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
  535. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
  536. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
  537. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
  538. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
  539. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
  540. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
  541. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
  542. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
  543. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
  544. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
  545. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
  546. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
  547. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
  548. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
  549. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
  550. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
  551. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
  552. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
  553. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
  554. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
  555. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
  556. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
  557. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
  558. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
  559. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
  560. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
  561. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
  562. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
  563. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
  564. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
  565. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
  566. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
  567. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
  568. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
  569. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
  570. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
  571. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
  572. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
  573. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
  574. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
  575. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
  576. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
  577. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
  578. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
  579. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
  580. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
  581. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
  582. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
  583. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
  584. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
  585. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
  586. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
  587. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
  588. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
  589. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
  590. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
  591. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
  592. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
  593. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
  594. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
  595. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
  596. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
  597. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
  598. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
  599. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
  600. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
  601. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
  602. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
  603. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
  604. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
  605. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
  606. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
  607. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
  608. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
  609. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
  610. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
  611. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
  612. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
  613. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
  614. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
  615. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
  616. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
  617. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
  618. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
  619. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
  620. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
  621. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
  622. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
  623. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
  624. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
  625. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
  626. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
  627. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
  628. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
  629. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
  630. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
  631. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
  632. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
  633. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
  634. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
  635. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
  636. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
  637. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
  638. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
  639. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
  640. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
  641. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
  642. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
  643. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
  644. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
  645. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
  646. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
  647. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
  648. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
  649. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
  650. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
  651. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
  652. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
  653. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
  654. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
  655. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
  656. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
  657. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
  658. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
  659. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
  660. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
  661. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
  662. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
  663. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
  664. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
  665. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
  666. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
  667. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
  668. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
  669. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
  670. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
  671. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
  672. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
  673. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
  674. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
  675. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
  676. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
  677. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
  678. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
  679. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
  680. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
  681. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
  682. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
  683. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
  684. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
  685. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
  686. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
  687. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
  688. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
  689. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
  690. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
  691. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
  692. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
  693. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
  694. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
  695. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
  696. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
  697. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
  698. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
  699. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
  700. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
  701. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
  702. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
  703. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
  704. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
  705. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
  706. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
  707. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
  708. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
  709. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
  710. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
  711. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
  712. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
  713. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
  714. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
  715. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
  716. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
  717. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
  718. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
  719. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
  720. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
  721. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
  722. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
  723. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
  724. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
  725. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
  726. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
  727. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
  728. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
  729. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
  730. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
  731. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
  732. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
  733. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
  734. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
  735. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
  736. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
  737. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
  738. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
  739. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
  740. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
  741. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
  742. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
  743. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
  744. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
  745. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
  746. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
  747. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
  748. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
  749. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
  750. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
  751. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
  752. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
  753. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
  754. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
  755. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
  756. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
  757. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
  758. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
  759. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
  760. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
  761. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
  762. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
  763. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
  764. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
  765. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
  766. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
  767. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
  768. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
  769. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
  770. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
  771. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
  772. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
  773. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
  774. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
  775. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
  776. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
  777. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
  778. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
  779. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
  780. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
  781. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
  782. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
  783. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
  784. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
  785. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
  786. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
  787. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
  788. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
  789. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
  790. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
  791. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
  792. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
  793. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
  794. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
  795. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
  796. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
  797. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
  798. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
  799. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
  800. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
  801. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
  802. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
  803. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
  804. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
  805. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
  806. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
  807. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
  808. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
  809. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
  810. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
  811. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
  812. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
  813. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
  814. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
  815. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
  816. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
  817. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
  818. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
  819. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
  820. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
  821. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
  822. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
  823. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
  824. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
  825. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
  826. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
  827. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  828. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
  829. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
  830. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
  831. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
  832. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
  833. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
  834. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
  835. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
  836. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
  837. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
  838. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
  839. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
  840. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
  841. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
  842. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
  843. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
  844. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
  845. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
  846. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
  847. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
  848. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
  849. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
  850. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
  851. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
  852. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
  853. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
  854. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
  855. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
  856. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
  857. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
  858. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
  859. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
  860. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
  861. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
  862. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
  863. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
  864. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
  865. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
  866. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
  867. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
  868. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
  869. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
  870. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
  871. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
  872. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
  873. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
  874. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
  875. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
  876. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
  877. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
  878. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
  879. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
  880. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
  881. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
  882. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
  883. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
  884. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
  885. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
  886. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
  887. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
  888. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
  889. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
  890. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
  891. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
  892. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
  893. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
  894. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
  895. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
  896. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
  897. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
  898. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
  899. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
  900. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
  901. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
  902. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
  903. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
  904. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
  905. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
  906. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
  907. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
  908. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
  909. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
  910. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
  911. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
  912. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
  913. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
  914. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
  915. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
  916. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
  917. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
  918. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
  919. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
  920. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
  921. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
  922. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
  923. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
  924. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
  925. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
  926. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
  927. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
  928. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
  929. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
  930. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
  931. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
  932. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
  933. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
  934. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
  935. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
  936. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
  937. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
  938. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
  939. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
  940. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
  941. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
  942. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
  943. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
  944. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
  945. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
  946. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
  947. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
  948. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
  949. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
  950. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
  951. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
  952. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
  953. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
  954. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
  955. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
  956. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
  957. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
  958. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
  959. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
  960. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
  961. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
  962. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
  963. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
  964. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
  965. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
  966. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
  967. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
  968. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
  969. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
  970. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
  971. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
  972. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
  973. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
  974. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
  975. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
  976. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
  977. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
  978. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
  979. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
  980. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
  981. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
  982. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
  983. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
  984. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
  985. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
  986. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
  987. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
  988. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
  989. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
  990. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
  991. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
  992. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
  993. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
  994. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
  995. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
  996. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
  997. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
  998. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
  999. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
  1000. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
  1001. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
  1002. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
  1003. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
  1004. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
  1005. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
  1006. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
  1007. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
  1008. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
  1009. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
  1010. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
  1011. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
  1012. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
  1013. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
  1014. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
  1015. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
  1016. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
  1017. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
  1018. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
  1019. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
  1020. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
  1021. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
  1022. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
  1023. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
  1024. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
  1025. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
  1026. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
  1027. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
  1028. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
  1029. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
  1030. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
  1031. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
  1032. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
  1033. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
  1034. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
  1035. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
  1036. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
  1037. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
  1038. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
  1039. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
  1040. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
  1041. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
  1042. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
  1043. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
  1044. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
  1045. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
  1046. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
  1047. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
  1048. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
  1049. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
  1050. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
  1051. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
  1052. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
  1053. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
  1054. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
  1055. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
  1056. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
  1057. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
  1058. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
  1059. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
  1060. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
  1061. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
  1062. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
  1063. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
  1064. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
  1065. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
  1066. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
  1067. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
  1068. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
  1069. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
  1070. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
  1071. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
  1072. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
  1073. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
  1074. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
  1075. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
  1076. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
  1077. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
  1078. 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
  1079. 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
  1080. 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
  1081. 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
  1082. 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
  1083. 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
  1084. 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
  1085. 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
  1086. 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
  1087. 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
  1088. 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
  1089. 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
  1090. 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
  1091. 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
  1092. 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
  1093. 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
  1094. 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
  1095. 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
  1096. 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
  1097. 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
  1098. 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
  1099. 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
  1100. 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
  1101. 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
  1102. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
  1103. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
  1104. 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
  1105. 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
  1106. 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
  1107. 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
  1108. 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
  1109. 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
  1110. 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
  1111. 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
  1112. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
  1113. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
  1114. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
  1115. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
  1116. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
  1117. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
  1118. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
  1119. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
  1120. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
  1121. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
  1122. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
  1123. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
  1124. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
  1125. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
  1126. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
  1127. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
  1128. package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
  1129. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
  1130. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
  1131. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
  1132. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
  1133. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
  1134. package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +3 -3
  1135. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
  1136. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
  1137. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
  1138. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
  1139. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
  1140. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
  1141. package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
  1142. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
  1143. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
  1144. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
  1145. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
  1146. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
  1147. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
  1148. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
  1149. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
  1150. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
  1151. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
  1152. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
  1153. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
  1154. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
  1155. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
  1156. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
  1157. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
  1158. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
  1159. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
  1160. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
  1161. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
  1162. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
  1163. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
  1164. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
  1165. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
  1166. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
  1167. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
  1168. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
  1169. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
  1170. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
  1171. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
  1172. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
  1173. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
  1174. package/dist/packages/ui/src/components/accordion.cjs +2 -2
  1175. package/dist/packages/ui/src/components/accordion.mjs +1 -1
  1176. package/dist/packages/ui/src/components/auto-form/fields/array.cjs +3 -3
  1177. package/dist/packages/ui/src/components/calendar.cjs +4 -4
  1178. package/dist/packages/ui/src/components/card.cjs +11 -0
  1179. package/dist/packages/ui/src/components/card.mjs +11 -1
  1180. package/dist/packages/ui/src/components/carousel.cjs +3 -3
  1181. package/dist/packages/ui/src/components/checkbox.cjs +2 -2
  1182. package/dist/packages/ui/src/components/command.cjs +33 -2
  1183. package/dist/packages/ui/src/components/command.mjs +31 -2
  1184. package/dist/packages/ui/src/components/date-picker.cjs +2 -2
  1185. package/dist/packages/ui/src/components/dialog.cjs +8 -2
  1186. package/dist/packages/ui/src/components/dialog.mjs +6 -1
  1187. package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
  1188. package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
  1189. package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
  1190. package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
  1191. package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
  1192. package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
  1193. package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
  1194. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
  1195. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
  1196. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
  1197. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
  1198. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
  1199. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
  1200. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
  1201. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
  1202. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
  1203. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
  1204. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
  1205. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
  1206. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
  1207. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
  1208. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
  1209. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
  1210. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
  1211. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
  1212. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
  1213. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
  1214. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
  1215. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
  1216. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
  1217. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
  1218. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
  1219. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
  1220. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
  1221. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
  1222. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
  1223. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
  1224. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
  1225. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
  1226. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
  1227. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
  1228. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
  1229. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
  1230. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
  1231. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
  1232. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
  1233. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
  1234. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
  1235. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
  1236. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
  1237. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
  1238. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
  1239. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
  1240. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
  1241. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
  1242. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
  1243. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
  1244. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
  1245. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
  1246. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
  1247. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
  1248. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
  1249. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
  1250. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
  1251. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
  1252. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
  1253. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
  1254. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
  1255. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
  1256. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
  1257. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
  1258. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
  1259. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
  1260. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
  1261. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
  1262. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
  1263. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
  1264. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
  1265. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
  1266. package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +168 -0
  1267. package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +157 -0
  1268. package/dist/packages/ui/src/components/multi-select.cjs +3 -3
  1269. package/dist/packages/ui/src/components/radio-group.cjs +2 -2
  1270. package/dist/packages/ui/src/components/resizable.cjs +51 -0
  1271. package/dist/packages/ui/src/components/resizable.mjs +47 -0
  1272. package/dist/packages/ui/src/components/select.cjs +5 -5
  1273. package/dist/packages/ui/src/components/sheet.cjs +2 -2
  1274. package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
  1275. package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
  1276. package/dist/packages/ui/src/components/toggle.cjs +46 -0
  1277. package/dist/packages/ui/src/components/toggle.mjs +43 -0
  1278. package/dist/packages/ui/src/components/tooltip.cjs +58 -0
  1279. package/dist/packages/ui/src/components/tooltip.mjs +53 -0
  1280. package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
  1281. package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
  1282. package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
  1283. package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
  1284. package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
  1285. package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
  1286. package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
  1287. package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
  1288. package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
  1289. package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
  1290. package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
  1291. package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
  1292. package/dist/packages/ui/src/components/ui-builder/index.cjs +276 -0
  1293. package/dist/packages/ui/src/components/ui-builder/index.mjs +264 -0
  1294. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +298 -0
  1295. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +292 -0
  1296. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
  1297. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
  1298. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +410 -0
  1299. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +404 -0
  1300. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
  1301. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
  1302. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
  1303. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
  1304. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
  1305. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
  1306. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +21 -0
  1307. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +19 -0
  1308. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
  1309. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
  1310. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +558 -0
  1311. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +543 -0
  1312. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
  1313. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
  1314. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
  1315. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
  1316. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
  1317. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
  1318. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
  1319. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
  1320. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
  1321. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
  1322. package/dist/packages/ui/src/components/ui-builder/internal/dnd/draggable-new-component.cjs +67 -0
  1323. package/dist/packages/ui/src/components/ui-builder/internal/dnd/draggable-new-component.mjs +62 -0
  1324. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +300 -0
  1325. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +293 -0
  1326. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
  1327. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
  1328. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
  1329. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
  1330. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
  1331. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
  1332. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
  1333. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
  1334. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +214 -0
  1335. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +212 -0
  1336. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
  1337. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
  1338. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
  1339. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
  1340. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
  1341. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
  1342. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
  1343. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
  1344. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
  1345. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
  1346. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
  1347. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
  1348. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
  1349. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
  1350. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
  1351. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
  1352. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +66 -0
  1353. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +64 -0
  1354. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
  1355. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
  1356. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +281 -0
  1357. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +275 -0
  1358. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
  1359. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
  1360. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
  1361. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
  1362. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +227 -0
  1363. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +224 -0
  1364. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
  1365. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
  1366. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
  1367. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
  1368. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
  1369. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
  1370. package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
  1371. package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
  1372. package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
  1373. package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
  1374. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
  1375. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
  1376. package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
  1377. package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
  1378. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
  1379. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
  1380. package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
  1381. package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
  1382. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
  1383. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
  1384. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
  1385. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
  1386. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +164 -0
  1387. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +162 -0
  1388. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +119 -0
  1389. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +112 -0
  1390. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +22 -0
  1391. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +17 -0
  1392. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
  1393. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
  1394. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +47 -0
  1395. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +44 -0
  1396. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
  1397. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
  1398. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +92 -0
  1399. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +90 -0
  1400. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
  1401. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
  1402. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +43 -0
  1403. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +41 -0
  1404. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
  1405. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
  1406. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +284 -0
  1407. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +275 -0
  1408. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +39 -0
  1409. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +37 -0
  1410. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
  1411. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
  1412. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +430 -0
  1413. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +427 -0
  1414. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +327 -0
  1415. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +312 -0
  1416. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
  1417. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
  1418. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
  1419. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
  1420. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +42 -0
  1421. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +34 -0
  1422. package/dist/plugins/blog/api/index.d.cts +1 -1
  1423. package/dist/plugins/blog/api/index.d.mts +1 -1
  1424. package/dist/plugins/blog/api/index.d.ts +1 -1
  1425. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  1426. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  1427. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  1428. package/dist/plugins/blog/client/index.d.cts +1 -1
  1429. package/dist/plugins/blog/client/index.d.mts +1 -1
  1430. package/dist/plugins/blog/client/index.d.ts +1 -1
  1431. package/dist/plugins/blog/query-keys.d.cts +2 -2
  1432. package/dist/plugins/blog/query-keys.d.mts +2 -2
  1433. package/dist/plugins/blog/query-keys.d.ts +2 -2
  1434. package/dist/plugins/cms/api/index.d.cts +1 -1
  1435. package/dist/plugins/cms/api/index.d.mts +1 -1
  1436. package/dist/plugins/cms/api/index.d.ts +1 -1
  1437. package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
  1438. package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
  1439. package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
  1440. package/dist/plugins/cms/client/index.d.cts +1 -1
  1441. package/dist/plugins/cms/client/index.d.mts +1 -1
  1442. package/dist/plugins/cms/client/index.d.ts +1 -1
  1443. package/dist/plugins/cms/query-keys.d.cts +1 -1
  1444. package/dist/plugins/cms/query-keys.d.mts +1 -1
  1445. package/dist/plugins/cms/query-keys.d.ts +1 -1
  1446. package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
  1447. package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
  1448. package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
  1449. package/dist/plugins/form-builder/client/index.d.cts +1 -1
  1450. package/dist/plugins/form-builder/client/index.d.mts +1 -1
  1451. package/dist/plugins/form-builder/client/index.d.ts +1 -1
  1452. package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
  1453. package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
  1454. package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
  1455. package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
  1456. package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
  1457. package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
  1458. package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
  1459. package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
  1460. package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
  1461. package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
  1462. package/dist/plugins/ui-builder/client/index.cjs +38 -0
  1463. package/dist/plugins/ui-builder/client/index.d.cts +359 -0
  1464. package/dist/plugins/ui-builder/client/index.d.mts +359 -0
  1465. package/dist/plugins/ui-builder/client/index.d.ts +359 -0
  1466. package/dist/plugins/ui-builder/client/index.mjs +8 -0
  1467. package/dist/plugins/ui-builder/client.css +2 -0
  1468. package/dist/plugins/ui-builder/index.cjs +9 -0
  1469. package/dist/plugins/ui-builder/index.d.cts +47 -0
  1470. package/dist/plugins/ui-builder/index.d.mts +47 -0
  1471. package/dist/plugins/ui-builder/index.d.ts +47 -0
  1472. package/dist/plugins/ui-builder/index.mjs +1 -0
  1473. package/dist/plugins/ui-builder/style.css +26 -0
  1474. package/dist/shared/{stack.DGjhPqmF.d.mts → stack.8nldKomx.d.cts} +1 -1
  1475. package/dist/shared/{stack.DGjhPqmF.d.ts → stack.8nldKomx.d.mts} +1 -1
  1476. package/dist/shared/{stack.DGjhPqmF.d.cts → stack.8nldKomx.d.ts} +1 -1
  1477. package/dist/shared/stack.BYysGdHl.d.cts +116 -0
  1478. package/dist/shared/stack.BdJFrdyt.d.cts +48 -0
  1479. package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
  1480. package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.mts} +1 -1
  1481. package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.ts} +1 -1
  1482. package/dist/shared/stack.ChVuHi5e.d.mts +48 -0
  1483. package/dist/shared/stack.DYCFcnkL.d.mts +116 -0
  1484. package/dist/shared/stack.EhM4pmtN.d.ts +48 -0
  1485. package/dist/shared/stack.kFbDspnF.d.ts +116 -0
  1486. package/package.json +54 -1
  1487. package/src/plugins/ui-builder/client/components/index.ts +10 -0
  1488. package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
  1489. package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
  1490. package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
  1491. package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
  1492. package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
  1493. package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
  1494. package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
  1495. package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
  1496. package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
  1497. package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
  1498. package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
  1499. package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
  1500. package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
  1501. package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
  1502. package/src/plugins/ui-builder/client/index.ts +64 -0
  1503. package/src/plugins/ui-builder/client/localization/index.ts +64 -0
  1504. package/src/plugins/ui-builder/client/overrides.ts +99 -0
  1505. package/src/plugins/ui-builder/client/plugin.tsx +315 -0
  1506. package/src/plugins/ui-builder/client/registry.ts +611 -0
  1507. package/src/plugins/ui-builder/client.css +2 -0
  1508. package/src/plugins/ui-builder/index.ts +41 -0
  1509. package/src/plugins/ui-builder/schemas.ts +48 -0
  1510. package/src/plugins/ui-builder/style.css +26 -0
  1511. package/src/plugins/ui-builder/types.ts +137 -0
  1512. package/src/plugins/index.ts +0 -0
  1513. package/dist/shared/{stack.CcI4sYJP.d.cts → stack.DLhzx1-D.d.cts} +1 -1
  1514. package/dist/shared/{stack.CcI4sYJP.d.mts → stack.DLhzx1-D.d.mts} +1 -1
  1515. package/dist/shared/{stack.CcI4sYJP.d.ts → stack.DLhzx1-D.d.ts} +1 -1
@@ -0,0 +1,2161 @@
1
+ import { PluginKey, Selection, SelectionRange, TextSelection, Plugin, NodeSelection } from '../../../../prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs';
2
+ import { Fragment, Slice } from '../../../../prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs';
3
+ import { DecorationSet, Decoration } from '../../../../prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs';
4
+ import { keydownHandler } from '../../../../prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs';
5
+ import { Transform } from '../../../../prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs';
6
+
7
+ // src/index.ts
8
+
9
+ // src/tablemap.ts
10
+ var readFromCache;
11
+ var addToCache;
12
+ if (typeof WeakMap != "undefined") {
13
+ let cache = /* @__PURE__ */ new WeakMap();
14
+ readFromCache = (key) => cache.get(key);
15
+ addToCache = (key, value) => {
16
+ cache.set(key, value);
17
+ return value;
18
+ };
19
+ } else {
20
+ const cache = [];
21
+ const cacheSize = 10;
22
+ let cachePos = 0;
23
+ readFromCache = (key) => {
24
+ for (let i = 0; i < cache.length; i += 2)
25
+ if (cache[i] == key) return cache[i + 1];
26
+ };
27
+ addToCache = (key, value) => {
28
+ if (cachePos == cacheSize) cachePos = 0;
29
+ cache[cachePos++] = key;
30
+ return cache[cachePos++] = value;
31
+ };
32
+ }
33
+ var TableMap = class {
34
+ constructor(width, height, map, problems) {
35
+ this.width = width;
36
+ this.height = height;
37
+ this.map = map;
38
+ this.problems = problems;
39
+ }
40
+ // Find the dimensions of the cell at the given position.
41
+ findCell(pos) {
42
+ for (let i = 0; i < this.map.length; i++) {
43
+ const curPos = this.map[i];
44
+ if (curPos != pos) continue;
45
+ const left = i % this.width;
46
+ const top = i / this.width | 0;
47
+ let right = left + 1;
48
+ let bottom = top + 1;
49
+ for (let j = 1; right < this.width && this.map[i + j] == curPos; j++) {
50
+ right++;
51
+ }
52
+ for (let j = 1; bottom < this.height && this.map[i + this.width * j] == curPos; j++) {
53
+ bottom++;
54
+ }
55
+ return { left, top, right, bottom };
56
+ }
57
+ throw new RangeError(`No cell with offset ${pos} found`);
58
+ }
59
+ // Find the left side of the cell at the given position.
60
+ colCount(pos) {
61
+ for (let i = 0; i < this.map.length; i++) {
62
+ if (this.map[i] == pos) {
63
+ return i % this.width;
64
+ }
65
+ }
66
+ throw new RangeError(`No cell with offset ${pos} found`);
67
+ }
68
+ // Find the next cell in the given direction, starting from the cell
69
+ // at `pos`, if any.
70
+ nextCell(pos, axis, dir) {
71
+ const { left, right, top, bottom } = this.findCell(pos);
72
+ if (axis == "horiz") {
73
+ if (dir < 0 ? left == 0 : right == this.width) return null;
74
+ return this.map[top * this.width + (dir < 0 ? left - 1 : right)];
75
+ } else {
76
+ if (dir < 0 ? top == 0 : bottom == this.height) return null;
77
+ return this.map[left + this.width * (dir < 0 ? top - 1 : bottom)];
78
+ }
79
+ }
80
+ // Get the rectangle spanning the two given cells.
81
+ rectBetween(a, b) {
82
+ const {
83
+ left: leftA,
84
+ right: rightA,
85
+ top: topA,
86
+ bottom: bottomA
87
+ } = this.findCell(a);
88
+ const {
89
+ left: leftB,
90
+ right: rightB,
91
+ top: topB,
92
+ bottom: bottomB
93
+ } = this.findCell(b);
94
+ return {
95
+ left: Math.min(leftA, leftB),
96
+ top: Math.min(topA, topB),
97
+ right: Math.max(rightA, rightB),
98
+ bottom: Math.max(bottomA, bottomB)
99
+ };
100
+ }
101
+ // Return the position of all cells that have the top left corner in
102
+ // the given rectangle.
103
+ cellsInRect(rect) {
104
+ const result = [];
105
+ const seen = {};
106
+ for (let row = rect.top; row < rect.bottom; row++) {
107
+ for (let col = rect.left; col < rect.right; col++) {
108
+ const index = row * this.width + col;
109
+ const pos = this.map[index];
110
+ if (seen[pos]) continue;
111
+ seen[pos] = true;
112
+ if (col == rect.left && col && this.map[index - 1] == pos || row == rect.top && row && this.map[index - this.width] == pos) {
113
+ continue;
114
+ }
115
+ result.push(pos);
116
+ }
117
+ }
118
+ return result;
119
+ }
120
+ // Return the position at which the cell at the given row and column
121
+ // starts, or would start, if a cell started there.
122
+ positionAt(row, col, table) {
123
+ for (let i = 0, rowStart = 0; ; i++) {
124
+ const rowEnd = rowStart + table.child(i).nodeSize;
125
+ if (i == row) {
126
+ let index = col + row * this.width;
127
+ const rowEndIndex = (row + 1) * this.width;
128
+ while (index < rowEndIndex && this.map[index] < rowStart) index++;
129
+ return index == rowEndIndex ? rowEnd - 1 : this.map[index];
130
+ }
131
+ rowStart = rowEnd;
132
+ }
133
+ }
134
+ // Find the table map for the given table node.
135
+ static get(table) {
136
+ return readFromCache(table) || addToCache(table, computeMap(table));
137
+ }
138
+ };
139
+ function computeMap(table) {
140
+ if (table.type.spec.tableRole != "table")
141
+ throw new RangeError("Not a table node: " + table.type.name);
142
+ const width = findWidth(table), height = table.childCount;
143
+ const map = [];
144
+ let mapPos = 0;
145
+ let problems = null;
146
+ const colWidths = [];
147
+ for (let i = 0, e = width * height; i < e; i++) map[i] = 0;
148
+ for (let row = 0, pos = 0; row < height; row++) {
149
+ const rowNode = table.child(row);
150
+ pos++;
151
+ for (let i = 0; ; i++) {
152
+ while (mapPos < map.length && map[mapPos] != 0) mapPos++;
153
+ if (i == rowNode.childCount) break;
154
+ const cellNode = rowNode.child(i);
155
+ const { colspan, rowspan, colwidth } = cellNode.attrs;
156
+ for (let h = 0; h < rowspan; h++) {
157
+ if (h + row >= height) {
158
+ (problems || (problems = [])).push({
159
+ type: "overlong_rowspan",
160
+ pos,
161
+ n: rowspan - h
162
+ });
163
+ break;
164
+ }
165
+ const start = mapPos + h * width;
166
+ for (let w = 0; w < colspan; w++) {
167
+ if (map[start + w] == 0) map[start + w] = pos;
168
+ else
169
+ (problems || (problems = [])).push({
170
+ type: "collision",
171
+ row,
172
+ pos,
173
+ n: colspan - w
174
+ });
175
+ const colW = colwidth && colwidth[w];
176
+ if (colW) {
177
+ const widthIndex = (start + w) % width * 2, prev = colWidths[widthIndex];
178
+ if (prev == null || prev != colW && colWidths[widthIndex + 1] == 1) {
179
+ colWidths[widthIndex] = colW;
180
+ colWidths[widthIndex + 1] = 1;
181
+ } else if (prev == colW) {
182
+ colWidths[widthIndex + 1]++;
183
+ }
184
+ }
185
+ }
186
+ }
187
+ mapPos += colspan;
188
+ pos += cellNode.nodeSize;
189
+ }
190
+ const expectedPos = (row + 1) * width;
191
+ let missing = 0;
192
+ while (mapPos < expectedPos) if (map[mapPos++] == 0) missing++;
193
+ if (missing)
194
+ (problems || (problems = [])).push({ type: "missing", row, n: missing });
195
+ pos++;
196
+ }
197
+ if (width === 0 || height === 0)
198
+ (problems || (problems = [])).push({ type: "zero_sized" });
199
+ const tableMap = new TableMap(width, height, map, problems);
200
+ let badWidths = false;
201
+ for (let i = 0; !badWidths && i < colWidths.length; i += 2)
202
+ if (colWidths[i] != null && colWidths[i + 1] < height) badWidths = true;
203
+ if (badWidths) findBadColWidths(tableMap, colWidths, table);
204
+ return tableMap;
205
+ }
206
+ function findWidth(table) {
207
+ let width = -1;
208
+ let hasRowSpan = false;
209
+ for (let row = 0; row < table.childCount; row++) {
210
+ const rowNode = table.child(row);
211
+ let rowWidth = 0;
212
+ if (hasRowSpan)
213
+ for (let j = 0; j < row; j++) {
214
+ const prevRow = table.child(j);
215
+ for (let i = 0; i < prevRow.childCount; i++) {
216
+ const cell = prevRow.child(i);
217
+ if (j + cell.attrs.rowspan > row) rowWidth += cell.attrs.colspan;
218
+ }
219
+ }
220
+ for (let i = 0; i < rowNode.childCount; i++) {
221
+ const cell = rowNode.child(i);
222
+ rowWidth += cell.attrs.colspan;
223
+ if (cell.attrs.rowspan > 1) hasRowSpan = true;
224
+ }
225
+ if (width == -1) width = rowWidth;
226
+ else if (width != rowWidth) width = Math.max(width, rowWidth);
227
+ }
228
+ return width;
229
+ }
230
+ function findBadColWidths(map, colWidths, table) {
231
+ if (!map.problems) map.problems = [];
232
+ const seen = {};
233
+ for (let i = 0; i < map.map.length; i++) {
234
+ const pos = map.map[i];
235
+ if (seen[pos]) continue;
236
+ seen[pos] = true;
237
+ const node = table.nodeAt(pos);
238
+ if (!node) {
239
+ throw new RangeError(`No cell with offset ${pos} found`);
240
+ }
241
+ let updated = null;
242
+ const attrs = node.attrs;
243
+ for (let j = 0; j < attrs.colspan; j++) {
244
+ const col = (i + j) % map.width;
245
+ const colWidth = colWidths[col * 2];
246
+ if (colWidth != null && (!attrs.colwidth || attrs.colwidth[j] != colWidth))
247
+ (updated || (updated = freshColWidth(attrs)))[j] = colWidth;
248
+ }
249
+ if (updated)
250
+ map.problems.unshift({
251
+ type: "colwidth mismatch",
252
+ pos,
253
+ colwidth: updated
254
+ });
255
+ }
256
+ }
257
+ function freshColWidth(attrs) {
258
+ if (attrs.colwidth) return attrs.colwidth.slice();
259
+ const result = [];
260
+ for (let i = 0; i < attrs.colspan; i++) result.push(0);
261
+ return result;
262
+ }
263
+ function tableNodeTypes(schema) {
264
+ let result = schema.cached.tableNodeTypes;
265
+ if (!result) {
266
+ result = schema.cached.tableNodeTypes = {};
267
+ for (const name in schema.nodes) {
268
+ const type = schema.nodes[name], role = type.spec.tableRole;
269
+ if (role) result[role] = type;
270
+ }
271
+ }
272
+ return result;
273
+ }
274
+
275
+ // src/util.ts
276
+ var tableEditingKey = new PluginKey("selectingCells");
277
+ function cellAround($pos) {
278
+ for (let d = $pos.depth - 1; d > 0; d--)
279
+ if ($pos.node(d).type.spec.tableRole == "row")
280
+ return $pos.node(0).resolve($pos.before(d + 1));
281
+ return null;
282
+ }
283
+ function cellWrapping($pos) {
284
+ for (let d = $pos.depth; d > 0; d--) {
285
+ const role = $pos.node(d).type.spec.tableRole;
286
+ if (role === "cell" || role === "header_cell") return $pos.node(d);
287
+ }
288
+ return null;
289
+ }
290
+ function isInTable(state) {
291
+ const $head = state.selection.$head;
292
+ for (let d = $head.depth; d > 0; d--)
293
+ if ($head.node(d).type.spec.tableRole == "row") return true;
294
+ return false;
295
+ }
296
+ function selectionCell(state) {
297
+ const sel = state.selection;
298
+ if ("$anchorCell" in sel && sel.$anchorCell) {
299
+ return sel.$anchorCell.pos > sel.$headCell.pos ? sel.$anchorCell : sel.$headCell;
300
+ } else if ("node" in sel && sel.node && sel.node.type.spec.tableRole == "cell") {
301
+ return sel.$anchor;
302
+ }
303
+ const $cell = cellAround(sel.$head) || cellNear(sel.$head);
304
+ if ($cell) {
305
+ return $cell;
306
+ }
307
+ throw new RangeError(`No cell found around position ${sel.head}`);
308
+ }
309
+ function cellNear($pos) {
310
+ for (let after = $pos.nodeAfter, pos = $pos.pos; after; after = after.firstChild, pos++) {
311
+ const role = after.type.spec.tableRole;
312
+ if (role == "cell" || role == "header_cell") return $pos.doc.resolve(pos);
313
+ }
314
+ for (let before = $pos.nodeBefore, pos = $pos.pos; before; before = before.lastChild, pos--) {
315
+ const role = before.type.spec.tableRole;
316
+ if (role == "cell" || role == "header_cell")
317
+ return $pos.doc.resolve(pos - before.nodeSize);
318
+ }
319
+ }
320
+ function pointsAtCell($pos) {
321
+ return $pos.parent.type.spec.tableRole == "row" && !!$pos.nodeAfter;
322
+ }
323
+ function moveCellForward($pos) {
324
+ return $pos.node(0).resolve($pos.pos + $pos.nodeAfter.nodeSize);
325
+ }
326
+ function inSameTable($cellA, $cellB) {
327
+ return $cellA.depth == $cellB.depth && $cellA.pos >= $cellB.start(-1) && $cellA.pos <= $cellB.end(-1);
328
+ }
329
+ function nextCell($pos, axis, dir) {
330
+ const table = $pos.node(-1);
331
+ const map = TableMap.get(table);
332
+ const tableStart = $pos.start(-1);
333
+ const moved = map.nextCell($pos.pos - tableStart, axis, dir);
334
+ return moved == null ? null : $pos.node(0).resolve(tableStart + moved);
335
+ }
336
+ function removeColSpan(attrs, pos, n = 1) {
337
+ const result = { ...attrs, colspan: attrs.colspan - n };
338
+ if (result.colwidth) {
339
+ result.colwidth = result.colwidth.slice();
340
+ result.colwidth.splice(pos, n);
341
+ if (!result.colwidth.some((w) => w > 0)) result.colwidth = null;
342
+ }
343
+ return result;
344
+ }
345
+ function addColSpan(attrs, pos, n = 1) {
346
+ const result = { ...attrs, colspan: attrs.colspan + n };
347
+ if (result.colwidth) {
348
+ result.colwidth = result.colwidth.slice();
349
+ for (let i = 0; i < n; i++) result.colwidth.splice(pos, 0, 0);
350
+ }
351
+ return result;
352
+ }
353
+ function columnIsHeader(map, table, col) {
354
+ const headerCell = tableNodeTypes(table.type.schema).header_cell;
355
+ for (let row = 0; row < map.height; row++)
356
+ if (table.nodeAt(map.map[col + row * map.width]).type != headerCell)
357
+ return false;
358
+ return true;
359
+ }
360
+
361
+ // src/cellselection.ts
362
+ var CellSelection = class _CellSelection extends Selection {
363
+ // A table selection is identified by its anchor and head cells. The
364
+ // positions given to this constructor should point _before_ two
365
+ // cells in the same table. They may be the same, to select a single
366
+ // cell.
367
+ constructor($anchorCell, $headCell = $anchorCell) {
368
+ const table = $anchorCell.node(-1);
369
+ const map = TableMap.get(table);
370
+ const tableStart = $anchorCell.start(-1);
371
+ const rect = map.rectBetween(
372
+ $anchorCell.pos - tableStart,
373
+ $headCell.pos - tableStart
374
+ );
375
+ const doc = $anchorCell.node(0);
376
+ const cells = map.cellsInRect(rect).filter((p) => p != $headCell.pos - tableStart);
377
+ cells.unshift($headCell.pos - tableStart);
378
+ const ranges = cells.map((pos) => {
379
+ const cell = table.nodeAt(pos);
380
+ if (!cell) {
381
+ throw RangeError(`No cell with offset ${pos} found`);
382
+ }
383
+ const from = tableStart + pos + 1;
384
+ return new SelectionRange(
385
+ doc.resolve(from),
386
+ doc.resolve(from + cell.content.size)
387
+ );
388
+ });
389
+ super(ranges[0].$from, ranges[0].$to, ranges);
390
+ this.$anchorCell = $anchorCell;
391
+ this.$headCell = $headCell;
392
+ }
393
+ map(doc, mapping) {
394
+ const $anchorCell = doc.resolve(mapping.map(this.$anchorCell.pos));
395
+ const $headCell = doc.resolve(mapping.map(this.$headCell.pos));
396
+ if (pointsAtCell($anchorCell) && pointsAtCell($headCell) && inSameTable($anchorCell, $headCell)) {
397
+ const tableChanged = this.$anchorCell.node(-1) != $anchorCell.node(-1);
398
+ if (tableChanged && this.isRowSelection())
399
+ return _CellSelection.rowSelection($anchorCell, $headCell);
400
+ else if (tableChanged && this.isColSelection())
401
+ return _CellSelection.colSelection($anchorCell, $headCell);
402
+ else return new _CellSelection($anchorCell, $headCell);
403
+ }
404
+ return TextSelection.between($anchorCell, $headCell);
405
+ }
406
+ // Returns a rectangular slice of table rows containing the selected
407
+ // cells.
408
+ content() {
409
+ const table = this.$anchorCell.node(-1);
410
+ const map = TableMap.get(table);
411
+ const tableStart = this.$anchorCell.start(-1);
412
+ const rect = map.rectBetween(
413
+ this.$anchorCell.pos - tableStart,
414
+ this.$headCell.pos - tableStart
415
+ );
416
+ const seen = {};
417
+ const rows = [];
418
+ for (let row = rect.top; row < rect.bottom; row++) {
419
+ const rowContent = [];
420
+ for (let index = row * map.width + rect.left, col = rect.left; col < rect.right; col++, index++) {
421
+ const pos = map.map[index];
422
+ if (seen[pos]) continue;
423
+ seen[pos] = true;
424
+ const cellRect = map.findCell(pos);
425
+ let cell = table.nodeAt(pos);
426
+ if (!cell) {
427
+ throw RangeError(`No cell with offset ${pos} found`);
428
+ }
429
+ const extraLeft = rect.left - cellRect.left;
430
+ const extraRight = cellRect.right - rect.right;
431
+ if (extraLeft > 0 || extraRight > 0) {
432
+ let attrs = cell.attrs;
433
+ if (extraLeft > 0) {
434
+ attrs = removeColSpan(attrs, 0, extraLeft);
435
+ }
436
+ if (extraRight > 0) {
437
+ attrs = removeColSpan(
438
+ attrs,
439
+ attrs.colspan - extraRight,
440
+ extraRight
441
+ );
442
+ }
443
+ if (cellRect.left < rect.left) {
444
+ cell = cell.type.createAndFill(attrs);
445
+ if (!cell) {
446
+ throw RangeError(
447
+ `Could not create cell with attrs ${JSON.stringify(attrs)}`
448
+ );
449
+ }
450
+ } else {
451
+ cell = cell.type.create(attrs, cell.content);
452
+ }
453
+ }
454
+ if (cellRect.top < rect.top || cellRect.bottom > rect.bottom) {
455
+ const attrs = {
456
+ ...cell.attrs,
457
+ rowspan: Math.min(cellRect.bottom, rect.bottom) - Math.max(cellRect.top, rect.top)
458
+ };
459
+ if (cellRect.top < rect.top) {
460
+ cell = cell.type.createAndFill(attrs);
461
+ } else {
462
+ cell = cell.type.create(attrs, cell.content);
463
+ }
464
+ }
465
+ rowContent.push(cell);
466
+ }
467
+ rows.push(table.child(row).copy(Fragment.from(rowContent)));
468
+ }
469
+ const fragment = this.isColSelection() && this.isRowSelection() ? table : rows;
470
+ return new Slice(Fragment.from(fragment), 1, 1);
471
+ }
472
+ replace(tr, content = Slice.empty) {
473
+ const mapFrom = tr.steps.length, ranges = this.ranges;
474
+ for (let i = 0; i < ranges.length; i++) {
475
+ const { $from, $to } = ranges[i], mapping = tr.mapping.slice(mapFrom);
476
+ tr.replace(
477
+ mapping.map($from.pos),
478
+ mapping.map($to.pos),
479
+ i ? Slice.empty : content
480
+ );
481
+ }
482
+ const sel = Selection.findFrom(
483
+ tr.doc.resolve(tr.mapping.slice(mapFrom).map(this.to)),
484
+ -1
485
+ );
486
+ if (sel) tr.setSelection(sel);
487
+ }
488
+ replaceWith(tr, node) {
489
+ this.replace(tr, new Slice(Fragment.from(node), 0, 0));
490
+ }
491
+ forEachCell(f) {
492
+ const table = this.$anchorCell.node(-1);
493
+ const map = TableMap.get(table);
494
+ const tableStart = this.$anchorCell.start(-1);
495
+ const cells = map.cellsInRect(
496
+ map.rectBetween(
497
+ this.$anchorCell.pos - tableStart,
498
+ this.$headCell.pos - tableStart
499
+ )
500
+ );
501
+ for (let i = 0; i < cells.length; i++) {
502
+ f(table.nodeAt(cells[i]), tableStart + cells[i]);
503
+ }
504
+ }
505
+ // True if this selection goes all the way from the top to the
506
+ // bottom of the table.
507
+ isColSelection() {
508
+ const anchorTop = this.$anchorCell.index(-1);
509
+ const headTop = this.$headCell.index(-1);
510
+ if (Math.min(anchorTop, headTop) > 0) return false;
511
+ const anchorBottom = anchorTop + this.$anchorCell.nodeAfter.attrs.rowspan;
512
+ const headBottom = headTop + this.$headCell.nodeAfter.attrs.rowspan;
513
+ return Math.max(anchorBottom, headBottom) == this.$headCell.node(-1).childCount;
514
+ }
515
+ // Returns the smallest column selection that covers the given anchor
516
+ // and head cell.
517
+ static colSelection($anchorCell, $headCell = $anchorCell) {
518
+ const table = $anchorCell.node(-1);
519
+ const map = TableMap.get(table);
520
+ const tableStart = $anchorCell.start(-1);
521
+ const anchorRect = map.findCell($anchorCell.pos - tableStart);
522
+ const headRect = map.findCell($headCell.pos - tableStart);
523
+ const doc = $anchorCell.node(0);
524
+ if (anchorRect.top <= headRect.top) {
525
+ if (anchorRect.top > 0)
526
+ $anchorCell = doc.resolve(tableStart + map.map[anchorRect.left]);
527
+ if (headRect.bottom < map.height)
528
+ $headCell = doc.resolve(
529
+ tableStart + map.map[map.width * (map.height - 1) + headRect.right - 1]
530
+ );
531
+ } else {
532
+ if (headRect.top > 0)
533
+ $headCell = doc.resolve(tableStart + map.map[headRect.left]);
534
+ if (anchorRect.bottom < map.height)
535
+ $anchorCell = doc.resolve(
536
+ tableStart + map.map[map.width * (map.height - 1) + anchorRect.right - 1]
537
+ );
538
+ }
539
+ return new _CellSelection($anchorCell, $headCell);
540
+ }
541
+ // True if this selection goes all the way from the left to the
542
+ // right of the table.
543
+ isRowSelection() {
544
+ const table = this.$anchorCell.node(-1);
545
+ const map = TableMap.get(table);
546
+ const tableStart = this.$anchorCell.start(-1);
547
+ const anchorLeft = map.colCount(this.$anchorCell.pos - tableStart);
548
+ const headLeft = map.colCount(this.$headCell.pos - tableStart);
549
+ if (Math.min(anchorLeft, headLeft) > 0) return false;
550
+ const anchorRight = anchorLeft + this.$anchorCell.nodeAfter.attrs.colspan;
551
+ const headRight = headLeft + this.$headCell.nodeAfter.attrs.colspan;
552
+ return Math.max(anchorRight, headRight) == map.width;
553
+ }
554
+ eq(other) {
555
+ return other instanceof _CellSelection && other.$anchorCell.pos == this.$anchorCell.pos && other.$headCell.pos == this.$headCell.pos;
556
+ }
557
+ // Returns the smallest row selection that covers the given anchor
558
+ // and head cell.
559
+ static rowSelection($anchorCell, $headCell = $anchorCell) {
560
+ const table = $anchorCell.node(-1);
561
+ const map = TableMap.get(table);
562
+ const tableStart = $anchorCell.start(-1);
563
+ const anchorRect = map.findCell($anchorCell.pos - tableStart);
564
+ const headRect = map.findCell($headCell.pos - tableStart);
565
+ const doc = $anchorCell.node(0);
566
+ if (anchorRect.left <= headRect.left) {
567
+ if (anchorRect.left > 0)
568
+ $anchorCell = doc.resolve(
569
+ tableStart + map.map[anchorRect.top * map.width]
570
+ );
571
+ if (headRect.right < map.width)
572
+ $headCell = doc.resolve(
573
+ tableStart + map.map[map.width * (headRect.top + 1) - 1]
574
+ );
575
+ } else {
576
+ if (headRect.left > 0)
577
+ $headCell = doc.resolve(tableStart + map.map[headRect.top * map.width]);
578
+ if (anchorRect.right < map.width)
579
+ $anchorCell = doc.resolve(
580
+ tableStart + map.map[map.width * (anchorRect.top + 1) - 1]
581
+ );
582
+ }
583
+ return new _CellSelection($anchorCell, $headCell);
584
+ }
585
+ toJSON() {
586
+ return {
587
+ type: "cell",
588
+ anchor: this.$anchorCell.pos,
589
+ head: this.$headCell.pos
590
+ };
591
+ }
592
+ static fromJSON(doc, json) {
593
+ return new _CellSelection(doc.resolve(json.anchor), doc.resolve(json.head));
594
+ }
595
+ static create(doc, anchorCell, headCell = anchorCell) {
596
+ return new _CellSelection(doc.resolve(anchorCell), doc.resolve(headCell));
597
+ }
598
+ getBookmark() {
599
+ return new CellBookmark(this.$anchorCell.pos, this.$headCell.pos);
600
+ }
601
+ };
602
+ CellSelection.prototype.visible = false;
603
+ Selection.jsonID("cell", CellSelection);
604
+ var CellBookmark = class _CellBookmark {
605
+ constructor(anchor, head) {
606
+ this.anchor = anchor;
607
+ this.head = head;
608
+ }
609
+ map(mapping) {
610
+ return new _CellBookmark(mapping.map(this.anchor), mapping.map(this.head));
611
+ }
612
+ resolve(doc) {
613
+ const $anchorCell = doc.resolve(this.anchor), $headCell = doc.resolve(this.head);
614
+ if ($anchorCell.parent.type.spec.tableRole == "row" && $headCell.parent.type.spec.tableRole == "row" && $anchorCell.index() < $anchorCell.parent.childCount && $headCell.index() < $headCell.parent.childCount && inSameTable($anchorCell, $headCell))
615
+ return new CellSelection($anchorCell, $headCell);
616
+ else return Selection.near($headCell, 1);
617
+ }
618
+ };
619
+ function drawCellSelection(state) {
620
+ if (!(state.selection instanceof CellSelection)) return null;
621
+ const cells = [];
622
+ state.selection.forEachCell((node, pos) => {
623
+ cells.push(
624
+ Decoration.node(pos, pos + node.nodeSize, { class: "selectedCell" })
625
+ );
626
+ });
627
+ return DecorationSet.create(state.doc, cells);
628
+ }
629
+ function isCellBoundarySelection({ $from, $to }) {
630
+ if ($from.pos == $to.pos || $from.pos < $to.pos - 6) return false;
631
+ let afterFrom = $from.pos;
632
+ let beforeTo = $to.pos;
633
+ let depth = $from.depth;
634
+ for (; depth >= 0; depth--, afterFrom++)
635
+ if ($from.after(depth + 1) < $from.end(depth)) break;
636
+ for (let d = $to.depth; d >= 0; d--, beforeTo--)
637
+ if ($to.before(d + 1) > $to.start(d)) break;
638
+ return afterFrom == beforeTo && /row|table/.test($from.node(depth).type.spec.tableRole);
639
+ }
640
+ function isTextSelectionAcrossCells({ $from, $to }) {
641
+ let fromCellBoundaryNode;
642
+ let toCellBoundaryNode;
643
+ for (let i = $from.depth; i > 0; i--) {
644
+ const node = $from.node(i);
645
+ if (node.type.spec.tableRole === "cell" || node.type.spec.tableRole === "header_cell") {
646
+ fromCellBoundaryNode = node;
647
+ break;
648
+ }
649
+ }
650
+ for (let i = $to.depth; i > 0; i--) {
651
+ const node = $to.node(i);
652
+ if (node.type.spec.tableRole === "cell" || node.type.spec.tableRole === "header_cell") {
653
+ toCellBoundaryNode = node;
654
+ break;
655
+ }
656
+ }
657
+ return fromCellBoundaryNode !== toCellBoundaryNode && $to.parentOffset === 0;
658
+ }
659
+ function normalizeSelection(state, tr, allowTableNodeSelection) {
660
+ const sel = (tr || state).selection;
661
+ const doc = (tr || state).doc;
662
+ let normalize;
663
+ let role;
664
+ if (sel instanceof NodeSelection && (role = sel.node.type.spec.tableRole)) {
665
+ if (role == "cell" || role == "header_cell") {
666
+ normalize = CellSelection.create(doc, sel.from);
667
+ } else if (role == "row") {
668
+ const $cell = doc.resolve(sel.from + 1);
669
+ normalize = CellSelection.rowSelection($cell, $cell);
670
+ } else if (!allowTableNodeSelection) {
671
+ const map = TableMap.get(sel.node);
672
+ const start = sel.from + 1;
673
+ const lastCell = start + map.map[map.width * map.height - 1];
674
+ normalize = CellSelection.create(doc, start + 1, lastCell);
675
+ }
676
+ } else if (sel instanceof TextSelection && isCellBoundarySelection(sel)) {
677
+ normalize = TextSelection.create(doc, sel.from);
678
+ } else if (sel instanceof TextSelection && isTextSelectionAcrossCells(sel)) {
679
+ normalize = TextSelection.create(doc, sel.$from.start(), sel.$from.end());
680
+ }
681
+ if (normalize) (tr || (tr = state.tr)).setSelection(normalize);
682
+ return tr;
683
+ }
684
+ var fixTablesKey = new PluginKey("fix-tables");
685
+ function changedDescendants(old, cur, offset, f) {
686
+ const oldSize = old.childCount, curSize = cur.childCount;
687
+ outer: for (let i = 0, j = 0; i < curSize; i++) {
688
+ const child = cur.child(i);
689
+ for (let scan = j, e = Math.min(oldSize, i + 3); scan < e; scan++) {
690
+ if (old.child(scan) == child) {
691
+ j = scan + 1;
692
+ offset += child.nodeSize;
693
+ continue outer;
694
+ }
695
+ }
696
+ f(child, offset);
697
+ if (j < oldSize && old.child(j).sameMarkup(child))
698
+ changedDescendants(old.child(j), child, offset + 1, f);
699
+ else child.nodesBetween(0, child.content.size, f, offset + 1);
700
+ offset += child.nodeSize;
701
+ }
702
+ }
703
+ function fixTables(state, oldState) {
704
+ let tr;
705
+ const check = (node, pos) => {
706
+ if (node.type.spec.tableRole == "table")
707
+ tr = fixTable(state, node, pos, tr);
708
+ };
709
+ if (!oldState) state.doc.descendants(check);
710
+ else if (oldState.doc != state.doc)
711
+ changedDescendants(oldState.doc, state.doc, 0, check);
712
+ return tr;
713
+ }
714
+ function fixTable(state, table, tablePos, tr) {
715
+ const map = TableMap.get(table);
716
+ if (!map.problems) return tr;
717
+ if (!tr) tr = state.tr;
718
+ const mustAdd = [];
719
+ for (let i = 0; i < map.height; i++) mustAdd.push(0);
720
+ for (let i = 0; i < map.problems.length; i++) {
721
+ const prob = map.problems[i];
722
+ if (prob.type == "collision") {
723
+ const cell = table.nodeAt(prob.pos);
724
+ if (!cell) continue;
725
+ const attrs = cell.attrs;
726
+ for (let j = 0; j < attrs.rowspan; j++) mustAdd[prob.row + j] += prob.n;
727
+ tr.setNodeMarkup(
728
+ tr.mapping.map(tablePos + 1 + prob.pos),
729
+ null,
730
+ removeColSpan(attrs, attrs.colspan - prob.n, prob.n)
731
+ );
732
+ } else if (prob.type == "missing") {
733
+ mustAdd[prob.row] += prob.n;
734
+ } else if (prob.type == "overlong_rowspan") {
735
+ const cell = table.nodeAt(prob.pos);
736
+ if (!cell) continue;
737
+ tr.setNodeMarkup(tr.mapping.map(tablePos + 1 + prob.pos), null, {
738
+ ...cell.attrs,
739
+ rowspan: cell.attrs.rowspan - prob.n
740
+ });
741
+ } else if (prob.type == "colwidth mismatch") {
742
+ const cell = table.nodeAt(prob.pos);
743
+ if (!cell) continue;
744
+ tr.setNodeMarkup(tr.mapping.map(tablePos + 1 + prob.pos), null, {
745
+ ...cell.attrs,
746
+ colwidth: prob.colwidth
747
+ });
748
+ } else if (prob.type == "zero_sized") {
749
+ const pos = tr.mapping.map(tablePos);
750
+ tr.delete(pos, pos + table.nodeSize);
751
+ }
752
+ }
753
+ let first, last;
754
+ for (let i = 0; i < mustAdd.length; i++)
755
+ if (mustAdd[i]) {
756
+ if (first == null) first = i;
757
+ last = i;
758
+ }
759
+ for (let i = 0, pos = tablePos + 1; i < map.height; i++) {
760
+ const row = table.child(i);
761
+ const end = pos + row.nodeSize;
762
+ const add = mustAdd[i];
763
+ if (add > 0) {
764
+ let role = "cell";
765
+ if (row.firstChild) {
766
+ role = row.firstChild.type.spec.tableRole;
767
+ }
768
+ const nodes = [];
769
+ for (let j = 0; j < add; j++) {
770
+ const node = tableNodeTypes(state.schema)[role].createAndFill();
771
+ if (node) nodes.push(node);
772
+ }
773
+ const side = (i == 0 || first == i - 1) && last == i ? pos + 1 : end - 1;
774
+ tr.insert(tr.mapping.map(side), nodes);
775
+ }
776
+ pos = end;
777
+ }
778
+ return tr.setMeta(fixTablesKey, { fixTables: true });
779
+ }
780
+
781
+ // src/commands.ts
782
+ function selectedRect(state) {
783
+ const sel = state.selection;
784
+ const $pos = selectionCell(state);
785
+ const table = $pos.node(-1);
786
+ const tableStart = $pos.start(-1);
787
+ const map = TableMap.get(table);
788
+ const rect = sel instanceof CellSelection ? map.rectBetween(
789
+ sel.$anchorCell.pos - tableStart,
790
+ sel.$headCell.pos - tableStart
791
+ ) : map.findCell($pos.pos - tableStart);
792
+ return { ...rect, tableStart, map, table };
793
+ }
794
+ function addColumn(tr, { map, tableStart, table }, col) {
795
+ let refColumn = col > 0 ? -1 : 0;
796
+ if (columnIsHeader(map, table, col + refColumn)) {
797
+ refColumn = col == 0 || col == map.width ? null : 0;
798
+ }
799
+ for (let row = 0; row < map.height; row++) {
800
+ const index = row * map.width + col;
801
+ if (col > 0 && col < map.width && map.map[index - 1] == map.map[index]) {
802
+ const pos = map.map[index];
803
+ const cell = table.nodeAt(pos);
804
+ tr.setNodeMarkup(
805
+ tr.mapping.map(tableStart + pos),
806
+ null,
807
+ addColSpan(cell.attrs, col - map.colCount(pos))
808
+ );
809
+ row += cell.attrs.rowspan - 1;
810
+ } else {
811
+ const type = refColumn == null ? tableNodeTypes(table.type.schema).cell : table.nodeAt(map.map[index + refColumn]).type;
812
+ const pos = map.positionAt(row, col, table);
813
+ tr.insert(tr.mapping.map(tableStart + pos), type.createAndFill());
814
+ }
815
+ }
816
+ return tr;
817
+ }
818
+ function addColumnBefore(state, dispatch) {
819
+ if (!isInTable(state)) return false;
820
+ if (dispatch) {
821
+ const rect = selectedRect(state);
822
+ dispatch(addColumn(state.tr, rect, rect.left));
823
+ }
824
+ return true;
825
+ }
826
+ function addColumnAfter(state, dispatch) {
827
+ if (!isInTable(state)) return false;
828
+ if (dispatch) {
829
+ const rect = selectedRect(state);
830
+ dispatch(addColumn(state.tr, rect, rect.right));
831
+ }
832
+ return true;
833
+ }
834
+ function removeColumn(tr, { map, table, tableStart }, col) {
835
+ const mapStart = tr.mapping.maps.length;
836
+ for (let row = 0; row < map.height; ) {
837
+ const index = row * map.width + col;
838
+ const pos = map.map[index];
839
+ const cell = table.nodeAt(pos);
840
+ const attrs = cell.attrs;
841
+ if (col > 0 && map.map[index - 1] == pos || col < map.width - 1 && map.map[index + 1] == pos) {
842
+ tr.setNodeMarkup(
843
+ tr.mapping.slice(mapStart).map(tableStart + pos),
844
+ null,
845
+ removeColSpan(attrs, col - map.colCount(pos))
846
+ );
847
+ } else {
848
+ const start = tr.mapping.slice(mapStart).map(tableStart + pos);
849
+ tr.delete(start, start + cell.nodeSize);
850
+ }
851
+ row += attrs.rowspan;
852
+ }
853
+ }
854
+ function deleteColumn(state, dispatch) {
855
+ if (!isInTable(state)) return false;
856
+ if (dispatch) {
857
+ const rect = selectedRect(state);
858
+ const tr = state.tr;
859
+ if (rect.left == 0 && rect.right == rect.map.width) return false;
860
+ for (let i = rect.right - 1; ; i--) {
861
+ removeColumn(tr, rect, i);
862
+ if (i == rect.left) break;
863
+ const table = rect.tableStart ? tr.doc.nodeAt(rect.tableStart - 1) : tr.doc;
864
+ if (!table) {
865
+ throw RangeError("No table found");
866
+ }
867
+ rect.table = table;
868
+ rect.map = TableMap.get(table);
869
+ }
870
+ dispatch(tr);
871
+ }
872
+ return true;
873
+ }
874
+ function rowIsHeader(map, table, row) {
875
+ var _a;
876
+ const headerCell = tableNodeTypes(table.type.schema).header_cell;
877
+ for (let col = 0; col < map.width; col++)
878
+ if (((_a = table.nodeAt(map.map[col + row * map.width])) == null ? void 0 : _a.type) != headerCell)
879
+ return false;
880
+ return true;
881
+ }
882
+ function addRow(tr, { map, tableStart, table }, row) {
883
+ var _a;
884
+ let rowPos = tableStart;
885
+ for (let i = 0; i < row; i++) rowPos += table.child(i).nodeSize;
886
+ const cells = [];
887
+ let refRow = row > 0 ? -1 : 0;
888
+ if (rowIsHeader(map, table, row + refRow))
889
+ refRow = row == 0 || row == map.height ? null : 0;
890
+ for (let col = 0, index = map.width * row; col < map.width; col++, index++) {
891
+ if (row > 0 && row < map.height && map.map[index] == map.map[index - map.width]) {
892
+ const pos = map.map[index];
893
+ const attrs = table.nodeAt(pos).attrs;
894
+ tr.setNodeMarkup(tableStart + pos, null, {
895
+ ...attrs,
896
+ rowspan: attrs.rowspan + 1
897
+ });
898
+ col += attrs.colspan - 1;
899
+ } else {
900
+ const type = refRow == null ? tableNodeTypes(table.type.schema).cell : (_a = table.nodeAt(map.map[index + refRow * map.width])) == null ? void 0 : _a.type;
901
+ const node = type == null ? void 0 : type.createAndFill();
902
+ if (node) cells.push(node);
903
+ }
904
+ }
905
+ tr.insert(rowPos, tableNodeTypes(table.type.schema).row.create(null, cells));
906
+ return tr;
907
+ }
908
+ function addRowBefore(state, dispatch) {
909
+ if (!isInTable(state)) return false;
910
+ if (dispatch) {
911
+ const rect = selectedRect(state);
912
+ dispatch(addRow(state.tr, rect, rect.top));
913
+ }
914
+ return true;
915
+ }
916
+ function addRowAfter(state, dispatch) {
917
+ if (!isInTable(state)) return false;
918
+ if (dispatch) {
919
+ const rect = selectedRect(state);
920
+ dispatch(addRow(state.tr, rect, rect.bottom));
921
+ }
922
+ return true;
923
+ }
924
+ function removeRow(tr, { map, table, tableStart }, row) {
925
+ let rowPos = 0;
926
+ for (let i = 0; i < row; i++) rowPos += table.child(i).nodeSize;
927
+ const nextRow = rowPos + table.child(row).nodeSize;
928
+ const mapFrom = tr.mapping.maps.length;
929
+ tr.delete(rowPos + tableStart, nextRow + tableStart);
930
+ const seen = /* @__PURE__ */ new Set();
931
+ for (let col = 0, index = row * map.width; col < map.width; col++, index++) {
932
+ const pos = map.map[index];
933
+ if (seen.has(pos)) continue;
934
+ seen.add(pos);
935
+ if (row > 0 && pos == map.map[index - map.width]) {
936
+ const attrs = table.nodeAt(pos).attrs;
937
+ tr.setNodeMarkup(tr.mapping.slice(mapFrom).map(pos + tableStart), null, {
938
+ ...attrs,
939
+ rowspan: attrs.rowspan - 1
940
+ });
941
+ col += attrs.colspan - 1;
942
+ } else if (row < map.height && pos == map.map[index + map.width]) {
943
+ const cell = table.nodeAt(pos);
944
+ const attrs = cell.attrs;
945
+ const copy = cell.type.create(
946
+ { ...attrs, rowspan: cell.attrs.rowspan - 1 },
947
+ cell.content
948
+ );
949
+ const newPos = map.positionAt(row + 1, col, table);
950
+ tr.insert(tr.mapping.slice(mapFrom).map(tableStart + newPos), copy);
951
+ col += attrs.colspan - 1;
952
+ }
953
+ }
954
+ }
955
+ function deleteRow(state, dispatch) {
956
+ if (!isInTable(state)) return false;
957
+ if (dispatch) {
958
+ const rect = selectedRect(state), tr = state.tr;
959
+ if (rect.top == 0 && rect.bottom == rect.map.height) return false;
960
+ for (let i = rect.bottom - 1; ; i--) {
961
+ removeRow(tr, rect, i);
962
+ if (i == rect.top) break;
963
+ const table = rect.tableStart ? tr.doc.nodeAt(rect.tableStart - 1) : tr.doc;
964
+ if (!table) {
965
+ throw RangeError("No table found");
966
+ }
967
+ rect.table = table;
968
+ rect.map = TableMap.get(rect.table);
969
+ }
970
+ dispatch(tr);
971
+ }
972
+ return true;
973
+ }
974
+ function isEmpty(cell) {
975
+ const c = cell.content;
976
+ return c.childCount == 1 && c.child(0).isTextblock && c.child(0).childCount == 0;
977
+ }
978
+ function cellsOverlapRectangle({ width, height, map }, rect) {
979
+ let indexTop = rect.top * width + rect.left, indexLeft = indexTop;
980
+ let indexBottom = (rect.bottom - 1) * width + rect.left, indexRight = indexTop + (rect.right - rect.left - 1);
981
+ for (let i = rect.top; i < rect.bottom; i++) {
982
+ if (rect.left > 0 && map[indexLeft] == map[indexLeft - 1] || rect.right < width && map[indexRight] == map[indexRight + 1])
983
+ return true;
984
+ indexLeft += width;
985
+ indexRight += width;
986
+ }
987
+ for (let i = rect.left; i < rect.right; i++) {
988
+ if (rect.top > 0 && map[indexTop] == map[indexTop - width] || rect.bottom < height && map[indexBottom] == map[indexBottom + width])
989
+ return true;
990
+ indexTop++;
991
+ indexBottom++;
992
+ }
993
+ return false;
994
+ }
995
+ function mergeCells(state, dispatch) {
996
+ const sel = state.selection;
997
+ if (!(sel instanceof CellSelection) || sel.$anchorCell.pos == sel.$headCell.pos)
998
+ return false;
999
+ const rect = selectedRect(state), { map } = rect;
1000
+ if (cellsOverlapRectangle(map, rect)) return false;
1001
+ if (dispatch) {
1002
+ const tr = state.tr;
1003
+ const seen = {};
1004
+ let content = Fragment.empty;
1005
+ let mergedPos;
1006
+ let mergedCell;
1007
+ for (let row = rect.top; row < rect.bottom; row++) {
1008
+ for (let col = rect.left; col < rect.right; col++) {
1009
+ const cellPos = map.map[row * map.width + col];
1010
+ const cell = rect.table.nodeAt(cellPos);
1011
+ if (seen[cellPos] || !cell) continue;
1012
+ seen[cellPos] = true;
1013
+ if (mergedPos == null) {
1014
+ mergedPos = cellPos;
1015
+ mergedCell = cell;
1016
+ } else {
1017
+ if (!isEmpty(cell)) content = content.append(cell.content);
1018
+ const mapped = tr.mapping.map(cellPos + rect.tableStart);
1019
+ tr.delete(mapped, mapped + cell.nodeSize);
1020
+ }
1021
+ }
1022
+ }
1023
+ if (mergedPos == null || mergedCell == null) {
1024
+ return true;
1025
+ }
1026
+ tr.setNodeMarkup(mergedPos + rect.tableStart, null, {
1027
+ ...addColSpan(
1028
+ mergedCell.attrs,
1029
+ mergedCell.attrs.colspan,
1030
+ rect.right - rect.left - mergedCell.attrs.colspan
1031
+ ),
1032
+ rowspan: rect.bottom - rect.top
1033
+ });
1034
+ if (content.size) {
1035
+ const end = mergedPos + 1 + mergedCell.content.size;
1036
+ const start = isEmpty(mergedCell) ? mergedPos + 1 : end;
1037
+ tr.replaceWith(start + rect.tableStart, end + rect.tableStart, content);
1038
+ }
1039
+ tr.setSelection(
1040
+ new CellSelection(tr.doc.resolve(mergedPos + rect.tableStart))
1041
+ );
1042
+ dispatch(tr);
1043
+ }
1044
+ return true;
1045
+ }
1046
+ function splitCell(state, dispatch) {
1047
+ const nodeTypes = tableNodeTypes(state.schema);
1048
+ return splitCellWithType(({ node }) => {
1049
+ return nodeTypes[node.type.spec.tableRole];
1050
+ })(state, dispatch);
1051
+ }
1052
+ function splitCellWithType(getCellType) {
1053
+ return (state, dispatch) => {
1054
+ var _a;
1055
+ const sel = state.selection;
1056
+ let cellNode;
1057
+ let cellPos;
1058
+ if (!(sel instanceof CellSelection)) {
1059
+ cellNode = cellWrapping(sel.$from);
1060
+ if (!cellNode) return false;
1061
+ cellPos = (_a = cellAround(sel.$from)) == null ? void 0 : _a.pos;
1062
+ } else {
1063
+ if (sel.$anchorCell.pos != sel.$headCell.pos) return false;
1064
+ cellNode = sel.$anchorCell.nodeAfter;
1065
+ cellPos = sel.$anchorCell.pos;
1066
+ }
1067
+ if (cellNode == null || cellPos == null) {
1068
+ return false;
1069
+ }
1070
+ if (cellNode.attrs.colspan == 1 && cellNode.attrs.rowspan == 1) {
1071
+ return false;
1072
+ }
1073
+ if (dispatch) {
1074
+ let baseAttrs = cellNode.attrs;
1075
+ const attrs = [];
1076
+ const colwidth = baseAttrs.colwidth;
1077
+ if (baseAttrs.rowspan > 1) baseAttrs = { ...baseAttrs, rowspan: 1 };
1078
+ if (baseAttrs.colspan > 1) baseAttrs = { ...baseAttrs, colspan: 1 };
1079
+ const rect = selectedRect(state), tr = state.tr;
1080
+ for (let i = 0; i < rect.right - rect.left; i++)
1081
+ attrs.push(
1082
+ colwidth ? {
1083
+ ...baseAttrs,
1084
+ colwidth: colwidth && colwidth[i] ? [colwidth[i]] : null
1085
+ } : baseAttrs
1086
+ );
1087
+ let lastCell;
1088
+ for (let row = rect.top; row < rect.bottom; row++) {
1089
+ let pos = rect.map.positionAt(row, rect.left, rect.table);
1090
+ if (row == rect.top) pos += cellNode.nodeSize;
1091
+ for (let col = rect.left, i = 0; col < rect.right; col++, i++) {
1092
+ if (col == rect.left && row == rect.top) continue;
1093
+ tr.insert(
1094
+ lastCell = tr.mapping.map(pos + rect.tableStart, 1),
1095
+ getCellType({ node: cellNode, row, col }).createAndFill(attrs[i])
1096
+ );
1097
+ }
1098
+ }
1099
+ tr.setNodeMarkup(
1100
+ cellPos,
1101
+ getCellType({ node: cellNode, row: rect.top, col: rect.left }),
1102
+ attrs[0]
1103
+ );
1104
+ if (sel instanceof CellSelection)
1105
+ tr.setSelection(
1106
+ new CellSelection(
1107
+ tr.doc.resolve(sel.$anchorCell.pos),
1108
+ lastCell ? tr.doc.resolve(lastCell) : void 0
1109
+ )
1110
+ );
1111
+ dispatch(tr);
1112
+ }
1113
+ return true;
1114
+ };
1115
+ }
1116
+ function setCellAttr(name, value) {
1117
+ return function(state, dispatch) {
1118
+ if (!isInTable(state)) return false;
1119
+ const $cell = selectionCell(state);
1120
+ if ($cell.nodeAfter.attrs[name] === value) return false;
1121
+ if (dispatch) {
1122
+ const tr = state.tr;
1123
+ if (state.selection instanceof CellSelection)
1124
+ state.selection.forEachCell((node, pos) => {
1125
+ if (node.attrs[name] !== value)
1126
+ tr.setNodeMarkup(pos, null, {
1127
+ ...node.attrs,
1128
+ [name]: value
1129
+ });
1130
+ });
1131
+ else
1132
+ tr.setNodeMarkup($cell.pos, null, {
1133
+ ...$cell.nodeAfter.attrs,
1134
+ [name]: value
1135
+ });
1136
+ dispatch(tr);
1137
+ }
1138
+ return true;
1139
+ };
1140
+ }
1141
+ function deprecated_toggleHeader(type) {
1142
+ return function(state, dispatch) {
1143
+ if (!isInTable(state)) return false;
1144
+ if (dispatch) {
1145
+ const types = tableNodeTypes(state.schema);
1146
+ const rect = selectedRect(state), tr = state.tr;
1147
+ const cells = rect.map.cellsInRect(
1148
+ type == "column" ? {
1149
+ left: rect.left,
1150
+ top: 0,
1151
+ right: rect.right,
1152
+ bottom: rect.map.height
1153
+ } : type == "row" ? {
1154
+ left: 0,
1155
+ top: rect.top,
1156
+ right: rect.map.width,
1157
+ bottom: rect.bottom
1158
+ } : rect
1159
+ );
1160
+ const nodes = cells.map((pos) => rect.table.nodeAt(pos));
1161
+ for (let i = 0; i < cells.length; i++)
1162
+ if (nodes[i].type == types.header_cell)
1163
+ tr.setNodeMarkup(
1164
+ rect.tableStart + cells[i],
1165
+ types.cell,
1166
+ nodes[i].attrs
1167
+ );
1168
+ if (tr.steps.length == 0)
1169
+ for (let i = 0; i < cells.length; i++)
1170
+ tr.setNodeMarkup(
1171
+ rect.tableStart + cells[i],
1172
+ types.header_cell,
1173
+ nodes[i].attrs
1174
+ );
1175
+ dispatch(tr);
1176
+ }
1177
+ return true;
1178
+ };
1179
+ }
1180
+ function isHeaderEnabledByType(type, rect, types) {
1181
+ const cellPositions = rect.map.cellsInRect({
1182
+ left: 0,
1183
+ top: 0,
1184
+ right: type == "row" ? rect.map.width : 1,
1185
+ bottom: type == "column" ? rect.map.height : 1
1186
+ });
1187
+ for (let i = 0; i < cellPositions.length; i++) {
1188
+ const cell = rect.table.nodeAt(cellPositions[i]);
1189
+ if (cell && cell.type !== types.header_cell) {
1190
+ return false;
1191
+ }
1192
+ }
1193
+ return true;
1194
+ }
1195
+ function toggleHeader(type, options) {
1196
+ options = options || { useDeprecatedLogic: false };
1197
+ if (options.useDeprecatedLogic) return deprecated_toggleHeader(type);
1198
+ return function(state, dispatch) {
1199
+ if (!isInTable(state)) return false;
1200
+ if (dispatch) {
1201
+ const types = tableNodeTypes(state.schema);
1202
+ const rect = selectedRect(state), tr = state.tr;
1203
+ const isHeaderRowEnabled = isHeaderEnabledByType("row", rect, types);
1204
+ const isHeaderColumnEnabled = isHeaderEnabledByType(
1205
+ "column",
1206
+ rect,
1207
+ types
1208
+ );
1209
+ const isHeaderEnabled = type === "column" ? isHeaderRowEnabled : type === "row" ? isHeaderColumnEnabled : false;
1210
+ const selectionStartsAt = isHeaderEnabled ? 1 : 0;
1211
+ const cellsRect = type == "column" ? {
1212
+ left: 0,
1213
+ top: selectionStartsAt,
1214
+ right: 1,
1215
+ bottom: rect.map.height
1216
+ } : type == "row" ? {
1217
+ left: selectionStartsAt,
1218
+ top: 0,
1219
+ right: rect.map.width,
1220
+ bottom: 1
1221
+ } : rect;
1222
+ const newType = type == "column" ? isHeaderColumnEnabled ? types.cell : types.header_cell : type == "row" ? isHeaderRowEnabled ? types.cell : types.header_cell : types.cell;
1223
+ rect.map.cellsInRect(cellsRect).forEach((relativeCellPos) => {
1224
+ const cellPos = relativeCellPos + rect.tableStart;
1225
+ const cell = tr.doc.nodeAt(cellPos);
1226
+ if (cell) {
1227
+ tr.setNodeMarkup(cellPos, newType, cell.attrs);
1228
+ }
1229
+ });
1230
+ dispatch(tr);
1231
+ }
1232
+ return true;
1233
+ };
1234
+ }
1235
+ toggleHeader("row", {
1236
+ useDeprecatedLogic: true
1237
+ });
1238
+ toggleHeader("column", {
1239
+ useDeprecatedLogic: true
1240
+ });
1241
+ var toggleHeaderCell = toggleHeader("cell", {
1242
+ useDeprecatedLogic: true
1243
+ });
1244
+ function findNextCell($cell, dir) {
1245
+ if (dir < 0) {
1246
+ const before = $cell.nodeBefore;
1247
+ if (before) return $cell.pos - before.nodeSize;
1248
+ for (let row = $cell.index(-1) - 1, rowEnd = $cell.before(); row >= 0; row--) {
1249
+ const rowNode = $cell.node(-1).child(row);
1250
+ const lastChild = rowNode.lastChild;
1251
+ if (lastChild) {
1252
+ return rowEnd - 1 - lastChild.nodeSize;
1253
+ }
1254
+ rowEnd -= rowNode.nodeSize;
1255
+ }
1256
+ } else {
1257
+ if ($cell.index() < $cell.parent.childCount - 1) {
1258
+ return $cell.pos + $cell.nodeAfter.nodeSize;
1259
+ }
1260
+ const table = $cell.node(-1);
1261
+ for (let row = $cell.indexAfter(-1), rowStart = $cell.after(); row < table.childCount; row++) {
1262
+ const rowNode = table.child(row);
1263
+ if (rowNode.childCount) return rowStart + 1;
1264
+ rowStart += rowNode.nodeSize;
1265
+ }
1266
+ }
1267
+ return null;
1268
+ }
1269
+ function goToNextCell(direction) {
1270
+ return function(state, dispatch) {
1271
+ if (!isInTable(state)) return false;
1272
+ const cell = findNextCell(selectionCell(state), direction);
1273
+ if (cell == null) return false;
1274
+ if (dispatch) {
1275
+ const $cell = state.doc.resolve(cell);
1276
+ dispatch(
1277
+ state.tr.setSelection(TextSelection.between($cell, moveCellForward($cell))).scrollIntoView()
1278
+ );
1279
+ }
1280
+ return true;
1281
+ };
1282
+ }
1283
+ function deleteTable(state, dispatch) {
1284
+ const $pos = state.selection.$anchor;
1285
+ for (let d = $pos.depth; d > 0; d--) {
1286
+ const node = $pos.node(d);
1287
+ if (node.type.spec.tableRole == "table") {
1288
+ if (dispatch)
1289
+ dispatch(
1290
+ state.tr.delete($pos.before(d), $pos.after(d)).scrollIntoView()
1291
+ );
1292
+ return true;
1293
+ }
1294
+ }
1295
+ return false;
1296
+ }
1297
+ function deleteCellSelection(state, dispatch) {
1298
+ const sel = state.selection;
1299
+ if (!(sel instanceof CellSelection)) return false;
1300
+ if (dispatch) {
1301
+ const tr = state.tr;
1302
+ const baseContent = tableNodeTypes(state.schema).cell.createAndFill().content;
1303
+ sel.forEachCell((cell, pos) => {
1304
+ if (!cell.content.eq(baseContent))
1305
+ tr.replace(
1306
+ tr.mapping.map(pos + 1),
1307
+ tr.mapping.map(pos + cell.nodeSize - 1),
1308
+ new Slice(baseContent, 0, 0)
1309
+ );
1310
+ });
1311
+ if (tr.docChanged) dispatch(tr);
1312
+ }
1313
+ return true;
1314
+ }
1315
+ function pastedCells(slice) {
1316
+ if (!slice.size) return null;
1317
+ let { content, openStart, openEnd } = slice;
1318
+ while (content.childCount == 1 && (openStart > 0 && openEnd > 0 || content.child(0).type.spec.tableRole == "table")) {
1319
+ openStart--;
1320
+ openEnd--;
1321
+ content = content.child(0).content;
1322
+ }
1323
+ const first = content.child(0);
1324
+ const role = first.type.spec.tableRole;
1325
+ const schema = first.type.schema, rows = [];
1326
+ if (role == "row") {
1327
+ for (let i = 0; i < content.childCount; i++) {
1328
+ let cells = content.child(i).content;
1329
+ const left = i ? 0 : Math.max(0, openStart - 1);
1330
+ const right = i < content.childCount - 1 ? 0 : Math.max(0, openEnd - 1);
1331
+ if (left || right)
1332
+ cells = fitSlice(
1333
+ tableNodeTypes(schema).row,
1334
+ new Slice(cells, left, right)
1335
+ ).content;
1336
+ rows.push(cells);
1337
+ }
1338
+ } else if (role == "cell" || role == "header_cell") {
1339
+ rows.push(
1340
+ openStart || openEnd ? fitSlice(
1341
+ tableNodeTypes(schema).row,
1342
+ new Slice(content, openStart, openEnd)
1343
+ ).content : content
1344
+ );
1345
+ } else {
1346
+ return null;
1347
+ }
1348
+ return ensureRectangular(schema, rows);
1349
+ }
1350
+ function ensureRectangular(schema, rows) {
1351
+ const widths = [];
1352
+ for (let i = 0; i < rows.length; i++) {
1353
+ const row = rows[i];
1354
+ for (let j = row.childCount - 1; j >= 0; j--) {
1355
+ const { rowspan, colspan } = row.child(j).attrs;
1356
+ for (let r = i; r < i + rowspan; r++)
1357
+ widths[r] = (widths[r] || 0) + colspan;
1358
+ }
1359
+ }
1360
+ let width = 0;
1361
+ for (let r = 0; r < widths.length; r++) width = Math.max(width, widths[r]);
1362
+ for (let r = 0; r < widths.length; r++) {
1363
+ if (r >= rows.length) rows.push(Fragment.empty);
1364
+ if (widths[r] < width) {
1365
+ const empty = tableNodeTypes(schema).cell.createAndFill();
1366
+ const cells = [];
1367
+ for (let i = widths[r]; i < width; i++) {
1368
+ cells.push(empty);
1369
+ }
1370
+ rows[r] = rows[r].append(Fragment.from(cells));
1371
+ }
1372
+ }
1373
+ return { height: rows.length, width, rows };
1374
+ }
1375
+ function fitSlice(nodeType, slice) {
1376
+ const node = nodeType.createAndFill();
1377
+ const tr = new Transform(node).replace(0, node.content.size, slice);
1378
+ return tr.doc;
1379
+ }
1380
+ function clipCells({ width, height, rows }, newWidth, newHeight) {
1381
+ if (width != newWidth) {
1382
+ const added = [];
1383
+ const newRows = [];
1384
+ for (let row = 0; row < rows.length; row++) {
1385
+ const frag = rows[row], cells = [];
1386
+ for (let col = added[row] || 0, i = 0; col < newWidth; i++) {
1387
+ let cell = frag.child(i % frag.childCount);
1388
+ if (col + cell.attrs.colspan > newWidth)
1389
+ cell = cell.type.createChecked(
1390
+ removeColSpan(
1391
+ cell.attrs,
1392
+ cell.attrs.colspan,
1393
+ col + cell.attrs.colspan - newWidth
1394
+ ),
1395
+ cell.content
1396
+ );
1397
+ cells.push(cell);
1398
+ col += cell.attrs.colspan;
1399
+ for (let j = 1; j < cell.attrs.rowspan; j++)
1400
+ added[row + j] = (added[row + j] || 0) + cell.attrs.colspan;
1401
+ }
1402
+ newRows.push(Fragment.from(cells));
1403
+ }
1404
+ rows = newRows;
1405
+ width = newWidth;
1406
+ }
1407
+ if (height != newHeight) {
1408
+ const newRows = [];
1409
+ for (let row = 0, i = 0; row < newHeight; row++, i++) {
1410
+ const cells = [], source = rows[i % height];
1411
+ for (let j = 0; j < source.childCount; j++) {
1412
+ let cell = source.child(j);
1413
+ if (row + cell.attrs.rowspan > newHeight)
1414
+ cell = cell.type.create(
1415
+ {
1416
+ ...cell.attrs,
1417
+ rowspan: Math.max(1, newHeight - cell.attrs.rowspan)
1418
+ },
1419
+ cell.content
1420
+ );
1421
+ cells.push(cell);
1422
+ }
1423
+ newRows.push(Fragment.from(cells));
1424
+ }
1425
+ rows = newRows;
1426
+ height = newHeight;
1427
+ }
1428
+ return { width, height, rows };
1429
+ }
1430
+ function growTable(tr, map, table, start, width, height, mapFrom) {
1431
+ const schema = tr.doc.type.schema;
1432
+ const types = tableNodeTypes(schema);
1433
+ let empty;
1434
+ let emptyHead;
1435
+ if (width > map.width) {
1436
+ for (let row = 0, rowEnd = 0; row < map.height; row++) {
1437
+ const rowNode = table.child(row);
1438
+ rowEnd += rowNode.nodeSize;
1439
+ const cells = [];
1440
+ let add;
1441
+ if (rowNode.lastChild == null || rowNode.lastChild.type == types.cell)
1442
+ add = empty || (empty = types.cell.createAndFill());
1443
+ else add = emptyHead || (emptyHead = types.header_cell.createAndFill());
1444
+ for (let i = map.width; i < width; i++) cells.push(add);
1445
+ tr.insert(tr.mapping.slice(mapFrom).map(rowEnd - 1 + start), cells);
1446
+ }
1447
+ }
1448
+ if (height > map.height) {
1449
+ const cells = [];
1450
+ for (let i = 0, start2 = (map.height - 1) * map.width; i < Math.max(map.width, width); i++) {
1451
+ const header = i >= map.width ? false : table.nodeAt(map.map[start2 + i]).type == types.header_cell;
1452
+ cells.push(
1453
+ header ? emptyHead || (emptyHead = types.header_cell.createAndFill()) : empty || (empty = types.cell.createAndFill())
1454
+ );
1455
+ }
1456
+ const emptyRow = types.row.create(null, Fragment.from(cells)), rows = [];
1457
+ for (let i = map.height; i < height; i++) rows.push(emptyRow);
1458
+ tr.insert(tr.mapping.slice(mapFrom).map(start + table.nodeSize - 2), rows);
1459
+ }
1460
+ return !!(empty || emptyHead);
1461
+ }
1462
+ function isolateHorizontal(tr, map, table, start, left, right, top, mapFrom) {
1463
+ if (top == 0 || top == map.height) return false;
1464
+ let found = false;
1465
+ for (let col = left; col < right; col++) {
1466
+ const index = top * map.width + col, pos = map.map[index];
1467
+ if (map.map[index - map.width] == pos) {
1468
+ found = true;
1469
+ const cell = table.nodeAt(pos);
1470
+ const { top: cellTop, left: cellLeft } = map.findCell(pos);
1471
+ tr.setNodeMarkup(tr.mapping.slice(mapFrom).map(pos + start), null, {
1472
+ ...cell.attrs,
1473
+ rowspan: top - cellTop
1474
+ });
1475
+ tr.insert(
1476
+ tr.mapping.slice(mapFrom).map(map.positionAt(top, cellLeft, table)),
1477
+ cell.type.createAndFill({
1478
+ ...cell.attrs,
1479
+ rowspan: cellTop + cell.attrs.rowspan - top
1480
+ })
1481
+ );
1482
+ col += cell.attrs.colspan - 1;
1483
+ }
1484
+ }
1485
+ return found;
1486
+ }
1487
+ function isolateVertical(tr, map, table, start, top, bottom, left, mapFrom) {
1488
+ if (left == 0 || left == map.width) return false;
1489
+ let found = false;
1490
+ for (let row = top; row < bottom; row++) {
1491
+ const index = row * map.width + left, pos = map.map[index];
1492
+ if (map.map[index - 1] == pos) {
1493
+ found = true;
1494
+ const cell = table.nodeAt(pos);
1495
+ const cellLeft = map.colCount(pos);
1496
+ const updatePos = tr.mapping.slice(mapFrom).map(pos + start);
1497
+ tr.setNodeMarkup(
1498
+ updatePos,
1499
+ null,
1500
+ removeColSpan(
1501
+ cell.attrs,
1502
+ left - cellLeft,
1503
+ cell.attrs.colspan - (left - cellLeft)
1504
+ )
1505
+ );
1506
+ tr.insert(
1507
+ updatePos + cell.nodeSize,
1508
+ cell.type.createAndFill(
1509
+ removeColSpan(cell.attrs, 0, left - cellLeft)
1510
+ )
1511
+ );
1512
+ row += cell.attrs.rowspan - 1;
1513
+ }
1514
+ }
1515
+ return found;
1516
+ }
1517
+ function insertCells(state, dispatch, tableStart, rect, cells) {
1518
+ let table = tableStart ? state.doc.nodeAt(tableStart - 1) : state.doc;
1519
+ if (!table) {
1520
+ throw new Error("No table found");
1521
+ }
1522
+ let map = TableMap.get(table);
1523
+ const { top, left } = rect;
1524
+ const right = left + cells.width, bottom = top + cells.height;
1525
+ const tr = state.tr;
1526
+ let mapFrom = 0;
1527
+ function recomp() {
1528
+ table = tableStart ? tr.doc.nodeAt(tableStart - 1) : tr.doc;
1529
+ if (!table) {
1530
+ throw new Error("No table found");
1531
+ }
1532
+ map = TableMap.get(table);
1533
+ mapFrom = tr.mapping.maps.length;
1534
+ }
1535
+ if (growTable(tr, map, table, tableStart, right, bottom, mapFrom)) recomp();
1536
+ if (isolateHorizontal(tr, map, table, tableStart, left, right, top, mapFrom))
1537
+ recomp();
1538
+ if (isolateHorizontal(tr, map, table, tableStart, left, right, bottom, mapFrom))
1539
+ recomp();
1540
+ if (isolateVertical(tr, map, table, tableStart, top, bottom, left, mapFrom))
1541
+ recomp();
1542
+ if (isolateVertical(tr, map, table, tableStart, top, bottom, right, mapFrom))
1543
+ recomp();
1544
+ for (let row = top; row < bottom; row++) {
1545
+ const from = map.positionAt(row, left, table), to = map.positionAt(row, right, table);
1546
+ tr.replace(
1547
+ tr.mapping.slice(mapFrom).map(from + tableStart),
1548
+ tr.mapping.slice(mapFrom).map(to + tableStart),
1549
+ new Slice(cells.rows[row - top], 0, 0)
1550
+ );
1551
+ }
1552
+ recomp();
1553
+ tr.setSelection(
1554
+ new CellSelection(
1555
+ tr.doc.resolve(tableStart + map.positionAt(top, left, table)),
1556
+ tr.doc.resolve(tableStart + map.positionAt(bottom - 1, right - 1, table))
1557
+ )
1558
+ );
1559
+ dispatch(tr);
1560
+ }
1561
+
1562
+ // src/input.ts
1563
+ var handleKeyDown = keydownHandler({
1564
+ ArrowLeft: arrow("horiz", -1),
1565
+ ArrowRight: arrow("horiz", 1),
1566
+ ArrowUp: arrow("vert", -1),
1567
+ ArrowDown: arrow("vert", 1),
1568
+ "Shift-ArrowLeft": shiftArrow("horiz", -1),
1569
+ "Shift-ArrowRight": shiftArrow("horiz", 1),
1570
+ "Shift-ArrowUp": shiftArrow("vert", -1),
1571
+ "Shift-ArrowDown": shiftArrow("vert", 1),
1572
+ Backspace: deleteCellSelection,
1573
+ "Mod-Backspace": deleteCellSelection,
1574
+ Delete: deleteCellSelection,
1575
+ "Mod-Delete": deleteCellSelection
1576
+ });
1577
+ function maybeSetSelection(state, dispatch, selection) {
1578
+ if (selection.eq(state.selection)) return false;
1579
+ if (dispatch) dispatch(state.tr.setSelection(selection).scrollIntoView());
1580
+ return true;
1581
+ }
1582
+ function arrow(axis, dir) {
1583
+ return (state, dispatch, view) => {
1584
+ if (!view) return false;
1585
+ const sel = state.selection;
1586
+ if (sel instanceof CellSelection) {
1587
+ return maybeSetSelection(
1588
+ state,
1589
+ dispatch,
1590
+ Selection.near(sel.$headCell, dir)
1591
+ );
1592
+ }
1593
+ if (axis != "horiz" && !sel.empty) return false;
1594
+ const end = atEndOfCell(view, axis, dir);
1595
+ if (end == null) return false;
1596
+ if (axis == "horiz") {
1597
+ return maybeSetSelection(
1598
+ state,
1599
+ dispatch,
1600
+ Selection.near(state.doc.resolve(sel.head + dir), dir)
1601
+ );
1602
+ } else {
1603
+ const $cell = state.doc.resolve(end);
1604
+ const $next = nextCell($cell, axis, dir);
1605
+ let newSel;
1606
+ if ($next) newSel = Selection.near($next, 1);
1607
+ else if (dir < 0)
1608
+ newSel = Selection.near(state.doc.resolve($cell.before(-1)), -1);
1609
+ else newSel = Selection.near(state.doc.resolve($cell.after(-1)), 1);
1610
+ return maybeSetSelection(state, dispatch, newSel);
1611
+ }
1612
+ };
1613
+ }
1614
+ function shiftArrow(axis, dir) {
1615
+ return (state, dispatch, view) => {
1616
+ if (!view) return false;
1617
+ const sel = state.selection;
1618
+ let cellSel;
1619
+ if (sel instanceof CellSelection) {
1620
+ cellSel = sel;
1621
+ } else {
1622
+ const end = atEndOfCell(view, axis, dir);
1623
+ if (end == null) return false;
1624
+ cellSel = new CellSelection(state.doc.resolve(end));
1625
+ }
1626
+ const $head = nextCell(cellSel.$headCell, axis, dir);
1627
+ if (!$head) return false;
1628
+ return maybeSetSelection(
1629
+ state,
1630
+ dispatch,
1631
+ new CellSelection(cellSel.$anchorCell, $head)
1632
+ );
1633
+ };
1634
+ }
1635
+ function handleTripleClick(view, pos) {
1636
+ const doc = view.state.doc, $cell = cellAround(doc.resolve(pos));
1637
+ if (!$cell) return false;
1638
+ view.dispatch(view.state.tr.setSelection(new CellSelection($cell)));
1639
+ return true;
1640
+ }
1641
+ function handlePaste(view, _, slice) {
1642
+ if (!isInTable(view.state)) return false;
1643
+ let cells = pastedCells(slice);
1644
+ const sel = view.state.selection;
1645
+ if (sel instanceof CellSelection) {
1646
+ if (!cells)
1647
+ cells = {
1648
+ width: 1,
1649
+ height: 1,
1650
+ rows: [
1651
+ Fragment.from(
1652
+ fitSlice(tableNodeTypes(view.state.schema).cell, slice)
1653
+ )
1654
+ ]
1655
+ };
1656
+ const table = sel.$anchorCell.node(-1);
1657
+ const start = sel.$anchorCell.start(-1);
1658
+ const rect = TableMap.get(table).rectBetween(
1659
+ sel.$anchorCell.pos - start,
1660
+ sel.$headCell.pos - start
1661
+ );
1662
+ cells = clipCells(cells, rect.right - rect.left, rect.bottom - rect.top);
1663
+ insertCells(view.state, view.dispatch, start, rect, cells);
1664
+ return true;
1665
+ } else if (cells) {
1666
+ const $cell = selectionCell(view.state);
1667
+ const start = $cell.start(-1);
1668
+ insertCells(
1669
+ view.state,
1670
+ view.dispatch,
1671
+ start,
1672
+ TableMap.get($cell.node(-1)).findCell($cell.pos - start),
1673
+ cells
1674
+ );
1675
+ return true;
1676
+ } else {
1677
+ return false;
1678
+ }
1679
+ }
1680
+ function handleMouseDown(view, startEvent) {
1681
+ var _a;
1682
+ if (startEvent.ctrlKey || startEvent.metaKey) return;
1683
+ const startDOMCell = domInCell(view, startEvent.target);
1684
+ let $anchor;
1685
+ if (startEvent.shiftKey && view.state.selection instanceof CellSelection) {
1686
+ setCellSelection(view.state.selection.$anchorCell, startEvent);
1687
+ startEvent.preventDefault();
1688
+ } else if (startEvent.shiftKey && startDOMCell && ($anchor = cellAround(view.state.selection.$anchor)) != null && ((_a = cellUnderMouse(view, startEvent)) == null ? void 0 : _a.pos) != $anchor.pos) {
1689
+ setCellSelection($anchor, startEvent);
1690
+ startEvent.preventDefault();
1691
+ } else if (!startDOMCell) {
1692
+ return;
1693
+ }
1694
+ function setCellSelection($anchor2, event) {
1695
+ let $head = cellUnderMouse(view, event);
1696
+ const starting = tableEditingKey.getState(view.state) == null;
1697
+ if (!$head || !inSameTable($anchor2, $head)) {
1698
+ if (starting) $head = $anchor2;
1699
+ else return;
1700
+ }
1701
+ const selection = new CellSelection($anchor2, $head);
1702
+ if (starting || !view.state.selection.eq(selection)) {
1703
+ const tr = view.state.tr.setSelection(selection);
1704
+ if (starting) tr.setMeta(tableEditingKey, $anchor2.pos);
1705
+ view.dispatch(tr);
1706
+ }
1707
+ }
1708
+ function stop() {
1709
+ view.root.removeEventListener("mouseup", stop);
1710
+ view.root.removeEventListener("dragstart", stop);
1711
+ view.root.removeEventListener("mousemove", move);
1712
+ if (tableEditingKey.getState(view.state) != null)
1713
+ view.dispatch(view.state.tr.setMeta(tableEditingKey, -1));
1714
+ }
1715
+ function move(_event) {
1716
+ const event = _event;
1717
+ const anchor = tableEditingKey.getState(view.state);
1718
+ let $anchor2;
1719
+ if (anchor != null) {
1720
+ $anchor2 = view.state.doc.resolve(anchor);
1721
+ } else if (domInCell(view, event.target) != startDOMCell) {
1722
+ $anchor2 = cellUnderMouse(view, startEvent);
1723
+ if (!$anchor2) return stop();
1724
+ }
1725
+ if ($anchor2) setCellSelection($anchor2, event);
1726
+ }
1727
+ view.root.addEventListener("mouseup", stop);
1728
+ view.root.addEventListener("dragstart", stop);
1729
+ view.root.addEventListener("mousemove", move);
1730
+ }
1731
+ function atEndOfCell(view, axis, dir) {
1732
+ if (!(view.state.selection instanceof TextSelection)) return null;
1733
+ const { $head } = view.state.selection;
1734
+ for (let d = $head.depth - 1; d >= 0; d--) {
1735
+ const parent = $head.node(d), index = dir < 0 ? $head.index(d) : $head.indexAfter(d);
1736
+ if (index != (dir < 0 ? 0 : parent.childCount)) return null;
1737
+ if (parent.type.spec.tableRole == "cell" || parent.type.spec.tableRole == "header_cell") {
1738
+ const cellPos = $head.before(d);
1739
+ const dirStr = axis == "vert" ? dir > 0 ? "down" : "up" : dir > 0 ? "right" : "left";
1740
+ return view.endOfTextblock(dirStr) ? cellPos : null;
1741
+ }
1742
+ }
1743
+ return null;
1744
+ }
1745
+ function domInCell(view, dom) {
1746
+ for (; dom && dom != view.dom; dom = dom.parentNode) {
1747
+ if (dom.nodeName == "TD" || dom.nodeName == "TH") {
1748
+ return dom;
1749
+ }
1750
+ }
1751
+ return null;
1752
+ }
1753
+ function cellUnderMouse(view, event) {
1754
+ const mousePos = view.posAtCoords({
1755
+ left: event.clientX,
1756
+ top: event.clientY
1757
+ });
1758
+ if (!mousePos) return null;
1759
+ return mousePos ? cellAround(view.state.doc.resolve(mousePos.pos)) : null;
1760
+ }
1761
+
1762
+ // src/tableview.ts
1763
+ var TableView = class {
1764
+ constructor(node, defaultCellMinWidth) {
1765
+ this.node = node;
1766
+ this.defaultCellMinWidth = defaultCellMinWidth;
1767
+ this.dom = document.createElement("div");
1768
+ this.dom.className = "tableWrapper";
1769
+ this.table = this.dom.appendChild(document.createElement("table"));
1770
+ this.table.style.setProperty(
1771
+ "--default-cell-min-width",
1772
+ `${defaultCellMinWidth}px`
1773
+ );
1774
+ this.colgroup = this.table.appendChild(document.createElement("colgroup"));
1775
+ updateColumnsOnResize(node, this.colgroup, this.table, defaultCellMinWidth);
1776
+ this.contentDOM = this.table.appendChild(document.createElement("tbody"));
1777
+ }
1778
+ update(node) {
1779
+ if (node.type != this.node.type) return false;
1780
+ this.node = node;
1781
+ updateColumnsOnResize(
1782
+ node,
1783
+ this.colgroup,
1784
+ this.table,
1785
+ this.defaultCellMinWidth
1786
+ );
1787
+ return true;
1788
+ }
1789
+ ignoreMutation(record) {
1790
+ return record.type == "attributes" && (record.target == this.table || this.colgroup.contains(record.target));
1791
+ }
1792
+ };
1793
+ function updateColumnsOnResize(node, colgroup, table, defaultCellMinWidth, overrideCol, overrideValue) {
1794
+ var _a;
1795
+ let totalWidth = 0;
1796
+ let fixedWidth = true;
1797
+ let nextDOM = colgroup.firstChild;
1798
+ const row = node.firstChild;
1799
+ if (!row) return;
1800
+ for (let i = 0, col = 0; i < row.childCount; i++) {
1801
+ const { colspan, colwidth } = row.child(i).attrs;
1802
+ for (let j = 0; j < colspan; j++, col++) {
1803
+ const hasWidth = overrideCol == col ? overrideValue : colwidth && colwidth[j];
1804
+ const cssWidth = hasWidth ? hasWidth + "px" : "";
1805
+ totalWidth += hasWidth || defaultCellMinWidth;
1806
+ if (!hasWidth) fixedWidth = false;
1807
+ if (!nextDOM) {
1808
+ const col2 = document.createElement("col");
1809
+ col2.style.width = cssWidth;
1810
+ colgroup.appendChild(col2);
1811
+ } else {
1812
+ if (nextDOM.style.width != cssWidth) {
1813
+ nextDOM.style.width = cssWidth;
1814
+ }
1815
+ nextDOM = nextDOM.nextSibling;
1816
+ }
1817
+ }
1818
+ }
1819
+ while (nextDOM) {
1820
+ const after = nextDOM.nextSibling;
1821
+ (_a = nextDOM.parentNode) == null ? void 0 : _a.removeChild(nextDOM);
1822
+ nextDOM = after;
1823
+ }
1824
+ if (fixedWidth) {
1825
+ table.style.width = totalWidth + "px";
1826
+ table.style.minWidth = "";
1827
+ } else {
1828
+ table.style.width = "";
1829
+ table.style.minWidth = totalWidth + "px";
1830
+ }
1831
+ }
1832
+
1833
+ // src/columnresizing.ts
1834
+ var columnResizingPluginKey = new PluginKey(
1835
+ "tableColumnResizing"
1836
+ );
1837
+ function columnResizing({
1838
+ handleWidth = 5,
1839
+ cellMinWidth = 25,
1840
+ defaultCellMinWidth = 100,
1841
+ View = TableView,
1842
+ lastColumnResizable = true
1843
+ } = {}) {
1844
+ const plugin = new Plugin({
1845
+ key: columnResizingPluginKey,
1846
+ state: {
1847
+ init(_, state) {
1848
+ var _a, _b;
1849
+ const nodeViews = (_b = (_a = plugin.spec) == null ? void 0 : _a.props) == null ? void 0 : _b.nodeViews;
1850
+ const tableName = tableNodeTypes(state.schema).table.name;
1851
+ if (View && nodeViews) {
1852
+ nodeViews[tableName] = (node, view) => {
1853
+ return new View(node, defaultCellMinWidth, view);
1854
+ };
1855
+ }
1856
+ return new ResizeState(-1, false);
1857
+ },
1858
+ apply(tr, prev) {
1859
+ return prev.apply(tr);
1860
+ }
1861
+ },
1862
+ props: {
1863
+ attributes: (state) => {
1864
+ const pluginState = columnResizingPluginKey.getState(state);
1865
+ return pluginState && pluginState.activeHandle > -1 ? { class: "resize-cursor" } : {};
1866
+ },
1867
+ handleDOMEvents: {
1868
+ mousemove: (view, event) => {
1869
+ handleMouseMove(view, event, handleWidth, lastColumnResizable);
1870
+ },
1871
+ mouseleave: (view) => {
1872
+ handleMouseLeave(view);
1873
+ },
1874
+ mousedown: (view, event) => {
1875
+ handleMouseDown2(view, event, cellMinWidth, defaultCellMinWidth);
1876
+ }
1877
+ },
1878
+ decorations: (state) => {
1879
+ const pluginState = columnResizingPluginKey.getState(state);
1880
+ if (pluginState && pluginState.activeHandle > -1) {
1881
+ return handleDecorations(state, pluginState.activeHandle);
1882
+ }
1883
+ },
1884
+ nodeViews: {}
1885
+ }
1886
+ });
1887
+ return plugin;
1888
+ }
1889
+ var ResizeState = class _ResizeState {
1890
+ constructor(activeHandle, dragging) {
1891
+ this.activeHandle = activeHandle;
1892
+ this.dragging = dragging;
1893
+ }
1894
+ apply(tr) {
1895
+ const state = this;
1896
+ const action = tr.getMeta(columnResizingPluginKey);
1897
+ if (action && action.setHandle != null)
1898
+ return new _ResizeState(action.setHandle, false);
1899
+ if (action && action.setDragging !== void 0)
1900
+ return new _ResizeState(state.activeHandle, action.setDragging);
1901
+ if (state.activeHandle > -1 && tr.docChanged) {
1902
+ let handle = tr.mapping.map(state.activeHandle, -1);
1903
+ if (!pointsAtCell(tr.doc.resolve(handle))) {
1904
+ handle = -1;
1905
+ }
1906
+ return new _ResizeState(handle, state.dragging);
1907
+ }
1908
+ return state;
1909
+ }
1910
+ };
1911
+ function handleMouseMove(view, event, handleWidth, lastColumnResizable) {
1912
+ if (!view.editable) return;
1913
+ const pluginState = columnResizingPluginKey.getState(view.state);
1914
+ if (!pluginState) return;
1915
+ if (!pluginState.dragging) {
1916
+ const target = domCellAround(event.target);
1917
+ let cell = -1;
1918
+ if (target) {
1919
+ const { left, right } = target.getBoundingClientRect();
1920
+ if (event.clientX - left <= handleWidth)
1921
+ cell = edgeCell(view, event, "left", handleWidth);
1922
+ else if (right - event.clientX <= handleWidth)
1923
+ cell = edgeCell(view, event, "right", handleWidth);
1924
+ }
1925
+ if (cell != pluginState.activeHandle) {
1926
+ if (!lastColumnResizable && cell !== -1) {
1927
+ const $cell = view.state.doc.resolve(cell);
1928
+ const table = $cell.node(-1);
1929
+ const map = TableMap.get(table);
1930
+ const tableStart = $cell.start(-1);
1931
+ const col = map.colCount($cell.pos - tableStart) + $cell.nodeAfter.attrs.colspan - 1;
1932
+ if (col == map.width - 1) {
1933
+ return;
1934
+ }
1935
+ }
1936
+ updateHandle(view, cell);
1937
+ }
1938
+ }
1939
+ }
1940
+ function handleMouseLeave(view) {
1941
+ if (!view.editable) return;
1942
+ const pluginState = columnResizingPluginKey.getState(view.state);
1943
+ if (pluginState && pluginState.activeHandle > -1 && !pluginState.dragging)
1944
+ updateHandle(view, -1);
1945
+ }
1946
+ function handleMouseDown2(view, event, cellMinWidth, defaultCellMinWidth) {
1947
+ var _a;
1948
+ if (!view.editable) return false;
1949
+ const win = (_a = view.dom.ownerDocument.defaultView) != null ? _a : window;
1950
+ const pluginState = columnResizingPluginKey.getState(view.state);
1951
+ if (!pluginState || pluginState.activeHandle == -1 || pluginState.dragging)
1952
+ return false;
1953
+ const cell = view.state.doc.nodeAt(pluginState.activeHandle);
1954
+ const width = currentColWidth(view, pluginState.activeHandle, cell.attrs);
1955
+ view.dispatch(
1956
+ view.state.tr.setMeta(columnResizingPluginKey, {
1957
+ setDragging: { startX: event.clientX, startWidth: width }
1958
+ })
1959
+ );
1960
+ function finish(event2) {
1961
+ win.removeEventListener("mouseup", finish);
1962
+ win.removeEventListener("mousemove", move);
1963
+ const pluginState2 = columnResizingPluginKey.getState(view.state);
1964
+ if (pluginState2 == null ? void 0 : pluginState2.dragging) {
1965
+ updateColumnWidth(
1966
+ view,
1967
+ pluginState2.activeHandle,
1968
+ draggedWidth(pluginState2.dragging, event2, cellMinWidth)
1969
+ );
1970
+ view.dispatch(
1971
+ view.state.tr.setMeta(columnResizingPluginKey, { setDragging: null })
1972
+ );
1973
+ }
1974
+ }
1975
+ function move(event2) {
1976
+ if (!event2.which) return finish(event2);
1977
+ const pluginState2 = columnResizingPluginKey.getState(view.state);
1978
+ if (!pluginState2) return;
1979
+ if (pluginState2.dragging) {
1980
+ const dragged = draggedWidth(pluginState2.dragging, event2, cellMinWidth);
1981
+ displayColumnWidth(
1982
+ view,
1983
+ pluginState2.activeHandle,
1984
+ dragged,
1985
+ defaultCellMinWidth
1986
+ );
1987
+ }
1988
+ }
1989
+ displayColumnWidth(
1990
+ view,
1991
+ pluginState.activeHandle,
1992
+ width,
1993
+ defaultCellMinWidth
1994
+ );
1995
+ win.addEventListener("mouseup", finish);
1996
+ win.addEventListener("mousemove", move);
1997
+ event.preventDefault();
1998
+ return true;
1999
+ }
2000
+ function currentColWidth(view, cellPos, { colspan, colwidth }) {
2001
+ const width = colwidth && colwidth[colwidth.length - 1];
2002
+ if (width) return width;
2003
+ const dom = view.domAtPos(cellPos);
2004
+ const node = dom.node.childNodes[dom.offset];
2005
+ let domWidth = node.offsetWidth, parts = colspan;
2006
+ if (colwidth) {
2007
+ for (let i = 0; i < colspan; i++)
2008
+ if (colwidth[i]) {
2009
+ domWidth -= colwidth[i];
2010
+ parts--;
2011
+ }
2012
+ }
2013
+ return domWidth / parts;
2014
+ }
2015
+ function domCellAround(target) {
2016
+ while (target && target.nodeName != "TD" && target.nodeName != "TH")
2017
+ target = target.classList && target.classList.contains("ProseMirror") ? null : target.parentNode;
2018
+ return target;
2019
+ }
2020
+ function edgeCell(view, event, side, handleWidth) {
2021
+ const offset = side == "right" ? -handleWidth : handleWidth;
2022
+ const found = view.posAtCoords({
2023
+ left: event.clientX + offset,
2024
+ top: event.clientY
2025
+ });
2026
+ if (!found) return -1;
2027
+ const { pos } = found;
2028
+ const $cell = cellAround(view.state.doc.resolve(pos));
2029
+ if (!$cell) return -1;
2030
+ if (side == "right") return $cell.pos;
2031
+ const map = TableMap.get($cell.node(-1)), start = $cell.start(-1);
2032
+ const index = map.map.indexOf($cell.pos - start);
2033
+ return index % map.width == 0 ? -1 : start + map.map[index - 1];
2034
+ }
2035
+ function draggedWidth(dragging, event, resizeMinWidth) {
2036
+ const offset = event.clientX - dragging.startX;
2037
+ return Math.max(resizeMinWidth, dragging.startWidth + offset);
2038
+ }
2039
+ function updateHandle(view, value) {
2040
+ view.dispatch(
2041
+ view.state.tr.setMeta(columnResizingPluginKey, { setHandle: value })
2042
+ );
2043
+ }
2044
+ function updateColumnWidth(view, cell, width) {
2045
+ const $cell = view.state.doc.resolve(cell);
2046
+ const table = $cell.node(-1), map = TableMap.get(table), start = $cell.start(-1);
2047
+ const col = map.colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
2048
+ const tr = view.state.tr;
2049
+ for (let row = 0; row < map.height; row++) {
2050
+ const mapIndex = row * map.width + col;
2051
+ if (row && map.map[mapIndex] == map.map[mapIndex - map.width]) continue;
2052
+ const pos = map.map[mapIndex];
2053
+ const attrs = table.nodeAt(pos).attrs;
2054
+ const index = attrs.colspan == 1 ? 0 : col - map.colCount(pos);
2055
+ if (attrs.colwidth && attrs.colwidth[index] == width) continue;
2056
+ const colwidth = attrs.colwidth ? attrs.colwidth.slice() : zeroes(attrs.colspan);
2057
+ colwidth[index] = width;
2058
+ tr.setNodeMarkup(start + pos, null, { ...attrs, colwidth });
2059
+ }
2060
+ if (tr.docChanged) view.dispatch(tr);
2061
+ }
2062
+ function displayColumnWidth(view, cell, width, defaultCellMinWidth) {
2063
+ const $cell = view.state.doc.resolve(cell);
2064
+ const table = $cell.node(-1), start = $cell.start(-1);
2065
+ const col = TableMap.get(table).colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
2066
+ let dom = view.domAtPos($cell.start(-1)).node;
2067
+ while (dom && dom.nodeName != "TABLE") {
2068
+ dom = dom.parentNode;
2069
+ }
2070
+ if (!dom) return;
2071
+ updateColumnsOnResize(
2072
+ table,
2073
+ dom.firstChild,
2074
+ dom,
2075
+ defaultCellMinWidth,
2076
+ col,
2077
+ width
2078
+ );
2079
+ }
2080
+ function zeroes(n) {
2081
+ return Array(n).fill(0);
2082
+ }
2083
+ function handleDecorations(state, cell) {
2084
+ var _a;
2085
+ const decorations = [];
2086
+ const $cell = state.doc.resolve(cell);
2087
+ const table = $cell.node(-1);
2088
+ if (!table) {
2089
+ return DecorationSet.empty;
2090
+ }
2091
+ const map = TableMap.get(table);
2092
+ const start = $cell.start(-1);
2093
+ const col = map.colCount($cell.pos - start) + $cell.nodeAfter.attrs.colspan - 1;
2094
+ for (let row = 0; row < map.height; row++) {
2095
+ const index = col + row * map.width;
2096
+ if ((col == map.width - 1 || map.map[index] != map.map[index + 1]) && (row == 0 || map.map[index] != map.map[index - map.width])) {
2097
+ const cellPos = map.map[index];
2098
+ const pos = start + cellPos + table.nodeAt(cellPos).nodeSize - 1;
2099
+ const dom = document.createElement("div");
2100
+ dom.className = "column-resize-handle";
2101
+ if ((_a = columnResizingPluginKey.getState(state)) == null ? void 0 : _a.dragging) {
2102
+ decorations.push(
2103
+ Decoration.node(
2104
+ start + cellPos,
2105
+ start + cellPos + table.nodeAt(cellPos).nodeSize,
2106
+ {
2107
+ class: "column-resize-dragging"
2108
+ }
2109
+ )
2110
+ );
2111
+ }
2112
+ decorations.push(Decoration.widget(pos, dom));
2113
+ }
2114
+ }
2115
+ return DecorationSet.create(state.doc, decorations);
2116
+ }
2117
+
2118
+ // src/index.ts
2119
+ function tableEditing({
2120
+ allowTableNodeSelection = false
2121
+ } = {}) {
2122
+ return new Plugin({
2123
+ key: tableEditingKey,
2124
+ // This piece of state is used to remember when a mouse-drag
2125
+ // cell-selection is happening, so that it can continue even as
2126
+ // transactions (which might move its anchor cell) come in.
2127
+ state: {
2128
+ init() {
2129
+ return null;
2130
+ },
2131
+ apply(tr, cur) {
2132
+ const set = tr.getMeta(tableEditingKey);
2133
+ if (set != null) return set == -1 ? null : set;
2134
+ if (cur == null || !tr.docChanged) return cur;
2135
+ const { deleted, pos } = tr.mapping.mapResult(cur);
2136
+ return deleted ? null : pos;
2137
+ }
2138
+ },
2139
+ props: {
2140
+ decorations: drawCellSelection,
2141
+ handleDOMEvents: {
2142
+ mousedown: handleMouseDown
2143
+ },
2144
+ createSelectionBetween(view) {
2145
+ return tableEditingKey.getState(view.state) != null ? view.state.selection : null;
2146
+ },
2147
+ handleTripleClick,
2148
+ handleKeyDown,
2149
+ handlePaste
2150
+ },
2151
+ appendTransaction(_, oldState, state) {
2152
+ return normalizeSelection(
2153
+ state,
2154
+ fixTables(state, oldState),
2155
+ allowTableNodeSelection
2156
+ );
2157
+ }
2158
+ });
2159
+ }
2160
+
2161
+ export { CellBookmark, CellSelection, ResizeState, TableMap, TableView, clipCells as __clipCells, insertCells as __insertCells, pastedCells as __pastedCells, addColSpan, addColumn, addColumnAfter, addColumnBefore, addRow, addRowAfter, addRowBefore, cellAround, cellNear, columnIsHeader, columnResizing, columnResizingPluginKey, deleteCellSelection, deleteColumn, deleteRow, deleteTable, fixTables, fixTablesKey, goToNextCell, handlePaste, inSameTable, isInTable, mergeCells, moveCellForward, nextCell, pointsAtCell, removeColSpan, removeColumn, removeRow, rowIsHeader, selectedRect, selectionCell, setCellAttr, splitCell, splitCellWithType, tableEditing, tableEditingKey, tableNodeTypes, toggleHeader, toggleHeaderCell, updateColumnsOnResize };