@mechane-ai/elements 0.18.0 → 0.20.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 (52) hide show
  1. package/README.md +11 -3
  2. package/dist/ai.js +211 -169
  3. package/dist/{categorical-values-D-sSI9JB.js → categorical-values-Cf-zlA1u.js} +2 -2
  4. package/dist/{chart-frame-vwS7YVgv.js → chart-frame-Cf6LBA8M.js} +1 -1
  5. package/dist/{chart-input-D6Fw2UGV.js → chart-input-BTDzeBQU.js} +2 -2
  6. package/dist/charts/cartesian.js +6 -6
  7. package/dist/charts/distribution.js +2 -2
  8. package/dist/charts/graph.js +2 -2
  9. package/dist/charts/hierarchy.js +3 -3
  10. package/dist/charts/matrix.js +2 -2
  11. package/dist/charts/timeline.js +2 -2
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DB42-a0M.js → code-block-D1_kzPrs.js} +2 -2
  14. package/dist/collections.js +4 -4
  15. package/dist/{constants.stylex-bbdiv1fD.js → constants.stylex-BILvnwUk.js} +1 -0
  16. package/dist/content/code.js +1 -1
  17. package/dist/content/diff.js +3 -3
  18. package/dist/content/link.js +1 -1
  19. package/dist/content/markdown.js +134 -132
  20. package/dist/content/tree.js +2 -2
  21. package/dist/{content-link-rdxJ94P8.js → content-link-BIMrgXbz.js} +1 -1
  22. package/dist/content.js +3 -3
  23. package/dist/elements.css +105 -0
  24. package/dist/feedback.js +1 -1
  25. package/dist/forms/dates.js +1 -1
  26. package/dist/forms.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/layout.js +342 -207
  29. package/dist/navigation/commands.js +1 -1
  30. package/dist/packages/ai/src/index.d.ts +2 -0
  31. package/dist/packages/ai/src/message.d.ts +2 -1
  32. package/dist/packages/ai/src/reply-indicator.d.ts +6 -0
  33. package/dist/packages/content/src/markdown/markdown.d.ts +1 -1
  34. package/dist/packages/feedback/src/async-region.d.ts +3 -1
  35. package/dist/packages/forms/src/field-styles.d.ts +6 -0
  36. package/dist/packages/forms/src/forms.d.ts +2 -1
  37. package/dist/packages/foundations/src/constants.stylex.d.ts +1 -0
  38. package/dist/packages/foundations/src/visible-motion.d.ts +4 -0
  39. package/dist/packages/layout/src/app-shell.d.ts +2 -1
  40. package/dist/packages/layout/src/index.d.ts +2 -0
  41. package/dist/packages/layout/src/navigation-rail.d.ts +18 -0
  42. package/dist/packages/layout/src/sidebar.d.ts +2 -1
  43. package/dist/{pierre-diff-C_j0nxwS.js → pierre-diff-hAwARDse.js} +1 -1
  44. package/dist/{pierre-theme-BUeJim8s.js → pierre-theme-CLgk9v3e.js} +1 -1
  45. package/dist/{pierre-tree-BaIVTNmG.js → pierre-tree-D3XsgEH6.js} +4 -4
  46. package/dist/{src-BVsyKLQ8.js → src-0mocxTaR.js} +64 -43
  47. package/dist/{src-R0kgHFPZ.js → src-D4zPPr32.js} +20 -13
  48. package/dist/{src-BXh4g2VY.js → src-qU5Z5LRH.js} +1 -0
  49. package/dist/tokens.js +1 -1
  50. package/dist/visible-motion-1GcUaEi4.js +23 -0
  51. package/package.json +1 -1
  52. package/packages/foundations/src/constants.stylex.ts +1 -1
