@verbaly/vue 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 { App, PropType, VNodeChild, WritableComputedRef } from "vue";
2
2
  import { DictionaryInput, Params, RichLink, TFunction, Verbaly } from "verbaly";
3
3
  //#region src/index.d.ts
4
- interface VerbalyPlugin {
4
+ export interface VerbalyPlugin {
5
5
  install(app: App): void;
6
6
  }
7
- declare function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin;
8
- declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
9
- declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
10
- declare function useLocale(): WritableComputedRef<string>;
11
- type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;
12
- declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ export declare function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin;
8
+ export declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
9
+ export declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
10
+ export declare function useLocale(): WritableComputedRef<string>;
11
+ export type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;
12
+ export declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  id: {
14
14
  type: StringConstructor;
15
15
  required: true;
@@ -69,5 +69,5 @@ declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropType
69
69
  links: Record<string, RichLink>;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
71
  //#endregion
72
- export { type Params, type TFunction, Trans, TransComponents, type Verbaly, VerbalyPlugin, useLocale, useT, useVerbaly, verbalyPlugin };
72
+ export type { Params, TFunction, Verbaly };
73
73
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { App, PropType, VNodeChild, WritableComputedRef } from "vue";
2
2
  import { DictionaryInput, Params, RichLink, TFunction, Verbaly } from "verbaly";
3
3
  //#region src/index.d.ts
4
- interface VerbalyPlugin {
4
+ export interface VerbalyPlugin {
5
5
  install(app: App): void;
6
6
  }
7
- declare function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin;
8
- declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
9
- declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
10
- declare function useLocale(): WritableComputedRef<string>;
11
- type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;
12
- declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
+ export declare function verbalyPlugin<D extends DictionaryInput>(instance: Verbaly<D>): VerbalyPlugin;
8
+ export declare function useVerbaly<D extends DictionaryInput = DictionaryInput>(): Verbaly<D>;
9
+ export declare function useT<D extends DictionaryInput = DictionaryInput>(): TFunction<D>;
10
+ export declare function useLocale(): WritableComputedRef<string>;
11
+ export type TransComponents = Record<string, (children: VNodeChild[]) => VNodeChild>;
12
+ export declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  id: {
14
14
  type: StringConstructor;
15
15
  required: true;
@@ -69,5 +69,5 @@ declare const Trans: import("vue").DefineComponent<import("vue").ExtractPropType
69
69
  links: Record<string, RichLink>;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
71
  //#endregion
72
- export { type Params, type TFunction, Trans, TransComponents, type Verbaly, VerbalyPlugin, useLocale, useT, useVerbaly, verbalyPlugin };
72
+ export type { Params, TFunction, Verbaly };
73
73
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbaly/vue",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "Vue 3 bindings for Verbaly: composables over the reactive core.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -48,12 +48,12 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "vue": "^3.4.0",
51
- "verbaly": "^0.49.0"
51
+ "verbaly": "^0.50.0"
52
52
  },
53
53
  "devDependencies": {
54
- "happy-dom": "^20.12.1",
54
+ "happy-dom": "^20.14.0",
55
55
  "vue": "^3.5.42",
56
- "verbaly": "^0.49.0"
56
+ "verbaly": "^0.50.0"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsdown",