@machinerd/js-module 0.10.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 +134 -59
- package/dist/align-CdK8Ar2w.mjs +1 -0
- package/dist/align-Dp4avXIm.cjs +1 -0
- package/dist/{api-client-BH5tW3p8.cjs → api-client-BXH8Rm-J.cjs} +1 -1
- package/dist/{api-client-B-kwZogn.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 -0
- package/dist/editor/index.d.cts +58 -0
- package/dist/editor/index.d.mts +58 -0
- package/dist/editor/index.mjs +1 -0
- 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-CjW1pMb_.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-CFOJBfVt.d.mts → 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-ChiDX5zW.d.cts → 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-Ck1Gk5Qk.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-oZAiC9VK.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 +3109 -0
- package/dist/styles/index.css +919 -64
- 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/ui/button/index.d.cts +50 -0
- package/dist/ui/button/index.d.mts +50 -0
- 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.d.mts +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 -0
- package/dist/ui/dropdown/index.d.cts +44 -0
- package/dist/ui/dropdown/index.d.mts +44 -0
- package/dist/ui/dropdown/index.mjs +1 -0
- 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.mts → common/index.d.cts} +5 -5
- package/dist/util/{common.d.cts → common/index.d.mts} +5 -5
- package/dist/{common-CCtD91nO.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.cts → file/index.d.cts} +2 -2
- package/dist/util/{file.d.mts → file/index.d.mts} +2 -2
- package/dist/util/file/index.mjs +1 -0
- package/dist/util/{format.d.cts → format/index.d.cts} +1 -1
- package/dist/util/{format.d.mts → format/index.d.mts} +1 -1
- 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 +165 -84
- package/dist/common-BQEGjmFn.cjs +0 -1
- package/dist/common-D4sUwkFd.cjs +0 -1
- package/dist/common-L3y7_eAy.mjs +0 -1
- package/dist/file-5mweNdAM.cjs +0 -1
- package/dist/hooks/common/index.cjs +0 -1
- package/dist/hooks/common/index.d.cts +0 -71
- package/dist/hooks/common/index.d.mts +0 -71
- package/dist/hooks/common/index.mjs +0 -1
- package/dist/hooks/use-snackbar.cjs +0 -1
- package/dist/skeleton-BCdxpynL.cjs +0 -1
- package/dist/skeleton-azZrk5-3.mjs +0 -1
- package/dist/src-6KfzqI9Z.cjs +0 -1
- package/dist/src-Ce2i3Lkj.mjs +0 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.d.cts +0 -135
- package/dist/ui/index.d.mts +0 -135
- package/dist/ui/index.mjs +0 -1
- package/dist/use-subset-image-CTy5mCLo.cjs +0 -1
- package/dist/use-subset-image-LQWsE5P4.mjs +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/file.cjs +0 -1
- package/dist/util/file.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-DmBRPhe2.cjs → use-dialog-stack-CH2nhH1Q.cjs} +0 -0
- /package/dist/{use-dialog-stack-STwnhvBB.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/{format.cjs → format/index.cjs} +0 -0
- /package/dist/util/{format.mjs → format/index.mjs} +0 -0
- /package/dist/util/{generator.mjs → generator/index.mjs} +0 -0
- /package/dist/util/{phone.mjs → phone/index.mjs} +0 -0
|
@@ -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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/format.d.ts
|
|
1
|
+
//#region src/util/format/index.d.ts
|
|
2
2
|
declare const formatCompactNumber: (number: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
|
|
3
3
|
declare const formatExceedNumber: (number: number, threshold: number, suffix?: string) => string;
|
|
4
4
|
declare const formatKoNumber: (number?: number | string | null) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/format.d.ts
|
|
1
|
+
//#region src/util/format/index.d.ts
|
|
2
2
|
declare const formatCompactNumber: (number: number, locale?: string, options?: Intl.NumberFormatOptions) => string;
|
|
3
3
|
declare const formatExceedNumber: (number: number, threshold: number, suffix?: string) => string;
|
|
4
4
|
declare const formatKoNumber: (number?: number | string | null) => string;
|
|
@@ -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",
|
|
@@ -9,98 +9,50 @@
|
|
|
9
9
|
],
|
|
10
10
|
"sideEffects": [
|
|
11
11
|
"**/*.css",
|
|
12
|
-
"./dist/styles/index.css"
|
|
12
|
+
"./dist/styles/index.css",
|
|
13
|
+
"./dist/styles/admin.css",
|
|
14
|
+
"./dist/styles/editor.css"
|
|
13
15
|
],
|
|
14
16
|
"exports": {
|
|
15
17
|
".": {
|
|
16
18
|
"import": "./dist/index.mjs",
|
|
17
19
|
"require": "./dist/index.cjs"
|
|
18
20
|
},
|
|
19
|
-
"./
|
|
20
|
-
"import": "./dist/
|
|
21
|
-
"require": "./dist/
|
|
21
|
+
"./editor": {
|
|
22
|
+
"import": "./dist/editor/index.mjs",
|
|
23
|
+
"require": "./dist/editor/index.cjs"
|
|
22
24
|
},
|
|
23
|
-
"./
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
"require": "./dist/
|
|
25
|
+
"./editor/nodes/*": {
|
|
26
|
+
"import": "./dist/editor/nodes/*/index.mjs",
|
|
27
|
+
"require": "./dist/editor/nodes/*/index.cjs"
|
|
26
28
|
},
|
|
27
|
-
"./
|
|
28
|
-
"import": "./dist/
|
|
29
|
-
"require": "./dist/
|
|
29
|
+
"./editor/extensions/*": {
|
|
30
|
+
"import": "./dist/editor/extensions/*/index.mjs",
|
|
31
|
+
"require": "./dist/editor/extensions/*/index.cjs"
|
|
30
32
|
},
|
|
31
|
-
"./util
|
|
32
|
-
"import": "./dist/util
|
|
33
|
-
"require": "./dist/util
|
|
33
|
+
"./util/*": {
|
|
34
|
+
"import": "./dist/util/*/index.mjs",
|
|
35
|
+
"require": "./dist/util/*/index.cjs"
|
|
34
36
|
},
|
|
35
|
-
"./
|
|
36
|
-
"import": "./dist/
|
|
37
|
-
"require": "./dist/
|
|
37
|
+
"./ui/*": {
|
|
38
|
+
"import": "./dist/ui/*/index.mjs",
|
|
39
|
+
"require": "./dist/ui/*/index.cjs"
|
|
38
40
|
},
|
|
39
|
-
"./
|
|
40
|
-
"import": "./dist/
|
|
41
|
-
"require": "./dist/
|
|
41
|
+
"./ui/admin/*": {
|
|
42
|
+
"import": "./dist/ui/admin/*/index.mjs",
|
|
43
|
+
"require": "./dist/ui/admin/*/index.cjs"
|
|
42
44
|
},
|
|
43
|
-
"./
|
|
44
|
-
"import": "./dist/
|
|
45
|
-
"require": "./dist/
|
|
45
|
+
"./hooks/*": {
|
|
46
|
+
"import": "./dist/hooks/*/index.mjs",
|
|
47
|
+
"require": "./dist/hooks/*/index.cjs"
|
|
46
48
|
},
|
|
47
|
-
"./
|
|
48
|
-
"import": "./dist/
|
|
49
|
-
"require": "./dist/
|
|
49
|
+
"./providers/*": {
|
|
50
|
+
"import": "./dist/providers/*/index.mjs",
|
|
51
|
+
"require": "./dist/providers/*/index.cjs"
|
|
50
52
|
},
|
|
51
|
-
"./
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
"./ui/carousel": {
|
|
56
|
-
"import": "./dist/ui/carousel/index.mjs",
|
|
57
|
-
"require": "./dist/ui/carousel/index.cjs"
|
|
58
|
-
},
|
|
59
|
-
"./ui/dialog": {
|
|
60
|
-
"import": "./dist/ui/dialog/index.mjs",
|
|
61
|
-
"require": "./dist/ui/dialog/index.cjs"
|
|
62
|
-
},
|
|
63
|
-
"./ui/motion-dialog": {
|
|
64
|
-
"import": "./dist/ui/motion-dialog/index.mjs",
|
|
65
|
-
"require": "./dist/ui/motion-dialog/index.cjs"
|
|
66
|
-
},
|
|
67
|
-
"./ui/dnd": {
|
|
68
|
-
"import": "./dist/ui/dnd/index.mjs",
|
|
69
|
-
"require": "./dist/ui/dnd/index.cjs"
|
|
70
|
-
},
|
|
71
|
-
"./ui/image": {
|
|
72
|
-
"import": "./dist/ui/image/index.mjs",
|
|
73
|
-
"require": "./dist/ui/image/index.cjs"
|
|
74
|
-
},
|
|
75
|
-
"./ui/sheet": {
|
|
76
|
-
"import": "./dist/ui/sheet/index.mjs",
|
|
77
|
-
"require": "./dist/ui/sheet/index.cjs"
|
|
78
|
-
},
|
|
79
|
-
"./ui/switch": {
|
|
80
|
-
"import": "./dist/ui/switch/index.mjs",
|
|
81
|
-
"require": "./dist/ui/switch/index.cjs"
|
|
82
|
-
},
|
|
83
|
-
"./ui/tooltip": {
|
|
84
|
-
"import": "./dist/ui/tooltip/index.mjs",
|
|
85
|
-
"require": "./dist/ui/tooltip/index.cjs"
|
|
86
|
-
},
|
|
87
|
-
"./hooks/common": {
|
|
88
|
-
"import": "./dist/hooks/common/index.mjs",
|
|
89
|
-
"require": "./dist/hooks/common/index.cjs"
|
|
90
|
-
},
|
|
91
|
-
"./hooks/use-snackbar": {
|
|
92
|
-
"import": "./dist/hooks/use-snackbar.mjs",
|
|
93
|
-
"require": "./dist/hooks/use-snackbar.cjs"
|
|
94
|
-
},
|
|
95
|
-
"./providers/api-client": {
|
|
96
|
-
"import": "./dist/providers/api-client/index.mjs",
|
|
97
|
-
"require": "./dist/providers/api-client/index.cjs"
|
|
98
|
-
},
|
|
99
|
-
"./providers/noti-stack": {
|
|
100
|
-
"import": "./dist/providers/noti-stack/index.mjs",
|
|
101
|
-
"require": "./dist/providers/noti-stack/index.cjs"
|
|
102
|
-
},
|
|
103
|
-
"./styles/index.css": "./dist/styles/index.css"
|
|
53
|
+
"./styles/index.css": "./dist/styles/index.css",
|
|
54
|
+
"./styles/admin.css": "./dist/styles/admin.css",
|
|
55
|
+
"./styles/editor.css": "./dist/styles/editor.css"
|
|
104
56
|
},
|
|
105
57
|
"keywords": [],
|
|
106
58
|
"author": "KOMACHINE",
|
|
@@ -111,9 +63,31 @@
|
|
|
111
63
|
"@dnd-kit/sortable": "^10.0.0",
|
|
112
64
|
"@dnd-kit/utilities": "^3.2.2",
|
|
113
65
|
"@eslint/js": "^9.39.5",
|
|
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",
|
|
114
70
|
"@storybook/addon-docs": "^10.3.5",
|
|
115
71
|
"@storybook/react-vite": "^10.5.10",
|
|
116
72
|
"@tailwindcss/postcss": "^4.1.18",
|
|
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",
|
|
117
91
|
"@types/google-libphonenumber": "^7.4.30",
|
|
118
92
|
"@types/js-cookie": "^3.0.6",
|
|
119
93
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -135,6 +109,10 @@
|
|
|
135
109
|
"prettier": "^3.9.6",
|
|
136
110
|
"react": "^18.3.1",
|
|
137
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",
|
|
138
116
|
"storybook": "^10.5.10",
|
|
139
117
|
"tailwindcss": "^4.1.18",
|
|
140
118
|
"tsdown": "0.17.0-beta.5",
|
|
@@ -158,14 +136,48 @@
|
|
|
158
136
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
159
137
|
"@dnd-kit/sortable": "^10.0.0",
|
|
160
138
|
"@dnd-kit/utilities": "^3.0.0",
|
|
139
|
+
"@floating-ui/react": "^0.27.0",
|
|
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",
|
|
161
160
|
"embla-carousel": "^8.0.0",
|
|
162
161
|
"embla-carousel-react": "^8.0.0",
|
|
163
|
-
"notistack": "^3.0.0",
|
|
164
162
|
"motion": "^13.0.0",
|
|
163
|
+
"notistack": "^3.0.0",
|
|
165
164
|
"react": "^18.3.1 || ^19.0.0",
|
|
166
|
-
"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"
|
|
167
170
|
},
|
|
168
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
|
+
},
|
|
169
181
|
"@dnd-kit/core": {
|
|
170
182
|
"optional": true
|
|
171
183
|
},
|
|
@@ -184,19 +196,88 @@
|
|
|
184
196
|
"embla-carousel-react": {
|
|
185
197
|
"optional": true
|
|
186
198
|
},
|
|
199
|
+
"@tailwindcss/typography": {
|
|
200
|
+
"optional": true
|
|
201
|
+
},
|
|
202
|
+
"@tiptap/core": {
|
|
203
|
+
"optional": true
|
|
204
|
+
},
|
|
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": {
|
|
239
|
+
"optional": true
|
|
240
|
+
},
|
|
241
|
+
"@tiptap/pm": {
|
|
242
|
+
"optional": true
|
|
243
|
+
},
|
|
244
|
+
"@tiptap/react": {
|
|
245
|
+
"optional": true
|
|
246
|
+
},
|
|
247
|
+
"@tiptap/starter-kit": {
|
|
248
|
+
"optional": true
|
|
249
|
+
},
|
|
250
|
+
"@tiptap/suggestion": {
|
|
251
|
+
"optional": true
|
|
252
|
+
},
|
|
187
253
|
"notistack": {
|
|
188
254
|
"optional": true
|
|
189
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
|
+
},
|
|
190
268
|
"motion": {
|
|
191
269
|
"optional": true
|
|
192
270
|
}
|
|
193
271
|
},
|
|
194
272
|
"scripts": {
|
|
195
273
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
196
|
-
"build": "tsdown && pnpm build:css",
|
|
197
|
-
"build:pack": "pnpm build && pnpm pack",
|
|
274
|
+
"build": "pnpm lint && tsdown && pnpm build:css",
|
|
275
|
+
"build:pack": "pnpm lint && pnpm build && pnpm pack",
|
|
198
276
|
"build:tsc": "pnpm tsc",
|
|
199
|
-
"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",
|
|
200
281
|
"storybook": "storybook dev -p 6006",
|
|
201
282
|
"build-storybook": "storybook build",
|
|
202
283
|
"lint": "eslint --cache --fix"
|
package/dist/common-BQEGjmFn.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-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/common-L3y7_eAy.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/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}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";require(`../../src-6KfzqI9Z.cjs`),require(`../../file-5mweNdAM.cjs`);const e=require(`../../common-BQEGjmFn.cjs`),t=require(`../../use-dialog-stack-DmBRPhe2.cjs`);require(`../../api-client-BH5tW3p8.cjs`);const n=require(`../../use-subset-image-CTy5mCLo.cjs`);exports.SKIP=e.o,exports.SUBSETS=n.t,exports.useDelayUnmount=e.l,exports.useDialogStack=t.t,exports.useDragScroll=e.c,exports.useEffectOnce=e.s,exports.useOutsideClick=e.a,exports.useScrollLock=e.i,exports.useScrollTop=e.r,exports.useSticky=e.n,exports.useSubsetImage=n.n,exports.useWindowSize=e.t;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-oZAiC9VK.cjs";
|
|
2
|
-
import * as react0 from "react";
|
|
3
|
-
import { DependencyList, Dispatch, EffectCallback, RefObject, SetStateAction } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/hooks/use-delay-unmount.d.ts
|
|
6
|
-
declare function useDelayUnmount(isMounted: boolean, delayTime: number): boolean;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/hooks/use-dialog-stack.d.ts
|
|
9
|
-
declare function useDialogStack(isOpen: boolean, onClose: () => void, lockScroll?: boolean): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/hooks/use-drag-scroll.d.ts
|
|
12
|
-
declare function useDragScroll(speed?: number): {
|
|
13
|
-
ref: react0.RefObject<HTMLDivElement>;
|
|
14
|
-
onMouseDown: (e: React.MouseEvent) => void;
|
|
15
|
-
onMouseLeave: () => void;
|
|
16
|
-
onMouseUp: () => void;
|
|
17
|
-
onMouseMove: (e: React.MouseEvent) => void;
|
|
18
|
-
onClickCapture: (e: React.MouseEvent) => void;
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/hooks/use-effect-once.d.ts
|
|
22
|
-
declare const SKIP: unique symbol;
|
|
23
|
-
declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/hooks/use-outside-click.d.ts
|
|
26
|
-
interface UseOutsideClickProps {
|
|
27
|
-
ref: RefObject<HTMLElement | null>;
|
|
28
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
29
|
-
}
|
|
30
|
-
declare function useOutsideClick({
|
|
31
|
-
ref,
|
|
32
|
-
setOpen
|
|
33
|
-
}: UseOutsideClickProps): void;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/hooks/use-scroll-lock.d.ts
|
|
36
|
-
type ScrollLockType = 'mouse' | 'touch';
|
|
37
|
-
interface UseScrollLockProps {
|
|
38
|
-
open: boolean;
|
|
39
|
-
type?: readonly ScrollLockType[];
|
|
40
|
-
}
|
|
41
|
-
declare function useScrollLock({
|
|
42
|
-
open,
|
|
43
|
-
type
|
|
44
|
-
}: UseScrollLockProps): void;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/hooks/use-scroll-top.d.ts
|
|
47
|
-
interface UseScrollTopProps {
|
|
48
|
-
enabled?: boolean;
|
|
49
|
-
behavior?: ScrollBehavior;
|
|
50
|
-
}
|
|
51
|
-
declare function useScrollTop({
|
|
52
|
-
enabled,
|
|
53
|
-
behavior
|
|
54
|
-
}?: UseScrollTopProps): {
|
|
55
|
-
isVisible: boolean;
|
|
56
|
-
handleScrolToTop: () => void;
|
|
57
|
-
ref: react0.RefObject<HTMLDivElement>;
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/hooks/use-sticky.d.ts
|
|
61
|
-
declare function useSticky(): {
|
|
62
|
-
sentinelRef: react0.Dispatch<react0.SetStateAction<HTMLDivElement | null>>;
|
|
63
|
-
isStuck: boolean;
|
|
64
|
-
};
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/hooks/use-window-size.d.ts
|
|
67
|
-
declare function useWindowSize(defaultWidth?: number): {
|
|
68
|
-
windowSize: number;
|
|
69
|
-
};
|
|
70
|
-
//#endregion
|
|
71
|
-
export { BaseProps, Folder, SKIP, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { a as useSubsetImage, i as UseSubsetImageProps, n as Folder, r as SUBSETS, t as BaseProps } from "../../use-subset-image-Ck1Gk5Qk.mjs";
|
|
2
|
-
import * as react1 from "react";
|
|
3
|
-
import { DependencyList, Dispatch, EffectCallback, RefObject, SetStateAction } from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/hooks/use-delay-unmount.d.ts
|
|
6
|
-
declare function useDelayUnmount(isMounted: boolean, delayTime: number): boolean;
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/hooks/use-dialog-stack.d.ts
|
|
9
|
-
declare function useDialogStack(isOpen: boolean, onClose: () => void, lockScroll?: boolean): void;
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/hooks/use-drag-scroll.d.ts
|
|
12
|
-
declare function useDragScroll(speed?: number): {
|
|
13
|
-
ref: react1.RefObject<HTMLDivElement>;
|
|
14
|
-
onMouseDown: (e: React.MouseEvent) => void;
|
|
15
|
-
onMouseLeave: () => void;
|
|
16
|
-
onMouseUp: () => void;
|
|
17
|
-
onMouseMove: (e: React.MouseEvent) => void;
|
|
18
|
-
onClickCapture: (e: React.MouseEvent) => void;
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/hooks/use-effect-once.d.ts
|
|
22
|
-
declare const SKIP: unique symbol;
|
|
23
|
-
declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/hooks/use-outside-click.d.ts
|
|
26
|
-
interface UseOutsideClickProps {
|
|
27
|
-
ref: RefObject<HTMLElement | null>;
|
|
28
|
-
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
29
|
-
}
|
|
30
|
-
declare function useOutsideClick({
|
|
31
|
-
ref,
|
|
32
|
-
setOpen
|
|
33
|
-
}: UseOutsideClickProps): void;
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/hooks/use-scroll-lock.d.ts
|
|
36
|
-
type ScrollLockType = 'mouse' | 'touch';
|
|
37
|
-
interface UseScrollLockProps {
|
|
38
|
-
open: boolean;
|
|
39
|
-
type?: readonly ScrollLockType[];
|
|
40
|
-
}
|
|
41
|
-
declare function useScrollLock({
|
|
42
|
-
open,
|
|
43
|
-
type
|
|
44
|
-
}: UseScrollLockProps): void;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/hooks/use-scroll-top.d.ts
|
|
47
|
-
interface UseScrollTopProps {
|
|
48
|
-
enabled?: boolean;
|
|
49
|
-
behavior?: ScrollBehavior;
|
|
50
|
-
}
|
|
51
|
-
declare function useScrollTop({
|
|
52
|
-
enabled,
|
|
53
|
-
behavior
|
|
54
|
-
}?: UseScrollTopProps): {
|
|
55
|
-
isVisible: boolean;
|
|
56
|
-
handleScrolToTop: () => void;
|
|
57
|
-
ref: react1.RefObject<HTMLDivElement>;
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/hooks/use-sticky.d.ts
|
|
61
|
-
declare function useSticky(): {
|
|
62
|
-
sentinelRef: react1.Dispatch<react1.SetStateAction<HTMLDivElement | null>>;
|
|
63
|
-
isStuck: boolean;
|
|
64
|
-
};
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/hooks/use-window-size.d.ts
|
|
67
|
-
declare function useWindowSize(defaultWidth?: number): {
|
|
68
|
-
windowSize: number;
|
|
69
|
-
};
|
|
70
|
-
//#endregion
|
|
71
|
-
export { BaseProps, Folder, SKIP, SUBSETS, UseOutsideClickProps, UseScrollLockProps, UseScrollTopProps, UseSubsetImageProps, useDelayUnmount, useDialogStack, useDragScroll, useEffectOnce, useOutsideClick, useScrollLock, useScrollTop, useSticky, useSubsetImage, useWindowSize };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"../../src-Ce2i3Lkj.mjs";import"../../file-CjW1pMb_.mjs";import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"../../common-L3y7_eAy.mjs";import{t as l}from"../../use-dialog-stack-STwnhvBB.mjs";import"../../api-client-B-kwZogn.mjs";import{n as u,t as d}from"../../use-subset-image-LQWsE5P4.mjs";export{a as SKIP,d as SUBSETS,r as useDelayUnmount,l as useDialogStack,t as useDragScroll,s as useEffectOnce,e as useOutsideClick,n as useScrollLock,o as useScrollTop,i as useSticky,u as useSubsetImage,c as useWindowSize};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);let t=require(`notistack`);function n(){let{enqueueSnackbar:e}=(0,t.useSnackbar)();return{enqueueSnackbar:e,successSnackbar:t=>{e(t,{variant:`success`,autoHideDuration:2e3,anchorOrigin:{horizontal:`left`,vertical:`bottom`}})},errSnackbar:t=>{e(t,{variant:`error`,autoHideDuration:2e3,anchorOrigin:{horizontal:`left`,vertical:`bottom`}})}}}exports.useSnackbar=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./common-D4sUwkFd.cjs`);let n=require(`react/jsx-runtime`),r=require(`class-variance-authority`);const i=(0,r.cva)(t.n(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},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`}},defaultVariants:{size:`sm`,rounded:`sm`}});function a({size:e,rounded:t,width:r,height:a,className:o,...s}){let c=r?typeof r==`string`?r:`${r}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return(0,n.jsx)(`div`,{"data-komc":!0,"aria-hidden":`true`,className:i({size:e,rounded:t,className:o}),style:{width:c,height:l},...s})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./common-CCtD91nO.mjs";import{jsx as t}from"react/jsx-runtime";import{cva as n}from"class-variance-authority";const r=n(e(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},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`}},defaultVariants:{size:`sm`,rounded:`sm`}});function i({size:e,rounded:n,width:i,height:a,className:o,...s}){let c=i?typeof i==`string`?i:`${i}px`:void 0,l=a?typeof a==`string`?a:`${a}px`:void 0;return t(`div`,{"data-komc":!0,"aria-hidden":`true`,className:r({size:e,rounded:n,className:o}),style:{width:c,height:l},...s})}export{i as t};
|
package/dist/src-6KfzqI9Z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`js-cookie`);t=e.t(t);let n=require(`query-string`);n=e.t(n);var r=class{#e;#t;constructor(e){this.#e=e.apiEndpoint,this.#t=e.cdnEndpoint}async login(e,t){let n=`${this.#e}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}logout(e=`/`,n=`.komachine.com`){let r={path:e};window.location.hostname!==`localhost`&&(r.domain=n),t.default.remove(`access`,r),window.location.href=r.path}getToken(){return t.default.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}async accessLog(){if(this.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.#e}/access-log`,t=await fetch(e,{headers:{Authorization:this.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async me(){if(this.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.#e}/me`,t=await fetch(e,{headers:{Authorization:this.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async hasPermission(e,t,n=!1,r=!1){if(this.getToken()===void 0){if(!r)throw Error(`로그인 필요`);return}let i=`${this.#e}/has-permission?obj=${e}&act=${t}`;n&&(i=`${i}&exact=true`);let a=await fetch(i,{headers:{Authorization:this.getBearer()}});if(!a.ok){if(!r)throw Error(`인증에러`);return}return await a.json()}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/static/${e}`}refinePath(e){if(!e?.trim())return``;if(e.startsWith(`blob:`)){let t=e.lastIndexOf(`/`);if(t!==-1){let n=e.substring(0,t+1),r=e.substring(t+1),i=r.lastIndexOf(`.`);if(i!==-1)return n+r.substring(0,i)}}return this.cdnMedia(e)}getUploadPresignURL(e){let t=n.default.stringify(e);return fetch(`${this.#e}/upload/presign?${t}`,{credentials:`include`,headers:{Authorization:this.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
package/dist/src-Ce2i3Lkj.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"js-cookie";import t from"query-string";var n=class{#e;#t;constructor(e){this.#e=e.apiEndpoint,this.#t=e.cdnEndpoint}async login(e,t){let n=`${this.#e}/auth/login`;return await(await fetch(n,{method:`POST`,body:JSON.stringify({email:e,password:t}),headers:{"Content-Type":`application/json`},credentials:`include`})).json()}logout(t=`/`,n=`.komachine.com`){let r={path:t};window.location.hostname!==`localhost`&&(r.domain=n),e.remove(`access`,r),window.location.href=r.path}getToken(){return e.get(`access`)}getBearer(){return`Bearer ${this.getToken()}`}async accessLog(){if(this.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.#e}/access-log`,t=await fetch(e,{headers:{Authorization:this.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async me(){if(this.getToken()===void 0)throw Error(`로그인 필요`);let e=`${this.#e}/me`,t=await fetch(e,{headers:{Authorization:this.getBearer()}});if(!t.ok)throw Error(`인증에러`);return await t.json()}async hasPermission(e,t,n=!1,r=!1){if(this.getToken()===void 0){if(!r)throw Error(`로그인 필요`);return}let i=`${this.#e}/has-permission?obj=${e}&act=${t}`;n&&(i=`${i}&exact=true`);let a=await fetch(i,{headers:{Authorization:this.getBearer()}});if(!a.ok){if(!r)throw Error(`인증에러`);return}return await a.json()}cdnMedia(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/media/${e}`}cdnStatic(e,t){if(!e)return``;if(t){let[n,r]=e.split(`/`);return`${this.#t}/media/resized/${n}/${t}/${r}`}return`${this.#t}/static/${e}`}refinePath(e){if(!e?.trim())return``;if(e.startsWith(`blob:`)){let t=e.lastIndexOf(`/`);if(t!==-1){let n=e.substring(0,t+1),r=e.substring(t+1),i=r.lastIndexOf(`.`);if(i!==-1)return n+r.substring(0,i)}}return this.cdnMedia(e)}getUploadPresignURL(e){let n=t.stringify(e);return fetch(`${this.#e}/upload/presign?${n}`,{credentials:`include`,headers:{Authorization:this.getBearer()}})}createParaMap(e,t){let n=URL.createObjectURL(e).split(`/`).pop()||``,r=e.name.split(`.`).pop()?.toLowerCase(),i=`${t?`${t.replace(/^\//,``)}/`:``}${n}.${r}`,a={contentType:e.type||`application/octet-stream`,length:e.size,key:i};return e.type.includes(`image`)||(a.disposition=`attachment; filename*=UTF8''${encodeURI(e.name)}`),a}async upload(e,t){let n=this.createParaMap(e,t),r=await(await this.getUploadPresignURL(n)).json(),i={"Content-Length":n.length.toString(),"Content-Type":n.contentType.toString()};n.disposition&&(i[`Content-Disposition`]=n.disposition);try{await fetch(r,{method:`PUT`,headers:i,body:e,credentials:`include`})}catch(e){return new Promise((t,n)=>n(e))}return new Promise(e=>e(n.key))}};export{n as t};
|