@ckeditor/ckeditor5-collaboration-core 40.1.0 → 41.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.
- package/CHANGELOG.md +17 -17
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/lang/translations/af.po +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/bs.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es-co.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/collaborationhistory.d.ts +2 -2
- package/src/collaborationhistory.js +1 -1
- package/src/collaborationoperation.d.ts +2 -2
- package/src/collaborationoperation.js +1 -1
- package/src/config.d.ts +1 -1
- package/src/config.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/index.js +2 -2
- package/src/permissions.d.ts +2 -2
- package/src/permissions.js +2 -2
- package/src/suggestionstyles.d.ts +1 -1
- package/src/suggestionstyles.js +1 -1
- package/src/users/view/userview.d.ts +4 -4
- package/src/users/view/userview.js +2 -2
- package/src/users.d.ts +4 -4
- package/src/users.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/confirmmixin.d.ts +3 -3
- package/src/utils/confirmmixin.js +2 -2
- package/src/utils/confirmview.d.ts +3 -3
- package/src/utils/confirmview.js +2 -2
- package/src/utils/getdatetimeformatter.d.ts +2 -2
- package/src/utils/getdatetimeformatter.js +2 -2
- package/src/utils/getmarkerdomelement.d.ts +2 -2
- package/src/utils/getmarkerdomelement.js +2 -2
- package/src/utils/hashobject.d.ts +1 -1
- package/src/utils/hashobject.js +2 -2
- package/src/utils/sanitizeEditorConfig.d.ts +2 -2
- package/src/utils/sanitizeEditorConfig.js +2 -2
- package/src/utils/surroundingmarkersdetector.d.ts +2 -2
- package/src/utils/surroundingmarkersdetector.js +2 -2
- package/src/utils/trim-html.d.ts +1 -1
- package/src/utils/trim-html.js +2 -2
- package/theme/icons/notification.svg +1 -1
- package/theme/integrations/codeblock.css +1 -1
- package/theme/integrations/horizontalline.css +1 -1
- package/theme/integrations/image.css +1 -1
- package/theme/integrations/mediaembed.css +1 -1
- package/theme/integrations/pagebreak.css +1 -1
- package/theme/integrations/table.css +1 -1
- package/theme/suggestion.css +1 -1
- package/theme/suggestionmarker.css +1 -1
- package/theme/usercolormixin.css +1 -1
- package/theme/usercolors.css +1 -1
- package/theme/users.css +1 -1
package/src/index.d.ts
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
export { default as Permissions } from './permissions';
|
6
|
-
export { default as Users, type User } from './users';
|
7
|
-
export { default as UserView } from './users/view/userview';
|
8
|
-
export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
|
9
|
-
export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
|
10
|
-
export { default as trimHtml } from './utils/trim-html';
|
11
|
-
export { default as ConfirmMixin } from './utils/confirmmixin';
|
12
|
-
export { default as hashObject } from './utils/hashobject';
|
13
|
-
export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
|
14
|
-
export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector';
|
15
|
-
export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
|
16
|
-
export { default as CollaborationHistory } from './collaborationhistory';
|
17
|
-
export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
|
18
|
-
export * from './suggestionstyles';
|
19
|
-
import './augmentation';
|
5
|
+
export { default as Permissions } from './permissions.js';
|
6
|
+
export { default as Users, type User } from './users.js';
|
7
|
+
export { default as UserView } from './users/view/userview.js';
|
8
|
+
export { default as getDateTimeFormatter } from './utils/getdatetimeformatter.js';
|
9
|
+
export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement.js';
|
10
|
+
export { default as trimHtml } from './utils/trim-html.js';
|
11
|
+
export { default as ConfirmMixin } from './utils/confirmmixin.js';
|
12
|
+
export { default as hashObject } from './utils/hashobject.js';
|
13
|
+
export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig.js';
|
14
|
+
export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector.js';
|
15
|
+
export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation.js';
|
16
|
+
export { default as CollaborationHistory } from './collaborationhistory.js';
|
17
|
+
export type { LocaleConfig, RealTimeCollaborationConfig } from './config.js';
|
18
|
+
export * from './suggestionstyles.js';
|
19
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector';export*from'./suggestionstyles';import'./augmentation';
|
23
|
+
export{default as Permissions}from'./permissions.js';export{default as Users}from'./users.js';export{default as UserView}from'./users/view/userview.js';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter.js';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement.js';export{default as trimHtml}from'./utils/trim-html.js';export{default as ConfirmMixin}from'./utils/confirmmixin.js';export{default as hashObject}from'./utils/hashobject.js';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig.js';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector.js';export*from'./suggestionstyles.js';import'./augmentation.js';
|
package/src/permissions.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/permissions
|
7
7
|
* @publicApi
|
8
8
|
*/
|
9
|
-
import { ContextPlugin } from 'ckeditor5/src/core';
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
10
10
|
/**
|
11
11
|
* The `Permissions` plugin manages permissions set for the local user.
|
12
12
|
*
|
package/src/permissions.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x4191=['config','pluginName','isEnabled','clearForceDisabled','permissions-set-permissions-invalid-channel-id','enableReadOnlyMode','plugins','get','collaboration.channelId','find','CommentsOnly','commands','forceDisabled','CommentsRepository','has','editors','comment:write','addCommentThread','setPermissions','includes','no-permissions','disableReadOnlyMode','context'];(function(_0x4c2beb,_0x4191e9){const _0x47fbb4=function(_0x3f0cfa){while(--_0x3f0cfa){_0x4c2beb['push'](_0x4c2beb['shift']());}};_0x47fbb4(++_0x4191e9);}(_0x4191,0x1a4));const _0x47fb=function(_0x4c2beb,_0x4191e9){_0x4c2beb=_0x4c2beb-0x0;let _0x47fbb4=_0x4191[_0x4c2beb];return _0x47fbb4;};import{ContextPlugin as _0x44473f,Editor as _0x20ba3e}from'ckeditor5/src/core.js';import{CKEditorError as _0x14f882}from'ckeditor5/src/utils.js';export default class n extends _0x44473f{static get[_0x47fb('0x12')](){return'Permissions';}['setPermissions'](_0xd0ab03,_0x4b708c){let _0x23a555;if(_0x4b708c||(_0x4b708c=this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')]('collaboration.channelId')),this[_0x47fb('0x10')][_0x47fb('0x11')][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c?_0x23a555=this[_0x47fb('0x10')]:_0x47fb('0x9')in this['context']&&this[_0x47fb('0x10')][_0x47fb('0x9')]&&(_0x23a555=this[_0x47fb('0x10')]['editors'][_0x47fb('0x3')](_0x48f356=>_0x48f356['config'][_0x47fb('0x1')](_0x47fb('0x2'))==_0x4b708c)),!_0x23a555)throw new _0x14f882(_0x47fb('0x15'),null);const _0x1d2a20=_0x23a555[_0x47fb('0x0')],_0x6d3bc3=_0x1d2a20['has'](_0x47fb('0x7'))?_0x1d2a20[_0x47fb('0x1')](_0x47fb('0x7')):void 0x0,_0x4bedff=_0x1d2a20[_0x47fb('0x8')](_0x47fb('0x4'))&&_0x1d2a20[_0x47fb('0x1')]('CommentsOnly'),_0x522032=_0xd0ab03[_0x47fb('0xd')]('document:write'),_0x5be806=_0xd0ab03[_0x47fb('0xd')]('comment:modify_all'),_0x584c54=_0xd0ab03[_0x47fb('0xd')]('comment:admin'),_0x2269e1=_0xd0ab03['includes'](_0x47fb('0xa')),_0x550aea=_0x2269e1||_0x584c54,_0x2ac08a=_0x550aea||_0x5be806,_0x5461f4=_0x522032||_0x550aea;(_0x4bedff&&(_0x4bedff[_0x47fb('0x13')]=!_0x522032&&_0x2ac08a),_0x23a555 instanceof _0x20ba3e)&&(!(_0x522032||_0x2ac08a&&_0x6d3bc3)?_0x23a555[_0x47fb('0x16')](_0x47fb('0xe')):_0x23a555[_0x47fb('0xf')](_0x47fb('0xe')));if(_0x6d3bc3){_0x6d3bc3[_0x47fb('0xc')]({'admin':_0x584c54,'modifyAll':_0x5be806,'write':_0x2269e1,'resolve':_0x5461f4},_0x4b708c);const _0x42bf71=_0x23a555 instanceof _0x20ba3e&&_0x23a555[_0x47fb('0x5')][_0x47fb('0x1')](_0x47fb('0xb'));_0x42bf71&&(_0x550aea?_0x42bf71[_0x47fb('0x14')]('noPermissions'):_0x42bf71[_0x47fb('0x6')]('noPermissions'));}}}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
import '../theme/suggestion.css';
|
package/src/suggestionstyles.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/users/view/userview
|
7
7
|
*/
|
8
|
-
import { View, type TemplateDefinition } from 'ckeditor5/src/ui';
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
10
|
-
import type { User } from '../../users';
|
8
|
+
import { View, type TemplateDefinition } from 'ckeditor5/src/ui.js';
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
10
|
+
import type { User } from '../../users.js';
|
11
11
|
import '../../../theme/users.css';
|
12
12
|
export default class UserView extends View {
|
13
13
|
name: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x30e3=['content','avatar','push','name','isAnonymous','ck-user__anonymous','ck-user','ck-user__icon','notificationView','ck\x20ck-user__name\x20ck-user__name--hidden','div','ck-user__img','url(\x27','ck-user__avatar'];(function(_0x4b35a3,_0x30e3ea){const _0x3ea397=function(_0xef9578){while(--_0xef9578){_0x4b35a3['push'](_0x4b35a3['shift']());}};_0x3ea397(++_0x30e3ea);}(_0x30e3,0x1a0));const _0x3ea3=function(_0x4b35a3,_0x30e3ea){_0x4b35a3=_0x4b35a3-0x0;let _0x3ea397=_0x30e3[_0x4b35a3];return _0x3ea397;};import{View as _0x2834d1,IconView as _0x32ccad}from'ckeditor5/src/ui.js';import _0x1ceb2c from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class E extends _0x2834d1{constructor(_0x2fde0f,_0x3975b4,_0x1b2124){super(_0x2fde0f),this[_0x3ea3('0x7')]=_0x3975b4[_0x3ea3('0x7')],this['notificationView']=null;const _0x5d8e44=['ck',_0x3ea3('0x1')];if(_0x3975b4[_0x3ea3('0x8')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x9')),_0x3975b4[_0x3ea3('0x5')]&&_0x5d8e44[_0x3ea3('0x6')](_0x3ea3('0x3')),_0x1b2124){const _0x2b85c4=new _0x32ccad();_0x2b85c4['extendTemplate']({'attributes':{'class':[_0x3ea3('0xb')]}}),_0x2b85c4[_0x3ea3('0x4')]=_0x1ceb2c,this[_0x3ea3('0xc')]={'tag':_0x3ea3('0x0'),'attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x1b2124},'children':[_0x2b85c4]};}const _0x427f36=[{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x5d8e44,'style':{'background-image':_0x3975b4[_0x3ea3('0x5')]?_0x3ea3('0x2')+_0x3975b4[_0x3ea3('0x5')]+'\x27)':''}}},{'tag':_0x3ea3('0x0'),'attributes':{'class':_0x3975b4['avatar']?_0x3ea3('0xd'):'ck\x20ck-user__name'},'children':[{'text':_0x3975b4['initials']}]}];this['notificationView']&&_0x427f36[_0x3ea3('0x6')](this[_0x3ea3('0xc')]),this['setTemplate']({'tag':_0x3ea3('0x0'),'attributes':{'class':['ck',_0x3ea3('0xa')],'data-user-id':_0x3975b4['id']},'children':_0x427f36});}}
|
package/src/users.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/users
|
7
7
|
* @publicApi
|
8
8
|
*/
|
9
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
10
|
-
import { Collection } from 'ckeditor5/src/utils';
|
11
|
-
import Permissions from './permissions';
|
9
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
10
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
11
|
+
import Permissions from './permissions.js';
|
12
12
|
import '../theme/usercolors.css';
|
13
13
|
/**
|
14
14
|
* The `Users` plugin provides the basic interface for setting and getting users involved in the document editing process.
|
package/src/users.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x50d1=['trim','ck-user__bg-color--','_myId','_addAnonymousUser','destroy','getSelectionClass','length','users.colorsCount','licenseKeyTrialLimit:revisions','split','anonymous-user','users-me-missing-user','licenseKeyInvalid','decorate','invalid-license-key','get','info','isAnonymous','getOperationAuthor','_id','licenseKeyTrialLimit:operations','getUser','context','_isAnonymous','color','avatar','users-add-duplicated-id','_licenseKeyCheckInterval','_getInitial','addUser','getMarkerClass','add','users-me-already-defined','Anonymous','_locale','init','define','initials','users.anonymousUserId','licenseKeyValid','locale','string','pluginName','defineMe','users','licenseKeyTrialLimit:time','_getNextColor','getBackgroundColorClass','has','config','licenseKeyTrial','trial-license-key-reached-limit-revisions','_lastColor','name'];(function(_0xcddb31,_0x50d15e){const _0x2da193=function(_0x4945ae){while(--_0x4945ae){_0xcddb31['push'](_0xcddb31['shift']());}};_0x2da193(++_0x50d15e);}(_0x50d1,0x9a));const _0x2da1=function(_0xcddb31,_0x50d15e){_0xcddb31=_0xcddb31-0x0;let _0x2da193=_0x50d1[_0xcddb31];return _0x2da193;};import{ContextPlugin as _0xfba487}from'ckeditor5/src/core.js';import{Collection as _0x32aa87,CKEditorError as _0x54349c}from'ckeditor5/src/utils.js';import _0x23bc1e from'./permissions.js';import{getTranslation as _0xe6ead6}from'./utils/common-translations.js';import'../theme/usercolors.css';export default class l extends _0xfba487{static get[_0x2da1('0x32')](){return'Users';}static get['requires'](){return[_0x23bc1e];}constructor(_0x99d119){super(_0x99d119),this[_0x2da1('0x1e')]['config'][_0x2da1('0x2c')](_0x2da1('0x2e'),_0x2da1('0x12')),this[_0x2da1('0x1e')][_0x2da1('0x3')]['define'](_0x2da1('0xf'),0x8),this['users']=new _0x32aa87(),this[_0x2da1('0x2a')]=_0x99d119[_0x2da1('0x30')],this['_licenseKeyCheckInterval']=null,this[_0x2da1('0x6')]=0x0,this[_0x2da1('0xa')]=null,this[_0x2da1('0x15')](_0x2da1('0x1a'));}[_0x2da1('0x2b')](){const _0x32a37a=this['context'];this['licenseKey']=_0x32a37a[_0x2da1('0x3')][_0x2da1('0x17')]('licenseKey');const _0xc0a37d=[_0x2da1('0x4'),_0x2da1('0x14'),_0x2da1('0x2f'),_0x2da1('0x1c'),_0x2da1('0x35'),_0x2da1('0x10')];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x55b2a7;for(const _0xfe926c in _0x32a37a){const _0x31da45=_0x32a37a[_0xfe926c];if(_0xc0a37d['includes'](_0x31da45)){delete _0x32a37a[_0xfe926c],_0x55b2a7=_0x31da45;break;}}if(_0x2da1('0x14')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x16'),null);if(_0x2da1('0x4')===_0x55b2a7&&console[_0x2da1('0x18')]('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.'),'licenseKeyTrialLimit:operations'===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-changes',null);if(_0x2da1('0x35')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c('trial-license-key-reached-limit-time',null);if(_0x2da1('0x10')===_0x55b2a7)throw clearInterval(this[_0x2da1('0x23')]),new _0x54349c(_0x2da1('0x5'),null);_0x2da1('0x2f')===_0x55b2a7&&clearInterval(this[_0x2da1('0x23')]);},0x3e8),this[_0x2da1('0xb')]();}get['me'](){return null==this[_0x2da1('0xa')]?null:this['getUser'](this[_0x2da1('0xa')]);}[_0x2da1('0x25')]({id:_0x1836f9,name:_0x5be0fc,..._0x3a1607}){if(!_0x1836f9||_0x2da1('0x31')!=typeof _0x1836f9)throw new _0x54349c('users-add-invalid-id');if(this[_0x2da1('0x34')][_0x2da1('0x2')](_0x1836f9))throw new _0x54349c(_0x2da1('0x22'),null,{'id':_0x1836f9});const _0x2d28de={..._0x3a1607,'id':_0x1836f9,'name':a(this[_0x2da1('0x2a')],_0x5be0fc),'color':this[_0x2da1('0x0')]()};_0x2d28de[_0x2da1('0x7')]=a(this[_0x2da1('0x2a')],_0x2d28de[_0x2da1('0x7')]);const _0x400f45=new User(_0x2d28de);return this[_0x2da1('0x34')][_0x2da1('0x27')](_0x400f45),_0x400f45;}[_0x2da1('0x1d')](_0x267e47){return this[_0x2da1('0x34')][_0x2da1('0x17')](_0x267e47);}['useAnonymousUser'](){const _0x24ed68=this[_0x2da1('0x1e')]['config'][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0xa')]||this[_0x2da1('0x33')](_0x24ed68);}[_0x2da1('0x33')](_0xa65b7a){if(this[_0x2da1('0xa')])throw new _0x54349c(_0x2da1('0x28'),null);if(!this['getUser'](_0xa65b7a))throw new _0x54349c(_0x2da1('0x13'),null);this['_myId']=_0xa65b7a;}[_0x2da1('0x1a')](){return this['me'];}['destroy'](){super[_0x2da1('0xc')](),clearInterval(this['_licenseKeyCheckInterval']);}[_0x2da1('0x0')](){const _0x513662=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0xf'));return this['_lastColor']>=_0x513662&&(this[_0x2da1('0x6')]=0x0),new u(this['_lastColor']++);}[_0x2da1('0xb')](){const _0x56d76d=this['context'][_0x2da1('0x3')][_0x2da1('0x17')](_0x2da1('0x2e'));this[_0x2da1('0x25')]({'id':_0x56d76d,'name':_0xe6ead6(this[_0x2da1('0x2a')],'Anonymous')})['_isAnonymous']=!0x0;}}export class User{constructor(_0x1c7aaa){this['id']=_0x1c7aaa['id'],this[_0x2da1('0x20')]=_0x1c7aaa[_0x2da1('0x20')],this['name']=_0x1c7aaa['name'],this[_0x2da1('0x21')]=_0x1c7aaa[_0x2da1('0x21')],this[_0x2da1('0x1f')]=!0x1;}get[_0x2da1('0x19')](){return this['_isAnonymous'];}get[_0x2da1('0x2d')](){const _0xd031af=this[_0x2da1('0x7')][_0x2da1('0x11')]('\x20');return 0x1===_0xd031af[_0x2da1('0xe')]?this['_getInitial'](_0xd031af[0x0]):this[_0x2da1('0x24')](_0xd031af[0x0])+this[_0x2da1('0x24')](_0xd031af[_0xd031af[_0x2da1('0xe')]-0x1]);}[_0x2da1('0x24')](_0x2ec958){return _0x2ec958['charAt'](0x0)['toUpperCase']();}}function a(_0x37993f,_0x5de7d4=''){return''==(_0x5de7d4=_0x5de7d4[_0x2da1('0x8')]())?_0xe6ead6(_0x37993f,_0x2da1('0x29')):_0x5de7d4;}class u{constructor(_0xf89760){this[_0x2da1('0x1b')]=_0xf89760;}[_0x2da1('0x1')](){return _0x2da1('0x9')+this[_0x2da1('0x1b')];}[_0x2da1('0xd')](){return'ck-user__selection--'+this[_0x2da1('0x1b')];}[_0x2da1('0x26')](){return'ck-user__marker--'+this['_id'];}}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/utils/common-translations
|
7
7
|
*/
|
8
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
9
9
|
export declare function getTranslation(locale: Locale, id: string): string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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(
|
23
|
+
export function getTranslation(_0x2d7e4d,_0xd4f217){const t=_0x2d7e4d['t'];switch(_0xd4f217){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,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module comments/comments/ui/view/confirmmixin
|
7
7
|
*/
|
8
|
-
import type { View } from 'ckeditor5/src/ui';
|
9
|
-
import type { Locale, Mixed } from 'ckeditor5/src/utils';
|
8
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
9
|
+
import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
|
10
10
|
/**
|
11
11
|
* Adds interface for showing confirmation view in the specific for `CommentThreadView` and `CommentView` structure
|
12
12
|
* Confirm is always set to the `content` collection at the last position.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
var _0x26e4=['locale','cancel','submit','confirmView','deregisterChild','cancelConfirm','showConfirm','fire','_removeConfirm','once','message','destroy','isConfirm','registerChild','render','element'];(function(_0xea0b0e,_0x26e41d){var _0x1fe82e=function(_0x10399){while(--_0x10399){_0xea0b0e['push'](_0xea0b0e['shift']());}};_0x1fe82e(++_0x26e41d);}(_0x26e4,0xa1));var _0x1fe8=function(_0xea0b0e,_0x26e41d){_0xea0b0e=_0xea0b0e-0x0;var _0x1fe82e=_0x26e4[_0xea0b0e];return _0x1fe82e;};import _0xbb96d0 from'./confirmview.js';export default function m(_0x40f35e){return class extends _0x40f35e{[_0x1fe8('0x5')](_0x3f2d3a,_0x1281ff){return this[_0x1fe8('0x2')]=new _0xbb96d0(this[_0x1fe8('0xf')]),this[_0x1fe8('0x2')][_0x1fe8('0xd')](),this[_0x1fe8('0x2')][_0x1fe8('0x9')]=_0x3f2d3a,this[_0x1fe8('0x2')][_0x1fe8('0x8')](_0x1fe8('0x0'),()=>{this[_0x1fe8('0x7')]();}),this[_0x1fe8('0x2')]['once'](_0x1fe8('0x1'),()=>{this[_0x1fe8('0x7')]();}),_0x1281ff['appendChild'](this[_0x1fe8('0x2')][_0x1fe8('0xe')]),this[_0x1fe8('0xc')](this['confirmView']),this[_0x1fe8('0xe')]['focus'](),this['set']('isConfirm',!0x0),new Promise(_0x1bfdd7=>this[_0x1fe8('0x2')]['on'](_0x1fe8('0x1'),_0x1bfdd7));}[_0x1fe8('0x4')](){this[_0x1fe8('0xb')]&&this[_0x1fe8('0x2')][_0x1fe8('0x6')](_0x1fe8('0x0'));}[_0x1fe8('0x7')](){this[_0x1fe8('0xe')]&&this[_0x1fe8('0x2')]&&this[_0x1fe8('0x2')][_0x1fe8('0xe')]&&(this[_0x1fe8('0xe')]['focus'](),this['confirmView'][_0x1fe8('0xe')]['remove'](),this[_0x1fe8('0x3')](this[_0x1fe8('0x2')]),this['isConfirm']=!0x1,this[_0x1fe8('0x2')][_0x1fe8('0xa')](),this[_0x1fe8('0x2')]=void 0x0);}};}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module comments/comments/ui/view/confirmview
|
7
7
|
*/
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
8
|
+
import { View } from 'ckeditor5/src/ui.js';
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
10
10
|
export default class ConfirmView extends View {
|
11
11
|
message: string;
|
12
12
|
constructor(locale: Locale);
|
package/src/utils/confirmview.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x11b7=['submit','div','Are\x20you\x20sure?','fire','submitView','set','cancelView','message','check','Yes','label','cancel','ck-thread__remove-confirm-','extendTemplate','ck-thread__remove-confirm-actions','bindTemplate','setTemplate','_createButtonView','ck-thread__remove-confirm-inner'];(function(_0x4a0a69,_0x11b722){const _0x356824=function(_0x283c59){while(--_0x283c59){_0x4a0a69['push'](_0x4a0a69['shift']());}};_0x356824(++_0x11b722);}(_0x11b7,0x19b));const _0x3568=function(_0x4a0a69,_0x11b722){_0x4a0a69=_0x4a0a69-0x0;let _0x356824=_0x11b7[_0x4a0a69];return _0x356824;};import{View as _0x20996a,ButtonView as _0x4f4a71}from'ckeditor5/src/ui.js';import{icons as _0x1dd890}from'ckeditor5/src/core.js';import{getTranslation as _0x1a863e}from'./common-translations.js';export default class h extends _0x20996a{constructor(_0x4f03d3){super(_0x4f03d3);const _0x1d5bdd=this[_0x3568('0x3')];this[_0x3568('0xb')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,_0x3568('0x10')),_0x1dd890[_0x3568('0xf')],_0x3568('0x7')),this[_0x3568('0xd')]=this[_0x3568('0x5')](_0x4f03d3,_0x1a863e(_0x4f03d3,'No'),_0x1dd890[_0x3568('0x12')],_0x3568('0x12')),this[_0x3568('0xc')](_0x3568('0xe'),_0x1a863e(_0x4f03d3,_0x3568('0x9'))),this[_0x3568('0x4')]({'tag':_0x3568('0x8'),'attributes':{'class':['ck-thread__remove-confirm']},'children':[{'tag':_0x3568('0x8'),'attributes':{'class':_0x3568('0x6')},'children':[{'tag':'p','children':[{'text':_0x1d5bdd['to'](_0x3568('0xe'))}]},{'tag':'div','attributes':{'class':_0x3568('0x2')},'children':[this[_0x3568('0xb')],this[_0x3568('0xd')]]}]}]});}['_createButtonView'](_0x27ea0e,_0x552a30,_0x394992,_0x11d082){const _0x30a41a=new _0x4f4a71(_0x27ea0e);return _0x30a41a[_0x3568('0x11')]=_0x552a30,_0x30a41a['icon']=_0x394992,_0x30a41a[_0x3568('0x1')]({'attributes':{'class':_0x3568('0x0')+_0x11d082}}),_0x30a41a['on']('execute',()=>this[_0x3568('0xa')](_0x11d082)),_0x30a41a;}}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { LocaleConfig } from '../config';
|
5
|
+
import type { LocaleConfig } from '../config.js';
|
6
6
|
/**
|
7
7
|
* Returns a function that formats the date to the set format.
|
8
8
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x1fb9=['dateTimeFormat','MM-dd-yyyy\x20hh:mma','function','\x27Today\x27\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','string'];(function(_0xd2a053,_0x1fb9b0){const _0x1c4578=function(_0x145ba2){while(--_0x145ba2){_0xd2a053['push'](_0xd2a053['shift']());}};_0x1c4578(++_0x1fb9b0);}(_0x1fb9,0x9b));const _0x1c45=function(_0xd2a053,_0x1fb9b0){_0xd2a053=_0xd2a053-0x0;let _0x1c4578=_0x1fb9[_0xd2a053];return _0x1c4578;};import _0x5421f5 from'date-fns/format/index.js';import _0x11ff26 from'date-fns/parseISO/index.js';import _0x5236ae from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x2d2488}from'ckeditor5/src/utils.js';export default function j(_0x2e5a2c={}){if(void 0x0!==_0x2e5a2c[_0x1c45('0x1')]&&_0x1c45('0x3')!=typeof _0x2e5a2c[_0x1c45('0x1')])throw new _0x2d2488('invalid-date-time-format');return _0x404810=>{const _0x1dd918=_0x1c45('0x0')==typeof _0x404810?_0x11ff26(_0x404810):_0x404810,_0x47114a=new Date(),_0x5f5cf2=_0x5236ae(_0x47114a,_0x1dd918);return _0x2e5a2c['dateTimeFormat']?_0x2e5a2c['dateTimeFormat'](_0x1dd918):_0x5421f5(_0x1dd918,0x0===_0x5f5cf2?_0x1c45('0x4'):0x1===_0x5f5cf2?'\x27Yesterday\x27\x20hh:mma':_0x5f5cf2<0x7?_0x1c45('0x5'):_0x1c45('0x2'));};}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { EditingController, Marker } from 'ckeditor5/src/engine';
|
5
|
+
import type { EditingController, Marker } from 'ckeditor5/src/engine.js';
|
6
6
|
/**
|
7
7
|
* Returns a first DOM element mapped with the marker.
|
8
8
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x3ca3=['domConverter','getClientRects','length','mapViewToDom','map','name','view','sort','domElement','markerNameToElements','mapper'];(function(_0x503869,_0x3ca396){const _0x18ed9c=function(_0x34aa90){while(--_0x34aa90){_0x503869['push'](_0x503869['shift']());}};_0x18ed9c(++_0x3ca396);}(_0x3ca3,0x1b5));const _0x18ed=function(_0x503869,_0x3ca396){_0x503869=_0x503869-0x0;let _0x18ed9c=_0x3ca3[_0x503869];return _0x18ed9c;};import{first as _0x167e4f}from'ckeditor5/src/utils.js';export default function k(_0x1ff2d5,_0x177150){const _0x3288ba=_0x1ff2d5[_0x18ed('0x2')][_0x18ed('0x1')](_0x177150[_0x18ed('0x8')]);if(!_0x3288ba)return null;const _0x4d8c4e=_0x167e4f(_0x3288ba['values']());return _0x1ff2d5['view']['domConverter'][_0x18ed('0x6')](_0x4d8c4e)||null;}export function getAllMarkersDomElementsSorted(_0x5ab5b7,_0x9df3b8){if(0x0===_0x9df3b8[_0x18ed('0x5')])return null;const _0x4bcd45=[],_0x58048b=_0x5ab5b7[_0x18ed('0x9')][_0x18ed('0x3')];for(const _0x265a31 of _0x9df3b8){const _0x49e0b9=_0x5ab5b7[_0x18ed('0x2')][_0x18ed('0x1')](_0x265a31[_0x18ed('0x8')]);if(!_0x49e0b9)continue;const _0xfb28c0=Array['from'](_0x49e0b9)[_0x18ed('0x7')](_0x4c9d57=>_0x58048b['mapViewToDom'](_0x4c9d57))['filter'](_0x23fea2=>!!_0x23fea2);_0x4bcd45['push'](..._0xfb28c0);}if(0x0===_0x4bcd45['length'])return null;const _0x85bc8f=[];for(const _0x494294 of _0x4bcd45){const _0x14aca5=_0x494294[_0x18ed('0x4')]()['item'](0x0);_0x14aca5&&_0x85bc8f['push']({'x':_0x14aca5['x'],'y':_0x14aca5['y'],'domElement':_0x494294});}return 0x0===_0x85bc8f[_0x18ed('0x5')]?null:(_0x85bc8f[_0x18ed('0xa')]((_0x1667a6,_0x70fa75)=>_0x1667a6['y']-_0x70fa75['y']||_0x1667a6['x']-_0x70fa75['x']),_0x85bc8f['map'](_0x2a3fe7=>_0x2a3fe7[_0x18ed('0x0')]));}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/utils/hashobject.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x11b7=['charCodeAt','object','sign','toString','string'];(function(_0x48b9e5,_0x11b7b1){const _0x1ebf25=function(_0xa259c4){while(--_0xa259c4){_0x48b9e5['push'](_0x48b9e5['shift']());}};_0x1ebf25(++_0x11b7b1);}(_0x11b7,0x195));const _0x1ebf=function(_0x48b9e5,_0x11b7b1){_0x48b9e5=_0x48b9e5-0x0;let _0x1ebf25=_0x11b7[_0x48b9e5];return _0x1ebf25;};export default function b(_0x1353ec){let _0x2e77c1=0x0,_0x1a2c98=0x0;for(const _0x4a996a of A(_0x1353ec))_0x2e77c1=(_0x2e77c1<<0x5)-_0x2e77c1+_0x4a996a,_0x2e77c1&=_0x2e77c1,[_0x2e77c1,_0x1a2c98]=[_0x1a2c98,_0x2e77c1];return q(_0x2e77c1)+q(_0x1a2c98);}function*g(_0x301ff1){null==_0x301ff1||null==_0x301ff1?yield 0x12b9b0a1:0x0===_0x301ff1||!0x1===_0x301ff1?yield 0x0:0x1===_0x301ff1||0x1==_0x301ff1?yield 0x1:Array['isArray'](_0x301ff1)?yield*function*(_0x367ed1){for(const _0x237ebb of _0x367ed1)yield*g(_0x237ebb);}(_0x301ff1):_0x1ebf('0x1')==typeof _0x301ff1?yield*A(_0x301ff1):_0x1ebf('0x4')==typeof _0x301ff1?yield*M(_0x301ff1):'number'==typeof _0x301ff1&&(yield _0x301ff1);}function*A(_0x40c16e){if(yield O('{'),_0x40c16e){const _0x3eb291=Object['keys'](_0x40c16e)['sort']();for(const _0x353b9d of _0x3eb291){yield*M(_0x353b9d),yield O(':');const _0x1e3152=_0x40c16e[_0x353b9d];yield*g(_0x1e3152);}}yield O('}');}function*M(_0x8ed7f5){yield O('\x22');for(const _0x3b2f64 of _0x8ed7f5)yield O(_0x3b2f64);yield O('\x22');}function O(_0x4f6fe5){return _0x4f6fe5[_0x1ebf('0x0')](0x0);}function q(_0xd6381e){return(_0xd6381e*=Math[_0x1ebf('0x2')](_0xd6381e))[_0x1ebf('0x3')](0x24);}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/utils/common-translations
|
7
7
|
*/
|
8
|
-
import type { Editor, EditorConfig } from 'ckeditor5/src/core';
|
8
|
+
import type { Editor, EditorConfig } from 'ckeditor5/src/core.js';
|
9
9
|
/**
|
10
10
|
* A function that prepares config for internal editors removing all unnecessary plugins like RTC.
|
11
11
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x3620=['Autosave','WordCount','map','config','get','string','toolbar','extraPlugins','RevisionTracker','context','initialData','pluginName','WebSocketGateway','set','removePlugins','rootsAttributes','has','requires','find','concat','every','filter','WProofreader','builtinPlugins','includes','plugins'];(function(_0x269e2a,_0x36200e){const _0x22b72a=function(_0x1da529){while(--_0x1da529){_0x269e2a['push'](_0x269e2a['shift']());}};_0x22b72a(++_0x36200e);}(_0x3620,0x106));const _0x22b7=function(_0x269e2a,_0x36200e){_0x269e2a=_0x269e2a-0x0;let _0x22b72a=_0x3620[_0x269e2a];return _0x22b72a;};const w=[_0x22b7('0x8'),_0x22b7('0x7'),_0x22b7('0x4'),_0x22b7('0xd')],W=[_0x22b7('0xa'),_0x22b7('0x6'),_0x22b7('0x18'),_0x22b7('0x19'),'DocumentOutline',_0x22b7('0x14')];function v(_0x23c3fb,_0x416e97,_0x244301,_0x492c72=[]){const _0x4e01a9='string'==typeof _0x23c3fb?_0x244301[_0x22b7('0x2')](_0x23c3fb)['constructor']:_0x23c3fb,_0x52672a=_0x4e01a9[_0x22b7('0x9')]||_0x4e01a9['name'];if(_0x416e97[_0x22b7('0xe')](_0x52672a))return _0x416e97['get'](_0x52672a);if(_0x416e97[_0x22b7('0xb')](_0x52672a,!0x0),_0x52672a&&W[_0x22b7('0x11')](_0x492c72)[_0x22b7('0x16')](_0x52672a))return _0x416e97[_0x22b7('0xb')](_0x52672a,!0x1),!0x1;if(!_0x4e01a9[_0x22b7('0xf')])return _0x416e97['set'](_0x52672a,!0x0),!0x0;const _0x103fb3=_0x4e01a9[_0x22b7('0xf')][_0x22b7('0x12')](_0x3bc43d=>v(_0x3bc43d,_0x416e97,_0x244301,_0x492c72));return _0x416e97[_0x22b7('0xb')](_0x52672a,_0x103fb3),_0x103fb3;}export default function D(_0x137982,_0x26b9a9){const _0x1cb82c={};for(const _0x18bdae of _0x137982['config']['names']())w[_0x22b7('0x16')](_0x18bdae)||(_0x1cb82c[_0x18bdae]=_0x137982['config'][_0x22b7('0x2')](_0x18bdae));const _0xab0447=_0x1cb82c[_0x22b7('0x17')]||[],_0x217738=_0x137982['constructor'][_0x22b7('0x15')]||[],_0x192f89=_0xab0447['length']?_0xab0447:_0x217738,_0x5a52c4=_0x1cb82c[_0x22b7('0x5')]||[];delete _0x1cb82c['extraPlugins'];const _0x2c2b84=_0x1cb82c[_0x22b7('0xc')]||[];delete _0x1cb82c[_0x22b7('0xc')];const _0x2112d3=_0x137982['_context'][_0x22b7('0x1')]['get'](_0x22b7('0x17'))||[],_0x35be5c=_0x192f89[_0x22b7('0x11')](_0x5a52c4)['concat'](_0x2112d3)[_0x22b7('0x0')](_0x26a232=>_0x22b7('0x3')==typeof _0x26a232?_0x217738[_0x22b7('0x10')](_0x4286a2=>_0x4286a2[_0x22b7('0x9')]==_0x26a232):_0x26a232)['filter'](_0x8164c9=>!_0x2c2b84[_0x22b7('0x16')](_0x8164c9)&&!_0x2c2b84[_0x22b7('0x16')](_0x8164c9['pluginName'])),_0x41f64c=Array['from'](new Set(_0x35be5c)),_0xd3bc9=new Map();return _0x1cb82c[_0x22b7('0x17')]=_0x41f64c[_0x22b7('0x13')](_0x3a77d5=>v(_0x3a77d5,_0xd3bc9,_0x137982[_0x22b7('0x17')],_0x26b9a9)),_0x1cb82c;}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module collaboration-core/utils/surroundingmarkersdetector
|
7
7
|
*/
|
8
|
-
import type { Marker, Model } from 'ckeditor5/src/engine';
|
8
|
+
import type { Marker, Model } from 'ckeditor5/src/engine.js';
|
9
9
|
/**
|
10
10
|
* A utility that responds to range changes in the document selection and detects which markers' ranges
|
11
11
|
* touch or contain (surround) the document selection's focus.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2003-
|
2
|
+
* Copyright (c) 2003-2024, 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
|
23
|
+
const _0x3486=['length','isEqual','document','start','push','change:range','containsPosition','includes','end','markers','getRange'];(function(_0x306409,_0x3486c3){const _0x47ed40=function(_0x56078f){while(--_0x56078f){_0x306409['push'](_0x306409['shift']());}};_0x47ed40(++_0x3486c3);}(_0x3486,0x12f));const _0x47ed=function(_0x306409,_0x3486c3){_0x306409=_0x306409-0x0;let _0x47ed40=_0x3486[_0x306409];return _0x47ed40;};export default function z(_0x331a3f,_0x7a0ec0){const _0x53d811=[];_0x331a3f[_0x47ed('0x7')]['selection']['on'](_0x47ed('0xa'),()=>{const _0x3c1ae1=function(_0x433055,_0x273cfe){const _0x5e4e0a=[];for(const _0x2dd0fd of _0x433055[_0x47ed('0x3')]){const _0x19e5fa=_0x2dd0fd[_0x47ed('0x4')]();(_0x19e5fa[_0x47ed('0x0')](_0x273cfe)||_0x19e5fa[_0x47ed('0x8')]['isEqual'](_0x273cfe)||_0x19e5fa[_0x47ed('0x2')][_0x47ed('0x6')](_0x273cfe))&&_0x5e4e0a[_0x47ed('0x9')](_0x2dd0fd);}return _0x5e4e0a;}(_0x331a3f,_0x331a3f[_0x47ed('0x7')]['selection']['focus']),_0x295dec=[],_0x570e19=[],_0x438be8=[];for(const _0x45c8d0 of _0x53d811)_0x3c1ae1[_0x47ed('0x1')](_0x45c8d0)||_0x295dec[_0x47ed('0x9')](_0x45c8d0);for(const _0x52d066 of _0x3c1ae1)_0x53d811[_0x47ed('0x1')](_0x52d066)||_0x570e19[_0x47ed('0x9')](_0x52d066),_0x438be8[_0x47ed('0x9')](_0x52d066);(_0x295dec['length']||_0x570e19[_0x47ed('0x5')])&&_0x7a0ec0({'left':_0x295dec,'entered':_0x570e19}),_0x53d811[_0x47ed('0x5')]=0x0,_0x53d811[_0x47ed('0x9')](..._0x438be8);});}
|
package/src/utils/trim-html.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|