@templatical/editor 0.60.4 → 0.62.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 (237) hide show
  1. package/LICENSE +21 -109
  2. package/README.md +3 -3
  3. package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
  4. package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
  5. package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
  6. package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
  7. package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
  8. package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
  9. package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
  10. package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
  11. package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
  12. package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
  13. package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
  14. package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
  15. package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
  16. package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
  17. package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
  18. package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
  19. package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
  20. package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
  21. package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
  22. package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
  23. package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
  24. package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
  25. package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
  26. package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
  27. package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
  28. package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
  30. package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
  31. package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
  32. package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
  33. package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
  34. package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
  35. package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
  36. package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
  37. package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
  38. package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
  39. package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-32v93A9w.js} +4 -4
  40. package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
  41. package/dist/bundle-stats.json +8 -8
  42. package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
  43. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
  44. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
  46. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
  48. package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
  52. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
  54. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
  58. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
  59. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
  60. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
  62. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
  63. package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
  64. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
  65. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
  66. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
  67. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
  68. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
  69. package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
  70. package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
  71. package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
  72. package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
  73. package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
  74. package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
  75. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
  76. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
  78. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
  80. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
  82. package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
  83. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
  84. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
  86. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
  88. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
  90. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
  98. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
  100. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
  104. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
  106. package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
  107. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
  108. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-iRdN04Sa.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
  114. package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
  115. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
  116. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
  117. package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
  118. package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
  119. package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
  120. package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
  121. package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
  122. package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
  123. package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
  124. package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
  125. package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
  126. package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
  127. package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
  128. package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
  129. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
  130. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
  131. package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
  132. package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
  133. package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
  134. package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
  135. package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
  136. package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
  137. package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
  138. package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
  139. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  140. package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
  141. package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
  142. package/dist/cdn/chunks/{src-1MSPRtI8.js → src-9e0wFfHH.js} +4 -2
  143. package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
  144. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
  145. package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
  146. package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
  147. package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
  148. package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
  149. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
  150. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
  151. package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
  152. package/dist/cdn/chunks/useI18n-DwP1ksBW.js.map +1 -0
  153. package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
  154. package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
  156. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
  158. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
  159. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
  160. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
  161. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
  162. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
  163. package/dist/cdn/editor.css +1 -1
  164. package/dist/cdn/editor.js +910 -1006
  165. package/dist/cdn/editor.js.map +1 -1
  166. package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
  167. package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
  168. package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
  169. package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
  170. package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
  171. package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
  172. package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
  173. package/dist/index.d.ts +38 -406
  174. package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
  175. package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
  176. package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
  177. package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
  178. package/dist/style.css +1 -1
  179. package/dist/templatical-editor.js +1087 -1183
  180. package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
  181. package/dist/useI18n-B05qsAsl.js +22 -0
  182. package/dist/useLanguageName-CnpG7FD5.js +39 -0
  183. package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
  184. package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
  185. package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
  186. package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
  187. package/package.json +12 -14
  188. package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
  189. package/dist/CloudPanels-BS49EsuN.js +0 -167
  190. package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
  191. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
  192. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
  193. package/dist/cdn/chunks/CloudPanels-D4dslsyk.js +0 -167
  194. package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
  195. package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
  196. package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
  197. package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
  198. package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
  199. package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
  200. package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
  201. package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
  202. package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
  203. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
  204. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
  205. package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
  206. package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
  207. package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
  208. package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
  209. package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
  210. package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +0 -1
  211. package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
  212. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
  213. package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
  214. package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
  215. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
  216. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
  217. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
  218. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
  219. package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
  220. package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
  221. package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
  222. package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
  223. package/dist/cdn/chunks/src-1MSPRtI8.js.map +0 -1
  224. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
  225. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
  226. package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
  227. package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
  228. package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
  229. package/dist/de-6M4JoHoD.js +0 -19
  230. package/dist/en-FzUuJ8HW.js +0 -19
  231. package/dist/keys-B4DimcgX.js +0 -9
  232. package/dist/languageName-DEEOhDWI.js +0 -10
  233. package/dist/logger-BOu7oEtk.js +0 -24
  234. package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
  235. package/dist/pt-BR-Bp92Fc6J.js +0 -19
  236. package/dist/useCloudI18n-BnuOL1YS.js +0 -22
  237. package/dist/useI18n-Cx9W7OWb.js +0 -16
