@ckeditor/ckeditor5-language 48.2.0-alpha.7 → 48.3.0-alpha.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.
@@ -1,47 +1,47 @@
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
- import type { TextPartLanguageOption, TextPartLanguage, TextPartLanguageEditing, TextPartLanguageUI, TextPartLanguageCommand } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface LanguageConfig {
8
- /**
9
- * The available {@link module:language/textpartlanguage~TextPartLanguage}
10
- * options that allow setting the language of parts of the content.
11
- *
12
- * This configuration option is available only with the {@glink api/language text part language feature} enabled.
13
- *
14
- * Refer to the [WCAG 3.1.2 Language of Parts](https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html) specification
15
- * to learn more.
16
- *
17
- * To change the editor's UI language, refer to the {@glink getting-started/setup/ui-language Setting the UI language} guide.
18
- *
19
- * The default value is:
20
- *
21
- * ```ts
22
- * const config = [
23
- * { title: 'Arabic', languageCode: 'ar' },
24
- * { title: 'French', languageCode: 'fr' },
25
- * { title: 'Spanish', languageCode: 'es' }
26
- * ];
27
- * ```
28
- *
29
- * The `title` property will be used by the text part language dropdown to render available options.
30
- *
31
- * The `languageCode` property is used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
32
- *
33
- * You can also specify the optional `textDirection` property indicating the reading direction of the language.
34
- * Correct values are `ltr` and `rtl`. When the `textDirection` property is missing, the text part language feature will
35
- * specify the text direction by itself.
36
- */
37
- textPartLanguage?: Array<TextPartLanguageOption>;
38
- }
39
- interface PluginsMap {
40
- [TextPartLanguage.pluginName]: TextPartLanguage;
41
- [TextPartLanguageEditing.pluginName]: TextPartLanguageEditing;
42
- [TextPartLanguageUI.pluginName]: TextPartLanguageUI;
43
- }
44
- interface CommandsMap {
45
- textPartLanguage: TextPartLanguageCommand;
46
- }
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 { TextPartLanguageOption, TextPartLanguage, TextPartLanguageEditing, TextPartLanguageUI, TextPartLanguageCommand } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface LanguageConfig {
8
+ /**
9
+ * The available {@link module:language/textpartlanguage~TextPartLanguage}
10
+ * options that allow setting the language of parts of the content.
11
+ *
12
+ * This configuration option is available only with the {@glink api/language text part language feature} enabled.
13
+ *
14
+ * Refer to the [WCAG 3.1.2 Language of Parts](https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html) specification
15
+ * to learn more.
16
+ *
17
+ * To change the editor's UI language, refer to the {@glink getting-started/setup/ui-language Setting the UI language} guide.
18
+ *
19
+ * The default value is:
20
+ *
21
+ * ```ts
22
+ * const config = [
23
+ * { title: 'Arabic', languageCode: 'ar' },
24
+ * { title: 'French', languageCode: 'fr' },
25
+ * { title: 'Spanish', languageCode: 'es' }
26
+ * ];
27
+ * ```
28
+ *
29
+ * The `title` property will be used by the text part language dropdown to render available options.
30
+ *
31
+ * The `languageCode` property is used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
32
+ *
33
+ * You can also specify the optional `textDirection` property indicating the reading direction of the language.
34
+ * Correct values are `ltr` and `rtl`. When the `textDirection` property is missing, the text part language feature will
35
+ * specify the text direction by itself.
36
+ */
37
+ textPartLanguage?: Array<TextPartLanguageOption>;
38
+ }
39
+ interface PluginsMap {
40
+ [TextPartLanguage.pluginName]: TextPartLanguage;
41
+ [TextPartLanguageEditing.pluginName]: TextPartLanguageEditing;
42
+ [TextPartLanguageUI.pluginName]: TextPartLanguageUI;
43
+ }
44
+ interface CommandsMap {
45
+ textPartLanguage: TextPartLanguageCommand;
46
+ }
47
47
  }
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
package/dist/index.css CHANGED
@@ -3,5 +3,3 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
-
7
- /*# sourceMappingURL=index.css.map */
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
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 language
7
- */
8
- export { TextPartLanguage } from './textpartlanguage.js';
9
- export { TextPartLanguageEditing } from './textpartlanguageediting.js';
10
- export { TextPartLanguageUI } from './textpartlanguageui.js';
11
- export { TextPartLanguageCommand } from './textpartlanguagecommand.js';
12
- export type { TextPartLanguageOption } from './textpartlanguageconfig.js';
13
- export { stringifyLanguageAttribute as _stringifyLanguageAttribute, parseLanguageAttribute as _parseLanguageAttribute } from './utils.js';
14
- import './augmentation.js';
6
+ * @module language
7
+ */
8
+ export { TextPartLanguage } from "./textpartlanguage.js";
9
+ export { TextPartLanguageEditing } from "./textpartlanguageediting.js";
10
+ export { TextPartLanguageUI } from "./textpartlanguageui.js";
11
+ export { TextPartLanguageCommand } from "./textpartlanguagecommand.js";
12
+ export type { TextPartLanguageOption } from "./textpartlanguageconfig.js";
13
+ export { stringifyLanguageAttribute as _stringifyLanguageAttribute, parseLanguageAttribute as _parseLanguageAttribute } from "./utils.js";
14
+ import "./augmentation.js";