@tulip-systems/core 0.5.16 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/server.d.mts +1 -1
- package/dist/auth/server.mjs +1 -1
- package/dist/commands/client.d.mts +2 -1
- package/dist/commands/client.mjs +2 -1
- package/dist/components/client.d.mts +1 -1
- package/dist/components/client.mjs +1 -1
- package/dist/components/common/icons.d.mts +52 -52
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/icons.mjs.map +1 -1
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/common/status.d.mts.map +1 -1
- package/dist/components/common/status.mjs.map +1 -1
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/content.client.mjs.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +6 -6
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.mjs +2 -2
- package/dist/components/editor/components/editor.client.mjs.map +1 -1
- package/dist/components/editor/components/menu-nodes.client.mjs +3 -3
- package/dist/components/editor/components/menu-nodes.client.mjs.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
- package/dist/components/editor/extensions/image/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -1
- package/dist/components/editor/lib/constants.d.mts +27 -27
- package/dist/components/editor/lib/constants.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.d.mts +0 -1
- package/dist/components/editor/lib/extensions.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.mjs +6 -8
- package/dist/components/editor/lib/extensions.mjs.map +1 -1
- package/dist/components/editor/lib/helpers.d.mts +0 -1
- package/dist/components/editor/lib/helpers.d.mts.map +1 -1
- package/dist/components/editor/lib/helpers.mjs.map +1 -1
- package/dist/components/editor/lib/types.d.mts +0 -1
- package/dist/components/editor/lib/types.d.mts.map +1 -1
- package/dist/components/editor/lib/variants.mjs.map +1 -1
- package/dist/components/emails/forget-password-email.mjs +1 -2
- package/dist/components/emails/forget-password-email.mjs.map +1 -1
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/back-button.client.mjs.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.mjs.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/breadcrumbs.client.mjs.map +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/header.client.d.mts.map +1 -1
- package/dist/components/header/header.client.mjs.map +1 -1
- package/dist/components/header/indicator.client.mjs.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.mjs.map +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-content.client.mjs.map +1 -1
- package/dist/components/layouts/admin-error-pages.d.mts +4 -4
- package/dist/components/layouts/admin-error-pages.d.mts.map +1 -1
- package/dist/components/layouts/admin-error-pages.mjs.map +1 -1
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-layout.mjs.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.mjs.map +1 -1
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.d.mts +9 -9
- package/dist/components/layouts/error-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/error-sections.d.mts +5 -5
- package/dist/components/layouts/error-sections.d.mts.map +1 -1
- package/dist/components/layouts/error-sections.mjs.map +1 -1
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/list-layout.d.mts.map +1 -1
- package/dist/components/layouts/list-layout.mjs.map +1 -1
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.mjs +1 -1
- package/dist/components/layouts/providers.client.mjs.map +1 -1
- package/dist/components/layouts/root-error-pages.d.mts +2 -2
- package/dist/components/layouts/root-error-pages.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.mjs.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/root-loading.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.mjs +3 -3
- package/dist/components/layouts/tab-layout.mjs.map +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-list.d.mts.map +1 -1
- package/dist/components/lists/data-list.mjs.map +1 -1
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/lists/data-stack.d.mts.map +1 -1
- package/dist/components/lists/data-stack.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs.map +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/accordion.d.mts.map +1 -1
- package/dist/components/ui/accordion.mjs +0 -1
- package/dist/components/ui/accordion.mjs.map +1 -1
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert-dialog.d.mts.map +1 -1
- package/dist/components/ui/alert-dialog.mjs +0 -1
- package/dist/components/ui/alert-dialog.mjs.map +1 -1
- package/dist/components/ui/alert.d.mts +4 -4
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/alert.mjs +0 -1
- package/dist/components/ui/alert.mjs.map +1 -1
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.mjs +0 -1
- package/dist/components/ui/avatar.client.mjs.map +1 -1
- package/dist/components/ui/badge.d.mts +3 -3
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/badge.mjs +0 -1
- package/dist/components/ui/badge.mjs.map +1 -1
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/breadcrumb.d.mts.map +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -2
- package/dist/components/ui/breadcrumb.mjs.map +1 -1
- package/dist/components/ui/button.d.mts +5 -5
- package/dist/components/ui/button.d.mts.map +1 -1
- package/dist/components/ui/button.mjs +0 -1
- package/dist/components/ui/button.mjs.map +1 -1
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/calendar.d.mts.map +1 -1
- package/dist/components/ui/calendar.mjs +12 -12
- package/dist/components/ui/calendar.mjs.map +1 -1
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/card.d.mts.map +1 -1
- package/dist/components/ui/card.mjs +0 -1
- package/dist/components/ui/card.mjs.map +1 -1
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/carousel.d.mts.map +1 -1
- package/dist/components/ui/carousel.mjs +4 -4
- package/dist/components/ui/carousel.mjs.map +1 -1
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/chart.client.mjs +6 -6
- package/dist/components/ui/chart.client.mjs.map +1 -1
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/checkbox.d.mts.map +1 -1
- package/dist/components/ui/checkbox.mjs +0 -1
- package/dist/components/ui/checkbox.mjs.map +1 -1
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/color-picker.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.mjs +6 -5
- package/dist/components/ui/color-picker.client.mjs.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -3
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.mjs +3 -3
- package/dist/components/ui/combobox-dropdown.client.mjs.map +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts.map +1 -1
- package/dist/components/ui/combobox.client.mjs +2 -2
- package/dist/components/ui/combobox.client.mjs.map +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/command.d.mts.map +1 -1
- package/dist/components/ui/command.mjs +0 -1
- package/dist/components/ui/command.mjs.map +1 -1
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/context-menu.d.mts.map +1 -1
- package/dist/components/ui/context-menu.mjs +0 -1
- package/dist/components/ui/context-menu.mjs.map +1 -1
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.d.mts.map +1 -1
- package/dist/components/ui/date-picker.client.mjs +3 -3
- package/dist/components/ui/date-picker.client.mjs.map +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/dialog.client.mjs +0 -1
- package/dist/components/ui/dialog.client.mjs.map +1 -1
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.mjs +0 -1
- package/dist/components/ui/drawer.client.mjs.map +1 -1
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/dropdown-menu.d.mts.map +1 -1
- package/dist/components/ui/dropdown-menu.mjs +0 -1
- package/dist/components/ui/dropdown-menu.mjs.map +1 -1
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/form.client.d.mts.map +1 -1
- package/dist/components/ui/form.client.mjs.map +1 -1
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/hover-card.client.d.mts.map +1 -1
- package/dist/components/ui/hover-card.client.mjs +0 -1
- package/dist/components/ui/hover-card.client.mjs.map +1 -1
- package/dist/components/ui/input-date-time.d.mts +6 -6
- package/dist/components/ui/input-date-time.d.mts.map +1 -1
- package/dist/components/ui/input-date-time.mjs +4 -6
- package/dist/components/ui/input-date-time.mjs.map +1 -1
- package/dist/components/ui/input-date.d.mts +2 -2
- package/dist/components/ui/input-date.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input-recipient.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.mjs +2 -2
- package/dist/components/ui/input-recipient.mjs.map +1 -1
- package/dist/components/ui/input-time.d.mts +2 -2
- package/dist/components/ui/input-time.d.mts.map +1 -1
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/input.d.mts.map +1 -1
- package/dist/components/ui/input.mjs +0 -1
- package/dist/components/ui/input.mjs.map +1 -1
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/label.d.mts.map +1 -1
- package/dist/components/ui/label.mjs +0 -1
- package/dist/components/ui/label.mjs.map +1 -1
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/navigation-menu.d.mts.map +1 -1
- package/dist/components/ui/navigation-menu.mjs +0 -1
- package/dist/components/ui/navigation-menu.mjs.map +1 -1
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/pagination.d.mts.map +1 -1
- package/dist/components/ui/pagination.mjs +0 -1
- package/dist/components/ui/pagination.mjs.map +1 -1
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/popover.d.mts.map +1 -1
- package/dist/components/ui/popover.mjs +0 -1
- package/dist/components/ui/popover.mjs.map +1 -1
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/progress.client.d.mts.map +1 -1
- package/dist/components/ui/progress.client.mjs +0 -1
- package/dist/components/ui/progress.client.mjs.map +1 -1
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/radio-group.d.mts.map +1 -1
- package/dist/components/ui/radio-group.mjs +0 -1
- package/dist/components/ui/radio-group.mjs.map +1 -1
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/resizable.client.d.mts.map +1 -1
- package/dist/components/ui/resizable.client.mjs +0 -1
- package/dist/components/ui/resizable.client.mjs.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/scroll-area.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.mjs +0 -1
- package/dist/components/ui/scroll-area.mjs.map +1 -1
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/select.client.d.mts.map +1 -1
- package/dist/components/ui/select.client.mjs +0 -1
- package/dist/components/ui/select.client.mjs.map +1 -1
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/separator.d.mts.map +1 -1
- package/dist/components/ui/separator.mjs +0 -1
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sheet.client.d.mts.map +1 -1
- package/dist/components/ui/sheet.client.mjs +0 -1
- package/dist/components/ui/sheet.client.mjs.map +1 -1
- package/dist/components/ui/sidebar.client.d.mts +26 -26
- package/dist/components/ui/sidebar.client.d.mts.map +1 -1
- package/dist/components/ui/sidebar.client.mjs +2 -2
- package/dist/components/ui/sidebar.client.mjs.map +1 -1
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/skeleton.d.mts.map +1 -1
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/slider.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.mjs.map +1 -1
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/switch.d.mts.map +1 -1
- package/dist/components/ui/switch.mjs +0 -1
- package/dist/components/ui/switch.mjs.map +1 -1
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/tabs.d.mts.map +1 -1
- package/dist/components/ui/tabs.mjs +0 -1
- package/dist/components/ui/tabs.mjs.map +1 -1
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/textarea.d.mts.map +1 -1
- package/dist/components/ui/textarea.mjs +0 -1
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
- package/dist/components/ui/toggle-group.client.mjs.map +1 -1
- package/dist/components/ui/toggle.d.mts +4 -4
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/toggle.mjs +0 -1
- package/dist/components/ui/toggle.mjs.map +1 -1
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.mjs +0 -1
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +1 -1
- package/dist/data-tables/client.d.mts +4 -4
- package/dist/data-tables/client.mjs +4 -4
- package/dist/inline-edit/client.d.mts +4 -4
- package/dist/inline-edit/client.mjs +2 -2
- package/dist/lib/config/constants.d.mts.map +1 -1
- package/dist/lib/config/constants.mjs.map +1 -1
- package/dist/lib/hooks/use-action.d.mts +0 -1
- package/dist/lib/hooks/use-action.d.mts.map +1 -1
- package/dist/lib/hooks/use-action.mjs.map +1 -1
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs +14 -11
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/lib/hooks/use-mobile.client.d.mts.map +1 -1
- package/dist/lib/types/config.d.mts.map +1 -1
- package/dist/lib/utils/array-move.d.mts.map +1 -1
- package/dist/lib/utils/cn.d.mts.map +1 -1
- package/dist/lib/utils/cn.mjs.map +1 -1
- package/dist/lib/utils/fonts.d.mts.map +1 -1
- package/dist/lib/utils/format.d.mts.map +1 -1
- package/dist/lib/utils/manifest.d.mts.map +1 -1
- package/dist/lib/utils/manifest.mjs.map +1 -1
- package/dist/lib/utils/url.d.mts.map +1 -1
- package/dist/lib/utils/url.mjs +1 -1
- package/dist/lib/utils/url.mjs.map +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +2 -2
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/forget-password-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.mjs.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.mjs.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.mjs +1 -1
- package/dist/modules/auth/components/login-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/reset-password-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/components/update-password-command.mjs +0 -1
- package/dist/modules/auth/components/update-password-command.mjs.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.mjs +1 -1
- package/dist/modules/auth/db/schema.mjs.map +1 -1
- package/dist/modules/auth/handler/create-client.client.d.mts +159 -159
- package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/create-client.client.mjs.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +98 -98
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.mjs +2 -2
- package/dist/modules/auth/handler/init.mjs.map +1 -1
- package/dist/modules/auth/handler/proxy.server.d.mts +0 -1
- package/dist/modules/auth/handler/proxy.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/proxy.server.mjs +0 -1
- package/dist/modules/auth/handler/proxy.server.mjs.map +1 -1
- package/dist/modules/auth/handler/route.server.d.mts +0 -1
- package/dist/modules/auth/handler/route.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/route.server.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.d.mts +4 -4
- package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.mjs +2 -2
- package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-session.d.mts +2 -2
- package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
- package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.mjs +2 -2
- package/dist/modules/auth/lib/helpers.server.mjs.map +1 -1
- package/dist/modules/auth/lib/permissions.d.mts.map +1 -1
- package/dist/modules/auth/lib/validators.d.mts +2 -3
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.mjs +0 -1
- package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.mjs.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.mjs +0 -1
- package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/render-command.mjs.map +1 -1
- package/dist/modules/commands/hooks/context.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts +8 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +1 -1
- package/dist/modules/commands/lib/definitions.d.mts +0 -1
- package/dist/modules/commands/lib/definitions.d.mts.map +1 -1
- package/dist/modules/commands/lib/factory.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.mjs +5 -5
- package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/floating-menu.client.d.mts +19 -0
- package/dist/modules/commands/menus/floating-menu.client.d.mts.map +1 -0
- package/dist/modules/commands/menus/{data-table-menu.client.mjs → floating-menu.client.mjs} +10 -10
- package/dist/modules/commands/menus/floating-menu.client.mjs.map +1 -0
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs +0 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.mjs.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/config/db/helpers.mjs.map +1 -1
- package/dist/modules/config/db/init.d.mts.map +1 -1
- package/dist/modules/config/db/init.mjs.map +1 -1
- package/dist/modules/config/db/types.d.mts.map +1 -1
- package/dist/modules/config/lib/config.d.mts.map +1 -1
- package/dist/modules/config/lib/context.d.mts.map +1 -1
- package/dist/modules/config/lib/context.mjs.map +1 -1
- package/dist/modules/config/paths/helpers.d.mts +0 -1
- package/dist/modules/config/paths/helpers.d.mts.map +1 -1
- package/dist/modules/config/paths/helpers.mjs.map +1 -1
- package/dist/modules/config/paths/types.d.mts +0 -1
- package/dist/modules/config/paths/types.d.mts.map +1 -1
- package/dist/modules/config/providers/email.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/cell/index.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/select.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/footer.mjs.map +1 -1
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
- package/dist/modules/data-tables/components/layout.mjs.map +1 -1
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.mjs +4 -4
- package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/components/table.mjs +0 -1
- package/dist/modules/data-tables/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/filter.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.mjs +4 -4
- package/dist/modules/data-tables/lib/filters/helpers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +1 -1
- package/dist/modules/data-tables/lib/search-params.d.mts +6 -6
- package/dist/modules/data-tables/lib/search-params.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/types.d.mts +0 -1
- package/dist/modules/data-tables/lib/types.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/validators.d.mts +0 -1
- package/dist/modules/data-tables/lib/validators.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs +0 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +5 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +8 -4
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs +5 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +8 -4
- package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs +6 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +7 -3
- package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs +5 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +5 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +16 -4
- package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.mjs +8 -4
- package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs +5 -1
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +8 -4
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +22 -7
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +12 -9
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/validators.d.mts +0 -1
- package/dist/modules/inline-edit/lib/validators.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/validators.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +3 -3
- package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
- package/dist/modules/router/handler/caller.client.d.mts +0 -1
- package/dist/modules/router/handler/caller.client.d.mts.map +1 -1
- package/dist/modules/router/handler/caller.client.mjs.map +1 -1
- package/dist/modules/router/handler/caller.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.mjs.map +1 -1
- package/dist/modules/router/handler/init.server.d.mts +6 -6
- package/dist/modules/router/handler/init.server.d.mts.map +1 -1
- package/dist/modules/router/handler/init.server.mjs.map +1 -1
- package/dist/modules/router/handler/register.server.d.mts.map +1 -1
- package/dist/modules/router/handler/register.server.mjs.map +1 -1
- package/dist/modules/router/handler/route.server.d.mts +0 -1
- package/dist/modules/router/handler/route.server.d.mts.map +1 -1
- package/dist/modules/router/handler/route.server.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.d.mts +0 -1
- package/dist/modules/router/lib/query-client.d.mts.map +1 -1
- package/dist/modules/router/lib/query-client.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
- package/dist/modules/router/lib/validators.d.mts +0 -1
- package/dist/modules/router/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +3 -3
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +2 -0
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts +4 -3
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +9 -7
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/config/filters.d.mts.map +1 -1
- package/dist/modules/storage/config/filters.mjs.map +1 -1
- package/dist/modules/storage/lib/constants.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.mjs.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -1
- package/dist/modules/storage/lib/helpers.d.mts +0 -1
- package/dist/modules/storage/lib/helpers.d.mts.map +1 -1
- package/dist/modules/storage/lib/helpers.mjs.map +1 -1
- package/dist/modules/storage/lib/proxy.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/proxy.server.mjs.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +27 -27
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.mjs.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/schema.mjs.map +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +18 -18
- package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/service.server.mjs.map +1 -1
- package/dist/modules/storage/lib/validators.d.mts +92 -92
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/lib/validators.mjs.map +1 -1
- package/dist/storage/client.d.mts +1 -1
- package/package.json +89 -92
- package/src/components/common/icons.tsx +2 -2
- package/src/components/common/status.tsx +1 -1
- package/src/components/editor/components/content.client.tsx +1 -1
- package/src/components/editor/components/editor.client.tsx +6 -6
- package/src/components/editor/components/menu-nodes.client.tsx +11 -11
- package/src/components/editor/components/menu.client.tsx +5 -5
- package/src/components/editor/components/spinner.tsx +2 -8
- package/src/components/editor/extensions/file-handler/extension.ts +1 -1
- package/src/components/editor/extensions/file-handler/strategy.ts +4 -4
- package/src/components/editor/extensions/file-handler/utils.ts +4 -2
- package/src/components/editor/extensions/image/extension.ts +4 -1
- package/src/components/editor/extensions/skeleton/renderer.tsx +4 -3
- package/src/components/editor/lib/extensions.ts +23 -26
- package/src/components/editor/lib/helpers.ts +1 -1
- package/src/components/editor/lib/utils.ts +1 -33
- package/src/components/editor/lib/variants.ts +1 -1
- package/src/components/emails/forget-password-email.tsx +1 -1
- package/src/components/entry.client.ts +1 -1
- package/src/components/entry.ts +1 -1
- package/src/components/header/back-button.client.tsx +1 -1
- package/src/components/header/bottom-bar.client.tsx +3 -3
- package/src/components/header/breadcrumbs.client.tsx +2 -2
- package/src/components/header/header.client.tsx +1 -1
- package/src/components/header/indicator.client.tsx +2 -2
- package/src/components/header/top-bar.client.tsx +3 -3
- package/src/components/layouts/admin-content.client.tsx +1 -1
- package/src/components/layouts/admin-error-pages.tsx +1 -1
- package/src/components/layouts/admin-layout.tsx +1 -1
- package/src/components/layouts/admin-loading.tsx +1 -1
- package/src/components/layouts/empty-page.tsx +1 -1
- package/src/components/layouts/error-page.tsx +2 -2
- package/src/components/layouts/error-sections.tsx +1 -1
- package/src/components/layouts/list-layout.tsx +1 -1
- package/src/components/layouts/providers.client.tsx +4 -4
- package/src/components/layouts/root-layout.server.tsx +3 -3
- package/src/components/layouts/tab-layout.tsx +3 -3
- package/src/components/lists/data-list.tsx +1 -1
- package/src/components/lists/data-stack.tsx +1 -1
- package/src/components/navigation/admin-sidebar-header.client.tsx +13 -13
- package/src/components/navigation/admin-sidebar-paths.client.tsx +6 -6
- package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
- package/src/components/navigation/admin-sidebar.client.tsx +6 -5
- package/src/components/ui/accordion.tsx +1 -2
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.client.tsx +1 -1
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +4 -2
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +2 -3
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -0
- package/src/components/ui/chart.client.tsx +12 -10
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/color-picker.client.tsx +4 -3
- package/src/components/ui/combobox-dropdown.client.tsx +2 -4
- package/src/components/ui/combobox.client.tsx +2 -2
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-picker.client.tsx +2 -2
- package/src/components/ui/dialog.client.tsx +1 -1
- package/src/components/ui/drawer.client.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/form.client.tsx +4 -4
- package/src/components/ui/hover-card.client.tsx +1 -1
- package/src/components/ui/input-date-time.tsx +13 -11
- package/src/components/ui/input-recipient.tsx +6 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/pagination.tsx +4 -2
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.client.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/resizable.client.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.client.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.client.tsx +1 -1
- package/src/components/ui/sidebar.client.tsx +5 -2
- package/src/components/ui/sonner.client.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.client.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.client.tsx +1 -1
- package/src/lib/config/constants.ts +1 -1
- package/src/lib/hooks/use-action.ts +3 -3
- package/src/lib/hooks/use-indicator.tsx +17 -8
- package/src/lib/types/config.ts +1 -1
- package/src/lib/utils/cn.ts +1 -1
- package/src/lib/utils/manifest.ts +3 -2
- package/src/lib/utils/time-picker.ts +2 -2
- package/src/lib/utils/url.ts +1 -1
- package/src/modules/auth/components/allowed.client.tsx +2 -2
- package/src/modules/auth/components/auth-layout.server.tsx +2 -2
- package/src/modules/auth/components/create-first-user-page.client.tsx +10 -11
- package/src/modules/auth/components/forget-password-page.client.tsx +5 -5
- package/src/modules/auth/components/guard-first-user.server.tsx +2 -5
- package/src/modules/auth/components/guard.server.tsx +3 -3
- package/src/modules/auth/components/login-page.client.tsx +5 -5
- package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
- package/src/modules/auth/components/update-password-command.tsx +5 -5
- package/src/modules/auth/db/schema.ts +2 -2
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/handler/create-client.client.ts +3 -3
- package/src/modules/auth/handler/init.ts +6 -6
- package/src/modules/auth/handler/proxy.server.ts +1 -2
- package/src/modules/auth/handler/route.server.ts +2 -2
- package/src/modules/auth/hooks/use-auth-client.tsx +3 -3
- package/src/modules/auth/hooks/use-permission.ts +1 -1
- package/src/modules/auth/hooks/use-session.ts +1 -2
- package/src/modules/auth/lib/helpers.server.ts +4 -4
- package/src/modules/commands/components/alert-dialog-command.client.tsx +8 -8
- package/src/modules/commands/components/click-command.client.tsx +3 -3
- package/src/modules/commands/components/command-trigger.client.tsx +1 -1
- package/src/modules/commands/components/dialog-command.client.tsx +3 -3
- package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
- package/src/modules/commands/components/empty-command.client.tsx +1 -1
- package/src/modules/commands/components/form-dialog-command.client.tsx +5 -5
- package/src/modules/commands/components/render-command.tsx +2 -2
- package/src/modules/commands/entry.client.ts +16 -0
- package/src/modules/commands/hooks/context.client.tsx +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -4
- package/src/modules/commands/hooks/use-command-mutation.client.tsx +1 -1
- package/src/modules/commands/menus/context-menu.client.tsx +20 -19
- package/src/modules/commands/menus/dropdown-menu.client.tsx +6 -3
- package/src/modules/commands/menus/floating-menu.client.tsx +54 -0
- package/src/modules/commands/menus/inline-menu.client.tsx +6 -2
- package/src/modules/commands/menus/responsive-menu.client.tsx +1 -1
- package/src/modules/commands/utils/archive-command.client.tsx +1 -1
- package/src/modules/commands/utils/delete-command.client.tsx +1 -1
- package/src/modules/config/db/helpers.ts +1 -1
- package/src/modules/config/db/init.ts +2 -2
- package/src/modules/config/lib/context.ts +5 -5
- package/src/modules/config/paths/helpers.ts +1 -1
- package/src/modules/config/paths/types.ts +4 -5
- package/src/modules/data-tables/components/cell/common.client.tsx +1 -1
- package/src/modules/data-tables/components/column-header.tsx +2 -2
- package/src/modules/data-tables/components/filters/combobox.client.tsx +3 -3
- package/src/modules/data-tables/components/filters/slider.client.tsx +5 -5
- package/src/modules/data-tables/components/footer.tsx +2 -2
- package/src/modules/data-tables/components/header.tsx +2 -2
- package/src/modules/data-tables/components/layout.tsx +1 -1
- package/src/modules/data-tables/components/skeleton.tsx +22 -29
- package/src/modules/data-tables/components/table.tsx +1 -1
- package/src/modules/data-tables/components/toolbar.tsx +1 -1
- package/src/modules/data-tables/entry.client.ts +9 -13
- package/src/modules/data-tables/hooks/use-context.client.tsx +6 -6
- package/src/modules/data-tables/hooks/use-selection.client.ts +1 -1
- package/src/modules/data-tables/hooks/use-table.client.ts +1 -1
- package/src/modules/data-tables/lib/converters/cursor.ts +1 -1
- package/src/modules/data-tables/lib/converters/dto.ts +1 -1
- package/src/modules/data-tables/lib/converters/search.ts +2 -2
- package/src/modules/data-tables/lib/converters/sorting.ts +2 -2
- package/src/modules/data-tables/lib/filters/config.ts +2 -2
- package/src/modules/data-tables/lib/filters/helpers.ts +4 -4
- package/src/modules/data-tables/lib/filters/parsers.ts +2 -2
- package/src/modules/data-tables/lib/filters/resolvers.ts +2 -2
- package/src/modules/data-tables/lib/helpers/create-column.ts +1 -1
- package/src/modules/data-tables/lib/types.ts +6 -5
- package/src/modules/data-tables/server/get-data.server.ts +8 -8
- package/src/modules/data-tables/strategies/helpers/sorting.ts +7 -3
- package/src/modules/data-tables/strategies/infinite/components.tsx +4 -4
- package/src/modules/data-tables/strategies/infinite/strategy.ts +2 -2
- package/src/modules/data-tables/strategies/pagination/components.tsx +2 -2
- package/src/modules/data-tables/strategies/pagination/strategy.ts +2 -2
- package/src/modules/data-tables/tables/data-table/components/body.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/data-table/components/row.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/table.tsx +13 -4
- package/src/modules/data-tables/tables/inline-table/components/body.tsx +5 -5
- package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +9 -5
- package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +5 -5
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +14 -5
- package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +2 -2
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +6 -2
- package/src/modules/inline-edit/components/combobox.client.tsx +6 -2
- package/src/modules/inline-edit/components/date-input.client.tsx +8 -4
- package/src/modules/inline-edit/components/date-picker.client.tsx +7 -3
- package/src/modules/inline-edit/components/date-time.client.tsx +20 -4
- package/src/modules/inline-edit/components/editor.client.tsx +7 -3
- package/src/modules/inline-edit/components/input-recipient.client.tsx +7 -3
- package/src/modules/inline-edit/components/input-toggle.client.tsx +7 -3
- package/src/modules/inline-edit/components/input.client.tsx +15 -3
- package/src/modules/inline-edit/components/select.client.tsx +12 -8
- package/src/modules/inline-edit/components/switch.client.tsx +5 -1
- package/src/modules/inline-edit/components/toggle.client.tsx +5 -1
- package/src/modules/inline-edit/entry.client.ts +3 -2
- package/src/modules/inline-edit/hooks/context.client.tsx +3 -2
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +42 -18
- package/src/modules/inline-edit/lib/parsers.ts +9 -0
- package/src/modules/inline-edit/lib/validators.ts +1 -1
- package/src/modules/inline-edit/lib/variants.ts +1 -1
- package/src/modules/router/handler/caller.client.tsx +2 -2
- package/src/modules/router/handler/context.server.ts +4 -4
- package/src/modules/router/handler/init.server.ts +3 -3
- package/src/modules/router/handler/register.server.ts +3 -3
- package/src/modules/router/handler/route.server.ts +3 -3
- package/src/modules/router/lib/query-client.ts +0 -1
- package/src/modules/storage/components/dropzone-context.client.tsx +1 -1
- package/src/modules/storage/components/dropzone.client.tsx +3 -3
- package/src/modules/storage/components/image-grid.client.tsx +23 -19
- package/src/modules/storage/components/upload-button.client.tsx +2 -2
- package/src/modules/storage/components/upload-zone-context.client.tsx +3 -2
- package/src/modules/storage/components/upload-zone.client.tsx +13 -7
- package/src/modules/storage/config/filters.ts +1 -1
- package/src/modules/storage/entry.client.ts +3 -2
- package/src/modules/storage/lib/create-client.server.ts +2 -2
- package/src/modules/storage/lib/create-upload.client.ts +2 -2
- package/src/modules/storage/lib/helpers.ts +3 -3
- package/src/modules/storage/lib/proxy.server.ts +4 -4
- package/src/modules/storage/lib/router.server.ts +5 -5
- package/src/modules/storage/lib/schema.ts +2 -2
- package/src/modules/storage/lib/service.server.ts +21 -21
- package/src/modules/storage/lib/validators.ts +3 -3
- package/src/styles.css +1 -1
- package/dist/modules/commands/menus/data-table-menu.client.mjs.map +0 -1
- package/src/modules/auth/lib/utils.ts +0 -17
- package/src/modules/commands/menus/data-table-menu.client.tsx +0 -46
- package/src/modules/config/db/create-client.ts +0 -40
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Components
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
export * from "./components/combobox.client";
|
|
6
|
+
export * from "./components/combobox-dropdown.client";
|
|
6
7
|
export * from "./components/date-input.client";
|
|
7
8
|
export * from "./components/date-picker.client";
|
|
8
9
|
export * from "./components/date-time.client";
|
|
9
10
|
export * from "./components/editor.client";
|
|
11
|
+
export * from "./components/input.client";
|
|
10
12
|
export * from "./components/input-recipient.client";
|
|
11
13
|
export * from "./components/input-toggle.client";
|
|
12
|
-
export * from "./components/input.client";
|
|
13
14
|
export * from "./components/select.client";
|
|
14
15
|
export * from "./components/switch.client";
|
|
15
16
|
export * from "./components/toggle.client";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import type React from "react";
|
|
4
|
+
import { createContext, useContext } from "react";
|
|
5
|
+
import type { Permission } from "@/modules/auth/lib/permissions";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* InlineEditContext
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { EditorJSONContent } from "@/components/entry";
|
|
4
|
-
import { useLocalIndicator } from "@/lib/entry.client";
|
|
5
|
-
import { useAction } from "@/lib/hooks/use-action";
|
|
6
|
-
import { usePermission } from "@/modules/auth/hooks/use-permission";
|
|
7
|
-
import { Permission } from "@/modules/auth/lib/permissions";
|
|
8
3
|
import { useCallback, useState } from "react";
|
|
9
4
|
import { toast } from "sonner";
|
|
10
5
|
import { useDebouncedCallback } from "use-debounce";
|
|
6
|
+
import type { EditorJSONContent } from "@/components/entry";
|
|
7
|
+
import { useLocalIndicator } from "@/lib/entry.client";
|
|
8
|
+
import { useAction } from "@/lib/hooks/use-action";
|
|
9
|
+
import { usePermission } from "@/modules/auth/hooks/use-permission";
|
|
10
|
+
import type { Permission } from "@/modules/auth/lib/permissions";
|
|
11
11
|
import { useInlineEditContext } from "./context.client";
|
|
12
12
|
|
|
13
13
|
type UpdateStrategy =
|
|
@@ -28,15 +28,15 @@ type MaybeValue<TValue, Required extends boolean> = Required extends true ? TVal
|
|
|
28
28
|
/**
|
|
29
29
|
* Use the inline edit hook options.
|
|
30
30
|
*/
|
|
31
|
-
export type useInlineEditOptions<
|
|
31
|
+
export type useInlineEditOptions<TResult, Required extends boolean = false> = {
|
|
32
32
|
/**
|
|
33
33
|
* Initial value
|
|
34
34
|
*/
|
|
35
|
-
initialValue?: MaybeValue<
|
|
35
|
+
initialValue?: MaybeValue<TResult, Required>;
|
|
36
36
|
/**
|
|
37
37
|
* Action to execute on update
|
|
38
38
|
*/
|
|
39
|
-
action: (value: { id: string; value: MaybeValue<
|
|
39
|
+
action: (value: { id: string; value: MaybeValue<TResult, Required> }) => Promise<unknown>;
|
|
40
40
|
/**
|
|
41
41
|
* Permission required to edit
|
|
42
42
|
*/
|
|
@@ -55,18 +55,40 @@ export type useInlineEditOptions<TValue, Required extends boolean = false> = {
|
|
|
55
55
|
isRequired?: Required;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Inline edit hook props
|
|
60
|
+
*/
|
|
61
|
+
export type UseInlineEditProps<
|
|
62
|
+
TValue extends string | number | Date | boolean | JSON | EditorJSONContent,
|
|
63
|
+
TResult extends string | number | Date | boolean | JSON | EditorJSONContent,
|
|
64
|
+
Required extends boolean = false,
|
|
65
|
+
> = useInlineEditOptions<TResult, Required> & {
|
|
66
|
+
parser: {
|
|
67
|
+
/**
|
|
68
|
+
* Transform the value from the result type to the value type
|
|
69
|
+
*/
|
|
70
|
+
decode: (value: TResult) => TValue;
|
|
71
|
+
/**
|
|
72
|
+
* Transform the value from the value type to the result type
|
|
73
|
+
*/
|
|
74
|
+
encode: (value: TValue) => TResult;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
|
|
58
78
|
/**
|
|
59
79
|
* Use the inline edit hook.
|
|
60
80
|
*/
|
|
61
81
|
export function useInlineEdit<
|
|
62
82
|
TValue extends string | number | Date | boolean | JSON | EditorJSONContent,
|
|
83
|
+
TResult extends string | number | Date | boolean | JSON | EditorJSONContent = TValue,
|
|
63
84
|
Required extends boolean = false,
|
|
64
|
-
>(props:
|
|
85
|
+
>(props: UseInlineEditProps<TValue, TResult, Required>) {
|
|
65
86
|
/**
|
|
66
87
|
* The update strategy.
|
|
67
88
|
*/
|
|
68
89
|
const strategy = props.updateStrategy ?? defaultUpdateStrategy;
|
|
69
90
|
const delay = strategy.mode === "change" ? (strategy.delay ?? 0) : 0;
|
|
91
|
+
const initialValue = props.parser.decode(props.initialValue as TResult) ?? undefined;
|
|
70
92
|
|
|
71
93
|
/**
|
|
72
94
|
* The inline edit context.
|
|
@@ -76,7 +98,7 @@ export function useInlineEdit<
|
|
|
76
98
|
/**
|
|
77
99
|
* The current value of the inline edit.
|
|
78
100
|
*/
|
|
79
|
-
const [value, setValue] = useState<MaybeValue<TValue, Required> | undefined>(
|
|
101
|
+
const [value, setValue] = useState<MaybeValue<TValue, Required> | undefined>(initialValue);
|
|
80
102
|
|
|
81
103
|
/**
|
|
82
104
|
* The indicator status.
|
|
@@ -101,7 +123,7 @@ export function useInlineEdit<
|
|
|
101
123
|
setStatus("success");
|
|
102
124
|
},
|
|
103
125
|
onError: (error) => {
|
|
104
|
-
setValue(
|
|
126
|
+
setValue(initialValue);
|
|
105
127
|
toast.error("Er is iets misgegaan", {
|
|
106
128
|
description: error instanceof Error ? error.message : undefined,
|
|
107
129
|
});
|
|
@@ -112,7 +134,7 @@ export function useInlineEdit<
|
|
|
112
134
|
* Handle instant mutate
|
|
113
135
|
*/
|
|
114
136
|
const handleMutateInstant = useCallback(
|
|
115
|
-
(
|
|
137
|
+
(input: TValue) => {
|
|
116
138
|
// Permission guard
|
|
117
139
|
if (!isAllowed) {
|
|
118
140
|
toast.error("Je hebt geen toestemming om dit te bewerken");
|
|
@@ -120,12 +142,14 @@ export function useInlineEdit<
|
|
|
120
142
|
}
|
|
121
143
|
|
|
122
144
|
// If the value is the same as the initial value, do nothing
|
|
123
|
-
if (
|
|
145
|
+
if (input === initialValue) return;
|
|
146
|
+
|
|
147
|
+
const value = props.parser.encode(input as TValue);
|
|
124
148
|
|
|
125
149
|
// Update the value
|
|
126
150
|
return mutation.mutate({ id: context.id, value });
|
|
127
151
|
},
|
|
128
|
-
[isAllowed,
|
|
152
|
+
[isAllowed, initialValue, mutation, context.id, props.parser],
|
|
129
153
|
);
|
|
130
154
|
|
|
131
155
|
/**
|
|
@@ -145,14 +169,14 @@ export function useInlineEdit<
|
|
|
145
169
|
|
|
146
170
|
// If it is required and the value is null or empty, reset to initial value
|
|
147
171
|
if (props.isRequired && next === null) {
|
|
148
|
-
setValue(
|
|
172
|
+
setValue(initialValue ?? undefined);
|
|
149
173
|
setStatus("error");
|
|
150
174
|
toast.error("Dit veld is verplicht");
|
|
151
175
|
return;
|
|
152
176
|
}
|
|
153
177
|
|
|
154
178
|
// If the strategy is change, update the value after the delay
|
|
155
|
-
handleMutateDebounced(next as
|
|
179
|
+
handleMutateDebounced(next as TValue);
|
|
156
180
|
}
|
|
157
181
|
|
|
158
182
|
/**
|
|
@@ -167,14 +191,14 @@ export function useInlineEdit<
|
|
|
167
191
|
|
|
168
192
|
// If it is required and the value is null or empty, reset to initial value
|
|
169
193
|
if (props.isRequired && next === null) {
|
|
170
|
-
setValue(
|
|
194
|
+
setValue(initialValue ?? undefined);
|
|
171
195
|
setStatus("error");
|
|
172
196
|
toast.error("Dit veld is verplicht");
|
|
173
197
|
return;
|
|
174
198
|
}
|
|
175
199
|
|
|
176
200
|
// If the strategy is blur, update the value
|
|
177
|
-
handleMutateInstant(next as
|
|
201
|
+
handleMutateInstant(next as TValue);
|
|
178
202
|
}
|
|
179
203
|
|
|
180
204
|
return { value, setValue, handleChange, handleBlur, status, isAllowed };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// export function defaultParser<
|
|
2
|
+
// TValue extends string | number | Date | boolean | JSON | EditorJSONContent,
|
|
3
|
+
// TResult extends string | number | Date | boolean | JSON | EditorJSONContent,
|
|
4
|
+
// >() {
|
|
5
|
+
// return {
|
|
6
|
+
// decode: <>(value: TResult) => value as unknown as TValue,
|
|
7
|
+
// encode: (value: TValue) => value as unknown as TResult,
|
|
8
|
+
// };
|
|
9
|
+
// }
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { createORPCClient } from "@orpc/client";
|
|
4
4
|
import { RPCLink } from "@orpc/client/fetch";
|
|
5
|
-
import { AnyRouter, RouterClient as ORPCRouterClient } from "@orpc/server";
|
|
5
|
+
import type { AnyRouter, RouterClient as ORPCRouterClient } from "@orpc/server";
|
|
6
6
|
import { createTanstackQueryUtils } from "@orpc/tanstack-query";
|
|
7
|
-
import { RouterClient } from "./register.server";
|
|
7
|
+
import type { RouterClient } from "./register.server";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Create a new RPC link
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import "server-cli-only";
|
|
2
2
|
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
-
|
|
5
|
-
import { type TDatabaseSchema } from "@/modules/config/db/types";
|
|
6
|
-
import { TulipContext } from "@/modules/config/entry";
|
|
7
3
|
import { headers as headersList } from "next/headers";
|
|
8
4
|
import { cache } from "react";
|
|
5
|
+
import type { TDatabaseSchema } from "@/modules/config/db/types";
|
|
6
|
+
import type { TulipContext } from "@/modules/config/entry";
|
|
9
7
|
|
|
10
8
|
/**
|
|
11
9
|
* Create the router context
|
|
@@ -19,10 +17,12 @@ export const createRPCContext = cache(
|
|
|
19
17
|
},
|
|
20
18
|
);
|
|
21
19
|
|
|
20
|
+
// biome-ignore lint/suspicious/noExplicitAny: This is needed to satisfy the system
|
|
22
21
|
export type RPCContext<TSchema extends TDatabaseSchema = any> = Awaited<
|
|
23
22
|
ReturnType<typeof createRPCContext<TSchema>>
|
|
24
23
|
>;
|
|
25
24
|
|
|
25
|
+
// biome-ignore lint/suspicious/noExplicitAny: This is needed to satisfy the system
|
|
26
26
|
export type ProtectedRPCContext<TSchema extends TDatabaseSchema = any> = RPCContext<TSchema> & {
|
|
27
27
|
session: NonNullable<RPCContext<TSchema>["session"]>;
|
|
28
28
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "server-cli-only";
|
|
2
2
|
|
|
3
|
-
import { Permission } from "@/modules/auth/lib/permissions";
|
|
4
|
-
import { TDatabaseSchema } from "@/modules/config/db/types";
|
|
5
3
|
import { os } from "@orpc/server";
|
|
4
|
+
import type { Permission } from "@/modules/auth/lib/permissions";
|
|
5
|
+
import type { TDatabaseSchema } from "@/modules/config/db/types";
|
|
6
6
|
import { ServerError } from "../lib/error.server";
|
|
7
|
-
import { ProtectedRPCContext, RPCContext } from "./context.server";
|
|
7
|
+
import type { ProtectedRPCContext, RPCContext } from "./context.server";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Initialize TRPC
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/** biome-ignore-all lint/suspicious/noExplicitAny: This is needed to satisfy the system */
|
|
2
2
|
|
|
3
|
-
import { AnyRouter, RouterClient as ORPCRouterClient } from "@orpc/server";
|
|
4
|
-
import { createTanstackQueryUtils, RouterUtils } from "@orpc/tanstack-query";
|
|
3
|
+
import type { AnyRouter, RouterClient as ORPCRouterClient } from "@orpc/server";
|
|
4
|
+
import { createTanstackQueryUtils, type RouterUtils } from "@orpc/tanstack-query";
|
|
5
5
|
|
|
6
6
|
export type RouterClient<TRouter extends AnyRouter> = RouterUtils<ORPCRouterClient<TRouter>>;
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TDatabaseSchema } from "@/modules/config/db/types";
|
|
2
|
-
import { TulipContext } from "@/modules/config/lib/context";
|
|
3
1
|
import { onError } from "@orpc/client";
|
|
4
|
-
import { AnyRouter } from "@orpc/server";
|
|
2
|
+
import type { AnyRouter } from "@orpc/server";
|
|
5
3
|
import { RPCHandler } from "@orpc/server/fetch";
|
|
4
|
+
import type { TDatabaseSchema } from "@/modules/config/db/types";
|
|
5
|
+
import type { TulipContext } from "@/modules/config/lib/context";
|
|
6
6
|
import { createRPCContext } from "./context.server";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Button } from "@/components/ui/button";
|
|
4
|
-
import { cn } from "@/lib/utils/cn";
|
|
5
|
-
import { renderBytes } from "@/modules/storage/lib/helpers";
|
|
6
3
|
import { UploadIcon } from "lucide-react";
|
|
7
4
|
import type { ReactNode } from "react";
|
|
8
5
|
import type { DropEvent, DropzoneOptions, FileRejection } from "react-dropzone";
|
|
9
6
|
import { useDropzone } from "react-dropzone";
|
|
7
|
+
import { Button } from "@/components/ui/button";
|
|
8
|
+
import { cn } from "@/lib/utils/cn";
|
|
9
|
+
import { renderBytes } from "@/modules/storage/lib/helpers";
|
|
10
10
|
import { DropzoneContext, useDropzoneContext } from "./dropzone-context.client";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { Icons } from "@/components/common/icons";
|
|
4
|
-
import { Button } from "@/components/ui/button";
|
|
5
|
-
import { Card } from "@/components/ui/card";
|
|
6
|
-
import {
|
|
7
|
-
Carousel,
|
|
8
|
-
CarouselContent,
|
|
9
|
-
CarouselItem,
|
|
10
|
-
CarouselNext,
|
|
11
|
-
CarouselPrevious,
|
|
12
|
-
} from "@/components/ui/carousel";
|
|
13
|
-
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog.client";
|
|
14
|
-
import { Input } from "@/components/ui/input";
|
|
15
|
-
import { Skeleton } from "@/components/ui/skeleton";
|
|
16
|
-
import { useAction } from "@/lib/entry.client";
|
|
17
|
-
import { cn } from "@/lib/utils/cn";
|
|
18
3
|
import {
|
|
19
4
|
closestCenter,
|
|
20
5
|
DndContext,
|
|
21
|
-
DragEndEvent,
|
|
6
|
+
type DragEndEvent,
|
|
22
7
|
KeyboardSensor,
|
|
23
8
|
PointerSensor,
|
|
24
9
|
useDroppable,
|
|
@@ -34,9 +19,24 @@ import {
|
|
|
34
19
|
import { CSS } from "@dnd-kit/utilities";
|
|
35
20
|
import { GripIcon, UploadIcon } from "lucide-react";
|
|
36
21
|
import Image from "next/image";
|
|
37
|
-
import React, { ComponentProps } from "react";
|
|
22
|
+
import React, { type ComponentProps } from "react";
|
|
23
|
+
import { Icons } from "@/components/common/icons";
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
|
+
import { Card } from "@/components/ui/card";
|
|
26
|
+
import {
|
|
27
|
+
Carousel,
|
|
28
|
+
CarouselContent,
|
|
29
|
+
CarouselItem,
|
|
30
|
+
CarouselNext,
|
|
31
|
+
CarouselPrevious,
|
|
32
|
+
} from "@/components/ui/carousel";
|
|
33
|
+
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog.client";
|
|
34
|
+
import { Input } from "@/components/ui/input";
|
|
35
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
36
|
+
import { useAction } from "@/lib/entry.client";
|
|
37
|
+
import { cn } from "@/lib/utils/cn";
|
|
38
38
|
import { getFileUrl, imageLoader } from "../lib/helpers";
|
|
39
|
-
import { FileNode } from "../lib/validators";
|
|
39
|
+
import type { FileNode } from "../lib/validators";
|
|
40
40
|
import { useUploadZone } from "./upload-zone-context.client";
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -106,9 +106,13 @@ export function ImageGrid({ nodes, moveAction, optimistic, disabled, ...props }:
|
|
|
106
106
|
))}
|
|
107
107
|
|
|
108
108
|
{!disabled && (
|
|
109
|
-
<label
|
|
109
|
+
<label
|
|
110
|
+
htmlFor="file-upload"
|
|
111
|
+
className="border-muted-foreground bg-muted hover:border-primary relative flex aspect-square w-full cursor-pointer flex-col items-center justify-center rounded-lg border border-dashed"
|
|
112
|
+
>
|
|
110
113
|
<UploadIcon className="h-8 w-8" />
|
|
111
114
|
<Input
|
|
115
|
+
id="file-upload"
|
|
112
116
|
type="file"
|
|
113
117
|
accept="image/jpeg, image/png, image/webp, image/gif"
|
|
114
118
|
className="absolute inset-0 z-10 h-full w-full cursor-pointer opacity-0"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { UploadIcon } from "lucide-react";
|
|
4
|
+
import type { ComponentProps } from "react";
|
|
3
5
|
import { Button } from "@/components/ui/button";
|
|
4
6
|
import { Input } from "@/components/ui/input";
|
|
5
7
|
import { cn } from "@/lib/utils/cn";
|
|
6
|
-
import { UploadIcon } from "lucide-react";
|
|
7
|
-
import { ComponentProps } from "react";
|
|
8
8
|
import { useUploadZone } from "./upload-zone-context.client";
|
|
9
9
|
|
|
10
10
|
export function UploadButton({ className, ...props }: ComponentProps<typeof Button>) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { UploadClient } from "../lib/create-upload.client";
|
|
5
|
-
import { FileNode, Node } from "../lib/validators";
|
|
4
|
+
import type { UploadClient } from "../lib/create-upload.client";
|
|
5
|
+
import type { FileNode, Node } from "../lib/validators";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Upload Zone Context Value
|
|
@@ -17,6 +17,7 @@ export type UploadZoneContextValue = {
|
|
|
17
17
|
invalidate?: () => Promise<void> | void;
|
|
18
18
|
cancel?: () => Promise<void> | void;
|
|
19
19
|
};
|
|
20
|
+
disabled?: boolean;
|
|
20
21
|
// updateData: (newValue: FileNode[] | ((oldValue: FileNode[]) => FileNode[])) => Promise<void>;
|
|
21
22
|
// invalidateQuery: () => Promise<void> | void;
|
|
22
23
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { type ComponentProps, useCallback } from "react";
|
|
4
|
+
import { useDropzone } from "react-dropzone";
|
|
3
5
|
import { toast } from "@/components/ui/sonner.client";
|
|
4
6
|
import { useAction } from "@/lib/hooks/use-action";
|
|
5
7
|
import { cn } from "@/lib/utils/cn";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { FileNode, Node, UploadFileSchema } from "../lib/validators";
|
|
10
|
-
import { UploadZoneContext, UploadZoneContextValue } from "./upload-zone-context.client";
|
|
8
|
+
import type { UploadFileRequest, UploadHooks } from "../lib/create-upload.client";
|
|
9
|
+
import type { FileNode, Node, UploadFileSchema } from "../lib/validators";
|
|
10
|
+
import { UploadZoneContext, type UploadZoneContextValue } from "./upload-zone-context.client";
|
|
11
11
|
|
|
12
12
|
export type UploadZoneProps = ComponentProps<"div"> &
|
|
13
|
-
Pick<UploadZoneContextValue, "optimistic" | "uploadClient"> & {
|
|
13
|
+
Pick<UploadZoneContextValue, "optimistic" | "uploadClient" | "disabled"> & {
|
|
14
14
|
variables: Pick<UploadFileSchema, "namespace" | "parentId" | "mode" | "hidden" | "readonly">;
|
|
15
15
|
uploadHooks?: UploadHooks;
|
|
16
16
|
|
|
@@ -25,6 +25,7 @@ export function UploadZone({
|
|
|
25
25
|
uploadHooks,
|
|
26
26
|
onUploadCompleted,
|
|
27
27
|
onUploadFailed,
|
|
28
|
+
disabled = false,
|
|
28
29
|
children,
|
|
29
30
|
className,
|
|
30
31
|
...props
|
|
@@ -106,7 +107,11 @@ export function UploadZone({
|
|
|
106
107
|
[onUpload],
|
|
107
108
|
);
|
|
108
109
|
|
|
109
|
-
const { getRootProps, getInputProps, isDragActive } = useDropzone({
|
|
110
|
+
const { getRootProps, getInputProps, isDragActive } = useDropzone({
|
|
111
|
+
onDrop,
|
|
112
|
+
noClick: true,
|
|
113
|
+
disabled,
|
|
114
|
+
});
|
|
110
115
|
|
|
111
116
|
return (
|
|
112
117
|
<div {...props} {...getRootProps()} className={cn("relative z-0", className)}>
|
|
@@ -123,6 +128,7 @@ export function UploadZone({
|
|
|
123
128
|
onUpload,
|
|
124
129
|
onRemove: deleteMutation.mutateAsync,
|
|
125
130
|
optimistic,
|
|
131
|
+
disabled,
|
|
126
132
|
}}
|
|
127
133
|
>
|
|
128
134
|
{children}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import z from "zod";
|
|
1
2
|
import { createTableFilters } from "@/modules/data-tables/lib/filters/config";
|
|
2
3
|
import { parseFilterArray, parseFilterBoolean } from "@/modules/data-tables/lib/filters/parsers";
|
|
3
|
-
import z from "zod";
|
|
4
4
|
import { nodeTypeEnum } from "../lib/schema";
|
|
5
5
|
|
|
6
6
|
export const nodesTableFilters = createTableFilters({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Components
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
export * from "./components/dropzone.client";
|
|
6
|
+
export * from "./components/dropzone-context.client";
|
|
6
7
|
export * from "./components/image-grid.client";
|
|
7
|
-
export * from "./components/upload-zone-context.client";
|
|
8
8
|
export * from "./components/upload-zone.client";
|
|
9
|
+
export * from "./components/upload-zone-context.client";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Lib
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "server-cli-only";
|
|
2
2
|
|
|
3
|
-
import { TDatabaseSchema } from "@/modules/config/entry";
|
|
4
|
-
import { StorageService, StorageServiceConfig } from "./service.server";
|
|
3
|
+
import type { TDatabaseSchema } from "@/modules/config/entry";
|
|
4
|
+
import { StorageService, type StorageServiceConfig } from "./service.server";
|
|
5
5
|
|
|
6
6
|
export function createStorageClient<TSchema extends TDatabaseSchema>(
|
|
7
7
|
props: StorageServiceConfig<TSchema>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateDefaultUUID } from "@/modules/config/entry";
|
|
2
|
-
import { BulkActionSchema } from "@/modules/router/entry";
|
|
3
|
-
import { PresignFileSchema, SelectNodeSchema, UpdateNodeSchema } from "./validators";
|
|
2
|
+
import type { BulkActionSchema } from "@/modules/router/entry";
|
|
3
|
+
import type { PresignFileSchema, SelectNodeSchema, UpdateNodeSchema } from "./validators";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Upload request
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ImageLoaderProps } from "next/image";
|
|
2
|
-
import { ImageVariant } from "./constants";
|
|
3
|
-
import { CreateNodeSchema, GetFileURLSchema, Node } from "./validators";
|
|
1
|
+
import type { ImageLoaderProps } from "next/image";
|
|
2
|
+
import type { ImageVariant } from "./constants";
|
|
3
|
+
import type { CreateNodeSchema, GetFileURLSchema, Node } from "./validators";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Check if the node is a file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "server-cli-only";
|
|
2
2
|
|
|
3
|
-
import { getSession } from "@/modules/auth/entry.server";
|
|
4
|
-
import { TulipContext } from "@/modules/config/entry";
|
|
5
3
|
import { eq } from "drizzle-orm";
|
|
6
|
-
import { connection, NextRequest } from "next/server";
|
|
7
|
-
import {
|
|
4
|
+
import { connection, type NextRequest } from "next/server";
|
|
5
|
+
import { getSession } from "@/modules/auth/entry.server";
|
|
6
|
+
import type { TulipContext } from "@/modules/config/entry";
|
|
7
|
+
import { type DriveSchema, nodes } from "./schema";
|
|
8
8
|
import { getFileURLSchema } from "./validators";
|
|
9
9
|
|
|
10
10
|
type CreateDriveProxyRouteProps<TSchema extends DriveSchema> = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { and, eq, sql } from "drizzle-orm";
|
|
2
|
+
import type { QueryResult } from "pg";
|
|
3
|
+
import { z } from "zod";
|
|
1
4
|
import { bulkActionSchema } from "@/modules/router/entry";
|
|
2
5
|
import { ServerError } from "@/modules/router/entry.server";
|
|
3
6
|
import { initRPC } from "@/modules/router/handler/init.server";
|
|
4
|
-
import { and, eq, sql } from "drizzle-orm";
|
|
5
|
-
import { QueryResult } from "pg";
|
|
6
|
-
import { z } from "zod";
|
|
7
7
|
import { isFolder } from "./helpers";
|
|
8
|
-
import { DriveSchema, nodes } from "./schema";
|
|
8
|
+
import { type DriveSchema, nodes } from "./schema";
|
|
9
9
|
import {
|
|
10
10
|
createFolderNodeSchema,
|
|
11
11
|
getFileURLSchema,
|
|
12
12
|
getNodesByParentIdSchema,
|
|
13
|
-
Node,
|
|
13
|
+
type Node,
|
|
14
14
|
presignFileSchema,
|
|
15
15
|
selectNodeSchema,
|
|
16
16
|
selectNodeWithChildrenSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { relations } from "drizzle-orm";
|
|
2
|
+
import { type AnyPgColumn, boolean, pgEnum, pgTable, unique } from "drizzle-orm/pg-core";
|
|
1
3
|
import { users } from "@/modules/auth/db/schema";
|
|
2
4
|
import { baseColumns } from "@/modules/config/db/helpers";
|
|
3
|
-
import { relations } from "drizzle-orm";
|
|
4
|
-
import { AnyPgColumn, boolean, pgEnum, pgTable, unique } from "drizzle-orm/pg-core";
|
|
5
5
|
import { imageDispositions, imageVariants } from "./constants";
|
|
6
6
|
import { nodeSubtypes } from "./helpers";
|
|
7
7
|
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { BUCKET_NAME } from "@/lib/config/constants";
|
|
2
|
-
import { generateDefaultUUID, TDatabaseSchema } from "@/modules/config/entry";
|
|
3
|
-
import { DatabaseClient } from "@/modules/config/entry.server";
|
|
4
|
-
import {
|
|
5
|
-
convertOrderByToQueryParams,
|
|
6
|
-
convertSearchToQueryParams,
|
|
7
|
-
} from "@/modules/data-tables/entry.server";
|
|
8
|
-
import { BulkActionSchema } from "@/modules/router/entry";
|
|
9
|
-
import { ServerError } from "@/modules/router/lib/error.server";
|
|
10
1
|
import {
|
|
11
2
|
DeleteObjectsCommand,
|
|
12
3
|
GetObjectCommand,
|
|
13
4
|
PutObjectCommand,
|
|
14
5
|
S3Client,
|
|
15
|
-
S3ClientConfig,
|
|
6
|
+
type S3ClientConfig,
|
|
16
7
|
} from "@aws-sdk/client-s3";
|
|
17
8
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
18
9
|
import { addSeconds } from "date-fns";
|
|
19
|
-
import { and, asc, eq, inArray, isNotNull, isNull, SQL } from "drizzle-orm";
|
|
10
|
+
import { and, asc, eq, inArray, isNotNull, isNull, type SQL } from "drizzle-orm";
|
|
20
11
|
import { after } from "next/server";
|
|
12
|
+
import { BUCKET_NAME } from "@/lib/config/constants";
|
|
13
|
+
import { generateDefaultUUID, type TDatabaseSchema } from "@/modules/config/entry";
|
|
14
|
+
import type { DatabaseClient } from "@/modules/config/entry.server";
|
|
15
|
+
import {
|
|
16
|
+
convertOrderByToQueryParams,
|
|
17
|
+
convertSearchToQueryParams,
|
|
18
|
+
} from "@/modules/data-tables/entry.server";
|
|
19
|
+
import type { BulkActionSchema } from "@/modules/router/entry";
|
|
20
|
+
import { ServerError } from "@/modules/router/lib/error.server";
|
|
21
21
|
import { deviceSizes } from "./constants";
|
|
22
22
|
import { getDriveBucketKey, inferNodeSubtype, isFile, isFolder } from "./helpers";
|
|
23
23
|
import { nodePresignedUrls, nodes, nodeVariants } from "./schema";
|
|
24
24
|
import {
|
|
25
|
-
CreateFolderNodeSchema,
|
|
26
|
-
FileNode,
|
|
27
|
-
GetFileURLSchema,
|
|
25
|
+
type CreateFolderNodeSchema,
|
|
26
|
+
type FileNode,
|
|
27
|
+
type GetFileURLSchema,
|
|
28
|
+
type GetNodesByParentIdInput,
|
|
29
|
+
type GetObjectInput,
|
|
28
30
|
getFileURLSchemaDefaults,
|
|
29
|
-
GetNodesByParentIdInput,
|
|
30
|
-
GetObjectInput,
|
|
31
31
|
getObjectSchema,
|
|
32
|
-
Node,
|
|
33
|
-
PresignFileSchema,
|
|
34
|
-
PutObjectInput,
|
|
32
|
+
type Node,
|
|
33
|
+
type PresignFileSchema,
|
|
34
|
+
type PutObjectInput,
|
|
35
35
|
putObjectSchema,
|
|
36
|
-
UpdateNodeSchema,
|
|
37
|
-
UploadFileSchema,
|
|
36
|
+
type UpdateNodeSchema,
|
|
37
|
+
type UploadFileSchema,
|
|
38
38
|
} from "./validators";
|
|
39
39
|
|
|
40
40
|
/**
|