react-intlayer 7.0.3-canary.1 → 7.0.4-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.
@@ -2,11 +2,11 @@ import { NodeProps } from "@intlayer/core";
2
2
  import { PropsWithChildren, ReactNode } from "react";
3
3
 
4
4
  //#region src/IntlayerNode.d.ts
5
- type IntlayerNode<T$1 = NodeProps['children'], AdditionalProps = Record<string, never>> = ReactNode & {
6
- value: T$1;
5
+ type IntlayerNode<T = NodeProps['children'], AdditionalProps = Record<string, never>> = ReactNode & {
6
+ value: T;
7
7
  } & AdditionalProps;
8
- type RenderIntlayerNodeProps<T$1> = PropsWithChildren<{
9
- value: T$1;
8
+ type RenderIntlayerNodeProps<T> = PropsWithChildren<{
9
+ value: T;
10
10
  children: ReactNode;
11
11
  additionalProps?: {
12
12
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"sourcesContent":[],"mappings":";;;;KAQY,mBACN,yCACc,yBAChB;SACK;AAJT,CAAA,GAKI,eALoB;KAOnB,uBANC,CAAA,GAAA,CAAA,GAM4B,iBAN5B,CAAA;EACc,KAAA,EAMX,GANW;EAChB,QAAA,EAMQ,SANR;EACK,eAAA,CAAA,EAAA;IACL,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;EAAe,CAAA;AAAC,CAAA,CAAA;AAGX,cAKI,kBALJ,EAAA,CAAA,UAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,CAAA,CAAA;EAAA,QAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAWN,uBAXM,CAWkB,CAXlB,CAAA,EAAA,GAWuB,YAXvB,CAWoC,CAXpC,CAAA"}
1
+ {"version":3,"file":"IntlayerNode.d.ts","names":[],"sources":["../../src/IntlayerNode.tsx"],"sourcesContent":[],"mappings":";;;;KAQY,iBACN,yCACc,yBAChB;SACK;AAJT,CAAA,GAKI,eALoB;KAOnB,uBANC,CAAA,CAAA,CAAA,GAM4B,iBAN5B,CAAA;EACc,KAAA,EAMX,CANW;EAChB,QAAA,EAMQ,SANR;EACK,eAAA,CAAA,EAAA;IACL,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;EAAe,CAAA;AAAC,CAAA,CAAA;AAGX,cAKI,kBALJ,EAAA,CAAA,UAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,CAAA,CAAA;EAAA,QAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAWN,uBAXM,CAWkB,CAXlB,CAAA,EAAA,GAWuB,YAXvB,CAWoC,CAXpC,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react1 from "react";
1
+ import * as react0 from "react";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  import { LocalesValues } from "@intlayer/types";
4
4
 
@@ -12,7 +12,7 @@ type IntlayerValue = {
12
12
  /**
13
13
  * Context that store the current locale on the client side
14
14
  */
15
- declare const IntlayerClientContext: react1.Context<IntlayerValue>;
15
+ declare const IntlayerClientContext: react0.Context<IntlayerValue>;
16
16
  /**
17
17
  * Hook that provides the current locale
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"sourcesContent":[],"mappings":";;;;;KAeK,aAAA;UACK;yBACe;EAFpB,aAAA,CAAA,EAAa,OAAA;EAUL,eAAA,CAAA,EAAA,OAKX;AAKF,CAAA;AAEA;;;AAGuB,cAfV,qBAeU,EAfW,MAAA,CAAA,OAeX,CAfW,aAeX,CAAA;;;AAQvB;AAiDa,cA9DA,kBA8DqB,EAAA,GAAA,GA9DH,aA8DA;KA5DnB,qBAAA,GAAwB;WACzB;kBACO;uBACK;;;;;;;cAQV,yBAAyB,GAAG;cAiD5B,kBAAkB,GAAG"}
1
+ {"version":3,"file":"IntlayerProvider.d.ts","names":[],"sources":["../../../src/client/IntlayerProvider.tsx"],"sourcesContent":[],"mappings":";;;;;KAeK,aAAA;UACK;yBACe;EAFpB,aAAA,CAAA,EAAa,OAAA;EAUL,eAAA,CAAA,EAAA,OAKX;AAKF,CAAA;AAEA;;;AAGuB,cAfV,qBAeU,EAfW,MAAA,CAAA,OAeX,CAfW,aAeX,CAAA;;;AAQvB;AAiDa,cA9DA,kBA8DqB,EAAA,GAAA,GA9DH,aA8DE;KA5DrB,qBAAA,GAAwB;WACzB;kBACO;uBACK;;;;;;;cAQV,yBAAyB,GAAG;cAiD5B,kBAAkB,GAAG"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types9 from "@intlayer/types";
1
+ import * as _intlayer_types13 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useCompact.d.ts
4
4
 
@@ -13,7 +13,7 @@ import * as _intlayer_types9 from "@intlayer/types";
13
13
  * ```
14
14
  */
15
15
  declare const useCompact: () => (value: string | number, options?: Intl.NumberFormatOptions & {
16
- locale?: _intlayer_types9.LocalesValues;
16
+ locale?: _intlayer_types13.LocalesValues;
17
17
  }) => string;
18
18
  //#endregion
19
19
  export { useCompact };
@@ -1 +1 @@
1
- {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;;;;;;;cAAa,qDAAU,IAAA,CAAA;WAAA,gBAAA,CAAA"}
1
+ {"version":3,"file":"useCompact.d.ts","names":[],"sources":["../../../../src/client/format/useCompact.ts"],"sourcesContent":[],"mappings":";;;;;;;AAgBA;;;;;;;cAAa,qDAAU,IAAA,CAAA;WAAA,iBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types10 from "@intlayer/types";
1
+ import * as _intlayer_types8 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useCurrency.d.ts
4
4
 
@@ -27,7 +27,7 @@ import * as _intlayer_types10 from "@intlayer/types";
27
27
  * ```
28
28
  */
29
29
  declare const useCurrency: () => (value: string | number, options?: Intl.NumberFormatOptions & {
30
- locale?: _intlayer_types10.LocalesValues;
30
+ locale?: _intlayer_types8.LocalesValues;
31
31
  }) => string;
32
32
  //#endregion
33
33
  export { useCurrency };
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;;;;;;;;;;;;;;;;;;cAAa,sDAAW,IAAA,CAAA;WAAA,iBAAA,CAAA"}
1
+ {"version":3,"file":"useCurrency.d.ts","names":[],"sources":["../../../../src/client/format/useCurrency.ts"],"sourcesContent":[],"mappings":";;;;;;;AA8BA;;;;;;;;;;;;;;;;;;;;;cAAa,sDAAW,IAAA,CAAA;WAAA,gBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types12 from "@intlayer/types";
1
+ import * as _intlayer_types10 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useList.d.ts
4
4
 
@@ -24,7 +24,7 @@ import * as _intlayer_types12 from "@intlayer/types";
24
24
  * ```
25
25
  */
26
26
  declare const useList: () => (values: (string | number)[], options?: Intl.ListFormatOptions & {
27
- locale?: _intlayer_types12.LocalesValues;
27
+ locale?: _intlayer_types10.LocalesValues;
28
28
  }) => string;
29
29
  //#endregion
30
30
  export { useList };
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types11 from "@intlayer/types";
1
+ import * as _intlayer_types15 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useNumber.d.ts
4
4
 
@@ -25,7 +25,7 @@ import * as _intlayer_types11 from "@intlayer/types";
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?: _intlayer_types11.LocalesValues;
28
+ locale?: _intlayer_types15.LocalesValues;
29
29
  }) => string;
30
30
  //#endregion
31
31
  export { useNumber };
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types13 from "@intlayer/types";
1
+ import * as _intlayer_types12 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/usePercentage.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as _intlayer_types13 from "@intlayer/types";
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?: _intlayer_types13.LocalesValues;
24
+ locale?: _intlayer_types12.LocalesValues;
25
25
  }) => string;
26
26
  //#endregion
27
27
  export { usePercentage };
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types15 from "@intlayer/types";
1
+ import * as _intlayer_types11 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useUnit.d.ts
4
4
 
@@ -20,7 +20,7 @@ import * as _intlayer_types15 from "@intlayer/types";
20
20
  * @returns {Function} A unit formatting function that accepts a value and optional formatting options.
21
21
  */
22
22
  declare const useUnit: () => (value: string | number, options?: Intl.NumberFormatOptions & {
23
- locale?: _intlayer_types15.LocalesValues;
23
+ locale?: _intlayer_types11.LocalesValues;
24
24
  }) => string;
25
25
  //#endregion
26
26
  export { useUnit };
@@ -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_core5 from "@intlayer/core";
3
3
  import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types";
4
4
 
5
5
  //#region src/client/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 client context
11
11
  */
12
- declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core4.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
12
+ declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core5.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_core5 from "@intlayer/core";
2
+ import * as _intlayer_core3 from "@intlayer/core";
3
3
  import { Dictionary, DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
4
4
 
5
5
  //#region src/client/useDictionaryDynamic.d.ts
@@ -9,7 +9,7 @@ import { Dictionary, DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "
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_core5.DeepTransformContent<T["content"], IInterpreterPluginState$1, "af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ru" | "ru-RU" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM" | (string & {})>;
12
+ declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _intlayer_core3.DeepTransformContent<T["content"], IInterpreterPluginState$1, "af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ru" | "ru-RU" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM" | (string & {})>;
13
13
  //#endregion
14
14
  export { useDictionaryDynamic };
15
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core0 from "@intlayer/core";
3
- import * as _intlayer_types7 from "@intlayer/types";
2
+ import * as _intlayer_core4 from "@intlayer/core";
3
+ import * as _intlayer_types9 from "@intlayer/types";
4
4
  import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types";
5
5
 
6
6
  //#region src/client/useIntlayer.d.ts
@@ -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_types7.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
15
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => _intlayer_core4.DeepTransformContent<_intlayer_types9.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
16
16
  //#endregion
17
17
  export { useIntlayer };
18
18
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react0 from "react";
1
+ import * as react1 from "react";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  import { LocalesValues } from "@intlayer/types";
4
4
 
@@ -13,7 +13,7 @@ declare const IntlayerServerContext: FC<PropsWithChildren<{
13
13
  value?: LocalesValues;
14
14
  }>>;
15
15
  Consumer: FC<PropsWithChildren<{
16
- children: (context: LocalesValues) => react0.ReactNode;
16
+ children: (context: LocalesValues) => react1.ReactNode;
17
17
  }>>;
18
18
  _storage: () => {
19
19
  value: LocalesValues;
@@ -14,19 +14,19 @@ declare const getServerContext: <T>({
14
14
  _storage,
15
15
  _defaultValue
16
16
  }: ServerContext<T>) => T;
17
- type ServerContext<T$1> = FC<PropsWithChildren<{
18
- value?: T$1;
17
+ type ServerContext<T> = FC<PropsWithChildren<{
18
+ value?: T;
19
19
  }>> & {
20
20
  Provider: FC<PropsWithChildren<{
21
- value?: T$1;
21
+ value?: T;
22
22
  }>>;
23
23
  Consumer: FC<PropsWithChildren<{
24
- children: (context: T$1 | undefined) => ReactNode;
24
+ children: (context: T | undefined) => ReactNode;
25
25
  }>>;
26
26
  _storage: () => {
27
- value: T$1 | undefined;
27
+ value: T | undefined;
28
28
  };
29
- _defaultValue: T$1 | undefined;
29
+ _defaultValue: T | undefined;
30
30
  };
31
31
  //#endregion
32
32
  export { createServerContext, getServerContext };
@@ -1 +1 @@
1
- {"version":3,"file":"serverContext.d.ts","names":[],"sources":["../../../src/server/serverContext.tsx"],"sourcesContent":[],"mappings":";;;;AAyDG,cAxCU,mBAwCV,EAAA,CAAA,CAAA,CAAA,CAAA,YAAA,CAAA,EAxCoD,CAwCpD,EAAA,GAxCwD,aAwCxD,CAxCsE,CAwCtE,CAAA;;;AAKD;;;;;AAGa,cAXF,gBAWE,EAAA,CAAA,CAAA,CAAA,CAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EARZ,aAQY,CARE,CAQF,CAAA,EAAA,GARI,CAQJ;KADV,aACO,CAAA,GAAA,CAAA,GADY,EACZ,CADe,iBACf,CAAA;EAEgC,KAAA,CAAA,EAHW,GAGX;CAAkB,CAAA,CAAA,GAAA;EAA1D,QAAA,EAFQ,EAER,CAFW,iBAEX,CAAA;IADQ,KAAA,CAAA,EAD+B,GAC/B;EAGe,CAAA,CAAA,CAAA;EACV,QAAA,EAJL,EAIK,CAHb,iBAGa,CAAA;IAAC,QAAA,EAAA,CAAA,OAAA,EAH0B,GAG1B,GAAA,SAAA,EAAA,GAH4C,SAG5C;;;WADS;;iBACV"}
1
+ {"version":3,"file":"serverContext.d.ts","names":[],"sources":["../../../src/server/serverContext.tsx"],"sourcesContent":[],"mappings":";;;;AAyDG,cAxCU,mBAwCV,EAAA,CAAA,CAAA,CAAA,CAAA,YAAA,CAAA,EAxCoD,CAwCpD,EAAA,GAxCwD,aAwCxD,CAxCsE,CAwCtE,CAAA;;;AAKD;;;;;AAGa,cAXF,gBAWE,EAAA,CAAA,CAAA,CAAA,CAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EARZ,aAQY,CARE,CAQF,CAAA,EAAA,GARI,CAQJ;KADV,aACO,CAAA,CAAA,CAAA,GADY,EACZ,CADe,iBACf,CAAA;EAEgC,KAAA,CAAA,EAHW,CAGX;CAAkB,CAAA,CAAA,GAAA;EAA1D,QAAA,EAFQ,EAER,CAFW,iBAEX,CAAA;IADQ,KAAA,CAAA,EAD+B,CAC/B;EAGe,CAAA,CAAA,CAAA;EACV,QAAA,EAJL,EAIK,CAHb,iBAGa,CAAA;IAAC,QAAA,EAAA,CAAA,OAAA,EAH0B,CAG1B,GAAA,SAAA,EAAA,GAH4C,SAG5C;;;WADS;;iBACV"}
@@ -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_core1 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_core0.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
12
+ declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core1.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_core1 from "@intlayer/core";
2
+ import * as _intlayer_core0 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_core1.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_core0.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
13
13
  //#endregion
14
14
  export { useDictionaryDynamic };
15
15
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core3 from "@intlayer/core";
3
- import * as _intlayer_types8 from "@intlayer/types";
2
+ import * as _intlayer_core0 from "@intlayer/core";
3
+ import * as _intlayer_types7 from "@intlayer/types";
4
4
  import { DictionaryKeys, LocalesValues } from "@intlayer/types";
5
5
 
6
6
  //#region src/server/useIntlayer.d.ts
@@ -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_core3.DeepTransformContent<_intlayer_types8.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
12
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => _intlayer_core0.DeepTransformContent<_intlayer_types7.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.3-canary.1",
3
+ "version": "7.0.4-canary.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -104,38 +104,38 @@
104
104
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
105
105
  },
106
106
  "dependencies": {
107
- "@intlayer/api": "7.0.3-canary.1",
108
- "@intlayer/config": "7.0.3-canary.1",
109
- "@intlayer/core": "7.0.3-canary.1",
110
- "@intlayer/dictionaries-entry": "7.0.3-canary.1",
111
- "@intlayer/editor-react": "7.0.3-canary.1",
112
- "@intlayer/types": "7.0.3-canary.1",
113
- "@intlayer/unmerged-dictionaries-entry": "7.0.3-canary.1",
114
- "intlayer": "7.0.3-canary.1",
107
+ "@intlayer/api": "workspace:*",
108
+ "@intlayer/config": "workspace:*",
109
+ "@intlayer/core": "workspace:*",
110
+ "@intlayer/dictionaries-entry": "workspace:*",
111
+ "@intlayer/editor-react": "workspace:*",
112
+ "@intlayer/types": "workspace:*",
113
+ "@intlayer/unmerged-dictionaries-entry": "workspace:*",
114
+ "intlayer": "workspace:*",
115
115
  "js-cookie": "3.0.5"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@craco/types": "7.1.0",
119
119
  "@types/js-cookie": "3.0.6",
120
- "@types/node": "24.9.1",
120
+ "@types/node": "24.9.2",
121
121
  "@types/react": ">=16.0.0",
122
122
  "@types/react-dom": ">=16.0.0",
123
- "@utils/ts-config": "7.0.3-canary.1",
124
- "@utils/ts-config-types": "7.0.3-canary.1",
125
- "@utils/tsdown-config": "7.0.3-canary.1",
123
+ "@utils/ts-config": "workspace:*",
124
+ "@utils/ts-config-types": "workspace:*",
125
+ "@utils/tsdown-config": "workspace:*",
126
126
  "rimraf": "6.0.1",
127
- "tsdown": "0.15.9",
127
+ "tsdown": "0.15.11",
128
128
  "typescript": "5.9.3",
129
129
  "uuid": "13.0.0",
130
- "vitest": "4.0.3"
130
+ "vitest": "4.0.5"
131
131
  },
132
132
  "peerDependencies": {
133
- "@intlayer/api": "7.0.3-canary.1",
134
- "@intlayer/config": "7.0.3-canary.1",
135
- "@intlayer/core": "7.0.3-canary.1",
136
- "@intlayer/editor-react": "7.0.3-canary.1",
137
- "@intlayer/types": "7.0.3-canary.1",
138
- "@intlayer/unmerged-dictionaries-entry": "7.0.3-canary.1",
133
+ "@intlayer/api": "workspace:*",
134
+ "@intlayer/config": "workspace:*",
135
+ "@intlayer/core": "workspace:*",
136
+ "@intlayer/editor-react": "workspace:*",
137
+ "@intlayer/types": "workspace:*",
138
+ "@intlayer/unmerged-dictionaries-entry": "workspace:*",
139
139
  "react": ">=16.0.0",
140
140
  "react-dom": ">=16.0.0"
141
141
  },