@@ -1,5 +1,5 @@
1
- import { m as e } from "./src-BVsyKLQ8.js";
2
- import { r as t } from "./chart-frame-vwS7YVgv.js";
1
+ import { m as e } from "./src-0mocxTaR.js";
2
+ import { r as t } from "./chart-frame-Cf6LBA8M.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // packages/charts/src/chart-input.tsx
5
5
  function r(e) {
@@ -1,10 +1,10 @@
1
- import { u as e } from "../src-BVsyKLQ8.js";
2
- import { i as t, n, r, t as i } from "../categorical-values-D-sSI9JB.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-vwS7YVgv.js";
4
- import { n as f, r as p, t as m } from "../chart-input-D6Fw2UGV.js";
1
+ import { u as e } from "../src-0mocxTaR.js";
2
+ import { i as t, n, r, t as i } from "../categorical-values-Cf-zlA1u.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-Cf6LBA8M.js";
4
+ import { n as f, r as p, t as m } from "../chart-input-BTDzeBQU.js";
5
5
  import { t as h } from "../plot-width--OgdohB5.js";
6
- import { E as g } from "../src-BXh4g2VY.js";
7
- import { g as _ } from "../src-R0kgHFPZ.js";
6
+ import { E as g } from "../src-qU5Z5LRH.js";
7
+ import { g as _ } from "../src-D4zPPr32.js";
8
8
  import { r as v } from "../tokens.stylex-DTHHFbyl.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-vwS7YVgv.js";
2
- import { n as a, r as o, t as s } from "../chart-input-D6Fw2UGV.js";
1
+ import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Cf6LBA8M.js";
2
+ import { n as a, r as o, t as s } from "../chart-input-BTDzeBQU.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";
@@ -1,5 +1,5 @@
1
- import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-vwS7YVgv.js";
2
- import { n as a, t as o } from "../chart-input-D6Fw2UGV.js";
1
+ import { a as e, n as t, r as n, s as r, t as i } from "../chart-frame-Cf6LBA8M.js";
2
+ import { n as a, t as o } from "../chart-input-BTDzeBQU.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";
@@ -1,6 +1,6 @@
1
- import { i as e, r as t, t as n } from "../categorical-values-D-sSI9JB.js";
2
- import { o as r, r as i, s as a } from "../chart-frame-vwS7YVgv.js";
3
- import { t as o } from "../chart-input-D6Fw2UGV.js";
1
+ import { i as e, r as t, t as n } from "../categorical-values-Cf-zlA1u.js";
2
+ import { o as r, r as i, s as a } from "../chart-frame-Cf6LBA8M.js";
3
+ import { t as o } from "../chart-input-BTDzeBQU.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";
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "../tokens.stylex-DTHHFbyl.js";
2
- import { n as t, r as n, t as r } from "../chart-input-D6Fw2UGV.js";
3
- import { a as i, n as a, r as o, s, t as c } from "../chart-frame-vwS7YVgv.js";
2
+ import { n as t, r as n, t as r } from "../chart-input-BTDzeBQU.js";
3
+ import { a as i, n as a, r as o, s, t as c } from "../chart-frame-Cf6LBA8M.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
@@ -1,5 +1,5 @@
1
- import { c as e } from "../src-BXh4g2VY.js";
2
- import { n as t, t as n } from "../chart-input-D6Fw2UGV.js";
1
+ import { c as e } from "../src-qU5Z5LRH.js";
2
+ import { n as t, t as n } from "../chart-input-BTDzeBQU.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";
package/dist/charts.js CHANGED
@@ -1 +1 @@
1
- export { r as ChartFrame, i as ChartLegend } from "./chart-frame-vwS7YVgv.js";
1
+ export { r as ChartFrame, i as ChartLegend } from "./chart-frame-Cf6LBA8M.js";
@@ -1,7 +1,7 @@
1
- import { _ as e } from "./src-BXh4g2VY.js";
1
+ import { _ as e } from "./src-qU5Z5LRH.js";
2
2
  import { r as t } from "./tokens.stylex-DTHHFbyl.js";
3
3
  import { t as n } from "./viewer-styles-CpHqp5Qv.js";
4
- import { t as r } from "./pierre-theme-BUeJim8s.js";
4
+ import { t as r } from "./pierre-theme-CLgk9v3e.js";
5
5
  import * as i from "@stylexjs/stylex";
6
6
  import { useEffect as a, useRef as o, useState as s } from "react";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
- import { C as e, c as t, f as n, g as r, w as i } from "./src-BXh4g2VY.js";
2
- import { r as a } from "./src-R0kgHFPZ.js";
1
+ import { C as e, c as t, f as n, g as r, w as i } from "./src-qU5Z5LRH.js";
2
+ import { r as a } from "./src-D4zPPr32.js";
3
3
  import { r as o, t as s } from "./src-d7EAi61b.js";
4
- import { d as c } from "./src-BVsyKLQ8.js";
4
+ import { d as c } from "./src-0mocxTaR.js";
5
5
  import { t as l } from "./accessibility-C-aIZ1Yx.js";
6
- import { l as u, t as d } from "./constants.stylex-bbdiv1fD.js";
6
+ import { l as u, t as d } from "./constants.stylex-BILvnwUk.js";
7
7
  import { mergeProps as f } from "@base-ui/react/merge-props";
8
8
  import * as p from "@stylexjs/stylex";
9
9
  import { Children as m, Fragment as ee, useEffect as h, useLayoutEffect as g, useMemo as te, useRef as _, useState as v, useSyncExternalStore as ne } from "react";
@@ -62,6 +62,7 @@ var e = {
62
62
  }, i = {
63
63
  delaySeconds: 2,
64
64
  revealMs: 80,
65
+ imageRevealMs: 200,
65
66
  placeholderMs: 120
66
67
  }, a = { popup: "0 4px 16px #00000066" }, o = {
67
68
  sticky: "1",
@@ -1 +1 @@
1
- export { t as CodeBlock } from "../code-block-DB42-a0M.js";
1
+ export { t as CodeBlock } from "../code-block-D1_kzPrs.js";
@@ -1,5 +1,5 @@
1
- import { E as e, _ as t, g as n } from "../src-BXh4g2VY.js";
2
- import { t as r } from "../code-block-DB42-a0M.js";
1
+ import { E as e, _ as t, g as n } from "../src-qU5Z5LRH.js";
2
+ import { t as r } from "../code-block-D1_kzPrs.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";
@@ -44,7 +44,7 @@ function m(n) {
44
44
  let e = !0;
45
45
  async function t() {
46
46
  if (!A) try {
47
- let t = await import("../pierre-diff-C_j0nxwS.js"), n = t.prepareDiff(x);
47
+ let t = await import("../pierre-diff-hAwARDse.js"), n = t.prepareDiff(x);
48
48
  e && w({
49
49
  source: x,
50
50
  Component: t.PierreDiff,
@@ -1 +1 @@
1
- export { t as ContentLink } from "../content-link-rdxJ94P8.js";
1
+ export { t as ContentLink } from "../content-link-BIMrgXbz.js";
@@ -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-D1_kzPrs.js";
3
+ import { n, t as r } from "../content-link-BIMrgXbz.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 };
@@ -1,4 +1,4 @@
1
- import { E as e } from "../src-BXh4g2VY.js";
1
+ import { E as e } from "../src-qU5Z5LRH.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-BaIVTNmG.js");
30
+ let t = await import("../pierre-tree-D3XsgEH6.js");
31
31
  e && f({
32
32
  Component: t.PierreTree,
33
33
  hasFailed: !1
@@ -1,4 +1,4 @@
1
- import { D as e } from "./src-BXh4g2VY.js";
1
+ import { D as e } from "./src-qU5Z5LRH.js";
2
2
  import "@stylexjs/stylex";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  // packages/content/src/content-link.tsx
package/dist/content.js CHANGED
@@ -1,7 +1,7 @@
1
- import { C as e, E as t, _ as n, g as r } from "./src-BXh4g2VY.js";
1
+ import { C as e, E as t, _ as n, g as r } from "./src-qU5Z5LRH.js";
2
2
  import { t as i } from "./viewer-styles-CpHqp5Qv.js";
3
- import { t as a } from "./code-block-DB42-a0M.js";
4
- import { t as o } from "./content-link-rdxJ94P8.js";
3
+ import { t as a } from "./code-block-D1_kzPrs.js";
4
+ import { t as o } from "./content-link-BIMrgXbz.js";
5
5
  import * as s from "@stylexjs/stylex";
6
6
  import { useCallback as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";