@templatical/editor 0.61.0 → 0.62.1

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 (231) hide show
  1. package/LICENSE +21 -109
  2. package/README.md +3 -3
  3. package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
  4. package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
  5. package/dist/{AiChatPanel-DF5TvO9H.js → AiChatPanel-C82fJozf.js} +3 -4
  6. package/dist/{AiPanels-zRqC5DIP.js → AiPanels-sam_GMNs.js} +1 -1
  7. package/dist/{AiRewriteMenu-CmZKTO-O.js → AiRewriteMenu-BG3-appN.js} +3 -4
  8. package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
  9. package/dist/{BlockPreviewCanvas-knSyWaCP.js → BlockPreviewCanvas-oxkPHm78.js} +6 -6
  10. package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
  11. package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
  12. package/dist/{CommentsPanel-BMYvXRKK.js → CommentsPanel-BSt22Zw9.js} +1 -1
  13. package/dist/{cdn/chunks/CommentsSidebar-BEiOQ_zT.js → CommentsSidebar-C8qbxjyN.js} +228 -205
  14. package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
  15. package/dist/{CountdownToolbar-BprSuPJk.js → CountdownToolbar-CJbPEVV5.js} +4 -4
  16. package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
  17. package/dist/{LanguageMenu-CkGqLYjf.js → LanguageMenu-8yH1Ypum.js} +5 -6
  18. package/dist/{LocaleNotices-D0be8ovO.js → LocaleNotices-24UYFxo2.js} +7 -8
  19. package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
  20. package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
  21. package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
  22. package/dist/{MergeTagTextarea-BjHlamJv.js → MergeTagTextarea-B86MPY89.js} +3 -4
  23. package/dist/{ParagraphEditor-Ctu4fSsl.js → ParagraphEditor-B2BpfcoY.js} +78 -79
  24. package/dist/{RestoreVersionDialog-DvZoTJVa.js → RestoreVersionDialog-BF9Wyma8.js} +2 -2
  25. package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
  26. package/dist/{SaveBlockDialog-DHfT-Tpx.js → SaveBlockDialog-BZQkihki.js} +23 -24
  27. package/dist/{SavedBlocksBrowserModal-BjJuuXQv.js → SavedBlocksBrowserModal-CQNnmeGv.js} +8 -9
  28. package/dist/{SavedBlocksPanels-D6eiMQZ3.js → SavedBlocksPanels-n-IdFD6E.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-BkgCDSXe.js → SavedBlocksPickBar-BtQgXlKF.js} +2 -2
  30. package/dist/{TemplateSettings-DQAbNsiS.js → TemplateSettings-Z-i-_xF5.js} +19 -20
  31. package/dist/{TestEmailModal-m_AEa36T.js → TestEmailModal-IeP1EsJ5.js} +17 -18
  32. package/dist/{TestEmailPanel-OApkuaVd.js → TestEmailPanel-DVxTZJ4H.js} +1 -1
  33. package/dist/{TitleEditor-Cwdtfk15.js → TitleEditor-D1UDQaHM.js} +8 -9
  34. package/dist/{Toolbar-D_T55elL.js → Toolbar-bwAdFK4A.js} +308 -310
  35. package/dist/{TplModal-2MKm5y6r.js → TplModal-BvUeHkqB.js} +4 -4
  36. package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
  37. package/dist/{VersionHistoryPanels-CCM0IQBg.js → VersionHistoryPanels-rkOqdUem.js} +1 -1
  38. package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
  39. package/dist/{WrapperBlock-BZl10HLy.js → WrapperBlock-CvEmjNKs.js} +4 -4
  40. package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
  41. package/dist/bundle-stats.json +8 -8
  42. package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
  43. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
  44. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
  46. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js → AiChatPanel-CEDr_x8G.js} +4 -5
  48. package/dist/cdn/chunks/{AiChatPanel-BYAsgmoC.js.map → AiChatPanel-CEDr_x8G.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiPanels-MY_YPls8.js → AiPanels-qJgLTYPs.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-MY_YPls8.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js → AiRewriteMenu-DoZh5Q74.js} +4 -5
  52. package/dist/cdn/chunks/{AiRewriteMenu-BSePiXe_.js.map → AiRewriteMenu-DoZh5Q74.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
  54. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js → BlockPreviewCanvas-BrxWnLLK.js} +8 -8
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-B153A3hu.js.map → BlockPreviewCanvas-BrxWnLLK.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
  58. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
  59. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
  60. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js → CommentsPanel-D-D2qsS6.js} +2 -2
  62. package/dist/cdn/chunks/{CommentsPanel-R27fqh9O.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
  63. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js +479 -0
  64. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
  65. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
  66. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
  67. package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js → CountdownToolbar-DaGxwKfG.js} +5 -5
  68. package/dist/cdn/chunks/{CountdownToolbar-DOhXnbsq.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
  69. package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
  70. package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
  71. package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js → LanguageMenu-CyWfHmkP.js} +6 -7
  72. package/dist/cdn/chunks/{LanguageMenu-B6kt8SgX.js.map → LanguageMenu-CyWfHmkP.js.map} +1 -1
  73. package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js → LocaleNotices-DSfOyyyf.js} +8 -9
  74. package/dist/cdn/chunks/{LocaleNotices-Bleg4gTu.js.map → LocaleNotices-DSfOyyyf.js.map} +1 -1
  75. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
  76. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
  78. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
  80. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js → MergeTagTextarea-B_IFeWfZ.js} +4 -5
  82. package/dist/cdn/chunks/{MergeTagTextarea-DGDv-pdn.js.map → MergeTagTextarea-B_IFeWfZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js → ParagraphEditor-DUbU-eqS.js} +135 -136
  84. package/dist/cdn/chunks/{ParagraphEditor-D0q36Myd.js.map → ParagraphEditor-DUbU-eqS.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js → RestoreVersionDialog-hDWvu1Fk.js} +3 -3
  86. package/dist/cdn/chunks/{RestoreVersionDialog-CJggFdbi.js.map → RestoreVersionDialog-hDWvu1Fk.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
  88. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js → SaveBlockDialog-DVVG78vs.js} +25 -26
  90. package/dist/cdn/chunks/{SaveBlockDialog-BzES5tqd.js.map → SaveBlockDialog-DVVG78vs.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js → SavedBlocksBrowserModal-CJjVM9pN.js} +9 -10
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CLNcZcLd.js.map → SavedBlocksBrowserModal-CJjVM9pN.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js → SavedBlocksPanels-CUu9BLen.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-R0W9LElD.js.map → SavedBlocksPanels-CUu9BLen.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js → SavedBlocksPickBar-ClGm41Wt.js} +3 -3
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-JNi5Rx4V.js.map → SavedBlocksPickBar-ClGm41Wt.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js → TemplateSettings-B8Ch5ps8.js} +20 -21
  98. package/dist/cdn/chunks/{TemplateSettings-C5wsNcgX.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js → TestEmailModal-BtrjByCC.js} +16 -17
  100. package/dist/cdn/chunks/{TestEmailModal-BxIAwjww.js.map → TestEmailModal-BtrjByCC.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js → TestEmailPanel-EjyQvj_M.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-B8BsWXjE.js.map → TestEmailPanel-EjyQvj_M.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js → TitleEditor-B0SHe63R.js} +17 -18
  104. package/dist/cdn/chunks/{TitleEditor-DhcI1aRS.js.map → TitleEditor-B0SHe63R.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-Ch3h2BUs.js → Toolbar-BnTSuZQb.js} +310 -312
  106. package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
  107. package/dist/cdn/chunks/{TplModal-CPOqOxVf.js → TplModal-uqelrGih.js} +5 -5
  108. package/dist/cdn/chunks/{TplModal-CPOqOxVf.js.map → TplModal-uqelrGih.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js → VersionHistoryPanels-B1DN6c4B.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-CVrXHYxT.js.map → VersionHistoryPanels-B1DN6c4B.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
  114. package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
  115. package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js → WrapperBlock-CUuF8Ese.js} +5 -5
  116. package/dist/cdn/chunks/{WrapperBlock-B8SJ7Q4w.js.map → WrapperBlock-CUuF8Ese.js.map} +1 -1
  117. package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
  118. package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
  119. package/dist/cdn/chunks/{composables-CKXPwWo9.js → composables-CuAVj7Ex.js} +444 -464
  120. package/dist/cdn/chunks/composables-CuAVj7Ex.js.map +1 -0
  121. package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
  122. package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
  123. package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
  124. package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
  125. package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
  126. package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
  127. package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
  128. package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
  129. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-CqhrbdGN.js} +35 -18
  130. package/dist/cdn/chunks/extensions-CqhrbdGN.js.map +1 -0
  131. package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
  132. package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
  133. package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
  134. package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
  135. package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
  136. package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
  137. package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
  138. package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
  139. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  140. package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
  141. package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
  142. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
  143. package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
  144. package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
  145. package/dist/cdn/chunks/{src-Bk1LF1np.js → src-DxIDI6ZB.js} +4 -2
  146. package/dist/cdn/chunks/src-DxIDI6ZB.js.map +1 -0
  147. package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
  148. package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
  149. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
  150. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
  151. package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
  152. package/dist/cdn/chunks/{keys-ywH4jHJ2.js.map → useI18n-DwP1ksBW.js.map} +1 -1
  153. package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js → useLanguageName-CeuoO9WZ.js} +2 -2
  154. package/dist/cdn/chunks/{useLanguageName-DDhdVpqh.js.map → useLanguageName-CeuoO9WZ.js.map} +1 -1
  155. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
  156. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
  158. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
  159. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
  160. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
  161. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
  162. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
  163. package/dist/cdn/editor.css +1 -1
  164. package/dist/cdn/editor.js +877 -975
  165. package/dist/cdn/editor.js.map +1 -1
  166. package/dist/{composables-26aR45W3.js → composables-DZWtVCMq.js} +817 -837
  167. package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
  168. package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
  169. package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
  170. package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
  171. package/dist/{extensions-zHf8YFRw.js → extensions-DfhOxy6Z.js} +341 -324
  172. package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
  173. package/dist/index.d.ts +33 -405
  174. package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
  175. package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
  176. package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
  177. package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
  178. package/dist/style.css +1 -1
  179. package/dist/templatical-editor.js +1060 -1158
  180. package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
  181. package/dist/useI18n-B05qsAsl.js +22 -0
  182. package/dist/{useLanguageName-CEFzafHB.js → useLanguageName-CnpG7FD5.js} +1 -1
  183. package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
  184. package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
  185. package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
  186. package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
  187. package/package.json +11 -13
  188. package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
  189. package/dist/CloudPanels-BbHJHZri.js +0 -167
  190. package/dist/CommentsSidebar-_8at1Rug.js +0 -516
  191. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
  192. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
  193. package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js +0 -167
  194. package/dist/cdn/chunks/CloudPanels-Bv26_Sd8.js.map +0 -1
  195. package/dist/cdn/chunks/CommentsSidebar-BEiOQ_zT.js.map +0 -1
  196. package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
  197. package/dist/cdn/chunks/Toolbar-Ch3h2BUs.js.map +0 -1
  198. package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
  199. package/dist/cdn/chunks/composables-CKXPwWo9.js.map +0 -1
  200. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
  201. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
  202. package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
  203. package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
  204. package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
  205. package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
  206. package/dist/cdn/chunks/extensions-Bq9nXmBP.js.map +0 -1
  207. package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
  208. package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
  209. package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
  210. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
  211. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
  212. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
  213. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
  214. package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
  215. package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
  216. package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
  217. package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
  218. package/dist/cdn/chunks/src-Bk1LF1np.js.map +0 -1
  219. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
  220. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
  221. package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
  222. package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
  223. package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
  224. package/dist/de-6M4JoHoD.js +0 -19
  225. package/dist/en-FzUuJ8HW.js +0 -19
  226. package/dist/keys-B4DimcgX.js +0 -9
  227. package/dist/logger-BOu7oEtk.js +0 -24
  228. package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
  229. package/dist/pt-BR-Bp92Fc6J.js +0 -19
  230. package/dist/useCloudI18n-BnuOL1YS.js +0 -22
  231. package/dist/useI18n-Cx9W7OWb.js +0 -16
