Skip to content

Commit

Permalink
v1.4.0-alpha.20+sha.ce0da21
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Jan 29, 2019
1 parent ce0da21 commit eb9cdb4
Show file tree
Hide file tree
Showing 130 changed files with 2,307 additions and 272 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.19",
"version": "1.4.0-alpha.20",
"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.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"bin": {
"_dev": "scripts/_dev",
"@build": "scripts/build.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/actions/drop/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare module '@interactjs/core/scope' {
}
declare module '@interactjs/interact/interact' {
interface InteractStatic {
dynamicDrop?: (newValue?: boolean) => boolean | InteractStatic;
dynamicDrop: (newValue?: boolean) => boolean | InteractStatic;
}
}
declare function install(scope: Scope): void;
Expand Down
12 changes: 6 additions & 6 deletions packages/actions/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@interactjs/actions",
"version": "1.4.0-alpha.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/core": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/core": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/_dev": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/core": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/auto-scroll/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@interactjs/auto-scroll",
"version": "1.4.0-alpha.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"peerDependencies": {
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/_dev": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/auto-start/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@interactjs/auto-start",
"version": "1.4.0-alpha.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/core": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/core": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/_dev": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/core": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/core/Interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export declare class Interaction {
pointerType: string;
pointers: PointerInfo[];
downEvent: Interact.PointerEventType;
downPointer: import("../interactjs/types").PointerType;
downPointer: Interact.PointerType;
_latestPointer: {
pointer: import("../interactjs/types").PointerType;
event: import("../interactjs/types").PointerEventType;
eventTarget: EventTarget;
pointer: EventTarget;
event: Interact.PointerEventType;
eventTarget: Node;
};
prevEvent: InteractEvent;
pointerIsDown: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/Interaction.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@interactjs/core",
"version": "1.4.0-alpha.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"peerDependencies": {
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/_dev": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions packages/inertia/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@interactjs/inertia",
"version": "1.4.0-alpha.19+sha.19ac543",
"version": "1.4.0-alpha.20+sha.ce0da21",
"peerDependencies": {
"@interactjs/modifiers": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/modifiers": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/modifiers": "1.4.0-alpha.19+sha.19ac543",
"@interactjs/utils": "1.4.0-alpha.19+sha.19ac543"
"@interactjs/_dev": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/modifiers": "1.4.0-alpha.20+sha.ce0da21",
"@interactjs/utils": "1.4.0-alpha.20+sha.ce0da21"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/interact/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { default as interact } from './interact';
export declare function init(window: any): import("@interactjs/interact/interact").InteractStatic & ((target: import("../interactjs/types").Target, options?: any) => import("@interactjs/core/Interactable").Interactable);
export declare function init(window: Window): typeof interact;
export declare namespace init {
var version: string;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/interact/index.js.map

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

53 changes: 44 additions & 9 deletions packages/interact/interact.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface Plugin extends Partial<any> {
}
declare module '@interactjs/core/scope' {
interface Scope {
interact: typeof interact;
interact: typeof interactExport;
_plugins: Plugin[];
}
}
Expand All @@ -33,7 +33,6 @@ export interface InteractStatic {
version: string;
}
declare const scope: Scope;
declare function interactStatic(target: Interact.Target, options?: any): import("@interactjs/core/Interactable").Interactable;
/**
* ```js
* interact('#draggable').draggable(true);
Expand All @@ -59,15 +58,51 @@ declare function interactStatic(target: Interact.Target, options?: any): import(
* or CSS selector
* @return {Interactable}
*/
export declare const interact: InteractStatic & typeof interactStatic;
declare function use(plugin: Plugin): InteractStatic & typeof interactStatic;
export declare function interact<InteractStatic>(target: Interact.Target, options?: any): import("@interactjs/core/Interactable").Interactable;
export declare namespace interact {
var use: typeof use;
var isSet: typeof isSet;
var on: typeof on;
var off: typeof off;
var debug: typeof debug;
var getPointerAverage: (pointers: PointerEvent[] | Event[]) => {
pageX: number;
pageY: number;
clientX: number;
clientY: number;
screenX: number;
screenY: number;
};
var getTouchBBox: (event: Event | PointerEvent[]) => {
x: number;
y: number;
left: number;
top: number;
width: number;
height: number;
};
var getTouchDistance: (event: any, deltaSource: any) => number;
var getTouchAngle: (event: any, deltaSource: any) => number;
var getElementRect: typeof utils.dom.getElementRect;
var getElementClientRect: typeof utils.dom.getElementClientRect;
var matchesSelector: typeof utils.dom.matchesSelector;
var closest: typeof utils.dom.closest;
var supportsTouch: typeof supportsTouch;
var supportsPointerEvent: typeof supportsPointerEvent;
var stop: typeof stop;
var pointerMoveTolerance: typeof pointerMoveTolerance;
var addDocument: (doc: Document, options?: any) => false | void;
var removeDocument: (doc: any) => void;
}
declare function use(plugin: Plugin): typeof interact;
declare function isSet(element: Element, options?: any): boolean;
declare function on(type: String | Interact.EventTypes, listener: Interact.Listeners, options?: any): InteractStatic & typeof interactStatic;
declare function off(type: any, listener: any, options: any): InteractStatic & typeof interactStatic;
declare function on(type: String | Interact.EventTypes, listener: Interact.Listeners, options?: any): typeof interact;
declare function off(type: any, listener: any, options: any): typeof interact;
declare function debug(): Scope;
declare function supportsTouch(): boolean;
declare function supportsPointerEvent(): boolean;
declare function stop(): InteractStatic & typeof interactStatic;
declare function pointerMoveTolerance(newValue: any): number | (InteractStatic & typeof interactStatic);
declare function stop(): typeof interact;
declare function pointerMoveTolerance(newValue: any): number | typeof interact;
export declare const interactExport: InteractStatic & typeof interact;
export { scope };
export default interact;
export default interactExport;
22 changes: 11 additions & 11 deletions packages/interact/interact.js

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

Loading

0 comments on commit eb9cdb4

Please sign in to comment.