@templatical/editor 0.31.0 → 0.33.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 (258) hide show
  1. package/dist/{AiChatSidebar-DYDtzTDd.js → AiChatSidebar-J7WsHRDS.js} +15 -15
  2. package/dist/{AiFeatureMenu-BJ882XCi.js → AiFeatureMenu-C9mxL_7U.js} +7 -7
  3. package/dist/{BlockIssueBadge-D6y8vQpL.js → BlockIssueBadge-BI6v_eol.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DQNxLy7u.js → BlockPreviewCanvas-mZIr9mY2.js} +20 -19
  5. package/dist/{CloudHeaderExtras-CqG3RaKw.js → CloudHeaderExtras-CLtTtK12.js} +5 -5
  6. package/dist/{CloudPanels-B6xrk7kN.js → CloudPanels-BbLAX1jH.js} +7 -7
  7. package/dist/{CollaboratorBar-by16gXQH.js → CollaboratorBar-OBbLOhLK.js} +4 -4
  8. package/dist/{ColorPicker-E5gqlCZE.js → ColorPicker-Cs7iK01u.js} +7 -7
  9. package/dist/{CommentsPanel-B_kzvTHR.js → CommentsPanel-G_uNzi1a.js} +2 -2
  10. package/dist/{CommentsSidebar-gfzUX7cd.js → CommentsSidebar-DlFlpfkU.js} +14 -14
  11. package/dist/{CountdownBlock-BgNK7fZY.js → CountdownBlock-Bdt8qZi1.js} +3 -3
  12. package/dist/{CountdownToolbar-DU8UHx9A.js → CountdownToolbar-BWLYViOm.js} +4 -4
  13. package/dist/{DesignReferenceSidebar-DgndMB4H.js → DesignReferenceSidebar-CK_xTLh2.js} +11 -11
  14. package/dist/{FieldRow-0-UbQR4a.js → FieldRow-BWt7ECqo.js} +1 -1
  15. package/dist/{IssuesPanel-DmJTb_SZ.js → IssuesPanel-DIbJ_jaa.js} +8 -8
  16. package/dist/{LoadingTrack-5KBr5cE8.js → LoadingTrack-SQXoZVf2.js} +1 -1
  17. package/dist/{MergeTagModeToggle-CZnJ2Gz_.js → MergeTagModeToggle-DeI65T5k.js} +6 -6
  18. package/dist/{MergeTagSuggestion-DyUcY_9e.js → MergeTagSuggestion-CoCuzEmW.js} +4 -4
  19. package/dist/{ParagraphEditor-CnB4kXle.js → ParagraphEditor-Dr-u72hu.js} +26 -26
  20. package/dist/{RestoreVersionDialog-BpOphPiE.js → RestoreVersionDialog-6sBYYt9f.js} +5 -5
  21. package/dist/{RichTextEditorContent-ChPNgHQ_.js → RichTextEditorContent-DKLVe6Io.js} +8 -8
  22. package/dist/{SaveBlockDialog-CKw4Va6j.js → SaveBlockDialog-DABN4-Jf.js} +25 -25
  23. package/dist/SavedBlocksBrowserModal-BoylzTEq.js +322 -0
  24. package/dist/{SavedBlocksPanels-ChV8bOgM.js → SavedBlocksPanels-2np4Yu1H.js} +2 -2
  25. package/dist/{SavedBlocksPickBar-BbEeD5RB.js → SavedBlocksPickBar-BM7aTSK2.js} +4 -4
  26. package/dist/{TemplateScoringPanel-De8BZpRU.js → TemplateScoringPanel-CzWoSM1V.js} +15 -15
  27. package/dist/{TestEmailModal-4d2pXeHU.js → TestEmailModal-Cb0n7Dhj.js} +11 -11
  28. package/dist/{TestEmailPanel-DEgCesNP.js → TestEmailPanel-52HjvuU7.js} +2 -2
  29. package/dist/{TitleEditor-89pmKLVY.js → TitleEditor-_taBpBfB.js} +13 -13
  30. package/dist/{TplModal-DswccJRJ.js → TplModal-CEYnwBBk.js} +5 -5
  31. package/dist/VersionHistoryMenu-CsGlLSO8.js +157 -0
  32. package/dist/{VersionHistoryPanels-CFLHDH9P.js → VersionHistoryPanels-DPmYk00L.js} +2 -2
  33. package/dist/{VersionPreviewBanner-DhG5RcRt.js → VersionPreviewBanner-VGJbEoXj.js} +3 -3
  34. package/dist/{blockTypeIcons-dpKs5GQc.js → blockTypeIcons-IhdBwbxp.js} +2 -2
  35. package/dist/bundle-stats.json +7 -7
  36. package/dist/{ca-DZSrLNXK.js → ca-C0hfqt4U.js} +5 -0
  37. package/dist/cdn/chunks/{AiChatSidebar-DmYDRmvX.js → AiChatSidebar-6S5LPyRW.js} +9 -9
  38. package/dist/cdn/chunks/{AiChatSidebar-DmYDRmvX.js.map → AiChatSidebar-6S5LPyRW.js.map} +1 -1
  39. package/dist/cdn/chunks/{AiFeatureMenu-C0Rt08qb.js → AiFeatureMenu-BHCtjIfV.js} +6 -6
  40. package/dist/cdn/chunks/{AiFeatureMenu-C0Rt08qb.js.map → AiFeatureMenu-BHCtjIfV.js.map} +1 -1
  41. package/dist/cdn/chunks/{BlockIssueBadge-BBog2CMy.js → BlockIssueBadge-2-os120N.js} +5 -5
  42. package/dist/cdn/chunks/{BlockIssueBadge-BBog2CMy.js.map → BlockIssueBadge-2-os120N.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockPreviewCanvas-DNBjBKBI.js → BlockPreviewCanvas-CYNs-Yn-.js} +21 -20
  44. package/dist/cdn/chunks/BlockPreviewCanvas-CYNs-Yn-.js.map +1 -0
  45. package/dist/cdn/chunks/{CloudHeaderExtras-Ditfv7y9.js → CloudHeaderExtras-DrbFk6Fy.js} +5 -5
  46. package/dist/cdn/chunks/{CloudHeaderExtras-Ditfv7y9.js.map → CloudHeaderExtras-DrbFk6Fy.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudPanels-C4U5bJO6.js → CloudPanels-CpzYrAPQ.js} +7 -7
  48. package/dist/cdn/chunks/{CloudPanels-C4U5bJO6.js.map → CloudPanels-CpzYrAPQ.js.map} +1 -1
  49. package/dist/cdn/chunks/{CollaboratorBar-B79JR9NH.js → CollaboratorBar-VMTCYn_z.js} +5 -5
  50. package/dist/cdn/chunks/{CollaboratorBar-B79JR9NH.js.map → CollaboratorBar-VMTCYn_z.js.map} +1 -1
  51. package/dist/cdn/chunks/{ColorPicker-C-ZiwUV3.js → ColorPicker-B0l_UF8G.js} +7 -7
  52. package/dist/cdn/chunks/{ColorPicker-C-ZiwUV3.js.map → ColorPicker-B0l_UF8G.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-D1Ke8PbO.js → CommentsPanel-CXMMdLrO.js} +3 -3
  54. package/dist/cdn/chunks/{CommentsPanel-D1Ke8PbO.js.map → CommentsPanel-CXMMdLrO.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-B-UyhIZN.js → CommentsSidebar-CGkhAJUW.js} +5 -5
  56. package/dist/cdn/chunks/{CommentsSidebar-B-UyhIZN.js.map → CommentsSidebar-CGkhAJUW.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js → CountdownBlock-CPe1ulzk.js} +4 -4
  58. package/dist/cdn/chunks/{CountdownBlock-CWeJBC0L.js.map → CountdownBlock-CPe1ulzk.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-DyOHOu44.js → CountdownToolbar-D5xyNd5V.js} +5 -5
  60. package/dist/cdn/chunks/{CountdownToolbar-DyOHOu44.js.map → CountdownToolbar-D5xyNd5V.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-BCCX1FtP.js → DesignReferenceSidebar-D1NH1WRv.js} +7 -7
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-BCCX1FtP.js.map → DesignReferenceSidebar-D1NH1WRv.js.map} +1 -1
  63. package/dist/cdn/chunks/{FieldRow-CbcpsxZ4.js → FieldRow-D9OJhYeb.js} +2 -2
  64. package/dist/cdn/chunks/{FieldRow-CbcpsxZ4.js.map → FieldRow-D9OJhYeb.js.map} +1 -1
  65. package/dist/cdn/chunks/{IssuesPanel-3vD3ImHF.js → IssuesPanel-07SBSZVN.js} +6 -6
  66. package/dist/cdn/chunks/{IssuesPanel-3vD3ImHF.js.map → IssuesPanel-07SBSZVN.js.map} +1 -1
  67. package/dist/cdn/chunks/{LoadingTrack-Cz1sT0wP.js → LoadingTrack-Cm3TDKb3.js} +2 -2
  68. package/dist/cdn/chunks/{LoadingTrack-Cz1sT0wP.js.map → LoadingTrack-Cm3TDKb3.js.map} +1 -1
  69. package/dist/cdn/chunks/{MergeTagModeToggle-BU0SDRow.js → MergeTagModeToggle-Bg8eO5nc.js} +6 -6
  70. package/dist/cdn/chunks/{MergeTagModeToggle-BU0SDRow.js.map → MergeTagModeToggle-Bg8eO5nc.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagSuggestion-B9vL0VaG.js → MergeTagSuggestion-t8Uj00Er.js} +3 -3
  72. package/dist/cdn/chunks/{MergeTagSuggestion-B9vL0VaG.js.map → MergeTagSuggestion-t8Uj00Er.js.map} +1 -1
  73. package/dist/cdn/chunks/{ParagraphEditor-CSwIuvoF.js → ParagraphEditor-x2LTi6DN.js} +23 -23
  74. package/dist/cdn/chunks/{ParagraphEditor-CSwIuvoF.js.map → ParagraphEditor-x2LTi6DN.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-Bvg2WvJN.js → RestoreVersionDialog--SjTV0_4.js} +5 -5
  76. package/dist/cdn/chunks/{RestoreVersionDialog-Bvg2WvJN.js.map → RestoreVersionDialog--SjTV0_4.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-DdkmEEpK.js → RichTextEditorContent-CzdMJ1c9.js} +7 -7
  78. package/dist/cdn/chunks/{RichTextEditorContent-DdkmEEpK.js.map → RichTextEditorContent-CzdMJ1c9.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-D-QO3LuR.js → SaveBlockDialog-CS1lqdsQ.js} +9 -9
  80. package/dist/cdn/chunks/{SaveBlockDialog-D-QO3LuR.js.map → SaveBlockDialog-CS1lqdsQ.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BRdN56r7.js → SavedBlocksBrowserModal-D6nDZ4rq.js} +110 -111
  82. package/dist/cdn/chunks/SavedBlocksBrowserModal-D6nDZ4rq.js.map +1 -0
  83. package/dist/cdn/chunks/{SavedBlocksPanels-D9GTlLgb.js → SavedBlocksPanels-DdkwvYRR.js} +3 -3
  84. package/dist/cdn/chunks/{SavedBlocksPanels-D9GTlLgb.js.map → SavedBlocksPanels-DdkwvYRR.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-DSRcUeIo.js → SavedBlocksPickBar-BLQr_6WM.js} +5 -5
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-DSRcUeIo.js.map → SavedBlocksPickBar-BLQr_6WM.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-Dy5oOVhB.js → TemplateScoringPanel-CDC-JC6C.js} +50 -50
  88. package/dist/cdn/chunks/{TemplateScoringPanel-Dy5oOVhB.js.map → TemplateScoringPanel-CDC-JC6C.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-B4L2lmIV.js → TestEmailModal-B2LcU11Y.js} +10 -10
  90. package/dist/cdn/chunks/{TestEmailModal-B4L2lmIV.js.map → TestEmailModal-B2LcU11Y.js.map} +1 -1
  91. package/dist/cdn/chunks/{TestEmailPanel-cTPgEf-D.js → TestEmailPanel-ByqDSx8B.js} +3 -3
  92. package/dist/cdn/chunks/{TestEmailPanel-cTPgEf-D.js.map → TestEmailPanel-ByqDSx8B.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-BKjL2Zs1.js → TitleEditor-DCoulgN8.js} +13 -13
  94. package/dist/cdn/chunks/{TitleEditor-BKjL2Zs1.js.map → TitleEditor-DCoulgN8.js.map} +1 -1
  95. package/dist/cdn/chunks/{TplModal-DxrgNmt9.js → TplModal-CxQDl-tN.js} +5 -5
  96. package/dist/cdn/chunks/{TplModal-DxrgNmt9.js.map → TplModal-CxQDl-tN.js.map} +1 -1
  97. package/dist/cdn/chunks/VersionHistoryMenu-BOy8aMB6.js +150 -0
  98. package/dist/cdn/chunks/VersionHistoryMenu-BOy8aMB6.js.map +1 -0
  99. package/dist/cdn/chunks/{VersionHistoryPanels-CxIFBJsz.js → VersionHistoryPanels-BPLhzW9c.js} +3 -3
  100. package/dist/cdn/chunks/{VersionHistoryPanels-CxIFBJsz.js.map → VersionHistoryPanels-BPLhzW9c.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionPreviewBanner-CdsZvVYF.js → VersionPreviewBanner-CYC9qP2i.js} +4 -4
  102. package/dist/cdn/chunks/{VersionPreviewBanner-CdsZvVYF.js.map → VersionPreviewBanner-CYC9qP2i.js.map} +1 -1
  103. package/dist/cdn/chunks/{blockTypeIcons-DXPd_hd1.js → blockTypeIcons-ZEzEpCti.js} +2 -2
  104. package/dist/cdn/chunks/{blockTypeIcons-DXPd_hd1.js.map → blockTypeIcons-ZEzEpCti.js.map} +1 -1
  105. package/dist/cdn/chunks/{ca-DZSrLNXK.js → ca-C0hfqt4U.js} +6 -1
  106. package/dist/cdn/chunks/ca-C0hfqt4U.js.map +1 -0
  107. package/dist/cdn/chunks/{cloud-CITqEHEc.js → cloud-BP5-6__d.js} +4 -4
  108. package/dist/cdn/chunks/{cloud-CITqEHEc.js.map → cloud-BP5-6__d.js.map} +1 -1
  109. package/dist/cdn/chunks/{createCloudRuntime-DwIXvrb0.js → createCloudRuntime-CbSqoOba.js} +10 -10
  110. package/dist/cdn/chunks/{createCloudRuntime-DwIXvrb0.js.map → createCloudRuntime-CbSqoOba.js.map} +1 -1
  111. package/dist/{de-DbayqpK-.js → cdn/chunks/de-C6J2Iae8.js} +7 -0
  112. package/dist/cdn/chunks/de-C6J2Iae8.js.map +1 -0
  113. package/dist/cdn/chunks/{dist-CgR3inPR.js → dist-BW6Y49zE.js} +2 -2
  114. package/dist/cdn/chunks/{dist-CgR3inPR.js.map → dist-BW6Y49zE.js.map} +1 -1
  115. package/dist/cdn/chunks/{dist-El3fQnfk.js → dist-CAFTQ6Y2.js} +5 -5
  116. package/dist/cdn/chunks/{dist-El3fQnfk.js.map → dist-CAFTQ6Y2.js.map} +1 -1
  117. package/dist/cdn/chunks/{draggable-D2vo-aQI.js → draggable-kbOhCgnk.js} +12 -13
  118. package/dist/cdn/chunks/{draggable-D2vo-aQI.js.map → draggable-kbOhCgnk.js.map} +1 -1
  119. package/dist/cdn/chunks/{en-l0ib5X0f.js → en-BaUYOQi8.js} +6 -1
  120. package/dist/cdn/chunks/en-BaUYOQi8.js.map +1 -0
  121. package/dist/cdn/chunks/en-mEKGL1PX.js +2 -0
  122. package/dist/cdn/chunks/{es-CMQ-5PJP.js → es-CKDYfJYn.js} +6 -1
  123. package/dist/cdn/chunks/es-CKDYfJYn.js.map +1 -0
  124. package/dist/cdn/chunks/{extensions-C87Z6_23.js → extensions-CeP0iOPC.js} +7 -7
  125. package/dist/cdn/chunks/{extensions-C87Z6_23.js.map → extensions-CeP0iOPC.js.map} +1 -1
  126. package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js +15 -0
  127. package/dist/cdn/chunks/formatAbsoluteDateTime-DMmop3C-.js.map +1 -0
  128. package/dist/{fr-DNXmZWAq.js → cdn/chunks/fr-L8DR73mK.js} +7 -0
  129. package/dist/cdn/chunks/fr-L8DR73mK.js.map +1 -0
  130. package/dist/cdn/chunks/{icons-ciivb5BS.js → icons-SP5Itd-A.js} +9 -9
  131. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +1 -0
  132. package/dist/cdn/chunks/keys-O8clwJ41.js +12 -0
  133. package/dist/cdn/chunks/keys-O8clwJ41.js.map +1 -0
  134. package/dist/cdn/chunks/{liquid.browser-BPvKXNfO.js → liquid.browser-BypTT2oc.js} +4 -4
  135. package/dist/cdn/chunks/{liquid.browser-BPvKXNfO.js.map → liquid.browser-BypTT2oc.js.map} +1 -1
  136. package/dist/{nl-BylRRHYJ.js → cdn/chunks/nl-GDWeuX18.js} +7 -0
  137. package/dist/cdn/chunks/nl-GDWeuX18.js.map +1 -0
  138. package/dist/cdn/chunks/{preRenderCustomBlocks-DyCIgmqJ.js → preRenderCustomBlocks-LFB-e-0m.js} +2 -2
  139. package/dist/cdn/chunks/{preRenderCustomBlocks-DyCIgmqJ.js.map → preRenderCustomBlocks-LFB-e-0m.js.map} +1 -1
  140. package/dist/cdn/chunks/{pt-BR-BVoJhpie.js → pt-BR-B1AVVhWj.js} +6 -1
  141. package/dist/cdn/chunks/pt-BR-B1AVVhWj.js.map +1 -0
  142. package/dist/cdn/chunks/{src-6J-yyZoD.js → src-BM3f9I7t.js} +268 -268
  143. package/dist/cdn/chunks/{src-6J-yyZoD.js.map → src-BM3f9I7t.js.map} +1 -1
  144. package/dist/cdn/chunks/{src-Cf0ohOog.js → src-C1lP5sIe.js} +19 -19
  145. package/dist/cdn/chunks/src-C1lP5sIe.js.map +1 -0
  146. package/dist/cdn/chunks/{src-BD60gqPW.js → src-CLoCCDfs.js} +26 -26
  147. package/dist/cdn/chunks/{src-BD60gqPW.js.map → src-CLoCCDfs.js.map} +1 -1
  148. package/dist/cdn/chunks/{src-Bid3cmHa.js → src-Cxl-9O-L.js} +699 -684
  149. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +1 -0
  150. package/dist/cdn/chunks/{tiptap-Ey0FpaX7.js → tiptap-Epe8m3Vo.js} +2636 -2629
  151. package/dist/cdn/chunks/tiptap-Epe8m3Vo.js.map +1 -0
  152. package/dist/cdn/chunks/{useAliveFlag-DrXxPV8V.js → useAliveFlag-CT9gjvO_.js} +2 -2
  153. package/dist/cdn/chunks/{useAliveFlag-DrXxPV8V.js.map → useAliveFlag-CT9gjvO_.js.map} +1 -1
  154. package/dist/cdn/chunks/{useCloudI18n-D0AoLV0a.js → useCloudI18n-ZBEJvkf4.js} +3 -3
  155. package/dist/cdn/chunks/{useCloudI18n-D0AoLV0a.js.map → useCloudI18n-ZBEJvkf4.js.map} +1 -1
  156. package/dist/cdn/chunks/{useEditorCore-CTNB2Mkl.js → useEditorCore-CZxGbZmY.js} +591 -413
  157. package/dist/cdn/chunks/useEditorCore-CZxGbZmY.js.map +1 -0
  158. package/dist/cdn/chunks/useEditorRoot-DVV-EsNI.js +10 -0
  159. package/dist/cdn/chunks/{useEditorRoot-BFGRBGts.js.map → useEditorRoot-DVV-EsNI.js.map} +1 -1
  160. package/dist/cdn/chunks/{useI18n-DIhawILp.js → useI18n-DCbvHv6W.js} +3 -3
  161. package/dist/cdn/chunks/{useI18n-DIhawILp.js.map → useI18n-DCbvHv6W.js.map} +1 -1
  162. package/dist/cdn/chunks/{useMergeTag-lWo7So18.js → useMergeTag-CbuagYNK.js} +4 -4
  163. package/dist/cdn/chunks/{useMergeTag-lWo7So18.js.map → useMergeTag-CbuagYNK.js.map} +1 -1
  164. package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js → usePopoverPosition-Ozg5iU3y.js} +3 -3
  165. package/dist/cdn/chunks/{usePopoverPosition-DkiTLnBm.js.map → usePopoverPosition-Ozg5iU3y.js.map} +1 -1
  166. package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js → useScrollToBlock-CrUCYsIc.js} +3 -3
  167. package/dist/cdn/chunks/{useScrollToBlock-KcSAuXKz.js.map → useScrollToBlock-CrUCYsIc.js.map} +1 -1
  168. package/dist/cdn/editor.css +1 -1
  169. package/dist/cdn/editor.js +1191 -1181
  170. package/dist/cdn/editor.js.map +1 -1
  171. package/dist/{check-80E6ZGin.js → check-JK8Uacq0.js} +1 -1
  172. package/dist/{chevron-down-BmkLsn2c.js → chevron-down-a-fb_Ijn.js} +1 -1
  173. package/dist/{chevron-up-DJSAzlUU.js → chevron-up-x4l0et_Y.js} +1 -1
  174. package/dist/{circle-alert-BsCfZryY.js → circle-alert-CJDW5LZo.js} +1 -1
  175. package/dist/{clock-BcLIngSK.js → clock-BW6rXk2f.js} +1 -1
  176. package/dist/{cloud-DwJ8ebNl.js → cloud-BMzRKCbk.js} +3 -3
  177. package/dist/{createCloudRuntime-CdXQdl34.js → createCloudRuntime-j6a9Z-vL.js} +8 -8
  178. package/dist/{createLucideIcon-eeetEgBb.js → createLucideIcon-Bvw1Zx56.js} +3 -3
  179. package/dist/{cdn/chunks/de-DbayqpK-.js → de-C6J2Iae8.js} +5 -2
  180. package/dist/{dist-BFcAowKZ.js → dist-BxFbxpgW.js} +5 -5
  181. package/dist/{dist-Do83S47T.js → dist-ByT5fgKq.js} +2 -2
  182. package/dist/{dist-CQ9T1yi-.js → dist-C1tsW_99.js} +2 -2
  183. package/dist/{dist-Cd0LvUlh.js → dist-CtF9STPS.js} +2 -2
  184. package/dist/{dist-CvW1nNzy.js → dist-CtMXAH7a.js} +2 -2
  185. package/dist/dist-D08oVYhr.js +5 -0
  186. package/dist/{dist-prgdllHG.js → dist-D7WY8VPq.js} +2 -2
  187. package/dist/{dist-D8MekYFl.js → dist-DC-3T0ED.js} +2 -2
  188. package/dist/{dist-BC1y_U2m.js → dist-DL9334yz.js} +1418 -1411
  189. package/dist/{dist-BkAVGSRr.js → dist-DkcA6epL.js} +7 -7
  190. package/dist/dist-DzdeVn-W.js +5 -0
  191. package/dist/{dist-CzVIVbSa.js → dist-PL6vP4SC.js} +61 -61
  192. package/dist/{dist-CuuPnIMy.js → dist-dNiknO7j.js} +4 -4
  193. package/dist/{dist-CWC5t5J3.js → dist-f7HXo6j6.js} +2 -2
  194. package/dist/{dist-BUpBA58N.js → dist-heatwAdo.js} +1 -1
  195. package/dist/{en-l0ib5X0f.js → en-BaUYOQi8.js} +5 -0
  196. package/dist/{es-CMQ-5PJP.js → es-CKDYfJYn.js} +5 -0
  197. package/dist/{extensions-BYImwYeO.js → extensions-5xeZR9U9.js} +21 -21
  198. package/dist/formatAbsoluteDateTime-DMmop3C-.js +13 -0
  199. package/dist/{cdn/chunks/fr-DNXmZWAq.js → fr-L8DR73mK.js} +5 -2
  200. package/dist/{image-up-BfxY85ar.js → image-up-CuzFc1mu.js} +1 -1
  201. package/dist/index.d.ts +41 -0
  202. package/dist/{info-LX4QFBr6.js → info-DybAwcA3.js} +1 -1
  203. package/dist/keys-BJJ4hJ4z.js +10 -0
  204. package/dist/{liquid.browser-CJgDDvQz.js → liquid.browser-wPG0n4Cs.js} +3 -3
  205. package/dist/{loader-circle-Bwima0v8.js → loader-circle-t-SVgmJ3.js} +1 -1
  206. package/dist/{message-circle-Box-mf2k.js → message-circle-DtwKrlhN.js} +1 -1
  207. package/dist/{cdn/chunks/nl-BylRRHYJ.js → nl-GDWeuX18.js} +5 -2
  208. package/dist/{pencil-BM9gSq_J.js → pencil-2qhC-Y4q.js} +1 -1
  209. package/dist/{preRenderCustomBlocks-2KyBJocY.js → preRenderCustomBlocks-CSIF-HyJ.js} +1 -1
  210. package/dist/{pt-BR-BVoJhpie.js → pt-BR-B1AVVhWj.js} +5 -0
  211. package/dist/{refresh-cw-BuzFX0wH.js → refresh-cw-C8SBuPdg.js} +1 -1
  212. package/dist/{runtime-dom.esm-bundler-Co_SPqAz.js → runtime-dom.esm-bundler-BuG03jBM.js} +3 -3
  213. package/dist/{scan-line-Duq1WXoG.js → scan-line-E7w4yQyv.js} +1 -1
  214. package/dist/{send-DZ4nOnIA.js → send-BoqJliF6.js} +1 -1
  215. package/dist/{shield-check-Cz4BRYdv.js → shield-check-D0dMaHtE.js} +1 -1
  216. package/dist/{sparkles-DP8RqOeL.js → sparkles-Dy2BJjiX.js} +1 -1
  217. package/dist/style.css +1 -1
  218. package/dist/templatical-editor.js +1031 -1022
  219. package/dist/{text-align-start-D7tXhjUP.js → text-align-start-DrxjxvIy.js} +1 -1
  220. package/dist/{trash-2-BS7lZeyb.js → trash-rYMzzHZd.js} +2 -2
  221. package/dist/{triangle-alert-Cx4mQGjx.js → triangle-alert-DxnFj4-B.js} +1 -1
  222. package/dist/{upload-L8tLVM10.js → upload-DZu1adQz.js} +1 -1
  223. package/dist/{useAliveFlag-AFbwfHlJ.js → useAliveFlag-PVmp95MT.js} +1 -1
  224. package/dist/{useCloudI18n-BA69BpQ_.js → useCloudI18n-DaKcDMDz.js} +2 -2
  225. package/dist/{useEditorCore-CtR46sbJ.js → useEditorCore-BWrxHVKW.js} +1246 -1067
  226. package/dist/{useEditorRoot-Cdo8Vhxa.js → useEditorRoot-E-oxHaEI.js} +2 -2
  227. package/dist/{useI18n-B135ASaG.js → useI18n-DUVIAju4.js} +2 -2
  228. package/dist/{useMergeTag-Cx36rtrt.js → useMergeTag-CuZZeiSE.js} +3 -3
  229. package/dist/{usePopoverPosition-DAOHr_iM.js → usePopoverPosition-APlWgXoQ.js} +2 -2
  230. package/dist/{useScrollToBlock-tndC8vKo.js → useScrollToBlock--AzCOzlg.js} +3 -3
  231. package/dist/{vue.runtime.esm-bundler-BhOUdXMi.js → vue.runtime.esm-bundler-D9JUcKrV.js} +4 -4
  232. package/dist/{x-ChIQ7HwK.js → x-DJOd1hS4.js} +1 -1
  233. package/package.json +23 -23
  234. package/dist/SavedBlocksBrowserModal-SST-7EMK.js +0 -323
  235. package/dist/VersionHistoryMenu-DBxSJR1k.js +0 -155
  236. package/dist/cdn/chunks/BlockPreviewCanvas-DNBjBKBI.js.map +0 -1
  237. package/dist/cdn/chunks/SavedBlocksBrowserModal-BRdN56r7.js.map +0 -1
  238. package/dist/cdn/chunks/VersionHistoryMenu-CMqZFUHE.js +0 -148
  239. package/dist/cdn/chunks/VersionHistoryMenu-CMqZFUHE.js.map +0 -1
  240. package/dist/cdn/chunks/ca-DZSrLNXK.js.map +0 -1
  241. package/dist/cdn/chunks/de-DbayqpK-.js.map +0 -1
  242. package/dist/cdn/chunks/en-BzFt4b80.js +0 -2
  243. package/dist/cdn/chunks/en-l0ib5X0f.js.map +0 -1
  244. package/dist/cdn/chunks/es-CMQ-5PJP.js.map +0 -1
  245. package/dist/cdn/chunks/fr-DNXmZWAq.js.map +0 -1
  246. package/dist/cdn/chunks/icons-ciivb5BS.js.map +0 -1
  247. package/dist/cdn/chunks/keys-BJ770Mwm.js +0 -12
  248. package/dist/cdn/chunks/keys-BJ770Mwm.js.map +0 -1
  249. package/dist/cdn/chunks/nl-BylRRHYJ.js.map +0 -1
  250. package/dist/cdn/chunks/pt-BR-BVoJhpie.js.map +0 -1
  251. package/dist/cdn/chunks/src-Bid3cmHa.js.map +0 -1
  252. package/dist/cdn/chunks/src-Cf0ohOog.js.map +0 -1
  253. package/dist/cdn/chunks/tiptap-Ey0FpaX7.js.map +0 -1
  254. package/dist/cdn/chunks/useEditorCore-CTNB2Mkl.js.map +0 -1
  255. package/dist/cdn/chunks/useEditorRoot-BFGRBGts.js +0 -10
  256. package/dist/dist-BQqIUwvB.js +0 -5
  257. package/dist/dist-waDcdb1l.js +0 -5
  258. package/dist/keys-BJtoezGU.js +0 -10
