@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../../../node-view-context-YTl_1gGD.cjs`),require(`../../../use-drag-resize-BO3zANv3.cjs`);const e=require(`../../../node-resize-dantnBzP.cjs`);exports.NodeResizer=e.t,exports.NodeResizerPlugin=e.n,exports.ResizeHandler=e.r,exports.nodeResizer=e.i;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "../../../index-DvEtYdm4.cjs";
|
|
2
|
+
import { i as UseResizeProps, n as ResizeDirection } from "../../../index-CLxl-tUO.cjs";
|
|
3
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
4
|
+
import * as react35 from "react";
|
|
5
|
+
import { ComponentProps } from "react";
|
|
6
|
+
|
|
7
|
+
//#region src/editor/nodes/node-resize/node-resize.d.ts
|
|
8
|
+
interface NodeResizerProps extends Omit<ComponentProps<typeof ResizeHandler>, 'direction'> {
|
|
9
|
+
directions: ResizeDirection[];
|
|
10
|
+
}
|
|
11
|
+
declare const NodeResizer: ({
|
|
12
|
+
directions,
|
|
13
|
+
...rest
|
|
14
|
+
}: NodeResizerProps) => react_jsx_runtime44.JSX.Element;
|
|
15
|
+
interface ResizeHandlerProps extends UseResizeProps {
|
|
16
|
+
direction: ResizeDirection;
|
|
17
|
+
}
|
|
18
|
+
declare const ResizeHandler: react35.MemoExoticComponent<({
|
|
19
|
+
direction,
|
|
20
|
+
...props
|
|
21
|
+
}: ResizeHandlerProps) => react_jsx_runtime44.JSX.Element>;
|
|
22
|
+
declare const nodeResizer: (options?: {
|
|
23
|
+
directions?: ResizeDirection[];
|
|
24
|
+
}) => NodeViewPlugin;
|
|
25
|
+
declare const NodeResizerPlugin: NodeViewPlugin;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { NodeResizer, NodeResizerPlugin, type NodeResizerProps, ResizeHandler, nodeResizer };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "../../../index-DHXj3w9p.mjs";
|
|
2
|
+
import { i as UseResizeProps, n as ResizeDirection } from "../../../index-wiRVGgrx.mjs";
|
|
3
|
+
import * as react33 from "react";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/editor/nodes/node-resize/node-resize.d.ts
|
|
8
|
+
interface NodeResizerProps extends Omit<ComponentProps<typeof ResizeHandler>, 'direction'> {
|
|
9
|
+
directions: ResizeDirection[];
|
|
10
|
+
}
|
|
11
|
+
declare const NodeResizer: ({
|
|
12
|
+
directions,
|
|
13
|
+
...rest
|
|
14
|
+
}: NodeResizerProps) => react_jsx_runtime38.JSX.Element;
|
|
15
|
+
interface ResizeHandlerProps extends UseResizeProps {
|
|
16
|
+
direction: ResizeDirection;
|
|
17
|
+
}
|
|
18
|
+
declare const ResizeHandler: react33.MemoExoticComponent<({
|
|
19
|
+
direction,
|
|
20
|
+
...props
|
|
21
|
+
}: ResizeHandlerProps) => react_jsx_runtime38.JSX.Element>;
|
|
22
|
+
declare const nodeResizer: (options?: {
|
|
23
|
+
directions?: ResizeDirection[];
|
|
24
|
+
}) => NodeViewPlugin;
|
|
25
|
+
declare const NodeResizerPlugin: NodeViewPlugin;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { NodeResizer, NodeResizerPlugin, type NodeResizerProps, ResizeHandler, nodeResizer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../node-view-context-D-1j5isf.mjs";import"../../../use-drag-resize--3PrrhJj.mjs";import{i as e,n as t,r as n,t as r}from"../../../node-resize-Cs4wR_HY.mjs";export{r as NodeResizer,t as NodeResizerPlugin,n as ResizeHandler,e as nodeResizer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../../../editor-DvLUotoh.cjs`),require(`../../../node-view-context-YTl_1gGD.cjs`),require(`../../../use-drag-resize-BO3zANv3.cjs`);const e=require(`../../../node-size-BQQGo7t7.cjs`);exports.NodeSize=e.t,exports.NodeSizePlugin=e.n,exports.nodeSize=e.r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../editor-CHuJTM4H.mjs";import"../../../node-view-context-D-1j5isf.mjs";import"../../../use-drag-resize--3PrrhJj.mjs";import{n as e,r as t,t as n}from"../../../node-size-Bg-g2Png.mjs";export{n as NodeSize,e as NodeSizePlugin,t as nodeSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../node-view-context-YTl_1gGD.cjs`);exports.NodeViewChrome=e.t,exports.PluginNodeView=e.n,exports.useNodeView=e.r,exports.useNodeViewPlugins=e.i,exports.withNodeViewChrome=e.a;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as PluginNodeViewProps, c as withNodeViewChrome, i as PluginNodeView, n as NodeViewPlugin, o as useNodeView, r as NodeViewValue, s as useNodeViewPlugins, t as NodeViewChrome } from "../../../index-DvEtYdm4.cjs";
|
|
2
|
+
export { NodeViewChrome, NodeViewPlugin, NodeViewValue, PluginNodeView, PluginNodeViewProps, useNodeView, useNodeViewPlugins, withNodeViewChrome };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as PluginNodeViewProps, c as withNodeViewChrome, i as PluginNodeView, n as NodeViewPlugin, o as useNodeView, r as NodeViewValue, s as useNodeViewPlugins, t as NodeViewChrome } from "../../../index-DHXj3w9p.mjs";
|
|
2
|
+
export { NodeViewChrome, NodeViewPlugin, NodeViewValue, PluginNodeView, PluginNodeViewProps, useNodeView, useNodeViewPlugins, withNodeViewChrome };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as e,i as t,n,r,t as i}from"../../../node-view-context-D-1j5isf.mjs";export{i as NodeViewChrome,n as PluginNodeView,r as useNodeView,t as useNodeViewPlugins,e as withNodeViewChrome};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../../../src-Dz1mULYA.cjs`),require(`../../../file-DeZ1OKdy.cjs`),require(`../../../api-client-BXH8Rm-J.cjs`),require(`../../../use-subset-image-BUurDItP.cjs`),require(`../../../skeleton-7P1IZD3G.cjs`),require(`../../../image-kIL2PjTS.cjs`),require(`../../../editor-DvLUotoh.cjs`),require(`../../../node-view-context-YTl_1gGD.cjs`),require(`../../../use-drag-resize-BO3zANv3.cjs`),require(`../../../node-resize-dantnBzP.cjs`),require(`../../../node-size-BQQGo7t7.cjs`);const e=require(`../../../subset-image-AaZA0RuB.cjs`);require(`../../../subset-image-P2NQM0-3.cjs`),exports.IMAGE_NODE_PLUGINS=e.t,exports.SUBSET_IMAGE=e.n,exports.SubsetImage=e.r,exports.SubsetImageNodeView=e.i,exports.imageNodePlugins=e.a,exports.subsetImageNodeView=e.o;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n as AlignType } from "../../../index-BxqkZ148.cjs";
|
|
2
|
+
import "../../../index-DvEtYdm4.cjs";
|
|
3
|
+
import "../../../index-BMZtFPh-.cjs";
|
|
4
|
+
import { a as SubsetImageNodeView, c as subsetImageNodeView, i as SubsetImageAttrs, n as SUBSET_IMAGE, o as SubsetImagePosition, r as SubsetImage, s as imageNodePlugins, t as IMAGE_NODE_PLUGINS } from "../../../index-BD2sHM7a.cjs";
|
|
5
|
+
export { AlignType, IMAGE_NODE_PLUGINS, SUBSET_IMAGE, SubsetImage, SubsetImageAttrs, SubsetImageNodeView, SubsetImagePosition, imageNodePlugins, subsetImageNodeView };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { n as AlignType } from "../../../index-D5uh7klO.mjs";
|
|
2
|
+
import "../../../index-DHXj3w9p.mjs";
|
|
3
|
+
import "../../../index-CV-nhdHd.mjs";
|
|
4
|
+
import { a as SubsetImageNodeView, c as subsetImageNodeView, i as SubsetImageAttrs, n as SUBSET_IMAGE, o as SubsetImagePosition, r as SubsetImage, s as imageNodePlugins, t as IMAGE_NODE_PLUGINS } from "../../../index-BTUIpavj.mjs";
|
|
5
|
+
export { AlignType, IMAGE_NODE_PLUGINS, SUBSET_IMAGE, SubsetImage, SubsetImageAttrs, SubsetImageNodeView, SubsetImagePosition, imageNodePlugins, subsetImageNodeView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../../src-BB55dPBE.mjs";import"../../../file-CapBKYce.mjs";import"../../../api-client-xK3Ua3Gr.mjs";import"../../../use-subset-image-B9ZSiVjx.mjs";import"../../../skeleton-D4Q9wT-o.mjs";import"../../../image-CAEWHuaM.mjs";import"../../../editor-CHuJTM4H.mjs";import"../../../node-view-context-D-1j5isf.mjs";import"../../../use-drag-resize--3PrrhJj.mjs";import"../../../node-resize-Cs4wR_HY.mjs";import"../../../node-size-Bg-g2Png.mjs";import{a as e,i as t,n,o as r,r as i,t as a}from"../../../subset-image-DnZ2TqZY.mjs";import"../../../subset-image-Co0fWefj.mjs";export{a as IMAGE_NODE_PLUGINS,n as SUBSET_IMAGE,i as SubsetImage,t as SubsetImageNodeView,e as imageNodePlugins,r as subsetImageNodeView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../../table-DmwOZtdl.cjs`);exports.Table=e.t,exports.TableCell=e.n,exports.TableHeader=e.r,exports.TableRow=e.i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"../../../table-CKVL_ezW.mjs";export{r as Table,t as TableCell,n as TableHeader,e as TableRow};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../../tabs-DiryrHZ7.cjs`);exports.TABS=e.t,exports.TAB_CONTENT=e.n,exports.TAB_TITLE=e.r,exports.TabContent=e.i,exports.TabContentNode=e.s,exports.TabTitle=e.a,exports.TabTitleNode=e.c,exports.Tabs=e.o,exports.TabsNode=e.l;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as TAB_CONTENT, c as TabTitle, i as TABS, l as Tabs, n as TabTitleNode, o as TAB_TITLE, r as TabsNode, s as TabContent, t as TabContentNode } from "../../../index-DEolXbf5.cjs";
|
|
2
|
+
export { TABS, TAB_CONTENT, TAB_TITLE, TabContent, TabContentNode, TabTitle, TabTitleNode, Tabs, TabsNode };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as TAB_CONTENT, c as TabTitle, i as TABS, l as Tabs, n as TabTitleNode, o as TAB_TITLE, r as TabsNode, s as TabContent, t as TabContentNode } from "../../../index-X2XMkoEC.mjs";
|
|
2
|
+
export { TABS, TAB_CONTENT, TAB_TITLE, TabContent, TabContentNode, TabTitle, TabTitleNode, Tabs, TabsNode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";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"../../../tabs-DQ1db_eg.mjs";export{c as TABS,i as TAB_CONTENT,o as TAB_TITLE,n as TabContent,s as TabContentNode,e as TabTitle,t as TabTitleNode,a as Tabs,r as TabsNode};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{NodeSelection as e}from"@tiptap/pm/state";import{ReactNodeView as t,generateHTML as n,generateJSON as r,posToDOMRect as i}from"@tiptap/react";const a=`data-image-node-dragging`,o=()=>typeof navigator<`u`&&/firefox/i.test(navigator.userAgent);let s=null,c=0;const l=e=>{let t=e.querySelector(`img`);return t instanceof HTMLImageElement?t:null},u=e=>{let t=l(e);return t&&t.complete&&t.naturalWidth>0?t:null},d=(e,t)=>e?.currentSrc||e?.src||t,f=e=>e.attrs.src??``,p=e=>{let t=e?.naturalWidth??1,n=e?.naturalHeight??1;return t>=n?{width:300,height:Math.round(n/t*300)}:{width:Math.round(t/n*300),height:300}},m=(e,t,n)=>{let r=t.getBoundingClientRect(),i=r.width>0?(e.clientX-r.left)/r.width:.5,a=r.height>0?(e.clientY-r.top)/r.height:.5;return{x:i*n.width,y:a*n.height}},h=e=>{let t=document.createElement(`div`);return t.className=`komc:pointer-events-none komc:fixed komc:-top-9999 komc:-left-9999`,t.appendChild(e),document.body.appendChild(t),()=>requestAnimationFrame(()=>t.remove())},g=(e,t,n)=>{let r=document.createElement(`img`);return r.alt=``,r.draggable=!1,r.className=`komc:block komc:object-contain`,r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,r.src=d(e,t),r},_=e=>{let t=document.createElement(`img`);t.src=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`;let n=h(t);try{e.dataTransfer?.setDragImage(t,0,0)}finally{n()}},v=(e,t,n,r,i)=>{let a=g(t,n,r),o=h(a);try{e.dataTransfer?.setDragImage(a,i.x,i.y)}finally{o()}},y=(e,t,n,r,i)=>{let a=document.createElement(`div`);a.setAttribute(`data-floating-drag-preview`,``),a.className=`komc:pointer-events-none komc:fixed komc:z-10000 komc:overflow-hidden komc:opacity-70`,a.style.width=`${r.width}px`,a.style.height=`${r.height}px`;let o=g(t,n,r);o.className=`komc:block komc:h-full komc:w-full komc:object-contain`,a.appendChild(o),document.body.appendChild(a);let c=!1,l=e=>{c||e.clientX===0&&e.clientY===0||(a.style.left=`${e.clientX-i.x}px`,a.style.top=`${e.clientY-i.y}px`)},u=e=>{e.preventDefault(),l(e)},d=()=>{c||(c=!0,document.removeEventListener(`dragover`,u),document.removeEventListener(`dragend`,d),document.removeEventListener(`drop`,d),a.remove(),s===d&&(s=null))};document.addEventListener(`dragover`,u),document.addEventListener(`dragend`,d),document.addEventListener(`drop`,d),s=d,l(e)},b=()=>{s?.(),s=null,document.querySelectorAll(`[data-floating-drag-preview]`).forEach(e=>e.remove())},x=()=>{c++>0||(document.addEventListener(`dragend`,b),document.addEventListener(`drop`,b))},S=()=>{c<=0||(--c,c===0&&(document.removeEventListener(`dragend`,b),document.removeEventListener(`drop`,b)))},C=(e,t)=>{b(),t.dom.setAttribute(a,``);let n=l(t.dom),r=p(u(t.dom)),i=m(e,t.dragHandle,r);if(o()){_(e),y(e,n,t.src,r,i);return}v(e,n,t.src,r,i)};var w=class extends t{mount(){super.mount(),x()}destroy(){S(),b(),this.dom?.removeAttribute(a),super.destroy()}onDragStart(t){let n=t.target,r=n.nodeType===3?n.parentElement?.closest(`[data-drag-handle]`):n.closest(`[data-drag-handle]`);if(!this.dom||this.contentDOM?.contains(n)||!r)return;C(t,{dom:this.dom,dragHandle:r,src:f(this.node)});let i=this.getPos();if(typeof i!=`number`)return;let a=e.create(this.editor.state.doc,i);this.editor.view.dispatch(this.editor.state.tr.setSelection(a))}};function T(e,t){return n=>n.editor.contentComponent?new w(e,n,t):{}}const E=(e,t)=>!e.content||!Array.isArray(e.content)?e:{...e,content:e.content.filter(e=>!t.includes(e.type)).map(e=>E(e,t))},D=(e,t,i)=>{if(!i||t.length===0)return i;try{return n(E(r(i,e),t),e)}catch(e){return console.error(`Failed to remove Tiptap nodes:`,e),i}},O=[`description`,`desc`];function k(e,t,n=[],r={}){let{default:i,fields:a=O}=r,o=i!==void 0;if(e===null)return null;if(e!==void 0){if(typeof e==`string`){let r=D(t,n,e);return o?r||i:r}return Array.isArray(e)?e.map(e=>{let r={};for(let s of a){if(!(s in e))continue;let a=e[s];if(a!=null&&typeof a!=`string`)continue;let c=a==null?a:D(t,n,a);r[s]=o?c||i:c}return Object.keys(r).length>0?{...e,...r}:e}):e}}const A=({min:e,max:t,width:n,height:r,type:i,currentRatio:a})=>{let o=n,s=r,c=null,l=typeof a==`number`?a:n/r;return 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}};function j(e){let{view:t,state:n}=e,{from:r,to:a}=n.selection,o=i(t,r,a),s=t.dom.getBoundingClientRect(),c=n.doc.content.size;return r<=1&&a>=c-1||o.height>=s.height*.75}function M(e){let{view:t,state:n}=e,{from:r,to:i}=n.selection,a=t.coordsAtPos(r),o=t.coordsAtPos(i),s=t.dom.getBoundingClientRect(),c=Math.max(s.top,0),l=Math.min(s.bottom,window.innerHeight),u=Math.min(a.top,o.top),d=Math.max(a.bottom,o.bottom),f=Math.max(u,c),p=Math.min(d,l),m=s.left,h=s.right,g=(f+p)/2;return new DOMRect(m,g,Math.max(h-m,0),0)}export{k as a,M as c,j as i,A as n,D as o,T as r,b as s,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`);let t=require(`@tiptap/pm/state`),n=require(`@tiptap/react`);const r=`data-image-node-dragging`,i=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,a=300,o=()=>typeof navigator<`u`&&/firefox/i.test(navigator.userAgent);let s=null,c=0;const l=e=>{let t=e.querySelector(`img`);return t instanceof HTMLImageElement?t:null},u=e=>{let t=l(e);return t&&t.complete&&t.naturalWidth>0?t:null},d=(e,t)=>e?.currentSrc||e?.src||t,f=e=>e.attrs.src??``,p=e=>{let t=e?.naturalWidth??1,n=e?.naturalHeight??1;return t>=n?{width:300,height:Math.round(n/t*300)}:{width:Math.round(t/n*300),height:300}},m=(e,t,n)=>{let r=t.getBoundingClientRect(),i=r.width>0?(e.clientX-r.left)/r.width:.5,a=r.height>0?(e.clientY-r.top)/r.height:.5;return{x:i*n.width,y:a*n.height}},h=e=>{let t=document.createElement(`div`);return t.className=`komc:pointer-events-none komc:fixed komc:-top-9999 komc:-left-9999`,t.appendChild(e),document.body.appendChild(t),()=>requestAnimationFrame(()=>t.remove())},g=(e,t,n)=>{let r=document.createElement(`img`);return r.alt=``,r.draggable=!1,r.className=`komc:block komc:object-contain`,r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,r.src=d(e,t),r},_=e=>{let t=document.createElement(`img`);t.src=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`;let n=h(t);try{e.dataTransfer?.setDragImage(t,0,0)}finally{n()}},v=(e,t,n,r,i)=>{let a=g(t,n,r),o=h(a);try{e.dataTransfer?.setDragImage(a,i.x,i.y)}finally{o()}},y=(e,t,n,r,i)=>{let a=document.createElement(`div`);a.setAttribute(`data-floating-drag-preview`,``),a.className=`komc:pointer-events-none komc:fixed komc:z-10000 komc:overflow-hidden komc:opacity-70`,a.style.width=`${r.width}px`,a.style.height=`${r.height}px`;let o=g(t,n,r);o.className=`komc:block komc:h-full komc:w-full komc:object-contain`,a.appendChild(o),document.body.appendChild(a);let c=!1,l=e=>{c||e.clientX===0&&e.clientY===0||(a.style.left=`${e.clientX-i.x}px`,a.style.top=`${e.clientY-i.y}px`)},u=e=>{e.preventDefault(),l(e)},d=()=>{c||(c=!0,document.removeEventListener(`dragover`,u),document.removeEventListener(`dragend`,d),document.removeEventListener(`drop`,d),a.remove(),s===d&&(s=null))};document.addEventListener(`dragover`,u),document.addEventListener(`dragend`,d),document.addEventListener(`drop`,d),s=d,l(e)},b=()=>{s?.(),s=null,document.querySelectorAll(`[data-floating-drag-preview]`).forEach(e=>e.remove())},x=()=>{c++>0||(document.addEventListener(`dragend`,b),document.addEventListener(`drop`,b))},S=()=>{c<=0||(--c,c===0&&(document.removeEventListener(`dragend`,b),document.removeEventListener(`drop`,b)))},C=(e,t)=>{b(),t.dom.setAttribute(r,``);let n=l(t.dom),i=p(u(t.dom)),a=m(e,t.dragHandle,i);if(o()){_(e),y(e,n,t.src,i,a);return}v(e,n,t.src,i,a)};var w=class extends n.ReactNodeView{mount(){super.mount(),x()}destroy(){S(),b(),this.dom?.removeAttribute(r),super.destroy()}onDragStart(e){let n=e.target,r=n.nodeType===3?n.parentElement?.closest(`[data-drag-handle]`):n.closest(`[data-drag-handle]`);if(!this.dom||this.contentDOM?.contains(n)||!r)return;C(e,{dom:this.dom,dragHandle:r,src:f(this.node)});let i=this.getPos();if(typeof i!=`number`)return;let a=t.NodeSelection.create(this.editor.state.doc,i);this.editor.view.dispatch(this.editor.state.tr.setSelection(a))}};function T(e,t){return n=>n.editor.contentComponent?new w(e,n,t):{}}const E=(e,t)=>!e.content||!Array.isArray(e.content)?e:{...e,content:e.content.filter(e=>!t.includes(e.type)).map(e=>E(e,t))},D=(e,t,r)=>{if(!r||t.length===0)return r;try{return(0,n.generateHTML)(E((0,n.generateJSON)(r,e),t),e)}catch(e){return console.error(`Failed to remove Tiptap nodes:`,e),r}},O=[`description`,`desc`];function k(e,t,n=[],r={}){let{default:i,fields:a=O}=r,o=i!==void 0;if(e===null)return null;if(e!==void 0){if(typeof e==`string`){let r=D(t,n,e);return o?r||i:r}return Array.isArray(e)?e.map(e=>{let r={};for(let s of a){if(!(s in e))continue;let a=e[s];if(a!=null&&typeof a!=`string`)continue;let c=a==null?a:D(t,n,a);r[s]=o?c||i:c}return Object.keys(r).length>0?{...e,...r}:e}):e}}const A=({min:e,max:t,width:n,height:r,type:i,currentRatio:a})=>{let o=n,s=r,c=null,l=typeof a==`number`?a:n/r;return 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}},j=.75;function M(e){let{view:t,state:r}=e,{from:i,to:a}=r.selection,o=(0,n.posToDOMRect)(t,i,a),s=t.dom.getBoundingClientRect(),c=r.doc.content.size;return i<=1&&a>=c-1||o.height>=s.height*.75}function N(e){let{view:t,state:n}=e,{from:r,to:i}=n.selection,a=t.coordsAtPos(r),o=t.coordsAtPos(i),s=t.dom.getBoundingClientRect(),c=Math.max(s.top,0),l=Math.min(s.bottom,window.innerHeight),u=Math.min(a.top,o.top),d=Math.max(a.bottom,o.bottom),f=Math.max(u,c),p=Math.min(d,l),m=s.left,h=s.right,g=(f+p)/2;return new DOMRect(m,g,Math.max(h-m,0),0)}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1 +1 @@
|
|
|
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()??``)};export{o as a,i,n,r as o,t as r,e as t};
|
|
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?e.startsWith(`http`)||e.startsWith(`blob:`)||e.startsWith(`data:`):!1,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()??``)};export{o as a,i,n,r as o,t as r,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
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?e.startsWith(`http`)||e.startsWith(`blob:`)||e.startsWith(`data:`):!1,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}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../use-delay-unmount-CNNJXNX5.cjs`);exports.useDelayUnmount=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../use-delay-unmount-_wzkutyv.mjs";export{e as useDelayUnmount};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../use-dialog-stack-CH2nhH1Q.cjs`);exports.useDialogStack=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../use-dialog-stack-nI1GTvfl.mjs";export{e as useDialogStack};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`../../use-drag-resize-BO3zANv3.cjs`);exports.RESIZE_CONSTANTS=e.t,exports.default=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{n as e,t}from"../../use-drag-resize--3PrrhJj.mjs";export{t as RESIZE_CONSTANTS,e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);function n(e=1){let n=(0,t.useRef)(null),[r,i]=(0,t.useState)(!1),[a,o]=(0,t.useState)(0),[s,c]=(0,t.useState)(0),l=(0,t.useRef)(!1);return{ref:n,onMouseDown:e=>{n.current&&(i(!0),l.current=!1,o(e.pageX-n.current.offsetLeft),c(n.current.scrollLeft))},onMouseLeave:()=>i(!1),onMouseUp:()=>i(!1),onMouseMove:t=>{if(!r||!n.current)return;t.preventDefault();let i=(t.pageX-n.current.offsetLeft-a)*e;Math.abs(i)>10&&(l.current=!0),n.current.scrollLeft=s-i},onClickCapture:e=>{l.current&&(e.stopPropagation(),e.preventDefault())}}}exports.useDragScroll=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react0 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-drag-scroll/index.d.ts
|
|
4
|
+
declare function useDragScroll(speed?: number): {
|
|
5
|
+
ref: react0.RefObject<HTMLDivElement>;
|
|
6
|
+
onMouseDown: (e: React.MouseEvent) => void;
|
|
7
|
+
onMouseLeave: () => void;
|
|
8
|
+
onMouseUp: () => void;
|
|
9
|
+
onMouseMove: (e: React.MouseEvent) => void;
|
|
10
|
+
onClickCapture: (e: React.MouseEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useDragScroll };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react0 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-drag-scroll/index.d.ts
|
|
4
|
+
declare function useDragScroll(speed?: number): {
|
|
5
|
+
ref: react0.RefObject<HTMLDivElement>;
|
|
6
|
+
onMouseDown: (e: React.MouseEvent) => void;
|
|
7
|
+
onMouseLeave: () => void;
|
|
8
|
+
onMouseUp: () => void;
|
|
9
|
+
onMouseMove: (e: React.MouseEvent) => void;
|
|
10
|
+
onClickCapture: (e: React.MouseEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { useDragScroll };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useRef as e,useState as t}from"react";function n(n=1){let r=e(null),[i,a]=t(!1),[o,s]=t(0),[c,l]=t(0),u=e(!1);return{ref:r,onMouseDown:e=>{r.current&&(a(!0),u.current=!1,s(e.pageX-r.current.offsetLeft),l(r.current.scrollLeft))},onMouseLeave:()=>a(!1),onMouseUp:()=>a(!1),onMouseMove:e=>{if(!i||!r.current)return;e.preventDefault();let t=(e.pageX-r.current.offsetLeft-o)*n;Math.abs(t)>10&&(u.current=!0),r.current.scrollLeft=c-t},onClickCapture:e=>{u.current&&(e.stopPropagation(),e.preventDefault())}}}export{n as useDragScroll};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);const n=Symbol(`useEffectOnce.skip`);function r(e,r){let i=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(i.current)return;let t=e();if(t!==n&&(i.current=!0,typeof t==`function`))return t},r)}exports.SKIP=n,exports.useEffectOnce=r;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DependencyList, EffectCallback } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-effect-once/index.d.ts
|
|
4
|
+
declare const SKIP: unique symbol;
|
|
5
|
+
declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SKIP, useEffectOnce };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DependencyList, EffectCallback } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-effect-once/index.d.ts
|
|
4
|
+
declare const SKIP: unique symbol;
|
|
5
|
+
declare function useEffectOnce(effect: () => ReturnType<EffectCallback> | typeof SKIP, deps?: DependencyList): void;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SKIP, useEffectOnce };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useEffect as e,useRef as t}from"react";const n=Symbol(`useEffectOnce.skip`);function r(r,i){let a=t(!1);e(()=>{if(a.current)return;let e=r();if(e!==n&&(a.current=!0,typeof e==`function`))return e},i)}export{n as SKIP,r as useEffectOnce};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../use-outside-click-BS2UOXoV.cjs`);exports.useOutsideClick=e.t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dispatch, RefObject, SetStateAction } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-outside-click/index.d.ts
|
|
4
|
+
interface UseOutsideClickProps {
|
|
5
|
+
ref: RefObject<HTMLElement | null>;
|
|
6
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
}
|
|
8
|
+
declare function useOutsideClick({
|
|
9
|
+
ref,
|
|
10
|
+
setOpen
|
|
11
|
+
}: UseOutsideClickProps): void;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { UseOutsideClickProps, useOutsideClick };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dispatch, RefObject, SetStateAction } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-outside-click/index.d.ts
|
|
4
|
+
interface UseOutsideClickProps {
|
|
5
|
+
ref: RefObject<HTMLElement | null>;
|
|
6
|
+
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
}
|
|
8
|
+
declare function useOutsideClick({
|
|
9
|
+
ref,
|
|
10
|
+
setOpen
|
|
11
|
+
}: UseOutsideClickProps): void;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { UseOutsideClickProps, useOutsideClick };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{t as e}from"../../use-outside-click-tsaJo3cz.mjs";export{e as useOutsideClick};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);const n=[`mouse`,`touch`];let r=0,i;function a(){r===0&&(i=document.body.style.overflow,document.body.style.overflow=`hidden`),r+=1}function o(){r=Math.max(0,r-1),r===0&&(document.body.style.overflow=i||`unset`,i=void 0)}function s({open:e,type:r=n}){let i=(0,t.useCallback)(e=>{e.preventDefault()},[]),s=(0,t.useCallback)(e=>{e.preventDefault()},[]);(0,t.useEffect)(()=>{let t=e&&r.includes(`mouse`),n=e&&r.includes(`touch`);return t&&(a(),document.addEventListener(`wheel`,s,{passive:!1})),n&&document.addEventListener(`touchmove`,i,{passive:!1}),()=>{t&&(o(),document.removeEventListener(`wheel`,s)),n&&document.removeEventListener(`touchmove`,i)}},[e,r,i,s])}exports.useScrollLock=s;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/hooks/use-scroll-lock/index.d.ts
|
|
2
|
+
type ScrollLockType = 'mouse' | 'touch';
|
|
3
|
+
interface UseScrollLockProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
type?: readonly ScrollLockType[];
|
|
6
|
+
}
|
|
7
|
+
declare function useScrollLock({
|
|
8
|
+
open,
|
|
9
|
+
type
|
|
10
|
+
}: UseScrollLockProps): void;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { UseScrollLockProps, useScrollLock };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/hooks/use-scroll-lock/index.d.ts
|
|
2
|
+
type ScrollLockType = 'mouse' | 'touch';
|
|
3
|
+
interface UseScrollLockProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
type?: readonly ScrollLockType[];
|
|
6
|
+
}
|
|
7
|
+
declare function useScrollLock({
|
|
8
|
+
open,
|
|
9
|
+
type
|
|
10
|
+
}: UseScrollLockProps): void;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { UseScrollLockProps, useScrollLock };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useCallback as e,useEffect as t}from"react";const n=[`mouse`,`touch`];let r=0,i;function a(){r===0&&(i=document.body.style.overflow,document.body.style.overflow=`hidden`),r+=1}function o(){r=Math.max(0,r-1),r===0&&(document.body.style.overflow=i||`unset`,i=void 0)}function s({open:r,type:i=n}){let s=e(e=>{e.preventDefault()},[]),c=e(e=>{e.preventDefault()},[]);t(()=>{let e=r&&i.includes(`mouse`),t=r&&i.includes(`touch`);return e&&(a(),document.addEventListener(`wheel`,c,{passive:!1})),t&&document.addEventListener(`touchmove`,s,{passive:!1}),()=>{e&&(o(),document.removeEventListener(`wheel`,c)),t&&document.removeEventListener(`touchmove`,s)}},[r,i,s,c])}export{s as useScrollLock};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);function n({enabled:e=!0,behavior:n=`smooth`}={}){let[r,i]=(0,t.useState)(!1),a=(0,t.useRef)(null),o=(0,t.useCallback)(()=>{window.scrollTo({top:0,behavior:n})},[n]);return(0,t.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}}exports.useScrollTop=n;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react0 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-scroll-top/index.d.ts
|
|
4
|
+
interface UseScrollTopProps {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
behavior?: ScrollBehavior;
|
|
7
|
+
}
|
|
8
|
+
declare function useScrollTop({
|
|
9
|
+
enabled,
|
|
10
|
+
behavior
|
|
11
|
+
}?: UseScrollTopProps): {
|
|
12
|
+
isVisible: boolean;
|
|
13
|
+
handleScrolToTop: () => void;
|
|
14
|
+
ref: react0.RefObject<HTMLDivElement>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { UseScrollTopProps, useScrollTop };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react2 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-scroll-top/index.d.ts
|
|
4
|
+
interface UseScrollTopProps {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
behavior?: ScrollBehavior;
|
|
7
|
+
}
|
|
8
|
+
declare function useScrollTop({
|
|
9
|
+
enabled,
|
|
10
|
+
behavior
|
|
11
|
+
}?: UseScrollTopProps): {
|
|
12
|
+
isVisible: boolean;
|
|
13
|
+
handleScrolToTop: () => void;
|
|
14
|
+
ref: react2.RefObject<HTMLDivElement>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { UseScrollTopProps, useScrollTop };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useCallback as e,useEffect as t,useRef as n,useState as r}from"react";function i({enabled:i=!0,behavior:a=`smooth`}={}){let[o,s]=r(!1),c=n(null),l=e(()=>{window.scrollTo({top:0,behavior:a})},[a]);return t(()=>{let e=c.current;if(!e||!i){s(!1);return}let t=new IntersectionObserver(e=>{let t=e[0];t&&s(!t.isIntersecting)},{root:null,rootMargin:`0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[i]),{isVisible:o,handleScrolToTop:l,ref:c}}export{i as useScrollTop};
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`);function n(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 r(){let[e,r]=(0,t.useState)(null),[i,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(!e)return;let t=n(e),r=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 r.observe(e),()=>r.disconnect()},[e]),{sentinelRef:r,isStuck:i}}exports.useSticky=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useEffect as e,useState as t}from"react";function n(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 r(){let[r,i]=t(null),[a,o]=t(!1);return e(()=>{if(!r)return;let e=n(r),t=new IntersectionObserver(([e])=>{let t=e.rootBounds?.top??0,n=e.boundingClientRect.top<t;o(!e.isIntersecting&&n)},{root:e,threshold:0,rootMargin:`0px`});return t.observe(r),()=>t.disconnect()},[r]),{sentinelRef:i,isStuck:a}}export{r as useSticky};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../../src-Dz1mULYA.cjs`),require(`../../file-DeZ1OKdy.cjs`),require(`../../api-client-BXH8Rm-J.cjs`);const e=require(`../../use-subset-image-BUurDItP.cjs`);exports.SUBSETS=e.t,exports.useSubsetImage=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import"../../src-BB55dPBE.mjs";import"../../file-CapBKYce.mjs";import"../../api-client-xK3Ua3Gr.mjs";import{n as e,t}from"../../use-subset-image-B9ZSiVjx.mjs";export{t as SUBSETS,e as useSubsetImage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const e=require(`../../chunk-Bmb41Sf3.cjs`);let t=require(`react`),n=require(`lodash-es`);function r(e=1280){let[r,i]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let e=(0,n.throttle)(()=>{let e=window.innerWidth;i(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:r}}exports.useWindowSize=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useEffect as e,useState as t}from"react";import{throttle as n}from"lodash-es";function r(r=1280){let[i,a]=t(r);return e(()=>{let e=n(()=>{let e=window.innerWidth;a(e)},200);return window.addEventListener(`resize`,e),e(),()=>window.removeEventListener(`resize`,e)},[]),{windowSize:i}}export{r as useWindowSize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./use-subset-image-B9ZSiVjx.mjs";import{t}from"./skeleton-D4Q9wT-o.mjs";import{cva as n}from"class-variance-authority";import{forwardRef as r}from"react";import i from"clsx";import{Fragment as a,jsx as o,jsxs as s}from"react/jsx-runtime";const c=n(``,{variants:{fill:{true:`komc:w-full komc:h-full komc:absolute komc:inset-0`,false:``}},defaultVariants:{fill:!1}}),l=r(({...t},n)=>{let{ref:r,imageProps:i}=e({ref:n,...t});return o(`img`,{ref:r,...i})}),u=r(({skeleton:n=!0,layout:r=`stretch`,fallbackSrc:l,className:u,emptyNode:f,emptyNodeClassName:p,skeletonClassName:m,...h},g)=>{let{ref:_,isLoad:v,isError:y,imageProps:b}=e({ref:g,fallbackSrc:l,forceLoad:!n,...h}),x=!h.fill&&r===`intrinsic`?{width:`${h.width}px`,height:`${h.height}px`}:void 0,S=i(`komc:flex komc:justify-center komc:items-center komc:relative komc:min-h-0`,!h.fill&&r===`stretch`&&`komc:w-full komc:h-full`);return!l&&y&&f?h.fill?o(d,{className:p,children:f}):o(`div`,{"data-komc":!0,style:x,className:S,children:o(d,{className:p,children:f})}):h.fill?s(a,{children:[o(`img`,{ref:_,...b,className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:invisible`:`komc:visible`,u)}),o(`div`,{"data-komc":!0,className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:block`:`komc:hidden`),children:o(t,{size:`full`,className:m})})]}):s(`div`,{"data-komc":!0,style:x,className:S,children:[o(`img`,{ref:_,...b,className:i(c({fill:h.fill,className:u}),n&&!v?`komc:invisible`:`komc:visible`)}),o(`div`,{className:i(`komc:w-full komc:h-full komc:absolute komc:inset-0`,n&&!v?`komc:block`:`komc:hidden`),children:o(t,{size:`full`,className:m})})]})}),d=({children:e,className:t})=>o(`div`,{"data-komc":!0,role:`alert`,className:i(`komc:flex komc:justify-center komc:items-center komc:w-full komc:h-full komc:bg-gray-100 komc:absolute komc:inset-0 komc:p-1`,t),children:e});var f=u;export{d as n,f as r,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./use-subset-image-BUurDItP.cjs`),n=require(`./skeleton-7P1IZD3G.cjs`);let r=require(`class-variance-authority`),i=require(`react`),a=require(`clsx`);a=e.t(a);let o=require(`react/jsx-runtime`);const s=(0,r.cva)(``,{variants:{fill:{true:`komc:w-full komc:h-full komc:absolute komc:inset-0`,false:``}},defaultVariants:{fill:!1}}),c=(0,i.forwardRef)(({...e},n)=>{let{ref:r,imageProps:i}=t.n({ref:n,...e});return(0,o.jsx)(`img`,{ref:r,...i})}),l=(0,i.forwardRef)(({skeleton:e=!0,layout:r=`stretch`,fallbackSrc:i,className:c,emptyNode:l,emptyNodeClassName:d,skeletonClassName:f,...p},m)=>{let{ref:h,isLoad:g,isError:_,imageProps:v}=t.n({ref:m,fallbackSrc:i,forceLoad:!e,...p}),y=!p.fill&&r===`intrinsic`?{width:`${p.width}px`,height:`${p.height}px`}:void 0,b=(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:relative komc:min-h-0`,!p.fill&&r===`stretch`&&`komc:w-full komc:h-full`);return!i&&_&&l?p.fill?(0,o.jsx)(u,{className:d,children:l}):(0,o.jsx)(`div`,{"data-komc":!0,style:y,className:b,children:(0,o.jsx)(u,{className:d,children:l})}):p.fill?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`img`,{ref:h,...v,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:invisible`:`komc:visible`,c)}),(0,o.jsx)(`div`,{"data-komc":!0,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:block`:`komc:hidden`),children:(0,o.jsx)(n.t,{size:`full`,className:f})})]}):(0,o.jsxs)(`div`,{"data-komc":!0,style:y,className:b,children:[(0,o.jsx)(`img`,{ref:h,...v,className:(0,a.default)(s({fill:p.fill,className:c}),e&&!g?`komc:invisible`:`komc:visible`)}),(0,o.jsx)(`div`,{className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!g?`komc:block`:`komc:hidden`),children:(0,o.jsx)(n.t,{size:`full`,className:f})})]})}),u=({children:e,className:t})=>(0,o.jsx)(`div`,{"data-komc":!0,role:`alert`,className:(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:w-full komc:h-full komc:bg-gray-100 komc:absolute komc:inset-0 komc:p-1`,t),children:e});var d=l;Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/ui/switch/switch.d.ts
|
|
4
|
+
type LabelPlacement = 'end' | 'start' | 'top' | 'bottom';
|
|
5
|
+
interface SwitchProps {
|
|
6
|
+
label?: string;
|
|
7
|
+
placement?: LabelPlacement;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
'aria-label'?: string;
|
|
11
|
+
onChange?(checked: boolean): void;
|
|
12
|
+
}
|
|
13
|
+
/** @deprecated Use `SwitchProps`. */
|
|
14
|
+
type SwtichProps = SwitchProps;
|
|
15
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SwtichProps as i, Switch as n, SwitchProps as r, LabelPlacement as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as AlignType } from "./index-BxqkZ148.cjs";
|
|
2
|
+
import { n as NodeViewPlugin } from "./index-DvEtYdm4.cjs";
|
|
3
|
+
import { r as NodeSizePluginOptions } from "./index-BMZtFPh-.cjs";
|
|
4
|
+
import * as _tiptap_core4 from "@tiptap/core";
|
|
5
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
6
|
+
import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
|
|
7
|
+
|
|
8
|
+
//#region src/editor/nodes/subset-image/subset-image.d.ts
|
|
9
|
+
declare const SUBSET_IMAGE: {
|
|
10
|
+
name: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
};
|
|
13
|
+
type SubsetImagePosition = AlignType;
|
|
14
|
+
interface SubsetImageAttrs {
|
|
15
|
+
src: string;
|
|
16
|
+
alt: string;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
imagePosition: AlignType;
|
|
20
|
+
imageRadius: number;
|
|
21
|
+
originalWidth: number;
|
|
22
|
+
}
|
|
23
|
+
declare const imageNodePlugins: (size?: NodeSizePluginOptions) => NodeViewPlugin[];
|
|
24
|
+
declare const IMAGE_NODE_PLUGINS: NodeViewPlugin[];
|
|
25
|
+
declare const SubsetImageNodeView: ({
|
|
26
|
+
node
|
|
27
|
+
}: NodeViewProps$1) => react_jsx_runtime20.JSX.Element;
|
|
28
|
+
declare const subsetImageNodeView: (plugins?: NodeViewPlugin[], size?: NodeSizePluginOptions) => _tiptap_core4.NodeViewRenderer;
|
|
29
|
+
declare const SubsetImage: Node$1<{
|
|
30
|
+
plugins: NodeViewPlugin[];
|
|
31
|
+
size?: NodeSizePluginOptions;
|
|
32
|
+
}, any>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { SubsetImageNodeView as a, subsetImageNodeView as c, SubsetImageAttrs as i, SUBSET_IMAGE as n, SubsetImagePosition as o, SubsetImage as r, imageNodePlugins as s, IMAGE_NODE_PLUGINS as t };
|