@templatical/editor 0.18.0 → 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-BWIzNePR.js → AiChatSidebar-DAQTFuvi.js} +3 -3
- package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-aFSO20PR.js} +4 -4
- package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
- package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-D0K-m1GA.js} +14 -12
- package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
- package/dist/ColorPicker-BsgpTJqK.js +552 -0
- package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-BYMVucZh.js} +4 -4
- package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
- package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-PJI3ffi1.js} +3 -3
- package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-QfAV8XT9.js} +5 -5
- package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-CTjRgz8w.js} +2 -2
- package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
- package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
- package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-D3BKz66W.js} +1 -1
- package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-Cf75UfSo.js} +42 -42
- package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
- package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
- package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
- package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-DikuKc6i.js} +77 -77
- package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BW8aTtzf.js} +3 -3
- package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-CCUkbRN0.js} +7 -7
- package/dist/{TplModal-DAtccv6o.js → TplModal-DoOwUKlT.js} +3 -3
- package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-BlPKjD7M.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-Dufl354p.js} +132 -130
- package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-xsU20iPl.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
- package/dist/{ColorPicker-BXCcUYsZ.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-BUGxk8GI.js → CountdownBlock-sHsRMe1q.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-DF5Ajuna.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-BkafKSju.js} +107 -107
- package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-BthhzOZS.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-DLv9cXba.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0uibGX7.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.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/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
- 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-B3M4IqhZ.js → extensions-DLHvZ0UH.js} +19 -19
- package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-DLHvZ0UH.js.map} +1 -1
- package/dist/cdn/chunks/{features-HBwOEo4D.js → features-Cnfv4QAY.js} +1382 -1298
- package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
- package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-DbcM69bb.js} +2 -2
- package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-DbcM69bb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-DpSMwHd4.js} +524 -524
- package/dist/cdn/chunks/{media-library-CfExuiSG.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-nh1R42eb.js → quality-D9QqkRcU.js} +77 -77
- package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-D9QqkRcU.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-BsLQZNXU.js} +14 -14
- package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-BsLQZNXU.js.map} +1 -1
- package/dist/cdn/chunks/{src-Cks4RrLL.js → src-zu1ehVNN.js} +6 -6
- package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-zu1ehVNN.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CPCN13az.js → styles-Dx-jXeCd.js} +184 -184
- package/dist/cdn/chunks/{styles-CPCN13az.js.map → styles-Dx-jXeCd.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +54 -52
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
- package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
- 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-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
- package/dist/index.d.ts +31 -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-CJ6WmkYL.js → styles-64uLkPJV.js} +47 -47
- package/dist/templatical-editor.js +13 -11
- package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
- package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-ea9OrrH3.js} +798 -755
- package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
- package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
- package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
- package/package.json +7 -7
- package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
- package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
- package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
- package/dist/keys-DAxnnmXs.js +0 -10
|
@@ -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(A, null), c = 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 = x
|
|
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",
|