@stacksjs/utils 0.57.4 → 0.58.19
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.js +1276 -0
- package/package.json +66 -57
- package/LICENSE.md +0 -21
- package/dist/base.d.ts +0 -3
- package/dist/base.mjs +0 -12
- package/dist/config.d.ts +0 -28
- package/dist/config.mjs +0 -79
- package/dist/currency.d.ts +0 -3
- package/dist/currency.mjs +0 -28
- package/dist/debounce.d.ts +0 -1
- package/dist/debounce.mjs +0 -1
- package/dist/delete.d.ts +0 -1
- package/dist/delete.mjs +0 -1
- package/dist/equal.d.ts +0 -1
- package/dist/equal.mjs +0 -23
- package/dist/function.d.ts +0 -18
- package/dist/function.mjs +0 -7
- package/dist/guards.d.ts +0 -28
- package/dist/guards.mjs +0 -12
- package/dist/helpers.d.ts +0 -46
- package/dist/helpers.mjs +0 -92
- package/dist/index.d.ts +0 -15
- package/dist/index.mjs +0 -15
- package/dist/math.d.ts +0 -3
- package/dist/math.mjs +0 -28
- package/dist/p.d.ts +0 -41
- package/dist/p.mjs +0 -74
- package/dist/promise.d.ts +0 -65
- package/dist/promise.mjs +0 -57
- package/dist/throttle.d.ts +0 -19
- package/dist/throttle.mjs +0 -20
- package/dist/vendors.d.ts +0 -3
- package/dist/vendors.mjs +0 -210
- package/dist/versions.d.ts +0 -1
- package/dist/versions.mjs +0 -1
package/dist/math.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
2
|
-
export function rand(min, max) {
|
|
3
|
-
min = Math.ceil(min);
|
|
4
|
-
max = Math.floor(max);
|
|
5
|
-
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
and,
|
|
9
|
-
createGenericProjection,
|
|
10
|
-
createProjection,
|
|
11
|
-
logicNot,
|
|
12
|
-
logicOr,
|
|
13
|
-
not,
|
|
14
|
-
or,
|
|
15
|
-
useAbs,
|
|
16
|
-
useAverage,
|
|
17
|
-
useCeil,
|
|
18
|
-
useClamp,
|
|
19
|
-
useFloor,
|
|
20
|
-
useMath,
|
|
21
|
-
useMax,
|
|
22
|
-
useMin,
|
|
23
|
-
usePrecision,
|
|
24
|
-
useProjection,
|
|
25
|
-
useRound,
|
|
26
|
-
useSum,
|
|
27
|
-
useTrunc
|
|
28
|
-
} from "@vueuse/math";
|
package/dist/p.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
interface POptions {
|
|
2
|
-
/**
|
|
3
|
-
* How many promises are resolved at the same time.
|
|
4
|
-
*/
|
|
5
|
-
concurrency?: number | undefined;
|
|
6
|
-
}
|
|
7
|
-
declare class PInstance<T = any> extends Promise<Awaited<T>[]> {
|
|
8
|
-
items: Iterable<T>;
|
|
9
|
-
options?: POptions | undefined;
|
|
10
|
-
private promises;
|
|
11
|
-
get promise(): Promise<Awaited<T>[]>;
|
|
12
|
-
constructor(items?: Iterable<T>, options?: POptions | undefined);
|
|
13
|
-
add(...args: (T | Promise<T>)[]): void;
|
|
14
|
-
map<U>(fn: (value: Awaited<T>, index: number) => U): PInstance<Promise<U>>;
|
|
15
|
-
filter(fn: (value: Awaited<T>, index: number) => boolean | Promise<boolean>): PInstance<Promise<T>>;
|
|
16
|
-
forEach(fn: (value: Awaited<T>, index: number) => void): Promise<void>;
|
|
17
|
-
reduce<U>(fn: (previousValue: U, currentValue: Awaited<T>, currentIndex: number, array: Awaited<T>[]) => U, initialValue: U): Promise<U>;
|
|
18
|
-
clear(): void;
|
|
19
|
-
then(fn?: () => PromiseLike<any>): Promise<any>;
|
|
20
|
-
catch(fn?: (err: unknown) => PromiseLike<any>): Promise<any>;
|
|
21
|
-
finally(fn?: () => void): Promise<Awaited<T>[]>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Utility for managing multiple promises.
|
|
25
|
-
*
|
|
26
|
-
* @see https://github.com/antfu/utils/tree/main/docs/p.md
|
|
27
|
-
* @category Promise
|
|
28
|
-
* @example
|
|
29
|
-
* ```
|
|
30
|
-
* import { p } from '@stacksjs/utils'
|
|
31
|
-
*
|
|
32
|
-
* const items = [1, 2, 3, 4, 5]
|
|
33
|
-
*
|
|
34
|
-
* await p(items)
|
|
35
|
-
* .map(async i => await multiply(i, 3))
|
|
36
|
-
* .filter(async i => await isEven(i))
|
|
37
|
-
* // [6, 12]
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export declare function p<T = any>(items?: Iterable<T>, options?: POptions): PInstance<T>;
|
|
41
|
-
export {};
|
package/dist/p.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import pLimit from "p-limit";
|
|
2
|
-
const VOID = Symbol("p-void");
|
|
3
|
-
class PInstance extends Promise {
|
|
4
|
-
constructor(items = [], options) {
|
|
5
|
-
super(() => {
|
|
6
|
-
});
|
|
7
|
-
this.items = items;
|
|
8
|
-
this.options = options;
|
|
9
|
-
this.promises = /* @__PURE__ */ new Set();
|
|
10
|
-
}
|
|
11
|
-
get promise() {
|
|
12
|
-
let batch;
|
|
13
|
-
const items = [...Array.from(this.items), ...Array.from(this.promises)];
|
|
14
|
-
if (this.options?.concurrency) {
|
|
15
|
-
const limit = pLimit(this.options.concurrency);
|
|
16
|
-
batch = Promise.all(items.map((p2) => limit(() => p2)));
|
|
17
|
-
} else {
|
|
18
|
-
batch = Promise.all(items);
|
|
19
|
-
}
|
|
20
|
-
return batch.then((l) => l.filter((i) => i !== VOID));
|
|
21
|
-
}
|
|
22
|
-
add(...args) {
|
|
23
|
-
args.forEach((i) => {
|
|
24
|
-
this.promises.add(i);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
map(fn) {
|
|
28
|
-
return new PInstance(
|
|
29
|
-
Array.from(this.items).map(async (i, idx) => {
|
|
30
|
-
const v = await i;
|
|
31
|
-
if (v === VOID)
|
|
32
|
-
return VOID;
|
|
33
|
-
return fn(v, idx);
|
|
34
|
-
}),
|
|
35
|
-
this.options
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
filter(fn) {
|
|
39
|
-
return new PInstance(
|
|
40
|
-
Array.from(this.items).map(async (i, idx) => {
|
|
41
|
-
const v = await i;
|
|
42
|
-
const r = await fn(v, idx);
|
|
43
|
-
if (!r)
|
|
44
|
-
return VOID;
|
|
45
|
-
return v;
|
|
46
|
-
}),
|
|
47
|
-
this.options
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
forEach(fn) {
|
|
51
|
-
return this.map(fn).then();
|
|
52
|
-
}
|
|
53
|
-
reduce(fn, initialValue) {
|
|
54
|
-
return this.promise.then((array) => array.reduce(fn, initialValue));
|
|
55
|
-
}
|
|
56
|
-
clear() {
|
|
57
|
-
this.promises.clear();
|
|
58
|
-
}
|
|
59
|
-
then(fn) {
|
|
60
|
-
const p2 = this.promise;
|
|
61
|
-
if (fn)
|
|
62
|
-
return p2.then(fn);
|
|
63
|
-
return p2;
|
|
64
|
-
}
|
|
65
|
-
catch(fn) {
|
|
66
|
-
return this.promise.catch(fn);
|
|
67
|
-
}
|
|
68
|
-
finally(fn) {
|
|
69
|
-
return this.promise.finally(fn);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
export function p(items, options) {
|
|
73
|
-
return new PInstance(items, options);
|
|
74
|
-
}
|
package/dist/promise.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Fn } from '@stacksjs/types';
|
|
2
|
-
export interface SingletonPromiseReturn<T> {
|
|
3
|
-
(): Promise<T>;
|
|
4
|
-
/**
|
|
5
|
-
* Reset current staled promise.
|
|
6
|
-
* Await it to have proper shutdown.
|
|
7
|
-
*/
|
|
8
|
-
reset: () => Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Promise with `resolve` and `reject` methods of itself
|
|
12
|
-
*/
|
|
13
|
-
export interface ControlledPromise<T = void> extends Promise<T> {
|
|
14
|
-
resolve(value: T | PromiseLike<T>): void;
|
|
15
|
-
reject(reason?: any): void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Create singleton promise function.
|
|
19
|
-
*
|
|
20
|
-
* @category Promise
|
|
21
|
-
*/
|
|
22
|
-
export declare function createSingletonPromise<T>(fn: () => Promise<T>): SingletonPromiseReturn<T>;
|
|
23
|
-
/**
|
|
24
|
-
* Create a promise lock.
|
|
25
|
-
*
|
|
26
|
-
* @category Promise
|
|
27
|
-
* @example
|
|
28
|
-
* ```
|
|
29
|
-
* const lock = createPromiseLock()
|
|
30
|
-
*
|
|
31
|
-
* lock.run(async () => {
|
|
32
|
-
* await doSomething()
|
|
33
|
-
* })
|
|
34
|
-
*
|
|
35
|
-
* // in anther context:
|
|
36
|
-
* await lock.wait() // it will wait all tasking finished
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare function createPromiseLock(): {
|
|
40
|
-
run<T = void>(fn: () => Promise<T>): Promise<T>;
|
|
41
|
-
wait(): Promise<void>;
|
|
42
|
-
isWaiting(): boolean;
|
|
43
|
-
clear(): void;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Return a Promise with `resolve` and `reject` methods
|
|
47
|
-
*
|
|
48
|
-
* @category Promise
|
|
49
|
-
* @example
|
|
50
|
-
* ```
|
|
51
|
-
* const promise = createControlledPromise()
|
|
52
|
-
*
|
|
53
|
-
* await promise
|
|
54
|
-
*
|
|
55
|
-
* // in anther context:
|
|
56
|
-
* promise.resolve(data)
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare function createControlledPromise<T>(): ControlledPromise<T>;
|
|
60
|
-
/**
|
|
61
|
-
* Promised `setTimeout`.
|
|
62
|
-
*
|
|
63
|
-
* @category Promise
|
|
64
|
-
*/
|
|
65
|
-
export declare function sleep(ms: number, callback?: Fn<any>): Promise<void>;
|
package/dist/promise.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { remove } from "@stacksjs/arrays";
|
|
2
|
-
export function createSingletonPromise(fn) {
|
|
3
|
-
let _promise;
|
|
4
|
-
function wrapper() {
|
|
5
|
-
if (!_promise)
|
|
6
|
-
_promise = fn();
|
|
7
|
-
return _promise;
|
|
8
|
-
}
|
|
9
|
-
wrapper.reset = async () => {
|
|
10
|
-
const _prev = _promise;
|
|
11
|
-
_promise = void 0;
|
|
12
|
-
if (_prev)
|
|
13
|
-
await _prev;
|
|
14
|
-
};
|
|
15
|
-
return wrapper;
|
|
16
|
-
}
|
|
17
|
-
export function createPromiseLock() {
|
|
18
|
-
const locks = [];
|
|
19
|
-
return {
|
|
20
|
-
async run(fn) {
|
|
21
|
-
const p = fn();
|
|
22
|
-
locks.push(p);
|
|
23
|
-
try {
|
|
24
|
-
return await p;
|
|
25
|
-
} finally {
|
|
26
|
-
remove(locks, p);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
async wait() {
|
|
30
|
-
await Promise.allSettled(locks);
|
|
31
|
-
},
|
|
32
|
-
isWaiting() {
|
|
33
|
-
return Boolean(locks.length);
|
|
34
|
-
},
|
|
35
|
-
clear() {
|
|
36
|
-
locks.length = 0;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export function createControlledPromise() {
|
|
41
|
-
let resolve, reject;
|
|
42
|
-
const promise = new Promise((_resolve, _reject) => {
|
|
43
|
-
resolve = _resolve;
|
|
44
|
-
reject = _reject;
|
|
45
|
-
});
|
|
46
|
-
promise.resolve = resolve;
|
|
47
|
-
promise.reject = reject;
|
|
48
|
-
return promise;
|
|
49
|
-
}
|
|
50
|
-
export function sleep(ms, callback) {
|
|
51
|
-
return new Promise(
|
|
52
|
-
(resolve) => setTimeout(async () => {
|
|
53
|
-
await callback?.();
|
|
54
|
-
resolve();
|
|
55
|
-
}, ms)
|
|
56
|
-
);
|
|
57
|
-
}
|
package/dist/throttle.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Throttle a function.
|
|
3
|
-
*
|
|
4
|
-
* @param fn
|
|
5
|
-
* @param wait
|
|
6
|
-
* @returns
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* // logs window dimensions at most every 250ms
|
|
11
|
-
* window.addEventListener(
|
|
12
|
-
* "resize",
|
|
13
|
-
* throttle(function (evt) {
|
|
14
|
-
* console.log(window.innerWidth)
|
|
15
|
-
* console.log(window.innerHeight)
|
|
16
|
-
* }, 250)
|
|
17
|
-
* )
|
|
18
|
-
*/
|
|
19
|
-
export declare function throttle(fn: Function, wait?: number): (this: unknown, ...args: any[]) => void;
|
package/dist/throttle.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export function throttle(fn, wait = 300) {
|
|
2
|
-
let inThrottle;
|
|
3
|
-
let lastFn;
|
|
4
|
-
let lastTime;
|
|
5
|
-
return function(...args) {
|
|
6
|
-
if (!inThrottle) {
|
|
7
|
-
fn.apply(this, args);
|
|
8
|
-
lastTime = Date.now();
|
|
9
|
-
inThrottle = true;
|
|
10
|
-
} else {
|
|
11
|
-
clearTimeout(lastFn);
|
|
12
|
-
lastFn = setTimeout(() => {
|
|
13
|
-
if (Date.now() - lastTime >= wait) {
|
|
14
|
-
fn.apply(this, args);
|
|
15
|
-
lastTime = Date.now();
|
|
16
|
-
}
|
|
17
|
-
}, Math.max(wait - (Date.now() - lastTime), 0));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
package/dist/vendors.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsMasterCss, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useCloned, useColorMode, useConfirmDialog, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useRafFn, useRefHistory, useResizeObserver, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useToggle, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker, useWebWorkerFn, useWindowFocus, useWindowScroll, useWindowSize, useDateFormat, useNow, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever, syncRef, syncRefs, throttledRef, throttledWatch, toReactive, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, isDefined, ignorableWatch, extendRef, eagerComputed, debouncedRef, debouncedWatch, createReactiveFn, createSharedComposable, createInjectionState, createGlobalState, createEventHook, controlledRef, controlledComputed, computedEager, computedWithControl, autoResetRef, } from '@vueuse/core';
|
|
2
|
-
export type { HeadClient, HeadObject, HeadObjectPlain, HookBeforeDomUpdate, HookEntriesResolved, HookTagsResolved, LegacyHeadOptions, } from '@vueuse/head';
|
|
3
|
-
export { Head, HeadVuePlugin, createHead, renderHeadToString, } from '@vueuse/head';
|
package/dist/vendors.mjs
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
asyncComputed,
|
|
3
|
-
breakpointsAntDesign,
|
|
4
|
-
breakpointsBootstrapV5,
|
|
5
|
-
breakpointsMasterCss,
|
|
6
|
-
breakpointsQuasar,
|
|
7
|
-
breakpointsSematic,
|
|
8
|
-
breakpointsTailwind,
|
|
9
|
-
breakpointsVuetify,
|
|
10
|
-
cloneFnJSON,
|
|
11
|
-
computedAsync,
|
|
12
|
-
computedInject,
|
|
13
|
-
createFetch,
|
|
14
|
-
createReusableTemplate,
|
|
15
|
-
createTemplatePromise,
|
|
16
|
-
createUnrefFn,
|
|
17
|
-
customStorageEventName,
|
|
18
|
-
defaultDocument,
|
|
19
|
-
defaultLocation,
|
|
20
|
-
defaultNavigator,
|
|
21
|
-
defaultWindow,
|
|
22
|
-
executeTransition,
|
|
23
|
-
formatTimeAgo,
|
|
24
|
-
getSSRHandler,
|
|
25
|
-
mapGamepadToXbox360Controller,
|
|
26
|
-
onClickOutside,
|
|
27
|
-
onKeyDown,
|
|
28
|
-
onKeyPressed,
|
|
29
|
-
onKeyStroke,
|
|
30
|
-
onKeyUp,
|
|
31
|
-
onLongPress,
|
|
32
|
-
onStartTyping,
|
|
33
|
-
setSSRHandler,
|
|
34
|
-
templateRef,
|
|
35
|
-
unrefElement,
|
|
36
|
-
useActiveElement,
|
|
37
|
-
useAnimate,
|
|
38
|
-
useAsyncQueue,
|
|
39
|
-
useAsyncState,
|
|
40
|
-
useBase64,
|
|
41
|
-
useBattery,
|
|
42
|
-
useBluetooth,
|
|
43
|
-
useBreakpoints,
|
|
44
|
-
useBroadcastChannel,
|
|
45
|
-
useBrowserLocation,
|
|
46
|
-
useCached,
|
|
47
|
-
useClipboard,
|
|
48
|
-
useCloned,
|
|
49
|
-
useColorMode,
|
|
50
|
-
useConfirmDialog,
|
|
51
|
-
useCssVar,
|
|
52
|
-
useCurrentElement,
|
|
53
|
-
useCycleList,
|
|
54
|
-
useDark,
|
|
55
|
-
useDebouncedRefHistory,
|
|
56
|
-
useDeviceMotion,
|
|
57
|
-
useDeviceOrientation,
|
|
58
|
-
useDevicePixelRatio,
|
|
59
|
-
useDevicesList,
|
|
60
|
-
useDisplayMedia,
|
|
61
|
-
useDocumentVisibility,
|
|
62
|
-
useDraggable,
|
|
63
|
-
useDropZone,
|
|
64
|
-
useElementBounding,
|
|
65
|
-
useElementByPoint,
|
|
66
|
-
useElementHover,
|
|
67
|
-
useElementSize,
|
|
68
|
-
useElementVisibility,
|
|
69
|
-
useEventBus,
|
|
70
|
-
useEventListener,
|
|
71
|
-
useEventSource,
|
|
72
|
-
useEyeDropper,
|
|
73
|
-
useFavicon,
|
|
74
|
-
useFetch,
|
|
75
|
-
useFileDialog,
|
|
76
|
-
useFileSystemAccess,
|
|
77
|
-
useFocus,
|
|
78
|
-
useFocusWithin,
|
|
79
|
-
useFps,
|
|
80
|
-
useFullscreen,
|
|
81
|
-
useGamepad,
|
|
82
|
-
useGeolocation,
|
|
83
|
-
useIdle,
|
|
84
|
-
useImage,
|
|
85
|
-
useInfiniteScroll,
|
|
86
|
-
useIntersectionObserver,
|
|
87
|
-
useKeyModifier,
|
|
88
|
-
useLocalStorage,
|
|
89
|
-
useMagicKeys,
|
|
90
|
-
useManualRefHistory,
|
|
91
|
-
useMediaControls,
|
|
92
|
-
useMediaQuery,
|
|
93
|
-
useMemoize,
|
|
94
|
-
useMemory,
|
|
95
|
-
useMounted,
|
|
96
|
-
useMouse,
|
|
97
|
-
useMouseInElement,
|
|
98
|
-
useMousePressed,
|
|
99
|
-
useMutationObserver,
|
|
100
|
-
useNavigatorLanguage,
|
|
101
|
-
useNetwork,
|
|
102
|
-
useObjectUrl,
|
|
103
|
-
useOffsetPagination,
|
|
104
|
-
useOnline,
|
|
105
|
-
usePageLeave,
|
|
106
|
-
useParallax,
|
|
107
|
-
useParentElement,
|
|
108
|
-
usePerformanceObserver,
|
|
109
|
-
usePermission,
|
|
110
|
-
usePointer,
|
|
111
|
-
usePointerLock,
|
|
112
|
-
usePointerSwipe,
|
|
113
|
-
usePreferredColorScheme,
|
|
114
|
-
usePreferredContrast,
|
|
115
|
-
usePreferredDark,
|
|
116
|
-
usePreferredLanguages,
|
|
117
|
-
usePreferredReducedMotion,
|
|
118
|
-
usePrevious,
|
|
119
|
-
useRafFn,
|
|
120
|
-
useRefHistory,
|
|
121
|
-
useResizeObserver,
|
|
122
|
-
useScreenOrientation,
|
|
123
|
-
useScreenSafeArea,
|
|
124
|
-
useScriptTag,
|
|
125
|
-
useScroll,
|
|
126
|
-
useScrollLock,
|
|
127
|
-
useSessionStorage,
|
|
128
|
-
useShare,
|
|
129
|
-
useSorted,
|
|
130
|
-
useSpeechRecognition,
|
|
131
|
-
useSpeechSynthesis,
|
|
132
|
-
useStepper,
|
|
133
|
-
useStorage,
|
|
134
|
-
useStorageAsync,
|
|
135
|
-
useStyleTag,
|
|
136
|
-
useSupported,
|
|
137
|
-
useSwipe,
|
|
138
|
-
useTemplateRefsList,
|
|
139
|
-
useTextDirection,
|
|
140
|
-
useTextSelection,
|
|
141
|
-
useTextareaAutosize,
|
|
142
|
-
useThrottledRefHistory,
|
|
143
|
-
useTimeAgo,
|
|
144
|
-
useTimeoutPoll,
|
|
145
|
-
useTimestamp,
|
|
146
|
-
useTitle,
|
|
147
|
-
useTransition,
|
|
148
|
-
useToggle,
|
|
149
|
-
useUrlSearchParams,
|
|
150
|
-
useUserMedia,
|
|
151
|
-
useVModel,
|
|
152
|
-
useVModels,
|
|
153
|
-
useVibrate,
|
|
154
|
-
useVirtualList,
|
|
155
|
-
useWakeLock,
|
|
156
|
-
useWebNotification,
|
|
157
|
-
useWebSocket,
|
|
158
|
-
useWebWorker,
|
|
159
|
-
useWebWorkerFn,
|
|
160
|
-
useWindowFocus,
|
|
161
|
-
useWindowScroll,
|
|
162
|
-
useWindowSize,
|
|
163
|
-
useDateFormat,
|
|
164
|
-
useNow,
|
|
165
|
-
watchArray,
|
|
166
|
-
watchAtMost,
|
|
167
|
-
watchDebounced,
|
|
168
|
-
watchDeep,
|
|
169
|
-
watchIgnorable,
|
|
170
|
-
watchImmediate,
|
|
171
|
-
watchOnce,
|
|
172
|
-
watchPausable,
|
|
173
|
-
watchThrottled,
|
|
174
|
-
watchTriggerable,
|
|
175
|
-
watchWithFilter,
|
|
176
|
-
whenever,
|
|
177
|
-
syncRef,
|
|
178
|
-
syncRefs,
|
|
179
|
-
throttledRef,
|
|
180
|
-
throttledWatch,
|
|
181
|
-
toReactive,
|
|
182
|
-
tryOnBeforeMount,
|
|
183
|
-
tryOnBeforeUnmount,
|
|
184
|
-
tryOnMounted,
|
|
185
|
-
tryOnScopeDispose,
|
|
186
|
-
tryOnUnmounted,
|
|
187
|
-
until,
|
|
188
|
-
isDefined,
|
|
189
|
-
ignorableWatch,
|
|
190
|
-
extendRef,
|
|
191
|
-
eagerComputed,
|
|
192
|
-
debouncedRef,
|
|
193
|
-
debouncedWatch,
|
|
194
|
-
createReactiveFn,
|
|
195
|
-
createSharedComposable,
|
|
196
|
-
createInjectionState,
|
|
197
|
-
createGlobalState,
|
|
198
|
-
createEventHook,
|
|
199
|
-
controlledRef,
|
|
200
|
-
controlledComputed,
|
|
201
|
-
computedEager,
|
|
202
|
-
computedWithControl,
|
|
203
|
-
autoResetRef
|
|
204
|
-
} from "@vueuse/core";
|
|
205
|
-
export {
|
|
206
|
-
Head,
|
|
207
|
-
HeadVuePlugin,
|
|
208
|
-
createHead,
|
|
209
|
-
renderHeadToString
|
|
210
|
-
} from "@vueuse/head";
|
package/dist/versions.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as semver from 'semver';
|
package/dist/versions.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as semver from "semver";
|