@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,26 +1,26 @@
1
- import { B as e, Q as t, W as n, X as r, Y as i, Z as a, f as o, ot as s, rt as c } from "./draggable-IB4x6w2O.js";
2
- import { D as l, K as u, S as d, T as f, W as p, dt as m, t as h, x as g } from "./src-QIGNPFkl.js";
3
- import { r as _ } from "./dist-CXB2_kBa.js";
4
- import { o as v, s as y } from "./usePopoverPosition-DGXjXKjM.js";
1
+ import { B as e, Q as t, W as n, X as r, Y as i, Z as a, f as o, ot as s, rt as c } from "./draggable-BUTN5vZC.js";
2
+ import { A as l, D as u, E as d, J as f, Y as p, Z as m, gt as h, j as g, t as _ } from "./src-Bh0MoJ67.js";
3
+ import { r as v } from "./dist-C5nRd_ua.js";
4
+ import { o as y, s as b } from "./usePopoverPosition-CtVNwoHj.js";
5
5
  //#region ../core/src/error-reporting.ts
6
- function b(e) {
6
+ function x(e) {
7
7
  return e instanceof Error ? e : Error(String(e), { cause: e });
8
8
  }
9
- function x(e, t) {
9
+ function S(e, t) {
10
10
  try {
11
11
  t();
12
12
  } catch (t) {
13
- e?.(b(t));
13
+ e?.(x(t));
14
14
  }
15
15
  }
16
16
  //#endregion
17
17
  //#region ../core/src/editor.ts
18
- function S(e) {
18
+ function C(e) {
19
19
  return e === "1" ? 1 : e === "3" ? 3 : 2;
20
20
  }
21
- function C(e) {
22
- let t = e.content ?? u(e.defaultFontFamily, e.templateDefaults);
23
- g(t), d(t);
21
+ function w(e) {
22
+ let t = e.content ?? m(e.defaultFontFamily, e.templateDefaults);
23
+ d(t), u(t);
24
24
  let i = r({
25
25
  template: null,
26
26
  content: t,
@@ -55,12 +55,12 @@ function C(e) {
55
55
  function p(e, t) {
56
56
  if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) p(e, t);
57
57
  }
58
- function m(e, t, n = { blocks: e }) {
58
+ function h(e, t, n = { blocks: e }) {
59
59
  for (let r = 0; r < e.length; r++) {
60
60
  let i = e[r];
61
61
  if (i.id === t) return n;
62
62
  if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
63
- let n = m(i.children[e], t, {
63
+ let n = h(i.children[e], t, {
64
64
  blocks: i.children[e],
65
65
  sectionId: i.id,
66
66
  columnIndex: e
@@ -70,11 +70,11 @@ function C(e) {
70
70
  }
71
71
  return null;
72
72
  }
73
- function _(t) {
73
+ function g(t) {
74
74
  return e.lockedBlocks?.value.has(t) ?? !1;
75
75
  }
76
76
  function v(e) {
77
- let t = m(i.content.blocks, e);
77
+ let t = h(i.content.blocks, e);
78
78
  if (!t) return null;
79
79
  let n = t.blocks.findIndex((t) => t.id === e);
80
80
  return n === -1 ? null : {
@@ -84,12 +84,12 @@ function C(e) {
84
84
  };
85
85
  }
86
86
  function y(e, t = !0) {
87
- g(e), d(e), i.content = e, t && s();
87
+ d(e), u(e), i.content = e, t && s();
88
88
  }
89
89
  function b(e) {
90
- e && _(e) || (i.selectedBlockId = e);
90
+ e && g(e) || (i.selectedBlockId = e);
91
91
  }
92
- function C(e) {
92
+ function x(e) {
93
93
  i.viewport = e;
94
94
  }
95
95
  function w(e) {
@@ -102,7 +102,7 @@ function C(e) {
102
102
  i.previewMode = e, e && (i.selectedBlockId = null);
103
103
  }
104
104
  function D(e, t) {
105
- if (_(e)) return;
105
+ if (g(e)) return;
106
106
  let n = f(i.content.blocks, e);
107
107
  n && (Object.assign(n, t), s());
108
108
  }
@@ -117,12 +117,12 @@ function C(e) {
117
117
  settings: i.content.settings,
118
118
  blocks: [e]
119
119
  };
120
- if (g(a), d(a), !(t && e.type === "section")) {
120
+ if (d(a), u(a), !(t && e.type === "section")) {
121
121
  if (t) {
122
- if (_(t)) return;
122
+ if (g(t)) return;
123
123
  let a = f(i.content.blocks, t);
124
124
  if (a && a.type === "section") {
125
- if (n < 0 || n >= S(a.columns)) return;
125
+ if (n < 0 || n >= C(a.columns)) return;
126
126
  a.children[n] = a.children[n] || [];
127
127
  let t = a.children[n];
128
128
  r !== void 0 && r < t.length ? t.splice(r, 0, e) : t.push(e);
@@ -132,8 +132,8 @@ function C(e) {
132
132
  }
133
133
  }
134
134
  function A(e) {
135
- if (_(e)) return;
136
- let t = m(i.content.blocks, e);
135
+ if (g(e)) return;
136
+ let t = h(i.content.blocks, e);
137
137
  if (t) {
138
138
  let n = t.blocks.findIndex((t) => t.id === e);
139
139
  if (n !== -1) {
@@ -147,15 +147,15 @@ function C(e) {
147
147
  }
148
148
  }
149
149
  function j(e, t, n, r = 0) {
150
- if (_(e) || n && _(n)) return;
151
- let a = m(i.content.blocks, e);
150
+ if (g(e) || n && g(n)) return;
151
+ let a = h(i.content.blocks, e);
152
152
  if (!a) return;
153
153
  let o = a.blocks.findIndex((t) => t.id === e);
154
154
  if (o === -1 || n && a.blocks[o].type === "section") return;
155
155
  let c;
156
156
  if (n) {
157
157
  let e = f(i.content.blocks, n);
158
- if (!e || e.type !== "section" || r < 0 || r >= S(e.columns)) return;
158
+ if (!e || e.type !== "section" || r < 0 || r >= C(e.columns)) return;
159
159
  e.children[r] = e.children[r] || [], c = e.children[r];
160
160
  } else c = i.content.blocks;
161
161
  let [l] = a.blocks.splice(o, 1);
@@ -165,10 +165,10 @@ function C(e) {
165
165
  s();
166
166
  }
167
167
  function N(e, t) {
168
- throw new h(`[Templatical] Templates: ${e} ${t}`);
168
+ throw new _(`[Templatical] Templates: ${e} ${t}`);
169
169
  }
170
170
  function P(t) {
171
- x(e.onError, t);
171
+ S(e.onError, t);
172
172
  }
173
173
  function F(t) {
174
174
  let { templates: n } = e;
@@ -203,7 +203,7 @@ function C(e) {
203
203
  let n = F("load()"), r;
204
204
  i.isLoading = !0;
205
205
  try {
206
- r = await n.load(t), g(r.content), d(r.content), i.template = r, i.content = r.content, i.isDirty = !1;
206
+ r = await n.load(t), d(r.content), u(r.content), i.template = r, i.content = r.content, i.isDirty = !1;
207
207
  } catch (t) {
208
208
  throw e.onError?.(t), t;
209
209
  } finally {
@@ -245,10 +245,10 @@ function C(e) {
245
245
  state: a(i),
246
246
  content: c,
247
247
  selectedBlock: l,
248
- isBlockLocked: _,
248
+ isBlockLocked: g,
249
249
  setContent: y,
250
250
  selectBlock: b,
251
- setViewport: C,
251
+ setViewport: x,
252
252
  setDarkMode: w,
253
253
  setUiTheme: T,
254
254
  setPreviewMode: E,
@@ -268,11 +268,11 @@ function C(e) {
268
268
  }
269
269
  //#endregion
270
270
  //#region ../core/src/history.ts
271
- var w = 50, T = 300, E = 1500;
272
- function D(e) {
273
- let { content: r, setContent: i, isRemoteOperation: a, maxSize: o = w } = e, s = t([]), c = t([]), l = t(!1), u = null, d = null, p = n(() => s.value.length > 0), m = n(() => c.value.length > 0);
271
+ var T = 50, E = 300, D = 1500;
272
+ function O(e) {
273
+ let { content: r, setContent: i, isRemoteOperation: a, maxSize: o = T } = e, s = t([]), c = t([]), l = t(!1), u = null, d = null, f = n(() => s.value.length > 0), m = n(() => c.value.length > 0);
274
274
  function h() {
275
- return f(r.value);
275
+ return p(r.value);
276
276
  }
277
277
  function g(e) {
278
278
  s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
@@ -284,25 +284,19 @@ function D(e) {
284
284
  a?.() || (_(), g(h()), c.value = []);
285
285
  }
286
286
  function y(e) {
287
- if (!a?.()) {
288
- if (d && d.blockId === e) {
289
- clearTimeout(d.timeoutId), d.timeoutId = setTimeout(() => {
290
- d = null;
291
- }, T);
292
- return;
293
- }
294
- _(), g(h()), c.value = [], d = {
295
- blockId: e,
296
- timeoutId: setTimeout(() => {
297
- d = null;
298
- }, T)
299
- };
300
- }
287
+ a?.() || (d && d.blockId === e ? (clearTimeout(d.timeoutId), d.timeoutId = setTimeout(() => {
288
+ d = null;
289
+ }, E)) : (_(), g(h()), c.value = [], d = {
290
+ blockId: e,
291
+ timeoutId: setTimeout(() => {
292
+ d = null;
293
+ }, E)
294
+ }));
301
295
  }
302
296
  function b() {
303
297
  l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
304
298
  l.value = !1, u = null;
305
- }, E);
299
+ }, D);
306
300
  }
307
301
  function x() {
308
302
  if (s.value.length === 0) return;
@@ -319,11 +313,11 @@ function D(e) {
319
313
  function C() {
320
314
  s.value = [], c.value = [], _();
321
315
  }
322
- function D() {
316
+ function w() {
323
317
  C(), u &&= (clearTimeout(u), null);
324
318
  }
325
319
  return {
326
- canUndo: p,
320
+ canUndo: f,
327
321
  canRedo: m,
328
322
  isNavigating: l,
329
323
  undo: x,
@@ -331,39 +325,20 @@ function D(e) {
331
325
  record: v,
332
326
  recordDebounced: y,
333
327
  clear: C,
334
- destroy: D
328
+ destroy: w
335
329
  };
336
330
  }
337
331
  //#endregion
338
332
  //#region ../core/src/block-actions.ts
339
- function O(e) {
340
- e.type === "table" ? e.rows = e.rows.map((e) => ({
341
- ...e,
342
- id: p(),
343
- cells: e.cells.map((e) => ({
344
- ...e,
345
- id: p()
346
- }))
347
- })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
348
- ...e,
349
- id: p()
350
- })) : e.type === "menu" && (e.items = e.items.map((e) => ({
351
- ...e,
352
- id: p()
353
- })));
354
- }
355
333
  function k(e) {
356
334
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
357
335
  function o(n, r, a) {
358
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = l(n, o);
336
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = g(n, o);
359
337
  return t(s, r, a), i(s.id), s;
360
338
  }
361
339
  function s(e, n, r) {
362
- let o = JSON.parse(JSON.stringify(e));
363
- if (o.id = p(), O(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
364
- let t = JSON.parse(JSON.stringify(e));
365
- return t.id = p(), O(t), t;
366
- }))), n !== void 0 || r !== void 0) t(o, n, r);
340
+ let o = l(e);
341
+ if (n !== void 0 || r !== void 0) t(o, n, r);
367
342
  else {
368
343
  let i = a?.(e.id) ?? null;
369
344
  i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
@@ -508,10 +483,10 @@ function F(e) {
508
483
  return l.value && e.canDelete !== !1;
509
484
  }
510
485
  function f(e, t) {
511
- throw new h(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
486
+ throw new _(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
512
487
  }
513
488
  function p(t) {
514
- x(e.onError, t);
489
+ S(e.onError, t);
515
490
  }
516
491
  async function m(t) {
517
492
  i.value = !0;
@@ -523,7 +498,7 @@ function F(e) {
523
498
  i.value = !1;
524
499
  }
525
500
  }
526
- async function g(t, i, a) {
501
+ async function h(t, i, a) {
527
502
  let { create: o } = n;
528
503
  typeof o != "function" && f("create", "disabled by the provider");
529
504
  try {
@@ -540,7 +515,7 @@ function F(e) {
540
515
  throw e.onError?.(t), t;
541
516
  }
542
517
  }
543
- async function _(t, i) {
518
+ async function g(t, i) {
544
519
  let { update: a } = n;
545
520
  typeof a != "function" && f("update", "disabled by the provider");
546
521
  let o = r.value.find((e) => e.id === t);
@@ -573,8 +548,8 @@ function F(e) {
573
548
  canUpdateBlock: u,
574
549
  canDeleteBlock: d,
575
550
  load: m,
576
- create: g,
577
- update: _,
551
+ create: h,
552
+ update: g,
578
553
  remove: v
579
554
  };
580
555
  }
@@ -607,7 +582,7 @@ function L(e = {}) {
607
582
  },
608
583
  async create(e) {
609
584
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
610
- id: p(),
585
+ id: f(),
611
586
  name: e.name,
612
587
  content: e.content,
613
588
  ...e.category ? { category: e.category } : {},
@@ -659,11 +634,7 @@ function B(e = {}) {
659
634
  return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
660
635
  let r = new FileReader();
661
636
  r.onload = () => {
662
- if (typeof r.result != "string") {
663
- n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
664
- return;
665
- }
666
- t(r.result);
637
+ typeof r.result == "string" ? t(r.result) : n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
667
638
  }, r.onerror = () => {
668
639
  n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
669
640
  }, r.readAsDataURL(e);
@@ -679,7 +650,7 @@ function B(e = {}) {
679
650
  },
680
651
  async create(e) {
681
652
  let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
682
- id: p(),
653
+ id: f(),
683
654
  url: t,
684
655
  filename: e.filename || e.file.name,
685
656
  createdAt: n,
@@ -720,16 +691,16 @@ function V(e) {
720
691
  let { provider: n, getTemplateId: r } = e, i = t([]), a = t(!1), s = t(void 0), c = t(!1), l = /* @__PURE__ */ new Map(), u = o(() => typeof n.create == "function"), d = o(() => typeof n.restore == "function");
721
692
  function f(e) {
722
693
  let t = r();
723
- if (!t) throw new h(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
694
+ if (!t) throw new _(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
724
695
  return t;
725
696
  }
726
697
  function p(e) {
727
- throw new h(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
698
+ throw new _(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
728
699
  }
729
700
  function m(t) {
730
- x(e.onError, t);
701
+ S(e.onError, t);
731
702
  }
732
- async function g(t) {
703
+ async function h(t) {
733
704
  let r = f("list");
734
705
  a.value = !0;
735
706
  try {
@@ -741,11 +712,11 @@ function V(e) {
741
712
  a.value = !1;
742
713
  }
743
714
  }
744
- function _(e) {
715
+ function g(e) {
745
716
  return e.content ?? l.get(e.id) ?? null;
746
717
  }
747
718
  async function v(t) {
748
- let r = _(t);
719
+ let r = g(t);
749
720
  if (r) return r;
750
721
  let i = f("get");
751
722
  try {
@@ -787,8 +758,8 @@ function V(e) {
787
758
  isRestoring: c,
788
759
  canCreate: u,
789
760
  canRestore: d,
790
- load: g,
791
- peekContent: _,
761
+ load: h,
762
+ peekContent: g,
792
763
  resolveContent: v,
793
764
  create: y,
794
765
  restore: b
@@ -797,25 +768,25 @@ function V(e) {
797
768
  //#endregion
798
769
  //#region ../core/src/comments.ts
799
770
  function H(e) {
800
- let { provider: n, getTemplateId: r, getUser: i } = e, a = t([]), s = t(!1), c = t(!1), l = o(() => typeof n.create == "function"), u = o(() => typeof n.update == "function"), d = o(() => typeof n.delete == "function"), f = o(() => typeof n.setResolved == "function"), p = o(() => a.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = o(() => a.value.filter((e) => !e.resolvedAt).length), g = o(() => {
771
+ let { provider: n, getTemplateId: r, getUser: i } = e, a = t([]), s = t(!1), c = t(!1), l = o(() => typeof n.create == "function"), u = o(() => typeof n.update == "function"), d = o(() => typeof n.delete == "function"), f = o(() => typeof n.setResolved == "function"), p = o(() => a.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), m = o(() => a.value.filter((e) => !e.resolvedAt).length), h = o(() => {
801
772
  let e = /* @__PURE__ */ new Map();
802
773
  for (let t of a.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
803
774
  return e;
804
775
  });
805
- function _(e) {
776
+ function g(e) {
806
777
  let t = r();
807
- if (!t) throw new h(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
778
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
808
779
  return t;
809
780
  }
810
781
  function v(e) {
811
782
  let t = i();
812
- if (!t) throw new h(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
783
+ if (!t) throw new _(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
813
784
  return t;
814
785
  }
815
786
  function y(e) {
816
- throw new h(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
787
+ throw new _(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
817
788
  }
818
- function S(e) {
789
+ function b(e) {
819
790
  for (let t of a.value) {
820
791
  if (t.id === e) return t;
821
792
  for (let n of t.replies ?? []) if (n.id === e) return n;
@@ -827,11 +798,11 @@ function H(e) {
827
798
  return t !== null && e.author.id === t.id;
828
799
  }
829
800
  function w(t) {
830
- let n = b(t);
801
+ let n = x(t);
831
802
  throw e.onError?.(n), n;
832
803
  }
833
804
  function T(t) {
834
- x(e.onError, t);
805
+ S(e.onError, t);
835
806
  }
836
807
  function E(e, t, n) {
837
808
  return [
@@ -864,14 +835,14 @@ function H(e) {
864
835
  return !D(a.value[t], n) && (a.value = E(a.value, t, n), !0);
865
836
  }
866
837
  function k(e, t) {
867
- let n = S(e), r = t ?? n?.parentId ?? null;
838
+ let n = b(e), r = t ?? n?.parentId ?? null;
868
839
  return r ? a.value = a.value.map((t) => t.id === r ? {
869
840
  ...t,
870
841
  replies: (t.replies ?? []).filter((t) => t.id !== e)
871
842
  } : t) : a.value = a.value.filter((t) => t.id !== e), n;
872
843
  }
873
844
  async function A(e) {
874
- let t = _("list");
845
+ let t = g("list");
875
846
  s.value = !0;
876
847
  try {
877
848
  a.value = await n.list(t, e);
@@ -884,7 +855,7 @@ function H(e) {
884
855
  async function j(e) {
885
856
  let { create: t } = n;
886
857
  typeof t != "function" && y("create");
887
- let r = _("create");
858
+ let r = g("create");
888
859
  v("create"), c.value = !0;
889
860
  try {
890
861
  let i = await t(r, e);
@@ -898,7 +869,7 @@ function H(e) {
898
869
  async function M(e, t) {
899
870
  let { update: r } = n;
900
871
  typeof r != "function" && y("update");
901
- let i = _("update");
872
+ let i = g("update");
902
873
  v("update"), c.value = !0;
903
874
  try {
904
875
  let a = await r(i, e, t);
@@ -912,9 +883,9 @@ function H(e) {
912
883
  async function N(e) {
913
884
  let { delete: t } = n;
914
885
  typeof t != "function" && y("delete");
915
- let r = _("delete");
886
+ let r = g("delete");
916
887
  v("delete");
917
- let i = S(e);
888
+ let i = b(e);
918
889
  c.value = !0;
919
890
  try {
920
891
  await t(r, e), k(e), i && T(() => n.onDeleted?.(i, { origin: "local" }));
@@ -927,7 +898,7 @@ function H(e) {
927
898
  async function P(e, t) {
928
899
  let { setResolved: r } = n;
929
900
  typeof r != "function" && y("setResolved");
930
- let i = _("setResolved");
901
+ let i = g("setResolved");
931
902
  v("setResolved"), c.value = !0;
932
903
  try {
933
904
  let a = await r(i, e, t);
@@ -958,13 +929,13 @@ function H(e) {
958
929
  canResolve: f,
959
930
  totalCount: p,
960
931
  unresolvedCount: m,
961
- commentCountByBlock: g,
932
+ commentCountByBlock: h,
962
933
  load: A,
963
934
  create: j,
964
935
  update: M,
965
936
  remove: N,
966
937
  setResolved: P,
967
- find: S,
938
+ find: b,
968
939
  isOwn: C,
969
940
  applyRemoteCreate: F,
970
941
  applyRemoteUpdate: I,
@@ -1005,7 +976,7 @@ function G(e, t, n = []) {
1005
976
  //#endregion
1006
977
  //#region src/utils/resolveFieldColors.ts
1007
978
  function K(e, t) {
1008
- let n = y({ presets: e.presets }, v), r = n.presets.length === 0;
979
+ let n = b({ presets: e.presets }, y), r = n.presets.length === 0;
1009
980
  return {
1010
981
  presets: r ? t.presets : n.presets,
1011
982
  allowCustom: t.allowCustom === !1 ? !1 : e.allowCustom ?? t.allowCustom,
@@ -1019,7 +990,7 @@ function K(e, t) {
1019
990
  //#region src/composables/useImageDrop.ts
1020
991
  var q = "image/";
1021
992
  function J(e) {
1022
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || c(r), { isOverDropZone: a } = _(t, {
993
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || c(r), { isOverDropZone: a } = v(t, {
1023
994
  preventDefaultForUnhandled: !0,
1024
995
  onDrop: (e) => {
1025
996
  if (!i()) return;
@@ -1031,7 +1002,7 @@ function J(e) {
1031
1002
  }
1032
1003
  //#endregion
1033
1004
  //#region src/constants/socialIcons.ts
1034
- var Y = m, X = {
1005
+ var Y = h, X = {
1035
1006
  small: 24,
1036
1007
  medium: 32,
1037
1008
  large: 48
@@ -1055,6 +1026,6 @@ var Y = m, X = {
1055
1026
  "behance"
1056
1027
  ];
1057
1028
  //#endregion
1058
- export { A as _, K as a, D as b, U as c, B as d, L as f, M as g, N as h, J as i, H as l, P as m, Y as n, G as o, F as p, Z as r, W as s, X as t, V as u, j as v, C as x, k as y };
1029
+ export { A as _, K as a, O as b, U as c, B as d, L as f, M as g, N as h, J as i, H as l, P as m, Y as n, G as o, F as p, Z as r, W as s, X as t, V as u, j as v, w as x, k as y };
1059
1030
 
1060
- //# sourceMappingURL=socialIcons-CnUJBZTO.js.map
1031
+ //# sourceMappingURL=socialIcons-ClJVDZwt.js.map