@ciridae/ui 1.0.2 → 1.0.4

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.
Files changed (209) hide show
  1. package/dist/app/auth.d.ts +10 -0
  2. package/dist/app/auth.js +60 -0
  3. package/dist/app/error-boundary.d.ts +18 -0
  4. package/dist/app/error-boundary.js +45 -0
  5. package/dist/app/feedback.d.ts +12 -0
  6. package/dist/app/feedback.js +128 -0
  7. package/dist/app/index.d.ts +8 -0
  8. package/dist/app/index.js +8 -0
  9. package/dist/app/request-errors.d.ts +63 -0
  10. package/dist/app/request-errors.js +172 -0
  11. package/dist/app/sentry.d.ts +18 -0
  12. package/dist/app/sentry.js +52 -0
  13. package/dist/app/telemetry.d.ts +7 -0
  14. package/dist/app/telemetry.js +28 -0
  15. package/dist/app/trail.d.ts +9 -0
  16. package/dist/app/trail.js +18 -0
  17. package/dist/chat/chat-query-keys.d.ts +3 -3
  18. package/dist/chat/contract.d.ts +15 -15
  19. package/dist/chat/conversation-items-query-options.d.ts +114 -114
  20. package/dist/chat/conversation-source.d.ts +89 -0
  21. package/dist/chat/conversation-source.js +1 -0
  22. package/dist/chat/describe-tool-call.d.ts +3 -3
  23. package/dist/chat/describe-tool-call.js +3 -3
  24. package/dist/chat/message-text.d.ts +1 -1
  25. package/dist/chat/message-text.js +116 -48
  26. package/dist/chat/use-conversation-list.d.ts +6 -6
  27. package/dist/ciridae.css +16 -4
  28. package/dist/components/activity-feed.d.ts +3 -2
  29. package/dist/components/activity-feed.js +1 -0
  30. package/dist/components/agent-work.d.ts +3 -3
  31. package/dist/components/app-frame.d.ts +91 -0
  32. package/dist/components/app-frame.js +134 -0
  33. package/dist/components/app-navigation.d.ts +30 -3
  34. package/dist/components/app-navigation.js +105 -14
  35. package/dist/components/badge.d.ts +30 -5
  36. package/dist/components/badge.js +134 -15
  37. package/dist/components/brand-icons.d.ts +3 -3
  38. package/dist/components/bulk-action-bar.d.ts +1 -1
  39. package/dist/components/bulk-action-bar.js +3 -3
  40. package/dist/components/button.d.ts +12 -5
  41. package/dist/components/button.js +77 -44
  42. package/dist/components/calendar.d.ts +1 -1
  43. package/dist/components/calendar.js +44 -17
  44. package/dist/components/centered-page.d.ts +1 -1
  45. package/dist/components/centered-page.js +2 -2
  46. package/dist/components/chart.d.ts +22 -2
  47. package/dist/components/chart.js +251 -51
  48. package/dist/components/chat-client-source.d.ts +16 -0
  49. package/dist/components/chat-client-source.js +297 -0
  50. package/dist/components/chat-page.d.ts +9 -8
  51. package/dist/components/chat-page.js +7 -11
  52. package/dist/components/chat-sheet-controller.d.ts +11 -14
  53. package/dist/components/chat-sheet-controller.js +3 -3
  54. package/dist/components/chat-sheet.d.ts +18 -11
  55. package/dist/components/chat-sheet.js +188 -289
  56. package/dist/components/chat.d.ts +109 -19
  57. package/dist/components/chat.js +520 -124
  58. package/dist/components/checkbox-item.d.ts +6 -3
  59. package/dist/components/checkbox-item.js +9 -5
  60. package/dist/components/checkbox-list.d.ts +1 -1
  61. package/dist/components/chip.d.ts +6 -1
  62. package/dist/components/chip.js +27 -1
  63. package/dist/components/collapsible.d.ts +1 -1
  64. package/dist/components/color-theme.d.ts +1 -1
  65. package/dist/components/column-settings.d.ts +1 -1
  66. package/dist/components/column-settings.js +1 -1
  67. package/dist/components/command-menu.d.ts +5 -1
  68. package/dist/components/command-menu.js +98 -32
  69. package/dist/components/command-palette.d.ts +7 -3
  70. package/dist/components/command-palette.js +20 -11
  71. package/dist/components/copyable-id.d.ts +22 -5
  72. package/dist/components/copyable-id.js +46 -6
  73. package/dist/components/data-display.d.ts +39 -8
  74. package/dist/components/data-display.js +138 -19
  75. package/dist/components/data-grid.d.ts +23 -11
  76. package/dist/components/data-grid.js +61 -26
  77. package/dist/components/date-range-picker.d.ts +1 -1
  78. package/dist/components/date-range-picker.js +9 -20
  79. package/dist/components/date-time.d.ts +1 -1
  80. package/dist/components/dialog-height-context.d.ts +1 -1
  81. package/dist/components/document-viewer.d.ts +2 -2
  82. package/dist/components/drawer.d.ts +11 -6
  83. package/dist/components/drawer.js +91 -54
  84. package/dist/components/dropzone.d.ts +4 -4
  85. package/dist/components/editable-field.d.ts +12 -3
  86. package/dist/components/editable-field.js +57 -27
  87. package/dist/components/email-input.d.ts +1 -1
  88. package/dist/components/email-input.js +6 -5
  89. package/dist/components/environment-frame.d.ts +2 -2
  90. package/dist/components/environment-frame.js +37 -6
  91. package/dist/components/expandable-text.d.ts +1 -1
  92. package/dist/components/feedback-screenshot.d.ts +1 -1
  93. package/dist/components/feedback-sheet.d.ts +18 -3
  94. package/dist/components/feedback-sheet.js +216 -55
  95. package/dist/components/field-context.d.ts +1 -1
  96. package/dist/components/filter-bar.d.ts +3 -3
  97. package/dist/components/filter-bar.js +43 -29
  98. package/dist/components/form-controls.d.ts +12 -3
  99. package/dist/components/form-controls.js +46 -22
  100. package/dist/components/form-layout.d.ts +14 -10
  101. package/dist/components/form-layout.js +68 -23
  102. package/dist/components/glass-menu.d.ts +3 -0
  103. package/dist/components/glass-menu.js +63 -0
  104. package/dist/components/gradient-edge.d.ts +9 -0
  105. package/dist/components/gradient-edge.js +31 -0
  106. package/dist/components/hotkeys.d.ts +2 -2
  107. package/dist/components/icon.d.ts +1 -1
  108. package/dist/components/input.d.ts +7 -5
  109. package/dist/components/input.js +29 -17
  110. package/dist/components/keyboard-shortcuts.d.ts +2 -2
  111. package/dist/components/keycap.d.ts +10 -6
  112. package/dist/components/keycap.js +57 -19
  113. package/dist/components/layout.d.ts +13 -13
  114. package/dist/components/lightbox.d.ts +9 -3
  115. package/dist/components/lightbox.js +13 -9
  116. package/dist/components/link.d.ts +1 -1
  117. package/dist/components/locale.d.ts +42 -2
  118. package/dist/components/locale.js +43 -3
  119. package/dist/components/log-entry.d.ts +40 -0
  120. package/dist/components/log-entry.js +146 -0
  121. package/dist/components/log-list.d.ts +3 -3
  122. package/dist/components/mention-input.d.ts +2 -2
  123. package/dist/components/mention-input.js +4 -3
  124. package/dist/components/menu.d.ts +7 -3
  125. package/dist/components/menu.js +34 -37
  126. package/dist/components/meter.d.ts +10 -2
  127. package/dist/components/meter.js +64 -6
  128. package/dist/components/navigation.d.ts +21 -4
  129. package/dist/components/navigation.js +84 -19
  130. package/dist/components/notification-tray.d.ts +1 -1
  131. package/dist/components/notification-tray.js +5 -4
  132. package/dist/components/overlays.d.ts +6 -4
  133. package/dist/components/overlays.js +69 -40
  134. package/dist/components/page-frame.d.ts +4 -4
  135. package/dist/components/page-frame.js +1 -1
  136. package/dist/components/panel.d.ts +4 -4
  137. package/dist/components/panel.js +18 -12
  138. package/dist/components/profile-header.d.ts +1 -1
  139. package/dist/components/progress.d.ts +1 -1
  140. package/dist/components/project-avatar.d.ts +1 -1
  141. package/dist/components/radio-card.d.ts +2 -2
  142. package/dist/components/radio-card.js +10 -9
  143. package/dist/components/record.d.ts +29 -5
  144. package/dist/components/record.js +147 -18
  145. package/dist/components/resolved-file-url.d.ts +19 -0
  146. package/dist/components/resolved-file-url.js +49 -0
  147. package/dist/components/scroll-area.d.ts +1 -1
  148. package/dist/components/secret-dialog.d.ts +1 -1
  149. package/dist/components/segmented-bar.d.ts +4 -2
  150. package/dist/components/segmented-bar.js +16 -6
  151. package/dist/components/select.d.ts +9 -6
  152. package/dist/components/select.js +103 -127
  153. package/dist/components/settings.d.ts +4 -4
  154. package/dist/components/shell-skeleton.d.ts +1 -1
  155. package/dist/components/shell-skeleton.js +1 -1
  156. package/dist/components/shell.d.ts +21 -21
  157. package/dist/components/shell.js +43 -43
  158. package/dist/components/side-panel.d.ts +3 -3
  159. package/dist/components/sidebar.d.ts +13 -8
  160. package/dist/components/sidebar.js +55 -27
  161. package/dist/components/single-line-text.d.ts +2 -0
  162. package/dist/components/single-line-text.js +16 -0
  163. package/dist/components/site-banner.d.ts +5 -2
  164. package/dist/components/site-banner.js +17 -6
  165. package/dist/components/skeleton.d.ts +8 -7
  166. package/dist/components/skeleton.js +28 -16
  167. package/dist/components/skeletons.d.ts +17 -5
  168. package/dist/components/skeletons.js +71 -8
  169. package/dist/components/stages.d.ts +83 -11
  170. package/dist/components/stages.js +512 -156
  171. package/dist/components/stat-card.d.ts +12 -4
  172. package/dist/components/stat-card.js +92 -37
  173. package/dist/components/status-banner.d.ts +1 -1
  174. package/dist/components/status-banner.js +1 -1
  175. package/dist/components/status.d.ts +2 -2
  176. package/dist/components/steps.d.ts +1 -1
  177. package/dist/components/switch.d.ts +1 -1
  178. package/dist/components/tabs.d.ts +8 -8
  179. package/dist/components/tabs.js +26 -13
  180. package/dist/components/theme-customizer.d.ts +2 -2
  181. package/dist/components/theme-toggle.d.ts +4 -0
  182. package/dist/components/theme-toggle.js +67 -0
  183. package/dist/components/toast.d.ts +10 -3
  184. package/dist/components/toast.js +78 -29
  185. package/dist/components/use-new-version-available.d.ts +6 -0
  186. package/dist/components/use-new-version-available.js +29 -0
  187. package/dist/components/user-chip.d.ts +3 -3
  188. package/dist/components/wizard.d.ts +2 -2
  189. package/dist/feedback/contract.d.ts +136 -136
  190. package/dist/feedback/feedback-controller.d.ts +6 -6
  191. package/dist/feedback/generated/zod.gen.d.ts +28 -28
  192. package/dist/feedback/operator-contract.d.ts +11 -11
  193. package/dist/feedback/operator-controller.d.ts +32 -13
  194. package/dist/feedback/operator-controller.js +44 -11
  195. package/dist/preset.js +289 -33
  196. package/dist/styled-system/styles.css +3294 -1079
  197. package/dist/styled-system/tokens/index.mjs +598 -22
  198. package/dist/styled-system/tokens/tokens.d.ts +11 -11
  199. package/dist/styled-system/types/prop-type.d.ts +2 -2
  200. package/dist/styles.css +16 -4
  201. package/dist/theme/color.d.ts +3 -0
  202. package/dist/theme/color.js +5 -0
  203. package/dist/theme/derive.d.ts +9 -2
  204. package/dist/theme/derive.js +72 -12
  205. package/dist/theme/palettes.d.ts +49 -6
  206. package/dist/theme/palettes.js +84 -15
  207. package/dist/theme/tokens.d.ts +3 -3
  208. package/dist/theme/tokens.js +107 -32
  209. package/package.json +40 -3
