@let-value/translate-react 1.0.13 → 1.0.15

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/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _let_value_translate0 from "@let-value/translate";
2
1
  import { Locale, LocaleTranslator, Translator } from "@let-value/translate";
3
- import * as react0 from "react";
2
+ import * as react1 from "react";
4
3
  import { ReactNode } from "react";
5
4
  import { GetTextTranslations } from "gettext-parser";
6
5
  export * from "@let-value/translate";
@@ -13,7 +12,7 @@ interface LocaleProviderProps {
13
12
  declare function LocaleProvider({
14
13
  locale,
15
14
  children
16
- }: LocaleProviderProps): react0.FunctionComponentElement<react0.ProviderProps<_let_value_translate0.Configuration | undefined>>;
15
+ }: LocaleProviderProps): react1.FunctionComponentElement<react1.ProviderProps<Locale | undefined>>;
17
16
  //#endregion
18
17
  //#region src/components/Message.d.ts
19
18
  interface MessageProps {
@@ -23,7 +22,7 @@ interface MessageProps {
23
22
  declare function Message({
24
23
  context,
25
24
  children
26
- }: MessageProps): string | react0.FunctionComponentElement<react0.FragmentProps>;
25
+ }: MessageProps): string | react1.FunctionComponentElement<react1.FragmentProps>;
27
26
  //#endregion
28
27
  //#region src/components/Plural.d.ts
29
28
  interface PluralProps {
@@ -35,7 +34,7 @@ declare function Plural({
35
34
  number,
36
35
  forms,
37
36
  context
38
- }: PluralProps): react0.FunctionComponentElement<react0.FragmentProps>;
37
+ }: PluralProps): react1.FunctionComponentElement<react1.FragmentProps>;
39
38
  //#endregion
40
39
  //#region src/components/TranslationsProvider.d.ts
41
40
  type TranslationLoader = () => Promise<GetTextTranslations>;
@@ -47,7 +46,7 @@ interface TranslationsProviderProps {
47
46
  declare function TranslationsProvider({
48
47
  translations,
49
48
  children
50
- }: TranslationsProviderProps): react0.FunctionComponentElement<react0.ProviderProps<Translator<Partial<Record<_let_value_translate0.Configuration, (GetTextTranslations | {
49
+ }: TranslationsProviderProps): react1.FunctionComponentElement<react1.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
51
50
  default: GetTextTranslations;
52
51
  }) | Promise<GetTextTranslations | {
53
52
  default: GetTextTranslations;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/components/LocaleProvider.ts","../src/components/Message.ts","../src/components/Plural.ts","../src/components/TranslationsProvider.ts","../src/hooks/useLocale.ts","../src/hooks/useTranslations.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAIiB,mBAAA;UACL;aACG;;iBAGC,cAAA;;;GAAqC,sBAAmB,MAAA,CAAA,yBAAA,MAAA,CAAA,cAAA,qBAAA,CAAA,aAAA;;;UCHvD,YAAA;;YAEH;;iBAGE,OAAA;;;GAA+B,wBAAY,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;UCL1C,WAAA;;kBAEG;;;iBAIJ,MAAA;;;;GAAmC,cAAW,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;KCNzD,iBAAA,SAA0B,QAAQ;KAClC,gBAAA,GAAmB,sBAAsB;UAE7B,yBAAA;iBACE,QAAQ,OAAO,QAAQ;aAC3B;AHPf;AAAoC,iBGUpB,oBAAA,CHVoB;EAAA,YAAA;EAAA;AAAA,CAAA,EGUkC,yBHVlC,CAAA,EGU2D,MAAA,CAAA,wBHV3D,CGU2D,MAAA,CAAA,aHV3D,CGU2D,UHV3D,CGU2D,OHV3D,CGU2D,MHV3D,CGU2D,qBAAA,CAAA,aAAA,EHV3D,CGU2D,mBHV3D,GAAA;SACxB,qBAAA;YACG,oBAAA,GAAA;EAAS,OAAA,qBAAA;AAGxB,CAAA,CAAA,GAAgB,CAAA,GAAA,UAAA,oBAAc,GAAA;EAAA,OAAA,qBAAA;SAAG,SAAA,CAAA,CAAA;;;iBILjB,SAAA,CAAA,GAAa;;;iBC0Bb,eAAA,UAAyB,SAAS"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/components/LocaleProvider.ts","../src/components/Message.ts","../src/components/Plural.ts","../src/components/TranslationsProvider.ts","../src/hooks/useLocale.ts","../src/hooks/useTranslations.ts"],"sourcesContent":[],"mappings":";;;;;;;UAIiB,mBAAA;UACL;aACG;;iBAGC,cAAA;;;GAAqC,sBAAmB,MAAA,CAAA,yBAAA,MAAA,CAAA,cAAA;;;UCHvD,YAAA;;YAEH;;iBAGE,OAAA;;;GAA+B,wBAAY,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;UCL1C,WAAA;;kBAEG;;;iBAIJ,MAAA;;;;GAAmC,cAAW,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;KCNzD,iBAAA,SAA0B,QAAQ;KAClC,gBAAA,GAAmB,sBAAsB;UAE7B,yBAAA;iBACE,QAAQ,OAAO,QAAQ;EHNzB,QAAA,CAAA,EGOF,SHPE;;AACL,iBGSI,oBAAA,CHTJ;EAAA,YAAA;EAAA;AAAA,CAAA,EGS0D,yBHT1D,CAAA,EGSmF,MAAA,CAAA,wBHTnF,CGSmF,MAAA,CAAA,aHTnF,CGSmF,UHTnF,CGSmF,OHTnF,CGSmF,MHTnF,CGSmF,MHTnF,EAAA,CGSmF,mBHTnF,GAAA;SACG,qBAAA;CAAS,CAAA,UAAA,oBAAA,GAAA;EAGR,OAAA,qBAAc;CAAA,CAAA,GAAA,CAAA,GAAA,UAAA,oBAAA,GAAA;SAAG,qBAAA;SAAQ,SAAA,CAAA,CAAA;;;iBILzB,SAAA,CAAA,GAAa;;;iBC0Bb,eAAA,UAAyB,SAAS"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import * as _let_value_translate0 from "@let-value/translate";
