angular-intlayer 7.0.0-canary.2 → 7.0.0-canary.3
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.
- package/dist/types/client/installIntlayer.d.ts +2 -2
- package/dist/types/client/useLocale.d.ts +5 -5
- package/dist/types/client/useLocaleStorage.d.ts +5 -5
- package/dist/types/editor/EditedContentRenderer.component.d.ts +2 -2
- package/dist/types/editor/useCrossURLPathState.d.ts +3 -3
- package/package.json +16 -16
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core1 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_core1.WritableSignal<boolean>;
|
|
9
9
|
private _locale;
|
|
10
10
|
readonly locale: Signal<LocalesValues>;
|
|
11
11
|
setLocale: (locale: LocalesValues) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core2 from "@angular/core";
|
|
2
2
|
import { LocalesValues } from "@intlayer/types";
|
|
3
|
-
import * as
|
|
3
|
+
import * as intlayer4 from "intlayer";
|
|
4
4
|
|
|
5
5
|
//#region src/client/useLocale.d.ts
|
|
6
6
|
type useLocaleProps = {
|
|
@@ -14,9 +14,9 @@ declare const useLocale: ({
|
|
|
14
14
|
isCookieEnabled,
|
|
15
15
|
onLocaleChange
|
|
16
16
|
}?: useLocaleProps) => {
|
|
17
|
-
locale:
|
|
18
|
-
defaultLocale:
|
|
19
|
-
availableLocales:
|
|
17
|
+
locale: _angular_core2.Signal<intlayer4.Locale | (string & {})>;
|
|
18
|
+
defaultLocale: intlayer4.Locale;
|
|
19
|
+
availableLocales: intlayer4.Locale[];
|
|
20
20
|
setLocale: (newLocale: LocalesValues) => void;
|
|
21
21
|
};
|
|
22
22
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocalesValues } from "@intlayer/types";
|
|
2
|
-
import * as
|
|
2
|
+
import * as intlayer0 from "intlayer";
|
|
3
3
|
|
|
4
4
|
//#region src/client/useLocaleStorage.d.ts
|
|
5
5
|
|
|
@@ -9,13 +9,13 @@ import * as intlayer3 from "intlayer";
|
|
|
9
9
|
/**
|
|
10
10
|
* Get the locale cookie
|
|
11
11
|
*/
|
|
12
|
-
declare const localeInStorage:
|
|
12
|
+
declare const localeInStorage: intlayer0.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: intlayer0.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: () => intlayer0.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: intlayer0.Locale;
|
|
45
45
|
setLocaleCookie: (locale: LocalesValues) => void;
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core5 from "@angular/core";
|
|
2
2
|
import { KeyPath, Locale } from "@intlayer/types";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/EditedContentRenderer.component.d.ts
|
|
@@ -16,7 +16,7 @@ declare class EditedContentRendererComponent {
|
|
|
16
16
|
/**
|
|
17
17
|
* Object → getContent → string, same as the React version.
|
|
18
18
|
*/
|
|
19
|
-
renderedContent:
|
|
19
|
+
renderedContent: _angular_core5.Signal<string>;
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
export { EditedContentRendererComponent, EditedContentRendererProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCrossFrameState } from "./useCrossFrameState.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _angular_core3 from "@angular/core";
|
|
3
3
|
|
|
4
4
|
//#region src/editor/useCrossURLPathState.d.ts
|
|
5
5
|
|
|
@@ -9,14 +9,14 @@ import * as _angular_core1 from "@angular/core";
|
|
|
9
9
|
* @param opts - Options for controlling emit and receive behavior
|
|
10
10
|
* @returns A tuple containing [state signal, setState function, forceSync function]
|
|
11
11
|
*/
|
|
12
|
-
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [
|
|
12
|
+
declare const useCrossURLPathState: (initial?: string, opts?: Parameters<typeof useCrossFrameState>[2]) => [_angular_core3.Signal<string>, (v: string | ((prev: string) => string)) => void, () => void];
|
|
13
13
|
/**
|
|
14
14
|
* Hook for host applications to push URL path changes into the shared state
|
|
15
15
|
* This also monkey patches history methods to capture navigation events
|
|
16
16
|
* @param initial - The initial URL path
|
|
17
17
|
* @returns A tuple containing [state signal, setState function]
|
|
18
18
|
*/
|
|
19
|
-
declare const useCrossURLPathSetter: (initial?: string) => readonly [
|
|
19
|
+
declare const useCrossURLPathSetter: (initial?: string) => readonly [_angular_core3.Signal<string>, (v: string | ((prev: string) => string)) => void];
|
|
20
20
|
//#endregion
|
|
21
21
|
export { useCrossURLPathSetter, useCrossURLPathState };
|
|
22
22
|
//# sourceMappingURL=useCrossURLPathState.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-intlayer",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Angular applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@intlayer/chokidar": "7.0.0-canary.
|
|
85
|
-
"@intlayer/config": "7.0.0-canary.
|
|
86
|
-
"@intlayer/core": "7.0.0-canary.
|
|
87
|
-
"@intlayer/dictionaries-entry": "7.0.0-canary.
|
|
88
|
-
"@intlayer/editor": "7.0.0-canary.
|
|
89
|
-
"@intlayer/types": "7.0.0-canary.
|
|
90
|
-
"@intlayer/webpack": "7.0.0-canary.
|
|
84
|
+
"@intlayer/chokidar": "7.0.0-canary.3",
|
|
85
|
+
"@intlayer/config": "7.0.0-canary.3",
|
|
86
|
+
"@intlayer/core": "7.0.0-canary.3",
|
|
87
|
+
"@intlayer/dictionaries-entry": "7.0.0-canary.3",
|
|
88
|
+
"@intlayer/editor": "7.0.0-canary.3",
|
|
89
|
+
"@intlayer/types": "7.0.0-canary.3",
|
|
90
|
+
"@intlayer/webpack": "7.0.0-canary.3",
|
|
91
91
|
"deepmerge": "4.3.1",
|
|
92
92
|
"js-cookie": "3.0.5",
|
|
93
93
|
"uuid": "13.0.0"
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/node": "24.9.1",
|
|
97
97
|
"@types/webpack": "5.28.5",
|
|
98
|
-
"@utils/ts-config": "7.0.0-canary.
|
|
99
|
-
"@utils/ts-config-types": "7.0.0-canary.
|
|
100
|
-
"@utils/tsdown-config": "7.0.0-canary.
|
|
98
|
+
"@utils/ts-config": "7.0.0-canary.3",
|
|
99
|
+
"@utils/ts-config-types": "7.0.0-canary.3",
|
|
100
|
+
"@utils/tsdown-config": "7.0.0-canary.3",
|
|
101
101
|
"rimraf": "6.0.1",
|
|
102
102
|
"tsdown": "0.15.9",
|
|
103
103
|
"typescript": "5.9.3",
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
"peerDependencies": {
|
|
107
107
|
"@angular/common": "15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
108
108
|
"@angular/core": "15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
|
|
109
|
-
"@intlayer/chokidar": "7.0.0-canary.
|
|
110
|
-
"@intlayer/config": "7.0.0-canary.
|
|
111
|
-
"@intlayer/core": "7.0.0-canary.
|
|
112
|
-
"@intlayer/dictionaries-entry": "7.0.0-canary.
|
|
113
|
-
"@intlayer/types": "7.0.0-canary.
|
|
109
|
+
"@intlayer/chokidar": "7.0.0-canary.3",
|
|
110
|
+
"@intlayer/config": "7.0.0-canary.3",
|
|
111
|
+
"@intlayer/core": "7.0.0-canary.3",
|
|
112
|
+
"@intlayer/dictionaries-entry": "7.0.0-canary.3",
|
|
113
|
+
"@intlayer/types": "7.0.0-canary.3",
|
|
114
114
|
"rxjs": "6.0.0 || ^7.0.0"
|
|
115
115
|
},
|
|
116
116
|
"engines": {
|