Skip to content

Commit

Permalink
v1.4.0-alpha.26+sha.ae18425
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Feb 5, 2019
1 parent ae18425 commit 67f6a71
Show file tree
Hide file tree
Showing 81 changed files with 5,703 additions and 5,433 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.0-alpha.25",
"version": "1.4.0-alpha.26",
"packages": [
".",
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@interactjs/_dev",
"private": "true",
"version": "1.4.0-alpha.25+sha.c3a67ce",
"version": "1.4.0-alpha.26+sha.ae18425",
"bin": {
"_dev": "scripts/_dev",
"@build": "scripts/build.js",
Expand Down
25 changes: 22 additions & 3 deletions packages/actions/drag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
import { Scope } from '@interactjs/core/scope';
import { ActionName, Scope } from '@interactjs/core/scope';
declare module '@interactjs/core/Interactable' {
interface Interactable {
draggable: DraggableMethod;
}
}
declare module '@interactjs/core/defaultOptions' {
interface ActionDefaults {
drag?: Interact.DraggableOptions;
}
}
declare module '@interactjs/core/scope' {
interface Actions {
[ActionName.Drag]?: typeof drag;
}
enum ActionName {
Drag = "drag"
}
}
export declare type DragEvent = Interact.InteractEvent<ActionName.Drag>;
export declare type DraggableMethod = (options?: Interact.OrBoolean<Interact.DraggableOptions> | boolean) => Interact.Interactable | Interact.DropzoneOptions;
declare function install(scope: Scope): void;
declare function beforeMove({ interaction }: {
Expand Down Expand Up @@ -47,13 +66,13 @@ declare function move({ iEvent, interaction }: {
* @return {boolean | Interactable} boolean indicating if this can be the
* target of drag events, or this Interctable
*/
declare function draggable(this: Interact.Interactable, options?: Interact.DraggableOptions | boolean): import("../interactjs/types").DraggableOptions | import("@interactjs/core/Interactable").Interactable;
declare function draggable(this: Interact.Interactable, options?: Interact.DraggableOptions | boolean): import("@interactjs/core/Interactable").Interactable | import("../types").DraggableOptions;
declare const drag: {
install: typeof install;
draggable: typeof draggable;
beforeMove: typeof beforeMove;
move: typeof move;
defaults: import("../interactjs/types").DropzoneOptions;
defaults: import("../types").DropzoneOptions;
checker(_pointer: any, _event: any, interactable: any): {
name: string;
axis: any;
Expand Down
6 changes: 4 additions & 2 deletions packages/actions/drag.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion packages/actions/drop/DropEvent.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import Interactable from '@interactjs/core/Interactable';
import InteractEvent from '@interactjs/core/InteractEvent';
import Interaction from '@interactjs/core/Interaction';
import { ActionName } from '@interactjs/core/scope';
declare class DropEvent {
type: string;
target: Element;
currentTarget: Element;
dropzone: Interactable;
dragEvent: InteractEvent;
dragEvent: InteractEvent<ActionName.Drag>;
relatedTarget: Element;
interaction: Interaction;
draggable: Interactable;
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/drop/DropEvent.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/actions/drop/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ declare const drop: {
getDrop: typeof getDrop;
getDropEvents: typeof getDropEvents;
fireDropEvents: typeof fireDropEvents;
defaults: import("../../interactjs/types").DropzoneOptions;
defaults: import("../../types").DropzoneOptions;
};
export default drop;
4 changes: 3 additions & 1 deletion packages/actions/drop/index.js

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion packages/actions/gesture.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
import { Scope } from '@interactjs/core/scope';
import { ActionName, Scope } from '@interactjs/core/scope';
export declare type GesturableMethod = (options?: Interact.GesturableOptions | boolean) => Interact.Interactable | Interact.GesturableOptions;
declare module '@interactjs/core/Interactable' {
interface Interactable {
gesturable: GesturableMethod;
}
}
declare module '@interactjs/core/defaultOptions' {
interface ActionDefaults {
gesture?: Interact.GesturableOptions;
}
}
declare module '@interactjs/core/scope' {
interface Actions {
[ActionName.Gesture]?: typeof gesture;
}
enum ActionName {
Gesture = "gesture"
}
}
export declare type GestureEvent = Interact.InteractEvent<ActionName.Gesture>;
declare function install(scope: Scope): void;
declare const gesture: {
install: typeof install;
Expand Down
Loading

0 comments on commit 67f6a71

Please sign in to comment.