@zag-js/number-input 1.29.1 → 1.30.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.
package/dist/index.js CHANGED
@@ -856,8 +856,9 @@ var machine = createMachine({
856
856
  restoreCursor(inputEl, sel, scope);
857
857
  });
858
858
  },
859
- setFormattedValue({ context, computed }) {
859
+ setFormattedValue({ context, computed, action }) {
860
860
  context.set("value", computed("formattedValue"));
861
+ action(["syncInputElement"]);
861
862
  },
862
863
  setCursorPoint({ context, event }) {
863
864
  context.set("scrubberCursorPoint", event.point);
package/dist/index.mjs CHANGED
@@ -854,8 +854,9 @@ var machine = createMachine({
854
854
  restoreCursor(inputEl, sel, scope);
855
855
  });
856
856
  },
857
- setFormattedValue({ context, computed }) {
857
+ setFormattedValue({ context, computed, action }) {
858
858
  context.set("value", computed("formattedValue"));
859
+ action(["syncInputElement"]);
859
860
  },
860
861
  setCursorPoint({ context, event }) {
861
862
  context.set("scrubberCursorPoint", event.point);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/number-input",
3
- "version": "1.29.1",
3
+ "version": "1.30.0",
4
4
  "description": "Core logic for the number-input widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@internationalized/number": "3.6.5",
30
- "@zag-js/anatomy": "1.29.1",
31
- "@zag-js/dom-query": "1.29.1",
32
- "@zag-js/types": "1.29.1",
33
- "@zag-js/utils": "1.29.1",
34
- "@zag-js/core": "1.29.1"
30
+ "@zag-js/anatomy": "1.30.0",
31
+ "@zag-js/core": "1.30.0",
32
+ "@zag-js/dom-query": "1.30.0",
33
+ "@zag-js/types": "1.30.0",
34
+ "@zag-js/utils": "1.30.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"