@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.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.
Files changed (163) hide show
  1. package/README.md +0 -1
  2. package/build/comments.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/gl.js +1 -1
  16. package/build/translations/he.js +1 -1
  17. package/build/translations/hi.js +1 -1
  18. package/build/translations/hr.js +1 -1
  19. package/build/translations/hu.js +1 -1
  20. package/build/translations/id.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/ms.js +1 -1
  25. package/build/translations/nl.js +1 -1
  26. package/build/translations/no.js +1 -1
  27. package/build/translations/pl.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sq.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/lang/translations/ar.po +1 -1
  41. package/lang/translations/bg.po +1 -1
  42. package/lang/translations/bn.po +1 -1
  43. package/lang/translations/ca.po +1 -1
  44. package/lang/translations/cs.po +1 -1
  45. package/lang/translations/da.po +1 -1
  46. package/lang/translations/de.po +1 -1
  47. package/lang/translations/el.po +1 -1
  48. package/lang/translations/es.po +1 -1
  49. package/lang/translations/et.po +1 -1
  50. package/lang/translations/fi.po +1 -1
  51. package/lang/translations/fr.po +1 -1
  52. package/lang/translations/gl.po +12 -12
  53. package/lang/translations/he.po +1 -1
  54. package/lang/translations/hi.po +1 -1
  55. package/lang/translations/hr.po +1 -1
  56. package/lang/translations/hu.po +1 -1
  57. package/lang/translations/id.po +1 -1
  58. package/lang/translations/ja.po +1 -1
  59. package/lang/translations/ko.po +1 -1
  60. package/lang/translations/lt.po +1 -1
  61. package/lang/translations/ms.po +1 -1
  62. package/lang/translations/nl.po +1 -1
  63. package/lang/translations/no.po +1 -1
  64. package/lang/translations/pl.po +1 -1
  65. package/lang/translations/pt.po +1 -1
  66. package/lang/translations/ro.po +1 -1
  67. package/lang/translations/ru.po +1 -1
  68. package/lang/translations/sq.po +2 -2
  69. package/lang/translations/sr.po +1 -1
  70. package/lang/translations/sv.po +1 -1
  71. package/lang/translations/th.po +1 -1
  72. package/lang/translations/tr.po +1 -1
  73. package/lang/translations/uk.po +1 -1
  74. package/lang/translations/vi.po +1 -1
  75. package/lang/translations/zh-cn.po +1 -1
  76. package/lang/translations/zh.po +1 -1
  77. package/package.json +4 -5
  78. package/src/annotations/annotation.d.ts +10 -6
  79. package/src/annotations/annotation.js +2 -2
  80. package/src/annotations/annotationcollection.d.ts +7 -3
  81. package/src/annotations/annotationcollection.js +2 -2
  82. package/src/annotations/annotations.d.ts +10 -6
  83. package/src/annotations/annotations.js +2 -2
  84. package/src/annotations/annotationsuis.d.ts +9 -5
  85. package/src/annotations/annotationsuis.js +2 -2
  86. package/src/annotations/editorannotations.d.ts +8 -4
  87. package/src/annotations/editorannotations.js +2 -2
  88. package/src/annotations/inlineannotations.d.ts +10 -6
  89. package/src/annotations/inlineannotations.js +2 -2
  90. package/src/annotations/narrowsidebar.d.ts +10 -6
  91. package/src/annotations/narrowsidebar.js +2 -2
  92. package/src/annotations/sidebar.d.ts +9 -5
  93. package/src/annotations/sidebar.js +2 -2
  94. package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
  95. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  96. package/src/annotations/view/annotationview.d.ts +6 -2
  97. package/src/annotations/view/annotationview.js +2 -2
  98. package/src/annotations/view/sidebaritemview.d.ts +6 -2
  99. package/src/annotations/view/sidebaritemview.js +2 -2
  100. package/src/annotations/view/sidebarview.d.ts +6 -2
  101. package/src/annotations/view/sidebarview.js +2 -2
  102. package/src/annotations/widesidebar.d.ts +9 -5
  103. package/src/annotations/widesidebar.js +2 -2
  104. package/src/augmentation.d.ts +5 -1
  105. package/src/augmentation.js +1 -1
  106. package/src/comments/addcommentthreadcommand.d.ts +5 -1
  107. package/src/comments/addcommentthreadcommand.js +2 -2
  108. package/src/comments/commentsarchive.d.ts +8 -4
  109. package/src/comments/commentsarchive.js +2 -2
  110. package/src/comments/commentsarchiveui.d.ts +9 -5
  111. package/src/comments/commentsarchiveui.js +2 -2
  112. package/src/comments/commentsediting.d.ts +10 -6
  113. package/src/comments/commentsediting.js +2 -2
  114. package/src/comments/commentsrepository.d.ts +30 -13
  115. package/src/comments/commentsrepository.js +2 -2
  116. package/src/comments/commentsui.d.ts +9 -5
  117. package/src/comments/commentsui.js +2 -2
  118. package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
  119. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  120. package/src/comments/integrations/importword.d.ts +5 -1
  121. package/src/comments/integrations/importword.js +2 -2
  122. package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
  123. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  124. package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
  125. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  126. package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
  127. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  128. package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
  129. package/src/comments/ui/commentthreadcontroller.js +2 -2
  130. package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
  131. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  132. package/src/comments/ui/view/basecommentview.d.ts +8 -4
  133. package/src/comments/ui/view/basecommentview.js +2 -2
  134. package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
  135. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  136. package/src/comments/ui/view/commentcontentview.d.ts +6 -2
  137. package/src/comments/ui/view/commentcontentview.js +2 -2
  138. package/src/comments/ui/view/commentinputview.d.ts +8 -4
  139. package/src/comments/ui/view/commentinputview.js +2 -2
  140. package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
  141. package/src/comments/ui/view/commentsarchiveview.js +2 -2
  142. package/src/comments/ui/view/commentslistview.d.ts +9 -5
  143. package/src/comments/ui/view/commentslistview.js +2 -2
  144. package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
  145. package/src/comments/ui/view/commentthreadheaderview.js +2 -2
  146. package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
  147. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  148. package/src/comments/ui/view/commentthreadview.d.ts +11 -7
  149. package/src/comments/ui/view/commentthreadview.js +2 -2
  150. package/src/comments/ui/view/commentview.d.ts +12 -8
  151. package/src/comments/ui/view/commentview.js +2 -2
  152. package/src/comments.d.ts +14 -10
  153. package/src/comments.js +2 -2
  154. package/src/commentsonly.d.ts +6 -2
  155. package/src/commentsonly.js +2 -2
  156. package/src/config.d.ts +11 -7
  157. package/src/config.js +1 -1
  158. package/src/index.d.ts +24 -21
  159. package/src/index.js +2 -2
  160. package/src/utils/common-translations.d.ts +5 -1
  161. package/src/utils/common-translations.js +2 -2
  162. package/src/utils/createmutationobserver.d.ts +2 -1
  163. package/src/utils/createmutationobserver.js +2 -2
