@ckeditor/ckeditor5-comments 49.0.1 → 49.1.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.
- package/dist/comments/ui/view/basecommentthreadview.d.ts +16 -2
- package/dist/comments/ui/view/commentcontentview.d.ts +18 -0
- package/dist/comments/ui/view/commentthreadheaderview.d.ts +0 -10
- package/dist/comments/ui/view/commentthreadview.d.ts +6 -2
- package/dist/index-content.css +10 -4
- package/dist/index-editor.css +142 -95
- package/dist/index.css +152 -99
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/trimcontextvalue.d.ts +8 -1
- package/package.json +16 -16
package/dist/index.css
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
:root, :host {
|
|
6
6
|
--ck-comment-background-color: #f7f9fd;
|
|
7
|
-
--ck-comment-focus-
|
|
7
|
+
--ck-comment-focus-border-color: var(--ck-interactive-focus-border-color);
|
|
8
|
+
--ck-comment-focus-shadow: var(--ck-interactive-focus-shadow);
|
|
8
9
|
--ck-comment-separator-color: var(--ck-color-comment-separator, #cddeef);
|
|
9
10
|
--ck-comment-remove-background-color: var(--ck-color-comment-remove-background, var(--ck-color-light-red));
|
|
10
11
|
--ck-comment-input-background-color: var(--ck-color-surface-canvas);
|
|
@@ -12,6 +13,9 @@
|
|
|
12
13
|
--ck-comment-content-font-size: var(--ck-font-size-md);
|
|
13
14
|
--ck-comment-content-font-color: var(--ck-color-text);
|
|
14
15
|
--ck-comment-context-border-color: var(--ck-color-base-attention);
|
|
16
|
+
--ck-comment-context-text-color: var(--ck-color-text-secondary);
|
|
17
|
+
--ck-comment-context-icon-size: calc(var(--ck-comment-content-font-size) * 16 / 14);
|
|
18
|
+
--ck-comment-context-tooltip-padding: var(--ck-spacing-padding-compact) var(--ck-spacing-padding);
|
|
15
19
|
--ck-comment-thread-line-size: 1px;
|
|
16
20
|
--ck-comment-border-radius: var(--ck-border-radius-surface);
|
|
17
21
|
}
|
|
@@ -26,43 +30,42 @@
|
|
|
26
30
|
transition: none;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
&:
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
&:focus:before {
|
|
34
|
+
content: "";
|
|
35
|
+
inset: var(--ck-focus-shadow-spread);
|
|
36
|
+
border: 1px solid var(--ck-comment-focus-border-color);
|
|
37
|
+
border-radius: calc(var(--ck-comment-border-radius) - var(--ck-focus-shadow-spread));
|
|
38
|
+
box-shadow: var(--ck-comment-focus-shadow);
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
position: absolute;
|
|
32
42
|
}
|
|
43
|
+
}
|
|
33
44
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
.ck .ck-comment:after, .ck .ck-thread__comment-count:before {
|
|
46
|
+
content: "";
|
|
47
|
+
opacity: 1;
|
|
48
|
+
left: calc(var(--ck-spacing-standard, var(--ck-spacing-base)) + ( var(--ck-user-avatar-size) / 2 )
|
|
37
49
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
/* Half width of line. */
|
|
51
|
+
- calc(var(--ck-comment-thread-line-size) / 2)
|
|
52
|
+
/* Avatar margin size) */
|
|
53
|
+
+ 2px);
|
|
54
|
+
width: var(--ck-comment-thread-line-size);
|
|
55
|
+
background-color: var(--ck-color-comment-separator, var(--ck-comment-separator-color));
|
|
56
|
+
border-radius: var(--ck-comment-border-radius);
|
|
57
|
+
display: block;
|
|
58
|
+
position: absolute;
|
|
46
59
|
}
|
|
47
60
|
|
|
48
|
-
.ck .ck-comment {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/* Avatar margin size) */
|
|
57
|
-
+ 2px);
|
|
58
|
-
width: var(--ck-comment-thread-line-size);
|
|
59
|
-
background-color: var(--ck-color-comment-separator, var(--ck-comment-separator-color));
|
|
60
|
-
top: calc(var(--ck-user-avatar-size) + (2 * var(--ck-spacing-padding, var(--ck-spacing-sm))));
|
|
61
|
-
height: calc(100% - var(--ck-user-avatar-size) - var(--ck-spacing-padding));
|
|
62
|
-
border-radius: var(--ck-comment-border-radius);
|
|
63
|
-
display: block;
|
|
64
|
-
position: absolute;
|
|
65
|
-
}
|
|
61
|
+
.ck .ck-comment:after {
|
|
62
|
+
top: calc(var(--ck-user-avatar-size) + (2 * var(--ck-spacing-padding, var(--ck-spacing-sm))));
|
|
63
|
+
height: calc(100% - var(--ck-user-avatar-size) - var(--ck-spacing-padding));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ck .ck-thread__comment-count:before {
|
|
67
|
+
height: calc(100% + var(--ck-spacing-padding));
|
|
68
|
+
top: 0;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.ck .ck-comment--edit {
|
|
@@ -71,10 +74,6 @@
|
|
|
71
74
|
&:after {
|
|
72
75
|
opacity: 0;
|
|
73
76
|
}
|
|
74
|
-
|
|
75
|
-
& .ck-comment__input-actions {
|
|
76
|
-
margin-top: var(--ck-spacing-standard, var(--ck-spacing-base));
|
|
77
|
-
}
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
.ck .ck-comment__content {
|
|
@@ -87,7 +86,7 @@
|
|
|
87
86
|
border-inline-start: 3px solid var(--ck-comment-context-border-color);
|
|
88
87
|
margin-top: var(--ck-spacing-tiny, var(--ck-spacing-xs));
|
|
89
88
|
margin-bottom: var(--ck-spacing-standard, var(--ck-spacing-base));
|
|
90
|
-
color: var(--ck-
|
|
89
|
+
color: var(--ck-comment-context-text-color);
|
|
91
90
|
padding-inline-start: var(--ck-spacing-standard, var(--ck-spacing-base));
|
|
92
91
|
|
|
93
92
|
& > p {
|
|
@@ -95,9 +94,28 @@
|
|
|
95
94
|
text-overflow: ellipsis;
|
|
96
95
|
overflow: hidden;
|
|
97
96
|
}
|
|
97
|
+
|
|
98
|
+
&.ck-comment__context_unlinked {
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: var(--ck-spacing-gap-compact);
|
|
101
|
+
border-inline-start: 0;
|
|
102
|
+
padding-inline-start: 0;
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
& > .ck-icon {
|
|
106
|
+
width: var(--ck-comment-context-icon-size);
|
|
107
|
+
height: var(--ck-comment-context-icon-size);
|
|
108
|
+
flex-shrink: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
98
111
|
}
|
|
99
112
|
}
|
|
100
113
|
|
|
114
|
+
.ck.ck-tooltip.ck-comment__context-tooltip {
|
|
115
|
+
--ck-tooltip-padding: var(--ck-comment-context-tooltip-padding);
|
|
116
|
+
--ck-tooltip-multiline-padding: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
101
119
|
.ck .ck-comment--info {
|
|
102
120
|
& .ck-comment__content {
|
|
103
121
|
font-style: italic;
|
|
@@ -138,10 +156,6 @@
|
|
|
138
156
|
flex-direction: column;
|
|
139
157
|
display: flex;
|
|
140
158
|
position: relative;
|
|
141
|
-
|
|
142
|
-
& .ck-comment__input {
|
|
143
|
-
padding: 0;
|
|
144
|
-
}
|
|
145
159
|
}
|
|
146
160
|
}
|
|
147
161
|
|
|
@@ -150,17 +164,11 @@
|
|
|
150
164
|
}
|
|
151
165
|
|
|
152
166
|
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit {
|
|
153
|
-
color: #fff;
|
|
154
|
-
|
|
155
167
|
&.ck-disabled {
|
|
156
168
|
cursor: default;
|
|
157
169
|
}
|
|
158
170
|
}
|
|
159
171
|
|
|
160
|
-
.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel {
|
|
161
|
-
color: var(--ck-color-text);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
172
|
.ck .ck-comment__external {
|
|
165
173
|
color: var(--ck-color-annotation-info, var(--ck-annotation-info-color));
|
|
166
174
|
font-style: italic;
|
|
@@ -178,12 +186,12 @@
|
|
|
178
186
|
margin: 0;
|
|
179
187
|
|
|
180
188
|
& .ck-list__item {
|
|
181
|
-
color: var(--ck-color-text);
|
|
182
189
|
min-width: auto;
|
|
183
190
|
font-size: 1.2em;
|
|
184
191
|
|
|
185
192
|
& .ck-button {
|
|
186
|
-
|
|
193
|
+
--ck-button-default-text-color: inherit;
|
|
194
|
+
--_ck-button-fallback-text-color: var(--ck-color-text);
|
|
187
195
|
}
|
|
188
196
|
}
|
|
189
197
|
}
|
|
@@ -191,7 +199,8 @@
|
|
|
191
199
|
|
|
192
200
|
:root, :host {
|
|
193
201
|
--ck-thread-remove-background-color: var(--ck-color-thread-remove-background, var(--ck-comment-remove-background-color));
|
|
194
|
-
--ck-comment-count-color:
|
|
202
|
+
--ck-comment-count-color: var(--ck-color-text-secondary);
|
|
203
|
+
--ck-thread-focus-shadow: initial;
|
|
195
204
|
--ck-thread-header-background-color: var(--ck-color-thread-header-background, #f3f6fd);
|
|
196
205
|
--ck-thread-header-active-background-color: var(--ck-color-thread-header-active-background, var(--ck-color-interactive-selected-surface));
|
|
197
206
|
--ck-thread-header-button-hover-background: var(--ck-color-interactive-primary-surface-muted);
|
|
@@ -222,13 +231,13 @@
|
|
|
222
231
|
|
|
223
232
|
&:focus {
|
|
224
233
|
outline: var(--ck-interactive-focus-ring);
|
|
225
|
-
box-shadow: 0 0 0 4px var(--ck-color-focus-outer-shadow);
|
|
234
|
+
box-shadow: var(--ck-thread-focus-shadow, 0 0 0 4px var(--ck-color-focus-outer-shadow));
|
|
226
235
|
}
|
|
227
236
|
}
|
|
228
237
|
|
|
229
238
|
.ck-balloon-panel:has(.ck-thread:focus) {
|
|
230
239
|
border: var(--ck-interactive-focus-ring);
|
|
231
|
-
box-shadow: var(--ck-shadow-surface-floating), var(--ck-focus-outer-shadow, var(--ck-interactive-focus-shadow)), 0 0;
|
|
240
|
+
box-shadow: var(--ck-drop-shadow, var(--ck-shadow-surface-floating)), var(--ck-focus-outer-shadow, var(--ck-interactive-focus-shadow)), 0 0;
|
|
232
241
|
outline: none;
|
|
233
242
|
}
|
|
234
243
|
|
|
@@ -307,15 +316,16 @@
|
|
|
307
316
|
}
|
|
308
317
|
|
|
309
318
|
.ck .ck-thread__comment-count {
|
|
310
|
-
--ck-user-avatar-size:
|
|
319
|
+
--ck-user-avatar-size: var(--ck-annotation-user-avatar-size);
|
|
311
320
|
padding-left: calc(var(--ck-user-avatar-size) + var(--ck-spacing-standard, var(--ck-spacing-base)) * 2);
|
|
312
|
-
color: var(--ck-color-comment-count, var(--ck-
|
|
321
|
+
color: var(--ck-color-comment-count, var(--ck-comment-count-color));
|
|
313
322
|
font-size: var(--ck-font-size-small, var(--ck-font-size-sm));
|
|
314
323
|
cursor: pointer;
|
|
315
324
|
transition: background-color var(--ck-transition-duration-control-emphasized) ease;
|
|
325
|
+
position: relative;
|
|
316
326
|
|
|
317
327
|
& .ck-button {
|
|
318
|
-
color: var(--ck-color-
|
|
328
|
+
color: var(--ck-color-comment-count, var(--ck-comment-count-color));
|
|
319
329
|
}
|
|
320
330
|
|
|
321
331
|
& .ck-button .ck-button__icon {
|
|
@@ -344,6 +354,10 @@
|
|
|
344
354
|
opacity: 0;
|
|
345
355
|
}
|
|
346
356
|
}
|
|
357
|
+
|
|
358
|
+
& .ck-thread__comment-count:before {
|
|
359
|
+
opacity: 0;
|
|
360
|
+
}
|
|
347
361
|
}
|
|
348
362
|
|
|
349
363
|
.ck .ck-thread__comments .ck-comment__wrapper {
|
|
@@ -377,11 +391,15 @@
|
|
|
377
391
|
}
|
|
378
392
|
|
|
379
393
|
.ck .ck-thread__input {
|
|
380
|
-
width: calc(100% - var(--ck-user-avatar-size));
|
|
381
394
|
white-space: normal;
|
|
395
|
+
min-width: 0;
|
|
382
396
|
transition: background-color var(--ck-transition-duration-control) ease-in-out;
|
|
383
397
|
border-radius: var(--ck-thread-input-border-radius);
|
|
384
|
-
min-height:
|
|
398
|
+
min-height: max(var(--ck-input-min-height-small),
|
|
399
|
+
calc(var(--ck-comment-content-font-size) * var(--ck-line-height-base) +
|
|
400
|
+
2 * var(--ck-spacing-padding-tight) +
|
|
401
|
+
2 * var(--ck-border-width-control)));
|
|
402
|
+
flex: 1 1 0;
|
|
385
403
|
}
|
|
386
404
|
|
|
387
405
|
.ck .ck-thread--active {
|
|
@@ -410,46 +428,58 @@
|
|
|
410
428
|
|
|
411
429
|
:root, :host {
|
|
412
430
|
--ck-comment-input-padding: var(--ck-spacing-padding) var(--ck-spacing-padding);
|
|
431
|
+
--ck-comment-input-container-background-color: transparent;
|
|
413
432
|
}
|
|
414
433
|
|
|
415
434
|
.ck .ck-comment__input-container {
|
|
416
|
-
--ck-user-avatar-size:
|
|
435
|
+
--ck-user-avatar-size: var(--ck-annotation-user-avatar-size);
|
|
436
|
+
--ck-user-name-font-size: var(--ck-font-size-sm);
|
|
417
437
|
font-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
418
438
|
padding: var(--ck-comment-input-padding);
|
|
439
|
+
background-color: var(--ck-comment-input-container-background-color);
|
|
419
440
|
display: none;
|
|
420
|
-
|
|
421
|
-
& .ck-user {
|
|
422
|
-
margin-top: calc(var(--ck-spacing-padding) * .8);
|
|
423
|
-
}
|
|
424
441
|
}
|
|
425
442
|
|
|
426
443
|
.ck .ck-comment__input-container--active {
|
|
427
444
|
align-items: flex-start;
|
|
445
|
+
gap: var(--ck-spacing-gap);
|
|
428
446
|
display: flex;
|
|
447
|
+
|
|
448
|
+
& .ck-user {
|
|
449
|
+
margin-block: 0;
|
|
450
|
+
}
|
|
429
451
|
}
|
|
430
452
|
|
|
431
453
|
.ck .ck-comment__input {
|
|
432
|
-
|
|
433
|
-
|
|
454
|
+
box-sizing: border-box;
|
|
455
|
+
min-height: var(--ck-input-min-height-small);
|
|
456
|
+
padding: var(--ck-comment-input-field-padding, var(--ck-input-padding-small));
|
|
457
|
+
color: var(--ck-color-input-text, var(--ck-input-text-color));
|
|
458
|
+
border: var(--ck-input-border, var(--ck-border-width-control) solid var(--ck-color-input-border, var(--ck-input-border-color)));
|
|
459
|
+
border-radius: var(--ck-input-border-radius);
|
|
434
460
|
resize: none;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
border-width: 0;
|
|
461
|
+
background-color: var(--ck-color-input-background, var(--ck-input-background-color));
|
|
462
|
+
transition: var(--ck-transition-control-fast);
|
|
438
463
|
|
|
439
464
|
@media (prefers-reduced-motion: reduce) {
|
|
440
|
-
transition: none;
|
|
465
|
+
transition: var(--ck-transition-none);
|
|
441
466
|
}
|
|
442
467
|
|
|
443
468
|
&:focus {
|
|
444
469
|
outline: none;
|
|
445
470
|
}
|
|
446
471
|
|
|
472
|
+
&:focus-within {
|
|
473
|
+
border-color: var(--ck-input-focus-border-color);
|
|
474
|
+
box-shadow: var(--ck-focus-outer-shadow, var(--ck-interactive-focus-shadow)), 0 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
447
477
|
& .ck-editor__editable_inline {
|
|
448
|
-
--ck-focus-ring: none;
|
|
449
478
|
--ck-inner-shadow: none;
|
|
450
479
|
--ck-inset-shadow-sm: none;
|
|
451
480
|
font-family: var(--ck-comment-content-font-family);
|
|
452
481
|
font-size: var(--ck-comment-content-font-size);
|
|
482
|
+
line-height: var(--ck-line-height-base);
|
|
453
483
|
color: var(--ck-comment-content-font-color);
|
|
454
484
|
word-break: normal;
|
|
455
485
|
overflow-wrap: anywhere;
|
|
@@ -457,6 +487,11 @@
|
|
|
457
487
|
border: 0;
|
|
458
488
|
padding: 0;
|
|
459
489
|
overflow: visible;
|
|
490
|
+
|
|
491
|
+
& p {
|
|
492
|
+
line-height: inherit;
|
|
493
|
+
padding: 0;
|
|
494
|
+
}
|
|
460
495
|
}
|
|
461
496
|
}
|
|
462
497
|
|
|
@@ -469,8 +504,10 @@
|
|
|
469
504
|
}
|
|
470
505
|
|
|
471
506
|
.ck .ck-comment__input-actions {
|
|
472
|
-
text-align: right;
|
|
473
507
|
width: 100%;
|
|
508
|
+
margin-top: var(--ck-spacing-gap);
|
|
509
|
+
text-align: right;
|
|
510
|
+
line-height: 0;
|
|
474
511
|
display: none;
|
|
475
512
|
|
|
476
513
|
&.ck-comment__input-actions--active {
|
|
@@ -479,14 +516,9 @@
|
|
|
479
516
|
|
|
480
517
|
& .ck.ck-button {
|
|
481
518
|
cursor: pointer;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
margin-left: var(--ck-spacing-large, var(--ck-spacing-lg));
|
|
486
|
-
padding: 0 var(--ck-spacing-control-padding-inline);
|
|
487
|
-
justify-content: center;
|
|
488
|
-
align-items: center;
|
|
489
|
-
display: inline-flex;
|
|
519
|
+
margin-left: var(--ck-spacing-gap);
|
|
520
|
+
--ck-button-default-text-color: inherit;
|
|
521
|
+
--_ck-button-fallback-text-color: var(--ck-color-text);
|
|
490
522
|
}
|
|
491
523
|
}
|
|
492
524
|
|
|
@@ -538,9 +570,10 @@
|
|
|
538
570
|
--ck-annotation-counter-badge-top: 1px;
|
|
539
571
|
--ck-annotation-counter-badge-gap: 1px;
|
|
540
572
|
--ck-annotation-counter-badge-size: var(--ck-annotation-counter-icon-font-size);
|
|
541
|
-
--ck-annotation-counter-color: var(--ck-color-
|
|
542
|
-
--ck-annotation-counter-hover-color: var(--ck-color-
|
|
543
|
-
--ck-annotation-counter-focus-color: var(--ck-color-
|
|
573
|
+
--ck-annotation-counter-color: var(--ck-color-text-secondary);
|
|
574
|
+
--ck-annotation-counter-hover-color: var(--ck-color-text-primary);
|
|
575
|
+
--ck-annotation-counter-focus-color: var(--ck-color-interactive-selected-text);
|
|
576
|
+
--ck-annotation-counter-badge-text-color: var(--ck-color-text-inverse);
|
|
544
577
|
}
|
|
545
578
|
|
|
546
579
|
.ck.ck-sidebar--narrow .ck-sidebar-item {
|
|
@@ -590,7 +623,7 @@
|
|
|
590
623
|
width: var(--ck-annotation-counter-badge-size);
|
|
591
624
|
height: var(--ck-annotation-counter-badge-size);
|
|
592
625
|
background: var(--ck-annotation-counter-color);
|
|
593
|
-
color:
|
|
626
|
+
color: var(--ck-annotation-counter-badge-text-color);
|
|
594
627
|
font-weight: bold;
|
|
595
628
|
font-size: var(--ck-annotation-counter-number-size);
|
|
596
629
|
font-family: var(--ck-font-face, var(--ck-font-family));
|
|
@@ -615,8 +648,10 @@
|
|
|
615
648
|
--ck-annotation-info-name-color: var(--ck-color-text);
|
|
616
649
|
--ck-annotation-info-icon-color: var(--ck-color-text-secondary);
|
|
617
650
|
--ck-annotation-info-time-color: var(--ck-color-text-secondary);
|
|
651
|
+
--ck-annotation-content-font-color: var(--ck-comment-content-font-color);
|
|
618
652
|
--ck-annotation-button-size: .85em;
|
|
619
653
|
--ck-annotation-dropdown-button-size: 14px;
|
|
654
|
+
--ck-annotation-user-avatar-size: 28px;
|
|
620
655
|
--ck-annotation-padding: var(--ck-spacing-padding) var(--ck-spacing-padding);
|
|
621
656
|
--ck-annotation-content-wrapper-padding-inline-end: var(--ck-spacing-padding);
|
|
622
657
|
--ck-annotation-main-border-radius: var(--ck-border-radius-surface);
|
|
@@ -624,7 +659,8 @@
|
|
|
624
659
|
}
|
|
625
660
|
|
|
626
661
|
.ck .ck-annotation {
|
|
627
|
-
--ck-user-avatar-size:
|
|
662
|
+
--ck-user-avatar-size: var(--ck-annotation-user-avatar-size);
|
|
663
|
+
--ck-user-name-font-size: var(--ck-font-size-sm);
|
|
628
664
|
font-size: var(--ck-font-size-normal, var(--ck-font-size-base));
|
|
629
665
|
animation: annotationFadeInLeft var(--ck-animation-duration-surface-entrance);
|
|
630
666
|
transition: background-color var(--ck-transition-duration-control-emphasized) ease;
|
|
@@ -639,18 +675,17 @@
|
|
|
639
675
|
}
|
|
640
676
|
|
|
641
677
|
& .ck-button {
|
|
642
|
-
|
|
643
|
-
min-height: unset;
|
|
644
|
-
color: var(--ck-color-annotation-icon, var(--ck-annotation-icon-color));
|
|
678
|
+
--ck-button-default-text-color: var(--ck-color-annotation-icon, var(--ck-annotation-icon-color));
|
|
645
679
|
border-radius: var(--ck-annotation-button-border-radius);
|
|
646
680
|
|
|
647
681
|
&:not(.ck-disabled) {
|
|
648
682
|
cursor: pointer;
|
|
649
683
|
}
|
|
650
|
-
}
|
|
651
684
|
|
|
652
|
-
|
|
653
|
-
|
|
685
|
+
&:not(.ck-button_small) {
|
|
686
|
+
min-width: unset;
|
|
687
|
+
min-height: unset;
|
|
688
|
+
}
|
|
654
689
|
}
|
|
655
690
|
|
|
656
691
|
& .ck-dropdown .ck-list {
|
|
@@ -682,11 +717,13 @@
|
|
|
682
717
|
.ck .ck-annotation__main p {
|
|
683
718
|
white-space: normal;
|
|
684
719
|
font-size: var(--ck-comment-content-font-size);
|
|
720
|
+
color: inherit;
|
|
685
721
|
margin: 0;
|
|
686
722
|
line-height: 1.5em;
|
|
687
723
|
|
|
688
724
|
& .ck-suggestion-type {
|
|
689
725
|
font-size: var(--ck-comment-content-font-size);
|
|
726
|
+
color: inherit;
|
|
690
727
|
line-height: 1.5em;
|
|
691
728
|
}
|
|
692
729
|
}
|
|
@@ -748,10 +785,11 @@
|
|
|
748
785
|
}
|
|
749
786
|
|
|
750
787
|
.ck .ck-annotation__content-wrapper {
|
|
751
|
-
grid-area: content;
|
|
752
788
|
width: 100%;
|
|
789
|
+
color: var(--ck-annotation-content-font-color);
|
|
790
|
+
grid-area: content;
|
|
753
791
|
|
|
754
|
-
&:not(:has(.ck-comment__input-wrapper))
|
|
792
|
+
&:not(:has(.ck-comment__input-wrapper)) {
|
|
755
793
|
padding-inline-end: var(--ck-annotation-content-wrapper-padding-inline-end);
|
|
756
794
|
}
|
|
757
795
|
}
|
|
@@ -769,9 +807,12 @@
|
|
|
769
807
|
}
|
|
770
808
|
|
|
771
809
|
:root, :host {
|
|
772
|
-
--ck-annotation-wrapper-background-color: var(--ck-color-annotation-wrapper-background,
|
|
773
|
-
--ck-annotation-wrapper-shadow: var(--ck-color-annotation-wrapper-drop-shadow,
|
|
810
|
+
--ck-annotation-wrapper-background-color: var(--ck-color-annotation-wrapper-background, var(--ck-color-surface-container));
|
|
811
|
+
--ck-annotation-wrapper-shadow: var(--ck-color-annotation-wrapper-drop-shadow, none);
|
|
774
812
|
--ck-annotation-wrapper-border-radius: var(--ck-border-radius-surface);
|
|
813
|
+
--ck-annotation-wrapper-border: var(--ck-border-surface);
|
|
814
|
+
--ck-annotation-wrapper-active-border: initial;
|
|
815
|
+
--ck-annotation-wrapper-active-shadow: initial;
|
|
775
816
|
}
|
|
776
817
|
|
|
777
818
|
.ck.ck-sidebar {
|
|
@@ -801,10 +842,16 @@
|
|
|
801
842
|
.ck.ck-annotation-wrapper {
|
|
802
843
|
border-radius: var(--ck-annotation-wrapper-border-radius);
|
|
803
844
|
background: var(--ck-color-annotation-wrapper-background, var(--ck-annotation-wrapper-background-color));
|
|
804
|
-
border: var(--ck-border
|
|
845
|
+
border: var(--ck-annotation-wrapper-border);
|
|
846
|
+
box-shadow: var(--ck-color-annotation-wrapper-drop-shadow, var(--ck-annotation-wrapper-shadow));
|
|
805
847
|
outline: 0;
|
|
806
848
|
}
|
|
807
849
|
|
|
850
|
+
:where(.ck-sidebar) .ck.ck-annotation-wrapper--active {
|
|
851
|
+
border: var(--ck-annotation-wrapper-active-border, var(--ck-annotation-wrapper-border));
|
|
852
|
+
box-shadow: var(--ck-annotation-wrapper-active-shadow, var(--ck-color-annotation-wrapper-drop-shadow, var(--ck-annotation-wrapper-shadow)));
|
|
853
|
+
}
|
|
854
|
+
|
|
808
855
|
.ck.ck-annotation-wrapper--active, .ck.ck-annotation-wrapper:hover {
|
|
809
856
|
& .ck-annotation__actions {
|
|
810
857
|
opacity: 1;
|
|
@@ -861,28 +908,34 @@
|
|
|
861
908
|
:root, :host {
|
|
862
909
|
--ck-comment-marker-color: #fdecc3;
|
|
863
910
|
--ck-comment-marker-active-color: #fbd988;
|
|
911
|
+
--ck-comment-marker-border-width: 3px;
|
|
912
|
+
--ck-comment-marker-border-style: solid;
|
|
913
|
+
--ck-comment-marker-border-color: initial;
|
|
914
|
+
--ck-comment-marker-active-border-color: initial;
|
|
864
915
|
}
|
|
865
916
|
|
|
866
917
|
.ck-content .ck-comment-marker {
|
|
867
918
|
background: var(--ck-color-comment-marker, var(--ck-comment-marker-color));
|
|
868
|
-
border-top:
|
|
869
|
-
border-bottom:
|
|
919
|
+
border-top: var(--ck-comment-marker-border-width) var(--ck-comment-marker-border-style) var(--ck-comment-marker-border-color, transparent);
|
|
920
|
+
border-bottom: var(--ck-comment-marker-border-width) var(--ck-comment-marker-border-style) var(--ck-comment-marker-border-color, transparent);
|
|
870
921
|
|
|
871
922
|
&.ck-widget {
|
|
872
|
-
border:
|
|
923
|
+
border: var(--ck-comment-marker-border-width) var(--ck-comment-marker-border-style)
|
|
924
|
+
var(--ck-comment-marker-border-color, var(--ck-color-comment-marker, var(--ck-comment-marker-color)));
|
|
873
925
|
background-color: #0000;
|
|
874
926
|
}
|
|
875
927
|
}
|
|
876
928
|
|
|
877
929
|
.ck-content .ck-comment-marker--active {
|
|
878
930
|
background: var(--ck-color-comment-marker-active, var(--ck-comment-marker-active-color));
|
|
931
|
+
border-color: var(--ck-comment-marker-active-border-color, var(--ck-comment-marker-border-color, transparent));
|
|
879
932
|
|
|
880
933
|
& .ck-comment-marker {
|
|
881
934
|
background: var(--ck-color-comment-marker-active, var(--ck-comment-marker-active-color));
|
|
882
935
|
}
|
|
883
936
|
|
|
884
937
|
&.ck-widget {
|
|
885
|
-
border-color: var(--ck-color-comment-marker-active, var(--ck-comment-marker-active-color));
|
|
938
|
+
border-color: var(--ck-comment-marker-active-border-color, var(--ck-color-comment-marker-active, var(--ck-comment-marker-active-color)));
|
|
886
939
|
|
|
887
940
|
& .ck-comment-marker {
|
|
888
941
|
background-color: var(--ck-color-comment-marker, var(--ck-comment-marker-color));
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { AnnotationView, type AnnotationMainView } from "./annotations/view/anno
|
|
|
23
23
|
export { AnnotationsSidebarItemView } from "./annotations/view/sidebaritemview.js";
|
|
24
24
|
export { AnnotationsSidebarView } from "./annotations/view/sidebarview.js";
|
|
25
25
|
export { BaseCommentView, type UIAddCommentEvent, type UIUpdateCommentEvent, type UIRemoveCommentEvent } from "./comments/ui/view/basecommentview.js";
|
|
26
|
-
export { BaseCommentThreadView, type UISubmitCommentThreadEvent, type UIRemoveCommentThreadEvent, type UIResolveCommentThreadEvent } from "./comments/ui/view/basecommentthreadview.js";
|
|
26
|
+
export { BaseCommentThreadView, type UISubmitCommentThreadEvent, type UIRemoveCommentThreadEvent, type UIResolveCommentThreadEvent, type UIReopenCommentThreadEvent } from "./comments/ui/view/basecommentthreadview.js";
|
|
27
27
|
export { CommentsListView } from "./comments/ui/view/commentslistview.js";
|
|
28
28
|
export { CommentView } from "./comments/ui/view/commentview.js";
|
|
29
29
|
export { CommentThreadView } from "./comments/ui/view/commentthreadview.js";
|