@ecomcx/ecomweb-editor 0.0.0-stage → 1.17.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 (724) hide show
  1. package/README.md +107 -2
  2. package/node_modules/@floating-ui/core/LICENSE +20 -0
  3. package/node_modules/@floating-ui/core/README.md +4 -0
  4. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs +1 -0
  5. package/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs +1164 -0
  6. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
  7. package/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
  8. package/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js +1038 -0
  9. package/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
  10. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js +1183 -0
  11. package/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js +1 -0
  12. package/node_modules/@floating-ui/core/package.json +63 -0
  13. package/node_modules/@floating-ui/dom/LICENSE +20 -0
  14. package/node_modules/@floating-ui/dom/README.md +4 -0
  15. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs +1 -0
  16. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs +964 -0
  17. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts +362 -0
  18. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts +362 -0
  19. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js +789 -0
  20. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
  21. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js +983 -0
  22. package/node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.min.js +1 -0
  23. package/node_modules/@floating-ui/dom/package.json +72 -0
  24. package/node_modules/@floating-ui/utils/LICENSE +20 -0
  25. package/node_modules/@floating-ui/utils/README.md +4 -0
  26. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
  27. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
  28. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  29. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  30. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.esm.js +165 -0
  31. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  32. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.js +192 -0
  33. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.umd.min.js +1 -0
  34. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.esm.js +136 -0
  35. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  36. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.js +167 -0
  37. package/node_modules/@floating-ui/utils/dist/floating-ui.utils.umd.min.js +1 -0
  38. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  39. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.esm.js +165 -0
  40. package/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.umd.js +192 -0
  41. package/node_modules/@floating-ui/utils/dom/package.json +6 -0
  42. package/node_modules/@floating-ui/utils/package.json +70 -0
  43. package/node_modules/@tiptap/core/LICENSE.md +21 -0
  44. package/node_modules/@tiptap/core/README.md +18 -0
  45. package/node_modules/@tiptap/core/dist/index.cjs +8463 -0
  46. package/node_modules/@tiptap/core/dist/index.d.cts +5798 -0
  47. package/node_modules/@tiptap/core/dist/index.d.ts +5797 -0
  48. package/node_modules/@tiptap/core/dist/index.js +8288 -0
  49. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +70 -0
  50. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.cts +28 -0
  51. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.d.ts +28 -0
  52. package/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +64 -0
  53. package/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  54. package/node_modules/@tiptap/core/jsx-dev-runtime/index.cjs +1 -0
  55. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.cts +1 -0
  56. package/node_modules/@tiptap/core/jsx-dev-runtime/index.d.ts +1 -0
  57. package/node_modules/@tiptap/core/jsx-dev-runtime/index.js +1 -0
  58. package/node_modules/@tiptap/core/jsx-runtime/index.cjs +1 -0
  59. package/node_modules/@tiptap/core/jsx-runtime/index.d.cts +1 -0
  60. package/node_modules/@tiptap/core/jsx-runtime/index.d.ts +1 -0
  61. package/node_modules/@tiptap/core/jsx-runtime/index.js +1 -0
  62. package/node_modules/@tiptap/core/package.json +74 -0
  63. package/node_modules/@tiptap/extension-blockquote/LICENSE.md +21 -0
  64. package/node_modules/@tiptap/extension-blockquote/README.md +18 -0
  65. package/node_modules/@tiptap/extension-blockquote/dist/index.cjs +132 -0
  66. package/node_modules/@tiptap/extension-blockquote/dist/index.d.cts +40 -0
  67. package/node_modules/@tiptap/extension-blockquote/dist/index.d.ts +40 -0
  68. package/node_modules/@tiptap/extension-blockquote/dist/index.js +126 -0
  69. package/node_modules/@tiptap/extension-blockquote/package.json +52 -0
  70. package/node_modules/@tiptap/extension-bold/LICENSE.md +21 -0
  71. package/node_modules/@tiptap/extension-bold/README.md +18 -0
  72. package/node_modules/@tiptap/extension-bold/dist/index.cjs +117 -0
  73. package/node_modules/@tiptap/extension-bold/dist/index.d.cts +52 -0
  74. package/node_modules/@tiptap/extension-bold/dist/index.d.ts +52 -0
  75. package/node_modules/@tiptap/extension-bold/dist/index.js +108 -0
  76. package/node_modules/@tiptap/extension-bold/package.json +50 -0
  77. package/node_modules/@tiptap/extension-bubble-menu/LICENSE.md +21 -0
  78. package/node_modules/@tiptap/extension-bubble-menu/README.md +18 -0
  79. package/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +333 -0
  80. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.cts +170 -0
  81. package/node_modules/@tiptap/extension-bubble-menu/dist/index.d.ts +170 -0
  82. package/node_modules/@tiptap/extension-bubble-menu/dist/index.js +326 -0
  83. package/node_modules/@tiptap/extension-bubble-menu/package.json +56 -0
  84. package/node_modules/@tiptap/extension-bullet-list/LICENSE.md +21 -0
  85. package/node_modules/@tiptap/extension-bullet-list/README.md +18 -0
  86. package/node_modules/@tiptap/extension-bullet-list/dist/index.cjs +17 -0
  87. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.cts +2 -0
  88. package/node_modules/@tiptap/extension-bullet-list/dist/index.d.ts +2 -0
  89. package/node_modules/@tiptap/extension-bullet-list/dist/index.js +7 -0
  90. package/node_modules/@tiptap/extension-bullet-list/package.json +50 -0
  91. package/node_modules/@tiptap/extension-code/LICENSE.md +21 -0
  92. package/node_modules/@tiptap/extension-code/README.md +18 -0
  93. package/node_modules/@tiptap/extension-code/dist/index.cjs +136 -0
  94. package/node_modules/@tiptap/extension-code/dist/index.d.cts +60 -0
  95. package/node_modules/@tiptap/extension-code/dist/index.d.ts +60 -0
  96. package/node_modules/@tiptap/extension-code/dist/index.js +127 -0
  97. package/node_modules/@tiptap/extension-code/package.json +50 -0
  98. package/node_modules/@tiptap/extension-code-block/LICENSE.md +21 -0
  99. package/node_modules/@tiptap/extension-code-block/README.md +18 -0
  100. package/node_modules/@tiptap/extension-code-block/dist/index.cjs +255 -0
  101. package/node_modules/@tiptap/extension-code-block/dist/index.d.cts +84 -0
  102. package/node_modules/@tiptap/extension-code-block/dist/index.d.ts +84 -0
  103. package/node_modules/@tiptap/extension-code-block/dist/index.js +248 -0
  104. package/node_modules/@tiptap/extension-code-block/package.json +52 -0
  105. package/node_modules/@tiptap/extension-document/LICENSE.md +21 -0
  106. package/node_modules/@tiptap/extension-document/README.md +18 -0
  107. package/node_modules/@tiptap/extension-document/dist/index.cjs +26 -0
  108. package/node_modules/@tiptap/extension-document/dist/index.d.cts +10 -0
  109. package/node_modules/@tiptap/extension-document/dist/index.d.ts +10 -0
  110. package/node_modules/@tiptap/extension-document/dist/index.js +22 -0
  111. package/node_modules/@tiptap/extension-document/package.json +50 -0
  112. package/node_modules/@tiptap/extension-dropcursor/LICENSE.md +21 -0
  113. package/node_modules/@tiptap/extension-dropcursor/README.md +18 -0
  114. package/node_modules/@tiptap/extension-dropcursor/dist/index.cjs +17 -0
  115. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.cts +2 -0
  116. package/node_modules/@tiptap/extension-dropcursor/dist/index.d.ts +2 -0
  117. package/node_modules/@tiptap/extension-dropcursor/dist/index.js +7 -0
  118. package/node_modules/@tiptap/extension-dropcursor/package.json +50 -0
  119. package/node_modules/@tiptap/extension-floating-menu/LICENSE.md +21 -0
  120. package/node_modules/@tiptap/extension-floating-menu/README.md +18 -0
  121. package/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +272 -0
  122. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.cts +180 -0
  123. package/node_modules/@tiptap/extension-floating-menu/dist/index.d.ts +180 -0
  124. package/node_modules/@tiptap/extension-floating-menu/dist/index.js +265 -0
  125. package/node_modules/@tiptap/extension-floating-menu/package.json +55 -0
  126. package/node_modules/@tiptap/extension-gapcursor/LICENSE.md +21 -0
  127. package/node_modules/@tiptap/extension-gapcursor/README.md +18 -0
  128. package/node_modules/@tiptap/extension-gapcursor/dist/index.cjs +17 -0
  129. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.cts +2 -0
  130. package/node_modules/@tiptap/extension-gapcursor/dist/index.d.ts +2 -0
  131. package/node_modules/@tiptap/extension-gapcursor/dist/index.js +7 -0
  132. package/node_modules/@tiptap/extension-gapcursor/package.json +50 -0
  133. package/node_modules/@tiptap/extension-hard-break/LICENSE.md +21 -0
  134. package/node_modules/@tiptap/extension-hard-break/README.md +18 -0
  135. package/node_modules/@tiptap/extension-hard-break/dist/index.cjs +69 -0
  136. package/node_modules/@tiptap/extension-hard-break/dist/index.d.cts +35 -0
  137. package/node_modules/@tiptap/extension-hard-break/dist/index.d.ts +35 -0
  138. package/node_modules/@tiptap/extension-hard-break/dist/index.js +64 -0
  139. package/node_modules/@tiptap/extension-hard-break/package.json +50 -0
  140. package/node_modules/@tiptap/extension-heading/LICENSE.md +21 -0
  141. package/node_modules/@tiptap/extension-heading/README.md +18 -0
  142. package/node_modules/@tiptap/extension-heading/dist/index.cjs +93 -0
  143. package/node_modules/@tiptap/extension-heading/dist/index.d.cts +50 -0
  144. package/node_modules/@tiptap/extension-heading/dist/index.d.ts +50 -0
  145. package/node_modules/@tiptap/extension-heading/dist/index.js +88 -0
  146. package/node_modules/@tiptap/extension-heading/package.json +50 -0
  147. package/node_modules/@tiptap/extension-highlight/LICENSE.md +21 -0
  148. package/node_modules/@tiptap/extension-highlight/README.md +18 -0
  149. package/node_modules/@tiptap/extension-highlight/dist/index.cjs +113 -0
  150. package/node_modules/@tiptap/extension-highlight/dist/index.d.cts +59 -0
  151. package/node_modules/@tiptap/extension-highlight/dist/index.d.ts +59 -0
  152. package/node_modules/@tiptap/extension-highlight/dist/index.js +106 -0
  153. package/node_modules/@tiptap/extension-highlight/package.json +50 -0
  154. package/node_modules/@tiptap/extension-horizontal-rule/LICENSE.md +21 -0
  155. package/node_modules/@tiptap/extension-horizontal-rule/README.md +18 -0
  156. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +78 -0
  157. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.cts +35 -0
  158. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.d.ts +35 -0
  159. package/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +73 -0
  160. package/node_modules/@tiptap/extension-horizontal-rule/package.json +52 -0
  161. package/node_modules/@tiptap/extension-image/LICENSE.md +21 -0
  162. package/node_modules/@tiptap/extension-image/README.md +18 -0
  163. package/node_modules/@tiptap/extension-image/dist/index.cjs +181 -0
  164. package/node_modules/@tiptap/extension-image/dist/index.d.cts +69 -0
  165. package/node_modules/@tiptap/extension-image/dist/index.d.ts +69 -0
  166. package/node_modules/@tiptap/extension-image/dist/index.js +175 -0
  167. package/node_modules/@tiptap/extension-image/package.json +50 -0
  168. package/node_modules/@tiptap/extension-italic/LICENSE.md +21 -0
  169. package/node_modules/@tiptap/extension-italic/README.md +18 -0
  170. package/node_modules/@tiptap/extension-italic/dist/index.cjs +113 -0
  171. package/node_modules/@tiptap/extension-italic/dist/index.d.cts +55 -0
  172. package/node_modules/@tiptap/extension-italic/dist/index.d.ts +55 -0
  173. package/node_modules/@tiptap/extension-italic/dist/index.js +104 -0
  174. package/node_modules/@tiptap/extension-italic/package.json +50 -0
  175. package/node_modules/@tiptap/extension-link/LICENSE.md +21 -0
  176. package/node_modules/@tiptap/extension-link/README.md +18 -0
  177. package/node_modules/@tiptap/extension-link/dist/index.cjs +560 -0
  178. package/node_modules/@tiptap/extension-link/dist/index.d.cts +159 -0
  179. package/node_modules/@tiptap/extension-link/dist/index.d.ts +159 -0
  180. package/node_modules/@tiptap/extension-link/dist/index.js +553 -0
  181. package/node_modules/@tiptap/extension-link/package.json +56 -0
  182. package/node_modules/@tiptap/extension-list/LICENSE.md +21 -0
  183. package/node_modules/@tiptap/extension-list/README.md +18 -0
  184. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.cjs +84 -0
  185. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.cts +52 -0
  186. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.d.ts +52 -0
  187. package/node_modules/@tiptap/extension-list/dist/bullet-list/index.js +82 -0
  188. package/node_modules/@tiptap/extension-list/dist/index.cjs +1570 -0
  189. package/node_modules/@tiptap/extension-list/dist/index.d.cts +391 -0
  190. package/node_modules/@tiptap/extension-list/dist/index.d.ts +390 -0
  191. package/node_modules/@tiptap/extension-list/dist/index.js +1533 -0
  192. package/node_modules/@tiptap/extension-list/dist/item/index.cjs +308 -0
  193. package/node_modules/@tiptap/extension-list/dist/item/index.d.cts +30 -0
  194. package/node_modules/@tiptap/extension-list/dist/item/index.d.ts +30 -0
  195. package/node_modules/@tiptap/extension-list/dist/item/index.js +307 -0
  196. package/node_modules/@tiptap/extension-list/dist/keymap/index.cjs +263 -0
  197. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.cts +66 -0
  198. package/node_modules/@tiptap/extension-list/dist/keymap/index.d.ts +65 -0
  199. package/node_modules/@tiptap/extension-list/dist/keymap/index.js +245 -0
  200. package/node_modules/@tiptap/extension-list/dist/keymap/rolldown-runtime-D7D4PA-g.js +13 -0
  201. package/node_modules/@tiptap/extension-list/dist/kit/index.cjs +1487 -0
  202. package/node_modules/@tiptap/extension-list/dist/kit/index.d.cts +235 -0
  203. package/node_modules/@tiptap/extension-list/dist/kit/index.d.ts +235 -0
  204. package/node_modules/@tiptap/extension-list/dist/kit/index.js +1486 -0
  205. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.cjs +671 -0
  206. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.cts +120 -0
  207. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.d.ts +120 -0
  208. package/node_modules/@tiptap/extension-list/dist/ordered-list/index.js +659 -0
  209. package/node_modules/@tiptap/extension-list/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  210. package/node_modules/@tiptap/extension-list/dist/task-item/index.cjs +327 -0
  211. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.cts +69 -0
  212. package/node_modules/@tiptap/extension-list/dist/task-item/index.d.ts +69 -0
  213. package/node_modules/@tiptap/extension-list/dist/task-item/index.js +325 -0
  214. package/node_modules/@tiptap/extension-list/dist/task-list/index.cjs +121 -0
  215. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.cts +35 -0
  216. package/node_modules/@tiptap/extension-list/dist/task-list/index.d.ts +35 -0
  217. package/node_modules/@tiptap/extension-list/dist/task-list/index.js +120 -0
  218. package/node_modules/@tiptap/extension-list/package.json +108 -0
  219. package/node_modules/@tiptap/extension-list-item/LICENSE.md +21 -0
  220. package/node_modules/@tiptap/extension-list-item/README.md +18 -0
  221. package/node_modules/@tiptap/extension-list-item/dist/index.cjs +17 -0
  222. package/node_modules/@tiptap/extension-list-item/dist/index.d.cts +2 -0
  223. package/node_modules/@tiptap/extension-list-item/dist/index.d.ts +2 -0
  224. package/node_modules/@tiptap/extension-list-item/dist/index.js +7 -0
  225. package/node_modules/@tiptap/extension-list-item/package.json +50 -0
  226. package/node_modules/@tiptap/extension-list-keymap/LICENSE.md +21 -0
  227. package/node_modules/@tiptap/extension-list-keymap/README.md +18 -0
  228. package/node_modules/@tiptap/extension-list-keymap/dist/index.cjs +23 -0
  229. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.cts +2 -0
  230. package/node_modules/@tiptap/extension-list-keymap/dist/index.d.ts +2 -0
  231. package/node_modules/@tiptap/extension-list-keymap/dist/index.js +7 -0
  232. package/node_modules/@tiptap/extension-list-keymap/package.json +50 -0
  233. package/node_modules/@tiptap/extension-ordered-list/LICENSE.md +21 -0
  234. package/node_modules/@tiptap/extension-ordered-list/README.md +18 -0
  235. package/node_modules/@tiptap/extension-ordered-list/dist/index.cjs +17 -0
  236. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.cts +2 -0
  237. package/node_modules/@tiptap/extension-ordered-list/dist/index.d.ts +2 -0
  238. package/node_modules/@tiptap/extension-ordered-list/dist/index.js +7 -0
  239. package/node_modules/@tiptap/extension-ordered-list/package.json +50 -0
  240. package/node_modules/@tiptap/extension-paragraph/LICENSE.md +21 -0
  241. package/node_modules/@tiptap/extension-paragraph/README.md +18 -0
  242. package/node_modules/@tiptap/extension-paragraph/dist/index.cjs +73 -0
  243. package/node_modules/@tiptap/extension-paragraph/dist/index.d.cts +29 -0
  244. package/node_modules/@tiptap/extension-paragraph/dist/index.d.ts +29 -0
  245. package/node_modules/@tiptap/extension-paragraph/dist/index.js +68 -0
  246. package/node_modules/@tiptap/extension-paragraph/package.json +50 -0
  247. package/node_modules/@tiptap/extension-strike/LICENSE.md +21 -0
  248. package/node_modules/@tiptap/extension-strike/README.md +18 -0
  249. package/node_modules/@tiptap/extension-strike/dist/index.cjs +88 -0
  250. package/node_modules/@tiptap/extension-strike/dist/index.d.cts +47 -0
  251. package/node_modules/@tiptap/extension-strike/dist/index.d.ts +47 -0
  252. package/node_modules/@tiptap/extension-strike/dist/index.js +81 -0
  253. package/node_modules/@tiptap/extension-strike/package.json +50 -0
  254. package/node_modules/@tiptap/extension-subscript/LICENSE.md +21 -0
  255. package/node_modules/@tiptap/extension-subscript/README.md +18 -0
  256. package/node_modules/@tiptap/extension-subscript/dist/index.cjs +56 -0
  257. package/node_modules/@tiptap/extension-subscript/dist/index.d.cts +39 -0
  258. package/node_modules/@tiptap/extension-subscript/dist/index.d.ts +39 -0
  259. package/node_modules/@tiptap/extension-subscript/dist/index.js +51 -0
  260. package/node_modules/@tiptap/extension-subscript/package.json +52 -0
  261. package/node_modules/@tiptap/extension-superscript/LICENSE.md +21 -0
  262. package/node_modules/@tiptap/extension-superscript/README.md +18 -0
  263. package/node_modules/@tiptap/extension-superscript/dist/index.cjs +56 -0
  264. package/node_modules/@tiptap/extension-superscript/dist/index.d.cts +39 -0
  265. package/node_modules/@tiptap/extension-superscript/dist/index.d.ts +39 -0
  266. package/node_modules/@tiptap/extension-superscript/dist/index.js +51 -0
  267. package/node_modules/@tiptap/extension-superscript/package.json +52 -0
  268. package/node_modules/@tiptap/extension-table/LICENSE.md +21 -0
  269. package/node_modules/@tiptap/extension-table/README.md +18 -0
  270. package/node_modules/@tiptap/extension-table/dist/cell/index.cjs +142 -0
  271. package/node_modules/@tiptap/extension-table/dist/cell/index.d.cts +35 -0
  272. package/node_modules/@tiptap/extension-table/dist/cell/index.d.ts +35 -0
  273. package/node_modules/@tiptap/extension-table/dist/cell/index.js +141 -0
  274. package/node_modules/@tiptap/extension-table/dist/header/index.cjs +142 -0
  275. package/node_modules/@tiptap/extension-table/dist/header/index.d.cts +35 -0
  276. package/node_modules/@tiptap/extension-table/dist/header/index.d.ts +35 -0
  277. package/node_modules/@tiptap/extension-table/dist/header/index.js +141 -0
  278. package/node_modules/@tiptap/extension-table/dist/index.cjs +832 -0
  279. package/node_modules/@tiptap/extension-table/dist/index.d.cts +344 -0
  280. package/node_modules/@tiptap/extension-table/dist/index.d.ts +344 -0
  281. package/node_modules/@tiptap/extension-table/dist/index.js +819 -0
  282. package/node_modules/@tiptap/extension-table/dist/kit/index.cjs +817 -0
  283. package/node_modules/@tiptap/extension-table/dist/kit/index.d.cts +265 -0
  284. package/node_modules/@tiptap/extension-table/dist/kit/index.d.ts +265 -0
  285. package/node_modules/@tiptap/extension-table/dist/kit/index.js +816 -0
  286. package/node_modules/@tiptap/extension-table/dist/row/index.cjs +29 -0
  287. package/node_modules/@tiptap/extension-table/dist/row/index.d.cts +35 -0
  288. package/node_modules/@tiptap/extension-table/dist/row/index.d.ts +35 -0
  289. package/node_modules/@tiptap/extension-table/dist/row/index.js +28 -0
  290. package/node_modules/@tiptap/extension-table/dist/table/index.cjs +616 -0
  291. package/node_modules/@tiptap/extension-table/dist/table/index.d.cts +254 -0
  292. package/node_modules/@tiptap/extension-table/dist/table/index.d.ts +254 -0
  293. package/node_modules/@tiptap/extension-table/dist/table/index.js +609 -0
  294. package/node_modules/@tiptap/extension-table/package.json +92 -0
  295. package/node_modules/@tiptap/extension-text/LICENSE.md +21 -0
  296. package/node_modules/@tiptap/extension-text/README.md +18 -0
  297. package/node_modules/@tiptap/extension-text/dist/index.cjs +28 -0
  298. package/node_modules/@tiptap/extension-text/dist/index.d.cts +10 -0
  299. package/node_modules/@tiptap/extension-text/dist/index.d.ts +10 -0
  300. package/node_modules/@tiptap/extension-text/dist/index.js +24 -0
  301. package/node_modules/@tiptap/extension-text/package.json +50 -0
  302. package/node_modules/@tiptap/extension-text-align/LICENSE.md +21 -0
  303. package/node_modules/@tiptap/extension-text-align/README.md +18 -0
  304. package/node_modules/@tiptap/extension-text-align/dist/index.cjs +73 -0
  305. package/node_modules/@tiptap/extension-text-align/dist/index.d.cts +53 -0
  306. package/node_modules/@tiptap/extension-text-align/dist/index.d.ts +53 -0
  307. package/node_modules/@tiptap/extension-text-align/dist/index.js +68 -0
  308. package/node_modules/@tiptap/extension-text-align/package.json +50 -0
  309. package/node_modules/@tiptap/extension-text-style/LICENSE.md +21 -0
  310. package/node_modules/@tiptap/extension-text-style/README.md +18 -0
  311. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.cjs +121 -0
  312. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.cts +161 -0
  313. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.d.ts +161 -0
  314. package/node_modules/@tiptap/extension-text-style/dist/background-color/index.js +116 -0
  315. package/node_modules/@tiptap/extension-text-style/dist/color/index.cjs +121 -0
  316. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.cts +161 -0
  317. package/node_modules/@tiptap/extension-text-style/dist/color/index.d.ts +161 -0
  318. package/node_modules/@tiptap/extension-text-style/dist/color/index.js +116 -0
  319. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.cjs +120 -0
  320. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.cts +161 -0
  321. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.d.ts +161 -0
  322. package/node_modules/@tiptap/extension-text-style/dist/font-family/index.js +115 -0
  323. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.cjs +120 -0
  324. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.cts +161 -0
  325. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.d.ts +161 -0
  326. package/node_modules/@tiptap/extension-text-style/dist/font-size/index.js +115 -0
  327. package/node_modules/@tiptap/extension-text-style/dist/index.cjs +298 -0
  328. package/node_modules/@tiptap/extension-text-style/dist/index.d.cts +275 -0
  329. package/node_modules/@tiptap/extension-text-style/dist/index.d.ts +275 -0
  330. package/node_modules/@tiptap/extension-text-style/dist/index.js +291 -0
  331. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.cjs +120 -0
  332. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.cts +161 -0
  333. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.d.ts +161 -0
  334. package/node_modules/@tiptap/extension-text-style/dist/line-height/index.js +115 -0
  335. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.cjs +80 -0
  336. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.cts +170 -0
  337. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.d.ts +170 -0
  338. package/node_modules/@tiptap/extension-text-style/dist/text-style/index.js +79 -0
  339. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.cjs +292 -0
  340. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.cts +244 -0
  341. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.d.ts +244 -0
  342. package/node_modules/@tiptap/extension-text-style/dist/text-style-kit/index.js +291 -0
  343. package/node_modules/@tiptap/extension-text-style/package.json +106 -0
  344. package/node_modules/@tiptap/extension-underline/LICENSE.md +21 -0
  345. package/node_modules/@tiptap/extension-underline/README.md +18 -0
  346. package/node_modules/@tiptap/extension-underline/dist/index.cjs +81 -0
  347. package/node_modules/@tiptap/extension-underline/dist/index.d.cts +39 -0
  348. package/node_modules/@tiptap/extension-underline/dist/index.d.ts +39 -0
  349. package/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
  350. package/node_modules/@tiptap/extension-underline/package.json +50 -0
  351. package/node_modules/@tiptap/extension-youtube/LICENSE.md +21 -0
  352. package/node_modules/@tiptap/extension-youtube/README.md +18 -0
  353. package/node_modules/@tiptap/extension-youtube/dist/index.cjs +254 -0
  354. package/node_modules/@tiptap/extension-youtube/dist/index.d.cts +204 -0
  355. package/node_modules/@tiptap/extension-youtube/dist/index.d.ts +204 -0
  356. package/node_modules/@tiptap/extension-youtube/dist/index.js +246 -0
  357. package/node_modules/@tiptap/extension-youtube/package.json +50 -0
  358. package/node_modules/@tiptap/extensions/LICENSE.md +21 -0
  359. package/node_modules/@tiptap/extensions/README.md +18 -0
  360. package/node_modules/@tiptap/extensions/dist/character-count/index.cjs +87 -0
  361. package/node_modules/@tiptap/extensions/dist/character-count/index.d.cts +70 -0
  362. package/node_modules/@tiptap/extensions/dist/character-count/index.d.ts +70 -0
  363. package/node_modules/@tiptap/extensions/dist/character-count/index.js +86 -0
  364. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.cjs +27 -0
  365. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.cts +32 -0
  366. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.d.ts +32 -0
  367. package/node_modules/@tiptap/extensions/dist/drop-cursor/index.js +26 -0
  368. package/node_modules/@tiptap/extensions/dist/focus/index.cjs +48 -0
  369. package/node_modules/@tiptap/extensions/dist/focus/index.d.cts +29 -0
  370. package/node_modules/@tiptap/extensions/dist/focus/index.d.ts +29 -0
  371. package/node_modules/@tiptap/extensions/dist/focus/index.js +47 -0
  372. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.cjs +29 -0
  373. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.cts +26 -0
  374. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.d.ts +26 -0
  375. package/node_modules/@tiptap/extensions/dist/gap-cursor/index.js +28 -0
  376. package/node_modules/@tiptap/extensions/dist/index.cjs +711 -0
  377. package/node_modules/@tiptap/extensions/dist/index.d.cts +321 -0
  378. package/node_modules/@tiptap/extensions/dist/index.d.ts +321 -0
  379. package/node_modules/@tiptap/extensions/dist/index.js +699 -0
  380. package/node_modules/@tiptap/extensions/dist/placeholder/index.cjs +372 -0
  381. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.cts +91 -0
  382. package/node_modules/@tiptap/extensions/dist/placeholder/index.d.ts +91 -0
  383. package/node_modules/@tiptap/extensions/dist/placeholder/index.js +368 -0
  384. package/node_modules/@tiptap/extensions/dist/selection/index.cjs +72 -0
  385. package/node_modules/@tiptap/extensions/dist/selection/index.d.cts +20 -0
  386. package/node_modules/@tiptap/extensions/dist/selection/index.d.ts +20 -0
  387. package/node_modules/@tiptap/extensions/dist/selection/index.js +71 -0
  388. package/node_modules/@tiptap/extensions/dist/trailing-node/index.cjs +62 -0
  389. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.cts +30 -0
  390. package/node_modules/@tiptap/extensions/dist/trailing-node/index.d.ts +30 -0
  391. package/node_modules/@tiptap/extensions/dist/trailing-node/index.js +60 -0
  392. package/node_modules/@tiptap/extensions/dist/undo-redo/index.cjs +48 -0
  393. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.cts +45 -0
  394. package/node_modules/@tiptap/extensions/dist/undo-redo/index.d.ts +45 -0
  395. package/node_modules/@tiptap/extensions/dist/undo-redo/index.js +47 -0
  396. package/node_modules/@tiptap/extensions/package.json +116 -0
  397. package/node_modules/@tiptap/pm/LICENSE +21 -0
  398. package/node_modules/@tiptap/pm/README.md +22 -0
  399. package/node_modules/@tiptap/pm/THIRD_PARTY_LICENSES.md +47 -0
  400. package/node_modules/@tiptap/pm/changeset/index.ts +1 -0
  401. package/node_modules/@tiptap/pm/commands/index.ts +1 -0
  402. package/node_modules/@tiptap/pm/dist/changeset/index.cjs +9 -0
  403. package/node_modules/@tiptap/pm/dist/changeset/index.d.cts +1 -0
  404. package/node_modules/@tiptap/pm/dist/changeset/index.d.ts +1 -0
  405. package/node_modules/@tiptap/pm/dist/changeset/index.js +2 -0
  406. package/node_modules/@tiptap/pm/dist/commands/index.cjs +9 -0
  407. package/node_modules/@tiptap/pm/dist/commands/index.d.cts +1 -0
  408. package/node_modules/@tiptap/pm/dist/commands/index.d.ts +1 -0
  409. package/node_modules/@tiptap/pm/dist/commands/index.js +2 -0
  410. package/node_modules/@tiptap/pm/dist/dropcursor/index.cjs +9 -0
  411. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.cts +1 -0
  412. package/node_modules/@tiptap/pm/dist/dropcursor/index.d.ts +1 -0
  413. package/node_modules/@tiptap/pm/dist/dropcursor/index.js +2 -0
  414. package/node_modules/@tiptap/pm/dist/gapcursor/index.cjs +9 -0
  415. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.cts +1 -0
  416. package/node_modules/@tiptap/pm/dist/gapcursor/index.d.ts +1 -0
  417. package/node_modules/@tiptap/pm/dist/gapcursor/index.js +2 -0
  418. package/node_modules/@tiptap/pm/dist/history/index.cjs +9 -0
  419. package/node_modules/@tiptap/pm/dist/history/index.d.cts +1 -0
  420. package/node_modules/@tiptap/pm/dist/history/index.d.ts +1 -0
  421. package/node_modules/@tiptap/pm/dist/history/index.js +2 -0
  422. package/node_modules/@tiptap/pm/dist/inputrules/index.cjs +9 -0
  423. package/node_modules/@tiptap/pm/dist/inputrules/index.d.cts +1 -0
  424. package/node_modules/@tiptap/pm/dist/inputrules/index.d.ts +1 -0
  425. package/node_modules/@tiptap/pm/dist/inputrules/index.js +2 -0
  426. package/node_modules/@tiptap/pm/dist/keymap/index.cjs +9 -0
  427. package/node_modules/@tiptap/pm/dist/keymap/index.d.cts +1 -0
  428. package/node_modules/@tiptap/pm/dist/keymap/index.d.ts +1 -0
  429. package/node_modules/@tiptap/pm/dist/keymap/index.js +2 -0
  430. package/node_modules/@tiptap/pm/dist/model/index.cjs +9 -0
  431. package/node_modules/@tiptap/pm/dist/model/index.d.cts +1 -0
  432. package/node_modules/@tiptap/pm/dist/model/index.d.ts +1 -0
  433. package/node_modules/@tiptap/pm/dist/model/index.js +2 -0
  434. package/node_modules/@tiptap/pm/dist/schema-list/index.cjs +9 -0
  435. package/node_modules/@tiptap/pm/dist/schema-list/index.d.cts +1 -0
  436. package/node_modules/@tiptap/pm/dist/schema-list/index.d.ts +1 -0
  437. package/node_modules/@tiptap/pm/dist/schema-list/index.js +2 -0
  438. package/node_modules/@tiptap/pm/dist/state/index.cjs +9 -0
  439. package/node_modules/@tiptap/pm/dist/state/index.d.cts +1 -0
  440. package/node_modules/@tiptap/pm/dist/state/index.d.ts +1 -0
  441. package/node_modules/@tiptap/pm/dist/state/index.js +2 -0
  442. package/node_modules/@tiptap/pm/dist/tables/index.cjs +9 -0
  443. package/node_modules/@tiptap/pm/dist/tables/index.d.cts +1 -0
  444. package/node_modules/@tiptap/pm/dist/tables/index.d.ts +1 -0
  445. package/node_modules/@tiptap/pm/dist/tables/index.js +2 -0
  446. package/node_modules/@tiptap/pm/dist/transform/index.cjs +9 -0
  447. package/node_modules/@tiptap/pm/dist/transform/index.d.cts +1 -0
  448. package/node_modules/@tiptap/pm/dist/transform/index.d.ts +1 -0
  449. package/node_modules/@tiptap/pm/dist/transform/index.js +2 -0
  450. package/node_modules/@tiptap/pm/dist/view/index.cjs +9 -0
  451. package/node_modules/@tiptap/pm/dist/view/index.d.cts +1 -0
  452. package/node_modules/@tiptap/pm/dist/view/index.d.ts +1 -0
  453. package/node_modules/@tiptap/pm/dist/view/index.js +2 -0
  454. package/node_modules/@tiptap/pm/dropcursor/index.ts +1 -0
  455. package/node_modules/@tiptap/pm/gapcursor/index.ts +1 -0
  456. package/node_modules/@tiptap/pm/history/index.ts +1 -0
  457. package/node_modules/@tiptap/pm/inputrules/index.ts +1 -0
  458. package/node_modules/@tiptap/pm/keymap/index.ts +1 -0
  459. package/node_modules/@tiptap/pm/model/index.ts +1 -0
  460. package/node_modules/@tiptap/pm/package.json +166 -0
  461. package/node_modules/@tiptap/pm/schema-list/index.ts +1 -0
  462. package/node_modules/@tiptap/pm/state/index.ts +1 -0
  463. package/node_modules/@tiptap/pm/tables/index.ts +1 -0
  464. package/node_modules/@tiptap/pm/transform/index.ts +1 -0
  465. package/node_modules/@tiptap/pm/view/index.ts +1 -0
  466. package/node_modules/@tiptap/react/LICENSE.md +21 -0
  467. package/node_modules/@tiptap/react/README.md +18 -0
  468. package/node_modules/@tiptap/react/dist/index.cjs +1396 -0
  469. package/node_modules/@tiptap/react/dist/index.d.cts +632 -0
  470. package/node_modules/@tiptap/react/dist/index.d.ts +632 -0
  471. package/node_modules/@tiptap/react/dist/index.js +1337 -0
  472. package/node_modules/@tiptap/react/dist/menus/index.cjs +469 -0
  473. package/node_modules/@tiptap/react/dist/menus/index.d.cts +21 -0
  474. package/node_modules/@tiptap/react/dist/menus/index.d.ts +21 -0
  475. package/node_modules/@tiptap/react/dist/menus/index.js +444 -0
  476. package/node_modules/@tiptap/react/package.json +80 -0
  477. package/node_modules/@tiptap/starter-kit/LICENSE.md +21 -0
  478. package/node_modules/@tiptap/starter-kit/README.md +18 -0
  479. package/node_modules/@tiptap/starter-kit/dist/index.cjs +76 -0
  480. package/node_modules/@tiptap/starter-kit/dist/index.d.cts +137 -0
  481. package/node_modules/@tiptap/starter-kit/dist/index.d.ts +137 -0
  482. package/node_modules/@tiptap/starter-kit/dist/index.js +71 -0
  483. package/node_modules/@tiptap/starter-kit/package.json +70 -0
  484. package/node_modules/@tiptap/suggestion/LICENSE.md +21 -0
  485. package/node_modules/@tiptap/suggestion/README.md +18 -0
  486. package/node_modules/@tiptap/suggestion/dist/index.cjs +665 -0
  487. package/node_modules/@tiptap/suggestion/dist/index.d.cts +419 -0
  488. package/node_modules/@tiptap/suggestion/dist/index.d.ts +419 -0
  489. package/node_modules/@tiptap/suggestion/dist/index.js +657 -0
  490. package/node_modules/@tiptap/suggestion/package.json +54 -0
  491. package/node_modules/@types/use-sync-external-store/LICENSE +21 -0
  492. package/node_modules/@types/use-sync-external-store/README.md +15 -0
  493. package/node_modules/@types/use-sync-external-store/index.d.ts +5 -0
  494. package/node_modules/@types/use-sync-external-store/package.json +30 -0
  495. package/node_modules/@types/use-sync-external-store/shim/index.d.ts +1 -0
  496. package/node_modules/@types/use-sync-external-store/shim/with-selector.d.ts +1 -0
  497. package/node_modules/@types/use-sync-external-store/with-selector.d.ts +7 -0
  498. package/node_modules/fast-equals/LICENSE +21 -0
  499. package/node_modules/fast-equals/README.md +479 -0
  500. package/node_modules/fast-equals/dist/cjs/index.cjs +796 -0
  501. package/node_modules/fast-equals/dist/cjs/index.d.cts +211 -0
  502. package/node_modules/fast-equals/dist/es/index.d.mts +211 -0
  503. package/node_modules/fast-equals/dist/es/index.mjs +785 -0
  504. package/node_modules/fast-equals/dist/umd/index.d.ts +211 -0
  505. package/node_modules/fast-equals/dist/umd/index.js +802 -0
  506. package/node_modules/fast-equals/index.d.ts +211 -0
  507. package/node_modules/fast-equals/package.json +120 -0
  508. package/node_modules/linkifyjs/LICENSE +19 -0
  509. package/node_modules/linkifyjs/README.md +47 -0
  510. package/node_modules/linkifyjs/dist/linkify.cjs +1854 -0
  511. package/node_modules/linkifyjs/dist/linkify.d.cts +637 -0
  512. package/node_modules/linkifyjs/dist/linkify.d.mts +637 -0
  513. package/node_modules/linkifyjs/dist/linkify.js +1859 -0
  514. package/node_modules/linkifyjs/dist/linkify.min.js +1 -0
  515. package/node_modules/linkifyjs/dist/linkify.mjs +1836 -0
  516. package/node_modules/linkifyjs/package.json +38 -0
  517. package/node_modules/orderedmap/LICENSE +19 -0
  518. package/node_modules/orderedmap/README.md +69 -0
  519. package/node_modules/orderedmap/dist/index.cjs +139 -0
  520. package/node_modules/orderedmap/dist/index.d.cts +33 -0
  521. package/node_modules/orderedmap/dist/index.d.ts +33 -0
  522. package/node_modules/orderedmap/dist/index.js +137 -0
  523. package/node_modules/orderedmap/package.json +39 -0
  524. package/node_modules/prosemirror-changeset/CHANGELOG.md +171 -0
  525. package/node_modules/prosemirror-changeset/LICENSE +19 -0
  526. package/node_modules/prosemirror-changeset/README.md +175 -0
  527. package/node_modules/prosemirror-changeset/dist/index.cjs +588 -0
  528. package/node_modules/prosemirror-changeset/dist/index.d.cts +187 -0
  529. package/node_modules/prosemirror-changeset/dist/index.d.ts +187 -0
  530. package/node_modules/prosemirror-changeset/dist/index.js +722 -0
  531. package/node_modules/prosemirror-changeset/package.json +40 -0
  532. package/node_modules/prosemirror-changeset/test/test-changed-range.ts +48 -0
  533. package/node_modules/prosemirror-changeset/test/test-changes.ts +211 -0
  534. package/node_modules/prosemirror-changeset/test/test-diff.ts +77 -0
  535. package/node_modules/prosemirror-changeset/test/test-merge.ts +56 -0
  536. package/node_modules/prosemirror-changeset/test/test-simplify.ts +74 -0
  537. package/node_modules/prosemirror-commands/.tern-project +8 -0
  538. package/node_modules/prosemirror-commands/CHANGELOG.md +328 -0
  539. package/node_modules/prosemirror-commands/CONTRIBUTING.md +104 -0
  540. package/node_modules/prosemirror-commands/LICENSE +19 -0
  541. package/node_modules/prosemirror-commands/README.md +28 -0
  542. package/node_modules/prosemirror-commands/dist/index.cjs +688 -0
  543. package/node_modules/prosemirror-commands/dist/index.d.cts +215 -0
  544. package/node_modules/prosemirror-commands/dist/index.d.ts +215 -0
  545. package/node_modules/prosemirror-commands/dist/index.js +852 -0
  546. package/node_modules/prosemirror-commands/package.json +39 -0
  547. package/node_modules/prosemirror-dropcursor/CHANGELOG.md +149 -0
  548. package/node_modules/prosemirror-dropcursor/CONTRIBUTING.md +104 -0
  549. package/node_modules/prosemirror-dropcursor/LICENSE +19 -0
  550. package/node_modules/prosemirror-dropcursor/README.md +50 -0
  551. package/node_modules/prosemirror-dropcursor/dist/index.cjs +200 -0
  552. package/node_modules/prosemirror-dropcursor/dist/index.d.cts +38 -0
  553. package/node_modules/prosemirror-dropcursor/dist/index.d.ts +38 -0
  554. package/node_modules/prosemirror-dropcursor/dist/index.js +163 -0
  555. package/node_modules/prosemirror-dropcursor/package.json +38 -0
  556. package/node_modules/prosemirror-gapcursor/CHANGELOG.md +122 -0
  557. package/node_modules/prosemirror-gapcursor/CONTRIBUTING.md +104 -0
  558. package/node_modules/prosemirror-gapcursor/LICENSE +19 -0
  559. package/node_modules/prosemirror-gapcursor/README.md +31 -0
  560. package/node_modules/prosemirror-gapcursor/dist/index.cjs +239 -0
  561. package/node_modules/prosemirror-gapcursor/dist/index.d.cts +31 -0
  562. package/node_modules/prosemirror-gapcursor/dist/index.d.ts +31 -0
  563. package/node_modules/prosemirror-gapcursor/dist/index.js +239 -0
  564. package/node_modules/prosemirror-gapcursor/package.json +43 -0
  565. package/node_modules/prosemirror-gapcursor/style/gapcursor.css +25 -0
  566. package/node_modules/prosemirror-history/.tern-project +8 -0
  567. package/node_modules/prosemirror-history/CHANGELOG.md +176 -0
  568. package/node_modules/prosemirror-history/CONTRIBUTING.md +104 -0
  569. package/node_modules/prosemirror-history/LICENSE +19 -0
  570. package/node_modules/prosemirror-history/README.md +27 -0
  571. package/node_modules/prosemirror-history/dist/index.cjs +383 -0
  572. package/node_modules/prosemirror-history/dist/index.d.cts +64 -0
  573. package/node_modules/prosemirror-history/dist/index.d.ts +64 -0
  574. package/node_modules/prosemirror-history/dist/index.js +454 -0
  575. package/node_modules/prosemirror-history/package.json +40 -0
  576. package/node_modules/prosemirror-inputrules/.tern-project +8 -0
  577. package/node_modules/prosemirror-inputrules/CHANGELOG.md +127 -0
  578. package/node_modules/prosemirror-inputrules/CONTRIBUTING.md +104 -0
  579. package/node_modules/prosemirror-inputrules/LICENSE +19 -0
  580. package/node_modules/prosemirror-inputrules/README.md +29 -0
  581. package/node_modules/prosemirror-inputrules/dist/index.cjs +194 -0
  582. package/node_modules/prosemirror-inputrules/dist/index.d.cts +131 -0
  583. package/node_modules/prosemirror-inputrules/dist/index.d.ts +131 -0
  584. package/node_modules/prosemirror-inputrules/dist/index.js +239 -0
  585. package/node_modules/prosemirror-inputrules/package.json +36 -0
  586. package/node_modules/prosemirror-keymap/.tern-project +8 -0
  587. package/node_modules/prosemirror-keymap/CHANGELOG.md +104 -0
  588. package/node_modules/prosemirror-keymap/CONTRIBUTING.md +104 -0
  589. package/node_modules/prosemirror-keymap/LICENSE +19 -0
  590. package/node_modules/prosemirror-keymap/README.md +27 -0
  591. package/node_modules/prosemirror-keymap/dist/index.cjs +65 -0
  592. package/node_modules/prosemirror-keymap/dist/index.d.cts +47 -0
  593. package/node_modules/prosemirror-keymap/dist/index.d.ts +47 -0
  594. package/node_modules/prosemirror-keymap/dist/index.js +128 -0
  595. package/node_modules/prosemirror-keymap/package.json +38 -0
  596. package/node_modules/prosemirror-model/.tern-project +8 -0
  597. package/node_modules/prosemirror-model/CHANGELOG.md +782 -0
  598. package/node_modules/prosemirror-model/CONTRIBUTING.md +104 -0
  599. package/node_modules/prosemirror-model/LICENSE +19 -0
  600. package/node_modules/prosemirror-model/README.md +29 -0
  601. package/node_modules/prosemirror-model/dist/index.cjs +2911 -0
  602. package/node_modules/prosemirror-model/dist/index.d.cts +1683 -0
  603. package/node_modules/prosemirror-model/dist/index.d.ts +1683 -0
  604. package/node_modules/prosemirror-model/dist/index.js +3463 -0
  605. package/node_modules/prosemirror-model/package.json +38 -0
  606. package/node_modules/prosemirror-schema-list/.tern-project +8 -0
  607. package/node_modules/prosemirror-schema-list/CHANGELOG.md +140 -0
  608. package/node_modules/prosemirror-schema-list/CONTRIBUTING.md +100 -0
  609. package/node_modules/prosemirror-schema-list/LICENSE +19 -0
  610. package/node_modules/prosemirror-schema-list/README.md +28 -0
  611. package/node_modules/prosemirror-schema-list/dist/index.cjs +253 -0
  612. package/node_modules/prosemirror-schema-list/dist/index.d.cts +71 -0
  613. package/node_modules/prosemirror-schema-list/dist/index.d.ts +71 -0
  614. package/node_modules/prosemirror-schema-list/dist/index.js +289 -0
  615. package/node_modules/prosemirror-schema-list/package.json +40 -0
  616. package/node_modules/prosemirror-state/.tern-project +8 -0
  617. package/node_modules/prosemirror-state/CHANGELOG.md +296 -0
  618. package/node_modules/prosemirror-state/CONTRIBUTING.md +104 -0
  619. package/node_modules/prosemirror-state/LICENSE +19 -0
  620. package/node_modules/prosemirror-state/README.md +28 -0
  621. package/node_modules/prosemirror-state/dist/index.cjs +884 -0
  622. package/node_modules/prosemirror-state/dist/index.d.cts +709 -0
  623. package/node_modules/prosemirror-state/dist/index.d.ts +709 -0
  624. package/node_modules/prosemirror-state/dist/index.js +1002 -0
  625. package/node_modules/prosemirror-state/package.json +39 -0
  626. package/node_modules/prosemirror-tables/LICENSE +19 -0
  627. package/node_modules/prosemirror-tables/README.md +254 -0
  628. package/node_modules/prosemirror-tables/dist/index.cjs +2683 -0
  629. package/node_modules/prosemirror-tables/dist/index.d.cts +751 -0
  630. package/node_modules/prosemirror-tables/dist/index.d.ts +751 -0
  631. package/node_modules/prosemirror-tables/dist/index.js +2626 -0
  632. package/node_modules/prosemirror-tables/package.json +80 -0
  633. package/node_modules/prosemirror-tables/style/tables.css +48 -0
  634. package/node_modules/prosemirror-transform/.tern-project +8 -0
  635. package/node_modules/prosemirror-transform/CHANGELOG.md +530 -0
  636. package/node_modules/prosemirror-transform/CONTRIBUTING.md +104 -0
  637. package/node_modules/prosemirror-transform/LICENSE +19 -0
  638. package/node_modules/prosemirror-transform/README.md +29 -0
  639. package/node_modules/prosemirror-transform/dist/index.cjs +2014 -0
  640. package/node_modules/prosemirror-transform/dist/index.d.cts +857 -0
  641. package/node_modules/prosemirror-transform/dist/index.d.ts +857 -0
  642. package/node_modules/prosemirror-transform/dist/index.js +2272 -0
  643. package/node_modules/prosemirror-transform/package.json +37 -0
  644. package/node_modules/prosemirror-view/.tern-project +8 -0
  645. package/node_modules/prosemirror-view/CHANGELOG.md +2543 -0
  646. package/node_modules/prosemirror-view/CONTRIBUTING.md +104 -0
  647. package/node_modules/prosemirror-view/LICENSE +19 -0
  648. package/node_modules/prosemirror-view/README.md +28 -0
  649. package/node_modules/prosemirror-view/dist/index.cjs +5549 -0
  650. package/node_modules/prosemirror-view/dist/index.d.cts +913 -0
  651. package/node_modules/prosemirror-view/dist/index.d.ts +913 -0
  652. package/node_modules/prosemirror-view/dist/index.js +6053 -0
  653. package/node_modules/prosemirror-view/package.json +43 -0
  654. package/node_modules/prosemirror-view/style/prosemirror.css +54 -0
  655. package/node_modules/rope-sequence/LICENSE +19 -0
  656. package/node_modules/rope-sequence/README.md +63 -0
  657. package/node_modules/rope-sequence/dist/index.cjs +209 -0
  658. package/node_modules/rope-sequence/dist/index.d.cts +11 -0
  659. package/node_modules/rope-sequence/dist/index.d.ts +11 -0
  660. package/node_modules/rope-sequence/dist/index.js +207 -0
  661. package/node_modules/rope-sequence/index.js +190 -0
  662. package/node_modules/rope-sequence/package.json +34 -0
  663. package/node_modules/rope-sequence/test.js +78 -0
  664. package/node_modules/use-sync-external-store/LICENSE +21 -0
  665. package/node_modules/use-sync-external-store/README.md +5 -0
  666. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +97 -0
  667. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +85 -0
  668. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +95 -0
  669. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.development.js +88 -0
  670. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.native.production.js +59 -0
  671. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +66 -0
  672. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +96 -0
  673. package/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +84 -0
  674. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js +27 -0
  675. package/node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js +13 -0
  676. package/node_modules/use-sync-external-store/index.js +7 -0
  677. package/node_modules/use-sync-external-store/package.json +43 -0
  678. package/node_modules/use-sync-external-store/shim/index.js +7 -0
  679. package/node_modules/use-sync-external-store/shim/index.native.js +7 -0
  680. package/node_modules/use-sync-external-store/shim/with-selector.js +7 -0
  681. package/node_modules/use-sync-external-store/with-selector.js +7 -0
  682. package/node_modules/w3c-keyname/.tern-port +1 -0
  683. package/node_modules/w3c-keyname/LICENSE +19 -0
  684. package/node_modules/w3c-keyname/README.md +18 -0
  685. package/node_modules/w3c-keyname/index.cjs +127 -0
  686. package/node_modules/w3c-keyname/index.d.cts +5 -0
  687. package/node_modules/w3c-keyname/index.d.ts +5 -0
  688. package/node_modules/w3c-keyname/index.js +119 -0
  689. package/node_modules/w3c-keyname/package.json +37 -0
  690. package/package.json +79 -4
  691. package/src/Editor.tsx +424 -0
  692. package/src/ask.tsx +154 -0
  693. package/src/basic.tsx +149 -0
  694. package/src/blockMeta.ts +42 -0
  695. package/src/blockops.ts +179 -0
  696. package/src/blocks.tsx +189 -0
  697. package/src/content.ts +22 -0
  698. package/src/dynamic.tsx +105 -0
  699. package/src/editor.css +345 -0
  700. package/src/extensions.ts +78 -0
  701. package/src/handle.tsx +186 -0
  702. package/src/handles.tsx +149 -0
  703. package/src/index.ts +29 -0
  704. package/src/insert.ts +9 -0
  705. package/src/inserter.tsx +163 -0
  706. package/src/inspector.tsx +237 -0
  707. package/src/labels.ts +135 -0
  708. package/src/layout.tsx +174 -0
  709. package/src/layoutUi.tsx +226 -0
  710. package/src/media.ts +31 -0
  711. package/src/nodes.tsx +107 -0
  712. package/src/outline.tsx +124 -0
  713. package/src/panels.ts +59 -0
  714. package/src/paste.ts +100 -0
  715. package/src/patterns.ts +129 -0
  716. package/src/rank.ts +22 -0
  717. package/src/registry.ts +20 -0
  718. package/src/styleattr.ts +55 -0
  719. package/src/stylepanel.tsx +275 -0
  720. package/src/synced.tsx +128 -0
  721. package/src/toolbar.tsx +238 -0
  722. package/src/types.ts +55 -0
  723. package/src/unknown.tsx +74 -0
  724. package/src/util.ts +3 -0
