@templatical/editor 0.24.1 → 0.25.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 (153) hide show
  1. package/dist/{AiChatSidebar-X4viKtvs.js → AiChatSidebar-CIkS8DsO.js} +3 -3
  2. package/dist/{AiFeatureMenu-DDAamRaA.js → AiFeatureMenu-Cji1LBJJ.js} +3 -3
  3. package/dist/{BlockIssueBadge-Qxrl7Ujl.js → BlockIssueBadge-BQiT0FML.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-Cf-kxbEr.js → BlockPreviewCanvas-DAnwZofk.js} +10 -6
  5. package/dist/{CloudEditor-JIzhj1Xq.js → CloudEditor-CXaft6Ej.js} +60 -58
  6. package/dist/{CollaboratorBar-tC7AACTb.js → CollaboratorBar-BR-rL2wG.js} +2 -2
  7. package/dist/{ColorPicker--_2PbzFk.js → ColorPicker-B4ArSUhy.js} +3 -3
  8. package/dist/{CommentsSidebar-Ci2Ov8FG.js → CommentsSidebar-Bm5GLDts.js} +4 -4
  9. package/dist/{CountdownBlock-aZIKfBWY.js → CountdownBlock-CIVAQDVu.js} +1 -1
  10. package/dist/{CountdownToolbar-DHp6T0Q_.js → CountdownToolbar-DBmb3tlb.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-DQsC-3hB.js → DesignReferenceSidebar-CnyJ8L-j.js} +3 -3
  12. package/dist/{IssuesPanel-CoOfib44.js → IssuesPanel-D3XgmYCt.js} +2 -2
  13. package/dist/{MergeTagModeToggle-CiFiSV0C.js → MergeTagModeToggle-BK0fI3P2.js} +3 -3
  14. package/dist/{NumberWithSuffix-CXFbUqsx.js → NumberWithSuffix-Cjj9UNIp.js} +1 -1
  15. package/dist/{ParagraphEditor-Cy-bpEjI.js → ParagraphEditor-jGnbJEA2.js} +8 -8
  16. package/dist/{RichTextEditorContent-CYJko6id.js → RichTextEditorContent-DaaKdzjb.js} +4 -4
  17. package/dist/{SaveBlockDialog-CNTSaMEa.js → SaveBlockDialog-B3ngEldp.js} +7 -7
  18. package/dist/{SavedBlocksBrowserModal-CvxS5-YX.js → SavedBlocksBrowserModal-DawN3XaB.js} +6 -6
  19. package/dist/{SavedBlocksPanels-CNdUxS89.js → SavedBlocksPanels-eDC9Y46N.js} +1 -1
  20. package/dist/{SavedBlocksPickBar-BvXKhblL.js → SavedBlocksPickBar-CQbbXmzj.js} +2 -2
  21. package/dist/{SnapshotHistory-BqPSIV9L.js → SnapshotHistory-COxKtHM-.js} +4 -4
  22. package/dist/{TemplateScoringPanel-CMEuz9yF.js → TemplateScoringPanel-bUuqOO1z.js} +3 -3
  23. package/dist/{TestEmailModal-BDhnnCBx.js → TestEmailModal-CytkbZVQ.js} +87 -56
  24. package/dist/{TestEmailPanel--RwnwLn2.js → TestEmailPanel-CHUY7VZn.js} +1 -1
  25. package/dist/{TitleEditor-F7E_pU9H.js → TitleEditor-aMR1bOyY.js} +7 -7
  26. package/dist/{TplModal-BIiS24Of.js → TplModal-fmYNYdyp.js} +3 -3
  27. package/dist/{blockTypeIcons-C6PnLMp7.js → blockTypeIcons-C6b9rg88.js} +1 -1
  28. package/dist/bundle-stats.json +6 -6
  29. package/dist/{cdn/chunks/ca-CO4nq6TX.js → ca-8Dvbwo50.js} +5 -2
  30. package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js → AiChatSidebar-bkBKpNgE.js} +4 -4
  31. package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js.map → AiChatSidebar-bkBKpNgE.js.map} +1 -1
  32. package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js → AiFeatureMenu-CI4SYTq2.js} +4 -4
  33. package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js.map → AiFeatureMenu-CI4SYTq2.js.map} +1 -1
  34. package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js → BlockIssueBadge-CRnx8Dv9.js} +3 -3
  35. package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js.map → BlockIssueBadge-CRnx8Dv9.js.map} +1 -1
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-C-ut8GkJ.js → BlockPreviewCanvas-CXCWhqbp.js} +11 -7
  37. package/dist/cdn/chunks/BlockPreviewCanvas-CXCWhqbp.js.map +1 -0
  38. package/dist/cdn/chunks/{CloudEditor-D87qsqbZ.js → CloudEditor-D-t7RyDh.js} +62 -60
  39. package/dist/cdn/chunks/CloudEditor-D-t7RyDh.js.map +1 -0
  40. package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js → CollaboratorBar-DcXYo47v.js} +3 -3
  41. package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js.map → CollaboratorBar-DcXYo47v.js.map} +1 -1
  42. package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js → ColorPicker-_1O7YU2z.js} +4 -4
  43. package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js.map → ColorPicker-_1O7YU2z.js.map} +1 -1
  44. package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js → CommentsSidebar-BEgLBYX-.js} +5 -5
  45. package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js.map → CommentsSidebar-BEgLBYX-.js.map} +1 -1
  46. package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js → CountdownBlock-CPnQA44g.js} +2 -2
  47. package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js.map → CountdownBlock-CPnQA44g.js.map} +1 -1
  48. package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js → CountdownToolbar-Cdo-30U4.js} +4 -4
  49. package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js.map → CountdownToolbar-Cdo-30U4.js.map} +1 -1
  50. package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js → DesignReferenceSidebar-DPqBr-ut.js} +4 -4
  51. package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js.map → DesignReferenceSidebar-DPqBr-ut.js.map} +1 -1
  52. package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js → IssuesPanel-DoQWb23r.js} +3 -3
  53. package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js.map → IssuesPanel-DoQWb23r.js.map} +1 -1
  54. package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js → MergeTagModeToggle-CWuVC3MU.js} +4 -4
  55. package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js.map → MergeTagModeToggle-CWuVC3MU.js.map} +1 -1
  56. package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js → NumberWithSuffix-DQ4sgvt5.js} +2 -2
  57. package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js.map → NumberWithSuffix-DQ4sgvt5.js.map} +1 -1
  58. package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js → ParagraphEditor-Uv5LPF3W.js} +9 -9
  59. package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js.map → ParagraphEditor-Uv5LPF3W.js.map} +1 -1
  60. package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js → RichTextEditorContent-Bt3s09qY.js} +5 -5
  61. package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js.map → RichTextEditorContent-Bt3s09qY.js.map} +1 -1
  62. package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js → SaveBlockDialog-BAew6EFd.js} +8 -8
  63. package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js.map → SaveBlockDialog-BAew6EFd.js.map} +1 -1
  64. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js → SavedBlocksBrowserModal-Dn4IJDJW.js} +6 -6
  65. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js.map → SavedBlocksBrowserModal-Dn4IJDJW.js.map} +1 -1
  66. package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js → SavedBlocksPanels-B62U5DYW.js} +2 -2
  67. package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js.map → SavedBlocksPanels-B62U5DYW.js.map} +1 -1
  68. package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js → SavedBlocksPickBar-CyRKZg2T.js} +3 -3
  69. package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js.map → SavedBlocksPickBar-CyRKZg2T.js.map} +1 -1
  70. package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js → SnapshotHistory-QQt0DKey.js} +4 -4
  71. package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js.map → SnapshotHistory-QQt0DKey.js.map} +1 -1
  72. package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js → TemplateScoringPanel-BwyCMcit.js} +65 -65
  73. package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js.map → TemplateScoringPanel-BwyCMcit.js.map} +1 -1
  74. package/dist/cdn/chunks/{TestEmailModal-Ce8-vzGh.js → TestEmailModal-B5UQkDJp.js} +89 -58
  75. package/dist/cdn/chunks/TestEmailModal-B5UQkDJp.js.map +1 -0
  76. package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js → TestEmailPanel-CvuBq4RA.js} +2 -2
  77. package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js.map → TestEmailPanel-CvuBq4RA.js.map} +1 -1
  78. package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js → TitleEditor-B9W954u9.js} +8 -8
  79. package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js.map → TitleEditor-B9W954u9.js.map} +1 -1
  80. package/dist/cdn/chunks/{TplModal-D6bFON2K.js → TplModal-B8UsvWc8.js} +4 -4
  81. package/dist/cdn/chunks/{TplModal-D6bFON2K.js.map → TplModal-B8UsvWc8.js.map} +1 -1
  82. package/dist/{ca-CO4nq6TX.js → cdn/chunks/ca-8Dvbwo50.js} +7 -0
  83. package/dist/cdn/chunks/{ca-CO4nq6TX.js.map → ca-8Dvbwo50.js.map} +1 -1
  84. package/dist/cdn/chunks/{cloud-CRlDc0Ev.js → cloud-DOaGUdR0.js} +2 -2
  85. package/dist/cdn/chunks/{cloud-CRlDc0Ev.js.map → cloud-DOaGUdR0.js.map} +1 -1
  86. package/dist/{de-CUeaFJph.js → cdn/chunks/de-CieSMCUp.js} +7 -0
  87. package/dist/cdn/chunks/{de-CUeaFJph.js.map → de-CieSMCUp.js.map} +1 -1
  88. package/dist/{en-zCYIPAL5.js → cdn/chunks/en-D0t_2Fq_.js} +7 -0
  89. package/dist/cdn/chunks/{en-zCYIPAL5.js.map → en-D0t_2Fq_.js.map} +1 -1
  90. package/dist/cdn/chunks/{es-BSiH7YkP.js → es-DwDoNuLM.js} +6 -1
  91. package/dist/cdn/chunks/{es-BSiH7YkP.js.map → es-DwDoNuLM.js.map} +1 -1
  92. package/dist/cdn/chunks/{extensions-CKMD_er_.js → extensions-5jgtarD-.js} +19 -19
  93. package/dist/cdn/chunks/{extensions-CKMD_er_.js.map → extensions-5jgtarD-.js.map} +1 -1
  94. package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-CSEEzv1_.js} +7 -0
  95. package/dist/cdn/chunks/{fr-DTVJ3det.js.map → fr-CSEEzv1_.js.map} +1 -1
  96. package/dist/cdn/chunks/keys-BxPCfHBH.js +12 -0
  97. package/dist/cdn/chunks/keys-BxPCfHBH.js.map +1 -0
  98. package/dist/{nl-BqSquFS3.js → cdn/chunks/nl-xyk1T2mA.js} +7 -0
  99. package/dist/cdn/chunks/{nl-BqSquFS3.js.map → nl-xyk1T2mA.js.map} +1 -1
  100. package/dist/{pt-BR-CMljK37h.js → cdn/chunks/pt-BR-yr6uOJgn.js} +7 -0
  101. package/dist/cdn/chunks/{pt-BR-CMljK37h.js.map → pt-BR-yr6uOJgn.js.map} +1 -1
  102. package/dist/cdn/chunks/{src-B4UhYbI8.js → src-B8W42vT-.js} +152 -152
  103. package/dist/cdn/chunks/{src-B4UhYbI8.js.map → src-B8W42vT-.js.map} +1 -1
  104. package/dist/cdn/chunks/{src-B3HKHglu.js → src-C417zeUg.js} +20 -20
  105. package/dist/cdn/chunks/{src-B3HKHglu.js.map → src-C417zeUg.js.map} +1 -1
  106. package/dist/cdn/chunks/{src-D5mfLR4V.js → src-CZjSXPYq.js} +8 -3
  107. package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
  108. package/dist/cdn/chunks/{src-CumZZNXZ.js → src-Dpj0x27M.js} +2 -2
  109. package/dist/cdn/chunks/{src-CumZZNXZ.js.map → src-Dpj0x27M.js.map} +1 -1
  110. package/dist/cdn/chunks/{styles--m9OCb_Z.js → styles-DANwMzW2.js} +743 -724
  111. package/dist/cdn/chunks/styles-DANwMzW2.js.map +1 -0
  112. package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js → useCloudI18n-CjVzv11v.js} +2 -2
  113. package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js.map → useCloudI18n-CjVzv11v.js.map} +1 -1
  114. package/dist/cdn/chunks/{useEditorCore-ZqF7P99K.js → useEditorCore-DfW-thCr.js} +472 -401
  115. package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +1 -0
  116. package/dist/cdn/chunks/{useI18n-vD57BfVR.js → useI18n-DniEFeIl.js} +2 -2
  117. package/dist/cdn/chunks/{useI18n-vD57BfVR.js.map → useI18n-DniEFeIl.js.map} +1 -1
  118. package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js → useMergeTag-Bk9_f5cc.js} +6 -6
  119. package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js.map → useMergeTag-Bk9_f5cc.js.map} +1 -1
  120. package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js → usePopoverPosition-C4xFJCJ2.js} +2 -2
  121. package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js.map → usePopoverPosition-C4xFJCJ2.js.map} +1 -1
  122. package/dist/cdn/editor.css +1 -1
  123. package/dist/cdn/editor.js +21 -19
  124. package/dist/cdn/editor.js.map +1 -1
  125. package/dist/{cloud-R8ci6yR1.js → cloud-BZn3jqoL.js} +1 -1
  126. package/dist/{cdn/chunks/de-CUeaFJph.js → de-CieSMCUp.js} +5 -2
  127. package/dist/{dist-Ba5Q-UX1.js → dist-CQ0fVBQ3.js} +7 -2
  128. package/dist/{cdn/chunks/en-zCYIPAL5.js → en-D0t_2Fq_.js} +5 -2
  129. package/dist/{es-BSiH7YkP.js → es-DwDoNuLM.js} +5 -0
  130. package/dist/{extensions-CGxj6-2o.js → extensions-BjvyU9Ea.js} +3 -3
  131. package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-CSEEzv1_.js} +5 -2
  132. package/dist/index.d.ts +26 -0
  133. package/dist/keys-BFPiNAIn.js +10 -0
  134. package/dist/{cdn/chunks/nl-BqSquFS3.js → nl-xyk1T2mA.js} +5 -2
  135. package/dist/{cdn/chunks/pt-BR-CMljK37h.js → pt-BR-yr6uOJgn.js} +5 -2
  136. package/dist/style.css +1 -1
  137. package/dist/{styles-C9AMvkJk.js → styles-C9GM-bBC.js} +885 -866
  138. package/dist/templatical-editor.js +93 -91
  139. package/dist/{useCloudI18n-BC_QV2Z7.js → useCloudI18n-B2lItQ6O.js} +1 -1
  140. package/dist/{useEditorCore-Dojb-P2f.js → useEditorCore-Ck_hBiGA.js} +908 -837
  141. package/dist/{useI18n-DzOcl2wl.js → useI18n-C1KcdX_K.js} +1 -1
  142. package/dist/{useMergeTag-BFxXCv3p.js → useMergeTag-DHCwRMfH.js} +3 -3
  143. package/dist/{usePopoverPosition-Dtr1Mp1x.js → usePopoverPosition-ClnEh_Cp.js} +1 -1
  144. package/package.json +7 -7
  145. package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +0 -1
  146. package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +0 -1
  147. package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +0 -1
  148. package/dist/cdn/chunks/keys-CswSK7eb.js +0 -12
  149. package/dist/cdn/chunks/keys-CswSK7eb.js.map +0 -1
  150. package/dist/cdn/chunks/src-D5mfLR4V.js.map +0 -1
  151. package/dist/cdn/chunks/styles--m9OCb_Z.js.map +0 -1
  152. package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +0 -1
  153. package/dist/keys-uWpGv4Pq.js +0 -10
