@mechane-ai/elements 0.45.0 → 0.46.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.
Files changed (110) hide show
  1. package/README.md +48 -18
  2. package/bin/mechane-elements-catalog.mjs +42 -4
  3. package/dist/ai.js +268 -202
  4. package/dist/catalog.json +91 -31
  5. package/dist/categorical-values-BXi-rJuv.js +74 -0
  6. package/dist/chart-cursor-1mFd48Jc.js +23 -0
  7. package/dist/chart-data-CIJVWCYt.js +21 -0
  8. package/dist/{chart-frame-Ztktqs1b.js → chart-frame-BaxKn_MB.js} +22 -41
  9. package/dist/{chart-input-BO3BqlFO.js → chart-input-Bm82_9Rd.js} +2 -2
  10. package/dist/chart-theme-4zprJ3rW.js +404 -0
  11. package/dist/charts/cartesian.js +1598 -1432
  12. package/dist/charts/distribution.js +476 -404
  13. package/dist/charts/graph.js +363 -349
  14. package/dist/charts/hierarchy.js +103 -94
  15. package/dist/charts/matrix.js +340 -333
  16. package/dist/charts/timeline.js +167 -134
  17. package/dist/charts.js +3 -3
  18. package/dist/{code-block-Cpfr7B6a.js → code-block-DioAM2bZ.js} +67 -52
  19. package/dist/collections.js +1648 -1188
  20. package/dist/content/code.js +1 -1
  21. package/dist/content/diff.js +67 -66
  22. package/dist/content/link.js +1 -1
  23. package/dist/content/markdown.js +2 -2
  24. package/dist/content/tree.js +2 -2
  25. package/dist/{content-link-CGeFFb9F.js → content-link-NWuHp5rC.js} +1 -1
  26. package/dist/content.js +1 -1
  27. package/dist/csp.js +6 -11
  28. package/dist/feedback.js +1 -1
  29. package/dist/forms/dates.js +274 -214
  30. package/dist/{forms-DeU0Tiv3.js → forms-CEbwzlRR.js} +50 -41
  31. package/dist/forms.js +3 -3
  32. package/dist/index.js +1 -1
  33. package/dist/layout.js +207 -207
  34. package/dist/navigation.js +4 -3
  35. package/dist/packages/ai/src/conversation.d.ts +2 -0
  36. package/dist/packages/ai/src/prompt-input.d.ts +7 -2
  37. package/dist/packages/charts/src/cartesian/composition-bars.d.ts +2 -2
  38. package/dist/packages/charts/src/cartesian/index.d.ts +3 -2
  39. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +8 -2
  40. package/dist/packages/charts/src/cartesian/time-series.d.ts +11 -1
  41. package/dist/packages/charts/src/categorical-values.d.ts +14 -9
  42. package/dist/packages/charts/src/chart-frame.d.ts +7 -9
  43. package/dist/packages/charts/src/chart-inspection.d.ts +1 -2
  44. package/dist/packages/charts/src/chart-range.d.ts +33 -0
  45. package/dist/packages/charts/src/chart-rows.d.ts +20 -0
  46. package/dist/packages/charts/src/chart-theme.d.ts +17 -0
  47. package/dist/packages/charts/src/chart.d.ts +81 -0
  48. package/dist/packages/charts/src/distribution/distribution-plot.d.ts +4 -4
  49. package/dist/packages/charts/src/index.d.ts +1 -0
  50. package/dist/packages/charts/src/matrix/matrix-strip.d.ts +3 -3
  51. package/dist/packages/charts/src/plot-width.d.ts +0 -1
  52. package/dist/packages/charts/src/timeline/index.d.ts +1 -1
  53. package/dist/packages/charts/src/timeline/waterfall.d.ts +6 -2
  54. package/dist/packages/collections/src/collection-controls.d.ts +5 -1
  55. package/dist/packages/collections/src/collection-filters.d.ts +4 -1
  56. package/dist/packages/collections/src/control-toolbar.d.ts +13 -0
  57. package/dist/packages/collections/src/data-table-layout.d.ts +78 -0
  58. package/dist/packages/collections/src/data-table-rows.d.ts +54 -0
  59. package/dist/packages/collections/src/data-table-styles.d.ts +340 -0
  60. package/dist/packages/collections/src/data-table-text.d.ts +13 -0
  61. package/dist/packages/collections/src/data-table-trigger.d.ts +23 -0
  62. package/dist/packages/collections/src/data-table.d.ts +3 -85
  63. package/dist/packages/collections/src/index.d.ts +11 -6
  64. package/dist/packages/collections/src/query-controls.d.ts +6 -2
  65. package/dist/packages/collections/src/table-results.d.ts +47 -13
  66. package/dist/packages/collections/src/timeline.d.ts +1 -0
  67. package/dist/packages/collections/src/use-collection-controls.d.ts +2 -1
  68. package/dist/packages/collections/src/use-table-window.d.ts +25 -0
  69. package/dist/packages/content/src/viewer.d.ts +8 -0
  70. package/dist/packages/core/src/disclosure.d.ts +9 -1
  71. package/dist/packages/core/src/index.d.ts +1 -0
  72. package/dist/packages/core/src/route-link.d.ts +11 -0
  73. package/dist/packages/forms/src/dates/date-inputs.d.ts +3 -1
  74. package/dist/packages/forms/src/file-picker.d.ts +15 -0
  75. package/dist/packages/forms/src/form-controls.d.ts +1 -6
  76. package/dist/packages/forms/src/forms.d.ts +4 -1
  77. package/dist/packages/forms/src/index.d.ts +4 -2
  78. package/dist/packages/forms/src/selection.d.ts +14 -0
  79. package/dist/packages/foundations/src/csp/index.d.ts +1 -1
  80. package/dist/packages/foundations/src/csp/provider.d.ts +7 -2
  81. package/dist/packages/navigation/src/index.d.ts +1 -1
  82. package/dist/{pierre-diff-B3tD3-6z.js → pierre-diff-DlvjyuJn.js} +1 -1
  83. package/dist/plot-width-v2c_rA20.js +63 -0
  84. package/dist/{src-gqEebHEa.js → src-1EHkSFS-.js} +395 -274
  85. package/dist/{src-DBNncL7_.js → src-BPTDJqt0.js} +48 -68
  86. package/dist/src-CGc_hjxJ.js +409 -0
  87. package/dist/{src-DcW_gMX8.js → src-CpdJlDhO.js} +480 -362
  88. package/dist/{src-Dcs3SZ9V.js → src-DVHlknB6.js} +1 -1
  89. package/dist/styles2.css +136 -114
  90. package/package.json +1 -4
  91. package/skills/extend-elements/SKILL.md +74 -0
  92. package/skills/review-elements/SKILL.md +76 -0
  93. package/skills/upgrade-elements/SKILL.md +34 -0
  94. package/skills/upgrade-elements/references/releases.md +58 -0
  95. package/skills/use-elements/SKILL.md +64 -13
  96. package/skills/use-elements/references/agent.md +57 -0
  97. package/skills/use-elements/references/charts.md +63 -0
  98. package/skills/use-elements/references/collections.md +89 -0
  99. package/skills/use-elements/references/conversations.md +47 -0
  100. package/skills/use-elements/references/forms.md +81 -0
  101. package/skills/use-elements/references/styling.md +70 -0
  102. package/skills/use-elements/references/workspace.md +3 -3
  103. package/dist/categorical-values-DZLGQVW1.js +0 -63
  104. package/dist/chart-navigation-BAbb5PV9.js +0 -154
  105. package/dist/header-styles-COxCYFZx.js +0 -90
  106. package/dist/packages/charts/src/chart-navigation.d.ts +0 -39
  107. package/dist/packages/charts/src/chart-surface.d.ts +0 -27
  108. package/dist/packages/navigation/src/route-link.d.ts +0 -2
  109. package/dist/plot-width-CIqBiHcd.js +0 -105
  110. package/dist/src-Bk7M67zy.js +0 -396
