angular-intlayer 7.0.9-canary.3 → 7.1.0-canary.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,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core0 from "@angular/core";
|
|
2
2
|
import { InjectionToken, Signal } from "@angular/core";
|
|
3
3
|
import { LocalesValues } from "@intlayer/types";
|
|
4
4
|
|
|
5
5
|
//#region src/client/installIntlayer.d.ts
|
|
6
6
|
declare const INTLAYER_TOKEN: InjectionToken<IntlayerProvider>;
|
|
7
7
|
declare class IntlayerProvider {
|
|
8
|
-
isCookieEnabled:
|
|
8
|
+
isCookieEnabled: _angular_core0.WritableSignal<boolean>;
|
|
9
9
|
private _locale;
|
|
10
10
|
readonly locale: Signal<LocalesValues>;
|
|
11
11
|
setLocale: (locale: LocalesValues) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
|
|
2
2
|
import "../index.js";
|
|
3
3
|
import { Dictionary, DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as _intlayer_core1 from "@intlayer/core";
|
|
5
|
+
import * as intlayer5 from "intlayer";
|
|
6
6
|
|
|
7
7
|
//#region src/client/useDictionaryDynamic.d.ts
|
|
8
8
|
/**
|
|
@@ -10,7 +10,7 @@ import * as intlayer1 from "intlayer";
|
|
|
10
10
|
*
|
|
11
11
|
* If the locale is not provided, it will use the locale from the client context
|
|
12
12
|
*/
|
|
13
|
-
declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) =>
|
|
13
|
+
declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core1.DeepTransformContent<T["content"], IInterpreterPluginState$1, intlayer5.Locale>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { useDictionaryDynamic };
|
|
16
16
|
//# sourceMappingURL=useDictionaryDynamic.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types";
|
|
2
|
-
import * as
|
|
2
|
+
import * as intlayer1 from "intlayer";
|
|
3
3
|
|
|
4
4
|
//#region src/client/useLocaleStorage.d.ts
|
|
5
5
|
|
|
@@ -9,13 +9,13 @@ import * as intlayer2 from "intlayer";
|
|
|
9
9
|
/**
|
|
10
10
|
* Get the locale cookie
|
|
11
11
|
*/
|
|
12
|
-
declare const localeInStorage:
|
|
12
|
+
declare const localeInStorage: intlayer1.Locale;
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated Use localeInStorage instead
|
|
15
15
|
*
|
|
16
16
|
* Get the locale cookie
|
|
17
17
|
*/
|
|
18
|
-
declare const localeCookie:
|
|
18
|
+
declare const localeCookie: intlayer1.Locale;
|
|
19
19
|
/**
|
|
20
20
|
* Set the locale cookie
|
|
21
21
|
*/
|
|
@@ -30,7 +30,7 @@ declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean)
|
|
|
30
30
|
* Hook that provides the locale storage and a function to set it
|
|
31
31
|
*/
|
|
32
32
|
declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
33
|
-
getLocale: () =>
|
|
33
|
+
getLocale: () => intlayer1.Locale;
|
|
34
34
|
setLocale: (locale: LocalesValues) => void;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
@@ -41,7 +41,7 @@ declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
|
|
|
41
41
|
* Hook that provides the locale cookie and a function to set it
|
|
42
42
|
*/
|
|
43
43
|
declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
|
|
44
|
-
localeCookie:
|
|
44
|
+
localeCookie: intlayer1.Locale;
|
|
45
45
|
setLocaleCookie: (locale: LocalesValues) => void;
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core1 from "@angular/core";
|
|
2
2
|
import { NodeProps } from "@intlayer/core";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/ContentSelectorWrapper.component.d.ts
|
|
@@ -16,8 +16,8 @@ declare class ContentSelectorWrapperComponent {
|
|
|
16
16
|
private focusDictionary;
|
|
17
17
|
private editorEnabled;
|
|
18
18
|
constructor();
|
|
19
|
-
isSelected:
|
|
20
|
-
enabled:
|
|
19
|
+
isSelected: _angular_core1.Signal<boolean>;
|
|
20
|
+
enabled: _angular_core1.Signal<boolean>;
|
|
21
21
|
handleSelect(): void;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@intlayer/chokidar": "7.0
|
|
88
|
-
"@intlayer/config": "7.0
|
|
89
|
-
"@intlayer/core": "7.0
|
|
90
|
-
"@intlayer/dictionaries-entry": "7.0
|
|
91
|
-
"@intlayer/editor": "7.0
|
|
92
|
-
"@intlayer/types": "7.0
|
|
93
|
-
"@intlayer/webpack": "7.0
|
|
87
|
+
"@intlayer/chokidar": "7.1.0-canary.0",
|
|
88
|
+
"@intlayer/config": "7.1.0-canary.0",
|
|
89
|
+
"@intlayer/core": "7.1.0-canary.0",
|
|
90
|
+
"@intlayer/dictionaries-entry": "7.1.0-canary.0",
|
|
91
|
+
"@intlayer/editor": "7.1.0-canary.0",
|
|
92
|
+
"@intlayer/types": "7.1.0-canary.0",
|
|
93
|
+
"@intlayer/webpack": "7.1.0-canary.0",
|
|
94
94
|
"deepmerge": "4.3.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
@@ -107,11 +107,11 @@
|
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@angular/common": "15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
109
109
|
"@angular/core": "15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
110
|
-
"@intlayer/chokidar": "7.0
|
|
111
|
-
"@intlayer/config": "7.0
|
|
112
|
-
"@intlayer/core": "7.0
|
|
113
|
-
"@intlayer/dictionaries-entry": "7.0
|
|
114
|
-
"@intlayer/types": "7.0
|
|
110
|
+
"@intlayer/chokidar": "7.1.0-canary.0",
|
|
111
|
+
"@intlayer/config": "7.1.0-canary.0",
|
|
112
|
+
"@intlayer/core": "7.1.0-canary.0",
|
|
113
|
+
"@intlayer/dictionaries-entry": "7.1.0-canary.0",
|
|
114
|
+
"@intlayer/types": "7.1.0-canary.0",
|
|
115
115
|
"rxjs": "6.0.0 || ^7.0.0"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|