update deps

This commit is contained in:
s2
2019-12-20 20:02:44 +01:00
parent 14c1b72301
commit b7fa481dcb
833 changed files with 68364 additions and 18390 deletions

16
node_modules/i18next/CHANGELOG.md generated vendored
View File

@@ -1,3 +1,19 @@
### 15.1.3
- typescript: Fix type error when init with locize plugin options [1248](https://github.com/i18next/i18next/pull/1248)
### 15.1.2
- typescript: types(ReactOptions): Add missing props to React Options interface [1247](https://github.com/i18next/i18next/pull/1247)
### 15.1.1
- typescript: Update BackendModule interface to allow null or undefined for the callback [1244](https://github.com/i18next/i18next/pull/1244)
### 15.1.0
- trigger a languageChanging event
### 15.0.9
- IE: <=IE10 fix (unable to call parent constructor) [1227](https://github.com/i18next/i18next/pull/1227)

View File

@@ -290,6 +290,7 @@ function (_EventEmitter) {
var _this4 = this;
var deferred = (0, _utils.defer)();
this.emit('languageChanging', lng);
var done = function done(err, l) {
_this4.translator.changeLanguage(l);

View File

@@ -263,6 +263,7 @@ function (_EventEmitter) {
var _this4 = this;
var deferred = defer();
this.emit('languageChanging', lng);
var done = function done(err, l) {
_this4.translator.changeLanguage(l);

View File

@@ -2150,6 +2150,7 @@
var _this4 = this;
var deferred = defer();
this.emit('languageChanging', lng);
var done = function done(err, l) {
_this4.translator.changeLanguage(l);

File diff suppressed because one or more lines are too long

1
node_modules/i18next/i18next.js generated vendored
View File

@@ -2150,6 +2150,7 @@
var _this4 = this;
var deferred = defer();
this.emit('languageChanging', lng);
var done = function done(err, l) {
_this4.translator.changeLanguage(l);

File diff suppressed because one or more lines are too long

138
node_modules/i18next/index.d.ts generated vendored
View File

@@ -151,6 +151,16 @@ declare namespace i18next {
* @default undefined
*/
hashTransKey?(defaultValue: TOptionsBase['defaultValue']): TOptionsBase['defaultValue'];
/**
* Convert eg. <br/> found in translations to a react component of type br
* @default true
*/
transSupportBasicHtmlNodes?: boolean;
/**
* Which nodes not to convert in defaultValue generation in the Trans component.
* @default ['br', 'strong', 'i', 'p']
*/
transKeepBasicHtmlNodesFor?: string[];
}
interface InitOptions {
@@ -407,6 +417,125 @@ declare namespace i18next {
* @default 'v3'
*/
compatibilityJSON?: 'v1' | 'v2' | 'v3';
/**
* Options for https://github.com/locize/locize-editor
* @default undefined
*/
editor?: {
/**
* Enable on init without the need of adding querystring locize=true
* @default false
*/
enabled?: boolean;
/**
* If set to false you will need to open the editor via API
* @default true
*/
autoOpen?: boolean;
/**
* Enable by adding querystring locize=true; can be set to another value or turned off by setting to false
* @default 'locize'
*/
enableByQS?: string | false;
/**
* Turn on/off by pressing key combination. Combine this with `toggleKeyCode`
* @default 'ctrlKey'
*/
toggleKeyModifier?: 'ctrlKey' | 'metaKey' | 'altKey' | 'shiftKey';
/**
* Turn on/off by pressing key combination. Combine this with `toggleKeyModifier`
* @default 24 (x)
*/
toggleKeyCode?: number;
/**
* Use lng in editor taken from query string, eg. if running with lng=cimode (i18next, locize)
* @default 'useLng'
*/
lngOverrideQS?: string;
/**
* Use lng in editor, eg. if running with lng=cimode (i18next, locize)
* @default null
*/
lngOverride?: string | null;
/**
* How the editor will open.
* Setting to window will open a new window/tab instead
* @default 'iframe'
*/
mode?: 'iframe' | 'window';
/**
* Styles to adapt layout in iframe mode to your website layout.
* This will add a style to the `<iframe>`
* @default 'z-index: 2000; position: fixed; top: 0; right: 0; bottom: 0; width: 600px; box-shadow: -3px 0 5px 0 rgba(0,0,0,0.5);'
*/
iframeContainerStyle?: string;
/**
* Styles to adapt layout in iframe mode to your website layout.
* This will add a style to the parent of `<iframe>`
* @default 'height: 100%; width: 600px; border: none;'
*/
iframeStyle?: string;
/**
* Styles to adapt layout in iframe mode to your website layout.
* This will add a style to `<body>`
* @default 'margin-right: 605px;'
*/
bodyStyle?: string;
/**
* Handle when locize saved the edited translations, eg. reload website
* @default noop
*/
onEditorSaved?: (lng: null, ns: string | string[]) => void;
};
/**
* Options for https://github.com/locize/locize-lastused
* @default undefined
*/
locizeLastUsed?: {
/**
* The id of your locize project
*/
projectId: string;
/**
* An api key if you want to send missing keys
*/
apiKey?: string;
/**
* The reference language of your project
* @default 'en'
*/
referenceLng?: string;
/**
* Version
* @default 'latest'
*/
version?: string;
/**
* Debounce interval to send data in milliseconds
* @default 90000
*/
debounceSubmit?: number;
/**
* Hostnames that are allowed to send last used data.
* Please keep those to your local system, staging, test servers (not production)
* @default ['localhost']
*/
allowedHosts?: string[];
};
}
interface TOptionsBase {
@@ -544,7 +673,7 @@ declare namespace i18next {
read(
language: string,
namespace: string,
callback: (err: Error, data: ResourceLanguage) => void,
callback: (err: Error | null | undefined, data: ResourceLanguage) => void,
): void;
/** Save the missing translation */
create(languages: string[], namespace: string, key: string, fallbackValue: string): void;
@@ -552,7 +681,7 @@ declare namespace i18next {
readMulti?(
languages: string[],
namespaces: string[],
callback: (err: Error, data: Resource) => void,
callback: (err: Error | null | undefined, data: Resource) => void,
): void;
/** Store the translation. For backends acting as cache layer */
save?(language: string, namespace: string, data: ResourceLanguage): void;
@@ -834,6 +963,11 @@ declare namespace i18next {
* Is initialized
*/
isInitialized: boolean;
/**
* Emit event
*/
emit(eventName: string): void;
}
}

25
node_modules/i18next/package.json generated vendored
View File

@@ -1,27 +1,28 @@
{
"_from": "i18next@^15.0.9",
"_id": "i18next@15.0.9",
"_from": "i18next@15.1.3",
"_id": "i18next@15.1.3",
"_inBundle": false,
"_integrity": "sha512-IdVj7DqErUuMbGuj2dFT431T7zKlmDci63eae6pNA/bMwgBZKT74/KnwHXE0WH7ivo2EV/LNme4pP4Yw6vB79w==",
"_integrity": "sha512-hN2DZLoRSY2h/RYeNqth5XxV4N1ekKGSJDCGhFmmuXkOCAfK5CkUG4VBv9OBXrvf93xApv0KKBVrb0zJP31EKg==",
"_location": "/i18next",
"_phantomChildren": {},
"_requested": {
"type": "range",
"type": "version",
"registry": true,
"raw": "i18next@^15.0.9",
"raw": "i18next@15.1.3",
"name": "i18next",
"escapedName": "i18next",
"rawSpec": "^15.0.9",
"rawSpec": "15.1.3",
"saveSpec": null,
"fetchSpec": "^15.0.9"
"fetchSpec": "15.1.3"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/i18next/-/i18next-15.0.9.tgz",
"_shasum": "42536407a921bb5a8535a4c090a26f16827a1884",
"_spec": "i18next@^15.0.9",
"_where": "F:\\projects\\vanillajs-seed",
"_resolved": "https://registry.npmjs.org/i18next/-/i18next-15.1.3.tgz",
"_shasum": "f1984cbee0e3cb00cff9008b037264289ce8840a",
"_spec": "i18next@15.1.3",
"_where": "/home/s2/Code/vanillajs-seed",
"author": {
"name": "Jan Mühlemann",
"email": "jan.muehlemann@gmail.com",
@@ -153,5 +154,5 @@
"test:typescript": "tslint --project tsconfig.json"
},
"types": "index.d.ts",
"version": "15.0.9"
"version": "15.1.3"
}