@@ -1,7 +1,7 @@
1
- import { Bn as e, Bt as t, Cn as n, Dn as r, Gn as i, Hn as a, Ht as o, Jn as s, Kn as c, Ln as l, Mt as u, T as d, Un as f, Vn as p, Vt as m, Wn as h, Xn as g, Yn as _, Zn as v, f as y, fn as b, ft as ee, gn as x, it as te, jt as ne, m as S, mt as re, nt as ie, pn as C, pt as ae, qn as w, s as T, ut as oe, w as se, yn as ce, zn as E } from "./dist-BC1y_U2m.js";
2
- import { Link as le } from "./dist-CQ9T1yi-.js";
3
- import { Underline as ue } from "./dist-D8MekYFl.js";
4
- //#region ../../node_modules/.pnpm/@tiptap+core@3.31.1_@tiptap+pm@3.31.1/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
1
+ import { Bn as e, Bt as t, Cn as n, Dn as r, Gn as i, Hn as a, Ht as o, Jn as s, Kn as c, Ln as l, Mt as u, T as d, Un as f, Vn as p, Vt as m, Wn as h, Xn as g, Yn as _, Zn as v, f as y, fn as b, ft as ee, gn as x, it as te, jt as ne, m as S, mt as re, nt as ie, pn as C, pt as ae, qn as w, s as T, ut as oe, w as se, yn as ce, zn as E } from "./dist-DL9334yz.js";
2
+ import { Link as le } from "./dist-C1tsW_99.js";
3
+ import { Underline as ue } from "./dist-DC-3T0ED.js";
4
+ //#region ../../node_modules/.pnpm/@tiptap+core@3.31.3_@tiptap+pm@3.31.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js
5
5
  var de = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet();
