@aswin.dev/editor 0.6.3 → 0.7.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.
Files changed (158) hide show
  1. package/dist/AccessibilityPanel-CvQGLdu6.js +108 -0
  2. package/dist/AiChatSidebar-B3SJIKG_.js +229 -0
  3. package/dist/AiFeatureMenu-BLLKoOos.js +63 -0
  4. package/dist/BlockA11yBadge-CXDLqkcJ.js +34 -0
  5. package/dist/CloudEditor-BCz1ZTYC.js +1172 -0
  6. package/dist/CollaboratorBar-DuPYW5iF.js +95 -0
  7. package/dist/CommentsSidebar-B1pvJdqF.js +441 -0
  8. package/dist/CountdownBlock-BNSj1jvJ.js +92 -0
  9. package/dist/CountdownToolbar-ClJr2GzL.js +210 -0
  10. package/dist/DesignReferenceSidebar-B8V_F2yF.js +276 -0
  11. package/dist/LoadingTrack-B0CWFHXQ.js +10 -0
  12. package/dist/ModuleBrowserModal-DrUFMTDx.js +206 -0
  13. package/dist/ModulePreviewCanvas-CHdOwV_4.js +106 -0
  14. package/dist/NumberWithSuffix-DkXUez9t.js +422 -0
  15. package/dist/ParagraphEditor-D75wl3BX.js +695 -0
  16. package/dist/RichTextEditorContent-DYkIauIk.js +137 -0
  17. package/dist/SaveModuleDialog-FZ9lxY7_.js +123 -0
  18. package/dist/SnapshotHistory-BR3eV120.js +127 -0
  19. package/dist/TemplateScoringPanel-4GTNHej5.js +256 -0
  20. package/dist/TestEmailModal--ue5w9fT.js +94 -0
  21. package/dist/TitleEditor-fStSADI-.js +172 -0
  22. package/dist/TplModal-BwSfxIHf.js +44 -0
  23. package/dist/_plugin-vue_export-helper-B0hnzhyu.js +8 -0
  24. package/dist/accessibility-e8JYu_zd.js +27 -0
  25. package/dist/blockTypeIcons-BcTrDjmH.js +126 -0
  26. package/dist/bundle-stats.json +10 -0
  27. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js +97 -0
  28. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js.map +1 -0
  29. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js +59 -0
  30. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +1 -0
  31. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js +33 -0
  32. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js.map +1 -0
  33. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +1143 -0
  34. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +1 -0
  35. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js +51 -0
  36. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +1 -0
  37. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +93 -0
  38. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +1 -0
  39. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +212 -0
  40. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +1 -0
  41. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +195 -0
  42. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +1 -0
  43. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +107 -0
  44. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +1 -0
  45. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js +423 -0
  46. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js.map +1 -0
  47. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js +544 -0
  48. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js.map +1 -0
  49. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js +106 -0
  50. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js.map +1 -0
  51. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js +119 -0
  52. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +1 -0
  53. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js +171 -0
  54. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +1 -0
  55. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +22 -0
  56. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +1 -0
  57. package/dist/cdn/chunks/de-Ce-LbJ2J.js +89 -0
  58. package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +1 -0
  59. package/dist/cdn/chunks/de-D8CnZxV9.js +523 -0
  60. package/dist/cdn/chunks/de-D8CnZxV9.js.map +1 -0
  61. package/dist/cdn/chunks/de-RQrZR56a.js +209 -0
  62. package/dist/cdn/chunks/de-RQrZR56a.js.map +1 -0
  63. package/dist/cdn/chunks/draggable-Bcb86AsV.js +11572 -0
  64. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
  65. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +19 -0
  66. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +1 -0
  67. package/dist/cdn/chunks/en-8FHaQv4V.js +523 -0
  68. package/dist/cdn/chunks/en-8FHaQv4V.js.map +1 -0
  69. package/dist/cdn/chunks/en-Bl1ecfRF.js +209 -0
  70. package/dist/cdn/chunks/en-Bl1ecfRF.js.map +1 -0
  71. package/dist/cdn/chunks/en-DiCWK5fG.js +89 -0
  72. package/dist/cdn/chunks/en-DiCWK5fG.js.map +1 -0
  73. package/dist/cdn/chunks/extensions-DIxF31tA.js +598 -0
  74. package/dist/cdn/chunks/extensions-DIxF31tA.js.map +1 -0
  75. package/dist/cdn/chunks/features-DEMb13KS.js +6814 -0
  76. package/dist/cdn/chunks/features-DEMb13KS.js.map +1 -0
  77. package/dist/cdn/chunks/icons-CsLTcirh.js +700 -0
  78. package/dist/cdn/chunks/icons-CsLTcirh.js.map +1 -0
  79. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +3279 -0
  80. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +1 -0
  81. package/dist/cdn/chunks/media-library-CVaNvhpM.js +6014 -0
  82. package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +1 -0
  83. package/dist/cdn/chunks/pusher-CDbNlZBE.js +2508 -0
  84. package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +1 -0
  85. package/dist/cdn/chunks/quality-BaBfc54_.js +1456 -0
  86. package/dist/cdn/chunks/quality-BaBfc54_.js.map +1 -0
  87. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +32 -0
  88. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +1 -0
  89. package/dist/cdn/chunks/renderer-CUxvx7ro.js +548 -0
  90. package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +1 -0
  91. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +20 -0
  92. package/dist/cdn/chunks/src-CRaqN-p8.js +497 -0
  93. package/dist/cdn/chunks/src-CRaqN-p8.js.map +1 -0
  94. package/dist/cdn/chunks/styleConstants-DP1VOca8.js +57 -0
  95. package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +1 -0
  96. package/dist/cdn/chunks/styles-BHJULjNR.js +2947 -0
  97. package/dist/cdn/chunks/styles-BHJULjNR.js.map +1 -0
  98. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js +14654 -0
  99. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js.map +1 -0
  100. package/dist/cdn/editor.css +2 -0
  101. package/dist/cdn/editor.js +250 -0
  102. package/dist/cdn/editor.js.map +1 -0
  103. package/dist/check-Da05j8yl.js +7 -0
  104. package/dist/chevron-down-R2uY34iD.js +7 -0
  105. package/dist/circle-alert-DZuGWPX-.js +25 -0
  106. package/dist/clock-CRp2sIub.js +12 -0
  107. package/dist/cloud-DEk_b4CR.js +1733 -0
  108. package/dist/createLucideIcon-C3pa2siy.js +43 -0
  109. package/dist/de-Brqvgr43.js +521 -0
  110. package/dist/de-DCaaCE5s.js +207 -0
  111. package/dist/dist-B1IR0bpH.js +326 -0
  112. package/dist/dist-BFawx6IS.js +519 -0
  113. package/dist/dist-BaQIYPsn.js +35 -0
  114. package/dist/dist-Cp0zXPAD.js +189 -0
  115. package/dist/dist-D6uC2xhi.js +5 -0
  116. package/dist/dist-D90y8dvT.js +2082 -0
  117. package/dist/dist-DDJIWTRY.js +776 -0
  118. package/dist/dist-DJmnUmW9.js +362 -0
  119. package/dist/dist-DjviJBCi.js +74 -0
  120. package/dist/dist-KoBJjK1G.js +61 -0
  121. package/dist/dist-aRzjfSRN.js +35 -0
  122. package/dist/dist-iLBdeBDR.js +10658 -0
  123. package/dist/dist-us-RpCWN.js +47 -0
  124. package/dist/dist-wzMIGj-D.js +5 -0
  125. package/dist/emojiData-PQyVa4bU.js +17 -0
  126. package/dist/en-DXCyK4-X.js +207 -0
  127. package/dist/en-WDVp87TE.js +521 -0
  128. package/dist/extensions-CUcl9Ok4.js +799 -0
  129. package/dist/formatRelativeTime-BOEf47hq.js +12 -0
  130. package/dist/image-up-MBZKKg9p.js +23 -0
  131. package/dist/index.d.ts +275 -0
  132. package/dist/info-CJEC7piy.js +19 -0
  133. package/dist/keys-ciNfSSGj.js +10 -0
  134. package/dist/liquid.browser-CdMv1BTn.js +3277 -0
  135. package/dist/loader-circle-DsY5Yg33.js +7 -0
  136. package/dist/message-circle-yElBbR2C.js +7 -0
  137. package/dist/readableTextColor-CY3SiRnt.js +30 -0
  138. package/dist/refresh-cw-CE_AGtn8.js +29 -0
  139. package/dist/rolldown-runtime-BZGGJVDF.js +20 -0
  140. package/dist/scan-line-D0vcUekt.js +25 -0
  141. package/dist/send-DH4oDQqC.js +10 -0
  142. package/dist/shield-check-CfJgs2Hd.js +10 -0
  143. package/dist/sparkles-CvRXGqFs.js +23 -0
  144. package/dist/style.css +2 -0
  145. package/dist/styleConstants-fWzlIIwN.js +55 -0
  146. package/dist/styles-DEXEkBvg.js +3176 -0
  147. package/dist/templatical-editor.js +249 -0
  148. package/dist/text-align-start-BT9VUDxK.js +43 -0
  149. package/dist/timeouts-BSGxjuUF.js +4 -0
  150. package/dist/trash-2-DbP2Y6t2.js +25 -0
  151. package/dist/triangle-alert-aOXceTSe.js +17 -0
  152. package/dist/useCloudI18n-BuIwR6OE.js +23 -0
  153. package/dist/useEditorCore-C6ost42Q.js +9342 -0
  154. package/dist/useI18n-lb2DHDiu.js +17 -0
  155. package/dist/useMergeTag-CBwKnnNB.js +34 -0
  156. package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +5775 -0
  157. package/dist/x-u2oVmjN_.js +10 -0
  158. package/package.json +1 -1
