@react-spectrum/test-utils 3.0.0-nightly-796738501-260310 → 3.0.0-nightly-6a0d13c57-260322

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/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {simulateMobile as $64c3935c8d6a7115$export$54df5c253b80fcbe, simulateDesktop as $64c3935c8d6a7115$export$ff7d7f7ce6432302} from "./testSetup.mjs";
1
+ import {simulateMobile as $64c3935c8d6a7115$export$54df5c253b80fcbe, simulateDesktop as $64c3935c8d6a7115$export$ff7d7f7ce6432302} from "./private/testSetup.mjs";
2
2
  import * as $bJdOA$reactariatestutils from "@react-aria/test-utils";
3
3
 
4
4
  /*
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- var $4a49f14ca150c145$exports = require("./testSetup.main.js");
1
+ var $4a49f14ca150c145$exports = require("./private/testSetup.cjs");
2
2
  var $fL0yH$reactariatestutils = require("@react-aria/test-utils");
3
3
 
4
4
 
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {simulateMobile as $64c3935c8d6a7115$export$54df5c253b80fcbe, simulateDesktop as $64c3935c8d6a7115$export$ff7d7f7ce6432302} from "./testSetup.module.js";
1
+ import {simulateMobile as $64c3935c8d6a7115$export$54df5c253b80fcbe, simulateDesktop as $64c3935c8d6a7115$export$ff7d7f7ce6432302} from "./private/testSetup.js";
2
2
  import * as $bJdOA$reactariatestutils from "@react-aria/test-utils";
3
3
 
4
4
  /*
@@ -26,4 +26,4 @@ function $4a49f14ca150c145$export$ff7d7f7ce6432302(width = 701) {
26
26
  }
27
27
 
28
28
 
29
- //# sourceMappingURL=testSetup.main.js.map
29
+ //# sourceMappingURL=testSetup.cjs.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC,GAED;;;CAGC,GACM,SAAS,0CAAe,QAAgB,GAAG;IAChD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,IAAI;AAClG;AAMO,SAAS,0CAAgB,QAAgB,GAAG;IACjD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,OAAO;AACrF","sources":["packages/@react-spectrum/test-utils/src/testSetup.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Mocks screen width to simulate mobile experience, useful for testing Tray rendering.\n * @param width Optional width to apply. Automatically clamped to the maximum value allowed for mobile rendering.\n */\nexport function simulateMobile(width: number = 700): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.min(Math.max(width, 0), 700));\n}\n\n/**\n * Mocks screen width to simulate standard desktop experience.\n * @param width Optional width to apply. Automatically clamped to the minimum value allowed for desktop rendering.\n */\nexport function simulateDesktop(width: number = 701): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.max(width, 701));\n}\n"],"names":[],"version":3,"file":"testSetup.main.js.map"}
1
+ {"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC,GAED;;;CAGC,GACM,SAAS,0CAAe,QAAgB,GAAG;IAChD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,IAAI;AAClG;AAMO,SAAS,0CAAgB,QAAgB,GAAG;IACjD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,OAAO;AACrF","sources":["packages/@react-spectrum/test-utils/src/testSetup.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Mocks screen width to simulate mobile experience, useful for testing Tray rendering.\n * @param width Optional width to apply. Automatically clamped to the maximum value allowed for mobile rendering.\n */\nexport function simulateMobile(width: number = 700): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.min(Math.max(width, 0), 700));\n}\n\n/**\n * Mocks screen width to simulate standard desktop experience.\n * @param width Optional width to apply. Automatically clamped to the minimum value allowed for desktop rendering.\n */\nexport function simulateDesktop(width: number = 701): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.max(width, 701));\n}\n"],"names":[],"version":3,"file":"testSetup.cjs.map"}
@@ -20,4 +20,4 @@ function $64c3935c8d6a7115$export$ff7d7f7ce6432302(width = 701) {
20
20
 
21
21
 
22
22
  export {$64c3935c8d6a7115$export$54df5c253b80fcbe as simulateMobile, $64c3935c8d6a7115$export$ff7d7f7ce6432302 as simulateDesktop};
23
- //# sourceMappingURL=testSetup.module.js.map
23
+ //# sourceMappingURL=testSetup.mjs.map
@@ -20,4 +20,4 @@ function $64c3935c8d6a7115$export$ff7d7f7ce6432302(width = 701) {
20
20
 
21
21
 
22
22
  export {$64c3935c8d6a7115$export$54df5c253b80fcbe as simulateMobile, $64c3935c8d6a7115$export$ff7d7f7ce6432302 as simulateDesktop};
23
- //# sourceMappingURL=testSetup.module.js.map
23
+ //# sourceMappingURL=testSetup.mjs.map
@@ -1 +1 @@
1
- {"mappings":"AAAA;;;;;;;;;;CAUC,GAED;;;CAGC,GACM,SAAS,0CAAe,QAAgB,GAAG;IAChD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,IAAI;AAClG;AAMO,SAAS,0CAAgB,QAAgB,GAAG;IACjD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,OAAO;AACrF","sources":["packages/@react-spectrum/test-utils/src/testSetup.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Mocks screen width to simulate mobile experience, useful for testing Tray rendering.\n * @param width Optional width to apply. Automatically clamped to the maximum value allowed for mobile rendering.\n */\nexport function simulateMobile(width: number = 700): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.min(Math.max(width, 0), 700));\n}\n\n/**\n * Mocks screen width to simulate standard desktop experience.\n * @param width Optional width to apply. Automatically clamped to the minimum value allowed for desktop rendering.\n */\nexport function simulateDesktop(width: number = 701): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.max(width, 701));\n}\n"],"names":[],"version":3,"file":"testSetup.module.js.map"}
1
+ {"mappings":"AAAA;;;;;;;;;;CAUC,GAED;;;CAGC,GACM,SAAS,0CAAe,QAAgB,GAAG;IAChD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,IAAI;AAClG;AAMO,SAAS,0CAAgB,QAAgB,GAAG;IACjD,KAAK,KAAK,CAAC,OAAO,MAAM,EAAE,SAAS,OAAO,kBAAkB,CAAC,IAAM,KAAK,GAAG,CAAC,OAAO;AACrF","sources":["packages/@react-spectrum/test-utils/src/testSetup.ts"],"sourcesContent":["/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/**\n * Mocks screen width to simulate mobile experience, useful for testing Tray rendering.\n * @param width Optional width to apply. Automatically clamped to the maximum value allowed for mobile rendering.\n */\nexport function simulateMobile(width: number = 700): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.min(Math.max(width, 0), 700));\n}\n\n/**\n * Mocks screen width to simulate standard desktop experience.\n * @param width Optional width to apply. Automatically clamped to the minimum value allowed for desktop rendering.\n */\nexport function simulateDesktop(width: number = 701): void {\n jest.spyOn(window.screen, 'width', 'get').mockImplementation(() => Math.max(width, 701));\n}\n"],"names":[],"version":3,"file":"testSetup.mjs.map"}
@@ -0,0 +1,2 @@
1
+ export * from '@react-aria/test-utils';
2
+ export * from './testSetup';
@@ -2,12 +2,9 @@
2
2
  * Mocks screen width to simulate mobile experience, useful for testing Tray rendering.
3
3
  * @param width Optional width to apply. Automatically clamped to the maximum value allowed for mobile rendering.
4
4
  */
5
- export function simulateMobile(width?: number): void;
5
+ export declare function simulateMobile(width?: number): void;
6
6
  /**
7
7
  * Mocks screen width to simulate standard desktop experience.
8
8
  * @param width Optional width to apply. Automatically clamped to the minimum value allowed for desktop rendering.
9
9
  */
10
- export function simulateDesktop(width?: number): void;
11
- export * from '@react-aria/test-utils';
12
-
13
- //# sourceMappingURL=types.d.ts.map
10
+ export declare function simulateDesktop(width?: number): void;
package/package.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
2
  "name": "@react-spectrum/test-utils",
3
- "version": "3.0.0-nightly-796738501-260310",
3
+ "version": "3.0.0-nightly-6a0d13c57-260322",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
9
  "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
10
+ "types": "./dist/types/src/index.d.ts",
14
11
  "import": "./dist/import.mjs",
15
12
  "require": "./dist/main.js"
16
13
  },
17
- "types": "dist/types.d.ts",
14
+ "types": "./dist/types/src/index.d.ts",
18
15
  "source": "src/index.ts",
19
16
  "files": [
20
17
  "dist",
@@ -28,10 +25,11 @@
28
25
  "url": "https://github.com/adobe/react-spectrum"
29
26
  },
30
27
  "dependencies": {
31
- "@react-aria/test-utils": "3.0.0-nightly-796738501-260310",
28
+ "@react-aria/test-utils": "3.0.0-nightly-6a0d13c57-260322",
32
29
  "@swc/helpers": "^0.5.0"
33
30
  },
34
31
  "peerDependencies": {
32
+ "@testing-library/dom": "^10.1.0",
35
33
  "@testing-library/react": "^16.0.0",
36
34
  "@testing-library/user-event": "^14.0.0",
37
35
  "jest": "^29.5.0",
@@ -43,5 +41,8 @@
43
41
  },
44
42
  "devDependencies": {
45
43
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
44
+ },
45
+ "targets": {
46
+ "types": false
46
47
  }
47
48
  }
@@ -1 +0,0 @@
1
- {"mappings":"AAYA;;;GAGG;AACH,+BAA+B,KAAK,GAAE,MAAY,GAAG,IAAI,CAExD;AAED;;;GAGG;AACH,gCAAgC,KAAK,GAAE,MAAY,GAAG,IAAI,CAEzD;ACZD,cAAc,wBAAwB,CAAC","sources":["packages/@react-spectrum/test-utils/src/packages/@react-spectrum/test-utils/src/testSetup.ts","packages/@react-spectrum/test-utils/src/packages/@react-spectrum/test-utils/src/index.ts","packages/@react-spectrum/test-utils/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport * from '@react-aria/test-utils';\nexport * from './testSetup';\n"],"names":[],"version":3,"file":"types.d.ts.map"}