@react-aria/test-utils 1.0.0-alpha.0 → 1.0.0-alpha.1

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.
@@ -21,14 +21,14 @@ $parcel$export(module.exports, "triggerLongPress", () => $5a8bfe1663b8366d$expor
21
21
  const $5a8bfe1663b8366d$export$4bd1d2d5ba6f5eaf = 500;
22
22
  function $5a8bfe1663b8366d$export$3a22a5a9bc0fd3b(element, opts = {}) {
23
23
  (0, $jxdbS$testinglibraryreact.fireEvent).pointerDown(element, {
24
- pointerType: "touch",
24
+ pointerType: 'touch',
25
25
  ...opts
26
26
  });
27
27
  (0, $jxdbS$testinglibraryreact.act)(()=>{
28
28
  jest.advanceTimersByTime($5a8bfe1663b8366d$export$4bd1d2d5ba6f5eaf);
29
29
  });
30
30
  (0, $jxdbS$testinglibraryreact.fireEvent).pointerUp(element, {
31
- pointerType: "touch",
31
+ pointerType: 'touch',
32
32
  ...opts
33
33
  });
34
34
  }
package/dist/events.mjs CHANGED
@@ -14,18 +14,18 @@ import {fireEvent as $hhVmT$fireEvent, act as $hhVmT$act} from "@testing-library
14
14
  const $5d1eca18f92ad0e6$export$4bd1d2d5ba6f5eaf = 500;
15
15
  function $5d1eca18f92ad0e6$export$3a22a5a9bc0fd3b(element, opts = {}) {
16
16
  (0, $hhVmT$fireEvent).pointerDown(element, {
17
- pointerType: "touch",
17
+ pointerType: 'touch',
18
18
  ...opts
19
19
  });
20
20
  (0, $hhVmT$act)(()=>{
21
21
  jest.advanceTimersByTime($5d1eca18f92ad0e6$export$4bd1d2d5ba6f5eaf);
22
22
  });
23
23
  (0, $hhVmT$fireEvent).pointerUp(element, {
24
- pointerType: "touch",
24
+ pointerType: 'touch',
25
25
  ...opts
26
26
  });
27
27
  }
28
28
 
29
29
 
30
30
  export {$5d1eca18f92ad0e6$export$4bd1d2d5ba6f5eaf as DEFAULT_LONG_PRESS_TIME, $5d1eca18f92ad0e6$export$3a22a5a9bc0fd3b as triggerLongPress};
31
- //# sourceMappingURL=events.mjs.map
31
+ //# sourceMappingURL=events.module.js.map
@@ -14,14 +14,14 @@ import {fireEvent as $hhVmT$fireEvent, act as $hhVmT$act} from "@testing-library
14
14
  const $5d1eca18f92ad0e6$export$4bd1d2d5ba6f5eaf = 500;
15
15
  function $5d1eca18f92ad0e6$export$3a22a5a9bc0fd3b(element, opts = {}) {
16
16
  (0, $hhVmT$fireEvent).pointerDown(element, {
17
- pointerType: "touch",
17
+ pointerType: 'touch',
18
18
  ...opts
19
19
  });
20
20
  (0, $hhVmT$act)(()=>{
21
21
  jest.advanceTimersByTime($5d1eca18f92ad0e6$export$4bd1d2d5ba6f5eaf);
22
22
  });
23
23
  (0, $hhVmT$fireEvent).pointerUp(element, {
24
- pointerType: "touch",
24
+ pointerType: 'touch',
25
25
  ...opts
26
26
  });
27
27
  }
@@ -49,7 +49,7 @@ function $b53408e40e8d56d0$export$82f0b04c1d69a901() {
49
49
  $parcel$global.PointerEvent = class FakePointerEvent extends MouseEvent {
50
50
  get pointerType() {
51
51
  var _this__init_pointerType;
52
- return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : "mouse";
52
+ return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : 'mouse';
53
53
  }
54
54
  get pointerId() {
55
55
  return this._init.pointerId;
@@ -42,7 +42,7 @@ function $68df97871cfb5e33$export$82f0b04c1d69a901() {
42
42
  $parcel$global.PointerEvent = class FakePointerEvent extends MouseEvent {
43
43
  get pointerType() {
44
44
  var _this__init_pointerType;
45
- return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : "mouse";
45
+ return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : 'mouse';
46
46
  }
47
47
  get pointerId() {
48
48
  return this._init.pointerId;
@@ -73,4 +73,4 @@ function $68df97871cfb5e33$export$82f0b04c1d69a901() {
73
73
 
74
74
 
75
75
  export {$68df97871cfb5e33$export$de31e3987c917741 as installMouseEvent, $68df97871cfb5e33$export$82f0b04c1d69a901 as installPointerEvent};
76
- //# sourceMappingURL=testSetup.mjs.map
76
+ //# sourceMappingURL=testSetup.module.js.map
@@ -42,7 +42,7 @@ function $68df97871cfb5e33$export$82f0b04c1d69a901() {
42
42
  $parcel$global.PointerEvent = class FakePointerEvent extends MouseEvent {
43
43
  get pointerType() {
44
44
  var _this__init_pointerType;
45
- return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : "mouse";
45
+ return (_this__init_pointerType = this._init.pointerType) !== null && _this__init_pointerType !== void 0 ? _this__init_pointerType : 'mouse';
46
46
  }
47
47
  get pointerId() {
48
48
  return this._init.pointerId;
@@ -6,36 +6,36 @@ function $parcel$export(e, n, v, s) {
6
6
  $parcel$export(module.exports, "pointerMap", () => $0e568517a25183a7$export$7dbde2c4caaa8d35);
7
7
  let $0e568517a25183a7$export$7dbde2c4caaa8d35 = [
8
8
  {
9
- name: "MouseLeft",
10
- pointerType: "mouse",
11
- button: "primary",
9
+ name: 'MouseLeft',
10
+ pointerType: 'mouse',
11
+ button: 'primary',
12
12
  height: 1,
13
13
  width: 1,
14
14
  pressure: 0.5
15
15
  },
16
16
  {
17
- name: "MouseRight",
18
- pointerType: "mouse",
19
- button: "secondary"
17
+ name: 'MouseRight',
18
+ pointerType: 'mouse',
19
+ button: 'secondary'
20
20
  },
21
21
  {
22
- name: "MouseMiddle",
23
- pointerType: "mouse",
24
- button: "auxiliary"
22
+ name: 'MouseMiddle',
23
+ pointerType: 'mouse',
24
+ button: 'auxiliary'
25
25
  },
26
26
  {
27
- name: "TouchA",
28
- pointerType: "touch",
27
+ name: 'TouchA',
28
+ pointerType: 'touch',
29
29
  height: 1,
30
30
  width: 1
31
31
  },
32
32
  {
33
- name: "TouchB",
34
- pointerType: "touch"
33
+ name: 'TouchB',
34
+ pointerType: 'touch'
35
35
  },
36
36
  {
37
- name: "TouchC",
38
- pointerType: "touch"
37
+ name: 'TouchC',
38
+ pointerType: 'touch'
39
39
  }
40
40
  ];
41
41
 
@@ -1,38 +1,38 @@
1
1
  let $50ecfb18069ec897$export$7dbde2c4caaa8d35 = [
2
2
  {
3
- name: "MouseLeft",
4
- pointerType: "mouse",
5
- button: "primary",
3
+ name: 'MouseLeft',
4
+ pointerType: 'mouse',
5
+ button: 'primary',
6
6
  height: 1,
7
7
  width: 1,
8
8
  pressure: 0.5
9
9
  },
10
10
  {
11
- name: "MouseRight",
12
- pointerType: "mouse",
13
- button: "secondary"
11
+ name: 'MouseRight',
12
+ pointerType: 'mouse',
13
+ button: 'secondary'
14
14
  },
15
15
  {
16
- name: "MouseMiddle",
17
- pointerType: "mouse",
18
- button: "auxiliary"
16
+ name: 'MouseMiddle',
17
+ pointerType: 'mouse',
18
+ button: 'auxiliary'
19
19
  },
20
20
  {
21
- name: "TouchA",
22
- pointerType: "touch",
21
+ name: 'TouchA',
22
+ pointerType: 'touch',
23
23
  height: 1,
24
24
  width: 1
25
25
  },
26
26
  {
27
- name: "TouchB",
28
- pointerType: "touch"
27
+ name: 'TouchB',
28
+ pointerType: 'touch'
29
29
  },
30
30
  {
31
- name: "TouchC",
32
- pointerType: "touch"
31
+ name: 'TouchC',
32
+ pointerType: 'touch'
33
33
  }
34
34
  ];
35
35
 
36
36
 
37
37
  export {$50ecfb18069ec897$export$7dbde2c4caaa8d35 as pointerMap};
38
- //# sourceMappingURL=userEventMaps.mjs.map
38
+ //# sourceMappingURL=userEventMaps.module.js.map
@@ -1,35 +1,35 @@
1
1
  let $50ecfb18069ec897$export$7dbde2c4caaa8d35 = [
2
2
  {
3
- name: "MouseLeft",
4
- pointerType: "mouse",
5
- button: "primary",
3
+ name: 'MouseLeft',
4
+ pointerType: 'mouse',
5
+ button: 'primary',
6
6
  height: 1,
7
7
  width: 1,
8
8
  pressure: 0.5
9
9
  },
10
10
  {
11
- name: "MouseRight",
12
- pointerType: "mouse",
13
- button: "secondary"
11
+ name: 'MouseRight',
12
+ pointerType: 'mouse',
13
+ button: 'secondary'
14
14
  },
15
15
  {
16
- name: "MouseMiddle",
17
- pointerType: "mouse",
18
- button: "auxiliary"
16
+ name: 'MouseMiddle',
17
+ pointerType: 'mouse',
18
+ button: 'auxiliary'
19
19
  },
20
20
  {
21
- name: "TouchA",
22
- pointerType: "touch",
21
+ name: 'TouchA',
22
+ pointerType: 'touch',
23
23
  height: 1,
24
24
  width: 1
25
25
  },
26
26
  {
27
- name: "TouchB",
28
- pointerType: "touch"
27
+ name: 'TouchB',
28
+ pointerType: 'touch'
29
29
  },
30
30
  {
31
- name: "TouchC",
32
- pointerType: "touch"
31
+ name: 'TouchC',
32
+ pointerType: 'touch'
33
33
  }
34
34
  ];
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/test-utils",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "description": "Testing utils for react-aria patterns",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
36
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
37
37
  }