@ckeditor/ckeditor5-ai 48.1.1 → 48.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/aiactions/model/aiactionsinteraction.d.ts +3 -0
  2. package/dist/aiactions/model/aiactionsreply.d.ts +7 -0
  3. package/dist/aiballoon/aiballoon.d.ts +2 -5
  4. package/dist/aichat/aichatballoon.d.ts +4 -0
  5. package/dist/aichat/aichatcontroller.d.ts +9 -3
  6. package/dist/aichat/aichatui.d.ts +11 -0
  7. package/dist/aichat/model/aichatcontext.d.ts +29 -62
  8. package/dist/aichat/model/aichatconversation.d.ts +18 -23
  9. package/dist/aichat/model/aichatinteraction.d.ts +0 -9
  10. package/dist/aichat/ui/aichatballoonview.d.ts +4 -0
  11. package/dist/aichat/ui/aichatcontrolsview.d.ts +5 -0
  12. package/dist/aichat/ui/aichatfeedview.d.ts +8 -0
  13. package/dist/aichat/ui/aichatview.d.ts +1 -0
  14. package/dist/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -0
  15. package/dist/aichat/ui/controls/aichatdropzoneview.d.ts +26 -0
  16. package/dist/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  17. package/dist/aichat/utils/eventnames.d.ts +1 -1
  18. package/dist/aichat/utils/parsesingleurl.d.ts +5 -0
  19. package/dist/aichat/utils/readdatatransferfiles.d.ts +14 -0
  20. package/dist/aichat/utils/resolvepaste.d.ts +71 -0
  21. package/dist/aichatshortcuts/ui/aichatshortcutsview.d.ts +6 -0
  22. package/dist/aiconfig.d.ts +1 -1
  23. package/dist/aicore/aiconnector.d.ts +22 -0
  24. package/dist/aicore/aiediting.d.ts +14 -5
  25. package/dist/aicore/aigateway.d.ts +63 -0
  26. package/dist/aicore/model/aicontext.d.ts +4 -20
  27. package/dist/aicore/model/aiinteraction.d.ts +7 -1
  28. package/dist/aicore/model/aireply.d.ts +20 -17
  29. package/dist/aicore/model/airunresult.d.ts +95 -0
  30. package/dist/aicore/pipeline/airesponseapplier.d.ts +3 -15
  31. package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.d.ts +4 -0
  32. package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.d.ts +4 -0
  33. package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +4 -0
  34. package/dist/aicore/utils/{geteditorfromcontext.d.ts → geteditorsfromcontext.d.ts} +1 -2
  35. package/dist/aicore/utils/getoperationsfromreply.d.ts +6 -4
  36. package/dist/aicore/utils/getsuggestionpartsfromreply.d.ts +6 -3
  37. package/dist/aicore/utils/htmlparser.d.ts +8 -2
  38. package/dist/aiquickactions/aiquickactions.d.ts +4 -4
  39. package/dist/aiquickactions/aiquickactionsui.d.ts +1 -1
  40. package/dist/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +2 -2
  41. package/dist/aireviewcore/aireviewcorecheckregistry.d.ts +34 -0
  42. package/dist/aireviewcore/aireviewcorecontroller.d.ts +31 -6
  43. package/dist/aireviewcore/aireviewcoreediting.d.ts +1 -1
  44. package/dist/aireviewcore/model/aireviewcheckrun.d.ts +4 -0
  45. package/dist/aireviewmode/aireviewgateway.d.ts +161 -0
  46. package/dist/aireviewmode/aireviewmode.d.ts +60 -2
  47. package/dist/aireviewmode/aireviewmodecheckregistry.d.ts +39 -0
  48. package/dist/aireviewmode/aireviewmodecontroller.d.ts +7 -2
  49. package/dist/aireviewmode/model/aireviewmodechecklist.d.ts +4 -0
  50. package/dist/aireviewmode/model/aireviewrunresult.d.ts +20 -0
  51. package/dist/aitranslate/aitranslatecheckregistry.d.ts +27 -0
  52. package/dist/aitranslate/aitranslatecontroller.d.ts +2 -2
  53. package/dist/augmentation.d.ts +11 -1
  54. package/dist/index-content.css +1 -1
  55. package/dist/index-editor.css +212 -8
  56. package/dist/index.css +212 -8
  57. package/dist/index.d.ts +7 -3
  58. package/dist/index.js +6 -6
  59. package/dist/translations/af.js +1 -1
  60. package/dist/translations/af.umd.js +1 -1
  61. package/dist/translations/ar.js +1 -1
  62. package/dist/translations/ar.umd.js +1 -1
  63. package/dist/translations/ast.js +1 -1
  64. package/dist/translations/ast.umd.js +1 -1
  65. package/dist/translations/az.js +1 -1
  66. package/dist/translations/az.umd.js +1 -1
  67. package/dist/translations/be.js +1 -1
  68. package/dist/translations/be.umd.js +1 -1
  69. package/dist/translations/bg.js +1 -1
  70. package/dist/translations/bg.umd.js +1 -1
  71. package/dist/translations/bn.js +1 -1
  72. package/dist/translations/bn.umd.js +1 -1
  73. package/dist/translations/bs.js +1 -1
  74. package/dist/translations/bs.umd.js +1 -1
  75. package/dist/translations/ca.js +1 -1
  76. package/dist/translations/ca.umd.js +1 -1
  77. package/dist/translations/cs.js +1 -1
  78. package/dist/translations/cs.umd.js +1 -1
  79. package/dist/translations/da.js +1 -1
  80. package/dist/translations/da.umd.js +1 -1
  81. package/dist/translations/de-ch.js +1 -1
  82. package/dist/translations/de-ch.umd.js +1 -1
  83. package/dist/translations/de.js +1 -1
  84. package/dist/translations/de.umd.js +1 -1
  85. package/dist/translations/el.js +1 -1
  86. package/dist/translations/el.umd.js +1 -1
  87. package/dist/translations/en-au.js +1 -1
  88. package/dist/translations/en-au.umd.js +1 -1
  89. package/dist/translations/en-gb.js +1 -1
  90. package/dist/translations/en-gb.umd.js +1 -1
  91. package/dist/translations/en.js +1 -1
  92. package/dist/translations/en.umd.js +1 -1
  93. package/dist/translations/eo.js +1 -1
  94. package/dist/translations/eo.umd.js +1 -1
  95. package/dist/translations/es-co.js +1 -1
  96. package/dist/translations/es-co.umd.js +1 -1
  97. package/dist/translations/es.js +1 -1
  98. package/dist/translations/es.umd.js +1 -1
  99. package/dist/translations/et.js +1 -1
  100. package/dist/translations/et.umd.js +1 -1
  101. package/dist/translations/eu.js +1 -1
  102. package/dist/translations/eu.umd.js +1 -1
  103. package/dist/translations/fa.js +1 -1
  104. package/dist/translations/fa.umd.js +1 -1
  105. package/dist/translations/fi.js +1 -1
  106. package/dist/translations/fi.umd.js +1 -1
  107. package/dist/translations/fr.js +1 -1
  108. package/dist/translations/fr.umd.js +1 -1
  109. package/dist/translations/gl.js +1 -1
  110. package/dist/translations/gl.umd.js +1 -1
  111. package/dist/translations/gu.js +1 -1
  112. package/dist/translations/gu.umd.js +1 -1
  113. package/dist/translations/he.js +1 -1
  114. package/dist/translations/he.umd.js +1 -1
  115. package/dist/translations/hi.js +1 -1
  116. package/dist/translations/hi.umd.js +1 -1
  117. package/dist/translations/hr.js +1 -1
  118. package/dist/translations/hr.umd.js +1 -1
  119. package/dist/translations/hu.js +1 -1
  120. package/dist/translations/hu.umd.js +1 -1
  121. package/dist/translations/hy.js +1 -1
  122. package/dist/translations/hy.umd.js +1 -1
  123. package/dist/translations/id.js +1 -1
  124. package/dist/translations/id.umd.js +1 -1
  125. package/dist/translations/it.js +1 -1
  126. package/dist/translations/it.umd.js +1 -1
  127. package/dist/translations/ja.js +1 -1
  128. package/dist/translations/ja.umd.js +1 -1
  129. package/dist/translations/jv.js +1 -1
  130. package/dist/translations/jv.umd.js +1 -1
  131. package/dist/translations/kk.js +1 -1
  132. package/dist/translations/kk.umd.js +1 -1
  133. package/dist/translations/km.js +1 -1
  134. package/dist/translations/km.umd.js +1 -1
  135. package/dist/translations/kn.js +1 -1
  136. package/dist/translations/kn.umd.js +1 -1
  137. package/dist/translations/ko.js +1 -1
  138. package/dist/translations/ko.umd.js +1 -1
  139. package/dist/translations/ku.js +1 -1
  140. package/dist/translations/ku.umd.js +1 -1
  141. package/dist/translations/lt.js +1 -1
  142. package/dist/translations/lt.umd.js +1 -1
  143. package/dist/translations/lv.js +1 -1
  144. package/dist/translations/lv.umd.js +1 -1
  145. package/dist/translations/ms.js +1 -1
  146. package/dist/translations/ms.umd.js +1 -1
  147. package/dist/translations/nb.js +1 -1
  148. package/dist/translations/nb.umd.js +1 -1
  149. package/dist/translations/ne.js +1 -1
  150. package/dist/translations/ne.umd.js +1 -1
  151. package/dist/translations/nl.js +1 -1
  152. package/dist/translations/nl.umd.js +1 -1
  153. package/dist/translations/no.js +1 -1
  154. package/dist/translations/no.umd.js +1 -1
  155. package/dist/translations/oc.js +1 -1
  156. package/dist/translations/oc.umd.js +1 -1
  157. package/dist/translations/pl.js +1 -1
  158. package/dist/translations/pl.umd.js +1 -1
  159. package/dist/translations/pt-br.js +1 -1
  160. package/dist/translations/pt-br.umd.js +1 -1
  161. package/dist/translations/pt.js +1 -1
  162. package/dist/translations/pt.umd.js +1 -1
  163. package/dist/translations/ro.js +1 -1
  164. package/dist/translations/ro.umd.js +1 -1
  165. package/dist/translations/ru.js +1 -1
  166. package/dist/translations/ru.umd.js +1 -1
  167. package/dist/translations/si.js +1 -1
  168. package/dist/translations/si.umd.js +1 -1
  169. package/dist/translations/sk.js +1 -1
  170. package/dist/translations/sk.umd.js +1 -1
  171. package/dist/translations/sl.js +1 -1
  172. package/dist/translations/sl.umd.js +1 -1
  173. package/dist/translations/sq.js +1 -1
  174. package/dist/translations/sq.umd.js +1 -1
  175. package/dist/translations/sr-latn.js +1 -1
  176. package/dist/translations/sr-latn.umd.js +1 -1
  177. package/dist/translations/sr.js +1 -1
  178. package/dist/translations/sr.umd.js +1 -1
  179. package/dist/translations/sv.js +1 -1
  180. package/dist/translations/sv.umd.js +1 -1
  181. package/dist/translations/th.js +1 -1
  182. package/dist/translations/th.umd.js +1 -1
  183. package/dist/translations/ti.js +1 -1
  184. package/dist/translations/ti.umd.js +1 -1
  185. package/dist/translations/tk.js +1 -1
  186. package/dist/translations/tk.umd.js +1 -1
  187. package/dist/translations/tr.js +1 -1
  188. package/dist/translations/tr.umd.js +1 -1
  189. package/dist/translations/tt.js +1 -1
  190. package/dist/translations/tt.umd.js +1 -1
  191. package/dist/translations/ug.js +1 -1
  192. package/dist/translations/ug.umd.js +1 -1
  193. package/dist/translations/uk.js +1 -1
  194. package/dist/translations/uk.umd.js +1 -1
  195. package/dist/translations/ur.js +1 -1
  196. package/dist/translations/ur.umd.js +1 -1
  197. package/dist/translations/uz.js +1 -1
  198. package/dist/translations/uz.umd.js +1 -1
  199. package/dist/translations/vi.js +1 -1
  200. package/dist/translations/vi.umd.js +1 -1
  201. package/dist/translations/zh-cn.js +1 -1
  202. package/dist/translations/zh-cn.umd.js +1 -1
  203. package/dist/translations/zh.js +1 -1
  204. package/dist/translations/zh.umd.js +1 -1
  205. package/package.json +12 -12
