react-intlayer 7.0.7 → 7.0.8

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.
Files changed (107) hide show
  1. package/dist/cjs/IntlayerNode.cjs +0 -2
  2. package/dist/cjs/IntlayerNode.cjs.map +1 -1
  3. package/dist/cjs/UI/ContentSelector.cjs +0 -2
  4. package/dist/cjs/UI/ContentSelector.cjs.map +1 -1
  5. package/dist/cjs/client/IntlayerProvider.cjs +0 -4
  6. package/dist/cjs/client/IntlayerProvider.cjs.map +1 -1
  7. package/dist/cjs/client/format/useCompact.cjs +0 -2
  8. package/dist/cjs/client/format/useCompact.cjs.map +1 -1
  9. package/dist/cjs/client/format/useCurrency.cjs +0 -2
  10. package/dist/cjs/client/format/useCurrency.cjs.map +1 -1
  11. package/dist/cjs/client/format/useDate.cjs +0 -2
  12. package/dist/cjs/client/format/useDate.cjs.map +1 -1
  13. package/dist/cjs/client/format/useList.cjs +0 -2
  14. package/dist/cjs/client/format/useList.cjs.map +1 -1
  15. package/dist/cjs/client/format/useNumber.cjs +0 -2
  16. package/dist/cjs/client/format/useNumber.cjs.map +1 -1
  17. package/dist/cjs/client/format/usePercentage.cjs +0 -2
  18. package/dist/cjs/client/format/usePercentage.cjs.map +1 -1
  19. package/dist/cjs/client/format/useRelativeTime.cjs +0 -2
  20. package/dist/cjs/client/format/useRelativeTime.cjs.map +1 -1
  21. package/dist/cjs/client/format/useUnit.cjs +0 -2
  22. package/dist/cjs/client/format/useUnit.cjs.map +1 -1
  23. package/dist/cjs/client/t.cjs +0 -2
  24. package/dist/cjs/client/t.cjs.map +1 -1
  25. package/dist/cjs/client/useDictionary.cjs +0 -1
  26. package/dist/cjs/client/useDictionary.cjs.map +1 -1
  27. package/dist/cjs/client/useDictionaryAsync.cjs +0 -1
  28. package/dist/cjs/client/useDictionaryAsync.cjs.map +1 -1
  29. package/dist/cjs/client/useDictionaryDynamic.cjs +0 -1
  30. package/dist/cjs/client/useDictionaryDynamic.cjs.map +1 -1
  31. package/dist/cjs/client/useI18n.cjs +0 -2
  32. package/dist/cjs/client/useI18n.cjs.map +1 -1
  33. package/dist/cjs/client/useIntlayer.cjs +0 -1
  34. package/dist/cjs/client/useIntlayer.cjs.map +1 -1
  35. package/dist/cjs/client/useLocale.cjs +0 -1
  36. package/dist/cjs/client/useLocale.cjs.map +1 -1
  37. package/dist/cjs/client/useLocaleBase.cjs +0 -1
  38. package/dist/cjs/client/useLocaleBase.cjs.map +1 -1
  39. package/dist/cjs/client/useLocaleStorage.cjs +0 -2
  40. package/dist/cjs/client/useLocaleStorage.cjs.map +1 -1
  41. package/dist/cjs/client/useTraduction.cjs +0 -2
  42. package/dist/cjs/client/useTraduction.cjs.map +1 -1
  43. package/dist/cjs/editor/ContentSelectorWrapper.cjs +0 -5
  44. package/dist/cjs/editor/ContentSelectorWrapper.cjs.map +1 -1
  45. package/dist/cjs/editor/IntlayerEditorProvider.cjs +0 -4
  46. package/dist/cjs/editor/IntlayerEditorProvider.cjs.map +1 -1
  47. package/dist/cjs/editor/useEditedContentRenderer.cjs +0 -3
  48. package/dist/cjs/editor/useEditedContentRenderer.cjs.map +1 -1
  49. package/dist/cjs/getDictionary.cjs +0 -1
  50. package/dist/cjs/getDictionary.cjs.map +1 -1
  51. package/dist/cjs/getIntlayer.cjs +0 -1
  52. package/dist/cjs/getIntlayer.cjs.map +1 -1
  53. package/dist/cjs/markdown/MarkdownProvider.cjs +0 -2
  54. package/dist/cjs/markdown/MarkdownProvider.cjs.map +1 -1
  55. package/dist/cjs/markdown/MarkdownRenderer.cjs +0 -2
  56. package/dist/cjs/markdown/MarkdownRenderer.cjs.map +1 -1
  57. package/dist/cjs/plugins.cjs +0 -3
  58. package/dist/cjs/plugins.cjs.map +1 -1
  59. package/dist/cjs/reactElement/renderReactElement.cjs +0 -1
  60. package/dist/cjs/reactElement/renderReactElement.cjs.map +1 -1
  61. package/dist/cjs/server/IntlayerServerProvider.cjs +0 -1
  62. package/dist/cjs/server/IntlayerServerProvider.cjs.map +1 -1
  63. package/dist/cjs/server/format/useCompact.cjs +0 -1
  64. package/dist/cjs/server/format/useCompact.cjs.map +1 -1
  65. package/dist/cjs/server/format/useCurrency.cjs +0 -1
  66. package/dist/cjs/server/format/useCurrency.cjs.map +1 -1
  67. package/dist/cjs/server/format/useDate.cjs +0 -1
  68. package/dist/cjs/server/format/useDate.cjs.map +1 -1
  69. package/dist/cjs/server/format/useList.cjs +0 -1
  70. package/dist/cjs/server/format/useList.cjs.map +1 -1
  71. package/dist/cjs/server/format/useNumber.cjs +0 -1
  72. package/dist/cjs/server/format/useNumber.cjs.map +1 -1
  73. package/dist/cjs/server/format/usePercentage.cjs +0 -1
  74. package/dist/cjs/server/format/usePercentage.cjs.map +1 -1
  75. package/dist/cjs/server/format/useRelativeTime.cjs +0 -1
  76. package/dist/cjs/server/format/useRelativeTime.cjs.map +1 -1
  77. package/dist/cjs/server/format/useUnit.cjs +0 -1
  78. package/dist/cjs/server/format/useUnit.cjs.map +1 -1
  79. package/dist/cjs/server/serverContext.cjs +11 -0
  80. package/dist/cjs/server/serverContext.cjs.map +1 -1
  81. package/dist/cjs/server/t.cjs +0 -1
  82. package/dist/cjs/server/t.cjs.map +1 -1
  83. package/dist/esm/server/serverContext.mjs +11 -0
  84. package/dist/esm/server/serverContext.mjs.map +1 -1
  85. package/dist/types/client/IntlayerProvider.d.ts +2 -2
  86. package/dist/types/client/format/useCompact.d.ts +2 -2
  87. package/dist/types/client/format/useCurrency.d.ts +2 -2
  88. package/dist/types/client/format/useList.d.ts +2 -2
  89. package/dist/types/client/format/useNumber.d.ts +2 -2
  90. package/dist/types/client/format/useNumber.d.ts.map +1 -1
  91. package/dist/types/client/format/usePercentage.d.ts +2 -2
  92. package/dist/types/client/format/usePercentage.d.ts.map +1 -1
  93. package/dist/types/client/format/useRelativeTime.d.ts +2 -2
  94. package/dist/types/client/format/useRelativeTime.d.ts.map +1 -1
  95. package/dist/types/client/format/useUnit.d.ts +2 -2
  96. package/dist/types/client/useDictionaryDynamic.d.ts +2 -2
  97. package/dist/types/client/useIntlayer.d.ts +3 -3
  98. package/dist/types/client/useLocaleStorage.d.ts +5 -5
  99. package/dist/types/index.d.ts +1 -0
  100. package/dist/types/index.d.ts.map +1 -1
  101. package/dist/types/plugins.d.ts.map +1 -1
  102. package/dist/types/server/IntlayerServerProvider.d.ts +2 -2
  103. package/dist/types/server/useDictionary.d.ts +2 -2
  104. package/dist/types/server/useDictionaryAsync.d.ts +2 -2
  105. package/dist/types/server/useIntlayer.d.ts +2 -2
  106. package/dist/types/server/useIntlayer.d.ts.map +1 -1
  107. package/package.json +22 -22
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types8 from "@intlayer/types";
1
+ import * as _intlayer_types10 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useRelativeTime.d.ts
4
4
 
