@ckeditor/ckeditor5-collaboration-core 35.2.1 → 35.3.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 +1 -1
- package/package.json +2 -2
- package/src/index.js +1 -1
- 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 +23 -0
- package/src/utils/trim-html.js +1 -1
- package/theme/icons/notification.svg +11 -0
- package/theme/integrations/table.css +91 -47
- package/theme/users.css +29 -1
package/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
-
All changes in the package are documented at https://
|
4
|
+
All changes in the package are documented at https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
|
5
5
|
|
6
6
|
Changes for the past releases are available below.
|
7
7
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-collaboration-core",
|
3
|
-
"version": "35.
|
3
|
+
"version": "35.3.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/)",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
],
|
29
29
|
"main": "src/index.js",
|
30
30
|
"dependencies": {
|
31
|
-
"ckeditor5": "^35.
|
31
|
+
"ckeditor5": "^35.3.0",
|
32
32
|
"date-fns": "^2.17.0"
|
33
33
|
}
|
34
34
|
}
|
package/src/index.js
CHANGED
@@ -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}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export*from'./suggestionstyles';
|
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}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';
|
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x2584=['includes','noPermissions','enableReadOnlyMode','has','context','plugins','config','no-permissions','CommentsOnly','setAdminPermissions','editors','find','commands','disableReadOnlyMode','clearForceDisabled','get','setPermissions','isEnabled','collaboration.channelId','comment:write','addCommentThread','document:write','Permissions','CommentsRepository'];(function(_0x18fc95,_0x2584c4){const _0x2415ad=function(_0x3c6927){while(--_0x3c6927){_0x18fc95['push'](_0x18fc95['shift']());}};_0x2415ad(++_0x2584c4);}(_0x2584,0xcd));const _0x2415=function(_0x18fc95,_0x2584c4){_0x18fc95=_0x18fc95-0x0;let _0x2415ad=_0x2584[_0x18fc95];return _0x2415ad;};import{ContextPlugin as _0x158da0,Editor as _0x42d238}from'ckeditor5/src/core';import{CKEditorError as _0x3963e0}from'ckeditor5/src/utils';export default class i extends _0x158da0{static get['pluginName'](){return _0x2415('0x9');}[_0x2415('0x3')](_0x17f4c3,_0x43d33d){let _0x5827f0;if(_0x43d33d||(_0x43d33d=this[_0x2415('0xf')][_0x2415('0x11')][_0x2415('0x2')]('collaboration.channelId')),this[_0x2415('0xf')][_0x2415('0x11')]['get'](_0x2415('0x5'))==_0x43d33d?_0x5827f0=this[_0x2415('0xf')]:this[_0x2415('0xf')][_0x2415('0x15')]&&(_0x5827f0=this['context'][_0x2415('0x15')][_0x2415('0x16')](_0x38b8a1=>_0x38b8a1[_0x2415('0x11')][_0x2415('0x2')](_0x2415('0x5'))==_0x43d33d)),!_0x5827f0)throw new _0x3963e0('permissions-set-permissions-invalid-channel-id',null);const _0x42bbd9=_0x5827f0[_0x2415('0x10')],_0x25bb08=_0x5827f0 instanceof _0x42d238,_0x56aa47=_0x42bbd9[_0x2415('0xe')](_0x2415('0xa'))&&_0x42bbd9[_0x2415('0x2')](_0x2415('0xa')),_0x517a49=_0x42bbd9[_0x2415('0xe')](_0x2415('0x13'))&&_0x42bbd9[_0x2415('0x2')]('CommentsOnly'),_0x49b455=_0x17f4c3[_0x2415('0xb')](_0x2415('0x8')),_0x2ce56e=_0x17f4c3['includes']('comment:admin'),_0x42a874=_0x17f4c3[_0x2415('0xb')](_0x2415('0x6'))||_0x2ce56e;(_0x517a49&&(_0x517a49[_0x2415('0x4')]=!_0x49b455&&_0x42a874),_0x25bb08)&&(!(_0x49b455||_0x42a874&&_0x56aa47)?_0x5827f0[_0x2415('0xd')](_0x2415('0x12')):_0x5827f0[_0x2415('0x0')](_0x2415('0x12')));if(_0x56aa47){_0x56aa47['switchReadOnly'](!_0x42a874,_0x43d33d),_0x56aa47[_0x2415('0x14')](_0x2ce56e,_0x43d33d);const _0x4bfae6=_0x25bb08&&_0x5827f0[_0x2415('0x17')]['get'](_0x2415('0x7'));_0x4bfae6&&(_0x42a874?_0x4bfae6[_0x2415('0x1')](_0x2415('0xc')):_0x4bfae6['forceDisabled']('noPermissions'));}}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x436e=['ck-user__icon','div','notificationView','ck-user__notification','initials','ck-user__avatar','ck-user','ck\x20ck-user__name','push','avatar','name','ck\x20ck-user__name\x20ck-user__name--hidden','setTemplate','ck-user__anonymous','ck-user__img','content','isAnonymous'];(function(_0xce8789,_0x436e26){const _0x1cc5db=function(_0x848734){while(--_0x848734){_0xce8789['push'](_0xce8789['shift']());}};_0x1cc5db(++_0x436e26);}(_0x436e,0x9a));const _0x1cc5=function(_0xce8789,_0x436e26){_0xce8789=_0xce8789-0x0;let _0x1cc5db=_0x436e[_0xce8789];return _0x1cc5db;};import{View as _0x19f798,IconView as _0x2a819f}from'ckeditor5/src/ui';import _0x171661 from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class w extends _0x19f798{constructor(_0x446e12,_0x4d39f4,_0x5d6d37){super(_0x446e12),this[_0x1cc5('0x9')]=_0x4d39f4[_0x1cc5('0x9')],this[_0x1cc5('0x1')]=null;const _0x488671=['ck',_0x1cc5('0xd')];if(_0x4d39f4[_0x1cc5('0xf')]&&_0x488671[_0x1cc5('0x7')](_0x1cc5('0xc')),_0x4d39f4[_0x1cc5('0x8')]&&_0x488671[_0x1cc5('0x7')](_0x1cc5('0x4')),_0x5d6d37){const _0x157211=new _0x2a819f();_0x157211['extendTemplate']({'attributes':{'class':[_0x1cc5('0x10')]}}),_0x157211[_0x1cc5('0xe')]=_0x171661,this[_0x1cc5('0x1')]={'tag':_0x1cc5('0x0'),'attributes':{'class':['ck',_0x1cc5('0x2')],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x5d6d37},'children':[_0x157211]};}const _0x3eb71d=[{'tag':_0x1cc5('0x0'),'attributes':{'class':_0x488671,'style':{'background-image':_0x4d39f4[_0x1cc5('0x8')]?'url(\x27'+_0x4d39f4['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x4d39f4[_0x1cc5('0x8')]?_0x1cc5('0xa'):_0x1cc5('0x6')},'children':[{'text':_0x4d39f4[_0x1cc5('0x3')]}]}];this[_0x1cc5('0x1')]&&_0x3eb71d[_0x1cc5('0x7')](this[_0x1cc5('0x1')]),this[_0x1cc5('0xb')]({'tag':'div','attributes':{'class':['ck',_0x1cc5('0x5')],'data-user-id':_0x4d39f4['id']},'children':_0x3eb71d});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0xbeb5=['licenseKeyTrialLimit:time','_getNextColor','ck-user__selection--','split','trial-license-key-reached-limit-changes','Anonymous','anonymous-user','info','ck-user__bg-color--','_getInitial','invalid-license-key','length','destroy','users-add-invalid-id','Users','getUser','users-me-already-defined','name','useAnonymousUser','users.colorsCount','_isAnonymous','licenseKeyValid','has','charAt','_locale','users-add-duplicated-id','_lastColor','licenseKeyTrialLimit:operations','_addAnonymousUser','getSelectionClass','addUser','users-me-missing-user','init','assign','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.','trial-license-key-reached-limit-revisions','requires','string','trial-license-key-reached-limit-time','_myId','licenseKeyInvalid','define','_id','config','licenseKeyTrial','pluginName','defineMe','context','locale','licenseKeyTrialLimit:revisions','users','trim','_licenseKeyCheckInterval','licenseKey','get','color','getBackgroundColorClass','users.anonymousUserId','isAnonymous','avatar'];(function(_0x49c218,_0xbeb549){const _0x5db873=function(_0x3799e0){while(--_0x3799e0){_0x49c218['push'](_0x49c218['shift']());}};_0x5db873(++_0xbeb549);}(_0xbeb5,0x19a));const _0x5db8=function(_0x49c218,_0xbeb549){_0x49c218=_0x49c218-0x0;let _0x5db873=_0xbeb5[_0x49c218];return _0x5db873;};import{ContextPlugin as _0x5104ea}from'ckeditor5/src/core';import{Collection as _0x5ecafa,CKEditorError as _0x4035f6}from'ckeditor5/src/utils';import _0x4d4199 from'./permissions';import{getTranslation as _0x4e8bf5}from'./utils/common-translations';import'../theme/usercolors.css';export default class l extends _0x5104ea{static get[_0x5db8('0x37')](){return _0x5db8('0x18');}static get[_0x5db8('0x2e')](){return[_0x4d4199];}constructor(_0x5803c8){super(_0x5803c8),_0x5803c8[_0x5db8('0x35')][_0x5db8('0x33')](_0x5db8('0x7'),_0x5db8('0x10')),_0x5803c8[_0x5db8('0x35')][_0x5db8('0x33')](_0x5db8('0x1d'),0x8),this[_0x5db8('0x0')]=new _0x5ecafa(),this[_0x5db8('0x22')]=_0x5803c8[_0x5db8('0x3a')],this[_0x5db8('0x2')]=null,this['_lastColor']=0x0,this[_0x5db8('0x31')]=null,this['decorate']('getOperationAuthor');}[_0x5db8('0x2a')](){const _0x8031a4=this['context'];this['licenseKey']=_0x8031a4[_0x5db8('0x35')][_0x5db8('0x4')](_0x5db8('0x3'));const _0x44e565=[_0x5db8('0x36'),_0x5db8('0x32'),_0x5db8('0x1f'),'licenseKeyTrialLimit:operations',_0x5db8('0xa'),_0x5db8('0x3b')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48ecb4;for(const _0x4893a0 in _0x8031a4){const _0x56eedf=_0x8031a4[_0x4893a0];if(_0x44e565['includes'](_0x56eedf)){delete _0x8031a4[_0x4893a0],_0x48ecb4=_0x56eedf;break;}}if(_0x5db8('0x32')===_0x48ecb4)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x4035f6(_0x5db8('0x14'),null);if('licenseKeyTrial'===_0x48ecb4&&console[_0x5db8('0x11')](_0x5db8('0x2c')),_0x5db8('0x25')===_0x48ecb4)throw clearInterval(this[_0x5db8('0x2')]),new _0x4035f6(_0x5db8('0xe'),null);if('licenseKeyTrialLimit:time'===_0x48ecb4)throw clearInterval(this[_0x5db8('0x2')]),new _0x4035f6(_0x5db8('0x30'),null);if(_0x5db8('0x3b')===_0x48ecb4)throw clearInterval(this[_0x5db8('0x2')]),new _0x4035f6(_0x5db8('0x2d'),null);_0x5db8('0x1f')===_0x48ecb4&&clearInterval(this[_0x5db8('0x2')]);},0x3e8),this['_addAnonymousUser']();}get['me'](){return null==this['_myId']?null:this['getUser'](this[_0x5db8('0x31')]);}['addUser'](_0x1552a1){if(!(_0x1552a1=Object[_0x5db8('0x2b')]({},_0x1552a1,{'color':this[_0x5db8('0xb')]()}))['id']||_0x5db8('0x2f')!=typeof _0x1552a1['id'])throw new _0x4035f6(_0x5db8('0x17'));if(this[_0x5db8('0x0')][_0x5db8('0x20')](_0x1552a1['id']))throw new _0x4035f6(_0x5db8('0x23'),null,{'id':_0x1552a1['id']});_0x1552a1[_0x5db8('0x1b')]=function(_0x3e8c02,_0xbb7ff0=''){return''==(_0xbb7ff0=_0xbb7ff0[_0x5db8('0x1')]())?_0x4e8bf5(_0x3e8c02,'Anonymous'):_0xbb7ff0;}(this[_0x5db8('0x22')],_0x1552a1[_0x5db8('0x1b')]);const _0x5b0296=new u(_0x1552a1);return this[_0x5db8('0x0')]['add'](_0x5b0296),_0x5b0296;}[_0x5db8('0x19')](_0x277ab9){return this[_0x5db8('0x0')]['get'](_0x277ab9);}[_0x5db8('0x1c')](){const _0x5e343e=this[_0x5db8('0x39')][_0x5db8('0x35')][_0x5db8('0x4')](_0x5db8('0x7'));this[_0x5db8('0x31')]||this['defineMe'](_0x5e343e);}[_0x5db8('0x38')](_0x8c691c){if(this[_0x5db8('0x31')])throw new _0x4035f6(_0x5db8('0x1a'),null);if(!this[_0x5db8('0x19')](_0x8c691c))throw new _0x4035f6(_0x5db8('0x29'),null);this['_myId']=_0x8c691c;}['getOperationAuthor'](){return this['me'];}[_0x5db8('0x16')](){super[_0x5db8('0x16')](),clearInterval(this[_0x5db8('0x2')]);}[_0x5db8('0xb')](){const _0x40f13d=this['context'][_0x5db8('0x35')][_0x5db8('0x4')](_0x5db8('0x1d'));return this[_0x5db8('0x24')]>=_0x40f13d&&(this[_0x5db8('0x24')]=0x0),new a(this[_0x5db8('0x24')]++);}[_0x5db8('0x26')](){const _0x41faf6=this[_0x5db8('0x39')][_0x5db8('0x35')][_0x5db8('0x4')](_0x5db8('0x7'));this[_0x5db8('0x28')]({'id':_0x41faf6,'name':_0x4e8bf5(this[_0x5db8('0x22')],_0x5db8('0xf'))})[_0x5db8('0x1e')]=!0x0;}}class u{constructor(_0x1ec12c){this['id']=_0x1ec12c['id'],this[_0x5db8('0x5')]=_0x1ec12c[_0x5db8('0x5')],this[_0x5db8('0x1b')]=_0x1ec12c[_0x5db8('0x1b')],this[_0x5db8('0x9')]=_0x1ec12c[_0x5db8('0x9')],this['_isAnonymous']=!0x1;}get[_0x5db8('0x8')](){return this[_0x5db8('0x1e')];}get['initials'](){const _0x54b8be=this[_0x5db8('0x1b')][_0x5db8('0xd')]('\x20');return 0x1===_0x54b8be['length']?this[_0x5db8('0x13')](_0x54b8be[0x0]):this[_0x5db8('0x13')](_0x54b8be[0x0])+this[_0x5db8('0x13')](_0x54b8be[_0x54b8be[_0x5db8('0x15')]-0x1]);}[_0x5db8('0x13')](_0x4c9d4c){return _0x4c9d4c[_0x5db8('0x21')](0x0)['toUpperCase']();}}class a{constructor(_0x51ab23){this['_id']=_0x51ab23;}[_0x5db8('0x6')](){return _0x5db8('0x12')+this[_0x5db8('0x34')];}[_0x5db8('0x27')](){return _0x5db8('0xc')+this['_id'];}['getMarkerClass'](){return'ck-user__marker--'+this[_0x5db8('0x34')];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x579541,_0x1a93c2){const t=_0x579541['t'];switch(_0x1a93c2){case'Anonymous':return t('Anonymous');case'Yes':return t('Yes');case'No':return t('No');case'Are\x20you\x20sure?':return t('Are\x20you\x20sure?');}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
var
|
23
|
+
var _0x47aa=['appendChild','message','render','destroy','once','isConfirm','set','_removeConfirm','confirmView','element','cancel','locale','submit','remove'];(function(_0x4dcbcd,_0x47aa7a){var _0x1581ee=function(_0x1e6274){while(--_0x1e6274){_0x4dcbcd['push'](_0x4dcbcd['shift']());}};_0x1581ee(++_0x47aa7a);}(_0x47aa,0x1ab));var _0x1581=function(_0x4dcbcd,_0x47aa7a){_0x4dcbcd=_0x4dcbcd-0x0;var _0x1581ee=_0x47aa[_0x4dcbcd];return _0x1581ee;};import _0x2826ff from'./confirmview';export default{'showConfirm'(_0x377f0a,_0x527e4d){return this[_0x1581('0x1')]=new _0x2826ff(this[_0x1581('0x4')]),this[_0x1581('0x1')][_0x1581('0x9')](),this[_0x1581('0x1')][_0x1581('0x8')]=_0x377f0a,this[_0x1581('0x1')][_0x1581('0xb')](_0x1581('0x3'),()=>{this[_0x1581('0x0')]();}),this[_0x1581('0x1')][_0x1581('0xb')](_0x1581('0x5'),()=>{this[_0x1581('0x0')]();}),_0x527e4d[_0x1581('0x7')](this[_0x1581('0x1')]['element']),this['registerChild'](this[_0x1581('0x1')]),this[_0x1581('0xd')](_0x1581('0xc'),!0x0),new Promise(_0x1699ed=>this[_0x1581('0x1')]['on'](_0x1581('0x5'),_0x1699ed));},'cancelConfirm'(){this[_0x1581('0xc')]&&this[_0x1581('0x1')]['fire'](_0x1581('0x3'));},'_removeConfirm'(){this[_0x1581('0x1')][_0x1581('0x2')][_0x1581('0x6')](),this['deregisterChild'](this['confirmView']),this['isConfirm']=!0x1,this[_0x1581('0x1')][_0x1581('0xa')](),delete this[_0x1581('0x1')];}};
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1c85=['execute','cancelView','icon','Yes','fire','submit','bindTemplate','ck-thread__remove-confirm-actions','Are\x20you\x20sure?','extendTemplate','div','ck-thread__remove-confirm-','ck-thread__remove-confirm','label','message','check','_createButtonView','submitView','set','ck-thread__remove-confirm-inner','cancel'];(function(_0x5850a8,_0x1c8591){const _0x330749=function(_0x34efdf){while(--_0x34efdf){_0x5850a8['push'](_0x5850a8['shift']());}};_0x330749(++_0x1c8591);}(_0x1c85,0x1d7));const _0x3307=function(_0x5850a8,_0x1c8591){_0x5850a8=_0x5850a8-0x0;let _0x330749=_0x1c85[_0x5850a8];return _0x330749;};import{View as _0x525a68,ButtonView as _0x20af12}from'ckeditor5/src/ui';import{icons as _0x37f330}from'ckeditor5/src/core';import{getTranslation as _0x3c1977}from'./common-translations';export default class h extends _0x525a68{constructor(_0x5e1184){super(_0x5e1184);const _0x459b3d=this[_0x3307('0x12')];this[_0x3307('0x8')]=this[_0x3307('0x7')](_0x5e1184,_0x3c1977(_0x5e1184,_0x3307('0xf')),_0x37f330[_0x3307('0x6')],_0x3307('0x11')),this[_0x3307('0xd')]=this[_0x3307('0x7')](_0x5e1184,_0x3c1977(_0x5e1184,'No'),_0x37f330[_0x3307('0xb')],_0x3307('0xb')),this[_0x3307('0x9')]('message',_0x3c1977(_0x5e1184,_0x3307('0x14'))),this['setTemplate']({'tag':_0x3307('0x1'),'attributes':{'class':[_0x3307('0x3')]},'children':[{'tag':_0x3307('0x1'),'attributes':{'class':_0x3307('0xa')},'children':[{'tag':'p','children':[{'text':_0x459b3d['to'](_0x3307('0x5'))}]},{'tag':_0x3307('0x1'),'attributes':{'class':_0x3307('0x13')},'children':[this[_0x3307('0x8')],this[_0x3307('0xd')]]}]}]});}['_createButtonView'](_0xf8aebe,_0x1791f9,_0x3e0126,_0x3662fa){const _0x1e83e0=new _0x20af12(_0xf8aebe);return _0x1e83e0[_0x3307('0x4')]=_0x1791f9,_0x1e83e0[_0x3307('0xe')]=_0x3e0126,_0x1e83e0[_0x3307('0x0')]({'attributes':{'class':_0x3307('0x2')+_0x3662fa}}),_0x1e83e0['on'](_0x3307('0xc'),()=>this[_0x3307('0x10')](_0x3662fa)),_0x1e83e0;}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x54d4=['string','dateTimeFormat','\x27Yesterday\x27\x20hh:mma','MM-dd-yyyy\x20hh:mma','\x27Today\x27\x20hh:mma'];(function(_0x43f152,_0x54d4cc){const _0x418f19=function(_0x7323d9){while(--_0x7323d9){_0x43f152['push'](_0x43f152['shift']());}};_0x418f19(++_0x54d4cc);}(_0x54d4,0x75));const _0x418f=function(_0x43f152,_0x54d4cc){_0x43f152=_0x43f152-0x0;let _0x418f19=_0x54d4[_0x43f152];return _0x418f19;};import _0x47eda8 from'date-fns/format';import _0x4c3066 from'date-fns/parseISO';import _0x156acb from'date-fns/differenceInCalendarDays';import{CKEditorError as _0x32deb3}from'ckeditor5/src/utils';export default function E(_0x575ed8={}){if(void 0x0!==_0x575ed8[_0x418f('0x4')]&&'function'!=typeof _0x575ed8['dateTimeFormat'])throw new _0x32deb3('invalid-date-time-format');return _0x48d635=>{const _0xad5d9=_0x418f('0x3')==typeof _0x48d635?_0x4c3066(_0x48d635):_0x48d635,_0x551948=new Date(),_0x4075d1=_0x156acb(_0x551948,_0xad5d9);return _0x575ed8['dateTimeFormat']?_0x575ed8['dateTimeFormat'](_0xad5d9):_0x47eda8(_0xad5d9,0x0===_0x4075d1?_0x418f('0x2'):0x1===_0x4075d1?_0x418f('0x0'):_0x4075d1<0x7?'\x27Last\x27\x20EEEE\x20hh:mma':_0x418f('0x1'));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x1a40=['values','domConverter','markerNameToElements','view','name','mapper'];(function(_0x3ab975,_0x1a40e1){const _0x579207=function(_0x19b60c){while(--_0x19b60c){_0x3ab975['push'](_0x3ab975['shift']());}};_0x579207(++_0x1a40e1);}(_0x1a40,0x15a));const _0x5792=function(_0x3ab975,_0x1a40e1){_0x3ab975=_0x3ab975-0x0;let _0x579207=_0x1a40[_0x3ab975];return _0x579207;};import{first as _0x4a3800}from'ckeditor5/src/utils';export default function x(_0x200c8b,_0x4eb65f){const _0x2e5cf3=_0x200c8b[_0x5792('0x1')][_0x5792('0x4')](_0x4eb65f[_0x5792('0x0')]),_0x2dd1fb=_0x4a3800(_0x2e5cf3[_0x5792('0x2')]());return _0x200c8b[_0x5792('0x5')][_0x5792('0x3')]['mapViewToDom'](_0x2dd1fb);}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2016 - 2022, 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 _0x4165=['toString','number','keys','sign','sort','boolean'];(function(_0x5f4807,_0x416536){const _0x17c4b9=function(_0xd81a6a){while(--_0xd81a6a){_0x5f4807['push'](_0x5f4807['shift']());}};_0x17c4b9(++_0x416536);}(_0x4165,0x1f4));const _0x17c4=function(_0x5f4807,_0x416536){_0x5f4807=_0x5f4807-0x0;let _0x17c4b9=_0x4165[_0x5f4807];return _0x17c4b9;};export default function b(_0x1aec4f){let _0x226f44=0x0,_0x3e14ed=0x0;for(const _0x487619 of g(_0x1aec4f))_0x226f44=(_0x226f44<<0x5)-_0x226f44+_0x487619,_0x226f44&=_0x226f44,[_0x226f44,_0x3e14ed]=[_0x3e14ed,_0x226f44];return O(_0x226f44)+O(_0x3e14ed);}function*j(_0x34a01e){_0x34a01e?_0x17c4('0x3')==typeof _0x34a01e?yield 0x1:Array['isArray'](_0x34a01e)?yield*function*(_0x5f2a46){for(const _0x1bcd6e of _0x5f2a46)yield*j(_0x1bcd6e);}(_0x34a01e):'object'==typeof _0x34a01e?yield*g(_0x34a01e):'string'==typeof _0x34a01e?yield*A(_0x34a01e):_0x17c4('0x5')==typeof _0x34a01e&&(yield _0x34a01e):yield 0x0;}function*g(_0x13bcb3){if(yield M('{'),_0x13bcb3){const _0x5698c0=Object[_0x17c4('0x0')](_0x13bcb3)[_0x17c4('0x2')]();for(const _0xe017e1 of _0x5698c0){yield*A(_0xe017e1),yield M(':');const _0x5af064=_0x13bcb3[_0xe017e1];yield*j(_0x5af064);}}yield M('}');}function*A(_0x49d2fc){yield M('\x22');for(const _0x25c2d6 of _0x49d2fc)yield M(_0x25c2d6);yield M('\x22');}function M(_0x146da6){return _0x146da6['charCodeAt'](0x0);}function O(_0x403884){return(_0x403884*=Math[_0x17c4('0x1')](_0x403884))[_0x17c4('0x4')](0x24);}
|
package/src/utils/trim-html.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x25bb=['indexOf','push','join','replace','length','...','split','pop','slice','substring','startsWith'];(function(_0x472db1,_0x25bbd4){const _0x28fdc5=function(_0x1c8aaf){while(--_0x1c8aaf){_0x472db1['push'](_0x472db1['shift']());}};_0x28fdc5(++_0x25bbd4);}(_0x25bb,0x18f));const _0x28fd=function(_0x472db1,_0x25bbd4){_0x472db1=_0x472db1-0x0;let _0x28fdc5=_0x25bb[_0x472db1];return _0x28fdc5;};export default function z(_0x24038a,{limit:_0x58236e,suffix:_0x4bf071=_0x28fd('0x2')}){const _0x52dad9=[];let _0x29bab5=0x0;const _0x4936a2=_0x24038a[_0x28fd('0x0')](/</g,'\x0a<')[_0x28fd('0x0')](/>/g,'>\x0a')[_0x28fd('0x0')](/^\n/g,'')[_0x28fd('0x0')](/\n$/g,'')[_0x28fd('0x3')]('\x0a');for(let _0x5e00f8=0x0;_0x5e00f8<_0x4936a2['length'];_0x5e00f8++){let _0x4d43a3=_0x4936a2[_0x5e00f8];const _0x3b906e=Z(_0x4d43a3);if(_0x4d43a3[_0x28fd('0x7')]('<')){if(_0x29bab5>=_0x58236e){const _0x158853=_0x4d43a3['match'](/[a-zA-Z]+/)[0x0];_0x4d43a3[_0x28fd('0x7')]('</')?(_0x52dad9['length']&&(_0x4d43a3=''),_0x52dad9[_0x28fd('0x4')]()):(_0x52dad9['push'](_0x158853),_0x4d43a3='');}}else{if(_0x29bab5>=_0x58236e)_0x4d43a3='';else{if(_0x29bab5+_0x3b906e[_0x28fd('0x1')]>=_0x58236e){let _0x475345=_0x58236e-_0x29bab5;if('\x20'===_0x3b906e[_0x475345-0x1])_0x475345--;else{const _0x3bea2c=_0x3b906e[_0x28fd('0x5')](_0x475345)[_0x28fd('0x8')]('\x20');-0x1!==_0x3bea2c?_0x475345+=_0x3bea2c:_0x475345=_0x4d43a3[_0x28fd('0x1')];}_0x4d43a3=_0x3b906e[_0x28fd('0x5')](0x0,_0x475345)['join']('')+_0x4bf071,_0x29bab5=_0x58236e;}else _0x29bab5+=_0x3b906e[_0x28fd('0x1')];}}_0x4936a2[_0x5e00f8]=_0x4d43a3;}return _0x4936a2[_0x28fd('0xa')]('\x0a')[_0x28fd('0x0')](/\n/g,'');}function Z(_0x14789a){const _0x37d2fd=[];for(let _0x2990fb=0x0;_0x2990fb<_0x14789a[_0x28fd('0x1')];_0x2990fb++){const _0x5f29fa=_0x14789a[_0x28fd('0x6')](_0x2990fb)['match'](/^&[a-z0-9#]+;/);if(_0x5f29fa){const _0x12e798=_0x5f29fa[0x0];_0x37d2fd[_0x28fd('0x9')](_0x12e798),_0x2990fb+=_0x12e798[_0x28fd('0x1')]-0x1;}else _0x37d2fd['push'](_0x14789a[_0x2990fb]);}return _0x37d2fd;}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!--
|
2
|
+
|
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.
|
6
|
+
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
8
|
+
|
9
|
+
!-->
|
10
|
+
|
11
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm1 15H9v-2h2v2zm0-4H9V5h2v6z"/></svg>
|
@@ -14,82 +14,126 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
-
.ck-content .ck-suggestion-marker-insertion.table
|
17
|
+
.ck-content .ck-suggestion-marker-insertion.table {
|
18
18
|
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
19
19
|
|
20
|
-
& >
|
21
|
-
background-color: var(--ck-color-suggestion-widget-
|
22
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
20
|
+
& > figcaption {
|
21
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
23
22
|
}
|
24
23
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
& > table {
|
25
|
+
& > tbody > tr > th {
|
26
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
27
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
28
|
+
}
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
& > thead > tr > th {
|
31
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
32
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
33
|
+
}
|
34
|
+
|
35
|
+
& > tbody > tr > td {
|
36
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
37
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
38
|
+
}
|
33
39
|
}
|
34
40
|
}
|
35
41
|
|
36
|
-
.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table
|
42
|
+
.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table {
|
37
43
|
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
38
44
|
|
39
|
-
& >
|
40
|
-
background-color: var(--ck-color-suggestion-widget-
|
41
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
45
|
+
& > figcaption {
|
46
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
42
47
|
}
|
43
48
|
|
44
|
-
& >
|
45
|
-
|
46
|
-
|
47
|
-
|
49
|
+
& > table {
|
50
|
+
& > tbody > tr > th {
|
51
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
52
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
53
|
+
}
|
48
54
|
|
49
|
-
|
50
|
-
|
51
|
-
|
55
|
+
& > thead > tr > th {
|
56
|
+
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
57
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
58
|
+
}
|
59
|
+
|
60
|
+
& > tbody > tr > td {
|
61
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
62
|
+
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
63
|
+
}
|
52
64
|
}
|
53
65
|
}
|
54
66
|
|
55
|
-
.ck-content .ck-suggestion-marker-deletion.table
|
67
|
+
.ck-content .ck-suggestion-marker-deletion.ck-widget.table {
|
56
68
|
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
57
69
|
|
58
|
-
& >
|
59
|
-
background-color: var(--ck-color-suggestion-widget-
|
60
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
61
|
-
text-decoration: none;
|
70
|
+
& > figcaption {
|
71
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
62
72
|
}
|
63
73
|
|
64
|
-
& >
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
74
|
+
& > table {
|
75
|
+
& > tbody > tr > th {
|
76
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
77
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
78
|
+
text-decoration: none;
|
79
|
+
}
|
69
80
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
81
|
+
& > thead > tr > th {
|
82
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
83
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
84
|
+
text-decoration: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
& > tbody > tr > td {
|
88
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
89
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
90
|
+
text-decoration: none;
|
91
|
+
}
|
92
|
+
}
|
75
93
|
}
|
76
94
|
|
77
|
-
.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table
|
95
|
+
.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table {
|
78
96
|
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
79
97
|
|
80
|
-
& >
|
81
|
-
background-color: var(--ck-color-suggestion-widget-
|
82
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
98
|
+
& > figcaption {
|
99
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
83
100
|
}
|
84
101
|
|
85
|
-
|
86
|
-
|
87
|
-
|
102
|
+
& > table {
|
103
|
+
& > tbody > tr > th {
|
104
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
105
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
106
|
+
}
|
107
|
+
|
108
|
+
& > thead > tr > th {
|
109
|
+
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
110
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
111
|
+
}
|
112
|
+
|
113
|
+
& > tbody > tr > td {
|
114
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
115
|
+
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
116
|
+
}
|
88
117
|
}
|
118
|
+
}
|
89
119
|
|
90
|
-
|
91
|
-
|
92
|
-
|
120
|
+
.ck-content .ck-widget.table > figcaption {
|
121
|
+
&.ck-suggestion-marker-deletion {
|
122
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
123
|
+
border: none;
|
124
|
+
|
125
|
+
&.ck-suggestion-marker--active {
|
126
|
+
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
&.ck-suggestion-marker-insertion {
|
131
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
132
|
+
border: none;
|
133
|
+
|
134
|
+
&.ck-suggestion-marker--active {
|
135
|
+
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
136
|
+
}
|
93
137
|
}
|
94
138
|
}
|
95
139
|
|
package/theme/users.css
CHANGED
@@ -21,7 +21,6 @@
|
|
21
21
|
align-items: center;
|
22
22
|
position: relative;
|
23
23
|
border-radius: 50%;
|
24
|
-
overflow: hidden;
|
25
24
|
background-color: var(--ck-user-avatar-background);
|
26
25
|
height: var(--ck-user-avatar-size);
|
27
26
|
width: var(--ck-user-avatar-size);
|
@@ -71,3 +70,32 @@
|
|
71
70
|
display: none;
|
72
71
|
}
|
73
72
|
}
|
73
|
+
|
74
|
+
.ck.ck-user__notification {
|
75
|
+
display: flex;
|
76
|
+
width: 15px;
|
77
|
+
height: 15px;
|
78
|
+
justify-content: center;
|
79
|
+
align-items: center;
|
80
|
+
background: white;
|
81
|
+
border: 2px solid white;
|
82
|
+
border-radius: 50%;
|
83
|
+
box-sizing: content-box;
|
84
|
+
|
85
|
+
position: absolute;
|
86
|
+
top: -8px;
|
87
|
+
right: -7px;
|
88
|
+
overflow: hidden;
|
89
|
+
transform: translateZ(0);
|
90
|
+
|
91
|
+
& .ck-user__icon {
|
92
|
+
color: var(--ck-color-annotation-info);
|
93
|
+
background: white;
|
94
|
+
width: 19px;
|
95
|
+
height: 19px;
|
96
|
+
max-width: 19px;
|
97
|
+
max-height: 19px;
|
98
|
+
min-width: 19px;
|
99
|
+
min-height: 19px;
|
100
|
+
}
|
101
|
+
}
|