@ckeditor/ckeditor5-track-changes 42.0.2 → 43.0.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 (276) hide show
  1. package/CHANGELOG.md +1 -203
  2. package/build/track-changes.js +2 -2
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es.js +1 -1
  14. package/build/translations/et.js +1 -1
  15. package/build/translations/fi.js +1 -1
  16. package/build/translations/fr.js +1 -1
  17. package/build/translations/gl.js +1 -1
  18. package/build/translations/he.js +1 -1
  19. package/build/translations/hi.js +1 -1
  20. package/build/translations/hr.js +1 -1
  21. package/build/translations/hu.js +1 -1
  22. package/build/translations/id.js +1 -1
  23. package/build/translations/it.js +1 -1
  24. package/build/translations/ja.js +1 -1
  25. package/build/translations/ko.js +1 -1
  26. package/build/translations/lt.js +1 -1
  27. package/build/translations/lv.js +1 -1
  28. package/build/translations/ms.js +1 -1
  29. package/build/translations/nl.js +1 -1
  30. package/build/translations/no.js +1 -1
  31. package/build/translations/pl.js +1 -1
  32. package/build/translations/pt-br.js +1 -1
  33. package/build/translations/pt.js +1 -1
  34. package/build/translations/ro.js +1 -1
  35. package/build/translations/ru.js +1 -1
  36. package/build/translations/sk.js +1 -1
  37. package/build/translations/sq.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.js +3 -3
  52. package/dist/integrations/mergefields.d.ts +21 -0
  53. package/dist/trackchangesediting.d.ts +2 -1
  54. package/dist/translations/ar.js +1 -1
  55. package/dist/translations/ar.umd.js +1 -1
  56. package/dist/translations/az.js +1 -1
  57. package/dist/translations/az.umd.js +1 -1
  58. package/dist/translations/bg.js +1 -1
  59. package/dist/translations/bg.umd.js +1 -1
  60. package/dist/translations/bn.js +1 -1
  61. package/dist/translations/bn.umd.js +1 -1
  62. package/dist/translations/ca.js +1 -1
  63. package/dist/translations/ca.umd.js +1 -1
  64. package/dist/translations/cs.js +1 -1
  65. package/dist/translations/cs.umd.js +1 -1
  66. package/dist/translations/da.js +1 -1
  67. package/dist/translations/da.umd.js +1 -1
  68. package/dist/translations/de.js +1 -1
  69. package/dist/translations/de.umd.js +1 -1
  70. package/dist/translations/el.js +1 -1
  71. package/dist/translations/el.umd.js +1 -1
  72. package/dist/translations/en-au.js +1 -1
  73. package/dist/translations/en-au.umd.js +1 -1
  74. package/dist/translations/en.js +1 -1
  75. package/dist/translations/en.umd.js +1 -1
  76. package/dist/translations/es.js +1 -1
  77. package/dist/translations/es.umd.js +1 -1
  78. package/dist/translations/et.js +1 -1
  79. package/dist/translations/et.umd.js +1 -1
  80. package/dist/translations/fi.js +1 -1
  81. package/dist/translations/fi.umd.js +1 -1
  82. package/dist/translations/fr.js +1 -1
  83. package/dist/translations/fr.umd.js +1 -1
  84. package/dist/translations/gl.js +1 -1
  85. package/dist/translations/gl.umd.js +1 -1
  86. package/dist/translations/he.js +1 -1
  87. package/dist/translations/he.umd.js +1 -1
  88. package/dist/translations/hi.js +1 -1
  89. package/dist/translations/hi.umd.js +1 -1
  90. package/dist/translations/hr.js +1 -1
  91. package/dist/translations/hr.umd.js +1 -1
  92. package/dist/translations/hu.js +1 -1
  93. package/dist/translations/hu.umd.js +1 -1
  94. package/dist/translations/id.js +1 -1
  95. package/dist/translations/id.umd.js +1 -1
  96. package/dist/translations/it.js +1 -1
  97. package/dist/translations/it.umd.js +1 -1
  98. package/dist/translations/ja.js +1 -1
  99. package/dist/translations/ja.umd.js +1 -1
  100. package/dist/translations/ko.js +1 -1
  101. package/dist/translations/ko.umd.js +1 -1
  102. package/dist/translations/lt.js +1 -1
  103. package/dist/translations/lt.umd.js +1 -1
  104. package/dist/translations/lv.js +1 -1
  105. package/dist/translations/lv.umd.js +1 -1
  106. package/dist/translations/ms.js +1 -1
  107. package/dist/translations/ms.umd.js +1 -1
  108. package/dist/translations/nl.js +1 -1
  109. package/dist/translations/nl.umd.js +1 -1
  110. package/dist/translations/no.js +1 -1
  111. package/dist/translations/no.umd.js +1 -1
  112. package/dist/translations/pl.js +1 -1
  113. package/dist/translations/pl.umd.js +1 -1
  114. package/dist/translations/pt-br.js +1 -1
  115. package/dist/translations/pt-br.umd.js +1 -1
  116. package/dist/translations/pt.js +1 -1
  117. package/dist/translations/pt.umd.js +1 -1
  118. package/dist/translations/ro.js +1 -1
  119. package/dist/translations/ro.umd.js +1 -1
  120. package/dist/translations/ru.js +1 -1
  121. package/dist/translations/ru.umd.js +1 -1
  122. package/dist/translations/sk.js +1 -1
  123. package/dist/translations/sk.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/tk.js +1 -1
  135. package/dist/translations/tk.umd.js +1 -1
  136. package/dist/translations/tr.js +1 -1
  137. package/dist/translations/tr.umd.js +1 -1
  138. package/dist/translations/tt.js +1 -1
  139. package/dist/translations/tt.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/dist/ui/view/basesuggestionthreadview.d.ts +32 -3
  151. package/dist/ui/view/suggestionthreadview.d.ts +16 -9
  152. package/dist/utils/utils.d.ts +7 -0
  153. package/lang/contexts.json +3 -0
  154. package/lang/translations/ar.po +27 -3
  155. package/lang/translations/az.po +16 -0
  156. package/lang/translations/bg.po +19 -3
  157. package/lang/translations/bn.po +19 -3
  158. package/lang/translations/ca.po +19 -3
  159. package/lang/translations/cs.po +23 -3
  160. package/lang/translations/da.po +19 -3
  161. package/lang/translations/de.po +19 -3
  162. package/lang/translations/el.po +19 -3
  163. package/lang/translations/en-au.po +16 -0
  164. package/lang/translations/en.po +19 -3
  165. package/lang/translations/es.po +21 -3
  166. package/lang/translations/et.po +19 -3
  167. package/lang/translations/fi.po +19 -3
  168. package/lang/translations/fr.po +21 -3
  169. package/lang/translations/gl.po +19 -3
  170. package/lang/translations/he.po +21 -3
  171. package/lang/translations/hi.po +19 -3
  172. package/lang/translations/hr.po +18 -0
  173. package/lang/translations/hu.po +19 -3
  174. package/lang/translations/id.po +17 -3
  175. package/lang/translations/it.po +21 -3
  176. package/lang/translations/ja.po +17 -3
  177. package/lang/translations/ko.po +17 -3
  178. package/lang/translations/lt.po +23 -3
  179. package/lang/translations/lv.po +21 -3
  180. package/lang/translations/ms.po +17 -3
  181. package/lang/translations/nl.po +19 -3
  182. package/lang/translations/no.po +19 -3
  183. package/lang/translations/pl.po +23 -3
  184. package/lang/translations/pt-br.po +21 -3
  185. package/lang/translations/pt.po +21 -3
  186. package/lang/translations/ro.po +21 -3
  187. package/lang/translations/ru.po +23 -3
  188. package/lang/translations/sk.po +23 -3
  189. package/lang/translations/sq.po +16 -0
  190. package/lang/translations/sr-latn.po +21 -3
  191. package/lang/translations/sr.po +21 -3
  192. package/lang/translations/sv.po +19 -3
  193. package/lang/translations/th.po +17 -3
  194. package/lang/translations/tk.po +16 -0
  195. package/lang/translations/tr.po +19 -3
  196. package/lang/translations/tt.po +14 -0
  197. package/lang/translations/uk.po +23 -3
  198. package/lang/translations/ur.po +16 -0
  199. package/lang/translations/vi.po +17 -3
  200. package/lang/translations/zh-cn.po +17 -3
  201. package/lang/translations/zh.po +17 -3
  202. package/package.json +10 -10
  203. package/src/commands/acceptsuggestioncommand.js +1 -1
  204. package/src/commands/discardsuggestioncommand.js +1 -1
  205. package/src/commands/executeonallsuggestionscommand.js +1 -1
  206. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  207. package/src/commands/trackchangescommand.js +1 -1
  208. package/src/index.d.ts +1 -0
  209. package/src/index.js +1 -1
  210. package/src/integrations/aiassistant.js +1 -1
  211. package/src/integrations/alignment.js +1 -1
  212. package/src/integrations/basicstyles.js +1 -1
  213. package/src/integrations/blockquote.js +1 -1
  214. package/src/integrations/casechange.js +1 -1
  215. package/src/integrations/ckbox.js +1 -1
  216. package/src/integrations/codeblock.js +1 -1
  217. package/src/integrations/comments.js +1 -1
  218. package/src/integrations/deletecommand.js +1 -1
  219. package/src/integrations/entercommand.js +1 -1
  220. package/src/integrations/findandreplace.js +1 -1
  221. package/src/integrations/font.js +1 -1
  222. package/src/integrations/formatpainter.js +1 -1
  223. package/src/integrations/heading.js +1 -1
  224. package/src/integrations/highlight.js +1 -1
  225. package/src/integrations/horizontalline.js +1 -1
  226. package/src/integrations/htmlembed.js +1 -1
  227. package/src/integrations/image.js +1 -1
  228. package/src/integrations/imagereplace.js +1 -1
  229. package/src/integrations/imagestyle.js +1 -1
  230. package/src/integrations/importword.js +1 -1
  231. package/src/integrations/indent.js +1 -1
  232. package/src/integrations/inputcommand.js +1 -1
  233. package/src/integrations/legacylist.js +1 -1
  234. package/src/integrations/legacylistproperties.js +1 -1
  235. package/src/integrations/link.js +1 -1
  236. package/src/integrations/list.js +1 -1
  237. package/src/integrations/listproperties.js +1 -1
  238. package/src/integrations/mediaembed.js +1 -1
  239. package/src/integrations/mention.js +1 -1
  240. package/src/integrations/mergefields.d.ts +17 -0
  241. package/src/integrations/mergefields.js +23 -0
  242. package/src/integrations/multilevellist.js +1 -1
  243. package/src/integrations/pagebreak.js +1 -1
  244. package/src/integrations/paragraph.js +1 -1
  245. package/src/integrations/removeformat.js +1 -1
  246. package/src/integrations/restrictededitingmode.js +1 -1
  247. package/src/integrations/shiftentercommand.js +1 -1
  248. package/src/integrations/standardeditingmode.js +1 -1
  249. package/src/integrations/style.js +1 -1
  250. package/src/integrations/table.js +1 -1
  251. package/src/integrations/tablecaption.js +1 -1
  252. package/src/integrations/tableclipboard.js +1 -1
  253. package/src/integrations/tablecolumnresize.js +1 -1
  254. package/src/integrations/tableheadings.js +1 -1
  255. package/src/integrations/tablemergesplit.js +1 -1
  256. package/src/integrations/tableofcontents.js +1 -1
  257. package/src/integrations/tableproperties.js +1 -1
  258. package/src/integrations/template.js +1 -1
  259. package/src/integrations/title.js +1 -1
  260. package/src/integrations/undo.js +1 -1
  261. package/src/integrations/utils.js +1 -1
  262. package/src/suggestion.js +2 -2
  263. package/src/suggestiondescriptionfactory.js +1 -1
  264. package/src/trackchanges.js +1 -1
  265. package/src/trackchangesdata.js +1 -1
  266. package/src/trackchangesediting.d.ts +2 -1
  267. package/src/trackchangesediting.js +1 -1
  268. package/src/trackchangesui.js +1 -1
  269. package/src/ui/suggestioncontroller.js +2 -2
  270. package/src/ui/view/basesuggestionthreadview.d.ts +32 -3
  271. package/src/ui/view/basesuggestionthreadview.js +1 -1
  272. package/src/ui/view/suggestionthreadview.d.ts +16 -9
  273. package/src/ui/view/suggestionthreadview.js +1 -1
  274. package/src/utils/common-translations.js +1 -1
  275. package/src/utils/utils.d.ts +7 -0
  276. package/src/utils/utils.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,206 +1,4 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- All changes in the package are documented at https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