@@ -21,7 +21,7 @@ import * as _intlayer_types8 from "@intlayer/types";
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?: _intlayer_types8.LocalesValues;
24
+ locale?: _intlayer_types10.LocalesValues;
25
25
  unit?: Intl.RelativeTimeFormatUnit;
26
26
  }) => string;
27
27
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,gDAAe,6BAAA,gBAAA,IAAA,CAAA;WAAA,gBAAA,CAAA"}
1
+ {"version":3,"file":"useRelativeTime.d.ts","names":[],"sources":["../../../../src/client/format/useRelativeTime.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwBA;;;;;;;;;;;;;;;cAAa,gDAAe,6BAAA,gBAAA,IAAA,CAAA;WAAA,iBAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as _intlayer_types7 from "@intlayer/types";
1
+ import * as _intlayer_types4 from "@intlayer/types";
2
2
 
3
3
  //#region src/client/format/useUnit.d.ts
4
4
 
@@ -20,7 +20,7 @@ import * as _intlayer_types7 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_types7.LocalesValues;
23
+ locale?: _intlayer_types4.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_core0 from "@intlayer/core";
2
+ import * as _intlayer_core1 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_core0.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_core1.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_core1 from "@intlayer/core";
3
- import * as _intlayer_types0 from "@intlayer/types";
2
+ import * as _intlayer_core0 from "@intlayer/core";
3
+ import * as _intlayer_types3 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_core1.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
15
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => _intlayer_core0.DeepTransformContent<_intlayer_types3.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 _intlayer_types12 from "@intlayer/types";
1
+ import * as _intlayer_types11 from "@intlayer/types";
2
2
  import { LocalesValues } from "@intlayer/types";
3
3
 
4
4
  //#region src/client/useLocaleStorage.d.ts
@@ -9,13 +9,13 @@ import { LocalesValues } from "@intlayer/types";
9
9
  /**
10
10
  * Get the locale cookie
11
11
  */
12
- declare const localeInStorage: _intlayer_types12.Locale;
12
+ declare const localeInStorage: _intlayer_types11.Locale;
13
13
  /**
14
14
  * @deprecated Use localeInStorage instead
15
15
  *
16
16
  * Get the locale cookie
17
17
  */
18
- declare const localeCookie: _intlayer_types12.Locale;
18
+ declare const localeCookie: _intlayer_types11.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 cookie and a function to set it
31
31
  */
32
32
  declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
33
- getLocale: () => _intlayer_types12.Locale;
33
+ getLocale: () => _intlayer_types11.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: _intlayer_types12.Locale;
44
+ localeCookie: _intlayer_types11.Locale;
45
45
  setLocaleCookie: (locale: LocalesValues) => void;
46
46
  };
47
47
  //#endregion
@@ -12,6 +12,7 @@ import { useLocale } from "./client/useLocale.js";
12
12
  import { useLocaleBase } from "./client/useLocaleBase.js";
13
13
  import { localeCookie, localeInStorage, setLocaleCookie, setLocaleInStorage, useLocaleCookie, useLocaleStorage } from "./client/useLocaleStorage.js";
14
14
  import { MarkdownProvider } from "./markdown/MarkdownProvider.js";
15
+ import "./markdown/index.js";
15
16
 
16
17
  //#region src/index.d.ts
17
18
  declare module '@intlayer/core' {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;gDAIgD,wBAAwB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;gDAIgD,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoBA;;AACiB,KADL,gBACK,CAAA,CAAA,CAAA,GADiB,CACjB,SAAA,MAAA,GAAA,MAAA,GAAb,YAAa,CAAA,CAAA,CAAA,GAAA,KAAA;;AAAD,cAIH,mBAJG,EAIkB,OAJlB;AAIhB;AA0BA;AAQA;AA6BY,KArCA,aAqCkB,CAAA,CAAA,CAAA,GArCC,CAqCD,SAAA;EAAM,KAAA,EAAA,GAAA;EACC,GAAA,EAAA,GAAA;CAAjC,GAlCA,SAkCA,GAAA,KAAA;;AAIS,cAlCA,gBAyFZ,EAzF8B,OAyF9B;AAED;;;AAEG,KAhES,kBAgEA,CAAA,CAAA,CAAA,GAhEwB,CAgExB,SAAA,MAAA,GA/DR,YA+DQ,CAAA,MAAA,EAAA;EAG0B,QAAA,EAlED,oBAkEC,CAAA,MAAA,CAAA;CAArB,CAAA,GAAA,KAAA;;AAAqC,cA9DzC,oBA8DyC,EA9DnB,OA8DmB;AAAlD,KALQ,YAKR,CAAA,CAAA,CAAA,GAL0B,CAK1B,SAAA;EAAY,QAAA,EAJJ,QAII,GAAA,MAAA;EAGH,CANV,QAAA,CAAS,QAAA,CA2BX,EAAA,KAAA,EArB4B;EA0BZ,QAAA,CAAA,EAAA,KAAA,EAAA;CACU,GA9BvB,YA8BuB,CA9BV,oBA8BU,CA9BW,CA8BX,CAAA,EAAA;EAAd,QAAA,EA9ByC,oBA8BzC,CA9B8D,CA8B9D,CAAA;CACoB,CAAA,GAAA,KAAA;AAAjB,cA5BH,cA4BG,EA5Ba,OA4Bb;;;;AASJ,UAXK,uBAWkB,CAAA,CAAG,CAAA,CAAA;EAM1B,SAAA,EAhBC,aAgBmB,CAhBL,CAgBK,CAAA;EAEpB,YAAA,EAjBI,gBAiBJ,CAjBqB,CAiBrB,CAAA;EAAgB,QAAA,EAhBhB,YAgBgB,CAhBH,CAgBG,CAAA;;;;;;;KARhB,uBAAA,GAA0B;;;;;KAM1B,kCAEA,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB"}
1
+ {"version":3,"file":"plugins.d.ts","names":[],"sources":["../../src/plugins.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AAoBA;;AACiB,KADL,gBACK,CAAA,CAAA,CAAA,GADiB,CACjB,SAAA,MAAA,GAAA,MAAA,GAAb,YAAa,CAAA,CAAA,CAAA,GAAA,KAAA;;AAAD,cAIH,mBAJG,EAIkB,OAJlB;AAIhB;AA0BA;AAQA;AA6BY,KArCA,aAqCkB,CAAA,CAAA,CAAA,GArCC,CAqCD,SAAA;EAAM,KAAA,EAAA,GAAA;EACC,GAAA,EAAA,GAAA;CAAjC,GAlCA,SAkCA,GAAA,KAAA;;AAIS,cAlCA,gBAyFZ,EAzF8B,OAyF9B;AAED;;;AAEG,KAhES,kBAgEA,CAAA,CAAA,CAAA,GAhEwB,CAgExB,SAAA,MAAA,GA/DR,YA+DQ,CAAA,MAAA,EAAA;EAG0B,QAAA,EAlED,oBAkEC,CAAA,MAAA,CAAA;CAArB,CAAA,GAAA,KAAA;;AAAqC,cA9DzC,oBA8DyC,EA9DnB,OA8DmB;AAAlD,KALQ,YAKR,CAAA,CAAA,CAAA,GAL0B,CAK1B,SAAA;EAAY,QAAA,EAJJ,QAII,GAAA,MAAA;EAGH,CANV,QAAA,CAAS,QAAA,CA2BX,EAAA,KAAA,EAAA;EAKgB,QAAA,CAAA,EAAA,KAAA,EAAA;CACU,GA9BvB,YA8BuB,CA9BV,oBA8BU,CA9BW,CA8BX,CAAA,EAAA;EAAd,QAAA,EA9ByC,oBA8BzC,CA9B8D,CA8B9D,CAAA;CACoB,CAAA,GAAA,KAAA;AAAjB,cA5BH,cA4BG,EA5Ba,OA4Bb;;;;AASJ,UAXK,uBAWkB,CAAA,CAAG,CAAA,CAAA;EAM1B,SAAA,EAhBC,aAgBmB,CAhBL,CAgBK,CAAA;EAEpB,YAAA,EAjBI,gBAiBJ,CAjBqB,CAiBrB,CAAA;EAAgB,QAAA,EAhBhB,YAgBgB,CAhBH,CAgBG,CAAA;;;;;;;KARhB,uBAAA,GAA0B;;;;;KAM1B,kCAEA,gBAAgB,mBACxB,uBAAyB,GAAG,yBAAyB"}
@@ -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
 
@@ -13,7 +13,7 @@ declare const IntlayerServerContext: FC<PropsWithChildren<{
13
13
  value?: LocalesValues;
14
14
  }>>;
15
15
  Consumer: FC<PropsWithChildren<{
16
- children: (context: LocalesValues) => react1.ReactNode;
16
+ children: (context: LocalesValues) => react0.ReactNode;
17
17
  }>>;
18
18
  _storage: () => {
19
19
  value: LocalesValues;
@@ -1,5 +1,5 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
- import * as _intlayer_core2 from "@intlayer/core";
2
+ import * as _intlayer_core3 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_core2.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>;
12
+ declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core3.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_core3 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/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_core3.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_core2.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>>;
13
13
  //#endregion
14
14
  export { useDictionaryAsync };
15
15
  //# sourceMappingURL=useDictionaryAsync.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
2
2
  import * as _intlayer_core4 from "@intlayer/core";
3
- import * as _intlayer_types10 from "@intlayer/types";
3
+ import * as _intlayer_types5 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_core4.DeepTransformContent<_intlayer_types10.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
12
+ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => _intlayer_core4.DeepTransformContent<_intlayer_types5.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
13
13
  //#endregion
14
14
  export { useIntlayer };
15
15
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/server/useIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAUa,cAAA,WAQZ,EAAA,CAAA,UARqC,cAQrC,EAAA,UAR+D,aAQ/D,CAAA,CAAA,GAAA,EAPM,CAON,EAAA,MAAA,CAAA,EANU,CAMV,EAAA,GANW,eAAA,CAAA,oBAMX,CANW,iBAAA,CAAA,yBAMX,CANW,CAMX,CAAA,EANW,yBAAA,EAAA,CAMX,CAAA"}
1
+ {"version":3,"file":"useIntlayer.d.ts","names":[],"sources":["../../../src/server/useIntlayer.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAUa,cAAA,WAQZ,EAAA,CAAA,UARqC,cAQrC,EAAA,UAR+D,aAQ/D,CAAA,CAAA,GAAA,EAPM,CAON,EAAA,MAAA,CAAA,EANU,CAMV,EAAA,GANW,eAAA,CAAA,oBAMX,CANW,gBAAA,CAAA,yBAMX,CANW,CAMX,CAAA,EANW,yBAAA,EAAA,CAMX,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intlayer",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
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.7",
108
- "@intlayer/config": "7.0.7",
109
- "@intlayer/core": "7.0.7",
110
- "@intlayer/dictionaries-entry": "7.0.7",
111
- "@intlayer/editor-react": "7.0.7",
112
- "@intlayer/types": "7.0.7",
113
- "@intlayer/unmerged-dictionaries-entry": "7.0.7",
114
- "intlayer": "7.0.7",
107
+ "@intlayer/api": "7.0.8",
108
+ "@intlayer/config": "7.0.8",
109
+ "@intlayer/core": "7.0.8",
110
+ "@intlayer/dictionaries-entry": "7.0.8",
111
+ "@intlayer/editor-react": "7.0.8",
112
+ "@intlayer/types": "7.0.8",
113
+ "@intlayer/unmerged-dictionaries-entry": "7.0.8",
114
+ "intlayer": "7.0.8",
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.2",
120
+ "@types/node": "24.10.0",
121
121
  "@types/react": ">=16.0.0",
122
122
  "@types/react-dom": ">=16.0.0",
123
- "@utils/ts-config": "7.0.7",
124
- "@utils/ts-config-types": "7.0.7",
125
- "@utils/tsdown-config": "7.0.7",
126
- "rimraf": "6.0.1",
127
- "tsdown": "0.15.11",
123
+ "@utils/ts-config": "7.0.8",
124
+ "@utils/ts-config-types": "7.0.8",
125
+ "@utils/tsdown-config": "7.0.8",
126
+ "rimraf": "6.1.0",
127
+ "tsdown": "0.16.0",
128
128
  "typescript": "5.9.3",
129
129
  "uuid": "13.0.0",
130
- "vitest": "4.0.5"
130
+ "vitest": "4.0.7"
131
131
  },
132
132
  "peerDependencies": {
133
- "@intlayer/api": "7.0.7",
134
- "@intlayer/config": "7.0.7",
135
- "@intlayer/core": "7.0.7",
136
- "@intlayer/editor-react": "7.0.7",
137
- "@intlayer/types": "7.0.7",
138
- "@intlayer/unmerged-dictionaries-entry": "7.0.7",
133
+ "@intlayer/api": "7.0.8",
134
+ "@intlayer/config": "7.0.8",
135
+ "@intlayer/core": "7.0.8",
136
+ "@intlayer/editor-react": "7.0.8",
137
+ "@intlayer/types": "7.0.8",
138
+ "@intlayer/unmerged-dictionaries-entry": "7.0.8",
139
139
  "react": ">=16.0.0",
140
140
  "react-dom": ">=16.0.0"
141
141
  },