@fy-/fws-vue 2.0.38 → 2.0.40

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 (3) hide show
  1. package/index.ts +2 -1
  2. package/package.json +1 -1
  3. package/types.d.ts +16 -0
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Plugin, App } from "vue";
2
- import i18next from "i18next";
2
+ import i18next, { t } from "i18next";
3
3
  import mitt from "mitt";
4
4
  import { Emitter } from "mitt";
5
5
  import { useServerRouter } from "./stores/serverRouter";
@@ -28,6 +28,7 @@ import {
28
28
  } from "./composables/templating";
29
29
  import { useRest } from "./composables/rest";
30
30
  export * from "./stores/serverRouter";
31
+ export type * from "./types";
31
32
 
32
33
  // Components/UI/Transitions
33
34
  import SlideTransition from "./components/ui/transitions/SlideTransition.vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.0.38",
3
+ "version": "2.0.40",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {
package/types.d.ts CHANGED
@@ -63,3 +63,19 @@ declare module "vue" {
63
63
  ClientOnly: typeof ClientOnly;
64
64
  }
65
65
  }
66
+
67
+ declare module "@vue/runtime-core" {
68
+ export interface ComponentCustomProperties {
69
+ $t: typeof i18next.t;
70
+ $eventBus: Emitter<Events>;
71
+ $cropText: typeof cropText;
72
+ $formatBytes: typeof formatBytes;
73
+ $formatTimeago: typeof formatTimeago;
74
+ $formatDatetime: typeof formatDatetime;
75
+ $formatDate: typeof formatDate;
76
+ $getContrastingTextColor: typeof getContrastingTextColor;
77
+ }
78
+ export interface GlobalComponents {
79
+ ClientOnly: typeof ClientOnly;
80
+ }
81
+ }