@ckeditor/ckeditor5-ai 49.1.0-alpha.2 → 49.1.0-alpha.3
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.
- package/dist/aichat/aichat.d.ts +7 -0
- package/dist/aichat/aichatcontroller.d.ts +5 -1
- package/dist/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.d.ts +8 -1
- package/dist/aicore/utils/autoadvancedelay.d.ts +14 -0
- package/dist/aireviewmode/aireviewmode.d.ts +7 -0
- package/dist/index-editor.css +30 -29
- package/dist/index.css +30 -29
- package/dist/index.js +21 -21
- package/dist/toolkit/proposedchangescontrollertype.d.ts +11 -0
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +32 -32
package/dist/aichat/aichat.d.ts
CHANGED
|
@@ -93,4 +93,11 @@ export interface AIChatConfig {
|
|
|
93
93
|
* @default 'Hi! I can help you draft, rewrite, and improve your text, explore ideas, research topics, and solve problems. How can I help right now?'
|
|
94
94
|
*/
|
|
95
95
|
welcomeMessage?: string;
|
|
96
|
+
/**
|
|
97
|
+
* How long, in milliseconds, AI Chat waits after the user applies, suggests or rejects a proposed change before it moves on to the next
|
|
98
|
+
* change. The decided change shows its new state in the meantime. Set it to `0` to move on right away.
|
|
99
|
+
*
|
|
100
|
+
* @default 600
|
|
101
|
+
*/
|
|
102
|
+
autoAdvanceDelay?: number;
|
|
96
103
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aichat/aichatcontroller
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextPlugin, Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { ContextPlugin, Editor, type PluginDependenciesOf, type Context } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
import { AIConnector } from "../aicore/aiconnector.js";
|
|
11
11
|
import { AIErrorSink } from "../aicore/aierrorreporter.js";
|
|
12
12
|
import { AIChatConversation, type AIChatInteractionCreatedEvent } from "./model/aichatconversation.js";
|
|
@@ -54,6 +54,10 @@ export declare class AIChatController extends ContextPlugin {
|
|
|
54
54
|
/**
|
|
55
55
|
* @inheritDoc
|
|
56
56
|
*/
|
|
57
|
+
constructor(context: Context | Editor);
|
|
58
|
+
/**
|
|
59
|
+
* @inheritDoc
|
|
60
|
+
*/
|
|
57
61
|
init(): void;
|
|
58
62
|
/**
|
|
59
63
|
* @inheritDoc
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { View } from "@ckeditor/ckeditor5-ui";
|
|
9
9
|
import { type Locale } from "@ckeditor/ckeditor5-utils";
|
|
10
|
-
import { type AIReplyChangeGroupOutdatedReason } from "../../model/aireply.js";
|
|
10
|
+
import { type AIReplyChangeGroupState, type AIReplyChangeGroupOutdatedReason } from "../../model/aireply.js";
|
|
11
11
|
import { type AISuggestionContentPartTranslationKeys } from "../../utils/contentparttranslationkeys.js";
|
|
12
12
|
export type AISuggestionContentPartState = "accepted" | "rejected" | "outdated";
|
|
13
13
|
export declare const ICON_STATE_MAP: Record<AISuggestionContentPartState, string>;
|
|
@@ -38,3 +38,10 @@ export declare class AISuggestionContentPartStateView extends View {
|
|
|
38
38
|
*/
|
|
39
39
|
setState(state: keyof typeof ICON_STATE_MAP, outdatedReason?: AIReplyChangeGroupOutdatedReason): void;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Checks whether a change of state is a decision made on a pending change, that is, whether it got accepted or rejected.
|
|
43
|
+
* Only such a change of state is confirmed with the pill popping in (see
|
|
44
|
+
* {@link module:ai/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview~AISuggestionContentPartStateView#isAnimated}).
|
|
45
|
+
* A change that went outdated was not decided on: its content changed under it.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isDecisionMade(oldState: AIReplyChangeGroupState, newState: AIReplyChangeGroupState): boolean;
|
|
@@ -5,9 +5,23 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aicore/utils/autoadvancedelay
|
|
7
7
|
*/
|
|
8
|
+
import { type DelayedFunc } from "@ckeditor/ckeditor5-utils";
|
|
8
9
|
/**
|
|
9
10
|
* How long, in milliseconds, the built-in UI waits after a decision on a change before it moves on to the next one.
|
|
10
11
|
* The decided change shows its state ("Accepted", "Dismissed") in the meantime, so the user sees the decision land before
|
|
11
12
|
* the lists, the content and the floating UI move, all at once.
|
|
13
|
+
*
|
|
14
|
+
* It is the default value of
|
|
15
|
+
* {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig#autoAdvanceDelay `config.ai.review.autoAdvanceDelay`},
|
|
16
|
+
* {@link module:ai/aichat/aichat~AIChatConfig#autoAdvanceDelay `config.ai.chat.autoAdvanceDelay`}, and
|
|
17
|
+
* {@link module:ai/toolkit/proposedchangescontrollertype~ProposedChangesControllerOptions#autoAdvanceDelay}.
|
|
12
18
|
*/
|
|
13
19
|
export declare const AUTO_ADVANCE_DELAY = 600;
|
|
20
|
+
/**
|
|
21
|
+
* Works like {@link module:utils/delay~delay `delay()`}, but with `wait` set to `0` it calls `func` right away, in the same call
|
|
22
|
+
* as the decision, so turning the pause off does not leave a frame with the decided change still in place.
|
|
23
|
+
*
|
|
24
|
+
* @param func The function to wrap.
|
|
25
|
+
* @param wait The timeout in ms.
|
|
26
|
+
*/
|
|
27
|
+
export declare function delayAutoAdvance<T extends (...args: Array<any>) => any>(func: T, wait: number): DelayedFunc<T>;
|
|
@@ -198,6 +198,13 @@ export interface AIReviewModeConfig {
|
|
|
198
198
|
* ```
|
|
199
199
|
*/
|
|
200
200
|
extraCommands?: Array<AIReviewCustomCommand>;
|
|
201
|
+
/**
|
|
202
|
+
* How long, in milliseconds, AI Review waits after the user accepts or dismisses a change before it moves on to the next
|
|
203
|
+
* change. The decided change shows its new state in the meantime. Set it to `0` to move on right away.
|
|
204
|
+
*
|
|
205
|
+
* @default 600
|
|
206
|
+
*/
|
|
207
|
+
autoAdvanceDelay?: number;
|
|
201
208
|
}
|
|
202
209
|
/**
|
|
203
210
|
* An extra review command definition.
|
package/dist/index-editor.css
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
--ck-ai-form-content-height: 175px;
|
|
74
74
|
--ck-ai-form-content-background: var(--ck-color-surface-subtle);
|
|
75
75
|
--ck-ai-form-history-font-size: .9em;
|
|
76
|
-
--ck-ai-form-error-background:
|
|
76
|
+
--ck-ai-form-error-background: var(--ck-ai-error-background-color);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.ck .ck-ai-form {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
white-space: normal;
|
|
120
120
|
width: 100%;
|
|
121
121
|
padding: var(--ck-spacing-padding-tight) var(--ck-spacing-padding);
|
|
122
|
-
min-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
122
|
+
min-height: calc(var(--ck-line-height-base) * var(--ck-font-size-normal, var(--ck-font-size-base)));
|
|
123
123
|
box-sizing: content-box;
|
|
124
124
|
|
|
125
125
|
[dir="ltr"] & {
|
|
@@ -710,9 +710,9 @@
|
|
|
710
710
|
display: grid;
|
|
711
711
|
|
|
712
712
|
& > .ck-ai-web-sources__header {
|
|
713
|
-
grid-column-start: span 3;
|
|
714
713
|
font-size: 12px;
|
|
715
|
-
font-weight:
|
|
714
|
+
font-weight: var(--ck-font-weight-medium);
|
|
715
|
+
grid-column-start: span 3;
|
|
716
716
|
line-height: 1.4em;
|
|
717
717
|
|
|
718
718
|
& > .ck-icon {
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
text-overflow: ellipsis;
|
|
757
757
|
max-width: 75px;
|
|
758
758
|
font-size: 10px;
|
|
759
|
-
font-weight:
|
|
759
|
+
font-weight: var(--ck-font-weight-bold);
|
|
760
760
|
line-height: 1.4em;
|
|
761
761
|
overflow: hidden;
|
|
762
762
|
}
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
:root, :host {
|
|
1063
1063
|
--ck-ai-model-selector-item-name-font-size: var(--ck-font-size-md);
|
|
1064
1064
|
--ck-ai-model-selector-item-description-font-size: var(--ck-font-size-sm);
|
|
1065
|
-
--ck-ai-model-selector-item-capability-icon-size: var(--ck-font-size-base);
|
|
1065
|
+
--ck-ai-model-selector-item-capability-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1066
1066
|
--ck-ai-model-selector-item-secondary-color: var(--ck-ai-neutral-600-color);
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
--ck-ai-chat-model-selection-panel-max-width: 426px;
|
|
1157
1157
|
--ck-ai-chat-model-selection-item-name-font-size: var(--ck-font-size-md);
|
|
1158
1158
|
--ck-ai-chat-model-selection-item-description-font-size: var(--ck-font-size-sm);
|
|
1159
|
-
--ck-ai-chat-model-selection-item-capability-icon-size: var(--ck-font-size-base);
|
|
1159
|
+
--ck-ai-chat-model-selection-item-capability-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
.ck.ck-ai-chat-controls {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
|
|
1206
1206
|
& .ck-ai-chat-controls__drop-overlay__label {
|
|
1207
1207
|
font-size: 13px;
|
|
1208
|
-
font-weight: bold;
|
|
1208
|
+
font-weight: var(--ck-font-weight-bold);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
@@ -1705,7 +1705,7 @@
|
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
1707
|
& .ck-ai-chat-resources__item__icon {
|
|
1708
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
1708
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1709
1709
|
margin-inline-end: var(--ck-spacing-control-icon-gap);
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
@@ -1769,8 +1769,8 @@
|
|
|
1769
1769
|
--ck-ai-chat-disclaimer-divider-width: 210px;
|
|
1770
1770
|
--ck-ai-chat-suggestion-icon-default-color: var(--ck-color-text);
|
|
1771
1771
|
--ck-ai-chat-user-context-background-color: var(--ck-ai-neutral-50-color);
|
|
1772
|
-
--ck-ai-chat-flash-color: var(--ck-
|
|
1773
|
-
--ck-ai-chat-flash-text-color: var(--ck-
|
|
1772
|
+
--ck-ai-chat-flash-color: var(--ck-ai-accent-50-color);
|
|
1773
|
+
--ck-ai-chat-flash-text-color: var(--ck-ai-accent-700-color);
|
|
1774
1774
|
--ck-ai-chat-animation-duration: .6s;
|
|
1775
1775
|
--ck-ai-chat-animation-timing: ease-out;
|
|
1776
1776
|
}
|
|
@@ -1811,6 +1811,7 @@
|
|
|
1811
1811
|
}
|
|
1812
1812
|
|
|
1813
1813
|
.ck.ck-ai-suggestion__body__content-part {
|
|
1814
|
+
--ck-suggestion-marker-format-gap-color: var(--ck-color-surface-canvas);
|
|
1814
1815
|
border-radius: var(--ck-ai-suggestion-content-part-radius);
|
|
1815
1816
|
border: var(--ck-border-width-surface) solid var(--ck-color-border-container);
|
|
1816
1817
|
padding: var(--ck-spacing-padding-comfortable);
|
|
@@ -1857,7 +1858,7 @@
|
|
|
1857
1858
|
}
|
|
1858
1859
|
|
|
1859
1860
|
& .ck-suggestion-marker-formatBlock:not([data-author-id="$aiSuggestion"]) {
|
|
1860
|
-
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-active-background-color);
|
|
1861
|
+
box-shadow: -7px 0 0 0 var(--ck-suggestion-marker-format-gap-color, var(--ck-color-base-background)), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-active-background-color);
|
|
1861
1862
|
}
|
|
1862
1863
|
|
|
1863
1864
|
& .ck-suggestion-marker-deletion:not([data-author-id="$aiSuggestion"]) {
|
|
@@ -2105,7 +2106,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2105
2106
|
|
|
2106
2107
|
.ck.ck-tabs {
|
|
2107
2108
|
--ck-tab-button-active-background: var(--ck-ai-tab-active-surface-color);
|
|
2108
|
-
font-size: var(--ck-font-size-base);
|
|
2109
|
+
font-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
2109
2110
|
border: var(--ck-border-surface);
|
|
2110
2111
|
border-radius: var(--ck-tabs-border-radius);
|
|
2111
2112
|
min-width: 0;
|
|
@@ -2443,7 +2444,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2443
2444
|
|
|
2444
2445
|
& .ck-ai-chat-history__item-check-container {
|
|
2445
2446
|
height: var(--ck-size-control-min-height);
|
|
2446
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
2447
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
2447
2448
|
min-width: var(--ck-ai-chat-history-check-slot-width);
|
|
2448
2449
|
align-items: center;
|
|
2449
2450
|
display: flex;
|
|
@@ -2622,7 +2623,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2622
2623
|
}
|
|
2623
2624
|
|
|
2624
2625
|
& > span:first-child {
|
|
2625
|
-
font-weight: bold;
|
|
2626
|
+
font-weight: var(--ck-font-weight-bold);
|
|
2626
2627
|
display: block;
|
|
2627
2628
|
}
|
|
2628
2629
|
|
|
@@ -2802,7 +2803,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2802
2803
|
}
|
|
2803
2804
|
|
|
2804
2805
|
& .ck-suggestion-marker-formatBlock:not([data-author-id="$aiSuggestion"]) {
|
|
2805
|
-
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-background-color);
|
|
2806
|
+
box-shadow: -7px 0 0 0 var(--ck-suggestion-marker-format-gap-color, var(--ck-color-base-background)), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-background-color);
|
|
2806
2807
|
}
|
|
2807
2808
|
|
|
2808
2809
|
& > .ck-suggestion-marker-formatBlock:not(.table:not(.layout-table):not(.table-style-align-left):not(.table-style-block-align-left)):not(.image:not(.image-style-align-left):not(.image-style-block-align-left)):not(.media:not(.media-style-align-left):not(.media-style-block-align-left)) {
|
|
@@ -2832,6 +2833,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2832
2833
|
}
|
|
2833
2834
|
|
|
2834
2835
|
.ck.ck-ai-balloon {
|
|
2836
|
+
--ck-suggestion-marker-format-gap-color: var(--ck-color-dialog-background, var(--ck-dialog-background-color));
|
|
2835
2837
|
flex-direction: column;
|
|
2836
2838
|
justify-content: space-between;
|
|
2837
2839
|
display: flex;
|
|
@@ -2847,7 +2849,6 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2847
2849
|
border-bottom: none;
|
|
2848
2850
|
|
|
2849
2851
|
& .ck-form__header__label {
|
|
2850
|
-
font-weight: 600;
|
|
2851
2852
|
line-height: 1.5em;
|
|
2852
2853
|
}
|
|
2853
2854
|
}
|
|
@@ -3094,7 +3095,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3094
3095
|
}
|
|
3095
3096
|
|
|
3096
3097
|
:root, :host {
|
|
3097
|
-
--ck-ai-header-icon-color: var(--ck-color-text);
|
|
3098
|
+
--ck-ai-header-icon-color: var(--ck-form-header-text-color, var(--ck-color-text));
|
|
3098
3099
|
}
|
|
3099
3100
|
|
|
3100
3101
|
.ck-ai-header {
|
|
@@ -3112,7 +3113,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3112
3113
|
margin-inline-start: var(--ck-spacing-gap);
|
|
3113
3114
|
|
|
3114
3115
|
& > .ck-button__icon {
|
|
3115
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
3116
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
3116
3117
|
color: var(--ck-ai-header-icon-color);
|
|
3117
3118
|
}
|
|
3118
3119
|
}
|
|
@@ -3128,7 +3129,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3128
3129
|
|
|
3129
3130
|
& > .ck.ck-icon.ck-button__icon {
|
|
3130
3131
|
--ck-icon-size: var(--ck-font-size-md);
|
|
3131
|
-
color:
|
|
3132
|
+
color: inherit;
|
|
3132
3133
|
}
|
|
3133
3134
|
}
|
|
3134
3135
|
|
|
@@ -3235,7 +3236,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3235
3236
|
--ck-ai-neutral-600-color: var(--ck-color-text-secondary);
|
|
3236
3237
|
--ck-ai-neutral-300-color: var(--ck-color-border-container);
|
|
3237
3238
|
--ck-ai-neutral-100-color: var(--ck-color-interactive-hover-surface);
|
|
3238
|
-
--ck-ai-neutral-50-color: var(--ck-color-
|
|
3239
|
+
--ck-ai-neutral-50-color: var(--ck-color-surface-subtle);
|
|
3239
3240
|
--ck-ai-white-color: var(--ck-color-surface-canvas);
|
|
3240
3241
|
--ck-ai-accent-700-color: var(--ck-color-interactive-primary-surface);
|
|
3241
3242
|
--ck-ai-accent-700-a1-color: hsla(from var(--ck-ai-accent-700-color) h s l / var(--ck-ai-alpha-1));
|
|
@@ -3278,12 +3279,12 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3278
3279
|
--ck-ai-suggestion-preview-deletion-active-background-color: var(--ck-ai-deletion-active-background-color);
|
|
3279
3280
|
--ck-ai-suggestion-preview-deletion-stroke-color: var(--ck-ai-deletion-stroke-color);
|
|
3280
3281
|
--ck-ai-suggestion-pill-accepted-text-color: var(--ck-color-feedback-success);
|
|
3281
|
-
--ck-ai-suggestion-pill-accepted-background-color:
|
|
3282
|
+
--ck-ai-suggestion-pill-accepted-background-color: var(--ck-color-feedback-success-surface);
|
|
3282
3283
|
--ck-ai-suggestion-pill-rejected-text-color: var(--ck-color-feedback-error);
|
|
3283
|
-
--ck-ai-suggestion-pill-rejected-background-color:
|
|
3284
|
+
--ck-ai-suggestion-pill-rejected-background-color: var(--ck-color-feedback-error-surface);
|
|
3284
3285
|
--ck-ai-suggestion-pill-outdated-text-color: var(--ck-color-text-secondary);
|
|
3285
3286
|
--ck-ai-suggestion-pill-outdated-background-color: hsla(from var(--ck-color-text-secondary) h s l / var(--ck-ai-alpha-1));
|
|
3286
|
-
--ck-ai-error-background-color:
|
|
3287
|
+
--ck-ai-error-background-color: var(--ck-color-feedback-error-surface);
|
|
3287
3288
|
--ck-ai-error-border-color: var(--ck-ai-deletion-border-color);
|
|
3288
3289
|
--ck-ai-warning-color: #f0b428;
|
|
3289
3290
|
--ck-ai-warning-background-color: hsla(from var(--ck-ai-warning-color) h s l / var(--ck-ai-alpha-1));
|
|
@@ -3926,14 +3927,14 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3926
3927
|
--ck-ai-review-summary-border-radius: var(--ck-radius-base);
|
|
3927
3928
|
--ck-ai-review-summary-padding: var(--ck-spacing-padding-comfortable);
|
|
3928
3929
|
--ck-ai-review-summary-gap: var(--ck-spacing-gap-compact);
|
|
3929
|
-
--ck-ai-review-summary-title-color: var(--ck-
|
|
3930
|
+
--ck-ai-review-summary-title-color: var(--ck-ai-neutral-900-color);
|
|
3930
3931
|
--ck-ai-review-summary-title-font-size: var(--ck-font-size-md);
|
|
3931
3932
|
--ck-ai-review-summary-title-font-weight: var(--ck-font-weight-bold);
|
|
3932
3933
|
--ck-ai-review-summary-counts-font-size: var(--ck-font-size-md);
|
|
3933
3934
|
--ck-ai-review-summary-counts-font-weight: var(--ck-font-weight-medium);
|
|
3934
|
-
--ck-ai-review-summary-accepted-color: var(--ck-
|
|
3935
|
-
--ck-ai-review-summary-dismissed-color: var(--ck-
|
|
3936
|
-
--ck-ai-review-summary-hint-color: var(--ck-
|
|
3935
|
+
--ck-ai-review-summary-accepted-color: var(--ck-ai-suggestion-pill-accepted-text-color);
|
|
3936
|
+
--ck-ai-review-summary-dismissed-color: var(--ck-ai-suggestion-pill-rejected-text-color);
|
|
3937
|
+
--ck-ai-review-summary-hint-color: var(--ck-ai-neutral-600-color);
|
|
3937
3938
|
--ck-ai-review-summary-hint-font-size: var(--ck-font-size-sm);
|
|
3938
3939
|
--ck-ai-review-summary-hint-font-weight: var(--ck-font-weight-medium);
|
|
3939
3940
|
}
|
|
@@ -4113,7 +4114,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
4113
4114
|
& .ck-ai_review__check-list-item-description {
|
|
4114
4115
|
color: var(--ck-ai-review-check-list-item-description-color);
|
|
4115
4116
|
font-size: var(--ck-ai-review-check-list-item-description-font-size);
|
|
4116
|
-
font-weight:
|
|
4117
|
+
font-weight: var(--ck-font-weight-ui-default);
|
|
4117
4118
|
line-height: var(--ck-line-height-base);
|
|
4118
4119
|
white-space: normal;
|
|
4119
4120
|
}
|
package/dist/index.css
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
--ck-ai-form-content-height: 175px;
|
|
74
74
|
--ck-ai-form-content-background: var(--ck-color-surface-subtle);
|
|
75
75
|
--ck-ai-form-history-font-size: .9em;
|
|
76
|
-
--ck-ai-form-error-background:
|
|
76
|
+
--ck-ai-form-error-background: var(--ck-ai-error-background-color);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.ck .ck-ai-form {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
white-space: normal;
|
|
120
120
|
width: 100%;
|
|
121
121
|
padding: var(--ck-spacing-padding-tight) var(--ck-spacing-padding);
|
|
122
|
-
min-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
122
|
+
min-height: calc(var(--ck-line-height-base) * var(--ck-font-size-normal, var(--ck-font-size-base)));
|
|
123
123
|
box-sizing: content-box;
|
|
124
124
|
|
|
125
125
|
[dir="ltr"] & {
|
|
@@ -710,9 +710,9 @@
|
|
|
710
710
|
display: grid;
|
|
711
711
|
|
|
712
712
|
& > .ck-ai-web-sources__header {
|
|
713
|
-
grid-column-start: span 3;
|
|
714
713
|
font-size: 12px;
|
|
715
|
-
font-weight:
|
|
714
|
+
font-weight: var(--ck-font-weight-medium);
|
|
715
|
+
grid-column-start: span 3;
|
|
716
716
|
line-height: 1.4em;
|
|
717
717
|
|
|
718
718
|
& > .ck-icon {
|
|
@@ -756,7 +756,7 @@
|
|
|
756
756
|
text-overflow: ellipsis;
|
|
757
757
|
max-width: 75px;
|
|
758
758
|
font-size: 10px;
|
|
759
|
-
font-weight:
|
|
759
|
+
font-weight: var(--ck-font-weight-bold);
|
|
760
760
|
line-height: 1.4em;
|
|
761
761
|
overflow: hidden;
|
|
762
762
|
}
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
:root, :host {
|
|
1063
1063
|
--ck-ai-model-selector-item-name-font-size: var(--ck-font-size-md);
|
|
1064
1064
|
--ck-ai-model-selector-item-description-font-size: var(--ck-font-size-sm);
|
|
1065
|
-
--ck-ai-model-selector-item-capability-icon-size: var(--ck-font-size-base);
|
|
1065
|
+
--ck-ai-model-selector-item-capability-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1066
1066
|
--ck-ai-model-selector-item-secondary-color: var(--ck-ai-neutral-600-color);
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
--ck-ai-chat-model-selection-panel-max-width: 426px;
|
|
1157
1157
|
--ck-ai-chat-model-selection-item-name-font-size: var(--ck-font-size-md);
|
|
1158
1158
|
--ck-ai-chat-model-selection-item-description-font-size: var(--ck-font-size-sm);
|
|
1159
|
-
--ck-ai-chat-model-selection-item-capability-icon-size: var(--ck-font-size-base);
|
|
1159
|
+
--ck-ai-chat-model-selection-item-capability-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1160
1160
|
}
|
|
1161
1161
|
|
|
1162
1162
|
.ck.ck-ai-chat-controls {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
|
|
1206
1206
|
& .ck-ai-chat-controls__drop-overlay__label {
|
|
1207
1207
|
font-size: 13px;
|
|
1208
|
-
font-weight: bold;
|
|
1208
|
+
font-weight: var(--ck-font-weight-bold);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
@@ -1705,7 +1705,7 @@
|
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
1707
|
& .ck-ai-chat-resources__item__icon {
|
|
1708
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
1708
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
1709
1709
|
margin-inline-end: var(--ck-spacing-control-icon-gap);
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
@@ -1769,8 +1769,8 @@
|
|
|
1769
1769
|
--ck-ai-chat-disclaimer-divider-width: 210px;
|
|
1770
1770
|
--ck-ai-chat-suggestion-icon-default-color: var(--ck-color-text);
|
|
1771
1771
|
--ck-ai-chat-user-context-background-color: var(--ck-ai-neutral-50-color);
|
|
1772
|
-
--ck-ai-chat-flash-color: var(--ck-
|
|
1773
|
-
--ck-ai-chat-flash-text-color: var(--ck-
|
|
1772
|
+
--ck-ai-chat-flash-color: var(--ck-ai-accent-50-color);
|
|
1773
|
+
--ck-ai-chat-flash-text-color: var(--ck-ai-accent-700-color);
|
|
1774
1774
|
--ck-ai-chat-animation-duration: .6s;
|
|
1775
1775
|
--ck-ai-chat-animation-timing: ease-out;
|
|
1776
1776
|
}
|
|
@@ -1811,6 +1811,7 @@
|
|
|
1811
1811
|
}
|
|
1812
1812
|
|
|
1813
1813
|
.ck.ck-ai-suggestion__body__content-part {
|
|
1814
|
+
--ck-suggestion-marker-format-gap-color: var(--ck-color-surface-canvas);
|
|
1814
1815
|
border-radius: var(--ck-ai-suggestion-content-part-radius);
|
|
1815
1816
|
border: var(--ck-border-width-surface) solid var(--ck-color-border-container);
|
|
1816
1817
|
padding: var(--ck-spacing-padding-comfortable);
|
|
@@ -1857,7 +1858,7 @@
|
|
|
1857
1858
|
}
|
|
1858
1859
|
|
|
1859
1860
|
& .ck-suggestion-marker-formatBlock:not([data-author-id="$aiSuggestion"]) {
|
|
1860
|
-
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-active-background-color);
|
|
1861
|
+
box-shadow: -7px 0 0 0 var(--ck-suggestion-marker-format-gap-color, var(--ck-color-base-background)), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-active-background-color);
|
|
1861
1862
|
}
|
|
1862
1863
|
|
|
1863
1864
|
& .ck-suggestion-marker-deletion:not([data-author-id="$aiSuggestion"]) {
|
|
@@ -2105,7 +2106,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2105
2106
|
|
|
2106
2107
|
.ck.ck-tabs {
|
|
2107
2108
|
--ck-tab-button-active-background: var(--ck-ai-tab-active-surface-color);
|
|
2108
|
-
font-size: var(--ck-font-size-base);
|
|
2109
|
+
font-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
2109
2110
|
border: var(--ck-border-surface);
|
|
2110
2111
|
border-radius: var(--ck-tabs-border-radius);
|
|
2111
2112
|
min-width: 0;
|
|
@@ -2443,7 +2444,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2443
2444
|
|
|
2444
2445
|
& .ck-ai-chat-history__item-check-container {
|
|
2445
2446
|
height: var(--ck-size-control-min-height);
|
|
2446
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
2447
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
2447
2448
|
min-width: var(--ck-ai-chat-history-check-slot-width);
|
|
2448
2449
|
align-items: center;
|
|
2449
2450
|
display: flex;
|
|
@@ -2622,7 +2623,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2622
2623
|
}
|
|
2623
2624
|
|
|
2624
2625
|
& > span:first-child {
|
|
2625
|
-
font-weight: bold;
|
|
2626
|
+
font-weight: var(--ck-font-weight-bold);
|
|
2626
2627
|
display: block;
|
|
2627
2628
|
}
|
|
2628
2629
|
|
|
@@ -2802,7 +2803,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2802
2803
|
}
|
|
2803
2804
|
|
|
2804
2805
|
& .ck-suggestion-marker-formatBlock:not([data-author-id="$aiSuggestion"]) {
|
|
2805
|
-
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-background-color);
|
|
2806
|
+
box-shadow: -7px 0 0 0 var(--ck-suggestion-marker-format-gap-color, var(--ck-color-base-background)), -10px 0 0 0 var(--ck-ai-suggestion-preview-insertion-background-color);
|
|
2806
2807
|
}
|
|
2807
2808
|
|
|
2808
2809
|
& > .ck-suggestion-marker-formatBlock:not(.table:not(.layout-table):not(.table-style-align-left):not(.table-style-block-align-left)):not(.image:not(.image-style-align-left):not(.image-style-block-align-left)):not(.media:not(.media-style-align-left):not(.media-style-block-align-left)) {
|
|
@@ -2832,6 +2833,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2832
2833
|
}
|
|
2833
2834
|
|
|
2834
2835
|
.ck.ck-ai-balloon {
|
|
2836
|
+
--ck-suggestion-marker-format-gap-color: var(--ck-color-dialog-background, var(--ck-dialog-background-color));
|
|
2835
2837
|
flex-direction: column;
|
|
2836
2838
|
justify-content: space-between;
|
|
2837
2839
|
display: flex;
|
|
@@ -2847,7 +2849,6 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
2847
2849
|
border-bottom: none;
|
|
2848
2850
|
|
|
2849
2851
|
& .ck-form__header__label {
|
|
2850
|
-
font-weight: 600;
|
|
2851
2852
|
line-height: 1.5em;
|
|
2852
2853
|
}
|
|
2853
2854
|
}
|
|
@@ -3094,7 +3095,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3094
3095
|
}
|
|
3095
3096
|
|
|
3096
3097
|
:root, :host {
|
|
3097
|
-
--ck-ai-header-icon-color: var(--ck-color-text);
|
|
3098
|
+
--ck-ai-header-icon-color: var(--ck-form-header-text-color, var(--ck-color-text));
|
|
3098
3099
|
}
|
|
3099
3100
|
|
|
3100
3101
|
.ck-ai-header {
|
|
@@ -3112,7 +3113,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3112
3113
|
margin-inline-start: var(--ck-spacing-gap);
|
|
3113
3114
|
|
|
3114
3115
|
& > .ck-button__icon {
|
|
3115
|
-
--ck-icon-size: var(--ck-font-size-base);
|
|
3116
|
+
--ck-icon-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
3116
3117
|
color: var(--ck-ai-header-icon-color);
|
|
3117
3118
|
}
|
|
3118
3119
|
}
|
|
@@ -3128,7 +3129,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3128
3129
|
|
|
3129
3130
|
& > .ck.ck-icon.ck-button__icon {
|
|
3130
3131
|
--ck-icon-size: var(--ck-font-size-md);
|
|
3131
|
-
color:
|
|
3132
|
+
color: inherit;
|
|
3132
3133
|
}
|
|
3133
3134
|
}
|
|
3134
3135
|
|
|
@@ -3235,7 +3236,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3235
3236
|
--ck-ai-neutral-600-color: var(--ck-color-text-secondary);
|
|
3236
3237
|
--ck-ai-neutral-300-color: var(--ck-color-border-container);
|
|
3237
3238
|
--ck-ai-neutral-100-color: var(--ck-color-interactive-hover-surface);
|
|
3238
|
-
--ck-ai-neutral-50-color: var(--ck-color-
|
|
3239
|
+
--ck-ai-neutral-50-color: var(--ck-color-surface-subtle);
|
|
3239
3240
|
--ck-ai-white-color: var(--ck-color-surface-canvas);
|
|
3240
3241
|
--ck-ai-accent-700-color: var(--ck-color-interactive-primary-surface);
|
|
3241
3242
|
--ck-ai-accent-700-a1-color: hsla(from var(--ck-ai-accent-700-color) h s l / var(--ck-ai-alpha-1));
|
|
@@ -3278,12 +3279,12 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3278
3279
|
--ck-ai-suggestion-preview-deletion-active-background-color: var(--ck-ai-deletion-active-background-color);
|
|
3279
3280
|
--ck-ai-suggestion-preview-deletion-stroke-color: var(--ck-ai-deletion-stroke-color);
|
|
3280
3281
|
--ck-ai-suggestion-pill-accepted-text-color: var(--ck-color-feedback-success);
|
|
3281
|
-
--ck-ai-suggestion-pill-accepted-background-color:
|
|
3282
|
+
--ck-ai-suggestion-pill-accepted-background-color: var(--ck-color-feedback-success-surface);
|
|
3282
3283
|
--ck-ai-suggestion-pill-rejected-text-color: var(--ck-color-feedback-error);
|
|
3283
|
-
--ck-ai-suggestion-pill-rejected-background-color:
|
|
3284
|
+
--ck-ai-suggestion-pill-rejected-background-color: var(--ck-color-feedback-error-surface);
|
|
3284
3285
|
--ck-ai-suggestion-pill-outdated-text-color: var(--ck-color-text-secondary);
|
|
3285
3286
|
--ck-ai-suggestion-pill-outdated-background-color: hsla(from var(--ck-color-text-secondary) h s l / var(--ck-ai-alpha-1));
|
|
3286
|
-
--ck-ai-error-background-color:
|
|
3287
|
+
--ck-ai-error-background-color: var(--ck-color-feedback-error-surface);
|
|
3287
3288
|
--ck-ai-error-border-color: var(--ck-ai-deletion-border-color);
|
|
3288
3289
|
--ck-ai-warning-color: #f0b428;
|
|
3289
3290
|
--ck-ai-warning-background-color: hsla(from var(--ck-ai-warning-color) h s l / var(--ck-ai-alpha-1));
|
|
@@ -3926,14 +3927,14 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
3926
3927
|
--ck-ai-review-summary-border-radius: var(--ck-radius-base);
|
|
3927
3928
|
--ck-ai-review-summary-padding: var(--ck-spacing-padding-comfortable);
|
|
3928
3929
|
--ck-ai-review-summary-gap: var(--ck-spacing-gap-compact);
|
|
3929
|
-
--ck-ai-review-summary-title-color: var(--ck-
|
|
3930
|
+
--ck-ai-review-summary-title-color: var(--ck-ai-neutral-900-color);
|
|
3930
3931
|
--ck-ai-review-summary-title-font-size: var(--ck-font-size-md);
|
|
3931
3932
|
--ck-ai-review-summary-title-font-weight: var(--ck-font-weight-bold);
|
|
3932
3933
|
--ck-ai-review-summary-counts-font-size: var(--ck-font-size-md);
|
|
3933
3934
|
--ck-ai-review-summary-counts-font-weight: var(--ck-font-weight-medium);
|
|
3934
|
-
--ck-ai-review-summary-accepted-color: var(--ck-
|
|
3935
|
-
--ck-ai-review-summary-dismissed-color: var(--ck-
|
|
3936
|
-
--ck-ai-review-summary-hint-color: var(--ck-
|
|
3935
|
+
--ck-ai-review-summary-accepted-color: var(--ck-ai-suggestion-pill-accepted-text-color);
|
|
3936
|
+
--ck-ai-review-summary-dismissed-color: var(--ck-ai-suggestion-pill-rejected-text-color);
|
|
3937
|
+
--ck-ai-review-summary-hint-color: var(--ck-ai-neutral-600-color);
|
|
3937
3938
|
--ck-ai-review-summary-hint-font-size: var(--ck-font-size-sm);
|
|
3938
3939
|
--ck-ai-review-summary-hint-font-weight: var(--ck-font-weight-medium);
|
|
3939
3940
|
}
|
|
@@ -4113,7 +4114,7 @@ div.ck.ck-ai-suggestion__content-part-state {
|
|
|
4113
4114
|
& .ck-ai_review__check-list-item-description {
|
|
4114
4115
|
color: var(--ck-ai-review-check-list-item-description-color);
|
|
4115
4116
|
font-size: var(--ck-ai-review-check-list-item-description-font-size);
|
|
4116
|
-
font-weight:
|
|
4117
|
+
font-weight: var(--ck-font-weight-ui-default);
|
|
4117
4118
|
line-height: var(--ck-line-height-base);
|
|
4118
4119
|
white-space: normal;
|
|
4119
4120
|
}
|