@verbaly/react 0.49.0 → 0.50.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,15 +1,15 @@
1
1
  import { ReactElement, ReactNode } from "react";
2
2
  import { DictionaryInput, Params, RichLink, TFunction, Verbaly } from "verbaly";
3
3
  //#region src/index.d.ts
4
- interface VerbalyProviderProps<D extends DictionaryInput> {
4
+ export interface VerbalyProviderProps<D extends DictionaryInput> {
5
5
  instance: Verbaly<D>;
6
6
  children?: ReactNode;
7
7
  }
8
- declare function VerbalyProvider<D extends DictionaryInput>(props: VerbalyProviderProps<D>): ReactElement;
9
- declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
10
- declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
11
- declare function useLocale(): [string, (locale: string) => void];
12
- interface TransProps {
8
+ export declare function VerbalyProvider<D extends DictionaryInput>(props: VerbalyProviderProps<D>): ReactElement;
9
+ export declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
10
+ export declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
11
+ export declare function useLocale(): [string, (locale: string) => void];
12
+ export interface TransProps {
13
13
  id: string;
14
14
  values?: Params;
15
15
  instance?: Verbaly;
@@ -17,7 +17,7 @@ interface TransProps {
17
17
  richTags?: string[];
18
18
  links?: Record<string, RichLink>;
19
19
  }
20
- declare function Trans(props: TransProps): ReactElement;
20
+ export declare function Trans(props: TransProps): ReactElement;
21
21
  //#endregion
22
- export { type Params, type TFunction, Trans, TransProps, type Verbaly, VerbalyProvider, VerbalyProviderProps, useLocale, useT, useVerbaly };
22
+ export type { Params, TFunction, Verbaly };
23
23
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { ReactElement, ReactNode } from "react";
2
2
  import { DictionaryInput, Params, RichLink, TFunction, Verbaly } from "verbaly";
3
3
  //#region src/index.d.ts
4
- interface VerbalyProviderProps<D extends DictionaryInput> {
4
+ export interface VerbalyProviderProps<D extends DictionaryInput> {
5
5
  instance: Verbaly<D>;
6
6
  children?: ReactNode;
7
7
  }
8
- declare function VerbalyProvider<D extends DictionaryInput>(props: VerbalyProviderProps<D>): ReactElement;
9
- declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
10
- declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
11
- declare function useLocale(): [string, (locale: string) => void];
12
- interface TransProps {
8
+ export declare function VerbalyProvider<D extends DictionaryInput>(props: VerbalyProviderProps<D>): ReactElement;
9
+ export declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
10
+ export declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
11
+ export declare function useLocale(): [string, (locale: string) => void];
12
+ export interface TransProps {
13
13
  id: string;
14
14
  values?: Params;
15
15
  instance?: Verbaly;
@@ -17,7 +17,7 @@ interface TransProps {
17
17
  richTags?: string[];
18
18
  links?: Record<string, RichLink>;
19
19
  }
20
- declare function Trans(props: TransProps): ReactElement;
20
+ export declare function Trans(props: TransProps): ReactElement;
21
21
  //#endregion
22
- export { type Params, type TFunction, Trans, TransProps, type Verbaly, VerbalyProvider, VerbalyProviderProps, useLocale, useT, useVerbaly };
22
+ export type { Params, TFunction, Verbaly };
23
23
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/react",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "React bindings for Verbaly: hooks over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -48,17 +48,17 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": "^18.0.0 || ^19.0.0",
51
- "verbaly": "^0.49.0"
51
+ "verbaly": "^0.50.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.18",
55
- "@types/react-dom": "^19.2.5",
56
- "happy-dom": "^20.12.1",
55
+ "@types/react-dom": "^19.2.7",
56
+ "happy-dom": "^20.14.0",
57
57
  "preact": "^10.29.8",
58
58
  "preact-render-to-string": "^6.7.0",
59
59
  "react": "^19.2.8",
60
60
  "react-dom": "^19.2.8",
61
- "verbaly": "^0.49.0"
61
+ "verbaly": "^0.50.0"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "tsdown",