New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/signature-pad

Package Overview
Dependencies
Maintainers
1
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/signature-pad - npm Package Compare versions

Comparing version 0.0.0-dev-20240419221913 to 0.0.0-dev-20240419232104

4

dist/index.d.ts

@@ -126,5 +126,5 @@ import * as _zag_js_anatomy from '@zag-js/anatomy';

declare const props: ("disabled" | "dir" | "id" | "name" | "onDraw" | "onDrawEnd" | "drawing" | "readOnly" | "getRootNode")[];
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "disabled" | "dir" | "id" | "name" | "onDraw" | "onDrawEnd" | "drawing" | "readOnly" | "getRootNode">];
declare const props: ("name" | "dir" | "disabled" | "id" | "onDraw" | "onDrawEnd" | "drawing" | "readOnly" | "getRootNode")[];
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "name" | "dir" | "disabled" | "id" | "onDraw" | "onDrawEnd" | "drawing" | "readOnly" | "getRootNode">];
export { type MachineApi as Api, type UserDefinedContext as Context, type DataUrlType, type DrawDetails, type DrawEndDetails, type DrawingOptions, type HiddenInputProps, type SegmentPathProps, anatomy, connect, machine, props, splitProps };

@@ -141,3 +141,3 @@ "use strict";

return;
if (!(0, import_dom_event.isLeftClick)(event) || (0, import_dom_event.isModifiedEvent)(event) || !isInteractive)
if (!(0, import_dom_event.isLeftClick)(event) || (0, import_dom_event.isModifierKey)(event) || !isInteractive)
return;

@@ -144,0 +144,0 @@ event.currentTarget.setPointerCapture(event.pointerId);

{
"name": "@zag-js/signature-pad",
"version": "0.0.0-dev-20240419221913",
"version": "0.0.0-dev-20240419232104",
"description": "Core logic for the signature-pad widget implemented as a state machine",

@@ -32,8 +32,8 @@ "keywords": [

"perfect-freehand": "^1.2.2",
"@zag-js/anatomy": "0.0.0-dev-20240419221913",
"@zag-js/dom-query": "0.0.0-dev-20240419221913",
"@zag-js/dom-event": "0.0.0-dev-20240419221913",
"@zag-js/core": "0.0.0-dev-20240419221913",
"@zag-js/utils": "0.0.0-dev-20240419221913",
"@zag-js/types": "0.0.0-dev-20240419221913"
"@zag-js/anatomy": "0.0.0-dev-20240419232104",
"@zag-js/core": "0.0.0-dev-20240419232104",
"@zag-js/dom-event": "0.0.0-dev-20240419232104",
"@zag-js/types": "0.0.0-dev-20240419232104",
"@zag-js/dom-query": "0.0.0-dev-20240419232104",
"@zag-js/utils": "0.0.0-dev-20240419232104"
},

@@ -40,0 +40,0 @@ "devDependencies": {

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

import { getNativeEvent, getRelativePoint, isLeftClick, isModifiedEvent } from "@zag-js/dom-event"
import { getNativeEvent, getRelativePoint, isLeftClick, isModifierKey } from "@zag-js/dom-event"
import { dataAttr, getEventTarget } from "@zag-js/dom-query"

@@ -50,3 +50,3 @@ import type { NormalizeProps, PropTypes } from "@zag-js/types"

if (target?.closest("[data-part=clear-trigger]")) return
if (!isLeftClick(event) || isModifiedEvent(event) || !isInteractive) return
if (!isLeftClick(event) || isModifierKey(event) || !isInteractive) return
event.currentTarget.setPointerCapture(event.pointerId)

@@ -53,0 +53,0 @@ const point = { x: event.clientX, y: event.clientY }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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