@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
@@ -0,0 +1,323 @@
1
+ import { A as e, At as t, B as n, E as r, F as i, M as a, R as o, S as ee, V as s, Z as c, _ as te, at as l, c as u, d, g as f, jt as p, kt as m, l as h, r as g, s as _, u as v, v as y } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { a as b, c as x, i as S, s as C } from "./runtime-dom.esm-bundler-PnoZU512.js";
3
+ import "./useEditorCore-DhlKOYwe.js";
4
+ import { B as ne, K as re, Y as w, g as ie } from "./keys-DQA2i1k1.js";
5
+ import { t as ae } from "./useI18n-BbdxxpOE.js";
6
+ import { n as T, t as E } from "./blockTypeIcons-5qD4bB76.js";
7
+ import { t as oe } from "./pencil-9ZiwqS4r.js";
8
+ import { t as se } from "./search-DqQ8Li5E.js";
9
+ import { t as ce } from "./trash-Cf_SqsER.js";
10
+ import { t as le } from "./x-D_-42Ukq.js";
11
+ import { v as ue } from "./styleConstants-C_YAPdQS.js";
12
+ import { t as de } from "./formatAbsoluteDateTime-DMmop3C-.js";
13
+ import { t as fe } from "./formatRelativeTime-CtUU-QZ8.js";
14
+ import { t as pe } from "./TplModal-Q9fDgS1M.js";
15
+ //#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
16
+ var me = {
17
+ role: "dialog",
18
+ "aria-modal": "true",
19
+ "data-testid": "saved-blocks-browser",
20
+ "aria-labelledby": "tpl-saved-blocks-browser-title",
21
+ class: "tpl-scale-in tpl:flex tpl:max-h-[90%] tpl:w-[1000px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
22
+ style: {
23
+ "background-color": "var(--tpl-bg-elevated)",
24
+ "box-shadow": "var(--tpl-shadow-xl)"
25
+ }
26
+ }, he = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, ge = {
27
+ id: "tpl-saved-blocks-browser-title",
28
+ class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
29
+ }, _e = ["aria-label"], ve = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, ye = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, be = { class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:px-4 tpl:pt-4 tpl:pb-3" }, xe = { class: "tpl:relative" }, Se = ["placeholder", "disabled"], Ce = ["aria-label"], we = { value: "" }, Te = ["value"], D = { id: "tpl-saved-block-browser-categories" }, O = ["value"], Ee = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, De = ["aria-label"], Oe = {
30
+ key: 1,
31
+ class: "tpl:flex tpl:flex-col tpl:gap-1"
32
+ }, ke = ["onFocusout"], Ae = ["aria-label", "onKeydown"], je = [
33
+ "aria-label",
34
+ "placeholder",
35
+ "onKeydown"
36
+ ], Me = ["aria-pressed", "onClick"], Ne = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pe = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fe = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, Ie = {
37
+ key: 0,
38
+ class: "tpl:mt-1 tpl:flex tpl:items-center"
39
+ }, Le = {
40
+ "data-testid": "saved-block-category",
41
+ class: "tpl:max-w-full tpl:truncate tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]"
42
+ }, Re = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, ze = {
43
+ key: 0,
44
+ class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
45
+ }, Be = ["title"], Ve = ["aria-label", "onClick"], He = [
46
+ "aria-label",
47
+ "title",
48
+ "onClick"
49
+ ], Ue = [
50
+ "aria-label",
51
+ "title",
52
+ "onClick"
53
+ ], We = {
54
+ key: 2,
55
+ class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
56
+ }, Ge = {
57
+ key: 0,
58
+ class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
59
+ }, Ke = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, qe = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Je = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Ye = {
60
+ key: 0,
61
+ class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
62
+ }, Xe = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Ze = {
63
+ key: 1,
64
+ class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
65
+ }, Qe = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, $e = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, et = { class: "tpl:flex tpl:items-center tpl:gap-2" }, tt = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, nt = ["value"], rt = { class: "tpl:flex tpl:gap-2" }, it = ["disabled"], k = /* @__PURE__ */ y({
66
+ __name: "SavedBlocksBrowserModal",
67
+ props: { visible: { type: Boolean } },
68
+ emits: ["close", "insert"],
69
+ setup(y, { emit: k }) {
70
+ let at = y, A = k, ot = te(() => import("./BlockPreviewCanvas-DDCmMram.js").then((e) => e.n)), { t: j, format: M } = ae(), N = w(ne, "SavedBlocksBrowserModal"), P = w(ie, "SavedBlocksBrowserModal"), st = ee(re, void 0), F = c(""), I = c(""), L = c(null), R = c(null), z = c(null), B = c(""), V = c(""), H = c(null), U = c("end"), W = _(() => {
71
+ let e = F.value.trim().toLowerCase(), t = I.value;
72
+ return N.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
73
+ }), G = _(() => N.isLoading.value && N.savedBlocks.value.length === 0), ct = _(() => F.value.trim().length > 0 || I.value !== ""), K = _(() => L.value ? N.savedBlocks.value.find((e) => e.id === L.value) ?? null : null), lt = _(() => {
74
+ let e = [{
75
+ value: "beginning",
76
+ label: j.savedBlocks.insertAtBeginning
77
+ }], t = P.content.value.blocks;
78
+ for (let n = 0; n < t.length; n++) {
79
+ let r = t[n], i = r.type, a = j.blocks[i] ?? r.type;
80
+ e.push({
81
+ value: r.id,
82
+ label: M(j.savedBlocks.insertAfterBlock, { block: `${a} ${n + 1}` })
83
+ });
84
+ }
85
+ return e.push({
86
+ value: "end",
87
+ label: j.savedBlocks.insertAtEnd
88
+ }), e;
89
+ }), ut = _(() => {
90
+ if (U.value === "end") return;
91
+ if (U.value === "beginning") return 0;
92
+ let e = P.content.value.blocks.findIndex((e) => e.id === U.value);
93
+ if (e !== -1) return e + 1;
94
+ });
95
+ o(() => at.visible, (e) => {
96
+ if (e) {
97
+ F.value = "", I.value = "", L.value = null, R.value = null, z.value = null;
98
+ let e = P.state.selectedBlockId;
99
+ if (e) {
100
+ let t = P.content.value.blocks.findIndex((t) => t.id === e);
101
+ U.value = t === -1 ? "end" : e;
102
+ } else U.value = "end";
103
+ }
104
+ }, { immediate: !0 });
105
+ function dt(e) {
106
+ let t = [], n = /* @__PURE__ */ new Set();
107
+ for (let r of e.content) if (!n.has(r.type) && E[r.type] && (n.add(r.type), t.push({
108
+ type: r.type,
109
+ icon: E[r.type]
110
+ })), t.length >= 5) break;
111
+ return t;
112
+ }
113
+ function q(e) {
114
+ let t = new Set(e.content.map((e) => e.type));
115
+ return Math.max(0, t.size - 5);
116
+ }
117
+ function J(e) {
118
+ let t = e.updatedAt ?? e.createdAt;
119
+ return t ? fe(t, j.time, M) ?? "" : "";
120
+ }
121
+ function ft(e) {
122
+ let t = e.updatedAt ?? e.createdAt;
123
+ return t ? de(t, st) : "";
124
+ }
125
+ async function pt(e) {
126
+ try {
127
+ await N.remove(e), L.value === e && (L.value = null);
128
+ } finally {
129
+ R.value = null;
130
+ }
131
+ }
132
+ async function Y(e) {
133
+ N.canUpdateBlock(e) && (z.value = e.id, B.value = e.name, V.value = e.category ?? "", R.value = null, await r(), H.value?.focus(), H.value?.select());
134
+ }
135
+ function X() {
136
+ z.value = null, B.value = "", V.value = "";
137
+ }
138
+ async function Z(e) {
139
+ if (z.value !== e) return;
140
+ let t = B.value.trim(), n = V.value.trim(), r = N.savedBlocks.value.find((t) => t.id === e), i = {};
141
+ if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
142
+ X();
143
+ return;
144
+ }
145
+ try {
146
+ await N.update(e, i);
147
+ } finally {
148
+ X();
149
+ }
150
+ }
151
+ function mt(e, t) {
152
+ let n = e.currentTarget, r = e.relatedTarget;
153
+ r && n.contains(r) || Z(t);
154
+ }
155
+ function Q() {
156
+ K.value && A("insert", K.value, ut.value);
157
+ }
158
+ function $() {
159
+ A("close");
160
+ }
161
+ function ht(e) {
162
+ z.value || (e.key === "Escape" && $(), e.key === "Enter" && K.value && (e.preventDefault(), Q()));
163
+ }
164
+ return (r, o) => (e(), h(pe, {
165
+ visible: y.visible,
166
+ onClose: $,
167
+ onKeydown: ht
168
+ }, {
169
+ default: n(() => [u("div", me, [
170
+ u("div", he, [u("h3", ge, p(l(j).savedBlocks.browse), 1), u("button", {
171
+ "aria-label": l(j).savedBlocks.close,
172
+ class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
173
+ onClick: $
174
+ }, [f(l(le), {
175
+ size: 16,
176
+ "stroke-width": 2
177
+ })], 8, _e)]),
178
+ u("div", ve, [u("div", ye, [
179
+ u("div", be, [u("div", xe, [f(l(se), {
180
+ size: 14,
181
+ "stroke-width": 2,
182
+ class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
183
+ }), s(u("input", {
184
+ "onUpdate:modelValue": o[0] ||= (e) => F.value = e,
185
+ type: "text",
186
+ placeholder: l(j).savedBlocks.search,
187
+ disabled: G.value,
188
+ class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
189
+ }, null, 8, Se), [[b, F.value]])]), l(N).categories.value.length > 0 ? s((e(), d("select", {
190
+ key: 0,
191
+ "onUpdate:modelValue": o[1] ||= (e) => I.value = e,
192
+ "data-testid": "saved-blocks-category-filter",
193
+ "aria-label": l(j).savedBlocks.filterByCategory,
194
+ class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
195
+ }, [u("option", we, p(l(j).savedBlocks.allCategories), 1), (e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
196
+ key: t,
197
+ value: t
198
+ }, p(t), 9, Te))), 128))], 8, Ce)), [[S, I.value]]) : v("", !0)]),
199
+ u("datalist", D, [(e(!0), d(g, null, a(l(N).categories.value, (t) => (e(), d("option", {
200
+ key: t,
201
+ value: t
202
+ }, null, 8, O))), 128))]),
203
+ u("div", Ee, [G.value ? (e(), d("div", {
204
+ key: 0,
205
+ "data-testid": "saved-blocks-loading",
206
+ class: "tpl:flex tpl:flex-col tpl:gap-1",
207
+ role: "status",
208
+ "aria-busy": "true",
209
+ "aria-label": l(j).savedBlocks.loading
210
+ }, [(e(), d(g, null, a(3, (e) => u("div", {
211
+ key: e,
212
+ "aria-hidden": "true",
213
+ class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
214
+ }, [...o[7] ||= [u("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), u("div", { class: "tpl:mt-2 tpl:h-2.5 tpl:w-1/4 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1)]])), 64))], 8, De)) : W.value.length > 0 ? (e(), d("div", Oe, [(e(!0), d(g, null, a(W.value, (n) => (e(), d(g, { key: n.id }, [z.value === n.id ? (e(), d("div", {
215
+ key: 0,
216
+ class: "tpl:flex tpl:w-full tpl:flex-col tpl:gap-1 tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-primary)]",
217
+ style: { "background-color": "var(--tpl-primary-light)" },
218
+ onFocusout: (e) => mt(e, n.id)
219
+ }, [s(u("input", {
220
+ ref_for: !0,
221
+ ref: (e) => H.value = e,
222
+ "onUpdate:modelValue": o[2] ||= (e) => B.value = e,
223
+ type: "text",
224
+ "aria-label": l(j).savedBlocks.rename,
225
+ class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
226
+ onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[3] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
227
+ }, null, 40, Ae), [[b, B.value]]), s(u("input", {
228
+ "onUpdate:modelValue": o[4] ||= (e) => V.value = e,
229
+ type: "text",
230
+ "data-testid": "saved-blocks-edit-category",
231
+ "aria-label": l(j).savedBlocks.category,
232
+ placeholder: l(j).savedBlocks.categoryPlaceholder,
233
+ list: "tpl-saved-block-browser-categories",
234
+ class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
235
+ onKeydown: [C(x((e) => Z(n.id), ["prevent", "stop"]), ["enter"]), o[5] ||= C(x((e) => X(), ["prevent", "stop"]), ["esc"])]
236
+ }, null, 40, je), [[b, V.value]])], 40, ke)) : (e(), d("button", {
237
+ key: 1,
238
+ type: "button",
239
+ "data-testid": "saved-block-card",
240
+ "aria-pressed": L.value === n.id,
241
+ class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
242
+ style: t({
243
+ borderColor: L.value === n.id ? "var(--tpl-primary)" : "var(--tpl-border)",
244
+ backgroundColor: L.value === n.id ? "var(--tpl-primary-light)" : "transparent"
245
+ }),
246
+ onClick: (e) => L.value = n.id
247
+ }, [
248
+ u("div", Ne, [u("span", Pe, p(n.name), 1), u("span", Fe, p(l(M)(l(j).savedBlocks.blockCount, { count: n.content.length })), 1)]),
249
+ n.category ? (e(), d("div", Ie, [u("span", Le, p(n.category), 1)])) : v("", !0),
250
+ u("div", Re, [
251
+ (e(!0), d(g, null, a(dt(n), (t) => (e(), h(i(t.icon), {
252
+ key: t.type,
253
+ size: 14,
254
+ "stroke-width": 1.5,
255
+ class: "tpl:text-[var(--tpl-text-dim)]"
256
+ }))), 128)),
257
+ q(n) > 0 ? (e(), d("span", ze, " +" + p(q(n)), 1)) : v("", !0),
258
+ J(n) ? (e(), d("span", {
259
+ key: 1,
260
+ "data-testid": "saved-block-updated",
261
+ class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
262
+ title: ft(n)
263
+ }, p(J(n)), 9, Be)) : v("", !0),
264
+ R.value === n.id ? (e(), d("button", {
265
+ key: 2,
266
+ "aria-label": l(j).savedBlocks.deleteConfirm,
267
+ class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
268
+ style: { "background-color": "transparent" },
269
+ onClick: x((e) => pt(n.id), ["stop"])
270
+ }, p(l(j).savedBlocks.deleteConfirm), 9, Ve)) : (e(), d(g, { key: 3 }, [l(N).canUpdateBlock(n) ? (e(), d("button", {
271
+ key: 0,
272
+ class: "tpl-saved-block-rename-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]",
273
+ "aria-label": l(j).savedBlocks.rename,
274
+ title: l(j).savedBlocks.rename,
275
+ onClick: x((e) => Y(n), ["stop"])
276
+ }, [f(l(oe), {
277
+ size: 12,
278
+ "stroke-width": 1.5
279
+ })], 8, He)) : v("", !0), l(N).canDeleteBlock(n) ? (e(), d("button", {
280
+ key: 1,
281
+ class: m(["tpl-saved-block-delete-btn tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-dim)]", { "tpl:ml-auto": !l(N).canUpdateBlock(n) }]),
282
+ "aria-label": l(j).savedBlocks.delete,
283
+ title: l(j).savedBlocks.delete,
284
+ onClick: x((e) => R.value = n.id, ["stop"])
285
+ }, [f(l(ce), {
286
+ size: 12,
287
+ "stroke-width": 1.5
288
+ })], 10, Ue)) : v("", !0)], 64))
289
+ ])
290
+ ], 12, Me))], 64))), 128))])) : (e(), d("div", We, [f(l(T), {
291
+ size: 32,
292
+ "stroke-width": 1,
293
+ class: "tpl:text-[var(--tpl-text-dim)]"
294
+ }), ct.value ? (e(), d("p", Ge, p(l(j).savedBlocks.noResults), 1)) : (e(), d(g, { key: 1 }, [u("p", Ke, p(l(j).savedBlocks.empty), 1), u("p", qe, p(l(j).savedBlocks.emptyHint), 1)], 64))]))])
295
+ ]), u("div", Je, [K.value ? (e(), d("div", Ye, [u("div", Xe, [f(l(ot), { blocks: K.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", Ze, [f(l(T), {
296
+ size: 32,
297
+ "stroke-width": 1,
298
+ class: "tpl:text-[var(--tpl-text-dim)]"
299
+ }), u("p", Qe, p(l(j).savedBlocks.selectToPreview), 1)]))])]),
300
+ u("div", $e, [u("div", et, [u("label", tt, p(l(j).savedBlocks.insertPosition), 1), s(u("select", {
301
+ "onUpdate:modelValue": o[6] ||= (e) => U.value = e,
302
+ class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
303
+ }, [(e(!0), d(g, null, a(lt.value, (t) => (e(), d("option", {
304
+ key: t.value,
305
+ value: t.value
306
+ }, p(t.label), 9, nt))), 128))], 512), [[S, U.value]])]), u("div", rt, [u("button", {
307
+ type: "button",
308
+ "data-testid": "saved-blocks-browser-close",
309
+ 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)]",
310
+ onClick: $
311
+ }, p(l(j).savedBlocks.close), 1), u("button", {
312
+ type: "button",
313
+ class: m(l(ue)),
314
+ disabled: !K.value,
315
+ onClick: Q
316
+ }, p(l(j).savedBlocks.insert), 11, it)])])
317
+ ])]),
318
+ _: 1
319
+ }, 8, ["visible"]));
320
+ }
321
+ });
322
+ //#endregion
323
+ export { k as default };
@@ -1,29 +1,29 @@
1
- import { _ as e, d as t, k as n, l as r, r as i, rt as a, u as o, v as s } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
1
+ import { A as e, _ as t, at as n, d as r, l as i, r as a, u as o, v as s } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
2
  //#endregion
