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

@chakra-ui/event-utils

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/event-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20221108124603 to 0.0.0-dev-20221223180742

dist/add-dom-event.d.ts

32

dist/index.d.ts

@@ -1,27 +0,5 @@

declare function addDomEvent(target: EventTarget, eventName: string, handler: EventListener, options?: AddEventListenerOptions): () => void;
declare type AnyPointerEvent = MouseEvent | TouchEvent | PointerEvent;
interface Point {
x: number;
y: number;
}
interface PointerEventInfo {
point: Point;
}
interface MixedEventListener {
(e: AnyPointerEvent, info: PointerEventInfo): void;
}
declare type PointType = "page" | "client";
declare function addPointerEvent(target: EventTarget, type: string, cb: MixedEventListener, options?: AddEventListenerOptions): () => void;
declare function isMouseEvent(event: any): event is MouseEvent;
declare function isTouchEvent(event: AnyPointerEvent): event is TouchEvent;
declare function isMultiTouchEvent(event: AnyPointerEvent): boolean;
declare function getEventPoint(event: AnyPointerEvent, type?: PointType): {
x: number;
y: number;
};
export { addDomEvent, addPointerEvent, getEventPoint, isMouseEvent, isMultiTouchEvent, isTouchEvent };
export { addDomEvent } from './add-dom-event.js';
export { addPointerEvent } from './add-pointer-event.js';
export { isMouseEvent, isMultiTouchEvent, isTouchEvent } from './assertion.js';
export { getEventPoint } from './get-event-point.js';
import './types.js';
{
"name": "@chakra-ui/event-utils",
"version": "0.0.0-dev-20221108124603",
"version": "0.0.0-dev-20221223180742",
"description": "",

@@ -11,3 +11,3 @@ "keywords": [

"license": "MIT",
"main": "dist/index.cjs.js",
"main": "dist/index.js",
"sideEffects": false,

@@ -31,9 +31,18 @@ "files": [

},
"module": "dist/index.esm.js",
"clean-package": "../../../clean-package.config.json",
"tsup": {
"clean": true,
"target": "es2019",
"format": [
"cjs",
"esm"
]
},
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},

@@ -43,8 +52,8 @@ "./package.json": "./package.json"

"scripts": {
"build": "tsup src/index.ts --format=esm,cjs --dts",
"build": "tsup src --dts",
"dev": "pnpm build:fast -- --watch",
"clean": "rimraf dist .turbo",
"typecheck": "tsc --noEmit",
"build:fast": "tsup src/index.ts --format=esm,cjs"
"build:fast": "tsup src"
}
}
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