@zag-js/dismissable 0.79.0 → 0.79.2

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
@@ -185,7 +185,9 @@ function trackDismissableElement(nodeOrFn, options) {
185
185
  })
186
186
  );
187
187
  return () => {
188
- cleanups.forEach((fn) => fn?.());
188
+ func(() => {
189
+ cleanups.forEach((fn) => fn?.());
190
+ });
189
191
  };
190
192
  }
191
193
  function trackDismissableBranch(nodeOrFn, options = {}) {
@@ -206,7 +208,9 @@ function trackDismissableBranch(nodeOrFn, options = {}) {
206
208
  })
207
209
  );
208
210
  return () => {
209
- cleanups.forEach((fn) => fn?.());
211
+ func(() => {
212
+ cleanups.forEach((fn) => fn?.());
213
+ });
210
214
  };
211
215
  }
212
216
 
package/dist/index.mjs CHANGED
@@ -183,7 +183,9 @@ function trackDismissableElement(nodeOrFn, options) {
183
183
  })
184
184
  );
185
185
  return () => {
186
- cleanups.forEach((fn) => fn?.());
186
+ func(() => {
187
+ cleanups.forEach((fn) => fn?.());
188
+ });
187
189
  };
188
190
  }
189
191
  function trackDismissableBranch(nodeOrFn, options = {}) {
@@ -204,7 +206,9 @@ function trackDismissableBranch(nodeOrFn, options = {}) {
204
206
  })
205
207
  );
206
208
  return () => {
207
- cleanups.forEach((fn) => fn?.());
209
+ func(() => {
210
+ cleanups.forEach((fn) => fn?.());
211
+ });
208
212
  };
209
213
  }
210
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/dismissable",
3
- "version": "0.79.0",
3
+ "version": "0.79.2",
4
4
  "description": "Dismissable layer utilities for the DOM",
5
5
  "keywords": [
6
6
  "js",
@@ -23,10 +23,10 @@
23
23
  "access": "public"
24
24
  },
25
25
  "dependencies": {
26
- "@zag-js/interact-outside": "0.79.0",
27
- "@zag-js/dom-event": "0.79.0",
28
- "@zag-js/utils": "0.79.0",
29
- "@zag-js/dom-query": "0.79.0"
26
+ "@zag-js/interact-outside": "0.79.2",
27
+ "@zag-js/dom-query": "0.79.2",
28
+ "@zag-js/dom-event": "0.79.2",
29
+ "@zag-js/utils": "0.79.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "clean-package": "2.2.0"