package/src/comments.d.ts CHANGED
@@ -1,17 +1,21 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/comments
3
7
  * @publicApi
4
8
  */
5
- import { Plugin } from 'ckeditor5/src/core.js';
6
- import CommentsRepository from './comments/commentsrepository.js';
7
- import CommentsEditing from './comments/commentsediting.js';
8
- import CommentsUI from './comments/commentsui.js';
9
- import CommentsOnly from './commentsonly.js';
10
- import WideSidebar from './annotations/widesidebar.js';
11
- import NarrowSidebar from './annotations/narrowsidebar.js';
12
- import InlineAnnotations from './annotations/inlineannotations.js';
13
- import CommentsArchiveUI from './comments/commentsarchiveui.js';
14
- import CommentsArchive from './comments/commentsarchive.js';
9
+ import { Plugin } from 'ckeditor5/src/core';
10
+ import CommentsRepository from './comments/commentsrepository';
11
+ import CommentsEditing from './comments/commentsediting';
12
+ import CommentsUI from './comments/commentsui';
13
+ import CommentsOnly from './commentsonly';
14
+ import WideSidebar from './annotations/widesidebar';
15
+ import NarrowSidebar from './annotations/narrowsidebar';
16
+ import InlineAnnotations from './annotations/inlineannotations';
17
+ import CommentsArchiveUI from './comments/commentsarchiveui';
18
+ import CommentsArchive from './comments/commentsarchive';
15
19
  /**
16
20
  * The comments plugin, which brings both the UI part and the editing part of this feature.
17
21
  *
package/src/comments.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x268d=['pluginName','Comments','requires'];(function(_0x26a609,_0x268df6){var _0x30bea5=function(_0x2aa15d){while(--_0x2aa15d){_0x26a609['push'](_0x26a609['shift']());}};_0x30bea5(++_0x268df6);}(_0x268d,0x106));var _0x30be=function(_0x26a609,_0x268df6){_0x26a609=_0x26a609-0x0;var _0x30bea5=_0x268d[_0x26a609];return _0x30bea5;};import{Plugin as _0x43619f}from'ckeditor5/src/core.js';import _0x382f88 from'./comments/commentsrepository.js';import _0x4d6d36 from'./comments/commentsediting.js';import _0x4652d0 from'./comments/commentsui.js';import _0x30c05e from'./commentsonly.js';import _0x350844 from'./annotations/widesidebar.js';import _0x45a26b from'./annotations/narrowsidebar.js';import _0x434cc5 from'./annotations/inlineannotations.js';import _0x411446 from'./comments/commentsarchiveui.js';import _0x7dedad from'./comments/commentsarchive.js';export default class f extends _0x43619f{static get[_0x30be('0x1')](){return[_0x382f88,_0x4d6d36,_0x4652d0,_0x7dedad,_0x411446,_0x30c05e,_0x350844,_0x45a26b,_0x434cc5];}static get[_0x30be('0x2')](){return _0x30be('0x0');}}
23
+ var _0xfedd=['requires'];(function(_0x466877,_0xfedd32){var _0x53a64d=function(_0x41b16b){while(--_0x41b16b){_0x466877['push'](_0x466877['shift']());}};_0x53a64d(++_0xfedd32);}(_0xfedd,0x18c));var _0x53a6=function(_0x466877,_0xfedd32){_0x466877=_0x466877-0x0;var _0x53a64d=_0xfedd[_0x466877];return _0x53a64d;};import{Plugin as _0x2037f4}from'ckeditor5/src/core';import _0x38634b from'./comments/commentsrepository';import _0x1115f7 from'./comments/commentsediting';import _0x4fff45 from'./comments/commentsui';import _0x5a252b from'./commentsonly';import _0x4f82d6 from'./annotations/widesidebar';import _0xee4d97 from'./annotations/narrowsidebar';import _0x41369c from'./annotations/inlineannotations';import _0x2e542e from'./comments/commentsarchiveui';import _0x441c2f from'./comments/commentsarchive';export default class f extends _0x2037f4{static get[_0x53a6('0x0')](){return[_0x38634b,_0x1115f7,_0x4fff45,_0x441c2f,_0x2e542e,_0x5a252b,_0x4f82d6,_0xee4d97,_0x41369c];}static get['pluginName'](){return'Comments';}}
@@ -1,9 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/commentsonly
3
7
  * @publicApi
4
8
  */