@@ -0,0 +1,1183 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FloatingUICore = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ /**
8
+ * Custom positioning reference element.
9
+ * @see https://floating-ui.com/docs/virtual-elements
10
+ */
11
+
12
+ const sides = ['top', 'right', 'bottom', 'left'];
13
+ const alignments = ['start', 'end'];
14
+ const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
15
+ const min = Math.min;
16
+ const max = Math.max;
17
+ const oppositeSideMap = {
18
+ left: 'right',
19
+ right: 'left',
20
+ bottom: 'top',
21
+ top: 'bottom'
22
+ };
23
+ function clamp(start, value, end) {
24
+ return max(start, min(value, end));
25
+ }
26
+ function evaluate(value, param) {
27
+ return typeof value === 'function' ? value(param) : value;
28
+ }
29
+ function getSide(placement) {
30
+ return placement.split('-')[0];
31
+ }
32
+ function getAlignment(placement) {
33
+ return placement.split('-')[1];
34
+ }
35
+ function getOppositeAxis(axis) {
36
+ return axis === 'x' ? 'y' : 'x';
37
+ }
38
+ function getAxisLength(axis) {
39
+ return axis === 'y' ? 'height' : 'width';
40
+ }
41
+ function getSideAxis(placement) {
42
+ const firstChar = placement[0];
43
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
44
+ }
45
+ function getAlignmentAxis(placement) {
46
+ return getOppositeAxis(getSideAxis(placement));
47
+ }
48
+ function getAlignmentSides(placement, rects, rtl) {
49
+ if (rtl === void 0) {
50
+ rtl = false;
51
+ }
52
+ const alignment = getAlignment(placement);
53
+ const alignmentAxis = getAlignmentAxis(placement);
54
+ const length = getAxisLength(alignmentAxis);
55
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
56
+ if (rects.reference[length] > rects.floating[length]) {
57
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
58
+ }
59
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
60
+ }
61
+ function getExpandedPlacements(placement) {
62
+ const oppositePlacement = getOppositePlacement(placement);
63
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
64
+ }
65
+ function getOppositeAlignmentPlacement(placement) {
66
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
67
+ }
68
+ const lrPlacement = ['left', 'right'];
69
+ const rlPlacement = ['right', 'left'];
70
+ const tbPlacement = ['top', 'bottom'];
71
+ const btPlacement = ['bottom', 'top'];
72
+ function getSideList(side, isStart, rtl) {
73
+ switch (side) {
74
+ case 'top':
75
+ case 'bottom':
76
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
77
+ return isStart ? lrPlacement : rlPlacement;
78
+ case 'left':
79
+ case 'right':
80
+ return isStart ? tbPlacement : btPlacement;
81
+ default:
82
+ return [];
83
+ }
84
+ }
85
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
86
+ const alignment = getAlignment(placement);
87
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
88
+ if (alignment) {
89
+ list = list.map(side => side + "-" + alignment);
90
+ if (flipAlignment) {
91
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
92
+ }
93
+ }
94
+ return list;
95
+ }
96
+ function getOppositePlacement(placement) {
97
+ const side = getSide(placement);
98
+ return oppositeSideMap[side] + placement.slice(side.length);
99
+ }
100
+ function expandPaddingObject(padding) {
101
+ var _padding$top, _padding$right, _padding$bottom, _padding$left;
102
+ return {
103
+ top: (_padding$top = padding.top) != null ? _padding$top : 0,
104
+ right: (_padding$right = padding.right) != null ? _padding$right : 0,
105
+ bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
106
+ left: (_padding$left = padding.left) != null ? _padding$left : 0
107
+ };
108
+ }
109
+ function getPaddingObject(padding) {
110
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
111
+ top: padding,
112
+ right: padding,
113
+ bottom: padding,
114
+ left: padding
115
+ };
116
+ }
117
+ function rectToClientRect(rect) {
118
+ const {
119
+ x,
120
+ y,
121
+ width,
122
+ height
123
+ } = rect;
124
+ return {
125
+ width,
126
+ height,
127
+ top: y,
128
+ left: x,
129
+ right: x + width,
130
+ bottom: y + height,
131
+ x,
132
+ y
133
+ };
134
+ }
135
+
136
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
137
+ let {
138
+ reference,
139
+ floating
140
+ } = _ref;
141
+ const sideAxis = getSideAxis(placement);
142
+ const alignmentAxis = getAlignmentAxis(placement);
143
+ const alignLength = getAxisLength(alignmentAxis);
144
+ const side = getSide(placement);
145
+ const isVertical = sideAxis === 'y';
146
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
147
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
148
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
149
+ let coords;
150
+ switch (side) {
151
+ case 'top':
152
+ coords = {
153
+ x: commonX,
154
+ y: reference.y - floating.height
155
+ };
156
+ break;
157
+ case 'bottom':
158
+ coords = {
159
+ x: commonX,
160
+ y: reference.y + reference.height
161
+ };
162
+ break;
163
+ case 'right':
164
+ coords = {
165
+ x: reference.x + reference.width,
166
+ y: commonY
167
+ };
168
+ break;
169
+ case 'left':
170
+ coords = {
171
+ x: reference.x - floating.width,
172
+ y: commonY
173
+ };
174
+ break;
175
+ default:
176
+ coords = {
177
+ x: reference.x,
178
+ y: reference.y
179
+ };
180
+ }
181
+ const alignment = getAlignment(placement);
182
+ if (alignment) {
183
+ coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
184
+ }
185
+ return coords;
186
+ }
187
+
188
+ /**
189
+ * Resolves with an object of overflow side offsets that determine how much the
190
+ * element is overflowing a given clipping boundary on each side.
191
+ * - positive = overflowing the boundary by that number of pixels
192
+ * - negative = how many pixels left before it will overflow
193
+ * - 0 = lies flush with the boundary
194
+ * @see https://floating-ui.com/docs/detectOverflow
195
+ */
196
+ async function detectOverflow(state, options) {
197
+ var _await$platform$isEle;
198
+ if (options === void 0) {
199
+ options = {};
200
+ }
201
+ const {
202
+ x,
203
+ y,
204
+ platform,
205
+ rects,
206
+ elements,
207
+ strategy
208
+ } = state;
209
+ const {
210
+ boundary = 'clippingAncestors',
211
+ rootBoundary = 'viewport',
212
+ elementContext = 'floating',
213
+ altBoundary = false,
214
+ padding = 0
215
+ } = evaluate(options, state);
216
+ const paddingObject = getPaddingObject(padding);
217
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
218
+ const element = elements[altBoundary ? altContext : elementContext];
219
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
220
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
221
+ boundary,
222
+ rootBoundary,
223
+ strategy
224
+ }));
225
+ const rect = elementContext === 'floating' ? {
226
+ x,
227
+ y,
228
+ width: rects.floating.width,
229
+ height: rects.floating.height
230
+ } : rects.reference;
231
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
232
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
233
+ x: 1,
234
+ y: 1
235
+ };
236
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
237
+ elements,
238
+ rect,
239
+ offsetParent,
240
+ strategy
241
+ }) : rect);
242
+ return {
243
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
244
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
245
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
246
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
247
+ };
248
+ }
249
+
250
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
251
+ const MAX_RESET_COUNT = 50;
252
+
253
+ /**
254
+ * Computes the `x` and `y` coordinates that will place the floating element
255
+ * next to a given reference element.
256
+ *
257
+ * This export does not have any `platform` interface logic. You will need to
258
+ * write one for the platform you are using Floating UI with.
259
+ */
260
+ const computePosition = async (reference, floating, config) => {
261
+ const {
262
+ placement = 'bottom',
263
+ strategy = 'absolute',
264
+ middleware = [],
265
+ platform
266
+ } = config;
267
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
268
+ ...platform,
269
+ detectOverflow
270
+ };
271
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
272
+ let rects = await platform.getElementRects({
273
+ reference,
274
+ floating,
275
+ strategy
276
+ });
277
+ let {
278
+ x,
279
+ y
280
+ } = computeCoordsFromPlacement(rects, placement, rtl);
281
+ let statefulPlacement = placement;
282
+ let resetCount = 0;
283
+ const middlewareData = {};
284
+ for (let i = 0; i < middleware.length; i++) {
285
+ const currentMiddleware = middleware[i];
286
+ if (!currentMiddleware) {
287
+ continue;
288
+ }
289
+ const {
290
+ name,
291
+ fn
292
+ } = currentMiddleware;
293
+ const {
294
+ x: nextX,
295
+ y: nextY,
296
+ data,
297
+ reset
298
+ } = await fn({
299
+ x,
300
+ y,
301
+ initialPlacement: placement,
302
+ placement: statefulPlacement,
303
+ strategy,
304
+ middlewareData,
305
+ rects,
306
+ platform: platformWithDetectOverflow,
307
+ elements: {
308
+ reference,
309
+ floating
310
+ }
311
+ });
312
+ x = nextX != null ? nextX : x;
313
+ y = nextY != null ? nextY : y;
314
+ middlewareData[name] = {
315
+ ...middlewareData[name],
316
+ ...data
317
+ };
318
+ if (reset && resetCount < MAX_RESET_COUNT) {
319
+ resetCount++;
320
+ if (typeof reset === 'object') {
321
+ if (reset.placement) {
322
+ statefulPlacement = reset.placement;
323
+ }
324
+ if (reset.rects) {
325
+ rects = reset.rects === true ? await platform.getElementRects({
326
+ reference,
327
+ floating,
328
+ strategy
329
+ }) : reset.rects;
330
+ }
331
+ ({
332
+ x,
333
+ y
334
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
335
+ }
336
+ i = -1;
337
+ }
338
+ }
339
+ return {
340
+ x,
341
+ y,
342
+ placement: statefulPlacement,
343
+ strategy,
344
+ middlewareData
345
+ };
346
+ };
347
+
348
+ /**
349
+ * Provides data to position an inner element of the floating element so that it
350
+ * appears centered to the reference element.
351
+ * @see https://floating-ui.com/docs/arrow
352
+ */
353
+ const arrow = options => ({
354
+ name: 'arrow',
355
+ options,
356
+ async fn(state) {
357
+ const {
358
+ x,
359
+ y,
360
+ placement,
361
+ rects,
362
+ platform,
363
+ elements,
364
+ middlewareData
365
+ } = state;
366
+ // Since `element` is required, we don't Partial<> the type.
367
+ const {
368
+ element,
369
+ padding = 0
370
+ } = evaluate(options, state) || {};
371
+ if (element == null) {
372
+ return {};
373
+ }
374
+ const paddingObject = getPaddingObject(padding);
375
+ const coords = {
376
+ x,
377
+ y
378
+ };
379
+ const axis = getAlignmentAxis(placement);
380
+ const length = getAxisLength(axis);
381
+ const arrowDimensions = await platform.getDimensions(element);
382
+ const isYAxis = axis === 'y';
383
+ const minProp = isYAxis ? 'top' : 'left';
384
+ const maxProp = isYAxis ? 'bottom' : 'right';
385
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
386
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
387
+ const startDiff = coords[axis] - rects.reference[axis];
388
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
389
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
390
+
391
+ // DOM platform can return `window` as the `offsetParent`.
392
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
393
+ clientSize = elements.floating[clientProp] || rects.floating[length];
394
+ }
395
+ const centerToReference = endDiff / 2 - startDiff / 2;
396
+
397
+ // If the padding is large enough that it causes the arrow to no longer be
398
+ // centered, modify the padding so that it is centered.
399
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
400
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
401
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
402
+
403
+ // Make sure the arrow doesn't overflow the floating element if the center
404
+ // point is outside the floating element's bounds.
405
+ const max = clientSize - arrowDimensions[length] - maxPadding;
406
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
407
+ const offset = clamp(minPadding, center, max);
408
+
409
+ // If the reference is small enough that the arrow's padding causes it to
410
+ // to point to nothing for an aligned placement, adjust the offset of the
411
+ // floating element itself. To ensure `shift()` continues to take action,
412
+ // a single reset is performed when this is true.
413
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
414
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
415
+ return {
416
+ [axis]: coords[axis] + alignmentOffset,
417
+ data: {
418
+ [axis]: offset,
419
+ centerOffset: center - offset - alignmentOffset,
420
+ ...(shouldAddOffset && {
421
+ alignmentOffset
422
+ })
423
+ },
424
+ reset: shouldAddOffset
425
+ };
426
+ }
427
+ });
428
+
429
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
430
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
431
+ return allowedPlacementsSortedByAlignment.filter(placement => {
432
+ if (alignment) {
433
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
434
+ }
435
+ return true;
436
+ });
437
+ }
438
+ /**
439
+ * Optimizes the visibility of the floating element by choosing the placement
440
+ * that has the most space available automatically, without needing to specify a
441
+ * preferred placement. Alternative to `flip`.
442
+ * @see https://floating-ui.com/docs/autoPlacement
443
+ */
444
+ const autoPlacement = function (options) {
445
+ if (options === void 0) {
446
+ options = {};
447
+ }
448
+ return {
449
+ name: 'autoPlacement',
450
+ options,
451
+ async fn(state) {
452
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
453
+ const {
454
+ rects,
455
+ middlewareData,
456
+ placement,
457
+ platform,
458
+ elements
459
+ } = state;
460
+ const {
461
+ crossAxis = false,
462
+ alignment,
463
+ allowedPlacements = placements,
464
+ autoAlignment = true,
465
+ ...detectOverflowOptions
466
+ } = evaluate(options, state);
467
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
468
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
469
+ const currentPlacement = placements$1[currentIndex];
470
+ if (currentPlacement == null) {
471
+ return {};
472
+ }
473
+
474
+ // Make `computeCoords` start from the right place.
475
+ if (placement !== currentPlacement) {
476
+ return {
477
+ reset: {
478
+ placement: placements$1[0]
479
+ }
480
+ };
481
+ }
482
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
483
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
484
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
485
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
486
+ placement: currentPlacement,
487
+ overflows: currentOverflows
488
+ }];
489
+ const nextPlacement = placements$1[currentIndex + 1];
490
+
491
+ // There are more placements to check.
492
+ if (nextPlacement) {
493
+ return {
494
+ data: {
495
+ index: currentIndex + 1,
496
+ overflows: allOverflows
497
+ },
498
+ reset: {
499
+ placement: nextPlacement
500
+ }
501
+ };
502
+ }
503
+ const placementsSortedByMostSpace = allOverflows.map(d => {
504
+ const alignment = getAlignment(d.placement);
505
+ return [d.placement, alignment && crossAxis ?
506
+ // Check along the mainAxis and main crossAxis side.
507
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
508
+ // Check only the mainAxis.
509
+ d.overflows[0], d.overflows];
510
+ }).sort((a, b) => a[1] - b[1]);
511
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
512
+ // Aligned placements should not check their opposite crossAxis
513
+ // side.
514
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
515
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
516
+ if (resetPlacement !== placement) {
517
+ return {
518
+ data: {
519
+ index: currentIndex + 1,
520
+ overflows: allOverflows
521
+ },
522
+ reset: {
523
+ placement: resetPlacement
524
+ }
525
+ };
526
+ }
527
+ return {};
528
+ }
529
+ };
530
+ };
531
+
532
+ /**
533
+ * Optimizes the visibility of the floating element by flipping the `placement`
534
+ * in order to keep it in view when the preferred placement(s) will overflow the
535
+ * clipping boundary. Alternative to `autoPlacement`.
536
+ * @see https://floating-ui.com/docs/flip
537
+ */
538
+ const flip = function (options) {
539
+ if (options === void 0) {
540
+ options = {};
541
+ }
542
+ return {
543
+ name: 'flip',
544
+ options,
545
+ async fn(state) {
546
+ var _middlewareData$arrow, _middlewareData$flip;
547
+ const {
548
+ placement,
549
+ middlewareData,
550
+ rects,
551
+ initialPlacement,
552
+ platform,
553
+ elements
554
+ } = state;
555
+ const {
556
+ mainAxis: checkMainAxis = true,
557
+ crossAxis: checkCrossAxis = true,
558
+ fallbackPlacements: specifiedFallbackPlacements,
559
+ fallbackStrategy = 'bestFit',
560
+ fallbackAxisSideDirection = 'none',
561
+ flipAlignment = true,
562
+ ...detectOverflowOptions
563
+ } = evaluate(options, state);
564
+
565
+ // If a reset by the arrow was caused due to an alignment offset being
566
+ // added, we should skip any logic now since `flip()` has already done its
567
+ // work.
568
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
569
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
570
+ return {};
571
+ }
572
+ const side = getSide(placement);
573
+ const initialSideAxis = getSideAxis(initialPlacement);
574
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
575
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
576
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
577
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
578
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
579
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
580
+ }
581
+ const placements = [initialPlacement, ...fallbackPlacements];
582
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
583
+ const overflows = [];
584
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
585
+ if (checkMainAxis) {
586
+ overflows.push(overflow[side]);
587
+ }
588
+ if (checkCrossAxis) {
589
+ const sides = getAlignmentSides(placement, rects, rtl);
590
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
591
+ }
592
+ overflowsData = [...overflowsData, {
593
+ placement,
594
+ overflows
595
+ }];
596
+
597
+ // One or more sides is overflowing.
598
+ if (!overflows.every(side => side <= 0)) {
599
+ var _middlewareData$flip2, _overflowsData$filter;
600
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
601
+ const nextPlacement = placements[nextIndex];
602
+ if (nextPlacement) {
603
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
604
+ if (!ignoreCrossAxisOverflow ||
605
+ // We leave the current main axis only if every placement on that axis
606
+ // overflows the main axis.
607
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
608
+ // Try next placement and re-run the lifecycle.
609
+ return {
610
+ data: {
611
+ index: nextIndex,
612
+ overflows: overflowsData
613
+ },
614
+ reset: {
615
+ placement: nextPlacement
616
+ }
617
+ };
618
+ }
619
+ }
620
+
621
+ // First, find the candidates that fit on the mainAxis side of overflow,
622
+ // then find the placement that fits the best on the main crossAxis side.
623
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
624
+
625
+ // Otherwise fallback.
626
+ if (!resetPlacement) {
627
+ switch (fallbackStrategy) {
628
+ case 'bestFit':
629
+ {
630
+ var _overflowsData$filter2;
631
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
632
+ if (hasFallbackAxisSideDirection) {
633
+ const currentSideAxis = getSideAxis(d.placement);
634
+ return currentSideAxis === initialSideAxis ||
635
+ // Create a bias to the `y` side axis due to horizontal
636
+ // reading directions favoring greater width.
637
+ currentSideAxis === 'y';
638
+ }
639
+ return true;
640
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
641
+ if (placement) {
642
+ resetPlacement = placement;
643
+ }
644
+ break;
645
+ }
646
+ case 'initialPlacement':
647
+ resetPlacement = initialPlacement;
648
+ break;
649
+ }
650
+ }
651
+ if (placement !== resetPlacement) {
652
+ return {
653
+ reset: {
654
+ placement: resetPlacement
655
+ }
656
+ };
657
+ }
658
+ }
659
+ return {};
660
+ }
661
+ };
662
+ };
663
+
664
+ function getSideOffsets(overflow, rect) {
665
+ return {
666
+ top: overflow.top - rect.height,
667
+ right: overflow.right - rect.width,
668
+ bottom: overflow.bottom - rect.height,
669
+ left: overflow.left - rect.width
670
+ };
671
+ }
672
+ function isAnySideFullyClipped(overflow) {
673
+ return sides.some(side => overflow[side] >= 0);
674
+ }
675
+ /**
676
+ * Provides data to hide the floating element in applicable situations, such as
677
+ * when it is not in the same clipping context as the reference element.
678
+ * @see https://floating-ui.com/docs/hide
679
+ */
680
+ const hide = function (options) {
681
+ if (options === void 0) {
682
+ options = {};
683
+ }
684
+ return {
685
+ name: 'hide',
686
+ options,
687
+ async fn(state) {
688
+ const {
689
+ rects,
690
+ platform
691
+ } = state;
692
+ const {
693
+ strategy = 'referenceHidden',
694
+ ...detectOverflowOptions
695
+ } = evaluate(options, state);
696
+ switch (strategy) {
697
+ case 'referenceHidden':
698
+ {
699
+ const overflow = await platform.detectOverflow(state, {
700
+ ...detectOverflowOptions,
701
+ elementContext: 'reference'
702
+ });
703
+ const offsets = getSideOffsets(overflow, rects.reference);
704
+ return {
705
+ data: {
706
+ referenceHiddenOffsets: offsets,
707
+ referenceHidden: isAnySideFullyClipped(offsets)
708
+ }
709
+ };
710
+ }
711
+ case 'escaped':
712
+ {
713
+ const overflow = await platform.detectOverflow(state, {
714
+ ...detectOverflowOptions,
715
+ altBoundary: true
716
+ });
717
+ const offsets = getSideOffsets(overflow, rects.floating);
718
+ return {
719
+ data: {
720
+ escapedOffsets: offsets,
721
+ escaped: isAnySideFullyClipped(offsets)
722
+ }
723
+ };
724
+ }
725
+ default:
726
+ {
727
+ return {};
728
+ }
729
+ }
730
+ }
731
+ };
732
+ };
733
+
734
+ function getBoundingRect(rects) {
735
+ const minX = min(...rects.map(rect => rect.left));
736
+ const minY = min(...rects.map(rect => rect.top));
737
+ const maxX = max(...rects.map(rect => rect.right));
738
+ const maxY = max(...rects.map(rect => rect.bottom));
739
+ return {
740
+ x: minX,
741
+ y: minY,
742
+ width: maxX - minX,
743
+ height: maxY - minY
744
+ };
745
+ }
746
+ function getRectsByLine(rects) {
747
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
748
+ const groups = [];
749
+ let prevRect = null;
750
+ for (let i = 0; i < sortedRects.length; i++) {
751
+ const rect = sortedRects[i];
752
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
753
+ groups.push([rect]);
754
+ } else {
755
+ groups[groups.length - 1].push(rect);
756
+ }
757
+ prevRect = rect;
758
+ }
759
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
760
+ }
761
+ /**
762
+ * Provides improved positioning for inline reference elements that can span
763
+ * over multiple lines, such as hyperlinks or range selections.
764
+ * @see https://floating-ui.com/docs/inline
765
+ */
766
+ const inline = function (options) {
767
+ if (options === void 0) {
768
+ options = {};
769
+ }
770
+ return {
771
+ name: 'inline',
772
+ options,
773
+ async fn(state) {
774
+ const {
775
+ placement,
776
+ elements,
777
+ rects,
778
+ platform,
779
+ strategy
780
+ } = state;
781
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
782
+ // ClientRect's bounds, despite the event listener being triggered. A
783
+ // padding of 2 seems to handle this issue.
784
+ const {
785
+ padding = 2,
786
+ x,
787
+ y
788
+ } = evaluate(options, state);
789
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
790
+
791
+ // No rects (e.g. a hidden or detached reference, or a collapsed range) —
792
+ // keep the existing reference rect rather than resetting to an invalid
793
+ // one with non-finite values.
794
+ if (!nativeClientRects.length) {
795
+ return {};
796
+ }
797
+ const clientRects = getRectsByLine(nativeClientRects);
798
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
799
+ const paddingObject = getPaddingObject(padding);
800
+ function getBoundingClientRect() {
801
+ // There are two rects and they are disjoined.
802
+ if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {
803
+ // Find the first rect in which the point is fully inside.
804
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
805
+ }
806
+
807
+ // There are 2 or more connected rects.
808
+ if (clientRects.length >= 2) {
809
+ if (getSideAxis(placement) === 'y') {
810
+ const firstRect = clientRects[0];
811
+ const lastRect = clientRects[clientRects.length - 1];
812
+ const isTop = getSide(placement) === 'top';
813
+ const top = firstRect.top;
814
+ const bottom = lastRect.bottom;
815
+ const left = isTop ? firstRect.left : lastRect.left;
816
+ const right = isTop ? firstRect.right : lastRect.right;
817
+ return rectToClientRect({
818
+ x: left,
819
+ y: top,
820
+ width: right - left,
821
+ height: bottom - top
822
+ });
823
+ }
824
+ const isLeftSide = getSide(placement) === 'left';
825
+ const maxRight = max(...clientRects.map(rect => rect.right));
826
+ const minLeft = min(...clientRects.map(rect => rect.left));
827
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
828
+ const top = measureRects[0].top;
829
+ const bottom = measureRects[measureRects.length - 1].bottom;
830
+ return rectToClientRect({
831
+ x: minLeft,
832
+ y: top,
833
+ width: maxRight - minLeft,
834
+ height: bottom - top
835
+ });
836
+ }
837
+ return fallback;
838
+ }
839
+ const resetRects = await platform.getElementRects({
840
+ reference: {
841
+ getBoundingClientRect
842
+ },
843
+ floating: elements.floating,
844
+ strategy
845
+ });
846
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
847
+ return {
848
+ reset: {
849
+ rects: resetRects
850
+ }
851
+ };
852
+ }
853
+ return {};
854
+ }
855
+ };
856
+ };
857
+
858
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
859
+
860
+ // For type backwards-compatibility, the `OffsetOptions` type was also
861
+ // Derivable.
862
+
863
+ async function convertValueToCoords(state, options) {
864
+ const {
865
+ placement,
866
+ platform,
867
+ elements
868
+ } = state;
869
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
870
+ const side = getSide(placement);
871
+ const alignment = getAlignment(placement);
872
+ const isVertical = getSideAxis(placement) === 'y';
873
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
874
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
875
+ const rawValue = evaluate(options, state);
876
+
877
+ // eslint-disable-next-line prefer-const
878
+ let {
879
+ mainAxis,
880
+ crossAxis,
881
+ alignmentAxis
882
+ } = typeof rawValue === 'number' ? {
883
+ mainAxis: rawValue,
884
+ crossAxis: 0,
885
+ alignmentAxis: null
886
+ } : {
887
+ mainAxis: rawValue.mainAxis || 0,
888
+ crossAxis: rawValue.crossAxis || 0,
889
+ alignmentAxis: rawValue.alignmentAxis
890
+ };
891
+ if (alignment && typeof alignmentAxis === 'number') {
892
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
893
+ }
894
+ return isVertical ? {
895
+ x: crossAxis * crossAxisMulti,
896
+ y: mainAxis * mainAxisMulti
897
+ } : {
898
+ x: mainAxis * mainAxisMulti,
899
+ y: crossAxis * crossAxisMulti
900
+ };
901
+ }
902
+
903
+ /**
904
+ * Modifies the placement by translating the floating element along the
905
+ * specified axes.
906
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
907
+ * object may be passed.
908
+ * @see https://floating-ui.com/docs/offset
909
+ */
910
+ const offset = function (options) {
911
+ if (options === void 0) {
912
+ options = 0;
913
+ }
914
+ return {
915
+ name: 'offset',
916
+ options,
917
+ async fn(state) {
918
+ var _middlewareData$offse, _middlewareData$arrow;
919
+ const {
920
+ x,
921
+ y,
922
+ placement,
923
+ middlewareData
924
+ } = state;
925
+ const diffCoords = await convertValueToCoords(state, options);
926
+
927
+ // If the placement is the same and the arrow caused an alignment offset
928
+ // then we don't need to change the positioning coordinates.
929
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
930
+ return {};
931
+ }
932
+ return {
933
+ x: x + diffCoords.x,
934
+ y: y + diffCoords.y,
935
+ data: {
936
+ ...diffCoords,
937
+ placement
938
+ }
939
+ };
940
+ }
941
+ };
942
+ };
943
+
944
+ /**
945
+ * Optimizes the visibility of the floating element by shifting it in order to
946
+ * keep it in view when it will overflow the clipping boundary.
947
+ * @see https://floating-ui.com/docs/shift
948
+ */
949
+ const shift = function (options) {
950
+ if (options === void 0) {
951
+ options = {};
952
+ }
953
+ return {
954
+ name: 'shift',
955
+ options,
956
+ async fn(state) {
957
+ const {
958
+ x,
959
+ y,
960
+ placement,
961
+ platform
962
+ } = state;
963
+ const {
964
+ mainAxis: checkMainAxis = true,
965
+ crossAxis: checkCrossAxis = false,
966
+ limiter = {
967
+ fn: _ref => {
968
+ let {
969
+ x,
970
+ y
971
+ } = _ref;
972
+ return {
973
+ x,
974
+ y
975
+ };
976
+ }
977
+ },
978
+ ...detectOverflowOptions
979
+ } = evaluate(options, state);
980
+ const coords = {
981
+ x,
982
+ y
983
+ };
984
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
985
+ const crossAxis = getSideAxis(placement);
986
+ const mainAxis = getOppositeAxis(crossAxis);
987
+ let mainAxisCoord = coords[mainAxis];
988
+ let crossAxisCoord = coords[crossAxis];
989
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
990
+ if (checkMainAxis) {
991
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
992
+ }
993
+ if (checkCrossAxis) {
994
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
995
+ }
996
+ const limitedCoords = limiter.fn({
997
+ ...state,
998
+ [mainAxis]: mainAxisCoord,
999
+ [crossAxis]: crossAxisCoord
1000
+ });
1001
+ return {
1002
+ ...limitedCoords,
1003
+ data: {
1004
+ x: limitedCoords.x - x,
1005
+ y: limitedCoords.y - y,
1006
+ enabled: {
1007
+ [mainAxis]: checkMainAxis,
1008
+ [crossAxis]: checkCrossAxis
1009
+ }
1010
+ }
1011
+ };
1012
+ }
1013
+ };
1014
+ };
1015
+ /**
1016
+ * Built-in `limiter` that will stop `shift()` at a certain point.
1017
+ */
1018
+ const limitShift = function (options) {
1019
+ if (options === void 0) {
1020
+ options = {};
1021
+ }
1022
+ return {
1023
+ options,
1024
+ fn(state) {
1025
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
1026
+ const {
1027
+ x,
1028
+ y,
1029
+ placement,
1030
+ rects,
1031
+ middlewareData
1032
+ } = state;
1033
+ const {
1034
+ offset = 0,
1035
+ mainAxis: checkMainAxis = true,
1036
+ crossAxis: checkCrossAxis = true
1037
+ } = evaluate(options, state);
1038
+ const coords = {
1039
+ x,
1040
+ y
1041
+ };
1042
+ const crossAxis = getSideAxis(placement);
1043
+ const mainAxis = getOppositeAxis(crossAxis);
1044
+ let mainAxisCoord = coords[mainAxis];
1045
+ let crossAxisCoord = coords[crossAxis];
1046
+ const rawOffset = evaluate(offset, state);
1047
+ const computedOffset = typeof rawOffset === 'number' ? {
1048
+ mainAxis: rawOffset,
1049
+ crossAxis: 0
1050
+ } : {
1051
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
1052
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
1053
+ };
1054
+ if (checkMainAxis) {
1055
+ const len = mainAxis === 'y' ? 'height' : 'width';
1056
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
1057
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
1058
+ if (mainAxisCoord < limitMin) {
1059
+ mainAxisCoord = limitMin;
1060
+ } else if (mainAxisCoord > limitMax) {
1061
+ mainAxisCoord = limitMax;
1062
+ }
1063
+ }
1064
+ if (checkCrossAxis) {
1065
+ var _middlewareData$offse, _middlewareData$offse2;
1066
+ const len = mainAxis === 'y' ? 'width' : 'height';
1067
+ const isOriginSide = originSides.has(getSide(placement));
1068
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
1069
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
1070
+ if (crossAxisCoord < limitMin) {
1071
+ crossAxisCoord = limitMin;
1072
+ } else if (crossAxisCoord > limitMax) {
1073
+ crossAxisCoord = limitMax;
1074
+ }
1075
+ }
1076
+ return {
1077
+ [mainAxis]: mainAxisCoord,
1078
+ [crossAxis]: crossAxisCoord
1079
+ };
1080
+ }
1081
+ };
1082
+ };
1083
+
1084
+ // Method syntax keeps callback parameters bivariant, but expressing the
1085
+ // explicit `| undefined` required by `exactOptionalPropertyTypes` needs
1086
+ // property syntax, which is contravariant under `strictFunctionTypes`.
1087
+ // Extracting the function from a method position restores that bivariance so
1088
+ // consumers can still assign callbacks with narrower parameter types.
1089
+
1090
+ /**
1091
+ * Provides data that allows you to change the size of the floating element —
1092
+ * for instance, prevent it from overflowing the clipping boundary or match the
1093
+ * width of the reference element.
1094
+ * @see https://floating-ui.com/docs/size
1095
+ */
1096
+ const size = function (options) {
1097
+ if (options === void 0) {
1098
+ options = {};
1099
+ }
1100
+ return {
1101
+ name: 'size',
1102
+ options,
1103
+ async fn(state) {
1104
+ const {
1105
+ placement,
1106
+ rects,
1107
+ platform,
1108
+ elements
1109
+ } = state;
1110
+ const {
1111
+ apply = () => {},
1112
+ ...detectOverflowOptions
1113
+ } = evaluate(options, state);
1114
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
1115
+ const side = getSide(placement);
1116
+ const alignment = getAlignment(placement);
1117
+ const isYAxis = getSideAxis(placement) === 'y';
1118
+ const {
1119
+ width,
1120
+ height
1121
+ } = rects.floating;
1122
+ let heightSide;
1123
+ let widthSide;
1124
+ if (side === 'top' || side === 'bottom') {
1125
+ heightSide = side;
1126
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
1127
+ } else {
1128
+ widthSide = side;
1129
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
1130
+ }
1131
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
1132
+ const maximumClippingWidth = width - overflow.left - overflow.right;
1133
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1134
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1135
+ const shiftData = state.middlewareData.shift;
1136
+ const noShift = !shiftData;
1137
+ let availableHeight = overflowAvailableHeight;
1138
+ let availableWidth = overflowAvailableWidth;
1139
+ if (shiftData != null && shiftData.enabled.x) {
1140
+ availableWidth = maximumClippingWidth;
1141
+ }
1142
+ if (shiftData != null && shiftData.enabled.y) {
1143
+ availableHeight = maximumClippingHeight;
1144
+ }
1145
+ if (noShift && !alignment) {
1146
+ if (isYAxis) {
1147
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
1148
+ } else {
1149
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
1150
+ }
1151
+ }
1152
+ await apply({
1153
+ ...state,
1154
+ availableWidth,
1155
+ availableHeight
1156
+ });
1157
+ const nextDimensions = await platform.getDimensions(elements.floating);
1158
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
1159
+ return {
1160
+ reset: {
1161
+ rects: true
1162
+ }
1163
+ };
1164
+ }
1165
+ return {};
1166
+ }
1167
+ };
1168
+ };
1169
+
1170
+ exports.arrow = arrow;
1171
+ exports.autoPlacement = autoPlacement;
1172
+ exports.computePosition = computePosition;
1173
+ exports.detectOverflow = detectOverflow;
1174
+ exports.flip = flip;
1175
+ exports.hide = hide;
1176
+ exports.inline = inline;
1177
+ exports.limitShift = limitShift;
1178
+ exports.offset = offset;
1179
+ exports.rectToClientRect = rectToClientRect;
1180
+ exports.shift = shift;
1181
+ exports.size = size;
1182
+
1183
+ }));