@ckeditor/ckeditor5-collaboration-core 38.2.0-alpha.0 → 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 (38) hide show
  1. package/README.md +0 -1
  2. package/package.json +3 -4
  3. package/src/augmentation.d.ts +4 -0
  4. package/src/augmentation.js +1 -1
  5. package/src/collaborationhistory.d.ts +4 -0
  6. package/src/collaborationhistory.js +1 -1
  7. package/src/collaborationoperation.d.ts +4 -0
  8. package/src/collaborationoperation.js +1 -1
  9. package/src/config.d.ts +4 -0
  10. package/src/config.js +1 -1
  11. package/src/index.d.ts +5 -0
  12. package/src/index.js +2 -2
  13. package/src/permissions.d.ts +4 -0
  14. package/src/permissions.js +2 -2
  15. package/src/suggestionstyles.d.ts +4 -0
  16. package/src/suggestionstyles.js +1 -1
  17. package/src/users/view/userview.d.ts +4 -0
  18. package/src/users/view/userview.js +2 -2
  19. package/src/users.d.ts +4 -0
  20. package/src/users.js +2 -2
  21. package/src/utils/common-translations.d.ts +4 -0
  22. package/src/utils/common-translations.js +2 -2
  23. package/src/utils/confirmmixin.d.ts +4 -0
  24. package/src/utils/confirmmixin.js +2 -2
  25. package/src/utils/confirmview.d.ts +4 -0
  26. package/src/utils/confirmview.js +2 -2
  27. package/src/utils/getdatetimeformatter.d.ts +2 -2
  28. package/src/utils/getdatetimeformatter.js +2 -2
  29. package/src/utils/getmarkerdomelement.d.ts +2 -1
  30. package/src/utils/getmarkerdomelement.js +2 -2
  31. package/src/utils/hashobject.d.ts +4 -0
  32. package/src/utils/hashobject.js +2 -2
  33. package/src/utils/sanitizeEditorConfig.d.ts +15 -0
  34. package/src/utils/sanitizeEditorConfig.js +23 -0
  35. package/src/utils/trim-html.d.ts +4 -0
  36. package/src/utils/trim-html.js +2 -2
  37. package/theme/icons/notification.svg +2 -2
  38. package/theme/suggestionmarker.css +2 -2
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # CKEditor 5 collaboration core
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-collaboration-core.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-collaboration-core)
4
- ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-collaboration-core)
5
4
 
6
5
  CKEditor 5 collaboration core is a low-level API that provides base features to support multiple users working together in a rich text editor. It is used in collaborative features such as [comments](https://ckeditor.com/collaboration/comments/), [track changes](https://ckeditor.com/collaboration/track-changes/) or [real-time collaboration](https://ckeditor.com/collaboration/real-time/) in CKEditor 5.
7
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "38.2.0-alpha.0",
3
+ "version": "39.0.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -30,10 +30,9 @@
30
30
  "framework"
31
31
  ],
32
32
  "main": "src/index.js",
33
- "type": "module",
34
33
  "dependencies": {
35
- "ckeditor5": "38.2.0-alpha.0",
36
- "date-fns": "^2.17.0"
34
+ "ckeditor5": "39.0.0",
35
+ "date-fns": "2.30.0"
37
36
  },
