@ckeditor/ckeditor5-comments 31.1.0 → 34.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 (125) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/comments.js +5 -0
  4. package/build/translations/bs.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de-ch.js +1 -0
  8. package/build/translations/de.js +1 -0
  9. package/build/translations/el.js +1 -0
  10. package/build/translations/en-au.js +1 -0
  11. package/build/translations/es.js +1 -0
  12. package/build/translations/et.js +1 -0
  13. package/build/translations/fr.js +1 -0
  14. package/build/translations/gl.js +1 -0
  15. package/build/translations/hi.js +1 -0
  16. package/build/translations/hr.js +1 -0
  17. package/build/translations/hu.js +1 -0
  18. package/build/translations/id.js +1 -0
  19. package/build/translations/it.js +1 -0
  20. package/build/translations/ja.js +1 -0
  21. package/build/translations/jv.js +1 -0
  22. package/build/translations/ko.js +1 -0
  23. package/build/translations/nl.js +1 -0
  24. package/build/translations/no.js +1 -0
  25. package/build/translations/pl.js +1 -0
  26. package/build/translations/pt-br.js +1 -0
  27. package/build/translations/ro.js +1 -0
  28. package/build/translations/ru.js +1 -0
  29. package/build/translations/sk.js +1 -0
  30. package/build/translations/sr-latn.js +1 -0
  31. package/build/translations/sr.js +1 -0
  32. package/build/translations/tk.js +1 -0
  33. package/build/translations/tr.js +1 -0
  34. package/build/translations/ug.js +1 -0
  35. package/build/translations/uk.js +1 -0
  36. package/build/translations/zh-cn.js +1 -0
  37. package/build/translations/zh.js +1 -0
  38. package/lang/contexts.json +0 -3
  39. package/lang/translations/bs.po +68 -0
  40. package/lang/translations/cs.po +1 -13
  41. package/lang/translations/da.po +1 -13
  42. package/lang/translations/de-ch.po +1 -13
  43. package/lang/translations/de.po +1 -13
  44. package/lang/translations/el.po +67 -0
  45. package/lang/translations/en-au.po +1 -13
  46. package/lang/translations/en.po +1 -13
  47. package/lang/translations/es.po +1 -13
  48. package/lang/translations/et.po +1 -13
  49. package/lang/translations/fr.po +1 -13
  50. package/lang/translations/gl.po +1 -13
  51. package/lang/translations/hi.po +1 -13
  52. package/lang/translations/hr.po +1 -13
  53. package/lang/translations/hu.po +1 -13
  54. package/lang/translations/id.po +1 -13
  55. package/lang/translations/it.po +1 -13
  56. package/lang/translations/ja.po +1 -13
  57. package/lang/translations/jv.po +66 -0
  58. package/lang/translations/ko.po +1 -13
  59. package/lang/translations/nl.po +1 -13
  60. package/lang/translations/no.po +1 -13
  61. package/lang/translations/pl.po +1 -13
  62. package/lang/translations/pt-br.po +1 -13
  63. package/lang/translations/ro.po +1 -13
  64. package/lang/translations/ru.po +1 -13
  65. package/lang/translations/sk.po +1 -13
  66. package/lang/translations/sr-latn.po +1 -13
  67. package/lang/translations/sr.po +1 -13
  68. package/lang/translations/tk.po +1 -13
  69. package/lang/translations/tr.po +1 -13
  70. package/lang/translations/ug.po +1 -13
  71. package/lang/translations/uk.po +1 -13
  72. package/lang/translations/zh-cn.po +1 -13
  73. package/lang/translations/zh.po +1 -13
  74. package/package.json +4 -9
  75. package/src/annotations/annotation.js +2 -2
  76. package/src/annotations/annotationcollection.js +2 -2
  77. package/src/annotations/annotations.js +2 -2
  78. package/src/annotations/annotationsuis.js +2 -2
  79. package/src/annotations/editorannotations.js +2 -2
  80. package/src/annotations/inlineannotations.js +2 -2
  81. package/src/annotations/narrowsidebar.js +2 -2
  82. package/src/annotations/sidebar.js +2 -2
  83. package/src/annotations/view/annotationcounterbuttonview.js +2 -2
  84. package/src/annotations/view/annotationview.js +2 -2
  85. package/src/annotations/view/sidebaritemview.js +2 -2
  86. package/src/annotations/view/sidebarview.js +2 -2
  87. package/src/annotations/widesidebar.js +2 -2
  88. package/src/comments/addcommentthreadcommand.js +2 -2
  89. package/src/comments/commentsediting.js +2 -2
  90. package/src/comments/commentsrepository.js +2 -2
  91. package/src/comments/commentsui.js +2 -2
  92. package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
  93. package/src/comments/ui/commenteditor/commenteditor.js +2 -2
  94. package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
  95. package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
  96. package/src/comments/ui/commentthreadcontroller.js +2 -2
  97. package/src/comments/ui/view/basecommentthreadview.js +2 -2
  98. package/src/comments/ui/view/basecommentview.js +2 -2
  99. package/src/comments/ui/view/collapsedcommentsview.js +2 -2
  100. package/src/comments/ui/view/commentcontentview.js +2 -2
  101. package/src/comments/ui/view/commentinputview.js +2 -2
  102. package/src/comments/ui/view/commentslistview.js +2 -2
  103. package/src/comments/ui/view/commentthreadinputview.js +2 -2
  104. package/src/comments/ui/view/commentthreadview.js +2 -2
  105. package/src/comments/ui/view/commentview.js +2 -2
  106. package/src/comments.js +2 -2
  107. package/src/commentsonly.js +2 -2
  108. package/src/{utils/getmarkerdomelement.js → index.js} +2 -2
  109. package/src/utils/common-translations.js +2 -2
  110. package/src/utils/createmutationobserver.js +2 -2
  111. package/theme/annotation-inline.css +1 -1
  112. package/theme/annotation.css +1 -1
  113. package/theme/comment.css +1 -1
  114. package/theme/commentinput.css +1 -1
  115. package/theme/commentmarker.css +1 -1
  116. package/theme/commentthread.css +1 -1
  117. package/theme/icons/add-comment.svg +1 -1
  118. package/theme/icons/edit-comment.svg +1 -1
  119. package/theme/icons/remove-comment.svg +1 -1
  120. package/theme/sidebar-narrow.css +1 -1
  121. package/theme/sidebar.css +1 -1
  122. package/src/comments/ui/view/confirmmixin.js +0 -23
  123. package/src/comments/ui/view/confirmview.js +0 -23
  124. package/src/utils/getdatetimeformatter.js +0 -23
  125. package/src/utils/trim-html.js +0 -23
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -4,7 +4,7 @@
4
4
  CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
5
  all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
- Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
7
+ Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
9
9
  !-->
10
10
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
package/theme/sidebar.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Frederico Knabben. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  :root {
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- var _0x12b5=['_removeConfirm','confirmView','message','deregisterChild','submit','fire','element','destroy','render','set','isConfirm','cancel','once'];(function(_0x18190e,_0x12b5f4){var _0x25bf84=function(_0x401d3c){while(--_0x401d3c){_0x18190e['push'](_0x18190e['shift']());}};_0x25bf84(++_0x12b5f4);}(_0x12b5,0xc9));var _0x25bf=function(_0x18190e,_0x12b5f4){_0x18190e=_0x18190e-0x0;var _0x25bf84=_0x12b5[_0x18190e];return _0x25bf84;};import _0x49c479 from'./confirmview';export default{'showConfirm'(_0x502a74,_0x42ae28){return this[_0x25bf('0x8')]=new _0x49c479(this['locale']),this[_0x25bf('0x8')][_0x25bf('0x2')](),this[_0x25bf('0x8')][_0x25bf('0x9')]=_0x502a74,this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0x5'),()=>{this['_removeConfirm']();}),this[_0x25bf('0x8')][_0x25bf('0x6')](_0x25bf('0xb'),()=>{this[_0x25bf('0x7')]();}),_0x42ae28['appendChild'](this[_0x25bf('0x8')][_0x25bf('0x0')]),this['registerChild'](this['confirmView']),this[_0x25bf('0x3')](_0x25bf('0x4'),!0x0),new Promise(_0xcab0eb=>this['confirmView']['on']('submit',_0xcab0eb));},'cancelConfirm'(){this[_0x25bf('0x4')]&&this[_0x25bf('0x8')][_0x25bf('0xc')](_0x25bf('0x5'));},'_removeConfirm'(){this[_0x25bf('0x8')][_0x25bf('0x0')]['remove'](),this[_0x25bf('0xa')](this[_0x25bf('0x8')]),this[_0x25bf('0x4')]=!0x1,this[_0x25bf('0x8')][_0x25bf('0x1')](),delete this[_0x25bf('0x8')];}};
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- import{View as bt,ButtonView as mt}from'ckeditor5/src/ui';import{icons as Yt}from'ckeditor5/src/core';export default class ii extends bt{constructor(_0x482926){super(_0x482926);const {t:t}=_0x482926,_0x57fbcf=this['bindTemplate'];this['submitView']=this['_createButtonView'](_0x482926,t('Yes'),Yt['check'],'submit'),this['cancelView']=this['_createButtonView'](_0x482926,t('No'),Yt['cancel'],'cancel'),this['set']('message',t('Are\x20you\x20sure?')),this['setTemplate']({'tag':'div','attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x57fbcf['to']('message')}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this['cancelView']]}]}]});}['_createButtonView'](_0x2c406d,_0x59e602,_0x274f13,_0x5ae4a5){const _0x54b1a1=new mt(_0x2c406d);return _0x54b1a1['label']=_0x59e602,_0x54b1a1['icon']=_0x274f13,_0x54b1a1['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x5ae4a5}}),_0x54b1a1['on']('execute',()=>this['fire'](_0x5ae4a5)),_0x54b1a1;}}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0xbb57=['dateTimeFormat','function','invalid-date-time-format','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma'];(function(_0x52fd8,_0xbb5726){const _0x3843ac=function(_0x180e11){while(--_0x180e11){_0x52fd8['push'](_0x52fd8['shift']());}};_0x3843ac(++_0xbb5726);}(_0xbb57,0x65));const _0x3843=function(_0x52fd8,_0xbb5726){_0x52fd8=_0x52fd8-0x0;let _0x3843ac=_0xbb57[_0x52fd8];return _0x3843ac;};import _0x515e0b from'date-fns/format';import _0x3f7ff8 from'date-fns/parseISO';import _0x4b34e0 from'date-fns/differenceInCalendarDays';import _0x16e913 from'@ckeditor/ckeditor5-utils/src/ckeditorerror';export default function J(_0x355f1={}){if(void 0x0!==_0x355f1[_0x3843('0x4')]&&_0x3843('0x5')!=typeof _0x355f1[_0x3843('0x4')])throw new _0x16e913(_0x3843('0x6'));return _0x28f4d9=>{const _0x2fc884='string'==typeof _0x28f4d9?_0x3f7ff8(_0x28f4d9):_0x28f4d9,_0x3739d1=new Date(),_0x1a1fdd=_0x4b34e0(_0x3739d1,_0x2fc884);return _0x355f1[_0x3843('0x4')]?_0x355f1[_0x3843('0x4')](_0x2fc884):_0x515e0b(_0x2fc884,0x0===_0x1a1fdd?_0x3843('0x0'):0x1===_0x1a1fdd?_0x3843('0x2'):_0x1a1fdd<0x7?_0x3843('0x1'):_0x3843('0x3'));};}
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
3
- *
4
- *
5
- *
6
- *
7
- * +---------------------------------------------------------------------------------+
8
- * | |
9
- * | Hello stranger! |
10
- * | |
11
- * | |
12
- * | What you're currently looking at is the source code of a legally protected, |
13
- * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
- * | are forbidden and will result in legal consequences. |
15
- * | |
16
- * | |
17
- * +---------------------------------------------------------------------------------+
18
- *
19
- *
20
- *
21
- *
22
- */
23
- const _0x2222=['split','startsWith','push','slice','match','pop','substring','length','join','indexOf','...','replace'];(function(_0x3914c3,_0x22224a){const _0x382436=function(_0x5be0d6){while(--_0x5be0d6){_0x3914c3['push'](_0x3914c3['shift']());}};_0x382436(++_0x22224a);}(_0x2222,0x72));const _0x3824=function(_0x3914c3,_0x22224a){_0x3914c3=_0x3914c3-0x0;let _0x382436=_0x2222[_0x3914c3];return _0x382436;};export default function nn(_0x14b73c,{limit:_0x2aefa1,suffix:_0x3b3ae7=_0x3824('0x4')}){const _0x51bcac=[];let _0x47c4c5=0x0;const _0x12e286=_0x14b73c[_0x3824('0x5')](/</g,'\x0a<')['replace'](/>/g,'>\x0a')[_0x3824('0x5')](/^\n/g,'')[_0x3824('0x5')](/\n$/g,'')[_0x3824('0x6')]('\x0a');for(let _0x20cd59=0x0;_0x20cd59<_0x12e286[_0x3824('0x1')];_0x20cd59++){let _0x509a99=_0x12e286[_0x20cd59];const _0x17b416=tn(_0x509a99);if(_0x509a99[_0x3824('0x7')]('<')){if(_0x47c4c5>=_0x2aefa1){const _0x36d943=_0x509a99[_0x3824('0xa')](/[a-zA-Z]+/)[0x0];_0x509a99['startsWith']('</')?(_0x51bcac['length']&&(_0x509a99=''),_0x51bcac[_0x3824('0xb')]()):(_0x51bcac[_0x3824('0x8')](_0x36d943),_0x509a99='');}}else{if(_0x47c4c5>=_0x2aefa1)_0x509a99='';else{if(_0x47c4c5+_0x17b416[_0x3824('0x1')]>=_0x2aefa1){let _0x1fc792=_0x2aefa1-_0x47c4c5;if('\x20'===_0x17b416[_0x1fc792-0x1])_0x1fc792--;else{const _0x4fa114=_0x17b416['slice'](_0x1fc792)[_0x3824('0x3')]('\x20');-0x1!==_0x4fa114?_0x1fc792+=_0x4fa114:_0x1fc792=_0x509a99[_0x3824('0x1')];}_0x509a99=_0x17b416[_0x3824('0x9')](0x0,_0x1fc792)[_0x3824('0x2')]('')+_0x3b3ae7,_0x47c4c5=_0x2aefa1;}else _0x47c4c5+=_0x17b416['length'];}}_0x12e286[_0x20cd59]=_0x509a99;}return _0x12e286[_0x3824('0x2')]('\x0a')[_0x3824('0x5')](/\n/g,'');}function tn(_0x4e5daa){const _0x3bb9b3=[];for(let _0x27e76b=0x0;_0x27e76b<_0x4e5daa['length'];_0x27e76b++){const _0x1493b6=_0x4e5daa[_0x3824('0x0')](_0x27e76b)['match'](/^&[a-z0-9#]+;/);if(_0x1493b6){const _0x1964be=_0x1493b6[0x0];_0x3bb9b3['push'](_0x1964be),_0x27e76b+=_0x1964be[_0x3824('0x1')]-0x1;}else _0x3bb9b3[_0x3824('0x8')](_0x4e5daa[_0x27e76b]);}return _0x3bb9b3;}