@ckeditor/ckeditor5-language 48.2.0 → 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,32 +1,32 @@
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 { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
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 { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
6
6
  /**
7
- * The text part language editing.
8
- *
9
- * Introduces the `'textPartLanguage'` command and the `'language'` model element attribute.
10
- */
7
+ * The text part language editing.
8
+ *
9
+ * Introduces the `'textPartLanguage'` command and the `'language'` model element attribute.
10
+ */
11
11
  export declare class TextPartLanguageEditing extends Plugin {
12
- /**
13
- * @inheritDoc
14
- */
15
- static get pluginName(): "TextPartLanguageEditing";
16
- /**
17
- * @inheritDoc
18
- */
19
- static get isOfficialPlugin(): true;
20
- /**
21
- * @inheritDoc
22
- */
23
- constructor(editor: Editor);
24
- /**
25
- * @inheritDoc
26
- */
27
- init(): void;
28
- /**
29
- * @private
30
- */
31
- private _defineConverters;
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ static get pluginName(): "TextPartLanguageEditing";
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static override get isOfficialPlugin(): true;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ constructor(editor: Editor);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ init(): void;
28
+ /**
29
+ * @private
30
+ */
31
+ private _defineConverters;
32
32
  }
@@ -1,31 +1,31 @@
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/textpartlanguageui
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module language/textpartlanguageui
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The text part language UI plugin.
11
- *
12
- * It introduces the `'language'` dropdown.
13
- */
10
+ * The text part language UI plugin.
11
+ *
12
+ * It introduces the `'language'` dropdown.
13
+ */
14
14
  export declare class TextPartLanguageUI extends Plugin {
15
- /**
16
- * @inheritDoc
17
- */
18
- static get pluginName(): "TextPartLanguageUI";
19
- /**
20
- * @inheritDoc
21
- */
22
- static get isOfficialPlugin(): true;
23
- /**
24
- * @inheritDoc
25
- */
26
- init(): void;
27
- /**
28
- * Returns metadata for dropdown and menu items.
29
- */
30
- private _getItemMetadata;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName(): "TextPartLanguageUI";
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static override get isOfficialPlugin(): true;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init(): void;
27
+ /**
28
+ * Returns metadata for dropdown and menu items.
29
+ */
30
+ private _getItemMetadata;
31
31
  }
package/dist/utils.d.ts CHANGED
@@ -1,42 +1,42 @@
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/utils
7
- */
8
- import { type LanguageDirection } from '@ckeditor/ckeditor5-utils';
6
+ * @module language/utils
7
+ */
8
+ import { type LanguageDirection } from "@ckeditor/ckeditor5-utils";
9
9
  /**
10
- * Returns the language attribute value in a human-readable text format:
11
- *
12
- * ```
13
- * <languageCode>:<textDirection>
14
- * ```
15
- *
16
- * * `languageCode` - The language code used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
17
- * * `textDirection` - One of the following values: `rtl` or `ltr`, indicating the reading direction of the language.
18
- *
19
- * See the {@link module:core/editor/editorconfig~LanguageConfig#textPartLanguage text part language configuration}
20
- * for more information about language properties.
21
- *
22
- * If the `textDirection` argument is omitted, it will be automatically detected based on `languageCode`.
23
- *
24
- * @param languageCode The language code in the ISO 639-1 format.
25
- * @param textDirection The language text direction. Automatically detected if omitted.
26
- * @internal
27
- */
10
+ * Returns the language attribute value in a human-readable text format:
11
+ *
12
+ * ```
13
+ * <languageCode>:<textDirection>
14
+ * ```
15
+ *
16
+ * * `languageCode` - The language code used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
17
+ * * `textDirection` - One of the following values: `rtl` or `ltr`, indicating the reading direction of the language.
18
+ *
19
+ * See the {@link module:core/editor/editorconfig~LanguageConfig#textPartLanguage text part language configuration}
20
+ * for more information about language properties.
21
+ *
22
+ * If the `textDirection` argument is omitted, it will be automatically detected based on `languageCode`.
23
+ *
24
+ * @param languageCode The language code in the ISO 639-1 format.
25
+ * @param textDirection The language text direction. Automatically detected if omitted.
26
+ * @internal
27
+ */
28
28
  export declare function stringifyLanguageAttribute(languageCode: string, textDirection?: LanguageDirection): string;
29
29
  /**
30
- * Retrieves language properties converted to attribute value by the
31
- * {@link module:language/utils~stringifyLanguageAttribute stringifyLanguageAttribute} function.
32
- *
33
- * @internal
34
- * @param str The attribute value.
35
- * @returns The object with properties:
36
- * * languageCode - The language code in the ISO 639 format.
37
- * * textDirection - The language text direction.
38
- */
30
+ * Retrieves language properties converted to attribute value by the
31
+ * {@link module:language/utils~stringifyLanguageAttribute stringifyLanguageAttribute} function.
32
+ *
33
+ * @internal
34
+ * @param str The attribute value.
35
+ * @returns The object with properties:
36
+ * * languageCode - The language code in the ISO 639 format.
37
+ * * textDirection - The language text direction.
38
+ */
39
39
  export declare function parseLanguageAttribute(str: string): {
40
- languageCode: string;
41
- textDirection: string;
40
+ languageCode: string;
41
+ textDirection: string;
42
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-language",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.0",
4
4
  "description": "Text part language feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,10 +26,10 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-core": "48.2.0",
30
- "@ckeditor/ckeditor5-engine": "48.2.0",
31
- "@ckeditor/ckeditor5-ui": "48.2.0",
32
- "@ckeditor/ckeditor5-utils": "48.2.0"
29
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
30
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
31
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
32
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0"
33
33
  },
34
34
  "files": [
35
35
  "dist",
@@ -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 */"]}