@@ -0,0 +1,94 @@
1
+ import { Dt as e, H as t, M as n, Mt as r, P as i, Q as a, S as o, V as s, _ as c, b as l, d as u, g as d, h as f, it as p, m, o as h, y as g, z as _ } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
+ import "./useEditorCore-C6ost42Q.js";
3
+ import { t as v } from "./loader-circle-DsY5Yg33.js";
4
+ import { n as y } from "./useCloudI18n-BuIwR6OE.js";
5
+ import { t as b } from "./TplModal-BwSfxIHf.js";
6
+ //#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
7
+ var x = ["aria-busy"], S = {
8
+ id: "tpl-test-email-title",
9
+ class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
10
+ }, C = { class: "tpl:mb-3" }, w = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, T = ["value"], E = ["disabled"], D = ["value"], O = {
11
+ key: 0,
12
+ role: "alert",
13
+ class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
14
+ }, k = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = {
15
+ key: 0,
16
+ class: "tpl:flex tpl:items-center tpl:gap-1.5"
17
+ }, N = { key: 1 }, P = /* @__PURE__ */ o({
18
+ __name: "TestEmailModal",
19
+ props: {
20
+ visible: { type: Boolean },
21
+ allowedEmails: {},
22
+ isSending: { type: Boolean },
23
+ error: {}
24
+ },
25
+ emits: ["send", "close"],
26
+ setup(o, { emit: P }) {
27
+ let F = o, I = P, { t: L } = y(), R = a("");
28
+ _(() => F.visible, (e) => {
29
+ e && (R.value = F.allowedEmails[0] ?? "");
30
+ });
31
+ function z() {
32
+ !R.value || F.isSending || I("send", R.value);
33
+ }
34
+ function B() {
35
+ F.isSending || I("close");
36
+ }
37
+ function V(e) {
38
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
39
+ }
40
+ return (a, _) => (n(), f(b, {
41
+ visible: o.visible,
42
+ onClose: B,
43
+ onKeydown: V
44
+ }, {
45
+ default: s(() => [m("div", {
46
+ role: "dialog",
47
+ "aria-modal": "true",
48
+ "aria-busy": o.isSending,
49
+ "aria-labelledby": "tpl-test-email-title",
50
+ class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
51
+ style: {
52
+ "background-color": "var(--tpl-bg-elevated)",
53
+ "box-shadow": "var(--tpl-shadow-xl)"
54
+ }
55
+ }, [
56
+ m("h3", S, r(p(L).testEmail.title), 1),
57
+ m("div", C, [m("label", w, r(p(L).testEmail.recipientLabel), 1), o.allowedEmails.length === 1 ? (n(), c("input", {
58
+ key: 0,
59
+ type: "text",
60
+ value: R.value,
61
+ disabled: "",
62
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
63
+ }, null, 8, T)) : t((n(), c("select", {
64
+ key: 1,
65
+ "onUpdate:modelValue": _[0] ||= (e) => R.value = e,
66
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
67
+ disabled: o.isSending
68
+ }, [(n(!0), c(u, null, i(o.allowedEmails, (e) => (n(), c("option", {
69
+ key: e,
70
+ value: e
71
+ }, r(e), 9, D))), 128))], 8, E)), [[h, R.value]])]),
72
+ o.error ? (n(), c("p", O, r(o.error), 1)) : d("", !0),
73
+ m("div", k, [m("button", {
74
+ type: "button",
75
+ class: e(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": o.isSending }]),
76
+ disabled: o.isSending,
77
+ onClick: B
78
+ }, r(p(L).testEmail.cancel), 11, A), m("button", {
79
+ type: "button",
80
+ class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
81
+ disabled: !R.value || o.isSending,
82
+ onClick: z
83
+ }, [o.isSending ? (n(), c("span", M, [l(p(v), {
84
+ class: "tpl:animate-spin",
85
+ size: 12,
86
+ "stroke-width": 2
87
+ }), g(" " + r(p(L).testEmail.sending), 1)])) : (n(), c("span", N, r(p(L).testEmail.send), 1))], 8, j)])
88
+ ], 8, x)]),
89
+ _: 1
90
+ }, 8, ["visible"]));
91
+ }
92
+ });
93
+ //#endregion
94
+ export { P as default };
@@ -0,0 +1,172 @@
1
+ import { Dt as e, E as t, M as n, Mt as r, Ot as i, S as a, _ as o, b as s, d as c, f as l, g as u, h as d, it as f, m as p, q as m, y as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
+ import { b as g } from "./useEditorCore-C6ost42Q.js";
3
+ import { D as _, T as v } from "./keys-ciNfSSGj.js";
4
+ import { t as y } from "./useI18n-lb2DHDiu.js";
5
+ import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-DYkIauIk.js";
6
+ import { t as T } from "./loader-circle-DsY5Yg33.js";
7
+ import { t as E } from "./scan-line-D0vcUekt.js";
8
+ //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
9
+ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
10
+ key: 0,
11
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
12
+ }, M = ["aria-label", "title"], N = {
13
+ key: 1,
14
+ class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
15
+ }, P = /* @__PURE__ */ a({
16
+ __name: "TitleEditor",
17
+ props: {
18
+ block: {},
19
+ toolbarPosition: {}
20
+ },
21
+ emits: ["done"],
22
+ setup(a, { emit: P }) {
23
+ let F = a, I = P, L = t(v, null), R = t(_, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
24
+ blockId: () => F.block.id,
25
+ blockContent: () => F.block.content,
26
+ onDone: () => I("done"),
27
+ editorName: "TitleEditor",
28
+ async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
29
+ let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
30
+ import("./dist-BFawx6IS.js").then((e) => e.r),
31
+ import("./dist-D90y8dvT.js"),
32
+ import("./dist-DDJIWTRY.js"),
33
+ import("./extensions-CUcl9Ok4.js")
34
+ ]);
35
+ return {
36
+ TiptapEditor: a,
37
+ EC: o,
38
+ extensions: [
39
+ s.configure({
40
+ heading: !1,
41
+ codeBlock: !1,
42
+ blockquote: !1,
43
+ horizontalRule: !1,
44
+ bulletList: !1,
45
+ orderedList: !1,
46
+ listItem: !1,
47
+ strike: !1
48
+ }),
49
+ c.configure({
50
+ openOnClick: !1,
51
+ HTMLAttributes: {
52
+ target: "_blank",
53
+ rel: "noopener noreferrer"
54
+ }
55
+ }),
56
+ l.configure({
57
+ mergeTags: e,
58
+ syntax: t
59
+ }),
60
+ d.configure({ syntax: t }),
61
+ ...r && n && e.length > 0 ? [u.configure({
62
+ mergeTags: e,
63
+ char: n,
64
+ emptyText: i
65
+ })] : []
66
+ ]
67
+ };
68
+ }
69
+ });
70
+ return (t, g) => (n(), o("div", ee, [
71
+ (n(), d(l, { to: "body" }, [p("div", {
72
+ "data-tpl-theme": f(R),
73
+ role: "toolbar",
74
+ "aria-label": f(z).titleEditor.toolbar,
75
+ class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:items-center 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",
76
+ style: i({
77
+ ...f(L),
78
+ top: `${a.toolbarPosition.top}px`,
79
+ left: `${a.toolbarPosition.left}px`,
80
+ transform: "translateY(-100%)"
81
+ })
82
+ }, [!f(H) && f(B) ? (n(), o(c, { key: 0 }, [
83
+ p("button", {
84
+ type: "button",
85
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("bold") }]),
86
+ "aria-label": f(z).titleEditor.bold,
87
+ title: f(z).titleEditor.bold,
88
+ onClick: g[0] ||= (e) => f(B)?.chain().focus().toggleBold().run()
89
+ }, [s(f(b), {
90
+ size: 16,
91
+ "stroke-width": 2.5
92
+ })], 10, O),
93
+ p("button", {
94
+ type: "button",
95
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("italic") }]),
96
+ "aria-label": f(z).titleEditor.italic,
97
+ title: f(z).titleEditor.italic,
98
+ onClick: g[1] ||= (e) => f(B)?.chain().focus().toggleItalic().run()
99
+ }, [s(f(x), {
100
+ size: 16,
101
+ "stroke-width": 2
102
+ })], 10, k),
103
+ g[6] ||= p("span", {
104
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
105
+ "aria-hidden": "true"
106
+ }, null, -1),
107
+ p("button", {
108
+ type: "button",
109
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(B)?.isActive("link") }]),
110
+ "aria-label": f(z).titleEditor.addLink,
111
+ title: f(z).titleEditor.addLink,
112
+ onClick: g[2] ||= (...e) => f(Y) && f(Y)(...e)
113
+ }, [s(f(C), {
114
+ size: 16,
115
+ "stroke-width": 2
116
+ })], 10, A),
117
+ f(J) ? (n(), o("span", j)) : u("", !0),
118
+ f(J) ? (n(), o("button", {
119
+ key: 1,
120
+ type: "button",
121
+ 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)]",
122
+ "aria-label": f(z).mergeTag.add,
123
+ title: f(z).mergeTag.add,
124
+ onClick: g[3] ||= (...e) => f($) && f($)(...e)
125
+ }, [s(f(E), {
126
+ size: 16,
127
+ "stroke-width": 2
128
+ }), h(" " + r(f(z).mergeTag.add), 1)], 8, M)) : u("", !0)
129
+ ], 64)) : (n(), o("div", N, [s(f(T), {
130
+ class: "tpl-spinner",
131
+ size: 14,
132
+ "stroke-width": 2
133
+ }), h(" " + r(f(z).errors.editorLoading), 1)]))], 12, D)])),
134
+ s(w, {
135
+ editor: f(B),
136
+ "editor-content": f(V),
137
+ "is-loading": f(H),
138
+ "init-error": f(U),
139
+ onRetry: f(W)
140
+ }, null, 8, [
141
+ "editor",
142
+ "editor-content",
143
+ "is-loading",
144
+ "init-error",
145
+ "onRetry"
146
+ ]),
147
+ s(S, {
148
+ visible: f(G),
149
+ "is-editing-link": f(B)?.isActive("link") ?? !1,
150
+ "dialog-ref": f(q),
151
+ "onUpdate:dialogRef": g[4] ||= (e) => m(q) ? q.value = e : null,
152
+ "link-url": f(K),
153
+ "onUpdate:linkUrl": g[5] ||= (e) => m(K) ? K.value = e : null,
154
+ onClose: f(Q),
155
+ onInsert: f(X),
156
+ onRemove: f(Z),
157
+ onKeydown: f(te)
158
+ }, null, 8, [
159
+ "visible",
160
+ "is-editing-link",
161
+ "dialog-ref",
162
+ "link-url",
163
+ "onClose",
164
+ "onInsert",
165
+ "onRemove",
166
+ "onKeydown"
167
+ ])
168
+ ]));
169
+ }
170
+ });
171
+ //#endregion
172
+ export { P as default };
@@ -0,0 +1,44 @@
1
+ import { E as e, F as t, M as n, Q as r, S as i, V as a, _ as o, b as s, f as c, g as l, h as u, it as d, m as f, p, t as m, u as h } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
2
+ import { w as g } from "./useEditorCore-C6ost42Q.js";
3
+ import { D as _ } from "./keys-ciNfSSGj.js";
4
+ //#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
5
+ var v = ["data-tpl-theme"], y = /* @__PURE__ */ i({
6
+ __name: "TplModal",
7
+ props: { visible: { type: Boolean } },
8
+ emits: ["close", "keydown"],
9
+ setup(i, { emit: y }) {
10
+ let b = i, x = y, S = r(null);
11
+ g(S, p(() => b.visible));
12
+ let C = e(_);
13
+ function w(e) {
14
+ e.key === "Escape" && x("close"), x("keydown", e);
15
+ }
16
+ return (e, r) => (n(), u(c, { to: "body" }, [s(m, {
17
+ "enter-active-class": "tpl:transition tpl:duration-150",
18
+ "enter-from-class": "tpl:opacity-0",
19
+ "enter-to-class": "tpl:opacity-100",
20
+ "leave-active-class": "tpl:transition tpl:duration-100",
21
+ "leave-from-class": "tpl:opacity-100",
22
+ "leave-to-class": "tpl:opacity-0"
23
+ }, {
24
+ default: a(() => [i.visible ? (n(), o("div", {
25
+ key: 0,
26
+ "data-tpl-theme": d(C),
27
+ class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
28
+ style: {
29
+ "background-color": "var(--tpl-overlay)",
30
+ "backdrop-filter": "blur(8px)",
31
+ "-webkit-backdrop-filter": "blur(8px)"
32
+ },
33
+ onClick: r[0] ||= h((e) => x("close"), ["self"]),
34
+ onKeydown: w
35
+ }, [f("div", {
36
+ ref_key: "dialogRef",
37
+ ref: S
38
+ }, [t(e.$slots, "default")], 512)], 40, v)) : l("", !0)]),
39
+ _: 3
40
+ })]));
41
+ }
42
+ });
43
+ //#endregion
44
+ export { y as t };
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,27 @@
1
+ import { t as e } from "./createLucideIcon-C3pa2siy.js";
2
+ var t = e("accessibility", [
3
+ ["circle", {
4
+ cx: "16",
5
+ cy: "4",
6
+ r: "1",
7
+ key: "1grugj"
8
+ }],
9
+ ["path", {
10
+ d: "m18 19 1-7-6 1",
11
+ key: "r0i19z"
12
+ }],
13
+ ["path", {
14
+ d: "m5 8 3-3 5.5 3-2.36 3.5",
15
+ key: "9ptxx2"
16
+ }],
17
+ ["path", {
18
+ d: "M4.24 14.5a5 5 0 0 0 6.88 6",
19
+ key: "10kmtu"
20
+ }],
21
+ ["path", {
22
+ d: "M13.76 17.5a5 5 0 0 0-6.88-6",
23
+ key: "2qq6rc"
24
+ }]
25
+ ]);
26
+ //#endregion
27
+ export { t };
@@ -0,0 +1,126 @@
1
+ import { D as e, E as t, M as n, O as r, k as i } from "./useEditorCore-C6ost42Q.js";
2
+ import { t as a } from "./createLucideIcon-C3pa2siy.js";
3
+ var o = a("columns-3", [
4
+ ["rect", {
5
+ width: "18",
6
+ height: "18",
7
+ x: "3",
8
+ y: "3",
9
+ rx: "2",
10
+ key: "afitv7"
11
+ }],
12
+ ["path", {
13
+ d: "M9 3v18",
14
+ key: "fh3hqa"
15
+ }],
16
+ ["path", {
17
+ d: "M15 3v18",
18
+ key: "14nvp0"
19
+ }]
20
+ ]), s = a("heading", [
21
+ ["path", {
22
+ d: "M6 12h12",
23
+ key: "8npq4p"
24
+ }],
25
+ ["path", {
26
+ d: "M6 20V4",
27
+ key: "1w1bmo"
28
+ }],
29
+ ["path", {
30
+ d: "M18 20V4",
31
+ key: "o2hl4u"
32
+ }]
33
+ ]), c = a("minus", [["path", {
34
+ d: "M5 12h14",
35
+ key: "1ays0h"
36
+ }]]), l = a("move-vertical", [
37
+ ["path", {
38
+ d: "M12 2v20",
39
+ key: "t6zp3m"
40
+ }],
41
+ ["path", {
42
+ d: "m8 18 4 4 4-4",
43
+ key: "bh5tu3"
44
+ }],
45
+ ["path", {
46
+ d: "m8 6 4-4 4 4",
47
+ key: "ybng9g"
48
+ }]
49
+ ]), u = a("package", [
50
+ ["path", {
51
+ 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
+ key: "1a0edw"
53
+ }],
54
+ ["path", {
55
+ d: "M12 22V12",
56
+ key: "d0xqtd"
57
+ }],
58
+ ["polyline", {
59
+ points: "3.29 7 12 12 20.71 7",
60
+ key: "ousv84"
61
+ }],
62
+ ["path", {
63
+ d: "m7.5 4.27 9 5.15",
64
+ key: "1c824w"
65
+ }]
66
+ ]), d = a("pilcrow", [
67
+ ["path", {
68
+ d: "M13 4v16",
69
+ key: "8vvj80"
70
+ }],
71
+ ["path", {
72
+ d: "M17 4v16",
73
+ key: "7dpous"
74
+ }],
75
+ ["path", {
76
+ d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13",
77
+ key: "sh4n9v"
78
+ }]
79
+ ]), f = a("play", [["path", {
80
+ 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
+ key: "10ikf1"
82
+ }]]), p = {
83
+ section: o,
84
+ title: s,
85
+ paragraph: d,
86
+ image: i,
87
+ button: a("rectangle-horizontal", [["rect", {
88
+ width: "20",
89
+ height: "12",
90
+ x: "2",
91
+ y: "6",
92
+ rx: "2",
93
+ key: "9lu3g6"
94
+ }]]),
95
+ divider: c,
96
+ video: f,
97
+ social: e,
98
+ menu: r,
99
+ table: t,
100
+ spacer: l,
101
+ countdown: a("timer", [
102
+ ["line", {
103
+ x1: "10",
104
+ x2: "14",
105
+ y1: "2",
106
+ y2: "2",
107
+ key: "14vaq8"
108
+ }],
109
+ ["line", {
110
+ x1: "12",
111
+ x2: "15",
112
+ y1: "14",
113
+ y2: "11",
114
+ key: "17fdiu"
115
+ }],
116
+ ["circle", {
117
+ cx: "12",
118
+ cy: "14",
119
+ r: "8",
120
+ key: "1e1u0o"
121
+ }]
122
+ ]),
123
+ html: n
124
+ };
125
+ //#endregion
126
+ export { u as n, c as r, p as t };
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "0.6.3",
3
+ "initialGzipBytes": 214031,
4
+ "initialRawBytes": 728243,
5
+ "initialFileCount": 33,
6
+ "lazyGzipBytes": 255677,
7
+ "lazyRawBytes": 891447,
8
+ "lazyFileCount": 45,
9
+ "generatedAt": "2026-05-09T11:56:13.496Z"
10
+ }
@@ -0,0 +1,97 @@
1
+ import { E as e, F as t, N as n, R as r, S as i, _ as a, at as o, b as s, d as c, g as l, h as u, lt as d, m as f, p, st as m, y as h } from "./draggable-Bcb86AsV.js";
2
+ import { Kt as g, Nt as _, Pt as v, Tt as y, _t as b, at as x } from "./features-DEMb13KS.js";
3
+ import { Q as S, Z as C, t as w } from "./icons-CsLTcirh.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__ */ i({
15
+ __name: "AccessibilityPanel",
16
+ setup(i) {
17
+ let { t: R, format: z } = _(), B = e(v, null), V = e(g, null), H = p(() => (B?.issues.value ?? []).filter((e) => e.severity === "error")), U = p(() => (B?.issues.value ?? []).filter((e) => e.severity === "warning")), W = p(() => (B?.issues.value ?? []).filter((e) => e.severity === "info")), G = p(() => 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, i) => (n(), a("div", T, [f("header", E, [
25
+ s(o(S), {
26
+ size: 16,
27
+ "stroke-width": 1.5
28
+ }),
29
+ f("h3", D, d(o(R).accessibility.panelTitle), 1),
30
+ G.value > 0 ? (n(), a("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
+ }, d(G.value), 9, O)) : l("", !0)
35
+ ]), !o(B) || o(B).unavailable.value ? (n(), a("div", k)) : G.value === 0 ? (n(), a("div", A, d(o(R).accessibility.emptyState), 1)) : (n(!0), a(c, { key: 2 }, t([
36
+ {
37
+ key: "errors",
38
+ title: o(R).accessibility.groupErrors,
39
+ icon: o(y),
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(b),
54
+ items: W.value,
55
+ tone: "tpl:text-[var(--tpl-text-muted)]"
56
+ }
57
+ ], (e) => (n(), a("section", { key: e.key }, [e.items.length > 0 ? (n(), a("header", {
58
+ key: 0,
59
+ class: m(["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
+ (n(), u(r(e.icon), {
62
+ size: 12,
63
+ "stroke-width": 2
64
+ })),
65
+ h(" " + d(e.title) + " ", 1),
66
+ f("span", j, d(e.items.length), 1)
67
+ ], 2)) : l("", !0), e.items.length > 0 ? (n(), a("ul", M, [(n(!0), a(c, null, t(e.items, (e) => (n(), a("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
+ f("p", N, d(e.message), 1),
72
+ f("p", P, d(e.ruleId), 1),
73
+ f("div", F, [e.blockId ? (n(), a("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
+ }, [s(o(C), {
79
+ size: 10,
80
+ "stroke-width": 2
81
+ }), h(" " + d(o(R).accessibility.jump), 1)], 8, I)) : l("", !0), e.fix ? (n(), a("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
+ }, [s(o(w), {
88
+ size: 10,
89
+ "stroke-width": 2
90
+ }), h(" " + d(o(R).accessibility.fix), 1)], 8, L)) : l("", !0)])
91
+ ]))), 128))])) : l("", !0)]))), 128))]));
92
+ }
93
+ });
94
+ //#endregion
95
+ export { R as default };
96
+
97
+ //# sourceMappingURL=AccessibilityPanel-B6DOjojm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessibilityPanel-B6DOjojm.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":"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"}