@templatical/editor 0.44.3 → 0.46.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 (294) hide show
  1. package/dist/{AiChatSidebar-BUR5Jshu.js → AiChatSidebar-DGcH4Lyo.js} +15 -19
  2. package/dist/{AiFeatureMenu-CXqrbDNb.js → AiFeatureMenu-B4q-0g1S.js} +7 -7
  3. package/dist/{BlockIssueBadge-CWZEwMXX.js → BlockIssueBadge-CZA1XvAh.js} +5 -5
  4. package/dist/{BlockPreviewCanvas-DCeZid0G.js → BlockPreviewCanvas-DIZ0KgUD.js} +5 -5
  5. package/dist/{CloudHeaderExtras-B38fU84y.js → CloudHeaderExtras-ehMYJP68.js} +5 -5
  6. package/dist/{CloudPanels-B2Mz-TwS.js → CloudPanels-BwOaAlKz.js} +8 -8
  7. package/dist/{CollaboratorBar-CL70aVnL.js → CollaboratorBar-qOZFRNPx.js} +4 -4
  8. package/dist/{CommentsPanel-CYMHfFcn.js → CommentsPanel-Bn6P5crU.js} +2 -2
  9. package/dist/{CommentsSidebar-uvQyCMUe.js → CommentsSidebar-B8wT932T.js} +14 -14
  10. package/dist/{CountdownBlock-C6R-hn7D.js → CountdownBlock-RNx3hIu0.js} +3 -3
  11. package/dist/{CountdownToolbar-C052mx2P.js → CountdownToolbar-BeF21SeB.js} +62 -61
  12. package/dist/{DesignReferenceSidebar-ZKJ7y7-G.js → DesignReferenceSidebar-zH93uB15.js} +25 -26
  13. package/dist/{IssuesPanel-DAlNiJX_.js → IssuesPanel-Dltw9haP.js} +8 -8
  14. package/dist/{LoadingTrack-C1Epulqq.js → LoadingTrack-DROqNuuD.js} +1 -1
  15. package/dist/{LogicTagInsertButton-DMUfVsPr.js → LogicTagInsertButton-CHa-UD76.js} +22 -28
  16. package/dist/{MediaEditModal-Cmd9tQXZ.js → MediaEditModal-EY1YYcpw.js} +6 -14
  17. package/dist/{MediaPanels-DoBhG5gg.js → MediaPanels-CRVFGFZW.js} +2 -2
  18. package/dist/{MergeTagInput-DoQWMSW4.js → MergeTagInput-B3ntd4dN.js} +2 -2
  19. package/dist/{MergeTagModeToggle-DOHixe4G.js → MergeTagModeToggle-C_06ZL0Q.js} +7 -7
  20. package/dist/{ParagraphEditor-CHlX3nAk.js → ParagraphEditor-CxuW3TV0.js} +140 -139
  21. package/dist/{RestoreVersionDialog-C8Qt-sJV.js → RestoreVersionDialog-B1n37M1Z.js} +5 -5
  22. package/dist/{RichTextEditorContent-BedBVHXS.js → RichTextEditorContent-CP_uULWB.js} +9 -9
  23. package/dist/{SaveBlockDialog-CsielLi1.js → SaveBlockDialog-BSKX_7_v.js} +12 -12
  24. package/dist/{SavedBlocksBrowserModal-RKo9mq3U.js → SavedBlocksBrowserModal-CHKrH1gO.js} +15 -18
  25. package/dist/{SavedBlocksPanels-B7IlFCQp.js → SavedBlocksPanels-B-xDqBcz.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-BYCwMUR6.js → SavedBlocksPickBar-D2J-g82g.js} +4 -4
  27. package/dist/{TemplateScoringPanel-DXsyp0_A.js → TemplateScoringPanel-3lHzuCl0.js} +16 -16
  28. package/dist/TemplateSettings-D07K_Y4m.js +246 -0
  29. package/dist/{TestEmailModal-Btbk0B1s.js → TestEmailModal-BNPw_lID.js} +11 -11
  30. package/dist/{TestEmailPanel-kdF_QluO.js → TestEmailPanel-8klWo8hE.js} +2 -2
  31. package/dist/{TitleEditor-Cl6AmEy9.js → TitleEditor-CmC9OuhA.js} +13 -13
  32. package/dist/{ToggleSwitch-D7GLaT8s.js → ToggleSwitch-COeyWGfT.js} +2 -2
  33. package/dist/{Toolbar-CWxqqBHE.js → Toolbar-CqhRb6EM.js} +522 -524
  34. package/dist/{TplModal-DD1xZyBq.js → TplModal-BGFawHY9.js} +5 -5
  35. package/dist/{VersionHistoryMenu-fLrx-Lvi.js → VersionHistoryMenu-D7zaTMrb.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Caa2_niu.js → VersionHistoryPanels-DdbGjEOR.js} +2 -2
  37. package/dist/{VersionPreviewBanner-CWuxq_bb.js → VersionPreviewBanner-BUKb9gc6.js} +3 -3
  38. package/dist/{WrapperBlock-Do8kLejT.js → WrapperBlock-CTkmA887.js} +3 -3
  39. package/dist/{blockTypeIcons-DEvNVvBj.js → blockTypeIcons-CVKo6V_v.js} +2 -2
  40. package/dist/bundle-stats.json +7 -7
  41. package/dist/{ca-DES69VJW.js → ca-C__Dzq--.js} +5 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js → AiChatSidebar-kCK4NZM9.js} +9 -13
  43. package/dist/cdn/chunks/{AiChatSidebar-Cvp9beXR.js.map → AiChatSidebar-kCK4NZM9.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js → AiFeatureMenu-K1dLeDft.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-B291Us2g.js.map → AiFeatureMenu-K1dLeDft.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js → BlockIssueBadge-05Q3L4RV.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-CKIrYROg.js.map → BlockIssueBadge-05Q3L4RV.js.map} +1 -1
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js → BlockPreviewCanvas-Djz9YAFx.js} +6 -6
  49. package/dist/cdn/chunks/{BlockPreviewCanvas-CRJZBmwV.js.map → BlockPreviewCanvas-Djz9YAFx.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js → CloudHeaderExtras-5ONQ1RCa.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-BvCPpih5.js.map → CloudHeaderExtras-5ONQ1RCa.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js → CloudPanels-_irSdWbi.js} +7 -7
  53. package/dist/cdn/chunks/{CloudPanels-vlPH6N3s.js.map → CloudPanels-_irSdWbi.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js → CollaboratorBar-CZufI1On.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-Xt3WJ-rn.js.map → CollaboratorBar-CZufI1On.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js → CommentsPanel-VH_NJ5HZ.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-BjHRj_Yw.js.map → CommentsPanel-VH_NJ5HZ.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js → CommentsSidebar-CYPH5rVi.js} +5 -5
  59. package/dist/cdn/chunks/{CommentsSidebar-CpCfqSq4.js.map → CommentsSidebar-CYPH5rVi.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js → CountdownBlock-lHU3Lu7Q.js} +4 -4
  61. package/dist/cdn/chunks/{CountdownBlock-sVDjKkRw.js.map → CountdownBlock-lHU3Lu7Q.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-C9QpHQcv.js → CountdownToolbar-BaXCefQM.js} +63 -62
  63. package/dist/cdn/chunks/CountdownToolbar-BaXCefQM.js.map +1 -0
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js → DesignReferenceSidebar-GjkpHylX.js} +21 -22
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-BO0xz1wC.js.map → DesignReferenceSidebar-GjkpHylX.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js → IssuesPanel-C1Lv2y_O.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel--62qud8w.js.map → IssuesPanel-C1Lv2y_O.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js → LoadingTrack-Cg1HRIND.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-_7DH_5aw.js.map → LoadingTrack-Cg1HRIND.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js → LogicTagInsertButton-BYjdrDnQ.js} +11 -17
  71. package/dist/cdn/chunks/{LogicTagInsertButton-gc8ICURV.js.map → LogicTagInsertButton-BYjdrDnQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js → MediaEditModal-CD3fVbWI.js} +6 -14
  73. package/dist/cdn/chunks/{MediaEditModal-BuDXKwx4.js.map → MediaEditModal-CD3fVbWI.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js → MediaPanels-B2AyUUcf.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-xFpaxFRH.js.map → MediaPanels-B2AyUUcf.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js → MergeTagInput-Cx67J_vg.js} +3 -3
  77. package/dist/cdn/chunks/{MergeTagInput-DsPKWbWr.js.map → MergeTagInput-Cx67J_vg.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js → MergeTagModeToggle-DZ4EuXVp.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DU0WqgVH.js.map → MergeTagModeToggle-DZ4EuXVp.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-BWfx94pb.js → ParagraphEditor-DndEFXmR.js} +145 -144
  81. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js → RestoreVersionDialog-CFYs13a4.js} +5 -5
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DWUnyA0B.js.map → RestoreVersionDialog-CFYs13a4.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js → RichTextEditorContent-DKkDQ0dc.js} +8 -8
  85. package/dist/cdn/chunks/{RichTextEditorContent-Dkcts8Vh.js.map → RichTextEditorContent-DKkDQ0dc.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js → SaveBlockDialog-BOA2RaC_.js} +10 -10
  87. package/dist/cdn/chunks/{SaveBlockDialog-CcfyxDfZ.js.map → SaveBlockDialog-BOA2RaC_.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js → SavedBlocksBrowserModal-DQDVek3K.js} +11 -14
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DauQ_V9N.js.map → SavedBlocksBrowserModal-DQDVek3K.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js → SavedBlocksPanels-Lu3tJ3QA.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-J5v2PsFv.js.map → SavedBlocksPanels-Lu3tJ3QA.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js → SavedBlocksPickBar-D7MtqG6r.js} +5 -5
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-v3AMSqli.js.map → SavedBlocksPickBar-D7MtqG6r.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js → TemplateScoringPanel-C_57Bfkf.js} +8 -8
  95. package/dist/cdn/chunks/{TemplateScoringPanel-BBRHCNcR.js.map → TemplateScoringPanel-C_57Bfkf.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-vsFOU0oA.js → TemplateSettings-rZiHmq24.js} +48 -47
  97. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js → TestEmailModal-DWEyHXH2.js} +10 -10
  99. package/dist/cdn/chunks/{TestEmailModal-CW9EFpFR.js.map → TestEmailModal-DWEyHXH2.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js → TestEmailPanel-XXMD-Lnr.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-D1Hchlr7.js.map → TestEmailPanel-XXMD-Lnr.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js → TitleEditor-D1F0YoE-.js} +12 -12
  103. package/dist/cdn/chunks/{TitleEditor-nDV6P-ag.js.map → TitleEditor-D1F0YoE-.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js → ToggleSwitch-B5U9cqhi.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-DoUNcLPP.js.map → ToggleSwitch-B5U9cqhi.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-CnfNUkOY.js → Toolbar-C_5HfUQq.js} +422 -424
  107. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js → TplModal-CYBbPCHL.js} +5 -5
  109. package/dist/cdn/chunks/{TplModal-VuZ9bDw9.js.map → TplModal-CYBbPCHL.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js → VersionHistoryMenu-DbxuJgDO.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-Cp3EHO_P.js.map → VersionHistoryMenu-DbxuJgDO.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js → VersionHistoryPanels-Dq12VsTX.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BChjjMC6.js.map → VersionHistoryPanels-Dq12VsTX.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js → VersionPreviewBanner-HRERIH-v.js} +4 -4
  115. package/dist/cdn/chunks/{VersionPreviewBanner-BgkroXnG.js.map → VersionPreviewBanner-HRERIH-v.js.map} +1 -1
  116. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js → WrapperBlock-CJ0CLqi2.js} +4 -4
  117. package/dist/cdn/chunks/{WrapperBlock-DDnue8oy.js.map → WrapperBlock-CJ0CLqi2.js.map} +1 -1
  118. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js → blockTypeIcons-DdZP-3FM.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-BMZi7sdX.js.map → blockTypeIcons-DdZP-3FM.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-DES69VJW.js → ca-C__Dzq--.js} +6 -1
  121. package/dist/cdn/chunks/ca-C__Dzq--.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js → cloud-h1vaHp2p.js} +4 -4
  123. package/dist/cdn/chunks/{cloud-DLQU5l0Z.js.map → cloud-h1vaHp2p.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js → createCloudRuntime-bJN9EM1H.js} +9 -12
  125. package/dist/cdn/chunks/{createCloudRuntime-Mnx8kV2W.js.map → createCloudRuntime-bJN9EM1H.js.map} +1 -1
  126. package/dist/{de-MlrDhC3Y.js → cdn/chunks/de-CGjbQ2mt.js} +7 -0
  127. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-BRZhN8qJ.js → dist-B7W-Lb65.js} +2 -2
  129. package/dist/cdn/chunks/{dist-BRZhN8qJ.js.map → dist-B7W-Lb65.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-CXB2_kBa.js → dist-C5nRd_ua.js} +5 -13
  131. package/dist/cdn/chunks/{dist-CXB2_kBa.js.map → dist-C5nRd_ua.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-IB4x6w2O.js → draggable-BUTN5vZC.js} +32 -77
  133. package/dist/cdn/chunks/{draggable-IB4x6w2O.js.map → draggable-BUTN5vZC.js.map} +1 -1
  134. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js → editor-modal-BpsbYA4_.js} +14 -34
  135. package/dist/cdn/chunks/{editor-modal-B7NNAFI5.js.map → editor-modal-BpsbYA4_.js.map} +1 -1
  136. package/dist/{en-6vJh7KCM.js → cdn/chunks/en-BTiiAC-B.js} +7 -0
  137. package/dist/cdn/chunks/en-BTiiAC-B.js.map +1 -0
  138. package/dist/cdn/chunks/en-CAt6y87e.js +1 -0
  139. package/dist/{es-ewL03EaP.js → cdn/chunks/es-CdTOcSTf.js} +7 -0
  140. package/dist/cdn/chunks/es-CdTOcSTf.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-ClmkNA8R.js → extensions-CrmXF4MW.js} +11 -19
  142. package/dist/cdn/chunks/extensions-CrmXF4MW.js.map +1 -0
  143. package/dist/{fr-D1syuxs1.js → cdn/chunks/fr-B6lcLLzC.js} +7 -0
  144. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +1 -0
  145. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js → htmlparser-CDRsn-gn.js} +3 -11
  146. package/dist/cdn/chunks/{htmlparser-ClUZ6waR.js.map → htmlparser-CDRsn-gn.js.map} +1 -1
  147. package/dist/cdn/chunks/{icons-BjvraR-Y.js → icons-Dr9erFGs.js} +48 -48
  148. package/dist/cdn/chunks/{icons-BjvraR-Y.js.map → icons-Dr9erFGs.js.map} +1 -1
  149. package/dist/{ja-Dd_nytwe.js → cdn/chunks/ja-BhdkqENz.js} +7 -0
  150. package/dist/cdn/chunks/ja-BhdkqENz.js.map +1 -0
  151. package/dist/cdn/chunks/{keys-DCWeHkSF.js → keys-BKu-LOk5.js} +2 -2
  152. package/dist/cdn/chunks/{keys-DCWeHkSF.js.map → keys-BKu-LOk5.js.map} +1 -1
  153. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js → liquid.browser-Bbt17cVz.js} +30 -56
  154. package/dist/cdn/chunks/{liquid.browser-DXPjcePu.js.map → liquid.browser-Bbt17cVz.js.map} +1 -1
  155. package/dist/{nl-DD1t_qxS.js → cdn/chunks/nl-CE3YItYg.js} +7 -0
  156. package/dist/cdn/chunks/nl-CE3YItYg.js.map +1 -0
  157. package/dist/{preRenderCustomBlocks-C_PIxBp7.js → cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js} +5 -3
  158. package/dist/cdn/chunks/{preRenderCustomBlocks-Bg3rIgGJ.js.map → preRenderCustomBlocks-CyGB3lZr.js.map} +1 -1
  159. package/dist/{pt-BR-BmtO0R7k.js → cdn/chunks/pt-BR-CUIT4rq4.js} +7 -0
  160. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +1 -0
  161. package/dist/cdn/chunks/{pusher-BbIHJKf3.js → pusher-C8DeiO2X.js} +18 -57
  162. package/dist/cdn/chunks/{pusher-BbIHJKf3.js.map → pusher-C8DeiO2X.js.map} +1 -1
  163. package/dist/cdn/chunks/{socialIcons-CnUJBZTO.js → socialIcons-ClJVDZwt.js} +90 -119
  164. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +1 -0
  165. package/dist/cdn/chunks/{src-B5-VKcRQ.js → src-B0pZeTYO.js} +194 -215
  166. package/dist/cdn/chunks/src-B0pZeTYO.js.map +1 -0
  167. package/dist/cdn/chunks/{src-CjjJWoUZ.js → src-BMw3u-iV.js} +225 -232
  168. package/dist/cdn/chunks/src-BMw3u-iV.js.map +1 -0
  169. package/dist/cdn/chunks/{src-QIGNPFkl.js → src-Bh0MoJ67.js} +360 -246
  170. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +1 -0
  171. package/dist/cdn/chunks/{tiptap-02G9FGkl.js → tiptap-CYDXLO17.js} +87 -134
  172. package/dist/cdn/chunks/{tiptap-02G9FGkl.js.map → tiptap-CYDXLO17.js.map} +1 -1
  173. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js → useAliveFlag-DzyXG-8A.js} +2 -2
  174. package/dist/cdn/chunks/{useAliveFlag-DAlQLbM2.js.map → useAliveFlag-DzyXG-8A.js.map} +1 -1
  175. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js → useCloudI18n-Cgk0ts_F.js} +3 -3
  176. package/dist/cdn/chunks/{useCloudI18n-CrjWbpbu.js.map → useCloudI18n-Cgk0ts_F.js.map} +1 -1
  177. package/dist/cdn/chunks/{useEditorCore-q0G4q-52.js → useEditorCore-DuC7kVti.js} +559 -599
  178. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +1 -0
  179. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +10 -0
  180. package/dist/cdn/chunks/{useEditorRoot-CshefZLP.js.map → useEditorRoot-DDPIcEOO.js.map} +1 -1
  181. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js → useI18n-DO4NTunW.js} +3 -3
  182. package/dist/cdn/chunks/{useI18n-CyO_Nmca.js.map → useI18n-DO4NTunW.js.map} +1 -1
  183. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js → useLogicTag-B3uV3XHG.js} +4 -4
  184. package/dist/cdn/chunks/{useLogicTag-D6lWY0bD.js.map → useLogicTag-B3uV3XHG.js.map} +1 -1
  185. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js → useMergeTag-DJLM-7WQ.js} +4 -4
  186. package/dist/cdn/chunks/{useMergeTag-2iW-BKWW.js.map → useMergeTag-DJLM-7WQ.js.map} +1 -1
  187. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js → usePopoverPosition-CtVNwoHj.js} +3 -3
  188. package/dist/cdn/chunks/{usePopoverPosition-DGXjXKjM.js.map → usePopoverPosition-CtVNwoHj.js.map} +1 -1
  189. package/dist/cdn/chunks/{useScrollToBlock-DgHZJvID.js → useScrollToBlock-CpmB5KxW.js} +4 -5
  190. package/dist/cdn/chunks/useScrollToBlock-CpmB5KxW.js.map +1 -0
  191. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +21 -0
  192. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js.map +1 -0
  193. package/dist/cdn/editor.css +1 -1
  194. package/dist/cdn/editor.js +472 -491
  195. package/dist/cdn/editor.js.map +1 -1
  196. package/dist/{check-DNyj-E0y.js → check-ZKvtMdpe.js} +1 -1
  197. package/dist/{chevron-down-BYnhkMsA.js → chevron-down-RrwkYMlp.js} +1 -1
  198. package/dist/{chevron-right-D9HGBqJo.js → chevron-right-CklHaa1U.js} +1 -1
  199. package/dist/{chevron-up-BnIR1-ma.js → chevron-up-DjN2NTbo.js} +1 -1
  200. package/dist/{circle-alert-B6xl1B_M.js → circle-alert-BR1_Yfb-.js} +1 -1
  201. package/dist/{clock-Cs5Wd3dW.js → clock-BEagNj21.js} +1 -1
  202. package/dist/{cloud-BNEL7bxL.js → cloud-DPGjMGfv.js} +2 -2
  203. package/dist/{copy-6uKc-WBk.js → copy-D6DNoSq1.js} +1 -1
  204. package/dist/{createCloudRuntime-CaZapQZ6.js → createCloudRuntime-D0RRgWab.js} +8 -11
  205. package/dist/{createLucideIcon-BVcoovvP.js → createLucideIcon-BAPyioGd.js} +6 -6
  206. package/dist/{cdn/chunks/de-MlrDhC3Y.js → de-CGjbQ2mt.js} +5 -2
  207. package/dist/{dist-CmwBvyW0.js → dist-1H4cnaoD.js} +3 -3
  208. package/dist/{dist-D4HP93ZF.js → dist-5DAb7bYT.js} +1 -1
  209. package/dist/{dist-DdSWMtEP.js → dist-5KNKxglR.js} +1 -1
  210. package/dist/{dist-HjILVdTA.js → dist-BI_LeQGl.js} +289 -201
  211. package/dist/{dist-BDuPwOyn.js → dist-B_vYjCsk.js} +4 -12
  212. package/dist/{dist-Ceew_u40.js → dist-Bc30883t.js} +6 -22
  213. package/dist/{dist-Czzst9ng.js → dist-Bd7khQsg.js} +3 -11
  214. package/dist/{dist-8VFzbeu9.js → dist-C-VFTX82.js} +1 -1
  215. package/dist/{dist-BYg1EL5g.js → dist-C3eH9-N2.js} +1 -1
  216. package/dist/{dist-Dw2_11LA.js → dist-CFC4pg2o.js} +1 -1
  217. package/dist/{dist-BgSLW3Hn.js → dist-CMcFD7gP.js} +72 -87
  218. package/dist/{dist-DmQckB4p.js → dist-DHensKDY.js} +1 -1
  219. package/dist/{dist-CWc7nIkA.js → dist-DapsJxn_.js} +1 -1
  220. package/dist/{dist-D2m55Lvs.js → dist-j2FavQmU.js} +1 -1
  221. package/dist/{dist-8By0p8ah.js → dist-lL3nVbxV.js} +1 -1
  222. package/dist/{editor-modal-Co-rZGaf.js → editor-modal-oRmkDlUs.js} +27 -47
  223. package/dist/{cdn/chunks/en-6vJh7KCM.js → en-BTiiAC-B.js} +5 -2
  224. package/dist/en-Bk4iCfjp.js +1 -0
  225. package/dist/{cdn/chunks/es-ewL03EaP.js → es-CdTOcSTf.js} +5 -2
  226. package/dist/{extensions-DXSI8Dyj.js → extensions-CYigjb1g.js} +52 -68
  227. package/dist/{eye-Nbtw_q05.js → eye-DvsTBI57.js} +1 -1
  228. package/dist/{cdn/chunks/fr-D1syuxs1.js → fr-B6lcLLzC.js} +5 -2
  229. package/dist/{image-up-C1jC7NzQ.js → image-up-BoFGZm5Q.js} +1 -1
  230. package/dist/index.d.ts +46 -13
  231. package/dist/{info-ClH66pKN.js → info-0bQQGjTV.js} +1 -1
  232. package/dist/{cdn/chunks/ja-Dd_nytwe.js → ja-BhdkqENz.js} +5 -2
  233. package/dist/{keys-CDqfZIRt.js → keys-injl74ob.js} +1 -1
  234. package/dist/{link-y47GNW0o.js → link-Cstrr3Ep.js} +1 -1
  235. package/dist/{liquid.browser-Cs4gOjeX.js → liquid.browser-Ct2-EezB.js} +29 -55
  236. package/dist/{list-DiLMlMaE.js → list-Dx9Rmy5s.js} +1 -1
  237. package/dist/{loader-circle-BRdCPW5h.js → loader-circle-D8Qqs0MG.js} +1 -1
  238. package/dist/{message-circle-CNgIpVJv.js → message-circle-D78ELX6I.js} +1 -1
  239. package/dist/{cdn/chunks/nl-DD1t_qxS.js → nl-CE3YItYg.js} +5 -2
  240. package/dist/{package-B9OWk-Kp.js → package-DOvM9sHE.js} +1 -1
  241. package/dist/{pencil-BDnjo24u.js → pencil-B6m0OG0n.js} +1 -1
  242. package/dist/{plus-BMgjN7lI.js → plus-D-nEKxTc.js} +1 -1
  243. package/dist/{cdn/chunks/preRenderCustomBlocks-Bg3rIgGJ.js → preRenderCustomBlocks-DokBGA_M.js} +3 -5
  244. package/dist/{cdn/chunks/pt-BR-BmtO0R7k.js → pt-BR-CUIT4rq4.js} +5 -2
  245. package/dist/{refresh-cw-CR5lenxl.js → refresh-cw-CXZS-R1U.js} +1 -1
  246. package/dist/{runtime-dom.esm-bundler-BGbPz4-g.js → runtime-dom.esm-bundler-CO67ema2.js} +15 -16
  247. package/dist/{search-CxRUiOSF.js → search-DSvil0jo.js} +1 -1
  248. package/dist/{send-Bu2RysGL.js → send-BBR28V94.js} +1 -1
  249. package/dist/{shield-check-Cg8f4LB0.js → shield-check-ByxUnaU9.js} +1 -1
  250. package/dist/{smartphone-CHf-8lHp.js → smartphone-CNOwGf5T.js} +1 -1
  251. package/dist/{socialIcons-D1gkHc_i.js → socialIcons-Ct_IoqPQ.js} +112 -141
  252. package/dist/{sparkles-_DQGv4ub.js → sparkles-DO1hzwzf.js} +1 -1
  253. package/dist/style.css +1 -1
  254. package/dist/templatical-editor.js +504 -523
  255. package/dist/{text-align-start-PHo-Ep5i.js → text-align-start-BKEKMheq.js} +13 -13
  256. package/dist/{trash-BxIzHAri.js → trash-CKEQH4vH.js} +1 -1
  257. package/dist/{triangle-alert-fcb2KoA-.js → triangle-alert-BHnfd3fV.js} +1 -1
  258. package/dist/{upload-BxBtMPMv.js → upload-C8uO7KsR.js} +1 -1
  259. package/dist/{useAliveFlag-BkKyhkwZ.js → useAliveFlag-6PtarpNZ.js} +1 -1
  260. package/dist/{useCloudI18n-DpEsiLeR.js → useCloudI18n-GvIOLziA.js} +2 -2
  261. package/dist/{useEditorCore-B1CWeFTj.js → useEditorCore-BJAQMvNW.js} +950 -1013
  262. package/dist/{useEditorRoot-CkB_5d0h.js → useEditorRoot-OWzNpDdT.js} +2 -2
  263. package/dist/{useI18n-B_CdcBwG.js → useI18n-uF11q85g.js} +2 -2
  264. package/dist/{useLogicTag-wqfdwYYR.js → useLogicTag-B5gjcMzn.js} +3 -3
  265. package/dist/{useMergeTag-D3XDE_58.js → useMergeTag-BwsBIDzR.js} +5 -5
  266. package/dist/{usePopoverPosition-BYmd-lhR.js → usePopoverPosition-DkBrHfCo.js} +2 -2
  267. package/dist/{useScrollToBlock-DA_aIJXS.js → useScrollToBlock-JRxhT1u_.js} +4 -5
  268. package/dist/{vue.runtime.esm-bundler-CyqhBwpY.js → vue.runtime.esm-bundler-CctRY8kr.js} +13 -45
  269. package/dist/withCurrentFont-C9vqrduu.js +19 -0
  270. package/dist/{x-DrZO5tt0.js → x-gEC0yMci.js} +1 -1
  271. package/package.json +12 -12
  272. package/dist/TemplateSettings-Bh10NFIN.js +0 -245
  273. package/dist/cdn/chunks/CountdownToolbar-C9QpHQcv.js.map +0 -1
  274. package/dist/cdn/chunks/ParagraphEditor-BWfx94pb.js.map +0 -1
  275. package/dist/cdn/chunks/TemplateSettings-vsFOU0oA.js.map +0 -1
  276. package/dist/cdn/chunks/Toolbar-CnfNUkOY.js.map +0 -1
  277. package/dist/cdn/chunks/ca-DES69VJW.js.map +0 -1
  278. package/dist/cdn/chunks/de-MlrDhC3Y.js.map +0 -1
  279. package/dist/cdn/chunks/en-6vJh7KCM.js.map +0 -1
  280. package/dist/cdn/chunks/en-C3n0qWte.js +0 -2
  281. package/dist/cdn/chunks/es-ewL03EaP.js.map +0 -1
  282. package/dist/cdn/chunks/extensions-ClmkNA8R.js.map +0 -1
  283. package/dist/cdn/chunks/fr-D1syuxs1.js.map +0 -1
  284. package/dist/cdn/chunks/ja-Dd_nytwe.js.map +0 -1
  285. package/dist/cdn/chunks/nl-DD1t_qxS.js.map +0 -1
  286. package/dist/cdn/chunks/pt-BR-BmtO0R7k.js.map +0 -1
  287. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +0 -1
  288. package/dist/cdn/chunks/src-B5-VKcRQ.js.map +0 -1
  289. package/dist/cdn/chunks/src-CjjJWoUZ.js.map +0 -1
  290. package/dist/cdn/chunks/src-QIGNPFkl.js.map +0 -1
  291. package/dist/cdn/chunks/useEditorCore-q0G4q-52.js.map +0 -1
  292. package/dist/cdn/chunks/useEditorRoot-CshefZLP.js +0 -10
  293. package/dist/cdn/chunks/useScrollToBlock-DgHZJvID.js.map +0 -1
  294. package/dist/en-B-xoKkWi.js +0 -2
