@zag-js/popper 1.18.4 → 1.18.5

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.d.mts CHANGED
@@ -98,6 +98,7 @@ interface PositioningOptions {
98
98
  */
99
99
  updatePosition?: ((data: {
100
100
  updatePosition: () => Promise<void>;
101
+ floatingElement: HTMLElement | null;
101
102
  }) => void | Promise<void>) | undefined;
102
103
  }
103
104
 
package/dist/index.d.ts CHANGED
@@ -98,6 +98,7 @@ interface PositioningOptions {
98
98
  */
99
99
  updatePosition?: ((data: {
100
100
  updatePosition: () => Promise<void>;
101
+ floatingElement: HTMLElement | null;
101
102
  }) => void | Promise<void>) | undefined;
102
103
  }
103
104
 
package/dist/index.js CHANGED
@@ -249,7 +249,7 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
249
249
  };
250
250
  const update = async () => {
251
251
  if (opts.updatePosition) {
252
- await opts.updatePosition({ updatePosition });
252
+ await opts.updatePosition({ updatePosition, floatingElement: floating });
253
253
  onPositioned?.({ placed: true });
254
254
  } else {
255
255
  await updatePosition();
package/dist/index.mjs CHANGED
@@ -247,7 +247,7 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
247
247
  };
248
248
  const update = async () => {
249
249
  if (opts.updatePosition) {
250
- await opts.updatePosition({ updatePosition });
250
+ await opts.updatePosition({ updatePosition, floatingElement: floating });
251
251
  onPositioned?.({ placed: true });
252
252
  } else {
253
253
  await updatePosition();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/popper",
3
- "version": "1.18.4",
3
+ "version": "1.18.5",
4
4
  "description": "Dynamic positioning logic for ui machines",
5
5
  "keywords": [
6
6
  "js",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@floating-ui/dom": "1.7.2",
26
- "@zag-js/dom-query": "1.18.4",
27
- "@zag-js/utils": "1.18.4"
26
+ "@zag-js/dom-query": "1.18.5",
27
+ "@zag-js/utils": "1.18.5"
28
28
  },
29
29
  "devDependencies": {
30
30
  "clean-package": "2.2.0"