@ckeditor/ckeditor5-special-characters 41.3.0-alpha.4 → 41.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/package.json +2 -3
  2. package/dist/content-index.css +0 -4
  3. package/dist/editor-index.css +0 -14
  4. package/dist/index.css +0 -28
  5. package/dist/index.css.map +0 -1
  6. package/dist/translations/ar.d.ts +0 -8
  7. package/dist/translations/ar.js +0 -5
  8. package/dist/translations/az.d.ts +0 -8
  9. package/dist/translations/az.js +0 -5
  10. package/dist/translations/bg.d.ts +0 -8
  11. package/dist/translations/bg.js +0 -5
  12. package/dist/translations/bn.d.ts +0 -8
  13. package/dist/translations/bn.js +0 -5
  14. package/dist/translations/ca.d.ts +0 -8
  15. package/dist/translations/ca.js +0 -5
  16. package/dist/translations/cs.d.ts +0 -8
  17. package/dist/translations/cs.js +0 -5
  18. package/dist/translations/da.d.ts +0 -8
  19. package/dist/translations/da.js +0 -5
  20. package/dist/translations/de.d.ts +0 -8
  21. package/dist/translations/de.js +0 -5
  22. package/dist/translations/el.d.ts +0 -8
  23. package/dist/translations/el.js +0 -5
  24. package/dist/translations/en-au.d.ts +0 -8
  25. package/dist/translations/en-au.js +0 -5
  26. package/dist/translations/en.d.ts +0 -8
  27. package/dist/translations/en.js +0 -5
  28. package/dist/translations/es.d.ts +0 -8
  29. package/dist/translations/es.js +0 -5
  30. package/dist/translations/et.d.ts +0 -8
  31. package/dist/translations/et.js +0 -5
  32. package/dist/translations/fa.d.ts +0 -8
  33. package/dist/translations/fa.js +0 -5
  34. package/dist/translations/fi.d.ts +0 -8
  35. package/dist/translations/fi.js +0 -5
  36. package/dist/translations/fr.d.ts +0 -8
  37. package/dist/translations/fr.js +0 -5
  38. package/dist/translations/gl.d.ts +0 -8
  39. package/dist/translations/gl.js +0 -5
  40. package/dist/translations/he.d.ts +0 -8
  41. package/dist/translations/he.js +0 -5
  42. package/dist/translations/hi.d.ts +0 -8
  43. package/dist/translations/hi.js +0 -5
  44. package/dist/translations/hr.d.ts +0 -8
  45. package/dist/translations/hr.js +0 -5
  46. package/dist/translations/hu.d.ts +0 -8
  47. package/dist/translations/hu.js +0 -5
  48. package/dist/translations/id.d.ts +0 -8
  49. package/dist/translations/id.js +0 -5
  50. package/dist/translations/it.d.ts +0 -8
  51. package/dist/translations/it.js +0 -5
  52. package/dist/translations/ja.d.ts +0 -8
  53. package/dist/translations/ja.js +0 -5
  54. package/dist/translations/ko.d.ts +0 -8
  55. package/dist/translations/ko.js +0 -5
  56. package/dist/translations/lt.d.ts +0 -8
  57. package/dist/translations/lt.js +0 -5
  58. package/dist/translations/lv.d.ts +0 -8
  59. package/dist/translations/lv.js +0 -5
  60. package/dist/translations/ms.d.ts +0 -8
  61. package/dist/translations/ms.js +0 -5
  62. package/dist/translations/nl.d.ts +0 -8
  63. package/dist/translations/nl.js +0 -5
  64. package/dist/translations/no.d.ts +0 -8
  65. package/dist/translations/no.js +0 -5
  66. package/dist/translations/pl.d.ts +0 -8
  67. package/dist/translations/pl.js +0 -5
  68. package/dist/translations/pt-br.d.ts +0 -8
  69. package/dist/translations/pt-br.js +0 -5
  70. package/dist/translations/pt.d.ts +0 -8
  71. package/dist/translations/pt.js +0 -5
  72. package/dist/translations/ro.d.ts +0 -8
  73. package/dist/translations/ro.js +0 -5
  74. package/dist/translations/ru.d.ts +0 -8
  75. package/dist/translations/ru.js +0 -5
  76. package/dist/translations/sk.d.ts +0 -8
  77. package/dist/translations/sk.js +0 -5
  78. package/dist/translations/sq.d.ts +0 -8
  79. package/dist/translations/sq.js +0 -5
  80. package/dist/translations/sr-latn.d.ts +0 -8
  81. package/dist/translations/sr-latn.js +0 -5
  82. package/dist/translations/sr.d.ts +0 -8
  83. package/dist/translations/sr.js +0 -5
  84. package/dist/translations/sv.d.ts +0 -8
  85. package/dist/translations/sv.js +0 -5
  86. package/dist/translations/th.d.ts +0 -8
  87. package/dist/translations/th.js +0 -5
  88. package/dist/translations/tk.d.ts +0 -8
  89. package/dist/translations/tk.js +0 -5
  90. package/dist/translations/tr.d.ts +0 -8
  91. package/dist/translations/tr.js +0 -5
  92. package/dist/translations/uk.d.ts +0 -8
  93. package/dist/translations/uk.js +0 -5
  94. package/dist/translations/ur.d.ts +0 -8
  95. package/dist/translations/ur.js +0 -5
  96. package/dist/translations/uz.d.ts +0 -8
  97. package/dist/translations/uz.js +0 -5
  98. package/dist/translations/vi.d.ts +0 -8
  99. package/dist/translations/vi.js +0 -5
  100. package/dist/translations/zh-cn.d.ts +0 -8
  101. package/dist/translations/zh-cn.js +0 -5
  102. package/dist/translations/zh.d.ts +0 -8
  103. package/dist/translations/zh.js +0 -5
  104. package/dist/types/augmentation.d.ts +0 -28
  105. package/dist/types/index.d.ts +0 -20
  106. package/dist/types/specialcharacters.d.ts +0 -100
  107. package/dist/types/specialcharactersarrows.d.ts +0 -34
  108. package/dist/types/specialcharactersconfig.d.ts +0 -55
  109. package/dist/types/specialcharacterscurrency.d.ts +0 -34
  110. package/dist/types/specialcharactersessentials.d.ts +0 -39
  111. package/dist/types/specialcharacterslatin.d.ts +0 -34
  112. package/dist/types/specialcharactersmathematical.d.ts +0 -34
  113. package/dist/types/specialcharacterstext.d.ts +0 -34
  114. package/dist/types/ui/charactergridview.d.ts +0 -98
  115. package/dist/types/ui/characterinfoview.d.ts +0 -39
  116. package/dist/types/ui/specialcharactersnavigationview.d.ts +0 -63
  117. package/dist/types/ui/specialcharactersview.d.ts +0 -69
