@templatical/editor 0.8.4 → 0.9.0
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/dist/{AiChatSidebar-CnRXeK77.js → AiChatSidebar-BUKj9n02.js} +5 -5
- package/dist/{AiFeatureMenu-BYDDrpj6.js → AiFeatureMenu-Co14YVJt.js} +3 -3
- package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
- package/dist/{CloudEditor-B9a_K6Cm.js → CloudEditor-CAtw_sFC.js} +218 -217
- package/dist/{CollaboratorBar-HN4whzM-.js → CollaboratorBar-Bc6q0gB9.js} +2 -2
- package/dist/{CommentsSidebar-_llWQ4VT.js → CommentsSidebar-DiH4R4F0.js} +3 -3
- package/dist/{CountdownBlock-I99sC0C5.js → CountdownBlock-BTPefclD.js} +2 -2
- package/dist/{CountdownToolbar-BUhOUiQ9.js → CountdownToolbar-Dvr2icg-.js} +2 -2
- package/dist/{DesignReferenceSidebar-0GwjUn2V.js → DesignReferenceSidebar-BP32MgpS.js} +3 -3
- package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
- package/dist/{ModuleBrowserModal-DPZBsvqk.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
- package/dist/{ModulePreviewCanvas-CK4j11-e.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
- package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
- package/dist/{ParagraphEditor-DBus_iHH.js → ParagraphEditor-DrAz2yot.js} +126 -126
- package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
- package/dist/{SaveModuleDialog-DORRSbBo.js → SaveModuleDialog-DWidA0c9.js} +6 -6
- package/dist/{SnapshotHistory-DTMVEk03.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
- package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
- package/dist/{TestEmailModal-DJmYp0Qi.js → TestEmailModal-BuCuWp3N.js} +3 -3
- package/dist/{TitleEditor-70d9AF1V.js → TitleEditor-BmW0uMl7.js} +67 -67
- package/dist/{TplModal-BEfwlvPC.js → TplModal-YFpBaiLj.js} +4 -4
- package/dist/{blockTypeIcons-2DRoPa3K.js → blockTypeIcons-DCkHXPhx.js} +19 -11
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js → BlockIssueBadge-D_US2wqo.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js → CloudEditor-CyJItWsK.js} +186 -185
- package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js → CountdownBlock-D6lCXhZA.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js → CountdownToolbar-BsGUxoRv.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js → IssuesPanel-DeHTmRDz.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-CFMd6M7E.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
- package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
- package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BIWXLPfu.js → ParagraphEditor-fM9aFu8T.js} +116 -116
- package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DR9EZlWe.js → SaveModuleDialog-BrtDXzIz.js} +4 -4
- package/dist/cdn/chunks/SaveModuleDialog-BrtDXzIz.js.map +1 -0
- package/dist/cdn/chunks/TitleEditor-D0rSnye0.js +175 -0
- package/dist/cdn/chunks/TitleEditor-D0rSnye0.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js → blockTypeIcons-YOEe5mDE.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js.map → blockTypeIcons-YOEe5mDE.js.map} +1 -1
- package/dist/{de-ED7c5RpG.js → cdn/chunks/de-CATfXDKV.js} +14 -1
- package/dist/cdn/chunks/{de-ED7c5RpG.js.map → de-CATfXDKV.js.map} +1 -1
- package/dist/cdn/chunks/{en-ivilDUn0.js → en-CwCAgYL5.js} +13 -2
- package/dist/cdn/chunks/{en-ivilDUn0.js.map → en-CwCAgYL5.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CvCoOuWB.js → extensions-GYsbQFPr.js} +26 -23
- package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
- package/dist/cdn/chunks/{features-CUYy5kZQ.js → features-D-2kVhHY.js} +1264 -1188
- package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
- package/dist/cdn/chunks/{icons-C4zY5-I3.js → icons-fZoyKV_s.js} +2 -2
- package/dist/cdn/chunks/{icons-C4zY5-I3.js.map → icons-fZoyKV_s.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BNt3msId.js → media-library-CO2WOETY.js} +240 -240
- package/dist/cdn/chunks/{media-library-BNt3msId.js.map → media-library-CO2WOETY.js.map} +1 -1
- package/dist/{pt-BR-B5tm2iBl.js → cdn/chunks/pt-BR-D3Mg7AKe.js} +14 -1
- package/dist/cdn/chunks/{pt-BR-B5tm2iBl.js.map → pt-BR-D3Mg7AKe.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BTPRPGB-.js → quality-BxPiS-wv.js} +603 -577
- package/dist/cdn/chunks/{quality-BTPRPGB-.js.map → quality-BxPiS-wv.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-IOmuuZjJ.js → renderer-7z2t_bYQ.js} +142 -108
- package/dist/cdn/chunks/{renderer-IOmuuZjJ.js.map → renderer-7z2t_bYQ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Dp0ZFQ4-.js → src-ftxPuuQh.js} +4 -4
- package/dist/cdn/chunks/{src-Dp0ZFQ4-.js.map → src-ftxPuuQh.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DtgjgsBH.js → styles-o0HIrw9F.js} +877 -622
- package/dist/cdn/chunks/styles-o0HIrw9F.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BErAJEvo.js → tiptap-BBbH3IT9.js} +849 -725
- package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +102 -101
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-Dz8Ay2FM.js → cloud-VxYMtfXC.js} +1 -1
- package/dist/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
- package/dist/{dist-BygsE-n3.js → dist-BDgf2G-V.js} +453 -314
- package/dist/{dist-BtDBsF3N.js → dist-BxP6TB0l.js} +2 -2
- package/dist/{dist-DWhP3Dp2.js → dist-BzuC8o3y.js} +1209 -1217
- package/dist/{dist-v-O2Subd.js → dist-C0jo8wtG.js} +2 -2
- package/dist/{dist-BTgujVMy.js → dist-C8wMh_gi.js} +2 -2
- package/dist/{dist-Cipw2HFH.js → dist-CIV3Brg-.js} +37 -4
- package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
- package/dist/{dist-BS5Oi67L.js → dist-CUpJmrjt.js} +2 -2
- package/dist/dist-D5lmdi1F.js +5 -0
- package/dist/{dist-T-ORzNfM.js → dist-D8C6jIXM.js} +168 -175
- package/dist/dist-DILjuzSv.js +5 -0
- package/dist/{dist-CDtcJMB2.js → dist-DXaxGLsw.js} +33 -33
- package/dist/{dist-DnGTaPRX.js → dist-DYO-w_Jf.js} +2 -2
- package/dist/{dist-CDZCyoRy.js → dist-UK-lbEBc.js} +2 -2
- package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
- package/dist/{extensions-BmGiz8Oo.js → extensions-Mj2-D8uK.js} +32 -29
- package/dist/{keys-B8K7Z7Ef.js → keys-BiQlvx51.js} +3 -3
- package/dist/{cdn/chunks/pt-BR-B5tm2iBl.js → pt-BR-D3Mg7AKe.js} +12 -3
- package/dist/style.css +1 -1
- package/dist/{styles-DFeOGKa_.js → styles-CJtcKmsx.js} +857 -601
- package/dist/templatical-editor.js +104 -103
- package/dist/{useCloudI18n-DFzVgYhJ.js → useCloudI18n-DKWJg6rJ.js} +1 -1
- package/dist/{useEditorCore-BXz-UXPd.js → useEditorCore-CEkf_VWX.js} +663 -633
- package/dist/{useI18n-CBbStVlD.js → useI18n-Besvmtxy.js} +1 -1
- package/dist/useMergeTag-WNzaCpXR.js +44 -0
- package/dist/{usePopoverRoot-62PlZQQ3.js → usePopoverRoot-CKt956u-.js} +1 -1
- package/package.json +21 -21
- package/dist/cdn/chunks/ModuleBrowserModal-CFMd6M7E.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BIWXLPfu.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-DR9EZlWe.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js +0 -175
- package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js.map +0 -1
- package/dist/cdn/chunks/extensions-CvCoOuWB.js.map +0 -1
- package/dist/cdn/chunks/features-CUYy5kZQ.js.map +0 -1
- package/dist/cdn/chunks/styles-DtgjgsBH.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BErAJEvo.js.map +0 -1
- package/dist/dist-BySzGkeC.js +0 -5
- package/dist/dist-D7JUZ2Kd.js +0 -5
- package/dist/useMergeTag-CS2bmWA0.js +0 -34
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
|
-
import { C as S, b as C, w } from "./useEditorCore-
|
|
3
|
-
import { t as T } from "./dist-
|
|
4
|
-
import { A as E, D,
|
|
5
|
-
import { t as A } from "./useI18n-
|
|
2
|
+
import { C as S, b as C, w } from "./useEditorCore-CEkf_VWX.js";
|
|
3
|
+
import { t as T } from "./dist-CNLAS2v2.js";
|
|
4
|
+
import { A as E, O as D, b as O, h as k, j as ee } from "./keys-BiQlvx51.js";
|
|
5
|
+
import { t as A } from "./useI18n-Besvmtxy.js";
|
|
6
6
|
import { t as j } from "./createLucideIcon-XgXOJ05E.js";
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
7
|
+
import { a as te, i as M, n as N, r as ne, t as P } from "./RichTextEditorContent-gR169m1-.js";
|
|
8
|
+
import { t as re } from "./loader-circle-Rz_4vJLH.js";
|
|
9
|
+
import { t as ie } from "./scan-line-wanvAFDr.js";
|
|
10
|
+
import { n as ae, r as oe, t as se } from "./text-align-end-Bkq8oBrD.js";
|
|
11
11
|
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
var
|
|
12
|
+
import { a as ce, o as le, s as I } from "./styleConstants-lGobwiLH.js";
|
|
13
|
+
import { t as L } from "./usePopoverRoot-CKt956u-.js";
|
|
14
|
+
var R = j("list-ordered", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M11 5h10",
|
|
17
17
|
key: "1cz7ny"
|
|
@@ -36,7 +36,7 @@ var B = j("list-ordered", [
|
|
|
36
36
|
d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",
|
|
37
37
|
key: "xtkcd5"
|
|
38
38
|
}]
|
|
39
|
-
]),
|
|
39
|
+
]), z = j("list", [
|
|
40
40
|
["path", {
|
|
41
41
|
d: "M3 5h.01",
|
|
42
42
|
key: "18ugdj"
|
|
@@ -61,7 +61,7 @@ var B = j("list-ordered", [
|
|
|
61
61
|
d: "M8 19h13",
|
|
62
62
|
key: "m83p4d"
|
|
63
63
|
}]
|
|
64
|
-
]),
|
|
64
|
+
]), B = j("remove-formatting", [
|
|
65
65
|
["path", {
|
|
66
66
|
d: "M4 7V4h16v3",
|
|
67
67
|
key: "9msm58"
|
|
@@ -82,7 +82,7 @@ var B = j("list-ordered", [
|
|
|
82
82
|
d: "m20 15-5 5",
|
|
83
83
|
key: "11p7ol"
|
|
84
84
|
}]
|
|
85
|
-
]),
|
|
85
|
+
]), V = j("smile", [
|
|
86
86
|
["circle", {
|
|
87
87
|
cx: "12",
|
|
88
88
|
cy: "12",
|
|
@@ -107,7 +107,7 @@ var B = j("list-ordered", [
|
|
|
107
107
|
y2: "9",
|
|
108
108
|
key: "1p4y9e"
|
|
109
109
|
}]
|
|
110
|
-
]),
|
|
110
|
+
]), H = j("strikethrough", [
|
|
111
111
|
["path", {
|
|
112
112
|
d: "M16 4H9a3 3 0 0 0-2.83 4",
|
|
113
113
|
key: "43sutm"
|
|
@@ -123,7 +123,7 @@ var B = j("list-ordered", [
|
|
|
123
123
|
y2: "12",
|
|
124
124
|
key: "1e0a9i"
|
|
125
125
|
}]
|
|
126
|
-
]),
|
|
126
|
+
]), U = j("subscript", [
|
|
127
127
|
["path", {
|
|
128
128
|
d: "m4 5 8 8",
|
|
129
129
|
key: "1eunvl"
|
|
@@ -136,7 +136,7 @@ var B = j("list-ordered", [
|
|
|
136
136
|
d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07",
|
|
137
137
|
key: "e8ta8j"
|
|
138
138
|
}]
|
|
139
|
-
]),
|
|
139
|
+
]), W = j("superscript", [
|
|
140
140
|
["path", {
|
|
141
141
|
d: "m4 19 8-8",
|
|
142
142
|
key: "hr47gm"
|
|
@@ -149,7 +149,7 @@ var B = j("list-ordered", [
|
|
|
149
149
|
d: "M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06",
|
|
150
150
|
key: "1dfcux"
|
|
151
151
|
}]
|
|
152
|
-
]),
|
|
152
|
+
]), ue = j("underline", [["path", {
|
|
153
153
|
d: "M6 4v6a6 6 0 0 0 12 0V4",
|
|
154
154
|
key: "9kb039"
|
|
155
155
|
}], ["line", {
|
|
@@ -158,11 +158,11 @@ var B = j("list-ordered", [
|
|
|
158
158
|
y1: "20",
|
|
159
159
|
y2: "20",
|
|
160
160
|
key: "nun2al"
|
|
161
|
-
}]]),
|
|
161
|
+
}]]), G = [
|
|
162
162
|
"aria-label",
|
|
163
163
|
"title",
|
|
164
164
|
"aria-expanded"
|
|
165
|
-
],
|
|
165
|
+
], K = ["aria-label"], q = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, J = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, Y = ["aria-label", "onClick"], de = /* @__PURE__ */ s({
|
|
166
166
|
__name: "EmojiPickerDropdown",
|
|
167
167
|
emits: ["insert"],
|
|
168
168
|
setup(t, { emit: n }) {
|
|
@@ -186,10 +186,10 @@ var B = j("list-ordered", [
|
|
|
186
186
|
"aria-haspopup": "dialog",
|
|
187
187
|
"aria-controls": "tpl-emoji-picker",
|
|
188
188
|
onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
|
|
189
|
-
}, [b(g(
|
|
189
|
+
}, [b(g(V), {
|
|
190
190
|
size: 16,
|
|
191
191
|
"stroke-width": 2
|
|
192
|
-
})], 10,
|
|
192
|
+
})], 10, G), g(m) ? (e(), d("div", {
|
|
193
193
|
key: 0,
|
|
194
194
|
id: "tpl-emoji-picker",
|
|
195
195
|
ref_key: "pickerRef",
|
|
@@ -203,15 +203,15 @@ var B = j("list-ordered", [
|
|
|
203
203
|
}, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
|
|
204
204
|
key: t.key,
|
|
205
205
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
206
|
-
}, [u("div",
|
|
206
|
+
}, [u("div", q, v(g(x).emoji[t.key]), 1), u("div", J, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
|
|
207
207
|
key: t,
|
|
208
208
|
type: "button",
|
|
209
209
|
"aria-label": g(C)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
210
210
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
211
211
|
onClick: (e) => O(t)
|
|
212
|
-
}, v(t), 9,
|
|
212
|
+
}, v(t), 9, Y))), 128))])]))), 128))], 40, K)) : p("", !0)], 512));
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), fe = [
|
|
215
215
|
"aria-label",
|
|
216
216
|
"title",
|
|
217
217
|
"aria-pressed"
|
|
@@ -234,20 +234,20 @@ var B = j("list-ordered", [
|
|
|
234
234
|
}, [(e(), h(t(n.icon), {
|
|
235
235
|
size: n.size ?? 16,
|
|
236
236
|
"stroke-width": n.strokeWidth ?? 2
|
|
237
|
-
}, null, 8, ["size", "stroke-width"]))], 10,
|
|
237
|
+
}, null, 8, ["size", "stroke-width"]))], 10, fe));
|
|
238
238
|
}
|
|
239
|
-
}),
|
|
239
|
+
}), pe = {}, me = {
|
|
240
240
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
241
241
|
"aria-hidden": "true"
|
|
242
242
|
};
|
|
243
|
-
function
|
|
244
|
-
return e(), d("span",
|
|
243
|
+
function he(t, n) {
|
|
244
|
+
return e(), d("span", me);
|
|
245
245
|
}
|
|
246
|
-
var Z = /* @__PURE__ */ F(
|
|
246
|
+
var Z = /* @__PURE__ */ F(pe, [["render", he]]), ge = [
|
|
247
247
|
"value",
|
|
248
248
|
"aria-label",
|
|
249
249
|
"title"
|
|
250
|
-
],
|
|
250
|
+
], _e = { value: "" }, ve = ["value"], Q = /* @__PURE__ */ s({
|
|
251
251
|
__name: "ToolbarSelect",
|
|
252
252
|
props: {
|
|
253
253
|
modelValue: {},
|
|
@@ -274,12 +274,12 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
274
274
|
"aria-label": t.label,
|
|
275
275
|
title: t.label,
|
|
276
276
|
onChange: a
|
|
277
|
-
}, [u("option",
|
|
277
|
+
}, [u("option", _e, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
|
|
278
278
|
key: s(t),
|
|
279
279
|
value: s(t)
|
|
280
|
-
}, v(c(t)), 9,
|
|
280
|
+
}, v(c(t)), 9, ve))), 128))], 42, ge));
|
|
281
281
|
}
|
|
282
|
-
}),
|
|
282
|
+
}), ye = ["data-tpl-theme", "aria-label"], be = { class: "tpl:flex tpl:items-center tpl:gap-1" }, $ = { class: "tpl:relative" }, xe = [
|
|
283
283
|
"value",
|
|
284
284
|
"aria-label",
|
|
285
285
|
"title"
|
|
@@ -287,10 +287,10 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
287
287
|
"value",
|
|
288
288
|
"aria-label",
|
|
289
289
|
"title"
|
|
290
|
-
],
|
|
290
|
+
], we = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Te = ["aria-label", "title"], Ee = {
|
|
291
291
|
key: 1,
|
|
292
292
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
293
|
-
},
|
|
293
|
+
}, De = /* @__PURE__ */ s({
|
|
294
294
|
__name: "ParagraphToolbar",
|
|
295
295
|
props: {
|
|
296
296
|
editor: {},
|
|
@@ -300,33 +300,33 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
300
300
|
},
|
|
301
301
|
emits: ["open-link-dialog", "add-merge-tag"],
|
|
302
302
|
setup(t, { emit: n }) {
|
|
303
|
-
let r = t, i = n, o = x(D, null), s = x(
|
|
304
|
-
function
|
|
303
|
+
let r = t, i = n, o = x(D, null), s = x(E, null), c = ee(k, "ParagraphToolbar"), _ = L(), S = x(O, null), C = l(() => S?.isOpen.value ?? !1), { t: w } = A(), T = c.fonts;
|
|
304
|
+
function j(e) {
|
|
305
305
|
r.editor?.chain().focus().insertContent(e).run();
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function N(e) {
|
|
308
308
|
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function P(e) {
|
|
311
311
|
let t = r.editor?.chain().focus();
|
|
312
312
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function F(e) {
|
|
315
315
|
let t = r.editor?.chain().focus();
|
|
316
316
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function V(e) {
|
|
319
319
|
let t = r.editor?.chain().focus();
|
|
320
320
|
e ? t?.setColor(e).run() : t?.unsetColor().run();
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function G() {
|
|
323
323
|
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function K(e) {
|
|
326
326
|
let t = r.editor?.chain().focus();
|
|
327
327
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function q(e) {
|
|
330
330
|
let t = r.editor?.chain().focus();
|
|
331
331
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
332
332
|
}
|
|
@@ -337,13 +337,13 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
337
337
|
let t = r.editor?.chain().focus();
|
|
338
338
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
339
339
|
}
|
|
340
|
-
return (n, r) => g(
|
|
340
|
+
return (n, r) => g(_) && !C.value ? (e(), h(y, {
|
|
341
341
|
key: 0,
|
|
342
|
-
to: g(
|
|
342
|
+
to: g(_)
|
|
343
343
|
}, [u("div", {
|
|
344
344
|
"data-tpl-theme": g(s),
|
|
345
345
|
role: "toolbar",
|
|
346
|
-
"aria-label": g(
|
|
346
|
+
"aria-label": g(w).paragraphEditor.toolbar,
|
|
347
347
|
class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
348
348
|
style: m({
|
|
349
349
|
...g(o),
|
|
@@ -352,14 +352,14 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
352
352
|
transform: "translateY(-100%)",
|
|
353
353
|
flexDirection: "column"
|
|
354
354
|
})
|
|
355
|
-
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div",
|
|
355
|
+
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", be, [
|
|
356
356
|
b(Q, {
|
|
357
|
-
"model-value":
|
|
358
|
-
options: g(
|
|
359
|
-
label: g(
|
|
360
|
-
placeholder: g(
|
|
357
|
+
"model-value": N("fontFamily"),
|
|
358
|
+
options: g(T),
|
|
359
|
+
label: g(w).paragraphEditor.fontFamily,
|
|
360
|
+
placeholder: g(w).paragraphEditor.defaultFont,
|
|
361
361
|
"width-class": "tpl:w-32",
|
|
362
|
-
"onUpdate:modelValue":
|
|
362
|
+
"onUpdate:modelValue": P
|
|
363
363
|
}, null, 8, [
|
|
364
364
|
"model-value",
|
|
365
365
|
"options",
|
|
@@ -367,12 +367,12 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
367
367
|
"placeholder"
|
|
368
368
|
]),
|
|
369
369
|
b(Q, {
|
|
370
|
-
"model-value":
|
|
371
|
-
options: g(
|
|
372
|
-
label: g(
|
|
373
|
-
placeholder: g(
|
|
370
|
+
"model-value": N("fontSize"),
|
|
371
|
+
options: g(ce),
|
|
372
|
+
label: g(w).paragraphEditor.fontSize,
|
|
373
|
+
placeholder: g(w).paragraphEditor.defaultSize,
|
|
374
374
|
"width-class": "tpl:w-20",
|
|
375
|
-
"onUpdate:modelValue":
|
|
375
|
+
"onUpdate:modelValue": F
|
|
376
376
|
}, null, 8, [
|
|
377
377
|
"model-value",
|
|
378
378
|
"options",
|
|
@@ -380,27 +380,27 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
380
380
|
"placeholder"
|
|
381
381
|
]),
|
|
382
382
|
b(Z),
|
|
383
|
-
u("div",
|
|
383
|
+
u("div", $, [u("input", {
|
|
384
384
|
type: "color",
|
|
385
385
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
386
|
-
value:
|
|
387
|
-
"aria-label": g(
|
|
388
|
-
title: g(
|
|
389
|
-
onInput: r[0] ||= (e) =>
|
|
386
|
+
value: N("color") || g("#000000"),
|
|
387
|
+
"aria-label": g(w).paragraphEditor.textColor,
|
|
388
|
+
title: g(w).paragraphEditor.textColor,
|
|
389
|
+
onInput: r[0] ||= (e) => V(e.target.value)
|
|
390
390
|
}, null, 40, xe)]),
|
|
391
391
|
u("div", Se, [u("input", {
|
|
392
392
|
type: "color",
|
|
393
393
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
394
394
|
style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
395
395
|
value: J() || g("#ffff00"),
|
|
396
|
-
"aria-label": g(
|
|
397
|
-
title: g(
|
|
396
|
+
"aria-label": g(w).paragraphEditor.highlightColor,
|
|
397
|
+
title: g(w).paragraphEditor.highlightColor,
|
|
398
398
|
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
399
399
|
}, null, 44, Ce)]),
|
|
400
400
|
b(Z),
|
|
401
401
|
b(X, {
|
|
402
|
-
icon: g(
|
|
403
|
-
label: g(
|
|
402
|
+
icon: g(te),
|
|
403
|
+
label: g(w).paragraphEditor.bold,
|
|
404
404
|
active: t.editor.isActive("bold"),
|
|
405
405
|
"stroke-width": 2.5,
|
|
406
406
|
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
@@ -410,8 +410,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
410
410
|
"active"
|
|
411
411
|
]),
|
|
412
412
|
b(X, {
|
|
413
|
-
icon: g(
|
|
414
|
-
label: g(
|
|
413
|
+
icon: g(M),
|
|
414
|
+
label: g(w).paragraphEditor.italic,
|
|
415
415
|
active: t.editor.isActive("italic"),
|
|
416
416
|
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
417
417
|
}, null, 8, [
|
|
@@ -420,8 +420,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
420
420
|
"active"
|
|
421
421
|
]),
|
|
422
422
|
b(X, {
|
|
423
|
-
icon: g(
|
|
424
|
-
label: g(
|
|
423
|
+
icon: g(ue),
|
|
424
|
+
label: g(w).paragraphEditor.underline,
|
|
425
425
|
active: t.editor.isActive("underline"),
|
|
426
426
|
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
427
427
|
}, null, 8, [
|
|
@@ -430,8 +430,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
430
430
|
"active"
|
|
431
431
|
]),
|
|
432
432
|
b(X, {
|
|
433
|
-
icon: g(
|
|
434
|
-
label: g(
|
|
433
|
+
icon: g(H),
|
|
434
|
+
label: g(w).paragraphEditor.strikethrough,
|
|
435
435
|
active: t.editor.isActive("strike"),
|
|
436
436
|
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
437
437
|
}, null, 8, [
|
|
@@ -441,8 +441,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
441
441
|
]),
|
|
442
442
|
b(Z),
|
|
443
443
|
b(X, {
|
|
444
|
-
icon: g(
|
|
445
|
-
label: g(
|
|
444
|
+
icon: g(U),
|
|
445
|
+
label: g(w).paragraphEditor.subscript,
|
|
446
446
|
active: t.editor.isActive("subscript"),
|
|
447
447
|
onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
448
448
|
}, null, 8, [
|
|
@@ -451,8 +451,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
451
451
|
"active"
|
|
452
452
|
]),
|
|
453
453
|
b(X, {
|
|
454
|
-
icon: g(
|
|
455
|
-
label: g(
|
|
454
|
+
icon: g(W),
|
|
455
|
+
label: g(w).paragraphEditor.superscript,
|
|
456
456
|
active: t.editor.isActive("superscript"),
|
|
457
457
|
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
458
458
|
}, null, 8, [
|
|
@@ -462,8 +462,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
462
462
|
]),
|
|
463
463
|
b(Z),
|
|
464
464
|
b(X, {
|
|
465
|
-
icon: g(
|
|
466
|
-
label: g(
|
|
465
|
+
icon: g(ne),
|
|
466
|
+
label: g(w).paragraphEditor.addLink,
|
|
467
467
|
active: t.editor.isActive("link"),
|
|
468
468
|
onClick: r[8] ||= (e) => i("open-link-dialog")
|
|
469
469
|
}, null, 8, [
|
|
@@ -471,10 +471,10 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
471
471
|
"label",
|
|
472
472
|
"active"
|
|
473
473
|
])
|
|
474
|
-
]), u("div",
|
|
474
|
+
]), u("div", we, [
|
|
475
475
|
b(X, {
|
|
476
|
-
icon: g(
|
|
477
|
-
label: g(
|
|
476
|
+
icon: g(z),
|
|
477
|
+
label: g(w).paragraphEditor.bulletList,
|
|
478
478
|
active: t.editor.isActive("bulletList"),
|
|
479
479
|
onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
480
480
|
}, null, 8, [
|
|
@@ -483,8 +483,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
483
483
|
"active"
|
|
484
484
|
]),
|
|
485
485
|
b(X, {
|
|
486
|
-
icon: g(
|
|
487
|
-
label: g(
|
|
486
|
+
icon: g(R),
|
|
487
|
+
label: g(w).paragraphEditor.numberedList,
|
|
488
488
|
active: t.editor.isActive("orderedList"),
|
|
489
489
|
onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
490
490
|
}, null, 8, [
|
|
@@ -494,8 +494,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
494
494
|
]),
|
|
495
495
|
b(Z),
|
|
496
496
|
b(X, {
|
|
497
|
-
icon: g(
|
|
498
|
-
label: g(
|
|
497
|
+
icon: g(ae),
|
|
498
|
+
label: g(w).paragraphEditor.alignLeft,
|
|
499
499
|
active: t.editor.isActive({ textAlign: "left" }),
|
|
500
500
|
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
501
501
|
}, null, 8, [
|
|
@@ -504,8 +504,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
504
504
|
"active"
|
|
505
505
|
]),
|
|
506
506
|
b(X, {
|
|
507
|
-
icon: g(
|
|
508
|
-
label: g(
|
|
507
|
+
icon: g(oe),
|
|
508
|
+
label: g(w).paragraphEditor.alignCenter,
|
|
509
509
|
active: t.editor.isActive({ textAlign: "center" }),
|
|
510
510
|
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
511
511
|
}, null, 8, [
|
|
@@ -514,8 +514,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
514
514
|
"active"
|
|
515
515
|
]),
|
|
516
516
|
b(X, {
|
|
517
|
-
icon: g(
|
|
518
|
-
label: g(
|
|
517
|
+
icon: g(se),
|
|
518
|
+
label: g(w).paragraphEditor.alignRight,
|
|
519
519
|
active: t.editor.isActive({ textAlign: "right" }),
|
|
520
520
|
onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
521
521
|
}, null, 8, [
|
|
@@ -525,24 +525,24 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
525
525
|
]),
|
|
526
526
|
b(Z),
|
|
527
527
|
b(Q, {
|
|
528
|
-
"model-value":
|
|
529
|
-
options: g(
|
|
530
|
-
label: g(
|
|
528
|
+
"model-value": G(),
|
|
529
|
+
options: g(I),
|
|
530
|
+
label: g(w).paragraphEditor.lineHeight,
|
|
531
531
|
placeholder: "LH",
|
|
532
532
|
"width-class": "tpl:w-16",
|
|
533
|
-
"onUpdate:modelValue":
|
|
533
|
+
"onUpdate:modelValue": K
|
|
534
534
|
}, null, 8, [
|
|
535
535
|
"model-value",
|
|
536
536
|
"options",
|
|
537
537
|
"label"
|
|
538
538
|
]),
|
|
539
539
|
b(Q, {
|
|
540
|
-
"model-value":
|
|
541
|
-
options: g(
|
|
542
|
-
label: g(
|
|
540
|
+
"model-value": N("letterSpacing"),
|
|
541
|
+
options: g(le),
|
|
542
|
+
label: g(w).paragraphEditor.letterSpacing,
|
|
543
543
|
placeholder: "LS",
|
|
544
544
|
"width-class": "tpl:w-20",
|
|
545
|
-
"onUpdate:modelValue":
|
|
545
|
+
"onUpdate:modelValue": q
|
|
546
546
|
}, null, 8, [
|
|
547
547
|
"model-value",
|
|
548
548
|
"options",
|
|
@@ -550,29 +550,29 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
550
550
|
]),
|
|
551
551
|
b(Z),
|
|
552
552
|
b(X, {
|
|
553
|
-
icon: g(
|
|
554
|
-
label: g(
|
|
553
|
+
icon: g(B),
|
|
554
|
+
label: g(w).paragraphEditor.clearFormatting,
|
|
555
555
|
onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
556
556
|
}, null, 8, ["icon", "label"]),
|
|
557
557
|
b(Z),
|
|
558
|
-
b(
|
|
558
|
+
b(de, { onInsert: j }),
|
|
559
559
|
t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
|
|
560
560
|
type: "button",
|
|
561
561
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
562
|
-
"aria-label": g(
|
|
563
|
-
title: g(
|
|
562
|
+
"aria-label": g(w).mergeTag.insert,
|
|
563
|
+
title: g(w).mergeTag.insert,
|
|
564
564
|
onClick: r[15] ||= (e) => i("add-merge-tag")
|
|
565
|
-
}, [b(g(
|
|
565
|
+
}, [b(g(ie), {
|
|
566
566
|
size: 16,
|
|
567
567
|
"stroke-width": 2
|
|
568
|
-
}), a(" " + v(g(
|
|
569
|
-
])], 64)) : (e(), d("div",
|
|
568
|
+
}), a(" " + v(g(w).mergeTag.insert), 1)], 8, Te)], 64)) : p("", !0)
|
|
569
|
+
])], 64)) : (e(), d("div", Ee, [b(g(re), {
|
|
570
570
|
class: "tpl-spinner",
|
|
571
571
|
size: 14,
|
|
572
572
|
"stroke-width": 2
|
|
573
|
-
}), a(" " + v(g(
|
|
573
|
+
}), a(" " + v(g(w).errors.editorLoading), 1)]))], 12, ye)], 8, ["to"])) : p("", !0);
|
|
574
574
|
}
|
|
575
|
-
}),
|
|
575
|
+
}), Oe = { class: "tpl-text-editor-wrapper tpl:relative" }, ke = /* @__PURE__ */ s({
|
|
576
576
|
__name: "ParagraphEditor",
|
|
577
577
|
props: {
|
|
578
578
|
block: {},
|
|
@@ -580,25 +580,25 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
580
580
|
},
|
|
581
581
|
emits: ["done"],
|
|
582
582
|
setup(t, { emit: r }) {
|
|
583
|
-
let i = t, a = r, o =
|
|
583
|
+
let i = t, a = r, o = L(), { editor: s, EditorContent: c, isLoading: l, initError: u, retry: f, showLinkDialog: p, linkUrl: m, linkDialogRef: h, canRequestMergeTag: _, openLinkDialog: v, insertLink: y, removeLink: x, closeLinkDialog: S, handleLinkKeydown: w, handleAddMergeTag: T } = C({
|
|
584
584
|
blockId: () => i.block.id,
|
|
585
585
|
blockContent: () => i.block.content,
|
|
586
586
|
onDone: () => a("done"),
|
|
587
587
|
editorName: "ParagraphEditor",
|
|
588
588
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
589
589
|
let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
|
|
590
|
-
import("./dist-
|
|
591
|
-
import("./dist-
|
|
592
|
-
import("./dist-
|
|
593
|
-
import("./dist-
|
|
594
|
-
import("./dist-
|
|
595
|
-
import("./dist-
|
|
596
|
-
import("./dist-
|
|
597
|
-
import("./dist-
|
|
598
|
-
import("./dist-
|
|
599
|
-
import("./dist-
|
|
600
|
-
import("./dist-
|
|
601
|
-
import("./extensions-
|
|
590
|
+
import("./dist-D8C6jIXM.js").then((e) => e.r),
|
|
591
|
+
import("./dist-BDgf2G-V.js"),
|
|
592
|
+
import("./dist-DXaxGLsw.js"),
|
|
593
|
+
import("./dist-DYO-w_Jf.js"),
|
|
594
|
+
import("./dist-C8wMh_gi.js"),
|
|
595
|
+
import("./dist-CUpJmrjt.js"),
|
|
596
|
+
import("./dist-UK-lbEBc.js"),
|
|
597
|
+
import("./dist-C0jo8wtG.js"),
|
|
598
|
+
import("./dist-DILjuzSv.js"),
|
|
599
|
+
import("./dist-D5lmdi1F.js"),
|
|
600
|
+
import("./dist-BxP6TB0l.js"),
|
|
601
|
+
import("./extensions-Mj2-D8uK.js")
|
|
602
602
|
]);
|
|
603
603
|
return {
|
|
604
604
|
TiptapEditor: a,
|
|
@@ -643,8 +643,8 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
return (r, i) => (e(), d("div",
|
|
647
|
-
b(
|
|
646
|
+
return (r, i) => (e(), d("div", Oe, [
|
|
647
|
+
b(De, {
|
|
648
648
|
editor: g(s),
|
|
649
649
|
"toolbar-position": t.toolbarPosition,
|
|
650
650
|
"is-loading": g(l),
|
|
@@ -672,7 +672,7 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
672
672
|
"init-error",
|
|
673
673
|
"onRetry"
|
|
674
674
|
]),
|
|
675
|
-
b(
|
|
675
|
+
b(N, {
|
|
676
676
|
visible: g(p),
|
|
677
677
|
"is-editing-link": g(s)?.isActive("link") ?? !1,
|
|
678
678
|
"dialog-ref": g(h),
|
|
@@ -697,4 +697,4 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
699
|
//#endregion
|
|
700
|
-
export {
|
|
700
|
+
export { ke as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as x } from "./useI18n-
|
|
2
|
+
import { A as y, O as b } from "./keys-BiQlvx51.js";
|
|
3
|
+
import { t as x } from "./useI18n-Besvmtxy.js";
|
|
4
4
|
import { t as S } from "./createLucideIcon-XgXOJ05E.js";
|
|
5
5
|
import { t as C } from "./x-rcnxRG8Y.js";
|
|
6
|
-
import { t as w } from "./usePopoverRoot-
|
|
6
|
+
import { t as w } from "./usePopoverRoot-CKt956u-.js";
|
|
7
7
|
var T = S("bold", [["path", {
|
|
8
8
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
9
9
|
key: "mg9rjx"
|
|
@@ -59,7 +59,7 @@ var T = S("bold", [["path", {
|
|
|
59
59
|
"keydown"
|
|
60
60
|
], ["update:linkUrl", "update:dialogRef"]),
|
|
61
61
|
setup(n, { emit: i }) {
|
|
62
|
-
let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(
|
|
62
|
+
let a = r(n, "linkUrl"), s = r(n, "dialogRef"), S = i, T = v(b, null), E = v(y, null), D = w(), { t: R } = x();
|
|
63
63
|
return (r, i) => m(D) ? (e(), p(g, {
|
|
64
64
|
key: 0,
|
|
65
65
|
to: m(D)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import {
|
|
4
|
-
import { t as S } from "./useI18n-
|
|
2
|
+
import "./useEditorCore-CEkf_VWX.js";
|
|
3
|
+
import { T as y, j as b, p as x } from "./keys-BiQlvx51.js";
|
|
4
|
+
import { t as S } from "./useI18n-Besvmtxy.js";
|
|
5
5
|
import { t as te } from "./loader-circle-Rz_4vJLH.js";
|
|
6
|
-
import { n as ne } from "./useCloudI18n-
|
|
7
|
-
import { t as C } from "./TplModal-
|
|
6
|
+
import { n as ne } from "./useCloudI18n-DKWJg6rJ.js";
|
|
7
|
+
import { t as C } from "./TplModal-YFpBaiLj.js";
|
|
8
8
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var w = ["aria-busy"], T = {
|
|
10
10
|
id: "tpl-save-module-title",
|
|
@@ -28,7 +28,7 @@ var w = ["aria-busy"], T = {
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["close", "saved"],
|
|
30
30
|
setup(c, { emit: R }) {
|
|
31
|
-
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U =
|
|
31
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = b(x, "SaveModuleDialog"), W = b(y, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
|
|
32
32
|
function X(e, t) {
|
|
33
33
|
let n = e.type;
|
|
34
34
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as e, L as t, M as n, X as r, at as i, b as a, c as o, d as s, f as c, h as l, l as u, m as d, rt as f, st as p, t as m, v as h, z as g } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as _ } from "./dist-
|
|
4
|
-
import { t as v } from "./useI18n-
|
|
2
|
+
import "./useEditorCore-CEkf_VWX.js";
|
|
3
|
+
import { t as _ } from "./dist-CNLAS2v2.js";
|
|
4
|
+
import { t as v } from "./useI18n-Besvmtxy.js";
|
|
5
5
|
import { t as y } from "./createLucideIcon-XgXOJ05E.js";
|
|
6
6
|
import { t as b } from "./chevron-down-DJjo0jSV.js";
|
|
7
7
|
import { t as x } from "./clock-DHl_BIkU.js";
|
|
8
8
|
import { t as S } from "./loader-circle-Rz_4vJLH.js";
|
|
9
|
-
import { n as C } from "./useCloudI18n-
|
|
9
|
+
import { n as C } from "./useCloudI18n-DKWJg6rJ.js";
|
|
10
10
|
import { t as w } from "./formatRelativeTime-CyDg5cDD.js";
|
|
11
11
|
var T = y("chevron-left", [["path", {
|
|
12
12
|
d: "m15 18-6-6 6-6",
|