@@ -1,7 +1,7 @@
1
1
  import { A as e, Et as t, I as n, O as r, Ot as i, R as ee, Y as a, _ as o, c as s, d as c, h as l, l as u, m as d, nt as f, r as p, u as m, w as te, x as ne, z as re } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { a as h, t as g } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
3
  import { m as ie, p as ae } from "./dist-DT1XnEnj.js";
4
- import { H as _, T as oe, c as se, h as ce, r as le } from "./keys-uWpGv4Pq.js";
4
+ import { E as oe, G as _, g as se, i as ce, l as le } from "./keys-BFPiNAIn.js";
5
5
  import { t as v } from "./createLucideIcon-AEltGIse.js";
6
6
  import { t as ue } from "./circle-alert-DkEXnGPV.js";
7
7
  import { t as de } from "./loader-circle-B6euendB.js";
@@ -12,7 +12,7 @@ import { t as me } from "./x-C4lETLDx.js";
12
12
  import { t as b } from "./LoadingTrack-XK_eeUdq.js";
13
13
  import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
14
  import { t as S } from "./useAliveFlag-AfoTE_AY.js";
15
- import { o as C } from "./cloud-R8ci6yR1.js";
15
+ import { o as C } from "./cloud-BZn3jqoL.js";
16
16
  var w = v("redo-2", [["path", {
17
17
  d: "m15 14 5-5-5-5",
18
18
  key: "12vg1m"
@@ -80,7 +80,7 @@ var w = v("redo-2", [["path", {
80
80
  },
81
81
  emits: ["close"],
82
82
  setup(o, { emit: v }) {
83
- let x = o, B = v, V = _(se, "AiChatSidebar"), H = _(ce, "AiChatSidebar"), we = _(le, "AiChatSidebar"), U = ne(oe, []), W = S(), G = C({
83
+ let x = o, B = v, V = _(le, "AiChatSidebar"), H = _(se, "AiChatSidebar"), we = _(ce, "AiChatSidebar"), U = ne(oe, []), W = S(), G = C({
84
84
  authManager: we,
85
85
  getTemplateId: () => H.state.template?.id ?? null,
86
86
  onApply: x.onApply,
@@ -1,11 +1,11 @@
1
1
  import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import "./useEditorCore-Dojb-P2f.js";
3
- import { H as d, t as f } from "./keys-uWpGv4Pq.js";
2
+ import "./useEditorCore-Ck_hBiGA.js";
3
+ import { G as d, t as f } from "./keys-BFPiNAIn.js";
4
4
  import { t as p } from "./image-up-8ktdYdaZ.js";
5
5
  import { t as m } from "./shield-check-QfZkYeIo.js";
6
6
  import { t as h } from "./sparkles-8UeMmZb8.js";
7
7
  import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { n as _ } from "./useCloudI18n-BC_QV2Z7.js";
8
+ import { n as _ } from "./useCloudI18n-B2lItQ6O.js";
9
9
  //#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
10
10
  var v = {
11
11
  class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
@@ -1,6 +1,6 @@
1
1
  import { Et as e, O as t, _ as n, d as r, l as i, nt as a, s as o, u as s, x as c } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import { L as l } from "./keys-uWpGv4Pq.js";
3
- import { t as u } from "./useI18n-DzOcl2wl.js";
2
+ import { B as l } from "./keys-BFPiNAIn.js";
3
+ import { t as u } from "./useI18n-C1KcdX_K.js";
4
4
  import { t as d } from "./circle-alert-DkEXnGPV.js";
5
5
  import { t as f } from "./triangle-alert-B3PydLzl.js";
6
6
  //#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { A as t, Dt as n, M as r, N as i, O as a, _ as o, c as s, d as c, k as l, l as u, nt as d, r as f, s as p, x as m } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
3
- import { a as h, b as g, d as _, f as v, g as y, h as b, i as x, l as S, m as C, n as w, p as T, r as E, v as D, y as O, z as k } from "./useEditorCore-Dojb-P2f.js";
4
- import { O as A, V as j, d as M, h as N, o as P } from "./keys-uWpGv4Pq.js";
3
+ import { a as h, b as g, d as _, f as v, g as y, h as b, i as x, l as S, m as C, n as w, p as T, r as E, v as D, y as O, z as k } from "./useEditorCore-Ck_hBiGA.js";
4
+ import { W as A, f as j, g as M, k as N, s as P } from "./keys-BFPiNAIn.js";
5
5
  import { n as F, t as I } from "./emailFrameWidth-BmFCN2dp.js";
6
6
  //#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
7
7
  var L = { class: "tpl:w-full" }, R = { class: "tpl:flex tpl:gap-0" }, z = /* @__PURE__ */ o({
@@ -71,12 +71,16 @@ var L = { class: "tpl:w-full" }, R = { class: "tpl:flex tpl:gap-0" }, z = /* @__
71
71
  __name: "BlockPreviewCanvas",
72
72
  props: {
73
73
  blocks: {},
74
- viewport: { default: "desktop" }
74
+ viewport: { default: "desktop" },
75
+ applyConditionFilter: {
76
+ type: Boolean,
77
+ default: !0
78
+ }
75
79
  },
76
80
  setup(e) {
77
- let r = e, o = m(P), s = m(N, null), L = m(M, null), R = m(A, null);
78
- l(j, p(() => R?.value ?? !1));
79
- let B = p(() => r.blocks.filter((e) => !L?.isHidden(e.id))), V = p(() => F(s?.content.value.settings, r.viewport)), H = p(() => s ? v(s.content.value.settings) : {}), U = {
81
+ let r = e, o = m(P), s = m(M, null), L = m(j, null), R = m(N, null);
82
+ l(A, p(() => R?.value ?? !1));
83
+ let B = p(() => r.applyConditionFilter ? r.blocks.filter((e) => !L?.isHidden(e.id)) : r.blocks), V = p(() => F(s?.content.value.settings, r.viewport)), H = p(() => s ? v(s.content.value.settings) : {}), U = {
80
84
  section: z,
81
85
  title: S,
82
86
  paragraph: C,
@@ -1,27 +1,27 @@
1
1
  import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as c, R as l, Y as u, Z as d, _ as f, c as p, d as m, g as h, h as g, k as _, l as v, m as y, nt as b, p as x, r as S, s as C, u as w, z as T } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
3
  import { n as k } from "./upload-hE8ItfyG.js";
4
- import { M as A } from "./dist-Ba5Q-UX1.js";
5
- import { E as j, V as M, t as N, x as P } from "./useEditorCore-Dojb-P2f.js";
4
+ import { M as A } from "./dist-CQ0fVBQ3.js";
5
+ import { E as j, V as M, t as N, x as P } from "./useEditorCore-Ck_hBiGA.js";
6
6
  import { m as F } from "./dist-DT1XnEnj.js";
7
- import { s as I } from "./usePopoverPosition-Dtr1Mp1x.js";
8
- import { I as L, c as R, j as ee, r as z, s as B, t as V, u as te } from "./keys-uWpGv4Pq.js";
9
- import { t as H } from "./useI18n-DzOcl2wl.js";
7
+ import { s as I } from "./usePopoverPosition-ClnEh_Cp.js";
8
+ import { M as L, c as ee, d as R, i as z, l as B, t as V, z as te } from "./keys-BFPiNAIn.js";
9
+ import { t as H } from "./useI18n-C1KcdX_K.js";
10
10
  import { t as U } from "./createLucideIcon-AEltGIse.js";
11
11
  import { t as W } from "./check-CIhIDh4h.js";
12
12
  import { t as G } from "./circle-alert-DkEXnGPV.js";
13
- import { a as K, c as ne, d as q, f as re, h as ie, i as J, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-C9AMvkJk.js";
13
+ import { a as K, c as ne, d as q, f as re, h as ie, i as J, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-C9GM-bBC.js";
14
14
  import { t as me } from "./clock-BDIJZUET.js";
15
15
  import { t as Y } from "./loader-circle-B6euendB.js";
16
16
  import { t as X } from "./message-circle-BMldLVcA.js";
17
- import { n as Z, t as he } from "./MergeTagModeToggle-CiFiSV0C.js";
17
+ import { n as Z, t as he } from "./MergeTagModeToggle-BK0fI3P2.js";
18
18
  import { t as ge } from "./send-B9Tt2qBi.js";
19
19
  import { t as _e } from "./sparkles-8UeMmZb8.js";
20
20
  import { t as ve } from "./triangle-alert-B3PydLzl.js";
21
21
  import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
22
- import { n as Q } from "./useCloudI18n-BC_QV2Z7.js";
23
- import { d as $ } from "./ColorPicker--_2PbzFk.js";
24
- import { _ as be, a as xe, b as Se, c as Ce, d as we, g as Te, h as Ee, i as De, l as Oe, m as ke, n as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, y as Le } from "./cloud-R8ci6yR1.js";
22
+ import { n as Q } from "./useCloudI18n-B2lItQ6O.js";
23
+ import { d as $ } from "./ColorPicker-B4ArSUhy.js";
24
+ import { _ as be, a as xe, b as Se, c as Ce, d as we, g as Te, h as Ee, i as De, l as Oe, m as ke, n as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, y as Le } from "./cloud-BZn3jqoL.js";
25
25
  var Re = U("save", [
26
26
  ["path", {
27
27
  d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
@@ -286,6 +286,7 @@ function We(e) {
286
286
  logicTags: t.logicTags,
287
287
  displayConditions: t.displayConditions,
288
288
  onRequestMedia: null,
289
+ resolvePreview: t.resolvePreview,
289
290
  lint: q(t),
290
291
  onSave: () => {
291
292
  f.value?.().catch((e) => {
@@ -345,7 +346,7 @@ function We(e) {
345
346
  }), F = Le({
346
347
  authManager: h,
347
348
  isAuthReady: c
348
- }), I = t.testEmail ?? null, R = re({
349
+ }), I = t.testEmail ?? null, B = re({
349
350
  provider: I ?? Me({
350
351
  authManager: h,
351
352
  getTemplateId: () => y.state.template?.id ?? null,
@@ -390,7 +391,7 @@ function We(e) {
390
391
  o()?.filterByBlock(e);
391
392
  });
392
393
  }
393
- _(ee, A.handleRequestMedia), _(z, h), _(V, O), _(te, H), _(L, G), _(B, {
394
+ _(L, A.handleRequestMedia), _(z, h), _(V, O), _(R, H), _(te, G), _(ee, {
394
395
  plan: g,
395
396
  ai: O,
396
397
  comments: {
@@ -398,7 +399,7 @@ function We(e) {
398
399
  openForBlock: K
399
400
  },
400
401
  savedBlocks: W.capability,
401
- testEmail: R.capability
402
+ testEmail: B.capability
402
403
  });
403
404
  function ne(e) {
404
405
  g.hasFeature("theme_customization") && (w.themeOverrides.value = e);
@@ -444,7 +445,7 @@ function We(e) {
444
445
  featureFlags: k,
445
446
  mediaLib: A,
446
447
  exporter: P,
447
- testEmail: R,
448
+ testEmail: B,
448
449
  commentsInstance: H,
449
450
  savedBlocks: W,
450
451
  scoringInstance: G,
@@ -636,7 +637,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
636
637
  },
637
638
  emits: ["save"],
638
639
  setup(e) {
639
- let t = h(() => import("./CollaboratorBar-tC7AACTb.js")), r = h(() => import("./SnapshotHistory-BqPSIV9L.js")), a = h(() => import("./AiFeatureMenu-DDAamRaA.js")), { t: o } = H(), { t: u, format: d } = Q();
640
+ let t = h(() => import("./CollaboratorBar-BR-rL2wG.js")), r = h(() => import("./SnapshotHistory-COxKtHM-.js")), a = h(() => import("./AiFeatureMenu-Cji1LBJJ.js")), { t: o } = H(), { t: u, format: d } = Q();
640
641
  return (f, h) => (s(), m("header", it, [
641
642
  p("div", at, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", ot, c(b(d)(b(u).header.templatesUsed, {
642
643
  used: e.featureFlags.templateCount.value,
@@ -655,7 +656,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
655
656
  "preview-mode": e.editor.state.previewMode,
656
657
  onChange: e.editor.setPreviewMode
657
658
  }, null, 8, ["preview-mode", "onChange"]),
658
- e.editor.state.previewMode ? (s(), v(he, {
659
+ e.editor.state.previewMode && !e.core.previewResolution.supersedesSamples.value ? (s(), v(he, {
659
660
  key: 0,
660
661
  "sample-mode": e.core.mergeTagSampleMode.value,
661
662
  onChange: h[0] ||= (t) => e.core.mergeTagSampleMode.value = t
@@ -792,7 +793,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
792
793
  mediaLib: {}
793
794
  },
794
795
  setup(e, { expose: t }) {
795
- let n = h(() => import("./AiChatSidebar-X4viKtvs.js")), r = h(() => import("./CommentsSidebar-Ci2Ov8FG.js")), i = h(() => import("./DesignReferenceSidebar-DQsC-3hB.js")), a = h(() => import("./TemplateScoringPanel-CMEuz9yF.js")), o = h(async () => {
796
+ let n = h(() => import("./AiChatSidebar-CIkS8DsO.js")), r = h(() => import("./CommentsSidebar-Bm5GLDts.js")), i = h(() => import("./DesignReferenceSidebar-CnyJ8L-j.js")), a = h(() => import("./TemplateScoringPanel-bUuqOO1z.js")), o = h(async () => {
796
797
  try {
797
798
  return (await import("@templatical/media-library")).MediaLibraryModal;
798
799
  } catch {
@@ -938,8 +939,8 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
938
939
  },
939
940
  emits: ["ready"],
940
941
  setup(e, { expose: a, emit: o }) {
941
- let d = h(() => import("./SavedBlocksPanels-CNdUxS89.js")), f = h(() => import("./TestEmailPanel--RwnwLn2.js")), x = e;
942
- _(R, x.cloudTranslations);
942
+ let d = h(() => import("./SavedBlocksPanels-eDC9Y46N.js")), f = h(() => import("./TestEmailPanel-CHUY7VZn.js")), x = e;
943
+ _(B, x.cloudTranslations);
943
944
  let S = o, C = u(null), k = u(null), A = We({
944
945
  config: x.config,
945
946
  translations: x.translations,
@@ -948,7 +949,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
948
949
  getCommentsSidebar: () => C.value ? { filterByBlock: C.value.filterCommentsByBlock } : null,
949
950
  editorRoot: x.shadowRoot,
950
951
  containerEl: k
951
- }), { isInitializing: j, isAuthReady: M, initError: N, planConfigInstance: F, websocket: I, collaboration: L, isCollaborationEnabled: ee, editor: z, core: B, featureFlags: V, mediaLib: te, exporter: H, testEmail: U, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: re, setThemeOverrides: J, setUiTheme: oe } = A, { showNotice: le } = P(() => x.config.smallScreenNotice);
952
+ }), { isInitializing: j, isAuthReady: M, initError: N, planConfigInstance: F, websocket: I, collaboration: L, isCollaborationEnabled: ee, editor: R, core: z, featureFlags: V, mediaLib: te, exporter: H, testEmail: U, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: re, setThemeOverrides: J, setUiTheme: oe } = A, { showNotice: le } = P(() => x.config.smallScreenNotice);
952
953
  async function me() {
953
954
  try {
954
955
  await q.confirmRestoreSnapshot();
@@ -956,16 +957,16 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
956
957
  }
957
958
  let Y = Ke({
958
959
  config: x.config,
959
- editor: z,
960
+ editor: R,
960
961
  websocket: I,
961
962
  planConfigInstance: F,
962
963
  snapshotPreview: q,
963
- core: B,
964
+ core: z,
964
965
  exporter: H,
965
966
  featureFlags: V,
966
967
  isDestroyed: A.isDestroyed
967
968
  }), X = qe({
968
- issues: B.templateLint ? B.templateLint.issues : u([]),
969
+ issues: z.templateLint ? z.templateLint.issues : u([]),
969
970
  planConfig: F.config
970
971
  });
971
972
  async function Z() {
@@ -976,8 +977,8 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
976
977
  }), t(() => {
977
978
  A.destroy();
978
979
  }), a({
979
- getContent: () => z.content.value,
980
- setContent: (e) => z.setContent(e),
980
+ getContent: () => R.content.value,
981
+ setContent: (e) => R.setContent(e),
981
982
  setTheme: oe,
982
983
  setThemeOverrides: J,
983
984
  create: Y.createTemplate,
@@ -987,9 +988,9 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
987
988
  }), (t, r) => (s(), m("div", {
988
989
  ref_key: "rootEl",
989
990
  ref: k,
990
- class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(z).state.darkMode }]),
991
- "data-tpl-theme": b(B).resolvedTheme.value,
992
- style: n(b(B).themeStyles.value),
991
+ class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(R).state.darkMode }]),
992
+ "data-tpl-theme": b(z).resolvedTheme.value,
993
+ style: n(b(z).themeStyles.value),
993
994
  onDragover: r[6] ||= E(() => {}, ["prevent"]),
994
995
  onDrop: r[7] ||= E(() => {}, ["prevent"])
995
996
  }, [
@@ -1002,7 +1003,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1002
1003
  "leave-from-class": "tpl:opacity-100",
1003
1004
  "leave-to-class": "tpl:opacity-0"
1004
1005
  }, {
1005
- default: l(() => [g(Ct, { visible: b(j) || b(z).state.isLoading }, null, 8, ["visible"])]),
1006
+ default: l(() => [g(Ct, { visible: b(j) || b(R).state.isLoading }, null, 8, ["visible"])]),
1006
1007
  _: 1
1007
1008
  }),
1008
1009
  g(O, {
@@ -1025,8 +1026,8 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1025
1026
  _: 1
1026
1027
  }),
1027
1028
  g(vt, {
1028
- editor: b(z),
1029
- core: b(B),
1029
+ editor: b(R),
1030
+ core: b(z),
1030
1031
  "feature-flags": b(V),
1031
1032
  "panel-state": b(K),
1032
1033
  "snapshot-preview": b(q),
@@ -1035,8 +1036,8 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1035
1036
  websocket: b(I),
1036
1037
  collaboration: b(L),
1037
1038
  "is-collaboration-enabled": b(ee),
1038
- "is-saving": b(z).state.isSaving || b(V).isSaveExporting.value,
1039
- "is-save-disabled": b(z).state.isSaving || b(V).isSaveExporting.value || !b(z).state.isDirty,
1039
+ "is-saving": b(R).state.isSaving || b(V).isSaveExporting.value,
1040
+ "is-save-disabled": b(R).state.isSaving || b(V).isSaveExporting.value || !b(R).state.isDirty,
1040
1041
  onSave: Z
1041
1042
  }, null, 8, [
1042
1043
  "editor",
@@ -1079,15 +1080,15 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1079
1080
  default: l(() => [g(Ft, { visible: b(re).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
1080
1081
  _: 1
1081
1082
  }),
1082
- T(g(ne, null, null, 512), [[D, !b(z).state.previewMode]]),
1083
+ T(g(ne, null, null, 512), [[D, !b(R).state.previewMode]]),
1083
1084
  p("div", {
1084
- class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(z).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", b(q).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1085
+ class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", b(q).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
1085
1086
  style: {
1086
1087
  transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
1087
1088
  "background-color": "var(--tpl-canvas-bg)"
1088
1089
  }
1089
1090
  }, [p("div", Lt, [g(O, { name: "tpl-restore-btn" }, {
1090
- default: l(() => [b(B).conditionPreview.hasHiddenBlocks.value ? (s(), m("button", {
1091
+ default: l(() => [b(z).conditionPreview.hasHiddenBlocks.value && b(z).appliesConditionFilter.value ? (s(), m("button", {
1091
1092
  key: 0,
1092
1093
  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",
1093
1094
  style: {
@@ -1096,20 +1097,21 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1096
1097
  "border-color": "var(--tpl-warning)",
1097
1098
  "backdrop-filter": "blur(8px)"
1098
1099
  },
1099
- onClick: r[0] ||= (e) => b(B).conditionPreview.reset()
1100
+ "data-testid": "restore-hidden-blocks",
1101
+ onClick: r[0] ||= (e) => b(z).conditionPreview.reset()
1100
1102
  }, [g(b(ie), {
1101
1103
  size: 13,
1102
1104
  "stroke-width": 2
1103
- }), y(" " + c(b(B).t.blockSettings.restoreHiddenBlocks), 1)])) : w("", !0)]),
1105
+ }), y(" " + c(b(z).t.blockSettings.restoreHiddenBlocks), 1)])) : w("", !0)]),
1104
1106
  _: 1
1105
1107
  })]), p("main", Rt, [g(pe, {
1106
- viewport: b(z).state.viewport,
1107
- content: b(z).content.value,
1108
- "selected-block-id": b(z).state.selectedBlockId,
1109
- "dark-mode": b(z).state.darkMode,
1110
- "preview-mode": b(z).state.previewMode,
1108
+ viewport: b(R).state.viewport,
1109
+ content: b(z).previewResolution.content.value,
1110
+ "selected-block-id": b(R).state.selectedBlockId,
1111
+ "dark-mode": b(R).state.darkMode,
1112
+ "preview-mode": b(R).state.previewMode,
1111
1113
  "locked-blocks": b(L)?.lockedBlocks.value ?? void 0,
1112
- onSelectBlock: b(z).selectBlock,
1114
+ onSelectBlock: b(R).selectBlock,
1113
1115
  onOpenAiChat: r[1] ||= (e) => b(K).aiChatOpen.value = !0,
1114
1116
  onOpenDesignReference: r[2] ||= (e) => b(K).designReferenceOpen.value = !0
1115
1117
  }, null, 8, [
@@ -1123,36 +1125,36 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1123
1125
  ])])], 2),
1124
1126
  e.config.branding !== !1 && !b(V).isWhiteLabeled.value ? (s(), v(ue, {
1125
1127
  key: 0,
1126
- "position-class": [b(z).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1128
+ "position-class": [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
1127
1129
  }, null, 8, ["position-class"])) : w("", !0),
1128
1130
  p("div", {
1129
1131
  class: "tpl-sr-only",
1130
1132
  role: "status",
1131
1133
  "aria-live": "polite",
1132
1134
  "aria-atomic": "true",
1133
- "aria-label": b(B).t.landmarks.reorderAnnouncements
1134
- }, c(b(B).keyboardReorder.announcement.value), 9, zt),
1135
+ "aria-label": b(z).t.landmarks.reorderAnnouncements
1136
+ }, c(b(z).keyboardReorder.announcement.value), 9, zt),
1135
1137
  T(g(de, {
1136
- "selected-block": b(z).selectedBlock.value,
1137
- settings: b(z).content.value.settings,
1138
+ "selected-block": b(R).selectedBlock.value,
1139
+ settings: b(R).content.value.settings,
1138
1140
  "shifted-left": b(K).rightPanelOpen.value,
1139
- onUpdateBlock: r[3] ||= (e) => b(z).updateBlock(b(z).selectedBlock.value.id, e),
1140
- onDeleteBlock: r[4] ||= (e) => b(B).blockActions.deleteBlock(b(z).selectedBlock.value.id),
1141
- onDuplicateBlock: r[5] ||= (e) => b(B).blockActions.duplicateBlock(b(z).selectedBlock.value),
1142
- onUpdateSettings: b(z).updateSettings
1141
+ onUpdateBlock: r[3] ||= (e) => b(R).updateBlock(b(R).selectedBlock.value.id, e),
1142
+ onDeleteBlock: r[4] ||= (e) => b(z).blockActions.deleteBlock(b(R).selectedBlock.value.id),
1143
+ onDuplicateBlock: r[5] ||= (e) => b(z).blockActions.duplicateBlock(b(R).selectedBlock.value),
1144
+ onUpdateSettings: b(R).updateSettings
1143
1145
  }, null, 8, [
1144
1146
  "selected-block",
1145
1147
  "settings",
1146
1148
  "shifted-left",
1147
1149
  "onUpdateSettings"
1148
- ]), [[D, !b(z).state.previewMode]]),
1150
+ ]), [[D, !b(R).state.previewMode]]),
1149
1151
  !b(j) && b(M) ? (s(), v(yt, {
1150
1152
  key: 1,
1151
1153
  ref_key: "cloudPanelsRef",
1152
1154
  ref: C,
1153
1155
  config: x.config,
1154
- editor: b(z),
1155
- core: b(B),
1156
+ editor: b(R),
1157
+ core: b(z),
1156
1158
  "panel-state": b(K),
1157
1159
  "plan-config-instance": b(F),
1158
1160
  "media-lib": b(te)
@@ -1173,7 +1175,7 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1173
1175
  feature: b(U)
1174
1176
  }, null, 8, ["feature"])) : w("", !0),
1175
1177
  p("div", {
1176
- ref: (e) => b(B).popoverRoot.value = e,
1178
+ ref: (e) => b(z).popoverRoot.value = e,
1177
1179
  class: "tpl-popover-root"
1178
1180
  }, null, 512),
1179
1181
  g(se),
@@ -1181,6 +1183,6 @@ var Je = ["aria-label"], Ye = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
1181
1183
  b(le) ? (s(), v(ce, { key: 4 })) : w("", !0)
1182
1184
  ], 46, It));
1183
1185
  }
1184
- }), [["__scopeId", "data-v-d606cf3a"]]);
1186
+ }), [["__scopeId", "data-v-16786f1a"]]);
1185
1187
  //#endregion
1186
1188
  export { Bt as default };
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import "./useEditorCore-Dojb-P2f.js";
2
+ import "./useEditorCore-Ck_hBiGA.js";
3
3
  import { t as f } from "./createLucideIcon-AEltGIse.js";
4
- import { n as p } from "./useCloudI18n-BC_QV2Z7.js";
4
+ import { n as p } from "./useCloudI18n-B2lItQ6O.js";
5
5
  import { t as m } from "./readableTextColor-f8Kykfnh.js";
6
6
  var h = f("wifi-off", [
7
7
  ["path", {
@@ -1,8 +1,8 @@
1
1
  import { A as e, Dt as t, Et as n, O as r, R as i, Y as a, _ as o, c as s, d as c, h as l, i as ee, l as te, nt as u, r as ne, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { c as re, s as m, t as ie } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
- import { a as ae, i as oe, n as se, r as h, s as ce, t as le } from "./usePopoverPosition-Dtr1Mp1x.js";
4
- import { B as ue, R as de, l as fe } from "./keys-uWpGv4Pq.js";
5
- import { t as pe } from "./useI18n-DzOcl2wl.js";
3
+ import { a as ae, i as oe, n as se, r as h, s as ce, t as le } from "./usePopoverPosition-ClnEh_Cp.js";
4
+ import { U as ue, V as de, u as fe } from "./keys-BFPiNAIn.js";
5
+ import { t as pe } from "./useI18n-C1KcdX_K.js";
6
6
  import { t as g } from "./x-C4lETLDx.js";
7
7
  //#region src/constants/styleConstants.ts
8
8
  var me = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", _ = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", b = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", x = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", S = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", C = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", w = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", T = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", E = [
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, h as d, l as f, m as ee, nt as p, r as m, s as h, u as g, w as te, z as _ } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { a as v, t as y } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
- import { H as b, h as ne, r as re, u as ie } from "./keys-uWpGv4Pq.js";
4
- import { t as ae } from "./useI18n-DzOcl2wl.js";
3
+ import { G as b, d as ne, g as re, i as ie } from "./keys-BFPiNAIn.js";
4
+ import { t as ae } from "./useI18n-C1KcdX_K.js";
5
5
  import { t as x } from "./createLucideIcon-AEltGIse.js";
6
6
  import { t as oe } from "./check-CIhIDh4h.js";
7
7
  import { t as se } from "./chevron-down-CZ0m6G3s.js";
@@ -13,7 +13,7 @@ import { t as T } from "./send-B9Tt2qBi.js";
13
13
  import { t as E } from "./trash-2-DDyvqj0E.js";
14
14
  import { t as D } from "./x-C4lETLDx.js";
15
15
  import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { n as ue } from "./useCloudI18n-BC_QV2Z7.js";
16
+ import { n as ue } from "./useCloudI18n-B2lItQ6O.js";
17
17
  import { t as de } from "./formatRelativeTime-CtUU-QZ8.js";
18
18
  var fe = x("circle-check", [["circle", {
19
19
  cx: "12",
@@ -94,7 +94,7 @@ var fe = x("circle-check", [["circle", {
94
94
  props: { visible: { type: Boolean } },
95
95
  emits: ["close", "filterBlock"],
96
96
  setup(c, { expose: x, emit: le }) {
97
- let O = c, k = le, { format: A } = ae(), { t: j } = ue(), M = b(ne, "CommentsSidebar"), xt = b(re, "CommentsSidebar"), N = b(ie, "CommentsSidebar"), P = s("unresolved"), F = s(null), I = s(""), L = s(null), R = s(""), z = s(null), B = s(""), V = s(/* @__PURE__ */ new Set()), H = s(null), U = s(null), St = h(() => xt.userConfig?.id ?? null), Ct = h(() => {
97
+ let O = c, k = le, { format: A } = ae(), { t: j } = ue(), M = b(re, "CommentsSidebar"), xt = b(ie, "CommentsSidebar"), N = b(ne, "CommentsSidebar"), P = s("unresolved"), F = s(null), I = s(""), L = s(null), R = s(""), z = s(null), B = s(""), V = s(/* @__PURE__ */ new Set()), H = s(null), U = s(null), St = h(() => xt.userConfig?.id ?? null), Ct = h(() => {
98
98
  let e = /* @__PURE__ */ new Set();
99
99
  for (let t of M.content.value.blocks) if (e.add(t.id), t.type === "section") for (let n of t.children) for (let t of n) e.add(t.id);
100
100
  return e;
@@ -1,6 +1,6 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, Y as i, _ as a, c as o, d as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { p as f } from "./dist-DT1XnEnj.js";
3
- import { t as p } from "./useI18n-DzOcl2wl.js";
3
+ import { t as p } from "./useI18n-C1KcdX_K.js";
4
4
  //#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
5
5
  var m = {
6
6
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import { t as p } from "./useI18n-DzOcl2wl.js";
3
- import { f as m, t as h } from "./ColorPicker--_2PbzFk.js";
4
- import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-CXFbUqsx.js";
2
+ import { t as p } from "./useI18n-C1KcdX_K.js";
3
+ import { f as m, t as h } from "./ColorPicker-B4ArSUhy.js";
4
+ import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-Cjj9UNIp.js";
5
5
  //#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
6
6
  var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
7
7
  "value",
@@ -1,15 +1,15 @@
1
1
  import { Dt as e, Et as t, I as n, O as r, Ot as i, R as ee, T as a, Y as o, _ as s, c, d as l, h as u, l as te, m as d, nt as f, s as ne, u as p, z as re } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { a as ie, t as ae } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
3
  import { t as oe } from "./upload-hE8ItfyG.js";
4
- import { H as m, h as se, r as ce } from "./keys-uWpGv4Pq.js";
4
+ import { G as m, g as se, i as ce } from "./keys-BFPiNAIn.js";
5
5
  import { t as h } from "./createLucideIcon-AEltGIse.js";
6
6
  import { t as le } from "./circle-alert-DkEXnGPV.js";
7
7
  import { t as g } from "./image-up-8ktdYdaZ.js";
8
8
  import { t as _ } from "./x-C4lETLDx.js";
9
9
  import { t as ue } from "./LoadingTrack-XK_eeUdq.js";
10
10
  import { t as v } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { n as de } from "./useCloudI18n-BC_QV2Z7.js";
12
- import { f as fe } from "./cloud-R8ci6yR1.js";
11
+ import { n as de } from "./useCloudI18n-B2lItQ6O.js";
12
+ import { f as fe } from "./cloud-BZn3jqoL.js";
13
13
  var pe = h("file-image", [
14
14
  ["path", {
15
15
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
@@ -1,6 +1,6 @@
1
1
  import { A as e, Et as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p, u as m, x as h } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import { L as g, h as _ } from "./keys-uWpGv4Pq.js";
3
- import { t as v } from "./useI18n-DzOcl2wl.js";
2
+ import { B as g, g as _ } from "./keys-BFPiNAIn.js";
3
+ import { t as v } from "./useI18n-C1KcdX_K.js";
4
4
  import { t as y } from "./createLucideIcon-AEltGIse.js";
5
5
  import { t as b } from "./circle-alert-DkEXnGPV.js";
6
6
  import { t as x } from "./info-CvrCgTLH.js";
@@ -1,7 +1,7 @@
1
1
  import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import { j as p } from "./dist-Ba5Q-UX1.js";
3
- import { T as m } from "./keys-uWpGv4Pq.js";
4
- import { t as h } from "./useI18n-DzOcl2wl.js";
2
+ import { j as p } from "./dist-CQ0fVBQ3.js";
3
+ import { E as m } from "./keys-BFPiNAIn.js";
4
+ import { t as h } from "./useI18n-C1KcdX_K.js";
5
5
  import { t as g } from "./createLucideIcon-AEltGIse.js";
6
6
  import { t as _ } from "./sparkles-8UeMmZb8.js";
7
7
  var v = g("monitor", [
@@ -1,5 +1,5 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, m as d, nt as f, r as p, s as m, u as h } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
- import { h as g, m as _, p as v } from "./ColorPicker--_2PbzFk.js";
2
+ import { h as g, m as _, p as v } from "./ColorPicker-B4ArSUhy.js";
3
3
  //#region src/components/ToggleSwitch.vue?vue&type=script&setup=true&lang.ts
4
4
  var y = { key: 0 }, b = {
5
5
  key: 0,
@@ -1,16 +1,16 @@
1
1
  import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, W as o, Y as s, _ as c, c as l, d as u, h as d, i as f, l as p, m, nt as h, r as g, s as _, u as v, x as y } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { c as b, s as x } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
- import { C as S, D as C, O as w, S as T } from "./useEditorCore-Dojb-P2f.js";
4
- import { n as E, s as D } from "./usePopoverPosition-Dtr1Mp1x.js";
5
- import { B as O, D as k, H as A, R as ee, _ as te, h as ne, w as re } from "./keys-uWpGv4Pq.js";
6
- import { t as j } from "./useI18n-DzOcl2wl.js";
3
+ import { C as S, D as C, O as w, S as T } from "./useEditorCore-Ck_hBiGA.js";
4
+ import { n as E, s as D } from "./usePopoverPosition-ClnEh_Cp.js";
5
+ import { G as O, O as k, T as A, U as ee, V as te, g as ne, v as re } from "./keys-BFPiNAIn.js";
6
+ import { t as j } from "./useI18n-C1KcdX_K.js";
7
7
  import { t as M } from "./createLucideIcon-AEltGIse.js";
8
- import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-CYJko6id.js";
8
+ import { a as ie, i as ae, n as N, r as oe, t as P } from "./RichTextEditorContent-DaaKdzjb.js";
9
9
  import { n as se, t as ce } from "./scan-line-CRoEOUiK.js";
10
10
  import { t as le } from "./loader-circle-B6euendB.js";
11
11
  import { n as ue, r as de, t as fe } from "./text-align-start-Dn8uIheW.js";
12
12
  import { t as F } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker--_2PbzFk.js";
13
+ import { c as pe, o as me, r as he, s as ge, t as I } from "./ColorPicker-B4ArSUhy.js";
14
14
  var L = M("list-ordered", [
15
15
  ["path", {
16
16
  d: "M11 5h10",
@@ -305,7 +305,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
305
305
  "add-logic-tag"
306
306
  ],
307
307
  setup(e, { emit: n }) {
308
- let r = e, o = n, s = y(ee, null), c = y(O, null), b = A(te, "ParagraphToolbar"), x = E(), S = y(k, null), C = y(re, null), w = y(ne, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: D } = j(), M = b.fonts;
308
+ let r = e, o = n, s = y(te, null), c = y(ee, null), b = O(re, "ParagraphToolbar"), x = E(), S = y(k, null), C = y(A, null), w = y(ne, null), T = _(() => (S?.isOpen.value ?? !1) || (C?.isOpen.value ?? !1)), { t: D } = j(), M = b.fonts;
309
309
  function N(e) {
310
310
  r.editor?.chain().focus().insertContent(e).run();
311
311
  }
@@ -636,7 +636,7 @@ var Ee = ["data-tpl-theme", "aria-label"], De = { class: "tpl:flex tpl:items-cen
636
636
  import("./dist-iCEDH3cC.js"),
637
637
  import("./dist-CkPvZCld.js"),
638
638
  import("./dist-B6Px6GPj.js"),
639
- import("./extensions-CGxj6-2o.js")
639
+ import("./extensions-BjvyU9Ea.js")
640
640
  ]);
641
641
  return {
642
642
  TiptapEditor: o,
@@ -1,11 +1,11 @@
1
1
  import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-Xpz-L9Fn.js";
2
2
  import { a as v, c as y } from "./runtime-dom.esm-bundler-CBbDt7sw.js";
3
- import { n as b } from "./usePopoverPosition-Dtr1Mp1x.js";
4
- import { B as x, R as S, h as C } from "./keys-uWpGv4Pq.js";
5
- import { t as w } from "./useI18n-DzOcl2wl.js";
3
+ import { n as b } from "./usePopoverPosition-ClnEh_Cp.js";
4
+ import { U as x, V as S, g as C } from "./keys-BFPiNAIn.js";
5
+ import { t as w } from "./useI18n-C1KcdX_K.js";
6
6
  import { t as T } from "./createLucideIcon-AEltGIse.js";
7
7
  import { t as E } from "./x-C4lETLDx.js";
8
- import { t as D } from "./ColorPicker--_2PbzFk.js";
8
+ import { t as D } from "./ColorPicker-B4ArSUhy.js";
9
9
  var O = T("bold", [["path", {
10
10
  d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
11
11
  key: "mg9rjx"