Skip to content

Commit

Permalink
v1.4.0-alpha.33+sha.5701f0f
Browse files Browse the repository at this point in the history
  • Loading branch information
taye committed Mar 10, 2019
1 parent 5701f0f commit 5d07941
Show file tree
Hide file tree
Showing 36 changed files with 312 additions and 132 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.32",
"version": "1.4.0-alpha.33",
"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.32+sha.7899eaa",
"version": "1.4.0-alpha.33+sha.5701f0f",
"bin": {
"_dev": "scripts/_dev",
"@build": "scripts/build.js",
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.32+sha.7899eaa",
"version": "1.4.0-alpha.33+sha.5701f0f",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/core": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/core": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/_dev": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/core": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"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.32+sha.7899eaa",
"version": "1.4.0-alpha.33+sha.5701f0f",
"peerDependencies": {
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/_dev": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/auto-start/InteractableMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module '@interactjs/core/Interaction' {
}
}
declare function install(scope: Scope): void;
declare function getAction(this: Interactable, pointer: Interact.PointerType, event: Interact.PointerEventType, interaction: Interaction, element: Element): any;
declare function getAction(this: Interactable, pointer: Interact.PointerType, event: Interact.PointerEventType, interaction: Interaction, element: Element): Interact.ActionProps;
declare function styleCursor(this: Interactable, newValue?: boolean): any;
declare function actionChecker(this: Interactable, checker: any): any;
declare function testIgnoreAllow(this: Interactable, options: {
Expand Down
2 changes: 1 addition & 1 deletion packages/auto-start/InteractableMethods.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions packages/auto-start/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export interface AutoStart {
signals: utils.Signals;
}
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 validateAction(action: any, interactable: any, element: any, eventTarget: 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: {
Expand Down
15 changes: 9 additions & 6 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.32+sha.7899eaa",
"version": "1.4.0-alpha.33+sha.5701f0f",
"peerDependencies": {
"@interactjs/core": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/core": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/actions": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/core": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/_dev": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/actions": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/core": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/Interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,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, interactable: Interactable, element: Element): void;
start(action: StartAction, interactable: Interactable, element: Element): boolean;
pointerMove(pointer: Interact.PointerType, event: Interact.PointerEventType, eventTarget: EventTarget): void;
/**
* ```js
Expand Down
5 changes: 3 additions & 2 deletions packages/core/Interaction.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@interactjs/core",
"version": "1.4.0-alpha.32+sha.7899eaa",
"version": "1.4.0-alpha.33+sha.5701f0f",
"peerDependencies": {
"@interactjs/dev-tools": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/dev-tools": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.32+sha.7899eaa",
"@interactjs/utils": "1.4.0-alpha.32+sha.7899eaa"
"@interactjs/_dev": "1.4.0-alpha.33+sha.5701f0f",
"@interactjs/utils": "1.4.0-alpha.33+sha.5701f0f"
},
"publishConfig": {
"access": "public"
Expand Down
23 changes: 23 additions & 0 deletions packages/dev-tools/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright (c) 2012-2019 Taye Adeyemi <[email protected]>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions packages/dev-tools/devTools.spec.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
51 changes: 51 additions & 0 deletions packages/dev-tools/devTools.spec.js

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

29 changes: 29 additions & 0 deletions packages/dev-tools/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
declare module '@interactjs/core/scope' {
interface Scope {
logger: Logger;
}
}
export interface Logger {
warn: (...args: any[]) => void;
error: (...args: any[]) => void;
log: (...args: any[]) => void;
}
export declare const links: {
touchAction: string;
boxSizing: string;
};
export declare const install: (scope: import("@interactjs/core/scope").Scope, { logger }?: {
logger?: Logger;
}) => void;
export declare const touchActionMessage = "[interact.js] Consider adding CSS \"touch-action: none\" to this element\n";
export declare const boxSizingMessage = "[interact.js] Consider adding CSS \"box-sizing: border-box\" to this resizable element";
export declare const noListenersMessage = "[interact.js] There are no listeners set for this action";
export declare function touchAction({ element }: Interact.Interaction, logger: Logger): void;
export declare function boxSizing(interaction: Interact.Interaction, logger: Logger): void;
export declare function noListeners(interaction: Interact.Interaction, logger: Logger): void;
declare const _default: {
install: (scope: import("@interactjs/core/scope").Scope, { logger }?: {
logger?: Logger;
}) => void;
};
export default _default;
Loading

0 comments on commit 5d07941

Please sign in to comment.