@pstdio/ui 0.44.0 → 0.45.0-nightly.20261021030241
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-DhNTaUMt.js → MermaidComponent-CTWuGAqI.js} +2 -2
- package/dist/{MermaidComponent-DhNTaUMt.js.map → MermaidComponent-CTWuGAqI.js.map} +1 -1
- package/dist/alert-CO-uOKLm.js +409 -0
- package/dist/alert-CO-uOKLm.js.map +1 -0
- package/dist/chat-ui.d.ts +7 -5
- package/dist/chat-ui.js +1110 -1119
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-grouping-BKIr4QAb.js → collection-view-grouping-BQMfKdQG.js} +2 -2
- package/dist/{collection-view-grouping-BKIr4QAb.js.map → collection-view-grouping-BQMfKdQG.js.map} +1 -1
- package/dist/{collection-view-search-D7HFymZW.js → collection-view-search-DS9U9WAl.js} +2 -2
- package/dist/{collection-view-search-D7HFymZW.js.map → collection-view-search-DS9U9WAl.js.map} +1 -1
- package/dist/collection-view.d.ts +90 -3
- package/dist/collection-view.js +1 -1
- package/dist/data-table.d.ts +1 -2
- package/dist/data-table.js +4 -4
- package/dist/{diff-viewer-Cpiw-1ut.js → diff-viewer-ChEyTNpa.js} +2 -2
- package/dist/{diff-viewer-Cpiw-1ut.js.map → diff-viewer-ChEyTNpa.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-BuqijDAl.js → display-sort-control-BUMkmlIu.js} +3 -3
- package/dist/{display-sort-control-BuqijDAl.js.map → display-sort-control-BUMkmlIu.js.map} +1 -1
- package/dist/{edit-mode-data-table-BwNTRik5.js → edit-mode-data-table-MKEjfFUw.js} +4 -4
- package/dist/{edit-mode-data-table-BwNTRik5.js.map → edit-mode-data-table-MKEjfFUw.js.map} +1 -1
- package/dist/icon-options-DpzDAnlu.js +313 -0
- package/dist/icon-options-DpzDAnlu.js.map +1 -0
- package/dist/{index-DTjRTEez.d.ts → index-C0PaeiBy.d.ts} +8 -1
- package/dist/{index-Bq1BDCBk.d.ts → index-eV_0Gjzo.d.ts} +4 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +862 -780
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -2
- package/dist/kanban-renderer.js +596 -397
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{markdown-editor-DUBUE7M-.js → markdown-editor-BPGIS9ku.js} +996 -876
- package/dist/markdown-editor-BPGIS9ku.js.map +1 -0
- package/dist/param-editor-Bva0M7Ns.js +374 -0
- package/dist/param-editor-Bva0M7Ns.js.map +1 -0
- package/dist/{param-editor-field-B5z6200g.js → param-editor-field-BPBlweVg.js} +1183 -1161
- package/dist/param-editor-field-BPBlweVg.js.map +1 -0
- package/dist/param-editor.d.ts +57 -2
- package/dist/param-editor.js +3 -3
- package/dist/{resolve-icon-component-Ck6ZyRnc.js → resolve-icon-component-Dy0pOuj5.js} +2 -2
- package/dist/{resolve-icon-component-Ck6ZyRnc.js.map → resolve-icon-component-Dy0pOuj5.js.map} +1 -1
- package/dist/{rich-text-2c_ra5gK.js → rich-text-CH2psble.js} +569 -524
- package/dist/rich-text-CH2psble.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/terminal.js +1 -1
- package/dist/{theme-Chgjys_o.js → theme-BsStBWWL.js} +255 -155
- package/dist/theme-BsStBWWL.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-B8Gtot1M.js → tree-list-aNC_UTGS.js} +396 -341
- package/dist/tree-list-aNC_UTGS.js.map +1 -0
- package/package.json +2 -2
- package/dist/alert-MQ47wy7f.js +0 -388
- package/dist/alert-MQ47wy7f.js.map +0 -1
- package/dist/icon-options-Tt6Wzhtv.js +0 -308
- package/dist/icon-options-Tt6Wzhtv.js.map +0 -1
- package/dist/index-kYQwGcym.d.ts +0 -91
- package/dist/markdown-editor-DUBUE7M-.js.map +0 -1
- package/dist/param-editor-DK1uCOh3.js +0 -225
- package/dist/param-editor-DK1uCOh3.js.map +0 -1
- package/dist/param-editor-field-B5z6200g.js.map +0 -1
- package/dist/rich-text-2c_ra5gK.js.map +0 -1
- package/dist/theme-Chgjys_o.js.map +0 -1
- package/dist/tree-list-B8Gtot1M.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e } from "./markdown-editor-
|
|
1
|
+
import { g as e } from "./markdown-editor-BPGIS9ku.js";
|
|
2
2
|
import { t } from "./mermaid-renderer-BtW_13Sz.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-CTWuGAqI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidComponent-
|
|
1
|
+
{"version":3,"file":"MermaidComponent-CTWuGAqI.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\"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,KAAAG,MAAWnB,EAAamB,EAAKC,OAAOC,KAAM,GAAC5B,EAAA,MAAAuB,KAAAA,IAAAvB,EAAA;CAAA,IAAA6B;CAAA,AAAA7B,EAAA,QAAAM,IAOnDuB,IAAA7B,EAAA,OAVN6B,IAAA,kBAACuC,GAAD;EAAa,SAAA;EAAQ,IAAA;EACnB,UAAA,kBAACC,GAAD;GACS/D,OAAAA;GACG,UAAAiB;GACA,WAAA;GACH,QAAA;GACI,YAAA;GACF,UAAA;GACG,YAAA;EAAK,CAAA;CARjB,CAAA,GAUEvB,EAAA,MAAAM,GAAAN,EAAA,MAAA6B;CAAA,IAAAC;CACF,OADE9B,EAAA,QAAAsB,KAAAtB,EAAA,QAAA6B,KAnBRC,IAAA,kBAACsC,GAAD;EAAiB,aAAA;EAAkB,aAAA;EAA6B,cAAA;EAAc,UAAA;EAAe,OAAA;EAA7F,UAAA,CACE9C,GAQAO,CATE;KAoBE7B,EAAA,MAAAsB,GAAAtB,EAAA,MAAA6B,GAAA7B,EAAA,MAAA8B,KAAAA,IAAA9B,EAAA,KApBN8B;AAoBM"}
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { Alert as e, Avatar as t, Box as n, ButtonPropsProvider as r, HStack as i, IconButton as a, Stack as o, Text as s, Timeline as c, createSlotRecipeContext as l, defineSlotRecipe as u } from "@chakra-ui/react";
|
|
2
|
+
import { c as d } from "react/compiler-runtime";
|
|
3
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
4
|
+
import * as h from "react";
|
|
5
|
+
import { Children as g } from "react";
|
|
6
|
+
import { X as _ } from "lucide-react";
|
|
7
|
+
//#region src/components/activity/activity-avatar.tsx
|
|
8
|
+
var v = (e) => {
|
|
9
|
+
let r = d(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__ */ p(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 u = i?.avatarSrc, f = i?.avatarAlt ?? i?.name, h;
|
|
25
|
+
r[4] !== u || r[5] !== f ? (h = /* @__PURE__ */ p(t.Image, {
|
|
26
|
+
src: u,
|
|
27
|
+
alt: f
|
|
28
|
+
}), r[4] = u, r[5] = f, r[6] = h) : h = r[6];
|
|
29
|
+
let g = i?.name, _;
|
|
30
|
+
r[7] !== l || r[8] !== c || r[9] !== g ? (_ = /* @__PURE__ */ p(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__ */ m(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
|
+
}, y = u({
|
|
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: b, withProvider: x } = l({ recipe: y }), S = () => {
|
|
98
|
+
let e = d(1), t;
|
|
99
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ p(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
|
+
}, C = (e) => {
|
|
107
|
+
let t = d(16), { actor: r, icon: a, iconColor: o, iconBackground: c, timestamp: l, actions: u } = e, h;
|
|
108
|
+
t[0] !== r || t[1] !== a || t[2] !== c || t[3] !== o ? (h = /* @__PURE__ */ p(v, {
|
|
109
|
+
actor: r,
|
|
110
|
+
icon: a,
|
|
111
|
+
color: o,
|
|
112
|
+
background: c
|
|
113
|
+
}), t[0] = r, t[1] = a, t[2] = c, t[3] = o, t[4] = h) : h = t[4];
|
|
114
|
+
let g;
|
|
115
|
+
t[5] === r.name ? g = t[6] : (g = /* @__PURE__ */ p(s, {
|
|
116
|
+
textStyle: "label/S/medium",
|
|
117
|
+
color: "fg",
|
|
118
|
+
truncate: !0,
|
|
119
|
+
children: r.name
|
|
120
|
+
}), t[5] = r.name, t[6] = g);
|
|
121
|
+
let _;
|
|
122
|
+
t[7] === l ? _ = t[8] : (_ = l ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(S, {}), /* @__PURE__ */ p(s, {
|
|
123
|
+
textStyle: "label/S/regular",
|
|
124
|
+
color: "fg.muted",
|
|
125
|
+
flexShrink: 0,
|
|
126
|
+
children: l
|
|
127
|
+
})] }) : null, t[7] = l, t[8] = _);
|
|
128
|
+
let y;
|
|
129
|
+
t[9] === u ? y = t[10] : (y = /* @__PURE__ */ p(n, {
|
|
130
|
+
marginLeft: "auto",
|
|
131
|
+
flexShrink: 0,
|
|
132
|
+
children: u
|
|
133
|
+
}), t[9] = u, t[10] = y);
|
|
134
|
+
let b;
|
|
135
|
+
return t[11] !== h || t[12] !== g || t[13] !== _ || t[14] !== y ? (b = /* @__PURE__ */ m(i, {
|
|
136
|
+
gap: "xs",
|
|
137
|
+
alignItems: "center",
|
|
138
|
+
minW: "0",
|
|
139
|
+
children: [
|
|
140
|
+
h,
|
|
141
|
+
g,
|
|
142
|
+
_,
|
|
143
|
+
y
|
|
144
|
+
]
|
|
145
|
+
}), t[11] = h, t[12] = g, t[13] = _, t[14] = y, t[15] = b) : b = t[15], b;
|
|
146
|
+
}, w = x("article", "root"), T = b("div", "body"), E = b("div", "content"), D = (e) => {
|
|
147
|
+
let t = d(18), r, i, a, c, l;
|
|
148
|
+
t[0] === e ? (r = t[1], i = t[2], a = t[3], c = t[4], l = t[5]) : ({actor: i, timestamp: l, actions: r, children: a, ...c} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = c, t[5] = l);
|
|
149
|
+
let u;
|
|
150
|
+
t[6] !== r || t[7] !== i || t[8] !== l ? (u = /* @__PURE__ */ p(C, {
|
|
151
|
+
actor: i,
|
|
152
|
+
timestamp: l,
|
|
153
|
+
actions: r
|
|
154
|
+
}), t[6] = r, t[7] = i, t[8] = l, t[9] = u) : u = t[9];
|
|
155
|
+
let f;
|
|
156
|
+
t[10] === a ? f = t[11] : (f = /* @__PURE__ */ p(n, {
|
|
157
|
+
paddingLeft: "32px",
|
|
158
|
+
children: /* @__PURE__ */ p(s, {
|
|
159
|
+
as: "div",
|
|
160
|
+
textStyle: "label/S/regular",
|
|
161
|
+
color: "fg",
|
|
162
|
+
overflowWrap: "anywhere",
|
|
163
|
+
children: a
|
|
164
|
+
})
|
|
165
|
+
}), t[10] = a, t[11] = f);
|
|
166
|
+
let h;
|
|
167
|
+
t[12] !== u || t[13] !== f ? (h = /* @__PURE__ */ m(o, {
|
|
168
|
+
gap: "xs",
|
|
169
|
+
children: [u, f]
|
|
170
|
+
}), t[12] = u, t[13] = f, t[14] = h) : h = t[14];
|
|
171
|
+
let g;
|
|
172
|
+
return t[15] !== c || t[16] !== h ? (g = /* @__PURE__ */ p(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
|
+
}, O = (e) => {
|
|
179
|
+
let t = d(33), r, i, a, o, s, c, l, u, f, h;
|
|
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], u = t[8], f = t[9], h = t[10]) : ({actor: i, icon: s, iconColor: l, iconBackground: c, timestamp: h, actions: r, replies: u, composer: o, children: a, ...f} = 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] = u, t[9] = f, t[10] = h);
|
|
181
|
+
let _ = g.count(u) > 0, v;
|
|
182
|
+
t[11] !== r || t[12] !== i || t[13] !== s || t[14] !== c || t[15] !== l || t[16] !== h ? (v = /* @__PURE__ */ p(C, {
|
|
183
|
+
actor: i,
|
|
184
|
+
icon: s,
|
|
185
|
+
iconColor: l,
|
|
186
|
+
iconBackground: c,
|
|
187
|
+
timestamp: h,
|
|
188
|
+
actions: r
|
|
189
|
+
}), t[11] = r, t[12] = i, t[13] = s, t[14] = c, t[15] = l, t[16] = h, t[17] = v) : v = t[17];
|
|
190
|
+
let y;
|
|
191
|
+
t[18] === a ? y = t[19] : (y = /* @__PURE__ */ p(E, { children: a }), t[18] = a, t[19] = y);
|
|
192
|
+
let b;
|
|
193
|
+
t[20] !== v || t[21] !== y ? (b = /* @__PURE__ */ m(T, { children: [v, y] }), t[20] = v, t[21] = y, t[22] = b) : b = t[22];
|
|
194
|
+
let x;
|
|
195
|
+
t[23] !== _ || t[24] !== u ? (x = _ ? /* @__PURE__ */ p(n, {
|
|
196
|
+
borderTopWidth: "1px",
|
|
197
|
+
borderColor: "border.subtle",
|
|
198
|
+
children: u
|
|
199
|
+
}) : null, t[23] = _, t[24] = u, t[25] = x) : x = t[25];
|
|
200
|
+
let S;
|
|
201
|
+
t[26] === o ? S = t[27] : (S = o ? /* @__PURE__ */ p(n, {
|
|
202
|
+
borderTopWidth: "1px",
|
|
203
|
+
borderColor: "border.subtle",
|
|
204
|
+
children: o
|
|
205
|
+
}) : null, t[26] = o, t[27] = S);
|
|
206
|
+
let D;
|
|
207
|
+
return t[28] !== f || t[29] !== b || t[30] !== x || t[31] !== S ? (D = /* @__PURE__ */ m(w, {
|
|
208
|
+
...f,
|
|
209
|
+
children: [
|
|
210
|
+
b,
|
|
211
|
+
x,
|
|
212
|
+
S
|
|
213
|
+
]
|
|
214
|
+
}), t[28] = f, t[29] = b, t[30] = x, t[31] = S, t[32] = D) : D = t[32], D;
|
|
215
|
+
}, k = () => {
|
|
216
|
+
let e = d(1), t;
|
|
217
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ p(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
|
+
}, A = (e) => {
|
|
225
|
+
let t = d(28), r, i, a, o, l, u, h;
|
|
226
|
+
t[0] === e ? (r = t[1], i = t[2], a = t[3], o = t[4], l = t[5], u = t[6], h = t[7]) : ({actor: r, icon: a, iconColor: l, iconBackground: u, timestamp: h, children: i, ...o} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = o, t[5] = l, t[6] = u, t[7] = h);
|
|
227
|
+
let g = l === void 0 ? "fg" : l, _ = u === void 0 ? "transparent" : u, y;
|
|
228
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ p(c.Separator, { borderColor: "border" }), t[8] = y) : y = t[8];
|
|
229
|
+
let b;
|
|
230
|
+
t[9] !== r || t[10] !== a || t[11] !== _ || t[12] !== g ? (b = /* @__PURE__ */ m(c.Connector, { children: [y, /* @__PURE__ */ p(c.Indicator, {
|
|
231
|
+
outline: "none",
|
|
232
|
+
border: "none",
|
|
233
|
+
background: "bg",
|
|
234
|
+
children: /* @__PURE__ */ p(v, {
|
|
235
|
+
actor: r,
|
|
236
|
+
icon: a,
|
|
237
|
+
color: g,
|
|
238
|
+
background: _
|
|
239
|
+
})
|
|
240
|
+
})] }), t[9] = r, t[10] = a, t[11] = _, t[12] = g, t[13] = b) : b = t[13];
|
|
241
|
+
let x;
|
|
242
|
+
t[14] === r ? x = t[15] : (x = r ? /* @__PURE__ */ p(s, {
|
|
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__ */ p(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__ */ m(f, { children: [/* @__PURE__ */ p(k, {}), /* @__PURE__ */ p(s, {
|
|
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__ */ p(c.Content, {
|
|
268
|
+
gap: "0",
|
|
269
|
+
minW: "0",
|
|
270
|
+
children: /* @__PURE__ */ m(c.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] !== o || t[25] !== b || t[26] !== w ? (T = /* @__PURE__ */ m(c.Item, {
|
|
286
|
+
gap: "xs",
|
|
287
|
+
minH: "24px",
|
|
288
|
+
paddingX: "md",
|
|
289
|
+
...o,
|
|
290
|
+
children: [b, w]
|
|
291
|
+
}), t[24] = o, t[25] = b, t[26] = w, t[27] = T) : T = t[27], T;
|
|
292
|
+
}, j = (e) => {
|
|
293
|
+
let t = d(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__ */ p(o, {
|
|
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
|
+
}, M = (e) => {
|
|
303
|
+
let t = d(12), n, r, a;
|
|
304
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3]) : ({title: a, actions: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a);
|
|
305
|
+
let o = a === void 0 ? "Activity" : a, c;
|
|
306
|
+
t[4] === o ? c = t[5] : (c = /* @__PURE__ */ p(s, {
|
|
307
|
+
textStyle: "label/M/medium",
|
|
308
|
+
color: "fg",
|
|
309
|
+
children: o
|
|
310
|
+
}), t[4] = o, t[5] = c);
|
|
311
|
+
let l;
|
|
312
|
+
t[6] === n ? l = t[7] : (l = n ? /* @__PURE__ */ p(i, {
|
|
313
|
+
gap: "xs",
|
|
314
|
+
children: n
|
|
315
|
+
}) : null, t[6] = n, t[7] = l);
|
|
316
|
+
let u;
|
|
317
|
+
return t[8] !== r || t[9] !== c || t[10] !== l ? (u = /* @__PURE__ */ m(i, {
|
|
318
|
+
alignItems: "center",
|
|
319
|
+
justifyContent: "space-between",
|
|
320
|
+
gap: "md",
|
|
321
|
+
...r,
|
|
322
|
+
children: [c, l]
|
|
323
|
+
}), t[8] = r, t[9] = c, t[10] = l, t[11] = u) : u = t[11], u;
|
|
324
|
+
}, N = (e) => {
|
|
325
|
+
let t = d(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__ */ p(o, {
|
|
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
|
+
}, P = (e) => {
|
|
335
|
+
let t = d(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__ */ p(c.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
|
+
}, F = h.forwardRef(function(t, n) {
|
|
349
|
+
let o = d(34), s, c, l, u, f, h, g, v;
|
|
350
|
+
o[0] === t ? (s = o[1], c = o[2], l = o[3], u = o[4], f = o[5], h = o[6], g = o[7], v = o[8]) : ({title: v, children: s, icon: l, startElement: h, endElement: c, onClose: u, closeLabel: g, ...f} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = f, o[6] = h, o[7] = g, o[8] = v);
|
|
351
|
+
let y = g === void 0 ? "Dismiss" : g, b;
|
|
352
|
+
o[9] !== l || o[10] !== h ? (b = h || /* @__PURE__ */ p(e.Indicator, { children: l }), o[9] = l, o[10] = h, o[11] = b) : b = o[11];
|
|
353
|
+
let x;
|
|
354
|
+
o[12] === Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
355
|
+
variant: "ghost",
|
|
356
|
+
size: "2xs"
|
|
357
|
+
}, o[12] = x) : x = o[12];
|
|
358
|
+
let S;
|
|
359
|
+
o[13] === v ? S = o[14] : (S = /* @__PURE__ */ p(e.Title, {
|
|
360
|
+
flex: "1",
|
|
361
|
+
minW: "0",
|
|
362
|
+
children: v
|
|
363
|
+
}), o[13] = v, o[14] = S);
|
|
364
|
+
let C;
|
|
365
|
+
o[15] !== y || o[16] !== u ? (C = u ? /* @__PURE__ */ p(a, {
|
|
366
|
+
"aria-label": y,
|
|
367
|
+
flexShrink: "0",
|
|
368
|
+
onClick: u,
|
|
369
|
+
children: /* @__PURE__ */ p(_, {})
|
|
370
|
+
}) : null, o[15] = y, o[16] = u, o[17] = C) : C = o[17];
|
|
371
|
+
let w;
|
|
372
|
+
o[18] !== S || o[19] !== C ? (w = /* @__PURE__ */ m(i, {
|
|
373
|
+
gap: "2xs",
|
|
374
|
+
alignItems: "flex-start",
|
|
375
|
+
minW: "0",
|
|
376
|
+
children: [S, C]
|
|
377
|
+
}), o[18] = S, o[19] = C, o[20] = w) : w = o[20];
|
|
378
|
+
let T;
|
|
379
|
+
o[21] === s ? T = o[22] : (T = s ? /* @__PURE__ */ p(e.Description, { children: s }) : null, o[21] = s, o[22] = T);
|
|
380
|
+
let E;
|
|
381
|
+
o[23] === c ? E = o[24] : (E = c ? /* @__PURE__ */ p(i, {
|
|
382
|
+
gap: "2xs",
|
|
383
|
+
pt: "xs",
|
|
384
|
+
justifyContent: "flex-end",
|
|
385
|
+
alignItems: "flex-end",
|
|
386
|
+
flexWrap: "wrap",
|
|
387
|
+
minW: "0",
|
|
388
|
+
children: c
|
|
389
|
+
}) : null, o[23] = c, o[24] = E);
|
|
390
|
+
let D;
|
|
391
|
+
o[25] !== w || o[26] !== T || o[27] !== E ? (D = /* @__PURE__ */ p(r, {
|
|
392
|
+
value: x,
|
|
393
|
+
children: /* @__PURE__ */ m(e.Content, { children: [
|
|
394
|
+
w,
|
|
395
|
+
T,
|
|
396
|
+
E
|
|
397
|
+
] })
|
|
398
|
+
}), o[25] = w, o[26] = T, o[27] = E, o[28] = D) : D = o[28];
|
|
399
|
+
let O;
|
|
400
|
+
return o[29] !== n || o[30] !== f || o[31] !== b || o[32] !== D ? (O = /* @__PURE__ */ m(e.Root, {
|
|
401
|
+
ref: n,
|
|
402
|
+
...f,
|
|
403
|
+
children: [b, D]
|
|
404
|
+
}), o[29] = n, o[30] = f, o[31] = b, o[32] = D, o[33] = O) : O = o[33], O;
|
|
405
|
+
});
|
|
406
|
+
//#endregion
|
|
407
|
+
export { j as a, D as c, M as i, v as l, P as n, A as o, N as r, O as s, F as t };
|
|
408
|
+
|
|
409
|
+
//# sourceMappingURL=alert-CO-uOKLm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-CO-uOKLm.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","ButtonPropsProvider","Alert","ChakraAlert","HStack","IconButton","X","React","AlertProps","Omit","RootProps","startElement","ReactNode","endElement","title","icon","ReactElement","onClose","closeLabel","AlertMessage","forwardRef","HTMLDivElement","props","ref","$","_c","children","rest","t0","undefined","t1","t2","Symbol","for","variant","size","t3","t4","t5","t6","t7","t8","t9","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","closeLabel","Alert","IconButton","X","ButtonPropsProvider","t9","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 { ButtonPropsProvider, 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 // Recovery controls in the bottom-right footer. Buttons inherit compact, themed ghost defaults.\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 closeLabel?: string;\n}\n\nexport const AlertMessage = React.forwardRef<HTMLDivElement, AlertProps>(function Alert(props, ref) {\n const { title, children, icon, startElement, endElement, onClose, closeLabel = \"Dismiss\", ...rest } = props;\n return (\n <ChakraAlert.Root ref={ref} {...rest}>\n {startElement || <ChakraAlert.Indicator>{icon}</ChakraAlert.Indicator>}\n <ButtonPropsProvider value={{ variant: \"ghost\", size: \"2xs\" }}>\n <ChakraAlert.Content>\n <HStack gap=\"2xs\" alignItems=\"flex-start\" minW=\"0\">\n <ChakraAlert.Title flex=\"1\" minW=\"0\">\n {title}\n </ChakraAlert.Title>\n {onClose ? (\n <IconButton aria-label={closeLabel} flexShrink=\"0\" onClick={onClose}>\n <X />\n </IconButton>\n ) : null}\n </HStack>\n {children ? <ChakraAlert.Description>{children}</ChakraAlert.Description> : null}\n {endElement ? (\n <HStack gap=\"2xs\" pt=\"xs\" justifyContent=\"flex-end\" alignItems=\"flex-end\" flexWrap=\"wrap\" minW=\"0\">\n {endElement}\n </HStack>\n ) : null}\n </ChakraAlert.Content>\n </ButtonPropsProvider>\n </ChakraAlert.Root>\n );\n});\n"],"mappings":";;;;;;;AAYA,IAAaS,KAAiBC,MAAA;CAAA,IAAAC,IAAAC,EAAA,EAAA,GAC5B,EAAAP,UAAAC,SAAAC,OAAAM,GAAAL,YAAAM,MAAqEJ,GAAhDH,IAAAM,MAAAE,KAAAA,IAAA,aAAAF,GAAoBL,IAAAM,MAAAC,KAAAA,IAAA,aAAAD;CAEzC,IAAIR,GAAI;EAAA,IAAAU;EAaE,OAbFL,EAAA,OAAAH,KAAAG,EAAA,OAAAJ,KAAAI,EAAA,OAAAL,KAEJU,IAAA,kBAACmO,GAAD;GACU,SAAA;GACK,cAAA;GACL,SAAA;GACG,YAAA;GACI,gBAAA;GACH,YAAA;GACL5O;GACKC;GAEXF,UAAAA;EAVC,CAAA,GAWEK,EAAA,KAAAH,GAAAG,EAAA,KAAAJ,GAAAI,EAAA,KAAAL,GAAAK,EAAA,KAAAK,KAAAA,IAAAL,EAAA,IAXNK;CAWM;CAMa,IAAAA,IAAAX,GAAKY,WAAkBC,IAAAb,GAAKc,aAAed,GAAKe,MAAMC;CAAA,AAAAV,EAAA,OAAAK,KAAAL,EAAA,OAAAO,KAAzEG,IAAA,kBAAAkO,EAAA,OAAA;EAAmB,KAAAvO;EAAuB,KAAAE;CAA+B,CAAA,GAAIP,EAAA,KAAAK,GAAAL,EAAA,KAAAO,GAAAP,EAAA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G,KAAAH,EAAA,QAAAM,KAAAN,EAAA,QAAAiB,KArBxBC,IAAA,kBAAAG,EAAA,MAAA;EAAuBtB;EAAG,GAAMI;EAAhC,UAAA,CACGG,GACDW,CAoBF;KAAmBjB,EAAA,MAAAD,GAAAC,EAAA,MAAAG,GAAAH,EAAA,MAAAM,GAAAN,EAAA,MAAAiB,GAAAjB,EAAA,MAAAkB,KAAAA,IAAAlB,EAAA,KAtBnBkB;AAsBmB,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-DGwekS-G.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as PromptSelectionSnapshot, M as PromptCommand, d as ChatLinkCandidate, f as ChatLinkHandler, h as parseChatLink, m as isGuessedChatLink, p as ChatLinkProps } from "./index-eV_0Gjzo.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";
|
|
@@ -17,7 +17,6 @@ export declare const ChatPrimitives: {
|
|
|
17
17
|
id?: string | undefined | undefined;
|
|
18
18
|
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
19
19
|
resource?: string | undefined | undefined;
|
|
20
|
-
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
21
20
|
slot?: string | undefined | undefined;
|
|
22
21
|
style?: import("react").CSSProperties | undefined;
|
|
23
22
|
title?: string | undefined | undefined;
|
|
@@ -28,6 +27,7 @@ export declare const ChatPrimitives: {
|
|
|
28
27
|
hidden?: boolean | undefined | undefined;
|
|
29
28
|
"aria-roledescription"?: string | undefined | undefined;
|
|
30
29
|
role?: import("react").AriaRole | undefined;
|
|
30
|
+
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
31
31
|
defaultChecked?: boolean | undefined | undefined;
|
|
32
32
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
33
33
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -504,7 +504,7 @@ interface ChatInputProps {
|
|
|
504
504
|
attachedResources?: string[];
|
|
505
505
|
onClearAttachments?: () => void;
|
|
506
506
|
isDisabled?: boolean;
|
|
507
|
-
/**
|
|
507
|
+
/** Blocks ordinary messages while the editor stays usable. Pending questions and decisions stay available. */
|
|
508
508
|
submitDisabled?: boolean;
|
|
509
509
|
onChange?: (text: string) => void;
|
|
510
510
|
attachmentList?: ReactNode;
|
|
@@ -672,6 +672,8 @@ interface ChatPanelProps extends ChatLinkProps {
|
|
|
672
672
|
/** Attachment controls shown only while editing a message draft. */
|
|
673
673
|
attachmentActions?: ReactNode;
|
|
674
674
|
composerHeader?: ReactNode;
|
|
675
|
+
/** Replaces message entry and queue controls, retaining the workspace header, drafts, and pending responses. */
|
|
676
|
+
composerFallback?: ReactNode;
|
|
675
677
|
attachedResources?: string[];
|
|
676
678
|
onClearAttachments?: () => void;
|
|
677
679
|
attachmentList?: ReactNode;
|
|
@@ -682,7 +684,7 @@ interface ChatPanelProps extends ChatLinkProps {
|
|
|
682
684
|
workspaceHub?: ReactNode;
|
|
683
685
|
workspaceInitializing?: boolean;
|
|
684
686
|
inputDisabled?: boolean;
|
|
685
|
-
/** Blocks
|
|
687
|
+
/** Blocks ordinary messages while the editor stays usable. Pending questions and decisions stay available. */
|
|
686
688
|
submitDisabled?: boolean;
|
|
687
689
|
chatInputQuestionPrompt?: ChatInputQuestionPrompt;
|
|
688
690
|
composerDecision?: ComposerDecision;
|
|
@@ -831,5 +833,5 @@ export declare const ChatWorkspaceHub: (props: ChatWorkspaceHubProps) => import(
|
|
|
831
833
|
//#region src/components/chat-ui/utils/editor-state.d.ts
|
|
832
834
|
export declare const createSerializedPromptState: (input?: string) => string;
|
|
833
835
|
//#endregion
|
|
834
|
-
export { type AlertPart, type AutoScrollProps, type ChatInputProps, type ChatInputQuestion, type ChatInputQuestionCustomAnswers, type ChatInputQuestionOption, type ChatInputQuestionPrompt, type ChatInputQuestionResponse, type ChatLinkCandidate, type ChatLinkHandler, type ChatLinkProps, type ChatMessagePart, type ComposerDecision, type ConversationBrowseItem, type ConversationContentProps, type ConversationRootProps, type ConversationScrollButtonProps, type HarnessControlsProps, type MessageContentProps, type MessageRootProps, type QuestionPromptControlsProps, type QueuedFollowUp, type QueuedFollowUpMoveDirection, type SendButtonProps, type SessionMessage, type SessionMessagePart, type ToolPart, parseChatLink };
|
|
836
|
+
export { type AlertPart, type AutoScrollProps, type ChatInputProps, type ChatInputQuestion, type ChatInputQuestionCustomAnswers, type ChatInputQuestionOption, type ChatInputQuestionPrompt, type ChatInputQuestionResponse, type ChatLinkCandidate, type ChatLinkHandler, type ChatLinkProps, type ChatMessagePart, type ComposerDecision, type ConversationBrowseItem, type ConversationContentProps, type ConversationRootProps, type ConversationScrollButtonProps, type HarnessControlsProps, type MessageContentProps, type MessageRootProps, type QuestionPromptControlsProps, type QueuedFollowUp, type QueuedFollowUpMoveDirection, type SendButtonProps, type SessionMessage, type SessionMessagePart, type ToolPart, isGuessedChatLink, parseChatLink };
|
|
835
837
|
export {};
|