38
37
  "engines": {
39
38
  "node": ">=16.0.0",
@@ -1,3 +1,7 @@
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
  import type { LocaleConfig, Users } from './index';
2
6
  import type { RealTimeCollaborationConfig } from './config';
3
7
  declare module '@ckeditor/ckeditor5-core' {
@@ -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
  *
@@ -1,3 +1,7 @@
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 collaboration-core/collaborationhistory
3
7
  * @publicApi
@@ -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
  *
@@ -1,3 +1,7 @@
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 collaboration-core/collaborationoperation
3
7
  * @publicApi
@@ -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/config.d.ts CHANGED
@@ -1,3 +1,7 @@
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 collaboration-core/config
3
7
  * @publicApi
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,3 +1,7 @@
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
  export { default as Permissions } from './permissions';
2
6
  export { default as Users, type User } from './users';
3
7
  export { default as UserView } from './users/view/userview';
@@ -6,6 +10,7 @@ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from '
6
10
  export { default as trimHtml } from './utils/trim-html';
7
11
  export { default as ConfirmMixin } from './utils/confirmmixin';
8
12
  export { default as hashObject } from './utils/hashobject';
13
+ export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
9
14
  export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
10
15
  export { default as CollaborationHistory } from './collaborationhistory';
11
16
  export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
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 Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export*from'./suggestionstyles';import'./augmentation';
@@ -1,3 +1,7 @@
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 collaboration-core/permissions
3
7
  * @publicApi
@@ -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 _0x4a91=['plugins','has','Permissions','isEnabled','get','config','pluginName','commands','document:write','enableReadOnlyMode','comment:admin','addCommentThread','no-permissions','editors','CommentsOnly','permissions-set-permissions-invalid-channel-id','includes','context','clearForceDisabled','find','CommentsRepository','noPermissions','collaboration.channelId','setPermissions'];(function(_0x59d110,_0x4a9174){const _0x31cac2=function(_0xf1529){while(--_0xf1529){_0x59d110['push'](_0x59d110['shift']());}};_0x31cac2(++_0x4a9174);}(_0x4a91,0x1dd));const _0x31ca=function(_0x59d110,_0x4a9174){_0x59d110=_0x59d110-0x0;let _0x31cac2=_0x4a91[_0x59d110];return _0x31cac2;};import{ContextPlugin as _0x1fe532,Editor as _0x2e7b4c}from'ckeditor5/src/core';import{CKEditorError as _0x3e2f30}from'ckeditor5/src/utils';export default class n extends _0x1fe532{static get[_0x31ca('0x9')](){return _0x31ca('0x5');}[_0x31ca('0x2')](_0x48b1ac,_0x5e6763){let _0x222cd6;if(_0x5e6763||(_0x5e6763=this['context'][_0x31ca('0x8')][_0x31ca('0x7')]('collaboration.channelId')),this[_0x31ca('0x14')][_0x31ca('0x8')][_0x31ca('0x7')](_0x31ca('0x1'))==_0x5e6763?_0x222cd6=this[_0x31ca('0x14')]:_0x31ca('0x10')in this[_0x31ca('0x14')]&&this[_0x31ca('0x14')][_0x31ca('0x10')]&&(_0x222cd6=this['context'][_0x31ca('0x10')][_0x31ca('0x16')](_0x2c3b08=>_0x2c3b08['config'][_0x31ca('0x7')](_0x31ca('0x1'))==_0x5e6763)),!_0x222cd6)throw new _0x3e2f30(_0x31ca('0x12'),null);const _0x23585d=_0x222cd6[_0x31ca('0x3')],_0x4606ae=_0x23585d[_0x31ca('0x4')](_0x31ca('0x17'))?_0x23585d[_0x31ca('0x7')](_0x31ca('0x17')):void 0x0,_0x193142=_0x23585d['has'](_0x31ca('0x11'))&&_0x23585d[_0x31ca('0x7')]('CommentsOnly'),_0x59c6fa=_0x48b1ac[_0x31ca('0x13')](_0x31ca('0xb')),_0x1c18fd=_0x48b1ac[_0x31ca('0x13')]('comment:modify_all'),_0x1ac3dc=_0x48b1ac[_0x31ca('0x13')](_0x31ca('0xd')),_0xa1fe94=_0x48b1ac[_0x31ca('0x13')]('comment:write'),_0x32d991=_0xa1fe94||_0x1ac3dc,_0x43f60f=_0x32d991||_0x1c18fd,_0xb51786=_0x59c6fa||_0x32d991;(_0x193142&&(_0x193142[_0x31ca('0x6')]=!_0x59c6fa&&_0x43f60f),_0x222cd6 instanceof _0x2e7b4c)&&(!(_0x59c6fa||_0x43f60f&&_0x4606ae)?_0x222cd6[_0x31ca('0xc')](_0x31ca('0xf')):_0x222cd6['disableReadOnlyMode']('no-permissions'));if(_0x4606ae){_0x4606ae[_0x31ca('0x2')]({'admin':_0x1ac3dc,'modifyAll':_0x1c18fd,'write':_0xa1fe94,'resolve':_0xb51786},_0x5e6763);const _0x437c05=_0x222cd6 instanceof _0x2e7b4c&&_0x222cd6[_0x31ca('0xa')][_0x31ca('0x7')](_0x31ca('0xe'));_0x437c05&&(_0x32d991?_0x437c05[_0x31ca('0x15')]('noPermissions'):_0x437c05['forceDisabled'](_0x31ca('0x0')));}}}
23
+ const _0x408f=['setPermissions','editors','Permissions','collaboration.channelId','comment:admin','find','comment:modify_all','commands','CommentsRepository','has','forceDisabled','plugins','context','noPermissions','no-permissions','includes','pluginName','config','CommentsOnly','get','permissions-set-permissions-invalid-channel-id','clearForceDisabled'];(function(_0x460b8d,_0x408fac){const _0x5106de=function(_0x25afa9){while(--_0x25afa9){_0x460b8d['push'](_0x460b8d['shift']());}};_0x5106de(++_0x408fac);}(_0x408f,0x18a));const _0x5106=function(_0x460b8d,_0x408fac){_0x460b8d=_0x460b8d-0x0;let _0x5106de=_0x408f[_0x460b8d];return _0x5106de;};import{ContextPlugin as _0x95b39a,Editor as _0x12cc52}from'ckeditor5/src/core';import{CKEditorError as _0x5230b7}from'ckeditor5/src/utils';export default class n extends _0x95b39a{static get[_0x5106('0x12')](){return _0x5106('0x4');}[_0x5106('0x2')](_0x5e87a1,_0x2eac34){let _0x12401d;if(_0x2eac34||(_0x2eac34=this[_0x5106('0xe')][_0x5106('0x13')][_0x5106('0x15')]('collaboration.channelId')),this[_0x5106('0xe')][_0x5106('0x13')][_0x5106('0x15')]('collaboration.channelId')==_0x2eac34?_0x12401d=this[_0x5106('0xe')]:_0x5106('0x3')in this[_0x5106('0xe')]&&this[_0x5106('0xe')][_0x5106('0x3')]&&(_0x12401d=this['context'][_0x5106('0x3')][_0x5106('0x7')](_0x5de7e8=>_0x5de7e8[_0x5106('0x13')][_0x5106('0x15')](_0x5106('0x5'))==_0x2eac34)),!_0x12401d)throw new _0x5230b7(_0x5106('0x0'),null);const _0x42eb88=_0x12401d[_0x5106('0xd')],_0x598c59=_0x42eb88[_0x5106('0xb')](_0x5106('0xa'))?_0x42eb88[_0x5106('0x15')]('CommentsRepository'):void 0x0,_0x197bbe=_0x42eb88[_0x5106('0xb')]('CommentsOnly')&&_0x42eb88[_0x5106('0x15')](_0x5106('0x14')),_0x3a5f90=_0x5e87a1[_0x5106('0x11')]('document:write'),_0x54687f=_0x5e87a1[_0x5106('0x11')](_0x5106('0x8')),_0x231983=_0x5e87a1[_0x5106('0x11')](_0x5106('0x6')),_0x131b78=_0x5e87a1[_0x5106('0x11')]('comment:write'),_0x28711a=_0x131b78||_0x231983,_0x55791d=_0x28711a||_0x54687f,_0x3359e8=_0x3a5f90||_0x28711a;(_0x197bbe&&(_0x197bbe['isEnabled']=!_0x3a5f90&&_0x55791d),_0x12401d instanceof _0x12cc52)&&(!(_0x3a5f90||_0x55791d&&_0x598c59)?_0x12401d['enableReadOnlyMode'](_0x5106('0x10')):_0x12401d['disableReadOnlyMode'](_0x5106('0x10')));if(_0x598c59){_0x598c59[_0x5106('0x2')]({'admin':_0x231983,'modifyAll':_0x54687f,'write':_0x131b78,'resolve':_0x3359e8},_0x2eac34);const _0x51a292=_0x12401d instanceof _0x12cc52&&_0x12401d[_0x5106('0x9')][_0x5106('0x15')]('addCommentThread');_0x51a292&&(_0x28711a?_0x51a292[_0x5106('0x1')](_0x5106('0xf')):_0x51a292[_0x5106('0xc')](_0x5106('0xf')));}}}
@@ -1,3 +1,7 @@
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
  import '../theme/suggestion.css';
2
6
  import '../theme/suggestionmarker.css';
3
7
  import '../theme/integrations/image.css';
@@ -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
  *
@@ -1,3 +1,7 @@
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 collaboration-core/users/view/userview
3
7
  */
@@ -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 _0x358f=['extendTemplate','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__img','initials','avatar','notificationView','ck-user','url(\x27','setTemplate','ck-user__avatar','ck\x20ck-user__name','push','content','name','div','isAnonymous'];(function(_0x2530f9,_0x358f4b){const _0x4908c7=function(_0x51ef4a){while(--_0x51ef4a){_0x2530f9['push'](_0x2530f9['shift']());}};_0x4908c7(++_0x358f4b);}(_0x358f,0x100));const _0x4908=function(_0x2530f9,_0x358f4b){_0x2530f9=_0x2530f9-0x0;let _0x4908c7=_0x358f[_0x2530f9];return _0x4908c7;};import{View as _0x1f9414,IconView as _0x4e5f42}from'ckeditor5/src/ui';import _0x1479f1 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class $ extends _0x1f9414{constructor(_0x1f9104,_0x46f372,_0x3c914e){super(_0x1f9104),this[_0x4908('0xd')]=_0x46f372['name'],this['notificationView']=null;const _0x5ce546=['ck',_0x4908('0x2')];if(_0x46f372[_0x4908('0xf')]&&_0x5ce546[_0x4908('0xb')]('ck-user__anonymous'),_0x46f372[_0x4908('0x4')]&&_0x5ce546['push'](_0x4908('0x9')),_0x3c914e){const _0x3a0022=new _0x4e5f42();_0x3a0022[_0x4908('0x0')]({'attributes':{'class':['ck-user__icon']}}),_0x3a0022[_0x4908('0xc')]=_0x1479f1,this[_0x4908('0x5')]={'tag':_0x4908('0xe'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x3c914e},'children':[_0x3a0022]};}const _0x4b550b=[{'tag':_0x4908('0xe'),'attributes':{'class':_0x5ce546,'style':{'background-image':_0x46f372[_0x4908('0x4')]?_0x4908('0x7')+_0x46f372[_0x4908('0x4')]+'\x27)':''}}},{'tag':_0x4908('0xe'),'attributes':{'class':_0x46f372['avatar']?_0x4908('0x1'):_0x4908('0xa')},'children':[{'text':_0x46f372[_0x4908('0x3')]}]}];this[_0x4908('0x5')]&&_0x4b550b[_0x4908('0xb')](this['notificationView']),this[_0x4908('0x8')]({'tag':_0x4908('0xe'),'attributes':{'class':['ck',_0x4908('0x6')],'data-user-id':_0x46f372['id']},'children':_0x4b550b});}}
23
+ const _0x5d29=['isAnonymous','name','div','url(\x27','ck-user__img','ck\x20ck-user__name','avatar','ck-user','setTemplate','notificationView','extendTemplate','push','ck-user__anonymous','ck\x20ck-user__name\x20ck-user__name--hidden','ck-user__notification'];(function(_0x16321e,_0x5d299d){const _0xf610b8=function(_0x3d63ac){while(--_0x3d63ac){_0x16321e['push'](_0x16321e['shift']());}};_0xf610b8(++_0x5d299d);}(_0x5d29,0xc1));const _0xf610=function(_0x16321e,_0x5d299d){_0x16321e=_0x16321e-0x0;let _0xf610b8=_0x5d29[_0x16321e];return _0xf610b8;};import{View as _0x91e063,IconView as _0x6487a6}from'ckeditor5/src/ui';import _0x231592 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class B extends _0x91e063{constructor(_0x44464a,_0x1f31d0,_0x88caaa){super(_0x44464a),this[_0xf610('0x3')]=_0x1f31d0[_0xf610('0x3')],this[_0xf610('0xb')]=null;const _0x1593c7=['ck',_0xf610('0x6')];if(_0x1f31d0[_0xf610('0x2')]&&_0x1593c7[_0xf610('0xd')](_0xf610('0xe')),_0x1f31d0[_0xf610('0x8')]&&_0x1593c7[_0xf610('0xd')]('ck-user__avatar'),_0x88caaa){const _0x23b927=new _0x6487a6();_0x23b927[_0xf610('0xc')]({'attributes':{'class':['ck-user__icon']}}),_0x23b927['content']=_0x231592,this[_0xf610('0xb')]={'tag':_0xf610('0x4'),'attributes':{'class':['ck',_0xf610('0x1')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x88caaa},'children':[_0x23b927]};}const _0x56e764=[{'tag':'div','attributes':{'class':_0x1593c7,'style':{'background-image':_0x1f31d0[_0xf610('0x8')]?_0xf610('0x5')+_0x1f31d0[_0xf610('0x8')]+'\x27)':''}}},{'tag':_0xf610('0x4'),'attributes':{'class':_0x1f31d0['avatar']?_0xf610('0x0'):_0xf610('0x7')},'children':[{'text':_0x1f31d0['initials']}]}];this[_0xf610('0xb')]&&_0x56e764[_0xf610('0xd')](this[_0xf610('0xb')]),this[_0xf610('0xa')]({'tag':'div','attributes':{'class':['ck',_0xf610('0x9')],'data-user-id':_0x1f31d0['id']},'children':_0x56e764});}}
package/src/users.d.ts CHANGED
@@ -1,3 +1,7 @@
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 collaboration-core/users
3
7
  * @publicApi
package/src/users.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
- const _0x2b02=['trial-license-key-reached-limit-revisions','users-me-missing-user','licenseKeyInvalid','addUser','define','getBackgroundColorClass','toUpperCase','context','licenseKey','defineMe','split','_getInitial','locale','users','init','initials','get','Users','Anonymous','licenseKeyValid','_getNextColor','users.colorsCount','_addAnonymousUser','licenseKeyTrialLimit:time','destroy','useAnonymousUser','_lastColor','includes','users.anonymousUserId','_isAnonymous','users-add-duplicated-id','users-add-invalid-id','licenseKeyTrialLimit:operations','charAt','trial-license-key-reached-limit-time','licenseKeyTrialLimit:revisions','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','_id','getMarkerClass','_licenseKeyCheckInterval','ck-user__selection--','avatar','pluginName','color','licenseKeyTrial','config','_locale','requires','name','getOperationAuthor','getUser','info','getSelectionClass','_myId'];(function(_0x5023d3,_0x2b0212){const _0x160393=function(_0x10382b){while(--_0x10382b){_0x5023d3['push'](_0x5023d3['shift']());}};_0x160393(++_0x2b0212);}(_0x2b02,0x1b4));const _0x1603=function(_0x5023d3,_0x2b0212){_0x5023d3=_0x5023d3-0x0;let _0x160393=_0x2b02[_0x5023d3];return _0x160393;};import{ContextPlugin as _0x345336}from'ckeditor5/src/core';import{Collection as _0x16c54f,CKEditorError as _0x3d4de4}from'ckeditor5/src/utils';import _0x252653 from'./permissions';import{getTranslation as _0x54c197}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x345336{static get[_0x1603('0x26')](){return _0x1603('0xd');}static get[_0x1603('0x2b')](){return[_0x252653];}constructor(_0x4210e5){super(_0x4210e5),this[_0x1603('0x3')][_0x1603('0x29')][_0x1603('0x0')](_0x1603('0x18'),'anonymous-user'),this['context'][_0x1603('0x29')][_0x1603('0x0')]('users.colorsCount',0x8),this[_0x1603('0x9')]=new _0x16c54f(),this[_0x1603('0x2a')]=_0x4210e5[_0x1603('0x8')],this[_0x1603('0x23')]=null,this[_0x1603('0x16')]=0x0,this[_0x1603('0x31')]=null,this['decorate']('getOperationAuthor');}[_0x1603('0xa')](){const _0x3f2032=this[_0x1603('0x3')];this['licenseKey']=_0x3f2032[_0x1603('0x29')][_0x1603('0xc')](_0x1603('0x4'));const _0x14eb4d=['licenseKeyTrial',_0x1603('0x34'),_0x1603('0xf'),_0x1603('0x1c'),_0x1603('0x13'),_0x1603('0x1f')];this[_0x1603('0x23')]=setInterval(()=>{let _0x2bfaa9;for(const _0x3dc7cd in _0x3f2032){const _0x54d287=_0x3f2032[_0x3dc7cd];if(_0x14eb4d[_0x1603('0x17')](_0x54d287)){delete _0x3f2032[_0x3dc7cd],_0x2bfaa9=_0x54d287;break;}}if(_0x1603('0x34')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4('invalid-license-key',null);if(_0x1603('0x28')===_0x2bfaa9&&console[_0x1603('0x2f')](_0x1603('0x20')),_0x1603('0x1c')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4('trial-license-key-reached-limit-changes',null);if(_0x1603('0x13')===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4(_0x1603('0x1e'),null);if('licenseKeyTrialLimit:revisions'===_0x2bfaa9)throw clearInterval(this[_0x1603('0x23')]),new _0x3d4de4(_0x1603('0x32'),null);_0x1603('0xf')===_0x2bfaa9&&clearInterval(this[_0x1603('0x23')]);},0x3e8),this[_0x1603('0x12')]();}get['me'](){return null==this[_0x1603('0x31')]?null:this[_0x1603('0x2e')](this[_0x1603('0x31')]);}[_0x1603('0x35')]({id:_0x458217,name:_0x5d5315,..._0x25d49e}){if(!_0x458217||'string'!=typeof _0x458217)throw new _0x3d4de4(_0x1603('0x1b'));if(this[_0x1603('0x9')]['has'](_0x458217))throw new _0x3d4de4(_0x1603('0x1a'),null,{'id':_0x458217});const _0x50a848={..._0x25d49e,'id':_0x458217,'name':a(this['_locale'],_0x5d5315),'color':this[_0x1603('0x10')]()};_0x50a848[_0x1603('0x2c')]=a(this[_0x1603('0x2a')],_0x50a848[_0x1603('0x2c')]);const _0x2e64c9=new User(_0x50a848);return this[_0x1603('0x9')]['add'](_0x2e64c9),_0x2e64c9;}[_0x1603('0x2e')](_0x5d5584){return this[_0x1603('0x9')]['get'](_0x5d5584);}[_0x1603('0x15')](){const _0x4dd8e5=this['context']['config'][_0x1603('0xc')](_0x1603('0x18'));this[_0x1603('0x31')]||this[_0x1603('0x5')](_0x4dd8e5);}[_0x1603('0x5')](_0x5b87b0){if(this['_myId'])throw new _0x3d4de4('users-me-already-defined',null);if(!this['getUser'](_0x5b87b0))throw new _0x3d4de4(_0x1603('0x33'),null);this[_0x1603('0x31')]=_0x5b87b0;}[_0x1603('0x2d')](){return this['me'];}[_0x1603('0x14')](){super[_0x1603('0x14')](),clearInterval(this[_0x1603('0x23')]);}[_0x1603('0x10')](){const _0x305d7a=this['context'][_0x1603('0x29')]['get'](_0x1603('0x11'));return this[_0x1603('0x16')]>=_0x305d7a&&(this[_0x1603('0x16')]=0x0),new u(this[_0x1603('0x16')]++);}[_0x1603('0x12')](){const _0x939ddc=this['context'][_0x1603('0x29')][_0x1603('0xc')](_0x1603('0x18'));this[_0x1603('0x35')]({'id':_0x939ddc,'name':_0x54c197(this[_0x1603('0x2a')],_0x1603('0xe'))})[_0x1603('0x19')]=!0x0;}}export class User{constructor(_0x5a166e){this['id']=_0x5a166e['id'],this[_0x1603('0x27')]=_0x5a166e[_0x1603('0x27')],this[_0x1603('0x2c')]=_0x5a166e[_0x1603('0x2c')],this[_0x1603('0x25')]=_0x5a166e[_0x1603('0x25')],this[_0x1603('0x19')]=!0x1;}get['isAnonymous'](){return this[_0x1603('0x19')];}get[_0x1603('0xb')](){const _0x2b38fe=this[_0x1603('0x2c')][_0x1603('0x6')]('\x20');return 0x1===_0x2b38fe['length']?this[_0x1603('0x7')](_0x2b38fe[0x0]):this['_getInitial'](_0x2b38fe[0x0])+this[_0x1603('0x7')](_0x2b38fe[_0x2b38fe['length']-0x1]);}[_0x1603('0x7')](_0x1f8617){return _0x1f8617[_0x1603('0x1d')](0x0)[_0x1603('0x2')]();}}function a(_0x39dd7d,_0x12cc0b=''){return''==(_0x12cc0b=_0x12cc0b['trim']())?_0x54c197(_0x39dd7d,_0x1603('0xe')):_0x12cc0b;}class u{constructor(_0x521afc){this['_id']=_0x521afc;}[_0x1603('0x1')](){return'ck-user__bg-color--'+this[_0x1603('0x21')];}[_0x1603('0x30')](){return _0x1603('0x24')+this[_0x1603('0x21')];}[_0x1603('0x22')](){return'ck-user__marker--'+this[_0x1603('0x21')];}}
23
+ const _0x2104=['avatar','trial-license-key-reached-limit-revisions','licenseKey','Users','users.anonymousUserId','isAnonymous','get','length','Anonymous','requires','trial-license-key-reached-limit-time','_locale','define','includes','pluginName','_addAnonymousUser','name','getOperationAuthor','licenseKeyTrialLimit:operations','locale','ck-user__marker--','ck-user__bg-color--','defineMe','color','_isAnonymous','licenseKeyTrialLimit:revisions','decorate','trim','destroy','licenseKeyTrial','useAnonymousUser','_licenseKeyCheckInterval','licenseKeyValid','add','getBackgroundColorClass','config','licenseKeyTrialLimit:time','charAt','users-add-duplicated-id','_getInitial','_getNextColor','invalid-license-key','getUser','_myId','users','info','string','users-add-invalid-id','split','_id','getSelectionClass','users.colorsCount','_lastColor','context','addUser','trial-license-key-reached-limit-changes'];(function(_0x751277,_0x210459){const _0xf78630=function(_0x82ba1d){while(--_0x82ba1d){_0x751277['push'](_0x751277['shift']());}};_0xf78630(++_0x210459);}(_0x2104,0x82));const _0xf786=function(_0x751277,_0x210459){_0x751277=_0x751277-0x0;let _0xf78630=_0x2104[_0x751277];return _0xf78630;};import{ContextPlugin as _0x2c77e9}from'ckeditor5/src/core';import{Collection as _0x447847,CKEditorError as _0x587aad}from'ckeditor5/src/utils';import _0xb094c3 from'./permissions';import{getTranslation as _0x442064}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x2c77e9{static get[_0xf786('0x34')](){return _0xf786('0x29');}static get[_0xf786('0x2f')](){return[_0xb094c3];}constructor(_0x4402df){super(_0x4402df),this[_0xf786('0x23')][_0xf786('0x11')]['define'](_0xf786('0x2a'),'anonymous-user'),this[_0xf786('0x23')][_0xf786('0x11')][_0xf786('0x32')]('users.colorsCount',0x8),this[_0xf786('0x1a')]=new _0x447847(),this[_0xf786('0x31')]=_0x4402df[_0xf786('0x1')],this[_0xf786('0xd')]=null,this[_0xf786('0x22')]=0x0,this[_0xf786('0x19')]=null,this[_0xf786('0x8')]('getOperationAuthor');}['init'](){const _0x1371dd=this['context'];this[_0xf786('0x28')]=_0x1371dd[_0xf786('0x11')]['get'](_0xf786('0x28'));const _0x3dbcce=[_0xf786('0xb'),'licenseKeyInvalid','licenseKeyValid',_0xf786('0x0'),_0xf786('0x12'),_0xf786('0x7')];this[_0xf786('0xd')]=setInterval(()=>{let _0x298324;for(const _0x1242e3 in _0x1371dd){const _0x43d8c2=_0x1371dd[_0x1242e3];if(_0x3dbcce[_0xf786('0x33')](_0x43d8c2)){delete _0x1371dd[_0x1242e3],_0x298324=_0x43d8c2;break;}}if('licenseKeyInvalid'===_0x298324)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x587aad(_0xf786('0x17'),null);if(_0xf786('0xb')===_0x298324&&console[_0xf786('0x1b')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20collaboration\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),_0xf786('0x0')===_0x298324)throw clearInterval(this[_0xf786('0xd')]),new _0x587aad(_0xf786('0x25'),null);if(_0xf786('0x12')===_0x298324)throw clearInterval(this[_0xf786('0xd')]),new _0x587aad(_0xf786('0x30'),null);if('licenseKeyTrialLimit:revisions'===_0x298324)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x587aad(_0xf786('0x27'),null);_0xf786('0xe')===_0x298324&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this[_0xf786('0x35')]();}get['me'](){return null==this[_0xf786('0x19')]?null:this[_0xf786('0x18')](this[_0xf786('0x19')]);}['addUser']({id:_0x23e17e,name:_0x8060f8,..._0x3a37f1}){if(!_0x23e17e||_0xf786('0x1c')!=typeof _0x23e17e)throw new _0x587aad(_0xf786('0x1d'));if(this[_0xf786('0x1a')]['has'](_0x23e17e))throw new _0x587aad(_0xf786('0x14'),null,{'id':_0x23e17e});const _0x1bff04={..._0x3a37f1,'id':_0x23e17e,'name':a(this[_0xf786('0x31')],_0x8060f8),'color':this[_0xf786('0x16')]()};_0x1bff04[_0xf786('0x36')]=a(this['_locale'],_0x1bff04['name']);const _0x3eeafe=new User(_0x1bff04);return this[_0xf786('0x1a')][_0xf786('0xf')](_0x3eeafe),_0x3eeafe;}[_0xf786('0x18')](_0x31d33b){return this[_0xf786('0x1a')][_0xf786('0x2c')](_0x31d33b);}[_0xf786('0xc')](){const _0x18ae9f=this[_0xf786('0x23')][_0xf786('0x11')][_0xf786('0x2c')](_0xf786('0x2a'));this[_0xf786('0x19')]||this[_0xf786('0x4')](_0x18ae9f);}[_0xf786('0x4')](_0x5262ba){if(this['_myId'])throw new _0x587aad('users-me-already-defined',null);if(!this['getUser'](_0x5262ba))throw new _0x587aad('users-me-missing-user',null);this[_0xf786('0x19')]=_0x5262ba;}[_0xf786('0x37')](){return this['me'];}[_0xf786('0xa')](){super[_0xf786('0xa')](),clearInterval(this[_0xf786('0xd')]);}[_0xf786('0x16')](){const _0x6d0c1e=this[_0xf786('0x23')][_0xf786('0x11')][_0xf786('0x2c')](_0xf786('0x21'));return this[_0xf786('0x22')]>=_0x6d0c1e&&(this[_0xf786('0x22')]=0x0),new u(this[_0xf786('0x22')]++);}['_addAnonymousUser'](){const _0x40c358=this[_0xf786('0x23')][_0xf786('0x11')][_0xf786('0x2c')](_0xf786('0x2a'));this[_0xf786('0x24')]({'id':_0x40c358,'name':_0x442064(this[_0xf786('0x31')],_0xf786('0x2e'))})[_0xf786('0x6')]=!0x0;}}export class User{constructor(_0x5c6efc){this['id']=_0x5c6efc['id'],this[_0xf786('0x5')]=_0x5c6efc['color'],this[_0xf786('0x36')]=_0x5c6efc[_0xf786('0x36')],this[_0xf786('0x26')]=_0x5c6efc['avatar'],this[_0xf786('0x6')]=!0x1;}get[_0xf786('0x2b')](){return this[_0xf786('0x6')];}get['initials'](){const _0x10b0db=this['name'][_0xf786('0x1e')]('\x20');return 0x1===_0x10b0db[_0xf786('0x2d')]?this[_0xf786('0x15')](_0x10b0db[0x0]):this['_getInitial'](_0x10b0db[0x0])+this['_getInitial'](_0x10b0db[_0x10b0db['length']-0x1]);}['_getInitial'](_0x401b75){return _0x401b75[_0xf786('0x13')](0x0)['toUpperCase']();}}function a(_0x5c4167,_0x529001=''){return''==(_0x529001=_0x529001[_0xf786('0x9')]())?_0x442064(_0x5c4167,_0xf786('0x2e')):_0x529001;}class u{constructor(_0x7c8565){this[_0xf786('0x1f')]=_0x7c8565;}[_0xf786('0x10')](){return _0xf786('0x3')+this[_0xf786('0x1f')];}[_0xf786('0x20')](){return'ck-user__selection--'+this[_0xf786('0x1f')];}['getMarkerClass'](){return _0xf786('0x2')+this[_0xf786('0x1f')];}}
@@ -1,3 +1,7 @@
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 collaboration-core/utils/common-translations
3
7
  */
@@ -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(_0x3bb6da,_0x44fff9){const t=_0x3bb6da['t'];switch(_0x44fff9){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
23
+ export function getTranslation(_0x555bce,_0x4bda92){const t=_0x555bce['t'];switch(_0x4bda92){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');default:return'';}}
@@ -1,3 +1,7 @@
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/ui/view/confirmmixin
3
7
  */
@@ -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 _0x5268=['element','appendChild','deregisterChild','_removeConfirm','focus','remove','message','submit','fire','destroy','cancel','locale','confirmView','isConfirm','once','registerChild','cancelConfirm'];(function(_0x2e41d9,_0x5268e6){var _0x56fb17=function(_0x422b16){while(--_0x422b16){_0x2e41d9['push'](_0x2e41d9['shift']());}};_0x56fb17(++_0x5268e6);}(_0x5268,0x126));var _0x56fb=function(_0x2e41d9,_0x5268e6){_0x2e41d9=_0x2e41d9-0x0;var _0x56fb17=_0x5268[_0x2e41d9];return _0x56fb17;};import _0x32c62e from'./confirmview';export default function m(_0x3fb4ec){return class extends _0x3fb4ec{['showConfirm'](_0x38b694,_0x2d1b94){return this[_0x56fb('0x7')]=new _0x32c62e(this[_0x56fb('0x6')]),this[_0x56fb('0x7')]['render'](),this[_0x56fb('0x7')][_0x56fb('0x1')]=_0x38b694,this[_0x56fb('0x7')][_0x56fb('0x9')](_0x56fb('0x5'),()=>{this['_removeConfirm']();}),this[_0x56fb('0x7')]['once'](_0x56fb('0x2'),()=>{this['_removeConfirm']();}),_0x2d1b94[_0x56fb('0xd')](this[_0x56fb('0x7')]['element']),this[_0x56fb('0xa')](this[_0x56fb('0x7')]),this[_0x56fb('0xc')][_0x56fb('0x10')](),this['set'](_0x56fb('0x8'),!0x0),new Promise(_0xe23dc9=>this['confirmView']['on'](_0x56fb('0x2'),_0xe23dc9));}[_0x56fb('0xb')](){this[_0x56fb('0x8')]&&this[_0x56fb('0x7')][_0x56fb('0x3')](_0x56fb('0x5'));}[_0x56fb('0xf')](){this['element']&&this[_0x56fb('0x7')]&&this['confirmView'][_0x56fb('0xc')]&&(this[_0x56fb('0xc')][_0x56fb('0x10')](),this[_0x56fb('0x7')]['element'][_0x56fb('0x0')](),this[_0x56fb('0xe')](this[_0x56fb('0x7')]),this[_0x56fb('0x8')]=!0x1,this[_0x56fb('0x7')][_0x56fb('0x4')](),this[_0x56fb('0x7')]=void 0x0);}};}
23
+ var _0x4928=['cancel','once','fire','confirmView','remove','deregisterChild','isConfirm','registerChild','submit','appendChild','cancelConfirm','showConfirm','locale','_removeConfirm','render','element','set','focus'];(function(_0x3a5be4,_0x492886){var _0x4dd990=function(_0x260e01){while(--_0x260e01){_0x3a5be4['push'](_0x3a5be4['shift']());}};_0x4dd990(++_0x492886);}(_0x4928,0x159));var _0x4dd9=function(_0x3a5be4,_0x492886){_0x3a5be4=_0x3a5be4-0x0;var _0x4dd990=_0x4928[_0x3a5be4];return _0x4dd990;};import _0x1c07b3 from'./confirmview';export default function m(_0x411661){return class extends _0x411661{[_0x4dd9('0x8')](_0x3f3a41,_0x28e09a){return this[_0x4dd9('0x0')]=new _0x1c07b3(this[_0x4dd9('0x9')]),this[_0x4dd9('0x0')][_0x4dd9('0xb')](),this[_0x4dd9('0x0')]['message']=_0x3f3a41,this[_0x4dd9('0x0')][_0x4dd9('0x10')](_0x4dd9('0xf'),()=>{this['_removeConfirm']();}),this[_0x4dd9('0x0')]['once'](_0x4dd9('0x5'),()=>{this[_0x4dd9('0xa')]();}),_0x28e09a[_0x4dd9('0x6')](this[_0x4dd9('0x0')][_0x4dd9('0xc')]),this[_0x4dd9('0x4')](this['confirmView']),this[_0x4dd9('0xc')]['focus'](),this[_0x4dd9('0xd')](_0x4dd9('0x3'),!0x0),new Promise(_0x50dc16=>this[_0x4dd9('0x0')]['on'](_0x4dd9('0x5'),_0x50dc16));}[_0x4dd9('0x7')](){this[_0x4dd9('0x3')]&&this[_0x4dd9('0x0')][_0x4dd9('0x11')](_0x4dd9('0xf'));}['_removeConfirm'](){this[_0x4dd9('0xc')]&&this[_0x4dd9('0x0')]&&this[_0x4dd9('0x0')]['element']&&(this[_0x4dd9('0xc')][_0x4dd9('0xe')](),this['confirmView']['element'][_0x4dd9('0x1')](),this[_0x4dd9('0x2')](this[_0x4dd9('0x0')]),this[_0x4dd9('0x3')]=!0x1,this[_0x4dd9('0x0')]['destroy'](),this[_0x4dd9('0x0')]=void 0x0);}};}
@@ -1,3 +1,7 @@
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/ui/view/confirmview
3
7
  */
@@ -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 _0x4689=['ck-thread__remove-confirm-actions','ck-thread__remove-confirm-inner','Are\x20you\x20sure?','cancelView','div','Yes','submitView','submit','icon','execute','check','message','cancel','_createButtonView','fire','label','setTemplate','ck-thread__remove-confirm'];(function(_0xf43370,_0x46895d){const _0x2ee07b=function(_0x13902e){while(--_0x13902e){_0xf43370['push'](_0xf43370['shift']());}};_0x2ee07b(++_0x46895d);}(_0x4689,0xa4));const _0x2ee0=function(_0xf43370,_0x46895d){_0xf43370=_0xf43370-0x0;let _0x2ee07b=_0x4689[_0xf43370];return _0x2ee07b;};import{View as _0x328035,ButtonView as _0x22b349}from'ckeditor5/src/ui';import{icons as _0x2fda65}from'ckeditor5/src/core';import{getTranslation as _0x179e82}from'./common-translations';export default class h extends _0x328035{constructor(_0x2cf9d0){super(_0x2cf9d0);const _0x465691=this['bindTemplate'];this[_0x2ee0('0x4')]=this[_0x2ee0('0xb')](_0x2cf9d0,_0x179e82(_0x2cf9d0,_0x2ee0('0x3')),_0x2fda65[_0x2ee0('0x8')],_0x2ee0('0x5')),this[_0x2ee0('0x1')]=this[_0x2ee0('0xb')](_0x2cf9d0,_0x179e82(_0x2cf9d0,'No'),_0x2fda65[_0x2ee0('0xa')],_0x2ee0('0xa')),this['set'](_0x2ee0('0x9'),_0x179e82(_0x2cf9d0,_0x2ee0('0x0'))),this[_0x2ee0('0xe')]({'tag':_0x2ee0('0x2'),'attributes':{'class':[_0x2ee0('0xf')]},'children':[{'tag':_0x2ee0('0x2'),'attributes':{'class':_0x2ee0('0x11')},'children':[{'tag':'p','children':[{'text':_0x465691['to'](_0x2ee0('0x9'))}]},{'tag':_0x2ee0('0x2'),'attributes':{'class':_0x2ee0('0x10')},'children':[this[_0x2ee0('0x4')],this['cancelView']]}]}]});}[_0x2ee0('0xb')](_0x2cebdc,_0x1a8cf,_0x3063fb,_0x2e4690){const _0x58ae68=new _0x22b349(_0x2cebdc);return _0x58ae68[_0x2ee0('0xd')]=_0x1a8cf,_0x58ae68[_0x2ee0('0x6')]=_0x3063fb,_0x58ae68['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x2e4690}}),_0x58ae68['on'](_0x2ee0('0x7'),()=>this[_0x2ee0('0xc')](_0x2e4690)),_0x58ae68;}}
23
+ const _0x154a=['execute','Are\x20you\x20sure?','label','ck-thread__remove-confirm-inner','message','ck-thread__remove-confirm-','icon','div','bindTemplate','submitView','ck-thread__remove-confirm-actions','setTemplate','fire','ck-thread__remove-confirm','submit','_createButtonView','extendTemplate','check','cancel','set'];(function(_0x2cb24d,_0x154a60){const _0x14e287=function(_0x1cbb4a){while(--_0x1cbb4a){_0x2cb24d['push'](_0x2cb24d['shift']());}};_0x14e287(++_0x154a60);}(_0x154a,0x11f));const _0x14e2=function(_0x2cb24d,_0x154a60){_0x2cb24d=_0x2cb24d-0x0;let _0x14e287=_0x154a[_0x2cb24d];return _0x14e287;};import{View as _0x9f8ee,ButtonView as _0x3be0ca}from'ckeditor5/src/ui';import{icons as _0x519b28}from'ckeditor5/src/core';import{getTranslation as _0x67926f}from'./common-translations';export default class h extends _0x9f8ee{constructor(_0x29d536){super(_0x29d536);const _0x2ba6c6=this[_0x14e2('0x1')];this[_0x14e2('0x2')]=this[_0x14e2('0x8')](_0x29d536,_0x67926f(_0x29d536,'Yes'),_0x519b28[_0x14e2('0xa')],_0x14e2('0x7')),this['cancelView']=this[_0x14e2('0x8')](_0x29d536,_0x67926f(_0x29d536,'No'),_0x519b28[_0x14e2('0xb')],'cancel'),this[_0x14e2('0xc')](_0x14e2('0x11'),_0x67926f(_0x29d536,_0x14e2('0xe'))),this[_0x14e2('0x4')]({'tag':_0x14e2('0x0'),'attributes':{'class':[_0x14e2('0x6')]},'children':[{'tag':_0x14e2('0x0'),'attributes':{'class':_0x14e2('0x10')},'children':[{'tag':'p','children':[{'text':_0x2ba6c6['to'](_0x14e2('0x11'))}]},{'tag':'div','attributes':{'class':_0x14e2('0x3')},'children':[this[_0x14e2('0x2')],this['cancelView']]}]}]});}[_0x14e2('0x8')](_0x423a94,_0x17e831,_0x2ebdc6,_0x3fd9e8){const _0x27fd72=new _0x3be0ca(_0x423a94);return _0x27fd72[_0x14e2('0xf')]=_0x17e831,_0x27fd72[_0x14e2('0x13')]=_0x2ebdc6,_0x27fd72[_0x14e2('0x9')]({'attributes':{'class':_0x14e2('0x12')+_0x3fd9e8}}),_0x27fd72['on'](_0x14e2('0xd'),()=>this[_0x14e2('0x5')](_0x3fd9e8)),_0x27fd72;}}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @module collaboration-core/utils/getdatetimeformatter
3
- * @publicApi
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
4
  */
5
5
  import type { LocaleConfig } from '../config';
6
6
  /**
@@ -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 _0x39b0=['\x27Last\x27\x20EEEE\x20hh:mma','dateTimeFormat','function','invalid-date-time-format','string','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma','\x27Yesterday\x27\x20hh:mma'];(function(_0x1c286c,_0x39b014){const _0x183d7d=function(_0x23ce03){while(--_0x23ce03){_0x1c286c['push'](_0x1c286c['shift']());}};_0x183d7d(++_0x39b014);}(_0x39b0,0xda));const _0x183d=function(_0x1c286c,_0x39b014){_0x1c286c=_0x1c286c-0x0;let _0x183d7d=_0x39b0[_0x1c286c];return _0x183d7d;};import _0x47f42f from'date-fns/format';import _0x1a57b3 from'date-fns/parseISO';import _0x20264a from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x4b621f}from'ckeditor5/src/utils';export default function E(_0x3ed083={}){if(void 0x0!==_0x3ed083['dateTimeFormat']&&_0x183d('0x0')!=typeof _0x3ed083[_0x183d('0x7')])throw new _0x4b621f(_0x183d('0x1'));return _0x3fe928=>{const _0x299fdd=_0x183d('0x2')==typeof _0x3fe928?_0x1a57b3(_0x3fe928):_0x3fe928,_0x5f0deb=new Date(),_0x4fec65=_0x20264a(_0x5f0deb,_0x299fdd);return _0x3ed083[_0x183d('0x7')]?_0x3ed083['dateTimeFormat'](_0x299fdd):_0x47f42f(_0x299fdd,0x0===_0x4fec65?_0x183d('0x4'):0x1===_0x4fec65?_0x183d('0x5'):_0x4fec65<0x7?_0x183d('0x6'):_0x183d('0x3'));};}
23
+ const _0x3e3b=['\x27Yesterday\x27\x20hh:mma','dateTimeFormat','invalid-date-time-format','\x27Today\x27\x20hh:mma','function','MM-dd-yyyy\x20hh:mma','string','\x27Last\x27\x20EEEE\x20hh:mma'];(function(_0x2d9f3e,_0x3e3bba){const _0x4eb216=function(_0xf80aac){while(--_0xf80aac){_0x2d9f3e['push'](_0x2d9f3e['shift']());}};_0x4eb216(++_0x3e3bba);}(_0x3e3b,0x123));const _0x4eb2=function(_0x2d9f3e,_0x3e3bba){_0x2d9f3e=_0x2d9f3e-0x0;let _0x4eb216=_0x3e3b[_0x2d9f3e];return _0x4eb216;};import _0x2942d7 from'date-fns/format';import _0x457080 from'date-fns/parseISO';import _0x5e1941 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x31f45b}from'ckeditor5/src/utils';export default function E(_0x3a4a6a={}){if(void 0x0!==_0x3a4a6a[_0x4eb2('0x6')]&&_0x4eb2('0x1')!=typeof _0x3a4a6a[_0x4eb2('0x6')])throw new _0x31f45b(_0x4eb2('0x7'));return _0xbb72ae=>{const _0x5ca530=_0x4eb2('0x3')==typeof _0xbb72ae?_0x457080(_0xbb72ae):_0xbb72ae,_0xb3ef76=new Date(),_0x261e89=_0x5e1941(_0xb3ef76,_0x5ca530);return _0x3a4a6a[_0x4eb2('0x6')]?_0x3a4a6a[_0x4eb2('0x6')](_0x5ca530):_0x2942d7(_0x5ca530,0x0===_0x261e89?_0x4eb2('0x0'):0x1===_0x261e89?_0x4eb2('0x5'):_0x261e89<0x7?_0x4eb2('0x4'):_0x4eb2('0x2'));};}
@@ -1,5 +1,6 @@
1
1
  /**
2
- * @module comments/utils/getmarkerdomelement
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
  import type { EditingController, Marker } from 'ckeditor5/src/engine';
5
6
  /**
@@ -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 _0x2c20=['domElement','view','values','mapper','mapViewToDom','item','length','name','getClientRects','markerNameToElements','map','domConverter'];(function(_0x22f69d,_0x2c208a){const _0x3ce5a8=function(_0x5d140b){while(--_0x5d140b){_0x22f69d['push'](_0x22f69d['shift']());}};_0x3ce5a8(++_0x2c208a);}(_0x2c20,0xf6));const _0x3ce5=function(_0x22f69d,_0x2c208a){_0x22f69d=_0x22f69d-0x0;let _0x3ce5a8=_0x2c20[_0x22f69d];return _0x3ce5a8;};import{first as _0x3baf43}from'ckeditor5/src/utils';export default function k(_0x9a0f3e,_0x42c2b7){const _0xb24125=_0x9a0f3e[_0x3ce5('0x9')]['markerNameToElements'](_0x42c2b7[_0x3ce5('0x1')]);if(!_0xb24125)return null;const _0x2dea45=_0x3baf43(_0xb24125[_0x3ce5('0x8')]());return _0x9a0f3e[_0x3ce5('0x7')][_0x3ce5('0x5')][_0x3ce5('0xa')](_0x2dea45)||null;}export function getAllMarkersDomElementsSorted(_0x57c2ea,_0x3dcf1d){if(0x0===_0x3dcf1d[_0x3ce5('0x0')])return null;const _0x406988=[],_0x2881ca=_0x57c2ea['view']['domConverter'];for(const _0x13c0c6 of _0x3dcf1d){const _0x366dd4=_0x57c2ea[_0x3ce5('0x9')][_0x3ce5('0x3')](_0x13c0c6[_0x3ce5('0x1')]);if(!_0x366dd4)continue;const _0x4cfe01=Array['from'](_0x366dd4)[_0x3ce5('0x4')](_0x1de77b=>_0x2881ca[_0x3ce5('0xa')](_0x1de77b))['filter'](_0x35f237=>!!_0x35f237);_0x406988['push'](..._0x4cfe01);}if(0x0===_0x406988[_0x3ce5('0x0')])return null;const _0x522e59=[];for(const _0x184574 of _0x406988){const _0x32d6b1=_0x184574[_0x3ce5('0x2')]()[_0x3ce5('0xb')](0x0);_0x32d6b1&&_0x522e59['push']({'x':_0x32d6b1['x'],'y':_0x32d6b1['y'],'domElement':_0x184574});}return 0x0===_0x522e59['length']?null:(_0x522e59['sort']((_0x29b2cf,_0x275ab9)=>_0x29b2cf['y']-_0x275ab9['y']||_0x29b2cf['x']-_0x275ab9['x']),_0x522e59[_0x3ce5('0x4')](_0x56592a=>_0x56592a[_0x3ce5('0x6')]));}
23
+ const _0x4b3f=['push','length','view','getClientRects','item','filter','markerNameToElements','sort','map','mapViewToDom','domConverter','domElement','mapper','name','from','values'];(function(_0x3195ee,_0x4b3f12){const _0x14fe94=function(_0x3fee6c){while(--_0x3fee6c){_0x3195ee['push'](_0x3195ee['shift']());}};_0x14fe94(++_0x4b3f12);}(_0x4b3f,0x134));const _0x14fe=function(_0x3195ee,_0x4b3f12){_0x3195ee=_0x3195ee-0x0;let _0x14fe94=_0x4b3f[_0x3195ee];return _0x14fe94;};import{first as _0x152f87}from'ckeditor5/src/utils';export default function k(_0x3fca48,_0x22073f){const _0x18e1c5=_0x3fca48['mapper']['markerNameToElements'](_0x22073f[_0x14fe('0x9')]);if(!_0x18e1c5)return null;const _0x29fc52=_0x152f87(_0x18e1c5[_0x14fe('0xb')]());return _0x3fca48[_0x14fe('0xe')][_0x14fe('0x6')][_0x14fe('0x5')](_0x29fc52)||null;}export function getAllMarkersDomElementsSorted(_0x25010b,_0x24f76d){if(0x0===_0x24f76d['length'])return null;const _0x49da0e=[],_0x183214=_0x25010b[_0x14fe('0xe')]['domConverter'];for(const _0x2b8daf of _0x24f76d){const _0x5ad2af=_0x25010b[_0x14fe('0x8')][_0x14fe('0x2')](_0x2b8daf[_0x14fe('0x9')]);if(!_0x5ad2af)continue;const _0x2f7c81=Array[_0x14fe('0xa')](_0x5ad2af)[_0x14fe('0x4')](_0x1ebf18=>_0x183214['mapViewToDom'](_0x1ebf18))[_0x14fe('0x1')](_0x4badda=>!!_0x4badda);_0x49da0e[_0x14fe('0xc')](..._0x2f7c81);}if(0x0===_0x49da0e[_0x14fe('0xd')])return null;const _0x25f706=[];for(const _0x3ad053 of _0x49da0e){const _0x59040e=_0x3ad053[_0x14fe('0xf')]()[_0x14fe('0x0')](0x0);_0x59040e&&_0x25f706[_0x14fe('0xc')]({'x':_0x59040e['x'],'y':_0x59040e['y'],'domElement':_0x3ad053});}return 0x0===_0x25f706[_0x14fe('0xd')]?null:(_0x25f706[_0x14fe('0x3')]((_0xc3b9b3,_0x166acf)=>_0xc3b9b3['y']-_0x166acf['y']||_0xc3b9b3['x']-_0x166acf['x']),_0x25f706[_0x14fe('0x4')](_0x1ea11d=>_0x1ea11d[_0x14fe('0x7')]));}
@@ -1,3 +1,7 @@
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 track-changes/utils/hashobject
3
7
  */
@@ -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 _0xe17c=['object','number','isArray','charCodeAt','sign','keys'];(function(_0x11e228,_0xe17c7a){const _0x477b31=function(_0x729c0c){while(--_0x729c0c){_0x11e228['push'](_0x11e228['shift']());}};_0x477b31(++_0xe17c7a);}(_0xe17c,0xaf));const _0x477b=function(_0x11e228,_0xe17c7a){_0x11e228=_0x11e228-0x0;let _0x477b31=_0xe17c[_0x11e228];return _0x477b31;};export default function b(_0x127c49){let _0x291417=0x0,_0x5eee28=0x0;for(const _0x4738b6 of g(_0x127c49))_0x291417=(_0x291417<<0x5)-_0x291417+_0x4738b6,_0x291417&=_0x291417,[_0x291417,_0x5eee28]=[_0x5eee28,_0x291417];return O(_0x291417)+O(_0x5eee28);}function*j(_0x134537){_0x134537?'boolean'==typeof _0x134537?yield 0x1:Array[_0x477b('0x1')](_0x134537)?yield*function*(_0x5ba7df){for(const _0x204342 of _0x5ba7df)yield*j(_0x204342);}(_0x134537):_0x477b('0x5')==typeof _0x134537?yield*g(_0x134537):'string'==typeof _0x134537?yield*A(_0x134537):_0x477b('0x0')==typeof _0x134537&&(yield _0x134537):yield 0x0;}function*g(_0x21c4df){if(yield M('{'),_0x21c4df){const _0x388987=Object[_0x477b('0x4')](_0x21c4df)['sort']();for(const _0x22bc3e of _0x388987){yield*A(_0x22bc3e),yield M(':');const _0x24aad5=_0x21c4df[_0x22bc3e];yield*j(_0x24aad5);}}yield M('}');}function*A(_0x383000){yield M('\x22');for(const _0x3a6f3e of _0x383000)yield M(_0x3a6f3e);yield M('\x22');}function M(_0x5e5575){return _0x5e5575[_0x477b('0x2')](0x0);}function O(_0x1fdda7){return(_0x1fdda7*=Math[_0x477b('0x3')](_0x1fdda7))['toString'](0x24);}
23
+ const _0x1d47=['sign','object','sort','toString','charCodeAt','isArray'];(function(_0x2cf51b,_0x1d4723){const _0x2938e0=function(_0x4e30c6){while(--_0x4e30c6){_0x2cf51b['push'](_0x2cf51b['shift']());}};_0x2938e0(++_0x1d4723);}(_0x1d47,0x121));const _0x2938=function(_0x2cf51b,_0x1d4723){_0x2cf51b=_0x2cf51b-0x0;let _0x2938e0=_0x1d47[_0x2cf51b];return _0x2938e0;};export default function b(_0x25f7e1){let _0x17d039=0x0,_0x581e57=0x0;for(const _0x147050 of g(_0x25f7e1))_0x17d039=(_0x17d039<<0x5)-_0x17d039+_0x147050,_0x17d039&=_0x17d039,[_0x17d039,_0x581e57]=[_0x581e57,_0x17d039];return O(_0x17d039)+O(_0x581e57);}function*j(_0x15760d){_0x15760d?'boolean'==typeof _0x15760d?yield 0x1:Array[_0x2938('0x4')](_0x15760d)?yield*function*(_0x29f0db){for(const _0x5c4561 of _0x29f0db)yield*j(_0x5c4561);}(_0x15760d):_0x2938('0x0')==typeof _0x15760d?yield*g(_0x15760d):'string'==typeof _0x15760d?yield*A(_0x15760d):'number'==typeof _0x15760d&&(yield _0x15760d):yield 0x0;}function*g(_0x56f864){if(yield M('{'),_0x56f864){const _0x24e7b5=Object['keys'](_0x56f864)[_0x2938('0x1')]();for(const _0x291da4 of _0x24e7b5){yield*A(_0x291da4),yield M(':');const _0x3324ca=_0x56f864[_0x291da4];yield*j(_0x3324ca);}}yield M('}');}function*A(_0x32c334){yield M('\x22');for(const _0x12125a of _0x32c334)yield M(_0x12125a);yield M('\x22');}function M(_0x2c6d2d){return _0x2c6d2d[_0x2938('0x3')](0x0);}function O(_0x427661){return(_0x427661*=Math[_0x2938('0x5')](_0x427661))[_0x2938('0x2')](0x24);}
@@ -0,0 +1,15 @@
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
+ /**
6
+ * @module collaboration-core/utils/common-translations
7
+ */
8
+ import type { Editor, EditorConfig } from 'ckeditor5/src/core';
9
+ /**
10
+ * A function that prepares config for internal editors removing all unnecessary plugins like RTC.
11
+ *
12
+ * @param editor The instance of the source editor.
13
+ * @param extraBlackListedPlugins Additional list of plugins that should not be added to the config.
14
+ */
15
+ export default function sanitizeEditorConfig(editor: Editor, extraBlackListedPlugins?: Array<string>): EditorConfig;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. 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 _0x35b0=['filter','concat','config','constructor','removePlugins','WebSocketGateway','toolbar','plugins','name','get','includes','RevisionTracker','extraPlugins','_context','Autosave','set','from','WProofreader','initialData','context','requires','pluginName','string','rootsAttributes','DocumentOutline'];(function(_0x36a840,_0x35b0d7){const _0x4f7651=function(_0x28fa69){while(--_0x28fa69){_0x36a840['push'](_0x36a840['shift']());}};_0x4f7651(++_0x35b0d7);}(_0x35b0,0x149));const _0x4f76=function(_0x36a840,_0x35b0d7){_0x36a840=_0x36a840-0x0;let _0x4f7651=_0x35b0[_0x36a840];return _0x4f7651;};const w=[_0x4f76('0xe'),_0x4f76('0xf'),_0x4f76('0x2'),_0x4f76('0x13')],W=[_0x4f76('0x1'),_0x4f76('0x7'),_0x4f76('0xa'),'WordCount',_0x4f76('0x14'),_0x4f76('0xd')];function v(_0x123d45,_0xba37af,_0x28b927,_0x481a7e=[]){const _0x2726a2=_0x4f76('0x12')==typeof _0x123d45?_0x28b927[_0x4f76('0x5')](_0x123d45)[_0x4f76('0x18')]:_0x123d45,_0x3a148d=_0x2726a2['pluginName']||_0x2726a2[_0x4f76('0x4')];if(_0xba37af['has'](_0x3a148d))return _0xba37af['get'](_0x3a148d);if(_0xba37af['set'](_0x3a148d,!0x0),_0x3a148d&&W[_0x4f76('0x16')](_0x481a7e)[_0x4f76('0x6')](_0x3a148d))return _0xba37af[_0x4f76('0xb')](_0x3a148d,!0x1),!0x1;if(!_0x2726a2['requires'])return _0xba37af['set'](_0x3a148d,!0x0),!0x0;const _0x3f10cf=_0x2726a2[_0x4f76('0x10')]['every'](_0xc416c2=>v(_0xc416c2,_0xba37af,_0x28b927,_0x481a7e));return _0xba37af['set'](_0x3a148d,_0x3f10cf),_0x3f10cf;}export default function D(_0x20b353,_0x253ae0){const _0x562920={};for(const _0x3fcbba of _0x20b353['config']['names']())w[_0x4f76('0x6')](_0x3fcbba)||(_0x562920[_0x3fcbba]=_0x20b353[_0x4f76('0x17')][_0x4f76('0x5')](_0x3fcbba));const _0x54fc55=_0x562920[_0x4f76('0x3')]||[],_0xf22991=_0x20b353[_0x4f76('0x18')]['builtinPlugins']||[],_0x366b9c=_0x54fc55['length']?_0x54fc55:_0xf22991,_0x4e5ceb=_0x562920[_0x4f76('0x8')]||[];delete _0x562920[_0x4f76('0x8')];const _0x3ea8a0=_0x562920[_0x4f76('0x0')]||[];delete _0x562920['removePlugins'];const _0x2e95dc=_0x20b353[_0x4f76('0x9')]['config'][_0x4f76('0x5')](_0x4f76('0x3'))||[],_0x21f4a=_0x366b9c[_0x4f76('0x16')](_0x4e5ceb)[_0x4f76('0x16')](_0x2e95dc)['map'](_0x10c1a5=>'string'==typeof _0x10c1a5?_0xf22991['find'](_0x11894f=>_0x11894f[_0x4f76('0x11')]==_0x10c1a5):_0x10c1a5)[_0x4f76('0x15')](_0x4f2e69=>!_0x3ea8a0['includes'](_0x4f2e69)),_0x4641df=Array[_0x4f76('0xc')](new Set(_0x21f4a)),_0xc62498=new Map();return _0x562920[_0x4f76('0x3')]=_0x4641df[_0x4f76('0x15')](_0x45d883=>v(_0x45d883,_0xc62498,_0x20b353[_0x4f76('0x3')],_0x253ae0)),_0x562920;}
@@ -1,3 +1,7 @@
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
  * Trims text inside a html tags and takes care of all closing tags.
3
7
  *
@@ -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 _0x5c26=['split','substring','push','length','slice','match','replace','join','pop','startsWith'];(function(_0x2bff7c,_0x5c2634){const _0x2c0890=function(_0x1cb797){while(--_0x1cb797){_0x2bff7c['push'](_0x2bff7c['shift']());}};_0x2c0890(++_0x5c2634);}(_0x5c26,0x11c));const _0x2c08=function(_0x2bff7c,_0x5c2634){_0x2bff7c=_0x2bff7c-0x0;let _0x2c0890=_0x5c26[_0x2bff7c];return _0x2c0890;};export default function z(_0x15062c,{limit:_0x5b3606,suffix:_0x1ef59f='...'}){const _0x475035=[];let _0x43b6d8=0x0;const _0x21a193=_0x15062c[_0x2c08('0x2')](/</g,'\x0a<')[_0x2c08('0x2')](/>/g,'>\x0a')[_0x2c08('0x2')](/^\n/g,'')[_0x2c08('0x2')](/\n$/g,'')[_0x2c08('0x6')]('\x0a');for(let _0x29aec7=0x0;_0x29aec7<_0x21a193['length'];_0x29aec7++){let _0x31a041=_0x21a193[_0x29aec7];const _0x37dac9=Z(_0x31a041);if(_0x31a041[_0x2c08('0x5')]('<')){if(_0x43b6d8>=_0x5b3606){const _0x490260=_0x31a041[_0x2c08('0x1')](/[a-zA-Z]+/);if(!_0x490260){_0x21a193[_0x29aec7]='';continue;}const _0x1245ca=_0x490260[0x0];_0x31a041[_0x2c08('0x5')]('</')?(_0x475035['length']&&(_0x31a041=''),_0x475035[_0x2c08('0x4')]()):(_0x475035[_0x2c08('0x8')](_0x1245ca),_0x31a041='');}}else{if(_0x43b6d8>=_0x5b3606)_0x31a041='';else{if(_0x43b6d8+_0x37dac9[_0x2c08('0x9')]>=_0x5b3606){let _0x152d5e=_0x5b3606-_0x43b6d8;if('\x20'===_0x37dac9[_0x152d5e-0x1])_0x152d5e--;else{const _0x34f702=_0x37dac9[_0x2c08('0x0')](_0x152d5e)['indexOf']('\x20');-0x1!==_0x34f702?_0x152d5e+=_0x34f702:_0x152d5e=_0x31a041['length'];}_0x31a041=_0x37dac9[_0x2c08('0x0')](0x0,_0x152d5e)[_0x2c08('0x3')]('')+_0x1ef59f,_0x43b6d8=_0x5b3606;}else _0x43b6d8+=_0x37dac9[_0x2c08('0x9')];}}_0x21a193[_0x29aec7]=_0x31a041;}return _0x21a193[_0x2c08('0x3')]('\x0a')[_0x2c08('0x2')](/\n/g,'');}function Z(_0x4667e5){const _0x1e7d64=[];for(let _0x1cccbc=0x0;_0x1cccbc<_0x4667e5[_0x2c08('0x9')];_0x1cccbc++){const _0x46f442=_0x4667e5[_0x2c08('0x7')](_0x1cccbc)[_0x2c08('0x1')](/^&[a-z0-9#]+;/);if(_0x46f442){const _0x4608e2=_0x46f442[0x0];_0x1e7d64['push'](_0x4608e2),_0x1cccbc+=_0x4608e2[_0x2c08('0x9')]-0x1;}else _0x1e7d64[_0x2c08('0x8')](_0x4667e5[_0x1cccbc]);}return _0x1e7d64;}
23
+ const _0x4c1f=['...','match','split','pop','indexOf','startsWith','push','replace','slice','length','join'];(function(_0x4167e9,_0x4c1f8b){const _0x48ea17=function(_0x38107d){while(--_0x38107d){_0x4167e9['push'](_0x4167e9['shift']());}};_0x48ea17(++_0x4c1f8b);}(_0x4c1f,0x177));const _0x48ea=function(_0x4167e9,_0x4c1f8b){_0x4167e9=_0x4167e9-0x0;let _0x48ea17=_0x4c1f[_0x4167e9];return _0x48ea17;};export default function z(_0x5d8f60,{limit:_0x5f1bab,suffix:_0x4fecb9=_0x48ea('0xa')}){const _0x315125=[];let _0x3aaca0=0x0;const _0x18374c=_0x5d8f60[_0x48ea('0x6')](/</g,'\x0a<')[_0x48ea('0x6')](/>/g,'>\x0a')['replace'](/^\n/g,'')[_0x48ea('0x6')](/\n$/g,'')[_0x48ea('0x1')]('\x0a');for(let _0x3e75a1=0x0;_0x3e75a1<_0x18374c[_0x48ea('0x8')];_0x3e75a1++){let _0x8523f9=_0x18374c[_0x3e75a1];const _0x156148=Z(_0x8523f9);if(_0x8523f9[_0x48ea('0x4')]('<')){if(_0x3aaca0>=_0x5f1bab){const _0x3a6b65=_0x8523f9[_0x48ea('0x0')](/[a-zA-Z]+/);if(!_0x3a6b65){_0x18374c[_0x3e75a1]='';continue;}const _0x4b40fb=_0x3a6b65[0x0];_0x8523f9[_0x48ea('0x4')]('</')?(_0x315125[_0x48ea('0x8')]&&(_0x8523f9=''),_0x315125[_0x48ea('0x2')]()):(_0x315125['push'](_0x4b40fb),_0x8523f9='');}}else{if(_0x3aaca0>=_0x5f1bab)_0x8523f9='';else{if(_0x3aaca0+_0x156148[_0x48ea('0x8')]>=_0x5f1bab){let _0x46b388=_0x5f1bab-_0x3aaca0;if('\x20'===_0x156148[_0x46b388-0x1])_0x46b388--;else{const _0x4ba449=_0x156148[_0x48ea('0x7')](_0x46b388)[_0x48ea('0x3')]('\x20');-0x1!==_0x4ba449?_0x46b388+=_0x4ba449:_0x46b388=_0x8523f9['length'];}_0x8523f9=_0x156148[_0x48ea('0x7')](0x0,_0x46b388)[_0x48ea('0x9')]('')+_0x4fecb9,_0x3aaca0=_0x5f1bab;}else _0x3aaca0+=_0x156148['length'];}}_0x18374c[_0x3e75a1]=_0x8523f9;}return _0x18374c['join']('\x0a')[_0x48ea('0x6')](/\n/g,'');}function Z(_0x120ad4){const _0x786545=[];for(let _0x348611=0x0;_0x348611<_0x120ad4[_0x48ea('0x8')];_0x348611++){const _0x766479=_0x120ad4['substring'](_0x348611)[_0x48ea('0x0')](/^&[a-z0-9#]+;/);if(_0x766479){const _0x1f7485=_0x766479[0x0];_0x786545[_0x48ea('0x5')](_0x1f7485),_0x348611+=_0x1f7485[_0x48ea('0x8')]-0x1;}else _0x786545['push'](_0x120ad4[_0x348611]);}return _0x786545;}
@@ -1,8 +1,8 @@
1
1
  <!--
2
2
 
3
3
  What you're currently looking at is the source code of a legally protected, proprietary software.
4
- Letters is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
- all Letters content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
4
+ CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
5
+ all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
6
6
 
7
7
  Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
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.
3
+ * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
+ * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
6
  * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */