@aswin.dev/editor 0.7.1 → 0.7.3
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/LICENSE +56 -0
- package/dist/{AiChatSidebar-DWGPVtvC.js → AiChatSidebar-Dt5pvG5t.js} +37 -51
- package/dist/{AiFeatureMenu-duUFSfDf.js → AiFeatureMenu-BipxcGap.js} +1 -1
- package/dist/{CloudEditor-CFldoCOb.js → CloudEditor-CnUX0IOW.js} +283 -239
- package/dist/{CollaboratorBar-Bw-lbt61.js → CollaboratorBar-NaaZTjbs.js} +2 -2
- package/dist/{CommentsSidebar-BaD5F53-.js → CommentsSidebar-DE6ZsM4D.js} +9 -10
- package/dist/CountdownBlock-Ba3T-i2X.js +1536 -0
- package/dist/{CountdownToolbar-Dg4F8MTk.js → CountdownToolbar-CbhSp_uq.js} +1 -1
- package/dist/{DesignReferenceSidebar-BSH7uNP_.js → DesignReferenceSidebar-CZg97bbj.js} +1 -1
- package/dist/{ModuleBrowserModal-6phxZSKI.js → ModuleBrowserModal-D2EVdexc.js} +4 -4
- package/dist/{ModulePreviewCanvas-BW8L3eQX.js → ModulePreviewCanvas-P3N-nxkU.js} +52 -47
- package/dist/{NumberWithSuffix-BpUzQOJt.js → NumberWithSuffix-CihczoAd.js} +1 -1
- package/dist/{ParagraphEditor-DNSzAB-I.js → ParagraphEditor-BbRuKhWv.js} +7 -7
- package/dist/{SaveModuleDialog-zMQTpez7.js → SaveModuleDialog-DLZa3m3O.js} +2 -2
- package/dist/{SnapshotHistory-Do-A5rYU.js → SnapshotHistory-Csg1_jXi.js} +3 -3
- package/dist/{TestEmailModal-DGj_9V1u.js → TestEmailModal-m3okLbJz.js} +2 -2
- package/dist/{TitleEditor-C7IDnAoS.js → TitleEditor-CtJIS5ER.js} +2 -2
- package/dist/{TplModal-BAsVzcTb.js → TplModal-CQCrKeKP.js} +1 -1
- package/dist/{blockTypeIcons-C6LDKvmd.js → blockTypeIcons-Dah0pgt-.js} +50 -19
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/AccessibilityPanel-Bt_fD7QT.js +97 -0
- package/dist/cdn/chunks/AccessibilityPanel-Bt_fD7QT.js.map +1 -0
- package/dist/cdn/chunks/AiFeatureMenu-Bn-0rgfr.js +59 -0
- package/dist/cdn/chunks/AiFeatureMenu-Bn-0rgfr.js.map +1 -0
- package/dist/cdn/chunks/BlockA11yBadge-Cj18Iw0p.js +33 -0
- package/dist/cdn/chunks/BlockA11yBadge-Cj18Iw0p.js.map +1 -0
- package/dist/cdn/chunks/CloudEditor-56lVcdot.js +1220 -0
- package/dist/cdn/chunks/CloudEditor-56lVcdot.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-B7DCV3xp.js +51 -0
- package/dist/cdn/chunks/CollaboratorBar-B7DCV3xp.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-BtaD3d3-.js.map +1 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CiIY7ZGv.js +195 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CiIY7ZGv.js.map +1 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js +113 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js.map +1 -0
- package/dist/cdn/chunks/NumberWithSuffix-DfVBnsgc.js +423 -0
- package/dist/cdn/chunks/NumberWithSuffix-DfVBnsgc.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-1XJOpiLX.js +544 -0
- package/dist/cdn/chunks/ParagraphEditor-1XJOpiLX.js.map +1 -0
- package/dist/cdn/chunks/RichTextEditorContent-C2q8sbp2.js +106 -0
- package/dist/cdn/chunks/RichTextEditorContent-C2q8sbp2.js.map +1 -0
- package/dist/cdn/chunks/SaveModuleDialog-BNxh1jPT.js +119 -0
- package/dist/cdn/chunks/SaveModuleDialog-BNxh1jPT.js.map +1 -0
- package/dist/cdn/chunks/TitleEditor-IF7VzLTk.js +171 -0
- package/dist/cdn/chunks/TitleEditor-IF7VzLTk.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +24 -0
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +1 -0
- package/dist/cdn/chunks/de-B05yW8Gi.js +840 -0
- package/dist/cdn/chunks/de-B05yW8Gi.js.map +1 -0
- package/dist/cdn/chunks/de-BPHtelu7.js +209 -0
- package/dist/cdn/chunks/de-BPHtelu7.js.map +1 -0
- package/dist/cdn/chunks/de-BRDqJwJe.js +89 -0
- package/dist/cdn/chunks/de-BRDqJwJe.js.map +1 -0
- package/dist/cdn/chunks/draggable-C-1_gch3.js +11572 -0
- package/dist/cdn/chunks/draggable-C-1_gch3.js.map +1 -0
- package/dist/cdn/chunks/emojiData-DUHzsh4j.js +19 -0
- package/dist/cdn/chunks/emojiData-DUHzsh4j.js.map +1 -0
- package/dist/cdn/chunks/en-BII7695P.js +840 -0
- package/dist/cdn/chunks/en-BII7695P.js.map +1 -0
- package/dist/cdn/chunks/en-Cdj_Ikl1.js +89 -0
- package/dist/cdn/chunks/en-Cdj_Ikl1.js.map +1 -0
- package/dist/cdn/chunks/en-DejwuJhw.js +209 -0
- package/dist/cdn/chunks/en-DejwuJhw.js.map +1 -0
- package/dist/cdn/chunks/extensions-B0eT-yjf.js +598 -0
- package/dist/cdn/chunks/extensions-B0eT-yjf.js.map +1 -0
- package/dist/cdn/chunks/features-BrvE2Fzv.js +9677 -0
- package/dist/cdn/chunks/features-BrvE2Fzv.js.map +1 -0
- package/dist/cdn/chunks/icons-C7wtAD8p.js +1043 -0
- package/dist/cdn/chunks/icons-C7wtAD8p.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-CllF-us3.js +3279 -0
- package/dist/cdn/chunks/liquid.browser-CllF-us3.js.map +1 -0
- package/dist/cdn/chunks/media-library-Cl5XuaKy.js +6030 -0
- package/dist/cdn/chunks/media-library-Cl5XuaKy.js.map +1 -0
- package/dist/cdn/chunks/pusher-i7-OBujc.js +2508 -0
- package/dist/cdn/chunks/pusher-i7-OBujc.js.map +1 -0
- package/dist/cdn/chunks/quality-Va91a3N8.js +1456 -0
- package/dist/cdn/chunks/quality-Va91a3N8.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +32 -0
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +1 -0
- package/dist/cdn/chunks/renderer-si0Zgxeb.js +642 -0
- package/dist/cdn/chunks/renderer-si0Zgxeb.js.map +1 -0
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +20 -0
- package/dist/cdn/chunks/src-BLyYIbdZ.js +497 -0
- package/dist/cdn/chunks/src-BLyYIbdZ.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-DfcU8u_r.js +57 -0
- package/dist/cdn/chunks/styleConstants-DfcU8u_r.js.map +1 -0
- package/dist/cdn/chunks/styles-C6BQLT9F.js +5807 -0
- package/dist/cdn/chunks/styles-C6BQLT9F.js.map +1 -0
- package/dist/cdn/chunks/tiptap-D8whBv5F.js +14654 -0
- package/dist/cdn/chunks/tiptap-D8whBv5F.js.map +1 -0
- package/dist/cdn/editor.css +2 -0
- package/dist/cdn/editor.js +367 -0
- package/dist/cdn/editor.js.map +1 -0
- package/dist/{cloud-6ZmAvF0j.js → cloud-BoS0J0vs.js} +1 -1
- package/dist/{de-DWcgp-7T.js → de-C74F9xK3.js} +112 -3
- package/dist/dist-C2grMquk.js +1261 -0
- package/dist/{dist-CivF9P8b.js → dist-Djgi0A6k.js} +92 -77
- package/dist/{en-Cxd4fhNm.js → en-B24jVTeO.js} +112 -3
- package/dist/{extensions-D__hOlV1.js → extensions-DsmjHqBF.js} +14 -14
- package/dist/index.d.ts +21 -10
- package/dist/{pencil-BZJPNYWR.js → pencil-Bpimrzzw.js} +5 -2
- package/dist/style.css +1 -1
- package/dist/styles-BMFMtR9R.js +6341 -0
- package/dist/templatical-editor.js +197 -139
- package/dist/undo-2-m1EUDbUg.js +16 -0
- package/dist/{useEditorCore-wslttMH-.js → useEditorCore-CtNAo0uy.js} +2154 -2025
- package/dist/useMergeTag-2vTcVpNo.js +34 -0
- package/package.json +12 -12
- package/dist/CountdownBlock-DaYGxKqo.js +0 -92
- package/dist/check-DJrpDKO_.js +0 -7
- package/dist/dist-C04s_fLA.js +0 -563
- package/dist/styles-B4tjX5SP.js +0 -5224
- package/dist/useMergeTag-DX0XG5V9.js +0 -34
- /package/dist/{clock-ik2pRJKG.js → clock-Ba4p3rJM.js} +0 -0
- /package/dist/{readableTextColor-DVuzNX1y.js → readableTextColor-C_9OpzBw.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, b as o, f as s, g as c, h as l, m as u, st as d, v as f, x as p } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
2
|
import { t as m } from "./useI18n-C2xQZ6K9.js";
|
|
3
3
|
import { f as h } from "./styleConstants-34eUKPOZ.js";
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-CihczoAd.js";
|
|
5
5
|
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ t({
|
|
7
7
|
__name: "CheckboxItem",
|
|
@@ -8,7 +8,7 @@ import { t as v } from "./x-BkaOMosX.js";
|
|
|
8
8
|
import { t as ce } from "./LoadingTrack-Ba2pfF57.js";
|
|
9
9
|
import { t as y } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
10
10
|
import { n as le } from "./useCloudI18n-DOKSZql1.js";
|
|
11
|
-
import { u as ue } from "./cloud-
|
|
11
|
+
import { u as ue } from "./cloud-BoS0J0vs.js";
|
|
12
12
|
var de = g("file-image", [
|
|
13
13
|
["path", {
|
|
14
14
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { C as e, F as t, Ft as n, N as r, R as i, S as a, U as ee, V as o, W as s, _ as te, c as ne, d as c, et as l, f as u, g as d, h as f, jt as re, m as p, s as ie, st as m, v as h, x as g } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-CtNAo0uy.js";
|
|
3
3
|
import { A as _, T as ae, m as oe } from "./keys-CvX8D-8C.js";
|
|
4
4
|
import { t as se } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { t as v } from "./createLucideIcon-ClREiSx3.js";
|
|
6
|
-
import { n as y, t as b } from "./blockTypeIcons-
|
|
6
|
+
import { n as y, t as b } from "./blockTypeIcons-Dah0pgt-.js";
|
|
7
7
|
import { t as ce } from "./trash-2-CtK2apEH.js";
|
|
8
8
|
import { t as le } from "./x-BkaOMosX.js";
|
|
9
9
|
import { n as ue } from "./useCloudI18n-DOKSZql1.js";
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
10
|
+
import { t as de } from "./TplModal-CQCrKeKP.js";
|
|
11
11
|
var fe = v("search", [["path", {
|
|
12
12
|
d: "m21 21-4.34-4.34",
|
|
13
13
|
key: "14j7rj"
|
|
@@ -53,7 +53,7 @@ var fe = v("search", [["path", {
|
|
|
53
53
|
props: { visible: { type: Boolean } },
|
|
54
54
|
emits: ["close", "insert"],
|
|
55
55
|
setup(e, { emit: v }) {
|
|
56
|
-
let z = e, B = v, De = a(() => import("./ModulePreviewCanvas-
|
|
56
|
+
let z = e, B = v, De = a(() => import("./ModulePreviewCanvas-P3N-nxkU.js")), { t: Oe } = se(), { t: V } = ue(), H = _(ae, "ModuleBrowserModal"), U = _(oe, "ModuleBrowserModal"), W = l(""), G = l(null), K = l(null), q = l("end"), J = p(() => {
|
|
57
57
|
let e = H.modules.value;
|
|
58
58
|
if (!W.value) return e;
|
|
59
59
|
let t = W.value.toLowerCase();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { C as e, D as t, F as n, L as r, N as i, R as a, f as o, g as s, h as c, jt as l, m as u, st as d, v as f } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
2
|
+
import { F as p, _ as m, a as h, b as g, c as _, d as v, g as y, h as b, i as x, m as S, o as C, p as w, s as T, v as E, x as D, y as O } from "./useEditorCore-CtNAo0uy.js";
|
|
3
|
+
import { s as k } from "./keys-CvX8D-8C.js";
|
|
4
|
+
import { t as A } from "./CountdownBlock-Ba3T-i2X.js";
|
|
4
5
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
+
var j = { class: "tpl:w-full" }, M = { class: "tpl:flex tpl:gap-0" }, N = /* @__PURE__ */ e({
|
|
6
7
|
name: "PreviewSectionBlock",
|
|
7
8
|
__name: "PreviewSectionBlock",
|
|
8
9
|
props: {
|
|
@@ -10,22 +11,24 @@ var k = { class: "tpl:w-full" }, A = { class: "tpl:flex tpl:gap-0" }, j = /* @__
|
|
|
10
11
|
viewport: {}
|
|
11
12
|
},
|
|
12
13
|
setup(e) {
|
|
13
|
-
let
|
|
14
|
-
title:
|
|
15
|
-
paragraph:
|
|
16
|
-
image:
|
|
17
|
-
video:
|
|
14
|
+
let N = {
|
|
15
|
+
title: h,
|
|
16
|
+
paragraph: b,
|
|
17
|
+
image: E,
|
|
18
|
+
video: x,
|
|
18
19
|
button: p,
|
|
19
|
-
input:
|
|
20
|
-
divider:
|
|
21
|
-
social:
|
|
20
|
+
input: m,
|
|
21
|
+
divider: g,
|
|
22
|
+
social: _,
|
|
22
23
|
menu: y,
|
|
23
|
-
table:
|
|
24
|
-
spacer:
|
|
25
|
-
html:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
table: C,
|
|
25
|
+
spacer: T,
|
|
26
|
+
html: O,
|
|
27
|
+
countdown: A,
|
|
28
|
+
form: v,
|
|
29
|
+
custom: D
|
|
30
|
+
}, P = e, F = t(k, null), I = u(() => {
|
|
31
|
+
switch (P.block.columns) {
|
|
29
32
|
case "2": return ["50%", "50%"];
|
|
30
33
|
case "3": return [
|
|
31
34
|
"33.33%",
|
|
@@ -36,68 +39,70 @@ var k = { class: "tpl:w-full" }, A = { class: "tpl:flex tpl:gap-0" }, j = /* @__
|
|
|
36
39
|
case "2-1": return ["66.67%", "33.33%"];
|
|
37
40
|
default: return ["100%"];
|
|
38
41
|
}
|
|
39
|
-
}),
|
|
40
|
-
let e =
|
|
42
|
+
}), L = u(() => {
|
|
43
|
+
let e = I.value.length, t = [...P.block.children];
|
|
41
44
|
for (; t.length < e;) t.push([]);
|
|
42
45
|
return t.slice(0, e);
|
|
43
46
|
});
|
|
44
|
-
function
|
|
45
|
-
return
|
|
47
|
+
function R(e) {
|
|
48
|
+
return L.value[e] || [];
|
|
46
49
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
50
|
+
function z(e) {
|
|
51
|
+
return S(e, F, N);
|
|
49
52
|
}
|
|
50
53
|
return (e, t) => {
|
|
51
54
|
let u = r("PreviewSectionBlock", !0);
|
|
52
|
-
return i(), f("div",
|
|
55
|
+
return i(), f("div", j, [c("div", M, [(i(!0), f(o, null, n(L.value, (e, t) => (i(), f("div", {
|
|
53
56
|
key: t,
|
|
54
|
-
style: l({ width:
|
|
55
|
-
}, [(i(!0), f(o, null, n(
|
|
57
|
+
style: l({ width: I.value[t] })
|
|
58
|
+
}, [(i(!0), f(o, null, n(R(t), (e) => (i(), f("div", {
|
|
56
59
|
key: e.id,
|
|
57
|
-
style: l(d(
|
|
60
|
+
style: l(d(w)(e))
|
|
58
61
|
}, [e.type === "section" ? (i(), s(u, {
|
|
59
62
|
key: 0,
|
|
60
63
|
block: e,
|
|
61
64
|
viewport: "desktop"
|
|
62
|
-
}, null, 8, ["block"])) : (i(), s(a(
|
|
65
|
+
}, null, 8, ["block"])) : (i(), s(a(z(e)), {
|
|
63
66
|
key: 1,
|
|
64
67
|
block: e,
|
|
65
68
|
viewport: "desktop"
|
|
66
69
|
}, null, 8, ["block"]))], 4))), 128))], 4))), 128))])]);
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
|
-
}),
|
|
72
|
+
}), P = {
|
|
70
73
|
class: "tpl:pointer-events-none tpl:mx-auto tpl:w-[600px] tpl:select-none tpl:rounded-lg",
|
|
71
74
|
style: {
|
|
72
75
|
"background-color": "var(--tpl-canvas-bg)",
|
|
73
76
|
"box-shadow": "var(--tpl-shadow-sm)"
|
|
74
77
|
}
|
|
75
|
-
},
|
|
78
|
+
}, F = /* @__PURE__ */ e({
|
|
76
79
|
__name: "ModulePreviewCanvas",
|
|
77
80
|
props: { blocks: {} },
|
|
78
81
|
setup(e) {
|
|
79
|
-
let r = t(
|
|
80
|
-
section:
|
|
81
|
-
title:
|
|
82
|
-
paragraph:
|
|
83
|
-
image:
|
|
84
|
-
video:
|
|
82
|
+
let r = t(k), c = {
|
|
83
|
+
section: N,
|
|
84
|
+
title: h,
|
|
85
|
+
paragraph: b,
|
|
86
|
+
image: E,
|
|
87
|
+
video: x,
|
|
85
88
|
button: p,
|
|
86
|
-
input:
|
|
87
|
-
divider:
|
|
88
|
-
social:
|
|
89
|
+
input: m,
|
|
90
|
+
divider: g,
|
|
91
|
+
social: _,
|
|
89
92
|
menu: y,
|
|
90
|
-
table:
|
|
91
|
-
spacer:
|
|
92
|
-
html:
|
|
93
|
-
|
|
93
|
+
table: C,
|
|
94
|
+
spacer: T,
|
|
95
|
+
html: O,
|
|
96
|
+
countdown: A,
|
|
97
|
+
form: v,
|
|
98
|
+
custom: D
|
|
94
99
|
};
|
|
95
100
|
function u(e) {
|
|
96
|
-
return
|
|
101
|
+
return S(e, r, c);
|
|
97
102
|
}
|
|
98
|
-
return (t, r) => (i(), f("div",
|
|
103
|
+
return (t, r) => (i(), f("div", P, [(i(!0), f(o, null, n(e.blocks, (e) => (i(), f("div", {
|
|
99
104
|
key: e.id,
|
|
100
|
-
style: l(d(
|
|
105
|
+
style: l(d(w)(e))
|
|
101
106
|
}, [(i(), s(a(u(e)), {
|
|
102
107
|
block: e,
|
|
103
108
|
viewport: "desktop"
|
|
@@ -105,4 +110,4 @@ var k = { class: "tpl:w-full" }, A = { class: "tpl:flex tpl:gap-0" }, j = /* @__
|
|
|
105
110
|
}
|
|
106
111
|
});
|
|
107
112
|
//#endregion
|
|
108
|
-
export {
|
|
113
|
+
export { F as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, I as i, N as a, R as o, U as s, _ as c, et as l, f as u, g as d, h as f, jt as p, m, st as h, t as ee, u as g, v as _, x as v } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import { t as y } from "./dist-
|
|
2
|
+
import { t as y } from "./dist-Djgi0A6k.js";
|
|
3
3
|
import { t as te } from "./useI18n-C2xQZ6K9.js";
|
|
4
4
|
import { h as b, i as x, m as S, p as C, u as w } from "./styleConstants-34eUKPOZ.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, Y as s, _ as c, b as l, d as u, et as d, f, g as p, h as m, jt as h, m as g, p as _, st as v, u as y, v as b, x } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as T } from "./dist-
|
|
2
|
+
import { E as S, S as C, T as w } from "./useEditorCore-CtNAo0uy.js";
|
|
3
|
+
import { t as T } from "./dist-Djgi0A6k.js";
|
|
4
4
|
import { A as E, D, g as O, k } from "./keys-CvX8D-8C.js";
|
|
5
5
|
import { t as A } from "./useI18n-C2xQZ6K9.js";
|
|
6
6
|
import { t as j } from "./createLucideIcon-ClREiSx3.js";
|
|
@@ -165,7 +165,7 @@ var V = j("list-ordered", [
|
|
|
165
165
|
__name: "EmojiPickerDropdown",
|
|
166
166
|
emits: ["insert"],
|
|
167
167
|
setup(t, { emit: n }) {
|
|
168
|
-
let o = n, { categories: s, isOpen: l, toggle: p, close: h } =
|
|
168
|
+
let o = n, { categories: s, isOpen: l, toggle: p, close: h } = w(), { t: _, format: C } = A(), E = d(null), D = d(null);
|
|
169
169
|
S(E, g(() => l.value)), T(D, () => {
|
|
170
170
|
l.value && h();
|
|
171
171
|
});
|
|
@@ -205,7 +205,7 @@ var V = j("list-ordered", [
|
|
|
205
205
|
}, [m("div", oe, i(v(_).emoji[e.key]), 1), m("div", se, [(a(!0), b(f, null, r(e.emojis, (e) => (a(), b("button", {
|
|
206
206
|
key: e,
|
|
207
207
|
type: "button",
|
|
208
|
-
"aria-label": v(
|
|
208
|
+
"aria-label": v(C)(v(_).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
209
209
|
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)]",
|
|
210
210
|
onClick: (t) => O(e)
|
|
211
211
|
}, i(e), 9, ce))), 128))])]))), 128))], 40, ae)) : c("", !0)], 512));
|
|
@@ -576,7 +576,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
576
576
|
},
|
|
577
577
|
emits: ["done"],
|
|
578
578
|
setup(e, { emit: t }) {
|
|
579
|
-
let n = e, r = t, { editor: i, EditorContent: o, isLoading: c, initError: l, retry: u, showLinkDialog: d, linkUrl: f, linkDialogRef: p, canRequestMergeTag: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: y, handleLinkKeydown: S, handleAddMergeTag:
|
|
579
|
+
let n = e, r = t, { editor: i, EditorContent: o, isLoading: c, initError: l, retry: u, showLinkDialog: d, linkUrl: f, linkDialogRef: p, canRequestMergeTag: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: y, handleLinkKeydown: S, handleAddMergeTag: w } = C({
|
|
580
580
|
blockId: () => n.block.id,
|
|
581
581
|
blockContent: () => n.block.content,
|
|
582
582
|
onDone: () => r("done"),
|
|
@@ -594,7 +594,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
594
594
|
import("./dist-BadNx4qo.js"),
|
|
595
595
|
import("./dist-COSzWQUs.js"),
|
|
596
596
|
import("./dist-BZyY-SS4.js"),
|
|
597
|
-
import("./extensions-
|
|
597
|
+
import("./extensions-DsmjHqBF.js")
|
|
598
598
|
]);
|
|
599
599
|
return {
|
|
600
600
|
TiptapEditor: a,
|
|
@@ -645,7 +645,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
645
645
|
"is-loading": v(c),
|
|
646
646
|
"can-request-merge-tag": v(m),
|
|
647
647
|
onOpenLinkDialog: v(h),
|
|
648
|
-
onAddMergeTag: v(
|
|
648
|
+
onAddMergeTag: v(w)
|
|
649
649
|
}, null, 8, [
|
|
650
650
|
"editor",
|
|
651
651
|
"toolbar-position",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, c as u, et as d, f, g as p, h as m, jt as h, m as g, st as _, v, x as y } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-CtNAo0uy.js";
|
|
3
3
|
import { A as b, T as x, m as ee } from "./keys-CvX8D-8C.js";
|
|
4
4
|
import { t as te } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { t as ne } from "./loader-circle-Balo8p3d.js";
|
|
6
6
|
import { n as S } from "./useCloudI18n-DOKSZql1.js";
|
|
7
|
-
import { t as C } from "./TplModal-
|
|
7
|
+
import { t as C } from "./TplModal-CQCrKeKP.js";
|
|
8
8
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var w = ["aria-busy"], T = {
|
|
10
10
|
id: "tpl-save-module-title",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, _ as s, d as c, et as l, f as u, h as d, m as f, st as p, t as m, v as h, x as g } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as _ } from "./dist-
|
|
2
|
+
import "./useEditorCore-CtNAo0uy.js";
|
|
3
|
+
import { t as _ } from "./dist-Djgi0A6k.js";
|
|
4
4
|
import { t as v } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { t as y } from "./chevron-down-C5oBUhT8.js";
|
|
6
6
|
import { n as b, t as x } from "./chevron-right-BqCptpdp.js";
|
|
7
|
-
import { t as S } from "./clock-
|
|
7
|
+
import { t as S } from "./clock-Ba4p3rJM.js";
|
|
8
8
|
import { t as C } from "./loader-circle-Balo8p3d.js";
|
|
9
9
|
import { n as w } from "./useCloudI18n-DOKSZql1.js";
|
|
10
10
|
import { t as T } from "./formatRelativeTime-BhhO8yCl.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, et as u, f as d, g as f, h as p, s as m, st as h, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-CtNAo0uy.js";
|
|
3
3
|
import { t as v } from "./loader-circle-Balo8p3d.js";
|
|
4
4
|
import { n as y } from "./useCloudI18n-DOKSZql1.js";
|
|
5
|
-
import { t as b } from "./TplModal-
|
|
5
|
+
import { t as b } from "./TplModal-CQCrKeKP.js";
|
|
6
6
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var x = ["aria-busy"], S = {
|
|
8
8
|
id: "tpl-test-email-title",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { At as e, C as t, D as n, Ft as r, N as i, Y as a, _ as o, b as s, f as c, g as l, h as u, jt as d, p as f, st as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { S as g } from "./useEditorCore-CtNAo0uy.js";
|
|
3
3
|
import { D as _, k as v } from "./keys-CvX8D-8C.js";
|
|
4
4
|
import { t as y } from "./useI18n-C2xQZ6K9.js";
|
|
5
5
|
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CrqPQdnk.js";
|
|
@@ -30,7 +30,7 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
|
|
|
30
30
|
import("./dist-C9ckKEZL.js").then((e) => e.r),
|
|
31
31
|
import("./dist-Bz3M4RXG.js"),
|
|
32
32
|
import("./dist-C3T2AKtB.js"),
|
|
33
|
-
import("./extensions-
|
|
33
|
+
import("./extensions-DsmjHqBF.js")
|
|
34
34
|
]);
|
|
35
35
|
return {
|
|
36
36
|
TiptapEditor: a,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as e, D as t, I as n, N as r, U as i, _ as a, d as o, et as s, g as c, h as l, m as u, p as d, st as f, t as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as g } from "./useEditorCore-CtNAo0uy.js";
|
|
3
3
|
import { k as _ } from "./keys-CvX8D-8C.js";
|
|
4
4
|
//#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var v = ["data-tpl-theme"], y = /* @__PURE__ */ e({
|
|
@@ -1,6 +1,36 @@
|
|
|
1
|
-
import { A as e,
|
|
1
|
+
import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-CtNAo0uy.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-ClREiSx3.js";
|
|
3
|
-
var o = a("
|
|
3
|
+
var o = a("clipboard-list", [
|
|
4
|
+
["rect", {
|
|
5
|
+
width: "8",
|
|
6
|
+
height: "4",
|
|
7
|
+
x: "8",
|
|
8
|
+
y: "2",
|
|
9
|
+
rx: "1",
|
|
10
|
+
ry: "1",
|
|
11
|
+
key: "tgr4d6"
|
|
12
|
+
}],
|
|
13
|
+
["path", {
|
|
14
|
+
d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",
|
|
15
|
+
key: "116196"
|
|
16
|
+
}],
|
|
17
|
+
["path", {
|
|
18
|
+
d: "M12 11h4",
|
|
19
|
+
key: "1jrz19"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M12 16h4",
|
|
23
|
+
key: "n85exb"
|
|
24
|
+
}],
|
|
25
|
+
["path", {
|
|
26
|
+
d: "M8 11h.01",
|
|
27
|
+
key: "1dfujw"
|
|
28
|
+
}],
|
|
29
|
+
["path", {
|
|
30
|
+
d: "M8 16h.01",
|
|
31
|
+
key: "18s6g9"
|
|
32
|
+
}]
|
|
33
|
+
]), s = a("columns-3", [
|
|
4
34
|
["rect", {
|
|
5
35
|
width: "18",
|
|
6
36
|
height: "18",
|
|
@@ -17,7 +47,7 @@ var o = a("columns-3", [
|
|
|
17
47
|
d: "M15 3v18",
|
|
18
48
|
key: "14nvp0"
|
|
19
49
|
}]
|
|
20
|
-
]),
|
|
50
|
+
]), c = a("heading", [
|
|
21
51
|
["path", {
|
|
22
52
|
d: "M6 12h12",
|
|
23
53
|
key: "8npq4p"
|
|
@@ -30,10 +60,10 @@ var o = a("columns-3", [
|
|
|
30
60
|
d: "M18 20V4",
|
|
31
61
|
key: "o2hl4u"
|
|
32
62
|
}]
|
|
33
|
-
]),
|
|
63
|
+
]), l = a("minus", [["path", {
|
|
34
64
|
d: "M5 12h14",
|
|
35
65
|
key: "1ays0h"
|
|
36
|
-
}]]),
|
|
66
|
+
}]]), u = a("move-vertical", [
|
|
37
67
|
["path", {
|
|
38
68
|
d: "M12 2v20",
|
|
39
69
|
key: "t6zp3m"
|
|
@@ -46,7 +76,7 @@ var o = a("columns-3", [
|
|
|
46
76
|
d: "m8 6 4-4 4 4",
|
|
47
77
|
key: "ybng9g"
|
|
48
78
|
}]
|
|
49
|
-
]),
|
|
79
|
+
]), d = a("package", [
|
|
50
80
|
["path", {
|
|
51
81
|
d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
|
|
52
82
|
key: "1a0edw"
|
|
@@ -63,7 +93,7 @@ var o = a("columns-3", [
|
|
|
63
93
|
d: "m7.5 4.27 9 5.15",
|
|
64
94
|
key: "1c824w"
|
|
65
95
|
}]
|
|
66
|
-
]),
|
|
96
|
+
]), f = a("pilcrow", [
|
|
67
97
|
["path", {
|
|
68
98
|
d: "M13 4v16",
|
|
69
99
|
key: "8vvj80"
|
|
@@ -76,14 +106,14 @@ var o = a("columns-3", [
|
|
|
76
106
|
d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13",
|
|
77
107
|
key: "sh4n9v"
|
|
78
108
|
}]
|
|
79
|
-
]),
|
|
109
|
+
]), p = a("play", [["path", {
|
|
80
110
|
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
81
111
|
key: "10ikf1"
|
|
82
|
-
}]]),
|
|
83
|
-
section:
|
|
84
|
-
title:
|
|
85
|
-
paragraph:
|
|
86
|
-
image:
|
|
112
|
+
}]]), m = {
|
|
113
|
+
section: s,
|
|
114
|
+
title: c,
|
|
115
|
+
paragraph: f,
|
|
116
|
+
image: r,
|
|
87
117
|
button: a("rectangle-horizontal", [["rect", {
|
|
88
118
|
width: "20",
|
|
89
119
|
height: "12",
|
|
@@ -106,12 +136,12 @@ var o = a("columns-3", [
|
|
|
106
136
|
key: "1uw06m"
|
|
107
137
|
}]
|
|
108
138
|
]),
|
|
109
|
-
divider:
|
|
110
|
-
video:
|
|
111
|
-
social:
|
|
112
|
-
menu:
|
|
139
|
+
divider: l,
|
|
140
|
+
video: p,
|
|
141
|
+
social: i,
|
|
142
|
+
menu: e,
|
|
113
143
|
table: t,
|
|
114
|
-
spacer:
|
|
144
|
+
spacer: u,
|
|
115
145
|
countdown: a("timer", [
|
|
116
146
|
["line", {
|
|
117
147
|
x1: "10",
|
|
@@ -134,7 +164,8 @@ var o = a("columns-3", [
|
|
|
134
164
|
key: "1e1u0o"
|
|
135
165
|
}]
|
|
136
166
|
]),
|
|
167
|
+
form: o,
|
|
137
168
|
html: n
|
|
138
169
|
};
|
|
139
170
|
//#endregion
|
|
140
|
-
export {
|
|
171
|
+
export { d as n, l as r, m as t };
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.7.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
5
|
-
"initialFileCount":
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
8
|
-
"lazyFileCount":
|
|
9
|
-
"generatedAt": "2026-05-
|
|
2
|
+
"version": "0.7.3",
|
|
3
|
+
"initialGzipBytes": 256601,
|
|
4
|
+
"initialRawBytes": 944657,
|
|
5
|
+
"initialFileCount": 36,
|
|
6
|
+
"lazyGzipBytes": 263564,
|
|
7
|
+
"lazyRawBytes": 918176,
|
|
8
|
+
"lazyFileCount": 44,
|
|
9
|
+
"generatedAt": "2026-05-16T13:31:06.772Z"
|
|
10
10
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { C as e, D as t, I as n, P as r, _ as i, b as a, ct as o, f as s, ft as c, g as l, h as u, m as d, ut as f, v as p, x as m, z as h } from "./draggable-C-1_gch3.js";
|
|
2
|
+
import { $t as g, Bt as _, Ct as v, Vt as y, jt as b, ut as x } from "./features-BrvE2Fzv.js";
|
|
3
|
+
import { ft as S, mt as C, t as w } from "./icons-C7wtAD8p.js";
|
|
4
|
+
//#region src/components/sidebar/AccessibilityPanel.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var T = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, E = { class: "tpl:flex tpl:items-center tpl:gap-2" }, D = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, O = ["title"], k = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
8
|
+
}, A = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
11
|
+
}, j = { class: "tpl:ml-auto tpl:font-normal tpl:opacity-70" }, M = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
|
|
14
|
+
}, N = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, P = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, F = { class: "tpl:flex tpl:gap-1.5" }, I = ["onClick"], L = ["title", "onClick"], R = /* @__PURE__ */ e({
|
|
15
|
+
__name: "AccessibilityPanel",
|
|
16
|
+
setup(e) {
|
|
17
|
+
let { t: R, format: z } = _(), B = t(y, null), V = t(g, null), H = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "error")), U = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "warning")), W = d(() => (B?.issues.value ?? []).filter((e) => e.severity === "info")), G = d(() => H.value.length + U.value.length + W.value.length);
|
|
18
|
+
function K(e) {
|
|
19
|
+
V && e.blockId && V.selectBlock(e.blockId);
|
|
20
|
+
}
|
|
21
|
+
function q(e) {
|
|
22
|
+
B?.applyFix(e);
|
|
23
|
+
}
|
|
24
|
+
return (e, t) => (r(), p("div", T, [u("header", E, [
|
|
25
|
+
m(o(C), {
|
|
26
|
+
size: 16,
|
|
27
|
+
"stroke-width": 1.5
|
|
28
|
+
}),
|
|
29
|
+
u("h3", D, c(o(R).accessibility.panelTitle), 1),
|
|
30
|
+
G.value > 0 ? (r(), p("span", {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]",
|
|
33
|
+
title: o(z)(o(R).accessibility.issueCountTooltip, { count: G.value })
|
|
34
|
+
}, c(G.value), 9, O)) : i("", !0)
|
|
35
|
+
]), !o(B) || o(B).unavailable.value ? (r(), p("div", k)) : G.value === 0 ? (r(), p("div", A, c(o(R).accessibility.emptyState), 1)) : (r(!0), p(s, { key: 2 }, n([
|
|
36
|
+
{
|
|
37
|
+
key: "errors",
|
|
38
|
+
title: o(R).accessibility.groupErrors,
|
|
39
|
+
icon: o(b),
|
|
40
|
+
items: H.value,
|
|
41
|
+
tone: "tpl:text-[var(--tpl-danger)]"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "warnings",
|
|
45
|
+
title: o(R).accessibility.groupWarnings,
|
|
46
|
+
icon: o(x),
|
|
47
|
+
items: U.value,
|
|
48
|
+
tone: "tpl:text-[var(--tpl-warning)]"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "info",
|
|
52
|
+
title: o(R).accessibility.groupInfo,
|
|
53
|
+
icon: o(v),
|
|
54
|
+
items: W.value,
|
|
55
|
+
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
56
|
+
}
|
|
57
|
+
], (e) => (r(), p("section", { key: e.key }, [e.items.length > 0 ? (r(), p("header", {
|
|
58
|
+
key: 0,
|
|
59
|
+
class: f(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", e.tone])
|
|
60
|
+
}, [
|
|
61
|
+
(r(), l(h(e.icon), {
|
|
62
|
+
size: 12,
|
|
63
|
+
"stroke-width": 2
|
|
64
|
+
})),
|
|
65
|
+
a(" " + c(e.title) + " ", 1),
|
|
66
|
+
u("span", j, c(e.items.length), 1)
|
|
67
|
+
], 2)) : i("", !0), e.items.length > 0 ? (r(), p("ul", M, [(r(!0), p(s, null, n(e.items, (e) => (r(), p("li", {
|
|
68
|
+
key: `${e.ruleId}-${e.blockId ?? "template"}`,
|
|
69
|
+
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
|
|
70
|
+
}, [
|
|
71
|
+
u("p", N, c(e.message), 1),
|
|
72
|
+
u("p", P, c(e.ruleId), 1),
|
|
73
|
+
u("div", F, [e.blockId ? (r(), p("button", {
|
|
74
|
+
key: 0,
|
|
75
|
+
type: "button",
|
|
76
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]",
|
|
77
|
+
onClick: (t) => K(e)
|
|
78
|
+
}, [m(o(S), {
|
|
79
|
+
size: 10,
|
|
80
|
+
"stroke-width": 2
|
|
81
|
+
}), a(" " + c(o(R).accessibility.jump), 1)], 8, I)) : i("", !0), e.fix ? (r(), p("button", {
|
|
82
|
+
key: 1,
|
|
83
|
+
type: "button",
|
|
84
|
+
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-white",
|
|
85
|
+
title: e.fix.description,
|
|
86
|
+
onClick: (t) => q(e)
|
|
87
|
+
}, [m(o(w), {
|
|
88
|
+
size: 10,
|
|
89
|
+
"stroke-width": 2
|
|
90
|
+
}), a(" " + c(o(R).accessibility.fix), 1)], 8, L)) : i("", !0)])
|
|
91
|
+
]))), 128))])) : i("", !0)]))), 128))]));
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
//#endregion
|
|
95
|
+
export { R as default };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=AccessibilityPanel-Bt_fD7QT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessibilityPanel-Bt_fD7QT.js","names":[],"sources":["../../../src/components/sidebar/AccessibilityPanel.vue","../../../src/components/sidebar/AccessibilityPanel.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport {\n Accessibility,\n AlertCircle,\n AlertTriangle,\n Info,\n ArrowRight,\n Wrench,\n} from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { ACCESSIBILITY_LINT_KEY, EDITOR_KEY } from \"../../keys\";\nimport type { A11yIssue } from \"../../composables/useAccessibilityLint\";\n\nconst { t, format } = useI18n();\nconst lint = inject(ACCESSIBILITY_LINT_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\n\nconst errors = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"error\"),\n);\nconst warnings = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"warning\"),\n);\nconst infos = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"info\"),\n);\n\nconst totalCount = computed(\n () => errors.value.length + warnings.value.length + infos.value.length,\n);\n\nfunction jumpTo(issue: A11yIssue): void {\n if (!editor) return;\n if (issue.blockId) editor.selectBlock(issue.blockId);\n}\n\nfunction applyFix(issue: A11yIssue): void {\n lint?.applyFix(issue);\n}\n</script>\n\n<template>\n <div class=\"tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4\">\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <Accessibility :size=\"16\" :stroke-width=\"1.5\" />\n <h3\n class=\"tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ t.accessibility.panelTitle }}\n </h3>\n <span\n v-if=\"totalCount > 0\"\n class=\"tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]\"\n :title=\"\n format(t.accessibility.issueCountTooltip, { count: totalCount })\n \"\n >\n {{ totalCount }}\n </span>\n </header>\n\n <div\n v-if=\"!lint || lint.unavailable.value\"\n class=\"tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n <!-- Quality package not available; render nothing visible beyond a hint. -->\n </div>\n\n <div\n v-else-if=\"totalCount === 0\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ t.accessibility.emptyState }}\n </div>\n\n <template v-else>\n <section\n v-for=\"group in [\n {\n key: 'errors',\n title: t.accessibility.groupErrors,\n icon: AlertCircle,\n items: errors,\n tone: 'tpl:text-[var(--tpl-danger)]',\n },\n {\n key: 'warnings',\n title: t.accessibility.groupWarnings,\n icon: AlertTriangle,\n items: warnings,\n tone: 'tpl:text-[var(--tpl-warning)]',\n },\n {\n key: 'info',\n title: t.accessibility.groupInfo,\n icon: Info,\n items: infos,\n tone: 'tpl:text-[var(--tpl-text-muted)]',\n },\n ]\"\n :key=\"group.key\"\n >\n <header\n v-if=\"group.items.length > 0\"\n class=\"tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide\"\n :class=\"group.tone\"\n >\n <component :is=\"group.icon\" :size=\"12\" :stroke-width=\"2\" />\n {{ group.title }}\n <span class=\"tpl:ml-auto tpl:font-normal tpl:opacity-70\">\n {{ group.items.length }}\n </span>\n </header>\n <ul\n v-if=\"group.items.length > 0\"\n class=\"tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0\"\n >\n <li\n v-for=\"issue in group.items\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3\"\n >\n <p class=\"tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </p>\n <p\n class=\"tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </p>\n <div class=\"tpl:flex tpl:gap-1.5\">\n <button\n v-if=\"issue.blockId\"\n type=\"button\"\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]\"\n @click=\"jumpTo(issue)\"\n >\n <ArrowRight :size=\"10\" :stroke-width=\"2\" />\n {{ t.accessibility.jump }}\n </button>\n <button\n v-if=\"issue.fix\"\n type=\"button\"\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-white\"\n :title=\"issue.fix.description\"\n @click=\"applyFix(issue)\"\n >\n <Wrench :size=\"10\" :stroke-width=\"2\" />\n {{ t.accessibility.fix }}\n </button>\n </div>\n </li>\n </ul>\n </section>\n </template>\n </div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport {\n Accessibility,\n AlertCircle,\n AlertTriangle,\n Info,\n ArrowRight,\n Wrench,\n} from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { ACCESSIBILITY_LINT_KEY, EDITOR_KEY } from \"../../keys\";\nimport type { A11yIssue } from \"../../composables/useAccessibilityLint\";\n\nconst { t, format } = useI18n();\nconst lint = inject(ACCESSIBILITY_LINT_KEY, null);\nconst editor = inject(EDITOR_KEY, null);\n\nconst errors = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"error\"),\n);\nconst warnings = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"warning\"),\n);\nconst infos = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.severity === \"info\"),\n);\n\nconst totalCount = computed(\n () => errors.value.length + warnings.value.length + infos.value.length,\n);\n\nfunction jumpTo(issue: A11yIssue): void {\n if (!editor) return;\n if (issue.blockId) editor.selectBlock(issue.blockId);\n}\n\nfunction applyFix(issue: A11yIssue): void {\n lint?.applyFix(issue);\n}\n</script>\n\n<template>\n <div class=\"tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4\">\n <header class=\"tpl:flex tpl:items-center tpl:gap-2\">\n <Accessibility :size=\"16\" :stroke-width=\"1.5\" />\n <h3\n class=\"tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]\"\n >\n {{ t.accessibility.panelTitle }}\n </h3>\n <span\n v-if=\"totalCount > 0\"\n class=\"tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]\"\n :title=\"\n format(t.accessibility.issueCountTooltip, { count: totalCount })\n \"\n >\n {{ totalCount }}\n </span>\n </header>\n\n <div\n v-if=\"!lint || lint.unavailable.value\"\n class=\"tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n <!-- Quality package not available; render nothing visible beyond a hint. -->\n </div>\n\n <div\n v-else-if=\"totalCount === 0\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ t.accessibility.emptyState }}\n </div>\n\n <template v-else>\n <section\n v-for=\"group in [\n {\n key: 'errors',\n title: t.accessibility.groupErrors,\n icon: AlertCircle,\n items: errors,\n tone: 'tpl:text-[var(--tpl-danger)]',\n },\n {\n key: 'warnings',\n title: t.accessibility.groupWarnings,\n icon: AlertTriangle,\n items: warnings,\n tone: 'tpl:text-[var(--tpl-warning)]',\n },\n {\n key: 'info',\n title: t.accessibility.groupInfo,\n icon: Info,\n items: infos,\n tone: 'tpl:text-[var(--tpl-text-muted)]',\n },\n ]\"\n :key=\"group.key\"\n >\n <header\n v-if=\"group.items.length > 0\"\n class=\"tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide\"\n :class=\"group.tone\"\n >\n <component :is=\"group.icon\" :size=\"12\" :stroke-width=\"2\" />\n {{ group.title }}\n <span class=\"tpl:ml-auto tpl:font-normal tpl:opacity-70\">\n {{ group.items.length }}\n </span>\n </header>\n <ul\n v-if=\"group.items.length > 0\"\n class=\"tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0\"\n >\n <li\n v-for=\"issue in group.items\"\n :key=\"`${issue.ruleId}-${issue.blockId ?? 'template'}`\"\n class=\"tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3\"\n >\n <p class=\"tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]\">\n {{ issue.message }}\n </p>\n <p\n class=\"tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]\"\n >\n {{ issue.ruleId }}\n </p>\n <div class=\"tpl:flex tpl:gap-1.5\">\n <button\n v-if=\"issue.blockId\"\n type=\"button\"\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text)]\"\n @click=\"jumpTo(issue)\"\n >\n <ArrowRight :size=\"10\" :stroke-width=\"2\" />\n {{ t.accessibility.jump }}\n </button>\n <button\n v-if=\"issue.fix\"\n type=\"button\"\n class=\"tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-white\"\n :title=\"issue.fix.description\"\n @click=\"applyFix(issue)\"\n >\n <Wrench :size=\"10\" :stroke-width=\"2\" />\n {{ t.accessibility.fix }}\n </button>\n </div>\n </li>\n </ul>\n </section>\n </template>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAcA,IAAM,EAAE,MAAG,cAAW,GAAS,EACzB,IAAO,EAAO,GAAwB,KAAK,EAC3C,IAAS,EAAO,GAAY,KAAK,EAEjC,IAAS,SACZ,GAAM,OAAO,SAAS,EAAE,EAAE,QAAQ,MAAM,EAAE,aAAa,QAAQ,CACjE,EACK,IAAW,SACd,GAAM,OAAO,SAAS,EAAE,EAAE,QAAQ,MAAM,EAAE,aAAa,UAAU,CACnE,EACK,IAAQ,SACX,GAAM,OAAO,SAAS,EAAE,EAAE,QAAQ,MAAM,EAAE,aAAa,OAAO,CAChE,EAEK,IAAa,QACX,EAAO,MAAM,SAAS,EAAS,MAAM,SAAS,EAAM,MAAM,OACjE;EAED,SAAS,EAAO,GAAwB;AACjC,QACD,EAAM,WAAS,EAAO,YAAY,EAAM,QAAQ;;EAGtD,SAAS,EAAS,GAAwB;AACxC,MAAM,SAAS,EAAM;;yBAKrB,EAiHM,OAjHN,GAiHM,CAhHJ,EAgBS,UAhBT,GAgBS;GAfP,EAAgD,EAAA,EAAA,EAAA;IAAhC,MAAM;IAAK,gBAAc;;GACzC,EAIK,MAJL,GAIK,EADA,EAAA,EAAC,CAAC,cAAc,WAAU,EAAA,EAAA;GAGvB,EAAA,QAAU,KAAA,GAAA,EADlB,EAQO,QAAA;;IANL,OAAM;IACL,OAAkB,EAAA,EAAM,CAAC,EAAA,EAAC,CAAC,cAAc,mBAAiB,EAAA,OAAW,EAAA,OAAU,CAAA;QAI7E,EAAA,MAAU,EAAA,GAAA,EAAA,IAAA,EAAA,IAAA,GAAA;OAKR,EAAA,EAAI,IAAI,EAAA,EAAI,CAAC,YAAY,SAAA,GAAA,EADlC,EAKM,OALN,EAKM,IAGO,EAAA,UAAU,KAAA,GAAA,EADvB,EAKM,OALN,GAKM,EADD,EAAA,EAAC,CAAC,cAAc,WAAU,EAAA,EAAA,KAAA,EAAA,GAAA,EAI7B,EA6EU,GAAA,EAAA,KAAA,GAAA,EAAA,EAAA;;;WA5EoE,EAAA,EAAC,CAAC,cAAc;UAA+B,EAAA,EAAW;WAAqB,EAAA;;;;;WAAmI,EAAA,EAAC,CAAC,cAAc;UAAiC,EAAA,EAAa;WAAqB,EAAA;;;;;WAAkI,EAAA,EAAC,CAAC,cAAc;UAA6B,EAAA,EAAI;WAAqB,EAAA;;;MAAljB,YADT,EA6EU,WAAA,EArDP,KAAK,EAAM,KAAA,EAAA,CAGJ,EAAM,MAAM,SAAM,KAAA,GAAA,EAD1B,EAUS,UAAA;;GARP,OAAK,EAAA,CAAC,oHACE,EAAM,KAAI,CAAA;;SAElB,EAA2D,EAA3C,EAAM,KAAI,EAAA;IAAG,MAAM;IAAK,gBAAc;;KAAK,MAC3D,EAAG,EAAM,MAAK,GAAG,KACjB,EAAA;GAAA,EAEO,QAFP,GAEO,EADF,EAAM,MAAM,OAAM,EAAA,EAAA;sBAIjB,EAAM,MAAM,SAAM,KAAA,GAAA,EAD1B,EAuCK,MAvCL,GAuCK,EAAA,EAAA,GAAA,EAnCH,EAkCK,GAAA,MAAA,EAjCa,EAAM,QAAf,YADT,EAkCK,MAAA;GAhCF,KAAG,GAAK,EAAM,OAAM,GAAI,EAAM,WAAO;GACtC,OAAM;;GAEN,EAEI,KAFJ,GAEI,EADC,EAAM,QAAO,EAAA,EAAA;GAElB,EAII,KAJJ,GAII,EADC,EAAM,OAAM,EAAA,EAAA;GAEjB,EAoBM,OApBN,GAoBM,CAlBI,EAAM,WAAA,GAAA,EADd,EAQS,UAAA;;IANP,MAAK;IACL,OAAM;IACL,UAAK,MAAE,EAAO,EAAK;OAEpB,EAA2C,EAAA,EAAA,EAAA;IAA9B,MAAM;IAAK,gBAAc;SAAK,MAC3C,EAAG,EAAA,EAAC,CAAC,cAAc,KAAI,EAAA,EAAA,CAAA,EAAA,GAAA,EAAA,IAAA,EAAA,IAAA,GAAA,EAGjB,EAAM,OAAA,GAAA,EADd,EASS,UAAA;;IAPP,MAAK;IACL,OAAM;IACL,OAAO,EAAM,IAAI;IACjB,UAAK,MAAE,EAAS,EAAK;OAEtB,EAAuC,EAAA,EAAA,EAAA;IAA9B,MAAM;IAAK,gBAAc;SAAK,MACvC,EAAG,EAAA,EAAC,CAAC,cAAc,IAAG,EAAA,EAAA,CAAA,EAAA,GAAA,EAAA,IAAA,EAAA,IAAA,GAAA,CAAA,CAAA"}
|