react-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.
@@ -1,4 +1,4 @@
1
- import * as intlayer16 from "intlayer";
1
+ import * as intlayer21 from "intlayer";
2
2
 
3
3
  //#region src/client/format/useCompact.d.ts
4
4
 
@@ -13,7 +13,7 @@ import * as intlayer16 from "intlayer";
13
13
  * ```
14
14
  */
15
15
  declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
16
- locale?: intlayer16.LocalesValues;
16
+ locale?: intlayer21.LocalesValues;
17
17
  }) => string;
18
18
  //#endregion
19
19
  export { useCompact };
@@ -1,4 +1,4 @@
1
- import * as intlayer17 from "intlayer";
1
+ import * as intlayer19 from "intlayer";
2
2
 
3
3
  //#region src/client/format/useCurrency.d.ts
4
4
 
@@ -27,7 +27,7 @@ import * as intlayer17 from "intlayer";
27
27
  * ```
28
28
  */
29
29
  declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
30
- locale?: intlayer17.LocalesValues;
30
+ locale?: intlayer19.LocalesValues;
31
31
  }) => string;
32
32
  //#endregion
33
33
  export { useCurrency };
@@ -1,4 +1,4 @@
1
- import * as intlayer21 from "intlayer";
1
+ import * as intlayer20 from "intlayer";
2
2
 
3
3
  //#region src/client/format/useList.d.ts
4
4
 