@@ -621,27 +621,39 @@
621
621
  text-wrap:auto;
622
622
  }
623
623
 
624
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item pre > code{
625
- white-space:pre-wrap;
626
- }
627
-
628
624
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message:has(.ck-ai-chat-context-chips-wrapper){
629
625
  max-width:100%;
630
626
  }
631
627
 
632
628
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content{
633
629
  text-align:end;
630
+ white-space:pre-wrap;
631
+ overflow-wrap:break-word;
634
632
  max-width:80%;
635
633
  margin-inline:auto 0;
636
634
  }
637
635
 
636
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content *{
637
+ box-sizing:border-box;
638
+ }
639
+
640
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content *{
641
+ text-align:start;
642
+ }
643
+
638
644
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message p{
639
645
  background-color:var(--ck-color-ai-chat-feed-item-background-secondary);
640
646
  padding:var(--ck-spacing-standard);
641
647
  border-radius:var(--ck-ai-border-radius);
648
+ width:max-content;
649
+ max-width:100%;
642
650
  display:inline-block;
643
651
  }
644
652
 
653
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck-ai-chat__feed__ai-reply .ck-ai-chat__feed__ai-reply-container{
654
+ white-space:pre-wrap;
655
+ }
656
+
645
657
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck-ai-chat__feed__ai-suggestion{
646
658
  margin:0 var(--ck-spacing-standard);
647
659
  }
