@templatical/editor 0.35.0 → 0.37.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 (223) hide show
  1. package/dist/{AiChatSidebar-DPHbCGu4.js → AiChatSidebar-tu4eLcf_.js} +57 -57
  2. package/dist/{AiFeatureMenu--8z7qvg1.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-BGCsJqqM.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/{BlockPreviewCanvas-DKspIy8V.js → BlockPreviewCanvas-DDCmMram.js} +28 -28
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-Bp5gFtaL.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/{CollaboratorBar-DvwZm5u7.js → CollaboratorBar-DAITu0hz.js} +17 -17
  8. package/dist/{ColorPicker-DtozuN75.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-3C-DsEjy.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-go1FnjDW.js → CommentsSidebar-X_xqM3dR.js} +158 -158
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-SLBuij7Q.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-rcE_BvUd.js → DesignReferenceSidebar--QtXjLrw.js} +57 -57
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/{IssuesPanel-Cig46N1i.js → IssuesPanel-BLbNFMSX.js} +38 -38
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-D1hzsn2b.js → MergeTagInput-BEjzj4Iu.js} +115 -115
  19. package/dist/{MergeTagModeToggle-CH9wR5YF.js → MergeTagModeToggle-DKN6ihI5.js} +40 -40
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/{ParagraphEditor-CT2AdMdZ.js → ParagraphEditor-1E9yzOfk.js} +231 -258
  22. package/dist/{RestoreVersionDialog-mdqgQxFR.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/{RichTextEditorContent-riOB-rKD.js → RichTextEditorContent-BnxbQUV9.js} +49 -59
  24. package/dist/{SaveBlockDialog-Cn2v4Lpj.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-ffBnWuVU.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-BmQC2tWN.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/{TemplateScoringPanel-CxAtdreR.js → TemplateScoringPanel-CSin43YM.js} +99 -98
  29. package/dist/{TestEmailModal-Cjn1padY.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-Bf3XZ1jn.js → TestEmailPanel-vd2e5HzT.js} +3 -3
  31. package/dist/TitleEditor-CLJ68Ty4.js +199 -0
  32. package/dist/TplModal-Q9fDgS1M.js +51 -0
  33. package/dist/{VersionHistoryMenu-CrNrGsaa.js → VersionHistoryMenu-eGYVhM4H.js} +41 -47
  34. package/dist/{VersionHistoryPanels-CsuQk6W3.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BqbO0Zss.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/{blockTypeIcons-D_4HdaY9.js → blockTypeIcons-5qD4bB76.js} +5 -17
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/ca-Jx2CDwtn.js +83 -0
  39. package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  40. package/dist/cdn/chunks/{AiChatSidebar-D0f74_nS.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  42. package/dist/cdn/chunks/{AiFeatureMenu-DwGb3eF9.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  44. package/dist/cdn/chunks/{BlockIssueBadge-CosQgeJ-.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js → BlockPreviewCanvas-B5f26eLE.js} +5 -5
  46. package/dist/cdn/chunks/{BlockPreviewCanvas-CIpZ2a6g.js.map → BlockPreviewCanvas-B5f26eLE.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  48. package/dist/cdn/chunks/{CloudHeaderExtras-CQzQwKFB.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js → CloudPanels-DkmR05nB.js} +15 -45
  50. package/dist/cdn/chunks/{CloudPanels-BmexuLOU.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  52. package/dist/cdn/chunks/{CollaboratorBar-DEICobpp.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  53. package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js → ColorPicker-LcrzgMoW.js} +7 -7
  54. package/dist/cdn/chunks/{ColorPicker-C7yC58FK.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js → CommentsPanel-CntwwocI.js} +2 -2
  56. package/dist/cdn/chunks/{CommentsPanel-OjmKxLL7.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  57. package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  58. package/dist/cdn/chunks/{CommentsSidebar-C4pWZGpy.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  61. package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  62. package/dist/cdn/chunks/{CountdownToolbar-wlJOxyAl.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  63. package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-DELhnh8h.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  65. package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js → IssuesPanel-Q62LTqvd.js} +5 -5
  66. package/dist/cdn/chunks/{IssuesPanel-C9i3o8aE.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  67. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  69. package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js → MergeTagInput-l7paaAml.js} +7 -7
  70. package/dist/cdn/chunks/{MergeTagInput-D76Kyvgu.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js → MergeTagModeToggle-DYxkAGtA.js} +4 -4
  72. package/dist/cdn/chunks/{MergeTagModeToggle-Dz3gxN2y.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  73. package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js → ParagraphEditor-Bd-GQXee.js} +15 -15
  74. package/dist/cdn/chunks/{ParagraphEditor-DQn0HMfV.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BdjOL8Oy.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  78. package/dist/cdn/chunks/{RichTextEditorContent-Drzwgh0J.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js → SaveBlockDialog-CufdTomT.js} +15 -15
  80. package/dist/cdn/chunks/{SaveBlockDialog-B3rbmXSM.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CkUXlnd2.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  84. package/dist/cdn/chunks/{SavedBlocksPanels-BPi3PZKP.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-BvB9A5W2.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  88. package/dist/cdn/chunks/{TemplateScoringPanel-BBCyLnOi.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  89. package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js → TestEmailModal-BTNlSW6f.js} +10 -10
  90. package/dist/cdn/chunks/{TestEmailModal-DAGTsBqi.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  91. package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  92. package/dist/cdn/chunks/{TestEmailPanel-BfenVvfx.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  93. package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js → TitleEditor-CrnuIq62.js} +9 -9
  94. package/dist/cdn/chunks/{TitleEditor-oQ4gr6wS.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  95. package/dist/cdn/chunks/{TplModal-DxOMcVwp.js → TplModal-DYXrTz42.js} +5 -5
  96. package/dist/cdn/chunks/{TplModal-DxOMcVwp.js.map → TplModal-DYXrTz42.js.map} +1 -1
  97. package/dist/cdn/chunks/{VersionHistoryMenu-BfVUvWHT.js → VersionHistoryMenu-bDGnE4hb.js} +4 -4
  98. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  99. package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  100. package/dist/cdn/chunks/{VersionHistoryPanels-NpDb641L.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  101. package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  102. package/dist/cdn/chunks/{VersionPreviewBanner-Cpgt4xHc.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  103. package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js → blockTypeIcons-CNjJSFun.js} +2 -2
  104. package/dist/cdn/chunks/{blockTypeIcons-t9vvaiuH.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  105. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  106. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  107. package/dist/cdn/chunks/{cloud-CullB76F.js → cloud-BLgCKP7Z.js} +452 -227
  108. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  109. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  110. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  111. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  112. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  113. package/dist/cdn/chunks/{src-CaXeO-gG.js → editor-modal-MXgtarMl.js} +1474 -1935
  114. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  115. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  116. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  117. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  118. package/dist/cdn/chunks/{extensions-BpXY7jO5.js → extensions-B8_jnIkD.js} +3 -3
  119. package/dist/cdn/chunks/{extensions-BpXY7jO5.js.map → extensions-B8_jnIkD.js.map} +1 -1
  120. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  121. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  122. package/dist/cdn/chunks/{icons-BLxcQUck.js → icons-BUlqGSgd.js} +24 -24
  123. package/dist/cdn/chunks/{icons-BLxcQUck.js.map → icons-BUlqGSgd.js.map} +1 -1
  124. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  125. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  126. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  127. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  128. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  129. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  130. package/dist/cdn/chunks/{src-BC-eolWY.js → src-Ozknnj-v.js} +2 -2
  131. package/dist/cdn/chunks/{src-BC-eolWY.js.map → src-Ozknnj-v.js.map} +1 -1
  132. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  133. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  134. package/dist/cdn/chunks/{useEditorCore-D4MytYB9.js → useEditorCore-Cs7rYVBo.js} +488 -406
  135. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  136. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  137. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  138. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  139. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  140. package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js → useMergeTag-BYAifvh8.js} +3 -3
  141. package/dist/cdn/chunks/{useMergeTag-CSocWpxV.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  142. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  143. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  144. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  145. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  146. package/dist/cdn/editor.css +1 -1
  147. package/dist/cdn/editor.js +1094 -1005
  148. package/dist/cdn/editor.js.map +1 -1
  149. package/dist/{check-CY-Ec6FV.js → check-DWtkBzBU.js} +1 -1
  150. package/dist/{chevron-down-BghbWA9p.js → chevron-down-C-Fjxcqj.js} +1 -1
  151. package/dist/chevron-right-SOkn2d4P.js +11 -0
  152. package/dist/{chevron-up-n3qFAPS3.js → chevron-up-lntU1ypp.js} +1 -1
  153. package/dist/{circle-alert-L5uGGFRP.js → circle-alert-CjzUTwy3.js} +1 -1
  154. package/dist/{clock-Dgnwp18n.js → clock-pB2QKPsJ.js} +1 -1
  155. package/dist/{cloud-B1c4XIsn.js → cloud-DdidMW6f.js} +445 -200
  156. package/dist/copy-CId1E038.js +19 -0
  157. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  158. package/dist/{createLucideIcon-05lB8iWe.js → createLucideIcon-Cwf_nTzE.js} +6 -6
  159. package/dist/de-Ck0pBGHu.js +83 -0
  160. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  161. package/dist/dist-D8i1ixHK.js +177 -0
  162. package/dist/dist-DBirAJIs.js +410 -0
  163. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  164. package/dist/en-DcmpWV53.js +2 -0
  165. package/dist/es-lagTvUfX.js +83 -0
  166. package/dist/{extensions-Bawm4BOM.js → extensions-CHOBZRab.js} +42 -42
  167. package/dist/eye-BuGtFUoJ.js +16 -0
  168. package/dist/fr-C4hVl5Lk.js +83 -0
  169. package/dist/{image-up-ovhjl9u9.js → image-up-gH4JEpU5.js} +1 -1
  170. package/dist/index.d.ts +90 -11
  171. package/dist/{info-c3KI927I.js → info-BQ60P82u.js} +1 -1
  172. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  173. package/dist/link-3R8it3J7.js +14 -0
  174. package/dist/list-Ccdgj46T.js +33 -0
  175. package/dist/{loader-circle-B2Y8xZQb.js → loader-circle-B_tAD4k6.js} +1 -1
  176. package/dist/{message-circle-B7K-naUa.js → message-circle-P-KSc6V0.js} +1 -1
  177. package/dist/nl-CReD7Apd.js +83 -0
  178. package/dist/{pencil-BhWTFcp4.js → pencil-9ZiwqS4r.js} +1 -1
  179. package/dist/plus-BwJEzCaO.js +14 -0
  180. package/dist/pt-BR-BRA0-vGP.js +83 -0
  181. package/dist/{refresh-cw-BqUR5vgO.js → refresh-cw-DEgfb2FK.js} +2 -14
  182. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  183. package/dist/search-DqQ8Li5E.js +16 -0
  184. package/dist/{send-D1vvuW79.js → send-CE6uvqop.js} +1 -1
  185. package/dist/{shield-check-DjK54PnW.js → shield-check-DhD1Z3rd.js} +1 -1
  186. package/dist/{sparkles-DNdS9V_3.js → sparkles-R0ZQHa6F.js} +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/templatical-editor.js +2491 -2408
  189. package/dist/{text-align-start-Bcmo_VUY.js → text-align-start-DSux2UNn.js} +1 -1
  190. package/dist/{trash-C9bMXvw4.js → trash-Cf_SqsER.js} +1 -1
  191. package/dist/{triangle-alert-Bn8Bd2Yv.js → triangle-alert-C6tGa6jw.js} +1 -1
  192. package/dist/{upload-DKgg1gno.js → upload-DusKjpVr.js} +1 -1
  193. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  194. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  195. package/dist/{useEditorCore-CYGvurZa.js → useEditorCore-DhlKOYwe.js} +1552 -1486
  196. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  197. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  198. package/dist/{useMergeTag-C9GEpljB.js → useMergeTag-DlvOBW_B.js} +3 -3
  199. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  200. package/dist/{useScrollToBlock-oUx1HIZ2.js → useScrollToBlock-BTFw0b9O.js} +3 -3
  201. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  202. package/dist/{x-BPKoRPTG.js → x-D_-42Ukq.js} +1 -1
  203. package/package.json +9 -12
  204. package/dist/CloudHeaderExtras-CRUQvgSV.js +0 -59
  205. package/dist/SavedBlocksBrowserModal-BORqqASb.js +0 -322
  206. package/dist/TitleEditor-pYEUX6lR.js +0 -198
  207. package/dist/TplModal-DRx4ytx8.js +0 -51
  208. package/dist/cdn/chunks/VersionHistoryMenu-BfVUvWHT.js.map +0 -1
  209. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  210. package/dist/cdn/chunks/cloud-CullB76F.js.map +0 -1
  211. package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js +0 -443
  212. package/dist/cdn/chunks/createCloudRuntime-Cx2JpUYU.js.map +0 -1
  213. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  214. package/dist/cdn/chunks/en-rGHphLWo.js +0 -2
  215. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  216. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  217. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  218. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  219. package/dist/cdn/chunks/src-CaXeO-gG.js.map +0 -1
  220. package/dist/cdn/chunks/useEditorCore-D4MytYB9.js.map +0 -1
  221. package/dist/createCloudRuntime-PevFSH74.js +0 -441
  222. package/dist/dist-dNiknO7j.js +0 -251
  223. package/dist/dist-heatwAdo.js +0 -150
@@ -1,9 +1,9 @@
1
- import { Dt as e, c as t, d as n, g as r, h as i, k as a, kt as o, l as s, rt as c, u as l, v as u, z as d } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { t as f } from "./useI18n-CL6RfPzK.js";
3
- import { t as p } from "./loader-circle-B2Y8xZQb.js";
4
- import { t as m } from "./triangle-alert-Bn8Bd2Yv.js";
1
+ import { A as e, B as t, at as n, c as r, d as i, g as a, h as o, jt as s, kt as c, l, u, v as d } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { t as f } from "./useI18n-BbdxxpOE.js";
3
+ import { t as p } from "./loader-circle-B_tAD4k6.js";
4
+ import { t as m } from "./triangle-alert-C6tGa6jw.js";
5
5
  import { d as h, v as g, x as _ } from "./styleConstants-C_YAPdQS.js";
6
- import { t as v } from "./TplModal-DRx4ytx8.js";
6
+ import { t as v } from "./TplModal-Q9fDgS1M.js";
7
7
  //#region src/components/RestoreVersionDialog.vue?vue&type=script&setup=true&lang.ts
8
8
  var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x = {
9
9
  id: "tpl-restore-version-title",
@@ -11,7 +11,7 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
11
11
  }, S = {
12
12
  id: "tpl-restore-version-body",
13
13
  class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
14
- }, C = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, w = ["disabled"], T = ["disabled"], E = ["disabled"], D = /* @__PURE__ */ u({
14
+ }, C = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, w = ["disabled"], T = ["disabled"], E = ["disabled"], D = /* @__PURE__ */ d({
15
15
  __name: "RestoreVersionDialog",
16
16
  props: {
17
17
  visible: { type: Boolean },
@@ -23,16 +23,16 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
23
23
  "save-and-restore",
24
24
  "discard-and-restore"
25
25
  ],
26
- setup(u, { emit: D }) {
26
+ setup(d, { emit: D }) {
27
27
  let O = D, { t: k } = f();
28
- return (f, D) => (a(), s(v, {
29
- visible: u.visible,
28
+ return (f, D) => (e(), l(v, {
29
+ visible: d.visible,
30
30
  onClose: D[3] ||= (e) => O("cancel")
31
31
  }, {
32
- default: d(() => [t("div", {
32
+ default: t(() => [r("div", {
33
33
  role: "alertdialog",
34
34
  "aria-modal": "true",
35
- "aria-busy": u.isBusy,
35
+ "aria-busy": d.isBusy,
36
36
  "aria-labelledby": "tpl-restore-version-title",
37
37
  "aria-describedby": "tpl-restore-version-body",
38
38
  "data-testid": "restore-version-dialog",
@@ -42,40 +42,40 @@ var y = ["aria-busy"], b = { class: "tpl:flex tpl:items-center tpl:gap-2" }, x =
42
42
  "box-shadow": "var(--tpl-shadow-xl)"
43
43
  }
44
44
  }, [
45
- t("div", b, [r(c(m), {
45
+ r("div", b, [a(n(m), {
46
46
  size: 18,
47
47
  "stroke-width": 2,
48
48
  class: "tpl:text-[var(--tpl-warning)]"
49
- }), t("h3", x, o(c(k).versionPreview.restoreConfirm.title), 1)]),
50
- t("p", S, o(u.canSave ? c(k).versionPreview.restoreConfirm.unsavedWithSave : c(k).versionPreview.restoreConfirm.unsavedNoSave), 1),
51
- t("div", C, [
52
- t("button", {
49
+ }), r("h3", x, s(n(k).versionPreview.restoreConfirm.title), 1)]),
50
+ r("p", S, s(d.canSave ? n(k).versionPreview.restoreConfirm.unsavedWithSave : n(k).versionPreview.restoreConfirm.unsavedNoSave), 1),
51
+ r("div", C, [
52
+ r("button", {
53
53
  type: "button",
54
54
  "data-testid": "restore-version-cancel",
55
- class: e(c(_)),
56
- disabled: u.isBusy,
55
+ class: c(n(_)),
56
+ disabled: d.isBusy,
57
57
  onClick: D[0] ||= (e) => O("cancel")
58
- }, o(c(k).versionPreview.restoreConfirm.cancel), 11, w),
59
- t("button", {
58
+ }, s(n(k).versionPreview.restoreConfirm.cancel), 11, w),
59
+ r("button", {
60
60
  type: "button",
61
61
  "data-testid": "restore-version-discard",
62
- class: e(c(h)),
63
- disabled: u.isBusy,
62
+ class: c(n(h)),
63
+ disabled: d.isBusy,
64
64
  onClick: D[1] ||= (e) => O("discard-and-restore")
65
- }, o(c(k).versionPreview.restoreConfirm.restoreAnyway), 11, T),
66
- u.canSave ? (a(), n("button", {
65
+ }, s(n(k).versionPreview.restoreConfirm.restoreAnyway), 11, T),
66
+ d.canSave ? (e(), i("button", {
67
67
  key: 0,
68
68
  type: "button",
69
69
  "data-testid": "restore-version-save-first",
70
- class: e(c(g)),
71
- disabled: u.isBusy,
70
+ class: c(n(g)),
71
+ disabled: d.isBusy,
72
72
  onClick: D[2] ||= (e) => O("save-and-restore")
73
- }, [u.isBusy ? (a(), s(c(p), {
73
+ }, [d.isBusy ? (e(), l(n(p), {
74
74
  key: 0,
75
75
  class: "tpl:animate-spin",
76
76
  size: 12,
77
77
  "stroke-width": 2
78
- })) : l("", !0), i(" " + o(c(k).versionPreview.restoreConfirm.saveAndRestore), 1)], 10, E)) : l("", !0)
78
+ })) : u("", !0), o(" " + s(n(k).versionPreview.restoreConfirm.saveAndRestore), 1)], 10, E)) : u("", !0)
79
79
  ])
80
80
  ], 8, y)]),
81
81
  _: 1
@@ -1,12 +1,12 @@
1
- import { F as e, Ot as t, P as n, S as r, c as i, d as a, g as o, h as s, i as c, k as l, kt as u, l as d, rt as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { c as _ } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { K as v, U as y, h as b } from "./keys-C3P1yxnr.js";
4
- import { t as x } from "./useI18n-CL6RfPzK.js";
5
- import { n as S } from "./usePopoverPosition-CWxaIWd3.js";
6
- import { t as C } from "./createLucideIcon-05lB8iWe.js";
7
- import { t as w } from "./MergeTagInput-D1hzsn2b.js";
8
- import { t as T } from "./x-BPKoRPTG.js";
9
- import { t as E } from "./ColorPicker-DtozuN75.js";
1
+ import { A as e, At as t, F as n, I as r, S as i, at as a, c as o, d as s, g as c, h as l, i as u, jt as d, l as f, s as p, u as m, v as h, w as g } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { c as _ } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import { W as v, g as y, q as b } from "./keys-DQA2i1k1.js";
4
+ import { t as x } from "./useI18n-BbdxxpOE.js";
5
+ import { n as S } from "./usePopoverPosition-CprM5p-c.js";
6
+ import { t as C } from "./createLucideIcon-Cwf_nTzE.js";
7
+ import { t as w } from "./MergeTagInput-BEjzj4Iu.js";
8
+ import { t as T } from "./x-D_-42Ukq.js";
9
+ import { t as E } from "./ColorPicker-BqlZ_TqG.js";
10
10
  var D = C({
11
11
  name: "bold",
12
12
  size: 24,
@@ -40,20 +40,10 @@ var D = C({
40
40
  key: "uljnxc"
41
41
  }]
42
42
  ]
43
- }), k = C({
44
- name: "link",
45
- size: 24,
46
- node: [["path", {
47
- d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
48
- key: "1cjeqo"
49
- }], ["path", {
50
- d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
51
- key: "19qd67"
52
- }]]
53
- }), A = ["data-tpl-theme"], j = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, M = {
43
+ }), k = ["data-tpl-theme"], A = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, j = {
54
44
  id: "tpl-link-dialog-title",
55
45
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
56
- }, N = ["aria-label"], P = { class: "tpl:p-5" }, F = { class: "tpl:mb-4 tpl:last:mb-0" }, I = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, L = { class: "tpl:mb-4 tpl:last:mb-0" }, R = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, z = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, B = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, V = /* @__PURE__ */ h({
46
+ }, M = ["aria-label"], N = { class: "tpl:p-5" }, P = { class: "tpl:mb-4 tpl:last:mb-0" }, F = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, I = { class: "tpl:mb-4 tpl:last:mb-0" }, L = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, R = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, z = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, B = /* @__PURE__ */ h({
57
47
  __name: "RichTextLinkDialog",
58
48
  props: /*@__PURE__*/ g({
59
49
  visible: { type: Boolean },
@@ -76,18 +66,18 @@ var D = C({
76
66
  "update:linkColor",
77
67
  "update:dialogRef"
78
68
  ]),
79
- setup(n, { emit: s }) {
80
- let h = e(n, "linkUrl"), g = e(n, "linkColor"), C = e(n, "dialogRef"), D = s, O = r(y, null), k = r(v, null), V = S(), H = r(b, null), U = p(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = x();
81
- return (e, r) => f(V) ? (l(), d(c, {
69
+ setup(n, { emit: l }) {
70
+ let h = r(n, "linkUrl"), g = r(n, "linkColor"), C = r(n, "dialogRef"), D = l, O = i(v, null), B = i(b, null), V = S(), H = i(y, null), U = p(() => H?.content.value.settings.linkColor || "#2c85de"), { t: W } = x();
71
+ return (r, i) => a(V) ? (e(), f(u, {
82
72
  key: 0,
83
- to: f(V)
84
- }, [n.visible ? (l(), a("div", {
73
+ to: a(V)
74
+ }, [n.visible ? (e(), s("div", {
85
75
  key: 0,
86
- "data-tpl-theme": f(k),
76
+ "data-tpl-theme": a(B),
87
77
  class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
88
- style: t(f(O)),
89
- onClick: r[7] ||= _((e) => D("close"), ["self"])
90
- }, [i("div", {
78
+ style: t(a(O)),
79
+ onClick: i[7] ||= _((e) => D("close"), ["self"])
80
+ }, [o("div", {
91
81
  ref: (e) => C.value = e,
92
82
  role: "dialog",
93
83
  "aria-modal": "true",
@@ -95,51 +85,51 @@ var D = C({
95
85
  "data-testid": "link-dialog",
96
86
  class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]"
97
87
  }, [
98
- i("div", j, [i("h4", M, u(n.isEditingLink ? f(W).linkDialog.editLink : f(W).linkDialog.insertLink), 1), i("button", {
88
+ o("div", A, [o("h4", j, d(n.isEditingLink ? a(W).linkDialog.editLink : a(W).linkDialog.insertLink), 1), o("button", {
99
89
  type: "button",
100
- "aria-label": f(W).linkDialog.cancel,
90
+ "aria-label": a(W).linkDialog.cancel,
101
91
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
102
- onClick: r[0] ||= (e) => D("close")
103
- }, [o(f(T), {
92
+ onClick: i[0] ||= (e) => D("close")
93
+ }, [c(a(T), {
104
94
  size: 16,
105
95
  "stroke-width": 2
106
- })], 8, N)]),
107
- i("div", P, [i("div", F, [i("label", I, u(f(W).linkDialog.urlLabel), 1), o(w, {
96
+ })], 8, M)]),
97
+ o("div", N, [o("div", P, [o("label", F, d(a(W).linkDialog.urlLabel), 1), c(w, {
108
98
  "model-value": h.value,
109
99
  type: "url",
110
100
  "data-testid": "link-dialog-url",
111
- placeholder: f(W).linkDialog.urlPlaceholder,
112
- "onUpdate:modelValue": r[1] ||= (e) => h.value = e,
113
- onKeydown: r[2] ||= (e) => D("keydown", e)
114
- }, null, 8, ["model-value", "placeholder"])]), i("div", L, [i("label", R, u(f(W).linkDialog.colorLabel), 1), o(E, {
101
+ placeholder: a(W).linkDialog.urlPlaceholder,
102
+ "onUpdate:modelValue": i[1] ||= (e) => h.value = e,
103
+ onKeydown: i[2] ||= (e) => D("keydown", e)
104
+ }, null, 8, ["model-value", "placeholder"])]), o("div", I, [o("label", L, d(a(W).linkDialog.colorLabel), 1), c(E, {
115
105
  "model-value": g.value,
116
106
  "seed-color": U.value,
117
- "onUpdate:modelValue": r[3] ||= (e) => g.value = e
107
+ "onUpdate:modelValue": i[3] ||= (e) => g.value = e
118
108
  }, null, 8, ["model-value", "seed-color"])])]),
119
- i("div", z, [n.isEditingLink ? (l(), a("button", {
109
+ o("div", R, [n.isEditingLink ? (e(), s("button", {
120
110
  key: 0,
121
111
  type: "button",
122
112
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:hover:bg-[var(--tpl-danger-light)]",
123
- onClick: r[4] ||= (e) => D("remove")
124
- }, u(f(W).linkDialog.removeLink), 1)) : m("", !0), i("div", B, [i("button", {
113
+ onClick: i[4] ||= (e) => D("remove")
114
+ }, d(a(W).linkDialog.removeLink), 1)) : m("", !0), o("div", z, [o("button", {
125
115
  type: "button",
126
116
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
127
- onClick: r[5] ||= (e) => D("close")
128
- }, u(f(W).linkDialog.cancel), 1), i("button", {
117
+ onClick: i[5] ||= (e) => D("close")
118
+ }, d(a(W).linkDialog.cancel), 1), o("button", {
129
119
  type: "button",
130
120
  class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-on-primary)]",
131
121
  "data-testid": "link-dialog-submit",
132
- onClick: r[6] ||= (e) => D("insert")
133
- }, u(n.isEditingLink ? f(W).linkDialog.updateLink : f(W).linkDialog.insertLink), 1)])])
134
- ], 512)], 12, A)) : m("", !0)], 8, ["to"])) : m("", !0);
122
+ onClick: i[6] ||= (e) => D("insert")
123
+ }, d(n.isEditingLink ? a(W).linkDialog.updateLink : a(W).linkDialog.insertLink), 1)])])
124
+ ], 512)], 12, k)) : m("", !0)], 8, ["to"])) : m("", !0);
135
125
  }
136
- }), H = {
126
+ }), V = {
137
127
  key: 0,
138
128
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
139
- }, U = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, W = {
129
+ }, H = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, U = {
140
130
  key: 1,
141
131
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
142
- }, G = /* @__PURE__ */ h({
132
+ }, W = /* @__PURE__ */ h({
143
133
  __name: "RichTextEditorContent",
144
134
  props: {
145
135
  editor: {},
@@ -148,17 +138,17 @@ var D = C({
148
138
  initError: {}
149
139
  },
150
140
  emits: ["retry"],
151
- setup(e, { emit: t }) {
152
- let r = t, { t: o } = x();
153
- return (t, c) => e.isLoading ? (l(), a("div", H, [i("div", U, u(f(o).errors.editorLoading), 1)])) : e.initError ? (l(), a("div", W, [s(u(f(o).errors.editorLoadFailed) + " ", 1), i("button", {
141
+ setup(t, { emit: r }) {
142
+ let i = r, { t: c } = x();
143
+ return (r, u) => t.isLoading ? (e(), s("div", V, [o("div", H, d(a(c).errors.editorLoading), 1)])) : t.initError ? (e(), s("div", U, [l(d(a(c).errors.editorLoadFailed) + " ", 1), o("button", {
154
144
  class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
155
- onClick: c[0] ||= (e) => r("retry")
156
- }, u(f(o).errors.retry), 1)])) : e.editorContent && e.editor ? (l(), d(n(e.editorContent), {
145
+ onClick: u[0] ||= (e) => i("retry")
146
+ }, d(a(c).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), f(n(t.editorContent), {
157
147
  key: 2,
158
- editor: e.editor,
148
+ editor: t.editor,
159
149
  class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
160
150
  }, null, 8, ["editor"])) : m("", !0);
161
151
  }
162
152
  });
163
153
  //#endregion
164
- export { D as a, O as i, V as n, k as r, G as t };
154
+ export { D as i, B as n, O as r, W as t };
@@ -1,15 +1,15 @@
1
- import { B as e, D as t, Dt as n, E as r, L as i, Ot as a, P as o, S as s, X as c, c as l, d as u, g as d, h as f, j as p, k as m, kt as h, l as g, r as _, rt as v, s as y, u as b, v as x, z as S } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { N as E, Y as D, c as O } from "./useEditorCore-CYGvurZa.js";
4
- import { J as k, f as ee, h as A, z as j } from "./keys-C3P1yxnr.js";
5
- import { t as M } from "./useI18n-CL6RfPzK.js";
6
- import { t as te } from "./chevron-down-BghbWA9p.js";
7
- import { t as N } from "./chevron-up-n3qFAPS3.js";
8
- import { t as P } from "./loader-circle-B2Y8xZQb.js";
1
+ import { A as e, At as t, B as n, D as r, F as i, M as a, O as o, R as s, S as c, V as l, Z as u, at as d, c as f, d as p, g as m, h, jt as g, kt as _, l as v, r as y, s as b, u as x, v as S } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { a as C, c as w, s as T } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import { J as ee, N as E, c as D } from "./useEditorCore-DhlKOYwe.js";
4
+ import { B as O, Y as k, g as A, p as te } from "./keys-DQA2i1k1.js";
5
+ import { t as j } from "./useI18n-BbdxxpOE.js";
6
+ import { t as M } from "./chevron-down-C-Fjxcqj.js";
7
+ import { t as N } from "./chevron-up-lntU1ypp.js";
8
+ import { t as P } from "./loader-circle-B_tAD4k6.js";
9
9
  import { v as F } from "./styleConstants-C_YAPdQS.js";
10
10
  import { n as I } from "./emailFrameWidth-BmFCN2dp.js";
11
- import { t as L } from "./TplModal-DRx4ytx8.js";
12
- import { t as R } from "./BlockPreviewCanvas-DKspIy8V.js";
11
+ import { t as L } from "./TplModal-Q9fDgS1M.js";
12
+ import { t as R } from "./BlockPreviewCanvas-DDCmMram.js";
13
13
  //#region src/components/SavedBlockPreviewRow.vue?vue&type=script&setup=true&lang.ts
14
14
  var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relative tpl:min-w-0 tpl:flex-1" }, H = {
15
15
  key: 0,
@@ -17,7 +17,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
17
17
  "aria-hidden": "true",
18
18
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-0 tpl:h-10",
19
19
  style: { background: "linear-gradient(\n to bottom,\n transparent,\n var(--tpl-bg) 90%\n )" }
20
- }, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */ x({
20
+ }, U = ["aria-label", "aria-expanded"], W = 240, G = /* @__PURE__ */ S({
21
21
  __name: "SavedBlockPreviewRow",
22
22
  props: {
23
23
  block: {},
@@ -25,69 +25,69 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
25
25
  total: {}
26
26
  },
27
27
  emits: ["move"],
28
- setup(e, { emit: n }) {
29
- let i = e, p = n, { t: _, format: x } = M(), S = s(ee, []), C = s(A, null), O = y(() => I(C?.content.value.settings)), k = c(null), j = c(null), P = c(1), F = c(null), L = c(!1), G = null, K = y(() => F.value !== null && F.value > W), q = y(() => F.value === null ? null : L.value || !K.value ? F.value : W);
28
+ setup(n, { emit: a }) {
29
+ let s = n, l = a, { t: _, format: y } = j(), S = c(te, []), C = c(A, null), D = b(() => I(C?.content.value.settings)), O = u(null), k = u(null), P = u(1), F = u(null), L = u(!1), G = null, K = b(() => F.value !== null && F.value > W), q = b(() => F.value === null ? null : L.value || !K.value ? F.value : W);
30
30
  function J() {
31
- let e = k.value, t = j.value;
31
+ let e = O.value, t = k.value;
32
32
  if (!e || !t) return;
33
33
  let n = e.clientWidth;
34
34
  if (n <= 0) return;
35
- let r = Math.min(1, n / O.value);
35
+ let r = Math.min(1, n / D.value);
36
36
  P.value = r, F.value = t.offsetHeight * r;
37
37
  }
38
- t(() => {
39
- J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()), k.value && G.observe(k.value), j.value && G.observe(j.value));
38
+ o(() => {
39
+ J(), !(typeof ResizeObserver > "u") && (G = new ResizeObserver(() => J()), O.value && G.observe(O.value), k.value && G.observe(k.value));
40
40
  }), r(() => {
41
41
  G?.disconnect(), G = null;
42
42
  });
43
- let Y = y(() => D(i.block, _, S)), X = y(() => x(_.savedBlocks.reorderHandle, {
43
+ let Y = b(() => ee(s.block, _, S)), X = b(() => y(_.savedBlocks.reorderHandle, {
44
44
  block: Y.value,
45
- position: i.position,
46
- total: i.total
47
- })), Z = y(() => x(L.value ? _.savedBlocks.collapsePreview : _.savedBlocks.expandPreview, { block: Y.value }));
48
- return (t, n) => (m(), u("div", {
45
+ position: s.position,
46
+ total: s.total
47
+ })), Z = b(() => y(L.value ? _.savedBlocks.collapsePreview : _.savedBlocks.expandPreview, { block: Y.value }));
48
+ return (r, a) => (e(), p("div", {
49
49
  "data-testid": "saved-blocks-reorder-row",
50
- "data-block-id": e.block.id,
50
+ "data-block-id": n.block.id,
51
51
  class: "tpl:flex tpl:items-start tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:p-1.5 tpl:border-[var(--tpl-border)]",
52
52
  style: { "background-color": "var(--tpl-bg)" }
53
- }, [l("button", {
53
+ }, [f("button", {
54
54
  type: "button",
55
55
  "data-testid": "saved-blocks-reorder-handle",
56
56
  class: "tpl-saved-block-reorder-handle tpl:mt-0.5 tpl:shrink-0 tpl:cursor-grab tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:text-[var(--tpl-text-dim)]",
57
57
  "aria-label": X.value,
58
- title: v(_).savedBlocks.reorderHint,
59
- onKeydown: [n[0] ||= T(w((e) => p("move", -1), ["prevent"]), ["up"]), n[1] ||= T(w((e) => p("move", 1), ["prevent"]), ["down"])]
60
- }, [d(v(E), {
58
+ title: d(_).savedBlocks.reorderHint,
59
+ onKeydown: [a[0] ||= T(w((e) => l("move", -1), ["prevent"]), ["up"]), a[1] ||= T(w((e) => l("move", 1), ["prevent"]), ["down"])]
60
+ }, [m(d(E), {
61
61
  size: 14,
62
62
  "stroke-width": 1.5
63
- })], 40, B), l("div", V, [
64
- l("div", {
63
+ })], 40, B), f("div", V, [
64
+ f("div", {
65
65
  ref_key: "frameEl",
66
- ref: k,
66
+ ref: O,
67
67
  class: "tpl:overflow-hidden",
68
- style: a({ height: q.value === null ? void 0 : `${q.value}px` })
69
- }, [l("div", {
68
+ style: t({ height: q.value === null ? void 0 : `${q.value}px` })
69
+ }, [f("div", {
70
70
  ref_key: "contentEl",
71
- ref: j,
72
- style: a({
73
- width: `${O.value}px`,
71
+ ref: k,
72
+ style: t({
73
+ width: `${D.value}px`,
74
74
  transform: `scale(${P.value})`,
75
75
  transformOrigin: "top left"
76
76
  })
77
- }, [d(R, { blocks: [e.block] }, null, 8, ["blocks"])], 4)], 4),
78
- K.value && !L.value ? (m(), u("div", H)) : b("", !0),
79
- K.value ? (m(), u("button", {
77
+ }, [m(R, { blocks: [n.block] }, null, 8, ["blocks"])], 4)], 4),
78
+ K.value && !L.value ? (e(), p("div", H)) : x("", !0),
79
+ K.value ? (e(), p("button", {
80
80
  key: 1,
81
81
  type: "button",
82
82
  "data-testid": "saved-blocks-preview-toggle",
83
83
  class: "tpl:absolute tpl:bottom-1 tpl:right-1 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded tpl:border tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)]",
84
84
  "aria-label": Z.value,
85
85
  "aria-expanded": L.value,
86
- onClick: n[2] ||= (e) => L.value = !L.value
87
- }, [(m(), g(o(L.value ? v(N) : v(te)), {
86
+ onClick: a[2] ||= (e) => L.value = !L.value
87
+ }, [(e(), v(i(L.value ? d(N) : d(M)), {
88
88
  size: 11,
89
89
  "stroke-width": 2
90
- })), f(" " + h(L.value ? v(_).savedBlocks.collapse : v(_).savedBlocks.expand), 1)], 8, U)) : b("", !0)
90
+ })), h(" " + g(L.value ? d(_).savedBlocks.collapse : d(_).savedBlocks.expand), 1)], 8, U)) : x("", !0)
91
91
  ])], 8, z));
92
92
  }
93
93
  }), K = ["aria-busy"], q = {
@@ -114,7 +114,7 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
114
114
  }, de = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2" }, fe = ["disabled"], pe = ["disabled"], me = {
115
115
  key: 0,
116
116
  class: "tpl:flex tpl:items-center tpl:gap-1.5"
117
- }, he = { key: 1 }, Q = /* @__PURE__ */ x({
117
+ }, he = { key: 1 }, Q = /* @__PURE__ */ S({
118
118
  __name: "SaveBlockDialog",
119
119
  props: {
120
120
  visible: { type: Boolean },
@@ -122,10 +122,10 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
122
122
  },
123
123
  emits: ["close", "saved"],
124
124
  setup(t, { emit: r }) {
125
- let a = t, o = r, { t: x, format: w } = M(), T = k(A, "SaveBlockDialog"), E = k(j, "SaveBlockDialog"), te = s(ee, []), N = c(""), I = c(""), R = c(!1), z = c(null), B = c(""), V = c([]), H = y(() => {
125
+ let i = t, o = r, { t: S, format: w } = j(), T = k(A, "SaveBlockDialog"), E = k(O, "SaveBlockDialog"), M = c(te, []), N = u(""), I = u(""), R = u(!1), z = u(null), B = u(""), V = u([]), H = b(() => {
126
126
  let e = new Map(T.content.value.blocks.map((e) => [e.id, e]));
127
127
  return V.value.map((t) => e.get(t)).filter((e) => e !== void 0);
128
- }), U = y({
128
+ }), U = b({
129
129
  get: () => H.value,
130
130
  set: (e) => {
131
131
  V.value = e.map((e) => e.id);
@@ -136,20 +136,20 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
136
136
  if (r === -1 || i < 0 || i >= n.length) return;
137
137
  [n[r], n[i]] = [n[i], n[r]], V.value = n;
138
138
  let a = H.value[i];
139
- B.value = a ? w(x.savedBlocks.reorderAnnouncement, {
139
+ B.value = a ? w(S.savedBlocks.reorderAnnouncement, {
140
140
  block: Q(a),
141
141
  position: i + 1,
142
142
  total: n.length
143
143
  }) : "";
144
144
  }
145
145
  function Q(e) {
146
- return D(e, x, te);
146
+ return ee(e, S, M);
147
147
  }
148
- let ge = y(() => H.value.map(Q).join(", "));
149
- i(() => a.visible, (e) => {
150
- e && (N.value = "", I.value = "", z.value = null, B.value = "", V.value = [...a.pickedIds]);
148
+ let ge = b(() => H.value.map(Q).join(", "));
149
+ s(() => i.visible, (e) => {
150
+ e && (N.value = "", I.value = "", z.value = null, B.value = "", V.value = [...i.pickedIds]);
151
151
  }, { immediate: !0 });
152
- let _e = y(() => N.value.trim().length > 0 && H.value.length > 0 && !R.value);
152
+ let _e = b(() => N.value.trim().length > 0 && H.value.length > 0 && !R.value);
153
153
  async function ve() {
154
154
  if (!_e.value) return;
155
155
  let e = H.value;
@@ -170,12 +170,12 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
170
170
  function ye(e) {
171
171
  e.key === "Enter" && !e.shiftKey && (e.preventDefault(), ve()), e.key === "Escape" && $();
172
172
  }
173
- return (r, i) => (m(), g(L, {
173
+ return (r, i) => (e(), v(L, {
174
174
  visible: t.visible,
175
175
  onClose: $,
176
176
  onKeydown: ye
177
177
  }, {
178
- default: S(() => [l("div", {
178
+ default: n(() => [f("div", {
179
179
  role: "dialog",
180
180
  "aria-modal": "true",
181
181
  "aria-busy": R.value,
@@ -186,35 +186,35 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
186
186
  "box-shadow": "var(--tpl-shadow-xl)"
187
187
  }
188
188
  }, [
189
- l("h3", q, h(v(x).savedBlocks.saveAsBlock), 1),
190
- l("div", J, [l("label", Y, h(v(x).savedBlocks.name), 1), e(l("input", {
189
+ f("h3", q, g(d(S).savedBlocks.saveAsBlock), 1),
190
+ f("div", J, [f("label", Y, g(d(S).savedBlocks.name), 1), l(f("input", {
191
191
  "onUpdate:modelValue": i[0] ||= (e) => N.value = e,
192
192
  type: "text",
193
193
  "data-testid": "saved-blocks-name-input",
194
- placeholder: v(x).savedBlocks.namePlaceholder,
194
+ placeholder: d(S).savedBlocks.namePlaceholder,
195
195
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
196
196
  disabled: R.value
197
197
  }, null, 8, X), [[C, N.value]])]),
198
- l("div", Z, [
199
- l("label", ne, h(v(x).savedBlocks.category), 1),
200
- e(l("input", {
198
+ f("div", Z, [
199
+ f("label", ne, g(d(S).savedBlocks.category), 1),
200
+ l(f("input", {
201
201
  id: "tpl-save-block-category",
202
202
  "onUpdate:modelValue": i[1] ||= (e) => I.value = e,
203
203
  type: "text",
204
204
  "data-testid": "saved-blocks-category-input",
205
205
  list: "tpl-saved-block-categories",
206
- placeholder: v(x).savedBlocks.categoryPlaceholder,
206
+ placeholder: d(S).savedBlocks.categoryPlaceholder,
207
207
  class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-[var(--tpl-shadow-sm)] tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
208
208
  disabled: R.value
209
209
  }, null, 8, re), [[C, I.value]]),
210
- l("datalist", ie, [(m(!0), u(_, null, p(v(E).categories.value, (e) => (m(), u("option", {
211
- key: e,
212
- value: e
210
+ f("datalist", ie, [(e(!0), p(y, null, a(d(E).categories.value, (t) => (e(), p("option", {
211
+ key: t,
212
+ value: t
213
213
  }, null, 8, ae))), 128))])
214
214
  ]),
215
- l("p", oe, [f(h(v(w)(v(x).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), l("span", se, h(ge.value), 1)]),
216
- H.value.length > 1 ? (m(), u("p", ce, h(v(x).savedBlocks.reorderHint), 1)) : b("", !0),
217
- d(v(O), {
215
+ f("p", oe, [h(g(d(w)(d(S).savedBlocks.savingCount, { count: H.value.length })) + " ", 1), f("span", se, g(ge.value), 1)]),
216
+ H.value.length > 1 ? (e(), p("p", ce, g(d(S).savedBlocks.reorderHint), 1)) : x("", !0),
217
+ m(d(D), {
218
218
  modelValue: U.value,
219
219
  "onUpdate:modelValue": i[2] ||= (e) => U.value = e,
220
220
  "data-testid": "saved-blocks-reorder-list",
@@ -225,12 +225,12 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
225
225
  "force-fallback": !0,
226
226
  class: "tpl:mb-4 tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto"
227
227
  }, {
228
- default: S(() => [(m(!0), u(_, null, p(U.value, (e, t) => (m(), g(G, {
229
- key: e.id,
230
- block: e,
231
- position: t + 1,
228
+ default: n(() => [(e(!0), p(y, null, a(U.value, (t, n) => (e(), v(G, {
229
+ key: t.id,
230
+ block: t,
231
+ position: n + 1,
232
232
  total: U.value.length,
233
- onMove: (t) => W(e.id, t)
233
+ onMove: (e) => W(t.id, e)
234
234
  }, null, 8, [
235
235
  "block",
236
236
  "position",
@@ -239,23 +239,23 @@ var z = ["data-block-id"], B = ["aria-label", "title"], V = { class: "tpl:relati
239
239
  ]))), 128))]),
240
240
  _: 1
241
241
  }, 8, ["modelValue"]),
242
- l("div", le, h(B.value), 1),
243
- z.value ? (m(), u("p", ue, h(z.value), 1)) : b("", !0),
244
- l("div", de, [l("button", {
242
+ f("div", le, g(B.value), 1),
243
+ z.value ? (e(), p("p", ue, g(z.value), 1)) : x("", !0),
244
+ f("div", de, [f("button", {
245
245
  type: "button",
246
- class: n(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": R.value }]),
246
+ class: _(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-[var(--tpl-shadow-sm)] tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": R.value }]),
247
247
  disabled: R.value,
248
248
  onClick: $
249
- }, h(v(x).savedBlocks.cancel), 11, fe), l("button", {
249
+ }, g(d(S).savedBlocks.cancel), 11, fe), f("button", {
250
250
  type: "button",
251
- class: n(v(F)),
251
+ class: _(d(F)),
252
252
  disabled: !_e.value,
253
253
  onClick: ve
254
- }, [R.value ? (m(), u("span", me, [d(v(P), {
254
+ }, [R.value ? (e(), p("span", me, [m(d(P), {
255
255
  class: "tpl:animate-spin",
256
256
  size: 12,
257
257
  "stroke-width": 2
258
- }), f(" " + h(v(x).savedBlocks.saving), 1)])) : (m(), u("span", he, h(v(x).savedBlocks.save), 1))], 10, pe)])
258
+ }), h(" " + g(d(S).savedBlocks.saving), 1)])) : (e(), p("span", he, g(d(S).savedBlocks.save), 1))], 10, pe)])
259
259
  ], 8, K)]),
260
260
  _: 1
261
261
  }, 8, ["visible"]));