@@ -24,7 +24,7 @@ import * as intlayer21 from "intlayer";
24
24
  * ```
25
25
  */
26
26
  declare const useList: () => (values: (string | number)[], options?: Intl.ListFormatOptions & {
27
- locale?: intlayer21.LocalesValues;
27
+ locale?: intlayer20.LocalesValues;
28
28
  }) => string;
29
29
  //#endregion
30
30
  export { useList };
@@ -1,4 +1,4 @@
1
- import * as intlayer19 from "intlayer";
1
+ import * as intlayer18 from "intlayer";
2
2
 
3
3
  //#region src/client/format/useNumber.d.ts
4
4
 
@@ -25,7 +25,7 @@ import * as intlayer19 from "intlayer";
25
25
  * A number formatting function bound to the active locale.
26
26
  */
27
27
  declare const useNumber: () => (value: string | number, options?: Intl.NumberFormatOptions & {
28
- locale?: intlayer19.LocalesValues;
28
+ locale?: intlayer18.LocalesValues;
29
29
  }) => string;
30
30
  //#endregion
31
31
  export { useNumber };
@@ -1,4 +1,4 @@
1
- import * as intlayer18 from "intlayer";
1
+ import * as intlayer17 from "intlayer";
2
2
 
3
3
  //#region src/client/format/usePercentage.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as intlayer18 from "intlayer";
21
21
  * A function that formats numbers or numeric strings into localized percentages.
22
22
  */
23
23
  declare const usePercentage: () => (value: string | number, options?: Intl.NumberFormatOptions & {
24
- locale?: intlayer18.LocalesValues;
24
+ locale?: intlayer17.LocalesValues;
25
25
  }) => string;
26
26
  //#endregion
27
27
  export { usePercentage };
@@ -1,4 +1,4 @@
1
- import * as intlayer20 from "intlayer";
1
+ import * as intlayer16 from "intlayer";
2
2
 
3
3
  //#region src/client/format/useRelativeTime.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as intlayer20 from "intlayer";
21
21
  * bound to the current client locale.
22
22
  */
23
23
  declare const useRelativeTime: () => (from: string | number | Date, to?: string | number | Date, options?: Intl.RelativeTimeFormatOptions & {
24
- locale?: intlayer20.LocalesValues;
24
+ locale?: intlayer16.LocalesValues;
25
25
  unit?: Intl.RelativeTimeFormatUnit;
26
26
  }) => string;
27
27
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core2 from "@intlayer/core";
2
+ import * as _intlayer_core0 from "@intlayer/core";
3
3
  import { Dictionary, DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
4
- import * as intlayer14 from "intlayer";
4
+ import * as intlayer7 from "intlayer";
5
5
 
6
6
  //#region src/client/useDictionaryDynamic.d.ts
7
7
  /**
@@ -9,7 +9,7 @@ import * as intlayer14 from "intlayer";
9
9
  *
10
10
  * If the locale is not provided, it will use the locale from the client context
11
11
  */
12
- declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core2.DeepTransformContent<T["content"], IInterpreterPluginState$1, intlayer14.Locale | (string & {})>;
12
+ declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core0.DeepTransformContent<T["content"], IInterpreterPluginState$1, intlayer7.Locale | (string & {})>;
13
13
  //#endregion
14
14
  export { useDictionaryDynamic };
15
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAmBa,cAAA,oBAuBZ,EAAA,CAAA,UAtBW,UAsBX,EAAA,UArBW,cAqBX,CAAA,CAAA,iBAAA,EAnBoB,mBAmBpB,CAAA,GAAA,GAnB8C,OAmB9C,CAnBsD,CAmBtD,CAAA,CAAA,EAAA,GAAA,EAlBM,CAkBN,EAAA,MAAA,CAAA,EAjBU,aAiBV,EAAA,GAjBuB,eAAA,CAAA,oBAiBvB,CAjBuB,CAiBvB,CAAA,SAAA,CAAA,EAjBuB,yBAAA,EAAA,UAAA,CAAA,MAAA,GAiBvB,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"useDictionaryDynamic.d.ts","names":[],"sources":["../../../src/client/useDictionaryDynamic.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAmBa,cAAA,oBAuBZ,EAAA,CAAA,UAtBW,UAsBX,EAAA,UArBW,cAqBX,CAAA,CAAA,iBAAA,EAnBoB,mBAmBpB,CAAA,GAAA,GAnB8C,OAmB9C,CAnBsD,CAmBtD,CAAA,CAAA,EAAA,GAAA,EAlBM,CAkBN,EAAA,MAAA,CAAA,EAjBU,aAiBV,EAAA,GAjBuB,eAAA,CAAA,oBAiBvB,CAjBuB,CAiBvB,CAAA,SAAA,CAAA,EAjBuB,yBAAA,EAAA,SAAA,CAAA,MAAA,GAiBvB,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core0 from "@intlayer/core";
2
+ import * as _intlayer_core5 from "@intlayer/core";
3
3
  import * as _intlayer_types0 from "@intlayer/types";
4
4
  import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types";
5
5
 
@@ -12,7 +12,7 @@ import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types"
12
12
  *
13
13
  * When you need the raw string for attributes like `aria-label`, access the `.value` property of the returned content
14
14
  */
15
- declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => _intlayer_core0.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
15
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => _intlayer_core5.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
16
16
  //#endregion
17
17
  export { useIntlayer };
18
18
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1,34 +1,34 @@
1
1
  import * as react1 from "react";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  import { LocalesValues } from "@intlayer/types";
4
- import * as intlayer7 from "intlayer";
4
+ import * as intlayer8 from "intlayer";
5
5
 
6
6
  //#region src/server/IntlayerServerProvider.d.ts
7
7
  /**
8
8
  * Context that store the current locale on the server side
9
9
  */
10
10
  declare const IntlayerServerContext: FC<PropsWithChildren<{
11
- value?: intlayer7.Locale | (string & {});
11
+ value?: intlayer8.Locale | (string & {});
12
12
  }>> & {
13
13
  Provider: FC<PropsWithChildren<{
14
- value?: intlayer7.Locale | (string & {});
14
+ value?: intlayer8.Locale | (string & {});
15
15
  }>>;
16
16
  Consumer: FC<PropsWithChildren<{
17
- children: (context: intlayer7.Locale | (string & {})) => react1.ReactNode;
17
+ children: (context: intlayer8.Locale | (string & {})) => react1.ReactNode;
18
18
  }>>;
19
19
  _storage: () => {
20
- value: intlayer7.Locale | (string & {});
20
+ value: intlayer8.Locale | (string & {});
21
21
  };
22
- _defaultValue: intlayer7.Locale | (string & {});
22
+ _defaultValue: intlayer8.Locale | (string & {});
23
23
  };
24
24
  /**
25
25
  * Hook that provides the current locale
26
26
  */
27
- declare const useIntlayer: () => intlayer7.Locale | (string & {});
27
+ declare const useIntlayer: () => intlayer8.Locale | (string & {});
28
28
  /**
29
29
  * Get the current locale
30
30
  */
31
- declare const locale: intlayer7.Locale | (string & {});
31
+ declare const locale: intlayer8.Locale | (string & {});
32
32
  type IntlayerServerProviderProps = PropsWithChildren & {
33
33
  locale?: LocalesValues;
34
34
  };
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core3 from "@intlayer/core";
2
+ import * as _intlayer_core4 from "@intlayer/core";
3
3
  import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
4
4
 
5
5
  //#region src/server/useDictionary.d.ts
@@ -9,7 +9,7 @@ import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
9
9
  *
10
10
  * If the locale is not provided, it will use the locale from the server context
11
11
  */
12
- declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core3.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
12
+ declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core4.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
13
13
  //#endregion
14
14
  export { useDictionary };
15
15
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core4 from "@intlayer/core";
2
+ import * as _intlayer_core1 from "@intlayer/core";
3
3
  import { DeclaredLocales, Dictionary, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
4
4
 
5
5
  //#region src/server/useDictionaryAsync.d.ts
@@ -9,7 +9,7 @@ import { DeclaredLocales, Dictionary, LocalesValues, StrictModeLocaleMap } from
9
9
  *
10
10
  * If the locale is not provided, it will use the locale from the server context
11
11
  */
12
- declare const useDictionaryAsync: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => Promise<_intlayer_core4.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>>;
12
+ declare const useDictionaryAsync: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => Promise<_intlayer_core1.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>>;
13
13
  //#endregion
14
14
  export { useDictionaryAsync };
15
15
  //# sourceMappingURL=useDictionaryAsync.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core5 from "@intlayer/core";
2
+ import * as _intlayer_core2 from "@intlayer/core";
3
3
  import { DeclaredLocales, Dictionary, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
4
4
 
5
5
  //#region src/server/useDictionaryDynamic.d.ts
@@ -9,7 +9,7 @@ import { DeclaredLocales, Dictionary, LocalesValues, StrictModeLocaleMap } from
9
9
  *
10
10
  * If the locale is not provided, it will use the locale from the server context
11
11
  */
12
- declare const useDictionaryDynamic: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: string, locale?: L) => _intlayer_core5.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
12
+ declare const useDictionaryDynamic: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: string, locale?: L) => _intlayer_core2.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
13
13
  //#endregion
14
14
  export { useDictionaryDynamic };
15
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core1 from "@intlayer/core";
2
+ import * as _intlayer_core3 from "@intlayer/core";
3
3
  import * as _intlayer_types0 from "@intlayer/types";
4
4
  import { DictionaryKeys, LocalesValues } from "@intlayer/types";
5
5
 
@@ -9,7 +9,7 @@ import { DictionaryKeys, LocalesValues } from "@intlayer/types";
9
9
  *
10
10
  * If the locale is not provided, it will use the locale from the server context
11
11
  */
12
- declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => _intlayer_core1.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
12
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => _intlayer_core3.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
13
13
  //#endregion
14
14
  export { useIntlayer };
15
15
  //# sourceMappingURL=useIntlayer.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intlayer",
3
- "version": "7.0.0-canary.2",
3
+ "version": "7.0.0-canary.3",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -104,13 +104,13 @@
104
104
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
105
105
  },
106
106
  "dependencies": {
107
- "@intlayer/api": "7.0.0-canary.2",
108
- "@intlayer/config": "7.0.0-canary.2",
109
- "@intlayer/core": "7.0.0-canary.2",
110
- "@intlayer/dictionaries-entry": "7.0.0-canary.2",
111
- "@intlayer/editor-react": "7.0.0-canary.2",
112
- "@intlayer/types": "7.0.0-canary.2",
113
- "intlayer": "7.0.0-canary.2",
107
+ "@intlayer/api": "7.0.0-canary.3",
108
+ "@intlayer/config": "7.0.0-canary.3",
109
+ "@intlayer/core": "7.0.0-canary.3",
110
+ "@intlayer/dictionaries-entry": "7.0.0-canary.3",
111
+ "@intlayer/editor-react": "7.0.0-canary.3",
112
+ "@intlayer/types": "7.0.0-canary.3",
113
+ "intlayer": "7.0.0-canary.3",
114
114
  "js-cookie": "3.0.5"
115
115
  },
116
116
  "devDependencies": {
@@ -119,9 +119,9 @@
119
119
  "@types/node": "24.9.1",
120
120
  "@types/react": ">=16.0.0",
121
121
  "@types/react-dom": ">=16.0.0",
122
- "@utils/ts-config": "7.0.0-canary.2",
123
- "@utils/ts-config-types": "7.0.0-canary.2",
124
- "@utils/tsdown-config": "7.0.0-canary.2",
122
+ "@utils/ts-config": "7.0.0-canary.3",
123
+ "@utils/ts-config-types": "7.0.0-canary.3",
124
+ "@utils/tsdown-config": "7.0.0-canary.3",
125
125
  "rimraf": "6.0.1",
126
126
  "tsdown": "0.15.9",
127
127
  "typescript": "5.9.3",
@@ -129,13 +129,13 @@
129
129
  "vitest": "4.0.3"
130
130
  },
131
131
  "peerDependencies": {
132
- "@intlayer/api": "7.0.0-canary.2",
133
- "@intlayer/config": "7.0.0-canary.2",
134
- "@intlayer/core": "7.0.0-canary.2",
135
- "@intlayer/dictionaries-entry": "7.0.0-canary.2",
136
- "@intlayer/editor-react": "7.0.0-canary.2",
137
- "@intlayer/types": "7.0.0-canary.2",
138
- "intlayer": "7.0.0-canary.2",
132
+ "@intlayer/api": "7.0.0-canary.3",
133
+ "@intlayer/config": "7.0.0-canary.3",
134
+ "@intlayer/core": "7.0.0-canary.3",
135
+ "@intlayer/dictionaries-entry": "7.0.0-canary.3",
136
+ "@intlayer/editor-react": "7.0.0-canary.3",
137
+ "@intlayer/types": "7.0.0-canary.3",
138
+ "intlayer": "7.0.0-canary.3",
139
139
  "react": ">=16.0.0",
140
140
  "react-dom": ">=16.0.0"
141
141
  },