@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.
- package/dist/ai.js +208 -166
- package/dist/charts/cartesian.js +1 -1
- package/dist/collections.js +1 -1
- package/dist/content/markdown.js +134 -132
- package/dist/content/tree.js +1 -1
- package/dist/elements.css +85 -0
- package/dist/forms.js +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/ai/src/index.d.ts +2 -0
- package/dist/packages/ai/src/message.d.ts +2 -1
- package/dist/packages/ai/src/reply-indicator.d.ts +6 -0
- package/dist/packages/content/src/markdown/markdown.d.ts +1 -1
- package/dist/packages/forms/src/field-styles.d.ts +6 -0
- package/dist/packages/forms/src/forms.d.ts +2 -1
- package/dist/packages/foundations/src/visible-motion.d.ts +4 -0
- package/dist/{pierre-tree-BaIVTNmG.js → pierre-tree-BQBbAhmI.js} +1 -1
- package/dist/{src-R0kgHFPZ.js → src-Dven_9lR.js} +19 -12
- package/dist/visible-motion-1GcUaEi4.js +23 -0
- package/package.json +1 -1
package/dist/content/markdown.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { t as e } from "../
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "../
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
10
|
-
rehypePlugins: Object.entries(
|
|
11
|
-
remarkPlugins: Object.values(
|
|
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,
|
|
14
|
-
if (
|
|
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
|
-
},
|
|
73
|
+
}, S = {
|
|
73
74
|
default: null,
|
|
74
|
-
muted:
|
|
75
|
-
},
|
|
75
|
+
muted: x.muted
|
|
76
|
+
}, C = {
|
|
76
77
|
regular: null,
|
|
77
|
-
strong:
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
83
|
-
let r =
|
|
84
|
-
return s.every(
|
|
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__ */
|
|
93
|
+
children: /* @__PURE__ */ f(t, {
|
|
87
94
|
code: s.join(""),
|
|
88
|
-
language:
|
|
95
|
+
language: a,
|
|
89
96
|
isStreaming: r
|
|
90
97
|
})
|
|
91
|
-
}) : /* @__PURE__ */
|
|
98
|
+
}) : /* @__PURE__ */ f("code", {
|
|
92
99
|
className: "xiard35 xy8obcc x1r7kqkb x1ok0vyi x10dazmo x14w6jbu x17etxam",
|
|
93
|
-
children:
|
|
100
|
+
children: e
|
|
94
101
|
});
|
|
95
102
|
}
|
|
96
|
-
function
|
|
97
|
-
let
|
|
98
|
-
return
|
|
99
|
-
id:
|
|
100
|
-
...
|
|
101
|
-
},
|
|
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
|
|
104
|
-
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
148
|
+
li: ({ children: e }) => /* @__PURE__ */ f("li", {
|
|
118
149
|
className: "x1vblts3 xnkn1qj",
|
|
119
150
|
children: e
|
|
120
151
|
}),
|
|
121
|
-
blockquote: ({ children: e }) => /* @__PURE__ */
|
|
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__ */
|
|
156
|
+
code: ({ children: e, className: t }) => /* @__PURE__ */ f(O, {
|
|
126
157
|
className: t,
|
|
127
158
|
children: e
|
|
128
159
|
}),
|
|
129
|
-
inlineCode: ({ children: e }) => /* @__PURE__ */
|
|
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:
|
|
164
|
+
a: ({ href: e, children: t, title: n }) => /* @__PURE__ */ f(r, {
|
|
134
165
|
href: e,
|
|
135
|
-
title:
|
|
166
|
+
title: n,
|
|
136
167
|
children: t
|
|
137
168
|
}),
|
|
138
|
-
img: ({ src: e, alt: t, title:
|
|
169
|
+
img: ({ src: e, alt: t, title: n }) => /* @__PURE__ */ f(r, {
|
|
139
170
|
href: typeof e == "string" ? e : void 0,
|
|
140
|
-
title:
|
|
171
|
+
title: n,
|
|
141
172
|
children: t !== void 0 && t.length > 0 ? `Open image: ${t}` : "Open image"
|
|
142
173
|
}),
|
|
143
|
-
table: ({ children: e }) => /* @__PURE__ */
|
|
174
|
+
table: ({ children: e }) => /* @__PURE__ */ f("div", {
|
|
144
175
|
role: "region",
|
|
145
176
|
"aria-label": "Markdown table",
|
|
146
177
|
tabIndex: 0,
|
|
147
|
-
...
|
|
148
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
154
|
-
tbody: ({ children: e }) => /* @__PURE__ */
|
|
155
|
-
tr: ({ children: e }) => /* @__PURE__ */
|
|
156
|
-
th: ({ children: e }) => /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
173
|
-
strong: ({ children: e }) => /* @__PURE__ */
|
|
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__ */
|
|
208
|
+
em: ({ children: e }) => /* @__PURE__ */ f("em", {
|
|
178
209
|
className: "x1k4tb9n",
|
|
179
210
|
children: e
|
|
180
211
|
}),
|
|
181
|
-
del: ({ children: e }) => /* @__PURE__ */
|
|
212
|
+
del: ({ children: e }) => /* @__PURE__ */ f("del", {
|
|
182
213
|
className: "x5lhwog",
|
|
183
214
|
children: e
|
|
184
215
|
})
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
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
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
+
function N({ children: e }) {
|
|
240
|
+
return /* @__PURE__ */ p(d, { children: [e, " "] });
|
|
239
241
|
}
|
|
240
|
-
var
|
|
241
|
-
p:
|
|
242
|
-
li:
|
|
243
|
-
h1:
|
|
244
|
-
h2:
|
|
245
|
-
h3:
|
|
246
|
-
h4:
|
|
247
|
-
h5:
|
|
248
|
-
h6:
|
|
249
|
-
blockquote:
|
|
250
|
-
pre:
|
|
251
|
-
code: ({ children: e }) => /* @__PURE__ */
|
|
252
|
-
th:
|
|
253
|
-
td:
|
|
254
|
-
br: () => /* @__PURE__ */
|
|
255
|
-
img: ({ alt: e }) => /* @__PURE__ */
|
|
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
|
|
258
|
-
return /* @__PURE__ */
|
|
259
|
-
...
|
|
259
|
+
function F({ children: e }) {
|
|
260
|
+
return /* @__PURE__ */ f(m, {
|
|
261
|
+
...b,
|
|
260
262
|
content: e,
|
|
261
|
-
components:
|
|
262
|
-
allowedElements: Object.keys(
|
|
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 {
|
|
272
|
+
export { M as Markdown, F as MarkdownPreview };
|
package/dist/content/tree.js
CHANGED
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-
|
|
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";
|
|
@@ -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;
|
|
@@ -8,5 +8,5 @@ export type MarkdownProps = {
|
|
|
8
8
|
readonly tone?: 'default' | 'muted';
|
|
9
9
|
readonly weight?: 'regular' | 'strong';
|
|
10
10
|
};
|
|
11
|
-
export declare
|
|
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 {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e } from "./src-BXh4g2VY.js";
|
|
2
|
-
import { l as t } from "./src-
|
|
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";
|