@mechane-ai/elements 0.10.0 → 0.11.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 +56 -40
- package/dist/{categorical-values-DLRE4EEW.js → categorical-values-FYc43JCa.js} +2 -2
- package/dist/{chart-frame-et6f6Vhg.js → chart-frame-Bczk5sWj.js} +1 -1
- package/dist/{chart-input-CdLkFomi.js → chart-input-CbzVN76m.js} +2 -2
- package/dist/charts/cartesian.js +6 -6
- package/dist/charts/distribution.js +2 -2
- package/dist/charts/graph.js +2 -2
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/timeline.js +15 -14
- package/dist/charts.js +1 -1
- package/dist/{code-block-D77maJBB.js → code-block-B7xzM3tD.js} +1 -1
- package/dist/collections.js +71 -38
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +2 -2
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-BpSZeTNK.js → content-link-CatGOrbo.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +120 -50
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/navigation/commands.js +1 -1
- package/dist/packages/ai/src/conversation.d.ts +14 -2
- package/dist/packages/ai/src/index.d.ts +1 -1
- package/dist/packages/charts/src/timeline/waterfall.d.ts +3 -2
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/inspector.d.ts +6 -3
- package/dist/packages/core/src/agent-avatar-glyphs.d.ts +1 -1
- package/dist/{pierre-tree-BFxEuxwb.js → pierre-tree-D47uA7lb.js} +2 -2
- package/dist/{src-Be7NLG8c.js → src-C_heP5kL.js} +82 -60
- package/dist/{src-sU9b0oZW.js → src-D05isEh_.js} +739 -255
- package/dist/{src-CBspCKfO.js → src-DXsGTJgv.js} +1 -1
- package/dist/tokens.js +24 -24
- package/package.json +1 -1
- package/packages/foundations/src/tokens.stylex.ts +48 -48
package/dist/ai.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as e, E as t, T as n, f as r, g as i, p as a, t as o, w as s } from "./src-
|
|
2
|
-
import { t as c } from "./content-link-
|
|
1
|
+
import { C as e, E as t, T as n, f as r, g as i, p as a, t as o, w as s } from "./src-D05isEh_.js";
|
|
2
|
+
import { t as c } from "./content-link-CatGOrbo.js";
|
|
3
3
|
import { r as l, t as u } from "./src-Cs0dRc4X.js";
|
|
4
|
-
import { c as d, u as f } from "./src-
|
|
4
|
+
import { c as d, u as f } from "./src-C_heP5kL.js";
|
|
5
5
|
import { t as p } from "./accessibility-C-aIZ1Yx.js";
|
|
6
6
|
import * as m from "@stylexjs/stylex";
|
|
7
7
|
import { createContext as h, useContext as g, useId as _, useRef as v } from "react";
|
|
@@ -43,10 +43,10 @@ function k(t) {
|
|
|
43
43
|
}
|
|
44
44
|
// packages/ai/src/conversation.tsx
|
|
45
45
|
var A = h(void 0);
|
|
46
|
-
function j({ children: e, initialPosition: t = "end", follow: n = !0 }) {
|
|
47
|
-
let
|
|
46
|
+
function j({ children: e, initialPosition: t = "end", follow: n = !0, viewportRef: r }) {
|
|
47
|
+
let i = v(null), a = r ?? i;
|
|
48
48
|
return /* @__PURE__ */ y(A.Provider, {
|
|
49
|
-
value:
|
|
49
|
+
value: a,
|
|
50
50
|
children: /* @__PURE__ */ y(E.Provider, {
|
|
51
51
|
autoScroll: n,
|
|
52
52
|
defaultScrollPosition: t,
|
|
@@ -83,28 +83,44 @@ function P({ messageId: e, children: t }) {
|
|
|
83
83
|
children: t
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
function F({
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
function F({ children: e }) {
|
|
87
|
+
return /* @__PURE__ */ y("div", {
|
|
88
|
+
className: "x9f619 x2lah0s xeuugli xh8yej3 xe10afn xvueqy4 xn9t2bk x1m92p3w",
|
|
89
|
+
children: e
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function I({ label: e = "Jump to latest" }) {
|
|
93
|
+
let { end: t } = O();
|
|
94
|
+
return t ? /* @__PURE__ */ y("div", {
|
|
89
95
|
className: "x10l6tqk xwthv0x x1nrll8i xuuh30 x1tv4vx4 xeuugli",
|
|
90
|
-
children: /* @__PURE__ */
|
|
91
|
-
onClick: () => {
|
|
92
|
-
n({ behavior: "instant" }), i?.current?.focus({ preventScroll: !0 });
|
|
93
|
-
},
|
|
94
|
-
children: [/* @__PURE__ */ y(x, {
|
|
95
|
-
size: 16,
|
|
96
|
-
"aria-hidden": !0
|
|
97
|
-
}), t]
|
|
98
|
-
})
|
|
96
|
+
children: /* @__PURE__ */ y(L, { label: e })
|
|
99
97
|
}) : null;
|
|
100
98
|
}
|
|
101
|
-
|
|
99
|
+
function L({ label: t, onActivate: n }) {
|
|
100
|
+
let { scrollToEnd: r } = D(), i = g(A);
|
|
101
|
+
return /* @__PURE__ */ b(e, {
|
|
102
|
+
size: "sm",
|
|
103
|
+
onClick: () => {
|
|
104
|
+
n?.(), requestAnimationFrame(() => {
|
|
105
|
+
let e = i?.current;
|
|
106
|
+
e != null && (r({ behavior: "instant" }), e.focus({ preventScroll: !0 }));
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
children: [/* @__PURE__ */ y(x, {
|
|
110
|
+
size: 14,
|
|
111
|
+
"aria-hidden": !0
|
|
112
|
+
}), t]
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
var R = {
|
|
102
116
|
Root: j,
|
|
103
117
|
Viewport: M,
|
|
104
118
|
Content: N,
|
|
105
119
|
Item: P,
|
|
106
|
-
|
|
107
|
-
|
|
120
|
+
Controls: F,
|
|
121
|
+
LatestButton: L,
|
|
122
|
+
JumpToLatest: I
|
|
123
|
+
}, z = {
|
|
108
124
|
root: {
|
|
109
125
|
k1xSpc: "x78zum5",
|
|
110
126
|
kXwgrk: "xdt5ytf",
|
|
@@ -130,19 +146,19 @@ var I = {
|
|
|
130
146
|
k8WAf4: "xn9t2bk",
|
|
131
147
|
$$css: !0
|
|
132
148
|
}
|
|
133
|
-
},
|
|
134
|
-
user:
|
|
135
|
-
assistant:
|
|
136
|
-
system:
|
|
137
|
-
},
|
|
149
|
+
}, B = {
|
|
150
|
+
user: z.user,
|
|
151
|
+
assistant: z.assistant,
|
|
152
|
+
system: z.system
|
|
153
|
+
}, V = {
|
|
138
154
|
"x-default-marker": "x-default-marker",
|
|
139
155
|
$$css: !0
|
|
140
156
|
};
|
|
141
|
-
function
|
|
157
|
+
function H({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avatar: a, actions: o, attachments: s }) {
|
|
142
158
|
return /* @__PURE__ */ b("article", {
|
|
143
159
|
id: n,
|
|
144
160
|
"aria-label": e,
|
|
145
|
-
...m.props(
|
|
161
|
+
...m.props(z.root, B[r], V),
|
|
146
162
|
children: [
|
|
147
163
|
/* @__PURE__ */ b("header", {
|
|
148
164
|
className: "x78zum5 x6s0dn4 x1hnptsi x1a02dak xeuugli",
|
|
@@ -176,7 +192,7 @@ function B({ author: e, children: t, id: n, kind: r = "assistant", meta: i, avat
|
|
|
176
192
|
]
|
|
177
193
|
});
|
|
178
194
|
}
|
|
179
|
-
function
|
|
195
|
+
function U({ name: e, description: t, href: n, actions: r }) {
|
|
180
196
|
return /* @__PURE__ */ b("div", {
|
|
181
197
|
className: "x78zum5 x1a02dak x6s0dn4 x1n8ia3y xeuugli x193iq5w x1mvvolr xmkeg23 x1y0btm7 x1ey3b81 x1ok0vyi xpvm0e4 x1hz01jw xtqrqnz x1778rvt xj57cvi",
|
|
182
198
|
children: [
|
|
@@ -203,7 +219,7 @@ function V({ name: e, description: t, href: n, actions: r }) {
|
|
|
203
219
|
});
|
|
204
220
|
}
|
|
205
221
|
// packages/ai/src/message-action.tsx
|
|
206
|
-
function
|
|
222
|
+
function W(e) {
|
|
207
223
|
if (e.kind === "link") {
|
|
208
224
|
let { kind: t, label: r, ...i } = e;
|
|
209
225
|
return /* @__PURE__ */ y(n, {
|
|
@@ -218,11 +234,11 @@ function H(e) {
|
|
|
218
234
|
"aria-label": r
|
|
219
235
|
});
|
|
220
236
|
}
|
|
221
|
-
function
|
|
222
|
-
return /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render:
|
|
237
|
+
function G(e) {
|
|
238
|
+
return /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render: W(e) }), /* @__PURE__ */ y(u.Portal, { children: /* @__PURE__ */ y(u.Positioner, { children: /* @__PURE__ */ y(u.Popup, { children: e.label }) }) })] });
|
|
223
239
|
}
|
|
224
240
|
// packages/ai/src/message-boundary.tsx
|
|
225
|
-
function
|
|
241
|
+
function K({ label: e, children: t }) {
|
|
226
242
|
return /* @__PURE__ */ b(i.Root, {
|
|
227
243
|
className: "xeuugli x1kbiq1m xykt701 xpu655y",
|
|
228
244
|
children: [/* @__PURE__ */ b(i.Trigger, {
|
|
@@ -242,11 +258,11 @@ function W({ label: e, children: t }) {
|
|
|
242
258
|
});
|
|
243
259
|
}
|
|
244
260
|
// packages/ai/src/prompt-input.tsx
|
|
245
|
-
var
|
|
261
|
+
var q = { action: {
|
|
246
262
|
keTefX: "xvc5jky",
|
|
247
263
|
$$css: !0
|
|
248
264
|
} };
|
|
249
|
-
function
|
|
265
|
+
function J({ label: e, value: t, onValueChange: n, onSubmit: r, name: i = "prompt", placeholder: a, maxLength: o, required: c = !0, pending: l = !1, disabled: h = !1, submitDisabled: g = !1, submitLabel: v = "Send message", pendingLabel: x = "Sending…", enterBehavior: C = "newline", compact: w = !1, description: E, error: D, controls: O, attachments: k, onStop: A, stopPending: j = !1, stopLabel: M = "Stop response" }) {
|
|
250
266
|
let N = _(), P = h || l, F = v;
|
|
251
267
|
A === void 0 ? l ? F = x : C === "submit" && (F = `${v} · Enter`) : F = j ? "Stopping…" : M;
|
|
252
268
|
function I(e) {
|
|
@@ -295,7 +311,7 @@ function K({ label: e, value: t, onValueChange: n, onSubmit: r, name: i = "promp
|
|
|
295
311
|
className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli x12lumcd",
|
|
296
312
|
children: O
|
|
297
313
|
}), /* @__PURE__ */ b(u.Root, { children: [/* @__PURE__ */ y(u.Trigger, { render: A === void 0 ? /* @__PURE__ */ y(s, {
|
|
298
|
-
xstyle:
|
|
314
|
+
xstyle: q.action,
|
|
299
315
|
type: "submit",
|
|
300
316
|
variant: "solid",
|
|
301
317
|
"aria-label": l ? x : v,
|
|
@@ -306,7 +322,7 @@ function K({ label: e, value: t, onValueChange: n, onSubmit: r, name: i = "promp
|
|
|
306
322
|
"aria-hidden": !0
|
|
307
323
|
})
|
|
308
324
|
}) : /* @__PURE__ */ y(s, {
|
|
309
|
-
xstyle:
|
|
325
|
+
xstyle: q.action,
|
|
310
326
|
type: "button",
|
|
311
327
|
"aria-label": j ? "Stopping…" : M,
|
|
312
328
|
onClick: (e) => {
|
|
@@ -334,7 +350,7 @@ function K({ label: e, value: t, onValueChange: n, onSubmit: r, name: i = "promp
|
|
|
334
350
|
});
|
|
335
351
|
}
|
|
336
352
|
// packages/ai/src/sources.tsx
|
|
337
|
-
function
|
|
353
|
+
function Y({ sources: e, label: t = "Sources" }) {
|
|
338
354
|
return /* @__PURE__ */ b("section", {
|
|
339
355
|
"aria-label": t,
|
|
340
356
|
className: "x78zum5 xdt5ytf x1hnptsi xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
@@ -363,7 +379,7 @@ function q({ sources: e, label: t = "Sources" }) {
|
|
|
363
379
|
]
|
|
364
380
|
});
|
|
365
381
|
}
|
|
366
|
-
function
|
|
382
|
+
function X({ source: e, label: n }) {
|
|
367
383
|
return /* @__PURE__ */ y("span", {
|
|
368
384
|
className: "xt0psk2 x11njtxf xss6m8b",
|
|
369
385
|
children: /* @__PURE__ */ b(l.Root, { children: [/* @__PURE__ */ y(l.Trigger, {
|
|
@@ -386,4 +402,4 @@ function J({ source: e, label: n }) {
|
|
|
386
402
|
}) })] })
|
|
387
403
|
});
|
|
388
404
|
}
|
|
389
|
-
export { k as Approval,
|
|
405
|
+
export { k as Approval, R as Conversation, X as InlineCitation, H as Message, G as MessageAction, U as MessageAttachment, K as MessageBoundary, J as PromptInput, Y as Sources };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, s as t } from "./chart-frame-
|
|
2
|
-
import { n } from "./chart-input-
|
|
1
|
+
import { n as e, s as t } from "./chart-frame-Bczk5sWj.js";
|
|
2
|
+
import { n } from "./chart-input-CbzVN76m.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
// packages/charts/src/categorical-values.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame-
|
|
1
|
+
import { f as e } from "./src-DXsGTJgv.js";
|
|
2
|
+
import { r as t } from "./chart-frame-Bczk5sWj.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// packages/charts/src/chart-input.tsx
|
|
5
5
|
function r(e) {
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { i as t, n, r, t as i } from "../categorical-values-
|
|
3
|
-
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-
|
|
4
|
-
import { n as f, r as p, t as m } from "../chart-input-
|
|
1
|
+
import { c as e } from "../src-DXsGTJgv.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "../categorical-values-FYc43JCa.js";
|
|
3
|
+
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "../chart-frame-Bczk5sWj.js";
|
|
4
|
+
import { n as f, r as p, t as m } from "../chart-input-CbzVN76m.js";
|
|
5
5
|
import { t as h } from "../plot-width--OgdohB5.js";
|
|
6
|
-
import { E as g } from "../src-
|
|
7
|
-
import { h as _ } from "../src-
|
|
6
|
+
import { E as g } from "../src-D05isEh_.js";
|
|
7
|
+
import { h as _ } from "../src-C_heP5kL.js";
|
|
8
8
|
import { colors as v } from "../tokens.js";
|
|
9
9
|
import * as y from "@stylexjs/stylex";
|
|
10
10
|
import { useEffect as b, useId as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-
|
|
2
|
-
import { n as a, r as o, t as s } from "../chart-input-
|
|
1
|
+
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Bczk5sWj.js";
|
|
2
|
+
import { n as a, r as o, t as s } from "../chart-input-CbzVN76m.js";
|
|
3
3
|
import { t as c } from "../plot-width--OgdohB5.js";
|
|
4
4
|
import * as l from "@stylexjs/stylex";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
package/dist/charts/graph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-
|
|
2
|
-
import { n as a, t as o } from "../chart-input-
|
|
1
|
+
import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Bczk5sWj.js";
|
|
2
|
+
import { n as a, t as o } from "../chart-input-CbzVN76m.js";
|
|
3
3
|
import * as s from "@stylexjs/stylex";
|
|
4
4
|
import { useId as c } from "react";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
package/dist/charts/hierarchy.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, r as t, t as n } from "../categorical-values-
|
|
2
|
-
import { o as r, r as i, s as a } from "../chart-frame-
|
|
3
|
-
import { t as o } from "../chart-input-
|
|
1
|
+
import { i as e, r as t, t as n } from "../categorical-values-FYc43JCa.js";
|
|
2
|
+
import { o as r, r as i, s as a } from "../chart-frame-Bczk5sWj.js";
|
|
3
|
+
import { t as o } from "../chart-input-CbzVN76m.js";
|
|
4
4
|
import { t as s } from "../plot-width--OgdohB5.js";
|
|
5
5
|
import * as c from "@stylexjs/stylex";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { colors as e } from "../tokens.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "../chart-input-
|
|
3
|
-
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-
|
|
2
|
+
import { n as t, r as n, t as r } from "../chart-input-CbzVN76m.js";
|
|
3
|
+
import { a as i, n as a, r as o, s, t as c } from "../chart-frame-Bczk5sWj.js";
|
|
4
4
|
import * as l from "@stylexjs/stylex";
|
|
5
5
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
6
|
// packages/charts/src/matrix/heatmap-scale.ts
|
package/dist/charts/timeline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as e } from "../src-
|
|
2
|
-
import { n as t, t as n } from "../chart-input-
|
|
1
|
+
import { c as e } from "../src-D05isEh_.js";
|
|
2
|
+
import { n as t, t as n } from "../chart-input-CbzVN76m.js";
|
|
3
3
|
import * as r from "@stylexjs/stylex";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { scaleLinear as o } from "@visx/scale";
|
|
@@ -34,20 +34,20 @@ var c = {
|
|
|
34
34
|
.5,
|
|
35
35
|
1
|
|
36
36
|
], d = 100;
|
|
37
|
-
function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v, emptyLabel: y, selectedId: b,
|
|
38
|
-
let
|
|
37
|
+
function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v, emptyLabel: y, selectedId: b, selectedRef: x, onSelect: S, formatOffset: C }) {
|
|
38
|
+
let w = p({
|
|
39
39
|
items: t,
|
|
40
40
|
start: s,
|
|
41
41
|
end: f
|
|
42
42
|
});
|
|
43
|
-
if (
|
|
43
|
+
if (w !== void 0) return /* @__PURE__ */ i(n, {
|
|
44
44
|
title: g,
|
|
45
|
-
message:
|
|
45
|
+
message: w
|
|
46
46
|
});
|
|
47
|
-
let
|
|
47
|
+
let T = f - s, E = o({
|
|
48
48
|
domain: [s, f],
|
|
49
|
-
range: [0,
|
|
50
|
-
}),
|
|
49
|
+
range: [0, T === 0 ? 0 : d]
|
|
50
|
+
}), D = T > 0 ? u : [0], O = t.some((e) => e.geometry.kind !== "unavailable");
|
|
51
51
|
return /* @__PURE__ */ a("div", {
|
|
52
52
|
role: "group",
|
|
53
53
|
"aria-label": g,
|
|
@@ -63,7 +63,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
63
63
|
}),
|
|
64
64
|
/* @__PURE__ */ i("div", {
|
|
65
65
|
className: "xeuugli xl4o6ss x1npkx4u x1v577k8 x1ms6mhf x1aa6nly x78zum5 x1qughib x6s0dn4 xy8obcc xas2l8k xss6m8b",
|
|
66
|
-
children:
|
|
66
|
+
children: O ? D.map((e) => /* @__PURE__ */ i("span", { children: C(T * e) }, e)) : /* @__PURE__ */ i("span", { children: "Timing unavailable" })
|
|
67
67
|
}),
|
|
68
68
|
/* @__PURE__ */ i("span", {
|
|
69
69
|
className: "xrvj5dj xfko13i xeuugli x1k3v4rp x14r0xmm x1ms6mhf xp4054r xj0a0fe xss6m8b",
|
|
@@ -86,13 +86,14 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
86
86
|
let n = h({
|
|
87
87
|
geometry: t.geometry,
|
|
88
88
|
start: s,
|
|
89
|
-
formatOffset:
|
|
89
|
+
formatOffset: C
|
|
90
90
|
});
|
|
91
91
|
return /* @__PURE__ */ a("button", {
|
|
92
|
+
ref: b === t.id ? x : void 0,
|
|
92
93
|
type: "button",
|
|
93
94
|
"aria-pressed": b === t.id,
|
|
94
95
|
"aria-label": `${t.label} · ${t.detail} · ${t.summary} · ${n}`,
|
|
95
|
-
onClick: () =>
|
|
96
|
+
onClick: () => S(t.id),
|
|
96
97
|
...{
|
|
97
98
|
0: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xzro8vx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6" },
|
|
98
99
|
1: { className: "xrvj5dj x13sfnbj x1prkh4w x6s0dn4 x1gkm1c7 x1y1mm1b xh8yej3 x9f619 x1doqdfy xn9t2bk x1wiwyrm xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xzro8vx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 x1r7kqkb x1jmj9dw" }
|
|
@@ -123,7 +124,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
123
124
|
}) : /* @__PURE__ */ a("svg", {
|
|
124
125
|
"aria-hidden": !0,
|
|
125
126
|
className: "x1lliihq xh8yej3 xmix8c7 x1rea2x4",
|
|
126
|
-
children: [
|
|
127
|
+
children: [D.map((e) => /* @__PURE__ */ i("line", {
|
|
127
128
|
x1: `${e * d}%`,
|
|
128
129
|
x2: `${e * d}%`,
|
|
129
130
|
y1: "0",
|
|
@@ -131,7 +132,7 @@ function f({ items: t, start: s, end: f, label: g, rowLabel: _, summaryLabel: v,
|
|
|
131
132
|
className: "x13hfdr1"
|
|
132
133
|
}, e)), /* @__PURE__ */ i(m, {
|
|
133
134
|
geometry: t.geometry,
|
|
134
|
-
scale:
|
|
135
|
+
scale: E
|
|
135
136
|
})]
|
|
136
137
|
})
|
|
137
138
|
}),
|
package/dist/charts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-Bczk5sWj.js";
|
package/dist/collections.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, c as t, f as n, g as r, w as i } from "./src-
|
|
2
|
-
import { r as a } from "./src-
|
|
1
|
+
import { C as e, c as t, f as n, g as r, w as i } from "./src-D05isEh_.js";
|
|
2
|
+
import { r as a } from "./src-C_heP5kL.js";
|
|
3
3
|
import { r as o, t as s } from "./src-Cs0dRc4X.js";
|
|
4
4
|
import { t as c } from "./accessibility-C-aIZ1Yx.js";
|
|
5
5
|
import { tableGeometry as l } from "./tokens.js";
|
|
@@ -345,7 +345,7 @@ function P({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
345
345
|
q + 1
|
|
346
346
|
])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
|
|
347
347
|
}
|
|
348
|
-
}),
|
|
348
|
+
}), ge = E === void 0 ? P.getRowModel().rows.map((e, t) => ({
|
|
349
349
|
row: e,
|
|
350
350
|
index: t,
|
|
351
351
|
spacerHeight: 0
|
|
@@ -356,11 +356,11 @@ function P({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
356
356
|
index: e.index,
|
|
357
357
|
spacerHeight: e.start - (n[t - 1]?.end ?? V)
|
|
358
358
|
}];
|
|
359
|
-
}),
|
|
359
|
+
}), Z = E !== void 0 && (e.length === 0 || X.range?.endIndex === e.length - 1);
|
|
360
360
|
f(() => {
|
|
361
|
-
|
|
361
|
+
Z && O?.();
|
|
362
362
|
}, [
|
|
363
|
-
|
|
363
|
+
Z,
|
|
364
364
|
O,
|
|
365
365
|
e.length
|
|
366
366
|
]), p(() => {
|
|
@@ -368,7 +368,7 @@ function P({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
368
368
|
let e = Array.from(L.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
|
|
369
369
|
e != null && (e.focus({ preventScroll: E !== void 0 }), G.current = void 0);
|
|
370
370
|
});
|
|
371
|
-
function
|
|
371
|
+
function Q(t, r) {
|
|
372
372
|
let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
|
|
373
373
|
if (i || a) return;
|
|
374
374
|
let o = de.get(t.key);
|
|
@@ -445,7 +445,7 @@ function P({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
445
445
|
e.currentTarget.contains(e.relatedTarget) || W(void 0);
|
|
446
446
|
},
|
|
447
447
|
children: [
|
|
448
|
-
|
|
448
|
+
ge.map(({ row: e, index: n, spacerHeight: r }) => /* @__PURE__ */ v(ee, { children: [r > 0 && /* @__PURE__ */ _("tr", {
|
|
449
449
|
"aria-hidden": "true",
|
|
450
450
|
children: /* @__PURE__ */ _("td", {
|
|
451
451
|
colSpan: $,
|
|
@@ -485,7 +485,7 @@ function P({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
485
485
|
row: e.original,
|
|
486
486
|
action: b,
|
|
487
487
|
active: x === e.id,
|
|
488
|
-
onKeyDown: (e) =>
|
|
488
|
+
onKeyDown: (e) => Q(e, n),
|
|
489
489
|
children: /* @__PURE__ */ _(F, {
|
|
490
490
|
fixed: T === "fixed",
|
|
491
491
|
truncate: t.truncate,
|
|
@@ -644,20 +644,53 @@ function R({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosit
|
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
// packages/collections/src/inspector.tsx
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
647
|
+
var z = 860;
|
|
648
|
+
function B({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
|
|
649
|
+
let c = m(null), l = m(null), d = m(null);
|
|
650
|
+
p(() => {
|
|
651
|
+
a !== void 0 && c.current !== null && d.current !== null && c.current.clientWidth <= z && (d.current.focus({ preventScroll: !0 }), d.current.scrollIntoView({
|
|
652
|
+
block: "start",
|
|
653
|
+
behavior: "instant"
|
|
654
|
+
}));
|
|
655
|
+
}, [a]);
|
|
656
|
+
function ee() {
|
|
657
|
+
let e = o?.current ?? l.current;
|
|
658
|
+
e?.focus({ preventScroll: !0 }), e?.scrollIntoView({
|
|
659
|
+
block: "nearest",
|
|
660
|
+
behavior: "instant"
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
return /* @__PURE__ */ _("div", {
|
|
664
|
+
...u({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
|
|
665
|
+
children: /* @__PURE__ */ v("div", {
|
|
666
|
+
ref: c,
|
|
667
|
+
className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
|
|
668
|
+
children: [/* @__PURE__ */ _("div", {
|
|
669
|
+
ref: l,
|
|
670
|
+
role: "group",
|
|
671
|
+
"aria-label": i,
|
|
672
|
+
tabIndex: -1,
|
|
673
|
+
className: "xeuugli",
|
|
674
|
+
children: t
|
|
675
|
+
}), /* @__PURE__ */ v("aside", {
|
|
676
|
+
ref: d,
|
|
677
|
+
"aria-label": r,
|
|
678
|
+
tabIndex: -1,
|
|
679
|
+
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
680
|
+
children: [/* @__PURE__ */ _("div", {
|
|
681
|
+
className: "x1s85apg x1yamub6 x1xxlxpq",
|
|
682
|
+
children: /* @__PURE__ */ v(e, {
|
|
683
|
+
size: "sm",
|
|
684
|
+
variant: "ghost",
|
|
685
|
+
onClick: ee,
|
|
686
|
+
children: ["Back to ", i.toLowerCase()]
|
|
687
|
+
})
|
|
688
|
+
}), n]
|
|
689
|
+
})]
|
|
690
|
+
})
|
|
658
691
|
});
|
|
659
692
|
}
|
|
660
|
-
function
|
|
693
|
+
function V({ items: e, ...t }) {
|
|
661
694
|
return /* @__PURE__ */ _("dl", {
|
|
662
695
|
...u({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
|
|
663
696
|
children: e.map(({ label: e, value: t }) => /* @__PURE__ */ v("div", {
|
|
@@ -673,7 +706,7 @@ function B({ items: e, ...t }) {
|
|
|
673
706
|
});
|
|
674
707
|
}
|
|
675
708
|
// packages/collections/src/list-footer.tsx
|
|
676
|
-
function
|
|
709
|
+
function H({ children: e, actions: t, ...n }) {
|
|
677
710
|
return /* @__PURE__ */ v("div", {
|
|
678
711
|
...u({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
679
712
|
children: [/* @__PURE__ */ _("div", {
|
|
@@ -686,7 +719,7 @@ function V({ children: e, actions: t, ...n }) {
|
|
|
686
719
|
});
|
|
687
720
|
}
|
|
688
721
|
// packages/collections/src/metrics.tsx
|
|
689
|
-
var
|
|
722
|
+
var U = {
|
|
690
723
|
grid: {
|
|
691
724
|
k1xSpc: "x78zum5",
|
|
692
725
|
kwnvtZ: "x1a02dak",
|
|
@@ -704,14 +737,14 @@ var H = {
|
|
|
704
737
|
kogj98: "x1ghz6dp",
|
|
705
738
|
$$css: !0
|
|
706
739
|
}
|
|
707
|
-
},
|
|
708
|
-
inline:
|
|
709
|
-
columns:
|
|
740
|
+
}, W = {
|
|
741
|
+
inline: U.grid,
|
|
742
|
+
columns: U.columns
|
|
710
743
|
};
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */ _("dl", { ...u(d.props(
|
|
744
|
+
function G({ layout: e = "inline", ...t }) {
|
|
745
|
+
return /* @__PURE__ */ _("dl", { ...u(d.props(W[e]), t) });
|
|
713
746
|
}
|
|
714
|
-
function
|
|
747
|
+
function K({ label: e, value: t, ...n }) {
|
|
715
748
|
return /* @__PURE__ */ v("div", {
|
|
716
749
|
...u({ className: "x3nfvp2 x1pha0wt x1a02dak xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
717
750
|
children: [/* @__PURE__ */ _("dt", {
|
|
@@ -724,15 +757,15 @@ function G({ label: e, value: t, ...n }) {
|
|
|
724
757
|
});
|
|
725
758
|
}
|
|
726
759
|
// packages/collections/src/table.tsx
|
|
727
|
-
var
|
|
760
|
+
var q = {
|
|
728
761
|
kzqmXN: "x11ymkkh x2ipgtl",
|
|
729
762
|
$$css: !0
|
|
730
|
-
},
|
|
763
|
+
}, J = {
|
|
731
764
|
secondary: {
|
|
732
765
|
k1xSpc: "x1n9xxwz xazwdyr",
|
|
733
766
|
$$css: !0
|
|
734
767
|
},
|
|
735
|
-
column: (e) => [
|
|
768
|
+
column: (e) => [q, { "--x-1xmrurk": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
|
|
736
769
|
th: {
|
|
737
770
|
kVAEAm: "x1n2onr6",
|
|
738
771
|
kZKoxP: "x24vdcc",
|
|
@@ -763,7 +796,7 @@ var K = {
|
|
|
763
796
|
$$css: !0
|
|
764
797
|
}
|
|
765
798
|
};
|
|
766
|
-
function
|
|
799
|
+
function Y({ headers: e, children: t, label: n, ...r }) {
|
|
767
800
|
let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
|
|
768
801
|
return /* @__PURE__ */ _("div", {
|
|
769
802
|
role: "region",
|
|
@@ -777,7 +810,7 @@ function J({ headers: e, children: t, label: n, ...r }) {
|
|
|
777
810
|
}[!!e.some((e) => typeof e != "string") | 0], r),
|
|
778
811
|
children: [/* @__PURE__ */ _("thead", { children: /* @__PURE__ */ _("tr", { children: e.map((t, n) => /* @__PURE__ */ _("th", {
|
|
779
812
|
scope: "col",
|
|
780
|
-
...d.props(
|
|
813
|
+
...d.props(J.th, typeof t != "string" && J.column(t.width), typeof t != "string" && t.secondary === !0 && J.secondary, n === e.length - 1 && J.lastHeader, n === i && J.lastPrimaryHeader),
|
|
781
814
|
children: /* @__PURE__ */ _("span", {
|
|
782
815
|
title: typeof t == "string" ? t : t.label,
|
|
783
816
|
className: "x1lliihq xb3r6kr xlyipyv",
|
|
@@ -787,7 +820,7 @@ function J({ headers: e, children: t, label: n, ...r }) {
|
|
|
787
820
|
})
|
|
788
821
|
});
|
|
789
822
|
}
|
|
790
|
-
function
|
|
823
|
+
function X({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
|
|
791
824
|
return /* @__PURE__ */ v("td", {
|
|
792
825
|
...u({
|
|
793
826
|
0: { className: "x1v2how9 x9f619 x1hmw7ec x1m92p3w xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
|
|
@@ -800,7 +833,7 @@ function Y({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
|
|
|
800
833
|
});
|
|
801
834
|
}
|
|
802
835
|
// packages/collections/src/timestamp.tsx
|
|
803
|
-
function
|
|
836
|
+
function ge({ dateTime: e, label: t, title: n }) {
|
|
804
837
|
return n === void 0 ? /* @__PURE__ */ _("time", {
|
|
805
838
|
dateTime: e,
|
|
806
839
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
@@ -865,8 +898,8 @@ function Q({ icon: e, title: t, time: n, metadata: i, children: a, details: o, d
|
|
|
865
898
|
})]
|
|
866
899
|
});
|
|
867
900
|
}
|
|
868
|
-
var
|
|
901
|
+
var $ = {
|
|
869
902
|
Root: Z,
|
|
870
903
|
Item: Q
|
|
871
904
|
};
|
|
872
|
-
export {
|
|
905
|
+
export { X as Cell, L as CollectionEnd, O as CollectionPagination, R as CollectionScroll, T as CollectionToolbar, D as ColumnControls, P as DataTable, N as DataTableText, V as Details, E as FilterChips, B as Inspector, H as ListFooter, K as Metric, G as MetricGrid, Y as Table, $ as Timeline, ge as Timestamp };
|
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-B7xzM3tD.js";
|
package/dist/content/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as e, _ as t, g as n } from "../src-
|
|
2
|
-
import { t as r } from "../code-block-
|
|
1
|
+
import { E as e, _ as t, g as n } from "../src-D05isEh_.js";
|
|
2
|
+
import { t as r } from "../code-block-B7xzM3tD.js";
|
|
3
3
|
import { t as i } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as a from "@stylexjs/stylex";
|
|
5
5
|
import { useEffect as o, useState as s } from "react";
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-CatGOrbo.js";
|
package/dist/content/markdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../code-block-
|
|
2
|
-
import { n as t, t as n } from "../content-link-
|
|
1
|
+
import { t as e } from "../code-block-B7xzM3tD.js";
|
|
2
|
+
import { n as t, t as n } from "../content-link-CatGOrbo.js";
|
|
3
3
|
import { t as r } from "../viewer-styles-CpHqp5Qv.js";
|
|
4
4
|
import * as i from "@stylexjs/stylex";
|
|
5
5
|
import { Children as a, createElement as o } from "react";
|
package/dist/content/tree.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e } from "../src-
|
|
1
|
+
import { E as e } from "../src-D05isEh_.js";
|
|
2
2
|
import { t } from "../viewer-styles-CpHqp5Qv.js";
|
|
3
3
|
import * as n from "@stylexjs/stylex";
|
|
4
4
|
import { useEffect as r, useState as i } from "react";
|
|
@@ -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-
|
|
30
|
+
let t = await import("../pierre-tree-D47uA7lb.js");
|
|
31
31
|
e && f({
|
|
32
32
|
Component: t.PierreTree,
|
|
33
33
|
hasFailed: !1
|