markdown-flow-ui 0.2.35 → 0.2.36-dev.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.
Files changed (98) hide show
  1. package/README.md +12 -0
  2. package/dist/_virtual/index.es8.js +2 -2
  3. package/dist/_virtual/index.es9.js +2 -2
  4. package/dist/_virtual/index8.cjs +1 -1
  5. package/dist/_virtual/index9.cjs +1 -1
  6. package/dist/_virtual/variable-name.cjs +2 -0
  7. package/dist/_virtual/variable-name.cjs.map +1 -0
  8. package/dist/_virtual/variable-name.es.js +5 -0
  9. package/dist/_virtual/variable-name.es.js.map +1 -0
  10. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  11. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  12. package/dist/components/ContentRender/plugins/CustomVariable.es.js +52 -51
  13. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  14. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  15. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  16. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +71 -70
  17. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  18. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  19. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  20. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +16 -16
  21. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  22. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  23. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -1
  24. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +1 -1
  25. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  26. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -1
  27. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +23 -23
  28. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  29. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -1
  30. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +15 -15
  31. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  32. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -1
  33. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +13 -13
  34. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  35. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -1
  36. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +8 -8
  37. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  38. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -1
  39. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +13 -13
  40. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  41. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -1
  42. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +1 -1
  43. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  44. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -1
  45. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +1 -1
  46. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  47. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -1
  48. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +1 -1
  49. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  50. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +11 -11
  52. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  53. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -1
  54. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +1 -1
  55. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  56. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  57. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +104 -103
  58. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  59. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.test.d.ts +1 -0
  60. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  61. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  62. package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -3
  63. package/dist/components/MarkdownFlowEditor/utils.es.js +43 -50
  64. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  65. package/dist/components/MarkdownFlowEditor/utils.variables.test.d.ts +1 -0
  66. package/dist/lib/interaction-defaults.cjs +1 -1
  67. package/dist/lib/interaction-defaults.cjs.map +1 -1
  68. package/dist/lib/interaction-defaults.es.js +49 -49
  69. package/dist/lib/interaction-defaults.es.js.map +1 -1
  70. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  71. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  72. package/dist/node_modules/classnames/index.cjs +1 -1
  73. package/dist/node_modules/classnames/index.es.js +1 -1
  74. package/dist/node_modules/cose-base/cose-base.cjs +1 -1
  75. package/dist/node_modules/cose-base/cose-base.cjs.map +1 -1
  76. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  77. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.cjs +1 -1
  78. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.cjs.map +1 -1
  79. package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.es.js +1 -1
  80. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.cjs +1 -1
  81. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.cjs.map +1 -1
  82. package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.es.js +1 -1
  83. package/dist/node_modules/layout-base/layout-base.cjs +1 -1
  84. package/dist/node_modules/layout-base/layout-base.cjs.map +1 -1
  85. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  86. package/dist/node_modules/remark-flow/dist/index.cjs +1 -1
  87. package/dist/node_modules/remark-flow/dist/index.cjs.map +1 -1
  88. package/dist/node_modules/remark-flow/dist/index.es.js +41 -24
  89. package/dist/node_modules/remark-flow/dist/index.es.js.map +1 -1
  90. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs +1 -1
  91. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  92. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +44 -45
  93. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  94. package/dist/node_modules/remark-flow/dist/variable-name.cjs +2 -0
  95. package/dist/node_modules/remark-flow/dist/variable-name.cjs.map +1 -0
  96. package/dist/node_modules/remark-flow/dist/variable-name.es.js +31 -0
  97. package/dist/node_modules/remark-flow/dist/variable-name.es.js.map +1 -0
  98. package/package.json +2 -2
@@ -16,19 +16,20 @@ import lt from "./components/VideoInject.es.js";
16
16
  import ct from "./components/VariableSelect.es.js";
17
17
  import { SelectedOption as f } from "./types.es.js";
18
18
  /* empty css */
19
- import { extractVariableNames as ut, getImageContentToInsert as mt, getVideoContentToInsert as ft, createSlashCommands as ht, parseContentInfo as pt, createVariableExpressionRegexp as gt } from "./utils.es.js";
19
+ import { getImageContentToInsert as ut, getVideoContentToInsert as mt, createSlashCommands as ft, parseContentInfo as ht, createVariableExpressionRegexp as pt } from "./utils.es.js";
20
20
  import dt from "./plugins/ImgPlaceholder.es.js";
