@zag-js/slider 1.12.1 → 1.12.3

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
@@ -727,6 +727,7 @@ var machine = core.createMachine({
727
727
  return getOffsetRect(el);
728
728
  },
729
729
  onEntry({ rects }) {
730
+ if (rects.length === 0) return;
730
731
  const size = utils.pick(rects[0], ["width", "height"]);
731
732
  if (isEqualSize(context.get("thumbSize"), size)) return;
732
733
  context.set("thumbSize", size);
package/dist/index.mjs CHANGED
@@ -725,6 +725,7 @@ var machine = createMachine({
725
725
  return getOffsetRect(el);
726
726
  },
727
727
  onEntry({ rects }) {
728
+ if (rects.length === 0) return;
728
729
  const size = pick(rects[0], ["width", "height"]);
729
730
  if (isEqualSize(context.get("thumbSize"), size)) return;
730
731
  context.set("thumbSize", size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,11 +27,11 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "1.12.1",
31
- "@zag-js/core": "1.12.1",
32
- "@zag-js/dom-query": "1.12.1",
33
- "@zag-js/utils": "1.12.1",
34
- "@zag-js/types": "1.12.1"
30
+ "@zag-js/anatomy": "1.12.3",
31
+ "@zag-js/core": "1.12.3",
32
+ "@zag-js/dom-query": "1.12.3",
33
+ "@zag-js/utils": "1.12.3",
34
+ "@zag-js/types": "1.12.3"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"