@fy-/fws-vue 2.0.36 → 2.0.37

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 +0 -16
  2. package/package.json +1 -1
  3. package/types.d.ts +38 -0
package/index.ts CHANGED
@@ -90,22 +90,6 @@ function createFWS(): Plugin {
90
90
  };
91
91
  }
92
92
 
93
- declare module "vue" {
94
- export interface ComponentCustomProperties {
95
- $t: typeof i18next.t;
96
- $eventBus: Emitter<Events>;
97
- $cropText: typeof cropText;
98
- $formatBytes: typeof formatBytes;
99
- $formatTimeago: typeof formatTimeago;
100
- $formatDatetime: typeof formatDatetime;
101
- $formatDate: typeof formatDate;
102
- $getContrastingTextColor: typeof getContrastingTextColor;
103
- }
104
- export interface GlobalComponents {
105
- ClientOnly: typeof ClientOnly;
106
- }
107
- }
108
- export type eventBusType = Emitter<Events>;
109
93
  export {
110
94
  i18nextPromise,
111
95
  useTranslation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.0.36",
3
+ "version": "2.0.37",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {
package/types.d.ts CHANGED
@@ -1,3 +1,16 @@
1
+ import {
2
+ cropText,
3
+ formatBytes,
4
+ formatDate,
5
+ formatDatetime,
6
+ formatTimeago,
7
+ getContrastingTextColor,
8
+ } from "./composables/templating";
9
+ import { Emitter } from "mitt";
10
+ import { Events } from "./composables/event-bus";
11
+ import i18next from "i18next";
12
+ import { ClientOnly } from "./components/ssr/ClientOnly";
13
+
1
14
  export interface BreadcrumbLink {
2
15
  name: string;
3
16
  to?: string;
@@ -25,3 +38,28 @@ export interface FilterDataItems {
25
38
  onChangeValue?: (form: any, value: any) => void;
26
39
  focused?: boolean;
27
40
  }
41
+
42
+ export type $t = typeof i18next.t;
43
+ export type $eventBus = Emitter<Events>;
44
+ export type $cropText = typeof cropText;
45
+ export type $formatBytes = typeof formatBytes;
46
+ export type $formatTimeago = typeof formatTimeago;
47
+ export type $formatDatetime = typeof formatDatetime;
48
+ export type $formatDate = typeof formatDate;
49
+ export type $getContrastingTextColor = typeof getContrastingTextColor;
50
+
51
+ declare module "vue" {
52
+ export interface ComponentCustomProperties {
53
+ $t: typeof i18next.t;
54
+ $eventBus: Emitter<Events>;
55
+ $cropText: typeof cropText;
56
+ $formatBytes: typeof formatBytes;
57
+ $formatTimeago: typeof formatTimeago;
58
+ $formatDatetime: typeof formatDatetime;
59
+ $formatDate: typeof formatDate;
60
+ $getContrastingTextColor: typeof getContrastingTextColor;
61
+ }
62
+ export interface GlobalComponents {
63
+ ClientOnly: typeof ClientOnly;
64
+ }
65
+ }