21
- import Vt from "./plugins/VideoPlaceholder.es.js";
22
- import { mediaPlaceholderLabels as Ct } from "./plugins/mediaPlaceholderLabels.es.js";
23
- import bt from "./plugins/VariablePlaceholder.es.js";
24
- import St from "./plugins/SyntaxHighlighter.es.js";
21
+ import gt from "./plugins/VideoPlaceholder.es.js";
22
+ import { mediaPlaceholderLabels as Vt } from "./plugins/mediaPlaceholderLabels.es.js";
23
+ import Ct from "./plugins/VariablePlaceholder.es.js";
24
+ import bt from "./plugins/SyntaxHighlighter.es.js";
25
25
  import ie from "../../node_modules/i18next/dist/esm/i18next.es.js";
26
- import { DEFAULT_EDITOR_LOCALE as ae, editorLocaleResources as Ee, getEditorLocaleMessages as It } from "./editorI18n.es.js";
27
- import { normalizeMarkdownFlowLocale as wt, getMarkdownFlowDirection as vt, getMarkdownFlowLanguage as Lt } from "../../lib/locale.es.js";
28
- import { useDetachedLanguage as Et } from "../../lib/useDetachedLanguage.es.js";
29
- import { useResolvedDirection as Tt } from "../../lib/useResolvedDirection.es.js";
30
- import { initReactI18next as kt } from "../../node_modules/react-i18next/dist/es/initReactI18next.es.js";
31
- import { useTranslation as Ot } from "../../node_modules/react-i18next/dist/es/useTranslation.es.js";
26
+ import { DEFAULT_EDITOR_LOCALE as ae, editorLocaleResources as Ee, getEditorLocaleMessages as St } from "./editorI18n.es.js";
27
+ import { normalizeMarkdownFlowLocale as It, getMarkdownFlowDirection as wt, getMarkdownFlowLanguage as vt } from "../../lib/locale.es.js";
28
+ import { useDetachedLanguage as Lt } from "../../lib/useDetachedLanguage.es.js";
29
+ import { useResolvedDirection as Et } from "../../lib/useResolvedDirection.es.js";
30
+ import { initReactI18next as Tt } from "../../node_modules/react-i18next/dist/es/initReactI18next.es.js";
31
+ import { useTranslation as kt } from "../../node_modules/react-i18next/dist/es/useTranslation.es.js";
32
+ import { d as xt } from "../../_virtual/index.es.js";
32
33
  ie.isInitialized ? Object.entries(Ee).forEach(([C, h]) => {
33
34
  ie.addResourceBundle(
34
35
  C,
@@ -37,7 +38,7 @@ ie.isInitialized ? Object.entries(Ee).forEach(([C, h]) => {
37
38
  !0,
38
39
  !0
39
40
  );
40
- }) : ie.use(kt).init({
41
+ }) : ie.use(Tt).init({
41
42
  resources: Ee,
42
43
  lng: ae,
43
44
  fallbackLng: ae,
@@ -46,36 +47,36 @@ ie.isInitialized ? Object.entries(Ee).forEach(([C, h]) => {
46
47
  const Te = [], ke = (C, h) => {
47
48
  if (!C || h < 0)
48
49
  return !1;
49
- const O = gt();
50
+ const x = pt();
50
51
  let L;
51
- for (; (L = O.exec(C)) !== null; ) {
52
+ for (; (L = x.exec(C)) !== null; ) {
52
53
  const E = L.index ?? 0, U = E + L[0].length, R = E + 2, Y = U - 2;
53
54
  if (h >= R && h <= Y)
54
55
  return !0;
55
- O.lastIndex === L.index && O.lastIndex++;
56
+ x.lastIndex === L.index && x.lastIndex++;
56
57
  }
57
58
  return !1;
58
- }, xt = (C = "") => `{{${C}}}`, so = ({
59
+ }, Ot = (C = "") => `{{${C}}}`, lo = ({
59
60
  content: C = "",
60
61
  editMode: h = "codeEdit",
61
- variables: O,
62
+ variables: x,
62
63
  systemVariables: L,
63
64
  onChange: E,
64
65
  onBlur: U,
65
66
  locale: R,
66
67
  lang: Y,
67
- uploadProps: Oe,
68
+ uploadProps: xe,
68
69
  disabled: n = !1,
69
70
  toolbarActionsRight: J,
70
- onReady: xe
71
+ onReady: Oe
71
72
  }) => {
72
- const { t: a, i18n: X } = Ot(), j = wt(
73
+ const { t: a, i18n: X } = kt(), j = It(
73
74
  R ?? ae
74
- ), se = vt(R), le = Y ?? Lt(R);
75
+ ), se = wt(R), le = Y ?? vt(R);
75
76
  b(() => {
76
77
  X.language !== j && X.changeLanguage(j);
77
78
  }, [X, j]);
78
- const x = It(j), V = w(
79
+ const O = St(j), V = w(
79
80
  () => ({
80
81
  image: a("toolbarInsertImage", {
81
82
  defaultValue: "Insert image"
@@ -145,11 +146,11 @@ const Te = [], ke = (C, h) => {
145
146
  const e = new Set(
146
147
  A.map((r) => r.name.toLowerCase())
147
148
  ), o = /* @__PURE__ */ new Set();
148
- return (O ?? Te).filter((r) => {
149
+ return (x ?? Te).filter((r) => {
149
150
  const t = typeof r?.name == "string" ? r.name.toLowerCase() : "";
150
151
  return !t || e.has(t) || o.has(t) ? !1 : (o.add(t), !0);
151
152
  });
152
- }, [O, A]), [ee, T] = v(!1), [te, y] = v(!1), H = Q(null), z = Et(H, le), { resolvedDirection: B } = Tt(
153
+ }, [x, A]), [ee, T] = v(!1), [te, y] = v(!1), H = Q(null), z = Lt(H, le), { resolvedDirection: B } = Et(
153
154
  H,
154
155
  se
155
156
  ), [Ne, F] = v(null), [ce, oe] = v(
@@ -164,19 +165,19 @@ const Te = [], ke = (C, h) => {
164
165
  }, [A]);
165
166
  const [S, k] = v(
166
167
  f.Empty
167
- ), [l, M] = v(), i = Q(null), _ = Q(null), G = Q(null), [ne, ue] = v(!1), g = s(() => {
168
+ ), [l, M] = v(), i = Q(null), _ = Q(null), G = Q(null), [ne, ue] = v(!1), d = s(() => {
168
169
  ue(!1), G.current = null;
169
170
  }, []), Re = s(
170
171
  (e) => {
171
172
  if (!n) {
172
173
  if (ne && G.current === e) {
173
- g();
174
+ d();
174
175
  return;
175
176
  }
176
177
  G.current = e, ue(!0);
177
178
  }
178
179
  },
179
- [g, n, ne]
180
+ [d, n, ne]
180
181
  ), Ae = {
181
182
  selectedOption: S,
182
183
  setSelectedOption: k,
@@ -188,9 +189,9 @@ const Te = [], ke = (C, h) => {
188
189
  setPopoverPosition: F
189
190
  };
190
191
  b(() => {
191
- n && (T(!1), y(!1), k(f.Empty), M(null), F(null), g());
192
+ n && (T(!1), y(!1), k(f.Empty), M(null), F(null), d());
192
193
  }, [
193
- g,
194
+ d,
194
195
  n,
195
196
  T,
196
197
  y,
@@ -202,7 +203,7 @@ const Te = [], ke = (C, h) => {
202
203
  (e) => {
203
204
  if (h !== "quickEdit" || !e)
204
205
  return;
205
- const o = ut(e);
206
+ const o = xt.extractVariableNames(e);
206
207
  if (!o.length)
207
208
  return;
208
209
  const r = new Set(
@@ -210,11 +211,11 @@ const Te = [], ke = (C, h) => {
210
211
  );
211
212
  oe((t) => {
212
213
  const c = new Set(
213
- t.map((d) => d.name.toLowerCase())
214
+ t.map((g) => g.name.toLowerCase())
214
215
  ), u = /* @__PURE__ */ new Set(), p = [];
215
- return o.forEach((d) => {
216
- const I = d.toLowerCase();
217
- !d || r.has(I) || c.has(I) || u.has(I) || (p.push({ name: d }), u.add(I));
216
+ return o.forEach((g) => {
217
+ const I = g.toLowerCase();
218
+ !g || r.has(I) || c.has(I) || u.has(I) || (p.push({ name: g }), u.add(I));
218
219
  }), p.length ? [...p, ...t] : t;
219
220
  });
220
221
  },
@@ -226,7 +227,7 @@ const Te = [], ke = (C, h) => {
226
227
  const re = s(
227
228
  (e) => {
228
229
  if (!n)
229
- if (g(), k(e), e === f.Variable) {
230
+ if (d(), k(e), e === f.Variable) {
230
231
  if (i.current) {
231
232
  const { state: o } = i.current, r = o.selection.main.from, t = i.current.coordsAtPos(r);
232
233
  t && F({
@@ -238,7 +239,7 @@ const Te = [], ke = (C, h) => {
238
239
  } else
239
240
  T(!0);
240
241
  },
241
- [g, n]
242
+ [d, n]
242
243
  ), N = s(
243
244
  (e) => {
244
245
  if (n || !i.current) return;
@@ -288,12 +289,12 @@ const Te = [], ke = (C, h) => {
288
289
  (e, o, r = !1) => {
289
290
  if (n || !i.current)
290
291
  return;
291
- const t = i.current, { state: c, dispatch: u } = t, p = o ?? c.selection.main, d = xt(e), I = r ? d.length : 2 + e.length;
292
+ const t = i.current, { state: c, dispatch: u } = t, p = o ?? c.selection.main, g = Ot(e), I = r ? g.length : 2 + e.length;
292
293
  u({
293
294
  changes: {
294
295
  from: p.from,
295
296
  to: p.to,
296
- insert: d
297
+ insert: g
297
298
  },
298
299
  selection: {
299
300
  anchor: p.from + I
@@ -302,8 +303,8 @@ const Te = [], ke = (C, h) => {
302
303
  },
303
304
  [n]
304
305
  ), ze = s(() => {
305
- n || (g(), K(""));
306
- }, [g, n, K]), Be = s(() => {
306
+ n || (d(), K(""));
307
+ }, [d, n, K]), Be = s(() => {
307
308
  if (n || !i.current)
308
309
  return;
309
310
  const e = i.current, { state: o, dispatch: r } = e, t = o.selection.main;
@@ -402,7 +403,7 @@ const Te = [], ke = (C, h) => {
402
403
  scalePercent: r
403
404
  }) => {
404
405
  if (!e || n) return;
405
- const t = mt({
406
+ const t = ut({
406
407
  resourceUrl: e,
407
408
  resourceTitle: o,
408
409
  scalePercent: r
@@ -425,7 +426,7 @@ const Te = [], ke = (C, h) => {
425
426
  }) => {
426
427
  if (n)
427
428
  return;
428
- const r = ft(e, o);
429
+ const r = mt(e, o);
429
430
  if (l?.type === f.Video) {
430
431
  if (W(), !i.current) return;
431
432
  const { dispatch: t } = i.current;
@@ -437,30 +438,30 @@ const Te = [], ke = (C, h) => {
437
438
  T(!1);
438
439
  },
439
440
  [W, n, N, l]
440
- ), ge = s(
441
+ ), de = s(
441
442
  (e) => {
442
443
  if (n)
443
444
  return;
444
445
  const o = l?.type === f.Variable ? { from: l.from, to: l.to } : void 0;
445
- K(e.name, o, !0), y(!1), g();
446
+ K(e.name, o, !0), y(!1), d();
446
447
  },
447
- [n, K, l, g]
448
- ), de = s(() => Ue({
448
+ [n, K, l, d]
449
+ ), ge = s(() => Ue({
449
450
  override: [
450
- ht(re, {
451
+ ft(re, {
451
452
  // divider: currentStrings.slashDivider,
452
453
  // fixedText: currentStrings.slashFixedText,
453
- image: x.slashImage,
454
- video: x.slashVideo,
455
- variable: x.slashVariable
454
+ image: O.slashImage,
455
+ video: O.slashVideo,
456
+ variable: O.slashVariable
456
457
  })
457
458
  ]
458
459
  }), [
459
460
  // currentStrings.slashDivider,
460
461
  // currentStrings.slashFixedText,
461
- x.slashImage,
462
- x.slashVideo,
463
- x.slashVariable,
462
+ O.slashImage,
463
+ O.slashVideo,
464
+ O.slashVariable,
464
465
  re
465
466
  ]), Ve = s(
466
467
  (e) => {
@@ -477,7 +478,7 @@ const Te = [], ke = (C, h) => {
477
478
  (e) => {
478
479
  if (e.stopPropagation(), n)
479
480
  return;
480
- const { type: o, from: r, to: t, dataset: c, target: u } = e.detail, p = pt(o, c);
481
+ const { type: o, from: r, to: t, dataset: c, target: u } = e.detail, p = ht(o, c);
481
482
  if (M({
482
483
  type: o,
483
484
  value: p,
@@ -485,12 +486,12 @@ const Te = [], ke = (C, h) => {
485
486
  to: t
486
487
  }), k(o), o === f.Variable) {
487
488
  if (u) {
488
- const d = u.getBoundingClientRect(), I = u.ownerDocument.defaultView?.getComputedStyle(
489
+ const g = u.getBoundingClientRect(), I = u.ownerDocument.defaultView?.getComputedStyle(
489
490
  H.current ?? u
490
491
  ).direction;
491
492
  F({
492
- x: I === "rtl" ? d.right : d.left,
493
- y: d.bottom
493
+ x: I === "rtl" ? g.right : g.left,
494
+ y: g.bottom
494
495
  });
495
496
  }
496
497
  y(!0);
@@ -512,7 +513,7 @@ const Te = [], ke = (C, h) => {
512
513
  };
513
514
  }, [Ce]);
514
515
  const be = a("imageDefaultTitle"), Se = a("videoDefaultTitle"), Ie = w(
515
- () => Ct.of({
516
+ () => Vt.of({
516
517
  image: be,
517
518
  video: Se
518
519
  }),
@@ -522,13 +523,13 @@ const Te = [], ke = (C, h) => {
522
523
  Le.lineWrapping,
523
524
  Ye(),
524
525
  Je(Xe),
525
- St
526
+ bt
526
527
  ];
527
- return n || e.push(de()), h === "quickEdit" && e.push(
528
+ return n || e.push(ge()), h === "quickEdit" && e.push(
528
529
  Ie,
529
530
  dt,
530
- Vt,
531
- bt
531
+ gt,
532
+ Ct
532
533
  // fixedTextPlaceholderExtension,
533
534
  // DividerPlaceholder,
534
535
  ), e.push(
@@ -539,7 +540,7 @@ const Te = [], ke = (C, h) => {
539
540
  }, [
540
541
  n,
541
542
  h,
542
- de,
543
+ ge,
543
544
  Ve,
544
545
  Ie
545
546
  ]), We = s(
@@ -621,7 +622,7 @@ const Te = [], ke = (C, h) => {
621
622
  J
622
623
  ]);
623
624
  return b(() => {
624
- xe?.(D);
625
+ Oe?.(D);
625
626
  }, [D]), /* @__PURE__ */ $(
626
627
  "div",
627
628
  {
@@ -642,7 +643,7 @@ const Te = [], ke = (C, h) => {
642
643
  onSelect: re,
643
644
  onInsertVariablePlaceholder: ze,
644
645
  onVariableSearchToggle: Re,
645
- onVariableSearchClose: g,
646
+ onVariableSearchClose: d,
646
647
  onInsertConfirmOutput: Be,
647
648
  onInsertLink: Fe,
648
649
  onInsertButton: Me,
@@ -658,8 +659,8 @@ const Te = [], ke = (C, h) => {
658
659
  {
659
660
  open: we,
660
661
  anchorElement: G.current,
661
- onClose: g,
662
- onSelect: ge,
662
+ onClose: d,
663
+ onSelect: de,
663
664
  variables: ce,
664
665
  systemVariables: q,
665
666
  labels: ye
@@ -703,7 +704,7 @@ const Te = [], ke = (C, h) => {
703
704
  {
704
705
  value: l?.value,
705
706
  onSelect: qe,
706
- uploadProps: Oe
707
+ uploadProps: xe
707
708
  }
708
709
  ),
709
710
  S === f.Video && /* @__PURE__ */ m(
@@ -722,7 +723,7 @@ const Te = [], ke = (C, h) => {
722
723
  variables: ce,
723
724
  systemVariables: q,
724
725
  selectedName: l?.value?.variableName,
725
- onSelect: ge,
726
+ onSelect: de,
726
727
  onAddVariable: (e) => {
727
728
  oe((o) => {
728
729
  const r = e.name.toLowerCase();
@@ -739,6 +740,6 @@ const Te = [], ke = (C, h) => {
739
740
  );
740
741
  };
741
742
  export {
742
- so as default
743
+ lo as default
743
744
  };
744
745
  //# sourceMappingURL=MarkdownFlowEditor.es.js.map