@sprawlify/primitives 0.0.87 → 0.0.89

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 (369) hide show
  1. package/dist/anatomy.cjs +3 -3
  2. package/dist/anatomy.d.mts +1 -1
  3. package/dist/anatomy.mjs +2 -3
  4. package/dist/{aria-hidden-Csp0PkO_.mjs → aria-hidden-P3kaF8gG.mjs} +2 -6
  5. package/dist/{aria-hidden-CHWfuKk2.cjs → aria-hidden-UJAPt1aA.cjs} +7 -11
  6. package/dist/aria-hidden.cjs +4 -4
  7. package/dist/aria-hidden.mjs +3 -4
  8. package/dist/{auto-resize-jPUJLPa4.mjs → auto-resize-Bjzuo5Lh.mjs} +2 -6
  9. package/dist/{auto-resize-BL8ul-hb.cjs → auto-resize-DzPXdyR-.cjs} +12 -16
  10. package/dist/auto-resize.cjs +4 -4
  11. package/dist/auto-resize.mjs +3 -4
  12. package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
  13. package/dist/{collection-DHyEg4g5.mjs → collection-CcsrqDFY.mjs} +3 -9
  14. package/dist/{collection-Fkg4kgPn.cjs → collection-DZeodezM.cjs} +43 -49
  15. package/dist/collection.cjs +4 -4
  16. package/dist/collection.d.cts +4 -4
  17. package/dist/collection.d.mts +4 -4
  18. package/dist/collection.mjs +3 -4
  19. package/dist/{color-utils-CaqLeEog.mjs → color-utils-BK3Ae7x1.mjs} +3 -12
  20. package/dist/{color-utils-eUlz6Gq4.cjs → color-utils-XoYeFX3g.cjs} +23 -32
  21. package/dist/color-utils.cjs +4 -4
  22. package/dist/color-utils.d.cts +1 -1
  23. package/dist/color-utils.d.mts +1 -1
  24. package/dist/color-utils.mjs +3 -4
  25. package/dist/{core-CHsDFMV3.cjs → core-BiGlJ-4W.cjs} +43 -49
  26. package/dist/{core-owywCQ2e.mjs → core-DfVajPnu.mjs} +3 -9
  27. package/dist/core.cjs +5 -5
  28. package/dist/core.d.cts +3 -3
  29. package/dist/core.d.mts +3 -3
  30. package/dist/core.mjs +4 -5
  31. package/dist/{create-anatomy-CDsIFUXg.cjs → create-anatomy-BnwEmNnc.cjs} +6 -8
  32. package/dist/{create-anatomy-BVqM_FJ6.mjs → create-anatomy-Dr0evdYy.mjs} +1 -2
  33. package/dist/{create-props-Dtoa4OUk.mjs → create-props-DFW8DUsC.mjs} +1 -2
  34. package/dist/create-props-DP39rHnH.cjs +9 -0
  35. package/dist/{date-utils-BDBOiT_6.cjs → date-utils-BuJkKL09.cjs} +265 -279
  36. package/dist/{date-utils-LnVS7q0z.mjs → date-utils-DCaRa_Ry.mjs} +1 -15
  37. package/dist/date-utils.cjs +3 -3
  38. package/dist/date-utils.d.cts +1 -1
  39. package/dist/date-utils.d.mts +1 -1
  40. package/dist/date-utils.mjs +2 -3
  41. package/dist/{defineProperty-_bOnJOii.cjs → defineProperty-8IOBQ1i_.cjs} +10 -15
  42. package/dist/{defineProperty-DR_NxfHn.mjs → defineProperty-D5oW_HU_.mjs} +5 -9
  43. package/dist/{dismissable-BlZazbp3.mjs → dismissable-BAYaXwxZ.mjs} +4 -9
  44. package/dist/{dismissable-DSFGuAU6.cjs → dismissable-DPXx0m0m.cjs} +14 -19
  45. package/dist/{dismissable-layer-B2bSyA07.d.cts → dismissable-layer-ZgyqN8AD.d.cts} +2 -2
  46. package/dist/{dismissable-layer-CpUMMV1f.d.mts → dismissable-layer-h14gHVbJ.d.mts} +2 -2
  47. package/dist/dismissable.cjs +6 -6
  48. package/dist/dismissable.d.cts +2 -2
  49. package/dist/dismissable.d.mts +2 -2
  50. package/dist/dismissable.mjs +5 -6
  51. package/dist/{dom-query-CAFhX43H.cjs → dom-query-6Wt-Tikf.cjs} +775 -806
  52. package/dist/{dom-query-CQFBCdpo.mjs → dom-query-dX8Dakb4.mjs} +2 -33
  53. package/dist/dom-query.cjs +3 -3
  54. package/dist/dom-query.d.cts +6 -6
  55. package/dist/dom-query.d.mts +6 -6
  56. package/dist/dom-query.mjs +2 -3
  57. package/dist/{file-utils-Bkp18nrt.cjs → file-utils-CY6_zVut.cjs} +52 -67
  58. package/dist/{file-utils-lcjM-YjV.mjs → file-utils-VgQ3YV2A.mjs} +2 -16
  59. package/dist/file-utils.cjs +3 -3
  60. package/dist/file-utils.d.cts +1 -1
  61. package/dist/file-utils.d.mts +1 -1
  62. package/dist/file-utils.mjs +2 -3
  63. package/dist/{focus-trap-BXT0oBtL.mjs → focus-trap-Cd09JaUn.mjs} +3 -6
  64. package/dist/{focus-trap-zaIiaoqE.cjs → focus-trap-ClCNF7kY.cjs} +13 -16
  65. package/dist/focus-trap.cjs +4 -4
  66. package/dist/focus-trap.mjs +3 -4
  67. package/dist/{focus-visible-DjGDsaLn.mjs → focus-visible-CSuBQ5QZ.mjs} +2 -4
  68. package/dist/{focus-visible-3pXNNo-l.cjs → focus-visible-CqHoOOjw.cjs} +32 -34
  69. package/dist/focus-visible.cjs +4 -4
  70. package/dist/focus-visible.mjs +3 -4
  71. package/dist/highlight-word.cjs +2 -7
  72. package/dist/highlight-word.mjs +1 -6
  73. package/dist/hotkeys.cjs +11 -20
  74. package/dist/hotkeys.mjs +10 -20
  75. package/dist/{i18n-utils-KuoJj66z.mjs → i18n-utils-DHGN_KCY.mjs} +2 -14
  76. package/dist/{i18n-utils-CK27xonZ.cjs → i18n-utils-Dm8cGCol.cjs} +57 -69
  77. package/dist/i18n-utils.cjs +4 -4
  78. package/dist/i18n-utils.mjs +3 -4
  79. package/dist/index.mjs +1 -1
  80. package/dist/{interact-outside-CRmkKF6k.mjs → interact-outside-C-8lOhpV.mjs} +3 -6
  81. package/dist/{interact-outside-Dk2otQqs.cjs → interact-outside-DRaFGdMg.cjs} +8 -11
  82. package/dist/interact-outside.cjs +5 -5
  83. package/dist/interact-outside.d.cts +1 -1
  84. package/dist/interact-outside.d.mts +1 -1
  85. package/dist/interact-outside.mjs +4 -5
  86. package/dist/json-tree-utils.cjs +6 -11
  87. package/dist/json-tree-utils.mjs +5 -10
  88. package/dist/{list-collection-C9XUe75n.d.mts → list-collection-B_8BN0XB.d.cts} +1 -1
  89. package/dist/{list-collection-DwMgPYoA.d.cts → list-collection-DkRA5LOq.d.mts} +1 -1
  90. package/dist/{live-region-2RiuzOr-.cjs → live-region-TGReV9nm.cjs} +6 -8
  91. package/dist/{live-region-CBp2K1JK.mjs → live-region-TgEDzvS4.mjs} +1 -2
  92. package/dist/live-region.cjs +3 -3
  93. package/dist/live-region.d.cts +1 -1
  94. package/dist/live-region.d.mts +1 -1
  95. package/dist/live-region.mjs +2 -3
  96. package/dist/machines/accordion/index.cjs +7 -12
  97. package/dist/machines/accordion/index.d.cts +3 -3
  98. package/dist/machines/accordion/index.d.mts +4 -4
  99. package/dist/machines/accordion/index.mjs +6 -12
  100. package/dist/machines/angle-slider/index.cjs +13 -23
  101. package/dist/machines/angle-slider/index.d.cts +3 -3
  102. package/dist/machines/angle-slider/index.d.mts +4 -4
  103. package/dist/machines/angle-slider/index.mjs +12 -23
  104. package/dist/machines/aspect-ratio/index.cjs +7 -12
  105. package/dist/machines/aspect-ratio/index.d.cts +3 -3
  106. package/dist/machines/aspect-ratio/index.d.mts +4 -4
  107. package/dist/machines/aspect-ratio/index.mjs +6 -12
  108. package/dist/machines/async-list/index.cjs +5 -7
  109. package/dist/machines/async-list/index.d.cts +1 -1
  110. package/dist/machines/async-list/index.d.mts +1 -1
  111. package/dist/machines/async-list/index.mjs +4 -7
  112. package/dist/machines/avatar/index.cjs +7 -12
  113. package/dist/machines/avatar/index.d.cts +2 -2
  114. package/dist/machines/avatar/index.d.mts +3 -3
  115. package/dist/machines/avatar/index.mjs +6 -12
  116. package/dist/machines/bottom-sheet/index.cjs +13 -22
  117. package/dist/machines/bottom-sheet/index.d.cts +5 -5
  118. package/dist/machines/bottom-sheet/index.d.mts +6 -6
  119. package/dist/machines/bottom-sheet/index.mjs +12 -22
  120. package/dist/machines/carousel/index.cjs +8 -13
  121. package/dist/machines/carousel/index.d.cts +3 -3
  122. package/dist/machines/carousel/index.d.mts +4 -4
  123. package/dist/machines/carousel/index.mjs +7 -13
  124. package/dist/machines/checkbox/index.cjs +8 -13
  125. package/dist/machines/checkbox/index.d.cts +3 -3
  126. package/dist/machines/checkbox/index.d.mts +4 -4
  127. package/dist/machines/checkbox/index.mjs +7 -13
  128. package/dist/machines/clipboard/index.cjs +7 -12
  129. package/dist/machines/clipboard/index.d.cts +3 -3
  130. package/dist/machines/clipboard/index.d.mts +4 -4
  131. package/dist/machines/clipboard/index.mjs +6 -12
  132. package/dist/machines/collapsible/index.cjs +7 -12
  133. package/dist/machines/collapsible/index.d.cts +3 -3
  134. package/dist/machines/collapsible/index.d.mts +4 -4
  135. package/dist/machines/collapsible/index.mjs +6 -12
  136. package/dist/machines/color-picker/index.cjs +11 -21
  137. package/dist/machines/color-picker/index.d.cts +6 -6
  138. package/dist/machines/color-picker/index.d.mts +7 -7
  139. package/dist/machines/color-picker/index.mjs +10 -21
  140. package/dist/machines/combobox/index.cjs +11 -17
  141. package/dist/machines/combobox/index.d.cts +7 -7
  142. package/dist/machines/combobox/index.d.mts +8 -8
  143. package/dist/machines/combobox/index.mjs +10 -17
  144. package/dist/machines/date-picker/index.cjs +15 -24
  145. package/dist/machines/date-picker/index.d.cts +7 -7
  146. package/dist/machines/date-picker/index.d.mts +8 -8
  147. package/dist/machines/date-picker/index.mjs +13 -23
  148. package/dist/machines/dialog/index.cjs +12 -17
  149. package/dist/machines/dialog/index.d.cts +5 -5
  150. package/dist/machines/dialog/index.d.mts +6 -6
  151. package/dist/machines/dialog/index.mjs +11 -17
  152. package/dist/machines/dropdown-menu/index.cjs +12 -18
  153. package/dist/machines/dropdown-menu/index.d.cts +8 -8
  154. package/dist/machines/dropdown-menu/index.d.mts +9 -9
  155. package/dist/machines/dropdown-menu/index.mjs +11 -18
  156. package/dist/machines/editable/index.cjs +8 -13
  157. package/dist/machines/editable/index.d.cts +4 -4
  158. package/dist/machines/editable/index.d.mts +5 -5
  159. package/dist/machines/editable/index.mjs +7 -13
  160. package/dist/machines/file-upload/index.cjs +9 -15
  161. package/dist/machines/file-upload/index.d.cts +4 -4
  162. package/dist/machines/file-upload/index.d.mts +5 -5
  163. package/dist/machines/file-upload/index.mjs +8 -15
  164. package/dist/machines/floating-panel/index.cjs +9 -16
  165. package/dist/machines/floating-panel/index.d.cts +4 -4
  166. package/dist/machines/floating-panel/index.d.mts +5 -5
  167. package/dist/machines/floating-panel/index.mjs +8 -16
  168. package/dist/machines/hover-card/index.cjs +10 -15
  169. package/dist/machines/hover-card/index.d.cts +5 -5
  170. package/dist/machines/hover-card/index.d.mts +6 -6
  171. package/dist/machines/hover-card/index.mjs +9 -15
  172. package/dist/machines/image-cropper/index.cjs +8 -16
  173. package/dist/machines/image-cropper/index.d.cts +3 -3
  174. package/dist/machines/image-cropper/index.d.mts +4 -4
  175. package/dist/machines/image-cropper/index.mjs +7 -16
  176. package/dist/machines/listbox/index.cjs +9 -15
  177. package/dist/machines/listbox/index.d.cts +7 -7
  178. package/dist/machines/listbox/index.d.mts +8 -8
  179. package/dist/machines/listbox/index.mjs +8 -15
  180. package/dist/machines/marquee/index.cjs +7 -13
  181. package/dist/machines/marquee/index.d.cts +5 -5
  182. package/dist/machines/marquee/index.d.mts +6 -6
  183. package/dist/machines/marquee/index.mjs +6 -13
  184. package/dist/machines/navigation-menu/index.cjs +15 -27
  185. package/dist/machines/navigation-menu/index.d.cts +3 -3
  186. package/dist/machines/navigation-menu/index.d.mts +4 -4
  187. package/dist/machines/navigation-menu/index.mjs +14 -27
  188. package/dist/machines/number-input/index.cjs +13 -22
  189. package/dist/machines/number-input/index.d.cts +3 -3
  190. package/dist/machines/number-input/index.d.mts +4 -4
  191. package/dist/machines/number-input/index.mjs +12 -23
  192. package/dist/machines/pagination/index.cjs +7 -13
  193. package/dist/machines/pagination/index.d.cts +3 -3
  194. package/dist/machines/pagination/index.d.mts +4 -4
  195. package/dist/machines/pagination/index.mjs +6 -13
  196. package/dist/machines/password-input/index.cjs +7 -12
  197. package/dist/machines/password-input/index.d.cts +3 -3
  198. package/dist/machines/password-input/index.d.mts +4 -4
  199. package/dist/machines/password-input/index.mjs +6 -12
  200. package/dist/machines/pin-input/index.cjs +9 -17
  201. package/dist/machines/pin-input/index.d.cts +3 -3
  202. package/dist/machines/pin-input/index.d.mts +4 -4
  203. package/dist/machines/pin-input/index.mjs +8 -17
  204. package/dist/machines/popover/index.cjs +13 -18
  205. package/dist/machines/popover/index.d.cts +6 -6
  206. package/dist/machines/popover/index.d.mts +7 -7
  207. package/dist/machines/popover/index.mjs +12 -18
  208. package/dist/machines/presence/index.cjs +6 -9
  209. package/dist/machines/presence/index.d.cts +2 -2
  210. package/dist/machines/presence/index.d.mts +2 -2
  211. package/dist/machines/presence/index.mjs +5 -9
  212. package/dist/machines/progress/index.cjs +7 -12
  213. package/dist/machines/progress/index.d.cts +3 -3
  214. package/dist/machines/progress/index.d.mts +4 -4
  215. package/dist/machines/progress/index.mjs +6 -12
  216. package/dist/machines/qr-code/index.cjs +8 -13
  217. package/dist/machines/qr-code/index.d.cts +3 -3
  218. package/dist/machines/qr-code/index.d.mts +4 -4
  219. package/dist/machines/qr-code/index.mjs +6 -12
  220. package/dist/machines/radio-group/index.cjs +8 -13
  221. package/dist/machines/radio-group/index.d.cts +3 -3
  222. package/dist/machines/radio-group/index.d.mts +4 -4
  223. package/dist/machines/radio-group/index.mjs +7 -13
  224. package/dist/machines/rating-group/index.cjs +7 -12
  225. package/dist/machines/rating-group/index.d.cts +3 -3
  226. package/dist/machines/rating-group/index.d.mts +4 -4
  227. package/dist/machines/rating-group/index.mjs +6 -12
  228. package/dist/machines/scroll-area/index.cjs +8 -20
  229. package/dist/machines/scroll-area/index.d.cts +3 -3
  230. package/dist/machines/scroll-area/index.d.mts +4 -4
  231. package/dist/machines/scroll-area/index.mjs +7 -20
  232. package/dist/machines/select/index.cjs +11 -17
  233. package/dist/machines/select/index.d.cts +8 -8
  234. package/dist/machines/select/index.d.mts +9 -9
  235. package/dist/machines/select/index.mjs +10 -17
  236. package/dist/machines/separator/index.cjs +7 -12
  237. package/dist/machines/separator/index.d.cts +2 -2
  238. package/dist/machines/separator/index.d.mts +3 -3
  239. package/dist/machines/separator/index.mjs +6 -12
  240. package/dist/machines/signature-pad/index.cjs +8 -14
  241. package/dist/machines/signature-pad/index.d.cts +3 -3
  242. package/dist/machines/signature-pad/index.d.mts +4 -4
  243. package/dist/machines/signature-pad/index.mjs +6 -13
  244. package/dist/machines/slider/index.cjs +7 -14
  245. package/dist/machines/slider/index.d.cts +3 -3
  246. package/dist/machines/slider/index.d.mts +4 -4
  247. package/dist/machines/slider/index.mjs +6 -14
  248. package/dist/machines/splitter/index.cjs +12 -27
  249. package/dist/machines/splitter/index.d.cts +3 -3
  250. package/dist/machines/splitter/index.d.mts +4 -4
  251. package/dist/machines/splitter/index.mjs +11 -27
  252. package/dist/machines/steps/index.cjs +7 -12
  253. package/dist/machines/steps/index.d.cts +3 -3
  254. package/dist/machines/steps/index.d.mts +4 -4
  255. package/dist/machines/steps/index.mjs +6 -12
  256. package/dist/machines/switch/index.cjs +8 -13
  257. package/dist/machines/switch/index.d.cts +3 -3
  258. package/dist/machines/switch/index.d.mts +4 -4
  259. package/dist/machines/switch/index.mjs +7 -13
  260. package/dist/machines/tabs/index.cjs +7 -12
  261. package/dist/machines/tabs/index.d.cts +3 -3
  262. package/dist/machines/tabs/index.d.mts +4 -4
  263. package/dist/machines/tabs/index.mjs +6 -12
  264. package/dist/machines/tags-input/index.cjs +11 -17
  265. package/dist/machines/tags-input/index.d.cts +5 -5
  266. package/dist/machines/tags-input/index.d.mts +6 -6
  267. package/dist/machines/tags-input/index.mjs +10 -17
  268. package/dist/machines/timer/index.cjs +7 -13
  269. package/dist/machines/timer/index.d.cts +3 -3
  270. package/dist/machines/timer/index.d.mts +4 -4
  271. package/dist/machines/timer/index.mjs +6 -13
  272. package/dist/machines/toast/index.cjs +8 -17
  273. package/dist/machines/toast/index.d.cts +4 -4
  274. package/dist/machines/toast/index.d.mts +5 -5
  275. package/dist/machines/toast/index.mjs +7 -17
  276. package/dist/machines/toggle/index.cjs +7 -11
  277. package/dist/machines/toggle/index.d.cts +2 -2
  278. package/dist/machines/toggle/index.d.mts +3 -3
  279. package/dist/machines/toggle/index.mjs +6 -11
  280. package/dist/machines/toggle-group/index.cjs +7 -12
  281. package/dist/machines/toggle-group/index.d.cts +2 -2
  282. package/dist/machines/toggle-group/index.d.mts +3 -3
  283. package/dist/machines/toggle-group/index.mjs +6 -12
  284. package/dist/machines/tooltip/index.cjs +9 -15
  285. package/dist/machines/tooltip/index.d.cts +4 -4
  286. package/dist/machines/tooltip/index.d.mts +5 -5
  287. package/dist/machines/tooltip/index.mjs +8 -15
  288. package/dist/machines/tour/index.cjs +11 -20
  289. package/dist/machines/tour/index.d.cts +6 -6
  290. package/dist/machines/tour/index.d.mts +7 -7
  291. package/dist/machines/tour/index.mjs +10 -20
  292. package/dist/machines/tree-view/index.cjs +8 -17
  293. package/dist/machines/tree-view/index.d.cts +6 -6
  294. package/dist/machines/tree-view/index.d.mts +7 -7
  295. package/dist/machines/tree-view/index.mjs +7 -17
  296. package/dist/{popper-DxgokNha.mjs → popper-CfOHZlHP.mjs} +3 -9
  297. package/dist/{popper-CY3ptPbm.cjs → popper-zq1F_iY8.cjs} +24 -30
  298. package/dist/popper.cjs +5 -5
  299. package/dist/popper.d.cts +1 -1
  300. package/dist/popper.d.mts +1 -1
  301. package/dist/popper.mjs +4 -5
  302. package/dist/{rect-utils-BobE6Wut.mjs → rect-utils-B5xqFvKC.mjs} +2 -24
  303. package/dist/{rect-utils-DtqZwNtZ.cjs → rect-utils-D3RkAaHK.cjs} +247 -269
  304. package/dist/rect-utils.cjs +3 -3
  305. package/dist/rect-utils.d.cts +1 -1
  306. package/dist/rect-utils.d.mts +1 -1
  307. package/dist/rect-utils.mjs +2 -3
  308. package/dist/{remove-scroll-DgJgF1C5.cjs → remove-scroll-B8AJyezV.cjs} +7 -9
  309. package/dist/{remove-scroll-DcPV6nZy.mjs → remove-scroll-DCUb1JPX.mjs} +2 -4
  310. package/dist/remove-scroll.mjs +1 -1
  311. package/dist/{scroll-snap-D_M1Q8ZQ.mjs → scroll-snap-De0H9CWU.mjs} +2 -4
  312. package/dist/{scroll-snap-DpEzlrHP.cjs → scroll-snap-voc0pMJd.cjs} +22 -24
  313. package/dist/scroll-snap.cjs +4 -4
  314. package/dist/scroll-snap.mjs +3 -4
  315. package/dist/{selection-wfybIxD3.d.cts → selection-Bb_ZSVxe.d.cts} +2 -2
  316. package/dist/{selection-CPTdpru8.d.mts → selection-DdNvrKbj.d.mts} +2 -2
  317. package/dist/{store-DMXvGOAu.mjs → store-BRn2zWDR.mjs} +1 -7
  318. package/dist/{store-B9Ewi-zx.cjs → store-k8bn_TOl.cjs} +37 -43
  319. package/dist/store.cjs +3 -3
  320. package/dist/store.mjs +2 -3
  321. package/dist/stringify-state.cjs +3 -4
  322. package/dist/stringify-state.mjs +1 -3
  323. package/dist/{tree-collection-1g4DXuqa.d.mts → tree-collection-DjtppzYh.d.cts} +1 -1
  324. package/dist/{tree-collection-CPcsMvje.d.cts → tree-collection-DlBCued7.d.mts} +1 -1
  325. package/dist/types.cjs +3 -4
  326. package/dist/types.d.cts +1 -1
  327. package/dist/types.d.mts +1 -1
  328. package/dist/types.mjs +2 -4
  329. package/dist/{utils-CJsQZljH.cjs → utils-ByNiZU8f.cjs} +527 -541
  330. package/dist/{utils-Vs04rt8f.mjs → utils-VVoZ_v29.mjs} +6 -20
  331. package/dist/utils.cjs +3 -3
  332. package/dist/utils.d.cts +1 -1
  333. package/dist/utils.d.mts +1 -1
  334. package/dist/utils.mjs +2 -3
  335. package/package.json +3 -3
  336. package/dist/create-props-l5q5b8Wo.cjs +0 -11
  337. /package/dist/{color-B3sgFAa6.d.mts → color-tco923EC.d.mts} +0 -0
  338. /package/dist/{color-BhaNI8oR.d.cts → color-vvN_Cdao.d.cts} +0 -0
  339. /package/dist/{create-anatomy-UNZ__hxH.d.mts → create-anatomy-BedZVdg0.d.mts} +0 -0
  340. /package/dist/{data-url-BrR6WHXH.d.cts → data-url-BLUK2DqG.d.cts} +0 -0
  341. /package/dist/{data-url-lOYkmlVX.d.mts → data-url-Diut2Ch3.d.mts} +0 -0
  342. /package/dist/{functions-Box4pxDB.d.cts → functions-BL9bYIFn.d.mts} +0 -0
  343. /package/dist/{functions-Du4c1Rcz.d.mts → functions-Cm8NiR7H.d.cts} +0 -0
  344. /package/dist/{index-B2rsdD3v.d.cts → index-1L40UHp8.d.mts} +0 -0
  345. /package/dist/{index-DLbWwJUT.d.mts → index-8xpMF4wX.d.mts} +0 -0
  346. /package/dist/{index-DIJJrhP_.d.mts → index-BO-Z3fhz.d.cts} +0 -0
  347. /package/dist/{index-CafmAesU.d.mts → index-BVFlU3b9.d.mts} +0 -0
  348. /package/dist/{index-CXu0elLS.d.mts → index-CGNNiDyE.d.mts} +0 -0
  349. /package/dist/{index-D1U_WMQ9.d.cts → index-CLRsezW5.d.cts} +0 -0
  350. /package/dist/{index-BhEktN_V.d.mts → index-DHp3-EkH.d.mts} +0 -0
  351. /package/dist/{index-Cf0hysnI.d.cts → index-DzWGFhcS.d.cts} +0 -0
  352. /package/dist/{node-BGWAyUGo.d.mts → node--dRqVsA-.d.cts} +0 -0
  353. /package/dist/{node-D8Ztr9Hg.d.cts → node-DkWL2ywA.d.mts} +0 -0
  354. /package/dist/{raf-B8md2utS.d.mts → raf-CrnFMY1g.d.mts} +0 -0
  355. /package/dist/{raf-DWPAf0Nd.d.cts → raf-v6M-OEna.d.cts} +0 -0
  356. /package/dist/{typeahead-BhNtyjQC.d.cts → typeahead-Bbeb1fAR.d.mts} +0 -0
  357. /package/dist/{typeahead-D4TUCBly.d.mts → typeahead-DMooWbbX.d.cts} +0 -0
  358. /package/dist/{types-CBWaEVU4.d.cts → types-9uw8LHpE.d.mts} +0 -0
  359. /package/dist/{types-BM4oVvZZ.d.mts → types-B24gMTKq.d.cts} +0 -0
  360. /package/dist/{types-DTZZ5wsp.d.cts → types-BQMZ4iuP.d.cts} +0 -0
  361. /package/dist/{types-BI1JrN1V.d.mts → types-CLXYEgfm.d.cts} +0 -0
  362. /package/dist/{types-CW-uU8Nz.d.mts → types-Cctd5dol.d.mts} +0 -0
  363. /package/dist/{types-oR0sELNB.d.cts → types-CylWsfOz.d.cts} +0 -0
  364. /package/dist/{types-D0tsc4Jo.d.mts → types-D-7AMgSE.d.cts} +0 -0
  365. /package/dist/{types-DE9w-zbc.d.cts → types-DEn9MoSw.d.cts} +0 -0
  366. /package/dist/{types-Ct9amXkj.d.cts → types-DU764tY_.d.mts} +0 -0
  367. /package/dist/{types-fB7F7BBP.d.cts → types-DUM9rzfD.d.mts} +0 -0
  368. /package/dist/{wait-for-CVZu6XNU.d.mts → wait-for-CV7JYddH.d.mts} +0 -0
  369. /package/dist/{wait-for-D5gBQyam.d.cts → wait-for-DGDBtAM2.d.cts} +0 -0
