@templatical/editor 0.43.3 → 0.44.1

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 (192) hide show
  1. package/dist/{AiChatSidebar-BAAypLEP.js → AiChatSidebar-BUR5Jshu.js} +8 -8
  2. package/dist/{AiFeatureMenu-CQcrDR-J.js → AiFeatureMenu-CgfLFHJw.js} +4 -4
  3. package/dist/{BlockIssueBadge-DYI7ic1j.js → BlockIssueBadge-CWZEwMXX.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-x5W-Sdhg.js → BlockPreviewCanvas-2vVu55yN.js} +3 -3
  5. package/dist/{CloudHeaderExtras-DnLaX4ea.js → CloudHeaderExtras-BZ62q1aS.js} +2 -2
  6. package/dist/{CloudPanels-BHPG3d1o.js → CloudPanels-sv4aCKKE.js} +4 -4
  7. package/dist/{CollaboratorBar-DG6KroMt.js → CollaboratorBar-CSEFL7uC.js} +2 -2
  8. package/dist/{CommentsPanel-Bzk6VhJg.js → CommentsPanel-CYMHfFcn.js} +1 -1
  9. package/dist/{CommentsSidebar-CaRC3c1b.js → CommentsSidebar-uvQyCMUe.js} +10 -10
  10. package/dist/{CountdownToolbar-B-pAigUh.js → CountdownToolbar-C052mx2P.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-DfuJyDBz.js → DesignReferenceSidebar-ZKJ7y7-G.js} +6 -6
  12. package/dist/{IssuesPanel-vWhcDIvb.js → IssuesPanel-DAlNiJX_.js} +5 -5
  13. package/dist/{LogicTagInsertButton-D2Fjo444.js → LogicTagInsertButton-DMUfVsPr.js} +6 -6
  14. package/dist/{MediaEditModal-BuP8SJrv.js → MediaEditModal-Cmd9tQXZ.js} +1 -1
  15. package/dist/{MediaPanels-BkcF0r_r.js → MediaPanels-DoBhG5gg.js} +1 -1
  16. package/dist/{MergeTagInput-fEOOY7OU.js → MergeTagInput-DoQWMSW4.js} +1 -1
  17. package/dist/{MergeTagModeToggle-BOeEL52u.js → MergeTagModeToggle-DOHixe4G.js} +4 -4
  18. package/dist/{ParagraphEditor-BlJGeBRY.js → ParagraphEditor-C_p6yKLK.js} +10 -10
  19. package/dist/{RestoreVersionDialog-DYaoFk5G.js → RestoreVersionDialog-CKHeCPG2.js} +3 -3
  20. package/dist/{RichTextEditorContent-GacK8qwu.js → RichTextEditorContent-BedBVHXS.js} +4 -4
  21. package/dist/{SaveBlockDialog-DR1UCtQY.js → SaveBlockDialog-q3_fjb9t.js} +8 -8
  22. package/dist/{SavedBlocksBrowserModal-q_-qYW9a.js → SavedBlocksBrowserModal-DeUo5aFV.js} +87 -86
  23. package/dist/{SavedBlocksPanels-nTH8NTAT.js → SavedBlocksPanels-DNpnl5cO.js} +1 -1
  24. package/dist/{SavedBlocksPickBar-C7vHmc5c.js → SavedBlocksPickBar-Pq2bjpB_.js} +2 -2
  25. package/dist/{TemplateScoringPanel-D9jeQCYl.js → TemplateScoringPanel-DXsyp0_A.js} +11 -11
  26. package/dist/{TemplateSettings-ClfHwxUa.js → TemplateSettings-Bh10NFIN.js} +6 -6
  27. package/dist/{TestEmailModal-DEnvrv38.js → TestEmailModal-BYCKpH7g.js} +7 -7
  28. package/dist/{TestEmailPanel-Ca9t6KG7.js → TestEmailPanel-lUXAFsT5.js} +1 -1
  29. package/dist/{TitleEditor-D7mNs3s5.js → TitleEditor-CWPxXUp2.js} +6 -6
  30. package/dist/{ToggleSwitch-Z-rqEcig.js → ToggleSwitch-D7GLaT8s.js} +1 -1
  31. package/dist/{Toolbar-DUgyDBkz.js → Toolbar-CWxqqBHE.js} +21 -21
  32. package/dist/{TplModal-CYyFAScB.js → TplModal-D6lqrKls.js} +1 -1
  33. package/dist/{VersionHistoryMenu-D42tGKM6.js → VersionHistoryMenu-fLrx-Lvi.js} +5 -5
  34. package/dist/{VersionHistoryPanels-o0HGvQJX.js → VersionHistoryPanels-C3XhpQO_.js} +1 -1
  35. package/dist/{VersionPreviewBanner-D5RZtvUf.js → VersionPreviewBanner-CWuxq_bb.js} +1 -1
  36. package/dist/{WrapperBlock-B0_vSfSD.js → WrapperBlock-ox8TMS_p.js} +1 -1
  37. package/dist/{blockTypeIcons-CEk_GHmU.js → blockTypeIcons-DEvNVvBj.js} +2 -2
  38. package/dist/bundle-stats.json +6 -6
  39. package/dist/cdn/chunks/{AiChatSidebar-oFwacME4.js → AiChatSidebar-Cvp9beXR.js} +3 -3
  40. package/dist/cdn/chunks/{AiChatSidebar-oFwacME4.js.map → AiChatSidebar-Cvp9beXR.js.map} +1 -1
  41. package/dist/cdn/chunks/{AiFeatureMenu-BiHFJf9i.js → AiFeatureMenu-vOJtwdmT.js} +3 -3
  42. package/dist/cdn/chunks/{AiFeatureMenu-BiHFJf9i.js.map → AiFeatureMenu-vOJtwdmT.js.map} +1 -1
  43. package/dist/cdn/chunks/{BlockIssueBadge-CWlcDBFm.js → BlockIssueBadge-CKIrYROg.js} +2 -2
  44. package/dist/cdn/chunks/{BlockIssueBadge-CWlcDBFm.js.map → BlockIssueBadge-CKIrYROg.js.map} +1 -1
  45. package/dist/cdn/chunks/{BlockPreviewCanvas-CIwIA3zq.js → BlockPreviewCanvas-CB27Joyn.js} +4 -4
  46. package/dist/cdn/chunks/{BlockPreviewCanvas-CIwIA3zq.js.map → BlockPreviewCanvas-CB27Joyn.js.map} +1 -1
  47. package/dist/cdn/chunks/{CloudHeaderExtras-BgsjwWUQ.js → CloudHeaderExtras-9tKrhPm6.js} +3 -3
  48. package/dist/cdn/chunks/{CloudHeaderExtras-BgsjwWUQ.js.map → CloudHeaderExtras-9tKrhPm6.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudPanels-DFCwq8_J.js → CloudPanels-DTQ7zbEN.js} +4 -4
  50. package/dist/cdn/chunks/{CloudPanels-DFCwq8_J.js.map → CloudPanels-DTQ7zbEN.js.map} +1 -1
  51. package/dist/cdn/chunks/{CollaboratorBar-CiMZfMwN.js → CollaboratorBar-BKTkVMbz.js} +3 -3
  52. package/dist/cdn/chunks/{CollaboratorBar-CiMZfMwN.js.map → CollaboratorBar-BKTkVMbz.js.map} +1 -1
  53. package/dist/cdn/chunks/{CommentsPanel-CL4grbMp.js → CommentsPanel-BjHRj_Yw.js} +2 -2
  54. package/dist/cdn/chunks/{CommentsPanel-CL4grbMp.js.map → CommentsPanel-BjHRj_Yw.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsSidebar-tWYYKv1s.js → CommentsSidebar-CpCfqSq4.js} +2 -2
  56. package/dist/cdn/chunks/{CommentsSidebar-tWYYKv1s.js.map → CommentsSidebar-CpCfqSq4.js.map} +1 -1
  57. package/dist/cdn/chunks/{CountdownToolbar-DfyqIppF.js → CountdownToolbar-C9QpHQcv.js} +4 -4
  58. package/dist/cdn/chunks/{CountdownToolbar-DfyqIppF.js.map → CountdownToolbar-C9QpHQcv.js.map} +1 -1
  59. package/dist/cdn/chunks/{DesignReferenceSidebar-C6O12hvt.js → DesignReferenceSidebar-BO0xz1wC.js} +3 -3
  60. package/dist/cdn/chunks/{DesignReferenceSidebar-C6O12hvt.js.map → DesignReferenceSidebar-BO0xz1wC.js.map} +1 -1
  61. package/dist/cdn/chunks/{IssuesPanel-DYJXIwnw.js → IssuesPanel--62qud8w.js} +2 -2
  62. package/dist/cdn/chunks/{IssuesPanel-DYJXIwnw.js.map → IssuesPanel--62qud8w.js.map} +1 -1
  63. package/dist/cdn/chunks/{LogicTagInsertButton-FNMVxm_V.js → LogicTagInsertButton-gc8ICURV.js} +5 -5
  64. package/dist/cdn/chunks/{LogicTagInsertButton-FNMVxm_V.js.map → LogicTagInsertButton-gc8ICURV.js.map} +1 -1
  65. package/dist/cdn/chunks/{MediaEditModal-C9yZ0AJv.js → MediaEditModal-BuDXKwx4.js} +2 -2
  66. package/dist/cdn/chunks/{MediaEditModal-C9yZ0AJv.js.map → MediaEditModal-BuDXKwx4.js.map} +1 -1
  67. package/dist/cdn/chunks/{MediaPanels-DiKU1r9P.js → MediaPanels-xFpaxFRH.js} +2 -2
  68. package/dist/cdn/chunks/{MediaPanels-DiKU1r9P.js.map → MediaPanels-xFpaxFRH.js.map} +1 -1
  69. package/dist/cdn/chunks/{MergeTagInput-CSC64xNL.js → MergeTagInput-DsPKWbWr.js} +2 -2
  70. package/dist/cdn/chunks/{MergeTagInput-CSC64xNL.js.map → MergeTagInput-DsPKWbWr.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagModeToggle-027RMXDP.js → MergeTagModeToggle-DU0WqgVH.js} +3 -3
  72. package/dist/cdn/chunks/{MergeTagModeToggle-027RMXDP.js.map → MergeTagModeToggle-DU0WqgVH.js.map} +1 -1
  73. package/dist/cdn/chunks/{ParagraphEditor-0Z26-N5u.js → ParagraphEditor-BSDGOsja.js} +10 -10
  74. package/dist/cdn/chunks/{ParagraphEditor-0Z26-N5u.js.map → ParagraphEditor-BSDGOsja.js.map} +1 -1
  75. package/dist/cdn/chunks/{RestoreVersionDialog-Dd1v1KLK.js → RestoreVersionDialog-DLe0Co57.js} +3 -3
  76. package/dist/cdn/chunks/{RestoreVersionDialog-Dd1v1KLK.js.map → RestoreVersionDialog-DLe0Co57.js.map} +1 -1
  77. package/dist/cdn/chunks/{RichTextEditorContent-BOZ_5I76.js → RichTextEditorContent-Dkcts8Vh.js} +4 -4
  78. package/dist/cdn/chunks/{RichTextEditorContent-BOZ_5I76.js.map → RichTextEditorContent-Dkcts8Vh.js.map} +1 -1
  79. package/dist/cdn/chunks/{SaveBlockDialog-B6WQwNJD.js → SaveBlockDialog-DQzaED8U.js} +7 -7
  80. package/dist/cdn/chunks/{SaveBlockDialog-B6WQwNJD.js.map → SaveBlockDialog-DQzaED8U.js.map} +1 -1
  81. package/dist/cdn/chunks/{SavedBlocksBrowserModal-C015fVMV.js → SavedBlocksBrowserModal-CliZBxHo.js} +138 -137
  82. package/dist/cdn/chunks/SavedBlocksBrowserModal-CliZBxHo.js.map +1 -0
  83. package/dist/cdn/chunks/{SavedBlocksPanels-DZmfXW4x.js → SavedBlocksPanels-lW7PMvJN.js} +2 -2
  84. package/dist/cdn/chunks/{SavedBlocksPanels-DZmfXW4x.js.map → SavedBlocksPanels-lW7PMvJN.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPickBar-DtCQFCCW.js → SavedBlocksPickBar-DEL0r3Bv.js} +3 -3
  86. package/dist/cdn/chunks/{SavedBlocksPickBar-DtCQFCCW.js.map → SavedBlocksPickBar-DEL0r3Bv.js.map} +1 -1
  87. package/dist/cdn/chunks/{TemplateScoringPanel-CeCVyNV1.js → TemplateScoringPanel-BBRHCNcR.js} +2 -2
  88. package/dist/cdn/chunks/{TemplateScoringPanel-CeCVyNV1.js.map → TemplateScoringPanel-BBRHCNcR.js.map} +1 -1
  89. package/dist/cdn/chunks/{TemplateSettings-CuXwthI6.js → TemplateSettings-vsFOU0oA.js} +5 -5
  90. package/dist/cdn/chunks/{TemplateSettings-CuXwthI6.js.map → TemplateSettings-vsFOU0oA.js.map} +1 -1
  91. package/dist/cdn/chunks/{TestEmailModal-DV1XKWRh.js → TestEmailModal-B7Dr2eFa.js} +7 -7
  92. package/dist/cdn/chunks/{TestEmailModal-DV1XKWRh.js.map → TestEmailModal-B7Dr2eFa.js.map} +1 -1
  93. package/dist/cdn/chunks/{TestEmailPanel-CnVW00RI.js → TestEmailPanel-C3PTYDbT.js} +2 -2
  94. package/dist/cdn/chunks/{TestEmailPanel-CnVW00RI.js.map → TestEmailPanel-C3PTYDbT.js.map} +1 -1
  95. package/dist/cdn/chunks/{TitleEditor-B9sKbRd4.js → TitleEditor-gHTla_4I.js} +5 -5
  96. package/dist/cdn/chunks/{TitleEditor-B9sKbRd4.js.map → TitleEditor-gHTla_4I.js.map} +1 -1
  97. package/dist/cdn/chunks/{ToggleSwitch-eHkFBx4o.js → ToggleSwitch-DoUNcLPP.js} +2 -2
  98. package/dist/cdn/chunks/{ToggleSwitch-eHkFBx4o.js.map → ToggleSwitch-DoUNcLPP.js.map} +1 -1
  99. package/dist/cdn/chunks/{Toolbar-DeKbYejp.js → Toolbar-CnfNUkOY.js} +9 -9
  100. package/dist/cdn/chunks/{Toolbar-DeKbYejp.js.map → Toolbar-CnfNUkOY.js.map} +1 -1
  101. package/dist/cdn/chunks/{TplModal-Dqq-Ermd.js → TplModal-BVUBOEQL.js} +2 -2
  102. package/dist/cdn/chunks/{TplModal-Dqq-Ermd.js.map → TplModal-BVUBOEQL.js.map} +1 -1
  103. package/dist/cdn/chunks/{VersionHistoryMenu-Kf4QFm7m.js → VersionHistoryMenu-Cp3EHO_P.js} +2 -2
  104. package/dist/cdn/chunks/{VersionHistoryMenu-Kf4QFm7m.js.map → VersionHistoryMenu-Cp3EHO_P.js.map} +1 -1
  105. package/dist/cdn/chunks/{VersionHistoryPanels-Cz8rde-s.js → VersionHistoryPanels-Dcdy7ySA.js} +2 -2
  106. package/dist/cdn/chunks/{VersionHistoryPanels-Cz8rde-s.js.map → VersionHistoryPanels-Dcdy7ySA.js.map} +1 -1
  107. package/dist/cdn/chunks/{VersionPreviewBanner-DNYHqbj9.js → VersionPreviewBanner-BgkroXnG.js} +2 -2
  108. package/dist/cdn/chunks/{VersionPreviewBanner-DNYHqbj9.js.map → VersionPreviewBanner-BgkroXnG.js.map} +1 -1
  109. package/dist/cdn/chunks/{WrapperBlock-DIZHUwFn.js → WrapperBlock-23nAzweL.js} +2 -2
  110. package/dist/cdn/chunks/{WrapperBlock-DIZHUwFn.js.map → WrapperBlock-23nAzweL.js.map} +1 -1
  111. package/dist/cdn/chunks/{blockTypeIcons-hgzxMFWX.js → blockTypeIcons-BMZi7sdX.js} +2 -2
  112. package/dist/cdn/chunks/{blockTypeIcons-hgzxMFWX.js.map → blockTypeIcons-BMZi7sdX.js.map} +1 -1
  113. package/dist/cdn/chunks/{cloud-De-eh1u6.js → cloud-DLQU5l0Z.js} +2 -2
  114. package/dist/cdn/chunks/{cloud-De-eh1u6.js.map → cloud-DLQU5l0Z.js.map} +1 -1
  115. package/dist/cdn/chunks/{createCloudRuntime-DsaUaWvr.js → createCloudRuntime-Mnx8kV2W.js} +3 -3
  116. package/dist/cdn/chunks/{createCloudRuntime-DsaUaWvr.js.map → createCloudRuntime-Mnx8kV2W.js.map} +1 -1
  117. package/dist/cdn/chunks/{editor-modal-cKeJ4wC2.js → editor-modal-B7NNAFI5.js} +4 -4
  118. package/dist/cdn/chunks/{editor-modal-cKeJ4wC2.js.map → editor-modal-B7NNAFI5.js.map} +1 -1
  119. package/dist/cdn/chunks/en-C3n0qWte.js +2 -0
  120. package/dist/cdn/chunks/{extensions-rPP7qRRm.js → extensions-ClmkNA8R.js} +4 -4
  121. package/dist/cdn/chunks/{extensions-rPP7qRRm.js.map → extensions-ClmkNA8R.js.map} +1 -1
  122. package/dist/cdn/chunks/{icons-BF0mJX0V.js → icons-BjvraR-Y.js} +25 -25
  123. package/dist/cdn/chunks/{icons-BF0mJX0V.js.map → icons-BjvraR-Y.js.map} +1 -1
  124. package/dist/cdn/chunks/{preRenderCustomBlocks-h4ZFBKbD.js → preRenderCustomBlocks-Bg3rIgGJ.js} +2 -2
  125. package/dist/cdn/chunks/{preRenderCustomBlocks-h4ZFBKbD.js.map → preRenderCustomBlocks-Bg3rIgGJ.js.map} +1 -1
  126. package/dist/cdn/chunks/{socialIcons-ZOCwCCyn.js → socialIcons-CnUJBZTO.js} +2 -2
  127. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +1 -0
  128. package/dist/cdn/chunks/{src-fZSLjhjy.js → src-B5-VKcRQ.js} +2 -2
  129. package/dist/cdn/chunks/{src-fZSLjhjy.js.map → src-B5-VKcRQ.js.map} +1 -1
  130. package/dist/cdn/chunks/{src-V9_ODH_1.js → src-D_l1LAxs.js} +3 -3
  131. package/dist/cdn/chunks/{src-V9_ODH_1.js.map → src-D_l1LAxs.js.map} +1 -1
  132. package/dist/cdn/chunks/{src-BR3I3gOW.js → src-QIGNPFkl.js} +6 -8
  133. package/dist/cdn/chunks/src-QIGNPFkl.js.map +1 -0
  134. package/dist/cdn/chunks/{useEditorCore-DWvAia8X.js → useEditorCore-DjD7fJpq.js} +10 -10
  135. package/dist/cdn/chunks/{useEditorCore-DWvAia8X.js.map → useEditorCore-DjD7fJpq.js.map} +1 -1
  136. package/dist/cdn/chunks/{useLogicTag-J_i_hvZg.js → useLogicTag-D6lWY0bD.js} +2 -2
  137. package/dist/cdn/chunks/{useLogicTag-J_i_hvZg.js.map → useLogicTag-D6lWY0bD.js.map} +1 -1
  138. package/dist/cdn/chunks/{useMergeTag-C5MyHYxJ.js → useMergeTag-2iW-BKWW.js} +2 -2
  139. package/dist/cdn/chunks/{useMergeTag-C5MyHYxJ.js.map → useMergeTag-2iW-BKWW.js.map} +1 -1
  140. package/dist/cdn/editor.css +1 -1
  141. package/dist/cdn/editor.js +316 -286
  142. package/dist/cdn/editor.js.map +1 -1
  143. package/dist/{check-DEjsanPt.js → check-DNyj-E0y.js} +1 -1
  144. package/dist/{chevron-down-Cv11TeKQ.js → chevron-down-BYnhkMsA.js} +1 -1
  145. package/dist/{chevron-right-R8dOpzBZ.js → chevron-right-D9HGBqJo.js} +1 -1
  146. package/dist/{chevron-up-DsDEytX1.js → chevron-up-BnIR1-ma.js} +1 -1
  147. package/dist/{circle-alert-B_NqWETg.js → circle-alert-B6xl1B_M.js} +1 -1
  148. package/dist/{clock-CDGKPx_X.js → clock-Cs5Wd3dW.js} +1 -1
  149. package/dist/{cloud-AO_X8T9g.js → cloud-BNEL7bxL.js} +1 -1
  150. package/dist/{copy-Dv2VltLv.js → copy-6uKc-WBk.js} +1 -1
  151. package/dist/{createCloudRuntime-D641nhri.js → createCloudRuntime-CaZapQZ6.js} +2 -2
  152. package/dist/{createLucideIcon-MrFrvtkF.js → createLucideIcon-BVcoovvP.js} +5 -5
  153. package/dist/{dist-iLUVPysa.js → dist-HjILVdTA.js} +5 -7
  154. package/dist/{editor-modal-DmgxKgII.js → editor-modal-Co-rZGaf.js} +16 -16
  155. package/dist/en-B-xoKkWi.js +2 -0
  156. package/dist/{extensions-CkwL1oWn.js → extensions-DXSI8Dyj.js} +3 -3
  157. package/dist/{eye-BVxcDaZZ.js → eye-Nbtw_q05.js} +1 -1
  158. package/dist/{image-up-CnC4n-8q.js → image-up-C1jC7NzQ.js} +1 -1
  159. package/dist/index.d.ts +2431 -376
  160. package/dist/{info-q7gVjMBC.js → info-ClH66pKN.js} +1 -1
  161. package/dist/{link-B1-UqOP6.js → link-y47GNW0o.js} +1 -1
  162. package/dist/{list-BvlNrd6M.js → list-DiLMlMaE.js} +1 -1
  163. package/dist/{loader-circle-CJ8klGfl.js → loader-circle-BRdCPW5h.js} +1 -1
  164. package/dist/{message-circle-Bgepipq_.js → message-circle-CNgIpVJv.js} +1 -1
  165. package/dist/{package-BYIdon2Q.js → package-B9OWk-Kp.js} +1 -1
  166. package/dist/{pencil-Bhs9MNTT.js → pencil-BDnjo24u.js} +1 -1
  167. package/dist/{plus-C0eGj8vT.js → plus-BMgjN7lI.js} +1 -1
  168. package/dist/{preRenderCustomBlocks-CTstI3Q-.js → preRenderCustomBlocks-C_PIxBp7.js} +1 -1
  169. package/dist/{refresh-cw-BQTOIZKD.js → refresh-cw-CR5lenxl.js} +1 -1
  170. package/dist/{search-CeT7yRBa.js → search-CxRUiOSF.js} +1 -1
  171. package/dist/{send-D7ck2xEq.js → send-Bu2RysGL.js} +1 -1
  172. package/dist/{shield-check-CF_VbIbH.js → shield-check-Cg8f4LB0.js} +1 -1
  173. package/dist/{smartphone-CkVOj7Qn.js → smartphone-CHf-8lHp.js} +1 -1
  174. package/dist/{socialIcons-QYtdurnO.js → socialIcons-D1gkHc_i.js} +2 -2
  175. package/dist/{sparkles-Cfb-Kkgv.js → sparkles-_DQGv4ub.js} +1 -1
  176. package/dist/style.css +1 -1
  177. package/dist/templatical-editor.js +491 -461
  178. package/dist/{text-align-start-CkFs2Zig.js → text-align-start-PHo-Ep5i.js} +1 -1
  179. package/dist/{trash-C2LPw5pa.js → trash-BxIzHAri.js} +1 -1
  180. package/dist/{triangle-alert-gaUz4rum.js → triangle-alert-fcb2KoA-.js} +1 -1
  181. package/dist/{upload-C_DYZD_p.js → upload-BxBtMPMv.js} +1 -1
  182. package/dist/{useEditorCore-Cmv5ll-D.js → useEditorCore-iuKC8yr5.js} +14 -14
  183. package/dist/{useLogicTag-BaH8gey0.js → useLogicTag-wqfdwYYR.js} +1 -1
  184. package/dist/{useMergeTag-Cyad1yBE.js → useMergeTag-D3XDE_58.js} +1 -1
  185. package/dist/{useScrollToBlock-BsPYYJ8h.js → useScrollToBlock-DA_aIJXS.js} +1 -1
  186. package/dist/{x-JhKma5YO.js → x-DrZO5tt0.js} +1 -1
  187. package/package.json +15 -11
  188. package/dist/cdn/chunks/SavedBlocksBrowserModal-C015fVMV.js.map +0 -1
  189. package/dist/cdn/chunks/en-CoNe1psX.js +0 -2
  190. package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +0 -1
  191. package/dist/cdn/chunks/src-BR3I3gOW.js.map +0 -1
  192. package/dist/en-DXYNty6E.js +0 -2
