@vueuse/integrations 13.0.0-beta.2 → 13.1.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.mts +4 -3
- package/package.json +8 -7
- package/useAsyncValidator.d.mts +2 -1
- package/useAxios.d.mts +2 -1
- package/useChangeCase.d.mts +2 -1
- package/useDrauu.d.mts +2 -1
- package/useFocusTrap/component.d.mts +2 -1
- package/useFocusTrap.d.mts +2 -1
- package/useFuse.d.mts +2 -1
- package/useIDBKeyval.d.mts +2 -1
- package/useJwt.d.mts +2 -1
- package/useNProgress.d.mts +2 -1
- package/useSortable.d.mts +4 -3
package/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ import { Options } from 'change-case';
|
|
|
7
7
|
import * as universal_cookie from 'universal-cookie';
|
|
8
8
|
import universal_cookie__default from 'universal-cookie';
|
|
9
9
|
import { IncomingMessage } from 'node:http';
|
|
10
|
-
import { EventHookOn, MaybeComputedElementRef, Fn, Arrayable, ConfigurableDocument } from '@vueuse/core';
|
|
10
|
+
import { EventHookOn, MaybeComputedElementRef, Fn, Arrayable, ConfigurableDocument, MaybeElement } from '@vueuse/core';
|
|
11
11
|
import { Options as Options$1, Drauu, Brush } from 'drauu';
|
|
12
12
|
import { Options as Options$2, ActivateOptions, DeactivateOptions } from 'focus-trap';
|
|
13
13
|
import * as fuse_js from 'fuse.js';
|
|
@@ -427,7 +427,7 @@ interface UseSortableReturn {
|
|
|
427
427
|
}
|
|
428
428
|
type UseSortableOptions = Options$3 & ConfigurableDocument;
|
|
429
429
|
declare function useSortable<T>(selector: string, list: MaybeRefOrGetter<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
430
|
-
declare function useSortable<T>(el: MaybeRefOrGetter<
|
|
430
|
+
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list: MaybeRefOrGetter<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
431
431
|
/**
|
|
432
432
|
* Inserts a element into the DOM at a given index.
|
|
433
433
|
* @param parentElement
|
|
@@ -444,4 +444,5 @@ declare function insertNodeAt(parentElement: Element, element: Element, index: n
|
|
|
444
444
|
declare function removeNode(node: Node): void;
|
|
445
445
|
declare function moveArrayElement<T>(list: MaybeRefOrGetter<T[]>, from: number, to: number, e?: Sortable.SortableEvent | null): void;
|
|
446
446
|
|
|
447
|
-
export {
|
|
447
|
+
export { createCookies, insertNodeAt, moveArrayElement, removeNode, useAsyncValidator, useAxios, useChangeCase, useCookies, useDrauu, useFocusTrap, useFuse, useIDBKeyval, useJwt, useNProgress, useQRCode, useSortable };
|
|
448
|
+
export type { AsyncValidatorError, ChangeCaseType, EasyUseAxiosReturn, FuseOptions, StrictUseAxiosReturn, UseAsyncValidatorExecuteReturn, UseAsyncValidatorOptions, UseAsyncValidatorReturn, UseAxiosOptions, UseAxiosOptionsBase, UseAxiosOptionsWithInitialData, UseAxiosReturn, UseDrauuOptions, UseDrauuReturn, UseFocusTrapOptions, UseFocusTrapReturn, UseFuseOptions, UseFuseReturn, UseIDBKeyvalReturn, UseIDBOptions, UseJwtOptions, UseJwtReturn, UseNProgressOptions, UseNProgressReturn, UseSortableOptions, UseSortableReturn };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueuse/integrations",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.1.0",
|
|
5
5
|
"description": "Integration wrappers for utility libraries",
|
|
6
6
|
"author": "Anthony Fu <https://github.com/antfu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"nprogress": "^0.2",
|
|
63
63
|
"qrcode": "^1.5",
|
|
64
64
|
"sortablejs": "^1",
|
|
65
|
-
"universal-cookie": "^7"
|
|
65
|
+
"universal-cookie": "^7",
|
|
66
|
+
"vue": "^3.5.0"
|
|
66
67
|
},
|
|
67
68
|
"peerDependenciesMeta": {
|
|
68
69
|
"async-validator": {
|
|
@@ -103,16 +104,15 @@
|
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
"dependencies": {
|
|
106
|
-
"
|
|
107
|
-
"@vueuse/shared": "13.
|
|
108
|
-
"@vueuse/core": "13.0.0-beta.2"
|
|
107
|
+
"@vueuse/core": "13.1.0",
|
|
108
|
+
"@vueuse/shared": "13.1.0"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@types/nprogress": "^0.2.3",
|
|
112
112
|
"@types/qrcode": "^1.5.5",
|
|
113
113
|
"@types/sortablejs": "^1.15.8",
|
|
114
114
|
"async-validator": "^4.2.5",
|
|
115
|
-
"axios": "^1.8.
|
|
115
|
+
"axios": "^1.8.4",
|
|
116
116
|
"change-case": "^5.4.4",
|
|
117
117
|
"drauu": "^0.4.3",
|
|
118
118
|
"focus-trap": "^7.6.4",
|
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
"universal-cookie": "^7.2.2"
|
|
126
126
|
},
|
|
127
127
|
"scripts": {
|
|
128
|
-
"build": "rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild"
|
|
128
|
+
"build": "rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild",
|
|
129
|
+
"test:attw": "attw --pack --config-path ../../.attw.json ."
|
|
129
130
|
}
|
|
130
131
|
}
|
package/useAsyncValidator.d.mts
CHANGED
|
@@ -44,4 +44,5 @@ interface UseAsyncValidatorOptions {
|
|
|
44
44
|
*/
|
|
45
45
|
declare function useAsyncValidator(value: MaybeRefOrGetter<Record<string, any>>, rules: MaybeRefOrGetter<Rules>, options?: UseAsyncValidatorOptions): UseAsyncValidatorReturn & PromiseLike<UseAsyncValidatorReturn>;
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { useAsyncValidator };
|
|
48
|
+
export type { AsyncValidatorError, UseAsyncValidatorExecuteReturn, UseAsyncValidatorOptions, UseAsyncValidatorReturn };
|
package/useAxios.d.mts
CHANGED
|
@@ -103,4 +103,5 @@ declare function useAxios<T = any, R = AxiosResponse<T>, D = any>(config?: Axios
|
|
|
103
103
|
declare function useAxios<T = any, R = AxiosResponse<T>, D = any>(instance?: AxiosInstance): EasyUseAxiosReturn<T, R, D> & Promise<EasyUseAxiosReturn<T, R, D>>;
|
|
104
104
|
declare function useAxios<T = any, R = AxiosResponse<T>, D = any>(config?: AxiosRequestConfig<D>, instance?: AxiosInstance): EasyUseAxiosReturn<T, R, D> & Promise<EasyUseAxiosReturn<T, R, D>>;
|
|
105
105
|
|
|
106
|
-
export {
|
|
106
|
+
export { useAxios };
|
|
107
|
+
export type { EasyUseAxiosReturn, StrictUseAxiosReturn, UseAxiosOptions, UseAxiosOptionsBase, UseAxiosOptionsWithInitialData, UseAxiosReturn };
|
package/useChangeCase.d.mts
CHANGED
|
@@ -11,4 +11,5 @@ type ChangeCaseType = ChangeCaseKeys[keyof ChangeCaseKeys];
|
|
|
11
11
|
declare function useChangeCase(input: MaybeRef<string>, type: MaybeRefOrGetter<ChangeCaseType>, options?: MaybeRefOrGetter<Options> | undefined): WritableComputedRef<string>;
|
|
12
12
|
declare function useChangeCase(input: MaybeRefOrGetter<string>, type: MaybeRefOrGetter<ChangeCaseType>, options?: MaybeRefOrGetter<Options> | undefined): ComputedRef<string>;
|
|
13
13
|
|
|
14
|
-
export {
|
|
14
|
+
export { useChangeCase };
|
|
15
|
+
export type { ChangeCaseType };
|
package/useDrauu.d.mts
CHANGED
|
@@ -29,4 +29,5 @@ interface UseDrauuReturn {
|
|
|
29
29
|
*/
|
|
30
30
|
declare function useDrauu(target: MaybeComputedElementRef, options?: UseDrauuOptions): UseDrauuReturn;
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { useDrauu };
|
|
33
|
+
export type { UseDrauuOptions, UseDrauuReturn };
|
|
@@ -14,4 +14,5 @@ interface ComponentUseFocusTrapOptions extends RenderableComponent {
|
|
|
14
14
|
}
|
|
15
15
|
declare const UseFocusTrap: vue.DefineComponent<ComponentUseFocusTrapOptions, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<ComponentUseFocusTrapOptions> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
|
|
17
|
-
export {
|
|
17
|
+
export { UseFocusTrap };
|
|
18
|
+
export type { ComponentUseFocusTrapOptions };
|
package/useFocusTrap.d.mts
CHANGED
|
@@ -51,4 +51,5 @@ interface UseFocusTrapReturn {
|
|
|
51
51
|
*/
|
|
52
52
|
declare function useFocusTrap(target: Arrayable<MaybeRefOrGetter<string> | MaybeComputedElementRef>, options?: UseFocusTrapOptions): UseFocusTrapReturn;
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { useFocusTrap };
|
|
55
|
+
export type { UseFocusTrapOptions, UseFocusTrapReturn };
|
package/useFuse.d.mts
CHANGED
|
@@ -29,4 +29,5 @@ declare function useFuse<DataItem>(search: MaybeRefOrGetter<string>, data: Maybe
|
|
|
29
29
|
};
|
|
30
30
|
type UseFuseReturn = ReturnType<typeof useFuse>;
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { useFuse };
|
|
33
|
+
export type { FuseOptions, UseFuseOptions, UseFuseReturn };
|
package/useIDBKeyval.d.mts
CHANGED
|
@@ -40,4 +40,5 @@ interface UseIDBKeyvalReturn<T> {
|
|
|
40
40
|
*/
|
|
41
41
|
declare function useIDBKeyval<T>(key: IDBValidKey, initialValue: MaybeRefOrGetter<T>, options?: UseIDBOptions): UseIDBKeyvalReturn<T>;
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { useIDBKeyval };
|
|
44
|
+
export type { UseIDBKeyvalReturn, UseIDBOptions };
|
package/useJwt.d.mts
CHANGED
|
@@ -24,4 +24,5 @@ interface UseJwtReturn<Payload, Header, Fallback> {
|
|
|
24
24
|
*/
|
|
25
25
|
declare function useJwt<Payload extends object = JwtPayload, Header extends object = JwtHeader, Fallback = null>(encodedJwt: MaybeRefOrGetter<string>, options?: UseJwtOptions<Fallback>): UseJwtReturn<Payload, Header, Fallback>;
|
|
26
26
|
|
|
27
|
-
export {
|
|
27
|
+
export { useJwt };
|
|
28
|
+
export type { UseJwtOptions, UseJwtReturn };
|
package/useNProgress.d.mts
CHANGED
|
@@ -17,4 +17,5 @@ declare function useNProgress(currentProgress?: MaybeRefOrGetter<number | null |
|
|
|
17
17
|
};
|
|
18
18
|
type UseNProgressReturn = ReturnType<typeof useNProgress>;
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { useNProgress };
|
|
21
|
+
export type { UseNProgressOptions, UseNProgressReturn };
|
package/useSortable.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurableDocument } from '@vueuse/core';
|
|
1
|
+
import { ConfigurableDocument, MaybeElement } from '@vueuse/core';
|
|
2
2
|
import Sortable, { Options } from 'sortablejs';
|
|
3
3
|
import { MaybeRefOrGetter } from 'vue';
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ interface UseSortableReturn {
|
|
|
20
20
|
}
|
|
21
21
|
type UseSortableOptions = Options & ConfigurableDocument;
|
|
22
22
|
declare function useSortable<T>(selector: string, list: MaybeRefOrGetter<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
23
|
-
declare function useSortable<T>(el: MaybeRefOrGetter<
|
|
23
|
+
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list: MaybeRefOrGetter<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
24
24
|
/**
|
|
25
25
|
* Inserts a element into the DOM at a given index.
|
|
26
26
|
* @param parentElement
|
|
@@ -37,4 +37,5 @@ declare function insertNodeAt(parentElement: Element, element: Element, index: n
|
|
|
37
37
|
declare function removeNode(node: Node): void;
|
|
38
38
|
declare function moveArrayElement<T>(list: MaybeRefOrGetter<T[]>, from: number, to: number, e?: Sortable.SortableEvent | null): void;
|
|
39
39
|
|
|
40
|
-
export {
|
|
40
|
+
export { insertNodeAt, moveArrayElement, removeNode, useSortable };
|
|
41
|
+
export type { UseSortableOptions, UseSortableReturn };
|