@oomol-lab/open-flow 0.1.0-beta.3 → 0.1.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
  2. package/dist/browser/carbon-Cn-DTyjG.js +54 -0
  3. package/dist/browser/createResourceDialog-FBRnCMK6.js +110 -0
  4. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  5. package/dist/browser/dist-CoszrK7m.js +4 -0
  6. package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
  7. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  8. package/dist/browser/dist-DYjIVIZC.js +795 -0
  9. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  10. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  11. package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  14. package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
  15. package/dist/browser/editorComponent-CyH2o-Ji.js +14811 -0
  16. package/dist/browser/{esm-C2UUqIUP.js → esm-B7A42FzW.js} +68 -59
  17. package/dist/browser/event-sources.d.ts +30 -0
  18. package/dist/browser/flow-authoring-module.d.ts +2 -2
  19. package/dist/browser/flow-authoring-node.d.ts +26 -8
  20. package/dist/browser/flow-authoring.d.ts +1 -1
  21. package/dist/browser/flow-authoring.js +5278 -313
  22. package/dist/browser/flow-change-schema.d.ts +11 -0
  23. package/dist/browser/flow-change.d.ts +193 -18
  24. package/dist/browser/flow-change.js +5196 -137
  25. package/dist/browser/flow-notifications.d.ts +11 -2
  26. package/dist/browser/flowChanges-ScpWTKtQ.js +12293 -0
  27. package/dist/browser/{flowRunInputEditorStore-CwvOiIiU.js → flowRunInputEditorStore-CTORQcA2.js} +864 -4000
  28. package/dist/browser/flowWorkspace-CY1r6dwz.js +153101 -0
  29. package/dist/browser/host-conformance.d.ts +7 -0
  30. package/dist/browser/host-conformance.js +39 -0
  31. package/dist/browser/inputValues-C21gYJuc.js +43 -0
  32. package/dist/browser/licenses.md +195 -662
  33. package/dist/browser/lite-BuKZ8joP.js +8545 -0
  34. package/dist/browser/main-BDnNHhkU.js +50 -0
  35. package/dist/browser/{markdownContent-DUfLdnUt.js → markdownContent-D2oHGWc6.js} +53 -53
  36. package/dist/browser/theme.css +527 -34
  37. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
  38. package/dist/browser/ui-input.d.ts +5 -0
  39. package/dist/browser/ui-label.d.ts +3 -0
  40. package/dist/browser/ui-textarea.d.ts +3 -0
  41. package/dist/browser/ui.css +2 -0
  42. package/dist/browser/ui.css.d.ts +1 -0
  43. package/dist/browser/ui.d.ts +34 -0
  44. package/dist/browser/ui.js +2632 -0
  45. package/dist/browser/value-DPg_9yXB.js +93 -0
  46. package/dist/browser/warmCodeTheme-DVv4-rDO.js +35 -0
  47. package/dist/browser/workbench-contract.d.ts +27 -2
  48. package/dist/browser/workbench.css +1 -1
  49. package/dist/browser/workbench.d.ts +2 -0
  50. package/dist/browser/workbench.js +2767 -1406
  51. package/dist/browser/workbenchSelect-DAaGuZwP.js +5971 -0
  52. package/dist/common/authoringExamples.d.ts +28 -0
  53. package/dist/common/control-api-conformance.d.ts +7 -0
  54. package/dist/common/control-api-conformance.js +5570 -171
  55. package/dist/common/control-api-errors.d.ts +37 -0
  56. package/dist/common/control-api.d.ts +408 -47
  57. package/dist/common/control-api.js +6071 -569
  58. package/dist/common/control-requests.d.ts +104 -0
  59. package/dist/common/control-requests.js +5401 -0
  60. package/dist/common/cron-trigger.d.ts +2 -1
  61. package/dist/common/cron-trigger.js +27 -24
  62. package/dist/common/draftOperations.d.ts +14 -0
  63. package/dist/common/engine-contract.d.ts +3 -1
  64. package/dist/common/event-sources.d.ts +50 -0
  65. package/dist/common/feishu-events.d.ts +20 -0
  66. package/dist/common/feishu-subscriptions.d.ts +10 -0
  67. package/dist/common/flow-agent.d.ts +10 -0
  68. package/dist/common/flow-encoding.d.ts +16 -2
  69. package/dist/common/flow-encoding.js +5097 -68
  70. package/dist/common/flow-graph.d.ts +52 -0
  71. package/dist/common/flow-json.d.ts +2 -0
  72. package/dist/common/flow-modules.d.ts +20 -0
  73. package/dist/common/flow-notifications.d.ts +11 -2
  74. package/dist/common/flow-schema.d.ts +17 -0
  75. package/dist/common/flow-semantics.d.ts +12 -6
  76. package/dist/common/flow-semantics.js +15875 -9676
  77. package/dist/common/flowInspection.d.ts +16 -0
  78. package/dist/common/fr-iv1541dF.js +93 -0
  79. package/dist/common/integration-trigger.d.ts +29 -2
  80. package/dist/common/integration-trigger.js +192 -56
  81. package/dist/common/ja-Bq-ZDOD4.js +93 -0
  82. package/dist/common/ko-Z-k9R2c6.js +93 -0
  83. package/dist/common/localization.d.ts +2 -0
  84. package/dist/common/localization.js +37 -1
  85. package/dist/common/mcp-conformance.d.ts +2 -0
  86. package/dist/common/mcp.d.ts +768 -0
  87. package/dist/common/mcp.js +6739 -0
  88. package/dist/common/poll-trigger.d.ts +5 -0
  89. package/dist/common/poll-trigger.js +26 -22
  90. package/dist/common/provider-triggers.d.ts +4 -0
  91. package/dist/common/provider-triggers.js +7312 -1737
  92. package/dist/common/ru-B4gFecYZ.js +93 -0
  93. package/dist/common/run-events.d.ts +2 -2
  94. package/dist/common/run-events.js +13 -17
  95. package/dist/common/run-lifecycle.d.ts +21 -2
  96. package/dist/common/run-lifecycle.js +83 -2
  97. package/dist/common/run-results.d.ts +57 -0
  98. package/dist/common/runtime-contract.d.ts +38 -3
  99. package/dist/common/runtime-contract.js +291 -19
  100. package/dist/common/scheduler.d.ts +103 -19
  101. package/dist/common/scheduler.js +8240 -261
  102. package/dist/common/trigger-catalog.d.ts +17 -0
  103. package/dist/common/trigger-config-options.d.ts +13 -0
  104. package/dist/common/trigger-contract.d.ts +5 -0
  105. package/dist/common/trigger-localization.d.ts +7 -0
  106. package/dist/common/webhook-trigger.d.ts +3 -3
  107. package/dist/common/webhook-trigger.js +64 -18
  108. package/dist/common/zh-CN-ByQ6nYam.js +93 -0
  109. package/dist/common/zh-TW-QjIarvX9.js +93 -0
  110. package/dist/index.d.ts +6 -5
  111. package/package.json +21 -1
  112. package/dist/browser/carbon-DMCVsjHo.js +0 -53
  113. package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
  114. package/dist/browser/diagnostics-SDCyFuxm.js +0 -11634
  115. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  116. package/dist/browser/dist-BpopSHwP.js +0 -1543
  117. package/dist/browser/dist-CP0883sY.js +0 -4
  118. package/dist/browser/dist-CUSrALSX.js +0 -1620
  119. package/dist/browser/flowWorkspace-BZ_eiQNR.js +0 -45393
  120. package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
  121. package/dist/browser/languages-DgJehE1g.js +0 -62
  122. package/dist/browser/main-DmjVyuWr.js +0 -76
  123. 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,8 +1,8 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-CEFd7nDs.js";