@@ -1,30 +1,37 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /*
3
- * Toasts are sonner's, in the kit's look: a compact card with a tone icon, the message, an
4
- * optional muted line under it, an optional action and a close button. Mount one `Toaster` at the
5
- * app's root; raise toasts with `toast` from anywhere, or `useToast().add` with the kit's options.
3
+ * Toasts are sonner's, in the kit's look: a solid pill with a tone icon, the message, an optional
4
+ * muted line under it, and at its end either an action as a small secondary button or a close
5
+ * button. Mount
6
+ * one `Toaster` at the app's root; raise toasts with `toast` from anywhere, or `useToast().add`
7
+ * with the kit's options.
6
8
  */
7
9
  import { CheckCircleIcon, InfoIcon, SpinnerGapIcon, WarningCircleIcon, WarningIcon, XIcon, } from "@phosphor-icons/react";
8
10
  import { Toaster as SonnerToaster, toast } from "sonner";
9
11
  import { css, cx } from "#primitives/css";
12
+ import { Button } from "./button.js";
10
13
  import { icon, spinning } from "./icon.js";
11
14
  import { useCiridaeLocale } from "./locale.js";
12
15
  export { toast };
13
16
  const card = css({
14
17
  display: "flex",
15
- alignItems: "flex-start",
16
- gap: "layout.controlGap",
17
- width: "max-content",
18
- maxWidth: "min(360px, calc(100vw - token(spacing.layout.pageGap) * 2))",
18
+ alignItems: "center",
19
+ gap: "layout.contentGap",
20
+ width: "100%",
21
+ maxWidth: "calc(100vw - token(spacing.layout.pageGap) * 2)",
19
22
  paddingBlock: "control.block",
20
- paddingInline: "control.iconInline",
21
- border: "1px solid token(colors.border.control)",
22
- borderRadius: "action",
23
- background: "bg.card",
23
+ paddingInlineStart: "control.inline",
24
+ paddingInlineEnd: "control.block",
25
+ border: "1px solid token(colors.border.divider)",
26
+ borderRadius: "card",
27
+ // Solid in both themes: the panel's glass laid on the canvas in dark.
28
+ background: "linear-gradient(token(colors.bg.panel), token(colors.bg.panel)), token(colors.bg.canvas)",
29
+ _light: { background: "bg.surface" },
24
30
  color: "fg.primary",
25
- boxShadow: "toast",
31
+ boxShadow: "soft",
26
32
  textStyle: "body",
27
33
  fontFamily: "sans",
34
+ fontWeight: "medium",
28
35
  lineHeight: "compact",
29
36
  pointerEvents: "auto",
30
37
  });
@@ -43,18 +50,28 @@ const iconSlot = css({
43
50
  alignItems: "center",
44
51
  flexShrink: "0",
45
52
  });
53
+ /*
54
+ * An action raised through sonner's own `toast` with `{ label, onClick }`: the small secondary
55
+ * button's shape and face, with a flat hairline, since sonner draws the button. `useToast` draws a
56
+ * kit `Button` instead.
57
+ */
46
58
  const actionButton = css({
47
59
  flexShrink: "0",
48
- padding: "none",
49
- border: "0",
50
- background: "transparent",
51
- color: "accent.brand",
52
- font: "inherit",
60
+ height: "control.small",
61
+ paddingInline: "control.compactInline",
62
+ border: "1px solid token(colors.border.glass)",
63
+ borderRadius: "pill",
64
+ background: "token(gradients.raised)",
65
+ color: "fg.primary",
66
+ fontFamily: "inherit",
67
+ fontSize: "caption",
53
68
  fontWeight: "medium",
69
+ letterSpacing: "compact",
54
70
  cursor: "pointer",
55
- _hover: { textDecoration: "underline" },
71
+ _hover: { background: "bg.raisedHover" },
56
72
  _focusVisible: { focusRing: "outer" },
57
73
  });
74
+ const actionSlot = css({ flexShrink: "0" });
58
75
  // Sonner places its close button in the card's corner; the kit's sits at the end of the row.
