@ckeditor/ckeditor5-case-change 48.8.1-alpha.4 → 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 _0x7a41ce,Plugin as _0x347566}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x5ba9dc,Collection as _0x864b65}from'@ckeditor/ckeditor5-utils/dist/index.js';import{MenuBarMenuView as _0xe5478c,MenuBarMenuListView as _0x3a9c3a,MenuBarMenuListItemView as _0x1917c0,MenuBarMenuListItemButtonView as _0x9a1516,createDropdown as _0x308da4,addListToDropdown as _0x58393c,UIModel as _0xbb145}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconCaseChange as _0x4734f2}from'@ckeditor/ckeditor5-icons/dist/index.js';class CaseChangeCommand extends _0x7a41ce{['_transformCallback'];constructor(_0x583e05,_0x106b0b){super(_0x583e05),this['_transformCallback']=_0x106b0b;}['execute'](){const _0x18932b=this['editor']['model'],_0x5e49d8=Array['from'](this['_getAffectedRanges']()),_0x45b2c9=Array['from'](_0x18932b['document']['selection']['getRanges']());_0x18932b['change'](_0x280ca5=>{for(const _0x2b7906 of _0x5e49d8)this['_modifyContent'](_0x2b7906,_0x280ca5);_0x280ca5['setSelection'](_0x45b2c9);});}['refresh'](){for(const _0x5b34e6 of this['_getAffectedRanges']())for(const _0xb6f6bf of _0x5b34e6)if(_0xb6f6bf['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x272a7a=this['editor']['model'],_0x3851eb=_0x272a7a['document']['selection'];if(_0x3851eb['isCollapsed']){const _0xb4eb9e=this['_findAncestorTextBlock'](_0x3851eb['getFirstPosition']()['parent']);return _0xb4eb9e?[_0x272a7a['createRangeIn'](_0xb4eb9e)]:[];}return _0x3851eb['getRanges']();}['_modifyContent'](_0x3bc362,_0x3d4c93){for(const _0xd6e19b of this['_getElementsAllowingText'](_0x3bc362)){const _0x82d166=this['_getElementTextContent'](_0xd6e19b),_0x1bbf7a=this['_transformCallback'](_0x82d166);for(const _0x21c188 of this['_getTextNodesRangeLimited'](_0xd6e19b,_0x3bc362))this['_replaceTextNodeData'](_0x21c188,_0x1bbf7a,_0x3d4c93);}}['_findAncestorTextBlock'](_0x252e80){const _0x3eb23f=this['editor']['model']['schema'];if(_0x252e80['is']('element')&&_0x3eb23f['checkChild'](_0x252e80,'$text'))return _0x252e80;const _0xcfdd20=_0x252e80['parent'];return!_0xcfdd20||_0x3eb23f['isLimit'](_0x252e80)?null:this['_findAncestorTextBlock'](_0xcfdd20);}*['_getElementsAllowingText'](_0x3c098b){const _0x3e83c2=new Set();for(const {item:_0x54ab86}of _0x3c098b['getWalker']()){const _0x767e60=this['_findAncestorTextBlock'](_0x54ab86);_0x767e60&&!_0x3e83c2['has'](_0x767e60)&&(_0x3e83c2['add'](_0x767e60),yield _0x767e60);}}['_getElementTextContent'](_0x1079ff){return Array['from'](_0x1079ff['getChildren']())['reduce']((_0x323853,_0x577f0c)=>_0x323853+(_0x577f0c['is']('$text')?_0x577f0c['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x1ce237,_0x5329fd){const _0x347623=_0x5329fd['getIntersection'](this['editor']['model']['createRangeIn'](_0x1ce237));if(_0x347623){for(const _0x1996d2 of _0x347623['getItems']())_0x1996d2['is']('$textProxy')&&_0x1996d2['parent']==_0x1ce237&&(yield _0x1996d2);}}['_replaceTextNodeData'](_0x7f96d0,_0x37f756,_0xc337f7){const _0x5564a4=_0x37f756['substring'](_0x7f96d0['startOffset'],_0x7f96d0['endOffset']);if(_0x5564a4===_0x7f96d0['data'])return;const _0x51b308=_0x7f96d0['getAttributes']();this['editor']['model']['insertContent'](_0xc337f7['createText'](_0x5564a4,_0x51b308),_0xc337f7['createSelection'](_0xc337f7['createRangeOn'](_0x7f96d0)));}}function d(_0xa7c0cf,_0x1ac425,..._0x2bd740){const t=_0xa7c0cf['t'];switch(_0x1ac425){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',..._0x2bd740);default:return _0x1ac425;}}class CaseChangeEditing extends _0x347566{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x390fba=this['editor'],_0x4cc287=_0x390fba['locale']['contentLanguage'],_0x3bb62e=function(_0x15eb13=[]){return'function'==typeof _0x15eb13?_0x15eb13:(_0x209087,{wordIndex:_0x1590ec})=>_0x1590ec>0x0&&_0x15eb13['includes'](_0x209087);}(_0x390fba['config']['get']('caseChange.titleCase.excludeWords')),_0x281a3a={'changeCaseUpper':new CaseChangeCommand(_0x390fba,_0x53087a=>_0x53087a['toLocaleUpperCase'](_0x4cc287)),'changeCaseLower':new CaseChangeCommand(_0x390fba,_0xe47c87=>_0xe47c87['toLocaleLowerCase'](_0x4cc287)),'changeCaseTitle':new CaseChangeCommand(_0x390fba,_0x4959b3=>function(_0x5a8b4d,_0x657d32,_0x5bfdcc){return function(_0x1f8c32,_0x4babba){let _0x47960d='',_0x1250ee=0x0,_0x43f3f7=0x0;for(const _0x5d3f88 of _0x1f8c32['matchAll'](/ +/g)){const _0x5d0eb2=_0x5d3f88['index'],_0x222d52=_0x1f8c32['substring'](_0x1250ee,_0x5d0eb2);_0x222d52['length']&&(_0x47960d+=_0x4babba(_0x222d52,_0x1250ee,_0x43f3f7++)),_0x47960d+=_0x5d3f88[0x0],_0x1250ee=_0x5d0eb2+_0x5d3f88[0x0]['length'];}const _0x14e9b6=_0x1f8c32['substring'](_0x1250ee);return _0x14e9b6['length']&&(_0x47960d+=_0x4babba(_0x14e9b6,_0x1250ee,_0x43f3f7)),_0x47960d;}(_0x5a8b4d,(_0x1caaf0,_0x5661f7,_0x5b0d00)=>{const _0xb9487f=_0x1caaf0['toLocaleLowerCase'](_0x5bfdcc);return _0x657d32(_0xb9487f,{'charOffset':_0x5661f7,'wordIndex':_0x5b0d00,'blockText':_0x5a8b4d})?_0xb9487f:_0xb9487f['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x51349c=>_0x51349c['toLocaleUpperCase'](_0x5bfdcc));});}(_0x4959b3,_0x3bb62e,_0x4cc287))};for(const [_0x59be79,_0x5b3784]of Object['entries'](_0x281a3a))_0x390fba['commands']['add'](_0x59be79,_0x5b3784),_0x5b3784['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x59be79);});this['listenTo'](_0x390fba['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x390fba['keystrokes']['set']('shift+f3',(_0x366cc5,_0x457fb2)=>{const _0x22e3c2=g(this['editor']['locale']),_0x3c263e=_0x22e3c2[this['_currentCommandIndex']%_0x22e3c2['length']]['commandName'];_0x390fba['execute'](_0x3c263e),this['_currentCommandIndex']++,_0x457fb2();});}['afterInit'](){!async function(_0x2a6d45){const _0x1ef8fa=_0x580f5b([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]),_0x5dc32a=0x334129cd,_0x2e811f=0x3346a34d^_0x5dc32a,_0x7a93c9=window[_0x580f5b([0x44,0x61,0x74,0x65])][_0x580f5b([0x6e,0x6f,0x77])](),_0x16a9a1=_0x2a6d45[_0x580f5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57b6be=new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f4eca=>{_0x16a9a1[_0x580f5b([0x6f,0x6e,0x63,0x65])](_0x580f5b([0x72,0x65,0x61,0x64,0x79]),_0x1f4eca);}),_0xff0c06={[_0x580f5b([0x6b,0x74,0x79])]:_0x580f5b([0x45,0x43]),[_0x580f5b([0x75,0x73,0x65])]:_0x580f5b([0x73,0x69,0x67]),[_0x580f5b([0x63,0x72,0x76])]:_0x580f5b([0x50,0x2d,0x32,0x35,0x36]),[_0x580f5b([0x78])]:_0x580f5b([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]),[_0x580f5b([0x79])]:_0x580f5b([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]),[_0x580f5b([0x61,0x6c,0x67])]:_0x580f5b([0x45,0x53,0x32,0x35,0x36])},_0x1f6366=_0x16a9a1[_0x580f5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x580f5b([0x67,0x65,0x74])](_0x580f5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1dc6ac(){let _0x32fe17,_0x84b5d3=null,_0x4bd902=null;try{if(_0x1f6366==_0x580f5b([0x47,0x50,0x4c]))return _0x580f5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32fe17=_0x3ca5b3(),!_0x32fe17)return _0x580f5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32fe17[_0x580f5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bd902=_0x5f335b(_0x32fe17[_0x580f5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32fe17[_0x580f5b([0x6a,0x74,0x69])])),await _0x4f5e89()?_0x2865e5()?_0xed0f81()?_0x580f5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x141648()?(_0x32fe17[_0x580f5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x580f5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x84b5d3=_0x71cf83(_0x580f5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f2bae()):_0x580f5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x580f5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x580f5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x580f5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xed0f81(){const _0x270af1=[_0x580f5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x580f5b([0x74,0x72,0x69,0x61,0x6c])][_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32fe17[_0x580f5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7a93c9/0x3e8:0xe10*_0x2e811f;return _0x32fe17[_0x580f5b([0x65,0x78,0x70])]<_0x270af1;}function _0x2865e5(){const _0x594636=_0x32fe17[_0x580f5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x594636&&(!!_0x594636[_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580f5b([0x2a]))||(!!_0x594636[_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580f5b([0x43,0x43]))||!!_0x594636[_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580f5b([0x50,0x50]))));}function _0x141648(){const _0x3d3d6b=_0x32fe17[_0x580f5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d3d6b||0x0==_0x3d3d6b[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59acdd}=new URL(window[_0x580f5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d3d6b[_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59acdd))return!0x0;const _0x450320=_0x59acdd[_0x580f5b([0x73,0x70,0x6c,0x69,0x74])](_0x580f5b([0x2e]));return _0x3d3d6b[_0x580f5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36ec87=>_0x36ec87[_0x580f5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580f5b([0x2a])))[_0x580f5b([0x6d,0x61,0x70])](_0x26039f=>_0x26039f[_0x580f5b([0x73,0x70,0x6c,0x69,0x74])](_0x580f5b([0x2e])))[_0x580f5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x149630=>_0x149630[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x450320[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x580f5b([0x6d,0x61,0x70])](_0x1d6884=>Array(_0x450320[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d6884[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x580f5b([0x66,0x69,0x6c,0x6c])](_0x1d6884[0x0]===_0x580f5b([0x2a])?_0x580f5b([0x2a]):'')[_0x580f5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d6884))[_0x580f5b([0x73,0x6f,0x6d,0x65])](_0xfe3615=>_0x450320[_0x580f5b([0x65,0x76,0x65,0x72,0x79])]((_0x5643e9,_0x58156f)=>_0xfe3615[_0x58156f]===_0x5643e9||_0xfe3615[_0x58156f]===_0x580f5b([0x2a])));}function _0x2f2bae(){return _0x84b5d3&&_0x4bd902?new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaf16f0,_0x20a13a)=>{_0x84b5d3[_0x580f5b([0x74,0x68,0x65,0x6e])](_0xaf16f0,_0x20a13a),_0x4bd902[_0x580f5b([0x74,0x68,0x65,0x6e])](_0x1b8e43=>{_0x1b8e43!=_0x580f5b([0x56,0x61,0x6c,0x69,0x64])&&_0xaf16f0(_0x1b8e43);},_0x20a13a);}):_0x84b5d3||_0x4bd902||_0x580f5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5f335b(_0x3c2d8b,_0x522f39){return new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x150135=>{if(_0x7cb684())return _0x150135(_0x580f5b([0x56,0x61,0x6c,0x69,0x64]));_0x26f78c(),_0x16a9a1[_0x580f5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x580f5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x38f6a2=!0x1;const _0x2121e3=_0x5ba9dc();function _0x5e8af(_0x16a4ea){return!!_0x16a4ea&&(typeof _0x16a4ea===_0x580f5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16a4ea===_0x580f5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16a4ea[_0x580f5b([0x74,0x68,0x65,0x6e])]===_0x580f5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16a4ea[_0x580f5b([0x63,0x61,0x74,0x63,0x68])]===_0x580f5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2315e7(_0x1f14b8){_0x5725b3(_0x1f14b8)[_0x580f5b([0x74,0x68,0x65,0x6e])](_0xfe2272=>{if(!_0xfe2272||_0xfe2272[_0x580f5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x580f5b([0x6f,0x6b]))return _0x580f5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xa4fe04(_0x599424(_0x2121e3+_0x522f39))!=_0xfe2272[_0x580f5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x580f5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x580f5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x580f5b([0x74,0x68,0x65,0x6e])](_0x27e1c8=>(_0x5f1e40(),_0x27e1c8),()=>{const _0x4c4684=_0x3f3e34();return null==_0x4c4684?(_0x5f1e40(),_0x580f5b([0x56,0x61,0x6c,0x69,0x64])):_0x580f5b(_0x7a93c9-_0x4c4684>(0x174dadcd^_0x5dc32a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x580f5b([0x74,0x68,0x65,0x6e])](_0x150135)[_0x580f5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x150135(_0x580f5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2aab9c=0x3377c74d^_0x5dc32a;function _0x5f1e40(){const _0x3cfda0=_0x580f5b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa4fe04(_0x599424(_0x3c2d8b)),_0x389872=_0x4731e0(_0xa4fe04(window[_0x580f5b([0x4d,0x61,0x74,0x68])][_0x580f5b([0x63,0x65,0x69,0x6c])](_0x7a93c9/_0x2aab9c)));window[_0x580f5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580f5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cfda0,_0x389872);}function _0x3f3e34(){const _0x4da1ec=_0x580f5b([0x6c,0x6c,0x63,0x74,0x2d])+_0xa4fe04(_0x599424(_0x3c2d8b)),_0x4df346=window[_0x580f5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580f5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4da1ec);return _0x4df346?window[_0x580f5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4731e0(_0x4df346),0x10)*_0x2aab9c:null;}function _0x5725b3(_0x1e3050){return new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xac2c3a,_0x35021c)=>{_0x1e3050[_0x580f5b([0x74,0x68,0x65,0x6e])](_0xac2c3a,_0x35021c),window[_0x580f5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35021c,0x3340fd0d^_0x5dc32a);});}}_0x16a9a1[_0x580f5b([0x6f,0x6e])](_0x580f5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x574d3a,_0x21613a)=>{if(_0x21613a[0x0]!=_0x3c2d8b)return _0x150135(_0x580f5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21613a[0x1]={..._0x21613a[0x1],[_0x580f5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2121e3};},{[_0x580f5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580f5b([0x68,0x69,0x67,0x68])}),_0x16a9a1[_0x580f5b([0x6f,0x6e])](_0x580f5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x23622b=>{_0x5e8af(_0x23622b[_0x580f5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x38f6a2=!0x0,_0x2315e7(_0x23622b[_0x580f5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x580f5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580f5b([0x6c,0x6f,0x77])}),_0x57b6be[_0x580f5b([0x74,0x68,0x65,0x6e])](()=>{_0x38f6a2||_0x150135(_0x580f5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7cb684(){return _0x16a9a1[_0x580f5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580f5b([0x76,0x69,0x65,0x77])][_0x580f5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x580f5b([0x61,0x75,0x74,0x6f]);}function _0x26f78c(){_0x16a9a1[_0x580f5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580f5b([0x76,0x69,0x65,0x77])][_0x580f5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x580f5b([0x61,0x75,0x74,0x6f]);}}function _0x71cf83(_0x31ced3){const _0x832c23=[new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb602c8=>setTimeout(_0xb602c8,0x33481701^_0x5dc32a)),_0x57b6be[_0x580f5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1113=>{let _0x3637ef=0x0;_0x16a9a1[_0x580f5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x580f5b([0x6f,0x6e])](_0x580f5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20780c,_0x23bbb8)=>{_0x23bbb8[0x0][_0x580f5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3637ef++,_0x3637ef==(0x33412c25^_0x5dc32a)&&(_0x2a1113(),_0x20780c[_0x580f5b([0x6f,0x66,0x66])]());});}))];return window[_0x580f5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x580f5b([0x72,0x61,0x63,0x65])](_0x832c23)[_0x580f5b([0x74,0x68,0x65,0x6e])](()=>_0x31ced3);}async function _0x413e4e(){await _0x57b6be,_0x16a9a1[_0x580f5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x580f5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe6c692,_0x16a9a1[_0x580f5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x580f5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe6c692,_0x16a9a1[_0x580f5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x580f5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x852576(_0x2a9afb){const _0x26d031=_0xf1be23();_0x16a9a1[_0x26d031]=_0x580f5b([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a9afb,_0x2a9afb!=_0x580f5b([0x56,0x61,0x6c,0x69,0x64])&&_0x413e4e();}function _0xf1be23(){const _0xf8b726=window[_0x580f5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x580f5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x580f5b([0x6e,0x6f,0x77])]())[_0x580f5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x580f5b([0x2e]),'');let _0x47dc92=_0x580f5b([0x45]);for(let _0x3b64f2=0x0;_0x3b64f2<_0xf8b726[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b64f2+=0x2){let _0x4f779c=window[_0x580f5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf8b726[_0x580f5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b64f2,_0x3b64f2+0x2));_0x4f779c>=_0x1ef8fa[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f779c-=_0x1ef8fa[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47dc92+=_0x1ef8fa[_0x4f779c];}return _0x47dc92;}function _0x3ca5b3(){const _0x236adc=_0x1f6366[_0x580f5b([0x73,0x70,0x6c,0x69,0x74])](_0x580f5b([0x2e]));if(0x3!=_0x236adc[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x287b04(_0x236adc[0x1]);function _0x287b04(_0x3d50fc){const _0xbd05ad=_0x17f92a(_0x3d50fc);return _0xbd05ad&&_0x23b3df()?_0xbd05ad:null;function _0x23b3df(){const _0x31e247=_0xbd05ad[_0x580f5b([0x6a,0x74,0x69])],_0x58ee02=window[_0x580f5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31e247[_0x580f5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31e247[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11e665={..._0xbd05ad,[_0x580f5b([0x6a,0x74,0x69])]:_0x31e247[_0x580f5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31e247[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11e665[_0x580f5b([0x76,0x63])],_0x599424(_0x11e665)==_0x58ee02;}}}async function _0x4f5e89(){let _0x5cde18=!0x0;try{const _0x41ca0b=_0x1f6366[_0x580f5b([0x73,0x70,0x6c,0x69,0x74])](_0x580f5b([0x2e])),[_0x3c5c86,_0x211dab,_0x183732]=_0x41ca0b;return _0x2778be(_0x3c5c86),await _0x3acf93(_0x3c5c86,_0x211dab,_0x183732),_0x5cde18;}catch{return!0x1;}function _0x2778be(_0x5d238b){const _0x464bc6=_0x17f92a(_0x5d238b);_0x464bc6&&_0x464bc6[_0x580f5b([0x61,0x6c,0x67])]==_0x580f5b([0x45,0x53,0x32,0x35,0x36])||(_0x5cde18=!0x1);}async function _0x3acf93(_0x24a806,_0x35e650,_0x461242){const _0x403291=window[_0x580f5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x580f5b([0x66,0x72,0x6f,0x6d])](_0x5bf706(_0x461242),_0x450d25=>_0x450d25[_0x580f5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc2f8bb=new window[(_0x580f5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x580f5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24a806+_0x580f5b([0x2e])+_0x35e650),_0x2fbe1f=window[_0x580f5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x580f5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fbe1f)return;const _0xe985fd=await _0x2fbe1f[_0x580f5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x580f5b([0x6a,0x77,0x6b]),_0xff0c06,{[_0x580f5b([0x6e,0x61,0x6d,0x65])]:_0x580f5b([0x45,0x43,0x44,0x53,0x41]),[_0x580f5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x580f5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x580f5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fbe1f[_0x580f5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x580f5b([0x6e,0x61,0x6d,0x65])]:_0x580f5b([0x45,0x43,0x44,0x53,0x41]),[_0x580f5b([0x68,0x61,0x73,0x68])]:{[_0x580f5b([0x6e,0x61,0x6d,0x65])]:_0x580f5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe985fd,_0x403291,_0xc2f8bb)||(_0x5cde18=!0x1);}}function _0x17f92a(_0x24c3db){return _0x24c3db[_0x580f5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x580f5b([0x65,0x79]))?JSON[_0x580f5b([0x70,0x61,0x72,0x73,0x65])](_0x5bf706(_0x24c3db)):null;}function _0x5bf706(_0x3fbcb8){return window[_0x580f5b([0x61,0x74,0x6f,0x62])](_0x3fbcb8[_0x580f5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x580f5b([0x2b]))[_0x580f5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x580f5b([0x2f])));}function _0x599424(_0x4902dd){let _0x2ac8b1=0x1505;function _0x3af79e(_0x203f8d){for(let _0x4e042f=0x0;_0x4e042f<_0x203f8d[_0x580f5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e042f++){const _0x59f029=_0x203f8d[_0x580f5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e042f);_0x2ac8b1=(_0x2ac8b1<<0x5)+_0x2ac8b1+_0x59f029,_0x2ac8b1&=_0x2ac8b1;}}function _0x439655(_0x206e85){Array[_0x580f5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x206e85)?_0x206e85[_0x580f5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x439655):_0x206e85&&typeof _0x206e85==_0x580f5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x580f5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x206e85)[_0x580f5b([0x73,0x6f,0x72,0x74])]()[_0x580f5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb28b54,_0x34c58e])=>{_0x3af79e(_0xb28b54),_0x439655(_0x34c58e);}):_0x3af79e(window[_0x580f5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x206e85));}return _0x439655(_0x4902dd),_0x2ac8b1>>>0x0;}function _0xa4fe04(_0x40de08){return _0x40de08[_0x580f5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x580f5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x580f5b([0x30]));}function _0x4731e0(_0x11be76){return _0x11be76[_0x580f5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x580f5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x580f5b([0x6a,0x6f,0x69,0x6e])]('');}function _0xe6c692(){}function _0x580f5b(_0x37ec52){return _0x37ec52['map'](_0x3abb07=>String['fromCharCode'](_0x3abb07))['join']('');}_0x852576(await _0x1dc6ac());}(this);}['_announceCaseChangeOperation'](_0x1fbc2a){const {ui:_0x5bf0b1,locale:_0x3eb968}=this['editor'],_0x16d3a3=g(_0x3eb968)['find'](_0x4fb14e=>_0x4fb14e['commandName']===_0x1fbc2a)['label']['toLowerCase']();_0x5bf0b1['ariaLiveAnnouncer']['announce'](d(_0x3eb968,'Changed\x20case\x20to\x20%0',_0x16d3a3));}}function g(_0x586b38){return[{'label':d(_0x586b38,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':d(_0x586b38,'lowercase'),'commandName':'changeCaseLower'},{'label':d(_0x586b38,'Title\x20Case'),'commandName':'changeCaseTitle'}];}class CaseChangeUI extends _0x347566{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x51e7eb=this['editor'];this['_registerComponents'](),_0x51e7eb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':d(_0x51e7eb['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46e669=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ada41;for(const _0x380e4c in _0x46e669){const _0xd05a4=_0x380e4c,_0xce639d=_0x46e669[_0xd05a4];if('caseChangeLicenseKeyValid'==_0xce639d||'caseChangeLicenseKeyInvalid'==_0xce639d||'caseChangeLicenseKeyExpired'==_0xce639d||'caseChangeLicenseKeyDomainLimit'==_0xce639d||'caseChangeLicenseKeyNotAllowed'==_0xce639d||'caseChangeLicenseKeyEvaluationLimit'==_0xce639d||'caseChangeLicenseKeyUsageLimit'==_0xce639d){delete _0x46e669[_0xd05a4],_0x1ada41=_0xce639d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x1ada41&&_0x46e669['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x1ada41&&_0x46e669['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x1ada41&&_0x46e669['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x1ada41&&_0x46e669['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x1ada41&&_0x46e669['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x1ada41&&_0x46e669['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x4599cc=this['editor'],{itemDefinitions:_0x5d56e2,commands:_0x64e027}=this['_getListItemDefinitionsAndCommands']();_0x4599cc['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x5d56e2,_0x64e027)),_0x4599cc['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x5d56e2,_0x64e027));}['_createMenuBarMenuView'](_0x3888c3,_0x43c84c){const _0x42da4e=this['editor'],_0x343d81=_0x42da4e['locale'],_0x1e5c05=new _0xe5478c(_0x343d81),_0x4ad5b2=new _0x3a9c3a(_0x343d81);_0x4ad5b2['set']({'ariaLabel':d(_0x343d81,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x1e5c05['buttonView']),_0x1e5c05['bind']('isEnabled')['toMany'](_0x43c84c,'isEnabled',(..._0x2b283e)=>_0x2b283e['some'](_0x22d1a7=>_0x22d1a7));for(const _0x76421e of _0x3888c3){const _0x1325d1=new _0x1917c0(_0x343d81,_0x1e5c05),_0x7894fc=new _0x9a1516(_0x343d81);_0x7894fc['delegate']('execute')['to'](_0x1e5c05),_0x7894fc['bind'](...Object['keys'](_0x76421e['model']))['to'](_0x76421e['model']),_0x7894fc['on']('execute',()=>{_0x42da4e['execute'](_0x76421e['model']['commandName']),_0x42da4e['editing']['view']['focus']();}),_0x1325d1['children']['add'](_0x7894fc),_0x4ad5b2['items']['add'](_0x1325d1);}return _0x1e5c05['panelView']['children']['add'](_0x4ad5b2),_0x1e5c05;}['_createDropdownView'](_0xfcf1c3,_0x151415){const _0x371073=this['editor'],_0x2e26e4=_0x308da4(_0x371073['locale']);return this['_setButtonProperties'](_0x2e26e4['buttonView']),_0x2e26e4['buttonView']['set']({'tooltip':!0x0}),_0x2e26e4['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x58393c(_0x2e26e4,_0xfcf1c3,{'ariaLabel':d(_0x371073['locale'],'Case\x20change'),'role':'menu'}),_0x2e26e4['bind']('isEnabled')['toMany'](_0x151415,'isEnabled',(..._0x2ef28f)=>_0x2ef28f['some'](_0x2ded6f=>_0x2ded6f)),this['listenTo'](_0x2e26e4,'execute',_0x4d81d5=>{_0x371073['execute'](_0x4d81d5['source']['commandName']),_0x371073['editing']['view']['focus']();}),_0x2e26e4;}['_setButtonProperties'](_0x339dc9){const _0x4a9e40=this['editor'];_0x339dc9['set']({'label':d(_0x4a9e40['locale'],'Case\x20change'),'icon':_0x4734f2,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4a32e6=new _0x864b65(),_0x589cca=[];for(const _0x4fef31 of g(this['editor']['locale'])){const _0x5c7f00=this['editor']['commands']['get'](_0x4fef31['commandName']),_0x268147=new _0xbb145({'commandName':_0x4fef31['commandName'],'label':_0x4fef31['label'],'role':'menuitemradio','withText':!0x0});_0x268147['bind']('isEnabled')['to'](_0x5c7f00,'isEnabled'),_0x4a32e6['add']({'type':'button','model':_0x268147}),_0x589cca['push'](_0x5c7f00);}return{'itemDefinitions':_0x4a32e6,'commands':_0x589cca};}}class CaseChange extends _0x347566{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']||={});
|