@templatical/editor 0.47.0 → 0.49.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 (319) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-BPOv5Ra8.js → AiChatSidebar-CdjTb9ej.js} +14 -14
  3. package/dist/{AiFeatureMenu-H_WT4YR8.js → AiFeatureMenu-DKm7VYCs.js} +7 -7
  4. package/dist/{BlockIssueBadge-AgO5abEB.js → BlockIssueBadge-BdpJwim0.js} +5 -5
  5. package/dist/BlockPreviewCanvas-D_sowkf0.js +141 -0
  6. package/dist/CloudHeaderExtras-CI8RR9hG.js +55 -0
  7. package/dist/{CloudPanels-H_GdbOfZ.js → CloudPanels-1hwFiJ0G.js} +39 -68
  8. package/dist/CollaborationNotices-BWpKzueF.js +73 -0
  9. package/dist/CollaboratorBar-D87phJsw.js +123 -0
  10. package/dist/{CommentsPanel-CMgsG_yh.js → CommentsPanel-BUvUzO3T.js} +2 -2
  11. package/dist/{CommentsSidebar-DCh8DTP8.js → CommentsSidebar-J65znlrH.js} +14 -14
  12. package/dist/{CountdownBlock-zx39Dyby.js → CountdownBlock-DPQXWRvU.js} +4 -4
  13. package/dist/{CountdownToolbar-DVuucA3v.js → CountdownToolbar-CLMIwfK7.js} +7 -7
  14. package/dist/{DesignReferenceSidebar-DxNV4lQp.js → DesignReferenceSidebar-BTwCFgz8.js} +13 -13
  15. package/dist/{IssuesPanel-CUpW54P4.js → IssuesPanel-DeeVsfG7.js} +8 -8
  16. package/dist/{LoadingTrack-6XsqodoY.js → LoadingTrack-BXOptf5g.js} +1 -1
  17. package/dist/{LogicTagInsertButton-DDYKnqmj.js → LogicTagInsertButton-CR5E4jSG.js} +17 -17
  18. package/dist/{MediaEditModal-D_we0Scr.js → MediaEditModal-C_wxoUMG.js} +3 -3
  19. package/dist/{MediaPanels-L95BwWV1.js → MediaPanels-BVXDkqtH.js} +2 -2
  20. package/dist/{MergeTagInput-DAL998tx.js → MergeTagInput-BEw_r0PJ.js} +3 -3
  21. package/dist/{MergeTagModeToggle-CjHO26rb.js → MergeTagModeToggle-CJTpFmVd.js} +7 -7
  22. package/dist/{ParagraphEditor-CcEN1N6n.js → ParagraphEditor-zLV44z-R.js} +135 -135
  23. package/dist/{RestoreVersionDialog-B2OH5rgs.js → RestoreVersionDialog-BaDpy3cL.js} +6 -6
  24. package/dist/{RichTextEditorContent-BGeTg-QL.js → RichTextEditorContent-CsvniFlI.js} +9 -9
  25. package/dist/{SaveBlockDialog-CCVyU-7y.js → SaveBlockDialog-DzWURF_e.js} +34 -35
  26. package/dist/{SavedBlocksBrowserModal-_WmSeqIh.js → SavedBlocksBrowserModal-B8DCFW7t.js} +14 -14
  27. package/dist/{SavedBlocksPanels-DVX_ruQ7.js → SavedBlocksPanels-B3Af8ns2.js} +2 -2
  28. package/dist/{SavedBlocksPickBar-DVJC28hP.js → SavedBlocksPickBar-Dj11-Lqp.js} +5 -5
  29. package/dist/{TemplateScoringPanel-U0QFiwdI.js → TemplateScoringPanel-Ba9sgvjS.js} +16 -16
  30. package/dist/{TemplateSettings-CdhTm9JQ.js → TemplateSettings-Cu5X9DgA.js} +11 -11
  31. package/dist/{TestEmailModal-BqToA_ls.js → TestEmailModal-BeRYV3eg.js} +14 -14
  32. package/dist/{TestEmailPanel-Cn4Ptq0j.js → TestEmailPanel-B8c3fQi2.js} +2 -2
  33. package/dist/{TitleEditor-CZdqeltH.js → TitleEditor-CvpNUoAp.js} +13 -13
  34. package/dist/{ToggleSwitch-BR8Sgzib.js → ToggleSwitch-DHweVJOr.js} +2 -2
  35. package/dist/Toolbar-BadDSkkF.js +3153 -0
  36. package/dist/{TplModal-CoczSDma.js → TplModal-BZgi9Tes.js} +5 -5
  37. package/dist/{VersionHistoryMenu-DY5z5FZr.js → VersionHistoryMenu-BRlcQ8wX.js} +10 -10
  38. package/dist/{VersionHistoryPanels-DowHeDAQ.js → VersionHistoryPanels-DGkllN3a.js} +2 -2
  39. package/dist/{VersionPreviewBanner-Bo8NxBbh.js → VersionPreviewBanner-F-811aps.js} +4 -4
  40. package/dist/WrapperBlock-DiiaxpMb.js +45 -0
  41. package/dist/{blockTypeIcons-4E1U8f99.js → blockTypeIcons-CayLluou.js} +49 -19
  42. package/dist/bundle-stats.json +7 -7
  43. package/dist/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +40 -2
  44. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js → AiChatSidebar-yXJ85Zcg.js} +12 -12
  45. package/dist/cdn/chunks/{AiChatSidebar-B72rI0be.js.map → AiChatSidebar-yXJ85Zcg.js.map} +1 -1
  46. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js → AiFeatureMenu-4ydjrhsQ.js} +6 -6
  47. package/dist/cdn/chunks/{AiFeatureMenu-BqSG9iEd.js.map → AiFeatureMenu-4ydjrhsQ.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js → BlockIssueBadge-D1VBS_6x.js} +5 -5
  49. package/dist/cdn/chunks/{BlockIssueBadge-CS7ytN-z.js.map → BlockIssueBadge-D1VBS_6x.js.map} +1 -1
  50. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js +143 -0
  51. package/dist/cdn/chunks/BlockPreviewCanvas-m2tWRyWv.js.map +1 -0
  52. package/dist/cdn/chunks/{CloudHeaderExtras-DJXLTUHc.js → CloudHeaderExtras-DEkRww7n.js} +16 -20
  53. package/dist/cdn/chunks/CloudHeaderExtras-DEkRww7n.js.map +1 -0
  54. package/dist/cdn/chunks/{CloudPanels-D1fPLjG8.js → CloudPanels-XufhBZYF.js} +38 -67
  55. package/dist/cdn/chunks/CloudPanels-XufhBZYF.js.map +1 -0
  56. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js +75 -0
  57. package/dist/cdn/chunks/CollaborationNotices-CBvKEj1Q.js.map +1 -0
  58. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js +72 -0
  59. package/dist/cdn/chunks/CollaboratorBar-DWW54Bn_.js.map +1 -0
  60. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js → CommentsPanel-R8YLLO3v.js} +3 -3
  61. package/dist/cdn/chunks/{CommentsPanel-CmxPylNf.js.map → CommentsPanel-R8YLLO3v.js.map} +1 -1
  62. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js → CommentsSidebar-96NZHVq3.js} +16 -16
  63. package/dist/cdn/chunks/{CommentsSidebar-CrleQTbo.js.map → CommentsSidebar-96NZHVq3.js.map} +1 -1
  64. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js → CountdownBlock-DB4JNdqh.js} +5 -5
  65. package/dist/cdn/chunks/{CountdownBlock-Dasj191h.js.map → CountdownBlock-DB4JNdqh.js.map} +1 -1
  66. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js → CountdownToolbar-tmiTPEXm.js} +8 -8
  67. package/dist/cdn/chunks/{CountdownToolbar-DPIOtlN0.js.map → CountdownToolbar-tmiTPEXm.js.map} +1 -1
  68. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js → DesignReferenceSidebar-D14IIu_P.js} +40 -40
  69. package/dist/cdn/chunks/{DesignReferenceSidebar-BgTNqgCy.js.map → DesignReferenceSidebar-D14IIu_P.js.map} +1 -1
  70. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js → IssuesPanel-BoPiCLGc.js} +6 -6
  71. package/dist/cdn/chunks/{IssuesPanel-BGjLcNpQ.js.map → IssuesPanel-BoPiCLGc.js.map} +1 -1
  72. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js → LoadingTrack-YU44CM8X.js} +2 -2
  73. package/dist/cdn/chunks/{LoadingTrack-DbH97JR9.js.map → LoadingTrack-YU44CM8X.js.map} +1 -1
  74. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js → LogicTagInsertButton-BJ2t2vxC.js} +98 -98
  75. package/dist/cdn/chunks/{LogicTagInsertButton-BEsqPhMr.js.map → LogicTagInsertButton-BJ2t2vxC.js.map} +1 -1
  76. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js → MediaEditModal-DD0SZ-S3.js} +3 -3
  77. package/dist/cdn/chunks/{MediaEditModal-C1Ao0i2c.js.map → MediaEditModal-DD0SZ-S3.js.map} +1 -1
  78. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js → MediaPanels-CkdJ_kGp.js} +3 -3
  79. package/dist/cdn/chunks/{MediaPanels-1GPYiZZ0.js.map → MediaPanels-CkdJ_kGp.js.map} +1 -1
  80. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js → MergeTagInput-7wXX71DH.js} +4 -4
  81. package/dist/cdn/chunks/{MergeTagInput-Dy13_OLc.js.map → MergeTagInput-7wXX71DH.js.map} +1 -1
  82. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js → MergeTagModeToggle-r9vHH4u_.js} +6 -6
  83. package/dist/cdn/chunks/{MergeTagModeToggle-B2CPZOeF.js.map → MergeTagModeToggle-r9vHH4u_.js.map} +1 -1
  84. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js → ParagraphEditor-CJQjRHXV.js} +52 -52
  85. package/dist/cdn/chunks/{ParagraphEditor-BGLIw7kg.js.map → ParagraphEditor-CJQjRHXV.js.map} +1 -1
  86. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js → RestoreVersionDialog-C5cxBRKi.js} +8 -8
  87. package/dist/cdn/chunks/{RestoreVersionDialog-BhykE8En.js.map → RestoreVersionDialog-C5cxBRKi.js.map} +1 -1
  88. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js → RichTextEditorContent-BfE7Bkge.js} +8 -8
  89. package/dist/cdn/chunks/{RichTextEditorContent-B-txUvPL.js.map → RichTextEditorContent-BfE7Bkge.js.map} +1 -1
  90. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js → SaveBlockDialog-BKbjUnPM.js} +25 -26
  91. package/dist/cdn/chunks/{SaveBlockDialog-BHqEp7jw.js.map → SaveBlockDialog-BKbjUnPM.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js → SavedBlocksBrowserModal-BMtyUrUP.js} +10 -10
  93. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BhR6AI0f.js.map → SavedBlocksBrowserModal-BMtyUrUP.js.map} +1 -1
  94. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js → SavedBlocksPanels-s_gxi1im.js} +3 -3
  95. package/dist/cdn/chunks/{SavedBlocksPanels-YwffJtfY.js.map → SavedBlocksPanels-s_gxi1im.js.map} +1 -1
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js → SavedBlocksPickBar-B8WHk5mI.js} +6 -6
  97. package/dist/cdn/chunks/{SavedBlocksPickBar-BtpFU7es.js.map → SavedBlocksPickBar-B8WHk5mI.js.map} +1 -1
  98. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js → TemplateScoringPanel-BBPnHILC.js} +10 -10
  99. package/dist/cdn/chunks/{TemplateScoringPanel-N4ySFh5w.js.map → TemplateScoringPanel-BBPnHILC.js.map} +1 -1
  100. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js → TemplateSettings-CtrzzQWl.js} +14 -14
  101. package/dist/cdn/chunks/{TemplateSettings-C7b5X34U.js.map → TemplateSettings-CtrzzQWl.js.map} +1 -1
  102. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js → TestEmailModal-DuZKYMWD.js} +15 -15
  103. package/dist/cdn/chunks/{TestEmailModal-DHJKI5y5.js.map → TestEmailModal-DuZKYMWD.js.map} +1 -1
  104. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js → TestEmailPanel-DERaCdpG.js} +3 -3
  105. package/dist/cdn/chunks/{TestEmailPanel-lYtzTXpR.js.map → TestEmailPanel-DERaCdpG.js.map} +1 -1
  106. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js → TitleEditor-CEgxjtUX.js} +20 -20
  107. package/dist/cdn/chunks/{TitleEditor-5eY01ypW.js.map → TitleEditor-CEgxjtUX.js.map} +1 -1
  108. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js → ToggleSwitch-DGQ7iRc-.js} +3 -3
  109. package/dist/cdn/chunks/{ToggleSwitch-BN8rMC2m.js.map → ToggleSwitch-DGQ7iRc-.js.map} +1 -1
  110. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js +3070 -0
  111. package/dist/cdn/chunks/Toolbar-GFIZQHzw.js.map +1 -0
  112. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js → TplModal-DDrbWJcE.js} +5 -5
  113. package/dist/cdn/chunks/{TplModal-WIBiBrGy.js.map → TplModal-DDrbWJcE.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js → VersionHistoryMenu-MlxsUmuT.js} +11 -11
  115. package/dist/cdn/chunks/{VersionHistoryMenu-CZnlS9K5.js.map → VersionHistoryMenu-MlxsUmuT.js.map} +1 -1
  116. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js → VersionHistoryPanels-DVOV8QLv.js} +3 -3
  117. package/dist/cdn/chunks/{VersionHistoryPanels-xjLSpR1e.js.map → VersionHistoryPanels-DVOV8QLv.js.map} +1 -1
  118. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js → VersionPreviewBanner-BQwRKc6S.js} +5 -5
  119. package/dist/cdn/chunks/{VersionPreviewBanner-sARpn4hh.js.map → VersionPreviewBanner-BQwRKc6S.js.map} +1 -1
  120. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js +47 -0
  121. package/dist/cdn/chunks/WrapperBlock-CFuP4R0c.js.map +1 -0
  122. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js +22 -0
  123. package/dist/cdn/chunks/blockTypeIcons-BnAd8qsP.js.map +1 -0
  124. package/dist/cdn/chunks/{ca-DMoGGP9L.js → ca-DSJwJ5ov.js} +41 -3
  125. package/dist/cdn/chunks/ca-DSJwJ5ov.js.map +1 -0
  126. package/dist/{cloud-DwjaAdwK.js → cdn/chunks/cloud-CI_fgDyy.js} +116 -293
  127. package/dist/cdn/chunks/cloud-CI_fgDyy.js.map +1 -0
  128. package/dist/cdn/chunks/{createCloudRuntime-DtIZ2Lee.js → createCloudRuntime-DiYCJ21w.js} +127 -169
  129. package/dist/cdn/chunks/createCloudRuntime-DiYCJ21w.js.map +1 -0
  130. package/dist/{de-DgAelLbM.js → cdn/chunks/de-CBE6O79z.js} +42 -2
  131. package/dist/cdn/chunks/de-CBE6O79z.js.map +1 -0
  132. package/dist/{de-mMY5yQJu.js → cdn/chunks/de-D_atmUVB.js} +2 -4
  133. package/dist/cdn/chunks/{de-mMY5yQJu.js.map → de-D_atmUVB.js.map} +1 -1
  134. package/dist/cdn/chunks/{dist-MNQYSEWU.js → dist-DdwjXLme.js} +3 -3
  135. package/dist/cdn/chunks/{dist-MNQYSEWU.js.map → dist-DdwjXLme.js.map} +1 -1
  136. package/dist/cdn/chunks/{dist-CjL6JHML.js → dist-Doy3r07H.js} +2 -2
  137. package/dist/cdn/chunks/{dist-CjL6JHML.js.map → dist-Doy3r07H.js.map} +1 -1
  138. package/dist/cdn/chunks/{draggable-DrsNwZuB.js → draggable-akeQH_JP.js} +1682 -1683
  139. package/dist/cdn/chunks/draggable-akeQH_JP.js.map +1 -0
  140. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js → editor-modal-HJBy9kLj.js} +69 -69
  141. package/dist/cdn/chunks/{editor-modal-Bcwo0orC.js.map → editor-modal-HJBy9kLj.js.map} +1 -1
  142. package/dist/cdn/chunks/{en-Dekrl7HA.js → en-CDexnk0p.js} +41 -3
  143. package/dist/cdn/chunks/en-CDexnk0p.js.map +1 -0
  144. package/dist/{en-ChVeGQBY.js → cdn/chunks/en-DhJLnaBx.js} +2 -4
  145. package/dist/cdn/chunks/en-DhJLnaBx.js.map +1 -0
  146. package/dist/cdn/chunks/en-Ve-PWSXu.js +1 -0
  147. package/dist/{es-BaZzyidV.js → cdn/chunks/es-BE42B6uN.js} +42 -2
  148. package/dist/cdn/chunks/es-BE42B6uN.js.map +1 -0
  149. package/dist/cdn/chunks/{extensions-T-t8MKDb.js → extensions-koOuDeZS.js} +23 -23
  150. package/dist/cdn/chunks/{extensions-T-t8MKDb.js.map → extensions-koOuDeZS.js.map} +1 -1
  151. package/dist/{fr-C5ucb1HK.js → cdn/chunks/fr-DlJFPDQR.js} +42 -2
  152. package/dist/cdn/chunks/fr-DlJFPDQR.js.map +1 -0
  153. package/dist/cdn/chunks/{icons-C4fX9Bwy.js → icons-CjlNV8xD.js} +121 -92
  154. package/dist/cdn/chunks/icons-CjlNV8xD.js.map +1 -0
  155. package/dist/{ja-CUgR3mV0.js → cdn/chunks/ja-CUT8gkNI.js} +42 -2
  156. package/dist/cdn/chunks/ja-CUT8gkNI.js.map +1 -0
  157. package/dist/cdn/chunks/{keys-HI-INbkz.js → keys-UAWhQ3zW.js} +2 -2
  158. package/dist/cdn/chunks/{keys-HI-INbkz.js.map → keys-UAWhQ3zW.js.map} +1 -1
  159. package/dist/{nl-qrLY7hMS.js → cdn/chunks/nl-bXWqqRyS.js} +42 -2
  160. package/dist/cdn/chunks/nl-bXWqqRyS.js.map +1 -0
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js → preRenderCustomBlocks-DqKbdTJ8.js} +5 -5
  162. package/dist/cdn/chunks/{preRenderCustomBlocks-Co0oi0Jf.js.map → preRenderCustomBlocks-DqKbdTJ8.js.map} +1 -1
  163. package/dist/{pt-BR-C6hMTQYi.js → cdn/chunks/pt-BR-2_H4-wlb.js} +42 -2
  164. package/dist/cdn/chunks/pt-BR-2_H4-wlb.js.map +1 -0
  165. package/dist/{pt-BR-CoCwRUi0.js → cdn/chunks/pt-BR-BphMoUTw.js} +2 -4
  166. package/dist/cdn/chunks/{pt-BR-CoCwRUi0.js.map → pt-BR-BphMoUTw.js.map} +1 -1
  167. package/dist/cdn/chunks/{pusher-C8DeiO2X.js → pusher-Cs4GGEtd.js} +2 -2
  168. package/dist/cdn/chunks/pusher-Cs4GGEtd.js.map +1 -0
  169. package/dist/cdn/chunks/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-Y_bBpyJl.js} +1 -1
  170. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js +2091 -0
  171. package/dist/cdn/chunks/socialIcons-CkZSYpoG.js.map +1 -0
  172. package/dist/cdn/chunks/{src-CHlVFp7r.js → src-B1e5SSYP.js} +312 -286
  173. package/dist/cdn/chunks/src-B1e5SSYP.js.map +1 -0
  174. package/dist/cdn/chunks/src-B77z1iw4.js +649 -0
  175. package/dist/cdn/chunks/src-B77z1iw4.js.map +1 -0
  176. package/dist/cdn/chunks/{src-BnJlDuyB.js → src-CvLTYGdO.js} +555 -283
  177. package/dist/cdn/chunks/src-CvLTYGdO.js.map +1 -0
  178. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +2 -4
  179. package/dist/cdn/chunks/{styleConstants-D1Jz-TFU.js.map → styleConstants-v1dNKgJf.js.map} +1 -1
  180. package/dist/cdn/chunks/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +2 -2
  181. package/dist/cdn/chunks/timeouts-o5Y9BuqI.js.map +1 -0
  182. package/dist/cdn/chunks/{tiptap-BPigZk5G.js → tiptap-B1RfWFzB.js} +3 -3
  183. package/dist/cdn/chunks/tiptap-B1RfWFzB.js.map +1 -0
  184. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js → useAliveFlag-PuXh83UK.js} +2 -2
  185. package/dist/cdn/chunks/{useAliveFlag-DCB96vzR.js.map → useAliveFlag-PuXh83UK.js.map} +1 -1
  186. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js → useCloudI18n-kp07GQmk.js} +3 -3
  187. package/dist/cdn/chunks/{useCloudI18n-BBF4waXO.js.map → useCloudI18n-kp07GQmk.js.map} +1 -1
  188. package/dist/cdn/chunks/{useEditorCore-Bf2d1DKI.js → useEditorCore-DpCFvHg_.js} +758 -732
  189. package/dist/cdn/chunks/useEditorCore-DpCFvHg_.js.map +1 -0
  190. package/dist/cdn/chunks/useEditorRoot-5SBqm90x.js +10 -0
  191. package/dist/cdn/chunks/{useEditorRoot-CTc6O8al.js.map → useEditorRoot-5SBqm90x.js.map} +1 -1
  192. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js → useI18n-DEqtEgOs.js} +3 -3
  193. package/dist/cdn/chunks/{useI18n-DUlyyIJJ.js.map → useI18n-DEqtEgOs.js.map} +1 -1
  194. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js → useLogicTag-X8bc5qNl.js} +4 -4
  195. package/dist/cdn/chunks/{useLogicTag-3S63go4E.js.map → useLogicTag-X8bc5qNl.js.map} +1 -1
  196. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js → useMergeTag-DFoOexIQ.js} +6 -6
  197. package/dist/cdn/chunks/{useMergeTag-BQtxUHq1.js.map → useMergeTag-DFoOexIQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js → usePopoverPosition-Cz9-XiXR.js} +3 -3
  199. package/dist/cdn/chunks/{usePopoverPosition-IbaW6-Ao.js.map → usePopoverPosition-Cz9-XiXR.js.map} +1 -1
  200. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js → useScrollToBlock-MNzurEZV.js} +3 -3
  201. package/dist/cdn/chunks/{useScrollToBlock-uUa601I4.js.map → useScrollToBlock-MNzurEZV.js.map} +1 -1
  202. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js → withCurrentFont-D-f61ghC.js} +2 -2
  203. package/dist/cdn/chunks/{withCurrentFont-DwJd-lKc.js.map → withCurrentFont-D-f61ghC.js.map} +1 -1
  204. package/dist/cdn/editor.css +1 -1
  205. package/dist/cdn/editor.js +1328 -1069
  206. package/dist/cdn/editor.js.map +1 -1
  207. package/dist/{check-B5R4zXr7.js → check-DQQzkmIC.js} +1 -1
  208. package/dist/{chevron-down-BKyl85NV.js → chevron-down-CIF4bdon.js} +1 -1
  209. package/dist/{chevron-right-BmToZ8qX.js → chevron-right-Cg7Xu-ev.js} +1 -1
  210. package/dist/{chevron-up-DNYdOxPC.js → chevron-up-Csu7ISD-.js} +1 -1
  211. package/dist/{circle-alert-Dx9ju3YZ.js → circle-alert-YUvIJAgY.js} +1 -1
  212. package/dist/{clock-Dv9bxsSH.js → clock-CnSIGKQW.js} +1 -1
  213. package/dist/{cdn/chunks/cloud-Cd7ptfhL.js → cloud-YUYDtdHt.js} +308 -569
  214. package/dist/{copy-BsKl4dcy.js → copy-CUC43md_.js} +1 -1
  215. package/dist/{createCloudRuntime-C8gpPsSi.js → createCloudRuntime-BMDRjL0k.js} +126 -168
  216. package/dist/{createLucideIcon-DziKp5iU.js → createLucideIcon-BcP1sjdp.js} +6 -6
  217. package/dist/{cdn/chunks/de-DgAelLbM.js → de-CBE6O79z.js} +40 -4
  218. package/dist/{cdn/chunks/de-mMY5yQJu.js → de-D_atmUVB.js} +0 -6
  219. package/dist/{dist-CUWI-IvA.js → dist-Bv_GBr2l.js} +1 -1
  220. package/dist/{dist-DAAJogrx.js → dist-CCqn-RqE.js} +2 -2
  221. package/dist/{dist-DuufrR8O.js → dist-CNqjHA8e.js} +2 -2
  222. package/dist/{dist-C8koXLhl.js → dist-DBG3nh3k.js} +550 -284
  223. package/dist/{editor-modal-BwyIUnV_.js → editor-modal--7_9A6j-.js} +27 -27
  224. package/dist/en-BHCMzqib.js +1 -0
  225. package/dist/{en-Dekrl7HA.js → en-CDexnk0p.js} +40 -2
  226. package/dist/{cdn/chunks/en-ChVeGQBY.js → en-DhJLnaBx.js} +0 -6
  227. package/dist/{cdn/chunks/es-BaZzyidV.js → es-BE42B6uN.js} +40 -4
  228. package/dist/{extensions-DHyKjsNZ.js → extensions-zwsZlWjH.js} +23 -23
  229. package/dist/{eye-DQuinb9k.js → eye-B1bua-ck.js} +1 -1
  230. package/dist/{cdn/chunks/fr-C5ucb1HK.js → fr-DlJFPDQR.js} +40 -4
  231. package/dist/{image-up-yTfLjOrj.js → image-up-BqiO7KCO.js} +1 -1
  232. package/dist/index.d.ts +356 -38
  233. package/dist/{info-C7OjlS11.js → info-x26nGOo2.js} +1 -1
  234. package/dist/{cdn/chunks/ja-CUgR3mV0.js → ja-CUT8gkNI.js} +40 -4
  235. package/dist/{keys-BKFq19a2.js → keys-BymCnLHD.js} +1 -1
  236. package/dist/{link-CrUFaZ0t.js → link-CezhndyR.js} +1 -1
  237. package/dist/{list-CLgv6M-k.js → list-DQqdptI0.js} +1 -1
  238. package/dist/{loader-circle-BXM5VO0K.js → loader-circle-DCEeoYoi.js} +1 -1
  239. package/dist/{message-circle-BisdQ8H9.js → message-circle-BLGzfv_7.js} +1 -1
  240. package/dist/{cdn/chunks/nl-qrLY7hMS.js → nl-bXWqqRyS.js} +40 -4
  241. package/dist/{package-C1T4AxV1.js → package-D_kEQCMU.js} +1 -1
  242. package/dist/{pencil-oo2mwf4C.js → pencil-Dct8zGLy.js} +1 -1
  243. package/dist/{plus-BIilXopD.js → plus-BDd0gTEm.js} +1 -1
  244. package/dist/{preRenderCustomBlocks-lFX0HHiV.js → preRenderCustomBlocks-CtKJecE-.js} +1 -1
  245. package/dist/{cdn/chunks/pt-BR-C6hMTQYi.js → pt-BR-2_H4-wlb.js} +40 -4
  246. package/dist/{cdn/chunks/pt-BR-CoCwRUi0.js → pt-BR-BphMoUTw.js} +0 -6
  247. package/dist/{refresh-cw-DrLlkEVC.js → refresh-cw-tGMRDxr8.js} +1 -1
  248. package/dist/{runtime-dom.esm-bundler-lFF-QG3j.js → runtime-dom.esm-bundler-DYn1z2Xf.js} +1 -1
  249. package/dist/{search-DNu9lImk.js → search-Bm2cCQpe.js} +1 -1
  250. package/dist/{send-DDNh3LoJ.js → send-sVLaKZ7f.js} +1 -1
  251. package/dist/{shield-check-aXM3o14f.js → shield-check-YhsbXfQc.js} +1 -1
  252. package/dist/{smartphone-isccgDee.js → smartphone-B2W81p02.js} +1 -1
  253. package/dist/socialIcons-Bwv-49EB.js +2167 -0
  254. package/dist/{sparkles-CIMfFxKv.js → sparkles-a1qkBZ8X.js} +1 -1
  255. package/dist/style.css +1 -1
  256. package/dist/{styleConstants-D1Jz-TFU.js → styleConstants-v1dNKgJf.js} +1 -3
  257. package/dist/templatical-editor.js +1448 -1189
  258. package/dist/{text-align-start-C4JFeqsq.js → text-align-start-CTuwQ5YW.js} +1 -1
  259. package/dist/{timeouts-DHPZQ0G3.js → timeouts-o5Y9BuqI.js} +1 -1
  260. package/dist/{trash-8ZD9pK_c.js → trash-I3D2peFQ.js} +1 -1
  261. package/dist/{triangle-alert-pq45xEHl.js → triangle-alert-CenxmLRE.js} +1 -1
  262. package/dist/{upload-DrNFmVes.js → upload-uU2cK0Ce.js} +1 -1
  263. package/dist/{useAliveFlag-Dd06mRxe.js → useAliveFlag-BjP0Gxza.js} +1 -1
  264. package/dist/{useCloudI18n-Nwqo7pI_.js → useCloudI18n-CGVEZV3o.js} +2 -2
  265. package/dist/{useEditorCore-BcT7UI4e.js → useEditorCore-DRbMRe8F.js} +1103 -1076
  266. package/dist/{useEditorRoot-BD3piYtD.js → useEditorRoot-BVm2-1N8.js} +2 -2
  267. package/dist/{useI18n-CxVEpurs.js → useI18n-CSh4gO5c.js} +2 -2
  268. package/dist/{useLogicTag-D-dI8H6p.js → useLogicTag-zcI6BWIf.js} +3 -3
  269. package/dist/{useMergeTag-5wMeDBi-.js → useMergeTag-C-iBLlp0.js} +5 -5
  270. package/dist/{usePopoverPosition-CwnH1o5g.js → usePopoverPosition-CMcsMBtK.js} +2 -2
  271. package/dist/{useScrollToBlock-Do3suaqp.js → useScrollToBlock-CdCQK9QQ.js} +3 -3
  272. package/dist/{vue.runtime.esm-bundler-CAzmrXdD.js → vue.runtime.esm-bundler-DV0Wx4r_.js} +1079 -1080
  273. package/dist/{withCurrentFont-B4YnsG_2.js → withCurrentFont-D62njRLu.js} +1 -1
  274. package/dist/{x-CBFKGLB1.js → x-KFQ4S-Kz.js} +1 -1
  275. package/package.json +12 -12
  276. package/dist/BlockPreviewCanvas-CZDBSPoG.js +0 -136
  277. package/dist/CloudHeaderExtras-gXsTYoGG.js +0 -59
  278. package/dist/CollaboratorBar-BazGNMqN.js +0 -103
  279. package/dist/Toolbar-OGakTBEg.js +0 -2851
  280. package/dist/WrapperBlock-BOABSX9W.js +0 -46
  281. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +0 -138
  282. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +0 -1
  283. package/dist/cdn/chunks/CloudHeaderExtras-DJXLTUHc.js.map +0 -1
  284. package/dist/cdn/chunks/CloudPanels-D1fPLjG8.js.map +0 -1
  285. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js +0 -52
  286. package/dist/cdn/chunks/CollaboratorBar-MeRQB1eN.js.map +0 -1
  287. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js +0 -2767
  288. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +0 -1
  289. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +0 -48
  290. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +0 -1
  291. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js +0 -21
  292. package/dist/cdn/chunks/blockTypeIcons-D3g5QzdT.js.map +0 -1
  293. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +0 -1
  294. package/dist/cdn/chunks/cloud-Cd7ptfhL.js.map +0 -1
  295. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +0 -1
  296. package/dist/cdn/chunks/de-DgAelLbM.js.map +0 -1
  297. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +0 -1
  298. package/dist/cdn/chunks/en-BANFWZdr.js +0 -1
  299. package/dist/cdn/chunks/en-ChVeGQBY.js.map +0 -1
  300. package/dist/cdn/chunks/en-Dekrl7HA.js.map +0 -1
  301. package/dist/cdn/chunks/es-BaZzyidV.js.map +0 -1
  302. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +0 -1
  303. package/dist/cdn/chunks/icons-C4fX9Bwy.js.map +0 -1
  304. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +0 -1
  305. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +0 -1
  306. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +0 -1
  307. package/dist/cdn/chunks/pusher-C8DeiO2X.js.map +0 -1
  308. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +0 -1103
  309. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +0 -1
  310. package/dist/cdn/chunks/src-BnJlDuyB.js.map +0 -1
  311. package/dist/cdn/chunks/src-Bu0qBpbf.js +0 -616
  312. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +0 -1
  313. package/dist/cdn/chunks/src-CHlVFp7r.js.map +0 -1
  314. package/dist/cdn/chunks/timeouts-DHPZQ0G3.js.map +0 -1
  315. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +0 -1
  316. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +0 -1
  317. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +0 -10
  318. package/dist/en-CC-57eC_.js +0 -1
  319. package/dist/socialIcons-BctavKBN.js +0 -1180
package/dist/index.d.ts CHANGED
@@ -4,6 +4,18 @@ declare interface AccessibilityLintOptions {
4
4
  thresholds?: Partial<LintThresholds>;
5
5
  }
6
6
 
7
+ /** Insert `block` into `parent`, after the sibling `after` (`null`: first). */
8
+ declare interface AddBlockOperation {
9
+ op: "addBlock";
10
+ /**
11
+ * A non-empty string `id` and a string `type`. A section brings its
12
+ * `children`: a list of columns, each a list of blocks.
13
+ */
14
+ block: Block;
15
+ parent: BlockParent;
16
+ after: string | null;
17
+ }
18
+
7
19
  declare interface AiConfig {
8
20
  chat?: boolean;
9
21
  scoring?: boolean;
@@ -31,6 +43,20 @@ declare interface BackgroundImage {
31
43
  };
32
44
  /** `false` paints the image once; `true` tiles it. */
33
45
  repeat: boolean;
46
+ /**
47
+ * The image file's own width in px, when known: given by the media library,
48
+ * measured by the editor when the author sets the URL, or read by an
49
+ * importer (from MJML, the hero's `background-width`, which may be the box's
50
+ * size rather than the file's). Only the ratio with `naturalHeight` is used:
51
+ * a section hero with `height: "image"` keeps its box at that shape. Both or
52
+ * neither; one without the other reads as unknown.
53
+ */
54
+ naturalWidth?: number;
55
+ /**
56
+ * The image file's own height in px, when known; it pairs with
57
+ * `naturalWidth`, and only their ratio is used. Both or neither.
58
+ */
59
+ naturalHeight?: number;
34
60
  }
