@zag-js/tooltip 0.81.2 → 0.82.1

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
@@ -361,7 +361,7 @@ function machine(userContext) {
361
361
  return focusVisible.trackFocusVisible({ root: dom.getRootNode(ctx2) });
362
362
  },
363
363
  trackPositioning(ctx2) {
364
- ctx2.currentPlacement = ctx2.positioning.placement;
364
+ ctx2.currentPlacement || (ctx2.currentPlacement = ctx2.positioning.placement);
365
365
  const getPositionerEl = () => dom.getPositionerEl(ctx2);
366
366
  return popper.getPlacement(dom.getTriggerEl(ctx2), getPositionerEl, {
367
367
  ...ctx2.positioning,
package/dist/index.mjs CHANGED
@@ -359,7 +359,7 @@ function machine(userContext) {
359
359
  return trackFocusVisible({ root: dom.getRootNode(ctx2) });
360
360
  },
361
361
  trackPositioning(ctx2) {
362
- ctx2.currentPlacement = ctx2.positioning.placement;
362
+ ctx2.currentPlacement || (ctx2.currentPlacement = ctx2.positioning.placement);
363
363
  const getPositionerEl = () => dom.getPositionerEl(ctx2);
364
364
  return getPlacement(dom.getTriggerEl(ctx2), getPositionerEl, {
365
365
  ...ctx2.positioning,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/tooltip",
3
- "version": "0.81.2",
3
+ "version": "0.82.1",
4
4
  "description": "Core logic for the tooltip widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -26,13 +26,13 @@
26
26
  "url": "https://github.com/chakra-ui/zag/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@zag-js/anatomy": "0.81.2",
30
- "@zag-js/core": "0.81.2",
31
- "@zag-js/popper": "0.81.2",
32
- "@zag-js/focus-visible": "0.81.2",
33
- "@zag-js/dom-query": "0.81.2",
34
- "@zag-js/utils": "0.81.2",
35
- "@zag-js/types": "0.81.2"
29
+ "@zag-js/anatomy": "0.82.1",
30
+ "@zag-js/core": "0.82.1",
31
+ "@zag-js/popper": "0.82.1",
32
+ "@zag-js/focus-visible": "0.82.1",
33
+ "@zag-js/dom-query": "0.82.1",
34
+ "@zag-js/types": "0.82.1",
35
+ "@zag-js/utils": "0.82.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "clean-package": "2.2.0"