@templatical/editor 0.56.0 → 0.57.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 (308) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-BjClNscQ.js} +6 -6
  3. package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-DeMdVbtT.js} +7 -7
  4. package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cros4ZCM.js} +64 -67
  5. package/dist/AiPanels-D_CdHqFZ.js +26 -0
  6. package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-BSzj1dKC.js} +53 -53
  7. package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-i2cZy5PB.js} +6 -6
  8. package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-D-If_vd_.js} +58 -58
  9. package/dist/{CloudHeaderExtras-Cqhw-jMz.js → CloudHeaderExtras-CJsXi4Ku.js} +2 -2
  10. package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-DPeK_siQ.js} +14 -14
  11. package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-DkYX-ose.js} +9 -9
  12. package/dist/{CollaboratorBar-CLQjksX-.js → CollaboratorBar-xDweDvB6.js} +3 -3
  13. package/dist/CommentsPanel-t3w16YUl.js +23 -0
  14. package/dist/CommentsSidebar-B3M90RY_.js +516 -0
  15. package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-BrR2uqM3.js} +7 -7
  16. package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-DBu2ZqC6.js} +32 -32
  17. package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-BnUut-p-.js} +89 -89
  18. package/dist/LanguageMenu-DfTxrbvp.js +403 -0
  19. package/dist/{LoadingTrack-BG8cg9xi.js → LoadingTrack-c4SeD16s.js} +1 -1
  20. package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-D6zk-QCL.js} +11 -11
  21. package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-CJ1Jk6jv.js} +65 -65
  22. package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-BxbwZxnf.js} +10 -10
  23. package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-BiUxsTMM.js} +2 -2
  24. package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-CV-z85s9.js} +13 -13
  25. package/dist/{MergeTagModeToggle-DXvb80OE.js → MergeTagModeToggle-CixgX5C_.js} +7 -7
  26. package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-B1zOC_Nr.js} +9 -9
  27. package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-C9UhWvRB.js} +174 -174
  28. package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-Do7fZWpT.js} +13 -13
  29. package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-wW_SMun2.js} +10 -10
  30. package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CCHIUfR-.js} +49 -49
  31. package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-DtPHhfw9.js} +26 -26
  32. package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-CYIby5pR.js} +2 -2
  33. package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-CCwBugqN.js} +10 -10
  34. package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-B8IVy5q9.js} +42 -42
  35. package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-CS5JoKRH.js} +22 -22
  36. package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-sOIZfKzc.js} +2 -2
  37. package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-ZlBcq9_P.js} +22 -22
  38. package/dist/{ToggleSwitch-R3wCCYE6.js → ToggleSwitch-BIPdFWUr.js} +1 -1
  39. package/dist/{Toolbar-XT-uGA9J.js → Toolbar-c4_rLLJT.js} +659 -659
  40. package/dist/{TplModal-7NQq5-VW.js → TplModal-DnFFEulp.js} +6 -6
  41. package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu-Cd2IaHgT.js} +19 -19
  42. package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-TdGaMaa_.js} +2 -2
  43. package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-lkAf7tc8.js} +8 -8
  44. package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-BiW4ye3w.js} +12 -12
  45. package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-D1aYMC1M.js} +3 -3
  46. package/dist/bundle-stats.json +7 -7
  47. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-CfGJNBOb.js} +6 -6
  48. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-CfGJNBOb.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-PKe31R_g.js} +7 -7
  50. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-PKe31R_g.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-DNCUpV8n.js} +112 -115
  52. package/dist/cdn/chunks/AiChatPanel-DNCUpV8n.js.map +1 -0
  53. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js +27 -0
  54. package/dist/cdn/chunks/AiPanels-IV0VEkBL.js.map +1 -0
  55. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-ZDBwReuU.js} +61 -61
  56. package/dist/cdn/chunks/AiRewriteMenu-ZDBwReuU.js.map +1 -0
  57. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DIlFDDwh.js} +6 -6
  58. package/dist/cdn/chunks/BlockIssueBadge-DIlFDDwh.js.map +1 -0
  59. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js +156 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-D7U6nQ7t.js.map +1 -0
  61. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js → CloudHeaderExtras-CazfMn6A.js} +3 -3
  62. package/dist/cdn/chunks/{CloudHeaderExtras-uUJYJFJ6.js.map → CloudHeaderExtras-CazfMn6A.js.map} +1 -1
  63. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-EXXNMLbs.js} +5 -5
  64. package/dist/cdn/chunks/CloudPanels-EXXNMLbs.js.map +1 -0
  65. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-DGA8XRZJ.js} +10 -10
  66. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-DGA8XRZJ.js.map} +1 -1
  67. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js → CollaboratorBar-BWL1Shc1.js} +4 -4
  68. package/dist/cdn/chunks/{CollaboratorBar-C1ZI2xwa.js.map → CollaboratorBar-BWL1Shc1.js.map} +1 -1
  69. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js +24 -0
  70. package/dist/cdn/chunks/CommentsPanel-4mrl4zMK.js.map +1 -0
  71. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js +486 -0
  72. package/dist/cdn/chunks/CommentsSidebar-BJ87vc7i.js.map +1 -0
  73. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-Do6oItNW.js} +8 -8
  74. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-Do6oItNW.js.map} +1 -1
  75. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-BN2_zvRj.js} +52 -52
  76. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-BN2_zvRj.js.map} +1 -1
  77. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-BDwegn0s.js} +14 -14
  78. package/dist/cdn/chunks/IssuesPanel-BDwegn0s.js.map +1 -0
  79. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-DXq9cXUd.js} +58 -58
  80. package/dist/cdn/chunks/LanguageMenu-DXq9cXUd.js.map +1 -0
  81. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js → LoadingTrack-o-89hApJ.js} +2 -2
  82. package/dist/cdn/chunks/{LoadingTrack-DUYcDHOV.js.map → LoadingTrack-o-89hApJ.js.map} +1 -1
  83. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-CUN5K5QJ.js} +11 -11
  84. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-CUN5K5QJ.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-BEArlbra.js} +12 -12
  86. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-BEArlbra.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-BHTMNHx0.js} +10 -10
  88. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-BHTMNHx0.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BlianNRh.js} +3 -3
  90. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BlianNRh.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-B3SLXXzL.js} +14 -14
  92. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-B3SLXXzL.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js → MergeTagModeToggle-Dywp9ntA.js} +6 -6
  94. package/dist/cdn/chunks/{MergeTagModeToggle-D7maMGIM.js.map → MergeTagModeToggle-Dywp9ntA.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B9TM7FgM.js} +7 -7
  96. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B9TM7FgM.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-CVGtTYta.js} +107 -107
  98. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-CVGtTYta.js.map} +1 -1
  99. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-Dt_0qOOW.js} +13 -13
  100. package/dist/cdn/chunks/RestoreVersionDialog-Dt_0qOOW.js.map +1 -0
  101. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-BjN4mnzL.js} +9 -9
  102. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-BjN4mnzL.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-D9eBjE99.js} +51 -51
  104. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-D9eBjE99.js.map} +1 -1
  105. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-ClsTpkdk.js} +24 -24
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-ClsTpkdk.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-CxlNHhUs.js} +3 -3
  108. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-CxlNHhUs.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-C7_Z8phX.js} +12 -12
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-C7_Z8phX.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-B6zDtjSs.js} +102 -102
  112. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-B6zDtjSs.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-CJ_QYFua.js} +21 -21
  114. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-CJ_QYFua.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-CsFrTq_a.js} +3 -3
  116. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-CsFrTq_a.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CuKJptyw.js} +20 -20
  118. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CuKJptyw.js.map} +1 -1
  119. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js → ToggleSwitch-C0w0srN_.js} +2 -2
  120. package/dist/cdn/chunks/{ToggleSwitch-BSkySwA1.js.map → ToggleSwitch-C0w0srN_.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-TS2WwlPW.js} +542 -542
  122. package/dist/cdn/chunks/Toolbar-TS2WwlPW.js.map +1 -0
  123. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-CsadClrH.js} +7 -7
  124. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-CsadClrH.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-BNPxnWiO.js} +16 -16
  126. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-BNPxnWiO.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CieY91f0.js} +3 -3
  128. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CieY91f0.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-BldFvgxJ.js} +9 -9
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-BldFvgxJ.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-DtnRuKWE.js} +13 -13
  132. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-DtnRuKWE.js.map} +1 -1
  133. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js → blockTypeIcons-19xd5ZPi.js} +6 -6
  134. package/dist/cdn/chunks/{blockTypeIcons-CzYA5DF9.js.map → blockTypeIcons-19xd5ZPi.js.map} +1 -1
  135. package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-CUIiW9OD.js} +1190 -1170
  136. package/dist/cdn/chunks/composables-CUIiW9OD.js.map +1 -0
  137. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-B7D04wKf.js} +161 -147
  138. package/dist/cdn/chunks/createCloudRuntime-B7D04wKf.js.map +1 -0
  139. package/dist/cdn/chunks/da-CYWJkrTg.js +97 -0
  140. package/dist/cdn/chunks/da-CYWJkrTg.js.map +1 -0
  141. package/dist/cdn/chunks/da-qQzj0QGy.js +950 -0
  142. package/dist/cdn/chunks/da-qQzj0QGy.js.map +1 -0
  143. package/dist/cdn/chunks/{dist-BzXULHvI.js → dist-BtWMy7UQ.js} +3 -3
  144. package/dist/cdn/chunks/{dist-BzXULHvI.js.map → dist-BtWMy7UQ.js.map} +1 -1
  145. package/dist/cdn/chunks/dist-zu1jwYIS.js +405 -0
  146. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-zu1jwYIS.js.map} +1 -1
  147. package/dist/cdn/chunks/{draggable-DepKdldn.js → draggable-IRVFEZ-b.js} +1535 -1500
  148. package/dist/cdn/chunks/draggable-IRVFEZ-b.js.map +1 -0
  149. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CarOiAYJ.js} +137 -136
  150. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CarOiAYJ.js.map} +1 -1
  151. package/dist/cdn/chunks/en-B4s_0ryk.js +1 -0
  152. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-Cbvk9i08.js} +96 -96
  153. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-Cbvk9i08.js.map} +1 -1
  154. package/dist/cdn/chunks/{icons-DHExFLlT.js → icons-Cl4oR2mf.js} +73 -73
  155. package/dist/cdn/chunks/icons-Cl4oR2mf.js.map +1 -0
  156. package/dist/cdn/chunks/keys-BQqbBUag.js +11 -0
  157. package/dist/cdn/chunks/keys-BQqbBUag.js.map +1 -0
  158. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js → normalizeMergeTagMarkup-BJ-MnCqF.js} +55 -55
  159. package/dist/cdn/chunks/{normalizeMergeTagMarkup-aWjkotui.js.map → normalizeMergeTagMarkup-BJ-MnCqF.js.map} +1 -1
  160. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js → preRenderCustomBlocks-D2wISRHq.js} +2 -2
  161. package/dist/cdn/chunks/{preRenderCustomBlocks-Dn6dFUwx.js.map → preRenderCustomBlocks-D2wISRHq.js.map} +1 -1
  162. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js +72 -0
  163. package/dist/cdn/chunks/sanitizeHtml-CB7fjHFs.js.map +1 -0
  164. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-C_yggK1_.js} +575 -524
  165. package/dist/cdn/chunks/socialIcons-C_yggK1_.js.map +1 -0
  166. package/dist/cdn/chunks/{src-C9JWWxAk.js → src-Bp7bZcuD.js} +108 -95
  167. package/dist/cdn/chunks/src-Bp7bZcuD.js.map +1 -0
  168. package/dist/cdn/chunks/{src-mXG-Of9A.js → src-CdVAke9t.js} +721 -696
  169. package/dist/cdn/chunks/src-CdVAke9t.js.map +1 -0
  170. package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-D-URHI0Z.js} +232 -228
  171. package/dist/cdn/chunks/src-D-URHI0Z.js.map +1 -0
  172. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-BPiZqxCt.js} +42 -33
  173. package/dist/cdn/chunks/tiptap-BPiZqxCt.js.map +1 -0
  174. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js → useCloudI18n-Dr4S2TRW.js} +3 -3
  175. package/dist/cdn/chunks/{useCloudI18n-Xsih9yRH.js.map → useCloudI18n-Dr4S2TRW.js.map} +1 -1
  176. package/dist/cdn/chunks/useEditorRoot-B_kf_k-g.js +9 -0
  177. package/dist/cdn/chunks/{useEditorRoot-Beau2Z_T.js.map → useEditorRoot-B_kf_k-g.js.map} +1 -1
  178. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js → useI18n-CSf-ZpcM.js} +3 -3
  179. package/dist/cdn/chunks/{useI18n-D8s7HtTn.js.map → useI18n-CSf-ZpcM.js.map} +1 -1
  180. package/dist/cdn/chunks/useLocalizedDisplay-slFOCPrh.js +33 -0
  181. package/dist/cdn/chunks/{useLocalizedDisplay-Bgg4qpev.js.map → useLocalizedDisplay-slFOCPrh.js.map} +1 -1
  182. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-lPjCGeGC.js} +5 -5
  183. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-lPjCGeGC.js.map} +1 -1
  184. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BKNBwIry.js} +8 -8
  185. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BKNBwIry.js.map} +1 -1
  186. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js → usePopoverPosition-BJFFi8x6.js} +3 -3
  187. package/dist/cdn/chunks/{usePopoverPosition-esO6wjvU.js.map → usePopoverPosition-BJFFi8x6.js.map} +1 -1
  188. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js → useScrollToBlock-MI4PP5lk.js} +3 -3
  189. package/dist/cdn/chunks/{useScrollToBlock-CJuUu7Xj.js.map → useScrollToBlock-MI4PP5lk.js.map} +1 -1
  190. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js → withCurrentFont-CzTFFaJA.js} +2 -2
  191. package/dist/cdn/chunks/{withCurrentFont-QqBilClC.js.map → withCurrentFont-CzTFFaJA.js.map} +1 -1
  192. package/dist/cdn/editor.css +1 -1
  193. package/dist/cdn/editor.js +784 -762
  194. package/dist/cdn/editor.js.map +1 -1
  195. package/dist/{check-CcuCoJDh.js → check-C7ua4TAK.js} +1 -1
  196. package/dist/{chevron-down-BfYIbFbC.js → chevron-down-DftQrAkI.js} +1 -1
  197. package/dist/{chevron-right-DyjFqY35.js → chevron-right-B-DULGbg.js} +1 -1
  198. package/dist/{chevron-up-BHEIxuS-.js → chevron-up-CeYsyD8c.js} +1 -1
  199. package/dist/{circle-alert-Tq7kAh9S.js → circle-exclamation-point-DHjORV_I.js} +3 -3
  200. package/dist/{clock-Df0ZiXwQ.js → clock-CajOtLEZ.js} +1 -1
  201. package/dist/{composables-CRX6rncm.js → composables-DbjgUQlV.js} +1663 -1643
  202. package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-Cnh2M6iT.js} +54 -40
  203. package/dist/{createLucideIcon-CfBdtoUw.js → createLucideIcon-D-mELTSY.js} +6 -6
  204. package/dist/da-CYWJkrTg.js +95 -0
  205. package/dist/da-qQzj0QGy.js +948 -0
  206. package/dist/{dist-CX7skkvG.js → dist-A328tG0Z.js} +2 -2
  207. package/dist/{dist-B8dY8drK.js → dist-B15BvV94.js} +2 -2
  208. package/dist/{dist-TAv500j6.js → dist-B3G4Yvpd.js} +3 -3
  209. package/dist/dist-B6ptxfPo.js +406 -0
  210. package/dist/{dist-ChOb5XHW.js → dist-BmV-2uBJ.js} +2 -2
  211. package/dist/{dist-fqSers8_.js → dist-BxKFi2h_.js} +199 -199
  212. package/dist/{dist-BMUUt3zJ.js → dist-CAvsz9cW.js} +680 -655
  213. package/dist/{dist-D_XrUEET.js → dist-CMBOqk9I.js} +7 -7
  214. package/dist/{dist-DZ3X-uB8.js → dist-CXTsTO5h.js} +2 -2
  215. package/dist/{dist-B9a7iVye.js → dist-D5BUcCjv.js} +2 -2
  216. package/dist/dist-D9cbSSSx.js +4 -0
  217. package/dist/{dist-54VCNoC0.js → dist-DAdrn64r.js} +2 -2
  218. package/dist/{dist-BWflWcpW.js → dist-DENg3ORe.js} +33 -24
  219. package/dist/{dist-C3hu_C3w.js → dist-DI_8rB1X.js} +2 -2
  220. package/dist/dist-ELLEk-lS.js +4 -0
  221. package/dist/{editor-modal-D9HT9bD6.js → editor-modal-CgsaLpwB.js} +110 -109
  222. package/dist/en-DBLcB-CW.js +1 -0
  223. package/dist/{extensions-Cm6K4SRX.js → extensions-7fb-XtNJ.js} +180 -180
  224. package/dist/{eye-B3psrAqd.js → eye-fe5sKF_K.js} +1 -1
  225. package/dist/{image-C3yuPDxx.js → image-CUC7SZiW.js} +1 -1
  226. package/dist/index.d.ts +6 -4
  227. package/dist/{info-DKja7A68.js → info-DDbLU4pT.js} +1 -1
  228. package/dist/keys-D9oKZN1h.js +9 -0
  229. package/dist/{link-DhzPI4Hn.js → link-C2icj0iH.js} +1 -1
  230. package/dist/{list-DVGn7Ik2.js → list-KYC_Jb5A.js} +1 -1
  231. package/dist/{loader-circle-DqKWsMHO.js → loader-circle-DmyagWpc.js} +1 -1
  232. package/dist/{message-circle-C4TonoBs.js → message-circle-ijyWn6UJ.js} +1 -1
  233. package/dist/{normalizeMergeTagMarkup-Da9JAgx7.js → normalizeMergeTagMarkup-GrXJfXsQ.js} +82 -82
  234. package/dist/{package-9OkiEO4S.js → package-CKYm_jQY.js} +1 -1
  235. package/dist/{pencil-M9vkOB7C.js → pencil-C2TRSR-Y.js} +1 -1
  236. package/dist/{plus-DxZiv9YC.js → plus-CotJVDxb.js} +1 -1
  237. package/dist/{preRenderCustomBlocks-CdqSp2P7.js → preRenderCustomBlocks-DuXtzD-F.js} +3 -3
  238. package/dist/{refresh-cw-UY8_sdFG.js → refresh-cw-CuCRV6D5.js} +1 -1
  239. package/dist/{rotate-ccw-BFTGCpHn.js → rotate-ccw-BlnQ3y6R.js} +1 -1
  240. package/dist/{runtime-dom.esm-bundler-DlHp8xgy.js → runtime-dom.esm-bundler-nN-jsqr1.js} +20 -20
  241. package/dist/{sanitizeHtml-wBibnBF4.js → sanitizeHtml-eV4_BpI6.js} +25 -14
  242. package/dist/{search-RuGJnMEn.js → search-Dxw6oFrZ.js} +1 -1
  243. package/dist/{send-DGB1ar02.js → send-C-blQBZ9.js} +1 -1
  244. package/dist/{smartphone-CVA29CU_.js → smartphone-rLz4X-Dd.js} +1 -1
  245. package/dist/{socialIcons-CJD6OsI7.js → socialIcons-brRkK9Om.js} +600 -549
  246. package/dist/{sparkles-IHfEwEcd.js → sparkles-JWQlUiSn.js} +1 -1
  247. package/dist/{square-_Cl44UU6.js → square-DshDy1Il.js} +1 -1
  248. package/dist/style.css +1 -1
  249. package/dist/templatical-editor.js +976 -954
  250. package/dist/{text-align-start-Dqk2Xt_Q.js → text-align-start-CyasaQtr.js} +13 -13
  251. package/dist/{trash-Cr7rD5Hh.js → trash-B1lZp2Tv.js} +1 -1
  252. package/dist/{triangle-alert-CKcpwtUj.js → triangle-exclamation-point-BhJvBEoT.js} +3 -3
  253. package/dist/{upload-DR9pqVON.js → upload-CNK8JX38.js} +1 -1
  254. package/dist/{useCloudI18n-BczJoFf4.js → useCloudI18n-HhCZYRV6.js} +2 -2
  255. package/dist/useEditorRoot-B0Njczhx.js +7 -0
  256. package/dist/{useI18n-zeWYtWSv.js → useI18n-CM9vKbYc.js} +2 -2
  257. package/dist/{cdn/chunks/useLocalizedDisplay-Bgg4qpev.js → useLocalizedDisplay-DoaT7nWk.js} +2 -4
  258. package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-cTC2KbWd.js} +4 -4
  259. package/dist/{useMergeTag-IoWOO679.js → useMergeTag-D2YDZ8vR.js} +8 -8
  260. package/dist/{usePopoverPosition-Br3zt_MQ.js → usePopoverPosition-CVRzzLkC.js} +2 -2
  261. package/dist/{useScrollToBlock-BfOzc1Z6.js → useScrollToBlock-vf_KD0FM.js} +3 -3
  262. package/dist/{vue.runtime.esm-bundler-BJXc_Mri.js → vue.runtime.esm-bundler-BE5V8ADU.js} +414 -362
  263. package/dist/{withCurrentFont-m_PHcOD0.js → withCurrentFont-DAmED4fN.js} +1 -1
  264. package/dist/{x-DZSFHafL.js → x-DbLX5Qdm.js} +1 -1
  265. package/package.json +23 -23
  266. package/dist/AiPanels-DAsnX-a3.js +0 -31
  267. package/dist/CommentsPanel-C5qG17Ki.js +0 -16
  268. package/dist/CommentsSidebar-C7CWcUYZ.js +0 -526
  269. package/dist/LanguageMenu-B981Av-6.js +0 -403
  270. package/dist/cdn/chunks/AiChatPanel-DKDu9cs7.js.map +0 -1
  271. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js +0 -32
  272. package/dist/cdn/chunks/AiPanels-jMLVaiKx.js.map +0 -1
  273. package/dist/cdn/chunks/AiRewriteMenu-s79rmHFy.js.map +0 -1
  274. package/dist/cdn/chunks/BlockIssueBadge-Bnmq_M4G.js.map +0 -1
  275. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
  276. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js.map +0 -1
  277. package/dist/cdn/chunks/CloudPanels-DQnlH_YJ.js.map +0 -1
  278. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js +0 -18
  279. package/dist/cdn/chunks/CommentsPanel-EtdTzTmq.js.map +0 -1
  280. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js +0 -496
  281. package/dist/cdn/chunks/CommentsSidebar-Qmj049QX.js.map +0 -1
  282. package/dist/cdn/chunks/IssuesPanel-DnSnEh1X.js.map +0 -1
  283. package/dist/cdn/chunks/LanguageMenu-C2I_yTL5.js.map +0 -1
  284. package/dist/cdn/chunks/RestoreVersionDialog-DqbULAbc.js.map +0 -1
  285. package/dist/cdn/chunks/Toolbar-C_Hfsher.js.map +0 -1
  286. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
  287. package/dist/cdn/chunks/createCloudRuntime-PpIFCDfj.js.map +0 -1
  288. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  289. package/dist/cdn/chunks/draggable-DepKdldn.js.map +0 -1
  290. package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
  291. package/dist/cdn/chunks/icons-DHExFLlT.js.map +0 -1
  292. package/dist/cdn/chunks/keys-BUmIvYy3.js +0 -11
  293. package/dist/cdn/chunks/keys-BUmIvYy3.js.map +0 -1
  294. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js +0 -61
  295. package/dist/cdn/chunks/sanitizeHtml-DJI7vvET.js.map +0 -1
  296. package/dist/cdn/chunks/socialIcons-Qw9rHc8C.js.map +0 -1
  297. package/dist/cdn/chunks/src-Bfj1jHnn.js.map +0 -1
  298. package/dist/cdn/chunks/src-C9JWWxAk.js.map +0 -1
  299. package/dist/cdn/chunks/src-mXG-Of9A.js.map +0 -1
  300. package/dist/cdn/chunks/tiptap-Dipw_zOQ.js.map +0 -1
  301. package/dist/cdn/chunks/useEditorRoot-Beau2Z_T.js +0 -9
  302. package/dist/dist-0alKVRc_.js +0 -406
  303. package/dist/dist-6DU0me3E.js +0 -4
  304. package/dist/dist-CcOn7WCo.js +0 -4
  305. package/dist/en-De3uAutQ.js +0 -1
  306. package/dist/keys-w_VRjoMu.js +0 -9
  307. package/dist/useEditorRoot-BcXKhM_8.js +0 -7
  308. package/dist/useLocalizedDisplay-Cbhx208c.js +0 -31