@@ -1,25 +1,25 @@
1
- import { H as e, J as t, R as n, X as r, Y as i, Z as a, ot as o, rt as s, s as c } from "./vue.runtime.esm-bundler-CyqhBwpY.js";
2
- import { $ as l, P as u, d, f, h as p, l as m, s as h, y as g } from "./dist-HjILVdTA.js";
3
- import { r as _ } from "./dist-BDuPwOyn.js";
4
- import { o as v, s as y } from "./usePopoverPosition-BYmd-lhR.js";
5
- import { t as b } from "./createLucideIcon-BVcoovvP.js";
1
+ import { H as e, J as t, R as n, X as r, Y as i, Z as a, ot as o, rt as s, s as c } from "./vue.runtime.esm-bundler-CctRY8kr.js";
2
+ import { I as l, b as u, c as d, f, g as p, m, nt as h, p as g, u as _ } from "./dist-BI_LeQGl.js";
3
+ import { r as v } from "./dist-B_vYjCsk.js";
4
+ import { o as y, s as b } from "./usePopoverPosition-DkBrHfCo.js";
5
+ import { t as x } from "./createLucideIcon-BAPyioGd.js";
6
6
  //#region ../core/dist/index.js
7
- function x(e) {
7
+ function S(e) {
8
8
  return e instanceof Error ? e : Error(String(e), { cause: e });
9
9
  }
10
- function S(e, t) {
10
+ function C(e, t) {
11
11
  try {
12
12
  t();
13
13
  } catch (t) {
14
- e?.(x(t));
14
+ e?.(S(t));
15
15
  }
16
16
  }
17
- function C(e) {
17
+ function w(e) {
18
18
  return e === "1" ? 1 : e === "3" ? 3 : 2;
19
19
  }
20
- function w(t) {
21
- let n = t.content ?? g(t.defaultFontFamily, t.templateDefaults);
22
- d(n), f(n);
20
+ function T(t) {
21
+ let n = t.content ?? u(t.defaultFontFamily, t.templateDefaults);
22
+ f(n), g(n);
23
23
  let a = i({
24
24
  template: null,
25
25
  content: n,
@@ -40,12 +40,12 @@ function w(t) {
40
40
  set: (e) => {
41
41
  a.content = e, s();
42
42
  }
43
- }), l = e(() => a.selectedBlockId ? u(a.content.blocks, a.selectedBlockId) : null);
44
- function u(e, t) {
43
+ }), l = e(() => a.selectedBlockId ? d(a.content.blocks, a.selectedBlockId) : null);
44
+ function d(e, t) {
45
45
  for (let n of e) {
46
46
  if (n.id === t) return n;
47
47
  if (n.type === "section") for (let e of n.children) {
48
- let n = u(e, t);
48
+ let n = d(e, t);
49
49
  if (n) return n;
50
50
  }
51
51
  }
@@ -54,12 +54,12 @@ function w(t) {
54
54
  function p(e, t) {
55
55
  if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) p(e, t);
56
56
  }
57
- function h(e, t, n = { blocks: e }) {
57
+ function m(e, t, n = { blocks: e }) {
58
58
  for (let r = 0; r < e.length; r++) {
59
59
  let i = e[r];
60
60
  if (i.id === t) return n;
61
61
  if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
62
- let n = h(i.children[e], t, {
62
+ let n = m(i.children[e], t, {
63
63
  blocks: i.children[e],
64
64
  sectionId: i.id,
65
65
  columnIndex: e
@@ -69,11 +69,11 @@ function w(t) {
69
69
  }
70
70
  return null;
71
71
  }
72
- function _(e) {
72
+ function h(e) {
73
73
  return t.lockedBlocks?.value.has(e) ?? !1;
74
74
  }
75
75
  function v(e) {
76
- let t = h(a.content.blocks, e);
76
+ let t = m(a.content.blocks, e);
77
77
  if (!t) return null;
78
78
  let n = t.blocks.findIndex((t) => t.id === e);
79
79
  return n === -1 ? null : {
@@ -83,15 +83,15 @@ function w(t) {
83
83
  };
84
84
  }
85
85
  function y(e, t = !0) {
86
- d(e), f(e), a.content = e, t && s();
86
+ f(e), g(e), a.content = e, t && s();
87
87
  }
88
88
  function b(e) {
89
- e && _(e) || (a.selectedBlockId = e);
89
+ e && h(e) || (a.selectedBlockId = e);
90
90
  }
91
91
  function x(e) {
92
92
  a.viewport = e;
93
93
  }
94
- function w(e) {
94
+ function S(e) {
95
95
  a.darkMode = e;
96
96
  }
97
97
  function T(e) {
@@ -101,8 +101,8 @@ function w(t) {
101
101
  a.previewMode = e, e && (a.selectedBlockId = null);
102
102
  }
103
103
  function D(e, t) {
104
- if (_(e)) return;
105
- let n = u(a.content.blocks, e);
104
+ if (h(e)) return;
105
+ let n = d(a.content.blocks, e);
106
106
  n && (Object.assign(n, t), s());
107
107
  }
108
108
  function O(e) {
@@ -116,12 +116,12 @@ function w(t) {
116
116
  settings: a.content.settings,
117
117
  blocks: [e]
118
118
  };
119
- if (d(i), f(i), !(t && e.type === "section")) {
119
+ if (f(i), g(i), !(t && e.type === "section")) {
120
120
  if (t) {
121
- if (_(t)) return;
122
- let i = u(a.content.blocks, t);
121
+ if (h(t)) return;
122
+ let i = d(a.content.blocks, t);
123
123
  if (i && i.type === "section") {
124
- if (n < 0 || n >= C(i.columns)) return;
124
+ if (n < 0 || n >= w(i.columns)) return;
125
125
  i.children[n] = i.children[n] || [];
126
126
  let t = i.children[n];
127
127
  r !== void 0 && r < t.length ? t.splice(r, 0, e) : t.push(e);
@@ -131,8 +131,8 @@ function w(t) {
131
131
  }
132
132
  }
133
133
  function A(e) {
134
- if (_(e)) return;
135
- let t = h(a.content.blocks, e);
134
+ if (h(e)) return;
135
+ let t = m(a.content.blocks, e);
136
136
  if (t) {
137
137
  let n = t.blocks.findIndex((t) => t.id === e);
138
138
  if (n !== -1) {
@@ -146,15 +146,15 @@ function w(t) {
146
146
  }
147
147
  }
148
148
  function j(e, t, n, r = 0) {
149
- if (_(e) || n && _(n)) return;
150
- let i = h(a.content.blocks, e);
149
+ if (h(e) || n && h(n)) return;
150
+ let i = m(a.content.blocks, e);
151
151
  if (!i) return;
152
152
  let o = i.blocks.findIndex((t) => t.id === e);
153
153
  if (o === -1 || n && i.blocks[o].type === "section") return;
154
154
  let c;
155
155
  if (n) {
156
- let e = u(a.content.blocks, n);
157
- if (!e || e.type !== "section" || r < 0 || r >= C(e.columns)) return;
156
+ let e = d(a.content.blocks, n);
157
+ if (!e || e.type !== "section" || r < 0 || r >= w(e.columns)) return;
158
158
  e.children[r] = e.children[r] || [], c = e.children[r];
159
159
  } else c = a.content.blocks;
160
160
  let [l] = i.blocks.splice(o, 1);
@@ -164,10 +164,10 @@ function w(t) {
164
164
  s();
165
165
  }
166
166
  function N(e, t) {
167
- throw new m(`[Templatical] Templates: ${e} ${t}`);
167
+ throw new _(`[Templatical] Templates: ${e} ${t}`);
168
168
  }
169
169
  function P(e) {
170
- S(t.onError, e);
170
+ C(t.onError, e);
171
171
  }
172
172
  function F(e) {
173
173
  let { templates: n } = t;
@@ -202,7 +202,7 @@ function w(t) {
202
202
  let n = F("load()"), r;
203
203
  a.isLoading = !0;
204
204
  try {
205
- r = await n.load(e), d(r.content), f(r.content), a.template = r, a.content = r.content, a.isDirty = !1;
205
+ r = await n.load(e), f(r.content), g(r.content), a.template = r, a.content = r.content, a.isDirty = !1;
206
206
  } catch (e) {
207
207
  throw t.onError?.(e), e;
208
208
  } finally {
@@ -244,11 +244,11 @@ function w(t) {
244
244
  state: r(a),
245
245
  content: c,
246
246
  selectedBlock: l,
247
- isBlockLocked: _,
247
+ isBlockLocked: h,
248
248
  setContent: y,
249
249
  selectBlock: b,
250
250
  setViewport: x,
251
- setDarkMode: w,
251
+ setDarkMode: S,
252
252
  setUiTheme: T,
253
253
  setPreviewMode: E,
254
254
  updateBlock: D,
@@ -265,64 +265,58 @@ function w(t) {
265
265
  hasTemplate: B
266
266
  };
267
267
  }
268
- var T = 50, E = 300, D = 1500;
269
- function O(t) {
270
- let { content: n, setContent: r, isRemoteOperation: i, maxSize: o = T } = t, s = a([]), c = a([]), u = a(!1), d = null, f = null, p = e(() => s.value.length > 0), m = e(() => c.value.length > 0);
271
- function h() {
272
- return l(n.value);
268
+ var E = 50, D = 300, O = 1500;
269
+ function k(t) {
270
+ let { content: n, setContent: r, isRemoteOperation: i, maxSize: o = E } = t, s = a([]), c = a([]), l = a(!1), u = null, d = null, f = e(() => s.value.length > 0), p = e(() => c.value.length > 0);
271
+ function m() {
272
+ return h(n.value);
273
273
  }
274
274
  function g(e) {
275
275
  s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
276
276
  }
277
277
  function _() {
278
- f &&= (clearTimeout(f.timeoutId), null);
278
+ d &&= (clearTimeout(d.timeoutId), null);
279
279
  }
280
280
  function v() {
281
- i?.() || (_(), g(h()), c.value = []);
281
+ i?.() || (_(), g(m()), c.value = []);
282
282
  }
283
283
  function y(e) {
284
- if (!i?.()) {
285
- if (f && f.blockId === e) {
286
- clearTimeout(f.timeoutId), f.timeoutId = setTimeout(() => {
287
- f = null;
288
- }, E);
289
- return;
290
- }
291
- _(), g(h()), c.value = [], f = {
292
- blockId: e,
293
- timeoutId: setTimeout(() => {
294
- f = null;
295
- }, E)
296
- };
297
- }
284
+ i?.() || (d && d.blockId === e ? (clearTimeout(d.timeoutId), d.timeoutId = setTimeout(() => {
285
+ d = null;
286
+ }, D)) : (_(), g(m()), c.value = [], d = {
287
+ blockId: e,
288
+ timeoutId: setTimeout(() => {
289
+ d = null;
290
+ }, D)
291
+ }));
298
292
  }
299
293
  function b() {
300
- u.value = !0, d && clearTimeout(d), d = setTimeout(() => {
301
- u.value = !1, d = null;
302
- }, D);
294
+ l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
295
+ l.value = !1, u = null;
296
+ }, O);
303
297
  }
304
298
  function x() {
305
299
  if (s.value.length === 0) return;
306
300
  _();
307
301
  let e = s.value.pop();
308
- c.value.push(h()), r(e, !0), b();
302
+ c.value.push(m()), r(e, !0), b();
309
303
  }
310
304
  function S() {
311
305
  if (c.value.length === 0) return;
312
306
  _();
313
307
  let e = c.value.pop();
314
- s.value.push(h()), r(e, !0), b();
308
+ s.value.push(m()), r(e, !0), b();
315
309
  }
316
310
  function C() {
317
311
  s.value = [], c.value = [], _();
318
312
  }
319
313
  function w() {
320
- C(), d &&= (clearTimeout(d), null);
314
+ C(), u &&= (clearTimeout(u), null);
321
315
  }
322
316
  return {
323
- canUndo: p,
324
- canRedo: m,
325
- isNavigating: u,
317
+ canUndo: f,
318
+ canRedo: p,
319
+ isNavigating: l,
326
320
  undo: x,
327
321
  redo: S,
328
322
  record: v,
@@ -331,22 +325,6 @@ function O(t) {
331
325
  destroy: w
332
326
  };
333
327
  }
334
- function k(e) {
335
- e.type === "table" ? e.rows = e.rows.map((e) => ({
336
- ...e,
337
- id: u(),
338
- cells: e.cells.map((e) => ({
339
- ...e,
340
- id: u()
341
- }))
342
- })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
343
- ...e,
344
- id: u()
345
- })) : e.type === "menu" && (e.items = e.items.map((e) => ({
346
- ...e,
347
- id: u()
348
- })));
349
- }
350
328
  function A(e) {
351
329
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
352
330
  function o(n, r, a) {
@@ -354,11 +332,8 @@ function A(e) {
354
332
  return t(s, r, a), i(s.id), s;
355
333
  }
356
334
  function s(e, n, r) {
357
- let o = JSON.parse(JSON.stringify(e));
358
- if (o.id = u(), k(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
359
- let t = JSON.parse(JSON.stringify(e));
360
- return t.id = u(), k(t), t;
361
- }))), n !== void 0 || r !== void 0) t(o, n, r);
335
+ let o = m(e);
336
+ if (n !== void 0 || r !== void 0) t(o, n, r);
362
337
  else {
363
338
  let i = a?.(e.id) ?? null;
364
339
  i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
@@ -493,12 +468,12 @@ function I(e) {
493
468
  return l.value && e.canDelete !== !1;
494
469
  }
495
470
  function f(e, t) {
496
- throw new m(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
471
+ throw new _(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
497
472
  }
498
473
  function p(t) {
499
- S(e.onError, t);
474
+ C(e.onError, t);
500
475
  }
501
- async function h(i) {
476
+ async function m(i) {
502
477
  r.value = !0;
503
478
  try {
504
479
  n.value = await t.list(i);
@@ -508,7 +483,7 @@ function I(e) {
508
483
  r.value = !1;
509
484
  }
510
485
  }
511
- async function g(r, i, a) {
486
+ async function h(r, i, a) {
512
487
  let { create: o } = t;
513
488
  typeof o != "function" && f("create", "disabled by the provider");
514
489
  try {
@@ -525,7 +500,7 @@ function I(e) {
525
500
  throw e.onError?.(t), t;
526
501
  }
527
502
  }
528
- async function _(r, i) {
503
+ async function g(r, i) {
529
504
  let { update: a } = t;
530
505
  typeof a != "function" && f("update", "disabled by the provider");
531
506
  let o = n.value.find((e) => e.id === r);
@@ -557,9 +532,9 @@ function I(e) {
557
532
  canDelete: l,
558
533
  canUpdateBlock: u,
559
534
  canDeleteBlock: d,
560
- load: h,
561
- create: g,
562
- update: _,
535
+ load: m,
536
+ create: h,
537
+ update: g,
563
538
  remove: v
564
539
  };
565
540
  }
@@ -590,7 +565,7 @@ function R(e = {}) {
590
565
  },
591
566
  async create(e) {
592
567
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
593
- id: u(),
568
+ id: l(),
594
569
  name: e.name,
595
570
  content: e.content,
596
571
  ...e.category ? { category: e.category } : {},
@@ -640,11 +615,7 @@ function V(e = {}) {
640
615
  return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
641
616
  let r = new FileReader();
642
617
  r.onload = () => {
643
- if (typeof r.result != "string") {
644
- n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
645
- return;
646
- }
647
- t(r.result);
618
+ typeof r.result == "string" ? t(r.result) : n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
648
619
  }, r.onerror = () => {
649
620
  n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
650
621
  }, r.readAsDataURL(e);
@@ -660,7 +631,7 @@ function V(e = {}) {
660
631
  },
661
632
  async create(e) {
662
633
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
663
- id: u(),
634
+ id: l(),
664
635
  url: t,
665
636
  filename: e.filename || e.file.name,
666
637
  createdAt: n,
@@ -699,16 +670,16 @@ function H(e) {
699
670
  let { provider: t, getTemplateId: n } = e, r = a([]), i = a(!1), o = a(void 0), s = a(!1), l = /* @__PURE__ */ new Map(), u = c(() => typeof t.create == "function"), d = c(() => typeof t.restore == "function");
700
671
  function f(e) {
701
672
  let t = n();
702
- if (!t) throw new m(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
673
+ if (!t) throw new _(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
703
674
  return t;
704
675
  }
705
676
  function p(e) {
706
- throw new m(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
677
+ throw new _(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
707
678
  }
708
- function h(t) {
709
- S(e.onError, t);
679
+ function m(t) {
680
+ C(e.onError, t);
710
681
  }
711
- async function g(n) {
682
+ async function h(n) {
712
683
  let a = f("list");
713
684
  i.value = !0;
714
685
  try {
@@ -720,11 +691,11 @@ function H(e) {
720
691
  i.value = !1;
721
692
  }
722
693
  }
723
- function _(e) {
694
+ function g(e) {
724
695
  return e.content ?? l.get(e.id) ?? null;
725
696
  }
726
697
  async function v(n) {
727
- let r = _(n);
698
+ let r = g(n);
728
699
  if (r) return r;
729
700
  let i = f("get");
730
701
  try {
@@ -740,7 +711,7 @@ function H(e) {
740
711
  let o = f("create");
741
712
  try {
742
713
  let e = await a(o, n, i);
743
- return r.value = [e, ...r.value], h(() => t.onCreated?.(e)), e;
714
+ return r.value = [e, ...r.value], m(() => t.onCreated?.(e)), e;
744
715
  } catch (t) {
745
716
  throw e.onError?.(t), t;
746
717
  }
@@ -757,7 +728,7 @@ function H(e) {
757
728
  } finally {
758
729
  s.value = !1;
759
730
  }
760
- return h(() => t.onRestored?.(a)), a;
731
+ return m(() => t.onRestored?.(a)), a;
761
732
  }
762
733
  return {
763
734
  nextCursor: o,
@@ -766,31 +737,31 @@ function H(e) {
766
737
  isRestoring: s,
767
738
  canCreate: u,
768
739
  canRestore: d,
769
- load: g,
770
- peekContent: _,
740
+ load: h,
741
+ peekContent: g,
771
742
  resolveContent: v,
772
743
  create: y,
773
744
  restore: b
774
745
  };
775
746
  }
776
747
  function U(e) {
777
- let { provider: t, getTemplateId: n, getUser: r } = e, i = a([]), o = a(!1), s = a(!1), l = c(() => typeof t.create == "function"), u = c(() => typeof t.update == "function"), d = c(() => typeof t.delete == "function"), f = c(() => typeof t.setResolved == "function"), p = c(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), h = c(() => i.value.filter((e) => !e.resolvedAt).length), g = c(() => {
748
+ let { provider: t, getTemplateId: n, getUser: r } = e, i = a([]), o = a(!1), s = a(!1), l = c(() => typeof t.create == "function"), u = c(() => typeof t.update == "function"), d = c(() => typeof t.delete == "function"), f = c(() => typeof t.setResolved == "function"), p = c(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = c(() => i.value.filter((e) => !e.resolvedAt).length), h = c(() => {
778
749
  let e = /* @__PURE__ */ new Map();
779
750
  for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
780
751
  return e;
781
752
  });
782
- function _(e) {
753
+ function g(e) {
783
754
  let t = n();
784
- if (!t) throw new m(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
755
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
785
756
  return t;
786
757
  }
787
758
  function v(e) {
788
759
  let t = r();
789
- if (!t) throw new m(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
760
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
790
761
  return t;
791
762
  }
792
763
  function y(e) {
793
- throw new m(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
764
+ throw new _(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
794
765
  }
795
766
  function b(e) {
796
767
  for (let t of i.value) {
@@ -799,16 +770,16 @@ function U(e) {
799
770
  }
800
771
  return null;
801
772
  }
802
- function C(e) {
773
+ function x(e) {
803
774
  let t = r();
804
775
  return t !== null && e.author.id === t.id;
805
776
  }
806
777
  function w(t) {
807
- let n = x(t);
778
+ let n = S(t);
808
779
  throw e.onError?.(n), n;
809
780
  }
810
781
  function T(t) {
811
- S(e.onError, t);
782
+ C(e.onError, t);
812
783
  }
813
784
  function E(e, t, n) {
814
785
  return [
@@ -848,7 +819,7 @@ function U(e) {
848
819
  } : t) : i.value = i.value.filter((t) => t.id !== e), n;
849
820
  }
850
821
  async function A(e) {
851
- let n = _("list");
822
+ let n = g("list");
852
823
  o.value = !0;
853
824
  try {
854
825
  i.value = await t.list(n, e);
@@ -861,7 +832,7 @@ function U(e) {
861
832
  async function j(e) {
862
833
  let { create: n } = t;
863
834
  typeof n != "function" && y("create");
864
- let r = _("create");
835
+ let r = g("create");
865
836
  v("create"), s.value = !0;
866
837
  try {
867
838
  let i = await n(r, e);
@@ -875,7 +846,7 @@ function U(e) {
875
846
  async function M(e, n) {
876
847
  let { update: r } = t;
877
848
  typeof r != "function" && y("update");
878
- let i = _("update");
849
+ let i = g("update");
879
850
  v("update"), s.value = !0;
880
851
  try {
881
852
  let a = await r(i, e, n);
@@ -889,7 +860,7 @@ function U(e) {
889
860
  async function N(e) {
890
861
  let { delete: n } = t;
891
862
  typeof n != "function" && y("delete");
892
- let r = _("delete");
863
+ let r = g("delete");
893
864
  v("delete");
894
865
  let i = b(e);
895
866
  s.value = !0;
@@ -904,7 +875,7 @@ function U(e) {
904
875
  async function P(e, n) {
905
876
  let { setResolved: r } = t;
906
877
  typeof r != "function" && y("setResolved");
907
- let i = _("setResolved");
878
+ let i = g("setResolved");
908
879
  v("setResolved"), s.value = !0;
909
880
  try {
910
881
  let a = await r(i, e, n);
@@ -934,15 +905,15 @@ function U(e) {
934
905
  canDelete: d,
935
906
  canResolve: f,
936
907
  totalCount: p,
937
- unresolvedCount: h,
938
- commentCountByBlock: g,
908
+ unresolvedCount: m,
909
+ commentCountByBlock: h,
939
910
  load: A,
940
911
  create: j,
941
912
  update: M,
942
913
  remove: N,
943
914
  setResolved: P,
944
915
  find: b,
945
- isOwn: C,
916
+ isOwn: x,
946
917
  applyRemoteCreate: F,
947
918
  applyRemoteUpdate: I,
948
919
  applyRemoteDelete: L
@@ -982,7 +953,7 @@ function K(e, t, n = []) {
982
953
  //#endregion
983
954
  //#region src/utils/resolveFieldColors.ts
984
955
  function q(e, t) {
985
- let n = y({ presets: e.presets }, v), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
956
+ let n = b({ presets: e.presets }, y), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
986
957
  return {
987
958
  presets: r ? t.presets : n.presets,
988
959
  allowCustom: t.allowCustom !== !1 && i,
@@ -992,7 +963,7 @@ function q(e, t) {
992
963
  allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
993
964
  };
994
965
  }
995
- var J = b({
966
+ var J = x({
996
967
  name: "code",
997
968
  size: 24,
998
969
  node: [["path", {
@@ -1002,7 +973,7 @@ var J = b({
1002
973
  d: "m8 6-6 6 6 6",
1003
974
  key: "ppft3o"
1004
975
  }]]
1005
- }), Y = b({
976
+ }), Y = x({
1006
977
  name: "image",
1007
978
  size: 24,
1008
979
  node: [
@@ -1026,14 +997,14 @@ var J = b({
1026
997
  key: "1xmnt7"
1027
998
  }]
1028
999
  ]
1029
- }), X = b({
1000
+ }), X = x({
1030
1001
  name: "navigation",
1031
1002
  size: 24,
1032
1003
  node: [["polygon", {
1033
1004
  points: "3 11 22 2 13 21 11 13 3 11",
1034
1005
  key: "1ltx0t"
1035
1006
  }]]
1036
- }), Z = b({
1007
+ }), Z = x({
1037
1008
  name: "share-2",
1038
1009
  size: 24,
1039
1010
  node: [
@@ -1070,7 +1041,7 @@ var J = b({
1070
1041
  key: "1n3mei"
1071
1042
  }]
1072
1043
  ]
1073
- }), Q = b({
1044
+ }), Q = x({
1074
1045
  name: "table",
1075
1046
  size: 24,
1076
1047
  node: [
@@ -1097,7 +1068,7 @@ var J = b({
1097
1068
  ]
1098
1069
  }), $ = "image/";
1099
1070
  function ee(e) {
1100
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || s(r), { isOverDropZone: a } = _(t, {
1071
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || s(r), { isOverDropZone: a } = v(t, {
1101
1072
  preventDefaultForUnhandled: !0,
1102
1073
  onDrop: (e) => {
1103
1074
  if (!i()) return;
@@ -1109,7 +1080,7 @@ function ee(e) {
1109
1080
  }
1110
1081
  //#endregion
1111
1082
  //#region src/constants/socialIcons.ts
1112
- var te = h, ne = {
1083
+ var te = d, ne = {
1113
1084
  small: 24,
1114
1085
  medium: 32,
1115
1086
  large: 48
@@ -1133,4 +1104,4 @@ var te = h, ne = {
1133
1104
  "behance"
1134
1105
  ];
1135
1106
  //#endregion
1136
- export { O as C, H as E, w as S, I as T, A as _, Q as a, N as b, Y as c, K as d, G as f, M as g, R as h, ee as i, J as l, V as m, te as n, Z as o, j as p, re as r, X as s, ne as t, q as u, W as v, F as w, P as x, U as y };
1107
+ export { k as C, H as E, T as S, I as T, A as _, Q as a, N as b, Y as c, K as d, G as f, M as g, R as h, ee as i, J as l, V as m, te as n, Z as o, j as p, re as r, X as s, ne as t, q as u, W as v, F as w, P as x, U as y };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-BVcoovvP.js";
1
+ import { t as e } from "./createLucideIcon-BAPyioGd.js";
2
2
  var t = e({
3
3
  name: "sparkles",
4
4
  size: 24,