reactive-md 0.9.0 → 0.9.1
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/CHANGELOG-ch.md +13 -0
- package/CHANGELOG.md +13 -0
- package/README-ch.md +6 -6
- package/README-en.md +6 -6
- package/README.md +6 -6
- package/SECURITY-ch.md +3 -3
- package/SECURITY.md +3 -3
- package/THIRD_PARTY_NOTICES.md +111 -1
- package/cli/build.mjs +1 -0
- package/cli/init.mjs +1 -1
- package/dist-library/{LocalDocumentView-K7Y-2bRJ.js → LocalDocumentView-sthUP0ct.js} +10 -10
- package/dist-library/LocalDocumentViewCore-GiWV3bey.js +9829 -0
- package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +275 -0
- package/dist-library/{authoring-Co_TiE-P.js → authoring-Dsune4Hy.js} +40 -20
- package/dist-library/{compile-LhpTKqCR.js → compile-wUv8KEge.js} +1 -1
- package/dist-library/{compiler-core-DTxY-qYz.js → compiler-core-As_m-MNm.js} +2449 -1742
- package/dist-library/{compiler-DfGbQhyD.js → compiler-eOfcinZs.js} +19 -19
- package/dist-library/{component-state-BBJ08vML.js → component-state-C52ZFJGl.js} +1 -1
- package/dist-library/{config-BUo-8O5C.js → config-BadfhjdP.js} +1 -1
- package/dist-library/{config-validation-C5kJYk-J.js → config-validation-F47AcE6o.js} +49 -1
- package/dist-library/{controls-BWiLLtBO.js → controls-CcT6n7k_.js} +2433 -2409
- package/dist-library/{coordinate-BSl6enWV.js → coordinate-CWS9p5q_.js} +108 -107
- package/dist-library/{data-table-DfvytZKQ.js → data-table-Bgccxd7h.js} +68 -65
- package/dist-library/{display-lw3BT1TA.js → display-B-VhqVND.js} +1 -1
- package/dist-library/{export-C7IDW9ul.js → export-BqVmTXm8.js} +145 -87
- package/dist-library/{gallery-B8kSt1oI.js → gallery-CY6mTx8i.js} +151 -147
- package/dist-library/html-CNT4KD-2.js +757 -0
- package/dist-library/{incremental-D_6vwAAE.js → incremental-Dv0FSp_U.js} +404 -142
- package/dist-library/layout-C0YlEPGr.js +562 -0
- package/dist-library/{mount-preset-C5s9ebEH.js → mount-preset-KxvtKgJb.js} +2 -2
- package/dist-library/options-1aDLK7JY.js +121 -0
- package/dist-library/{package-core-D0POW4Gd.js → package-core-WFK1RhAZ.js} +3 -3
- package/dist-library/{parser-standard-OToYcOBL.js → parser-standard-Yuf3A_VI.js} +3270 -3778
- package/dist-library/react-D5iGiUdL.js +7 -0
- package/dist-library/reactive-md-authoring.js +16 -18
- package/dist-library/reactive-md-build.js +51 -51
- package/dist-library/reactive-md-compiler-standard.js +10 -9
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-export.js +4 -4
- package/dist-library/reactive-md-minimal-react-preset.js +3 -3
- package/dist-library/reactive-md-pdf.js +127 -3
- package/dist-library/reactive-md-plugin-chart.js +2 -2
- package/dist-library/reactive-md-plugin-data.js +4 -4
- package/dist-library/reactive-md-plugin-diagram.js +3 -3
- package/dist-library/reactive-md-plugin-forms.js +2 -2
- package/dist-library/reactive-md-plugin-gallery.js +2 -2
- package/dist-library/reactive-md-plugin-navigation.js +2 -2
- package/dist-library/reactive-md-plugin-network.js +117 -115
- package/dist-library/reactive-md-plugin-plot.js +3 -3
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-server.js +6 -6
- package/dist-library/reactive-md-react-unstyled.js +10 -11
- package/dist-library/reactive-md-react.js +10 -11
- package/dist-library/reactive-md-sdk.js +3 -3
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +6 -6
- package/dist-library/reactive-md-testing.js +4 -4
- package/dist-library/reactive-md.js +280 -193
- package/dist-library/{registry-05JiqmEp.js → registry-B9NGct4d.js} +1 -1
- package/dist-library/{resources-IeJomeUT.js → resources-D2GDQS0p.js} +1 -1
- package/dist-library/{runtime-CuOyRe9f.js → runtime-kcA7bG7G.js} +341 -341
- package/dist-library/{schema-C-AeByPp.js → schema-BufhKUSM.js} +5 -5
- package/dist-library/{sdk-core-BJLJaVR5.js → sdk-core-BoJT1SIt.js} +490 -150
- package/dist-library/{session-core-BGka5D1J.js → session-core-nmJHuR9c.js} +170 -156
- package/dist-library/{shareable-jkGi2g6y.js → shareable-DpbE-59H.js} +207 -242
- package/dist-library/types/authoring/catalog.d.ts +1 -2
- package/dist-library/types/components/shared/visual-frame.d.ts +6 -2
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
- package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
- package/dist-library/types/local/compilation/compiler-services.d.ts +8 -4
- package/dist-library/types/local/compilation/compiler.d.ts +3 -3
- package/dist-library/types/local/compilation/session/incremental.d.ts +20 -5
- package/dist-library/types/local/compilation/streaming.d.ts +27 -0
- package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +48 -0
- package/dist-library/types/local/configuration/options-core.d.ts +1 -2
- package/dist-library/types/local/configuration/options.d.ts +1 -0
- package/dist-library/types/local/css/author-css.d.ts +66 -0
- package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
- package/dist-library/types/local/html/html.d.ts +39 -3
- package/dist-library/types/local/index.d.ts +1 -1
- package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
- package/dist-library/types/local/parsing/parse-session.d.ts +2 -2
- package/dist-library/types/local/parsing/parser-convert.d.ts +2 -1
- package/dist-library/types/local/parsing/parser-core.d.ts +8 -1
- package/dist-library/types/local/parsing/parser.d.ts +2 -2
- package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
- package/dist-library/types/local/rendering/document/LocalDocumentViewCore.d.ts +25 -1
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +1 -1
- package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
- package/dist-library/types/local/rendering/document/view-render-context.d.ts +11 -1
- package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
- package/dist-library/types/local/transport/worker.d.ts +27 -4
- package/dist-library/types/local/types.d.ts +52 -16
- package/dist-library/types/react/component-api.d.ts +10 -1
- package/dist-library/types/react/component-utils.d.ts +9 -1
- package/dist-library/types/react/sdk-core.d.ts +4 -1
- package/dist-library/types/shareable.d.ts +5 -4
- package/dist-library/types/standalone/prepare.d.ts +1 -1
- package/dist-library/types/standalone/session-core.d.ts +3 -2
- package/dist-library/{types-BFC5rzC4.js → types-BeNtPqdY.js} +1 -1
- package/dist-library/{validation-BlDL2uD9.js → validation-BEBA_HvS.js} +88 -72
- package/dist-library/{visual-frame-G8PHoj1e.js → visual-frame-CyV1FXzs.js} +6 -5
- package/dist-library/{visuals-BkYRmYGO.js → visuals-BZbZYA7w.js} +24181 -24180
- package/dist-standalone/reactive-md-standalone.js +124 -117
- package/docs/README-ch.md +2 -1
- package/docs/README.md +2 -1
- package/docs/compatibility/compatibility-ch.md +6 -6
- package/docs/compatibility/compatibility-en.md +6 -6
- package/docs/compatibility/source-versioning-ch.md +1 -1
- package/docs/compatibility/source-versioning-en.md +1 -1
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-development-reference-ch.md +2 -2
- package/docs/development/component-development-reference-en.md +2 -2
- package/docs/development/component-protocol-ch.md +2 -2
- package/docs/development/component-protocol-en.md +2 -2
- package/docs/development/extension-tutorial-ch.md +3 -3
- package/docs/development/extension-tutorial-en.md +3 -3
- package/docs/integration/author-tools-ch.md +1 -1
- package/docs/integration/author-tools-en.md +1 -1
- package/docs/integration/compiler-ch.md +3 -1
- package/docs/integration/compiler-en.md +3 -1
- package/docs/integration/editor-ch.md +3 -3
- package/docs/integration/editor-en.md +3 -3
- package/docs/integration/extension-sdk-ch.md +2 -2
- package/docs/integration/extension-sdk-en.md +2 -2
- package/docs/integration/local-integration-ch.md +130 -8
- package/docs/integration/local-integration-en.md +130 -8
- package/docs/integration/shareable-export-ch.md +4 -2
- package/docs/integration/shareable-export-en.md +4 -2
- package/docs/reference/html-compatibility-ch.md +20 -67
- package/docs/reference/html-compatibility-en.md +19 -64
- package/docs/reference/public-api-ch.md +10 -7
- package/docs/reference/public-api-en.md +10 -7
- package/docs/releases/release-0.9.1-ch.md +29 -0
- package/docs/releases/release-0.9.1-en.md +29 -0
- package/examples/component-package/README-ch.md +1 -1
- package/examples/component-package/README.md +1 -1
- package/examples/game-2048-package/README-ch.md +1 -1
- package/examples/game-2048-package/README.md +1 -1
- package/examples/integration/README-ch.md +21 -2
- package/examples/integration/README.md +21 -2
- package/examples/integration/extension-sdk/README-ch.md +1 -1
- package/examples/integration/extension-sdk/README.md +1 -1
- package/examples/integration/streaming/index.html +48 -0
- package/examples/integration/streaming/main.js +175 -0
- package/examples/integration/streaming/package.json +13 -0
- package/examples/integration/streaming/worker.js +3 -0
- package/examples/minimal-extension/README-ch.md +3 -3
- package/examples/minimal-extension/README.md +3 -3
- package/examples/tetris-package/README-ch.md +1 -1
- package/examples/tetris-package/README.md +1 -1
- package/package.json +6 -1
- package/dist-library/LocalDocumentViewCore-BLG4hMuO.js +0 -9535
- package/dist-library/LocalReactiveDocumentCore-DVQ6WA9G.js +0 -259
- package/dist-library/component-utils-BvHL8VGt.js +0 -298
- package/dist-library/layout-C22VjZh0.js +0 -542
- package/dist-library/options-CdSKOi7p.js +0 -116
- package/dist-library/react-LY5qsVeP.js +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { B as e, P as t, R as n, T as r, a as i, t as a } from "./preset-core-CKc5YXSM.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { useCallback as
|
|
5
|
-
import { jsx as
|
|
2
|
+
import { I as o, L as s, N as c, P as l, z as u } from "./sdk-core-BoJT1SIt.js";
|
|
3
|
+
import { t as d } from "./mount-preset-KxvtKgJb.js";
|
|
4
|
+
import { useCallback as f, useId as p, useLayoutEffect as m, useRef as h, useState as g } from "react";
|
|
5
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
6
6
|
// src/components/network/submit-button.tsx
|
|
7
|
-
var
|
|
7
|
+
var y = r({
|
|
8
8
|
id: "reactive-md/submit-button",
|
|
9
9
|
name: "submit-button",
|
|
10
10
|
version: e,
|
|
@@ -69,12 +69,12 @@ var v = r({
|
|
|
69
69
|
insertText: "<submit-button channel=\"answers\" fields=\"choice comment\">"
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
function
|
|
72
|
+
function b(e) {
|
|
73
73
|
if (e === void 0) return null;
|
|
74
74
|
let t = e.trim().split(/\s+/).filter((e) => e !== "");
|
|
75
75
|
return t.length === 0 || new Set(t).size !== t.length || t.some((e) => !/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)) ? null : t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function x(e, t) {
|
|
78
78
|
if (!e || t === "") return !1;
|
|
79
79
|
try {
|
|
80
80
|
return e.supports(t, "submit");
|
|
@@ -82,7 +82,7 @@ function b(e, t) {
|
|
|
82
82
|
return !1;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function S() {
|
|
86
86
|
let e = globalThis.crypto;
|
|
87
87
|
if (e?.randomUUID) return e.randomUUID();
|
|
88
88
|
if (e?.getRandomValues) {
|
|
@@ -91,130 +91,132 @@ function x() {
|
|
|
91
91
|
}
|
|
92
92
|
return `submit-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
let t = o(e), n =
|
|
96
|
-
let e =
|
|
97
|
-
|
|
94
|
+
function C(e) {
|
|
95
|
+
let t = o(e), n = s(e), r = p(), { mode: i, visible: a, t: d } = n, y = e.services.network, C = e.props.channel, w = typeof C == "string" ? C.trim() : "", T = e.props.fields, E = typeof T == "string" ? b(T) : null, D = l(e, "label", d("Submit", "提交")), [O, k] = g(null), A = O?.tone === "pending", j = h(null), M = h(null), N = f(() => {
|
|
96
|
+
let e = j.current;
|
|
97
|
+
j.current = null, e?.abort();
|
|
98
98
|
}, []);
|
|
99
|
-
if (
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
]),
|
|
106
|
-
|
|
107
|
-
}),
|
|
99
|
+
if (m(() => (M.current = null, k(null), N), [
|
|
100
|
+
w,
|
|
101
|
+
T,
|
|
102
|
+
y,
|
|
103
|
+
i,
|
|
104
|
+
N
|
|
105
|
+
]), u(e, () => {
|
|
106
|
+
N(), M.current = null, k(null);
|
|
107
|
+
}), i === "static") return /* @__PURE__ */ _("span", {
|
|
108
|
+
...t(),
|
|
108
109
|
className: "local-submit-button local-submit-button-static",
|
|
109
110
|
"data-rmd-static-submit": "",
|
|
110
111
|
"aria-disabled": "true",
|
|
111
|
-
hidden: !
|
|
112
|
-
children:
|
|
112
|
+
hidden: !a || void 0,
|
|
113
|
+
children: c(D)
|
|
113
114
|
});
|
|
114
|
-
let
|
|
115
|
-
|
|
115
|
+
let P = w === "" ? d("This button has no submit channel.", "此按钮未配置提交通道。") : E === null ? d("List valid field names without duplicates.", "请填写有效且不重复的字段名。") : x(y, w) ? void 0 : d("Submitting is not enabled for this channel.", "此通道未开放提交。"), F = () => {
|
|
116
|
+
if (!a || e.disabled || j.current || !E || !x(y, w)) return;
|
|
117
|
+
let t;
|
|
118
|
+
try {
|
|
119
|
+
t = e.runtime.readSubmissionFields?.(E) ?? {
|
|
120
|
+
ok: !1,
|
|
121
|
+
field: E[0],
|
|
122
|
+
reason: "unavailable"
|
|
123
|
+
};
|
|
124
|
+
} catch {
|
|
125
|
+
t = {
|
|
126
|
+
ok: !1,
|
|
127
|
+
field: E[0],
|
|
128
|
+
reason: "unavailable"
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
if (!t.ok) {
|
|
132
|
+
let e = t.field, n = t.reason === "required" ? d(`Field "${e}" is required.`, `字段“${e}”为必填项。`) : t.reason === "invalid" ? d(`Field "${e}" has an invalid value.`, `字段“${e}”的值无效。`) : d(`Field "${e}" is unavailable.`, `无法读取字段“${e}”。`);
|
|
133
|
+
k({
|
|
134
|
+
tone: "error",
|
|
135
|
+
text: n,
|
|
136
|
+
field: e
|
|
137
|
+
});
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
let n = t.payload, r = JSON.stringify(n);
|
|
141
|
+
M.current?.signature !== r && (M.current = null);
|
|
142
|
+
let i = M.current?.key ?? S(), o = new AbortController();
|
|
143
|
+
j.current = o, k({
|
|
144
|
+
tone: "pending",
|
|
145
|
+
text: d("Submitting…", "正在提交…")
|
|
146
|
+
}), (async () => {
|
|
147
|
+
let e;
|
|
148
|
+
try {
|
|
149
|
+
e = await y.submit(w, n, {
|
|
150
|
+
signal: o.signal,
|
|
151
|
+
idempotencyKey: i
|
|
152
|
+
});
|
|
153
|
+
} catch {
|
|
154
|
+
e = {
|
|
155
|
+
ok: !1,
|
|
156
|
+
error: {
|
|
157
|
+
code: "transport",
|
|
158
|
+
message: ""
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
if (j.current !== o) return;
|
|
163
|
+
if (j.current = null, e.ok) {
|
|
164
|
+
M.current = null, k({
|
|
165
|
+
tone: "success",
|
|
166
|
+
text: d("Submitted.", "已提交。")
|
|
167
|
+
});
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
let t = e.error, a = t.message.trim();
|
|
171
|
+
t.code === "cancelled" ? k(null) : t.code === "unconfirmed" ? (M.current = {
|
|
172
|
+
key: i,
|
|
173
|
+
signature: r
|
|
174
|
+
}, k({
|
|
175
|
+
tone: "warning",
|
|
176
|
+
text: d("Submission result is unconfirmed. Retry to send the same fields again.", "提交结果未确认。可手动重试同一组字段。")
|
|
177
|
+
})) : t.code === "transport" ? k({
|
|
178
|
+
tone: "error",
|
|
179
|
+
text: a || d("The submission could not be sent.", "发送提交失败。")
|
|
180
|
+
}) : t.code === "rejected" || t.code === "invalid-data" ? (M.current = null, k({
|
|
181
|
+
tone: "error",
|
|
182
|
+
text: a ? d(`Submission was rejected: ${a}`, `提交被拒绝:${a}`) : d("Submission was rejected.", "提交被拒绝。")
|
|
183
|
+
})) : (M.current = null, k({
|
|
184
|
+
tone: "error",
|
|
185
|
+
text: d("Submitting is not enabled for this channel.", "此通道未开放提交。")
|
|
186
|
+
}));
|
|
187
|
+
})();
|
|
188
|
+
};
|
|
189
|
+
return /* @__PURE__ */ v("div", {
|
|
190
|
+
...t(),
|
|
116
191
|
className: "local-submit-button-control",
|
|
117
192
|
"data-rmd-component": "submit-button",
|
|
118
|
-
"data-field":
|
|
119
|
-
hidden: !
|
|
120
|
-
children: [/* @__PURE__ */
|
|
193
|
+
"data-field": O?.field,
|
|
194
|
+
hidden: !a || void 0,
|
|
195
|
+
children: [/* @__PURE__ */ _("button", {
|
|
121
196
|
type: "button",
|
|
122
197
|
className: "md-button md-button-primary local-submit-button",
|
|
123
|
-
disabled: e.disabled ||
|
|
124
|
-
"aria-busy":
|
|
125
|
-
"aria-describedby": `${
|
|
126
|
-
onClick:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
t = e.runtime.readSubmissionFields?.(w) ?? {
|
|
131
|
-
ok: !1,
|
|
132
|
-
field: w[0],
|
|
133
|
-
reason: "unavailable"
|
|
134
|
-
};
|
|
135
|
-
} catch {
|
|
136
|
-
t = {
|
|
137
|
-
ok: !1,
|
|
138
|
-
field: w[0],
|
|
139
|
-
reason: "unavailable"
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
if (!t.ok) {
|
|
143
|
-
let e = t.field, n = t.reason === "required" ? a(`Field "${e}" is required.`, `字段“${e}”为必填项。`) : t.reason === "invalid" ? a(`Field "${e}" has an invalid value.`, `字段“${e}”的值无效。`) : a(`Field "${e}" is unavailable.`, `无法读取字段“${e}”。`);
|
|
144
|
-
D({
|
|
145
|
-
tone: "error",
|
|
146
|
-
text: n,
|
|
147
|
-
field: e
|
|
148
|
-
});
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
let n = t.payload, r = JSON.stringify(n);
|
|
152
|
-
A.current?.signature !== r && (A.current = null);
|
|
153
|
-
let o = A.current?.key ?? x(), s = new AbortController();
|
|
154
|
-
k.current = s, D({
|
|
155
|
-
tone: "pending",
|
|
156
|
-
text: a("Submitting…", "正在提交…")
|
|
157
|
-
}), (async () => {
|
|
158
|
-
let e;
|
|
159
|
-
try {
|
|
160
|
-
e = await u.submit(S, n, {
|
|
161
|
-
signal: s.signal,
|
|
162
|
-
idempotencyKey: o
|
|
163
|
-
});
|
|
164
|
-
} catch {
|
|
165
|
-
e = {
|
|
166
|
-
ok: !1,
|
|
167
|
-
error: {
|
|
168
|
-
code: "transport",
|
|
169
|
-
message: ""
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
if (k.current !== s) return;
|
|
174
|
-
if (k.current = null, e.ok) {
|
|
175
|
-
A.current = null, D({
|
|
176
|
-
tone: "success",
|
|
177
|
-
text: a("Submitted.", "已提交。")
|
|
178
|
-
});
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
let t = e.error, i = t.message.trim();
|
|
182
|
-
t.code === "cancelled" ? D(null) : t.code === "unconfirmed" ? (A.current = {
|
|
183
|
-
key: o,
|
|
184
|
-
signature: r
|
|
185
|
-
}, D({
|
|
186
|
-
tone: "warning",
|
|
187
|
-
text: a("Submission result is unconfirmed. Retry to send the same fields again.", "提交结果未确认。可手动重试同一组字段。")
|
|
188
|
-
})) : t.code === "transport" ? D({
|
|
189
|
-
tone: "error",
|
|
190
|
-
text: i || a("The submission could not be sent.", "发送提交失败。")
|
|
191
|
-
}) : t.code === "rejected" || t.code === "invalid-data" ? (A.current = null, D({
|
|
192
|
-
tone: "error",
|
|
193
|
-
text: i ? a(`Submission was rejected: ${i}`, `提交被拒绝:${i}`) : a("Submission was rejected.", "提交被拒绝。")
|
|
194
|
-
})) : (A.current = null, D({
|
|
195
|
-
tone: "error",
|
|
196
|
-
text: a("Submitting is not enabled for this channel.", "此通道未开放提交。")
|
|
197
|
-
}));
|
|
198
|
-
})();
|
|
199
|
-
},
|
|
200
|
-
children: T
|
|
201
|
-
}), /* @__PURE__ */ g("span", {
|
|
202
|
-
id: `${n}-submit-status`,
|
|
198
|
+
disabled: e.disabled || A || P !== void 0,
|
|
199
|
+
"aria-busy": A || void 0,
|
|
200
|
+
"aria-describedby": `${r}-submit-status`,
|
|
201
|
+
onClick: F,
|
|
202
|
+
children: D
|
|
203
|
+
}), /* @__PURE__ */ _("span", {
|
|
204
|
+
id: `${r}-submit-status`,
|
|
203
205
|
className: "local-submit-button-status",
|
|
204
206
|
role: "status",
|
|
205
|
-
"data-tone":
|
|
206
|
-
children:
|
|
207
|
+
"data-tone": P ? "error" : O?.tone ?? "idle",
|
|
208
|
+
children: P ?? O?.text ?? ""
|
|
207
209
|
})]
|
|
208
210
|
});
|
|
209
211
|
}
|
|
210
212
|
// src/components/network/network.css?inline
|
|
211
|
-
var
|
|
213
|
+
var w = "@layer rmd.components{.local-submit-button-control:where(.md-document,.md-document *){align-items:center;gap:var(--space-2);flex-wrap:wrap;margin:.7em 0;display:flex}.local-document .md-button.local-submit-button{min-height:var(--control-height);padding:0 var(--control-inset-x);font-size:var(--text-sm);margin:0}:is(.local-submit-button-control,.local-submit-button-static)[hidden]:where(.md-document,.md-document *){display:none}.local-submit-button-status:where(.md-document,.md-document *){min-height:1.2em;color:var(--ink-muted);font-size:var(--text-xs);font-weight:var(--weight-semibold)}.local-submit-button-status[data-tone=success]:where(.md-document,.md-document *){color:var(--success)}.local-submit-button-status[data-tone=warning]:where(.md-document,.md-document *){color:var(--warning,var(--ink-soft))}.local-submit-button-status[data-tone=error]:where(.md-document,.md-document *){color:var(--danger)}.local-submit-button-static:where(.md-document,.md-document *){padding:0 var(--space-2);border:1px solid var(--line-strong);border-radius:var(--radius-pill);color:var(--ink);font-size:var(--text-sm);font-weight:var(--weight-semibold);display:inline-block}}", T = a({
|
|
212
214
|
id: "reactive-md/network",
|
|
213
215
|
version: i,
|
|
214
216
|
protocol: n,
|
|
215
|
-
components: [
|
|
216
|
-
}),
|
|
217
|
+
components: [y]
|
|
218
|
+
}), E = d(T, { "submit-button": C }, [{
|
|
217
219
|
id: "reactive-md/network.css",
|
|
218
|
-
css:
|
|
220
|
+
css: w
|
|
219
221
|
}]);
|
|
220
|
-
export {
|
|
222
|
+
export { E as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e } from "./visuals-
|
|
2
|
-
import { t } from "./coordinate-
|
|
1
|
+
import { i as e } from "./visuals-BZbZYA7w.js";
|
|
2
|
+
import { t } from "./coordinate-CWS9p5q_.js";
|
|
3
3
|
import { t as n } from "./plugin-packs-B1XPWcFs.js";
|
|
4
|
-
import { t as r } from "./mount-preset-
|
|
4
|
+
import { t as r } from "./mount-preset-KxvtKgJb.js";
|
|
5
5
|
import { t as i } from "./visuals-B5KSafVk.js";
|
|
6
6
|
// node_modules/mafs/core.css?inline
|
|
7
7
|
var a = ".MafsView{background:var(--mafs-bg);-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums;touch-action:none;--mafs-bg:black;--mafs-fg:white;--mafs-origin-color:var(--mafs-fg);--mafs-line-color:#555;--mafs-line-stroke-dash-style:4, 3;--mafs-axis-stroke-width:1px;--grid-line-subdivision-color:#222;--mafs-red:#f11d0e;--mafs-orange:#f14e0e;--mafs-yellow:#ffe44a;--mafs-green:#15e272;--mafs-blue:#58a6ff;--mafs-indigo:#7c58ff;--mafs-violet:#ae58ff;--mafs-pink:#ee00ab;outline:0;font-family:inherit;display:block;overflow:hidden}.MafsView text{fill:var(--mafs-fg);cursor:default}.MafsView path{stroke:var(--mafs-fg)}.MafsView:focus-visible{border-radius:5px;outline:3px solid #58a6ff}@supports not selector(:focus-visible){.MafsView:focus{border-radius:5px;outline:3px solid #58a6ff}}.mafs-shadow{paint-order:stroke;stroke-width:3px;stroke:var(--mafs-bg);stroke-opacity:.75;stroke-linejoin:round}.mafs-movable-point{cursor:grab;touch-action:none}.mafs-movable-point-dragging{cursor:grabbing}.mafs-movable-point:focus{outline:0}.mafs-movable-point *{fill:none;stroke:none}.mafs-movable-point-hitbox{fill:#0000}.mafs-movable-point-focus{stroke:var(--movable-point-color);stroke-width:2px;stroke-opacity:0;fill:none;transition:stroke-opacity .2s}.mafs-movable-point-ring{fill:var(--movable-point-color);fill-opacity:.25;stroke:none;transition:r .2s}.mafs-movable-point-point{fill:var(--movable-point-color);transition:r .2s}.mafs-movable-point:hover .mafs-movable-point-point,.mafs-movable-point:focus-visible .mafs-movable-point-point{r:calc(var(--movable-point-ring-size) - 2px)}.mafs-movable-point:hover .mafs-movable-point-ring,.mafs-movable-point:focus-visible .mafs-movable-point-ring{r:calc(var(--movable-point-ring-size) + 3px)}.mafs-movable-point.mafs-movable-point-dragging .mafs-movable-point-ring{r:var(--movable-point-ring-size)}.mafs-movable-point:focus-visible .mafs-movable-point-focus{stroke-opacity:1}", o = "@layer rmd.components{.md-document :is(.local-mafs-coordinate,.local-mafs-plot) .MafsView{--mafs-bg:var(--surface);--mafs-fg:var(--ink-soft);--mafs-origin-color:var(--line-strong);--mafs-line-color:var(--chart-grid);--grid-line-subdivision-color:color-mix(in srgb, var(--chart-grid) 55%, transparent);--mafs-axis-stroke-width:1px;border-radius:var(--radius-card);color:var(--ink-soft);font-family:var(--font-sans);font-variant-numeric:tabular-nums}.md-document .local-mafs-coordinate .MafsView{--mafs-bg:transparent}.md-document .local-coordinate-surface.local-mafs-surface{background:0 0}.md-document :is(.local-mafs-coordinate,.local-mafs-plot) .MafsView:focus-visible{border-radius:var(--radius-control);outline:var(--focus-outline);outline-offset:2px}.md-document :is(.local-mafs-coordinate,.local-mafs-plot) .MafsView text{font-family:inherit}.md-document .local-coordinate-pad.local-mafs-coordinate{aspect-ratio:auto;touch-action:auto}.md-document .local-mafs-coordinate .MafsView,.md-document .local-coordinate-pad.local-mafs-coordinate{overflow:visible}.md-document .local-mafs-coordinate .mafs-movable-point-point{r:5px}.md-document .local-mafs-coordinate .mafs-movable-point-ring{r:12px;fill-opacity:.16}.md-document .local-mafs-coordinate .mafs-movable-point:hover .mafs-movable-point-point,.md-document .local-mafs-coordinate .mafs-movable-point:focus-visible .mafs-movable-point-point,.md-document .local-mafs-coordinate .mafs-movable-point.mafs-movable-point-dragging .mafs-movable-point-point{r:6px}.md-document .local-mafs-coordinate .mafs-movable-point:hover .mafs-movable-point-ring,.md-document .local-mafs-coordinate .mafs-movable-point:focus-visible .mafs-movable-point-ring,.md-document .local-mafs-coordinate .mafs-movable-point.mafs-movable-point-dragging .mafs-movable-point-ring{r:13px}.md-document .local-coordinate-pad[aria-disabled=true] .MafsView{pointer-events:none;opacity:var(--disabled-opacity)}.md-document .local-mafs-plot{border-radius:var(--radius-card);min-width:0;max-width:100%}.md-document .local-mafs-plot:focus-visible{outline:var(--focus-outline);outline-offset:2px}.md-document .local-visual-plot-legend-button{width:100%;min-width:0;color:inherit;border-radius:var(--radius-control);font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;padding:0;display:block}.md-document .local-visual-plot-legend-button:focus-visible{outline:var(--focus-outline);outline-offset:1px}.md-document .local-visual-plot-legend-button:hover .local-visual-plot-formula,.md-document .local-visual-plot-legend-item.is-focused .local-visual-plot-formula{color:var(--ink)}.md-document .local-visual-plot-legend-item.is-focused .local-visual-swatch{box-shadow:var(--rmd-mafs-surface-shadow-geometry) var(--surface), var(--rmd-mafs-accent-shadow-geometry) var(--accent)}}", s = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n, r, t as i } from "./package-core-
|
|
3
|
-
import { t as a } from "./LocalDocumentViewCore-
|
|
4
|
-
import { t as o } from "./LocalReactiveDocumentCore-
|
|
1
|
+
import { G as e, n as t } from "./sdk-core-BoJT1SIt.js";
|
|
2
|
+
import { n, r, t as i } from "./package-core-WFK1RhAZ.js";
|
|
3
|
+
import { t as a } from "./LocalDocumentViewCore-GiWV3bey.js";
|
|
4
|
+
import { t as o } from "./LocalReactiveDocumentCore-ZjQSGyHE.js";
|
|
5
5
|
import s from "./reactive-md-minimal-react-preset.js";
|
|
6
6
|
import { jsx as c } from "react/jsx-runtime";
|
|
7
7
|
// src/react/minimal.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as e } from "./config-
|
|
2
|
-
import { n as t } from "./registry-
|
|
3
|
-
import { i as n, n as r, r as i } from "./resources-
|
|
4
|
-
import { o as a } from "./sdk-core-
|
|
5
|
-
import { t as o } from "./LocalDocumentView-
|
|
6
|
-
import { o as s, s as c, t as l } from "./export-
|
|
1
|
+
import { l as e } from "./config-BadfhjdP.js";
|
|
2
|
+
import { n as t } from "./registry-B9NGct4d.js";
|
|
3
|
+
import { i as n, n as r, r as i } from "./resources-D2GDQS0p.js";
|
|
4
|
+
import { o as a } from "./sdk-core-BoJT1SIt.js";
|
|
5
|
+
import { t as o } from "./LocalDocumentView-sthUP0ct.js";
|
|
6
|
+
import { o as s, s as c, t as l } from "./export-BqVmTXm8.js";
|
|
7
7
|
import { createElement as u } from "react";
|
|
8
8
|
import { renderToString as d } from "react-dom/server";
|
|
9
9
|
// src/react/server.tsx
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, r as i, s as a, t as o } from "./latex-1w7aQgD5.js";
|
|
2
2
|
import { $ as s, Y as c, ct as l, dt as u, lt as d, nt as f, ot as p, rt as m, st as h, ut as g } from "./preset-core-CKc5YXSM.js";
|
|
3
|
-
import { B as _, M as v } from "./config-validation-
|
|
4
|
-
import { t as y } from "./compile-
|
|
3
|
+
import { B as _, M as v } from "./config-validation-F47AcE6o.js";
|
|
4
|
+
import { t as y } from "./compile-wUv8KEge.js";
|
|
5
5
|
import { o as b } from "./props-sJ8vk0cr.js";
|
|
6
|
-
import { _ as x, b as S, v as C, y as w } from "./config-
|
|
6
|
+
import { _ as x, b as S, v as C, y as w } from "./config-BadfhjdP.js";
|
|
7
7
|
import { i as T, n as E, r as D, t as O } from "./sample-bP4zHB3L.js";
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { d as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
export { c as DEFAULT_LOCAL_DATA_TABLE_ROWS, _e as FieldError, x as LOCAL_STYLE_CONTRACT, C as LOCAL_STYLE_LAYERS, w as LOCAL_STYLE_LAYER_ORDER, S as LOCAL_THEME_STYLE_LAYER, t as LatexError, I as LatexView, Ee as LocalDocumentView, fe as LocalError, P as LocalReactExtensionMissingError, we as LocalReactiveDocument, o as MAX_IMPLICIT_GRID, s as MAX_LOCAL_ARRAY_LENGTH, f as MAX_LOCAL_DATA_TABLE_COLUMNS, m as MAX_LOCAL_DATA_TABLE_ROWS, p as MAX_LOCAL_PLOT_CURVES, h as MAX_LOCAL_PLOT_POINTS, l as MAX_LOCAL_PLOT_STEPS, d as MAX_LOCAL_STRING_LENGTH, g as MAX_LOCAL_VALUE_CHARACTERS, r as MIN_IMPLICIT_GRID, he as PrintValue, se as StaticValue, F as TableSurface, ee as ToneProblem, pe as accentStyle, ge as boolAttr, ne as clamp, y as compileExpression, i as compileLatex, n as compilePlotFormula, _ as countLocalCodePoints, z as createDiagramLayoutFallback, ke as createReactConfig, Te as createReactHost, ue as currentValue, ve as dateConstraint, Ce as defaultReactPresetPackage, A as defineReactComponent, De as defineReactComponentPackage, Oe as defineReactPreset, B as diagramEdgePath, L as diagramLayoutKey, re as displayValue, v as formatLocalDiagnostic, ie as formatNumber, me as formatSeconds, e as implicitGridSize, de as inlinePlainText, b as isLocalColor, u as isLocalEmail, oe as itemBool, ae as itemText, R as layoutDiagram, $ as localColor, N as localReactExtensionRenderer, ye as numberAttr, Se as numberConstraint, te as numericRange, xe as optionLabel, a as plotFormulaKind, Z as rawAttr, H as readBooleanAttr, j as reportLocalComponentError, k as safeLocalComponentEvent, O as sampleImplicit, E as sampleParametric, D as samplePlot, T as samplePolar, be as scalarText, Q as slotNumber, W as snapToStep, U as staticText, Y as textAttr, le as toneAttr, V as useComponentView, ce as useDisabled, q as useResetToken, J as useSourceAttributes, X as useValidationField, G as useValidationHint, K as useWriter, M as validateLocalReactExtensions };
|
|
8
|
+
import { A as k, B as A, C as j, D as M, E as N, F as P, G as F, H as I, L, M as R, N as z, O as B, P as V, R as H, S as U, T as W, U as G, V as K, _ as q, a as J, b as Y, c as X, d as Z, f as Q, g as $, h as ee, i as te, j as ne, k as re, l as ie, m as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he, z as ge } from "./sdk-core-BoJT1SIt.js";
|
|
9
|
+
import { n as _e, r as ve } from "./visual-frame-CyV1FXzs.js";
|
|
10
|
+
import { d as ye, f as be, l as xe, u as Se } from "./visuals-BZbZYA7w.js";
|
|
11
|
+
import { i as Ce, n as we, r as Te, t as Ee } from "./LocalDocumentView-sthUP0ct.js";
|
|
12
|
+
import { n as De, r as Oe } from "./package-core-WFK1RhAZ.js";
|
|
13
|
+
import { t as ke } from "./react-D5iGiUdL.js";
|
|
14
|
+
export { c as DEFAULT_LOCAL_DATA_TABLE_ROWS, le as FieldError, x as LOCAL_STYLE_CONTRACT, C as LOCAL_STYLE_LAYERS, w as LOCAL_STYLE_LAYER_ORDER, S as LOCAL_THEME_STYLE_LAYER, t as LatexError, ve as LatexView, Ee as LocalDocumentView, X as LocalError, ue as LocalReactExtensionMissingError, we as LocalReactiveDocument, o as MAX_IMPLICIT_GRID, s as MAX_LOCAL_ARRAY_LENGTH, f as MAX_LOCAL_DATA_TABLE_COLUMNS, m as MAX_LOCAL_DATA_TABLE_ROWS, p as MAX_LOCAL_PLOT_CURVES, h as MAX_LOCAL_PLOT_POINTS, l as MAX_LOCAL_PLOT_STEPS, d as MAX_LOCAL_STRING_LENGTH, g as MAX_LOCAL_VALUE_CHARACTERS, r as MIN_IMPLICIT_GRID, ie as PrintValue, de as StaticValue, _e as TableSurface, Z as ToneProblem, Q as accentStyle, se as boolAttr, ae as clamp, y as compileExpression, i as compileLatex, n as compilePlotFormula, _ as countLocalCodePoints, xe as createDiagramLayoutFallback, ke as createReactConfig, Te as createReactHost, ee as currentValue, $ as dateConstraint, Ce as defaultReactPresetPackage, F as defineReactComponent, De as defineReactComponentPackage, Oe as defineReactPreset, Se as diagramEdgePath, ye as diagramLayoutKey, q as displayValue, v as formatLocalDiagnostic, fe as formatNumber, he as formatSeconds, e as implicitGridSize, Y as inlinePlainText, b as isLocalColor, u as isLocalEmail, me as itemBool, U as itemText, be as layoutDiagram, j as localColor, ce as localReactExtensionRenderer, pe as numberAttr, W as numberConstraint, N as numericRange, M as optionLabel, a as plotFormulaKind, B as rawAttr, re as readBooleanAttr, te as reportLocalComponentError, J as safeLocalComponentEvent, O as sampleImplicit, E as sampleParametric, D as samplePlot, T as samplePolar, k as scalarText, ne as slotNumber, R as snapToStep, z as staticText, V as textAttr, P as toneAttr, L as useComponentView, H as useDisabled, ge as useResetToken, A as useSourceAttributes, K as useValidationField, I as useValidationHint, G as useWriter, oe as validateLocalReactExtensions };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, r as i, s as a, t as o } from "./latex-1w7aQgD5.js";
|
|
2
2
|
import { $ as s, Y as c, ct as l, dt as u, lt as d, nt as f, ot as p, rt as m, st as h, ut as g } from "./preset-core-CKc5YXSM.js";
|
|
3
|
-
import { B as _, M as v } from "./config-validation-
|
|
4
|
-
import { t as y } from "./compile-
|
|
3
|
+
import { B as _, M as v } from "./config-validation-F47AcE6o.js";
|
|
4
|
+
import { t as y } from "./compile-wUv8KEge.js";
|
|
5
5
|
import { o as b } from "./props-sJ8vk0cr.js";
|
|
6
|
-
import { _ as x, b as S, v as C, y as w } from "./config-
|
|
6
|
+
import { _ as x, b as S, v as C, y as w } from "./config-BadfhjdP.js";
|
|
7
7
|
import { i as T, n as E, r as D, t as O } from "./sample-bP4zHB3L.js";
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { d as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
export { c as DEFAULT_LOCAL_DATA_TABLE_ROWS, _e as FieldError, x as LOCAL_STYLE_CONTRACT, C as LOCAL_STYLE_LAYERS, w as LOCAL_STYLE_LAYER_ORDER, S as LOCAL_THEME_STYLE_LAYER, t as LatexError, I as LatexView, Ee as LocalDocumentView, fe as LocalError, P as LocalReactExtensionMissingError, we as LocalReactiveDocument, o as MAX_IMPLICIT_GRID, s as MAX_LOCAL_ARRAY_LENGTH, f as MAX_LOCAL_DATA_TABLE_COLUMNS, m as MAX_LOCAL_DATA_TABLE_ROWS, p as MAX_LOCAL_PLOT_CURVES, h as MAX_LOCAL_PLOT_POINTS, l as MAX_LOCAL_PLOT_STEPS, d as MAX_LOCAL_STRING_LENGTH, g as MAX_LOCAL_VALUE_CHARACTERS, r as MIN_IMPLICIT_GRID, he as PrintValue, se as StaticValue, F as TableSurface, ee as ToneProblem, pe as accentStyle, ge as boolAttr, ne as clamp, y as compileExpression, i as compileLatex, n as compilePlotFormula, _ as countLocalCodePoints, z as createDiagramLayoutFallback, ke as createReactConfig, Te as createReactHost, ue as currentValue, ve as dateConstraint, Ce as defaultReactPresetPackage, A as defineReactComponent, De as defineReactComponentPackage, Oe as defineReactPreset, B as diagramEdgePath, L as diagramLayoutKey, re as displayValue, v as formatLocalDiagnostic, ie as formatNumber, me as formatSeconds, e as implicitGridSize, de as inlinePlainText, b as isLocalColor, u as isLocalEmail, oe as itemBool, ae as itemText, R as layoutDiagram, $ as localColor, N as localReactExtensionRenderer, ye as numberAttr, Se as numberConstraint, te as numericRange, xe as optionLabel, a as plotFormulaKind, Z as rawAttr, H as readBooleanAttr, j as reportLocalComponentError, k as safeLocalComponentEvent, O as sampleImplicit, E as sampleParametric, D as samplePlot, T as samplePolar, be as scalarText, Q as slotNumber, W as snapToStep, U as staticText, Y as textAttr, le as toneAttr, V as useComponentView, ce as useDisabled, q as useResetToken, J as useSourceAttributes, X as useValidationField, G as useValidationHint, K as useWriter, M as validateLocalReactExtensions };
|
|
8
|
+
import { A as k, B as A, C as j, D as M, E as N, F as P, G as F, H as I, L, M as R, N as z, O as B, P as V, R as H, S as U, T as W, U as G, V as K, _ as q, a as J, b as Y, c as X, d as Z, f as Q, g as $, h as ee, i as te, j as ne, k as re, l as ie, m as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he, z as ge } from "./sdk-core-BoJT1SIt.js";
|
|
9
|
+
import { n as _e, r as ve } from "./visual-frame-CyV1FXzs.js";
|
|
10
|
+
import { d as ye, f as be, l as xe, u as Se } from "./visuals-BZbZYA7w.js";
|
|
11
|
+
import { i as Ce, n as we, r as Te, t as Ee } from "./LocalDocumentView-sthUP0ct.js";
|
|
12
|
+
import { n as De, r as Oe } from "./package-core-WFK1RhAZ.js";
|
|
13
|
+
import { t as ke } from "./react-D5iGiUdL.js";
|
|
14
|
+
export { c as DEFAULT_LOCAL_DATA_TABLE_ROWS, le as FieldError, x as LOCAL_STYLE_CONTRACT, C as LOCAL_STYLE_LAYERS, w as LOCAL_STYLE_LAYER_ORDER, S as LOCAL_THEME_STYLE_LAYER, t as LatexError, ve as LatexView, Ee as LocalDocumentView, X as LocalError, ue as LocalReactExtensionMissingError, we as LocalReactiveDocument, o as MAX_IMPLICIT_GRID, s as MAX_LOCAL_ARRAY_LENGTH, f as MAX_LOCAL_DATA_TABLE_COLUMNS, m as MAX_LOCAL_DATA_TABLE_ROWS, p as MAX_LOCAL_PLOT_CURVES, h as MAX_LOCAL_PLOT_POINTS, l as MAX_LOCAL_PLOT_STEPS, d as MAX_LOCAL_STRING_LENGTH, g as MAX_LOCAL_VALUE_CHARACTERS, r as MIN_IMPLICIT_GRID, ie as PrintValue, de as StaticValue, _e as TableSurface, Z as ToneProblem, Q as accentStyle, se as boolAttr, ae as clamp, y as compileExpression, i as compileLatex, n as compilePlotFormula, _ as countLocalCodePoints, xe as createDiagramLayoutFallback, ke as createReactConfig, Te as createReactHost, ee as currentValue, $ as dateConstraint, Ce as defaultReactPresetPackage, F as defineReactComponent, De as defineReactComponentPackage, Oe as defineReactPreset, Se as diagramEdgePath, ye as diagramLayoutKey, q as displayValue, v as formatLocalDiagnostic, fe as formatNumber, he as formatSeconds, e as implicitGridSize, Y as inlinePlainText, b as isLocalColor, u as isLocalEmail, me as itemBool, U as itemText, be as layoutDiagram, j as localColor, ce as localReactExtensionRenderer, pe as numberAttr, W as numberConstraint, N as numericRange, M as optionLabel, a as plotFormulaKind, B as rawAttr, re as readBooleanAttr, te as reportLocalComponentError, J as safeLocalComponentEvent, O as sampleImplicit, E as sampleParametric, D as samplePlot, T as samplePolar, k as scalarText, ne as slotNumber, R as snapToStep, z as staticText, V as textAttr, P as toneAttr, L as useComponentView, H as useDisabled, ge as useResetToken, A as useSourceAttributes, K as useValidationField, I as useValidationHint, G as useWriter, oe as validateLocalReactExtensions };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, K as l, L as u, M as d, N as f, O as p, P as m, R as h, S as g, T as _, U as v, V as y, W as b, _ as x, b as S, c as C, d as w, f as T, g as E, h as D, j as O, k, l as A, m as j, p as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z, z as B } from "./preset-core-CKc5YXSM.js";
|
|
2
|
-
import { _ as V, f as H, g as U, l as W, n as G, u as K, v as q } from "./config-validation-
|
|
2
|
+
import { _ as V, f as H, g as U, l as W, n as G, u as K, v as q } from "./config-validation-F47AcE6o.js";
|
|
3
3
|
import { a as J, i as Y, n as X, r as Z, t as Q } from "./props-sJ8vk0cr.js";
|
|
4
4
|
import { n as $, t as ee } from "./registry-core-Bbad9Bm2.js";
|
|
5
5
|
import { n as te, t as ne } from "./default-components-BwQf0oP-.js";
|
|
6
|
-
import { _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, r as _e, s as ve, t as ye, u as be, v as xe, y as Se } from "./config-
|
|
7
|
-
import { n as Ce, r as we, t as Te } from "./registry-
|
|
6
|
+
import { _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, r as _e, s as ve, t as ye, u as be, v as xe, y as Se } from "./config-BadfhjdP.js";
|
|
7
|
+
import { n as Ce, r as we, t as Te } from "./registry-B9NGct4d.js";
|
|
8
8
|
export { ne as DEFAULT_COMPONENT_DEFINITIONS, te as DEFAULT_COMPONENT_NAMES, ye as DEFAULT_PRESET_ID, me as DEFAULT_PRESET_VERSION, f as LOCAL_ASSEMBLY_PROTOCOL, N as LOCAL_BINDING_ATTRIBUTES, U as LOCAL_COMPAT_PROFILES, m as LOCAL_COMPONENT_PROTOCOL, a as LOCAL_CONFIG_PROTOCOL, c as LOCAL_CONFIG_PROTOCOL_V2, u as LOCAL_EXTENSIONS_PROTOCOL, h as LOCAL_PRESET_PROTOCOL, B as LOCAL_REACT_PRESET_PROTOCOL, t as LOCAL_SDK_VERSION, re as LOCAL_STYLE_CONTRACT, xe as LOCAL_STYLE_LAYERS, Se as LOCAL_STYLE_LAYER_ORDER, ae as LOCAL_THEME_STYLE_LAYER, C as MAX_LOCAL_SDK_BINDINGS, A as MAX_LOCAL_SDK_COMPONENTS, G as MAX_LOCAL_SDK_CONFIG_BYTES, F as MAX_LOCAL_SDK_DEPENDENCIES, w as MAX_LOCAL_SDK_ENUM_VALUES, T as MAX_LOCAL_SDK_ID_LENGTH, M as MAX_LOCAL_SDK_MANIFEST_BYTES, j as MAX_LOCAL_SDK_NAME_LENGTH, D as MAX_LOCAL_SDK_PATTERN_LENGTH, E as MAX_LOCAL_SDK_PROPS, x as MAX_LOCAL_SDK_RULES, I as MAX_LOCAL_SDK_RULE_SLOTS, z as MAX_LOCAL_SDK_STRING_LENGTH, S as MAX_LOCAL_SDK_STRUCTURE_ITEMS, R as MAX_LOCAL_SDK_STYLES, g as MAX_LOCAL_SDK_STYLE_ID_LENGTH, _e as MAX_LOCAL_SDK_THEMES, n as MAX_LOCAL_SDK_VERSION_LENGTH, y as MAX_LOCAL_VERSION_COMPARATORS, s as MAX_LOCAL_VERSION_RANGE_LENGTH, L as canonicalLocalComponent, ge as collectLocalThemeCss, ee as componentSchemaFromDefinition, pe as composeLocalTheme, de as createLocalConfig, _ as defineLocalComponent, be as defineLocalPreset, P as defineLocalPresetCore, ue as defineLocalTheme, V as findLocalCompatProfile, Te as getLocalComponentDefinition, Ce as getLocalComponentRegistry, i as isLocalComponentId, r as isLocalComponentName, le as isLocalInlineCss, v as isLocalVersion, b as isLocalVersionRange, W as localAssemblyIdentity, K as localAssemblySeal, Q as localBindingAttributeNames, q as localCompatProfiles, ie as localComponentConfigKey, p as localComponentDigest, X as localComponentHostBinding, k as localComponentRequirement, $ as localComponentSchema, we as localComponentSchemas, he as localConfigKey, H as localConfigKeyMatches, e as localJsonByteLength, se as localPresetDigest, O as localStructureFromChildren, o as localVersionSatisfies, l as parseLocalVersionRange, d as readLocalComponentManifest, ve as readLocalConfig, ce as readLocalPresetPackage, Z as resolveLocalComponentBindingConstraints, Y as resolveLocalComponentProp, J as resolveLocalComponentProps, oe as snapshotLocalConfig, fe as validateLocalDocumentConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./LocalDocumentViewCore-
|
|
2
|
-
import { i as t } from "./session-core-
|
|
1
|
+
import { t as e } from "./LocalDocumentViewCore-GiWV3bey.js";
|
|
2
|
+
import { i as t } from "./session-core-nmJHuR9c.js";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// src/standalone/host.tsx
|
|
5
5
|
function r(t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./LocalDocumentView-
|
|
2
|
-
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./session-core-
|
|
1
|
+
import { t as e } from "./LocalDocumentView-sthUP0ct.js";
|
|
2
|
+
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./session-core-nmJHuR9c.js";
|
|
3
3
|
// src/standalone/session.tsx
|
|
4
4
|
function l(t, n, r) {
|
|
5
5
|
return i(t, n, e, r);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e } from "./config-
|
|
2
|
-
import { n as t } from "./registry-
|
|
1
|
+
import { s as e } from "./config-BadfhjdP.js";
|
|
2
|
+
import { n as t } from "./registry-B9NGct4d.js";
|
|
3
3
|
import { c as n, f as r, h as i, i as a, k as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h, v as g, w as _, y as v } from "./values-CIt8AjiU.js";
|
|
4
4
|
// src/testing/browser.ts
|
|
5
5
|
var y = /* @__PURE__ */ new Set([
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as e } from "./config-
|
|
2
|
-
import { n as t } from "./registry-
|
|
3
|
-
import { t as n } from "./compiler-
|
|
4
|
-
import { n as r } from "./runtime-
|
|
5
|
-
import { t as i } from "./LocalDocumentView-
|
|
1
|
+
import { s as e } from "./config-BadfhjdP.js";
|
|
2
|
+
import { n as t } from "./registry-B9NGct4d.js";
|
|
3
|
+
import { t as n } from "./compiler-eOfcinZs.js";
|
|
4
|
+
import { n as r } from "./runtime-kcA7bG7G.js";
|
|
5
|
+
import { t as i } from "./LocalDocumentView-sthUP0ct.js";
|
|
6
6
|
import { O as a, b as o, c as s, g as c, h as l, k as u, l as d, m as f, o as p, p as m, t as h, u as g, y as _ } from "./values-CIt8AjiU.js";
|
|
7
|
-
import { o as v } from "./export-
|
|
7
|
+
import { o as v } from "./export-BqVmTXm8.js";
|
|
8
8
|
import { renderLocalStaticDocument as y } from "./reactive-md-react-server.js";
|
|
9
9
|
import { createElement as b } from "react";
|
|
10
10
|
import { renderToString as x } from "react-dom/server";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { M as e, O as t, T as n } from "./preset-core-CKc5YXSM.js";
|
|
2
2
|
import { a as r, i } from "./props-sJ8vk0cr.js";
|
|
3
|
-
import { s as a } from "./config-
|
|
4
|
-
import { n as o } from "./registry-
|
|
5
|
-
import { t as s } from "./compiler-
|
|
6
|
-
import { n as c } from "./runtime-
|
|
3
|
+
import { s as a } from "./config-BadfhjdP.js";
|
|
4
|
+
import { n as o } from "./registry-B9NGct4d.js";
|
|
5
|
+
import { t as s } from "./compiler-eOfcinZs.js";
|
|
6
|
+
import { n as c } from "./runtime-kcA7bG7G.js";
|
|
7
7
|
import { A as l, C as u, D as d, E as f, O as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, h as S, i as C, k as w, m as T, n as E, o as D, p as O, r as k, t as A, u as j, v as M, w as ee, x as te, y as N } from "./values-CIt8AjiU.js";
|
|
8
8
|
// src/testing/behavior.ts
|
|
9
9
|
var P = /* @__PURE__ */ new Set([
|