Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@destyler/composition

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@destyler/composition - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

README.md

50

dist/index.d.ts
import * as vue from 'vue';
import { Ref, WatchOptions, ComputedRef, WritableComputedRef, UnwrapRef, ComponentPublicInstance } from 'vue';
import * as _destyler_shared from '@destyler/shared';
import { MaybeRefOrGetter, Type, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn, Fn, Pausable } from '@destyler/shared';
import { Ref, WatchOptions, ComputedRef, WritableComputedRef, UnwrapRef, ComponentPublicInstance, MaybeRefOrGetter as MaybeRefOrGetter$1 } from 'vue';
import { MaybeRefOrGetter, SingleOrMultipleProps, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn, Fn, Pausable } from '@destyler/shared';
import { DateValue } from '@internationalized/date';
import * as _vueuse_shared from '@vueuse/shared';

@@ -98,3 +98,3 @@ declare function useForwardRef(): (ref: any) => void;

*/
declare function useId(deterministicId?: string): string;
declare function useId(deterministicId?: string | null | undefined, prefix?: string): string;

@@ -126,10 +126,7 @@ interface Machine<S> {

interface Props {
modelValue?: string | string[];
type: Type;
defaultValue?: string | string[];
}
declare function useSingleOrMultipleValue<P extends Props, Name extends string>(props: P | any, emits: (name: Name, ...args: any[]) => void): {
declare function useSingleOrMultipleValue<P extends SingleOrMultipleProps, Name extends string>(props: P, emits: (name: Name, ...args: any[]) => void): {
modelValue: Ref<string | string[] | undefined>;
type: Ref<"single" | "multiple" | undefined>;
changeModelValue: (value: string) => void;
isSingle: vue.ComputedRef<boolean>;
};

@@ -142,3 +139,3 @@

*
* @defaultValue "both"
* @default "both"
*/

@@ -149,3 +146,3 @@ arrowKeyOptions?: ArrowKeyOptions;

*
* @defaultValue "data-destyler-collection-item"
* @default "data-destyler-collection-item"
*/

@@ -157,3 +154,3 @@ attributeName?: string;

*
* @defaultValue []
* @default []
*/

@@ -164,3 +161,3 @@ itemsArray?: HTMLElement[];

*
* @defaultValue true
* @default true
*/

@@ -171,3 +168,3 @@ loop?: boolean;

*
* @defaultValue "ltr"
* @default "ltr"
*/

@@ -179,3 +176,3 @@ dir?: Direction;

*
* @defaultValue true
* @default true
*/

@@ -186,3 +183,3 @@ preventScroll?: boolean;

*
* @defaultValue false
* @default false
*/

@@ -193,3 +190,3 @@ enableIgnoredElement?: boolean;

*
* @defaultValue false
* @default false
*/

@@ -221,10 +218,8 @@ focus?: boolean;

* component.
* @returns The function `useForwardProps` returns a computed value that combines the default props,
* preserved props, and assigned props.
*/
declare function useForwardProps<T extends Record<string, any>>(props: T): _destyler_shared.ComputedRefWithControl<T>;
declare function useForwardProps<T extends MaybeRefOrGetter$1<Record<string, any>>, U extends UnwrapRef<T>>(props: T): vue.ComputedRef<U>;
declare function useEmitAsProps<Name extends string>(emit: (name: Name, ...args: any[]) => void): Record<string, any>;
declare function useForwardPropsEmits<T extends Record<string, any>, Name extends string>(props: T, emit?: (name: Name, ...args: any[]) => void): vue.ComputedRef<T & Record<string, any>>;
declare function useForwardPropsEmits<T extends Record<string, any>, Name extends string>(props: T, emit?: (name: Name, ...args: any[]) => void): vue.ComputedRef<vue.UnwrapRef<T> & Record<string, any>>;

@@ -462,2 +457,11 @@ /**

export { type CloneFn, type ConfigurableWindow, type Formatter, type ImageLoadingStatus, type KbdKeys, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseRafFnCallbackArguments, type UseRafFnOptions, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseTimeoutOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useBodyScrollLock, useCloned, useCollection, useControllable, useCustomElement, useDateFormatter, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useKbd, useMounted, useMutationObserver, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel };
declare function useMergedState<T>(controlledStateRef: Ref<T | undefined>, uncontrolledStateRef: Ref<T>): ComputedRef<T>;
declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
type Side = (typeof SIDE_OPTIONS)[number];
declare function useGraceArea(triggerElement: Ref<HTMLElement | undefined>, containerElement: Ref<HTMLElement | undefined>): {
isPointerInTransit: Ref<boolean>;
onPointerExit: _vueuse_shared.EventHookOn<void>;
};
export { type CloneFn, type ConfigurableWindow, type Formatter, type ImageLoadingStatus, type KbdKeys, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type Side, type UseClonedOptions, type UseClonedReturn, type UseMutationObserverOptions, type UseMutationObserverReturn, type UseRafFnCallbackArguments, type UseRafFnOptions, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseTimeoutOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useBodyScrollLock, useCloned, useCollection, useControllable, useCustomElement, useDateFormatter, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useGraceArea, useHideOthers, useId, useImageLoadingStatus, useKbd, useMergedState, useMounted, useMutationObserver, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel };
{
"name": "@destyler/composition",
"type": "module",
"version": "0.0.3",
"description": "",
"version": "0.0.4",
"description": "collection of essential Vue in destyler composition utilities",
"author": "Elone Hoo <elonehoo@gmail.com>",

@@ -10,5 +10,4 @@ "license": "MIT",

".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},

@@ -33,8 +32,9 @@ "./*": "./*"

"defu": "^6.1.4",
"@destyler/shared": "0.0.3"
"@destyler/shared": "0.0.4"
},
"scripts": {
"clear": "rimraf ./dist",
"build": "pnpm run clear && unbuild"
"build": "pnpm run clear && unbuild",
"stub": "unbuild --stub"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc