@ckeditor/ckeditor5-collaboration-core 42.0.2 → 43.0.0-alpha.1
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 -101
- package/dist/index-content.css +49 -0
- package/dist/index-editor.css +23 -1
- package/dist/index.css +143 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/suggestions/view/ariadescriptionview.d.ts +27 -0
- package/dist/suggestions/view/latefocusbuttonview.d.ts +41 -0
- package/dist/suggestionstyles.d.ts +2 -0
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/confirmmixin.d.ts +5 -1
- package/dist/utils/confirmview.d.ts +20 -4
- package/dist/utils/hashobject.d.ts +1 -1
- package/dist/utils/sanitizeEditorConfig.d.ts +1 -1
- package/dist/utils/setupthreadkeyboardnavigation.d.ts +49 -0
- package/dist/utils/trim-html.d.ts +3 -0
- package/package.json +6 -5
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/src/permissions.js +1 -1
- package/src/suggestions/view/ariadescriptionview.d.ts +23 -0
- package/src/suggestions/view/ariadescriptionview.js +23 -0
- package/src/suggestions/view/latefocusbuttonview.d.ts +37 -0
- package/src/suggestions/view/latefocusbuttonview.js +23 -0
- package/src/suggestionstyles.d.ts +2 -0
- package/src/suggestionstyles.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.d.ts +5 -1
- package/src/utils/confirmmixin.js +1 -1
- package/src/utils/confirmview.d.ts +20 -4
- 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.d.ts +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/sanitizeEditorConfig.d.ts +1 -1
- package/src/utils/sanitizeEditorConfig.js +1 -1
- package/src/utils/setupthreadkeyboardnavigation.d.ts +45 -0
- package/src/utils/setupthreadkeyboardnavigation.js +23 -0
- package/src/utils/surroundingmarkersdetector.js +1 -1
- package/src/utils/trim-html.d.ts +3 -0
- package/src/utils/trim-html.js +1 -1
- package/theme/ariadescription.css +12 -0
- package/theme/integrations/mergefields.css +67 -0
- package/theme/suggestion.css +29 -1
package/src/permissions.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x153dcc=_0x3123;function _0x1a78(){const _0x10bb47=['commands','clearForceDisabled','document:write','get','comment:write','pluginName','693YqMATn','isEnabled','no-permissions','comment:admin','16HvqpRv','noPermissions','173968secVFw','883850ctufru','1421968wZKqQP','Permissions','enableReadOnlyMode','disableReadOnlyMode','717045sTMskx','editors','permissions-set-permissions-invalid-channel-id','39jtWxRp','plugins','6lgHYOi','7720NjSlMv','find','CommentsOnly','includes','comment:modify_all','2364453obrrMa','CommentsRepository','forceDisabled','addCommentThread','46399mrpFHa','collaboration.channelId','setPermissions','has','config','context'];_0x1a78=function(){return _0x10bb47;};return _0x1a78();}(function(_0x1f06aa,_0x2914fb){const _0x53a3b5=_0x3123,_0x4c9a24=_0x1f06aa();while(!![]){try{const _0x45ca1d=-parseInt(_0x53a3b5(0x1fd))/0x1*(-parseInt(_0x53a3b5(0x20d))/0x2)+parseInt(_0x53a3b5(0x1f1))/0x3*(-parseInt(_0x53a3b5(0x20f))/0x4)+parseInt(_0x53a3b5(0x1ee))/0x5+parseInt(_0x53a3b5(0x1f3))/0x6*(parseInt(_0x53a3b5(0x1f9))/0x7)+parseInt(_0x53a3b5(0x1ea))/0x8+-parseInt(_0x53a3b5(0x209))/0x9*(-parseInt(_0x53a3b5(0x1f4))/0xa)+-parseInt(_0x53a3b5(0x210))/0xb;if(_0x45ca1d===_0x2914fb)break;else _0x4c9a24['push'](_0x4c9a24['shift']());}catch(_0x2ba7fa){_0x4c9a24['push'](_0x4c9a24['shift']());}}}(_0x1a78,0x6c5b0));function _0x3123(_0x3f7399,_0x575776){const _0x1a78f6=_0x1a78();return _0x3123=function(_0x3123c7,_0x4c4987){_0x3123c7=_0x3123c7-0x1ea;let _0x3362b6=_0x1a78f6[_0x3123c7];return _0x3362b6;},_0x3123(_0x3f7399,_0x575776);}import{ContextPlugin as _0x2fcc9b,Editor as _0x1aef97}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e2fe4}from'ckeditor5/src/utils.js';export default class n extends _0x2fcc9b{static get[_0x153dcc(0x208)](){const _0x1d8686=_0x153dcc;return _0x1d8686(0x1eb);}[_0x153dcc(0x1ff)](_0xf7fd64,_0x22bd48){const _0x1ed5e2=_0x153dcc;let _0x565769;if(_0x22bd48||(_0x22bd48=this[_0x1ed5e2(0x202)][_0x1ed5e2(0x201)][_0x1ed5e2(0x206)](_0x1ed5e2(0x1fe))),this[_0x1ed5e2(0x202)][_0x1ed5e2(0x201)][_0x1ed5e2(0x206)](_0x1ed5e2(0x1fe))==_0x22bd48?_0x565769=this[_0x1ed5e2(0x202)]:_0x1ed5e2(0x1ef)in this[_0x1ed5e2(0x202)]&&this[_0x1ed5e2(0x202)][_0x1ed5e2(0x1ef)]&&(_0x565769=this[_0x1ed5e2(0x202)][_0x1ed5e2(0x1ef)][_0x1ed5e2(0x1f5)](_0x491404=>_0x491404[_0x1ed5e2(0x201)][_0x1ed5e2(0x206)](_0x1ed5e2(0x1fe))==_0x22bd48)),!_0x565769)throw new _0x4e2fe4(_0x1ed5e2(0x1f0),null);const _0x1669d0=_0x565769[_0x1ed5e2(0x1f2)],_0x55e426=_0x1669d0[_0x1ed5e2(0x200)](_0x1ed5e2(0x1fa))?_0x1669d0[_0x1ed5e2(0x206)](_0x1ed5e2(0x1fa)):void 0x0,_0x2904b1=_0x1669d0[_0x1ed5e2(0x200)](_0x1ed5e2(0x1f6))&&_0x1669d0[_0x1ed5e2(0x206)](_0x1ed5e2(0x1f6)),_0x5270a3=_0xf7fd64[_0x1ed5e2(0x1f7)](_0x1ed5e2(0x205)),_0x96d925=_0xf7fd64[_0x1ed5e2(0x1f7)](_0x1ed5e2(0x1f8)),_0x56318c=_0xf7fd64[_0x1ed5e2(0x1f7)](_0x1ed5e2(0x20c)),_0x43c59e=_0xf7fd64[_0x1ed5e2(0x1f7)](_0x1ed5e2(0x207)),_0x24ece1=_0x43c59e||_0x56318c,_0x3e4f1d=_0x24ece1||_0x96d925,_0x48fc07=_0x5270a3||_0x24ece1;(_0x2904b1&&(_0x2904b1[_0x1ed5e2(0x20a)]=!_0x5270a3&&_0x3e4f1d),_0x565769 instanceof _0x1aef97)&&(!(_0x5270a3||_0x3e4f1d&&_0x55e426)?_0x565769[_0x1ed5e2(0x1ec)](_0x1ed5e2(0x20b)):_0x565769[_0x1ed5e2(0x1ed)](_0x1ed5e2(0x20b)));if(_0x55e426){_0x55e426[_0x1ed5e2(0x1ff)]({'admin':_0x56318c,'modifyAll':_0x96d925,'write':_0x43c59e,'resolve':_0x48fc07},_0x22bd48);const _0x655f16=_0x565769 instanceof _0x1aef97&&_0x565769[_0x1ed5e2(0x203)][_0x1ed5e2(0x206)](_0x1ed5e2(0x1fc));_0x655f16&&(_0x24ece1?_0x655f16[_0x1ed5e2(0x204)](_0x1ed5e2(0x20e)):_0x655f16[_0x1ed5e2(0x1fb)](_0x1ed5e2(0x20e)));}}}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module collaboration-core/suggestions/view/ariadescriptionview
|
7
|
+
* @publicApi
|
8
|
+
*/
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
10
|
+
import { View } from 'ckeditor5/src/ui.js';
|
11
|
+
/**
|
12
|
+
* The view class (container) for a text referenced by a `aria-describedby` attribute.
|
13
|
+
*/
|
14
|
+
export default class AriaDescriptionView extends View {
|
15
|
+
readonly id: string;
|
16
|
+
/**
|
17
|
+
* Creates an instance of `AriaDescriptionView`.
|
18
|
+
*
|
19
|
+
* @param locale Locale instance.
|
20
|
+
* @param description Plaintext description of the element.
|
21
|
+
*/
|
22
|
+
constructor(locale: Locale, description: string);
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2024, 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
|
+
(function(_0x501135,_0x40146d){var _0x21908c=_0x3375,_0x3f89d6=_0x501135();while(!![]){try{var _0x3dbd5f=-parseInt(_0x21908c(0x125))/0x1*(-parseInt(_0x21908c(0x128))/0x2)+parseInt(_0x21908c(0x122))/0x3+-parseInt(_0x21908c(0x11d))/0x4+parseInt(_0x21908c(0x120))/0x5+-parseInt(_0x21908c(0x127))/0x6*(-parseInt(_0x21908c(0x11b))/0x7)+-parseInt(_0x21908c(0x123))/0x8*(parseInt(_0x21908c(0x11e))/0x9)+-parseInt(_0x21908c(0x11f))/0xa;if(_0x3dbd5f===_0x40146d)break;else _0x3f89d6['push'](_0x3f89d6['shift']());}catch(_0x30a768){_0x3f89d6['push'](_0x3f89d6['shift']());}}}(_0x3d45,0xf24a9));import{uid as _0x1c1d15}from'ckeditor5/src/utils.js';function _0x3d45(){var _0x5bfe3a=['5679780qKyMXh','954mwtsaQ','6097830NsYHAp','7014135zzgoRq','ck-aria-description','2884746JqfkQv','117112uPqzQR','setTemplate','11RjjaEe','ck-aria-description-','79878eIkAHj','41062fDjURx','1043hqwvri','span'];_0x3d45=function(){return _0x5bfe3a;};return _0x3d45();}import{View as _0x59a344}from'ckeditor5/src/ui.js';function _0x3375(_0x3bee2f,_0x405817){var _0x3d453f=_0x3d45();return _0x3375=function(_0x337565,_0x3c4f92){_0x337565=_0x337565-0x11b;var _0x3fc34d=_0x3d453f[_0x337565];return _0x3fc34d;},_0x3375(_0x3bee2f,_0x405817);}export default class G extends _0x59a344{constructor(_0x384d0d,_0x2517ad){var _0x2ee79c=_0x3375;super(_0x384d0d),this['id']=_0x2ee79c(0x126)+_0x1c1d15(),this[_0x2ee79c(0x124)]({'tag':_0x2ee79c(0x11c),'attributes':{'class':['ck',_0x2ee79c(0x121)],'id':this['id']},'children':[{'text':_0x2517ad}]});}}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
/**
|
6
|
+
* @module collaboration-core/suggestions/view/latefocusbuttonview
|
7
|
+
* @publicApi
|
8
|
+
*/
|
9
|
+
import { ButtonView, DropdownButtonView } from 'ckeditor5/src/ui.js';
|
10
|
+
/**
|
11
|
+
* The view class representing a button that becomes focused on `mouseup` rather than on `mousedown`.
|
12
|
+
*
|
13
|
+
* This is to delay any "on focus" actions (like e.g. activating annotation) until the user released mouse down,
|
14
|
+
* so that button related actions happen before focus related actions.
|
15
|
+
*
|
16
|
+
* Also, see {@link module:collaboration-core/suggestions/view/latefocusbuttonview~LateFocusDropdownButtonView}.
|
17
|
+
*/
|
18
|
+
export declare class LateFocusButtonView extends ButtonView {
|
19
|
+
/**
|
20
|
+
* @inheritDoc
|
21
|
+
*/
|
22
|
+
render(): void;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* The view class representing a dropdown button that becomes focused on `mouseup` rather than on `mousedown`.
|
26
|
+
*
|
27
|
+
* This is to delay any "on focus" actions (like e.g. activating annotation) until the user released mouse key,
|
28
|
+
* so that button related actions happen before focus related actions.
|
29
|
+
*
|
30
|
+
* Also, see {@link module:collaboration-core/suggestions/view/latefocusbuttonview~LateFocusButtonView}.
|
31
|
+
*/
|
32
|
+
export declare class LateFocusDropdownButtonView extends DropdownButtonView {
|
33
|
+
/**
|
34
|
+
* @inheritDoc
|
35
|
+
*/
|
36
|
+
render(): void;
|
37
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2024, 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
|
+
var _0x2b853c=_0x3ad7;(function(_0x3718d9,_0x3e84ae){var _0x4514b8=_0x3ad7,_0x3273db=_0x3718d9();while(!![]){try{var _0xd63093=-parseInt(_0x4514b8(0x16e))/0x1*(-parseInt(_0x4514b8(0x16f))/0x2)+-parseInt(_0x4514b8(0x16a))/0x3+-parseInt(_0x4514b8(0x166))/0x4*(parseInt(_0x4514b8(0x163))/0x5)+-parseInt(_0x4514b8(0x16b))/0x6*(parseInt(_0x4514b8(0x172))/0x7)+parseInt(_0x4514b8(0x169))/0x8*(-parseInt(_0x4514b8(0x175))/0x9)+-parseInt(_0x4514b8(0x164))/0xa+-parseInt(_0x4514b8(0x168))/0xb*(-parseInt(_0x4514b8(0x173))/0xc);if(_0xd63093===_0x3e84ae)break;else _0x3273db['push'](_0x3273db['shift']());}catch(_0x5e5370){_0x3273db['push'](_0x3273db['shift']());}}}(_0x4222,0x4e5a4));import{ButtonView as _0x5ecf1c,DropdownButtonView as _0x5174a8}from'ckeditor5/src/ui.js';function _0x3ad7(_0x5e00fb,_0x412720){var _0x42229c=_0x4222();return _0x3ad7=function(_0x3ad7ea,_0x32c1a5){_0x3ad7ea=_0x3ad7ea-0x162;var _0x18b18f=_0x42229c[_0x3ad7ea];return _0x18b18f;},_0x3ad7(_0x5e00fb,_0x412720);}export class LateFocusButtonView extends _0x5ecf1c{[_0x2b853c(0x16d)](){var _0x70e403=_0x2b853c;super[_0x70e403(0x16d)](),V(this);}}export class LateFocusDropdownButtonView extends _0x5174a8{[_0x2b853c(0x16d)](){var _0x17c6a3=_0x2b853c;super[_0x17c6a3(0x16d)](),V(this);}}function V(_0x2ca487){var _0x38bacb=_0x2b853c;_0x2ca487[_0x38bacb(0x165)](_0x2ca487[_0x38bacb(0x170)],_0x38bacb(0x16c),(_0x3c6959,_0xfa7ce8)=>{var _0x20acb8=_0x38bacb;_0xfa7ce8[_0x20acb8(0x174)](),_0xfa7ce8[_0x20acb8(0x171)]();}),_0x2ca487[_0x38bacb(0x165)](_0x2ca487[_0x38bacb(0x170)],_0x38bacb(0x167),()=>{var _0x549a71=_0x38bacb;_0x2ca487[_0x549a71(0x170)][_0x549a71(0x162)]();});}function _0x4222(){var _0x453e68=['stopPropagation','9FAVywi','focus','305XxCLSp','1073230VHYWTy','listenTo','15668KlaPTR','mouseup','77zyaqmt','1438376TOzmvH','1811289OWMjEk','881226pJonmI','mousedown','render','2rTUWpm','64918obGHLX','element','preventDefault','21lgVyUt','3131052kSONYT'];_0x4222=function(){return _0x453e68;};return _0x4222();}
|
@@ -4,9 +4,11 @@
|
|
4
4
|
*/
|
5
5
|
import '../theme/suggestion.css';
|
6
6
|
import '../theme/suggestionmarker.css';
|
7
|
+
import '../theme/ariadescription.css';
|
7
8
|
import '../theme/integrations/image.css';
|
8
9
|
import '../theme/integrations/horizontalline.css';
|
9
10
|
import '../theme/integrations/mediaembed.css';
|
11
|
+
import '../theme/integrations/mergefields.css';
|
10
12
|
import '../theme/integrations/pagebreak.css';
|
11
13
|
import '../theme/integrations/table.css';
|
12
14
|
import '../theme/integrations/codeblock.css';
|
package/src/suggestionstyles.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
(function(_0x29eebe,_0x5c2eee){var _0x27ddb3=_0x158f,_0x1e801d=_0x29eebe();while(!![]){try{var _0x1529fc=-parseInt(_0x27ddb3(0xd1))/0x1*(parseInt(_0x27ddb3(0xcf))/0x2)+parseInt(_0x27ddb3(0xd4))/0x3*(-parseInt(_0x27ddb3(0xd6))/0x4)+-parseInt(_0x27ddb3(0xd9))/0x5+parseInt(_0x27ddb3(0xd5))/0x6+-parseInt(_0x27ddb3(0xd8))/0x7+-parseInt(_0x27ddb3(0xd2))/0x8*(-parseInt(_0x27ddb3(0xd0))/0x9)+parseInt(_0x27ddb3(0xd7))/0xa*(parseInt(_0x27ddb3(0xd3))/0xb);if(_0x1529fc===_0x5c2eee)break;else _0x1e801d['push'](_0x1e801d['shift']());}catch(_0x25c77e){_0x1e801d['push'](_0x1e801d['shift']());}}}(_0x242a,0xeb188));import'../theme/suggestion.css';import'../theme/suggestionmarker.css';function _0x158f(_0x3f0a2b,_0x2bfc75){var _0x242a56=_0x242a();return _0x158f=function(_0x158f94,_0x340095){_0x158f94=_0x158f94-0xcf;var _0x10917c=_0x242a56[_0x158f94];return _0x10917c;},_0x158f(_0x3f0a2b,_0x2bfc75);}import'../theme/ariadescription.css';import'../theme/integrations/image.css';import'../theme/integrations/horizontalline.css';import'../theme/integrations/mediaembed.css';import'../theme/integrations/mergefields.css';import'../theme/integrations/pagebreak.css';function _0x242a(){var _0x263727=['9663giwgYO','248mNbdIV','11YBXeOx','720waaMqE','7171872AKEHPY','4244DQfEOZ','5920620cmKkxn','619535aPbDpN','1395785lVxkEE','186Nnkcbt','202221ogQjEW'];_0x242a=function(){return _0x263727;};return _0x242a();}import'../theme/integrations/table.css';import'../theme/integrations/codeblock.css';
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
|
23
|
+
function _0x4394(_0xd2374f,_0xc29f03){const _0x8b04b5=_0x8b04();return _0x4394=function(_0x439409,_0x5ed0ba){_0x439409=_0x439409-0xb8;let _0x367395=_0x8b04b5[_0x439409];return _0x367395;},_0x4394(_0xd2374f,_0xc29f03);}function _0x8b04(){const _0x5af996=['setTemplate','isAnonymous','avatar','ck-user__avatar','ck-user','1074jucvAo','7fkGPFb','4167632OszDrJ','ck\x20ck-user__name\x20ck-user__name--hidden','6800KOklYk','9722550czTvsC','notificationView','3998195uyKizG','extendTemplate','1318959dOkDas','initials','8556376YQasnG','ck\x20ck-user__name','content','1538eLJEDE','ck-user_me','div','push','isMe','ck-user__notification','name','32409yHTjCf','ck-user__img','url(\x27','ck-user__icon','ck-user__anonymous'];_0x8b04=function(){return _0x5af996;};return _0x8b04();}(function(_0x1355fb,_0x47d586){const _0x3b6623=_0x4394,_0x2961a5=_0x1355fb();while(!![]){try{const _0x34fa6d=-parseInt(_0x3b6623(0xc4))/0x1*(-parseInt(_0x3b6623(0xd2))/0x2)+-parseInt(_0x3b6623(0xcd))/0x3+parseInt(_0x3b6623(0xc6))/0x4+-parseInt(_0x3b6623(0xcb))/0x5+parseInt(_0x3b6623(0xc9))/0x6+-parseInt(_0x3b6623(0xc5))/0x7*(-parseInt(_0x3b6623(0xcf))/0x8)+-parseInt(_0x3b6623(0xba))/0x9*(parseInt(_0x3b6623(0xc8))/0xa);if(_0x34fa6d===_0x47d586)break;else _0x2961a5['push'](_0x2961a5['shift']());}catch(_0x50c928){_0x2961a5['push'](_0x2961a5['shift']());}}}(_0x8b04,0xd45b6));import{View as _0x33d8cb,IconView as _0x4e910a}from'ckeditor5/src/ui.js';import _0x13de8f from'../../../theme/icons/notification.svg';import'../../../theme/users.css';export default class J extends _0x33d8cb{constructor(_0x5ea6cd,_0x51bb2a,_0x19e140){const _0x12170e=_0x4394;super(_0x5ea6cd),this[_0x12170e(0xb9)]=_0x51bb2a[_0x12170e(0xb9)],this[_0x12170e(0xca)]=null;const _0x461964=['ck',_0x12170e(0xc3)],_0x199c52=['ck',_0x12170e(0xbb)];if(_0x51bb2a[_0x12170e(0xc0)]&&_0x199c52[_0x12170e(0xd5)](_0x12170e(0xbe)),!_0x51bb2a[_0x12170e(0xc0)]&&_0x51bb2a[_0x12170e(0xd6)]&&_0x461964[_0x12170e(0xd5)](_0x12170e(0xd3)),_0x51bb2a[_0x12170e(0xc1)]&&_0x199c52[_0x12170e(0xd5)](_0x12170e(0xc2)),_0x19e140){const _0x419b18=new _0x4e910a();_0x419b18[_0x12170e(0xcc)]({'attributes':{'class':[_0x12170e(0xbd)]}}),_0x419b18[_0x12170e(0xd1)]=_0x13de8f,this[_0x12170e(0xca)]={'tag':_0x12170e(0xd4),'attributes':{'class':['ck',_0x12170e(0xb8)],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x19e140},'children':[_0x419b18]};}const _0x5b9dbf=[{'tag':_0x12170e(0xd4),'attributes':{'class':_0x199c52,'style':{'background-image':_0x51bb2a[_0x12170e(0xc1)]?_0x12170e(0xbc)+_0x51bb2a[_0x12170e(0xc1)]+'\x27)':''}}},{'tag':_0x12170e(0xd4),'attributes':{'class':_0x51bb2a[_0x12170e(0xc1)]?_0x12170e(0xc7):_0x12170e(0xd0),'aria-label':_0x51bb2a[_0x12170e(0xb9)]},'children':[{'text':_0x51bb2a[_0x12170e(0xce)]}]}];this[_0x12170e(0xca)]&&_0x5b9dbf[_0x12170e(0xd5)](this[_0x12170e(0xca)]),this[_0x12170e(0xbf)]({'tag':_0x12170e(0xd4),'attributes':{'class':_0x461964,'data-user-id':_0x51bb2a['id']},'children':_0x5b9dbf});}}
|
package/src/users.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const _0x132ed3=_0x39b0;(function(_0x1ba517,_0x308745){const _0x4d31ba=_0x39b0,_0x58451a=_0x1ba517();while(!![]){try{const _0x511f76=-parseInt(_0x4d31ba(0x1b2))/0x1+-parseInt(_0x4d31ba(0x182))/0x2*(parseInt(_0x4d31ba(0x17d))/0x3)+-parseInt(_0x4d31ba(0x18e))/0x4+parseInt(_0x4d31ba(0x171))/0x5*(-parseInt(_0x4d31ba(0x18c))/0x6)+parseInt(_0x4d31ba(0x17f))/0x7+parseInt(_0x4d31ba(0x173))/0x8*(-parseInt(_0x4d31ba(0x1a6))/0x9)+-parseInt(_0x4d31ba(0x1a1))/0xa*(-parseInt(_0x4d31ba(0x1aa))/0xb);if(_0x511f76===_0x308745)break;else _0x58451a['push'](_0x58451a['shift']());}catch(_0x28163d){_0x58451a['push'](_0x58451a['shift']());}}}(_0xaf54,0x90d90));import{ContextPlugin as _0x177e3c}from'ckeditor5/src/core.js';function _0xaf54(){const _0x18ac9e=['_licenseKeyCheckInterval','context','string','_isMe','_isAnonymous','11157FhNuQH','decorate','1691998FBBtON','init','invalid-license-key','538fWxxvF','destroy','requires','isAnonymous','add','get','licenseKeyInvalid','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.','define','licenseKey','12wZOYrw','avatar','4443812mgBfQF','licenseKeyTrialLimit:revisions','length','includes','info','trial-license-key-reached-limit-revisions','_locale','split','trial-license-key-reached-limit-time','licenseKeyTrialLimit:time','config','ck-user__marker--','has','getSelectionClass','addUser','isMe','locale','_myId','_lastColor','30JwQdag','_getNextColor','ck-user__selection--','users-add-duplicated-id','users-me-missing-user','4815rWCEhH','useAnonymousUser','users-add-invalid-id','defineMe','20292767nQSOsY','getUser','getBackgroundColorClass','Anonymous','licenseKeyTrial','_addAnonymousUser','anonymous-user','getOperationAuthor','1172554vflowm','licenseKeyTrialLimit:operations','ck-user__bg-color--','_getInitial','trim','toUpperCase','users.colorsCount','users.anonymousUserId','users','users-me-already-defined','name','Users','licenseKeyValid','color','initials','2234065AUZejp','getMarkerClass','15032ESYvZr','_id','charAt','trial-license-key-reached-limit-changes','pluginName'];_0xaf54=function(){return _0x18ac9e;};return _0xaf54();}import{Collection as _0x4a5b06,CKEditorError as _0x4f8b4f}from'ckeditor5/src/utils.js';import _0x5cfed3 from'./permissions.js';import{getTranslation as _0x46ee40}from'./utils/common-translations.js';import'../theme/usercolors.css';function _0x39b0(_0x298072,_0x502a98){const _0xaf54af=_0xaf54();return _0x39b0=function(_0x39b097,_0x4a1efe){_0x39b097=_0x39b097-0x169;let _0x5d5395=_0xaf54af[_0x39b097];return _0x5d5395;},_0x39b0(_0x298072,_0x502a98);}export default class l extends _0x177e3c{static get[_0x132ed3(0x177)](){const _0x443b21=_0x132ed3;return _0x443b21(0x16d);}static get[_0x132ed3(0x184)](){return[_0x5cfed3];}constructor(_0x41e080){const _0x593247=_0x132ed3;super(_0x41e080),this[_0x593247(0x179)][_0x593247(0x198)][_0x593247(0x18a)](_0x593247(0x169),_0x593247(0x1b0)),this[_0x593247(0x179)][_0x593247(0x198)][_0x593247(0x18a)](_0x593247(0x1b8),0x8),this[_0x593247(0x16a)]=new _0x4a5b06(),this[_0x593247(0x194)]=_0x41e080[_0x593247(0x19e)],this[_0x593247(0x178)]=null,this[_0x593247(0x1a0)]=0x0,this[_0x593247(0x19f)]=null,this[_0x593247(0x17e)](_0x593247(0x1b1));}[_0x132ed3(0x180)](){const _0x138785=_0x132ed3,_0x337d69=this[_0x138785(0x179)];this[_0x138785(0x18b)]=_0x337d69[_0x138785(0x198)][_0x138785(0x187)](_0x138785(0x18b));const _0x67c3f8=[_0x138785(0x1ae),_0x138785(0x188),_0x138785(0x16e),_0x138785(0x1b3),_0x138785(0x197),_0x138785(0x18f)];this[_0x138785(0x178)]=setInterval(()=>{const _0x17885a=_0x138785;let _0x3fb185;for(const _0xd8ad9f in _0x337d69){const _0x3d9ca5=_0x337d69[_0xd8ad9f];if(_0x67c3f8[_0x17885a(0x191)](_0x3d9ca5)){delete _0x337d69[_0xd8ad9f],_0x3fb185=_0x3d9ca5;break;}}if(_0x17885a(0x188)===_0x3fb185)throw clearInterval(this[_0x17885a(0x178)]),new _0x4f8b4f(_0x17885a(0x181),null);if(_0x17885a(0x1ae)===_0x3fb185&&console[_0x17885a(0x192)](_0x17885a(0x189)),_0x17885a(0x1b3)===_0x3fb185)throw clearInterval(this[_0x17885a(0x178)]),new _0x4f8b4f(_0x17885a(0x176),null);if(_0x17885a(0x197)===_0x3fb185)throw clearInterval(this[_0x17885a(0x178)]),new _0x4f8b4f(_0x17885a(0x196),null);if(_0x17885a(0x18f)===_0x3fb185)throw clearInterval(this[_0x17885a(0x178)]),new _0x4f8b4f(_0x17885a(0x193),null);_0x17885a(0x16e)===_0x3fb185&&clearInterval(this[_0x17885a(0x178)]);},0x3e8),this[_0x138785(0x1af)]();}get['me'](){const _0x263426=_0x132ed3;return null==this[_0x263426(0x19f)]?null:this[_0x263426(0x1ab)](this[_0x263426(0x19f)]);}[_0x132ed3(0x19c)]({id:_0x41fe01,name:_0x24cf79,..._0x5e9e28}){const _0x3ad25e=_0x132ed3;if(!_0x41fe01||_0x3ad25e(0x17a)!=typeof _0x41fe01)throw new _0x4f8b4f(_0x3ad25e(0x1a8));if(this[_0x3ad25e(0x16a)][_0x3ad25e(0x19a)](_0x41fe01))throw new _0x4f8b4f(_0x3ad25e(0x1a4),null,{'id':_0x41fe01});const _0x1e8be1={..._0x5e9e28,'id':_0x41fe01,'name':a(this[_0x3ad25e(0x194)],_0x24cf79),'color':this[_0x3ad25e(0x1a2)]()};_0x1e8be1[_0x3ad25e(0x16c)]=a(this[_0x3ad25e(0x194)],_0x1e8be1[_0x3ad25e(0x16c)]);const _0x3e0e02=new User(_0x1e8be1);return this[_0x3ad25e(0x16a)][_0x3ad25e(0x186)](_0x3e0e02),_0x3e0e02;}[_0x132ed3(0x1ab)](_0x1c6dd2){const _0x2bdf3a=_0x132ed3;return this[_0x2bdf3a(0x16a)][_0x2bdf3a(0x187)](_0x1c6dd2);}[_0x132ed3(0x1a7)](){const _0x13fd14=_0x132ed3,_0x5b6e17=this[_0x13fd14(0x179)][_0x13fd14(0x198)][_0x13fd14(0x187)](_0x13fd14(0x169));this[_0x13fd14(0x19f)]||this[_0x13fd14(0x1a9)](_0x5b6e17);}[_0x132ed3(0x1a9)](_0x891a46){const _0x255db0=_0x132ed3;if(this[_0x255db0(0x19f)])throw new _0x4f8b4f(_0x255db0(0x16b),null);const _0x2d1a11=this[_0x255db0(0x1ab)](_0x891a46);if(!_0x2d1a11)throw new _0x4f8b4f(_0x255db0(0x1a5),null);this[_0x255db0(0x19f)]=_0x891a46,_0x2d1a11[_0x255db0(0x17b)]=!0x0;}[_0x132ed3(0x1b1)](){return this['me'];}[_0x132ed3(0x183)](){const _0x4f81c5=_0x132ed3;super[_0x4f81c5(0x183)](),clearInterval(this[_0x4f81c5(0x178)]);}[_0x132ed3(0x1a2)](){const _0x2f6fb4=_0x132ed3,_0x56e903=this[_0x2f6fb4(0x179)][_0x2f6fb4(0x198)][_0x2f6fb4(0x187)](_0x2f6fb4(0x1b8));return this[_0x2f6fb4(0x1a0)]>=_0x56e903&&(this[_0x2f6fb4(0x1a0)]=0x0),new u(this[_0x2f6fb4(0x1a0)]++);}[_0x132ed3(0x1af)](){const _0x309a6d=_0x132ed3,_0x39b0dc=this[_0x309a6d(0x179)][_0x309a6d(0x198)][_0x309a6d(0x187)](_0x309a6d(0x169));this[_0x309a6d(0x19c)]({'id':_0x39b0dc,'name':_0x46ee40(this[_0x309a6d(0x194)],_0x309a6d(0x1ad))})[_0x309a6d(0x17c)]=!0x0;}}export class User{constructor(_0x4f6173){const _0xbeb262=_0x132ed3;this['id']=_0x4f6173['id'],this[_0xbeb262(0x16f)]=_0x4f6173[_0xbeb262(0x16f)],this[_0xbeb262(0x16c)]=_0x4f6173[_0xbeb262(0x16c)],this[_0xbeb262(0x18d)]=_0x4f6173[_0xbeb262(0x18d)],this[_0xbeb262(0x17c)]=!0x1,this[_0xbeb262(0x17b)]=!0x1;}get[_0x132ed3(0x185)](){const _0x27dc20=_0x132ed3;return this[_0x27dc20(0x17c)];}get[_0x132ed3(0x19d)](){const _0x4825f9=_0x132ed3;return this[_0x4825f9(0x17b)];}get[_0x132ed3(0x170)](){const _0x471183=_0x132ed3,_0x5e688b=this[_0x471183(0x16c)][_0x471183(0x195)]('\x20');return 0x1===_0x5e688b[_0x471183(0x190)]?this[_0x471183(0x1b5)](_0x5e688b[0x0]):this[_0x471183(0x1b5)](_0x5e688b[0x0])+this[_0x471183(0x1b5)](_0x5e688b[_0x5e688b[_0x471183(0x190)]-0x1]);}[_0x132ed3(0x1b5)](_0x3bb788){const _0x23e7aa=_0x132ed3;return _0x3bb788[_0x23e7aa(0x175)](0x0)[_0x23e7aa(0x1b7)]();}}function a(_0x2ae7c1,_0x1ddb35=''){const _0x5039ac=_0x132ed3;return''==(_0x1ddb35=_0x1ddb35[_0x5039ac(0x1b6)]())?_0x46ee40(_0x2ae7c1,_0x5039ac(0x1ad)):_0x1ddb35;}class u{constructor(_0x30ab5e){const _0x40e3de=_0x132ed3;this[_0x40e3de(0x174)]=_0x30ab5e;}[_0x132ed3(0x1ac)](){const _0x5ea3c7=_0x132ed3;return _0x5ea3c7(0x1b4)+this[_0x5ea3c7(0x174)];}[_0x132ed3(0x19b)](){const _0x1c9c2f=_0x132ed3;return _0x1c9c2f(0x1a3)+this[_0x1c9c2f(0x174)];}[_0x132ed3(0x172)](){const _0x3d5d9a=_0x132ed3;return _0x3d5d9a(0x199)+this[_0x3d5d9a(0x174)];}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
export function getTranslation(
|
23
|
+
export function getTranslation(_0x43b359,_0x4aa7fc){const t=_0x43b359['t'];switch(_0x4aa7fc){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'';}}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
|
-
* @module
|
6
|
+
* @module collaboration-core/utils/confirmmixin
|
7
7
|
*/
|
8
8
|
import type { View } from 'ckeditor5/src/ui.js';
|
9
9
|
import type { Locale, Mixed } from 'ckeditor5/src/utils.js';
|
@@ -18,3 +18,7 @@ export interface ConfirmApi {
|
|
18
18
|
showConfirm(message: string, element: Element): Promise<unknown>;
|
19
19
|
cancelConfirm(): void;
|
20
20
|
}
|
21
|
+
export type RemoveConfirmEvent = {
|
22
|
+
name: 'removeConfirm';
|
23
|
+
args: [];
|
24
|
+
};
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
(function(_0x10ca00,_0x114de6){var _0x17db15=_0x47c5,_0x49d69d=_0x10ca00();while(!![]){try{var _0x16bdb3=-parseInt(_0x17db15(0x1b5))/0x1*(parseInt(_0x17db15(0x1cf))/0x2)+parseInt(_0x17db15(0x1b6))/0x3+parseInt(_0x17db15(0x1c0))/0x4+-parseInt(_0x17db15(0x1bf))/0x5*(parseInt(_0x17db15(0x1b4))/0x6)+parseInt(_0x17db15(0x1bb))/0x7+parseInt(_0x17db15(0x1b2))/0x8*(parseInt(_0x17db15(0x1ca))/0x9)+-parseInt(_0x17db15(0x1c5))/0xa;if(_0x16bdb3===_0x114de6)break;else _0x49d69d['push'](_0x49d69d['shift']());}catch(_0x1c5547){_0x49d69d['push'](_0x49d69d['shift']());}}}(_0x241b,0xd29c5));function _0x47c5(_0x380997,_0x505322){var _0x241b0b=_0x241b();return _0x47c5=function(_0x47c566,_0x54e0d3){_0x47c566=_0x47c566-0x1b2;var _0x27f4cf=_0x241b0b[_0x47c566];return _0x27f4cf;},_0x47c5(_0x380997,_0x505322);}import _0x1b11fe from'./confirmview.js';export default function m(_0xde3253){var _0x3d8e19=_0x47c5;return class extends _0xde3253{[_0x3d8e19(0x1cb)](_0x36bdbf,_0x515e31){var _0x21d259=_0x3d8e19;return this[_0x21d259(0x1cc)]=new _0x1b11fe(this[_0x21d259(0x1be)]),this[_0x21d259(0x1cc)][_0x21d259(0x1bd)](),this[_0x21d259(0x1cc)][_0x21d259(0x1b8)]=_0x36bdbf,this[_0x21d259(0x1cc)][_0x21d259(0x1c9)](_0x21d259(0x1c2),()=>{var _0x45b7c3=_0x21d259;this[_0x45b7c3(0x1c4)]();}),this[_0x21d259(0x1cc)][_0x21d259(0x1c9)](_0x21d259(0x1b9),()=>{var _0x285e04=_0x21d259;this[_0x285e04(0x1c4)]();}),_0x515e31[_0x21d259(0x1ce)](this[_0x21d259(0x1cc)][_0x21d259(0x1c1)]),this[_0x21d259(0x1b7)](this[_0x21d259(0x1cc)]),this[_0x21d259(0x1cc)][_0x21d259(0x1c3)](),this[_0x21d259(0x1b3)](_0x21d259(0x1bc),!0x0),new Promise(_0x48b458=>this[_0x21d259(0x1cc)]['on'](_0x21d259(0x1b9),_0x48b458));}[_0x3d8e19(0x1d0)](){var _0x5543db=_0x3d8e19;this[_0x5543db(0x1bc)]&&this[_0x5543db(0x1cc)][_0x5543db(0x1c6)](_0x5543db(0x1c2));}[_0x3d8e19(0x1c4)](){var _0x158649=_0x3d8e19;this[_0x158649(0x1c1)]&&this[_0x158649(0x1cc)]&&this[_0x158649(0x1cc)][_0x158649(0x1c1)]&&(this[_0x158649(0x1c1)][_0x158649(0x1c3)](),this[_0x158649(0x1cc)][_0x158649(0x1c1)][_0x158649(0x1ba)](),this[_0x158649(0x1c8)](this[_0x158649(0x1cc)]),this[_0x158649(0x1bc)]=!0x1,this[_0x158649(0x1c6)](_0x158649(0x1cd)),this[_0x158649(0x1cc)][_0x158649(0x1c7)](),this[_0x158649(0x1cc)]=void 0x0);}};}function _0x241b(){var _0x5a0fed=['4448991mvxMnn','registerChild','message','submit','remove','11206587yznobG','isConfirm','render','locale','4294730wRdYvM','2339584TIEnkn','element','cancel','focus','_removeConfirm','22293290kUpkBq','fire','destroy','deregisterChild','once','3701097jaANxz','showConfirm','confirmView','removeConfirm','appendChild','1858YSAqMP','cancelConfirm','8VFeprK','set','6dRvYuW','139BDMRbI'];_0x241b=function(){return _0x5a0fed;};return _0x241b();}
|
@@ -3,11 +3,27 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
|
-
* @module
|
6
|
+
* @module collaboration-core/utils/confirmview
|
7
7
|
*/
|
8
|
-
import { View } from 'ckeditor5/src/ui.js';
|
9
|
-
import type
|
10
|
-
export default class ConfirmView extends View {
|
8
|
+
import { View, type FocusableView } from 'ckeditor5/src/ui.js';
|
9
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
10
|
+
export default class ConfirmView extends View implements FocusableView {
|
11
11
|
message: string;
|
12
12
|
constructor(locale: Locale);
|
13
|
+
/**
|
14
|
+
* @inheritDoc
|
15
|
+
*/
|
16
|
+
render(): void;
|
17
|
+
/**
|
18
|
+
* @inheritDoc
|
19
|
+
*/
|
20
|
+
focus(): void;
|
13
21
|
}
|
22
|
+
export type ConfirmViewCancelEvent = {
|
23
|
+
name: 'cancel';
|
24
|
+
args: [];
|
25
|
+
};
|
26
|
+
export type ConfirmViewSubmitEvent = {
|
27
|
+
name: 'submit';
|
28
|
+
args: [];
|
29
|
+
};
|
package/src/utils/confirmview.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
function
|
23
|
+
const _0x505fc8=_0x247c;function _0x247c(_0x1cdd8b,_0x4f15d8){const _0x306b78=_0x306b();return _0x247c=function(_0x247c3a,_0x3e12d7){_0x247c3a=_0x247c3a-0x15b;let _0x378164=_0x306b78[_0x247c3a];return _0x378164;},_0x247c(_0x1cdd8b,_0x4f15d8);}(function(_0x375c08,_0x50f48d){const _0x2e0320=_0x247c,_0x40ad20=_0x375c08();while(!![]){try{const _0x59b900=parseInt(_0x2e0320(0x179))/0x1+-parseInt(_0x2e0320(0x167))/0x2+parseInt(_0x2e0320(0x172))/0x3*(-parseInt(_0x2e0320(0x166))/0x4)+parseInt(_0x2e0320(0x174))/0x5+parseInt(_0x2e0320(0x16a))/0x6+parseInt(_0x2e0320(0x182))/0x7*(parseInt(_0x2e0320(0x17f))/0x8)+-parseInt(_0x2e0320(0x15c))/0x9;if(_0x59b900===_0x50f48d)break;else _0x40ad20['push'](_0x40ad20['shift']());}catch(_0x588a07){_0x40ad20['push'](_0x40ad20['shift']());}}}(_0x306b,0xbad3d));import{View as _0x25871a,ButtonView as _0x510ec,FocusCycler as _0x503853}from'ckeditor5/src/ui.js';import{icons as _0x19285b}from'ckeditor5/src/core.js';import{FocusTracker as _0x207430,KeystrokeHandler as _0x4e433f}from'ckeditor5/src/utils.js';import{getTranslation as _0x2f6a28}from'./common-translations.js';function _0x306b(){const _0x452d4f=['Yes','submitView','ck-thread__remove-confirm-inner','extendTemplate','_createButtonView','ck-thread__remove-confirm','21HoGiPY','ck-thread__remove-confirm-','7437840DzDfcd','_setupKeyboardNavigation','icon','add','Are\x20you\x20sure?','977932eaYiCv','bindTemplate','focusCycler','cancelView','element','setTemplate','11484712CnEKVN','div','forEach','7lXYnzc','esc','message','focus','keystrokes','submit','focusables','alertdialog','listenTo','createCollection','21243780fYmyhq','shift+tab','label','tab','ck-thread__remove-confirm-actions','render','check','cancel','presentation','focusTracker','293904aWfDOv','2751476Tbugca','set','fire','6687876NBoDgf','execute'];_0x306b=function(){return _0x452d4f;};return _0x306b();}export default class h extends _0x25871a{constructor(_0x25c74f){const _0x4d5a8f=_0x247c;super(_0x25c74f);const _0x1eacb8=this[_0x4d5a8f(0x17a)];this[_0x4d5a8f(0x168)](_0x4d5a8f(0x184),_0x2f6a28(_0x25c74f,_0x4d5a8f(0x178))),this[_0x4d5a8f(0x16d)]=this[_0x4d5a8f(0x170)](_0x25c74f,_0x2f6a28(_0x25c74f,_0x4d5a8f(0x16c)),_0x19285b[_0x4d5a8f(0x162)],_0x4d5a8f(0x187)),this[_0x4d5a8f(0x17c)]=this[_0x4d5a8f(0x170)](_0x25c74f,_0x2f6a28(_0x25c74f,'No'),_0x19285b[_0x4d5a8f(0x163)],_0x4d5a8f(0x163)),this[_0x4d5a8f(0x188)]=this[_0x4d5a8f(0x15b)]([this[_0x4d5a8f(0x16d)],this[_0x4d5a8f(0x17c)]]),this[_0x4d5a8f(0x165)]=new _0x207430(),this[_0x4d5a8f(0x186)]=new _0x4e433f(),this[_0x4d5a8f(0x17b)]=new _0x503853({'focusables':this[_0x4d5a8f(0x188)],'focusTracker':this[_0x4d5a8f(0x165)],'keystrokeHandler':this[_0x4d5a8f(0x186)],'actions':{'focusPrevious':_0x4d5a8f(0x15d),'focusNext':_0x4d5a8f(0x15f)}}),this[_0x4d5a8f(0x17e)]({'tag':_0x4d5a8f(0x180),'attributes':{'class':['ck',_0x4d5a8f(0x171)],'tabindex':-0x1,'role':_0x4d5a8f(0x189)},'children':[{'tag':_0x4d5a8f(0x180),'attributes':{'class':_0x4d5a8f(0x16e),'role':_0x4d5a8f(0x164)},'children':[{'tag':'p','children':[{'text':_0x1eacb8['to'](_0x4d5a8f(0x184))}]},{'tag':_0x4d5a8f(0x180),'attributes':{'class':_0x4d5a8f(0x160)},'children':[this[_0x4d5a8f(0x16d)],this[_0x4d5a8f(0x17c)]]}]}]});}[_0x505fc8(0x161)](){const _0x514e32=_0x505fc8;super[_0x514e32(0x161)](),this[_0x514e32(0x175)]();}[_0x505fc8(0x185)](){const _0x2dd731=_0x505fc8;this[_0x2dd731(0x17c)][_0x2dd731(0x17d)][_0x2dd731(0x185)]({'preventScroll':!0x0});}[_0x505fc8(0x170)](_0x3309df,_0x2a483e,_0xb7c73b,_0x27d657){const _0x5b41ab=_0x505fc8,_0x313e23=new _0x510ec(_0x3309df);return _0x313e23[_0x5b41ab(0x15e)]=_0x2a483e,_0x313e23[_0x5b41ab(0x176)]=_0xb7c73b,_0x313e23[_0x5b41ab(0x16f)]({'attributes':{'class':_0x5b41ab(0x173)+_0x27d657}}),_0x313e23['on'](_0x5b41ab(0x16b),()=>this[_0x5b41ab(0x169)](_0x27d657)),_0x313e23;}[_0x505fc8(0x175)](){const _0x87d287=_0x505fc8;this[_0x87d287(0x188)][_0x87d287(0x181)](_0x318b00=>{const _0x48a9d6=_0x87d287;this[_0x48a9d6(0x186)][_0x48a9d6(0x18a)](_0x318b00[_0x48a9d6(0x17d)]),this[_0x48a9d6(0x165)][_0x48a9d6(0x177)](_0x318b00[_0x48a9d6(0x17d)]);}),this[_0x87d287(0x186)][_0x87d287(0x168)](_0x87d287(0x183),(_0x2fd0a2,_0x3fe1fe)=>{const _0x5e28c6=_0x87d287;this[_0x5e28c6(0x169)](_0x5e28c6(0x163)),_0x3fe1fe();});}}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
(function(_0x10f1eb,_0xcc17d7){const _0x585901=_0x428b,_0x809da4=_0x10f1eb();while(!![]){try{const _0x5b3d8a=-parseInt(_0x585901(0xc3))/0x1*(-parseInt(_0x585901(0xbf))/0x2)+parseInt(_0x585901(0xc6))/0x3+-parseInt(_0x585901(0xc0))/0x4+parseInt(_0x585901(0xce))/0x5*(parseInt(_0x585901(0xcb))/0x6)+-parseInt(_0x585901(0xc5))/0x7*(parseInt(_0x585901(0xc1))/0x8)+-parseInt(_0x585901(0xbe))/0x9*(-parseInt(_0x585901(0xbd))/0xa)+-parseInt(_0x585901(0xc8))/0xb*(parseInt(_0x585901(0xc2))/0xc);if(_0x5b3d8a===_0xcc17d7)break;else _0x809da4['push'](_0x809da4['shift']());}catch(_0x40478d){_0x809da4['push'](_0x809da4['shift']());}}}(_0x2850,0xc6dbf));import _0x5a0fc7 from'date-fns/format/index.js';function _0x428b(_0x24602c,_0xb1ea1e){const _0x2850e6=_0x2850();return _0x428b=function(_0x428b8e,_0x7cfbb1){_0x428b8e=_0x428b8e-0xbc;let _0x5c70e0=_0x2850e6[_0x428b8e];return _0x5c70e0;},_0x428b(_0x24602c,_0xb1ea1e);}function _0x2850(){const _0x585761=['string','\x27Yesterday\x27\x20hh:mma','1010kpxdat','16542mdMiBE','16BlZDKq','6099680OEevxd','8832kjFpmb','348CIOJxW','172988Ddqxih','dateTimeFormat','3101sWBHpZ','2976360kEirLN','\x27Today\x27\x20hh:mma','220110sHXWFI','function','invalid-date-time-format','42YrRXMv','MM-dd-yyyy\x20hh:mma','\x27Last\x27\x20EEEE\x20hh:mma','605105FpRokc'];_0x2850=function(){return _0x585761;};return _0x2850();}import _0x44a37f from'date-fns/parseISO/index.js';import _0x2a83db from'date-fns/differenceInCalendarDays/index.js';import{CKEditorError as _0x3e9b4e}from'ckeditor5/src/utils.js';export default function E(_0xa83516={}){const _0x758dc6=_0x428b;if(void 0x0!==_0xa83516[_0x758dc6(0xc4)]&&_0x758dc6(0xc9)!=typeof _0xa83516[_0x758dc6(0xc4)])throw new _0x3e9b4e(_0x758dc6(0xca));return _0x3eea1f=>{const _0x38241e=_0x758dc6,_0x51d5c1=_0x38241e(0xcf)==typeof _0x3eea1f?_0x44a37f(_0x3eea1f):_0x3eea1f,_0x48a99a=new Date(),_0x21be1a=_0x2a83db(_0x48a99a,_0x51d5c1);return _0xa83516[_0x38241e(0xc4)]?_0xa83516[_0x38241e(0xc4)](_0x51d5c1):_0x5a0fc7(_0x51d5c1,0x0===_0x21be1a?_0x38241e(0xc7):0x1===_0x21be1a?_0x38241e(0xbc):_0x21be1a<0x7?_0x38241e(0xcd):_0x38241e(0xcc));};}
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
function _0x5a88(){const _0x2b7e1a=['markerNameToElements','length','8859DBKDeB','31810iWwgrH','14MmWLuz','map','values','245746QheiqF','739476qMBPIF','domElement','domConverter','2291316aGpeMS','view','sort','mapper','name','item','822200ceckpn','push','mapViewToDom','from','1685608VfFixY','filter','488cpbize','getClientRects','1935qDichU'];_0x5a88=function(){return _0x2b7e1a;};return _0x5a88();}(function(_0x18a692,_0x35a967){const _0x1f6e07=_0x2094,_0x5e7d0d=_0x18a692();while(!![]){try{const _0x306d92=-parseInt(_0x1f6e07(0xe0))/0x1+parseInt(_0x1f6e07(0xe1))/0x2+parseInt(_0x1f6e07(0xf5))/0x3*(-parseInt(_0x1f6e07(0xf0))/0x4)+-parseInt(_0x1f6e07(0xea))/0x5+parseInt(_0x1f6e07(0xe4))/0x6+-parseInt(_0x1f6e07(0xdd))/0x7*(parseInt(_0x1f6e07(0xee))/0x8)+-parseInt(_0x1f6e07(0xf2))/0x9*(-parseInt(_0x1f6e07(0xdc))/0xa);if(_0x306d92===_0x35a967)break;else _0x5e7d0d['push'](_0x5e7d0d['shift']());}catch(_0x40b5d8){_0x5e7d0d['push'](_0x5e7d0d['shift']());}}}(_0x5a88,0x3b7e5));function _0x2094(_0x25d22f,_0x38378f){const _0x5a8893=_0x5a88();return _0x2094=function(_0x20945f,_0x1c23f3){_0x20945f=_0x20945f-0xdc;let _0x5286e9=_0x5a8893[_0x20945f];return _0x5286e9;},_0x2094(_0x25d22f,_0x38378f);}import{first as _0x306347}from'ckeditor5/src/utils.js';export default function g(_0x1873b1,_0x40b9bc){const _0x376b49=_0x2094,_0x3b11f5=_0x1873b1[_0x376b49(0xe7)][_0x376b49(0xf3)](_0x40b9bc[_0x376b49(0xe8)]);if(!_0x3b11f5)return null;const _0x699c4a=_0x306347(_0x3b11f5[_0x376b49(0xdf)]());return _0x1873b1[_0x376b49(0xe5)][_0x376b49(0xe3)][_0x376b49(0xec)](_0x699c4a)||null;}export function getAllMarkersDomElementsSorted(_0x5d3e9c,_0x12aa3e){const _0x34b730=_0x2094;if(0x0===_0x12aa3e[_0x34b730(0xf4)])return null;const _0x5518f3=[],_0x489b44=_0x5d3e9c[_0x34b730(0xe5)][_0x34b730(0xe3)];for(const _0x17a183 of _0x12aa3e){const _0x4b74de=_0x5d3e9c[_0x34b730(0xe7)][_0x34b730(0xf3)](_0x17a183[_0x34b730(0xe8)]);if(!_0x4b74de)continue;const _0x3ff270=Array[_0x34b730(0xed)](_0x4b74de)[_0x34b730(0xde)](_0x9f3328=>_0x489b44[_0x34b730(0xec)](_0x9f3328))[_0x34b730(0xef)](_0x279f62=>!!_0x279f62);_0x5518f3[_0x34b730(0xeb)](..._0x3ff270);}if(0x0===_0x5518f3[_0x34b730(0xf4)])return null;const _0x488692=[];for(const _0x4bc912 of _0x5518f3){const _0x2d243d=_0x4bc912[_0x34b730(0xf1)]()[_0x34b730(0xe9)](0x0);_0x2d243d&&_0x488692[_0x34b730(0xeb)]({'x':_0x2d243d['x'],'y':_0x2d243d['y'],'domElement':_0x4bc912});}return 0x0===_0x488692[_0x34b730(0xf4)]?null:(_0x488692[_0x34b730(0xe6)]((_0x5c9f11,_0x456327)=>_0x5c9f11['y']-_0x456327['y']||_0x5c9f11['x']-_0x456327['x']),_0x488692[_0x34b730(0xde)](_0x9ddc76=>_0x9ddc76[_0x34b730(0xe2)]));}
|
package/src/utils/hashobject.js
CHANGED
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
(function(
|
23
|
+
(function(_0x30268f,_0x3aa2af){const _0x5be741=_0x46af,_0x2231c6=_0x30268f();while(!![]){try{const _0x3283e8=parseInt(_0x5be741(0x1a4))/0x1*(parseInt(_0x5be741(0x1b3))/0x2)+-parseInt(_0x5be741(0x1a8))/0x3+parseInt(_0x5be741(0x1aa))/0x4+-parseInt(_0x5be741(0x1b1))/0x5+parseInt(_0x5be741(0x1b2))/0x6+-parseInt(_0x5be741(0x1a9))/0x7+parseInt(_0x5be741(0x1a6))/0x8;if(_0x3283e8===_0x3aa2af)break;else _0x2231c6['push'](_0x2231c6['shift']());}catch(_0x6719d5){_0x2231c6['push'](_0x2231c6['shift']());}}}(_0x3715,0xdd281));function _0x3715(){const _0x26f663=['8008296UjQMHg','21872RxDDjQ','isArray','94dwcboz','number','1397936slMSmf','toString','1020858jCeVXA','2307578hSoXIV','3270984yepoiX','string','sort','charCodeAt','object','sign','keys','8896955sNKuLi'];_0x3715=function(){return _0x26f663;};return _0x3715();}export default function M(_0x58e433){let _0x4964c0=0x0,_0x48894f=0x0;for(const _0x4ffdca of q(_0x58e433))_0x4964c0=(_0x4964c0<<0x5)-_0x4964c0+_0x4ffdca,_0x4964c0|=0x0,[_0x4964c0,_0x48894f]=[_0x48894f,_0x4964c0];return z(_0x4964c0)+z(_0x48894f);}function*O(_0x30536a){const _0x37911a=_0x46af;null==_0x30536a||null==_0x30536a?yield 0x12b9b0a1:0x0===_0x30536a||!0x1===_0x30536a?yield 0x0:0x1===_0x30536a||0x1==_0x30536a?yield 0x1:Array[_0x37911a(0x1b4)](_0x30536a)?yield*function*(_0x476119){for(const _0x2e45df of _0x476119)yield*O(_0x2e45df);}(_0x30536a):_0x37911a(0x1ae)==typeof _0x30536a?yield*q(_0x30536a):_0x37911a(0x1ab)==typeof _0x30536a?yield*v(_0x30536a):_0x37911a(0x1a5)==typeof _0x30536a&&(yield _0x30536a);}function _0x46af(_0x3b6d1f,_0x36d5a3){const _0x3715f7=_0x3715();return _0x46af=function(_0x46afa9,_0x5ca422){_0x46afa9=_0x46afa9-0x1a4;let _0x3ff252=_0x3715f7[_0x46afa9];return _0x3ff252;},_0x46af(_0x3b6d1f,_0x36d5a3);}function*q(_0x156f69){const _0x19c763=_0x46af;if(yield w('{'),_0x156f69){const _0x17e498=Object[_0x19c763(0x1b0)](_0x156f69)[_0x19c763(0x1ac)]();for(const _0x2552d9 of _0x17e498){yield*v(_0x2552d9),yield w(':');const _0x4e4eb1=_0x156f69[_0x2552d9];yield*O(_0x4e4eb1);}}yield w('}');}function*v(_0x6e2def){yield w('\x22');for(const _0x3be5bb of _0x6e2def)yield w(_0x3be5bb);yield w('\x22');}function w(_0x48a9f1){const _0x46e49b=_0x46af;return _0x48a9f1[_0x46e49b(0x1ad)](0x0);}function z(_0x362d64){const _0x5cd973=_0x46af;return(_0x362d64*=Math[_0x5cd973(0x1af)](_0x362d64))[_0x5cd973(0x1a7)](0x24);}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
|
-
* @module collaboration-core/utils/
|
6
|
+
* @module collaboration-core/utils/sanitizeditorconfig
|
7
7
|
*/
|
8
8
|
import type { Editor, EditorConfig } from 'ckeditor5/src/core.js';
|
9
9
|
/**
|
@@ -20,4 +20,4 @@
|
|
20
20
|
*
|
21
21
|
*
|
22
22
|
*/
|
23
|
-
|
23
|
+
function _0x1e02(){const _0x2cc11a=['has','5990tXxVxX','every','1214432xedeFq','constructor','builtinPlugins','find','DocumentOutline','context','1944PItPVc','map','RevisionTracker','WordCount','pluginName','3ewKPNx','concat','initialData','extraPlugins','filter','363970qmhBNi','length','721220JjXEXJ','from','WProofreader','names','rootsAttributes','get','prototype','2688eogJuV','71940IxwsAU','config','46012ulYHpm','toolbar','set','includes','plugins','requires','WebSocketGateway','removePlugins','_context','string','Autosave','648ajsUxV'];_0x1e02=function(){return _0x2cc11a;};return _0x1e02();}const _0x560589=_0x106d;(function(_0x327bf3,_0x129f70){const _0x38278b=_0x106d,_0x46fe29=_0x327bf3();while(!![]){try{const _0x23217c=parseInt(_0x38278b(0x151))/0x1+-parseInt(_0x38278b(0x170))/0x2+parseInt(_0x38278b(0x16b))/0x3*(parseInt(_0x38278b(0x160))/0x4)+parseInt(_0x38278b(0x172))/0x5+parseInt(_0x38278b(0x17a))/0x6+-parseInt(_0x38278b(0x179))/0x7*(parseInt(_0x38278b(0x15c))/0x8)+parseInt(_0x38278b(0x166))/0x9*(-parseInt(_0x38278b(0x15e))/0xa);if(_0x23217c===_0x129f70)break;else _0x46fe29['push'](_0x46fe29['shift']());}catch(_0x50a8c5){_0x46fe29['push'](_0x46fe29['shift']());}}}(_0x1e02,0x27e35));function _0x106d(_0x555367,_0x3fd0c4){const _0x1e02a8=_0x1e02();return _0x106d=function(_0x106dc6,_0x381766){_0x106dc6=_0x106dc6-0x150;let _0xd965a0=_0x1e02a8[_0x106dc6];return _0xd965a0;},_0x106d(_0x555367,_0x3fd0c4);}const W=[_0x560589(0x16d),_0x560589(0x165),_0x560589(0x152),_0x560589(0x176)],D=[_0x560589(0x157),_0x560589(0x168),_0x560589(0x15b),_0x560589(0x169),_0x560589(0x164),_0x560589(0x174)];function S(_0x3abc40,_0x5187d0,_0x589593,_0x1143c9=[]){const _0x5cd437=_0x560589,_0x4f5938=_0x5cd437(0x15a)==typeof _0x3abc40?_0x589593[_0x5cd437(0x177)](_0x3abc40)[_0x5cd437(0x161)]:_0x3abc40[_0x5cd437(0x178)][_0x5cd437(0x161)];if(_0x5187d0[_0x5cd437(0x15d)](_0x4f5938))return _0x5187d0[_0x5cd437(0x177)](_0x4f5938);_0x5187d0[_0x5cd437(0x153)](_0x4f5938,!0x0);const _0x222fb3=[...D,..._0x1143c9][_0x5cd437(0x167)](_0x3cad23=>{const _0x55c1a3=_0x5cd437;if(_0x589593[_0x55c1a3(0x15d)](_0x3cad23))return _0x589593[_0x55c1a3(0x177)](_0x3cad23)[_0x55c1a3(0x161)];})[_0x5cd437(0x16f)](_0x2d7222=>_0x2d7222);if(_0x4f5938&&_0x222fb3[_0x5cd437(0x154)](_0x4f5938))return _0x5187d0[_0x5cd437(0x153)](_0x4f5938,!0x1),!0x1;if(!_0x4f5938[_0x5cd437(0x156)])return _0x5187d0[_0x5cd437(0x153)](_0x4f5938,!0x0),!0x0;const _0x371336=_0x4f5938[_0x5cd437(0x156)][_0x5cd437(0x15f)](_0x58696c=>S(_0x58696c,_0x5187d0,_0x589593,_0x1143c9));return _0x5187d0[_0x5cd437(0x153)](_0x4f5938,_0x371336),_0x371336;}export default function C(_0x2ec584,_0x5a98f3){const _0x327959=_0x560589,_0x28b456={};for(const _0xe903cf of _0x2ec584[_0x327959(0x150)][_0x327959(0x175)]())W[_0x327959(0x154)](_0xe903cf)||(_0x28b456[_0xe903cf]=_0x2ec584[_0x327959(0x150)][_0x327959(0x177)](_0xe903cf));const _0x56bf0d=_0x28b456[_0x327959(0x155)]||[],_0x27fcc9=_0x2ec584[_0x327959(0x161)][_0x327959(0x162)]||[],_0x166ab9=_0x56bf0d[_0x327959(0x171)]?_0x56bf0d:_0x27fcc9,_0x1ca454=_0x28b456[_0x327959(0x16e)]||[];delete _0x28b456[_0x327959(0x16e)];const _0x395267=_0x28b456[_0x327959(0x158)]||[];delete _0x28b456[_0x327959(0x158)];const _0x254841=_0x2ec584[_0x327959(0x159)][_0x327959(0x150)][_0x327959(0x177)](_0x327959(0x155))||[],_0x325860=_0x166ab9[_0x327959(0x16c)](_0x1ca454)[_0x327959(0x16c)](_0x254841)[_0x327959(0x167)](_0x554ea2=>_0x327959(0x15a)==typeof _0x554ea2?_0x27fcc9[_0x327959(0x163)](_0xe3ecb9=>_0xe3ecb9[_0x327959(0x16a)]==_0x554ea2):_0x554ea2)[_0x327959(0x16f)](_0x504c4f=>!_0x395267[_0x327959(0x154)](_0x504c4f)&&!_0x395267[_0x327959(0x154)](_0x504c4f[_0x327959(0x16a)])),_0x722ce2=Array[_0x327959(0x173)](new Set(_0x325860)),_0x7f135a=new Map();return _0x28b456[_0x327959(0x155)]=_0x722ce2[_0x327959(0x16f)](_0x3327a1=>S(_0x3327a1,_0x7f135a,_0x2ec584[_0x327959(0x155)],_0x5a98f3)),_0x28b456;}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
import { type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
6
|
+
import type { BaseCommentThreadView } from '@ckeditor/ckeditor5-comments';
|
7
|
+
import type { BaseSuggestionThreadView } from '@ckeditor/ckeditor5-track-changes';
|
8
|
+
/**
|
9
|
+
* A keystroke used to move focus from the editor content to a current annotation that has a marker
|
10
|
+
* under user's selection.
|
11
|
+
*/
|
12
|
+
export declare const ENTER_THREAD_KEYSTROKE: "Ctrl+Shift+E";
|
13
|
+
/**
|
14
|
+
* This helper initializes focus navigation within a thread using a keyboard.
|
15
|
+
*
|
16
|
+
* * It takes care of added and removed (dynamic) views in the thread.
|
17
|
+
* * It takes care of the Enter key support (entering a thread).
|
18
|
+
* * It takes care of the Esc key support (leaving a thread or whole sidebar).
|
19
|
+
* * It takes care of the arrow key events being fired for the sidebar to navigate between individual threads.
|
20
|
+
*
|
21
|
+
* @param threadView A thread view in which the keyboard navigation will be enabled.
|
22
|
+
* @param focusCycleableViews A collection of focusable views withing a thread.
|
23
|
+
*/
|
24
|
+
export default function setupThreadKeyboardNavigation(threadView: BaseCommentThreadView | BaseSuggestionThreadView, focusCycleableViews: ViewCollection<FocusableView>): void;
|
25
|
+
/**
|
26
|
+
* An event fired when the user presses the Esc key while the entire thread is focused.
|
27
|
+
*/
|
28
|
+
export type ThreadEscapeEvent = {
|
29
|
+
name: 'escape';
|
30
|
+
args: [];
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* An event fired when the user presses the arrow up key while the entire thread is focused.
|
34
|
+
*/
|
35
|
+
export type ThreadArrowUpEvent = {
|
36
|
+
name: 'arrowup';
|
37
|
+
args: [];
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* An event fired when the user presses the arrow down key while the entire thread is focused.
|
41
|
+
*/
|
42
|
+
export type ThreadArrowDownEvent = {
|
43
|
+
name: 'arrowdown';
|
44
|
+
args: [];
|
45
|
+
};
|