35
61
 
36
62
  declare type BackgroundPositionX = "left" | "center" | "right";
@@ -79,6 +105,33 @@ export declare interface BlockDefaults {
79
105
 
80
106
  declare type BlockDefaultsFor<T> = Partial<Omit<T, "id" | "type">>;
81
107
 
108
+ /** A block one session holds. */
109
+ export declare interface BlockLock {
110
+ blockId: string;
111
+ holder: BlockLockHolder;
112
+ /**
113
+ * ISO 8601. Renewals aren't broadcast, so another session's lock is dropped
114
+ * when it is released or its session leaves, never by this time.
115
+ */
116
+ expiresAt: string;
117
+ }
118
+
119
+ /** Who holds a lock. */
120
+ export declare interface BlockLockHolder {
121
+ sessionId: string;
122
+ type: "user" | "guest" | "mcp";
123
+ /** The user id, or `guest:{sessionId}`. */
124
+ id: string;
125
+ name: string;
126
+ color: string;
127
+ }
128
+
129
+ /** Where a block sits: `null` is the top level, otherwise a section column. */
130
+ export declare type BlockParent = null | {
131
+ sectionId: string;
132
+ column: number;
133
+ };
134
+
82
135
  declare interface BlockStyles {
83
136
  padding: SpacingValue;
84
137
  backgroundColor?: string;
@@ -147,25 +200,103 @@ declare interface ButtonBlock extends BaseBlock {
147
200
  align: "left" | "center" | "right";
148
201
  }
149
202
 
150
- declare interface CollaborationConfig {
151
- enabled: boolean;
152
- onCollaboratorJoined?: (collaborator: Collaborator) => void;
153
- onCollaboratorLeft?: (collaborator: Collaborator) => void;
154
- onBlockLocked?: (event: {
155
- blockId: string;
156
- collaborator: Collaborator;
157
- }) => void;
158
- onBlockUnlocked?: (event: {
159
- blockId: string;
160
- collaborator: Collaborator;
161
- }) => void;
162
- }
163
-
164
- declare interface Collaborator {
165
- id: string;
203
+ /** Who made a change. */
204
+ export declare interface CollaborationActor {
205
+ type: "user" | "guest" | "mcp" | "api";
206
+ /**
207
+ * The user id, `guest:{sessionId}` for a guest, `null` for `api`. For `mcp`,
208
+ * the id of the user the agent acts for.
209
+ */
210
+ id: string | null;
211
+ /** For `mcp`, the name of the user the agent acts for. */
212
+ name: string;
213
+ /** `null` when no editor session made the change (`api`, `mcp`). */
214
+ sessionId: string | null;
215
+ /**
216
+ * For `mcp` only: the agent's name (`Claude`, `Cursor`, …). The editor names
217
+ * it in the notice it shows for the batch ("Claude for Ada changed 3
218
+ * blocks"), as text. A backend that lets agents edit sends it with every
219
+ * agent batch, broadcast and catch-up alike.
220
+ */
221
+ client?: string;
222
+ }
223
+
224
+ /** Why a backend refused a batch or a lock. */
225
+ export declare type CollaborationConflictCode = OperationErrorCode | "lock_lost" | "content_too_large";
226
+
227
+ /** The realtime connection, as the editor shows it. */
228
+ export declare type CollaborationConnectionState = "connected" | "reconnecting" | "offline";
229
+
230
+ /** What a backend calls while an editor has joined a template. */
231
+ export declare interface CollaborationHandlers {
232
+ /** Another session's batch, or one this session can't attribute to itself. */
233
+ onBatch(batch: RevisionedBatch): void;
234
+ /**
235
+ * The content changed in a way batches don't describe: fetch it again.
236
+ * `actor` is who changed it, when the backend knows: the editor names an
237
+ * agent's re-sync (`type: "mcp"`) in a notice ("Claude for Ada updated the
238
+ * template").
239
+ */
240
+ onResync(revision: number, actor?: CollaborationActor): void;
241
+ onLock(lock: BlockLock): void;
242
+ onUnlock(blockId: string, sessionId: string): void;
243
+ /** Everyone with the template open, this session included. */
244
+ onMembers(members: CollaborationMember[]): void;
245
+ onConnectionChange(state: CollaborationConnectionState): void;
246
+ }
247
+
248
+ /** What {@link CollaborationProvider.join} resolves with. */
249
+ export declare interface CollaborationJoin {
250
+ /** The template's current revision. */
251
+ revision: number;
252
+ /** Unexpired locks. */
253
+ locks: BlockLock[];
254
+ /** Everyone with the template open, this session included; empty without presence. */
255
+ members: CollaborationMember[];
256
+ /** Stop receiving events for this template. */
257
+ leave(): void;
258
+ }
259
+
260
+ /** One editor session with the template open. */
261
+ export declare interface CollaborationMember {
262
+ sessionId: string;
263
+ /** `null` for a guest. */
264
+ userId: string | null;
166
265
  name: string;
266
+ type: "user" | "guest";
267
+ avatarUrl?: string;
268
+ /** A CSS colour the backend picks, so it is the same on every screen. */
167
269
  color: string;
168
- selectedBlockId: string | null;
270
+ }
271
+
272
+ /**
273
+ * The bring-your-own collaboration contract: ordered operations, presence and
274
+ * block locks over your backend. Templatical Cloud is one implementation.
275
+ *
276
+ * `join` may be called again for the template already joined, after a
277
+ * reconnect: answer with the current revision, locks and members without
278
+ * subscribing twice.
279
+ *
280
+ * The three lock methods are optional together: a backend without them gets
281
+ * ordered operations and no locks.
282
+ */
283
+ export declare interface CollaborationProvider {
284
+ join(templateId: string, session: {
285
+ sessionId: string;
286
+ }, handlers: CollaborationHandlers): Promise<CollaborationJoin>;
287
+ submit(templateId: string, batch: OperationBatch): Promise<{
288
+ revision: number;
289
+ }>;
290
+ operationsAfter(templateId: string, revision: number): Promise<OperationsAfterResult>;
291
+ acquireLock?(templateId: string, blockId: string): Promise<BlockLock>;
292
+ renewLock?(templateId: string, blockId: string): Promise<BlockLock>;
293
+ releaseLock?(templateId: string, blockId: string): Promise<void>;
294
+ }
295
+
296
+ /** What `onRemoteChange` reports: a batch another session made. */
297
+ export declare interface CollaborationRemoteChange {
298
+ actor: CollaborationActor;
299
+ ops: Operation[];
169
300
  }
170
301
 
171
302
  export declare interface ColorsConfig {
@@ -675,6 +806,16 @@ declare interface DataSourceFetchContext {
675
806
  blockId: string;
676
807
  }
677
808
 
809
+ /** Delete a block. Deleting a section deletes its children with it. */
810
+ declare interface DeleteBlockOperation {
811
+ op: "deleteBlock";
812
+ blockId: string;
813
+ /** The whole current block, children included, compared exactly. */
814
+ expect?: {
815
+ block: Block;
816
+ };
817
+ }
818
+
678
819
  declare interface DisplayCondition {
679
820
  label: string;
680
821
  before: string;
@@ -781,6 +922,9 @@ export declare function getSupportedLocales(): string[];
781
922
 
782
923
  declare type HeadingLevel = 1 | 2 | 3 | 4;
783
924
 
925
+ /** Where a hero's content sits in its box. */
926
+ declare type HeroVerticalAlign = "top" | "middle" | "bottom";
927
+
784
928
  declare interface HtmlBlock extends BaseBlock {
785
929
  type: "html";
786
930
  content: string;
@@ -810,6 +954,15 @@ declare interface ImageBlock extends BaseBlock {
810
954
  * clients don't support `object-fit`.
811
955
  */
812
956
  height?: number;
957
+ /**
958
+ * The image file's own size in px, when known: given by the media library,
959
+ * read by an importer, or measured in the editor during an edit. Both or
960
+ * neither; one without the other reads as unknown. It drives the editor's
961
+ * aspect-ratio lock and is never rendered. Cleared when `src` changes
962
+ * without a new size alongside it.
963
+ */
964
+ naturalWidth?: number;
965
+ naturalHeight?: number;
813
966
  align: "left" | "center" | "right";
814
967
  /**
815
968
  * Corner radius in px. Omitted/0 = square corners. A radius of at least half
@@ -1008,11 +1161,6 @@ export declare interface LogicTagsConfig {
1008
1161
  onRequest?: () => Promise<LogicTag | LogicPair | null>;
1009
1162
  }
1010
1163
 
1011
- declare interface McpConfig {
1012
- enabled: boolean;
1013
- onOperation?: (payload: TemplateOperationPayload) => void;
1014
- }
1015
-
1016
1164
  /**
1017
1165
  * One file in a media library — the row `list` returns and `create` persists.
1018
1166
  *
@@ -1310,6 +1458,13 @@ export declare interface MediaRequestContext {
1310
1458
  declare interface MediaResult {
1311
1459
  url: string;
1312
1460
  alt?: string;
1461
+ /**
1462
+ * The file's own size in px, when the source knows it. An image block stores
1463
+ * it as `naturalWidth` / `naturalHeight` for its aspect-ratio lock, and a
1464
+ * section's background image for a hero's shape. Both or neither.
1465
+ */
1466
+ width?: number;
1467
+ height?: number;
1313
1468
  }
1314
1469
 
1315
1470
  /**
@@ -1436,9 +1591,58 @@ export declare interface MergeTagsConfig {
1436
1591
  autocomplete?: boolean;
1437
1592
  }
1438
1593
 
1594
+ /**
1595
+ * Move a block to `parent`, after the sibling `after` (`null`: first). The
1596
+ * sibling list is the target container with the moved block taken out.
1597
+ */
1598
+ declare interface MoveBlockOperation {
1599
+ op: "moveBlock";
1600
+ blockId: string;
1601
+ parent: BlockParent;
1602
+ after: string | null;
1603
+ /**
1604
+ * The block's current position: its parent and its previous sibling. A key
1605
+ * left out counts as `null`.
1606
+ */
1607
+ expect?: {
1608
+ parent: BlockParent;
1609
+ after: string | null;
1610
+ };
1611
+ }
1612
+
1439
1613
  /** Function type for media browser requests, used by both OSS and Cloud editors. */
1440
1614
  export declare type OnRequestMedia = (context?: MediaRequestContext) => Promise<MediaResult | null>;
1441
1615
 
1616
+ /**
1617
+ * One change to a template, in the vocabulary the editor, the CLI's `edit`
1618
+ * command, collaboration backends and Templatical Cloud share. Positions are
1619
+ * anchored to a sibling rather than an index, so an operation means the same
1620
+ * thing after someone else's change lands first.
1621
+ */
1622
+ export declare type Operation = AddBlockOperation | MoveBlockOperation | DeleteBlockOperation | UpdateBlockOperation | UpdateSettingsOperation | SetContentOperation;
1623
+
1624
+ /** A batch an editor submits. */
1625
+ export declare interface OperationBatch {
1626
+ /** A UUID the editor generates; resubmitting the same id applies it once. */
1627
+ batchId: string;
1628
+ /** The last revision the editor had confirmed when it sent the batch. */
1629
+ baseRevision: number;
1630
+ /** 1–100 operations, applied in order and all or nothing. */
1631
+ ops: Operation[];
1632
+ }
1633
+
1634
+ /** Why {@link applyOperations} refused a batch. */
1635
+ declare type OperationErrorCode = "block_exists" | "block_missing" | "anchor_missing" | "precondition_failed" | "lock_held" | "locked_by_others" | "invalid_operation";
1636
+
1637
+ /** What {@link CollaborationProvider.operationsAfter} resolves with. */
1638
+ export declare type OperationsAfterResult = {
1639
+ revision: number;
1640
+ batches: RevisionedBatch[];
1641
+ } | {
1642
+ revision: number;
1643
+ resync: true;
1644
+ };
1645
+
1442
1646
  declare interface ParagraphBlock extends BaseBlock {
1443
1647
  type: "paragraph";
1444
1648
  content: string;
@@ -1597,6 +1801,15 @@ export declare type ResolveImageUrl = (src: string) => string | null | Promise<s
1597
1801
  */
1598
1802
  declare type ResolvePreview = (context: PreviewResolveContext) => Promise<TemplateContent>;
1599
1803
 
1804
+ /** A batch as the backend applied it, at the revision it produced. */
1805
+ export declare interface RevisionedBatch {
1806
+ revision: number;
1807
+ batchId: string;
1808
+ actor: CollaborationActor;
1809
+ ops: Operation[];
1810
+ createdAt?: string;
1811
+ }
1812
+
1600
1813
  /**
1601
1814
  * Per-rule severity override. Set a rule to `'off'` to disable it.
1602
1815
  * Keys are the full prefixed rule IDs (`a11y.*`, `structure.*`, `link.*`)
@@ -1800,6 +2013,14 @@ export declare interface SavedBlocksProvider extends SavedBlocksOptions {
1800
2013
  delete: false | ((id: string) => Promise<void>);
1801
2014
  }
1802
2015
 
2016
+ /**
2017
+ * The `code` Templatical Cloud sends in a failed response's
2018
+ * `{ message, code }` body. The named members are the codes Cloud sends
2019
+ * today; any other string passes through, so a code Cloud adds later reaches
2020
+ * `SdkError.code` without an SDK release.
2021
+ */
2022
+ export declare type SdkErrorCode = "invalid_credentials" | "token_invalid" | "token_revoked" | "browser_not_allowed" | "token_scope_mismatch" | "limit_reached" | "feature_unavailable" | "not_found" | "user_required" | "not_author" | "mcp_not_allowed" | "content_too_large" | "recipient_not_allowed" | "send_failed" | (string & {});
2023
+
1803
2024
  declare interface SectionBlock extends BaseBlock {
1804
2025
  type: "section";
1805
2026
  columns: ColumnLayout;
@@ -1827,10 +2048,35 @@ declare interface SectionBlock extends BaseBlock {
1827
2048
  * is its fallback.
1828
2049
  */
1829
2050
  backgroundImage?: BackgroundImage;
2051
+ /**
2052
+ * Draws a one-column section with a background image as an `mj-hero`: the
2053
+ * image fills the box and the content sits on top. Ignored (the section
2054
+ * renders as a regular one, and the `structure` linter says why) with more
2055
+ * than one column, without an image, or with `height: "image"` and no
2056
+ * image size.
2057
+ */
2058
+ hero?: SectionHero;
1830
2059
  /** Optional outer frame (rendered as an `mj-wrapper` around the section). */
1831
2060
  wrapper?: SectionWrapper;
1832
2061
  }
1833
2062
 
2063
+ /**
2064
+ * Draws a one-column section as an MJML `mj-hero`: its background image
2065
+ * fills the box (always `cover`, never tiled) and the content sits on top of
2066
+ * it. A hero applies only to a one-column section with a background image;
2067
+ * otherwise the section renders as a regular one.
2068
+ */
2069
+ declare interface SectionHero {
2070
+ /**
2071
+ * `"image"` makes the box as tall as the image drawn across its desktop
2072
+ * width, and needs the image's size on `backgroundImage.naturalWidth` /
2073
+ * `naturalHeight`; a phone keeps that height and crops the image's sides.
2074
+ * A number is the box's fixed height in px, padding included.
2075
+ */
2076
+ height: "image" | number;
2077
+ verticalAlign: HeroVerticalAlign;
2078
+ }
2079
+
1834
2080
  /**
1835
2081
  * Optional outer frame for a section. When present, the section is rendered
1836
2082
  * inside an `mj-wrapper` — a band (its own background + padding) that frames
@@ -1854,6 +2100,15 @@ declare interface SelectOption {
1854
2100
  value: string;
1855
2101
  }
1856
2102
 
2103
+ /**
2104
+ * Replace `blocks` and `settings` wholesale. The engine checks only that
2105
+ * `blocks` is an array and `settings` an object.
2106
+ */
2107
+ declare interface SetContentOperation {
2108
+ op: "setContent";
2109
+ content: TemplateContent;
2110
+ }
2111
+
1857
2112
  declare type Severity = "error" | "warning" | "info" | "off";
1858
2113
 
1859
2114
  /**
@@ -1982,6 +2237,13 @@ export declare interface Template {
1982
2237
  */
1983
2238
  updatedAt?: string;
1984
2239
  content: TemplateContent;
2240
+ /**
2241
+ * The collaboration revision `content` is at. Required from `load` when a
2242
+ * collaboration provider is configured: the editor starts counting from it.
2243
+ */
2244
+ revision?: number;
2245
+ /** Unexpired block locks, when the store has a collaboration backend. */
2246
+ locks?: BlockLock[];
1985
2247
  }
1986
2248
 
1987
2249
  export declare interface TemplateContent {
@@ -1991,14 +2253,6 @@ export declare interface TemplateContent {
1991
2253
 
1992
2254
  export declare type TemplateDefaults = Partial<TemplateSettings>;
1993
2255
 
1994
- declare type TemplateOperation = "addBlock" | "updateBlock" | "deleteBlock" | "moveBlock" | "updateSettings" | "setContent" | "updateBlockStyle";
1995
-
1996
- declare interface TemplateOperationPayload {
1997
- operation: TemplateOperation;
1998
- data: Record<string, unknown>;
1999
- timestamp: number;
2000
- }
2001
-
2002
2256
  /**
2003
2257
  * Partial patch for {@link TemplatesProvider.save}. Only the keys present are
2004
2258
  * being changed, so a rename can travel without content and vice versa.
@@ -2348,8 +2602,6 @@ export declare interface TemplaticalCloudEditorConfig {
2348
2602
  */
2349
2603
  smallScreenNotice?: boolean;
2350
2604
  ai?: AiConfig | false;
2351
- collaboration?: CollaborationConfig;
2352
- mcp?: McpConfig;
2353
2605
  blockDefaults?: BlockDefaults;
2354
2606
  templateDefaults?: TemplateDefaults;
2355
2607
  /**
@@ -2452,9 +2704,11 @@ export declare interface TemplaticalCloudEditorConfig {
2452
2704
  * Allowlist + order for the block palette. When non-empty, only the listed
2453
2705
  * block types appear in the sidebar palette, in this order; unlisted
2454
2706
  * built-ins are hidden. Built-ins use their bare type (`'image'`), custom
2455
- * blocks the `custom:`-prefixed type (`'custom:qrcode'`). Unknown entries are
2456
- * warned and skipped. Omit it or pass `[]` for the full default palette. See
2457
- * `paletteBlocks` on the OSS editor config for details.
2707
+ * blocks the `custom:`-prefixed type (`'custom:qrcode'`). `'hero'` is a
2708
+ * shortcut, not a block type: it inserts a one-column section in hero mode
2709
+ * with starter content. Unknown entries are warned and skipped. Omit it or
2710
+ * pass `[]` for the full default palette. See `paletteBlocks` on the OSS
2711
+ * editor config for details.
2458
2712
  */
2459
2713
  paletteBlocks?: string[];
2460
2714
  /**
@@ -2959,6 +3213,9 @@ export declare interface TemplaticalEditorConfig {
2959
3213
  * paletteBlocks: ['section', 'title', 'image', 'custom:qrcode', 'button']
2960
3214
  * ```
2961
3215
  *
3216
+ * `'hero'` is a shortcut, not a block type: it inserts a one-column section
3217
+ * in hero mode with starter content.
3218
+ *
2962
3219
  * Unknown entries — a typo, an unregistered custom block, or `countdown`
2963
3220
  * outside a Cloud plan — are logged with a warning and skipped. Filtering
2964
3221
  * the palette never affects rendering: existing content using a hidden
@@ -3155,11 +3412,48 @@ export declare interface TemplaticalEditorConfig {
3155
3412
  * read rather than immediately.
3156
3413
  */
3157
3414
  comments?: CommentsProvider;
3415
+ /**
3416
+ * Real-time collaboration over your backend: ordered operations, presence and
3417
+ * block locks.
3418
+ *
3419
+ * ```ts
3420
+ * const editor = await init({
3421
+ * container,
3422
+ * templates,
3423
+ * collaboration: {
3424
+ * join: (templateId, session, handlers) => myRealtime.join(templateId, session, handlers),
3425
+ * submit: (templateId, batch) => post(`/api/templates/${templateId}/operations`, batch),
3426
+ * operationsAfter: (templateId, revision) =>
3427
+ * get(`/api/templates/${templateId}/operations?after=${revision}`),
3428
+ * acquireLock: (templateId, blockId) => post(`/api/templates/${templateId}/locks`, { blockId }),
3429
+ * renewLock: (templateId, blockId) => put(`/api/templates/${templateId}/locks/${blockId}`),
3430
+ * releaseLock: (templateId, blockId) => del(`/api/templates/${templateId}/locks/${blockId}`),
3431
+ * },
3432
+ * });
3433
+ * await editor.load("tpl_123");
3434
+ * ```
3435
+ *
3436
+ * **Needs `templates`**: a session joins a loaded template, and `load` must
3437
+ * return the template's `revision`. With a collaboration provider, every edit
3438
+ * reaches your backend as an operation through `submit`, so `templates.save`
3439
+ * receives only renames, and undo and redo send inverse operations that your
3440
+ * backend can refuse. Selecting a block takes its lock; the three lock methods
3441
+ * are optional together. Apply operations on your server with
3442
+ * `applyOperations` from `@templatical/types`.
3443
+ *
3444
+ * **Omitted by default.** See the Collaboration page under Connect your backend.
3445
+ */
3446
+ collaboration?: CollaborationProvider;
3447
+ /**
3448
+ * A batch of edits from another session landed on the canvas: who made it
3449
+ * (`actor`) and the operations. Not called for this editor's own edits, and
3450
+ * not for a re-sync that reloads the whole template.
3451
+ */
3452
+ onRemoteChange?: (change: CollaborationRemoteChange) => void;
3158
3453
  /**
3159
3454
  * Who is using the editor — needed by any feature that attributes work to a
3160
- * person. Today that is {@link comments}; collaboration presence will want the
3161
- * same answer, which is why this is a top-level key rather than part of the
3162
- * comments provider.
3455
+ * person: {@link comments}, and the collaborator bar, which leaves this user's
3456
+ * own sessions out. It is a top-level key rather than part of either provider.
3163
3457
  *
3164
3458
  * ```ts
3165
3459
  * init({ container, user: { id: "u_7", name: "Ada Lovelace" } });
@@ -3371,6 +3665,30 @@ export declare type UiTheme = "light" | "dark" | "auto";
3371
3665
  */
3372
3666
  export declare function unmount(): void;
3373
3667
 
3668
+ /**
3669
+ * Replace top-level keys of a block (`set`, a `styles` object included) and
3670
+ * remove others (`unset`). `id`, `type` and `children` can't be touched, and
3671
+ * a section's `columns` can't be unset. On a section, `set.columns` resizes
3672
+ * `children` to the layout's column count.
3673
+ */
3674
+ declare interface UpdateBlockOperation {
3675
+ op: "updateBlock";
3676
+ blockId: string;
3677
+ set?: Record<string, unknown>;
3678
+ unset?: string[];
3679
+ /** Expected current values by key; `null` matches `null` or an absent key. */
3680
+ expect?: Record<string, unknown>;
3681
+ }
3682
+
3683
+ /** Replace and remove top-level keys of `content.settings`. */
3684
+ declare interface UpdateSettingsOperation {
3685
+ op: "updateSettings";
3686
+ set?: Partial<TemplateSettings>;
3687
+ unset?: string[];
3688
+ /** Expected current values by key; `null` matches `null` or an absent key. */
3689
+ expect?: Record<string, unknown>;
3690
+ }
3691
+
3374
3692
  /** Throw if `layout` does not contain exactly one legal slot. */
3375
3693
  export declare function validateLayout(layout: TemplateContent): void;
3376
3694
 
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-DziKp5iU.js";
1
+ import { t as e } from "./createLucideIcon-BcP1sjdp.js";
2
2
  var t = e({
3
3
  name: "info",
4
4
  size: 24,
@@ -23,7 +23,6 @@ var e = {
23
23
  daysAgo: "{days}日前"
24
24
  },
25
25
  history: {
26
- collabWarning: "元に戻すと、共同編集者の最近の変更にも影響する場合があります",
27
26
  undo: "元に戻す",
28
27
  redo: "やり直す"
29
28
  },
@@ -42,6 +41,7 @@ var e = {
42
41
  },
43
42
  blocks: {
44
43
  section: "セクション",
44
+ hero: "ヒーロー",
45
45
  image: "画像",
46
46
  title: "見出し",
47
47
  paragraph: "テキスト",
@@ -131,7 +131,9 @@ var e = {
131
131
  borderRadius: "角の丸み",
132
132
  wrapperEnable: "外枠を追加",
133
133
  wrapperLayoutConflict: "このエディタはすでにメール全体に外枠を付けています。このセクションに外枠を追加することはできないため、プレビューと出力は失敗します。",
134
- stackOnMobile: "モバイルでは縦に並べる"
134
+ stackOnMobile: "モバイルでは縦に並べる",
135
+ heroNeedsOneColumn: "ヒーローモードには1列が必要です。列が複数の場合、このセクションは通常のセクションとして表示されます。",
136
+ heroAddImage: "背景画像を追加"
135
137
  },
136
138
  linkDialog: {
137
139
  editLink: "リンクを編集",
@@ -173,6 +175,9 @@ var e = {
173
175
  height: "高さ",
174
176
  heightAuto: "自動",
175
177
  heightCustom: "カスタム",
178
+ lockAspectRatio: "画像の縦横比を維持",
179
+ unlockAspectRatio: "幅と高さを個別に設定",
180
+ heightCapped: "列の幅に合わせて制限(高さ {height}px)",
176
181
  borderRadius: "角の丸み",
177
182
  linkUrl: "リンク先URL",
178
183
  openInNewTab: "新しいタブで開く",
@@ -396,6 +401,16 @@ var e = {
396
401
  backgroundPositionBottomCenter: "中央下",
397
402
  backgroundPositionBottomRight: "右下",
398
403
  backgroundRepeat: "画像を繰り返す",
404
+ heroHeight: "高さ",
405
+ heroHeightFit: "内容に合わせる",
406
+ heroHeightImage: "画像に合わせる",
407
+ heroHeightFixed: "固定",
408
+ heroAlign: "コンテンツの位置",
409
+ heroAlignTop: "上",
410
+ heroAlignMiddle: "中央",
411
+ heroAlignBottom: "下",
412
+ heroMatchImageMergeTag: "「画像に合わせる」には画像の直接URLが必要です。差し込み項目からはサイズを読み取れません。",
413
+ heroSizeUnknown: "この画像のサイズはまだ分からないため、セクションは内容の高さで表示されます。",
399
414
  display: "表示",
400
415
  showOnDesktop: "デスクトップで表示",
401
416
  showOnMobile: "モバイルで表示",
@@ -577,6 +592,29 @@ var e = {
577
592
  missingBlock: "ブロックが見つかりません",
578
593
  saveTemplateFirst: "このブロックにコメントする前にテンプレートを保存してください。"
579
594
  },
595
+ collaboration: {
596
+ people: "このテンプレートを編集中のユーザー",
597
+ guest: "ゲスト",
598
+ connected: "接続中",
599
+ reconnecting: "再接続しています…",
600
+ offline: "オフライン",
601
+ editing: "{name}さんが編集中",
602
+ selectionRefused: "{name}さんがこのブロックを編集中です。",
603
+ editRefused: "変更は保存されませんでした。先に他のユーザーがこの部分を変更しています。",
604
+ editRefusedLocked: "変更は保存されませんでした。{name}さんがそのブロックを編集中です。",
605
+ editTooLarge: "変更は保存されませんでした。サイズが大きすぎます。",
606
+ undoSkipped: "その操作は元に戻せませんでした。その後、他のユーザーが変更しています。",
607
+ replaceRefused: "他のユーザーが編集中のため、テンプレートを置き換えられません:{names}",
608
+ reconnectingNotice: "再接続しています… 編集はそのまま続けられます。",
609
+ dismiss: "閉じる",
610
+ anAgent: "エージェント",
611
+ agentChangedBlock: "{name}さんの{client}がブロックを変更しました。",
612
+ agentChangedBlocks: "{name}さんの{client}が{count}個のブロックを変更しました。",
613
+ agentChangedSettings: "{name}さんの{client}がテンプレートの設定を変更しました。",
614
+ agentChangedBlockAndSettings: "{name}さんの{client}がブロックとテンプレートの設定を変更しました。",
615
+ agentChangedBlocksAndSettings: "{name}さんの{client}が{count}個のブロックとテンプレートの設定を変更しました。",
616
+ agentUpdatedTemplate: "{name}さんの{client}がテンプレートを更新しました。"
617
+ },
580
618
  versionHistory: {
581
619
  tooltip: "バージョン履歴",
582
620
  dropdownTitle: "バージョン履歴",
@@ -659,5 +697,3 @@ var e = {
659
697
  };
660
698
  //#endregion
661
699
  export { e as default };
662
-
663
- //# sourceMappingURL=ja-CUgR3mV0.js.map
@@ -1,4 +1,4 @@
1
- import { $ as e, S as t } from "./vue.runtime.esm-bundler-CAzmrXdD.js";
1
+ import { $ as e, S as t } from "./vue.runtime.esm-bundler-DV0Wx4r_.js";
2
2
  //#region src/keys.ts
3
3
  var n = Symbol("translations"), r = Symbol("editor"), i = Symbol("history"), a = Symbol("blockActions"), o = Symbol("conditionPreview"), s = Symbol("appliesConditionFilter"), c = Symbol("fontsManager"), l = Symbol("themeStyles"), u = Symbol("tplUiTheme"), d = Symbol("tplUiLocale"), f = Symbol("blockDefaults"), p = Symbol("blockRegistry"), m = Symbol("customBlockDefinitions"), h = Symbol("paletteBlocks"), g = Symbol("htmlBlockPreview"), _ = Symbol("layout"), v = Symbol("sectionWrapper"), y = Symbol("colors"), b = Symbol("templateSettingsFields"), x = Symbol("customBlockStylesheets"), S = Symbol("mergeTags"), C = e([]), w = Symbol("mergeTagSyntax"), T = Symbol("onRequestMergeTag"), E = Symbol("mergeTagAutocomplete"), D = Symbol("mergeTagShowRawValue"), ee = Symbol("mergeTagSampleMode"), O = Symbol("useMergeTagSamples"), k = Symbol("resolvePreview"), A = Symbol("previewResolution"), j = Symbol("mergeTagPicker"), M = Symbol("mergeTagRequesting"), N = Symbol("logicTagRequesting"), P = Symbol("logicTags"), F = Symbol("logicPairs"), I = Symbol("logicPicker"), L = Symbol("onRequestLogic"), R = Symbol("onRequestMedia"), z = Symbol("canDropMedia"), B = Symbol("imageUrlResolver"), V = Symbol("displayConditions"), H = Symbol("allowCustomConditions"), U = Symbol("capabilities"), W = Symbol("keyboardReorder"), G = Symbol("templateLint"), K = Symbol("editorRoot"), q = Symbol("popoverRoot"), J = Symbol("savedBlocks"), Y = Symbol("authManager"), X = Symbol("aiConfig"), Z = Symbol("scoring"), Q = Symbol("cloudTranslations");
4
4
  function $(e, n) {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-DziKp5iU.js";
1
+ import { t as e } from "./createLucideIcon-BcP1sjdp.js";
2
2
  var t = e({
3
3
  name: "link",
4
4
  size: 24,
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-DziKp5iU.js";
1
+ import { t as e } from "./createLucideIcon-BcP1sjdp.js";
2
2
  var t = e({
3
3
  name: "list",
4
4
  size: 24,
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-DziKp5iU.js";
1
+ import { t as e } from "./createLucideIcon-BcP1sjdp.js";
2
2
  var t = e({
3
3
  name: "loader-circle",
4
4
  size: 24,
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-DziKp5iU.js";
1
+ import { t as e } from "./createLucideIcon-BcP1sjdp.js";
2
2
  var t = e({
3
3
  name: "message-circle",
4
4
  size: 24,