5
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
6
- import CommentsEditing from './comments/commentsediting.js';
9
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
10
+ import CommentsEditing from './comments/commentsediting';
7
11
  /**
8
12
  * The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
9
13
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2168=['clearForceDisabled','get','commentsOnly','commands','cut','listenTo','has','config','view','forceDisabled','DragDrop','document','afterInit','commentsOnlyMode','highest','_enableCommentsOnlyMode','plugins','_disableCommentsOnlyMode','editor','delete','requires','set','isEnabled','editing','stopListening','pluginName','addCommentThread','affectsData','stop'];(function(_0x3dc518,_0x2168a4){const _0x3a6e9e=function(_0x689bf2){while(--_0x689bf2){_0x3dc518['push'](_0x3dc518['shift']());}};_0x3a6e9e(++_0x2168a4);}(_0x2168,0x167));const _0x3a6e=function(_0x3dc518,_0x2168a4){_0x3dc518=_0x3dc518-0x0;let _0x3a6e9e=_0x2168[_0x3dc518];return _0x3a6e9e;};import{Plugin as _0xc8e170}from'ckeditor5/src/core.js';import _0x1e27ee from'./comments/commentsediting.js';export default class e extends _0xc8e170{static get[_0x3a6e('0xe')](){return'CommentsOnly';}static get[_0x3a6e('0x9')](){return[_0x1e27ee];}constructor(_0x3d8e86){super(_0x3d8e86),this[_0x3a6e('0xa')](_0x3a6e('0xb'),!0x1),this['on']('change:isEnabled',(_0x162f63,_0x41b419,_0x3f2cd5)=>{_0x3f2cd5?this[_0x3a6e('0x4')]():this[_0x3a6e('0x6')]();});}[_0x3a6e('0x1')](){!this[_0x3a6e('0xb')]&&this[_0x3a6e('0x7')][_0x3a6e('0x19')][_0x3a6e('0x13')](_0x3a6e('0x14'))&&(this[_0x3a6e('0xb')]=!0x0);}[_0x3a6e('0x4')](){for(const [_0x1f2728,_0x5d37ee]of this['editor'][_0x3a6e('0x15')])_0x5d37ee[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x1f2728&&_0x5d37ee[_0x3a6e('0x1b')](_0x3a6e('0x2'));this[_0x3a6e('0x7')][_0x3a6e('0x5')][_0x3a6e('0x18')](_0x3a6e('0x1c'))&&this[_0x3a6e('0x7')][_0x3a6e('0x5')]['get']('DragDrop')[_0x3a6e('0x1b')]('commentsOnlyMode');const _0x2fd749=this['editor'][_0x3a6e('0xc')]['view'][_0x3a6e('0x0')];this['listenTo'](_0x2fd749,_0x3a6e('0x16'),_0x3f2df0=>_0x3f2df0[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this['listenTo'](_0x2fd749,'clipboardInput',_0x3ea680=>_0x3ea680[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')}),this[_0x3a6e('0x17')](_0x2fd749,_0x3a6e('0x8'),_0x3184c=>_0x3184c[_0x3a6e('0x11')](),{'priority':_0x3a6e('0x3')});}[_0x3a6e('0x6')](){for(const [_0x397296,_0x187f31]of this[_0x3a6e('0x7')][_0x3a6e('0x15')])_0x187f31[_0x3a6e('0x10')]&&_0x3a6e('0xf')!==_0x397296&&_0x187f31[_0x3a6e('0x12')](_0x3a6e('0x2'));this[_0x3a6e('0xd')](this[_0x3a6e('0x7')][_0x3a6e('0xc')][_0x3a6e('0x1a')][_0x3a6e('0x0')]);}}
23
+ const _0x3d0a=['forceDisabled','view','commentsOnlyMode','clipboardInput','commands','isEnabled','highest','requires','config','_disableCommentsOnlyMode','cut','editor','editing','stop','affectsData','_enableCommentsOnlyMode','change:isEnabled','DragDrop','commentsOnly','set','CommentsOnly','addCommentThread','afterInit','listenTo','stopListening','clearForceDisabled','plugins','get'];(function(_0x2e42ef,_0x3d0a67){const _0x32783f=function(_0xdc6ff){while(--_0xdc6ff){_0x2e42ef['push'](_0x2e42ef['shift']());}};_0x32783f(++_0x3d0a67);}(_0x3d0a,0x126));const _0x3278=function(_0x2e42ef,_0x3d0a67){_0x2e42ef=_0x2e42ef-0x0;let _0x32783f=_0x3d0a[_0x2e42ef];return _0x32783f;};import{Plugin as _0xb58c9e}from'ckeditor5/src/core';import _0x2bcc7e from'./comments/commentsediting';export default class n extends _0xb58c9e{static get['pluginName'](){return _0x3278('0x6');}static get[_0x3278('0x15')](){return[_0x2bcc7e];}constructor(_0x36d056){super(_0x36d056),this[_0x3278('0x5')](_0x3278('0x13'),!0x1),this['on'](_0x3278('0x2'),(_0x35822b,_0x4e363e,_0x5abe45)=>{_0x5abe45?this[_0x3278('0x1')]():this['_disableCommentsOnlyMode']();});}[_0x3278('0x8')](){!this[_0x3278('0x13')]&&this[_0x3278('0x19')][_0x3278('0x16')]['get'](_0x3278('0x4'))&&(this[_0x3278('0x13')]=!0x0);}[_0x3278('0x1')](){for(const [_0xce791c,_0x5839a1]of this[_0x3278('0x19')][_0x3278('0x12')])_0x5839a1['affectsData']&&_0x3278('0x7')!==_0xce791c&&_0x5839a1[_0x3278('0xe')](_0x3278('0x10'));this[_0x3278('0x19')][_0x3278('0xc')]['has'](_0x3278('0x3'))&&this[_0x3278('0x19')][_0x3278('0xc')][_0x3278('0xd')](_0x3278('0x3'))[_0x3278('0xe')](_0x3278('0x10'));const _0x1cc0f2=this[_0x3278('0x19')][_0x3278('0x1a')][_0x3278('0xf')]['document'];this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x18'),_0x4300af=>_0x4300af[_0x3278('0x1b')](),{'priority':_0x3278('0x14')}),this[_0x3278('0x9')](_0x1cc0f2,_0x3278('0x11'),_0x2f1c56=>_0x2f1c56[_0x3278('0x1b')](),{'priority':'highest'}),this[_0x3278('0x9')](_0x1cc0f2,'delete',_0x2c9988=>_0x2c9988['stop'](),{'priority':'highest'});}[_0x3278('0x17')](){for(const [_0x341290,_0x302b5f]of this['editor'][_0x3278('0x12')])_0x302b5f[_0x3278('0x0')]&&_0x3278('0x7')!==_0x341290&&_0x302b5f[_0x3278('0xb')](_0x3278('0x10'));this[_0x3278('0xa')](this['editor'][_0x3278('0x1a')][_0x3278('0xf')]['document']);}}
package/src/config.d.ts CHANGED
@@ -1,10 +1,14 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/config
3
7
  * @publicApi
4
8
  */
5
- import type { EditorConfig } from 'ckeditor5/src/core.js';
6
- import type CommentView from './comments/ui/view/commentview.js';
7
- import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview.js';
9
+ import type { EditorConfig } from 'ckeditor5/src/core';
10
+ import type CommentView from './comments/ui/view/commentview';
11
+ import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
8
12
  /**
9
13
  * The configuration of the comments feature.
10
14
  *
@@ -85,10 +89,10 @@ export interface CommentsConfig {
85
89
  * To provide a better experience, you may add more plugins, that will extend the default editor configuration.
86
90
  *
87
91
  * ```ts
88
- * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
89
- * import List from '@ckeditor/ckeditor5-list/src/list.js';
90
- * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
91
- * import Italic from '@ckeditor/ckeditor5-italic/src/italic.js';
92
+ * import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
93
+ * import List from '@ckeditor/ckeditor5-list/src/list';
94
+ * import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
95
+ * import Italic from '@ckeditor/ckeditor5-italic/src/italic';
92
96
  *
93
97
  * ClassicEditor
94
98
  * .create( {
package/src/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/index.d.ts CHANGED
@@ -1,21 +1,24 @@
1
- export { default as Comments } from './comments.js';
2
- export { default as CommentsOnly } from './commentsonly.js';
3
- export { default as CommentsUI } from './comments/commentsui.js';
4
- export { default as CommentsRepository, CommentThread, Comment } from './comments/commentsrepository.js';
5
- export { default as CommentThreadController } from './comments/ui/commentthreadcontroller.js';
6
- export { default as Annotations } from './annotations/annotations.js';
7
- export { default as AnnotationsUIs } from './annotations/annotationsuis.js';
8
- export { default as EditorAnnotations } from './annotations/editorannotations.js';
9
- export { default as InlineAnnotations } from './annotations/inlineannotations.js';
10
- export { default as WideSidebar } from './annotations/widesidebar.js';
11
- export { default as NarrowSidebar } from './annotations/narrowsidebar.js';
12
- export { default as AnnotationView } from './annotations/view/annotationview.js';
13
- export { default as BaseCommentView } from './comments/ui/view/basecommentview.js';
14
- export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview.js';
15
- export { default as CommentsListView } from './comments/ui/view/commentslistview.js';
16
- export { default as CommentView } from './comments/ui/view/commentview.js';
17
- export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview.js';
18
- export type { CommentsConfig, SidebarConfig } from './config.js';
19
- export type { default as CommentsEditing } from './comments/commentsediting.js';
20
- export type { CommentDataJSON, CommentThreadContext } from './comments/commentsrepository.js';
21
- import './augmentation.js';
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export { default as Comments } from './comments';
6
+ export { default as CommentsOnly } from './commentsonly';
7
+ export { default as CommentsUI } from './comments/commentsui';
8
+ export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
9
+ export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
10
+ export { default as Annotations } from './annotations/annotations';
11
+ export { default as AnnotationsUIs } from './annotations/annotationsuis';
12
+ export { default as EditorAnnotations } from './annotations/editorannotations';
13
+ export { default as InlineAnnotations } from './annotations/inlineannotations';
14
+ export { default as WideSidebar } from './annotations/widesidebar';
15
+ export { default as NarrowSidebar } from './annotations/narrowsidebar';
16
+ export { default as AnnotationView } from './annotations/view/annotationview';
17
+ export { default as BaseCommentView } from './comments/ui/view/basecommentview';
18
+ export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
19
+ export { default as CommentsListView } from './comments/ui/view/commentslistview';
20
+ export { default as CommentView } from './comments/ui/view/commentview';
21
+ export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
22
+ export type { CommentsConfig, SidebarConfig } from './config';
23
+ export type { default as CommentsEditing } from './comments/commentsediting';
24
+ import './augmentation';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Comments}from'./comments.js';export{default as CommentsOnly}from'./commentsonly.js';export{default as CommentsUI}from'./comments/commentsui.js';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository.js';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller.js';export{default as Annotations}from'./annotations/annotations.js';export{default as AnnotationsUIs}from'./annotations/annotationsuis.js';export{default as EditorAnnotations}from'./annotations/editorannotations.js';export{default as InlineAnnotations}from'./annotations/inlineannotations.js';export{default as WideSidebar}from'./annotations/widesidebar.js';export{default as NarrowSidebar}from'./annotations/narrowsidebar.js';export{default as AnnotationView}from'./annotations/view/annotationview.js';export{default as BaseCommentView}from'./comments/ui/view/basecommentview.js';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview.js';export{default as CommentsListView}from'./comments/ui/view/commentslistview.js';export{default as CommentView}from'./comments/ui/view/commentview.js';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview.js';import'./augmentation.js';
23
+ export{default as Comments}from'./comments';export{default as CommentsOnly}from'./commentsonly';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
1
5
  /**
2
6
  * @module comments/utils/common-translations
3
7
  */
