markdown-flow-ui 0.2.35 → 0.3.0-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.es10.js +2 -2
- package/dist/_virtual/index.es3.js +5 -4
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +4 -5
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es5.js +5 -5
- package/dist/_virtual/index.es6.js +5 -3
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/_virtual/index.es7.js +3 -5
- package/dist/_virtual/index.es7.js.map +1 -1
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index5.cjs +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/variable-marker.cjs +2 -0
- package/dist/_virtual/variable-marker.cjs.map +1 -0
- package/dist/_virtual/variable-marker.es.js +5 -0
- package/dist/_virtual/variable-marker.es.js.map +1 -0
- 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/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.es.js +206 -205
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- 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/ContentRender/utils/inline-code-ranges.cjs +9 -9
- package/dist/components/ContentRender/utils/inline-code-ranges.cjs.map +1 -1
- package/dist/components/ContentRender/utils/inline-code-ranges.d.ts +3 -0
- package/dist/components/ContentRender/utils/inline-code-ranges.es.js +185 -161
- package/dist/components/ContentRender/utils/inline-code-ranges.es.js.map +1 -1
- package/dist/components/ContentRender/utils/mermaid-parse.cjs +4 -4
- package/dist/components/ContentRender/utils/mermaid-parse.cjs.map +1 -1
- package/dist/components/ContentRender/utils/mermaid-parse.es.js +53 -48
- package/dist/components/ContentRender/utils/mermaid-parse.es.js.map +1 -1
- package/dist/components/ContentRender/utils/split-content.cjs +6 -6
- package/dist/components/ContentRender/utils/split-content.cjs.map +1 -1
- package/dist/components/ContentRender/utils/split-content.d.ts +1 -0
- package/dist/components/ContentRender/utils/split-content.es.js +361 -313
- package/dist/components/ContentRender/utils/split-content.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 +286 -290
- 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 +62 -63
- 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 +13 -13
- 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 +19 -19
- 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 +16 -16
- 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 +13 -13
- 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 +176 -174
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +2 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +3 -1
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +38 -55
- package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.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 +47 -51
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.variables.test.d.ts +1 -0
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/lib/interaction-defaults.cjs +1 -1
- package/dist/lib/interaction-defaults.cjs.map +1 -1
- package/dist/lib/interaction-defaults.es.js +123 -132
- package/dist/lib/interaction-defaults.es.js.map +1 -1
- package/dist/lib/interaction-defaults.failure.test.d.ts +1 -0
- 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/cose-base/cose-base.cjs +1 -1
- package/dist/node_modules/cose-base/cose-base.cjs.map +1 -1
- package/dist/node_modules/cose-base/cose-base.es.js +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.cjs +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.cjs.map +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.es.js +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.cjs +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.cjs.map +1 -1
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.es.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/layout-base/layout-base.cjs +1 -1
- package/dist/node_modules/layout-base/layout-base.cjs.map +1 -1
- package/dist/node_modules/layout-base/layout-base.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAMF2YG6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OMD6QJNC.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U37J5Y7L.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-WV7ZQ7D5.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-4MX5Z3NR.es.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/escaping.cjs +2 -2
- package/dist/node_modules/remark-flow/dist/escaping.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/escaping.es.js +128 -63
- package/dist/node_modules/remark-flow/dist/escaping.es.js.map +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 +62 -33
- 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 +260 -256
- package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +71 -42
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.cjs.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js +500 -46
- package/dist/node_modules/remark-flow/dist/interaction-syntax.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/variable-marker.cjs +2 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.cjs.map +1 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.es.js +77 -0
- package/dist/node_modules/remark-flow/dist/variable-marker.es.js.map +1 -0
- package/dist/node_modules/remark-flow/dist/variable-name.cjs +15 -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 +748 -0
- package/dist/node_modules/remark-flow/dist/variable-name.es.js.map +1 -0
- package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
- package/dist/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/node_modules/unified/lib/index.cjs +1 -1
- package/dist/node_modules/unified/lib/index.es.js +1 -1
- package/package.json +2 -2
|
@@ -1,126 +1,125 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as r, useEffect as Y, useMemo as
|
|
3
|
-
import { Input as
|
|
2
|
+
import { useState as r, useEffect as Y, useMemo as D } from "react";
|
|
3
|
+
import { Input as P } from "../../ui/input.es.js";
|
|
4
4
|
import { Button as w } from "../../ui/button.es.js";
|
|
5
|
-
import { cn as
|
|
6
|
-
import {
|
|
7
|
-
import { useTranslation as
|
|
8
|
-
import
|
|
5
|
+
import { cn as L } from "../../../lib/utils.es.js";
|
|
6
|
+
import { d as M } from "../../../_virtual/index.es.js";
|
|
7
|
+
import { useTranslation as _ } from "../../../node_modules/react-i18next/dist/es/useTranslation.es.js";
|
|
8
|
+
import q from "../../../node_modules/lucide-react/dist/esm/icons/search.es.js";
|
|
9
9
|
import V from "../../../node_modules/lucide-react/dist/esm/icons/check.es.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const B = [],
|
|
10
|
+
import G from "../../../node_modules/lucide-react/dist/esm/icons/x.es.js";
|
|
11
|
+
import H from "../../../node_modules/lucide-react/dist/esm/icons/plus.es.js";
|
|
12
|
+
const B = [], ne = ({
|
|
13
13
|
variables: F,
|
|
14
14
|
systemVariables: K,
|
|
15
|
-
selectedName:
|
|
16
|
-
onSelect:
|
|
15
|
+
selectedName: l,
|
|
16
|
+
onSelect: i,
|
|
17
17
|
onAddVariable: Q
|
|
18
18
|
}) => {
|
|
19
|
-
const { t: s } =
|
|
19
|
+
const { t: s } = _(), c = F ?? B, R = K ?? B, [m, C] = r(c);
|
|
20
20
|
Y(() => {
|
|
21
|
-
C(
|
|
22
|
-
}, [
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
},
|
|
21
|
+
C(c);
|
|
22
|
+
}, [c]);
|
|
23
|
+
const d = R, [u, E] = r(""), [T, f] = r(!1), [k, h] = r(""), [x, p] = r(!1), [S, b] = r(!1), N = () => {
|
|
24
|
+
p(!1), b(!1);
|
|
25
|
+
}, o = u.toLowerCase(), A = (e) => {
|
|
26
|
+
const j = e.name.toLowerCase().includes(o), n = e.label ? e.label.toLowerCase().includes(o) : !1;
|
|
27
|
+
return j || n;
|
|
28
|
+
}, g = D(
|
|
29
|
+
() => d.filter(A),
|
|
30
|
+
[d, o]
|
|
31
|
+
), v = D(
|
|
29
32
|
() => m.filter(A),
|
|
30
|
-
[m,
|
|
31
|
-
), g =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const e = S;
|
|
36
|
-
if (!e || !_(e)) {
|
|
37
|
-
p(!0), x(!1);
|
|
33
|
+
[m, o]
|
|
34
|
+
), $ = g.length > 0 || v.length > 0, I = () => {
|
|
35
|
+
const e = M.normalizeVariableName(k);
|
|
36
|
+
if (!e) {
|
|
37
|
+
b(!0), p(!1);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
(y) => y.name.toLowerCase() === v
|
|
40
|
+
if ([...m, ...d].some(
|
|
41
|
+
(y) => M.normalizeVariableName(y.name) === e
|
|
43
42
|
)) {
|
|
44
|
-
|
|
43
|
+
p(!0), b(!1);
|
|
45
44
|
return;
|
|
46
45
|
}
|
|
47
|
-
const
|
|
46
|
+
const n = {
|
|
48
47
|
name: e
|
|
49
48
|
};
|
|
50
|
-
C((y) => [
|
|
51
|
-
},
|
|
52
|
-
|
|
49
|
+
C((y) => [n, ...y]), Q?.({ name: e }), h(""), f(!1), E(""), N(), i?.(n);
|
|
50
|
+
}, z = () => {
|
|
51
|
+
f(!1), h(""), N();
|
|
53
52
|
}, U = (e) => {
|
|
54
|
-
|
|
53
|
+
h(e.target.value), (x || S) && N();
|
|
55
54
|
}, X = (e) => {
|
|
56
|
-
e.key === "Enter" ? I() : e.key === "Escape" &&
|
|
55
|
+
e.key === "Enter" ? I() : e.key === "Escape" && z();
|
|
57
56
|
};
|
|
58
57
|
return /* @__PURE__ */ a("div", { className: "w-full max-w-sm rounded-lg border bg-white", children: [
|
|
59
58
|
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
60
|
-
/* @__PURE__ */ t(
|
|
59
|
+
/* @__PURE__ */ t(q, { className: "absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
61
60
|
/* @__PURE__ */ t(
|
|
62
|
-
|
|
61
|
+
P,
|
|
63
62
|
{
|
|
64
63
|
type: "text",
|
|
65
64
|
placeholder: s("variableSearchPlaceholder", "Search variable"),
|
|
66
|
-
value:
|
|
65
|
+
value: u,
|
|
67
66
|
onChange: (e) => E(e.target.value),
|
|
68
67
|
className: "ps-8 h-8 border-0 focus-visible:ring-0 focus-visible:ring-offset-0"
|
|
69
68
|
}
|
|
70
69
|
)
|
|
71
70
|
] }),
|
|
72
71
|
/* @__PURE__ */ t("div", { className: "max-h-[300px] overflow-y-auto p-2", children: $ ? /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
73
|
-
|
|
72
|
+
g.length > 0 && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
74
73
|
/* @__PURE__ */ t("p", { className: "px-3 text-xs font-medium text-muted-foreground", children: s("variableSectionSystem", "System Variables") }),
|
|
75
|
-
/* @__PURE__ */ t("div", { className: "space-y-1", children:
|
|
74
|
+
/* @__PURE__ */ t("div", { className: "space-y-1", children: g.map((e) => /* @__PURE__ */ a(
|
|
76
75
|
"button",
|
|
77
76
|
{
|
|
78
|
-
onClick: () =>
|
|
79
|
-
className:
|
|
77
|
+
onClick: () => i?.(e),
|
|
78
|
+
className: L(
|
|
80
79
|
"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent",
|
|
81
|
-
|
|
80
|
+
l === e.name && "bg-accent"
|
|
82
81
|
),
|
|
83
82
|
children: [
|
|
84
83
|
/* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
85
84
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium text-foreground", children: e.name }),
|
|
86
85
|
e.label && /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: e.label })
|
|
87
86
|
] }),
|
|
88
|
-
|
|
87
|
+
l === e.name && /* @__PURE__ */ t(V, { className: "mt-1 h-4 w-4 text-foreground" })
|
|
89
88
|
]
|
|
90
89
|
},
|
|
91
90
|
`system-${e.name}`
|
|
92
91
|
)) })
|
|
93
92
|
] }),
|
|
94
|
-
|
|
93
|
+
v.length > 0 && /* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
95
94
|
/* @__PURE__ */ t("p", { className: "px-3 text-xs font-medium text-muted-foreground", children: s("variableSectionCustom", "Custom Variables") }),
|
|
96
|
-
/* @__PURE__ */ t("div", { className: "space-y-1", children:
|
|
95
|
+
/* @__PURE__ */ t("div", { className: "space-y-1", children: v.map((e) => /* @__PURE__ */ a(
|
|
97
96
|
"button",
|
|
98
97
|
{
|
|
99
|
-
onClick: () =>
|
|
100
|
-
className:
|
|
98
|
+
onClick: () => i?.(e),
|
|
99
|
+
className: L(
|
|
101
100
|
"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent",
|
|
102
|
-
|
|
101
|
+
l === e.name && "bg-accent"
|
|
103
102
|
),
|
|
104
103
|
children: [
|
|
105
104
|
/* @__PURE__ */ a("div", { className: "flex flex-col", children: [
|
|
106
105
|
/* @__PURE__ */ t("span", { className: "text-sm font-medium text-foreground", children: e.name }),
|
|
107
106
|
e.label && /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: e.label })
|
|
108
107
|
] }),
|
|
109
|
-
|
|
108
|
+
l === e.name && /* @__PURE__ */ t(V, { className: "mt-1 h-4 w-4 text-foreground" })
|
|
110
109
|
]
|
|
111
110
|
},
|
|
112
111
|
`custom-${e.name}`
|
|
113
112
|
)) })
|
|
114
113
|
] })
|
|
115
|
-
] }) : /* @__PURE__ */ t("div", { className: "px-3 py-6 text-center text-sm text-muted-foreground", children:
|
|
114
|
+
] }) : /* @__PURE__ */ t("div", { className: "px-3 py-6 text-center text-sm text-muted-foreground", children: u ? s("variableNotFound", "No variables found") : s("variableEmpty", "No variables yet") }) }),
|
|
116
115
|
/* @__PURE__ */ t("div", { className: "border-t border-border p-2", children: T ? /* @__PURE__ */ a("div", { children: [
|
|
117
116
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 rounded-md border border-border bg-background px-3 py-2", children: [
|
|
118
117
|
/* @__PURE__ */ t(
|
|
119
|
-
|
|
118
|
+
P,
|
|
120
119
|
{
|
|
121
120
|
type: "text",
|
|
122
121
|
placeholder: s("variableNamePlaceholder", "Variable name"),
|
|
123
|
-
value:
|
|
122
|
+
value: k,
|
|
124
123
|
onChange: U,
|
|
125
124
|
onKeyDown: X,
|
|
126
125
|
autoFocus: !0,
|
|
@@ -132,9 +131,9 @@ const B = [], ie = ({
|
|
|
132
131
|
{
|
|
133
132
|
variant: "ghost",
|
|
134
133
|
size: "icon",
|
|
135
|
-
onClick:
|
|
134
|
+
onClick: z,
|
|
136
135
|
className: "h-8 w-8 shrink-0 text-muted-foreground hover:text-foreground",
|
|
137
|
-
children: /* @__PURE__ */ t(
|
|
136
|
+
children: /* @__PURE__ */ t(G, { className: "h-4 w-4" })
|
|
138
137
|
}
|
|
139
138
|
),
|
|
140
139
|
/* @__PURE__ */ t(
|
|
@@ -148,19 +147,19 @@ const B = [], ie = ({
|
|
|
148
147
|
}
|
|
149
148
|
)
|
|
150
149
|
] }),
|
|
151
|
-
(
|
|
150
|
+
(x || S) && /* @__PURE__ */ t("p", { className: "mt-1 px-3 text-xs text-red-500", children: x ? s("variableAlreadyExists", "Variable already exists") : s(
|
|
152
151
|
"variableNameInvalid",
|
|
153
|
-
"Use
|
|
152
|
+
"Use a non-empty name without control characters, line breaks, or }}"
|
|
154
153
|
) })
|
|
155
154
|
] }) : /* @__PURE__ */ a(
|
|
156
155
|
w,
|
|
157
156
|
{
|
|
158
157
|
variant: "ghost",
|
|
159
158
|
size: "sm",
|
|
160
|
-
onClick: () =>
|
|
159
|
+
onClick: () => f(!0),
|
|
161
160
|
className: "w-full justify-start text-muted-foreground hover:text-foreground",
|
|
162
161
|
children: [
|
|
163
|
-
/* @__PURE__ */ t(
|
|
162
|
+
/* @__PURE__ */ t(H, { className: "me-2 h-4 w-4" }),
|
|
164
163
|
s("variableAddNew", "Add new variable")
|
|
165
164
|
]
|
|
166
165
|
}
|
|
@@ -168,6 +167,6 @@ const B = [], ie = ({
|
|
|
168
167
|
] });
|
|
169
168
|
};
|
|
170
169
|
export {
|
|
171
|
-
|
|
170
|
+
ne as default
|
|
172
171
|
};
|
|
173
172
|
//# sourceMappingURL=VariableSelect.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariableSelect.es.js","sources":["../../../../src/components/MarkdownFlowEditor/components/VariableSelect.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { Search, Plus, Check, X } from \"lucide-react\";\nimport { Input } from \"../../ui/input\";\nimport { Button } from \"../../ui/button\";\nimport { cn } from \"../../../lib/utils\";\nimport { Variable } from \"../types\";\nimport { isValidVariableName } from \"../utils\";\nimport { useTranslation } from \"react-i18next\";\n\ninterface VariableSelectProps {\n variables?: Variable[];\n systemVariables?: Variable[];\n selectedName?: string;\n onSelect?: (variable: Variable) => void;\n onAddVariable?: (variable: Variable) => void;\n}\n\nconst EMPTY_VARIABLES: Variable[] = [];\n\nconst VariableSelect = ({\n variables: initialVariables,\n systemVariables: initialSystemVariables,\n selectedName,\n onSelect,\n onAddVariable,\n}: VariableSelectProps) => {\n const { t } = useTranslation();\n const safeInitialVariables = initialVariables ?? EMPTY_VARIABLES;\n const safeInitialSystemVariables = initialSystemVariables ?? EMPTY_VARIABLES;\n\n const [variables, setVariables] = useState<Variable[]>(safeInitialVariables);\n useEffect(() => {\n setVariables(safeInitialVariables);\n }, [safeInitialVariables]);\n const systemVariables = safeInitialSystemVariables;\n const [searchQuery, setSearchQuery] = useState(\"\");\n const [isAddingNew, setIsAddingNew] = useState(false);\n const [newVariableName, setNewVariableName] = useState(\"\");\n const [duplicateError, setDuplicateError] = useState(false);\n const [invalidNameError, setInvalidNameError] = useState(false);\n const resetErrors = () => {\n setDuplicateError(false);\n setInvalidNameError(false);\n };\n const normalizedSearch = searchQuery.toLowerCase();\n const filterPredicate = (variable: Variable) => {\n const nameMatch = variable.name.toLowerCase().includes(normalizedSearch);\n const labelMatch = variable.label\n ? variable.label.toLowerCase().includes(normalizedSearch)\n : false;\n return nameMatch || labelMatch;\n };\n\n const filteredSystemVariables = useMemo(\n () => systemVariables.filter(filterPredicate),\n [systemVariables, normalizedSearch]\n );\n const filteredCustomVariables = useMemo(\n () => variables.filter(filterPredicate),\n [variables, normalizedSearch]\n );\n const hasAnyResult =\n filteredSystemVariables.length > 0 || filteredCustomVariables.length > 0;\n\n const handleAddVariable = () => {\n const inputValue = newVariableName;\n if (!inputValue || !isValidVariableName(inputValue)) {\n setInvalidNameError(true);\n setDuplicateError(false);\n return;\n }\n\n const lowerName = inputValue.toLowerCase();\n const isDuplicate = [...variables, ...systemVariables].some(\n (v) => v.name.toLowerCase() === lowerName\n );\n\n if (isDuplicate) {\n setDuplicateError(true);\n setInvalidNameError(false);\n return;\n }\n\n const newVariable: Variable = {\n name: inputValue,\n };\n setVariables((prev) => [newVariable, ...prev]);\n onAddVariable?.({ name: inputValue });\n setNewVariableName(\"\");\n setIsAddingNew(false);\n setSearchQuery(\"\");\n resetErrors();\n onSelect?.(newVariable);\n };\n\n const handleCancelAdd = () => {\n setIsAddingNew(false);\n setNewVariableName(\"\");\n resetErrors();\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setNewVariableName(e.target.value);\n if (duplicateError || invalidNameError) {\n resetErrors();\n }\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n handleAddVariable();\n } else if (e.key === \"Escape\") {\n handleCancelAdd();\n }\n };\n return (\n <div className=\"w-full max-w-sm rounded-lg border bg-white\">\n <div className=\"relative\">\n <Search className=\"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground\" />\n <Input\n type=\"text\"\n placeholder={t(\"variableSearchPlaceholder\", \"Search variable\")}\n value={searchQuery}\n onChange={(e) => setSearchQuery(e.target.value)}\n className=\"ps-8 h-8 border-0 focus-visible:ring-0 focus-visible:ring-offset-0\"\n />\n </div>\n\n <div className=\"max-h-[300px] overflow-y-auto p-2\">\n {hasAnyResult ? (\n <div className=\"space-y-4\">\n {filteredSystemVariables.length > 0 && (\n <div className=\"space-y-1\">\n <p className=\"px-3 text-xs font-medium text-muted-foreground\">\n {t(\"variableSectionSystem\", \"System Variables\")}\n </p>\n <div className=\"space-y-1\">\n {filteredSystemVariables.map((variable) => (\n <button\n key={`system-${variable.name}`}\n onClick={() => onSelect?.(variable)}\n className={cn(\n \"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent\",\n selectedName === variable.name && \"bg-accent\"\n )}\n >\n <div className=\"flex flex-col\">\n <span className=\"text-sm font-medium text-foreground\">\n {variable.name}\n </span>\n {variable.label && (\n <span className=\"text-xs text-muted-foreground\">\n {variable.label}\n </span>\n )}\n </div>\n {selectedName === variable.name && (\n <Check className=\"mt-1 h-4 w-4 text-foreground\" />\n )}\n </button>\n ))}\n </div>\n </div>\n )}\n\n {filteredCustomVariables.length > 0 && (\n <div className=\"space-y-1\">\n <p className=\"px-3 text-xs font-medium text-muted-foreground\">\n {t(\"variableSectionCustom\", \"Custom Variables\")}\n </p>\n <div className=\"space-y-1\">\n {filteredCustomVariables.map((variable) => (\n <button\n key={`custom-${variable.name}`}\n onClick={() => onSelect?.(variable)}\n className={cn(\n \"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent\",\n selectedName === variable.name && \"bg-accent\"\n )}\n >\n <div className=\"flex flex-col\">\n <span className=\"text-sm font-medium text-foreground\">\n {variable.name}\n </span>\n {variable.label && (\n <span className=\"text-xs text-muted-foreground\">\n {variable.label}\n </span>\n )}\n </div>\n {selectedName === variable.name && (\n <Check className=\"mt-1 h-4 w-4 text-foreground\" />\n )}\n </button>\n ))}\n </div>\n </div>\n )}\n </div>\n ) : (\n <div className=\"px-3 py-6 text-center text-sm text-muted-foreground\">\n {searchQuery\n ? t(\"variableNotFound\", \"No variables found\")\n : t(\"variableEmpty\", \"No variables yet\")}\n </div>\n )}\n </div>\n\n <div className=\"border-t border-border p-2\">\n {isAddingNew ? (\n <div>\n <div className=\"flex items-center gap-2 rounded-md border border-border bg-background px-3 py-2\">\n <Input\n type=\"text\"\n placeholder={t(\"variableNamePlaceholder\", \"Variable name\")}\n value={newVariableName}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n autoFocus\n className=\"h-8 flex-1 border-0 px-0 focus-visible:ring-0 focus-visible:ring-offset-0\"\n />\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={handleCancelAdd}\n className=\"h-8 w-8 shrink-0 text-muted-foreground hover:text-foreground\"\n >\n <X className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={handleAddVariable}\n className=\"h-8 w-8 shrink-0 text-muted-foreground hover:text-foreground\"\n >\n <Check className=\"h-4 w-4\" />\n </Button>\n </div>\n {(duplicateError || invalidNameError) && (\n <p className=\"mt-1 px-3 text-xs text-red-500\">\n {duplicateError\n ? t(\"variableAlreadyExists\", \"Variable already exists\")\n : t(\n \"variableNameInvalid\",\n \"Use letters, numbers, or underscores without spaces\"\n )}\n </p>\n )}\n </div>\n ) : (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => setIsAddingNew(true)}\n className=\"w-full justify-start text-muted-foreground hover:text-foreground\"\n >\n <Plus className=\"me-2 h-4 w-4\" />\n {t(\"variableAddNew\", \"Add new variable\")}\n </Button>\n )}\n </div>\n </div>\n );\n};\nexport default VariableSelect;\n"],"names":["EMPTY_VARIABLES","VariableSelect","initialVariables","initialSystemVariables","selectedName","onSelect","onAddVariable","t","useTranslation","safeInitialVariables","safeInitialSystemVariables","variables","setVariables","useState","useEffect","systemVariables","searchQuery","setSearchQuery","isAddingNew","setIsAddingNew","newVariableName","setNewVariableName","duplicateError","setDuplicateError","invalidNameError","setInvalidNameError","resetErrors","normalizedSearch","filterPredicate","variable","nameMatch","labelMatch","filteredSystemVariables","useMemo","filteredCustomVariables","hasAnyResult","handleAddVariable","inputValue","isValidVariableName","lowerName","v","newVariable","prev","handleCancelAdd","handleInputChange","handleKeyDown","jsxs","jsx","Search","Input","cn","Check","Button","X","Plus"],"mappings":";;;;;;;;;;;AAkBA,MAAMA,IAA8B,CAAA,GAE9BC,KAAiB,CAAC;AAAA,EACtB,WAAWC;AAAA,EACX,iBAAiBC;AAAA,EACjB,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC;AACF,MAA2B;AACzB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAuBP,KAAoBF,GAC3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AAA,CAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MAC7B,GACF;AAAA,OACE7B,KAAkBE,MAClB,gBAAAuB,EAAC,KAAA,EAAE,WAAU,kCACV,UAAAzB,IACGf,EAAE,yBAAyB,yBAAyB,IACpDA;AAAA,QACE;AAAA,QACA;AAAA,MAAA,EACF,CACN;AAAA,IAAA,EAAA,CAEJ,IAEA,gBAAAuC;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,SAAS,MAAMjC,EAAe,EAAI;AAAA,QAClC,WAAU;AAAA,QAEV,UAAA;AAAA,UAAA,gBAAA4B,EAACO,GAAA,EAAK,WAAU,eAAA,CAAe;AAAA,UAC9B/C,EAAE,kBAAkB,kBAAkB;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,EACzC,CAEJ;AAAA,EAAA,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"VariableSelect.es.js","sources":["../../../../src/components/MarkdownFlowEditor/components/VariableSelect.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useState } from \"react\";\nimport { Search, Plus, Check, X } from \"lucide-react\";\nimport { Input } from \"../../ui/input\";\nimport { Button } from \"../../ui/button\";\nimport { cn } from \"../../../lib/utils\";\nimport { Variable } from \"../types\";\nimport { normalizeVariableName } from \"../utils\";\nimport { useTranslation } from \"react-i18next\";\n\ninterface VariableSelectProps {\n variables?: Variable[];\n systemVariables?: Variable[];\n selectedName?: string;\n onSelect?: (variable: Variable) => void;\n onAddVariable?: (variable: Variable) => void;\n}\n\nconst EMPTY_VARIABLES: Variable[] = [];\n\nconst VariableSelect = ({\n variables: initialVariables,\n systemVariables: initialSystemVariables,\n selectedName,\n onSelect,\n onAddVariable,\n}: VariableSelectProps) => {\n const { t } = useTranslation();\n const safeInitialVariables = initialVariables ?? EMPTY_VARIABLES;\n const safeInitialSystemVariables = initialSystemVariables ?? EMPTY_VARIABLES;\n\n const [variables, setVariables] = useState<Variable[]>(safeInitialVariables);\n useEffect(() => {\n setVariables(safeInitialVariables);\n }, [safeInitialVariables]);\n const systemVariables = safeInitialSystemVariables;\n const [searchQuery, setSearchQuery] = useState(\"\");\n const [isAddingNew, setIsAddingNew] = useState(false);\n const [newVariableName, setNewVariableName] = useState(\"\");\n const [duplicateError, setDuplicateError] = useState(false);\n const [invalidNameError, setInvalidNameError] = useState(false);\n const resetErrors = () => {\n setDuplicateError(false);\n setInvalidNameError(false);\n };\n const normalizedSearch = searchQuery.toLowerCase();\n const filterPredicate = (variable: Variable) => {\n const nameMatch = variable.name.toLowerCase().includes(normalizedSearch);\n const labelMatch = variable.label\n ? variable.label.toLowerCase().includes(normalizedSearch)\n : false;\n return nameMatch || labelMatch;\n };\n\n const filteredSystemVariables = useMemo(\n () => systemVariables.filter(filterPredicate),\n [systemVariables, normalizedSearch]\n );\n const filteredCustomVariables = useMemo(\n () => variables.filter(filterPredicate),\n [variables, normalizedSearch]\n );\n const hasAnyResult =\n filteredSystemVariables.length > 0 || filteredCustomVariables.length > 0;\n\n const handleAddVariable = () => {\n const inputValue = normalizeVariableName(newVariableName);\n if (!inputValue) {\n setInvalidNameError(true);\n setDuplicateError(false);\n return;\n }\n\n const isDuplicate = [...variables, ...systemVariables].some(\n (v) => normalizeVariableName(v.name) === inputValue\n );\n\n if (isDuplicate) {\n setDuplicateError(true);\n setInvalidNameError(false);\n return;\n }\n\n const newVariable: Variable = {\n name: inputValue,\n };\n setVariables((prev) => [newVariable, ...prev]);\n onAddVariable?.({ name: inputValue });\n setNewVariableName(\"\");\n setIsAddingNew(false);\n setSearchQuery(\"\");\n resetErrors();\n onSelect?.(newVariable);\n };\n\n const handleCancelAdd = () => {\n setIsAddingNew(false);\n setNewVariableName(\"\");\n resetErrors();\n };\n\n const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setNewVariableName(e.target.value);\n if (duplicateError || invalidNameError) {\n resetErrors();\n }\n };\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\") {\n handleAddVariable();\n } else if (e.key === \"Escape\") {\n handleCancelAdd();\n }\n };\n return (\n <div className=\"w-full max-w-sm rounded-lg border bg-white\">\n <div className=\"relative\">\n <Search className=\"absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground\" />\n <Input\n type=\"text\"\n placeholder={t(\"variableSearchPlaceholder\", \"Search variable\")}\n value={searchQuery}\n onChange={(e) => setSearchQuery(e.target.value)}\n className=\"ps-8 h-8 border-0 focus-visible:ring-0 focus-visible:ring-offset-0\"\n />\n </div>\n\n <div className=\"max-h-[300px] overflow-y-auto p-2\">\n {hasAnyResult ? (\n <div className=\"space-y-4\">\n {filteredSystemVariables.length > 0 && (\n <div className=\"space-y-1\">\n <p className=\"px-3 text-xs font-medium text-muted-foreground\">\n {t(\"variableSectionSystem\", \"System Variables\")}\n </p>\n <div className=\"space-y-1\">\n {filteredSystemVariables.map((variable) => (\n <button\n key={`system-${variable.name}`}\n onClick={() => onSelect?.(variable)}\n className={cn(\n \"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent\",\n selectedName === variable.name && \"bg-accent\"\n )}\n >\n <div className=\"flex flex-col\">\n <span className=\"text-sm font-medium text-foreground\">\n {variable.name}\n </span>\n {variable.label && (\n <span className=\"text-xs text-muted-foreground\">\n {variable.label}\n </span>\n )}\n </div>\n {selectedName === variable.name && (\n <Check className=\"mt-1 h-4 w-4 text-foreground\" />\n )}\n </button>\n ))}\n </div>\n </div>\n )}\n\n {filteredCustomVariables.length > 0 && (\n <div className=\"space-y-1\">\n <p className=\"px-3 text-xs font-medium text-muted-foreground\">\n {t(\"variableSectionCustom\", \"Custom Variables\")}\n </p>\n <div className=\"space-y-1\">\n {filteredCustomVariables.map((variable) => (\n <button\n key={`custom-${variable.name}`}\n onClick={() => onSelect?.(variable)}\n className={cn(\n \"flex w-full items-start justify-between rounded-md px-3 py-2 text-start transition-colors hover:bg-accent\",\n selectedName === variable.name && \"bg-accent\"\n )}\n >\n <div className=\"flex flex-col\">\n <span className=\"text-sm font-medium text-foreground\">\n {variable.name}\n </span>\n {variable.label && (\n <span className=\"text-xs text-muted-foreground\">\n {variable.label}\n </span>\n )}\n </div>\n {selectedName === variable.name && (\n <Check className=\"mt-1 h-4 w-4 text-foreground\" />\n )}\n </button>\n ))}\n </div>\n </div>\n )}\n </div>\n ) : (\n <div className=\"px-3 py-6 text-center text-sm text-muted-foreground\">\n {searchQuery\n ? t(\"variableNotFound\", \"No variables found\")\n : t(\"variableEmpty\", \"No variables yet\")}\n </div>\n )}\n </div>\n\n <div className=\"border-t border-border p-2\">\n {isAddingNew ? (\n <div>\n <div className=\"flex items-center gap-2 rounded-md border border-border bg-background px-3 py-2\">\n <Input\n type=\"text\"\n placeholder={t(\"variableNamePlaceholder\", \"Variable name\")}\n value={newVariableName}\n onChange={handleInputChange}\n onKeyDown={handleKeyDown}\n autoFocus\n className=\"h-8 flex-1 border-0 px-0 focus-visible:ring-0 focus-visible:ring-offset-0\"\n />\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={handleCancelAdd}\n className=\"h-8 w-8 shrink-0 text-muted-foreground hover:text-foreground\"\n >\n <X className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={handleAddVariable}\n className=\"h-8 w-8 shrink-0 text-muted-foreground hover:text-foreground\"\n >\n <Check className=\"h-4 w-4\" />\n </Button>\n </div>\n {(duplicateError || invalidNameError) && (\n <p className=\"mt-1 px-3 text-xs text-red-500\">\n {duplicateError\n ? t(\"variableAlreadyExists\", \"Variable already exists\")\n : t(\n \"variableNameInvalid\",\n \"Use a non-empty name without control characters, line breaks, or }}\"\n )}\n </p>\n )}\n </div>\n ) : (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => setIsAddingNew(true)}\n className=\"w-full justify-start text-muted-foreground hover:text-foreground\"\n >\n <Plus className=\"me-2 h-4 w-4\" />\n {t(\"variableAddNew\", \"Add new variable\")}\n </Button>\n )}\n </div>\n </div>\n );\n};\nexport default VariableSelect;\n"],"names":["EMPTY_VARIABLES","VariableSelect","initialVariables","initialSystemVariables","selectedName","onSelect","onAddVariable","t","useTranslation","safeInitialVariables","safeInitialSystemVariables","variables","setVariables","useState","useEffect","systemVariables","searchQuery","setSearchQuery","isAddingNew","setIsAddingNew","newVariableName","setNewVariableName","duplicateError","setDuplicateError","invalidNameError","setInvalidNameError","resetErrors","normalizedSearch","filterPredicate","variable","nameMatch","labelMatch","filteredSystemVariables","useMemo","filteredCustomVariables","hasAnyResult","handleAddVariable","inputValue","normalizeVariableName","v","newVariable","prev","handleCancelAdd","handleInputChange","handleKeyDown","jsxs","jsx","Search","Input","cn","Check","Button","X","Plus"],"mappings":";;;;;;;;;;;AAiBA,MAAMA,IAA8B,CAAA,GAE9BC,KAAiB,CAAC;AAAA,EACtB,WAAWC;AAAA,EACX,iBAAiBC;AAAA,EACjB,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,eAAAC;AACF,MAA2B;AACzB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAuBP,KAAoBF,GAC3CU,IAA6BP,KAA0BH,GAEvD,CAACW,GAAWC,CAAY,IAAIC,EAAqBJ,CAAoB;AAC3E,EAAAK,EAAU,MAAM;AACd,IAAAF,EAAaH,CAAoB;AAAA,EACnC,GAAG,CAACA,CAAoB,CAAC;AACzB,QAAMM,IAAkBL,GAClB,CAACM,GAAaC,CAAc,IAAIJ,EAAS,EAAE,GAC3C,CAACK,GAAaC,CAAc,IAAIN,EAAS,EAAK,GAC9C,CAACO,GAAiBC,CAAkB,IAAIR,EAAS,EAAE,GACnD,CAACS,GAAgBC,CAAiB,IAAIV,EAAS,EAAK,GACpD,CAACW,GAAkBC,CAAmB,IAAIZ,EAAS,EAAK,GACxDa,IAAc,MAAM;AACxB,IAAAH,EAAkB,EAAK,GACvBE,EAAoB,EAAK;AAAA,EAC3B,GACME,IAAmBX,EAAY,YAA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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="اكتب '/' لإدراج محتوى بسرعة",o="أدخل المحتوى الذي تريد كتابته",l="أدخل المحتوى، واكتب / لعرض المزيد",t="الإعدادات",a="إغلاق",i="إضافة صورة",n="إضافة فيديو",r="أدخل رابط الصورة",s="URL",c="معاينة",d="أدخل عنوان الصورة",b="استخدام الصورة",u="اسم الصورة",v="رفع",g="اسحب الملفات أو انقر للرفع",m="جارٍ الرفع...",h="اكتمل الرفع",T="فشل الرفع، يرجى المحاولة مرة أخرى",I="إضافة نص ثابت",U="نص ثابت",p="خط فاصل",P="عنوان الصورة",B="نسبة التحجيم",C="إلغاء",L="يرجى إدخال رابط الصورة",S="يرجى إدخال رابط صورة صالح",f="أدخل رابط فيديو من Bilibili أو YouTube",x="URL",V="معاينة",E="استخدام المورد",D="أدخل عنوان الفيديو",N="العنوان",w="عنوان الفيديو",R="فيديو Bilibili",y="فيديو YouTube",O="يرجى إدخال رابط فيديو صالح من Bilibili أو YouTube",A="إلغاء",Y="استخدام الفيديو",k="ستظهر المعاينة هنا",F="معاينة الفيديو",M="صورة",q="فيديو",Q="متغير",_="نص ثابت",j="اختيار متغير",z="البحث عن متغير",G="لم يتم العثور على متغيرات",H="لا توجد متغيرات بعد",J="اسم المتغير",K="المتغير موجود بالفعل",W="استخدم
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="اكتب '/' لإدراج محتوى بسرعة",o="أدخل المحتوى الذي تريد كتابته",l="أدخل المحتوى، واكتب / لعرض المزيد",t="الإعدادات",a="إغلاق",i="إضافة صورة",n="إضافة فيديو",r="أدخل رابط الصورة",s="URL",c="معاينة",d="أدخل عنوان الصورة",b="استخدام الصورة",u="اسم الصورة",v="رفع",g="اسحب الملفات أو انقر للرفع",m="جارٍ الرفع...",h="اكتمل الرفع",T="فشل الرفع، يرجى المحاولة مرة أخرى",I="إضافة نص ثابت",U="نص ثابت",p="خط فاصل",P="عنوان الصورة",B="نسبة التحجيم",C="إلغاء",L="يرجى إدخال رابط الصورة",S="يرجى إدخال رابط صورة صالح",f="أدخل رابط فيديو من Bilibili أو YouTube",x="URL",V="معاينة",E="استخدام المورد",D="أدخل عنوان الفيديو",N="العنوان",w="عنوان الفيديو",R="فيديو Bilibili",y="فيديو YouTube",O="يرجى إدخال رابط فيديو صالح من Bilibili أو YouTube",A="إلغاء",Y="استخدام الفيديو",k="ستظهر المعاينة هنا",F="معاينة الفيديو",M="صورة",q="فيديو",Q="متغير",_="نص ثابت",j="اختيار متغير",z="البحث عن متغير",G="لم يتم العثور على متغيرات",H="لا توجد متغيرات بعد",J="اسم المتغير",K="المتغير موجود بالفعل",W="استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}",X="متغيرات النظام",Z="متغيرات مخصصة",$="إضافة متغير",ee="إدراج متغير جديد",oe="إدراج متغير موجود",le="إدراج ناتج التأكيد",te="إدراج رابط",ae="إدراج زر",ie="إدراج اختيار واحد",ne="الخيار 1",re="الخيار 2",se="إدراج اختيار متعدد",ce="إدراج حقل إدخال",de="يرجى الإدخال",be="إدراج صورة",ue="إدراج فيديو",ve={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:l,dialogTitle:t,dialogCloseLabel:a,dialogTitleImage:i,dialogTitleVideo:n,imageUrlPlaceholder:r,imageUrlLabel:s,imageRunButton:c,imageTitlePlaceholder:d,imageUseButton:b,imageDefaultTitle:u,imageUploadLabel:v,imageUploadPlaceholder:g,imageUploading:m,imageUploadSuccess:h,imageUploadError:T,fixedTextPlaceholder:I,fixedTextTooltip:U,slashDivider:p,imageTitleLabel:P,imageScaleLabel:B,imageCancelButton:C,imageUrlRequired:L,imageInvalidUrl:S,videoUrlPlaceholder:f,videoUrlLabel:x,videoRunButton:V,videoUseButton:E,videoTitlePlaceholder:D,videoTitleLabel:N,videoDefaultTitle:w,videoDefaultTitleBilibili:R,videoDefaultTitleYoutube:y,videoInvalidUrl:O,videoCancelButton:A,videoUseVideoButton:Y,videoPreviewPlaceholder:k,videoPreviewTitle:F,slashImage:M,slashVideo:q,slashVariable:Q,slashFixedText:_,dialogTitleVariable:j,variableSearchPlaceholder:z,variableNotFound:G,variableEmpty:H,variableNamePlaceholder:J,variableAlreadyExists:K,variableNameInvalid:W,variableSectionSystem:X,variableSectionCustom:Z,variableAddNew:$,toolbarInsertNewVariable:ee,toolbarInsertExistingVariable:oe,toolbarConfirmOutput:le,toolbarInsertLink:te,toolbarInsertButton:ae,toolbarInsertSingleChoice:ie,toolbarChoiceOption1:ne,toolbarChoiceOption2:re,toolbarInsertMultiChoice:se,toolbarInsertInput:ce,toolbarInputPlaceholder:de,toolbarInsertImage:be,toolbarInsertVideo:ue};exports.default=ve;exports.dialogCloseLabel=a;exports.dialogTitle=t;exports.dialogTitleImage=i;exports.dialogTitleVariable=j;exports.dialogTitleVideo=n;exports.fixedTextPlaceholder=I;exports.fixedTextTooltip=U;exports.imageCancelButton=C;exports.imageDefaultTitle=u;exports.imageInvalidUrl=S;exports.imageRunButton=c;exports.imageScaleLabel=B;exports.imageTitleLabel=P;exports.imageTitlePlaceholder=d;exports.imageUploadError=T;exports.imageUploadLabel=v;exports.imageUploadPlaceholder=g;exports.imageUploadSuccess=h;exports.imageUploading=m;exports.imageUrlLabel=s;exports.imageUrlPlaceholder=r;exports.imageUrlRequired=L;exports.imageUseButton=b;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=l;exports.slashDivider=p;exports.slashFixedText=_;exports.slashImage=M;exports.slashVariable=Q;exports.slashVideo=q;exports.toolbarChoiceOption1=ne;exports.toolbarChoiceOption2=re;exports.toolbarConfirmOutput=le;exports.toolbarInputPlaceholder=de;exports.toolbarInsertButton=ae;exports.toolbarInsertExistingVariable=oe;exports.toolbarInsertImage=be;exports.toolbarInsertInput=ce;exports.toolbarInsertLink=te;exports.toolbarInsertMultiChoice=se;exports.toolbarInsertNewVariable=ee;exports.toolbarInsertSingleChoice=ie;exports.toolbarInsertVideo=ue;exports.variableAddNew=$;exports.variableAlreadyExists=K;exports.variableEmpty=H;exports.variableNameInvalid=W;exports.variableNamePlaceholder=J;exports.variableNotFound=G;exports.variableSearchPlaceholder=z;exports.variableSectionCustom=Z;exports.variableSectionSystem=X;exports.videoCancelButton=A;exports.videoDefaultTitle=w;exports.videoDefaultTitleBilibili=R;exports.videoDefaultTitleYoutube=y;exports.videoInvalidUrl=O;exports.videoPreviewPlaceholder=k;exports.videoPreviewTitle=F;exports.videoRunButton=V;exports.videoTitleLabel=N;exports.videoTitlePlaceholder=D;exports.videoUrlLabel=x;exports.videoUrlPlaceholder=f;exports.videoUseButton=E;exports.videoUseVideoButton=Y;
|
|
2
2
|
//# sourceMappingURL=ar-SA.json.cjs.map
|
|
@@ -49,7 +49,7 @@ declare const _default: {
|
|
|
49
49
|
"variableEmpty": "لا توجد متغيرات بعد",
|
|
50
50
|
"variableNamePlaceholder": "اسم المتغير",
|
|
51
51
|
"variableAlreadyExists": "المتغير موجود بالفعل",
|
|
52
|
-
"variableNameInvalid": "استخدم
|
|
52
|
+
"variableNameInvalid": "استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}",
|
|
53
53
|
"variableSectionSystem": "متغيرات النظام",
|
|
54
54
|
"variableSectionCustom": "متغيرات مخصصة",
|
|
55
55
|
"variableAddNew": "إضافة متغير",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل المحتوى الذي تريد كتابته", t = "أدخل المحتوى، واكتب / لعرض المزيد", l = "الإعدادات", a = "إغلاق", i = "إضافة صورة", n = "إضافة فيديو", s = "أدخل رابط الصورة", bo = "URL", c = "معاينة", r = "أدخل عنوان الصورة", d = "استخدام الصورة", b = "اسم الصورة", uo = "رفع", u = "اسحب الملفات أو انقر للرفع", v = "جارٍ الرفع...", g = "اكتمل الرفع", m = "فشل الرفع، يرجى المحاولة مرة أخرى", h = "إضافة نص ثابت", T = "نص ثابت", U = "خط فاصل", p = "عنوان الصورة", I = "نسبة التحجيم", L = "إلغاء", B = "يرجى إدخال رابط الصورة", P = "يرجى إدخال رابط صورة صالح", C = "أدخل رابط فيديو من Bilibili أو YouTube", vo = "URL", x = "معاينة", f = "استخدام المورد", S = "أدخل عنوان الفيديو", V = "العنوان", E = "عنوان الفيديو", D = "فيديو Bilibili", N = "فيديو YouTube", R = "يرجى إدخال رابط فيديو صالح من Bilibili أو YouTube", w = "إلغاء", Y = "استخدام الفيديو", y = "ستظهر المعاينة هنا", A = "معاينة الفيديو", O = "صورة", k = "فيديو", F = "متغير", q = "نص ثابت", M = "اختيار متغير", Q = "البحث عن متغير", j = "لم يتم العثور على متغيرات", z = "لا توجد متغيرات بعد", G = "اسم المتغير", H = "المتغير موجود بالفعل", J = "استخدم
|
|
1
|
+
const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل المحتوى الذي تريد كتابته", t = "أدخل المحتوى، واكتب / لعرض المزيد", l = "الإعدادات", a = "إغلاق", i = "إضافة صورة", n = "إضافة فيديو", s = "أدخل رابط الصورة", bo = "URL", c = "معاينة", r = "أدخل عنوان الصورة", d = "استخدام الصورة", b = "اسم الصورة", uo = "رفع", u = "اسحب الملفات أو انقر للرفع", v = "جارٍ الرفع...", g = "اكتمل الرفع", m = "فشل الرفع، يرجى المحاولة مرة أخرى", h = "إضافة نص ثابت", T = "نص ثابت", U = "خط فاصل", p = "عنوان الصورة", I = "نسبة التحجيم", L = "إلغاء", B = "يرجى إدخال رابط الصورة", P = "يرجى إدخال رابط صورة صالح", C = "أدخل رابط فيديو من Bilibili أو YouTube", vo = "URL", x = "معاينة", f = "استخدام المورد", S = "أدخل عنوان الفيديو", V = "العنوان", E = "عنوان الفيديو", D = "فيديو Bilibili", N = "فيديو YouTube", R = "يرجى إدخال رابط فيديو صالح من Bilibili أو YouTube", w = "إلغاء", Y = "استخدام الفيديو", y = "ستظهر المعاينة هنا", A = "معاينة الفيديو", O = "صورة", k = "فيديو", F = "متغير", q = "نص ثابت", M = "اختيار متغير", Q = "البحث عن متغير", j = "لم يتم العثور على متغيرات", z = "لا توجد متغيرات بعد", G = "اسم المتغير", H = "المتغير موجود بالفعل", J = "استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}", K = "متغيرات النظام", W = "متغيرات مخصصة", X = "إضافة متغير", Z = "إدراج متغير جديد", _ = "إدراج متغير موجود", $ = "إدراج ناتج التأكيد", oo = "إدراج رابط", eo = "إدراج زر", to = "إدراج اختيار واحد", lo = "الخيار 1", ao = "الخيار 2", io = "إدراج اختيار متعدد", no = "إدراج حقل إدخال", so = "يرجى الإدخال", co = "إدراج صورة", ro = "إدراج فيديو", go = {
|
|
2
2
|
placeholder: o,
|
|
3
3
|
placeholderCodeEdit: e,
|
|
4
4
|
placeholderQuickEdit: t,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Gib '/' ein, um Inhalte einzufügen",i="Gib deinen Inhalt ein",o="Gib deinen Inhalt ein und tippe '/' für weitere Optionen",l="Einstellungen",a="Schließen",t="Bild hinzufügen",n="Video hinzufügen",r="Gib die Bild-URL ein",d="URL",s="Vorschau",c="Gib den Bildtitel ein",b="Bild verwenden",h="Bildname",u="Hochladen",g="Dateien hierher ziehen oder zum Hochladen klicken",v="Wird hochgeladen...",m="Hochladen abgeschlossen",T="Hochladen fehlgeschlagen. Bitte versuche es erneut.",V="Feststehenden Text hinzufügen",f="Feststehender Text",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Gib '/' ein, um Inhalte einzufügen",i="Gib deinen Inhalt ein",o="Gib deinen Inhalt ein und tippe '/' für weitere Optionen",l="Einstellungen",a="Schließen",t="Bild hinzufügen",n="Video hinzufügen",r="Gib die Bild-URL ein",d="URL",s="Vorschau",c="Gib den Bildtitel ein",b="Bild verwenden",h="Bildname",u="Hochladen",g="Dateien hierher ziehen oder zum Hochladen klicken",v="Wird hochgeladen...",m="Hochladen abgeschlossen",T="Hochladen fehlgeschlagen. Bitte versuche es erneut.",V="Feststehenden Text hinzufügen",f="Feststehender Text",I="Trennlinie",U="Bildtitel",p="Skalierung",B="Abbrechen",P="Gib die Bild-URL ein",L="Gib eine gültige Bild-URL ein",S="Gib eine Bilibili- oder YouTube-Video-URL ein",C="URL",x="Vorschau",w="Ressource verwenden",E="Gib den Videotitel ein",R="Titel",D="Videotitel",N="Bilibili-Video",z="YouTube-Video",G="Gib eine gültige Bilibili- oder YouTube-Video-URL ein",O="Abbrechen",k="Video verwenden",y="Die Vorschau wird hier angezeigt",F="Videovorschau",A="Bild",M="Video",Y="Variable",H="Feststehender Text",q="Variable auswählen",Q="Variable suchen",_="Keine Variablen gefunden",j="Noch keine Variablen vorhanden",K="Variablenname",W="Variable ist bereits vorhanden",Z="Verwende einen nicht leeren Namen ohne Steuerzeichen, Zeilenumbrüche oder }}",J="Systemvariablen",X="Benutzerdefinierte Variablen",$="Variable hinzufügen",ee="Neue Variable einfügen",ie="Vorhandene Variable einfügen",oe="Bestätigungsausgabe einfügen",le="Link einfügen",ae="Schaltfläche einfügen",te="Einfachauswahl einfügen",ne="Option 1",re="Option 2",de="Mehrfachauswahl einfügen",se="Eingabefeld einfügen",ce="Bitte eingeben",be="Bild einfügen",he="Video einfügen",ue={placeholder:e,placeholderCodeEdit:i,placeholderQuickEdit:o,dialogTitle:l,dialogCloseLabel:a,dialogTitleImage:t,dialogTitleVideo:n,imageUrlPlaceholder:r,imageUrlLabel:d,imageRunButton:s,imageTitlePlaceholder:c,imageUseButton:b,imageDefaultTitle:h,imageUploadLabel:u,imageUploadPlaceholder:g,imageUploading:v,imageUploadSuccess:m,imageUploadError:T,fixedTextPlaceholder:V,fixedTextTooltip:f,slashDivider:I,imageTitleLabel:U,imageScaleLabel:p,imageCancelButton:B,imageUrlRequired:P,imageInvalidUrl:L,videoUrlPlaceholder:S,videoUrlLabel:C,videoRunButton:x,videoUseButton:w,videoTitlePlaceholder:E,videoTitleLabel:R,videoDefaultTitle:D,videoDefaultTitleBilibili:N,videoDefaultTitleYoutube:z,videoInvalidUrl:G,videoCancelButton:O,videoUseVideoButton:k,videoPreviewPlaceholder:y,videoPreviewTitle:F,slashImage:A,slashVideo:M,slashVariable:Y,slashFixedText:H,dialogTitleVariable:q,variableSearchPlaceholder:Q,variableNotFound:_,variableEmpty:j,variableNamePlaceholder:K,variableAlreadyExists:W,variableNameInvalid:Z,variableSectionSystem:J,variableSectionCustom:X,variableAddNew:$,toolbarInsertNewVariable:ee,toolbarInsertExistingVariable:ie,toolbarConfirmOutput:oe,toolbarInsertLink:le,toolbarInsertButton:ae,toolbarInsertSingleChoice:te,toolbarChoiceOption1:ne,toolbarChoiceOption2:re,toolbarInsertMultiChoice:de,toolbarInsertInput:se,toolbarInputPlaceholder:ce,toolbarInsertImage:be,toolbarInsertVideo:he};exports.default=ue;exports.dialogCloseLabel=a;exports.dialogTitle=l;exports.dialogTitleImage=t;exports.dialogTitleVariable=q;exports.dialogTitleVideo=n;exports.fixedTextPlaceholder=V;exports.fixedTextTooltip=f;exports.imageCancelButton=B;exports.imageDefaultTitle=h;exports.imageInvalidUrl=L;exports.imageRunButton=s;exports.imageScaleLabel=p;exports.imageTitleLabel=U;exports.imageTitlePlaceholder=c;exports.imageUploadError=T;exports.imageUploadLabel=u;exports.imageUploadPlaceholder=g;exports.imageUploadSuccess=m;exports.imageUploading=v;exports.imageUrlLabel=d;exports.imageUrlPlaceholder=r;exports.imageUrlRequired=P;exports.imageUseButton=b;exports.placeholder=e;exports.placeholderCodeEdit=i;exports.placeholderQuickEdit=o;exports.slashDivider=I;exports.slashFixedText=H;exports.slashImage=A;exports.slashVariable=Y;exports.slashVideo=M;exports.toolbarChoiceOption1=ne;exports.toolbarChoiceOption2=re;exports.toolbarConfirmOutput=oe;exports.toolbarInputPlaceholder=ce;exports.toolbarInsertButton=ae;exports.toolbarInsertExistingVariable=ie;exports.toolbarInsertImage=be;exports.toolbarInsertInput=se;exports.toolbarInsertLink=le;exports.toolbarInsertMultiChoice=de;exports.toolbarInsertNewVariable=ee;exports.toolbarInsertSingleChoice=te;exports.toolbarInsertVideo=he;exports.variableAddNew=$;exports.variableAlreadyExists=W;exports.variableEmpty=j;exports.variableNameInvalid=Z;exports.variableNamePlaceholder=K;exports.variableNotFound=_;exports.variableSearchPlaceholder=Q;exports.variableSectionCustom=X;exports.variableSectionSystem=J;exports.videoCancelButton=O;exports.videoDefaultTitle=D;exports.videoDefaultTitleBilibili=N;exports.videoDefaultTitleYoutube=z;exports.videoInvalidUrl=G;exports.videoPreviewPlaceholder=y;exports.videoPreviewTitle=F;exports.videoRunButton=x;exports.videoTitleLabel=R;exports.videoTitlePlaceholder=E;exports.videoUrlLabel=C;exports.videoUrlPlaceholder=S;exports.videoUseButton=w;exports.videoUseVideoButton=k;
|
|
2
2
|
//# sourceMappingURL=de-DE.json.cjs.map
|
|
@@ -49,7 +49,7 @@ declare const _default: {
|
|
|
49
49
|
"variableEmpty": "Noch keine Variablen vorhanden",
|
|
50
50
|
"variableNamePlaceholder": "Variablenname",
|
|
51
51
|
"variableAlreadyExists": "Variable ist bereits vorhanden",
|
|
52
|
-
"variableNameInvalid": "Verwende
|
|
52
|
+
"variableNameInvalid": "Verwende einen nicht leeren Namen ohne Steuerzeichen, Zeilenumbrüche oder }}",
|
|
53
53
|
"variableSectionSystem": "Systemvariablen",
|
|
54
54
|
"variableSectionCustom": "Benutzerdefinierte Variablen",
|
|
55
55
|
"variableAddNew": "Variable hinzufügen",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "Gib '/' ein, um Inhalte einzufügen", i = "Gib deinen Inhalt ein", n = "Gib deinen Inhalt ein und tippe '/' für weitere Optionen", o = "Einstellungen", t = "Schließen", l = "Bild hinzufügen", a = "Video hinzufügen", s = "Gib die Bild-URL ein", be = "URL", c = "Vorschau", r = "Gib den Bildtitel ein", d = "Bild verwenden", b = "Bildname", h = "Hochladen", g = "Dateien hierher ziehen oder zum Hochladen klicken", u = "Wird hochgeladen...", v = "Hochladen abgeschlossen", V = "Hochladen fehlgeschlagen. Bitte versuche es erneut.",
|
|
1
|
+
const e = "Gib '/' ein, um Inhalte einzufügen", i = "Gib deinen Inhalt ein", n = "Gib deinen Inhalt ein und tippe '/' für weitere Optionen", o = "Einstellungen", t = "Schließen", l = "Bild hinzufügen", a = "Video hinzufügen", s = "Gib die Bild-URL ein", be = "URL", c = "Vorschau", r = "Gib den Bildtitel ein", d = "Bild verwenden", b = "Bildname", h = "Hochladen", g = "Dateien hierher ziehen oder zum Hochladen klicken", u = "Wird hochgeladen...", v = "Hochladen abgeschlossen", V = "Hochladen fehlgeschlagen. Bitte versuche es erneut.", m = "Feststehenden Text hinzufügen", f = "Feststehender Text", B = "Trennlinie", T = "Bildtitel", U = "Skalierung", p = "Abbrechen", I = "Gib die Bild-URL ein", L = "Gib eine gültige Bild-URL ein", w = "Gib eine Bilibili- oder YouTube-Video-URL ein", he = "URL", x = "Vorschau", P = "Ressource verwenden", S = "Gib den Videotitel ein", R = "Titel", z = "Videotitel", C = "Bilibili-Video", E = "YouTube-Video", G = "Gib eine gültige Bilibili- oder YouTube-Video-URL ein", D = "Abbrechen", N = "Video verwenden", k = "Die Vorschau wird hier angezeigt", O = "Videovorschau", F = "Bild", y = "Video", A = "Variable", H = "Feststehender Text", Y = "Variable auswählen", M = "Variable suchen", q = "Keine Variablen gefunden", K = "Noch keine Variablen vorhanden", Q = "Variablenname", W = "Variable ist bereits vorhanden", Z = "Verwende einen nicht leeren Namen ohne Steuerzeichen, Zeilenumbrüche oder }}", j = "Systemvariablen", J = "Benutzerdefinierte Variablen", X = "Variable hinzufügen", _ = "Neue Variable einfügen", $ = "Vorhandene Variable einfügen", ee = "Bestätigungsausgabe einfügen", ie = "Link einfügen", ne = "Schaltfläche einfügen", oe = "Einfachauswahl einfügen", te = "Option 1", le = "Option 2", ae = "Mehrfachauswahl einfügen", se = "Eingabefeld einfügen", ce = "Bitte eingeben", re = "Bild einfügen", de = "Video einfügen", ge = {
|
|
2
2
|
placeholder: e,
|
|
3
3
|
placeholderCodeEdit: i,
|
|
4
4
|
placeholderQuickEdit: n,
|
|
@@ -17,8 +17,8 @@ const e = "Gib '/' ein, um Inhalte einzufügen", i = "Gib deinen Inhalt ein", n
|
|
|
17
17
|
imageUploading: u,
|
|
18
18
|
imageUploadSuccess: v,
|
|
19
19
|
imageUploadError: V,
|
|
20
|
-
fixedTextPlaceholder:
|
|
21
|
-
fixedTextTooltip:
|
|
20
|
+
fixedTextPlaceholder: m,
|
|
21
|
+
fixedTextTooltip: f,
|
|
22
22
|
slashDivider: B,
|
|
23
23
|
imageTitleLabel: T,
|
|
24
24
|
imageScaleLabel: U,
|
|
@@ -29,15 +29,15 @@ const e = "Gib '/' ein, um Inhalte einzufügen", i = "Gib deinen Inhalt ein", n
|
|
|
29
29
|
videoUrlLabel: "URL",
|
|
30
30
|
videoRunButton: x,
|
|
31
31
|
videoUseButton: P,
|
|
32
|
-
videoTitlePlaceholder:
|
|
33
|
-
videoTitleLabel:
|
|
32
|
+
videoTitlePlaceholder: S,
|
|
33
|
+
videoTitleLabel: R,
|
|
34
34
|
videoDefaultTitle: z,
|
|
35
35
|
videoDefaultTitleBilibili: C,
|
|
36
36
|
videoDefaultTitleYoutube: E,
|
|
37
37
|
videoInvalidUrl: G,
|
|
38
38
|
videoCancelButton: D,
|
|
39
|
-
videoUseVideoButton:
|
|
40
|
-
videoPreviewPlaceholder:
|
|
39
|
+
videoUseVideoButton: N,
|
|
40
|
+
videoPreviewPlaceholder: k,
|
|
41
41
|
videoPreviewTitle: O,
|
|
42
42
|
slashImage: F,
|
|
43
43
|
slashVideo: y,
|
|
@@ -74,8 +74,8 @@ export {
|
|
|
74
74
|
l as dialogTitleImage,
|
|
75
75
|
Y as dialogTitleVariable,
|
|
76
76
|
a as dialogTitleVideo,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
m as fixedTextPlaceholder,
|
|
78
|
+
f as fixedTextTooltip,
|
|
79
79
|
p as imageCancelButton,
|
|
80
80
|
b as imageDefaultTitle,
|
|
81
81
|
L as imageInvalidUrl,
|
|
@@ -127,14 +127,14 @@ export {
|
|
|
127
127
|
C as videoDefaultTitleBilibili,
|
|
128
128
|
E as videoDefaultTitleYoutube,
|
|
129
129
|
G as videoInvalidUrl,
|
|
130
|
-
|
|
130
|
+
k as videoPreviewPlaceholder,
|
|
131
131
|
O as videoPreviewTitle,
|
|
132
132
|
x as videoRunButton,
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
R as videoTitleLabel,
|
|
134
|
+
S as videoTitlePlaceholder,
|
|
135
135
|
he as videoUrlLabel,
|
|
136
136
|
w as videoUrlPlaceholder,
|
|
137
137
|
P as videoUseButton,
|
|
138
|
-
|
|
138
|
+
N as videoUseVideoButton
|
|
139
139
|
};
|
|
140
140
|
//# sourceMappingURL=de-DE.json.es.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Type '/' to insert content",o="Please enter your content",t="Please enter your content, type '/' for more",a="Settings",l="Close",i="Add Image",r="Add Video",n="Please enter image URL",s="URL",d="Preview",c="Please enter image title",b="Use Image",u="Image name",v="Upload",g="Drag files or click to upload",m="Uploading...",h="Upload complete",I="Upload failed, please retry",p="Add fixed text",U="Fixed text",T="Divider",P="Image Title",V="Scale",x="Cancel",C="Please enter image URL",L="Please enter a valid image URL",f="Please enter Bilibili or YouTube video URL",S="URL",B="Preview",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Type '/' to insert content",o="Please enter your content",t="Please enter your content, type '/' for more",a="Settings",l="Close",i="Add Image",r="Add Video",n="Please enter image URL",s="URL",d="Preview",c="Please enter image title",b="Use Image",u="Image name",v="Upload",g="Drag files or click to upload",m="Uploading...",h="Upload complete",I="Upload failed, please retry",p="Add fixed text",U="Fixed text",T="Divider",P="Image Title",V="Scale",x="Cancel",C="Please enter image URL",L="Please enter a valid image URL",f="Please enter Bilibili or YouTube video URL",S="URL",B="Preview",y="Use Resource",w="Please enter video title",R="Title",D="Video Title",E="Bilibili Video",N="YouTube Video",O="Please enter a valid Bilibili or YouTube video URL",A="Cancel",k="Use Video",F="Preview will appear here",Y="Video preview",M="Image",q="Video",Q="Variable",_="Fixed Text",j="Select Variable",z="Search variable",G="No variables found",H="No variables yet",J="Variable name",K="Variable already exists",W="Use a non-empty name without control characters, line breaks, or }}",X="System Variables",Z="Custom Variables",$="Add variable",ee="Insert new variable",oe="Insert existing variable",te="Insert confirm output",ae="Insert link",le="Insert button",ie="Insert single choice",re="Option 1",ne="Option 2",se="Insert multi choice",de="Insert input",ce="Please enter",be="Insert image",ue="Insert video",ve={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:t,dialogTitle:a,dialogCloseLabel:l,dialogTitleImage:i,dialogTitleVideo:r,imageUrlPlaceholder:n,imageUrlLabel:s,imageRunButton:d,imageTitlePlaceholder:c,imageUseButton:b,imageDefaultTitle:u,imageUploadLabel:v,imageUploadPlaceholder:g,imageUploading:m,imageUploadSuccess:h,imageUploadError:I,fixedTextPlaceholder:p,fixedTextTooltip:U,slashDivider:T,imageTitleLabel:P,imageScaleLabel:V,imageCancelButton:x,imageUrlRequired:C,imageInvalidUrl:L,videoUrlPlaceholder:f,videoUrlLabel:S,videoRunButton:B,videoUseButton:y,videoTitlePlaceholder:w,videoTitleLabel:R,videoDefaultTitle:D,videoDefaultTitleBilibili:E,videoDefaultTitleYoutube:N,videoInvalidUrl:O,videoCancelButton:A,videoUseVideoButton:k,videoPreviewPlaceholder:F,videoPreviewTitle:Y,slashImage:M,slashVideo:q,slashVariable:Q,slashFixedText:_,dialogTitleVariable:j,variableSearchPlaceholder:z,variableNotFound:G,variableEmpty:H,variableNamePlaceholder:J,variableAlreadyExists:K,variableNameInvalid:W,variableSectionSystem:X,variableSectionCustom:Z,variableAddNew:$,toolbarInsertNewVariable:ee,toolbarInsertExistingVariable:oe,toolbarConfirmOutput:te,toolbarInsertLink:ae,toolbarInsertButton:le,toolbarInsertSingleChoice:ie,toolbarChoiceOption1:re,toolbarChoiceOption2:ne,toolbarInsertMultiChoice:se,toolbarInsertInput:de,toolbarInputPlaceholder:ce,toolbarInsertImage:be,toolbarInsertVideo:ue};exports.default=ve;exports.dialogCloseLabel=l;exports.dialogTitle=a;exports.dialogTitleImage=i;exports.dialogTitleVariable=j;exports.dialogTitleVideo=r;exports.fixedTextPlaceholder=p;exports.fixedTextTooltip=U;exports.imageCancelButton=x;exports.imageDefaultTitle=u;exports.imageInvalidUrl=L;exports.imageRunButton=d;exports.imageScaleLabel=V;exports.imageTitleLabel=P;exports.imageTitlePlaceholder=c;exports.imageUploadError=I;exports.imageUploadLabel=v;exports.imageUploadPlaceholder=g;exports.imageUploadSuccess=h;exports.imageUploading=m;exports.imageUrlLabel=s;exports.imageUrlPlaceholder=n;exports.imageUrlRequired=C;exports.imageUseButton=b;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=t;exports.slashDivider=T;exports.slashFixedText=_;exports.slashImage=M;exports.slashVariable=Q;exports.slashVideo=q;exports.toolbarChoiceOption1=re;exports.toolbarChoiceOption2=ne;exports.toolbarConfirmOutput=te;exports.toolbarInputPlaceholder=ce;exports.toolbarInsertButton=le;exports.toolbarInsertExistingVariable=oe;exports.toolbarInsertImage=be;exports.toolbarInsertInput=de;exports.toolbarInsertLink=ae;exports.toolbarInsertMultiChoice=se;exports.toolbarInsertNewVariable=ee;exports.toolbarInsertSingleChoice=ie;exports.toolbarInsertVideo=ue;exports.variableAddNew=$;exports.variableAlreadyExists=K;exports.variableEmpty=H;exports.variableNameInvalid=W;exports.variableNamePlaceholder=J;exports.variableNotFound=G;exports.variableSearchPlaceholder=z;exports.variableSectionCustom=Z;exports.variableSectionSystem=X;exports.videoCancelButton=A;exports.videoDefaultTitle=D;exports.videoDefaultTitleBilibili=E;exports.videoDefaultTitleYoutube=N;exports.videoInvalidUrl=O;exports.videoPreviewPlaceholder=F;exports.videoPreviewTitle=Y;exports.videoRunButton=B;exports.videoTitleLabel=R;exports.videoTitlePlaceholder=w;exports.videoUrlLabel=S;exports.videoUrlPlaceholder=f;exports.videoUseButton=y;exports.videoUseVideoButton=k;
|
|
2
2
|
//# sourceMappingURL=en-US.json.cjs.map
|
|
@@ -49,7 +49,7 @@ declare const _default: {
|
|
|
49
49
|
"variableEmpty": "No variables yet",
|
|
50
50
|
"variableNamePlaceholder": "Variable name",
|
|
51
51
|
"variableAlreadyExists": "Variable already exists",
|
|
52
|
-
"variableNameInvalid": "Use
|
|
52
|
+
"variableNameInvalid": "Use a non-empty name without control characters, line breaks, or }}",
|
|
53
53
|
"variableSectionSystem": "System Variables",
|
|
54
54
|
"variableSectionCustom": "Custom Variables",
|
|
55
55
|
"variableAddNew": "Add variable",
|