@aswin.dev/editor 0.8.4 → 0.8.7

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 (90) hide show
  1. package/dist/{AccessibilityPanel-COL6Wm7p.js → AccessibilityPanel-B39ct5ON.js} +2 -2
  2. package/dist/{AiChatSidebar-DAJOuHPG.js → AiChatSidebar-CYh7SPHW.js} +2 -2
  3. package/dist/{AiFeatureMenu-CKnEDzme.js → AiFeatureMenu-D9UhqJAa.js} +3 -3
  4. package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-Dr854uEe.js} +2 -2
  5. package/dist/{CloudEditor-DzdiTmvD.js → CloudEditor-BNEIze18.js} +282 -275
  6. package/dist/{CollaboratorBar-C6TfqpyV.js → CollaboratorBar-DZXuPSfU.js} +2 -2
  7. package/dist/{CommentsSidebar-DE6ZsM4D.js → CommentsSidebar-BVKFtxml.js} +4 -4
  8. package/dist/{CountdownBlock-Ba3T-i2X.js → CountdownBlock-CrpaDWze.js} +1 -1
  9. package/dist/{CountdownToolbar-B9IAZzeV.js → CountdownToolbar-D1tb2T_b.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-C6yDJlD8.js → DesignReferenceSidebar-_QsmFpE_.js} +44 -44
  11. package/dist/{ModuleBrowserModal-DUKuDjS-.js → ModuleBrowserModal-Bth1crh_.js} +7 -7
  12. package/dist/{ModulePreviewCanvas-C9HTjfkN.js → ModulePreviewCanvas-96pndrb9.js} +3 -3
  13. package/dist/{ParagraphEditor-CFuaZKGk.js → ParagraphEditor-C2d9O2P4.js} +123 -123
  14. package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-Cn0ZU41b.js} +3 -3
  15. package/dist/{SaveModuleDialog-QjgPFEDg.js → SaveModuleDialog-B1EJtMGq.js} +17 -17
  16. package/dist/{SlidingPillSelect-DfcBdJqN.js → SlidingPillSelect-Dt34f5VF.js} +1 -1
  17. package/dist/{SnapshotHistory-Dblt21_W.js → SnapshotHistory-Cd-a_xGv.js} +3 -3
  18. package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-C8WixDsv.js} +77 -77
  19. package/dist/{TestEmailModal-D_y3ZksG.js → TestEmailModal-CEj_81cQ.js} +3 -3
  20. package/dist/TitleEditor-C8Qyr_U3.js +172 -0
  21. package/dist/{TplModal-DinL7DhQ.js → TplModal-B_HcUS4S.js} +2 -2
  22. package/dist/{blockTypeIcons-JjmIZ_Vx.js → blockTypeIcons-CeaSm2Xd.js} +1 -1
  23. package/dist/bundle-stats.json +6 -6
  24. package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js → AccessibilityPanel-C8vY7QIF.js} +3 -3
  25. package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js.map → AccessibilityPanel-C8vY7QIF.js.map} +1 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js → AiFeatureMenu-BaUpnF6T.js} +2 -2
  27. package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js.map → AiFeatureMenu-BaUpnF6T.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js → BlockA11yBadge-BHkh4Otq.js} +2 -2
  29. package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js.map → BlockA11yBadge-BHkh4Otq.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-nQ7qsrkA.js → CloudEditor-DUIjZDAS.js} +265 -258
  31. package/dist/cdn/chunks/{CloudEditor-nQ7qsrkA.js.map → CloudEditor-DUIjZDAS.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js → CollaboratorBar-pyuEO5Bm.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js.map → CollaboratorBar-pyuEO5Bm.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js → CountdownToolbar-CCGHm6Gg.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js.map → CountdownToolbar-CCGHm6Gg.js.map} +1 -1
  36. package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js → ModuleBrowserModal-DKsMddYS.js} +6 -6
  37. package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js.map → ModuleBrowserModal-DKsMddYS.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js → ModulePreviewCanvas-E0mfCUJi.js} +2 -2
  39. package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js.map → ModulePreviewCanvas-E0mfCUJi.js.map} +1 -1
  40. package/dist/cdn/chunks/{ParagraphEditor-BX2L35YF.js → ParagraphEditor-DwmzHg6F.js} +116 -116
  41. package/dist/cdn/chunks/ParagraphEditor-DwmzHg6F.js.map +1 -0
  42. package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js → RichTextEditorContent-4-cNqB4H.js} +3 -3
  43. package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js.map → RichTextEditorContent-4-cNqB4H.js.map} +1 -1
  44. package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js → SaveModuleDialog-COm3ptOF.js} +3 -3
  45. package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js.map → SaveModuleDialog-COm3ptOF.js.map} +1 -1
  46. package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js → SlidingPillSelect-DlgRynQN.js} +2 -2
  47. package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js.map → SlidingPillSelect-DlgRynQN.js.map} +1 -1
  48. package/dist/cdn/chunks/TitleEditor-CE8r8txX.js +171 -0
  49. package/dist/cdn/chunks/TitleEditor-CE8r8txX.js.map +1 -0
  50. package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js → blockTypeIcons-BOf7hTFU.js} +3 -3
  51. package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js.map → blockTypeIcons-BOf7hTFU.js.map} +1 -1
  52. package/dist/cdn/chunks/{extensions-CdYSoz4B.js → extensions-B5e8Ov02.js} +17 -17
  53. package/dist/cdn/chunks/{extensions-CdYSoz4B.js.map → extensions-B5e8Ov02.js.map} +1 -1
  54. package/dist/cdn/chunks/{features-BZeMkHMs.js → features-BHTP4oRU.js} +734 -734
  55. package/dist/cdn/chunks/features-BHTP4oRU.js.map +1 -0
  56. package/dist/cdn/chunks/{icons-nP0Wj6Eq.js → icons-DS4IYWzG.js} +2 -2
  57. package/dist/cdn/chunks/{icons-nP0Wj6Eq.js.map → icons-DS4IYWzG.js.map} +1 -1
  58. package/dist/cdn/chunks/{media-library-54Ezt5wL.js → media-library-BLLJsLwk.js} +508 -508
  59. package/dist/cdn/chunks/{media-library-54Ezt5wL.js.map → media-library-BLLJsLwk.js.map} +1 -1
  60. package/dist/cdn/chunks/{quality-Di1pUcCW.js → quality-DfKLOn8j.js} +290 -290
  61. package/dist/cdn/chunks/{quality-Di1pUcCW.js.map → quality-DfKLOn8j.js.map} +1 -1
  62. package/dist/cdn/chunks/{renderer-C4OuJhDG.js → renderer-fG9yLafB.js} +14 -14
  63. package/dist/cdn/chunks/{renderer-C4OuJhDG.js.map → renderer-fG9yLafB.js.map} +1 -1
  64. package/dist/cdn/chunks/{src-DF5NNH7S.js → src-DsfVhQaK.js} +4 -4
  65. package/dist/cdn/chunks/{src-DF5NNH7S.js.map → src-DsfVhQaK.js.map} +1 -1
  66. package/dist/cdn/chunks/{styles-BZJ3yQ0G.js → styles-CPUuKOlD.js} +211 -212
  67. package/dist/cdn/chunks/styles-CPUuKOlD.js.map +1 -0
  68. package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js → tiptap-q69oUYhb.js} +2 -2
  69. package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js.map → tiptap-q69oUYhb.js.map} +1 -1
  70. package/dist/cdn/editor.css +1 -1
  71. package/dist/cdn/editor.js +130 -123
  72. package/dist/cdn/editor.js.map +1 -1
  73. package/dist/{extensions-CNPdJw_8.js → extensions-mwqd2u9M.js} +2 -2
  74. package/dist/index.d.ts +9 -9
  75. package/dist/keys-CqdzeWhT.js +10 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{styles-Czir-MYq.js → styles-BRNubGRJ.js} +288 -289
  78. package/dist/templatical-editor.js +134 -127
  79. package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-CDhjmAgB.js} +1 -1
  80. package/dist/{useEditorCore-BHSyoxSK.js → useEditorCore-DB4A_cje.js} +22 -22
  81. package/dist/{useI18n-C2xQZ6K9.js → useI18n-DLZJ6wNn.js} +1 -1
  82. package/dist/{useMergeTag-BfVcyNSv.js → useMergeTag-D-kqWENN.js} +2 -2
  83. package/package.json +7 -7
  84. package/dist/TitleEditor-CHmL3FFR.js +0 -172
  85. package/dist/cdn/chunks/ParagraphEditor-BX2L35YF.js.map +0 -1
  86. package/dist/cdn/chunks/TitleEditor-BTtgZzci.js +0 -171
  87. package/dist/cdn/chunks/TitleEditor-BTtgZzci.js.map +0 -1
  88. package/dist/cdn/chunks/features-BZeMkHMs.js.map +0 -1
  89. package/dist/cdn/chunks/styles-BZJ3yQ0G.js.map +0 -1
  90. package/dist/keys-CvX8D-8C.js +0 -10
@@ -1,10 +1,10 @@
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-BHSyoxSK.js";
3
- import { A as b, T as x, m as ee } from "./keys-CvX8D-8C.js";
4
- import { t as te } from "./useI18n-C2xQZ6K9.js";
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 ee, m as h, st as g, v as _, x as v } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import "./useEditorCore-DB4A_cje.js";
3
+ import { E as y, h as b, j as x } from "./keys-CqdzeWhT.js";
4
+ import { t as te } from "./useI18n-DLZJ6wNn.js";
5
5
  import { t as ne } from "./loader-circle-Balo8p3d.js";
6
- import { n as S } from "./useCloudI18n-DOKSZql1.js";
7
- import { t as C } from "./TplModal-DinL7DhQ.js";
6
+ import { n as S } from "./useCloudI18n-CDhjmAgB.js";
7
+ import { t as C } from "./TplModal-B_HcUS4S.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",
@@ -28,7 +28,7 @@ var w = ["aria-busy"], T = {
28
28
  },
29
29
  emits: ["close", "saved"],
30
30
  setup(t, { emit: R }) {
31
- let z = t, B = R, { t: V } = te(), { t: H } = S(), U = b(ee, "SaveModuleDialog"), W = b(x, "SaveModuleDialog"), G = d(""), K = d(/* @__PURE__ */ new Set()), q = d(!1), J = d(null), Y = g(() => U.content.value.blocks);
31
+ let z = t, B = R, { t: V } = te(), { t: H } = S(), U = x(b, "SaveModuleDialog"), W = x(y, "SaveModuleDialog"), G = d(""), K = d(/* @__PURE__ */ new Set()), q = d(!1), J = d(null), Y = h(() => U.content.value.blocks);
32
32
  function X(e, t) {
33
33
  let n = e.type;
34
34
  return `${V.blocks[n] ?? e.type} ${t + 1}`;
@@ -40,7 +40,7 @@ var w = ["aria-busy"], T = {
40
40
  let t = new Set(K.value);
41
41
  t.has(e) ? t.delete(e) : t.add(e), K.value = t;
42
42
  }
43
- let Z = g(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
43
+ let Z = h(() => G.value.trim().length > 0 && K.value.size > 0 && !q.value);
44
44
  async function Q() {
45
45
  if (Z.value) {
46
46
  q.value = !0, J.value = null;
@@ -76,18 +76,18 @@ var w = ["aria-busy"], T = {
76
76
  "box-shadow": "var(--tpl-shadow-xl)"
77
77
  }
78
78
  }, [
79
- m("h3", T, r(_(H).modules.saveAsModule), 1),
80
- m("div", E, [m("label", D, r(_(H).modules.moduleName), 1), s(m("input", {
79
+ m("h3", T, r(g(H).modules.saveAsModule), 1),
80
+ m("div", E, [m("label", D, r(g(H).modules.moduleName), 1), s(m("input", {
81
81
  "onUpdate:modelValue": d[0] ||= (e) => G.value = e,
82
82
  type: "text",
83
- placeholder: _(H).modules.moduleNamePlaceholder,
83
+ placeholder: g(H).modules.moduleNamePlaceholder,
84
84
  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)]",
85
85
  disabled: q.value
86
86
  }, null, 8, O), [[u, G.value]])]),
87
- m("div", k, [m("label", A, r(_(H).modules.selectBlocks), 1), m("div", j, [(i(!0), v(f, null, n(Y.value, (e, t) => (i(), v("label", {
87
+ m("div", k, [m("label", A, r(g(H).modules.selectBlocks), 1), m("div", j, [(i(!0), _(f, null, n(Y.value, (e, t) => (i(), _("label", {
88
88
  key: e.id,
89
89
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
90
- style: h({
90
+ style: ee({
91
91
  color: "var(--tpl-text)",
92
92
  backgroundColor: K.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
93
93
  })
@@ -98,22 +98,22 @@ var w = ["aria-busy"], T = {
98
98
  disabled: q.value,
99
99
  onChange: (t) => ie(e.id)
100
100
  }, null, 40, M), l(" " + r(X(e, t)), 1)], 4))), 128))])]),
101
- J.value ? (i(), v("p", N, r(J.value), 1)) : c("", !0),
101
+ J.value ? (i(), _("p", N, r(J.value), 1)) : c("", !0),
102
102
  m("div", P, [m("button", {
103
103
  type: "button",
104
104
  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": q.value }]),
105
105
  disabled: q.value,
106
106
  onClick: $
107
- }, r(_(H).modules.cancel), 11, F), m("button", {
107
+ }, r(g(H).modules.cancel), 11, F), m("button", {
108
108
  type: "button",
109
109
  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)]",
110
110
  disabled: !Z.value,
111
111
  onClick: Q
112
- }, [q.value ? (i(), v("span", L, [y(_(ne), {
112
+ }, [q.value ? (i(), _("span", L, [v(g(ne), {
113
113
  class: "tpl:animate-spin",
114
114
  size: 12,
115
115
  "stroke-width": 2
116
- }), l(" " + r(_(H).modules.saving), 1)])) : (i(), v("span", re, r(_(H).modules.save), 1))], 8, I)])
116
+ }), l(" " + r(g(H).modules.saving), 1)])) : (i(), _("span", re, r(g(H).modules.save), 1))], 8, I)])
117
117
  ], 8, w)]),
118
118
  _: 1
119
119
  }, 8, ["visible"]));
@@ -1,6 +1,6 @@
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, b as l, et as u, f as d, g as f, h as p, jt as m, m as h, st as g, t as _, u as v, v as y, x as ee } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
2
  import { t as te } from "./dist-Djgi0A6k.js";
3
- import { t as ne } from "./useI18n-C2xQZ6K9.js";
3
+ import { t as ne } from "./useI18n-DLZJ6wNn.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
6
6
  var T = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, E = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
@@ -1,12 +1,12 @@
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-BHSyoxSK.js";
2
+ import "./useEditorCore-DB4A_cje.js";
3
3
  import { t as _ } from "./dist-Djgi0A6k.js";
4
- import { t as v } from "./useI18n-C2xQZ6K9.js";
4
+ import { t as v } from "./useI18n-DLZJ6wNn.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
7
  import { t as S } from "./clock-Ba4p3rJM.js";
8
8
  import { t as C } from "./loader-circle-Balo8p3d.js";
9
- import { n as w } from "./useCloudI18n-DOKSZql1.js";
9
+ import { n as w } from "./useCloudI18n-CDhjmAgB.js";
10
10
  import { t as T } from "./formatRelativeTime-BhhO8yCl.js";
11
11
  //#region src/cloud/components/SnapshotHistory.vue?vue&type=script&setup=true&lang.ts
12
12
  var E = ["disabled", "title"], D = ["title"], O = {
@@ -1,19 +1,19 @@
1
1
  import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, U as ee, V as s, _ as c, b as l, et as u, f as d, g as f, h as p, jt as m, st as h, t as te, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { A as v, E as ne, m as re, y } from "./keys-CvX8D-8C.js";
3
- import { t as b } from "./createLucideIcon-ClREiSx3.js";
4
- import { t as ie } from "./chevron-down-C5oBUhT8.js";
5
- import { t as x } from "./circle-alert-ZQQc98HC.js";
6
- import { n as S, t as C } from "./refresh-cw-DwDqGUM0.js";
7
- import { t as ae } from "./info-BSPGcsSM.js";
8
- import { t as w } from "./loader-circle-Balo8p3d.js";
9
- import { t as T } from "./shield-check-jkpgcC0-.js";
10
- import { t as E } from "./sparkles-Chm5CZfb.js";
11
- import { t as oe } from "./triangle-alert-KpDVNbpn.js";
12
- import { t as se } from "./x-BkaOMosX.js";
13
- import { t as ce } from "./LoadingTrack-Ba2pfF57.js";
14
- import { t as D } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
15
- import { n as le } from "./useCloudI18n-DOKSZql1.js";
16
- var O = b("shield-x", [
2
+ import { D as ne, b as re, h as ie, j as v } from "./keys-CqdzeWhT.js";
3
+ import { t as y } from "./createLucideIcon-ClREiSx3.js";
4
+ import { t as ae } from "./chevron-down-C5oBUhT8.js";
5
+ import { t as b } from "./circle-alert-ZQQc98HC.js";
6
+ import { n as x, t as S } from "./refresh-cw-DwDqGUM0.js";
7
+ import { t as oe } from "./info-BSPGcsSM.js";
8
+ import { t as C } from "./loader-circle-Balo8p3d.js";
9
+ import { t as w } from "./shield-check-jkpgcC0-.js";
10
+ import { t as T } from "./sparkles-Chm5CZfb.js";
11
+ import { t as se } from "./triangle-alert-KpDVNbpn.js";
12
+ import { t as ce } from "./x-BkaOMosX.js";
13
+ import { t as le } from "./LoadingTrack-Ba2pfF57.js";
14
+ import { t as E } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
15
+ import { n as ue } from "./useCloudI18n-CDhjmAgB.js";
16
+ var D = y("shield-x", [
17
17
  ["path", {
18
18
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
19
19
  key: "oel41y"
@@ -26,71 +26,71 @@ var O = b("shield-x", [
26
26
  d: "m9.5 9.5 5 5",
27
27
  key: "18nt4w"
28
28
  }]
29
- ]), k = b("zap", [["path", {
29
+ ]), O = y("zap", [["path", {
30
30
  d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
31
31
  key: "1xq2db"
32
32
  }]]);
33
33
  //#endregion
34
34
  //#region src/cloud/utils/scoringStyles.ts
35
- function A(e) {
35
+ function k(e) {
36
36
  return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
37
37
  }
38
- function j(e) {
38
+ function A(e) {
39
39
  return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
40
40
  }
41
- function M(e) {
41
+ function j(e) {
42
42
  return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
43
43
  }
44
- function N(e) {
44
+ function M(e) {
45
45
  return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
46
46
  }
47
47
  //#endregion
48
48
  //#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
49
- var P = {
49
+ var N = {
50
50
  key: 0,
51
51
  class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
52
- }, F = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, L = { class: "tpl:flex tpl:items-center tpl:gap-1" }, R = ["title"], z = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, B = {
52
+ }, P = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, F = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["title"], R = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, z = {
53
53
  key: 0,
54
54
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
55
- }, V = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, H = {
55
+ }, B = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, V = {
56
56
  key: 1,
57
57
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
58
- }, U = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, W = {
58
+ }, H = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, U = {
59
59
  key: 2,
60
60
  class: "tpl:flex tpl:flex-col tpl:gap-4"
61
- }, ue = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, de = {
61
+ }, de = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, fe = {
62
62
  key: 0,
63
63
  class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
64
- }, fe = {
64
+ }, pe = {
65
65
  key: 0,
66
66
  class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
67
- }, pe = ["onClick"], me = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, he = {
67
+ }, me = ["onClick"], he = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ge = {
68
68
  key: 0,
69
69
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
70
- }, ge = {
70
+ }, _e = {
71
71
  key: 0,
72
72
  class: "tpl:border-t tpl:border-[var(--tpl-border)]"
73
- }, _e = {
73
+ }, ve = {
74
74
  key: 0,
75
75
  class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
76
- }, ve = { class: "tpl:flex tpl:items-start tpl:gap-2" }, ye = { class: "tpl:flex-1 tpl:min-w-0" }, be = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, xe = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Se = {
76
+ }, ye = { class: "tpl:flex tpl:items-start tpl:gap-2" }, be = { class: "tpl:flex-1 tpl:min-w-0" }, xe = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, Se = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Ce = {
77
77
  key: 0,
78
78
  class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
79
- }, Ce = {
79
+ }, we = {
80
80
  key: 1,
81
81
  class: "tpl:mt-2 tpl:flex tpl:justify-center"
82
- }, we = ["disabled", "onClick"], Te = {
82
+ }, Te = ["disabled", "onClick"], Ee = {
83
83
  key: 0,
84
84
  class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
85
- }, Ee = {
85
+ }, De = {
86
86
  key: 3,
87
87
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
88
- }, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */ D(/* @__PURE__ */ t({
88
+ }, W = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */ E(/* @__PURE__ */ t({
89
89
  __name: "TemplateScoringPanel",
90
90
  props: { visible: { type: Boolean } },
91
91
  emits: ["close"],
92
- setup(t, { emit: b }) {
93
- let D = t, G = b, { t: K } = le(), q = v(re, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = n(y, []), X = u({
92
+ setup(t, { emit: y }) {
93
+ let E = t, G = y, { t: K } = ue(), q = v(ie, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = n(re, []), X = u({
94
94
  spam: !0,
95
95
  readability: !0,
96
96
  accessibility: !0,
@@ -105,15 +105,15 @@ var P = {
105
105
  "accessibility",
106
106
  "bestPractices"
107
107
  ], Ae = {
108
- spam: O,
109
- readability: S,
110
- accessibility: E,
111
- bestPractices: k
108
+ spam: D,
109
+ readability: x,
110
+ accessibility: T,
111
+ bestPractices: O
112
112
  };
113
113
  function Q() {
114
114
  J.score(q.content.value, Y);
115
115
  }
116
- s(() => D.visible, (e) => {
116
+ s(() => E.visible, (e) => {
117
117
  e && !J.scoringResult.value && !J.isScoring.value && Q();
118
118
  });
119
119
  async function je(e) {
@@ -136,50 +136,50 @@ var P = {
136
136
  "leave-from-class": "tpl:translate-x-0",
137
137
  "leave-to-class": "tpl:translate-x-full"
138
138
  }, {
139
- default: ee(() => [t.visible ? (a(), g("div", P, [p("div", F, [p("div", I, [_(h(T), {
139
+ default: ee(() => [t.visible ? (a(), g("div", N, [p("div", P, [p("div", F, [_(h(w), {
140
140
  size: 13,
141
141
  "stroke-width": 2
142
- }), p("span", null, i(h(K).scoring.title), 1)]), p("div", L, [h(J).scoringResult.value && !h(J).isScoring.value ? (a(), g("button", {
142
+ }), p("span", null, i(h(K).scoring.title), 1)]), p("div", I, [h(J).scoringResult.value && !h(J).isScoring.value ? (a(), g("button", {
143
143
  key: 0,
144
144
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
145
145
  title: h(K).scoring.rescore,
146
146
  onClick: s[0] ||= (e) => Q()
147
- }, [_(h(C), {
147
+ }, [_(h(S), {
148
148
  size: 14,
149
149
  "stroke-width": 2
150
- })], 8, R)) : c("", !0), p("button", {
150
+ })], 8, L)) : c("", !0), p("button", {
151
151
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
152
152
  onClick: s[1] ||= (e) => G("close")
153
- }, [_(h(se), {
153
+ }, [_(h(ce), {
154
154
  size: 14,
155
155
  "stroke-width": 2
156
- })])])]), p("div", z, [h(J).isScoring.value ? (a(), g("div", B, [p("p", V, i(h(K).scoring.scoring), 1), _(ce, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (a(), g("div", H, [
157
- _(h(x), {
156
+ })])])]), p("div", R, [h(J).isScoring.value ? (a(), g("div", z, [p("p", B, i(h(K).scoring.scoring), 1), _(le, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (a(), g("div", V, [
157
+ _(h(b), {
158
158
  size: 32,
159
159
  "stroke-width": 1.5,
160
160
  class: "tpl:text-[var(--tpl-danger)]"
161
161
  }),
162
- p("p", U, i(h(K).scoring.error), 1),
162
+ p("p", H, i(h(K).scoring.error), 1),
163
163
  p("button", {
164
164
  class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
165
165
  onClick: s[2] ||= (e) => Q()
166
- }, [_(h(C), {
166
+ }, [_(h(S), {
167
167
  size: 12,
168
168
  "stroke-width": 2
169
169
  }), l(" " + i(h(K).scoring.rescore), 1)])
170
- ])) : h(J).scoringResult.value ? (a(), g("div", W, [
170
+ ])) : h(J).scoringResult.value ? (a(), g("div", U, [
171
171
  p("div", {
172
172
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
173
- style: m({ backgroundColor: h(j)(h(J).scoringResult.value.score) })
173
+ style: m({ backgroundColor: h(A)(h(J).scoringResult.value.score) })
174
174
  }, [
175
175
  p("span", {
176
176
  class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
177
- style: m({ color: h(A)(h(J).scoringResult.value.score) })
177
+ style: m({ color: h(k)(h(J).scoringResult.value.score) })
178
178
  }, i(h(J).scoringResult.value.score), 5),
179
- p("span", ue, i(h(K).scoring.overallScore), 1),
180
- $() > 0 ? (a(), g("span", de, i($()) + " " + i(h(K).scoring.findings), 1)) : c("", !0)
179
+ p("span", de, i(h(K).scoring.overallScore), 1),
180
+ $() > 0 ? (a(), g("span", fe, i($()) + " " + i(h(K).scoring.findings), 1)) : c("", !0)
181
181
  ], 4),
182
- h(J).fixError.value ? (a(), g("div", fe, [_(h(x), {
182
+ h(J).fixError.value ? (a(), g("div", pe, [_(h(b), {
183
183
  size: 14,
184
184
  "stroke-width": 2,
185
185
  class: "tpl:mt-0.5 tpl:shrink-0"
@@ -194,60 +194,60 @@ var P = {
194
194
  (a(), f(o(Ae[t]), {
195
195
  size: 14,
196
196
  "stroke-width": 2,
197
- style: m({ color: h(A)(h(J).scoringResult.value.categories[t].score) })
197
+ style: m({ color: h(k)(h(J).scoringResult.value.categories[t].score) })
198
198
  }, null, 8, ["style"])),
199
- p("span", me, i(h(K).scoring.categories[t]), 1),
199
+ p("span", he, i(h(K).scoring.categories[t]), 1),
200
200
  p("span", {
201
201
  class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
202
202
  style: m({
203
- color: h(A)(h(J).scoringResult.value.categories[t].score),
204
- backgroundColor: h(j)(h(J).scoringResult.value.categories[t].score)
203
+ color: h(k)(h(J).scoringResult.value.categories[t].score),
204
+ backgroundColor: h(A)(h(J).scoringResult.value.categories[t].score)
205
205
  })
206
206
  }, i(h(J).scoringResult.value.categories[t].score), 5),
207
- h(J).scoringResult.value.categories[t].findings.length > 0 ? (a(), g("span", he, i(h(J).scoringResult.value.categories[t].findings.length), 1)) : c("", !0),
208
- _(h(ie), {
207
+ h(J).scoringResult.value.categories[t].findings.length > 0 ? (a(), g("span", ge, i(h(J).scoringResult.value.categories[t].findings.length), 1)) : c("", !0),
208
+ _(h(ae), {
209
209
  size: 12,
210
210
  "stroke-width": 2,
211
211
  class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
212
212
  }, null, 8, ["class"])
213
- ], 8, pe), X.value[t] ? (a(), g("div", ge, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (a(), g("div", _e, i(h(K).scoring.noFindings), 1)) : c("", !0), (a(!0), g(d, null, r(h(J).scoringResult.value.categories[t].findings, (e) => (a(), g("div", {
213
+ ], 8, me), X.value[t] ? (a(), g("div", _e, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (a(), g("div", ve, i(h(K).scoring.noFindings), 1)) : c("", !0), (a(!0), g(d, null, r(h(J).scoringResult.value.categories[t].findings, (e) => (a(), g("div", {
214
214
  key: e.id,
215
215
  class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
216
- }, [p("div", ve, [(a(), f(o(e.severity === "high" ? h(x) : e.severity === "medium" ? h(oe) : h(ae)), {
216
+ }, [p("div", ye, [(a(), f(o(e.severity === "high" ? h(b) : e.severity === "medium" ? h(se) : h(oe)), {
217
217
  size: 13,
218
218
  "stroke-width": 2,
219
219
  class: "tpl:mt-0.5 tpl:shrink-0",
220
- style: m({ color: h(M)(e.severity) })
221
- }, null, 8, ["style"])), p("div", ye, [
222
- p("div", be, [p("span", {
220
+ style: m({ color: h(j)(e.severity) })
221
+ }, null, 8, ["style"])), p("div", be, [
222
+ p("div", xe, [p("span", {
223
223
  class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
224
224
  style: m({
225
- color: h(M)(e.severity),
226
- backgroundColor: h(N)(e.severity)
225
+ color: h(j)(e.severity),
226
+ backgroundColor: h(M)(e.severity)
227
227
  })
228
- }, i(h(K).scoring.severity[e.severity]), 5), p("span", xe, i(e.message), 1)]),
229
- e.suggestion ? (a(), g("p", Se, i(e.suggestion), 1)) : c("", !0),
230
- e.blockId ? (a(), g("div", Ce, [p("button", {
228
+ }, i(h(K).scoring.severity[e.severity]), 5), p("span", Se, i(e.message), 1)]),
229
+ e.suggestion ? (a(), g("p", Ce, i(e.suggestion), 1)) : c("", !0),
230
+ e.blockId ? (a(), g("div", we, [p("button", {
231
231
  class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
232
232
  style: { "background-color": "transparent" },
233
233
  disabled: h(J).fixingFindingId.value !== null,
234
234
  onClick: (t) => je(e)
235
- }, [h(J).fixingFindingId.value === e.id ? (a(), f(h(w), {
235
+ }, [h(J).fixingFindingId.value === e.id ? (a(), f(h(C), {
236
236
  key: 0,
237
237
  class: "tpl-spinner",
238
238
  size: 11,
239
239
  "stroke-width": 2
240
- })) : (a(), f(h(E), {
240
+ })) : (a(), f(h(T), {
241
241
  key: 1,
242
242
  size: 11,
243
243
  "stroke-width": 2
244
- })), l(" " + i(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, we), h(J).fixError.value ? (a(), g("p", Te, i(h(J).fixError.value), 1)) : c("", !0)])) : c("", !0)
244
+ })), l(" " + i(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, Te), h(J).fixError.value ? (a(), g("p", Ee, i(h(J).fixError.value), 1)) : c("", !0)])) : c("", !0)
245
245
  ])])]))), 128))])) : c("", !0)])), 64))
246
- ])) : (a(), g("div", Ee, [_(h(T), {
246
+ ])) : (a(), g("div", De, [_(h(w), {
247
247
  size: 32,
248
248
  "stroke-width": 1.5,
249
249
  class: "tpl:text-[var(--tpl-text-dim)]"
250
- }), p("p", De, i(h(K).scoring.emptyState), 1)])), p("p", Oe, i(h(K).aiMenu.disclaimer), 1)])])) : c("", !0)]),
250
+ }), p("p", W, i(h(K).scoring.emptyState), 1)])), p("p", Oe, i(h(K).aiMenu.disclaimer), 1)])])) : c("", !0)]),
251
251
  _: 1
252
252
  }));
253
253
  }
@@ -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-BHSyoxSK.js";
2
+ import "./useEditorCore-DB4A_cje.js";
3
3
  import { t as v } from "./loader-circle-Balo8p3d.js";
4
- import { n as y } from "./useCloudI18n-DOKSZql1.js";
5
- import { t as b } from "./TplModal-DinL7DhQ.js";
4
+ import { n as y } from "./useCloudI18n-CDhjmAgB.js";
5
+ import { t as b } from "./TplModal-B_HcUS4S.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",
@@ -0,0 +1,172 @@
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, m as f, p, st as m, v as h, x as g } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import { C as _ } from "./useEditorCore-DB4A_cje.js";
3
+ import { A as v, O as y, m as b } from "./keys-CqdzeWhT.js";
4
+ import { t as x } from "./useI18n-DLZJ6wNn.js";
5
+ import { a as S, i as C, n as w, r as T, t as ee } from "./RichTextEditorContent-Cn0ZU41b.js";
6
+ import { t as E } from "./loader-circle-Balo8p3d.js";
7
+ import { t as D } from "./scan-line-CzfFJO1o.js";
8
+ //#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
9
+ var O = { class: "tpl-text-editor-wrapper tpl:relative" }, k = ["data-tpl-theme", "aria-label"], A = ["aria-label", "title"], j = ["aria-label", "title"], M = ["aria-label", "title"], N = {
10
+ key: 0,
11
+ class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
12
+ }, P = ["aria-label", "title"], F = {
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
+ }, I = /* @__PURE__ */ t({
16
+ __name: "TitleEditor",
17
+ props: {
18
+ block: {},
19
+ toolbarPosition: {}
20
+ },
21
+ emits: ["done"],
22
+ setup(t, { emit: I }) {
23
+ let L = t, R = I, z = n(y, null), B = n(v, null), V = n(b, void 0), te = f(() => V?.value ?? "body"), { t: H } = x(), { editor: U, EditorContent: W, isLoading: G, initError: K, retry: q, showLinkDialog: J, linkUrl: Y, linkDialogRef: X, canRequestMergeTag: Z, openLinkDialog: Q, insertLink: ne, removeLink: re, closeLinkDialog: ie, handleLinkKeydown: ae, handleAddMergeTag: $ } = _({
24
+ blockId: () => L.block.id,
25
+ blockContent: () => L.block.content,
26
+ onDone: () => R("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-C9ckKEZL.js").then((e) => e.r),
31
+ import("./dist-Bz3M4RXG.js"),
32
+ import("./dist-C3T2AKtB.js"),
33
+ import("./extensions-mwqd2u9M.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 (n, f) => (i(), h("div", O, [
71
+ (i(), l(p, { to: te.value }, [u("div", {
72
+ "data-tpl-theme": m(B),
73
+ role: "toolbar",
74
+ "aria-label": m(H).titleEditor.toolbar,
75
+ class: "tpl tpl-text-toolbar tpl:pointer-events-auto 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: d({
77
+ ...m(z),
78
+ top: `${t.toolbarPosition.top}px`,
79
+ left: `${t.toolbarPosition.left}px`,
80
+ transform: "translateY(-100%)"
81
+ })
82
+ }, [!m(G) && m(U) ? (i(), h(c, { key: 0 }, [
83
+ u("button", {
84
+ type: "button",
85
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("bold") }]),
86
+ "aria-label": m(H).titleEditor.bold,
87
+ title: m(H).titleEditor.bold,
88
+ onClick: f[0] ||= (e) => m(U)?.chain().focus().toggleBold().run()
89
+ }, [g(m(S), {
90
+ size: 16,
91
+ "stroke-width": 2.5
92
+ })], 10, A),
93
+ u("button", {
94
+ type: "button",
95
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("italic") }]),
96
+ "aria-label": m(H).titleEditor.italic,
97
+ title: m(H).titleEditor.italic,
98
+ onClick: f[1] ||= (e) => m(U)?.chain().focus().toggleItalic().run()
99
+ }, [g(m(C), {
100
+ size: 16,
101
+ "stroke-width": 2
102
+ })], 10, j),
103
+ f[6] ||= u("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
+ u("button", {
108
+ type: "button",
109
+ class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": m(U)?.isActive("link") }]),
110
+ "aria-label": m(H).titleEditor.addLink,
111
+ title: m(H).titleEditor.addLink,
112
+ onClick: f[2] ||= (...e) => m(Q) && m(Q)(...e)
113
+ }, [g(m(T), {
114
+ size: 16,
115
+ "stroke-width": 2
116
+ })], 10, M),
117
+ m(Z) ? (i(), h("span", N)) : o("", !0),
118
+ m(Z) ? (i(), h("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": m(H).mergeTag.add,
123
+ title: m(H).mergeTag.add,
124
+ onClick: f[3] ||= (...e) => m($) && m($)(...e)
125
+ }, [g(m(D), {
126
+ size: 16,
127
+ "stroke-width": 2
128
+ }), s(" " + r(m(H).mergeTag.add), 1)], 8, P)) : o("", !0)
129
+ ], 64)) : (i(), h("div", F, [g(m(E), {
130
+ class: "tpl-spinner",
131
+ size: 14,
132
+ "stroke-width": 2
133
+ }), s(" " + r(m(H).errors.editorLoading), 1)]))], 12, k)], 8, ["to"])),
134
+ g(ee, {
135
+ editor: m(U),
136
+ "editor-content": m(W),
137
+ "is-loading": m(G),
138
+ "init-error": m(K),
139
+ onRetry: m(q)
140
+ }, null, 8, [
141
+ "editor",
142
+ "editor-content",
143
+ "is-loading",
144
+ "init-error",
145
+ "onRetry"
146
+ ]),
147
+ g(w, {
148
+ visible: m(J),
149
+ "is-editing-link": m(U)?.isActive("link") ?? !1,
150
+ "dialog-ref": m(X),
151
+ "onUpdate:dialogRef": f[4] ||= (e) => a(X) ? X.value = e : null,
152
+ "link-url": m(Y),
153
+ "onUpdate:linkUrl": f[5] ||= (e) => a(Y) ? Y.value = e : null,
154
+ onClose: m(ie),
155
+ onInsert: m(ne),
156
+ onRemove: m(re),
157
+ onKeydown: m(ae)
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 { I as default };
@@ -1,6 +1,6 @@
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 { D as g } from "./useEditorCore-BHSyoxSK.js";
3
- import { k as _ } from "./keys-CvX8D-8C.js";
2
+ import { D as g } from "./useEditorCore-DB4A_cje.js";
3
+ import { A as _ } from "./keys-CqdzeWhT.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({
6
6
  __name: "TplModal",
@@ -1,4 +1,4 @@
1
- import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-BHSyoxSK.js";
1
+ import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-DB4A_cje.js";
2
2
  import { t as a } from "./createLucideIcon-ClREiSx3.js";
3
3
  var o = a("clipboard-list", [
4
4
  ["rect", {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.8.4",
3
- "initialGzipBytes": 263309,
4
- "initialRawBytes": 975330,
2
+ "version": "0.8.7",
3
+ "initialGzipBytes": 263413,
4
+ "initialRawBytes": 975574,
5
5
  "initialFileCount": 36,
6
- "lazyGzipBytes": 265436,
7
- "lazyRawBytes": 924035,
6
+ "lazyGzipBytes": 265604,
7
+ "lazyRawBytes": 924493,
8
8
  "lazyFileCount": 44,
9
- "generatedAt": "2026-05-17T06:46:34.415Z"
9
+ "generatedAt": "2026-05-17T09:10:55.457Z"
10
10
  }