package/dist/ai.js CHANGED
@@ -1,35 +1,39 @@
1
- import { D as e, E as t, O as n, _ as r, i, m as a, p as o, t as s, w as c } from "./src-DcW_gMX8.js";
2
- import { t as l } from "./code-block-Cpfr7B6a.js";
3
- import { a as u } from "./src-Bk7M67zy.js";
4
- import { t as d } from "./content-link-CGeFFb9F.js";
1
+ import { D as e, O as t, T as n, h as r, i, k as a, m as o, t as s, v as c } from "./src-CpdJlDhO.js";
2
+ import { t as l } from "./code-block-DioAM2bZ.js";
3
+ import { a as u } from "./src-CGc_hjxJ.js";
4
+ import { t as d } from "./content-link-NWuHp5rC.js";
5
5
  import { r as f, t as p } from "./src-na2DdkKI.js";
6
- import { p as m, u as h } from "./src-Dcs3SZ9V.js";
7
- import { i as g, t as _ } from "./forms-DeU0Tiv3.js";
8
- import { t as ee } from "./accessibility-P89UG9-r.js";
9
- import { r as v } from "./control-styles-D3q_Qyxi.js";
10
- import { t as y } from "./visible-motion-1GcUaEi4.js";
11
- import * as b from "@stylexjs/stylex";
12
- import { createContext as x, useContext as S, useEffect as C, useId as w, useLayoutEffect as T, useRef as E, useState as D } from "react";
13
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
14
- import { ArrowDown as A, ArrowUp as j, File as M, GitBranch as N, Square as te, Terminal as P } from "lucide-react";
15
- import { MessageScroller as F, useMessageScroller as I, useMessageScrollerScrollable as L } from "@shadcn/react/message-scroller";
6
+ import { p as m, u as h } from "./src-DVHlknB6.js";
7
+ import { i as ee, t as g } from "./forms-CEbwzlRR.js";
8
+ import { t as te } from "./accessibility-P89UG9-r.js";
9
+ import { r as _ } from "./control-styles-D3q_Qyxi.js";
10
+ import { t as v } from "./visible-motion-1GcUaEi4.js";
11
+ import * as y from "@stylexjs/stylex";
12
+ import { createParts as b } from "@ui-sdk/react/primitive";
13
+ import { createContext as x, useCallback as S, useContext as C, useEffect as w, useId as ne, useLayoutEffect as T, useRef as E, useState as D } from "react";
14
+ import { createInputHistory as re, definePrimitive as O, dispatch as ie, isComposing as ae } from "@ui-sdk/core";
15
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
16
+ import { ArrowDown as j, ArrowUp as oe, File as M, GitBranch as N, Square as se, Terminal as P } from "lucide-react";
17
+ import { matchesShortcut as F } from "@ui-sdk/core/shortcuts";
18
+ import { useShortcutHint as ce } from "@ui-sdk/react/shortcuts";
19
+ import { ScrollArea as I, ScrollAreaContent as L, ScrollAreaScrollToEnd as R, ScrollAreaViewport as z, createScrollAreaController as B } from "@ui-sdk/react/scroll-area";
16
20
  // packages/ai/src/approval.tsx
17
- function R(e) {
18
- return /* @__PURE__ */ k("section", {
21
+ function V(e) {
22
+ return /* @__PURE__ */ A("section", {
19
23
  "aria-label": e.title,
20
24
  "data-request-id": e.requestId,
21
25
  className: "x78zum5 xdt5ytf x1n8ia3y xeuugli x1c8xbx5 xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
22
26
  children: [
23
- /* @__PURE__ */ O("h3", {
27
+ /* @__PURE__ */ k("h3", {
24
28
  className: "x1ghz6dp xtqrqnz x1778rvt xk4h15q xj0a0fe",
25
29
  children: e.title
26
30
  }),
27
- e.description !== void 0 && /* @__PURE__ */ O("p", {
31
+ e.description !== void 0 && /* @__PURE__ */ k("p", {
28
32
  className: "x1ghz6dp x153jb6y xj0a0fe",
29
33
  children: e.description
30
34
  }),
31
35
  e.children,
32
- e.status === "pending" ? /* @__PURE__ */ k(o, { children: [/* @__PURE__ */ O(c, {
36
+ e.status === "pending" ? /* @__PURE__ */ A(o, { children: [/* @__PURE__ */ k(n, {
33
37
  variant: "solid",
34
38
  "data-agent-confirm": `Approve ${e.title}?`,
35
39
  onClick: e.onApprove,
@@ -37,23 +41,23 @@ function R(e) {
37
41
  isPending: e.busy === "approve",
38
42
  pendingLabel: "Approving…",
39
43
  children: e.approveLabel ?? "Approve"
40
- }), /* @__PURE__ */ O(c, {
44
+ }), /* @__PURE__ */ k(n, {
41
45
  "data-agent-confirm": `Deny ${e.title}?`,
42
46
  onClick: e.onDeny,
43
47
  disabled: e.isDisabled === !0 || e.busy !== void 0,
44
48
  isPending: e.busy === "deny",
45
49
  pendingLabel: "Denying…",
46
50
  children: e.denyLabel ?? "Deny"
47
- })] }) : /* @__PURE__ */ O(s, { children: e.statusLabel })
51
+ })] }) : /* @__PURE__ */ k(s, { children: e.statusLabel })
48
52
  ]
49
53
  });
50
54
  }
51
55
  // packages/ai/src/command-details.tsx
52
- function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLanguage: o, isRunning: s = !1 }) {
53
- return /* @__PURE__ */ k(a, {
56
+ function H({ command: e, output: t, commandNotice: n, outputNotice: a, outputLanguage: o, isRunning: s = !1 }) {
57
+ return /* @__PURE__ */ A(r, {
54
58
  isCompact: !0,
55
59
  children: [
56
- e === "" && n !== void 0 ? /* @__PURE__ */ O(i, { children: "Command omitted from this preview." }) : e === void 0 ? /* @__PURE__ */ O(i, { children: s ? "Preparing command…" : "Command unavailable." }) : /* @__PURE__ */ O(l, {
60
+ e === "" && n !== void 0 ? /* @__PURE__ */ k(i, { children: "Command omitted from this preview." }) : e === void 0 ? /* @__PURE__ */ k(i, { children: s ? "Preparing command…" : "Command unavailable." }) : /* @__PURE__ */ k(l, {
57
61
  code: e,
58
62
  language: "bash",
59
63
  filename: "Command",
@@ -62,13 +66,13 @@ function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLan
62
66
  shouldWrap: !0,
63
67
  maxHeight: 240
64
68
  }),
65
- n !== void 0 && /* @__PURE__ */ O(i, { children: n }),
66
- t === void 0 || t.length === 0 ? /* @__PURE__ */ O(i, { children: s ? "Waiting for output…" : t === void 0 ? "Output unavailable." : r === void 0 ? "No output." : "Output omitted from this preview." }) : o === void 0 ? /* @__PURE__ */ O(u, {
69
+ n !== void 0 && /* @__PURE__ */ k(i, { children: n }),
70
+ t === void 0 || t.length === 0 ? /* @__PURE__ */ k(i, { children: s ? "Waiting for output…" : t === void 0 ? "Output unavailable." : a === void 0 ? "No output." : "Output omitted from this preview." }) : o === void 0 ? /* @__PURE__ */ k(u, {
67
71
  output: t,
68
72
  label: "Output",
69
73
  variant: "embedded",
70
74
  isRunning: s
71
- }) : /* @__PURE__ */ O(l, {
75
+ }) : /* @__PURE__ */ k(l, {
72
76
  code: t,
73
77
  language: o,
74
78
  filename: "Output",
@@ -78,83 +82,100 @@ function z({ command: e, output: t, commandNotice: n, outputNotice: r, outputLan
78
82
  isStreaming: s,
79
83
  maxHeight: 320
80
84
  }),
81
- r !== void 0 && /* @__PURE__ */ O(i, { children: r })
85
+ a !== void 0 && /* @__PURE__ */ k(i, { children: a })
82
86
  ]
83
87
  });
84
88
  }
85
89
  // packages/ai/src/command-activity.tsx
86
- var B = {
90
+ var U = {
87
91
  pending: "Preparing",
88
92
  running: "Running",
89
93
  complete: "",
90
94
  failed: "Failed",
91
95
  stopped: "Stopped",
92
96
  unknown: "Outcome unknown"
93
- }, V = /* @__PURE__ */ new Set(["pending", "running"]);
94
- function H({ status: e, ...t }) {
95
- let n = t.command?.trim().split(/\r\n|\n|\r/u)[0], i = n === void 0 || n.length === 0 ? "Command" : n;
96
- return /* @__PURE__ */ k(r.Root, {
97
+ }, W = /* @__PURE__ */ new Set(["pending", "running"]);
98
+ function G({ status: e, ...t }) {
99
+ let n = t.command?.trim().split(/\r\n|\n|\r/u)[0], r = n === void 0 || n.length === 0 ? "Command" : n;
100
+ return /* @__PURE__ */ A(c.Root, {
97
101
  defaultOpen: !1,
98
- children: [/* @__PURE__ */ O(r.Trigger, {
102
+ children: [/* @__PURE__ */ k(c.Trigger, {
99
103
  variant: "inline",
100
- children: /* @__PURE__ */ k("span", {
104
+ children: /* @__PURE__ */ A("span", {
101
105
  className: "x3nfvp2 x6s0dn4 x1hnptsi xeuugli",
102
106
  children: [
103
- /* @__PURE__ */ O(P, {
107
+ /* @__PURE__ */ k(P, {
104
108
  size: 14,
105
109
  "aria-hidden": !0,
106
110
  className: "x2lah0s"
107
111
  }),
108
- /* @__PURE__ */ O("span", {
112
+ /* @__PURE__ */ k("span", {
109
113
  className: "xiard35 xy8obcc xeuugli xb3r6kr xlyipyv x1sdyfia",
110
- children: i
114
+ children: r
111
115
  }),
112
- B[e].length > 0 && /* @__PURE__ */ O("span", {
116
+ U[e].length > 0 && /* @__PURE__ */ k("span", {
113
117
  className: "x2lah0s xy8obcc x153jb6y",
114
- children: B[e]
118
+ children: U[e]
115
119
  })
116
120
  ]
117
121
  })
118
- }), /* @__PURE__ */ O(r.Panel, { children: /* @__PURE__ */ O(z, {
122
+ }), /* @__PURE__ */ k(c.Panel, { children: /* @__PURE__ */ k(H, {
119
123
  ...t,
120
- isRunning: V.has(e)
124
+ isRunning: W.has(e)
121
125
  }) })]
122
126
  });
123
127
  }
124
128
  // packages/ai/src/conversation.tsx
125
- var U = x(void 0);
126
- function W({ children: e, initialPosition: t = "end", shouldFollow: n = !0, viewportRef: r }) {
127
- let i = E(null), a = r ?? i, [o] = D(t);
129
+ var K = x(void 0);
130
+ function q() {
131
+ let e = C(K);
132
+ if (e === void 0) throw Error("Render the parts of a conversation inside Conversation.Root.");
133
+ return e;
134
+ }
135
+ function J(e) {
136
+ return e.scrollHeight - e.clientHeight - e.scrollTop <= 1;
137
+ }
138
+ function le({ children: e, initialPosition: t = "end", shouldFollow: n = !0, viewportRef: r }) {
139
+ let i = E(null), a = r ?? i, [o] = D(t), [s] = D(B), [c, l] = D(o === "end"), [u] = D(() => ({
140
+ controller: s,
141
+ viewport: a,
142
+ reachEnd: () => l(!0)
143
+ }));
128
144
  return T(() => {
129
145
  typeof o == "object" && a.current?.scrollTo({
130
146
  top: o.top,
131
147
  left: o.left ?? 0,
132
148
  behavior: "instant"
133
149
  });
134
- }, [o, a]), /* @__PURE__ */ O(U.Provider, {
135
- value: a,
136
- children: /* @__PURE__ */ O(F.Provider, {
137
- autoScroll: n,
138
- defaultScrollPosition: typeof o == "object" ? "start" : o,
139
- children: /* @__PURE__ */ O(F.Root, {
140
- className: "x1n2onr6 x78zum5 xdt5ytf x5yr21d x2lwn1j xeuugli xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
141
- children: e
142
- })
150
+ }, [o, a]), /* @__PURE__ */ k(K.Provider, {
151
+ value: u,
152
+ children: /* @__PURE__ */ k(I, {
153
+ stickToEnd: n && c,
154
+ controller: s,
155
+ className: "x1n2onr6 x78zum5 xdt5ytf x5yr21d x2lwn1j xeuugli xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
156
+ children: e
143
157
  })
144
158
  });
145
159
  }
146
- function G({ label: e, children: t, scrollRestorationId: n }) {
147
- let r = S(U);
148
- return /* @__PURE__ */ O(F.Viewport, {
149
- ref: r,
160
+ function ue({ label: e, children: t, scrollRestorationId: n }) {
161
+ let { viewport: r, reachEnd: i } = q(), a = S((e) => {
162
+ r.current = e, e !== null && J(e) && i();
163
+ }, [r, i]);
164
+ return /* @__PURE__ */ k(z, {
165
+ ref: a,
166
+ role: "region",
150
167
  "aria-label": e,
168
+ tabIndex: 0,
151
169
  "data-scroll-restoration-id": n,
152
- className: "x98rzlu x2lwn1j xeuugli x1odjw0f x1046ku7 x185mbhu x1ok0vyi x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
170
+ onScroll: (e) => {
171
+ J(e.currentTarget) && i();
172
+ },
173
+ className: "x98rzlu x2lwn1j xeuugli x1odjw0f x1046ku7 x185mbhu xbluxkr x1ok0vyi x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
153
174
  children: t
154
175
  });
155
176
  }
156
- function K({ children: e, isStreaming: t = !1 }) {
157
- return /* @__PURE__ */ O(F.Content, {
177
+ function de({ children: e, isStreaming: t = !1 }) {
178
+ return /* @__PURE__ */ k(L, {
158
179
  "aria-live": "polite",
159
180
  "aria-relevant": "additions",
160
181
  "aria-busy": t,
@@ -162,57 +183,62 @@ function K({ children: e, isStreaming: t = !1 }) {
162
183
  children: e
163
184
  });
164
185
  }
165
- function q({ messageId: e, shouldRevealOnAppend: t = !1, children: n }) {
166
- let { scrollToEnd: r } = I();
186
+ function fe({ messageId: e, shouldRevealOnAppend: t = !1, children: n }) {
187
+ let { controller: r } = q();
167
188
  return T(() => {
168
- t && r({ behavior: "instant" });
189
+ t && r.scrollToEnd({ behavior: "instant" });
169
190
  }, [
170
191
  e,
171
192
  t,
172
193
  r
173
- ]), /* @__PURE__ */ O(F.Item, {
174
- messageId: e,
194
+ ]), /* @__PURE__ */ k("div", {
195
+ "data-message-id": e,
175
196
  className: "xeuugli xj0a0fe",
176
197
  children: n
177
198
  });
178
199
  }
179
- function J({ children: e }) {
180
- return /* @__PURE__ */ O("div", {
200
+ function Y({ children: e }) {
201
+ return /* @__PURE__ */ k("div", {
181
202
  className: "x9f619 x2lah0s xeuugli xh8yej3 xe10afn xvueqy4 xn9t2bk x1m92p3w",
182
203
  children: e
183
204
  });
184
205
  }
185
- function Y({ label: e = "Jump to latest" }) {
186
- let { end: t } = L();
187
- return t ? /* @__PURE__ */ O("div", {
206
+ function pe({ label: e = "Jump to latest" }) {
207
+ return /* @__PURE__ */ k(R, { render: (t, { visible: r }) => /* @__PURE__ */ k("div", {
208
+ hidden: !r,
188
209
  className: "x10l6tqk xwthv0x x1nrll8i xuuh30 x1tv4vx4 xeuugli",
189
- children: /* @__PURE__ */ O(X, { label: e })
190
- }) : null;
210
+ children: /* @__PURE__ */ A(n, {
211
+ ...t,
212
+ children: [/* @__PURE__ */ k(j, {
213
+ size: 14,
214
+ "aria-hidden": !0
215
+ }), e]
216
+ })
217
+ }) });
191
218
  }
192
- function X({ label: e, onActivate: t }) {
193
- let { scrollToEnd: n } = I(), r = S(U);
194
- return /* @__PURE__ */ k(c, {
219
+ function me({ label: e, onActivate: t }) {
220
+ let { controller: r, viewport: i } = q();
221
+ return /* @__PURE__ */ A(n, {
195
222
  onClick: () => {
196
223
  t?.(), requestAnimationFrame(() => {
197
- let e = r?.current;
198
- e != null && (n({ behavior: "instant" }), e.focus({ preventScroll: !0 }));
224
+ r.scrollToEnd({ behavior: "instant" }), i.current?.focus({ preventScroll: !0 });
199
225
  });
200
226
  },
201
- children: [/* @__PURE__ */ O(A, {
227
+ children: [/* @__PURE__ */ k(j, {
202
228
  size: 14,
203
229
  "aria-hidden": !0
204
230
  }), e]
205
231
  });
206
232
  }
207
- var Z = {
208
- Root: W,
209
- Viewport: G,
210
- Content: K,
211
- Item: q,
212
- Controls: J,
213
- LatestButton: X,
214
- JumpToLatest: Y
215
- }, Q = {
233
+ var he = {
234
+ Root: le,
235
+ Viewport: ue,
236
+ Content: de,
237
+ Item: fe,
238
+ Controls: Y,
239
+ LatestButton: me,
240
+ JumpToLatest: pe
241
+ }, X = {
216
242
  root: {
217
243
  k1xSpc: "x78zum5",
218
244
  kXwgrk: "xdt5ytf",
@@ -249,51 +275,71 @@ var Z = {
249
275
  k8WAf4: "xn9t2bk",
250
276
  $$css: !0
251
277
  }
252
- }, ne = {
253
- user: Q.user,
254
- assistant: Q.assistant,
255
- system: Q.system
256
- }, re = {
257
- user: Q.bubble,
258
- assistant: Q.chatReply,
278
+ }, ge = {
279
+ user: X.user,
280
+ assistant: X.assistant,
281
+ system: X.system
282
+ }, _e = {
283
+ user: X.bubble,
284
+ assistant: X.chatReply,
259
285
  system: null
260
- }, ie = {
286
+ };
287
+ function Z({ kind: e }) {
288
+ return { kind: e };
289
+ }
290
+ var ve = O({
291
+ name: "message",
292
+ options: { kind: "string" },
293
+ state: Z,
294
+ sync: Z,
295
+ controlled: ["kind"],
296
+ api: () => ({}),
297
+ agent: { actions: [] },
298
+ slots: (e) => ({
299
+ root: e({}),
300
+ description: e({})
301
+ })
302
+ }), { Root: ye, Description: be } = b(ve, {
303
+ root: "article",
304
+ description: "div"
305
+ }), xe = {
261
306
  "x-default-marker": "x-default-marker",
262
307
  $$css: !0
263
308
  };
264
- function ae({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avatar: a, actions: o, attachments: s, variant: c = "default" }) {
265
- let l = c === "chat", u = !l || a !== void 0 || i !== void 0, d = l && r === "assistant", f = u ? /* @__PURE__ */ k("header", {
309
+ function Se({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avatar: a, actions: o, attachments: s, variant: c = "default" }) {
310
+ let l = c === "chat", u = !l || a !== void 0 || i !== void 0, d = l && r === "assistant", f = u ? /* @__PURE__ */ A("header", {
266
311
  className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli",
267
312
  children: [
268
- a !== void 0 && /* @__PURE__ */ O("span", {
313
+ a !== void 0 && /* @__PURE__ */ k("span", {
269
314
  className: "x3nfvp2 x2lah0s",
270
315
  children: a
271
316
  }),
272
- /* @__PURE__ */ O("span", {
317
+ /* @__PURE__ */ k("span", {
273
318
  className: "xk4h15q xeuugli xj0a0fe",
274
319
  children: e
275
320
  }),
276
- i !== void 0 && /* @__PURE__ */ O("div", {
321
+ i !== void 0 && /* @__PURE__ */ k("div", {
277
322
  className: "x153jb6y xy8obcc xas2l8k xeuugli xj0a0fe",
278
323
  children: i
279
324
  })
280
325
  ]
281
326
  }) : null;
282
- return /* @__PURE__ */ k("article", {
283
- id: n,
327
+ return /* @__PURE__ */ A(ye, {
328
+ kind: r,
329
+ ...n !== void 0 && { id: n },
284
330
  "aria-label": e,
285
- ...b.props(Q.root, ne[r], l && re[r], ie),
331
+ ...y.props(X.root, ge[r], l && _e[r], xe),
286
332
  children: [
287
333
  f,
288
- /* @__PURE__ */ O("div", {
334
+ /* @__PURE__ */ k(be, {
289
335
  className: "xeuugli xj0a0fe x1ytb0s6",
290
336
  children: t
291
337
  }),
292
- s !== void 0 && /* @__PURE__ */ O("div", {
338
+ s !== void 0 && /* @__PURE__ */ k("div", {
293
339
  className: "x78zum5 x1a02dak x1qjc9v5 x1hnptsi xeuugli",
294
340
  children: s
295
341
  }),
296
- (o !== void 0 || d) && /* @__PURE__ */ O("footer", {
342
+ (o !== void 0 || d) && /* @__PURE__ */ k("footer", {
297
343
  ...{
298
344
  0: { className: "x78zum5 x1a02dak x6s0dn4 xeuugli xunmzkg x1hc1fzr x12vu8c0 xtf8l8m x1thm12b" },
299
345
  1: { className: "x78zum5 x1a02dak x6s0dn4 xeuugli xunmzkg x1hc1fzr x12vu8c0 xtf8l8m x1thm12b x17tes2r x17oiadl" }
@@ -303,26 +349,26 @@ function ae({ author: e, children: t, id: n, kind: r = "assistant", meta: i, ava
303
349
  ]
304
350
  });
305
351
  }
306
- function oe({ name: e, description: t, href: n, actions: r }) {
307
- return /* @__PURE__ */ k("div", {
352
+ function Ce({ name: e, description: t, href: n, actions: r }) {
353
+ return /* @__PURE__ */ A("div", {
308
354
  className: "x78zum5 x1a02dak x6s0dn4 x1n8ia3y xeuugli x193iq5w x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 x1hz01jw xtqrqnz x1778rvt xj57cvi",
309
355
  children: [
310
- /* @__PURE__ */ O(M, {
356
+ /* @__PURE__ */ k(M, {
311
357
  size: 16,
312
358
  "aria-hidden": !0,
313
359
  className: "x153jb6y x2lah0s"
314
360
  }),
315
- /* @__PURE__ */ k("div", {
361
+ /* @__PURE__ */ A("div", {
316
362
  className: "x78zum5 xdt5ytf xfko13i x1slnebi xeuugli xj0a0fe",
317
- children: [n === void 0 ? /* @__PURE__ */ O("span", { children: e }) : /* @__PURE__ */ O(d, {
363
+ children: [n === void 0 ? /* @__PURE__ */ k("span", { children: e }) : /* @__PURE__ */ k(d, {
318
364
  href: n,
319
365
  children: e
320
- }), t !== void 0 && /* @__PURE__ */ O("span", {
366
+ }), t !== void 0 && /* @__PURE__ */ k("span", {
321
367
  className: "x153jb6y xy8obcc xas2l8k xeuugli xj0a0fe",
322
368
  children: t
323
369
  })]
324
370
  }),
325
- r !== void 0 && /* @__PURE__ */ O("div", {
371
+ r !== void 0 && /* @__PURE__ */ k("div", {
326
372
  className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli",
327
373
  children: r
328
374
  })
@@ -330,46 +376,46 @@ function oe({ name: e, description: t, href: n, actions: r }) {
330
376
  });
331
377
  }
332
378
  // packages/ai/src/message-action.tsx
333
- function se(n) {
379
+ function we(n) {
334
380
  if (n.kind === "link") {
335
- let { kind: t, label: r, ...i } = n;
336
- return /* @__PURE__ */ O(e, {
381
+ let { kind: e, label: r, ...i } = n;
382
+ return /* @__PURE__ */ k(t, {
337
383
  ...i,
338
384
  "aria-label": r
339
385
  });
340
386
  }
341
387
  let { kind: r, label: i, ...a } = n;
342
- return /* @__PURE__ */ O(t, {
388
+ return /* @__PURE__ */ k(e, {
343
389
  ...a,
344
390
  variant: "ghost",
345
391
  "aria-label": i
346
392
  });
347
393
  }
348
- function ce(e) {
349
- return /* @__PURE__ */ k(p.Root, { children: [/* @__PURE__ */ O(p.Trigger, { render: se(e) }), /* @__PURE__ */ O(p.Popup, { children: e.label })] });
394
+ function Te(e) {
395
+ return /* @__PURE__ */ A(p.Root, { children: [/* @__PURE__ */ k(p.Trigger, { render: we(e) }), /* @__PURE__ */ k(p.Popup, { children: e.label })] });
350
396
  }
351
397
  // packages/ai/src/message-boundary.tsx
352
- function le({ label: e, children: t }) {
353
- return /* @__PURE__ */ k(r.Root, {
398
+ function Ee({ label: e, children: t }) {
399
+ return /* @__PURE__ */ A(c.Root, {
354
400
  className: "xeuugli x1kbiq1m xykt701 xpu655y",
355
- children: [/* @__PURE__ */ k(r.Trigger, {
401
+ children: [/* @__PURE__ */ A(c.Trigger, {
356
402
  className: "xlqzeqv x1hnptsi x153jb6y xy8obcc xas2l8k xj57cvi",
357
- children: [/* @__PURE__ */ O(N, {
403
+ children: [/* @__PURE__ */ k(N, {
358
404
  size: 14,
359
405
  "aria-hidden": !0,
360
406
  className: "x2lah0s"
361
- }), /* @__PURE__ */ O("span", {
407
+ }), /* @__PURE__ */ k("span", {
362
408
  className: "xeuugli xj0a0fe",
363
409
  children: e
364
410
  })]
365
- }), /* @__PURE__ */ O(r.Panel, {
411
+ }), /* @__PURE__ */ k(c.Panel, {
366
412
  className: "x153jb6y xy8obcc xas2l8k",
367
413
  children: t
368
414
  })]
369
415
  });
370
416
  }
371
417
  // packages/ai/src/prompt-input.tsx
372
- var $ = {
418
+ var Q = {
373
419
  inlineInput: {
374
420
  kUk6DE: "x12lumcd",
375
421
  kSGwAc: "xamitd3",
@@ -379,121 +425,141 @@ var $ = {
379
425
  keTefX: "xvc5jky",
380
426
  $$css: !0
381
427
  }
382
- };
383
- function ue({ isCompact: e = !1 }) {
384
- return /* @__PURE__ */ O("div", {
428
+ }, $ = "mod+enter";
429
+ function De({ isCompact: e = !1 }) {
430
+ return /* @__PURE__ */ k("div", {
385
431
  "aria-hidden": !0,
386
432
  inert: !0,
387
433
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli xh8yej3 xe10afn xvueqy4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
388
- children: /* @__PURE__ */ k("div", {
434
+ children: /* @__PURE__ */ A("div", {
389
435
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep",
390
- children: [/* @__PURE__ */ O("div", {
391
- ...b.props(v.base, v.field, v.textarea, v.plainTextarea),
392
- children: /* @__PURE__ */ O(m, {
436
+ children: [/* @__PURE__ */ k("div", {
437
+ ...y.props(_.base, _.field, _.textarea, _.plainTextarea),
438
+ children: /* @__PURE__ */ k(m, {
393
439
  lines: e ? 1 : 2,
394
440
  width: "22ch"
395
441
  })
396
- }), /* @__PURE__ */ k("div", {
442
+ }), /* @__PURE__ */ A("div", {
397
443
  className: "x78zum5 x1a02dak x6s0dn4 x1qughib x1hnptsi",
398
- children: [/* @__PURE__ */ O("div", {
444
+ children: [/* @__PURE__ */ k("div", {
399
445
  className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd xy8obcc xas2l8k",
400
- children: /* @__PURE__ */ O(m, { width: "8ch" })
401
- }), /* @__PURE__ */ O(h, {
446
+ children: /* @__PURE__ */ k(m, { width: "8ch" })
447
+ }), /* @__PURE__ */ k(h, {
402
448
  isIconOnly: !0,
403
- xstyle: $.action
449
+ xstyle: Q.action
404
450
  })]
405
451
  })]
406
452
  })
407
453
  });
408
454
  }
409
- function de({ label: e, value: n, onValueChange: r, onSubmit: i, name: a = "prompt", placeholder: o, maxLength: s, required: c = !0, isPending: l = !1, disabled: u = !1, isSubmitDisabled: d = !1, submitLabel: f = "Send message", pendingLabel: m = "Sending…", enterBehavior: h = "newline", isCompact: v = !1, description: y, error: x, controls: S, attachments: C, onStop: T, isStopPending: E = !1, stopLabel: D = "Stop response" }) {
410
- let A = w(), M = u, N = v && C === void 0 && S === void 0, P = !M && !l && !d, F = f;
411
- T === void 0 ? l ? F = m : h === "submit" && (F = `${f} · Enter`) : F = E ? "Stopping…" : D;
412
- function I(e) {
413
- if (h !== "submit" || e.key !== "Enter" || e.repeat) return;
414
- let t = e.altKey || e.ctrlKey || e.metaKey;
415
- e.shiftKey || t || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.preventDefault(), P && T === void 0 && e.currentTarget.form?.requestSubmit());
455
+ function Oe({ label: t, value: n, onValueChange: r, onSubmit: i, name: a = "prompt", placeholder: o, maxLength: s, required: c = !0, isPending: l = !1, disabled: u = !1, isSubmitDisabled: d = !1, submitLabel: f = "Send message", pendingLabel: m = "Sending…", enterBehavior: h = "newline", history: _, isCompact: v = !1, description: b, error: x, controls: S, attachments: C, onStop: w, isStopPending: O = !1, stopLabel: j = "Stop response" }) {
456
+ let M = ne(), N = u, P = v && C === void 0 && S === void 0, I = !N && !l && !d, L = ce($), R = E({
457
+ history: _,
458
+ value: n,
459
+ onValueChange: r
460
+ });
461
+ T(() => {
462
+ R.current = {
463
+ history: _,
464
+ value: n,
465
+ onValueChange: r
466
+ };
467
+ });
468
+ let [z] = D(() => re({
469
+ entries: () => R.current.history,
470
+ read: () => R.current.value,
471
+ write: (e, t) => !ie({ options: () => R.current }, "onValueChange", e, {
472
+ reason: "input-change",
473
+ event: t
474
+ })
475
+ })), B = `${f} · ${L.text}`;
476
+ w === void 0 ? l ? B = m : h === "submit" && (B = `${f} · Enter`) : B = O ? "Stopping…" : j;
477
+ function V(e) {
478
+ if (z.keydown(e.nativeEvent) || e.key !== "Enter" || e.repeat || ae(e)) return;
479
+ let t = F(e.nativeEvent, $), n = !t && F(e.nativeEvent, "enter");
480
+ (t || h === "submit" && n) && (e.preventDefault(), I && w === void 0 && e.currentTarget.form?.requestSubmit());
416
481
  }
417
- function L(e) {
418
- e.preventDefault(), P && T === void 0 && i(e);
482
+ function H(e) {
483
+ e.preventDefault(), I && w === void 0 && i(e);
419
484
  }
420
- return /* @__PURE__ */ O("form", {
421
- onSubmit: L,
485
+ return /* @__PURE__ */ k("form", {
486
+ onSubmit: H,
422
487
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli xh8yej3 xe10afn xvueqy4 xbixft x1hz01jw xtqrqnz x1778rvt xj57cvi",
423
- children: /* @__PURE__ */ k(_.Root, {
488
+ children: /* @__PURE__ */ A(g.Root, {
424
489
  invalid: x !== void 0,
425
490
  children: [
426
- /* @__PURE__ */ O(_.Label, {
427
- ...b.props(ee.hidden),
428
- children: e
491
+ /* @__PURE__ */ k(g.Label, {
492
+ ...y.props(te.hidden),
493
+ children: t
429
494
  }),
430
- /* @__PURE__ */ k("div", {
495
+ /* @__PURE__ */ A("div", {
431
496
  ...{
432
497
  0: { className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep" },
433
498
  2: { className: "x78zum5 x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep x1q0g3np xuk3077 xn9t2bk" },
434
499
  1: { className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep x1oddvo6" },
435
500
  3: { className: "x78zum5 x1hnptsi xeuugli x1mvvolr xmkeg23 x1y0btm7 xy32g2j x1r7kqkb x1gd1hh4 x1u8w8hx x14xc8xn x1nvizq4 xgzwmep x1q0g3np xuk3077 xn9t2bk x1oddvo6" }
436
- }[!!N << 1 | x !== void 0],
501
+ }[!!P << 1 | x !== void 0],
437
502
  children: [
438
- /* @__PURE__ */ O(g, {
503
+ /* @__PURE__ */ k(ee, {
439
504
  isSensitive: !0,
440
505
  appearance: "plain",
441
506
  rows: v ? 1 : 2,
442
507
  isCompact: v,
443
- shouldGrow: N,
444
- xstyle: N ? $.inlineInput : void 0,
508
+ shouldGrow: P,
509
+ xstyle: P ? Q.inlineInput : void 0,
445
510
  name: a,
446
511
  value: n,
447
512
  onValueChange: r,
448
- onKeyDown: I,
449
- placeholder: o ?? e,
513
+ onKeyDown: V,
514
+ placeholder: o ?? t,
450
515
  maxLength: s,
451
516
  required: c,
452
517
  disabled: u,
453
- "aria-errormessage": x === void 0 ? void 0 : A
518
+ "aria-errormessage": x === void 0 ? void 0 : M
454
519
  }),
455
520
  C,
456
- /* @__PURE__ */ k("div", {
521
+ /* @__PURE__ */ A("div", {
457
522
  ...{
458
523
  0: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x1hnptsi" },
459
524
  1: { className: "x78zum5 x1a02dak x6s0dn4 x1qughib x1hnptsi x2lah0s" }
460
- }[!!N | 0],
461
- children: [S !== void 0 && /* @__PURE__ */ O("div", {
525
+ }[!!P | 0],
526
+ children: [S !== void 0 && /* @__PURE__ */ k("div", {
462
527
  className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd",
463
528
  children: S
464
- }), /* @__PURE__ */ k(p.Root, { children: [/* @__PURE__ */ O(p.Trigger, { render: T === void 0 ? /* @__PURE__ */ O(t, {
465
- xstyle: $.action,
529
+ }), /* @__PURE__ */ A(p.Root, { children: [/* @__PURE__ */ k(p.Trigger, { render: w === void 0 ? /* @__PURE__ */ k(e, {
530
+ xstyle: Q.action,
466
531
  type: "submit",
467
532
  "data-agent-confirm": f,
468
533
  variant: "solid",
469
534
  "aria-label": l ? m : f,
535
+ "aria-keyshortcuts": h === "submit" ? `Enter ${L.ariaKeyshortcuts}` : L.ariaKeyshortcuts,
470
536
  disabled: u || d,
471
537
  isPending: l,
472
- children: /* @__PURE__ */ O(j, {
538
+ children: /* @__PURE__ */ k(oe, {
473
539
  size: 16,
474
540
  "aria-hidden": !0
475
541
  })
476
- }) : /* @__PURE__ */ O(t, {
477
- xstyle: $.action,
542
+ }) : /* @__PURE__ */ k(e, {
543
+ xstyle: Q.action,
478
544
  type: "button",
479
- "data-agent-confirm": D,
480
- "aria-label": E ? "Stopping…" : D,
545
+ "data-agent-confirm": j,
546
+ "aria-label": O ? "Stopping…" : j,
481
547
  onClick: (e) => {
482
- e.preventDefault(), T();
548
+ e.preventDefault(), w();
483
549
  },
484
550
  disabled: u,
485
- isPending: E,
486
- children: /* @__PURE__ */ O(te, {
551
+ isPending: O,
552
+ children: /* @__PURE__ */ k(se, {
487
553
  size: 14,
488
554
  "aria-hidden": !0
489
555
  })
490
- }) }), /* @__PURE__ */ O(p.Popup, { children: F })] })]
556
+ }) }), /* @__PURE__ */ k(p.Popup, { children: B })] })]
491
557
  })
492
558
  ]
493
559
  }),
494
- y !== void 0 && /* @__PURE__ */ O(_.Description, { children: y }),
495
- x !== void 0 && /* @__PURE__ */ O(_.Error, {
496
- id: A,
560
+ b !== void 0 && /* @__PURE__ */ k(g.Description, { children: b }),
561
+ x !== void 0 && /* @__PURE__ */ k(g.Error, {
562
+ id: M,
497
563
  match: !0,
498
564
  role: "alert",
499
565
  children: x
@@ -503,15 +569,15 @@ function de({ label: e, value: n, onValueChange: r, onSubmit: i, name: a = "prom
503
569
  });
504
570
  }
505
571
  // packages/ai/src/reply-indicator.tsx
506
- function fe({ label: e, delayMs: t = 200, isAnimated: n = !0 }) {
507
- let [r, i] = D(t === 0), { ref: a, isActive: o } = y(n && r);
508
- return C(() => {
572
+ function ke({ label: e, delayMs: t = 200, isAnimated: n = !0 }) {
573
+ let [r, i] = D(t === 0), { ref: a, isActive: o } = v(n && r);
574
+ return w(() => {
509
575
  let e = setTimeout(() => i(!0), t);
510
576
  return () => clearTimeout(e);
511
- }, [t]), /* @__PURE__ */ O("div", {
577
+ }, [t]), /* @__PURE__ */ k("div", {
512
578
  ref: a,
513
579
  className: "x1tn5z8q x153jb6y x1hz01jw xtqrqnz x1ytb0s6",
514
- children: r && /* @__PURE__ */ O("span", {
580
+ children: r && /* @__PURE__ */ k("span", {
515
581
  role: "status",
516
582
  ...{
517
583
  0: {},
@@ -524,27 +590,27 @@ function fe({ label: e, delayMs: t = 200, isAnimated: n = !0 }) {
524
590
  });
525
591
  }
526
592
  // packages/ai/src/sources.tsx
527
- function pe({ sources: e, label: t = "Sources" }) {
528
- return /* @__PURE__ */ k("section", {
593
+ function Ae({ sources: e, label: t = "Sources" }) {
594
+ return /* @__PURE__ */ A("section", {
529
595
  "aria-label": t,
530
596
  className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
531
597
  children: [
532
- /* @__PURE__ */ O("h3", {
598
+ /* @__PURE__ */ k("h3", {
533
599
  className: "x1ghz6dp xtqrqnz x1778rvt xk4h15q xj0a0fe",
534
600
  children: t
535
601
  }),
536
- e.length === 0 && /* @__PURE__ */ O("p", {
602
+ e.length === 0 && /* @__PURE__ */ k("p", {
537
603
  className: "x1ghz6dp x153jb6y xy8obcc xas2l8k xj0a0fe",
538
604
  children: "No sources supplied."
539
605
  }),
540
- /* @__PURE__ */ O("ol", {
606
+ /* @__PURE__ */ k("ol", {
541
607
  className: "x78zum5 xdt5ytf x1n8ia3y x1ghz6dp x1717udv x3ct3a4",
542
- children: e.map((e) => /* @__PURE__ */ k("li", {
608
+ children: e.map((e) => /* @__PURE__ */ A("li", {
543
609
  className: "x78zum5 xdt5ytf xfko13i xeuugli xj0a0fe",
544
- children: [/* @__PURE__ */ O("span", { children: /* @__PURE__ */ O(d, {
610
+ children: [/* @__PURE__ */ k("span", { children: /* @__PURE__ */ k(d, {
545
611
  href: e.href,
546
612
  children: e.title
547
- }) }), e.description !== void 0 && /* @__PURE__ */ O("p", {
613
+ }) }), e.description !== void 0 && /* @__PURE__ */ k("p", {
548
614
  className: "x1ghz6dp x153jb6y xy8obcc xas2l8k xj0a0fe",
549
615
  children: e.description
550
616
  })]
@@ -553,21 +619,21 @@ function pe({ sources: e, label: t = "Sources" }) {
553
619
  ]
554
620
  });
555
621
  }
556
- function me({ source: e, label: t }) {
557
- return /* @__PURE__ */ O("span", {
622
+ function je({ source: e, label: t }) {
623
+ return /* @__PURE__ */ k("span", {
558
624
  className: "xt0psk2 x11njtxf xss6m8b",
559
- children: /* @__PURE__ */ k(f.Root, { children: [/* @__PURE__ */ O(f.Trigger, {
560
- render: /* @__PURE__ */ O(n, {}),
625
+ children: /* @__PURE__ */ A(f.Root, { children: [/* @__PURE__ */ k(f.Trigger, {
626
+ render: /* @__PURE__ */ k(a, {}),
561
627
  "aria-label": `Source ${t}: ${e.title}`,
562
628
  children: t
563
- }), /* @__PURE__ */ O(f.Popup, {
629
+ }), /* @__PURE__ */ k(f.Popup, {
564
630
  side: "top",
565
- children: /* @__PURE__ */ k(a, {
631
+ children: /* @__PURE__ */ A(r, {
566
632
  isCompact: !0,
567
633
  children: [
568
- /* @__PURE__ */ O(f.Title, { children: e.title }),
569
- e.description !== void 0 && /* @__PURE__ */ O(f.Description, { children: e.description }),
570
- /* @__PURE__ */ O(d, {
634
+ /* @__PURE__ */ k(f.Title, { children: e.title }),
635
+ e.description !== void 0 && /* @__PURE__ */ k(f.Description, { children: e.description }),
636
+ /* @__PURE__ */ k(d, {
571
637
  href: e.href,
572
638
  children: "Open source"
573
639
  })
@@ -576,4 +642,4 @@ function me({ source: e, label: t }) {
576
642
  })] })
577
643
  });
578
644
  }
579
- export { R as Approval, H as CommandActivity, z as CommandDetails, Z as Conversation, me as InlineCitation, ae as Message, ce as MessageAction, oe as MessageAttachment, le as MessageBoundary, de as PromptInput, ue as PromptInputPlaceholder, fe as ReplyIndicator, pe as Sources };
645
+ export { V as Approval, G as CommandActivity, H as CommandDetails, he as Conversation, je as InlineCitation, Se as Message, Te as MessageAction, Ce as MessageAttachment, Ee as MessageBoundary, Oe as PromptInput, De as PromptInputPlaceholder, ke as ReplyIndicator, Ae as Sources };