4
- import type { Locale } from 'ckeditor5/src/utils.js';
8
+ import type { Locale } from 'ckeditor5/src/utils';
5
9
  export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3565df,_0x13bb13,_0x3d24bd){const t=_0x3565df['t'];switch(_0x13bb13){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x3d24bd);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x3d24bd);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d24bd);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d24bd);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
23
+ export function getTranslation(_0x53200d,_0x134ddf,_0x5316f8){const t=_0x53200d['t'];switch(_0x134ddf){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5316f8);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x5316f8);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5316f8);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5316f8);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module comments/annotations/createmutationobserver
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
3
4
  */
4
5
  /**
5
6
  * Creates mutation observer to observe changes that might cause height change.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x574f=['attributeName','type','cancel','disconnect','characterData','class','observe','attributes'];(function(_0x524b9a,_0x574fe1){const _0x3b337c=function(_0x58cd57){while(--_0x58cd57){_0x524b9a['push'](_0x524b9a['shift']());}};_0x3b337c(++_0x574fe1);}(_0x574f,0x1be));const _0x3b33=function(_0x524b9a,_0x574fe1){_0x524b9a=_0x524b9a-0x0;let _0x3b337c=_0x574f[_0x524b9a];return _0x3b337c;};import{throttle as _0x50d210}from'lodash-es';export default function Dt(_0x38e845){const _0x4bfdfb=_0x50d210(_0x38e845,0x1e),_0x25709=new MutationObserver(_0x598110=>{for(const _0x250970 of _0x598110)(_0x3b33('0x1')==_0x250970[_0x3b33('0x3')]&&_0x3b33('0x7')==_0x250970[_0x3b33('0x2')]||'childList'==_0x250970[_0x3b33('0x3')]||_0x3b33('0x6')==_0x250970[_0x3b33('0x3')])&&_0x4bfdfb();});return{'attach'(_0x24fad1){_0x25709[_0x3b33('0x0')](_0x24fad1,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x25709[_0x3b33('0x5')](),_0x4bfdfb[_0x3b33('0x4')]();}};}
23
+ const _0x47a3=['attributes','cancel','characterData','childList','attributeName','observe','type','disconnect','class'];(function(_0x462c1b,_0x47a3af){const _0x2acdf3=function(_0x31ad25){while(--_0x31ad25){_0x462c1b['push'](_0x462c1b['shift']());}};_0x2acdf3(++_0x47a3af);}(_0x47a3,0x18b));const _0x2acd=function(_0x462c1b,_0x47a3af){_0x462c1b=_0x462c1b-0x0;let _0x2acdf3=_0x47a3[_0x462c1b];return _0x2acdf3;};import{throttle as _0x541042}from'lodash-es';export default function Dt(_0x5d449a){const _0x5447a0=_0x541042(_0x5d449a,0x1e),_0x3313a8=new MutationObserver(_0x2dc140=>{for(const _0x2904c7 of _0x2dc140)(_0x2acd('0x1')==_0x2904c7[_0x2acd('0x7')]&&_0x2acd('0x0')==_0x2904c7[_0x2acd('0x5')]||_0x2acd('0x4')==_0x2904c7['type']||_0x2acd('0x3')==_0x2904c7[_0x2acd('0x7')])&&_0x5447a0();});return{'attach'(_0x2aee37){_0x3313a8[_0x2acd('0x6')](_0x2aee37,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x3313a8[_0x2acd('0x8')](),_0x5447a0[_0x2acd('0x2')]();}};}