@@ -1,13 +1,13 @@
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-DepKdldn.js";
2
- import { t as S } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
- import { D as C, It as ee, K as te, T as ne, Tt as w, _t as T, at as re, j as ie, l as ae, t as E, tt as oe, z as se } from "./icons-DHExFLlT.js";
4
- import { it as ce, v as le } from "./keys-BUmIvYy3.js";
5
- import { t as ue } from "./useI18n-D8s7HtTn.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 _, 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, l as ae, t as T, tt as oe, z as se } from "./icons-Cl4oR2mf.js";
3
+ import { _ as ce, g as le } from "./dist-BtWMy7UQ.js";
4
+ import { t as ue } from "./LoadingTrack-o-89hApJ.js";
5
+ import { t as de } from "./useI18n-CSf-ZpcM.js";
6
+ import { w as E } from "./styleConstants-CgiNKdnc.js";
7
+ import { at as fe, v as pe } from "./keys-BQqbBUag.js";
6
8
  import { t as D } from "./languageName-DEEOhDWI.js";
7
- import { w as O } from "./styleConstants-CgiNKdnc.js";
8
- import { _ as de, g as fe } from "./dist-BzXULHvI.js";
9
- import { t as pe } from "./LoadingTrack-DUYcDHOV.js";
10
- import { n as k } from "./aiErrors-C3QEMB0x.js";
9
+ import { n as O } from "./aiErrors-C3QEMB0x.js";
10
+ import { t as k } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
11
11
  // src/components/ai/AiPanelShell.vue?vue&type=script&setup=true&lang.ts
