Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interactjs/utils

Package Overview
Dependencies
Maintainers
2
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/utils - npm Package Compare versions

Comparing version 1.4.0-alpha.25 to 1.4.0-alpha.26

6

browser.js

@@ -20,4 +20,4 @@ import domObjects from './domObjects';

// Does the browser support touch input?
browser.supportsTouch = !!(('ontouchstart' in window) || is.func(window.DocumentTouch)) &&
domObjects.document instanceof window.DocumentTouch;
browser.supportsTouch = ('ontouchstart' in window) ||
(is.func(window.DocumentTouch) && domObjects.document instanceof window.DocumentTouch);
// Does the browser support PointerEvents

@@ -67,2 +67,2 @@ browser.supportsPointerEvent = !!domObjects.PointerEvent;

export default browser;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxVQUFVLE1BQU0sY0FBYyxDQUFBO0FBQ3JDLE9BQU8sS0FBSyxFQUFFLE1BQU0sTUFBTSxDQUFBO0FBQzFCLE9BQU8sR0FBRyxNQUFNLFVBQVUsQ0FBQTtBQUUxQixNQUFNLE9BQU8sR0FBRztJQUNkLElBQUk7SUFDSixhQUFhLEVBQUUsSUFBZTtJQUM5QixvQkFBb0IsRUFBRSxJQUFlO0lBQ3JDLE1BQU0sRUFBRSxJQUFlO0lBQ3ZCLEtBQUssRUFBRSxJQUFlO0lBQ3RCLEtBQUssRUFBRSxJQUFlO0lBQ3RCLGFBQWEsRUFBRSxJQUFlO0lBQzlCLHVCQUF1QixFQUFFLElBQWM7SUFDdkMsV0FBVyxFQUFFLElBT1o7SUFDRCxVQUFVLEVBQUUsSUFBYztDQUMzQixDQUFBO0FBRUQsU0FBUyxJQUF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NoZXNTZWxlY3RvciA9ICdtYXRjaGVzJyBpbiBFbGVtZW50LnByb3RvdHlwZVxuICAgID8gJ21hdGNoZXMnXG4gICAgOiAnd2Via2l0TWF0Y2hlc1NlbGVjdG9yJyBpbiBFbGVtZW50LnByb3RvdHlwZVxuICAgICAgPyAnd2Via2l0TWF0Y2hlc1NlbGVjdG9yJ1xuICAgICAgOiAnbW96TWF0Y2hlc1NlbGVjdG9yJyBpbiBFbGVtZW50LnByb3RvdHlwZVxuICAgICAgICA/ICdtb3pNYXRjaGVzU2VsZWN0b3InXG4gICAgICAgIDogJ29NYXRjaGVzU2VsZWN0b3InIGluIEVsZW1lbnQucHJvdG90eXBlXG4gICAgICAgICAgPyAnb01hdGNoZXNTZWxlY3RvcidcbiAgICAgICAgICA6ICdtc01hdGNoZXNTZWxlY3RvcidcblxuICBicm93c2VyLnBFdmVudFR5cGVzID0gKGRvbU9iamVjdHMuUG9pbnRlckV2ZW50XG4gICAgPyAoZG9tT2JqZWN0cy5Qb2ludGVyRXZlbnQgPT09IHdpbmRvdy5NU1BvaW50ZXJFdmVudFxuICAgICAgPyB7XG4gICAgICAgIHVwOiAgICAgJ01TUG9pbnRlclVwJyxcbiAgICAgICAgZG93bjogICAnTVNQb2ludGVyRG93bicsXG4gICAgICAgIG92ZXI6ICAgJ21vdXNlb3ZlcicsXG4gICAgICAgIG91dDogICAgJ21vdXNlb3V0JyxcbiAgICAgICAgbW92ZTogICAnTVNQb2ludGVyTW92ZScsXG4gICAgICAgIGNhbmNlbDogJ01TUG9pbnRlckNhbmNlbCcsXG4gICAgICB9XG4gICAgICA6IHtcbiAgICAgICAgdXA6ICAgICAncG9pbnRlcnVwJyxcbiAgICAgICAgZG93bjogICAncG9pbnRlcmRvd24nLFxuICAgICAgICBvdmVyOiAgICdwb2ludGVyb3ZlcicsXG4gICAgICAgIG91dDogICAgJ3BvaW50ZXJvdXQnLFxuICAgICAgICBtb3ZlOiAgICdwb2ludGVybW92ZScsXG4gICAgICAgIGNhbmNlbDogJ3BvaW50ZXJjYW5jZWwnLFxuICAgICAgfSlcbiAgICA6IG51bGwpXG5cbiAgLy8gYmVjYXVzZSBXZWJraXQgYW5kIE9wZXJhIHN0aWxsIHVzZSAnbW91c2V3aGVlbCcgZXZlbnQgdHlwZVxuICBicm93c2VyLndoZWVsRXZlbnQgPSAnb25tb3VzZXdoZWVsJyBpbiBkb21PYmplY3RzLmRvY3VtZW50ID8gJ21vdXNld2hlZWwnIDogJ3doZWVsJ1xufVxuXG5leHBvcnQgZGVmYXVsdCBicm93c2VyXG4iXX0=
{
"name": "@interactjs/utils",
"version": "1.4.0-alpha.25+sha.c3a67ce",
"version": "1.4.0-alpha.26+sha.ae18425",
"devDependencies": {
"@interactjs/_dev": "1.4.0-alpha.25+sha.c3a67ce"
"@interactjs/_dev": "1.4.0-alpha.26+sha.ae18425"
},

@@ -7,0 +7,0 @@ "publishConfig": {

@@ -8,3 +8,3 @@ import pointerExtend from './pointerExtend';

getXY(type: any, pointer: any, xy: any): any;
getPageXY(pointer: Touch | MouseEvent | PointerEvent | import("@interactjs/core/InteractEvent").InteractEvent, page?: import("../interactjs/types").Point): import("../interactjs/types").Point;
getPageXY(pointer: import("../types").PointerType, page?: import("../types").Point): import("../types").Point;
getClientXY(pointer: any, client: any): any;

@@ -11,0 +11,0 @@ getPointerId(pointer: any): any;

@@ -1,2 +0,13 @@

declare type SignalListener = (signalArg: any, sinalName: string) => (void | boolean);
export declare type SignalListener = (signalArg: PartialSignalArg, sinalName: string) => (void | boolean);
export interface SignalArg<T extends Interact.ActionName = any> {
interaction: Interact.Interaction;
Interactable: Interact.Interactable;
iEvent: Interact.InteractEvent<T>;
element: Window | Document | Element;
coords: Interact.Point;
event: Interact.PointerEventType;
phase: Interact.EventPhase;
[index: string]: any;
}
export declare type PartialSignalArg = Partial<SignalArg>;
declare class Signals {

@@ -3,0 +14,0 @@ listeners: {

@@ -34,2 +34,2 @@ class Signals {

export default Signals;
//# sourceMappingURL=data:application/json;base64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3QgdGFyZ2V0TGlzdGVuZXJzID0gdGhpcy5saXN0ZW5lcnNbbmFtZV1cblxuICAgIGlmICghdGFyZ2V0TGlzdGVuZXJzKSB7IHJldHVybiB9XG5cbiAgICBmb3IgKGNvbnN0IGxpc3RlbmVyIG9mIHRhcmdldExpc3RlbmVycykge1xuICAgICAgaWYgKGxpc3RlbmVyKGFyZywgbmFtZSkgPT09IGZhbHNlKSB7XG4gICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgfVxuICAgIH1cbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBTaWduYWxzXG4iXX0=
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc