@ckeditor/ckeditor5-special-characters 37.0.0-alpha.0 → 37.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/package.json +13 -13
- package/src/augmentation.d.ts +24 -0
- package/src/augmentation.js +5 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -0
- package/src/specialcharacters.d.ts +0 -6
- package/src/specialcharacters.js +0 -1
- package/src/specialcharactersarrows.d.ts +0 -5
- package/src/specialcharactersconfig.d.ts +0 -10
- package/src/specialcharacterscurrency.d.ts +0 -5
- package/src/specialcharactersessentials.d.ts +0 -5
- package/src/specialcharacterslatin.d.ts +0 -5
- package/src/specialcharactersmathematical.d.ts +0 -5
- package/src/specialcharacterstext.d.ts +0 -5
- package/src/ui/charactergridview.d.ts +42 -1
- package/src/ui/charactergridview.js +1 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-special-characters",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.1",
|
|
4
4
|
"description": "Special characters feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^37.0.0-alpha.
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
21
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
18
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
21
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.1",
|
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
|
|
23
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
|
|
24
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
|
|
25
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
|
|
28
28
|
"typescript": "^4.8.4",
|
|
29
29
|
"webpack": "^5.58.1",
|
|
30
30
|
"webpack-cli": "^4.9.0"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"scripts": {
|
|
55
55
|
"dll:build": "webpack",
|
|
56
|
-
"build": "tsc -p ./tsconfig.
|
|
56
|
+
"build": "tsc -p ./tsconfig.json",
|
|
57
57
|
"postversion": "npm run build"
|
|
58
58
|
},
|
|
59
59
|
"types": "src/index.d.ts"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, SpecialCharactersConfig } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[SpecialCharacters.pluginName]: SpecialCharacters;
|
|
9
|
+
[SpecialCharactersText.pluginName]: SpecialCharactersText;
|
|
10
|
+
[SpecialCharactersArrows.pluginName]: SpecialCharactersArrows;
|
|
11
|
+
[SpecialCharactersEssentials.pluginName]: SpecialCharactersEssentials;
|
|
12
|
+
[SpecialCharactersLatin.pluginName]: SpecialCharactersLatin;
|
|
13
|
+
[SpecialCharactersCurrency.pluginName]: SpecialCharactersCurrency;
|
|
14
|
+
[SpecialCharactersMathematical.pluginName]: SpecialCharactersMathematical;
|
|
15
|
+
}
|
|
16
|
+
interface EditorConfig {
|
|
17
|
+
/**
|
|
18
|
+
* The configuration of the {@link module:special-characters/specialcharacters~SpecialCharacters} feature.
|
|
19
|
+
*
|
|
20
|
+
* Read more in {@link module:special-characters/specialcharactersconfig~SpecialCharactersConfig}.
|
|
21
|
+
*/
|
|
22
|
+
specialCharacters?: SpecialCharactersConfig;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -12,3 +12,5 @@ export { default as SpecialCharactersMathematical } from './specialcharactersmat
|
|
|
12
12
|
export { default as SpecialCharactersLatin } from './specialcharacterslatin';
|
|
13
13
|
export { default as SpecialCharactersEssentials } from './specialcharactersessentials';
|
|
14
14
|
export { default as SpecialCharactersCurrency } from './specialcharacterscurrency';
|
|
15
|
+
export type { SpecialCharactersConfig } from './specialcharactersconfig';
|
|
16
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -12,3 +12,4 @@ export { default as SpecialCharactersMathematical } from './specialcharactersmat
|
|
|
12
12
|
export { default as SpecialCharactersLatin } from './specialcharacterslatin';
|
|
13
13
|
export { default as SpecialCharactersEssentials } from './specialcharactersessentials';
|
|
14
14
|
export { default as SpecialCharactersCurrency } from './specialcharacterscurrency';
|
|
15
|
+
import './augmentation';
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module special-characters/specialcharacters
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import './specialcharactersconfig';
|
|
10
9
|
import '../theme/specialcharacters.css';
|
|
11
10
|
/**
|
|
12
11
|
* The special characters feature.
|
|
@@ -94,8 +93,3 @@ export interface SpecialCharacterDefinition {
|
|
|
94
93
|
*/
|
|
95
94
|
character: string;
|
|
96
95
|
}
|
|
97
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
98
|
-
interface PluginsMap {
|
|
99
|
-
[SpecialCharacters.pluginName]: SpecialCharacters;
|
|
100
|
-
}
|
|
101
|
-
}
|
package/src/specialcharacters.js
CHANGED
|
@@ -14,7 +14,6 @@ import CharacterGridView from './ui/charactergridview';
|
|
|
14
14
|
import CharacterInfoView from './ui/characterinfoview';
|
|
15
15
|
import SpecialCharactersView from './ui/specialcharactersview';
|
|
16
16
|
import specialCharactersIcon from '../theme/icons/specialcharacters.svg';
|
|
17
|
-
import './specialcharactersconfig';
|
|
18
17
|
import '../theme/specialcharacters.css';
|
|
19
18
|
const ALL_SPECIAL_CHARACTERS_GROUP = 'All';
|
|
20
19
|
/**
|
|
@@ -49,13 +49,3 @@ export interface SpecialCharactersConfig {
|
|
|
49
49
|
*/
|
|
50
50
|
order?: Array<string>;
|
|
51
51
|
}
|
|
52
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
53
|
-
/**
|
|
54
|
-
* The configuration of the {@link module:special-characters/specialcharacters~SpecialCharacters} feature.
|
|
55
|
-
*
|
|
56
|
-
* Read more in {@link module:special-characters/specialcharactersconfig~SpecialCharactersConfig}.
|
|
57
|
-
*/
|
|
58
|
-
interface EditorConfig {
|
|
59
|
-
specialCharacters?: SpecialCharactersConfig;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -28,8 +28,3 @@ export default class SpecialCharactersEssentials extends Plugin {
|
|
|
28
28
|
*/
|
|
29
29
|
static get requires(): PluginDependencies;
|
|
30
30
|
}
|
|
31
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
32
|
-
interface PluginsMap {
|
|
33
|
-
[SpecialCharactersEssentials.pluginName]: SpecialCharactersEssentials;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -47,7 +47,48 @@ export default class CharacterGridView extends View<HTMLDivElement> {
|
|
|
47
47
|
*/
|
|
48
48
|
destroy(): void;
|
|
49
49
|
/**
|
|
50
|
-
* Focuses the first focusable in {@link #tiles}.
|
|
50
|
+
* Focuses the first focusable in {@link ~CharacterGridView#tiles}.
|
|
51
51
|
*/
|
|
52
52
|
focus(): void;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Fired when any of {@link ~CharacterGridView#tiles grid tiles} is clicked.
|
|
56
|
+
*
|
|
57
|
+
* @eventName ~CharacterGridView#execute
|
|
58
|
+
* @param data Additional information about the event.
|
|
59
|
+
*/
|
|
60
|
+
export type CharacterGridViewExecuteEvent = {
|
|
61
|
+
name: 'execute';
|
|
62
|
+
args: [data: CharacterGridViewEventData];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Fired when a mouse or another pointing device caused the cursor to move onto any {@link ~CharacterGridView#tiles grid tile}
|
|
66
|
+
* (similar to the native `mouseover` DOM event).
|
|
67
|
+
*
|
|
68
|
+
* @eventName ~CharacterGridView#tileHover
|
|
69
|
+
* @param data Additional information about the event.
|
|
70
|
+
*/
|
|
71
|
+
export type CharacterGridViewTileHoverEvent = {
|
|
72
|
+
name: 'tileHover';
|
|
73
|
+
args: [data: CharacterGridViewEventData];
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Fired when {@link ~CharacterGridView#tiles grid tile} is focused (e.g. by navigating with arrow keys).
|
|
77
|
+
*
|
|
78
|
+
* @eventName ~CharacterGridView#tileFocus
|
|
79
|
+
* @param data Additional information about the event.
|
|
80
|
+
*/
|
|
81
|
+
export type CharacterGridViewTileFocusEvent = {
|
|
82
|
+
name: 'tileFocus';
|
|
83
|
+
args: [data: CharacterGridViewEventData];
|
|
84
|
+
};
|
|
85
|
+
export interface CharacterGridViewEventData {
|
|
86
|
+
/**
|
|
87
|
+
* The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* A human-readable character displayed as the label (e.g. "ε").
|
|
92
|
+
*/
|
|
93
|
+
character: string;
|
|
94
|
+
}
|
|
@@ -55,31 +55,6 @@ export default class CharacterGridView extends View {
|
|
|
55
55
|
.length,
|
|
56
56
|
uiLanguageDirection: this.locale && this.locale.uiLanguageDirection
|
|
57
57
|
});
|
|
58
|
-
/**
|
|
59
|
-
* Fired when any of {@link #tiles grid tiles} is clicked.
|
|
60
|
-
*
|
|
61
|
-
* @event execute
|
|
62
|
-
* @param {Object} data Additional information about the event.
|
|
63
|
-
* @param {String} data.name The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
64
|
-
* @param {String} data.character A human-readable character displayed as the label (e.g. "ε").
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* Fired when a mouse or another pointing device caused the cursor to move onto any {@link #tiles grid tile}
|
|
68
|
-
* (similar to the native `mouseover` DOM event).
|
|
69
|
-
*
|
|
70
|
-
* @event tileHover
|
|
71
|
-
* @param {Object} data Additional information about the event.
|
|
72
|
-
* @param {String} data.name The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
73
|
-
* @param {String} data.character A human-readable character displayed as the label (e.g. "ε").
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Fired when {@link #tiles grid tile} is focused (e.g. by navigating with arrow keys).
|
|
77
|
-
*
|
|
78
|
-
* @event tileFocus
|
|
79
|
-
* @param {Object} data Additional information about the event.
|
|
80
|
-
* @param {String} data.name The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
|
81
|
-
* @param {String} data.character A human-readable character displayed as the label (e.g. "ε").
|
|
82
|
-
*/
|
|
83
58
|
}
|
|
84
59
|
/**
|
|
85
60
|
* Creates a new tile for the grid.
|
|
@@ -146,7 +121,7 @@ export default class CharacterGridView extends View {
|
|
|
146
121
|
this.keystrokes.destroy();
|
|
147
122
|
}
|
|
148
123
|
/**
|
|
149
|
-
* Focuses the first focusable in {@link #tiles}.
|
|
124
|
+
* Focuses the first focusable in {@link ~CharacterGridView#tiles}.
|
|
150
125
|
*/
|
|
151
126
|
focus() {
|
|
152
127
|
this.tiles.first.focus();
|