2
- import { a as r } from "./main-DmjVyuWr.js";
3
- import { a as i } from "./dist-CP0883sY.js";
4
- import { memo as a, useEffect as o, useMemo as s, useRef as c } from "react";
5
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
2
+ import { i as r } from "./main-BDnNHhkU.js";
3
+ import { i } from "./dist-CoszrK7m.js";
4
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { memo as c, useEffect as l, useMemo as u, useRef as d } from "react";
6
6
  //#region ../../node_modules/.bun/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
7
7
  var f = /* @__PURE__ */ n(((e, t) => {
8
8
  var n = function(e) {
@@ -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+759ce506b1ed1a42/node_modules/hast-util-to-jsx-runtime/lib/index.js
1399
+ //#region ../../node_modules/.bun/hast-util-to-jsx-runtime@2.3.6+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/initialize/content.js
1801
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/initialize/document.js
1832
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/initialize/flow.js
3282
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/initialize/text.js
3303
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/constructs.js
3388
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/create-tokenizer.js
3445
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/parse.js
3618
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/postprocess.js
3639
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/micromark/lib/preprocess.js
3645
+ //#region ../../node_modules/.bun/micromark@4.0.2+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-from-markdown/lib/index.js
3690
+ //#region ../../node_modules/.bun/mdast-util-from-markdown@2.0.3+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/remark-parse/lib/index.js
4237
+ //#region ../../node_modules/.bun/remark-parse@11.0.0+2b91fc17bf64bdfd/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+6a54a6ce060448a5/node_modules/react-markdown/lib/index.js
5678
+ //#region ../../node_modules/.bun/react-markdown@10.1.0+b5b20d3ad0605c47/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",
@@ -5770,19 +5770,19 @@ function Eo(e) {
5770
5770
  return typeof t == "string" ? n.value = t : "" + t, n;
5771
5771
  }
5772
5772
  function Do(e, t) {
5773
- let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || Oo;
5773
+ let n = t.allowedElements, r = t.allowElement, i = t.components, c = t.disallowedElements, l = t.skipHtml, u = t.unwrapDisallowed, d = t.urlTransform || Oo;
5774
5774
  for (let e of Co) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
5775
5775
  return Ta(e, f), Je(e, {
5776
- Fragment: l,
5776
+ Fragment: a,
5777
5777
  components: i,
5778
5778
  ignoreInvalidStyle: !0,
5779
- jsx: u,
5780
- jsxs: d,
5779
+ jsx: o,
5780
+ jsxs: s,
5781
5781
  passKeys: !0,
5782
5782
  passNode: !0
5783
5783
  });
5784
5784
  function f(e, t, i) {
5785
- if (e.type === "raw" && i && typeof t == "number") return o ? i.children.splice(t, 1) : i.children[t] = {
5785
+ if (e.type === "raw" && i && typeof t == "number") return l ? i.children.splice(t, 1) : i.children[t] = {
5786
5786
  type: "text",
5787
5787
  value: e.value
5788
5788
  }, t;
@@ -5790,12 +5790,12 @@ function Do(e, t) {
5790
5790
  let t;
5791
5791
  for (t in gt) if (Object.hasOwn(gt, t) && Object.hasOwn(e.properties, t)) {
5792
5792
  let n = e.properties[t], r = gt[t];
5793
- (r === null || r.includes(e.tagName)) && (e.properties[t] = c(String(n || ""), t, e));
5793
+ (r === null || r.includes(e.tagName)) && (e.properties[t] = d(String(n || ""), t, e));
5794
5794
  }
5795
5795
  }
5796
5796
  if (e.type === "element") {
5797
- let o = n ? !n.includes(e.tagName) : a ? a.includes(e.tagName) : !1;
5798
- if (!o && r && typeof t == "number" && (o = !r(e, t, i)), o && i && typeof t == "number") return s && e.children ? i.children.splice(t, 1, ...e.children) : i.children.splice(t, 1), t;
5797
+ let a = n ? !n.includes(e.tagName) : c ? c.includes(e.tagName) : !1;
5798
+ if (!a && r && typeof t == "number" && (a = !r(e, t, i)), a && i && typeof t == "number") return u && e.children ? i.children.splice(t, 1, ...e.children) : i.children.splice(t, 1), t;
5799
5799
  }
5800
5800
  }
5801
5801
  }
@@ -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+759ce506b1ed1a42/node_modules/mdast-util-frontmatter/lib/index.js
42248
+ //#region ../../node_modules/.bun/mdast-util-frontmatter@2.0.1+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/remark-frontmatter/lib/index.js
42307
+ //#region ../../node_modules/.bun/remark-frontmatter@5.0.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-gfm-footnote/lib/index.js
42504
+ //#region ../../node_modules/.bun/mdast-util-gfm-footnote@2.1.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-gfm-strikethrough/lib/index.js
42598
+ //#region ../../node_modules/.bun/mdast-util-gfm-strikethrough@2.0.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-gfm-table/lib/index.js
43229
+ //#region ../../node_modules/.bun/mdast-util-gfm-table@2.0.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-gfm-task-list-item/lib/index.js
43362
+ //#region ../../node_modules/.bun/mdast-util-gfm-task-list-item@2.0.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-gfm/lib/index.js
43417
+ //#region ../../node_modules/.bun/mdast-util-gfm@3.1.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/remark-gfm/lib/index.js
44188
+ //#region ../../node_modules/.bun/remark-gfm@4.0.1+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/mdast-util-math/lib/index.js
44195
+ //#region ../../node_modules/.bun/mdast-util-math@3.0.0+2b91fc17bf64bdfd/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+759ce506b1ed1a42/node_modules/remark-math/lib/index.js
44458
+ //#region ../../node_modules/.bun/remark-math@6.0.0+2b91fc17bf64bdfd/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/designer/browser/preview/markdown/markdownContent.tsx
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("preview.videoYouTube"),
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("preview.videoBilibili"),
44542
+ title: n("markdown.videoBilibili"),
44543
44543
  ...UE
44544
44544
  }, e.children = [];
44545
44545
  }
44546
44546
  }
44547
- var KE = /* @__PURE__ */ a(function({ dark: e, text: t, className: n = "", components: i, mermaid: a }) {
44548
- let l = r(), d = s(() => RE(l), [l]), f = c(null), p = c(/* @__PURE__ */ new WeakMap());
44549
- return o(() => {
44550
- let t = a ? [...f.current?.querySelectorAll("pre code.language-mermaid") ?? []] : [];
44547
+ var KE = /* @__PURE__ */ c(function({ dark: e, unstyled: t, text: n, className: i = "", components: a, mermaid: s }) {
44548
+ let c = r(), f = u(() => RE(c), [c]), p = d(null), m = d(/* @__PURE__ */ new WeakMap());
44549
+ return l(() => {
44550
+ let t = s ? [...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 = p.current.get(e), i = e.querySelector("svg") && t != null ? t : e.textContent || "";
44559
- p.current.set(e, i);
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
- a,
44574
+ s,
44575
44575
  e,
44576
- t
44577
- ]), t ? /* @__PURE__ */ u("div", {
44578
- ref: f,
44579
- className: `designer-markdown-${e ? "dark" : "light"} ${n}`,
44580
- children: /* @__PURE__ */ u(wo, {
44581
- rehypePlugins: d,
44576
+ n
44577
+ ]), n ? /* @__PURE__ */ o("div", {
44578
+ ref: p,
44579
+ className: `${t ? "" : `open-flow-markdown-${e ? "dark" : "light"}`} ${i}`,
44580
+ children: /* @__PURE__ */ o(wo, {
44581
+ rehypePlugins: f,
44582
44582
  remarkPlugins: IE,
44583
- components: i,
44584
- children: t
44583
+ components: a,
44584
+ children: n
44585
44585
  })
44586
44586
  }) : null;
44587
44587
  });