@templatical/editor 0.5.1 → 0.6.1
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/AccessibilityPanel-CvQGLdu6.js +108 -0
- package/dist/{AiChatSidebar-Cg206ewI.js → AiChatSidebar-Br9dhkIB.js} +17 -16
- package/dist/{AiFeatureMenu-D7Od4cI2.js → AiFeatureMenu-Ceewb3uB.js} +13 -13
- package/dist/BlockA11yBadge-CXDLqkcJ.js +34 -0
- package/dist/{CloudEditor-DG8fWnXI.js → CloudEditor-D_flODpm.js} +306 -217
- package/dist/{CollaboratorBar-BdXfCYAr.js → CollaboratorBar-BcSxXVY-.js} +4 -4
- package/dist/{CommentsSidebar-BAma2apG.js → CommentsSidebar-DceMRyIS.js} +26 -25
- package/dist/{CountdownBlock-Ce3RFNpM.js → CountdownBlock-BNSj1jvJ.js} +2 -2
- package/dist/{CountdownToolbar-Bo3Jaiky.js → CountdownToolbar-ClJr2GzL.js} +3 -3
- package/dist/{DesignReferenceSidebar-B8DDnLHQ.js → DesignReferenceSidebar-50qFipmW.js} +30 -29
- package/dist/{LoadingTrack-DhxulLPM.js → LoadingTrack-B0CWFHXQ.js} +1 -1
- package/dist/{ModuleBrowserModal-DpMInJoP.js → ModuleBrowserModal-BnSdG4DE.js} +10 -10
- package/dist/{ModulePreviewCanvas-MjIGlxVI.js → ModulePreviewCanvas-B78PuZdk.js} +2 -2
- package/dist/{NumberWithSuffix-BysfchFp.js → NumberWithSuffix-DkXUez9t.js} +3 -3
- package/dist/{ParagraphEditor-B5qZL5c2.js → ParagraphEditor-CPBYk2m3.js} +39 -38
- package/dist/{RichTextEditorContent-jxPxfbfZ.js → RichTextEditorContent-DYkIauIk.js} +4 -4
- package/dist/{SaveModuleDialog-BGFYMJby.js → SaveModuleDialog-Df__VToK.js} +7 -7
- package/dist/{SnapshotHistory-4aWE_-GM.js → SnapshotHistory-QBTbVrEK.js} +9 -9
- package/dist/{TemplateScoringPanel-BmAHdgLF.js → TemplateScoringPanel-4GTNHej5.js} +29 -27
- package/dist/{TestEmailModal-p-iH28wl.js → TestEmailModal-DaDMACHY.js} +4 -4
- package/dist/{TitleEditor-BHxJ6Oxd.js → TitleEditor-PHShl4tS.js} +10 -10
- package/dist/{TplModal-BiUCSfou.js → TplModal-DzlNkBYQ.js} +2 -2
- package/dist/_plugin-vue_export-helper-B0hnzhyu.js +8 -0
- package/dist/accessibility-e8JYu_zd.js +27 -0
- package/dist/{blockTypeIcons-8GJD96Tw.js → blockTypeIcons-D0wkSpP9.js} +2 -2
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/AccessibilityPanel-fjNLcnxu.js +97 -0
- package/dist/cdn/chunks/AccessibilityPanel-fjNLcnxu.js.map +1 -0
- package/dist/cdn/chunks/{AiFeatureMenu-DSXAYiMk.js → AiFeatureMenu-DSamZ3ve.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-DSXAYiMk.js.map → AiFeatureMenu-DSamZ3ve.js.map} +1 -1
- package/dist/cdn/chunks/BlockA11yBadge-D73PKVS8.js +33 -0
- package/dist/cdn/chunks/BlockA11yBadge-D73PKVS8.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-CRYF-bR3.js → CloudEditor-BGfliRFn.js} +253 -166
- package/dist/cdn/chunks/CloudEditor-BGfliRFn.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CTFgLtUt.js → CollaboratorBar-BRvF0m5t.js} +6 -6
- package/dist/cdn/chunks/{CollaboratorBar-CTFgLtUt.js.map → CollaboratorBar-BRvF0m5t.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BKg-e3Uo.js → CountdownBlock-IIZk8uja.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BKg-e3Uo.js.map → CountdownBlock-IIZk8uja.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CPAOXOwI.js → CountdownToolbar-mXM3YITU.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CPAOXOwI.js.map → CountdownToolbar-mXM3YITU.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-B70ZM4KG.js → ModuleBrowserModal-BgIdqEyV.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-B70ZM4KG.js.map → ModuleBrowserModal-BgIdqEyV.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-VHhQwuFP.js → ModulePreviewCanvas-BOFLwREg.js} +18 -18
- package/dist/cdn/chunks/{ModulePreviewCanvas-VHhQwuFP.js.map → ModulePreviewCanvas-BOFLwREg.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DnqYqSKs.js → NumberWithSuffix-Cxe5sPC2.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-DnqYqSKs.js.map → NumberWithSuffix-Cxe5sPC2.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-oVEaeerJ.js → ParagraphEditor-7Wycs4gM.js} +53 -53
- package/dist/cdn/chunks/{ParagraphEditor-oVEaeerJ.js.map → ParagraphEditor-7Wycs4gM.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CmOwLOeY.js → RichTextEditorContent-DVw5mwEA.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CmOwLOeY.js.map → RichTextEditorContent-DVw5mwEA.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B6kNizps.js → SaveModuleDialog-Cz1xEjJG.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-B6kNizps.js.map → SaveModuleDialog-Cz1xEjJG.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CvZe3neh.js → TitleEditor-DTF4hRB6.js} +12 -12
- package/dist/cdn/chunks/{TitleEditor-CvZe3neh.js.map → TitleEditor-DTF4hRB6.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-C5tZU4ot.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Bs9B-yft.js.map → blockTypeIcons-C5tZU4ot.js.map} +1 -1
- package/dist/cdn/chunks/{de-CGu9U1iv.js → de-Ce-LbJ2J.js} +1 -1
- package/dist/cdn/chunks/{de-CGu9U1iv.js.map → de-Ce-LbJ2J.js.map} +1 -1
- package/dist/{de-DwLWZn6p.js → cdn/chunks/de-D8CnZxV9.js} +21 -1
- package/dist/cdn/chunks/de-D8CnZxV9.js.map +1 -0
- package/dist/{de-CbSb23fl.js → cdn/chunks/de-RQrZR56a.js} +8 -0
- package/dist/cdn/chunks/{de-Db6I9YdS.js.map → de-RQrZR56a.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js → emojiData-EMFlj6FJ.js} +1 -1
- package/dist/cdn/chunks/{emojiData-Vv_m5TSB.js.map → emojiData-EMFlj6FJ.js.map} +1 -1
- package/dist/{en-BrlGVpmd.js → cdn/chunks/en-8FHaQv4V.js} +21 -1
- package/dist/cdn/chunks/en-8FHaQv4V.js.map +1 -0
- package/dist/{en-2fvenFu0.js → cdn/chunks/en-Bl1ecfRF.js} +8 -0
- package/dist/cdn/chunks/{en-BbqBJ2Q3.js.map → en-Bl1ecfRF.js.map} +1 -1
- package/dist/cdn/chunks/{en-C3WMCISl.js → en-DiCWK5fG.js} +1 -1
- package/dist/cdn/chunks/{en-C3WMCISl.js.map → en-DiCWK5fG.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-D13MqxlW.js → extensions-BrVEX2vQ.js} +37 -34
- package/dist/cdn/chunks/{extensions-D13MqxlW.js.map → extensions-BrVEX2vQ.js.map} +1 -1
- package/dist/cdn/chunks/{features-BnG-dhzy.js → features-BdkV7kQP.js} +816 -756
- package/dist/cdn/chunks/features-BdkV7kQP.js.map +1 -0
- package/dist/cdn/chunks/{icons-B_185qj_.js → icons-oRXtYgc3.js} +99 -52
- package/dist/cdn/chunks/icons-oRXtYgc3.js.map +1 -0
- package/dist/cdn/chunks/{media-library-DxpFw4Tt.js → media-library-C7uyFrMO.js} +217 -217
- package/dist/cdn/chunks/{media-library-DxpFw4Tt.js.map → media-library-C7uyFrMO.js.map} +1 -1
- package/dist/cdn/chunks/quality-C5gsx_Tw.js +1456 -0
- package/dist/cdn/chunks/quality-C5gsx_Tw.js.map +1 -0
- package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js → readableTextColor-DhoK4XiZ.js} +1 -1
- package/dist/cdn/chunks/{readableTextColor-Cd_cgWO_.js.map → readableTextColor-DhoK4XiZ.js.map} +1 -1
- package/dist/cdn/chunks/{dist-MGrg9tLo.js → renderer-DM2gdPmx.js} +178 -126
- package/dist/cdn/chunks/renderer-DM2gdPmx.js.map +1 -0
- package/dist/cdn/chunks/{src-Cw7KAyui.js → src-BAAwLL7q.js} +11 -11
- package/dist/cdn/chunks/{src-Cw7KAyui.js.map → src-BAAwLL7q.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DYDpAUsJ.js → styles-iDn0uW8_.js} +576 -484
- package/dist/cdn/chunks/styles-iDn0uW8_.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CPAwPMop.js → tiptap-ClLEM7Xz.js} +2 -2
- package/dist/cdn/chunks/{tiptap-CPAwPMop.js.map → tiptap-ClLEM7Xz.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +87 -86
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Om8IxvJb.js → check-Da05j8yl.js} +1 -1
- package/dist/{chevron-down-SG7QNtDl.js → chevron-down-R2uY34iD.js} +1 -1
- package/dist/{circle-alert-De74azaX.js → circle-alert-DZuGWPX-.js} +1 -1
- package/dist/{clock-Dr7rX_PG.js → clock-CRp2sIub.js} +1 -1
- package/dist/{cloud-B1NAFg44.js → cloud-WfWdqZVK.js} +1 -1
- package/dist/{_plugin-vue_export-helper-GRmvIR5A.js → createLucideIcon-C3pa2siy.js} +2 -6
- package/dist/{cdn/chunks/de-BSWt7lYu.js → de-Brqvgr43.js} +19 -3
- package/dist/{cdn/chunks/de-Db6I9YdS.js → de-DCaaCE5s.js} +6 -2
- package/dist/{dist-CuyhAnuE.js → dist-B1IR0bpH.js} +65 -53
- package/dist/{dist-QoJxR1uP.js → dist-BFawx6IS.js} +1 -1
- package/dist/{dist-H7npgW0s.js → dist-BaQIYPsn.js} +1 -1
- package/dist/{dist-C4m7p7Wb.js → dist-Cp0zXPAD.js} +1 -1
- package/dist/{dist--8ZUsIQD.js → dist-D6uC2xhi.js} +1 -1
- package/dist/{dist-BMMiVjHs.js → dist-D90y8dvT.js} +3 -3
- package/dist/{dist--e2w6FN-.js → dist-DDJIWTRY.js} +1 -1
- package/dist/{dist-e0ylhlSV.js → dist-DJmnUmW9.js} +2 -1
- package/dist/{dist-BOSn1353.js → dist-DjviJBCi.js} +1 -1
- package/dist/{dist-BsiDC2rP.js → dist-KoBJjK1G.js} +1 -1
- package/dist/{dist-BNZS_qhu.js → dist-aRzjfSRN.js} +1 -1
- package/dist/{dist-3AzSJz2x.js → dist-us-RpCWN.js} +1 -1
- package/dist/{dist-DPsMHsAW.js → dist-wzMIGj-D.js} +1 -1
- package/dist/{cdn/chunks/en-BbqBJ2Q3.js → en-DXCyK4-X.js} +6 -2
- package/dist/{cdn/chunks/en-9-vIGlc7.js → en-WDVp87TE.js} +19 -3
- package/dist/{extensions-Cmf6XVn9.js → extensions-CUcl9Ok4.js} +26 -23
- package/dist/{image-up-10kxuulB.js → image-up-MBZKKg9p.js} +1 -1
- package/dist/index.d.ts +25 -8
- package/dist/info-CJEC7piy.js +19 -0
- package/dist/{keys-BeW4IrXP.js → keys-ciNfSSGj.js} +3 -3
- package/dist/{loader-circle-IS16T05j.js → loader-circle-DsY5Yg33.js} +1 -1
- package/dist/{message-circle-3R472hDc.js → message-circle-yElBbR2C.js} +1 -1
- package/dist/{refresh-cw-CpmOfpPK.js → refresh-cw-CE_AGtn8.js} +3 -18
- package/dist/{scan-line-J_fzG2Wo.js → scan-line-D0vcUekt.js} +1 -1
- package/dist/{send-DRkFf4hP.js → send-DH4oDQqC.js} +1 -1
- package/dist/{shield-check-DtXk7JKN.js → shield-check-CfJgs2Hd.js} +1 -1
- package/dist/{sparkles-CD7TiNiC.js → sparkles-CvRXGqFs.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-C-FrkTA9.js → styles-B58wYIn4.js} +589 -476
- package/dist/templatical-editor.js +90 -89
- package/dist/{text-align-start-B8M9hruh.js → text-align-start-BT9VUDxK.js} +1 -1
- package/dist/{trash-2-cEVwp-r_.js → trash-2-DbP2Y6t2.js} +1 -1
- package/dist/{triangle-alert-8CkexIzx.js → triangle-alert-aOXceTSe.js} +1 -1
- package/dist/{useCloudI18n-D0Fi0hBU.js → useCloudI18n-BuIwR6OE.js} +1 -1
- package/dist/{useEditorCore-D0uZbPKG.js → useEditorCore-Dz-qbVXX.js} +1709 -1661
- package/dist/{useI18n-Jp3X6Q0t.js → useI18n-lb2DHDiu.js} +1 -1
- package/dist/{useMergeTag-CEE4CG-D.js → useMergeTag-CBwKnnNB.js} +3 -3
- package/dist/{x-BNc1bVzp.js → x-u2oVmjN_.js} +1 -1
- package/package.json +10 -5
- package/dist/cdn/chunks/CloudEditor-CRYF-bR3.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Bs9B-yft.js +0 -22
- package/dist/cdn/chunks/de-BSWt7lYu.js.map +0 -1
- package/dist/cdn/chunks/dist-MGrg9tLo.js.map +0 -1
- package/dist/cdn/chunks/en-9-vIGlc7.js.map +0 -1
- package/dist/cdn/chunks/features-BnG-dhzy.js.map +0 -1
- package/dist/cdn/chunks/icons-B_185qj_.js.map +0 -1
- package/dist/cdn/chunks/styles-DYDpAUsJ.js.map +0 -1
- /package/dist/{dist-CmrXHeJS.js → dist-iLBdeBDR.js} +0 -0
- /package/dist/{emojiData-DcYt1YZ3.js → emojiData-PQyVa4bU.js} +0 -0
- /package/dist/{formatRelativeTime-MungD2xr.js → formatRelativeTime-WvH3Au71.js} +0 -0
- /package/dist/{liquid.browser-BohVA1YU.js → liquid.browser-CdMv1BTn.js} +0 -0
- /package/dist/{readableTextColor-Uc7ntzXo.js → readableTextColor-CY3SiRnt.js} +0 -0
- /package/dist/{styleConstants-Beu6EmBc.js → styleConstants-fWzlIIwN.js} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Dt as e, E as t, L as n, M as r, Mt as i, P as a, S as o, _ as s, b as c, d as l, g as u, h as d, it as f, m as p, p as m, y as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
|
|
2
|
+
import { m as g, t as _ } from "./keys-ciNfSSGj.js";
|
|
3
|
+
import { t as v } from "./useI18n-lb2DHDiu.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-C3pa2siy.js";
|
|
5
|
+
import { t as b } from "./accessibility-e8JYu_zd.js";
|
|
6
|
+
import { t as x } from "./circle-alert-DZuGWPX-.js";
|
|
7
|
+
import { t as S } from "./info-CJEC7piy.js";
|
|
8
|
+
import { t as C } from "./triangle-alert-aOXceTSe.js";
|
|
9
|
+
var w = y("arrow-right", [["path", {
|
|
10
|
+
d: "M5 12h14",
|
|
11
|
+
key: "1ays0h"
|
|
12
|
+
}], ["path", {
|
|
13
|
+
d: "m12 5 7 7-7 7",
|
|
14
|
+
key: "xquz4c"
|
|
15
|
+
}]]), T = y("wrench", [["path", {
|
|
16
|
+
d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",
|
|
17
|
+
key: "1ngwbx"
|
|
18
|
+
}]]), E = { class: "tpl:flex tpl:flex-col tpl:gap-4 tpl:p-4" }, D = { class: "tpl:flex tpl:items-center tpl:gap-2" }, O = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, k = ["title"], A = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
21
|
+
}, j = {
|
|
22
|
+
key: 1,
|
|
23
|
+
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)]"
|
|
24
|
+
}, M = { class: "tpl:ml-auto tpl:font-normal tpl:opacity-70" }, N = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
|
|
27
|
+
}, P = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, F = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, I = { class: "tpl:flex tpl:gap-1.5" }, L = ["onClick"], R = ["title", "onClick"], z = /* @__PURE__ */ o({
|
|
28
|
+
__name: "AccessibilityPanel",
|
|
29
|
+
setup(o) {
|
|
30
|
+
let { t: y, format: z } = v(), B = t(_, null), V = t(g, null), H = m(() => (B?.issues.value ?? []).filter((e) => e.severity === "error")), U = m(() => (B?.issues.value ?? []).filter((e) => e.severity === "warning")), W = m(() => (B?.issues.value ?? []).filter((e) => e.severity === "info")), G = m(() => H.value.length + U.value.length + W.value.length);
|
|
31
|
+
function K(e) {
|
|
32
|
+
V && e.blockId && V.selectBlock(e.blockId);
|
|
33
|
+
}
|
|
34
|
+
function q(e) {
|
|
35
|
+
B?.applyFix(e);
|
|
36
|
+
}
|
|
37
|
+
return (t, o) => (r(), s("div", E, [p("header", D, [
|
|
38
|
+
c(f(b), {
|
|
39
|
+
size: 16,
|
|
40
|
+
"stroke-width": 1.5
|
|
41
|
+
}),
|
|
42
|
+
p("h3", O, i(f(y).accessibility.panelTitle), 1),
|
|
43
|
+
G.value > 0 ? (r(), s("span", {
|
|
44
|
+
key: 0,
|
|
45
|
+
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)]",
|
|
46
|
+
title: f(z)(f(y).accessibility.issueCountTooltip, { count: G.value })
|
|
47
|
+
}, i(G.value), 9, k)) : u("", !0)
|
|
48
|
+
]), !f(B) || f(B).unavailable.value ? (r(), s("div", A)) : G.value === 0 ? (r(), s("div", j, i(f(y).accessibility.emptyState), 1)) : (r(!0), s(l, { key: 2 }, a([
|
|
49
|
+
{
|
|
50
|
+
key: "errors",
|
|
51
|
+
title: f(y).accessibility.groupErrors,
|
|
52
|
+
icon: f(x),
|
|
53
|
+
items: H.value,
|
|
54
|
+
tone: "tpl:text-[var(--tpl-danger)]"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "warnings",
|
|
58
|
+
title: f(y).accessibility.groupWarnings,
|
|
59
|
+
icon: f(C),
|
|
60
|
+
items: U.value,
|
|
61
|
+
tone: "tpl:text-[var(--tpl-warning)]"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "info",
|
|
65
|
+
title: f(y).accessibility.groupInfo,
|
|
66
|
+
icon: f(S),
|
|
67
|
+
items: W.value,
|
|
68
|
+
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
69
|
+
}
|
|
70
|
+
], (t) => (r(), s("section", { key: t.key }, [t.items.length > 0 ? (r(), s("header", {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: e(["tpl:mb-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-[11px] tpl:font-semibold tpl:uppercase tpl:tracking-wide", t.tone])
|
|
73
|
+
}, [
|
|
74
|
+
(r(), d(n(t.icon), {
|
|
75
|
+
size: 12,
|
|
76
|
+
"stroke-width": 2
|
|
77
|
+
})),
|
|
78
|
+
h(" " + i(t.title) + " ", 1),
|
|
79
|
+
p("span", M, i(t.items.length), 1)
|
|
80
|
+
], 2)) : u("", !0), t.items.length > 0 ? (r(), s("ul", N, [(r(!0), s(l, null, a(t.items, (e) => (r(), s("li", {
|
|
81
|
+
key: `${e.ruleId}-${e.blockId ?? "template"}`,
|
|
82
|
+
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3"
|
|
83
|
+
}, [
|
|
84
|
+
p("p", P, i(e.message), 1),
|
|
85
|
+
p("p", F, i(e.ruleId), 1),
|
|
86
|
+
p("div", I, [e.blockId ? (r(), s("button", {
|
|
87
|
+
key: 0,
|
|
88
|
+
type: "button",
|
|
89
|
+
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)]",
|
|
90
|
+
onClick: (t) => K(e)
|
|
91
|
+
}, [c(f(w), {
|
|
92
|
+
size: 10,
|
|
93
|
+
"stroke-width": 2
|
|
94
|
+
}), h(" " + i(f(y).accessibility.jump), 1)], 8, L)) : u("", !0), e.fix ? (r(), s("button", {
|
|
95
|
+
key: 1,
|
|
96
|
+
type: "button",
|
|
97
|
+
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",
|
|
98
|
+
title: e.fix.description,
|
|
99
|
+
onClick: (t) => q(e)
|
|
100
|
+
}, [c(f(T), {
|
|
101
|
+
size: 10,
|
|
102
|
+
"stroke-width": 2
|
|
103
|
+
}), h(" " + i(f(y).accessibility.fix), 1)], 8, R)) : u("", !0)])
|
|
104
|
+
]))), 128))])) : u("", !0)]))), 128))]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
export { z as default };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Dt as e, E as t, H as n, M as r, Mt as i, O as a, P as o, Q as s, S as c, V as ee, _ as l, b as u, d, g as f, h as p, it as m, k as h, m as g, s as te, t as ne, y as _, z as v } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
|
|
2
|
-
import { o as re, s as ie } from "./dist-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as le } from "./circle-alert-
|
|
6
|
-
import { t as ue } from "./loader-circle-
|
|
7
|
-
import { t as de } from "./send-
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as fe } from "./trash-2-
|
|
10
|
-
import { t as pe } from "./x-
|
|
11
|
-
import { t as me } from "./LoadingTrack-
|
|
12
|
-
import {
|
|
2
|
+
import { o as re, s as ie } from "./dist-B1IR0bpH.js";
|
|
3
|
+
import { O as y, i as ae, l as oe, m as se, v as ce } from "./keys-ciNfSSGj.js";
|
|
4
|
+
import { t as b } from "./createLucideIcon-C3pa2siy.js";
|
|
5
|
+
import { t as le } from "./circle-alert-DZuGWPX-.js";
|
|
6
|
+
import { t as ue } from "./loader-circle-DsY5Yg33.js";
|
|
7
|
+
import { t as de } from "./send-DH4oDQqC.js";
|
|
8
|
+
import { t as x } from "./sparkles-CvRXGqFs.js";
|
|
9
|
+
import { t as fe } from "./trash-2-DbP2Y6t2.js";
|
|
10
|
+
import { t as pe } from "./x-u2oVmjN_.js";
|
|
11
|
+
import { t as me } from "./LoadingTrack-B0CWFHXQ.js";
|
|
12
|
+
import { t as S } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
13
|
+
import { i as C } from "./cloud-WfWdqZVK.js";
|
|
13
14
|
var w = b("redo-2", [["path", {
|
|
14
15
|
d: "m15 14 5-5-5-5",
|
|
15
16
|
key: "12vg1m"
|
|
@@ -80,7 +81,7 @@ var D = {
|
|
|
80
81
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 50%,\n transparent\n )",
|
|
81
82
|
"backdrop-filter": "blur(2px)"
|
|
82
83
|
}
|
|
83
|
-
}, _e = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, ve = ["onClick"], ye = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xe = ["placeholder", "disabled"], Se = ["disabled"], Ce = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, V = /* @__PURE__ */
|
|
84
|
+
}, _e = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, ve = ["onClick"], ye = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xe = ["placeholder", "disabled"], Se = ["disabled"], Ce = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, V = /* @__PURE__ */ S(/* @__PURE__ */ c({
|
|
84
85
|
__name: "AiChatSidebar",
|
|
85
86
|
props: {
|
|
86
87
|
visible: { type: Boolean },
|
|
@@ -88,7 +89,7 @@ var D = {
|
|
|
88
89
|
},
|
|
89
90
|
emits: ["close"],
|
|
90
91
|
setup(c, { emit: h }) {
|
|
91
|
-
let b = c,
|
|
92
|
+
let b = c, S = h, V = y(oe, "AiChatSidebar"), H = y(se, "AiChatSidebar"), we = y(ae, "AiChatSidebar"), U = t(ce, []), W = E(), G = C({
|
|
92
93
|
authManager: we,
|
|
93
94
|
getTemplateId: () => H.state.template?.id ?? null,
|
|
94
95
|
onApply: b.onApply,
|
|
@@ -137,7 +138,7 @@ var D = {
|
|
|
137
138
|
"leave-to-class": "tpl:translate-x-full"
|
|
138
139
|
}, {
|
|
139
140
|
default: ee(() => [c.visible ? (r(), l("div", D, [
|
|
140
|
-
g("div", O, [g("div", k, [u(m(
|
|
141
|
+
g("div", O, [g("div", k, [u(m(x), {
|
|
141
142
|
size: 13,
|
|
142
143
|
"stroke-width": 2
|
|
143
144
|
}), g("span", null, i(m(V).aiChat.title), 1)]), g("div", A, [(m(G).messages.value?.length ?? 0) > 0 ? (r(), l("button", {
|
|
@@ -150,7 +151,7 @@ var D = {
|
|
|
150
151
|
"stroke-width": 2
|
|
151
152
|
})], 8, j)) : f("", !0), g("button", {
|
|
152
153
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
153
|
-
onClick: a[1] ||= (e) =>
|
|
154
|
+
onClick: a[1] ||= (e) => S("close")
|
|
154
155
|
}, [u(m(pe), {
|
|
155
156
|
size: 14,
|
|
156
157
|
"stroke-width": 2
|
|
@@ -164,7 +165,7 @@ var D = {
|
|
|
164
165
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
165
166
|
size: 24,
|
|
166
167
|
"stroke-width": 2
|
|
167
|
-
}), g("p", P, i(m(V).aiChat.loadingHistory), 1)])) : (m(G).messages.value?.length ?? 0) === 0 ? (r(), l("div", F, [u(m(
|
|
168
|
+
}), g("p", P, i(m(V).aiChat.loadingHistory), 1)])) : (m(G).messages.value?.length ?? 0) === 0 ? (r(), l("div", F, [u(m(x), {
|
|
168
169
|
size: 32,
|
|
169
170
|
"stroke-width": 1.5,
|
|
170
171
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { L as e, M as t, Mt as n, Ot as r, P as i, S as a, _ as o, d as s, h as c, m as l, p as u } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import {
|
|
4
|
-
import { t as p } from "./
|
|
5
|
-
import { t as m } from "./
|
|
6
|
-
import { t as h } from "./
|
|
7
|
-
import { t as g } from "./
|
|
8
|
-
import { n as _ } from "./useCloudI18n-
|
|
2
|
+
import "./useEditorCore-Dz-qbVXX.js";
|
|
3
|
+
import { O as d, n as f } from "./keys-ciNfSSGj.js";
|
|
4
|
+
import { t as p } from "./image-up-MBZKKg9p.js";
|
|
5
|
+
import { t as m } from "./shield-check-CfJgs2Hd.js";
|
|
6
|
+
import { t as h } from "./sparkles-CvRXGqFs.js";
|
|
7
|
+
import { t as g } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
8
|
+
import { n as _ } from "./useCloudI18n-BuIwR6OE.js";
|
|
9
9
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var v = {
|
|
11
11
|
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)]",
|
|
@@ -13,27 +13,27 @@ var v = {
|
|
|
13
13
|
"backdrop-filter": "blur(8px)",
|
|
14
14
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
15
15
|
}
|
|
16
|
-
}, 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__ */
|
|
16
|
+
}, 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__ */ g(/* @__PURE__ */ a({
|
|
17
17
|
__name: "AiFeatureMenu",
|
|
18
18
|
props: { activeFeature: {} },
|
|
19
19
|
emits: ["select"],
|
|
20
|
-
setup(a, { emit:
|
|
21
|
-
let C =
|
|
20
|
+
setup(a, { emit: g }) {
|
|
21
|
+
let C = g, { t: w } = _(), T = d(f, "AiFeatureMenu"), E = {
|
|
22
22
|
"ai-chat": "chat",
|
|
23
23
|
"design-reference": "designToTemplate",
|
|
24
24
|
scoring: "scoring"
|
|
25
25
|
}, D = [
|
|
26
26
|
{
|
|
27
27
|
key: "ai-chat",
|
|
28
|
-
icon:
|
|
28
|
+
icon: h
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
key: "design-reference",
|
|
32
|
-
icon:
|
|
32
|
+
icon: p
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
key: "scoring",
|
|
36
|
-
icon:
|
|
36
|
+
icon: m
|
|
37
37
|
}
|
|
38
38
|
], O = u(() => D.filter((e) => T.isFeatureEnabled(E[e.key])));
|
|
39
39
|
function k(e) {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Dt as e, E as t, M as n, S as r, _ as i, g as a, h as o, it as s, p as c } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
|
|
2
|
+
import { t as l } from "./keys-ciNfSSGj.js";
|
|
3
|
+
import { t as u } from "./useI18n-lb2DHDiu.js";
|
|
4
|
+
import { t as d } from "./circle-alert-DZuGWPX-.js";
|
|
5
|
+
import { t as f } from "./triangle-alert-aOXceTSe.js";
|
|
6
|
+
//#region src/components/canvas/BlockA11yBadge.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var p = ["title", "aria-label"], m = /* @__PURE__ */ r({
|
|
8
|
+
__name: "BlockA11yBadge",
|
|
9
|
+
props: { blockId: {} },
|
|
10
|
+
setup(r) {
|
|
11
|
+
let m = r, { t: h } = u(), g = t(l, null), _ = c(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = c(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = c(() => v.value === "error" ? h.accessibility.badgeError : h.accessibility.badgeWarning);
|
|
12
|
+
return (t, r) => v.value ? (n(), i("span", {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: e(["tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
|
|
15
|
+
title: y.value,
|
|
16
|
+
"aria-label": y.value,
|
|
17
|
+
role: "img"
|
|
18
|
+
}, [v.value === "error" ? (n(), o(s(d), {
|
|
19
|
+
key: 0,
|
|
20
|
+
size: 14,
|
|
21
|
+
"stroke-width": 2.25,
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
stroke: "var(--tpl-bg)"
|
|
24
|
+
})) : (n(), o(s(f), {
|
|
25
|
+
key: 1,
|
|
26
|
+
size: 14,
|
|
27
|
+
"stroke-width": 2.25,
|
|
28
|
+
fill: "currentColor",
|
|
29
|
+
stroke: "var(--tpl-bg)"
|
|
30
|
+
}))], 10, p)) : a("", !0);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { m as default };
|