@ckeditor/ckeditor5-case-change 48.8.1-alpha.4 → 49.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0x44a86b,Plugin as _0x47b6a3}from'@ckeditor/ckeditor5-core';import{Collection as _0x3c9da7,uid as _0x2b6568}from'@ckeditor/ckeditor5-utils';import{MenuBarMenuListItemButtonView as _0x3f7430,MenuBarMenuListItemView as _0x4c17c2,MenuBarMenuListView as _0x20917d,MenuBarMenuView as _0x36b8e6,UIModel as _0x45ef72,addListToDropdown as _0x1940d6,createDropdown as _0x3bc0da}from'@ckeditor/ckeditor5-ui';import{IconCaseChange as _0x59eca7}from'@ckeditor/ckeditor5-icons';var h=class extends _0x44a86b{_transformCallback;constructor(_0x2d2fec,_0x4e7c19){super(_0x2d2fec),this['_transformCallback']=_0x4e7c19;}execute(){const _0x3ab1d6=this['editor']['model'],_0xef1be5=Array['from'](this['_getAffectedRanges']()),_0x1b36a7=Array['from'](_0x3ab1d6['document']['selection']['getRanges']());_0x3ab1d6['change'](_0x5283cd=>{for(const _0x4af074 of _0xef1be5)this['_modifyContent'](_0x4af074,_0x5283cd);_0x5283cd['setSelection'](_0x1b36a7);});}['refresh'](){for(const _0x3d873f of this['_getAffectedRanges']())for(const _0x213437 of _0x3d873f)if(_0x213437['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}_getAffectedRanges(){const _0x28e36b=this['editor']['model'],_0x8775a9=_0x28e36b['document']['selection'];if(_0x8775a9['isCollapsed']){const _0x26744d=this['_findAncestorTextBlock'](_0x8775a9['getFirstPosition']()['parent']);return _0x26744d?[_0x28e36b['createRangeIn'](_0x26744d)]:[];}return _0x8775a9['getRanges']();}_modifyContent(_0x3426ed,_0x458003){for(const _0x3a337a of this['_getElementsAllowingText'](_0x3426ed)){const _0x16fef7=this['_getElementTextContent'](_0x3a337a),_0x4f5e5e=this['_transformCallback'](_0x16fef7);for(const _0x1a620a of this['_getTextNodesRangeLimited'](_0x3a337a,_0x3426ed))this['_replaceTextNodeData'](_0x1a620a,_0x4f5e5e,_0x458003);}}_findAncestorTextBlock(_0x177cea){const _0x5a580d=this['editor']['model']['schema'];if(_0x177cea['is']('element')&&_0x5a580d['checkChild'](_0x177cea,'$text'))return _0x177cea;const _0x2c8c27=_0x177cea['parent'];return!_0x2c8c27||_0x5a580d['isLimit'](_0x177cea)?null:this['_findAncestorTextBlock'](_0x2c8c27);}*_getElementsAllowingText(_0x6ced66){const _0x12656d=new Set();for(const {item:_0x567c46}of _0x6ced66['getWalker']()){const _0x4b74b4=this['_findAncestorTextBlock'](_0x567c46);_0x4b74b4&&!_0x12656d['has'](_0x4b74b4)&&(_0x12656d['add'](_0x4b74b4),yield _0x4b74b4);}}_getElementTextContent(_0x14ab83){return Array['from'](_0x14ab83['getChildren']())['reduce']((_0x50ed39,_0x195b7b)=>_0x50ed39+(_0x195b7b['is']('$text')?_0x195b7b['data']:'\x20'),'');}*_getTextNodesRangeLimited(_0x4ee50d,_0x1ceeeb){const _0x5aa353=_0x1ceeeb['getIntersection'](this['editor']['model']['createRangeIn'](_0x4ee50d));if(_0x5aa353){for(const _0x38f4ff of _0x5aa353['getItems']())_0x38f4ff['is']('$textProxy')&&_0x38f4ff['parent']==_0x4ee50d&&(yield _0x38f4ff);}}_replaceTextNodeData(_0x3c6d77,_0x421f74,_0x5042d7){const _0x229ab3=_0x421f74['substring'](_0x3c6d77['startOffset'],_0x3c6d77['endOffset']);if(_0x229ab3===_0x3c6d77['data'])return;const _0x1695b5=_0x3c6d77['getAttributes']();this['editor']['model']['insertContent'](_0x5042d7['createText'](_0x229ab3,_0x1695b5),_0x5042d7['createSelection'](_0x5042d7['createRangeOn'](_0x3c6d77)));}};function w(_0x20789d,_0x5c7936,..._0x101dd7){const t=_0x20789d['t'];switch(_0x5c7936){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',..._0x101dd7);default:return _0x5c7936;}}var g=class extends _0x47b6a3{_currentCommandIndex=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0xb083bd=this['editor'],_0x175bce=_0xb083bd['locale']['contentLanguage'],_0x24baf7=function(_0x75862b=[]){return'function'==typeof _0x75862b?_0x75862b:(_0x5d4aea,{wordIndex:_0x3e88af})=>_0x3e88af>0x0&&_0x75862b['includes'](_0x5d4aea);}(_0xb083bd['config']['get']('caseChange.titleCase.excludeWords')),_0x4fb7ae={'changeCaseUpper':new h(_0xb083bd,_0x4dfc25=>_0x4dfc25['toLocaleUpperCase'](_0x175bce)),'changeCaseLower':new h(_0xb083bd,_0x3856aa=>_0x3856aa['toLocaleLowerCase'](_0x175bce)),'changeCaseTitle':new h(_0xb083bd,_0x4b04f4=>function(_0xac05f6,_0x15aec0,_0x464e22){return function(_0xcb67b,_0x1495da){let _0x2d6b37='',_0x11f1f1=0x0,_0x51ecab=0x0;for(const _0x4c3c0d of _0xcb67b['matchAll'](/ +/g)){const _0x375030=_0x4c3c0d['index'],_0x646a0d=_0xcb67b['substring'](_0x11f1f1,_0x375030);_0x646a0d['length']&&(_0x2d6b37+=_0x1495da(_0x646a0d,_0x11f1f1,_0x51ecab++)),_0x2d6b37+=_0x4c3c0d[0x0],_0x11f1f1=_0x375030+_0x4c3c0d[0x0]['length'];}const _0x3d3566=_0xcb67b['substring'](_0x11f1f1);return _0x3d3566['length']&&(_0x2d6b37+=_0x1495da(_0x3d3566,_0x11f1f1,_0x51ecab)),_0x2d6b37;}(_0xac05f6,(_0x24ce87,_0x35287b,_0x991365)=>{const _0xcdad71=_0x24ce87['toLocaleLowerCase'](_0x464e22);return _0x15aec0(_0xcdad71,{'charOffset':_0x35287b,'wordIndex':_0x991365,'blockText':_0xac05f6})?_0xcdad71:_0xcdad71['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x157243=>_0x157243['toLocaleUpperCase'](_0x464e22));});}(_0x4b04f4,_0x24baf7,_0x175bce))};for(const [_0x28c8f9,_0x4121bf]of Object['entries'](_0x4fb7ae))_0xb083bd['commands']['add'](_0x28c8f9,_0x4121bf),_0x4121bf['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x28c8f9);});this['listenTo'](_0xb083bd['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0xb083bd['keystrokes']['set']('shift+f3',(_0x3f8f3e,_0x3fcddf)=>{const _0x55860f=m(this['editor']['locale']),_0x10b990=_0x55860f[this['_currentCommandIndex']%_0x55860f['length']]['commandName'];_0xb083bd['execute'](_0x10b990),this['_currentCommandIndex']++,_0x3fcddf();});}afterInit(){!async function(_0x5b105e){const _0x12b862='aWxlPG0A3CDdHBsZEqwULojOrgMXVTRvu1bI2487ptzJKQeihfNkYS9n6y5mcF',_0x4475e9=0x79728,_0x145c6a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x5c8120(_0x326551){const _0xa9278=new window['Promise'](_0x11ba59=>{_0x326551['once']('ready',_0x11ba59);}),_0x4e3a9c=window['Date']['now'](),_0xa31a3e=_0x326551['config']['get']('licenseKey');async function _0x4553ec(){let _0x253b24,_0x137b22=null,_0x21db90=null;try{return'GPL'==_0xa31a3e?'NotAllowed':(_0x253b24=_0x55ebb1(),_0x253b24?(_0x253b24['usageEndpoint']&&(_0x21db90=_0x533cf0(_0x253b24['usageEndpoint'],_0x253b24['jti'])),await _0x54cccc()?_0xf96cc6()?_0x5a8870()?'Expired':_0x361c63()?('evaluation'==_0x253b24['licenseType']&&(_0x137b22=_0x5db29d('EvaluationLimit')),await _0x1651ce()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5a8870(){const _0x19a956=['evaluation','trial']['includes'](_0x253b24['licenseType'])?_0x4e3a9c/0x3e8:0xe10*_0x4475e9;return _0x253b24['exp']<_0x19a956;}function _0xf96cc6(){const _0x5f2ac2=_0x253b24['features'];return!!_0x5f2ac2&&(!!_0x5f2ac2['includes']('*')||(!!_0x5f2ac2['includes']('CC')||!!_0x5f2ac2['includes']('PP')));}function _0x361c63(){const _0x4d0b35=_0x253b24['licensedHosts'];if(!_0x4d0b35||0x0==_0x4d0b35['length'])return!0x0;const {hostname:_0x29d23b}=new URL(window['location']['href']);if(_0x4d0b35['includes'](_0x29d23b))return!0x0;const _0x4ce1c4=_0x29d23b['split']('.');return _0x4d0b35['filter'](_0x37b0f8=>_0x37b0f8['includes']('*'))['map'](_0x1c8da7=>_0x1c8da7['split']('.'))['filter'](_0x23b08a=>_0x23b08a['length']<=_0x4ce1c4['length'])['map'](_0x90a6d6=>Array(_0x4ce1c4['length']-_0x90a6d6['length'])['fill']('*'===_0x90a6d6[0x0]?'*':'')['concat'](_0x90a6d6))['some'](_0x4a1e9d=>_0x4ce1c4['every']((_0x1c6db5,_0x15a526)=>_0x4a1e9d[_0x15a526]===_0x1c6db5||'*'===_0x4a1e9d[_0x15a526]));}function _0x1651ce(){return _0x137b22&&_0x21db90?new window['Promise']((_0x293d5c,_0x2d82e9)=>{_0x137b22['then'](_0x293d5c,_0x2d82e9),_0x21db90['then'](_0x59871e=>{'Valid'!=_0x59871e&&_0x293d5c(_0x59871e);},_0x2d82e9);}):_0x137b22||_0x21db90||'Valid';}}function _0x533cf0(_0x11cffc,_0x51e217){return new window['Promise'](_0x3c01e5=>{if(_0x47ef3e())return _0x3c01e5('Valid');_0x313e12(),_0x326551['decorate']('_sendUsageRequest');let _0x39f0f8=!0x1;const _0x4b6e52=_0x2b6568();function _0x5b9830(_0x41fe62){return!!_0x41fe62&&('object'==typeof _0x41fe62||'function'==typeof _0x41fe62)&&'function'==typeof _0x41fe62['then']&&'function'==typeof _0x41fe62['catch'];}function _0x410a9e(_0x151300){_0x23fdb7(_0x151300)['then'](_0x316d28=>_0x316d28&&'ok'==_0x316d28['status']?_0x4f7604(_0x5ffe68(_0x4b6e52+_0x51e217))!=_0x316d28['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x30128d=>(_0xe1a250(),_0x30128d),()=>{const _0x20a4dd=_0x4c51ea();return null==_0x20a4dd?(_0xe1a250(),'Valid'):_0x4e3a9c-_0x20a4dd>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3c01e5)['catch'](()=>{_0x3c01e5('UsageLimit');});const _0x2b6a33=0x36ee80;function _0xe1a250(){const _0x12cf7d='llct-'+_0x4f7604(_0x5ffe68(_0x11cffc)),_0x557da8=_0x587582(_0x4f7604(window['Math']['ceil'](_0x4e3a9c/_0x2b6a33)));window['localStorage']['setItem'](_0x12cf7d,_0x557da8);}function _0x4c51ea(){const _0x4fea08='llct-'+_0x4f7604(_0x5ffe68(_0x11cffc)),_0x454e4a=window['localStorage']['getItem'](_0x4fea08);return _0x454e4a?window['parseInt'](_0x587582(_0x454e4a),0x10)*_0x2b6a33:null;}function _0x23fdb7(_0x1187d){return new window['Promise']((_0x2d74d3,_0x34073b)=>{_0x1187d['then'](_0x2d74d3,_0x34073b),window['setTimeout'](_0x34073b,0x1d4c0);});}}_0x326551['on']('_sendUsageRequest',(_0x4ebe3c,_0x44a01d)=>{if(_0x44a01d[0x0]!=_0x11cffc)return _0x3c01e5('UsageLimit');_0x44a01d[0x1]={..._0x44a01d[0x1],'requestId':_0x4b6e52};},{'priority':'high'}),_0x326551['on']('_sendUsageRequest',_0x2126c7=>{_0x5b9830(_0x2126c7['return'])&&(_0x39f0f8=!0x0,_0x410a9e(_0x2126c7['return']));},{'priority':'low'}),_0xa9278['then'](()=>{_0x39f0f8||_0x3c01e5('UsageLimit');});});function _0x47ef3e(){return'auto'==_0x326551['editing']['view']['_overlayModeHint'];}function _0x313e12(){_0x326551['editing']['view']['_overlayModeHint']='auto';}}function _0x5db29d(_0x19dac3){const _0x4455ce=[new window['Promise'](_0x35d692=>setTimeout(_0x35d692,0x93ecc)),_0xa9278['then'](()=>new window['Promise'](_0x48d9ac=>{let _0x1eaed5=0x0;_0x326551['model']['on']('applyOperation',(_0x1b682b,_0x336b4b)=>{_0x336b4b[0x0]['isDocumentOperation']&&_0x1eaed5++,0x5e8==_0x1eaed5&&(_0x48d9ac(),_0x1b682b['off']());});}))];return window['Promise']['race'](_0x4455ce)['then'](()=>_0x19dac3);}async function _0x33a86d(){await _0xa9278,_0x326551['model']['change']=_0x213871,_0x326551['model']['enqueueChange']=_0x213871,_0x326551['enableReadOnlyMode']('model');}function _0x554857(_0xe9450c){const _0x37d787=_0x3cb1d0();_0x326551[_0x37d787]='caseChangeLicenseKey'+_0xe9450c,'Valid'!=_0xe9450c&&_0x33a86d();}function _0x3cb1d0(){const _0x57566b=window['String'](window['performance']['now']())['replace']('.','');let _0x1fac5d='a';for(let _0x162da4=0x0;_0x162da4<_0x57566b['length'];_0x162da4+=0x2){let _0x25f0a4=window['parseInt'](_0x57566b['substring'](_0x162da4,_0x162da4+0x2));_0x25f0a4>=0x3e&&(_0x25f0a4-=0x3e),_0x1fac5d+=_0x12b862[_0x25f0a4];}return _0x1fac5d;}function _0x55ebb1(){const _0x530ec0=_0xa31a3e['split']('.');if(0x3!=_0x530ec0['length'])return null;return _0x4aede2(_0x530ec0[0x1]);function _0x4aede2(_0xcc72aa){const _0x5e464b=_0x497493(_0xcc72aa);return _0x5e464b&&_0x4a4775()?_0x5e464b:null;function _0x4a4775(){const _0x2e1bf1=_0x5e464b['jti'],_0x4350a2=window['parseInt'](_0x2e1bf1['substring'](_0x2e1bf1['length']-0x8),0x10),_0x501edd={..._0x5e464b,'jti':_0x2e1bf1['substring'](0x0,_0x2e1bf1['length']-0x8)};return delete _0x501edd['vc'],_0x5ffe68(_0x501edd)==_0x4350a2;}}}async function _0x54cccc(){let _0x1a8baa=!0x0;try{const [_0x3c576c,_0x3e558c,_0x1a11e4]=_0xa31a3e['split']('.');return _0x27b25d(_0x3c576c),await _0x161cd7(_0x3c576c,_0x3e558c,_0x1a11e4),_0x1a8baa;}catch{return!0x1;}function _0x27b25d(_0x3170ee){const _0x424d6d=_0x497493(_0x3170ee);_0x424d6d&&'ES256'==_0x424d6d['alg']||(_0x1a8baa=!0x1);}async function _0x161cd7(_0x37db0b,_0x5d3b4c,_0x50e673){const _0x387d62=window['Uint8Array']['from'](_0x243c10(_0x50e673),_0x5bbeb2=>_0x5bbeb2['charCodeAt'](0x0)),_0x341334=new window['TextEncoder']()['encode'](_0x37db0b+'.'+_0x5d3b4c),_0x593eca=window['crypto']['subtle'];if(!_0x593eca)return;const _0xb329b4=await _0x593eca['importKey']('jwk',_0x145c6a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x593eca['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xb329b4,_0x387d62,_0x341334)||(_0x1a8baa=!0x1);}}function _0x497493(_0x1a4be7){return _0x1a4be7['startsWith']('ey')?JSON['parse'](_0x243c10(_0x1a4be7)):null;}function _0x243c10(_0x39f0b1){return window['atob'](_0x39f0b1['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5ffe68(_0x2ddec8){let _0x123b0=0x1505;function _0x208e3c(_0x55a4a5){for(let _0x25f9f1=0x0;_0x25f9f1<_0x55a4a5['length'];_0x25f9f1++){const _0xc01944=_0x55a4a5['charCodeAt'](_0x25f9f1);_0x123b0=(_0x123b0<<0x5)+_0x123b0+_0xc01944,_0x123b0&=_0x123b0;}}function _0x5d55a6(_0x11c7df){Array['isArray'](_0x11c7df)?_0x11c7df['forEach'](_0x5d55a6):_0x11c7df&&'object'==typeof _0x11c7df?Object['entries'](_0x11c7df)['sort']()['forEach'](([_0x213bf7,_0x351016])=>{_0x208e3c(_0x213bf7),_0x5d55a6(_0x351016);}):_0x208e3c(window['String'](_0x11c7df));}return _0x5d55a6(_0x2ddec8),_0x123b0>>>0x0;}function _0x4f7604(_0x6b5cb1){return _0x6b5cb1['toString'](0x10)['padStart'](0x8,'0');}function _0x587582(_0xf4c295){return _0xf4c295['split']('')['reverse']()['join']('');}function _0x213871(){}_0x554857(await _0x4553ec());}_0x5c8120(_0x5b105e['editor']);}(this);}_announceCaseChangeOperation(_0x4afdda){const {ui:_0x3a44b9,locale:_0x1e36df}=this['editor'],_0x57c81d=m(_0x1e36df)['find'](_0x2abeea=>_0x2abeea['commandName']===_0x4afdda)['label']['toLowerCase']();_0x3a44b9['ariaLiveAnnouncer']['announce'](w(_0x1e36df,'Changed\x20case\x20to\x20%0',_0x57c81d));}};function m(_0x2306d2){return[{'label':w(_0x2306d2,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':w(_0x2306d2,'lowercase'),'commandName':'changeCaseLower'},{'label':w(_0x2306d2,'Title\x20Case'),'commandName':'changeCaseTitle'}];}var C=class extends _0x47b6a3{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x361c08=this['editor'];this['_registerComponents'](),_0x361c08['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':w(_0x361c08['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x57027f=[this['editor']];for(const _0x4fa3a8 of _0x57027f){let _0x300c61;for(const _0x4cf4d8 in _0x4fa3a8){const _0x438c3a=_0x4cf4d8,_0x5bc1e4=_0x4fa3a8[_0x438c3a];if('caseChangeLicenseKeyValid'==_0x5bc1e4||'caseChangeLicenseKeyInvalid'==_0x5bc1e4||'caseChangeLicenseKeyExpired'==_0x5bc1e4||'caseChangeLicenseKeyDomainLimit'==_0x5bc1e4||'caseChangeLicenseKeyNotAllowed'==_0x5bc1e4||'caseChangeLicenseKeyEvaluationLimit'==_0x5bc1e4||'caseChangeLicenseKeyUsageLimit'==_0x5bc1e4){delete _0x4fa3a8[_0x438c3a],_0x300c61=_0x5bc1e4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x300c61&&_0x4fa3a8['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x300c61&&_0x4fa3a8['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x300c61&&_0x4fa3a8['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x300c61&&_0x4fa3a8['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x300c61&&_0x4fa3a8['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x300c61&&_0x4fa3a8['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}_registerComponents(){const _0x1029c5=this['editor'],{itemDefinitions:_0x30d57d,commands:_0x4c2f93}=this['_getListItemDefinitionsAndCommands']();_0x1029c5['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x30d57d,_0x4c2f93)),_0x1029c5['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x30d57d,_0x4c2f93));}_createMenuBarMenuView(_0x56c35a,_0x2a304e){const _0x423d46=this['editor'],_0x5ea71c=_0x423d46['locale'],_0x3c5311=new _0x36b8e6(_0x5ea71c),_0x9ae0b7=new _0x20917d(_0x5ea71c);_0x9ae0b7['set']({'ariaLabel':w(_0x5ea71c,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x3c5311['buttonView']),_0x3c5311['bind']('isEnabled')['toMany'](_0x2a304e,'isEnabled',(..._0x58a0be)=>_0x58a0be['some'](_0x934e54=>_0x934e54));for(const _0x3b138b of _0x56c35a){const _0x284cdf=new _0x4c17c2(_0x5ea71c,_0x3c5311),_0x238d99=new _0x3f7430(_0x5ea71c);_0x238d99['delegate']('execute')['to'](_0x3c5311),_0x238d99['bind'](...Object['keys'](_0x3b138b['model']))['to'](_0x3b138b['model']),_0x238d99['on']('execute',()=>{_0x423d46['execute'](_0x3b138b['model']['commandName']),_0x423d46['editing']['view']['focus']();}),_0x284cdf['children']['add'](_0x238d99),_0x9ae0b7['items']['add'](_0x284cdf);}return _0x3c5311['panelView']['children']['add'](_0x9ae0b7),_0x3c5311;}_createDropdownView(_0x396255,_0x244ba7){const _0x3d8776=this['editor'],_0x55d153=_0x3bc0da(_0x3d8776['locale']);return this['_setButtonProperties'](_0x55d153['buttonView']),_0x55d153['buttonView']['set']({'tooltip':!0x0}),_0x55d153['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),_0x1940d6(_0x55d153,_0x396255,{'ariaLabel':w(_0x3d8776['locale'],'Case\x20change'),'role':'menu'}),_0x55d153['bind']('isEnabled')['toMany'](_0x244ba7,'isEnabled',(..._0x40b367)=>_0x40b367['some'](_0x3a1865=>_0x3a1865)),this['listenTo'](_0x55d153,'execute',_0x5a91ba=>{_0x3d8776['execute'](_0x5a91ba['source']['commandName']),_0x3d8776['editing']['view']['focus']();}),_0x55d153;}_setButtonProperties(_0x267089){const _0x1b76bd=this['editor'];_0x267089['set']({'label':w(_0x1b76bd['locale'],'Case\x20change'),'icon':_0x59eca7,'keystroke':'Shift+F3'});}_getListItemDefinitionsAndCommands(){const _0x4ced7b=new _0x3c9da7(),_0x5425d2=[];for(const _0x591a9d of m(this['editor']['locale'])){const _0x4f61eb=this['editor']['commands']['get'](_0x591a9d['commandName']),_0x12861b=new _0x45ef72({'commandName':_0x591a9d['commandName'],'label':_0x591a9d['label'],'role':'menuitemradio','withText':!0x0});_0x12861b['bind']('isEnabled')['to'](_0x4f61eb,'isEnabled'),_0x4ced7b['add']({'type':'button','model':_0x12861b}),_0x5425d2['push'](_0x4f61eb);}return{'itemDefinitions':_0x4ced7b,'commands':_0x5425d2};}},y=class extends _0x47b6a3{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
|
+
(_0x280165=>{const {af:_0x23b226}={'af':{'dictionary':{'Case\x20change':'','UPPERCASE':'','lowercase':'','Title\x20Case':'','Change\x20text\x20case':'','Changed\x20case\x20to\x20%0':''}}};_0x280165['af']||={'dictionary':{},'getPluralForm':null},_0x280165['af']['dictionary']=Object['assign'](_0x280165['af']['dictionary'],_0x23b226['dictionary']),_0x23b226['getPluralForm']&&(_0x280165['af']['getPluralForm']=_0x23b226['getPluralForm']);})(window['CKEDITOR_TRANSLATIONS']||={});
|