@ckeditor/ckeditor5-special-characters 45.2.1 → 46.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/build/special-characters.js +1 -1
- package/dist/index-editor.css +14 -14
- package/dist/index.css +23 -23
- package/dist/index.css.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/index.d.ts +11 -7
- package/src/index.js +11 -7
- package/src/specialcharacters.d.ts +1 -1
- package/src/specialcharacters.js +5 -5
- package/src/specialcharactersarrows.d.ts +1 -1
- package/src/specialcharactersarrows.js +1 -1
- package/src/specialcharacterscurrency.d.ts +1 -1
- package/src/specialcharacterscurrency.js +1 -1
- package/src/specialcharactersessentials.d.ts +6 -6
- package/src/specialcharactersessentials.js +6 -6
- package/src/specialcharacterslatin.d.ts +1 -1
- package/src/specialcharacterslatin.js +1 -1
- package/src/specialcharactersmathematical.d.ts +1 -1
- package/src/specialcharactersmathematical.js +1 -1
- package/src/specialcharacterstext.d.ts +1 -1
- package/src/specialcharacterstext.js +1 -1
- package/src/ui/charactergridview.d.ts +10 -8
- package/src/ui/charactergridview.js +3 -1
- package/src/ui/characterinfoview.d.ts +3 -1
- package/src/ui/characterinfoview.js +3 -1
- package/src/ui/specialcharacterscategoriesview.d.ts +3 -1
- package/src/ui/specialcharacterscategoriesview.js +5 -3
- package/src/ui/specialcharactersview.d.ts +6 -4
- package/src/ui/specialcharactersview.js +3 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-special-characters",
|
3
|
-
"version": "
|
3
|
+
"version": "46.0.0-alpha.1",
|
4
4
|
"description": "Special characters feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -13,12 +13,12 @@
|
|
13
13
|
"type": "module",
|
14
14
|
"main": "src/index.js",
|
15
15
|
"dependencies": {
|
16
|
-
"ckeditor5": "
|
17
|
-
"@ckeditor/ckeditor5-core": "
|
18
|
-
"@ckeditor/ckeditor5-icons": "
|
19
|
-
"@ckeditor/ckeditor5-typing": "
|
20
|
-
"@ckeditor/ckeditor5-ui": "
|
21
|
-
"@ckeditor/ckeditor5-utils": "
|
16
|
+
"ckeditor5": "46.0.0-alpha.1",
|
17
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.1",
|
18
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.1",
|
19
|
+
"@ckeditor/ckeditor5-typing": "46.0.0-alpha.1",
|
20
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.1",
|
21
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.1"
|
22
22
|
},
|
23
23
|
"author": "CKSource (http://cksource.com/)",
|
24
24
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/index.d.ts
CHANGED
@@ -5,12 +5,16 @@
|
|
5
5
|
/**
|
6
6
|
* @module special-characters
|
7
7
|
*/
|
8
|
-
export {
|
9
|
-
export {
|
10
|
-
export {
|
11
|
-
export {
|
12
|
-
export {
|
13
|
-
export {
|
14
|
-
export {
|
8
|
+
export { SpecialCharacters, type SpecialCharacterDefinition } from './specialcharacters.js';
|
9
|
+
export { SpecialCharactersArrows } from './specialcharactersarrows.js';
|
10
|
+
export { SpecialCharactersText } from './specialcharacterstext.js';
|
11
|
+
export { SpecialCharactersMathematical } from './specialcharactersmathematical.js';
|
12
|
+
export { SpecialCharactersLatin } from './specialcharacterslatin.js';
|
13
|
+
export { SpecialCharactersEssentials } from './specialcharactersessentials.js';
|
14
|
+
export { SpecialCharactersCurrency } from './specialcharacterscurrency.js';
|
15
15
|
export type { SpecialCharactersConfig } from './specialcharactersconfig.js';
|
16
|
+
export { type SpecialCharactersGridViewExecuteEvent, type SpecialCharactersGridViewTileHoverEvent, type SpecialCharactersGridViewTileFocusEvent, type SpecialCharactersGridViewEventData, CharacterGridView as _SpecialCharactersGridView } from './ui/charactergridview.js';
|
17
|
+
export { CharacterInfoView as _SpecialCharactersInfoView } from './ui/characterinfoview.js';
|
18
|
+
export { SpecialCharactersCategoriesView as _SpecialCharactersCategoriesView } from './ui/specialcharacterscategoriesview.js';
|
19
|
+
export { SpecialCharactersView as _SpecialCharactersView } from './ui/specialcharactersview.js';
|
16
20
|
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -5,11 +5,15 @@
|
|
5
5
|
/**
|
6
6
|
* @module special-characters
|
7
7
|
*/
|
8
|
-
export {
|
9
|
-
export {
|
10
|
-
export {
|
11
|
-
export {
|
12
|
-
export {
|
13
|
-
export {
|
14
|
-
export {
|
8
|
+
export { SpecialCharacters } from './specialcharacters.js';
|
9
|
+
export { SpecialCharactersArrows } from './specialcharactersarrows.js';
|
10
|
+
export { SpecialCharactersText } from './specialcharacterstext.js';
|
11
|
+
export { SpecialCharactersMathematical } from './specialcharactersmathematical.js';
|
12
|
+
export { SpecialCharactersLatin } from './specialcharacterslatin.js';
|
13
|
+
export { SpecialCharactersEssentials } from './specialcharactersessentials.js';
|
14
|
+
export { SpecialCharactersCurrency } from './specialcharacterscurrency.js';
|
15
|
+
export { CharacterGridView as _SpecialCharactersGridView } from './ui/charactergridview.js';
|
16
|
+
export { CharacterInfoView as _SpecialCharactersInfoView } from './ui/characterinfoview.js';
|
17
|
+
export { SpecialCharactersCategoriesView as _SpecialCharactersCategoriesView } from './ui/specialcharacterscategoriesview.js';
|
18
|
+
export { SpecialCharactersView as _SpecialCharactersView } from './ui/specialcharactersview.js';
|
15
19
|
import './augmentation.js';
|
@@ -14,7 +14,7 @@ import '../theme/specialcharacters.css';
|
|
14
14
|
*
|
15
15
|
* Introduces the `'specialCharacters'` dropdown.
|
16
16
|
*/
|
17
|
-
export
|
17
|
+
export declare class SpecialCharacters extends Plugin {
|
18
18
|
/**
|
19
19
|
* Registered characters. A pair of a character name and its symbol.
|
20
20
|
*/
|
package/src/specialcharacters.js
CHANGED
@@ -10,18 +10,18 @@ import { Typing } from 'ckeditor5/src/typing.js';
|
|
10
10
|
import { IconSpecialCharacters } from 'ckeditor5/src/icons.js';
|
11
11
|
import { ButtonView, MenuBarMenuListItemButtonView, DialogViewPosition, Dialog } from 'ckeditor5/src/ui.js';
|
12
12
|
import { CKEditorError } from 'ckeditor5/src/utils.js';
|
13
|
-
import CharacterGridView from './ui/charactergridview.js';
|
14
|
-
import CharacterInfoView from './ui/characterinfoview.js';
|
15
|
-
import SpecialCharactersView from './ui/specialcharactersview.js';
|
13
|
+
import { CharacterGridView } from './ui/charactergridview.js';
|
14
|
+
import { CharacterInfoView } from './ui/characterinfoview.js';
|
15
|
+
import { SpecialCharactersView } from './ui/specialcharactersview.js';
|
16
16
|
import '../theme/specialcharacters.css';
|
17
|
-
import SpecialCharactersCategoriesView from './ui/specialcharacterscategoriesview.js';
|
17
|
+
import { SpecialCharactersCategoriesView } from './ui/specialcharacterscategoriesview.js';
|
18
18
|
const ALL_SPECIAL_CHARACTERS_GROUP = 'All';
|
19
19
|
/**
|
20
20
|
* The special characters feature.
|
21
21
|
*
|
22
22
|
* Introduces the `'specialCharacters'` dropdown.
|
23
23
|
*/
|
24
|
-
export
|
24
|
+
export class SpecialCharacters extends Plugin {
|
25
25
|
/**
|
26
26
|
* Registered characters. A pair of a character name and its symbol.
|
27
27
|
*/
|
@@ -6,11 +6,11 @@
|
|
6
6
|
* @module special-characters/specialcharactersessentials
|
7
7
|
*/
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
-
import SpecialCharactersCurrency from './specialcharacterscurrency.js';
|
10
|
-
import SpecialCharactersMathematical from './specialcharactersmathematical.js';
|
11
|
-
import SpecialCharactersArrows from './specialcharactersarrows.js';
|
12
|
-
import SpecialCharactersLatin from './specialcharacterslatin.js';
|
13
|
-
import SpecialCharactersText from './specialcharacterstext.js';
|
9
|
+
import { SpecialCharactersCurrency } from './specialcharacterscurrency.js';
|
10
|
+
import { SpecialCharactersMathematical } from './specialcharactersmathematical.js';
|
11
|
+
import { SpecialCharactersArrows } from './specialcharactersarrows.js';
|
12
|
+
import { SpecialCharactersLatin } from './specialcharacterslatin.js';
|
13
|
+
import { SpecialCharactersText } from './specialcharacterstext.js';
|
14
14
|
/**
|
15
15
|
* A plugin combining a basic set of characters for the special characters plugin.
|
16
16
|
*
|
@@ -23,7 +23,7 @@ import SpecialCharactersText from './specialcharacterstext.js';
|
|
23
23
|
* .catch( ... );
|
24
24
|
* ```
|
25
25
|
*/
|
26
|
-
export
|
26
|
+
export declare class SpecialCharactersEssentials extends Plugin {
|
27
27
|
/**
|
28
28
|
* @inheritDoc
|
29
29
|
*/
|
@@ -6,11 +6,11 @@
|
|
6
6
|
* @module special-characters/specialcharactersessentials
|
7
7
|
*/
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
9
|
-
import SpecialCharactersCurrency from './specialcharacterscurrency.js';
|
10
|
-
import SpecialCharactersMathematical from './specialcharactersmathematical.js';
|
11
|
-
import SpecialCharactersArrows from './specialcharactersarrows.js';
|
12
|
-
import SpecialCharactersLatin from './specialcharacterslatin.js';
|
13
|
-
import SpecialCharactersText from './specialcharacterstext.js';
|
9
|
+
import { SpecialCharactersCurrency } from './specialcharacterscurrency.js';
|
10
|
+
import { SpecialCharactersMathematical } from './specialcharactersmathematical.js';
|
11
|
+
import { SpecialCharactersArrows } from './specialcharactersarrows.js';
|
12
|
+
import { SpecialCharactersLatin } from './specialcharacterslatin.js';
|
13
|
+
import { SpecialCharactersText } from './specialcharacterstext.js';
|
14
14
|
/**
|
15
15
|
* A plugin combining a basic set of characters for the special characters plugin.
|
16
16
|
*
|
@@ -23,7 +23,7 @@ import SpecialCharactersText from './specialcharacterstext.js';
|
|
23
23
|
* .catch( ... );
|
24
24
|
* ```
|
25
25
|
*/
|
26
|
-
export
|
26
|
+
export class SpecialCharactersEssentials extends Plugin {
|
27
27
|
/**
|
28
28
|
* @inheritDoc
|
29
29
|
*/
|
@@ -11,8 +11,10 @@ import '../../theme/charactergrid.css';
|
|
11
11
|
/**
|
12
12
|
* A grid of character tiles. It allows browsing special characters and selecting the character to
|
13
13
|
* be inserted into the content.
|
14
|
+
*
|
15
|
+
* @internal
|
14
16
|
*/
|
15
|
-
export
|
17
|
+
export declare class CharacterGridView extends View<HTMLDivElement> {
|
16
18
|
/**
|
17
19
|
* A collection of the child tile views. Each tile represents a particular character.
|
18
20
|
*/
|
@@ -57,9 +59,9 @@ export default class CharacterGridView extends View<HTMLDivElement> {
|
|
57
59
|
* @eventName ~CharacterGridView#execute
|
58
60
|
* @param data Additional information about the event.
|
59
61
|
*/
|
60
|
-
export type
|
62
|
+
export type SpecialCharactersGridViewExecuteEvent = {
|
61
63
|
name: 'execute';
|
62
|
-
args: [data:
|
64
|
+
args: [data: SpecialCharactersGridViewEventData];
|
63
65
|
};
|
64
66
|
/**
|
65
67
|
* Fired when a mouse or another pointing device caused the cursor to move onto any {@link ~CharacterGridView#tiles grid tile}
|
@@ -68,9 +70,9 @@ export type CharacterGridViewExecuteEvent = {
|
|
68
70
|
* @eventName ~CharacterGridView#tileHover
|
69
71
|
* @param data Additional information about the event.
|
70
72
|
*/
|
71
|
-
export type
|
73
|
+
export type SpecialCharactersGridViewTileHoverEvent = {
|
72
74
|
name: 'tileHover';
|
73
|
-
args: [data:
|
75
|
+
args: [data: SpecialCharactersGridViewEventData];
|
74
76
|
};
|
75
77
|
/**
|
76
78
|
* Fired when {@link ~CharacterGridView#tiles grid tile} is focused (e.g. by navigating with arrow keys).
|
@@ -78,11 +80,11 @@ export type CharacterGridViewTileHoverEvent = {
|
|
78
80
|
* @eventName ~CharacterGridView#tileFocus
|
79
81
|
* @param data Additional information about the event.
|
80
82
|
*/
|
81
|
-
export type
|
83
|
+
export type SpecialCharactersGridViewTileFocusEvent = {
|
82
84
|
name: 'tileFocus';
|
83
|
-
args: [data:
|
85
|
+
args: [data: SpecialCharactersGridViewEventData];
|
84
86
|
};
|
85
|
-
export interface
|
87
|
+
export interface SpecialCharactersGridViewEventData {
|
86
88
|
/**
|
87
89
|
* The name of the tile that caused the event (e.g. "greek small letter epsilon").
|
88
90
|
*/
|
@@ -11,8 +11,10 @@ import '../../theme/charactergrid.css';
|
|
11
11
|
/**
|
12
12
|
* A grid of character tiles. It allows browsing special characters and selecting the character to
|
13
13
|
* be inserted into the content.
|
14
|
+
*
|
15
|
+
* @internal
|
14
16
|
*/
|
15
|
-
export
|
17
|
+
export class CharacterGridView extends View {
|
16
18
|
/**
|
17
19
|
* A collection of the child tile views. Each tile represents a particular character.
|
18
20
|
*/
|
@@ -11,8 +11,10 @@ import '../../theme/characterinfo.css';
|
|
11
11
|
/**
|
12
12
|
* The view displaying detailed information about a special character glyph, e.g. upon
|
13
13
|
* hovering it with a mouse.
|
14
|
+
*
|
15
|
+
* @internal
|
14
16
|
*/
|
15
|
-
export
|
17
|
+
export declare class CharacterInfoView extends View<HTMLDivElement> {
|
16
18
|
/**
|
17
19
|
* The character whose information is displayed by the view. For instance, "∑" or "¿".
|
18
20
|
*
|
@@ -7,8 +7,10 @@ import '../../theme/characterinfo.css';
|
|
7
7
|
/**
|
8
8
|
* The view displaying detailed information about a special character glyph, e.g. upon
|
9
9
|
* hovering it with a mouse.
|
10
|
+
*
|
11
|
+
* @internal
|
10
12
|
*/
|
11
|
-
export
|
13
|
+
export class CharacterInfoView extends View {
|
12
14
|
constructor(locale) {
|
13
15
|
super(locale);
|
14
16
|
const bind = this.bindTemplate;
|
@@ -10,8 +10,10 @@ import { View } from 'ckeditor5/src/ui.js';
|
|
10
10
|
/**
|
11
11
|
* A class representing the navigation part of the special characters UI. It is responsible
|
12
12
|
* for describing the feature and allowing the user to select a particular character group.
|
13
|
+
*
|
14
|
+
* @internal
|
13
15
|
*/
|
14
|
-
export
|
16
|
+
export declare class SpecialCharactersCategoriesView extends View {
|
15
17
|
/**
|
16
18
|
* Currently selected special characters group's name.
|
17
19
|
*/
|
@@ -6,12 +6,14 @@
|
|
6
6
|
* @module special-characters/ui/specialcharacterscategoriesview
|
7
7
|
*/
|
8
8
|
import { Collection } from 'ckeditor5/src/utils.js';
|
9
|
-
import { addListToDropdown, createLabeledDropdown, LabeledFieldView, View,
|
9
|
+
import { addListToDropdown, createLabeledDropdown, LabeledFieldView, View, UIModel } from 'ckeditor5/src/ui.js';
|
10
10
|
/**
|
11
11
|
* A class representing the navigation part of the special characters UI. It is responsible
|
12
12
|
* for describing the feature and allowing the user to select a particular character group.
|
13
|
+
*
|
14
|
+
* @internal
|
13
15
|
*/
|
14
|
-
export
|
16
|
+
export class SpecialCharactersCategoriesView extends View {
|
15
17
|
_groupNames;
|
16
18
|
_dropdownView;
|
17
19
|
/**
|
@@ -57,7 +59,7 @@ export default class SpecialCharactersCategoriesView extends View {
|
|
57
59
|
for (const [name, label] of this._groupNames) {
|
58
60
|
const item = {
|
59
61
|
type: 'button',
|
60
|
-
model: new
|
62
|
+
model: new UIModel({
|
61
63
|
name,
|
62
64
|
label,
|
63
65
|
role: 'menuitemradio',
|
@@ -7,17 +7,19 @@
|
|
7
7
|
*/
|
8
8
|
import { View, FocusCycler, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
10
|
-
import type CharacterGridView from './charactergridview.js';
|
11
|
-
import type CharacterInfoView from './characterinfoview.js';
|
12
|
-
import type SpecialCharactersCategoriesView from './specialcharacterscategoriesview.js';
|
10
|
+
import { type CharacterGridView } from './charactergridview.js';
|
11
|
+
import { type CharacterInfoView } from './characterinfoview.js';
|
12
|
+
import { type SpecialCharactersCategoriesView } from './specialcharacterscategoriesview.js';
|
13
13
|
/**
|
14
14
|
* A view that glues pieces of the special characters dropdown panel together:
|
15
15
|
*
|
16
16
|
* * the navigation view (allows selecting the category),
|
17
17
|
* * the grid view (displays characters as a grid),
|
18
18
|
* * and the info view (displays detailed info about a specific character).
|
19
|
+
*
|
20
|
+
* @internal
|
19
21
|
*/
|
20
|
-
export
|
22
|
+
export declare class SpecialCharactersView extends View<HTMLDivElement> {
|
21
23
|
/**
|
22
24
|
* A collection of the focusable children of the view.
|
23
25
|
*/
|
@@ -13,8 +13,10 @@ import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
13
13
|
* * the navigation view (allows selecting the category),
|
14
14
|
* * the grid view (displays characters as a grid),
|
15
15
|
* * and the info view (displays detailed info about a specific character).
|
16
|
+
*
|
17
|
+
* @internal
|
16
18
|
*/
|
17
|
-
export
|
19
|
+
export class SpecialCharactersView extends View {
|
18
20
|
/**
|
19
21
|
* A collection of the focusable children of the view.
|
20
22
|
*/
|