@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.
- package/dist/app/auth.d.ts +10 -0
- package/dist/app/auth.js +60 -0
- package/dist/app/error-boundary.d.ts +18 -0
- package/dist/app/error-boundary.js +45 -0
- package/dist/app/feedback.d.ts +12 -0
- package/dist/app/feedback.js +128 -0
- package/dist/app/index.d.ts +8 -0
- package/dist/app/index.js +8 -0
- package/dist/app/request-errors.d.ts +63 -0
- package/dist/app/request-errors.js +172 -0
- package/dist/app/sentry.d.ts +18 -0
- package/dist/app/sentry.js +52 -0
- package/dist/app/telemetry.d.ts +7 -0
- package/dist/app/telemetry.js +28 -0
- package/dist/app/trail.d.ts +9 -0
- package/dist/app/trail.js +18 -0
- package/dist/chat/chat-query-keys.d.ts +3 -3
- package/dist/chat/contract.d.ts +15 -15
- package/dist/chat/conversation-items-query-options.d.ts +114 -114
- package/dist/chat/conversation-source.d.ts +89 -0
- package/dist/chat/conversation-source.js +1 -0
- package/dist/chat/describe-tool-call.d.ts +3 -3
- package/dist/chat/describe-tool-call.js +3 -3
- package/dist/chat/message-text.d.ts +1 -1
- package/dist/chat/message-text.js +116 -48
- package/dist/chat/use-conversation-list.d.ts +6 -6
- package/dist/ciridae.css +16 -4
- package/dist/components/activity-feed.d.ts +3 -2
- package/dist/components/activity-feed.js +1 -0
- package/dist/components/agent-work.d.ts +3 -3
- package/dist/components/app-frame.d.ts +91 -0
- package/dist/components/app-frame.js +134 -0
- package/dist/components/app-navigation.d.ts +30 -3
- package/dist/components/app-navigation.js +105 -14
- package/dist/components/badge.d.ts +30 -5
- package/dist/components/badge.js +134 -15
- package/dist/components/brand-icons.d.ts +3 -3
- package/dist/components/bulk-action-bar.d.ts +1 -1
- package/dist/components/bulk-action-bar.js +3 -3
- package/dist/components/button.d.ts +12 -5
- package/dist/components/button.js +77 -44
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.js +44 -17
- package/dist/components/centered-page.d.ts +1 -1
- package/dist/components/centered-page.js +2 -2
- package/dist/components/chart.d.ts +22 -2
- package/dist/components/chart.js +251 -51
- package/dist/components/chat-client-source.d.ts +16 -0
- package/dist/components/chat-client-source.js +297 -0
- package/dist/components/chat-page.d.ts +9 -8
- package/dist/components/chat-page.js +7 -11
- package/dist/components/chat-sheet-controller.d.ts +11 -14
- package/dist/components/chat-sheet-controller.js +3 -3
- package/dist/components/chat-sheet.d.ts +18 -11
- package/dist/components/chat-sheet.js +188 -289
- package/dist/components/chat.d.ts +109 -19
- package/dist/components/chat.js +520 -124
- package/dist/components/checkbox-item.d.ts +6 -3
- package/dist/components/checkbox-item.js +9 -5
- package/dist/components/checkbox-list.d.ts +1 -1
- package/dist/components/chip.d.ts +6 -1
- package/dist/components/chip.js +27 -1
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/color-theme.d.ts +1 -1
- package/dist/components/column-settings.d.ts +1 -1
- package/dist/components/column-settings.js +1 -1
- package/dist/components/command-menu.d.ts +5 -1
- package/dist/components/command-menu.js +98 -32
- package/dist/components/command-palette.d.ts +7 -3
- package/dist/components/command-palette.js +20 -11
- package/dist/components/copyable-id.d.ts +22 -5
- package/dist/components/copyable-id.js +46 -6
- package/dist/components/data-display.d.ts +39 -8
- package/dist/components/data-display.js +138 -19
- package/dist/components/data-grid.d.ts +23 -11
- package/dist/components/data-grid.js +61 -26
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +9 -20
- package/dist/components/date-time.d.ts +1 -1
- package/dist/components/dialog-height-context.d.ts +1 -1
- package/dist/components/document-viewer.d.ts +2 -2
- package/dist/components/drawer.d.ts +11 -6
- package/dist/components/drawer.js +91 -54
- package/dist/components/dropzone.d.ts +4 -4
- package/dist/components/editable-field.d.ts +12 -3
- package/dist/components/editable-field.js +57 -27
- package/dist/components/email-input.d.ts +1 -1
- package/dist/components/email-input.js +6 -5
- package/dist/components/environment-frame.d.ts +2 -2
- package/dist/components/environment-frame.js +37 -6
- package/dist/components/expandable-text.d.ts +1 -1
- package/dist/components/feedback-screenshot.d.ts +1 -1
- package/dist/components/feedback-sheet.d.ts +18 -3
- package/dist/components/feedback-sheet.js +216 -55
- package/dist/components/field-context.d.ts +1 -1
- package/dist/components/filter-bar.d.ts +3 -3
- package/dist/components/filter-bar.js +43 -29
- package/dist/components/form-controls.d.ts +12 -3
- package/dist/components/form-controls.js +46 -22
- package/dist/components/form-layout.d.ts +14 -10
- package/dist/components/form-layout.js +68 -23
- package/dist/components/glass-menu.d.ts +3 -0
- package/dist/components/glass-menu.js +63 -0
- package/dist/components/gradient-edge.d.ts +9 -0
- package/dist/components/gradient-edge.js +31 -0
- package/dist/components/hotkeys.d.ts +2 -2
- package/dist/components/icon.d.ts +1 -1
- package/dist/components/input.d.ts +7 -5
- package/dist/components/input.js +29 -17
- package/dist/components/keyboard-shortcuts.d.ts +2 -2
- package/dist/components/keycap.d.ts +10 -6
- package/dist/components/keycap.js +57 -19
- package/dist/components/layout.d.ts +13 -13
- package/dist/components/lightbox.d.ts +9 -3
- package/dist/components/lightbox.js +13 -9
- package/dist/components/link.d.ts +1 -1
- package/dist/components/locale.d.ts +42 -2
- package/dist/components/locale.js +43 -3
- package/dist/components/log-entry.d.ts +40 -0
- package/dist/components/log-entry.js +146 -0
- package/dist/components/log-list.d.ts +3 -3
- package/dist/components/mention-input.d.ts +2 -2
- package/dist/components/mention-input.js +4 -3
- package/dist/components/menu.d.ts +7 -3
- package/dist/components/menu.js +34 -37
- package/dist/components/meter.d.ts +10 -2
- package/dist/components/meter.js +64 -6
- package/dist/components/navigation.d.ts +21 -4
- package/dist/components/navigation.js +84 -19
- package/dist/components/notification-tray.d.ts +1 -1
- package/dist/components/notification-tray.js +5 -4
- package/dist/components/overlays.d.ts +6 -4
- package/dist/components/overlays.js +69 -40
- package/dist/components/page-frame.d.ts +4 -4
- package/dist/components/page-frame.js +1 -1
- package/dist/components/panel.d.ts +4 -4
- package/dist/components/panel.js +18 -12
- package/dist/components/profile-header.d.ts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/project-avatar.d.ts +1 -1
- package/dist/components/radio-card.d.ts +2 -2
- package/dist/components/radio-card.js +10 -9
- package/dist/components/record.d.ts +29 -5
- package/dist/components/record.js +147 -18
- package/dist/components/resolved-file-url.d.ts +19 -0
- package/dist/components/resolved-file-url.js +49 -0
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/secret-dialog.d.ts +1 -1
- package/dist/components/segmented-bar.d.ts +4 -2
- package/dist/components/segmented-bar.js +16 -6
- package/dist/components/select.d.ts +9 -6
- package/dist/components/select.js +103 -127
- package/dist/components/settings.d.ts +4 -4
- package/dist/components/shell-skeleton.d.ts +1 -1
- package/dist/components/shell-skeleton.js +1 -1
- package/dist/components/shell.d.ts +21 -21
- package/dist/components/shell.js +43 -43
- package/dist/components/side-panel.d.ts +3 -3
- package/dist/components/sidebar.d.ts +13 -8
- package/dist/components/sidebar.js +55 -27
- package/dist/components/single-line-text.d.ts +2 -0
- package/dist/components/single-line-text.js +16 -0
- package/dist/components/site-banner.d.ts +5 -2
- package/dist/components/site-banner.js +17 -6
- package/dist/components/skeleton.d.ts +8 -7
- package/dist/components/skeleton.js +28 -16
- package/dist/components/skeletons.d.ts +17 -5
- package/dist/components/skeletons.js +71 -8
- package/dist/components/stages.d.ts +83 -11
- package/dist/components/stages.js +512 -156
- package/dist/components/stat-card.d.ts +12 -4
- package/dist/components/stat-card.js +92 -37
- package/dist/components/status-banner.d.ts +1 -1
- package/dist/components/status-banner.js +1 -1
- package/dist/components/status.d.ts +2 -2
- package/dist/components/steps.d.ts +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/tabs.d.ts +8 -8
- package/dist/components/tabs.js +26 -13
- package/dist/components/theme-customizer.d.ts +2 -2
- package/dist/components/theme-toggle.d.ts +4 -0
- package/dist/components/theme-toggle.js +67 -0
- package/dist/components/toast.d.ts +10 -3
- package/dist/components/toast.js +78 -29
- package/dist/components/use-new-version-available.d.ts +6 -0
- package/dist/components/use-new-version-available.js +29 -0
- package/dist/components/user-chip.d.ts +3 -3
- package/dist/components/wizard.d.ts +2 -2
- package/dist/feedback/contract.d.ts +136 -136
- package/dist/feedback/feedback-controller.d.ts +6 -6
- package/dist/feedback/generated/zod.gen.d.ts +28 -28
- package/dist/feedback/operator-contract.d.ts +11 -11
- package/dist/feedback/operator-controller.d.ts +32 -13
- package/dist/feedback/operator-controller.js +44 -11
- package/dist/preset.js +289 -33
- package/dist/styled-system/styles.css +3294 -1079
- package/dist/styled-system/tokens/index.mjs +598 -22
- package/dist/styled-system/tokens/tokens.d.ts +11 -11
- package/dist/styled-system/types/prop-type.d.ts +2 -2
- package/dist/styles.css +16 -4
- package/dist/theme/color.d.ts +3 -0
- package/dist/theme/color.js +5 -0
- package/dist/theme/derive.d.ts +9 -2
- package/dist/theme/derive.js +72 -12
- package/dist/theme/palettes.d.ts +49 -6
- package/dist/theme/palettes.js +84 -15
- package/dist/theme/tokens.d.ts +3 -3
- package/dist/theme/tokens.js +107 -32
- package/package.json +40 -3
package/dist/components/toast.js
CHANGED
|
@@ -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
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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: "
|
|
16
|
-
gap: "layout.
|
|
17
|
-
width: "
|
|
18
|
-
maxWidth: "
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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: "
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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: {
|
|
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.
|
|
66
|
-
height: "control.
|
|
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.
|
|
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:
|
|
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:
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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
|
|
3
|
-
'Idempotency-Key': import("zod
|
|
4
|
-
'X-POSTHOG-SESSION-ID': import("zod
|
|
5
|
-
}, import("zod/v4/core
|
|
6
|
-
declare const feedbackAttachmentSchema: import("zod
|
|
7
|
-
id: import("zod
|
|
8
|
-
name: import("zod
|
|
9
|
-
size: import("zod
|
|
10
|
-
url: import("zod
|
|
11
|
-
}, import("zod/v4/core
|
|
12
|
-
declare const feedbackCreateInputSchema: import("zod
|
|
13
|
-
subject: import("zod
|
|
14
|
-
description: import("zod
|
|
15
|
-
type: import("zod
|
|
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
|
|
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
|
|
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
|
|
31
|
-
declare const feedbackErrorResponseSchema: import("zod
|
|
32
|
-
detail: import("zod
|
|
33
|
-
code: import("zod
|
|
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
|
|
44
|
-
}, import("zod/v4/core
|
|
45
|
-
}, import("zod/v4/core
|
|
46
|
-
declare const feedbackItemSchema: import("zod
|
|
47
|
-
id: import("zod
|
|
48
|
-
subject: import("zod
|
|
49
|
-
description: import("zod
|
|
50
|
-
type: import("zod
|
|
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
|
|
55
|
+
urgency: import("zod").ZodEnum<{
|
|
56
56
|
normal: "normal";
|
|
57
57
|
emergency: "emergency";
|
|
58
58
|
}>;
|
|
59
|
-
affectedScope: import("zod
|
|
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
|
|
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
|
|
74
|
-
updatedAt: import("zod
|
|
75
|
-
canEdit: import("zod
|
|
76
|
-
canWithdraw: import("zod
|
|
77
|
-
canReply: import("zod
|
|
78
|
-
createdAt_epoch_milliseconds: import("zod
|
|
79
|
-
updatedAt_epoch_milliseconds: import("zod
|
|
80
|
-
statusTimeline: import("zod
|
|
81
|
-
id: import("zod
|
|
82
|
-
status: import("zod
|
|
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
|
|
91
|
-
createdAt_epoch_milliseconds: import("zod
|
|
92
|
-
}, import("zod/v4/core
|
|
93
|
-
messages: import("zod
|
|
94
|
-
id: import("zod
|
|
95
|
-
author: import("zod
|
|
96
|
-
role: import("zod
|
|
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
|
|
101
|
-
}, import("zod/v4/core
|
|
102
|
-
body: import("zod
|
|
103
|
-
createdAt: import("zod
|
|
104
|
-
editedAt: import("zod
|
|
105
|
-
createdAt_epoch_milliseconds: import("zod
|
|
106
|
-
editedAt_epoch_milliseconds: import("zod
|
|
107
|
-
}, import("zod/v4/core
|
|
108
|
-
attachments: import("zod
|
|
109
|
-
id: import("zod
|
|
110
|
-
name: import("zod
|
|
111
|
-
size: import("zod
|
|
112
|
-
url: import("zod
|
|
113
|
-
}, import("zod/v4/core
|
|
114
|
-
}, import("zod/v4/core
|
|
115
|
-
declare const feedbackListResponseSchema: import("zod
|
|
116
|
-
items: import("zod
|
|
117
|
-
id: import("zod
|
|
118
|
-
subject: import("zod
|
|
119
|
-
description: import("zod
|
|
120
|
-
type: import("zod
|
|
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
|
|
125
|
+
urgency: import("zod").ZodEnum<{
|
|
126
126
|
normal: "normal";
|
|
127
127
|
emergency: "emergency";
|
|
128
128
|
}>;
|
|
129
|
-
affectedScope: import("zod
|
|
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
|
|
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
|
|
144
|
-
updatedAt: import("zod
|
|
145
|
-
canEdit: import("zod
|
|
146
|
-
canWithdraw: import("zod
|
|
147
|
-
canReply: import("zod
|
|
148
|
-
createdAt_epoch_milliseconds: import("zod
|
|
149
|
-
updatedAt_epoch_milliseconds: import("zod
|
|
150
|
-
}, import("zod/v4/core
|
|
151
|
-
}, import("zod/v4/core
|
|
152
|
-
declare const feedbackMessageCreateInputSchema: import("zod
|
|
153
|
-
body: import("zod
|
|
154
|
-
}, import("zod/v4/core
|
|
155
|
-
declare const feedbackMessageSchema: import("zod
|
|
156
|
-
id: import("zod
|
|
157
|
-
author: import("zod
|
|
158
|
-
role: import("zod
|
|
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
|
|
163
|
-
}, import("zod/v4/core
|
|
164
|
-
body: import("zod
|
|
165
|
-
createdAt: import("zod
|
|
166
|
-
editedAt: import("zod
|
|
167
|
-
createdAt_epoch_milliseconds: import("zod
|
|
168
|
-
editedAt_epoch_milliseconds: import("zod
|
|
169
|
-
}, import("zod/v4/core
|
|
170
|
-
declare const feedbackStatusEventSchema: import("zod
|
|
171
|
-
id: import("zod
|
|
172
|
-
status: import("zod
|
|
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
|
|
181
|
-
createdAt_epoch_milliseconds: import("zod
|
|
182
|
-
}, import("zod/v4/core
|
|
183
|
-
declare const feedbackStatusSchema: import("zod
|
|
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
|
|
192
|
-
id: import("zod
|
|
193
|
-
subject: import("zod
|
|
194
|
-
description: import("zod
|
|
195
|
-
type: import("zod
|
|
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
|
|
200
|
+
urgency: import("zod").ZodEnum<{
|
|
201
201
|
normal: "normal";
|
|
202
202
|
emergency: "emergency";
|
|
203
203
|
}>;
|
|
204
|
-
affectedScope: import("zod
|
|
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
|
|
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
|
|
219
|
-
updatedAt: import("zod
|
|
220
|
-
canEdit: import("zod
|
|
221
|
-
canWithdraw: import("zod
|
|
222
|
-
canReply: import("zod
|
|
223
|
-
createdAt_epoch_milliseconds: import("zod
|
|
224
|
-
updatedAt_epoch_milliseconds: import("zod
|
|
225
|
-
}, import("zod/v4/core
|
|
226
|
-
declare const feedbackTypeSchema: import("zod
|
|
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
|
|
232
|
-
subject: import("zod
|
|
233
|
-
description: import("zod
|
|
234
|
-
}, import("zod/v4/core
|
|
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;
|