2
1
  import { Locale, LocaleTranslator, Translator } from "@let-value/translate";
3
- import * as react0 from "react";
2
+ import * as react1 from "react";
4
3
  import { ReactNode } from "react";
5
4
  import { GetTextTranslations } from "gettext-parser";
6
5
  export * from "@let-value/translate";
@@ -13,7 +12,7 @@ interface LocaleProviderProps {
13
12
  declare function LocaleProvider({
14
13
  locale,
15
14
  children
16
- }: LocaleProviderProps): react0.FunctionComponentElement<react0.ProviderProps<_let_value_translate0.Configuration | undefined>>;
15
+ }: LocaleProviderProps): react1.FunctionComponentElement<react1.ProviderProps<Locale | undefined>>;
17
16
  //#endregion
18
17
  //#region src/components/Message.d.ts
19
18
  interface MessageProps {
@@ -23,7 +22,7 @@ interface MessageProps {
23
22
  declare function Message({
24
23
  context,
25
24
  children
26
- }: MessageProps): string | react0.FunctionComponentElement<react0.FragmentProps>;
25
+ }: MessageProps): string | react1.FunctionComponentElement<react1.FragmentProps>;
27
26
  //#endregion
28
27
  //#region src/components/Plural.d.ts
29
28
  interface PluralProps {
@@ -35,7 +34,7 @@ declare function Plural({
35
34
  number,
36
35
  forms,
37
36
  context
38
- }: PluralProps): react0.FunctionComponentElement<react0.FragmentProps>;
37
+ }: PluralProps): react1.FunctionComponentElement<react1.FragmentProps>;
39
38
  //#endregion
40
39
  //#region src/components/TranslationsProvider.d.ts
41
40
  type TranslationLoader = () => Promise<GetTextTranslations>;
