@zag-js/form-utils
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -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
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
18111
14
471
2
1