@templatical/editor 0.46.0 → 0.47.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 (305) hide show
  1. package/dist/{AiChatSidebar-DGcH4Lyo.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-B4q-0g1S.js → AiFeatureMenu-H_WT4YR8.js} +7 -7
  3. package/dist/{BlockIssueBadge-CZA1XvAh.js → BlockIssueBadge-AgO5abEB.js} +5 -5
  4. package/dist/BlockPreviewCanvas-CZDBSPoG.js +136 -0
  5. package/dist/{CloudHeaderExtras-ehMYJP68.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-BwOaAlKz.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-qOZFRNPx.js → CollaboratorBar-BazGNMqN.js} +4 -4
  8. package/dist/{CommentsPanel-Bn6P5crU.js → CommentsPanel-CMgsG_yh.js} +2 -2
  9. package/dist/{CommentsSidebar-B8wT932T.js → CommentsSidebar-DCh8DTP8.js} +14 -14
  10. package/dist/CountdownBlock-zx39Dyby.js +92 -0
  11. package/dist/{CountdownToolbar-BeF21SeB.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zH93uB15.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-Dltw9haP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-CHa-UD76.js → LogicTagInsertButton-DDYKnqmj.js} +13 -13
  16. package/dist/{MediaEditModal-EY1YYcpw.js → MediaEditModal-D_we0Scr.js} +4 -4
  17. package/dist/{MediaPanels-CRVFGFZW.js → MediaPanels-L95BwWV1.js} +2 -2
  18. package/dist/{MergeTagInput-B3ntd4dN.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-C_06ZL0Q.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-CxuW3TV0.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-B1n37M1Z.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-CP_uULWB.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BSKX_7_v.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-CHKrH1gO.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-B-xDqBcz.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-D2J-g82g.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D07K_Y4m.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-BNPw_lID.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-8klWo8hE.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-CmC9OuhA.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-COeyWGfT.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CqhRb6EM.js → Toolbar-OGakTBEg.js} +747 -628
  34. package/dist/{TplModal-BGFawHY9.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-DdbGjEOR.js → VersionHistoryPanels-DowHeDAQ.js} +2 -2
  37. package/dist/{VersionPreviewBanner-BUKb9gc6.js → VersionPreviewBanner-Bo8NxBbh.js} +4 -4
  38. package/dist/WrapperBlock-BOABSX9W.js +46 -0
  39. package/dist/{blockTypeIcons-CVKo6V_v.js → blockTypeIcons-4E1U8f99.js} +5 -5
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +21 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-kCK4NZM9.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-K1dLeDft.js.map → AiFeatureMenu-BqSG9iEd.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js → BlockIssueBadge-CS7ytN-z.js} +5 -5
  47. package/dist/cdn/chunks/{BlockIssueBadge-05Q3L4RV.js.map → BlockIssueBadge-CS7ytN-z.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js +138 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-cOTMFRcg.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-5ONQ1RCa.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-_irSdWbi.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-CZufI1On.js.map → CollaboratorBar-MeRQB1eN.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js → CommentsPanel-CmxPylNf.js} +3 -3
  57. package/dist/cdn/chunks/{CommentsPanel-VH_NJ5HZ.js.map → CommentsPanel-CmxPylNf.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js → CommentsSidebar-CrleQTbo.js} +13 -13
  59. package/dist/cdn/chunks/{CommentsSidebar-CYPH5rVi.js.map → CommentsSidebar-CrleQTbo.js.map} +1 -1
  60. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js +94 -0
  61. package/dist/cdn/chunks/CountdownBlock-Dasj191h.js.map +1 -0
  62. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-BaXCefQM.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-GjkpHylX.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-C1Lv2y_O.js.map → IssuesPanel-BGjLcNpQ.js.map} +1 -1
  68. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js → LoadingTrack-DbH97JR9.js} +2 -2
  69. package/dist/cdn/chunks/{LoadingTrack-Cg1HRIND.js.map → LoadingTrack-DbH97JR9.js.map} +1 -1
  70. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-BYjdrDnQ.js.map → LogicTagInsertButton-BEsqPhMr.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js → MediaEditModal-C1Ao0i2c.js} +4 -4
  73. package/dist/cdn/chunks/{MediaEditModal-CD3fVbWI.js.map → MediaEditModal-C1Ao0i2c.js.map} +1 -1
  74. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js → MediaPanels-1GPYiZZ0.js} +3 -3
  75. package/dist/cdn/chunks/{MediaPanels-B2AyUUcf.js.map → MediaPanels-1GPYiZZ0.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-Cx67J_vg.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-DZ4EuXVp.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-DndEFXmR.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-CFYs13a4.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-DKkDQ0dc.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-BOA2RaC_.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DQDVek3K.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-Lu3tJ3QA.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-D7MtqG6r.js.map → SavedBlocksPickBar-BtpFU7es.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js → TemplateScoringPanel-N4ySFh5w.js} +12 -12
  95. package/dist/cdn/chunks/{TemplateScoringPanel-C_57Bfkf.js.map → TemplateScoringPanel-N4ySFh5w.js.map} +1 -1
  96. package/dist/cdn/chunks/{TemplateSettings-rZiHmq24.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-DWEyHXH2.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-XXMD-Lnr.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-D1F0YoE-.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-B5U9cqhi.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-C_5HfUQq.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-CYBbPCHL.js → TplModal-WIBiBrGy.js} +6 -6
  109. package/dist/cdn/chunks/TplModal-WIBiBrGy.js.map +1 -0
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js → VersionHistoryMenu-CZnlS9K5.js} +6 -6
  111. package/dist/cdn/chunks/{VersionHistoryMenu-DbxuJgDO.js.map → VersionHistoryMenu-CZnlS9K5.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-Dq12VsTX.js.map → VersionHistoryPanels-xjLSpR1e.js.map} +1 -1
  114. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js → VersionPreviewBanner-sARpn4hh.js} +5 -5
  115. package/dist/cdn/chunks/{VersionPreviewBanner-HRERIH-v.js.map → VersionPreviewBanner-sARpn4hh.js.map} +1 -1
  116. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js +48 -0
  117. package/dist/cdn/chunks/WrapperBlock-fsLe7goL.js.map +1 -0
  118. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js → blockTypeIcons-D3g5QzdT.js} +2 -2
  119. package/dist/cdn/chunks/{blockTypeIcons-DdZP-3FM.js.map → blockTypeIcons-D3g5QzdT.js.map} +1 -1
  120. package/dist/cdn/chunks/{ca-C__Dzq--.js → ca-DMoGGP9L.js} +22 -1
  121. package/dist/cdn/chunks/ca-DMoGGP9L.js.map +1 -0
  122. package/dist/cdn/chunks/{cloud-h1vaHp2p.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-h1vaHp2p.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-bJN9EM1H.js → createCloudRuntime-DtIZ2Lee.js} +17 -8
  125. package/dist/cdn/chunks/createCloudRuntime-DtIZ2Lee.js.map +1 -0
  126. package/dist/cdn/chunks/{de-CGjbQ2mt.js → de-DgAelLbM.js} +22 -1
  127. package/dist/cdn/chunks/de-DgAelLbM.js.map +1 -0
  128. package/dist/cdn/chunks/{dist-B7W-Lb65.js → dist-CjL6JHML.js} +3 -3
  129. package/dist/cdn/chunks/{dist-B7W-Lb65.js.map → dist-CjL6JHML.js.map} +1 -1
  130. package/dist/cdn/chunks/{dist-C5nRd_ua.js → dist-MNQYSEWU.js} +4 -4
  131. package/dist/cdn/chunks/{dist-C5nRd_ua.js.map → dist-MNQYSEWU.js.map} +1 -1
  132. package/dist/cdn/chunks/{draggable-BUTN5vZC.js → draggable-DrsNwZuB.js} +1673 -1595
  133. package/dist/cdn/chunks/draggable-DrsNwZuB.js.map +1 -0
  134. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js → editor-modal-Bcwo0orC.js} +34 -34
  135. package/dist/cdn/chunks/{editor-modal-BpsbYA4_.js.map → editor-modal-Bcwo0orC.js.map} +1 -1
  136. package/dist/cdn/chunks/en-BANFWZdr.js +1 -0
  137. package/dist/cdn/chunks/{en-BTiiAC-B.js → en-Dekrl7HA.js} +22 -1
  138. package/dist/cdn/chunks/en-Dekrl7HA.js.map +1 -0
  139. package/dist/cdn/chunks/{es-CdTOcSTf.js → es-BaZzyidV.js} +22 -1
  140. package/dist/cdn/chunks/es-BaZzyidV.js.map +1 -0
  141. package/dist/cdn/chunks/{extensions-CrmXF4MW.js → extensions-T-t8MKDb.js} +7 -7
  142. package/dist/cdn/chunks/{extensions-CrmXF4MW.js.map → extensions-T-t8MKDb.js.map} +1 -1
  143. package/dist/cdn/chunks/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +22 -1
  144. package/dist/cdn/chunks/fr-C5ucb1HK.js.map +1 -0
  145. package/dist/cdn/chunks/{icons-Dr9erFGs.js → icons-C4fX9Bwy.js} +27 -27
  146. package/dist/cdn/chunks/{icons-Dr9erFGs.js.map → icons-C4fX9Bwy.js.map} +1 -1
  147. package/dist/cdn/chunks/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +22 -1
  148. package/dist/cdn/chunks/ja-CUgR3mV0.js.map +1 -0
  149. package/dist/cdn/chunks/{keys-BKu-LOk5.js → keys-HI-INbkz.js} +2 -2
  150. package/dist/cdn/chunks/{keys-BKu-LOk5.js.map → keys-HI-INbkz.js.map} +1 -1
  151. package/dist/{nl-CE3YItYg.js → cdn/chunks/nl-qrLY7hMS.js} +23 -0
  152. package/dist/cdn/chunks/nl-qrLY7hMS.js.map +1 -0
  153. package/dist/cdn/chunks/{preRenderCustomBlocks-CyGB3lZr.js → preRenderCustomBlocks-Co0oi0Jf.js} +4 -2
  154. package/dist/cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js.map +1 -0
  155. package/dist/cdn/chunks/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +22 -1
  156. package/dist/cdn/chunks/pt-BR-C6hMTQYi.js.map +1 -0
  157. package/dist/cdn/chunks/socialIcons-DACw1wA8.js +1103 -0
  158. package/dist/cdn/chunks/socialIcons-DACw1wA8.js.map +1 -0
  159. package/dist/{dist-BI_LeQGl.js → cdn/chunks/src-BnJlDuyB.js} +392 -249
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-BMw3u-iV.js → src-Bu0qBpbf.js} +214 -212
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-B0pZeTYO.js → src-CHlVFp7r.js} +308 -268
  164. package/dist/cdn/chunks/src-CHlVFp7r.js.map +1 -0
  165. package/dist/{styleConstants-C_YAPdQS.js → cdn/chunks/styleConstants-D1Jz-TFU.js} +9 -28
  166. package/dist/cdn/chunks/{styleConstants-C_YAPdQS.js.map → styleConstants-D1Jz-TFU.js.map} +1 -1
  167. package/dist/cdn/chunks/{tiptap-CYDXLO17.js → tiptap-BPigZk5G.js} +3258 -3098
  168. package/dist/cdn/chunks/tiptap-BPigZk5G.js.map +1 -0
  169. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js → useAliveFlag-DCB96vzR.js} +2 -2
  170. package/dist/cdn/chunks/{useAliveFlag-DzyXG-8A.js.map → useAliveFlag-DCB96vzR.js.map} +1 -1
  171. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js → useCloudI18n-BBF4waXO.js} +3 -3
  172. package/dist/cdn/chunks/{useCloudI18n-Cgk0ts_F.js.map → useCloudI18n-BBF4waXO.js.map} +1 -1
  173. package/dist/cdn/chunks/{useEditorCore-DuC7kVti.js → useEditorCore-Bf2d1DKI.js} +543 -532
  174. package/dist/cdn/chunks/useEditorCore-Bf2d1DKI.js.map +1 -0
  175. package/dist/cdn/chunks/useEditorRoot-CTc6O8al.js +10 -0
  176. package/dist/cdn/chunks/{useEditorRoot-DDPIcEOO.js.map → useEditorRoot-CTc6O8al.js.map} +1 -1
  177. package/dist/cdn/chunks/{useI18n-DO4NTunW.js → useI18n-DUlyyIJJ.js} +3 -3
  178. package/dist/cdn/chunks/{useI18n-DO4NTunW.js.map → useI18n-DUlyyIJJ.js.map} +1 -1
  179. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-B3uV3XHG.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-DJLM-7WQ.js.map → useMergeTag-BQtxUHq1.js.map} +1 -1
  183. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js → usePopoverPosition-IbaW6-Ao.js} +3 -3
  184. package/dist/cdn/chunks/{usePopoverPosition-CtVNwoHj.js.map → usePopoverPosition-IbaW6-Ao.js.map} +1 -1
  185. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js → useScrollToBlock-uUa601I4.js} +3 -3
  186. package/dist/cdn/chunks/{useScrollToBlock-CpmB5KxW.js.map → useScrollToBlock-uUa601I4.js.map} +1 -1
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/{withCurrentFont-isIyuezD.js.map → withCurrentFont-DwJd-lKc.js.map} +1 -1
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +614 -610
  191. package/dist/cdn/editor.js.map +1 -1
  192. package/dist/{check-ZKvtMdpe.js → check-B5R4zXr7.js} +1 -1
  193. package/dist/{chevron-down-RrwkYMlp.js → chevron-down-BKyl85NV.js} +1 -1
  194. package/dist/{chevron-right-CklHaa1U.js → chevron-right-BmToZ8qX.js} +1 -1
  195. package/dist/{chevron-up-DjN2NTbo.js → chevron-up-DNYdOxPC.js} +1 -1
  196. package/dist/{circle-alert-BR1_Yfb-.js → circle-alert-Dx9ju3YZ.js} +1 -1
  197. package/dist/{clock-BEagNj21.js → clock-Dv9bxsSH.js} +1 -1
  198. package/dist/{cloud-DPGjMGfv.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-D0RRgWab.js → createCloudRuntime-C8gpPsSi.js} +16 -7
  201. package/dist/{createLucideIcon-BAPyioGd.js → createLucideIcon-DziKp5iU.js} +6 -6
  202. package/dist/{de-CGjbQ2mt.js → de-DgAelLbM.js} +21 -0
  203. package/dist/{dist-Bd7khQsg.js → dist-3HpYixwF.js} +2 -2
  204. package/dist/{dist-lL3nVbxV.js → dist-BC-ZEYLd.js} +2 -2
  205. package/dist/dist-BPFcLKTw.js +5 -0
  206. package/dist/{cdn/chunks/src-Bh0MoJ67.js → dist-C8koXLhl.js} +295 -298
  207. package/dist/{dist-C-VFTX82.js → dist-CUWI-IvA.js} +2 -2
  208. package/dist/{dist-Bc30883t.js → dist-Cr7RPxI9.js} +5 -5
  209. package/dist/{dist-DapsJxn_.js → dist-CuLwJF7H.js} +2 -2
  210. package/dist/{dist-5KNKxglR.js → dist-CyBwSiAa.js} +2 -2
  211. package/dist/dist-D7Yj7E-F.js +5 -0
  212. package/dist/{dist-B_vYjCsk.js → dist-DAAJogrx.js} +3 -3
  213. package/dist/{dist-CMcFD7gP.js → dist-DBxgrOeo.js} +1906 -1746
  214. package/dist/{dist-DHensKDY.js → dist-DPcf6XZ8.js} +2 -2
  215. package/dist/{dist-5DAb7bYT.js → dist-DVNjPKsH.js} +2 -2
  216. package/dist/{dist-C3eH9-N2.js → dist-DXyGqIDE.js} +2 -2
  217. package/dist/{dist-1H4cnaoD.js → dist-DuufrR8O.js} +4 -4
  218. package/dist/{editor-modal-oRmkDlUs.js → editor-modal-BwyIUnV_.js} +27 -27
  219. package/dist/en-CC-57eC_.js +1 -0
  220. package/dist/{en-BTiiAC-B.js → en-Dekrl7HA.js} +21 -0
  221. package/dist/{es-CdTOcSTf.js → es-BaZzyidV.js} +21 -0
  222. package/dist/{extensions-CYigjb1g.js → extensions-DHyKjsNZ.js} +9 -9
  223. package/dist/{eye-DvsTBI57.js → eye-DQuinb9k.js} +1 -1
  224. package/dist/{fr-B6lcLLzC.js → fr-C5ucb1HK.js} +21 -0
  225. package/dist/{image-up-BoFGZm5Q.js → image-up-yTfLjOrj.js} +1 -1
  226. package/dist/index.d.ts +58 -8
  227. package/dist/{info-0bQQGjTV.js → info-C7OjlS11.js} +1 -1
  228. package/dist/{ja-BhdkqENz.js → ja-CUgR3mV0.js} +21 -0
  229. package/dist/{keys-injl74ob.js → keys-BKFq19a2.js} +1 -1
  230. package/dist/{link-Cstrr3Ep.js → link-CrUFaZ0t.js} +1 -1
  231. package/dist/{list-Dx9Rmy5s.js → list-CLgv6M-k.js} +1 -1
  232. package/dist/{loader-circle-D8Qqs0MG.js → loader-circle-BXM5VO0K.js} +1 -1
  233. package/dist/{message-circle-D78ELX6I.js → message-circle-BisdQ8H9.js} +1 -1
  234. package/dist/{cdn/chunks/nl-CE3YItYg.js → nl-qrLY7hMS.js} +21 -2
  235. package/dist/{package-DOvM9sHE.js → package-C1T4AxV1.js} +1 -1
  236. package/dist/{pencil-B6m0OG0n.js → pencil-oo2mwf4C.js} +1 -1
  237. package/dist/{plus-D-nEKxTc.js → plus-BIilXopD.js} +1 -1
  238. package/dist/{preRenderCustomBlocks-DokBGA_M.js → preRenderCustomBlocks-lFX0HHiV.js} +5 -3
  239. package/dist/{pt-BR-CUIT4rq4.js → pt-BR-C6hMTQYi.js} +21 -0
  240. package/dist/{refresh-cw-CXZS-R1U.js → refresh-cw-DrLlkEVC.js} +1 -1
  241. package/dist/{runtime-dom.esm-bundler-CO67ema2.js → runtime-dom.esm-bundler-lFF-QG3j.js} +3 -3
  242. package/dist/{search-DSvil0jo.js → search-DNu9lImk.js} +1 -1
  243. package/dist/{send-BBR28V94.js → send-DDNh3LoJ.js} +1 -1
  244. package/dist/{shield-check-ByxUnaU9.js → shield-check-aXM3o14f.js} +1 -1
  245. package/dist/{smartphone-CNOwGf5T.js → smartphone-isccgDee.js} +1 -1
  246. package/dist/socialIcons-BctavKBN.js +1180 -0
  247. package/dist/{sparkles-DO1hzwzf.js → sparkles-CIMfFxKv.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/{cdn/chunks/styleConstants-C_YAPdQS.js → styleConstants-D1Jz-TFU.js} +7 -30
  250. package/dist/templatical-editor.js +559 -555
  251. package/dist/{text-align-start-BKEKMheq.js → text-align-start-C4JFeqsq.js} +1 -1
  252. package/dist/{trash-CKEQH4vH.js → trash-8ZD9pK_c.js} +1 -1
  253. package/dist/{triangle-alert-BHnfd3fV.js → triangle-alert-pq45xEHl.js} +1 -1
  254. package/dist/{upload-C8uO7KsR.js → upload-DrNFmVes.js} +1 -1
  255. package/dist/{useAliveFlag-6PtarpNZ.js → useAliveFlag-Dd06mRxe.js} +1 -1
  256. package/dist/{useCloudI18n-GvIOLziA.js → useCloudI18n-Nwqo7pI_.js} +2 -2
  257. package/dist/{useEditorCore-BJAQMvNW.js → useEditorCore-BcT7UI4e.js} +1011 -1006
  258. package/dist/{useEditorRoot-OWzNpDdT.js → useEditorRoot-BD3piYtD.js} +2 -2
  259. package/dist/{useI18n-uF11q85g.js → useI18n-CxVEpurs.js} +2 -2
  260. package/dist/{useLogicTag-B5gjcMzn.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-BwsBIDzR.js → useMergeTag-5wMeDBi-.js} +5 -5
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-JRxhT1u_.js → useScrollToBlock-Do3suaqp.js} +3 -3
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/{withCurrentFont-C9vqrduu.js → withCurrentFont-B4YnsG_2.js} +1 -1
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +23 -23
  268. package/dist/BlockPreviewCanvas-DIZ0KgUD.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CTkmA887.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-Djz9YAFx.js.map +0 -1
  273. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js +0 -93
  274. package/dist/cdn/chunks/CountdownBlock-lHU3Lu7Q.js.map +0 -1
  275. package/dist/cdn/chunks/ParagraphEditor-DndEFXmR.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-rZiHmq24.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-C_5HfUQq.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-CYBbPCHL.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-CJ0CLqi2.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-bJN9EM1H.js.map +0 -1
  283. package/dist/cdn/chunks/de-CGjbQ2mt.js.map +0 -1
  284. package/dist/cdn/chunks/draggable-BUTN5vZC.js.map +0 -1
  285. package/dist/cdn/chunks/en-BTiiAC-B.js.map +0 -1
  286. package/dist/cdn/chunks/en-CAt6y87e.js +0 -1
  287. package/dist/cdn/chunks/es-CdTOcSTf.js.map +0 -1
  288. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  289. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  290. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  291. package/dist/cdn/chunks/preRenderCustomBlocks-CyGB3lZr.js.map +0 -1
  292. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  293. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js +0 -1031
  294. package/dist/cdn/chunks/socialIcons-ClJVDZwt.js.map +0 -1
  295. package/dist/cdn/chunks/src-B0pZeTYO.js.map +0 -1
  296. package/dist/cdn/chunks/src-BMw3u-iV.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bh0MoJ67.js.map +0 -1
  298. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  299. package/dist/cdn/chunks/useEditorCore-DuC7kVti.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  301. package/dist/cdn/chunks/withCurrentFont-isIyuezD.js +0 -21
  302. package/dist/dist-CFC4pg2o.js +0 -5
  303. package/dist/dist-j2FavQmU.js +0 -5
  304. package/dist/en-Bk4iCfjp.js +0 -1
  305. package/dist/socialIcons-Ct_IoqPQ.js +0 -1107
@@ -1,1107 +0,0 @@
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
- //#region ../core/dist/index.js
7
- function S(e) {
8
- return e instanceof Error ? e : Error(String(e), { cause: e });
9
- }
10
- function C(e, t) {
11
- try {
12
- t();
13
- } catch (t) {
14
- e?.(S(t));
15
- }
16
- }
17
- function w(e) {
18
- return e === "1" ? 1 : e === "3" ? 3 : 2;
19
- }
20
- function T(t) {
21
- let n = t.content ?? u(t.defaultFontFamily, t.templateDefaults);
22
- f(n), g(n);
23
- let a = i({
24
- template: null,
25
- content: n,
26
- selectedBlockId: null,
27
- viewport: "desktop",
28
- darkMode: !1,
29
- previewMode: !1,
30
- isDirty: !1,
31
- isSaving: !1,
32
- isLoading: !1,
33
- uiTheme: "auto"
34
- }), o = 0;
35
- function s() {
36
- a.isDirty = !0, o++;
37
- }
38
- let c = e({
39
- get: () => a.content,
40
- set: (e) => {
41
- a.content = e, s();
42
- }
43
- }), l = e(() => a.selectedBlockId ? d(a.content.blocks, a.selectedBlockId) : null);
44
- function d(e, t) {
45
- for (let n of e) {
46
- if (n.id === t) return n;
47
- if (n.type === "section") for (let e of n.children) {
48
- let n = d(e, t);
49
- if (n) return n;
50
- }
51
- }
52
- return null;
53
- }
54
- function p(e, t) {
55
- if (t.add(e.id), e.type === "section") for (let n of e.children) for (let e of n) p(e, t);
56
- }
57
- function m(e, t, n = { blocks: e }) {
58
- for (let r = 0; r < e.length; r++) {
59
- let i = e[r];
60
- if (i.id === t) return n;
61
- if (i.type === "section") for (let e = 0; e < i.children.length; e++) {
62
- let n = m(i.children[e], t, {
63
- blocks: i.children[e],
64
- sectionId: i.id,
65
- columnIndex: e
66
- });
67
- if (n) return n;
68
- }
69
- }
70
- return null;
71
- }
72
- function h(e) {
73
- return t.lockedBlocks?.value.has(e) ?? !1;
74
- }
75
- function v(e) {
76
- let t = m(a.content.blocks, e);
77
- if (!t) return null;
78
- let n = t.blocks.findIndex((t) => t.id === e);
79
- return n === -1 ? null : {
80
- targetSectionId: t.sectionId,
81
- columnIndex: t.columnIndex,
82
- index: n
83
- };
84
- }
85
- function y(e, t = !0) {
86
- f(e), g(e), a.content = e, t && s();
87
- }
88
- function b(e) {
89
- e && h(e) || (a.selectedBlockId = e);
90
- }
91
- function x(e) {
92
- a.viewport = e;
93
- }
94
- function S(e) {
95
- a.darkMode = e;
96
- }
97
- function T(e) {
98
- a.uiTheme = e;
99
- }
100
- function E(e) {
101
- a.previewMode = e, e && (a.selectedBlockId = null);
102
- }
103
- function D(e, t) {
104
- if (h(e)) return;
105
- let n = d(a.content.blocks, e);
106
- n && (Object.assign(n, t), s());
107
- }
108
- function O(e) {
109
- a.content.settings = {
110
- ...a.content.settings,
111
- ...e
112
- }, s();
113
- }
114
- function k(e, t, n = 0, r) {
115
- let i = {
116
- settings: a.content.settings,
117
- blocks: [e]
118
- };
119
- if (f(i), g(i), !(t && e.type === "section")) {
120
- if (t) {
121
- if (h(t)) return;
122
- let i = d(a.content.blocks, t);
123
- if (i && i.type === "section") {
124
- if (n < 0 || n >= w(i.columns)) return;
125
- i.children[n] = i.children[n] || [];
126
- let t = i.children[n];
127
- r !== void 0 && r < t.length ? t.splice(r, 0, e) : t.push(e);
128
- }
129
- } else r !== void 0 && r < a.content.blocks.length ? a.content.blocks.splice(r, 0, e) : a.content.blocks.push(e);
130
- s();
131
- }
132
- }
133
- function A(e) {
134
- if (h(e)) return;
135
- let t = m(a.content.blocks, e);
136
- if (t) {
137
- let n = t.blocks.findIndex((t) => t.id === e);
138
- if (n !== -1) {
139
- let [e] = t.blocks.splice(n, 1);
140
- if (a.selectedBlockId) {
141
- let t = /* @__PURE__ */ new Set();
142
- p(e, t), t.has(a.selectedBlockId) && (a.selectedBlockId = null);
143
- }
144
- s();
145
- }
146
- }
147
- }
148
- function j(e, t, n, r = 0) {
149
- if (h(e) || n && h(n)) return;
150
- let i = m(a.content.blocks, e);
151
- if (!i) return;
152
- let o = i.blocks.findIndex((t) => t.id === e);
153
- if (o === -1 || n && i.blocks[o].type === "section") return;
154
- let c;
155
- if (n) {
156
- let e = d(a.content.blocks, n);
157
- if (!e || e.type !== "section" || r < 0 || r >= w(e.columns)) return;
158
- e.children[r] = e.children[r] || [], c = e.children[r];
159
- } else c = a.content.blocks;
160
- let [l] = i.blocks.splice(o, 1);
161
- c.splice(t, 0, l), s();
162
- }
163
- function M() {
164
- s();
165
- }
166
- function N(e, t) {
167
- throw new _(`[Templatical] Templates: ${e} ${t}`);
168
- }
169
- function P(e) {
170
- C(t.onError, e);
171
- }
172
- function F(e) {
173
- let { templates: n } = t;
174
- return n || N(e, "needs a templates provider. Pass one as `init({ templates })` to enable saving and loading."), n;
175
- }
176
- function I(e) {
177
- a.template && (a.template = {
178
- ...a.template,
179
- name: e
180
- }, s());
181
- }
182
- async function L(e) {
183
- let n = F("create()"), { create: r } = n;
184
- typeof r != "function" && N("create()", "is disabled by the provider — its `create` is `false`.");
185
- let i;
186
- a.isLoading = !0;
187
- try {
188
- e?.content && (a.content = e.content);
189
- let t = o;
190
- i = await r(e?.name === void 0 ? { content: a.content } : {
191
- name: e.name,
192
- content: a.content
193
- }), a.template = i, o === t && (a.isDirty = !1);
194
- } catch (e) {
195
- throw t.onError?.(e), e;
196
- } finally {
197
- a.isLoading = !1;
198
- }
199
- return P(() => n.onCreated?.(i)), i;
200
- }
201
- async function R(e) {
202
- let n = F("load()"), r;
203
- a.isLoading = !0;
204
- try {
205
- r = await n.load(e), f(r.content), g(r.content), a.template = r, a.content = r.content, a.isDirty = !1;
206
- } catch (e) {
207
- throw t.onError?.(e), e;
208
- } finally {
209
- a.isLoading = !1;
210
- }
211
- return P(() => n.onLoaded?.(r)), r;
212
- }
213
- async function z(e = "api") {
214
- let n = F("save()"), { save: r } = n;
215
- typeof r != "function" && N("save()", "is disabled by the provider — its `save` is `false`.");
216
- let i = a.template;
217
- i || N("save()", "has no template loaded. Call create() or load() first.");
218
- let s = i.name === void 0 ? { content: a.content } : {
219
- name: i.name,
220
- content: a.content
221
- }, c;
222
- a.isSaving = !0;
223
- try {
224
- let e = o;
225
- if (c = await r(i.id, s), a.template?.id === i.id) {
226
- let e = a.template.name;
227
- a.template = e === i.name ? c : {
228
- ...c,
229
- name: e
230
- };
231
- }
232
- o === e && (a.isDirty = !1);
233
- } catch (e) {
234
- throw t.onError?.(e), e;
235
- } finally {
236
- a.isSaving = !1;
237
- }
238
- return P(() => n.onSaved?.(c, { trigger: e })), c;
239
- }
240
- function B() {
241
- return a.template?.id !== void 0;
242
- }
243
- return {
244
- state: r(a),
245
- content: c,
246
- selectedBlock: l,
247
- isBlockLocked: h,
248
- setContent: y,
249
- selectBlock: b,
250
- setViewport: x,
251
- setDarkMode: S,
252
- setUiTheme: T,
253
- setPreviewMode: E,
254
- updateBlock: D,
255
- updateSettings: O,
256
- addBlock: k,
257
- removeBlock: A,
258
- moveBlock: j,
259
- markDirty: M,
260
- findBlockLocation: v,
261
- setName: I,
262
- create: L,
263
- load: R,
264
- save: z,
265
- hasTemplate: B
266
- };
267
- }
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
- }
274
- function g(e) {
275
- s.value.push(e), s.value.length > o && s.value.splice(0, s.value.length - o);
276
- }
277
- function _() {
278
- d &&= (clearTimeout(d.timeoutId), null);
279
- }
280
- function v() {
281
- i?.() || (_(), g(m()), c.value = []);
282
- }
283
- function y(e) {
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
- }));
292
- }
293
- function b() {
294
- l.value = !0, u && clearTimeout(u), u = setTimeout(() => {
295
- l.value = !1, u = null;
296
- }, O);
297
- }
298
- function x() {
299
- if (s.value.length === 0) return;
300
- _();
301
- let e = s.value.pop();
302
- c.value.push(m()), r(e, !0), b();
303
- }
304
- function S() {
305
- if (c.value.length === 0) return;
306
- _();
307
- let e = c.value.pop();
308
- s.value.push(m()), r(e, !0), b();
309
- }
310
- function C() {
311
- s.value = [], c.value = [], _();
312
- }
313
- function w() {
314
- C(), u &&= (clearTimeout(u), null);
315
- }
316
- return {
317
- canUndo: f,
318
- canRedo: p,
319
- isNavigating: l,
320
- undo: x,
321
- redo: S,
322
- record: v,
323
- recordDebounced: y,
324
- clear: C,
325
- destroy: w
326
- };
327
- }
328
- function A(e) {
329
- let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
330
- function o(n, r, a) {
331
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = p(n, o);
332
- return t(s, r, a), i(s.id), s;
333
- }
334
- function s(e, n, r) {
335
- let o = m(e);
336
- if (n !== void 0 || r !== void 0) t(o, n, r);
337
- else {
338
- let i = a?.(e.id) ?? null;
339
- i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
340
- }
341
- return i(o.id), o;
342
- }
343
- function c(e) {
344
- n(e);
345
- }
346
- function l(e, t, n) {
347
- r(e, { [t]: n });
348
- }
349
- return {
350
- createAndAddBlock: o,
351
- duplicateBlock: s,
352
- deleteBlock: c,
353
- updateBlockProperty: l
354
- };
355
- }
356
- var j = 2e3;
357
- function M(e) {
358
- let { content: t, isDirty: n, onChange: r, debounce: i = j, enabled: a = !0 } = e, s = null, c = !1;
359
- function l() {
360
- return typeof a == "function" ? a() : a;
361
- }
362
- function u() {
363
- c = !0, f();
364
- }
365
- function d() {
366
- c = !1;
367
- }
368
- function f() {
369
- s &&= (clearTimeout(s), null);
370
- }
371
- function p() {
372
- f(), n() && r(JSON.parse(JSON.stringify(t.value)));
373
- }
374
- function m() {
375
- l() && !c && (f(), s = setTimeout(() => {
376
- s = null, l() && !c && n() && r(JSON.parse(JSON.stringify(t.value)));
377
- }, i));
378
- }
379
- let h = o(t, () => {
380
- m();
381
- }, { deep: !0 });
382
- function g() {
383
- h(), f();
384
- }
385
- return {
386
- flush: p,
387
- cancel: f,
388
- pause: u,
389
- resume: d,
390
- destroy: g
391
- };
392
- }
393
- function N(t) {
394
- let n = i(/* @__PURE__ */ new Set()), r = e(() => n.size > 0);
395
- function a(e) {
396
- return n.has(e);
397
- }
398
- function o(e) {
399
- n.has(e) ? n.delete(e) : (n.add(e), t.state.selectedBlockId === e && t.selectBlock(null));
400
- }
401
- function s() {
402
- n.clear();
403
- }
404
- return {
405
- isHidden: a,
406
- toggleBlock: o,
407
- reset: s,
408
- hasHiddenBlocks: r
409
- };
410
- }
411
- function P(t) {
412
- let n = a(!1), r = a(!1), i = e(() => !!t.definition.value?.dataSource), o = e(() => i.value && !t.block.value.dataSourceFetched);
413
- async function s() {
414
- let e = t.definition.value;
415
- if (e?.dataSource) {
416
- n.value = !0, r.value = !1;
417
- try {
418
- let n = await e.dataSource.onFetch({
419
- fieldValues: { ...t.block.value.fieldValues },
420
- blockId: t.block.value.id
421
- });
422
- if (n == null) return;
423
- let r = { ...t.block.value.fieldValues };
424
- for (let e of Object.keys(r)) e in n && (r[e] = n[e]);
425
- t.onUpdate(r, !0);
426
- } catch (e) {
427
- console.warn("[Templatical] Data source fetch error:", e), r.value = !0;
428
- } finally {
429
- n.value = !1;
430
- }
431
- }
432
- }
433
- return {
434
- isFetching: n,
435
- fetchError: r,
436
- fetch: s,
437
- hasDataSource: i,
438
- needsFetch: o
439
- };
440
- }
441
- function F(e, t) {
442
- let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
443
- e.addBlock = (r, i, a, o) => {
444
- i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
445
- }, e.removeBlock = (n) => {
446
- e.isBlockLocked(n) || (t.record(), r(n));
447
- }, e.moveBlock = (n, r, a, o) => {
448
- e.isBlockLocked(n) || a && e.isBlockLocked(a) || (t.record(), i(n, r, a, o));
449
- }, e.updateBlock = (n, r) => {
450
- e.isBlockLocked(n) || (t.recordDebounced(n), a(n, r));
451
- }, e.updateSettings = (e) => {
452
- t.record(), o(e);
453
- };
454
- }
455
- function I(e) {
456
- let { provider: t } = e, n = a([]), r = a(!1), i = c(() => {
457
- let e = /* @__PURE__ */ new Set();
458
- for (let t of n.value) {
459
- let n = t.category?.trim();
460
- n && e.add(n);
461
- }
462
- return [...e].sort((e, t) => e.localeCompare(t));
463
- }), o = c(() => typeof t.create == "function"), s = c(() => typeof t.update == "function"), l = c(() => typeof t.delete == "function");
464
- function u(e) {
465
- return s.value && e.canUpdate !== !1;
466
- }
467
- function d(e) {
468
- return l.value && e.canDelete !== !1;
469
- }
470
- function f(e, t) {
471
- throw new _(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
472
- }
473
- function p(t) {
474
- C(e.onError, t);
475
- }
476
- async function m(i) {
477
- r.value = !0;
478
- try {
479
- n.value = await t.list(i);
480
- } catch (t) {
481
- throw e.onError?.(t), t;
482
- } finally {
483
- r.value = !1;
484
- }
485
- }
486
- async function h(r, i, a) {
487
- let { create: o } = t;
488
- typeof o != "function" && f("create", "disabled by the provider");
489
- try {
490
- let e = await o(a ? {
491
- name: r,
492
- content: i,
493
- category: a
494
- } : {
495
- name: r,
496
- content: i
497
- });
498
- return n.value = [e, ...n.value], p(() => t.onCreated?.(e)), e;
499
- } catch (t) {
500
- throw e.onError?.(t), t;
501
- }
502
- }
503
- async function g(r, i) {
504
- let { update: a } = t;
505
- typeof a != "function" && f("update", "disabled by the provider");
506
- let o = n.value.find((e) => e.id === r);
507
- o && o.canUpdate === !1 && f("update", `not permitted for entry "${r}"`);
508
- try {
509
- let e = await a(r, i);
510
- return n.value = n.value.map((t) => t.id === r ? e : t), p(() => t.onUpdated?.(e)), e;
511
- } catch (t) {
512
- throw e.onError?.(t), t;
513
- }
514
- }
515
- async function v(r) {
516
- let { delete: i } = t;
517
- typeof i != "function" && f("delete", "disabled by the provider");
518
- let a = n.value.find((e) => e.id === r) ?? null;
519
- a && a.canDelete === !1 && f("delete", `not permitted for entry "${r}"`);
520
- try {
521
- await i(r), n.value = n.value.filter((e) => e.id !== r), a && p(() => t.onDeleted?.(a));
522
- } catch (t) {
523
- throw e.onError?.(t), t;
524
- }
525
- }
526
- return {
527
- savedBlocks: n,
528
- isLoading: r,
529
- categories: i,
530
- canCreate: o,
531
- canUpdate: s,
532
- canDelete: l,
533
- canUpdateBlock: u,
534
- canDeleteBlock: d,
535
- load: m,
536
- create: h,
537
- update: g,
538
- remove: v
539
- };
540
- }
541
- var L = "templatical:saved-blocks";
542
- function R(e = {}) {
543
- let t = e.key ?? L;
544
- function n() {
545
- if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
546
- return localStorage;
547
- }
548
- function r() {
549
- let e = n().getItem(t);
550
- if (!e) return [];
551
- try {
552
- let t = JSON.parse(e);
553
- return Array.isArray(t) ? t : [];
554
- } catch {
555
- return [];
556
- }
557
- }
558
- function i(e) {
559
- n().setItem(t, JSON.stringify(e));
560
- }
561
- return {
562
- async list(e) {
563
- let t = r(), n = e?.search?.trim().toLowerCase(), i = e?.category?.trim();
564
- return t.filter((e) => !(n && !e.name.toLowerCase().includes(n) || i && e.category !== i));
565
- },
566
- async create(e) {
567
- let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
568
- id: l(),
569
- name: e.name,
570
- content: e.content,
571
- ...e.category ? { category: e.category } : {},
572
- createdAt: t,
573
- updatedAt: t
574
- };
575
- return i([n, ...r()]), n;
576
- },
577
- async update(e, t) {
578
- let n = r(), a = n.findIndex((t) => t.id === e);
579
- if (a === -1) throw Error(`[Templatical] Saved block not found: ${e}`);
580
- let o = {
581
- ...n[a],
582
- ...t,
583
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
584
- }, s = [...n];
585
- return s[a] = o, i(s), o;
586
- },
587
- async delete(e) {
588
- let t = r();
589
- if (!t.some((t) => t.id === e)) throw Error(`[Templatical] Saved block not found: ${e}`);
590
- i(t.filter((t) => t.id !== e));
591
- }
592
- };
593
- }
594
- var z = "templatical:media", B = 50;
595
- function V(e = {}) {
596
- let t = e.key ?? z;
597
- function n() {
598
- if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with localStorage. Supply your own MediaProvider for server-side or non-browser use.");
599
- return localStorage;
600
- }
601
- function r() {
602
- let e = n().getItem(t);
603
- if (!e) return [];
604
- try {
605
- let t = JSON.parse(e);
606
- return Array.isArray(t) ? t : [];
607
- } catch {
608
- return [];
609
- }
610
- }
611
- function i(e) {
612
- n().setItem(t, JSON.stringify(e));
613
- }
614
- function a(e) {
615
- return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
616
- let r = new FileReader();
617
- r.onload = () => {
618
- typeof r.result == "string" ? t(r.result) : n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
619
- }, r.onerror = () => {
620
- n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
621
- }, r.readAsDataURL(e);
622
- });
623
- }
624
- return {
625
- async list(e) {
626
- let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
627
- let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
628
- return t.includes(n) || r.includes(n);
629
- }) : t, a = e?.cursor ? Number.parseInt(e.cursor, 10) : 0, o = Number.isFinite(a) && a > 0 ? a : 0, s = i.slice(o, o + B), c = { items: s }, l = o + s.length;
630
- return l < i.length && (c.nextCursor = String(l)), c;
631
- },
632
- async create(e) {
633
- let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
634
- id: l(),
635
- url: t,
636
- filename: e.filename || e.file.name,
637
- createdAt: n,
638
- updatedAt: n,
639
- size: e.file.size
640
- };
641
- return e.alt !== void 0 && (o.alt = e.alt), e.file.type && (o.mimeType = e.file.type), e.folderId !== void 0 && (o.folderId = e.folderId), i([o, ...r()]), o;
642
- },
643
- async update(e, t) {
644
- let n = r(), a = n.findIndex((t) => t.id === e);
645
- if (a === -1) throw Error(`[Templatical] Media asset not found: ${e}`);
646
- let o = n[a], s = {
647
- ...o,
648
- ...t,
649
- id: o.id,
650
- url: o.url,
651
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
652
- }, c = [...n];
653
- return c[a] = s, i(c), s;
654
- },
655
- async delete(e) {
656
- let t = r();
657
- for (let n of e) if (!t.some((e) => e.id === n)) throw Error(`[Templatical] Media asset not found: ${n}`);
658
- let n = new Set(e);
659
- i(t.filter((e) => !n.has(e.id)));
660
- },
661
- folders: !1,
662
- replace: !1,
663
- importFromUrl: !1,
664
- checkUsage: !1,
665
- frequentlyUsed: !1,
666
- storage: !1
667
- };
668
- }
669
- function H(e) {
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");
671
- function f(e) {
672
- let t = n();
673
- if (!t) throw new _(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
674
- return t;
675
- }
676
- function p(e) {
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.`);
678
- }
679
- function m(t) {
680
- C(e.onError, t);
681
- }
682
- async function h(n) {
683
- let a = f("list");
684
- i.value = !0;
685
- try {
686
- let e = await t.list(a, n);
687
- r.value = e.versions, o.value = e.nextCursor;
688
- } catch (t) {
689
- throw e.onError?.(t), t;
690
- } finally {
691
- i.value = !1;
692
- }
693
- }
694
- function g(e) {
695
- return e.content ?? l.get(e.id) ?? null;
696
- }
697
- async function v(n) {
698
- let r = g(n);
699
- if (r) return r;
700
- let i = f("get");
701
- try {
702
- let e = await t.get(i, n.id);
703
- return l.set(n.id, e), e;
704
- } catch (t) {
705
- throw e.onError?.(t), t;
706
- }
707
- }
708
- async function y(n, i) {
709
- let { create: a } = t;
710
- typeof a != "function" && p("create");
711
- let o = f("create");
712
- try {
713
- let e = await a(o, n, i);
714
- return r.value = [e, ...r.value], m(() => t.onCreated?.(e)), e;
715
- } catch (t) {
716
- throw e.onError?.(t), t;
717
- }
718
- }
719
- async function b(n) {
720
- let { restore: r } = t;
721
- typeof r != "function" && p("restore");
722
- let i = f("restore"), a;
723
- s.value = !0;
724
- try {
725
- a = await r(i, n);
726
- } catch (t) {
727
- throw e.onError?.(t), t;
728
- } finally {
729
- s.value = !1;
730
- }
731
- return m(() => t.onRestored?.(a)), a;
732
- }
733
- return {
734
- nextCursor: o,
735
- versions: r,
736
- isLoading: i,
737
- isRestoring: s,
738
- canCreate: u,
739
- canRestore: d,
740
- load: h,
741
- peekContent: g,
742
- resolveContent: v,
743
- create: y,
744
- restore: b
745
- };
746
- }
747
- function U(e) {
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(() => {
749
- let e = /* @__PURE__ */ new Map();
750
- for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
751
- return e;
752
- });
753
- function g(e) {
754
- let t = n();
755
- if (!t) throw new _(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
756
- return t;
757
- }
758
- function v(e) {
759
- let t = r();
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.`);
761
- return t;
762
- }
763
- function y(e) {
764
- throw new _(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
765
- }
766
- function b(e) {
767
- for (let t of i.value) {
768
- if (t.id === e) return t;
769
- for (let n of t.replies ?? []) if (n.id === e) return n;
770
- }
771
- return null;
772
- }
773
- function x(e) {
774
- let t = r();
775
- return t !== null && e.author.id === t.id;
776
- }
777
- function w(t) {
778
- let n = S(t);
779
- throw e.onError?.(n), n;
780
- }
781
- function T(t) {
782
- C(e.onError, t);
783
- }
784
- function E(e, t, n) {
785
- return [
786
- ...e.slice(0, t),
787
- n,
788
- ...e.slice(t + 1)
789
- ];
790
- }
791
- function D(e, t) {
792
- return e !== void 0 && JSON.stringify(e) === JSON.stringify(t);
793
- }
794
- function O(e) {
795
- if (e.parentId) {
796
- let t = !1, n = i.value.map((n) => {
797
- if (n.id !== e.parentId) return n;
798
- let r = n.replies ?? [], i = r.findIndex((t) => t.id === e.id);
799
- return i !== -1 && D(r[i], e) ? n : (t = !0, {
800
- ...n,
801
- replies: i === -1 ? [...r, e] : E(r, i, e)
802
- });
803
- });
804
- return t && (i.value = n), t;
805
- }
806
- let t = i.value.findIndex((t) => t.id === e.id);
807
- if (t === -1) return i.value = [...i.value, e], !0;
808
- let n = {
809
- ...e,
810
- replies: e.replies ?? i.value[t].replies
811
- };
812
- return !D(i.value[t], n) && (i.value = E(i.value, t, n), !0);
813
- }
814
- function k(e, t) {
815
- let n = b(e), r = t ?? n?.parentId ?? null;
816
- return r ? i.value = i.value.map((t) => t.id === r ? {
817
- ...t,
818
- replies: (t.replies ?? []).filter((t) => t.id !== e)
819
- } : t) : i.value = i.value.filter((t) => t.id !== e), n;
820
- }
821
- async function A(e) {
822
- let n = g("list");
823
- o.value = !0;
824
- try {
825
- i.value = await t.list(n, e);
826
- } catch (e) {
827
- w(e);
828
- } finally {
829
- o.value = !1;
830
- }
831
- }
832
- async function j(e) {
833
- let { create: n } = t;
834
- typeof n != "function" && y("create");
835
- let r = g("create");
836
- v("create"), s.value = !0;
837
- try {
838
- let i = await n(r, e);
839
- return O(i), T(() => t.onCreated?.(i, { origin: "local" })), i;
840
- } catch (e) {
841
- w(e);
842
- } finally {
843
- s.value = !1;
844
- }
845
- }
846
- async function M(e, n) {
847
- let { update: r } = t;
848
- typeof r != "function" && y("update");
849
- let i = g("update");
850
- v("update"), s.value = !0;
851
- try {
852
- let a = await r(i, e, n);
853
- return O(a), T(() => t.onUpdated?.(a, { origin: "local" })), a;
854
- } catch (e) {
855
- w(e);
856
- } finally {
857
- s.value = !1;
858
- }
859
- }
860
- async function N(e) {
861
- let { delete: n } = t;
862
- typeof n != "function" && y("delete");
863
- let r = g("delete");
864
- v("delete");
865
- let i = b(e);
866
- s.value = !0;
867
- try {
868
- await n(r, e), k(e), i && T(() => t.onDeleted?.(i, { origin: "local" }));
869
- } catch (e) {
870
- w(e);
871
- } finally {
872
- s.value = !1;
873
- }
874
- }
875
- async function P(e, n) {
876
- let { setResolved: r } = t;
877
- typeof r != "function" && y("setResolved");
878
- let i = g("setResolved");
879
- v("setResolved"), s.value = !0;
880
- try {
881
- let a = await r(i, e, n);
882
- return O(a), T(() => (a.resolvedAt ? t.onResolved : t.onUnresolved)?.(a, { origin: "local" })), a;
883
- } catch (e) {
884
- w(e);
885
- } finally {
886
- s.value = !1;
887
- }
888
- }
889
- function F(e) {
890
- O(e) && T(() => t.onCreated?.(e, { origin: "remote" }));
891
- }
892
- function I(e) {
893
- O(e) && T(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
894
- }
895
- function L(e, n) {
896
- let r = k(e, n);
897
- r && T(() => t.onDeleted?.(r, { origin: "remote" }));
898
- }
899
- return {
900
- comments: i,
901
- isLoading: o,
902
- isSubmitting: s,
903
- canCreate: l,
904
- canUpdate: u,
905
- canDelete: d,
906
- canResolve: f,
907
- totalCount: p,
908
- unresolvedCount: m,
909
- commentCountByBlock: h,
910
- load: A,
911
- create: j,
912
- update: M,
913
- remove: N,
914
- setResolved: P,
915
- find: b,
916
- isOwn: x,
917
- applyRemoteCreate: F,
918
- applyRemoteUpdate: I,
919
- applyRemoteDelete: L
920
- };
921
- }
922
- function W(e) {
923
- let { comments: r, provider: i, getTemplateId: a } = e, { subscribe: o } = i;
924
- if (typeof o != "function") return;
925
- let s = null;
926
- function c() {
927
- s?.(), s = null;
928
- }
929
- n(() => a(), (e) => {
930
- c(), e && (s = o(e, (e) => {
931
- switch (e.type) {
932
- case "created":
933
- r.applyRemoteCreate(e.comment);
934
- break;
935
- case "updated":
936
- r.applyRemoteUpdate(e.comment);
937
- break;
938
- case "deleted": r.applyRemoteDelete(e.commentId, e.parentId);
939
- }
940
- }));
941
- }, { immediate: !0 }), t(c);
942
- }
943
- //#endregion
944
- //#region src/utils/blockTypeLabels.ts
945
- function G(e, t) {
946
- return t.blocks[e] ?? e;
947
- }
948
- function K(e, t, n = []) {
949
- if (e.type !== "custom") return G(e.type, t);
950
- let { customType: r } = e;
951
- return n.find((e) => e.type === r)?.name ?? r;
952
- }
953
- //#endregion
954
- //#region src/utils/resolveFieldColors.ts
955
- function q(e, t) {
956
- let n = b({ presets: e.presets }, y), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
957
- return {
958
- presets: r ? t.presets : n.presets,
959
- allowCustom: t.allowCustom !== !1 && i,
960
- invalidPresets: n.invalidPresets,
961
- emptyPresets: e.presets !== void 0 && e.presets.length === 0,
962
- presetsInherited: r,
963
- allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
964
- };
965
- }
966
- var J = x({
967
- name: "code",
968
- size: 24,
969
- node: [["path", {
970
- d: "m16 18 6-6-6-6",
971
- key: "eg8j8"
972
- }], ["path", {
973
- d: "m8 6-6 6 6 6",
974
- key: "ppft3o"
975
- }]]
976
- }), Y = x({
977
- name: "image",
978
- size: 24,
979
- node: [
980
- ["rect", {
981
- width: "18",
982
- height: "18",
983
- x: "3",
984
- y: "3",
985
- rx: "2",
986
- ry: "2",
987
- key: "1m3agn"
988
- }],
989
- ["circle", {
990
- cx: "9",
991
- cy: "9",
992
- r: "2",
993
- key: "af1f0g"
994
- }],
995
- ["path", {
996
- d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
997
- key: "1xmnt7"
998
- }]
999
- ]
1000
- }), X = x({
1001
- name: "navigation",
1002
- size: 24,
1003
- node: [["polygon", {
1004
- points: "3 11 22 2 13 21 11 13 3 11",
1005
- key: "1ltx0t"
1006
- }]]
1007
- }), Z = x({
1008
- name: "share-2",
1009
- size: 24,
1010
- node: [
1011
- ["circle", {
1012
- cx: "18",
1013
- cy: "5",
1014
- r: "3",
1015
- key: "gq8acd"
1016
- }],
1017
- ["circle", {
1018
- cx: "6",
1019
- cy: "12",
1020
- r: "3",
1021
- key: "w7nqdw"
1022
- }],
1023
- ["circle", {
1024
- cx: "18",
1025
- cy: "19",
1026
- r: "3",
1027
- key: "1xt0gg"
1028
- }],
1029
- ["line", {
1030
- x1: "8.59",
1031
- x2: "15.42",
1032
- y1: "13.51",
1033
- y2: "17.49",
1034
- key: "47mynk"
1035
- }],
1036
- ["line", {
1037
- x1: "15.41",
1038
- x2: "8.59",
1039
- y1: "6.51",
1040
- y2: "10.49",
1041
- key: "1n3mei"
1042
- }]
1043
- ]
1044
- }), Q = x({
1045
- name: "table",
1046
- size: 24,
1047
- node: [
1048
- ["path", {
1049
- d: "M12 3v18",
1050
- key: "108xh3"
1051
- }],
1052
- ["rect", {
1053
- width: "18",
1054
- height: "18",
1055
- x: "3",
1056
- y: "3",
1057
- rx: "2",
1058
- key: "afitv7"
1059
- }],
1060
- ["path", {
1061
- d: "M3 9h18",
1062
- key: "1pudct"
1063
- }],
1064
- ["path", {
1065
- d: "M3 15h18",
1066
- key: "5xshup"
1067
- }]
1068
- ]
1069
- }), $ = "image/";
1070
- function ee(e) {
1071
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || s(r), { isOverDropZone: a } = v(t, {
1072
- preventDefaultForUnhandled: !0,
1073
- onDrop: (e) => {
1074
- if (!i()) return;
1075
- let t = (e ?? []).filter((e) => e.type.startsWith($));
1076
- t.length > 0 && n([t[0]]);
1077
- }
1078
- });
1079
- return { isOver: c(() => i() && a.value) };
1080
- }
1081
- //#endregion
1082
- //#region src/constants/socialIcons.ts
1083
- var te = d, ne = {
1084
- small: 24,
1085
- medium: 32,
1086
- large: 48
1087
- }, re = [
1088
- "facebook",
1089
- "twitter",
1090
- "instagram",
1091
- "linkedin",
1092
- "youtube",
1093
- "tiktok",
1094
- "pinterest",
1095
- "email",
1096
- "website",
1097
- "whatsapp",
1098
- "telegram",
1099
- "discord",
1100
- "snapchat",
1101
- "reddit",
1102
- "github",
1103
- "dribbble",
1104
- "behance"
1105
- ];
1106
- //#endregion
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 };