@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,22 +1,21 @@
1
1
  import { B as e, F as t, Ft as n, M as r, Mt as i, O as a, P as o, U as s, W as ee, _ as c, c as l, ct as u, d, et as f, f as p, g as m, l as h, r as g, u as _, w as v, y } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
2
- import { a as b } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
3
- import { t as te } from "./circle-exclamation-point-BCx1tR91.js";
4
- import { t as x } from "./createLucideIcon-BKeRiObH.js";
5
- import { t as S } from "./image-g47lDP0J.js";
6
- import { t as C } from "./x-CuyPLm0U.js";
7
- import { t as ne } from "./loader-circle-uLY01591.js";
8
- import { t as re } from "./send-BJEuoIc2.js";
9
- import { t as w } from "./sparkles-zWGR8hrs.js";
10
- import { t as ie } from "./square--3H462TJ.js";
11
- import { _ as ae, g as oe } from "./dist-A328tG0Z.js";
12
- import { t as se } from "./LoadingTrack-c4SeD16s.js";
13
- import { t as ce } from "./useI18n-Cx9W7OWb.js";
14
- import { w as T } from "./styleConstants-Br6CIRoS.js";
15
- import { st as le, v as ue } from "./keys-B4DimcgX.js";
16
- import { t as E } from "./languageName-DEEOhDWI.js";
17
- import { n as D } from "./aiErrors-C3QEMB0x.js";
18
- import { t as O } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
19
- var k = x({
2
+ import { a as te } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
3
+ import { t as ne } from "./circle-exclamation-point-BCx1tR91.js";
4
+ import { t as b } from "./createLucideIcon-BKeRiObH.js";
5
+ import { t as x } from "./image-g47lDP0J.js";
6
+ import { t as S } from "./x-CuyPLm0U.js";
7
+ import { t as re } from "./loader-circle-uLY01591.js";
8
+ import { t as ie } from "./send-BJEuoIc2.js";
9
+ import { t as C } from "./sparkles-zWGR8hrs.js";
10
+ import { t as ae } from "./square--3H462TJ.js";
11
+ import { _ as oe, g as se } from "./dist-A328tG0Z.js";
12
+ import { t as ce } from "./LoadingTrack-c4SeD16s.js";
13
+ import { _ as le, ot as ue, t as de } from "./useI18n-B05qsAsl.js";
14
+ import { w } from "./styleConstants-Br6CIRoS.js";
15
+ import { t as fe } from "./useLanguageName-CnpG7FD5.js";
16
+ import { n as T } from "./aiErrors-C3QEMB0x.js";
17
+ import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
18
+ var D = b({
20
19
  name: "file-text",
21
20
  size: 24,
22
21
  node: [
@@ -41,7 +40,7 @@ var k = x({
41
40
  key: "z1uh3a"
42
41
  }]
43
42
  ]
44
- }), de = x({
43
+ }), O = b({
45
44
  name: "message-square-plus",
46
45
  size: 24,
47
46
  node: [
@@ -58,14 +57,14 @@ var k = x({
58
57
  key: "1fldmi"
59
58
  }]
60
59
  ]
61
- }), fe = x({
60
+ }), pe = b({
62
61
  name: "paperclip",
63
62
  size: 24,
64
63
  node: [["path", {
65
64
  d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
66
65
  key: "1miecu"
67
66
  }]]
68
- }), pe = x({
67
+ }), me = b({
69
68
  name: "redo-2",
70
69
  size: 24,
71
70
  node: [["path", {
@@ -75,7 +74,7 @@ var k = x({
75
74
  d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
76
75
  key: "6uklza"
77
76
  }]]
78
- }), me = x({
77
+ }), he = b({
79
78
  name: "undo-2",
80
79
  size: 24,
81
80
  node: [["path", {
@@ -85,11 +84,11 @@ var k = x({
85
84
  d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
86
85
  key: "f3b9sd"
87
86
  }]]
88
- }), 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 = {
87
+ }), 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 = {
89
88
  key: 0,
90
89
  "data-testid": "ai-panel-subtitle",
91
90
  class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
92
- }, 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" }, z = /* @__PURE__ */ y({
91
+ }, 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" }, R = /* @__PURE__ */ y({
93
92
  __name: "AiPanelShell",
94
93
  props: {
95
94
  title: {},
@@ -106,37 +105,37 @@ var k = x({
106
105
  "data-testid": e.testid,
107
106
  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)]"
108
107
  }, [
109
- h("div", j, [h("div", M, [h("div", N, [c(u(w), {
108
+ h("div", A, [h("div", j, [h("div", M, [c(u(C), {
110
109
  size: 13,
111
110
  "stroke-width": 2,
112
111
  "aria-hidden": "true"
113
- }), h("span", P, n(e.title), 1)]), e.subtitle ? (r(), p("p", F, n(e.subtitle), 1)) : d("", !0)]), h("div", I, [t(i.$slots, "actions"), h("button", {
112
+ }), h("span", N, n(e.title), 1)]), e.subtitle ? (r(), p("p", P, n(e.subtitle), 1)) : d("", !0)]), h("div", F, [t(i.$slots, "actions"), h("button", {
114
113
  type: "button",
115
114
  "data-testid": "ai-panel-close",
116
115
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
117
116
  "aria-label": e.closeLabel,
118
117
  title: e.closeLabel,
119
118
  onClick: o[0] ||= (e) => a("close")
120
- }, [c(u(C), {
119
+ }, [c(u(S), {
121
120
  size: 14,
122
121
  "stroke-width": 2,
123
122
  "aria-hidden": "true"
124
- })], 8, L)])]),
125
- h("div", R, [t(i.$slots, "default")]),
123
+ })], 8, I)])]),
124
+ h("div", L, [t(i.$slots, "default")]),
126
125
  t(i.$slots, "footer")
127
- ], 8, A));
126
+ ], 8, k));
128
127
  }
