@ckeditor/ckeditor5-utils 48.2.0 → 48.3.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.
Files changed (82) hide show
  1. package/dist/abortabledebounce.d.ts +19 -13
  2. package/dist/areconnectedthroughproperties.d.ts +7 -7
  3. package/dist/ckeditorerror.d.ts +113 -113
  4. package/dist/collection.d.ts +419 -415
  5. package/dist/collectstylesheets.d.ts +9 -9
  6. package/dist/comparearrays.d.ts +25 -25
  7. package/dist/config.d.ts +159 -156
  8. package/dist/count.d.ts +14 -14
  9. package/dist/crc32.d.ts +19 -19
  10. package/dist/decodelicensekey.d.ts +7 -7
  11. package/dist/delay.d.ts +13 -13
  12. package/dist/diff.d.ts +32 -27
  13. package/dist/difftochanges.d.ts +47 -47
  14. package/dist/dom/createelement.d.ts +43 -43
  15. package/dist/dom/emittermixin.d.ts +144 -135
  16. package/dist/dom/findclosestscrollableancestor.d.ts +8 -8
  17. package/dist/dom/getancestors.d.ts +13 -13
  18. package/dist/dom/getborderwidths.d.ts +16 -16
  19. package/dist/dom/getcommonancestor.d.ts +9 -9
  20. package/dist/dom/getdatafromelement.d.ts +10 -10
  21. package/dist/dom/getpositionedancestor.d.ts +7 -7
  22. package/dist/dom/getrangefrommouseevent.d.ts +12 -12
  23. package/dist/dom/getvisualviewportoffset.d.ts +7 -7
  24. package/dist/dom/global.d.ts +24 -24
  25. package/dist/dom/indexof.d.ts +10 -10
  26. package/dist/dom/insertat.d.ts +11 -11
  27. package/dist/dom/iscomment.d.ts +7 -7
  28. package/dist/dom/isnode.d.ts +7 -7
  29. package/dist/dom/isrange.d.ts +7 -7
  30. package/dist/dom/istext.d.ts +7 -7
  31. package/dist/dom/isvalidattributename.d.ts +7 -7
  32. package/dist/dom/isvisible.d.ts +12 -12
  33. package/dist/dom/iswindow.d.ts +7 -7
  34. package/dist/dom/position.d.ts +200 -200
  35. package/dist/dom/rect.d.ts +194 -194
  36. package/dist/dom/remove.d.ts +9 -9
  37. package/dist/dom/resizeobserver.d.ts +70 -70
  38. package/dist/dom/scroll.d.ts +75 -72
  39. package/dist/dom/setdatainelement.d.ts +10 -10
  40. package/dist/dom/tounit.d.ts +16 -16
  41. package/dist/elementreplacer.d.ts +26 -26
  42. package/dist/emittermixin.d.ts +290 -280
  43. package/dist/env.d.ts +124 -124
  44. package/dist/eventinfo.d.ts +58 -55
  45. package/dist/fastdiff.d.ts +112 -109
  46. package/dist/first.d.ts +7 -7
  47. package/dist/focustracker.d.ts +133 -131
  48. package/dist/formathtml.d.ts +15 -15
  49. package/dist/index-content.css +1 -0
  50. package/dist/index-editor.css +1 -0
  51. package/dist/index.css +0 -2
  52. package/dist/index.d.ts +78 -77
  53. package/dist/index.js +5695 -6360
  54. package/dist/index.js.map +1 -1
  55. package/dist/inserttopriorityarray.d.ts +23 -23
  56. package/dist/isfeatureblockedbylicensekey.d.ts +10 -10
  57. package/dist/isiterable.d.ts +10 -10
  58. package/dist/keyboard.d.ts +107 -109
  59. package/dist/keystrokehandler.d.ts +90 -90
  60. package/dist/language.d.ts +12 -12
  61. package/dist/legacyerrors.d.ts +0 -4
  62. package/dist/locale.d.ts +122 -122
  63. package/dist/mapsequal.d.ts +11 -11
  64. package/dist/mix.d.ts +54 -53
  65. package/dist/nth.d.ts +12 -12
  66. package/dist/objecttomap.d.ts +18 -18
  67. package/dist/observablemixin.d.ts +621 -539
  68. package/dist/parsebase64encodedobject.d.ts +7 -7
  69. package/dist/parsedimensionwithunit.d.ts +40 -0
  70. package/dist/priorities.d.ts +24 -24
  71. package/dist/retry.d.ts +27 -27
  72. package/dist/splicearray.d.ts +22 -22
  73. package/dist/spy.d.ts +15 -15
  74. package/dist/toarray.d.ts +17 -17
  75. package/dist/tomap.d.ts +15 -15
  76. package/dist/translation-service.d.ts +157 -157
  77. package/dist/uid.d.ts +12 -12
  78. package/dist/unicode.d.ts +42 -42
  79. package/dist/version.d.ts +5 -5
  80. package/dist/wait.d.ts +11 -11
  81. package/package.json +2 -2
  82. package/dist/index.css.map +0 -1
@@ -1,174 +1,174 @@
1
1
  /**
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
- */
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
- * @module utils/translation-service
7
- */
8
- import type { Translations } from './locale.js';
9
- import { type ArrayOrItem } from './toarray.js';
6
+ * @module utils/translation-service
7
+ */
8
+ import type { Translations } from "./locale.js";
9
+ import { type ArrayOrItem } from "./toarray.js";
10
10
  declare global {
11
- var CKEDITOR_TRANSLATIONS: Translations;
11
+ var CKEDITOR_TRANSLATIONS: Translations;
12
12
  }
13
13
  /**
14
- * Adds translations to existing ones or overrides the existing translations. These translations will later
15
- * be available for the {@link module:utils/locale~Locale#t `t()`} function.
16
- *
17
- * The `translations` is an object which consists of `messageId: translation` pairs. Note that the message ID can be
18
- * either constructed from the message string or from the message ID if it was passed
19
- * (this happens rarely and mostly for short messages or messages with placeholders).
20
- * Since the editor displays only the message string, the message ID can be found either in the source code or in the
21
- * built translations for another language.
22
- *
23
- * ```ts
24
- * add( 'pl', {
25
- * 'Cancel': 'Anuluj',
26
- * 'IMAGE': 'obraz', // Note that the `IMAGE` comes from the message ID, while the string can be `image`.
27
- * } );
28
- * ```
29
- *
30
- * If the message is supposed to support various plural forms, make sure to provide an array with the singular form and all plural forms:
31
- *
32
- * ```ts
33
- * add( 'pl', {
34
- * 'Add space': [ 'Dodaj spację', 'Dodaj %0 spacje', 'Dodaj %0 spacji' ]
35
- * } );
36
- * ```
37
- *
38
- * You should also specify the third argument (the `getPluralForm()` function) that will be used to determine the plural form if no
39
- * language file was loaded for that language. All language files coming from CKEditor 5 sources will have this option set, so
40
- * these plural form rules will be reused by other translations added to the registered languages. The `getPluralForm()` function
41
- * can return either a Boolean or a number.
42
- *
43
- * ```ts
44
- * add( 'en', {
45
- * // ... Translations.
46
- * }, n => n !== 1 );
47
- * add( 'pl', {
48
- * // ... Translations.
49
- * }, n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );
50
- * ```
51
- *
52
- * All translations extend the global `window.CKEDITOR_TRANSLATIONS` object. An example of this object can be found below:
53
- *
54
- * ```ts
55
- * {
56
- * pl: {
57
- * dictionary: {
58
- * 'Cancel': 'Anuluj',
59
- * 'Add space': [ 'Dodaj spację', 'Dodaj %0 spacje', 'Dodaj %0 spacji' ]
60
- * },
61
- * // A function that returns the plural form index.
62
- * getPluralForm: n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );
63
- * }
64
- * // Other languages.
65
- * }
66
- * ```
67
- *
68
- * If you cannot import { this function } from this module (e.g. because you use a CKEditor 5 build), you can
69
- * still add translations by extending the global `window.CKEDITOR_TRANSLATIONS` object by using a function like
70
- * the one below:
71
- *
72
- * ```ts
73
- * function addTranslations( language, translations, getPluralForm ) {
74
- * if ( !global.window.CKEDITOR_TRANSLATIONS ) {
75
- * global.window.CKEDITOR_TRANSLATIONS = {};
76
- * }
14
+ * Adds translations to existing ones or overrides the existing translations. These translations will later
15
+ * be available for the {@link module:utils/locale~Locale#t `t()`} function.
16
+ *
17
+ * The `translations` is an object which consists of `messageId: translation` pairs. Note that the message ID can be
18
+ * either constructed from the message string or from the message ID if it was passed
19
+ * (this happens rarely and mostly for short messages or messages with placeholders).
20
+ * Since the editor displays only the message string, the message ID can be found either in the source code or in the
21
+ * built translations for another language.
22
+ *
23
+ * ```ts
24
+ * add( 'pl', {
25
+ * 'Cancel': 'Anuluj',
26
+ * 'IMAGE': 'obraz', // Note that the `IMAGE` comes from the message ID, while the string can be `image`.
27
+ * } );
28
+ * ```
29
+ *
30
+ * If the message is supposed to support various plural forms, make sure to provide an array with the singular form and all plural forms:
31
+ *
32
+ * ```ts
33
+ * add( 'pl', {
34
+ * 'Add space': [ 'Dodaj spację', 'Dodaj %0 spacje', 'Dodaj %0 spacji' ]
35
+ * } );
36
+ * ```
37
+ *
38
+ * You should also specify the third argument (the `getPluralForm()` function) that will be used to determine the plural form if no
39
+ * language file was loaded for that language. All language files coming from CKEditor 5 sources will have this option set, so
40
+ * these plural form rules will be reused by other translations added to the registered languages. The `getPluralForm()` function
41
+ * can return either a Boolean or a number.
42
+ *
43
+ * ```ts
44
+ * add( 'en', {
45
+ * // ... Translations.
46
+ * }, n => n !== 1 );
47
+ * add( 'pl', {
48
+ * // ... Translations.
49
+ * }, n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );
50
+ * ```
51
+ *
52
+ * All translations extend the global `window.CKEDITOR_TRANSLATIONS` object. An example of this object can be found below:
53
+ *
54
+ * ```ts
55
+ * {
56
+ * pl: {
57
+ * dictionary: {
58
+ * 'Cancel': 'Anuluj',
59
+ * 'Add space': [ 'Dodaj spację', 'Dodaj %0 spacje', 'Dodaj %0 spacji' ]
60
+ * },
61
+ * // A function that returns the plural form index.
62
+ * getPluralForm: n => n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 10 || n % 100 >= 20 ) ? 1 : 2 );
63
+ * }
64
+ * // Other languages.
65
+ * }
66
+ * ```
67
+ *
68
+ * If you cannot import { this function } from this module (e.g. because you use a CKEditor 5 build), you can
69
+ * still add translations by extending the global `window.CKEDITOR_TRANSLATIONS` object by using a function like
70
+ * the one below:
71
+ *
72
+ * ```ts
73
+ * function addTranslations( language, translations, getPluralForm ) {
74
+ * if ( !global.window.CKEDITOR_TRANSLATIONS ) {
75
+ * global.window.CKEDITOR_TRANSLATIONS = {};
76
+ * }
77
77
 
78
- * if ( !global.window.CKEDITOR_TRANSLATIONS[ language ] ) {
79
- * global.window.CKEDITOR_TRANSLATIONS[ language ] = {};
80
- * }
81
- *
82
- * const languageTranslations = global.window.CKEDITOR_TRANSLATIONS[ language ];
83
- *
84
- * languageTranslations.dictionary = languageTranslations.dictionary || {};
85
- * languageTranslations.getPluralForm = getPluralForm || languageTranslations.getPluralForm;
86
- *
87
- * // Extend the dictionary for the given language.
88
- * Object.assign( languageTranslations.dictionary, translations );
89
- * }
90
- * ```
91
- *
92
- * @param language Target language.
93
- * @param translations An object with translations which will be added to the dictionary.
94
- * For each message ID the value should be either a translation or an array of translations if the message
95
- * should support plural forms.
96
- * @param getPluralForm A function that returns the plural form index (a number).
97
- */
78
+ * if ( !global.window.CKEDITOR_TRANSLATIONS[ language ] ) {
79
+ * global.window.CKEDITOR_TRANSLATIONS[ language ] = {};
80
+ * }
81
+ *
82
+ * const languageTranslations = global.window.CKEDITOR_TRANSLATIONS[ language ];
83
+ *
84
+ * languageTranslations.dictionary = languageTranslations.dictionary || {};
85
+ * languageTranslations.getPluralForm = getPluralForm || languageTranslations.getPluralForm;
86
+ *
87
+ * // Extend the dictionary for the given language.
88
+ * Object.assign( languageTranslations.dictionary, translations );
89
+ * }
90
+ * ```
91
+ *
92
+ * @param language Target language.
93
+ * @param translations An object with translations which will be added to the dictionary.
94
+ * For each message ID the value should be either a translation or an array of translations if the message
95
+ * should support plural forms.
96
+ * @param getPluralForm A function that returns the plural form index (a number).
97
+ */
98
98
  export declare function add(language: string, translations: {
99
- readonly [messageId: string]: string | ReadonlyArray<string>;
99
+ readonly [messageId: string]: string | ReadonlyArray<string>;
100
100
  }, getPluralForm?: (n: number) => number): void;
101
101
  /**
102
- * **Note:** This method is internal, use {@link module:utils/locale~Locale#t the `t()` function} instead to translate
103
- * the editor UI parts.
104
- *
105
- * This function is responsible for translating messages to the specified language. It uses translations added perviously
106
- * by {@link module:utils/translation-service~add} (a translations dictionary and the `getPluralForm()` function
107
- * to provide accurate translations of plural forms).
108
- *
109
- * When no translation is defined in the dictionary or the dictionary does not exist, this function returns
110
- * the original message string or the message plural depending on the number of elements.
111
- *
112
- * ```ts
113
- * translate( 'pl', { string: 'Cancel' } ); // 'Cancel'
114
- * ```
115
- *
116
- * The third optional argument is the number of elements, based on which the single form or one of the plural forms
117
- * should be picked when the message is supposed to support various plural forms.
118
- *
119
- * ```ts
120
- * translate( 'en', { string: 'Add a space', plural: 'Add %0 spaces' }, 1 ); // 'Add a space'
121
- * translate( 'en', { string: 'Add a space', plural: 'Add %0 spaces' }, 3 ); // 'Add %0 spaces'
122
- * ```
123
- *
124
- * The message should provide an ID using the `id` property when the message strings are not unique and their
125
- * translations should be different.
126
- *
127
- * ```ts
128
- * translate( 'en', { string: 'image', id: 'ADD_IMAGE' } );
129
- * translate( 'en', { string: 'image', id: 'AN_IMAGE' } );
130
- * ```
131
- *
132
- * @internal
133
- * @param language Target language.
134
- * @param message A message that will be translated.
135
- * @param quantity The number of elements for which a plural form should be picked from the target language dictionary.
136
- * @param translations Translations passed in editor config, if not provided use the global `window.CKEDITOR_TRANSLATIONS`.
137
- * @returns Translated sentence.
138
- */
102
+ * **Note:** This method is internal, use {@link module:utils/locale~Locale#t the `t()` function} instead to translate
103
+ * the editor UI parts.
104
+ *
105
+ * This function is responsible for translating messages to the specified language. It uses translations added perviously
106
+ * by {@link module:utils/translation-service~add} (a translations dictionary and the `getPluralForm()` function
107
+ * to provide accurate translations of plural forms).
108
+ *
109
+ * When no translation is defined in the dictionary or the dictionary does not exist, this function returns
110
+ * the original message string or the message plural depending on the number of elements.
111
+ *
112
+ * ```ts
113
+ * translate( 'pl', { string: 'Cancel' } ); // 'Cancel'
114
+ * ```
115
+ *
116
+ * The third optional argument is the number of elements, based on which the single form or one of the plural forms
117
+ * should be picked when the message is supposed to support various plural forms.
118
+ *
119
+ * ```ts
120
+ * translate( 'en', { string: 'Add a space', plural: 'Add %0 spaces' }, 1 ); // 'Add a space'
121
+ * translate( 'en', { string: 'Add a space', plural: 'Add %0 spaces' }, 3 ); // 'Add %0 spaces'
122
+ * ```
123
+ *
124
+ * The message should provide an ID using the `id` property when the message strings are not unique and their
125
+ * translations should be different.
126
+ *
127
+ * ```ts
128
+ * translate( 'en', { string: 'image', id: 'ADD_IMAGE' } );
129
+ * translate( 'en', { string: 'image', id: 'AN_IMAGE' } );
130
+ * ```
131
+ *
132
+ * @internal
133
+ * @param language Target language.
134
+ * @param message A message that will be translated.
135
+ * @param quantity The number of elements for which a plural form should be picked from the target language dictionary.
136
+ * @param translations Translations passed in editor config, if not provided use the global `window.CKEDITOR_TRANSLATIONS`.
137
+ * @returns Translated sentence.
138
+ */
139
139
  export declare function _translate(language: string, message: Message, quantity?: number, translations?: Translations): string;
140
140
  /**
141
- * Clears dictionaries for test purposes.
142
- *
143
- * @internal
144
- */
141
+ * Clears dictionaries for test purposes.
142
+ *
143
+ * @internal
144
+ */
145
145
  export declare function _clear(): void;
146
146
  /**
147
- * If array then merge objects which are inside otherwise return given object.
148
- *
149
- * @internal
150
- * @param translations Translations passed in editor config.
151
- */
147
+ * If array then merge objects which are inside otherwise return given object.
148
+ *
149
+ * @internal
150
+ * @param translations Translations passed in editor config.
151
+ */
152
152
  export declare function _unifyTranslations(translations?: ArrayOrItem<Translations>): Translations | undefined;
153
153
  /**
154
- * The internationalization message interface. A message that implements this interface can be passed to the `t()` function
155
- * to be translated to the target UI language.
156
- */
154
+ * The internationalization message interface. A message that implements this interface can be passed to the `t()` function
155
+ * to be translated to the target UI language.
156
+ */
157
157
  export interface Message {
158
- /**
159
- * The message string to translate. Acts as a default translation if the translation for a given language
160
- * is not defined. When the message is supposed to support plural forms, the string should be the English singular form of the message.
161
- */
162
- readonly string: string;
163
- /**
164
- * The message ID. If passed, the message ID is taken from this property instead of the `message.string`.
165
- * This property is useful when various messages share the same message string, for example, the `editor` string in `in the editor`
166
- * and `my editor` sentences.
167
- */
168
- readonly id?: string;
169
- /**
170
- * The plural form of the message. This property should be skipped when a message is not supposed
171
- * to support plural forms. Otherwise it should always be set to a string with the English plural form of the message.
172
- */
173
- readonly plural?: string;
158
+ /**
159
+ * The message string to translate. Acts as a default translation if the translation for a given language
160
+ * is not defined. When the message is supposed to support plural forms, the string should be the English singular form of the message.
161
+ */
162
+ readonly string: string;
163
+ /**
164
+ * The message ID. If passed, the message ID is taken from this property instead of the `message.string`.
165
+ * This property is useful when various messages share the same message string, for example, the `editor` string in `in the editor`
166
+ * and `my editor` sentences.
167
+ */
168
+ readonly id?: string;
169
+ /**
170
+ * The plural form of the message. This property should be skipped when a message is not supposed
171
+ * to support plural forms. Otherwise it should always be set to a string with the English plural form of the message.
172
+ */
173
+ readonly plural?: string;
174
174
  }
package/dist/uid.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  /**
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
- */
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
- * Returns a unique id. The id starts with an "e" character and a randomly generated string of
7
- * 32 alphanumeric characters.
8
- *
9
- * **Note**: The characters the unique id is built from correspond to the hex number notation
10
- * (from "0" to "9", from "a" to "f"). In other words, each id corresponds to an "e" followed
11
- * by 16 8-bit numbers next to each other.
12
- *
13
- * @returns An unique id string.
14
- */
6
+ * Returns a unique id. The id starts with an "e" character and a randomly generated string of
7
+ * 32 alphanumeric characters.
8
+ *
9
+ * **Note**: The characters the unique id is built from correspond to the hex number notation
10
+ * (from "0" to "9", from "a" to "f"). In other words, each id corresponds to an "e" followed
11
+ * by 16 8-bit numbers next to each other.
12
+ *
13
+ * @returns An unique id string.
14
+ */
15
15
  export declare function uid(): string;
package/dist/unicode.d.ts CHANGED
@@ -1,54 +1,54 @@
1
1
  /**
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
- /**
6
- * Set of utils to handle unicode characters.
7
- *
8
- * @module utils/unicode
9
- */
10
- /**
11
- * Checks whether given `character` is a combining mark.
12
- *
13
- * @param character Character to check.
14
- */
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
+ /**
6
+ * Set of utils to handle unicode characters.
7
+ *
8
+ * @module utils/unicode
9
+ */
10
+ /**
11
+ * Checks whether given `character` is a combining mark.
12
+ *
13
+ * @param character Character to check.
14
+ */
15
15
  export declare function isCombiningMark(character: string): boolean;
16
16
  /**
17
- * Checks whether given `character` is a high half of surrogate pair.
18
- *
19
- * Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair
20
- * consist of high surrogate pair character followed by low surrogate pair character.
21
- *
22
- * @param character Character to check.
23
- */
17
+ * Checks whether given `character` is a high half of surrogate pair.
18
+ *
19
+ * Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair
20
+ * consist of high surrogate pair character followed by low surrogate pair character.
21
+ *
22
+ * @param character Character to check.
23
+ */
24
24
  export declare function isHighSurrogateHalf(character: string): boolean;
25
25
  /**
26
- * Checks whether given `character` is a low half of surrogate pair.
27
- *
28
- * Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair
29
- * consist of high surrogate pair character followed by low surrogate pair character.
30
- *
31
- * @param character Character to check.
32
- */
26
+ * Checks whether given `character` is a low half of surrogate pair.
27
+ *
28
+ * Using UTF-16 terminology, a surrogate pair denotes UTF-16 character using two UTF-8 characters. The surrogate pair
29
+ * consist of high surrogate pair character followed by low surrogate pair character.
30
+ *
31
+ * @param character Character to check.
32
+ */
33
33
  export declare function isLowSurrogateHalf(character: string): boolean;
34
34
  /**
35
- * Checks whether given offset in a string is inside a surrogate pair (between two surrogate halves).
36
- *
37
- * @param string String to check.
38
- * @param offset Offset to check.
39
- */
35
+ * Checks whether given offset in a string is inside a surrogate pair (between two surrogate halves).
36
+ *
37
+ * @param string String to check.
38
+ * @param offset Offset to check.
39
+ */
40
40
  export declare function isInsideSurrogatePair(string: string, offset: number): boolean;
41
41
  /**
42
- * Checks whether given offset in a string is between base character and combining mark or between two combining marks.
43
- *
44
- * @param string String to check.
45
- * @param offset Offset to check.
46
- */
42
+ * Checks whether given offset in a string is between base character and combining mark or between two combining marks.
43
+ *
44
+ * @param string String to check.
45
+ * @param offset Offset to check.
46
+ */
47
47
  export declare function isInsideCombinedSymbol(string: string, offset: number): boolean;
48
48
  /**
49
- * Checks whether given offset in a string is inside multi-character emoji sequence.
50
- *
51
- * @param string String to check.
52
- * @param offset Offset to check.
53
- */
49
+ * Checks whether given offset in a string is inside multi-character emoji sequence.
50
+ *
51
+ * @param string String to check.
52
+ * @param offset Offset to check.
53
+ */
54
54
  export declare function isInsideEmojiSequence(string: string, offset: number): boolean;
package/dist/version.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
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
- export declare const version = "48.2.0";
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
+ export declare const version = "48.3.0-alpha.1";
6
6
  export declare const releaseDate: Date;
7
7
  declare global {
8
- var CKEDITOR_VERSION: string;
8
+ var CKEDITOR_VERSION: string;
9
9
  }
package/dist/wait.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  /**
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
- */
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
- * @module utils/wait
7
- */
6
+ * @module utils/wait
7
+ */
8
8
  /**
9
- * Returns a promise that is resolved after the specified time.
10
- *
11
- * @param timeout The time in milliseconds to wait.
12
- * @param options.signal A signal to abort the waiting.
13
- */
9
+ * Returns a promise that is resolved after the specified time.
10
+ *
11
+ * @param timeout The time in milliseconds to wait.
12
+ * @param options.signal A signal to abort the waiting.
13
+ */
14
14
  export declare function wait(timeout: number, options?: {
15
- signal?: AbortSignal;
15
+ signal?: AbortSignal;
16
16
  }): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-utils",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.1",
4
4
  "description": "Miscellaneous utilities used by CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -25,7 +25,7 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-ui": "48.2.0",
28
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.1",
29
29
  "es-toolkit": "1.45.1"
30
30
  },
31
31
  "files": [
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}