@destyler/composition
Advanced tools
Comparing version 0.0.1-beta.12 to 0.0.1-beta.13
import * as vue from 'vue'; | ||
import { Ref, WatchOptions, ComputedRef, WritableComputedRef, UnwrapRef, ComponentPublicInstance } from 'vue'; | ||
import * as _destyler_shared from '@destyler/shared'; | ||
import { MaybeRefOrGetter, Type, ArrowKeyOptions, Direction, MaybeElementRef, AnyFn, Stoppable } from '@destyler/shared'; | ||
import { MaybeRefOrGetter, Type, ArrowKeyOptions, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn } from '@destyler/shared'; | ||
@@ -262,2 +262,47 @@ declare function useForwardRef(): (ref: any) => void; | ||
export { type CloneFn, type ImageLoadingStatus, type UseClonedOptions, type UseClonedReturn, type UseTimeoutFnOptions, type UseVModelOptions, cloneFnJSON, getNextMatch, useArrowNavigation, useCloned, useCollection, useControllable, useCustomElement, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, usePresence, usePrevious, useSingleOrMultipleValue, useSize, useStateMachine, useTimeoutFn, useTypeahead, useVModel }; | ||
declare function useSupported(callback: () => unknown): vue.ComputedRef<boolean>; | ||
interface ConfigurableWindow { | ||
window?: Window; | ||
} | ||
declare const defaultWindow: (Window & typeof globalThis) | undefined; | ||
interface ResizeObserverSize { | ||
readonly inlineSize: number; | ||
readonly blockSize: number; | ||
} | ||
interface ResizeObserverEntry { | ||
readonly target: Element; | ||
readonly contentRect: DOMRectReadOnly; | ||
readonly borderBoxSize?: ReadonlyArray<ResizeObserverSize>; | ||
readonly contentBoxSize?: ReadonlyArray<ResizeObserverSize>; | ||
readonly devicePixelContentBoxSize?: ReadonlyArray<ResizeObserverSize>; | ||
} | ||
type ResizeObserverCallback = (entries: ReadonlyArray<ResizeObserverEntry>, observer: ResizeObserver) => void; | ||
interface UseResizeObserverOptions extends ConfigurableWindow { | ||
/** | ||
* @default 'content-box' | ||
*/ | ||
box?: ResizeObserverBoxOptions; | ||
} | ||
declare class ResizeObserver { | ||
constructor(callback: ResizeObserverCallback); | ||
disconnect(): void; | ||
observe(target: Element, options?: UseResizeObserverOptions): void; | ||
unobserve(target: Element): void; | ||
} | ||
/** | ||
* Reports changes to the dimensions of an Element's content or the border-box | ||
* | ||
* @param target | ||
* @param callback | ||
* @param options | ||
*/ | ||
declare function useResizeObserver(target: MaybeComputedElementRef | MaybeComputedElementRef[], callback: ResizeObserverCallback, options?: UseResizeObserverOptions): { | ||
isSupported: vue.ComputedRef<boolean>; | ||
stop: () => void; | ||
}; | ||
type UseResizeObserverReturn = ReturnType<typeof useResizeObserver>; | ||
declare function useDebounceFn<T extends FunctionArgs>(fn: T, ms?: MaybeRefOrGetter<number>, options?: DebounceFilterOptions): PromisifyFn<T>; | ||
export { type CloneFn, type ConfigurableWindow, type ImageLoadingStatus, type ResizeObserverCallback, type ResizeObserverEntry, type ResizeObserverSize, type UseClonedOptions, type UseClonedReturn, type UseResizeObserverOptions, type UseResizeObserverReturn, type UseTimeoutFnOptions, type UseVModelOptions, cloneFnJSON, defaultWindow, getNextMatch, useArrowNavigation, useCloned, useCollection, useControllable, useCustomElement, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, usePresence, usePrevious, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeoutFn, useTypeahead, useVModel }; |
{ | ||
"name": "@destyler/composition", | ||
"version": "0.0.1-beta.12", | ||
"version": "0.0.1-beta.13", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "author": "Elone Hoo <elonehoo@gmail.com>", | ||
"aria-hidden": "^1.2.3", | ||
"@destyler/shared": "0.0.1-beta.12" | ||
"@destyler/shared": "0.0.1-beta.13" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84783
1876
+ Added@destyler/shared@0.0.1-beta.13(transitive)
- Removed@destyler/shared@0.0.1-beta.12(transitive)