@mechane-ai/elements 0.18.0 → 0.19.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.
@@ -1,19 +1,20 @@
1
- import { t as e } from "../code-block-DB42-a0M.js";
2
- import { n as t, t as n } from "../content-link-rdxJ94P8.js";
3
- import { t as r } from "../viewer-styles-CpHqp5Qv.js";
4
- import * as i from "@stylexjs/stylex";
5
- import { Children as a, createElement as o } from "react";
6
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
- import { Block as u, Streamdown as d, defaultRehypePlugins as f, defaultRemarkPlugins as p, useIsCodeFenceIncomplete as m } from "streamdown";
1
+ import { t as e } from "../visible-motion-1GcUaEi4.js";
2
+ import { t } from "../code-block-DB42-a0M.js";
3
+ import { n, t as r } from "../content-link-rdxJ94P8.js";
4
+ import { t as i } from "../viewer-styles-CpHqp5Qv.js";
5
+ import * as a from "@stylexjs/stylex";
6
+ import { Children as o, createContext as s, createElement as c, memo as l, useContext as u } from "react";
7
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
8
+ import { Block as m, Streamdown as h, defaultRehypePlugins as g, defaultRemarkPlugins as _, useIsCodeFenceIncomplete as v } from "streamdown";
8
9
  // packages/content/src/markdown/markdown-options.ts
9
- var h = /* @__PURE__ */ new Set(["href", "src"]), g = {
10
- rehypePlugins: Object.entries(f).filter(([e]) => e === "sanitize").map(([, e]) => e),
11
- remarkPlugins: Object.values(p),
10
+ var y = /* @__PURE__ */ new Set(["href", "src"]), b = {
11
+ rehypePlugins: Object.entries(g).filter(([e]) => e === "sanitize").map(([, e]) => e),
12
+ remarkPlugins: Object.values(_),
12
13
  skipHtml: !0,
13
- urlTransform: (e, n) => {
14
- if (h.has(n)) return t(e);
14
+ urlTransform: (e, t) => {
15
+ if (y.has(t)) return n(e);
15
16
  }
16
- }, _ = {
17
+ }, x = {
17
18
  root: {
18
19
  k7Eaqz: "xeuugli",
19
20
  kMwMTN: "xbixft",
@@ -69,197 +70,198 @@ var h = /* @__PURE__ */ new Set(["href", "src"]), g = {
69
70
  kMwMTN: "x153jb6y",
70
71
  $$css: !0
71
72
  }
72
- }, v = {
73
+ }, S = {
73
74
  default: null,
74
- muted: _.muted
75
- }, y = {
75
+ muted: x.muted
76
+ }, C = {
76
77
  regular: null,
77
- strong: _.strong
78
- }, b = /* @__PURE__ */ new Set(["string", "number"]);
79
- function x(e) {
80
- return b.has(typeof e);
78
+ strong: x.strong
79
+ }, w = s(1), T = {
80
+ animation: "xb11x9y-B",
81
+ duration: 140,
82
+ stagger: 0,
83
+ maxBacklogMs: 0,
84
+ sep: "word"
85
+ }, E = /* @__PURE__ */ new Set(["string", "number"]);
86
+ function D(e) {
87
+ return E.has(typeof e);
81
88
  }
82
- function S({ children: t, className: n }) {
83
- let r = m(), i = typeof n == "string" ? /(?:^|\s)language-([^\s]+)/u.exec(n) : null, o = i === null ? void 0 : i[1], s = a.toArray(t);
84
- return s.every(x) ? /* @__PURE__ */ c("div", {
89
+ function O({ children: e, className: n }) {
90
+ let r = v(), i = typeof n == "string" ? /(?:^|\s)language-([^\s]+)/u.exec(n) : null, a = i === null ? void 0 : i[1], s = o.toArray(e);
91
+ return s.every(D) ? /* @__PURE__ */ f("div", {
85
92
  className: "xyrmp21 x14l7nz5 x1jfksii xzboxd6",
86
- children: /* @__PURE__ */ c(e, {
93
+ children: /* @__PURE__ */ f(t, {
87
94
  code: s.join(""),
88
- language: o,
95
+ language: a,
89
96
  isStreaming: r
90
97
  })
91
- }) : /* @__PURE__ */ c("code", {
98
+ }) : /* @__PURE__ */ f("code", {
92
99
  className: "xiard35 xy8obcc x1r7kqkb x1ok0vyi x10dazmo x14w6jbu x17etxam",
93
- children: t
100
+ children: e
94
101
  });
95
102
  }
96
- function C({ level: e, headingLevel: t, children: n, id: r }) {
97
- let a = `h${Math.min(e + t - 1, 6)}`, s = e === 1 ? _.title : e === 2 ? _.section : _.minor;
98
- return o(a, {
99
- id: r,
100
- ...i.props(_.heading, s)
101
- }, n);
103
+ function k({ level: e, children: t, id: n }) {
104
+ let r = u(w), i = `h${Math.min(e + r - 1, 6)}`, o = e === 1 ? x.title : e === 2 ? x.section : x.minor;
105
+ return c(i, {
106
+ id: n,
107
+ ...a.props(x.heading, o)
108
+ }, t);
102
109
  }
103
- var w = {
104
- p: ({ children: e }) => /* @__PURE__ */ c("p", {
110
+ var A = {
111
+ h1: (e) => /* @__PURE__ */ f(k, {
112
+ ...e,
113
+ level: 1
114
+ }),
115
+ h2: (e) => /* @__PURE__ */ f(k, {
116
+ ...e,
117
+ level: 2
118
+ }),
119
+ h3: (e) => /* @__PURE__ */ f(k, {
120
+ ...e,
121
+ level: 3
122
+ }),
123
+ h4: (e) => /* @__PURE__ */ f(k, {
124
+ ...e,
125
+ level: 4
126
+ }),
127
+ h5: (e) => /* @__PURE__ */ f(k, {
128
+ ...e,
129
+ level: 5
130
+ }),
131
+ h6: (e) => /* @__PURE__ */ f(k, {
132
+ ...e,
133
+ level: 6
134
+ }),
135
+ p: ({ children: e }) => /* @__PURE__ */ f("p", {
105
136
  className: "xyrmp21 x14l7nz5 x1jfksii xzboxd6",
106
137
  children: e
107
138
  }),
108
- ul: ({ children: e }) => /* @__PURE__ */ c("ul", {
139
+ ul: ({ children: e }) => /* @__PURE__ */ f("ul", {
109
140
  className: "xyrmp21 x14l7nz5 x1jfksii xzboxd6 x1sbza1b",
110
141
  children: e
111
142
  }),
112
- ol: ({ children: e, start: t }) => /* @__PURE__ */ c("ol", {
143
+ ol: ({ children: e, start: t }) => /* @__PURE__ */ f("ol", {
113
144
  start: t,
114
145
  className: "xyrmp21 x14l7nz5 x1jfksii xzboxd6 x1sbza1b",
115
146
  children: e
116
147
  }),
117
- li: ({ children: e }) => /* @__PURE__ */ c("li", {
148
+ li: ({ children: e }) => /* @__PURE__ */ f("li", {
118
149
  className: "x1vblts3 xnkn1qj",
119
150
  children: e
120
151
  }),
121
- blockquote: ({ children: e }) => /* @__PURE__ */ c("blockquote", {
152
+ blockquote: ({ children: e }) => /* @__PURE__ */ f("blockquote", {
122
153
  className: "xyrmp21 x14l7nz5 x1jfksii xzboxd6 xrxpjvj x1umj4g3 xyumdvf x1t7ytsu x97x49r x153jb6y",
123
154
  children: e
124
155
  }),
125
- code: ({ children: e, className: t }) => /* @__PURE__ */ c(S, {
156
+ code: ({ children: e, className: t }) => /* @__PURE__ */ f(O, {
126
157
  className: t,
127
158
  children: e
128
159
  }),
129
- inlineCode: ({ children: e }) => /* @__PURE__ */ c("code", {
160
+ inlineCode: ({ children: e }) => /* @__PURE__ */ f("code", {
130
161
  className: "xiard35 xy8obcc x1r7kqkb x1ok0vyi x10dazmo x14w6jbu x17etxam",
131
162
  children: e
132
163
  }),
133
- a: ({ href: e, children: t, title: r }) => /* @__PURE__ */ c(n, {
164
+ a: ({ href: e, children: t, title: n }) => /* @__PURE__ */ f(r, {
134
165
  href: e,
135
- title: r,
166
+ title: n,
136
167
  children: t
137
168
  }),
138
- img: ({ src: e, alt: t, title: r }) => /* @__PURE__ */ c(n, {
169
+ img: ({ src: e, alt: t, title: n }) => /* @__PURE__ */ f(r, {
139
170
  href: typeof e == "string" ? e : void 0,
140
- title: r,
171
+ title: n,
141
172
  children: t !== void 0 && t.length > 0 ? `Open image: ${t}` : "Open image"
142
173
  }),
143
- table: ({ children: e }) => /* @__PURE__ */ c("div", {
174
+ table: ({ children: e }) => /* @__PURE__ */ f("div", {
144
175
  role: "region",
145
176
  "aria-label": "Markdown table",
146
177
  tabIndex: 0,
147
- ...i.props(r.scrollRegion, _.block, _.tableRegion),
148
- children: /* @__PURE__ */ c("table", {
178
+ ...a.props(i.scrollRegion, x.block, x.tableRegion),
179
+ children: /* @__PURE__ */ f("table", {
149
180
  className: "xh8yej3 x1mwwwfo xss6m8b x1yc453h x1h4wwuj x1778rvt",
150
181
  children: e
151
182
  })
152
183
  }),
153
- thead: ({ children: e }) => /* @__PURE__ */ c("thead", { children: e }),
154
- tbody: ({ children: e }) => /* @__PURE__ */ c("tbody", { children: e }),
155
- tr: ({ children: e }) => /* @__PURE__ */ c("tr", { children: e }),
156
- th: ({ children: e }) => /* @__PURE__ */ c("th", {
184
+ thead: ({ children: e }) => /* @__PURE__ */ f("thead", { children: e }),
185
+ tbody: ({ children: e }) => /* @__PURE__ */ f("tbody", { children: e }),
186
+ tr: ({ children: e }) => /* @__PURE__ */ f("tr", { children: e }),
187
+ th: ({ children: e }) => /* @__PURE__ */ f("th", {
157
188
  scope: "col",
158
189
  className: "xn9t2bk x1doqdfy xso031l x1q0q8m5 x1qndepd x16dsc37 x1yc453h x153jb6y xk4h15q x1r7kqkb",
159
190
  children: e
160
191
  }),
161
- td: ({ children: e }) => /* @__PURE__ */ c("td", {
192
+ td: ({ children: e }) => /* @__PURE__ */ f("td", {
162
193
  className: "xn9t2bk x1doqdfy xso031l x1q0q8m5 x1qndepd x16dsc37 x1yc453h",
163
194
  children: e
164
195
  }),
165
- input: ({ checked: e }) => /* @__PURE__ */ c("input", {
196
+ input: ({ checked: e }) => /* @__PURE__ */ f("input", {
166
197
  type: "checkbox",
167
198
  checked: e ?? !1,
168
199
  disabled: !0,
169
200
  "aria-label": "Task item",
170
201
  className: "x1bzlxqo x6e7ywc"
171
202
  }),
172
- hr: () => /* @__PURE__ */ c("hr", { className: "xhff0hu xc342km x178xt8z x13fuv20 xhjagg4" }),
173
- strong: ({ children: e }) => /* @__PURE__ */ c("strong", {
203
+ hr: () => /* @__PURE__ */ f("hr", { className: "xhff0hu xc342km x178xt8z x13fuv20 xhjagg4" }),
204
+ strong: ({ children: e }) => /* @__PURE__ */ f("strong", {
174
205
  className: "x1b5ytql",
175
206
  children: e
176
207
  }),
177
- em: ({ children: e }) => /* @__PURE__ */ c("em", {
208
+ em: ({ children: e }) => /* @__PURE__ */ f("em", {
178
209
  className: "x1k4tb9n",
179
210
  children: e
180
211
  }),
181
- del: ({ children: e }) => /* @__PURE__ */ c("del", {
212
+ del: ({ children: e }) => /* @__PURE__ */ f("del", {
182
213
  className: "x5lhwog",
183
214
  children: e
184
215
  })
185
- }, T = /* @__PURE__ */ "p.h1.h2.h3.h4.h5.h6.ul.ol.li.blockquote.pre.code.a.img.table.thead.tbody.tr.th.td.input.hr.strong.em.del.br.sup.sub.section".split(".");
186
- function E({ children: e, isStreaming: t = !1, label: n, headingLevel: r = 1, tone: a = "default", weight: o = "regular" }) {
187
- let s = {
188
- h1: (e) => /* @__PURE__ */ c(C, {
189
- ...e,
190
- level: 1,
191
- headingLevel: r
192
- }),
193
- h2: (e) => /* @__PURE__ */ c(C, {
194
- ...e,
195
- level: 2,
196
- headingLevel: r
197
- }),
198
- h3: (e) => /* @__PURE__ */ c(C, {
199
- ...e,
200
- level: 3,
201
- headingLevel: r
202
- }),
203
- h4: (e) => /* @__PURE__ */ c(C, {
204
- ...e,
205
- level: 4,
206
- headingLevel: r
207
- }),
208
- h5: (e) => /* @__PURE__ */ c(C, {
209
- ...e,
210
- level: 5,
211
- headingLevel: r
212
- }),
213
- h6: (e) => /* @__PURE__ */ c(C, {
214
- ...e,
215
- level: 6,
216
- headingLevel: r
216
+ }, j = /* @__PURE__ */ "p.span.h1.h2.h3.h4.h5.h6.ul.ol.li.blockquote.pre.code.a.img.table.thead.tbody.tr.th.td.input.hr.strong.em.del.br.sup.sub.section".split("."), M = l(({ children: t, isStreaming: n = !1, label: r, headingLevel: i = 1, tone: o = "default", weight: s = "regular" }) => {
217
+ let { ref: c, isActive: l } = e(n);
218
+ return /* @__PURE__ */ f(w, {
219
+ value: i,
220
+ children: /* @__PURE__ */ f("div", {
221
+ ref: c,
222
+ children: /* @__PURE__ */ f(h, {
223
+ ...b,
224
+ ...a.props(x.root, S[o], C[s]),
225
+ "aria-label": r,
226
+ components: A,
227
+ mode: n ? "streaming" : "static",
228
+ isAnimating: n,
229
+ animated: l ? T : !1,
230
+ controls: !1,
231
+ linkSafety: { enabled: !1 },
232
+ allowedElements: j,
233
+ children: t
234
+ })
217
235
  })
218
- };
219
- return /* @__PURE__ */ c(d, {
220
- ...g,
221
- ...i.props(_.root, v[a], y[o]),
222
- "aria-label": n,
223
- components: {
224
- ...w,
225
- ...s
226
- },
227
- mode: t ? "streaming" : "static",
228
- isAnimating: t,
229
- animated: !1,
230
- controls: !1,
231
- linkSafety: { enabled: !1 },
232
- allowedElements: T,
233
- children: e
234
- }, r);
235
- }
236
+ });
237
+ });
236
238
  // packages/content/src/markdown/markdown-preview.tsx
237
- function D({ children: e }) {
238
- return /* @__PURE__ */ l(s, { children: [e, " "] });
239
+ function N({ children: e }) {
240
+ return /* @__PURE__ */ p(d, { children: [e, " "] });
239
241
  }
240
- var O = {
241
- p: D,
242
- li: D,
243
- h1: D,
244
- h2: D,
245
- h3: D,
246
- h4: D,
247
- h5: D,
248
- h6: D,
249
- blockquote: D,
250
- pre: D,
251
- code: ({ children: e }) => /* @__PURE__ */ c(s, { children: e }),
252
- th: D,
253
- td: D,
254
- br: () => /* @__PURE__ */ c(s, { children: " " }),
255
- img: ({ alt: e }) => /* @__PURE__ */ c(s, { children: e })
242
+ var P = {
243
+ p: N,
244
+ li: N,
245
+ h1: N,
246
+ h2: N,
247
+ h3: N,
248
+ h4: N,
249
+ h5: N,
250
+ h6: N,
251
+ blockquote: N,
252
+ pre: N,
253
+ code: ({ children: e }) => /* @__PURE__ */ f(d, { children: e }),
254
+ th: N,
255
+ td: N,
256
+ br: () => /* @__PURE__ */ f(d, { children: " " }),
257
+ img: ({ alt: e }) => /* @__PURE__ */ f(d, { children: e })
256
258
  };
257
- function k({ children: e }) {
258
- return /* @__PURE__ */ c(u, {
259
- ...g,
259
+ function F({ children: e }) {
260
+ return /* @__PURE__ */ f(m, {
261
+ ...b,
260
262
  content: e,
261
- components: O,
262
- allowedElements: Object.keys(O),
263
+ components: P,
264
+ allowedElements: Object.keys(P),
263
265
  unwrapDisallowed: !0,
264
266
  shouldParseIncompleteMarkdown: !1,
265
267
  shouldNormalizeHtmlIndentation: !1,
@@ -267,4 +269,4 @@ function k({ children: e }) {
267
269
  index: 0
268
270
  });
269
271
  }
270
- export { E as Markdown, k as MarkdownPreview };
272
+ export { M as Markdown, F as MarkdownPreview };
@@ -27,7 +27,7 @@ function d(l) {
27
27
  let e = !0;
28
28
  async function t() {
29
29
  try {
30
- let t = await import("../pierre-tree-BaIVTNmG.js");
30
+ let t = await import("../pierre-tree-BQBbAhmI.js");
31
31
  e && f({
32
32
  Component: t.PierreTree,
33
33
  hasFailed: !1
package/dist/elements.css CHANGED
@@ -652,6 +652,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
652
652
  align-items: center;
653
653
  }
654
654
 
655
+ .xuk3077 {
656
+ align-items: flex-end;
657
+ }
658
+
655
659
  .x1cy8zhl {
656
660
  align-items: flex-start;
657
661
  }
@@ -664,6 +668,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
664
668
  align-items: stretch;
665
669
  }
666
670
 
671
+ .xegkacw {
672
+ animation-duration: .9s;
673
+ }
674
+
667
675
  .x18usnwx {
668
676
  animation-duration: .12s;
669
677
  }
@@ -676,10 +684,30 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
676
684
  animation-duration: var(--elements-toast-duration, var(--xjjzqp4)) !important;
677
685
  }
678
686
 
687
+ .xuij49y {
688
+ animation-iteration-count: 2;
689
+ }
690
+
679
691
  .xqcmdr3 {
680
692
  animation-name: x18re5ia-B;
681
693
  }
682
694
 
695
+ .xil9x82 {
696
+ animation-name: xldo6cm-B;
697
+ }
698
+
699
+ .xorstpt {
700
+ animation-play-state: paused;
701
+ }
702
+
703
+ .xoj058f {
704
+ animation-play-state: running;
705
+ }
706
+
707
+ .x4hg4is {
708
+ animation-timing-function: ease-in-out;
709
+ }
710
+
683
711
  .x1c3o69q {
684
712
  animation-timing-function: var(--x5xz5r2);
685
713
  }
@@ -688,6 +716,11 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
688
716
  aspect-ratio: 16 / 9;
689
717
  }
690
718
 
719
+ .x1ta4xzc {
720
+ -webkit-background-clip: text;
721
+ background-clip: text;
722
+ }
723
+
691
724
  .xjbqb8w {
692
725
  background-color: #0000;
693
726
  }
@@ -736,10 +769,18 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
736
769
  background-color: var(--xpslqxl);
737
770
  }
738
771
 
772
+ .xslotfi {
773
+ background-image: linear-gradient(100deg,var(--x24btp3) 30%,var(--x169lqhw) 50%,var(--x24btp3) 70%);
774
+ }
775
+
739
776
  .x1e87kdn {
740
777
  background-image: var(--x-backgroundImage);
741
778
  }
742
779
 
780
+ .x19hqrfe {
781
+ background-size: 250% 100%;
782
+ }
783
+
743
784
  .xpu655y {
744
785
  border-block-color: var(--xe11pje);
745
786
  }
@@ -817,6 +858,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
817
858
  color: inherit;
818
859
  }
819
860
 
861
+ .x19co3pv {
862
+ color: #0000;
863
+ }
864
+
820
865
  .x14rh7hd {
821
866
  color: var(--x-color);
822
867
  }
@@ -1085,6 +1130,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
1085
1130
  flex-direction: column;
1086
1131
  }
1087
1132
 
1133
+ .x1q0g3np {
1134
+ flex-direction: row;
1135
+ }
1136
+
1088
1137
  .x1iyjqo2 {
1089
1138
  flex-grow: 1;
1090
1139
  }
@@ -2311,6 +2360,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2311
2360
  margin-top: var(--xxhyxt);
2312
2361
  }
2313
2362
 
2363
+ .xp8lc2p {
2364
+ max-height: 16lh;
2365
+ }
2366
+
2314
2367
  .x1y3glee {
2315
2368
  max-height: 30dvh;
2316
2369
  }
@@ -2387,6 +2440,10 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2387
2440
  max-width: 80ch;
2388
2441
  }
2389
2442
 
2443
+ .x17na0u1 {
2444
+ max-width: 85%;
2445
+ }
2446
+
2390
2447
  .x1tv4vx4 {
2391
2448
  max-width: calc(100% - var(--x153fiic));
2392
2449
  }
@@ -2865,6 +2922,14 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
2865
2922
  .x1qme5af.x1qme5af {
2866
2923
  animation-name: none;
2867
2924
  }
2925
+
2926
+ .x1wel5d5.x1wel5d5 {
2927
+ animation-play-state: paused;
2928
+ }
2929
+
2930
+ .xe80r02.xe80r02 {
2931
+ color: var(--x24btp3);
2932
+ }
2868
2933
  }
2869
2934
 
2870
2935
  @media (width <= 800px) {
@@ -3509,6 +3574,16 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3509
3574
  inherits: false
3510
3575
  }
3511
3576
 
3577
+ @keyframes xldo6cm-B {
3578
+ from {
3579
+ background-position: 200% 0;
3580
+ }
3581
+
3582
+ to {
3583
+ background-position: -100% 0;
3584
+ }
3585
+ }
3586
+
3512
3587
  @keyframes x18re5ia-B {
3513
3588
  from {
3514
3589
  opacity: 0;
@@ -3518,3 +3593,13 @@ html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--to
3518
3593
  opacity: 1;
3519
3594
  }
3520
3595
  }
3596
+
3597
+ @keyframes xb11x9y-B {
3598
+ from {
3599
+ opacity: .4;
3600
+ }
3601
+
3602
+ to {
3603
+ opacity: 1;
3604
+ }
3605
+ }
package/dist/forms.js CHANGED
@@ -1 +1 @@
1
- export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-R0kgHFPZ.js";
1
+ export { _ as AgentAvatarPicker, r as Checkbox, v as Combobox, c as Field, f as Fieldset, p as FilePicker, d as FormActions, l as Input, m as InputGroup, h as NumberField, i as RadioGroup, s as Select, n as SettingsRow, t as SettingsSection, g as Slider, a as Switch, u as Textarea, o as ToggleGroup } from "./src-Dven_9lR.js";
@@ -1,4 +1,4 @@
1
- import { l as e } from "../src-R0kgHFPZ.js";
1
+ import { l as e } from "../src-Dven_9lR.js";
2
2
  import { s as t } from "../src-d7EAi61b.js";
3
3
  import { n } from "../navigation-D2_sGy3C.js";
4
4
  import "@stylexjs/stylex";
@@ -10,5 +10,7 @@ export type { MessageBoundaryProps } from './message-boundary.tsx';
10
10
  export { MessageBoundary } from './message-boundary.tsx';
11
11
  export type { PromptInputProps, PromptInputPlaceholderProps } from './prompt-input.tsx';
12
12
  export { PromptInput, PromptInputPlaceholder } from './prompt-input.tsx';
13
+ export { ReplyIndicator } from './reply-indicator.tsx';
14
+ export type { ReplyIndicatorProps } from './reply-indicator.tsx';
13
15
  export type { Source, SourcesProps, InlineCitationProps } from './sources.tsx';
14
16
  export { Sources, InlineCitation } from './sources.tsx';
@@ -9,6 +9,7 @@ export type MessageProps = {
9
9
  readonly avatar?: ReactNode;
10
10
  readonly actions?: ReactNode;
11
11
  readonly attachments?: ReactNode;
12
+ readonly variant?: 'default' | 'chat';
12
13
  };
13
14
  export type MessageAttachmentProps = {
14
15
  readonly name: string;
@@ -16,5 +17,5 @@ export type MessageAttachmentProps = {
16
17
  readonly href?: string;
17
18
  readonly actions?: ReactNode;
18
19
  };
19
- export declare function Message({ author, children, id, kind, meta, avatar, actions, attachments, }: MessageProps): ReactNode;
20
+ export declare function Message({ author, children, id, kind, meta, avatar, actions, attachments, variant, }: MessageProps): ReactNode;
20
21
  export declare function MessageAttachment({ name, description, href, actions }: MessageAttachmentProps): ReactNode;
@@ -0,0 +1,6 @@
1
+ export type ReplyIndicatorProps = {
2
+ readonly label: string;
3
+ readonly delayMs?: number;
4
+ readonly isAnimated?: boolean;
5
+ };
6
+ export declare function ReplyIndicator({ label, delayMs, isAnimated }: ReplyIndicatorProps): import("react").JSX.Element;
@@ -8,5 +8,5 @@ export type MarkdownProps = {
8
8
  readonly tone?: 'default' | 'muted';
9
9
  readonly weight?: 'regular' | 'strong';
10
10
  };
11
- export declare function Markdown({ children, isStreaming, label, headingLevel, tone, weight, }: MarkdownProps): ReactNode;
11
+ export declare const Markdown: import("react").MemoExoticComponent<({ children, isStreaming, label, headingLevel, tone, weight, }: MarkdownProps) => ReactNode>;
12
12
  export {};
@@ -29,6 +29,12 @@ export declare const fieldStyles: Readonly<{
29
29
  readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 80>;
30
30
  readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "30dvh">;
31
31
  }>;
32
+ readonly growingTextarea: Readonly<{
33
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", 0>;
34
+ readonly maxHeight: stylex.StyleXClassNameFor<"maxHeight", "16lh">;
35
+ readonly fieldSizing: stylex.StyleXClassNameFor<"fieldSizing", "content">;
36
+ readonly resize: stylex.StyleXClassNameFor<"resize", "none">;
37
+ }>;
32
38
  }>;
33
39
  export type TextareaAppearance = 'field' | 'plain';
34
40
  export declare const textareaAppearanceStyles: Readonly<Record<TextareaAppearance, stylex.StyleXStyles>>;
@@ -18,6 +18,7 @@ type NativeTextareaProps = ComponentProps<'textarea'>;
18
18
  type TextareaProps = Omit<NativeTextareaProps, 'value' | 'defaultValue' | 'onChange' | 'readOnly'> & TextValueProperties<NonNullable<NativeTextareaProps['value']>, NonNullable<NativeTextareaProps['onChange']>, NonNullable<BaseInputProps['onValueChange']>> & {
19
19
  readonly xstyle?: PlacementStyle;
20
20
  readonly isCompact?: boolean;
21
+ readonly shouldGrow?: boolean;
21
22
  readonly appearance?: TextareaAppearance;
22
23
  };
23
24
  declare function FieldRoot({ className, style, xstyle, ...props }: FieldRootProps): ReactNode;
@@ -31,5 +32,5 @@ export declare const Field: {
31
32
  Error: typeof FieldError;
32
33
  };
33
34
  export declare function Input({ className, style, xstyle, ...props }: InputProps): ReactNode;
34
- export declare function Textarea({ isCompact, appearance, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
35
+ export declare function Textarea({ isCompact, shouldGrow, appearance, value, defaultValue, onValueChange, name, disabled, readOnly, required, className, style, xstyle, ...props }: TextareaProps): ReactNode;
35
36
  export {};
@@ -0,0 +1,4 @@
1
+ export declare function useVisibleMotion(isEnabled: boolean): {
2
+ ref: import("react").RefObject<HTMLDivElement | null>;
3
+ isActive: boolean;
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { c as e } from "./src-BXh4g2VY.js";
2
- import { l as t } from "./src-R0kgHFPZ.js";
2
+ import { l as t } from "./src-Dven_9lR.js";
3
3
  import { t as n } from "./constants.stylex-bbdiv1fD.js";
4
4
  import { r } from "./pierre-theme-BUeJim8s.js";
5
5
  import * as i from "@stylexjs/stylex";