@zag-js/dismissable 0.78.1 → 0.78.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
@@ -87,7 +87,7 @@ function assignPointerEventToLayers() {
87
87
  function clearPointerEvent(node) {
88
88
  node.style.pointerEvents = "";
89
89
  }
90
- function disablePointerEventsOutside(node, peristentElements) {
90
+ function disablePointerEventsOutside(node, persistentElements) {
91
91
  const doc = domQuery.getDocument(node);
92
92
  const cleanups = [];
93
93
  if (layerStack.hasPointerBlockingLayer() && !doc.body.hasAttribute("data-inert")) {
@@ -97,8 +97,8 @@ function disablePointerEventsOutside(node, peristentElements) {
97
97
  doc.body.setAttribute("data-inert", "");
98
98
  });
99
99
  }
100
- if (peristentElements) {
101
- const persistedCleanup = domQuery.waitForElements(peristentElements, (el) => {
100
+ if (persistentElements) {
101
+ const persistedCleanup = domQuery.waitForElements(persistentElements, (el) => {
102
102
  cleanups.push(domQuery.setStyle(el, { pointerEvents: "auto" }));
103
103
  });
104
104
  cleanups.push(persistedCleanup);
package/dist/index.mjs CHANGED
@@ -85,7 +85,7 @@ function assignPointerEventToLayers() {
85
85
  function clearPointerEvent(node) {
86
86
  node.style.pointerEvents = "";
87
87
  }
88
- function disablePointerEventsOutside(node, peristentElements) {
88
+ function disablePointerEventsOutside(node, persistentElements) {
89
89
  const doc = getDocument(node);
90
90
  const cleanups = [];
91
91
  if (layerStack.hasPointerBlockingLayer() && !doc.body.hasAttribute("data-inert")) {
@@ -95,8 +95,8 @@ function disablePointerEventsOutside(node, peristentElements) {
95
95
  doc.body.setAttribute("data-inert", "");
96
96
  });
97
97
  }
98
- if (peristentElements) {
99
- const persistedCleanup = waitForElements(peristentElements, (el) => {
98
+ if (persistentElements) {
99
+ const persistedCleanup = waitForElements(persistentElements, (el) => {
100
100
  cleanups.push(setStyle(el, { pointerEvents: "auto" }));
101
101
  });
102
102
  cleanups.push(persistedCleanup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/dismissable",
3
- "version": "0.78.1",
3
+ "version": "0.78.3",
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.78.1",
27
- "@zag-js/dom-query": "0.78.1",
28
- "@zag-js/dom-event": "0.78.1",
29
- "@zag-js/utils": "0.78.1"
26
+ "@zag-js/interact-outside": "0.78.3",
27
+ "@zag-js/dom-query": "0.78.3",
28
+ "@zag-js/dom-event": "0.78.3",
29
+ "@zag-js/utils": "0.78.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "clean-package": "2.2.0"