@types/react-big-calendar
Advanced tools
Comparing version 1.6.2 to 1.6.3
import { CalendarProps, Components, Event, stringOrDate } from '../../index'; | ||
import * as React from 'react'; | ||
export type DragAction = 'resize' | 'move'; | ||
export type DragDirection = 'UP' | 'DOWN' | 'LEFT' | 'RIGHT'; | ||
export interface EventInteractionArgs<TEvent> { | ||
event: TEvent; | ||
start: stringOrDate; | ||
end: stringOrDate; | ||
isAllDay: boolean; | ||
} | ||
export interface OnDragStartArgs<TEvent> { | ||
event: TEvent; | ||
action: DragAction; | ||
direction: DragDirection; | ||
} | ||
export interface DragFromOutsideItemArgs { | ||
start: stringOrDate; | ||
end: stringOrDate; | ||
allDay: boolean; | ||
} | ||
export interface withDragAndDropProps<TEvent extends object = Event, TResource extends object = object> { | ||
onEventDrop?: ((args: { event: TEvent, start: stringOrDate, end: stringOrDate, isAllDay: boolean }) => void) | undefined; | ||
onEventResize?: ((args: { event: TEvent, start: stringOrDate, end: stringOrDate, isAllDay: boolean }) => void) | undefined; | ||
onDragStart?: ((args: { event: TEvent, action: 'resize' | 'move', direction: 'UP' | 'DOWN' | 'LEFT' | 'RIGHT' }) => void) | undefined; | ||
onEventDrop?: ((args: EventInteractionArgs<TEvent>) => void) | undefined; | ||
onEventResize?: ((args: EventInteractionArgs<TEvent>) => void) | undefined; | ||
onDragStart?: ((args: OnDragStartArgs<TEvent>) => void) | undefined; | ||
onDragOver?: ((event: React.DragEvent) => void) | undefined; | ||
onDropFromOutside?: ((args: { start: stringOrDate, end: stringOrDate, allDay: boolean}) => void) | undefined; | ||
onDropFromOutside?: ((args: DragFromOutsideItemArgs) => void) | undefined; | ||
dragFromOutsideItem?: (() => keyof TEvent | ((event: TEvent) => Date)) | undefined; | ||
@@ -29,2 +52,3 @@ draggableAccessor?: keyof TEvent | ((event: TEvent) => boolean) | undefined; | ||
): React.ComponentType<DragAndDropCalendarProps<TEvent, TResource>>; | ||
export default withDragAndDrop; | ||
@@ -31,0 +55,0 @@ |
{ | ||
"name": "@types/react-big-calendar", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "TypeScript definitions for react-big-calendar", | ||
@@ -102,4 +102,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-big-calendar", | ||
}, | ||
"typesPublisherContentHash": "c4e649dd74cedab23e119fea009f7995b396af24538ee04e9ecb68733ef6296c", | ||
"typesPublisherContentHash": "275e43facd3d187da296ced10f72e807fd7aad7852a1675f5f9a00e7b93fda2b", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 25 Mar 2023 19:02:55 GMT | ||
* Last updated: Mon, 27 Mar 2023 18:33:58 GMT | ||
* Dependencies: [@types/date-arithmetic](https://npmjs.com/package/@types/date-arithmetic), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
31157
628