@@ -1,13 +1,13 @@
1
1
  import { B as e, E as t, F as n, H as r, N as i, Q as a, R as ee, S as o, U as s, a as c, at as l, b as u, c as d, ct as f, f as p, g as m, h, k as te, l as g, lt as ne, m as _, o as v, p as y, u as b, ut as x, x as re } from "./draggable-IB4x6w2O.js";
2
- import "./useEditorCore-DWvAia8X.js";
2
+ import "./useEditorCore-DjD7fJpq.js";
3
3
  import { $ as S, U as ie, X as ae, g as oe } from "./keys-DCWeHkSF.js";
4
4
  import { t as se } from "./useI18n-CyO_Nmca.js";
5
- import { P as ce, X as C, f as le, n as ue, q as de } from "./icons-BF0mJX0V.js";
5
+ import { P as ce, X as C, f as le, n as ue, q as de } from "./icons-BjvraR-Y.js";
6
6
  import { v as fe } from "./styleConstants-C_YAPdQS.js";
7
- import { t as w } from "./blockTypeIcons-hgzxMFWX.js";
7
+ import { t as w } from "./blockTypeIcons-BMZi7sdX.js";
8
8
  import { t as pe } from "./formatAbsoluteDateTime-DMmop3C-.js";
9
9
  import { t as me } from "./formatRelativeTime-CtUU-QZ8.js";
