@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.
- package/README.md +11 -3
- package/dist/ai.js +211 -169
- package/dist/{categorical-values-D-sSI9JB.js → categorical-values-Cf-zlA1u.js} +2 -2
- package/dist/{chart-frame-vwS7YVgv.js → chart-frame-Cf6LBA8M.js} +1 -1
- package/dist/{chart-input-D6Fw2UGV.js → chart-input-BTDzeBQU.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 +2 -2
- package/dist/charts.js +1 -1
- package/dist/{code-block-DB42-a0M.js → code-block-D1_kzPrs.js} +2 -2
- package/dist/collections.js +4 -4
- package/dist/{constants.stylex-bbdiv1fD.js → constants.stylex-BILvnwUk.js} +1 -0
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +134 -132
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-rdxJ94P8.js → content-link-BIMrgXbz.js} +1 -1
- package/dist/content.js +3 -3
- package/dist/elements.css +105 -0
- 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 +342 -207
- 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/feedback/src/async-region.d.ts +3 -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/constants.stylex.d.ts +1 -0
- package/dist/packages/foundations/src/visible-motion.d.ts +4 -0
- package/dist/packages/layout/src/app-shell.d.ts +2 -1
- package/dist/packages/layout/src/index.d.ts +2 -0
- package/dist/packages/layout/src/navigation-rail.d.ts +18 -0
- package/dist/packages/layout/src/sidebar.d.ts +2 -1
- package/dist/{pierre-diff-C_j0nxwS.js → pierre-diff-hAwARDse.js} +1 -1
- package/dist/{pierre-theme-BUeJim8s.js → pierre-theme-CLgk9v3e.js} +1 -1
- package/dist/{pierre-tree-BaIVTNmG.js → pierre-tree-D3XsgEH6.js} +4 -4
- package/dist/{src-BVsyKLQ8.js → src-0mocxTaR.js} +64 -43
- package/dist/{src-R0kgHFPZ.js → src-D4zPPr32.js} +20 -13
- package/dist/{src-BXh4g2VY.js → src-qU5Z5LRH.js} +1 -0
- package/dist/tokens.js +1 -1
- package/dist/visible-motion-1GcUaEi4.js +23 -0
- package/package.json +1 -1
- package/packages/foundations/src/constants.stylex.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as e } from "./src-
|
|
2
|
-
import { r as t } from "./chart-frame-
|
|
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) {
|
package/dist/charts/cartesian.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u 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 { 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-
|
|
7
|
-
import { g as _ } from "../src-
|
|
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-
|
|
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-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";
|
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-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";
|
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-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";
|
package/dist/charts/matrix.js
CHANGED
|
@@ -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-
|
|
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-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
|
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-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-
|
|
1
|
+
export { r as ChartFrame, i as ChartLegend } from "./chart-frame-Cf6LBA8M.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as e } from "./src-
|
|
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-
|
|
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";
|
package/dist/collections.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-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-
|
|
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-
|
|
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";
|
package/dist/content/code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeBlock } from "../code-block-
|
|
1
|
+
export { t as CodeBlock } from "../code-block-D1_kzPrs.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-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-
|
|
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,
|
package/dist/content/link.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ContentLink } from "../content-link-
|
|
1
|
+
export { t as ContentLink } from "../content-link-BIMrgXbz.js";
|
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-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
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as e } from "../src-
|
|
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-
|
|
30
|
+
let t = await import("../pierre-tree-D3XsgEH6.js");
|
|
31
31
|
e && f({
|
|
32
32
|
Component: t.PierreTree,
|
|
33
33
|
hasFailed: !1
|
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as e, E as t, _ as n, g as r } from "./src-
|
|
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-
|
|
4
|
-
import { t as o } from "./content-link-
|
|
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";
|