Skip to content

Commit

Permalink
v1.4.0-alpha.31+sha.6f00f8c
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Feb 15, 2019
1 parent 6f00f8c commit 8437ba2
Show file tree
Hide file tree
Showing 33 changed files with 333 additions and 226 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.30",
"version": "1.4.0-alpha.31",
"packages": [
".",
"packages/*"
Expand Down
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.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"bin": {
"_dev": "scripts/_dev",
"@build": "scripts/build.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/actions/gesture.spec.js

Large diffs are not rendered by default.

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.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"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.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/auto-start/autoStart.spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
21 changes: 21 additions & 0 deletions packages/auto-start/autoStart.spec.js

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

9 changes: 4 additions & 5 deletions packages/auto-start/base.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as utils from '@interactjs/utils';
declare type Scope = import('@interactjs/core/scope').Scope;
declare module '@interactjs/interact/interact' {
interface InteractStatic {
maxInteractions: (newValue: any) => any;
Expand Down Expand Up @@ -28,15 +27,15 @@ declare module '@interactjs/core/defaultOptions' {
export interface AutoStart {
maxInteractions: number;
withinInteractionLimit: typeof withinInteractionLimit;
cursorElement: Element;
cursorElement: HTMLElement;
signals: utils.Signals;
}
declare function install(scope: Scope): void;
declare function install(scope: Interact.Scope): void;
declare function validateAction(action: any, interactable: any, element: any, eventTarget: any, scope: any): {
[index: string]: any;
};
declare function withinInteractionLimit(interactable: any, element: any, action: any, scope: any): boolean;
declare function maxInteractions(newValue: any, scope: any): any;
declare function withinInteractionLimit(interactable: Interact.Interactable, element: Element, action: any, scope: Interact.Scope): boolean;
declare function maxInteractions(newValue: any, scope: Interact.Scope): any;
declare const _default: {
install: typeof install;
maxInteractions: typeof maxInteractions;
Expand Down
51 changes: 27 additions & 24 deletions packages/auto-start/base.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions packages/auto-start/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@interactjs/auto-start",
"version": "1.4.0-alpha.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/actions": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/actions": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 5 additions & 1 deletion packages/core/Interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export interface StartAction extends ActionProps {
export declare class Interaction<T extends ActionName = any> {
interactable: Interactable;
element: Element;
rect: Interact.Rect & Interact.Rect3;
edges: {
[P in keyof Interact.Rect]?: boolean;
};
_signals: utils.Signals;
prepared: ActionProps<T>;
pointerType: string;
Expand Down Expand Up @@ -132,7 +136,7 @@ export declare class Interaction<T extends ActionName = any> {
* @param {Element} element The DOM Element to target
* @return {object} interact
*/
start(action: StartAction, target: Interactable, element: Element): void;
start(action: StartAction, interactable: Interactable, element: Element): void;
pointerMove(pointer: Interact.PointerType, event: Interact.PointerEventType, eventTarget: EventTarget): void;
/**
* ```js
Expand Down
28 changes: 24 additions & 4 deletions packages/core/Interaction.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions packages/core/Interaction.spec.js

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.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"publishConfig": {
"access": "public"
Expand Down
16 changes: 8 additions & 8 deletions packages/inertia/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@interactjs/inertia",
"version": "1.4.0-alpha.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/modifiers": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/modifiers": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/modifiers": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/modifiers": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"publishConfig": {
"access": "public"
Expand Down
40 changes: 20 additions & 20 deletions packages/interact/package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"name": "@interactjs/interact",
"version": "1.4.0-alpha.30+sha.bdc493e",
"version": "1.4.0-alpha.31+sha.6f00f8c",
"peerDependencies": {
"@interactjs/actions": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/auto-scroll": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/auto-start": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/inertia": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/modifiers": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/pointer-events": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/reflow": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/actions": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/auto-scroll": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/auto-start": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/inertia": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/modifiers": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/pointer-events": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/reflow": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/actions": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/auto-scroll": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/auto-start": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/core": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/inertia": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/modifiers": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/pointer-events": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/reflow": "1.4.0-alpha.30+sha.bdc493e",
"@interactjs/utils": "1.4.0-alpha.30+sha.bdc493e"
"@interactjs/_dev": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/actions": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/auto-scroll": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/auto-start": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/core": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/inertia": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/modifiers": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/pointer-events": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/reflow": "1.4.0-alpha.31+sha.6f00f8c",
"@interactjs/utils": "1.4.0-alpha.31+sha.6f00f8c"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/interactjs/dist/docs/doclets.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/interactjs/dist/docs/module-interact.html
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ <h4 class="name" id=".maxInteractions"><span class="type-signature">(static) </s

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="packages_auto-start_base.ts.html">packages/auto-start/base.ts</a>, <a href="packages_auto-start_base.ts.html#line121">line 121</a>
<a href="packages_auto-start_base.ts.html">packages/auto-start/base.ts</a>, <a href="packages_auto-start_base.ts.html#line120">line 120</a>
</li></ul></dd>


Expand Down
Loading

0 comments on commit 8437ba2

Please sign in to comment.