@vueuse/integrations 13.1.0 → 13.3.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
CHANGED
|
@@ -426,8 +426,8 @@ interface UseSortableReturn {
|
|
|
426
426
|
option: (<K extends keyof Sortable.Options>(name: K, value: Sortable.Options[K]) => void) & (<K extends keyof Sortable.Options>(name: K) => Sortable.Options[K]);
|
|
427
427
|
}
|
|
428
428
|
type UseSortableOptions = Options$3 & ConfigurableDocument;
|
|
429
|
-
declare function useSortable<T>(selector: string, list:
|
|
430
|
-
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list:
|
|
429
|
+
declare function useSortable<T>(selector: string, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
430
|
+
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
431
431
|
/**
|
|
432
432
|
* Inserts a element into the DOM at a given index.
|
|
433
433
|
* @param parentElement
|
|
@@ -442,7 +442,7 @@ declare function insertNodeAt(parentElement: Element, element: Element, index: n
|
|
|
442
442
|
* @see https://github.com/Alfred-Skyblue/vue-draggable-plus/blob/a3829222095e1949bf2c9a20979d7b5930e66f14/src/utils/index.ts#L96C1-L102C2
|
|
443
443
|
*/
|
|
444
444
|
declare function removeNode(node: Node): void;
|
|
445
|
-
declare function moveArrayElement<T>(list:
|
|
445
|
+
declare function moveArrayElement<T>(list: MaybeRef<T[]>, from: number, to: number, e?: Sortable.SortableEvent | null): void;
|
|
446
446
|
|
|
447
447
|
export { createCookies, insertNodeAt, moveArrayElement, removeNode, useAsyncValidator, useAxios, useChangeCase, useCookies, useDrauu, useFocusTrap, useFuse, useIDBKeyval, useJwt, useNProgress, useQRCode, useSortable };
|
|
448
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.3.0",
|
|
5
5
|
"description": "Integration wrappers for utility libraries",
|
|
6
6
|
"author": "Anthony Fu <https://github.com/antfu>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -104,20 +104,20 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@vueuse/core": "13.
|
|
108
|
-
"@vueuse/shared": "13.
|
|
107
|
+
"@vueuse/core": "13.3.0",
|
|
108
|
+
"@vueuse/shared": "13.3.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.
|
|
115
|
+
"axios": "^1.9.0",
|
|
116
116
|
"change-case": "^5.4.4",
|
|
117
117
|
"drauu": "^0.4.3",
|
|
118
118
|
"focus-trap": "^7.6.4",
|
|
119
119
|
"fuse.js": "^7.1.0",
|
|
120
|
-
"idb-keyval": "^6.2.
|
|
120
|
+
"idb-keyval": "^6.2.2",
|
|
121
121
|
"jwt-decode": "^4.0.0",
|
|
122
122
|
"nprogress": "^0.2.0",
|
|
123
123
|
"qrcode": "^1.5.4",
|
|
@@ -63,7 +63,7 @@ function useAsyncValidator(value, rules, options = {}) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const UseAsyncValidator = /* @__PURE__ */
|
|
66
|
+
const UseAsyncValidator = /* @__PURE__ */ defineComponent({
|
|
67
67
|
name: "UseAsyncValidator",
|
|
68
68
|
props: {
|
|
69
69
|
form: {
|
|
@@ -2,7 +2,7 @@ import { unrefElement } from '@vueuse/core';
|
|
|
2
2
|
import { createFocusTrap } from 'focus-trap';
|
|
3
3
|
import { defineComponent, ref, watch, onScopeDispose, h } from 'vue';
|
|
4
4
|
|
|
5
|
-
const UseFocusTrap = /* @__PURE__ */
|
|
5
|
+
const UseFocusTrap = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "UseFocusTrap",
|
|
7
7
|
props: ["as", "options"],
|
|
8
8
|
setup(props, { slots }) {
|
package/useSortable.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigurableDocument, MaybeElement } from '@vueuse/core';
|
|
2
2
|
import Sortable, { Options } from 'sortablejs';
|
|
3
|
-
import { MaybeRefOrGetter } from 'vue';
|
|
3
|
+
import { MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
4
4
|
|
|
5
5
|
interface UseSortableReturn {
|
|
6
6
|
/**
|
|
@@ -19,8 +19,8 @@ interface UseSortableReturn {
|
|
|
19
19
|
option: (<K extends keyof Sortable.Options>(name: K, value: Sortable.Options[K]) => void) & (<K extends keyof Sortable.Options>(name: K) => Sortable.Options[K]);
|
|
20
20
|
}
|
|
21
21
|
type UseSortableOptions = Options & ConfigurableDocument;
|
|
22
|
-
declare function useSortable<T>(selector: string, list:
|
|
23
|
-
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list:
|
|
22
|
+
declare function useSortable<T>(selector: string, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
23
|
+
declare function useSortable<T>(el: MaybeRefOrGetter<MaybeElement>, list: MaybeRef<T[]>, options?: UseSortableOptions): UseSortableReturn;
|
|
24
24
|
/**
|
|
25
25
|
* Inserts a element into the DOM at a given index.
|
|
26
26
|
* @param parentElement
|
|
@@ -35,7 +35,7 @@ declare function insertNodeAt(parentElement: Element, element: Element, index: n
|
|
|
35
35
|
* @see https://github.com/Alfred-Skyblue/vue-draggable-plus/blob/a3829222095e1949bf2c9a20979d7b5930e66f14/src/utils/index.ts#L96C1-L102C2
|
|
36
36
|
*/
|
|
37
37
|
declare function removeNode(node: Node): void;
|
|
38
|
-
declare function moveArrayElement<T>(list:
|
|
38
|
+
declare function moveArrayElement<T>(list: MaybeRef<T[]>, from: number, to: number, e?: Sortable.SortableEvent | null): void;
|
|
39
39
|
|
|
40
40
|
export { insertNodeAt, moveArrayElement, removeNode, useSortable };
|
|
41
41
|
export type { UseSortableOptions, UseSortableReturn };
|