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

@types/react-big-calendar

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-big-calendar - npm Package Compare versions

Comparing version 1.6.2 to 1.6.3

32

react-big-calendar/lib/addons/dragAndDrop.d.ts
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 @@

4

react-big-calendar/package.json
{
"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

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