6
6
  function D(e) {
7
7
  let t = e;
@@ -754,7 +754,7 @@ function N(e) {
754
754
  return t < 0 ? j[n] : j[t] + j[n];
755
755
  }
756
756
  function P(e) {
757
- if (!(!e || /^\d+$/.test(e))) {
757
+ if (e && !/^\d+$/.test(e)) {
758
758
  if (Xe(e)) return e === e.toLowerCase() ? "i" : "I";
759
759
  if (/^[a-z]{1,2}$/.test(e)) return "a";
760
760
  if (/^[A-Z]{1,2}$/.test(e)) return "A";
@@ -1530,7 +1530,7 @@ T.create({
1530
1530
  }
1531
1531
  });
1532
1532
  //#endregion
1533
- //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.31.1_@tiptap+core@3.31.1_@tiptap+pm@3.31.1_/node_modules/@tiptap/extension-paragraph/dist/index.js
1533
+ //#region ../../node_modules/.pnpm/@tiptap+extension-paragraph@3.31.3_@tiptap+core@3.31.3_@tiptap+pm@3.31.3_/node_modules/@tiptap/extension-paragraph/dist/index.js
1534
1534
  var z = "&nbsp;", B = "\xA0", Pt = S.create({
1535
1535
  name: "paragraph",
1536
1536
  priority: 1e3,
@@ -2347,7 +2347,7 @@ function vn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, fro
2347
2347
  }), c;
2348
2348
  }
2349
2349
  function yn({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
2350
- if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
2350
+ if (!e.isEditable && t.showOnlyWhenEditable) return null;
2351
2351
  let { anchor: o } = i, s = [], c = e.isEmpty;
2352
2352
  if (t.showOnlyCurrent && !t.includeChildren) {
2353
2353
  let i = r.resolve(o), a = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : o;
@@ -0,0 +1,5 @@
1
+ import { FontFamily as e } from "./dist-D7WY8VPq.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.31.3_@tiptap+extension-text-style@3.31.3_@tiptap+core@3.31.3_@tiptap+pm@3.31.3__/node_modules/@tiptap/extension-font-family/dist/index.js
3
+ var t = e;
4
+ //#endregion
5
+ export { e as FontFamily, t as default };
@@ -203,7 +203,7 @@ function x(e, t) {
203
203
  function S() {
204
204
  return crypto.randomUUID();
205
205
  }
206
- function te(e = 0) {
206
+ function C(e = 0) {
207
207
  return {
208
208
  top: e,
209
209
  right: e,
@@ -211,101 +211,101 @@ function te(e = 0) {
211
211
  left: e
212
212
  };
213
213
  }
214
- function C(e = 10) {
215
- return { padding: te(e) };
214
+ function w(e = 10) {
215
+ return { padding: C(e) };
216
216
  }
217
- function w(e = {}) {
217
+ function T(e = {}) {
218
218
  return x({
219
219
  id: S(),
220
220
  type: "title",
221
221
  ...i,
222
- styles: C()
222
+ styles: w()
223
223
  }, e);
224
224
  }
225
- function T(e = {}) {
225
+ function E(e = {}) {
226
226
  return x({
227
227
  id: S(),
228
228
  type: "paragraph",
229
229
  ...a,
230
- styles: C()
230
+ styles: w()
231
231
  }, e);
232
232
  }
233
- function E(e = {}) {
233
+ function D(e = {}) {
234
234
  return x({
235
235
  id: S(),
236
236
  type: "image",
237
237
  ...o,
238
- styles: C()
238
+ styles: w()
239
239
  }, e);
240
240
  }
241
- function D(e = {}) {
241
+ function O(e = {}) {
242
242
  return x({
243
243
  id: S(),
244
244
  type: "button",
245
245
  ...s,
246
- styles: C()
246
+ styles: w()
247
247
  }, e);
248
248
  }
249
- function O(e = {}) {
249
+ function k(e = {}) {
250
250
  return x({
251
251
  id: S(),
252
252
  type: "divider",
253
253
  ...c,
254
- styles: C(20)
254
+ styles: w(20)
255
255
  }, e);
256
256
  }
257
- function k(e = {}) {
257
+ function A(e = {}) {
258
258
  return x({
259
259
  id: S(),
260
260
  type: "section",
261
261
  ...l,
262
262
  children: [[]],
263
- styles: C(20)
263
+ styles: w(20)
264
264
  }, e);
265
265
  }
266
- function A(e = {}) {
266
+ function j(e = {}) {
267
267
  return x({
268
268
  id: S(),
269
269
  type: "video",
270
270
  ...u,
271
- styles: C()
271
+ styles: w()
272
272
  }, e);
273
273
  }
274
- function j(e = {}) {
274
+ function M(e = {}) {
275
275
  return x({
276
276
  id: S(),
277
277
  type: "social",
278
278
  icons: [],
279
279
  ...d,
280
- styles: C()
280
+ styles: w()
281
281
  }, e);
282
282
  }
283
- function M(e = {}) {
283
+ function N(e = {}) {
284
284
  return x({
285
285
  id: S(),
286
286
  type: "spacer",
287
287
  ...f,
288
- styles: C(0)
288
+ styles: w(0)
289
289
  }, e);
290
290
  }
291
- function N(e = {}) {
291
+ function P(e = {}) {
292
292
  return x({
293
293
  id: S(),
294
294
  type: "html",
295
295
  ...p,
296
- styles: C()
296
+ styles: w()
297
297
  }, e);
298
298
  }
299
- function P(e = {}) {
299
+ function F(e = {}) {
300
300
  return x({
301
301
  id: S(),
302
302
  type: "menu",
303
303
  items: [],
304
304
  ...m,
305
- styles: C()
305
+ styles: w()
306
306
  }, e);
307
307
  }
308
- function ne(e, t) {
308
+ function te(e, t) {
309
309
  return Array.from({ length: t }, () => ({
310
310
  id: S(),
311
311
  cells: Array.from({ length: e }, () => ({
@@ -314,30 +314,30 @@ function ne(e, t) {
314
314
  }))
315
315
  }));
316
316
  }
317
- function F(e = {}) {
317
+ function I(e = {}) {
318
318
  return x({
319
319
  id: S(),
320
320
  type: "table",
321
- rows: ne(3, 3),
321
+ rows: te(3, 3),
322
322
  ...h,
323
- styles: C()
323
+ styles: w()
324
324
  }, e);
325
325
  }
326
- function I(e = {}) {
326
+ function L(e = {}) {
327
327
  return x({
328
328
  id: S(),
329
329
  type: "countdown",
330
330
  ...g,
331
- styles: C()
331
+ styles: w()
332
332
  }, e);
333
333
  }
334
- function L(e) {
334
+ function ne(e) {
335
335
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
336
336
  }
337
337
  function R(e) {
338
338
  let t = {};
339
- for (let n of e.fields) t[n.key] = L(n);
340
- let n = x(C(), e.defaultStyles);
339
+ for (let n of e.fields) t[n.key] = ne(n);
340
+ let n = x(w(), e.defaultStyles);
341
341
  return {
342
342
  id: S(),
343
343
  type: "custom",
@@ -347,29 +347,29 @@ function R(e) {
347
347
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
348
348
  };
349
349
  }
350
- function re(e, t) {
350
+ function z(e, t) {
351
351
  switch (e) {
352
- case "section": return k(t?.section);
353
- case "title": return w(t?.title);
354
- case "paragraph": return T(t?.paragraph);
355
- case "image": return E(t?.image);
356
- case "button": return D(t?.button);
357
- case "divider": return O(t?.divider);
358
- case "video": return A(t?.video);
359
- case "social": return j(t?.social);
360
- case "spacer": return M(t?.spacer);
361
- case "html": return N(t?.html);
362
- case "menu": return P(t?.menu);
363
- case "table": return F(t?.table);
364
- case "countdown": return I(t?.countdown);
352
+ case "section": return A(t?.section);
353
+ case "title": return T(t?.title);
354
+ case "paragraph": return E(t?.paragraph);
355
+ case "image": return D(t?.image);
356
+ case "button": return O(t?.button);
357
+ case "divider": return k(t?.divider);
358
+ case "video": return j(t?.video);
359
+ case "social": return M(t?.social);
360
+ case "spacer": return N(t?.spacer);
361
+ case "html": return P(t?.html);
362
+ case "menu": return F(t?.menu);
363
+ case "table": return I(t?.table);
364
+ case "countdown": return L(t?.countdown);
365
365
  default: throw Error(`Unknown block type: ${e}`);
366
366
  }
367
367
  }
368
- function z(e) {
368
+ function B(e) {
369
369
  let t = JSON.parse(JSON.stringify(e));
370
- return t.id = S(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => z(e)))), t;
370
+ return t.id = S(), t.type === "section" && (t.children = t.children.map((e) => e.map((e) => B(e)))), t;
371
371
  }
372
- function ie(e) {
372
+ function re(e) {
373
373
  let t = /* @__PURE__ */ new WeakSet();
374
374
  return JSON.parse(JSON.stringify(e, (e, n) => {
375
375
  if (typeof n == "object" && n) {
@@ -379,8 +379,8 @@ function ie(e) {
379
379
  return n;
380
380
  }));
381
381
  }
382
- var B = /* @__PURE__ */ new Set(["\"", "'"]);
383
- function ae(e, t) {
382
+ var V = /* @__PURE__ */ new Set(["\"", "'"]);
383
+ function ie(e, t) {
384
384
  let n = null;
385
385
  for (let r = t; r < e.length; r++) {
386
386
  let t = e[r];
@@ -388,7 +388,7 @@ function ae(e, t) {
388
388
  t === n && (n = null);
389
389
  continue;
390
390
  }
391
- if (B.has(t)) {
391
+ if (V.has(t)) {
392
392
  n = t;
393
393
  continue;
394
394
  }
@@ -396,7 +396,7 @@ function ae(e, t) {
396
396
  }
397
397
  return -1;
398
398
  }
399
- function V(e) {
399
+ function ae(e) {
400
400
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
401
401
  }
402
402
  function H(e) {
@@ -425,7 +425,7 @@ function G(e, t) {
425
425
  for (; r < e.length && (H(e[r]) || e[r] === "/");) r++;
426
426
  if (r >= e.length) break;
427
427
  let t = r;
428
- for (; r < e.length && V(e[r]);) r++;
428
+ for (; r < e.length && ae(e[r]);) r++;
429
429
  let i = e.substring(t, r).toLowerCase();
430
430
  if (i === "") {
431
431
  r++;
@@ -435,7 +435,7 @@ function G(e, t) {
435
435
  if (e[r] !== "=") continue;
436
436
  for (r++; r < e.length && H(e[r]);) r++;
437
437
  let a = e[r];
438
- if (B.has(a)) {
438
+ if (V.has(a)) {
439
439
  let t = r + 1, o = e.indexOf(a, t);
440
440
  if (o === -1) return null;
441
441
  if (i === n) return W(e.substring(t, o));
@@ -508,10 +508,10 @@ function X(e, t) {
508
508
  function fe(e, t) {
509
509
  return $(e, "data-merge-tag", (e) => me(X(e, t) ?? Y(e, t)), { unwrap: (e) => X(e, t) !== void 0 });
510
510
  }
511
- function Z(e) {
511
+ function pe(e) {
512
512
  return e.some((e) => e.sample !== void 0);
513
513
  }
514
- function pe(e, t) {
514
+ function Z(e, t) {
515
515
  if (!e) return e;
516
516
  let n = e;
517
517
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
@@ -548,7 +548,7 @@ function $(e, t, n, r) {
548
548
  i += e.substring(a, o + 5), a = o + 5;
549
549
  continue;
550
550
  }
551
- let c = ae(e, o + 5);
551
+ let c = ie(e, o + 5);
552
552
  if (c === -1) {
553
553
  i += e.substring(a);
554
554
  break;
@@ -589,4 +589,4 @@ var ye = class extends Error {
589
589
  }
590
590
  };
591
591
  //#endregion
592
- export { ce as A, ie as B, F as C, Q as D, S as E, ue as F, pe as H, ve as I, _e as L, Z as M, r as N, Y as O, ge as P, de as R, M as S, A as T, fe as V, E as _, n as a, k as b, z as c, D as d, I as f, N as g, O as h, t as i, se as j, X as k, he as l, ee as m, v as n, K as o, R as p, e as r, ye as s, _ as t, re as u, P as v, w, j as x, T as y, le as z };
592
+ export { X as A, le as B, I as C, S as D, b as E, ge as F, fe as H, ue as I, ve as L, se as M, pe as N, Q as O, r as P, _e as R, N as S, j as T, Z as U, re as V, D as _, n as a, A as b, B as c, O as d, L as f, P as g, k as h, t as i, ce as j, Y as k, he as l, ee as m, v as n, K as o, R as p, e as r, ye as s, _ as t, z as u, F as v, T as w, M as x, E as y, de as z };
@@ -1,5 +1,5 @@
1
- import { D as e, L as t, Q as n, R as r, rt as i, s as a, tt as o, x as s, y as c } from "./vue.runtime.esm-bundler-BhOUdXMi.js";
2
- import { _ as l, a as u, d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./dist-BUpBA58N.js";
1
+ import { D as e, L as t, Q as n, R as r, rt as i, s as a, tt as o, x as s, y as c } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
+ import { _ as l, a as u, d, i as f, l as p, n as m, o as h, r as g, s as _, t as v, u as y } from "./dist-heatwAdo.js";
3
3
  //#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.42_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
4
4
  var b = m ? window : void 0;
5
5
  m && window.document, m && window.navigator, m && window.location;
@@ -55,7 +55,7 @@ function w(e, t, n = {}) {
55
55
  }
56
56
  let m = (n) => {
57
57
  let r = x(e);
58
- if (n.target != null && !(!(r instanceof Element) && f(e) && p(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
58
+ if (n.target != null && !(!(r instanceof Element) && f(e) && p(e, n)) && r && r !== n.target && !n.composedPath().includes(r)) {
59
59
  if ("detail" in n && n.detail === 0 && (l = !d(n)), !l) {
60
60
  l = !0;
61
61
  return;
@@ -73,7 +73,7 @@ function w(e, t, n = {}) {
73
73
  }),
74
74
  S(r, "pointerdown", (t) => {
75
75
  let n = x(e);
76
- l = !d(t) && !!(n && !t.composedPath().includes(n));
76
+ l = !d(t) && !(!n || t.composedPath().includes(n));
77
77
  }, { passive: !0 }),
78
78
  s && S(r, "blur", (n) => {
79
79
  setTimeout(() => {
@@ -1,5 +1,5 @@
1
- import { bt as e, f as t, fn as n, gn as r, pn as i } from "./dist-BC1y_U2m.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.31.1_@tiptap+core@3.31.1_@tiptap+pm@3.31.1_/node_modules/@tiptap/extension-highlight/dist/index.js
1
+ import { bt as e, f as t, fn as n, gn as r, pn as i } from "./dist-DL9334yz.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-highlight@3.31.3_@tiptap+core@3.31.3_@tiptap+pm@3.31.3_/node_modules/@tiptap/extension-highlight/dist/index.js
3
3
  var a = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, o = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, s = t.create({
4
4
  name: "highlight",
5
5
  addOptions() {
@@ -1,4 +1,4 @@
1
- import { D as e, G as t, L as n, Q as r, S as i, T as a, U as o, X as s, Z as c, q as l, tt as u, x as d, y as f } from "./vue.runtime.esm-bundler-BhOUdXMi.js";
1
+ import { D as e, G as t, L as n, Q as r, S as i, T as a, U as o, X as s, Z as c, q as l, tt as u, x as d, y as f } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
2
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.42_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
3
  function p(e, t) {
4
4
  return o() ? (l(e, t), !0) : !1;
@@ -58,6 +58,11 @@ var e = {
58
58
  table: "Table",
59
59
  countdown: "Countdown"
60
60
  },
61
+ blockDefaults: {
62
+ title: "Enter your title",
63
+ paragraph: "Enter your text here",
64
+ button: "Click Here"
65
+ },
61
66
  sidebar: {
62
67
  content: "Content",
63
68
  settings: "Settings",
@@ -58,6 +58,11 @@ var e = {
58
58
  table: "Tabla",
59
59
  countdown: "Cuenta atrás"
60
60
  },
61
+ blockDefaults: {
62
+ title: "Escribe tu título",
63
+ paragraph: "Escribe tu texto aquí",
64
+ button: "Haz clic aquí"
65
+ },
61
66
  sidebar: {
62
67
  content: "Contenido",
63
68
  settings: "Configuración",
@@ -1,11 +1,11 @@
1
- import { B as e, Dt as t, Ot as n, T as r, X as i, c as a, d as o, k as s, kt as c, l, rt as u, s as d, u as f, v as p, z as m } from "./vue.runtime.esm-bundler-BhOUdXMi.js";
2
- import { a as h, c as g, s as _ } from "./runtime-dom.esm-bundler-Co_SPqAz.js";
3
- import { D as v, O as y, P as b, o as x } from "./dist-CzVIVbSa.js";
4
- import { t as S } from "./useI18n-B135ASaG.js";
5
- import { t as C } from "./useMergeTag-Cx36rtrt.js";
6
- import { gn as w, m as T, s as E, u as D, v as O } from "./dist-BC1y_U2m.js";
7
- import { i as k, r as A, t as j } from "./MergeTagSuggestion-DyUcY_9e.js";
8
- import { n as M, t as N } from "./dist-BFcAowKZ.js";
1
+ import { B as e, Dt as t, Ot as n, T as r, X as i, c as a, d as o, k as s, kt as c, l, rt as u, s as d, u as f, v as p, z as m } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
+ import { a as h, c as g, s as _ } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
+ import { F as v, O as y, k as b, o as x } from "./dist-PL6vP4SC.js";
4
+ import { t as S } from "./useI18n-DUVIAju4.js";
5
+ import { t as C } from "./useMergeTag-CuZZeiSE.js";
6
+ import { gn as w, m as T, s as E, u as D, v as O } from "./dist-DL9334yz.js";
7
+ import { i as k, r as A, t as j } from "./MergeTagSuggestion-CoCuzEmW.js";
8
+ import { n as M, t as N } from "./dist-BxFbxpgW.js";
9
9
  //#region src/extensions/FontSize.ts
10
10
  var P = E.create({
11
11
  name: "fontSize",
@@ -101,9 +101,9 @@ var P = E.create({
101
101
  updateAttributes: { type: Function }
102
102
  },
103
103
  setup(p) {
104
- let y = p, { syntax: x } = C(), { t: w } = S(), T = d(() => b(y.node.attrs.value, x)), E = d(() => v(y.node.attrs.value, x)), D = i(!1), O = i(""), k = i(null), A = !1;
104
+ let b = p, { syntax: x } = C(), { t: w } = S(), T = d(() => v(b.node.attrs.value, x)), E = d(() => y(b.node.attrs.value, x)), D = i(!1), O = i(""), k = i(null), A = !1;
105
105
  function j() {
106
- O.value = y.node.attrs.value, A = !1, D.value = !0, r(() => {
106
+ O.value = b.node.attrs.value, A = !1, D.value = !0, r(() => {
107
107
  k.value?.focus(), k.value?.select();
108
108
  });
109
109
  }
@@ -115,9 +115,9 @@ var P = E.create({
115
115
  D.value = !1;
116
116
  return;
117
117
  }
118
- e !== y.node.attrs.value && y.updateAttributes({
118
+ e !== b.node.attrs.value && b.updateAttributes({
119
119
  value: e,
120
- keyword: b(e, x) ? v(e, x) : ""
120
+ keyword: v(e, x) ? y(e, x) : ""
121
121
  }), D.value = !1;
122
122
  }
123
123
  function P(e) {
@@ -223,12 +223,12 @@ var W = T.create({
223
223
  return [{ tag: "span[data-logic-merge-tag]" }];
224
224
  },
225
225
  renderHTML({ node: e, HTMLAttributes: t }) {
226
- if (!b(e.attrs.value, this.options.syntax)) return [
226
+ if (!v(e.attrs.value, this.options.syntax)) return [
227
227
  "span",
228
228
  {},
229
229
  e.attrs.value
230
230
  ];
231
- let n = v(e.attrs.value, this.options.syntax);
231
+ let n = y(e.attrs.value, this.options.syntax);
232
232
  return [
233
233
  "span",
234
234
  w(t, {
@@ -253,8 +253,8 @@ var W = T.create({
253
253
  find: e,
254
254
  handler: ({ state: e, range: t, match: n }) => {
255
255
  let r = n[0];
256
- if (!b(r, this.options.syntax)) return;
257
- let i = v(r, this.options.syntax), a = this.type.create({
256
+ if (!v(r, this.options.syntax)) return;
257
+ let i = y(r, this.options.syntax), a = this.type.create({
258
258
  value: r,
259
259
  keyword: i
260
260
  });
@@ -268,8 +268,8 @@ var W = T.create({
268
268
  find: e,
269
269
  handler: ({ state: e, range: t, match: n }) => {
270
270
  let r = n[0];
271
- if (!b(r, this.options.syntax)) return;
272
- let i = v(r, this.options.syntax), a = this.type.create({
271
+ if (!v(r, this.options.syntax)) return;
272
+ let i = y(r, this.options.syntax), a = this.type.create({
273
273
  value: r,
274
274
  keyword: i
275
275
  });
@@ -386,7 +386,7 @@ var W = T.create({
386
386
  return [{ tag: "span[data-merge-tag]" }];
387
387
  },
388
388
  renderHTML({ node: e, HTMLAttributes: t }) {
389
- let n = y(e.attrs.value, this.options.mergeTags);
389
+ let n = b(e.attrs.value, this.options.mergeTags);
390
390
  return [
391
391
  "span",
392
392
  w(t, {
@@ -419,7 +419,7 @@ var W = T.create({
419
419
  return [new D({
420
420
  find: e,
421
421
  handler: ({ state: e, range: t, match: n }) => {
422
- let r = n[0], i = y(r, this.options.mergeTags), a = this.type.create({
422
+ let r = n[0], i = b(r, this.options.mergeTags), a = this.type.create({
423
423
  label: i,
424
424
  value: r
425
425
  });
@@ -432,7 +432,7 @@ var W = T.create({
432
432
  return [new O({
433
433
  find: e,
434
434
  handler: ({ state: e, range: t, match: n }) => {
435
- let r = n[0], i = y(r, this.options.mergeTags), a = this.type.create({
435
+ let r = n[0], i = b(r, this.options.mergeTags), a = this.type.create({
436
436
  label: i,
437
437
  value: r
438
438
  });
@@ -0,0 +1,13 @@
1
+ //#region src/utils/formatAbsoluteDateTime.ts
2
+ function e(e, t, n) {
3
+ let r = new Date(e);
4
+ if (Number.isNaN(r.getTime())) return "";
5
+ let i = t?.trim().replace(/_/g, "-") || void 0;
6
+ try {
7
+ return r.toLocaleString(i, n);
8
+ } catch {
9
+ return r.toLocaleString(void 0, n);
10
+ }
11
+ }
12
+ //#endregion
13
+ export { e as t };
@@ -59,6 +59,11 @@ var e = {
59
59
  table: "Tableau",
60
60
  countdown: "Compte à rebours"
61
61
  },
62
+ blockDefaults: {
63
+ title: "Saisissez votre titre",
64
+ paragraph: "Saisissez votre texte ici",
65
+ button: "Cliquez ici"
66
+ },
62
67
  sidebar: {
63
68
  content: "Contenu",
64
69
  settings: "Paramètres",
@@ -608,5 +613,3 @@ var e = {
608
613
  };
609
614
  //#endregion
610
615
  export { e as default };
611
-
612
- //# sourceMappingURL=fr-DNXmZWAq.js.map
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-eeetEgBb.js";
1
+ import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
2
  var t = e("image-up", [
3
3
  ["path", {
4
4
  d: "M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",
package/dist/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import { TemplateContent } from '@templatical/types';
36
36
  import { TemplateDefaults } from '@templatical/types';
37
37
  import { TemplatePatch } from '@templatical/types';
38
38
  import { TemplateSaveTrigger } from '@templatical/types';
39
+ import { TemplateSettingsConfig } from '@templatical/types';
39
40
  import { TemplatesOptions } from '@templatical/types';
40
41
  import { TemplatesProvider } from '@templatical/types';
41
42
  import { TestEmailOptions } from '@templatical/types';
@@ -383,6 +384,8 @@ export { TemplatePatch }
383
384
 
384
385
  export { TemplateSaveTrigger }
385
386
 
387
+ export { TemplateSettingsConfig }
388
+
386
389
  export { TemplatesOptions }
387
390
 
388
391
  export { TemplatesProvider }
@@ -572,6 +575,15 @@ export declare interface TemplaticalCloudEditorConfig {
572
575
  * config for details and an example.
573
576
  */
574
577
  colors?: ColorsConfig;
578
+ /**
579
+ * Which template settings the Settings panel exposes — an allowlist over the
580
+ * members of `TemplateSettings`, `false` for none (which also removes the
581
+ * tab). Omit for every setting. Presentation only, and accepted here for the
582
+ * same reason `paletteBlocks` and `colors` are: it constrains the editor's own
583
+ * chrome, and Cloud exercises none of it. See `templateSettings` on the OSS
584
+ * editor config for details and an example.
585
+ */
586
+ templateSettings?: TemplateSettingsConfig;
575
587
  onChange?: (content: TemplateContent) => void;
576
588
  /**
577
589
  * Called whenever the editor's unsaved-changes state flips. **The same key and
@@ -993,6 +1005,35 @@ export declare interface TemplaticalEditorConfig {
993
1005
  * configured, since that would leave the picker with no way to set a color.
994
1006
  */
995
1007
  colors?: ColorsConfig;
1008
+ /**
1009
+ * Which template settings the Settings panel exposes — an allowlist over the
1010
+ * members of `TemplateSettings`.
1011
+ *
1012
+ * ```ts
1013
+ * // Layout and Appearance only: no Language card, no Preheader card.
1014
+ * templateSettings: { fields: ['width', 'backgroundColor', 'fontFamily'] }
1015
+ *
1016
+ * templateSettings: { fields: false } // no Settings tab at all
1017
+ * ```
1018
+ *
1019
+ * **Omitted by default**, in which case every setting is editable. The list
1020
+ * only narrows: a card renders while at least one of its settings survives,
1021
+ * and the tab itself stops rendering once none do. It never reorders —
1022
+ * settings sit in fixed cards, so unlike {@link paletteBlocks} there is no
1023
+ * order to express.
1024
+ *
1025
+ * Presentation only, and not a security boundary. Hiding a setting never
1026
+ * changes its value: whatever the loaded content carries keeps rendering and
1027
+ * keeps round-tripping through `getContent()`. Set the ones you hide from the
1028
+ * content you hand the editor — `init({ content })`, or the `templates`
1029
+ * provider's own `load`, which is the seam for "this template's locale comes
1030
+ * from my application, not from the author".
1031
+ *
1032
+ * Sibling restrictions live on their own keys: {@link paletteBlocks} for the
1033
+ * block palette, `fonts.builtIns` for the font picker, `colors.allowCustom`
1034
+ * for free-form colors, and `templates.nameField` for the header's name.
1035
+ */
1036
+ templateSettings?: TemplateSettingsConfig;
996
1037
  /**
997
1038
  * Storage backend for **saved blocks** — reusable groups of blocks a user
998
1039
  * saves from the canvas and re-inserts into other templates.
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-eeetEgBb.js";
1
+ import { t as e } from "./createLucideIcon-Bvw1Zx56.js";
2
2
  var t = e("info", [
3
3
  ["circle", {
4
4
  cx: "12",
@@ -0,0 +1,10 @@
1
+ import { S as e } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
+ //#region src/keys.ts
3
+ var t = Symbol("translations"), n = Symbol("editor"), r = Symbol("history"), i = Symbol("blockActions"), a = Symbol("conditionPreview"), o = Symbol("appliesConditionFilter"), s = Symbol("fontsManager"), c = Symbol("themeStyles"), l = Symbol("tplUiTheme"), u = Symbol("tplUiLocale"), d = Symbol("blockDefaults"), f = Symbol("blockRegistry"), p = Symbol("customBlockDefinitions"), m = Symbol("paletteBlocks"), h = Symbol("htmlBlockPreview"), g = Symbol("colors"), _ = Symbol("templateSettingsFields"), v = Symbol("customBlockStylesheets"), y = Symbol("mergeTags"), b = Symbol("mergeTagSyntax"), x = Symbol("onRequestMergeTag"), S = Symbol("mergeTagAutocomplete"), C = Symbol("mergeTagSampleMode"), w = Symbol("useMergeTagSamples"), T = Symbol("resolvePreview"), E = Symbol("previewResolution"), D = Symbol("mergeTagPicker"), O = Symbol("logicTags"), k = Symbol("logicPairs"), A = Symbol("logicPicker"), j = Symbol("onRequestLogic"), M = Symbol("onRequestMedia"), N = Symbol("imageUrlResolver"), P = Symbol("displayConditions"), F = Symbol("allowCustomConditions"), I = Symbol("capabilities"), L = Symbol("keyboardReorder"), R = Symbol("templateLint"), z = Symbol("editorRoot"), B = Symbol("popoverRoot"), V = Symbol("savedBlocks"), H = Symbol("authManager"), U = Symbol("aiConfig"), W = Symbol("scoring"), G = Symbol("cloudTranslations");
4
+ function K(t, n) {
5
+ let r = e(t, null);
6
+ if (r == null) throw Error(`${n} requires a provider for ${t.description ?? "unknown key"}. Ensure it renders inside the editor, below Editor.vue.`);
7
+ return r;
8
+ }
9
+ //#endregion
10
+ export { j as A, _ as B, O as C, D, S as E, E as F, w as G, t as H, T as I, K, V as L, x as M, m as N, C as O, B as P, W as R, k as S, y as T, u as U, c as V, l as W, s as _, i as a, N as b, I as c, a as d, p as f, z as g, n as h, H as i, M as j, b as k, G as l, P as m, F as n, d as o, v as p, o as r, f as s, U as t, g as u, r as v, A as w, L as x, h as y, R as z };