@machinerd/js-module 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -63
- package/dist/align-CdK8Ar2w.mjs +1 -0
- package/dist/align-Dp4avXIm.cjs +1 -0
- package/dist/{api-client-C3o2pO0q.cjs → api-client-BXH8Rm-J.cjs} +1 -1
- package/dist/{api-client-C0sbSOQf.mjs → api-client-xK3Ua3Gr.mjs} +1 -1
- package/dist/basic-image-D26zahpC.mjs +1 -0
- package/dist/basic-image-Wl0IBgOX.cjs +1 -0
- package/dist/country-flag-8HG6HZPi.cjs +1 -0
- package/dist/country-flag-Bypgu_rR.mjs +1 -0
- package/dist/custom-heading-By14y5ug.cjs +1 -0
- package/dist/custom-heading-eGRLcDQZ.mjs +1 -0
- package/dist/dnd-CeWNVM-V.mjs +1 -0
- package/dist/dnd-DHNRwFj8.cjs +1 -0
- package/dist/editor/extensions/align/index.cjs +1 -0
- package/dist/editor/extensions/align/index.d.cts +2 -0
- package/dist/editor/extensions/align/index.d.mts +2 -0
- package/dist/editor/extensions/align/index.mjs +1 -0
- package/dist/editor/extensions/table-controls/index.cjs +1 -0
- package/dist/editor/extensions/table-controls/index.d.cts +2 -0
- package/dist/editor/extensions/table-controls/index.d.mts +2 -0
- package/dist/editor/extensions/table-controls/index.mjs +1 -0
- package/dist/editor/extensions/table-resize/index.cjs +1 -0
- package/dist/editor/extensions/table-resize/index.d.cts +2 -0
- package/dist/editor/extensions/table-resize/index.d.mts +2 -0
- package/dist/editor/extensions/table-resize/index.mjs +1 -0
- package/dist/editor/index.cjs +1 -1
- package/dist/editor/index.d.cts +51 -73
- package/dist/editor/index.d.mts +51 -73
- package/dist/editor/index.mjs +1 -1
- package/dist/editor/nodes/basic-image/index.cjs +1 -0
- package/dist/editor/nodes/basic-image/index.d.cts +4 -0
- package/dist/editor/nodes/basic-image/index.d.mts +4 -0
- package/dist/editor/nodes/basic-image/index.mjs +1 -0
- package/dist/editor/nodes/custom-heading/index.cjs +1 -0
- package/dist/editor/nodes/custom-heading/index.d.cts +2 -0
- package/dist/editor/nodes/custom-heading/index.d.mts +2 -0
- package/dist/editor/nodes/custom-heading/index.mjs +1 -0
- package/dist/editor/nodes/menu-wrapper/index.cjs +1 -0
- package/dist/editor/nodes/menu-wrapper/index.d.cts +54 -0
- package/dist/editor/nodes/menu-wrapper/index.d.mts +54 -0
- package/dist/editor/nodes/menu-wrapper/index.mjs +1 -0
- package/dist/editor/nodes/node-resize/index.cjs +1 -0
- package/dist/editor/nodes/node-resize/index.d.cts +27 -0
- package/dist/editor/nodes/node-resize/index.d.mts +27 -0
- package/dist/editor/nodes/node-resize/index.mjs +1 -0
- package/dist/editor/nodes/node-size/index.cjs +1 -0
- package/dist/editor/nodes/node-size/index.d.cts +3 -0
- package/dist/editor/nodes/node-size/index.d.mts +3 -0
- package/dist/editor/nodes/node-size/index.mjs +1 -0
- package/dist/editor/nodes/node-view-context/index.cjs +1 -0
- package/dist/editor/nodes/node-view-context/index.d.cts +2 -0
- package/dist/editor/nodes/node-view-context/index.d.mts +2 -0
- package/dist/editor/nodes/node-view-context/index.mjs +1 -0
- package/dist/editor/nodes/subset-image/index.cjs +1 -0
- package/dist/editor/nodes/subset-image/index.d.cts +5 -0
- package/dist/editor/nodes/subset-image/index.d.mts +5 -0
- package/dist/editor/nodes/subset-image/index.mjs +1 -0
- package/dist/editor/nodes/table/index.cjs +1 -0
- package/dist/editor/nodes/table/index.d.cts +2 -0
- package/dist/editor/nodes/table/index.d.mts +2 -0
- package/dist/editor/nodes/table/index.mjs +1 -0
- package/dist/editor/nodes/tabs/index.cjs +1 -0
- package/dist/editor/nodes/tabs/index.d.cts +2 -0
- package/dist/editor/nodes/tabs/index.d.mts +2 -0
- package/dist/editor/nodes/tabs/index.mjs +1 -0
- package/dist/editor-CHuJTM4H.mjs +1 -0
- package/dist/editor-DvLUotoh.cjs +1 -0
- package/dist/{file-B-UJkabO.mjs → file-CapBKYce.mjs} +1 -1
- package/dist/file-DeZ1OKdy.cjs +1 -0
- package/dist/hooks/use-delay-unmount/index.cjs +1 -0
- package/dist/hooks/use-delay-unmount/index.d.cts +4 -0
- package/dist/hooks/use-delay-unmount/index.d.mts +4 -0
- package/dist/hooks/use-delay-unmount/index.mjs +1 -0
- package/dist/hooks/use-dialog-stack/index.cjs +1 -0
- package/dist/hooks/use-dialog-stack/index.d.cts +4 -0
- package/dist/hooks/use-dialog-stack/index.d.mts +4 -0
- package/dist/hooks/use-dialog-stack/index.mjs +1 -0
- package/dist/hooks/use-drag-resize/index.cjs +1 -0
- package/dist/hooks/use-drag-resize/index.d.cts +2 -0
- package/dist/hooks/use-drag-resize/index.d.mts +2 -0
- package/dist/hooks/use-drag-resize/index.mjs +1 -0
- package/dist/hooks/use-drag-scroll/index.cjs +1 -0
- package/dist/hooks/use-drag-scroll/index.d.cts +13 -0
- package/dist/hooks/use-drag-scroll/index.d.mts +13 -0
- package/dist/hooks/use-drag-scroll/index.mjs +1 -0
- package/dist/hooks/use-effect-once/index.cjs +1 -0
- package/dist/hooks/use-effect-once/index.d.cts +7 -0
- package/dist/hooks/use-effect-once/index.d.mts +7 -0
- package/dist/hooks/use-effect-once/index.mjs +1 -0
- package/dist/hooks/use-outside-click/index.cjs +1 -0
- package/dist/hooks/use-outside-click/index.d.cts +13 -0
- package/dist/hooks/use-outside-click/index.d.mts +13 -0
- package/dist/hooks/use-outside-click/index.mjs +1 -0
- package/dist/hooks/use-scroll-lock/index.cjs +1 -0
- package/dist/hooks/use-scroll-lock/index.d.cts +12 -0
- package/dist/hooks/use-scroll-lock/index.d.mts +12 -0
- package/dist/hooks/use-scroll-lock/index.mjs +1 -0
- package/dist/hooks/use-scroll-top/index.cjs +1 -0
- package/dist/hooks/use-scroll-top/index.d.cts +17 -0
- package/dist/hooks/use-scroll-top/index.d.mts +17 -0
- package/dist/hooks/use-scroll-top/index.mjs +1 -0
- package/dist/hooks/use-snackbar/index.cjs +1 -0
- package/dist/hooks/{use-snackbar.d.cts → use-snackbar/index.d.cts} +1 -1
- package/dist/hooks/{use-snackbar.d.mts → use-snackbar/index.d.mts} +1 -1
- package/dist/hooks/use-sticky/index.cjs +1 -0
- package/dist/hooks/use-sticky/index.d.cts +9 -0
- package/dist/hooks/use-sticky/index.d.mts +9 -0
- package/dist/hooks/use-sticky/index.mjs +1 -0
- package/dist/hooks/use-subset-image/index.cjs +1 -0
- package/dist/hooks/use-subset-image/index.d.cts +2 -0
- package/dist/hooks/use-subset-image/index.d.mts +2 -0
- package/dist/hooks/use-subset-image/index.mjs +1 -0
- package/dist/hooks/use-window-size/index.cjs +1 -0
- package/dist/hooks/use-window-size/index.d.cts +6 -0
- package/dist/hooks/use-window-size/index.d.mts +6 -0
- package/dist/hooks/use-window-size/index.mjs +1 -0
- package/dist/image-CAEWHuaM.mjs +1 -0
- package/dist/image-kIL2PjTS.cjs +1 -0
- package/dist/index-90Zl6qBK.d.cts +17 -0
- package/dist/index-BD2sHM7a.d.cts +34 -0
- package/dist/index-BJgz2hkX.d.cts +56 -0
- package/dist/index-BKqI0jBF.d.mts +43 -0
- package/dist/index-BMZtFPh-.d.cts +43 -0
- package/dist/index-BT7Y7xkm.d.cts +7 -0
- package/dist/index-BTUIpavj.d.mts +34 -0
- package/dist/index-BlQhHmTa.d.cts +31 -0
- package/dist/index-BoJg4HO3.d.mts +56 -0
- package/dist/{util/fetcher.d.cts → index-Bpp6ufv-.d.cts} +2 -2
- package/dist/index-BxqkZ148.d.cts +18 -0
- package/dist/index-C3wA7a3i.d.mts +7 -0
- package/dist/index-CLxl-tUO.d.cts +41 -0
- package/dist/index-CV-nhdHd.d.mts +43 -0
- package/dist/{util/fetcher.d.mts → index-C_5zGF-K.d.mts} +2 -2
- package/dist/index-C_YTuhwX.d.mts +11 -0
- package/dist/index-CcpFy_mT.d.mts +17 -0
- package/dist/{index-B1YNV_Vm.d.cts → index-CqZGdObz.d.mts} +47 -15
- package/dist/index-Cxc49Lmr.d.mts +19 -0
- package/dist/index-D-NPxMFr.d.cts +11 -0
- package/dist/index-D0Uuydfo.d.cts +6 -0
- package/dist/index-D5uh7klO.d.mts +18 -0
- package/dist/{index-C8chDULk.d.mts → index-DCzaZKG0.d.cts} +47 -15
- package/dist/index-DDG8MvPD.d.mts +31 -0
- package/dist/index-DEolXbf5.d.cts +26 -0
- package/dist/index-DHXj3w9p.d.mts +40 -0
- package/dist/{use-subset-image-Dygkyw-W.d.mts → index-DHyXKIBX.d.cts} +1 -1
- package/dist/index-DSVr-P8y.d.mts +45 -0
- package/dist/index-DTtrJ-ei.d.cts +10 -0
- package/dist/index-D_Hfb-z2.d.cts +45 -0
- package/dist/index-DeXwS1TW.d.mts +10 -0
- package/dist/index-Dhkwd0rJ.d.cts +19 -0
- package/dist/index-DrUJZDtK.d.cts +43 -0
- package/dist/index-DvEtYdm4.d.cts +40 -0
- package/dist/{use-subset-image-bDB5TSd4.d.cts → index-DxW8JBva.d.mts} +1 -1
- package/dist/index-X2XMkoEC.d.mts +26 -0
- package/dist/index-aA4ojwuQ.d.mts +6 -0
- package/dist/index-wiRVGgrx.d.mts +41 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/label-DeEAgKAc.mjs +1 -0
- package/dist/label-jZuNIGyF.cjs +1 -0
- package/dist/node-resize-Cs4wR_HY.mjs +1 -0
- package/dist/node-resize-dantnBzP.cjs +1 -0
- package/dist/node-size-BQQGo7t7.cjs +1 -0
- package/dist/node-size-Bg-g2Png.mjs +1 -0
- package/dist/node-view-context-D-1j5isf.mjs +1 -0
- package/dist/node-view-context-YTl_1gGD.cjs +1 -0
- package/dist/providers/api-client/index.cjs +1 -1
- package/dist/providers/api-client/index.d.cts +3 -3
- package/dist/providers/api-client/index.d.mts +3 -3
- package/dist/providers/api-client/index.mjs +1 -1
- package/dist/providers/editor/index.cjs +1 -0
- package/dist/providers/editor/index.d.cts +21 -0
- package/dist/providers/editor/index.d.mts +21 -0
- package/dist/providers/editor/index.mjs +1 -0
- package/dist/providers/noti-stack/index.cjs +1 -1
- package/dist/providers/noti-stack/index.d.cts +2 -2
- package/dist/providers/noti-stack/index.mjs +1 -1
- package/dist/select-field-CoNJTWRb.cjs +1 -0
- package/dist/select-field-DeyQlWxq.mjs +1 -0
- package/dist/skeleton-7P1IZD3G.cjs +1 -0
- package/dist/skeleton-D4Q9wT-o.mjs +1 -0
- package/dist/src-BB55dPBE.mjs +1 -0
- package/dist/src-Dz1mULYA.cjs +1 -0
- package/dist/styles/admin.css +2424 -0
- package/dist/styles/editor.css +2917 -63
- package/dist/styles/index.css +788 -184
- package/dist/subset-image-AaZA0RuB.cjs +1 -0
- package/dist/subset-image-Co0fWefj.mjs +1 -0
- package/dist/subset-image-DnZ2TqZY.mjs +1 -0
- package/dist/subset-image-P2NQM0-3.cjs +0 -0
- package/dist/switch-BDdSF3lu.cjs +1 -0
- package/dist/switch-DTQt7BzY.mjs +1 -0
- package/dist/table-CKVL_ezW.mjs +1 -0
- package/dist/table-DmwOZtdl.cjs +1 -0
- package/dist/table-controls-CQmqnc4R.cjs +1 -0
- package/dist/table-controls-CpCGiLvR.mjs +1 -0
- package/dist/table-resize-DI2Pf2Mi.cjs +1 -0
- package/dist/table-resize-w9EsReKV.mjs +1 -0
- package/dist/tabs-DQ1db_eg.mjs +1 -0
- package/dist/tabs-DiryrHZ7.cjs +1 -0
- package/dist/text-field-CTxoUkAg.cjs +1 -0
- package/dist/text-field-D2x9nugT.mjs +1 -0
- package/dist/ui/admin/async-select-field/index.cjs +1 -0
- package/dist/ui/admin/async-select-field/index.d.cts +35 -0
- package/dist/ui/admin/async-select-field/index.d.mts +35 -0
- package/dist/ui/admin/async-select-field/index.mjs +1 -0
- package/dist/ui/admin/country-select/index.cjs +1 -0
- package/dist/ui/admin/country-select/index.d.cts +47 -0
- package/dist/ui/admin/country-select/index.d.mts +47 -0
- package/dist/ui/admin/country-select/index.mjs +1 -0
- package/dist/ui/admin/dropzone-field/index.cjs +1 -0
- package/dist/ui/admin/dropzone-field/index.d.cts +110 -0
- package/dist/ui/admin/dropzone-field/index.d.mts +110 -0
- package/dist/ui/admin/dropzone-field/index.mjs +1 -0
- package/dist/ui/admin/email-field/index.cjs +1 -0
- package/dist/ui/admin/email-field/index.d.cts +9 -0
- package/dist/ui/admin/email-field/index.d.mts +9 -0
- package/dist/ui/admin/email-field/index.mjs +1 -0
- package/dist/ui/admin/file-field/index.cjs +1 -0
- package/dist/ui/admin/file-field/index.d.cts +36 -0
- package/dist/ui/admin/file-field/index.d.mts +36 -0
- package/dist/ui/admin/file-field/index.mjs +1 -0
- package/dist/ui/admin/image-list-field/index.cjs +1 -0
- package/dist/ui/admin/image-list-field/index.d.cts +53 -0
- package/dist/ui/admin/image-list-field/index.d.mts +53 -0
- package/dist/ui/admin/image-list-field/index.mjs +1 -0
- package/dist/ui/admin/label/index.cjs +1 -0
- package/dist/ui/admin/label/index.d.cts +2 -0
- package/dist/ui/admin/label/index.d.mts +2 -0
- package/dist/ui/admin/label/index.mjs +1 -0
- package/dist/ui/admin/priority-field/index.cjs +1 -0
- package/dist/ui/admin/priority-field/index.d.cts +19 -0
- package/dist/ui/admin/priority-field/index.d.mts +19 -0
- package/dist/ui/admin/priority-field/index.mjs +1 -0
- package/dist/ui/admin/select-field/index.cjs +1 -0
- package/dist/ui/admin/select-field/index.d.cts +3 -0
- package/dist/ui/admin/select-field/index.d.mts +3 -0
- package/dist/ui/admin/select-field/index.mjs +1 -0
- package/dist/ui/admin/series-field/index.cjs +1 -0
- package/dist/ui/admin/series-field/index.d.cts +37 -0
- package/dist/ui/admin/series-field/index.d.mts +37 -0
- package/dist/ui/admin/series-field/index.mjs +1 -0
- package/dist/ui/admin/sns-field/index.cjs +1 -0
- package/dist/ui/admin/sns-field/index.d.cts +50 -0
- package/dist/ui/admin/sns-field/index.d.mts +50 -0
- package/dist/ui/admin/sns-field/index.mjs +1 -0
- package/dist/ui/admin/source-field/index.cjs +1 -0
- package/dist/ui/admin/source-field/index.d.cts +34 -0
- package/dist/ui/admin/source-field/index.d.mts +34 -0
- package/dist/ui/admin/source-field/index.mjs +1 -0
- package/dist/ui/admin/text-area-field/index.cjs +1 -0
- package/dist/ui/admin/text-area-field/index.d.cts +20 -0
- package/dist/ui/admin/text-area-field/index.d.mts +20 -0
- package/dist/ui/admin/text-area-field/index.mjs +1 -0
- package/dist/ui/admin/text-field/index.cjs +1 -0
- package/dist/ui/admin/text-field/index.d.cts +3 -0
- package/dist/ui/admin/text-field/index.d.mts +3 -0
- package/dist/ui/admin/text-field/index.mjs +1 -0
- package/dist/ui/admin/url-field/index.cjs +1 -0
- package/dist/ui/admin/url-field/index.d.cts +9 -0
- package/dist/ui/admin/url-field/index.d.mts +9 -0
- package/dist/ui/admin/url-field/index.mjs +1 -0
- package/dist/ui/admin/video-field/index.cjs +1 -0
- package/dist/ui/admin/video-field/index.d.cts +24 -0
- package/dist/ui/admin/video-field/index.d.mts +24 -0
- package/dist/ui/admin/video-field/index.mjs +1 -0
- package/dist/ui/admin/with-extra-field/index.cjs +1 -0
- package/dist/ui/admin/with-extra-field/index.d.cts +19 -0
- package/dist/ui/admin/with-extra-field/index.d.mts +19 -0
- package/dist/ui/admin/with-extra-field/index.mjs +1 -0
- package/dist/ui/bottom-app-bar/index.cjs +1 -0
- package/dist/ui/bottom-app-bar/index.d.cts +21 -0
- package/dist/ui/bottom-app-bar/index.d.mts +21 -0
- package/dist/ui/bottom-app-bar/index.mjs +1 -0
- package/dist/ui/button/index.cjs +1 -0
- package/dist/{button-DHvx-GAg.d.cts → ui/button/index.d.cts} +11 -11
- package/dist/{button-DRIyBtEB.d.mts → ui/button/index.d.mts} +13 -13
- package/dist/ui/button/index.mjs +1 -0
- package/dist/ui/carousel/index.cjs +1 -1
- package/dist/ui/carousel/index.d.cts +9 -9
- package/dist/ui/carousel/index.mjs +1 -1
- package/dist/ui/conditional-wrapper/index.cjs +1 -0
- package/dist/ui/conditional-wrapper/index.d.cts +29 -0
- package/dist/ui/conditional-wrapper/index.d.mts +29 -0
- package/dist/ui/conditional-wrapper/index.mjs +1 -0
- package/dist/ui/country-flag/index.cjs +1 -0
- package/dist/ui/country-flag/index.d.cts +13 -0
- package/dist/ui/country-flag/index.d.mts +13 -0
- package/dist/ui/country-flag/index.mjs +1 -0
- package/dist/ui/dialog/index.cjs +1 -1
- package/dist/ui/dialog/index.d.cts +5 -5
- package/dist/ui/dialog/index.d.mts +7 -7
- package/dist/ui/dialog/index.mjs +1 -1
- package/dist/ui/dnd/index.cjs +1 -1
- package/dist/ui/dnd/index.d.cts +2 -2
- package/dist/ui/dnd/index.mjs +1 -1
- package/dist/ui/dropdown/index.cjs +1 -1
- package/dist/ui/dropdown/index.d.cts +16 -44
- package/dist/ui/dropdown/index.d.mts +16 -44
- package/dist/ui/dropdown/index.mjs +1 -1
- package/dist/ui/image/index.cjs +1 -1
- package/dist/ui/image/index.d.cts +3 -45
- package/dist/ui/image/index.d.mts +3 -45
- package/dist/ui/image/index.mjs +1 -1
- package/dist/ui/input/index.cjs +1 -0
- package/dist/ui/input/index.d.cts +22 -0
- package/dist/ui/input/index.d.mts +22 -0
- package/dist/ui/input/index.mjs +1 -0
- package/dist/ui/motion-dialog/index.cjs +1 -1
- package/dist/ui/motion-dialog/index.mjs +1 -1
- package/dist/ui/radius-handler/index.cjs +1 -0
- package/dist/ui/radius-handler/index.d.cts +17 -0
- package/dist/ui/radius-handler/index.d.mts +17 -0
- package/dist/ui/radius-handler/index.mjs +1 -0
- package/dist/ui/sheet/index.cjs +1 -1
- package/dist/ui/sheet/index.d.cts +2 -2
- package/dist/ui/sheet/index.d.mts +2 -2
- package/dist/ui/sheet/index.mjs +1 -1
- package/dist/ui/skeleton/index.cjs +1 -0
- package/dist/ui/skeleton/index.d.cts +26 -0
- package/dist/ui/skeleton/index.d.mts +26 -0
- package/dist/ui/skeleton/index.mjs +1 -0
- package/dist/ui/stable-text/index.cjs +1 -0
- package/dist/ui/stable-text/index.d.cts +13 -0
- package/dist/ui/stable-text/index.d.mts +13 -0
- package/dist/ui/stable-text/index.mjs +1 -0
- package/dist/ui/switch/index.cjs +1 -1
- package/dist/ui/switch/index.d.cts +1 -15
- package/dist/ui/switch/index.d.mts +1 -15
- package/dist/ui/switch/index.mjs +1 -1
- package/dist/ui/tooltip/index.cjs +1 -1
- package/dist/ui/tooltip/index.d.cts +2 -2
- package/dist/ui/tooltip/index.d.mts +2 -2
- package/dist/ui/tooltip/index.mjs +1 -1
- package/dist/use-delay-unmount-CNNJXNX5.cjs +1 -0
- package/dist/use-delay-unmount-_wzkutyv.mjs +1 -0
- package/dist/use-drag-resize--3PrrhJj.mjs +1 -0
- package/dist/use-drag-resize-BO3zANv3.cjs +1 -0
- package/dist/use-outside-click-BS2UOXoV.cjs +1 -0
- package/dist/use-outside-click-tsaJo3cz.mjs +1 -0
- package/dist/use-subset-image-B9ZSiVjx.mjs +1 -0
- package/dist/use-subset-image-BUurDItP.cjs +1 -0
- package/dist/util/browser/index.cjs +1 -0
- package/dist/util/{browser.d.cts → browser/index.d.cts} +1 -1
- package/dist/util/{browser.d.mts → browser/index.d.mts} +1 -1
- package/dist/util/common/index.cjs +1 -0
- package/dist/util/{common.d.cts → common/index.d.cts} +5 -5
- package/dist/util/{common.d.mts → common/index.d.mts} +5 -5
- package/dist/{common-ZUMpASnc.mjs → util/common/index.mjs} +1 -1
- package/dist/util/date/index.cjs +1 -0
- package/dist/util/{date.d.cts → date/index.d.cts} +1 -1
- package/dist/util/{date.d.mts → date/index.d.mts} +1 -1
- package/dist/util/editor/index.cjs +1 -0
- package/dist/util/editor/index.d.cts +55 -0
- package/dist/util/editor/index.d.mts +55 -0
- package/dist/util/editor/index.mjs +1 -0
- package/dist/util/fetcher/index.d.cts +2 -0
- package/dist/util/fetcher/index.d.mts +2 -0
- package/dist/util/file/index.cjs +1 -0
- package/dist/util/{file.d.mts → file/index.d.cts} +2 -2
- package/dist/util/{file.d.cts → file/index.d.mts} +2 -2
- package/dist/util/file/index.mjs +1 -0
- package/dist/util/format/index.cjs +1 -0
- package/dist/util/format/index.d.cts +6 -0
- package/dist/util/format/index.d.mts +6 -0
- package/dist/util/format/index.mjs +1 -0
- package/dist/util/generator/index.cjs +1 -0
- package/dist/util/{generator.d.cts → generator/index.d.cts} +1 -1
- package/dist/util/{generator.d.mts → generator/index.d.mts} +1 -1
- package/dist/util/phone/index.cjs +1 -0
- package/dist/util/{phone.d.cts → phone/index.d.cts} +1 -1
- package/dist/util/{phone.d.mts → phone/index.d.mts} +1 -1
- package/package.json +151 -108
- package/dist/button-CQZuaIU7.mjs +0 -1
- package/dist/button-ChX3XGbR.cjs +0 -1
- package/dist/common-B8HXyhZa.cjs +0 -1
- package/dist/common-CWHkXe0F.mjs +0 -1
- package/dist/common-D4sUwkFd.cjs +0 -1
- package/dist/file-5mweNdAM.cjs +0 -1
- package/dist/format-1_RTNUQv.mjs +0 -1
- package/dist/format-DEuImTYJ.cjs +0 -1
- package/dist/hooks/common/index.cjs +0 -1
- package/dist/hooks/common/index.d.cts +0 -72
- package/dist/hooks/common/index.d.mts +0 -72
- package/dist/hooks/common/index.mjs +0 -1
- package/dist/hooks/use-snackbar.cjs +0 -1
- package/dist/skeleton-B5ZccRFX.cjs +0 -1
- package/dist/skeleton-Y22bmaaB.mjs +0 -1
- package/dist/src-6KfzqI9Z.cjs +0 -1
- package/dist/src-CIMlbgv1.mjs +0 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.d.cts +0 -92
- package/dist/ui/index.d.mts +0 -92
- package/dist/ui/index.mjs +0 -1
- package/dist/ui/preserve-focus-button/index.cjs +0 -1
- package/dist/ui/preserve-focus-button/index.d.cts +0 -12
- package/dist/ui/preserve-focus-button/index.d.mts +0 -12
- package/dist/ui/preserve-focus-button/index.mjs +0 -1
- package/dist/ui-Bs9PP9eC.cjs +0 -1
- package/dist/ui-D2DoC_0E.mjs +0 -1
- package/dist/use-drag-resize-BdeLdulk.mjs +0 -1
- package/dist/use-drag-resize-DEgcua2U.d.cts +0 -48
- package/dist/use-drag-resize-DRHPv5RK.d.mts +0 -48
- package/dist/use-drag-resize-DeDqPC4h.cjs +0 -1
- package/dist/use-subset-image-Df2fCrtH.mjs +0 -1
- package/dist/use-subset-image-o_gmC1HL.cjs +0 -1
- package/dist/util/browser.cjs +0 -1
- package/dist/util/common.cjs +0 -1
- package/dist/util/common.mjs +0 -1
- package/dist/util/date.cjs +0 -1
- package/dist/util/editor.cjs +0 -1
- package/dist/util/editor.d.cts +0 -21
- package/dist/util/editor.d.mts +0 -21
- package/dist/util/editor.mjs +0 -1
- package/dist/util/file.cjs +0 -1
- package/dist/util/file.mjs +0 -1
- package/dist/util/format.cjs +0 -1
- package/dist/util/format.d.cts +0 -34
- package/dist/util/format.d.mts +0 -34
- package/dist/util/format.mjs +0 -1
- package/dist/util/generator.cjs +0 -1
- package/dist/util/phone.cjs +0 -1
- /package/dist/hooks/{use-snackbar.mjs → use-snackbar/index.mjs} +0 -0
- /package/dist/{use-dialog-stack-YiLs-sNf.cjs → use-dialog-stack-CH2nhH1Q.cjs} +0 -0
- /package/dist/{use-dialog-stack-Crj8YWJl.mjs → use-dialog-stack-nI1GTvfl.mjs} +0 -0
- /package/dist/util/{browser.mjs → browser/index.mjs} +0 -0
- /package/dist/util/{date.mjs → date/index.mjs} +0 -0
- /package/dist/util/{fetcher.cjs → fetcher/index.cjs} +0 -0
- /package/dist/util/{fetcher.mjs → fetcher/index.mjs} +0 -0
- /package/dist/util/{generator.mjs → generator/index.mjs} +0 -0
- /package/dist/util/{phone.mjs → phone/index.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../editor-CHuJTM4H.mjs";export{s as IMAGE_NODE_DRAGGING_ATTR,r as computeAspectRatio,a as imageNodeViewRenderer,n as isLargeTextSelection,e as parseDescription,i as removeNodes,o as teardownDragPreview,t as visibleSelectionRect};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../file-DeZ1OKdy.cjs`);exports.formatBytes=e.t,exports.getFileExtension=e.n,exports.getFilename=e.r,exports.isExternalSrc=e.i,exports.isSrcSetCompatible=e.a,exports.parsePath=e.o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/file.d.ts
|
|
1
|
+
//#region src/util/file/index.d.ts
|
|
2
2
|
declare function formatBytes(bytes: number, decimals?: number): string;
|
|
3
3
|
declare const getFilename: (s: string) => string;
|
|
4
4
|
declare const getFileExtension: (s: string) => string | undefined;
|
|
@@ -9,7 +9,7 @@ interface PathInfo {
|
|
|
9
9
|
filenameWithoutExtension: string;
|
|
10
10
|
}
|
|
11
11
|
declare const parsePath: (filepath: string, folder?: string) => PathInfo;
|
|
12
|
-
declare const isExternalSrc: (src
|
|
12
|
+
declare const isExternalSrc: (src?: string | null) => boolean;
|
|
13
13
|
declare const isSrcSetCompatible: (src: string) => boolean;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { formatBytes, getFileExtension, getFilename, isExternalSrc, isSrcSetCompatible, parsePath };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/file.d.ts
|
|
1
|
+
//#region src/util/file/index.d.ts
|
|
2
2
|
declare function formatBytes(bytes: number, decimals?: number): string;
|
|
3
3
|
declare const getFilename: (s: string) => string;
|
|
4
4
|
declare const getFileExtension: (s: string) => string | undefined;
|
|
@@ -9,7 +9,7 @@ interface PathInfo {
|
|
|
9
9
|
filenameWithoutExtension: string;
|
|
10
10
|
}
|
|
11
11
|
declare const parsePath: (filepath: string, folder?: string) => PathInfo;
|
|
12
|
-
declare const isExternalSrc: (src
|
|
12
|
+
declare const isExternalSrc: (src?: string | null) => boolean;
|
|
13
13
|
declare const isSrcSetCompatible: (src: string) => boolean;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { formatBytes, getFileExtension, getFilename, isExternalSrc, isSrcSetCompatible, parsePath };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"../../file-CapBKYce.mjs";export{a as formatBytes,n as getFileExtension,i as getFilename,t as isExternalSrc,e as isSrcSetCompatible,r as parsePath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t=`en-US`,n)=>new Intl.NumberFormat(t,{notation:`compact`,maximumFractionDigits:1,...n}).format(e),t=(e,t,n=`+`)=>e>t?`${t}${n}`:String(e),n=e=>e?.toLocaleString(`ko-KR`)||`0`;exports.formatCompactNumber=e,exports.formatExceedNumber=t,exports.formatKoNumber=n;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/util/format/index.d.ts
|
|
2
|
+
declare const formatCompactNumber: (number: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
|
|
3
|
+
declare const formatExceedNumber: (number: number, threshold: number, suffix?: string) => string;
|
|
4
|
+
declare const formatKoNumber: (number?: number | string | null) => string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { formatCompactNumber, formatExceedNumber, formatKoNumber };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/util/format/index.d.ts
|
|
2
|
+
declare const formatCompactNumber: (number: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
|
|
3
|
+
declare const formatExceedNumber: (number: number, threshold: number, suffix?: string) => string;
|
|
4
|
+
declare const formatKoNumber: (number?: number | string | null) => string;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { formatCompactNumber, formatExceedNumber, formatKoNumber };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t=`en-US`,n)=>new Intl.NumberFormat(t,{notation:`compact`,maximumFractionDigits:1,...n}).format(e),t=(e,t,n=`+`)=>e>t?`${t}${n}`:String(e),n=e=>e?.toLocaleString(`ko-KR`)||`0`;export{e as formatCompactNumber,t as formatExceedNumber,n as formatKoNumber};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`nanoid`);const n=(e,t)=>{let n=[];for(let r=e;r<t;r++)n.push(r);return n},r=(e,t,r=1)=>{let i=[],a=n(e,t);for(;i.length<r;){let t=Math.ceil(e),n=Math.floor(a.length),r=Math.floor(Math.random()*(n-t))+t,o=a.splice(r,1);i.push(o[0])}return[...i]},i=()=>(0,t.customAlphabet)(`0123456789abcdefghijklmnopqrstuvwxyz`,5)(),a=e=>{for(let t=0;t<e;t++)console.log(i())},o=(e,t,n)=>{let r=Math.floor((t-1)/n),i=r*n+1;return{current:r,start:i,end:Math.min(i+n-1,e)}},s=(e,t,n)=>{let{start:r,end:i}=o(e,t,n),a=r-1<1?1:r-1,s=i+1>e?e:i+1,c=Array.from({length:i-r+1},(e,t)=>r+t);return{prev:a,next:s,isPrev:a!==1,isNext:i<e,items:c}};exports.genNanoID=i,exports.generatePage=o,exports.generatePageGroup=s,exports.printNanoID=a,exports.randomNum=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`google-libphonenumber`);t=e.t(t);const{PhoneNumberUtil:n,PhoneNumberFormat:r}=t.default,i=n.getInstance(),a=(e,t,n)=>t?e===`ko`&&n&&n!==`82`||e!==`ko`&&n?`+${n}-${t.replace(/^0/,``)}`:t:`-`,o=({phone:e,alpha2Code:t,callingCode:n,format:o=`RFC3966`,locale:s=`en`})=>{if(!e?.trim())return``;try{let n=i.parse(e,t);return i.format(n,r[o])}catch{return a(s,e,n)}};exports.formatI18nNumber=o,exports.recomposeI18nNumber=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import lib from "google-libphonenumber";
|
|
2
2
|
|
|
3
|
-
//#region src/util/phone.d.ts
|
|
3
|
+
//#region src/util/phone/index.d.ts
|
|
4
4
|
declare const PhoneNumberFormat: typeof lib.PhoneNumberFormat;
|
|
5
5
|
type PhoneFormatType = 'international' | 'national' | 'rfc3966';
|
|
6
6
|
declare const recomposeI18nNumber: (locale: string, number?: string | null, i18nNumber?: string | null) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import lib from "google-libphonenumber";
|
|
2
2
|
|
|
3
|
-
//#region src/util/phone.d.ts
|
|
3
|
+
//#region src/util/phone/index.d.ts
|
|
4
4
|
declare const PhoneNumberFormat: typeof lib.PhoneNumberFormat;
|
|
5
5
|
type PhoneFormatType = 'international' | 'national' | 'rfc3966';
|
|
6
6
|
declare const recomposeI18nNumber: (locale: string, number?: string | null, i18nNumber?: string | null) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinerd/js-module",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"sideEffects": [
|
|
11
11
|
"**/*.css",
|
|
12
12
|
"./dist/styles/index.css",
|
|
13
|
+
"./dist/styles/admin.css",
|
|
13
14
|
"./dist/styles/editor.css"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
@@ -17,107 +18,40 @@
|
|
|
17
18
|
"import": "./dist/index.mjs",
|
|
18
19
|
"require": "./dist/index.cjs"
|
|
19
20
|
},
|
|
20
|
-
"./util/browser": {
|
|
21
|
-
"import": "./dist/util/browser.mjs",
|
|
22
|
-
"require": "./dist/util/browser.cjs"
|
|
23
|
-
},
|
|
24
|
-
"./util/common": {
|
|
25
|
-
"import": "./dist/util/common.mjs",
|
|
26
|
-
"require": "./dist/util/common.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./util/date": {
|
|
29
|
-
"import": "./dist/util/date.mjs",
|
|
30
|
-
"require": "./dist/util/date.cjs"
|
|
31
|
-
},
|
|
32
|
-
"./util/fetcher": {
|
|
33
|
-
"import": "./dist/util/fetcher.mjs",
|
|
34
|
-
"require": "./dist/util/fetcher.cjs"
|
|
35
|
-
},
|
|
36
|
-
"./util/file": {
|
|
37
|
-
"import": "./dist/util/file.mjs",
|
|
38
|
-
"require": "./dist/util/file.cjs"
|
|
39
|
-
},
|
|
40
|
-
"./util/format": {
|
|
41
|
-
"import": "./dist/util/format.mjs",
|
|
42
|
-
"require": "./dist/util/format.cjs"
|
|
43
|
-
},
|
|
44
|
-
"./util/generator": {
|
|
45
|
-
"import": "./dist/util/generator.mjs",
|
|
46
|
-
"require": "./dist/util/generator.cjs"
|
|
47
|
-
},
|
|
48
|
-
"./util/phone": {
|
|
49
|
-
"import": "./dist/util/phone.mjs",
|
|
50
|
-
"require": "./dist/util/phone.cjs"
|
|
51
|
-
},
|
|
52
|
-
"./util/editor": {
|
|
53
|
-
"import": "./dist/util/editor.mjs",
|
|
54
|
-
"require": "./dist/util/editor.cjs"
|
|
55
|
-
},
|
|
56
21
|
"./editor": {
|
|
57
22
|
"import": "./dist/editor/index.mjs",
|
|
58
23
|
"require": "./dist/editor/index.cjs"
|
|
59
24
|
},
|
|
60
|
-
"./
|
|
61
|
-
"import": "./dist/
|
|
62
|
-
"require": "./dist/
|
|
63
|
-
},
|
|
64
|
-
"./ui/carousel": {
|
|
65
|
-
"import": "./dist/ui/carousel/index.mjs",
|
|
66
|
-
"require": "./dist/ui/carousel/index.cjs"
|
|
25
|
+
"./editor/nodes/*": {
|
|
26
|
+
"import": "./dist/editor/nodes/*/index.mjs",
|
|
27
|
+
"require": "./dist/editor/nodes/*/index.cjs"
|
|
67
28
|
},
|
|
68
|
-
"./
|
|
69
|
-
"import": "./dist/
|
|
70
|
-
"require": "./dist/
|
|
29
|
+
"./editor/extensions/*": {
|
|
30
|
+
"import": "./dist/editor/extensions/*/index.mjs",
|
|
31
|
+
"require": "./dist/editor/extensions/*/index.cjs"
|
|
71
32
|
},
|
|
72
|
-
"./
|
|
73
|
-
"import": "./dist/
|
|
74
|
-
"require": "./dist/
|
|
33
|
+
"./util/*": {
|
|
34
|
+
"import": "./dist/util/*/index.mjs",
|
|
35
|
+
"require": "./dist/util/*/index.cjs"
|
|
75
36
|
},
|
|
76
|
-
"./ui
|
|
77
|
-
"import": "./dist/ui
|
|
78
|
-
"require": "./dist/ui
|
|
37
|
+
"./ui/*": {
|
|
38
|
+
"import": "./dist/ui/*/index.mjs",
|
|
39
|
+
"require": "./dist/ui/*/index.cjs"
|
|
79
40
|
},
|
|
80
|
-
"./ui/
|
|
81
|
-
"import": "./dist/ui/
|
|
82
|
-
"require": "./dist/ui/
|
|
41
|
+
"./ui/admin/*": {
|
|
42
|
+
"import": "./dist/ui/admin/*/index.mjs",
|
|
43
|
+
"require": "./dist/ui/admin/*/index.cjs"
|
|
83
44
|
},
|
|
84
|
-
"./
|
|
85
|
-
"import": "./dist/
|
|
86
|
-
"require": "./dist/
|
|
45
|
+
"./hooks/*": {
|
|
46
|
+
"import": "./dist/hooks/*/index.mjs",
|
|
47
|
+
"require": "./dist/hooks/*/index.cjs"
|
|
87
48
|
},
|
|
88
|
-
"./
|
|
89
|
-
"import": "./dist/
|
|
90
|
-
"require": "./dist/
|
|
91
|
-
},
|
|
92
|
-
"./ui/sheet": {
|
|
93
|
-
"import": "./dist/ui/sheet/index.mjs",
|
|
94
|
-
"require": "./dist/ui/sheet/index.cjs"
|
|
95
|
-
},
|
|
96
|
-
"./ui/switch": {
|
|
97
|
-
"import": "./dist/ui/switch/index.mjs",
|
|
98
|
-
"require": "./dist/ui/switch/index.cjs"
|
|
99
|
-
},
|
|
100
|
-
"./ui/tooltip": {
|
|
101
|
-
"import": "./dist/ui/tooltip/index.mjs",
|
|
102
|
-
"require": "./dist/ui/tooltip/index.cjs"
|
|
103
|
-
},
|
|
104
|
-
"./hooks/common": {
|
|
105
|
-
"import": "./dist/hooks/common/index.mjs",
|
|
106
|
-
"require": "./dist/hooks/common/index.cjs"
|
|
107
|
-
},
|
|
108
|
-
"./hooks/use-snackbar": {
|
|
109
|
-
"import": "./dist/hooks/use-snackbar.mjs",
|
|
110
|
-
"require": "./dist/hooks/use-snackbar.cjs"
|
|
111
|
-
},
|
|
112
|
-
"./providers/api-client": {
|
|
113
|
-
"import": "./dist/providers/api-client/index.mjs",
|
|
114
|
-
"require": "./dist/providers/api-client/index.cjs"
|
|
115
|
-
},
|
|
116
|
-
"./providers/noti-stack": {
|
|
117
|
-
"import": "./dist/providers/noti-stack/index.mjs",
|
|
118
|
-
"require": "./dist/providers/noti-stack/index.cjs"
|
|
49
|
+
"./providers/*": {
|
|
50
|
+
"import": "./dist/providers/*/index.mjs",
|
|
51
|
+
"require": "./dist/providers/*/index.cjs"
|
|
119
52
|
},
|
|
120
53
|
"./styles/index.css": "./dist/styles/index.css",
|
|
54
|
+
"./styles/admin.css": "./dist/styles/admin.css",
|
|
121
55
|
"./styles/editor.css": "./dist/styles/editor.css"
|
|
122
56
|
},
|
|
123
57
|
"keywords": [],
|
|
@@ -129,13 +63,31 @@
|
|
|
129
63
|
"@dnd-kit/sortable": "^10.0.0",
|
|
130
64
|
"@dnd-kit/utilities": "^3.2.2",
|
|
131
65
|
"@eslint/js": "^9.39.5",
|
|
132
|
-
"@floating-ui/react": "^0.27.
|
|
66
|
+
"@floating-ui/react": "^0.27.20",
|
|
67
|
+
"@fortawesome/fontawesome-svg-core": "^7.3.1",
|
|
68
|
+
"@fortawesome/free-solid-svg-icons": "^7.3.1",
|
|
69
|
+
"@fortawesome/react-fontawesome": "^3.5.0",
|
|
133
70
|
"@storybook/addon-docs": "^10.3.5",
|
|
134
71
|
"@storybook/react-vite": "^10.5.10",
|
|
135
72
|
"@tailwindcss/postcss": "^4.1.18",
|
|
136
|
-
"@
|
|
137
|
-
"@tiptap/
|
|
138
|
-
"@tiptap/
|
|
73
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
74
|
+
"@tiptap/core": "3.23.4",
|
|
75
|
+
"@tiptap/extension-color": "3.23.4",
|
|
76
|
+
"@tiptap/extension-details": "3.23.4",
|
|
77
|
+
"@tiptap/extension-document": "3.23.4",
|
|
78
|
+
"@tiptap/extension-heading": "3.23.4",
|
|
79
|
+
"@tiptap/extension-image": "3.23.4",
|
|
80
|
+
"@tiptap/extension-list": "3.23.4",
|
|
81
|
+
"@tiptap/extension-paragraph": "3.23.4",
|
|
82
|
+
"@tiptap/extension-table": "3.23.4",
|
|
83
|
+
"@tiptap/extension-text": "3.23.4",
|
|
84
|
+
"@tiptap/extension-text-style": "3.23.4",
|
|
85
|
+
"@tiptap/extension-youtube": "3.23.4",
|
|
86
|
+
"@tiptap/extensions": "3.23.4",
|
|
87
|
+
"@tiptap/pm": "3.23.4",
|
|
88
|
+
"@tiptap/react": "3.23.4",
|
|
89
|
+
"@tiptap/starter-kit": "3.23.4",
|
|
90
|
+
"@tiptap/suggestion": "3.23.4",
|
|
139
91
|
"@types/google-libphonenumber": "^7.4.30",
|
|
140
92
|
"@types/js-cookie": "^3.0.6",
|
|
141
93
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -157,6 +109,10 @@
|
|
|
157
109
|
"prettier": "^3.9.6",
|
|
158
110
|
"react": "^18.3.1",
|
|
159
111
|
"react-dom": "^18.3.1",
|
|
112
|
+
"react-dropzone": "^20.1.1",
|
|
113
|
+
"react-hook-form": "^7.87.0",
|
|
114
|
+
"react-select": "^5.10.2",
|
|
115
|
+
"react-select-async-paginate": "^0.7.11",
|
|
160
116
|
"storybook": "^10.5.10",
|
|
161
117
|
"tailwindcss": "^4.1.18",
|
|
162
118
|
"tsdown": "0.17.0-beta.5",
|
|
@@ -181,17 +137,47 @@
|
|
|
181
137
|
"@dnd-kit/sortable": "^10.0.0",
|
|
182
138
|
"@dnd-kit/utilities": "^3.0.0",
|
|
183
139
|
"@floating-ui/react": "^0.27.0",
|
|
184
|
-
"@
|
|
185
|
-
"@
|
|
186
|
-
"@
|
|
140
|
+
"@fortawesome/fontawesome-svg-core": "^6.0.0 || ^7.0.0",
|
|
141
|
+
"@fortawesome/react-fontawesome": "^3.0.0",
|
|
142
|
+
"@tailwindcss/typography": "^0.5.0",
|
|
143
|
+
"@tiptap/core": "^3.0.0",
|
|
144
|
+
"@tiptap/extension-color": "^3.0.0",
|
|
145
|
+
"@tiptap/extension-details": "^3.0.0",
|
|
146
|
+
"@tiptap/extension-document": "^3.0.0",
|
|
147
|
+
"@tiptap/extension-heading": "^3.0.0",
|
|
148
|
+
"@tiptap/extension-image": "^3.0.0",
|
|
149
|
+
"@tiptap/extension-list": "^3.0.0",
|
|
150
|
+
"@tiptap/extension-paragraph": "^3.0.0",
|
|
151
|
+
"@tiptap/extension-table": "^3.0.0",
|
|
152
|
+
"@tiptap/extension-text": "^3.0.0",
|
|
153
|
+
"@tiptap/extension-text-style": "^3.0.0",
|
|
154
|
+
"@tiptap/extension-youtube": "^3.0.0",
|
|
155
|
+
"@tiptap/extensions": "^3.0.0",
|
|
156
|
+
"@tiptap/pm": "^3.0.0",
|
|
157
|
+
"@tiptap/react": "^3.0.0",
|
|
158
|
+
"@tiptap/starter-kit": "^3.0.0",
|
|
159
|
+
"@tiptap/suggestion": "^3.0.0",
|
|
187
160
|
"embla-carousel": "^8.0.0",
|
|
188
161
|
"embla-carousel-react": "^8.0.0",
|
|
189
|
-
"notistack": "^3.0.0",
|
|
190
162
|
"motion": "^13.0.0",
|
|
163
|
+
"notistack": "^3.0.0",
|
|
191
164
|
"react": "^18.3.1 || ^19.0.0",
|
|
192
|
-
"react-dom": "^18.3.1 || ^19.0.0"
|
|
165
|
+
"react-dom": "^18.3.1 || ^19.0.0",
|
|
166
|
+
"react-dropzone": ">=14.0.0 <21.0.0",
|
|
167
|
+
"react-hook-form": "^7.0.0",
|
|
168
|
+
"react-select": "^5.0.0",
|
|
169
|
+
"react-select-async-paginate": "^0.7.0"
|
|
193
170
|
},
|
|
194
171
|
"peerDependenciesMeta": {
|
|
172
|
+
"@fortawesome/fontawesome-svg-core": {
|
|
173
|
+
"optional": true
|
|
174
|
+
},
|
|
175
|
+
"@fortawesome/react-fontawesome": {
|
|
176
|
+
"optional": true
|
|
177
|
+
},
|
|
178
|
+
"@floating-ui/react": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
195
181
|
"@dnd-kit/core": {
|
|
196
182
|
"optional": true
|
|
197
183
|
},
|
|
@@ -204,22 +190,52 @@
|
|
|
204
190
|
"@dnd-kit/utilities": {
|
|
205
191
|
"optional": true
|
|
206
192
|
},
|
|
207
|
-
"@floating-ui/react": {
|
|
208
|
-
"optional": true
|
|
209
|
-
},
|
|
210
193
|
"embla-carousel": {
|
|
211
194
|
"optional": true
|
|
212
195
|
},
|
|
213
196
|
"embla-carousel-react": {
|
|
214
197
|
"optional": true
|
|
215
198
|
},
|
|
216
|
-
"
|
|
199
|
+
"@tailwindcss/typography": {
|
|
217
200
|
"optional": true
|
|
218
201
|
},
|
|
219
|
-
"
|
|
202
|
+
"@tiptap/core": {
|
|
220
203
|
"optional": true
|
|
221
204
|
},
|
|
222
|
-
"@tiptap/
|
|
205
|
+
"@tiptap/extension-color": {
|
|
206
|
+
"optional": true
|
|
207
|
+
},
|
|
208
|
+
"@tiptap/extension-details": {
|
|
209
|
+
"optional": true
|
|
210
|
+
},
|
|
211
|
+
"@tiptap/extension-document": {
|
|
212
|
+
"optional": true
|
|
213
|
+
},
|
|
214
|
+
"@tiptap/extension-heading": {
|
|
215
|
+
"optional": true
|
|
216
|
+
},
|
|
217
|
+
"@tiptap/extension-image": {
|
|
218
|
+
"optional": true
|
|
219
|
+
},
|
|
220
|
+
"@tiptap/extension-list": {
|
|
221
|
+
"optional": true
|
|
222
|
+
},
|
|
223
|
+
"@tiptap/extension-paragraph": {
|
|
224
|
+
"optional": true
|
|
225
|
+
},
|
|
226
|
+
"@tiptap/extension-table": {
|
|
227
|
+
"optional": true
|
|
228
|
+
},
|
|
229
|
+
"@tiptap/extension-text": {
|
|
230
|
+
"optional": true
|
|
231
|
+
},
|
|
232
|
+
"@tiptap/extension-text-style": {
|
|
233
|
+
"optional": true
|
|
234
|
+
},
|
|
235
|
+
"@tiptap/extension-youtube": {
|
|
236
|
+
"optional": true
|
|
237
|
+
},
|
|
238
|
+
"@tiptap/extensions": {
|
|
223
239
|
"optional": true
|
|
224
240
|
},
|
|
225
241
|
"@tiptap/pm": {
|
|
@@ -227,14 +243,41 @@
|
|
|
227
243
|
},
|
|
228
244
|
"@tiptap/react": {
|
|
229
245
|
"optional": true
|
|
246
|
+
},
|
|
247
|
+
"@tiptap/starter-kit": {
|
|
248
|
+
"optional": true
|
|
249
|
+
},
|
|
250
|
+
"@tiptap/suggestion": {
|
|
251
|
+
"optional": true
|
|
252
|
+
},
|
|
253
|
+
"notistack": {
|
|
254
|
+
"optional": true
|
|
255
|
+
},
|
|
256
|
+
"react-dropzone": {
|
|
257
|
+
"optional": true
|
|
258
|
+
},
|
|
259
|
+
"react-hook-form": {
|
|
260
|
+
"optional": true
|
|
261
|
+
},
|
|
262
|
+
"react-select": {
|
|
263
|
+
"optional": true
|
|
264
|
+
},
|
|
265
|
+
"react-select-async-paginate": {
|
|
266
|
+
"optional": true
|
|
267
|
+
},
|
|
268
|
+
"motion": {
|
|
269
|
+
"optional": true
|
|
230
270
|
}
|
|
231
271
|
},
|
|
232
272
|
"scripts": {
|
|
233
273
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
234
|
-
"build": "tsdown && pnpm build:css",
|
|
235
|
-
"build:pack": "pnpm build && pnpm pack",
|
|
274
|
+
"build": "pnpm lint && tsdown && pnpm build:css",
|
|
275
|
+
"build:pack": "pnpm lint && pnpm build && pnpm pack",
|
|
236
276
|
"build:tsc": "pnpm tsc",
|
|
237
|
-
"build:css": "pnpm
|
|
277
|
+
"build:css": "pnpm build:css:index && pnpm build:css:admin && pnpm build:css:editor",
|
|
278
|
+
"build:css:index": "pnpm dlx @tailwindcss/cli -i src/styles/index.css -o dist/styles/index.css",
|
|
279
|
+
"build:css:admin": "pnpm dlx @tailwindcss/cli -i src/styles/admin.css -o dist/styles/admin.css",
|
|
280
|
+
"build:css:editor": "pnpm dlx @tailwindcss/cli -i src/styles/editor.css -o dist/styles/editor.css",
|
|
238
281
|
"storybook": "storybook dev -p 6006",
|
|
239
282
|
"build-storybook": "storybook build",
|
|
240
283
|
"lint": "eslint --cache --fix"
|
package/dist/button-CQZuaIU7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./common-ZUMpASnc.mjs";import{forwardRef as t}from"react";import{jsx as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";import{Slot as i}from"@radix-ui/react-slot";const a=r(e(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:e(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:e(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:e(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:e(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:e(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:e(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:e(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:e(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:e(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:e(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:e(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:e(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:e(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:e(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:e(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:e(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:e(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}});var o=t(({type:e=`button`,className:t,id:r,size:o,shadow:s,outline:c,variant:l,px:u,rounded:d,asChild:f,...p},m)=>n(f?i:`button`,{ref:m,...p,"data-komc":!0,type:e,id:r,className:a({size:o,shadow:s,outline:c,variant:l,px:u,rounded:d,className:t})}));export{o as t};
|
package/dist/button-ChX3XGbR.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./common-D4sUwkFd.cjs`);let n=require(`react`),r=require(`react/jsx-runtime`),i=require(`class-variance-authority`),a=require(`@radix-ui/react-slot`);const o=(0,i.cva)(t.n(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:t.n(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:t.n(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:t.n(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:t.n(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:t.n(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:t.n(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:t.n(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:t.n(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:t.n(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:t.n(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:t.n(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:t.n(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:t.n(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:t.n(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:t.n(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:t.n(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:t.n(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}}),s=(0,n.forwardRef)(({type:e=`button`,className:t,id:n,size:i,shadow:s,outline:c,variant:l,px:u,rounded:d,asChild:f,...p},m)=>(0,r.jsx)(f?a.Slot:`button`,{ref:m,...p,"data-komc":!0,type:e,id:n,className:o({size:i,shadow:s,outline:c,variant:l,px:u,rounded:d,className:t})}));var c=s;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
package/dist/common-B8HXyhZa.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`lodash-es`),n=require(`react`);function r(e,t){let[r,i]=(0,n.useState)(e);return(0,n.useEffect)(()=>{if(e){i(!0);return}let n=setTimeout(()=>i(!1),t);return()=>clearTimeout(n)},[e,t]),e||r}function i(e=1){let t=(0,n.useRef)(null),[r,i]=(0,n.useState)(!1),[a,o]=(0,n.useState)(0),[s,c]=(0,n.useState)(0),l=(0,n.useRef)(!1);return{ref:t,onMouseDown:e=>{t.current&&(i(!0),l.current=!1,o(e.pageX-t.current.offsetLeft),c(t.current.scrollLeft))},onMouseLeave:()=>i(!1),onMouseUp:()=>i(!1),onMouseMove:n=>{if(!r||!t.current)return;n.preventDefault();let i=(n.pageX-t.current.offsetLeft-a)*e;Math.abs(i)>10&&(l.current=!0),t.current.scrollLeft=s-i},onClickCapture:e=>{l.current&&(e.stopPropagation(),e.preventDefault())}}}const a=Symbol(`useEffectOnce.skip`);function o(e,t){let r=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current)return;let t=e();if(t!==a&&(r.current=!0,typeof t==`function`))return t},t)}function s({ref:e,setOpen:t}){let r=(0,n.useCallback)(n=>{e.current?.contains(n.target)||t(!1)},[e,t]);(0,n.useEffect)(()=>(document.addEventListener(`mousedown`,r),document.addEventListener(`touchstart`,r),()=>{document.removeEventListener(`mousedown`,r),document.removeEventListener(`touchstart`,r)}),[r])}const c=[`mouse`,`touch`];let l=0,u;function d(){l===0&&(u=document.body.style.overflow,document.body.style.overflow=`hidden`),l+=1}function f(){l=Math.max(0,l-1),l===0&&(document.body.style.overflow=u||`unset`,u=void 0)}function p({open:e,type:t=c}){let r=(0,n.useCallback)(e=>{e.preventDefault()},[]),i=(0,n.useCallback)(e=>{e.preventDefault()},[]);(0,n.useEffect)(()=>{let n=e&&t.includes(`mouse`),a=e&&t.includes(`touch`);return n&&(d(),document.addEventListener(`wheel`,i,{passive:!1})),a&&document.addEventListener(`touchmove`,r,{passive:!1}),()=>{n&&(f(),document.removeEventListener(`wheel`,i)),a&&document.removeEventListener(`touchmove`,r)}},[e,t,r,i])}function m({enabled:e=!0,behavior:t=`smooth`}={}){let[r,i]=(0,n.useState)(!1),a=(0,n.useRef)(null),o=(0,n.useCallback)(()=>{window.scrollTo({top:0,behavior:t})},[t]);return(0,n.useEffect)(()=>{let t=a.current;if(!t||!e){i(!1);return}let n=new IntersectionObserver(e=>{let t=e[0];t&&i(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return n.observe(t),()=>n.disconnect()},[e]),{isVisible:r,handleScrolToTop:o,ref:a}}function h(e){if(!e)return null;let t=e.parentElement;for(;t;){let{overflowY:e,overflow:n}=getComputedStyle(t);if(e===`auto`||e===`scroll`||n===`auto`||n===`scroll`)return t;t=t.parentElement}return null}function g(){let[e,t]=(0,n.useState)(null),[r,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!e)return;let t=h(e),n=new IntersectionObserver(([e])=>{let t=e.rootBounds?.top??0,n=e.boundingClientRect.top<t;i(!e.isIntersecting&&n)},{root:t,threshold:0,rootMargin:`0px`});return n.observe(e),()=>n.disconnect()},[e]),{sentinelRef:t,isStuck:r}}function _(e=1280){let[r,i]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let e=(0,t.throttle)(()=>{let e=window.innerWidth;i(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:r}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
package/dist/common-CWHkXe0F.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{throttle as e}from"lodash-es";import{useCallback as t,useEffect as n,useRef as r,useState as i}from"react";function a(e,t){let[r,a]=i(e);return n(()=>{if(e){a(!0);return}let n=setTimeout(()=>a(!1),t);return()=>clearTimeout(n)},[e,t]),e||r}function o(e=1){let t=r(null),[n,a]=i(!1),[o,s]=i(0),[c,l]=i(0),u=r(!1);return{ref:t,onMouseDown:e=>{t.current&&(a(!0),u.current=!1,s(e.pageX-t.current.offsetLeft),l(t.current.scrollLeft))},onMouseLeave:()=>a(!1),onMouseUp:()=>a(!1),onMouseMove:r=>{if(!n||!t.current)return;r.preventDefault();let i=(r.pageX-t.current.offsetLeft-o)*e;Math.abs(i)>10&&(u.current=!0),t.current.scrollLeft=c-i},onClickCapture:e=>{u.current&&(e.stopPropagation(),e.preventDefault())}}}const s=Symbol(`useEffectOnce.skip`);function c(e,t){let i=r(!1);n(()=>{if(i.current)return;let t=e();if(t!==s&&(i.current=!0,typeof t==`function`))return t},t)}function l({ref:e,setOpen:r}){let i=t(t=>{e.current?.contains(t.target)||r(!1)},[e,r]);n(()=>(document.addEventListener(`mousedown`,i),document.addEventListener(`touchstart`,i),()=>{document.removeEventListener(`mousedown`,i),document.removeEventListener(`touchstart`,i)}),[i])}const u=[`mouse`,`touch`];let d=0,f;function p(){d===0&&(f=document.body.style.overflow,document.body.style.overflow=`hidden`),d+=1}function m(){d=Math.max(0,d-1),d===0&&(document.body.style.overflow=f||`unset`,f=void 0)}function h({open:e,type:r=u}){let i=t(e=>{e.preventDefault()},[]),a=t(e=>{e.preventDefault()},[]);n(()=>{let t=e&&r.includes(`mouse`),n=e&&r.includes(`touch`);return t&&(p(),document.addEventListener(`wheel`,a,{passive:!1})),n&&document.addEventListener(`touchmove`,i,{passive:!1}),()=>{t&&(m(),document.removeEventListener(`wheel`,a)),n&&document.removeEventListener(`touchmove`,i)}},[e,r,i,a])}function g({enabled:e=!0,behavior:a=`smooth`}={}){let[o,s]=i(!1),c=r(null),l=t(()=>{window.scrollTo({top:0,behavior:a})},[a]);return n(()=>{let t=c.current;if(!t||!e){s(!1);return}let n=new IntersectionObserver(e=>{let t=e[0];t&&s(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return n.observe(t),()=>n.disconnect()},[e]),{isVisible:o,handleScrolToTop:l,ref:c}}function _(e){if(!e)return null;let t=e.parentElement;for(;t;){let{overflowY:e,overflow:n}=getComputedStyle(t);if(e===`auto`||e===`scroll`||n===`auto`||n===`scroll`)return t;t=t.parentElement}return null}function v(){let[e,t]=i(null),[r,a]=i(!1);return n(()=>{if(!e)return;let t=_(e),n=new IntersectionObserver(([e])=>{let t=e.rootBounds?.top??0,n=e.boundingClientRect.top<t;a(!e.isIntersecting&&n)},{root:t,threshold:0,rootMargin:`0px`});return n.observe(e),()=>n.disconnect()},[e]),{sentinelRef:t,isStuck:r}}function y(t=1280){let[r,a]=i(t);return n(()=>{let t=e(()=>{let e=window.innerWidth;a(e)},200);return window.addEventListener(`resize`,t),t(),()=>window.removeEventListener(`resize`,t)},[]),{windowSize:r}}export{l as a,o as c,h as i,a as l,v as n,s as o,g as r,c as s,y as t};
|
package/dist/common-D4sUwkFd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`query-string`);t=e.t(t);let n=require(`lodash-es`),r=require(`slug`);r=e.t(r),r.default.extend({'"':`-`,"”":`-`,"“":`-`,"•":`----`}),r.default.setLocale(`en`);const i=(e,n=[])=>{if(typeof window>`u`)return``;let{hash:r,search:i}=window.location,a=t.default.parse(i);Object.keys(e).forEach(t=>{e[t]?a[t]=e[t]:delete a[t]});let o={...a};return Object.keys(a).forEach(e=>{n.includes(e)&&delete o[e]}),`?${t.default.stringify(o,{encode:!0})}${r}`},a=(e,t)=>{let n=0;return e%t===0&&(n=e/t),n=Math.ceil(e/t),n<1&&(n=1),n},o=e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},s=e=>{let t=document.getElementById(`naverMapLib`);if(!t){let t=document.createElement(`script`);t.src=`https://oapi.map.naver.com/openapi/v3/maps.js?ncpKeyId=ecs1pyoo9b`,t.id=`naverMapLib`,document.body.appendChild(t),t.onload=()=>{e&&e()}}t&&e&&e()},c=(e,...t)=>{let n=`${e}`;return t.forEach(e=>{e&&(n=`${n}-${(0,r.default)(e)}`)}),n},l=e=>{let t=[];e.i18n?.forEach(e=>{e.locale===`en`&&e.name&&t.push(e.name)});let n=e.series?.i18n.find(e=>e.locale===`en`);return n?.name&&t.push(n.name.toLowerCase()),e.stockNo&&t.push(e.stockNo[0]),c(e.id,...t)},u=e=>{let t=e;return t.length>0?t[0].trim():``},d=(e=`en`,t,n)=>{if(!t||!n||t.length<=0)return``;let r=[...t].sort(p);if(e){let t=r.findIndex(t=>t.locale===e);if(t!==-1){let e=r.splice(t,1);r.unshift(e[0])}}for(let e of r){let t=e[n];if(!(Array.isArray(t)&&t.length===0)&&t)return t}return``},f=(e,t,n)=>{if(!t||!n||t.length<=0)return``;let r=[...t].sort(p);if(e){let t=r.findIndex(t=>t.locale===e);if(t!==-1){let e=r.splice(t,1);r.unshift(e[0])}}let i=``;for(let e of r){let t=e[n];if(t){i=String(t);break}}return i},p=(e,t)=>e.priority<t.priority?-1:e.priority>t.priority?1:0,m=(e,t,n)=>{if(e){let r;r=Array.isArray(e)?e[0]:e;try{return t(r)}catch{return n}}return n},h=(e,t)=>{let{[t]:n,...r}=e;return r},g=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.includes(e))),_=(e,t)=>(0,n.intersection)(e,t).length>0,v=e=>e.split(`:`).pop()?.split(`.`).pop(),y=(e,...t)=>[e,t].flat().join(`.`).replace(`:.`,`.`),b=(e=`en`,t)=>{if(t.length<=0)return`-`;let n=t[0];return n?x(e,n.i18n):`-`},x=(e=`en`,t)=>{if(t.length===0)return``;let n=d(e,t,`address1`)?.replace(`대한민국`,``)||``,r=t.find(t=>t.locale===e)?.address2,i=[n];return e===`ko`?i.push(r):i.unshift(r),i.filter(Boolean).join(`, `).trim()},S=e=>{let t=0;for(let n of e)t+=n.weight;let n=Math.random()*t,r=0;for(let t of e)if(r+=t.weight,n<r)return t;return e[e.length-1]},C=e=>new Promise(t=>setTimeout(t,e)),w=(...e)=>e.filter(Boolean).join(` `),T=(e,t,n)=>{if(!e||typeof e!=`object`)return e;let r=t.split(`.`),i=(e,t)=>{if(t.length===0)return Array.isArray(e)?[...e].sort((e,t)=>{let r=e.locale,i=t.locale;if(!r||!i)return 0;let a=n.indexOf(r),o=n.indexOf(i);return a===-1&&o===-1?0:a===-1?1:o===-1?-1:a-o}):e;if(Array.isArray(e))return e.map(e=>i(e,t));if(typeof e==`object`&&e){let[n,...r]=t,a=e[n];if(a!==void 0)return{...e,[n]:i(a,r)}}return e};return i(e,r)},E=async e=>new Promise((t,n)=>{let r=new Image;r.src=URL.createObjectURL(e),r.onload=()=>{t({originalWidth:r.naturalWidth,originalHeight:r.naturalHeight,originalName:e.name})},r.onerror=e=>{n(e)}});Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return C}});
|
package/dist/file-5mweNdAM.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t=0){if(e==0)return`0 Bytes`;let n=1024,r=t,i=[`Bytes`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],a=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/n**+a).toFixed(r))+` `+i[a]}const t=e=>e.split(`.`).slice(0,-1).join(`.`),n=e=>e.split(`.`).pop(),r=(e,t)=>{let n={directory:``,filename:``,extension:``,filenameWithoutExtension:``},r=e.lastIndexOf(`/`),i=r>=0?e.substring(r+1):e,a=i.lastIndexOf(`.`),o=a>0?i.substring(a+1):``,s=a>0?i.substring(0,a):i;if(n.filename=i,n.extension=o,n.filenameWithoutExtension=s,e.startsWith(`http`)){let r=t?`/${t}/`:`/`,i=e.indexOf(r);if(i!==-1){let t=e.substring(i+r.length),a=t.lastIndexOf(`/`);return n.directory=a===-1?``:t.substring(0,a),n}}return n.directory=r===-1?``:e.substring(0,r),n},i=e=>e.startsWith(`http`)||e.startsWith(`blob:`)||e.startsWith(`data:`),a=[`svg`,`gif`],o=e=>{if(!e||e.startsWith(`blob:`)||e.startsWith(`data:`))return!1;let t=e.lastIndexOf(`/`),n=t>=0?e.substring(t+1):e,r=n.lastIndexOf(`.`),i=r>0?n.substring(r+1):``;return!a.includes(i?.toLowerCase()??``)};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
package/dist/format-1_RTNUQv.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=(e,t=`en-US`,n)=>new Intl.NumberFormat(t,{notation:`compact`,maximumFractionDigits:1,...n}).format(e),t=(e,t,n=`+`)=>e>t?`${t}${n}`:String(e),n=e=>e?.toLocaleString(`ko-KR`)||`0`,r=({min:e,max:t,width:n,height:r,type:i,currentRatio:a})=>{let o=n,s=r,c=null,l=1;return typeof a==`number`&&a>0?l=a:r>0&&(l=n/r),i===`width`&&(s=Math.round(n/l),n<e.width&&(c=`width-under-min`),n>t.width&&(c=`width-over-max`),s<e.height&&(c=`height-under-min`)),i===`height`&&(o=Math.round(r*l),r<e.height&&(c=`height-under-min`),o<e.width&&(c=`width-under-min`),o>t.width&&(c=`width-over-max`)),{width:o,height:s,result:c}};export{n as i,e as n,t as r,r as t};
|
package/dist/format-DEuImTYJ.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=(e,t=`en-US`,n)=>new Intl.NumberFormat(t,{notation:`compact`,maximumFractionDigits:1,...n}).format(e),t=(e,t,n=`+`)=>e>t?`${t}${n}`:String(e),n=e=>e?.toLocaleString(`ko-KR`)||`0`,r=({min:e,max:t,width:n,height:r,type:i,currentRatio:a})=>{let o=n,s=r,c=null,l=1;return typeof a==`number`&&a>0?l=a:r>0&&(l=n/r),i===`width`&&(s=Math.round(n/l),n<e.width&&(c=`width-under-min`),n>t.width&&(c=`width-over-max`),s<e.height&&(c=`height-under-min`)),i===`height`&&(o=Math.round(r*l),r<e.height&&(c=`height-under-min`),o<e.width&&(c=`width-under-min`),o>t.width&&(c=`width-over-max`)),{width:o,height:s,result:c}};Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";require(`../../src-6KfzqI9Z.cjs`),require(`../../file-5mweNdAM.cjs`);const e=require(`../../use-drag-resize-DeDqPC4h.cjs`),t=require(`../../common-B8HXyhZa.cjs`),n=require(`../../use-dialog-stack-YiLs-sNf.cjs`);require(`../../api-client-C3o2pO0q.cjs`);const r=require(`../../use-subset-image-o_gmC1HL.cjs`);exports.RESIZE_CONSTANTS=e.t,exports.SKIP=t.o,exports.SUBSETS=r.t,exports.useDelayUnmount=t.l,exports.useDialogStack=n.t,exports.useDragResize=e.n,exports.useDragScroll=t.c,exports.useEffectOnce=t.s,exports.useOutsideClick=t.a,exports.useScrollLock=t.i,exports.useScrollTop=t.r,exports.useSticky=t.n,exports.useSubsetImage=r.n,exports.useWindowSize=t.t;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { a as Size, i as ResizeHandleProps, n as RESIZE_CONSTANTS, o as UseDragResizeProps, r as ResizeDirection, s as useDragResize, t as LimitSize } from "../../use-drag-resize-DEgcua2U.cjs";
|
|
2
|
-
import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-bDB5TSd4.cjs";
|
|
3
|
-
import * as react6 from "react";
|
|
4
|
-
import { DependencyList, Dispatch, EffectCallback, RefObject, SetStateAction } from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/hooks/use-delay-unmount.d.ts
|
|
7
|
-
declare function useDelayUnmount(isMounted: boolean, delayTime: number): boolean;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/hooks/use-dialog-stack.d.ts
|
|
10
|
-
declare function useDialogStack(isOpen: boolean, onClose: () => void, lockScroll?: boolean): void;
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/hooks/use-drag-scroll.d.ts
|
|
13
|
-
declare function useDragScroll(speed?: number): {
|
|
14
|
-
ref: react6.RefObject<HTMLDivElement>;
|
|
15
|
-
onMouseDown: (e: React.MouseEvent) => void;
|
|
16
|
-
onMouseLeave: () => void;
|
|
17
|
-
onMouseUp: () => void;
|
|
18
|
-
onMouseMove: (e: React.MouseEvent) => void;
|
|
19
|
-
onClickCapture: (e: React.MouseEvent) => void;
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/hooks/use-effect-once.d.ts
|
|
23
|
-
declare const SKIP: unique symbol;
|
|
24
|
-
declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/hooks/use-outside-click.d.ts
|
|
27
|
-
interface UseOutsideClickProps {
|
|
28
|
-
ref: RefObject<HTMLElement | null>;
|
|
29
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
30
|
-
}
|
|
31
|
-
declare function useOutsideClick({
|
|
32
|
-
ref,
|
|
33
|
-
setOpen
|
|
34
|
-
}: UseOutsideClickProps): void;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/hooks/use-scroll-lock.d.ts
|
|
37
|
-
type ScrollLockType = 'mouse' | 'touch';
|
|
38
|
-
interface UseScrollLockProps {
|
|
39
|
-
open: boolean;
|
|
40
|
-
type?: readonly ScrollLockType[];
|
|
41
|
-
}
|
|
42
|
-
declare function useScrollLock({
|
|
43
|
-
open,
|
|
44
|
-
type
|
|
45
|
-
}: UseScrollLockProps): void;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/hooks/use-scroll-top.d.ts
|
|
48
|
-
interface UseScrollTopProps {
|
|
49
|
-
enabled?: boolean;
|
|
50
|
-
behavior?: ScrollBehavior;
|
|
51
|
-
}
|
|
52
|
-
declare function useScrollTop({
|
|
53
|
-
enabled,
|
|
54
|
-
behavior
|
|
55
|
-
}?: UseScrollTopProps): {
|
|
56
|
-
isVisible: boolean;
|
|
57
|
-
handleScrolToTop: () => void;
|
|
58
|
-
ref: react6.RefObject<HTMLDivElement>;
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/hooks/use-sticky.d.ts
|
|
62
|
-
declare function useSticky(): {
|
|
63
|
-
sentinelRef: react6.Dispatch<react6.SetStateAction<HTMLDivElement | null>>;
|
|
64
|
-
isStuck: boolean;
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/hooks/use-window-size.d.ts
|
|
68
|
-
declare function useWindowSize(defaultWidth?: number): {
|
|
69
|
-
windowSize: number;
|
|
70
|
-
};
|
|
71
|
-
//#endregion
|
|
72
|
-
export { BaseProps, Folder, LimitSize, RESIZE_CONSTANTS, ResizeDirection, ResizeHandleProps, SKIP, SUBSETS, Size, UseDragResizeProps, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragResize, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
|