129
- }), B = /* @__PURE__ */ new Set([
128
+ }), z = /* @__PURE__ */ new Set([
130
129
  "image/png",
131
130
  "image/jpeg",
132
131
  "image/webp",
133
132
  "image/gif",
134
133
  "application/pdf"
135
134
  ]);
136
- function he(e, t) {
135
+ function ge(e, t) {
137
136
  let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
138
137
  for (let e of t) {
139
- let t = n.length >= 4 ? "tooMany" : B.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
138
+ let t = n.length >= 4 ? "tooMany" : z.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
140
139
  t ? r.push({
141
140
  name: e.name,
142
141
  reason: t
@@ -148,28 +147,28 @@ function he(e, t) {
148
147
  };
149
148
  }
150
149
  // src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
151
- var ge = [
150
+ var _e = [
152
151
  "aria-label",
153
152
  "title",
154
153
  "disabled"
155
- ], _e = {
154
+ ], ve = {
156
155
  key: 0,
157
156
  "data-testid": "ai-chat-drop-hint",
158
157
  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"
159
- }, ve = {
158
+ }, ye = {
160
159
  key: 0,
161
160
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
162
- }, ye = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, be = {
161
+ }, be = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xe = {
163
162
  key: 1,
164
163
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
165
- }, xe = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Se = {
164
+ }, Se = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ce = {
166
165
  key: 2,
167
166
  class: "tpl:flex tpl:flex-col tpl:gap-4"
168
- }, Ce = {
167
+ }, we = {
169
168
  key: 0,
170
169
  "data-testid": "ai-chat-language",
171
170
  class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
172
- }, we = {
171
+ }, Te = {
173
172
  key: 1,
174
173
  "data-testid": "ai-chat-prompt",
175
174
  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",
@@ -179,10 +178,10 @@ var ge = [
179
178
  "max-width": "85%",
180
179
  "box-shadow": "var(--tpl-shadow)"
181
180
  }
182
- }, Te = {
181
+ }, Ee = {
183
182
  key: 2,
184
183
  class: "tpl:flex tpl:flex-col tpl:gap-2"
185
- }, Ee = {
184
+ }, De = {
186
185
  key: 1,
187
186
  "data-testid": "ai-chat-reply",
188
187
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
@@ -192,40 +191,40 @@ var ge = [
192
191
  color: "var(--tpl-text)",
193
192
  "box-shadow": "var(--tpl-shadow)"
194
193
  }
195
- }, De = {
194
+ }, Oe = {
196
195
  key: 2,
197
196
  "data-testid": "ai-chat-applied",
198
197
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
199
- }, Oe = ["disabled", "onClick"], ke = {
198
+ }, ke = ["disabled", "onClick"], Ae = {
200
199
  key: 3,
201
200
  role: "alert",
202
201
  "data-testid": "ai-chat-item-error",
203
202
  class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
204
- }, Ae = {
203
+ }, je = {
205
204
  key: 1,
206
205
  class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
207
206
  style: {
208
207
  "background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
209
208
  "backdrop-filter": "blur(2px)"
210
209
  }
211
- }, 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"], V = {
210
+ }, 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"], B = {
212
211
  key: 0,
213
212
  class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
214
- }, Fe = { class: "tpl:truncate" }, Ie = [
213
+ }, Ie = { class: "tpl:truncate" }, Le = [
215
214
  "aria-label",
216
215
  "disabled",
217
216
  "onClick"
218
- ], Le = {
217
+ ], Re = {
219
218
  key: 1,
220
219
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
221
- }, Re = {
220
+ }, ze = {
222
221
  "aria-live": "polite",
223
222
  class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
224
- }, ze = {
223
+ }, Be = {
225
224
  key: 1,
226
225
  role: "status",
227
226
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
228
- }, Be = ["disabled"], Ve = {
227
+ }, Ve = ["disabled"], He = {
229
228
  key: 2,
230
229
  role: "alert",
231
230
  "data-testid": "ai-chat-error",
@@ -234,34 +233,34 @@ var ge = [
234
233
  "background-color": "var(--tpl-danger-light)",
235
234
  color: "var(--tpl-danger)"
236
235
  }
237
- }, 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 = {
236
+ }, 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 = {
238
237
  key: 0,
239
238
  "data-testid": "ai-active-language",
240
239
  class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
241
- }, We = [
240
+ }, Ge = [
242
241
  "placeholder",
243
242
  "aria-label",
244
243
  "disabled"
245
- ], Ge = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ke = [
244
+ ], Ke = { class: "tpl:flex tpl:items-center tpl:justify-between" }, qe = [
246
245
  "aria-label",
247
246
  "title",
248
247
  "disabled"
249
- ], qe = ["aria-label", "title"], Je = [
248
+ ], Je = ["aria-label", "title"], Ye = [
250
249
  "aria-label",
251
250
  "title",
252
251
  "disabled"
253
- ], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/ O(/* @__PURE__ */ y({
252
+ ], Xe = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, V = /*#__PURE__*/ E(/* @__PURE__ */ y({
254
253
  __name: "AiChatPanel",
255
254
  props: { feature: {} },
256
255
  emits: ["close"],
257
256
  setup(t, { emit: y }) {
258
- let x = t, O = y, { t: A, format: j } = ce(), M = v(ue, null), N = v(le, void 0), P = f(""), F = f(null), I = f(null), L = f([]), R = f([]), B = f(0);
259
- e(() => x.feature.templateSession.value, () => {
260
- P.value = "", L.value = [], R.value = [], B.value = 0;
257
+ let b = t, E = y, { t: k, format: A } = de(), j = v(le, null), M = fe(j), N = v(ue, void 0), P = f(""), F = f(null), I = f(null), L = f([]), z = f([]), V = f(0);
258
+ e(() => b.feature.templateSession.value, () => {
259
+ P.value = "", L.value = [], z.value = [], V.value = 0;
261
260
  }, { flush: "sync" });
262
- let H = l(() => x.feature.has("chatAttachments"));
261
+ let H = l(() => b.feature.has("chatAttachments"));
263
262
  function U(e) {
264
- let t = he(L.value, e);
263
+ let t = ge(L.value, e);
265
264
  L.value = t.accepted;
266
265
  let n = {
267
266
  tooMany: "attachTooMany",
@@ -269,106 +268,106 @@ var ge = [
269
268
  totalTooLarge: "attachTotalTooLarge",
270
269
  wrongType: "attachWrongType"
271
270
  };
272
- R.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
271
+ z.value = t.errors.map((e) => A(k.ai.chat[n[e.reason]], { name: e.name }));
273
272
  }
274
- function Xe(e) {
273
+ function Ze(e) {
275
274
  let t = e.target;
276
275
  !Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
277
276
  }
278
- function Ze(e) {
279
- Y.value || (L.value.splice(e, 1), R.value = []);
277
+ function Qe(e) {
278
+ Y.value || (L.value.splice(e, 1), z.value = []);
280
279
  }
281
280
  function W(e) {
282
281
  return Array.from(e.dataTransfer?.types ?? []).includes("Files");
283
282
  }
284
- function Qe(e) {
285
- H.value && !Y.value && W(e) && (e.preventDefault(), B.value++);
286
- }
287
283
  function $e(e) {
288
- W(e) && (B.value = Math.max(0, B.value - 1));
284
+ H.value && !Y.value && W(e) && (e.preventDefault(), V.value++);
289
285
  }
290
286
  function et(e) {
291
- H.value && W(e) && e.preventDefault();
287
+ W(e) && (V.value = Math.max(0, V.value - 1));
292
288
  }
293
289
  function tt(e) {
294
- B.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
290
+ H.value && W(e) && e.preventDefault();
291
+ }
292
+ function nt(e) {
293
+ V.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
295
294
  }
296
- e(() => x.feature.importQueue.value, (e) => {
297
- H.value && e.length && (U(e), P.value.trim() || (P.value = A.ai.import.prompt), x.feature.importQueue.value = [], a(() => F.value?.focus()));
295
+ e(() => b.feature.importQueue.value, (e) => {
296
+ H.value && e.length && (U(e), P.value.trim() || (P.value = k.ai.import.prompt), b.feature.importQueue.value = [], a(() => F.value?.focus()));
298
297
  }, { immediate: !0 });
299
- let G = f(null), K = f(0), q = l(() => x.feature.isTemplateEmpty.value ? [
300
- A.ai.starters.emptyWelcome,
301
- A.ai.starters.emptyLaunch,
302
- A.ai.starters.emptyNewsletter
298
+ let G = f(null), K = f(0), q = l(() => b.feature.isTemplateEmpty.value ? [
299
+ k.ai.starters.emptyWelcome,
300
+ k.ai.starters.emptyLaunch,
301
+ k.ai.starters.emptyNewsletter
303
302
  ] : [
304
- A.ai.starters.filledShorten,
305
- A.ai.starters.filledFriendlier,
306
- A.ai.starters.filledDates,
307
- A.ai.starters.filledCta
308
- ]), J = l(() => x.feature.messages.value), Y = l(() => x.feature.isRunning.value), X = l(() => {
309
- let e = x.feature.failure.value;
310
- return e ? D(e.error, A.ai.errors, j, N, e.context) : "";
311
- }), { pause: Z, resume: nt } = oe(() => {
303
+ k.ai.starters.filledShorten,
304
+ k.ai.starters.filledFriendlier,
305
+ k.ai.starters.filledDates,
306
+ k.ai.starters.filledCta
307
+ ]), J = l(() => b.feature.messages.value), Y = l(() => b.feature.isRunning.value), X = l(() => {
308
+ let e = b.feature.failure.value;
309
+ return e ? T(e.error, k.ai.errors, A, N, e.context) : "";
310
+ }), { pause: Z, resume: rt } = se(() => {
312
311
  K.value < q.value.length ? K.value++ : Z();
313
- }, 150, { immediate: !1 }), { start: rt } = ae(() => nt(), 100, { immediate: !1 });
312
+ }, 150, { immediate: !1 }), { start: it } = oe(() => rt(), 100, { immediate: !1 });
314
313
  e(() => q.value.length, (e) => {
315
- Z(), K.value = 0, e > 0 && rt();
314
+ Z(), K.value = 0, e > 0 && it();
316
315
  }, { immediate: !0 });
317
316
  function Q() {
318
317
  a(() => {
319
318
  G.value && (G.value.scrollTop = G.value.scrollHeight);
320
319
  });
321
320
  }
322
- e(() => J.value.length, Q), e(() => [x.feature.failedPrompt.value, x.feature.failedAttachments.value], ([e, t]) => {
321
+ e(() => J.value.length, Q), e(() => [b.feature.failedPrompt.value, b.feature.failedAttachments.value], ([e, t]) => {
323
322
  e && (P.value = e, L.value = [...t]);
324
323
  }, { immediate: !0 });
325
324
  async function $() {
326
325
  let e = P.value.trim();
327
326
  if (!e || Y.value) return;
328
327
  let t = [...L.value];
329
- P.value = "", L.value = [], R.value = [], Q(), await x.feature.send(e, t), Q();
330
- }
331
- function it(e) {
332
- return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
328
+ P.value = "", L.value = [], z.value = [], Q(), await b.feature.send(e, t), Q();
333
329
  }
334
330
  function at(e) {
335
- return e.failure ? D(e.failure.error, A.ai.errors, j, N, e.failure.context) : "";
331
+ return e.undone ? k.ai.chat.undone : e.operationCount === 1 ? k.ai.chat.appliedChange : A(k.ai.chat.appliedChanges, { count: e.operationCount });
336
332
  }
337
333
  function ot(e) {
338
- e.undone ? x.feature.redoMessage(e.id) : x.feature.undoMessage(e.id);
334
+ return e.failure ? T(e.failure.error, k.ai.errors, A, N, e.failure.context) : "";
339
335
  }
340
336
  function st(e) {
341
- Z(), P.value = e, $();
337
+ e.undone ? b.feature.redoMessage(e.id) : b.feature.undoMessage(e.id);
342
338
  }
343
339
  function ct(e) {
340
+ Z(), P.value = e, $();
341
+ }
342
+ function lt(e) {
344
343
  e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
345
344
  }
346
- return (e, a) => (r(), _(z, {
347
- title: u(A).ai.chat.title,
348
- subtitle: u(A).ai.chat.notice,
345
+ return (e, a) => (r(), _(R, {
346
+ title: u(k).ai.chat.title,
347
+ subtitle: u(k).ai.chat.notice,
349
348
  testid: "ai-panel-chat",
350
- "close-label": u(A).ai.chat.close,
351
- onClose: a[5] ||= (e) => O("close"),
352
- onDragenter: Qe,
353
- onDragleave: $e,
354
- onDragover: et,
355
- onDrop: tt
349
+ "close-label": u(k).ai.chat.close,
350
+ onClose: a[5] ||= (e) => E("close"),
351
+ onDragenter: $e,
352
+ onDragleave: et,
353
+ onDragover: tt,
354
+ onDrop: nt
356
355
  }, {
357
356
  actions: s(() => [t.feature.canClear && J.value.length > 0 ? (r(), p("button", {
358
357
  key: 0,
359
358
  type: "button",
360
359
  "data-testid": "ai-chat-new",
361
360
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
362
- "aria-label": u(A).ai.chat.newChat,
363
- title: u(A).ai.chat.newChat,
361
+ "aria-label": u(k).ai.chat.newChat,
362
+ title: u(k).ai.chat.newChat,
364
363
  disabled: Y.value,
365
364
  onClick: a[0] ||= (e) => t.feature.newChat()
366
- }, [c(u(de), {
365
+ }, [c(u(O), {
367
366
  size: 14,
368
367
  "stroke-width": 2,
369
368
  "aria-hidden": "true"
370
- })], 8, ge)) : d("", !0)]),
371
- footer: s(() => [h("div", Ne, [
369
+ })], 8, _e)) : d("", !0)]),
370
+ footer: s(() => [h("div", Pe, [
372
371
  H.value ? (r(), p(g, { key: 0 }, [
373
372
  h("input", {
374
373
  ref_key: "fileInput",
@@ -379,161 +378,161 @@ var ge = [
379
378
  accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
380
379
  hidden: "",
381
380
  disabled: Y.value,
382
- onChange: Xe
383
- }, null, 40, Pe),
384
- L.value.length ? (r(), p("div", V, [(r(!0), p(g, null, o(L.value, (e, t) => (r(), p("span", {
381
+ onChange: Ze
382
+ }, null, 40, Fe),
383
+ L.value.length ? (r(), p("div", B, [(r(!0), p(g, null, o(L.value, (e, t) => (r(), p("span", {
385
384
  key: t,
386
385
  "data-testid": "ai-chat-attachment",
387
386
  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)]"
388
387
  }, [
389
- e.type === "application/pdf" ? (r(), _(u(k), {
388
+ e.type === "application/pdf" ? (r(), _(u(D), {
390
389
  key: 0,
391
390
  size: 12,
392
391
  "aria-hidden": "true"
393
- })) : (r(), _(u(S), {
392
+ })) : (r(), _(u(x), {
394
393
  key: 1,
395
394
  size: 12,
396
395
  "aria-hidden": "true"
397
396
  })),
398
- h("span", Fe, n(e.name), 1),
397
+ h("span", Ie, n(e.name), 1),
399
398
  h("button", {
400
399
  type: "button",
401
- "aria-label": u(j)(u(A).ai.chat.removeAttachment, { name: e.name }),
400
+ "aria-label": u(A)(u(k).ai.chat.removeAttachment, { name: e.name }),
402
401
  disabled: Y.value,
403
402
  class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
404
- onClick: (e) => Ze(t)
405
- }, [c(u(C), {
403
+ onClick: (e) => Qe(t)
404
+ }, [c(u(S), {
406
405
  size: 12,
407
406
  "aria-hidden": "true"
408
- })], 8, Ie)
407
+ })], 8, Le)
409
408
  ]))), 128))])) : d("", !0),
410
- L.value.length ? (r(), p("p", Le, n(u(A).ai.import.placeholderNote), 1)) : d("", !0),
411
- h("div", Re, [(r(!0), p(g, null, o(R.value, (e, t) => (r(), p("p", {
409
+ L.value.length ? (r(), p("p", Re, n(u(k).ai.import.placeholderNote), 1)) : d("", !0),
410
+ h("div", ze, [(r(!0), p(g, null, o(z.value, (e, t) => (r(), p("p", {
412
411
  key: t,
413
412
  class: "tpl:mb-2"
414
413
  }, n(e), 1))), 128))])
415
414
  ], 64)) : d("", !0),
416
- t.feature.keptYourVersion.value ? (r(), p("div", ze, [h("p", null, n(u(A).ai.chat.keptYourVersion), 1), h("button", {
415
+ t.feature.keptYourVersion.value ? (r(), p("div", Be, [h("p", null, n(u(k).ai.chat.keptYourVersion), 1), h("button", {
417
416
  type: "button",
418
417
  disabled: Y.value,
419
- class: i(u(T)),
418
+ class: i(u(w)),
420
419
  onClick: a[1] ||= (e) => t.feature.reloadTemplate()
421
- }, n(u(A).ai.chat.reload), 11, Be)])) : d("", !0),
422
- X.value ? (r(), p("div", Ve, [c(u(te), {
420
+ }, n(u(k).ai.chat.reload), 11, Ve)])) : d("", !0),
421
+ X.value ? (r(), p("div", He, [c(u(ne), {
423
422
  size: 14,
424
423
  "stroke-width": 2,
425
424
  class: "tpl:mt-0.5 tpl:shrink-0",
426
425
  "aria-hidden": "true"
427
426
  }), h("span", null, n(X.value), 1)])) : d("", !0),
428
- h("div", He, [
429
- u(M)?.activeLocale?.value ? (r(), p("p", Ue, n(u(j)(u(A).localization.aiActiveLanguage, { language: u(E)(u(M).activeLocale.value) })), 1)) : d("", !0),
427
+ h("div", Ue, [
428
+ u(j)?.activeLocale?.value ? (r(), p("p", We, n(u(A)(u(k).localization.aiActiveLanguage, { language: u(M)(u(j).activeLocale.value) })), 1)) : d("", !0),
430
429
  ee(h("textarea", {
431
430
  ref_key: "composer",
432
431
  ref: F,
433
432
  "onUpdate:modelValue": a[2] ||= (e) => P.value = e,
434
433
  "data-testid": "ai-chat-input",
435
434
  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)]",
436
- placeholder: u(A).ai.chat.inputPlaceholder,
437
- "aria-label": u(A).ai.chat.inputPlaceholder,
435
+ placeholder: u(k).ai.chat.inputPlaceholder,
436
+ "aria-label": u(k).ai.chat.inputPlaceholder,
438
437
  disabled: Y.value,
439
438
  maxlength: "4000",
440
439
  rows: "3",
441
- onKeydown: ct
442
- }, null, 40, We), [[b, P.value]]),
443
- h("div", Ge, [H.value ? (r(), p("button", {
440
+ onKeydown: lt
441
+ }, null, 40, Ge), [[te, P.value]]),
442
+ h("div", Ke, [H.value ? (r(), p("button", {
444
443
  key: 0,
445
444
  type: "button",
446
- "aria-label": u(A).ai.chat.attach,
447
- title: u(A).ai.chat.attach,
445
+ "aria-label": u(k).ai.chat.attach,
446
+ title: u(k).ai.chat.attach,
448
447
  disabled: Y.value,
449
448
  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",
450
449
  onClick: a[3] ||= (e) => I.value?.click()
451
- }, [c(u(fe), {
450
+ }, [c(u(pe), {
452
451
  size: 16,
453
452
  "aria-hidden": "true"
454
- })], 8, Ke)) : d("", !0), Y.value ? (r(), p("button", {
453
+ })], 8, qe)) : d("", !0), Y.value ? (r(), p("button", {
455
454
  key: 1,
456
455
  type: "button",
457
456
  "data-testid": "ai-chat-stop",
458
457
  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)]",
459
- "aria-label": u(A).ai.chat.stop,
460
- title: u(A).ai.chat.stop,
458
+ "aria-label": u(k).ai.chat.stop,
459
+ title: u(k).ai.chat.stop,
461
460
  onClick: a[4] ||= (e) => t.feature.stop()
462
- }, [c(u(ie), {
461
+ }, [c(u(ae), {
463
462
  size: 16,
464
463
  "stroke-width": 2,
465
464
  "aria-hidden": "true"
466
- })], 8, qe)) : (r(), p("button", {
465
+ })], 8, Je)) : (r(), p("button", {
467
466
  key: 2,
468
467
  type: "button",
469
468
  "data-testid": "ai-chat-send",
470
469
  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)]",
471
- "aria-label": u(A).ai.chat.send,
472
- title: u(A).ai.chat.send,
470
+ "aria-label": u(k).ai.chat.send,
471
+ title: u(k).ai.chat.send,
473
472
  disabled: !P.value.trim(),
474
473
  onClick: $
475
- }, [c(u(re), {
474
+ }, [c(u(ie), {
476
475
  size: 16,
477
476
  "stroke-width": 2,
478
477
  "aria-hidden": "true"
479
- })], 8, Je))])
478
+ })], 8, Ye))])
480
479
  ]),
481
- h("p", Ye, n(u(A).ai.chat.disclaimer), 1)
480
+ h("p", Xe, n(u(k).ai.chat.disclaimer), 1)
482
481
  ])]),
483
482
  default: s(() => [
484
- H.value && B.value > 0 && !Y.value ? (r(), p("div", _e, n(u(A).ai.chat.dropHint), 1)) : d("", !0),
483
+ H.value && V.value > 0 && !Y.value ? (r(), p("div", ve, n(u(k).ai.chat.dropHint), 1)) : d("", !0),
485
484
  h("div", {
486
485
  ref_key: "messagesContainer",
487
486
  ref: G,
488
487
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
489
- }, [t.feature.isLoadingHistory.value ? (r(), p("div", ve, [c(u(ne), {
488
+ }, [t.feature.isLoadingHistory.value ? (r(), p("div", ye, [c(u(re), {
490
489
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
491
490
  size: 24,
492
491
  "stroke-width": 2,
493
492
  "aria-hidden": "true"
494
- }), h("p", ye, n(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (r(), p("div", be, [c(u(w), {
493
+ }), h("p", be, n(u(k).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (r(), p("div", xe, [c(u(C), {
495
494
  size: 32,
496
495
  "stroke-width": 1.5,
497
496
  class: "tpl:text-[var(--tpl-text-dim)]",
498
497
  "aria-hidden": "true"
499
- }), h("p", xe, n(u(A).ai.chat.placeholder), 1)])) : (r(), p("div", Se, [(r(!0), p(g, null, o(J.value, (e) => (r(), p("div", {
498
+ }), h("p", Se, n(u(k).ai.chat.placeholder), 1)])) : (r(), p("div", Ce, [(r(!0), p(g, null, o(J.value, (e) => (r(), p("div", {
500
499
  key: e.id,
501
500
  class: "tpl:flex tpl:flex-col tpl:gap-2"
502
- }, [typeof e.locale == "string" ? (r(), p("span", Ce, n(u(E)(e.locale)), 1)) : d("", !0), e.role === "user" ? (r(), p("div", we, [m(n(e.text) + " ", 1), (r(!0), p(g, null, o(e.attachments, (e, t) => (r(), p("span", {
501
+ }, [typeof e.locale == "string" ? (r(), p("span", we, n(u(M)(e.locale)), 1)) : d("", !0), e.role === "user" ? (r(), p("div", Te, [m(n(e.text) + " ", 1), (r(!0), p(g, null, o(e.attachments, (e, t) => (r(), p("span", {
503
502
  key: t,
504
503
  "data-testid": "ai-chat-history-attachment",
505
504
  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"
506
- }, [e.kind === "pdf" ? (r(), _(u(k), {
505
+ }, [e.kind === "pdf" ? (r(), _(u(D), {
507
506
  key: 0,
508
507
  size: 12,
509
508
  "aria-hidden": "true"
510
- })) : (r(), _(u(S), {
509
+ })) : (r(), _(u(x), {
511
510
  key: 1,
512
511
  size: 12,
513
512
  "aria-hidden": "true"
514
- })), m(n(e.name), 1)]))), 128))])) : (r(), p("div", Te, [
515
- e.text === "" && e.status === "streaming" ? (r(), _(se, { key: 0 })) : e.text === "" ? d("", !0) : (r(), p("div", Ee, n(e.text), 1)),
516
- e.operationCount > 0 ? (r(), p("div", De, [h("span", null, n(it(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (r(), p("button", {
513
+ })), m(n(e.name), 1)]))), 128))])) : (r(), p("div", Ee, [
514
+ e.text === "" && e.status === "streaming" ? (r(), _(ce, { key: 0 })) : e.text === "" ? d("", !0) : (r(), p("div", De, n(e.text), 1)),
515
+ e.operationCount > 0 ? (r(), p("div", Oe, [h("span", null, n(at(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (r(), p("button", {
517
516
  key: 0,
518
517
  type: "button",
519
518
  "data-testid": "ai-chat-undo",
520
- class: i(u(T)),
519
+ class: i(u(w)),
521
520
  disabled: Y.value,
522
- onClick: (t) => ot(e)
523
- }, [e.undone ? (r(), _(u(pe), {
521
+ onClick: (t) => st(e)
522
+ }, [e.undone ? (r(), _(u(me), {
524
523
  key: 0,
525
524
  size: 12,
526
525
  "stroke-width": 2,
527
526
  "aria-hidden": "true"
528
- })) : (r(), _(u(me), {
527
+ })) : (r(), _(u(he), {
529
528
  key: 1,
530
529
  size: 12,
531
530
  "stroke-width": 2,
532
531
  "aria-hidden": "true"
533
- })), m(" " + n(e.undone ? u(A).ai.chat.redo : u(A).ai.chat.undo), 1)], 10, Oe)) : d("", !0)])) : d("", !0),
534
- e.failure ? (r(), p("p", ke, n(at(e)), 1)) : d("", !0)
532
+ })), m(" " + n(e.undone ? u(k).ai.chat.redo : u(k).ai.chat.undo), 1)], 10, ke)) : d("", !0)])) : d("", !0),
533
+ e.failure ? (r(), p("p", Ae, n(ot(e)), 1)) : d("", !0)
535
534
  ]))]))), 128))]))], 512),
536
- J.value.length === 0 && q.value.length > 0 ? (r(), p("div", Ae, [h("div", je, [(r(!0), p(g, null, o(q.value, (e, t) => (r(), p("button", {
535
+ J.value.length === 0 && q.value.length > 0 ? (r(), p("div", je, [h("div", Me, [(r(!0), p(g, null, o(q.value, (e, t) => (r(), p("button", {
537
536
  key: t,
538
537
  type: "button",
539
538
  "data-testid": "ai-chat-starter",
@@ -544,8 +543,8 @@ var ge = [
544
543
  "background-color": "var(--tpl-bg)",
545
544
  "box-shadow": "var(--tpl-shadow)"
546
545
  },
547
- onClick: (t) => st(e)
548
- }, n(e), 11, Me))), 128))])])) : d("", !0)
546
+ onClick: (t) => ct(e)
547
+ }, n(e), 11, Ne))), 128))])])) : d("", !0)
549
548
  ]),
550
549
  _: 1
551
550
  }, 8, [
@@ -554,5 +553,5 @@ var ge = [
554
553
  "close-label"
555
554
  ]));
556
555
  }
557
- }), [["__scopeId", "data-v-51fb7448"]]);
558
- export { H as default };
556
+ }), [["__scopeId", "data-v-35cc75c0"]]);
557
+ export { V as default };