@@ -686,11 +698,11 @@
686
698
  font-weight:500;
687
699
  }
688
700
 
689
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container > *:first-child{
701
+ :is(.ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container) > *:first-child{
690
702
  margin-top:0;
691
703
  }
692
704
 
693
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container > *:last-child{
705
+ :is(.ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container) > *:last-child{
694
706
  margin-bottom:0;
695
707
  }
696
708
 
@@ -717,7 +729,7 @@
717
729
  background-color:var(--ck-color-suggestion-widget-insertion-background);
718
730
  }
719
731
 
720
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item :not(.ck-ai-chat__feed__context-chips, .ck-ai-chat__feed__context-chips *, .ck-ai-web-source .ck-button__label, .ck-content.ck-ai-suggestion-streamable-content, .ck-content.ck-ai-suggestion-streamable-content *){
732
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item :not(.ck-ai-chat__feed__context-chips, .ck-ai-chat__feed__context-chips *, .ck-ai-web-source .ck-button__label, .ck-content.ck-ai-suggestion-streamable-content, .ck-content.ck-ai-suggestion-streamable-content *, .ck-ai-chat-content, .ck-ai-chat-content *){
721
733
  white-space:pre-wrap;
722
734
  line-height:1.4em;
723
735
  }
@@ -887,10 +899,172 @@
887
899
  }
888
900
  }
889
901
 
902
+ :root{
903
+ --ck-ai-chat-content-font-size:13px;
904
+ --ck-ai-chat-content-line-height:1.385;
905
+ --ck-color-ai-chat-content-text:#333;
906
+ --ck-color-ai-chat-content-link:#0000f0;
907
+ --ck-color-ai-chat-content-link-selected-background:#1fb0ff1a;
908
+ --ck-color-ai-chat-content-code-background:#c7c7c74d;
909
+ --ck-color-ai-chat-content-pre-background:#f5f5f5;
910
+ --ck-color-ai-chat-content-pre-text:#353535;
911
+ --ck-color-ai-chat-content-hr-background:#d9d9d9;
912
+ --ck-color-ai-chat-content-blockquote-border:#d9d9d9;
913
+ --ck-color-ai-chat-content-table-border:#bfbfbf;
914
+ --ck-color-ai-chat-content-table-th-background:#0000000d;
915
+ }
916
+
917
+ .ck-ai-chat-content{
918
+ font-family:var(--ck-font-face);
919
+ font-size:var(--ck-ai-chat-content-font-size);
920
+ line-height:var(--ck-ai-chat-content-line-height);
921
+ color:var(--ck-color-ai-chat-content-text);
922
+ }
923
+
924
+ .ck-ai-chat-content p{
925
+ margin:8px 0;
926
+ }
927
+
928
+ .ck-ai-chat-content h1{
929
+ margin:24px 0 8px;
930
+ font-size:1.462em;
931
+ line-height:1.368;
932
+ }
933
+
934
+ .ck-ai-chat-content h2{
935
+ margin:12px 0 8px;
936
+ font-size:1.308em;
937
+ line-height:1.412;
938
+ }
939
+
940
+ .ck-ai-chat-content h3{
941
+ margin:8px 0;
942
+ font-size:1.154em;
943
+ line-height:1.4;
944
+ }
945
+
946
+ .ck-ai-chat-content h4{
947
+ margin:8px 0;
948
+ font-size:1em;
949
+ line-height:1.385;
950
+ }
951
+
952
+ .ck-ai-chat-content a{
953
+ color:var(--ck-color-ai-chat-content-link);
954
+ text-decoration:underline;
955
+ }
956
+
957
+ .ck-ai-chat-content a:focus-visible{
958
+ background-color:var(--ck-color-ai-chat-content-link-selected-background);
959
+ }
960
+
961
+ .ck-ai-chat-content code, .ck-ai-chat-content pre{
962
+ font-size:calc(var(--ck-ai-chat-content-font-size) * 12 / 13);
963
+ line-height:calc(var(--ck-ai-chat-content-font-size) * var(--ck-ai-chat-content-line-height));
964
+ }
965
+
966
+ .ck-ai-chat-content code{
967
+ background-color:var(--ck-color-ai-chat-content-code-background);
968
+ border-radius:2px;
969
+ padding:.15em;
970
+ }
971
+
972
+ .ck-ai-chat-content pre{
973
+ background:var(--ck-color-ai-chat-content-pre-background);
974
+ color:var(--ck-color-ai-chat-content-pre-text);
975
+ tab-size:4;
976
+ white-space:pre-wrap;
977
+ text-align:left;
978
+ direction:ltr;
979
+ border:0;
980
+ border-radius:2px;
981
+ min-width:200px;
982
+ margin:8px 0;
983
+ padding:1em;
984
+ font-style:normal;
985
+ }
986
+
987
+ .ck-ai-chat-content pre > code{
988
+ background:unset;
989
+ border-radius:0;
990
+ padding:0;
991
+ }
992
+
993
+ .ck-ai-chat-content ul, .ck-ai-chat-content ol{
994
+ margin:8px 0;
995
+ padding-left:1.5em;
996
+ }
997
+
998
+ .ck-ai-chat-content ul{
999
+ list-style-type:disc;
1000
+ }
1001
+
1002
+ .ck-ai-chat-content ol{
1003
+ list-style-type:decimal;
1004
+ }
1005
+
1006
+ .ck-ai-chat-content li > ul, .ck-ai-chat-content li > ol{
1007
+ margin:2px 0;
1008
+ }
1009
+
1010
+ .ck-ai-chat-content li + li{
1011
+ margin-top:2px;
1012
+ }
1013
+
1014
+ .ck-ai-chat-content ul ul, .ck-ai-chat-content ol ul{
1015
+ list-style-type:circle;
1016
+ }
1017
+
1018
+ .ck-ai-chat-content ul ol, .ck-ai-chat-content ol ol{
1019
+ list-style-type:lower-latin;
1020
+ }
1021
+
1022
+ .ck-ai-chat-content ul ul ul, .ck-ai-chat-content ul ol ul, .ck-ai-chat-content ol ul ul, .ck-ai-chat-content ol ol ul{
1023
+ list-style-type:square;
1024
+ }
1025
+
1026
+ .ck-ai-chat-content ul ul ol, .ck-ai-chat-content ul ol ol, .ck-ai-chat-content ol ul ol, .ck-ai-chat-content ol ol ol{
1027
+ list-style-type:lower-roman;
1028
+ }
1029
+
1030
+ .ck-ai-chat-content table{
1031
+ border-collapse:collapse;
1032
+ margin:8px 0;
1033
+ display:block;
1034
+ overflow-x:auto;
1035
+ }
1036
+
1037
+ .ck-ai-chat-content th, .ck-ai-chat-content td{
1038
+ border:1px solid var(--ck-color-ai-chat-content-table-border);
1039
+ padding:6.4px;
1040
+ }
1041
+
1042
+ .ck-ai-chat-content th{
1043
+ background:var(--ck-color-ai-chat-content-table-th-background);
1044
+ text-align:start;
1045
+ font-weight:bold;
1046
+ }
1047
+
1048
+ .ck-ai-chat-content blockquote{
1049
+ border-left:solid 2px var(--ck-color-ai-chat-content-blockquote-border);
1050
+ margin:20px 0 20px 1.5em;
1051
+ padding:0 1.5em;
1052
+ font-style:italic;
1053
+ }
1054
+
1055
+ .ck-ai-chat-content hr{
1056
+ background:var(--ck-color-ai-chat-content-hr-background);
1057
+ border:0;
1058
+ height:1px;
1059
+ margin:12px 1.5em;
1060
+ display:block;
1061
+ }
1062
+
890
1063
  .ck.ck-ai-chat-controls{
891
1064
  padding:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-standard);
