@sprawlify/primitives 0.0.87 → 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 +3 -3
- package/dist/core.d.mts +3 -3
- 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 +7 -7
- package/dist/dom-query.d.mts +7 -7
- 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 +3 -3
- package/dist/machines/accordion/index.d.mts +4 -4
- 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 +3 -3
- package/dist/machines/aspect-ratio/index.d.mts +4 -4
- 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 +4 -4
- package/dist/machines/editable/index.d.mts +5 -5
- 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 +3 -3
- package/dist/machines/image-cropper/index.d.mts +4 -4
- 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 +3 -3
- package/dist/machines/pin-input/index.d.mts +4 -4
- 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 +2 -2
- package/dist/machines/signature-pad/index.d.mts +3 -3
- 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 +3 -3
- package/dist/machines/splitter/index.d.mts +4 -4
- 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/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 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { in as getWindow } from "./dom-query-
|
|
2
|
-
|
|
1
|
+
import { in as getWindow } from "./dom-query-dX8Dakb4.mjs";
|
|
3
2
|
//#region src/shared/i18n-utils/cache.ts
|
|
4
3
|
function i18nCache(Ins) {
|
|
5
4
|
const formatterCache = /* @__PURE__ */ new Map();
|
|
@@ -11,14 +10,12 @@ function i18nCache(Ins) {
|
|
|
11
10
|
return formatter;
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
14
|
//#region src/shared/i18n-utils/collator.ts
|
|
17
15
|
const getCollator = i18nCache(Intl.Collator);
|
|
18
16
|
function createCollator(locale = "en-US", options = {}) {
|
|
19
17
|
return getCollator(locale, options);
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
20
|
//#region src/shared/i18n-utils/filter.ts
|
|
24
21
|
const collatorCache = i18nCache(Intl.Collator);
|
|
@@ -63,14 +60,12 @@ function createFilter(options) {
|
|
|
63
60
|
contains
|
|
64
61
|
};
|
|
65
62
|
}
|
|
66
|
-
|
|
67
63
|
//#endregion
|
|
68
64
|
//#region src/shared/i18n-utils/format-number.ts
|
|
69
65
|
const getNumberFormatter = i18nCache(Intl.NumberFormat);
|
|
70
66
|
function formatNumber(v, locale, options = {}) {
|
|
71
67
|
return getNumberFormatter(locale, options).format(v);
|
|
72
68
|
}
|
|
73
|
-
|
|
74
69
|
//#endregion
|
|
75
70
|
//#region src/shared/i18n-utils/format-bytes.ts
|
|
76
71
|
const bitPrefixes = [
|
|
@@ -108,7 +103,6 @@ const formatBytes = (bytes, locale = "en-US", options = {}) => {
|
|
|
108
103
|
unitDisplay
|
|
109
104
|
});
|
|
110
105
|
};
|
|
111
|
-
|
|
112
106
|
//#endregion
|
|
113
107
|
//#region src/shared/i18n-utils/format-date.ts
|
|
114
108
|
const symbols = "\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";
|
|
@@ -312,14 +306,12 @@ function formatDate(date, format, locale, timeZone) {
|
|
|
312
306
|
}
|
|
313
307
|
return result;
|
|
314
308
|
}
|
|
315
|
-
|
|
316
309
|
//#endregion
|
|
317
310
|
//#region src/shared/i18n-utils/format-list.ts
|
|
318
311
|
const getListFormatter = i18nCache(Intl.ListFormat);
|
|
319
312
|
function formatList(list, locale, options = {}) {
|
|
320
313
|
return getListFormatter(locale, options).format(list);
|
|
321
314
|
}
|
|
322
|
-
|
|
323
315
|
//#endregion
|
|
324
316
|
//#region src/shared/i18n-utils/format-relative-time.ts
|
|
325
317
|
const getRelativeTimeFormatter = i18nCache(Intl.RelativeTimeFormat);
|
|
@@ -356,7 +348,6 @@ function getDistance(startDate, endDate) {
|
|
|
356
348
|
years: Math.floor(distance / YEAR_TO_MS)
|
|
357
349
|
};
|
|
358
350
|
}
|
|
359
|
-
|
|
360
351
|
//#endregion
|
|
361
352
|
//#region src/shared/i18n-utils/is-rtl.ts
|
|
362
353
|
const RTL_SCRIPTS = new Set([
|
|
@@ -405,7 +396,6 @@ function isRTL(locale) {
|
|
|
405
396
|
function getLocaleDir(locale) {
|
|
406
397
|
return isRTL(locale) ? "rtl" : "ltr";
|
|
407
398
|
}
|
|
408
|
-
|
|
409
399
|
//#endregion
|
|
410
400
|
//#region src/shared/i18n-utils/locale.ts
|
|
411
401
|
function getDefaultLocale() {
|
|
@@ -420,7 +410,6 @@ function getDefaultLocale() {
|
|
|
420
410
|
dir: isRTL(locale) ? "rtl" : "ltr"
|
|
421
411
|
};
|
|
422
412
|
}
|
|
423
|
-
|
|
424
413
|
//#endregion
|
|
425
414
|
//#region src/shared/i18n-utils/track-locale.ts
|
|
426
415
|
function trackLocale(options = {}) {
|
|
@@ -435,6 +424,5 @@ function trackLocale(options = {}) {
|
|
|
435
424
|
win.removeEventListener("languagechange", handleLocaleChange);
|
|
436
425
|
};
|
|
437
426
|
}
|
|
438
|
-
|
|
439
427
|
//#endregion
|
|
440
|
-
export { formatRelativeTime as a, formatBytes as c, createCollator as d, isRTL as i, formatNumber as l, getDefaultLocale as n, formatList as o, getLocaleDir as r, formatDate as s, trackLocale as t, createFilter as u };
|
|
428
|
+
export { formatRelativeTime as a, formatBytes as c, createCollator as d, isRTL as i, formatNumber as l, getDefaultLocale as n, formatList as o, getLocaleDir as r, formatDate as s, trackLocale as t, createFilter as u };
|
|
@@ -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/i18n-utils/cache.ts
|
|
4
3
|
function i18nCache(Ins) {
|
|
5
4
|
const formatterCache = /* @__PURE__ */ new Map();
|
|
@@ -11,14 +10,12 @@ function i18nCache(Ins) {
|
|
|
11
10
|
return formatter;
|
|
12
11
|
};
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
//#endregion
|
|
16
14
|
//#region src/shared/i18n-utils/collator.ts
|
|
17
15
|
const getCollator = i18nCache(Intl.Collator);
|
|
18
16
|
function createCollator(locale = "en-US", options = {}) {
|
|
19
17
|
return getCollator(locale, options);
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
20
|
//#region src/shared/i18n-utils/filter.ts
|
|
24
21
|
const collatorCache = i18nCache(Intl.Collator);
|
|
@@ -63,14 +60,12 @@ function createFilter(options) {
|
|
|
63
60
|
contains
|
|
64
61
|
};
|
|
65
62
|
}
|
|
66
|
-
|
|
67
63
|
//#endregion
|
|
68
64
|
//#region src/shared/i18n-utils/format-number.ts
|
|
69
65
|
const getNumberFormatter = i18nCache(Intl.NumberFormat);
|
|
70
66
|
function formatNumber(v, locale, options = {}) {
|
|
71
67
|
return getNumberFormatter(locale, options).format(v);
|
|
72
68
|
}
|
|
73
|
-
|
|
74
69
|
//#endregion
|
|
75
70
|
//#region src/shared/i18n-utils/format-bytes.ts
|
|
76
71
|
const bitPrefixes = [
|
|
@@ -108,7 +103,6 @@ const formatBytes = (bytes, locale = "en-US", options = {}) => {
|
|
|
108
103
|
unitDisplay
|
|
109
104
|
});
|
|
110
105
|
};
|
|
111
|
-
|
|
112
106
|
//#endregion
|
|
113
107
|
//#region src/shared/i18n-utils/format-date.ts
|
|
114
108
|
const symbols = "\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";
|
|
@@ -312,14 +306,12 @@ function formatDate(date, format, locale, timeZone) {
|
|
|
312
306
|
}
|
|
313
307
|
return result;
|
|
314
308
|
}
|
|
315
|
-
|
|
316
309
|
//#endregion
|
|
317
310
|
//#region src/shared/i18n-utils/format-list.ts
|
|
318
311
|
const getListFormatter = i18nCache(Intl.ListFormat);
|
|
319
312
|
function formatList(list, locale, options = {}) {
|
|
320
313
|
return getListFormatter(locale, options).format(list);
|
|
321
314
|
}
|
|
322
|
-
|
|
323
315
|
//#endregion
|
|
324
316
|
//#region src/shared/i18n-utils/format-relative-time.ts
|
|
325
317
|
const getRelativeTimeFormatter = i18nCache(Intl.RelativeTimeFormat);
|
|
@@ -356,7 +348,6 @@ function getDistance(startDate, endDate) {
|
|
|
356
348
|
years: Math.floor(distance / YEAR_TO_MS)
|
|
357
349
|
};
|
|
358
350
|
}
|
|
359
|
-
|
|
360
351
|
//#endregion
|
|
361
352
|
//#region src/shared/i18n-utils/is-rtl.ts
|
|
362
353
|
const RTL_SCRIPTS = new Set([
|
|
@@ -405,7 +396,6 @@ function isRTL(locale) {
|
|
|
405
396
|
function getLocaleDir(locale) {
|
|
406
397
|
return isRTL(locale) ? "rtl" : "ltr";
|
|
407
398
|
}
|
|
408
|
-
|
|
409
399
|
//#endregion
|
|
410
400
|
//#region src/shared/i18n-utils/locale.ts
|
|
411
401
|
function getDefaultLocale() {
|
|
@@ -420,7 +410,6 @@ function getDefaultLocale() {
|
|
|
420
410
|
dir: isRTL(locale) ? "rtl" : "ltr"
|
|
421
411
|
};
|
|
422
412
|
}
|
|
423
|
-
|
|
424
413
|
//#endregion
|
|
425
414
|
//#region src/shared/i18n-utils/track-locale.ts
|
|
426
415
|
function trackLocale(options = {}) {
|
|
@@ -435,71 +424,70 @@ function trackLocale(options = {}) {
|
|
|
435
424
|
win.removeEventListener("languagechange", handleLocaleChange);
|
|
436
425
|
};
|
|
437
426
|
}
|
|
438
|
-
|
|
439
427
|
//#endregion
|
|
440
|
-
Object.defineProperty(exports,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
428
|
+
Object.defineProperty(exports, "createCollator", {
|
|
429
|
+
enumerable: true,
|
|
430
|
+
get: function() {
|
|
431
|
+
return createCollator;
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
Object.defineProperty(exports, "createFilter", {
|
|
435
|
+
enumerable: true,
|
|
436
|
+
get: function() {
|
|
437
|
+
return createFilter;
|
|
438
|
+
}
|
|
445
439
|
});
|
|
446
|
-
Object.defineProperty(exports,
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
440
|
+
Object.defineProperty(exports, "formatBytes", {
|
|
441
|
+
enumerable: true,
|
|
442
|
+
get: function() {
|
|
443
|
+
return formatBytes;
|
|
444
|
+
}
|
|
451
445
|
});
|
|
452
|
-
Object.defineProperty(exports,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
446
|
+
Object.defineProperty(exports, "formatDate", {
|
|
447
|
+
enumerable: true,
|
|
448
|
+
get: function() {
|
|
449
|
+
return formatDate;
|
|
450
|
+
}
|
|
457
451
|
});
|
|
458
|
-
Object.defineProperty(exports,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
452
|
+
Object.defineProperty(exports, "formatList", {
|
|
453
|
+
enumerable: true,
|
|
454
|
+
get: function() {
|
|
455
|
+
return formatList;
|
|
456
|
+
}
|
|
463
457
|
});
|
|
464
|
-
Object.defineProperty(exports,
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
458
|
+
Object.defineProperty(exports, "formatNumber", {
|
|
459
|
+
enumerable: true,
|
|
460
|
+
get: function() {
|
|
461
|
+
return formatNumber;
|
|
462
|
+
}
|
|
469
463
|
});
|
|
470
|
-
Object.defineProperty(exports,
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
464
|
+
Object.defineProperty(exports, "formatRelativeTime", {
|
|
465
|
+
enumerable: true,
|
|
466
|
+
get: function() {
|
|
467
|
+
return formatRelativeTime;
|
|
468
|
+
}
|
|
475
469
|
});
|
|
476
|
-
Object.defineProperty(exports,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
470
|
+
Object.defineProperty(exports, "getDefaultLocale", {
|
|
471
|
+
enumerable: true,
|
|
472
|
+
get: function() {
|
|
473
|
+
return getDefaultLocale;
|
|
474
|
+
}
|
|
481
475
|
});
|
|
482
|
-
Object.defineProperty(exports,
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
476
|
+
Object.defineProperty(exports, "getLocaleDir", {
|
|
477
|
+
enumerable: true,
|
|
478
|
+
get: function() {
|
|
479
|
+
return getLocaleDir;
|
|
480
|
+
}
|
|
487
481
|
});
|
|
488
|
-
Object.defineProperty(exports,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
482
|
+
Object.defineProperty(exports, "isRTL", {
|
|
483
|
+
enumerable: true,
|
|
484
|
+
get: function() {
|
|
485
|
+
return isRTL;
|
|
486
|
+
}
|
|
493
487
|
});
|
|
494
|
-
Object.defineProperty(exports,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
488
|
+
Object.defineProperty(exports, "trackLocale", {
|
|
489
|
+
enumerable: true,
|
|
490
|
+
get: function() {
|
|
491
|
+
return trackLocale;
|
|
492
|
+
}
|
|
499
493
|
});
|
|
500
|
-
Object.defineProperty(exports, 'trackLocale', {
|
|
501
|
-
enumerable: true,
|
|
502
|
-
get: function () {
|
|
503
|
-
return trackLocale;
|
|
504
|
-
}
|
|
505
|
-
});
|
package/dist/i18n-utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./dom-query-6Wt-Tikf.cjs");
|
|
3
|
+
const require_i18n_utils = require("./i18n-utils-Dm8cGCol.cjs");
|
|
4
4
|
exports.createCollator = require_i18n_utils.createCollator;
|
|
5
5
|
exports.createFilter = require_i18n_utils.createFilter;
|
|
6
6
|
exports.formatBytes = require_i18n_utils.formatBytes;
|
|
@@ -11,4 +11,4 @@ exports.formatRelativeTime = require_i18n_utils.formatRelativeTime;
|
|
|
11
11
|
exports.getDefaultLocale = require_i18n_utils.getDefaultLocale;
|
|
12
12
|
exports.getLocaleDir = require_i18n_utils.getLocaleDir;
|
|
13
13
|
exports.isRTL = require_i18n_utils.isRTL;
|
|
14
|
-
exports.trackLocale = require_i18n_utils.trackLocale;
|
|
14
|
+
exports.trackLocale = require_i18n_utils.trackLocale;
|
package/dist/i18n-utils.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as formatRelativeTime, c as formatBytes, d as createCollator, i as isRTL, l as formatNumber, n as getDefaultLocale, o as formatList, r as getLocaleDir, s as formatDate, t as trackLocale, u as createFilter } from "./i18n-utils-
|
|
3
|
-
|
|
4
|
-
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
1
|
+
import "./dom-query-dX8Dakb4.mjs";
|
|
2
|
+
import { a as formatRelativeTime, c as formatBytes, d as createCollator, i as isRTL, l as formatNumber, n as getDefaultLocale, o as formatList, r as getLocaleDir, s as formatDate, t as trackLocale, u as createFilter } from "./i18n-utils-DHGN_KCY.mjs";
|
|
3
|
+
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { $t as getDocument, Bt as isTouchDevice, W as raf, Zt as contains, ct as addDomEvent, gt as isContextMenuEvent, in as getWindow, j as getNearestOverflowAncestor, mn as isShadowRoot, pt as getEventTarget, qt as isControlledElement, tt as isFocusable, un as isHTMLElement } from "./dom-query-
|
|
2
|
-
import { W as callAll } from "./utils-
|
|
3
|
-
|
|
1
|
+
import { $t as getDocument, Bt as isTouchDevice, W as raf, Zt as contains, ct as addDomEvent, gt as isContextMenuEvent, in as getWindow, j as getNearestOverflowAncestor, mn as isShadowRoot, pt as getEventTarget, qt as isControlledElement, tt as isFocusable, un as isHTMLElement } from "./dom-query-dX8Dakb4.mjs";
|
|
2
|
+
import { W as callAll } from "./utils-VVoZ_v29.mjs";
|
|
4
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
5
4
|
function getWindowFrames(win) {
|
|
6
5
|
const frames = {
|
|
@@ -52,7 +51,6 @@ function getParentWindow(win) {
|
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
|
|
56
54
|
//#endregion
|
|
57
55
|
//#region src/shared/interact-outside/index.ts
|
|
58
56
|
const POINTER_OUTSIDE_EVENT = "pointerdown.outside";
|
|
@@ -195,6 +193,5 @@ function fireCustomEvent(el, type, init) {
|
|
|
195
193
|
const event = new (el.ownerDocument.defaultView || window).CustomEvent(type, init);
|
|
196
194
|
return el.dispatchEvent(event);
|
|
197
195
|
}
|
|
198
|
-
|
|
199
196
|
//#endregion
|
|
200
|
-
export { trackInteractOutside as t };
|
|
197
|
+
export { trackInteractOutside as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_dom_query = require(
|
|
2
|
-
const require_utils = require(
|
|
3
|
-
|
|
1
|
+
const require_dom_query = require("./dom-query-6Wt-Tikf.cjs");
|
|
2
|
+
const require_utils = require("./utils-ByNiZU8f.cjs");
|
|
4
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
5
4
|
function getWindowFrames(win) {
|
|
6
5
|
const frames = {
|
|
@@ -52,7 +51,6 @@ function getParentWindow(win) {
|
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
|
-
|
|
56
54
|
//#endregion
|
|
57
55
|
//#region src/shared/interact-outside/index.ts
|
|
58
56
|
const POINTER_OUTSIDE_EVENT = "pointerdown.outside";
|
|
@@ -195,11 +193,10 @@ function fireCustomEvent(el, type, init) {
|
|
|
195
193
|
const event = new (el.ownerDocument.defaultView || window).CustomEvent(type, init);
|
|
196
194
|
return el.dispatchEvent(event);
|
|
197
195
|
}
|
|
198
|
-
|
|
199
196
|
//#endregion
|
|
200
|
-
Object.defineProperty(exports,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
});
|
|
197
|
+
Object.defineProperty(exports, "trackInteractOutside", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function() {
|
|
200
|
+
return trackInteractOutside;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
require(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.trackInteractOutside = require_interact_outside.trackInteractOutside;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./dom-query-6Wt-Tikf.cjs");
|
|
3
|
+
require("./utils-ByNiZU8f.cjs");
|
|
4
|
+
const require_interact_outside = require("./interact-outside-DRaFGdMg.cjs");
|
|
5
|
+
exports.trackInteractOutside = require_interact_outside.trackInteractOutside;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InteractOutsideOptions, c as PointerDownOutsideEvent, i as InteractOutsideHandlers, l as trackInteractOutside, n as FocusOutsideEvent, o as MaybeElement, r as InteractOutsideEvent, s as NodeOrFn, t as EventDetails } from "./index-
|
|
1
|
+
import { a as InteractOutsideOptions, c as PointerDownOutsideEvent, i as InteractOutsideHandlers, l as trackInteractOutside, n as FocusOutsideEvent, o as MaybeElement, r as InteractOutsideEvent, s as NodeOrFn, t as EventDetails } from "./index-DzWGFhcS.cjs";
|
|
2
2
|
export { EventDetails, FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, InteractOutsideOptions, MaybeElement, NodeOrFn, PointerDownOutsideEvent, trackInteractOutside };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InteractOutsideOptions, c as PointerDownOutsideEvent, i as InteractOutsideHandlers, l as trackInteractOutside, n as FocusOutsideEvent, o as MaybeElement, r as InteractOutsideEvent, s as NodeOrFn, t as EventDetails } from "./index-
|
|
1
|
+
import { a as InteractOutsideOptions, c as PointerDownOutsideEvent, i as InteractOutsideHandlers, l as trackInteractOutside, n as FocusOutsideEvent, o as MaybeElement, r as InteractOutsideEvent, s as NodeOrFn, t as EventDetails } from "./index-CGNNiDyE.mjs";
|
|
2
2
|
export { EventDetails, FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, InteractOutsideOptions, MaybeElement, NodeOrFn, PointerDownOutsideEvent, trackInteractOutside };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import "./utils-
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
4
|
-
|
|
5
|
-
export { trackInteractOutside };
|
|
1
|
+
import "./dom-query-dX8Dakb4.mjs";
|
|
2
|
+
import "./utils-VVoZ_v29.mjs";
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-C-8lOhpV.mjs";
|
|
4
|
+
export { trackInteractOutside };
|
package/dist/json-tree-utils.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/shared/json-tree-utils/json-to-tree.ts
|
|
3
3
|
const MAX_DEPTH = 20;
|
|
4
4
|
const jsonToTree = (data, props = {}) => {
|
|
5
|
-
const { visited = /* @__PURE__ */ new WeakSet(), keyPath = [
|
|
5
|
+
const { visited = /* @__PURE__ */ new WeakSet(), keyPath = ["$"], depth = 0 } = props;
|
|
6
6
|
const options = getPreviewOptions(props.options);
|
|
7
7
|
if (depth > MAX_DEPTH) return {
|
|
8
8
|
value: "[Max Depth Reached]",
|
|
@@ -29,7 +29,6 @@ const jsonToTree = (data, props = {}) => {
|
|
|
29
29
|
options
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
//#endregion
|
|
34
33
|
//#region src/shared/json-tree-utils/shared.ts
|
|
35
34
|
const regexReturnCharacters = /\r/g;
|
|
@@ -50,16 +49,15 @@ function defu(a, b) {
|
|
|
50
49
|
}
|
|
51
50
|
const isObj = (v) => v != null && typeof v === "object" && !Array.isArray(v);
|
|
52
51
|
const typeOf = (value) => Object.prototype.toString.call(value);
|
|
53
|
-
|
|
54
52
|
//#endregion
|
|
55
53
|
//#region src/shared/json-tree-utils/node-conversion.ts
|
|
56
54
|
const ROOT_KEY = "$";
|
|
57
55
|
const PATH_SEP = ".";
|
|
58
56
|
function isRootKeyPath(keyPath) {
|
|
59
|
-
return keyPath.length === 1 && keyPath[0] ===
|
|
57
|
+
return keyPath.length === 1 && keyPath[0] === "$";
|
|
60
58
|
}
|
|
61
59
|
function keyPathToId(keyPath) {
|
|
62
|
-
return keyPath.join(
|
|
60
|
+
return keyPath.join(".");
|
|
63
61
|
}
|
|
64
62
|
function keyPathToKey(keyPath, opts) {
|
|
65
63
|
if (keyPath.length === 0) return "";
|
|
@@ -82,7 +80,7 @@ function getRootNode(data, opts) {
|
|
|
82
80
|
keyPath: [],
|
|
83
81
|
children: [jsonToTree(data, {
|
|
84
82
|
visited: /* @__PURE__ */ new WeakSet(),
|
|
85
|
-
keyPath: [
|
|
83
|
+
keyPath: ["$"],
|
|
86
84
|
options: getPreviewOptions(opts)
|
|
87
85
|
})]
|
|
88
86
|
};
|
|
@@ -97,7 +95,6 @@ const getPreviewOptions = (opts) => {
|
|
|
97
95
|
if (!opts) return DEFAULT_PREVIEW_OPTIONS;
|
|
98
96
|
return defu(DEFAULT_PREVIEW_OPTIONS, opts);
|
|
99
97
|
};
|
|
100
|
-
|
|
101
98
|
//#endregion
|
|
102
99
|
//#region src/shared/json-tree-utils/data-type.ts
|
|
103
100
|
const generatePreviewText = (items, hasMore) => {
|
|
@@ -1424,7 +1421,6 @@ const getNodeTypeDescription = (node, opts) => {
|
|
|
1424
1421
|
if (dataType) return typeof dataType.description === "function" ? dataType.description(node, options) : dataType.description;
|
|
1425
1422
|
return String(node.value);
|
|
1426
1423
|
};
|
|
1427
|
-
|
|
1428
1424
|
//#endregion
|
|
1429
1425
|
//#region src/shared/json-tree-utils/accessibility.ts
|
|
1430
1426
|
const propertyWord = (count) => count === 1 ? "property" : "properties";
|
|
@@ -1459,7 +1455,6 @@ const getDescriptorInfo = (descriptor) => {
|
|
|
1459
1455
|
if (!descriptor.configurable) parts.push("non-configurable");
|
|
1460
1456
|
return parts.length > 0 ? parts.join(", ") : "non-enumerable";
|
|
1461
1457
|
};
|
|
1462
|
-
|
|
1463
1458
|
//#endregion
|
|
1464
1459
|
exports.ArrayBufferType = ArrayBufferType;
|
|
1465
1460
|
exports.ArrayType = ArrayType;
|
|
@@ -1509,4 +1504,4 @@ exports.jsonToTree = jsonToTree;
|
|
|
1509
1504
|
exports.keyPathToId = keyPathToId;
|
|
1510
1505
|
exports.keyPathToKey = keyPathToKey;
|
|
1511
1506
|
exports.nodeToString = nodeToString;
|
|
1512
|
-
exports.nodeToValue = nodeToValue;
|
|
1507
|
+
exports.nodeToValue = nodeToValue;
|