@ciridae/ui 0.16.1 → 1.0.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/README.md +17 -12
- package/dist/chat/chat-api-error.d.ts +14 -0
- package/dist/chat/chat-api-error.js +11 -0
- package/dist/chat/chat-client.d.ts +37 -0
- package/dist/chat/chat-client.js +66 -0
- package/dist/chat/chat-hooks.d.ts +4 -0
- package/dist/chat/chat-hooks.js +4 -0
- package/dist/chat/chat-query-keys.d.ts +10 -0
- package/dist/chat/chat-query-keys.js +8 -0
- package/dist/chat/contract.d.ts +488 -0
- package/dist/chat/contract.js +223 -0
- package/dist/chat/conversation-items-query-options.d.ts +382 -0
- package/dist/chat/conversation-items-query-options.js +15 -0
- package/dist/chat/describe-tool-call.d.ts +5 -0
- package/dist/chat/describe-tool-call.js +33 -0
- package/dist/chat/fetch-new-conversation-items.d.ts +10 -0
- package/dist/chat/fetch-new-conversation-items.js +38 -0
- package/dist/chat/message-group-position.d.ts +17 -0
- package/dist/chat/message-group-position.js +25 -0
- package/dist/chat/message-text.d.ts +23 -0
- package/dist/chat/message-text.js +118 -0
- package/dist/chat/mock-chat-client.d.ts +97 -0
- package/dist/chat/mock-chat-client.js +566 -0
- package/dist/chat/use-chat-conversation.d.ts +43 -0
- package/dist/chat/use-chat-conversation.js +156 -0
- package/dist/chat/use-conversation-list.d.ts +32 -0
- package/dist/chat/use-conversation-list.js +19 -0
- package/dist/ciridae.css +60 -479
- package/dist/components/activity-feed.d.ts +80 -0
- package/dist/components/activity-feed.js +373 -0
- package/dist/components/agent-work.d.ts +76 -0
- package/dist/components/agent-work.js +224 -0
- package/dist/components/app-navigation.d.ts +66 -0
- package/dist/components/app-navigation.js +102 -0
- package/dist/components/badge.d.ts +14 -0
- package/dist/components/badge.js +107 -0
- package/dist/components/brand-icons.d.ts +17 -0
- package/dist/components/brand-icons.js +21 -0
- package/dist/components/breakpoint.d.ts +7 -0
- package/dist/components/breakpoint.js +16 -0
- package/dist/components/bulk-action-bar.d.ts +15 -0
- package/dist/components/bulk-action-bar.js +45 -0
- package/dist/components/button.d.ts +52 -0
- package/dist/components/button.js +272 -0
- package/dist/components/calendar.d.ts +14 -0
- package/dist/components/calendar.js +158 -0
- package/dist/components/centered-page.d.ts +21 -0
- package/dist/components/centered-page.js +55 -0
- package/dist/components/chart.d.ts +22 -0
- package/dist/components/chart.js +116 -0
- package/dist/components/chat-page.d.ts +34 -0
- package/dist/components/chat-page.js +171 -0
- package/dist/components/chat-sheet-controller.d.ts +50 -0
- package/dist/components/chat-sheet-controller.js +133 -0
- package/dist/components/chat-sheet.d.ts +80 -0
- package/dist/components/chat-sheet.js +544 -0
- package/dist/components/chat.d.ts +135 -0
- package/dist/components/chat.js +545 -0
- package/dist/components/checkbox-item.d.ts +11 -0
- package/dist/components/checkbox-item.js +45 -0
- package/dist/components/checkbox-list.d.ts +51 -0
- package/dist/components/checkbox-list.js +167 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.js +43 -0
- package/dist/components/collapsible.d.ts +8 -0
- package/dist/components/collapsible.js +41 -0
- package/dist/components/color-theme.d.ts +40 -0
- package/dist/components/color-theme.js +109 -0
- package/dist/components/column-settings.d.ts +22 -0
- package/dist/components/column-settings.js +112 -0
- package/dist/components/command-match.d.ts +7 -0
- package/dist/components/command-match.js +50 -0
- package/dist/components/command-menu.d.ts +43 -0
- package/dist/components/command-menu.js +339 -0
- package/dist/components/command-palette.d.ts +36 -0
- package/dist/components/command-palette.js +77 -0
- package/dist/components/controllable-state.d.ts +5 -0
- package/dist/components/controllable-state.js +15 -0
- package/dist/components/copyable-id.d.ts +37 -0
- package/dist/components/copyable-id.js +136 -0
- package/dist/components/data-display.d.ts +47 -0
- package/dist/components/data-display.js +221 -0
- package/dist/components/data-grid.d.ts +170 -0
- package/dist/components/data-grid.js +829 -0
- package/dist/components/date-range-picker.d.ts +44 -0
- package/dist/components/date-range-picker.js +153 -0
- package/dist/components/date-time.d.ts +11 -0
- package/dist/components/date-time.js +44 -0
- package/dist/components/dialog-height-context.d.ts +2 -0
- package/dist/components/dialog-height-context.js +3 -0
- package/dist/components/document-viewer.d.ts +62 -0
- package/dist/components/document-viewer.js +419 -0
- package/dist/components/drawer.d.ts +44 -0
- package/dist/components/drawer.js +236 -0
- package/dist/components/dropzone.d.ts +47 -0
- package/dist/components/dropzone.js +370 -0
- package/dist/components/editable-field.d.ts +99 -0
- package/dist/components/editable-field.js +422 -0
- package/dist/components/email-input.d.ts +12 -0
- package/dist/components/email-input.js +83 -0
- package/dist/components/environment-frame.d.ts +13 -0
- package/dist/components/environment-frame.js +42 -0
- package/dist/components/expandable-text.d.ts +9 -0
- package/dist/components/expandable-text.js +48 -0
- package/dist/components/feedback-screenshot.d.ts +19 -0
- package/dist/components/feedback-screenshot.js +162 -0
- package/dist/components/feedback-sheet.d.ts +80 -0
- package/dist/components/feedback-sheet.js +475 -0
- package/dist/components/field-context.d.ts +23 -0
- package/dist/components/field-context.js +15 -0
- package/dist/components/filter-bar.d.ts +77 -0
- package/dist/components/filter-bar.js +350 -0
- package/dist/components/form-controls.d.ts +53 -0
- package/dist/components/form-controls.js +123 -0
- package/dist/components/form-layout.d.ts +32 -0
- package/dist/components/form-layout.js +72 -0
- package/dist/components/hotkeys.d.ts +27 -0
- package/dist/components/hotkeys.js +70 -0
- package/dist/components/icon.d.ts +58 -0
- package/dist/components/icon.js +42 -0
- package/dist/components/input.d.ts +36 -0
- package/dist/components/input.js +249 -0
- package/dist/components/keyboard-shortcuts.d.ts +10 -0
- package/dist/components/keyboard-shortcuts.js +91 -0
- package/dist/components/keycap.d.ts +12 -0
- package/dist/components/keycap.js +45 -0
- package/dist/components/layout.d.ts +174 -0
- package/dist/components/layout.js +282 -0
- package/dist/components/lightbox.d.ts +14 -0
- package/dist/components/lightbox.js +117 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/link.js +37 -0
- package/dist/components/locale.d.ts +463 -0
- package/dist/components/locale.js +501 -0
- package/dist/components/log-list.d.ts +20 -0
- package/dist/components/log-list.js +92 -0
- package/dist/components/mention-input.d.ts +50 -0
- package/dist/components/mention-input.js +503 -0
- package/dist/components/menu.d.ts +76 -0
- package/dist/components/menu.js +112 -0
- package/dist/components/meter.d.ts +14 -0
- package/dist/components/meter.js +44 -0
- package/dist/components/navigation.d.ts +21 -0
- package/dist/components/navigation.js +75 -0
- package/dist/components/notification-tray.d.ts +47 -0
- package/dist/components/notification-tray.js +218 -0
- package/dist/components/overlays.d.ts +107 -0
- package/dist/components/overlays.js +240 -0
- package/dist/components/page-frame.d.ts +65 -0
- package/dist/components/page-frame.js +94 -0
- package/dist/components/panel.d.ts +24 -0
- package/dist/components/panel.js +107 -0
- package/dist/components/profile-header.d.ts +15 -0
- package/dist/components/profile-header.js +40 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +18 -0
- package/dist/components/project-avatar.d.ts +12 -0
- package/dist/components/project-avatar.js +22 -0
- package/dist/components/radio-card.d.ts +22 -0
- package/dist/components/radio-card.js +66 -0
- package/dist/components/recent-items.d.ts +28 -0
- package/dist/components/recent-items.js +63 -0
- package/dist/components/record.d.ts +95 -0
- package/dist/components/record.js +282 -0
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.js +50 -0
- package/dist/components/secret-dialog.d.ts +10 -0
- package/dist/components/secret-dialog.js +12 -0
- package/dist/components/segmented-bar.d.ts +23 -0
- package/dist/components/segmented-bar.js +75 -0
- package/dist/components/select.d.ts +84 -0
- package/dist/components/select.js +374 -0
- package/dist/components/settings.d.ts +34 -0
- package/dist/components/settings.js +56 -0
- package/dist/components/shell-skeleton.d.ts +7 -0
- package/dist/components/shell-skeleton.js +15 -0
- package/dist/components/shell.d.ts +62 -0
- package/dist/components/shell.js +415 -0
- package/dist/components/side-panel.d.ts +36 -0
- package/dist/components/side-panel.js +184 -0
- package/dist/components/sidebar.d.ts +35 -0
- package/dist/components/sidebar.js +207 -0
- package/dist/components/site-banner.d.ts +25 -0
- package/dist/components/site-banner.js +30 -0
- package/dist/components/skeleton.d.ts +15 -0
- package/dist/components/skeleton.js +61 -0
- package/dist/components/skeletons.d.ts +28 -0
- package/dist/components/skeletons.js +60 -0
- package/dist/components/stages.d.ts +97 -0
- package/dist/components/stages.js +365 -0
- package/dist/components/stat-card.d.ts +34 -0
- package/dist/components/stat-card.js +117 -0
- package/dist/components/status-banner.d.ts +17 -0
- package/dist/components/status-banner.js +132 -0
- package/dist/components/status.d.ts +32 -0
- package/dist/components/status.js +93 -0
- package/dist/components/steps.d.ts +17 -0
- package/dist/components/steps.js +51 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.js +39 -0
- package/dist/components/tabs.d.ts +48 -0
- package/dist/components/tabs.js +247 -0
- package/dist/components/theme-customizer.d.ts +53 -0
- package/dist/components/theme-customizer.js +116 -0
- package/dist/components/toast.d.ts +23 -0
- package/dist/components/toast.js +140 -0
- package/dist/components/user-chip.d.ts +66 -0
- package/dist/components/user-chip.js +174 -0
- package/dist/components/wizard.d.ts +33 -0
- package/dist/components/wizard.js +91 -0
- package/dist/feedback/client.d.ts +37 -0
- package/dist/feedback/client.js +125 -0
- package/dist/feedback/comment-types.d.ts +17 -0
- package/dist/feedback/contract.d.ts +252 -0
- package/dist/feedback/contract.js +32 -0
- package/dist/feedback/feedback-cache.d.ts +6 -0
- package/dist/feedback/feedback-cache.js +58 -0
- package/dist/feedback/feedback-center-model.d.ts +8 -0
- package/dist/feedback/feedback-center-model.js +37 -0
- package/dist/feedback/feedback-composer-types.d.ts +11 -0
- package/dist/feedback/feedback-controller.d.ts +56 -0
- package/dist/feedback/feedback-controller.js +181 -0
- package/dist/feedback/feedback-tracking-types.d.ts +14 -0
- package/dist/feedback/generated/index.d.ts +1 -0
- package/dist/feedback/generated/index.js +2 -0
- package/dist/feedback/generated/types.gen.d.ts +737 -0
- package/dist/feedback/generated/types.gen.js +2 -0
- package/dist/feedback/generated/zod.gen.d.ts +738 -0
- package/dist/feedback/generated/zod.gen.js +293 -0
- package/dist/feedback/get-response-error-id.d.ts +1 -0
- package/dist/feedback/get-response-error-id.js +7 -0
- package/dist/feedback/operator-client.d.ts +21 -0
- package/dist/feedback/operator-client.js +96 -0
- package/dist/feedback/operator-contract.d.ts +111 -0
- package/dist/feedback/operator-contract.js +22 -0
- package/dist/feedback/operator-controller.d.ts +80 -0
- package/dist/feedback/operator-controller.js +43 -0
- package/dist/feedback/require-config.d.ts +2 -0
- package/dist/feedback/require-config.js +7 -0
- package/dist/feedback/submit-feedback-with-attachments.d.ts +10 -0
- package/dist/feedback/submit-feedback-with-attachments.js +10 -0
- package/dist/format/compact-number.d.ts +2 -0
- package/dist/format/compact-number.js +8 -0
- package/dist/format/money.d.ts +13 -0
- package/dist/format/money.js +21 -0
- package/dist/format/usd.d.ts +2 -0
- package/dist/format/usd.js +16 -0
- package/dist/preset.d.ts +18 -0
- package/dist/preset.js +470 -0
- package/dist/styled-system/css/conditions.mjs +1 -1
- package/dist/styled-system/css/css.mjs +3 -3
- package/dist/styled-system/patterns/box.d.ts +1 -1
- package/dist/styled-system/patterns/container.d.ts +1 -1
- package/dist/styled-system/patterns/link-overlay.d.ts +1 -1
- package/dist/styled-system/patterns/visually-hidden.d.ts +1 -1
- package/dist/styled-system/styles.css +7834 -458
- package/dist/styled-system/tokens/index.mjs +1465 -677
- package/dist/styled-system/tokens/tokens.d.ts +32 -26
- package/dist/styled-system/types/conditions.d.ts +11 -1
- package/dist/styled-system/types/prop-type.d.ts +12 -23
- package/dist/styled-system/types/style-props.d.ts +25 -24
- package/dist/styles.css +60 -479
- package/dist/theme/breakpoints.d.ts +15 -0
- package/dist/theme/breakpoints.js +12 -0
- package/dist/theme/color.d.ts +2 -0
- package/dist/theme/color.js +27 -0
- package/dist/theme/derive.d.ts +5 -0
- package/dist/theme/derive.js +43 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +9 -0
- package/dist/theme/options.d.ts +32 -0
- package/dist/theme/options.js +9 -0
- package/dist/theme/palettes.d.ts +60 -0
- package/dist/theme/palettes.js +185 -0
- package/dist/theme/tokens.d.ts +29 -0
- package/dist/theme/tokens.js +188 -0
- package/package.json +475 -68
- package/dist/assets/ciridae/brand-background-dark.webp +0 -0
- package/dist/assets/ciridae/brand-background-light.webp +0 -0
- package/dist/assets/ciridae/ciridae-black.svg +0 -17
- package/dist/assets/ciridae/ciridae-brand-assets.d.ts +0 -25
- package/dist/assets/ciridae/ciridae-brand-assets.js +0 -25
- package/dist/assets/ciridae/ciridae-icon-black.png +0 -0
- package/dist/assets/ciridae/ciridae-icon-white.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-ui-wordmark-white.png +0 -0
- package/dist/assets/ciridae/ciridae-white.svg +0 -17
- package/dist/assets/ciridae/ciridae-wordmark-black.png +0 -0
- package/dist/assets/ciridae/ciridae-wordmark-white.png +0 -0
- package/dist/assets/ciridae/favicon.ico +0 -0
- package/dist/assets/ciridae/logo-white.png +0 -0
- package/dist/assets/ciridae/sign-in-screenshot.png +0 -0
- package/dist/components/blocks/admin-users-table.d.ts +0 -22
- package/dist/components/blocks/admin-users-table.js +0 -115
- package/dist/components/blocks/comment-composer.d.ts +0 -18
- package/dist/components/blocks/comment-composer.js +0 -137
- package/dist/components/blocks/comment-item.d.ts +0 -8
- package/dist/components/blocks/comment-item.js +0 -45
- package/dist/components/blocks/comment-thread.d.ts +0 -19
- package/dist/components/blocks/comment-thread.js +0 -37
- package/dist/components/blocks/comment-types.d.ts +0 -18
- package/dist/components/blocks/comment-types.js +0 -11
- package/dist/components/blocks/copy-field.d.ts +0 -18
- package/dist/components/blocks/copy-field.js +0 -61
- package/dist/components/blocks/feedback-center-comments.d.ts +0 -16
- package/dist/components/blocks/feedback-center-comments.js +0 -61
- package/dist/components/blocks/feedback-center-footer.d.ts +0 -12
- package/dist/components/blocks/feedback-center-footer.js +0 -10
- package/dist/components/blocks/feedback-center-sheet-parts.d.ts +0 -40
- package/dist/components/blocks/feedback-center-sheet-parts.js +0 -39
- package/dist/components/blocks/feedback-center-sheet.d.ts +0 -28
- package/dist/components/blocks/feedback-center-sheet.js +0 -105
- package/dist/components/blocks/feedback-composer-parts.d.ts +0 -16
- package/dist/components/blocks/feedback-composer-parts.js +0 -43
- package/dist/components/blocks/feedback-composer-types.d.ts +0 -12
- package/dist/components/blocks/feedback-composer.d.ts +0 -23
- package/dist/components/blocks/feedback-composer.js +0 -82
- package/dist/components/blocks/feedback-date-format.d.ts +0 -5
- package/dist/components/blocks/feedback-date-format.js +0 -11
- package/dist/components/blocks/feedback-detail-sheet.d.ts +0 -15
- package/dist/components/blocks/feedback-detail-sheet.js +0 -59
- package/dist/components/blocks/feedback-emergency-fields.d.ts +0 -17
- package/dist/components/blocks/feedback-emergency-fields.js +0 -32
- package/dist/components/blocks/feedback-metrics.d.ts +0 -6
- package/dist/components/blocks/feedback-metrics.js +0 -15
- package/dist/components/blocks/feedback-sheet.d.ts +0 -8
- package/dist/components/blocks/feedback-sheet.js +0 -29
- package/dist/components/blocks/feedback-status-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-status-badge.js +0 -15
- package/dist/components/blocks/feedback-table-row.d.ts +0 -6
- package/dist/components/blocks/feedback-table-row.js +0 -27
- package/dist/components/blocks/feedback-table-sort.d.ts +0 -11
- package/dist/components/blocks/feedback-table-sort.js +0 -82
- package/dist/components/blocks/feedback-table.d.ts +0 -16
- package/dist/components/blocks/feedback-table.js +0 -45
- package/dist/components/blocks/feedback-tracking-types.d.ts +0 -102
- package/dist/components/blocks/feedback-tracking-types.js +0 -54
- package/dist/components/blocks/feedback-triage-timeline.d.ts +0 -11
- package/dist/components/blocks/feedback-triage-timeline.js +0 -17
- package/dist/components/blocks/feedback-type-badge.d.ts +0 -11
- package/dist/components/blocks/feedback-type-badge.js +0 -18
- package/dist/components/blocks/feedback-unread-badge.d.ts +0 -6
- package/dist/components/blocks/feedback-unread-badge.js +0 -9
- package/dist/components/blocks/feedback-user-detail.d.ts +0 -11
- package/dist/components/blocks/feedback-user-detail.js +0 -63
- package/dist/components/blocks/feedback-user-list.d.ts +0 -11
- package/dist/components/blocks/feedback-user-list.js +0 -41
- package/dist/components/blocks/generated-connect-link.d.ts +0 -22
- package/dist/components/blocks/generated-connect-link.js +0 -68
- package/dist/components/blocks/invite-user-sheet.d.ts +0 -20
- package/dist/components/blocks/invite-user-sheet.js +0 -72
- package/dist/components/blocks/kanban-board-parts.d.ts +0 -26
- package/dist/components/blocks/kanban-board-parts.js +0 -83
- package/dist/components/blocks/kanban-board-utils.d.ts +0 -58
- package/dist/components/blocks/kanban-board-utils.js +0 -140
- package/dist/components/blocks/kanban-board.d.ts +0 -16
- package/dist/components/blocks/kanban-board.js +0 -35
- package/dist/components/blocks/kanban-card.d.ts +0 -10
- package/dist/components/blocks/kanban-card.js +0 -34
- package/dist/components/blocks/kanban-column.d.ts +0 -17
- package/dist/components/blocks/kanban-column.js +0 -34
- package/dist/components/blocks/kanban-detail-sheet.d.ts +0 -17
- package/dist/components/blocks/kanban-detail-sheet.js +0 -34
- package/dist/components/blocks/kanban-types.d.ts +0 -24
- package/dist/components/blocks/mcp-access-grouped-tool-picker.d.ts +0 -19
- package/dist/components/blocks/mcp-access-grouped-tool-picker.js +0 -116
- package/dist/components/blocks/mcp-access-tool-picker-internals.d.ts +0 -35
- package/dist/components/blocks/mcp-access-tool-picker-internals.js +0 -24
- package/dist/components/blocks/mcp-access-tool-picker.d.ts +0 -22
- package/dist/components/blocks/mcp-access-tool-picker.js +0 -33
- package/dist/components/blocks/mcp-access-types.d.ts +0 -42
- package/dist/components/blocks/mcp-access-types.js +0 -7
- package/dist/components/blocks/mcp-client-setup.d.ts +0 -29
- package/dist/components/blocks/mcp-client-setup.js +0 -58
- package/dist/components/blocks/mcp-connect-clients.d.ts +0 -43
- package/dist/components/blocks/mcp-connect-clients.js +0 -66
- package/dist/components/blocks/mcp-plan-choice.d.ts +0 -17
- package/dist/components/blocks/mcp-plan-choice.js +0 -28
- package/dist/components/blocks/submit-feedback-composer.d.ts +0 -5
- package/dist/components/blocks/submit-feedback-composer.js +0 -40
- package/dist/components/blocks/timestamp-format.d.ts +0 -14
- package/dist/components/blocks/timestamp-format.js +0 -72
- package/dist/components/blocks/use-feedback-composer-state.d.ts +0 -27
- package/dist/components/blocks/use-feedback-composer-state.js +0 -60
- package/dist/components/blocks/use-reveal-thread-end.d.ts +0 -11
- package/dist/components/blocks/use-reveal-thread-end.js +0 -25
- package/dist/components/pages/admin-users-page.d.ts +0 -11
- package/dist/components/pages/admin-users-page.js +0 -30
- package/dist/components/pages/feedback-stakeholder-page-parts.d.ts +0 -18
- package/dist/components/pages/feedback-stakeholder-page-parts.js +0 -36
- package/dist/components/pages/feedback-stakeholder-page.d.ts +0 -9
- package/dist/components/pages/feedback-stakeholder-page.js +0 -66
- package/dist/components/pages/kanban-page.d.ts +0 -13
- package/dist/components/pages/kanban-page.js +0 -68
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/alert-dialog.d.ts +0 -22
- package/dist/components/ui/alert-dialog.js +0 -51
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/alert.js +0 -24
- package/dist/components/ui/app-shell-page.d.ts +0 -22
- package/dist/components/ui/app-shell-page.js +0 -21
- package/dist/components/ui/app-shell.d.ts +0 -45
- package/dist/components/ui/app-shell.js +0 -44
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/aspect-ratio.js +0 -7
- package/dist/components/ui/avatar.d.ts +0 -11
- package/dist/components/ui/avatar.js +0 -22
- package/dist/components/ui/badge-variants.d.ts +0 -100
- package/dist/components/ui/badge-variants.js +0 -140
- package/dist/components/ui/badge.d.ts +0 -6
- package/dist/components/ui/badge.js +0 -9
- package/dist/components/ui/breadcrumb.d.ts +0 -11
- package/dist/components/ui/breadcrumb.js +0 -27
- package/dist/components/ui/button-group-variants.d.ts +0 -6
- package/dist/components/ui/button-group-variants.js +0 -13
- package/dist/components/ui/button-group.d.ts +0 -8
- package/dist/components/ui/button-group.js +0 -16
- package/dist/components/ui/button-variants.d.ts +0 -133
- package/dist/components/ui/button-variants.js +0 -170
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/button.js +0 -59
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/calendar.js +0 -99
- package/dist/components/ui/card.d.ts +0 -14
- package/dist/components/ui/card.js +0 -28
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/carousel.js +0 -104
- package/dist/components/ui/chart-context.d.ts +0 -33
- package/dist/components/ui/chart-context.js +0 -36
- package/dist/components/ui/chart-panel.d.ts +0 -11
- package/dist/components/ui/chart-panel.js +0 -6
- package/dist/components/ui/chart-tooltip.d.ts +0 -13
- package/dist/components/ui/chart-tooltip.js +0 -84
- package/dist/components/ui/chart.d.ts +0 -23
- package/dist/components/ui/chart.js +0 -52
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/checkbox.js +0 -9
- package/dist/components/ui/ciridae-ui-provider.d.ts +0 -8
- package/dist/components/ui/ciridae-ui-provider.js +0 -14
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/collapsible.js +0 -12
- package/dist/components/ui/color-theme-context.d.ts +0 -28
- package/dist/components/ui/color-theme-context.js +0 -3
- package/dist/components/ui/color-theme.d.ts +0 -5
- package/dist/components/ui/color-theme.js +0 -147
- package/dist/components/ui/combobox-anchor.d.ts +0 -3
- package/dist/components/ui/combobox-anchor.js +0 -5
- package/dist/components/ui/combobox.d.ts +0 -24
- package/dist/components/ui/combobox.js +0 -54
- package/dist/components/ui/command.d.ts +0 -19
- package/dist/components/ui/command.js +0 -38
- package/dist/components/ui/context-menu.d.ts +0 -30
- package/dist/components/ui/context-menu.js +0 -63
- package/dist/components/ui/data-table-column-settings.d.ts +0 -23
- package/dist/components/ui/data-table-column-settings.js +0 -170
- package/dist/components/ui/data-table-context.d.ts +0 -8
- package/dist/components/ui/data-table-context.js +0 -53
- package/dist/components/ui/data-table-controls.d.ts +0 -9
- package/dist/components/ui/data-table-controls.js +0 -30
- package/dist/components/ui/data-table-facet-filter.d.ts +0 -39
- package/dist/components/ui/data-table-facet-filter.js +0 -65
- package/dist/components/ui/data-table-grid.d.ts +0 -10
- package/dist/components/ui/data-table-grid.js +0 -34
- package/dist/components/ui/data-table-pagination.d.ts +0 -17
- package/dist/components/ui/data-table-pagination.js +0 -89
- package/dist/components/ui/data-table-search-input.d.ts +0 -14
- package/dist/components/ui/data-table-search-input.js +0 -15
- package/dist/components/ui/data-table-state.d.ts +0 -19
- package/dist/components/ui/data-table-state.js +0 -8
- package/dist/components/ui/data-table-tanstack.d.ts +0 -99
- package/dist/components/ui/data-table-tanstack.js +0 -128
- package/dist/components/ui/data-table.d.ts +0 -19
- package/dist/components/ui/data-table.js +0 -35
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/dialog.js +0 -48
- package/dist/components/ui/direction-context.d.ts +0 -3
- package/dist/components/ui/direction-context.js +0 -3
- package/dist/components/ui/direction.d.ts +0 -6
- package/dist/components/ui/direction.js +0 -7
- package/dist/components/ui/drawer.d.ts +0 -18
- package/dist/components/ui/drawer.js +0 -47
- package/dist/components/ui/dropdown-menu.d.ts +0 -30
- package/dist/components/ui/dropdown-menu.js +0 -63
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/empty.js +0 -33
- package/dist/components/ui/expandable-data-table.d.ts +0 -24
- package/dist/components/ui/expandable-data-table.js +0 -62
- package/dist/components/ui/field.d.ts +0 -26
- package/dist/components/ui/field.js +0 -74
- package/dist/components/ui/file-upload-field-parts.d.ts +0 -21
- package/dist/components/ui/file-upload-field-parts.js +0 -55
- package/dist/components/ui/file-upload-field.d.ts +0 -16
- package/dist/components/ui/file-upload-field.js +0 -85
- package/dist/components/ui/form-context.d.ts +0 -23
- package/dist/components/ui/form-context.js +0 -35
- package/dist/components/ui/form-sheet.d.ts +0 -22
- package/dist/components/ui/form-sheet.js +0 -74
- package/dist/components/ui/form.d.ts +0 -12
- package/dist/components/ui/form.js +0 -38
- package/dist/components/ui/hover-card.d.ts +0 -10
- package/dist/components/ui/hover-card.js +0 -22
- package/dist/components/ui/input-group.d.ts +0 -16
- package/dist/components/ui/input-group.js +0 -62
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-otp.js +0 -21
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/input.js +0 -6
- package/dist/components/ui/item.d.ts +0 -24
- package/dist/components/ui/item.js +0 -73
- package/dist/components/ui/kbd.d.ts +0 -3
- package/dist/components/ui/kbd.js +0 -9
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/label.js +0 -7
- package/dist/components/ui/loading-state.d.ts +0 -27
- package/dist/components/ui/loading-state.js +0 -44
- package/dist/components/ui/menubar.d.ts +0 -30
- package/dist/components/ui/menubar.js +0 -63
- package/dist/components/ui/metrics-strip.d.ts +0 -7
- package/dist/components/ui/metrics-strip.js +0 -18
- package/dist/components/ui/native-select.d.ts +0 -7
- package/dist/components/ui/native-select.js +0 -13
- package/dist/components/ui/navigation-menu-variants.d.ts +0 -2
- package/dist/components/ui/navigation-menu-variants.js +0 -3
- package/dist/components/ui/navigation-menu.d.ts +0 -13
- package/dist/components/ui/navigation-menu.js +0 -30
- package/dist/components/ui/page-header.d.ts +0 -33
- package/dist/components/ui/page-header.js +0 -54
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/pagination.js +0 -29
- package/dist/components/ui/popover.d.ts +0 -14
- package/dist/components/ui/popover.js +0 -34
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/progress.js +0 -8
- package/dist/components/ui/property-list.d.ts +0 -6
- package/dist/components/ui/property-list.js +0 -15
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/radio-group.js +0 -11
- package/dist/components/ui/registry-docs-api.d.ts +0 -11
- package/dist/components/ui/registry-docs-api.js +0 -9
- package/dist/components/ui/registry-docs-code.d.ts +0 -19
- package/dist/components/ui/registry-docs-code.js +0 -78
- package/dist/components/ui/registry-docs-showcase.d.ts +0 -11
- package/dist/components/ui/registry-docs-showcase.js +0 -27
- package/dist/components/ui/registry-docs.d.ts +0 -27
- package/dist/components/ui/registry-docs.js +0 -32
- package/dist/components/ui/resizable.d.ts +0 -14
- package/dist/components/ui/resizable.js +0 -15
- package/dist/components/ui/scroll-area.d.ts +0 -7
- package/dist/components/ui/scroll-area.js +0 -10
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -38
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/separator.js +0 -7
- package/dist/components/ui/sheet.d.ts +0 -21
- package/dist/components/ui/sheet.js +0 -62
- package/dist/components/ui/sidebar/context.d.ts +0 -27
- package/dist/components/ui/sidebar/context.js +0 -23
- package/dist/components/ui/sidebar/group.d.ts +0 -10
- package/dist/components/ui/sidebar/group.js +0 -18
- package/dist/components/ui/sidebar/layout.d.ts +0 -17
- package/dist/components/ui/sidebar/layout.js +0 -78
- package/dist/components/ui/sidebar/menu.d.ts +0 -30
- package/dist/components/ui/sidebar/menu.js +0 -64
- package/dist/components/ui/sidebar/provider.d.ts +0 -7
- package/dist/components/ui/sidebar/provider.js +0 -53
- package/dist/components/ui/sidebar/rail.d.ts +0 -3
- package/dist/components/ui/sidebar/rail.js +0 -12
- package/dist/components/ui/sidebar/trigger.d.ts +0 -4
- package/dist/components/ui/sidebar/trigger.js +0 -16
- package/dist/components/ui/sidebar-account-menu-theme.d.ts +0 -7
- package/dist/components/ui/sidebar-account-menu-theme.js +0 -32
- package/dist/components/ui/sidebar-account-menu.d.ts +0 -16
- package/dist/components/ui/sidebar-account-menu.js +0 -51
- package/dist/components/ui/sidebar.d.ts +0 -7
- package/dist/components/ui/sidebar.js +0 -7
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.js +0 -15
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/slider.js +0 -9
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/sonner.js +0 -33
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.js +0 -16
- package/dist/components/ui/switch.d.ts +0 -6
- package/dist/components/ui/switch.js +0 -7
- package/dist/components/ui/table.d.ts +0 -21
- package/dist/components/ui/table.js +0 -34
- package/dist/components/ui/tabs-variants.d.ts +0 -6
- package/dist/components/ui/tabs-variants.js +0 -13
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.js +0 -17
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/textarea.js +0 -6
- package/dist/components/ui/toggle-group.d.ts +0 -9
- package/dist/components/ui/toggle-group.js +0 -24
- package/dist/components/ui/toggle-variants.d.ts +0 -7
- package/dist/components/ui/toggle-variants.js +0 -19
- package/dist/components/ui/toggle.d.ts +0 -5
- package/dist/components/ui/toggle.js +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -14
- package/dist/components/ui/tooltip.js +0 -25
- package/dist/components/ui/use-color-theme.d.ts +0 -2
- package/dist/components/ui/use-color-theme.js +0 -10
- package/dist/components/ui/workflow-timeline.d.ts +0 -20
- package/dist/components/ui/workflow-timeline.js +0 -92
- package/dist/components/walkthrough/presentation/WalkthroughCoach.d.ts +0 -14
- package/dist/components/walkthrough/presentation/WalkthroughCoach.js +0 -32
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.d.ts +0 -5
- package/dist/components/walkthrough/presentation/WalkthroughHighlight.js +0 -9
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.d.ts +0 -1
- package/dist/components/walkthrough/presentation/WalkthroughOverlay.js +0 -70
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.d.ts +0 -11
- package/dist/components/walkthrough/presentation/positionWalkthroughCoach.js +0 -24
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.d.ts +0 -4
- package/dist/components/walkthrough/presentation/useWalkthroughCoachPosition.js +0 -17
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.d.ts +0 -20
- package/dist/components/walkthrough/runtime/WalkthroughContextDefinition.js +0 -2
- package/dist/components/walkthrough/runtime/WalkthroughProvider.d.ts +0 -12
- package/dist/components/walkthrough/runtime/WalkthroughProvider.js +0 -190
- package/dist/components/walkthrough/runtime/useWalkthrough.d.ts +0 -1
- package/dist/components/walkthrough/runtime/useWalkthrough.js +0 -8
- package/dist/components/walkthrough/runtime/walkthroughEvents.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughEvents.js +0 -55
- package/dist/components/walkthrough/runtime/walkthroughLocation.d.ts +0 -2
- package/dist/components/walkthrough/runtime/walkthroughLocation.js +0 -27
- package/dist/components/walkthrough/runtime/walkthroughStorage.d.ts +0 -3
- package/dist/components/walkthrough/runtime/walkthroughStorage.js +0 -54
- package/dist/components/walkthrough/runtime/walkthroughTypes.d.ts +0 -32
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.d.ts +0 -2
- package/dist/components/walkthrough/targeting/listenForOutsideWalkthroughInteraction.js +0 -19
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.d.ts +0 -15
- package/dist/components/walkthrough/targeting/useWalkthroughTargetRect.js +0 -54
- package/dist/components/walkthrough/targeting/walkthroughTarget.d.ts +0 -6
- package/dist/components/walkthrough/targeting/walkthroughTarget.js +0 -24
- package/dist/components/walkthrough.d.ts +0 -4
- package/dist/components/walkthrough.js +0 -2
- package/dist/entries/accordion.d.ts +0 -1
- package/dist/entries/accordion.js +0 -1
- package/dist/entries/admin-users-page.d.ts +0 -1
- package/dist/entries/admin-users-page.js +0 -1
- package/dist/entries/admin-users-table.d.ts +0 -1
- package/dist/entries/admin-users-table.js +0 -1
- package/dist/entries/alert-dialog.d.ts +0 -1
- package/dist/entries/alert-dialog.js +0 -1
- package/dist/entries/alert.d.ts +0 -1
- package/dist/entries/alert.js +0 -1
- package/dist/entries/app-shell-page.d.ts +0 -1
- package/dist/entries/app-shell-page.js +0 -1
- package/dist/entries/app-shell.d.ts +0 -1
- package/dist/entries/app-shell.js +0 -1
- package/dist/entries/aspect-ratio.d.ts +0 -1
- package/dist/entries/aspect-ratio.js +0 -1
- package/dist/entries/avatar.d.ts +0 -1
- package/dist/entries/avatar.js +0 -1
- package/dist/entries/badge-variants.d.ts +0 -1
- package/dist/entries/badge-variants.js +0 -1
- package/dist/entries/badge.d.ts +0 -1
- package/dist/entries/badge.js +0 -1
- package/dist/entries/breadcrumb.d.ts +0 -1
- package/dist/entries/breadcrumb.js +0 -1
- package/dist/entries/button-group-variants.d.ts +0 -1
- package/dist/entries/button-group-variants.js +0 -1
- package/dist/entries/button-group.d.ts +0 -1
- package/dist/entries/button-group.js +0 -1
- package/dist/entries/button-variants.d.ts +0 -1
- package/dist/entries/button-variants.js +0 -1
- package/dist/entries/button.d.ts +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/calendar.d.ts +0 -1
- package/dist/entries/calendar.js +0 -1
- package/dist/entries/card.d.ts +0 -1
- package/dist/entries/card.js +0 -1
- package/dist/entries/carousel.d.ts +0 -1
- package/dist/entries/carousel.js +0 -1
- package/dist/entries/chart-context.d.ts +0 -1
- package/dist/entries/chart-context.js +0 -1
- package/dist/entries/chart-panel.d.ts +0 -1
- package/dist/entries/chart-panel.js +0 -1
- package/dist/entries/chart-tooltip.d.ts +0 -1
- package/dist/entries/chart-tooltip.js +0 -1
- package/dist/entries/chart.d.ts +0 -1
- package/dist/entries/chart.js +0 -1
- package/dist/entries/checkbox.d.ts +0 -1
- package/dist/entries/checkbox.js +0 -1
- package/dist/entries/ciridae-brand-assets.d.ts +0 -1
- package/dist/entries/ciridae-brand-assets.js +0 -1
- package/dist/entries/ciridae-ui-provider.d.ts +0 -1
- package/dist/entries/ciridae-ui-provider.js +0 -1
- package/dist/entries/collapsible.d.ts +0 -1
- package/dist/entries/collapsible.js +0 -1
- package/dist/entries/color-theme-context.d.ts +0 -1
- package/dist/entries/color-theme-context.js +0 -1
- package/dist/entries/color-theme.d.ts +0 -1
- package/dist/entries/color-theme.js +0 -1
- package/dist/entries/combobox-anchor.d.ts +0 -1
- package/dist/entries/combobox-anchor.js +0 -1
- package/dist/entries/combobox.d.ts +0 -1
- package/dist/entries/combobox.js +0 -1
- package/dist/entries/command.d.ts +0 -1
- package/dist/entries/command.js +0 -1
- package/dist/entries/comment-composer.d.ts +0 -1
- package/dist/entries/comment-composer.js +0 -1
- package/dist/entries/comment-item.d.ts +0 -1
- package/dist/entries/comment-item.js +0 -1
- package/dist/entries/comment-thread.d.ts +0 -1
- package/dist/entries/comment-thread.js +0 -1
- package/dist/entries/comment-types.d.ts +0 -1
- package/dist/entries/comment-types.js +0 -1
- package/dist/entries/context-menu.d.ts +0 -1
- package/dist/entries/context-menu.js +0 -1
- package/dist/entries/copy-field.d.ts +0 -1
- package/dist/entries/copy-field.js +0 -1
- package/dist/entries/data-table-column-settings.d.ts +0 -1
- package/dist/entries/data-table-column-settings.js +0 -1
- package/dist/entries/data-table-context.d.ts +0 -1
- package/dist/entries/data-table-context.js +0 -1
- package/dist/entries/data-table-controls.d.ts +0 -1
- package/dist/entries/data-table-controls.js +0 -1
- package/dist/entries/data-table-facet-filter.d.ts +0 -1
- package/dist/entries/data-table-facet-filter.js +0 -1
- package/dist/entries/data-table-grid.d.ts +0 -1
- package/dist/entries/data-table-grid.js +0 -1
- package/dist/entries/data-table-pagination.d.ts +0 -1
- package/dist/entries/data-table-pagination.js +0 -1
- package/dist/entries/data-table-search-input.d.ts +0 -1
- package/dist/entries/data-table-search-input.js +0 -1
- package/dist/entries/data-table-state.d.ts +0 -1
- package/dist/entries/data-table-state.js +0 -1
- package/dist/entries/data-table-tanstack.d.ts +0 -1
- package/dist/entries/data-table-tanstack.js +0 -1
- package/dist/entries/data-table.d.ts +0 -1
- package/dist/entries/data-table.js +0 -1
- package/dist/entries/dialog.d.ts +0 -1
- package/dist/entries/dialog.js +0 -1
- package/dist/entries/direction-context.d.ts +0 -1
- package/dist/entries/direction-context.js +0 -1
- package/dist/entries/direction.d.ts +0 -1
- package/dist/entries/direction.js +0 -1
- package/dist/entries/drawer.d.ts +0 -1
- package/dist/entries/drawer.js +0 -1
- package/dist/entries/dropdown-menu.d.ts +0 -1
- package/dist/entries/dropdown-menu.js +0 -1
- package/dist/entries/empty.d.ts +0 -1
- package/dist/entries/empty.js +0 -1
- package/dist/entries/expandable-data-table.d.ts +0 -1
- package/dist/entries/expandable-data-table.js +0 -1
- package/dist/entries/feedback-center-comments.d.ts +0 -1
- package/dist/entries/feedback-center-comments.js +0 -1
- package/dist/entries/feedback-center-footer.d.ts +0 -1
- package/dist/entries/feedback-center-footer.js +0 -1
- package/dist/entries/feedback-center-sheet-parts.d.ts +0 -1
- package/dist/entries/feedback-center-sheet-parts.js +0 -1
- package/dist/entries/feedback-center-sheet.d.ts +0 -1
- package/dist/entries/feedback-center-sheet.js +0 -1
- package/dist/entries/feedback-composer-parts.d.ts +0 -1
- package/dist/entries/feedback-composer-parts.js +0 -1
- package/dist/entries/feedback-composer-types.d.ts +0 -1
- package/dist/entries/feedback-composer-types.js +0 -1
- package/dist/entries/feedback-composer.d.ts +0 -1
- package/dist/entries/feedback-composer.js +0 -1
- package/dist/entries/feedback-date-format.d.ts +0 -1
- package/dist/entries/feedback-date-format.js +0 -1
- package/dist/entries/feedback-detail-sheet.d.ts +0 -1
- package/dist/entries/feedback-detail-sheet.js +0 -1
- package/dist/entries/feedback-emergency-fields.d.ts +0 -1
- package/dist/entries/feedback-emergency-fields.js +0 -1
- package/dist/entries/feedback-metrics.d.ts +0 -1
- package/dist/entries/feedback-metrics.js +0 -1
- package/dist/entries/feedback-sheet.d.ts +0 -1
- package/dist/entries/feedback-sheet.js +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page-parts.js +0 -1
- package/dist/entries/feedback-stakeholder-page.d.ts +0 -1
- package/dist/entries/feedback-stakeholder-page.js +0 -1
- package/dist/entries/feedback-status-badge.d.ts +0 -1
- package/dist/entries/feedback-status-badge.js +0 -1
- package/dist/entries/feedback-table-row.d.ts +0 -1
- package/dist/entries/feedback-table-row.js +0 -1
- package/dist/entries/feedback-table-sort.d.ts +0 -1
- package/dist/entries/feedback-table-sort.js +0 -1
- package/dist/entries/feedback-table.d.ts +0 -1
- package/dist/entries/feedback-table.js +0 -1
- package/dist/entries/feedback-tracking-types.d.ts +0 -1
- package/dist/entries/feedback-tracking-types.js +0 -1
- package/dist/entries/feedback-triage-timeline.d.ts +0 -1
- package/dist/entries/feedback-triage-timeline.js +0 -1
- package/dist/entries/feedback-type-badge.d.ts +0 -1
- package/dist/entries/feedback-type-badge.js +0 -1
- package/dist/entries/feedback-unread-badge.d.ts +0 -1
- package/dist/entries/feedback-unread-badge.js +0 -1
- package/dist/entries/feedback-user-detail.d.ts +0 -1
- package/dist/entries/feedback-user-detail.js +0 -1
- package/dist/entries/feedback-user-list.d.ts +0 -1
- package/dist/entries/feedback-user-list.js +0 -1
- package/dist/entries/field.d.ts +0 -1
- package/dist/entries/field.js +0 -1
- package/dist/entries/file-upload-field-parts.d.ts +0 -1
- package/dist/entries/file-upload-field-parts.js +0 -1
- package/dist/entries/file-upload-field.d.ts +0 -1
- package/dist/entries/file-upload-field.js +0 -1
- package/dist/entries/form-context.d.ts +0 -1
- package/dist/entries/form-context.js +0 -1
- package/dist/entries/form-sheet.d.ts +0 -1
- package/dist/entries/form-sheet.js +0 -1
- package/dist/entries/form.d.ts +0 -1
- package/dist/entries/form.js +0 -1
- package/dist/entries/generated-connect-link.d.ts +0 -1
- package/dist/entries/generated-connect-link.js +0 -1
- package/dist/entries/hover-card.d.ts +0 -1
- package/dist/entries/hover-card.js +0 -1
- package/dist/entries/input-group.d.ts +0 -1
- package/dist/entries/input-group.js +0 -1
- package/dist/entries/input-otp.d.ts +0 -1
- package/dist/entries/input-otp.js +0 -1
- package/dist/entries/input.d.ts +0 -1
- package/dist/entries/input.js +0 -1
- package/dist/entries/invite-user-sheet.d.ts +0 -1
- package/dist/entries/invite-user-sheet.js +0 -1
- package/dist/entries/item.d.ts +0 -1
- package/dist/entries/item.js +0 -1
- package/dist/entries/kanban-board-parts.d.ts +0 -1
- package/dist/entries/kanban-board-parts.js +0 -1
- package/dist/entries/kanban-board-utils.d.ts +0 -1
- package/dist/entries/kanban-board-utils.js +0 -1
- package/dist/entries/kanban-board.d.ts +0 -1
- package/dist/entries/kanban-board.js +0 -1
- package/dist/entries/kanban-card.d.ts +0 -1
- package/dist/entries/kanban-card.js +0 -1
- package/dist/entries/kanban-column.d.ts +0 -1
- package/dist/entries/kanban-column.js +0 -1
- package/dist/entries/kanban-detail-sheet.d.ts +0 -1
- package/dist/entries/kanban-detail-sheet.js +0 -1
- package/dist/entries/kanban-page.d.ts +0 -1
- package/dist/entries/kanban-page.js +0 -1
- package/dist/entries/kanban-types.d.ts +0 -1
- package/dist/entries/kanban-types.js +0 -1
- package/dist/entries/kbd.d.ts +0 -1
- package/dist/entries/kbd.js +0 -1
- package/dist/entries/label.d.ts +0 -1
- package/dist/entries/label.js +0 -1
- package/dist/entries/loading-state.d.ts +0 -1
- package/dist/entries/loading-state.js +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-grouped-tool-picker.js +0 -1
- package/dist/entries/mcp-access-tool-picker.d.ts +0 -1
- package/dist/entries/mcp-access-tool-picker.js +0 -1
- package/dist/entries/mcp-access-types.d.ts +0 -1
- package/dist/entries/mcp-access-types.js +0 -1
- package/dist/entries/mcp-client-setup.d.ts +0 -1
- package/dist/entries/mcp-client-setup.js +0 -1
- package/dist/entries/mcp-connect-clients.d.ts +0 -1
- package/dist/entries/mcp-connect-clients.js +0 -1
- package/dist/entries/mcp-plan-choice.d.ts +0 -1
- package/dist/entries/mcp-plan-choice.js +0 -1
- package/dist/entries/menubar.d.ts +0 -1
- package/dist/entries/menubar.js +0 -1
- package/dist/entries/metrics-strip.d.ts +0 -1
- package/dist/entries/metrics-strip.js +0 -1
- package/dist/entries/native-select.d.ts +0 -1
- package/dist/entries/native-select.js +0 -1
- package/dist/entries/navigation-menu-variants.d.ts +0 -1
- package/dist/entries/navigation-menu-variants.js +0 -1
- package/dist/entries/navigation-menu.d.ts +0 -1
- package/dist/entries/navigation-menu.js +0 -1
- package/dist/entries/page-header.d.ts +0 -1
- package/dist/entries/page-header.js +0 -1
- package/dist/entries/pagination.d.ts +0 -1
- package/dist/entries/pagination.js +0 -1
- package/dist/entries/palette.d.ts +0 -2
- package/dist/entries/palette.js +0 -2
- package/dist/entries/popover.d.ts +0 -1
- package/dist/entries/popover.js +0 -1
- package/dist/entries/progress.d.ts +0 -1
- package/dist/entries/progress.js +0 -1
- package/dist/entries/property-list.d.ts +0 -1
- package/dist/entries/property-list.js +0 -1
- package/dist/entries/radio-group.d.ts +0 -1
- package/dist/entries/radio-group.js +0 -1
- package/dist/entries/registry-docs-api.d.ts +0 -1
- package/dist/entries/registry-docs-api.js +0 -1
- package/dist/entries/registry-docs-code.d.ts +0 -1
- package/dist/entries/registry-docs-code.js +0 -1
- package/dist/entries/registry-docs-showcase.d.ts +0 -1
- package/dist/entries/registry-docs-showcase.js +0 -1
- package/dist/entries/registry-docs.d.ts +0 -1
- package/dist/entries/registry-docs.js +0 -1
- package/dist/entries/resizable.d.ts +0 -1
- package/dist/entries/resizable.js +0 -1
- package/dist/entries/scroll-area.d.ts +0 -1
- package/dist/entries/scroll-area.js +0 -1
- package/dist/entries/select.d.ts +0 -1
- package/dist/entries/select.js +0 -1
- package/dist/entries/separator.d.ts +0 -1
- package/dist/entries/separator.js +0 -1
- package/dist/entries/sheet.d.ts +0 -1
- package/dist/entries/sheet.js +0 -1
- package/dist/entries/sidebar/context.d.ts +0 -1
- package/dist/entries/sidebar/context.js +0 -1
- package/dist/entries/sidebar/group.d.ts +0 -1
- package/dist/entries/sidebar/group.js +0 -1
- package/dist/entries/sidebar/layout.d.ts +0 -1
- package/dist/entries/sidebar/layout.js +0 -1
- package/dist/entries/sidebar/menu.d.ts +0 -1
- package/dist/entries/sidebar/menu.js +0 -1
- package/dist/entries/sidebar/provider.d.ts +0 -1
- package/dist/entries/sidebar/provider.js +0 -1
- package/dist/entries/sidebar/rail.d.ts +0 -1
- package/dist/entries/sidebar/rail.js +0 -1
- package/dist/entries/sidebar/trigger.d.ts +0 -1
- package/dist/entries/sidebar/trigger.js +0 -1
- package/dist/entries/sidebar-account-menu-theme.d.ts +0 -1
- package/dist/entries/sidebar-account-menu-theme.js +0 -1
- package/dist/entries/sidebar-account-menu.d.ts +0 -1
- package/dist/entries/sidebar-account-menu.js +0 -1
- package/dist/entries/sidebar.d.ts +0 -1
- package/dist/entries/sidebar.js +0 -1
- package/dist/entries/skeleton.d.ts +0 -1
- package/dist/entries/skeleton.js +0 -1
- package/dist/entries/slider.d.ts +0 -1
- package/dist/entries/slider.js +0 -1
- package/dist/entries/sonner.d.ts +0 -1
- package/dist/entries/sonner.js +0 -1
- package/dist/entries/spinner.d.ts +0 -1
- package/dist/entries/spinner.js +0 -1
- package/dist/entries/submit-feedback-composer.d.ts +0 -1
- package/dist/entries/submit-feedback-composer.js +0 -1
- package/dist/entries/switch.d.ts +0 -1
- package/dist/entries/switch.js +0 -1
- package/dist/entries/table.d.ts +0 -1
- package/dist/entries/table.js +0 -1
- package/dist/entries/tabs-variants.d.ts +0 -1
- package/dist/entries/tabs-variants.js +0 -1
- package/dist/entries/tabs.d.ts +0 -1
- package/dist/entries/tabs.js +0 -1
- package/dist/entries/textarea.d.ts +0 -1
- package/dist/entries/textarea.js +0 -1
- package/dist/entries/timestamp-format.d.ts +0 -1
- package/dist/entries/timestamp-format.js +0 -1
- package/dist/entries/toggle-group.d.ts +0 -1
- package/dist/entries/toggle-group.js +0 -1
- package/dist/entries/toggle-variants.d.ts +0 -1
- package/dist/entries/toggle-variants.js +0 -1
- package/dist/entries/toggle.d.ts +0 -1
- package/dist/entries/toggle.js +0 -1
- package/dist/entries/tooltip.d.ts +0 -1
- package/dist/entries/tooltip.js +0 -1
- package/dist/entries/use-color-theme.d.ts +0 -1
- package/dist/entries/use-color-theme.js +0 -1
- package/dist/entries/use-feedback-composer-state.d.ts +0 -1
- package/dist/entries/use-feedback-composer-state.js +0 -1
- package/dist/entries/use-mobile.d.ts +0 -1
- package/dist/entries/use-mobile.js +0 -1
- package/dist/entries/utils.d.ts +0 -1
- package/dist/entries/utils.js +0 -1
- package/dist/entries/walkthrough.d.ts +0 -1
- package/dist/entries/walkthrough.js +0 -1
- package/dist/entries/workflow-timeline.d.ts +0 -1
- package/dist/entries/workflow-timeline.js +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/hooks/use-mobile.js +0 -17
- package/dist/lib/browser-storage.d.ts +0 -12
- package/dist/lib/browser-storage.js +0 -42
- package/dist/lib/palette-presets.d.ts +0 -17
- package/dist/lib/palette-presets.js +0 -42
- package/dist/lib/palette-tokens.d.ts +0 -39
- package/dist/lib/palette-tokens.js +0 -133
- package/dist/lib/palette.d.ts +0 -83
- package/dist/lib/palette.js +0 -151
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -8
- package/dist/style-imports.d.ts +0 -3
- /package/dist/{components/blocks/feedback-composer-types.js → feedback/comment-types.js} +0 -0
- /package/dist/{components/blocks/kanban-types.js → feedback/feedback-composer-types.js} +0 -0
- /package/dist/{components/walkthrough/runtime/walkthroughTypes.js → feedback/feedback-tracking-types.js} +0 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import type { FeedbackCreateRequest, FeedbackAttachment, FeedbackErrorDetail, FeedbackItem, FeedbackMessage, FeedbackMessageCreateRequest, FeedbackStatusEvent, FeedbackSummary, FeedbackUpdateRequest } from "./generated/types.gen.js";
|
|
2
|
+
declare const feedbackCreateHeadersSchema: import("zod/index.cjs").ZodObject<{
|
|
3
|
+
'Idempotency-Key': import("zod/index.cjs").ZodUUID;
|
|
4
|
+
'X-POSTHOG-SESSION-ID': import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodString>>;
|
|
5
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
6
|
+
declare const feedbackAttachmentSchema: import("zod/index.cjs").ZodObject<{
|
|
7
|
+
id: import("zod/index.cjs").ZodString;
|
|
8
|
+
name: import("zod/index.cjs").ZodString;
|
|
9
|
+
size: import("zod/index.cjs").ZodInt;
|
|
10
|
+
url: import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodURL>>;
|
|
11
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
12
|
+
declare const feedbackCreateInputSchema: import("zod/index.cjs").ZodObject<{
|
|
13
|
+
subject: import("zod/index.cjs").ZodString;
|
|
14
|
+
description: import("zod/index.cjs").ZodString;
|
|
15
|
+
type: import("zod/index.cjs").ZodEnum<{
|
|
16
|
+
general: "general";
|
|
17
|
+
bug: "bug";
|
|
18
|
+
feature: "feature";
|
|
19
|
+
}>;
|
|
20
|
+
urgency: import("zod/index.cjs").ZodDefault<import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodEnum<{
|
|
21
|
+
normal: "normal";
|
|
22
|
+
emergency: "emergency";
|
|
23
|
+
}>>>;
|
|
24
|
+
affectedScope: import("zod/index.cjs").ZodDefault<import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodEnum<{
|
|
25
|
+
unknown: "unknown";
|
|
26
|
+
everyone: "everyone";
|
|
27
|
+
just_me: "just_me";
|
|
28
|
+
my_team: "my_team";
|
|
29
|
+
}>>>;
|
|
30
|
+
}, import("zod/v4/core/schemas.cjs").$strict>;
|
|
31
|
+
declare const feedbackErrorResponseSchema: import("zod/index.cjs").ZodObject<{
|
|
32
|
+
detail: import("zod/index.cjs").ZodObject<{
|
|
33
|
+
code: import("zod/index.cjs").ZodEnum<{
|
|
34
|
+
feedback_access_denied: "feedback_access_denied";
|
|
35
|
+
feedback_auth_unavailable: "feedback_auth_unavailable";
|
|
36
|
+
feedback_invalid_token: "feedback_invalid_token";
|
|
37
|
+
feedback_not_editable: "feedback_not_editable";
|
|
38
|
+
feedback_not_found: "feedback_not_found";
|
|
39
|
+
feedback_not_replyable: "feedback_not_replyable";
|
|
40
|
+
feedback_scope_not_found: "feedback_scope_not_found";
|
|
41
|
+
feedback_unavailable: "feedback_unavailable";
|
|
42
|
+
}>;
|
|
43
|
+
detail: import("zod/index.cjs").ZodString;
|
|
44
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
45
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
46
|
+
declare const feedbackItemSchema: import("zod/index.cjs").ZodObject<{
|
|
47
|
+
id: import("zod/index.cjs").ZodUUID;
|
|
48
|
+
subject: import("zod/index.cjs").ZodString;
|
|
49
|
+
description: import("zod/index.cjs").ZodString;
|
|
50
|
+
type: import("zod/index.cjs").ZodEnum<{
|
|
51
|
+
general: "general";
|
|
52
|
+
bug: "bug";
|
|
53
|
+
feature: "feature";
|
|
54
|
+
}>;
|
|
55
|
+
urgency: import("zod/index.cjs").ZodEnum<{
|
|
56
|
+
normal: "normal";
|
|
57
|
+
emergency: "emergency";
|
|
58
|
+
}>;
|
|
59
|
+
affectedScope: import("zod/index.cjs").ZodEnum<{
|
|
60
|
+
unknown: "unknown";
|
|
61
|
+
everyone: "everyone";
|
|
62
|
+
just_me: "just_me";
|
|
63
|
+
my_team: "my_team";
|
|
64
|
+
}>;
|
|
65
|
+
status: import("zod/index.cjs").ZodEnum<{
|
|
66
|
+
in_progress: "in_progress";
|
|
67
|
+
completed: "completed";
|
|
68
|
+
received: "received";
|
|
69
|
+
discussion_required: "discussion_required";
|
|
70
|
+
no_action: "no_action";
|
|
71
|
+
withdrawn: "withdrawn";
|
|
72
|
+
}>;
|
|
73
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
74
|
+
updatedAt: import("zod/index.cjs").ZodISODateTime;
|
|
75
|
+
canEdit: import("zod/index.cjs").ZodBoolean;
|
|
76
|
+
canWithdraw: import("zod/index.cjs").ZodBoolean;
|
|
77
|
+
canReply: import("zod/index.cjs").ZodBoolean;
|
|
78
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
79
|
+
updatedAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
80
|
+
statusTimeline: import("zod/index.cjs").ZodArray<import("zod/index.cjs").ZodObject<{
|
|
81
|
+
id: import("zod/index.cjs").ZodString;
|
|
82
|
+
status: import("zod/index.cjs").ZodEnum<{
|
|
83
|
+
in_progress: "in_progress";
|
|
84
|
+
completed: "completed";
|
|
85
|
+
received: "received";
|
|
86
|
+
discussion_required: "discussion_required";
|
|
87
|
+
no_action: "no_action";
|
|
88
|
+
withdrawn: "withdrawn";
|
|
89
|
+
}>;
|
|
90
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
91
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
92
|
+
}, import("zod/v4/core/schemas.cjs").$strip>>;
|
|
93
|
+
messages: import("zod/index.cjs").ZodArray<import("zod/index.cjs").ZodObject<{
|
|
94
|
+
id: import("zod/index.cjs").ZodString;
|
|
95
|
+
author: import("zod/index.cjs").ZodObject<{
|
|
96
|
+
role: import("zod/index.cjs").ZodEnum<{
|
|
97
|
+
operator: "operator";
|
|
98
|
+
reporter: "reporter";
|
|
99
|
+
}>;
|
|
100
|
+
name: import("zod/index.cjs").ZodString;
|
|
101
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
102
|
+
body: import("zod/index.cjs").ZodString;
|
|
103
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
104
|
+
editedAt: import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodISODateTime>;
|
|
105
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
106
|
+
editedAt_epoch_milliseconds: import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodInt>;
|
|
107
|
+
}, import("zod/v4/core/schemas.cjs").$strip>>;
|
|
108
|
+
attachments: import("zod/index.cjs").ZodDefault<import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodArray<import("zod/index.cjs").ZodObject<{
|
|
109
|
+
id: import("zod/index.cjs").ZodString;
|
|
110
|
+
name: import("zod/index.cjs").ZodString;
|
|
111
|
+
size: import("zod/index.cjs").ZodInt;
|
|
112
|
+
url: import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodURL>>;
|
|
113
|
+
}, import("zod/v4/core/schemas.cjs").$strip>>>>;
|
|
114
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
115
|
+
declare const feedbackListResponseSchema: import("zod/index.cjs").ZodObject<{
|
|
116
|
+
items: import("zod/index.cjs").ZodArray<import("zod/index.cjs").ZodObject<{
|
|
117
|
+
id: import("zod/index.cjs").ZodUUID;
|
|
118
|
+
subject: import("zod/index.cjs").ZodString;
|
|
119
|
+
description: import("zod/index.cjs").ZodString;
|
|
120
|
+
type: import("zod/index.cjs").ZodEnum<{
|
|
121
|
+
general: "general";
|
|
122
|
+
bug: "bug";
|
|
123
|
+
feature: "feature";
|
|
124
|
+
}>;
|
|
125
|
+
urgency: import("zod/index.cjs").ZodEnum<{
|
|
126
|
+
normal: "normal";
|
|
127
|
+
emergency: "emergency";
|
|
128
|
+
}>;
|
|
129
|
+
affectedScope: import("zod/index.cjs").ZodEnum<{
|
|
130
|
+
unknown: "unknown";
|
|
131
|
+
everyone: "everyone";
|
|
132
|
+
just_me: "just_me";
|
|
133
|
+
my_team: "my_team";
|
|
134
|
+
}>;
|
|
135
|
+
status: import("zod/index.cjs").ZodEnum<{
|
|
136
|
+
in_progress: "in_progress";
|
|
137
|
+
completed: "completed";
|
|
138
|
+
received: "received";
|
|
139
|
+
discussion_required: "discussion_required";
|
|
140
|
+
no_action: "no_action";
|
|
141
|
+
withdrawn: "withdrawn";
|
|
142
|
+
}>;
|
|
143
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
144
|
+
updatedAt: import("zod/index.cjs").ZodISODateTime;
|
|
145
|
+
canEdit: import("zod/index.cjs").ZodBoolean;
|
|
146
|
+
canWithdraw: import("zod/index.cjs").ZodBoolean;
|
|
147
|
+
canReply: import("zod/index.cjs").ZodBoolean;
|
|
148
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
149
|
+
updatedAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
150
|
+
}, import("zod/v4/core/schemas.cjs").$strip>>;
|
|
151
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
152
|
+
declare const feedbackMessageCreateInputSchema: import("zod/index.cjs").ZodObject<{
|
|
153
|
+
body: import("zod/index.cjs").ZodString;
|
|
154
|
+
}, import("zod/v4/core/schemas.cjs").$strict>;
|
|
155
|
+
declare const feedbackMessageSchema: import("zod/index.cjs").ZodObject<{
|
|
156
|
+
id: import("zod/index.cjs").ZodString;
|
|
157
|
+
author: import("zod/index.cjs").ZodObject<{
|
|
158
|
+
role: import("zod/index.cjs").ZodEnum<{
|
|
159
|
+
operator: "operator";
|
|
160
|
+
reporter: "reporter";
|
|
161
|
+
}>;
|
|
162
|
+
name: import("zod/index.cjs").ZodString;
|
|
163
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
164
|
+
body: import("zod/index.cjs").ZodString;
|
|
165
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
166
|
+
editedAt: import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodISODateTime>;
|
|
167
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
168
|
+
editedAt_epoch_milliseconds: import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodInt>;
|
|
169
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
170
|
+
declare const feedbackStatusEventSchema: import("zod/index.cjs").ZodObject<{
|
|
171
|
+
id: import("zod/index.cjs").ZodString;
|
|
172
|
+
status: import("zod/index.cjs").ZodEnum<{
|
|
173
|
+
in_progress: "in_progress";
|
|
174
|
+
completed: "completed";
|
|
175
|
+
received: "received";
|
|
176
|
+
discussion_required: "discussion_required";
|
|
177
|
+
no_action: "no_action";
|
|
178
|
+
withdrawn: "withdrawn";
|
|
179
|
+
}>;
|
|
180
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
181
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
182
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
183
|
+
declare const feedbackStatusSchema: import("zod/index.cjs").ZodEnum<{
|
|
184
|
+
in_progress: "in_progress";
|
|
185
|
+
completed: "completed";
|
|
186
|
+
received: "received";
|
|
187
|
+
discussion_required: "discussion_required";
|
|
188
|
+
no_action: "no_action";
|
|
189
|
+
withdrawn: "withdrawn";
|
|
190
|
+
}>;
|
|
191
|
+
declare const feedbackSummarySchema: import("zod/index.cjs").ZodObject<{
|
|
192
|
+
id: import("zod/index.cjs").ZodUUID;
|
|
193
|
+
subject: import("zod/index.cjs").ZodString;
|
|
194
|
+
description: import("zod/index.cjs").ZodString;
|
|
195
|
+
type: import("zod/index.cjs").ZodEnum<{
|
|
196
|
+
general: "general";
|
|
197
|
+
bug: "bug";
|
|
198
|
+
feature: "feature";
|
|
199
|
+
}>;
|
|
200
|
+
urgency: import("zod/index.cjs").ZodEnum<{
|
|
201
|
+
normal: "normal";
|
|
202
|
+
emergency: "emergency";
|
|
203
|
+
}>;
|
|
204
|
+
affectedScope: import("zod/index.cjs").ZodEnum<{
|
|
205
|
+
unknown: "unknown";
|
|
206
|
+
everyone: "everyone";
|
|
207
|
+
just_me: "just_me";
|
|
208
|
+
my_team: "my_team";
|
|
209
|
+
}>;
|
|
210
|
+
status: import("zod/index.cjs").ZodEnum<{
|
|
211
|
+
in_progress: "in_progress";
|
|
212
|
+
completed: "completed";
|
|
213
|
+
received: "received";
|
|
214
|
+
discussion_required: "discussion_required";
|
|
215
|
+
no_action: "no_action";
|
|
216
|
+
withdrawn: "withdrawn";
|
|
217
|
+
}>;
|
|
218
|
+
createdAt: import("zod/index.cjs").ZodISODateTime;
|
|
219
|
+
updatedAt: import("zod/index.cjs").ZodISODateTime;
|
|
220
|
+
canEdit: import("zod/index.cjs").ZodBoolean;
|
|
221
|
+
canWithdraw: import("zod/index.cjs").ZodBoolean;
|
|
222
|
+
canReply: import("zod/index.cjs").ZodBoolean;
|
|
223
|
+
createdAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
224
|
+
updatedAt_epoch_milliseconds: import("zod/index.cjs").ZodInt;
|
|
225
|
+
}, import("zod/v4/core/schemas.cjs").$strip>;
|
|
226
|
+
declare const feedbackTypeSchema: import("zod/index.cjs").ZodEnum<{
|
|
227
|
+
general: "general";
|
|
228
|
+
bug: "bug";
|
|
229
|
+
feature: "feature";
|
|
230
|
+
}>;
|
|
231
|
+
declare const feedbackUpdateInputSchema: import("zod/index.cjs").ZodObject<{
|
|
232
|
+
subject: import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodString>>;
|
|
233
|
+
description: import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodNullable<import("zod/index.cjs").ZodString>>;
|
|
234
|
+
}, import("zod/v4/core/schemas.cjs").$strict>;
|
|
235
|
+
declare const feedbackMaxLengths: {
|
|
236
|
+
readonly description: number;
|
|
237
|
+
readonly subject: number;
|
|
238
|
+
};
|
|
239
|
+
/** How many files one create request takes, and the most bytes each may hold. */
|
|
240
|
+
declare const feedbackAttachmentLimits: {
|
|
241
|
+
readonly count: number;
|
|
242
|
+
readonly bytes: number;
|
|
243
|
+
};
|
|
244
|
+
type FeedbackAffectedScope = FeedbackSummary["affectedScope"];
|
|
245
|
+
type FeedbackCreateInput = FeedbackCreateRequest;
|
|
246
|
+
type FeedbackErrorCode = FeedbackErrorDetail["code"];
|
|
247
|
+
type FeedbackMessageCreateInput = FeedbackMessageCreateRequest;
|
|
248
|
+
type FeedbackStatus = FeedbackSummary["status"];
|
|
249
|
+
type FeedbackType = FeedbackSummary["type"];
|
|
250
|
+
type FeedbackUrgency = FeedbackSummary["urgency"];
|
|
251
|
+
type FeedbackUpdateInput = FeedbackUpdateRequest;
|
|
252
|
+
export { feedbackAttachmentLimits, feedbackAttachmentSchema, type FeedbackAttachment, feedbackCreateHeadersSchema, feedbackCreateInputSchema, feedbackErrorResponseSchema, feedbackItemSchema, feedbackListResponseSchema, feedbackMessageCreateInputSchema, feedbackMessageSchema, feedbackMaxLengths, feedbackStatusEventSchema, feedbackStatusSchema, feedbackSummarySchema, feedbackTypeSchema, feedbackUpdateInputSchema, type FeedbackAffectedScope, type FeedbackCreateInput, type FeedbackErrorCode, type FeedbackItem, type FeedbackMessage, type FeedbackMessageCreateInput, type FeedbackStatus, type FeedbackStatusEvent, type FeedbackSummary, type FeedbackType, type FeedbackUrgency, type FeedbackUpdateInput, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { zBodyCreateFeedbackV1ProjectsProjectIdEnvironmentsEnvironmentFeedbackPost, zCreateFeedbackV1ProjectsProjectIdEnvironmentsEnvironmentFeedbackPostHeaders, zFeedbackCreateRequest, zFeedbackAttachment, zFeedbackErrorResponse, zFeedbackItem, zFeedbackListResponse, zFeedbackMessage, zFeedbackMessageCreateRequest, zFeedbackStatusEvent, zFeedbackSummary, zFeedbackUpdateRequest, } from "./generated/zod.gen.js";
|
|
2
|
+
const feedbackCreateHeadersSchema = zCreateFeedbackV1ProjectsProjectIdEnvironmentsEnvironmentFeedbackPostHeaders;
|
|
3
|
+
const feedbackAttachmentSchema = zFeedbackAttachment;
|
|
4
|
+
const feedbackCreateInputSchema = zFeedbackCreateRequest;
|
|
5
|
+
const feedbackErrorResponseSchema = zFeedbackErrorResponse;
|
|
6
|
+
const feedbackItemSchema = zFeedbackItem;
|
|
7
|
+
const feedbackListResponseSchema = zFeedbackListResponse;
|
|
8
|
+
const feedbackMessageCreateInputSchema = zFeedbackMessageCreateRequest;
|
|
9
|
+
const feedbackMessageSchema = zFeedbackMessage;
|
|
10
|
+
const feedbackStatusEventSchema = zFeedbackStatusEvent;
|
|
11
|
+
const feedbackStatusSchema = zFeedbackSummary.shape.status;
|
|
12
|
+
const feedbackSummarySchema = zFeedbackSummary;
|
|
13
|
+
const feedbackTypeSchema = zFeedbackCreateRequest.shape.type;
|
|
14
|
+
const feedbackUpdateInputSchema = zFeedbackUpdateRequest;
|
|
15
|
+
const feedbackMaxLengths = {
|
|
16
|
+
description: requireMaximum(zFeedbackCreateRequest.shape.description.maxLength, "description"),
|
|
17
|
+
subject: requireMaximum(zFeedbackCreateRequest.shape.subject.maxLength, "subject"),
|
|
18
|
+
};
|
|
19
|
+
const feedbackFilesMaximum = zBodyCreateFeedbackV1ProjectsProjectIdEnvironmentsEnvironmentFeedbackPost.shape.files
|
|
20
|
+
.unwrap()
|
|
21
|
+
.unwrap()._zod.bag.maximum;
|
|
22
|
+
/** How many files one create request takes, and the most bytes each may hold. */
|
|
23
|
+
const feedbackAttachmentLimits = {
|
|
24
|
+
count: requireMaximum(typeof feedbackFilesMaximum === "number" ? feedbackFilesMaximum : null, "files"),
|
|
25
|
+
bytes: requireMaximum(zFeedbackAttachment.shape.size.maxValue, "attachment size"),
|
|
26
|
+
};
|
|
27
|
+
function requireMaximum(value, field) {
|
|
28
|
+
if (value === null)
|
|
29
|
+
throw new Error(`Feedback contract is missing the ${field} maximum.`);
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
export { feedbackAttachmentLimits, feedbackAttachmentSchema, feedbackCreateHeadersSchema, feedbackCreateInputSchema, feedbackErrorResponseSchema, feedbackItemSchema, feedbackListResponseSchema, feedbackMessageCreateInputSchema, feedbackMessageSchema, feedbackMaxLengths, feedbackStatusEventSchema, feedbackStatusSchema, feedbackSummarySchema, feedbackTypeSchema, feedbackUpdateInputSchema, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FeedbackItem, FeedbackMessage } from "./contract.js";
|
|
2
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
declare function cacheCreatedFeedbackItem(queryClient: QueryClient, queryRoot: readonly string[], item: FeedbackItem): Promise<void>;
|
|
4
|
+
declare function refreshFeedbackItem(queryClient: QueryClient, queryRoot: readonly string[], item: FeedbackItem): Promise<void>;
|
|
5
|
+
declare function appendFeedbackMessage(queryClient: QueryClient, queryRoot: readonly string[], feedbackId: string, message: FeedbackMessage): Promise<void>;
|
|
6
|
+
export { appendFeedbackMessage, cacheCreatedFeedbackItem, refreshFeedbackItem };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
async function cacheCreatedFeedbackItem(queryClient, queryRoot, item) {
|
|
2
|
+
const itemsKey = [...queryRoot, "items"];
|
|
3
|
+
await queryClient.cancelQueries({ queryKey: itemsKey, exact: true });
|
|
4
|
+
queryClient.setQueryData(itemsKey, (summaries = []) => [
|
|
5
|
+
item,
|
|
6
|
+
...summaries.filter((summary) => summary.id !== item.id),
|
|
7
|
+
]);
|
|
8
|
+
return queryClient.invalidateQueries({ queryKey: itemsKey, exact: true });
|
|
9
|
+
}
|
|
10
|
+
async function refreshFeedbackItem(queryClient, queryRoot, item) {
|
|
11
|
+
const itemKey = [...queryRoot, "item", item.id];
|
|
12
|
+
const itemsKey = [...queryRoot, "items"];
|
|
13
|
+
await Promise.all([
|
|
14
|
+
queryClient.cancelQueries({ queryKey: itemKey, exact: true }),
|
|
15
|
+
queryClient.cancelQueries({ queryKey: itemsKey, exact: true }),
|
|
16
|
+
]);
|
|
17
|
+
queryClient.setQueryData(itemKey, (cached) => cached
|
|
18
|
+
? {
|
|
19
|
+
...item,
|
|
20
|
+
messages: mergeFeedbackMessages(item.messages, cached.messages),
|
|
21
|
+
}
|
|
22
|
+
: item);
|
|
23
|
+
queryClient.setQueryData(itemsKey, (summaries) => summaries?.map((summary) => (summary.id === item.id ? item : summary)));
|
|
24
|
+
return queryClient.invalidateQueries({ queryKey: itemsKey, exact: true });
|
|
25
|
+
}
|
|
26
|
+
async function appendFeedbackMessage(queryClient, queryRoot, feedbackId, message) {
|
|
27
|
+
const itemKey = [...queryRoot, "item", feedbackId];
|
|
28
|
+
await queryClient.cancelQueries({ queryKey: itemKey, exact: true });
|
|
29
|
+
let updated = false;
|
|
30
|
+
queryClient.setQueryData(itemKey, (item) => {
|
|
31
|
+
if (!item)
|
|
32
|
+
return item;
|
|
33
|
+
updated = true;
|
|
34
|
+
if (item.messages.some((existing) => existing.id === message.id))
|
|
35
|
+
return item;
|
|
36
|
+
return {
|
|
37
|
+
...item,
|
|
38
|
+
messages: [...item.messages, message],
|
|
39
|
+
updatedAt: message.createdAt,
|
|
40
|
+
updatedAt_epoch_milliseconds: message.createdAt_epoch_milliseconds,
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
const invalidations = [
|
|
44
|
+
queryClient.invalidateQueries({ queryKey: [...queryRoot, "items"], exact: true }),
|
|
45
|
+
];
|
|
46
|
+
if (!updated) {
|
|
47
|
+
invalidations.push(queryClient.invalidateQueries({ queryKey: itemKey, exact: true }));
|
|
48
|
+
}
|
|
49
|
+
await Promise.all(invalidations);
|
|
50
|
+
}
|
|
51
|
+
function mergeFeedbackMessages(serverMessages, cachedMessages) {
|
|
52
|
+
const serverMessageIds = new Set(serverMessages.map((message) => message.id));
|
|
53
|
+
return [
|
|
54
|
+
...serverMessages,
|
|
55
|
+
...cachedMessages.filter((message) => !serverMessageIds.has(message.id)),
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
export { appendFeedbackMessage, cacheCreatedFeedbackItem, refreshFeedbackItem };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CommentItemData } from "./comment-types.js";
|
|
2
|
+
import type { FeedbackItem, FeedbackMessage, FeedbackSummary } from "./contract.js";
|
|
3
|
+
import type { UserFeedbackItem } from "./feedback-tracking-types.js";
|
|
4
|
+
declare function toPresentationItem(item: FeedbackSummary): UserFeedbackItem;
|
|
5
|
+
declare function toCommentsByFeedbackId(feedbackId: string | undefined, messages: FeedbackMessage[]): Record<string, CommentItemData[]>;
|
|
6
|
+
declare function canReply(feedbackId: string, summaries: FeedbackSummary[], detail: FeedbackItem | undefined): boolean;
|
|
7
|
+
declare function requireSelectedId(selectedId: string | undefined): string;
|
|
8
|
+
export { canReply, requireSelectedId, toCommentsByFeedbackId, toPresentationItem };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function toPresentationItem(item) {
|
|
2
|
+
return {
|
|
3
|
+
affectedScope: item.affectedScope,
|
|
4
|
+
description: item.description,
|
|
5
|
+
id: item.id,
|
|
6
|
+
status: item.status,
|
|
7
|
+
subject: item.subject,
|
|
8
|
+
submittedAt: item.createdAt,
|
|
9
|
+
type: item.type,
|
|
10
|
+
updatedAt: item.updatedAt,
|
|
11
|
+
urgency: item.urgency,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function toCommentsByFeedbackId(feedbackId, messages) {
|
|
15
|
+
if (!feedbackId)
|
|
16
|
+
return {};
|
|
17
|
+
return {
|
|
18
|
+
[feedbackId]: messages.map((message) => ({
|
|
19
|
+
author: { id: message.author.role, name: message.author.name },
|
|
20
|
+
body: message.body,
|
|
21
|
+
createdAt: message.createdAt,
|
|
22
|
+
id: message.id,
|
|
23
|
+
updatedAt: message.editedAt ?? undefined,
|
|
24
|
+
})),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function canReply(feedbackId, summaries, detail) {
|
|
28
|
+
if (detail?.id === feedbackId)
|
|
29
|
+
return detail.canReply;
|
|
30
|
+
return summaries.find((item) => item.id === feedbackId)?.canReply ?? false;
|
|
31
|
+
}
|
|
32
|
+
function requireSelectedId(selectedId) {
|
|
33
|
+
if (!selectedId)
|
|
34
|
+
throw new Error("Feedback selection is required.");
|
|
35
|
+
return selectedId;
|
|
36
|
+
}
|
|
37
|
+
export { canReply, requireSelectedId, toCommentsByFeedbackId, toPresentationItem };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FeedbackAffectedScope, FeedbackType, FeedbackUrgency } from "./contract.js";
|
|
2
|
+
/** What a feedback composer submits: the create request's fields plus the files to attach. */
|
|
3
|
+
type FeedbackSubmitValues = {
|
|
4
|
+
affectedScope: FeedbackAffectedScope;
|
|
5
|
+
attachments: File[];
|
|
6
|
+
description: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
type: FeedbackType;
|
|
9
|
+
urgency: FeedbackUrgency;
|
|
10
|
+
};
|
|
11
|
+
export type { FeedbackSubmitValues };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type FeedbackClientConfig } from "./client.js";
|
|
2
|
+
import type { CommentItemData } from "./comment-types.js";
|
|
3
|
+
import type { FeedbackItem, FeedbackSummary, FeedbackUpdateInput } from "./contract.js";
|
|
4
|
+
import type { FeedbackSubmitValues } from "./feedback-composer-types.js";
|
|
5
|
+
type FeedbackControllerConfig = FeedbackClientConfig & {
|
|
6
|
+
cacheScope: string;
|
|
7
|
+
};
|
|
8
|
+
type FeedbackControllerOptions = {
|
|
9
|
+
active: boolean;
|
|
10
|
+
config: FeedbackControllerConfig;
|
|
11
|
+
onFeedbackCreated?: (item: FeedbackItem) => void;
|
|
12
|
+
};
|
|
13
|
+
declare function useFeedbackController({ active, config, onFeedbackCreated }: FeedbackControllerOptions): {
|
|
14
|
+
createMutation: import("@tanstack/react-query/build/legacy").UseMutationResult<FeedbackItem, Error, {
|
|
15
|
+
queryRoot: readonly string[];
|
|
16
|
+
values: FeedbackSubmitValues;
|
|
17
|
+
}, unknown>;
|
|
18
|
+
messageMutation: import("@tanstack/react-query/build/legacy").UseMutationResult<import("./contract.js").FeedbackMessage, Error, {
|
|
19
|
+
body: string;
|
|
20
|
+
feedbackId: string;
|
|
21
|
+
queryRoot: readonly string[];
|
|
22
|
+
}, void>;
|
|
23
|
+
messageStates: Record<string, FeedbackMessageMutationState>;
|
|
24
|
+
updateMutation: import("@tanstack/react-query/build/legacy").UseMutationResult<FeedbackItem, Error, {
|
|
25
|
+
feedbackId: string;
|
|
26
|
+
input: FeedbackUpdateInput;
|
|
27
|
+
queryRoot: readonly string[];
|
|
28
|
+
}, unknown>;
|
|
29
|
+
withdrawMutation: import("@tanstack/react-query/build/legacy").UseMutationResult<FeedbackItem, Error, {
|
|
30
|
+
feedbackId: string;
|
|
31
|
+
queryRoot: readonly string[];
|
|
32
|
+
}, unknown>;
|
|
33
|
+
uploadStatus: string | undefined;
|
|
34
|
+
getAttachmentUrl: (feedbackId: string, attachmentId: string) => Promise<string>;
|
|
35
|
+
comments: Record<string, CommentItemData[]>;
|
|
36
|
+
createFeedback: (values: FeedbackSubmitValues) => Promise<FeedbackItem>;
|
|
37
|
+
createMessage: (feedbackId: string, body: string) => Promise<import("./contract.js").FeedbackMessage>;
|
|
38
|
+
detailQuery: import("@tanstack/react-query/build/legacy").UseQueryResult<NoInfer<FeedbackItem>, Error>;
|
|
39
|
+
items: import("./feedback-tracking-types.js").UserFeedbackItem[];
|
|
40
|
+
itemsQuery: import("@tanstack/react-query/build/legacy").UseQueryResult<NoInfer<FeedbackSummary[]>, Error>;
|
|
41
|
+
isMessageSubmitting: boolean;
|
|
42
|
+
messageError: Error | null;
|
|
43
|
+
selectedDetail: NoInfer<FeedbackItem> | undefined;
|
|
44
|
+
selectedId: string | undefined;
|
|
45
|
+
selectedSummary: FeedbackSummary | undefined;
|
|
46
|
+
selectionScope: string;
|
|
47
|
+
setSelectedId: (feedbackId: string | undefined) => void;
|
|
48
|
+
summaries: FeedbackSummary[];
|
|
49
|
+
updateFeedback: (feedbackId: string, input: FeedbackUpdateInput) => Promise<FeedbackItem>;
|
|
50
|
+
withdrawFeedback: (feedbackId: string) => Promise<FeedbackItem>;
|
|
51
|
+
};
|
|
52
|
+
type FeedbackMessageMutationState = {
|
|
53
|
+
error?: Error;
|
|
54
|
+
isPending: boolean;
|
|
55
|
+
};
|
|
56
|
+
export { type FeedbackControllerConfig, useFeedbackController };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createFeedbackClient } from "./client.js";
|
|
4
|
+
import { appendFeedbackMessage, cacheCreatedFeedbackItem, refreshFeedbackItem, } from "./feedback-cache.js";
|
|
5
|
+
import { canReply, requireSelectedId, toCommentsByFeedbackId, toPresentationItem, } from "./feedback-center-model.js";
|
|
6
|
+
import { requireConfig } from "./require-config.js";
|
|
7
|
+
import { submitFeedbackWithAttachments } from "./submit-feedback-with-attachments.js";
|
|
8
|
+
function useFeedbackController({ active, config, onFeedbackCreated }) {
|
|
9
|
+
const client = useFeedbackClient(config);
|
|
10
|
+
const normalizedCacheScope = requireConfig(config.cacheScope, "cacheScope");
|
|
11
|
+
const queryClient = useQueryClient();
|
|
12
|
+
const queryRoot = React.useMemo(() => ["feedback", client.baseUrl, normalizedCacheScope], [client.baseUrl, normalizedCacheScope]);
|
|
13
|
+
const selectionScope = JSON.stringify([client.baseUrl, normalizedCacheScope]);
|
|
14
|
+
const [selection, setSelection] = React.useState({ scope: selectionScope });
|
|
15
|
+
React.useEffect(() => {
|
|
16
|
+
setSelection((current) => current.scope === selectionScope ? current : { scope: selectionScope });
|
|
17
|
+
}, [selectionScope]);
|
|
18
|
+
const selectedId = selection.scope === selectionScope ? selection.feedbackId : undefined;
|
|
19
|
+
const { detailQuery, itemsQuery } = useFeedbackQueries(client, queryRoot, active, selectedId);
|
|
20
|
+
const mutations = useFeedbackMutations({ client, onFeedbackCreated, queryClient });
|
|
21
|
+
const summaries = itemsQuery.data ?? [];
|
|
22
|
+
const selectedSummary = summaries.find((item) => item.id === selectedId);
|
|
23
|
+
const selectedDetail = detailQuery.data?.id === selectedId ? detailQuery.data : undefined;
|
|
24
|
+
const comments = selectedDetail
|
|
25
|
+
? toCommentsByFeedbackId(selectedDetail.id, selectedDetail.messages)
|
|
26
|
+
: {};
|
|
27
|
+
const createFeedback = (values) => mutations.createMutation.mutateAsync({ queryRoot, values });
|
|
28
|
+
const createMessage = (feedbackId, body) => mutations.messageMutation.mutateAsync({ body, feedbackId, queryRoot });
|
|
29
|
+
const messageState = getMessageState(mutations.messageStates, queryRoot, selectedId);
|
|
30
|
+
const isMessageSubmitting = messageState?.isPending ?? false;
|
|
31
|
+
const messageError = getMessageError(messageState, selectedId, summaries, detailQuery.data);
|
|
32
|
+
const updateFeedback = (feedbackId, input) => mutations.updateMutation.mutateAsync({ feedbackId, input, queryRoot });
|
|
33
|
+
const withdrawFeedback = (feedbackId) => mutations.withdrawMutation.mutateAsync({ feedbackId, queryRoot });
|
|
34
|
+
const setSelectedId = (feedbackId) => setSelection({ feedbackId, scope: selectionScope });
|
|
35
|
+
return {
|
|
36
|
+
getAttachmentUrl: (feedbackId, attachmentId) => client.getAttachmentUrl(feedbackId, attachmentId),
|
|
37
|
+
comments,
|
|
38
|
+
createFeedback,
|
|
39
|
+
createMessage,
|
|
40
|
+
detailQuery,
|
|
41
|
+
items: summaries.map(toPresentationItem),
|
|
42
|
+
itemsQuery,
|
|
43
|
+
isMessageSubmitting,
|
|
44
|
+
messageError,
|
|
45
|
+
selectedDetail,
|
|
46
|
+
selectedId,
|
|
47
|
+
selectedSummary,
|
|
48
|
+
selectionScope,
|
|
49
|
+
setSelectedId,
|
|
50
|
+
summaries,
|
|
51
|
+
updateFeedback,
|
|
52
|
+
withdrawFeedback,
|
|
53
|
+
...mutations,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function useFeedbackClient({ baseUrl, getBearerToken }) {
|
|
57
|
+
return React.useMemo(() => createFeedbackClient({ baseUrl, getBearerToken }), [baseUrl, getBearerToken]);
|
|
58
|
+
}
|
|
59
|
+
function useFeedbackQueries(client, queryRoot, active, selectedId) {
|
|
60
|
+
const itemsQuery = useQuery({
|
|
61
|
+
queryKey: [...queryRoot, "items"],
|
|
62
|
+
queryFn: ({ signal }) => client.list({ signal }),
|
|
63
|
+
enabled: active,
|
|
64
|
+
retry: false,
|
|
65
|
+
});
|
|
66
|
+
const detailQuery = useQuery({
|
|
67
|
+
queryKey: [...queryRoot, "item", selectedId],
|
|
68
|
+
queryFn: ({ signal }) => client.get(requireSelectedId(selectedId), { signal }),
|
|
69
|
+
enabled: active && selectedId !== undefined,
|
|
70
|
+
retry: false,
|
|
71
|
+
});
|
|
72
|
+
return { detailQuery, itemsQuery };
|
|
73
|
+
}
|
|
74
|
+
function useFeedbackMutations({ client, onFeedbackCreated, queryClient, }) {
|
|
75
|
+
const [uploadStatus, setUploadStatus] = React.useState();
|
|
76
|
+
const pendingCreate = React.useRef(undefined);
|
|
77
|
+
const { messageMutation, messageStates } = useFeedbackMessageMutation(client, queryClient);
|
|
78
|
+
const createMutation = useMutation({
|
|
79
|
+
mutationFn: ({ queryRoot, values, }) => {
|
|
80
|
+
const input = {
|
|
81
|
+
affectedScope: values.affectedScope,
|
|
82
|
+
description: values.description,
|
|
83
|
+
subject: values.subject,
|
|
84
|
+
type: values.type,
|
|
85
|
+
urgency: values.urgency,
|
|
86
|
+
};
|
|
87
|
+
const fingerprint = JSON.stringify([queryRoot, input]);
|
|
88
|
+
const idempotencyKey = pendingCreate.current?.fingerprint === fingerprint
|
|
89
|
+
? pendingCreate.current.idempotencyKey
|
|
90
|
+
: crypto.randomUUID();
|
|
91
|
+
pendingCreate.current = { fingerprint, idempotencyKey };
|
|
92
|
+
return submitFeedbackWithAttachments({
|
|
93
|
+
client,
|
|
94
|
+
input,
|
|
95
|
+
idempotencyKey,
|
|
96
|
+
files: values.attachments,
|
|
97
|
+
onStatus: setUploadStatus,
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
onSuccess: (item, { queryRoot }) => {
|
|
101
|
+
pendingCreate.current = undefined;
|
|
102
|
+
void cacheCreatedFeedbackItem(queryClient, queryRoot, item).catch(() => undefined);
|
|
103
|
+
notifyFeedbackCreated(onFeedbackCreated, item);
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
const updateMutation = useMutation({
|
|
107
|
+
mutationFn: ({ feedbackId, input, }) => client.update(feedbackId, input),
|
|
108
|
+
onSuccess: (item, input) => {
|
|
109
|
+
void refreshFeedbackItem(queryClient, input.queryRoot, item).catch(() => undefined);
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
const withdrawMutation = useMutation({
|
|
113
|
+
mutationFn: ({ feedbackId }) => client.withdraw(feedbackId),
|
|
114
|
+
onSuccess: (item, input) => {
|
|
115
|
+
void refreshFeedbackItem(queryClient, input.queryRoot, item).catch(() => undefined);
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
return {
|
|
119
|
+
createMutation,
|
|
120
|
+
messageMutation,
|
|
121
|
+
messageStates,
|
|
122
|
+
updateMutation,
|
|
123
|
+
withdrawMutation,
|
|
124
|
+
uploadStatus,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function useFeedbackMessageMutation(client, queryClient) {
|
|
128
|
+
const [messageStates, setMessageStates] = React.useState({});
|
|
129
|
+
const messageMutation = useMutation({
|
|
130
|
+
mutationFn: ({ body, feedbackId, }) => client.createMessage(feedbackId, body),
|
|
131
|
+
onMutate: (input) => {
|
|
132
|
+
setMessageStates((current) => ({
|
|
133
|
+
...current,
|
|
134
|
+
[messageErrorKey(input.queryRoot, input.feedbackId)]: { isPending: true },
|
|
135
|
+
}));
|
|
136
|
+
},
|
|
137
|
+
onError: (error, input) => {
|
|
138
|
+
setMessageStates((current) => ({
|
|
139
|
+
...current,
|
|
140
|
+
[messageErrorKey(input.queryRoot, input.feedbackId)]: {
|
|
141
|
+
error,
|
|
142
|
+
isPending: false,
|
|
143
|
+
},
|
|
144
|
+
}));
|
|
145
|
+
},
|
|
146
|
+
onSuccess: (message, input) => {
|
|
147
|
+
setMessageStates((current) => {
|
|
148
|
+
const key = messageErrorKey(input.queryRoot, input.feedbackId);
|
|
149
|
+
if (current[key] === undefined)
|
|
150
|
+
return current;
|
|
151
|
+
const next = { ...current };
|
|
152
|
+
delete next[key];
|
|
153
|
+
return next;
|
|
154
|
+
});
|
|
155
|
+
void appendFeedbackMessage(queryClient, input.queryRoot, input.feedbackId, message).catch(() => undefined);
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
return { messageMutation, messageStates };
|
|
159
|
+
}
|
|
160
|
+
function messageErrorKey(queryRoot, feedbackId) {
|
|
161
|
+
return JSON.stringify([...queryRoot, "message", feedbackId]);
|
|
162
|
+
}
|
|
163
|
+
function getMessageState(messageStates, queryRoot, selectedId) {
|
|
164
|
+
return selectedId === undefined
|
|
165
|
+
? undefined
|
|
166
|
+
: messageStates[messageErrorKey(queryRoot, selectedId)];
|
|
167
|
+
}
|
|
168
|
+
function getMessageError(messageState, selectedId, summaries, detail) {
|
|
169
|
+
return selectedId !== undefined && canReply(selectedId, summaries, detail)
|
|
170
|
+
? (messageState?.error ?? null)
|
|
171
|
+
: null;
|
|
172
|
+
}
|
|
173
|
+
function notifyFeedbackCreated(onFeedbackCreated, item) {
|
|
174
|
+
try {
|
|
175
|
+
void Promise.resolve(onFeedbackCreated?.(item)).catch(() => undefined);
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
// A consumer observer cannot turn a durable create into a failed retry.
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export { useFeedbackController };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FeedbackAffectedScope, FeedbackStatus, FeedbackType, FeedbackUrgency } from "./contract.js";
|
|
2
|
+
/** A submitted feedback item in the shape a reporter's tracking list renders. */
|
|
3
|
+
type UserFeedbackItem = {
|
|
4
|
+
affectedScope?: FeedbackAffectedScope;
|
|
5
|
+
description: string;
|
|
6
|
+
id: string;
|
|
7
|
+
status: FeedbackStatus;
|
|
8
|
+
subject: string;
|
|
9
|
+
submittedAt: string;
|
|
10
|
+
type: FeedbackType;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
urgency?: FeedbackUrgency;
|
|
13
|
+
};
|
|
14
|
+
export type { UserFeedbackItem };
|