@ckeditor/ckeditor5-case-change 48.8.1-alpha.3 → 49.0.0-alpha.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/dist/augmentation.d.ts +16 -16
- package/dist/casechange.d.ts +110 -110
- package/dist/casechangecommand.d.ts +25 -25
- package/dist/casechangeediting.d.ts +28 -28
- package/dist/casechangeui.d.ts +29 -29
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- 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/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.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/eu.js +1 -1
- package/dist/translations/eu.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.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/ti.js +1 -1
- package/dist/translations/ti.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/uz.js +1 -1
- package/dist/translations/uz.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/common-translations.d.ts +6 -6
- package/package.json +6 -6
package/dist/augmentation.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from
|
|
6
|
-
declare module
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { CaseChange, CaseChangeEditing, CaseChangeUI, CaseChangeCommand, CaseChangeConfig } from "./index.js";
|
|
6
|
+
declare module "@ckeditor/ckeditor5-core" {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
caseChange?: CaseChangeConfig;
|
|
9
|
+
}
|
|
10
|
+
interface PluginsMap {
|
|
11
|
+
[CaseChange.pluginName]: CaseChange;
|
|
12
|
+
[CaseChangeEditing.pluginName]: CaseChangeEditing;
|
|
13
|
+
[CaseChangeUI.pluginName]: CaseChangeUI;
|
|
14
|
+
}
|
|
15
|
+
interface CommandsMap {
|
|
16
|
+
caseChange: CaseChangeCommand;
|
|
17
|
+
}
|
|
18
18
|
}
|
package/dist/casechange.d.ts
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { CaseChangeEditing } from
|
|
11
|
-
import { CaseChangeUI } from
|
|
6
|
+
* @module case-change/casechange
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { CaseChangeEditing } from "./casechangeediting.js";
|
|
11
|
+
import { CaseChangeUI } from "./casechangeui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
* The case change feature.
|
|
14
|
+
*
|
|
15
|
+
* For a detailed overview, check the {@glink features/case-change Case change} feature guide.
|
|
16
|
+
*/
|
|
17
17
|
export declare class CaseChange extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): PluginDependenciesOf<[CaseChangeEditing, CaseChangeUI]>;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "CaseChange";
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isOfficialPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
static override get isPremiumPlugin(): true;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
* The configuration of the {@link module:case-change/casechange~CaseChange case change feature}.
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* ClassicEditor
|
|
40
|
+
* .create( {
|
|
41
|
+
* caseChange: ... // Case change feature configuration.
|
|
42
|
+
* } )
|
|
43
|
+
* .then( /* ... *\/ )
|
|
44
|
+
* .catch( /* ... *\/ );
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
48
|
+
*/
|
|
49
49
|
export interface CaseChangeConfig {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Title case configuration.
|
|
52
|
+
*/
|
|
53
|
+
titleCase?: CaseChangeTitleCaseConfig;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
56
|
+
* Title case configuration.
|
|
57
|
+
* It allows setting words that should not be capitalized when formatted as title case.
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* ClassicEditor
|
|
61
|
+
* .create( {
|
|
62
|
+
* caseChange: {
|
|
63
|
+
* titleCase {
|
|
64
|
+
* excludeWords: [ 'a', 'an', 'the' ]
|
|
65
|
+
* }
|
|
66
|
+
* }
|
|
67
|
+
* } )
|
|
68
|
+
* .then( /* ... *\/ )
|
|
69
|
+
* .catch( /* ... *\/ );
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* ClassicEditor
|
|
74
|
+
* .create( {
|
|
75
|
+
* caseChange: {
|
|
76
|
+
* titleCase {
|
|
77
|
+
* excludeWords: ( word ) => [ 'a', 'an', 'the' ].includes( word )
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
* } )
|
|
81
|
+
* .then( /* ... *\/ )
|
|
82
|
+
* .catch( /* ... *\/ );
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* ```ts
|
|
86
|
+
* ClassicEditor
|
|
87
|
+
* .create( {
|
|
88
|
+
* caseChange: {
|
|
89
|
+
* titleCase {
|
|
90
|
+
* excludeWords: ( word, { wordIndex } ) => wordIndex > 0 && [ 'a', 'an', 'the' ].includes( word )
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* } )
|
|
94
|
+
* .then( /* ... *\/ )
|
|
95
|
+
* .catch( /* ... *\/ );
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
99
|
+
*/
|
|
100
100
|
export interface CaseChangeTitleCaseConfig {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Words which should not be capitalized.
|
|
103
|
+
*/
|
|
104
|
+
excludeWords?: Array<string> | CaseChangeExcludeWordsCallback;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
* The exclude word callback.
|
|
108
|
+
*/
|
|
109
109
|
export type CaseChangeExcludeWordsCallback = (word: string, context: CaseChangeExcludeWordsCallbackContext) => boolean;
|
|
110
110
|
/**
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
* The exclude word callback context.
|
|
112
|
+
*/
|
|
113
113
|
export interface CaseChangeExcludeWordsCallbackContext {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The offset in the text where the given word starts.
|
|
116
|
+
*/
|
|
117
|
+
charOffset: number;
|
|
118
|
+
/**
|
|
119
|
+
* The word index in the given text.
|
|
120
|
+
*/
|
|
121
|
+
wordIndex: number;
|
|
122
|
+
/**
|
|
123
|
+
* The block text.
|
|
124
|
+
*/
|
|
125
|
+
blockText: string;
|
|
126
126
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Command, type Editor } from
|
|
6
|
+
* @module case-change/casechangecommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* This command changes the case of the selected text.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeCommand extends Command {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new `CaseChangeCommand` instance.
|
|
16
|
+
*
|
|
17
|
+
* @param editor The editor on which this command will be used.
|
|
18
|
+
*/
|
|
19
|
+
constructor(editor: Editor, transformCallback: CaseChangeTransformCallback);
|
|
20
|
+
/**
|
|
21
|
+
* Transforms the selected text with the defined case change callback.
|
|
22
|
+
*
|
|
23
|
+
* @fires execute
|
|
24
|
+
*/
|
|
25
|
+
override execute(): void;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
override refresh(): void;
|
|
30
30
|
}
|
|
31
31
|
export type CaseChangeTransformCallback = (arg: string) => string;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* The case change editing feature. It introduces three commands: `changeCaseUpper`, `changeCaseLower`, and `changeCaseTitle`.
|
|
11
|
+
*/
|
|
12
12
|
export declare class CaseChangeEditing extends Plugin {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "CaseChangeEditing";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static override get isOfficialPlugin(): true;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static override get isPremiumPlugin(): true;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
afterInit(): void;
|
|
33
33
|
}
|
package/dist/casechangeui.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
6
|
+
* @module case-change/casechangeui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The case change UI plugin.
|
|
12
|
+
*/
|
|
13
13
|
export declare class CaseChangeUI extends Plugin {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "CaseChangeUI";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static override get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
override destroy(): void;
|
|
34
34
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from
|
|
9
|
-
export { CaseChangeEditing } from
|
|
10
|
-
export { CaseChangeUI } from
|
|
11
|
-
export { CaseChangeCommand } from
|
|
12
|
-
export type { CaseChangeTransformCallback } from
|
|
13
|
-
import
|
|
6
|
+
* @module case-change
|
|
7
|
+
*/
|
|
8
|
+
export { CaseChange, type CaseChangeConfig, type CaseChangeTitleCaseConfig, type CaseChangeExcludeWordsCallback, type CaseChangeExcludeWordsCallbackContext } from "./casechange.js";
|
|
9
|
+
export { CaseChangeEditing } from "./casechangeediting.js";
|
|
10
|
+
export { CaseChangeUI } from "./casechangeui.js";
|
|
11
|
+
export { CaseChangeCommand } from "./casechangecommand.js";
|
|
12
|
+
export type { CaseChangeTransformCallback } from "./casechangecommand.js";
|
|
13
|
+
import "./augmentation.js";
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x2f0700,Plugin as _0x2efece}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x2aa0f2,Collection as _0x4fc361}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0x485b44,MenuBarMenuListView as _0x138a18,MenuBarMenuListItemView as _0x112305,MenuBarMenuListItemButtonView as _0xf802ef,createDropdown as _0xb053ba,addListToDropdown as _0x50ec5f,UIModel as _0x14f5a5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x44ac38}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x2f0700{['_transformCallback'];constructor(_0xcca3b7,_0x1fede2){super(_0xcca3b7),this['_transformCallback']=_0x1fede2;}['execute'](){const _0x32199d=this['editor']['model'],_0x18d188=Array['from'](this['_getAffectedRanges']()),_0x3f0cfc=Array['from'](_0x32199d['document']['selection']['getRanges']());_0x32199d['change'](_0x1e2c88=>{for(const _0x3518b6 of _0x18d188)this['_modifyContent'](_0x3518b6,_0x1e2c88);_0x1e2c88['setSelection'](_0x3f0cfc);});}['refresh'](){for(const _0x2ff0e5 of this['_getAffectedRanges']())for(const _0x95ab6a of _0x2ff0e5)if(_0x95ab6a['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x1b3fe3=this['editor']['model'],_0x3e6520=_0x1b3fe3['document']['selection'];if(_0x3e6520['isCollapsed']){const _0x456937=this['_findAncestorTextBlock'](_0x3e6520['getFirstPosition']()['parent']);return _0x456937?[_0x1b3fe3['createRangeIn'](_0x456937)]:[];}return _0x3e6520['getRanges']();}['_modifyContent'](_0x4e3a77,_0xa47332){for(const _0x1d9a00 of this['_getElementsAllowingText'](_0x4e3a77)){const _0x5d0807=this['_getElementTextContent'](_0x1d9a00),_0x2bdec9=this['_transformCallback'](_0x5d0807);for(const _0x3a4c04 of this['_getTextNodesRangeLimited'](_0x1d9a00,_0x4e3a77))this['_replaceTextNodeData'](_0x3a4c04,_0x2bdec9,_0xa47332);}}['_findAncestorTextBlock'](_0xb2fa59){const _0x4620e5=this['editor']['model']['schema'];if(_0xb2fa59['is']('element')&&_0x4620e5['checkChild'](_0xb2fa59,'$text'))return _0xb2fa59;const _0x2f03bb=_0xb2fa59['parent'];return!_0x2f03bb||_0x4620e5['isLimit'](_0xb2fa59)?null:this['_findAncestorTextBlock'](_0x2f03bb);}*['_getElementsAllowingText'](_0x11e460){const _0x39744a=new Set();for(const {item:_0x5626be}of _0x11e460['getWalker']()){const _0x49895f=this['_findAncestorTextBlock'](_0x5626be);_0x49895f&&!_0x39744a['has'](_0x49895f)&&(_0x39744a['add'](_0x49895f),yield _0x49895f);}}['_getElementTextContent'](_0x22ee92){return Array['from'](_0x22ee92['getChildren']())['reduce']((_0x279cb3,_0x2559b9)=>_0x279cb3+(_0x2559b9['is']('$text')?_0x2559b9['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x3f5c21,_0x1fc8d3){const _0x365846=_0x1fc8d3['getIntersection'](this['editor']['model']['createRangeIn'](_0x3f5c21));if(_0x365846){for(const _0x42c9ea of _0x365846['getItems']())_0x42c9ea['is']('$textProxy')&&_0x42c9ea['parent']==_0x3f5c21&&(yield _0x42c9ea);}}['_replaceTextNodeData'](_0x11e5f6,_0x4e1001,_0x59a46d){const _0x3b84f2=_0x4e1001['substring'](_0x11e5f6['startOffset'],_0x11e5f6['endOffset']);if(_0x3b84f2===_0x11e5f6['data'])return;const _0x147a19=_0x11e5f6['getAttributes']();this['editor']['model']['insertContent'](_0x59a46d['createText'](_0x3b84f2,_0x147a19),_0x59a46d['createSelection'](_0x59a46d['createRangeOn'](_0x11e5f6)));}}function d(_0x3d3183,_0x202cf7,..._0x174ae1){const t=_0x3d3183['t'];switch(_0x202cf7){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x174ae1);default:return _0x202cf7;}}class CaseChangeEditing extends _0x2efece{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a5164=this['editor'],_0x332c9d=_0x4a5164['locale']['contentLanguage'],_0x25acd=function(_0x1d2896=[]){return'function'==typeof _0x1d2896?_0x1d2896:(_0x4d23a0,{wordIndex:_0x45a999})=>_0x45a999>0x0&&_0x1d2896['includes'](_0x4d23a0);}(_0x4a5164['config']['get']('caseChange.titleCase.excludeWords')),_0xcac48b={'changeCaseUpper':new CaseChangeCommand(_0x4a5164,_0x4d9641=>_0x4d9641['toLocaleUpperCase'](_0x332c9d)),'changeCaseLower':new CaseChangeCommand(_0x4a5164,_0x193f38=>_0x193f38['toLocaleLowerCase'](_0x332c9d)),'changeCaseTitle':new CaseChangeCommand(_0x4a5164,_0x1bdf54=>function(_0x1cdab0,_0x2288dd,_0x328a8a){return function(_0xc988da,_0x216a57){let _0xe8c4bb='',_0x291dba=0x0,_0x355d5d=0x0;for(const _0x440c3d of _0xc988da['matchAll'](/ +/g)){const _0x5c41cb=_0x440c3d['index'],_0x2796ed=_0xc988da['substring'](_0x291dba,_0x5c41cb);_0x2796ed['length']&&(_0xe8c4bb+=_0x216a57(_0x2796ed,_0x291dba,_0x355d5d++)),_0xe8c4bb+=_0x440c3d[0x0],_0x291dba=_0x5c41cb+_0x440c3d[0x0]['length'];}const _0x213e43=_0xc988da['substring'](_0x291dba);return _0x213e43['length']&&(_0xe8c4bb+=_0x216a57(_0x213e43,_0x291dba,_0x355d5d)),_0xe8c4bb;}(_0x1cdab0,(_0x3b6b4f,_0x1dac3c,_0x47fd16)=>{const _0x19f8a9=_0x3b6b4f['toLocaleLowerCase'](_0x328a8a);return _0x2288dd(_0x19f8a9,{'charOffset':_0x1dac3c,'wordIndex':_0x47fd16,'blockText':_0x1cdab0})?_0x19f8a9:_0x19f8a9['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x27c903=>_0x27c903['toLocaleUpperCase'](_0x328a8a));});}(_0x1bdf54,_0x25acd,_0x332c9d))};for(const [_0x13b50c,_0x22f4d2]of Object['entries'](_0xcac48b))_0x4a5164['commands']['add'](_0x13b50c,_0x22f4d2),_0x22f4d2['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x13b50c);});this['listenTo'](_0x4a5164['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4a5164['keystrokes']['set']('shift+f3',(_0x5141f9,_0x58dc0b)=>{const _0x3599ee=g(this['editor']['locale']),_0x60eb2d=_0x3599ee[this['_currentCommandIndex']%_0x3599ee['length']]['commandName'];_0x4a5164['execute'](_0x60eb2d),this['_currentCommandIndex']++,_0x58dc0b();});}['afterInit'](){!async function(_0x480112){const _0x333a23=_0x59837c([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0xf83e51=0x334129cd,_0x29c6d3=0x3346a3a5^_0xf83e51,_0x3eaf0b=window[_0x59837c([0x44,0x61,0x74,0x65])][_0x59837c([0x6e,0x6f,0x77])](),_0x22e275=_0x480112[_0x59837c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x316c9a=new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17739f=>{_0x22e275[_0x59837c([0x6f,0x6e,0x63,0x65])](_0x59837c([0x72,0x65,0x61,0x64,0x79]),_0x17739f);}),_0x375118={[_0x59837c([0x6b,0x74,0x79])]:_0x59837c([0x45,0x43]),[_0x59837c([0x75,0x73,0x65])]:_0x59837c([0x73,0x69,0x67]),[_0x59837c([0x63,0x72,0x76])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36]),[_0x59837c([0x78])]:_0x59837c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x59837c([0x79])]:_0x59837c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x59837c([0x61,0x6c,0x67])]:_0x59837c([0x45,0x53,0x32,0x35,0x36])},_0x38a36a=_0x22e275[_0x59837c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59837c([0x67,0x65,0x74])](_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x447cfa(){let _0x2baddf,_0x5a02f8=null,_0x1d86b7=null;try{if(_0x38a36a==_0x59837c([0x47,0x50,0x4c]))return _0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2baddf=_0x314b17(),!_0x2baddf)return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d86b7=_0x408ab2(_0x2baddf[_0x59837c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2baddf[_0x59837c([0x6a,0x74,0x69])])),await _0x56a6b()?_0x3e2940()?_0x3e1196()?_0x59837c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fe0f()?(_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a02f8=_0x280dec(_0x59837c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12b6ea()):_0x59837c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x59837c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e1196(){const _0x9d1587=[_0x59837c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59837c([0x74,0x72,0x69,0x61,0x6c])][_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3eaf0b/0x3e8:0xe10*_0x29c6d3;return _0x2baddf[_0x59837c([0x65,0x78,0x70])]<_0x9d1587;}function _0x3e2940(){const _0x60b2f9=_0x2baddf[_0x59837c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x60b2f9&&(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a]))||(!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x43,0x43]))||!!_0x60b2f9[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x50,0x50]))));}function _0x25fe0f(){const _0x33adcd=_0x2baddf[_0x59837c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33adcd||0x0==_0x33adcd[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59ac06}=new URL(window[_0x59837c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33adcd[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59ac06))return!0x0;const _0x135b5d=_0x59ac06[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));return _0x33adcd[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32b0d6=>_0x32b0d6[_0x59837c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59837c([0x2a])))[_0x59837c([0x6d,0x61,0x70])](_0x2bd818=>_0x2bd818[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])))[_0x59837c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x145635=>_0x145635[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x6d,0x61,0x70])](_0x414a0e=>Array(_0x135b5d[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x414a0e[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x59837c([0x66,0x69,0x6c,0x6c])](_0x414a0e[0x0]===_0x59837c([0x2a])?_0x59837c([0x2a]):'')[_0x59837c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x414a0e))[_0x59837c([0x73,0x6f,0x6d,0x65])](_0x34d553=>_0x135b5d[_0x59837c([0x65,0x76,0x65,0x72,0x79])]((_0x29dbe3,_0x39b58b)=>_0x34d553[_0x39b58b]===_0x29dbe3||_0x34d553[_0x39b58b]===_0x59837c([0x2a])));}function _0x12b6ea(){return _0x5a02f8&&_0x1d86b7?new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f2300,_0x1181d1)=>{_0x5a02f8[_0x59837c([0x74,0x68,0x65,0x6e])](_0x1f2300,_0x1181d1),_0x1d86b7[_0x59837c([0x74,0x68,0x65,0x6e])](_0x30654d=>{_0x30654d!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2300(_0x30654d);},_0x1181d1);}):_0x5a02f8||_0x1d86b7||_0x59837c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x408ab2(_0x45fc58,_0x1ebe36){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0805=>{if(_0x8fe657())return _0x4e0805(_0x59837c([0x56,0x61,0x6c,0x69,0x64]));_0x222005(),_0x22e275[_0x59837c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ec4c6=!0x1;const _0x2a125d=_0x2aa0f2();function _0x3b0c33(_0x133d6b){return!!_0x133d6b&&(typeof _0x133d6b===_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x133d6b===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x133d6b[_0x59837c([0x74,0x68,0x65,0x6e])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x133d6b[_0x59837c([0x63,0x61,0x74,0x63,0x68])]===_0x59837c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29781a(_0x41323b){_0x57683e(_0x41323b)[_0x59837c([0x74,0x68,0x65,0x6e])](_0x5c83ae=>{if(!_0x5c83ae||_0x5c83ae[_0x59837c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59837c([0x6f,0x6b]))return _0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1465bc(_0x51b44f(_0x2a125d+_0x1ebe36))!=_0x5c83ae[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59837c([0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0xd1ebdf=>(_0x3dc7a8(),_0xd1ebdf),()=>{const _0x25de39=_0x43b758();return null==_0x25de39?(_0x3dc7a8(),_0x59837c([0x56,0x61,0x6c,0x69,0x64])):_0x59837c(_0x3eaf0b-_0x25de39>(0x174dadcd^_0xf83e51)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59837c([0x74,0x68,0x65,0x6e])](_0x4e0805)[_0x59837c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41dbcf=0x3377c74d^_0xf83e51;function _0x3dc7a8(){const _0x426bc4=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0xc5cbe5=_0x47541a(_0x1465bc(window[_0x59837c([0x4d,0x61,0x74,0x68])][_0x59837c([0x63,0x65,0x69,0x6c])](_0x3eaf0b/_0x41dbcf)));window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x426bc4,_0xc5cbe5);}function _0x43b758(){const _0x5d8c6c=_0x59837c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1465bc(_0x51b44f(_0x45fc58)),_0x1a9bac=window[_0x59837c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59837c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d8c6c);return _0x1a9bac?window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47541a(_0x1a9bac),0x10)*_0x41dbcf:null;}function _0x57683e(_0x4a2a39){return new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18056b,_0x4b4968)=>{_0x4a2a39[_0x59837c([0x74,0x68,0x65,0x6e])](_0x18056b,_0x4b4968),window[_0x59837c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4b4968,0x3340fd0d^_0xf83e51);});}}_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x14e8dc,_0x40e408)=>{if(_0x40e408[0x0]!=_0x45fc58)return _0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40e408[0x1]={..._0x40e408[0x1],[_0x59837c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a125d};},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x68,0x69,0x67,0x68])}),_0x22e275[_0x59837c([0x6f,0x6e])](_0x59837c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f7ad5=>{_0x3b0c33(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ec4c6=!0x0,_0x29781a(_0x4f7ad5[_0x59837c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59837c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59837c([0x6c,0x6f,0x77])}),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>{_0x2ec4c6||_0x4e0805(_0x59837c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8fe657(){return _0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59837c([0x61,0x75,0x74,0x6f]);}function _0x222005(){_0x22e275[_0x59837c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59837c([0x76,0x69,0x65,0x77])][_0x59837c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59837c([0x61,0x75,0x74,0x6f]);}}function _0x280dec(_0x3116e0){const _0xa8801f=[new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1425c1=>setTimeout(_0x1425c1,0x33481701^_0xf83e51)),_0x316c9a[_0x59837c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57b1bc=>{let _0x2a4d5f=0x0;_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x6f,0x6e])](_0x59837c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35d56d,_0x42a1d9)=>{_0x42a1d9[0x0][_0x59837c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a4d5f++,_0x2a4d5f==(0x33412c25^_0xf83e51)&&(_0x57b1bc(),_0x35d56d[_0x59837c([0x6f,0x66,0x66])]());});}))];return window[_0x59837c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59837c([0x72,0x61,0x63,0x65])](_0xa8801f)[_0x59837c([0x74,0x68,0x65,0x6e])](()=>_0x3116e0);}async function _0xd1cdd(){await _0x316c9a,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x6d,0x6f,0x64,0x65,0x6c])][_0x59837c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x222234,_0x22e275[_0x59837c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59837c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4b5d(_0x49670a){const _0x5e9a4a=_0x219334();_0x22e275[_0x5e9a4a]=_0x59837c([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49670a,_0x49670a!=_0x59837c([0x56,0x61,0x6c,0x69,0x64])&&_0xd1cdd();}function _0x219334(){const _0x53d149=window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59837c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59837c([0x6e,0x6f,0x77])]())[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59837c([0x2e]),'');let _0x3e1790=_0x59837c([0x45]);for(let _0x591eda=0x0;_0x591eda<_0x53d149[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591eda+=0x2){let _0x38c049=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d149[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x591eda,_0x591eda+0x2));_0x38c049>=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38c049-=_0x333a23[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e1790+=_0x333a23[_0x38c049];}return _0x3e1790;}function _0x314b17(){const _0x4552e8=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e]));if(0x3!=_0x4552e8[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35c48e(_0x4552e8[0x1]);function _0x35c48e(_0x8b93ea){const _0x5d6847=_0x5982c4(_0x8b93ea);return _0x5d6847&&_0x1fb92d()?_0x5d6847:null;function _0x1fb92d(){const _0x44da70=_0x5d6847[_0x59837c([0x6a,0x74,0x69])],_0x1fdaf7=window[_0x59837c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1bbb25={..._0x5d6847,[_0x59837c([0x6a,0x74,0x69])]:_0x44da70[_0x59837c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44da70[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1bbb25[_0x59837c([0x76,0x63])],_0x51b44f(_0x1bbb25)==_0x1fdaf7;}}}async function _0x56a6b(){let _0x183ea8=!0x0;try{const _0x4d144f=_0x38a36a[_0x59837c([0x73,0x70,0x6c,0x69,0x74])](_0x59837c([0x2e])),[_0x42314b,_0x17ffb5,_0x4c1001]=_0x4d144f;return _0x3d517b(_0x42314b),await _0x2db613(_0x42314b,_0x17ffb5,_0x4c1001),_0x183ea8;}catch{return!0x1;}function _0x3d517b(_0x3e3fc7){const _0x17ea98=_0x5982c4(_0x3e3fc7);_0x17ea98&&_0x17ea98[_0x59837c([0x61,0x6c,0x67])]==_0x59837c([0x45,0x53,0x32,0x35,0x36])||(_0x183ea8=!0x1);}async function _0x2db613(_0x5d203d,_0x24367a,_0x1da1e5){const _0x4ea720=window[_0x59837c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59837c([0x66,0x72,0x6f,0x6d])](_0x5f2666(_0x1da1e5),_0x170663=>_0x170663[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x135923=new window[(_0x59837c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59837c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d203d+_0x59837c([0x2e])+_0x24367a),_0x190316=window[_0x59837c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59837c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x190316)return;const _0x160b5e=await _0x190316[_0x59837c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59837c([0x6a,0x77,0x6b]),_0x375118,{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59837c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x190316[_0x59837c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x45,0x43,0x44,0x53,0x41]),[_0x59837c([0x68,0x61,0x73,0x68])]:{[_0x59837c([0x6e,0x61,0x6d,0x65])]:_0x59837c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x160b5e,_0x4ea720,_0x135923)||(_0x183ea8=!0x1);}}function _0x5982c4(_0x244a45){return _0x244a45[_0x59837c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59837c([0x65,0x79]))?JSON[_0x59837c([0x70,0x61,0x72,0x73,0x65])](_0x5f2666(_0x244a45)):null;}function _0x5f2666(_0xdad89f){return window[_0x59837c([0x61,0x74,0x6f,0x62])](_0xdad89f[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59837c([0x2b]))[_0x59837c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59837c([0x2f])));}function _0x51b44f(_0x37d6ef){let _0x3be0b7=0x1505;function _0x56eefb(_0xb78546){for(let _0x4ebdad=0x0;_0x4ebdad<_0xb78546[_0x59837c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ebdad++){const _0x251dc6=_0xb78546[_0x59837c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ebdad);_0x3be0b7=(_0x3be0b7<<0x5)+_0x3be0b7+_0x251dc6,_0x3be0b7&=_0x3be0b7;}}function _0x4467f7(_0x48645c){Array[_0x59837c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48645c)?_0x48645c[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4467f7):_0x48645c&&typeof _0x48645c==_0x59837c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59837c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48645c)[_0x59837c([0x73,0x6f,0x72,0x74])]()[_0x59837c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cdd41,_0x3eb2c8])=>{_0x56eefb(_0x2cdd41),_0x4467f7(_0x3eb2c8);}):_0x56eefb(window[_0x59837c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48645c));}return _0x4467f7(_0x37d6ef),_0x3be0b7>>>0x0;}function _0x1465bc(_0x1b8b4d){return _0x1b8b4d[_0x59837c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59837c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59837c([0x30]));}function _0x47541a(_0x52326e){return _0x52326e[_0x59837c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59837c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59837c([0x6a,0x6f,0x69,0x6e])]('');}function _0x222234(){}function _0x59837c(_0x1777d5){return _0x1777d5['map'](_0x3d2e04=>String['fromCharCode'](_0x3d2e04))['join']('');}_0x4e4b5d(await _0x447cfa());}(this);}['_announceCaseChangeOperation'](_0x2978d3){const {ui:_0x6ea01,locale:_0xfa960b}=this['editor'],_0xaa7994=g(_0xfa960b)['find'](_0x288dff=>_0x288dff['commandName']===_0x2978d3)['label']['toLowerCase']();_0x6ea01['ariaLiveAnnouncer']['announce'](d(_0xfa960b,'Changed\x20case\x20to\x20%0',_0xaa7994));}}function g(_0x33fc7b){return[{'label':d(_0x33fc7b,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x33fc7b,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x33fc7b,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x2efece{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4a1e43=this['editor'];this['_registerComponents'](),_0x4a1e43['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x4a1e43['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5077fd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31e0c4;for(const _0x578904 in _0x5077fd){const _0x4eb881=_0x578904,_0x65491b=_0x5077fd[_0x4eb881];if('caseChangeLicenseKeyValid'==_0x65491b||'caseChangeLicenseKeyInvalid'==_0x65491b||'caseChangeLicenseKeyExpired'==_0x65491b||'caseChangeLicenseKeyDomainLimit'==_0x65491b||'caseChangeLicenseKeyNotAllowed'==_0x65491b||'caseChangeLicenseKeyEvaluationLimit'==_0x65491b||'caseChangeLicenseKeyUsageLimit'==_0x65491b){delete _0x5077fd[_0x4eb881],_0x31e0c4=_0x65491b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x31e0c4&&_0x5077fd['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x31e0c4&&_0x5077fd['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x31e0c4&&_0x5077fd['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x31e0c4&&_0x5077fd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x2d5e60=this['editor'],{itemDefinitions:_0x37f281,commands:_0x24afb0}=this['_getListItemDefinitionsAndCommands']();_0x2d5e60['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x37f281,_0x24afb0)),_0x2d5e60['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x37f281,_0x24afb0));}['_createMenuBarMenuView'](_0x2a697c,_0x1381c1){const _0x40bb26=this['editor'],_0x91bf2=_0x40bb26['locale'],_0x30f96a=new _0x485b44(_0x91bf2),_0xe75de6=new _0x138a18(_0x91bf2);_0xe75de6['set']({'ariaLabel':d(_0x91bf2,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x30f96a['buttonView']),_0x30f96a['bind']('isEnabled')['toMany'](_0x1381c1,'isEnabled',(..._0x31975d)=>_0x31975d['some'](_0x38f480=>_0x38f480));for(const _0x183621 of _0x2a697c){const _0x4ec433=new _0x112305(_0x91bf2,_0x30f96a),_0x5efc32=new _0xf802ef(_0x91bf2);_0x5efc32['delegate']('execute')['to'](_0x30f96a),_0x5efc32['bind'](...Object['keys'](_0x183621['model']))['to'](_0x183621['model']),_0x5efc32['on']('execute',()=>{_0x40bb26['execute'](_0x183621['model']['commandName']),_0x40bb26['editing']['view']['focus']();}),_0x4ec433['children']['add'](_0x5efc32),_0xe75de6['items']['add'](_0x4ec433);}return _0x30f96a['panelView']['children']['add'](_0xe75de6),_0x30f96a;}['_createDropdownView'](_0x4fcd2e,_0xbce458){const _0xb6fb75=this['editor'],_0x297d94=_0xb053ba(_0xb6fb75['locale']);return this['_setButtonProperties'](_0x297d94['buttonView']),_0x297d94['buttonView']['set']({'tooltip':!0x0}),_0x297d94['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x50ec5f(_0x297d94,_0x4fcd2e,{'ariaLabel':d(_0xb6fb75['locale'],'Case\x20change'),'role':'menu'}),_0x297d94['bind']('isEnabled')['toMany'](_0xbce458,'isEnabled',(..._0x35c921)=>_0x35c921['some'](_0x4557e5=>_0x4557e5)),this['listenTo'](_0x297d94,'execute',_0x313aae=>{_0xb6fb75['execute'](_0x313aae['source']['commandName']),_0xb6fb75['editing']['view']['focus']();}),_0x297d94;}['_setButtonProperties'](_0x245cf8){const _0x326205=this['editor'];_0x245cf8['set']({'label':d(_0x326205['locale'],'Case\x20change'),'icon':_0x44ac38,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x324015=new _0x4fc361(),_0x4a067a=[];for(const _0x3463ac of g(this['editor']['locale'])){const _0x3a4146=this['editor']['commands']['get'](_0x3463ac['commandName']),_0x237f97=new _0x14f5a5({'commandName':_0x3463ac['commandName'],'label':_0x3463ac['label'],'role':'menuitemradio','withText':!0x0});_0x237f97['bind']('isEnabled')['to'](_0x3a4146,'isEnabled'),_0x324015['add']({'type':'button','model':_0x237f97}),_0x4a067a['push'](_0x3a4146);}return{'itemDefinitions':_0x324015,'commands':_0x4a067a};}}class CaseChange extends _0x2efece{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI};
|
|
23
|
+
import{Command as _0x1fae56,Plugin as _0x3f4879}from'@ckeditor/ckeditor5-core';import{Collection as _0x19bc26,uid as _0x3db69c}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x308e9b,MenuBarMenuListItemView as _0x1f752b,MenuBarMenuListView as _0x261cba,MenuBarMenuView as _0x52c713,UIModel as _0x3f9373,addListToDropdown as _0x1a6cc7,createDropdown as _0x4fcbcf}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x360935}from'@ckeditor/ckeditor5-icons';var h=class extends _0x1fae56{_transformCallback;constructor(_0x34b2b6,_0x1e567d){super(_0x34b2b6),this['_transformCallback']=_0x1e567d;}execute(){const _0x331a01=this['editor']['model'],_0x1fbef0=Array['from'](this['_getAffectedRanges']()),_0xb89db8=Array['from'](_0x331a01['document']['selection']['getRanges']());_0x331a01['change'](_0x52ad43=>{for(const _0x2f35ef of _0x1fbef0)this['_modifyContent'](_0x2f35ef,_0x52ad43);_0x52ad43['setSelection'](_0xb89db8);});}['refresh'](){for(const _0x34cd4d of this['_getAffectedRanges']())for(const _0x55f465 of _0x34cd4d)if(_0x55f465['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}_getAffectedRanges(){const _0x421d09=this['editor']['model'],_0x43610a=_0x421d09['document']['selection'];if(_0x43610a['isCollapsed']){const _0x33909b=this['_findAncestorTextBlock'](_0x43610a['getFirstPosition']()['parent']);return _0x33909b?[_0x421d09['createRangeIn'](_0x33909b)]:[];}return _0x43610a['getRanges']();}_modifyContent(_0x428309,_0x24b5aa){for(const _0x219fce of this['_getElementsAllowingText'](_0x428309)){const _0x4f64b7=this['_getElementTextContent'](_0x219fce),_0xa9268a=this['_transformCallback'](_0x4f64b7);for(const _0x58dc18 of this['_getTextNodesRangeLimited'](_0x219fce,_0x428309))this['_replaceTextNodeData'](_0x58dc18,_0xa9268a,_0x24b5aa);}}_findAncestorTextBlock(_0x214563){const _0x15004b=this['editor']['model']['schema'];if(_0x214563['is']('element')&&_0x15004b['checkChild'](_0x214563,'$text'))return _0x214563;const _0x53da48=_0x214563['parent'];return!_0x53da48||_0x15004b['isLimit'](_0x214563)?null:this['_findAncestorTextBlock'](_0x53da48);}*_getElementsAllowingText(_0xa6848b){const _0x570a57=new Set();for(const {item:_0x4a0911}of _0xa6848b['getWalker']()){const _0x53309b=this['_findAncestorTextBlock'](_0x4a0911);_0x53309b&&!_0x570a57['has'](_0x53309b)&&(_0x570a57['add'](_0x53309b),yield _0x53309b);}}_getElementTextContent(_0x2eb405){return Array['from'](_0x2eb405['getChildren']())['reduce']((_0x4e2a80,_0x2145da)=>_0x4e2a80+(_0x2145da['is']('$text')?_0x2145da['data']:'\x20'),'');}*_getTextNodesRangeLimited(_0x57fd02,_0x492118){const _0x3eb853=_0x492118['getIntersection'](this['editor']['model']['createRangeIn'](_0x57fd02));if(_0x3eb853){for(const _0x2567f7 of _0x3eb853['getItems']())_0x2567f7['is']('$textProxy')&&_0x2567f7['parent']==_0x57fd02&&(yield _0x2567f7);}}_replaceTextNodeData(_0x1177fe,_0xe2d10c,_0x1d27b9){const _0x1a1aa5=_0xe2d10c['substring'](_0x1177fe['startOffset'],_0x1177fe['endOffset']);if(_0x1a1aa5===_0x1177fe['data'])return;const _0x2ff749=_0x1177fe['getAttributes']();this['editor']['model']['insertContent'](_0x1d27b9['createText'](_0x1a1aa5,_0x2ff749),_0x1d27b9['createSelection'](_0x1d27b9['createRangeOn'](_0x1177fe)));}};function w(_0x525c3e,_0x4b5677,..._0x15cb51){const t=_0x525c3e['t'];switch(_0x4b5677){case'Case\x20change':return t('Case\x20change');case'UPPERCASE':return t('UPPERCASE');case'lowercase':return t('lowercase');case'Title\x20Case':return t('Title\x20Case');case'Change\x20text\x20case':return t('Change\x20text\x20case');case'Changed\x20case\x20to\x20%0':return t('Changed\x20case\x20to\x20%0',..._0x15cb51);default:return _0x4b5677;}}var g=class extends _0x3f4879{_currentCommandIndex=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x5ad910=this['editor'],_0x2bc849=_0x5ad910['locale']['contentLanguage'],_0x4953f0=function(_0x285865=[]){return'function'==typeof _0x285865?_0x285865:(_0x5725bb,{wordIndex:_0x44ef74})=>_0x44ef74>0x0&&_0x285865['includes'](_0x5725bb);}(_0x5ad910['config']['get']('caseChange.titleCase.excludeWords')),_0x19e646={'changeCaseUpper':new h(_0x5ad910,_0x20a663=>_0x20a663['toLocaleUpperCase'](_0x2bc849)),'changeCaseLower':new h(_0x5ad910,_0x5a9aa8=>_0x5a9aa8['toLocaleLowerCase'](_0x2bc849)),'changeCaseTitle':new h(_0x5ad910,_0x1035dc=>function(_0x57c1d6,_0x3345f1,_0x59e53f){return function(_0x1e83b8,_0x2d6349){let _0x2f192e='',_0x298d93=0x0,_0x37037f=0x0;for(const _0x3c0b59 of _0x1e83b8['matchAll'](/ +/g)){const _0x2410c6=_0x3c0b59['index'],_0x97d9d8=_0x1e83b8['substring'](_0x298d93,_0x2410c6);_0x97d9d8['length']&&(_0x2f192e+=_0x2d6349(_0x97d9d8,_0x298d93,_0x37037f++)),_0x2f192e+=_0x3c0b59[0x0],_0x298d93=_0x2410c6+_0x3c0b59[0x0]['length'];}const _0x2bbd71=_0x1e83b8['substring'](_0x298d93);return _0x2bbd71['length']&&(_0x2f192e+=_0x2d6349(_0x2bbd71,_0x298d93,_0x37037f)),_0x2f192e;}(_0x57c1d6,(_0x5a2fcc,_0x17d07d,_0x382d48)=>{const _0x5ed20d=_0x5a2fcc['toLocaleLowerCase'](_0x59e53f);return _0x3345f1(_0x5ed20d,{'charOffset':_0x17d07d,'wordIndex':_0x382d48,'blockText':_0x57c1d6})?_0x5ed20d:_0x5ed20d['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x5233b9=>_0x5233b9['toLocaleUpperCase'](_0x59e53f));});}(_0x1035dc,_0x4953f0,_0x2bc849))};for(const [_0x374c38,_0x4a8d20]of Object['entries'](_0x19e646))_0x5ad910['commands']['add'](_0x374c38,_0x4a8d20),_0x4a8d20['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x374c38);});this['listenTo'](_0x5ad910['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x5ad910['keystrokes']['set']('shift+f3',(_0x2cf03b,_0x989e61)=>{const _0x39fa1e=m(this['editor']['locale']),_0x11fd79=_0x39fa1e[this['_currentCommandIndex']%_0x39fa1e['length']]['commandName'];_0x5ad910['execute'](_0x11fd79),this['_currentCommandIndex']++,_0x989e61();});}afterInit(){!async function(_0x2d727f){const _0x174a2f='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x5f5865=0x79710,_0x450c05={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x14743f(_0x30f37d){const _0x53a20b=new window['Promise'](_0x5d9d3f=>{_0x30f37d['once']('ready',_0x5d9d3f);}),_0x9075bd=window['Date']['now'](),_0x2e4659=_0x30f37d['config']['get']('licenseKey');async function _0x3751f7(){let _0x3fd29a,_0x3d613f=null,_0x39dce4=null;try{return'GPL'==_0x2e4659?'NotAllowed':(_0x3fd29a=_0x9c824f(),_0x3fd29a?(_0x3fd29a['usageEndpoint']&&(_0x39dce4=_0x27f907(_0x3fd29a['usageEndpoint'],_0x3fd29a['jti'])),await _0x37d859()?_0x462597()?_0x180187()?'Expired':_0xfd2955()?('evaluation'==_0x3fd29a['licenseType']&&(_0x3d613f=_0x54dc05('EvaluationLimit')),await _0x3dfad6()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x180187(){const _0x4f28f3=['evaluation','trial']['includes'](_0x3fd29a['licenseType'])?_0x9075bd/0x3e8:0xe10*_0x5f5865;return _0x3fd29a['exp']<_0x4f28f3;}function _0x462597(){const _0x2a7582=_0x3fd29a['features'];return!!_0x2a7582&&(!!_0x2a7582['includes']('*')||(!!_0x2a7582['includes']('CC')||!!_0x2a7582['includes']('PP')));}function _0xfd2955(){const _0x4a5d0f=_0x3fd29a['licensedHosts'];if(!_0x4a5d0f||0x0==_0x4a5d0f['length'])return!0x0;const {hostname:_0xdf8b7c}=new URL(window['location']['href']);if(_0x4a5d0f['includes'](_0xdf8b7c))return!0x0;const _0x10d7f3=_0xdf8b7c['split']('.');return _0x4a5d0f['filter'](_0x396a0d=>_0x396a0d['includes']('*'))['map'](_0xac8e9e=>_0xac8e9e['split']('.'))['filter'](_0x30161b=>_0x30161b['length']<=_0x10d7f3['length'])['map'](_0x4e2884=>Array(_0x10d7f3['length']-_0x4e2884['length'])['fill']('*'===_0x4e2884[0x0]?'*':'')['concat'](_0x4e2884))['some'](_0xbc693d=>_0x10d7f3['every']((_0x2c2569,_0xfbe137)=>_0xbc693d[_0xfbe137]===_0x2c2569||'*'===_0xbc693d[_0xfbe137]));}function _0x3dfad6(){return _0x3d613f&&_0x39dce4?new window['Promise']((_0x351f31,_0x5f3e33)=>{_0x3d613f['then'](_0x351f31,_0x5f3e33),_0x39dce4['then'](_0x28b930=>{'Valid'!=_0x28b930&&_0x351f31(_0x28b930);},_0x5f3e33);}):_0x3d613f||_0x39dce4||'Valid';}}function _0x27f907(_0x557496,_0x5cacdc){return new window['Promise'](_0x37b939=>{if(_0x1079a0())return _0x37b939('Valid');_0x204a8e(),_0x30f37d['decorate']('_sendUsageRequest');let _0x5d804f=!0x1;const _0x447023=_0x3db69c();function _0x25bdbd(_0x11bf93){return!!_0x11bf93&&('object'==typeof _0x11bf93||'function'==typeof _0x11bf93)&&'function'==typeof _0x11bf93['then']&&'function'==typeof _0x11bf93['catch'];}function _0x597d55(_0x1a00ff){_0x45aeab(_0x1a00ff)['then'](_0x30ca34=>_0x30ca34&&'ok'==_0x30ca34['status']?_0x56350c(_0x5c421b(_0x447023+_0x5cacdc))!=_0x30ca34['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3d5112=>(_0x39a40a(),_0x3d5112),()=>{const _0x579e66=_0x4dba30();return null==_0x579e66?(_0x39a40a(),'Valid'):_0x9075bd-_0x579e66>0x240c8400?'UsageLimit':'Valid';})['then'](_0x37b939)['catch'](()=>{_0x37b939('UsageLimit');});const _0x5b1090=0x36ee80;function _0x39a40a(){const _0x4e350='llct-'+_0x56350c(_0x5c421b(_0x557496)),_0x487ab6=_0x29289c(_0x56350c(window['Math']['ceil'](_0x9075bd/_0x5b1090)));window['localStorage']['setItem'](_0x4e350,_0x487ab6);}function _0x4dba30(){const _0x5fbe68='llct-'+_0x56350c(_0x5c421b(_0x557496)),_0x5716cf=window['localStorage']['getItem'](_0x5fbe68);return _0x5716cf?window['parseInt'](_0x29289c(_0x5716cf),0x10)*_0x5b1090:null;}function _0x45aeab(_0x834311){return new window['Promise']((_0x42e171,_0x47fcc1)=>{_0x834311['then'](_0x42e171,_0x47fcc1),window['setTimeout'](_0x47fcc1,0x1d4c0);});}}_0x30f37d['on']('_sendUsageRequest',(_0x492121,_0x36406e)=>{if(_0x36406e[0x0]!=_0x557496)return _0x37b939('UsageLimit');_0x36406e[0x1]={..._0x36406e[0x1],'requestId':_0x447023};},{'priority':'high'}),_0x30f37d['on']('_sendUsageRequest',_0xb70f76=>{_0x25bdbd(_0xb70f76['return'])&&(_0x5d804f=!0x0,_0x597d55(_0xb70f76['return']));},{'priority':'low'}),_0x53a20b['then'](()=>{_0x5d804f||_0x37b939('UsageLimit');});});function _0x1079a0(){return'auto'==_0x30f37d['editing']['view']['_overlayModeHint'];}function _0x204a8e(){_0x30f37d['editing']['view']['_overlayModeHint']='auto';}}function _0x54dc05(_0x28cb5f){const _0x2a8d68=[new window['Promise'](_0x2518b5=>setTimeout(_0x2518b5,0x93ecc)),_0x53a20b['then'](()=>new window['Promise'](_0x2040ae=>{let _0x5d53e7=0x0;_0x30f37d['model']['on']('applyOperation',(_0x3a9bc8,_0x4fa9c1)=>{_0x4fa9c1[0x0]['isDocumentOperation']&&_0x5d53e7++,0x5e8==_0x5d53e7&&(_0x2040ae(),_0x3a9bc8['off']());});}))];return window['Promise']['race'](_0x2a8d68)['then'](()=>_0x28cb5f);}async function _0x5e3ec6(){await _0x53a20b,_0x30f37d['model']['change']=_0x2a7315,_0x30f37d['model']['enqueueChange']=_0x2a7315,_0x30f37d['enableReadOnlyMode']('model');}function _0x1329b6(_0x1de9a2){const _0x32f8c5=_0x1c83d4();_0x30f37d[_0x32f8c5]='caseChangeLicenseKey'+_0x1de9a2,'Valid'!=_0x1de9a2&&_0x5e3ec6();}function _0x1c83d4(){const _0x84f4d=window['String'](window['performance']['now']())['replace']('.','');let _0x2448b0='a';for(let _0x3e9502=0x0;_0x3e9502<_0x84f4d['length'];_0x3e9502+=0x2){let _0x539f84=window['parseInt'](_0x84f4d['substring'](_0x3e9502,_0x3e9502+0x2));_0x539f84>=0x3e&&(_0x539f84-=0x3e),_0x2448b0+=_0x174a2f[_0x539f84];}return _0x2448b0;}function _0x9c824f(){const _0xa9da54=_0x2e4659['split']('.');if(0x3!=_0xa9da54['length'])return null;return _0x2d05b5(_0xa9da54[0x1]);function _0x2d05b5(_0x10ec44){const _0x23faee=_0x25b862(_0x10ec44);return _0x23faee&&_0x4bd0c1()?_0x23faee:null;function _0x4bd0c1(){const _0x55d523=_0x23faee['jti'],_0x2372af=window['parseInt'](_0x55d523['substring'](_0x55d523['length']-0x8),0x10),_0x4c8e1a={..._0x23faee,'jti':_0x55d523['substring'](0x0,_0x55d523['length']-0x8)};return delete _0x4c8e1a['vc'],_0x5c421b(_0x4c8e1a)==_0x2372af;}}}async function _0x37d859(){let _0x20c1ae=!0x0;try{const [_0x34cb51,_0x1144bb,_0x3bd471]=_0x2e4659['split']('.');return _0x593f3a(_0x34cb51),await _0x4f57d1(_0x34cb51,_0x1144bb,_0x3bd471),_0x20c1ae;}catch{return!0x1;}function _0x593f3a(_0x16c2fd){const _0x160675=_0x25b862(_0x16c2fd);_0x160675&&'ES256'==_0x160675['alg']||(_0x20c1ae=!0x1);}async function _0x4f57d1(_0x20318f,_0x27387c,_0x35d992){const _0x392958=window['Uint8Array']['from'](_0x3055fd(_0x35d992),_0x507806=>_0x507806['charCodeAt'](0x0)),_0x19fbaf=new window['TextEncoder']()['encode'](_0x20318f+'.'+_0x27387c),_0x2f98f4=window['crypto']['subtle'];if(!_0x2f98f4)return;const _0x1822b7=await _0x2f98f4['importKey']('jwk',_0x450c05,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2f98f4['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1822b7,_0x392958,_0x19fbaf)||(_0x20c1ae=!0x1);}}function _0x25b862(_0x969f79){return _0x969f79['startsWith']('ey')?JSON['parse'](_0x3055fd(_0x969f79)):null;}function _0x3055fd(_0x53e2bb){return window['atob'](_0x53e2bb['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5c421b(_0x2381d7){let _0x226df7=0x1505;function _0x1f74ba(_0x588267){for(let _0x3f98fb=0x0;_0x3f98fb<_0x588267['length'];_0x3f98fb++){const _0x4c18d8=_0x588267['charCodeAt'](_0x3f98fb);_0x226df7=(_0x226df7<<0x5)+_0x226df7+_0x4c18d8,_0x226df7&=_0x226df7;}}function _0x483b80(_0x57e980){Array['isArray'](_0x57e980)?_0x57e980['forEach'](_0x483b80):_0x57e980&&'object'==typeof _0x57e980?Object['entries'](_0x57e980)['sort']()['forEach'](([_0x4d3317,_0x227453])=>{_0x1f74ba(_0x4d3317),_0x483b80(_0x227453);}):_0x1f74ba(window['String'](_0x57e980));}return _0x483b80(_0x2381d7),_0x226df7>>>0x0;}function _0x56350c(_0x15272e){return _0x15272e['toString'](0x10)['padStart'](0x8,'0');}function _0x29289c(_0x1ca0b1){return _0x1ca0b1['split']('')['reverse']()['join']('');}function _0x2a7315(){}_0x1329b6(await _0x3751f7());}_0x14743f(_0x2d727f['editor']);}(this);}_announceCaseChangeOperation(_0x16455d){const {ui:_0x23c5b4,locale:_0x4f463f}=this['editor'],_0xbecacf=m(_0x4f463f)['find'](_0x288825=>_0x288825['commandName']===_0x16455d)['label']['toLowerCase']();_0x23c5b4['ariaLiveAnnouncer']['announce'](w(_0x4f463f,'Changed\x20case\x20to\x20%0',_0xbecacf));}};function m(_0x285987){return[{'label':w(_0x285987,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x285987,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x285987,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0x3f4879{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x414744=this['editor'];this['_registerComponents'](),_0x414744['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x414744['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x26656f=[this['editor']];for(const _0x8570e0 of _0x26656f){let _0x5f4008;for(const _0x44528e in _0x8570e0){const _0x53dbe7=_0x44528e,_0x173b5d=_0x8570e0[_0x53dbe7];if('caseChangeLicenseKeyValid'==_0x173b5d||'caseChangeLicenseKeyInvalid'==_0x173b5d||'caseChangeLicenseKeyExpired'==_0x173b5d||'caseChangeLicenseKeyDomainLimit'==_0x173b5d||'caseChangeLicenseKeyNotAllowed'==_0x173b5d||'caseChangeLicenseKeyEvaluationLimit'==_0x173b5d||'caseChangeLicenseKeyUsageLimit'==_0x173b5d){delete _0x8570e0[_0x53dbe7],_0x5f4008=_0x173b5d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x5f4008&&_0x8570e0['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x5f4008&&_0x8570e0['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x5f4008&&_0x8570e0['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x5f4008&&_0x8570e0['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x5f4008&&_0x8570e0['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x5f4008&&_0x8570e0['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_registerComponents(){const _0x1de953=this['editor'],{itemDefinitions:_0x3c238f,commands:_0x15bf45}=this['_getListItemDefinitionsAndCommands']();_0x1de953['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x3c238f,_0x15bf45)),_0x1de953['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x3c238f,_0x15bf45));}_createMenuBarMenuView(_0x3107a2,_0x3df63d){const _0x559d1e=this['editor'],_0x3b2398=_0x559d1e['locale'],_0x41e2a3=new _0x52c713(_0x3b2398),_0x1d5be8=new _0x261cba(_0x3b2398);_0x1d5be8['set']({'ariaLabel':w(_0x3b2398,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x41e2a3['buttonView']),_0x41e2a3['bind']('isEnabled')['toMany'](_0x3df63d,'isEnabled',(..._0x39b992)=>_0x39b992['some'](_0x7dd191=>_0x7dd191));for(const _0x5cb729 of _0x3107a2){const _0xae17d8=new _0x1f752b(_0x3b2398,_0x41e2a3),_0x49b878=new _0x308e9b(_0x3b2398);_0x49b878['delegate']('execute')['to'](_0x41e2a3),_0x49b878['bind'](...Object['keys'](_0x5cb729['model']))['to'](_0x5cb729['model']),_0x49b878['on']('execute',()=>{_0x559d1e['execute'](_0x5cb729['model']['commandName']),_0x559d1e['editing']['view']['focus']();}),_0xae17d8['children']['add'](_0x49b878),_0x1d5be8['items']['add'](_0xae17d8);}return _0x41e2a3['panelView']['children']['add'](_0x1d5be8),_0x41e2a3;}_createDropdownView(_0x5b9c74,_0x6d0656){const _0x1b7451=this['editor'],_0x42b2e9=_0x4fcbcf(_0x1b7451['locale']);return this['_setButtonProperties'](_0x42b2e9['buttonView']),_0x42b2e9['buttonView']['set']({'tooltip':!0x0}),_0x42b2e9['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x1a6cc7(_0x42b2e9,_0x5b9c74,{'ariaLabel':w(_0x1b7451['locale'],'Case\x20change'),'role':'menu'}),_0x42b2e9['bind']('isEnabled')['toMany'](_0x6d0656,'isEnabled',(..._0x2e6f87)=>_0x2e6f87['some'](_0x5e5505=>_0x5e5505)),this['listenTo'](_0x42b2e9,'execute',_0x4c1c16=>{_0x1b7451['execute'](_0x4c1c16['source']['commandName']),_0x1b7451['editing']['view']['focus']();}),_0x42b2e9;}_setButtonProperties(_0x49eabd){const _0x412d0a=this['editor'];_0x49eabd['set']({'label':w(_0x412d0a['locale'],'Case\x20change'),'icon':_0x360935,'keystroke':'Shift+F3'});}_getListItemDefinitionsAndCommands(){const _0x243f05=new _0x19bc26(),_0x4b2fca=[];for(const _0x2cfcd0 of m(this['editor']['locale'])){const _0x1a1e40=this['editor']['commands']['get'](_0x2cfcd0['commandName']),_0x3b28c5=new _0x3f9373({'commandName':_0x2cfcd0['commandName'],'label':_0x2cfcd0['label'],'role':'menuitemradio','withText':!0x0});_0x3b28c5['bind']('isEnabled')['to'](_0x1a1e40,'isEnabled'),_0x243f05['add']({'type':'button','model':_0x3b28c5}),_0x4b2fca['push'](_0x1a1e40);}return{'itemDefinitions':_0x243f05,'commands':_0x4b2fca};}},y=class extends _0x3f4879{static get requires(){return[g,C];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}};export{y as CaseChange,h as CaseChangeCommand,g as CaseChangeEditing,C as CaseChangeUI};
|
package/dist/legacyerrors.d.ts
CHANGED
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''}
|
|
23
|
+
export default{'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''}}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x45cd18=>{const {af:_0x524a9c}={'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''}}};_0x45cd18['af']||={'dictionary':{},'getPluralForm':null},_0x45cd18['af']['dictionary']=Object['assign'](_0x45cd18['af']['dictionary'],_0x524a9c['dictionary']),_0x524a9c['getPluralForm']&&(_0x45cd18['af']['getPluralForm']=_0x524a9c['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|