@chakra-ui/event-utils
Advanced tools
Comparing version 0.0.0-dev-20221108124603 to 0.0.0-dev-20221223180742
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18890
25
508
1