@shopify/draggable
Advanced tools
Comparing version 1.1.1 to 1.1.2
import AbstractEvent from '../../shared/AbstractEvent'; | ||
import { SensorEvent } from '../Sensors/SensorEvent'; | ||
/** | ||
@@ -6,3 +7,3 @@ * DragEventData | ||
*/ | ||
interface DragEventData { | ||
export interface DragEventData { | ||
source: HTMLElement; | ||
@@ -12,3 +13,3 @@ originalSource: HTMLElement; | ||
sourceContainer: HTMLElement; | ||
sensorEvent: any; | ||
sensorEvent: SensorEvent; | ||
} | ||
@@ -64,3 +65,3 @@ /** | ||
*/ | ||
get sensorEvent(): any; | ||
get sensorEvent(): SensorEvent; | ||
/** | ||
@@ -72,3 +73,3 @@ * Original event that triggered sensor event | ||
*/ | ||
get originalEvent(): any; | ||
get originalEvent(): Event | null | undefined; | ||
} | ||
@@ -98,3 +99,3 @@ /** | ||
*/ | ||
interface DragOverEventData extends DragEventData { | ||
export interface DragOverEventData extends DragEventData { | ||
overContainer: HTMLElement; | ||
@@ -101,0 +102,0 @@ over: HTMLElement; |
import AbstractPlugin from '../../shared/AbstractPlugin'; | ||
import { FixMeAny } from '../../shared/types'; | ||
/** | ||
@@ -23,3 +24,3 @@ * ResizeMirror default options | ||
*/ | ||
constructor(draggable: any); | ||
constructor(draggable: FixMeAny); | ||
/** | ||
@@ -26,0 +27,0 @@ * Attaches plugins event listeners |
import AbstractPlugin from '../../shared/AbstractPlugin'; | ||
import { FixMeAny } from '../../shared/types'; | ||
interface Options { | ||
@@ -30,3 +31,3 @@ duration: number; | ||
*/ | ||
constructor(draggable: any); | ||
constructor(draggable: FixMeAny); | ||
/** | ||
@@ -50,5 +51,5 @@ * Attaches plugins event listeners | ||
*/ | ||
onSortableSorted({ oldIndex, newIndex, dragEvent }: any): void; | ||
onSortableSorted({ oldIndex, newIndex, dragEvent }: FixMeAny): void; | ||
} | ||
export {}; | ||
//# sourceMappingURL=SwapAnimation.d.ts.map |
@@ -68,4 +68,4 @@ /** | ||
*/ | ||
clone(data: T): AbstractEvent<T>; | ||
clone(data: Partial<T>): AbstractEvent<T>; | ||
} | ||
//# sourceMappingURL=AbstractEvent.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import { FixMeAny } from '../types'; | ||
/** | ||
@@ -8,3 +9,3 @@ * All draggable plugins inherit from this class. | ||
export declare abstract class AbstractPlugin { | ||
protected draggable: any; | ||
protected draggable: FixMeAny; | ||
/** | ||
@@ -15,3 +16,3 @@ * AbstractPlugin constructor. | ||
*/ | ||
constructor(draggable: any); | ||
constructor(draggable: FixMeAny); | ||
/** | ||
@@ -18,0 +19,0 @@ * Override to add listeners |
{ | ||
"name": "@shopify/draggable", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
616103
261
15563
0