@@ -1,5 +1,5 @@
1
- const require_file_utils = require('./file-utils-Bkp18nrt.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_file_utils = require("./file-utils-CY6_zVut.cjs");
3
3
  exports.dataURItoBlob = require_file_utils.dataURItoBlob;
4
4
  exports.downloadFile = require_file_utils.downloadFile;
5
5
  exports.getAcceptAttrString = require_file_utils.getAcceptAttrString;
@@ -9,4 +9,4 @@ exports.getFileMimeType = require_file_utils.getFileMimeType;
9
9
  exports.getTotalFileSize = require_file_utils.getTotalFileSize;
10
10
  exports.isFileEqual = require_file_utils.isFileEqual;
11
11
  exports.isValidFileSize = require_file_utils.isValidFileSize;
12
- exports.isValidFileType = require_file_utils.isValidFileType;
12
+ exports.isValidFileType = require_file_utils.isValidFileType;
@@ -1,4 +1,4 @@
1
- import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-oR0sELNB.cjs";
1
+ import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-CylWsfOz.cjs";
2
2
 
3
3
  //#region src/shared/file-utils/data-transfer.d.ts
4
4
  declare const getFileEntries: (items: DataTransferItemList, traverseDirectories: boolean | undefined) => Promise<(File | (File | null)[] | null | undefined)[]>;
@@ -1,4 +1,4 @@
1
- import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-CW-uU8Nz.mjs";
1
+ import { a as FileMimeTypeGroup, c as TextFileMimeType, i as FileMimeType, l as VideoFileMimeType, n as AudioFileMimeType, o as FontFileMimeType, r as FileError, s as ImageFileMimeType, t as ApplicationFileMimeType } from "./types-Cctd5dol.mjs";
2
2
 
3
3
  //#region src/shared/file-utils/data-transfer.d.ts
4
4
  declare const getFileEntries: (items: DataTransferItemList, traverseDirectories: boolean | undefined) => Promise<(File | (File | null)[] | null | undefined)[]>;
@@ -1,3 +1,2 @@
1
- import { a as getTotalFileSize, c as downloadFile, i as isFileEqual, l as dataURItoBlob, n as getFileMimeType, o as getFileDataUrl, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "./file-utils-lcjM-YjV.mjs";
2
-
3
- export { dataURItoBlob, downloadFile, getAcceptAttrString, getFileDataUrl, getFileEntries, getFileMimeType, getTotalFileSize, isFileEqual, isValidFileSize, isValidFileType };
1
+ import { a as getTotalFileSize, c as downloadFile, i as isFileEqual, l as dataURItoBlob, n as getFileMimeType, o as getFileDataUrl, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "./file-utils-VgQ3YV2A.mjs";
2
+ export { dataURItoBlob, downloadFile, getAcceptAttrString, getFileDataUrl, getFileEntries, getFileMimeType, getTotalFileSize, isFileEqual, isValidFileSize, isValidFileType };
@@ -1,6 +1,5 @@
1
- import { $t as getDocument, Gt as hasControllerElements, Kt as isControlledByExpandedController, Q as getTabIndex, Qt as getActiveElement, W as raf, Wt as getControlledElements, Y as getFocusables, ct as addDomEvent, et as getTabbables, nt as isTabbable, pt as getEventTarget, qt as isControlledElement, sn as isDocument, tt as isFocusable } from "./dom-query-CQFBCdpo.mjs";
2
- import { t as _defineProperty } from "./defineProperty-DR_NxfHn.mjs";
3
-
1
+ import { $t as getDocument, Gt as hasControllerElements, Kt as isControlledByExpandedController, Q as getTabIndex, Qt as getActiveElement, W as raf, Wt as getControlledElements, Y as getFocusables, ct as addDomEvent, et as getTabbables, nt as isTabbable, pt as getEventTarget, qt as isControlledElement, sn as isDocument, tt as isFocusable } from "./dom-query-dX8Dakb4.mjs";
2
+ import { t as _defineProperty } from "./defineProperty-D5oW_HU_.mjs";
4
3
  //#region src/shared/focus-trap/focus-trap.ts
5
4
  const activeFocusTraps = {
6
5
  activateTrap(trapStack, trap) {
@@ -452,7 +451,6 @@ const valueOrHandler = (value, ...params) => typeof value === "function" ? value
452
451
  const isEscapeEvent = (event) => !event.isComposing && event.key === "Escape";
453
452
  const delay = (fn) => setTimeout(fn, 0);
454
453
  const isSelectableInput = (node) => node.localName === "input" && "select" in node && typeof node.select === "function";
455
-
456
454
  //#endregion
457
455
  //#region src/shared/focus-trap/index.ts
458
456
  function trapFocus(el, options = {}) {
@@ -480,6 +478,5 @@ function trapFocus(el, options = {}) {
480
478
  cleanup();
481
479
  };
482
480
  }
483
-
484
481
  //#endregion
485
- export { FocusTrap as n, trapFocus as t };
482
+ export { FocusTrap as n, trapFocus as t };
@@ -1,6 +1,5 @@
1
- const require_dom_query = require('./dom-query-CAFhX43H.cjs');
2
- const require_defineProperty = require('./defineProperty-_bOnJOii.cjs');
3
-
1
+ const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
2
+ const require_defineProperty = require("./defineProperty-8IOBQ1i_.cjs");
4
3
  //#region src/shared/focus-trap/focus-trap.ts
5
4
  const activeFocusTraps = {
6
5
  activateTrap(trapStack, trap) {
@@ -452,7 +451,6 @@ const valueOrHandler = (value, ...params) => typeof value === "function" ? value
452
451
  const isEscapeEvent = (event) => !event.isComposing && event.key === "Escape";
453
452
  const delay = (fn) => setTimeout(fn, 0);
454
453
  const isSelectableInput = (node) => node.localName === "input" && "select" in node && typeof node.select === "function";
455
-
456
454
  //#endregion
457
455
  //#region src/shared/focus-trap/index.ts
458
456
  function trapFocus(el, options = {}) {
@@ -480,17 +478,16 @@ function trapFocus(el, options = {}) {
480
478
  cleanup();
481
479
  };
482
480
  }
483
-
484
481
  //#endregion
485
- Object.defineProperty(exports, 'FocusTrap', {
486
- enumerable: true,
487
- get: function () {
488
- return FocusTrap;
489
- }
482
+ Object.defineProperty(exports, "FocusTrap", {
483
+ enumerable: true,
484
+ get: function() {
485
+ return FocusTrap;
486
+ }
487
+ });
488
+ Object.defineProperty(exports, "trapFocus", {
489
+ enumerable: true,
490
+ get: function() {
491
+ return trapFocus;
492
+ }
490
493
  });
491
- Object.defineProperty(exports, 'trapFocus', {
492
- enumerable: true,
493
- get: function () {
494
- return trapFocus;
495
- }
496
- });
@@ -1,5 +1,5 @@
1
- require('./dom-query-CAFhX43H.cjs');
2
- const require_focus_trap = require('./focus-trap-zaIiaoqE.cjs');
3
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("./dom-query-6Wt-Tikf.cjs");
3
+ const require_focus_trap = require("./focus-trap-ClCNF7kY.cjs");
4
4
  exports.FocusTrap = require_focus_trap.FocusTrap;
5
- exports.trapFocus = require_focus_trap.trapFocus;
5
+ exports.trapFocus = require_focus_trap.trapFocus;
@@ -1,4 +1,3 @@
1
- import "./dom-query-CQFBCdpo.mjs";
2
- import { n as FocusTrap, t as trapFocus } from "./focus-trap-BXT0oBtL.mjs";
3
-
4
- export { FocusTrap, trapFocus };
1
+ import "./dom-query-dX8Dakb4.mjs";
2
+ import { n as FocusTrap, t as trapFocus } from "./focus-trap-Cd09JaUn.mjs";
3
+ export { FocusTrap, trapFocus };
@@ -1,5 +1,4 @@
1
- import { $t as getDocument, Et as isVirtualClick, Rt as isMac, in as getWindow, pt as getEventTarget } from "./dom-query-CQFBCdpo.mjs";
2
-
1
+ import { $t as getDocument, Et as isVirtualClick, Rt as isMac, in as getWindow, pt as getEventTarget } from "./dom-query-dX8Dakb4.mjs";
3
2
  //#region src/shared/focus-visible/index.ts
4
3
  function isValidKey(e) {
5
4
  return !(e.metaKey || !isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
@@ -170,6 +169,5 @@ function trackFocusVisible(props = {}) {
170
169
  changeHandlers.delete(handler);
171
170
  };
172
171
  }
173
-
174
172
  //#endregion
175
- export { trackFocusVisible as a, setInteractionModality as i, isFocusVisible as n, trackInteractionModality as o, listenerMap as r, getInteractionModality as t };
173
+ export { trackFocusVisible as a, setInteractionModality as i, isFocusVisible as n, trackInteractionModality as o, listenerMap as r, getInteractionModality as t };
@@ -1,5 +1,4 @@
1
- const require_dom_query = require('./dom-query-CAFhX43H.cjs');
2
-
1
+ const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
3
2
  //#region src/shared/focus-visible/index.ts
4
3
  function isValidKey(e) {
5
4
  return !(e.metaKey || !require_dom_query.isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
@@ -170,41 +169,40 @@ function trackFocusVisible(props = {}) {
170
169
  changeHandlers.delete(handler);
171
170
  };
172
171
  }
173
-
174
172
  //#endregion
175
- Object.defineProperty(exports, 'getInteractionModality', {
176
- enumerable: true,
177
- get: function () {
178
- return getInteractionModality;
179
- }
173
+ Object.defineProperty(exports, "getInteractionModality", {
174
+ enumerable: true,
175
+ get: function() {
176
+ return getInteractionModality;
177
+ }
180
178
  });
181
- Object.defineProperty(exports, 'isFocusVisible', {
182
- enumerable: true,
183
- get: function () {
184
- return isFocusVisible;
185
- }
179
+ Object.defineProperty(exports, "isFocusVisible", {
180
+ enumerable: true,
181
+ get: function() {
182
+ return isFocusVisible;
183
+ }
186
184
  });
187
- Object.defineProperty(exports, 'listenerMap', {
188
- enumerable: true,
189
- get: function () {
190
- return listenerMap;
191
- }
185
+ Object.defineProperty(exports, "listenerMap", {
186
+ enumerable: true,
187
+ get: function() {
188
+ return listenerMap;
189
+ }
192
190
  });
193
- Object.defineProperty(exports, 'setInteractionModality', {
194
- enumerable: true,
195
- get: function () {
196
- return setInteractionModality;
197
- }
191
+ Object.defineProperty(exports, "setInteractionModality", {
192
+ enumerable: true,
193
+ get: function() {
194
+ return setInteractionModality;
195
+ }
198
196
  });
199
- Object.defineProperty(exports, 'trackFocusVisible', {
200
- enumerable: true,
201
- get: function () {
202
- return trackFocusVisible;
203
- }
197
+ Object.defineProperty(exports, "trackFocusVisible", {
198
+ enumerable: true,
199
+ get: function() {
200
+ return trackFocusVisible;
201
+ }
202
+ });
203
+ Object.defineProperty(exports, "trackInteractionModality", {
204
+ enumerable: true,
205
+ get: function() {
206
+ return trackInteractionModality;
207
+ }
204
208
  });
205
- Object.defineProperty(exports, 'trackInteractionModality', {
206
- enumerable: true,
207
- get: function () {
208
- return trackInteractionModality;
209
- }
210
- });
@@ -1,9 +1,9 @@
1
- require('./dom-query-CAFhX43H.cjs');
2
- const require_focus_visible = require('./focus-visible-3pXNNo-l.cjs');
3
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("./dom-query-6Wt-Tikf.cjs");
3
+ const require_focus_visible = require("./focus-visible-CqHoOOjw.cjs");
4
4
  exports.getInteractionModality = require_focus_visible.getInteractionModality;
5
5
  exports.isFocusVisible = require_focus_visible.isFocusVisible;
6
6
  exports.listenerMap = require_focus_visible.listenerMap;
7
7
  exports.setInteractionModality = require_focus_visible.setInteractionModality;
8
8
  exports.trackFocusVisible = require_focus_visible.trackFocusVisible;
9
- exports.trackInteractionModality = require_focus_visible.trackInteractionModality;
9
+ exports.trackInteractionModality = require_focus_visible.trackInteractionModality;
@@ -1,4 +1,3 @@
1
- import "./dom-query-CQFBCdpo.mjs";
2
- import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-DjGDsaLn.mjs";
3
-
4
- export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
1
+ import "./dom-query-dX8Dakb4.mjs";
2
+ import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-CSuBQ5QZ.mjs";
3
+ export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
@@ -1,4 +1,4 @@
1
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/shared/highlight-word/normalize-span.ts
3
3
  const normalizeSpan = (spans, len) => {
4
4
  const result = [];
@@ -21,11 +21,9 @@ const normalizeSpan = (spans, len) => {
21
21
  }
22
22
  return result;
23
23
  };
24
-
25
24
  //#endregion
26
25
  //#region src/shared/highlight-word/escape-regex.ts
27
26
  const escapeRegex = (term) => term.replace(/[|\\{}()[\]^$+*?.-]/g, (char) => `\\${char}`);
28
-
29
27
  //#endregion
30
28
  //#region src/shared/highlight-word/highlight-first.ts
31
29
  function highlightFirst(props) {
@@ -62,7 +60,6 @@ function highlightFirst(props) {
62
60
  match: !!chunk.match
63
61
  }));
64
62
  }
65
-
66
63
  //#endregion
67
64
  //#region src/shared/highlight-word/highlight-multiple.ts
68
65
  const buildRegex = (queryProp, flags, exactMatch) => {
@@ -87,7 +84,6 @@ function highlightMultiple(props) {
87
84
  match: !!chunk.match
88
85
  }));
89
86
  }
90
-
91
87
  //#endregion
92
88
  //#region src/shared/highlight-word/highlight.ts
93
89
  const highlightWord = (props) => {
@@ -95,6 +91,5 @@ const highlightWord = (props) => {
95
91
  if (!props.matchAll && Array.isArray(props.query)) throw new Error("matchAll must be true when using multiple queries");
96
92
  return props.matchAll ? highlightMultiple(props) : highlightFirst(props);
97
93
  };
98
-
99
94
  //#endregion
100
- exports.highlightWord = highlightWord;
95
+ exports.highlightWord = highlightWord;
@@ -20,11 +20,9 @@ const normalizeSpan = (spans, len) => {
20
20
  }
21
21
  return result;
22
22
  };
23
-
24
23
  //#endregion
25
24
  //#region src/shared/highlight-word/escape-regex.ts
26
25
  const escapeRegex = (term) => term.replace(/[|\\{}()[\]^$+*?.-]/g, (char) => `\\${char}`);
27
-
28
26
  //#endregion
29
27
  //#region src/shared/highlight-word/highlight-first.ts
30
28
  function highlightFirst(props) {
@@ -61,7 +59,6 @@ function highlightFirst(props) {
61
59
  match: !!chunk.match
62
60
  }));
63
61
  }
64
-
65
62
  //#endregion
66
63
  //#region src/shared/highlight-word/highlight-multiple.ts
67
64
  const buildRegex = (queryProp, flags, exactMatch) => {
@@ -86,7 +83,6 @@ function highlightMultiple(props) {
86
83
  match: !!chunk.match
87
84
  }));
88
85
  }
89
-
90
86
  //#endregion
91
87
  //#region src/shared/highlight-word/highlight.ts
92
88
  const highlightWord = (props) => {
@@ -94,6 +90,5 @@ const highlightWord = (props) => {
94
90
  if (!props.matchAll && Array.isArray(props.query)) throw new Error("matchAll must be true when using multiple queries");
95
91
  return props.matchAll ? highlightMultiple(props) : highlightFirst(props);
96
92
  };
97
-
98
93
  //#endregion
99
- export { highlightWord };
94
+ export { highlightWord };
package/dist/hotkeys.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_defineProperty = require('./defineProperty-_bOnJOii.cjs');
2
-
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_defineProperty = require("./defineProperty-8IOBQ1i_.cjs");
3
3
  //#region src/shared/hotkeys/modifier.ts
4
4
  const MODIFIER_NORMALIZATION_MAP = new Map([
5
5
  ["ctrl", "Control"],
@@ -33,7 +33,6 @@ function resolveControlOrMeta(key, platform) {
33
33
  function isModKey(key) {
34
34
  return key.toLowerCase() === "mod" || key.toLowerCase() === "controlormeta";
35
35
  }
36
-
37
36
  //#endregion
38
37
  //#region src/shared/hotkeys/normalize.ts
39
38
  function normalizeKey(eventKey) {
@@ -75,7 +74,6 @@ const KEY_NORMALIZATION_MAP = new Map([
75
74
  ["ins", "Insert"],
76
75
  ["insert", "Insert"]
77
76
  ]);
78
-
79
77
  //#endregion
80
78
  //#region src/shared/hotkeys/key-to-code.ts
81
79
  function keyToCode(key) {
@@ -119,7 +117,6 @@ const SPECIAL_KEY_CODES = new Map([
119
117
  [".", "Period"],
120
118
  ["/", "Slash"]
121
119
  ]);
122
-
123
120
  //#endregion
124
121
  //#region src/shared/hotkeys/utils.ts
125
122
  const typeOf = (value) => Object.prototype.toString.call(value).slice(8, -1);
@@ -136,8 +133,6 @@ const FORM_TAGS = new Set([
136
133
  "select"
137
134
  ]);
138
135
  const isFormTag = (tagName) => FORM_TAGS.has(tagName);
139
- const MODIFIER_SEPARATOR = "+";
140
- const SEQUENCE_SEPARATOR = ">";
141
136
  const isHTMLElement = (target) => {
142
137
  return target !== null && typeof target === "object" && "localName" in target && "nodeType" in target && target.nodeType === 1;
143
138
  };
@@ -152,11 +147,10 @@ const toArray = (value) => {
152
147
  if (Array.isArray(value)) return value.filter((item) => item !== void 0);
153
148
  return value !== void 0 ? [value] : [];
154
149
  };
155
-
156
150
  //#endregion
157
151
  //#region src/shared/hotkeys/parser.ts
158
152
  function parseHotkeyString(hotkey, platform) {
159
- const parts = hotkey.split(MODIFIER_SEPARATOR);
153
+ const parts = hotkey.split("+");
160
154
  const modifiers = [];
161
155
  let keyIndex = parts.length - 1;
162
156
  for (let i = 0; i < parts.length - 1; i++) {
@@ -174,18 +168,18 @@ function parseHotkeyString(hotkey, platform) {
174
168
  }
175
169
  return {
176
170
  modifiers,
177
- key: parts.slice(keyIndex).join(MODIFIER_SEPARATOR).trim()
171
+ key: parts.slice(keyIndex).join("+").trim()
178
172
  };
179
173
  }
180
174
  function parseHotkey(hotkey, platform) {
181
- if (hotkey.includes(SEQUENCE_SEPARATOR)) {
182
- const sequenceParts = hotkey.split(SEQUENCE_SEPARATOR);
175
+ if (hotkey.includes(">")) {
176
+ const sequenceParts = hotkey.split(">");
183
177
  const sequenceSteps = [];
184
178
  const allKeys = [];
185
179
  const allCodes = [];
186
180
  for (const rawPart of sequenceParts) {
187
181
  const part = rawPart.trim();
188
- if (part.includes(MODIFIER_SEPARATOR)) {
182
+ if (part.includes("+")) {
189
183
  const { modifiers, key } = parseHotkeyString(part, platform);
190
184
  const step = {
191
185
  key: normalizeKey(key),
@@ -261,7 +255,7 @@ function parseHotkey(hotkey, platform) {
261
255
  result.shift = true;
262
256
  break;
263
257
  }
264
- if (key && key !== SEQUENCE_SEPARATOR) {
258
+ if (key && key !== ">") {
265
259
  const normalizedKey = normalizeKey(key);
266
260
  result.keys.push(normalizedKey);
267
261
  const code = keyToCode(normalizedKey);
@@ -311,7 +305,6 @@ function getHotkeyPriority(parsed) {
311
305
  priority += parsed.keys.length * 10;
312
306
  return priority;
313
307
  }
314
-
315
308
  //#endregion
316
309
  //#region src/shared/hotkeys/store.ts
317
310
  const defaultOptions = {
@@ -498,7 +491,7 @@ var HotkeyStore = class {
498
491
  return [...this.state.pressedKeys];
499
492
  }
500
493
  updateParsedHotkeys() {
501
- for (const command of this.state.commands.values()) if (command.hotkey.split(MODIFIER_SEPARATOR).some((part) => isModKey(part.trim()))) {
494
+ for (const command of this.state.commands.values()) if (command.hotkey.split("+").some((part) => isModKey(part.trim()))) {
502
495
  const parsed = parseHotkey(command.hotkey, this.platform);
503
496
  command._parsed = parsed;
504
497
  command._priority = getHotkeyPriority(parsed);
@@ -676,7 +669,6 @@ function createHotkeyStore(options) {
676
669
  if (options?.rootNode) store.init(options);
677
670
  return store;
678
671
  }
679
-
680
672
  //#endregion
681
673
  //#region src/shared/hotkeys/format.ts
682
674
  const PLATFORM_MODIFIERS = {
@@ -723,7 +715,7 @@ const KEY_NAMES = new Map([
723
715
  function formatHotkey(hotkey, options = {}) {
724
716
  const { platform = "auto", style = "mixed", separator = " ", sequenceSeparator = " then ", useShortNames = true } = options;
725
717
  const targetPlatform = platform === "auto" ? getPlatform() : platform;
726
- if (hotkey.includes(SEQUENCE_SEPARATOR)) return hotkey.split(SEQUENCE_SEPARATOR).map((part) => formatSingleHotkey(part.trim(), targetPlatform, style, separator, useShortNames)).join(sequenceSeparator);
718
+ if (hotkey.includes(">")) return hotkey.split(">").map((part) => formatSingleHotkey(part.trim(), targetPlatform, style, separator, useShortNames)).join(sequenceSeparator);
727
719
  return formatSingleHotkey(hotkey, targetPlatform, style, separator, useShortNames);
728
720
  }
729
721
  function formatSingleHotkey(hotkey, platform, style, separator, useShortNames) {
@@ -749,10 +741,9 @@ function formatSingleHotkey(hotkey, platform, style, separator, useShortNames) {
749
741
  });
750
742
  return [...formattedModifiers, ...formattedKeys].join(separator);
751
743
  }
752
-
753
744
  //#endregion
754
745
  exports.HotkeyStore = HotkeyStore;
755
746
  exports.createHotkeyStore = createHotkeyStore;
756
747
  exports.formatHotkey = formatHotkey;
757
748
  exports.isHotKey = isHotKey;
758
- exports.parseHotkey = parseHotkey;
749
+ exports.parseHotkey = parseHotkey;
package/dist/hotkeys.mjs CHANGED
@@ -1,5 +1,4 @@
1
- import { t as _defineProperty } from "./defineProperty-DR_NxfHn.mjs";
2
-
1
+ import { t as _defineProperty } from "./defineProperty-D5oW_HU_.mjs";
3
2
  //#region src/shared/hotkeys/modifier.ts
4
3
  const MODIFIER_NORMALIZATION_MAP = new Map([
5
4
  ["ctrl", "Control"],
@@ -33,7 +32,6 @@ function resolveControlOrMeta(key, platform) {
33
32
  function isModKey(key) {
34
33
  return key.toLowerCase() === "mod" || key.toLowerCase() === "controlormeta";
35
34
  }
36
-
37
35
  //#endregion
38
36
  //#region src/shared/hotkeys/normalize.ts
39
37
  function normalizeKey(eventKey) {
@@ -75,7 +73,6 @@ const KEY_NORMALIZATION_MAP = new Map([
75
73
  ["ins", "Insert"],
76
74
  ["insert", "Insert"]
77
75
  ]);
78
-
79
76
  //#endregion
80
77
  //#region src/shared/hotkeys/key-to-code.ts
81
78
  function keyToCode(key) {
@@ -119,7 +116,6 @@ const SPECIAL_KEY_CODES = new Map([
119
116
  [".", "Period"],
120
117
  ["/", "Slash"]
121
118
  ]);
122
-
123
119
  //#endregion
124
120
  //#region src/shared/hotkeys/utils.ts
125
121
  const typeOf = (value) => Object.prototype.toString.call(value).slice(8, -1);
@@ -136,8 +132,6 @@ const FORM_TAGS = new Set([
136
132
  "select"
137
133
  ]);
138
134
  const isFormTag = (tagName) => FORM_TAGS.has(tagName);
139
- const MODIFIER_SEPARATOR = "+";
140
- const SEQUENCE_SEPARATOR = ">";
141
135
  const isHTMLElement = (target) => {
142
136
  return target !== null && typeof target === "object" && "localName" in target && "nodeType" in target && target.nodeType === 1;
143
137
  };
@@ -152,11 +146,10 @@ const toArray = (value) => {
152
146
  if (Array.isArray(value)) return value.filter((item) => item !== void 0);
153
147
  return value !== void 0 ? [value] : [];
154
148
  };
155
-
156
149
  //#endregion
157
150
  //#region src/shared/hotkeys/parser.ts
158
151
  function parseHotkeyString(hotkey, platform) {
159
- const parts = hotkey.split(MODIFIER_SEPARATOR);
152
+ const parts = hotkey.split("+");
160
153
  const modifiers = [];
161
154
  let keyIndex = parts.length - 1;
162
155
  for (let i = 0; i < parts.length - 1; i++) {
@@ -174,18 +167,18 @@ function parseHotkeyString(hotkey, platform) {
174
167
  }
175
168
  return {
176
169
  modifiers,
177
- key: parts.slice(keyIndex).join(MODIFIER_SEPARATOR).trim()
170
+ key: parts.slice(keyIndex).join("+").trim()
178
171
  };
179
172
  }
180
173
  function parseHotkey(hotkey, platform) {
181
- if (hotkey.includes(SEQUENCE_SEPARATOR)) {
182
- const sequenceParts = hotkey.split(SEQUENCE_SEPARATOR);
174
+ if (hotkey.includes(">")) {
175
+ const sequenceParts = hotkey.split(">");
183
176
  const sequenceSteps = [];
184
177
  const allKeys = [];
185
178
  const allCodes = [];
186
179
  for (const rawPart of sequenceParts) {
187
180
  const part = rawPart.trim();
188
- if (part.includes(MODIFIER_SEPARATOR)) {
181
+ if (part.includes("+")) {
189
182
  const { modifiers, key } = parseHotkeyString(part, platform);
190
183
  const step = {
191
184
  key: normalizeKey(key),
@@ -261,7 +254,7 @@ function parseHotkey(hotkey, platform) {
261
254
  result.shift = true;
262
255
  break;
263
256
  }
264
- if (key && key !== SEQUENCE_SEPARATOR) {
257
+ if (key && key !== ">") {
265
258
  const normalizedKey = normalizeKey(key);
266
259
  result.keys.push(normalizedKey);
267
260
  const code = keyToCode(normalizedKey);
@@ -311,7 +304,6 @@ function getHotkeyPriority(parsed) {
311
304
  priority += parsed.keys.length * 10;
312
305
  return priority;
313
306
  }
314
-
315
307
  //#endregion
316
308
  //#region src/shared/hotkeys/store.ts
317
309
  const defaultOptions = {
@@ -498,7 +490,7 @@ var HotkeyStore = class {
498
490
  return [...this.state.pressedKeys];
499
491
  }
500
492
  updateParsedHotkeys() {
501
- for (const command of this.state.commands.values()) if (command.hotkey.split(MODIFIER_SEPARATOR).some((part) => isModKey(part.trim()))) {
493
+ for (const command of this.state.commands.values()) if (command.hotkey.split("+").some((part) => isModKey(part.trim()))) {
502
494
  const parsed = parseHotkey(command.hotkey, this.platform);
503
495
  command._parsed = parsed;
504
496
  command._priority = getHotkeyPriority(parsed);
@@ -676,7 +668,6 @@ function createHotkeyStore(options) {
676
668
  if (options?.rootNode) store.init(options);
677
669
  return store;
678
670
  }
679
-
680
671
  //#endregion
681
672
  //#region src/shared/hotkeys/format.ts
682
673
  const PLATFORM_MODIFIERS = {
@@ -723,7 +714,7 @@ const KEY_NAMES = new Map([
723
714
  function formatHotkey(hotkey, options = {}) {
724
715
  const { platform = "auto", style = "mixed", separator = " ", sequenceSeparator = " then ", useShortNames = true } = options;
725
716
  const targetPlatform = platform === "auto" ? getPlatform() : platform;
726
- if (hotkey.includes(SEQUENCE_SEPARATOR)) return hotkey.split(SEQUENCE_SEPARATOR).map((part) => formatSingleHotkey(part.trim(), targetPlatform, style, separator, useShortNames)).join(sequenceSeparator);
717
+ if (hotkey.includes(">")) return hotkey.split(">").map((part) => formatSingleHotkey(part.trim(), targetPlatform, style, separator, useShortNames)).join(sequenceSeparator);
727
718
  return formatSingleHotkey(hotkey, targetPlatform, style, separator, useShortNames);
728
719
  }
729
720
  function formatSingleHotkey(hotkey, platform, style, separator, useShortNames) {
@@ -749,6 +740,5 @@ function formatSingleHotkey(hotkey, platform, style, separator, useShortNames) {
749
740
  });
750
741
  return [...formattedModifiers, ...formattedKeys].join(separator);
751
742
  }
752
-
753
743
  //#endregion
754
- export { HotkeyStore, createHotkeyStore, formatHotkey, isHotKey, parseHotkey };
744
+ export { HotkeyStore, createHotkeyStore, formatHotkey, isHotKey, parseHotkey };