892
1065
  line-height:var(--ck-form-header-height);
893
1066
  border-top:var(--ck-ai-chat-border-width) solid var(--ck-color-base-border);
1067
+ position:relative;
894
1068
  }
895
1069
 
896
1070
  .ck.ck-ai-chat-controls:has( > :first-child.ck-hidden){
@@ -903,6 +1077,32 @@
903
1077
  cursor:default;
904
1078
  }
905
1079
 
1080
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay{
1081
+ z-index:1;
1082
+ background:var(--ck-color-base-background);
1083
+ justify-content:center;
1084
+ align-items:center;
1085
+ gap:var(--ck-spacing-small);
1086
+ flex-direction:column;
1087
+ display:none;
1088
+ position:absolute;
1089
+ inset:0;
1090
+ }
1091
+
1092
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay .ck-icon{
1093
+ width:20px;
1094
+ height:20px;
1095
+ }
1096
+
1097
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay .ck-ai-chat-controls__drop-overlay__label{
1098
+ font-size:13px;
1099
+ font-weight:bold;
1100
+ }
1101
+
1102
+ .ck.ck-ai-chat-controls.ck-ai-chat-controls_drag-over .ck-ai-chat-controls__drop-overlay{
1103
+ display:flex;
1104
+ }
1105
+
906
1106
  .ck.ck-ai-chat-controls .ck-ai-chat-controls__model-selection{
907
1107
  line-height:0;
908
1108
  }
@@ -2404,6 +2604,10 @@ div.ck.ck-ai-suggestion__content-part-state.ck-ai-suggestion__content-part-state
2404
2604
  background-color:var(--ck-color-ai-quick-actions-button-background);
2405
2605
  }
2406
2606
 
2607
+ :is(.ck-ai-quick-actions-dropdown, .ck-ai-quick-actions-group-panel) .ck.ck-button.ck-disabled{
2608
+ opacity:var(--ck-disabled-opacity);
2609
+ }
2610
+
2407
2611
  :is(.ck-ai-quick-actions-dropdown, .ck-ai-quick-actions-group-panel) .ck-list__item:last-child > .ck.ck-button:not(.ck-list-item-button){
2408
2612
  margin-bottom:0;
2409
2613
  }
@@ -2471,7 +2675,7 @@ div.ck.ck-ai-suggestion__content-part-state.ck-ai-suggestion__content-part-state
2471
2675
  }
2472
2676
 
2473
2677
  .ck.ck-content.ck-ai-suggestion-streamable-content{
2474
- padding:0;
2678
+ padding:3px 0;
2475
2679
  overflow-x:auto;
2476
2680
  }
2477
2681
 
package/dist/index.css CHANGED
@@ -621,27 +621,39 @@
621
621
  text-wrap: auto;
622
622
  }
623
623
 
624
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item pre > code {
625
- white-space: pre-wrap;
626
- }
627
-
628
624
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message:has(.ck-ai-chat-context-chips-wrapper) {
629
625
  max-width: 100%;
630
626
  }
631
627
 
632
628
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content {
633
629
  text-align: end;
630
+ white-space: pre-wrap;
631
+ overflow-wrap: break-word;
634
632
  max-width: 80%;
635
633
  margin-inline: auto 0;
636
634
  }
637
635
 
636
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content * {
637
+ box-sizing: border-box;
638
+ }
639
+
640
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message .ck-ai-chat__feed__message-content * {
641
+ text-align: start;
642
+ }
643
+
638
644
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__user-message p {
639
645
  background-color: var(--ck-color-ai-chat-feed-item-background-secondary);
640
646
  padding: var(--ck-spacing-standard);
641
647
  border-radius: var(--ck-ai-border-radius);
648
+ width: max-content;
649
+ max-width: 100%;
642
650
  display: inline-block;
643
651
  }
644
652
 
653
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck-ai-chat__feed__ai-reply .ck-ai-chat__feed__ai-reply-container {
654
+ white-space: pre-wrap;
655
+ }
656
+
645
657
  .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck-ai-chat__feed__ai-suggestion {
646
658
  margin: 0 var(--ck-spacing-standard);
647
659
  }
@@ -686,11 +698,11 @@
686
698
  font-weight: 500;
687
699
  }
688
700
 
689
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container > *:first-child {
701
+ :is(.ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container) > *:first-child {
690
702
  margin-top: 0;
691
703
  }
692
704
 
693
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container > *:last-child {
705
+ :is(.ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__message-content, .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item .ck-ai-chat__feed__ai-reply-container) > *:last-child {
694
706
  margin-bottom: 0;
695
707
  }
696
708
 
@@ -717,7 +729,7 @@
717
729
  background-color: var(--ck-color-suggestion-widget-insertion-background);
718
730
  }
719
731
 
720
- .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item :not(.ck-ai-chat__feed__context-chips, .ck-ai-chat__feed__context-chips *, .ck-ai-web-source .ck-button__label, .ck-content.ck-ai-suggestion-streamable-content, .ck-content.ck-ai-suggestion-streamable-content *) {
732
+ .ck.ck-ai-chat__feed .ck.ck-ai-chat__feed__item.ck.ck-ai-chat__feed__text-item :not(.ck-ai-chat__feed__context-chips, .ck-ai-chat__feed__context-chips *, .ck-ai-web-source .ck-button__label, .ck-content.ck-ai-suggestion-streamable-content, .ck-content.ck-ai-suggestion-streamable-content *, .ck-ai-chat-content, .ck-ai-chat-content *) {
721
733
  white-space: pre-wrap;
722
734
  line-height: 1.4em;
723
735
  }
@@ -887,10 +899,172 @@
887
899
  }
888
900
  }