@@ -1,19 +1,18 @@
1
- import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, R as s, _ as c, b as l, ct as u, dt as d, g as f, h as p, j as m, m as h, mt as g, o as _, p as v, tt as y, u as b, x } from "./draggable-IRVFEZ-b.js";
2
- import { D as S, Ft as ee, K as te, T as ne, Tt as C, _t as w, at as re, j as ie, t as T, tt as ae, u as oe, z as se } from "./icons-DdVB-5WO.js";
1
+ import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, R as s, _ as c, b as l, ct as u, dt as d, g as f, h as p, j as m, m as h, mt as g, o as ee, p as _, tt as v, u as y, x as b } from "./draggable-IRVFEZ-b.js";
2
+ import { D as x, Ft as te, K as ne, T as re, Tt as S, _t as C, at as ie, j as ae, t as w, tt as oe, u as T, z as se } from "./icons-DdVB-5WO.js";
3
3
  import { _ as ce, g as le } from "./dist-BtWMy7UQ.js";
4
4
  import { t as ue } from "./LoadingTrack-o-89hApJ.js";
5
- import { t as de } from "./useI18n-DPg6rPbu.js";
5
+ import { _ as de, ot as fe, t as pe } from "./useI18n-DwP1ksBW.js";
6
6
  import { w as E } from "./styleConstants-Br6CIRoS.js";
7
- import { st as fe, v as pe } from "./keys-ywH4jHJ2.js";
8
- import { t as D } from "./languageName-DEEOhDWI.js";
9
- import { n as O } from "./aiErrors-C3QEMB0x.js";
10
- import { t as k } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
7
+ import { t as me } from "./useLanguageName-CeuoO9WZ.js";
8
+ import { n as D } from "./aiErrors-C3QEMB0x.js";
9
+ import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
11
10
  // src/components/ai/AiPanelShell.vue?vue&type=script&setup=true&lang.ts
12
- var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, M = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, N = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, P = { "data-testid": "ai-panel-title" }, F = {
11
+ var k = ["aria-label", "data-testid"], A = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, j = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, M = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, N = { "data-testid": "ai-panel-title" }, P = {
13
12
  key: 0,
14
13
  "data-testid": "ai-panel-subtitle",
15
14
  class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
16
- }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["aria-label", "title"], R = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, me = /* @__PURE__ */ e({
15
+ }, F = { class: "tpl:flex tpl:items-center tpl:gap-1" }, I = ["aria-label", "title"], L = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, he = /* @__PURE__ */ e({
17
16
  __name: "AiPanelShell",
18
17
  props: {
19
18
  title: {},
@@ -30,37 +29,37 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
30
29
  "data-testid": e.testid,
31
30
  class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
32
31
  }, [
33
- h("div", j, [h("div", M, [h("div", N, [x(u(S), {
32
+ h("div", A, [h("div", j, [h("div", M, [b(u(x), {
34
33
  size: 13,
35
34
  "stroke-width": 2,
36
35
  "aria-hidden": "true"
37
- }), h("span", P, g(e.title), 1)]), e.subtitle ? (t(), c("p", F, g(e.subtitle), 1)) : f("", !0)]), h("div", I, [s(n.$slots, "actions"), h("button", {
36
+ }), h("span", N, g(e.title), 1)]), e.subtitle ? (t(), c("p", P, g(e.subtitle), 1)) : f("", !0)]), h("div", F, [s(n.$slots, "actions"), h("button", {
38
37
  type: "button",
39
38
  "data-testid": "ai-panel-close",
40
39
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
41
40
  "aria-label": e.closeLabel,
42
41
  title: e.closeLabel,
43
42
  onClick: i[0] ||= (e) => r("close")
44
- }, [x(u(T), {
43
+ }, [b(u(w), {
45
44
  size: 14,
46
45
  "stroke-width": 2,
47
46
  "aria-hidden": "true"
48
- })], 8, L)])]),
49
- h("div", R, [s(n.$slots, "default")]),
47
+ })], 8, I)])]),
48
+ h("div", L, [s(n.$slots, "default")]),
50
49
  s(n.$slots, "footer")
51
- ], 8, A));
50
+ ], 8, k));
52
51
  }
53
- }), z = /* @__PURE__ */ new Set([
52
+ }), R = /* @__PURE__ */ new Set([
54
53
  "image/png",
55
54
  "image/jpeg",
56
55
  "image/webp",
57
56
  "image/gif",
58
57
  "application/pdf"
59
58
  ]);
