Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-language

Package Overview
Dependencies
Maintainers
1
Versions
670
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-language - npm Package Compare versions

Comparing version 37.0.0-alpha.0 to 37.0.0-alpha.1

src/augmentation.d.ts

20

package.json
{
"name": "@ckeditor/ckeditor5-language",
"version": "37.0.0-alpha.0",
"version": "37.0.0-alpha.1",
"description": "Text part language feature for CKEditor 5.",

@@ -15,12 +15,12 @@ "keywords": [

"dependencies": {
"ckeditor5": "^37.0.0-alpha.0"
"ckeditor5": "^37.0.0-alpha.1"
},
"devDependencies": {
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-dev-utils": "^34.0.0",
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1",
"typescript": "^4.8.4",

@@ -54,3 +54,3 @@ "webpack": "^5.58.1",

"dll:build": "webpack",
"build": "tsc -p ./tsconfig.release.json",
"build": "tsc -p ./tsconfig.json",
"postversion": "npm run build"

@@ -57,0 +57,0 @@ },

@@ -11,1 +11,4 @@ /**

export { default as TextPartLanguageUI } from './textpartlanguageui';
export type { TextPartLanguageOption } from './textpartlanguageconfig';
export type { default as TextPartLanguageCommand } from './textpartlanguagecommand';
import './augmentation';

@@ -11,1 +11,2 @@ /**

export { default as TextPartLanguageUI } from './textpartlanguageui';
import './augmentation';

@@ -34,6 +34,1 @@ /**

}
declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap {
[TextPartLanguage.pluginName]: TextPartLanguage;
}
}

@@ -71,6 +71,1 @@ /**

}
declare module '@ckeditor/ckeditor5-core' {
interface CommandsMap {
textPartLanguage: TextPartLanguageCommand;
}
}

@@ -26,35 +26,1 @@ /**

}
declare module '@ckeditor/ckeditor5-core' {
interface LanguageConfig {
/**
* The available {@link module:language/textpartlanguage~TextPartLanguage}
* options that allow setting the language of parts of the content.
*
* This configuration option is available only with the {@glink api/language text part language feature} enabled.
*
* Refer to the [WCAG 3.1.2 Language of Parts](https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html) specification
* to learn more.
*
* To change the editor's UI language, refer to the {@glink features/ui-language Setting the UI language} guide.
*
* The default value is:
*
* ```ts
* const config = [
* { title: 'Arabic', languageCode: 'ar' },
* { title: 'French', languageCode: 'fr' },
* { title: 'Spanish', languageCode: 'es' }
* ];
* ```
*
* The `title` property will be used by the text part language dropdown to render available options.
*
* The `languageCode` property is used for the `lang` attribute in the [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format.
*
* You can also specify the optional `textDirection` property indicating the reading direction of the language.
* Correct values are `ltr` and `rtl`. When the `textDirection` property is missing, the text part language feature will
* specify the text direction by itself.
*/
textPartLanguage?: Array<TextPartLanguageOption>;
}
}

@@ -6,3 +6,2 @@ /**

import { Plugin, type Editor } from 'ckeditor5/src/core';
import './textpartlanguageconfig';
/**

@@ -9,0 +8,0 @@ * The text part language editing.

@@ -8,3 +8,2 @@ /**

import { stringifyLanguageAttribute, parseLanguageAttribute } from './utils';
import './textpartlanguageconfig';
/**

@@ -11,0 +10,0 @@ * The text part language editing.

@@ -9,3 +9,2 @@ /**

import { Plugin } from 'ckeditor5/src/core';
import './textpartlanguageconfig';
import '../theme/language.css';

@@ -27,6 +26,1 @@ /**

}
declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap {
[TextPartLanguageUI.pluginName]: TextPartLanguageUI;
}
}

@@ -12,3 +12,2 @@ /**

import { stringifyLanguageAttribute } from './utils';
import './textpartlanguageconfig';
import '../theme/language.css';

@@ -15,0 +14,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc