@ckeditor/ckeditor5-collaboration-core 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -17
- package/README.md +1 -1
- package/package.json +2 -2
- package/src/permissions.js +1 -1
- package/src/users/view/userview.js +1 -1
- package/src/users.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.js +1 -1
- package/src/utils/getdatetimeformatter.js +1 -1
- package/src/utils/getmarkerdomelement.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/surroundingmarkersdetector.js +1 -1
- package/src/utils/trim-html.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -6,31 +6,31 @@ All changes in the package are documented at https://github.com/ckeditor/ckedito
|
|
6
6
|
Changes for the past releases are available below.
|
7
7
|
|
8
8
|
|
9
|
-
## 23.0.0 (2020
|
9
|
+
## 23.0.0 (September 25, 2020)
|
10
10
|
|
11
11
|
Internal changes only (updated dependencies, documentation, etc.).
|
12
12
|
|
13
13
|
|
14
|
-
## 22.0.0 (2020
|
14
|
+
## 22.0.0 (August 25, 2020)
|
15
15
|
|
16
16
|
Internal changes only (updated dependencies, documentation, etc.).
|
17
17
|
|
18
|
-
## 21.0.0 (2020
|
18
|
+
## 21.0.0 (July 24, 2020)
|
19
19
|
|
20
20
|
Internal changes only (updated dependencies, documentation, etc.).
|
21
21
|
|
22
22
|
|
23
|
-
## 20.0.1 (2020
|
23
|
+
## 20.0.1 (June 26, 2020)
|
24
24
|
|
25
25
|
Internal changes only (updated dependencies, documentation, etc.).
|
26
26
|
|
27
27
|
|
28
|
-
## 19.0.2 (2020
|
28
|
+
## 19.0.2 (May 25, 2020)
|
29
29
|
|
30
30
|
Internal changes only (updated dependencies, documentation, etc.).
|
31
31
|
|
32
32
|
|
33
|
-
## 19.0.1 (2020
|
33
|
+
## 19.0.1 (April 30, 2020)
|
34
34
|
|
35
35
|
### BREAKING CHANGES
|
36
36
|
|
@@ -46,59 +46,59 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
46
46
|
* `Users#me` will no longer set the local user to anonymous by default (if `Users#defineMe()` was not called).
|
47
47
|
|
48
48
|
|
49
|
-
## 18.0.0 (2020
|
49
|
+
## 18.0.0 (March 19, 2020)
|
50
50
|
|
51
51
|
Internal changes only (updated dependencies, documentation, etc.).
|
52
52
|
|
53
53
|
|
54
|
-
## 17.0.0 (2020
|
54
|
+
## 17.0.0 (February 20, 2020)
|
55
55
|
|
56
56
|
Internal changes only (updated dependencies, documentation, etc.).
|
57
57
|
|
58
58
|
|
59
|
-
## 16.0.0 (2019
|
59
|
+
## 16.0.0 (December 2, 2019)
|
60
60
|
|
61
61
|
### Features
|
62
62
|
|
63
63
|
* Introduced the [`users.colorsCount`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#adding-more-users-colors) configuration option.
|
64
64
|
|
65
65
|
|
66
|
-
## 15.0.0 (2019
|
66
|
+
## 15.0.0 (October 23, 2019)
|
67
67
|
|
68
68
|
### Other changes
|
69
69
|
|
70
70
|
* Added a more explanatory message for an error that is thrown when the local user is not defined.
|
71
71
|
|
72
72
|
|
73
|
-
## 1.2.0 (2019
|
73
|
+
## 1.2.0 (August 22, 2019)
|
74
74
|
|
75
75
|
### Features
|
76
76
|
|
77
77
|
* Added a method to get an operation author. See the [Users API guide](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#operation-authors) for more information.
|
78
78
|
|
79
79
|
|
80
|
-
## 1.1.0 (2019
|
80
|
+
## 1.1.0 (July 4, 2019)
|
81
81
|
|
82
82
|
### Features
|
83
83
|
|
84
84
|
* Added the `user-id` data attribute to the `user` element. Now you can attach some action to user avatars in the presence list and comments.
|
85
85
|
|
86
86
|
|
87
|
-
## 1.0.3 (2019
|
87
|
+
## 1.0.3 (June 5, 2019)
|
88
88
|
|
89
89
|
Internal changes only (updated dependencies, documentation, etc.).
|
90
90
|
|
91
91
|
|
92
|
-
## 1.0.2 (2019
|
92
|
+
## 1.0.2 (April 4, 2019)
|
93
93
|
|
94
94
|
Internal changes only (updated dependencies, documentation, etc.).
|
95
95
|
|
96
96
|
|
97
|
-
## 1.0.1 (2019
|
97
|
+
## 1.0.1 (February 5, 2019)
|
98
98
|
|
99
99
|
Internal changes only (updated dependencies, documentation, etc.).
|
100
100
|
|
101
101
|
|
102
|
-
## 1.0.0 (2018
|
102
|
+
## 1.0.0 (December 6, 2018)
|
103
103
|
|
104
|
-
The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part
|
104
|
+
The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part of two collaboration features: [real-time collaboration](https://ckeditor.com/collaboration/real-time/) and [comments](https://ckeditor.com/collaboration/comments/).
|
package/README.md
CHANGED
@@ -19,7 +19,7 @@ As a licensed CKEditor 5 collaboration features user you can report bugs an
|
|
19
19
|
## License
|
20
20
|
|
21
21
|
**CKEditor 5 collaboration core**<br>
|
22
|
-
Copyright (c) 2003
|
22
|
+
Copyright (c) 2003–2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
23
23
|
|
24
24
|
CKEditor 5 collaboration core is licensed under a commercial license and is protected by copyright law.
|
25
25
|
For more details about available licensing options please contact us at sales@cksource.com.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20231130.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/)",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
],
|
32
32
|
"main": "src/index.js",
|
33
33
|
"dependencies": {
|
34
|
-
"ckeditor5": "0.0.0-nightly-
|
34
|
+
"ckeditor5": "0.0.0-nightly-20231130.0",
|
35
35
|
"date-fns": "2.30.0"
|
36
36
|
},
|
37
37
|
"files": [
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1d81=['no-permissions','get','has','comment:write','Permissions','find','includes','context','enableReadOnlyMode','CommentsRepository','document:write','comment:modify_all','collaboration.channelId','forceDisabled','addCommentThread','setPermissions','plugins','comment:admin','editors','config','clearForceDisabled','noPermissions'];(function(_0x335c41,_0x1d81ab){const _0x27d633=function(_0x1568ae){while(--_0x1568ae){_0x335c41['push'](_0x335c41['shift']());}};_0x27d633(++_0x1d81ab);}(_0x1d81,0x13b));const _0x27d6=function(_0x335c41,_0x1d81ab){_0x335c41=_0x335c41-0x0;let _0x27d633=_0x1d81[_0x335c41];return _0x27d633;};import{ContextPlugin as _0x25ad86,Editor as _0x1f2ba4}from'ckeditor5/src/core';import{CKEditorError as _0x536870}from'ckeditor5/src/utils';export default class n extends _0x25ad86{static get['pluginName'](){return _0x27d6('0x13');}[_0x27d6('0x8')](_0x6948d7,_0x2ee559){let _0x2de28a;if(_0x2ee559||(_0x2ee559=this['context'][_0x27d6('0xc')]['get']('collaboration.channelId')),this[_0x27d6('0x0')][_0x27d6('0xc')]['get']('collaboration.channelId')==_0x2ee559?_0x2de28a=this[_0x27d6('0x0')]:_0x27d6('0xb')in this[_0x27d6('0x0')]&&this[_0x27d6('0x0')][_0x27d6('0xb')]&&(_0x2de28a=this[_0x27d6('0x0')][_0x27d6('0xb')][_0x27d6('0x14')](_0x27dfe1=>_0x27dfe1[_0x27d6('0xc')][_0x27d6('0x10')](_0x27d6('0x5'))==_0x2ee559)),!_0x2de28a)throw new _0x536870('permissions-set-permissions-invalid-channel-id',null);const _0x4f7251=_0x2de28a[_0x27d6('0x9')],_0x20ce43=_0x4f7251[_0x27d6('0x11')](_0x27d6('0x2'))?_0x4f7251['get'](_0x27d6('0x2')):void 0x0,_0x355d37=_0x4f7251[_0x27d6('0x11')]('CommentsOnly')&&_0x4f7251[_0x27d6('0x10')]('CommentsOnly'),_0x16aa8b=_0x6948d7[_0x27d6('0x15')](_0x27d6('0x3')),_0x3a3b28=_0x6948d7[_0x27d6('0x15')](_0x27d6('0x4')),_0x5ad2b6=_0x6948d7[_0x27d6('0x15')](_0x27d6('0xa')),_0x251b6b=_0x6948d7[_0x27d6('0x15')](_0x27d6('0x12')),_0x2b9bde=_0x251b6b||_0x5ad2b6,_0x4d44d7=_0x2b9bde||_0x3a3b28,_0x3db65e=_0x16aa8b||_0x2b9bde;(_0x355d37&&(_0x355d37['isEnabled']=!_0x16aa8b&&_0x4d44d7),_0x2de28a instanceof _0x1f2ba4)&&(!(_0x16aa8b||_0x4d44d7&&_0x20ce43)?_0x2de28a[_0x27d6('0x1')](_0x27d6('0xf')):_0x2de28a['disableReadOnlyMode'](_0x27d6('0xf')));if(_0x20ce43){_0x20ce43['setPermissions']({'admin':_0x5ad2b6,'modifyAll':_0x3a3b28,'write':_0x251b6b,'resolve':_0x3db65e},_0x2ee559);const _0x2f9478=_0x2de28a instanceof _0x1f2ba4&&_0x2de28a['commands'][_0x27d6('0x10')](_0x27d6('0x7'));_0x2f9478&&(_0x2b9bde?_0x2f9478[_0x27d6('0xd')]('noPermissions'):_0x2f9478[_0x27d6('0x6')](_0x27d6('0xe')));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3cd2=['avatar','ck-user__img','name','extendTemplate','initials','setTemplate','div','url(\x27','notificationView','ck-user','ck\x20ck-user__name\x20ck-user__name--hidden','isAnonymous','ck-user__notification','content','push','ck\x20ck-user__name'];(function(_0x436ec8,_0x3cd209){const _0x142420=function(_0x3c6b5a){while(--_0x3c6b5a){_0x436ec8['push'](_0x436ec8['shift']());}};_0x142420(++_0x3cd209);}(_0x3cd2,0x17f));const _0x1424=function(_0x436ec8,_0x3cd209){_0x436ec8=_0x436ec8-0x0;let _0x142420=_0x3cd2[_0x436ec8];return _0x142420;};import{View as _0x14f18a,IconView as _0x38d81c}from'ckeditor5/src/ui';import _0x30794d from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class C extends _0x14f18a{constructor(_0x5f1d92,_0x9792f,_0x334bbf){super(_0x5f1d92),this[_0x1424('0x3')]=_0x9792f[_0x1424('0x3')],this[_0x1424('0x9')]=null;const _0x3f9024=['ck',_0x1424('0x2')];if(_0x9792f[_0x1424('0xc')]&&_0x3f9024[_0x1424('0xf')]('ck-user__anonymous'),_0x9792f[_0x1424('0x1')]&&_0x3f9024['push']('ck-user__avatar'),_0x334bbf){const _0x342470=new _0x38d81c();_0x342470[_0x1424('0x4')]({'attributes':{'class':['ck-user__icon']}}),_0x342470[_0x1424('0xe')]=_0x30794d,this[_0x1424('0x9')]={'tag':_0x1424('0x7'),'attributes':{'class':['ck',_0x1424('0xd')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x334bbf},'children':[_0x342470]};}const _0x35930c=[{'tag':_0x1424('0x7'),'attributes':{'class':_0x3f9024,'style':{'background-image':_0x9792f['avatar']?_0x1424('0x8')+_0x9792f['avatar']+'\x27)':''}}},{'tag':_0x1424('0x7'),'attributes':{'class':_0x9792f['avatar']?_0x1424('0xb'):_0x1424('0x0')},'children':[{'text':_0x9792f[_0x1424('0x5')]}]}];this['notificationView']&&_0x35930c[_0x1424('0xf')](this[_0x1424('0x9')]),this[_0x1424('0x6')]({'tag':_0x1424('0x7'),'attributes':{'class':['ck',_0x1424('0xa')],'data-user-id':_0x9792f['id']},'children':_0x35930c});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x3b79=['toUpperCase','info','charAt','users','_licenseKeyCheckInterval','users-add-invalid-id','isAnonymous','anonymous-user','get','users.colorsCount','_id','_locale','string','licenseKey','config','Anonymous','_myId','licenseKeyValid','has','trial-license-key-reached-limit-changes','color','Users','defineMe','_getInitial','includes','licenseKeyTrialLimit:operations','users-me-missing-user','invalid-license-key','getUser','addUser','length','licenseKeyTrialLimit:time','users-me-already-defined','_isAnonymous','avatar','useAnonymousUser','ck-user__selection--','destroy','define','licenseKeyTrialLimit:revisions','users-add-duplicated-id','_getNextColor','getMarkerClass','_lastColor','split','ck-user__bg-color--','licenseKeyInvalid','ck-user__marker--','licenseKeyTrial','context','name','trim','getOperationAuthor','requires','users.anonymousUserId'];(function(_0xe6ba8a,_0x3b79b0){const _0x14b904=function(_0x25c7ee){while(--_0x25c7ee){_0xe6ba8a['push'](_0xe6ba8a['shift']());}};_0x14b904(++_0x3b79b0);}(_0x3b79,0xa0));const _0x14b9=function(_0xe6ba8a,_0x3b79b0){_0xe6ba8a=_0xe6ba8a-0x0;let _0x14b904=_0x3b79[_0xe6ba8a];return _0x14b904;};import{ContextPlugin as _0x3842d9}from'ckeditor5/src/core';import{Collection as _0x1c0ceb,CKEditorError as _0x5bb938}from'ckeditor5/src/utils';import _0x138f34 from'./permissions';import{getTranslation as _0x4ed55e}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x3842d9{static get['pluginName'](){return _0x14b9('0x1a');}static get[_0x14b9('0x3')](){return[_0x138f34];}constructor(_0x23f54d){super(_0x23f54d),this[_0x14b9('0x36')][_0x14b9('0x13')][_0x14b9('0x2b')](_0x14b9('0x4'),_0x14b9('0xc')),this[_0x14b9('0x36')]['config']['define'](_0x14b9('0xe'),0x8),this[_0x14b9('0x8')]=new _0x1c0ceb(),this[_0x14b9('0x10')]=_0x23f54d['locale'],this[_0x14b9('0x9')]=null,this['_lastColor']=0x0,this[_0x14b9('0x15')]=null,this['decorate'](_0x14b9('0x2'));}['init'](){const _0x1b7952=this[_0x14b9('0x36')];this[_0x14b9('0x12')]=_0x1b7952['config'][_0x14b9('0xd')](_0x14b9('0x12'));const _0x1afc32=['licenseKeyTrial',_0x14b9('0x33'),_0x14b9('0x16'),'licenseKeyTrialLimit:operations',_0x14b9('0x24'),_0x14b9('0x2c')];this[_0x14b9('0x9')]=setInterval(()=>{let _0x1beb3f;for(const _0x3533ae in _0x1b7952){const _0x44c3a1=_0x1b7952[_0x3533ae];if(_0x1afc32[_0x14b9('0x1d')](_0x44c3a1)){delete _0x1b7952[_0x3533ae],_0x1beb3f=_0x44c3a1;break;}}if('licenseKeyInvalid'===_0x1beb3f)throw clearInterval(this[_0x14b9('0x9')]),new _0x5bb938(_0x14b9('0x20'),null);if(_0x14b9('0x35')===_0x1beb3f&&console[_0x14b9('0x6')]('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.'),_0x14b9('0x1e')===_0x1beb3f)throw clearInterval(this[_0x14b9('0x9')]),new _0x5bb938(_0x14b9('0x18'),null);if('licenseKeyTrialLimit:time'===_0x1beb3f)throw clearInterval(this[_0x14b9('0x9')]),new _0x5bb938('trial-license-key-reached-limit-time',null);if(_0x14b9('0x2c')===_0x1beb3f)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x5bb938('trial-license-key-reached-limit-revisions',null);_0x14b9('0x16')===_0x1beb3f&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this[_0x14b9('0x15')]?null:this['getUser'](this[_0x14b9('0x15')]);}[_0x14b9('0x22')]({id:_0x3ad978,name:_0x5ec2e5,..._0x207ce7}){if(!_0x3ad978||_0x14b9('0x11')!=typeof _0x3ad978)throw new _0x5bb938(_0x14b9('0xa'));if(this[_0x14b9('0x8')][_0x14b9('0x17')](_0x3ad978))throw new _0x5bb938(_0x14b9('0x2d'),null,{'id':_0x3ad978});const _0x374310={..._0x207ce7,'id':_0x3ad978,'name':a(this['_locale'],_0x5ec2e5),'color':this[_0x14b9('0x2e')]()};_0x374310[_0x14b9('0x0')]=a(this[_0x14b9('0x10')],_0x374310['name']);const _0x9c1d87=new User(_0x374310);return this[_0x14b9('0x8')]['add'](_0x9c1d87),_0x9c1d87;}[_0x14b9('0x21')](_0xf9cbc3){return this[_0x14b9('0x8')][_0x14b9('0xd')](_0xf9cbc3);}[_0x14b9('0x28')](){const _0x5a45c2=this[_0x14b9('0x36')][_0x14b9('0x13')]['get'](_0x14b9('0x4'));this[_0x14b9('0x15')]||this[_0x14b9('0x1b')](_0x5a45c2);}[_0x14b9('0x1b')](_0x300e63){if(this[_0x14b9('0x15')])throw new _0x5bb938(_0x14b9('0x25'),null);if(!this[_0x14b9('0x21')](_0x300e63))throw new _0x5bb938(_0x14b9('0x1f'),null);this[_0x14b9('0x15')]=_0x300e63;}[_0x14b9('0x2')](){return this['me'];}[_0x14b9('0x2a')](){super[_0x14b9('0x2a')](),clearInterval(this[_0x14b9('0x9')]);}[_0x14b9('0x2e')](){const _0x395ebb=this['context']['config']['get'](_0x14b9('0xe'));return this['_lastColor']>=_0x395ebb&&(this['_lastColor']=0x0),new u(this[_0x14b9('0x30')]++);}['_addAnonymousUser'](){const _0x2a7847=this[_0x14b9('0x36')]['config'][_0x14b9('0xd')](_0x14b9('0x4'));this['addUser']({'id':_0x2a7847,'name':_0x4ed55e(this[_0x14b9('0x10')],_0x14b9('0x14'))})[_0x14b9('0x26')]=!0x0;}}export class User{constructor(_0x940cc5){this['id']=_0x940cc5['id'],this[_0x14b9('0x19')]=_0x940cc5[_0x14b9('0x19')],this[_0x14b9('0x0')]=_0x940cc5[_0x14b9('0x0')],this[_0x14b9('0x27')]=_0x940cc5[_0x14b9('0x27')],this['_isAnonymous']=!0x1;}get[_0x14b9('0xb')](){return this[_0x14b9('0x26')];}get['initials'](){const _0xb080e2=this[_0x14b9('0x0')][_0x14b9('0x31')]('\x20');return 0x1===_0xb080e2['length']?this[_0x14b9('0x1c')](_0xb080e2[0x0]):this['_getInitial'](_0xb080e2[0x0])+this['_getInitial'](_0xb080e2[_0xb080e2[_0x14b9('0x23')]-0x1]);}[_0x14b9('0x1c')](_0x403ba0){return _0x403ba0[_0x14b9('0x7')](0x0)[_0x14b9('0x5')]();}}function a(_0x38452d,_0x50cb54=''){return''==(_0x50cb54=_0x50cb54[_0x14b9('0x1')]())?_0x4ed55e(_0x38452d,_0x14b9('0x14')):_0x50cb54;}class u{constructor(_0x5adad1){this[_0x14b9('0xf')]=_0x5adad1;}['getBackgroundColorClass'](){return _0x14b9('0x32')+this[_0x14b9('0xf')];}['getSelectionClass'](){return _0x14b9('0x29')+this[_0x14b9('0xf')];}[_0x14b9('0x2f')](){return _0x14b9('0x34')+this['_id'];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x17d0ef,_0x16d357){const t=_0x17d0ef['t'];switch(_0x16d357){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'';}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
var
|
23
|
+
var _0x3f30=['destroy','isConfirm','render','message','cancel','registerChild','element','_removeConfirm','fire','appendChild','locale','submit','confirmView','once','focus'];(function(_0x14c805,_0x3f30af){var _0x3bb324=function(_0x4c1f0f){while(--_0x4c1f0f){_0x14c805['push'](_0x14c805['shift']());}};_0x3bb324(++_0x3f30af);}(_0x3f30,0xbb));var _0x3bb3=function(_0x14c805,_0x3f30af){_0x14c805=_0x14c805-0x0;var _0x3bb324=_0x3f30[_0x14c805];return _0x3bb324;};import _0x215f44 from'./confirmview';export default function m(_0x94deb7){return class extends _0x94deb7{['showConfirm'](_0x3ce18c,_0x87127d){return this[_0x3bb3('0x5')]=new _0x215f44(this[_0x3bb3('0x3')]),this[_0x3bb3('0x5')][_0x3bb3('0xa')](),this[_0x3bb3('0x5')][_0x3bb3('0xb')]=_0x3ce18c,this[_0x3bb3('0x5')][_0x3bb3('0x6')](_0x3bb3('0xc'),()=>{this[_0x3bb3('0x0')]();}),this[_0x3bb3('0x5')][_0x3bb3('0x6')](_0x3bb3('0x4'),()=>{this['_removeConfirm']();}),_0x87127d[_0x3bb3('0x2')](this['confirmView']['element']),this[_0x3bb3('0xd')](this[_0x3bb3('0x5')]),this[_0x3bb3('0xe')][_0x3bb3('0x7')](),this['set'](_0x3bb3('0x9'),!0x0),new Promise(_0x2f1dcb=>this[_0x3bb3('0x5')]['on'](_0x3bb3('0x4'),_0x2f1dcb));}['cancelConfirm'](){this['isConfirm']&&this[_0x3bb3('0x5')][_0x3bb3('0x1')](_0x3bb3('0xc'));}[_0x3bb3('0x0')](){this['element']&&this[_0x3bb3('0x5')]&&this[_0x3bb3('0x5')][_0x3bb3('0xe')]&&(this[_0x3bb3('0xe')]['focus'](),this['confirmView'][_0x3bb3('0xe')]['remove'](),this['deregisterChild'](this['confirmView']),this[_0x3bb3('0x9')]=!0x1,this[_0x3bb3('0x5')][_0x3bb3('0x8')](),this[_0x3bb3('0x5')]=void 0x0);}};}
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2cef=['submitView','ck-thread__remove-confirm','div','setTemplate','check','message','bindTemplate','icon','cancel','set','label','cancelView','Yes','_createButtonView'];(function(_0x19f8ff,_0x2ceff1){const _0xfb290e=function(_0x4e1c83){while(--_0x4e1c83){_0x19f8ff['push'](_0x19f8ff['shift']());}};_0xfb290e(++_0x2ceff1);}(_0x2cef,0xd1));const _0xfb29=function(_0x19f8ff,_0x2ceff1){_0x19f8ff=_0x19f8ff-0x0;let _0xfb290e=_0x2cef[_0x19f8ff];return _0xfb290e;};import{View as _0x4c0e5f,ButtonView as _0x2cfd43}from'ckeditor5/src/ui';import{icons as _0x23b22b}from'ckeditor5/src/core';import{getTranslation as _0x5e4758}from'./common-translations';export default class h extends _0x4c0e5f{constructor(_0x1c1a22){super(_0x1c1a22);const _0x1e548e=this[_0xfb29('0x7')];this[_0xfb29('0x1')]=this[_0xfb29('0x0')](_0x1c1a22,_0x5e4758(_0x1c1a22,_0xfb29('0xd')),_0x23b22b[_0xfb29('0x5')],'submit'),this[_0xfb29('0xc')]=this['_createButtonView'](_0x1c1a22,_0x5e4758(_0x1c1a22,'No'),_0x23b22b[_0xfb29('0x9')],'cancel'),this[_0xfb29('0xa')](_0xfb29('0x6'),_0x5e4758(_0x1c1a22,'Are\x20you\x20sure?')),this[_0xfb29('0x4')]({'tag':_0xfb29('0x3'),'attributes':{'class':[_0xfb29('0x2')]},'children':[{'tag':_0xfb29('0x3'),'attributes':{'class':'ck-thread__remove-confirm-inner'},'children':[{'tag':'p','children':[{'text':_0x1e548e['to'](_0xfb29('0x6'))}]},{'tag':'div','attributes':{'class':'ck-thread__remove-confirm-actions'},'children':[this['submitView'],this[_0xfb29('0xc')]]}]}]});}[_0xfb29('0x0')](_0x25349c,_0xf4f174,_0x57e46e,_0x35df6f){const _0x4a4af1=new _0x2cfd43(_0x25349c);return _0x4a4af1[_0xfb29('0xb')]=_0xf4f174,_0x4a4af1[_0xfb29('0x8')]=_0x57e46e,_0x4a4af1['extendTemplate']({'attributes':{'class':'ck-thread__remove-confirm-'+_0x35df6f}}),_0x4a4af1['on']('execute',()=>this['fire'](_0x35df6f)),_0x4a4af1;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2265=['\x27Today\x27\x20hh:mma','invalid-date-time-format','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','MM-dd-yyyy\x20hh:mma','string','function'];(function(_0x2f4642,_0x2265ea){const _0x3420a7=function(_0x453433){while(--_0x453433){_0x2f4642['push'](_0x2f4642['shift']());}};_0x3420a7(++_0x2265ea);}(_0x2265,0x12a));const _0x3420=function(_0x2f4642,_0x2265ea){_0x2f4642=_0x2f4642-0x0;let _0x3420a7=_0x2265[_0x2f4642];return _0x3420a7;};import _0x210147 from'date-fns/format';import _0x3f7a75 from'date-fns/parseISO';import _0x53b375 from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x2985f4}from'ckeditor5/src/utils';export default function E(_0x197347={}){if(void 0x0!==_0x197347['dateTimeFormat']&&_0x3420('0x5')!=typeof _0x197347[_0x3420('0x0')])throw new _0x2985f4(_0x3420('0x7'));return _0x72041e=>{const _0x4101d7=_0x3420('0x4')==typeof _0x72041e?_0x3f7a75(_0x72041e):_0x72041e,_0x41f560=new Date(),_0x25024c=_0x53b375(_0x41f560,_0x4101d7);return _0x197347[_0x3420('0x0')]?_0x197347[_0x3420('0x0')](_0x4101d7):_0x210147(_0x4101d7,0x0===_0x25024c?_0x3420('0x6'):0x1===_0x25024c?_0x3420('0x1'):_0x25024c<0x7?_0x3420('0x2'):_0x3420('0x3'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2dd2=['mapper','domElement','from','view','filter','name','item','domConverter','values','mapViewToDom','length','markerNameToElements','map','sort','push'];(function(_0x34ef7f,_0x2dd20c){const _0x24509e=function(_0x31ee93){while(--_0x31ee93){_0x34ef7f['push'](_0x34ef7f['shift']());}};_0x24509e(++_0x2dd20c);}(_0x2dd2,0x142));const _0x2450=function(_0x34ef7f,_0x2dd20c){_0x34ef7f=_0x34ef7f-0x0;let _0x24509e=_0x2dd2[_0x34ef7f];return _0x24509e;};import{first as _0x46db6a}from'ckeditor5/src/utils';export default function k(_0x419afa,_0x32dbb9){const _0x17238a=_0x419afa[_0x2450('0x8')]['markerNameToElements'](_0x32dbb9[_0x2450('0xd')]);if(!_0x17238a)return null;const _0x2c4b2f=_0x46db6a(_0x17238a[_0x2450('0x1')]());return _0x419afa[_0x2450('0xb')][_0x2450('0x0')][_0x2450('0x2')](_0x2c4b2f)||null;}export function getAllMarkersDomElementsSorted(_0x561694,_0x258f07){if(0x0===_0x258f07[_0x2450('0x3')])return null;const _0x17b27b=[],_0x2433c4=_0x561694[_0x2450('0xb')]['domConverter'];for(const _0xf11406 of _0x258f07){const _0x5adb7b=_0x561694[_0x2450('0x8')][_0x2450('0x4')](_0xf11406[_0x2450('0xd')]);if(!_0x5adb7b)continue;const _0x535f59=Array[_0x2450('0xa')](_0x5adb7b)[_0x2450('0x5')](_0x2acb0d=>_0x2433c4[_0x2450('0x2')](_0x2acb0d))[_0x2450('0xc')](_0x2e30a0=>!!_0x2e30a0);_0x17b27b[_0x2450('0x7')](..._0x535f59);}if(0x0===_0x17b27b[_0x2450('0x3')])return null;const _0x649529=[];for(const _0x397e5d of _0x17b27b){const _0x49c2d3=_0x397e5d['getClientRects']()[_0x2450('0xe')](0x0);_0x49c2d3&&_0x649529[_0x2450('0x7')]({'x':_0x49c2d3['x'],'y':_0x49c2d3['y'],'domElement':_0x397e5d});}return 0x0===_0x649529['length']?null:(_0x649529[_0x2450('0x6')]((_0x21e681,_0x6fd0fd)=>_0x21e681['y']-_0x6fd0fd['y']||_0x21e681['x']-_0x6fd0fd['x']),_0x649529['map'](_0x59f1e0=>_0x59f1e0[_0x2450('0x9')]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2431=['boolean','keys','sign','string','object','isArray','toString','charCodeAt','number'];(function(_0x513955,_0x243157){const _0x4984dc=function(_0x116d9d){while(--_0x116d9d){_0x513955['push'](_0x513955['shift']());}};_0x4984dc(++_0x243157);}(_0x2431,0x1b9));const _0x4984=function(_0x513955,_0x243157){_0x513955=_0x513955-0x0;let _0x4984dc=_0x2431[_0x513955];return _0x4984dc;};export default function b(_0x4a60ea){let _0x1527d3=0x0,_0x195f77=0x0;for(const _0x9345ac of g(_0x4a60ea))_0x1527d3=(_0x1527d3<<0x5)-_0x1527d3+_0x9345ac,_0x1527d3&=_0x1527d3,[_0x1527d3,_0x195f77]=[_0x195f77,_0x1527d3];return O(_0x1527d3)+O(_0x195f77);}function*j(_0x553433){_0x553433?_0x4984('0x0')==typeof _0x553433?yield 0x1:Array[_0x4984('0x5')](_0x553433)?yield*function*(_0x5583b7){for(const _0x19af5d of _0x5583b7)yield*j(_0x19af5d);}(_0x553433):_0x4984('0x4')==typeof _0x553433?yield*g(_0x553433):_0x4984('0x3')==typeof _0x553433?yield*A(_0x553433):_0x4984('0x8')==typeof _0x553433&&(yield _0x553433):yield 0x0;}function*g(_0x3f7582){if(yield M('{'),_0x3f7582){const _0x332390=Object[_0x4984('0x1')](_0x3f7582)['sort']();for(const _0x1b3a91 of _0x332390){yield*A(_0x1b3a91),yield M(':');const _0x38172c=_0x3f7582[_0x1b3a91];yield*j(_0x38172c);}}yield M('}');}function*A(_0x370033){yield M('\x22');for(const _0x4e33e2 of _0x370033)yield M(_0x4e33e2);yield M('\x22');}function M(_0x1a8b67){return _0x1a8b67[_0x4984('0x7')](0x0);}function O(_0x3658ae){return(_0x3658ae*=Math[_0x4984('0x2')](_0x3658ae))[_0x4984('0x6')](0x24);}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x38d6=['requires','concat','extraPlugins','WProofreader','WordCount','constructor','set','filter','get','map','builtinPlugins','pluginName','string','config','plugins','WebSocketGateway','from','includes','context','_context','find','names','rootsAttributes','every'];(function(_0x24fbdb,_0x38d6a2){const _0x2fc42a=function(_0x4a5ea5){while(--_0x4a5ea5){_0x24fbdb['push'](_0x24fbdb['shift']());}};_0x2fc42a(++_0x38d6a2);}(_0x38d6,0xff));const _0x2fc4=function(_0x24fbdb,_0x38d6a2){_0x24fbdb=_0x24fbdb-0x0;let _0x2fc42a=_0x38d6[_0x24fbdb];return _0x2fc42a;};const w=['initialData',_0x2fc4('0x3'),'toolbar',_0x2fc4('0x7')],W=[_0x2fc4('0x0'),'RevisionTracker','Autosave',_0x2fc4('0xd'),'DocumentOutline',_0x2fc4('0xc')];function v(_0x2a53fa,_0x408bc6,_0x464820,_0x14ca5a=[]){const _0x59cfa5=_0x2fc4('0x15')==typeof _0x2a53fa?_0x464820['get'](_0x2a53fa)['constructor']:_0x2a53fa,_0x194f37=_0x59cfa5[_0x2fc4('0x14')]||_0x59cfa5['name'];if(_0x408bc6['has'](_0x194f37))return _0x408bc6[_0x2fc4('0x11')](_0x194f37);if(_0x408bc6[_0x2fc4('0xf')](_0x194f37,!0x0),_0x194f37&&W[_0x2fc4('0xa')](_0x14ca5a)[_0x2fc4('0x2')](_0x194f37))return _0x408bc6[_0x2fc4('0xf')](_0x194f37,!0x1),!0x1;if(!_0x59cfa5[_0x2fc4('0x9')])return _0x408bc6[_0x2fc4('0xf')](_0x194f37,!0x0),!0x0;const _0x2fc9bf=_0x59cfa5[_0x2fc4('0x9')][_0x2fc4('0x8')](_0x424bf4=>v(_0x424bf4,_0x408bc6,_0x464820,_0x14ca5a));return _0x408bc6[_0x2fc4('0xf')](_0x194f37,_0x2fc9bf),_0x2fc9bf;}export default function D(_0x751d8,_0x420b10){const _0xfe037e={};for(const _0x235fb3 of _0x751d8[_0x2fc4('0x16')][_0x2fc4('0x6')]())w[_0x2fc4('0x2')](_0x235fb3)||(_0xfe037e[_0x235fb3]=_0x751d8[_0x2fc4('0x16')][_0x2fc4('0x11')](_0x235fb3));const _0x505d9f=_0xfe037e['plugins']||[],_0x300ec0=_0x751d8[_0x2fc4('0xe')][_0x2fc4('0x13')]||[],_0x37d7f9=_0x505d9f['length']?_0x505d9f:_0x300ec0,_0x59a439=_0xfe037e[_0x2fc4('0xb')]||[];delete _0xfe037e[_0x2fc4('0xb')];const _0x140071=_0xfe037e['removePlugins']||[];delete _0xfe037e['removePlugins'];const _0x4fec6f=_0x751d8[_0x2fc4('0x4')][_0x2fc4('0x16')][_0x2fc4('0x11')](_0x2fc4('0x17'))||[],_0x15ea9f=_0x37d7f9[_0x2fc4('0xa')](_0x59a439)[_0x2fc4('0xa')](_0x4fec6f)[_0x2fc4('0x12')](_0x12717b=>_0x2fc4('0x15')==typeof _0x12717b?_0x300ec0[_0x2fc4('0x5')](_0x47211b=>_0x47211b[_0x2fc4('0x14')]==_0x12717b):_0x12717b)[_0x2fc4('0x10')](_0x5547e2=>!_0x140071[_0x2fc4('0x2')](_0x5547e2)&&!_0x140071[_0x2fc4('0x2')](_0x5547e2['pluginName'])),_0xdfab11=Array[_0x2fc4('0x1')](new Set(_0x15ea9f)),_0x1e3f9f=new Map();return _0xfe037e[_0x2fc4('0x17')]=_0xdfab11[_0x2fc4('0x10')](_0x339f73=>v(_0x339f73,_0x1e3f9f,_0x751d8[_0x2fc4('0x17')],_0x420b10)),_0xfe037e;}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x5ee0=['start','containsPosition','selection','change:range','length','focus','end','markers','push','getRange','isEqual'];(function(_0x529902,_0x5ee065){const _0x5422f7=function(_0x3ec3a9){while(--_0x3ec3a9){_0x529902['push'](_0x529902['shift']());}};_0x5422f7(++_0x5ee065);}(_0x5ee0,0x1bf));const _0x5422=function(_0x529902,_0x5ee065){_0x529902=_0x529902-0x0;let _0x5422f7=_0x5ee0[_0x529902];return _0x5422f7;};export default function q(_0x26a732,_0x22ea4f){const _0x4d460d=[];_0x26a732['document'][_0x5422('0x6')]['on'](_0x5422('0x7'),()=>{const _0x33f1a3=function(_0x5e1d0e,_0x97fa5d){const _0x3cc3a5=[];for(const _0x50f66a of _0x5e1d0e[_0x5422('0x0')]){const _0x57ac2e=_0x50f66a[_0x5422('0x2')]();(_0x57ac2e[_0x5422('0x5')](_0x97fa5d)||_0x57ac2e[_0x5422('0x4')][_0x5422('0x3')](_0x97fa5d)||_0x57ac2e[_0x5422('0xa')][_0x5422('0x3')](_0x97fa5d))&&_0x3cc3a5[_0x5422('0x1')](_0x50f66a);}return _0x3cc3a5;}(_0x26a732,_0x26a732['document'][_0x5422('0x6')][_0x5422('0x9')]),_0x3fd055=[],_0x33824d=[],_0x3b8530=[];for(const _0x4e5d75 of _0x4d460d)_0x33f1a3['includes'](_0x4e5d75)||_0x3fd055[_0x5422('0x1')](_0x4e5d75);for(const _0x5916d3 of _0x33f1a3)_0x4d460d['includes'](_0x5916d3)||_0x33824d[_0x5422('0x1')](_0x5916d3),_0x3b8530[_0x5422('0x1')](_0x5916d3);(_0x3fd055[_0x5422('0x8')]||_0x33824d[_0x5422('0x8')])&&_0x22ea4f({'left':_0x3fd055,'entered':_0x33824d}),_0x4d460d[_0x5422('0x8')]=0x0,_0x4d460d[_0x5422('0x1')](..._0x3b8530);});}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x28f0=['match','indexOf','push','replace','...','join','slice','pop','startsWith','length'];(function(_0x50e57e,_0x28f092){const _0x36df45=function(_0x232f8b){while(--_0x232f8b){_0x50e57e['push'](_0x50e57e['shift']());}};_0x36df45(++_0x28f092);}(_0x28f0,0x79));const _0x36df=function(_0x50e57e,_0x28f092){_0x50e57e=_0x50e57e-0x0;let _0x36df45=_0x28f0[_0x50e57e];return _0x36df45;};export default function z(_0x24ec7c,{limit:_0x84f7fc,suffix:_0x10941f=_0x36df('0x3')}){const _0x1710b5=[];let _0x368712=0x0;const _0x17e07b=_0x24ec7c[_0x36df('0x2')](/</g,'\x0a<')[_0x36df('0x2')](/>/g,'>\x0a')[_0x36df('0x2')](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x4f5889=0x0;_0x4f5889<_0x17e07b[_0x36df('0x8')];_0x4f5889++){let _0x5ae949=_0x17e07b[_0x4f5889];const _0x3ce279=Z(_0x5ae949);if(_0x5ae949[_0x36df('0x7')]('<')){if(_0x368712>=_0x84f7fc){const _0x114fcb=_0x5ae949[_0x36df('0x9')](/[a-zA-Z]+/);if(!_0x114fcb){_0x17e07b[_0x4f5889]='';continue;}const _0xd5cf68=_0x114fcb[0x0];_0x5ae949[_0x36df('0x7')]('</')?(_0x1710b5['length']&&(_0x5ae949=''),_0x1710b5[_0x36df('0x6')]()):(_0x1710b5[_0x36df('0x1')](_0xd5cf68),_0x5ae949='');}}else{if(_0x368712>=_0x84f7fc)_0x5ae949='';else{if(_0x368712+_0x3ce279['length']>=_0x84f7fc){let _0x5c2a70=_0x84f7fc-_0x368712;if('\x20'===_0x3ce279[_0x5c2a70-0x1])_0x5c2a70--;else{const _0x3b13f6=_0x3ce279[_0x36df('0x5')](_0x5c2a70)[_0x36df('0x0')]('\x20');-0x1!==_0x3b13f6?_0x5c2a70+=_0x3b13f6:_0x5c2a70=_0x5ae949['length'];}_0x5ae949=_0x3ce279[_0x36df('0x5')](0x0,_0x5c2a70)[_0x36df('0x4')]('')+_0x10941f,_0x368712=_0x84f7fc;}else _0x368712+=_0x3ce279[_0x36df('0x8')];}}_0x17e07b[_0x4f5889]=_0x5ae949;}return _0x17e07b[_0x36df('0x4')]('\x0a')[_0x36df('0x2')](/\n/g,'');}function Z(_0x1df8d7){const _0x4ab102=[];for(let _0x136afe=0x0;_0x136afe<_0x1df8d7[_0x36df('0x8')];_0x136afe++){const _0x5f3527=_0x1df8d7['substring'](_0x136afe)[_0x36df('0x9')](/^&[a-z0-9#]+;/);if(_0x5f3527){const _0x153097=_0x5f3527[0x0];_0x4ab102[_0x36df('0x1')](_0x153097),_0x136afe+=_0x153097['length']-0x1;}else _0x4ab102[_0x36df('0x1')](_0x1df8d7[_0x136afe]);}return _0x4ab102;}
|