markdown-flow-ui 0.3.4-dev.1 → 0.3.4
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 +8 -17
- 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.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/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.es.js +0 -1
- package/dist/components/ContentRender/ContentRender.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.d.ts +0 -2
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +260 -284
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +40 -48
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -22
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +16 -18
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +49 -51
- package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +41 -43
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +49 -51
- package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +47 -49
- package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +45 -47
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +19 -21
- package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +18 -20
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +13 -15
- package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +41 -43
- package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +5 -6
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +23 -25
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/FixedTextPlaceholder.test.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.es.js.map +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.d.ts +2 -6
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +152 -157
- package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/utils.es.js +0 -12
- package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/markdown-flow-ui-lib.css +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/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.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/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 +70 -67
- 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.es.js +1 -1
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "مواد شامل کرنے کے لیے '/' ٹائپ کریں", e = "اپنا مواد درج کریں", t = "اپنا مواد درج کریں، مزید اختیارات کے لیے '/' ٹائپ کریں", l = "ترتیبات", i = "بند کریں", n = "تصویر شامل کریں", s = "ویڈیو شامل کریں", c = "تصویر کا URL درج کریں",
|
|
1
|
+
const o = "مواد شامل کرنے کے لیے '/' ٹائپ کریں", e = "اپنا مواد درج کریں", t = "اپنا مواد درج کریں، مزید اختیارات کے لیے '/' ٹائپ کریں", l = "ترتیبات", i = "بند کریں", n = "تصویر شامل کریں", s = "ویڈیو شامل کریں", c = "تصویر کا URL درج کریں", _ = "URL", a = "پیش نظارہ", d = "تصویر کا عنوان درج کریں", r = "تصویر استعمال کریں", u = "تصویر کا نام", b = "اپ لوڈ کریں", g = "فائلیں گھسیٹ کر یہاں لائیں یا اپ لوڈ کرنے کے لیے کلک کریں", U = "اپ لوڈ ہو رہا ہے...", m = "اپ لوڈ مکمل ہو گیا", v = "اپ لوڈ ناکام ہو گیا، دوبارہ کوشش کریں", h = "محفوظ آؤٹ پٹ شامل کریں", T = "محفوظ آؤٹ پٹ", L = "تقسیمی لکیر", p = "تصویر کا عنوان", I = "پیمانہ", B = "منسوخ کریں", P = "تصویر کا URL درج کریں", R = "تصویر کا درست URL درج کریں", C = "Bilibili یا YouTube ویڈیو کا URL درج کریں", $ = "URL", f = "پیش نظارہ", x = "وسیلہ استعمال کریں", D = "ویڈیو کا عنوان درج کریں", V = "عنوان", Y = "ویڈیو کا عنوان", E = "Bilibili ویڈیو", O = "YouTube ویڈیو", S = "Bilibili یا YouTube ویڈیو کا درست URL درج کریں", k = "منسوخ کریں", w = "ویڈیو استعمال کریں", q = "پیش نظارہ یہاں ظاہر ہوگا", F = "ویڈیو کا پیش نظارہ", K = "تصویر", M = "ویڈیو", Q = "محفوظ آؤٹ پٹ", j = "محفوظ آؤٹ پٹ شامل کریں", y = "لنک شامل کریں", z = "بٹن شامل کریں", A = "ایک انتخاب شامل کریں", G = "انتخاب ۱", H = "انتخاب ۲", J = "متعدد انتخاب شامل کریں", N = "ان پٹ فیلڈ شامل کریں", W = "درج کریں", X = "تصویر شامل کریں", Z = "ویڈیو شامل کریں", oo = {
|
|
2
2
|
placeholder: o,
|
|
3
3
|
placeholderCodeEdit: e,
|
|
4
4
|
placeholderQuickEdit: t,
|
|
@@ -16,8 +16,8 @@ const o = "مواد شامل کرنے کے لیے '/' ٹائپ کریں", e = "
|
|
|
16
16
|
imageUploadPlaceholder: g,
|
|
17
17
|
imageUploading: U,
|
|
18
18
|
imageUploadSuccess: m,
|
|
19
|
-
imageUploadError:
|
|
20
|
-
fixedTextPlaceholder:
|
|
19
|
+
imageUploadError: v,
|
|
20
|
+
fixedTextPlaceholder: h,
|
|
21
21
|
fixedTextTooltip: T,
|
|
22
22
|
slashDivider: L,
|
|
23
23
|
imageTitleLabel: p,
|
|
@@ -36,8 +36,8 @@ const o = "مواد شامل کرنے کے لیے '/' ٹائپ کریں", e = "
|
|
|
36
36
|
videoDefaultTitleYoutube: O,
|
|
37
37
|
videoInvalidUrl: S,
|
|
38
38
|
videoCancelButton: k,
|
|
39
|
-
videoUseVideoButton:
|
|
40
|
-
videoPreviewPlaceholder:
|
|
39
|
+
videoUseVideoButton: w,
|
|
40
|
+
videoPreviewPlaceholder: q,
|
|
41
41
|
videoPreviewTitle: F,
|
|
42
42
|
slashImage: K,
|
|
43
43
|
slashVideo: M,
|
|
@@ -52,16 +52,15 @@ const o = "مواد شامل کرنے کے لیے '/' ٹائپ کریں", e = "
|
|
|
52
52
|
toolbarInsertInput: N,
|
|
53
53
|
toolbarInputPlaceholder: W,
|
|
54
54
|
toolbarInsertImage: X,
|
|
55
|
-
toolbarInsertVideo: Z
|
|
56
|
-
questionPlaceholder: _
|
|
55
|
+
toolbarInsertVideo: Z
|
|
57
56
|
};
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
oo as default,
|
|
60
59
|
i as dialogCloseLabel,
|
|
61
60
|
l as dialogTitle,
|
|
62
61
|
n as dialogTitleImage,
|
|
63
62
|
s as dialogTitleVideo,
|
|
64
|
-
|
|
63
|
+
h as fixedTextPlaceholder,
|
|
65
64
|
T as fixedTextTooltip,
|
|
66
65
|
B as imageCancelButton,
|
|
67
66
|
u as imageDefaultTitle,
|
|
@@ -70,19 +69,18 @@ export {
|
|
|
70
69
|
I as imageScaleLabel,
|
|
71
70
|
p as imageTitleLabel,
|
|
72
71
|
d as imageTitlePlaceholder,
|
|
73
|
-
|
|
72
|
+
v as imageUploadError,
|
|
74
73
|
b as imageUploadLabel,
|
|
75
74
|
g as imageUploadPlaceholder,
|
|
76
75
|
m as imageUploadSuccess,
|
|
77
76
|
U as imageUploading,
|
|
78
|
-
|
|
77
|
+
_ as imageUrlLabel,
|
|
79
78
|
c as imageUrlPlaceholder,
|
|
80
79
|
P as imageUrlRequired,
|
|
81
80
|
r as imageUseButton,
|
|
82
81
|
o as placeholder,
|
|
83
82
|
e as placeholderCodeEdit,
|
|
84
83
|
t as placeholderQuickEdit,
|
|
85
|
-
_ as questionPlaceholder,
|
|
86
84
|
L as slashDivider,
|
|
87
85
|
Q as slashFixedText,
|
|
88
86
|
K as slashImage,
|
|
@@ -103,14 +101,14 @@ export {
|
|
|
103
101
|
E as videoDefaultTitleBilibili,
|
|
104
102
|
O as videoDefaultTitleYoutube,
|
|
105
103
|
S as videoInvalidUrl,
|
|
106
|
-
|
|
104
|
+
q as videoPreviewPlaceholder,
|
|
107
105
|
F as videoPreviewTitle,
|
|
108
106
|
f as videoRunButton,
|
|
109
107
|
V as videoTitleLabel,
|
|
110
108
|
D as videoTitlePlaceholder,
|
|
111
|
-
|
|
109
|
+
$ as videoUrlLabel,
|
|
112
110
|
C as videoUrlPlaceholder,
|
|
113
111
|
x as videoUseButton,
|
|
114
|
-
|
|
112
|
+
w as videoUseVideoButton
|
|
115
113
|
};
|
|
116
114
|
//# sourceMappingURL=ur-PK.json.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ur-PK.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ur-PK.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Nhập '/' để chèn nội dung",o="Nhập nội dung của bạn",t="Nhập nội dung của bạn, gõ '/' để xem thêm tùy chọn",i="Cài đặt",l="Đóng",n="Thêm hình ảnh",a="Thêm video",c="Nhập URL hình ảnh",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="Nhập '/' để chèn nội dung",o="Nhập nội dung của bạn",t="Nhập nội dung của bạn, gõ '/' để xem thêm tùy chọn",i="Cài đặt",l="Đóng",n="Thêm hình ảnh",a="Thêm video",c="Nhập URL hình ảnh",d="URL",h="Xem trước",s="Nhập tiêu đề hình ảnh",r="Dùng hình ảnh",u="Tên hình ảnh",g="Tải lên",b="Kéo thả tệp vào đây hoặc nhấp để tải lên",v="Đang tải lên...",m="Tải lên thành công",p="Tải lên thất bại, vui lòng thử lại",T="Thêm đầu ra được bảo toàn",U="Đầu ra được bảo toàn",I="Đường phân cách",C="Tiêu đề hình ảnh",L="Tỷ lệ",B="Hủy",P="Nhập URL hình ảnh",f="Nhập URL hình ảnh hợp lệ",x="Nhập URL video Bilibili hoặc YouTube",D="URL",R="Xem trước",V="Dùng tài nguyên",N="Nhập tiêu đề video",S="Tiêu đề",y="Tiêu đề video",O="Video Bilibili",E="Video YouTube",k="Nhập URL video Bilibili hoặc YouTube hợp lệ",Y="Hủy",w="Dùng video",M="Bản xem trước sẽ xuất hiện ở đây",H="Xem trước video",X="Hình ảnh",q="Video",F="Đầu ra được bảo toàn",Q="Chèn đầu ra được bảo toàn",_="Chèn liên kết",j="Chèn nút",K="Chèn lựa chọn đơn",z="Lựa chọn 1",A="Lựa chọn 2",G="Chèn lựa chọn nhiều đáp án",J="Chèn ô nhập liệu",W="Vui lòng nhập",Z="Chèn hình ảnh",$="Chèn video",ee={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:t,dialogTitle:i,dialogCloseLabel:l,dialogTitleImage:n,dialogTitleVideo:a,imageUrlPlaceholder:c,imageUrlLabel:d,imageRunButton:h,imageTitlePlaceholder:s,imageUseButton:r,imageDefaultTitle:u,imageUploadLabel:g,imageUploadPlaceholder:b,imageUploading:v,imageUploadSuccess:m,imageUploadError:p,fixedTextPlaceholder:T,fixedTextTooltip:U,slashDivider:I,imageTitleLabel:C,imageScaleLabel:L,imageCancelButton:B,imageUrlRequired:P,imageInvalidUrl:f,videoUrlPlaceholder:x,videoUrlLabel:D,videoRunButton:R,videoUseButton:V,videoTitlePlaceholder:N,videoTitleLabel:S,videoDefaultTitle:y,videoDefaultTitleBilibili:O,videoDefaultTitleYoutube:E,videoInvalidUrl:k,videoCancelButton:Y,videoUseVideoButton:w,videoPreviewPlaceholder:M,videoPreviewTitle:H,slashImage:X,slashVideo:q,slashFixedText:F,toolbarConfirmOutput:Q,toolbarInsertLink:_,toolbarInsertButton:j,toolbarInsertSingleChoice:K,toolbarChoiceOption1:z,toolbarChoiceOption2:A,toolbarInsertMultiChoice:G,toolbarInsertInput:J,toolbarInputPlaceholder:W,toolbarInsertImage:Z,toolbarInsertVideo:$};exports.default=ee;exports.dialogCloseLabel=l;exports.dialogTitle=i;exports.dialogTitleImage=n;exports.dialogTitleVideo=a;exports.fixedTextPlaceholder=T;exports.fixedTextTooltip=U;exports.imageCancelButton=B;exports.imageDefaultTitle=u;exports.imageInvalidUrl=f;exports.imageRunButton=h;exports.imageScaleLabel=L;exports.imageTitleLabel=C;exports.imageTitlePlaceholder=s;exports.imageUploadError=p;exports.imageUploadLabel=g;exports.imageUploadPlaceholder=b;exports.imageUploadSuccess=m;exports.imageUploading=v;exports.imageUrlLabel=d;exports.imageUrlPlaceholder=c;exports.imageUrlRequired=P;exports.imageUseButton=r;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=t;exports.slashDivider=I;exports.slashFixedText=F;exports.slashImage=X;exports.slashVideo=q;exports.toolbarChoiceOption1=z;exports.toolbarChoiceOption2=A;exports.toolbarConfirmOutput=Q;exports.toolbarInputPlaceholder=W;exports.toolbarInsertButton=j;exports.toolbarInsertImage=Z;exports.toolbarInsertInput=J;exports.toolbarInsertLink=_;exports.toolbarInsertMultiChoice=G;exports.toolbarInsertSingleChoice=K;exports.toolbarInsertVideo=$;exports.videoCancelButton=Y;exports.videoDefaultTitle=y;exports.videoDefaultTitleBilibili=O;exports.videoDefaultTitleYoutube=E;exports.videoInvalidUrl=k;exports.videoPreviewPlaceholder=M;exports.videoPreviewTitle=H;exports.videoRunButton=R;exports.videoTitleLabel=S;exports.videoTitlePlaceholder=N;exports.videoUrlLabel=D;exports.videoUrlPlaceholder=x;exports.videoUseButton=V;exports.videoUseVideoButton=w;
|
|
2
2
|
//# sourceMappingURL=vi-VN.json.cjs.map
|
|
@@ -17,8 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"imageUploading": "Đang tải lên...",
|
|
18
18
|
"imageUploadSuccess": "Tải lên thành công",
|
|
19
19
|
"imageUploadError": "Tải lên thất bại, vui lòng thử lại",
|
|
20
|
-
"fixedTextPlaceholder": "Thêm
|
|
21
|
-
"fixedTextTooltip": "
|
|
20
|
+
"fixedTextPlaceholder": "Thêm đầu ra được bảo toàn",
|
|
21
|
+
"fixedTextTooltip": "Đầu ra được bảo toàn",
|
|
22
22
|
"slashDivider": "Đường phân cách",
|
|
23
23
|
"imageTitleLabel": "Tiêu đề hình ảnh",
|
|
24
24
|
"imageScaleLabel": "Tỷ lệ",
|
|
@@ -41,8 +41,8 @@ declare const _default: {
|
|
|
41
41
|
"videoPreviewTitle": "Xem trước video",
|
|
42
42
|
"slashImage": "Hình ảnh",
|
|
43
43
|
"slashVideo": "Video",
|
|
44
|
-
"slashFixedText": "
|
|
45
|
-
"toolbarConfirmOutput": "Chèn
|
|
44
|
+
"slashFixedText": "Đầu ra được bảo toàn",
|
|
45
|
+
"toolbarConfirmOutput": "Chèn đầu ra được bảo toàn",
|
|
46
46
|
"toolbarInsertLink": "Chèn liên kết",
|
|
47
47
|
"toolbarInsertButton": "Chèn nút",
|
|
48
48
|
"toolbarInsertSingleChoice": "Chèn lựa chọn đơn",
|
|
@@ -52,8 +52,7 @@ declare const _default: {
|
|
|
52
52
|
"toolbarInsertInput": "Chèn ô nhập liệu",
|
|
53
53
|
"toolbarInputPlaceholder": "Vui lòng nhập",
|
|
54
54
|
"toolbarInsertImage": "Chèn hình ảnh",
|
|
55
|
-
"toolbarInsertVideo": "Chèn video"
|
|
56
|
-
"questionPlaceholder": "Câu hỏi của bạn"
|
|
55
|
+
"toolbarInsertVideo": "Chèn video"
|
|
57
56
|
}
|
|
58
57
|
;
|
|
59
58
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
placeholder:
|
|
3
|
-
placeholderCodeEdit:
|
|
4
|
-
placeholderQuickEdit:
|
|
5
|
-
dialogTitle:
|
|
1
|
+
const o = "Nhập '/' để chèn nội dung", n = "Nhập nội dung của bạn", t = "Nhập nội dung của bạn, gõ '/' để xem thêm tùy chọn", e = "Cài đặt", i = "Đóng", l = "Thêm hình ảnh", c = "Thêm video", h = "Nhập URL hình ảnh", W = "URL", a = "Xem trước", s = "Nhập tiêu đề hình ảnh", d = "Dùng hình ảnh", r = "Tên hình ảnh", u = "Tải lên", g = "Kéo thả tệp vào đây hoặc nhấp để tải lên", b = "Đang tải lên...", p = "Tải lên thành công", v = "Tải lên thất bại, vui lòng thử lại", m = "Thêm đầu ra được bảo toàn", T = "Đầu ra được bảo toàn", U = "Đường phân cách", C = "Tiêu đề hình ảnh", L = "Tỷ lệ", Z = "Hủy", B = "Nhập URL hình ảnh", I = "Nhập URL hình ảnh hợp lệ", N = "Nhập URL video Bilibili hoặc YouTube", _ = "URL", x = "Xem trước", P = "Dùng tài nguyên", R = "Nhập tiêu đề video", V = "Tiêu đề", f = "Tiêu đề video", D = "Video Bilibili", y = "Video YouTube", Y = "Nhập URL video Bilibili hoặc YouTube hợp lệ", $ = "Hủy", k = "Dùng video", E = "Bản xem trước sẽ xuất hiện ở đây", H = "Xem trước video", O = "Hình ảnh", S = "Video", X = "Đầu ra được bảo toàn", w = "Chèn đầu ra được bảo toàn", q = "Chèn liên kết", F = "Chèn nút", K = "Chèn lựa chọn đơn", M = "Lựa chọn 1", Q = "Lựa chọn 2", j = "Chèn lựa chọn nhiều đáp án", z = "Chèn ô nhập liệu", A = "Vui lòng nhập", G = "Chèn hình ảnh", J = "Chèn video", oo = {
|
|
2
|
+
placeholder: o,
|
|
3
|
+
placeholderCodeEdit: n,
|
|
4
|
+
placeholderQuickEdit: t,
|
|
5
|
+
dialogTitle: e,
|
|
6
6
|
dialogCloseLabel: i,
|
|
7
7
|
dialogTitleImage: l,
|
|
8
8
|
dialogTitleVideo: c,
|
|
@@ -25,25 +25,25 @@ const n = "Nhập '/' để chèn nội dung", o = "Nhập nội dung của bạ
|
|
|
25
25
|
imageCancelButton: "Hủy",
|
|
26
26
|
imageUrlRequired: B,
|
|
27
27
|
imageInvalidUrl: I,
|
|
28
|
-
videoUrlPlaceholder:
|
|
28
|
+
videoUrlPlaceholder: N,
|
|
29
29
|
videoUrlLabel: "URL",
|
|
30
|
-
videoRunButton:
|
|
30
|
+
videoRunButton: x,
|
|
31
31
|
videoUseButton: P,
|
|
32
|
-
videoTitlePlaceholder:
|
|
33
|
-
videoTitleLabel:
|
|
32
|
+
videoTitlePlaceholder: R,
|
|
33
|
+
videoTitleLabel: V,
|
|
34
34
|
videoDefaultTitle: f,
|
|
35
35
|
videoDefaultTitleBilibili: D,
|
|
36
36
|
videoDefaultTitleYoutube: y,
|
|
37
|
-
videoInvalidUrl:
|
|
37
|
+
videoInvalidUrl: Y,
|
|
38
38
|
videoCancelButton: "Hủy",
|
|
39
|
-
videoUseVideoButton:
|
|
40
|
-
videoPreviewPlaceholder:
|
|
41
|
-
videoPreviewTitle:
|
|
42
|
-
slashImage:
|
|
43
|
-
slashVideo:
|
|
44
|
-
slashFixedText:
|
|
45
|
-
toolbarConfirmOutput:
|
|
46
|
-
toolbarInsertLink:
|
|
39
|
+
videoUseVideoButton: k,
|
|
40
|
+
videoPreviewPlaceholder: E,
|
|
41
|
+
videoPreviewTitle: H,
|
|
42
|
+
slashImage: O,
|
|
43
|
+
slashVideo: S,
|
|
44
|
+
slashFixedText: X,
|
|
45
|
+
toolbarConfirmOutput: w,
|
|
46
|
+
toolbarInsertLink: q,
|
|
47
47
|
toolbarInsertButton: F,
|
|
48
48
|
toolbarInsertSingleChoice: K,
|
|
49
49
|
toolbarChoiceOption1: M,
|
|
@@ -52,18 +52,17 @@ const n = "Nhập '/' để chèn nội dung", o = "Nhập nội dung của bạ
|
|
|
52
52
|
toolbarInsertInput: z,
|
|
53
53
|
toolbarInputPlaceholder: A,
|
|
54
54
|
toolbarInsertImage: G,
|
|
55
|
-
toolbarInsertVideo: J
|
|
56
|
-
questionPlaceholder: W
|
|
55
|
+
toolbarInsertVideo: J
|
|
57
56
|
};
|
|
58
57
|
export {
|
|
59
|
-
|
|
58
|
+
oo as default,
|
|
60
59
|
i as dialogCloseLabel,
|
|
61
|
-
|
|
60
|
+
e as dialogTitle,
|
|
62
61
|
l as dialogTitleImage,
|
|
63
62
|
c as dialogTitleVideo,
|
|
64
63
|
m as fixedTextPlaceholder,
|
|
65
64
|
T as fixedTextTooltip,
|
|
66
|
-
|
|
65
|
+
Z as imageCancelButton,
|
|
67
66
|
r as imageDefaultTitle,
|
|
68
67
|
I as imageInvalidUrl,
|
|
69
68
|
a as imageRunButton,
|
|
@@ -75,42 +74,41 @@ export {
|
|
|
75
74
|
g as imageUploadPlaceholder,
|
|
76
75
|
p as imageUploadSuccess,
|
|
77
76
|
b as imageUploading,
|
|
78
|
-
|
|
77
|
+
W as imageUrlLabel,
|
|
79
78
|
h as imageUrlPlaceholder,
|
|
80
79
|
B as imageUrlRequired,
|
|
81
80
|
d as imageUseButton,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
W as questionPlaceholder,
|
|
81
|
+
o as placeholder,
|
|
82
|
+
n as placeholderCodeEdit,
|
|
83
|
+
t as placeholderQuickEdit,
|
|
86
84
|
U as slashDivider,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
X as slashFixedText,
|
|
86
|
+
O as slashImage,
|
|
87
|
+
S as slashVideo,
|
|
90
88
|
M as toolbarChoiceOption1,
|
|
91
89
|
Q as toolbarChoiceOption2,
|
|
92
|
-
|
|
90
|
+
w as toolbarConfirmOutput,
|
|
93
91
|
A as toolbarInputPlaceholder,
|
|
94
92
|
F as toolbarInsertButton,
|
|
95
93
|
G as toolbarInsertImage,
|
|
96
94
|
z as toolbarInsertInput,
|
|
97
|
-
|
|
95
|
+
q as toolbarInsertLink,
|
|
98
96
|
j as toolbarInsertMultiChoice,
|
|
99
97
|
K as toolbarInsertSingleChoice,
|
|
100
98
|
J as toolbarInsertVideo,
|
|
101
|
-
|
|
99
|
+
$ as videoCancelButton,
|
|
102
100
|
f as videoDefaultTitle,
|
|
103
101
|
D as videoDefaultTitleBilibili,
|
|
104
102
|
y as videoDefaultTitleYoutube,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
Y as videoInvalidUrl,
|
|
104
|
+
E as videoPreviewPlaceholder,
|
|
105
|
+
H as videoPreviewTitle,
|
|
106
|
+
x as videoRunButton,
|
|
107
|
+
V as videoTitleLabel,
|
|
108
|
+
R as videoTitlePlaceholder,
|
|
109
|
+
_ as videoUrlLabel,
|
|
110
|
+
N as videoUrlPlaceholder,
|
|
113
111
|
P as videoUseButton,
|
|
114
|
-
|
|
112
|
+
k as videoUseVideoButton
|
|
115
113
|
};
|
|
116
114
|
//# sourceMappingURL=vi-VN.json.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vi-VN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vi-VN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="输入'/'快速插入内容",o="请输入你的内容",t="请输入你的内容,输入 / 唤起更多",l="设置",i="关闭",a="添加图片",n="添加视频",s="请输入图片地址",
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="输入'/'快速插入内容",o="请输入你的内容",t="请输入你的内容,输入 / 唤起更多",l="设置",i="关闭",a="添加图片",n="添加视频",s="请输入图片地址",d="URL",c="预览",r="请输入图片标题",u="使用图片",g="图片名称",b="上传",m="拖拽文件或点击上传",v="正在上传...",h="上传完成",T="上传失败,请重试",U="添加确定输出",p="确定输出",I="分割线",P="图片标题",B="缩放比例",C="取消",L="请输入图片地址",f="请输入有效的图片地址",x="请输入 B 站或 YouTube 视频链接",D="URL",R="预览",S="使用资源",V="请输入视频标题",O="标题",E="视频标题",Y="哔哩哔哩视频",k="YouTube 视频",w="请输入有效的 B 站或 YouTube 视频链接",M="取消",q="使用视频",F="预览将在这里显示",Q="视频预览",_="图片",j="视频",y="确定输出",z="插入确定输出",N="插入链接",A="插入按钮",G="插入单选",H="选项1",J="选项2",K="插入多选",W="插入输入框",X="请输入",Z="插入图片",$="插入视频",ee={placeholder:e,placeholderCodeEdit:o,placeholderQuickEdit:t,dialogTitle:l,dialogCloseLabel:i,dialogTitleImage:a,dialogTitleVideo:n,imageUrlPlaceholder:s,imageUrlLabel:d,imageRunButton:c,imageTitlePlaceholder:r,imageUseButton:u,imageDefaultTitle:g,imageUploadLabel:b,imageUploadPlaceholder:m,imageUploading:v,imageUploadSuccess:h,imageUploadError:T,fixedTextPlaceholder:U,fixedTextTooltip:p,slashDivider:I,imageTitleLabel:P,imageScaleLabel:B,imageCancelButton:C,imageUrlRequired:L,imageInvalidUrl:f,videoUrlPlaceholder:x,videoUrlLabel:D,videoRunButton:R,videoUseButton:S,videoTitlePlaceholder:V,videoTitleLabel:O,videoDefaultTitle:E,videoDefaultTitleBilibili:Y,videoDefaultTitleYoutube:k,videoInvalidUrl:w,videoCancelButton:M,videoUseVideoButton:q,videoPreviewPlaceholder:F,videoPreviewTitle:Q,slashImage:_,slashVideo:j,slashFixedText:y,toolbarConfirmOutput:z,toolbarInsertLink:N,toolbarInsertButton:A,toolbarInsertSingleChoice:G,toolbarChoiceOption1:H,toolbarChoiceOption2:J,toolbarInsertMultiChoice:K,toolbarInsertInput:W,toolbarInputPlaceholder:X,toolbarInsertImage:Z,toolbarInsertVideo:$};exports.default=ee;exports.dialogCloseLabel=i;exports.dialogTitle=l;exports.dialogTitleImage=a;exports.dialogTitleVideo=n;exports.fixedTextPlaceholder=U;exports.fixedTextTooltip=p;exports.imageCancelButton=C;exports.imageDefaultTitle=g;exports.imageInvalidUrl=f;exports.imageRunButton=c;exports.imageScaleLabel=B;exports.imageTitleLabel=P;exports.imageTitlePlaceholder=r;exports.imageUploadError=T;exports.imageUploadLabel=b;exports.imageUploadPlaceholder=m;exports.imageUploadSuccess=h;exports.imageUploading=v;exports.imageUrlLabel=d;exports.imageUrlPlaceholder=s;exports.imageUrlRequired=L;exports.imageUseButton=u;exports.placeholder=e;exports.placeholderCodeEdit=o;exports.placeholderQuickEdit=t;exports.slashDivider=I;exports.slashFixedText=y;exports.slashImage=_;exports.slashVideo=j;exports.toolbarChoiceOption1=H;exports.toolbarChoiceOption2=J;exports.toolbarConfirmOutput=z;exports.toolbarInputPlaceholder=X;exports.toolbarInsertButton=A;exports.toolbarInsertImage=Z;exports.toolbarInsertInput=W;exports.toolbarInsertLink=N;exports.toolbarInsertMultiChoice=K;exports.toolbarInsertSingleChoice=G;exports.toolbarInsertVideo=$;exports.videoCancelButton=M;exports.videoDefaultTitle=E;exports.videoDefaultTitleBilibili=Y;exports.videoDefaultTitleYoutube=k;exports.videoInvalidUrl=w;exports.videoPreviewPlaceholder=F;exports.videoPreviewTitle=Q;exports.videoRunButton=R;exports.videoTitleLabel=O;exports.videoTitlePlaceholder=V;exports.videoUrlLabel=D;exports.videoUrlPlaceholder=x;exports.videoUseButton=S;exports.videoUseVideoButton=q;
|
|
2
2
|
//# sourceMappingURL=zh-CN.json.cjs.map
|
|
@@ -17,8 +17,8 @@ declare const _default: {
|
|
|
17
17
|
"imageUploading": "正在上传...",
|
|
18
18
|
"imageUploadSuccess": "上传完成",
|
|
19
19
|
"imageUploadError": "上传失败,请重试",
|
|
20
|
-
"fixedTextPlaceholder": "
|
|
21
|
-
"fixedTextTooltip": "
|
|
20
|
+
"fixedTextPlaceholder": "添加确定输出",
|
|
21
|
+
"fixedTextTooltip": "确定输出",
|
|
22
22
|
"slashDivider": "分割线",
|
|
23
23
|
"imageTitleLabel": "图片标题",
|
|
24
24
|
"imageScaleLabel": "缩放比例",
|
|
@@ -41,8 +41,8 @@ declare const _default: {
|
|
|
41
41
|
"videoPreviewTitle": "视频预览",
|
|
42
42
|
"slashImage": "图片",
|
|
43
43
|
"slashVideo": "视频",
|
|
44
|
-
"slashFixedText": "
|
|
45
|
-
"toolbarConfirmOutput": "
|
|
44
|
+
"slashFixedText": "确定输出",
|
|
45
|
+
"toolbarConfirmOutput": "插入确定输出",
|
|
46
46
|
"toolbarInsertLink": "插入链接",
|
|
47
47
|
"toolbarInsertButton": "插入按钮",
|
|
48
48
|
"toolbarInsertSingleChoice": "插入单选",
|
|
@@ -52,8 +52,7 @@ declare const _default: {
|
|
|
52
52
|
"toolbarInsertInput": "插入输入框",
|
|
53
53
|
"toolbarInputPlaceholder": "请输入",
|
|
54
54
|
"toolbarInsertImage": "插入图片",
|
|
55
|
-
"toolbarInsertVideo": "插入视频"
|
|
56
|
-
"questionPlaceholder": "你的问题"
|
|
55
|
+
"toolbarInsertVideo": "插入视频"
|
|
57
56
|
}
|
|
58
57
|
;
|
|
59
58
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请输入你的内容,输入 / 唤起更多",
|
|
1
|
+
const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请输入你的内容,输入 / 唤起更多", F = "设置", M = "关闭", l = "添加图片", i = "添加视频", n = "请输入图片地址", N = "URL", Q = "预览", a = "请输入图片标题", s = "使用图片", c = "图片名称", j = "上传", d = "拖拽文件或点击上传", r = "正在上传...", u = "上传完成", g = "上传失败,请重试", b = "添加确定输出", h = "确定输出", y = "分割线", m = "图片标题", v = "缩放比例", A = "取消", T = "请输入图片地址", U = "请输入有效的图片地址", p = "请输入 B 站或 YouTube 视频链接", G = "URL", H = "预览", I = "使用资源", B = "请输入视频标题", J = "标题", C = "视频标题", L = "哔哩哔哩视频", P = "YouTube 视频", f = "请输入有效的 B 站或 YouTube 视频链接", K = "取消", x = "使用视频", R = "预览将在这里显示", D = "视频预览", W = "图片", X = "视频", O = "确定输出", V = "插入确定输出", Y = "插入链接", E = "插入按钮", S = "插入单选", Z = "选项1", _ = "选项2", k = "插入多选", w = "插入输入框", $ = "请输入", q = "插入图片", z = "插入视频", oo = {
|
|
2
2
|
placeholder: o,
|
|
3
3
|
placeholderCodeEdit: e,
|
|
4
4
|
placeholderQuickEdit: t,
|
|
@@ -49,66 +49,64 @@ const o = "输入'/'快速插入内容", e = "请输入你的内容", t = "请
|
|
|
49
49
|
toolbarChoiceOption1: "选项1",
|
|
50
50
|
toolbarChoiceOption2: "选项2",
|
|
51
51
|
toolbarInsertMultiChoice: k,
|
|
52
|
-
toolbarInsertInput:
|
|
52
|
+
toolbarInsertInput: w,
|
|
53
53
|
toolbarInputPlaceholder: "请输入",
|
|
54
|
-
toolbarInsertImage:
|
|
55
|
-
toolbarInsertVideo: z
|
|
56
|
-
questionPlaceholder: F
|
|
54
|
+
toolbarInsertImage: q,
|
|
55
|
+
toolbarInsertVideo: z
|
|
57
56
|
};
|
|
58
57
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
oo as default,
|
|
59
|
+
M as dialogCloseLabel,
|
|
60
|
+
F as dialogTitle,
|
|
62
61
|
l as dialogTitleImage,
|
|
63
62
|
i as dialogTitleVideo,
|
|
64
63
|
b as fixedTextPlaceholder,
|
|
65
64
|
h as fixedTextTooltip,
|
|
66
|
-
|
|
65
|
+
A as imageCancelButton,
|
|
67
66
|
c as imageDefaultTitle,
|
|
68
67
|
U as imageInvalidUrl,
|
|
69
|
-
|
|
68
|
+
Q as imageRunButton,
|
|
70
69
|
v as imageScaleLabel,
|
|
71
70
|
m as imageTitleLabel,
|
|
72
71
|
a as imageTitlePlaceholder,
|
|
73
72
|
g as imageUploadError,
|
|
74
|
-
|
|
73
|
+
j as imageUploadLabel,
|
|
75
74
|
d as imageUploadPlaceholder,
|
|
76
75
|
u as imageUploadSuccess,
|
|
77
76
|
r as imageUploading,
|
|
78
|
-
|
|
77
|
+
N as imageUrlLabel,
|
|
79
78
|
n as imageUrlPlaceholder,
|
|
80
79
|
T as imageUrlRequired,
|
|
81
80
|
s as imageUseButton,
|
|
82
81
|
o as placeholder,
|
|
83
82
|
e as placeholderCodeEdit,
|
|
84
83
|
t as placeholderQuickEdit,
|
|
85
|
-
|
|
86
|
-
A as slashDivider,
|
|
84
|
+
y as slashDivider,
|
|
87
85
|
O as slashFixedText,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
W as slashImage,
|
|
87
|
+
X as slashVideo,
|
|
88
|
+
Z as toolbarChoiceOption1,
|
|
89
|
+
_ as toolbarChoiceOption2,
|
|
92
90
|
V as toolbarConfirmOutput,
|
|
93
|
-
|
|
91
|
+
$ as toolbarInputPlaceholder,
|
|
94
92
|
E as toolbarInsertButton,
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
q as toolbarInsertImage,
|
|
94
|
+
w as toolbarInsertInput,
|
|
97
95
|
Y as toolbarInsertLink,
|
|
98
96
|
k as toolbarInsertMultiChoice,
|
|
99
97
|
S as toolbarInsertSingleChoice,
|
|
100
98
|
z as toolbarInsertVideo,
|
|
101
|
-
|
|
99
|
+
K as videoCancelButton,
|
|
102
100
|
C as videoDefaultTitle,
|
|
103
101
|
L as videoDefaultTitleBilibili,
|
|
104
102
|
P as videoDefaultTitleYoutube,
|
|
105
103
|
f as videoInvalidUrl,
|
|
106
104
|
R as videoPreviewPlaceholder,
|
|
107
105
|
D as videoPreviewTitle,
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
H as videoRunButton,
|
|
107
|
+
J as videoTitleLabel,
|
|
110
108
|
B as videoTitlePlaceholder,
|
|
111
|
-
|
|
109
|
+
G as videoUrlLabel,
|
|
112
110
|
p as videoUrlPlaceholder,
|
|
113
111
|
I as videoUseButton,
|
|
114
112
|
x as videoUseVideoButton
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zh-CN.json.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceholderWidget.cjs","sources":["../../../../src/components/MarkdownFlowEditor/plugins/PlaceholderWidget.ts"],"sourcesContent":["import { EditorView, Decoration, WidgetType } from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\n\nconst SVG_NS = \"http://www.w3.org/2000/svg\";\n\nconst createSvgElement = (tag: string) => document.createElementNS(SVG_NS, tag);\n// TODO: if use renderToStaticMarkup & createElement, it will cause react & react-dom version mismatch\n// so we use lucide-react to build the icon\n// lucide-react image icon\nconst buildImageIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n rect.setAttribute(\"ry\", \"2\");\n\n const circle = createSvgElement(\"circle\");\n circle.setAttribute(\"cx\", \"9\");\n circle.setAttribute(\"cy\", \"9\");\n circle.setAttribute(\"r\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\");\n\n svg.append(rect, circle, path);\n return svg;\n};\n\n// lucide-react image icon\nconst buildVideoIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m9 8 6 4-6 4Z\");\n\n svg.append(rect, path);\n return svg;\n};\n\nclass PlaceholderWidget extends WidgetType {\n constructor(\n private text: string,\n private dataset: {\n tag: \"image\" | \"video\";\n title?: string;\n url?: string;\n scalePercent?: number;\n fixedOutput?: boolean;\n },\n private styleClass: string,\n private type: SelectedOption,\n private view: EditorView\n ) {\n super();\n }\n\n getPosition() {\n let from = -1;\n let to = -1;\n const decorations = this.view.state.facet(EditorView.decorations);\n for (const deco of decorations) {\n const decoSet = typeof deco === \"function\" ? deco(this.view) : deco;\n decoSet.between(\n 0,\n this.view.state.doc.length,\n (start: number, end: number, decoration: Decoration) => {\n if (decoration.spec.widget === this) {\n from = start;\n to = end;\n return false;\n }\n }\n );\n if (from !== -1) break;\n }\n if (from !== -1 && to !== -1) {\n return [from, to];\n }\n }\n\n toDOM() {\n const container = document.createElement(\"span\");\n container.className = this.styleClass;\n const content = document.createElement(\"span\");\n content.className = \"tag-placeholder-content\";\n const span = document.createElement(\"span\");\n span.className = \"tag-placeholder-label\";\n span.textContent = this.text;\n span.dataset[\"tag\"] = this.dataset.tag || \"\";\n span.dataset[\"url\"] = this.dataset.url || \"\";\n span.dataset[\"title\"] = this.dataset.title || \"\";\n
|
|
1
|
+
{"version":3,"file":"PlaceholderWidget.cjs","sources":["../../../../src/components/MarkdownFlowEditor/plugins/PlaceholderWidget.ts"],"sourcesContent":["import { EditorView, Decoration, WidgetType } from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\n\nconst SVG_NS = \"http://www.w3.org/2000/svg\";\n\nconst createSvgElement = (tag: string) => document.createElementNS(SVG_NS, tag);\n// TODO: if use renderToStaticMarkup & createElement, it will cause react & react-dom version mismatch\n// so we use lucide-react to build the icon\n// lucide-react image icon\nconst buildImageIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n rect.setAttribute(\"ry\", \"2\");\n\n const circle = createSvgElement(\"circle\");\n circle.setAttribute(\"cx\", \"9\");\n circle.setAttribute(\"cy\", \"9\");\n circle.setAttribute(\"r\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\");\n\n svg.append(rect, circle, path);\n return svg;\n};\n\n// lucide-react image icon\nconst buildVideoIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m9 8 6 4-6 4Z\");\n\n svg.append(rect, path);\n return svg;\n};\n\nclass PlaceholderWidget extends WidgetType {\n constructor(\n private text: string,\n private dataset: {\n tag: \"image\" | \"video\";\n title?: string;\n url?: string;\n scalePercent?: number;\n fixedOutput?: boolean;\n },\n private styleClass: string,\n private type: SelectedOption,\n private view: EditorView\n ) {\n super();\n }\n\n getPosition() {\n let from = -1;\n let to = -1;\n const decorations = this.view.state.facet(EditorView.decorations);\n for (const deco of decorations) {\n const decoSet = typeof deco === \"function\" ? deco(this.view) : deco;\n decoSet.between(\n 0,\n this.view.state.doc.length,\n (start: number, end: number, decoration: Decoration) => {\n if (decoration.spec.widget === this) {\n from = start;\n to = end;\n return false;\n }\n }\n );\n if (from !== -1) break;\n }\n if (from !== -1 && to !== -1) {\n return [from, to];\n }\n }\n\n toDOM() {\n const container = document.createElement(\"span\");\n container.className = this.styleClass;\n const content = document.createElement(\"span\");\n content.className = \"tag-placeholder-content\";\n const span = document.createElement(\"span\");\n span.className = \"tag-placeholder-label\";\n span.textContent = this.text;\n span.dataset[\"tag\"] = this.dataset.tag || \"\";\n span.dataset[\"url\"] = this.dataset.url || \"\";\n span.dataset[\"title\"] = this.dataset.title || \"\";\n content.addEventListener(\"click\", (e) => {\n const [from, to] = this.getPosition() ?? [-1, -1];\n const event = new CustomEvent(\"globalTagClick\", {\n detail: {\n view: this.view,\n type: this.type,\n dataset: this.dataset,\n content: span.textContent,\n from,\n to,\n target: e.currentTarget,\n },\n });\n window.dispatchEvent(event);\n });\n\n if (this.dataset.fixedOutput) {\n const prefix = document.createElement(\"span\");\n prefix.className = \"tag-fixed-output-marker\";\n prefix.textContent = \"===\";\n container.appendChild(prefix);\n }\n\n if (this.dataset.tag === \"image\" || this.dataset.tag === \"video\") {\n const iconWrapper = document.createElement(\"span\");\n iconWrapper.className = \"tag-placeholder-icon\";\n\n const icon =\n this.dataset.tag === \"image\" ? buildImageIcon() : buildVideoIcon();\n iconWrapper.appendChild(icon);\n content.appendChild(iconWrapper);\n }\n content.appendChild(span);\n container.appendChild(content);\n\n if (this.dataset.fixedOutput) {\n const suffix = document.createElement(\"span\");\n suffix.className = \"tag-fixed-output-marker\";\n suffix.textContent = \"===\";\n container.appendChild(suffix);\n }\n\n return container;\n }\n\n ignoreEvent() {\n return false;\n }\n}\n\nexport default PlaceholderWidget;\n"],"names":["SVG_NS","createSvgElement","tag","buildImageIcon","svg","rect","circle","path","buildVideoIcon","PlaceholderWidget","WidgetType","text","dataset","styleClass","type","view","from","to","decorations","EditorView","deco","start","end","decoration","container","content","span","e","event","prefix","iconWrapper","icon","suffix"],"mappings":"qLAGMA,EAAS,6BAETC,EAAoBC,GAAgB,SAAS,gBAAgBF,EAAQE,CAAG,EAIxEC,EAAiB,IAAM,CAC3B,MAAMC,EAAMH,EAAiB,KAAK,EAClCG,EAAI,aAAa,UAAW,WAAW,EACvCA,EAAI,aAAa,QAAS,IAAI,EAC9BA,EAAI,aAAa,SAAU,IAAI,EAC/BA,EAAI,aAAa,OAAQ,MAAM,EAC/BA,EAAI,aAAa,SAAU,cAAc,EACzCA,EAAI,aAAa,eAAgB,KAAK,EACtCA,EAAI,aAAa,iBAAkB,OAAO,EAC1CA,EAAI,aAAa,kBAAmB,OAAO,EAE3C,MAAMC,EAAOJ,EAAiB,MAAM,EACpCI,EAAK,aAAa,QAAS,IAAI,EAC/BA,EAAK,aAAa,SAAU,IAAI,EAChCA,EAAK,aAAa,IAAK,GAAG,EAC1BA,EAAK,aAAa,IAAK,GAAG,EAC1BA,EAAK,aAAa,KAAM,GAAG,EAC3BA,EAAK,aAAa,KAAM,GAAG,EAE3B,MAAMC,EAASL,EAAiB,QAAQ,EACxCK,EAAO,aAAa,KAAM,GAAG,EAC7BA,EAAO,aAAa,KAAM,GAAG,EAC7BA,EAAO,aAAa,IAAK,GAAG,EAE5B,MAAMC,EAAON,EAAiB,MAAM,EACpC,OAAAM,EAAK,aAAa,IAAK,2CAA2C,EAElEH,EAAI,OAAOC,EAAMC,EAAQC,CAAI,EACtBH,CACT,EAGMI,EAAiB,IAAM,CAC3B,MAAMJ,EAAMH,EAAiB,KAAK,EAClCG,EAAI,aAAa,UAAW,WAAW,EACvCA,EAAI,aAAa,QAAS,IAAI,EAC9BA,EAAI,aAAa,SAAU,IAAI,EAC/BA,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version":3,"file":"PlaceholderWidget.es.js","sources":["../../../../src/components/MarkdownFlowEditor/plugins/PlaceholderWidget.ts"],"sourcesContent":["import { EditorView, Decoration, WidgetType } from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\n\nconst SVG_NS = \"http://www.w3.org/2000/svg\";\n\nconst createSvgElement = (tag: string) => document.createElementNS(SVG_NS, tag);\n// TODO: if use renderToStaticMarkup & createElement, it will cause react & react-dom version mismatch\n// so we use lucide-react to build the icon\n// lucide-react image icon\nconst buildImageIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n rect.setAttribute(\"ry\", \"2\");\n\n const circle = createSvgElement(\"circle\");\n circle.setAttribute(\"cx\", \"9\");\n circle.setAttribute(\"cy\", \"9\");\n circle.setAttribute(\"r\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\");\n\n svg.append(rect, circle, path);\n return svg;\n};\n\n// lucide-react image icon\nconst buildVideoIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m9 8 6 4-6 4Z\");\n\n svg.append(rect, path);\n return svg;\n};\n\nclass PlaceholderWidget extends WidgetType {\n constructor(\n private text: string,\n private dataset: {\n tag: \"image\" | \"video\";\n title?: string;\n url?: string;\n scalePercent?: number;\n fixedOutput?: boolean;\n },\n private styleClass: string,\n private type: SelectedOption,\n private view: EditorView\n ) {\n super();\n }\n\n getPosition() {\n let from = -1;\n let to = -1;\n const decorations = this.view.state.facet(EditorView.decorations);\n for (const deco of decorations) {\n const decoSet = typeof deco === \"function\" ? deco(this.view) : deco;\n decoSet.between(\n 0,\n this.view.state.doc.length,\n (start: number, end: number, decoration: Decoration) => {\n if (decoration.spec.widget === this) {\n from = start;\n to = end;\n return false;\n }\n }\n );\n if (from !== -1) break;\n }\n if (from !== -1 && to !== -1) {\n return [from, to];\n }\n }\n\n toDOM() {\n const container = document.createElement(\"span\");\n container.className = this.styleClass;\n const content = document.createElement(\"span\");\n content.className = \"tag-placeholder-content\";\n const span = document.createElement(\"span\");\n span.className = \"tag-placeholder-label\";\n span.textContent = this.text;\n span.dataset[\"tag\"] = this.dataset.tag || \"\";\n span.dataset[\"url\"] = this.dataset.url || \"\";\n span.dataset[\"title\"] = this.dataset.title || \"\";\n
|
|
1
|
+
{"version":3,"file":"PlaceholderWidget.es.js","sources":["../../../../src/components/MarkdownFlowEditor/plugins/PlaceholderWidget.ts"],"sourcesContent":["import { EditorView, Decoration, WidgetType } from \"@codemirror/view\";\nimport { SelectedOption } from \"../types\";\n\nconst SVG_NS = \"http://www.w3.org/2000/svg\";\n\nconst createSvgElement = (tag: string) => document.createElementNS(SVG_NS, tag);\n// TODO: if use renderToStaticMarkup & createElement, it will cause react & react-dom version mismatch\n// so we use lucide-react to build the icon\n// lucide-react image icon\nconst buildImageIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n rect.setAttribute(\"ry\", \"2\");\n\n const circle = createSvgElement(\"circle\");\n circle.setAttribute(\"cx\", \"9\");\n circle.setAttribute(\"cy\", \"9\");\n circle.setAttribute(\"r\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\");\n\n svg.append(rect, circle, path);\n return svg;\n};\n\n// lucide-react image icon\nconst buildVideoIcon = () => {\n const svg = createSvgElement(\"svg\");\n svg.setAttribute(\"viewBox\", \"0 0 24 24\");\n svg.setAttribute(\"width\", \"14\");\n svg.setAttribute(\"height\", \"14\");\n svg.setAttribute(\"fill\", \"none\");\n svg.setAttribute(\"stroke\", \"currentColor\");\n svg.setAttribute(\"stroke-width\", \"1.5\");\n svg.setAttribute(\"stroke-linecap\", \"round\");\n svg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const rect = createSvgElement(\"rect\");\n rect.setAttribute(\"width\", \"18\");\n rect.setAttribute(\"height\", \"18\");\n rect.setAttribute(\"x\", \"3\");\n rect.setAttribute(\"y\", \"3\");\n rect.setAttribute(\"rx\", \"2\");\n\n const path = createSvgElement(\"path\");\n path.setAttribute(\"d\", \"m9 8 6 4-6 4Z\");\n\n svg.append(rect, path);\n return svg;\n};\n\nclass PlaceholderWidget extends WidgetType {\n constructor(\n private text: string,\n private dataset: {\n tag: \"image\" | \"video\";\n title?: string;\n url?: string;\n scalePercent?: number;\n fixedOutput?: boolean;\n },\n private styleClass: string,\n private type: SelectedOption,\n private view: EditorView\n ) {\n super();\n }\n\n getPosition() {\n let from = -1;\n let to = -1;\n const decorations = this.view.state.facet(EditorView.decorations);\n for (const deco of decorations) {\n const decoSet = typeof deco === \"function\" ? deco(this.view) : deco;\n decoSet.between(\n 0,\n this.view.state.doc.length,\n (start: number, end: number, decoration: Decoration) => {\n if (decoration.spec.widget === this) {\n from = start;\n to = end;\n return false;\n }\n }\n );\n if (from !== -1) break;\n }\n if (from !== -1 && to !== -1) {\n return [from, to];\n }\n }\n\n toDOM() {\n const container = document.createElement(\"span\");\n container.className = this.styleClass;\n const content = document.createElement(\"span\");\n content.className = \"tag-placeholder-content\";\n const span = document.createElement(\"span\");\n span.className = \"tag-placeholder-label\";\n span.textContent = this.text;\n span.dataset[\"tag\"] = this.dataset.tag || \"\";\n span.dataset[\"url\"] = this.dataset.url || \"\";\n span.dataset[\"title\"] = this.dataset.title || \"\";\n content.addEventListener(\"click\", (e) => {\n const [from, to] = this.getPosition() ?? [-1, -1];\n const event = new CustomEvent(\"globalTagClick\", {\n detail: {\n view: this.view,\n type: this.type,\n dataset: this.dataset,\n content: span.textContent,\n from,\n to,\n target: e.currentTarget,\n },\n });\n window.dispatchEvent(event);\n });\n\n if (this.dataset.fixedOutput) {\n const prefix = document.createElement(\"span\");\n prefix.className = \"tag-fixed-output-marker\";\n prefix.textContent = \"===\";\n container.appendChild(prefix);\n }\n\n if (this.dataset.tag === \"image\" || this.dataset.tag === \"video\") {\n const iconWrapper = document.createElement(\"span\");\n iconWrapper.className = \"tag-placeholder-icon\";\n\n const icon =\n this.dataset.tag === \"image\" ? buildImageIcon() : buildVideoIcon();\n iconWrapper.appendChild(icon);\n content.appendChild(iconWrapper);\n }\n content.appendChild(span);\n container.appendChild(content);\n\n if (this.dataset.fixedOutput) {\n const suffix = document.createElement(\"span\");\n suffix.className = \"tag-fixed-output-marker\";\n suffix.textContent = \"===\";\n container.appendChild(suffix);\n }\n\n return container;\n }\n\n ignoreEvent() {\n return false;\n }\n}\n\nexport default PlaceholderWidget;\n"],"names":["SVG_NS","createSvgElement","tag","buildImageIcon","svg","rect","circle","path","buildVideoIcon","PlaceholderWidget","WidgetType","text","dataset","styleClass","type","view","from","to","decorations","EditorView","deco","start","end","decoration","container","content","span","e","event","prefix","iconWrapper","icon","suffix"],"mappings":";AAGA,MAAMA,IAAS,8BAETC,IAAmB,CAACC,MAAgB,SAAS,gBAAgBF,GAAQE,CAAG,GAIxEC,IAAiB,MAAM;AAC3B,QAAMC,IAAMH,EAAiB,KAAK;AAClC,EAAAG,EAAI,aAAa,WAAW,WAAW,GACvCA,EAAI,aAAa,SAAS,IAAI,GAC9BA,EAAI,aAAa,UAAU,IAAI,GAC/BA,EAAI,aAAa,QAAQ,MAAM,GAC/BA,EAAI,aAAa,UAAU,cAAc,GACzCA,EAAI,aAAa,gBAAgB,KAAK,GACtCA,EAAI,aAAa,kBAAkB,OAAO,GAC1CA,EAAI,aAAa,mBAAmB,OAAO;AAE3C,QAAMC,IAAOJ,EAAiB,MAAM;AACpC,EAAAI,EAAK,aAAa,SAAS,IAAI,GAC/BA,EAAK,aAAa,UAAU,IAAI,GAChCA,EAAK,aAAa,KAAK,GAAG,GAC1BA,EAAK,aAAa,KAAK,GAAG,GAC1BA,EAAK,aAAa,MAAM,GAAG,GAC3BA,EAAK,aAAa,MAAM,GAAG;AAE3B,QAAMC,IAASL,EAAiB,QAAQ;AACxC,EAAAK,EAAO,aAAa,MAAM,GAAG,GAC7BA,EAAO,aAAa,MAAM,GAAG,GAC7BA,EAAO,aAAa,KAAK,GAAG;AAE5B,QAAMC,IAAON,EAAiB,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