889
901
 
902
+ :root {
903
+ --ck-ai-chat-content-font-size: 13px;
904
+ --ck-ai-chat-content-line-height: 1.385;
905
+ --ck-color-ai-chat-content-text: #333;
906
+ --ck-color-ai-chat-content-link: #0000f0;
907
+ --ck-color-ai-chat-content-link-selected-background: #1fb0ff1a;
908
+ --ck-color-ai-chat-content-code-background: #c7c7c74d;
909
+ --ck-color-ai-chat-content-pre-background: #f5f5f5;
910
+ --ck-color-ai-chat-content-pre-text: #353535;
911
+ --ck-color-ai-chat-content-hr-background: #d9d9d9;
912
+ --ck-color-ai-chat-content-blockquote-border: #d9d9d9;
913
+ --ck-color-ai-chat-content-table-border: #bfbfbf;
914
+ --ck-color-ai-chat-content-table-th-background: #0000000d;
915
+ }
916
+
917
+ .ck-ai-chat-content {
918
+ font-family: var(--ck-font-face);
919
+ font-size: var(--ck-ai-chat-content-font-size);
920
+ line-height: var(--ck-ai-chat-content-line-height);
921
+ color: var(--ck-color-ai-chat-content-text);
922
+ }
923
+
924
+ .ck-ai-chat-content p {
925
+ margin: 8px 0;
926
+ }
927
+
928
+ .ck-ai-chat-content h1 {
929
+ margin: 24px 0 8px;
930
+ font-size: 1.462em;
931
+ line-height: 1.368;
932
+ }
933
+
934
+ .ck-ai-chat-content h2 {
935
+ margin: 12px 0 8px;
936
+ font-size: 1.308em;
937
+ line-height: 1.412;
938
+ }
939
+
940
+ .ck-ai-chat-content h3 {
941
+ margin: 8px 0;
942
+ font-size: 1.154em;
943
+ line-height: 1.4;
944
+ }
945
+
946
+ .ck-ai-chat-content h4 {
947
+ margin: 8px 0;
948
+ font-size: 1em;
949
+ line-height: 1.385;
950
+ }
951
+
952
+ .ck-ai-chat-content a {
953
+ color: var(--ck-color-ai-chat-content-link);
954
+ text-decoration: underline;
955
+ }
956
+
957
+ .ck-ai-chat-content a:focus-visible {
958
+ background-color: var(--ck-color-ai-chat-content-link-selected-background);
959
+ }
960
+
961
+ .ck-ai-chat-content code, .ck-ai-chat-content pre {
962
+ font-size: calc(var(--ck-ai-chat-content-font-size) * 12 / 13);
963
+ line-height: calc(var(--ck-ai-chat-content-font-size) * var(--ck-ai-chat-content-line-height));
964
+ }
965
+
966
+ .ck-ai-chat-content code {
967
+ background-color: var(--ck-color-ai-chat-content-code-background);
968
+ border-radius: 2px;
969
+ padding: .15em;
970
+ }
971
+
972
+ .ck-ai-chat-content pre {
973
+ background: var(--ck-color-ai-chat-content-pre-background);
974
+ color: var(--ck-color-ai-chat-content-pre-text);
975
+ tab-size: 4;
976
+ white-space: pre-wrap;
977
+ text-align: left;
978
+ direction: ltr;
979
+ border: 0;
980
+ border-radius: 2px;
981
+ min-width: 200px;
982
+ margin: 8px 0;
983
+ padding: 1em;
984
+ font-style: normal;
985
+ }
986
+
987
+ .ck-ai-chat-content pre > code {
988
+ background: unset;
989
+ border-radius: 0;
990
+ padding: 0;
991
+ }
992
+
993
+ .ck-ai-chat-content ul, .ck-ai-chat-content ol {
994
+ margin: 8px 0;
995
+ padding-left: 1.5em;
996
+ }
997
+
998
+ .ck-ai-chat-content ul {
999
+ list-style-type: disc;
1000
+ }
1001
+
1002
+ .ck-ai-chat-content ol {
1003
+ list-style-type: decimal;
1004
+ }
1005
+
1006
+ .ck-ai-chat-content li > ul, .ck-ai-chat-content li > ol {
1007
+ margin: 2px 0;
1008
+ }
1009
+
1010
+ .ck-ai-chat-content li + li {
1011
+ margin-top: 2px;
1012
+ }
1013
+
1014
+ .ck-ai-chat-content ul ul, .ck-ai-chat-content ol ul {
1015
+ list-style-type: circle;
1016
+ }
1017
+
1018
+ .ck-ai-chat-content ul ol, .ck-ai-chat-content ol ol {
1019
+ list-style-type: lower-latin;
1020
+ }
1021
+
1022
+ .ck-ai-chat-content ul ul ul, .ck-ai-chat-content ul ol ul, .ck-ai-chat-content ol ul ul, .ck-ai-chat-content ol ol ul {
1023
+ list-style-type: square;
1024
+ }
1025
+
1026
+ .ck-ai-chat-content ul ul ol, .ck-ai-chat-content ul ol ol, .ck-ai-chat-content ol ul ol, .ck-ai-chat-content ol ol ol {
1027
+ list-style-type: lower-roman;
1028
+ }
1029
+
1030
+ .ck-ai-chat-content table {
1031
+ border-collapse: collapse;
1032
+ margin: 8px 0;
1033
+ display: block;
1034
+ overflow-x: auto;
1035
+ }
1036
+
1037
+ .ck-ai-chat-content th, .ck-ai-chat-content td {
1038
+ border: 1px solid var(--ck-color-ai-chat-content-table-border);
1039
+ padding: 6.4px;
1040
+ }
1041
+
1042
+ .ck-ai-chat-content th {
1043
+ background: var(--ck-color-ai-chat-content-table-th-background);
1044
+ text-align: start;
1045
+ font-weight: bold;
1046
+ }
1047
+
1048
+ .ck-ai-chat-content blockquote {
1049
+ border-left: solid 2px var(--ck-color-ai-chat-content-blockquote-border);
1050
+ margin: 20px 0 20px 1.5em;
1051
+ padding: 0 1.5em;
1052
+ font-style: italic;
1053
+ }
1054
+
1055
+ .ck-ai-chat-content hr {
1056
+ background: var(--ck-color-ai-chat-content-hr-background);
1057
+ border: 0;
1058
+ height: 1px;
1059
+ margin: 12px 1.5em;
1060
+ display: block;
1061
+ }
1062
+
890
1063
  .ck.ck-ai-chat-controls {
891
1064
  padding: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-standard);
