@datum-cloud/datum-ui 0.1.1 → 0.2.0-alpha.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/_shadcn/hooks/use-mobile.d.ts +2 -0
- package/dist/_shadcn/hooks/use-mobile.d.ts.map +1 -0
- package/dist/_shadcn/hooks/use-theme.d.ts +9 -0
- package/dist/_shadcn/hooks/use-theme.d.ts.map +1 -0
- package/dist/_shadcn/lib/utils.d.ts +13 -0
- package/dist/_shadcn/lib/utils.d.ts.map +1 -0
- package/dist/_shadcn/ui/alert.d.ts +9 -0
- package/dist/_shadcn/ui/alert.d.ts.map +1 -0
- package/dist/_shadcn/ui/avatar.d.ts +7 -0
- package/dist/_shadcn/ui/avatar.d.ts.map +1 -0
- package/dist/_shadcn/ui/badge.d.ts +15 -0
- package/dist/_shadcn/ui/badge.d.ts.map +1 -0
- package/dist/_shadcn/ui/breadcrumb.d.ts +12 -0
- package/dist/_shadcn/ui/breadcrumb.d.ts.map +1 -0
- package/dist/_shadcn/ui/button-group.d.ts +12 -0
- package/dist/_shadcn/ui/button-group.d.ts.map +1 -0
- package/dist/_shadcn/ui/button.d.ts +17 -0
- package/dist/_shadcn/ui/button.d.ts.map +1 -0
- package/dist/_shadcn/ui/card.d.ts +9 -0
- package/dist/_shadcn/ui/card.d.ts.map +1 -0
- package/dist/_shadcn/ui/chart.d.ts +53 -0
- package/dist/_shadcn/ui/chart.d.ts.map +1 -0
- package/dist/_shadcn/ui/checkbox.d.ts +5 -0
- package/dist/_shadcn/ui/checkbox.d.ts.map +1 -0
- package/dist/_shadcn/ui/collapsible.d.ts +6 -0
- package/dist/_shadcn/ui/collapsible.d.ts.map +1 -0
- package/dist/_shadcn/ui/command.d.ts +20 -0
- package/dist/_shadcn/ui/command.d.ts.map +1 -0
- package/dist/_shadcn/ui/dialog.d.ts +14 -0
- package/dist/_shadcn/ui/dialog.d.ts.map +1 -0
- package/dist/_shadcn/ui/dropdown-menu.d.ts +33 -0
- package/dist/_shadcn/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/_shadcn/ui/hover-card.d.ts +7 -0
- package/dist/_shadcn/ui/hover-card.d.ts.map +1 -0
- package/dist/_shadcn/ui/input-group.d.ts +17 -0
- package/dist/_shadcn/ui/input-group.d.ts.map +1 -0
- package/dist/_shadcn/ui/input.d.ts +7 -0
- package/dist/_shadcn/ui/input.d.ts.map +1 -0
- package/dist/_shadcn/ui/label.d.ts +5 -0
- package/dist/_shadcn/ui/label.d.ts.map +1 -0
- package/dist/_shadcn/ui/map.d.ts +120 -0
- package/dist/_shadcn/ui/map.d.ts.map +1 -0
- package/dist/_shadcn/ui/place-autocomplete.d.ts +64 -0
- package/dist/_shadcn/ui/place-autocomplete.d.ts.map +1 -0
- package/dist/_shadcn/ui/popover.d.ts +8 -0
- package/dist/_shadcn/ui/popover.d.ts.map +1 -0
- package/dist/_shadcn/ui/radio-group.d.ts +6 -0
- package/dist/_shadcn/ui/radio-group.d.ts.map +1 -0
- package/dist/_shadcn/ui/select.d.ts +14 -0
- package/dist/_shadcn/ui/select.d.ts.map +1 -0
- package/dist/_shadcn/ui/separator.d.ts +5 -0
- package/dist/_shadcn/ui/separator.d.ts.map +1 -0
- package/dist/_shadcn/ui/sheet.d.ts +14 -0
- package/dist/_shadcn/ui/sheet.d.ts.map +1 -0
- package/dist/_shadcn/ui/skeleton.d.ts +3 -0
- package/dist/_shadcn/ui/skeleton.d.ts.map +1 -0
- package/dist/_shadcn/ui/sonner.d.ts +5 -0
- package/dist/_shadcn/ui/sonner.d.ts.map +1 -0
- package/dist/_shadcn/ui/spinner.d.ts +3 -0
- package/dist/_shadcn/ui/spinner.d.ts.map +1 -0
- package/dist/_shadcn/ui/switch.d.ts +5 -0
- package/dist/_shadcn/ui/switch.d.ts.map +1 -0
- package/dist/_shadcn/ui/table.d.ts +11 -0
- package/dist/_shadcn/ui/table.d.ts.map +1 -0
- package/dist/_shadcn/ui/tabs.d.ts +13 -0
- package/dist/_shadcn/ui/tabs.d.ts.map +1 -0
- package/dist/_shadcn/ui/textarea.d.ts +4 -0
- package/dist/_shadcn/ui/textarea.d.ts.map +1 -0
- package/dist/_shadcn/ui/tooltip.d.ts +8 -0
- package/dist/_shadcn/ui/tooltip.d.ts.map +1 -0
- package/dist/_shadcn/ui/visuallyhidden.d.ts +4 -0
- package/dist/_shadcn/ui/visuallyhidden.d.ts.map +1 -0
- package/dist/close.icon-chkXPAUC.mjs +22 -0
- package/dist/cn-DWCc1QRE.mjs +10 -0
- package/dist/components/base/alert/alert.d.ts +21 -0
- package/dist/components/base/alert/alert.d.ts.map +1 -0
- package/dist/components/base/alert/index.d.ts +2 -0
- package/dist/components/base/alert/index.d.ts.map +1 -0
- package/dist/components/base/badge/badge.d.ts +17 -0
- package/dist/components/base/badge/badge.d.ts.map +1 -0
- package/dist/components/base/badge/index.d.ts +2 -0
- package/dist/components/base/badge/index.d.ts.map +1 -0
- package/dist/components/base/breadcrumb/index.d.ts +2 -0
- package/dist/components/base/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/base/button/button.d.ts +24 -0
- package/dist/components/base/button/button.d.ts.map +1 -0
- package/dist/components/base/button/index.d.ts +5 -0
- package/dist/components/base/button/index.d.ts.map +1 -0
- package/dist/components/base/button/link-button.d.ts +19 -0
- package/dist/components/base/button/link-button.d.ts.map +1 -0
- package/dist/components/base/button-group/index.d.ts +2 -0
- package/dist/components/base/button-group/index.d.ts.map +1 -0
- package/dist/components/base/calendar/calendar.d.ts +10 -0
- package/dist/components/base/calendar/calendar.d.ts.map +1 -0
- package/dist/components/base/calendar/index.d.ts +2 -0
- package/dist/components/base/calendar/index.d.ts.map +1 -0
- package/dist/components/base/card/card.d.ts +8 -0
- package/dist/components/base/card/card.d.ts.map +1 -0
- package/dist/components/base/card/index.d.ts +2 -0
- package/dist/components/base/card/index.d.ts.map +1 -0
- package/dist/components/base/chart/index.d.ts +2 -0
- package/dist/components/base/chart/index.d.ts.map +1 -0
- package/dist/components/base/checkbox/checkbox.d.ts +10 -0
- package/dist/components/base/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/base/checkbox/index.d.ts +2 -0
- package/dist/components/base/checkbox/index.d.ts.map +1 -0
- package/dist/components/base/collapsible/index.d.ts +2 -0
- package/dist/components/base/collapsible/index.d.ts.map +1 -0
- package/dist/components/base/command/index.d.ts +2 -0
- package/dist/components/base/command/index.d.ts.map +1 -0
- package/dist/components/base/dialog/dialog.d.ts +46 -0
- package/dist/components/base/dialog/dialog.d.ts.map +1 -0
- package/dist/components/base/dialog/index.d.ts +3 -0
- package/dist/components/base/dialog/index.d.ts.map +1 -0
- package/dist/components/base/hover-card/index.d.ts +2 -0
- package/dist/components/base/hover-card/index.d.ts.map +1 -0
- package/dist/components/base/index.d.ts +35 -0
- package/dist/components/base/index.d.ts.map +1 -0
- package/dist/components/base/input/index.d.ts +2 -0
- package/dist/components/base/input/index.d.ts.map +1 -0
- package/dist/components/base/input/input.d.ts +9 -0
- package/dist/components/base/input/input.d.ts.map +1 -0
- package/dist/components/base/input-group/index.d.ts +2 -0
- package/dist/components/base/input-group/index.d.ts.map +1 -0
- package/dist/components/base/label/index.d.ts +17 -0
- package/dist/components/base/label/index.d.ts.map +1 -0
- package/dist/components/base/label/label.d.ts +26 -0
- package/dist/components/base/label/label.d.ts.map +1 -0
- package/dist/components/base/map/index.d.ts +2 -0
- package/dist/components/base/map/index.d.ts.map +1 -0
- package/dist/components/base/place-autocomplete/index.d.ts +2 -0
- package/dist/components/base/place-autocomplete/index.d.ts.map +1 -0
- package/dist/components/base/popover/index.d.ts +2 -0
- package/dist/components/base/popover/index.d.ts.map +1 -0
- package/dist/components/base/radio-group/index.d.ts +2 -0
- package/dist/components/base/radio-group/index.d.ts.map +1 -0
- package/dist/components/base/radio-group/radio-group.d.ts +16 -0
- package/dist/components/base/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/base/select/index.d.ts +2 -0
- package/dist/components/base/select/index.d.ts.map +1 -0
- package/dist/components/base/select/select.d.ts +54 -0
- package/dist/components/base/select/select.d.ts.map +1 -0
- package/dist/components/base/separator/index.d.ts +2 -0
- package/dist/components/base/separator/index.d.ts.map +1 -0
- package/dist/components/base/sheet/index.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts.map +1 -0
- package/dist/components/base/sheet/sheet.d.ts +23 -0
- package/dist/components/base/sheet/sheet.d.ts.map +1 -0
- package/dist/components/base/skeleton/index.d.ts +2 -0
- package/dist/components/base/skeleton/index.d.ts.map +1 -0
- package/dist/components/base/spinner/index.d.ts +2 -0
- package/dist/components/base/spinner/index.d.ts.map +1 -0
- package/dist/components/base/switch/index.d.ts +2 -0
- package/dist/components/base/switch/index.d.ts.map +1 -0
- package/dist/components/base/switch/switch.d.ts +10 -0
- package/dist/components/base/switch/switch.d.ts.map +1 -0
- package/dist/components/base/table/index.d.ts +2 -0
- package/dist/components/base/table/index.d.ts.map +1 -0
- package/dist/components/base/tabs/index.d.ts +2 -0
- package/dist/components/base/tabs/index.d.ts.map +1 -0
- package/dist/components/base/tabs/tabs.d.ts +22 -0
- package/dist/components/base/tabs/tabs.d.ts.map +1 -0
- package/dist/components/base/textarea/index.d.ts +2 -0
- package/dist/components/base/textarea/index.d.ts.map +1 -0
- package/dist/components/base/textarea/textarea.d.ts +9 -0
- package/dist/components/base/textarea/textarea.d.ts.map +1 -0
- package/dist/components/base/tooltip/index.d.ts +2 -0
- package/dist/components/base/tooltip/index.d.ts.map +1 -0
- package/dist/components/base/tooltip/tooltip.d.ts +17 -0
- package/dist/components/base/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/base/visuallyhidden/index.d.ts +2 -0
- package/dist/components/base/visuallyhidden/index.d.ts.map +1 -0
- package/dist/components/features/autocomplete/autocomplete.d.ts +34 -0
- package/dist/components/features/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/components/features/autocomplete/autocomplete.types.d.ts +71 -0
- package/dist/components/features/autocomplete/autocomplete.types.d.ts.map +1 -0
- package/dist/components/features/autocomplete/index.d.ts +3 -0
- package/dist/components/features/autocomplete/index.d.ts.map +1 -0
- package/dist/components/features/avatar-stack/avatar-stack.d.ts +17 -0
- package/dist/components/features/avatar-stack/avatar-stack.d.ts.map +1 -0
- package/dist/components/features/avatar-stack/index.d.ts +2 -0
- package/dist/components/features/avatar-stack/index.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +41 -0
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/index.d.ts +2 -0
- package/dist/components/features/calendar-date-picker/index.d.ts.map +1 -0
- package/dist/components/features/dropdown/dropdown.d.ts +31 -0
- package/dist/components/features/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/features/dropdown/index.d.ts +2 -0
- package/dist/components/features/dropdown/index.d.ts.map +1 -0
- package/dist/components/features/dropzone/dropzone.d.ts +28 -0
- package/dist/components/features/dropzone/dropzone.d.ts.map +1 -0
- package/dist/components/features/dropzone/index.d.ts +3 -0
- package/dist/components/features/dropzone/index.d.ts.map +1 -0
- package/dist/components/features/empty-content/empty-content.d.ts +29 -0
- package/dist/components/features/empty-content/empty-content.d.ts.map +1 -0
- package/dist/components/features/empty-content/index.d.ts +3 -0
- package/dist/components/features/empty-content/index.d.ts.map +1 -0
- package/dist/components/features/file-input-button/file-input-button.d.ts +33 -0
- package/dist/components/features/file-input-button/file-input-button.d.ts.map +1 -0
- package/dist/components/features/file-input-button/index.d.ts +2 -0
- package/dist/components/features/file-input-button/index.d.ts.map +1 -0
- package/dist/components/features/form/components/form-autocomplete.d.ts +44 -0
- package/dist/components/features/form/components/form-autocomplete.d.ts.map +1 -0
- package/dist/components/features/form/components/form-button.d.ts +23 -0
- package/dist/components/features/form/components/form-button.d.ts.map +1 -0
- package/dist/components/features/form/components/form-checkbox.d.ts +18 -0
- package/dist/components/features/form/components/form-checkbox.d.ts.map +1 -0
- package/dist/components/features/form/components/form-copy-box.d.ts +41 -0
- package/dist/components/features/form/components/form-copy-box.d.ts.map +1 -0
- package/dist/components/features/form/components/form-custom.d.ts +27 -0
- package/dist/components/features/form/components/form-custom.d.ts.map +1 -0
- package/dist/components/features/form/components/form-description.d.ts +19 -0
- package/dist/components/features/form/components/form-description.d.ts.map +1 -0
- package/dist/components/features/form/components/form-dialog.d.ts +58 -0
- package/dist/components/features/form/components/form-dialog.d.ts.map +1 -0
- package/dist/components/features/form/components/form-error.d.ts +29 -0
- package/dist/components/features/form/components/form-error.d.ts.map +1 -0
- package/dist/components/features/form/components/form-field-array.d.ts +40 -0
- package/dist/components/features/form/components/form-field-array.d.ts.map +1 -0
- package/dist/components/features/form/components/form-field.d.ts +40 -0
- package/dist/components/features/form/components/form-field.d.ts.map +1 -0
- package/dist/components/features/form/components/form-input-group.d.ts +21 -0
- package/dist/components/features/form/components/form-input-group.d.ts.map +1 -0
- package/dist/components/features/form/components/form-input.d.ts +21 -0
- package/dist/components/features/form/components/form-input.d.ts.map +1 -0
- package/dist/components/features/form/components/form-radio-group.d.ts +34 -0
- package/dist/components/features/form/components/form-radio-group.d.ts.map +1 -0
- package/dist/components/features/form/components/form-root.d.ts +49 -0
- package/dist/components/features/form/components/form-root.d.ts.map +1 -0
- package/dist/components/features/form/components/form-select.d.ts +34 -0
- package/dist/components/features/form/components/form-select.d.ts.map +1 -0
- package/dist/components/features/form/components/form-submit.d.ts +16 -0
- package/dist/components/features/form/components/form-submit.d.ts.map +1 -0
- package/dist/components/features/form/components/form-switch.d.ts +18 -0
- package/dist/components/features/form/components/form-switch.d.ts.map +1 -0
- package/dist/components/features/form/components/form-textarea.d.ts +21 -0
- package/dist/components/features/form/components/form-textarea.d.ts.map +1 -0
- package/dist/components/features/form/components/form-when.d.ts +34 -0
- package/dist/components/features/form/components/form-when.d.ts.map +1 -0
- package/dist/components/features/form/components/index.d.ts +20 -0
- package/dist/components/features/form/components/index.d.ts.map +1 -0
- package/dist/components/features/form/components/stepper/form-step.d.ts +22 -0
- package/dist/components/features/form/components/stepper/form-step.d.ts.map +1 -0
- package/dist/components/features/form/components/stepper/form-stepper.d.ts +71 -0
- package/dist/components/features/form/components/stepper/form-stepper.d.ts.map +1 -0
- package/dist/components/features/form/components/stepper/index.d.ts +5 -0
- package/dist/components/features/form/components/stepper/index.d.ts.map +1 -0
- package/dist/components/features/form/components/stepper/stepper-controls.d.ts +32 -0
- package/dist/components/features/form/components/stepper/stepper-controls.d.ts.map +1 -0
- package/dist/components/features/form/components/stepper/stepper-navigation.d.ts +17 -0
- package/dist/components/features/form/components/stepper/stepper-navigation.d.ts.map +1 -0
- package/dist/components/features/form/context/field-context.d.ts +16 -0
- package/dist/components/features/form/context/field-context.d.ts.map +1 -0
- package/dist/components/features/form/context/form-context.d.ts +20 -0
- package/dist/components/features/form/context/form-context.d.ts.map +1 -0
- package/dist/components/features/form/context/index.d.ts +3 -0
- package/dist/components/features/form/context/index.d.ts.map +1 -0
- package/dist/components/features/form/hooks/index.d.ts +6 -0
- package/dist/components/features/form/hooks/index.d.ts.map +1 -0
- package/dist/components/features/form/hooks/use-field-context.d.ts +24 -0
- package/dist/components/features/form/hooks/use-field-context.d.ts.map +1 -0
- package/dist/components/features/form/hooks/use-field.d.ts +30 -0
- package/dist/components/features/form/hooks/use-field.d.ts.map +1 -0
- package/dist/components/features/form/hooks/use-form-context.d.ts +19 -0
- package/dist/components/features/form/hooks/use-form-context.d.ts.map +1 -0
- package/dist/components/features/form/hooks/use-stepper.d.ts +56 -0
- package/dist/components/features/form/hooks/use-stepper.d.ts.map +1 -0
- package/dist/components/features/form/hooks/use-watch.d.ts +41 -0
- package/dist/components/features/form/hooks/use-watch.d.ts.map +1 -0
- package/dist/components/features/form/index.d.ts +133 -0
- package/dist/components/features/form/index.d.ts.map +1 -0
- package/dist/components/features/form/types/index.d.ts +601 -0
- package/dist/components/features/form/types/index.d.ts.map +1 -0
- package/dist/components/features/grid/components/col.d.ts +5 -0
- package/dist/components/features/grid/components/col.d.ts.map +1 -0
- package/dist/components/features/grid/components/index.d.ts +7 -0
- package/dist/components/features/grid/components/index.d.ts.map +1 -0
- package/dist/components/features/grid/components/row.d.ts +6 -0
- package/dist/components/features/grid/components/row.d.ts.map +1 -0
- package/dist/components/features/grid/constants/grid.constants.d.ts +22 -0
- package/dist/components/features/grid/constants/grid.constants.d.ts.map +1 -0
- package/dist/components/features/grid/index.d.ts +7 -0
- package/dist/components/features/grid/index.d.ts.map +1 -0
- package/dist/components/features/grid/types/grid.types.d.ts +43 -0
- package/dist/components/features/grid/types/grid.types.d.ts.map +1 -0
- package/dist/components/features/grid/utils/responsive.d.ts +10 -0
- package/dist/components/features/grid/utils/responsive.d.ts.map +1 -0
- package/dist/components/features/index.d.ts +27 -0
- package/dist/components/features/index.d.ts.map +1 -0
- package/dist/components/features/input-number/index.d.ts +2 -0
- package/dist/components/features/input-number/index.d.ts.map +1 -0
- package/dist/components/features/input-number/input-number.d.ts +22 -0
- package/dist/components/features/input-number/input-number.d.ts.map +1 -0
- package/dist/components/features/input-with-addons/index.d.ts +2 -0
- package/dist/components/features/input-with-addons/index.d.ts.map +1 -0
- package/dist/components/features/input-with-addons/input-with-addons.d.ts +14 -0
- package/dist/components/features/input-with-addons/input-with-addons.d.ts.map +1 -0
- package/dist/components/features/loader-overlay/index.d.ts +2 -0
- package/dist/components/features/loader-overlay/index.d.ts.map +1 -0
- package/dist/components/features/loader-overlay/loader-overlay.d.ts +5 -0
- package/dist/components/features/loader-overlay/loader-overlay.d.ts.map +1 -0
- package/dist/components/features/more-actions/index.d.ts +3 -0
- package/dist/components/features/more-actions/index.d.ts.map +1 -0
- package/dist/components/features/more-actions/more-actions.d.ts +19 -0
- package/dist/components/features/more-actions/more-actions.d.ts.map +1 -0
- package/dist/components/features/nprogress/index.d.ts +4 -0
- package/dist/components/features/nprogress/index.d.ts.map +1 -0
- package/dist/components/features/page-title/index.d.ts +3 -0
- package/dist/components/features/page-title/index.d.ts.map +1 -0
- package/dist/components/features/page-title/page-title.d.ts +12 -0
- package/dist/components/features/page-title/page-title.d.ts.map +1 -0
- package/dist/components/features/sidebar/app-sidebar.d.ts +14 -0
- package/dist/components/features/sidebar/app-sidebar.d.ts.map +1 -0
- package/dist/components/features/sidebar/index.d.ts +4 -0
- package/dist/components/features/sidebar/index.d.ts.map +1 -0
- package/dist/components/features/sidebar/nav-main.d.ts +36 -0
- package/dist/components/features/sidebar/nav-main.d.ts.map +1 -0
- package/dist/components/features/sidebar/sidebar.d.ts +85 -0
- package/dist/components/features/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/features/stepper/index.d.ts +2 -0
- package/dist/components/features/stepper/index.d.ts.map +1 -0
- package/dist/components/features/stepper/stepper.d.ts +42 -0
- package/dist/components/features/stepper/stepper.d.ts.map +1 -0
- package/dist/components/features/tag-input/index.d.ts +2 -0
- package/dist/components/features/tag-input/index.d.ts.map +1 -0
- package/dist/components/features/tag-input/tag-input.d.ts +38 -0
- package/dist/components/features/tag-input/tag-input.d.ts.map +1 -0
- package/dist/components/features/task-queue/constants.d.ts +8 -0
- package/dist/components/features/task-queue/constants.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/index.d.ts +10 -0
- package/dist/components/features/task-queue/core/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-panel-actions.d.ts +7 -0
- package/dist/components/features/task-queue/core/task-panel-actions.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-panel-counter.d.ts +10 -0
- package/dist/components/features/task-queue/core/task-panel-counter.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-panel-header.d.ts +2 -0
- package/dist/components/features/task-queue/core/task-panel-header.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-panel-item.d.ts +9 -0
- package/dist/components/features/task-queue/core/task-panel-item.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-panel.d.ts +6 -0
- package/dist/components/features/task-queue/core/task-panel.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-queue-dropdown.d.ts +2 -0
- package/dist/components/features/task-queue/core/task-queue-dropdown.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-queue-trigger.d.ts +9 -0
- package/dist/components/features/task-queue/core/task-queue-trigger.d.ts.map +1 -0
- package/dist/components/features/task-queue/core/task-summary-dialog.d.ts +24 -0
- package/dist/components/features/task-queue/core/task-summary-dialog.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/executor.d.ts +14 -0
- package/dist/components/features/task-queue/engine/executor.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/index.d.ts +5 -0
- package/dist/components/features/task-queue/engine/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/queue.d.ts +42 -0
- package/dist/components/features/task-queue/engine/queue.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/detect-storage.d.ts +19 -0
- package/dist/components/features/task-queue/engine/storage/detect-storage.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/index.d.ts +6 -0
- package/dist/components/features/task-queue/engine/storage/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/local-storage.d.ts +12 -0
- package/dist/components/features/task-queue/engine/storage/local-storage.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/memory-storage.d.ts +18 -0
- package/dist/components/features/task-queue/engine/storage/memory-storage.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/redis-storage.d.ts +23 -0
- package/dist/components/features/task-queue/engine/storage/redis-storage.d.ts.map +1 -0
- package/dist/components/features/task-queue/engine/storage/storage.d.ts +2 -0
- package/dist/components/features/task-queue/engine/storage/storage.d.ts.map +1 -0
- package/dist/components/features/task-queue/hooks/index.d.ts +3 -0
- package/dist/components/features/task-queue/hooks/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/hooks/use-task-queue.d.ts +3 -0
- package/dist/components/features/task-queue/hooks/use-task-queue.d.ts.map +1 -0
- package/dist/components/features/task-queue/hooks/use-task-scope.d.ts +52 -0
- package/dist/components/features/task-queue/hooks/use-task-scope.d.ts.map +1 -0
- package/dist/components/features/task-queue/index.d.ts +9 -0
- package/dist/components/features/task-queue/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/provider/index.d.ts +2 -0
- package/dist/components/features/task-queue/provider/index.d.ts.map +1 -0
- package/dist/components/features/task-queue/provider/task-queue-provider.d.ts +14 -0
- package/dist/components/features/task-queue/provider/task-queue-provider.d.ts.map +1 -0
- package/dist/components/features/task-queue/types.d.ts +213 -0
- package/dist/components/features/task-queue/types.d.ts.map +1 -0
- package/dist/components/features/task-queue/utils/index.d.ts +37 -0
- package/dist/components/features/task-queue/utils/index.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/components/absolute-range-panel.d.ts +18 -0
- package/dist/components/features/time-range-picker/components/absolute-range-panel.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/components/index.d.ts +4 -0
- package/dist/components/features/time-range-picker/components/index.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/components/quick-ranges-panel.d.ts +10 -0
- package/dist/components/features/time-range-picker/components/quick-ranges-panel.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/components/timezone-selector.d.ts +10 -0
- package/dist/components/features/time-range-picker/components/timezone-selector.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/index.d.ts +8 -0
- package/dist/components/features/time-range-picker/index.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/presets.d.ts +29 -0
- package/dist/components/features/time-range-picker/presets.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/time-range-picker.d.ts +31 -0
- package/dist/components/features/time-range-picker/time-range-picker.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/types.d.ts +59 -0
- package/dist/components/features/time-range-picker/types.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/utils/format-display.d.ts +20 -0
- package/dist/components/features/time-range-picker/utils/format-display.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/utils/index.d.ts +4 -0
- package/dist/components/features/time-range-picker/utils/index.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/utils/timezone.d.ts +51 -0
- package/dist/components/features/time-range-picker/utils/timezone.d.ts.map +1 -0
- package/dist/components/features/time-range-picker/utils/to-api-format.d.ts +13 -0
- package/dist/components/features/time-range-picker/utils/to-api-format.d.ts.map +1 -0
- package/dist/components/features/toast/headless-toast.d.ts +10 -0
- package/dist/components/features/toast/headless-toast.d.ts.map +1 -0
- package/dist/components/features/toast/index.d.ts +4 -0
- package/dist/components/features/toast/index.d.ts.map +1 -0
- package/dist/components/features/toast/toast.d.ts +9 -0
- package/dist/components/features/toast/toast.d.ts.map +1 -0
- package/dist/components/features/toast/toaster.d.ts +10 -0
- package/dist/components/features/toast/toaster.d.ts.map +1 -0
- package/dist/components/features/toast/types.d.ts +7 -0
- package/dist/components/features/toast/types.d.ts.map +1 -0
- package/dist/components/features/toast/use-toast.d.ts +3 -0
- package/dist/components/features/toast/use-toast.d.ts.map +1 -0
- package/dist/components/icons/close.icon.d.ts +5 -0
- package/dist/components/icons/close.icon.d.ts.map +1 -0
- package/dist/components/icons/icon-wrapper.d.ts +7 -0
- package/dist/components/icons/icon-wrapper.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/spinner.icon.d.ts +13 -0
- package/dist/components/icons/spinner.icon.d.ts.map +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.mjs +8 -0
- package/dist/components/themes/client-only.d.ts +8 -0
- package/dist/components/themes/client-only.d.ts.map +1 -0
- package/dist/components/themes/index.d.ts +5 -0
- package/dist/components/themes/index.d.ts.map +1 -0
- package/dist/components/themes/script.d.ts +2 -0
- package/dist/components/themes/script.d.ts.map +1 -0
- package/dist/components/themes/theme-script.d.ts +18 -0
- package/dist/components/themes/theme-script.d.ts.map +1 -0
- package/dist/components/themes/theme.provider.d.ts +4 -0
- package/dist/components/themes/theme.provider.d.ts.map +1 -0
- package/dist/components/themes/types.d.ts +30 -0
- package/dist/components/themes/types.d.ts.map +1 -0
- package/dist/datum.provider-D6VMjSV0.mjs +37 -0
- package/dist/fonts/AllianceNo1-Medium.ttf +0 -0
- package/dist/fonts/AllianceNo1-Regular.ttf +0 -0
- package/dist/fonts/AllianceNo1-SemiBold.ttf +0 -0
- package/dist/fonts/FTRegolaNeue-Medium.woff2 +0 -0
- package/dist/fonts/FTRegolaNeue-Regular.woff2 +0 -0
- package/dist/fonts/FTRegolaNeue-Semibold.woff2 +0 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.mjs +5 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +8 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
- package/dist/hooks/use-debounce.d.ts +8 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-theme.d.ts +2 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/icon-wrapper-BgPkifId.mjs +61 -0
- package/dist/icons/index.mjs +5 -0
- package/dist/index.d.ts +5 -90
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +11 -3719
- package/dist/providers/datum.provider.d.ts +20 -0
- package/dist/providers/datum.provider.d.ts.map +1 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.mjs +4 -0
- package/dist/style.css +7094 -0
- package/dist/theme-script-CS7JSmQs.mjs +9854 -0
- package/dist/theme.provider-DpFLwtHe.mjs +134 -0
- package/dist/use-copy-to-clipboard-BfrpD6G8.mjs +116 -0
- package/dist/use-debounce-BYB-jPeX.mjs +24 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.mjs +4 -0
- package/package.json +204 -51
- package/LICENSE +0 -201
- package/README.md +0 -34
- package/dist/index.d.mts +0 -90
- package/dist/index.js +0 -3765
- package/src/styles/custom.css +0 -27
- package/src/styles/fonts.css +0 -51
- package/src/styles/root.css +0 -28
- package/src/styles/theme.css +0 -3
- package/src/styles/themes/alpha.css +0 -433
- package/src/styles/tokens/brand-tokens.css +0 -57
- package/src/styles/tokens/figma-tokens.css +0 -624
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-panel-counter.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-panel-counter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAU,EAAE,MAAM,EAAE,EAAE,qBAAqB,kDA6C/F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-panel-header.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-panel-header.tsx"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,4CAM9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Task } from '../types';
|
|
2
|
+
interface TaskPanelItemProps {
|
|
3
|
+
task: Task;
|
|
4
|
+
contextLabel?: string;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function TaskPanelItem({ task, contextLabel, onCancel }: TaskPanelItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=task-panel-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-panel-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-panel-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAkBpC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,IAAI,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAmDjF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use TaskQueueDropdown instead — renders as a header-anchored dropdown.
|
|
3
|
+
* TaskPanel is kept for backward compatibility but is no longer used in the main layout.
|
|
4
|
+
*/
|
|
5
|
+
export declare function TaskPanel(): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
//# sourceMappingURL=task-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-panel.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,SAAS,mDA4BxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-queue-dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-queue-dropdown.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,4CAsFhC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Task } from '../types';
|
|
2
|
+
interface TaskQueueTriggerProps {
|
|
3
|
+
tasks: Task[];
|
|
4
|
+
}
|
|
5
|
+
export declare function TaskQueueTrigger({ ref, tasks, ...props }: TaskQueueTriggerProps & {
|
|
6
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=task-queue-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-queue-trigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-queue-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AASpC,UAAU,qBAAqB;IAC7B,KAAK,EAAE,IAAI,EAAE,CAAA;CACd;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAyErI"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TaskSummaryItem } from '../types';
|
|
3
|
+
interface BaseProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
actions?: ReactNode;
|
|
9
|
+
renderContent?: (items: TaskSummaryItem[]) => ReactNode;
|
|
10
|
+
}
|
|
11
|
+
type ItemsMode = BaseProps & {
|
|
12
|
+
items: TaskSummaryItem[];
|
|
13
|
+
taskId?: never;
|
|
14
|
+
getItemLabel?: never;
|
|
15
|
+
};
|
|
16
|
+
type TaskIdMode = BaseProps & {
|
|
17
|
+
taskId: string;
|
|
18
|
+
getItemLabel: (id: string) => string;
|
|
19
|
+
items?: never;
|
|
20
|
+
};
|
|
21
|
+
export type TaskSummaryDialogProps = ItemsMode | TaskIdMode;
|
|
22
|
+
export declare function TaskSummaryDialog(props: TaskSummaryDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=task-summary-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-summary-dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/core/task-summary-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAU/C,UAAU,SAAS;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,SAAS,CAAA;CACxD;AAED,KAAK,SAAS,GAAG,SAAS,GAAG;IAC3B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,YAAY,CAAC,EAAE,KAAK,CAAA;CACrB,CAAA;AAED,KAAK,UAAU,GAAG,SAAS,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,CAAA;IACpC,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,CAAA;AAqH3D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAoC9D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Task, TaskContext, TaskOutcome } from '../types';
|
|
2
|
+
export interface ExecutorCallbacks {
|
|
3
|
+
onUpdate: (task: Task) => void;
|
|
4
|
+
onCancelReady?: (setCancelled: (v: boolean) => void) => void;
|
|
5
|
+
onTaskComplete?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createTaskContext<TItem = unknown, TResult = unknown>(task: Task<TResult>, callbacks: ExecutorCallbacks): {
|
|
8
|
+
ctx: TaskContext<TItem, TResult>;
|
|
9
|
+
getCancelled: () => boolean;
|
|
10
|
+
setCancelled: (v: boolean) => void;
|
|
11
|
+
getShouldStop: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function executeTask<TResult = unknown>(task: Task<TResult>, callbacks: ExecutorCallbacks): Promise<TaskOutcome<TResult>>;
|
|
14
|
+
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/engine/executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAA;IAC5D,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EAClE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,SAAS,EAAE,iBAAiB,GAC3B;IACD,GAAG,EAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAChC,YAAY,EAAE,MAAM,OAAO,CAAA;IAC3B,YAAY,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAClC,aAAa,EAAE,MAAM,OAAO,CAAA;CAC7B,CA2EA;AAED,wBAAsB,WAAW,CAAC,OAAO,GAAG,OAAO,EACjD,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EACnB,SAAS,EAAE,iBAAiB,GAC3B,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CA0D/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/engine/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAC7E,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { EnqueueOptions, SummaryRenderContent, Task, TaskHandle, TaskQueueConfig, TaskSummaryData, TaskSummaryItem } from '../types';
|
|
2
|
+
export declare class TaskQueue {
|
|
3
|
+
private storage;
|
|
4
|
+
private concurrency;
|
|
5
|
+
private runningCount;
|
|
6
|
+
private listeners;
|
|
7
|
+
private taskResolvers;
|
|
8
|
+
private snapshot;
|
|
9
|
+
private notifyScheduled;
|
|
10
|
+
private processors;
|
|
11
|
+
private cancelFunctions;
|
|
12
|
+
private onCompleteCallbacks;
|
|
13
|
+
private taskTimeouts;
|
|
14
|
+
private _activeSummary;
|
|
15
|
+
private _summaryRenderContent;
|
|
16
|
+
constructor(config?: TaskQueueConfig);
|
|
17
|
+
subscribe: (listener: () => void) => (() => void);
|
|
18
|
+
getSnapshot: () => Task[];
|
|
19
|
+
private notify;
|
|
20
|
+
private updateSnapshot;
|
|
21
|
+
enqueue: <TItem = unknown, TResult = unknown>(options: EnqueueOptions<TItem, TResult>) => TaskHandle<TResult>;
|
|
22
|
+
cancel: (taskId: string) => void;
|
|
23
|
+
retry: (taskId: string) => void;
|
|
24
|
+
private getRetryItems;
|
|
25
|
+
/** Extract ID from an item using custom extractor or shared utility */
|
|
26
|
+
private resolveItemId;
|
|
27
|
+
dismiss: (taskId: string) => void;
|
|
28
|
+
dismissAll: () => void;
|
|
29
|
+
showSummary: (title: string, items: TaskSummaryItem[], options?: {
|
|
30
|
+
renderContent?: SummaryRenderContent;
|
|
31
|
+
}) => void;
|
|
32
|
+
closeSummary: () => void;
|
|
33
|
+
getActiveSummary: () => TaskSummaryData | null;
|
|
34
|
+
getSummaryRenderContent: () => SummaryRenderContent | undefined;
|
|
35
|
+
private buildProcessor;
|
|
36
|
+
private processOneItem;
|
|
37
|
+
private drain;
|
|
38
|
+
private runTask;
|
|
39
|
+
private handleTaskTimeout;
|
|
40
|
+
private clearTaskTimeout;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/engine/queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAGd,oBAAoB,EACpB,IAAI,EAEJ,UAAU,EAEV,eAAe,EAEf,eAAe,EACf,eAAe,EAChB,MAAM,UAAU,CAAA;AAMjB,qBAAa,SAAS;IACpB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,aAAa,CACR;IAEb,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,eAAe,CAAQ;IAE/B,OAAO,CAAC,UAAU,CAA6C;IAE/D,OAAO,CAAC,eAAe,CAA+C;IAEtE,OAAO,CAAC,mBAAmB,CAGd;IAGb,OAAO,CAAC,YAAY,CAAwD;IAE5E,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,qBAAqB,CAAkC;gBAEnD,MAAM,GAAE,eAAoB;IAexC,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAK/C;IAED,WAAW,QAAO,IAAI,EAAE,CAEvB;IAED,OAAO,CAAC,MAAM;IAad,OAAO,CAAC,cAAc;IAMtB,OAAO,GAAI,KAAK,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EAC3C,SAAS,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,KACtC,UAAU,CAAC,OAAO,CAAC,CAgFrB;IAED,MAAM,GAAI,QAAQ,MAAM,KAAG,IAAI,CAS9B;IAED,KAAK,GAAI,QAAQ,MAAM,KAAG,IAAI,CA0E7B;IAED,OAAO,CAAC,aAAa;IAoCrB,uEAAuE;IACvE,OAAO,CAAC,aAAa;IAoBrB,OAAO,GAAI,QAAQ,MAAM,KAAG,IAAI,CAW/B;IAED,UAAU,QAAO,IAAI,CAWpB;IAED,WAAW,GAAI,OAAO,MAAM,EAAE,OAAO,eAAe,EAAE,EAAE,UAAU;QAAE,aAAa,CAAC,EAAE,oBAAoB,CAAA;KAAE,KAAG,IAAI,CAGhH;IAED,YAAY,QAAO,IAAI,CAGtB;IAED,gBAAgB,QAAO,eAAe,GAAG,IAAI,CAE5C;IAED,uBAAuB,QAAO,oBAAoB,GAAG,SAAS,CAE7D;IAID,OAAO,CAAC,cAAc;YAmDR,cAAc;IAyC5B,OAAO,CAAC,KAAK;YAYC,OAAO;IA2DrB,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,gBAAgB;CAOzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RedisClient, TaskStorage } from '../../types';
|
|
2
|
+
interface DetectStorageOptions {
|
|
3
|
+
redisClient?: RedisClient | null;
|
|
4
|
+
storageKey?: string;
|
|
5
|
+
storageType?: 'memory' | 'local' | 'auto';
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Auto-detects and returns the appropriate storage backend.
|
|
9
|
+
*
|
|
10
|
+
* Storage types:
|
|
11
|
+
* - `memory` (default): In-memory storage, tasks lost on reload
|
|
12
|
+
* - `local`: Browser localStorage, tasks persist across reloads
|
|
13
|
+
* - `auto`: Uses Redis if available, otherwise localStorage
|
|
14
|
+
*
|
|
15
|
+
* All storage backends are SSR-safe and will return empty data on the server.
|
|
16
|
+
*/
|
|
17
|
+
export declare function detectStorage(options?: DetectStorageOptions): TaskStorage;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=detect-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect-storage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/detect-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK3D,UAAU,oBAAoB;IAC5B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAChC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;CAC1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,WAAW,CAmB7E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { detectStorage } from './detect-storage';
|
|
2
|
+
export { LocalTaskStorage } from './local-storage';
|
|
3
|
+
export { MemoryTaskStorage } from './memory-storage';
|
|
4
|
+
export { RedisTaskStorage } from './redis-storage';
|
|
5
|
+
export type { TaskStorage } from './storage';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Task, TaskStorage } from '../../types';
|
|
2
|
+
export declare class LocalTaskStorage implements TaskStorage {
|
|
3
|
+
private key;
|
|
4
|
+
constructor(key?: string);
|
|
5
|
+
getAll(): Task[];
|
|
6
|
+
get(id: string): Task | undefined;
|
|
7
|
+
set(id: string, task: Task): void;
|
|
8
|
+
remove(id: string): void;
|
|
9
|
+
clear(): void;
|
|
10
|
+
private persist;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=local-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAIpD,qBAAa,gBAAiB,YAAW,WAAW;IAClD,OAAO,CAAC,GAAG,CAAQ;gBAEP,GAAG,GAAE,MAAyB;IAI1C,MAAM,IAAI,IAAI,EAAE;IAYhB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAMjC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAcjC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAOxB,KAAK,IAAI,IAAI;IAWb,OAAO,CAAC,OAAO;CAmBhB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Task, TaskStorage } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* In-memory task storage.
|
|
4
|
+
*
|
|
5
|
+
* Tasks are stored in a Map and lost on page reload.
|
|
6
|
+
* Use with beforeunload warning to alert users of active tasks.
|
|
7
|
+
*
|
|
8
|
+
* SSR-safe: works on both server and client (just empty on server).
|
|
9
|
+
*/
|
|
10
|
+
export declare class MemoryTaskStorage implements TaskStorage {
|
|
11
|
+
private tasks;
|
|
12
|
+
getAll(): Task[];
|
|
13
|
+
get(id: string): Task | undefined;
|
|
14
|
+
set(id: string, task: Task): void;
|
|
15
|
+
remove(id: string): void;
|
|
16
|
+
clear(): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=memory-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-storage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/memory-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEpD;;;;;;;GAOG;AACH,qBAAa,iBAAkB,YAAW,WAAW;IACnD,OAAO,CAAC,KAAK,CAA+B;IAE5C,MAAM,IAAI,IAAI,EAAE;IAIhB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAIjC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAIjC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAIxB,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RedisClient, Task, TaskStorage } from '../../types';
|
|
2
|
+
export declare class RedisTaskStorage implements TaskStorage {
|
|
3
|
+
private client;
|
|
4
|
+
private key;
|
|
5
|
+
private cache;
|
|
6
|
+
private initialized;
|
|
7
|
+
private initPromise;
|
|
8
|
+
private ttl;
|
|
9
|
+
constructor(client: RedisClient, key?: string, ttl?: number);
|
|
10
|
+
/**
|
|
11
|
+
* Wait for initialization to complete.
|
|
12
|
+
* Call this before accessing data if you need guaranteed consistency.
|
|
13
|
+
*/
|
|
14
|
+
waitForInit(): Promise<void>;
|
|
15
|
+
private initialize;
|
|
16
|
+
getAll(): Task[];
|
|
17
|
+
get(id: string): Task | undefined;
|
|
18
|
+
set(id: string, task: Task): void;
|
|
19
|
+
remove(id: string): void;
|
|
20
|
+
clear(): void;
|
|
21
|
+
private syncToRedis;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=redis-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-storage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/redis-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAOjE,qBAAa,gBAAiB,YAAW,WAAW;IAClD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,GAAG,CAAQ;gBAEP,MAAM,EAAE,WAAW,EAAE,GAAG,GAAE,MAAyB,EAAE,GAAG,GAAE,MAAoB;IAW1F;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;YAMpB,UAAU;IAoBxB,MAAM,IAAI,IAAI,EAAE;IAIhB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAIjC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAOjC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAOxB,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,WAAW;CAoBpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/features/task-queue/engine/storage/storage.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EACL,KAAK,YAAY,EACjB,eAAe,EACf,mBAAmB,EACnB,KAAK,eAAe,EACpB,eAAe,EACf,kBAAkB,GACnB,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-task-queue.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/hooks/use-task-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,YAAY,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAOvE,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,YAAY,CAyCxE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Task, TaskMetadata } from '../types';
|
|
2
|
+
export type CurrentScope = {
|
|
3
|
+
type: 'project';
|
|
4
|
+
projectId: string;
|
|
5
|
+
orgId?: string;
|
|
6
|
+
} | {
|
|
7
|
+
type: 'org';
|
|
8
|
+
orgId: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'global';
|
|
11
|
+
} | {
|
|
12
|
+
type: 'edge';
|
|
13
|
+
projectId: string;
|
|
14
|
+
orgId?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Detect the current scope from URL params.
|
|
18
|
+
* Returns project scope if projectId is present, org scope if only orgId, otherwise global.
|
|
19
|
+
*
|
|
20
|
+
* @param params - Route params (e.g. from useParams() in react-router)
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCurrentScope(params: {
|
|
23
|
+
projectId?: string;
|
|
24
|
+
orgId?: string;
|
|
25
|
+
}): CurrentScope;
|
|
26
|
+
/**
|
|
27
|
+
* Check if task metadata matches the current scope.
|
|
28
|
+
*/
|
|
29
|
+
export declare function matchesCurrentScope(metadata: TaskMetadata | undefined, scope: CurrentScope): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Get the context label to display for a task.
|
|
32
|
+
* Returns formatted label with scope type: "Project: Name", "Org: Name", etc.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getContextLabel(metadata: TaskMetadata | undefined): string | undefined;
|
|
35
|
+
export interface TasksWithLabels {
|
|
36
|
+
tasks: Task[];
|
|
37
|
+
showLabels: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Hook that returns tasks with a flag indicating whether to show context labels.
|
|
41
|
+
* Labels are shown when:
|
|
42
|
+
* - User is on a global page (account, etc.)
|
|
43
|
+
* - Tasks are from mixed scopes (not all match current scope)
|
|
44
|
+
*
|
|
45
|
+
* @param tasks - Array of tasks to evaluate
|
|
46
|
+
* @param params - Route params (e.g. from useParams() in react-router)
|
|
47
|
+
*/
|
|
48
|
+
export declare function useTasksWithLabels(tasks: Task[], params: {
|
|
49
|
+
projectId?: string;
|
|
50
|
+
orgId?: string;
|
|
51
|
+
}): TasksWithLabels;
|
|
52
|
+
//# sourceMappingURL=use-task-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-task-scope.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/hooks/use-task-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAKlD,MAAM,MAAM,YAAY,GAClB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAsB5F;AAID;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,KAAK,EAAE,YAAY,GAClB,OAAO,CAeT;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAwCtF;AAID,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,IAAI,EAAE,EACb,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7C,eAAe,CAoBjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { TaskPanel, TaskPanelActions, TaskPanelCounter, TaskPanelHeader, TaskPanelItem, TaskQueueDropdown, TaskQueueTrigger, TaskSummaryDialog, } from './core';
|
|
2
|
+
export type { TaskSummaryDialogProps } from './core';
|
|
3
|
+
export { detectStorage, LocalTaskStorage, RedisTaskStorage, TaskQueue } from './engine';
|
|
4
|
+
export { getContextLabel, matchesCurrentScope, useCurrentScope, useTaskQueue, useTasksWithLabels, } from './hooks';
|
|
5
|
+
export type { CurrentScope, TasksWithLabels } from './hooks';
|
|
6
|
+
export { TaskQueueProvider } from './provider';
|
|
7
|
+
export type { EnqueueOptions, ItemContext, ProcessItemEnqueueOptions, ProcessorEnqueueOptions, RedisClient, Task, TaskCompletionInfo, TaskContext, TaskHandle, TaskMetadata, TaskOutcome, TaskQueueAPI, TaskQueueConfig, TaskStatus, TaskStorage, TaskSummaryData, TaskSummaryItem, UseTaskQueueOptions, } from './types';
|
|
8
|
+
export { createOrgMetadata, createProjectMetadata, createUserMetadata } from './utils';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/features/task-queue/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,QAAQ,CAAA;AAEf,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGvF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG9C,YAAY,EACV,cAAc,EACd,WAAW,EACX,yBAAyB,EACzB,uBAAuB,EACvB,WAAW,EACX,IAAI,EACJ,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TaskQueueConfig } from '../types';
|
|
3
|
+
import { TaskQueue } from '../engine';
|
|
4
|
+
export interface TaskQueueContextValue {
|
|
5
|
+
queue: TaskQueue;
|
|
6
|
+
}
|
|
7
|
+
export declare const TaskQueueContext: import("react").Context<TaskQueueContextValue | null>;
|
|
8
|
+
interface TaskQueueProviderProps {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
config?: TaskQueueConfig;
|
|
11
|
+
}
|
|
12
|
+
export declare function TaskQueueProvider({ children, config }: TaskQueueProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=task-queue-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-queue-provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/features/task-queue/provider/task-queue-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,CAAA;CACjB;AAED,eAAO,MAAM,gBAAgB,uDAAoD,CAAA;AAEjF,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,CAAC,EAAE,eAAe,CAAA;CACzB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,sBAAsB,2CAgD7E"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ButtonProps } from '../../base/button/button';
|
|
3
|
+
export type TaskStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
4
|
+
export interface TaskMetadata {
|
|
5
|
+
/** Scope type: 'project' | 'org' | 'user' | custom */
|
|
6
|
+
scope?: string;
|
|
7
|
+
/** Project ID for project-scoped tasks */
|
|
8
|
+
projectId?: string;
|
|
9
|
+
/** Human-readable project name */
|
|
10
|
+
projectName?: string;
|
|
11
|
+
/** Organization ID */
|
|
12
|
+
orgId?: string;
|
|
13
|
+
/** Human-readable organization name */
|
|
14
|
+
orgName?: string;
|
|
15
|
+
/** Extensible - any additional context */
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface TaskCompletionInfo<TItem = unknown> {
|
|
19
|
+
status: TaskStatus;
|
|
20
|
+
completed: number;
|
|
21
|
+
failed: number;
|
|
22
|
+
items: Array<{
|
|
23
|
+
id: string;
|
|
24
|
+
status: 'succeeded' | 'failed';
|
|
25
|
+
message?: string;
|
|
26
|
+
data: TItem;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export interface Task<TResult = unknown> {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
status: TaskStatus;
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
category?: string;
|
|
35
|
+
metadata?: TaskMetadata;
|
|
36
|
+
items?: unknown[];
|
|
37
|
+
total?: number;
|
|
38
|
+
completed: number;
|
|
39
|
+
failed: number;
|
|
40
|
+
succeededItems: string[];
|
|
41
|
+
failedItems: Array<{
|
|
42
|
+
id?: string;
|
|
43
|
+
message: string;
|
|
44
|
+
}>;
|
|
45
|
+
errorStrategy: 'continue' | 'stop';
|
|
46
|
+
cancelable: boolean;
|
|
47
|
+
retryable: boolean;
|
|
48
|
+
confirmBeforeUnload: boolean;
|
|
49
|
+
result?: TResult;
|
|
50
|
+
completionActions?: ButtonProps[] | ((result: TResult, info: TaskCompletionInfo) => ButtonProps[]);
|
|
51
|
+
retryOf?: string;
|
|
52
|
+
retryCount: number;
|
|
53
|
+
_processor?: (ctx: TaskContext<unknown, TResult>) => Promise<void>;
|
|
54
|
+
_originalItems?: unknown[];
|
|
55
|
+
createdAt: number;
|
|
56
|
+
startedAt?: number;
|
|
57
|
+
completedAt?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface TaskContext<TItem = unknown, TResult = unknown> {
|
|
60
|
+
readonly items: TItem[];
|
|
61
|
+
readonly cancelled: boolean;
|
|
62
|
+
readonly failedItems: Array<{
|
|
63
|
+
id?: string;
|
|
64
|
+
message: string;
|
|
65
|
+
}>;
|
|
66
|
+
/** Mark current item as succeeded. Pass itemId to enable retry of remaining items on cancel. */
|
|
67
|
+
succeed: (itemId?: string) => void;
|
|
68
|
+
/** Mark current item as failed. Pass itemId and message for retry support. */
|
|
69
|
+
fail: (itemId?: string, message?: string) => void;
|
|
70
|
+
setTitle: (title: string) => void;
|
|
71
|
+
setResult: (result: TResult) => void;
|
|
72
|
+
/** Register cleanup function to call on cancel/timeout. Used for watch subscription cleanup. */
|
|
73
|
+
onCancel: (cleanup: () => void) => void;
|
|
74
|
+
}
|
|
75
|
+
export interface ItemContext {
|
|
76
|
+
/** Check if task was cancelled */
|
|
77
|
+
readonly cancelled: boolean;
|
|
78
|
+
/** Override auto-detected item ID for retry tracking */
|
|
79
|
+
succeed: (itemId?: string) => void;
|
|
80
|
+
/** Override auto-detected item ID and customize error message */
|
|
81
|
+
fail: (itemId?: string, message?: string) => void;
|
|
82
|
+
}
|
|
83
|
+
export interface TaskOutcome<TResult = unknown> {
|
|
84
|
+
status: 'completed' | 'failed' | 'cancelled';
|
|
85
|
+
completed: number;
|
|
86
|
+
failed: number;
|
|
87
|
+
failedItems: Array<{
|
|
88
|
+
id?: string;
|
|
89
|
+
message: string;
|
|
90
|
+
}>;
|
|
91
|
+
result?: TResult;
|
|
92
|
+
}
|
|
93
|
+
interface BaseEnqueueOptions<TItem = unknown, TResult = unknown> {
|
|
94
|
+
title: string;
|
|
95
|
+
icon?: ReactNode;
|
|
96
|
+
category?: string;
|
|
97
|
+
metadata?: TaskMetadata;
|
|
98
|
+
errorStrategy?: 'continue' | 'stop';
|
|
99
|
+
cancelable?: boolean;
|
|
100
|
+
retryable?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Show browser confirmation dialog when user tries to close/reload page
|
|
103
|
+
* while this task is pending or running.
|
|
104
|
+
*
|
|
105
|
+
* Set to `false` only for non-critical background tasks that can be safely
|
|
106
|
+
* interrupted (cache updates, analytics, read-only operations).
|
|
107
|
+
*
|
|
108
|
+
* **IMPORTANT: Keep `true` (default) for:**
|
|
109
|
+
* - Mutating operations (creates, updates, deletes)
|
|
110
|
+
* - Long-running operations (> 5 seconds)
|
|
111
|
+
* - Operations with side effects (emails, billing, external APIs)
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```typescript
|
|
117
|
+
* // Mutation - MUST confirm
|
|
118
|
+
* enqueue({
|
|
119
|
+
* title: 'Creating 50 DNS records',
|
|
120
|
+
* confirmBeforeUnload: true, // Keep default
|
|
121
|
+
* processor: async () => { ... }
|
|
122
|
+
* });
|
|
123
|
+
*
|
|
124
|
+
* // Background task - Safe to skip
|
|
125
|
+
* enqueue({
|
|
126
|
+
* title: 'Warming cache',
|
|
127
|
+
* confirmBeforeUnload: false, // OK - non-critical
|
|
128
|
+
* processor: async () => { ... }
|
|
129
|
+
* });
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
confirmBeforeUnload?: boolean;
|
|
133
|
+
completionActions?: ButtonProps[] | ((result: TResult, info: TaskCompletionInfo<TItem>) => ButtonProps[]);
|
|
134
|
+
onComplete?: (outcome: TaskOutcome<TResult>) => void | Promise<void>;
|
|
135
|
+
/** Timeout in milliseconds. Default: 300000 (5 minutes) */
|
|
136
|
+
timeout?: number;
|
|
137
|
+
}
|
|
138
|
+
/** Full control mode - consumer handles iteration */
|
|
139
|
+
export interface ProcessorEnqueueOptions<TItem = unknown, TResult = unknown> extends BaseEnqueueOptions<TItem, TResult> {
|
|
140
|
+
processor: (ctx: TaskContext<TItem, TResult>) => Promise<void>;
|
|
141
|
+
items?: TItem[];
|
|
142
|
+
processItem?: never;
|
|
143
|
+
itemConcurrency?: never;
|
|
144
|
+
getItemId?: never;
|
|
145
|
+
}
|
|
146
|
+
/** Simplified mode - queue handles iteration */
|
|
147
|
+
export interface ProcessItemEnqueueOptions<TItem = unknown, TResult = unknown> extends BaseEnqueueOptions<TItem, TResult> {
|
|
148
|
+
processItem: (item: TItem, ctx: ItemContext) => Promise<void>;
|
|
149
|
+
items: TItem[];
|
|
150
|
+
itemConcurrency?: number;
|
|
151
|
+
getItemId?: (item: TItem) => string;
|
|
152
|
+
processor?: never;
|
|
153
|
+
}
|
|
154
|
+
export type EnqueueOptions<TItem = unknown, TResult = unknown> = ProcessorEnqueueOptions<TItem, TResult> | ProcessItemEnqueueOptions<TItem, TResult>;
|
|
155
|
+
export interface TaskHandle<TResult = unknown> {
|
|
156
|
+
id: string;
|
|
157
|
+
cancel: () => void;
|
|
158
|
+
promise: Promise<TaskOutcome<TResult>>;
|
|
159
|
+
}
|
|
160
|
+
export interface RedisClient {
|
|
161
|
+
get: (key: string) => Promise<string | null>;
|
|
162
|
+
set: (key: string, value: string) => Promise<string | null>;
|
|
163
|
+
del: (key: string) => Promise<number>;
|
|
164
|
+
status?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface TaskQueueConfig {
|
|
167
|
+
concurrency?: number;
|
|
168
|
+
storage?: TaskStorage;
|
|
169
|
+
storageKey?: string;
|
|
170
|
+
storageType?: 'memory' | 'local' | 'auto';
|
|
171
|
+
redisClient?: RedisClient | null;
|
|
172
|
+
/** Global custom renderer for TaskSummaryDialog content. Can be overridden per showSummary call. */
|
|
173
|
+
summaryRenderContent?: SummaryRenderContent;
|
|
174
|
+
}
|
|
175
|
+
export interface TaskStorage {
|
|
176
|
+
getAll: () => Task[];
|
|
177
|
+
get: (id: string) => Task | undefined;
|
|
178
|
+
set: (id: string, task: Task) => void;
|
|
179
|
+
remove: (id: string) => void;
|
|
180
|
+
clear: () => void;
|
|
181
|
+
}
|
|
182
|
+
export interface TaskSummaryItem {
|
|
183
|
+
id: string;
|
|
184
|
+
label: string;
|
|
185
|
+
status: 'success' | 'failed';
|
|
186
|
+
message?: string;
|
|
187
|
+
}
|
|
188
|
+
export type SummaryRenderContent = (items: TaskSummaryItem[]) => ReactNode;
|
|
189
|
+
export interface TaskSummaryData {
|
|
190
|
+
title: string;
|
|
191
|
+
items: TaskSummaryItem[];
|
|
192
|
+
renderContent?: SummaryRenderContent;
|
|
193
|
+
}
|
|
194
|
+
export interface TaskQueueAPI {
|
|
195
|
+
enqueue: <TItem = unknown, TResult = unknown>(options: EnqueueOptions<TItem, TResult>) => TaskHandle<TResult>;
|
|
196
|
+
cancel: (taskId: string) => void;
|
|
197
|
+
retry: (taskId: string) => void;
|
|
198
|
+
dismiss: (taskId: string) => void;
|
|
199
|
+
dismissAll: () => void;
|
|
200
|
+
showSummary: (title: string, items: TaskSummaryItem[], options?: {
|
|
201
|
+
renderContent?: SummaryRenderContent;
|
|
202
|
+
}) => void;
|
|
203
|
+
closeSummary: () => void;
|
|
204
|
+
activeSummary: TaskSummaryData | null;
|
|
205
|
+
/** Global custom renderer from TaskQueueConfig. Per-call renderContent in showSummary takes precedence. */
|
|
206
|
+
summaryRenderContent?: SummaryRenderContent;
|
|
207
|
+
tasks: Task[];
|
|
208
|
+
}
|
|
209
|
+
export interface UseTaskQueueOptions {
|
|
210
|
+
status?: TaskStatus;
|
|
211
|
+
}
|
|
212
|
+
export {};
|
|
213
|
+
//# sourceMappingURL=types.d.ts.map
|