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.1-beta.22 to 0.0.1

70

dist/index.d.ts

@@ -5,2 +5,3 @@ import * as vue from 'vue';

import { MaybeRefOrGetter, Type, Direction, MaybeElementRef, AnyFn, Stoppable, MaybeComputedElementRef, FunctionArgs, DebounceFilterOptions, PromisifyFn, Fn, Pausable } from '@destyler/shared';
import { DateValue } from '@internationalized/date';

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

*
* @defaultValue "data-radix-vue-collection-item"
* @defaultValue "data-destyler-collection-item"
*/

@@ -387,2 +388,67 @@ attributeName?: string;

export { type CloneFn, type ConfigurableWindow, type ImageLoadingStatus, 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, useDebounceFn, useDirection, useEmitAsProps, useFocusGuards, useFormControl, useForwardExpose, useForwardProps, useForwardPropsEmits, useForwardRef, useHideOthers, useId, useImageLoadingStatus, useMounted, useMutationObserver, usePresence, usePrevious, useRafFn, useResizeObserver, useSingleOrMultipleValue, useSize, useStateMachine, useSupported, useTimeout, useTimeoutFn, useTypeahead, useVModel };
interface Formatter {
getLocale: () => string;
setLocale: (newLocale: string) => void;
custom: (date: Date, options: Intl.DateTimeFormatOptions) => string;
selectedDate: (date: DateValue, includeTime?: boolean) => string;
dayOfWeek: (date: Date, length?: Intl.DateTimeFormatOptions['weekday']) => string;
fullMonthAndYear: (date: Date) => string;
fullMonth: (date: Date) => string;
fullYear: (date: Date) => string;
dayPeriod: (date: Date) => string;
part: (dateObj: DateValue, type: Intl.DateTimeFormatPartTypes, options?: Intl.DateTimeFormatOptions) => string;
toParts: (date: DateValue, options?: Intl.DateTimeFormatOptions) => Intl.DateTimeFormatPart[];
getMonths: () => {
label: string;
value: number;
}[];
}
/**
* Creates a wrapper around the `DateFormatter`, which is
* an improved version of the {@link Intl.DateTimeFormat} API,
* that is used internally by the various date builders to
* easily format dates in a consistent way.
*
* @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html)
*/
declare function useDateFormatter(initialLocale: string): Formatter;
declare function useKbd(): {
ALT: string;
ARROW_DOWN: string;
ARROW_LEFT: string;
ARROW_RIGHT: string;
ARROW_UP: string;
BACKSPACE: string;
CAPS_LOCK: string;
CONTROL: string;
DELETE: string;
END: string;
ENTER: string;
ESCAPE: string;
F1: string;
F10: string;
F11: string;
F12: string;
F2: string;
F3: string;
F4: string;
F5: string;
F6: string;
F7: string;
F8: string;
F9: string;
HOME: string;
META: string;
PAGE_DOWN: string;
PAGE_UP: string;
SHIFT: string;
SPACE: string;
TAB: string;
CTRL: string;
ASTERISK: string;
SPACE_CODE: string;
};
type KbdKeys = keyof ReturnType<typeof useKbd>;
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 };

8

package.json
{
"name": "@destyler/composition",
"version": "0.0.1-beta.22",
"version": "0.0.1",
"description": "",

@@ -26,4 +26,8 @@ "author": "Elone Hoo <elonehoo@gmail.com>",

"dependencies": {
"@internationalized/date": "^3.5.2",
"@vueuse/core": "^10.7.2",
"@vueuse/shared": "^10.7.2",
"aria-hidden": "^1.2.3",
"@destyler/shared": "0.0.1-beta.22"
"defu": "^6.1.4",
"@destyler/shared": "0.0.1"
},

@@ -30,0 +34,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

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