892
1065
  line-height: var(--ck-form-header-height);
893
1066
  border-top: var(--ck-ai-chat-border-width) solid var(--ck-color-base-border);
1067
+ position: relative;
894
1068
  }
895
1069
 
896
1070
  .ck.ck-ai-chat-controls:has( > :first-child.ck-hidden) {
@@ -903,6 +1077,32 @@
903
1077
  cursor: default;
904
1078
  }
905
1079
 
1080
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay {
1081
+ z-index: 1;
1082
+ background: var(--ck-color-base-background);
1083
+ justify-content: center;
1084
+ align-items: center;
1085
+ gap: var(--ck-spacing-small);
1086
+ flex-direction: column;
1087
+ display: none;
1088
+ position: absolute;
1089
+ inset: 0;
1090
+ }
1091
+
1092
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay .ck-icon {
1093
+ width: 20px;
1094
+ height: 20px;
1095
+ }
1096
+
1097
+ .ck.ck-ai-chat-controls .ck-ai-chat-controls__drop-overlay .ck-ai-chat-controls__drop-overlay__label {
1098
+ font-size: 13px;
1099
+ font-weight: bold;
1100
+ }
1101
+
1102
+ .ck.ck-ai-chat-controls.ck-ai-chat-controls_drag-over .ck-ai-chat-controls__drop-overlay {
1103
+ display: flex;
1104
+ }
1105
+
906
1106
  .ck.ck-ai-chat-controls .ck-ai-chat-controls__model-selection {
907
1107
  line-height: 0;
908
1108
  }
@@ -2407,6 +2607,10 @@ div.ck.ck-ai-suggestion__content-part-state.ck-ai-suggestion__content-part-state
2407
2607
  background-color: var(--ck-color-ai-quick-actions-button-background);
2408
2608
  }
2409
2609
 
2610
+ :is(.ck-ai-quick-actions-dropdown, .ck-ai-quick-actions-group-panel) .ck.ck-button.ck-disabled {
2611
+ opacity: var(--ck-disabled-opacity);
2612
+ }
2613
+
2410
2614
  :is(.ck-ai-quick-actions-dropdown, .ck-ai-quick-actions-group-panel) .ck-list__item:last-child > .ck.ck-button:not(.ck-list-item-button) {
2411
2615
  margin-bottom: 0;
2412
2616
  }
@@ -2474,7 +2678,7 @@ div.ck.ck-ai-suggestion__content-part-state.ck-ai-suggestion__content-part-state
2474
2678
  }
2475
2679
 
2476
2680
  .ck.ck-content.ck-ai-suggestion-streamable-content {
2477
- padding: 0;
2681
+ padding: 3px 0;
2478
2682
  overflow-x: auto;
2479
2683
  }
2480
2684
 
package/dist/index.d.ts CHANGED
@@ -29,12 +29,12 @@ export { ToggleAICommand } from './aieditorintegration/aitogglebutton/toggleaico
29
29
  export { AITabsMainView, type AITabsMainViewOptions } from './aitabs/aitabsmainview.js';
30
30
  export { AITabsView, type AITabsAddTabOptions, type AITabsViewOptions, type AITabsActivateTabEvent } from './aitabs/tabs/aitabsview.js';
31
31
  export { type AIResizedTabsEvent, type AIResizeTabsEvent } from './aitabs/aitabs.js';
32
- export { type AIChatContextConfig, type AIAddContextOptionsState, type AIChatContextItemAddedEvent, type AIChatContextItemRemovedEvent, type AIChatContextSentEvent, type AIChatContextAddContextOptionsChangedEvent, type AIContextProvider, type AIContextResource, type AIContextResourceState, type AIContextProviderState, type AIContextTextResource, type AIContextCustomItem, type AIChatContextUploadProgressChangedEvent } from './aichat/model/aichatcontext.js';
33
- export { type AIContextItemType, type AIContextItemRequestData, type AIContextItem, type AIContextTextResourceType, type AIDataIdDocumentSource, type AIDocumentContextSlice } from './aicore/model/aicontext.js';
32
+ export { type AIChatContextConfig, type AIChatContextPasteConfig, type AIAddContextOptionsState, type AIChatContextItemAddedEvent, type AIChatContextItemRemovedEvent, type AIChatContextSentEvent, type AIChatContextAddContextOptionsChangedEvent, type AIContextProvider, type AIContextResource, type AIContextResourceState, type AIContextProviderState, type AIContextTextResource, type AIContextCustomItem, type AIChatContextUploadProgressChangedEvent } from './aichat/model/aichatcontext.js';
33
+ export { type AIContextItemType, type AIContextItemRequestData, type AIContextItem, type AIContextTextResourceType } from './aicore/model/aicontext.js';
34
34
  export { type AIModelsConfig } from './aicore/model/aimodels.js';
