@let-value/translate-react 1.0.30 → 1.1.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.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Locale, LocaleTranslator, Translator } from "@let-value/translate";
2
- import * as react5 from "react";
2
+ import * as react0 from "react";
3
3
  import { ReactNode } from "react";
4
4
  import { GetTextTranslations } from "gettext-parser";
5
5
  export * from "@let-value/translate";
@@ -12,7 +12,7 @@ interface LocaleProviderProps {
12
12
  declare function LocaleProvider({
13
13
  locale,
14
14
  children
15
- }: LocaleProviderProps): react5.FunctionComponentElement<react5.ProviderProps<Locale | undefined>>;
15
+ }: LocaleProviderProps): react0.FunctionComponentElement<react0.ProviderProps<Locale | undefined>>;
16
16
  //#endregion
17
17
  //#region src/components/Message.d.ts
18
18
  interface MessageProps {
@@ -22,7 +22,7 @@ interface MessageProps {
22
22
  declare function Message({
23
23
  context,
24
24
  children
25
- }: MessageProps): string | react5.FunctionComponentElement<react5.FragmentProps>;
25
+ }: MessageProps): string | react0.FunctionComponentElement<react0.FragmentProps>;
26
26
  //#endregion
27
27
  //#region src/components/Plural.d.ts
28
28
  interface PluralProps {
@@ -34,7 +34,7 @@ declare function Plural({
34
34
  number,
35
35
  forms,
36
36
  context
37
- }: PluralProps): react5.FunctionComponentElement<react5.FragmentProps>;
37
+ }: PluralProps): react0.FunctionComponentElement<react0.FragmentProps>;
38
38
  //#endregion
39
39
  //#region src/components/TranslationsProvider.d.ts
40
40
  type TranslationLoader = () => Promise<GetTextTranslations>;
@@ -46,7 +46,7 @@ interface TranslationsProviderProps {
46
46
  declare function TranslationsProvider({
47
47
  translations,
48
48
  children
49
- }: TranslationsProviderProps): react5.FunctionComponentElement<react5.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
49
+ }: TranslationsProviderProps): react0.FunctionComponentElement<react0.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
50
50
  default: GetTextTranslations;
51
51
  }) | Promise<GetTextTranslations | {
52
52
  default: GetTextTranslations;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Locale, LocaleTranslator, Translator } from "@let-value/translate";
2
- import * as react3 from "react";
2
+ import * as react5 from "react";
3
3
  import { ReactNode } from "react";
4
4
  import { GetTextTranslations } from "gettext-parser";
5
5
  export * from "@let-value/translate";
@@ -12,7 +12,7 @@ interface LocaleProviderProps {
12
12
  declare function LocaleProvider({
13
13
  locale,
14
14
  children
15
- }: LocaleProviderProps): react3.FunctionComponentElement<react3.ProviderProps<Locale | undefined>>;
15
+ }: LocaleProviderProps): react5.FunctionComponentElement<react5.ProviderProps<Locale | undefined>>;
16
16
  //#endregion
17
17
  //#region src/components/Message.d.ts
18
18
  interface MessageProps {
@@ -22,7 +22,7 @@ interface MessageProps {
22
22
  declare function Message({
23
23
  context,
24
24
  children
25
- }: MessageProps): string | react3.FunctionComponentElement<react3.FragmentProps>;
25
+ }: MessageProps): string | react5.FunctionComponentElement<react5.FragmentProps>;
26
26
  //#endregion
27
27
  //#region src/components/Plural.d.ts
28
28
  interface PluralProps {
@@ -34,7 +34,7 @@ declare function Plural({
34
34
  number,
35
35
  forms,
36
36
  context
37
- }: PluralProps): react3.FunctionComponentElement<react3.FragmentProps>;
37
+ }: PluralProps): react5.FunctionComponentElement<react5.FragmentProps>;
38
38
  //#endregion
39
39
  //#region src/components/TranslationsProvider.d.ts
40
40
  type TranslationLoader = () => Promise<GetTextTranslations>;
@@ -46,7 +46,7 @@ interface TranslationsProviderProps {
46
46
  declare function TranslationsProvider({
47
47
  translations,
48
48
  children
49
- }: TranslationsProviderProps): react3.FunctionComponentElement<react3.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
49
+ }: TranslationsProviderProps): react5.FunctionComponentElement<react5.ProviderProps<Translator<Partial<Record<Locale, (GetTextTranslations | {
50
50
  default: GetTextTranslations;
51
51
  }) | Promise<GetTextTranslations | {
52
52
  default: GetTextTranslations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@let-value/translate-react",
3
- "version": "1.0.30",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -24,10 +24,10 @@
24
24
  "test": "node --test"
25
25
  },
26
26
  "dependencies": {
27
- "@let-value/translate": "1.0.30"
27
+ "@let-value/translate": "1.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@let-value/translate-e2e": "1.0.30",
30
+ "@let-value/translate-e2e": "1.1.0",
31
31
  "@types/gettext-parser": "8.0.0",
32
32
  "@types/react": "19.1.13",
33
33
  "@types/react-dom": "19.1.9",