3
3
  //#region src/components/SavedBlocksPanels.vue
4
4
  var c = /* @__PURE__ */ s({
5
5
  __name: "SavedBlocksPanels",
6
6
  props: { feature: {} },
7
7
  setup(s) {
8
- let c = s, l = e(() => import("./SavedBlocksPickBar-XyXmnSnO.js")), u = e(() => import("./SaveBlockDialog-CDCzx6Bo.js")), d = e(() => import("./SavedBlocksBrowserModal-DQR6kJB1.js"));
8
+ let c = s, l = t(() => import("./SavedBlocksPickBar-BHMwg-1G.js")), u = t(() => import("./SaveBlockDialog-WKASpCCT.js")), d = t(() => import("./SavedBlocksBrowserModal-AYEXTMtQ.js"));
9
9
  function f(e, t) {
10
10
  c.feature.insert(e, t);
11
11
  }
12
- return (e, c) => (n(), t(i, null, [
13
- s.feature.isPicking.value ? (n(), r(a(l), {
12
+ return (t, c) => (e(), r(a, null, [
13
+ s.feature.isPicking.value ? (e(), i(n(l), {
14
14
  key: 0,
15
15
  count: s.feature.pickedCount.value,
16
16
  onConfirm: c[0] ||= (e) => s.feature.confirmPicking(),
17
17
  onCancel: c[1] ||= (e) => s.feature.cancelPicking()
18
18
  }, null, 8, ["count"])) : o("", !0),
19
- s.feature.isSaveDialogOpen.value ? (n(), r(a(u), {
19
+ s.feature.isSaveDialogOpen.value ? (e(), i(n(u), {
20
20
  key: 1,
21
21
  visible: s.feature.isSaveDialogOpen.value,
22
22
  "picked-ids": [...s.feature.pickedIds.value],
23
23
  onClose: c[2] ||= (e) => s.feature.closeSaveDialog(),
24
24
  onSaved: c[3] ||= (e) => s.feature.refresh()
25
25
  }, null, 8, ["visible", "picked-ids"])) : o("", !0),
26
- s.feature.isBrowserOpen.value ? (n(), r(a(d), {
26
+ s.feature.isBrowserOpen.value ? (e(), i(n(d), {
27
27
  key: 2,
28
28
  visible: s.feature.isBrowserOpen.value,
29
29
  onClose: c[4] ||= (e) => s.feature.closeBrowser(),
@@ -1,7 +1,7 @@
1
- import { c as e, d as t, g as n, h as r, k as i, kt as a, rt as o, v as s } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { L as c } from "./useEditorCore-DdkQuTHl.js";
3
- import { t as l } from "./useI18n-CL6RfPzK.js";
4
- import { t as u } from "./x-DJOd1hS4.js";
1
+ import { A as e, at as t, c as n, d as r, g as i, h as a, jt as o, v as s } from "./vue.runtime.esm-bundler-DShF3P6k.js";
2
+ import { I as c } from "./useEditorCore-DhlKOYwe.js";
3
+ import { t as l } from "./useI18n-BbdxxpOE.js";
4
+ import { t as u } from "./x-D_-42Ukq.js";
5
5
  //#region src/components/SavedBlocksPickBar.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = {
7
7
  "data-testid": "saved-blocks-pick-bar",
@@ -19,33 +19,33 @@ var d = {
19
19
  function C() {
20
20
  y.count > 0 && b("confirm");
21
21
  }
22
- return (l, v) => (i(), t("div", d, [e("div", {
22
+ return (l, v) => (e(), r("div", d, [n("div", {
23
23
  role: "toolbar",
24
- "aria-label": o(x).savedBlocks.pickToolbar,
24
+ "aria-label": t(x).savedBlocks.pickToolbar,
25
25
  class: "tpl-scale-in tpl:flex tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-lg)] tpl:border tpl:py-2 tpl:pl-4 tpl:pr-2 tpl:border-[var(--tpl-border)]",
26
26
  style: {
27
27
  "pointer-events": "auto",
28
28
  "background-color": "var(--tpl-bg-elevated)",
29
29
  "box-shadow": "var(--tpl-shadow-xl)"
30
30
  }
31
- }, [e("div", p, [e("span", m, a(o(S)(o(x).savedBlocks.pickCount, { count: s.count })), 1), e("span", h, a(o(x).savedBlocks.pickHint), 1)]), e("div", g, [e("button", {
31
+ }, [n("div", p, [n("span", m, o(t(S)(t(x).savedBlocks.pickCount, { count: s.count })), 1), n("span", h, o(t(x).savedBlocks.pickHint), 1)]), n("div", g, [n("button", {
32
32
  type: "button",
33
33
  "data-testid": "saved-blocks-pick-cancel",
34
34
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
35
35
  onClick: v[0] ||= (e) => b("cancel")
36
- }, [n(o(u), {
36
+ }, [i(t(u), {
37
37
  size: 13,
38
38
  "stroke-width": 2
39
- }), r(" " + a(o(x).savedBlocks.cancel), 1)]), e("button", {
39
+ }), a(" " + o(t(x).savedBlocks.cancel), 1)]), n("button", {
40
40
  type: "button",
41
41
  "data-testid": "saved-blocks-pick-confirm",
42
42
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:px-2.5 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]",
43
43
  disabled: s.count === 0,
44
44
  onClick: C
45
- }, [n(o(c), {
45
+ }, [i(t(c), {
46
46
  size: 13,
47
47
  "stroke-width": 2
48
- }), r(" " + a(o(x).savedBlocks.save), 1)], 8, _)])], 8, f)]));
48
+ }), a(" " + o(t(x).savedBlocks.save), 1)], 8, _)])], 8, f)]));
49
49
  }
50
50
  });
51
51
  //#endregion