@aswin.dev/editor 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/{AccessibilityPanel-EmQ19wiS.js → AccessibilityPanel-COL6Wm7p.js} +1 -1
  2. package/dist/{AiChatSidebar-DeB0w_32.js → AiChatSidebar-Dt5pvG5t.js} +9 -9
  3. package/dist/{AiFeatureMenu-DoLD5Cde.js → AiFeatureMenu-BipxcGap.js} +5 -5
  4. package/dist/{BlockA11yBadge-DkNbDvJA.js → BlockA11yBadge-Qs6HtXid.js} +1 -1
  5. package/dist/{CloudEditor-zo9PjjvY.js → CloudEditor-CnUX0IOW.js} +327 -290
  6. package/dist/{CollaboratorBar-BsXMY-8e.js → CollaboratorBar-NaaZTjbs.js} +2 -2
  7. package/dist/{CommentsSidebar-DIWIa4rS.js → CommentsSidebar-DE6ZsM4D.js} +15 -16
  8. package/dist/CountdownBlock-Ba3T-i2X.js +1536 -0
  9. package/dist/{CountdownToolbar-BuS8p5ju.js → CountdownToolbar-CbhSp_uq.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-RDlnhL-6.js → DesignReferenceSidebar-CZg97bbj.js} +5 -5
  11. package/dist/{LoadingTrack-BJ59h9ok.js → LoadingTrack-Ba2pfF57.js} +1 -1
  12. package/dist/{ModuleBrowserModal-b7HbpByz.js → ModuleBrowserModal-D2EVdexc.js} +7 -7
  13. package/dist/{ModulePreviewCanvas-D__YlOLS.js → ModulePreviewCanvas-P3N-nxkU.js} +52 -47
  14. package/dist/{NumberWithSuffix-Ca3vNY84.js → NumberWithSuffix-CihczoAd.js} +2 -2
  15. package/dist/{ParagraphEditor-B1aYPO-6.js → ParagraphEditor-BbRuKhWv.js} +23 -23
  16. package/dist/{RichTextEditorContent-BmEVMrkJ.js → RichTextEditorContent-CrqPQdnk.js} +1 -1
  17. package/dist/{SaveModuleDialog-ClovqI6h.js → SaveModuleDialog-DLZa3m3O.js} +3 -3
  18. package/dist/{SnapshotHistory-DoqtH0cw.js → SnapshotHistory-Csg1_jXi.js} +5 -5
  19. package/dist/{TemplateScoringPanel-DQv2ZAiL.js → TemplateScoringPanel-CS7o62zS.js} +7 -7
  20. package/dist/{TestEmailModal-iIeYJYsj.js → TestEmailModal-m3okLbJz.js} +3 -3
  21. package/dist/{TitleEditor-CTDIwRF_.js → TitleEditor-CtJIS5ER.js} +7 -7
  22. package/dist/{TplModal-CBq1J1pG.js → TplModal-CQCrKeKP.js} +1 -1
  23. package/dist/{blockTypeIcons-QkC6f5UE.js → blockTypeIcons-Dah0pgt-.js} +50 -19
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js → AccessibilityPanel-Bt_fD7QT.js} +8 -8
  26. package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js.map → AccessibilityPanel-Bt_fD7QT.js.map} +1 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js → AiFeatureMenu-Bn-0rgfr.js} +8 -8
  28. package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js.map → AiFeatureMenu-Bn-0rgfr.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js → BlockA11yBadge-Cj18Iw0p.js} +4 -4
  30. package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js.map → BlockA11yBadge-Cj18Iw0p.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-Btyr0b0_.js → CloudEditor-56lVcdot.js} +312 -275
  32. package/dist/cdn/chunks/CloudEditor-56lVcdot.js.map +1 -0
  33. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js → CollaboratorBar-B7DCV3xp.js} +3 -3
  34. package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js.map → CollaboratorBar-B7DCV3xp.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js → CountdownToolbar-BtaD3d3-.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js.map → CountdownToolbar-BtaD3d3-.js.map} +1 -1
  37. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js → ModuleBrowserModal-CiIY7ZGv.js} +7 -7
  38. package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js.map → ModuleBrowserModal-CiIY7ZGv.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModulePreviewCanvas-Drt8Evai.js → ModulePreviewCanvas-M7_OGV2m.js} +55 -51
  40. package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js.map +1 -0
  41. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js → NumberWithSuffix-DfVBnsgc.js} +3 -3
  42. package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js.map → NumberWithSuffix-DfVBnsgc.js.map} +1 -1
  43. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js → ParagraphEditor-1XJOpiLX.js} +45 -45
  44. package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js.map → ParagraphEditor-1XJOpiLX.js.map} +1 -1
  45. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js → RichTextEditorContent-C2q8sbp2.js} +4 -4
  46. package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js.map → RichTextEditorContent-C2q8sbp2.js.map} +1 -1
  47. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js → SaveModuleDialog-BNxh1jPT.js} +4 -4
  48. package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js.map → SaveModuleDialog-BNxh1jPT.js.map} +1 -1
  49. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js → TitleEditor-IF7VzLTk.js} +13 -13
  50. package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js.map → TitleEditor-IF7VzLTk.js.map} +1 -1
  51. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +24 -0
  52. package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +1 -0
  53. package/dist/{de-2LEvILeZ.js → cdn/chunks/de-B05yW8Gi.js} +74 -3
  54. package/dist/cdn/chunks/de-B05yW8Gi.js.map +1 -0
  55. package/dist/cdn/chunks/{de-RQrZR56a.js → de-BPHtelu7.js} +1 -1
  56. package/dist/cdn/chunks/{de-RQrZR56a.js.map → de-BPHtelu7.js.map} +1 -1
  57. package/dist/cdn/chunks/{de-Ce-LbJ2J.js → de-BRDqJwJe.js} +1 -1
  58. package/dist/cdn/chunks/{de-Ce-LbJ2J.js.map → de-BRDqJwJe.js.map} +1 -1
  59. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js → emojiData-DUHzsh4j.js} +1 -1
  60. package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js.map → emojiData-DUHzsh4j.js.map} +1 -1
  61. package/dist/cdn/chunks/{en-CNqLoIm9.js → en-BII7695P.js} +73 -4
  62. package/dist/cdn/chunks/en-BII7695P.js.map +1 -0
  63. package/dist/cdn/chunks/{en-DiCWK5fG.js → en-Cdj_Ikl1.js} +1 -1
  64. package/dist/cdn/chunks/{en-DiCWK5fG.js.map → en-Cdj_Ikl1.js.map} +1 -1
  65. package/dist/cdn/chunks/{en-Bl1ecfRF.js → en-DejwuJhw.js} +1 -1
  66. package/dist/cdn/chunks/{en-Bl1ecfRF.js.map → en-DejwuJhw.js.map} +1 -1
  67. package/dist/cdn/chunks/{extensions-BVKQw_sp.js → extensions-B0eT-yjf.js} +22 -22
  68. package/dist/cdn/chunks/{extensions-BVKQw_sp.js.map → extensions-B0eT-yjf.js.map} +1 -1
  69. package/dist/cdn/chunks/{features-DIBEo4xl.js → features-BrvE2Fzv.js} +2934 -1170
  70. package/dist/cdn/chunks/features-BrvE2Fzv.js.map +1 -0
  71. package/dist/cdn/chunks/{icons-C1Gg-ov-.js → icons-C7wtAD8p.js} +111 -60
  72. package/dist/cdn/chunks/icons-C7wtAD8p.js.map +1 -0
  73. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js → liquid.browser-CllF-us3.js} +1 -1
  74. package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js.map → liquid.browser-CllF-us3.js.map} +1 -1
  75. package/dist/cdn/chunks/{media-library-BTF_Ko70.js → media-library-Cl5XuaKy.js} +676 -660
  76. package/dist/cdn/chunks/media-library-Cl5XuaKy.js.map +1 -0
  77. package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-i7-OBujc.js} +1 -1
  78. package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-i7-OBujc.js.map} +1 -1
  79. package/dist/cdn/chunks/{quality-C5AmotmP.js → quality-Va91a3N8.js} +40 -40
  80. package/dist/cdn/chunks/{quality-C5AmotmP.js.map → quality-Va91a3N8.js.map} +1 -1
  81. package/dist/cdn/chunks/{renderer-D0L44Vlp.js → renderer-si0Zgxeb.js} +17 -17
  82. package/dist/cdn/chunks/{renderer-D0L44Vlp.js.map → renderer-si0Zgxeb.js.map} +1 -1
  83. package/dist/cdn/chunks/{src-RKexlYjA.js → src-BLyYIbdZ.js} +10 -10
  84. package/dist/cdn/chunks/{src-RKexlYjA.js.map → src-BLyYIbdZ.js.map} +1 -1
  85. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js → styleConstants-DfcU8u_r.js} +1 -1
  86. package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js.map → styleConstants-DfcU8u_r.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles-CQR6ed13.js → styles-C6BQLT9F.js} +2174 -1343
  88. package/dist/cdn/chunks/styles-C6BQLT9F.js.map +1 -0
  89. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js → tiptap-D8whBv5F.js} +2 -2
  90. package/dist/cdn/chunks/{tiptap-CDzAbF2j.js.map → tiptap-D8whBv5F.js.map} +1 -1
  91. package/dist/cdn/editor.css +1 -1
  92. package/dist/cdn/editor.js +146 -117
  93. package/dist/cdn/editor.js.map +1 -1
  94. package/dist/{cloud-DJG4tb4_.js → cloud-BoS0J0vs.js} +1 -1
  95. package/dist/{cdn/chunks/de-_tooy3Q8.js → de-C74F9xK3.js} +72 -5
  96. package/dist/{dist-BSJvAvH3.js → dist-BUzw1buG.js} +1 -1
  97. package/dist/{dist-b-XUqAoF.js → dist-BZyY-SS4.js} +1 -1
  98. package/dist/{dist-Df4ie7vZ.js → dist-BadNx4qo.js} +1 -1
  99. package/dist/{dist-wfAedlzi.js → dist-BesOh2mk.js} +1 -1
  100. package/dist/{dist-kZfaVUpW.js → dist-Bz3M4RXG.js} +3 -3
  101. package/dist/{dist-Bmir0gYb.js → dist-C2grMquk.js} +233 -139
  102. package/dist/{dist-BvPgo-UK.js → dist-C3T2AKtB.js} +1 -1
  103. package/dist/{dist-CPVBKMmd.js → dist-C9ckKEZL.js} +1 -1
  104. package/dist/{dist-DxOoemkW.js → dist-CBItRG-Z.js} +1 -1
  105. package/dist/{dist-BeFnymxK.js → dist-COSzWQUs.js} +1 -1
  106. package/dist/{dist-CivF9P8b.js → dist-Djgi0A6k.js} +92 -77
  107. package/dist/{dist-BHAeXaUY.js → dist-DtiDUrX-.js} +1 -1
  108. package/dist/{dist-HEQ52gTJ.js → dist-Dzt5foyL.js} +1 -1
  109. package/dist/{en-D2RU2Poj.js → en-B24jVTeO.js} +72 -3
  110. package/dist/{extensions-BQ1xXx3d.js → extensions-DsmjHqBF.js} +21 -21
  111. package/dist/index.d.ts +8 -8
  112. package/dist/{pencil-BZJPNYWR.js → pencil-Bpimrzzw.js} +5 -2
  113. package/dist/style.css +1 -1
  114. package/dist/{styles-CavWjvol.js → styles-BMFMtR9R.js} +2121 -1267
  115. package/dist/templatical-editor.js +149 -120
  116. package/dist/{useEditorCore-BGnzcT7p.js → useEditorCore-CtNAo0uy.js} +2331 -2202
  117. package/dist/useMergeTag-2vTcVpNo.js +34 -0
  118. package/package.json +7 -7
  119. package/dist/CountdownBlock-BCi7-DAM.js +0 -92
  120. package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +0 -1
  121. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +0 -93
  122. package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +0 -1
  123. package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +0 -1
  124. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +0 -23
  125. package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +0 -1
  126. package/dist/cdn/chunks/de-_tooy3Q8.js.map +0 -1
  127. package/dist/cdn/chunks/en-CNqLoIm9.js.map +0 -1
  128. package/dist/cdn/chunks/features-DIBEo4xl.js.map +0 -1
  129. package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +0 -1
  130. package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +0 -1
  131. package/dist/cdn/chunks/styles-CQR6ed13.js.map +0 -1
  132. package/dist/check-DJrpDKO_.js +0 -7
  133. package/dist/useMergeTag-CfuZq2fF.js +0 -34
  134. /package/dist/{_plugin-vue_export-helper-Bwh4ceeO.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
  135. /package/dist/{clock-ik2pRJKG.js → clock-Ba4p3rJM.js} +0 -0
  136. /package/dist/{de-D2npYjrZ.js → de-GOtR9DwW.js} +0 -0
  137. /package/dist/{dist-DvHLtWVP.js → dist-DXa1uAMh.js} +0 -0
  138. /package/dist/{emojiData-DvQBBzmO.js → emojiData-DrBuvEoP.js} +0 -0
  139. /package/dist/{en-ib-4h3_o.js → en-dFFQVzNn.js} +0 -0
  140. /package/dist/{formatRelativeTime-CFDZnEIs.js → formatRelativeTime-BhhO8yCl.js} +0 -0
  141. /package/dist/{liquid.browser-7Rv0QDiO.js → liquid.browser-BvCyLQII.js} +0 -0
  142. /package/dist/{scan-line-DlghmhNf.js → scan-line-CzfFJO1o.js} +0 -0
  143. /package/dist/{send-DDdhIRj8.js → send-D2eSo4GH.js} +0 -0
  144. /package/dist/{shield-check-OSQ-JVTX.js → shield-check-jkpgcC0-.js} +0 -0
  145. /package/dist/{sparkles-BN4a-CoF.js → sparkles-Chm5CZfb.js} +0 -0
  146. /package/dist/{styleConstants-wWRbcuEK.js → styleConstants-34eUKPOZ.js} +0 -0
  147. /package/dist/{text-align-start-D1weisjS.js → text-align-start-CzBnJsW8.js} +0 -0
  148. /package/dist/{trash-2-CMWvQ5KX.js → trash-2-CtK2apEH.js} +0 -0
  149. /package/dist/{triangle-alert-DyidRNX_.js → triangle-alert-KpDVNbpn.js} +0 -0
  150. /package/dist/{undo-2-Cg8I7obC.js → undo-2-m1EUDbUg.js} +0 -0
  151. /package/dist/{useCloudI18n-BTTNBk5i.js → useCloudI18n-DOKSZql1.js} +0 -0
  152. /package/dist/{x-CgIhNcT9.js → x-BkaOMosX.js} +0 -0
@@ -1,19 +1,25 @@
1
- import { At as e, C as t, Ft as n, M as r, N as i, P as a, T as o, U as s, W as c, _ as l, b as u, et as d, f, g as p, h as m, j as h, jt as g, l as _, m as v, n as y, st as b, t as ee, v as x, x as S } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
- import { r as C } from "./timeouts-BSGxjuUF.js";
3
- import { f as te, r as ne } from "./dist-Bmir0gYb.js";
4
- import { L as w, S as T, t as re, z as ie } from "./useEditorCore-BGnzcT7p.js";
5
- import { w as ae } from "./keys-CvX8D-8C.js";
6
- import { a as oe, c as se, d as ce, f as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as E, p as D, r as O, s as k, t as A, u as j } from "./styles-CavWjvol.js";
7
- import { t as M } from "./_plugin-vue_export-helper-Bwh4ceeO.js";
1
+ import { At as e, C as t, Ft as n, M as r, N as i, P as a, T as o, U as s, W as c, _ as l, b as ee, et as u, f as te, g as d, h as f, j as ne, jt as p, l as m, m as h, n as g, st as _, t as re, v, x as y, y as ie } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ import { r as b } from "./timeouts-BSGxjuUF.js";
3
+ import { f as ae, r as x } from "./dist-C2grMquk.js";
4
+ import { B as oe, C as S, R as C, t as se } from "./useEditorCore-CtNAo0uy.js";
5
+ import { w } from "./keys-CvX8D-8C.js";
6
+ import { _ as T, a as ce, c as le, d as ue, f as de, g as fe, h as E, i as pe, l as me, m as D, n as he, o as O, p as k, r as A, s as j, t as M, u as N } from "./styles-BMFMtR9R.js";
7
+ import { t as P } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
8
8
  //#region src/Editor.vue?vue&type=script&setup=true&lang.ts
9
- var N = ["data-tpl-theme"], P = {
9
+ var F = ["data-tpl-theme"], I = {
10
10
  class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4 tpl:shadow-[var(--tpl-shadow-md)] tpl:border-b tpl:border-[var(--tpl-border)]",
11
11
  style: {
12
12
  "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
13
13
  "backdrop-filter": "blur(12px)",
14
14
  "-webkit-backdrop-filter": "blur(12px)"
15
15
  }
16
- }, F = { class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, I = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, L = { class: "tpl:flex tpl:justify-center tpl:p-8" }, R = ["aria-label"], z = /* @__PURE__ */ M(/* @__PURE__ */ t({
16
+ }, L = { class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, R = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, ge = {
17
+ key: 0,
18
+ class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6"
19
+ }, _e = { class: "tpl-popup-browser-frame tpl:flex tpl:min-h-[calc(100vh-11rem)] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-xl)]" }, ve = {
20
+ key: 1,
21
+ class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3 tpl:p-8"
22
+ }, ye = ["aria-label"], z = /* @__PURE__ */ P(/* @__PURE__ */ t({
17
23
  __name: "Editor",
18
24
  props: {
19
25
  config: {},
@@ -21,114 +27,118 @@ var N = ["data-tpl-theme"], P = {
21
27
  fontsManager: {}
22
28
  },
23
29
  setup(t, { expose: o }) {
24
- let y = d(null), C = t, T = ie({
25
- content: C.config.content,
26
- templateDefaults: C.config.templateDefaults
27
- }), E = re({
28
- editor: T,
30
+ let g = u(null), b = t, S = oe({
31
+ content: b.config.content,
32
+ templateDefaults: b.config.templateDefaults
33
+ }), O = se({
34
+ editor: S,
29
35
  config: {
30
- uiTheme: C.config.uiTheme,
31
- theme: C.config.theme,
32
- blockDefaults: C.config.blockDefaults,
33
- customBlocks: C.config.customBlocks,
34
- mergeTags: C.config.mergeTags,
35
- displayConditions: C.config.displayConditions,
36
- onRequestMedia: C.config.onRequestMedia,
37
- editorType: C.config.editorType,
38
- accessibility: de(C.config),
39
- onSave: C.config.onSave ? () => C.config.onSave(JSON.parse(JSON.stringify(T.state.content))) : void 0
36
+ uiTheme: b.config.uiTheme,
37
+ theme: b.config.theme,
38
+ blockDefaults: b.config.blockDefaults,
39
+ customBlocks: b.config.customBlocks,
40
+ mergeTags: b.config.mergeTags,
41
+ displayConditions: b.config.displayConditions,
42
+ onRequestMedia: b.config.onRequestMedia,
43
+ editorType: b.config.editorType,
44
+ accessibility: fe(b.config),
45
+ onSave: b.config.onSave ? () => b.config.onSave(JSON.parse(JSON.stringify(S.state.content))) : void 0
40
46
  },
41
- translations: C.translations,
42
- fontsManager: C.fontsManager,
43
- autoSaveOptions: C.config.onChange ? { onChange: () => C.config.onChange(JSON.parse(JSON.stringify(T.state.content))) } : null
47
+ translations: b.translations,
48
+ fontsManager: b.fontsManager,
49
+ autoSaveOptions: b.config.onChange ? { onChange: () => b.config.onChange(JSON.parse(JSON.stringify(S.state.content))) } : null
44
50
  });
45
- h(async () => {
46
- if (await C.fontsManager.loadCustomFonts(), w(C.config.editorType) === "popup" && !T.content.value.settings.popup) {
47
- let e = te();
48
- T.updateSettings({
51
+ ne(async () => {
52
+ if (await b.fontsManager.loadCustomFonts(), C(b.config.editorType) === "popup" && !S.content.value.settings.popup) {
53
+ let e = ae();
54
+ S.updateSettings({
49
55
  popup: e,
50
- width: ne[e.design.sizePreset]
56
+ width: x[e.design.sizePreset]
51
57
  });
52
58
  }
53
59
  }), r(() => {
54
- C.fontsManager.cleanupFontLinks(), E.destroy();
60
+ b.fontsManager.cleanupFontLinks(), O.destroy();
55
61
  });
56
- let M = d("blocks");
57
- a(ae, M);
58
- let z = v(() => w(C.config.editorType) === "popup"), B = v(() => z.value && M.value === "displayRules"), V = v(() => z.value && M.value === "schedule"), H = v(() => M.value === "design"), U = v(() => z.value && (B.value || V.value || H.value)), W = v(() => {
59
- if (T.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
62
+ let P = u("blocks");
63
+ a(w, P);
64
+ let z = h(() => C(b.config.editorType) === "popup"), B = h(() => z.value && P.value === "displayRules"), V = h(() => z.value && P.value === "schedule"), H = h(() => P.value === "design"), U = h(() => z.value && (B.value || V.value || H.value)), W = h(() => {
65
+ if (S.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
60
66
  if (!z.value) return ["tpl:left-12", "tpl:right-[320px]"];
61
67
  let e;
62
- e = M.value === "blocks" ? "tpl:left-[272px]" : H.value ? "tpl:left-[392px]" : "tpl:left-[72px]";
68
+ e = P.value === "blocks" ? "tpl:left-[272px]" : H.value ? "tpl:left-[392px]" : "tpl:left-[72px]";
63
69
  let t = U.value ? "tpl:right-0" : "tpl:right-[320px]";
64
70
  return [e, t];
65
- }), G = v(() => B.value || V.value);
71
+ }), G = h(() => B.value || V.value);
66
72
  return o({
67
- getContent: () => T.content.value,
68
- setContent: (e) => T.setContent(e),
69
- setTheme: (e) => T.setUiTheme(e),
70
- undo: () => E.history.undo(),
71
- redo: () => E.history.redo(),
72
- canUndo: () => E.history.canUndo.value,
73
- canRedo: () => E.history.canRedo.value,
74
- renderCustomBlock: E.registry.renderCustomBlock,
75
- startTour: (e) => y.value?.start(e),
76
- dismissTour: () => y.value?.dismiss(),
77
- resetTourDismissed: () => fe(C.config.tour),
78
- isTourDismissed: () => C.config.tour ? oe(C.config.tour) : !0
79
- }), (r, a) => (i(), x("div", {
80
- class: e(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(T).state.darkMode }]),
81
- "data-tpl-theme": b(E).resolvedTheme.value,
82
- style: g(b(E).themeStyles.value)
73
+ getContent: () => S.content.value,
74
+ setContent: (e) => S.setContent(e),
75
+ setTheme: (e) => S.setUiTheme(e),
76
+ undo: () => O.history.undo(),
77
+ redo: () => O.history.redo(),
78
+ canUndo: () => O.history.canUndo.value,
79
+ canRedo: () => O.history.canRedo.value,
80
+ renderCustomBlock: O.registry.renderCustomBlock,
81
+ startTour: (e) => g.value?.start(e),
82
+ dismissTour: () => g.value?.dismiss(),
83
+ resetTourDismissed: () => pe(b.config.tour),
84
+ isTourDismissed: () => b.config.tour ? ce(b.config.tour) : !0
85
+ }), (r, a) => (i(), v("div", {
86
+ class: e(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": _(S).state.darkMode }]),
87
+ "data-tpl-theme": _(O).resolvedTheme.value,
88
+ style: p(_(O).themeStyles.value)
83
89
  }, [
84
- m("header", P, [
85
- a[5] ||= m("div", { class: "tpl:flex tpl:items-center tpl:gap-2.5" }, null, -1),
86
- m("div", F, [
87
- S(ce),
88
- S(j, {
89
- viewport: b(T).state.viewport,
90
- onChange: b(T).setViewport
90
+ f("header", I, [
91
+ a[5] ||= f("div", { class: "tpl:flex tpl:items-center tpl:gap-2.5" }, null, -1),
92
+ f("div", L, [
93
+ y(ue),
94
+ y(N, {
95
+ viewport: _(S).state.viewport,
96
+ onChange: _(S).setViewport
91
97
  }, null, 8, ["viewport", "onChange"]),
92
- S(se, {
93
- "dark-mode": b(T).state.darkMode,
94
- onChange: b(T).setDarkMode
98
+ y(le, {
99
+ "dark-mode": _(S).state.darkMode,
100
+ onChange: _(S).setDarkMode
95
101
  }, null, 8, ["dark-mode", "onChange"]),
96
- S(pe, {
97
- "preview-mode": b(T).state.previewMode,
98
- onChange: b(T).setPreviewMode
102
+ y(me, {
103
+ "preview-mode": _(S).state.previewMode,
104
+ onChange: _(S).setPreviewMode
99
105
  }, null, 8, ["preview-mode", "onChange"])
100
106
  ]),
101
- a[6] ||= m("div", { class: "tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, null, -1)
107
+ a[6] ||= f("div", { class: "tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, null, -1)
102
108
  ]),
103
- c(S(D, null, null, 512), [[_, !b(T).state.previewMode]]),
104
- m("div", {
109
+ c(y(k, null, null, 512), [[m, !_(S).state.previewMode]]),
110
+ f("div", {
105
111
  class: e(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...W.value, "tpl:top-14"]]),
106
- style: g({
112
+ style: p({
107
113
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
108
114
  backgroundColor: G.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
109
115
  })
110
- }, [z.value && M.value === "displayRules" ? (i(), p(he, { key: 0 })) : z.value && M.value === "schedule" ? (i(), p(A, {
116
+ }, [z.value && P.value === "displayRules" ? (i(), d(he, { key: 0 })) : z.value && P.value === "schedule" ? (i(), d(M, {
111
117
  key: 1,
112
118
  layout: "standalone"
113
- })) : (i(), x(f, { key: 2 }, [m("div", I, [S(ee, { name: "tpl-restore-btn" }, {
114
- default: s(() => [b(E).conditionPreview.hasHiddenBlocks.value ? (i(), x("button", {
119
+ })) : (i(), v(te, { key: 2 }, [f("div", R, [y(re, { name: "tpl-restore-btn" }, {
120
+ default: s(() => [_(O).conditionPreview.hasHiddenBlocks.value ? (i(), v("button", {
115
121
  key: 0,
116
122
  class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:-translate-x-1/2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-full tpl:border tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:whitespace-nowrap tpl:shadow-md tpl:hover:opacity-80 tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)] tpl:border-[var(--tpl-warning)]",
117
123
  style: { "backdrop-filter": "blur(8px)" },
118
- onClick: a[0] ||= (e) => b(E).conditionPreview.reset()
119
- }, [S(b(ue), {
124
+ onClick: a[0] ||= (e) => _(O).conditionPreview.reset()
125
+ }, [y(_(T), {
120
126
  size: 13,
121
127
  "stroke-width": 2
122
- }), u(" " + n(b(E).t.blockSettings.restoreHiddenBlocks), 1)])) : l("", !0)]),
128
+ }), ee(" " + n(_(O).t.blockSettings.restoreHiddenBlocks), 1)])) : l("", !0)]),
123
129
  _: 1
124
- })]), m("div", L, [S(me, {
125
- viewport: b(T).state.viewport,
126
- content: b(T).content.value,
127
- "selected-block-id": b(T).state.selectedBlockId,
128
- "dark-mode": b(T).state.darkMode,
129
- "preview-mode": b(T).state.previewMode,
130
+ })]), z.value ? (i(), v("div", ge, [y(D, {
131
+ "preview-mode": _(S).state.previewMode,
132
+ "multi-page-canvas": t.config.multiPageCanvas ?? !1
133
+ }, null, 8, ["preview-mode", "multi-page-canvas"]), f("div", _e, [a[7] ||= ie("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-186f5453><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-186f5453></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-186f5453></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-186f5453></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-186f5453> yourstore.com </div></div>", 1), y(E, {
134
+ class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col",
135
+ viewport: _(S).state.viewport,
136
+ content: _(S).content.value,
137
+ "selected-block-id": _(S).state.selectedBlockId,
138
+ "dark-mode": _(S).state.darkMode,
139
+ "preview-mode": _(S).state.previewMode,
130
140
  "multi-page-canvas": t.config.multiPageCanvas ?? !1,
131
- onSelectBlock: b(T).selectBlock
141
+ onSelectBlock: _(S).selectBlock
132
142
  }, null, 8, [
133
143
  "viewport",
134
144
  "content",
@@ -137,45 +147,64 @@ var N = ["data-tpl-theme"], P = {
137
147
  "preview-mode",
138
148
  "multi-page-canvas",
139
149
  "onSelectBlock"
140
- ])])], 64))], 6),
141
- t.config.branding === !1 ? l("", !0) : (i(), p(k, {
150
+ ])])])) : (i(), v("div", ve, [y(D, {
151
+ "preview-mode": _(S).state.previewMode,
152
+ "multi-page-canvas": t.config.multiPageCanvas ?? !1
153
+ }, null, 8, ["preview-mode", "multi-page-canvas"]), y(E, {
154
+ viewport: _(S).state.viewport,
155
+ content: _(S).content.value,
156
+ "selected-block-id": _(S).state.selectedBlockId,
157
+ "dark-mode": _(S).state.darkMode,
158
+ "preview-mode": _(S).state.previewMode,
159
+ "multi-page-canvas": t.config.multiPageCanvas ?? !1,
160
+ onSelectBlock: _(S).selectBlock
161
+ }, null, 8, [
162
+ "viewport",
163
+ "content",
164
+ "selected-block-id",
165
+ "dark-mode",
166
+ "preview-mode",
167
+ "multi-page-canvas",
168
+ "onSelectBlock"
169
+ ])]))], 64))], 6),
170
+ t.config.branding === !1 ? l("", !0) : (i(), d(j, {
142
171
  key: 0,
143
172
  "position-class": W.value
144
173
  }, null, 8, ["position-class"])),
145
- m("div", {
174
+ f("div", {
146
175
  class: "tpl-sr-only",
147
176
  role: "status",
148
177
  "aria-live": "polite",
149
178
  "aria-atomic": "true",
150
- "aria-label": b(E).t.landmarks.reorderAnnouncements
151
- }, n(b(E).keyboardReorder.announcement.value), 9, R),
152
- c(S(le, {
153
- "selected-block": b(T).selectedBlock.value,
154
- settings: b(T).content.value.settings,
155
- onUpdateBlock: a[1] ||= (e) => b(T).updateBlock(b(T).state.selectedBlockId, e),
179
+ "aria-label": _(O).t.landmarks.reorderAnnouncements
180
+ }, n(_(O).keyboardReorder.announcement.value), 9, ye),
181
+ c(y(de, {
182
+ "selected-block": _(S).selectedBlock.value,
183
+ settings: _(S).content.value.settings,
184
+ onUpdateBlock: a[1] ||= (e) => _(S).updateBlock(_(S).state.selectedBlockId, e),
156
185
  onDeleteBlock: a[2] ||= () => {
157
- b(T).state.selectedBlockId && b(E).blockActions.deleteBlock(b(T).state.selectedBlockId);
186
+ _(S).state.selectedBlockId && _(O).blockActions.deleteBlock(_(S).state.selectedBlockId);
158
187
  },
159
188
  onDuplicateBlock: a[3] ||= () => {
160
- b(T).selectedBlock.value && b(E).blockActions.duplicateBlock(b(T).selectedBlock.value);
189
+ _(S).selectedBlock.value && _(O).blockActions.duplicateBlock(_(S).selectedBlock.value);
161
190
  },
162
- onUpdateSettings: a[4] ||= (e) => b(T).updateSettings(e)
163
- }, null, 8, ["selected-block", "settings"]), [[_, !b(T).state.previewMode && !U.value]]),
164
- t.config.tour ? (i(), p(O, {
191
+ onUpdateSettings: a[4] ||= (e) => _(S).updateSettings(e)
192
+ }, null, 8, ["selected-block", "settings"]), [[m, !_(S).state.previewMode && !U.value]]),
193
+ t.config.tour ? (i(), d(A, {
165
194
  key: 1,
166
195
  ref_key: "editorTourRef",
167
- ref: y,
196
+ ref: g,
168
197
  "tour-config": t.config.tour,
169
- "dark-mode": b(T).state.darkMode
198
+ "dark-mode": _(S).state.darkMode
170
199
  }, null, 8, ["tour-config", "dark-mode"])) : l("", !0)
171
- ], 14, N));
200
+ ], 14, F));
172
201
  }
173
- }), [["__scopeId", "data-v-040fed1e"]]), B = /* @__PURE__ */ Object.assign({
174
- "./locales/de.ts": () => import("./de-2LEvILeZ.js"),
175
- "./locales/en.ts": () => import("./en-D2RU2Poj.js")
202
+ }), [["__scopeId", "data-v-186f5453"]]), B = /* @__PURE__ */ Object.assign({
203
+ "./locales/de.ts": () => import("./de-C74F9xK3.js"),
204
+ "./locales/en.ts": () => import("./en-B24jVTeO.js")
176
205
  }), V = /* @__PURE__ */ Object.assign({
177
- "./locales/cloud/de.ts": () => import("./de-D2npYjrZ.js"),
178
- "./locales/cloud/en.ts": () => import("./en-ib-4h3_o.js")
206
+ "./locales/cloud/de.ts": () => import("./de-GOtR9DwW.js"),
207
+ "./locales/cloud/en.ts": () => import("./en-dFFQVzNn.js")
179
208
  });
180
209
  function H(e) {
181
210
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
@@ -192,13 +221,13 @@ async function q(e) {
192
221
  let t = B[`./locales/${K(e, U)}.ts`];
193
222
  return (await t()).default;
194
223
  }
195
- async function ge(e) {
224
+ async function be(e) {
196
225
  let t = V[`./locales/cloud/${K(e, W)}.ts`];
197
226
  return (await t()).default;
198
227
  }
199
228
  //#endregion
200
229
  //#region src/utils/toMjml.ts
201
- async function _e(e) {
230
+ async function xe(e) {
202
231
  let t;
203
232
  try {
204
233
  t = await import("@aswin.dev/renderer");
@@ -209,12 +238,12 @@ async function _e(e) {
209
238
  }
210
239
  //#endregion
211
240
  //#region src/index.ts
212
- var J = null, Y = d(null);
213
- async function ve(e) {
241
+ var J = null, Y = u(null);
242
+ async function Se(e) {
214
243
  let t = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
215
244
  if (!t) throw Error(`[Templatical] Container element not found: ${e.container}`);
216
- let n = await q(e.locale ?? "en"), r = T(e.fonts);
217
- J && Q(), J = y({ setup() {
245
+ let n = await q(e.locale ?? "en"), r = S(e.fonts);
246
+ J && Q(), J = g({ setup() {
218
247
  return () => o(z, {
219
248
  config: e,
220
249
  translations: n,
@@ -260,20 +289,20 @@ async function ve(e) {
260
289
  renderCustomBlock(e) {
261
290
  return Y.value ? Y.value.renderCustomBlock(e) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
262
291
  },
263
- toMjml: () => _e(i)
292
+ toMjml: () => xe(i)
264
293
  };
265
294
  return i;
266
295
  }
267
- var X = null, Z = d(null);
268
- async function ye(e) {
296
+ var X = null, Z = u(null);
297
+ async function Ce(e) {
269
298
  let t = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
270
299
  if (!t) throw Error(`[Templatical] Container element not found: ${e.container}`);
271
- let { default: n } = await import("./CloudEditor-zo9PjjvY.js"), [r, i] = await Promise.all([q(e.locale ?? "en"), ge(e.locale ?? "en")]), a = T(e.fonts);
300
+ let { default: n } = await import("./CloudEditor-CnUX0IOW.js"), [r, i] = await Promise.all([q(e.locale ?? "en"), be(e.locale ?? "en")]), a = S(e.fonts);
272
301
  return X && $(), await new Promise((s, c) => {
273
302
  let l = setTimeout(() => {
274
303
  c(/* @__PURE__ */ Error("[Templatical] Cloud editor initialization timed out"));
275
- }, C);
276
- X = y({ setup() {
304
+ }, b);
305
+ X = g({ setup() {
277
306
  return () => o(n, {
278
307
  config: e,
279
308
  translations: r,
@@ -338,4 +367,4 @@ function $() {
338
367
  X && (X.unmount(), X = null, Z.value = null);
339
368
  }
340
369
  //#endregion
341
- export { E as DEFAULT_EDITOR_TOUR_STORAGE_KEY, ve as init, ye as initCloud, Q as unmount, T as useFonts };
370
+ export { O as DEFAULT_EDITOR_TOUR_STORAGE_KEY, Se as init, Ce as initCloud, Q as unmount, S as useFonts };