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

@zag-js/form-utils

Package Overview
Dependencies
Maintainers
1
Versions
710
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/form-utils - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

dist/chunk-NXQJMEXU.mjs

19

dist/index.d.ts

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

declare type DescriptorOptions = {
type: "HTMLInputElement" | "HTMLTextAreaElement" | "HTMLSelectElement";
property?: "value" | "checked";
};
declare function setElementValue(el: HTMLElement, value: string, option: DescriptorOptions): void;
declare function dispatchInputValueEvent(el: HTMLElement | null, value: string | number): void;
declare function dispatchInputCheckedEvent(el: HTMLElement | null, checked: boolean): void;
declare function getClosestForm(el: HTMLElement): HTMLFormElement | null;
declare function isNativeDisabled(el: HTMLElement): boolean;
declare type FormControlOptions = {
onFieldsetDisabled: () => void;
onFormReset: () => void;
};
declare function trackFormControl(el: HTMLElement | null, options: FormControlOptions): (() => void) | undefined;
export { FormControlOptions, dispatchInputCheckedEvent, dispatchInputValueEvent, getClosestForm, isNativeDisabled, setElementValue, trackFormControl };
export { dispatchInputCheckedEvent, dispatchInputValueEvent, setElementValue } from './input-event.js';
export { FormControlOptions, getClosestForm, isNativeDisabled, trackFormControl } from './form.js';

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

// ../dom/dist/index.mjs
// ../dom/src/query.ts
function getWindow(el) {

@@ -38,2 +38,4 @@ var _a;

}
// ../dom/src/mutation-observer.ts
function observeAttributes(node, attributes, fn) {

@@ -40,0 +42,0 @@ if (!node)

{
"name": "@zag-js/form-utils",
"version": "0.2.2",
"version": "0.2.3",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"keywords": [

@@ -22,3 +19,4 @@ "js",

"devDependencies": {
"@zag-js/dom-utils": "0.2.1"
"clean-package": "2.2.0",
"@zag-js/dom-utils": "0.2.2"
},

@@ -31,6 +29,18 @@ "publishConfig": {

},
"clean-package": "../../../clean-package.config.json",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"build-fast": "tsup src/index.ts --format=esm,cjs",
"build-fast": "tsup src",
"start": "pnpm build --watch",
"build": "tsup src/index.ts --format=esm,cjs --dts",
"build": "tsup src --dts",
"test": "jest --config ../../../jest.config.js --rootDir . --passWithNoTests",

@@ -37,0 +47,0 @@ "lint": "eslint src --ext .ts,.tsx",

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