59
76
  const closeButton = css({
60
77
  position: "static!",
@@ -62,8 +79,8 @@ const closeButton = css({
62
79
  display: "grid",
63
80
  placeItems: "center",
64
81
  flexShrink: "0",
65
- width: "control.mark",
66
- height: "control.mark",
82
+ width: "control.compact",
83
+ height: "control.compact",
67
84
  padding: "none",
68
85
  border: "0",
69
86
  borderRadius: "round",
@@ -74,12 +91,40 @@ const closeButton = css({
74
91
  _hover: { color: "fg.primary", background: "bg.hover" },
75
92
  _focusVisible: { focusRing: "outer" },
76
93
  });
94
+ /* A progress toast's track and how far along it is, after its message. */
95
+ const progressMessage = css({ display: "flex", alignItems: "center", gap: "layout.contentGap" });
96
+ const progressMessageText = css({ flex: "1", minWidth: "0" });
97
+ const progress = css({
98
+ display: "inline-flex",
99
+ alignItems: "center",
100
+ gap: "layout.controlGap",
101
+ flexShrink: "0",
102
+ });
103
+ const progressTrack = css({
104
+ width: "toast.progressWidth",
105
+ height: "toast.progressHeight",
106
+ overflow: "hidden",
107
+ borderRadius: "round",
108
+ background: "border.control",
109
+ _light: { background: "token(gradients.canvas)" },
110
+ });
111
+ const progressFill = css({ height: "100%", borderRadius: "round", background: "fg.primary" });
112
+ const progressPercent = css({
113
+ color: "fg.muted",
114
+ _light: { color: "fg.secondary" },
115
+ fontSize: "code",
116
+ fontVariantNumeric: "tabular-nums",
117
+ });
77
118
  const toneIcon = {
78
119
  success: css({ color: "accent.green" }),
79
120
  info: css({ color: "accent.blue" }),
80
- warning: css({ color: "accent.yellow" }),
121
+ warning: css({ color: "accent.yellowIcon" }),
81
122
  danger: css({ color: "accent.red" }),
82
123
  };
124
+ // Sonner sizes its stack by `--width`; the kit's toast is the design's width.
125
+ const toasterStyle = {
126
+ "--width": "var(--sizes-toast\\.width)",
127
+ };
83
128
  /** The toast stack, in the kit's look: mount one at the app's root. */
84
129
  export function Toaster(props) {
85
130
  const { labels, dir } = useCiridaeLocale();
@@ -92,8 +137,8 @@ export function Toaster(props) {
92
137
  warning: _jsx(WarningCircleIcon, { className: cx(small, toneIcon.warning), weight: "fill" }),
93
138
  error: _jsx(WarningIcon, { className: cx(small, toneIcon.danger), weight: "fill" }),
94
139
  loading: _jsx(SpinnerGapIcon, { className: cx(small, toneIcon.info, spinning) }),
95
- close: _jsx(XIcon, { className: icon({ size: "compact" }) }),
96
- }, containerAriaLabel: labels.notifications.title, ...props, toastOptions: {
140
+ close: _jsx(XIcon, { className: small }),
141
+ }, containerAriaLabel: labels.notifications.title, ...props, style: { ...toasterStyle, ...props.style }, toastOptions: {
97
142
  unstyled: true,
98
143
  ...props.toastOptions,
99
144
  classNames: {
@@ -108,16 +153,20 @@ export function Toaster(props) {
108
153
  },
109
154
  } }));
110
155
  }
156
+ let lastToastId = 0;
111
157
  /** Raises a toast with the kit's options, returning its id. */
112
- function addToast({ title: message, description: detail, variant, timeout, actionProps, }) {
158
+ function addToast({ title: ownMessage, description: detail, variant, timeout, actionProps, id = `ciridae-toast-${++lastToastId}`, percent, }) {
113
159
  const duration = timeout ?? (variant === "error" ? 0 : undefined);
160
+ const message = percent === undefined ? (ownMessage) : (_jsxs("span", { className: progressMessage, children: [_jsx("span", { className: progressMessageText, children: ownMessage }), _jsxs("span", { className: progress, children: [_jsx("span", { className: progressTrack, children: _jsx("span", { className: progressFill, style: { width: `${percent}%` } }) }), _jsxs("span", { className: progressPercent, children: [Math.round(percent), "%"] })] })] }));
114
161
  const options = {
162
+ id,
115
163
  description: detail,
116
164
  duration: duration === 0 ? Infinity : duration,
117
- action: actionProps && {
118
- label: actionProps.children,
119
- onClick: (event) => actionProps.onClick?.(event),
120
- },
165
+ closeButton: actionProps === undefined,
166
+ action: actionProps && (_jsx("span", { className: actionSlot, children: _jsx(Button, { variant: "secondary", size: "small", onClick: (event) => {
167
+ actionProps.onClick?.(event);
168
+ toast.dismiss(id);
169
+ }, children: actionProps.children }) })),
121
170
  };
122
171
  switch (variant) {
123
172
  case "success":
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Whether the deployment now serves a different build than this tab is running. The build writes
3
+ * `version.json` beside the bundle (see `@ciridae/configs/vite`), so the check costs one small
4
+ * request and needs no API.
5
+ */
6
+ export declare function useNewVersionAvailable(buildSha: string | null): boolean;
@@ -0,0 +1,29 @@
1
+ import { useQuery } from "@tanstack/react-query";
2
+ /** How often a tab asks whether the deployment moved on without it. */
3
+ const versionPollIntervalMs = 5 * 60000;
4
+ /**
5
+ * Whether the deployment now serves a different build than this tab is running. The build writes
6
+ * `version.json` beside the bundle (see `@ciridae/configs/vite`), so the check costs one small
7
+ * request and needs no API.
8
+ */
9
+ export function useNewVersionAvailable(buildSha) {
10
+ const deployed = useQuery({
11
+ queryKey: ["deployed-version"],
12
+ queryFn: async ({ signal }) => {
13
+ const response = await fetch("/version.json", { cache: "no-store", signal });
14
+ if (!response.ok)
15
+ throw new Error(`Version check failed (${response.status}).`);
16
+ const body = await response.json();
17
+ return typeof body === "object" && body !== null && "buildSha" in body
18
+ ? String(body.buildSha)
19
+ : null;
20
+ },
21
+ // A build this tab cannot name has nothing to compare against.
22
+ enabled: buildSha !== null,
23
+ refetchInterval: versionPollIntervalMs,
24
+ refetchIntervalInBackground: false,
25
+ staleTime: versionPollIntervalMs,
26
+ retry: false,
27
+ });
28
+ return Boolean(deployed.data) && deployed.data !== buildSha;
29
+ }
@@ -35,11 +35,11 @@ export type UserChipProps = Omit<ComponentProps<"span">, "children"> & UserIdent
35
35
  profile?: UserProfile;
36
36
  size?: "regular" | "compact";
37
37
  };
38
- export declare function UserChip({ name, kind, src, icon, detail, action, profile, size, href, renderLink, className, ...props }: UserChipProps): import("@types/react").JSX.Element;
38
+ export declare function UserChip({ name, kind, src, icon, detail, action, profile, size, href, renderLink, className, ...props }: UserChipProps): import("react").JSX.Element;
39
39
  /** Just the name, opening the same profile card when there is one: an author under a message. */
40
40
  export declare function UserName({ profile, href, renderLink, ...who }: UserIdentity & UserLink & {
41
41
  profile?: UserProfile;
42
- }): import("@types/react").JSX.Element;
42
+ }): import("react").JSX.Element;
43
43
  /** Someone who takes part in a record: a person, or an agent persona, as the app knows them. */
44
44
  export type ChipParticipant = {
45
45
  id: string;
@@ -62,5 +62,5 @@ export type ParticipantChipProps = Omit<UserChipProps, "name" | "kind" | "src" |
62
62
  * A participant as a `UserChip` whose name opens their profile card: their title and email, and
63
63
  * `actions`. `href` or `renderLink` makes the name lead to their page as well.
64
64
  */
65
- export declare function ParticipantChip({ participant, actions, ...chipProps }: ParticipantChipProps): import("@types/react").JSX.Element;
65
+ export declare function ParticipantChip({ participant, actions, ...chipProps }: ParticipantChipProps): import("react").JSX.Element;
66
66
  export {};
@@ -19,7 +19,7 @@ export declare function Wizard({ step, steps, progress, showProgress, state, chi
19
19
  state?: "step" | "result";
20
20
  /** The current step's content. */
21
21
  children: ReactNode;
22
- }): import("@types/react").JSX.Element;
22
+ }): import("react").JSX.Element;
23
23
  /** The end of a wizard: what happened, and what the reader can do next. */
24
24
  export declare function WizardResult({ variant, icon: mark, title, description, children, }: {
25
25
  /** `progress` is the wait before an outcome, such as a sign-in still open in another tab. */
@@ -30,4 +30,4 @@ export declare function WizardResult({ variant, icon: mark, title, description,
30
30
  description?: string;
31
31
  /** Actions, such as opening what was made or trying again. */
32
32
  children?: ReactNode;
33
- }): import("@types/react").JSX.Element;
33
+ }): import("react").JSX.Element;
@@ -1,36 +1,36 @@
1
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<{
2
+ declare const feedbackCreateHeadersSchema: import("zod").ZodObject<{
3
+ 'Idempotency-Key': import("zod").ZodUUID;
4
+ 'X-POSTHOG-SESSION-ID': import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
5
+ }, import("zod/v4/core").$strip>;
6
+ declare const feedbackAttachmentSchema: import("zod").ZodObject<{
7
+ id: import("zod").ZodString;
8
+ name: import("zod").ZodString;
9
+ size: import("zod").ZodInt;
10
+ url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodURL>>;
11
+ }, import("zod/v4/core").$strip>;
12
+ declare const feedbackCreateInputSchema: import("zod").ZodObject<{
13
+ subject: import("zod").ZodString;
14
+ description: import("zod").ZodString;
15
+ type: import("zod").ZodEnum<{
16
16
  general: "general";
17
17
  bug: "bug";
18
18
  feature: "feature";
19
19
  }>;
20
- urgency: import("zod/index.cjs").ZodDefault<import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodEnum<{
20
+ urgency: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
21
21
  normal: "normal";
22
22
  emergency: "emergency";
23
23
  }>>>;
24
- affectedScope: import("zod/index.cjs").ZodDefault<import("zod/index.cjs").ZodOptional<import("zod/index.cjs").ZodEnum<{
24
+ affectedScope: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
25
25
  unknown: "unknown";
26
26
  everyone: "everyone";
27
27
  just_me: "just_me";
28
28
  my_team: "my_team";
29
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<{
30
+ }, import("zod/v4/core").$strict>;
31
+ declare const feedbackErrorResponseSchema: import("zod").ZodObject<{
32
+ detail: import("zod").ZodObject<{
33
+ code: import("zod").ZodEnum<{
34
34
  feedback_access_denied: "feedback_access_denied";
35
35
  feedback_auth_unavailable: "feedback_auth_unavailable";
36
36
  feedback_invalid_token: "feedback_invalid_token";
@@ -40,198 +40,198 @@ declare const feedbackErrorResponseSchema: import("zod/index.cjs").ZodObject<{
40
40
  feedback_scope_not_found: "feedback_scope_not_found";
41
41
  feedback_unavailable: "feedback_unavailable";
42
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<{
43
+ detail: import("zod").ZodString;
44
+ }, import("zod/v4/core").$strip>;
45
+ }, import("zod/v4/core").$strip>;
46
+ declare const feedbackItemSchema: import("zod").ZodObject<{
47
+ id: import("zod").ZodUUID;
48
+ subject: import("zod").ZodString;
49
+ description: import("zod").ZodString;
50
+ type: import("zod").ZodEnum<{
51
51
  general: "general";
52
52
  bug: "bug";
53
53
  feature: "feature";
54
54
  }>;
55
- urgency: import("zod/index.cjs").ZodEnum<{
55
+ urgency: import("zod").ZodEnum<{
56
56
  normal: "normal";
57
57
  emergency: "emergency";
58
58
  }>;
59
- affectedScope: import("zod/index.cjs").ZodEnum<{
59
+ affectedScope: import("zod").ZodEnum<{
60
60
  unknown: "unknown";
61
61
  everyone: "everyone";
62
62
  just_me: "just_me";
63
63
  my_team: "my_team";
64
64
  }>;
65
- status: import("zod/index.cjs").ZodEnum<{
66
- in_progress: "in_progress";
67
- completed: "completed";
65
+ status: import("zod").ZodEnum<{
68
66
  received: "received";
67
+ in_progress: "in_progress";
69
68
  discussion_required: "discussion_required";
69
+ completed: "completed";
70
70
  no_action: "no_action";
71
71
  withdrawn: "withdrawn";
72
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";
73
+ createdAt: import("zod").ZodISODateTime;
74
+ updatedAt: import("zod").ZodISODateTime;
75
+ canEdit: import("zod").ZodBoolean;
76
+ canWithdraw: import("zod").ZodBoolean;
77
+ canReply: import("zod").ZodBoolean;
78
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
79
+ updatedAt_epoch_milliseconds: import("zod").ZodInt;
80
+ statusTimeline: import("zod").ZodArray<import("zod").ZodObject<{
81
+ id: import("zod").ZodString;
82
+ status: import("zod").ZodEnum<{
85
83
  received: "received";
84
+ in_progress: "in_progress";
86
85
  discussion_required: "discussion_required";
86
+ completed: "completed";
87
87
  no_action: "no_action";
88
88
  withdrawn: "withdrawn";
89
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<{
90
+ createdAt: import("zod").ZodISODateTime;
91
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
92
+ }, import("zod/v4/core").$strip>>;
93
+ messages: import("zod").ZodArray<import("zod").ZodObject<{
94
+ id: import("zod").ZodString;
95
+ author: import("zod").ZodObject<{
96
+ role: import("zod").ZodEnum<{
97
97
  operator: "operator";
98
98
  reporter: "reporter";
99
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<{
100
+ name: import("zod").ZodString;
101
+ }, import("zod/v4/core").$strip>;
102
+ body: import("zod").ZodString;
103
+ createdAt: import("zod").ZodISODateTime;
104
+ editedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
105
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
106
+ editedAt_epoch_milliseconds: import("zod").ZodNullable<import("zod").ZodInt>;
107
+ }, import("zod/v4/core").$strip>>;
108
+ attachments: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
109
+ id: import("zod").ZodString;
110
+ name: import("zod").ZodString;
111
+ size: import("zod").ZodInt;
112
+ url: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodURL>>;
113
+ }, import("zod/v4/core").$strip>>>>;
114
+ }, import("zod/v4/core").$strip>;
115
+ declare const feedbackListResponseSchema: import("zod").ZodObject<{
116
+ items: import("zod").ZodArray<import("zod").ZodObject<{
117
+ id: import("zod").ZodUUID;
118
+ subject: import("zod").ZodString;
119
+ description: import("zod").ZodString;
120
+ type: import("zod").ZodEnum<{
121
121
  general: "general";
122
122
  bug: "bug";
123
123
  feature: "feature";
124
124
  }>;
125
- urgency: import("zod/index.cjs").ZodEnum<{
125
+ urgency: import("zod").ZodEnum<{
126
126
  normal: "normal";
127
127
  emergency: "emergency";
128
128
  }>;
129
- affectedScope: import("zod/index.cjs").ZodEnum<{
129
+ affectedScope: import("zod").ZodEnum<{
130
130
  unknown: "unknown";
131
131
  everyone: "everyone";
132
132
  just_me: "just_me";
133
133
  my_team: "my_team";
134
134
  }>;
135
- status: import("zod/index.cjs").ZodEnum<{
136
- in_progress: "in_progress";
137
- completed: "completed";
135
+ status: import("zod").ZodEnum<{
138
136
  received: "received";
137
+ in_progress: "in_progress";
139
138
  discussion_required: "discussion_required";
139
+ completed: "completed";
140
140
  no_action: "no_action";
141
141
  withdrawn: "withdrawn";
142
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<{
143
+ createdAt: import("zod").ZodISODateTime;
144
+ updatedAt: import("zod").ZodISODateTime;
145
+ canEdit: import("zod").ZodBoolean;
146
+ canWithdraw: import("zod").ZodBoolean;
147
+ canReply: import("zod").ZodBoolean;
148
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
149
+ updatedAt_epoch_milliseconds: import("zod").ZodInt;
150
+ }, import("zod/v4/core").$strip>>;
151
+ }, import("zod/v4/core").$strip>;
152
+ declare const feedbackMessageCreateInputSchema: import("zod").ZodObject<{
153
+ body: import("zod").ZodString;
154
+ }, import("zod/v4/core").$strict>;
155
+ declare const feedbackMessageSchema: import("zod").ZodObject<{
156
+ id: import("zod").ZodString;
157
+ author: import("zod").ZodObject<{
158
+ role: import("zod").ZodEnum<{
159
159
  operator: "operator";
160
160
  reporter: "reporter";
161
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";
162
+ name: import("zod").ZodString;
163
+ }, import("zod/v4/core").$strip>;
164
+ body: import("zod").ZodString;
165
+ createdAt: import("zod").ZodISODateTime;
166
+ editedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
167
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
168
+ editedAt_epoch_milliseconds: import("zod").ZodNullable<import("zod").ZodInt>;
169
+ }, import("zod/v4/core").$strip>;
170
+ declare const feedbackStatusEventSchema: import("zod").ZodObject<{
171
+ id: import("zod").ZodString;
172
+ status: import("zod").ZodEnum<{
175
173
  received: "received";
174
+ in_progress: "in_progress";
176
175
  discussion_required: "discussion_required";
176
+ completed: "completed";
177
177
  no_action: "no_action";
178
178
  withdrawn: "withdrawn";
179
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";
180
+ createdAt: import("zod").ZodISODateTime;
181
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
182
+ }, import("zod/v4/core").$strip>;
183
+ declare const feedbackStatusSchema: import("zod").ZodEnum<{
186
184
  received: "received";
185
+ in_progress: "in_progress";
187
186
  discussion_required: "discussion_required";
187
+ completed: "completed";
188
188
  no_action: "no_action";
189
189
  withdrawn: "withdrawn";
190
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<{
191
+ declare const feedbackSummarySchema: import("zod").ZodObject<{
192
+ id: import("zod").ZodUUID;
193
+ subject: import("zod").ZodString;
194
+ description: import("zod").ZodString;
195
+ type: import("zod").ZodEnum<{
196
196
  general: "general";
197
197
  bug: "bug";
198
198
  feature: "feature";
199
199
  }>;
200
- urgency: import("zod/index.cjs").ZodEnum<{
200
+ urgency: import("zod").ZodEnum<{
201
201
  normal: "normal";
202
202
  emergency: "emergency";
203
203
  }>;
204
- affectedScope: import("zod/index.cjs").ZodEnum<{
204
+ affectedScope: import("zod").ZodEnum<{
205
205
  unknown: "unknown";
206
206
  everyone: "everyone";
207
207
  just_me: "just_me";
208
208
  my_team: "my_team";
209
209
  }>;
210
- status: import("zod/index.cjs").ZodEnum<{
211
- in_progress: "in_progress";
212
- completed: "completed";
210
+ status: import("zod").ZodEnum<{
213
211
  received: "received";
212
+ in_progress: "in_progress";
214
213
  discussion_required: "discussion_required";
214
+ completed: "completed";
215
215
  no_action: "no_action";
216
216
  withdrawn: "withdrawn";
217
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<{
218
+ createdAt: import("zod").ZodISODateTime;
219
+ updatedAt: import("zod").ZodISODateTime;
220
+ canEdit: import("zod").ZodBoolean;
221
+ canWithdraw: import("zod").ZodBoolean;
222
+ canReply: import("zod").ZodBoolean;
223
+ createdAt_epoch_milliseconds: import("zod").ZodInt;
224
+ updatedAt_epoch_milliseconds: import("zod").ZodInt;
225
+ }, import("zod/v4/core").$strip>;
226
+ declare const feedbackTypeSchema: import("zod").ZodEnum<{
227
227
  general: "general";
228
228
  bug: "bug";
229
229
  feature: "feature";
230
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>;
231
+ declare const feedbackUpdateInputSchema: import("zod").ZodObject<{
232
+ subject: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
233
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
234
+ }, import("zod/v4/core").$strict>;
235
235
  declare const feedbackMaxLengths: {
236
236
  readonly description: number;
237
237
  readonly subject: number;