@vueuse/integrations 9.9.0 → 9.10.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/index.d.ts +7 -7
- package/package.json +5 -5
- package/useAsyncValidator.d.ts +1 -1
- package/useChangeCase.d.ts +1 -1
- package/useDrauu.d.ts +1 -1
- package/useFuse.d.ts +2 -2
- package/useNProgress.d.ts +2 -2
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { JwtPayload, JwtHeader } from 'jwt-decode';
|
|
|
15
15
|
import nprogress, { NProgressOptions } from 'nprogress';
|
|
16
16
|
import QRCode from 'qrcode';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
type AsyncValidatorError = Error & {
|
|
19
19
|
errors: ValidateError[];
|
|
20
20
|
fields: Record<string, ValidateError[]>;
|
|
21
21
|
};
|
|
@@ -157,7 +157,7 @@ declare namespace changeCase {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
type ChangeCaseType = keyof typeof changeCase;
|
|
161
161
|
declare function useChangeCase(input: MaybeRef<string>, type: ChangeCaseType, options?: Options | undefined): WritableComputedRef<string>;
|
|
162
162
|
declare function useChangeCase(input: MaybeComputedRef<string>, type: ChangeCaseType, options?: Options | undefined): ComputedRef<string>;
|
|
163
163
|
|
|
@@ -210,7 +210,7 @@ declare function useCookies(dependencies?: string[] | null, { doNotParse, autoUp
|
|
|
210
210
|
removeChangeListener: (callback: universal_cookie.CookieChangeListener) => void;
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
type UseDrauuOptions = Omit<Options$1, 'el'>;
|
|
214
214
|
interface UseDrauuReturn {
|
|
215
215
|
drauuInstance: Ref<Drauu | undefined>;
|
|
216
216
|
load: (svg: string) => void;
|
|
@@ -289,7 +289,7 @@ interface UseFocusTrapReturn {
|
|
|
289
289
|
*/
|
|
290
290
|
declare function useFocusTrap(target: MaybeElementRef, options?: UseFocusTrapOptions): UseFocusTrapReturn;
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
type FuseOptions<T> = Fuse.IFuseOptions<T>;
|
|
293
293
|
interface UseFuseOptions<T> {
|
|
294
294
|
fuseOptions?: FuseOptions<T>;
|
|
295
295
|
resultLimit?: number;
|
|
@@ -306,7 +306,7 @@ declare function useFuse<DataItem>(search: MaybeComputedRef<string>, data: Maybe
|
|
|
306
306
|
}>;
|
|
307
307
|
results: ComputedRef<Fuse.FuseResult<DataItem>[]>;
|
|
308
308
|
};
|
|
309
|
-
|
|
309
|
+
type UseFuseReturn = ReturnType<typeof useFuse>;
|
|
310
310
|
|
|
311
311
|
interface UseIDBOptions extends ConfigurableFlush {
|
|
312
312
|
/**
|
|
@@ -360,7 +360,7 @@ interface UseJwtReturn<Payload, Header, Fallback> {
|
|
|
360
360
|
*/
|
|
361
361
|
declare function useJwt<Payload extends object = JwtPayload, Header extends object = JwtHeader, Fallback = null>(encodedJwt: MaybeComputedRef<string>, options?: UseJwtOptions<Fallback>): UseJwtReturn<Payload, Header, Fallback>;
|
|
362
362
|
|
|
363
|
-
|
|
363
|
+
type UseNProgressOptions = Partial<NProgressOptions>;
|
|
364
364
|
/**
|
|
365
365
|
* Reactive progress bar.
|
|
366
366
|
*
|
|
@@ -373,7 +373,7 @@ declare function useNProgress(currentProgress?: MaybeComputedRef<number | null |
|
|
|
373
373
|
done: (force?: boolean | undefined) => nprogress.NProgress;
|
|
374
374
|
remove: () => void;
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
type UseNProgressReturn = ReturnType<typeof useNProgress>;
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
379
|
* Wrapper for qrcode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueuse/integrations",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"description": "Integration wrappers for utility libraries",
|
|
5
5
|
"author": "Anthony Fu <https://github.com/antfu>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -147,18 +147,18 @@
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
"dependencies": {
|
|
150
|
-
"@vueuse/core": "9.
|
|
151
|
-
"@vueuse/shared": "9.
|
|
150
|
+
"@vueuse/core": "9.10.0",
|
|
151
|
+
"@vueuse/shared": "9.10.0",
|
|
152
152
|
"vue-demi": "*"
|
|
153
153
|
},
|
|
154
154
|
"devDependencies": {
|
|
155
155
|
"@types/nprogress": "^0.2.0",
|
|
156
156
|
"@types/qrcode": "^1.5.0",
|
|
157
157
|
"async-validator": "^4.2.5",
|
|
158
|
-
"axios": "^1.
|
|
158
|
+
"axios": "^1.2.2",
|
|
159
159
|
"change-case": "^4.1.2",
|
|
160
160
|
"drauu": "^0.3.2",
|
|
161
|
-
"focus-trap": "^7.
|
|
161
|
+
"focus-trap": "^7.2.0",
|
|
162
162
|
"fuse.js": "^6.6.2",
|
|
163
163
|
"idb-keyval": "^6.2.0",
|
|
164
164
|
"jwt-decode": "^3.1.2",
|
package/useAsyncValidator.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { MaybeComputedRef } from '@vueuse/shared';
|
|
|
2
2
|
import { ValidateError, ValidateOption, Rules } from 'async-validator';
|
|
3
3
|
import { Ref } from 'vue-demi';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type AsyncValidatorError = Error & {
|
|
6
6
|
errors: ValidateError[];
|
|
7
7
|
fields: Record<string, ValidateError[]>;
|
|
8
8
|
};
|
package/useChangeCase.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare namespace changeCase {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
type ChangeCaseType = keyof typeof changeCase;
|
|
33
33
|
declare function useChangeCase(input: MaybeRef<string>, type: ChangeCaseType, options?: Options | undefined): WritableComputedRef<string>;
|
|
34
34
|
declare function useChangeCase(input: MaybeComputedRef<string>, type: ChangeCaseType, options?: Options | undefined): ComputedRef<string>;
|
|
35
35
|
|
package/useDrauu.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Ref } from 'vue-demi';
|
|
|
2
2
|
import { Options, Drauu, Brush } from 'drauu';
|
|
3
3
|
import { EventHookOn, MaybeComputedElementRef } from '@vueuse/core';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type UseDrauuOptions = Omit<Options, 'el'>;
|
|
6
6
|
interface UseDrauuReturn {
|
|
7
7
|
drauuInstance: Ref<Drauu | undefined>;
|
|
8
8
|
load: (svg: string) => void;
|
package/useFuse.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ComputedRef } from 'vue-demi';
|
|
|
3
3
|
import Fuse from 'fuse.js';
|
|
4
4
|
import { MaybeComputedRef } from '@vueuse/shared';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type FuseOptions<T> = Fuse.IFuseOptions<T>;
|
|
7
7
|
interface UseFuseOptions<T> {
|
|
8
8
|
fuseOptions?: FuseOptions<T>;
|
|
9
9
|
resultLimit?: number;
|
|
@@ -20,6 +20,6 @@ declare function useFuse<DataItem>(search: MaybeComputedRef<string>, data: Maybe
|
|
|
20
20
|
}>;
|
|
21
21
|
results: ComputedRef<Fuse.FuseResult<DataItem>[]>;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type UseFuseReturn = ReturnType<typeof useFuse>;
|
|
24
24
|
|
|
25
25
|
export { FuseOptions, UseFuseOptions, UseFuseReturn, useFuse };
|
package/useNProgress.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as vue_demi from 'vue-demi';
|
|
|
2
2
|
import nprogress, { NProgressOptions } from 'nprogress';
|
|
3
3
|
import { MaybeComputedRef } from '@vueuse/shared';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type UseNProgressOptions = Partial<NProgressOptions>;
|
|
6
6
|
/**
|
|
7
7
|
* Reactive progress bar.
|
|
8
8
|
*
|
|
@@ -15,6 +15,6 @@ declare function useNProgress(currentProgress?: MaybeComputedRef<number | null |
|
|
|
15
15
|
done: (force?: boolean | undefined) => nprogress.NProgress;
|
|
16
16
|
remove: () => void;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type UseNProgressReturn = ReturnType<typeof useNProgress>;
|
|
19
19
|
|
|
20
20
|
export { UseNProgressOptions, UseNProgressReturn, useNProgress };
|