@templatical/editor 0.21.0 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiFeatureMenu-CPdNpHpZ.js → AiFeatureMenu-CcqQDHzJ.js} +1 -1
- package/dist/{CloudEditor-3a7mqMhe.js → CloudEditor-DOjGJwPe.js} +24 -24
- package/dist/{CollaboratorBar-Ds0YZWzV.js → CollaboratorBar-Bj4NZiie.js} +1 -1
- package/dist/CountdownBlock-J_Q9JRQM.js +91 -0
- package/dist/{ParagraphEditor-CkwBirNl.js → ParagraphEditor--_zWfxps.js} +1 -1
- package/dist/{SaveBlockDialog-Cc5BSUBx.js → SaveBlockDialog-CYIEHABH.js} +3 -3
- package/dist/{SavedBlockPreviewCanvas-ubttfmKr.js → SavedBlockPreviewCanvas-2-mzAnZE.js} +1 -1
- package/dist/{SavedBlocksBrowserModal-LkY_U3lY.js → SavedBlocksBrowserModal-D5V5yF_3.js} +4 -4
- package/dist/{SavedBlocksPanels-CET0zvH6.js → SavedBlocksPanels-Dff38YXu.js} +1 -1
- package/dist/{SavedBlocksPickBar-poGS4PoI.js → SavedBlocksPickBar-rB6iyji6.js} +1 -1
- package/dist/{SnapshotHistory-BvF5IXn1.js → SnapshotHistory-FtzDq8f0.js} +1 -1
- package/dist/{TestEmailModal-BRaM_eko.js → TestEmailModal-DL2O1H8M.js} +2 -2
- package/dist/{TitleEditor-Bhgzh-iQ.js → TitleEditor-CPda5lh-.js} +1 -1
- package/dist/{TplModal-BA-Zsg0O.js → TplModal-C7Koj5gM.js} +1 -1
- package/dist/{blockTypeIcons-B1-Yzp-a.js → blockTypeIcons-CgwECCut.js} +1 -1
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/AiChatSidebar-A1CuWGY0.js +203 -0
- package/dist/cdn/chunks/AiChatSidebar-A1CuWGY0.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu--PdArSnv.js → AiFeatureMenu-Duwg413F.js} +9 -5
- package/dist/cdn/chunks/{AiFeatureMenu--PdArSnv.js.map → AiFeatureMenu-Duwg413F.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DMSd0SIl.js → BlockIssueBadge-Da4yR-mh.js} +7 -5
- package/dist/cdn/chunks/{BlockIssueBadge-DMSd0SIl.js.map → BlockIssueBadge-Da4yR-mh.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DnTfI5GU.js → CloudEditor-C0Y4RD4c.js} +162 -153
- package/dist/cdn/chunks/CloudEditor-C0Y4RD4c.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CBqd7ldq.js → CollaboratorBar-BS3rJy6-.js} +7 -6
- package/dist/cdn/chunks/{CollaboratorBar-CBqd7ldq.js.map → CollaboratorBar-BS3rJy6-.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DCdWP8YB.js → ColorPicker-DZSzZ5ZP.js} +107 -103
- package/dist/cdn/chunks/{ColorPicker-DCdWP8YB.js.map → ColorPicker-DZSzZ5ZP.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-DHdRiGPX.js +412 -0
- package/dist/cdn/chunks/CommentsSidebar-DHdRiGPX.js.map +1 -0
- package/dist/cdn/chunks/CountdownBlock-Bffpoppw.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-BDnWMAME.js.map → CountdownBlock-Bffpoppw.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BbLoo22S.js → CountdownToolbar-DAnmIZjq.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BbLoo22S.js.map → CountdownToolbar-DAnmIZjq.js.map} +1 -1
- package/dist/cdn/chunks/DesignReferenceSidebar-Dre99DTH.js +223 -0
- package/dist/cdn/chunks/DesignReferenceSidebar-Dre99DTH.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-CfudrI3T.js → IssuesPanel-D80JedOj.js} +11 -10
- package/dist/cdn/chunks/{IssuesPanel-CfudrI3T.js.map → IssuesPanel-D80JedOj.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-D-CW2tUa.js +12 -0
- package/dist/cdn/chunks/LoadingTrack-D-CW2tUa.js.map +1 -0
- package/dist/cdn/chunks/{NumberWithSuffix-BmMx9_n_.js → NumberWithSuffix-CjlVNIEe.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BmMx9_n_.js.map → NumberWithSuffix-CjlVNIEe.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DPCUSXpx.js → ParagraphEditor-CtaRa1vr.js} +73 -68
- package/dist/cdn/chunks/{ParagraphEditor-DPCUSXpx.js.map → ParagraphEditor-CtaRa1vr.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-B8dOiv_D.js → RichTextEditorContent-BbdgJqWM.js} +9 -6
- package/dist/cdn/chunks/{RichTextEditorContent-B8dOiv_D.js.map → RichTextEditorContent-BbdgJqWM.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-BY3SMnNV.js → SaveBlockDialog-Bb3fdUEZ.js} +30 -26
- package/dist/cdn/chunks/{SaveBlockDialog-BY3SMnNV.js.map → SaveBlockDialog-Bb3fdUEZ.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-LpaOcusq.js → SavedBlockPreviewCanvas-DZOMgNsz.js} +33 -32
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-LpaOcusq.js.map → SavedBlockPreviewCanvas-DZOMgNsz.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CfIcmyzF.js → SavedBlocksBrowserModal-CeUWcPv0.js} +14 -10
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CfIcmyzF.js.map → SavedBlocksBrowserModal-CeUWcPv0.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-kIowCfh_.js → SavedBlocksPanels-D-pA_wfk.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-kIowCfh_.js.map → SavedBlocksPanels-D-pA_wfk.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-WSGe1GiZ.js → SavedBlocksPickBar-1rf1KpqS.js} +6 -4
- package/dist/cdn/chunks/{SavedBlocksPickBar-WSGe1GiZ.js.map → SavedBlocksPickBar-1rf1KpqS.js.map} +1 -1
- package/dist/cdn/chunks/SnapshotHistory-Bf1uovti.js +121 -0
- package/dist/cdn/chunks/SnapshotHistory-Bf1uovti.js.map +1 -0
- package/dist/cdn/chunks/TemplateScoringPanel-CTk8WwxU.js +231 -0
- package/dist/cdn/chunks/TemplateScoringPanel-CTk8WwxU.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js +96 -0
- package/dist/cdn/chunks/TestEmailModal-BJTDxFHh.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-iwd-O9sO.js → TitleEditor-BJ7LFykI.js} +15 -12
- package/dist/cdn/chunks/{TitleEditor-iwd-O9sO.js.map → TitleEditor-BJ7LFykI.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CH9RzKF7.js +50 -0
- package/dist/cdn/chunks/TplModal-CH9RzKF7.js.map +1 -0
- package/dist/cdn/chunks/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +21 -0
- package/dist/cdn/chunks/{blockTypeIcons-BYz0fgLz.js.map → blockTypeIcons-etMMQoVv.js.map} +1 -1
- package/dist/cdn/chunks/cloud-BJlbXGTJ.js +1787 -0
- package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +1 -0
- package/dist/cdn/chunks/dist-CiBEt0VR.js +163 -0
- package/dist/cdn/chunks/dist-CiBEt0VR.js.map +1 -0
- package/dist/cdn/chunks/dist-CxTt8FRE.js +403 -0
- package/dist/cdn/chunks/dist-CxTt8FRE.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DeJh3E9b.js → extensions-ZX2oarW6.js} +17 -15
- package/dist/cdn/chunks/{extensions-DeJh3E9b.js.map → extensions-ZX2oarW6.js.map} +1 -1
- package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js +12 -0
- package/dist/cdn/chunks/formatRelativeTime-CtUU-QZ8.js.map +1 -0
- package/dist/cdn/chunks/htmlparser-CZa2V5cF.js +1008 -0
- package/dist/cdn/chunks/htmlparser-CZa2V5cF.js.map +1 -0
- package/dist/cdn/chunks/icons-CYWw8Xfp.js +1190 -0
- package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +1 -0
- package/dist/cdn/chunks/keys-D7kUmfpE.js +12 -0
- package/dist/cdn/chunks/keys-D7kUmfpE.js.map +1 -0
- package/dist/cdn/chunks/src-BKI1x1k7.js +546 -0
- package/dist/cdn/chunks/src-BKI1x1k7.js.map +1 -0
- package/dist/cdn/chunks/{renderer-Yg1XhsBN.js → src-BuC_IHzN.js} +118 -134
- package/dist/cdn/chunks/src-BuC_IHzN.js.map +1 -0
- package/dist/cdn/chunks/src-CM0gCvAS.js +1176 -0
- package/dist/cdn/chunks/src-CM0gCvAS.js.map +1 -0
- package/dist/cdn/chunks/{media-library-mCCZieYO.js → src-D6F_3XkE.js} +1782 -1280
- package/dist/cdn/chunks/src-D6F_3XkE.js.map +1 -0
- package/dist/cdn/chunks/{styles-Bp5Jsu9J.js → styles-DMOEiSX9.js} +867 -859
- package/dist/cdn/chunks/styles-DMOEiSX9.js.map +1 -0
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js +6 -0
- package/dist/cdn/chunks/timeouts-Bmi_yePw.js.map +1 -0
- package/dist/cdn/chunks/useAliveFlag-aanU8uqB.js +12 -0
- package/dist/cdn/chunks/useAliveFlag-aanU8uqB.js.map +1 -0
- package/dist/cdn/chunks/useCloudI18n-BjNENqkM.js +25 -0
- package/dist/cdn/chunks/useCloudI18n-BjNENqkM.js.map +1 -0
- package/dist/cdn/chunks/useEditorCore-BA6mspzD.js +3019 -0
- package/dist/cdn/chunks/useEditorCore-BA6mspzD.js.map +1 -0
- package/dist/cdn/chunks/useI18n-8Wd7G-cq.js +19 -0
- package/dist/cdn/chunks/useI18n-8Wd7G-cq.js.map +1 -0
- package/dist/cdn/chunks/useMergeTag-C7G31KV-.js +46 -0
- package/dist/cdn/chunks/useMergeTag-C7G31KV-.js.map +1 -0
- package/dist/cdn/chunks/usePopoverPosition-Bx0QewTv.js +61 -0
- package/dist/cdn/chunks/usePopoverPosition-Bx0QewTv.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +72 -69
- package/dist/cdn/editor.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DIDAJdkj.js → styles-PcOPXvLO.js} +547 -549
- package/dist/templatical-editor.js +5 -5
- package/dist/{useEditorCore-Bd9CA4L_.js → useEditorCore-CT1slufs.js} +3 -3
- package/package.json +7 -7
- package/dist/CountdownBlock-BUHYIAe9.js +0 -92
- package/dist/cdn/chunks/CloudEditor-DnTfI5GU.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-BDnWMAME.js +0 -93
- package/dist/cdn/chunks/blockTypeIcons-BYz0fgLz.js +0 -22
- package/dist/cdn/chunks/features-pLfGJWIB.js +0 -7813
- package/dist/cdn/chunks/features-pLfGJWIB.js.map +0 -1
- package/dist/cdn/chunks/icons-FLemooQz.js +0 -690
- package/dist/cdn/chunks/icons-FLemooQz.js.map +0 -1
- package/dist/cdn/chunks/media-library-mCCZieYO.js.map +0 -1
- package/dist/cdn/chunks/quality-BRbHtAk1.js +0 -2180
- package/dist/cdn/chunks/quality-BRbHtAk1.js.map +0 -1
- package/dist/cdn/chunks/renderer-Yg1XhsBN.js.map +0 -1
- package/dist/cdn/chunks/src-BDJeYiVE.js +0 -509
- package/dist/cdn/chunks/src-BDJeYiVE.js.map +0 -1
- package/dist/cdn/chunks/styles-Bp5Jsu9J.js.map +0 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { K as e, L as t, M as n, P as r, T as i, Z as a, c as o, ct as s, d as c, f as l, g as u, h as d, it as f, l as p, m, ot as h, p as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-D840DIZB.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-BA6mspzD.js";
|
|
3
|
+
import { t as E } from "./dist-CxTt8FRE.js";
|
|
4
|
+
import { B as D, D as O, L as k, _ as ee, h as te, w as ne, z as re } from "./keys-D7kUmfpE.js";
|
|
5
|
+
import { t as A } from "./useI18n-8Wd7G-cq.js";
|
|
6
|
+
import { n as j } from "./usePopoverPosition-Bx0QewTv.js";
|
|
7
|
+
import { It as ie, L as ae, N as oe, T as M, _ as se, at as ce, b as le, h as ue, it as de, l as fe, lt as pe, m as me, p as he, rt as ge, st as _e, y as ve, zt as ye } from "./icons-CYWw8Xfp.js";
|
|
8
|
+
import { t as N } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
+
import { c as P, o as be, r as xe, s as Se, t as F } from "./ColorPicker-DZSzZ5ZP.js";
|
|
10
|
+
import { n as I, t as L } from "./RichTextEditorContent-BbdgJqWM.js";
|
|
6
11
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
7
12
|
var R = [
|
|
8
13
|
"aria-label",
|
|
@@ -12,8 +17,8 @@ var R = [
|
|
|
12
17
|
__name: "EmojiPickerDropdown",
|
|
13
18
|
emits: ["insert"],
|
|
14
19
|
setup(e, { emit: t }) {
|
|
15
|
-
let i = t, { categories: c, isOpen: m, toggle: _, close: y } =
|
|
16
|
-
|
|
20
|
+
let i = t, { categories: c, isOpen: m, toggle: _, close: y } = C(), { t: b, format: w } = A(), T = a(null), D = a(null);
|
|
21
|
+
S(T, l(() => m.value)), E(D, () => {
|
|
17
22
|
m.value && y();
|
|
18
23
|
});
|
|
19
24
|
function O(e) {
|
|
@@ -21,7 +26,7 @@ var R = [
|
|
|
21
26
|
}
|
|
22
27
|
return (e, t) => (n(), u("div", {
|
|
23
28
|
ref_key: "rootRef",
|
|
24
|
-
ref:
|
|
29
|
+
ref: D,
|
|
25
30
|
class: "tpl:relative"
|
|
26
31
|
}, [g("button", {
|
|
27
32
|
type: "button",
|
|
@@ -32,14 +37,14 @@ var R = [
|
|
|
32
37
|
"aria-haspopup": "dialog",
|
|
33
38
|
"aria-controls": "tpl-emoji-picker",
|
|
34
39
|
onClick: t[0] ||= (...e) => f(_) && f(_)(...e)
|
|
35
|
-
}, [x(f(
|
|
40
|
+
}, [x(f(M), {
|
|
36
41
|
size: 16,
|
|
37
42
|
"stroke-width": 2
|
|
38
43
|
})], 10, R), f(m) ? (n(), u("div", {
|
|
39
44
|
key: 0,
|
|
40
45
|
id: "tpl-emoji-picker",
|
|
41
46
|
ref_key: "pickerRef",
|
|
42
|
-
ref:
|
|
47
|
+
ref: T,
|
|
43
48
|
role: "dialog",
|
|
44
49
|
"aria-modal": "false",
|
|
45
50
|
"aria-label": f(b).paragraphEditor.insertEmoji,
|
|
@@ -52,7 +57,7 @@ var R = [
|
|
|
52
57
|
}, [g("div", B, s(f(b).emoji[e.key]), 1), g("div", V, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
|
|
53
58
|
key: e,
|
|
54
59
|
type: "button",
|
|
55
|
-
"aria-label": f(
|
|
60
|
+
"aria-label": f(w)(f(b).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
56
61
|
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)]",
|
|
57
62
|
onClick: (t) => O(e)
|
|
58
63
|
}, s(e), 9, H))), 128))])]))), 128))], 40, z)) : d("", !0)], 512));
|
|
@@ -89,7 +94,7 @@ var R = [
|
|
|
89
94
|
function q(e, t) {
|
|
90
95
|
return n(), u("span", K);
|
|
91
96
|
}
|
|
92
|
-
var J = /*#__PURE__*/
|
|
97
|
+
var J = /*#__PURE__*/ N(G, [["render", q]]), Y = [
|
|
93
98
|
"value",
|
|
94
99
|
"aria-label",
|
|
95
100
|
"title"
|
|
@@ -133,7 +138,7 @@ function Q(e, t) {
|
|
|
133
138
|
}
|
|
134
139
|
//#endregion
|
|
135
140
|
//#region src/components/blocks/ParagraphToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
136
|
-
var
|
|
141
|
+
var $ = ["data-tpl-theme", "aria-label"], Te = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ee = { class: "tpl:flex tpl:items-center tpl:gap-1" }, De = ["aria-label", "title"], Oe = ["aria-label", "title"], ke = {
|
|
137
142
|
key: 1,
|
|
138
143
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
139
144
|
}, Ae = /* @__PURE__ */ b({
|
|
@@ -151,7 +156,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
151
156
|
"add-logic-tag"
|
|
152
157
|
],
|
|
153
158
|
setup(e, { emit: t }) {
|
|
154
|
-
let r = e, a = t, o = i(
|
|
159
|
+
let r = e, a = t, o = i(k, null), p = i(re, null), h = D(ee, "ParagraphToolbar"), b = j(), S = i(O, null), C = i(ne, null), w = i(te, null), T = l(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: E } = A(), M = h.fonts;
|
|
155
160
|
function N(e) {
|
|
156
161
|
r.editor?.chain().focus().insertContent(e).run();
|
|
157
162
|
}
|
|
@@ -177,7 +182,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
177
182
|
t && (z() ? (t.extendMarkRange("link").updateAttributes("link", { color: e || null }), e && t.unsetColor(), t.run()) : e ? t.setColor(e).updateAttributes("link", { color: e }).run() : t.unsetColor().run());
|
|
178
183
|
}
|
|
179
184
|
function H() {
|
|
180
|
-
let e =
|
|
185
|
+
let e = w?.content.value.settings;
|
|
181
186
|
return z() ? Q(B(), e?.linkColor || e?.textColor) : Q(I("color"), e?.textColor);
|
|
182
187
|
}
|
|
183
188
|
function U() {
|
|
@@ -201,13 +206,13 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
201
206
|
let t = r.editor?.chain().focus();
|
|
202
207
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
203
208
|
}
|
|
204
|
-
return (t, r) => f(b) && !
|
|
209
|
+
return (t, r) => f(b) && !T.value ? (n(), m(c, {
|
|
205
210
|
key: 0,
|
|
206
211
|
to: f(b)
|
|
207
212
|
}, [g("div", {
|
|
208
213
|
"data-tpl-theme": f(p),
|
|
209
214
|
role: "toolbar",
|
|
210
|
-
"aria-label": f(
|
|
215
|
+
"aria-label": f(E).paragraphEditor.toolbar,
|
|
211
216
|
class: "tpl tpl-text-toolbar tpl:absolute 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",
|
|
212
217
|
style: _({
|
|
213
218
|
...f(o),
|
|
@@ -216,12 +221,12 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
216
221
|
transform: "translateY(-100%)",
|
|
217
222
|
flexDirection: "column"
|
|
218
223
|
})
|
|
219
|
-
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div",
|
|
224
|
+
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [g("div", Te, [
|
|
220
225
|
x(Z, {
|
|
221
226
|
"model-value": I("fontFamily"),
|
|
222
227
|
options: f(M),
|
|
223
|
-
label: f(
|
|
224
|
-
placeholder: f(
|
|
228
|
+
label: f(E).paragraphEditor.fontFamily,
|
|
229
|
+
placeholder: f(E).paragraphEditor.defaultFont,
|
|
225
230
|
"width-class": "tpl:w-32",
|
|
226
231
|
"onUpdate:modelValue": L
|
|
227
232
|
}, null, 8, [
|
|
@@ -233,8 +238,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
233
238
|
x(Z, {
|
|
234
239
|
"model-value": I("fontSize"),
|
|
235
240
|
options: f(be),
|
|
236
|
-
label: f(
|
|
237
|
-
placeholder: f(
|
|
241
|
+
label: f(E).paragraphEditor.fontSize,
|
|
242
|
+
placeholder: f(E).paragraphEditor.defaultSize,
|
|
238
243
|
"width-class": "tpl:w-20",
|
|
239
244
|
"onUpdate:modelValue": R
|
|
240
245
|
}, null, 8, [
|
|
@@ -250,7 +255,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
250
255
|
"data-testid": "text-color-picker",
|
|
251
256
|
"model-value": U(),
|
|
252
257
|
"seed-color": H(),
|
|
253
|
-
"aria-label": f(
|
|
258
|
+
"aria-label": f(E).paragraphEditor.textColor,
|
|
254
259
|
"onUpdate:modelValue": V
|
|
255
260
|
}, null, 8, [
|
|
256
261
|
"model-value",
|
|
@@ -263,7 +268,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
263
268
|
"data-testid": "highlight-color-picker",
|
|
264
269
|
"model-value": Y(),
|
|
265
270
|
"seed-color": f(xe),
|
|
266
|
-
"aria-label": f(
|
|
271
|
+
"aria-label": f(E).paragraphEditor.highlightColor,
|
|
267
272
|
"onUpdate:modelValue": X
|
|
268
273
|
}, null, 8, [
|
|
269
274
|
"model-value",
|
|
@@ -272,8 +277,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
272
277
|
]),
|
|
273
278
|
x(J),
|
|
274
279
|
x(W, {
|
|
275
|
-
icon: f(
|
|
276
|
-
label: f(
|
|
280
|
+
icon: f(ye),
|
|
281
|
+
label: f(E).paragraphEditor.bold,
|
|
277
282
|
active: e.editor.isActive("bold"),
|
|
278
283
|
"stroke-width": 2.5,
|
|
279
284
|
onClick: r[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
@@ -283,8 +288,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
283
288
|
"active"
|
|
284
289
|
]),
|
|
285
290
|
x(W, {
|
|
286
|
-
icon: f(
|
|
287
|
-
label: f(
|
|
291
|
+
icon: f(pe),
|
|
292
|
+
label: f(E).paragraphEditor.italic,
|
|
288
293
|
active: e.editor.isActive("italic"),
|
|
289
294
|
onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
290
295
|
}, null, 8, [
|
|
@@ -293,8 +298,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
293
298
|
"active"
|
|
294
299
|
]),
|
|
295
300
|
x(W, {
|
|
296
|
-
icon: f(
|
|
297
|
-
label: f(
|
|
301
|
+
icon: f(fe),
|
|
302
|
+
label: f(E).paragraphEditor.underline,
|
|
298
303
|
active: e.editor.isActive("underline"),
|
|
299
304
|
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
300
305
|
}, null, 8, [
|
|
@@ -303,8 +308,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
303
308
|
"active"
|
|
304
309
|
]),
|
|
305
310
|
x(W, {
|
|
306
|
-
icon: f(
|
|
307
|
-
label: f(
|
|
311
|
+
icon: f(ve),
|
|
312
|
+
label: f(E).paragraphEditor.strikethrough,
|
|
308
313
|
active: e.editor.isActive("strike"),
|
|
309
314
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
310
315
|
}, null, 8, [
|
|
@@ -314,8 +319,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
314
319
|
]),
|
|
315
320
|
x(J),
|
|
316
321
|
x(W, {
|
|
317
|
-
icon: f(
|
|
318
|
-
label: f(
|
|
322
|
+
icon: f(le),
|
|
323
|
+
label: f(E).paragraphEditor.subscript,
|
|
319
324
|
active: e.editor.isActive("subscript"),
|
|
320
325
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
321
326
|
}, null, 8, [
|
|
@@ -324,8 +329,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
324
329
|
"active"
|
|
325
330
|
]),
|
|
326
331
|
x(W, {
|
|
327
|
-
icon: f(
|
|
328
|
-
label: f(
|
|
332
|
+
icon: f(se),
|
|
333
|
+
label: f(E).paragraphEditor.superscript,
|
|
329
334
|
active: e.editor.isActive("superscript"),
|
|
330
335
|
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
331
336
|
}, null, 8, [
|
|
@@ -335,8 +340,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
335
340
|
]),
|
|
336
341
|
x(J),
|
|
337
342
|
x(W, {
|
|
338
|
-
icon: f(
|
|
339
|
-
label: f(
|
|
343
|
+
icon: f(_e),
|
|
344
|
+
label: f(E).paragraphEditor.addLink,
|
|
340
345
|
active: e.editor.isActive("link"),
|
|
341
346
|
onClick: r[6] ||= (e) => a("open-link-dialog")
|
|
342
347
|
}, null, 8, [
|
|
@@ -346,8 +351,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
346
351
|
])
|
|
347
352
|
]), g("div", Ee, [
|
|
348
353
|
x(W, {
|
|
349
|
-
icon: f(
|
|
350
|
-
label: f(
|
|
354
|
+
icon: f(de),
|
|
355
|
+
label: f(E).paragraphEditor.bulletList,
|
|
351
356
|
active: e.editor.isActive("bulletList"),
|
|
352
357
|
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
353
358
|
}, null, 8, [
|
|
@@ -356,8 +361,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
356
361
|
"active"
|
|
357
362
|
]),
|
|
358
363
|
x(W, {
|
|
359
|
-
icon: f(
|
|
360
|
-
label: f(
|
|
364
|
+
icon: f(ce),
|
|
365
|
+
label: f(E).paragraphEditor.numberedList,
|
|
361
366
|
active: e.editor.isActive("orderedList"),
|
|
362
367
|
onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
363
368
|
}, null, 8, [
|
|
@@ -367,8 +372,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
367
372
|
]),
|
|
368
373
|
x(J),
|
|
369
374
|
x(W, {
|
|
370
|
-
icon: f(
|
|
371
|
-
label: f(
|
|
375
|
+
icon: f(he),
|
|
376
|
+
label: f(E).paragraphEditor.alignLeft,
|
|
372
377
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
373
378
|
onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
374
379
|
}, null, 8, [
|
|
@@ -377,8 +382,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
377
382
|
"active"
|
|
378
383
|
]),
|
|
379
384
|
x(W, {
|
|
380
|
-
icon: f(
|
|
381
|
-
label: f(
|
|
385
|
+
icon: f(ue),
|
|
386
|
+
label: f(E).paragraphEditor.alignCenter,
|
|
382
387
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
383
388
|
onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
384
389
|
}, null, 8, [
|
|
@@ -387,8 +392,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
387
392
|
"active"
|
|
388
393
|
]),
|
|
389
394
|
x(W, {
|
|
390
|
-
icon: f(
|
|
391
|
-
label: f(
|
|
395
|
+
icon: f(me),
|
|
396
|
+
label: f(E).paragraphEditor.alignRight,
|
|
392
397
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
393
398
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
394
399
|
}, null, 8, [
|
|
@@ -400,7 +405,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
400
405
|
x(Z, {
|
|
401
406
|
"model-value": G(),
|
|
402
407
|
options: f(P),
|
|
403
|
-
label: f(
|
|
408
|
+
label: f(E).paragraphEditor.lineHeight,
|
|
404
409
|
placeholder: "LH",
|
|
405
410
|
"width-class": "tpl:w-16",
|
|
406
411
|
"onUpdate:modelValue": K
|
|
@@ -412,7 +417,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
412
417
|
x(Z, {
|
|
413
418
|
"model-value": I("letterSpacing"),
|
|
414
419
|
options: f(Se),
|
|
415
|
-
label: f(
|
|
420
|
+
label: f(E).paragraphEditor.letterSpacing,
|
|
416
421
|
placeholder: "LS",
|
|
417
422
|
"width-class": "tpl:w-20",
|
|
418
423
|
"onUpdate:modelValue": q
|
|
@@ -423,8 +428,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
423
428
|
]),
|
|
424
429
|
x(J),
|
|
425
430
|
x(W, {
|
|
426
|
-
icon: f(
|
|
427
|
-
label: f(
|
|
431
|
+
icon: f(ae),
|
|
432
|
+
label: f(E).paragraphEditor.clearFormatting,
|
|
428
433
|
onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
429
434
|
}, null, 8, ["icon", "label"]),
|
|
430
435
|
x(J),
|
|
@@ -432,29 +437,29 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
432
437
|
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(J), g("button", {
|
|
433
438
|
type: "button",
|
|
434
439
|
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)]",
|
|
435
|
-
"aria-label": f(
|
|
436
|
-
title: f(
|
|
440
|
+
"aria-label": f(E).mergeTag.insert,
|
|
441
|
+
title: f(E).mergeTag.insert,
|
|
437
442
|
onClick: r[13] ||= (e) => a("add-merge-tag")
|
|
438
|
-
}, [x(f(
|
|
443
|
+
}, [x(f(oe), {
|
|
439
444
|
size: 16,
|
|
440
445
|
"stroke-width": 2
|
|
441
|
-
}), y(" " + s(f(
|
|
446
|
+
}), y(" " + s(f(E).mergeTag.insertShort), 1)], 8, De)], 64)) : d("", !0),
|
|
442
447
|
e.canInsertLogicTag ? (n(), u(v, { key: 1 }, [x(J), g("button", {
|
|
443
448
|
type: "button",
|
|
444
449
|
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)]",
|
|
445
|
-
"aria-label": f(
|
|
446
|
-
title: f(
|
|
450
|
+
"aria-label": f(E).logicTag.insert,
|
|
451
|
+
title: f(E).logicTag.insert,
|
|
447
452
|
"data-testid": "insert-logic-button",
|
|
448
453
|
onClick: r[14] ||= (e) => a("add-logic-tag")
|
|
449
|
-
}, [x(f(
|
|
454
|
+
}, [x(f(ie), {
|
|
450
455
|
size: 16,
|
|
451
456
|
"stroke-width": 2
|
|
452
|
-
}), y(" " + s(f(
|
|
453
|
-
])], 64)) : (n(), u("div", ke, [x(f(
|
|
457
|
+
}), y(" " + s(f(E).logicTag.insertShort), 1)], 8, Oe)], 64)) : d("", !0)
|
|
458
|
+
])], 64)) : (n(), u("div", ke, [x(f(ge), {
|
|
454
459
|
class: "tpl-spinner",
|
|
455
460
|
size: 14,
|
|
456
461
|
"stroke-width": 2
|
|
457
|
-
}), y(" " + s(f(
|
|
462
|
+
}), y(" " + s(f(E).errors.editorLoading), 1)]))], 12, $)], 8, ["to"])) : d("", !0);
|
|
458
463
|
}
|
|
459
464
|
}), je = { class: "tpl-text-editor-wrapper tpl:relative" }, Me = /* @__PURE__ */ b({
|
|
460
465
|
__name: "ParagraphEditor",
|
|
@@ -464,7 +469,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
464
469
|
},
|
|
465
470
|
emits: ["done"],
|
|
466
471
|
setup(t, { emit: r }) {
|
|
467
|
-
let i = t, a = r, o =
|
|
472
|
+
let i = t, a = r, o = j(), { editor: s, EditorContent: c, isLoading: l, initError: d, retry: p, showLinkDialog: m, linkUrl: h, linkColor: g, linkDialogRef: _, canRequestMergeTag: v, canInsertLogicTag: y, openLinkDialog: b, insertLink: S, removeLink: C, closeLinkDialog: E, handleLinkKeydown: D, handleAddMergeTag: O, handleAddLogicTag: k } = T({
|
|
468
473
|
blockId: () => i.block.id,
|
|
469
474
|
blockContent: () => i.block.content,
|
|
470
475
|
onDone: () => a("done"),
|
|
@@ -482,7 +487,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
482
487
|
import("./tiptap-BMZ-OENR.js").then((e) => e.f),
|
|
483
488
|
import("./tiptap-BMZ-OENR.js").then((e) => e.d),
|
|
484
489
|
import("./tiptap-BMZ-OENR.js").then((e) => e.u),
|
|
485
|
-
import("./extensions-
|
|
490
|
+
import("./extensions-ZX2oarW6.js")
|
|
486
491
|
]);
|
|
487
492
|
return {
|
|
488
493
|
TiptapEditor: a,
|
|
@@ -499,7 +504,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
499
504
|
u,
|
|
500
505
|
d,
|
|
501
506
|
f,
|
|
502
|
-
|
|
507
|
+
w(l).configure({
|
|
503
508
|
openOnClick: !1,
|
|
504
509
|
HTMLAttributes: {
|
|
505
510
|
target: "_blank",
|
|
@@ -538,7 +543,7 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
538
543
|
"can-insert-logic-tag": f(y),
|
|
539
544
|
onOpenLinkDialog: f(b),
|
|
540
545
|
onAddMergeTag: f(O),
|
|
541
|
-
onAddLogicTag: f(
|
|
546
|
+
onAddLogicTag: f(k)
|
|
542
547
|
}, null, 8, [
|
|
543
548
|
"editor",
|
|
544
549
|
"toolbar-position",
|
|
@@ -572,8 +577,8 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
572
577
|
"link-color": f(g),
|
|
573
578
|
"onUpdate:linkColor": i[2] ||= (t) => e(g) ? g.value = t : null,
|
|
574
579
|
onClose: f(E),
|
|
575
|
-
onInsert: f(
|
|
576
|
-
onRemove: f(
|
|
580
|
+
onInsert: f(S),
|
|
581
|
+
onRemove: f(C),
|
|
577
582
|
onKeydown: f(D)
|
|
578
583
|
}, null, 8, [
|
|
579
584
|
"visible",
|
|
@@ -592,4 +597,4 @@ var Te = ["data-tpl-theme", "aria-label"], $ = { class: "tpl:flex tpl:items-cent
|
|
|
592
597
|
//#endregion
|
|
593
598
|
export { Me as default };
|
|
594
599
|
|
|
595
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
600
|
+
//# sourceMappingURL=ParagraphEditor-CtaRa1vr.js.map
|