@templatical/editor 0.45.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 (309) hide show
  1. package/dist/{AiChatSidebar-BlFWWhBv.js → AiChatSidebar-BPOv5Ra8.js} +14 -14
  2. package/dist/{AiFeatureMenu-CvWygUmC.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-BzM1QU1r.js → CloudHeaderExtras-gXsTYoGG.js} +5 -5
  6. package/dist/{CloudPanels-d36YXXyn.js → CloudPanels-H_GdbOfZ.js} +9 -9
  7. package/dist/{CollaboratorBar-rwXe_Qd2.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-lbjCc8ik.js → CountdownToolbar-DVuucA3v.js} +7 -7
  12. package/dist/{DesignReferenceSidebar-zlJQsP0X.js → DesignReferenceSidebar-DxNV4lQp.js} +12 -12
  13. package/dist/{IssuesPanel-CHx3m8SP.js → IssuesPanel-CUpW54P4.js} +8 -8
  14. package/dist/{LoadingTrack-DROqNuuD.js → LoadingTrack-6XsqodoY.js} +1 -1
  15. package/dist/{LogicTagInsertButton-BvftbkL4.js → LogicTagInsertButton-DDYKnqmj.js} +22 -22
  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-CR1kcj8X.js → MergeTagInput-DAL998tx.js} +3 -3
  19. package/dist/{MergeTagModeToggle-DssKrVYb.js → MergeTagModeToggle-CjHO26rb.js} +7 -7
  20. package/dist/{ParagraphEditor-DFizsZRc.js → ParagraphEditor-CcEN1N6n.js} +165 -150
  21. package/dist/{RestoreVersionDialog-Cp3q2mU4.js → RestoreVersionDialog-B2OH5rgs.js} +6 -6
  22. package/dist/{RichTextEditorContent-Cj3oaPMk.js → RichTextEditorContent-BGeTg-QL.js} +12 -12
  23. package/dist/{SaveBlockDialog-BR8vW_XF.js → SaveBlockDialog-CCVyU-7y.js} +13 -13
  24. package/dist/{SavedBlocksBrowserModal-DmwbmKxI.js → SavedBlocksBrowserModal-_WmSeqIh.js} +14 -14
  25. package/dist/{SavedBlocksPanels-D4XKrs-a.js → SavedBlocksPanels-DVX_ruQ7.js} +2 -2
  26. package/dist/{SavedBlocksPickBar-gfc-o5sR.js → SavedBlocksPickBar-DVJC28hP.js} +5 -5
  27. package/dist/{TemplateScoringPanel-3lHzuCl0.js → TemplateScoringPanel-U0QFiwdI.js} +16 -16
  28. package/dist/{TemplateSettings-D7aNrd0d.js → TemplateSettings-CdhTm9JQ.js} +12 -12
  29. package/dist/{TestEmailModal-DUmtcSm-.js → TestEmailModal-BqToA_ls.js} +14 -14
  30. package/dist/{TestEmailPanel-s9gISTI8.js → TestEmailPanel-Cn4Ptq0j.js} +2 -2
  31. package/dist/{TitleEditor-C-uHqtml.js → TitleEditor-CZdqeltH.js} +13 -13
  32. package/dist/{ToggleSwitch-CTwwCIVA.js → ToggleSwitch-BR8Sgzib.js} +2 -2
  33. package/dist/{Toolbar-CLpA36RO.js → Toolbar-OGakTBEg.js} +748 -629
  34. package/dist/{TplModal-D6XtxusQ.js → TplModal-CoczSDma.js} +6 -6
  35. package/dist/{VersionHistoryMenu-D7zaTMrb.js → VersionHistoryMenu-DY5z5FZr.js} +10 -10
  36. package/dist/{VersionHistoryPanels-Dvowtt7V.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-D3aj5u_5.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-SRGBP-SL.js → AiChatSidebar-B72rI0be.js} +12 -12
  43. package/dist/cdn/chunks/{AiChatSidebar-SRGBP-SL.js.map → AiChatSidebar-B72rI0be.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.js → AiFeatureMenu-BqSG9iEd.js} +6 -6
  45. package/dist/cdn/chunks/{AiFeatureMenu-oZhlgsGh.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-t-_ZlHwn.js → CloudHeaderExtras-DJXLTUHc.js} +5 -5
  51. package/dist/cdn/chunks/{CloudHeaderExtras-t-_ZlHwn.js.map → CloudHeaderExtras-DJXLTUHc.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js → CloudPanels-D1fPLjG8.js} +8 -8
  53. package/dist/cdn/chunks/{CloudPanels-DR2eEcpX.js.map → CloudPanels-D1fPLjG8.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.js → CollaboratorBar-MeRQB1eN.js} +5 -5
  55. package/dist/cdn/chunks/{CollaboratorBar-w8_2WPE0.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-CvNuDR5Z.js → CountdownToolbar-DPIOtlN0.js} +8 -8
  63. package/dist/cdn/chunks/{CountdownToolbar-CvNuDR5Z.js.map → CountdownToolbar-DPIOtlN0.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js → DesignReferenceSidebar-BgTNqgCy.js} +8 -8
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-CJg_5GXU.js.map → DesignReferenceSidebar-BgTNqgCy.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.js → IssuesPanel-BGjLcNpQ.js} +6 -6
  67. package/dist/cdn/chunks/{IssuesPanel-DXqlRk19.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-DnHghQHb.js → LogicTagInsertButton-BEsqPhMr.js} +11 -11
  71. package/dist/cdn/chunks/{LogicTagInsertButton-DnHghQHb.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-heTX9P_k.js → MergeTagInput-Dy13_OLc.js} +4 -4
  77. package/dist/cdn/chunks/{MergeTagInput-heTX9P_k.js.map → MergeTagInput-Dy13_OLc.js.map} +1 -1
  78. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js → MergeTagModeToggle-B2CPZOeF.js} +6 -6
  79. package/dist/cdn/chunks/{MergeTagModeToggle-C9EfuZIP.js.map → MergeTagModeToggle-B2CPZOeF.js.map} +1 -1
  80. package/dist/cdn/chunks/{ParagraphEditor-B5DN4Sy4.js → ParagraphEditor-BGLIw7kg.js} +91 -76
  81. package/dist/cdn/chunks/ParagraphEditor-BGLIw7kg.js.map +1 -0
  82. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js → RestoreVersionDialog-BhykE8En.js} +8 -8
  83. package/dist/cdn/chunks/{RestoreVersionDialog-DBgJ-Nui.js.map → RestoreVersionDialog-BhykE8En.js.map} +1 -1
  84. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js → RichTextEditorContent-B-txUvPL.js} +11 -11
  85. package/dist/cdn/chunks/{RichTextEditorContent-LOas4rfU.js.map → RichTextEditorContent-B-txUvPL.js.map} +1 -1
  86. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js → SaveBlockDialog-BHqEp7jw.js} +40 -40
  87. package/dist/cdn/chunks/{SaveBlockDialog-Dx-QVQCX.js.map → SaveBlockDialog-BHqEp7jw.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js → SavedBlocksBrowserModal-BhR6AI0f.js} +10 -10
  89. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C2RQ-JCc.js.map → SavedBlocksBrowserModal-BhR6AI0f.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js → SavedBlocksPanels-YwffJtfY.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPanels-BmRbvqqL.js.map → SavedBlocksPanels-YwffJtfY.js.map} +1 -1
  92. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.js → SavedBlocksPickBar-BtpFU7es.js} +6 -6
  93. package/dist/cdn/chunks/{SavedBlocksPickBar-BzwKojoJ.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-G-yV7C1C.js → TemplateSettings-C7b5X34U.js} +13 -13
  97. package/dist/cdn/chunks/TemplateSettings-C7b5X34U.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js → TestEmailModal-DHJKI5y5.js} +11 -11
  99. package/dist/cdn/chunks/{TestEmailModal-lOeztfTN.js.map → TestEmailModal-DHJKI5y5.js.map} +1 -1
  100. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js → TestEmailPanel-lYtzTXpR.js} +3 -3
  101. package/dist/cdn/chunks/{TestEmailPanel-CZswVkk_.js.map → TestEmailPanel-lYtzTXpR.js.map} +1 -1
  102. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js → TitleEditor-5eY01ypW.js} +15 -15
  103. package/dist/cdn/chunks/{TitleEditor-CnTT2Y3H.js.map → TitleEditor-5eY01ypW.js.map} +1 -1
  104. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js → ToggleSwitch-BN8rMC2m.js} +3 -3
  105. package/dist/cdn/chunks/{ToggleSwitch-CLHteVMO.js.map → ToggleSwitch-BN8rMC2m.js.map} +1 -1
  106. package/dist/cdn/chunks/{Toolbar-K4tIkpG1.js → Toolbar-Ik54UO_-.js} +696 -575
  107. package/dist/cdn/chunks/Toolbar-Ik54UO_-.js.map +1 -0
  108. package/dist/cdn/chunks/{TplModal-OOT36AjS.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-BrpYRSfW.js → VersionHistoryPanels-xjLSpR1e.js} +3 -3
  113. package/dist/cdn/chunks/{VersionHistoryPanels-BrpYRSfW.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-bhW8qTnh.js → cloud-Cd7ptfhL.js} +3 -3
  123. package/dist/cdn/chunks/{cloud-bhW8qTnh.js.map → cloud-Cd7ptfhL.js.map} +1 -1
  124. package/dist/cdn/chunks/{createCloudRuntime-CeRJkLR2.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-xjRsIjMP.js → extensions-T-t8MKDb.js} +9 -9
  142. package/dist/cdn/chunks/extensions-T-t8MKDb.js.map +1 -0
  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/{preRenderCustomBlocks-DAS48ZCp.js → cdn/chunks/preRenderCustomBlocks-Co0oi0Jf.js} +7 -3
  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/cdn/chunks/{src-BcqNlDMe.js → src-BnJlDuyB.js} +361 -206
  160. package/dist/cdn/chunks/src-BnJlDuyB.js.map +1 -0
  161. package/dist/cdn/chunks/{src-CkXmV2I2.js → src-Bu0qBpbf.js} +202 -202
  162. package/dist/cdn/chunks/src-Bu0qBpbf.js.map +1 -0
  163. package/dist/cdn/chunks/{src-HA9F2kvk.js → src-CHlVFp7r.js} +368 -311
  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-BF1ZhcGu.js → useEditorCore-Bf2d1DKI.js} +622 -607
  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-91bO_SOi.js → useLogicTag-3S63go4E.js} +4 -4
  180. package/dist/cdn/chunks/{useLogicTag-91bO_SOi.js.map → useLogicTag-3S63go4E.js.map} +1 -1
  181. package/dist/cdn/chunks/{useMergeTag-hwifK582.js → useMergeTag-BQtxUHq1.js} +4 -4
  182. package/dist/cdn/chunks/{useMergeTag-hwifK582.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-BDNJ25X1.js → useScrollToBlock-uUa601I4.js} +4 -5
  186. package/dist/cdn/chunks/useScrollToBlock-uUa601I4.js.map +1 -0
  187. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js +21 -0
  188. package/dist/cdn/chunks/withCurrentFont-DwJd-lKc.js.map +1 -0
  189. package/dist/cdn/editor.css +1 -1
  190. package/dist/cdn/editor.js +602 -580
  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-CVfwPu19.js → cloud-DwjaAdwK.js} +2 -2
  199. package/dist/{copy-D6DNoSq1.js → copy-BsKl4dcy.js} +1 -1
  200. package/dist/{createCloudRuntime-GRv_TDb2.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/{dist-CSaWqmWM.js → dist-C8koXLhl.js} +390 -241
  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-B65sfZRk.js → extensions-DHyKjsNZ.js} +19 -19
  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 +92 -20
  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/{cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js → preRenderCustomBlocks-lFX0HHiV.js} +3 -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 +509 -487
  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-DQSeKPE9.js → useEditorCore-BcT7UI4e.js} +1027 -1018
  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-BH87j1vZ.js → useLogicTag-D-dI8H6p.js} +3 -3
  261. package/dist/{useMergeTag-DfPKX2Tk.js → useMergeTag-5wMeDBi-.js} +3 -3
  262. package/dist/{usePopoverPosition-DkBrHfCo.js → usePopoverPosition-CwnH1o5g.js} +2 -2
  263. package/dist/{useScrollToBlock-Dr7Sb6Tr.js → useScrollToBlock-Do3suaqp.js} +4 -5
  264. package/dist/{vue.runtime.esm-bundler-CctRY8kr.js → vue.runtime.esm-bundler-CAzmrXdD.js} +1215 -1155
  265. package/dist/withCurrentFont-B4YnsG_2.js +19 -0
  266. package/dist/{x-gEC0yMci.js → x-CBFKGLB1.js} +1 -1
  267. package/package.json +24 -24
  268. package/dist/BlockPreviewCanvas-DwxJOTzH.js +0 -133
  269. package/dist/CountdownBlock-RNx3hIu0.js +0 -91
  270. package/dist/WrapperBlock-CzJa2Mxw.js +0 -34
  271. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.js +0 -135
  272. package/dist/cdn/chunks/BlockPreviewCanvas-hKxE6f-k.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-B5DN4Sy4.js.map +0 -1
  276. package/dist/cdn/chunks/TemplateSettings-G-yV7C1C.js.map +0 -1
  277. package/dist/cdn/chunks/Toolbar-K4tIkpG1.js.map +0 -1
  278. package/dist/cdn/chunks/TplModal-OOT36AjS.js.map +0 -1
  279. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js +0 -36
  280. package/dist/cdn/chunks/WrapperBlock-DdrnwH80.js.map +0 -1
  281. package/dist/cdn/chunks/ca-C__Dzq--.js.map +0 -1
  282. package/dist/cdn/chunks/createCloudRuntime-CeRJkLR2.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/extensions-xjRsIjMP.js.map +0 -1
  289. package/dist/cdn/chunks/fr-B6lcLLzC.js.map +0 -1
  290. package/dist/cdn/chunks/ja-BhdkqENz.js.map +0 -1
  291. package/dist/cdn/chunks/nl-CE3YItYg.js.map +0 -1
  292. package/dist/cdn/chunks/preRenderCustomBlocks-CFwa7nP9.js.map +0 -1
  293. package/dist/cdn/chunks/pt-BR-CUIT4rq4.js.map +0 -1
  294. package/dist/cdn/chunks/socialIcons-CsYnPPll.js +0 -1050
  295. package/dist/cdn/chunks/socialIcons-CsYnPPll.js.map +0 -1
  296. package/dist/cdn/chunks/src-BcqNlDMe.js.map +0 -1
  297. package/dist/cdn/chunks/src-CkXmV2I2.js.map +0 -1
  298. package/dist/cdn/chunks/src-HA9F2kvk.js.map +0 -1
  299. package/dist/cdn/chunks/tiptap-CYDXLO17.js.map +0 -1
  300. package/dist/cdn/chunks/useEditorCore-BF1ZhcGu.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-DDPIcEOO.js +0 -10
  302. package/dist/cdn/chunks/useScrollToBlock-BDNJ25X1.js.map +0 -1
  303. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js +0 -32
  304. package/dist/cdn/chunks/withCurrentFont-DeCbPVaE.js.map +0 -1
  305. package/dist/dist-CFC4pg2o.js +0 -5
  306. package/dist/dist-j2FavQmU.js +0 -5
  307. package/dist/en-Bk4iCfjp.js +0 -1
  308. package/dist/socialIcons-CvAixjj8.js +0 -1126
  309. package/dist/withCurrentFont-DeCbPVaE.js +0 -30
