@oomol-lab/open-flow 0.1.0-beta.2 → 0.1.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
- package/dist/browser/carbon-Cn-DTyjG.js +54 -0
- package/dist/browser/createResourceDialog-DlrAMxmo.js +110 -0
- package/dist/browser/dist-B_T-OpQp.js +4 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/dist-DYjIVIZC.js +795 -0
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
- package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +20 -6
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5405 -286
- package/dist/browser/flow-change-schema.d.ts +6 -0
- package/dist/browser/flow-change.d.ts +173 -14
- package/dist/browser/flow-change.js +5271 -114
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-jX3KYcb0.js +11020 -0
- package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
- package/dist/browser/flowWorkspace-BIYwslVl.js +148497 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +33 -0
- package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
- package/dist/browser/inputValues-BWfRHJWC.js +43 -0
- package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
- package/dist/browser/licenses.md +149 -700
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
- package/dist/browser/theme.css +461 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
- package/dist/browser/ui-input.d.ts +3 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +12 -0
- package/dist/browser/ui.js +2598 -0
- package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +2043 -1327
- package/dist/browser/workbenchSelect-CwP6rphY.js +11666 -0
- package/dist/common/control-api-conformance.d.ts +7 -0
- package/dist/common/control-api-conformance.js +5568 -166
- package/dist/common/control-api-errors.d.ts +9 -0
- package/dist/common/control-api.d.ts +309 -38
- package/dist/common/control-api.js +5817 -576
- package/dist/common/control-requests.d.ts +68 -0
- package/dist/common/control-requests.js +4950 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-encoding.d.ts +5 -2
- package/dist/common/flow-encoding.js +4820 -66
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +10 -6
- package/dist/common/flow-semantics.js +9982 -1701
- package/dist/common/integration-trigger.d.ts +24 -1
- package/dist/common/integration-trigger.js +188 -52
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +765 -0
- package/dist/common/mcp.js +6477 -0
- package/dist/common/provider-triggers.js +5996 -993
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +12 -17
- package/dist/common/run-lifecycle.d.ts +21 -2
- package/dist/common/run-lifecycle.js +83 -2
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +36 -3
- package/dist/common/runtime-contract.js +227 -19
- package/dist/common/scheduler.d.ts +77 -18
- package/dist/common/scheduler.js +8259 -248
- package/dist/index.d.ts +6 -5
- package/package.json +21 -1
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { o as e } from "./dist-Dz6Nglsd.js";
|
|
2
|
+
import t, { createContext as n, createElement as r, useContext as i, useDebugValue as a, useEffect as o, useMemo as s, useState as c } from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/use-value-enhancer@5.0.7+5fffd67310d91248/node_modules/use-value-enhancer/dist/use-value-enhancer.mjs
|
|
4
|
+
var l = (t) => e(t) ? t : e(t?.$) ? t.$ : void 0, u = () => {}, d = () => u, f = [d, d], p = t.useSyncExternalStore ? (e, n = !0) => {
|
|
5
|
+
let [r, i, o] = s(() => {
|
|
6
|
+
let t = l(e);
|
|
7
|
+
return t && [
|
|
8
|
+
(e) => t.subscribe(e, n),
|
|
9
|
+
() => t.$version,
|
|
10
|
+
t
|
|
11
|
+
];
|
|
12
|
+
}, [e, n]) ?? f, c = t.useSyncExternalStore(r, i, i), u = s(() => o ? o.get() : e, [
|
|
13
|
+
c,
|
|
14
|
+
o,
|
|
15
|
+
e
|
|
16
|
+
]);
|
|
17
|
+
return a(u), u;
|
|
18
|
+
} : (e, t = !0) => {
|
|
19
|
+
let n = s(() => l(e), [e]), [r, i] = c(() => n?.$version);
|
|
20
|
+
o(() => {
|
|
21
|
+
if (n) {
|
|
22
|
+
let e = () => n.$version;
|
|
23
|
+
return n.subscribe(() => i(e), t);
|
|
24
|
+
}
|
|
25
|
+
}, [n, t]);
|
|
26
|
+
let u = s(() => n ? n.get() : e, [
|
|
27
|
+
r,
|
|
28
|
+
n,
|
|
29
|
+
e
|
|
30
|
+
]);
|
|
31
|
+
return a(u), u;
|
|
32
|
+
}, m = /* @__PURE__ */ n(null), h = ({ i18n: e, children: t }) => {
|
|
33
|
+
let n = p(e.t$), a = i(m)?.t;
|
|
34
|
+
return r(m.Provider, {
|
|
35
|
+
value: s(() => ({
|
|
36
|
+
t: a ? (e, t) => {
|
|
37
|
+
let r = n(e, t);
|
|
38
|
+
return r === e ? a(e, t) : r;
|
|
39
|
+
} : n,
|
|
40
|
+
i18n: e
|
|
41
|
+
}), [n, a]),
|
|
42
|
+
children: t
|
|
43
|
+
});
|
|
44
|
+
}, g = (e) => {
|
|
45
|
+
let t = i(m);
|
|
46
|
+
if (!t && !e) throw Error("I18nProvider not found");
|
|
47
|
+
return t;
|
|
48
|
+
}, _ = (e) => g(e)?.t, v = (e) => g(e)?.i18n, y = (e) => p(v(e)?.lang$);
|
|
49
|
+
//#endregion
|
|
50
|
+
export { p as a, _ as i, v as n, y as r, h as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { i as r } from "./main-BDnNHhkU.js";
|
|
3
|
+
import { a as i } from "./dist-B_T-OpQp.js";
|
|
4
4
|
import { memo as a, useEffect as o, useMemo as s, useRef as c } from "react";
|
|
5
5
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../node_modules/.bun/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
|
|
@@ -1396,7 +1396,7 @@ var Be = class extends Error {
|
|
|
1396
1396
|
};
|
|
1397
1397
|
Be.prototype.file = "", Be.prototype.name = "", Be.prototype.reason = "", Be.prototype.message = "", Be.prototype.stack = "", Be.prototype.column = void 0, Be.prototype.line = void 0, Be.prototype.ancestors = void 0, Be.prototype.cause = void 0, Be.prototype.fatal = void 0, Be.prototype.place = void 0, Be.prototype.ruleId = void 0, Be.prototype.source = void 0;
|
|
1398
1398
|
//#endregion
|
|
1399
|
-
//#region ../../node_modules/.bun/hast-util-to-jsx-runtime@2.3.6
|
|
1399
|
+
//#region ../../node_modules/.bun/hast-util-to-jsx-runtime@2.3.6/node_modules/hast-util-to-jsx-runtime/lib/index.js
|
|
1400
1400
|
var Ve = /* @__PURE__ */ e(je(), 1), He = {}.hasOwnProperty, Ue = /* @__PURE__ */ new Map(), We = /[A-Z]/g, Ge = /* @__PURE__ */ new Set([
|
|
1401
1401
|
"table",
|
|
1402
1402
|
"tbody",
|
|
@@ -1798,7 +1798,7 @@ function Gt(e, t, n, r) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
1800
|
//#endregion
|
|
1801
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
1801
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/initialize/content.js
|
|
1802
1802
|
var Kt = { tokenize: qt };
|
|
1803
1803
|
function qt(e) {
|
|
1804
1804
|
let t = e.attempt(this.parser.constructs.contentInitial, r, i), n;
|
|
@@ -1829,7 +1829,7 @@ function qt(e) {
|
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
//#endregion
|
|
1832
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
1832
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/initialize/document.js
|
|
1833
1833
|
var Jt = { tokenize: Xt }, Yt = { tokenize: Zt };
|
|
1834
1834
|
function Xt(e) {
|
|
1835
1835
|
let t = this, n = [], r = 0, i, a, o;
|
|
@@ -3279,7 +3279,7 @@ function Ir(e, t, n) {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
//#endregion
|
|
3282
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3282
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.js
|
|
3283
3283
|
var Lr = { tokenize: Rr };
|
|
3284
3284
|
function Rr(e) {
|
|
3285
3285
|
let t = this, n = e.attempt(sn, r, e.attempt(this.parser.constructs.flowInitial, i, Gt(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Nn, i)), "linePrefix")));
|
|
@@ -3300,7 +3300,7 @@ function Rr(e) {
|
|
|
3300
3300
|
}
|
|
3301
3301
|
}
|
|
3302
3302
|
//#endregion
|
|
3303
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3303
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/initialize/text.js
|
|
3304
3304
|
var zr = { resolveAll: Ur() }, Br = Hr("string"), Vr = Hr("text");
|
|
3305
3305
|
function Hr(e) {
|
|
3306
3306
|
return {
|
|
@@ -3385,7 +3385,7 @@ function Wr(e, t) {
|
|
|
3385
3385
|
return e;
|
|
3386
3386
|
}
|
|
3387
3387
|
//#endregion
|
|
3388
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3388
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/constructs.js
|
|
3389
3389
|
var Gr = /* @__PURE__ */ t({
|
|
3390
3390
|
attentionMarkers: () => $r,
|
|
3391
3391
|
contentInitial: () => qr,
|
|
@@ -3442,7 +3442,7 @@ var Gr = /* @__PURE__ */ t({
|
|
|
3442
3442
|
96: Tn
|
|
3443
3443
|
}, Qr = { null: [en, zr] }, $r = { null: [42, 95] }, ei = { null: [] };
|
|
3444
3444
|
//#endregion
|
|
3445
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3445
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js
|
|
3446
3446
|
function ti(e, t, n) {
|
|
3447
3447
|
let r = {
|
|
3448
3448
|
_bufferIndex: -1,
|
|
@@ -3615,7 +3615,7 @@ function ri(e, t) {
|
|
|
3615
3615
|
return r.join("");
|
|
3616
3616
|
}
|
|
3617
3617
|
//#endregion
|
|
3618
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3618
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/parse.js
|
|
3619
3619
|
function ii(e) {
|
|
3620
3620
|
let t = {
|
|
3621
3621
|
constructs: Dt([Gr, ...(e || {}).extensions || []]),
|
|
@@ -3636,13 +3636,13 @@ function ii(e) {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
3638
|
//#endregion
|
|
3639
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3639
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/postprocess.js
|
|
3640
3640
|
function ai(e) {
|
|
3641
3641
|
for (; !jn(e););
|
|
3642
3642
|
return e;
|
|
3643
3643
|
}
|
|
3644
3644
|
//#endregion
|
|
3645
|
-
//#region ../../node_modules/.bun/micromark@4.0.2
|
|
3645
|
+
//#region ../../node_modules/.bun/micromark@4.0.2/node_modules/micromark/lib/preprocess.js
|
|
3646
3646
|
var oi = /[\0\t\n\r]/g;
|
|
3647
3647
|
function si() {
|
|
3648
3648
|
let e = 1, t = "", n = !0, r;
|
|
@@ -3687,7 +3687,7 @@ function ui(e, t, n) {
|
|
|
3687
3687
|
return Ct(n) || e;
|
|
3688
3688
|
}
|
|
3689
3689
|
//#endregion
|
|
3690
|
-
//#region ../../node_modules/.bun/mdast-util-from-markdown@2.0.3
|
|
3690
|
+
//#region ../../node_modules/.bun/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.js
|
|
3691
3691
|
var di = {}.hasOwnProperty;
|
|
3692
3692
|
function fi(e, t, n) {
|
|
3693
3693
|
return t && typeof t == "object" && (n = t, t = void 0), pi(n)(ai(ii(n).document().write(si()(e, t, !0))));
|
|
@@ -4234,7 +4234,7 @@ function _i(e, t) {
|
|
|
4234
4234
|
}) + ") is still open");
|
|
4235
4235
|
}
|
|
4236
4236
|
//#endregion
|
|
4237
|
-
//#region ../../node_modules/.bun/remark-parse@11.0.0
|
|
4237
|
+
//#region ../../node_modules/.bun/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
|
|
4238
4238
|
function vi(e) {
|
|
4239
4239
|
let t = this;
|
|
4240
4240
|
t.parser = n;
|
|
@@ -5675,7 +5675,7 @@ function yo(e) {
|
|
|
5675
5675
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
5676
5676
|
}
|
|
5677
5677
|
//#endregion
|
|
5678
|
-
//#region ../../node_modules/.bun/react-markdown@10.1.0+
|
|
5678
|
+
//#region ../../node_modules/.bun/react-markdown@10.1.0+95f74e15225f916f/node_modules/react-markdown/lib/index.js
|
|
5679
5679
|
var bo = [], xo = { allowDangerousHtml: !0 }, So = /^(https?|ircs?|mailto|xmpp)$/i, Co = [
|
|
5680
5680
|
{
|
|
5681
5681
|
from: "astPlugins",
|
|
@@ -42245,7 +42245,7 @@ function mC(e) {
|
|
|
42245
42245
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
42246
42246
|
}
|
|
42247
42247
|
//#endregion
|
|
42248
|
-
//#region ../../node_modules/.bun/mdast-util-frontmatter@2.0.1
|
|
42248
|
+
//#region ../../node_modules/.bun/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.js
|
|
42249
42249
|
function hC(e) {
|
|
42250
42250
|
let t = cC(e), n = {}, r = {}, i = -1;
|
|
42251
42251
|
for (; ++i < t.length;) {
|
|
@@ -42304,7 +42304,7 @@ function SC(e, t) {
|
|
|
42304
42304
|
return typeof e == "string" ? e : e[t];
|
|
42305
42305
|
}
|
|
42306
42306
|
//#endregion
|
|
42307
|
-
//#region ../../node_modules/.bun/remark-frontmatter@5.0.0
|
|
42307
|
+
//#region ../../node_modules/.bun/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.js
|
|
42308
42308
|
var CC = "yaml";
|
|
42309
42309
|
function wC(e) {
|
|
42310
42310
|
let t = this, n = e || CC, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
@@ -42501,7 +42501,7 @@ function GC(e, t) {
|
|
|
42501
42501
|
return (e.index === 0 || Ht(n) || Vt(n)) && (!t || n !== 47);
|
|
42502
42502
|
}
|
|
42503
42503
|
//#endregion
|
|
42504
|
-
//#region ../../node_modules/.bun/mdast-util-gfm-footnote@2.1.0
|
|
42504
|
+
//#region ../../node_modules/.bun/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
42505
42505
|
tw.peek = ew;
|
|
42506
42506
|
function KC() {
|
|
42507
42507
|
this.buffer();
|
|
@@ -42595,7 +42595,7 @@ function aw(e, t, n) {
|
|
|
42595
42595
|
return (n ? "" : " ") + e;
|
|
42596
42596
|
}
|
|
42597
42597
|
//#endregion
|
|
42598
|
-
//#region ../../node_modules/.bun/mdast-util-gfm-strikethrough@2.0.0
|
|
42598
|
+
//#region ../../node_modules/.bun/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
42599
42599
|
var ow = [
|
|
42600
42600
|
"autolink",
|
|
42601
42601
|
"destinationLiteral",
|
|
@@ -43226,7 +43226,7 @@ var dT = {
|
|
|
43226
43226
|
thematicBreak: uT
|
|
43227
43227
|
};
|
|
43228
43228
|
//#endregion
|
|
43229
|
-
//#region ../../node_modules/.bun/mdast-util-gfm-table@2.0.0
|
|
43229
|
+
//#region ../../node_modules/.bun/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
|
|
43230
43230
|
function fT() {
|
|
43231
43231
|
return {
|
|
43232
43232
|
enter: {
|
|
@@ -43359,7 +43359,7 @@ function bT(e) {
|
|
|
43359
43359
|
}
|
|
43360
43360
|
}
|
|
43361
43361
|
//#endregion
|
|
43362
|
-
//#region ../../node_modules/.bun/mdast-util-gfm-task-list-item@2.0.0
|
|
43362
|
+
//#region ../../node_modules/.bun/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
43363
43363
|
function xT() {
|
|
43364
43364
|
return { exit: {
|
|
43365
43365
|
taskListCheckValueChecked: CT,
|
|
@@ -43414,7 +43414,7 @@ function TT(e, t, n, r) {
|
|
|
43414
43414
|
}
|
|
43415
43415
|
}
|
|
43416
43416
|
//#endregion
|
|
43417
|
-
//#region ../../node_modules/.bun/mdast-util-gfm@3.1.0
|
|
43417
|
+
//#region ../../node_modules/.bun/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
|
|
43418
43418
|
function ET() {
|
|
43419
43419
|
return [
|
|
43420
43420
|
MC(),
|
|
@@ -44185,14 +44185,14 @@ function xE(e) {
|
|
|
44185
44185
|
]);
|
|
44186
44186
|
}
|
|
44187
44187
|
//#endregion
|
|
44188
|
-
//#region ../../node_modules/.bun/remark-gfm@4.0.1
|
|
44188
|
+
//#region ../../node_modules/.bun/remark-gfm@4.0.1/node_modules/remark-gfm/lib/index.js
|
|
44189
44189
|
var SE = {};
|
|
44190
44190
|
function CE(e) {
|
|
44191
44191
|
let t = this, n = e || SE, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
44192
44192
|
i.push(xE(n)), a.push(ET()), o.push(DT(n));
|
|
44193
44193
|
}
|
|
44194
44194
|
//#endregion
|
|
44195
|
-
//#region ../../node_modules/.bun/mdast-util-math@3.0.0
|
|
44195
|
+
//#region ../../node_modules/.bun/mdast-util-math@3.0.0/node_modules/mdast-util-math/lib/index.js
|
|
44196
44196
|
function wE() {
|
|
44197
44197
|
return {
|
|
44198
44198
|
enter: {
|
|
@@ -44455,14 +44455,14 @@ function NE(e) {
|
|
|
44455
44455
|
};
|
|
44456
44456
|
}
|
|
44457
44457
|
//#endregion
|
|
44458
|
-
//#region ../../node_modules/.bun/remark-math@6.0.0
|
|
44458
|
+
//#region ../../node_modules/.bun/remark-math@6.0.0/node_modules/remark-math/lib/index.js
|
|
44459
44459
|
var PE = {};
|
|
44460
44460
|
function FE(e) {
|
|
44461
44461
|
let t = this, n = e || PE, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
44462
44462
|
i.push(NE(n)), a.push(wE()), o.push(TE(n));
|
|
44463
44463
|
}
|
|
44464
44464
|
//#endregion
|
|
44465
|
-
//#region src/
|
|
44465
|
+
//#region src/ui/browser/markdown/markdownContent.tsx
|
|
44466
44466
|
var IE = [
|
|
44467
44467
|
CE,
|
|
44468
44468
|
FE,
|
|
@@ -44531,7 +44531,7 @@ function GE(e, t, n) {
|
|
|
44531
44531
|
let t = r[1];
|
|
44532
44532
|
e.tagName = "iframe", e.properties = {
|
|
44533
44533
|
src: `https://www.youtube.com/embed/${t}`,
|
|
44534
|
-
title: n("
|
|
44534
|
+
title: n("markdown.videoYouTube"),
|
|
44535
44535
|
...UE
|
|
44536
44536
|
}, e.children = [];
|
|
44537
44537
|
}
|
|
@@ -44539,15 +44539,15 @@ function GE(e, t, n) {
|
|
|
44539
44539
|
let t = r[1];
|
|
44540
44540
|
e.tagName = "iframe", e.properties = {
|
|
44541
44541
|
src: `https://player.bilibili.com/player.html?bvid=${t}`,
|
|
44542
|
-
title: n("
|
|
44542
|
+
title: n("markdown.videoBilibili"),
|
|
44543
44543
|
...UE
|
|
44544
44544
|
}, e.children = [];
|
|
44545
44545
|
}
|
|
44546
44546
|
}
|
|
44547
|
-
var KE = /* @__PURE__ */ a(function({ dark: e,
|
|
44548
|
-
let
|
|
44547
|
+
var KE = /* @__PURE__ */ a(function({ dark: e, unstyled: t, text: n, className: i = "", components: a, mermaid: l }) {
|
|
44548
|
+
let d = r(), f = s(() => RE(d), [d]), p = c(null), m = c(/* @__PURE__ */ new WeakMap());
|
|
44549
44549
|
return o(() => {
|
|
44550
|
-
let t =
|
|
44550
|
+
let t = l ? [...p.current?.querySelectorAll("pre code.language-mermaid") ?? []] : [];
|
|
44551
44551
|
if (t.length == 0) return;
|
|
44552
44552
|
let n = !1;
|
|
44553
44553
|
return (async () => {
|
|
@@ -44555,8 +44555,8 @@ var KE = /* @__PURE__ */ a(function({ dark: e, text: t, className: n = "", compo
|
|
|
44555
44555
|
if (n) return;
|
|
44556
44556
|
let a = i[e ? "github-dark" : "github-light"];
|
|
44557
44557
|
for (let e of t) {
|
|
44558
|
-
let t =
|
|
44559
|
-
|
|
44558
|
+
let t = m.current.get(e), i = e.querySelector("svg") && t != null ? t : e.textContent || "";
|
|
44559
|
+
m.current.set(e, i);
|
|
44560
44560
|
try {
|
|
44561
44561
|
let t = r(i, {
|
|
44562
44562
|
...a,
|
|
@@ -44571,17 +44571,17 @@ var KE = /* @__PURE__ */ a(function({ dark: e, text: t, className: n = "", compo
|
|
|
44571
44571
|
n = !0;
|
|
44572
44572
|
};
|
|
44573
44573
|
}, [
|
|
44574
|
-
|
|
44574
|
+
l,
|
|
44575
44575
|
e,
|
|
44576
|
-
|
|
44577
|
-
]),
|
|
44578
|
-
ref:
|
|
44579
|
-
className: `
|
|
44576
|
+
n
|
|
44577
|
+
]), n ? /* @__PURE__ */ u("div", {
|
|
44578
|
+
ref: p,
|
|
44579
|
+
className: `${t ? "" : `open-flow-markdown-${e ? "dark" : "light"}`} ${i}`,
|
|
44580
44580
|
children: /* @__PURE__ */ u(wo, {
|
|
44581
|
-
rehypePlugins:
|
|
44581
|
+
rehypePlugins: f,
|
|
44582
44582
|
remarkPlugins: IE,
|
|
44583
|
-
components:
|
|
44584
|
-
children:
|
|
44583
|
+
components: a,
|
|
44584
|
+
children: n
|
|
44585
44585
|
})
|
|
44586
44586
|
}) : null;
|
|
44587
44587
|
});
|