@templatical/editor 0.34.3 → 0.36.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 (290) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/CollaboratorBar-DAITu0hz.js +103 -0
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/IssuesPanel-BLbNFMSX.js +117 -0
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
  19. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
  22. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
  24. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
  29. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-C8Wx5yPS.js → TestEmailPanel-vd2e5HzT.js} +3 -3
  31. package/dist/TitleEditor-CLJ68Ty4.js +199 -0
  32. package/dist/TplModal-Q9fDgS1M.js +51 -0
  33. package/dist/{VersionHistoryMenu-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
  34. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/blockTypeIcons-5qD4bB76.js +163 -0
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  39. package/dist/ca-Jx2CDwtn.js +83 -0
  40. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  43. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  45. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  49. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
  51. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  53. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  54. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
  55. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  59. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  63. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
  67. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  69. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  70. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
  71. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
  75. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  79. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
  81. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  89. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
  91. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  93. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
  95. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
  99. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  100. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  103. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  107. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  109. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
  111. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  112. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  113. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  114. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  115. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  116. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  117. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  118. package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
  119. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  120. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  121. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  122. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  123. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  124. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  125. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  126. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  127. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
  129. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  130. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  131. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  132. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  133. package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
  134. package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
  135. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  136. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  137. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  138. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  139. package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
  140. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  141. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  142. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  143. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  144. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  145. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  146. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  147. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  148. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  149. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
  150. package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
  151. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  152. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  153. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  154. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
  156. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  157. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  158. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  160. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  164. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  166. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1195 -1095
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/check-DWtkBzBU.js +11 -0
  171. package/dist/chevron-down-C-Fjxcqj.js +11 -0
  172. package/dist/chevron-right-SOkn2d4P.js +11 -0
  173. package/dist/chevron-up-lntU1ypp.js +11 -0
  174. package/dist/circle-alert-CjzUTwy3.js +30 -0
  175. package/dist/clock-pB2QKPsJ.js +16 -0
  176. package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
  177. package/dist/copy-CId1E038.js +19 -0
  178. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  179. package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
  180. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  181. package/dist/de-Ck0pBGHu.js +83 -0
  182. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  183. package/dist/dist-D8i1ixHK.js +177 -0
  184. package/dist/dist-DBirAJIs.js +410 -0
  185. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  186. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  187. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  188. package/dist/en-DcmpWV53.js +2 -0
  189. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  190. package/dist/es-lagTvUfX.js +83 -0
  191. package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
  192. package/dist/eye-BuGtFUoJ.js +16 -0
  193. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  194. package/dist/fr-C4hVl5Lk.js +83 -0
  195. package/dist/image-up-gH4JEpU5.js +27 -0
  196. package/dist/index.d.ts +77 -11
  197. package/dist/info-BQ60P82u.js +23 -0
  198. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  199. package/dist/link-3R8it3J7.js +14 -0
  200. package/dist/list-Ccdgj46T.js +33 -0
  201. package/dist/loader-circle-B_tAD4k6.js +12 -0
  202. package/dist/message-circle-P-KSc6V0.js +11 -0
  203. package/dist/nl-CReD7Apd.js +83 -0
  204. package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
  205. package/dist/pencil-9ZiwqS4r.js +14 -0
  206. package/dist/plus-BwJEzCaO.js +14 -0
  207. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  208. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  209. package/dist/pt-BR-BRA0-vGP.js +83 -0
  210. package/dist/refresh-cw-DEgfb2FK.js +25 -0
  211. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  212. package/dist/search-DqQ8Li5E.js +16 -0
  213. package/dist/send-CE6uvqop.js +14 -0
  214. package/dist/shield-check-DhD1Z3rd.js +14 -0
  215. package/dist/sparkles-R0ZQHa6F.js +28 -0
  216. package/dist/style.css +1 -1
  217. package/dist/templatical-editor.js +2742 -2590
  218. package/dist/text-align-start-DSux2UNn.js +58 -0
  219. package/dist/trash-Cf_SqsER.js +30 -0
  220. package/dist/triangle-alert-C6tGa6jw.js +22 -0
  221. package/dist/upload-DusKjpVr.js +21 -0
  222. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  223. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  224. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
  225. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  226. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  227. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
  228. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  229. package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
  230. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  231. package/dist/x-D_-42Ukq.js +14 -0
  232. package/package.json +9 -12
  233. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  234. package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
  235. package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
  236. package/dist/IssuesPanel-CiOjeRFI.js +0 -109
  237. package/dist/ParagraphEditor-C87tkmtE.js +0 -767
  238. package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
  239. package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
  240. package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
  241. package/dist/TitleEditor-iNFOisr4.js +0 -198
  242. package/dist/TplModal-CowM3o_F.js +0 -51
  243. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  244. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  245. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  246. package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
  247. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  248. package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
  249. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
  250. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
  251. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  252. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  253. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  254. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  255. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  256. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  257. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  258. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  259. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  260. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  261. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  262. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  263. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  264. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  265. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
  266. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  267. package/dist/check-JK8Uacq0.js +0 -7
  268. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  269. package/dist/chevron-up-x4l0et_Y.js +0 -7
  270. package/dist/circle-alert-CJDW5LZo.js +0 -25
  271. package/dist/clock-BW6rXk2f.js +0 -12
  272. package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
  273. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  274. package/dist/dist-dNiknO7j.js +0 -251
  275. package/dist/dist-heatwAdo.js +0 -150
  276. package/dist/image-up-CuzFc1mu.js +0 -23
  277. package/dist/info-DybAwcA3.js +0 -19
  278. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  279. package/dist/message-circle-DtwKrlhN.js +0 -7
  280. package/dist/pencil-2qhC-Y4q.js +0 -10
  281. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  282. package/dist/send-BoqJliF6.js +0 -10
  283. package/dist/shield-check-D0dMaHtE.js +0 -10
  284. package/dist/sparkles-Dy2BJjiX.js +0 -23
  285. package/dist/text-align-start-DrxjxvIy.js +0 -43
  286. package/dist/trash-rYMzzHZd.js +0 -25
  287. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  288. package/dist/upload-DZu1adQz.js +0 -17
  289. package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
  290. package/dist/x-DJOd1hS4.js +0 -10
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
- var t = e("check", [["path", {
3
- d: "M20 6 9 17l-5-5",
4
- key: "1gmf2c"
5
- }]]);
6
- //#endregion
7
- export { t };
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
- var t = e("chevron-down", [["path", {
3
- d: "m6 9 6 6 6-6",
4
- key: "qrunsl"
5
- }]]);
6
- //#endregion
7
- export { t };
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
- var t = e("chevron-up", [["path", {
3
- d: "m18 15-6-6-6 6",
4
- key: "153udz"
5
- }]]);
6
- //#endregion
7
- export { t };
@@ -1,25 +0,0 @@
1
- import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
- var t = e("circle-alert", [
3
- ["circle", {
4
- cx: "12",
5
- cy: "12",
6
- r: "10",
7
- key: "1mglay"
8
- }],
9
- ["line", {
10
- x1: "12",
11
- x2: "12",
12
- y1: "8",
13
- y2: "12",
14
- key: "1pkeuh"
15
- }],
16
- ["line", {
17
- x1: "12",
18
- x2: "12.01",
19
- y1: "16",
20
- y2: "16",
21
- key: "4dfq90"
22
- }]
23
- ]);
24
- //#endregion
25
- export { t };
@@ -1,12 +0,0 @@
1
- import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
- var t = e("clock", [["circle", {
3
- cx: "12",
4
- cy: "12",
5
- r: "10",
6
- key: "1mglay"
7
- }], ["path", {
8
- d: "M12 6v6l4 2",
9
- key: "mmk7yg"
10
- }]]);
11
- //#endregion
12
- export { t };
@@ -1,441 +0,0 @@
1
- import { A as e, L as t, X as n, q as r, s as i } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { m as a } from "./dist-heatwAdo.js";
3
- import { t as o } from "./dist-dNiknO7j.js";
4
- import { B as s, i as c, l, t as u } from "./keys-C3P1yxnr.js";
5
- import { t as d } from "./timeouts-DHPZQ0G3.js";
6
- import { t as f } from "./logger-BBlvSn6q.js";
7
- import { t as p } from "./preRenderCustomBlocks-CSIF-HyJ.js";
8
- import { S as m, _ as h, a as g, b as ee, c as te, d as ne, h as _, i as v, l as y, m as b, n as x, o as S, p as C, r as re, s as ie, t as ae, u as oe, v as se, x as ce, y as le } from "./cloud-BMzRKCbk.js";
9
- //#region src/cloud/composables/useCloudFeatureFlags.ts
10
- function ue(e) {
11
- let { planConfigInstance: t, aiConfig: n, getTemplateId: r } = e;
12
- return {
13
- canUseAiGeneration: i(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value),
14
- canSendTestEmail: i(() => t.hasFeature("test_email")),
15
- hasTemplateSaved: i(() => r() !== null),
16
- templateLimit: i(() => t.config.value?.limits.max_templates ?? null),
17
- templateCount: i(() => t.config.value?.template_count ?? 0)
18
- };
19
- }
20
- //#endregion
21
- //#region src/cloud/composables/useCloudMediaLibrary.ts
22
- function de(e) {
23
- let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: i, authManager: a, getMediaConfig: o, onError: s } = e, c = null;
24
- function l(e) {
25
- return {
26
- url: e.url,
27
- alt: e.alt_text || void 0
28
- };
29
- }
30
- async function u(e) {
31
- let r = e?.accept ?? ["images"];
32
- if (e?.files?.length) {
33
- if (t) {
34
- let n = await t({
35
- accept: r,
36
- files: e.files
37
- });
38
- return n ? l(n) : null;
39
- }
40
- return d(e.files[0]);
41
- }
42
- if (t) {
43
- let e = await t({ accept: r });
44
- return e ? l(e) : null;
45
- }
46
- return c &&= (c(null), null), i.value = r, n.value = !0, new Promise((e) => {
47
- c = (t) => {
48
- e(t);
49
- };
50
- });
51
- }
52
- async function d(e) {
53
- let t = f(e);
54
- if (t) return s?.(t), null;
55
- try {
56
- let { MediaApiClient: t } = await import("@templatical/media-library");
57
- return l(await new t(a).uploadMedia(e));
58
- } catch (e) {
59
- return s?.(e), null;
60
- }
61
- }
62
- function f(e) {
63
- let t = o?.() ?? null;
64
- if (!t) return null;
65
- let n = t.categories?.images?.mime_types ?? [];
66
- return n.length > 0 && !n.includes(e.type) ? /* @__PURE__ */ Error(`Unsupported image type: ${e.type || "unknown"}. Accepted: ${n.join(", ")}.`) : t.max_file_size > 0 && e.size > t.max_file_size ? /* @__PURE__ */ Error(`Image is too large (${e.size} bytes). Maximum allowed is ${t.max_file_size} bytes.`) : null;
67
- }
68
- function p(e) {
69
- n.value = !1, c?.(l(e)), c = null;
70
- }
71
- function m() {
72
- n.value = !1, c?.(null), c = null;
73
- }
74
- return r(() => {
75
- c &&= (c(null), null);
76
- }), {
77
- handleRequestMedia: u,
78
- handleMediaSelect: p,
79
- handleMediaLibraryClose: m
80
- };
81
- }
82
- //#endregion
83
- //#region src/cloud/composables/useCloudPanelState.ts
84
- function fe() {
85
- let e = n(null), t = i({
86
- get: () => e.value === "ai-chat",
87
- set: (t) => e.value = t ? "ai-chat" : null
88
- }), r = i({
89
- get: () => e.value === "scoring",
90
- set: (t) => e.value = t ? "scoring" : null
91
- }), a = i({
92
- get: () => e.value === "design-reference",
93
- set: (t) => e.value = t ? "design-reference" : null
94
- }), s = i({
95
- get: () => e.value === "comments",
96
- set: (t) => e.value = t ? "comments" : null
97
- }), c = n(!1), l = n(void 0), u = n(!1), d = n(null), f = i(() => e.value !== null), p = i(() => {
98
- let t = e.value;
99
- return t === "ai-chat" || t === "design-reference" || t === "scoring" ? t : null;
100
- }), m = i(() => u.value || e.value === "ai-chat" || e.value === "design-reference" || e.value === "scoring");
101
- function h() {
102
- u.value = !u.value;
103
- }
104
- function g(t) {
105
- u.value = !1, e.value = e.value === t ? null : t;
106
- }
107
- return o(d, () => {
108
- u.value = !1;
109
- }), {
110
- activePanel: e,
111
- aiChatOpen: t,
112
- scoringPanelOpen: r,
113
- designReferenceOpen: a,
114
- commentsOpen: s,
115
- mediaLibraryOpen: c,
116
- mediaLibraryAccept: l,
117
- aiMenuOpen: u,
118
- aiMenuRef: d,
119
- rightPanelOpen: f,
120
- activeAiFeature: p,
121
- aiButtonActive: m,
122
- toggleAiMenu: h,
123
- handleAiFeatureSelect: g
124
- };
125
- }
126
- //#endregion
127
- //#region src/cloud/composables/useCloudSaveGate.ts
128
- function pe(e) {
129
- let t = n(!1), r = null, a = i(() => e.planConfig.value?.accessibility?.blockOnError === !0), o = i(() => a.value ? e.issues.value.filter((e) => e.severity === "error") : []), s = i(() => o.value.length > 0);
130
- async function c(e) {
131
- return s.value ? (r = e, t.value = !0, !1) : (await e(), !0);
132
- }
133
- async function l(e) {
134
- return !s.value && (await e(), !0);
135
- }
136
- async function u() {
137
- let e = r;
138
- r = null, t.value = !1, e && await e();
139
- }
140
- function d() {
141
- r = null, t.value = !1;
142
- }
143
- return {
144
- shouldBlock: s,
145
- blockingIssues: o,
146
- modalOpen: t,
147
- tryRunSave: c,
148
- runUnlessBlocked: l,
149
- confirmAndSave: u,
150
- cancel: d
151
- };
152
- }
153
- //#endregion
154
- //#region src/cloud/composables/useCollabUndoWarning.ts
155
- function me(e) {
156
- let { isCollaborationEnabled: t, getCollaboratorCount: r, canUndo: i } = e, o = n(!1), s = n(!1), { start: c } = a(() => {
157
- s.value = !1;
158
- }, d, { immediate: !1 });
159
- function l() {
160
- !o.value && t.value && r() !== 0 && i.value && (o.value = !0, s.value = !0, c());
161
- }
162
- return {
163
- collabUndoWarningVisible: s,
164
- showCollabUndoWarning: l
165
- };
166
- }
167
- //#endregion
168
- //#region src/cloud/collectSavedBlockIds.ts
169
- function he(e) {
170
- let t = /* @__PURE__ */ new Set(), n = e?.content?.blocks;
171
- if (!n) return t;
172
- for (let e of n) if (t.add(e.id), e.type === "section" && e.children) for (let n of e.children) for (let e of n) t.add(e.id);
173
- return t;
174
- }
175
- //#endregion
176
- //#region src/cloud/createCloudRuntime.ts
177
- function ge(e) {
178
- if (!e) return {};
179
- let { onSaved: t, onCreated: n, onLoaded: r } = e;
180
- return {
181
- ...typeof t == "function" ? { onSaved: t } : {},
182
- ...typeof n == "function" ? { onCreated: n } : {},
183
- ...typeof r == "function" ? { onLoaded: r } : {}
184
- };
185
- }
186
- function _e(e) {
187
- if (!e) return {};
188
- let { onCreated: t, onUpdated: n, onDeleted: r, onResolved: i, onUnresolved: a } = e;
189
- return {
190
- ...typeof t == "function" ? { onCreated: t } : {},
191
- ...typeof n == "function" ? { onUpdated: n } : {},
192
- ...typeof r == "function" ? { onDeleted: r } : {},
193
- ...typeof i == "function" ? { onResolved: i } : {},
194
- ...typeof a == "function" ? { onUnresolved: a } : {}
195
- };
196
- }
197
- function ve(e) {
198
- if (typeof e != "object" || !e) return {};
199
- let { onCreated: t, onUpdated: n, onDeleted: r } = e;
200
- return {
201
- ...typeof t == "function" ? { onCreated: t } : {},
202
- ...typeof n == "function" ? { onUpdated: n } : {},
203
- ...typeof r == "function" ? { onDeleted: r } : {}
204
- };
205
- }
206
- function ye(e) {
207
- if (typeof e != "object" || !e) return {};
208
- let { onSent: t, defaultRecipient: n } = e;
209
- return {
210
- ...typeof t == "function" ? { onSent: t } : {},
211
- ...typeof n == "string" ? { defaultRecipient: n } : {}
212
- };
213
- }
214
- function be(e) {
215
- if (!e) return {};
216
- let { onCreated: t, onRestored: n } = e;
217
- return {
218
- ...typeof t == "function" ? { onCreated: t } : {},
219
- ...typeof n == "function" ? { onRestored: n } : {}
220
- };
221
- }
222
- function w(e) {
223
- return e.length < 2 ? e.join("") : e.length === 2 ? e.join(" and ") : `${e.slice(0, -1).join(", ")} and ${e[e.length - 1]}`;
224
- }
225
- async function T(r) {
226
- let { config: a, cloudTranslations: o } = r, d = null, T = null, E = null, D = null, O = null, k = null, A = null, j = n(null), M = n(/* @__PURE__ */ new Map()), N = n(null);
227
- function P() {
228
- if (!d) throw Error("[Templatical] The Cloud editor is not mounted yet.");
229
- return d;
230
- }
231
- function F() {
232
- return d?.state.template?.id ?? null;
233
- }
234
- let I = new ae({
235
- ...a.auth,
236
- onError: (e) => {
237
- te(e) && (j.value = e), a.onError?.(e);
238
- }
239
- }), L = le({
240
- authManager: I,
241
- onError: a.onError
242
- });
243
- await I.initialize();
244
- let R = await y({ authManager: I });
245
- if (!R.api.ok) throw Error("Health check failed: API is not reachable");
246
- if (!R.auth.ok) throw Error(`Health check failed: authentication error${R.auth.error ? ` - ${R.auth.error}` : ""}`);
247
- R.websocket.ok || f.warn("WebSocket health check failed:", R.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await L.fetchConfig(), j.value = null;
248
- let xe = a.templates, z = [
249
- "load",
250
- "create",
251
- "save"
252
- ].filter((e) => xe?.[e] !== void 0);
253
- z.length > 0 && f.warn(`initCloud ignores ${w(z.map((e) => `templates.${e}`))} — the template id is the join key for collaboration, version history, comments, AI rewrite, scoring and the server-side export, so an id Cloud never issued would degrade all six. Your event handlers were kept. Use init() to bring your own storage.`);
254
- let Se = a.versionHistory, B = [
255
- "list",
256
- "get",
257
- "create",
258
- "restore"
259
- ].filter((e) => Se?.[e] !== void 0);
260
- B.length > 0 && f.warn(`initCloud ignores ${w(B.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.`);
261
- let Ce = a.comments, V = [
262
- "list",
263
- "create",
264
- "update",
265
- "delete",
266
- "setResolved",
267
- "subscribe"
268
- ].filter((e) => Ce?.[e] !== void 0);
269
- V.length > 0 && f.warn(`initCloud ignores ${w(V.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.`), a.render && f.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.");
270
- function H(e) {
271
- let t = L.config.value?.websocket;
272
- E && t && E.connect(e.id, ne(t));
273
- }
274
- let U = g(I), W = U.create, G = U.save, we = {
275
- ...ge(a.templates),
276
- load: async (e) => {
277
- let t = await U.load(e);
278
- return H(t), t;
279
- },
280
- create: typeof W == "function" ? async (e) => {
281
- let t = await W(e);
282
- return H(t), t;
283
- } : !1,
284
- save: typeof G == "function" ? async (e, t) => (T && d && await p(d.content.value, T.registry), G(e, t)) : !1
285
- }, Te = re({
286
- authManager: I,
287
- getTemplateId: F,
288
- save: () => P().save()
289
- }), Ee = {
290
- ...be(a.versionHistory),
291
- ...ie(I)
292
- }, De = {
293
- ..._e(a.comments),
294
- ...x({
295
- authManager: I,
296
- channel: N,
297
- getSocketId: () => E?.getSocketId() ?? null
298
- })
299
- }, K = I.userConfig ? {
300
- id: I.userConfig.id,
301
- name: I.userConfig.name
302
- } : void 0, q = typeof a.savedBlocks?.list == "function" ? a.savedBlocks : null;
303
- if (q === null && typeof a.savedBlocks == "object" && a.savedBlocks !== null) {
304
- let e = a.savedBlocks, t = [
305
- "list",
306
- "create",
307
- "update",
308
- "delete"
309
- ].filter((t) => e[t] !== void 0);
310
- t.length > 0 && f.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.`);
311
- }
312
- let J = a.savedBlocks === !1 ? void 0 : q ?? {
313
- ...ve(a.savedBlocks),
314
- ...v(I)
315
- }, Y = ce({
316
- authManager: I,
317
- isAuthReady: n(!0)
318
- }), Oe = h({ authManager: I }), X = typeof a.testEmail?.send == "function" ? a.testEmail : null;
319
- if (X === null && typeof a.testEmail == "object" && a.testEmail !== null) {
320
- let e = a.testEmail, t = [
321
- "send",
322
- "includeMjml",
323
- "allowedRecipients"
324
- ].filter((t) => e[t] !== void 0);
325
- t.length > 0 && f.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.`);
326
- }
327
- let ke = X ?? Object.assign(S({
328
- authManager: I,
329
- getTemplateId: F,
330
- save: () => P().save(),
331
- exportHtml: (e) => Oe.exportHtml(e, oe(a.fonts)),
332
- allowedEmails: Y.allowedEmails,
333
- getSignature: Y.getSignature,
334
- onBeforeTestEmail: a.onBeforeTestEmail
335
- }), ye(a.testEmail)), Z = C(a.ai), Ae = ee({
336
- authManager: I,
337
- getTemplateId: F
338
- }), Q = ue({
339
- planConfigInstance: L,
340
- aiConfig: Z,
341
- getTemplateId: F
342
- }), $ = i(() => !!a.collaboration?.enabled && L.hasFeature("collaboration"));
343
- function je(n) {
344
- let r = n.editor;
345
- d = r, e(l, o), e(c, I), e(u, Z), e(s, Ae);
346
- let i = m({
347
- authManager: I,
348
- onError: a.onError
349
- });
350
- E = i, t(i.channel, (e) => {
351
- N.value = e;
352
- }, { immediate: !0 }), a.mcp?.enabled && se({
353
- editor: r,
354
- channel: i.channel,
355
- onOperation: a.mcp.onOperation
356
- }), a.collaboration?.enabled && (O = b({
357
- authManager: I,
358
- editor: r,
359
- channel: i.channel,
360
- onError: a.onError,
361
- onCollaboratorJoined: a.collaboration.onCollaboratorJoined,
362
- onCollaboratorLeft: a.collaboration.onCollaboratorLeft,
363
- onBlockLocked: a.collaboration.onBlockLocked,
364
- onBlockUnlocked: a.collaboration.onBlockUnlocked
365
- }), t(() => O.lockedBlocks.value, (e) => {
366
- M.value = e;
367
- }, { immediate: !0 }), _(r, O));
368
- let f = fe(), p = de({
369
- onRequestMedia: a.onRequestMedia,
370
- mediaLibraryOpen: f.mediaLibraryOpen,
371
- mediaLibraryAccept: f.mediaLibraryAccept,
372
- authManager: I,
373
- getMediaConfig: () => L.config.value?.media ?? null,
374
- onError: a.onError
375
- });
376
- return D = p, {
377
- websocket: i,
378
- panelState: f,
379
- mediaLib: p,
380
- mediaBrowser: {
381
- authManager: I,
382
- projectId: I.projectId,
383
- planConfig: L
384
- },
385
- featureFlags: Q,
386
- collaboration: O,
387
- isCollaborationEnabled: $
388
- };
389
- }
390
- function Me(e) {
391
- let { core: t, capabilities: r } = e;
392
- return T = t, A = pe({
393
- issues: t.templateLint ? t.templateLint.issues : n([]),
394
- planConfig: L.config
395
- }), k = me({
396
- isCollaborationEnabled: $,
397
- getCollaboratorCount: () => O?.collaborators.value.length ?? 0,
398
- canUndo: t.history.canUndo
399
- }), r.plan = L, r.ai = Z, a.customBlocks?.length && t.registerCustomBlocks(a.customBlocks), a.theme && (t.themeOverrides.value = a.theme), {
400
- saveGate: A,
401
- collabWarning: k,
402
- sessionError: j,
403
- retry: async () => {
404
- try {
405
- await I.initialize(), j.value = null;
406
- } catch (e) {
407
- j.value = e instanceof Error ? e : /* @__PURE__ */ Error("Authentication failed");
408
- }
409
- }
410
- };
411
- }
412
- return {
413
- runtime: {
414
- lockedBlocks: M,
415
- onRequestMedia: (e) => D ? D.handleRequestMedia(e) : Promise.resolve(null),
416
- isSavedBlocksAvailable: q ? () => !0 : () => a.savedBlocks !== !1 && L.hasFeature("saved_modules"),
417
- isTestEmailAvailable: X ? () => !0 : () => Y.isEnabled.value && Q.canSendTestEmail.value && Q.hasTemplateSaved.value,
418
- isCommentsAvailable: () => a.comments !== !1 && L.hasFeature("commenting") && Q.hasTemplateSaved.value,
419
- isBlockSaved: (e) => he(d?.state.template ?? null).has(e),
420
- getSaveGate: () => A,
421
- isRemoteOperation: () => O?._isProcessingRemoteOperation() ?? !1,
422
- onBeforeUndo: () => k?.showCollabUndoWarning(),
423
- attach: je,
424
- ready: Me,
425
- destroy() {
426
- E?.disconnect(), a.onUnmount?.();
427
- }
428
- },
429
- providers: {
430
- templates: we,
431
- render: Te,
432
- versionHistory: Ee,
433
- ...J ? { savedBlocks: J } : {},
434
- testEmail: ke,
435
- comments: De
436
- },
437
- user: K
438
- };
439
- }
440
- //#endregion
441
- export { T as bootstrapCloud };
@@ -1,43 +0,0 @@
1
- import { S as e, b as t, s as n } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- //#region ../../node_modules/.pnpm/@lucide+vue@1.41.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
3
- var r = (e) => e === "", i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
4
- let t = o(e);
5
- return t.charAt(0).toUpperCase() + t.slice(1);
6
- }, c = {
7
- xmlns: "http://www.w3.org/2000/svg",
8
- width: 24,
9
- height: 24,
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- stroke: "currentColor",
13
- "stroke-width": 2,
14
- "stroke-linecap": "round",
15
- "stroke-linejoin": "round"
16
- }, l = /* @__PURE__ */ Symbol("lucide-icons");
17
- function u() {
18
- return e(l, {});
19
- }
20
- //#endregion
21
- //#region ../../node_modules/.pnpm/@lucide+vue@1.41.0_vue@3.5.42_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
22
- var d = ({ name: e, iconNode: o, "icon-node": l, absoluteStrokeWidth: d, "absolute-stroke-width": f, strokeWidth: p, "stroke-width": m, size: h, color: g, ..._ }, { slots: v }) => {
23
- let { size: y, color: b, strokeWidth: x = 2, absoluteStrokeWidth: S = !1, class: C = "" } = u(), w = n(() => {
24
- let e = r(d) || r(f) || d === !0 || f === !0 || S === !0, t = p || m || x || c["stroke-width"];
25
- return e ? Number(t) * 24 / Number(h ?? y ?? c.width) : t;
26
- });
27
- return t("svg", {
28
- ...c,
29
- ..._,
30
- width: h ?? y ?? c.width,
31
- height: h ?? y ?? c.height,
32
- stroke: g ?? b ?? c.stroke,
33
- "stroke-width": w.value,
34
- class: i("lucide", C, ...e ? [`lucide-${a(s(e))}-icon`, `lucide-${a(e)}`] : ["lucide-icon"])
35
- }, [...(o ?? l ?? []).map((e) => t(...e)), ...v.default ? [v.default()] : []]);
36
- }, f = (e, n) => (r, { slots: i, attrs: a }) => t(d, {
37
- ...a,
38
- ...r,
39
- iconNode: n,
40
- name: e
41
- }, i.default ? { default: i.default } : void 0);
42
- //#endregion
43
- export { f as t };