markdown-flow-ui 0.2.35-dev.2 → 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.
- package/README.md +12 -0
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/_virtual/index.es9.js +2 -2
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/variable-name.cjs +2 -0
- package/dist/_virtual/variable-name.cjs.map +1 -0
- package/dist/_virtual/variable-name.es.js +5 -0
- package/dist/_virtual/variable-name.es.js.map +1 -0
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +52 -51
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +71 -70
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +16 -16
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +23 -23
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +15 -15
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +8 -8
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +11 -11
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +104 -103
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.test.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -3
- package/dist/components/MarkdownFlowEditor/utils.es.js +43 -50
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.variables.test.d.ts +1 -0
- package/dist/lib/interaction-defaults.cjs +1 -1
- package/dist/lib/interaction-defaults.cjs.map +1 -1
- package/dist/lib/interaction-defaults.es.js +49 -49
- package/dist/lib/interaction-defaults.es.js.map +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/index.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/index.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/index.es.js +41 -24
- package/dist/node_modules/remark-flow/dist/index.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +44 -45
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/variable-name.cjs +2 -0
- package/dist/node_modules/remark-flow/dist/variable-name.cjs.map +1 -0
- package/dist/node_modules/remark-flow/dist/variable-name.es.js +31 -0
- package/dist/node_modules/remark-flow/dist/variable-name.es.js.map +1 -0
- 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 {
|
|
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
|
|
22
|
-
import { mediaPlaceholderLabels as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
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
|
|
27
|
-
import { normalizeMarkdownFlowLocale as
|
|
28
|
-
import { useDetachedLanguage as
|
|
29
|
-
import { useResolvedDirection as
|
|
30
|
-
import { initReactI18next as
|
|
31
|
-
import { useTranslation as
|
|
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(
|
|
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
|
|
50
|
+
const x = pt();
|
|
50
51
|
let L;
|
|
51
|
-
for (; (L =
|
|
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
|
-
|
|
56
|
+
x.lastIndex === L.index && x.lastIndex++;
|
|
56
57
|
}
|
|
57
58
|
return !1;
|
|
58
|
-
},
|
|
59
|
+
}, Ot = (C = "") => `{{${C}}}`, lo = ({
|
|
59
60
|
content: C = "",
|
|
60
61
|
editMode: h = "codeEdit",
|
|
61
|
-
variables:
|
|
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:
|
|
68
|
+
uploadProps: xe,
|
|
68
69
|
disabled: n = !1,
|
|
69
70
|
toolbarActionsRight: J,
|
|
70
|
-
onReady:
|
|
71
|
+
onReady: Oe
|
|
71
72
|
}) => {
|
|
72
|
-
const { t: a, i18n: X } =
|
|
73
|
+
const { t: a, i18n: X } = kt(), j = It(
|
|
73
74
|
R ?? ae
|
|
74
|
-
), se =
|
|
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
|
|
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 (
|
|
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
|
-
}, [
|
|
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),
|
|
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
|
-
|
|
174
|
+
d();
|
|
174
175
|
return;
|
|
175
176
|
}
|
|
176
177
|
G.current = e, ue(!0);
|
|
177
178
|
}
|
|
178
179
|
},
|
|
179
|
-
[
|
|
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),
|
|
192
|
+
n && (T(!1), y(!1), k(f.Empty), M(null), F(null), d());
|
|
192
193
|
}, [
|
|
193
|
-
|
|
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 =
|
|
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((
|
|
214
|
+
t.map((g) => g.name.toLowerCase())
|
|
214
215
|
), u = /* @__PURE__ */ new Set(), p = [];
|
|
215
|
-
return o.forEach((
|
|
216
|
-
const I =
|
|
217
|
-
!
|
|
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 (
|
|
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
|
-
[
|
|
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,
|
|
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:
|
|
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 || (
|
|
306
|
-
}, [
|
|
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 =
|
|
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 =
|
|
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
|
-
),
|
|
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),
|
|
446
|
+
K(e.name, o, !0), y(!1), d();
|
|
446
447
|
},
|
|
447
|
-
[n, K, l,
|
|
448
|
-
),
|
|
448
|
+
[n, K, l, d]
|
|
449
|
+
), ge = s(() => Ue({
|
|
449
450
|
override: [
|
|
450
|
-
|
|
451
|
+
ft(re, {
|
|
451
452
|
// divider: currentStrings.slashDivider,
|
|
452
453
|
// fixedText: currentStrings.slashFixedText,
|
|
453
|
-
image:
|
|
454
|
-
video:
|
|
455
|
-
variable:
|
|
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
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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 =
|
|
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
|
|
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" ?
|
|
493
|
-
y:
|
|
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
|
-
() =>
|
|
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
|
-
|
|
526
|
+
bt
|
|
526
527
|
];
|
|
527
|
-
return n || e.push(
|
|
528
|
+
return n || e.push(ge()), h === "quickEdit" && e.push(
|
|
528
529
|
Ie,
|
|
529
530
|
dt,
|
|
530
|
-
|
|
531
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
662
|
-
onSelect:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
743
|
+
lo as default
|
|
743
744
|
};
|
|
744
745
|
//# sourceMappingURL=MarkdownFlowEditor.es.js.map
|