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