@sprawlify/primitives 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anatomy.cjs +3 -3
- package/dist/anatomy.d.mts +1 -1
- package/dist/anatomy.mjs +2 -3
- package/dist/{aria-hidden-Csp0PkO_.mjs → aria-hidden-P3kaF8gG.mjs} +2 -6
- package/dist/{aria-hidden-CHWfuKk2.cjs → aria-hidden-UJAPt1aA.cjs} +7 -11
- package/dist/aria-hidden.cjs +4 -4
- package/dist/aria-hidden.mjs +3 -4
- package/dist/{auto-resize-jPUJLPa4.mjs → auto-resize-Bjzuo5Lh.mjs} +2 -6
- package/dist/{auto-resize-BL8ul-hb.cjs → auto-resize-DzPXdyR-.cjs} +12 -16
- package/dist/auto-resize.cjs +4 -4
- package/dist/auto-resize.mjs +3 -4
- package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
- package/dist/{collection-DHyEg4g5.mjs → collection-CcsrqDFY.mjs} +3 -9
- package/dist/{collection-Fkg4kgPn.cjs → collection-DZeodezM.cjs} +43 -49
- package/dist/collection.cjs +4 -4
- package/dist/collection.d.cts +4 -4
- package/dist/collection.d.mts +4 -4
- package/dist/collection.mjs +3 -4
- package/dist/{color-utils-CaqLeEog.mjs → color-utils-BK3Ae7x1.mjs} +3 -12
- package/dist/{color-utils-eUlz6Gq4.cjs → color-utils-XoYeFX3g.cjs} +23 -32
- package/dist/color-utils.cjs +4 -4
- package/dist/color-utils.d.cts +1 -1
- package/dist/color-utils.d.mts +1 -1
- package/dist/color-utils.mjs +3 -4
- package/dist/{core-CHsDFMV3.cjs → core-BiGlJ-4W.cjs} +43 -49
- package/dist/{core-owywCQ2e.mjs → core-DfVajPnu.mjs} +3 -9
- package/dist/core.cjs +5 -5
- package/dist/core.d.cts +2 -2
- package/dist/core.d.mts +2 -2
- package/dist/core.mjs +4 -5
- package/dist/{create-anatomy-CDsIFUXg.cjs → create-anatomy-BnwEmNnc.cjs} +6 -8
- package/dist/{create-anatomy-BVqM_FJ6.mjs → create-anatomy-Dr0evdYy.mjs} +1 -2
- package/dist/{create-props-Dtoa4OUk.mjs → create-props-DFW8DUsC.mjs} +1 -2
- package/dist/create-props-DP39rHnH.cjs +9 -0
- package/dist/{date-utils-BDBOiT_6.cjs → date-utils-BuJkKL09.cjs} +265 -279
- package/dist/{date-utils-LnVS7q0z.mjs → date-utils-DCaRa_Ry.mjs} +1 -15
- package/dist/date-utils.cjs +3 -3
- package/dist/date-utils.d.cts +1 -1
- package/dist/date-utils.d.mts +1 -1
- package/dist/date-utils.mjs +2 -3
- package/dist/{defineProperty-_bOnJOii.cjs → defineProperty-8IOBQ1i_.cjs} +10 -15
- package/dist/{defineProperty-DR_NxfHn.mjs → defineProperty-D5oW_HU_.mjs} +5 -9
- package/dist/{dismissable-BlZazbp3.mjs → dismissable-BAYaXwxZ.mjs} +4 -9
- package/dist/{dismissable-DSFGuAU6.cjs → dismissable-DPXx0m0m.cjs} +14 -19
- package/dist/{dismissable-layer-B2bSyA07.d.cts → dismissable-layer-ZgyqN8AD.d.cts} +2 -2
- package/dist/{dismissable-layer-CpUMMV1f.d.mts → dismissable-layer-h14gHVbJ.d.mts} +2 -2
- package/dist/dismissable.cjs +6 -6
- package/dist/dismissable.d.cts +2 -2
- package/dist/dismissable.d.mts +2 -2
- package/dist/dismissable.mjs +5 -6
- package/dist/{dom-query-CAFhX43H.cjs → dom-query-6Wt-Tikf.cjs} +775 -806
- package/dist/{dom-query-CQFBCdpo.mjs → dom-query-dX8Dakb4.mjs} +2 -33
- package/dist/dom-query.cjs +3 -3
- package/dist/dom-query.d.cts +6 -6
- package/dist/dom-query.d.mts +6 -6
- package/dist/dom-query.mjs +2 -3
- package/dist/{file-utils-Bkp18nrt.cjs → file-utils-CY6_zVut.cjs} +52 -67
- package/dist/{file-utils-lcjM-YjV.mjs → file-utils-VgQ3YV2A.mjs} +2 -16
- package/dist/file-utils.cjs +3 -3
- package/dist/file-utils.d.cts +1 -1
- package/dist/file-utils.d.mts +1 -1
- package/dist/file-utils.mjs +2 -3
- package/dist/{focus-trap-BXT0oBtL.mjs → focus-trap-Cd09JaUn.mjs} +3 -6
- package/dist/{focus-trap-zaIiaoqE.cjs → focus-trap-ClCNF7kY.cjs} +13 -16
- package/dist/focus-trap.cjs +4 -4
- package/dist/focus-trap.mjs +3 -4
- package/dist/{focus-visible-DjGDsaLn.mjs → focus-visible-CSuBQ5QZ.mjs} +2 -4
- package/dist/{focus-visible-3pXNNo-l.cjs → focus-visible-CqHoOOjw.cjs} +32 -34
- package/dist/focus-visible.cjs +4 -4
- package/dist/focus-visible.mjs +3 -4
- package/dist/highlight-word.cjs +2 -7
- package/dist/highlight-word.mjs +1 -6
- package/dist/hotkeys.cjs +11 -20
- package/dist/hotkeys.mjs +10 -20
- package/dist/{i18n-utils-KuoJj66z.mjs → i18n-utils-DHGN_KCY.mjs} +2 -14
- package/dist/{i18n-utils-CK27xonZ.cjs → i18n-utils-Dm8cGCol.cjs} +57 -69
- package/dist/i18n-utils.cjs +4 -4
- package/dist/i18n-utils.mjs +3 -4
- package/dist/index.mjs +1 -1
- package/dist/{interact-outside-CRmkKF6k.mjs → interact-outside-C-8lOhpV.mjs} +3 -6
- package/dist/{interact-outside-Dk2otQqs.cjs → interact-outside-DRaFGdMg.cjs} +8 -11
- package/dist/interact-outside.cjs +5 -5
- package/dist/interact-outside.d.cts +1 -1
- package/dist/interact-outside.d.mts +1 -1
- package/dist/interact-outside.mjs +4 -5
- package/dist/json-tree-utils.cjs +6 -11
- package/dist/json-tree-utils.mjs +5 -10
- package/dist/{list-collection-C9XUe75n.d.mts → list-collection-B_8BN0XB.d.cts} +1 -1
- package/dist/{list-collection-DwMgPYoA.d.cts → list-collection-DkRA5LOq.d.mts} +1 -1
- package/dist/{live-region-2RiuzOr-.cjs → live-region-TGReV9nm.cjs} +6 -8
- package/dist/{live-region-CBp2K1JK.mjs → live-region-TgEDzvS4.mjs} +1 -2
- package/dist/live-region.cjs +3 -3
- package/dist/live-region.d.cts +1 -1
- package/dist/live-region.d.mts +1 -1
- package/dist/live-region.mjs +2 -3
- package/dist/machines/accordion/index.cjs +7 -12
- package/dist/machines/accordion/index.d.cts +2 -2
- package/dist/machines/accordion/index.d.mts +3 -3
- package/dist/machines/accordion/index.mjs +6 -12
- package/dist/machines/angle-slider/index.cjs +13 -23
- package/dist/machines/angle-slider/index.d.cts +3 -3
- package/dist/machines/angle-slider/index.d.mts +4 -4
- package/dist/machines/angle-slider/index.mjs +12 -23
- package/dist/machines/aspect-ratio/index.cjs +7 -12
- package/dist/machines/aspect-ratio/index.d.cts +2 -2
- package/dist/machines/aspect-ratio/index.d.mts +3 -3
- package/dist/machines/aspect-ratio/index.mjs +6 -12
- package/dist/machines/async-list/index.cjs +5 -7
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +4 -7
- package/dist/machines/avatar/index.cjs +7 -12
- package/dist/machines/avatar/index.d.cts +2 -2
- package/dist/machines/avatar/index.d.mts +3 -3
- package/dist/machines/avatar/index.mjs +6 -12
- package/dist/machines/bottom-sheet/index.cjs +13 -22
- package/dist/machines/bottom-sheet/index.d.cts +5 -5
- package/dist/machines/bottom-sheet/index.d.mts +6 -6
- package/dist/machines/bottom-sheet/index.mjs +12 -22
- package/dist/machines/carousel/index.cjs +8 -13
- package/dist/machines/carousel/index.d.cts +3 -3
- package/dist/machines/carousel/index.d.mts +4 -4
- package/dist/machines/carousel/index.mjs +7 -13
- package/dist/machines/checkbox/index.cjs +8 -13
- package/dist/machines/checkbox/index.d.cts +3 -3
- package/dist/machines/checkbox/index.d.mts +4 -4
- package/dist/machines/checkbox/index.mjs +7 -13
- package/dist/machines/clipboard/index.cjs +7 -12
- package/dist/machines/clipboard/index.d.cts +3 -3
- package/dist/machines/clipboard/index.d.mts +4 -4
- package/dist/machines/clipboard/index.mjs +6 -12
- package/dist/machines/collapsible/index.cjs +7 -12
- package/dist/machines/collapsible/index.d.cts +3 -3
- package/dist/machines/collapsible/index.d.mts +4 -4
- package/dist/machines/collapsible/index.mjs +6 -12
- package/dist/machines/color-picker/index.cjs +11 -21
- package/dist/machines/color-picker/index.d.cts +6 -6
- package/dist/machines/color-picker/index.d.mts +7 -7
- package/dist/machines/color-picker/index.mjs +10 -21
- package/dist/machines/combobox/index.cjs +11 -17
- package/dist/machines/combobox/index.d.cts +7 -7
- package/dist/machines/combobox/index.d.mts +8 -8
- package/dist/machines/combobox/index.mjs +10 -17
- package/dist/machines/date-picker/index.cjs +15 -24
- package/dist/machines/date-picker/index.d.cts +7 -7
- package/dist/machines/date-picker/index.d.mts +8 -8
- package/dist/machines/date-picker/index.mjs +13 -23
- package/dist/machines/dialog/index.cjs +12 -17
- package/dist/machines/dialog/index.d.cts +5 -5
- package/dist/machines/dialog/index.d.mts +6 -6
- package/dist/machines/dialog/index.mjs +11 -17
- package/dist/machines/dropdown-menu/index.cjs +12 -18
- package/dist/machines/dropdown-menu/index.d.cts +8 -8
- package/dist/machines/dropdown-menu/index.d.mts +9 -9
- package/dist/machines/dropdown-menu/index.mjs +11 -18
- package/dist/machines/editable/index.cjs +8 -13
- package/dist/machines/editable/index.d.cts +3 -3
- package/dist/machines/editable/index.d.mts +4 -4
- package/dist/machines/editable/index.mjs +7 -13
- package/dist/machines/file-upload/index.cjs +9 -15
- package/dist/machines/file-upload/index.d.cts +4 -4
- package/dist/machines/file-upload/index.d.mts +5 -5
- package/dist/machines/file-upload/index.mjs +8 -15
- package/dist/machines/floating-panel/index.cjs +9 -16
- package/dist/machines/floating-panel/index.d.cts +4 -4
- package/dist/machines/floating-panel/index.d.mts +5 -5
- package/dist/machines/floating-panel/index.mjs +8 -16
- package/dist/machines/hover-card/index.cjs +10 -15
- package/dist/machines/hover-card/index.d.cts +5 -5
- package/dist/machines/hover-card/index.d.mts +6 -6
- package/dist/machines/hover-card/index.mjs +9 -15
- package/dist/machines/image-cropper/index.cjs +8 -16
- package/dist/machines/image-cropper/index.d.cts +2 -2
- package/dist/machines/image-cropper/index.d.mts +3 -3
- package/dist/machines/image-cropper/index.mjs +7 -16
- package/dist/machines/listbox/index.cjs +9 -15
- package/dist/machines/listbox/index.d.cts +7 -7
- package/dist/machines/listbox/index.d.mts +8 -8
- package/dist/machines/listbox/index.mjs +8 -15
- package/dist/machines/marquee/index.cjs +7 -13
- package/dist/machines/marquee/index.d.cts +5 -5
- package/dist/machines/marquee/index.d.mts +6 -6
- package/dist/machines/marquee/index.mjs +6 -13
- package/dist/machines/navigation-menu/index.cjs +15 -27
- package/dist/machines/navigation-menu/index.d.cts +3 -3
- package/dist/machines/navigation-menu/index.d.mts +4 -4
- package/dist/machines/navigation-menu/index.mjs +14 -27
- package/dist/machines/number-input/index.cjs +11 -21
- package/dist/machines/number-input/index.d.cts +3 -3
- package/dist/machines/number-input/index.d.mts +4 -4
- package/dist/machines/number-input/index.mjs +10 -22
- package/dist/machines/pagination/index.cjs +7 -13
- package/dist/machines/pagination/index.d.cts +3 -3
- package/dist/machines/pagination/index.d.mts +4 -4
- package/dist/machines/pagination/index.mjs +6 -13
- package/dist/machines/password-input/index.cjs +7 -12
- package/dist/machines/password-input/index.d.cts +3 -3
- package/dist/machines/password-input/index.d.mts +4 -4
- package/dist/machines/password-input/index.mjs +6 -12
- package/dist/machines/pin-input/index.cjs +9 -17
- package/dist/machines/pin-input/index.d.cts +2 -2
- package/dist/machines/pin-input/index.d.mts +3 -3
- package/dist/machines/pin-input/index.mjs +8 -17
- package/dist/machines/popover/index.cjs +13 -18
- package/dist/machines/popover/index.d.cts +6 -6
- package/dist/machines/popover/index.d.mts +7 -7
- package/dist/machines/popover/index.mjs +12 -18
- package/dist/machines/presence/index.cjs +6 -9
- package/dist/machines/presence/index.d.cts +2 -2
- package/dist/machines/presence/index.d.mts +2 -2
- package/dist/machines/presence/index.mjs +5 -9
- package/dist/machines/progress/index.cjs +7 -12
- package/dist/machines/progress/index.d.cts +3 -3
- package/dist/machines/progress/index.d.mts +4 -4
- package/dist/machines/progress/index.mjs +6 -12
- package/dist/machines/qr-code/index.cjs +8 -13
- package/dist/machines/qr-code/index.d.cts +3 -3
- package/dist/machines/qr-code/index.d.mts +4 -4
- package/dist/machines/qr-code/index.mjs +6 -12
- package/dist/machines/radio-group/index.cjs +8 -13
- package/dist/machines/radio-group/index.d.cts +3 -3
- package/dist/machines/radio-group/index.d.mts +4 -4
- package/dist/machines/radio-group/index.mjs +7 -13
- package/dist/machines/rating-group/index.cjs +7 -12
- package/dist/machines/rating-group/index.d.cts +2 -2
- package/dist/machines/rating-group/index.d.mts +3 -3
- package/dist/machines/rating-group/index.mjs +6 -12
- package/dist/machines/scroll-area/index.cjs +8 -20
- package/dist/machines/scroll-area/index.d.cts +3 -3
- package/dist/machines/scroll-area/index.d.mts +4 -4
- package/dist/machines/scroll-area/index.mjs +7 -20
- package/dist/machines/select/index.cjs +11 -17
- package/dist/machines/select/index.d.cts +8 -8
- package/dist/machines/select/index.d.mts +9 -9
- package/dist/machines/select/index.mjs +10 -17
- package/dist/machines/separator/index.cjs +7 -12
- package/dist/machines/separator/index.d.cts +2 -2
- package/dist/machines/separator/index.d.mts +3 -3
- package/dist/machines/separator/index.mjs +6 -12
- package/dist/machines/signature-pad/index.cjs +8 -14
- package/dist/machines/signature-pad/index.d.cts +3 -3
- package/dist/machines/signature-pad/index.d.mts +4 -4
- package/dist/machines/signature-pad/index.mjs +6 -13
- package/dist/machines/slider/index.cjs +7 -14
- package/dist/machines/slider/index.d.cts +3 -3
- package/dist/machines/slider/index.d.mts +4 -4
- package/dist/machines/slider/index.mjs +6 -14
- package/dist/machines/splitter/index.cjs +12 -27
- package/dist/machines/splitter/index.d.cts +2 -2
- package/dist/machines/splitter/index.d.mts +3 -3
- package/dist/machines/splitter/index.mjs +11 -27
- package/dist/machines/steps/index.cjs +7 -12
- package/dist/machines/steps/index.d.cts +3 -3
- package/dist/machines/steps/index.d.mts +4 -4
- package/dist/machines/steps/index.mjs +6 -12
- package/dist/machines/switch/index.cjs +8 -13
- package/dist/machines/switch/index.d.cts +3 -3
- package/dist/machines/switch/index.d.mts +4 -4
- package/dist/machines/switch/index.mjs +7 -13
- package/dist/machines/tabs/index.cjs +7 -12
- package/dist/machines/tabs/index.d.cts +3 -3
- package/dist/machines/tabs/index.d.mts +4 -4
- package/dist/machines/tabs/index.mjs +6 -12
- package/dist/machines/tags-input/index.cjs +11 -17
- package/dist/machines/tags-input/index.d.cts +5 -5
- package/dist/machines/tags-input/index.d.mts +6 -6
- package/dist/machines/tags-input/index.mjs +10 -17
- package/dist/machines/timer/index.cjs +7 -13
- package/dist/machines/timer/index.d.cts +3 -3
- package/dist/machines/timer/index.d.mts +4 -4
- package/dist/machines/timer/index.mjs +6 -13
- package/dist/machines/toast/index.cjs +8 -17
- package/dist/machines/toast/index.d.cts +4 -4
- package/dist/machines/toast/index.d.mts +5 -5
- package/dist/machines/toast/index.mjs +7 -17
- package/dist/machines/toggle/index.cjs +7 -11
- package/dist/machines/toggle/index.d.cts +2 -2
- package/dist/machines/toggle/index.d.mts +3 -3
- package/dist/machines/toggle/index.mjs +6 -11
- package/dist/machines/toggle-group/index.cjs +7 -12
- package/dist/machines/toggle-group/index.d.cts +2 -2
- package/dist/machines/toggle-group/index.d.mts +3 -3
- package/dist/machines/toggle-group/index.mjs +6 -12
- package/dist/machines/tooltip/index.cjs +9 -15
- package/dist/machines/tooltip/index.d.cts +4 -4
- package/dist/machines/tooltip/index.d.mts +5 -5
- package/dist/machines/tooltip/index.mjs +8 -15
- package/dist/machines/tour/index.cjs +11 -20
- package/dist/machines/tour/index.d.cts +6 -6
- package/dist/machines/tour/index.d.mts +7 -7
- package/dist/machines/tour/index.mjs +10 -20
- package/dist/machines/tree-view/index.cjs +8 -17
- package/dist/machines/tree-view/index.d.cts +6 -6
- package/dist/machines/tree-view/index.d.mts +7 -7
- package/dist/machines/tree-view/index.mjs +7 -17
- package/dist/{popper-DxgokNha.mjs → popper-CfOHZlHP.mjs} +3 -9
- package/dist/{popper-CY3ptPbm.cjs → popper-zq1F_iY8.cjs} +24 -30
- package/dist/popper.cjs +5 -5
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +4 -5
- package/dist/{rect-utils-BobE6Wut.mjs → rect-utils-B5xqFvKC.mjs} +2 -24
- package/dist/{rect-utils-DtqZwNtZ.cjs → rect-utils-D3RkAaHK.cjs} +247 -269
- package/dist/rect-utils.cjs +3 -3
- package/dist/rect-utils.d.cts +1 -1
- package/dist/rect-utils.d.mts +1 -1
- package/dist/rect-utils.mjs +2 -3
- package/dist/{remove-scroll-DgJgF1C5.cjs → remove-scroll-B8AJyezV.cjs} +7 -9
- package/dist/{remove-scroll-DcPV6nZy.mjs → remove-scroll-DCUb1JPX.mjs} +2 -4
- package/dist/remove-scroll.mjs +1 -1
- package/dist/{scroll-snap-D_M1Q8ZQ.mjs → scroll-snap-De0H9CWU.mjs} +2 -4
- package/dist/{scroll-snap-DpEzlrHP.cjs → scroll-snap-voc0pMJd.cjs} +22 -24
- package/dist/scroll-snap.cjs +4 -4
- package/dist/scroll-snap.mjs +3 -4
- package/dist/{selection-wfybIxD3.d.cts → selection-Bb_ZSVxe.d.cts} +2 -2
- package/dist/{selection-CPTdpru8.d.mts → selection-DdNvrKbj.d.mts} +2 -2
- package/dist/{store-DMXvGOAu.mjs → store-BRn2zWDR.mjs} +1 -7
- package/dist/{store-B9Ewi-zx.cjs → store-k8bn_TOl.cjs} +37 -43
- package/dist/store.cjs +3 -3
- package/dist/store.mjs +2 -3
- package/dist/stringify-state.cjs +3 -4
- package/dist/stringify-state.mjs +1 -3
- package/dist/{tree-collection-1g4DXuqa.d.mts → tree-collection-DjtppzYh.d.cts} +1 -1
- package/dist/{tree-collection-CPcsMvje.d.cts → tree-collection-DlBCued7.d.mts} +1 -1
- package/dist/types.cjs +3 -4
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +2 -4
- package/dist/{utils-CJsQZljH.cjs → utils-ByNiZU8f.cjs} +527 -541
- package/dist/{utils-Vs04rt8f.mjs → utils-VVoZ_v29.mjs} +6 -20
- package/dist/utils.cjs +3 -3
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +2 -3
- package/package.json +3 -3
- package/dist/create-props-l5q5b8Wo.cjs +0 -11
- /package/dist/{color-B3sgFAa6.d.mts → color-tco923EC.d.mts} +0 -0
- /package/dist/{color-BhaNI8oR.d.cts → color-vvN_Cdao.d.cts} +0 -0
- /package/dist/{create-anatomy-UNZ__hxH.d.mts → create-anatomy-BedZVdg0.d.mts} +0 -0
- /package/dist/{data-url-BrR6WHXH.d.cts → data-url-BLUK2DqG.d.cts} +0 -0
- /package/dist/{data-url-lOYkmlVX.d.mts → data-url-Diut2Ch3.d.mts} +0 -0
- /package/dist/{functions-Box4pxDB.d.cts → functions-BL9bYIFn.d.mts} +0 -0
- /package/dist/{functions-Du4c1Rcz.d.mts → functions-Cm8NiR7H.d.cts} +0 -0
- /package/dist/{index-B2rsdD3v.d.cts → index-1L40UHp8.d.mts} +0 -0
- /package/dist/{index-DLbWwJUT.d.mts → index-8xpMF4wX.d.mts} +0 -0
- /package/dist/{index-DIJJrhP_.d.mts → index-BO-Z3fhz.d.cts} +0 -0
- /package/dist/{index-CafmAesU.d.mts → index-BVFlU3b9.d.mts} +0 -0
- /package/dist/{index-CXu0elLS.d.mts → index-CGNNiDyE.d.mts} +0 -0
- /package/dist/{index-D1U_WMQ9.d.cts → index-CLRsezW5.d.cts} +0 -0
- /package/dist/{index-BhEktN_V.d.mts → index-DHp3-EkH.d.mts} +0 -0
- /package/dist/{index-Cf0hysnI.d.cts → index-DzWGFhcS.d.cts} +0 -0
- /package/dist/{node-BGWAyUGo.d.mts → node--dRqVsA-.d.cts} +0 -0
- /package/dist/{node-D8Ztr9Hg.d.cts → node-DkWL2ywA.d.mts} +0 -0
- /package/dist/{raf-B8md2utS.d.mts → raf-CrnFMY1g.d.mts} +0 -0
- /package/dist/{raf-DWPAf0Nd.d.cts → raf-v6M-OEna.d.cts} +0 -0
- /package/dist/{typeahead-BhNtyjQC.d.cts → typeahead-Bbeb1fAR.d.mts} +0 -0
- /package/dist/{typeahead-D4TUCBly.d.mts → typeahead-DMooWbbX.d.cts} +0 -0
- /package/dist/{types-CBWaEVU4.d.cts → types-9uw8LHpE.d.mts} +0 -0
- /package/dist/{types-BM4oVvZZ.d.mts → types-B24gMTKq.d.cts} +0 -0
- /package/dist/{types-DTZZ5wsp.d.cts → types-BQMZ4iuP.d.cts} +0 -0
- /package/dist/{types-BI1JrN1V.d.mts → types-CLXYEgfm.d.cts} +0 -0
- /package/dist/{types-CW-uU8Nz.d.mts → types-Cctd5dol.d.mts} +0 -0
- /package/dist/{types-oR0sELNB.d.cts → types-CylWsfOz.d.cts} +0 -0
- /package/dist/{types-D0tsc4Jo.d.mts → types-D-7AMgSE.d.cts} +0 -0
- /package/dist/{types-DE9w-zbc.d.cts → types-DEn9MoSw.d.cts} +0 -0
- /package/dist/{types-Ct9amXkj.d.cts → types-DU764tY_.d.mts} +0 -0
- /package/dist/{types-fB7F7BBP.d.cts → types-DUM9rzfD.d.mts} +0 -0
- /package/dist/{wait-for-CVZu6XNU.d.mts → wait-for-CV7JYddH.d.mts} +0 -0
- /package/dist/{wait-for-D5gBQyam.d.cts → wait-for-DGDBtAM2.d.cts} +0 -0
package/dist/file-utils.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
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;
|
package/dist/file-utils.d.cts
CHANGED
|
@@ -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-
|
|
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)[]>;
|
package/dist/file-utils.d.mts
CHANGED
|
@@ -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-
|
|
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)[]>;
|
package/dist/file-utils.mjs
CHANGED
|
@@ -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-
|
|
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-
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
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(
|
|
2
|
-
const require_defineProperty = require(
|
|
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,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
|
-
});
|
package/dist/focus-trap.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
package/dist/focus-trap.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { n as FocusTrap, t as trapFocus } from "./focus-trap-
|
|
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-
|
|
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(
|
|
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,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
Object.defineProperty(exports, "getInteractionModality", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function() {
|
|
176
|
+
return getInteractionModality;
|
|
177
|
+
}
|
|
180
178
|
});
|
|
181
|
-
Object.defineProperty(exports,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
179
|
+
Object.defineProperty(exports, "isFocusVisible", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function() {
|
|
182
|
+
return isFocusVisible;
|
|
183
|
+
}
|
|
186
184
|
});
|
|
187
|
-
Object.defineProperty(exports,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
Object.defineProperty(exports, "listenerMap", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function() {
|
|
188
|
+
return listenerMap;
|
|
189
|
+
}
|
|
192
190
|
});
|
|
193
|
-
Object.defineProperty(exports,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
Object.defineProperty(exports, "setInteractionModality", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function() {
|
|
194
|
+
return setInteractionModality;
|
|
195
|
+
}
|
|
198
196
|
});
|
|
199
|
-
Object.defineProperty(exports,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
});
|
package/dist/focus-visible.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
package/dist/focus-visible.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as trackFocusVisible, i as setInteractionModality, n as isFocusVisible, o as trackInteractionModality, r as listenerMap, t as getInteractionModality } from "./focus-visible-
|
|
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 };
|
package/dist/highlight-word.cjs
CHANGED
|
@@ -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;
|
package/dist/highlight-word.mjs
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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(
|
|
171
|
+
key: parts.slice(keyIndex).join("+").trim()
|
|
178
172
|
};
|
|
179
173
|
}
|
|
180
174
|
function parseHotkey(hotkey, platform) {
|
|
181
|
-
if (hotkey.includes(
|
|
182
|
-
const sequenceParts = hotkey.split(
|
|
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(
|
|
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 !==
|
|
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(
|
|
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(
|
|
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-
|
|
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(
|
|
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(
|
|
170
|
+
key: parts.slice(keyIndex).join("+").trim()
|
|
178
171
|
};
|
|
179
172
|
}
|
|
180
173
|
function parseHotkey(hotkey, platform) {
|
|
181
|
-
if (hotkey.includes(
|
|
182
|
-
const sequenceParts = hotkey.split(
|
|
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(
|
|
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 !==
|
|
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(
|
|
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(
|
|
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 };
|