Socket
Socket
Sign inDemoInstall

@use-gesture/core

Package Overview
Dependencies
0
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.2.26 to 10.2.27

actions/dist/use-gesture-core-actions.cjs.d.ts.map

1

actions/dist/use-gesture-core-actions.cjs.d.ts
export * from "../../dist/declarations/src/actions";
//# sourceMappingURL=use-gesture-core-actions.cjs.d.ts.map

2

actions/dist/use-gesture-core-actions.cjs.dev.js

@@ -5,3 +5,3 @@ 'use strict';

var actions_dist_useGestureCoreActions = require('../../dist/actions-b96ed079.cjs.dev.js');
var actions_dist_useGestureCoreActions = require('../../dist/actions-71d83d90.cjs.dev.js');
require('../../dist/maths-267f0992.cjs.dev.js');

@@ -8,0 +8,0 @@

@@ -5,3 +5,3 @@ 'use strict';

var actions_dist_useGestureCoreActions = require('../../dist/actions-bcf5436d.cjs.prod.js');
var actions_dist_useGestureCoreActions = require('../../dist/actions-93d23f50.cjs.prod.js');
require('../../dist/maths-83bc6f64.cjs.prod.js');

@@ -8,0 +8,0 @@

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

export { C as ConfigResolverMap, E as EngineMap, e as dragAction, h as hoverAction, m as moveAction, f as pinchAction, r as registerAction, s as scrollAction, w as wheelAction } from '../../dist/actions-94b581a0.esm.js';
export { C as ConfigResolverMap, E as EngineMap, e as dragAction, h as hoverAction, m as moveAction, f as pinchAction, r as registerAction, s as scrollAction, w as wheelAction } from '../../dist/actions-76b8683e.esm.js';
import '../../dist/maths-0ab39ae9.esm.js';
# @use-gesture/core
## 10.2.27
### Patch Changes
- 0dce2216c: detect lost pointer capture in PinchEngine
- 957aee8b5: fix: don't block events with similar timestamps #581
- 51c6cfcf4: chore: upgrade to typescript 5.0
## 10.2.26

@@ -4,0 +12,0 @@

@@ -19,3 +19,3 @@ import { InternalCoordinatesOptions, CoordinatesConfig, DragBounds, State, Vector2 } from '../types';

from(value: number | Vector2 | ((s: State) => Vector2)): [number, number] | ((s: State) => Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;

@@ -22,0 +22,0 @@ }): any;

@@ -36,3 +36,3 @@ import { PointerType } from '../types';

keyboardDisplacement(value?: number): number;
axis(this: import("../types").InternalCoordinatesOptions<import("../types").CoordinatesKey>, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig<import("../types").CoordinatesKey>): "x" | "y" | undefined;
axis(this: import("../types").InternalCoordinatesOptions, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig): "x" | "y" | undefined;
bounds(value?: import("../types").DragBounds | ((state: import("../types").State) => import("../types").DragBounds)): HTMLElement | [Vector2, Vector2] | (() => EventTarget | null);

@@ -52,5 +52,5 @@ enabled(value?: boolean): boolean;

from(value: number | Vector2 | ((s: import("../types").State) => Vector2)): [number, number] | ((s: import("../types").State) => Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;
}): any;
};
export declare const hoverConfigResolver: {
mouseOnly: (value?: boolean) => boolean;
axis(this: import("../types").InternalCoordinatesOptions<import("../types").CoordinatesKey>, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig<import("../types").CoordinatesKey>): "x" | "y" | undefined;
axis(this: import("../types").InternalCoordinatesOptions, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig): "x" | "y" | undefined;
axisThreshold(value?: number): number;

@@ -19,3 +19,3 @@ bounds(value?: import("../types").DragBounds | ((state: import("../types").State) => import("../types").DragBounds)): HTMLElement | [import("../types").Vector2, import("../types").Vector2] | (() => EventTarget | null);

from(value: number | import("../types").Vector2 | ((s: import("../types").State) => import("../types").Vector2)): [number, number] | ((s: import("../types").State) => import("../types").Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;

@@ -22,0 +22,0 @@ }): any;

export declare const moveConfigResolver: {
mouseOnly: (value?: boolean) => boolean;
axis(this: import("../types").InternalCoordinatesOptions<import("../types").CoordinatesKey>, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig<import("../types").CoordinatesKey>): "x" | "y" | undefined;
axis(this: import("../types").InternalCoordinatesOptions, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig): "x" | "y" | undefined;
axisThreshold(value?: number): number;

@@ -19,3 +19,3 @@ bounds(value?: import("../types").DragBounds | ((state: import("../types").State) => import("../types").DragBounds)): HTMLElement | [import("../types").Vector2, import("../types").Vector2] | (() => EventTarget | null);

from(value: number | import("../types").Vector2 | ((s: import("../types").State) => import("../types").Vector2)): [number, number] | ((s: import("../types").State) => import("../types").Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;

@@ -22,0 +22,0 @@ }): any;

@@ -48,5 +48,5 @@ import { ModifierKey } from '../types';