10
- import { t as he } from "./TplModal-Dqq-Ermd.js";
10
+ import { t as he } from "./TplModal-BVUBOEQL.js";
11
11
  //#region src/components/SavedBlocksBrowserModal.vue?vue&type=script&setup=true&lang.ts
12
12
  var ge = {
13
13
  role: "dialog",
@@ -29,76 +29,79 @@ var ge = {
29
29
  "aria-label",
30
30
  "placeholder",
31
31
  "onKeydown"
32
- ], 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 = {
32
+ ], Me = ["onClick"], Ne = ["aria-pressed"], Pe = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Fe = {
33
+ "data-testid": "saved-block-name",
34
+ class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]"
35
+ }, Ie = { 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)]" }, Le = {
33
36
  key: 0,
34
37
  class: "tpl:mt-1 tpl:flex tpl:items-center"
35
- }, Le = {
38
+ }, Re = {
36
39
  "data-testid": "saved-block-category",
37
40
  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)]"
38
- }, Re = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, ze = {
41
+ }, ze = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, Be = {
39
42
  key: 0,
40
43
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
41
- }, Be = ["title"], Ve = ["aria-label", "onClick"], He = [
44
+ }, Ve = ["title"], He = ["aria-label", "onClick"], Ue = [
42
45
  "aria-label",
43
46
  "title",
44
47
  "onClick"
45
- ], Ue = [
48
+ ], We = [
46
49
  "aria-label",
47
50
  "title",
48
51
  "onClick"
49
- ], We = {
52
+ ], Ge = {
50
53
  key: 2,
51
54
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
52
- }, k = {
55
+ }, Ke = {
53
56
  key: 0,
54
57
  class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
55
- }, Ge = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ke = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, qe = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Je = {
58
+ }, qe = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Je = { class: "tpl:mt-1 tpl:max-w-[220px] tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Ye = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, Xe = {
56
59
  key: 0,
57
60
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
58
- }, Ye = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Xe = {
61
+ }, Ze = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Qe = {
59
62
  key: 1,
60
63
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
61
- }, Ze = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, $e = { class: "tpl:flex tpl:items-center tpl:gap-2" }, et = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, tt = ["value"], nt = { class: "tpl:flex tpl:gap-2" }, rt = ["disabled"], A = /* @__PURE__ */ o({
64
+ }, $e = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, et = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, tt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, nt = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, rt = ["value"], it = { class: "tpl:flex tpl:gap-2" }, at = ["disabled"], k = /* @__PURE__ */ o({
62
65
  __name: "SavedBlocksBrowserModal",
63
66
  props: { visible: { type: Boolean } },
64
67
  emits: ["close", "insert"],
65
- setup(o, { emit: A }) {
66
- let it = o, j = A, at = re(() => import("./BlockPreviewCanvas-CIwIA3zq.js").then((e) => e.n)), { t: M, format: N } = se(), P = S(ie, "SavedBlocksBrowserModal"), F = S(oe, "SavedBlocksBrowserModal"), ot = t(ae, void 0), I = a(""), L = a(""), R = a(null), z = a(null), B = a(null), V = a(""), H = a(""), U = a(null), W = a("end"), G = p(() => {
67
- let e = I.value.trim().toLowerCase(), t = L.value;
68
- return P.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
69
- }), K = p(() => P.isLoading.value && P.savedBlocks.value.length === 0), st = p(() => I.value.trim().length > 0 || L.value !== ""), q = p(() => R.value ? P.savedBlocks.value.find((e) => e.id === R.value) ?? null : null), ct = p(() => {
68
+ setup(o, { emit: k }) {
69
+ let ot = o, A = k, st = re(() => import("./BlockPreviewCanvas-CB27Joyn.js").then((e) => e.n)), { t: j, format: M } = se(), N = S(ie, "SavedBlocksBrowserModal"), P = S(oe, "SavedBlocksBrowserModal"), ct = t(ae, void 0), F = a(""), I = a(""), L = a(null), R = a(null), z = a(null), B = a(""), V = a(""), H = a(null), U = a("end"), W = p(() => {
70
+ let e = F.value.trim().toLowerCase(), t = I.value;
71
+ return N.savedBlocks.value.filter((n) => !(e && !n.name.toLowerCase().includes(e) || t && n.category !== t));
72
+ }), G = p(() => N.isLoading.value && N.savedBlocks.value.length === 0), lt = p(() => F.value.trim().length > 0 || I.value !== ""), K = p(() => L.value ? N.savedBlocks.value.find((e) => e.id === L.value) ?? null : null), ut = p(() => {
70
73
  let e = [{
71
74
  value: "beginning",
72
- label: M.savedBlocks.insertAtBeginning
73
- }], t = F.content.value.blocks;
75
+ label: j.savedBlocks.insertAtBeginning
76
+ }], t = P.content.value.blocks;
74
77
  for (let n = 0; n < t.length; n++) {
75
78
  let r = t[n];
76
79
  e.push({
77
80
  value: r.id,
78
- label: N(M.savedBlocks.insertAfterBlock, { block: `${M.blocks[r.type] ?? r.type} ${n + 1}` })
81
+ label: M(j.savedBlocks.insertAfterBlock, { block: `${j.blocks[r.type] ?? r.type} ${n + 1}` })
79
82
  });
80
83
  }
81
84
  return e.push({
82
85
  value: "end",
83
- label: M.savedBlocks.insertAtEnd
86
+ label: j.savedBlocks.insertAtEnd
84
87
  }), e;
85
- }), lt = p(() => {
86
- if (W.value === "end") return;
87
- if (W.value === "beginning") return 0;
88
- let e = F.content.value.blocks.findIndex((e) => e.id === W.value);
88
+ }), q = p(() => {
89
+ if (U.value === "end") return;
90
+ if (U.value === "beginning") return 0;
91
+ let e = P.content.value.blocks.findIndex((e) => e.id === U.value);
89
92
  if (e !== -1) return e + 1;
90
93
  });
91
- e(() => it.visible, (e) => {
94
+ e(() => ot.visible, (e) => {
92
95
  if (e) {
93
- I.value = "", L.value = "", R.value = null, z.value = null, B.value = null;
94
- let e = F.state.selectedBlockId;
96
+ F.value = "", I.value = "", L.value = null, R.value = null, z.value = null;
97
+ let e = P.state.selectedBlockId;
95
98
  if (e) {
96
- let t = F.content.value.blocks.findIndex((t) => t.id === e);
97
- W.value = t === -1 ? "end" : e;
98
- } else W.value = "end";
99
+ let t = P.content.value.blocks.findIndex((t) => t.id === e);
100
+ U.value = t === -1 ? "end" : e;
101
+ } else U.value = "end";
99
102
  }
100
103
  }, { immediate: !0 });
101
- function ut(e) {
104
+ function dt(e) {
102
105
  let t = [], n = /* @__PURE__ */ new Set();
103
106
  for (let r of e.content) if (!n.has(r.type) && w[r.type] && (n.add(r.type), t.push({
104
107
  type: r.type,
@@ -112,59 +115,59 @@ var ge = {
112
115
  }
113
116
  function Y(e) {
114
117
  let t = e.updatedAt ?? e.createdAt;
115
- return t ? me(t, M.time, N) ?? "" : "";
118
+ return t ? me(t, j.time, M) ?? "" : "";
116
119
  }
117
- function dt(e) {
120
+ function ft(e) {
118
121
  let t = e.updatedAt ?? e.createdAt;
119
- return t ? pe(t, ot) : "";
122
+ return t ? pe(t, ct) : "";
120
123
  }
121
- async function ft(e) {
124
+ async function pt(e) {
122
125
  try {
123
- await P.remove(e), R.value === e && (R.value = null);
126
+ await N.remove(e), L.value === e && (L.value = null);
124
127
  } finally {
125
- z.value = null;
128
+ R.value = null;
126
129
  }
127
130
  }
128
- async function pt(e) {
129
- P.canUpdateBlock(e) && (B.value = e.id, V.value = e.name, H.value = e.category ?? "", z.value = null, await te(), U.value?.focus(), U.value?.select());
131
+ async function mt(e) {
132
+ N.canUpdateBlock(e) && (z.value = e.id, B.value = e.name, V.value = e.category ?? "", R.value = null, await te(), H.value?.focus(), H.value?.select());
130
133
  }
131
134
  function X() {
132
- B.value = null, V.value = "", H.value = "";
135
+ z.value = null, B.value = "", V.value = "";
133
136
  }
134
137
  async function Z(e) {
135
- if (B.value !== e) return;
136
- let t = V.value.trim(), n = H.value.trim(), r = P.savedBlocks.value.find((t) => t.id === e), i = {};
138
+ if (z.value !== e) return;
139
+ let t = B.value.trim(), n = V.value.trim(), r = N.savedBlocks.value.find((t) => t.id === e), i = {};
137
140
  if (t && t !== r?.name && (i.name = t), n !== (r?.category ?? "") && (i.category = n), Object.keys(i).length === 0) {
138
141
  X();
139
142
  return;
140
143
  }
141
144
  try {
142
- await P.update(e, i);
145
+ await N.update(e, i);
143
146
  } finally {
144
147
  X();
145
148
  }
146
149
  }
147
- function mt(e, t) {
150
+ function ht(e, t) {
148
151
  let n = e.currentTarget, r = e.relatedTarget;
149
152
  r && n.contains(r) || Z(t);
150
153
  }
151
154
  function Q() {
152
- q.value && j("insert", q.value, lt.value);
155
+ K.value && A("insert", K.value, q.value);
153
156
  }
154
157
  function $() {
155
- j("close");
158
+ A("close");
156
159
  }
157
- function ht(e) {
158
- B.value || (e.key === "Escape" && $(), e.key === "Enter" && q.value && (e.preventDefault(), Q()));
160
+ function gt(e) {
161
+ z.value || (e.key === "Escape" && $(), e.key === "Enter" && K.value && (e.preventDefault(), Q()));
159
162
  }
160
163
  return (e, t) => (i(), _(he, {
161
164
  visible: o.visible,
162
165
  onClose: $,
163
- onKeydown: ht
166
+ onKeydown: gt
164
167
  }, {
165
168
  default: r(() => [y("div", ge, [
166
- y("div", _e, [y("h3", ve, x(l(M).savedBlocks.browse), 1), y("button", {
167
- "aria-label": l(M).savedBlocks.close,
169
+ y("div", _e, [y("h3", ve, x(l(j).savedBlocks.browse), 1), y("button", {
170
+ "aria-label": l(j).savedBlocks.close,
168
171
  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)]",
169
172
  onClick: $
170
173
  }, [u(l(ue), {
@@ -177,145 +180,143 @@ var ge = {
177
180
  "stroke-width": 2,
178
181
  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)]"
179
182
  }), s(y("input", {
180
- "onUpdate:modelValue": t[0] ||= (e) => I.value = e,
183
+ "onUpdate:modelValue": t[0] ||= (e) => F.value = e,
181
184
  type: "text",
182
- placeholder: l(M).savedBlocks.search,
183
- disabled: K.value,
185
+ placeholder: l(j).savedBlocks.search,
186
+ disabled: G.value,
184
187
  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:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
185
- }, null, 8, we), [[v, I.value]])]), l(P).categories.value.length > 0 ? s((i(), m("select", {
188
+ }, null, 8, we), [[v, F.value]])]), l(N).categories.value.length > 0 ? s((i(), m("select", {
186
189
  key: 0,
187
- "onUpdate:modelValue": t[1] ||= (e) => L.value = e,
190
+ "onUpdate:modelValue": t[1] ||= (e) => I.value = e,
188
191
  "data-testid": "saved-blocks-category-filter",
189
- "aria-label": l(M).savedBlocks.filterByCategory,
192
+ "aria-label": l(j).savedBlocks.filterByCategory,
190
193
  class: "tpl:h-8 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
191
- }, [y("option", T, x(l(M).savedBlocks.allCategories), 1), (i(!0), m(b, null, n(l(P).categories.value, (e) => (i(), m("option", {
194
+ }, [y("option", T, x(l(j).savedBlocks.allCategories), 1), (i(!0), m(b, null, n(l(N).categories.value, (e) => (i(), m("option", {
192
195
  key: e,
193
196
  value: e
194
- }, x(e), 9, E))), 128))], 8, Te)), [[c, L.value]]) : h("", !0)]),
195
- y("datalist", D, [(i(!0), m(b, null, n(l(P).categories.value, (e) => (i(), m("option", {
197
+ }, x(e), 9, E))), 128))], 8, Te)), [[c, I.value]]) : h("", !0)]),
198
+ y("datalist", D, [(i(!0), m(b, null, n(l(N).categories.value, (e) => (i(), m("option", {
196
199
  key: e,
197
200
  value: e
198
201
  }, null, 8, O))), 128))]),
199
- y("div", Ee, [K.value ? (i(), m("div", {
202
+ y("div", Ee, [G.value ? (i(), m("div", {
200
203
  key: 0,
201
204
  "data-testid": "saved-blocks-loading",
202
205
  class: "tpl:flex tpl:flex-col tpl:gap-1",
203
206
  role: "status",
204
207
  "aria-busy": "true",
205
- "aria-label": l(M).savedBlocks.loading
208
+ "aria-label": l(j).savedBlocks.loading
206
209
  }, [(i(), m(b, null, n(3, (e) => y("div", {
207
210
  key: e,
208
211
  "aria-hidden": "true",
209
212
  class: "tpl-saved-block-skeleton tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)]"
210
- }, [...t[7] ||= [y("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), y("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)) : G.value.length > 0 ? (i(), m("div", Oe, [(i(!0), m(b, null, n(G.value, (e) => (i(), m(b, { key: e.id }, [B.value === e.id ? (i(), m("div", {
213
+ }, [...t[7] ||= [y("div", { class: "tpl:h-3 tpl:w-1/2 tpl:rounded tpl:bg-[var(--tpl-bg-hover)]" }, null, -1), y("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 ? (i(), m("div", Oe, [(i(!0), m(b, null, n(W.value, (e) => (i(), m(b, { key: e.id }, [z.value === e.id ? (i(), m("div", {
211
214
  key: 0,
212
215
  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)]",
213
216
  style: { "background-color": "var(--tpl-primary-light)" },
214
- onFocusout: (t) => mt(t, e.id)
217
+ onFocusout: (t) => ht(t, e.id)
215
218
  }, [s(y("input", {
216
219
  ref_for: !0,
217
- ref: (e) => U.value = e,
218
- "onUpdate:modelValue": t[2] ||= (e) => V.value = e,
220
+ ref: (e) => H.value = e,
221
+ "onUpdate:modelValue": t[2] ||= (e) => B.value = e,
219
222
  type: "text",
220
- "aria-label": l(M).savedBlocks.rename,
223
+ "aria-label": l(j).savedBlocks.rename,
221
224
  class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
222
225
  onKeydown: [d(g((t) => Z(e.id), ["prevent", "stop"]), ["enter"]), t[3] ||= d(g((e) => X(), ["prevent", "stop"]), ["esc"])]
223
- }, null, 40, Ae), [[v, V.value]]), s(y("input", {
224
- "onUpdate:modelValue": t[4] ||= (e) => H.value = e,
226
+ }, null, 40, Ae), [[v, B.value]]), s(y("input", {
227
+ "onUpdate:modelValue": t[4] ||= (e) => V.value = e,
225
228
  type: "text",
226
229
  "data-testid": "saved-blocks-edit-category",
227
- "aria-label": l(M).savedBlocks.category,
228
- placeholder: l(M).savedBlocks.categoryPlaceholder,
230
+ "aria-label": l(j).savedBlocks.category,
231
+ placeholder: l(j).savedBlocks.categoryPlaceholder,
229
232
  list: "tpl-saved-block-browser-categories",
230
233
  class: "tpl:h-7 tpl:w-full tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
231
234
  onKeydown: [d(g((t) => Z(e.id), ["prevent", "stop"]), ["enter"]), t[5] ||= d(g((e) => X(), ["prevent", "stop"]), ["esc"])]
232
- }, null, 40, je), [[v, H.value]])], 40, ke)) : (i(), m("button", {
235
+ }, null, 40, je), [[v, V.value]])], 40, ke)) : (i(), m("div", {
233
236
  key: 1,
234
- type: "button",
235
237
  "data-testid": "saved-block-card",
236
- "aria-pressed": R.value === e.id,
237
- 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]",
238
+ class: "tpl:group/card tpl:relative 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]",
238
239
  style: ne({
239
- borderColor: R.value === e.id ? "var(--tpl-primary)" : "var(--tpl-border)",
240
- backgroundColor: R.value === e.id ? "var(--tpl-primary-light)" : "transparent"
240
+ borderColor: L.value === e.id ? "var(--tpl-primary)" : "var(--tpl-border)",
241
+ backgroundColor: L.value === e.id ? "var(--tpl-primary-light)" : "transparent"
241
242
  }),
242
- onClick: (t) => R.value = e.id
243
- }, [
244
- y("div", Ne, [y("span", Pe, x(e.name), 1), y("span", Fe, x(l(N)(l(M).savedBlocks.blockCount, { count: e.content.length })), 1)]),
245
- e.category ? (i(), m("div", Ie, [y("span", Le, x(e.category), 1)])) : h("", !0),
246
- y("div", Re, [
247
- (i(!0), m(b, null, n(ut(e), (e) => (i(), _(ee(e.icon), {
248
- key: e.type,
249
- size: 14,
250
- "stroke-width": 1.5,
251
- class: "tpl:text-[var(--tpl-text-dim)]"
252
- }))), 128)),
253
- J(e) > 0 ? (i(), m("span", ze, " +" + x(J(e)), 1)) : h("", !0),
254
- Y(e) ? (i(), m("span", {
255
- key: 1,
256
- "data-testid": "saved-block-updated",
257
- class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
258
- title: dt(e)
259
- }, x(Y(e)), 9, Be)) : h("", !0),
260
- z.value === e.id ? (i(), m("button", {
261
- key: 2,
262
- "aria-label": l(M).savedBlocks.deleteConfirm,
263
- 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)]",
264
- style: { "background-color": "transparent" },
265
- onClick: g((t) => ft(e.id), ["stop"])
266
- }, x(l(M).savedBlocks.deleteConfirm), 9, Ve)) : (i(), m(b, { key: 3 }, [l(P).canUpdateBlock(e) ? (i(), m("button", {
267
- key: 0,
268
- 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)]",
269
- "aria-label": l(M).savedBlocks.rename,
270
- title: l(M).savedBlocks.rename,
271
- onClick: g((t) => pt(e), ["stop"])
272
- }, [u(l(de), {
273
- size: 12,
274
- "stroke-width": 1.5
275
- })], 8, He)) : h("", !0), l(P).canDeleteBlock(e) ? (i(), m("button", {
276
- key: 1,
277
- class: f(["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(P).canUpdateBlock(e) }]),
278
- "aria-label": l(M).savedBlocks.delete,
279
- title: l(M).savedBlocks.delete,
280
- onClick: g((t) => z.value = e.id, ["stop"])
281
- }, [u(l(le), {
282
- size: 12,
283
- "stroke-width": 1.5
284
- })], 10, Ue)) : h("", !0)], 64))
285
- ])
286
- ], 12, Me))], 64))), 128))])) : (i(), m("div", We, [u(l(C), {
243
+ onClick: (t) => L.value = e.id
244
+ }, [y("button", {
245
+ type: "button",
246
+ "aria-pressed": L.value === e.id,
247
+ class: "tpl-saved-block-select tpl:block tpl:w-full tpl:text-left"
248
+ }, [y("span", Pe, [y("span", Fe, x(e.name), 1), y("span", Ie, x(l(M)(l(j).savedBlocks.blockCount, { count: e.content.length })), 1)]), e.category ? (i(), m("span", Le, [y("span", Re, x(e.category), 1)])) : h("", !0)], 8, Ne), y("div", ze, [
249
+ (i(!0), m(b, null, n(dt(e), (e) => (i(), _(ee(e.icon), {
250
+ key: e.type,
251
+ size: 14,
252
+ "stroke-width": 1.5,
253
+ class: "tpl:text-[var(--tpl-text-dim)]"
254
+ }))), 128)),
255
+ J(e) > 0 ? (i(), m("span", Be, " +" + x(J(e)), 1)) : h("", !0),
256
+ Y(e) ? (i(), m("span", {
257
+ key: 1,
258
+ "data-testid": "saved-block-updated",
259
+ class: "tpl:ml-1 tpl:truncate tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]",
260
+ title: ft(e)
261
+ }, x(Y(e)), 9, Ve)) : h("", !0),
262
+ R.value === e.id ? (i(), m("button", {
263
+ key: 2,
264
+ "aria-label": l(j).savedBlocks.deleteConfirm,
265
+ 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)]",
266
+ style: { "background-color": "transparent" },
267
+ onClick: g((t) => pt(e.id), ["stop"])
268
+ }, x(l(j).savedBlocks.deleteConfirm), 9, He)) : (i(), m(b, { key: 3 }, [l(N).canUpdateBlock(e) ? (i(), m("button", {
269
+ key: 0,
270
+ 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)]",
271
+ "aria-label": l(j).savedBlocks.rename,
272
+ title: l(j).savedBlocks.rename,
273
+ onClick: g((t) => mt(e), ["stop"])
274
+ }, [u(l(de), {
275
+ size: 12,
276
+ "stroke-width": 1.5
277
+ })], 8, Ue)) : h("", !0), l(N).canDeleteBlock(e) ? (i(), m("button", {
278
+ key: 1,
279
+ class: f(["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(e) }]),
280
+ "aria-label": l(j).savedBlocks.delete,
281
+ title: l(j).savedBlocks.delete,
282
+ onClick: g((t) => R.value = e.id, ["stop"])
283
+ }, [u(l(le), {
284
+ size: 12,
285
+ "stroke-width": 1.5
286
+ })], 10, We)) : h("", !0)], 64))
287
+ ])], 12, Me))], 64))), 128))])) : (i(), m("div", Ge, [u(l(C), {
287
288
  size: 32,
288
289
  "stroke-width": 1,
289
290
  class: "tpl:text-[var(--tpl-text-dim)]"
290
- }), st.value ? (i(), m("p", k, x(l(M).savedBlocks.noResults), 1)) : (i(), m(b, { key: 1 }, [y("p", Ge, x(l(M).savedBlocks.empty), 1), y("p", Ke, x(l(M).savedBlocks.emptyHint), 1)], 64))]))])
291
- ]), y("div", qe, [q.value ? (i(), m("div", Je, [y("div", Ye, [u(l(at), { blocks: q.value.content }, null, 8, ["blocks"])])])) : (i(), m("div", Xe, [u(l(C), {
291
+ }), lt.value ? (i(), m("p", Ke, x(l(j).savedBlocks.noResults), 1)) : (i(), m(b, { key: 1 }, [y("p", qe, x(l(j).savedBlocks.empty), 1), y("p", Je, x(l(j).savedBlocks.emptyHint), 1)], 64))]))])
292
+ ]), y("div", Ye, [K.value ? (i(), m("div", Xe, [y("div", Ze, [u(l(st), { blocks: K.value.content }, null, 8, ["blocks"])])])) : (i(), m("div", Qe, [u(l(C), {
292
293
  size: 32,
293
294
  "stroke-width": 1,
294
295
  class: "tpl:text-[var(--tpl-text-dim)]"
295
- }), y("p", Ze, x(l(M).savedBlocks.selectToPreview), 1)]))])]),
296
- y("div", Qe, [y("div", $e, [y("label", et, x(l(M).savedBlocks.insertPosition), 1), s(y("select", {
297
- "onUpdate:modelValue": t[6] ||= (e) => W.value = e,
296
+ }), y("p", $e, x(l(j).savedBlocks.selectToPreview), 1)]))])]),
297
+ y("div", et, [y("div", tt, [y("label", nt, x(l(j).savedBlocks.insertPosition), 1), s(y("select", {
298
+ "onUpdate:modelValue": t[6] ||= (e) => U.value = e,
298
299
  class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)] tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
299
- }, [(i(!0), m(b, null, n(ct.value, (e) => (i(), m("option", {
300
+ }, [(i(!0), m(b, null, n(ut.value, (e) => (i(), m("option", {
300
301
  key: e.value,
301
302
  value: e.value
302
- }, x(e.label), 9, tt))), 128))], 512), [[c, W.value]])]), y("div", nt, [y("button", {
303
+ }, x(e.label), 9, rt))), 128))], 512), [[c, U.value]])]), y("div", it, [y("button", {
303
304
  type: "button",
304
305
  "data-testid": "saved-blocks-browser-close",
305
306
  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)]",
306
307
  onClick: $
307
- }, x(l(M).savedBlocks.close), 1), y("button", {
308
+ }, x(l(j).savedBlocks.close), 1), y("button", {
308
309
  type: "button",
309
310
  class: f(l(fe)),
310
- disabled: !q.value,
311
+ disabled: !K.value,
311
312
  onClick: Q
312
- }, x(l(M).savedBlocks.insert), 11, rt)])])
313
+ }, x(l(j).savedBlocks.insert), 11, at)])])
313
314
  ])]),
314
315
  _: 1
315
316
  }, 8, ["visible"]));
316
317
  }
317
318
  });
318
319
  //#endregion
319
- export { A as default };
320
+ export { k as default };
320
321
 
321
- //# sourceMappingURL=SavedBlocksBrowserModal-C015fVMV.js.map
322
+ //# sourceMappingURL=SavedBlocksBrowserModal-CliZBxHo.js.map