12
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 = {
13
13
  key: 0,
@@ -30,7 +30,7 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
30
30
  "data-testid": e.testid,
31
31
  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
32
  }, [
33
- h("div", j, [h("div", M, [h("div", N, [x(u(C), {
33
+ h("div", j, [h("div", M, [h("div", N, [x(u(S), {
34
34
  size: 13,
35
35
  "stroke-width": 2,
36
36
  "aria-hidden": "true"
@@ -41,7 +41,7 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
41
41
  "aria-label": e.closeLabel,
42
42
  title: e.closeLabel,
43
43
  onClick: i[0] ||= (e) => r("close")
44
- }, [x(u(E), {
44
+ }, [x(u(T), {
45
45
  size: 14,
46
46
  "stroke-width": 2,
47
47
  "aria-hidden": "true"
@@ -135,21 +135,21 @@ var ge = [
135
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 = {
136
136
  key: 0,
137
137
  class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
138
- }, Ie = { class: "tpl:truncate" }, Le = [
138
+ }, B = { class: "tpl:truncate" }, Ie = [
139
139
  "aria-label",
140
140
  "disabled",
141
141
  "onClick"
142
- ], Re = {
142
+ ], Le = {
143
143
  key: 1,
144
144
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
145
- }, ze = {
145
+ }, Re = {
146
146
  "aria-live": "polite",
147
147
  class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
148
- }, Be = {
148
+ }, ze = {
149
149
  key: 1,
150
150
  role: "status",
151
151
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
152
- }, Ve = ["disabled"], He = {
152
+ }, Be = ["disabled"], Ve = {
153
153
  key: 2,
154
154
  role: "alert",
155
155
  "data-testid": "ai-chat-error",
@@ -158,33 +158,33 @@ var ge = [
158
158
  "background-color": "var(--tpl-danger-light)",
159
159
  color: "var(--tpl-danger)"
160
160
  }
161
- }, 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 = {
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 = {
162
162
  key: 0,
163
163
  "data-testid": "ai-active-language",
164
164
  class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
165
- }, Ge = [
165
+ }, We = [
166
166
  "placeholder",
167
167
  "aria-label",
168
168
  "disabled"
169
- ], Ke = { class: "tpl:flex tpl:items-center tpl:justify-between" }, qe = [
169
+ ], Ge = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ke = [
170
170
  "aria-label",
171
171
  "title",
172
172
  "disabled"
173
- ], Je = ["aria-label", "title"], Ye = [
173
+ ], qe = ["aria-label", "title"], Je = [
174
174
  "aria-label",
175
175
  "title",
176
176
  "disabled"
177
- ], 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__*/ S(/* @__PURE__ */ e({
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({
178
178
  __name: "AiChatPanel",
179
179
  props: { feature: {} },
180
180
  emits: ["close"],
181
181
  setup(e, { emit: s }) {
182
- let S = e, A = s, { t: j, format: M } = ue(), N = o(le, null), P = o(ce, void 0), F = y(""), I = y(null), L = y(null), R = y([]), z = y([]), B = y(0);
183
- r(() => S.feature.templateSession.value, () => {
184
- F.value = "", R.value = [], z.value = [], B.value = 0;
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;
185
185
  }, { flush: "sync" });
186
- let V = v(() => S.feature.has("chatAttachments"));
187
- function H(e) {
186
+ let H = v(() => k.feature.has("chatAttachments"));
187
+ function U(e) {
188
188
  let t = he(R.value, e);
189
189
  R.value = t.accepted;
190
190
  let n = {
@@ -195,32 +195,32 @@ var ge = [
195
195
  };
196
196
  z.value = t.errors.map((e) => M(j.ai.chat[n[e.reason]], { name: e.name }));
197
197
  }
198
- function Ze(e) {
198
+ function Xe(e) {
199
199
  let t = e.target;
200
- !J.value && V.value && H(Array.from(t.files ?? [])), t.value = "";
200
+ !Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
201
201
  }
202
- function Qe(e) {
203
- J.value || (R.value.splice(e, 1), z.value = []);
202
+ function Ze(e) {
203
+ Y.value || (R.value.splice(e, 1), z.value = []);
204
204
  }
205
- function U(e) {
205
+ function W(e) {
206
206
  return Array.from(e.dataTransfer?.types ?? []).includes("Files");
207
207
  }
208
+ function Qe(e) {
209
+ H.value && !Y.value && W(e) && (e.preventDefault(), V.value++);
210
+ }
208
211
  function $e(e) {
209
- V.value && !J.value && U(e) && (e.preventDefault(), B.value++);
212
+ W(e) && (V.value = Math.max(0, V.value - 1));
210
213
  }
211
214
  function et(e) {
212
- U(e) && (B.value = Math.max(0, B.value - 1));
215
+ H.value && W(e) && e.preventDefault();
213
216
  }
214
217
  function tt(e) {
215
- V.value && U(e) && e.preventDefault();
216
- }
217
- function nt(e) {
218
- B.value = 0, V.value && U(e) && (e.preventDefault(), J.value || H(Array.from(e.dataTransfer?.files ?? [])));
218
+ V.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
219
219
  }
220
- r(() => S.feature.importQueue.value, (e) => {
221
- V.value && e.length && (H(e), F.value.trim() || (F.value = j.ai.import.prompt), S.feature.importQueue.value = [], m(() => I.value?.focus()));
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()));
222
222
  }, { immediate: !0 });
223
- let W = y(null), G = y(0), K = v(() => S.feature.isTemplateEmpty.value ? [
223
+ let G = y(null), K = y(0), q = v(() => k.feature.isTemplateEmpty.value ? [
224
224
  j.ai.starters.emptyWelcome,
225
225
  j.ai.starters.emptyLaunch,
226
226
  j.ai.starters.emptyNewsletter
@@ -229,66 +229,63 @@ var ge = [
229
229
  j.ai.starters.filledFriendlier,
230
230
  j.ai.starters.filledDates,
231
231
  j.ai.starters.filledCta
232
- ]), q = v(() => S.feature.messages.value), J = v(() => S.feature.isRunning.value), Y = v(() => {
233
- let e = S.feature.failure.value;
234
- return e ? k(e.error, j.ai.errors, M, P, e.context) : "";
235
- }), { pause: X, resume: rt } = fe(() => {
236
- G.value < K.value.length ? G.value++ : X();
237
- }, 150, { immediate: !1 }), { start: it } = de(() => rt(), 100, { immediate: !1 });
238
- r(() => K.value.length, (e) => {
239
- X(), G.value = 0, e > 0 && it();
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(() => {
236
+ K.value < q.value.length ? K.value++ : Z();
237
+ }, 150, { immediate: !1 }), { start: rt } = ce(() => nt(), 100, { immediate: !1 });
238
+ r(() => q.value.length, (e) => {
239
+ Z(), K.value = 0, e > 0 && rt();
240
240
  }, { immediate: !0 });
241
- function Z() {
241
+ function Q() {
242
242
  m(() => {
243
- W.value && (W.value.scrollTop = W.value.scrollHeight);
243
+ G.value && (G.value.scrollTop = G.value.scrollHeight);
244
244
  });
245
245
  }
246
- r(() => q.value.length, Z), r(() => [S.feature.failedPrompt.value, S.feature.failedAttachments.value], ([e, t]) => {
246
+ r(() => J.value.length, Q), r(() => [k.feature.failedPrompt.value, k.feature.failedAttachments.value], ([e, t]) => {
247
247
  e && (F.value = e, R.value = [...t]);
248
248
  }, { immediate: !0 });
249
- async function Q() {
249
+ async function $() {
250
250
  let e = F.value.trim();
251
- if (!e || J.value) return;
251
+ if (!e || Y.value) return;
252
252
  let t = [...R.value];
253
- F.value = "", R.value = [], z.value = [], Z(), await S.feature.send(e, t), Z();
253
+ F.value = "", R.value = [], z.value = [], Q(), await k.feature.send(e, t), Q();
254
254
  }
255
- function $(e) {
255
+ function it(e) {
256
256
  return e.undone ? j.ai.chat.undone : e.operationCount === 1 ? j.ai.chat.appliedChange : M(j.ai.chat.appliedChanges, { count: e.operationCount });
257
257
  }
258
258
  function at(e) {
259
- return e.failure ? k(e.failure.error, j.ai.errors, M, P, e.failure.context) : "";
259
+ return e.failure ? O(e.failure.error, j.ai.errors, M, P, e.failure.context) : "";
260
260
  }
261
261
  function ot(e) {
262
- e.undone ? S.feature.redoMessage(e.id) : S.feature.undoMessage(e.id);
262
+ e.undone ? k.feature.redoMessage(e.id) : k.feature.undoMessage(e.id);
263
263
  }
264
264
  function st(e) {
265
- X(), F.value = e, Q();
265
+ Z(), F.value = e, $();
266
266
  }
267
267
  function ct(e) {
268
- e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
268
+ e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
269
269
  }
270
- return (r, o) => (t(), c("div", {
271
- class: "tpl:contents",
272
- "data-testid": "ai-chat-dropzone",
273
- onDragenter: $e,
274
- onDragleave: et,
275
- onDragover: tt,
276
- onDrop: nt
277
- }, [x(me, {
270
+ return (r, o) => (t(), p(me, {
278
271
  title: u(j).ai.chat.title,
279
272
  subtitle: u(j).ai.chat.notice,
280
273
  testid: "ai-panel-chat",
281
274
  "close-label": u(j).ai.chat.close,
282
- onClose: o[5] ||= (e) => A("close")
275
+ onClose: o[5] ||= (e) => A("close"),
276
+ onDragenter: Qe,
277
+ onDragleave: $e,
278
+ onDragover: et,
279
+ onDrop: tt
283
280
  }, {
284
- actions: n(() => [e.feature.canClear && q.value.length > 0 ? (t(), c("button", {
281
+ actions: n(() => [e.feature.canClear && J.value.length > 0 ? (t(), c("button", {
285
282
  key: 0,
286
283
  type: "button",
287
284
  "data-testid": "ai-chat-new",
288
285
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
289
286
  "aria-label": u(j).ai.chat.newChat,
290
287
  title: u(j).ai.chat.newChat,
291
- disabled: J.value,
288
+ disabled: Y.value,
292
289
  onClick: o[0] ||= (t) => e.feature.newChat()
293
290
  }, [x(u(oe), {
294
291
  size: 14,
@@ -296,7 +293,7 @@ var ge = [
296
293
  "aria-hidden": "true"
297
294
  })], 8, ge)) : f("", !0)]),
298
295
  footer: n(() => [h("div", Ne, [
299
- V.value ? (t(), c(b, { key: 0 }, [
296
+ H.value ? (t(), c(b, { key: 0 }, [
300
297
  h("input", {
301
298
  ref_key: "fileInput",
302
299
  ref: L,
@@ -305,55 +302,55 @@ var ge = [
305
302
  multiple: "",
306
303
  accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
307
304
  hidden: "",
308
- disabled: J.value,
309
- onChange: Ze
305
+ disabled: Y.value,
306
+ onChange: Xe
310
307
  }, null, 40, Pe),
311
308
  R.value.length ? (t(), c("div", Fe, [(t(!0), c(b, null, a(R.value, (e, n) => (t(), c("span", {
312
309
  key: n,
313
310
  "data-testid": "ai-chat-attachment",
314
311
  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)]"
315
312
  }, [
316
- e.type === "application/pdf" ? (t(), p(u(w), {
313
+ e.type === "application/pdf" ? (t(), p(u(C), {
317
314
  key: 0,
318
315
  size: 12,
319
316
  "aria-hidden": "true"
320
- })) : (t(), p(u(T), {
317
+ })) : (t(), p(u(w), {
321
318
  key: 1,
322
319
  size: 12,
323
320
  "aria-hidden": "true"
324
321
  })),
325
- h("span", Ie, g(e.name), 1),
322
+ h("span", B, g(e.name), 1),
326
323
  h("button", {
327
324
  type: "button",
328
325
  "aria-label": u(M)(u(j).ai.chat.removeAttachment, { name: e.name }),
329
- disabled: J.value,
326
+ disabled: Y.value,
330
327
  class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
331
- onClick: (e) => Qe(n)
332
- }, [x(u(E), {
328
+ onClick: (e) => Ze(n)
329
+ }, [x(u(T), {
333
330
  size: 12,
334
331
  "aria-hidden": "true"
335
- })], 8, Le)
332
+ })], 8, Ie)
336
333
  ]))), 128))])) : f("", !0),
337
- R.value.length ? (t(), c("p", Re, g(u(j).ai.import.placeholderNote), 1)) : f("", !0),
338
- h("div", ze, [(t(!0), c(b, null, a(z.value, (e, n) => (t(), c("p", {
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", {
339
336
  key: n,
340
337
  class: "tpl:mb-2"
341
338
  }, g(e), 1))), 128))])
342
339
  ], 64)) : f("", !0),
343
- e.feature.keptYourVersion.value ? (t(), c("div", Be, [h("p", null, g(u(j).ai.chat.keptYourVersion), 1), h("button", {
340
+ e.feature.keptYourVersion.value ? (t(), c("div", ze, [h("p", null, g(u(j).ai.chat.keptYourVersion), 1), h("button", {
344
341
  type: "button",
345
- disabled: J.value,
346
- class: d(u(O)),
342
+ disabled: Y.value,
343
+ class: d(u(E)),
347
344
  onClick: o[1] ||= (t) => e.feature.reloadTemplate()
348
- }, g(u(j).ai.chat.reload), 11, Ve)])) : f("", !0),
349
- Y.value ? (t(), c("div", He, [x(u(ee), {
345
+ }, g(u(j).ai.chat.reload), 11, Be)])) : f("", !0),
346
+ X.value ? (t(), c("div", Ve, [x(u(ee), {
350
347
  size: 14,
351
348
  "stroke-width": 2,
352
349
  class: "tpl:mt-0.5 tpl:shrink-0",
353
350
  "aria-hidden": "true"
354
- }), h("span", null, g(Y.value), 1)])) : f("", !0),
355
- h("div", Ue, [
356
- u(N)?.activeLocale?.value ? (t(), c("p", We, g(u(M)(u(j).localization.aiActiveLanguage, { language: u(D)(u(N).activeLocale.value) })), 1)) : f("", !0),
351
+ }), 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),
357
354
  i(h("textarea", {
358
355
  ref_key: "composer",
359
356
  ref: I,
@@ -362,23 +359,23 @@ var ge = [
362
359
  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)]",
363
360
  placeholder: u(j).ai.chat.inputPlaceholder,
364
361
  "aria-label": u(j).ai.chat.inputPlaceholder,
365
- disabled: J.value,
362
+ disabled: Y.value,
366
363
  maxlength: "4000",
367
364
  rows: "3",
368
365
  onKeydown: ct
369
- }, null, 40, Ge), [[_, F.value]]),
370
- h("div", Ke, [V.value ? (t(), c("button", {
366
+ }, null, 40, We), [[_, F.value]]),
367
+ h("div", Ge, [H.value ? (t(), c("button", {
371
368
  key: 0,
372
369
  type: "button",
373
370
  "aria-label": u(j).ai.chat.attach,
374
371
  title: u(j).ai.chat.attach,
375
- disabled: J.value,
372
+ disabled: Y.value,
376
373
  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",
377
374
  onClick: o[3] ||= (e) => L.value?.click()
378
375
  }, [x(u(te), {
379
376
  size: 16,
380
377
  "aria-hidden": "true"
381
- })], 8, qe)) : f("", !0), J.value ? (t(), c("button", {
378
+ })], 8, Ke)) : f("", !0), Y.value ? (t(), c("button", {
382
379
  key: 1,
383
380
  type: "button",
384
381
  "data-testid": "ai-chat-stop",
@@ -390,7 +387,7 @@ var ge = [
390
387
  size: 16,
391
388
  "stroke-width": 2,
392
389
  "aria-hidden": "true"
393
- })], 8, Je)) : (t(), c("button", {
390
+ })], 8, qe)) : (t(), c("button", {
394
391
  key: 2,
395
392
  type: "button",
396
393
  "data-testid": "ai-chat-send",
@@ -398,54 +395,54 @@ var ge = [
398
395
  "aria-label": u(j).ai.chat.send,
399
396
  title: u(j).ai.chat.send,
400
397
  disabled: !F.value.trim(),
401
- onClick: Q
398
+ onClick: $
402
399
  }, [x(u(ie), {
403
400
  size: 16,
404
401
  "stroke-width": 2,
405
402
  "aria-hidden": "true"
406
- })], 8, Ye))])
403
+ })], 8, Je))])
407
404
  ]),
408
- h("p", Xe, g(u(j).ai.chat.disclaimer), 1)
405
+ h("p", Ye, g(u(j).ai.chat.disclaimer), 1)
409
406
  ])]),
410
407
  default: n(() => [
411
- V.value && B.value > 0 && !J.value ? (t(), c("div", _e, g(u(j).ai.chat.dropHint), 1)) : f("", !0),
408
+ H.value && V.value > 0 && !Y.value ? (t(), c("div", _e, g(u(j).ai.chat.dropHint), 1)) : f("", !0),
412
409
  h("div", {
413
410
  ref_key: "messagesContainer",
414
- ref: W,
411
+ ref: G,
415
412
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
416
413
  }, [e.feature.isLoadingHistory.value ? (t(), c("div", ve, [x(u(re), {
417
414
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
418
415
  size: 24,
419
416
  "stroke-width": 2,
420
417
  "aria-hidden": "true"
421
- }), h("p", ye, g(u(j).ai.chat.loadingHistory), 1)])) : q.value.length === 0 ? (t(), c("div", be, [x(u(C), {
418
+ }), h("p", ye, g(u(j).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (t(), c("div", be, [x(u(S), {
422
419
  size: 32,
423
420
  "stroke-width": 1.5,
424
421
  class: "tpl:text-[var(--tpl-text-dim)]",
425
422
  "aria-hidden": "true"
426
- }), h("p", xe, g(u(j).ai.chat.placeholder), 1)])) : (t(), c("div", Se, [(t(!0), c(b, null, a(q.value, (e) => (t(), c("div", {
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", {
427
424
  key: e.id,
428
425
  class: "tpl:flex tpl:flex-col tpl:gap-2"
429
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", {
430
427
  key: n,
431
428
  "data-testid": "ai-chat-history-attachment",
432
429
  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"
433
- }, [e.kind === "pdf" ? (t(), p(u(w), {
430
+ }, [e.kind === "pdf" ? (t(), p(u(C), {
434
431
  key: 0,
435
432
  size: 12,
436
433
  "aria-hidden": "true"
437
- })) : (t(), p(u(T), {
434
+ })) : (t(), p(u(w), {
438
435
  key: 1,
439
436
  size: 12,
440
437
  "aria-hidden": "true"
441
438
  })), l(g(e.name), 1)]))), 128))])) : (t(), c("div", Te, [
442
- e.text === "" && e.status === "streaming" ? (t(), p(pe, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", Ee, g(e.text), 1)),
443
- e.operationCount > 0 ? (t(), c("div", De, [h("span", null, g($(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
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", {
444
441
  key: 0,
445
442
  type: "button",
446
443
  "data-testid": "ai-chat-undo",
447
- class: d(u(O)),
448
- disabled: J.value,
444
+ class: d(u(E)),
445
+ disabled: Y.value,
449
446
  onClick: (t) => ot(e)
450
447
  }, [e.undone ? (t(), p(u(se), {
451
448
  key: 0,
@@ -460,11 +457,11 @@ var ge = [
460
457
  })), l(" " + g(e.undone ? u(j).ai.chat.redo : u(j).ai.chat.undo), 1)], 10, Oe)) : f("", !0)])) : f("", !0),
461
458
  e.failure ? (t(), c("p", ke, g(at(e)), 1)) : f("", !0)
462
459
  ]))]))), 128))]))], 512),
463
- q.value.length === 0 && K.value.length > 0 ? (t(), c("div", Ae, [h("div", je, [(t(!0), c(b, null, a(K.value, (e, n) => (t(), c("button", {
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", {
464
461
  key: n,
465
462
  type: "button",
466
463
  "data-testid": "ai-chat-starter",
467
- class: d(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", K.value.length - 1 - n < G.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
464
+ class: d(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", q.value.length - 1 - n < K.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
468
465
  style: {
469
466
  "border-color": "var(--tpl-border)",
470
467
  color: "var(--tpl-primary)",
@@ -479,9 +476,9 @@ var ge = [
479
476
  "title",
480
477
  "subtitle",
481
478
  "close-label"
482
- ])], 32));
479
+ ]));
483
480
  }
484
- }), [["__scopeId", "data-v-d3e3a1af"]]);
485
- export { B as default };
481
+ }), [["__scopeId", "data-v-51fb7448"]]);
482
+ export { V as default };
486
483
 
487
- //# sourceMappingURL=AiChatPanel-DKDu9cs7.js.map
484
+ //# sourceMappingURL=AiChatPanel-DNCUpV8n.js.map