@@ -47,7 +46,7 @@ interface TranslationsProviderProps {
47
46
  declare function TranslationsProvider({
48
47
  translations,
49
48
  children
50
- }: TranslationsProviderProps): react0.FunctionComponentElement<react0.ProviderProps<Translator<Partial<Record<_let_value_translate0.Configuration, (GetTextTranslations | {
49
+ }: TranslationsProviderProps): react1.FunctionComponentElement<react1.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
51
50
  default: GetTextTranslations;
52
51
  }) | Promise<GetTextTranslations | {
53
52
  default: GetTextTranslations;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/LocaleProvider.ts","../src/components/Message.ts","../src/components/Plural.ts","../src/components/TranslationsProvider.ts","../src/hooks/useLocale.ts","../src/hooks/useTranslations.ts"],"sourcesContent":[],"mappings":";;;;;;;;UAIiB,mBAAA;UACL;aACG;;iBAGC,cAAA;;;GAAqC,sBAAmB,MAAA,CAAA,yBAAA,MAAA,CAAA,cAAA,qBAAA,CAAA,aAAA;;;UCHvD,YAAA;;YAEH;;iBAGE,OAAA;;;GAA+B,wBAAY,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;UCL1C,WAAA;;kBAEG;;;iBAIJ,MAAA;;;;GAAmC,cAAW,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;KCNzD,iBAAA,SAA0B,QAAQ;KAClC,gBAAA,GAAmB,sBAAsB;UAE7B,yBAAA;iBACE,QAAQ,OAAO,QAAQ;aAC3B;AHPf;AAAoC,iBGUpB,oBAAA,CHVoB;EAAA,YAAA;EAAA;AAAA,CAAA,EGUkC,yBHVlC,CAAA,EGU2D,MAAA,CAAA,wBHV3D,CGU2D,MAAA,CAAA,aHV3D,CGU2D,UHV3D,CGU2D,OHV3D,CGU2D,MHV3D,CGU2D,qBAAA,CAAA,aAAA,EHV3D,CGU2D,mBHV3D,GAAA;SACxB,qBAAA;YACG,oBAAA,GAAA;EAAS,OAAA,qBAAA;AAGxB,CAAA,CAAA,GAAgB,CAAA,GAAA,UAAA,oBAAc,GAAA;EAAA,OAAA,qBAAA;SAAG,SAAA,CAAA,CAAA;;;iBILjB,SAAA,CAAA,GAAa;;;iBC0Bb,eAAA,UAAyB,SAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/components/LocaleProvider.ts","../src/components/Message.ts","../src/components/Plural.ts","../src/components/TranslationsProvider.ts","../src/hooks/useLocale.ts","../src/hooks/useTranslations.ts"],"sourcesContent":[],"mappings":";;;;;;;UAIiB,mBAAA;UACL;aACG;;iBAGC,cAAA;;;GAAqC,sBAAmB,MAAA,CAAA,yBAAA,MAAA,CAAA,cAAA;;;UCHvD,YAAA;;YAEH;;iBAGE,OAAA;;;GAA+B,wBAAY,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;UCL1C,WAAA;;kBAEG;;;iBAIJ,MAAA;;;;GAAmC,cAAW,MAAA,CAAA,yBAAA,MAAA,CAAA,aAAA;;;KCNzD,iBAAA,SAA0B,QAAQ;KAClC,gBAAA,GAAmB,sBAAsB;UAE7B,yBAAA;iBACE,QAAQ,OAAO,QAAQ;EHNzB,QAAA,CAAA,EGOF,SHPE;;AACL,iBGSI,oBAAA,CHTJ;EAAA,YAAA;EAAA;AAAA,CAAA,EGS0D,yBHT1D,CAAA,EGSmF,MAAA,CAAA,wBHTnF,CGSmF,MAAA,CAAA,aHTnF,CGSmF,UHTnF,CGSmF,OHTnF,CGSmF,MHTnF,CGSmF,MHTnF,EAAA,CGSmF,mBHTnF,GAAA;SACG,qBAAA;CAAS,CAAA,UAAA,oBAAA,GAAA;EAGR,OAAA,qBAAc;CAAA,CAAA,GAAA,CAAA,GAAA,UAAA,oBAAA,GAAA;SAAG,qBAAA;SAAQ,SAAA,CAAA,CAAA;;;iBILzB,SAAA,CAAA,GAAa;;;iBC0Bb,eAAA,UAAyB,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@let-value/translate-react",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -24,11 +24,10 @@
24
24
  "test": "node --test"
25
25
  },
26
26
  "dependencies": {
27
- "@let-value/translate": "1.0.13",
28
- "radash": "^12.1.1"
27
+ "@let-value/translate": "1.0.15"
29
28
  },
30
29
  "devDependencies": {
31
- "@let-value/translate-e2e": "1.0.13",
30
+ "@let-value/translate-e2e": "1.0.15",
32
31
  "@types/gettext-parser": "8.0.0",
33
32
  "@types/react": "19.1.13",
34
33
  "@types/react-dom": "19.1.9",