@@ -724,8 +724,7 @@ var e = {
724
724
  resolvedBy: "Résolu par {name}",
725
725
  replyOne: "{count} réponse",
726
726
  replyMany: "{count} réponses",
727
- missingBlock: "Bloc introuvable",
728
- saveTemplateFirst: "Enregistrez le modèle avant de commenter ce bloc."
727
+ missingBlock: "Bloc introuvable"
729
728
  },
730
729
  collaboration: {
731
730
  people: "Personnes qui modifient ce modèle",
@@ -955,5 +954,3 @@ var e = {
955
954
  }
956
955
  };
957
956
  export { e as default };
958
-
959
- //# sourceMappingURL=fr-CNQG7ESr.js.map
package/dist/index.d.ts CHANGED
@@ -185,8 +185,7 @@ export declare type AiOperationsResult = {
185
185
  *
186
186
  * Reject with an `SdkError` whose `code` is an `AiErrorCode` and whose
187
187
  * message the user can read. `@templatical/ai-kit/client`'s
188
- * `createHttpAiProvider` implements this over a documented REST and SSE wire;
189
- * Templatical Cloud is one backend for it.
188
+ * `createHttpAiProvider` implements this over a documented REST and SSE wire.
190
189
  */
191
190
  export declare interface AiProvider {
192
191
  chat: false | ((request: AiChatRequest, on: AiTurnHandlers, signal: AbortSignal) => Promise<AiTurnResult>);
@@ -238,7 +237,7 @@ export declare interface AiRequestBase {
238
237
  templateId: string;
239
238
  /**
240
239
  * The template as the editor has it, after it sent its pending edits. A
241
- * backend that holds the template itself (Templatical Cloud) ignores it.
240
+ * backend that holds the template itself can use its stored copy instead.
242
241
  */
243
242
  content: TemplateContent;
244
243
  /** The collaboration revision `content` is at, or `null` without collaboration. */
@@ -592,7 +591,7 @@ export declare interface CollaborationMember {
592
591
 
593
592
  /**
594
593
  * The bring-your-own collaboration contract: ordered operations, presence and
595
- * block locks over your backend. Templatical Cloud is one implementation.
594
+ * block locks over your backend.
596
595
  *
597
596
  * `join` may be called again for the template already joined, after a
598
597
  * reconnect: answer with the current revision, locks and members without
@@ -786,10 +785,8 @@ declare interface CommentsListParams {}
786
785
  /**
787
786
  * Outward notifications about the review conversation. Every member is optional.
788
787
  *
789
- * Separate from the storage methods so `initCloud()` can accept this half alone:
790
- * a comment is keyed to a template id Cloud issued and its author is signed by
791
- * the auth token, so Cloud owns the conversation. {@link CommentsProvider}
792
- * extends this, so one object satisfies both entry points.
788
+ * Separate from storage methods. {@link CommentsProvider} extends this with
789
+ * the methods for reading and writing comments.
793
790
  *
794
791
  * Each fires once per change the editor applied, after the list reflects it. A
795
792
  * handler that throws is reported through `onError` and never fails the write.
@@ -938,6 +935,11 @@ declare type ContentDirection = "ltr" | "rtl";
938
935
  /** A radius per corner, in px. */
939
936
  declare type CornerRadius = Record<BorderCorner, number>;
940
937
 
938
+ /**
939
+ * A countdown needs a server-side GIF service, which the SDK does not ship.
940
+ * The renderer emits an unrenderable marker unless `blockRenderers.countdown`
941
+ * or `render.toMjml` supplies the MJML output.
942
+ */
941
943
  declare interface CountdownBlock extends BaseBlock {
942
944
  type: "countdown";
943
945
  targetDate: string;
@@ -1009,8 +1011,8 @@ declare interface CustomBlock extends BaseBlock {
1009
1011
  renderedHtml?: string;
1010
1012
  /**
1011
1013
  * The definition's `stylesheet`, copied in when `renderedHtml` is written.
1012
- * A render provider's backend, and Cloud rendering from storage, have no
1013
- * definition to ask, so `@templatical/renderer` emits this when no
1014
+ * A render provider's backend has no definition to ask, so
1015
+ * `@templatical/renderer` emits this when no
1014
1016
  * `getCustomBlockStylesheet` resolver is passed. A resolver, when passed,
1015
1017
  * decides every type, so a stale copy never overrides a live definition.
1016
1018
  */
@@ -1323,9 +1325,6 @@ export declare interface FontsConfig {
1323
1325
  */
1324
1326
  export declare function getBaseLocale(locale: string): string;
1325
1327
 
1326
- /** List of cloud-supported locales. May be a subset of OSS locales. */
1327
- export declare function getSupportedCloudLocales(): string[];
1328
-
1329
1328
  /** List of OSS-supported locales. */
1330
1329
  export declare function getSupportedLocales(): string[];
1331
1330
 
@@ -1418,59 +1417,6 @@ declare interface ImageBlock extends BaseBlock {
1418
1417
 
1419
1418
  export declare function init(config: TemplaticalEditorConfig): Promise<TemplaticalEditor>;
1420
1419
 
1421
- /**
1422
- * Mount the editor against Templatical Cloud.
1423
- *
1424
- * **This is `init()` with Cloud's adapters filled in**, and deliberately nothing
1425
- * more. Templates, rendering and version history are providers, so Cloud's entry
1426
- * point is adapter wiring rather than a second editor:
1427
- *
1428
- * 1. Build the auth manager and complete the handshake.
1429
- * 2. Health-check the API, and fetch the plan config.
1430
- * 3. Build Cloud's adapters over that auth manager.
1431
- * 4. Delegate to `init()`.
1432
- *
1433
- * A failure in steps 1–2 **rejects**, rather than mounting an editor that shows
1434
- * an error overlay. That is the one place the wrapper is genuinely not `init()`:
1435
- * `init()` cannot fail after it mounts, and OSS should not grow the ability. A
1436
- * session that dies *later* — an auth refresh that cannot renew the token — does
1437
- * still surface as an overlay, because by then there is an editor to cover.
1438
- *
1439
- * `templates`, `comments` and `versionHistory` are all keyed to a template
1440
- * id Cloud issued, which also anchors the server-side export — a store Cloud
1441
- * never issued ids for would degrade all of them silently. Cloud therefore
1442
- * keeps each key's storage, but each key is still accepted, for its
1443
- * configuration and events:
1444
- * `templates.load`/`create`/`save`,
1445
- * `comments.list`/`create`/`update`/`delete`/`setResolved`, and
1446
- * `versionHistory.list`/`get`/`create`/`restore` are ignored with a warning
1447
- * naming them, while `templates`' `autoSave`, `unsavedChangesGuard`,
1448
- * `nameField`, `onSaved`, `onCreated`, `onLoaded`, `comments`' `onCreated`,
1449
- * `onUpdated`, `onDeleted`, `onResolved`, `onUnresolved`, and
1450
- * `versionHistory`'s `onCreated`, `onRestored` are all honoured.
1451
- *
1452
- * `render` is not a key here at all, unlike `init()` — Cloud renders
1453
- * server-side for test email, sends and exports, so a supplied renderer
1454
- * would change only what you preview and export, never what Cloud delivers.
1455
- * `resolvePreview` is the same key with the same type on both entry points,
1456
- * so upgrading an OSS integration is a deletion. `savedBlocks`, `testEmail`
1457
- * and `media` are the same key on both entry points too, but Cloud widens
1458
- * each type to also accept an events-only shape — `boolean |
1459
- * SavedBlocksOptions | SavedBlocksProvider`, `Pick<TestEmailOptions,
1460
- * "onSent" | "defaultRecipient"> | TestEmailProvider`, and
1461
- * `false | MediaOptions | MediaProvider` — so upgrading is still a
1462
- * deletion: drop the key to adopt Cloud's store or sender, or leave it
1463
- * exactly as it is to keep your own.
1464
- *
1465
- * `user` is not a key either: Cloud signs comment writes against the auth token's
1466
- * `user` claim, so it fills `init({ user })` from there rather than letting a
1467
- * browser name someone else.
1468
- */
1469
- export declare function initCloud(config: TemplaticalCloudEditorConfig): Promise<TemplaticalCloudEditor>;
1470
-
1471
- /** Check if a locale has cloud translations (matched by exact locale, then base). */
1472
- export declare function isCloudLocaleSupported(locale: string): boolean;
1473
-
1474
1420
  /** Check if a locale has OSS translations (matched by exact locale, then base). */
1475
1421
  export declare function isLocaleSupported(locale: string): boolean;
1476
1422
 
@@ -1765,15 +1711,14 @@ declare interface MediaListPage {
1765
1711
  * cannot page or search.
1766
1712
  *
1767
1713
  * `templateId` is opportunistic — present when a template is loaded, omitted
1768
- * on a blank canvas. Cloud's store ignores it; a CMS that scopes a gallery
1769
- * per template reads it here.
1714
+ * on a blank canvas. A CMS that scopes a gallery per template reads it here.
1770
1715
  */
1771
1716
  declare interface MediaListParams {
1772
1717
  search?: string;
1773
1718
  cursor?: string;
1774
1719
  folderId?: string | null;
1775
1720
  category?: MediaCategory;
1776
- /** When a template is loaded; Cloud ignores. */
1721
+ /** When a template is loaded. */
1777
1722
  templateId?: string;
1778
1723
  }
1779
1724
 
@@ -1781,10 +1726,8 @@ declare interface MediaListParams {
1781
1726
  * Configuration and outward notifications for the media library. Every member
1782
1727
  * is optional.
1783
1728
  *
1784
- * Separate from the storage methods so `initCloud()` can accept this half
1785
- * alone: these fire the same way whichever store holds the assets, Cloud's
1786
- * own or yours. {@link MediaProvider} extends this, so one object satisfies
1787
- * both entry points.
1729
+ * Separate from storage methods. {@link MediaProvider} extends this with
1730
+ * methods for listing, creating, and updating assets.
1788
1731
  *
1789
1732
  * `maxFileSize` / `mimeTypes` are a **client pre-check**, not a security
1790
1733
  * boundary — the backend must enforce too.
@@ -1937,7 +1880,7 @@ declare interface MediaResult {
1937
1880
 
1938
1881
  /**
1939
1882
  * Quota snapshot for the storage ring. `storage()` may resolve `null` when
1940
- * the store does not track quota (or, for Cloud, until plan config has loaded).
1883
+ * the store does not track quota.
1941
1884
  */
1942
1885
  declare interface MediaStorageInfo {
1943
1886
  usedBytes: number;
@@ -2078,12 +2021,12 @@ declare interface MoveBlockOperation {
2078
2021
  };
2079
2022
  }
2080
2023
 
2081
- /** Function type for media browser requests, used by both OSS and Cloud editors. */
2024
+ /** Function type for media browser requests. */
2082
2025
  export declare type OnRequestMedia = (context?: MediaRequestContext) => Promise<MediaResult | null>;
2083
2026
 
2084
2027
  /**
2085
2028
  * One change to a template, in the vocabulary the editor, the CLI's `edit`
2086
- * command, collaboration backends and Templatical Cloud share. Positions are
2029
+ * command and collaboration backends share. Positions are
2087
2030
  * anchored to a sibling rather than an index, so an operation means the same
2088
2031
  * thing after someone else's change lands first.
2089
2032
  */
@@ -2244,7 +2187,7 @@ export declare interface RenderPayload {
2244
2187
  * fail in different ways, and are wanted by different callers. Rendering is never
2245
2188
  * a field on a save result.
2246
2189
  *
2247
- * Pass an implementation as `render` to `init()` or `initCloud()`. **Every method
2190
+ * Pass an implementation as `render` to `init()`. **Every method
2248
2191
  * is independently optional**, and each one the editor resolves on its own:
2249
2192
  *
2250
2193
  * | Call | Order |
@@ -2436,10 +2379,8 @@ export declare interface SavedBlocksListParams {
2436
2379
  /**
2437
2380
  * Outward notifications for saved-block mutations. Every member is optional.
2438
2381
  *
2439
- * Separate from the storage methods so `initCloud()` can accept this half
2440
- * alone: these fire the same way whichever store holds the entries, Cloud's
2441
- * own or yours. {@link SavedBlocksProvider} extends this, so one object
2442
- * satisfies both entry points.
2382
+ * Separate from storage methods. {@link SavedBlocksProvider} extends this
2383
+ * with methods for reading and writing entries.
2443
2384
  */
2444
2385
  export declare interface SavedBlocksOptions {
2445
2386
  /** A saved block was created and prepended to the list. */
@@ -2932,11 +2873,8 @@ export declare interface TemplateSettingsConfig {
2932
2873
  * Configuration and outward notifications for the template lifecycle. Every
2933
2874
  * member is optional.
2934
2875
  *
2935
- * Separate from the storage methods so `initCloud()` can accept this half alone:
2936
- * Cloud owns template storage, because the id it issues is the join key for
2937
- * collaboration, version history, comments, AI rewrite, scoring and the
2938
- * server-side export. {@link TemplatesProvider} extends this, so one object
2939
- * satisfies both entry points and moving to Cloud edits nothing.
2876
+ * Separate from storage methods. {@link TemplatesProvider} extends this
2877
+ * with the template lifecycle methods.
2940
2878
  */
2941
2879
  export declare interface TemplatesOptions {
2942
2880
  /**
@@ -2946,8 +2884,7 @@ export declare interface TemplatesOptions {
2946
2884
  * cadence is `changeDebounce` at the config root, since one timer drives both
2947
2885
  * this and the `onChange` notification, and `onChange` works with no provider.
2948
2886
  *
2949
- * Defaults to off for `init()` and on for `initCloud()` — a Cloud session
2950
- * always has a store.
2887
+ * Defaults to off for `init()`.
2951
2888
  */
2952
2889
  autoSave?: boolean;
2953
2890
  /**
@@ -3087,312 +3024,6 @@ declare interface TemplateVersion {
3087
3024
  content?: TemplateContent;
3088
3025
  }
3089
3026
 
3090
- /**
3091
- * `initCloud()` returns the **same** editor `init()` does.
3092
- *
3093
- * That is the point rather than a tidy-up: Cloud is a set of provider
3094
- * implementations behind the same interfaces a consumer would implement, so if
3095
- * the two entry points still returned different shapes, the claim would be
3096
- * false. It also means moving between them is a config change and never a
3097
- * rewrite of the calling code.
3098
- *
3099
- * Three cloud-only members went with the convergence: `create()` takes
3100
- * `init()`'s `{ name?, content? }` input object now, rather than a bare
3101
- * `TemplateContent`; `setThemeOverrides` is gone (`config.theme` is applied
3102
- * at init on both entry points, and the entitlement that gated changing it
3103
- * later is gone); and `sendTestEmail` is gone (the shared dialog is the
3104
- * supported path).
3105
- */
3106
- export declare type TemplaticalCloudEditor = TemplaticalEditor;
3107
-
3108
- export declare interface TemplaticalCloudEditorConfig {
3109
- container: string | HTMLElement;
3110
- content?: TemplateContent;
3111
- /**
3112
- * Embedder-owned email shell, applied as an overlay at preview and at
3113
- * `toMjml()` / `toHtml()`. Never written into `getContent()`. See `layout`
3114
- * on the OSS editor config for details.
3115
- *
3116
- * A layout guide will land in the published docs.
3117
- */
3118
- layout?: TemplateContent;
3119
- /**
3120
- * Whether the section toolbar offers Add wrapper. Defaults to on
3121
- * (`!== false`). See `sectionWrapper` on the OSS editor config.
3122
- */
3123
- sectionWrapper?: boolean;
3124
- /**
3125
- * Mount the editor inside a Shadow DOM (open mode) for CSS isolation
3126
- * from the host page. Defaults to `true` — host stylesheets cannot
3127
- * cascade past the shadow boundary into editor elements (`p`, `a`,
3128
- * `input`, etc.), and editor utility classes never collide with host
3129
- * class names.
3130
- *
3131
- * Set to `false` to mount in light DOM. Opt out when:
3132
- * - Your host integration uses `document.querySelector` to reach
3133
- * editor internals (with shadow DOM, use `container.shadowRoot
3134
- * .querySelector(...)` instead).
3135
- * - You need to support Firefox <101 or Safari <16.4, which lack the
3136
- * `adoptedStyleSheets` API the shadow path relies on.
3137
- *
3138
- * Light-mode consumers should keep this set to `false` explicitly so
3139
- * future SDK changes don't silently flip the default again.
3140
- *
3141
- * @default true
3142
- */
3143
- shadowDom?: boolean;
3144
- auth: {
3145
- url: string;
3146
- baseUrl?: string;
3147
- requestOptions?: {
3148
- method?: "GET" | "POST";
3149
- headers?: Record<string, string>;
3150
- body?: Record<string, unknown>;
3151
- credentials?: RequestCredentials;
3152
- };
3153
- };
3154
- theme?: ThemeOverrides;
3155
- uiTheme?: UiTheme;
3156
- locale?: string;
3157
- /**
3158
- * Show the "Powered by Templatical" footer. Defaults to `true`.
3159
- * Set to `false` to hide the footer (no attribution required by the license).
3160
- * Cloud white-label plans hide the footer regardless of this setting.
3161
- */
3162
- branding?: boolean;
3163
- /** Header actions and view-toggle opt-outs; forwarded to `init()`. */
3164
- header?: HeaderOptions;
3165
- /**
3166
- * Show a "use a larger screen" notice instead of the editor chrome on
3167
- * viewports narrower than ~768px. Defaults to `true`.
3168
- *
3169
- * The drag-and-drop editor is a desktop-class tool — the block palette,
3170
- * canvas, and properties panel can't lay out usably on a phone, and touch
3171
- * dragging is impractical. Rather than render a broken, cramped layout, the
3172
- * editor shows a clear message below the breakpoint.
3173
- *
3174
- * Set to `false` if you handle small screens yourself (e.g. you embed the
3175
- * editor in a deliberately narrow desktop pane). The check is viewport-based,
3176
- * so it targets actual small devices, not narrow containers on a wide screen.
3177
- *
3178
- * @default true
3179
- */
3180
- smallScreenNotice?: boolean;
3181
- blockDefaults?: BlockDefaults;
3182
- templateDefaults?: TemplateDefaults;
3183
- /**
3184
- * Reusable saved blocks.
3185
- *
3186
- * - **omitted / `true`** — backed by Templatical Cloud, gated on the
3187
- * `savedModules` plan feature;
3188
- * - **`false`** — off entirely; no UI renders;
3189
- * - **a {@link SavedBlocksOptions}** — still backed by Cloud's store, plus
3190
- * your `onCreated`, `onUpdated` and `onDeleted` handlers;
3191
- * - **a {@link SavedBlocksProvider}** — backed by *your* store instead of
3192
- * Cloud's, and **not plan-gated**, because the plan feature licenses Cloud's
3193
- * storage rather than the editor's UI.
3194
- *
3195
- * The provider form is the same type `init()` takes, so moving an OSS
3196
- * integration to Cloud means deleting this key (to adopt Cloud's store) or
3197
- * leaving it exactly as-is (to keep your own) — never rewriting it.
3198
- */
3199
- savedBlocks?: boolean | SavedBlocksOptions | SavedBlocksProvider;
3200
- /**
3201
- * Storage backend for the **media library** — the picker behind Browse on
3202
- * image fields, video thumbnails, and custom-block image fields.
3203
- *
3204
- * - **omitted** — backed by Templatical Cloud. Not plan-gated;
3205
- * - **`false`** — off; image fields stay URL-only unless `onRequestMedia`
3206
- * is set;
3207
- * - **a {@link MediaOptions}** — still backed by Cloud's store, plus your
3208
- * `onCreated`, `onUpdated` and `onDeleted` handlers. `maxFileSize` and
3209
- * `mimeTypes` are not honoured on this form — Cloud's plan owns those
3210
- * limits. TypeScript does not flag passing them here (both are valid
3211
- * members of the sibling {@link MediaProvider} arm, so the union
3212
- * accepts them structurally); passing either logs a runtime warning
3213
- * naming it instead;
3214
- * - **a {@link MediaProvider}** — backed by *your* store instead of
3215
- * Cloud's, and **not plan-gated**, because the plan licenses Cloud's
3216
- * storage rather than the editor's UI.
3217
- *
3218
- * The provider form is the same type `init()` takes, so moving an OSS
3219
- * integration to Cloud means deleting this key (to adopt Cloud's store) or
3220
- * leaving it exactly as-is (to keep your own) — never rewriting it.
3221
- */
3222
- media?: false | MediaOptions | MediaProvider_2;
3223
- /**
3224
- * Configuration and events for the template lifecycle. **The same key and
3225
- * the same type as `init()`'s `templates`** — minus the storage methods,
3226
- * which Cloud owns: the id it issues is the join key for version history,
3227
- * comments and the server-side export.
3228
- *
3229
- * Passing a full provider is not an error: `load` / `create` / `save` are
3230
- * ignored with a warning naming them, while `autoSave`, `unsavedChangesGuard`,
3231
- * `nameField`, `onSaved`, `onCreated` and `onLoaded` are all honoured. So an
3232
- * OSS integration moving to Cloud leaves this key exactly as it is.
3233
- */
3234
- templates?: TemplatesOptions;
3235
- /**
3236
- * The review conversation. **The same key `init()` takes**, minus the storage
3237
- * methods Cloud owns — a comment is keyed to a template id Cloud issued and
3238
- * its author is signed by the auth token.
3239
- *
3240
- * - **omitted** — Cloud's store, subject to the `commenting` plan feature;
3241
- * - **`false`** — off, whatever the plan grants;
3242
- * - **an options object** — Cloud's store, plus your `onCreated`,
3243
- * `onUpdated`, `onDeleted`, `onResolved` and `onUnresolved` handlers.
3244
- *
3245
- * Passing a full provider is not an error: its methods are ignored with a
3246
- * warning naming them, and its events are honoured.
3247
- */
3248
- comments?: false | CommentsOptions;
3249
- /**
3250
- * Outward notifications for a template's version history. **The same key
3251
- * `init()` takes**, minus the storage methods Cloud owns — a version is
3252
- * keyed to a template id Cloud issued, so Cloud owns version-history
3253
- * storage.
3254
- *
3255
- * - **omitted** — Cloud's store, with no extra notifications;
3256
- * - **a {@link VersionHistoryOptions}** — Cloud's store, plus your
3257
- * `onCreated` and `onRestored` handlers.
3258
- *
3259
- * Passing a full provider is not an error: its methods are ignored with a
3260
- * warning naming them, and its events are honoured.
3261
- */
3262
- versionHistory?: VersionHistoryOptions;
3263
- /**
3264
- * How long the editor waits after the last edit before it fires `onChange`
3265
- * and, when `templates.autoSave` is on, saves.
3266
- *
3267
- * One timer drives both, so they cannot drift apart. Cloud always injects
3268
- * its own `templates` provider, so pace `onChange` alone with
3269
- * `templates: { autoSave: false }` rather than by omitting a provider —
3270
- * the no-provider case `init()` uses for this doesn't exist on this tier.
3271
- *
3272
- * @default 2000
3273
- */
3274
- changeDebounce?: number;
3275
- mergeTags?: MergeTagsConfig;
3276
- logicTags?: LogicTagsConfig;
3277
- displayConditions?: DisplayConditionsConfig;
3278
- customBlocks?: CustomBlockDefinition[];
3279
- /**
3280
- * Allowlist + order for the block palette. When non-empty, only the listed
3281
- * block types appear in the sidebar palette, in this order; unlisted
3282
- * built-ins are hidden. Built-ins use their bare type (`'image'`), custom
3283
- * blocks the `custom:`-prefixed type (`'custom:qrcode'`). `'hero'` is a
3284
- * shortcut, not a block type: it inserts a one-column section in hero mode
3285
- * with starter content. Unknown entries are warned and skipped. Omit it or
3286
- * pass `[]` for the full default palette. See `paletteBlocks` on the OSS
3287
- * editor config for details.
3288
- */
3289
- paletteBlocks?: string[];
3290
- /**
3291
- * Render each HTML block's raw content as a live preview in the editor
3292
- * canvas instead of the static placeholder card. **Off by default.** Accepts
3293
- * `true` (shorthand for `{ enabled: true }`) or `{ enabled: boolean }`.
3294
- *
3295
- * Content is rendered verbatim inside a sandboxed `<iframe>`
3296
- * (`sandbox="allow-same-origin"`, no `allow-scripts`), so scripts never run
3297
- * and styles can't bleed. Preview-only — export is unaffected. See
3298
- * `htmlBlockPreview` on the OSS editor config for details.
3299
- *
3300
- * @default false
3301
- */
3302
- htmlBlockPreview?: HtmlBlockPreviewConfig;
3303
- fonts?: FontsConfig;
3304
- /**
3305
- * Editor-wide color-picker palette. `presets` render as a clickable grid in
3306
- * every color picker popover; `allowCustom: false` (with `presets`) hides the
3307
- * wheel and hex input so authors can only pick from the palette. Ignored with
3308
- * a warning when no `presets` are configured. See `colors` on the OSS editor
3309
- * config for details and an example.
3310
- */
3311
- colors?: ColorsConfig;
3312
- /**
3313
- * Which template settings the Settings panel exposes — an allowlist over the
3314
- * members of `TemplateSettings`, `false` for none (which also removes the
3315
- * tab). Omit for every setting. Presentation only, and accepted here for the
3316
- * same reason `paletteBlocks` and `colors` are: it constrains the editor's own
3317
- * chrome, and Cloud exercises none of it. See `templateSettings` on the OSS
3318
- * editor config for details and an example.
3319
- */
3320
- templateSettings?: TemplateSettingsConfig;
3321
- onChange?: (content: TemplateContent) => void;
3322
- /**
3323
- * Called whenever the editor's unsaved-changes state flips. **The same key and
3324
- * the same type as `init()`'s** — one editor, one set of keys.
3325
- */
3326
- onDirtyChange?: (isDirty: boolean) => void;
3327
- onError?: (error: Error) => void;
3328
- onUnmount?: () => void;
3329
- /**
3330
- * UI override for Browse / drop. Same key and type as `init()`. Wins over
3331
- * `media` when both are set. Cloud still supplies its store as `media`
3332
- * unless you pass `media: false` or your own provider.
3333
- */
3334
- onRequestMedia?: (context?: MediaRequestContext) => Promise<MediaResult | null>;
3335
- /**
3336
- * Transform the rendered HTML just before Cloud sends a test email.
3337
- *
3338
- * Cloud-only, and deliberately so: it exists because *Cloud* renders the HTML,
3339
- * so a consumer needs a seam into it. A consumer-supplied {@link testEmail}
3340
- * provider *is* that seam, and this hook is not applied to it.
3341
- */
3342
- onBeforeTestEmail?: (html: string) => string | Promise<string>;
3343
- /**
3344
- * Sending backend for test emails.
3345
- *
3346
- * - **omitted** — sent by Templatical Cloud, gated on the `testEmail` plan
3347
- * feature and its signed allowed-recipient list;
3348
- * - **`{ onSent?, defaultRecipient? }`** — still sent by Cloud, plus your
3349
- * `onSent` handler and/or a pre-filled recipient (ignored unless it's
3350
- * already on Cloud's own allowlist — this can't smuggle in an address
3351
- * outside it). `includeMjml` and `allowedRecipients` are not honoured on
3352
- * this form — Cloud renders server-side rather than from a client MJML
3353
- * pass, and the allowlist is the signed one from your project's JWT, not
3354
- * a client-supplied one. TypeScript does not flag passing them here
3355
- * (both are valid members of the sibling {@link TestEmailProvider} arm,
3356
- * so the union accepts them structurally); passing either logs a
3357
- * runtime warning naming it instead;
3358
- * - **a {@link TestEmailProvider}** — sent by *you* instead, which is what to
3359
- * reach for when mail must leave your own infrastructure for compliance or
3360
- * data-residency reasons. `includeMjml`, `allowedRecipients`,
3361
- * `defaultRecipient` and `onSent` are all yours to set here.
3362
- *
3363
- * The same type `init()` takes, so moving an OSS integration to Cloud means
3364
- * deleting this key (to adopt Cloud's sender) or leaving it exactly as-is (to
3365
- * keep your own) — never rewriting it.
3366
- */
3367
- testEmail?: Pick<TestEmailOptions, "onSent" | "defaultRecipient"> | TestEmailProvider;
3368
- /**
3369
- * Resolves the template for preview surfaces — typically evaluating logic
3370
- * tags (`{% if %}` … `{% endif %}`) against real data on your backend.
3371
- *
3372
- * The **same key and the same type as `init()`**, so adopting or dropping it
3373
- * is a one-line change either way. Not plan-gated: this is a display concern,
3374
- * and Cloud has no server-side resolver of its own to supersede it.
3375
- * Called with `trigger: "open"` when a preview opens, `"recipient"` when the
3376
- * test-email recipient changes, `"locale"` when the template language changes,
3377
- * and `"refresh"` when the user clicks Refresh preview or calls
3378
- * `refreshPreview()`. Recipient changes debounce; refresh runs immediately.
3379
- * `surface` is `"preview"` for preview mode and `"test-email"` for the
3380
- * test-email dialog; tell them apart by it, not by `recipient`, which the
3381
- * dialog omits while its recipient field is empty.
3382
- *
3383
- * Supersedes `MergeTag.sample` when configured, and the Sample/Label switch
3384
- * stops rendering.
3385
- */
3386
- resolvePreview?: ResolvePreview;
3387
- /**
3388
- * Template linter (`@templatical/quality`) configuration. Runs every
3389
- * linter exported by the package (accessibility + structure). Cloud
3390
- * additionally merges `planConfig.accessibility` from the server (server
3391
- * policy wins on conflict) — this option sets the consumer-supplied baseline.
3392
- */
3393
- lint?: LintOptions;
3394
- }
3395
-
3396
3027
  export declare interface TemplaticalEditor extends TemplaticalEditorBase {
3397
3028
  /**
3398
3029
  * Persist the current content as a new template through the configured
@@ -3831,7 +3462,8 @@ export declare interface TemplaticalEditorConfig {
3831
3462
  * in hero mode with starter content.
3832
3463
  *
3833
3464
  * Unknown entries — a typo, an unregistered custom block, or `countdown`
3834
- * outside a Cloud plan — are logged with a warning and skipped. Filtering
3465
+ * which is not insertable from the palette — are logged with a warning and
3466
+ * skipped. Filtering
3835
3467
  * the palette never affects rendering: existing content using a hidden
3836
3468
  * block type still renders correctly.
3837
3469
  */
@@ -4158,9 +3790,8 @@ export declare interface TemplaticalEditorConfig {
4158
3790
  * Configuration and outward notifications for test-email sending. Every
4159
3791
  * member is optional.
4160
3792
  *
4161
- * Separate from `send` so `initCloud()` can accept this half alone: these are
4162
- * meaningful whichever backend does the sending, Cloud's own or yours.
4163
- * {@link TestEmailProvider} extends this, adding only `send`.
3793
+ * Separate from `send`. {@link TestEmailProvider} extends this, adding
3794
+ * the method that sends the message.
4164
3795
  */
4165
3796
  export declare interface TestEmailOptions {
4166
3797
  /**
@@ -4230,8 +3861,7 @@ export declare interface TestEmailPayload {
4230
3861
  *
4231
3862
  * **Untrusted.** It is read out of the browser and carries no signature, so it
4232
3863
  * is not authoritative about anything. Two things it is genuinely useful for:
4233
- * keeping one `send` implementation portable between your own backend and
4234
- * Templatical Cloud, and comparing it against `recipient` server-side — a
3864
+ * comparing it against `recipient` server-side — a
4235
3865
  * mismatch means the client was tampered with or is buggy, which is worth
4236
3866
  * logging. Never treat it *as* the allowlist; that list belongs on your
4237
3867
  * server.
@@ -4435,10 +4065,8 @@ declare interface VersionHistoryListResult {
4435
4065
  * Outward notifications about a template's version history. Every member is
4436
4066
  * optional.
4437
4067
  *
4438
- * Separate from the storage methods so `initCloud()` can accept this half
4439
- * alone: a version is keyed to a template id Cloud issued, so Cloud owns
4440
- * version-history storage. {@link VersionHistoryProvider} extends this, so one
4441
- * object satisfies both entry points.
4068
+ * Separate from storage methods. {@link VersionHistoryProvider} extends this
4069
+ * with methods for reading and writing versions.
4442
4070
  */
4443
4071
  export declare interface VersionHistoryOptions {
4444
4072
  /**
@@ -4458,7 +4086,7 @@ export declare interface VersionHistoryOptions {
4458
4086
  /**
4459
4087
  * Storage contract for a template's version history.
4460
4088
  *
4461
- * Pass an implementation as `versionHistory` to `init()` or `initCloud()`. With
4089
+ * Pass an implementation as `versionHistory` to `init()`. With
4462
4090
  * no provider the history control does not render and none of its UI is
4463
4091
  * downloaded.
4464
4092
  *
@@ -724,8 +724,7 @@ var e = {
724
724
  resolvedBy: "{name} が解決しました",
725
725
  replyOne: "{count} 件の返信",
726
726
  replyMany: "{count} 件の返信",
727
- missingBlock: "ブロックが見つかりません",
728
- saveTemplateFirst: "このブロックにコメントする前にテンプレートを保存してください。"
727
+ missingBlock: "ブロックが見つかりません"
729
728
  },
730
729
  collaboration: {
731
730
  people: "このテンプレートを編集中のユーザー",
@@ -955,5 +954,3 @@ var e = {
955
954
  }
956
955
  };
957
956
  export { e as default };
958
-
959
- //# sourceMappingURL=ja-CMxWxqSH.js.map
@@ -724,8 +724,7 @@ var e = {
724
724
  resolvedBy: "Opgelost door {name}",
725
725
  replyOne: "{count} antwoord",
726
726
  replyMany: "{count} antwoorden",
727
- missingBlock: "Blok ontbreekt",
728
- saveTemplateFirst: "Sla de template op voordat je een opmerking bij dit blok plaatst."
727
+ missingBlock: "Blok ontbreekt"
729
728
  },
730
729
  collaboration: {
731
730
  people: "Mensen die deze template bewerken",
@@ -955,5 +954,3 @@ var e = {
955
954
  }
956
955
  };
957
956
  export { e as default };
958
-
959
- //# sourceMappingURL=nl-BjyYZDkC.js.map
@@ -724,8 +724,7 @@ var e = {
724
724
  resolvedBy: "Resolvido por {name}",
725
725
  replyOne: "{count} Resposta",
726
726
  replyMany: "{count} Respostas",
727
- missingBlock: "Bloco ausente",
728
- saveTemplateFirst: "Salve o template antes de comentar neste bloco."
727
+ missingBlock: "Bloco ausente"
729
728
  },
730
729
  collaboration: {
731
730
  people: "Pessoas editando este template",
@@ -955,5 +954,3 @@ var e = {
955
954
  }
956
955
  };
957
956
  export { e as default };
958
-
959
- //# sourceMappingURL=pt-BR-DC2A3C0v.js.map