@pstdio/ui 0.41.0 → 0.42.0
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/{MermaidComponent-BCiI63_G.js → MermaidComponent-D7vhkpka.js} +2 -2
- package/dist/{MermaidComponent-BCiI63_G.js.map → MermaidComponent-D7vhkpka.js.map} +1 -1
- package/dist/alert-MQ47wy7f.js +388 -0
- package/dist/alert-MQ47wy7f.js.map +1 -0
- package/dist/chat-ui.d.ts +36 -5
- package/dist/chat-ui.js +1777 -1422
- package/dist/chat-ui.js.map +1 -1
- package/dist/collection-view-fields-D3cysHNT.d.ts +232 -0
- package/dist/collection-view-grouping-D4nZk8-3.js +90 -0
- package/dist/collection-view-grouping-D4nZk8-3.js.map +1 -0
- package/dist/collection-view-search-CpjJy76w.js +1973 -0
- package/dist/collection-view-search-CpjJy76w.js.map +1 -0
- package/dist/collection-view.d.ts +4 -0
- package/dist/collection-view.js +2 -0
- package/dist/{data-table-stats-row-EiTEONdY.js → data-table-stats-row-64magT2g.js} +2 -2
- package/dist/{data-table-stats-row-EiTEONdY.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
- package/dist/data-table.d.ts +3 -1
- package/dist/data-table.js +279 -277
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-drawer-BwZBOObe.js → diff-drawer-IYpQ-QQK.js} +192 -191
- package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
- package/dist/{diff-viewer-kOOd7C7h.js → diff-viewer-C-0VAt9P.js} +4 -4
- package/dist/{diff-viewer-kOOd7C7h.js.map → diff-viewer-C-0VAt9P.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-DPxc0e5z.js → display-sort-control-f3rbILsV.js} +87 -86
- package/dist/{display-sort-control-DPxc0e5z.js.map → display-sort-control-f3rbILsV.js.map} +1 -1
- package/dist/drop-indicator-HjlBSIeV.js +27 -0
- package/dist/drop-indicator-HjlBSIeV.js.map +1 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js +1449 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js.map +1 -0
- package/dist/host-storage-BIo5azql.js +31 -0
- package/dist/host-storage-BIo5azql.js.map +1 -0
- package/dist/host-storage-J0089Hyk.d.ts +17 -0
- package/dist/icon-options-Tt6Wzhtv.js +308 -0
- package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
- package/dist/{index-C9mywhyX.d.ts → index-B79hwNcB.d.ts} +17 -1
- package/dist/index-CKsd23jv.d.ts +80 -0
- package/dist/{index-D3UJyWWh.d.ts → index-ICoad2I_.d.ts} +4 -223
- package/dist/index.d.ts +22 -6
- package/dist/index.js +1174 -1112
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -1
- package/dist/kanban-renderer.js +531 -528
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/list-row-Z4SHkseA.js +1195 -0
- package/dist/list-row-Z4SHkseA.js.map +1 -0
- package/dist/markdown-editor-Dd4mor7l.js +3236 -0
- package/dist/markdown-editor-Dd4mor7l.js.map +1 -0
- package/dist/number-input-7K66wnSC.js +63 -0
- package/dist/number-input-7K66wnSC.js.map +1 -0
- package/dist/param-editor-Dnix-fJo.js +225 -0
- package/dist/param-editor-Dnix-fJo.js.map +1 -0
- package/dist/param-editor-field-B3vLST-B.js +2394 -0
- package/dist/param-editor-field-B3vLST-B.js.map +1 -0
- package/dist/param-editor.js +4 -2
- package/dist/prism-OG4H7Hu4.js +334 -0
- package/dist/prism-OG4H7Hu4.js.map +1 -0
- package/dist/queued-follow-up-Bj_vtMgd.js +208 -0
- package/dist/queued-follow-up-Bj_vtMgd.js.map +1 -0
- package/dist/rich-text-BgEnAHr2.js +1160 -0
- package/dist/rich-text-BgEnAHr2.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +4 -2
- package/dist/terminal.js +1 -1
- package/dist/{theme-at0rtSnX.js → theme-CMJdH59Z.js} +224 -90
- package/dist/theme-CMJdH59Z.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-jarhD31R.js +1652 -0
- package/dist/tree-list-jarhD31R.js.map +1 -0
- package/dist/use-virtualizer-uj43XjBp.js +10 -0
- package/dist/use-virtualizer-uj43XjBp.js.map +1 -0
- package/dist/{host-storage-DP0RLj4i.d.ts → workspace-badge-BKtB805G.d.ts} +6 -16
- package/package.json +6 -2
- package/dist/chat-question-bubble-w2vMbFsS.js +0 -68
- package/dist/chat-question-bubble-w2vMbFsS.js.map +0 -1
- package/dist/diff-drawer-BwZBOObe.js.map +0 -1
- package/dist/list-row-DM0DiIrN.js +0 -1167
- package/dist/list-row-DM0DiIrN.js.map +0 -1
- package/dist/prism-JVIsQMoJ.js +0 -1029
- package/dist/prism-JVIsQMoJ.js.map +0 -1
- package/dist/rich-text-DM24VNQZ.js +0 -10447
- package/dist/rich-text-DM24VNQZ.js.map +0 -1
- package/dist/theme-at0rtSnX.js.map +0 -1
- package/dist/tree-list-Cqgl8mnN.js +0 -1621
- package/dist/tree-list-Cqgl8mnN.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as e } from "./markdown-editor-Dd4mor7l.js";
|
|
2
2
|
import { t } from "./mermaid-renderer-0PmNkOXI.js";
|
|
3
3
|
import { Box as n, Button as r, Flex as i, Textarea as a } from "@chakra-ui/react";
|
|
4
4
|
import { c as o } from "react/compiler-runtime";
|
|
@@ -87,4 +87,4 @@ function m(m) {
|
|
|
87
87
|
//#endregion
|
|
88
88
|
export { m as default };
|
|
89
89
|
|
|
90
|
-
//# sourceMappingURL=MermaidComponent-
|
|
90
|
+
//# sourceMappingURL=MermaidComponent-D7vhkpka.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidComponent-
|
|
1
|
+
{"version":3,"file":"MermaidComponent-D7vhkpka.js","names":["Box","Button","Flex","Textarea","useLexicalComposerContext","useLexicalEditable","$getNodeByKey","useEffect","useState","MermaidRenderer","$isMermaidNode","MermaidComponentProps","code","nodeKey","MermaidComponent","props","$","_c","editor","isEditable","isEditing","setIsEditing","draftCode","setDraftCode","previewCode","setPreviewCode","t0","t1","t2","update","node","setCode","commitCodeChanges","t3","cancelEditing","t4","undefined","t5","t6","t7","Symbol","for","event","target","value","t8","t9","_c","$isMermaidNode","MermaidComponent","$","c","props","editor","useLexicalComposerContext","isEditable","useLexicalEditable","isEditing","setIsEditing","useState","draftCode","setDraftCode","code","previewCode","setPreviewCode","t0","t1","useEffect","t2","nodeKey","node","$getNodeByKey","commitCodeChanges","t3","cancelEditing","t4","t5","MermaidRenderer","Button","t6","Flex","t7","event","t8","Box","Textarea","t9"],"sources":["../src/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.tsx"],"sourcesContent":["import { Box, Button, Flex, Textarea } from \"@chakra-ui/react\";\nimport { useLexicalComposerContext } from \"@lexical/react/LexicalComposerContext\";\nimport { useLexicalEditable } from \"@lexical/react/useLexicalEditable\";\nimport { $getNodeByKey } from \"lexical\";\nimport { useEffect, useState } from \"react\";\nimport { MermaidRenderer } from \"@/components/mermaid-renderer\";\nimport { $isMermaidNode } from \"./MermaidNode\";\n\ninterface MermaidComponentProps {\n code: string;\n nodeKey: string;\n}\n\nexport default function MermaidComponent(props: MermaidComponentProps) {\n const { code, nodeKey } = props;\n const [editor] = useLexicalComposerContext();\n const isEditable = useLexicalEditable();\n const [isEditing, setIsEditing] = useState(false);\n const [draftCode, setDraftCode] = useState(code);\n const [previewCode, setPreviewCode] = useState(code);\n\n useEffect(() => {\n setDraftCode(code);\n setPreviewCode(code);\n }, [code]);\n\n const commitCodeChanges = () => {\n editor.update(() => {\n const node = $getNodeByKey(nodeKey);\n if ($isMermaidNode(node)) {\n node.setCode(draftCode);\n }\n });\n\n setPreviewCode(draftCode);\n setIsEditing(false);\n };\n\n const cancelEditing = () => {\n setDraftCode(previewCode);\n setIsEditing(false);\n };\n\n if (!isEditing) {\n return (\n <MermaidRenderer\n key={previewCode}\n code={previewCode}\n isEditable={isEditable}\n onRequestEdit={isEditable ? () => setIsEditing(true) : undefined}\n />\n );\n }\n\n return (\n <Box borderWidth=\"1px\" borderColor=\"border.subtle\" borderRadius=\"md\" overflow=\"hidden\" width=\"100%\">\n <Flex justifyContent=\"flex-end\" alignItems=\"center\" gap=\"xs\" paddingX=\"sm\" paddingY=\"xs\" bg=\"bg.muted\">\n <Button size=\"xs\" variant=\"subtle\" onClick={cancelEditing}>\n Cancel\n </Button>\n <Button size=\"xs\" onClick={commitCodeChanges}>\n Preview\n </Button>\n </Flex>\n <Box padding=\"sm\" bg=\"bg.muted\">\n <Textarea\n value={draftCode}\n onChange={(event) => setDraftCode(event.target.value)}\n minHeight=\"180px\"\n resize=\"vertical\"\n fontFamily=\"mono\"\n fontSize=\"sm\"\n spellCheck={false}\n />\n </Box>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,SAAec,EAAAC,GAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GACb,EAAAL,SAAAC,eAA0BE,GAC1B,CAAAG,KAAiBd,EAA0B,GAC3Ce,IAAmBd,EAAmB,GACtC,CAAAe,GAAAC,KAAkCb,EAAS,EAAK,GAChD,CAAAc,GAAAC,KAAkCf,EAASI,CAAI,GAC/C,CAAAY,GAAAC,KAAsCjB,EAASI,CAAI,GAAEc,GAAAC;CAErDpB,AAFqDS,EAAA,OAAAJ,KAK5Cc,IAAAV,EAAA,IAAAW,IAAAX,EAAA,OAHCU,UAAA;EAERD,AADAF,EAAaX,CAAI,GACjBa,EAAeb,CAAI;CAAC,GACnBe,IAAA,CAACf,CAAI,GAACI,EAAA,KAAAJ,GAAAI,EAAA,KAAAU,GAAAV,EAAA,KAAAW,IAHTpB,EAAUmB,GAGPC,CAAM;CAAC,IAAAC;CAAA,AAAAZ,EAAA,OAAAM,KAAAN,EAAA,OAAAE,KAAAF,EAAA,OAAAH,KAEgBe,UAAA;EASxBP,AARAH,EAAMW,aAAQ;GACZ,IAAAC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, createSlotRecipeContext as c, defineSlotRecipe as l } from "@chakra-ui/react";
|
|
2
|
+
import { c as u } from "react/compiler-runtime";
|
|
3
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
+
import * as m from "react";
|
|
5
|
+
import { Children as h } from "react";
|
|
6
|
+
import { X as g } from "lucide-react";
|
|
7
|
+
//#region src/components/activity/activity-avatar.tsx
|
|
8
|
+
var _ = (e) => {
|
|
9
|
+
let r = u(14), { actor: i, icon: a, color: o, background: s } = e, c = o === void 0 ? "fg.muted" : o, l = s === void 0 ? "bg.muted" : s;
|
|
10
|
+
if (a) {
|
|
11
|
+
let e;
|
|
12
|
+
return r[0] !== l || r[1] !== c || r[2] !== a ? (e = /* @__PURE__ */ f(n, {
|
|
13
|
+
boxSize: "18px",
|
|
14
|
+
borderRadius: "full",
|
|
15
|
+
display: "inline-flex",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
flexShrink: 0,
|
|
19
|
+
color: c,
|
|
20
|
+
background: l,
|
|
21
|
+
children: a
|
|
22
|
+
}), r[0] = l, r[1] = c, r[2] = a, r[3] = e) : e = r[3], e;
|
|
23
|
+
}
|
|
24
|
+
let d = i?.avatarSrc, m = i?.avatarAlt ?? i?.name, h;
|
|
25
|
+
r[4] !== d || r[5] !== m ? (h = /* @__PURE__ */ f(t.Image, {
|
|
26
|
+
src: d,
|
|
27
|
+
alt: m
|
|
28
|
+
}), r[4] = d, r[5] = m, r[6] = h) : h = r[6];
|
|
29
|
+
let g = i?.name, _;
|
|
30
|
+
r[7] !== l || r[8] !== c || r[9] !== g ? (_ = /* @__PURE__ */ f(t.Fallback, {
|
|
31
|
+
name: g,
|
|
32
|
+
background: l,
|
|
33
|
+
color: c
|
|
34
|
+
}), r[7] = l, r[8] = c, r[9] = g, r[10] = _) : _ = r[10];
|
|
35
|
+
let v;
|
|
36
|
+
return r[11] !== h || r[12] !== _ ? (v = /* @__PURE__ */ p(t.Root, {
|
|
37
|
+
size: "2xs",
|
|
38
|
+
flexShrink: 0,
|
|
39
|
+
children: [h, _]
|
|
40
|
+
}), r[11] = h, r[12] = _, r[13] = v) : v = r[13], v;
|
|
41
|
+
}, v = l({
|
|
42
|
+
className: "activity-comment",
|
|
43
|
+
slots: [
|
|
44
|
+
"root",
|
|
45
|
+
"body",
|
|
46
|
+
"content"
|
|
47
|
+
],
|
|
48
|
+
base: {
|
|
49
|
+
root: {
|
|
50
|
+
width: "full",
|
|
51
|
+
borderWidth: "1px",
|
|
52
|
+
borderRadius: "xs",
|
|
53
|
+
overflow: "hidden"
|
|
54
|
+
},
|
|
55
|
+
body: {
|
|
56
|
+
display: "flex",
|
|
57
|
+
flexDirection: "column"
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
color: "fg",
|
|
61
|
+
overflowWrap: "anywhere",
|
|
62
|
+
whiteSpace: "pre-wrap"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
variants: {
|
|
66
|
+
tone: {
|
|
67
|
+
default: { root: {
|
|
68
|
+
background: "bg",
|
|
69
|
+
borderColor: "border.subtle"
|
|
70
|
+
} },
|
|
71
|
+
attention: { root: {
|
|
72
|
+
background: "bg.warning",
|
|
73
|
+
borderColor: "border.warning"
|
|
74
|
+
} }
|
|
75
|
+
},
|
|
76
|
+
size: {
|
|
77
|
+
comfortable: {
|
|
78
|
+
body: {
|
|
79
|
+
gap: "sm",
|
|
80
|
+
padding: "md"
|
|
81
|
+
},
|
|
82
|
+
content: { textStyle: "label/S/regular" }
|
|
83
|
+
},
|
|
84
|
+
compact: {
|
|
85
|
+
body: {
|
|
86
|
+
gap: "xs",
|
|
87
|
+
padding: "sm"
|
|
88
|
+
},
|
|
89
|
+
content: { textStyle: "label/S/regular" }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
defaultVariants: {
|
|
94
|
+
tone: "default",
|
|
95
|
+
size: "comfortable"
|
|
96
|
+
}
|
|
97
|
+
}), { withContext: y, withProvider: b } = c({ recipe: v }), x = () => {
|
|
98
|
+
let e = u(1), t;
|
|
99
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ f(n, {
|
|
100
|
+
as: "span",
|
|
101
|
+
boxSize: "3px",
|
|
102
|
+
borderRadius: "full",
|
|
103
|
+
background: "fg.subtle",
|
|
104
|
+
flexShrink: 0
|
|
105
|
+
}), e[0] = t) : t = e[0], t;
|
|
106
|
+
}, S = (e) => {
|
|
107
|
+
let t = u(16), { actor: i, icon: a, iconColor: s, iconBackground: c, timestamp: l, actions: m } = e, h;
|
|
108
|
+
t[0] !== i || t[1] !== a || t[2] !== c || t[3] !== s ? (h = /* @__PURE__ */ f(_, {
|
|
109
|
+
actor: i,
|
|
110
|
+
icon: a,
|
|
111
|
+
color: s,
|
|
112
|
+
background: c
|
|
113
|
+
}), t[0] = i, t[1] = a, t[2] = c, t[3] = s, t[4] = h) : h = t[4];
|
|
114
|
+
let g;
|
|
115
|
+
t[5] === i.name ? g = t[6] : (g = /* @__PURE__ */ f(o, {
|
|
116
|
+
textStyle: "label/S/medium",
|
|
117
|
+
color: "fg",
|
|
118
|
+
truncate: !0,
|
|
119
|
+
children: i.name
|
|
120
|
+
}), t[5] = i.name, t[6] = g);
|
|
121
|
+
let v;
|
|
122
|
+
t[7] === l ? v = t[8] : (v = l ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(x, {}), /* @__PURE__ */ f(o, {
|
|
123
|
+
textStyle: "label/S/regular",
|
|
124
|
+
color: "fg.muted",
|
|
125
|
+
flexShrink: 0,
|
|
126
|
+
children: l
|
|
127
|
+
})] }) : null, t[7] = l, t[8] = v);
|
|
128
|
+
let y;
|
|
129
|
+
t[9] === m ? y = t[10] : (y = /* @__PURE__ */ f(n, {
|
|
130
|
+
marginLeft: "auto",
|
|
131
|
+
flexShrink: 0,
|
|
132
|
+
children: m
|
|
133
|
+
}), t[9] = m, t[10] = y);
|
|
134
|
+
let b;
|
|
135
|
+
return t[11] !== h || t[12] !== g || t[13] !== v || t[14] !== y ? (b = /* @__PURE__ */ p(r, {
|
|
136
|
+
gap: "xs",
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
minW: "0",
|
|
139
|
+
children: [
|
|
140
|
+
h,
|
|
141
|
+
g,
|
|
142
|
+
v,
|
|
143
|
+
y
|
|
144
|
+
]
|
|
145
|
+
}), t[11] = h, t[12] = g, t[13] = v, t[14] = y, t[15] = b) : b = t[15], b;
|
|
146
|
+
}, C = b("article", "root"), w = y("div", "body"), T = y("div", "content"), E = (e) => {
|
|
147
|
+
let t = u(18), r, i, s, c, l;
|
|
148
|
+
t[0] === e ? (r = t[1], i = t[2], s = t[3], c = t[4], l = t[5]) : ({actor: i, timestamp: l, actions: r, children: s, ...c} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = s, t[4] = c, t[5] = l);
|
|
149
|
+
let d;
|
|
150
|
+
t[6] !== r || t[7] !== i || t[8] !== l ? (d = /* @__PURE__ */ f(S, {
|
|
151
|
+
actor: i,
|
|
152
|
+
timestamp: l,
|
|
153
|
+
actions: r
|
|
154
|
+
}), t[6] = r, t[7] = i, t[8] = l, t[9] = d) : d = t[9];
|
|
155
|
+
let m;
|
|
156
|
+
t[10] === s ? m = t[11] : (m = /* @__PURE__ */ f(n, {
|
|
157
|
+
paddingLeft: "32px",
|
|
158
|
+
children: /* @__PURE__ */ f(o, {
|
|
159
|
+
as: "div",
|
|
160
|
+
textStyle: "label/S/regular",
|
|
161
|
+
color: "fg",
|
|
162
|
+
overflowWrap: "anywhere",
|
|
163
|
+
children: s
|
|
164
|
+
})
|
|
165
|
+
}), t[10] = s, t[11] = m);
|
|
166
|
+
let h;
|
|
167
|
+
t[12] !== d || t[13] !== m ? (h = /* @__PURE__ */ p(a, {
|
|
168
|
+
gap: "xs",
|
|
169
|
+
children: [d, m]
|
|
170
|
+
}), t[12] = d, t[13] = m, t[14] = h) : h = t[14];
|
|
171
|
+
let g;
|
|
172
|
+
return t[15] !== c || t[16] !== h ? (g = /* @__PURE__ */ f(n, {
|
|
173
|
+
paddingX: "md",
|
|
174
|
+
paddingY: "sm",
|
|
175
|
+
...c,
|
|
176
|
+
children: h
|
|
177
|
+
}), t[15] = c, t[16] = h, t[17] = g) : g = t[17], g;
|
|
178
|
+
}, D = (e) => {
|
|
179
|
+
let t = u(33), r, i, a, o, s, c, l, d, m, g;
|
|
180
|
+
t[0] === e ? (r = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], d = t[8], m = t[9], g = t[10]) : ({actor: i, icon: s, iconColor: l, iconBackground: c, timestamp: g, actions: r, replies: d, composer: o, children: a, ...m} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = d, t[9] = m, t[10] = g);
|
|
181
|
+
let _ = h.count(d) > 0, v;
|
|
182
|
+
t[11] !== r || t[12] !== i || t[13] !== s || t[14] !== c || t[15] !== l || t[16] !== g ? (v = /* @__PURE__ */ f(S, {
|
|
183
|
+
actor: i,
|
|
184
|
+
icon: s,
|
|
185
|
+
iconColor: l,
|
|
186
|
+
iconBackground: c,
|
|
187
|
+
timestamp: g,
|
|
188
|
+
actions: r
|
|
189
|
+
}), t[11] = r, t[12] = i, t[13] = s, t[14] = c, t[15] = l, t[16] = g, t[17] = v) : v = t[17];
|
|
190
|
+
let y;
|
|
191
|
+
t[18] === a ? y = t[19] : (y = /* @__PURE__ */ f(T, { children: a }), t[18] = a, t[19] = y);
|
|
192
|
+
let b;
|
|
193
|
+
t[20] !== v || t[21] !== y ? (b = /* @__PURE__ */ p(w, { children: [v, y] }), t[20] = v, t[21] = y, t[22] = b) : b = t[22];
|
|
194
|
+
let x;
|
|
195
|
+
t[23] !== _ || t[24] !== d ? (x = _ ? /* @__PURE__ */ f(n, {
|
|
196
|
+
borderTopWidth: "1px",
|
|
197
|
+
borderColor: "border.subtle",
|
|
198
|
+
children: d
|
|
199
|
+
}) : null, t[23] = _, t[24] = d, t[25] = x) : x = t[25];
|
|
200
|
+
let E;
|
|
201
|
+
t[26] === o ? E = t[27] : (E = o ? /* @__PURE__ */ f(n, {
|
|
202
|
+
borderTopWidth: "1px",
|
|
203
|
+
borderColor: "border.subtle",
|
|
204
|
+
children: o
|
|
205
|
+
}) : null, t[26] = o, t[27] = E);
|
|
206
|
+
let D;
|
|
207
|
+
return t[28] !== m || t[29] !== b || t[30] !== x || t[31] !== E ? (D = /* @__PURE__ */ p(C, {
|
|
208
|
+
...m,
|
|
209
|
+
children: [
|
|
210
|
+
b,
|
|
211
|
+
x,
|
|
212
|
+
E
|
|
213
|
+
]
|
|
214
|
+
}), t[28] = m, t[29] = b, t[30] = x, t[31] = E, t[32] = D) : D = t[32], D;
|
|
215
|
+
}, O = () => {
|
|
216
|
+
let e = u(1), t;
|
|
217
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ f(n, {
|
|
218
|
+
as: "span",
|
|
219
|
+
boxSize: "3px",
|
|
220
|
+
borderRadius: "full",
|
|
221
|
+
background: "fg.subtle",
|
|
222
|
+
flexShrink: 0
|
|
223
|
+
}), e[0] = t) : t = e[0], t;
|
|
224
|
+
}, k = (e) => {
|
|
225
|
+
let t = u(28), r, i, a, c, l, m, h;
|
|
226
|
+
t[0] === e ? (r = t[1], i = t[2], a = t[3], c = t[4], l = t[5], m = t[6], h = t[7]) : ({actor: r, icon: a, iconColor: l, iconBackground: m, timestamp: h, children: i, ...c} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = c, t[5] = l, t[6] = m, t[7] = h);
|
|
227
|
+
let g = l === void 0 ? "fg" : l, v = m === void 0 ? "transparent" : m, y;
|
|
228
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ f(s.Separator, { borderColor: "border" }), t[8] = y) : y = t[8];
|
|
229
|
+
let b;
|
|
230
|
+
t[9] !== r || t[10] !== a || t[11] !== v || t[12] !== g ? (b = /* @__PURE__ */ p(s.Connector, { children: [y, /* @__PURE__ */ f(s.Indicator, {
|
|
231
|
+
outline: "none",
|
|
232
|
+
border: "none",
|
|
233
|
+
background: "bg",
|
|
234
|
+
children: /* @__PURE__ */ f(_, {
|
|
235
|
+
actor: r,
|
|
236
|
+
icon: a,
|
|
237
|
+
color: g,
|
|
238
|
+
background: v
|
|
239
|
+
})
|
|
240
|
+
})] }), t[9] = r, t[10] = a, t[11] = v, t[12] = g, t[13] = b) : b = t[13];
|
|
241
|
+
let x;
|
|
242
|
+
t[14] === r ? x = t[15] : (x = r ? /* @__PURE__ */ f(o, {
|
|
243
|
+
as: "span",
|
|
244
|
+
color: "fg",
|
|
245
|
+
fontWeight: "500",
|
|
246
|
+
flexShrink: 0,
|
|
247
|
+
children: r.name
|
|
248
|
+
}) : null, t[14] = r, t[15] = x);
|
|
249
|
+
let S;
|
|
250
|
+
t[16] === i ? S = t[17] : (S = /* @__PURE__ */ f(n, {
|
|
251
|
+
as: "span",
|
|
252
|
+
display: "inline-flex",
|
|
253
|
+
alignItems: "center",
|
|
254
|
+
gap: "2xs",
|
|
255
|
+
minW: "0",
|
|
256
|
+
flexWrap: "wrap",
|
|
257
|
+
children: i
|
|
258
|
+
}), t[16] = i, t[17] = S);
|
|
259
|
+
let C;
|
|
260
|
+
t[18] === h ? C = t[19] : (C = h ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(O, {}), /* @__PURE__ */ f(o, {
|
|
261
|
+
as: "span",
|
|
262
|
+
color: "fg.muted",
|
|
263
|
+
flexShrink: 0,
|
|
264
|
+
children: h
|
|
265
|
+
})] }) : null, t[18] = h, t[19] = C);
|
|
266
|
+
let w;
|
|
267
|
+
t[20] !== x || t[21] !== S || t[22] !== C ? (w = /* @__PURE__ */ f(s.Content, {
|
|
268
|
+
gap: "0",
|
|
269
|
+
minW: "0",
|
|
270
|
+
children: /* @__PURE__ */ p(s.Title, {
|
|
271
|
+
marginTop: "0",
|
|
272
|
+
gap: "xs",
|
|
273
|
+
minW: "0",
|
|
274
|
+
fontWeight: "normal",
|
|
275
|
+
textStyle: "label/S/regular",
|
|
276
|
+
color: "fg.muted",
|
|
277
|
+
children: [
|
|
278
|
+
x,
|
|
279
|
+
S,
|
|
280
|
+
C
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
}), t[20] = x, t[21] = S, t[22] = C, t[23] = w) : w = t[23];
|
|
284
|
+
let T;
|
|
285
|
+
return t[24] !== c || t[25] !== b || t[26] !== w ? (T = /* @__PURE__ */ p(s.Item, {
|
|
286
|
+
gap: "xs",
|
|
287
|
+
minH: "24px",
|
|
288
|
+
paddingX: "md",
|
|
289
|
+
...c,
|
|
290
|
+
children: [b, w]
|
|
291
|
+
}), t[24] = c, t[25] = b, t[26] = w, t[27] = T) : T = t[27], T;
|
|
292
|
+
}, A = (e) => {
|
|
293
|
+
let t = u(6), n, r;
|
|
294
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
295
|
+
let i;
|
|
296
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ f(a, {
|
|
297
|
+
width: "full",
|
|
298
|
+
gap: "md",
|
|
299
|
+
...r,
|
|
300
|
+
children: n
|
|
301
|
+
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
302
|
+
}, j = (e) => {
|
|
303
|
+
let t = u(12), n, i, a;
|
|
304
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({title: a, actions: n, ...i} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
305
|
+
let s = a === void 0 ? "Activity" : a, c;
|
|
306
|
+
t[4] === s ? c = t[5] : (c = /* @__PURE__ */ f(o, {
|
|
307
|
+
textStyle: "label/M/medium",
|
|
308
|
+
color: "fg",
|
|
309
|
+
children: s
|
|
310
|
+
}), t[4] = s, t[5] = c);
|
|
311
|
+
let l;
|
|
312
|
+
t[6] === n ? l = t[7] : (l = n ? /* @__PURE__ */ f(r, {
|
|
313
|
+
gap: "xs",
|
|
314
|
+
children: n
|
|
315
|
+
}) : null, t[6] = n, t[7] = l);
|
|
316
|
+
let d;
|
|
317
|
+
return t[8] !== i || t[9] !== c || t[10] !== l ? (d = /* @__PURE__ */ p(r, {
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
justifyContent: "space-between",
|
|
320
|
+
gap: "md",
|
|
321
|
+
...i,
|
|
322
|
+
children: [c, l]
|
|
323
|
+
}), t[8] = i, t[9] = c, t[10] = l, t[11] = d) : d = t[11], d;
|
|
324
|
+
}, M = (e) => {
|
|
325
|
+
let t = u(6), n, r;
|
|
326
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
327
|
+
let i;
|
|
328
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ f(a, {
|
|
329
|
+
gap: "md",
|
|
330
|
+
width: "full",
|
|
331
|
+
...r,
|
|
332
|
+
children: n
|
|
333
|
+
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
334
|
+
}, N = (e) => {
|
|
335
|
+
let t = u(7), n, r;
|
|
336
|
+
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
337
|
+
let i;
|
|
338
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (i = { "--timeline-indicator-size": "18px" }, t[3] = i) : i = t[3];
|
|
339
|
+
let a;
|
|
340
|
+
return t[4] !== n || t[5] !== r ? (a = /* @__PURE__ */ f(s.Root, {
|
|
341
|
+
size: "sm",
|
|
342
|
+
variant: "plain",
|
|
343
|
+
width: "full",
|
|
344
|
+
css: i,
|
|
345
|
+
...r,
|
|
346
|
+
children: n
|
|
347
|
+
}), t[4] = n, t[5] = r, t[6] = a) : a = t[6], a;
|
|
348
|
+
}, P = m.forwardRef(function(t, n) {
|
|
349
|
+
let a = u(23), o, s, c, l, d, m, h;
|
|
350
|
+
a[0] === t ? (o = a[1], s = a[2], c = a[3], l = a[4], d = a[5], m = a[6], h = a[7]) : ({title: h, children: o, icon: c, startElement: m, endElement: s, onClose: l, ...d} = t, a[0] = t, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = d, a[6] = m, a[7] = h);
|
|
351
|
+
let _;
|
|
352
|
+
a[8] !== c || a[9] !== m ? (_ = m || /* @__PURE__ */ f(e.Indicator, { children: c }), a[8] = c, a[9] = m, a[10] = _) : _ = a[10];
|
|
353
|
+
let v;
|
|
354
|
+
a[11] !== o || a[12] !== h ? (v = o ? /* @__PURE__ */ p(e.Content, { children: [/* @__PURE__ */ f(e.Title, { children: h }), /* @__PURE__ */ f(e.Description, { children: o })] }) : /* @__PURE__ */ f(e.Title, {
|
|
355
|
+
flex: "1",
|
|
356
|
+
children: h
|
|
357
|
+
}), a[11] = o, a[12] = h, a[13] = v) : v = a[13];
|
|
358
|
+
let y;
|
|
359
|
+
a[14] !== s || a[15] !== l ? (y = s || l ? /* @__PURE__ */ p(r, {
|
|
360
|
+
gap: "2xs",
|
|
361
|
+
alignSelf: "center",
|
|
362
|
+
children: [s, l ? /* @__PURE__ */ f(i, {
|
|
363
|
+
"aria-label": "Dismiss",
|
|
364
|
+
size: "2xs",
|
|
365
|
+
variant: "ghost",
|
|
366
|
+
onClick: l,
|
|
367
|
+
children: /* @__PURE__ */ f(g, {})
|
|
368
|
+
}) : null]
|
|
369
|
+
}) : null, a[14] = s, a[15] = l, a[16] = y) : y = a[16];
|
|
370
|
+
let b;
|
|
371
|
+
return a[17] !== n || a[18] !== d || a[19] !== _ || a[20] !== v || a[21] !== y ? (b = /* @__PURE__ */ p(e.Root, {
|
|
372
|
+
ref: n,
|
|
373
|
+
px: "xs",
|
|
374
|
+
py: "2xs",
|
|
375
|
+
gap: "2xs",
|
|
376
|
+
minH: "auto",
|
|
377
|
+
...d,
|
|
378
|
+
children: [
|
|
379
|
+
_,
|
|
380
|
+
v,
|
|
381
|
+
y
|
|
382
|
+
]
|
|
383
|
+
}), a[17] = n, a[18] = d, a[19] = _, a[20] = v, a[21] = y, a[22] = b) : b = a[22], b;
|
|
384
|
+
});
|
|
385
|
+
//#endregion
|
|
386
|
+
export { A as a, E as c, j as i, _ as l, N as n, k as o, M as r, D as s, P as t };
|
|
387
|
+
|
|
388
|
+
//# sourceMappingURL=alert-MQ47wy7f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-MQ47wy7f.js","names":["Avatar","Box","ReactNode","ActivityActor","ActivityAvatarProps","actor","icon","color","background","ActivityAvatar","props","$","_c","t0","t1","undefined","t2","avatarSrc","t3","avatarAlt","name","t4","t5","t6","t7","_c","defineSlotRecipe","activityCommentSlotRecipe","className","slots","base","root","width","borderWidth","borderRadius","overflow","body","display","flexDirection","content","color","overflowWrap","whiteSpace","variants","tone","default","background","borderColor","attention","size","comfortable","gap","padding","textStyle","compact","defaultVariants","HTMLChakraProps","RecipeVariantProps","Box","createSlotRecipeContext","HStack","Stack","Text","Children","ReactNode","activityCommentSlotRecipe","recipe","ActivityActor","ActivityAvatar","withContext","withProvider","ActivityCommentVariantProps","ActivityCommentHeaderProps","actor","icon","iconColor","iconBackground","timestamp","actions","ActivityCommentRootProps","ActivityCommentProps","Omit","replies","composer","children","ActivityReplyProps","TimestampSeparator","$","_c","t0","Symbol","for","ActivityCommentHeader","props","t1","name","t2","t3","t4","ActivityCommentRoot","HTMLDivElement","ActivityCommentBody","ActivityCommentContent","ActivityReply","rootProps","ActivityComment","hasReplies","count","t5","_c","_Fragment","TimelineItemProps","Box","Text","Timeline","ReactNode","ActivityActor","ActivityAvatar","ActivityEventProps","Omit","actor","icon","iconColor","iconBackground","timestamp","children","EventSeparator","$","_c","t0","Symbol","for","ActivityEvent","props","rootProps","t1","undefined","t2","t3","t4","name","t5","t6","t7","t8","_c","_Fragment","StackProps","HStack","Stack","Text","ReactNode","ActivityRootProps","children","ActivityHeaderProps","Omit","title","actions","ActivityFeedProps","ActivityRoot","props","$","_c","rootProps","t0","ActivityHeader","undefined","t1","t2","t3","ActivityFeed","_c","TimelineRootProps","Timeline","ReactNode","ActivityTimelineProps","children","ActivityTimeline","props","$","_c","rootProps","t0","Symbol","for","t1","_c","Alert","ChakraAlert","HStack","IconButton","X","React","AlertProps","Omit","RootProps","startElement","ReactNode","endElement","title","icon","ReactElement","onClose","AlertMessage","forwardRef","HTMLDivElement","props","ref","$","_c","children","rest","t0","t1","t2","t3","Alert","_c","ChakraAlert","React","ActivityAvatar","$","c","t0","t1","props","color","background","icon","t2","Box","actor","t3","t4","Avatar","t5","t6","t7","activityCommentSlotRecipe","defineSlotRecipe","createSlotRecipeContext","TimestampSeparator","ActivityCommentHeader","iconBackground","iconColor","Text","timestamp","Fragment","actions","HStack","ActivityCommentRoot","withProvider","ActivityCommentBody","withContext","ActivityCommentContent","ActivityReply","children","rootProps","Stack","ActivityComment","composer","replies","hasReplies","Children","EventSeparator","ActivityEvent","Timeline","t8","ActivityRoot","ActivityHeader","title","ActivityFeed","ActivityTimeline","AlertMessage","endElement","onClose","rest","startElement","Alert","IconButton","X","ref"],"sources":["../src/components/activity/activity-avatar.tsx","../src/theme/recipes/activity-comment.ts","../src/components/activity/activity-comment.tsx","../src/components/activity/activity-event.tsx","../src/components/activity/activity-root.tsx","../src/components/activity/activity-timeline.tsx","../src/components/primitives/alert.tsx"],"sourcesContent":["import { Avatar, Box } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\n\nexport interface ActivityAvatarProps {\n actor?: ActivityActor;\n icon?: ReactNode;\n color?: string;\n background?: string;\n}\n\nexport const ActivityAvatar = (props: ActivityAvatarProps) => {\n const { actor, icon, color = \"fg.muted\", background = \"bg.muted\" } = props;\n\n if (icon) {\n return (\n <Box\n boxSize=\"18px\"\n borderRadius=\"full\"\n display=\"inline-flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n flexShrink={0}\n color={color}\n background={background}\n >\n {icon}\n </Box>\n );\n }\n\n return (\n <Avatar.Root size=\"2xs\" flexShrink={0}>\n <Avatar.Image src={actor?.avatarSrc} alt={actor?.avatarAlt ?? actor?.name} />\n <Avatar.Fallback name={actor?.name} background={background} color={color} />\n </Avatar.Root>\n );\n};\n","import { defineSlotRecipe } from \"@chakra-ui/react\";\n\nexport const activityCommentSlotRecipe = defineSlotRecipe({\n className: \"activity-comment\",\n slots: [\"root\", \"body\", \"content\"],\n base: {\n root: {\n width: \"full\",\n borderWidth: \"1px\",\n borderRadius: \"xs\",\n overflow: \"hidden\",\n },\n body: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n content: {\n color: \"fg\",\n overflowWrap: \"anywhere\",\n whiteSpace: \"pre-wrap\",\n },\n },\n variants: {\n tone: {\n default: {\n root: {\n background: \"bg\",\n borderColor: \"border.subtle\",\n },\n },\n attention: {\n root: {\n background: \"bg.warning\",\n borderColor: \"border.warning\",\n },\n },\n },\n size: {\n comfortable: {\n body: {\n gap: \"sm\",\n padding: \"md\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n compact: {\n body: {\n gap: \"xs\",\n padding: \"sm\",\n },\n content: {\n textStyle: \"label/S/regular\",\n },\n },\n },\n },\n defaultVariants: {\n tone: \"default\",\n size: \"comfortable\",\n },\n});\n","import type { HTMLChakraProps, RecipeVariantProps } from \"@chakra-ui/react\";\nimport { Box, createSlotRecipeContext, HStack, Stack, Text } from \"@chakra-ui/react\";\nimport { Children, type ReactNode } from \"react\";\n\nimport { activityCommentSlotRecipe as recipe } from \"@/theme/recipes/activity-comment\";\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nconst { withContext, withProvider } = createSlotRecipeContext({ recipe });\n\ntype ActivityCommentVariantProps = RecipeVariantProps<typeof recipe>;\n\ninterface ActivityCommentHeaderProps {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n}\n\ninterface ActivityCommentRootProps extends HTMLChakraProps<\"article\">, ActivityCommentVariantProps {}\n\nexport interface ActivityCommentProps extends Omit<ActivityCommentRootProps, \"title\"> {\n actor: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n actions?: ReactNode;\n replies?: ReactNode;\n composer?: ReactNode;\n children: ReactNode;\n}\n\nexport interface ActivityReplyProps extends Omit<HTMLChakraProps<\"div\">, \"title\"> {\n actor: ActivityActor;\n timestamp?: ReactNode;\n actions?: ReactNode;\n children: ReactNode;\n}\n\nconst TimestampSeparator = () => (\n <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />\n);\n\nconst ActivityCommentHeader = (props: ActivityCommentHeaderProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions } = props;\n\n return (\n <HStack gap=\"xs\" alignItems=\"center\" minW=\"0\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n <Text textStyle=\"label/S/medium\" color=\"fg\" truncate>\n {actor.name}\n </Text>\n {timestamp ? (\n <>\n <TimestampSeparator />\n <Text textStyle=\"label/S/regular\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n <Box marginLeft=\"auto\" flexShrink={0}>\n {actions}\n </Box>\n </HStack>\n );\n};\n\nconst ActivityCommentRoot = withProvider<HTMLDivElement, ActivityCommentRootProps>(\"article\", \"root\");\nconst ActivityCommentBody = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"body\");\nconst ActivityCommentContent = withContext<HTMLDivElement, HTMLChakraProps<\"div\">>(\"div\", \"content\");\n\nexport const ActivityReply = (props: ActivityReplyProps) => {\n const { actor, timestamp, actions, children, ...rootProps } = props;\n\n return (\n <Box paddingX=\"md\" paddingY=\"sm\" {...rootProps}>\n <Stack gap=\"xs\">\n <ActivityCommentHeader actor={actor} timestamp={timestamp} actions={actions} />\n <Box paddingLeft=\"32px\">\n <Text as=\"div\" textStyle=\"label/S/regular\" color=\"fg\" overflowWrap=\"anywhere\">\n {children}\n </Text>\n </Box>\n </Stack>\n </Box>\n );\n};\n\nexport const ActivityComment = (props: ActivityCommentProps) => {\n const { actor, icon, iconColor, iconBackground, timestamp, actions, replies, composer, children, ...rootProps } =\n props;\n const hasReplies = Children.count(replies) > 0;\n\n return (\n <ActivityCommentRoot {...rootProps}>\n <ActivityCommentBody>\n <ActivityCommentHeader\n actor={actor}\n icon={icon}\n iconColor={iconColor}\n iconBackground={iconBackground}\n timestamp={timestamp}\n actions={actions}\n />\n <ActivityCommentContent>{children}</ActivityCommentContent>\n </ActivityCommentBody>\n {hasReplies ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {replies}\n </Box>\n ) : null}\n {composer ? (\n <Box borderTopWidth=\"1px\" borderColor=\"border.subtle\">\n {composer}\n </Box>\n ) : null}\n </ActivityCommentRoot>\n );\n};\n","import type { TimelineItemProps } from \"@chakra-ui/react\";\nimport { Box, Text, Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nimport type { ActivityActor } from \"./activity.types\";\nimport { ActivityAvatar } from \"./activity-avatar\";\n\nexport interface ActivityEventProps extends Omit<TimelineItemProps, \"title\"> {\n actor?: ActivityActor;\n icon?: ReactNode;\n iconColor?: string;\n iconBackground?: string;\n timestamp?: ReactNode;\n children: ReactNode;\n}\n\nconst EventSeparator = () => <Box as=\"span\" boxSize=\"3px\" borderRadius=\"full\" background=\"fg.subtle\" flexShrink={0} />;\n\nexport const ActivityEvent = (props: ActivityEventProps) => {\n const { actor, icon, iconColor = \"fg\", iconBackground = \"transparent\", timestamp, children, ...rootProps } = props;\n\n return (\n <Timeline.Item gap=\"xs\" minH=\"24px\" paddingX=\"md\" {...rootProps}>\n <Timeline.Connector>\n <Timeline.Separator borderColor=\"border\" />\n <Timeline.Indicator outline=\"none\" border=\"none\" background=\"bg\">\n <ActivityAvatar actor={actor} icon={icon} color={iconColor} background={iconBackground} />\n </Timeline.Indicator>\n </Timeline.Connector>\n <Timeline.Content gap=\"0\" minW=\"0\">\n <Timeline.Title\n marginTop=\"0\"\n gap=\"xs\"\n minW=\"0\"\n fontWeight=\"normal\"\n textStyle=\"label/S/regular\"\n color=\"fg.muted\"\n >\n {actor ? (\n <Text as=\"span\" color=\"fg\" fontWeight=\"500\" flexShrink={0}>\n {actor.name}\n </Text>\n ) : null}\n <Box as=\"span\" display=\"inline-flex\" alignItems=\"center\" gap=\"2xs\" minW=\"0\" flexWrap=\"wrap\">\n {children}\n </Box>\n {timestamp ? (\n <>\n <EventSeparator />\n <Text as=\"span\" color=\"fg.muted\" flexShrink={0}>\n {timestamp}\n </Text>\n </>\n ) : null}\n </Timeline.Title>\n </Timeline.Content>\n </Timeline.Item>\n );\n};\n","import type { StackProps } from \"@chakra-ui/react\";\nimport { HStack, Stack, Text } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityRootProps extends StackProps {\n children: ReactNode;\n}\n\nexport interface ActivityHeaderProps extends Omit<StackProps, \"title\"> {\n title?: ReactNode;\n actions?: ReactNode;\n}\n\nexport interface ActivityFeedProps extends StackProps {\n children: ReactNode;\n}\n\nexport const ActivityRoot = (props: ActivityRootProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack width=\"full\" gap=\"md\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n\nexport const ActivityHeader = (props: ActivityHeaderProps) => {\n const { title = \"Activity\", actions, ...rootProps } = props;\n\n return (\n <HStack alignItems=\"center\" justifyContent=\"space-between\" gap=\"md\" {...rootProps}>\n <Text textStyle=\"label/M/medium\" color=\"fg\">\n {title}\n </Text>\n {actions ? <HStack gap=\"xs\">{actions}</HStack> : null}\n </HStack>\n );\n};\n\nexport const ActivityFeed = (props: ActivityFeedProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Stack gap=\"md\" width=\"full\" {...rootProps}>\n {children}\n </Stack>\n );\n};\n","import type { TimelineRootProps } from \"@chakra-ui/react\";\nimport { Timeline } from \"@chakra-ui/react\";\nimport type { ReactNode } from \"react\";\n\nexport interface ActivityTimelineProps extends TimelineRootProps {\n children: ReactNode;\n}\n\nexport const ActivityTimeline = (props: ActivityTimelineProps) => {\n const { children, ...rootProps } = props;\n\n return (\n <Timeline.Root size=\"sm\" variant=\"plain\" width=\"full\" css={{ \"--timeline-indicator-size\": \"18px\" }} {...rootProps}>\n {children}\n </Timeline.Root>\n );\n};\n","import { Alert as ChakraAlert, HStack, IconButton } from \"@chakra-ui/react\";\nimport { X } from \"lucide-react\";\nimport * as React from \"react\";\n\nexport interface AlertProps extends Omit<ChakraAlert.RootProps, \"title\"> {\n startElement?: React.ReactNode;\n // An action that recovers from the alert, such as Retry for a temporary failure.\n endElement?: React.ReactNode;\n title?: React.ReactNode;\n icon?: React.ReactElement;\n // Shows a close button that dismisses the alert.\n onClose?: () => void;\n}\n\nexport const AlertMessage = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(props, ref) {\n const { title, children, icon, startElement, endElement, onClose, ...rest } = props;\n return (\n <ChakraAlert.Root ref={ref} px=\"xs\" py=\"2xs\" gap=\"2xs\" minH=\"auto\" {...rest}>\n {startElement || <ChakraAlert.Indicator>{icon}</ChakraAlert.Indicator>}\n {children ? (\n <ChakraAlert.Content>\n <ChakraAlert.Title>{title}</ChakraAlert.Title>\n <ChakraAlert.Description>{children}</ChakraAlert.Description>\n </ChakraAlert.Content>\n ) : (\n <ChakraAlert.Title flex=\"1\">{title}</ChakraAlert.Title>\n )}\n {endElement || onClose ? (\n <HStack gap=\"2xs\" alignSelf=\"center\">\n {endElement}\n {onClose ? (\n <IconButton aria-label=\"Dismiss\" size=\"2xs\" variant=\"ghost\" onClick={onClose}>\n <X />\n </IconButton>\n ) : null}\n </HStack>\n ) : null}\n </ChakraAlert.Root>\n );\n});\n"],"mappings":";;;;;;;AAYA,IAAaS,KAAiBC,MAAA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AAvE,UAAA;GACGC;GACAC;GAQAC;EAUH;KAAmBN,EAAA,MAAAD,GAAAC,EAAA,MAAAG,GAAAH,EAAA,MAAAI,GAAAJ,EAAA,MAAAK,GAAAL,EAAA,MAAAM,GAAAN,EAAA,MAAAO,KAAAA,IAAAP,EAAA,KApBnBO;AAoBmB,CAEtB"}
|
package/dist/chat-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceBadgeProps, r as ScrollArea$1 } from "./resource-badge-nOWPqxFU.js";
|
|
2
|
-
import {
|
|
2
|
+
import { d as ChatLinkCandidate, f as ChatLinkHandler, j as PromptCommand, k as PromptSelectionSnapshot, m as parseChatLink, p as ChatLinkProps } from "./index-B79hwNcB.js";
|
|
3
3
|
import { HTMLChakraProps, IconButtonProps, RecipeVariantProps } from "@chakra-ui/react";
|
|
4
4
|
import { StickToBottom } from "use-stick-to-bottom";
|
|
5
5
|
import { ReactNode } from "react";
|
|
@@ -10,13 +10,13 @@ type ConversationScrollButtonProps = IconButtonProps;
|
|
|
10
10
|
export declare const ChatPrimitives: {
|
|
11
11
|
readonly Root: import("@chakra-ui/react").ChakraComponent<import("react").ElementType, {
|
|
12
12
|
resize?: import("use-stick-to-bottom").Animation | undefined;
|
|
13
|
+
is?: string | undefined | undefined;
|
|
13
14
|
onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
14
15
|
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
15
16
|
onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
16
|
-
is?: string | undefined | undefined;
|
|
17
17
|
resource?: string | undefined | undefined;
|
|
18
|
-
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
19
18
|
id?: string | undefined | undefined;
|
|
19
|
+
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
20
20
|
slot?: string | undefined | undefined;
|
|
21
21
|
style?: import("react").CSSProperties | undefined;
|
|
22
22
|
title?: string | undefined | undefined;
|
|
@@ -500,6 +500,8 @@ interface ChatInputProps {
|
|
|
500
500
|
onChange?: (text: string) => void;
|
|
501
501
|
attachmentList?: ReactNode;
|
|
502
502
|
actions?: ReactNode;
|
|
503
|
+
/** Secondary actions immediately before the submit button. */
|
|
504
|
+
submitActions?: ReactNode;
|
|
503
505
|
/** Attachment controls shown only while editing a message draft. */
|
|
504
506
|
attachmentActions?: ReactNode;
|
|
505
507
|
attachedToTop?: boolean;
|
|
@@ -510,6 +512,11 @@ interface ChatInputProps {
|
|
|
510
512
|
autoFocus?: boolean;
|
|
511
513
|
focusSignal?: number;
|
|
512
514
|
submitTitle?: string;
|
|
515
|
+
submitLabel?: string;
|
|
516
|
+
initialSelection?: PromptSelectionSnapshot;
|
|
517
|
+
onSelectionChange?: (selection: PromptSelectionSnapshot) => void;
|
|
518
|
+
onEditorStateChange?: (text: string, state: string) => void;
|
|
519
|
+
retainTextUntilAcknowledged?: boolean;
|
|
513
520
|
commands?: PromptCommand[];
|
|
514
521
|
}
|
|
515
522
|
export declare const ChatInput: (props: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -607,11 +614,20 @@ type SessionMessage = {
|
|
|
607
614
|
};
|
|
608
615
|
};
|
|
609
616
|
type QueuedFollowUp = {
|
|
617
|
+
revision?: string;
|
|
618
|
+
model?: string | null;
|
|
619
|
+
params?: Record<string, string | boolean>;
|
|
620
|
+
steeringUnavailableReason?: string | null;
|
|
621
|
+
steeringDelivery?: {
|
|
622
|
+
id: string;
|
|
623
|
+
runStartedAt: string;
|
|
624
|
+
} | null;
|
|
610
625
|
id: string;
|
|
611
626
|
prompt: string;
|
|
612
627
|
attachments?: Array<{
|
|
613
628
|
id: string;
|
|
614
629
|
name: string;
|
|
630
|
+
size?: number;
|
|
615
631
|
mediaType?: string;
|
|
616
632
|
url?: string;
|
|
617
633
|
}>;
|
|
@@ -663,9 +679,24 @@ interface ChatPanelProps extends ChatLinkProps {
|
|
|
663
679
|
composerDecision?: ComposerDecision;
|
|
664
680
|
chatInputAutoFocus?: boolean;
|
|
665
681
|
queuedFollowUps?: QueuedFollowUp[];
|
|
666
|
-
onQueuedFollowUpUpdate?: (itemId: string, prompt: string) => void
|
|
682
|
+
onQueuedFollowUpUpdate?: (itemId: string, prompt: string) => void | Promise<void>;
|
|
683
|
+
/** Submit the retained edit's settings and files as a new request. */
|
|
684
|
+
onQueuedFollowUpCreate?: (itemId: string, prompt: string) => void | Promise<void>;
|
|
685
|
+
/** Move the retained edit's settings and files into the normal draft before its text changes. */
|
|
686
|
+
onQueuedFollowUpRestoreDraft?: (itemId: string) => void;
|
|
687
|
+
/** Allow recovery only when the normal draft has no files or uploads and the host can transfer the edit. */
|
|
688
|
+
canRestoreQueuedEditToDraft?: boolean;
|
|
689
|
+
onQueuedFollowUpSelect?: (item: QueuedFollowUp | null) => void;
|
|
690
|
+
onQueuedFollowUpDiscard?: (itemId: string) => void;
|
|
691
|
+
onQueuedFollowUpSteer?: (item: QueuedFollowUp) => void | Promise<void>;
|
|
692
|
+
onQueuedFollowUpCombine?: (source: QueuedFollowUp, target: QueuedFollowUp) => void | Promise<void>;
|
|
693
|
+
queueSteeringUnavailableReason?: string | null;
|
|
694
|
+
unsavedQueueItemIds?: string[];
|
|
667
695
|
onQueuedFollowUpRemove?: (itemId: string) => void;
|
|
668
|
-
onQueuedFollowUpMove?: (itemId: string, direction: QueuedFollowUpMoveDirection, steps?: number
|
|
696
|
+
onQueuedFollowUpMove?: (itemId: string, direction: QueuedFollowUpMoveDirection, steps?: number, selection?: {
|
|
697
|
+
source: QueuedFollowUp;
|
|
698
|
+
items: QueuedFollowUp[];
|
|
699
|
+
}) => void;
|
|
669
700
|
chatInputCommands?: PromptCommand[];
|
|
670
701
|
}
|
|
671
702
|
export declare const ChatPanel: (props: ChatPanelProps) => import("react/jsx-runtime").JSX.Element;
|