@ckeditor/ckeditor5-track-changes 32.0.0 → 34.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +5 -2
- package/build/track-changes.js +5 -0
- package/build/translations/az.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +3 -0
- package/lang/translations/az.po +387 -0
- package/lang/translations/cs.po +31 -31
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +387 -0
- package/lang/translations/en-au.po +6 -6
- package/lang/translations/es.po +35 -35
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +3 -3
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +14 -14
- package/lang/translations/id.po +370 -0
- package/lang/translations/it.po +1 -1
- package/lang/translations/nl.po +9 -9
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/sk.po +58 -58
- package/lang/translations/sr-latn.po +3 -3
- package/lang/translations/sr.po +3 -3
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/zh-cn.po +5 -5
- package/package.json +4 -7
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +23 -0
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +23 -0
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/theme/integrations/horizontalline.css +0 -15
- package/theme/integrations/image.css +0 -55
- package/theme/integrations/mediaembed.css +0 -19
- package/theme/integrations/pagebreak.css +0 -15
- package/theme/integrations/table.css +0 -147
- package/theme/suggestion.css +0 -87
- package/theme/suggestionmarker.css +0 -161
package/theme/suggestion.css
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ck-color-comment-box-border: hsl(55, 98%, 48%);
|
|
3
|
-
--ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
|
|
4
|
-
--ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
|
|
5
|
-
--ck-color-suggestion-box-format-border: hsl(191, 62%, 60%);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.ck .ck-suggestion {
|
|
9
|
-
border-top-left-radius: var(--ck-border-radius);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ck .ck-annotation {
|
|
13
|
-
border-left: 3px solid transparent;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/* See: #3683.
|
|
18
|
-
* Inline Suggestion annotations that can't be commented on contains a scrollbar by default */
|
|
19
|
-
.ck .ck-suggestion--disabled-comments .ck-annotation {
|
|
20
|
-
min-height: 80px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* See: #2459.
|
|
24
|
-
With track-changes feature enabled, we need to distinguish various types of annotations (comments and suggestions). */
|
|
25
|
-
.ck .ck-comment,
|
|
26
|
-
.ck .ck-thread__comment-count,
|
|
27
|
-
.ck .ck-comment__input-container {
|
|
28
|
-
border-left: 3px solid var(--ck-color-comment-box-border);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ck .ck-suggestion-insertion .ck-suggestion {
|
|
32
|
-
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ck .ck-suggestion-deletion .ck-suggestion {
|
|
36
|
-
border-left-color: var(--ck-color-suggestion-box-deletion-border);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ck .ck-suggestion-replace .ck-suggestion {
|
|
40
|
-
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ck .ck-suggestion-format .ck-suggestion {
|
|
44
|
-
border-left-color: var(--ck-color-suggestion-box-format-border);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.ck .ck-suggestion-wrapper {
|
|
48
|
-
outline: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.ck .ck-suggestion-type {
|
|
52
|
-
font-weight: bold;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ck .ck-suggestion-color {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
width: 14px;
|
|
58
|
-
height: 14px;
|
|
59
|
-
border-radius: 14px;
|
|
60
|
-
vertical-align: text-bottom;
|
|
61
|
-
margin: 0 5px;
|
|
62
|
-
box-shadow: 0 0 0 1px #444;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Comments inside suggestion. */
|
|
66
|
-
|
|
67
|
-
/* Handle comments inside suggestion keep same border-color. */
|
|
68
|
-
.ck .ck-suggestion-insertion .ck-comment,
|
|
69
|
-
.ck .ck-suggestion-insertion .ck-thread__comment-count,
|
|
70
|
-
.ck .ck-suggestion-insertion .ck-comment__input-container,
|
|
71
|
-
.ck .ck-suggestion-replace .ck-comment,
|
|
72
|
-
.ck .ck-suggestion-replace .ck-thread__comment-count,
|
|
73
|
-
.ck .ck-suggestion-replace .ck-comment__input-container {
|
|
74
|
-
border-left-color: var(--ck-color-suggestion-box-insertion-border);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ck .ck-suggestion-deletion .ck-comment,
|
|
78
|
-
.ck .ck-suggestion-deletion .ck-thread__comment-count,
|
|
79
|
-
.ck .ck-suggestion-deletion .ck-comment__input-container {
|
|
80
|
-
border-left-color: var(--ck-color-suggestion-box-deletion-border);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.ck .ck-suggestion-format .ck-comment,
|
|
84
|
-
.ck .ck-suggestion-format .ck-thread__comment-count,
|
|
85
|
-
.ck .ck-suggestion-format .ck-comment__input-container {
|
|
86
|
-
border-left-color: var(--ck-color-suggestion-box-format-border);
|
|
87
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
3
|
-
* Letters is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
4
|
-
* all Letters content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
--ck-color-suggestion-marker-insertion-border: hsla(128, 71%, 40%, .35);
|
|
11
|
-
--ck-color-suggestion-marker-insertion-border-active: hsla(128, 71%, 25%, .5);
|
|
12
|
-
--ck-color-suggestion-marker-insertion-background: hsla(128, 71%, 65%, .35);
|
|
13
|
-
--ck-color-suggestion-marker-insertion-background-active: hsla(128, 71%, 50%, .5);
|
|
14
|
-
|
|
15
|
-
--ck-color-suggestion-marker-deletion-border: hsla(345, 71%, 40%, .35);
|
|
16
|
-
--ck-color-suggestion-marker-deletion-border-active: hsla(345, 71%, 25%, .5);
|
|
17
|
-
--ck-color-suggestion-marker-deletion-background: hsla(345, 71%, 65%, .35);
|
|
18
|
-
--ck-color-suggestion-marker-deletion-background-active: hsla(345, 71%, 50%, .5);
|
|
19
|
-
--ck-color-suggestion-marker-deletion-stroke: hsla(345, 71%, 20%, .5);
|
|
20
|
-
|
|
21
|
-
--ck-color-suggestion-marker-format-border: hsla(191, 90%, 40%, .4);
|
|
22
|
-
--ck-color-suggestion-marker-format-border-active: hsla(191, 90%, 40%, .65);
|
|
23
|
-
|
|
24
|
-
--ck-color-suggestion-widget-insertion-background: hsla(128, 71%, 65%, .05);
|
|
25
|
-
--ck-color-suggestion-widget-insertion-background-active: hsla(128, 71%, 50%, .07);
|
|
26
|
-
|
|
27
|
-
--ck-color-suggestion-widget-deletion-background: hsla(345, 71%, 65%, .05);
|
|
28
|
-
--ck-color-suggestion-widget-deletion-background-active: hsla(345, 71%, 45%, .07);
|
|
29
|
-
|
|
30
|
-
--ck-color-suggestion-widget-format-background: hsla(191, 90%, 40%, .09);
|
|
31
|
-
--ck-color-suggestion-widget-format-background-active: hsla(191, 90%, 40%, .16);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ck-content .ck-suggestion-marker-insertion {
|
|
35
|
-
border-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
36
|
-
border-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
37
|
-
background: var(--ck-color-suggestion-marker-insertion-background);
|
|
38
|
-
|
|
39
|
-
&.ck-suggestion-marker--active {
|
|
40
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
41
|
-
background: var(--ck-color-suggestion-marker-insertion-background-active);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* Disable background of marker inside widget. */
|
|
45
|
-
&.ck-widget {
|
|
46
|
-
background: none;
|
|
47
|
-
text-decoration: none;
|
|
48
|
-
border: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
49
|
-
|
|
50
|
-
&.ck-suggestion-marker--active {
|
|
51
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ck-content .ck-suggestion-marker-deletion {
|
|
57
|
-
border-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
58
|
-
border-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
59
|
-
|
|
60
|
-
/* #2810. Safari doesn't support combined text-decoration values. */
|
|
61
|
-
text-decoration: line-through;
|
|
62
|
-
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
63
|
-
text-decoration-thickness: 3px;
|
|
64
|
-
|
|
65
|
-
background: var(--ck-color-suggestion-marker-deletion-background);
|
|
66
|
-
|
|
67
|
-
&.ck-suggestion-marker--active {
|
|
68
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
69
|
-
background: var(--ck-color-suggestion-marker-deletion-background-active);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Disable background of marker inside widget. */
|
|
73
|
-
&.ck-widget {
|
|
74
|
-
background: none;
|
|
75
|
-
text-decoration: none;
|
|
76
|
-
border: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
77
|
-
|
|
78
|
-
&.ck-suggestion-marker--active {
|
|
79
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ck-content .ck-suggestion-marker-merge {
|
|
85
|
-
&::after {
|
|
86
|
-
border-top: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
87
|
-
border-bottom: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
88
|
-
|
|
89
|
-
/* #2810. Safari doesn't support combined text-decoration values. */
|
|
90
|
-
text-decoration: line-through;
|
|
91
|
-
text-decoration-color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
92
|
-
|
|
93
|
-
background: var(--ck-color-suggestion-marker-deletion-background);
|
|
94
|
-
color: var(--ck-color-suggestion-marker-deletion-stroke);
|
|
95
|
-
content: '¶';
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&.ck-suggestion-marker--active::after {
|
|
99
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
100
|
-
background: var(--ck-color-suggestion-marker-deletion-background-active);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ck-content .ck-suggestion-marker-split {
|
|
105
|
-
&::after {
|
|
106
|
-
border-top: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
107
|
-
border-bottom: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
108
|
-
background: var(--ck-color-suggestion-marker-insertion-background);
|
|
109
|
-
color: var(--ck-color-suggestion-marker-insertion-border);
|
|
110
|
-
content: '¶';
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.ck-suggestion-marker--active::after {
|
|
114
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
115
|
-
background: var(--ck-color-suggestion-marker-insertion-background-active);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ck-content .ck-suggestion-marker-formatInline {
|
|
120
|
-
border-top: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
121
|
-
border-bottom: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
122
|
-
|
|
123
|
-
&.ck-suggestion-marker--active {
|
|
124
|
-
border-color: var(--ck-color-suggestion-marker-format-border-active);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.ck-widget {
|
|
128
|
-
background: none;
|
|
129
|
-
border: 3px solid var(--ck-color-suggestion-marker-format-border);
|
|
130
|
-
|
|
131
|
-
&.ck-suggestion-marker--active {
|
|
132
|
-
border-color: var(--ck-color-suggestion-marker-format-border-active);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* This is a tricky case.
|
|
138
|
-
* We can't use `border-left` because sticky marker to the element looks kinda ugly.
|
|
139
|
-
* We can't use `::before` pseudoelement because it requires `position: relative` of parent, which breaks side-image.
|
|
140
|
-
* We can't use `outline` because it's impossible to display only left side of outline.
|
|
141
|
-
* So... we need to use power of CSS hacks <3 and use doubled box-shadow.
|
|
142
|
-
*/
|
|
143
|
-
|
|
144
|
-
.ck-content .ck-suggestion-marker-formatBlock {
|
|
145
|
-
border: 0;
|
|
146
|
-
background: none;
|
|
147
|
-
box-shadow: -7px 0 0 0 var(--ck-color-base-background), -10px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
148
|
-
|
|
149
|
-
&.ck-suggestion-marker--active {
|
|
150
|
-
box-shadow: -5px 0 0 0 var(--ck-color-base-background), -8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ck-content ul .ck-suggestion-marker-formatBlock,
|
|
155
|
-
.ck-content ol .ck-suggestion-marker-formatBlock {
|
|
156
|
-
box-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
157
|
-
|
|
158
|
-
&.ck-suggestion-marker--active {
|
|
159
|
-
box-shadow: -2px 0 0 0 var(--ck-color-base-background), -5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
160
|
-
}
|
|
161
|
-
}
|