@templatical/editor 0.56.0 → 0.57.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 (308) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-BjClNscQ.js} +6 -6
  3. package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-DeMdVbtT.js} +7 -7
  4. package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cros4ZCM.js} +64 -67
  5. package/dist/AiPanels-D_CdHqFZ.js +26 -0
  6. package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-BSzj1dKC.js} +53 -53
  7. package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-i2cZy5PB.js} +6 -6
  8. package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-D-If_vd_.js} +58 -58
  9. package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
  10. package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-DPeK_siQ.js} +14 -14
  11. package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-DkYX-ose.js} +9 -9
  12. package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
  13. package/dist/CommentsPanel-t3w16YUl.js +23 -0
  14. package/dist/CommentsSidebar-B3M90RY_.js +516 -0
  15. package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-BrR2uqM3.js} +7 -7
  16. package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-DBu2ZqC6.js} +32 -32
  17. package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-BnUut-p-.js} +89 -89
  18. package/dist/LanguageMenu-DfTxrbvp.js +403 -0
  19. package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
  20. package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-D6zk-QCL.js} +11 -11
  21. package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-CJ1Jk6jv.js} +65 -65
  22. package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-BxbwZxnf.js} +10 -10
  23. package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-BiUxsTMM.js} +2 -2
  24. package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-CV-z85s9.js} +13 -13
  25. package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-CixgX5C_.js} +7 -7
  26. package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-B1zOC_Nr.js} +9 -9
  27. package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-C9UhWvRB.js} +174 -174
  28. package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-Do7fZWpT.js} +13 -13
  29. package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-wW_SMun2.js} +10 -10
  30. package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CCHIUfR-.js} +49 -49
  31. package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-DtPHhfw9.js} +26 -26
  32. package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-CYIby5pR.js} +2 -2
  33. package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-CCwBugqN.js} +10 -10
  34. package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-B8IVy5q9.js} +42 -42
  35. package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-CS5JoKRH.js} +22 -22
  36. package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-sOIZfKzc.js} +2 -2
  37. package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-ZlBcq9_P.js} +22 -22
  38. package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
  39. package/dist/{Toolbar-XT-uGA9J.js → Toolbar-c4_rLLJT.js} +659 -659
  40. package/dist/{TplModal-7NQq5-VW.js → TplModal-DnFFEulp.js} +6 -6
  41. package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu-Cd2IaHgT.js} +19 -19
  42. package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-TdGaMaa_.js} +2 -2
  43. package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-lkAf7tc8.js} +8 -8
  44. package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-BiW4ye3w.js} +12 -12
  45. package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-D1aYMC1M.js} +3 -3
  46. package/dist/bundle-stats.json +7 -7
  47. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-CfGJNBOb.js} +6 -6
  48. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-CfGJNBOb.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-PKe31R_g.js} +7 -7
  50. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-PKe31R_g.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-DNCUpV8n.js} +112 -115
  52. package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
  53. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
  54. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
  55. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-ZDBwReuU.js} +61 -61
  56. package/dist/cdn/chunks/AiRewriteMenu-ZDBwReuU.js.map +1 -0
  57. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DIlFDDwh.js} +6 -6
  58. package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
  59. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js +156 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js.map +1 -0
  61. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
  62. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
  63. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-EXXNMLbs.js} +5 -5
  64. package/dist/cdn/chunks/CloudPanels-EXXNMLbs.js.map +1 -0
  65. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-DGA8XRZJ.js} +10 -10
  66. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
  67. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
  68. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
  69. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
  70. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
  71. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
  72. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
  73. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-Do6oItNW.js} +8 -8
  74. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
  75. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-BN2_zvRj.js} +52 -52
  76. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-BN2_zvRj.js.map} +1 -1
  77. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-BDwegn0s.js} +14 -14
  78. package/dist/cdn/chunks/IssuesPanel-BDwegn0s.js.map +1 -0
  79. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-DXq9cXUd.js} +58 -58
  80. package/dist/cdn/chunks/LanguageMenu-DXq9cXUd.js.map +1 -0
  81. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
  82. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
  83. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-CUN5K5QJ.js} +11 -11
  84. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-BEArlbra.js} +12 -12
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-BEArlbra.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-BHTMNHx0.js} +10 -10
  88. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BlianNRh.js} +3 -3
  90. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BlianNRh.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-B3SLXXzL.js} +14 -14
  92. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-B3SLXXzL.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-Dywp9ntA.js} +6 -6
  94. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-Dywp9ntA.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B9TM7FgM.js} +7 -7
  96. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B9TM7FgM.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-CVGtTYta.js} +107 -107
  98. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-CVGtTYta.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-Dt_0qOOW.js} +13 -13
  100. package/dist/cdn/chunks/RestoreVersionDialog-Dt_0qOOW.js.map +1 -0
  101. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-BjN4mnzL.js} +9 -9
  102. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-BjN4mnzL.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-D9eBjE99.js} +51 -51
  104. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-D9eBjE99.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-ClsTpkdk.js} +24 -24
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-ClsTpkdk.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-CxlNHhUs.js} +3 -3
  108. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-CxlNHhUs.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-C7_Z8phX.js} +12 -12
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-C7_Z8phX.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-B6zDtjSs.js} +102 -102
  112. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-B6zDtjSs.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-CJ_QYFua.js} +21 -21
  114. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-CJ_QYFua.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-CsFrTq_a.js} +3 -3
  116. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-CsFrTq_a.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CuKJptyw.js} +20 -20
  118. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CuKJptyw.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
  120. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-TS2WwlPW.js} +542 -542
  122. package/dist/cdn/chunks/Toolbar-TS2WwlPW.js.map +1 -0
  123. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-CsadClrH.js} +7 -7
  124. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-CsadClrH.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-BNPxnWiO.js} +16 -16
  126. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CieY91f0.js} +3 -3
  128. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CieY91f0.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-BldFvgxJ.js} +9 -9
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-DtnRuKWE.js} +13 -13
  132. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-DtnRuKWE.js.map} +1 -1
  133. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
  134. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
  135. package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-CUIiW9OD.js} +1190 -1170
  136. package/dist/cdn/chunks/composables-CUIiW9OD.js.map +1 -0
  137. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-B7D04wKf.js} +161 -147
  138. package/dist/cdn/chunks/createCloudRuntime-B7D04wKf.js.map +1 -0
  139. package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
  140. package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
  141. package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
  142. package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
  143. package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
  144. package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
  145. package/dist/cdn/chunks/dist-zu1jwYIS.js +405 -0
  146. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-zu1jwYIS.js.map} +1 -1
  147. package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
  148. package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
  149. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CarOiAYJ.js} +137 -136
  150. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
  151. package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
  152. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-Cbvk9i08.js} +96 -96
  153. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-Cbvk9i08.js.map} +1 -1
  154. package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
  155. package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
  156. package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
  157. package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-BJ-MnCqF.js} +55 -55
  159. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-BJ-MnCqF.js.map} +1 -1
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-D2wISRHq.js} +2 -2
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-D2wISRHq.js.map} +1 -1
  162. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js +72 -0
  163. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js.map +1 -0
  164. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-C_yggK1_.js} +575 -524
  165. package/dist/cdn/chunks/socialIcons-C_yggK1_.js.map +1 -0
  166. package/dist/cdn/chunks/{src-C9JWWxAk.js → src-Bp7bZcuD.js} +108 -95
  167. package/dist/cdn/chunks/src-Bp7bZcuD.js.map +1 -0
  168. package/dist/cdn/chunks/{src-mXG-Of9A.js → src-CdVAke9t.js} +721 -696
  169. package/dist/cdn/chunks/src-CdVAke9t.js.map +1 -0
  170. package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-D-URHI0Z.js} +232 -228
  171. package/dist/cdn/chunks/src-D-URHI0Z.js.map +1 -0
  172. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-BPiZqxCt.js} +42 -33
  173. package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
  174. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
  175. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
  176. package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
  177. package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
  178. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
  179. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
  180. package/dist/cdn/chunks/useLocalizedDisplay-slFOCPrh.js +33 -0
  181. package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-slFOCPrh.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-lPjCGeGC.js} +5 -5
  183. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-lPjCGeGC.js.map} +1 -1
  184. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BKNBwIry.js} +8 -8
  185. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BKNBwIry.js.map} +1 -1
  186. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
  187. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
  188. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
  189. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
  190. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-CzTFFaJA.js} +2 -2
  191. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-CzTFFaJA.js.map} +1 -1
  192. package/dist/cdn/editor.css +1 -1
  193. package/dist/cdn/editor.js +784 -762
  194. package/dist/cdn/editor.js.map +1 -1
  195. package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
  196. package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
  197. package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
  198. package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
  199. package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
  200. package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
  201. package/dist/{composables-CRX6rncm.js → composables-DbjgUQlV.js} +1663 -1643
  202. package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-Cnh2M6iT.js} +54 -40
  203. package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
  204. package/dist/da-CYWJkrTg.js +95 -0
  205. package/dist/da-qQzj0QGy.js +948 -0
  206. package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
  207. package/dist/{dist-B8dY8drK.js → dist-B15BvV94.js} +2 -2
  208. package/dist/{dist-TAv500j6.js → dist-B3G4Yvpd.js} +3 -3
  209. package/dist/dist-B6ptxfPo.js +406 -0
  210. package/dist/{dist-ChOb5XHW.js → dist-BmV-2uBJ.js} +2 -2
  211. package/dist/{dist-fqSers8_.js → dist-BxKFi2h_.js} +199 -199
  212. package/dist/{dist-BMUUt3zJ.js → dist-CAvsz9cW.js} +680 -655
  213. package/dist/{dist-D_XrUEET.js → dist-CMBOqk9I.js} +7 -7
  214. package/dist/{dist-DZ3X-uB8.js → dist-CXTsTO5h.js} +2 -2
  215. package/dist/{dist-B9a7iVye.js → dist-D5BUcCjv.js} +2 -2
  216. package/dist/dist-D9cbSSSx.js +4 -0
  217. package/dist/{dist-54VCNoC0.js → dist-DAdrn64r.js} +2 -2
  218. package/dist/{dist-BWflWcpW.js → dist-DENg3ORe.js} +33 -24
  219. package/dist/{dist-C3hu_C3w.js → dist-DI_8rB1X.js} +2 -2
  220. package/dist/dist-ELLEk-lS.js +4 -0
  221. package/dist/{editor-modal-D9HT9bD6.js → editor-modal-CgsaLpwB.js} +110 -109
  222. package/dist/en-DBLcB-CW.js +1 -0
  223. package/dist/{extensions-Cm6K4SRX.js → extensions-7fb-XtNJ.js} +180 -180
  224. package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
  225. package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
  226. package/dist/index.d.ts +6 -4
  227. package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
  228. package/dist/keys-D9oKZN1h.js +9 -0
  229. package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
  230. package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
  231. package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
  232. package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
  233. package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-GrXJfXsQ.js} +82 -82
  234. package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
  235. package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
  236. package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
  237. package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-DuXtzD-F.js} +3 -3
  238. package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
  239. package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
  240. package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
  241. package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-eV4_BpI6.js} +25 -14
  242. package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
  243. package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
  244. package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
  245. package/dist/{socialIcons-CJD6OsI7.js → socialIcons-brRkK9Om.js} +600 -549
  246. package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
  247. package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/templatical-editor.js +976 -954
  250. package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
  251. package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
  252. package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
  253. package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
  254. package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
  255. package/dist/useEditorRoot-B0Njczhx.js +7 -0
  256. package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
  257. package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-DoaT7nWk.js} +2 -4
  258. package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-cTC2KbWd.js} +4 -4
  259. package/dist/{useMergeTag-IoWOO679.js → useMergeTag-D2YDZ8vR.js} +8 -8
  260. package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
  261. package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
  262. package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
  263. package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-DAmED4fN.js} +1 -1
  264. package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
  265. package/package.json +23 -23
  266. package/dist/AiPanels-DAsnX-a3.js +0 -31
  267. package/dist/CommentsPanel-C5qG17Ki.js +0 -16
  268. package/dist/CommentsSidebar-C7CWcUYZ.js +0 -526
  269. package/dist/LanguageMenu-B981Av-6.js +0 -403
  270. package/dist/cdn/chunks/AiChatPanel-DKDu9cs7.js.map +0 -1
  271. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js +0 -32
  272. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js.map +0 -1
  273. package/dist/cdn/chunks/AiRewriteMenu-s79rmHFy.js.map +0 -1
  274. package/dist/cdn/chunks/BlockIssueBadge-Bnmq_M4G.js.map +0 -1
  275. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
  276. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +0 -1
  277. package/dist/cdn/chunks/CloudPanels-DQnlH_YJ.js.map +0 -1
  278. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js +0 -18
  279. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js.map +0 -1
  280. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js +0 -496
  281. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js.map +0 -1
  282. package/dist/cdn/chunks/IssuesPanel-DnSnEh1X.js.map +0 -1
  283. package/dist/cdn/chunks/LanguageMenu-C2I_yTL5.js.map +0 -1
  284. package/dist/cdn/chunks/RestoreVersionDialog-DqbULAbc.js.map +0 -1
  285. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +0 -1
  286. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
  287. package/dist/cdn/chunks/createCloudRuntime-PpIFCDfj.js.map +0 -1
  288. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  289. package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
  290. package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
  291. package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
  292. package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
  293. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
  294. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js +0 -61
  295. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js.map +0 -1
  296. package/dist/cdn/chunks/socialIcons-Qw9rHc8C.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +0 -1
  298. package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
  299. package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
  300. package/dist/cdn/chunks/tiptap-Dipw_zOQ.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
  302. package/dist/dist-0alKVRc_.js +0 -406
  303. package/dist/dist-6DU0me3E.js +0 -4
  304. package/dist/dist-CcOn7WCo.js +0 -4
  305. package/dist/en-De3uAutQ.js +0 -1
  306. package/dist/keys-w_VRjoMu.js +0 -9
  307. package/dist/useEditorRoot-BcXKhM_8.js +0 -7
  308. package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
@@ -1,9 +1,9 @@
1
1
  import { r as e } from "./rolldown-runtime-QGRDbDUS.js";
2
- import { H as t, I as n, p as r, tt as i } from "./draggable-DepKdldn.js";
3
- import { tn as a } from "./src-mXG-Of9A.js";
4
- import { f as o, o as s } from "./keys-BUmIvYy3.js";
5
- import { t as c } from "./logger-CqQTfJGx.js";
6
- import { t as l } from "./preRenderCustomBlocks-Dn6dFUwx.js";
2
+ import { H as t, I as n, p as r, tt as i } from "./draggable-IRVFEZ-b.js";
3
+ import { nn as a } from "./src-CdVAke9t.js";
4
+ import { t as o } from "./preRenderCustomBlocks-D2wISRHq.js";
5
+ import { t as s } from "./logger-CqQTfJGx.js";
6
+ import { f as c, o as l } from "./keys-BQqbBUag.js";
7
7
  // ../core/src/cloud/auth.ts
8
8
  function u(e) {
9
9
  let t = e instanceof a ? e.statusCode : void 0;
@@ -503,14 +503,14 @@ var p = "/api/v1/projects/{project}/tenants/{tenant}", m = `${p}/templates/{temp
503
503
  }
504
504
  };
505
505
  // ../core/src/cloud/websocket-client.ts
506
- function x(e) {
506
+ function ee(e) {
507
507
  return {
508
508
  host: e.host,
509
509
  port: e.port,
510
510
  appKey: e.appKey
511
511
  };
512
512
  }
513
- var S = class {
513
+ var x = class {
514
514
  pusher = null;
515
515
  authManager;
516
516
  config;
@@ -574,8 +574,8 @@ var S = class {
574
574
  get isConnected() {
575
575
  return this.pusher?.connection.state === "connected";
576
576
  }
577
- }, C = "comment-broadcast";
578
- function w(e) {
577
+ }, S = "comment-broadcast";
578
+ function C(e) {
579
579
  let t = {
580
580
  id: e.id,
581
581
  body: e.body,
@@ -585,9 +585,9 @@ function w(e) {
585
585
  parentId: e.parentId,
586
586
  resolvedAt: e.resolvedAt
587
587
  };
588
- return e.updatedAt !== e.createdAt && (t.updatedAt = e.updatedAt), e.resolvedBy && (t.resolvedBy = e.resolvedBy), e.replies?.length && (t.replies = e.replies.map(w)), t;
588
+ return e.updatedAt !== e.createdAt && (t.updatedAt = e.updatedAt), e.resolvedBy && (t.resolvedBy = e.resolvedBy), e.replies?.length && (t.replies = e.replies.map(C)), t;
589
589
  }
590
- function ee(e) {
590
+ function w(e) {
591
591
  let { authManager: n, channel: r, getSocketId: i } = e, a = new y(n);
592
592
  function o() {
593
593
  let e = n.userConfig;
@@ -604,10 +604,10 @@ function ee(e) {
604
604
  }
605
605
  return {
606
606
  async list(e) {
607
- return (await a.getComments(e)).map(w);
607
+ return (await a.getComments(e)).map(C);
608
608
  },
609
609
  async create(e, t) {
610
- return w(await a.createComment(e, {
610
+ return C(await a.createComment(e, {
611
611
  body: t.body,
612
612
  blockId: t.blockId,
613
613
  parentId: t.parentId,
@@ -616,7 +616,7 @@ function ee(e) {
616
616
  },
617
617
  async update(e, t, n) {
618
618
  if (n.body === void 0) throw Error("[Templatical] Cloud comments: update() needs a `body` in the patch.");
619
- return w(await a.updateComment(e, t, {
619
+ return C(await a.updateComment(e, t, {
620
620
  body: n.body,
621
621
  ...o()
622
622
  }, s()));
@@ -625,71 +625,85 @@ function ee(e) {
625
625
  await a.deleteComment(e, t, o(), s());
626
626
  },
627
627
  async setResolved(e, t, n) {
628
- return w(await a.resolveComment(e, t, o(), s()));
628
+ return C(await a.resolveComment(e, t, o(), s()));
629
629
  },
630
630
  subscribe(e, n) {
631
- function i(e) {
632
- let t = w(e.comment);
633
- switch (e.action) {
631
+ function i(t) {
632
+ if (t.comment.templateId && t.comment.templateId !== e) return;
633
+ let r = C(t.comment);
634
+ switch (t.action) {
634
635
  case "commentCreated":
635
636
  n({
636
637
  type: "created",
637
- comment: t
638
+ comment: r
638
639
  });
639
640
  break;
640
641
  case "commentDeleted":
641
642
  n({
642
643
  type: "deleted",
643
- commentId: t.id,
644
- parentId: t.parentId
644
+ commentId: r.id,
645
+ parentId: r.parentId
645
646
  });
646
647
  break;
647
648
  case "commentUpdated":
648
649
  case "commentResolved":
649
650
  case "commentUnresolved": n({
650
651
  type: "updated",
651
- comment: t
652
+ comment: r
652
653
  });
653
654
  }
654
655
  }
655
656
  let a = t(r, (e, t) => {
656
- t?.unbind(C, i), e?.bind(C, i);
657
+ t?.unbind(S, i), e?.bind(S, i);
657
658
  }, { immediate: !0 });
658
659
  return () => {
659
- a(), r.value?.unbind(C, i);
660
+ a(), r.value?.unbind(S, i);
660
661
  };
661
662
  }
662
663
  };
663
664
  }
664
665
  // ../core/src/cloud/web-socket.ts
665
666
  function te(e) {
666
- let { authManager: t, onError: n } = e, r = i(null), a = i(!1), o = null, s = null;
667
- async function c(e, i) {
668
- if (o) return;
669
- o = new S({
670
- authManager: t,
671
- config: i,
672
- onError: n
673
- }), await o.connect(), s = `presence-template.${e}`;
674
- let c = o.subscribePresence(s);
675
- c.bind("pusher:subscription_succeeded", () => {
676
- a.value = !0, r.value = c;
677
- }), c.bind("pusher:subscription_error", (e) => {
678
- a.value = !1, r.value = null, n?.(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to subscribe to template channel"));
667
+ let { authManager: t, onError: n } = e, r = i(null), a = i(!1), o = null, s = null, c = null, l = null;
668
+ async function u(e, i) {
669
+ let u = `presence-template.${e}`;
670
+ if (l = u, o && c === u) return;
671
+ if (!o) {
672
+ let e = new x({
673
+ authManager: t,
674
+ config: i,
675
+ onError: n
676
+ });
677
+ o = e, s = e.connect().catch((t) => {
678
+ throw o === e && (o = null, s = null, c = null, l = null), t;
679
+ });
680
+ }
681
+ let d = o;
682
+ if (await s, o !== d) {
683
+ d.disconnect();
684
+ return;
685
+ }
686
+ if (l !== u || c === u) return;
687
+ c && d.unsubscribe(c), c = u, r.value = null, a.value = !1;
688
+ let f = d.subscribePresence(u);
689
+ f.bind("pusher:subscription_succeeded", () => {
690
+ c === u && (a.value = !0, r.value = f);
691
+ }), f.bind("pusher:subscription_error", (e) => {
692
+ c === u && (a.value = !1, r.value = null, n?.(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to subscribe to template channel")));
679
693
  });
680
694
  }
681
- function l() {
682
- s && o && o.unsubscribe(s), o?.disconnect(), o = null, s = null, r.value = null, a.value = !1;
695
+ function d() {
696
+ c && o && o.unsubscribe(c), o?.disconnect(), o = null, s = null, c = null, l = null, r.value = null, a.value = !1;
683
697
  }
684
- function u() {
698
+ function f() {
685
699
  return o?.getSocketId() ?? null;
686
700
  }
687
701
  return {
688
702
  channel: r,
689
703
  isConnected: a,
690
- connect: c,
691
- disconnect: l,
692
- getSocketId: u
704
+ connect: u,
705
+ disconnect: d,
706
+ getSocketId: f
693
707
  };
694
708
  }
695
709
  // ../core/src/cloud/saved-blocks-provider.ts
@@ -744,7 +758,7 @@ function O(e) {
744
758
  for (let [e, r] of Object.entries(t)) n[e] = r.mimeTypes;
745
759
  return n;
746
760
  }
747
- function k(e, t) {
761
+ function re(e, t) {
748
762
  let n = new b(e);
749
763
  return {
750
764
  async list(e) {
@@ -811,12 +825,12 @@ function k(e, t) {
811
825
  };
812
826
  }
813
827
  // ../core/src/cloud/templates-provider.ts
814
- var A = 6e4;
815
- function re(e) {
828
+ var k = 6e4;
829
+ function A(e) {
816
830
  let t = new y(e), n = 0;
817
831
  function r(e, r) {
818
832
  let i = Date.now();
819
- i - n < A || (n = i, t.createVersion(e, r).catch((e) => {
833
+ i - n < k || (n = i, t.createVersion(e, r).catch((e) => {
820
834
  console.warn("[Templatical] Automatic version not recorded — the save itself succeeded:", e);
821
835
  }));
822
836
  }
@@ -858,7 +872,7 @@ function j(e) {
858
872
  };
859
873
  }
860
874
  // ../core/src/cloud/render-provider.ts
861
- function M(e) {
875
+ function ae(e) {
862
876
  let t = j({ authManager: e.authManager });
863
877
  function n(e) {
864
878
  return {
@@ -882,7 +896,7 @@ function M(e) {
882
896
  };
883
897
  }
884
898
  // ../core/src/cloud/version-history-provider.ts
885
- function N(e) {
899
+ function M(e) {
886
900
  return {
887
901
  id: e.id,
888
902
  createdAt: e.createdAt,
@@ -890,17 +904,17 @@ function N(e) {
890
904
  content: e.content
891
905
  };
892
906
  }
893
- function ae(e) {
907
+ function oe(e) {
894
908
  let t = new y(e);
895
909
  return {
896
910
  async list(e) {
897
- return { versions: (await t.getVersions(e)).map(N) };
911
+ return { versions: (await t.getVersions(e)).map(M) };
898
912
  },
899
913
  async get(e, n) {
900
914
  return (await t.getVersion(e, n)).content;
901
915
  },
902
916
  async create(e, n, r) {
903
- return N(await t.createVersion(e, n, r?.label));
917
+ return M(await t.createVersion(e, n, r?.label));
904
918
  },
905
919
  restore(e, n) {
906
920
  return t.restoreVersion(e, n);
@@ -908,7 +922,7 @@ function ae(e) {
908
922
  };
909
923
  }
910
924
  // ../core/src/cloud/test-email.ts
911
- function oe(e) {
925
+ function se(e) {
912
926
  let { authManager: n, isAuthReady: a } = e, o = i(null);
913
927
  a && t(a, (e) => {
914
928
  e && (o.value = n.testEmailConfig);
@@ -924,7 +938,7 @@ function oe(e) {
924
938
  };
925
939
  }
926
940
  // ../core/src/cloud/test-email-provider.ts
927
- function se(e) {
941
+ function ce(e) {
928
942
  let t = new y(e.authManager);
929
943
  return {
930
944
  get allowedRecipients() {
@@ -947,7 +961,7 @@ function se(e) {
947
961
  };
948
962
  }
949
963
  // ../core/src/cloud/plan-config.ts
950
- function ce(e) {
964
+ function le(e) {
951
965
  let { authManager: t, onError: n } = e, a = i(null), o = i(!1), s = new y(t), c = r(() => a.value?.features ?? null);
952
966
  function l(e) {
953
967
  return a.value?.features[e] ?? !1;
@@ -973,11 +987,11 @@ function ce(e) {
973
987
  };
974
988
  }
975
989
  // ../core/src/cloud/health-check.ts
976
- var P = 5e3;
977
- function F(e) {
990
+ var N = 5e3;
991
+ function P(e) {
978
992
  return e.authManager ? e.authManager.resolveUrl(v.health) : `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}${v.health}`;
979
993
  }
980
- async function I(e, t) {
994
+ async function F(e, t) {
981
995
  let n = performance.now();
982
996
  try {
983
997
  let r = t ? await t.authenticatedFetch(v.health, {
@@ -1029,7 +1043,7 @@ async function I(e, t) {
1029
1043
  };
1030
1044
  }
1031
1045
  }
1032
- async function L(e) {
1046
+ async function I(e) {
1033
1047
  if (!e?.host || !e?.appKey) return {
1034
1048
  ok: !1,
1035
1049
  error: "WebSocket configuration not available"
@@ -1045,7 +1059,7 @@ async function L(e) {
1045
1059
  ok: !1,
1046
1060
  error: "WebSocket connection timed out"
1047
1061
  });
1048
- }, P);
1062
+ }, N);
1049
1063
  try {
1050
1064
  n = new WebSocket(t);
1051
1065
  } catch (t) {
@@ -1065,8 +1079,8 @@ async function L(e) {
1065
1079
  };
1066
1080
  });
1067
1081
  }
1068
- async function R(e = {}) {
1069
- let t = await I(F(e), e.authManager), n = await L(t.wsConfig);
1082
+ async function L(e = {}) {
1083
+ let t = await F(P(e), e.authManager), n = await I(t.wsConfig);
1070
1084
  return {
1071
1085
  api: t.api,
1072
1086
  websocket: n,
@@ -1075,7 +1089,7 @@ async function R(e = {}) {
1075
1089
  };
1076
1090
  }
1077
1091
  // src/cloud/composables/useCloudFeatureFlags.ts
1078
- function z(e) {
1092
+ function R(e) {
1079
1093
  let { planConfigInstance: t, getTemplateId: n } = e;
1080
1094
  return {
1081
1095
  canSendTestEmail: r(() => t.hasFeature("testEmail")),
@@ -1085,7 +1099,7 @@ function z(e) {
1085
1099
  };
1086
1100
  }
1087
1101
  // src/cloud/composables/useCloudPanelState.ts
1088
- function B() {
1102
+ function z() {
1089
1103
  let e = i(null);
1090
1104
  return {
1091
1105
  activePanel: e,
@@ -1097,7 +1111,7 @@ function B() {
1097
1111
  };
1098
1112
  }
1099
1113
  // src/cloud/composables/useCloudSaveGate.ts
1100
- function V(e) {
1114
+ function B(e) {
1101
1115
  let t = i(!1), n = null, a = r(() => e.planConfig.value?.accessibility?.blockOnError === !0), o = r(() => a.value ? e.issues.value.filter((e) => e.severity === "error") : []), s = r(() => o.value.length > 0);
1102
1116
  async function c(e) {
1103
1117
  return s.value ? (n = e, t.value = !0, !1) : (await e(), !0);
@@ -1123,20 +1137,20 @@ function V(e) {
1123
1137
  };
1124
1138
  }
1125
1139
  // src/cloud/collectSavedBlockIds.ts
1126
- function H(e) {
1140
+ function V(e) {
1127
1141
  let t = /* @__PURE__ */ new Set();
1128
- return U(e?.content?.blocks, t), t;
1142
+ return H(e?.content?.blocks, t), t;
1129
1143
  }
1130
- function U(e, t) {
1144
+ function H(e, t) {
1131
1145
  if (e) {
1132
1146
  for (let n of e) if (t.add(n.id), n.children) {
1133
- if (n.type === "section") for (let e of n.children) U(e, t);
1134
- else n.type === "wrapper" && U(n.children, t);
1147
+ if (n.type === "section") for (let e of n.children) H(e, t);
1148
+ else n.type === "wrapper" && H(n.children, t);
1135
1149
  }
1136
1150
  }
1137
1151
  }
1138
1152
  // src/cloud/createCloudRuntime.ts
1139
- function W(e) {
1153
+ function U(e) {
1140
1154
  if (!e) return {};
1141
1155
  let { onSaved: t, onCreated: n, onLoaded: r } = e;
1142
1156
  return {
@@ -1145,7 +1159,7 @@ function W(e) {
1145
1159
  ...typeof r == "function" ? { onLoaded: r } : {}
1146
1160
  };
1147
1161
  }
1148
- function le(e) {
1162
+ function ue(e) {
1149
1163
  if (!e) return {};
1150
1164
  let { onCreated: t, onUpdated: n, onDeleted: r, onResolved: i, onUnresolved: a } = e;
1151
1165
  return {
@@ -1156,7 +1170,7 @@ function le(e) {
1156
1170
  ...typeof a == "function" ? { onUnresolved: a } : {}
1157
1171
  };
1158
1172
  }
1159
- function ue(e) {
1173
+ function de(e) {
1160
1174
  if (typeof e != "object" || !e) return {};
1161
1175
  let { onCreated: t, onUpdated: n, onDeleted: r } = e;
1162
1176
  return {
@@ -1165,7 +1179,7 @@ function ue(e) {
1165
1179
  ...typeof r == "function" ? { onDeleted: r } : {}
1166
1180
  };
1167
1181
  }
1168
- function de(e) {
1182
+ function fe(e) {
1169
1183
  if (typeof e != "object" || !e) return {};
1170
1184
  let { onSent: t, defaultRecipient: n } = e;
1171
1185
  return {
@@ -1173,7 +1187,7 @@ function de(e) {
1173
1187
  ...typeof n == "string" ? { defaultRecipient: n } : {}
1174
1188
  };
1175
1189
  }
1176
- function fe(e) {
1190
+ function pe(e) {
1177
1191
  if (typeof e != "object" || !e) return {};
1178
1192
  let { onCreated: t, onUpdated: n, onDeleted: r } = e;
1179
1193
  return {
@@ -1182,7 +1196,7 @@ function fe(e) {
1182
1196
  ...typeof r == "function" ? { onDeleted: r } : {}
1183
1197
  };
1184
1198
  }
1185
- function pe(e) {
1199
+ function me(e) {
1186
1200
  if (!e) return {};
1187
1201
  let { onCreated: t, onRestored: n } = e;
1188
1202
  return {
@@ -1190,12 +1204,12 @@ function pe(e) {
1190
1204
  ...typeof n == "function" ? { onRestored: n } : {}
1191
1205
  };
1192
1206
  }
1193
- function G(e) {
1207
+ function W(e) {
1194
1208
  return e.length < 2 ? e.join("") : e.length === 2 ? e.join(" and ") : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
1195
1209
  }
1196
- async function K(e) {
1210
+ async function G(e) {
1197
1211
  let { config: r, cloudTranslations: a } = e;
1198
- r.localization !== void 0 && c.warn("initCloud ignores `localization`; the Cloud editor does not support language versions."), r.translation !== void 0 && c.warn("initCloud ignores `translation`; the Cloud editor does not support translation.");
1212
+ r.localization !== void 0 && s.warn("initCloud ignores `localization`; the Cloud editor does not support language versions."), r.translation !== void 0 && s.warn("initCloud ignores `translation`; the Cloud editor does not support translation.");
1199
1213
  let f = null, p = null, m = null, h = null, g = i(null), _ = i(null);
1200
1214
  function v() {
1201
1215
  if (!f) throw Error("[Templatical] The Cloud editor is not mounted yet.");
@@ -1209,29 +1223,29 @@ async function K(e) {
1209
1223
  onError: (e) => {
1210
1224
  u(e) && (g.value = e), r.onError?.(e);
1211
1225
  }
1212
- }), S = ce({
1226
+ }), x = le({
1213
1227
  authManager: b,
1214
1228
  onError: r.onError
1215
1229
  });
1216
1230
  await b.initialize();
1217
- let C = await R({ authManager: b });
1218
- if (!C.api.ok) throw Error("Health check failed: API is not reachable");
1219
- if (!C.auth.ok) throw Error(`Health check failed: authentication error${C.auth.error ? ` - ${C.auth.error}` : ""}`);
1220
- C.websocket.ok || c.warn("WebSocket health check failed:", C.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await S.fetchConfig(), g.value = null;
1221
- let w = r.templates, T = [
1231
+ let S = await L({ authManager: b });
1232
+ if (!S.api.ok) throw Error("Health check failed: API is not reachable");
1233
+ if (!S.auth.ok) throw Error(`Health check failed: authentication error${S.auth.error ? ` - ${S.auth.error}` : ""}`);
1234
+ S.websocket.ok || s.warn("WebSocket health check failed:", S.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await x.fetchConfig(), g.value = null;
1235
+ let C = r.templates, T = [
1222
1236
  "load",
1223
1237
  "create",
1224
1238
  "save"
1225
- ].filter((e) => w?.[e] !== void 0);
1226
- T.length > 0 && c.warn(`initCloud ignores ${G(T.map((e) => `templates.${e}`))} — the template id is the join key for version history, comments and the server-side export, so an id Cloud never issued would break them. Your event handlers were kept. Use init() to bring your own storage.`);
1239
+ ].filter((e) => C?.[e] !== void 0);
1240
+ T.length > 0 && s.warn(`initCloud ignores ${W(T.map((e) => `templates.${e}`))} — the template id is the join key for version history, comments and the server-side export, so an id Cloud never issued would break them. Your event handlers were kept. Use init() to bring your own storage.`);
1227
1241
  let E = r.versionHistory, D = [
1228
1242
  "list",
1229
1243
  "get",
1230
1244
  "create",
1231
1245
  "restore"
1232
1246
  ].filter((e) => E?.[e] !== void 0);
1233
- D.length > 0 && c.warn(`initCloud ignores ${G(D.map((e) => `versionHistory.${e}`))} — a version is keyed to a template id Cloud issued, so Cloud owns its history. Your event handlers were kept. Use init() to bring your own storage.`);
1234
- let O = r.comments, A = [
1247
+ D.length > 0 && s.warn(`initCloud ignores ${W(D.map((e) => `versionHistory.${e}`))} — a version is keyed to a template id Cloud issued, so Cloud owns its history. Your event handlers were kept. Use init() to bring your own storage.`);
1248
+ let O = r.comments, k = [
1235
1249
  "list",
1236
1250
  "create",
1237
1251
  "update",
@@ -1239,82 +1253,82 @@ async function K(e) {
1239
1253
  "setResolved",
1240
1254
  "subscribe"
1241
1255
  ].filter((e) => O?.[e] !== void 0);
1242
- A.length > 0 && c.warn(`initCloud ignores ${G(A.map((e) => `comments.${e}`))} — a comment is keyed to a template id Cloud issued, and its author is signed by the auth token, so Cloud owns the conversation. Your event handlers were kept. Use init() to bring your own storage.`), r.render && c.warn("initCloud does not accept a `render` provider — Cloud renders server-side for test email, sends and exports, so a supplied renderer would change only what you preview and export, never what Cloud delivers. The supplied provider is ignored. For your own MJML, call renderToMjml(editor.getContent()) from @templatical/renderer."), r.ai !== void 0 && c.warn("initCloud does not take an `ai` key yet — Cloud's AI arrives as its own provider in a later release. The key is ignored. To bring your own AI backend, use init({ ai }).");
1243
- function N(e) {
1244
- let t = S.config.value?.websocket;
1245
- m && t && m.connect(e.id, x(t));
1256
+ k.length > 0 && s.warn(`initCloud ignores ${W(k.map((e) => `comments.${e}`))} — a comment is keyed to a template id Cloud issued, and its author is signed by the auth token, so Cloud owns the conversation. Your event handlers were kept. Use init() to bring your own storage.`), r.render && s.warn("initCloud does not accept a `render` provider — Cloud renders server-side for test email, sends and exports, so a supplied renderer would change only what you preview and export, never what Cloud delivers. The supplied provider is ignored. For your own MJML, call renderToMjml(editor.getContent()) from @templatical/renderer."), r.ai !== void 0 && s.warn("initCloud does not take an `ai` key yet — Cloud's AI arrives as its own provider in a later release. The key is ignored. To bring your own AI backend, use init({ ai }).");
1257
+ function M(e) {
1258
+ let t = x.config.value?.websocket;
1259
+ m && t && m.connect(e.id, ee(t));
1246
1260
  }
1247
- let P = re(b), F = P.create, I = P.save, L = {
1248
- ...W(r.templates),
1261
+ let N = A(b), P = N.create, F = N.save, I = {
1262
+ ...U(r.templates),
1249
1263
  load: async (e) => {
1250
- let t = await P.load(e);
1251
- return N(t), t;
1264
+ let t = await N.load(e);
1265
+ return M(t), t;
1252
1266
  },
1253
- create: typeof F == "function" ? async (e) => {
1254
- let t = await F(e);
1255
- return N(t), t;
1267
+ create: typeof P == "function" ? async (e) => {
1268
+ let t = await P(e);
1269
+ return M(t), t;
1256
1270
  } : !1,
1257
- save: typeof I == "function" ? async (e, t) => {
1271
+ save: typeof F == "function" ? async (e, t) => {
1258
1272
  if (p && f) {
1259
1273
  let e = p.registry;
1260
- await l(f.content.value, {
1274
+ await o(f.content.value, {
1261
1275
  renderCustomBlock: e.renderCustomBlock,
1262
1276
  getCustomBlockStylesheet: (t) => e.getDefinition(t)?.stylesheet
1263
1277
  });
1264
1278
  }
1265
- return I(e, t);
1279
+ return F(e, t);
1266
1280
  } : !1
1267
- }, U = M({
1281
+ }, H = ae({
1268
1282
  authManager: b,
1269
1283
  getTemplateId: y,
1270
1284
  save: () => v().save()
1271
- }), K = {
1272
- ...pe(r.versionHistory),
1273
- ...ae(b)
1274
- }, me = {
1275
- ...le(r.comments),
1276
- ...ee({
1285
+ }), G = {
1286
+ ...me(r.versionHistory),
1287
+ ...oe(b)
1288
+ }, he = {
1289
+ ...ue(r.comments),
1290
+ ...w({
1277
1291
  authManager: b,
1278
1292
  channel: _,
1279
1293
  getSocketId: () => m?.getSocketId() ?? null
1280
1294
  })
1281
- }, he = b.userConfig ? {
1295
+ }, ge = b.userConfig ? {
1282
1296
  id: b.userConfig.id,
1283
1297
  name: b.userConfig.name
1284
- } : void 0, q = typeof r.savedBlocks?.list == "function" ? r.savedBlocks : null;
1285
- if (q === null && typeof r.savedBlocks == "object" && r.savedBlocks !== null) {
1298
+ } : void 0, K = typeof r.savedBlocks?.list == "function" ? r.savedBlocks : null;
1299
+ if (K === null && typeof r.savedBlocks == "object" && r.savedBlocks !== null) {
1286
1300
  let e = r.savedBlocks, t = [
1287
1301
  "list",
1288
1302
  "create",
1289
1303
  "update",
1290
1304
  "delete"
1291
1305
  ].filter((t) => e[t] !== void 0);
1292
- t.length > 0 && c.warn(`initCloud ignores ${G(t.map((e) => `savedBlocks.${e}`))} — a provider needs a working list to replace Cloud's store, and this value has none, so it configures Cloud's own store instead. Your event handlers were kept. Use init() to bring your own storage.`);
1306
+ t.length > 0 && s.warn(`initCloud ignores ${W(t.map((e) => `savedBlocks.${e}`))} — a provider needs a working list to replace Cloud's store, and this value has none, so it configures Cloud's own store instead. Your event handlers were kept. Use init() to bring your own storage.`);
1293
1307
  }
1294
- let J = r.savedBlocks === !1 ? void 0 : q ?? {
1295
- ...ue(r.savedBlocks),
1308
+ let q = r.savedBlocks === !1 ? void 0 : K ?? {
1309
+ ...de(r.savedBlocks),
1296
1310
  ...ne(b)
1297
- }, Y = oe({
1311
+ }, J = se({
1298
1312
  authManager: b,
1299
1313
  isAuthReady: i(!0)
1300
- }), ge = j({ authManager: b }), X = typeof r.testEmail?.send == "function" ? r.testEmail : null;
1301
- if (X === null && typeof r.testEmail == "object" && r.testEmail !== null) {
1314
+ }), _e = j({ authManager: b }), Y = typeof r.testEmail?.send == "function" ? r.testEmail : null;
1315
+ if (Y === null && typeof r.testEmail == "object" && r.testEmail !== null) {
1302
1316
  let e = r.testEmail, t = [
1303
1317
  "send",
1304
1318
  "includeMjml",
1305
1319
  "allowedRecipients"
1306
1320
  ].filter((t) => e[t] !== void 0);
1307
- t.length > 0 && c.warn(`initCloud ignores ${G(t.map((e) => `testEmail.${e}`))} — a provider needs a working send to replace Cloud's sender outright, and Cloud renders server-side with the signed allowlist from your project's JWT either way, so none of these apply here. Your event handlers were kept.`);
1321
+ t.length > 0 && s.warn(`initCloud ignores ${W(t.map((e) => `testEmail.${e}`))} — a provider needs a working send to replace Cloud's sender outright, and Cloud renders server-side with the signed allowlist from your project's JWT either way, so none of these apply here. Your event handlers were kept.`);
1308
1322
  }
1309
- let _e = X ?? Object.assign(se({
1323
+ let X = Y ?? Object.assign(ce({
1310
1324
  authManager: b,
1311
1325
  getTemplateId: y,
1312
1326
  save: () => v().save(),
1313
- exportHtml: (e) => ge.exportHtml(e, ie(r.fonts)),
1314
- allowedEmails: Y.allowedEmails,
1315
- getSignature: Y.getSignature,
1327
+ exportHtml: (e) => _e.exportHtml(e, ie(r.fonts)),
1328
+ allowedEmails: J.allowedEmails,
1329
+ getSignature: J.getSignature,
1316
1330
  onBeforeTestEmail: r.onBeforeTestEmail
1317
- }), de(r.testEmail)), Z = typeof r.media?.list == "function" ? r.media : null;
1331
+ }), fe(r.testEmail)), Z = typeof r.media?.list == "function" ? r.media : null;
1318
1332
  if (Z === null && typeof r.media == "object" && r.media !== null) {
1319
1333
  let e = r.media, t = [
1320
1334
  "list",
@@ -1322,16 +1336,16 @@ async function K(e) {
1322
1336
  "update",
1323
1337
  "delete"
1324
1338
  ].filter((t) => e[t] !== void 0);
1325
- t.length > 0 && c.warn(`initCloud ignores ${G(t.map((e) => `media.${e}`))} — a provider needs a working list to replace Cloud's store, and this value has none, so it configures Cloud's own store instead. Your event handlers were kept. Use init() to bring your own storage.`);
1339
+ t.length > 0 && s.warn(`initCloud ignores ${W(t.map((e) => `media.${e}`))} — a provider needs a working list to replace Cloud's store, and this value has none, so it configures Cloud's own store instead. Your event handlers were kept. Use init() to bring your own storage.`);
1326
1340
  let n = ["maxFileSize", "mimeTypes"].filter((t) => e[t] !== void 0);
1327
- n.length > 0 && c.warn(`initCloud ignores ${G(n.map((e) => `media.${e}`))} — Cloud's plan owns those limits whenever Cloud's store is in play. Your event handlers were kept.`);
1341
+ n.length > 0 && s.warn(`initCloud ignores ${W(n.map((e) => `media.${e}`))} — Cloud's plan owns those limits whenever Cloud's store is in play. Your event handlers were kept.`);
1328
1342
  }
1329
- let Q = r.media === !1 ? void 0 : Z ?? Object.assign(k(b, () => S.config.value), fe(r.media)), $ = z({
1330
- planConfigInstance: S,
1343
+ let Q = r.media === !1 ? void 0 : Z ?? Object.assign(re(b, () => x.config.value), pe(r.media)), $ = R({
1344
+ planConfigInstance: x,
1331
1345
  getTemplateId: y
1332
1346
  });
1333
1347
  function ve(e) {
1334
- f = e.editor, n(o, a), n(s, b);
1348
+ f = e.editor, n(c, a), n(l, b);
1335
1349
  let i = te({
1336
1350
  authManager: b,
1337
1351
  onError: r.onError
@@ -1340,16 +1354,16 @@ async function K(e) {
1340
1354
  _.value = e;
1341
1355
  }, { immediate: !0 }), {
1342
1356
  websocket: i,
1343
- panelState: B(),
1357
+ panelState: z(),
1344
1358
  featureFlags: $
1345
1359
  };
1346
1360
  }
1347
1361
  function ye(e) {
1348
1362
  let { core: t, capabilities: n } = e;
1349
- return p = t, h = V({
1363
+ return p = t, h = B({
1350
1364
  issues: t.templateLint ? t.templateLint.issues : i([]),
1351
- planConfig: S.config
1352
- }), n.plan = S, r.customBlocks?.length && t.registerCustomBlocks(r.customBlocks), r.theme && (t.themeOverrides.value = r.theme), {
1365
+ planConfig: x.config
1366
+ }), n.plan = x, r.customBlocks?.length && t.registerCustomBlocks(r.customBlocks), r.theme && (t.themeOverrides.value = r.theme), {
1353
1367
  saveGate: h,
1354
1368
  sessionError: g,
1355
1369
  retry: async () => {
@@ -1363,10 +1377,10 @@ async function K(e) {
1363
1377
  }
1364
1378
  return {
1365
1379
  runtime: {
1366
- isSavedBlocksAvailable: q ? () => !0 : () => r.savedBlocks !== !1 && S.hasFeature("savedModules"),
1367
- isTestEmailAvailable: X ? () => !0 : () => Y.isEnabled.value && $.canSendTestEmail.value && $.hasTemplateSaved.value,
1368
- isCommentsAvailable: () => r.comments !== !1 && S.hasFeature("commenting") && $.hasTemplateSaved.value,
1369
- isBlockSaved: (e) => H(f?.state.template ?? null).has(e),
1380
+ isSavedBlocksAvailable: K ? () => !0 : () => r.savedBlocks !== !1 && x.hasFeature("savedModules"),
1381
+ isTestEmailAvailable: Y ? () => !0 : () => J.isEnabled.value && $.canSendTestEmail.value && $.hasTemplateSaved.value,
1382
+ isCommentsAvailable: () => r.comments !== !1 && x.hasFeature("commenting") && $.hasTemplateSaved.value,
1383
+ isBlockSaved: (e) => V(f?.state.template ?? null).has(e),
1370
1384
  getSaveGate: () => h,
1371
1385
  attach: ve,
1372
1386
  ready: ye,
@@ -1375,17 +1389,17 @@ async function K(e) {
1375
1389
  }
1376
1390
  },
1377
1391
  providers: {
1378
- templates: L,
1379
- render: U,
1380
- versionHistory: K,
1381
- ...J ? { savedBlocks: J } : {},
1382
- testEmail: _e,
1383
- comments: me,
1392
+ templates: I,
1393
+ render: H,
1394
+ versionHistory: G,
1395
+ ...q ? { savedBlocks: q } : {},
1396
+ testEmail: X,
1397
+ comments: he,
1384
1398
  ...Q ? { media: Q } : {}
1385
1399
  },
1386
- user: he
1400
+ user: ge
1387
1401
  };
1388
1402
  }
1389
- export { K as bootstrapCloud };
1403
+ export { G as bootstrapCloud };
1390
1404
 
1391
- //# sourceMappingURL=createCloudRuntime-PpIFCDfj.js.map
1405
+ //# sourceMappingURL=createCloudRuntime-B7D04wKf.js.map