@templatical/editor 0.34.3 → 0.36.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 (290) hide show
  1. package/dist/{AiChatSidebar-CkHJ28sf.js → AiChatSidebar-tu4eLcf_.js} +78 -70
  2. package/dist/{AiFeatureMenu-DWdKguDN.js → AiFeatureMenu-BF0i0vA4.js} +17 -17
  3. package/dist/{BlockIssueBadge-DcyHTAqw.js → BlockIssueBadge-DT-FqKeC.js} +9 -9
  4. package/dist/BlockPreviewCanvas-DDCmMram.js +131 -0
  5. package/dist/CloudHeaderExtras-NPhudovT.js +59 -0
  6. package/dist/{CloudPanels-BGz9ygo6.js → CloudPanels-Iwnky0iA.js} +78 -108
  7. package/dist/CollaboratorBar-DAITu0hz.js +103 -0
  8. package/dist/{ColorPicker-C6EOwtHC.js → ColorPicker-BqlZ_TqG.js} +193 -193
  9. package/dist/{CommentsPanel-DmWh8f08.js → CommentsPanel-CDvgmWP1.js} +3 -3
  10. package/dist/{CommentsSidebar-CL_tffzT.js → CommentsSidebar-X_xqM3dR.js} +182 -173
  11. package/dist/{CountdownBlock-D1fsNsyS.js → CountdownBlock-ZFJIdbP6.js} +12 -12
  12. package/dist/{CountdownToolbar-B8J4i5Xp.js → CountdownToolbar-DBFoG3a6.js} +67 -67
  13. package/dist/{DesignReferenceSidebar-BDhEeaAh.js → DesignReferenceSidebar--QtXjLrw.js} +103 -95
  14. package/dist/{FieldRow-BWt7ECqo.js → FieldRow-C8nOknr_.js} +39 -39
  15. package/dist/IssuesPanel-BLbNFMSX.js +117 -0
  16. package/dist/{LoadingTrack-SQXoZVf2.js → LoadingTrack-BlTL4zFv.js} +2 -2
  17. package/dist/MediaPanels-CMTAhDXB.js +43 -0
  18. package/dist/{MergeTagInput-RytOlh1A.js → MergeTagInput-BEjzj4Iu.js} +153 -144
  19. package/dist/{MergeTagModeToggle-Bi-FydXj.js → MergeTagModeToggle-DKN6ihI5.js} +108 -96
  20. package/dist/{MergeTagSuggestion-CoCuzEmW.js → MergeTagSuggestion-DKoLEeoj.js} +21 -21
  21. package/dist/ParagraphEditor-1E9yzOfk.js +782 -0
  22. package/dist/{RestoreVersionDialog-Db5rZRMA.js → RestoreVersionDialog-BMGUkcd8.js} +28 -28
  23. package/dist/RichTextEditorContent-BnxbQUV9.js +154 -0
  24. package/dist/{SaveBlockDialog-CDCzx6Bo.js → SaveBlockDialog-WKASpCCT.js} +78 -78
  25. package/dist/SavedBlocksBrowserModal-AYEXTMtQ.js +323 -0
  26. package/dist/{SavedBlocksPanels-DFzV0CRD.js → SavedBlocksPanels-D_CpacTl.js} +6 -6
  27. package/dist/{SavedBlocksPickBar-XyXmnSnO.js → SavedBlocksPickBar-BHMwg-1G.js} +11 -11
  28. package/dist/TemplateScoringPanel-CSin43YM.js +267 -0
  29. package/dist/{TestEmailModal-DIfJy9eE.js → TestEmailModal-BxizsRCd.js} +59 -59
  30. package/dist/{TestEmailPanel-C8Wx5yPS.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-CV90OhXs.js → VersionHistoryMenu-eGYVhM4H.js} +48 -46
  34. package/dist/{VersionHistoryPanels-BE3pplJG.js → VersionHistoryPanels-C7Ntrrfq.js} +4 -4
  35. package/dist/{VersionPreviewBanner-BwUWBtlH.js → VersionPreviewBanner-BbQXnR0M.js} +9 -9
  36. package/dist/blockTypeIcons-5qD4bB76.js +163 -0
  37. package/dist/bundle-stats.json +8 -8
  38. package/dist/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +2 -0
  39. package/dist/ca-Jx2CDwtn.js +83 -0
  40. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js → AiChatSidebar-dyqqHAcI.js} +4 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-BEnIWn6s.js.map → AiChatSidebar-dyqqHAcI.js.map} +1 -1
  42. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js → AiFeatureMenu-BjVMwhW8.js} +5 -5
  43. package/dist/cdn/chunks/{AiFeatureMenu-DMl23akc.js.map → AiFeatureMenu-BjVMwhW8.js.map} +1 -1
  44. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js → BlockIssueBadge-BJ__oEtm.js} +4 -4
  45. package/dist/cdn/chunks/{BlockIssueBadge-CloK4k3M.js.map → BlockIssueBadge-BJ__oEtm.js.map} +1 -1
  46. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js +133 -0
  47. package/dist/cdn/chunks/BlockPreviewCanvas-B5f26eLE.js.map +1 -0
  48. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js → CloudHeaderExtras-D5P5IEKA.js} +4 -4
  49. package/dist/cdn/chunks/{CloudHeaderExtras-b4KpVeUN.js.map → CloudHeaderExtras-D5P5IEKA.js.map} +1 -1
  50. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js → CloudPanels-DkmR05nB.js} +15 -45
  51. package/dist/cdn/chunks/{CloudPanels-DzwOq9lp.js.map → CloudPanels-DkmR05nB.js.map} +1 -1
  52. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js → CollaboratorBar-Yn7KSpt4.js} +4 -4
  53. package/dist/cdn/chunks/{CollaboratorBar-WXKvpoGK.js.map → CollaboratorBar-Yn7KSpt4.js.map} +1 -1
  54. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js → ColorPicker-LcrzgMoW.js} +7 -7
  55. package/dist/cdn/chunks/{ColorPicker-BubTDiS1.js.map → ColorPicker-LcrzgMoW.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js → CommentsPanel-CntwwocI.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-DAA2VqX4.js.map → CommentsPanel-CntwwocI.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js → CommentsSidebar-BLDKnKy7.js} +4 -4
  59. package/dist/cdn/chunks/{CommentsSidebar-Ci0M2ePp.js.map → CommentsSidebar-BLDKnKy7.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js → CountdownBlock-B4AfqJwb.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-rK055jpy.js.map → CountdownBlock-B4AfqJwb.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js → CountdownToolbar-CA1dpuOI.js} +3 -3
  63. package/dist/cdn/chunks/{CountdownToolbar-CzZq26Vp.js.map → CountdownToolbar-CA1dpuOI.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js → DesignReferenceSidebar-D1Y9Hswe.js} +5 -5
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-C_ehdX5C.js.map → DesignReferenceSidebar-D1Y9Hswe.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js → IssuesPanel-Q62LTqvd.js} +5 -5
  67. package/dist/cdn/chunks/{IssuesPanel-BXAN2_al.js.map → IssuesPanel-Q62LTqvd.js.map} +1 -1
  68. package/dist/cdn/chunks/MediaPanels-D21M6shx.js +45 -0
  69. package/dist/cdn/chunks/MediaPanels-D21M6shx.js.map +1 -0
  70. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js → MergeTagInput-l7paaAml.js} +8 -8
  71. package/dist/cdn/chunks/{MergeTagInput-1vcI9uQH.js.map → MergeTagInput-l7paaAml.js.map} +1 -1
  72. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js → MergeTagModeToggle-DYxkAGtA.js} +5 -5
  73. package/dist/cdn/chunks/{MergeTagModeToggle-B_mUYJo4.js.map → MergeTagModeToggle-DYxkAGtA.js.map} +1 -1
  74. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js → ParagraphEditor-Bd-GQXee.js} +176 -172
  75. package/dist/cdn/chunks/{ParagraphEditor-DCDHMcmx.js.map → ParagraphEditor-Bd-GQXee.js.map} +1 -1
  76. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js → RestoreVersionDialog-2X9RpM9A.js} +4 -4
  77. package/dist/cdn/chunks/{RestoreVersionDialog-BkSSwf-Q.js.map → RestoreVersionDialog-2X9RpM9A.js.map} +1 -1
  78. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js → RichTextEditorContent-D_rb0rmU.js} +8 -8
  79. package/dist/cdn/chunks/{RichTextEditorContent-S4KogjIj.js.map → RichTextEditorContent-D_rb0rmU.js.map} +1 -1
  80. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js → SaveBlockDialog-CufdTomT.js} +15 -15
  81. package/dist/cdn/chunks/{SaveBlockDialog-BH774Nt0.js.map → SaveBlockDialog-CufdTomT.js.map} +1 -1
  82. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js → SavedBlocksBrowserModal-CqpaNsk7.js} +8 -8
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CSUqw_dD.js.map → SavedBlocksBrowserModal-CqpaNsk7.js.map} +1 -1
  84. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js → SavedBlocksPanels-DpxYxddo.js} +2 -2
  85. package/dist/cdn/chunks/{SavedBlocksPanels-B6ApbCjG.js.map → SavedBlocksPanels-DpxYxddo.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js → SavedBlocksPickBar-Drpoav1B.js} +4 -4
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C9MXSRcR.js.map → SavedBlocksPickBar-Drpoav1B.js.map} +1 -1
  88. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js → TemplateScoringPanel-DBjUNULq.js} +5 -5
  89. package/dist/cdn/chunks/{TemplateScoringPanel-QVOxc9TZ.js.map → TemplateScoringPanel-DBjUNULq.js.map} +1 -1
  90. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js → TestEmailModal-BTNlSW6f.js} +11 -11
  91. package/dist/cdn/chunks/{TestEmailModal-_CZvaO58.js.map → TestEmailModal-BTNlSW6f.js.map} +1 -1
  92. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js → TestEmailPanel-D0A9Zgxr.js} +2 -2
  93. package/dist/cdn/chunks/{TestEmailPanel-DXLxvyrD.js.map → TestEmailPanel-D0A9Zgxr.js.map} +1 -1
  94. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js → TitleEditor-CrnuIq62.js} +9 -9
  95. package/dist/cdn/chunks/{TitleEditor-BuCOahW3.js.map → TitleEditor-CrnuIq62.js.map} +1 -1
  96. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js → TplModal-DYXrTz42.js} +5 -5
  97. package/dist/cdn/chunks/{TplModal-CqY8R3hn.js.map → TplModal-DYXrTz42.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-DDjIBvad.js → VersionHistoryMenu-bDGnE4hb.js} +6 -6
  99. package/dist/cdn/chunks/VersionHistoryMenu-bDGnE4hb.js.map +1 -0
  100. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js → VersionHistoryPanels-82P0Q0HM.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-BuTw04T5.js.map → VersionHistoryPanels-82P0Q0HM.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js → VersionPreviewBanner-BJiwKkVC.js} +3 -3
  103. package/dist/cdn/chunks/{VersionPreviewBanner-fGAv20qI.js.map → VersionPreviewBanner-BJiwKkVC.js.map} +1 -1
  104. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js → blockTypeIcons-CNjJSFun.js} +2 -2
  105. package/dist/cdn/chunks/{blockTypeIcons-ZEzEpCti.js.map → blockTypeIcons-CNjJSFun.js.map} +1 -1
  106. package/dist/cdn/chunks/{ca-C0hfqt4U.js → ca-D9S-UCfZ.js} +3 -1
  107. package/dist/cdn/chunks/{ca-C0hfqt4U.js.map → ca-D9S-UCfZ.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-CNRWAMHI.js → ca-Jx2CDwtn.js} +2 -6
  109. package/dist/cdn/chunks/ca-Jx2CDwtn.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-BP5-6__d.js → cloud-BLgCKP7Z.js} +453 -228
  111. package/dist/cdn/chunks/cloud-BLgCKP7Z.js.map +1 -0
  112. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js +385 -0
  113. package/dist/cdn/chunks/createCloudRuntime-U-qCH-dq.js.map +1 -0
  114. package/dist/{de-C6J2Iae8.js → cdn/chunks/de-BUPszLpi.js} +4 -0
  115. package/dist/cdn/chunks/{de-C6J2Iae8.js.map → de-BUPszLpi.js.map} +1 -1
  116. package/dist/cdn/chunks/{de-DFYCT4QU.js → de-Ck0pBGHu.js} +2 -6
  117. package/dist/cdn/chunks/de-Ck0pBGHu.js.map +1 -0
  118. package/dist/cdn/chunks/{src-Cxl-9O-L.js → editor-modal-MXgtarMl.js} +1473 -1934
  119. package/dist/cdn/chunks/editor-modal-MXgtarMl.js.map +1 -0
  120. package/dist/cdn/chunks/{en-BaUYOQi8.js → en-BbOC5x3w.js} +3 -1
  121. package/dist/cdn/chunks/en-BbOC5x3w.js.map +1 -0
  122. package/dist/cdn/chunks/en-C9U7N77n.js +2 -0
  123. package/dist/cdn/chunks/{es-CKDYfJYn.js → es-0bCDcT9p.js} +3 -1
  124. package/dist/cdn/chunks/{es-CKDYfJYn.js.map → es-0bCDcT9p.js.map} +1 -1
  125. package/dist/cdn/chunks/{es-OgkdMZGX.js → es-lagTvUfX.js} +2 -6
  126. package/dist/cdn/chunks/es-lagTvUfX.js.map +1 -0
  127. package/dist/cdn/chunks/{extensions-7z04EIGg.js → extensions-B8_jnIkD.js} +4 -4
  128. package/dist/cdn/chunks/{extensions-7z04EIGg.js.map → extensions-B8_jnIkD.js.map} +1 -1
  129. package/dist/{fr-L8DR73mK.js → cdn/chunks/fr-Brr8mJ9e.js} +4 -0
  130. package/dist/cdn/chunks/fr-Brr8mJ9e.js.map +1 -0
  131. package/dist/cdn/chunks/{fr-Dswns199.js → fr-C4hVl5Lk.js} +2 -6
  132. package/dist/cdn/chunks/fr-C4hVl5Lk.js.map +1 -0
  133. package/dist/cdn/chunks/icons-BUlqGSgd.js +1675 -0
  134. package/dist/cdn/chunks/icons-BUlqGSgd.js.map +1 -0
  135. package/dist/cdn/chunks/{keys-DQp8x7Nx.js → keys-DBFhDFng.js} +4 -4
  136. package/dist/cdn/chunks/{keys-DQp8x7Nx.js.map → keys-DBFhDFng.js.map} +1 -1
  137. package/dist/cdn/chunks/{nl-CbcPJlrL.js → nl-CReD7Apd.js} +2 -6
  138. package/dist/cdn/chunks/nl-CReD7Apd.js.map +1 -0
  139. package/dist/{nl-GDWeuX18.js → cdn/chunks/nl-Co3_RL0M.js} +4 -0
  140. package/dist/cdn/chunks/nl-Co3_RL0M.js.map +1 -0
  141. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js → preRenderCustomBlocks-Bdpiiw4A.js} +2 -2
  142. package/dist/cdn/chunks/{preRenderCustomBlocks-LFB-e-0m.js.map → preRenderCustomBlocks-Bdpiiw4A.js.map} +1 -1
  143. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +3 -1
  144. package/dist/cdn/chunks/{pt-BR-B1AVVhWj.js.map → pt-BR-BECez5b0.js.map} +1 -1
  145. package/dist/cdn/chunks/{pt-BR-BibOQm-o.js → pt-BR-BRA0-vGP.js} +2 -6
  146. package/dist/cdn/chunks/pt-BR-BRA0-vGP.js.map +1 -0
  147. package/dist/cdn/chunks/{src-BM3f9I7t.js → src-CUvZWL6Y.js} +83 -83
  148. package/dist/cdn/chunks/src-CUvZWL6Y.js.map +1 -0
  149. package/dist/cdn/chunks/{src-BDvZrpFH.js → src-DZ0C9mH7.js} +161 -160
  150. package/dist/cdn/chunks/src-DZ0C9mH7.js.map +1 -0
  151. package/dist/cdn/chunks/{src-CLoCCDfs.js → src-Dwgq7hf4.js} +71 -48
  152. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +1 -0
  153. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js → useCloudI18n-DSWSGj-A.js} +2 -2
  154. package/dist/cdn/chunks/{useCloudI18n-MxgHWrV6.js.map → useCloudI18n-DSWSGj-A.js.map} +1 -1
  155. package/dist/cdn/chunks/{useEditorCore-ehUSEsbw.js → useEditorCore-Cs7rYVBo.js} +614 -522
  156. package/dist/cdn/chunks/useEditorCore-Cs7rYVBo.js.map +1 -0
  157. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js → useEditorRoot-B0zW2nT4.js} +2 -2
  158. package/dist/cdn/chunks/{useEditorRoot-CteADR3y.js.map → useEditorRoot-B0zW2nT4.js.map} +1 -1
  159. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js → useI18n-Dlo7R9RA.js} +2 -2
  160. package/dist/cdn/chunks/{useI18n-Ct1VIFcf.js.map → useI18n-Dlo7R9RA.js.map} +1 -1
  161. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js → useMergeTag-BYAifvh8.js} +4 -4
  162. package/dist/cdn/chunks/{useMergeTag-TLhF2fGK.js.map → useMergeTag-BYAifvh8.js.map} +1 -1
  163. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js → usePopoverPosition-ElP3ABaV.js} +2 -2
  164. package/dist/cdn/chunks/{usePopoverPosition-BxVWE5_0.js.map → usePopoverPosition-ElP3ABaV.js.map} +1 -1
  165. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js → useScrollToBlock-nTbWkgaU.js} +2 -2
  166. package/dist/cdn/chunks/{useScrollToBlock-Cz3fpgTK.js.map → useScrollToBlock-nTbWkgaU.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +1195 -1095
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/check-DWtkBzBU.js +11 -0
  171. package/dist/chevron-down-C-Fjxcqj.js +11 -0
  172. package/dist/chevron-right-SOkn2d4P.js +11 -0
  173. package/dist/chevron-up-lntU1ypp.js +11 -0
  174. package/dist/circle-alert-CjzUTwy3.js +30 -0
  175. package/dist/clock-pB2QKPsJ.js +16 -0
  176. package/dist/{cloud-BMzRKCbk.js → cloud-DdidMW6f.js} +446 -201
  177. package/dist/copy-CId1E038.js +19 -0
  178. package/dist/createCloudRuntime-x5WZm3p8.js +383 -0
  179. package/dist/createLucideIcon-Cwf_nTzE.js +96 -0
  180. package/dist/{cdn/chunks/de-C6J2Iae8.js → de-BUPszLpi.js} +2 -2
  181. package/dist/de-Ck0pBGHu.js +83 -0
  182. package/dist/{dist-BxFbxpgW.js → dist-BVqAYoRB.js} +125 -125
  183. package/dist/dist-D8i1ixHK.js +177 -0
  184. package/dist/dist-DBirAJIs.js +410 -0
  185. package/dist/{dist-PL6vP4SC.js → dist-tGkjkX-v.js} +143 -122
  186. package/dist/editor-modal-B_LaQf0s.js +5998 -0
  187. package/dist/{en-BaUYOQi8.js → en-BbOC5x3w.js} +2 -0
  188. package/dist/en-DcmpWV53.js +2 -0
  189. package/dist/{es-CKDYfJYn.js → es-0bCDcT9p.js} +2 -0
  190. package/dist/es-lagTvUfX.js +83 -0
  191. package/dist/{extensions-Mf8iHey9.js → extensions-CHOBZRab.js} +43 -43
  192. package/dist/eye-BuGtFUoJ.js +16 -0
  193. package/dist/{cdn/chunks/fr-L8DR73mK.js → fr-Brr8mJ9e.js} +2 -2
  194. package/dist/fr-C4hVl5Lk.js +83 -0
  195. package/dist/image-up-gH4JEpU5.js +27 -0
  196. package/dist/index.d.ts +77 -11
  197. package/dist/info-BQ60P82u.js +23 -0
  198. package/dist/{keys-C3P1yxnr.js → keys-DQA2i1k1.js} +4 -4
  199. package/dist/link-3R8it3J7.js +14 -0
  200. package/dist/list-Ccdgj46T.js +33 -0
  201. package/dist/loader-circle-B_tAD4k6.js +12 -0
  202. package/dist/message-circle-P-KSc6V0.js +11 -0
  203. package/dist/nl-CReD7Apd.js +83 -0
  204. package/dist/{cdn/chunks/nl-GDWeuX18.js → nl-Co3_RL0M.js} +2 -2
  205. package/dist/pencil-9ZiwqS4r.js +14 -0
  206. package/dist/plus-BwJEzCaO.js +14 -0
  207. package/dist/{preRenderCustomBlocks-CSIF-HyJ.js → preRenderCustomBlocks-DFXH54Zr.js} +1 -1
  208. package/dist/{pt-BR-B1AVVhWj.js → pt-BR-BECez5b0.js} +2 -0
  209. package/dist/pt-BR-BRA0-vGP.js +83 -0
  210. package/dist/refresh-cw-DEgfb2FK.js +25 -0
  211. package/dist/{runtime-dom.esm-bundler-BuG03jBM.js → runtime-dom.esm-bundler-PnoZU512.js} +106 -106
  212. package/dist/search-DqQ8Li5E.js +16 -0
  213. package/dist/send-CE6uvqop.js +14 -0
  214. package/dist/shield-check-DhD1Z3rd.js +14 -0
  215. package/dist/sparkles-R0ZQHa6F.js +28 -0
  216. package/dist/style.css +1 -1
  217. package/dist/templatical-editor.js +2742 -2590
  218. package/dist/text-align-start-DSux2UNn.js +58 -0
  219. package/dist/trash-Cf_SqsER.js +30 -0
  220. package/dist/triangle-alert-C6tGa6jw.js +22 -0
  221. package/dist/upload-DusKjpVr.js +21 -0
  222. package/dist/{useAliveFlag-PVmp95MT.js → useAliveFlag-oyByIcjy.js} +1 -1
  223. package/dist/{useCloudI18n-BKoiYsWZ.js → useCloudI18n-BLyh_e2T.js} +2 -2
  224. package/dist/{useEditorCore-DdkQuTHl.js → useEditorCore-DhlKOYwe.js} +1780 -1651
  225. package/dist/{useEditorRoot-DkRGTQRs.js → useEditorRoot-ds57-l6F.js} +2 -2
  226. package/dist/{useI18n-CL6RfPzK.js → useI18n-BbdxxpOE.js} +2 -2
  227. package/dist/{useMergeTag-gSuYus-M.js → useMergeTag-DlvOBW_B.js} +4 -4
  228. package/dist/{usePopoverPosition-CWxaIWd3.js → usePopoverPosition-CprM5p-c.js} +2 -2
  229. package/dist/useScrollToBlock-BTFw0b9O.js +48 -0
  230. package/dist/{vue.runtime.esm-bundler-D9JUcKrV.js → vue.runtime.esm-bundler-DShF3P6k.js} +1192 -1181
  231. package/dist/x-D_-42Ukq.js +14 -0
  232. package/package.json +9 -12
  233. package/dist/BlockPreviewCanvas-B621ANn9.js +0 -129
  234. package/dist/CloudHeaderExtras-BJ3Cebhv.js +0 -59
  235. package/dist/CollaboratorBar-KphmSQeZ.js +0 -95
  236. package/dist/IssuesPanel-CiOjeRFI.js +0 -109
  237. package/dist/ParagraphEditor-C87tkmtE.js +0 -767
  238. package/dist/RichTextEditorContent-BmTcV2-a.js +0 -152
  239. package/dist/SavedBlocksBrowserModal-DQR6kJB1.js +0 -322
  240. package/dist/TemplateScoringPanel-CpyEKMzC.js +0 -257
  241. package/dist/TitleEditor-iNFOisr4.js +0 -198
  242. package/dist/TplModal-CowM3o_F.js +0 -51
  243. package/dist/blockTypeIcons-DQsKtHik.js +0 -134
  244. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js +0 -131
  245. package/dist/cdn/chunks/BlockPreviewCanvas-DSiJFJa0.js.map +0 -1
  246. package/dist/cdn/chunks/VersionHistoryMenu-DDjIBvad.js.map +0 -1
  247. package/dist/cdn/chunks/ca-CNRWAMHI.js.map +0 -1
  248. package/dist/cdn/chunks/cloud-BP5-6__d.js.map +0 -1
  249. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js +0 -443
  250. package/dist/cdn/chunks/createCloudRuntime-JFE-sxbT.js.map +0 -1
  251. package/dist/cdn/chunks/de-DFYCT4QU.js.map +0 -1
  252. package/dist/cdn/chunks/en-BaUYOQi8.js.map +0 -1
  253. package/dist/cdn/chunks/en-mEKGL1PX.js +0 -2
  254. package/dist/cdn/chunks/es-OgkdMZGX.js.map +0 -1
  255. package/dist/cdn/chunks/fr-Dswns199.js.map +0 -1
  256. package/dist/cdn/chunks/fr-L8DR73mK.js.map +0 -1
  257. package/dist/cdn/chunks/icons-SP5Itd-A.js +0 -1218
  258. package/dist/cdn/chunks/icons-SP5Itd-A.js.map +0 -1
  259. package/dist/cdn/chunks/nl-CbcPJlrL.js.map +0 -1
  260. package/dist/cdn/chunks/nl-GDWeuX18.js.map +0 -1
  261. package/dist/cdn/chunks/pt-BR-BibOQm-o.js.map +0 -1
  262. package/dist/cdn/chunks/src-BDvZrpFH.js.map +0 -1
  263. package/dist/cdn/chunks/src-BM3f9I7t.js.map +0 -1
  264. package/dist/cdn/chunks/src-CLoCCDfs.js.map +0 -1
  265. package/dist/cdn/chunks/src-Cxl-9O-L.js.map +0 -1
  266. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +0 -1
  267. package/dist/check-JK8Uacq0.js +0 -7
  268. package/dist/chevron-down-a-fb_Ijn.js +0 -7
  269. package/dist/chevron-up-x4l0et_Y.js +0 -7
  270. package/dist/circle-alert-CJDW5LZo.js +0 -25
  271. package/dist/clock-BW6rXk2f.js +0 -12
  272. package/dist/createCloudRuntime-DbTFm1ES.js +0 -441
  273. package/dist/createLucideIcon-Bvw1Zx56.js +0 -43
  274. package/dist/dist-dNiknO7j.js +0 -251
  275. package/dist/dist-heatwAdo.js +0 -150
  276. package/dist/image-up-CuzFc1mu.js +0 -23
  277. package/dist/info-DybAwcA3.js +0 -19
  278. package/dist/loader-circle-t-SVgmJ3.js +0 -7
  279. package/dist/message-circle-DtwKrlhN.js +0 -7
  280. package/dist/pencil-2qhC-Y4q.js +0 -10
  281. package/dist/refresh-cw-C8SBuPdg.js +0 -29
  282. package/dist/send-BoqJliF6.js +0 -10
  283. package/dist/shield-check-D0dMaHtE.js +0 -10
  284. package/dist/sparkles-Dy2BJjiX.js +0 -23
  285. package/dist/text-align-start-DrxjxvIy.js +0 -43
  286. package/dist/trash-rYMzzHZd.js +0 -25
  287. package/dist/triangle-alert-DxnFj4-B.js +0 -17
  288. package/dist/upload-DZu1adQz.js +0 -17
  289. package/dist/useScrollToBlock-CdI8fGqt.js +0 -44
  290. package/dist/x-DJOd1hS4.js +0 -10
@@ -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-t-SVgmJ3.js";
4
- import { t as m } from "./triangle-alert-DxnFj4-B.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-CowM3o_F.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
@@ -0,0 +1,154 @@
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
+ var D = C({
11
+ name: "bold",
12
+ size: 24,
13
+ node: [["path", {
14
+ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
15
+ key: "mg9rjx"
16
+ }]]
17
+ }), O = C({
18
+ name: "italic",
19
+ size: 24,
20
+ node: [
21
+ ["line", {
22
+ x1: "19",
23
+ x2: "10",
24
+ y1: "4",
25
+ y2: "4",
26
+ key: "15jd3p"
27
+ }],
28
+ ["line", {
29
+ x1: "14",
30
+ x2: "5",
31
+ y1: "20",
32
+ y2: "20",
33
+ key: "bu0au3"
34
+ }],
35
+ ["line", {
36
+ x1: "15",
37
+ x2: "9",
38
+ y1: "4",
39
+ y2: "20",
40
+ key: "uljnxc"
41
+ }]
42
+ ]
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 = {
44
+ id: "tpl-link-dialog-title",
45
+ class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
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({
47
+ __name: "RichTextLinkDialog",
48
+ props: /*@__PURE__*/ g({
49
+ visible: { type: Boolean },
50
+ isEditingLink: { type: Boolean }
51
+ }, {
52
+ linkUrl: { required: !0 },
53
+ linkUrlModifiers: {},
54
+ linkColor: { default: "" },
55
+ linkColorModifiers: {},
56
+ dialogRef: { required: !0 },
57
+ dialogRefModifiers: {}
58
+ }),
59
+ emits: /*@__PURE__*/ g([
60
+ "close",
61
+ "insert",
62
+ "remove",
63
+ "keydown"
64
+ ], [
65
+ "update:linkUrl",
66
+ "update:linkColor",
67
+ "update:dialogRef"
68
+ ]),
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, {
72
+ key: 0,
73
+ to: a(V)
74
+ }, [n.visible ? (e(), s("div", {
75
+ key: 0,
76
+ "data-tpl-theme": a(B),
77
+ class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center",
78
+ style: t(a(O)),
79
+ onClick: i[7] ||= _((e) => D("close"), ["self"])
80
+ }, [o("div", {
81
+ ref: (e) => C.value = e,
82
+ role: "dialog",
83
+ "aria-modal": "true",
84
+ "aria-labelledby": "tpl-link-dialog-title",
85
+ "data-testid": "link-dialog",
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)]"
87
+ }, [
88
+ o("div", A, [o("h4", j, d(n.isEditingLink ? a(W).linkDialog.editLink : a(W).linkDialog.insertLink), 1), o("button", {
89
+ type: "button",
90
+ "aria-label": a(W).linkDialog.cancel,
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)]",
92
+ onClick: i[0] ||= (e) => D("close")
93
+ }, [c(a(T), {
94
+ size: 16,
95
+ "stroke-width": 2
96
+ })], 8, M)]),
97
+ o("div", N, [o("div", P, [o("label", F, d(a(W).linkDialog.urlLabel), 1), c(w, {
98
+ "model-value": h.value,
99
+ type: "url",
100
+ "data-testid": "link-dialog-url",
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, {
105
+ "model-value": g.value,
106
+ "seed-color": U.value,
107
+ "onUpdate:modelValue": i[3] ||= (e) => g.value = e
108
+ }, null, 8, ["model-value", "seed-color"])])]),
109
+ o("div", R, [n.isEditingLink ? (e(), s("button", {
110
+ key: 0,
111
+ type: "button",
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)]",
113
+ onClick: i[4] ||= (e) => D("remove")
114
+ }, d(a(W).linkDialog.removeLink), 1)) : m("", !0), o("div", z, [o("button", {
115
+ type: "button",
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)]",
117
+ onClick: i[5] ||= (e) => D("close")
118
+ }, d(a(W).linkDialog.cancel), 1), o("button", {
119
+ type: "button",
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)]",
121
+ "data-testid": "link-dialog-submit",
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);
125
+ }
126
+ }), V = {
127
+ key: 0,
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"
129
+ }, H = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, U = {
130
+ key: 1,
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)]"
132
+ }, W = /* @__PURE__ */ h({
133
+ __name: "RichTextEditorContent",
134
+ props: {
135
+ editor: {},
136
+ editorContent: {},
137
+ isLoading: { type: Boolean },
138
+ initError: {}
139
+ },
140
+ emits: ["retry"],
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", {
144
+ class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
145
+ onClick: u[0] ||= (e) => i("retry")
146
+ }, d(a(c).errors.retry), 1)])) : t.editorContent && t.editor ? (e(), f(n(t.editorContent), {
147
+ key: 2,
148
+ editor: t.editor,
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"
150
+ }, null, 8, ["editor"])) : m("", !0);
151
+ }
152
+ });
153
+ //#endregion
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-DdkQuTHl.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-a-fb_Ijn.js";
7
- import { t as N } from "./chevron-up-x4l0et_Y.js";
8
- import { t as P } from "./loader-circle-t-SVgmJ3.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-CowM3o_F.js";
12
- import { t as R } from "./BlockPreviewCanvas-B621ANn9.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"]));