35
35
  export { type AIToolData, AIInteraction, type AIInteractionOptions, type AIInteractionStartedEvent, type AIInteractionStoppedEvent, type AIInteractionFinishedEvent, type AIInteractionDestroyedEvent, type AIInteractionReplyCreatedEvent } from './aicore/model/aiinteraction.js';
36
36
  export { AIReply, type AIReplyType, type AIReplyContentUpdatedEvent, type AIReplyHotNode, type AIReplyChangeGroup, type AIReplyChangeGroupState } from './aicore/model/aireply.js';
37
- export { type AIGenericRequest, type AIConversationStartReply, type AIConversationStartRequest, type AIConnectorReply, type AIConnectorRequest, type AIConnectorQueryAssistantData, type AIUploadReply, type AIUploadRequest, type AIModelData, type AIModelRequest, type AIFetchDocumentReply, type AIFetchDocumentRequest, type AIConversationItem, type AIFetchConversationsRequest, type AIDeleteConversationRequest, type AIUserMessage, type AIUserMessageContent, type AIAssistantMessage, type AIConversationMessage, type AIGetConversationReply, type AIGetConversationRequest, type AIGetConversationMessagesRequest, type AIUpdateConversationRequest, type AIDeleteFileRequest, type AIDeleteDocumentRequest, type AIDeleteWebResourceRequest, type AIConnectorExecuteActionData, type AIConnectorExecuteCustomActionData, type AIConnectorSystemReviewData, type AIConnectorCustomReviewData, type AIUpdateRating, type AIRating, type AISource } from './aicore/aiconnector.js';
37
+ export { type AIGenericRequest, type AIConversationStartReply, type AIConversationStartRequest, type AIConnectorReply, type AIConnectorRequest, type AIConnectorQueryAssistantData, type AICancelStreamRequest, type AIUploadReply, type AIUploadRequest, type AIModelData, type AIModelRequest, type AIFetchDocumentReply, type AIFetchDocumentRequest, type AIConversationItem, type AIFetchConversationsRequest, type AIDeleteConversationRequest, type AIUserMessage, type AIUserMessageContent, type AIAssistantMessage, type AIConversationMessage, type AIGetConversationReply, type AIGetConversationRequest, type AIGetConversationMessagesRequest, type AIUpdateConversationRequest, type AIDeleteFileRequest, type AIDeleteDocumentRequest, type AIDeleteWebResourceRequest, type AIConnectorExecuteActionData, type AIConnectorExecuteCustomActionData, type AIConnectorSystemReviewData, type AIConnectorCustomReviewData, type AIUpdateRating, type AIRating, type AISource } from './aicore/aiconnector.js';
38
38
  export { type AIChatUIStartConversationEvent, type AIChatUISendUserMessageEvent, type AIChatUIAbortPromptStreamEvent, type AIChatUIAddDocumentToContextEvent, type AIChatUIAddFileToContextEvent, type AIChatUIRemoveContextItemEvent } from './aichat/aichatui.js';
39
39
  export { AIChatHistory } from './aichathistory/aichathistory.js';
40
40
  export { AIChatHistoryController } from './aichathistory/aichathistorycontroller.js';
@@ -46,6 +46,10 @@ export { AIActions, type AIActionsNames, type AIActionDefinition } from './aiact
46
46
  export { AIBalloon } from './aiballoon/aiballoon.js';
47
47
  export type { AIReviewCheckOptionData, AIReviewCheckOptions, AIReviewCheckDefinition } from './aireviewcore/types.js';
48
48
  export { AIReviewMode, type AIReviewCustomCommand, type AIReviewModeConfig } from './aireviewmode/aireviewmode.js';
49
+ export { AIReviewGateway, type AIReviewCommandData, type AIReviewRunOptions, type AIReviewCustomRunOptions, type AIReviewHeadlessRunOptions, type AIReviewHeadlessCustomRunOptions } from './aireviewmode/aireviewgateway.js';
50
+ export { AIGateway, type AIRunApplyMethod, type AIRunChangeData } from './aicore/aigateway.js';
51
+ export { AIRunResult, type AIRunStatus, type AIRunResultInput } from './aicore/model/airunresult.js';
52
+ export { AIReviewRunResult } from './aireviewmode/model/aireviewrunresult.js';
49
53
  export { AIReviewCoreController as AIReviewModeController } from './aireviewcore/aireviewcorecontroller.js';
50
54
  export { AIReviewCoreEditing as AIReviewModeEditing, type AIDocumentDataElement, type AIDocumentData, type AIDiffResult, type AIReviewCoreChangeRange, type AIReviewCoreChangeData } from './aireviewcore/aireviewcoreediting.js';
51
55
  export { AIReviewModeUI } from './aireviewmode/aireviewmodeui.js';