@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,56 @@
|
|
|
1
|
+
import { n as LabelProps } from "./index-DrUJZDtK.cjs";
|
|
2
|
+
import * as react29 from "react";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
6
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
7
|
+
|
|
8
|
+
//#region src/ui/admin/text-field/text-field.d.ts
|
|
9
|
+
type TextFieldFileVariantColor = 'green' | 'blue' | 'red';
|
|
10
|
+
declare const classes: (props?: ({
|
|
11
|
+
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
12
|
+
invalid?: boolean | null | undefined;
|
|
13
|
+
shadow?: boolean | null | undefined;
|
|
14
|
+
disabled?: boolean | null | undefined;
|
|
15
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
16
|
+
interface BaseProps extends Omit<ComponentProps<'input'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
|
|
17
|
+
label?: Omit<LabelProps, 'children'>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
dateIcon?: IconProp;
|
|
20
|
+
handleDateClear?: never;
|
|
21
|
+
}
|
|
22
|
+
interface DefaultProps extends BaseProps {
|
|
23
|
+
variant?: 'default';
|
|
24
|
+
}
|
|
25
|
+
interface SearchProps extends BaseProps {
|
|
26
|
+
variant: 'search';
|
|
27
|
+
searchIcon: IconProp;
|
|
28
|
+
}
|
|
29
|
+
interface FileProps extends BaseProps {
|
|
30
|
+
variant: 'file';
|
|
31
|
+
path: string;
|
|
32
|
+
color?: TextFieldFileVariantColor;
|
|
33
|
+
fileIcon: IconProp;
|
|
34
|
+
}
|
|
35
|
+
interface PrefixTextProps extends BaseProps {
|
|
36
|
+
variant: 'prefix-text';
|
|
37
|
+
prefix: string;
|
|
38
|
+
id?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SuffixTextProps extends BaseProps {
|
|
41
|
+
variant: 'suffix-text';
|
|
42
|
+
suffix: string;
|
|
43
|
+
id?: string;
|
|
44
|
+
}
|
|
45
|
+
interface SuffixDateProps extends Omit<BaseProps, 'handleDateClear'> {
|
|
46
|
+
variant: 'select-date';
|
|
47
|
+
handleDateClear: () => void;
|
|
48
|
+
clearIcon: IconProp;
|
|
49
|
+
inputlabel?: string;
|
|
50
|
+
min?: string | number;
|
|
51
|
+
max?: string | number;
|
|
52
|
+
}
|
|
53
|
+
type TextFieldProps = DefaultProps | FileProps | SearchProps | PrefixTextProps | SuffixTextProps | SuffixDateProps;
|
|
54
|
+
declare const TextField: react29.ForwardRefExoticComponent<TextFieldProps & react29.RefAttributes<HTMLInputElement>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { TextFieldFileVariantColor as n, TextFieldProps as r, TextField as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/admin/label/label.d.ts
|
|
8
|
+
declare const classes: (props?: ({
|
|
9
|
+
required?: boolean | null | undefined;
|
|
10
|
+
gap?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
12
|
+
declare const helpClasses: (props?: ({
|
|
13
|
+
helpTextColor?: "default" | "primary" | "warning" | "error" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
15
|
+
interface LabelProps extends VariantProps<typeof classes>, VariantProps<typeof helpClasses> {
|
|
16
|
+
text?: string;
|
|
17
|
+
actions?: ReactNode | null;
|
|
18
|
+
defaultCollapsed?: boolean;
|
|
19
|
+
helpText?: string;
|
|
20
|
+
helpTextPrefixIcon?: IconProp | null;
|
|
21
|
+
collapse?: (collapsed: boolean) => IconProp;
|
|
22
|
+
className?: string;
|
|
23
|
+
htmlFor?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare const Label: ({
|
|
28
|
+
htmlFor,
|
|
29
|
+
id,
|
|
30
|
+
text,
|
|
31
|
+
actions,
|
|
32
|
+
collapse,
|
|
33
|
+
defaultCollapsed,
|
|
34
|
+
helpText,
|
|
35
|
+
helpTextPrefixIcon,
|
|
36
|
+
helpTextColor,
|
|
37
|
+
children,
|
|
38
|
+
required,
|
|
39
|
+
className,
|
|
40
|
+
gap
|
|
41
|
+
}: LabelProps) => react_jsx_runtime8.JSX.Element;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { LabelProps as n, Label as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-DvEtYdm4.cjs";
|
|
2
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/nodes/node-size/node-size.d.ts
|
|
5
|
+
interface NodeSizeProps {
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
edit?: boolean;
|
|
9
|
+
setEdit?: (edit: boolean) => void;
|
|
10
|
+
onChange?: (size: {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
onExitEdit?: () => void;
|
|
15
|
+
minWidth?: number;
|
|
16
|
+
minHeight?: number;
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
maxHeight?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const NodeSize: ({
|
|
22
|
+
width,
|
|
23
|
+
height,
|
|
24
|
+
edit,
|
|
25
|
+
setEdit,
|
|
26
|
+
onChange,
|
|
27
|
+
onExitEdit,
|
|
28
|
+
minWidth,
|
|
29
|
+
minHeight,
|
|
30
|
+
maxWidth,
|
|
31
|
+
maxHeight,
|
|
32
|
+
className
|
|
33
|
+
}: NodeSizeProps) => react_jsx_runtime29.JSX.Element;
|
|
34
|
+
interface NodeSizePluginOptions {
|
|
35
|
+
minWidth?: number;
|
|
36
|
+
minHeight?: number;
|
|
37
|
+
maxWidth?: number;
|
|
38
|
+
maxHeight?: number;
|
|
39
|
+
}
|
|
40
|
+
declare const nodeSize: (options?: NodeSizePluginOptions) => NodeViewPlugin;
|
|
41
|
+
declare const NodeSizePlugin: NodeViewPlugin;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { nodeSize as a, NodeSizeProps as i, NodeSizePlugin as n, NodeSizePluginOptions as r, NodeSize as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as _tiptap_core0 from "@tiptap/core";
|
|
2
|
+
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/nodes/custom-heading/custom-heading.d.ts
|
|
5
|
+
declare const CustomHeading: _tiptap_core0.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CustomHeading as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as AlignType } from "./index-D5uh7klO.mjs";
|
|
2
|
+
import { n as NodeViewPlugin } from "./index-DHXj3w9p.mjs";
|
|
3
|
+
import { r as NodeSizePluginOptions } from "./index-CV-nhdHd.mjs";
|
|
4
|
+
import * as _tiptap_core4 from "@tiptap/core";
|
|
5
|
+
import { Node as Node$1, NodeViewProps as NodeViewProps$1 } from "@tiptap/react";
|
|
6
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
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_runtime48.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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { n as LabelProps } from "./index-DrUJZDtK.cjs";
|
|
2
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import Select, { ClassNamesConfig, GroupBase } from "react-select";
|
|
6
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
7
|
+
|
|
8
|
+
//#region src/ui/admin/select-field/select-field.d.ts
|
|
9
|
+
declare const controlClasses: (props?: ({
|
|
10
|
+
rounded?: "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
12
|
+
declare const valueContainerClasses: (props?: ({
|
|
13
|
+
size?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
14
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
15
|
+
interface SelectFieldProps<T, F extends boolean = false> extends ComponentProps<typeof Select<T, F>>, VariantProps<typeof valueContainerClasses>, VariantProps<typeof controlClasses> {
|
|
16
|
+
label?: Omit<LabelProps, 'children'>;
|
|
17
|
+
}
|
|
18
|
+
declare const baseClassNames: <T, F extends boolean = false>({
|
|
19
|
+
size,
|
|
20
|
+
rounded
|
|
21
|
+
}: VariantProps<typeof valueContainerClasses> & VariantProps<typeof controlClasses>) => ClassNamesConfig<T, F, GroupBase<T>>;
|
|
22
|
+
declare const SelectField: <T, F extends boolean = false>({
|
|
23
|
+
label,
|
|
24
|
+
size,
|
|
25
|
+
rounded,
|
|
26
|
+
isMulti,
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}: SelectFieldProps<T, F>) => react_jsx_runtime50.JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { valueContainerClasses as a, controlClasses as i, SelectFieldProps as n, baseClassNames as r, SelectField as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { n as LabelProps } from "./index-BKqI0jBF.mjs";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as react44 from "react";
|
|
4
|
+
import { ComponentProps } from "react";
|
|
5
|
+
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
6
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
7
|
+
|
|
8
|
+
//#region src/ui/admin/text-field/text-field.d.ts
|
|
9
|
+
type TextFieldFileVariantColor = 'green' | 'blue' | 'red';
|
|
10
|
+
declare const classes: (props?: ({
|
|
11
|
+
size?: "xs" | "sm" | "lg" | "md" | null | undefined;
|
|
12
|
+
invalid?: boolean | null | undefined;
|
|
13
|
+
shadow?: boolean | null | undefined;
|
|
14
|
+
disabled?: boolean | null | undefined;
|
|
15
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
16
|
+
interface BaseProps extends Omit<ComponentProps<'input'>, 'size' | 'ref' | 'color'>, VariantProps<typeof classes> {
|
|
17
|
+
label?: Omit<LabelProps, 'children'>;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
dateIcon?: IconProp;
|
|
20
|
+
handleDateClear?: never;
|
|
21
|
+
}
|
|
22
|
+
interface DefaultProps extends BaseProps {
|
|
23
|
+
variant?: 'default';
|
|
24
|
+
}
|
|
25
|
+
interface SearchProps extends BaseProps {
|
|
26
|
+
variant: 'search';
|
|
27
|
+
searchIcon: IconProp;
|
|
28
|
+
}
|
|
29
|
+
interface FileProps extends BaseProps {
|
|
30
|
+
variant: 'file';
|
|
31
|
+
path: string;
|
|
32
|
+
color?: TextFieldFileVariantColor;
|
|
33
|
+
fileIcon: IconProp;
|
|
34
|
+
}
|
|
35
|
+
interface PrefixTextProps extends BaseProps {
|
|
36
|
+
variant: 'prefix-text';
|
|
37
|
+
prefix: string;
|
|
38
|
+
id?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SuffixTextProps extends BaseProps {
|
|
41
|
+
variant: 'suffix-text';
|
|
42
|
+
suffix: string;
|
|
43
|
+
id?: string;
|
|
44
|
+
}
|
|
45
|
+
interface SuffixDateProps extends Omit<BaseProps, 'handleDateClear'> {
|
|
46
|
+
variant: 'select-date';
|
|
47
|
+
handleDateClear: () => void;
|
|
48
|
+
clearIcon: IconProp;
|
|
49
|
+
inputlabel?: string;
|
|
50
|
+
min?: string | number;
|
|
51
|
+
max?: string | number;
|
|
52
|
+
}
|
|
53
|
+
type TextFieldProps = DefaultProps | FileProps | SearchProps | PrefixTextProps | SuffixTextProps | SuffixDateProps;
|
|
54
|
+
declare const TextField: react44.ForwardRefExoticComponent<TextFieldProps & react44.RefAttributes<HTMLInputElement>>;
|
|
55
|
+
//#endregion
|
|
56
|
+
export { TextFieldFileVariantColor as n, TextFieldProps as r, TextField as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/fetcher.d.ts
|
|
1
|
+
//#region src/util/fetcher/index.d.ts
|
|
2
2
|
interface BaseInput<Filter extends Record<string, any> = Record<string, any>> {
|
|
3
3
|
filter?: Filter;
|
|
4
4
|
page: number;
|
|
@@ -12,4 +12,4 @@ declare const createSdkFetcher: <TQuery extends Record<string, {
|
|
|
12
12
|
input: TInput;
|
|
13
13
|
}) => Promise<TQuery>, key: TKey, customInput?: Partial<TInput>) => (input: TInput) => Promise<TQuery[TKey]>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { createSdkFetcher as n, BaseInput as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/extensions/align/align.d.ts
|
|
4
|
+
type AlignType = 'left' | 'center' | 'right';
|
|
5
|
+
declare module '@tiptap/core' {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
align: {
|
|
8
|
+
setAlign: (align: AlignType) => ReturnType;
|
|
9
|
+
unsetAlign: () => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const Align: Extension<{
|
|
14
|
+
types: string[];
|
|
15
|
+
defaultAlign: AlignType;
|
|
16
|
+
}, any>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AlignType as n, Align as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as _tiptap_core3 from "@tiptap/core";
|
|
2
|
+
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/nodes/custom-heading/custom-heading.d.ts
|
|
5
|
+
declare const CustomHeading: _tiptap_core3.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { CustomHeading as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-drag-resize/index.d.ts
|
|
4
|
+
declare const RESIZE_CONSTANTS: {
|
|
5
|
+
DEFAULT_WIDTH: number;
|
|
6
|
+
DEFAULT_HEIGHT: number;
|
|
7
|
+
};
|
|
8
|
+
type ResizeDirection = 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
9
|
+
interface Size {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
interface LimitSize {
|
|
14
|
+
width: boolean;
|
|
15
|
+
height: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface UseResizeProps {
|
|
18
|
+
boundaryRef: React.RefObject<HTMLElement | null>;
|
|
19
|
+
size: Size;
|
|
20
|
+
keepAspectRatio?: boolean;
|
|
21
|
+
limitSize?: LimitSize;
|
|
22
|
+
minSize?: Size;
|
|
23
|
+
maxSize?: Size;
|
|
24
|
+
direction?: ResizeDirection;
|
|
25
|
+
onResize?: (size: Size) => void;
|
|
26
|
+
}
|
|
27
|
+
declare function useResize({
|
|
28
|
+
boundaryRef,
|
|
29
|
+
size,
|
|
30
|
+
keepAspectRatio,
|
|
31
|
+
minSize,
|
|
32
|
+
maxSize,
|
|
33
|
+
limitSize,
|
|
34
|
+
direction,
|
|
35
|
+
onResize
|
|
36
|
+
}: UseResizeProps): {
|
|
37
|
+
onMouseDown: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
38
|
+
onTouchStart: (e: React.TouchEvent<HTMLDivElement>) => void;
|
|
39
|
+
};
|
|
40
|
+
//#endregion
|
|
41
|
+
export { useResize as a, UseResizeProps as i, ResizeDirection as n, Size as r, RESIZE_CONSTANTS as t };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-DHXj3w9p.mjs";
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/editor/nodes/node-size/node-size.d.ts
|
|
5
|
+
interface NodeSizeProps {
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
edit?: boolean;
|
|
9
|
+
setEdit?: (edit: boolean) => void;
|
|
10
|
+
onChange?: (size: {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
onExitEdit?: () => void;
|
|
15
|
+
minWidth?: number;
|
|
16
|
+
minHeight?: number;
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
maxHeight?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const NodeSize: ({
|
|
22
|
+
width,
|
|
23
|
+
height,
|
|
24
|
+
edit,
|
|
25
|
+
setEdit,
|
|
26
|
+
onChange,
|
|
27
|
+
onExitEdit,
|
|
28
|
+
minWidth,
|
|
29
|
+
minHeight,
|
|
30
|
+
maxWidth,
|
|
31
|
+
maxHeight,
|
|
32
|
+
className
|
|
33
|
+
}: NodeSizeProps) => react_jsx_runtime21.JSX.Element;
|
|
34
|
+
interface NodeSizePluginOptions {
|
|
35
|
+
minWidth?: number;
|
|
36
|
+
minHeight?: number;
|
|
37
|
+
maxWidth?: number;
|
|
38
|
+
maxHeight?: number;
|
|
39
|
+
}
|
|
40
|
+
declare const nodeSize: (options?: NodeSizePluginOptions) => NodeViewPlugin;
|
|
41
|
+
declare const NodeSizePlugin: NodeViewPlugin;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { nodeSize as a, NodeSizeProps as i, NodeSizePlugin as n, NodeSizePluginOptions as r, NodeSize as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/util/fetcher.d.ts
|
|
1
|
+
//#region src/util/fetcher/index.d.ts
|
|
2
2
|
interface BaseInput<Filter extends Record<string, any> = Record<string, any>> {
|
|
3
3
|
filter?: Filter;
|
|
4
4
|
page: number;
|
|
@@ -12,4 +12,4 @@ declare const createSdkFetcher: <TQuery extends Record<string, {
|
|
|
12
12
|
input: TInput;
|
|
13
13
|
}) => Promise<TQuery>, key: TKey, customInput?: Partial<TInput>) => (input: TInput) => Promise<TQuery[TKey]>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { createSdkFetcher as n, BaseInput as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-DHXj3w9p.mjs";
|
|
2
|
+
import { r as NodeSizePluginOptions } from "./index-CV-nhdHd.mjs";
|
|
3
|
+
import * as _tiptap_core5 from "@tiptap/core";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/nodes/basic-image/basic-image.d.ts
|
|
6
|
+
declare const BasicImage: _tiptap_core5.Node<{
|
|
7
|
+
plugins: NodeViewPlugin[];
|
|
8
|
+
size?: NodeSizePluginOptions;
|
|
9
|
+
}, any>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { BasicImage as t };
|
|
@@ -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 };
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
//#region src/
|
|
2
|
-
interface
|
|
3
|
-
apiEndpoint: string;
|
|
4
|
-
cdnEndpoint: string;
|
|
1
|
+
//#region src/api-client/context.d.ts
|
|
2
|
+
interface ApiClientContext {
|
|
3
|
+
readonly apiEndpoint: string;
|
|
4
|
+
readonly cdnEndpoint: string;
|
|
5
|
+
getToken: () => string | undefined;
|
|
6
|
+
getBearer: () => string;
|
|
5
7
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/api-client/api.d.ts
|
|
10
|
+
declare class Api {
|
|
11
|
+
protected readonly ctx: ApiClientContext;
|
|
12
|
+
constructor(ctx: ApiClientContext);
|
|
13
|
+
getPriorityPosition(priority: number, type: string): Promise<{
|
|
14
|
+
rank: number;
|
|
15
|
+
total: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/api-client/auth.d.ts
|
|
20
|
+
declare class Auth {
|
|
21
|
+
protected readonly ctx: ApiClientContext;
|
|
22
|
+
constructor(ctx: ApiClientContext);
|
|
9
23
|
login<T>(email: string, password: string): Promise<{
|
|
10
24
|
ok: boolean;
|
|
11
25
|
errors: Array<{
|
|
@@ -14,11 +28,21 @@ declare class ApiClient {
|
|
|
14
28
|
}>;
|
|
15
29
|
}>;
|
|
16
30
|
logout(path?: string, domain?: string): void;
|
|
17
|
-
getToken(): string | undefined;
|
|
18
|
-
getBearer(): string;
|
|
19
31
|
accessLog(): Promise<any>;
|
|
20
32
|
me(): Promise<any>;
|
|
21
33
|
hasPermission(obj: string, act: string, exact?: boolean, silent?: boolean): Promise<any>;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/api-client/media.d.ts
|
|
37
|
+
interface UploadValues {
|
|
38
|
+
contentType: string;
|
|
39
|
+
length: number;
|
|
40
|
+
key: string;
|
|
41
|
+
disposition?: string;
|
|
42
|
+
}
|
|
43
|
+
declare class Media {
|
|
44
|
+
protected readonly ctx: ApiClientContext;
|
|
45
|
+
constructor(ctx: ApiClientContext);
|
|
22
46
|
cdnMedia(path: string, size?: number): string;
|
|
23
47
|
cdnStatic(path: string, size?: number): string;
|
|
24
48
|
refinePath(path?: string | null): string;
|
|
@@ -31,11 +55,19 @@ declare class ApiClient {
|
|
|
31
55
|
createParaMap(file: File, prefix?: string): UploadValues;
|
|
32
56
|
upload(file: File, prefix?: string): Promise<string>;
|
|
33
57
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/api-client/api-client.d.ts
|
|
60
|
+
interface ApiConfig {
|
|
61
|
+
apiEndpoint: string;
|
|
62
|
+
cdnEndpoint: string;
|
|
63
|
+
}
|
|
64
|
+
declare class ApiClient {
|
|
65
|
+
readonly auth: Auth;
|
|
66
|
+
readonly api: Api;
|
|
67
|
+
readonly media: Media;
|
|
68
|
+
constructor(config: ApiConfig);
|
|
69
|
+
getToken(): string | undefined;
|
|
70
|
+
getBearer(): string;
|
|
39
71
|
}
|
|
40
72
|
//#endregion
|
|
41
|
-
export { ApiConfig as n,
|
|
73
|
+
export { Auth as a, UploadValues as i, ApiConfig as n, Api as o, Media as r, ApiClientContext as s, ApiClient as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/extensions/table-controls/table-controls.d.ts
|
|
4
|
+
interface ActiveControl {
|
|
5
|
+
type: 'col' | 'row';
|
|
6
|
+
index: number;
|
|
7
|
+
rect: DOMRect;
|
|
8
|
+
}
|
|
9
|
+
interface TableControlsStorage {
|
|
10
|
+
onControlClick: ((data: ActiveControl) => void) | null;
|
|
11
|
+
}
|
|
12
|
+
declare module '@tiptap/core' {
|
|
13
|
+
interface Storage {
|
|
14
|
+
tableControls: TableControlsStorage;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare const TableControls: Extension<object, TableControlsStorage>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { TableControls as n, TableControlsStorage as r, ActiveControl as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { n as NodeViewPlugin } from "./index-DvEtYdm4.cjs";
|
|
2
|
+
import { r as NodeSizePluginOptions } from "./index-BMZtFPh-.cjs";
|
|
3
|
+
import * as _tiptap_core5 from "@tiptap/core";
|
|
4
|
+
|
|
5
|
+
//#region src/editor/nodes/basic-image/basic-image.d.ts
|
|
6
|
+
declare const BasicImage: _tiptap_core5.Node<{
|
|
7
|
+
plugins: NodeViewPlugin[];
|
|
8
|
+
size?: NodeSizePluginOptions;
|
|
9
|
+
}, any>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { BasicImage as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
|
|
3
|
+
//#region src/editor/extensions/align/align.d.ts
|
|
4
|
+
type AlignType = 'left' | 'center' | 'right';
|
|
5
|
+
declare module '@tiptap/core' {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
align: {
|
|
8
|
+
setAlign: (align: AlignType) => ReturnType;
|
|
9
|
+
unsetAlign: () => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const Align: Extension<{
|
|
14
|
+
types: string[];
|
|
15
|
+
defaultAlign: AlignType;
|
|
16
|
+
}, any>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AlignType as n, Align as t };
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
//#region src/
|
|
2
|
-
interface
|
|
3
|
-
apiEndpoint: string;
|
|
4
|
-
cdnEndpoint: string;
|
|
1
|
+
//#region src/api-client/context.d.ts
|
|
2
|
+
interface ApiClientContext {
|
|
3
|
+
readonly apiEndpoint: string;
|
|
4
|
+
readonly cdnEndpoint: string;
|
|
5
|
+
getToken: () => string | undefined;
|
|
6
|
+
getBearer: () => string;
|
|
5
7
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/api-client/api.d.ts
|
|
10
|
+
declare class Api {
|
|
11
|
+
protected readonly ctx: ApiClientContext;
|
|
12
|
+
constructor(ctx: ApiClientContext);
|
|
13
|
+
getPriorityPosition(priority: number, type: string): Promise<{
|
|
14
|
+
rank: number;
|
|
15
|
+
total: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/api-client/auth.d.ts
|
|
20
|
+
declare class Auth {
|
|
21
|
+
protected readonly ctx: ApiClientContext;
|
|
22
|
+
constructor(ctx: ApiClientContext);
|
|
9
23
|
login<T>(email: string, password: string): Promise<{
|
|
10
24
|
ok: boolean;
|
|
11
25
|
errors: Array<{
|
|
@@ -14,11 +28,21 @@ declare class ApiClient {
|
|
|
14
28
|
}>;
|
|
15
29
|
}>;
|
|
16
30
|
logout(path?: string, domain?: string): void;
|
|
17
|
-
getToken(): string | undefined;
|
|
18
|
-
getBearer(): string;
|
|
19
31
|
accessLog(): Promise<any>;
|
|
20
32
|
me(): Promise<any>;
|
|
21
33
|
hasPermission(obj: string, act: string, exact?: boolean, silent?: boolean): Promise<any>;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/api-client/media.d.ts
|
|
37
|
+
interface UploadValues {
|
|
38
|
+
contentType: string;
|
|
39
|
+
length: number;
|
|
40
|
+
key: string;
|
|
41
|
+
disposition?: string;
|
|
42
|
+
}
|
|
43
|
+
declare class Media {
|
|
44
|
+
protected readonly ctx: ApiClientContext;
|
|
45
|
+
constructor(ctx: ApiClientContext);
|
|
22
46
|
cdnMedia(path: string, size?: number): string;
|
|
23
47
|
cdnStatic(path: string, size?: number): string;
|
|
24
48
|
refinePath(path?: string | null): string;
|
|
@@ -31,11 +55,19 @@ declare class ApiClient {
|
|
|
31
55
|
createParaMap(file: File, prefix?: string): UploadValues;
|
|
32
56
|
upload(file: File, prefix?: string): Promise<string>;
|
|
33
57
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/api-client/api-client.d.ts
|
|
60
|
+
interface ApiConfig {
|
|
61
|
+
apiEndpoint: string;
|
|
62
|
+
cdnEndpoint: string;
|
|
63
|
+
}
|
|
64
|
+
declare class ApiClient {
|
|
65
|
+
readonly auth: Auth;
|
|
66
|
+
readonly api: Api;
|
|
67
|
+
readonly media: Media;
|
|
68
|
+
constructor(config: ApiConfig);
|
|
69
|
+
getToken(): string | undefined;
|
|
70
|
+
getBearer(): string;
|
|
39
71
|
}
|
|
40
72
|
//#endregion
|
|
41
|
-
export { ApiConfig as n,
|
|
73
|
+
export { Auth as a, UploadValues as i, ApiConfig as n, Api as o, Media as r, ApiClientContext as s, ApiClient as t };
|