60
- function he(e, t) {
59
+ function ge(e, t) {
61
60
  let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
62
61
  for (let e of t) {
63
- let t = n.length >= 4 ? "tooMany" : z.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
62
+ let t = n.length >= 4 ? "tooMany" : R.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
64
63
  t ? r.push({
65
64
  name: e.name,
66
65
  reason: t
@@ -72,28 +71,28 @@ function he(e, t) {
72
71
  };
73
72
  }
74
73
  // src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
75
- var ge = [
74
+ var _e = [
76
75
  "aria-label",
77
76
  "title",
78
77
  "disabled"
79
- ], _e = {
78
+ ], ve = {
80
79
  key: 0,
81
80
  "data-testid": "ai-chat-drop-hint",
82
81
  class: "tpl:absolute tpl:inset-0 tpl:z-20 tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-primary)] tpl:pointer-events-none"
83
- }, ve = {
82
+ }, ye = {
84
83
  key: 0,
85
84
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
86
- }, ye = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, be = {
85
+ }, be = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xe = {
87
86
  key: 1,
88
87
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
89
- }, xe = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Se = {
88
+ }, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
90
89
  key: 2,
91
90
  class: "tpl:flex tpl:flex-col tpl:gap-4"
92
- }, Ce = {
91
+ }, we = {
93
92
  key: 0,
94
93
  "data-testid": "ai-chat-language",
95
94
  class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
96
- }, we = {
95
+ }, Te = {
97
96
  key: 1,
98
97
  "data-testid": "ai-chat-prompt",
99
98
  class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
@@ -103,10 +102,10 @@ var ge = [
103
102
  "max-width": "85%",
104
103
  "box-shadow": "var(--tpl-shadow)"
105
104
  }
106
- }, Te = {
105
+ }, Ee = {
107
106
  key: 2,
108
107
  class: "tpl:flex tpl:flex-col tpl:gap-2"
109
- }, Ee = {
108
+ }, De = {
110
109
  key: 1,
111
110
  "data-testid": "ai-chat-reply",
112
111
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
@@ -116,40 +115,40 @@ var ge = [
116
115
  color: "var(--tpl-text)",
117
116
  "box-shadow": "var(--tpl-shadow)"
118
117
  }
119
- }, De = {
118
+ }, Oe = {
120
119
  key: 2,
121
120
  "data-testid": "ai-chat-applied",
122
121
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
123
- }, Oe = ["disabled", "onClick"], ke = {
122
+ }, ke = ["disabled", "onClick"], Ae = {
124
123
  key: 3,
125
124
  role: "alert",
126
125
  "data-testid": "ai-chat-item-error",
127
126
  class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
128
- }, Ae = {
127
+ }, je = {
129
128
  key: 1,
130
129
  class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
131
130
  style: {
132
131
  "background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
133
132
  "backdrop-filter": "blur(2px)"
134
133
  }
135
- }, je = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Me = ["onClick"], Ne = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Pe = ["disabled"], Fe = {
134
+ }, Me = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Ne = ["onClick"], Pe = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Fe = ["disabled"], Ie = {
136
135
  key: 0,
137
136
  class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
138
- }, B = { class: "tpl:truncate" }, Ie = [
137
+ }, z = { class: "tpl:truncate" }, Le = [
139
138
  "aria-label",
140
139
  "disabled",
141
140
  "onClick"
142
- ], Le = {
141
+ ], Re = {
143
142
  key: 1,
144
143
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
145
- }, Re = {
144
+ }, ze = {
146
145
  "aria-live": "polite",
147
146
  class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
148
- }, ze = {
147
+ }, Be = {
149
148
  key: 1,
150
149
  role: "status",
151
150
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
152
- }, Be = ["disabled"], Ve = {
151
+ }, Ve = ["disabled"], He = {
153
152
  key: 2,
154
153
  role: "alert",
155
154
  "data-testid": "ai-chat-error",
@@ -158,34 +157,34 @@ var ge = [
158
157
  "background-color": "var(--tpl-danger-light)",
159
158
  color: "var(--tpl-danger)"
160
159
  }
161
- }, He = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ue = {
160
+ }, Ue = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, We = {
162
161
  key: 0,
163
162
  "data-testid": "ai-active-language",
164
163
  class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
165
- }, We = [
164
+ }, Ge = [
166
165
  "placeholder",
167
166
  "aria-label",
168
167
  "disabled"
169
- ], Ge = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ke = [
168
+ ], Ke = { class: "tpl:flex tpl:items-center tpl:justify-between" }, qe = [
170
169
  "aria-label",
171
170
  "title",
172
171
  "disabled"
173
- ], qe = ["aria-label", "title"], Je = [
172
+ ], Je = ["aria-label", "title"], Ye = [
174
173
  "aria-label",
175
174
  "title",
176
175
  "disabled"
177
- ], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, V = /*#__PURE__*/ k(/* @__PURE__ */ e({
176
+ ], Xe = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ O(/* @__PURE__ */ e({
178
177
  __name: "AiChatPanel",
179
178
  props: { feature: {} },
180
179
  emits: ["close"],
181
180
  setup(e, { emit: s }) {
182
- let k = e, A = s, { t: j, format: M } = de(), N = o(pe, null), P = o(fe, void 0), F = y(""), I = y(null), L = y(null), R = y([]), z = y([]), V = y(0);
183
- r(() => k.feature.templateSession.value, () => {
184
- F.value = "", R.value = [], z.value = [], V.value = 0;
181
+ let O = e, k = s, { t: A, format: j } = pe(), M = o(de, null), N = me(M), P = o(fe, void 0), F = v(""), I = v(null), L = v(null), R = v([]), B = v([]), V = v(0);
182
+ r(() => O.feature.templateSession.value, () => {
183
+ F.value = "", R.value = [], B.value = [], V.value = 0;
185
184
  }, { flush: "sync" });
186
- let H = v(() => k.feature.has("chatAttachments"));
185
+ let H = _(() => O.feature.has("chatAttachments"));
187
186
  function U(e) {
188
- let t = he(R.value, e);
187
+ let t = ge(R.value, e);
189
188
  R.value = t.accepted;
190
189
  let n = {
191
190
  tooMany: "attachTooMany",
@@ -193,107 +192,107 @@ var ge = [
193
192
  totalTooLarge: "attachTotalTooLarge",
194
193
  wrongType: "attachWrongType"
195
194
  };
196
- z.value = t.errors.map((e) => M(j.ai.chat[n[e.reason]], { name: e.name }));
195
+ B.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
197
196
  }
198
- function Xe(e) {
197
+ function Ze(e) {
199
198
  let t = e.target;
200
199
  !Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
201
200
  }
202
- function Ze(e) {
203
- Y.value || (R.value.splice(e, 1), z.value = []);
201
+ function Qe(e) {
202
+ Y.value || (R.value.splice(e, 1), B.value = []);
204
203
  }
205
204
  function W(e) {
206
205
  return Array.from(e.dataTransfer?.types ?? []).includes("Files");
207
206
  }
208
- function Qe(e) {
207
+ function $e(e) {
209
208
  H.value && !Y.value && W(e) && (e.preventDefault(), V.value++);
210
209
  }
211
- function $e(e) {
210
+ function et(e) {
212
211
  W(e) && (V.value = Math.max(0, V.value - 1));
213
212
  }
214
- function et(e) {
213
+ function tt(e) {
215
214
  H.value && W(e) && e.preventDefault();
216
215
  }
217
- function tt(e) {
216
+ function nt(e) {
218
217
  V.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
219
218
  }
220
- r(() => k.feature.importQueue.value, (e) => {
221
- H.value && e.length && (U(e), F.value.trim() || (F.value = j.ai.import.prompt), k.feature.importQueue.value = [], m(() => I.value?.focus()));
219
+ r(() => O.feature.importQueue.value, (e) => {
220
+ H.value && e.length && (U(e), F.value.trim() || (F.value = A.ai.import.prompt), O.feature.importQueue.value = [], m(() => I.value?.focus()));
222
221
  }, { immediate: !0 });
223
- let G = y(null), K = y(0), q = v(() => k.feature.isTemplateEmpty.value ? [
224
- j.ai.starters.emptyWelcome,
225
- j.ai.starters.emptyLaunch,
226
- j.ai.starters.emptyNewsletter
222
+ let G = v(null), K = v(0), q = _(() => O.feature.isTemplateEmpty.value ? [
223
+ A.ai.starters.emptyWelcome,
224
+ A.ai.starters.emptyLaunch,
225
+ A.ai.starters.emptyNewsletter
227
226
  ] : [
228
- j.ai.starters.filledShorten,
229
- j.ai.starters.filledFriendlier,
230
- j.ai.starters.filledDates,
231
- j.ai.starters.filledCta
232
- ]), J = v(() => k.feature.messages.value), Y = v(() => k.feature.isRunning.value), X = v(() => {
233
- let e = k.feature.failure.value;
234
- return e ? O(e.error, j.ai.errors, M, P, e.context) : "";
235
- }), { pause: Z, resume: nt } = le(() => {
227
+ A.ai.starters.filledShorten,
228
+ A.ai.starters.filledFriendlier,
229
+ A.ai.starters.filledDates,
230
+ A.ai.starters.filledCta
231
+ ]), J = _(() => O.feature.messages.value), Y = _(() => O.feature.isRunning.value), X = _(() => {
232
+ let e = O.feature.failure.value;
233
+ return e ? D(e.error, A.ai.errors, j, P, e.context) : "";
234
+ }), { pause: Z, resume: rt } = le(() => {
236
235
  K.value < q.value.length ? K.value++ : Z();
237
- }, 150, { immediate: !1 }), { start: rt } = ce(() => nt(), 100, { immediate: !1 });
236
+ }, 150, { immediate: !1 }), { start: it } = ce(() => rt(), 100, { immediate: !1 });
238
237
  r(() => q.value.length, (e) => {
239
- Z(), K.value = 0, e > 0 && rt();
238
+ Z(), K.value = 0, e > 0 && it();
240
239
  }, { immediate: !0 });
241
240
  function Q() {
242
241
  m(() => {
243
242
  G.value && (G.value.scrollTop = G.value.scrollHeight);
244
243
  });
245
244
  }
246
- r(() => J.value.length, Q), r(() => [k.feature.failedPrompt.value, k.feature.failedAttachments.value], ([e, t]) => {
245
+ r(() => J.value.length, Q), r(() => [O.feature.failedPrompt.value, O.feature.failedAttachments.value], ([e, t]) => {
247
246
  e && (F.value = e, R.value = [...t]);
248
247
  }, { immediate: !0 });
249
248
  async function $() {
250
249
  let e = F.value.trim();
251
250
  if (!e || Y.value) return;
252
251
  let t = [...R.value];
253
- F.value = "", R.value = [], z.value = [], Q(), await k.feature.send(e, t), Q();
254
- }
255
- function it(e) {
256
- return e.undone ? j.ai.chat.undone : e.operationCount === 1 ? j.ai.chat.appliedChange : M(j.ai.chat.appliedChanges, { count: e.operationCount });
252
+ F.value = "", R.value = [], B.value = [], Q(), await O.feature.send(e, t), Q();
257
253
  }
258
254
  function at(e) {
259
- return e.failure ? O(e.failure.error, j.ai.errors, M, P, e.failure.context) : "";
255
+ return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
260
256
  }
261
257
  function ot(e) {
262
- e.undone ? k.feature.redoMessage(e.id) : k.feature.undoMessage(e.id);
258
+ return e.failure ? D(e.failure.error, A.ai.errors, j, P, e.failure.context) : "";
263
259
  }
264
260
  function st(e) {
265
- Z(), F.value = e, $();
261
+ e.undone ? O.feature.redoMessage(e.id) : O.feature.undoMessage(e.id);
266
262
  }
267
263
  function ct(e) {
264
+ Z(), F.value = e, $();
265
+ }
266
+ function lt(e) {
268
267
  e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
269
268
  }
270
- return (r, o) => (t(), p(me, {
271
- title: u(j).ai.chat.title,
272
- subtitle: u(j).ai.chat.notice,
269
+ return (r, o) => (t(), p(he, {
270
+ title: u(A).ai.chat.title,
271
+ subtitle: u(A).ai.chat.notice,
273
272
  testid: "ai-panel-chat",
274
- "close-label": u(j).ai.chat.close,
275
- onClose: o[5] ||= (e) => A("close"),
276
- onDragenter: Qe,
277
- onDragleave: $e,
278
- onDragover: et,
279
- onDrop: tt
273
+ "close-label": u(A).ai.chat.close,
274
+ onClose: o[5] ||= (e) => k("close"),
275
+ onDragenter: $e,
276
+ onDragleave: et,
277
+ onDragover: tt,
278
+ onDrop: nt
280
279
  }, {
281
280
  actions: n(() => [e.feature.canClear && J.value.length > 0 ? (t(), c("button", {
282
281
  key: 0,
283
282
  type: "button",
284
283
  "data-testid": "ai-chat-new",
285
284
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
286
- "aria-label": u(j).ai.chat.newChat,
287
- title: u(j).ai.chat.newChat,
285
+ "aria-label": u(A).ai.chat.newChat,
286
+ title: u(A).ai.chat.newChat,
288
287
  disabled: Y.value,
289
288
  onClick: o[0] ||= (t) => e.feature.newChat()
290
- }, [x(u(ae), {
289
+ }, [b(u(oe), {
291
290
  size: 14,
292
291
  "stroke-width": 2,
293
292
  "aria-hidden": "true"
294
- })], 8, ge)) : f("", !0)]),
295
- footer: n(() => [h("div", Ne, [
296
- H.value ? (t(), c(b, { key: 0 }, [
293
+ })], 8, _e)) : f("", !0)]),
294
+ footer: n(() => [h("div", Pe, [
295
+ H.value ? (t(), c(y, { key: 0 }, [
297
296
  h("input", {
298
297
  ref_key: "fileInput",
299
298
  ref: L,
@@ -303,161 +302,161 @@ var ge = [
303
302
  accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
304
303
  hidden: "",
305
304
  disabled: Y.value,
306
- onChange: Xe
307
- }, null, 40, Pe),
308
- R.value.length ? (t(), c("div", Fe, [(t(!0), c(b, null, a(R.value, (e, n) => (t(), c("span", {
305
+ onChange: Ze
306
+ }, null, 40, Fe),
307
+ R.value.length ? (t(), c("div", Ie, [(t(!0), c(y, null, a(R.value, (e, n) => (t(), c("span", {
309
308
  key: n,
310
309
  "data-testid": "ai-chat-attachment",
311
310
  class: "tpl:flex tpl:max-w-full tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)]"
312
311
  }, [
313
- e.type === "application/pdf" ? (t(), p(u(C), {
312
+ e.type === "application/pdf" ? (t(), p(u(S), {
314
313
  key: 0,
315
314
  size: 12,
316
315
  "aria-hidden": "true"
317
- })) : (t(), p(u(w), {
316
+ })) : (t(), p(u(C), {
318
317
  key: 1,
319
318
  size: 12,
320
319
  "aria-hidden": "true"
321
320
  })),
322
- h("span", B, g(e.name), 1),
321
+ h("span", z, g(e.name), 1),
323
322
  h("button", {
324
323
  type: "button",
325
- "aria-label": u(M)(u(j).ai.chat.removeAttachment, { name: e.name }),
324
+ "aria-label": u(j)(u(A).ai.chat.removeAttachment, { name: e.name }),
326
325
  disabled: Y.value,
327
326
  class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
328
- onClick: (e) => Ze(n)
329
- }, [x(u(T), {
327
+ onClick: (e) => Qe(n)
328
+ }, [b(u(w), {
330
329
  size: 12,
331
330
  "aria-hidden": "true"
332
- })], 8, Ie)
331
+ })], 8, Le)
333
332
  ]))), 128))])) : f("", !0),
334
- R.value.length ? (t(), c("p", Le, g(u(j).ai.import.placeholderNote), 1)) : f("", !0),
335
- h("div", Re, [(t(!0), c(b, null, a(z.value, (e, n) => (t(), c("p", {
333
+ R.value.length ? (t(), c("p", Re, g(u(A).ai.import.placeholderNote), 1)) : f("", !0),
334
+ h("div", ze, [(t(!0), c(y, null, a(B.value, (e, n) => (t(), c("p", {
336
335
  key: n,
337
336
  class: "tpl:mb-2"
338
337
  }, g(e), 1))), 128))])
339
338
  ], 64)) : f("", !0),
340
- e.feature.keptYourVersion.value ? (t(), c("div", ze, [h("p", null, g(u(j).ai.chat.keptYourVersion), 1), h("button", {
339
+ e.feature.keptYourVersion.value ? (t(), c("div", Be, [h("p", null, g(u(A).ai.chat.keptYourVersion), 1), h("button", {
341
340
  type: "button",
342
341
  disabled: Y.value,
343
342
  class: d(u(E)),
344
343
  onClick: o[1] ||= (t) => e.feature.reloadTemplate()
345
- }, g(u(j).ai.chat.reload), 11, Be)])) : f("", !0),
346
- X.value ? (t(), c("div", Ve, [x(u(ee), {
344
+ }, g(u(A).ai.chat.reload), 11, Ve)])) : f("", !0),
345
+ X.value ? (t(), c("div", He, [b(u(te), {
347
346
  size: 14,
348
347
  "stroke-width": 2,
349
348
  class: "tpl:mt-0.5 tpl:shrink-0",
350
349
  "aria-hidden": "true"
351
350
  }), h("span", null, g(X.value), 1)])) : f("", !0),
352
- h("div", He, [
353
- u(N)?.activeLocale?.value ? (t(), c("p", Ue, g(u(M)(u(j).localization.aiActiveLanguage, { language: u(D)(u(N).activeLocale.value) })), 1)) : f("", !0),
351
+ h("div", Ue, [
352
+ u(M)?.activeLocale?.value ? (t(), c("p", We, g(u(j)(u(A).localization.aiActiveLanguage, { language: u(N)(u(M).activeLocale.value) })), 1)) : f("", !0),
354
353
  i(h("textarea", {
355
354
  ref_key: "composer",
356
355
  ref: I,
357
356
  "onUpdate:modelValue": o[2] ||= (e) => F.value = e,
358
357
  "data-testid": "ai-chat-input",
359
358
  class: "tpl:max-h-32 tpl:min-h-[44px] tpl:w-full tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
360
- placeholder: u(j).ai.chat.inputPlaceholder,
361
- "aria-label": u(j).ai.chat.inputPlaceholder,
359
+ placeholder: u(A).ai.chat.inputPlaceholder,
360
+ "aria-label": u(A).ai.chat.inputPlaceholder,
362
361
  disabled: Y.value,
363
362
  maxlength: "4000",
364
363
  rows: "3",
365
- onKeydown: ct
366
- }, null, 40, We), [[_, F.value]]),
367
- h("div", Ge, [H.value ? (t(), c("button", {
364
+ onKeydown: lt
365
+ }, null, 40, Ge), [[ee, F.value]]),
366
+ h("div", Ke, [H.value ? (t(), c("button", {
368
367
  key: 0,
369
368
  type: "button",
370
- "aria-label": u(j).ai.chat.attach,
371
- title: u(j).ai.chat.attach,
369
+ "aria-label": u(A).ai.chat.attach,
370
+ title: u(A).ai.chat.attach,
372
371
  disabled: Y.value,
373
372
  class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
374
373
  onClick: o[3] ||= (e) => L.value?.click()
375
- }, [x(u(te), {
374
+ }, [b(u(ne), {
376
375
  size: 16,
377
376
  "aria-hidden": "true"
378
- })], 8, Ke)) : f("", !0), Y.value ? (t(), c("button", {
377
+ })], 8, qe)) : f("", !0), Y.value ? (t(), c("button", {
379
378
  key: 1,
380
379
  type: "button",
381
380
  "data-testid": "ai-chat-stop",
382
381
  class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-primary)]",
383
- "aria-label": u(j).ai.chat.stop,
384
- title: u(j).ai.chat.stop,
382
+ "aria-label": u(A).ai.chat.stop,
383
+ title: u(A).ai.chat.stop,
385
384
  onClick: o[4] ||= (t) => e.feature.stop()
386
- }, [x(u(ne), {
385
+ }, [b(u(re), {
387
386
  size: 16,
388
387
  "stroke-width": 2,
389
388
  "aria-hidden": "true"
390
- })], 8, qe)) : (t(), c("button", {
389
+ })], 8, Je)) : (t(), c("button", {
391
390
  key: 2,
392
391
  type: "button",
393
392
  "data-testid": "ai-chat-send",
394
393
  class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
395
- "aria-label": u(j).ai.chat.send,
396
- title: u(j).ai.chat.send,
394
+ "aria-label": u(A).ai.chat.send,
395
+ title: u(A).ai.chat.send,
397
396
  disabled: !F.value.trim(),
398
397
  onClick: $
399
- }, [x(u(ie), {
398
+ }, [b(u(ae), {
400
399
  size: 16,
401
400
  "stroke-width": 2,
402
401
  "aria-hidden": "true"
403
- })], 8, Je))])
402
+ })], 8, Ye))])
404
403
  ]),
405
- h("p", Ye, g(u(j).ai.chat.disclaimer), 1)
404
+ h("p", Xe, g(u(A).ai.chat.disclaimer), 1)
406
405
  ])]),
407
406
  default: n(() => [
408
- H.value && V.value > 0 && !Y.value ? (t(), c("div", _e, g(u(j).ai.chat.dropHint), 1)) : f("", !0),
407
+ H.value && V.value > 0 && !Y.value ? (t(), c("div", ve, g(u(A).ai.chat.dropHint), 1)) : f("", !0),
409
408
  h("div", {
410
409
  ref_key: "messagesContainer",
411
410
  ref: G,
412
411
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
413
- }, [e.feature.isLoadingHistory.value ? (t(), c("div", ve, [x(u(re), {
412
+ }, [e.feature.isLoadingHistory.value ? (t(), c("div", ye, [b(u(ie), {
414
413
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
415
414
  size: 24,
416
415
  "stroke-width": 2,
417
416
  "aria-hidden": "true"
418
- }), h("p", ye, g(u(j).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (t(), c("div", be, [x(u(S), {
417
+ }), h("p", be, g(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (t(), c("div", xe, [b(u(x), {
419
418
  size: 32,
420
419
  "stroke-width": 1.5,
421
420
  class: "tpl:text-[var(--tpl-text-dim)]",
422
421
  "aria-hidden": "true"
423
- }), h("p", xe, g(u(j).ai.chat.placeholder), 1)])) : (t(), c("div", Se, [(t(!0), c(b, null, a(J.value, (e) => (t(), c("div", {
422
+ }), h("p", Se, g(u(A).ai.chat.placeholder), 1)])) : (t(), c("div", Ce, [(t(!0), c(y, null, a(J.value, (e) => (t(), c("div", {
424
423
  key: e.id,
425
424
  class: "tpl:flex tpl:flex-col tpl:gap-2"
426
- }, [typeof e.locale == "string" ? (t(), c("span", Ce, g(u(D)(e.locale)), 1)) : f("", !0), e.role === "user" ? (t(), c("div", we, [l(g(e.text) + " ", 1), (t(!0), c(b, null, a(e.attachments, (e, n) => (t(), c("span", {
425
+ }, [typeof e.locale == "string" ? (t(), c("span", we, g(u(N)(e.locale)), 1)) : f("", !0), e.role === "user" ? (t(), c("div", Te, [l(g(e.text) + " ", 1), (t(!0), c(y, null, a(e.attachments, (e, n) => (t(), c("span", {
427
426
  key: n,
428
427
  "data-testid": "ai-chat-history-attachment",
429
428
  class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs"
430
- }, [e.kind === "pdf" ? (t(), p(u(C), {
429
+ }, [e.kind === "pdf" ? (t(), p(u(S), {
431
430
  key: 0,
432
431
  size: 12,
433
432
  "aria-hidden": "true"
434
- })) : (t(), p(u(w), {
433
+ })) : (t(), p(u(C), {
435
434
  key: 1,
436
435
  size: 12,
437
436
  "aria-hidden": "true"
438
- })), l(g(e.name), 1)]))), 128))])) : (t(), c("div", Te, [
439
- e.text === "" && e.status === "streaming" ? (t(), p(ue, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", Ee, g(e.text), 1)),
440
- e.operationCount > 0 ? (t(), c("div", De, [h("span", null, g(it(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
437
+ })), l(g(e.name), 1)]))), 128))])) : (t(), c("div", Ee, [
438
+ e.text === "" && e.status === "streaming" ? (t(), p(ue, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", De, g(e.text), 1)),
439
+ e.operationCount > 0 ? (t(), c("div", Oe, [h("span", null, g(at(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
441
440
  key: 0,
442
441
  type: "button",
443
442
  "data-testid": "ai-chat-undo",
444
443
  class: d(u(E)),
445
444
  disabled: Y.value,
446
- onClick: (t) => ot(e)
445
+ onClick: (t) => st(e)
447
446
  }, [e.undone ? (t(), p(u(se), {
448
447
  key: 0,
449
448
  size: 12,
450
449
  "stroke-width": 2,
451
450
  "aria-hidden": "true"
452
- })) : (t(), p(u(oe), {
451
+ })) : (t(), p(u(T), {
453
452
  key: 1,
454
453
  size: 12,
455
454
  "stroke-width": 2,
456
455
  "aria-hidden": "true"
457
- })), l(" " + g(e.undone ? u(j).ai.chat.redo : u(j).ai.chat.undo), 1)], 10, Oe)) : f("", !0)])) : f("", !0),
458
- e.failure ? (t(), c("p", ke, g(at(e)), 1)) : f("", !0)
456
+ })), l(" " + g(e.undone ? u(A).ai.chat.redo : u(A).ai.chat.undo), 1)], 10, ke)) : f("", !0)])) : f("", !0),
457
+ e.failure ? (t(), c("p", Ae, g(ot(e)), 1)) : f("", !0)
459
458
  ]))]))), 128))]))], 512),
460
- J.value.length === 0 && q.value.length > 0 ? (t(), c("div", Ae, [h("div", je, [(t(!0), c(b, null, a(q.value, (e, n) => (t(), c("button", {
459
+ J.value.length === 0 && q.value.length > 0 ? (t(), c("div", je, [h("div", Me, [(t(!0), c(y, null, a(q.value, (e, n) => (t(), c("button", {
461
460
  key: n,
462
461
  type: "button",
463
462
  "data-testid": "ai-chat-starter",
@@ -468,8 +467,8 @@ var ge = [
468
467
  "background-color": "var(--tpl-bg)",
469
468
  "box-shadow": "var(--tpl-shadow)"
470
469
  },
471
- onClick: (t) => st(e)
472
- }, g(e), 11, Me))), 128))])])) : f("", !0)
470
+ onClick: (t) => ct(e)
471
+ }, g(e), 11, Ne))), 128))])])) : f("", !0)
473
472
  ]),
474
473
  _: 1
475
474
  }, 8, [
@@ -478,7 +477,7 @@ var ge = [
478
477
  "close-label"
479
478
  ]));
480
479
  }
481
- }), [["__scopeId", "data-v-51fb7448"]]);
482
- export { V as default };
480
+ }), [["__scopeId", "data-v-35cc75c0"]]);
481
+ export { B as default };
483
482
 
484
- //# sourceMappingURL=AiChatPanel-DTYmFRwb.js.map
483
+ //# sourceMappingURL=AiChatPanel-CEDr_x8G.js.map