from(value: number | Vector2 | ((s: State) => Vector2)): [number, number] | ((s: State) => Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: GenericOptions;
}): any;
};
export declare const scrollConfigResolver: {
axis(this: import("../types").InternalCoordinatesOptions<import("../types").CoordinatesKey>, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig<import("../types").CoordinatesKey>): "x" | "y" | undefined;
axis(this: import("../types").InternalCoordinatesOptions, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig): "x" | "y" | undefined;
axisThreshold(value?: number): number;

@@ -18,3 +18,3 @@ bounds(value?: import("../types").DragBounds | ((state: import("../types").State) => import("../types").DragBounds)): HTMLElement | [import("../types").Vector2, import("../types").Vector2] | (() => EventTarget | null);

from(value: number | import("../types").Vector2 | ((s: import("../types").State) => import("../types").Vector2)): [number, number] | ((s: import("../types").State) => import("../types").Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;

@@ -21,0 +21,0 @@ }): any;

export declare const wheelConfigResolver: {
axis(this: import("../types").InternalCoordinatesOptions<import("../types").CoordinatesKey>, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig<import("../types").CoordinatesKey>): "x" | "y" | undefined;
axis(this: import("../types").InternalCoordinatesOptions, _v: any, _k: string, { axis }: import("../types").CoordinatesConfig): "x" | "y" | undefined;
axisThreshold(value?: number): number;

@@ -18,3 +18,3 @@ bounds(value?: import("../types").DragBounds | ((state: import("../types").State) => import("../types").DragBounds)): HTMLElement | [import("../types").Vector2, import("../types").Vector2] | (() => EventTarget | null);

from(value: number | import("../types").Vector2 | ((s: import("../types").State) => import("../types").Vector2)): [number, number] | ((s: import("../types").State) => import("../types").Vector2) | undefined;
transform(this: import("../types").InternalGestureOptions<import("../types").GestureKey>, value: any, _k: string, config: {
transform(this: import("../types").InternalGestureOptions, value: any, _k: string, config: {
shared: import("../types").GenericOptions;

@@ -21,0 +21,0 @@ }): any;

export * from "./declarations/src/index";
//# sourceMappingURL=use-gesture-core.cjs.d.ts.map

@@ -5,3 +5,3 @@ 'use strict';

var actions_dist_useGestureCoreActions = require('./actions-b96ed079.cjs.dev.js');
var actions_dist_useGestureCoreActions = require('./actions-71d83d90.cjs.dev.js');
require('./maths-267f0992.cjs.dev.js');

@@ -8,0 +8,0 @@

@@ -5,3 +5,3 @@ 'use strict';

var actions_dist_useGestureCoreActions = require('./actions-bcf5436d.cjs.prod.js');
var actions_dist_useGestureCoreActions = require('./actions-93d23f50.cjs.prod.js');
require('./maths-83bc6f64.cjs.prod.js');

@@ -8,0 +8,0 @@

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

import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-94b581a0.esm.js';
import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-76b8683e.esm.js';
import './maths-0ab39ae9.esm.js';

@@ -3,0 +3,0 @@

{
"name": "@use-gesture/core",
"version": "10.2.26",
"version": "10.2.27",
"description": "Core engine for receiving gestures",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -153,6 +153,2 @@ import { CoordinatesEngine } from './CoordinatesEngine'

// if the event has the same timestamp as the previous event
// note that checking type equality is ONLY for tests ¯\_(ツ)_/¯
if (state.type === event.type && event.timeStamp === state.timeStamp) return
const id = pointerId(event)

@@ -159,0 +155,0 @@ if (state._pointerId !== undefined && id !== state._pointerId) return

@@ -306,3 +306,2 @@ import { Controller } from '../Controller'

if (state.first) {
// @ts-expect-error (4.9 regression https://github.com/microsoft/TypeScript/issues/51501)
if ('bounds' in config) state._bounds = call(config.bounds, state)

@@ -350,4 +349,7 @@ if (this.setup) this.setup()

// calculates kinematics unless the gesture starts or ends or if the
// dt === 0 (which can happen on high frame rate monitors, see issue #581)
// because of privacy protection:
// https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp#reduced_time_precision
if (!state.first && dt > 0) {
// calculates kinematics unless the gesture starts or ends
state.velocity = [absoluteDelta[0] / dt, absoluteDelta[1] / dt]

@@ -354,0 +356,0 @@ state.timeDelta = dt

@@ -304,2 +304,4 @@ import { Engine } from './Engine'

bindFunction(device, 'cancel', this[device + 'End'].bind(this))
// @ts-ignore
bindFunction('lostPointerCapture', '', this[device + 'End'].bind(this))
}

@@ -306,0 +308,0 @@ // we try to set a passive listener, knowing that in any case React will

export * from "../../dist/declarations/src/types";
//# sourceMappingURL=use-gesture-core-types.cjs.d.ts.map
export * from "../../dist/declarations/src/utils";
//# sourceMappingURL=use-gesture-core-utils.cjs.d.ts.map
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc