@react-aria/aria-modal-polyfill 3.4.2 → 3.4.3-nightly.3113

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/main.js CHANGED
@@ -1,13 +1,13 @@
1
- var $2Tm38$ariahidden = require("aria-hidden");
1
+ var $26G9B$ariahidden = require("aria-hidden");
2
2
 
3
3
  function $parcel$export(e, n, v, s) {
4
4
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
5
5
  }
6
6
 
7
- $parcel$export(module.exports, "watchModals", () => $e233b972ff44d7f5$export$11dddb85aae73809);
7
+ $parcel$export(module.exports, "watchModals", () => $5670f73d6b18f643$export$11dddb85aae73809);
8
8
 
9
- const $e233b972ff44d7f5$var$currentDocument = typeof document !== 'undefined' ? document : undefined;
10
- function $e233b972ff44d7f5$export$11dddb85aae73809(selector = 'body', { document: document = $e233b972ff44d7f5$var$currentDocument } = {
9
+ const $5670f73d6b18f643$var$currentDocument = typeof document !== 'undefined' ? document : undefined;
10
+ function $5670f73d6b18f643$export$11dddb85aae73809(selector = 'body', { document: document = $5670f73d6b18f643$var$currentDocument } = {
11
11
  }) {
12
12
  /**
13
13
  * Listen for additions to the child list of the selected element (defaults to body). This is where providers render modal portals.
@@ -33,7 +33,7 @@ function $e233b972ff44d7f5$export$11dddb85aae73809(selector = 'body', { document
33
33
  modalContainers.push(addNode);
34
34
  let modal = addNode.querySelector('[aria-modal="true"], [data-ismodal="true"]');
35
35
  undo === null || undo === void 0 ? void 0 : undo();
36
- undo = $2Tm38$ariahidden.hideOthers(modal);
36
+ undo = $26G9B$ariahidden.hideOthers(modal);
37
37
  }
38
38
  } else if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
39
39
  let removedNodes = Array.from(mutation.removedNodes);
@@ -45,7 +45,7 @@ function $e233b972ff44d7f5$export$11dddb85aae73809(selector = 'body', { document
45
45
  );
46
46
  if (modalContainers.length > 0) {
47
47
  let modal = modalContainers[modalContainers.length - 1].querySelector('[aria-modal="true"], [data-ismodal="true"]');
48
- undo = $2Tm38$ariahidden.hideOthers(modal);
48
+ undo = $26G9B$ariahidden.hideOthers(modal);
49
49
  } else undo = undefined;
50
50
  }
51
51
  }
package/dist/module.js CHANGED
@@ -1,8 +1,8 @@
1
- import {hideOthers as $gSBjr$hideOthers} from "aria-hidden";
1
+ import {hideOthers as $hRMXz$hideOthers} from "aria-hidden";
2
2
 
3
3
 
4
- const $7aa021f48f4356fd$var$currentDocument = typeof document !== 'undefined' ? document : undefined;
5
- function $7aa021f48f4356fd$export$11dddb85aae73809(selector = 'body', { document: document = $7aa021f48f4356fd$var$currentDocument } = {
4
+ const $0ba7c906f8d7a5d9$var$currentDocument = typeof document !== 'undefined' ? document : undefined;
5
+ function $0ba7c906f8d7a5d9$export$11dddb85aae73809(selector = 'body', { document: document = $0ba7c906f8d7a5d9$var$currentDocument } = {
6
6
  }) {
7
7
  /**
8
8
  * Listen for additions to the child list of the selected element (defaults to body). This is where providers render modal portals.
@@ -28,7 +28,7 @@ function $7aa021f48f4356fd$export$11dddb85aae73809(selector = 'body', { document
28
28
  modalContainers.push(addNode);
29
29
  let modal = addNode.querySelector('[aria-modal="true"], [data-ismodal="true"]');
30
30
  undo === null || undo === void 0 ? void 0 : undo();
31
- undo = $gSBjr$hideOthers(modal);
31
+ undo = $hRMXz$hideOthers(modal);
32
32
  }
33
33
  } else if (mutation.type === 'childList' && mutation.removedNodes.length > 0) {
34
34
  let removedNodes = Array.from(mutation.removedNodes);
@@ -40,7 +40,7 @@ function $7aa021f48f4356fd$export$11dddb85aae73809(selector = 'body', { document
40
40
  );
41
41
  if (modalContainers.length > 0) {
42
42
  let modal = modalContainers[modalContainers.length - 1].querySelector('[aria-modal="true"], [data-ismodal="true"]');
43
- undo = $gSBjr$hideOthers(modal);
43
+ undo = $hRMXz$hideOthers(modal);
44
44
  } else undo = undefined;
45
45
  }
46
46
  }
@@ -54,5 +54,5 @@ function $7aa021f48f4356fd$export$11dddb85aae73809(selector = 'body', { document
54
54
  }
55
55
 
56
56
 
57
- export {$7aa021f48f4356fd$export$11dddb85aae73809 as watchModals};
57
+ export {$0ba7c906f8d7a5d9$export$11dddb85aae73809 as watchModals};
58
58
  //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/aria-modal-polyfill",
3
- "version": "3.4.2",
3
+ "version": "3.4.3-nightly.3113+404d41859",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@babel/runtime": "^7.6.2",
21
- "@react-types/shared": "^3.11.1",
21
+ "@react-types/shared": "3.0.0-nightly.1417+404d41859",
22
22
  "aria-hidden": "^1.1.1"
23
23
  },
24
24
  "peerDependencies": {