markdown-flow-ui 0.3.1 → 0.3.2-dev.2

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 (85) hide show
  1. package/README.md +13 -0
  2. package/dist/_virtual/index.es3.js +4 -5
  3. package/dist/_virtual/index.es3.js.map +1 -1
  4. package/dist/_virtual/index.es4.js +5 -4
  5. package/dist/_virtual/index.es4.js.map +1 -1
  6. package/dist/_virtual/index3.cjs +1 -1
  7. package/dist/_virtual/index4.cjs +1 -1
  8. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  9. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  10. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -0
  11. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +444 -415
  12. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  13. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  14. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  15. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +1 -0
  16. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +71 -68
  17. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  18. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +22 -0
  19. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  20. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +2 -1
  21. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +16 -14
  22. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
  23. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  24. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +2 -1
  25. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +19 -17
  26. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
  27. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  28. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -1
  29. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +15 -13
  30. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  31. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  32. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +2 -1
  33. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +21 -19
  34. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
  35. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  36. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +2 -1
  37. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +27 -25
  38. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
  39. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  40. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -1
  41. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +21 -19
  42. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  43. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  44. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +2 -1
  45. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +19 -17
  46. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
  47. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  48. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +2 -1
  49. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +18 -16
  50. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  52. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +2 -1
  53. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +17 -15
  54. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
  55. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  56. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +2 -1
  57. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +25 -23
  58. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
  59. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  60. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -1
  61. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +28 -26
  62. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  63. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  64. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  65. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.d.ts +5 -1
  66. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +154 -149
  67. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  68. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  69. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  70. package/dist/components/MarkdownFlowEditor/utils.d.ts +2 -0
  71. package/dist/components/MarkdownFlowEditor/utils.es.js +54 -52
  72. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  73. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  74. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  75. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  76. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  77. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  78. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  79. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  80. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  81. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  82. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  83. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  84. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  85. package/package.json +1 -1
@@ -1,21 +1,22 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- import { memo as M, useCallback as l } from "react";
1
+ import { jsx as t, jsxs as e, Fragment as j } from "react/jsx-runtime";
2
+ import { memo as q, useCallback as l } from "react";
3
3
  import { SelectedOption as T } from "../types.es.js";
4
- import j from "./icons/SearchBracesIcon.es.js";
5
- import q from "./icons/ButtonIcon.es.js";
6
- import { TooltipProvider as P, Tooltip as o, TooltipTrigger as c, TooltipContent as h } from "../../ui/tooltip.es.js";
7
- import A from "../../../node_modules/lucide-react/dist/esm/icons/braces.es.js";
8
- import D from "../../../node_modules/lucide-react/dist/esm/icons/circle-check.es.js";
9
- import F from "../../../node_modules/lucide-react/dist/esm/icons/square-check.es.js";
10
- import Z from "../../../node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js";
11
- import _ from "../../../node_modules/lucide-react/dist/esm/icons/file-type.es.js";
12
- import $ from "../../../node_modules/lucide-react/dist/esm/icons/image.es.js";
13
- import G from "../../../node_modules/lucide-react/dist/esm/icons/square-play.es.js";
14
- const u = 18, H = ({
4
+ import F from "./icons/SearchBracesIcon.es.js";
5
+ import P from "./icons/ButtonIcon.es.js";
6
+ import { TooltipProvider as A, Tooltip as o, TooltipTrigger as c, TooltipContent as h } from "../../ui/tooltip.es.js";
7
+ import D from "../../../node_modules/lucide-react/dist/esm/icons/braces.es.js";
8
+ import Z from "../../../node_modules/lucide-react/dist/esm/icons/circle-check.es.js";
9
+ import _ from "../../../node_modules/lucide-react/dist/esm/icons/square-check.es.js";
10
+ import $ from "../../../node_modules/lucide-react/dist/esm/icons/text-cursor-input.es.js";
11
+ import G from "../../../node_modules/lucide-react/dist/esm/icons/file-type.es.js";
12
+ import H from "../../../node_modules/lucide-react/dist/esm/icons/image.es.js";
13
+ import J from "../../../node_modules/lucide-react/dist/esm/icons/square-play.es.js";
14
+ const u = 18, K = ({
15
15
  disabled: r = !1,
16
+ enableVariables: v = !0,
16
17
  labels: i,
17
- tooltipDirection: v,
18
- tooltipLanguage: z,
18
+ tooltipDirection: z,
19
+ tooltipLanguage: W,
19
20
  onSelect: d,
20
21
  onInsertVariablePlaceholder: m,
21
22
  onVariableSearchToggle: p,
@@ -26,59 +27,61 @@ const u = 18, H = ({
26
27
  onInsertSingleChoice: k,
27
28
  onInsertMultiChoice: s,
28
29
  onInsertInputField: g,
29
- variableSearchActive: W = !1,
30
+ variableSearchActive: I = !1,
30
31
  rightSlot: y
31
32
  }) => {
32
- const I = l(() => {
33
+ const w = l(() => {
33
34
  r || (a?.(), m?.());
34
- }, [r, m, a]), w = l(
35
- (E) => {
36
- r || p?.(E.currentTarget);
35
+ }, [r, m, a]), B = l(
36
+ (M) => {
37
+ r || p?.(M.currentTarget);
37
38
  },
38
39
  [r, p]
39
- ), B = l(() => {
40
+ ), O = l(() => {
40
41
  r || C?.();
41
- }, [r, C]), O = l(() => {
42
+ }, [r, C]), S = l(() => {
42
43
  r || f?.();
43
- }, [r, f]), S = l(() => {
44
+ }, [r, f]), x = l(() => {
44
45
  r || k?.();
45
- }, [r, k]), x = l(() => {
46
+ }, [r, k]), N = l(() => {
46
47
  r || s?.();
47
- }, [r, s]), N = l(() => {
48
+ }, [r, s]), E = l(() => {
48
49
  r || g?.();
49
50
  }, [r, g]), n = {
50
- dir: v,
51
- lang: z,
51
+ dir: z,
52
+ lang: W,
52
53
  side: "top"
53
54
  };
54
- return /* @__PURE__ */ t(P, { delayDuration: 150, children: /* @__PURE__ */ e("div", { className: "markdown-flow-editor-toolbar", "aria-disabled": r, children: [
55
+ return /* @__PURE__ */ t(A, { delayDuration: 150, children: /* @__PURE__ */ e("div", { className: "markdown-flow-editor-toolbar", "aria-disabled": r, children: [
55
56
  /* @__PURE__ */ e("div", { className: "markdown-flow-editor-toolbar-left", children: [
56
- /* @__PURE__ */ e(o, { children: [
57
- /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ t(
58
- "button",
59
- {
60
- type: "button",
61
- disabled: r,
62
- onClick: I,
63
- children: /* @__PURE__ */ t(A, { strokeWidth: 1.75, size: u })
64
- }
65
- ) }),
66
- /* @__PURE__ */ t(h, { ...n, children: i.addVariable ?? "" })
67
- ] }),
68
- /* @__PURE__ */ e(o, { children: [
69
- /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ t(
70
- "button",
71
- {
72
- type: "button",
73
- disabled: r,
74
- onClick: w,
75
- "data-active": !r && W ? "true" : void 0,
76
- "aria-label": i.search,
77
- title: i.search,
78
- children: /* @__PURE__ */ t(j, { strokeWidth: 1.75, size: u })
79
- }
80
- ) }),
81
- /* @__PURE__ */ t(h, { ...n, children: i.search ?? "" })
57
+ v && /* @__PURE__ */ e(j, { children: [
58
+ /* @__PURE__ */ e(o, { children: [
59
+ /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ t(
60
+ "button",
61
+ {
62
+ type: "button",
63
+ disabled: r,
64
+ onClick: w,
65
+ children: /* @__PURE__ */ t(D, { strokeWidth: 1.75, size: u })
66
+ }
67
+ ) }),
68
+ /* @__PURE__ */ t(h, { ...n, children: i.addVariable ?? "" })
69
+ ] }),
70
+ /* @__PURE__ */ e(o, { children: [
71
+ /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ t(
72
+ "button",
73
+ {
74
+ type: "button",
75
+ disabled: r,
76
+ onClick: B,
77
+ "data-active": !r && I ? "true" : void 0,
78
+ "aria-label": i.search,
79
+ title: i.search,
80
+ children: /* @__PURE__ */ t(F, { strokeWidth: 1.75, size: u })
81
+ }
82
+ ) }),
83
+ /* @__PURE__ */ t(h, { ...n, children: i.search ?? "" })
84
+ ] })
82
85
  ] }),
83
86
  /* @__PURE__ */ e(o, { children: [
84
87
  /* @__PURE__ */ t(c, { asChild: !0, children: /* @__PURE__ */ t(
@@ -86,10 +89,10 @@ const u = 18, H = ({
86
89
  {
87
90
  type: "button",
88
91
  disabled: r,
89
- onClick: S,
92
+ onClick: x,
90
93
  "aria-label": i.insertSingleChoice,
91
94
  title: i.insertSingleChoice,
92
- children: /* @__PURE__ */ t(D, { strokeWidth: 1.75, size: u })
95
+ children: /* @__PURE__ */ t(Z, { strokeWidth: 1.75, size: u })
93
96
  }
94
97
  ) }),
95
98
  /* @__PURE__ */ t(h, { ...n, children: i.insertSingleChoice ?? "" })
@@ -100,10 +103,10 @@ const u = 18, H = ({
100
103
  {
101
104
  type: "button",
102
105
  disabled: r,
103
- onClick: x,
106
+ onClick: N,
104
107
  "aria-label": i.insertMultiChoice,
105
108
  title: i.insertMultiChoice,
106
- children: /* @__PURE__ */ t(F, { strokeWidth: 1.75, size: u })
109
+ children: /* @__PURE__ */ t(_, { strokeWidth: 1.75, size: u })
107
110
  }
108
111
  ) }),
109
112
  /* @__PURE__ */ t(h, { ...n, children: i.insertMultiChoice ?? "" })
@@ -114,10 +117,10 @@ const u = 18, H = ({
114
117
  {
115
118
  type: "button",
116
119
  disabled: r,
117
- onClick: N,
120
+ onClick: E,
118
121
  "aria-label": i.insertInput,
119
122
  title: i.insertInput,
120
- children: /* @__PURE__ */ t(Z, { strokeWidth: 1.75, size: u })
123
+ children: /* @__PURE__ */ t($, { strokeWidth: 1.75, size: u })
121
124
  }
122
125
  ) }),
123
126
  /* @__PURE__ */ t(h, { ...n, children: i.insertInput ?? "" })
@@ -128,10 +131,10 @@ const u = 18, H = ({
128
131
  {
129
132
  type: "button",
130
133
  disabled: r,
131
- onClick: O,
134
+ onClick: S,
132
135
  "aria-label": i.insertButton,
133
136
  title: i.insertButton,
134
- children: /* @__PURE__ */ t(q, { strokeWidth: 1.75, size: u })
137
+ children: /* @__PURE__ */ t(P, { strokeWidth: 1.75, size: u })
135
138
  }
136
139
  ) }),
137
140
  /* @__PURE__ */ t(h, { ...n, children: i.insertButton ?? "" })
@@ -142,10 +145,10 @@ const u = 18, H = ({
142
145
  {
143
146
  type: "button",
144
147
  disabled: r,
145
- onClick: B,
148
+ onClick: O,
146
149
  "aria-label": i.confirmOutput,
147
150
  title: i.confirmOutput,
148
- children: /* @__PURE__ */ t(_, { strokeWidth: 1.75, size: u })
151
+ children: /* @__PURE__ */ t(G, { strokeWidth: 1.75, size: u })
149
152
  }
150
153
  ) }),
151
154
  /* @__PURE__ */ t(h, { ...n, children: i.confirmOutput ?? "" })
@@ -159,7 +162,7 @@ const u = 18, H = ({
159
162
  onClick: () => d(T.Image),
160
163
  "aria-label": i.image,
161
164
  title: i.image,
162
- children: /* @__PURE__ */ t($, { strokeWidth: 1.75, size: u })
165
+ children: /* @__PURE__ */ t(H, { strokeWidth: 1.75, size: u })
163
166
  }
164
167
  ) }),
165
168
  /* @__PURE__ */ t(h, { ...n, children: i.image ?? "" })
@@ -173,7 +176,7 @@ const u = 18, H = ({
173
176
  onClick: () => d(T.Video),
174
177
  "aria-label": i.video,
175
178
  title: i.video,
176
- children: /* @__PURE__ */ t(G, { strokeWidth: 1.75, size: u })
179
+ children: /* @__PURE__ */ t(J, { strokeWidth: 1.75, size: u })
177
180
  }
178
181
  ) }),
179
182
  /* @__PURE__ */ t(h, { ...n, children: i.video ?? "" })
@@ -181,8 +184,8 @@ const u = 18, H = ({
181
184
  ] }),
182
185
  y ? /* @__PURE__ */ t("div", { className: "markdown-flow-editor-toolbar-right-wrapper", children: y }) : null
183
186
  ] }) });
184
- }, et = M(H);
187
+ }, ot = q(K);
185
188
  export {
186
- et as default
189
+ ot as default
187
190
  };
188
191
  //# sourceMappingURL=EditorToolbar.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.es.js","sources":["../../../../src/components/MarkdownFlowEditor/components/EditorToolbar.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\nimport {\n Braces,\n FileType,\n Image as ImageIcon,\n TextCursorInput,\n // Link,\n SquareCheck,\n SquarePlay,\n CircleCheck,\n} from \"lucide-react\";\nimport { SelectedOption } from \"../types\";\nimport SearchBracesIcon from \"./icons/SearchBracesIcon\";\nimport ButtonIcon from \"./icons/ButtonIcon\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../../ui/tooltip\";\nimport type { MarkdownFlowDirection } from \"../../../lib/locale\";\n\ntype ToolbarLabels = {\n confirmOutput: string | undefined;\n insertLink: string | undefined;\n insertButton: string | undefined;\n insertSingleChoice: string | undefined;\n insertMultiChoice: string | undefined;\n insertInput: string | undefined;\n variable: string;\n image: string;\n video: string;\n addVariable: string;\n search: string;\n};\n\ninterface EditorToolbarProps {\n disabled?: boolean;\n labels: ToolbarLabels;\n tooltipDirection?: MarkdownFlowDirection;\n tooltipLanguage?: string;\n onSelect: (selectedOption: SelectedOption) => void;\n onInsertVariablePlaceholder?: () => void;\n onVariableSearchToggle?: (button: HTMLButtonElement) => void;\n onVariableSearchClose?: () => void;\n onInsertConfirmOutput?: () => void;\n onInsertLink?: () => void;\n onInsertButton?: () => void;\n onInsertSingleChoice?: () => void;\n onInsertMultiChoice?: () => void;\n onInsertInputField?: () => void;\n variableSearchActive?: boolean;\n rightSlot?: React.ReactNode;\n}\n\n/**\n * EditorToolbar renders quick action buttons that mirror the slash commands.\n */\nconst ICON_SIZE = 18;\n\nconst EditorToolbar: React.FC<EditorToolbarProps> = ({\n disabled = false,\n labels,\n tooltipDirection,\n tooltipLanguage,\n onSelect,\n onInsertVariablePlaceholder,\n onVariableSearchToggle,\n onVariableSearchClose,\n onInsertConfirmOutput,\n // onInsertLink,\n onInsertButton,\n onInsertSingleChoice,\n onInsertMultiChoice,\n onInsertInputField,\n variableSearchActive = false,\n rightSlot,\n}) => {\n const handleAddVariable = useCallback(() => {\n if (disabled) {\n return;\n }\n onVariableSearchClose?.();\n onInsertVariablePlaceholder?.();\n }, [disabled, onInsertVariablePlaceholder, onVariableSearchClose]);\n\n const handleSearchToggle = useCallback(\n (event: React.MouseEvent<HTMLButtonElement>) => {\n if (disabled) {\n return;\n }\n onVariableSearchToggle?.(event.currentTarget);\n },\n [disabled, onVariableSearchToggle]\n );\n\n const handleConfirmOutput = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertConfirmOutput?.();\n }, [disabled, onInsertConfirmOutput]);\n\n // const handleInsertLink = useCallback(() => {\n // if (disabled) {\n // return;\n // }\n // onInsertLink?.();\n // }, [disabled, onInsertLink]);\n\n const handleInsertButton = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertButton?.();\n }, [disabled, onInsertButton]);\n\n const handleInsertSingleChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertSingleChoice?.();\n }, [disabled, onInsertSingleChoice]);\n\n const handleInsertMultiChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertMultiChoice?.();\n }, [disabled, onInsertMultiChoice]);\n\n const handleInsertInputField = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertInputField?.();\n }, [disabled, onInsertInputField]);\n\n const tooltipContentProps = {\n dir: tooltipDirection,\n lang: tooltipLanguage,\n side: \"top\" as const,\n };\n\n return (\n <TooltipProvider delayDuration={150}>\n <div className=\"markdown-flow-editor-toolbar\" aria-disabled={disabled}>\n <div className=\"markdown-flow-editor-toolbar-left\">\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleAddVariable}\n >\n <Braces strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.addVariable ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleSearchToggle}\n data-active={\n !disabled && variableSearchActive ? \"true\" : undefined\n }\n aria-label={labels.search}\n title={labels.search}\n >\n <SearchBracesIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.search ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertSingleChoice}\n aria-label={labels.insertSingleChoice}\n title={labels.insertSingleChoice}\n >\n <CircleCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertSingleChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertMultiChoice}\n aria-label={labels.insertMultiChoice}\n title={labels.insertMultiChoice}\n >\n <SquareCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertMultiChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertInputField}\n aria-label={labels.insertInput}\n title={labels.insertInput}\n >\n <TextCursorInput strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertInput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertButton}\n aria-label={labels.insertButton}\n title={labels.insertButton}\n >\n <ButtonIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertButton ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleConfirmOutput}\n aria-label={labels.confirmOutput}\n title={labels.confirmOutput}\n >\n <FileType strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.confirmOutput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Image)}\n aria-label={labels.image}\n title={labels.image}\n >\n <ImageIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.image ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Video)}\n aria-label={labels.video}\n title={labels.video}\n >\n <SquarePlay strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.video ?? \"\"}\n </TooltipContent>\n </Tooltip>\n </div>\n {rightSlot ? (\n <div className=\"markdown-flow-editor-toolbar-right-wrapper\">\n {rightSlot}\n </div>\n ) : null}\n {/* <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertLink}\n aria-label={labels.insertLink}\n title={labels.insertLink}\n >\n <Link strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent side=\"top\">\n {labels.insertLink ?? \"\"}\n </TooltipContent>\n </Tooltip> */}\n </div>\n </TooltipProvider>\n );\n};\n\nexport default memo(EditorToolbar);\n"],"names":["ICON_SIZE","EditorToolbar","disabled","labels","tooltipDirection","tooltipLanguage","onSelect","onInsertVariablePlaceholder","onVariableSearchToggle","onVariableSearchClose","onInsertConfirmOutput","onInsertButton","onInsertSingleChoice","onInsertMultiChoice","onInsertInputField","variableSearchActive","rightSlot","handleAddVariable","useCallback","handleSearchToggle","event","handleConfirmOutput","handleInsertButton","handleInsertSingleChoice","handleInsertMultiChoice","handleInsertInputField","tooltipContentProps","jsx","TooltipProvider","jsxs","Tooltip","TooltipTrigger","Braces","TooltipContent","SearchBracesIcon","CircleCheck","SquareCheck","TextCursorInput","ButtonIcon","FileType","SelectedOption","ImageIcon","SquarePlay","EditorToolbar$1","memo"],"mappings":";;;;;;;;;;;;;AA0DA,MAAMA,IAAY,IAEZC,IAA8C,CAAC;AAAA,EACnD,UAAAC,IAAW;AAAA,EACX,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA;AAAA,EAEA,gBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,WAAAC;AACF,MAAM;AACJ,QAAMC,IAAoBC,EAAY,MAAM;AAC1C,IAAIhB,MAGJO,IAAA,GACAF,IAAA;AAAA,EACF,GAAG,CAACL,GAAUK,GAA6BE,CAAqB,CAAC,GAE3DU,IAAqBD;AAAA,IACzB,CAACE,MAA+C;AAC9C,MAAIlB,KAGJM,IAAyBY,EAAM,aAAa;AAAA,IAC9C;AAAA,IACA,CAAClB,GAAUM,CAAsB;AAAA,EAAA,GAG7Ba,IAAsBH,EAAY,MAAM;AAC5C,IAAIhB,KAGJQ,IAAA;AAAA,EACF,GAAG,CAACR,GAAUQ,CAAqB,CAAC,GAS9BY,IAAqBJ,EAAY,MAAM;AAC3C,IAAIhB,KAGJS,IAAA;AAAA,EACF,GAAG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AA,YACC,MAAK;AAAA,YACL,UAAAzB;AAAA,YACA,SAAS,MAAMI,EAASkC,EAAe,KAAK;AAAA,YAC5C,cAAYrC,EAAO;AAAA,YACnB,OAAOA,EAAO;AAAA,YAEd,UAAA,gBAAAwB,EAACc,GAAA,EAAU,aAAa,MAAM,MAAMzC,EAAA,CAAW;AAAA,UAAA;AAAA,QAAA,GAEnD;AAAA,0BACCiC,GAAA,EAAgB,GAAGP,GACjB,UAAAvB,EAAO,SAAS,GAAA,CACnB;AAAA,MAAA,GACF;AAAA,wBACC2B,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAH,EAACI,GAAA,EAAe,SAAO,IACrB,UAAA,gBAAAJ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAAzB;AAAA,YACA,SAAS,MAAMI,EAASkC,EAAe,KAAK;AAAA,YAC5C,cAAYrC,EAAO;AAAA,YACnB,OAAOA,EAAO;AAAA,YAEd,UAAA,gBAAAwB,EAACe,GAAA,EAAW,aAAa,MAAM,MAAM1C,EAAA,CAAW;AAAA,UAAA;AAAA,QAAA,GAEpD;AAAA,0BACCiC,GAAA,EAAgB,GAAGP,GACjB,UAAAvB,EAAO,SAAS,GAAA,CACnB;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,GACF;AAAA,IACCa,IACC,gBAAAW,EAAC,OAAA,EAAI,WAAU,8CACZ,aACH,IACE;AAAA,EAAA,EAAA,CAiBN,EAAA,CACF;AAEJ,GAEAgB,KAAeC,EAAK3C,CAAa;"}
1
+ {"version":3,"file":"EditorToolbar.es.js","sources":["../../../../src/components/MarkdownFlowEditor/components/EditorToolbar.tsx"],"sourcesContent":["import { memo, useCallback } from \"react\";\nimport {\n Braces,\n FileType,\n Image as ImageIcon,\n TextCursorInput,\n // Link,\n SquareCheck,\n SquarePlay,\n CircleCheck,\n} from \"lucide-react\";\nimport { SelectedOption } from \"../types\";\nimport SearchBracesIcon from \"./icons/SearchBracesIcon\";\nimport ButtonIcon from \"./icons/ButtonIcon\";\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"../../ui/tooltip\";\nimport type { MarkdownFlowDirection } from \"../../../lib/locale\";\n\ntype ToolbarLabels = {\n confirmOutput: string | undefined;\n insertLink: string | undefined;\n insertButton: string | undefined;\n insertSingleChoice: string | undefined;\n insertMultiChoice: string | undefined;\n insertInput: string | undefined;\n variable: string;\n image: string;\n video: string;\n addVariable: string;\n search: string;\n};\n\ninterface EditorToolbarProps {\n disabled?: boolean;\n enableVariables?: boolean;\n labels: ToolbarLabels;\n tooltipDirection?: MarkdownFlowDirection;\n tooltipLanguage?: string;\n onSelect: (selectedOption: SelectedOption) => void;\n onInsertVariablePlaceholder?: () => void;\n onVariableSearchToggle?: (button: HTMLButtonElement) => void;\n onVariableSearchClose?: () => void;\n onInsertConfirmOutput?: () => void;\n onInsertLink?: () => void;\n onInsertButton?: () => void;\n onInsertSingleChoice?: () => void;\n onInsertMultiChoice?: () => void;\n onInsertInputField?: () => void;\n variableSearchActive?: boolean;\n rightSlot?: React.ReactNode;\n}\n\n/**\n * EditorToolbar renders quick action buttons that mirror the slash commands.\n */\nconst ICON_SIZE = 18;\n\nconst EditorToolbar: React.FC<EditorToolbarProps> = ({\n disabled = false,\n enableVariables = true,\n labels,\n tooltipDirection,\n tooltipLanguage,\n onSelect,\n onInsertVariablePlaceholder,\n onVariableSearchToggle,\n onVariableSearchClose,\n onInsertConfirmOutput,\n // onInsertLink,\n onInsertButton,\n onInsertSingleChoice,\n onInsertMultiChoice,\n onInsertInputField,\n variableSearchActive = false,\n rightSlot,\n}) => {\n const handleAddVariable = useCallback(() => {\n if (disabled) {\n return;\n }\n onVariableSearchClose?.();\n onInsertVariablePlaceholder?.();\n }, [disabled, onInsertVariablePlaceholder, onVariableSearchClose]);\n\n const handleSearchToggle = useCallback(\n (event: React.MouseEvent<HTMLButtonElement>) => {\n if (disabled) {\n return;\n }\n onVariableSearchToggle?.(event.currentTarget);\n },\n [disabled, onVariableSearchToggle]\n );\n\n const handleConfirmOutput = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertConfirmOutput?.();\n }, [disabled, onInsertConfirmOutput]);\n\n // const handleInsertLink = useCallback(() => {\n // if (disabled) {\n // return;\n // }\n // onInsertLink?.();\n // }, [disabled, onInsertLink]);\n\n const handleInsertButton = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertButton?.();\n }, [disabled, onInsertButton]);\n\n const handleInsertSingleChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertSingleChoice?.();\n }, [disabled, onInsertSingleChoice]);\n\n const handleInsertMultiChoice = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertMultiChoice?.();\n }, [disabled, onInsertMultiChoice]);\n\n const handleInsertInputField = useCallback(() => {\n if (disabled) {\n return;\n }\n onInsertInputField?.();\n }, [disabled, onInsertInputField]);\n\n const tooltipContentProps = {\n dir: tooltipDirection,\n lang: tooltipLanguage,\n side: \"top\" as const,\n };\n\n return (\n <TooltipProvider delayDuration={150}>\n <div className=\"markdown-flow-editor-toolbar\" aria-disabled={disabled}>\n <div className=\"markdown-flow-editor-toolbar-left\">\n {enableVariables && (\n <>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleAddVariable}\n >\n <Braces strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.addVariable ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleSearchToggle}\n data-active={\n !disabled && variableSearchActive ? \"true\" : undefined\n }\n aria-label={labels.search}\n title={labels.search}\n >\n <SearchBracesIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.search ?? \"\"}\n </TooltipContent>\n </Tooltip>\n </>\n )}\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertSingleChoice}\n aria-label={labels.insertSingleChoice}\n title={labels.insertSingleChoice}\n >\n <CircleCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertSingleChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertMultiChoice}\n aria-label={labels.insertMultiChoice}\n title={labels.insertMultiChoice}\n >\n <SquareCheck strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertMultiChoice ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertInputField}\n aria-label={labels.insertInput}\n title={labels.insertInput}\n >\n <TextCursorInput strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertInput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertButton}\n aria-label={labels.insertButton}\n title={labels.insertButton}\n >\n <ButtonIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.insertButton ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleConfirmOutput}\n aria-label={labels.confirmOutput}\n title={labels.confirmOutput}\n >\n <FileType strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.confirmOutput ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Image)}\n aria-label={labels.image}\n title={labels.image}\n >\n <ImageIcon strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.image ?? \"\"}\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={() => onSelect(SelectedOption.Video)}\n aria-label={labels.video}\n title={labels.video}\n >\n <SquarePlay strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent {...tooltipContentProps}>\n {labels.video ?? \"\"}\n </TooltipContent>\n </Tooltip>\n </div>\n {rightSlot ? (\n <div className=\"markdown-flow-editor-toolbar-right-wrapper\">\n {rightSlot}\n </div>\n ) : null}\n {/* <Tooltip>\n <TooltipTrigger asChild>\n <button\n type=\"button\"\n disabled={disabled}\n onClick={handleInsertLink}\n aria-label={labels.insertLink}\n title={labels.insertLink}\n >\n <Link strokeWidth={1.75} size={ICON_SIZE} />\n </button>\n </TooltipTrigger>\n <TooltipContent side=\"top\">\n {labels.insertLink ?? \"\"}\n </TooltipContent>\n </Tooltip> */}\n </div>\n </TooltipProvider>\n );\n};\n\nexport default memo(EditorToolbar);\n"],"names":["ICON_SIZE","EditorToolbar","disabled","enableVariables","labels","tooltipDirection","tooltipLanguage","onSelect","onInsertVariablePlaceholder","onVariableSearchToggle","onVariableSearchClose","onInsertConfirmOutput","onInsertButton","onInsertSingleChoice","onInsertMultiChoice","onInsertInputField","variableSearchActive","rightSlot","handleAddVariable","useCallback","handleSearchToggle","event","handleConfirmOutput","handleInsertButton","handleInsertSingleChoice","handleInsertMultiChoice","handleInsertInputField","tooltipContentProps","jsx","TooltipProvider","jsxs","Fragment","Tooltip","TooltipTrigger","Braces","TooltipContent","SearchBracesIcon","CircleCheck","SquareCheck","TextCursorInput","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A,0BACCmC,GAAA,EAAgB,GAAGR,GACjB,UAAAvB,EAAO,SAAS,GAAA,CACnB;AAAA,MAAA,GACF;AAAA,wBACC4B,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAJ,EAACK,GAAA,EAAe,SAAO,IACrB,UAAA,gBAAAL;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAA1B;AAAA,YACA,SAAS,MAAMK,EAASmC,EAAe,KAAK;AAAA,YAC5C,cAAYtC,EAAO;AAAA,YACnB,OAAOA,EAAO;AAAA,YAEd,UAAA,gBAAAwB,EAACgB,GAAA,EAAW,aAAa,MAAM,MAAM5C,EAAA,CAAW;AAAA,UAAA;AAAA,QAAA,GAEpD;AAAA,0BACCmC,GAAA,EAAgB,GAAGR,GACjB,UAAAvB,EAAO,SAAS,GAAA,CACnB;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,GACF;AAAA,IACCa,IACC,gBAAAW,EAAC,OAAA,EAAI,WAAU,8CACZ,aACH,IACE;AAAA,EAAA,EAAA,CAiBN,EAAA,CACF;AAEJ,GAEAiB,KAAeC,EAAK7C,CAAa;"}
@@ -69,6 +69,7 @@ export declare const editorLocaleResources: {
69
69
  toolbarInputPlaceholder: string;
70
70
  toolbarInsertImage: string;
71
71
  toolbarInsertVideo: string;
72
+ questionPlaceholder: string;
72
73
  };
73
74
  };
74
75
  readonly "es-ES": {
@@ -140,6 +141,7 @@ export declare const editorLocaleResources: {
140
141
  toolbarInputPlaceholder: string;
141
142
  toolbarInsertImage: string;
142
143
  toolbarInsertVideo: string;
144
+ questionPlaceholder: string;
143
145
  };
144
146
  };
145
147
  readonly "fr-FR": {
@@ -211,6 +213,7 @@ export declare const editorLocaleResources: {
211
213
  toolbarInputPlaceholder: string;
212
214
  toolbarInsertImage: string;
213
215
  toolbarInsertVideo: string;
216
+ questionPlaceholder: string;
214
217
  };
215
218
  };
216
219
  readonly "zh-CN": {
@@ -282,6 +285,7 @@ export declare const editorLocaleResources: {
282
285
  toolbarInputPlaceholder: string;
283
286
  toolbarInsertImage: string;
284
287
  toolbarInsertVideo: string;
288
+ questionPlaceholder: string;
285
289
  };
286
290
  };
287
291
  readonly "ar-SA": {
@@ -353,6 +357,7 @@ export declare const editorLocaleResources: {
353
357
  toolbarInputPlaceholder: string;
354
358
  toolbarInsertImage: string;
355
359
  toolbarInsertVideo: string;
360
+ questionPlaceholder: string;
356
361
  };
357
362
  };
358
363
  readonly "th-TH": {
@@ -424,6 +429,7 @@ export declare const editorLocaleResources: {
424
429
  toolbarInputPlaceholder: string;
425
430
  toolbarInsertImage: string;
426
431
  toolbarInsertVideo: string;
432
+ questionPlaceholder: string;
427
433
  };
428
434
  };
429
435
  readonly "de-DE": {
@@ -495,6 +501,7 @@ export declare const editorLocaleResources: {
495
501
  toolbarInputPlaceholder: string;
496
502
  toolbarInsertImage: string;
497
503
  toolbarInsertVideo: string;
504
+ questionPlaceholder: string;
498
505
  };
499
506
  };
500
507
  readonly "ja-JP": {
@@ -566,6 +573,7 @@ export declare const editorLocaleResources: {
566
573
  toolbarInputPlaceholder: string;
567
574
  toolbarInsertImage: string;
568
575
  toolbarInsertVideo: string;
576
+ questionPlaceholder: string;
569
577
  };
570
578
  };
571
579
  readonly "ur-PK": {
@@ -637,6 +645,7 @@ export declare const editorLocaleResources: {
637
645
  toolbarInputPlaceholder: string;
638
646
  toolbarInsertImage: string;
639
647
  toolbarInsertVideo: string;
648
+ questionPlaceholder: string;
640
649
  };
641
650
  };
642
651
  readonly "fil-PH": {
@@ -708,6 +717,7 @@ export declare const editorLocaleResources: {
708
717
  toolbarInputPlaceholder: string;
709
718
  toolbarInsertImage: string;
710
719
  toolbarInsertVideo: string;
720
+ questionPlaceholder: string;
711
721
  };
712
722
  };
713
723
  readonly "vi-VN": {
@@ -779,6 +789,7 @@ export declare const editorLocaleResources: {
779
789
  toolbarInputPlaceholder: string;
780
790
  toolbarInsertImage: string;
781
791
  toolbarInsertVideo: string;
792
+ questionPlaceholder: string;
782
793
  };
783
794
  };
784
795
  };
@@ -850,6 +861,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
850
861
  toolbarInputPlaceholder: string;
851
862
  toolbarInsertImage: string;
852
863
  toolbarInsertVideo: string;
864
+ questionPlaceholder: string;
853
865
  } | {
854
866
  placeholder: string;
855
867
  placeholderCodeEdit: string;
@@ -918,6 +930,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
918
930
  toolbarInputPlaceholder: string;
919
931
  toolbarInsertImage: string;
920
932
  toolbarInsertVideo: string;
933
+ questionPlaceholder: string;
921
934
  } | {
922
935
  placeholder: string;
923
936
  placeholderCodeEdit: string;
@@ -986,6 +999,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
986
999
  toolbarInputPlaceholder: string;
987
1000
  toolbarInsertImage: string;
988
1001
  toolbarInsertVideo: string;
1002
+ questionPlaceholder: string;
989
1003
  } | {
990
1004
  placeholder: string;
991
1005
  placeholderCodeEdit: string;
@@ -1054,6 +1068,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1054
1068
  toolbarInputPlaceholder: string;
1055
1069
  toolbarInsertImage: string;
1056
1070
  toolbarInsertVideo: string;
1071
+ questionPlaceholder: string;
1057
1072
  } | {
1058
1073
  placeholder: string;
1059
1074
  placeholderCodeEdit: string;
@@ -1122,6 +1137,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1122
1137
  toolbarInputPlaceholder: string;
1123
1138
  toolbarInsertImage: string;
1124
1139
  toolbarInsertVideo: string;
1140
+ questionPlaceholder: string;
1125
1141
  } | {
1126
1142
  placeholder: string;
1127
1143
  placeholderCodeEdit: string;
@@ -1190,6 +1206,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1190
1206
  toolbarInputPlaceholder: string;
1191
1207
  toolbarInsertImage: string;
1192
1208
  toolbarInsertVideo: string;
1209
+ questionPlaceholder: string;
1193
1210
  } | {
1194
1211
  placeholder: string;
1195
1212
  placeholderCodeEdit: string;
@@ -1258,6 +1275,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1258
1275
  toolbarInputPlaceholder: string;
1259
1276
  toolbarInsertImage: string;
1260
1277
  toolbarInsertVideo: string;
1278
+ questionPlaceholder: string;
1261
1279
  } | {
1262
1280
  placeholder: string;
1263
1281
  placeholderCodeEdit: string;
@@ -1326,6 +1344,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1326
1344
  toolbarInputPlaceholder: string;
1327
1345
  toolbarInsertImage: string;
1328
1346
  toolbarInsertVideo: string;
1347
+ questionPlaceholder: string;
1329
1348
  } | {
1330
1349
  placeholder: string;
1331
1350
  placeholderCodeEdit: string;
@@ -1394,6 +1413,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1394
1413
  toolbarInputPlaceholder: string;
1395
1414
  toolbarInsertImage: string;
1396
1415
  toolbarInsertVideo: string;
1416
+ questionPlaceholder: string;
1397
1417
  } | {
1398
1418
  placeholder: string;
1399
1419
  placeholderCodeEdit: string;
@@ -1462,6 +1482,7 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1462
1482
  toolbarInputPlaceholder: string;
1463
1483
  toolbarInsertImage: string;
1464
1484
  toolbarInsertVideo: string;
1485
+ questionPlaceholder: string;
1465
1486
  } | {
1466
1487
  placeholder: string;
1467
1488
  placeholderCodeEdit: string;
@@ -1530,4 +1551,5 @@ export declare const getEditorLocaleMessages: (locale?: string | null) => {
1530
1551
  toolbarInputPlaceholder: string;
1531
1552
  toolbarInsertImage: string;
1532
1553
  toolbarInsertVideo: string;
1554
+ questionPlaceholder: string;
1533
1555
  };
@@ -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="استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}",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;
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="ستظهر المعاينة هنا",q="معاينة الفيديو",F="صورة",M="فيديو",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="سؤالك",ge={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:q,slashImage:F,slashVideo:M,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,questionPlaceholder:ve};exports.default=ge;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.questionPlaceholder=ve;exports.slashDivider=p;exports.slashFixedText=_;exports.slashImage=F;exports.slashVariable=Q;exports.slashVideo=M;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=q;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
@@ -65,7 +65,8 @@ declare const _default: {
65
65
  "toolbarInsertInput": "إدراج حقل إدخال",
66
66
  "toolbarInputPlaceholder": "يرجى الإدخال",
67
67
  "toolbarInsertImage": "إدراج صورة",
68
- "toolbarInsertVideo": "إدراج فيديو"
68
+ "toolbarInsertVideo": "إدراج فيديو",
69
+ "questionPlaceholder": "سؤالك"
69
70
  }
70
71
  ;
71
72
 
@@ -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 = "استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}", K = "متغيرات النظام", W = "متغيرات مخصصة", X = "إضافة متغير", Z = "إدراج متغير جديد", _ = "إدراج متغير موجود", $ = "إدراج ناتج التأكيد", oo = "إدراج رابط", eo = "إدراج زر", to = "إدراج اختيار واحد", lo = "الخيار 1", ao = "الخيار 2", io = "إدراج اختيار متعدد", no = "إدراج حقل إدخال", so = "يرجى الإدخال", co = "إدراج صورة", ro = "إدراج فيديو", go = {
1
+ const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل المحتوى الذي تريد كتابته", t = "أدخل المحتوى، واكتب / لعرض المزيد", l = "الإعدادات", a = "إغلاق", i = "إضافة صورة", n = "إضافة فيديو", s = "أدخل رابط الصورة", uo = "URL", c = "معاينة", r = "أدخل عنوان الصورة", d = "استخدام الصورة", b = "اسم الصورة", vo = "رفع", u = "اسحب الملفات أو انقر للرفع", v = "جارٍ الرفع...", g = "اكتمل الرفع", m = "فشل الرفع، يرجى المحاولة مرة أخرى", h = "إضافة نص ثابت", T = "نص ثابت", U = "خط فاصل", p = "عنوان الصورة", I = "نسبة التحجيم", L = "إلغاء", P = "يرجى إدخال رابط الصورة", B = "يرجى إدخال رابط صورة صالح", C = "أدخل رابط فيديو من Bilibili أو YouTube", go = "URL", x = "معاينة", f = "استخدام المورد", S = "أدخل عنوان الفيديو", V = "العنوان", E = "عنوان الفيديو", D = "فيديو Bilibili", N = "فيديو YouTube", R = "يرجى إدخال رابط فيديو صالح من Bilibili أو YouTube", w = "إلغاء", Y = "استخدام الفيديو", y = "ستظهر المعاينة هنا", A = "معاينة الفيديو", O = "صورة", k = "فيديو", q = "متغير", F = "نص ثابت", M = "اختيار متغير", Q = "البحث عن متغير", j = "لم يتم العثور على متغيرات", z = "لا توجد متغيرات بعد", G = "اسم المتغير", H = "المتغير موجود بالفعل", J = "استخدم اسمًا غير فارغ بلا أحرف تحكم أو فواصل أسطر أو }}", K = "متغيرات النظام", W = "متغيرات مخصصة", X = "إضافة متغير", Z = "إدراج متغير جديد", _ = "إدراج متغير موجود", $ = "إدراج ناتج التأكيد", oo = "إدراج رابط", eo = "إدراج زر", to = "إدراج اختيار واحد", lo = "الخيار 1", ao = "الخيار 2", io = "إدراج اختيار متعدد", no = "إدراج حقل إدخال", so = "يرجى الإدخال", co = "إدراج صورة", ro = "إدراج فيديو", bo = "سؤالك", mo = {
2
2
  placeholder: o,
3
3
  placeholderCodeEdit: e,
4
4
  placeholderQuickEdit: t,
@@ -23,8 +23,8 @@ const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل ال
23
23
  imageTitleLabel: p,
24
24
  imageScaleLabel: I,
25
25
  imageCancelButton: L,
26
- imageUrlRequired: B,
27
- imageInvalidUrl: P,
26
+ imageUrlRequired: P,
27
+ imageInvalidUrl: B,
28
28
  videoUrlPlaceholder: C,
29
29
  videoUrlLabel: "URL",
30
30
  videoRunButton: x,
@@ -41,8 +41,8 @@ const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل ال
41
41
  videoPreviewTitle: A,
42
42
  slashImage: O,
43
43
  slashVideo: k,
44
- slashVariable: F,
45
- slashFixedText: q,
44
+ slashVariable: q,
45
+ slashFixedText: F,
46
46
  dialogTitleVariable: M,
47
47
  variableSearchPlaceholder: Q,
48
48
  variableNotFound: j,
@@ -65,10 +65,11 @@ const o = "اكتب '/' لإدراج محتوى بسرعة", e = "أدخل ال
65
65
  toolbarInsertInput: no,
66
66
  toolbarInputPlaceholder: so,
67
67
  toolbarInsertImage: co,
68
- toolbarInsertVideo: ro
68
+ toolbarInsertVideo: ro,
69
+ questionPlaceholder: bo
69
70
  };
70
71
  export {
71
- go as default,
72
+ mo as default,
72
73
  a as dialogCloseLabel,
73
74
  l as dialogTitle,
74
75
  i as dialogTitleImage,
@@ -78,27 +79,28 @@ export {
78
79
  T as fixedTextTooltip,
79
80
  L as imageCancelButton,
80
81
  b as imageDefaultTitle,
81
- P as imageInvalidUrl,
82
+ B as imageInvalidUrl,
82
83
  c as imageRunButton,
83
84
  I as imageScaleLabel,
84
85
  p as imageTitleLabel,
85
86
  r as imageTitlePlaceholder,
86
87
  m as imageUploadError,
87
- uo as imageUploadLabel,
88
+ vo as imageUploadLabel,
88
89
  u as imageUploadPlaceholder,
89
90
  g as imageUploadSuccess,
90
91
  v as imageUploading,
91
- bo as imageUrlLabel,
92
+ uo as imageUrlLabel,
92
93
  s as imageUrlPlaceholder,
93
- B as imageUrlRequired,
94
+ P as imageUrlRequired,
94
95
  d as imageUseButton,
95
96
  o as placeholder,
96
97
  e as placeholderCodeEdit,
97
98
  t as placeholderQuickEdit,
99
+ bo as questionPlaceholder,
98
100
  U as slashDivider,
99
- q as slashFixedText,
101
+ F as slashFixedText,
100
102
  O as slashImage,
101
- F as slashVariable,
103
+ q as slashVariable,
102
104
  k as slashVideo,
103
105
  lo as toolbarChoiceOption1,
104
106
  ao as toolbarChoiceOption2,
@@ -132,7 +134,7 @@ export {
132
134
  x as videoRunButton,
133
135
  V as videoTitleLabel,
134
136
  S as videoTitlePlaceholder,
135
- vo as videoUrlLabel,
137
+ go as videoUrlLabel,
136
138
  C as videoUrlPlaceholder,
137
139
  f as videoUseButton,
138
140
  Y as videoUseVideoButton
@@ -1 +1 @@
1
- {"version":3,"file":"ar-SA.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ar-SA.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}