@zag-js/pin-input 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,7 +171,8 @@ function machine(userContext) {
171
171
  ctx2.onChange?.({ value: Array.from(ctx2.value) });
172
172
  },
173
173
  dispatchInputEvent: (ctx2) => {
174
- dispatchInputValueEvent(dom.getHiddenInputEl(ctx2), ctx2.valueAsString);
174
+ const inputEl = dom.getHiddenInputEl(ctx2);
175
+ dispatchInputValueEvent(inputEl, { value: ctx2.valueAsString });
175
176
  },
176
177
  invokeOnInvalid: (ctx2, evt) => {
177
178
  ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
package/dist/index.js CHANGED
@@ -384,7 +384,8 @@ function machine(userContext) {
384
384
  ctx2.onChange?.({ value: Array.from(ctx2.value) });
385
385
  },
386
386
  dispatchInputEvent: (ctx2) => {
387
- (0, import_form_utils.dispatchInputValueEvent)(dom.getHiddenInputEl(ctx2), ctx2.valueAsString);
387
+ const inputEl = dom.getHiddenInputEl(ctx2);
388
+ (0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.valueAsString });
388
389
  },
389
390
  invokeOnInvalid: (ctx2, evt) => {
390
391
  ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-BJXKBZJG.mjs";
7
7
  import {
8
8
  machine
9
- } from "./chunk-H5AVP4J4.mjs";
9
+ } from "./chunk-AVHHECH6.mjs";
10
10
  import "./chunk-CPXMEVTH.mjs";
11
11
  export {
12
12
  anatomy,
@@ -213,7 +213,8 @@ function machine(userContext) {
213
213
  ctx2.onChange?.({ value: Array.from(ctx2.value) });
214
214
  },
215
215
  dispatchInputEvent: (ctx2) => {
216
- (0, import_form_utils.dispatchInputValueEvent)(dom.getHiddenInputEl(ctx2), ctx2.valueAsString);
216
+ const inputEl = dom.getHiddenInputEl(ctx2);
217
+ (0, import_form_utils.dispatchInputValueEvent)(inputEl, { value: ctx2.valueAsString });
217
218
  },
218
219
  invokeOnInvalid: (ctx2, evt) => {
219
220
  ctx2.onInvalid?.({ value: evt.value, index: ctx2.focusedIndex });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  machine
3
- } from "./chunk-H5AVP4J4.mjs";
3
+ } from "./chunk-AVHHECH6.mjs";
4
4
  import "./chunk-CPXMEVTH.mjs";
5
5
  export {
6
6
  machine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/pin-input",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Core logic for the pin-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,9 +26,9 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "0.1.4",
29
+ "@zag-js/anatomy": "0.9.0",
30
30
  "@zag-js/dom-query": "0.1.4",
31
- "@zag-js/dom-event": "0.6.0",
31
+ "@zag-js/dom-event": "0.8.0",
32
32
  "@zag-js/form-utils": "0.2.5",
33
33
  "@zag-js/visually-hidden": "0.0.1",
34
34
  "@zag-js/utils": "0.3.4",