@@ -1,1126 +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 { $ as l, P as u, d, f, h as p, l as m, s as h, y as g } from "./dist-CSaWqmWM.js";
3
- import { r as _ } from "./dist-B_vYjCsk.js";
4
- import { o as v, s as y } from "./usePopoverPosition-DkBrHfCo.js";
5
- import { t as b } from "./createLucideIcon-BAPyioGd.js";
6
- //#region ../core/dist/index.js
7
- function x(e) {
8
- return e instanceof Error ? e : Error(String(e), { cause: e });
9
- }
10
- function S(e, t) {
11
- try {
12
- t();
13
- } catch (t) {
14
- e?.(x(t));
15
- }
16
- }
17
- function C(e) {
18
- return e === "1" ? 1 : e === "3" ? 3 : 2;
19
- }
20
- function w(t) {
21
- let n = t.content ?? g(t.defaultFontFamily, t.templateDefaults);
22
- d(n), f(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 ? u(a.content.blocks, a.selectedBlockId) : null);
44
- function u(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 = u(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 h(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 = h(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 _(e) {
73
- return t.lockedBlocks?.value.has(e) ?? !1;
74
- }
75
- function v(e) {
76
- let t = h(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
- d(e), f(e), a.content = e, t && s();
87
- }
88
- function b(e) {
89
- e && _(e) || (a.selectedBlockId = e);
90
- }
91
- function x(e) {
92
- a.viewport = e;
93
- }
94
- function w(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 (_(e)) return;
105
- let n = u(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 (d(i), f(i), !(t && e.type === "section")) {
120
- if (t) {
121
- if (_(t)) return;
122
- let i = u(a.content.blocks, t);
123
- if (i && i.type === "section") {
124
- if (n < 0 || n >= C(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 (_(e)) return;
135
- let t = h(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 (_(e) || n && _(n)) return;
150
- let i = h(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 = u(a.content.blocks, n);
157
- if (!e || e.type !== "section" || r < 0 || r >= C(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 m(`[Templatical] Templates: ${e} ${t}`);
168
- }
169
- function P(e) {
170
- S(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), d(r.content), f(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: _,
248
- setContent: y,
249
- selectBlock: b,
250
- setViewport: x,
251
- setDarkMode: w,
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 T = 50, E = 300, D = 1500;
269
- function O(t) {
270
- let { content: n, setContent: r, isRemoteOperation: i, maxSize: o = T } = t, s = a([]), c = a([]), u = a(!1), d = null, f = null, p = e(() => s.value.length > 0), m = e(() => c.value.length > 0);
271
- function h() {
272
- return l(n.value);
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
- f &&= (clearTimeout(f.timeoutId), null);
279
- }
280
- function v() {
281
- i?.() || (_(), g(h()), c.value = []);
282
- }
283
- function y(e) {
284
- i?.() || (f && f.blockId === e ? (clearTimeout(f.timeoutId), f.timeoutId = setTimeout(() => {
285
- f = null;
286
- }, E)) : (_(), g(h()), c.value = [], f = {
287
- blockId: e,
288
- timeoutId: setTimeout(() => {
289
- f = null;
290
- }, E)
291
- }));
292
- }
293
- function b() {
294
- u.value = !0, d && clearTimeout(d), d = setTimeout(() => {
295
- u.value = !1, d = null;
296
- }, D);
297
- }
298
- function x() {
299
- if (s.value.length === 0) return;
300
- _();
301
- let e = s.value.pop();
302
- c.value.push(h()), 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(h()), r(e, !0), b();
309
- }
310
- function C() {
311
- s.value = [], c.value = [], _();
312
- }
313
- function w() {
314
- C(), d &&= (clearTimeout(d), null);
315
- }
316
- return {
317
- canUndo: p,
318
- canRedo: m,
319
- isNavigating: u,
320
- undo: x,
321
- redo: S,
322
- record: v,
323
- recordDebounced: y,
324
- clear: C,
325
- destroy: w
326
- };
327
- }
328
- function k(e) {
329
- e.type === "table" ? e.rows = e.rows.map((e) => ({
330
- ...e,
331
- id: u(),
332
- cells: e.cells.map((e) => ({
333
- ...e,
334
- id: u()
335
- }))
336
- })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
337
- ...e,
338
- id: u()
339
- })) : e.type === "menu" && (e.items = e.items.map((e) => ({
340
- ...e,
341
- id: u()
342
- })));
343
- }
344
- function A(e) {
345
- let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
346
- function o(n, r, a) {
347
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = p(n, o);
348
- return t(s, r, a), i(s.id), s;
349
- }
350
- function s(e, n, r) {
351
- let o = JSON.parse(JSON.stringify(e));
352
- if (o.id = u(), k(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
353
- let t = JSON.parse(JSON.stringify(e));
354
- return t.id = u(), k(t), t;
355
- }))), n !== void 0 || r !== void 0) t(o, n, r);
356
- else {
357
- let i = a?.(e.id) ?? null;
358
- i ? t(o, i.targetSectionId, i.columnIndex, i.index + 1) : t(o, n, r);
359
- }
360
- return i(o.id), o;
361
- }
362
- function c(e) {
363
- n(e);
364
- }
365
- function l(e, t, n) {
366
- r(e, { [t]: n });
367
- }
368
- return {
369
- createAndAddBlock: o,
370
- duplicateBlock: s,
371
- deleteBlock: c,
372
- updateBlockProperty: l
373
- };
374
- }
375
- var j = 2e3;
376
- function M(e) {
377
- let { content: t, isDirty: n, onChange: r, debounce: i = j, enabled: a = !0 } = e, s = null, c = !1;
378
- function l() {
379
- return typeof a == "function" ? a() : a;
380
- }
381
- function u() {
382
- c = !0, f();
383
- }
384
- function d() {
385
- c = !1;
386
- }
387
- function f() {
388
- s &&= (clearTimeout(s), null);
389
- }
390
- function p() {
391
- f(), n() && r(JSON.parse(JSON.stringify(t.value)));
392
- }
393
- function m() {
394
- l() && !c && (f(), s = setTimeout(() => {
395
- s = null, l() && !c && n() && r(JSON.parse(JSON.stringify(t.value)));
396
- }, i));
397
- }
398
- let h = o(t, () => {
399
- m();
400
- }, { deep: !0 });
401
- function g() {
402
- h(), f();
403
- }
404
- return {
405
- flush: p,
406
- cancel: f,
407
- pause: u,
408
- resume: d,
409
- destroy: g
410
- };
411
- }
412
- function N(t) {
413
- let n = i(/* @__PURE__ */ new Set()), r = e(() => n.size > 0);
414
- function a(e) {
415
- return n.has(e);
416
- }
417
- function o(e) {
418
- n.has(e) ? n.delete(e) : (n.add(e), t.state.selectedBlockId === e && t.selectBlock(null));
419
- }
420
- function s() {
421
- n.clear();
422
- }
423
- return {
424
- isHidden: a,
425
- toggleBlock: o,
426
- reset: s,
427
- hasHiddenBlocks: r
428
- };
429
- }
430
- function P(t) {
431
- let n = a(!1), r = a(!1), i = e(() => !!t.definition.value?.dataSource), o = e(() => i.value && !t.block.value.dataSourceFetched);
432
- async function s() {
433
- let e = t.definition.value;
434
- if (e?.dataSource) {
435
- n.value = !0, r.value = !1;
436
- try {
437
- let n = await e.dataSource.onFetch({
438
- fieldValues: { ...t.block.value.fieldValues },
439
- blockId: t.block.value.id
440
- });
441
- if (n == null) return;
442
- let r = { ...t.block.value.fieldValues };
443
- for (let e of Object.keys(r)) e in n && (r[e] = n[e]);
444
- t.onUpdate(r, !0);
445
- } catch (e) {
446
- console.warn("[Templatical] Data source fetch error:", e), r.value = !0;
447
- } finally {
448
- n.value = !1;
449
- }
450
- }
451
- }
452
- return {
453
- isFetching: n,
454
- fetchError: r,
455
- fetch: s,
456
- hasDataSource: i,
457
- needsFetch: o
458
- };
459
- }
460
- function F(e, t) {
461
- let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
462
- e.addBlock = (r, i, a, o) => {
463
- i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
464
- }, e.removeBlock = (n) => {
465
- e.isBlockLocked(n) || (t.record(), r(n));
466
- }, e.moveBlock = (n, r, a, o) => {
467
- e.isBlockLocked(n) || a && e.isBlockLocked(a) || (t.record(), i(n, r, a, o));
468
- }, e.updateBlock = (n, r) => {
469
- e.isBlockLocked(n) || (t.recordDebounced(n), a(n, r));
470
- }, e.updateSettings = (e) => {
471
- t.record(), o(e);
472
- };
473
- }
474
- function I(e) {
475
- let { provider: t } = e, n = a([]), r = a(!1), i = c(() => {
476
- let e = /* @__PURE__ */ new Set();
477
- for (let t of n.value) {
478
- let n = t.category?.trim();
479
- n && e.add(n);
480
- }
481
- return [...e].sort((e, t) => e.localeCompare(t));
482
- }), o = c(() => typeof t.create == "function"), s = c(() => typeof t.update == "function"), l = c(() => typeof t.delete == "function");
483
- function u(e) {
484
- return s.value && e.canUpdate !== !1;
485
- }
486
- function d(e) {
487
- return l.value && e.canDelete !== !1;
488
- }
489
- function f(e, t) {
490
- throw new m(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
491
- }
492
- function p(t) {
493
- S(e.onError, t);
494
- }
495
- async function h(i) {
496
- r.value = !0;
497
- try {
498
- n.value = await t.list(i);
499
- } catch (t) {
500
- throw e.onError?.(t), t;
501
- } finally {
502
- r.value = !1;
503
- }
504
- }
505
- async function g(r, i, a) {
506
- let { create: o } = t;
507
- typeof o != "function" && f("create", "disabled by the provider");
508
- try {
509
- let e = await o(a ? {
510
- name: r,
511
- content: i,
512
- category: a
513
- } : {
514
- name: r,
515
- content: i
516
- });
517
- return n.value = [e, ...n.value], p(() => t.onCreated?.(e)), e;
518
- } catch (t) {
519
- throw e.onError?.(t), t;
520
- }
521
- }
522
- async function _(r, i) {
523
- let { update: a } = t;
524
- typeof a != "function" && f("update", "disabled by the provider");
525
- let o = n.value.find((e) => e.id === r);
526
- o && o.canUpdate === !1 && f("update", `not permitted for entry "${r}"`);
527
- try {
528
- let e = await a(r, i);
529
- return n.value = n.value.map((t) => t.id === r ? e : t), p(() => t.onUpdated?.(e)), e;
530
- } catch (t) {
531
- throw e.onError?.(t), t;
532
- }
533
- }
534
- async function v(r) {
535
- let { delete: i } = t;
536
- typeof i != "function" && f("delete", "disabled by the provider");
537
- let a = n.value.find((e) => e.id === r) ?? null;
538
- a && a.canDelete === !1 && f("delete", `not permitted for entry "${r}"`);
539
- try {
540
- await i(r), n.value = n.value.filter((e) => e.id !== r), a && p(() => t.onDeleted?.(a));
541
- } catch (t) {
542
- throw e.onError?.(t), t;
543
- }
544
- }
545
- return {
546
- savedBlocks: n,
547
- isLoading: r,
548
- categories: i,
549
- canCreate: o,
550
- canUpdate: s,
551
- canDelete: l,
552
- canUpdateBlock: u,
553
- canDeleteBlock: d,
554
- load: h,
555
- create: g,
556
- update: _,
557
- remove: v
558
- };
559
- }
560
- var L = "templatical:saved-blocks";
561
- function R(e = {}) {
562
- let t = e.key ?? L;
563
- function n() {
564
- 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.");
565
- return localStorage;
566
- }
567
- function r() {
568
- let e = n().getItem(t);
569
- if (!e) return [];
570
- try {
571
- let t = JSON.parse(e);
572
- return Array.isArray(t) ? t : [];
573
- } catch {
574
- return [];
575
- }
576
- }
577
- function i(e) {
578
- n().setItem(t, JSON.stringify(e));
579
- }
580
- return {
581
- async list(e) {
582
- let t = r(), n = e?.search?.trim().toLowerCase(), i = e?.category?.trim();
583
- return t.filter((e) => !(n && !e.name.toLowerCase().includes(n) || i && e.category !== i));
584
- },
585
- async create(e) {
586
- let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
587
- id: u(),
588
- name: e.name,
589
- content: e.content,
590
- ...e.category ? { category: e.category } : {},
591
- createdAt: t,
592
- updatedAt: t
593
- };
594
- return i([n, ...r()]), n;
595
- },
596
- async update(e, t) {
597
- let n = r(), a = n.findIndex((t) => t.id === e);
598
- if (a === -1) throw Error(`[Templatical] Saved block not found: ${e}`);
599
- let o = {
600
- ...n[a],
601
- ...t,
602
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
603
- }, s = [...n];
604
- return s[a] = o, i(s), o;
605
- },
606
- async delete(e) {
607
- let t = r();
608
- if (!t.some((t) => t.id === e)) throw Error(`[Templatical] Saved block not found: ${e}`);
609
- i(t.filter((t) => t.id !== e));
610
- }
611
- };
612
- }
613
- var z = "templatical:media", B = 50;
614
- function V(e = {}) {
615
- let t = e.key ?? z;
616
- function n() {
617
- 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.");
618
- return localStorage;
619
- }
620
- function r() {
621
- let e = n().getItem(t);
622
- if (!e) return [];
623
- try {
624
- let t = JSON.parse(e);
625
- return Array.isArray(t) ? t : [];
626
- } catch {
627
- return [];
628
- }
629
- }
630
- function i(e) {
631
- n().setItem(t, JSON.stringify(e));
632
- }
633
- function a(e) {
634
- return typeof FileReader > "u" ? Promise.reject(/* @__PURE__ */ Error("[Templatical] createLocalStorageMediaProvider requires a browser environment with FileReader.")) : new Promise((t, n) => {
635
- let r = new FileReader();
636
- r.onload = () => {
637
- typeof r.result == "string" ? t(r.result) : n(/* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
638
- }, r.onerror = () => {
639
- n(r.error ?? /* @__PURE__ */ Error("[Templatical] Failed to read file as a data URL."));
640
- }, r.readAsDataURL(e);
641
- });
642
- }
643
- return {
644
- async list(e) {
645
- let t = r(), n = e?.search?.trim().toLowerCase(), i = n ? t.filter((e) => {
646
- let t = e.filename?.toLowerCase() ?? "", r = e.alt?.toLowerCase() ?? "";
647
- return t.includes(n) || r.includes(n);
648
- }) : 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;
649
- return l < i.length && (c.nextCursor = String(l)), c;
650
- },
651
- async create(e) {
652
- let t = await a(e.file), n = (/* @__PURE__ */ new Date()).toISOString(), o = {
653
- id: u(),
654
- url: t,
655
- filename: e.filename || e.file.name,
656
- createdAt: n,
657
- updatedAt: n,
658
- size: e.file.size
659
- };
660
- 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;
661
- },
662
- async update(e, t) {
663
- let n = r(), a = n.findIndex((t) => t.id === e);
664
- if (a === -1) throw Error(`[Templatical] Media asset not found: ${e}`);
665
- let o = n[a], s = {
666
- ...o,
667
- ...t,
668
- id: o.id,
669
- url: o.url,
670
- updatedAt: (/* @__PURE__ */ new Date()).toISOString()
671
- }, c = [...n];
672
- return c[a] = s, i(c), s;
673
- },
674
- async delete(e) {
675
- let t = r();
676
- for (let n of e) if (!t.some((e) => e.id === n)) throw Error(`[Templatical] Media asset not found: ${n}`);
677
- let n = new Set(e);
678
- i(t.filter((e) => !n.has(e.id)));
679
- },
680
- folders: !1,
681
- replace: !1,
682
- importFromUrl: !1,
683
- checkUsage: !1,
684
- frequentlyUsed: !1,
685
- storage: !1
686
- };
687
- }
688
- function H(e) {
689
- 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");
690
- function f(e) {
691
- let t = n();
692
- if (!t) throw new m(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
693
- return t;
694
- }
695
- function p(e) {
696
- throw new m(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
697
- }
698
- function h(t) {
699
- S(e.onError, t);
700
- }
701
- async function g(n) {
702
- let a = f("list");
703
- i.value = !0;
704
- try {
705
- let e = await t.list(a, n);
706
- r.value = e.versions, o.value = e.nextCursor;
707
- } catch (t) {
708
- throw e.onError?.(t), t;
709
- } finally {
710
- i.value = !1;
711
- }
712
- }
713
- function _(e) {
714
- return e.content ?? l.get(e.id) ?? null;
715
- }
716
- async function v(n) {
717
- let r = _(n);
718
- if (r) return r;
719
- let i = f("get");
720
- try {
721
- let e = await t.get(i, n.id);
722
- return l.set(n.id, e), e;
723
- } catch (t) {
724
- throw e.onError?.(t), t;
725
- }
726
- }
727
- async function y(n, i) {
728
- let { create: a } = t;
729
- typeof a != "function" && p("create");
730
- let o = f("create");
731
- try {
732
- let e = await a(o, n, i);
733
- return r.value = [e, ...r.value], h(() => t.onCreated?.(e)), e;
734
- } catch (t) {
735
- throw e.onError?.(t), t;
736
- }
737
- }
738
- async function b(n) {
739
- let { restore: r } = t;
740
- typeof r != "function" && p("restore");
741
- let i = f("restore"), a;
742
- s.value = !0;
743
- try {
744
- a = await r(i, n);
745
- } catch (t) {
746
- throw e.onError?.(t), t;
747
- } finally {
748
- s.value = !1;
749
- }
750
- return h(() => t.onRestored?.(a)), a;
751
- }
752
- return {
753
- nextCursor: o,
754
- versions: r,
755
- isLoading: i,
756
- isRestoring: s,
757
- canCreate: u,
758
- canRestore: d,
759
- load: g,
760
- peekContent: _,
761
- resolveContent: v,
762
- create: y,
763
- restore: b
764
- };
765
- }
766
- function U(e) {
767
- let { provider: t, getTemplateId: n, getUser: r } = e, i = a([]), o = a(!1), s = a(!1), l = c(() => typeof t.create == "function"), u = c(() => typeof t.update == "function"), d = c(() => typeof t.delete == "function"), f = c(() => typeof t.setResolved == "function"), p = c(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), h = c(() => i.value.filter((e) => !e.resolvedAt).length), g = c(() => {
768
- let e = /* @__PURE__ */ new Map();
769
- for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
770
- return e;
771
- });
772
- function _(e) {
773
- let t = n();
774
- if (!t) throw new m(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
775
- return t;
776
- }
777
- function v(e) {
778
- let t = r();
779
- if (!t) throw new m(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
780
- return t;
781
- }
782
- function y(e) {
783
- throw new m(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
784
- }
785
- function b(e) {
786
- for (let t of i.value) {
787
- if (t.id === e) return t;
788
- for (let n of t.replies ?? []) if (n.id === e) return n;
789
- }
790
- return null;
791
- }
792
- function C(e) {
793
- let t = r();
794
- return t !== null && e.author.id === t.id;
795
- }
796
- function w(t) {
797
- let n = x(t);
798
- throw e.onError?.(n), n;
799
- }
800
- function T(t) {
801
- S(e.onError, t);
802
- }
803
- function E(e, t, n) {
804
- return [
805
- ...e.slice(0, t),
806
- n,
807
- ...e.slice(t + 1)
808
- ];
809
- }
810
- function D(e, t) {
811
- return e !== void 0 && JSON.stringify(e) === JSON.stringify(t);
812
- }
813
- function O(e) {
814
- if (e.parentId) {
815
- let t = !1, n = i.value.map((n) => {
816
- if (n.id !== e.parentId) return n;
817
- let r = n.replies ?? [], i = r.findIndex((t) => t.id === e.id);
818
- return i !== -1 && D(r[i], e) ? n : (t = !0, {
819
- ...n,
820
- replies: i === -1 ? [...r, e] : E(r, i, e)
821
- });
822
- });
823
- return t && (i.value = n), t;
824
- }
825
- let t = i.value.findIndex((t) => t.id === e.id);
826
- if (t === -1) return i.value = [...i.value, e], !0;
827
- let n = {
828
- ...e,
829
- replies: e.replies ?? i.value[t].replies
830
- };
831
- return !D(i.value[t], n) && (i.value = E(i.value, t, n), !0);
832
- }
833
- function k(e, t) {
834
- let n = b(e), r = t ?? n?.parentId ?? null;
835
- return r ? i.value = i.value.map((t) => t.id === r ? {
836
- ...t,
837
- replies: (t.replies ?? []).filter((t) => t.id !== e)
838
- } : t) : i.value = i.value.filter((t) => t.id !== e), n;
839
- }
840
- async function A(e) {
841
- let n = _("list");
842
- o.value = !0;
843
- try {
844
- i.value = await t.list(n, e);
845
- } catch (e) {
846
- w(e);
847
- } finally {
848
- o.value = !1;
849
- }
850
- }
851
- async function j(e) {
852
- let { create: n } = t;
853
- typeof n != "function" && y("create");
854
- let r = _("create");
855
- v("create"), s.value = !0;
856
- try {
857
- let i = await n(r, e);
858
- return O(i), T(() => t.onCreated?.(i, { origin: "local" })), i;
859
- } catch (e) {
860
- w(e);
861
- } finally {
862
- s.value = !1;
863
- }
864
- }
865
- async function M(e, n) {
866
- let { update: r } = t;
867
- typeof r != "function" && y("update");
868
- let i = _("update");
869
- v("update"), s.value = !0;
870
- try {
871
- let a = await r(i, e, n);
872
- return O(a), T(() => t.onUpdated?.(a, { origin: "local" })), a;
873
- } catch (e) {
874
- w(e);
875
- } finally {
876
- s.value = !1;
877
- }
878
- }
879
- async function N(e) {
880
- let { delete: n } = t;
881
- typeof n != "function" && y("delete");
882
- let r = _("delete");
883
- v("delete");
884
- let i = b(e);
885
- s.value = !0;
886
- try {
887
- await n(r, e), k(e), i && T(() => t.onDeleted?.(i, { origin: "local" }));
888
- } catch (e) {
889
- w(e);
890
- } finally {
891
- s.value = !1;
892
- }
893
- }
894
- async function P(e, n) {
895
- let { setResolved: r } = t;
896
- typeof r != "function" && y("setResolved");
897
- let i = _("setResolved");
898
- v("setResolved"), s.value = !0;
899
- try {
900
- let a = await r(i, e, n);
901
- return O(a), T(() => (a.resolvedAt ? t.onResolved : t.onUnresolved)?.(a, { origin: "local" })), a;
902
- } catch (e) {
903
- w(e);
904
- } finally {
905
- s.value = !1;
906
- }
907
- }
908
- function F(e) {
909
- O(e) && T(() => t.onCreated?.(e, { origin: "remote" }));
910
- }
911
- function I(e) {
912
- O(e) && T(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
913
- }
914
- function L(e, n) {
915
- let r = k(e, n);
916
- r && T(() => t.onDeleted?.(r, { origin: "remote" }));
917
- }
918
- return {
919
- comments: i,
920
- isLoading: o,
921
- isSubmitting: s,
922
- canCreate: l,
923
- canUpdate: u,
924
- canDelete: d,
925
- canResolve: f,
926
- totalCount: p,
927
- unresolvedCount: h,
928
- commentCountByBlock: g,
929
- load: A,
930
- create: j,
931
- update: M,
932
- remove: N,
933
- setResolved: P,
934
- find: b,
935
- isOwn: C,
936
- applyRemoteCreate: F,
937
- applyRemoteUpdate: I,
938
- applyRemoteDelete: L
939
- };
940
- }
941
- function W(e) {
942
- let { comments: r, provider: i, getTemplateId: a } = e, { subscribe: o } = i;
943
- if (typeof o != "function") return;
944
- let s = null;
945
- function c() {
946
- s?.(), s = null;
947
- }
948
- n(() => a(), (e) => {
949
- c(), e && (s = o(e, (e) => {
950
- switch (e.type) {
951
- case "created":
952
- r.applyRemoteCreate(e.comment);
953
- break;
954
- case "updated":
955
- r.applyRemoteUpdate(e.comment);
956
- break;
957
- case "deleted": r.applyRemoteDelete(e.commentId, e.parentId);
958
- }
959
- }));
960
- }, { immediate: !0 }), t(c);
961
- }
962
- //#endregion
963
- //#region src/utils/blockTypeLabels.ts
964
- function G(e, t) {
965
- return t.blocks[e] ?? e;
966
- }
967
- function K(e, t, n = []) {
968
- if (e.type !== "custom") return G(e.type, t);
969
- let { customType: r } = e;
970
- return n.find((e) => e.type === r)?.name ?? r;
971
- }
972
- //#endregion
973
- //#region src/utils/resolveFieldColors.ts
974
- function q(e, t) {
975
- let n = y({ presets: e.presets }, v), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
976
- return {
977
- presets: r ? t.presets : n.presets,
978
- allowCustom: t.allowCustom !== !1 && i,
979
- invalidPresets: n.invalidPresets,
980
- emptyPresets: e.presets !== void 0 && e.presets.length === 0,
981
- presetsInherited: r,
982
- allowCustomIgnored: e.allowCustom === !0 && t.allowCustom === !1
983
- };
984
- }
985
- var J = b({
986
- name: "code",
987
- size: 24,
988
- node: [["path", {
989
- d: "m16 18 6-6-6-6",
990
- key: "eg8j8"
991
- }], ["path", {
992
- d: "m8 6-6 6 6 6",
993
- key: "ppft3o"
994
- }]]
995
- }), Y = b({
996
- name: "image",
997
- size: 24,
998
- node: [
999
- ["rect", {
1000
- width: "18",
1001
- height: "18",
1002
- x: "3",
1003
- y: "3",
1004
- rx: "2",
1005
- ry: "2",
1006
- key: "1m3agn"
1007
- }],
1008
- ["circle", {
1009
- cx: "9",
1010
- cy: "9",
1011
- r: "2",
1012
- key: "af1f0g"
1013
- }],
1014
- ["path", {
1015
- d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1016
- key: "1xmnt7"
1017
- }]
1018
- ]
1019
- }), X = b({
1020
- name: "navigation",
1021
- size: 24,
1022
- node: [["polygon", {
1023
- points: "3 11 22 2 13 21 11 13 3 11",
1024
- key: "1ltx0t"
1025
- }]]
1026
- }), Z = b({
1027
- name: "share-2",
1028
- size: 24,
1029
- node: [
1030
- ["circle", {
1031
- cx: "18",
1032
- cy: "5",
1033
- r: "3",
1034
- key: "gq8acd"
1035
- }],
1036
- ["circle", {
1037
- cx: "6",
1038
- cy: "12",
1039
- r: "3",
1040
- key: "w7nqdw"
1041
- }],
1042
- ["circle", {
1043
- cx: "18",
1044
- cy: "19",
1045
- r: "3",
1046
- key: "1xt0gg"
1047
- }],
1048
- ["line", {
1049
- x1: "8.59",
1050
- x2: "15.42",
1051
- y1: "13.51",
1052
- y2: "17.49",
1053
- key: "47mynk"
1054
- }],
1055
- ["line", {
1056
- x1: "15.41",
1057
- x2: "8.59",
1058
- y1: "6.51",
1059
- y2: "10.49",
1060
- key: "1n3mei"
1061
- }]
1062
- ]
1063
- }), Q = b({
1064
- name: "table",
1065
- size: 24,
1066
- node: [
1067
- ["path", {
1068
- d: "M12 3v18",
1069
- key: "108xh3"
1070
- }],
1071
- ["rect", {
1072
- width: "18",
1073
- height: "18",
1074
- x: "3",
1075
- y: "3",
1076
- rx: "2",
1077
- key: "afitv7"
1078
- }],
1079
- ["path", {
1080
- d: "M3 9h18",
1081
- key: "1pudct"
1082
- }],
1083
- ["path", {
1084
- d: "M3 15h18",
1085
- key: "5xshup"
1086
- }]
1087
- ]
1088
- }), $ = "image/";
1089
- function ee(e) {
1090
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || s(r), { isOverDropZone: a } = _(t, {
1091
- preventDefaultForUnhandled: !0,
1092
- onDrop: (e) => {
1093
- if (!i()) return;
1094
- let t = (e ?? []).filter((e) => e.type.startsWith($));
1095
- t.length > 0 && n([t[0]]);
1096
- }
1097
- });
1098
- return { isOver: c(() => i() && a.value) };
1099
- }
1100
- //#endregion
1101
- //#region src/constants/socialIcons.ts
1102
- var te = h, ne = {
1103
- small: 24,
1104
- medium: 32,
1105
- large: 48
1106
- }, re = [
1107
- "facebook",
1108
- "twitter",
1109
- "instagram",
1110
- "linkedin",
1111
- "youtube",
1112
- "tiktok",
1113
- "pinterest",
1114
- "email",
1115
- "website",
1116
- "whatsapp",
1117
- "telegram",
1118
- "discord",
1119
- "snapchat",
1120
- "reddit",
1121
- "github",
1122
- "dribbble",
1123
- "behance"
1124
- ];
1125
- //#endregion
1126
- export { O as C, H as E, w as S, I as T, A as _, Q as a, N as b, Y as c, K as d, G as f, M as g, R as h, ee as i, J as l, V as m, te as n, Z as o, j as p, re as r, X as s, ne as t, q as u, W as v, F as w, P as x, U as y };