@@ -1,34 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/specialcharacterscurrency
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * A plugin that provides special characters for the "Currency" category.
15
- *
16
- * ```ts
17
- * ClassicEditor
18
- * .create( {
19
- * plugins: [ ..., SpecialCharacters, SpecialCharactersCurrency ],
20
- * } )
21
- * .then( ... )
22
- * .catch( ... );
23
- * ```
24
- */
25
- export default class SpecialCharactersCurrency extends Plugin {
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SpecialCharactersCurrency";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/specialcharactersessentials
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- import SpecialCharactersCurrency from './specialcharacterscurrency.js';
14
- import SpecialCharactersMathematical from './specialcharactersmathematical.js';
15
- import SpecialCharactersArrows from './specialcharactersarrows.js';
16
- import SpecialCharactersLatin from './specialcharacterslatin.js';
17
- import SpecialCharactersText from './specialcharacterstext.js';
18
- /**
19
- * A plugin combining a basic set of characters for the special characters plugin.
20
- *
21
- * ```ts
22
- * ClassicEditor
23
- * .create( {
24
- * plugins: [ ..., SpecialCharacters, SpecialCharactersEssentials ],
25
- * } )
26
- * .then( ... )
27
- * .catch( ... );
28
- * ```
29
- */
30
- export default class SpecialCharactersEssentials extends Plugin {
31
- /**
32
- * @inheritDoc
33
- */
34
- static get pluginName(): "SpecialCharactersEssentials";
35
- /**
36
- * @inheritDoc
37
- */
38
- static get requires(): readonly [typeof SpecialCharactersCurrency, typeof SpecialCharactersText, typeof SpecialCharactersMathematical, typeof SpecialCharactersArrows, typeof SpecialCharactersLatin];
39
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/specialcharacterslatin
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * A plugin that provides special characters for the "Latin" category.
15
- *
16
- * ```ts
17
- * ClassicEditor
18
- * .create( {
19
- * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
20
- * } )
21
- * .then( ... )
22
- * .catch( ... );
23
- * ```
24
- */
25
- export default class SpecialCharactersLatin extends Plugin {
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SpecialCharactersLatin";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/specialcharactersmathematical
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * A plugin that provides special characters for the "Mathematical" category.
15
- *
16
- * ```ts
17
- * ClassicEditor
18
- * .create( {
19
- * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
20
- * } )
21
- * .then( ... )
22
- * .catch( ... );
23
- * ```
24
- */
25
- export default class SpecialCharactersMathematical extends Plugin {
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SpecialCharactersMathematical";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/specialcharacterstext
11
- */
12
- import { Plugin } from 'ckeditor5/src/core.js';
13
- /**
14
- * A plugin that provides special characters for the "Text" category.
15
- *
16
- * ```ts
17
- * ClassicEditor
18
- * .create( {
19
- * plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
20
- * } )
21
- * .then( ... )
22
- * .catch( ... );
23
- * ```
24
- */
25
- export default class SpecialCharactersText extends Plugin {
26
- /**
27
- * @inheritDoc
28
- */
29
- static get pluginName(): "SpecialCharactersText";
30
- /**
31
- * @inheritDoc
32
- */
33
- init(): void;
34
- }
@@ -1,98 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/ui/charactergridview
11
- */
12
- import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui.js';
13
- import { KeystrokeHandler, FocusTracker, type Locale } from 'ckeditor5/src/utils.js';
14
- import '../../theme/charactergrid.css';
15
- /**
16
- * A grid of character tiles. It allows browsing special characters and selecting the character to
17
- * be inserted into the content.
18
- */
19
- export default class CharacterGridView extends View<HTMLDivElement> {
20
- /**
21
- * A collection of the child tile views. Each tile represents a particular character.
22
- */
23
- readonly tiles: ViewCollection<ButtonView>;
24
- /**
25
- * Tracks information about the DOM focus in the grid.
26
- */
27
- readonly focusTracker: FocusTracker;
28
- /**
29
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
30
- */
31
- readonly keystrokes: KeystrokeHandler;
32
- /**
33
- * Creates an instance of a character grid containing tiles representing special characters.
34
- *
35
- * @param locale The localization services instance.
36
- */
37
- constructor(locale: Locale);
38
- /**
39
- * Creates a new tile for the grid.
40
- *
41
- * @param character A human-readable character displayed as the label (e.g. "ε").
42
- * @param name The name of the character (e.g. "greek small letter epsilon").
43
- */
44
- createTile(character: string, name: string): ButtonView;
45
- /**
46
- * @inheritDoc
47
- */
48
- render(): void;
49
- /**
50
- * @inheritDoc
51
- */
52
- destroy(): void;
53
- /**
54
- * Focuses the first focusable in {@link ~CharacterGridView#tiles}.
55
- */
56
- focus(): void;
57
- }
58
- /**
59
- * Fired when any of {@link ~CharacterGridView#tiles grid tiles} is clicked.
60
- *
61
- * @eventName ~CharacterGridView#execute
62
- * @param data Additional information about the event.
63
- */
64
- export type CharacterGridViewExecuteEvent = {
65
- name: 'execute';
66
- args: [data: CharacterGridViewEventData];
67
- };
68
- /**
69
- * Fired when a mouse or another pointing device caused the cursor to move onto any {@link ~CharacterGridView#tiles grid tile}
70
- * (similar to the native `mouseover` DOM event).
71
- *
72
- * @eventName ~CharacterGridView#tileHover
73
- * @param data Additional information about the event.
74
- */
75
- export type CharacterGridViewTileHoverEvent = {
76
- name: 'tileHover';
77
- args: [data: CharacterGridViewEventData];
78
- };
79
- /**
80
- * Fired when {@link ~CharacterGridView#tiles grid tile} is focused (e.g. by navigating with arrow keys).
81
- *
82
- * @eventName ~CharacterGridView#tileFocus
83
- * @param data Additional information about the event.
84
- */
85
- export type CharacterGridViewTileFocusEvent = {
86
- name: 'tileFocus';
87
- args: [data: CharacterGridViewEventData];
88
- };
89
- export interface CharacterGridViewEventData {
90
- /**
91
- * The name of the tile that caused the event (e.g. "greek small letter epsilon").
92
- */
93
- name: string;
94
- /**
95
- * A human-readable character displayed as the label (e.g. "ε").
96
- */
97
- character: string;
98
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/ui/characterinfoview
11
- */
12
- import type { Locale } from 'ckeditor5/src/utils.js';
13
- import { View } from 'ckeditor5/src/ui.js';
14
- import '../../theme/characterinfo.css';
15
- /**
16
- * The view displaying detailed information about a special character glyph, e.g. upon
17
- * hovering it with a mouse.
18
- */
19
- export default class CharacterInfoView extends View<HTMLDivElement> {
20
- /**
21
- * The character whose information is displayed by the view. For instance, "∑" or "¿".
22
- *
23
- * @observable
24
- */
25
- character: string | null;
26
- /**
27
- * The name of the {@link #character}. For instance, "N-ary summation" or "Inverted question mark".
28
- *
29
- * @observable
30
- */
31
- name: string | null;
32
- /**
33
- * The "Unicode string" of the {@link #character}. For instance "U+0061".
34
- *
35
- * @observable
36
- */
37
- readonly code: string;
38
- constructor(locale: Locale);
39
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/ui/specialcharactersnavigationview
11
- */
12
- import { type Locale } from 'ckeditor5/src/utils.js';
13
- import { FormHeaderView, type DropdownView } from 'ckeditor5/src/ui.js';
14
- /**
15
- * A class representing the navigation part of the special characters UI. It is responsible
16
- * for describing the feature and allowing the user to select a particular character group.
17
- */
18
- export default class SpecialCharactersNavigationView extends FormHeaderView {
19
- /**
20
- * A dropdown that allows selecting a group of special characters to be displayed.
21
- */
22
- groupDropdownView: GroupDropdownView;
23
- /**
24
- * Creates an instance of the {@link module:special-characters/ui/specialcharactersnavigationview~SpecialCharactersNavigationView}
25
- * class.
26
- *
27
- * @param locale The localization services instance.
28
- * @param groupNames The names of the character groups and their displayed labels.
29
- */
30
- constructor(locale: Locale, groupNames: GroupNames);
31
- /**
32
- * Returns the name of the character group currently selected in the {@link #groupDropdownView}.
33
- */
34
- get currentGroupName(): string;
35
- /**
36
- * Focuses the character categories dropdown.
37
- */
38
- focus(): void;
39
- /**
40
- * Returns a dropdown that allows selecting character groups.
41
- *
42
- * @param groupNames The names of the character groups and their displayed labels.
43
- */
44
- private _createGroupDropdown;
45
- /**
46
- * Returns list item definitions to be used in the character group dropdown
47
- * representing specific character groups.
48
- *
49
- * @param dropdown Dropdown view element
50
- * @param groupNames The names of the character groups and their displayed labels.
51
- */
52
- private _getCharacterGroupListItemDefinitions;
53
- }
54
- /**
55
- * The names of the character groups and their displayed labels.
56
- */
57
- export type GroupNames = Map<string, string>;
58
- /**
59
- * `DropdownView` with additional field for the name of the currectly selected character group.
60
- */
61
- export type GroupDropdownView = DropdownView & {
62
- value: string;
63
- };
@@ -1,69 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, 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
- /**
6
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
- */
9
- /**
10
- * @module special-characters/ui/specialcharactersview
11
- */
12
- import { View, FocusCycler, type ViewCollection, type FocusableView } from 'ckeditor5/src/ui.js';
13
- import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
14
- import type CharacterGridView from './charactergridview.js';
15
- import type CharacterInfoView from './characterinfoview.js';
16
- import type SpecialCharactersNavigationView from './specialcharactersnavigationview.js';
17
- /**
18
- * A view that glues pieces of the special characters dropdown panel together:
19
- *
20
- * * the navigation view (allows selecting the category),
21
- * * the grid view (displays characters as a grid),
22
- * * and the info view (displays detailed info about a specific character).
23
- */
24
- export default class SpecialCharactersView extends View<HTMLDivElement> {
25
- /**
26
- * A collection of the focusable children of the view.
27
- */
28
- readonly items: ViewCollection<FocusableView>;
29
- /**
30
- * Tracks information about the DOM focus in the view.
31
- */
32
- readonly focusTracker: FocusTracker;
33
- /**
34
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
35
- */
36
- readonly keystrokes: KeystrokeHandler;
37
- /**
38
- * Helps cycling over focusable {@link #items} in the view.
39
- */
40
- protected readonly _focusCycler: FocusCycler;
41
- /**
42
- * An instance of the `SpecialCharactersNavigationView`.
43
- */
44
- navigationView: SpecialCharactersNavigationView;
45
- /**
46
- * An instance of the `CharacterGridView`.
47
- */
48
- gridView: CharacterGridView;
49
- /**
50
- * An instance of the `CharacterInfoView`.
51
- */
52
- infoView: CharacterInfoView;
53
- /**
54
- * Creates an instance of the `SpecialCharactersView`.
55
- */
56
- constructor(locale: Locale, navigationView: SpecialCharactersNavigationView, gridView: CharacterGridView, infoView: CharacterInfoView);
57
- /**
58
- * @inheritDoc
59
- */
60
- render(): void;
61
- /**
62
- * @inheritDoc
63
- */
64
- destroy(): void;
65
- /**
66
- * Focuses the first focusable in {@link #items}.
67
- */
68
- focus(): void;
69
- }