@templatical/editor 0.17.1 → 0.19.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-LxCHMdcj.js → AiChatSidebar-DAQTFuvi.js} +2 -2
- package/dist/{AiFeatureMenu-Cr8pLXMj.js → AiFeatureMenu-aFSO20PR.js} +3 -3
- package/dist/{BlockIssueBadge-BQ1yB1me.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
- package/dist/{CloudEditor-qzoNS8K4.js → CloudEditor-D0K-m1GA.js} +15 -13
- package/dist/{CollaboratorBar-BkfR0CyD.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
- package/dist/ColorPicker-BsgpTJqK.js +552 -0
- package/dist/{CommentsSidebar-Cl93TN96.js → CommentsSidebar-BYMVucZh.js} +4 -4
- package/dist/{CountdownBlock-DbXfzwae.js → CountdownBlock-Bn5w7C-p.js} +1 -1
- package/dist/{CountdownToolbar-BqaMWRyB.js → CountdownToolbar-PJI3ffi1.js} +3 -3
- package/dist/{DesignReferenceSidebar-jVrdS8wW.js → DesignReferenceSidebar-QfAV8XT9.js} +13 -14
- package/dist/{IssuesPanel-Bq3yXg6M.js → IssuesPanel-CTjRgz8w.js} +2 -2
- package/dist/{ModuleBrowserModal-XEHfEO0O.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
- package/dist/{ModulePreviewCanvas-BM8XUgbc.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
- package/dist/{NumberWithSuffix-9FG7mNnn.js → NumberWithSuffix-D3BKz66W.js} +1 -1
- package/dist/{ParagraphEditor-Cs47wU1V.js → ParagraphEditor-Cf75UfSo.js} +42 -42
- package/dist/{RichTextEditorContent-DCzmVeyb.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
- package/dist/{SaveModuleDialog-BgOS9vCQ.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
- package/dist/{SnapshotHistory-CLfYzwv9.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
- package/dist/{TemplateScoringPanel-CMrfa9Rd.js → TemplateScoringPanel-DikuKc6i.js} +3 -3
- package/dist/{TestEmailModal-DTLfATNt.js → TestEmailModal-BW8aTtzf.js} +3 -3
- package/dist/{TitleEditor-Bq9S0C8Z.js → TitleEditor-CCUkbRN0.js} +7 -7
- package/dist/{TplModal-BW0FAtYe.js → TplModal-DoOwUKlT.js} +3 -3
- package/dist/{blockTypeIcons-CvSfLeyV.js → blockTypeIcons-BlPKjD7M.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Da-aSmw5.js → CloudEditor-Dufl354p.js} +132 -130
- package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js → CollaboratorBar-xsU20iPl.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
- package/dist/{ColorPicker-DfzDyNKe.js → cdn/chunks/ColorPicker-y_obnw4o.js} +234 -157
- package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js → CountdownBlock-sHsRMe1q.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js → IssuesPanel-DF5Ajuna.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js → ParagraphEditor-BkafKSju.js} +107 -107
- package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js → RichTextEditorContent-BthhzOZS.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js → TitleEditor-DLv9cXba.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js → blockTypeIcons-B0uibGX7.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js.map → blockTypeIcons-B0uibGX7.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
- package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
- package/dist/cdn/chunks/{de-ZaffrKDP.js → de-CgGOnerg.js} +3 -2
- package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
- package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
- package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
- package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
- package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CiewgCtw.js → extensions-DLHvZ0UH.js} +19 -19
- package/dist/cdn/chunks/{extensions-CiewgCtw.js.map → extensions-DLHvZ0UH.js.map} +1 -1
- package/dist/cdn/chunks/{features-DLu_D-6j.js → features-Cnfv4QAY.js} +1442 -1295
- package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
- package/dist/cdn/chunks/{icons-B03IY-pm.js → icons-DbcM69bb.js} +2 -2
- package/dist/cdn/chunks/{icons-B03IY-pm.js.map → icons-DbcM69bb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CYF18RNk.js → media-library-DpSMwHd4.js} +524 -524
- package/dist/cdn/chunks/{media-library-CYF18RNk.js.map → media-library-DpSMwHd4.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
- package/dist/cdn/chunks/{quality-LmsngN2B.js → quality-D9QqkRcU.js} +77 -77
- package/dist/cdn/chunks/{quality-LmsngN2B.js.map → quality-D9QqkRcU.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DAeNIQqa.js → renderer-BsLQZNXU.js} +14 -14
- package/dist/cdn/chunks/{renderer-DAeNIQqa.js.map → renderer-BsLQZNXU.js.map} +1 -1
- package/dist/cdn/chunks/{src-CModhUDN.js → src-zu1ehVNN.js} +6 -6
- package/dist/cdn/chunks/{src-CModhUDN.js.map → src-zu1ehVNN.js.map} +1 -1
- package/dist/cdn/chunks/{styles-hd_LBGaF.js → styles-Dx-jXeCd.js} +184 -184
- package/dist/cdn/chunks/{styles-hd_LBGaF.js.map → styles-Dx-jXeCd.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +55 -52
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
- package/dist/{de-ZaffrKDP.js → de-CgGOnerg.js} +2 -1
- package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
- package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
- package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
- package/dist/{extensions-DhgbhfBX.js → extensions-BCA9pyer.js} +11 -11
- package/dist/index.d.ts +68 -0
- package/dist/keys-DFaIbGR8.js +10 -0
- package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
- package/dist/style.css +1 -1
- package/dist/{styles-BWC0jc5-.js → styles-64uLkPJV.js} +136 -136
- package/dist/templatical-editor.js +15 -12
- package/dist/{upload-BKg6hDRW.js → upload-y4gxiFp5.js} +3 -2
- package/dist/{useCloudI18n-CIKI0hCd.js → useCloudI18n-PCDOC2kz.js} +1 -1
- package/dist/{useEditorCore-FLMIhtv1.js → useEditorCore-ea9OrrH3.js} +870 -764
- package/dist/{useI18n-0EU_JVe7.js → useI18n-BNMzZTM5.js} +1 -1
- package/dist/{useMergeTag-C7v6MVah.js → useMergeTag-DfEY0eK5.js} +5 -5
- package/dist/{usePopoverPosition-BDqqnMeo.js → usePopoverPosition-F9STHRIr.js} +33 -6
- package/package.json +7 -7
- package/dist/cdn/chunks/CloudEditor-Da-aSmw5.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-O6xXCPEg.js +0 -471
- package/dist/cdn/chunks/ColorPicker-O6xXCPEg.js.map +0 -1
- package/dist/cdn/chunks/features-DLu_D-6j.js.map +0 -1
- package/dist/keys-WVNarXg8.js +0 -10
- package/dist/timeouts-Bmi_yePw.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as v } from "./useI18n-
|
|
2
|
+
import { I as g, h as _ } from "./keys-DFaIbGR8.js";
|
|
3
|
+
import { t as v } from "./useI18n-BNMzZTM5.js";
|
|
4
4
|
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
5
|
import { t as b } from "./circle-alert-Bhzm-fNA.js";
|
|
6
6
|
import { t as x } from "./info-BNP8yGsK.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as oe } from "./useI18n-
|
|
6
|
-
import { n as se, r as y, t as b } from "./blockTypeIcons-
|
|
3
|
+
import "./useEditorCore-ea9OrrH3.js";
|
|
4
|
+
import { B as v, P as ie, h as ae } from "./keys-DFaIbGR8.js";
|
|
5
|
+
import { t as oe } from "./useI18n-BNMzZTM5.js";
|
|
6
|
+
import { n as se, r as y, t as b } from "./blockTypeIcons-BlPKjD7M.js";
|
|
7
7
|
import { t as ce } from "./trash-2-CRBDolnR.js";
|
|
8
8
|
import { t as le } from "./x-Ctg_250T.js";
|
|
9
|
-
import { n as ue } from "./useCloudI18n-
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
9
|
+
import { n as ue } from "./useCloudI18n-PCDOC2kz.js";
|
|
10
|
+
import { t as de } from "./TplModal-DoOwUKlT.js";
|
|
11
11
|
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var fe = {
|
|
13
13
|
role: "dialog",
|
|
@@ -46,7 +46,7 @@ var fe = {
|
|
|
46
46
|
props: { visible: { type: Boolean } },
|
|
47
47
|
emits: ["close", "insert"],
|
|
48
48
|
setup(c, { emit: B }) {
|
|
49
|
-
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-
|
|
49
|
+
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-BwObwisa.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
|
|
50
50
|
let e = U.modules.value;
|
|
51
51
|
if (!G.value) return e;
|
|
52
52
|
let t = G.value.toLowerCase();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-
|
|
3
|
-
import { o as D } from "./keys-
|
|
2
|
+
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-ea9OrrH3.js";
|
|
3
|
+
import { o as D } from "./keys-DFaIbGR8.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
|
|
6
6
|
name: "PreviewSectionBlock",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { h, m as g, p as _ } from "./ColorPicker-
|
|
2
|
+
import { h, m as g, p as _ } from "./ColorPicker-BsgpTJqK.js";
|
|
3
3
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = [
|
|
5
5
|
"aria-checked",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as b, s as x } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as S, E as C, S as w, x as T } from "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as j } from "./useI18n-
|
|
3
|
+
import { D as S, E as C, S as w, x as T } from "./useEditorCore-ea9OrrH3.js";
|
|
4
|
+
import { n as E, s as D } from "./usePopoverPosition-F9STHRIr.js";
|
|
5
|
+
import { B as O, D as k, L as A, _ as ee, h as te, w as ne, z as re } from "./keys-DFaIbGR8.js";
|
|
6
|
+
import { t as j } from "./useI18n-BNMzZTM5.js";
|
|
7
7
|
import { t as M } from "./createLucideIcon-FSF4peHQ.js";
|
|
8
|
-
import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-
|
|
8
|
+
import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-MdaLz6Q3.js";
|
|
9
9
|
import { n as se, t as ce } from "./scan-line-IAMjPtRw.js";
|
|
10
10
|
import { t as le } from "./loader-circle-BT38qSm3.js";
|
|
11
11
|
import { n as ue, r as de, t as fe } from "./text-align-start-BwsA6QzC.js";
|
|
12
12
|
import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-
|
|
13
|
+
import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-BsgpTJqK.js";
|
|
14
14
|
var L = M("list-ordered", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M11 5h10",
|
|
@@ -166,8 +166,8 @@ var L = M("list-ordered", [
|
|
|
166
166
|
__name: "EmojiPickerDropdown",
|
|
167
167
|
emits: ["insert"],
|
|
168
168
|
setup(t, { emit: r }) {
|
|
169
|
-
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } = j(), T = s(null),
|
|
170
|
-
S(T, _(() => f.value)), E
|
|
169
|
+
let o = r, { categories: c, isOpen: f, toggle: p, close: m } = C(), { t: y, format: w } = j(), T = s(null), E = s(null);
|
|
170
|
+
S(T, _(() => f.value)), D(E, () => {
|
|
171
171
|
f.value && m();
|
|
172
172
|
});
|
|
173
173
|
function O(e) {
|
|
@@ -175,7 +175,7 @@ var L = M("list-ordered", [
|
|
|
175
175
|
}
|
|
176
176
|
return (t, r) => (i(), u("div", {
|
|
177
177
|
ref_key: "rootRef",
|
|
178
|
-
ref:
|
|
178
|
+
ref: E,
|
|
179
179
|
class: "tpl:relative"
|
|
180
180
|
}, [l("button", {
|
|
181
181
|
type: "button",
|
|
@@ -305,7 +305,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
305
305
|
"add-logic-tag"
|
|
306
306
|
],
|
|
307
307
|
setup(e, { emit: n }) {
|
|
308
|
-
let r = e, o = n, s = y(
|
|
308
|
+
let r = e, o = n, s = y(A, null), c = y(re, null), b = O(ee, "ParagraphToolbar"), x = E(), S = y(k, null), C = y(ne, null), w = y(te, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: D } = j(), M = b.fonts;
|
|
309
309
|
function N(e) {
|
|
310
310
|
r.editor?.chain().focus().insertContent(e).run();
|
|
311
311
|
}
|
|
@@ -361,7 +361,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
361
361
|
}, [l("div", {
|
|
362
362
|
"data-tpl-theme": h(c),
|
|
363
363
|
role: "toolbar",
|
|
364
|
-
"aria-label": h(
|
|
364
|
+
"aria-label": h(D).paragraphEditor.toolbar,
|
|
365
365
|
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",
|
|
366
366
|
style: t({
|
|
367
367
|
...h(s),
|
|
@@ -374,8 +374,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
374
374
|
d(Z, {
|
|
375
375
|
"model-value": P("fontFamily"),
|
|
376
376
|
options: h(M),
|
|
377
|
-
label: h(
|
|
378
|
-
placeholder: h(
|
|
377
|
+
label: h(D).paragraphEditor.fontFamily,
|
|
378
|
+
placeholder: h(D).paragraphEditor.defaultFont,
|
|
379
379
|
"width-class": "tpl:w-32",
|
|
380
380
|
"onUpdate:modelValue": F
|
|
381
381
|
}, null, 8, [
|
|
@@ -387,8 +387,8 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
387
387
|
d(Z, {
|
|
388
388
|
"model-value": P("fontSize"),
|
|
389
389
|
options: h(me),
|
|
390
|
-
label: h(
|
|
391
|
-
placeholder: h(
|
|
390
|
+
label: h(D).paragraphEditor.fontSize,
|
|
391
|
+
placeholder: h(D).paragraphEditor.defaultSize,
|
|
392
392
|
"width-class": "tpl:w-20",
|
|
393
393
|
"onUpdate:modelValue": R
|
|
394
394
|
}, null, 8, [
|
|
@@ -404,7 +404,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
404
404
|
"data-testid": "text-color-picker",
|
|
405
405
|
"model-value": U(),
|
|
406
406
|
"seed-color": H(),
|
|
407
|
-
"aria-label": h(
|
|
407
|
+
"aria-label": h(D).paragraphEditor.textColor,
|
|
408
408
|
"onUpdate:modelValue": V
|
|
409
409
|
}, null, 8, [
|
|
410
410
|
"model-value",
|
|
@@ -417,7 +417,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
417
417
|
"data-testid": "highlight-color-picker",
|
|
418
418
|
"model-value": J(),
|
|
419
419
|
"seed-color": h(he),
|
|
420
|
-
"aria-label": h(
|
|
420
|
+
"aria-label": h(D).paragraphEditor.highlightColor,
|
|
421
421
|
"onUpdate:modelValue": X
|
|
422
422
|
}, null, 8, [
|
|
423
423
|
"model-value",
|
|
@@ -427,7 +427,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
427
427
|
d(Y),
|
|
428
428
|
d(G, {
|
|
429
429
|
icon: h(ie),
|
|
430
|
-
label: h(
|
|
430
|
+
label: h(D).paragraphEditor.bold,
|
|
431
431
|
active: e.editor.isActive("bold"),
|
|
432
432
|
"stroke-width": 2.5,
|
|
433
433
|
onClick: r[0] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
@@ -438,7 +438,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
438
438
|
]),
|
|
439
439
|
d(G, {
|
|
440
440
|
icon: h(ae),
|
|
441
|
-
label: h(
|
|
441
|
+
label: h(D).paragraphEditor.italic,
|
|
442
442
|
active: e.editor.isActive("italic"),
|
|
443
443
|
onClick: r[1] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
444
444
|
}, null, 8, [
|
|
@@ -448,7 +448,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
448
448
|
]),
|
|
449
449
|
d(G, {
|
|
450
450
|
icon: h(Se),
|
|
451
|
-
label: h(
|
|
451
|
+
label: h(D).paragraphEditor.underline,
|
|
452
452
|
active: e.editor.isActive("underline"),
|
|
453
453
|
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
454
454
|
}, null, 8, [
|
|
@@ -458,7 +458,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
458
458
|
]),
|
|
459
459
|
d(G, {
|
|
460
460
|
icon: h(ye),
|
|
461
|
-
label: h(
|
|
461
|
+
label: h(D).paragraphEditor.strikethrough,
|
|
462
462
|
active: e.editor.isActive("strike"),
|
|
463
463
|
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
464
464
|
}, null, 8, [
|
|
@@ -469,7 +469,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
469
469
|
d(Y),
|
|
470
470
|
d(G, {
|
|
471
471
|
icon: h(be),
|
|
472
|
-
label: h(
|
|
472
|
+
label: h(D).paragraphEditor.subscript,
|
|
473
473
|
active: e.editor.isActive("subscript"),
|
|
474
474
|
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
475
475
|
}, null, 8, [
|
|
@@ -479,7 +479,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
479
479
|
]),
|
|
480
480
|
d(G, {
|
|
481
481
|
icon: h(xe),
|
|
482
|
-
label: h(
|
|
482
|
+
label: h(D).paragraphEditor.superscript,
|
|
483
483
|
active: e.editor.isActive("superscript"),
|
|
484
484
|
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
485
485
|
}, null, 8, [
|
|
@@ -490,7 +490,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
490
490
|
d(Y),
|
|
491
491
|
d(G, {
|
|
492
492
|
icon: h(oe),
|
|
493
|
-
label: h(
|
|
493
|
+
label: h(D).paragraphEditor.addLink,
|
|
494
494
|
active: e.editor.isActive("link"),
|
|
495
495
|
onClick: r[6] ||= (e) => o("open-link-dialog")
|
|
496
496
|
}, null, 8, [
|
|
@@ -501,7 +501,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
501
501
|
]), l("div", Oe, [
|
|
502
502
|
d(G, {
|
|
503
503
|
icon: h(_e),
|
|
504
|
-
label: h(
|
|
504
|
+
label: h(D).paragraphEditor.bulletList,
|
|
505
505
|
active: e.editor.isActive("bulletList"),
|
|
506
506
|
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
507
507
|
}, null, 8, [
|
|
@@ -511,7 +511,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
511
511
|
]),
|
|
512
512
|
d(G, {
|
|
513
513
|
icon: h(L),
|
|
514
|
-
label: h(
|
|
514
|
+
label: h(D).paragraphEditor.numberedList,
|
|
515
515
|
active: e.editor.isActive("orderedList"),
|
|
516
516
|
onClick: r[8] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
517
517
|
}, null, 8, [
|
|
@@ -522,7 +522,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
522
522
|
d(Y),
|
|
523
523
|
d(G, {
|
|
524
524
|
icon: h(fe),
|
|
525
|
-
label: h(
|
|
525
|
+
label: h(D).paragraphEditor.alignLeft,
|
|
526
526
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
527
527
|
onClick: r[9] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
528
528
|
}, null, 8, [
|
|
@@ -532,7 +532,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
532
532
|
]),
|
|
533
533
|
d(G, {
|
|
534
534
|
icon: h(de),
|
|
535
|
-
label: h(
|
|
535
|
+
label: h(D).paragraphEditor.alignCenter,
|
|
536
536
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
537
537
|
onClick: r[10] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
538
538
|
}, null, 8, [
|
|
@@ -542,7 +542,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
542
542
|
]),
|
|
543
543
|
d(G, {
|
|
544
544
|
icon: h(ue),
|
|
545
|
-
label: h(
|
|
545
|
+
label: h(D).paragraphEditor.alignRight,
|
|
546
546
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
547
547
|
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
548
548
|
}, null, 8, [
|
|
@@ -554,7 +554,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
554
554
|
d(Z, {
|
|
555
555
|
"model-value": W(),
|
|
556
556
|
options: h(pe),
|
|
557
|
-
label: h(
|
|
557
|
+
label: h(D).paragraphEditor.lineHeight,
|
|
558
558
|
placeholder: "LH",
|
|
559
559
|
"width-class": "tpl:w-16",
|
|
560
560
|
"onUpdate:modelValue": K
|
|
@@ -566,7 +566,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
566
566
|
d(Z, {
|
|
567
567
|
"model-value": P("letterSpacing"),
|
|
568
568
|
options: h(ge),
|
|
569
|
-
label: h(
|
|
569
|
+
label: h(D).paragraphEditor.letterSpacing,
|
|
570
570
|
placeholder: "LS",
|
|
571
571
|
"width-class": "tpl:w-20",
|
|
572
572
|
"onUpdate:modelValue": q
|
|
@@ -578,7 +578,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
578
578
|
d(Y),
|
|
579
579
|
d(G, {
|
|
580
580
|
icon: h(ve),
|
|
581
|
-
label: h(
|
|
581
|
+
label: h(D).paragraphEditor.clearFormatting,
|
|
582
582
|
onClick: r[12] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
583
583
|
}, null, 8, ["icon", "label"]),
|
|
584
584
|
d(Y),
|
|
@@ -586,29 +586,29 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
586
586
|
e.canRequestMergeTag ? (i(), u(g, { key: 0 }, [d(Y), l("button", {
|
|
587
587
|
type: "button",
|
|
588
588
|
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)]",
|
|
589
|
-
"aria-label": h(
|
|
590
|
-
title: h(
|
|
589
|
+
"aria-label": h(D).mergeTag.insert,
|
|
590
|
+
title: h(D).mergeTag.insert,
|
|
591
591
|
onClick: r[13] ||= (e) => o("add-merge-tag")
|
|
592
592
|
}, [d(h(ce), {
|
|
593
593
|
size: 16,
|
|
594
594
|
"stroke-width": 2
|
|
595
|
-
}), m(" " + a(h(
|
|
595
|
+
}), m(" " + a(h(D).mergeTag.insertShort), 1)], 8, ke)], 64)) : v("", !0),
|
|
596
596
|
e.canInsertLogicTag ? (i(), u(g, { key: 1 }, [d(Y), l("button", {
|
|
597
597
|
type: "button",
|
|
598
598
|
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)]",
|
|
599
|
-
"aria-label": h(
|
|
600
|
-
title: h(
|
|
599
|
+
"aria-label": h(D).logicTag.insert,
|
|
600
|
+
title: h(D).logicTag.insert,
|
|
601
601
|
"data-testid": "insert-logic-button",
|
|
602
602
|
onClick: r[14] ||= (e) => o("add-logic-tag")
|
|
603
603
|
}, [d(h(se), {
|
|
604
604
|
size: 16,
|
|
605
605
|
"stroke-width": 2
|
|
606
|
-
}), m(" " + a(h(
|
|
606
|
+
}), m(" " + a(h(D).logicTag.insertShort), 1)], 8, Ae)], 64)) : v("", !0)
|
|
607
607
|
])], 64)) : (i(), u("div", $, [d(h(le), {
|
|
608
608
|
class: "tpl-spinner",
|
|
609
609
|
size: 14,
|
|
610
610
|
"stroke-width": 2
|
|
611
|
-
}), m(" " + a(h(
|
|
611
|
+
}), m(" " + a(h(D).errors.editorLoading), 1)]))], 12, Ee)], 8, ["to"])) : v("", !0);
|
|
612
612
|
}
|
|
613
613
|
}), Me = { class: "tpl-text-editor-wrapper tpl:relative" }, Ne = /* @__PURE__ */ c({
|
|
614
614
|
__name: "ParagraphEditor",
|
|
@@ -618,7 +618,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["done"],
|
|
620
620
|
setup(e, { emit: t }) {
|
|
621
|
-
let n = e, r = t, a =
|
|
621
|
+
let n = e, r = t, a = E(), { editor: s, EditorContent: c, isLoading: l, initError: f, retry: p, showLinkDialog: m, linkUrl: g, linkColor: _, linkDialogRef: v, canRequestMergeTag: y, canInsertLogicTag: b, openLinkDialog: x, insertLink: S, removeLink: C, closeLinkDialog: D, handleLinkKeydown: O, handleAddMergeTag: k, handleAddLogicTag: A } = T({
|
|
622
622
|
blockId: () => n.block.id,
|
|
623
623
|
blockContent: () => n.block.content,
|
|
624
624
|
onDone: () => r("done"),
|
|
@@ -636,7 +636,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
636
636
|
import("./dist-DbekZDmJ.js"),
|
|
637
637
|
import("./dist-BDVm2MrW.js"),
|
|
638
638
|
import("./dist-YSCPD13F.js"),
|
|
639
|
-
import("./extensions-
|
|
639
|
+
import("./extensions-BCA9pyer.js")
|
|
640
640
|
]);
|
|
641
641
|
return {
|
|
642
642
|
TiptapEditor: o,
|
|
@@ -725,7 +725,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
|
|
|
725
725
|
"onUpdate:linkUrl": n[1] ||= (e) => o(g) ? g.value = e : null,
|
|
726
726
|
"link-color": h(_),
|
|
727
727
|
"onUpdate:linkColor": n[2] ||= (e) => o(_) ? _.value = e : null,
|
|
728
|
-
onClose: h(
|
|
728
|
+
onClose: h(D),
|
|
729
729
|
onInsert: h(S),
|
|
730
730
|
onRemove: h(C),
|
|
731
731
|
onKeydown: h(O)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { n as b } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as w } from "./useI18n-
|
|
3
|
+
import { n as b } from "./usePopoverPosition-F9STHRIr.js";
|
|
4
|
+
import { L as x, h as S, z as C } from "./keys-DFaIbGR8.js";
|
|
5
|
+
import { t as w } from "./useI18n-BNMzZTM5.js";
|
|
6
6
|
import { t as T } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
7
|
import { t as E } from "./x-Ctg_250T.js";
|
|
8
|
-
import { t as D } from "./ColorPicker-
|
|
8
|
+
import { t as D } from "./ColorPicker-BsgpTJqK.js";
|
|
9
9
|
var O = T("bold", [["path", {
|
|
10
10
|
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",
|
|
11
11
|
key: "mg9rjx"
|
|
@@ -67,7 +67,7 @@ var O = T("bold", [["path", {
|
|
|
67
67
|
"update:dialogRef"
|
|
68
68
|
]),
|
|
69
69
|
setup(e, { emit: n }) {
|
|
70
|
-
let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(x, null), A = g(
|
|
70
|
+
let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(x, null), A = g(C, null), U = b(), W = g(S, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
|
|
71
71
|
return (n, a) => p(U) ? (r(), d(u, {
|
|
72
72
|
key: 0,
|
|
73
73
|
to: p(U)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as S } from "./useI18n-
|
|
3
|
+
import "./useEditorCore-ea9OrrH3.js";
|
|
4
|
+
import { B as y, P as b, h as x } from "./keys-DFaIbGR8.js";
|
|
5
|
+
import { t as S } from "./useI18n-BNMzZTM5.js";
|
|
6
6
|
import { t as te } from "./loader-circle-BT38qSm3.js";
|
|
7
|
-
import { n as ne } from "./useCloudI18n-
|
|
7
|
+
import { n as ne } from "./useCloudI18n-PCDOC2kz.js";
|
|
8
8
|
import { t as re } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
9
|
-
import { t as C } from "./TplModal-
|
|
9
|
+
import { t as C } from "./TplModal-DoOwUKlT.js";
|
|
10
10
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var w = ["aria-busy"], T = {
|
|
12
12
|
id: "tpl-save-module-title",
|
|
@@ -26,7 +26,7 @@ var w = ["aria-busy"], T = {
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["close", "saved"],
|
|
28
28
|
setup(c, { emit: R }) {
|
|
29
|
-
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U =
|
|
29
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(x, "SaveModuleDialog"), W = y(b, "SaveModuleDialog"), G = s(""), K = s(/* @__PURE__ */ new Set()), q = s(!1), J = s(null), Y = g(() => U.content.value.blocks);
|
|
30
30
|
function X(e, t) {
|
|
31
31
|
let n = e.type;
|
|
32
32
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
5
|
-
import { t as v } from "./useI18n-
|
|
3
|
+
import "./useEditorCore-ea9OrrH3.js";
|
|
4
|
+
import { s as _ } from "./usePopoverPosition-F9STHRIr.js";
|
|
5
|
+
import { t as v } from "./useI18n-BNMzZTM5.js";
|
|
6
6
|
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
7
|
import { t as b } from "./chevron-down-dClfxKrJ.js";
|
|
8
8
|
import { t as x } from "./clock-m7TwQw4b.js";
|
|
9
9
|
import { t as S } from "./loader-circle-BT38qSm3.js";
|
|
10
|
-
import { n as C } from "./useCloudI18n-
|
|
10
|
+
import { n as C } from "./useCloudI18n-PCDOC2kz.js";
|
|
11
11
|
import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
12
12
|
var T = y("chevron-left", [["path", {
|
|
13
13
|
d: "m15 18-6-6 6-6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import {
|
|
3
|
+
import { B as _, F as re, T as ie, h as v } from "./keys-DFaIbGR8.js";
|
|
4
4
|
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
5
|
import { t as b } from "./chevron-down-dClfxKrJ.js";
|
|
6
6
|
import { t as x } from "./circle-alert-Bhzm-fNA.js";
|
|
@@ -13,7 +13,7 @@ import { t as oe } from "./triangle-alert-B2g0ALvq.js";
|
|
|
13
13
|
import { t as se } from "./x-Ctg_250T.js";
|
|
14
14
|
import { t as ce } from "./LoadingTrack-KIcREPlS.js";
|
|
15
15
|
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
-
import { n as le } from "./useCloudI18n-
|
|
16
|
+
import { n as le } from "./useCloudI18n-PCDOC2kz.js";
|
|
17
17
|
var O = y("shield-x", [
|
|
18
18
|
["path", {
|
|
19
19
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
@@ -91,7 +91,7 @@ var P = {
|
|
|
91
91
|
props: { visible: { type: Boolean } },
|
|
92
92
|
emits: ["close"],
|
|
93
93
|
setup(c, { emit: y }) {
|
|
94
|
-
let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(
|
|
94
|
+
let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), X = s({
|
|
95
95
|
spam: !0,
|
|
96
96
|
readability: !0,
|
|
97
97
|
accessibility: !0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, l as d, m as f, nt as p, r as m, u as h, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-ea9OrrH3.js";
|
|
4
4
|
import { t as v } from "./loader-circle-BT38qSm3.js";
|
|
5
|
-
import { n as y } from "./useCloudI18n-
|
|
6
|
-
import { t as b } from "./TplModal-
|
|
5
|
+
import { n as y } from "./useCloudI18n-PCDOC2kz.js";
|
|
6
|
+
import { t as b } from "./TplModal-DoOwUKlT.js";
|
|
7
7
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var x = ["aria-busy"], S = {
|
|
9
9
|
id: "tpl-test-email-title",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { S as ee, x as te } from "./useEditorCore-
|
|
3
|
-
import { n as ne } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as re } from "./useI18n-
|
|
6
|
-
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-
|
|
2
|
+
import { S as ee, x as te } from "./useEditorCore-ea9OrrH3.js";
|
|
3
|
+
import { n as ne } from "./usePopoverPosition-F9STHRIr.js";
|
|
4
|
+
import { D as _, L as v, w as y, z as b } from "./keys-DFaIbGR8.js";
|
|
5
|
+
import { t as re } from "./useI18n-BNMzZTM5.js";
|
|
6
|
+
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-MdaLz6Q3.js";
|
|
7
7
|
import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
|
|
8
8
|
import { t as C } from "./loader-circle-BT38qSm3.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -24,7 +24,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["done"],
|
|
26
26
|
setup(a, { emit: P }) {
|
|
27
|
-
let F = a, I = P, L = g(
|
|
27
|
+
let F = a, I = P, L = g(v, null), R = g(b, null), z = ne(), B = g(_, null), le = g(y, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
|
|
28
28
|
blockId: () => F.block.id,
|
|
29
29
|
blockContent: () => F.block.content,
|
|
30
30
|
onDone: () => I("done"),
|
|
@@ -34,7 +34,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
34
34
|
import("./dist-8TKf-Jpg.js").then((e) => e.r),
|
|
35
35
|
import("./dist-Cx7IUM7J.js"),
|
|
36
36
|
import("./dist-CcX5sLpz.js"),
|
|
37
|
-
import("./extensions-
|
|
37
|
+
import("./extensions-BCA9pyer.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { O as e, R as t, Y as n, _ as r, c as i, d as a, h as o, i as s, j as c, l, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as g } from "./useEditorCore-
|
|
4
|
-
import { n as _ } from "./usePopoverPosition-
|
|
5
|
-
import {
|
|
3
|
+
import { D as g } from "./useEditorCore-ea9OrrH3.js";
|
|
4
|
+
import { n as _ } from "./usePopoverPosition-F9STHRIr.js";
|
|
5
|
+
import { z as v } from "./keys-DFaIbGR8.js";
|
|
6
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
8
8
|
__name: "TplModal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-
|
|
1
|
+
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-ea9OrrH3.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-FSF4peHQ.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
5
|
-
"initialFileCount":
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
2
|
+
"version": "0.19.0",
|
|
3
|
+
"initialGzipBytes": 285642,
|
|
4
|
+
"initialRawBytes": 1025690,
|
|
5
|
+
"initialFileCount": 41,
|
|
6
|
+
"lazyGzipBytes": 181632,
|
|
7
|
+
"lazyRawBytes": 596544,
|
|
8
8
|
"lazyFileCount": 46,
|
|
9
|
-
"generatedAt": "2026-07-
|
|
9
|
+
"generatedAt": "2026-07-24T15:19:47.558Z"
|
|
10
10
|
}
|
|
@@ -393,7 +393,8 @@ var e = {
|
|
|
393
393
|
pickColor: "Tria un color",
|
|
394
394
|
hexValue: "Valor del color en Hex",
|
|
395
395
|
notSet: "No definit",
|
|
396
|
-
clear: "Neteja el color"
|
|
396
|
+
clear: "Neteja el color",
|
|
397
|
+
presetColors: "Colors predefinits"
|
|
397
398
|
},
|
|
398
399
|
mergeTag: {
|
|
399
400
|
clickToEdit: "Feu clic per editar",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-D840DIZB.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Tt as d, Ut as f, at as p, hn as m, ht as h, mt as g, st as _ } from "./features-Cnfv4QAY.js";
|
|
3
3
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = {
|
|
5
5
|
class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
@@ -7,12 +7,12 @@ var v = {
|
|
|
7
7
|
"backdrop-filter": "blur(8px)",
|
|
8
8
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
9
9
|
}
|
|
10
|
-
}, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /*#__PURE__*/
|
|
10
|
+
}, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /*#__PURE__*/ _(/* @__PURE__ */ u({
|
|
11
11
|
__name: "AiFeatureMenu",
|
|
12
12
|
props: { activeFeature: {} },
|
|
13
13
|
emits: ["select"],
|
|
14
|
-
setup(u, { emit:
|
|
15
|
-
let C =
|
|
14
|
+
setup(u, { emit: _ }) {
|
|
15
|
+
let C = _, { t: w } = p(), T = m(f, "AiFeatureMenu"), E = {
|
|
16
16
|
"ai-chat": "chat",
|
|
17
17
|
"design-reference": "designToTemplate",
|
|
18
18
|
scoring: "scoring"
|
|
@@ -56,4 +56,4 @@ var v = {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { C as default };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=AiFeatureMenu-
|
|
59
|
+
//# sourceMappingURL=AiFeatureMenu-RwJiaPXZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-RwJiaPXZ.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
|