5
-
6
- Changes for the past releases are available below.
7
-
8
- ## 23.0.0 (September 25, 2020)
9
-
10
- ### Other changes
11
-
12
- * Added support for custom headings in track changes mode.
13
-
14
-
15
- ## 22.0.0 (August 25, 2020)
16
-
17
- ### Features
18
-
19
- * Introduced [`TrackChangesData`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/track-changes/track-changes-api.html#trackchangesdata) plugin which returns the editor data with all suggestions accepted or rejected.
20
-
21
- ## 21.0.0 (July 24, 2020)
22
-
23
- ### BREAKING CHANGES
24
-
25
- * The track changes feature now uses the recently introduced marker-to-data conversion. This means that suggestion markers included in the document data returned from the editor will be different than before. The change is backward compatible with regards to old documents that you have already saved in your database. These documents will be correctly processed by the editor, however, upon saving, the document data will be returned in the new format.
26
-
27
- ### Features
28
-
29
- * Integrated multi-cell table selection with track changes.
30
-
31
- ### Bug fixes
32
-
33
- * An active suggestion should always be highlighted and visible in the editor content. This concerns cases with multiple suggestions on the same part of the content.
34
- * Fixed incorrect suggestion description for space character deletion.
35
- * Enabling part of the content for restricted editing in track changes mode was crashing the editor.
36
- * Fixed a crash happening when the remove row and remove column suggestions were accepted at the same time.
37
-
38
-
39
- ## 20.0.1 (June 26, 2020)
40
-
41
- ### Bug fixes
42
-
43
- * Fixed a crash happening when an element was inserted after a paragraph insertion suggestion.
44
-
45
-
46
- ## 19.1.0 (May 25, 2020)
47
-
48
- ### Features
49
-
50
- * Integration for "magic block" (inserting paragraphs before/after a widget).
51
-
52
-
53
- ## 19.0.1 (April 30, 2020)
54
-
55
- ### Features
56
-
57
- * Introduced customizable suggestion views.
58
- * Introduced translations in the track changes feature.
59
-
60
- ### Bug fixes
61
-
62
- * Fixed incorrect accepting and discarding of table row or column suggestions that were in the initial data.
63
-
64
-
65
- ## 18.0.0 (March 19, 2020)
66
-
67
- ### Bug fixes
68
-
69
- * Fixed incorrect suggestion description when styling (like bold) was applied to the whole table.
70
- * Fixed incorrectly created inline formatting suggestions set on a table that had insertion suggestions inside.
71
- * Fixed incorrectly highlighted suggestions for table row/column insertion and deletion.
72
-
73
-
74
- ## 17.0.0 (February 20, 2020)
75
-
76
- ### BREAKING CHANGES
77
-
78
- * The track changes feature now expects the `config.collaboration.channelId` configuration parameter. The previously used `config.cloudServices.documentId` was deprecated and will be removed in the next release.
79
- * Stylesheets for suggestions were cleaned up. If you are using custom styles, refer to the documentation to see what CSS variables can now be used.
80
-
81
- ### Features
82
-
83
- * Added support for the image resize feature.
84
- * Added support for the soft break (<kbd>Shift</kbd>+<kbd>Enter</kbd>) feature.
85
- * Added support for the horizontal line feature.
86
- * Added support for the page break feature.
87
- * Added support for the restricted editing feature.
88
-
89
- ### Bug fixes
90
-
91
- * Fixed the description for the title element.
92
-
93
- ### Other changes
94
-
95
- * Cleaned up track changes suggestion marker styles.
96
- * Improved suggestion descriptions for suggestions on/in tables. Now, the description will show the text contained in the suggestion.
97
- * Improved the behavior of the track changes split button. The dropdown will not be disabled if there is at least one enabled item inside it.
98
-
99
-
100
- ## 16.0.0 (December 2, 2019)
101
-
102
- Internal changes only (updated dependencies, documentation, etc.).
103
-
104
-
105
- ## 15.0.0 (October 23, 2019)
106
-
107
- ### Features
108
-
109
- * Introduced the possibility to [provide a custom date-time format](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/comments/comments.html#custom-date-format) for the suggestion balloons.
110
-
111
- ### Bug fixes
112
-
113
- * The `model.insertContent()` method will now return the affected range in track changes mode.
114
-
115
- ### Other changes
116
-
117
- * Track changes will no longer import and add all the features to the editor.
118
-
119
-
120
- ## 1.1.0 (August 22, 2019)
121
-
122
- ### Features
123
-
124
- * Introduced track changes support for the following features:
125
- * Table structure changes: adding or removing rows and columns, merging or splitting cells, adding header rows or header columns.
126
- * Indent and outdent.
127
- * Text transformation.
128
- * To-do lists.
129
- * Added the author ID and the suggestion ID as data attributes to annotation DOM elements.
130
- * Introduced commands for accepting or discarding suggestions in the selection.
131
- * Annotations with an unfinished editing process will now be marked in the narrow sidebar.
132
- * Suggestions are now always accepted or discarded using a single command. It makes it possible to block a command for certain suggestions.
133
-
134
- ### Bug fixes
135
-
136
- * Changing suggestions quickly will not lead to an error.
137
- * Text replacement suggestions will be active after creation.
138
-
139
-
140
- ## 1.0.0 (July 4, 2019)
141
-
142
- ### Features
143
-
144
- * Introduced track changes support for [real-time collaboration](https://ckeditor.com/collaboration/real-time-collaborative-editing/).
145
- * Introduced the [narrow sidebar](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/comments/comments-display-mode.html#narrow-sidebar) display mode.
146
- * Successive suggestions of the same type are now chained.
147
-
148
- ### Bug fixes
149
-
150
- * Suggestion markers on widgets should overwrite user selection markers.
151
-
152
- ### Other changes
153
-
154
- * Replaced `object-hash` and `trim-html` dependencies with an internal implementation.
155
- * The track changes plugin should send `originalSuggestionId` to the adapter if an existing suggestion got broken by a user action. See the [documentation](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/track-changes/track-changes-integration.html#track-changes-api).
156
- * Introduced the support for mobile environments: Android and iOS.
157
-
158
-
159
- ## 0.3.0 (June 5, 2019)
160
-
161
- ### Features
162
-
163
- * Introduced tracking of formatting changes. Added support for alignment, bold, italic, underline, code, strikethrough, subscript, superscript, block quotes, font features, headings, highlight, image styles, link, list indentation, mentions, and remove formatting features in the track change mode.
164
- * Introduced the [`comments.editorConfig` property](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/comments/comments.html#comment-editor-customization) for providing a custom configuration for the track changes comment editor.
165
- * Enabled table commands for the user who inserted the table.
166
- * Introduced inline suggestions as a separate [display mode](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/comments/comments-display-mode.html). It is possible to switch between the sidebar and inline suggestions dynamically.
167
-
168
- ### Bug fixes
169
-
170
- * Line-through of the delete marker is now visible in Safari.
171
- * Suggestions on objects (images, tables, etc.) should not be unexpectedly removed after clicking the widget.
172
-
173
-
174
- ## 0.2.0 (April 4, 2019)
175
-
176
- ### Features
177
-
178
- * Enabled inserting tables, images and media in the track changes mode.
179
- * Introduced comments for suggestions.
180
- * Improved interactions between changes done by different authors in the track changes and regular modes.
181
-
182
- ### Bug fixes
183
-
184
- * Do not show the "Split/Add/Merge/Remove" label together with the "Added/Removed" label.
185
- * Fixed some cases with wrapping or unwrapping suggestions in block quote.
186
- * Merge/split indicators will not show up anymore in a table when it was deleted or added.
187
-
188
- ### Other changes
189
-
190
- * Introduced the `adapter.updateSuggestion()` method and the `suggestionData.hasComments` property needed to handle comments for suggestions. Learn more [in the documentation](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/track-changes/track-changes-integration.html).
191
-
192
-
193
- ## 0.1.0 (February 5, 2019)
194
-
195
- ### The initial implementation of track changes
196
-
197
- The initialization of this repository. [CKEditor&nbsp;5 track changes](https://ckeditor.com/collaboration/track-changes/) is a plugin that lets you add track changes support to any CKEditor&nbsp;5 build. It provides the API to integrate track changes with your application (save and load suggestions data to and from your database).
198
-
199
- The track changes feature supports:
200
-
201
- * Turning on and off the track changes mode.
202
- * Tracking typing, deletions, splitting or merging blocks.
203
- * Accepting or discarding suggested changes.
204
- * Accepting or discarding all suggested changes using a single button.
205
-
206
- All CKEditor&nbsp;5 features that are not supported yet are disabled in the track changes mode.
4
+ All changes in the package are documented in https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.