@vueuse/integrations 14.0.0 → 14.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/dist/{index-BzCjewPQ.d.ts → index-BLffOygZ.d.ts} +3 -3
- package/dist/{index-BNQzWj9J.d.ts → index-HJW_ZBEz.d.ts} +2 -2
- package/dist/{index-C1eGK6nC.d.ts → index-oNla9-Bg.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/useFocusTrap/component.d.ts +3 -3
- package/dist/useFuse.d.ts +1 -1
- package/dist/useNProgress.d.ts +1 -1
- package/dist/useQRCode.d.ts +1 -1
- package/dist/useSortable/component.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue2 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
import nprogress, { NProgressOptions } from "nprogress";
|
|
4
4
|
|
|
@@ -10,8 +10,8 @@ type UseNProgressOptions = Partial<NProgressOptions>;
|
|
|
10
10
|
* @see https://vueuse.org/useNProgress
|
|
11
11
|
*/
|
|
12
12
|
declare function useNProgress(currentProgress?: MaybeRefOrGetter<number | null | undefined>, options?: UseNProgressOptions): {
|
|
13
|
-
isLoading:
|
|
14
|
-
progress:
|
|
13
|
+
isLoading: vue2.WritableComputedRef<boolean, boolean>;
|
|
14
|
+
progress: vue2.Ref<number | null | undefined, number | null | undefined>;
|
|
15
15
|
start: () => nprogress.NProgress;
|
|
16
16
|
done: (force?: boolean) => nprogress.NProgress;
|
|
17
17
|
remove: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue1 from "vue";
|
|
2
2
|
import { ComputedRef, MaybeRefOrGetter } from "vue";
|
|
3
3
|
import * as fuse_js0 from "fuse.js";
|
|
4
4
|
import Fuse, { FuseResult, IFuseOptions } from "fuse.js";
|
|
@@ -11,7 +11,7 @@ interface UseFuseOptions<T> {
|
|
|
11
11
|
matchAllWhenSearchEmpty?: boolean;
|
|
12
12
|
}
|
|
13
13
|
declare function useFuse<DataItem>(search: MaybeRefOrGetter<string>, data: MaybeRefOrGetter<DataItem[]>, options?: MaybeRefOrGetter<UseFuseOptions<DataItem>>): {
|
|
14
|
-
fuse:
|
|
14
|
+
fuse: vue1.Ref<{
|
|
15
15
|
search: <R = DataItem>(pattern: string | fuse_js0.Expression, options?: fuse_js0.FuseSearchOptions) => FuseResult<R>[];
|
|
16
16
|
setCollection: (docs: readonly DataItem[], index?: fuse_js0.FuseIndex<DataItem> | undefined) => void;
|
|
17
17
|
add: (doc: DataItem) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue6 from "vue";
|
|
2
2
|
import { MaybeRefOrGetter } from "vue";
|
|
3
3
|
import QRCode from "qrcode";
|
|
4
4
|
|
|
@@ -11,6 +11,6 @@ import QRCode from "qrcode";
|
|
|
11
11
|
* @param text
|
|
12
12
|
* @param options
|
|
13
13
|
*/
|
|
14
|
-
declare function useQRCode(text: MaybeRefOrGetter<string>, options?: QRCode.QRCodeToDataURLOptions):
|
|
14
|
+
declare function useQRCode(text: MaybeRefOrGetter<string>, options?: QRCode.QRCodeToDataURLOptions): vue6.ShallowRef<string, string>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { useQRCode as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { n as useChangeCase, t as ChangeCaseType } from "./index-CxO-Pb3x.js";
|
|
|
4
4
|
import { n as useCookies, t as createCookies } from "./index-C0C_B0mW.js";
|
|
5
5
|
import { n as UseDrauuReturn, r as useDrauu, t as UseDrauuOptions } from "./index-BBxze4rb.js";
|
|
6
6
|
import { n as UseFocusTrapReturn, r as useFocusTrap, t as UseFocusTrapOptions } from "./index-CJw_eFkJ.js";
|
|
7
|
-
import { i as useFuse, n as UseFuseOptions, r as UseFuseReturn, t as FuseOptions } from "./index-
|
|
7
|
+
import { i as useFuse, n as UseFuseOptions, r as UseFuseReturn, t as FuseOptions } from "./index-HJW_ZBEz.js";
|
|
8
8
|
import { n as UseIDBOptions, r as useIDBKeyval, t as UseIDBKeyvalReturn } from "./index-DfI2VwxT.js";
|
|
9
9
|
import { n as UseJwtReturn, r as useJwt, t as UseJwtOptions } from "./index-is9DY6jN.js";
|
|
10
|
-
import { n as UseNProgressReturn, r as useNProgress, t as UseNProgressOptions } from "./index-
|
|
11
|
-
import { t as useQRCode } from "./index-
|
|
10
|
+
import { n as UseNProgressReturn, r as useNProgress, t as UseNProgressOptions } from "./index-BLffOygZ.js";
|
|
11
|
+
import { t as useQRCode } from "./index-oNla9-Bg.js";
|
|
12
12
|
import { a as removeNode, i as moveArrayElement, n as UseSortableReturn, o as useSortable, r as insertNodeAt, t as UseSortableOptions } from "./index-CDFJRy7j.js";
|
|
13
13
|
export { 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, createCookies, insertNodeAt, moveArrayElement, removeNode, useAsyncValidator, useAxios, useChangeCase, useCookies, useDrauu, useFocusTrap, useFuse, useIDBKeyval, useJwt, useNProgress, useQRCode, useSortable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as UseFocusTrapReturn, t as UseFocusTrapOptions } from "../index-CJw_eFkJ.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue4 from "vue";
|
|
3
3
|
import { Reactive, SlotsType } from "vue";
|
|
4
4
|
import { RenderableComponent } from "@vueuse/core";
|
|
5
5
|
|
|
@@ -14,8 +14,8 @@ interface ComponentUseFocusTrapOptions extends UseFocusTrapProps {}
|
|
|
14
14
|
interface UseFocusTrapSlots {
|
|
15
15
|
default: (data: Reactive<UseFocusTrapReturn>) => any;
|
|
16
16
|
}
|
|
17
|
-
declare const UseFocusTrap:
|
|
17
|
+
declare const UseFocusTrap: vue4.DefineSetupFnComponent<UseFocusTrapProps, Record<string, never>, SlotsType<UseFocusTrapSlots>, UseFocusTrapProps & {
|
|
18
18
|
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
19
|
-
},
|
|
19
|
+
}, vue4.PublicProps>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ComponentUseFocusTrapOptions, UseFocusTrap, UseFocusTrapProps };
|
package/dist/useFuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as useFuse, n as UseFuseOptions, r as UseFuseReturn, t as FuseOptions } from "./index-
|
|
1
|
+
import { i as useFuse, n as UseFuseOptions, r as UseFuseReturn, t as FuseOptions } from "./index-HJW_ZBEz.js";
|
|
2
2
|
export { FuseOptions, UseFuseOptions, UseFuseReturn, useFuse };
|
package/dist/useNProgress.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UseNProgressReturn, r as useNProgress, t as UseNProgressOptions } from "./index-
|
|
1
|
+
import { n as UseNProgressReturn, r as useNProgress, t as UseNProgressOptions } from "./index-BLffOygZ.js";
|
|
2
2
|
export { UseNProgressOptions, UseNProgressReturn, useNProgress };
|
package/dist/useQRCode.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useQRCode } from "./index-
|
|
1
|
+
import { t as useQRCode } from "./index-oNla9-Bg.js";
|
|
2
2
|
export { useQRCode };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as UseSortableReturn, t as UseSortableOptions } from "../index-CDFJRy7j.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue7 from "vue";
|
|
3
3
|
import { Reactive, SlotsType } from "vue";
|
|
4
4
|
import { RenderableComponent } from "@vueuse/core";
|
|
5
5
|
|
|
@@ -11,8 +11,8 @@ interface UseSortableProps extends RenderableComponent {
|
|
|
11
11
|
interface UseSortableSlots {
|
|
12
12
|
default: (data: Reactive<UseSortableReturn>) => any;
|
|
13
13
|
}
|
|
14
|
-
declare const UseSortable:
|
|
14
|
+
declare const UseSortable: vue7.DefineSetupFnComponent<UseSortableProps, Record<string, never>, SlotsType<UseSortableSlots>, UseSortableProps & {
|
|
15
15
|
[x: `on${Capitalize<string>}`]: ((...args: unknown[]) => any) | undefined;
|
|
16
|
-
},
|
|
16
|
+
}, vue7.PublicProps>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { UseSortable, UseSortableProps };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vueuse/integrations",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.1.0",
|
|
5
5
|
"description": "Integration wrappers for utility libraries",
|
|
6
6
|
"author": "Anthony Fu <https://github.com/antfu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@vueuse/core": "14.
|
|
106
|
-
"@vueuse/shared": "14.
|
|
105
|
+
"@vueuse/core": "14.1.0",
|
|
106
|
+
"@vueuse/shared": "14.1.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@types/nprogress": "^0.2.3",
|