@fluentui/react-portal 0.0.0-nightlybc5ff01fb020211104.1 → 0.0.0-nightlyd3bf09bf8120211201.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.json +133 -21
  2. package/CHANGELOG.md +38 -10
  3. package/lib/components/Portal/Portal.js +3 -2
  4. package/lib/components/Portal/Portal.js.map +1 -1
  5. package/lib/components/Portal/renderPortal.js +6 -2
  6. package/lib/components/Portal/renderPortal.js.map +1 -1
  7. package/lib/components/Portal/usePortal.js +22 -16
  8. package/lib/components/Portal/usePortal.js.map +1 -1
  9. package/lib/components/Portal/usePortalMountNode.js +27 -21
  10. package/lib/components/Portal/usePortalMountNode.js.map +1 -1
  11. package/lib/virtualParent/elementContains.js +18 -14
  12. package/lib/virtualParent/elementContains.js.map +1 -1
  13. package/lib/virtualParent/getParent.js +2 -1
  14. package/lib/virtualParent/getParent.js.map +1 -1
  15. package/lib/virtualParent/getVirtualParent.js +8 -5
  16. package/lib/virtualParent/getVirtualParent.js.map +1 -1
  17. package/lib/virtualParent/isVirtualElement.js +1 -1
  18. package/lib/virtualParent/isVirtualElement.js.map +1 -1
  19. package/lib/virtualParent/setVirtualParent.js +11 -8
  20. package/lib/virtualParent/setVirtualParent.js.map +1 -1
  21. package/lib-commonjs/Portal.js +7 -2
  22. package/lib-commonjs/Portal.js.map +1 -1
  23. package/lib-commonjs/components/Portal/Portal.js +13 -5
  24. package/lib-commonjs/components/Portal/Portal.js.map +1 -1
  25. package/lib-commonjs/components/Portal/Portal.types.js +4 -1
  26. package/lib-commonjs/components/Portal/Portal.types.js.map +1 -1
  27. package/lib-commonjs/components/Portal/index.js +10 -2
  28. package/lib-commonjs/components/Portal/index.js.map +1 -1
  29. package/lib-commonjs/components/Portal/renderPortal.js +16 -5
  30. package/lib-commonjs/components/Portal/renderPortal.js.map +1 -1
  31. package/lib-commonjs/components/Portal/usePortal.js +36 -21
  32. package/lib-commonjs/components/Portal/usePortal.js.map +1 -1
  33. package/lib-commonjs/components/Portal/usePortalMountNode.js +41 -26
  34. package/lib-commonjs/components/Portal/usePortalMountNode.js.map +1 -1
  35. package/lib-commonjs/index.js +22 -5
  36. package/lib-commonjs/index.js.map +1 -1
  37. package/lib-commonjs/virtualParent/elementContains.js +26 -16
  38. package/lib-commonjs/virtualParent/elementContains.js.map +1 -1
  39. package/lib-commonjs/virtualParent/getParent.js +10 -3
  40. package/lib-commonjs/virtualParent/getParent.js.map +1 -1
  41. package/lib-commonjs/virtualParent/getVirtualParent.js +16 -7
  42. package/lib-commonjs/virtualParent/getVirtualParent.js.map +1 -1
  43. package/lib-commonjs/virtualParent/index.js +11 -2
  44. package/lib-commonjs/virtualParent/index.js.map +1 -1
  45. package/lib-commonjs/virtualParent/isVirtualElement.js +7 -2
  46. package/lib-commonjs/virtualParent/isVirtualElement.js.map +1 -1
  47. package/lib-commonjs/virtualParent/setVirtualParent.js +17 -9
  48. package/lib-commonjs/virtualParent/setVirtualParent.js.map +1 -1
  49. package/lib-commonjs/virtualParent/types.js +4 -1
  50. package/lib-commonjs/virtualParent/types.js.map +1 -1
  51. package/package.json +11 -10
  52. package/lib/common/isConformant.d.ts +0 -4
  53. package/lib/common/isConformant.js +0 -9
  54. package/lib/common/isConformant.js.map +0 -1
  55. package/lib-commonjs/common/isConformant.d.ts +0 -4
  56. package/lib-commonjs/common/isConformant.js +0 -13
  57. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,67 +2,179 @@
2
2
  "name": "@fluentui/react-portal",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 04 Nov 2021 04:20:35 GMT",
6
- "tag": "@fluentui/react-portal_v0.0.0-nightlybc5ff01fb020211104.1",
7
- "version": "0.0.0-nightlybc5ff01fb020211104.1",
5
+ "date": "Wed, 01 Dec 2021 04:25:38 GMT",
6
+ "tag": "@fluentui/react-portal_v0.0.0-nightlyd3bf09bf8120211201.1",
7
+ "version": "0.0.0-nightlyd3bf09bf8120211201.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-portal",
13
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d",
13
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
17
- "author": "gcox@microsoft.com",
17
+ "author": "beachball",
18
18
  "package": "@fluentui/react-portal",
19
- "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
20
- "comment": "Updated beta and RC components to ES2019"
19
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1",
20
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
21
21
  },
22
22
  {
23
- "author": "gcox@microsoft.com",
23
+ "author": "beachball",
24
24
  "package": "@fluentui/react-portal",
25
- "commit": "36404e1921159b0a69b4824ae86e6276e0723ea2",
26
- "comment": "Broke up stories added codesandbox refs"
25
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd3bf09bf8120211201.1",
26
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-portal",
31
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyd3bf09bf8120211201.1",
32
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-portal",
37
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyd3bf09bf8120211201.1",
38
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-portal",
43
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1",
44
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-portal",
49
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1",
50
+ "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
51
+ }
52
+ ],
53
+ "none": [
54
+ {
55
+ "author": "olfedias@microsoft.com",
56
+ "package": "@fluentui/react-portal",
57
+ "commit": "f4883108ae74c089213780f09997115c0d547aef",
58
+ "comment": "update stories to not use CSS shorthands in styles"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ {
64
+ "date": "Thu, 25 Nov 2021 08:34:15 GMT",
65
+ "tag": "@fluentui/react-portal_v9.0.0-beta.5",
66
+ "version": "9.0.0-beta.5",
67
+ "comments": {
68
+ "none": [
69
+ {
70
+ "author": "lingfangao@hotmail.com",
71
+ "package": "@fluentui/react-portal",
72
+ "commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
73
+ "comment": "Migrate package to use solution tsconfigs"
74
+ }
75
+ ],
76
+ "prerelease": [
77
+ {
78
+ "author": "beachball",
79
+ "package": "@fluentui/react-portal",
80
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
81
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
27
82
  },
28
83
  {
29
84
  "author": "beachball",
30
85
  "package": "@fluentui/react-portal",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlybc5ff01fb020211104.1",
32
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d"
86
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
87
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
88
  },
34
89
  {
35
90
  "author": "beachball",
36
91
  "package": "@fluentui/react-portal",
37
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightlybc5ff01fb020211104.1",
38
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d"
92
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
93
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
94
  },
40
95
  {
41
96
  "author": "beachball",
42
97
  "package": "@fluentui/react-portal",
43
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlybc5ff01fb020211104.1",
44
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d"
98
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
99
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
100
  },
46
101
  {
47
102
  "author": "beachball",
48
103
  "package": "@fluentui/react-portal",
49
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlybc5ff01fb020211104.1",
50
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d"
104
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
105
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
106
  },
52
107
  {
53
108
  "author": "beachball",
54
109
  "package": "@fluentui/react-portal",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlybc5ff01fb020211104.1",
56
- "commit": "112d5b8815c25532184ed7c1407ba9a777e2f48d"
110
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
111
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
112
  }
58
- ],
113
+ ]
114
+ }
115
+ },
116
+ {
117
+ "date": "Fri, 12 Nov 2021 13:25:29 GMT",
118
+ "tag": "@fluentui/react-portal_v9.0.0-beta.4",
119
+ "version": "9.0.0-beta.4",
120
+ "comments": {
59
121
  "none": [
122
+ {
123
+ "author": "lingfangao@hotmail.com",
124
+ "package": "@fluentui/react-portal",
125
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
126
+ "comment": "Remove beta release tag"
127
+ },
60
128
  {
61
129
  "author": "mgodbolt@microsoft.com",
62
130
  "package": "@fluentui/react-portal",
63
131
  "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
64
132
  "comment": "update docs descriptions"
65
133
  }
134
+ ],
135
+ "prerelease": [
136
+ {
137
+ "author": "gcox@microsoft.com",
138
+ "package": "@fluentui/react-portal",
139
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
140
+ "comment": "Updated beta and RC components to ES2019"
141
+ },
142
+ {
143
+ "author": "gcox@microsoft.com",
144
+ "package": "@fluentui/react-portal",
145
+ "commit": "36404e1921159b0a69b4824ae86e6276e0723ea2",
146
+ "comment": "Broke up stories added codesandbox refs"
147
+ },
148
+ {
149
+ "author": "beachball",
150
+ "package": "@fluentui/react-portal",
151
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
152
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
153
+ },
154
+ {
155
+ "author": "beachball",
156
+ "package": "@fluentui/react-portal",
157
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
158
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
159
+ },
160
+ {
161
+ "author": "beachball",
162
+ "package": "@fluentui/react-portal",
163
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
164
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
165
+ },
166
+ {
167
+ "author": "beachball",
168
+ "package": "@fluentui/react-portal",
169
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
170
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
171
+ },
172
+ {
173
+ "author": "beachball",
174
+ "package": "@fluentui/react-portal",
175
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
176
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
177
+ }
66
178
  ]
67
179
  }
68
180
  },
package/CHANGELOG.md CHANGED
@@ -1,24 +1,52 @@
1
1
  # Change Log - @fluentui/react-portal
2
2
 
3
- This log was last generated on Thu, 04 Nov 2021 04:20:35 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 01 Dec 2021 04:25:38 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlybc5ff01fb020211104.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v0.0.0-nightlybc5ff01fb020211104.1)
7
+ ## [0.0.0-nightlyd3bf09bf8120211201.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v0.0.0-nightlyd3bf09bf8120211201.1)
8
8
 
9
- Thu, 04 Nov 2021 04:20:35 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-beta.3..@fluentui/react-portal_v0.0.0-nightlybc5ff01fb020211104.1)
9
+ Wed, 01 Dec 2021 04:25:38 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-beta.5..@fluentui/react-portal_v0.0.0-nightlyd3bf09bf8120211201.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by email not defined)
15
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
18
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
19
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
20
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
21
+
22
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.0.0-beta.5)
23
+
24
+ Thu, 25 Nov 2021 08:34:15 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-beta.4..@fluentui/react-portal_v9.0.0-beta.5)
26
+
27
+ ### Changes
28
+
29
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
30
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
31
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
32
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
33
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
34
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
35
+
36
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.0.0-beta.4)
37
+
38
+ Fri, 12 Nov 2021 13:25:29 GMT
39
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-portal_v9.0.0-beta.3..@fluentui/react-portal_v9.0.0-beta.4)
11
40
 
12
41
  ### Changes
13
42
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by email not defined)
15
43
  - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
16
44
  - Broke up stories added codesandbox refs ([PR #20372](https://github.com/microsoft/fluentui/pull/20372) by gcox@microsoft.com)
17
- - Bump @fluentui/react-make-styles to v0.0.0-nightlybc5ff01fb020211104.1 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by beachball)
18
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightlybc5ff01fb020211104.1 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by beachball)
19
- - Bump @fluentui/react-tabster to v0.0.0-nightlybc5ff01fb020211104.1 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by beachball)
20
- - Bump @fluentui/react-utilities to v0.0.0-nightlybc5ff01fb020211104.1 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlybc5ff01fb020211104.1 ([commit](https://github.com/microsoft/fluentui/commit/112d5b8815c25532184ed7c1407ba9a777e2f48d) by beachball)
45
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
46
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
47
+ - Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
48
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
49
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
22
50
 
23
51
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-portal_v9.0.0-beta.3)
24
52
 
@@ -4,9 +4,10 @@ import { renderPortal } from './renderPortal';
4
4
  * A portal provides a way to render children into a DOM node
5
5
  * that exists outside the DOM hierarchy of the parent component.
6
6
  */
7
+
7
8
  export const Portal = props => {
8
- const state = usePortal(props);
9
- return renderPortal(state);
9
+ const state = usePortal(props);
10
+ return renderPortal(state);
10
11
  };
11
12
  Portal.displayName = 'Portal';
12
13
  //# sourceMappingURL=Portal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.js","sourceRoot":"","sources":["../../../src/components/Portal/Portal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAA0B,KAAK,CAAC,EAAE;IACnD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAE/B,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"sources":["../../../src/components/Portal/Portal.tsx"],"names":[],"mappings":"AAEA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,YAAT,QAA6B,gBAA7B;AAGA;;;AAGG;;AACH,OAAO,MAAM,MAAM,GAA0B,KAAK,IAAG;AACnD,QAAM,KAAK,GAAG,SAAS,CAAC,KAAD,CAAvB;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB;AACD,CAJM;AAMP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
@@ -3,7 +3,11 @@ import * as React from 'react';
3
3
  /**
4
4
  * Render the final JSX of Portal
5
5
  */
6
- export const renderPortal = (state) => {
7
- return (React.createElement("span", { hidden: true, ref: state.virtualParentRootRef }, state.shouldRender && state.mountNode && ReactDOM.createPortal(state.children, state.mountNode)));
6
+
7
+ export const renderPortal = state => {
8
+ return /*#__PURE__*/React.createElement("span", {
9
+ hidden: true,
10
+ ref: state.virtualParentRootRef
11
+ }, state.shouldRender && state.mountNode && /*#__PURE__*/ReactDOM.createPortal(state.children, state.mountNode));
8
12
  };
9
13
  //# sourceMappingURL=renderPortal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderPortal.js","sourceRoot":"","sources":["../../../src/components/Portal/renderPortal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAkB,EAAsB,EAAE;IACrE,OAAO,CACL,8BAAM,MAAM,QAAC,GAAG,EAAE,KAAK,CAAC,oBAAoB,IACzC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,CAC3F,CACR,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"sources":["../../../src/components/Portal/renderPortal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAZ,MAA0B,WAA1B;AACA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAA2C;AACrE,sBACE,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAAM,IAAA,MAAM,EAAA,IAAZ;AAAa,IAAA,GAAG,EAAE,KAAK,CAAC;AAAxB,GAAA,EACG,KAAK,CAAC,YAAN,IAAsB,KAAK,CAAC,SAA5B,iBAAyC,QAAQ,CAAC,YAAT,CAAsB,KAAK,CAAC,QAA5B,EAAsC,KAAK,CAAC,SAA5C,CAD5C,CADF;AAKD,CANM","sourceRoot":""}
@@ -9,21 +9,27 @@ import { setVirtualParent } from '../../virtualParent/index';
9
9
  *
10
10
  * @param props - props from this instance of Portal
11
11
  */
12
- export const usePortal = (props) => {
13
- const { children, mountNode } = props;
14
- const virtualParentRootRef = React.useRef(null);
15
- const fallbackMountNode = usePortalMountNode({ disabled: !!mountNode });
16
- const state = {
17
- children,
18
- mountNode: mountNode !== null && mountNode !== void 0 ? mountNode : fallbackMountNode,
19
- shouldRender: !useIsSSR(),
20
- virtualParentRootRef,
21
- };
22
- React.useEffect(() => {
23
- if (state.virtualParentRootRef.current && state.mountNode) {
24
- setVirtualParent(state.mountNode, state.virtualParentRootRef.current);
25
- }
26
- }, [state.virtualParentRootRef, state.mountNode]);
27
- return state;
12
+
13
+ export const usePortal = props => {
14
+ const {
15
+ children,
16
+ mountNode
17
+ } = props;
18
+ const virtualParentRootRef = React.useRef(null);
19
+ const fallbackMountNode = usePortalMountNode({
20
+ disabled: !!mountNode
21
+ });
22
+ const state = {
23
+ children,
24
+ mountNode: mountNode !== null && mountNode !== void 0 ? mountNode : fallbackMountNode,
25
+ shouldRender: !useIsSSR(),
26
+ virtualParentRootRef
27
+ };
28
+ React.useEffect(() => {
29
+ if (state.virtualParentRootRef.current && state.mountNode) {
30
+ setVirtualParent(state.mountNode, state.virtualParentRootRef.current);
31
+ }
32
+ }, [state.virtualParentRootRef, state.mountNode]);
33
+ return state;
28
34
  };
29
35
  //# sourceMappingURL=usePortal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePortal.js","sourceRoot":"","sources":["../../../src/components/Portal/usePortal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAkB,EAAe,EAAE;IAC3D,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtC,MAAM,oBAAoB,GAAG,KAAK,CAAC,MAAM,CAAkB,IAAI,CAAC,CAAC;IACjE,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;IAExE,MAAM,KAAK,GAAgB;QACzB,QAAQ;QACR,SAAS,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,iBAAiB;QACzC,YAAY,EAAE,CAAC,QAAQ,EAAE;QACzB,oBAAoB;KACrB,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,KAAK,CAAC,oBAAoB,CAAC,OAAO,IAAI,KAAK,CAAC,SAAS,EAAE;YACzD,gBAAgB,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;SACvE;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAElD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
1
+ {"version":3,"sources":["../../../src/components/Portal/usePortal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,kBAAT,QAAmC,sBAAnC;AACA,SAAS,gBAAT,QAAiC,2BAAjC;AAGA;;;;;;AAMG;;AACH,OAAO,MAAM,SAAS,GAAI,KAAD,IAAoC;AAC3D,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA0B,KAAhC;AAEA,QAAM,oBAAoB,GAAG,KAAK,CAAC,MAAN,CAA8B,IAA9B,CAA7B;AACA,QAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAAE,IAAA,QAAQ,EAAE,CAAC,CAAC;AAAd,GAAD,CAA5C;AAEA,QAAM,KAAK,GAAgB;AACzB,IAAA,QADyB;AAEzB,IAAA,SAAS,EAAE,SAAS,KAAA,IAAT,IAAA,SAAS,KAAA,KAAA,CAAT,GAAA,SAAA,GAAa,iBAFC;AAGzB,IAAA,YAAY,EAAE,CAAC,QAAQ,EAHE;AAIzB,IAAA;AAJyB,GAA3B;AAOA,EAAA,KAAK,CAAC,SAAN,CAAgB,MAAK;AACnB,QAAI,KAAK,CAAC,oBAAN,CAA2B,OAA3B,IAAsC,KAAK,CAAC,SAAhD,EAA2D;AACzD,MAAA,gBAAgB,CAAC,KAAK,CAAC,SAAP,EAAkB,KAAK,CAAC,oBAAN,CAA2B,OAA7C,CAAhB;AACD;AACF,GAJD,EAIG,CAAC,KAAK,CAAC,oBAAP,EAA6B,KAAK,CAAC,SAAnC,CAJH;AAMA,SAAO,KAAP;AACD,CApBM","sourceRoot":""}
@@ -5,26 +5,32 @@ import { useKeyboardNavAttribute } from '@fluentui/react-tabster';
5
5
  /**
6
6
  * Creates a new element on a document.body to mount portals
7
7
  */
8
- export const usePortalMountNode = (options) => {
9
- const themeClassName = useThemeClassName();
10
- const { targetDocument, dir } = useFluent();
11
- const element = React.useMemo(() => {
12
- if (targetDocument === undefined || options.disabled) {
13
- return undefined;
14
- }
15
- const newElement = targetDocument.createElement('div');
16
- newElement.setAttribute('class', themeClassName);
17
- newElement.setAttribute('dir', dir);
18
- targetDocument.body.appendChild(newElement);
19
- return newElement;
20
- }, [targetDocument, themeClassName, dir, options.disabled]);
21
- useKeyboardNavAttribute().current = element;
22
- useIsomorphicLayoutEffect(() => {
23
- return () => {
24
- var _a;
25
- (_a = element === null || element === void 0 ? void 0 : element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(element);
26
- };
27
- }, [element]);
28
- return element;
8
+
9
+ export const usePortalMountNode = options => {
10
+ const themeClassName = useThemeClassName();
11
+ const {
12
+ targetDocument,
13
+ dir
14
+ } = useFluent();
15
+ const element = React.useMemo(() => {
16
+ if (targetDocument === undefined || options.disabled) {
17
+ return undefined;
18
+ }
19
+
20
+ const newElement = targetDocument.createElement('div');
21
+ newElement.setAttribute('class', themeClassName);
22
+ newElement.setAttribute('dir', dir);
23
+ targetDocument.body.appendChild(newElement);
24
+ return newElement;
25
+ }, [targetDocument, themeClassName, dir, options.disabled]);
26
+ useKeyboardNavAttribute().current = element;
27
+ useIsomorphicLayoutEffect(() => {
28
+ return () => {
29
+ var _a;
30
+
31
+ (_a = element === null || element === void 0 ? void 0 : element.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(element);
32
+ };
33
+ }, [element]);
34
+ return element;
29
35
  };
30
36
  //# sourceMappingURL=usePortalMountNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePortalMountNode.js","sourceRoot":"","sources":["../../../src/components/Portal/usePortalMountNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AASlE;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAkC,EAAE,EAAE;IACvE,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAC;IAE5C,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACjC,IAAI,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpD,OAAO,SAAS,CAAC;SAClB;QAED,MAAM,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACvD,UAAU,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACjD,UAAU,CAAC,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACpC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAE5C,OAAO,UAAU,CAAC;IACpB,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAE3D,uBAAuB,EAA0C,CAAC,OAAO,GAAG,OAAQ,CAAC;IAEtF,yBAAyB,CAAC,GAAG,EAAE;QAC7B,OAAO,GAAG,EAAE;;YACV,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,0CAAE,WAAW,CAAC,OAAO,EAAE;QAC/C,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
1
+ {"version":3,"sources":["../../../src/components/Portal/usePortalMountNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,yBAAT,QAA0C,2BAA1C;AACA,SAAS,iBAAT,EAA4B,SAA5B,QAA6C,iCAA7C;AACA,SAAS,uBAAT,QAAwC,yBAAxC;AASA;;AAEG;;AACH,OAAO,MAAM,kBAAkB,GAAI,OAAD,IAAuC;AACvE,QAAM,cAAc,GAAG,iBAAiB,EAAxC;AACA,QAAM;AAAE,IAAA,cAAF;AAAkB,IAAA;AAAlB,MAA0B,SAAS,EAAzC;AAEA,QAAM,OAAO,GAAG,KAAK,CAAC,OAAN,CAAc,MAAK;AACjC,QAAI,cAAc,KAAK,SAAnB,IAAgC,OAAO,CAAC,QAA5C,EAAsD;AACpD,aAAO,SAAP;AACD;;AAED,UAAM,UAAU,GAAG,cAAc,CAAC,aAAf,CAA6B,KAA7B,CAAnB;AACA,IAAA,UAAU,CAAC,YAAX,CAAwB,OAAxB,EAAiC,cAAjC;AACA,IAAA,UAAU,CAAC,YAAX,CAAwB,KAAxB,EAA+B,GAA/B;AACA,IAAA,cAAc,CAAC,IAAf,CAAoB,WAApB,CAAgC,UAAhC;AAEA,WAAO,UAAP;AACD,GAXe,EAWb,CAAC,cAAD,EAAiB,cAAjB,EAAiC,GAAjC,EAAsC,OAAO,CAAC,QAA9C,CAXa,CAAhB;AAaC,EAAA,uBAAuB,GAA2C,OAAlE,GAA4E,OAA5E;AAED,EAAA,yBAAyB,CAAC,MAAK;AAC7B,WAAO,MAAK;;;AACV,OAAA,EAAA,GAAA,OAAO,KAAA,IAAP,IAAA,OAAO,KAAA,KAAA,CAAP,GAAO,KAAA,CAAP,GAAA,OAAO,CAAE,aAAT,MAAsB,IAAtB,IAAsB,EAAA,KAAA,KAAA,CAAtB,GAAsB,KAAA,CAAtB,GAAsB,EAAA,CAAE,WAAF,CAAc,OAAd,CAAtB;AACD,KAFD;AAGD,GAJwB,EAItB,CAAC,OAAD,CAJsB,CAAzB;AAMA,SAAO,OAAP;AACD,CA1BM","sourceRoot":""}
@@ -5,22 +5,26 @@ import { getParent } from './getParent';
5
5
  *
6
6
  * @returns true if the child can find the parent in its virtual hierarchy
7
7
  */
8
+
8
9
  export function elementContains(parent, child) {
9
- if (!parent || !child) {
10
- return false;
11
- }
12
- if (parent === child) {
10
+ if (!parent || !child) {
11
+ return false;
12
+ }
13
+
14
+ if (parent === child) {
15
+ return true;
16
+ } else {
17
+ while (child) {
18
+ const nextParent = getParent(child);
19
+
20
+ if (nextParent === parent) {
13
21
  return true;
22
+ }
23
+
24
+ child = nextParent;
14
25
  }
15
- else {
16
- while (child) {
17
- const nextParent = getParent(child);
18
- if (nextParent === parent) {
19
- return true;
20
- }
21
- child = nextParent;
22
- }
23
- }
24
- return false;
26
+ }
27
+
28
+ return false;
25
29
  }
26
30
  //# sourceMappingURL=elementContains.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"elementContains.js","sourceRoot":"","sources":["../../src/virtualParent/elementContains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,MAA0B,EAAE,KAAyB;IACnF,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IAED,IAAI,MAAM,KAAK,KAAK,EAAE;QACpB,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,KAAK,EAAE;YACZ,MAAM,UAAU,GAAuB,SAAS,CAAC,KAAK,CAAC,CAAC;YAExD,IAAI,UAAU,KAAK,MAAM,EAAE;gBACzB,OAAO,IAAI,CAAC;aACb;YAED,KAAK,GAAG,UAAU,CAAC;SACpB;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"sources":["../../src/virtualParent/elementContains.ts"],"names":[],"mappings":"AAAA,SAAS,SAAT,QAA0B,aAA1B;AACA;;;;;AAKG;;AACH,OAAM,SAAU,eAAV,CAA0B,MAA1B,EAAsD,KAAtD,EAA+E;AACnF,MAAI,CAAC,MAAD,IAAW,CAAC,KAAhB,EAAuB;AACrB,WAAO,KAAP;AACD;;AAED,MAAI,MAAM,KAAK,KAAf,EAAsB;AACpB,WAAO,IAAP;AACD,GAFD,MAEO;AACL,WAAO,KAAP,EAAc;AACZ,YAAM,UAAU,GAAuB,SAAS,CAAC,KAAD,CAAhD;;AAEA,UAAI,UAAU,KAAK,MAAnB,EAA2B;AACzB,eAAO,IAAP;AACD;;AAED,MAAA,KAAK,GAAG,UAAR;AACD;AACF;;AAED,SAAO,KAAP;AACD","sourceRoot":""}
@@ -3,7 +3,8 @@ import { getVirtualParent } from './getVirtualParent';
3
3
  * Gets the element which is the parent of a given element.
4
4
  * This method prefers the virtual parent over real DOM parent when present.
5
5
  */
6
+
6
7
  export function getParent(child) {
7
- return (child && getVirtualParent(child)) || (child === null || child === void 0 ? void 0 : child.parentNode);
8
+ return child && getVirtualParent(child) || (child === null || child === void 0 ? void 0 : child.parentNode);
8
9
  }
9
10
  //# sourceMappingURL=getParent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParent.js","sourceRoot":"","sources":["../../src/virtualParent/getParent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,KAAyB;IACjD,OAAO,CAAC,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAiC,CAAA,CAAC;AACzF,CAAC"}
1
+ {"version":3,"sources":["../../src/virtualParent/getParent.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,oBAAjC;AAEA;;;AAGG;;AACH,OAAM,SAAU,SAAV,CAAoB,KAApB,EAA6C;AACjD,SAAQ,KAAK,IAAI,gBAAgB,CAAC,KAAD,CAA1B,KAAuC,KAAK,KAAA,IAAL,IAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAA,KAAK,CAAE,UAA9C,CAAP;AACD","sourceRoot":""}
@@ -2,11 +2,14 @@ import { isVirtualElement } from './isVirtualElement';
2
2
  /**
3
3
  * Gets the virtual parent given the child element, if it exists.
4
4
  */
5
+
5
6
  export function getVirtualParent(child) {
6
- let parent;
7
- if (isVirtualElement(child)) {
8
- parent = child._virtual.parent;
9
- }
10
- return parent;
7
+ let parent;
8
+
9
+ if (isVirtualElement(child)) {
10
+ parent = child._virtual.parent;
11
+ }
12
+
13
+ return parent;
11
14
  }
12
15
  //# sourceMappingURL=getVirtualParent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getVirtualParent.js","sourceRoot":"","sources":["../../src/virtualParent/getVirtualParent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAkB;IACjD,IAAI,MAA+B,CAAC;IACpC,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;QAC3B,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;KAChC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"sources":["../../src/virtualParent/getVirtualParent.ts"],"names":[],"mappings":"AAAA,SAAS,gBAAT,QAAiC,oBAAjC;AACA;;AAEG;;AACH,OAAM,SAAU,gBAAV,CAA2B,KAA3B,EAA6C;AACjD,MAAI,MAAJ;;AACA,MAAI,gBAAgB,CAAC,KAAD,CAApB,EAA6B;AAC3B,IAAA,MAAM,GAAG,KAAK,CAAC,QAAN,CAAe,MAAxB;AACD;;AACD,SAAO,MAAP;AACD","sourceRoot":""}
@@ -2,6 +2,6 @@
2
2
  * Determines whether or not an element has the virtual hierarchy extension.
3
3
  */
4
4
  export function isVirtualElement(element) {
5
- return element && !!element._virtual;
5
+ return element && !!element._virtual;
6
6
  }
7
7
  //# sourceMappingURL=isVirtualElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isVirtualElement.js","sourceRoot":"","sources":["../../src/virtualParent/isVirtualElement.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAqC;IACpE,OAAO,OAAO,IAAI,CAAC,CAAkB,OAAQ,CAAC,QAAQ,CAAC;AACzD,CAAC"}
1
+ {"version":3,"sources":["../../src/virtualParent/isVirtualElement.ts"],"names":[],"mappings":"AAEA;;AAEG;AACH,OAAM,SAAU,gBAAV,CAA2B,OAA3B,EAAgE;AACpE,SAAO,OAAO,IAAI,CAAC,CAAkB,OAAQ,CAAC,QAA9C;AACD","sourceRoot":""}
@@ -5,13 +5,16 @@
5
5
  * @param parent - The virtual parent, use `undefined` to remove a virtual parent relationship
6
6
  */
7
7
  export function setVirtualParent(child, parent) {
8
- if (!child) {
9
- return;
10
- }
11
- const virtualChild = child;
12
- if (!virtualChild._virtual) {
13
- virtualChild._virtual = {};
14
- }
15
- virtualChild._virtual.parent = parent || undefined;
8
+ if (!child) {
9
+ return;
10
+ }
11
+
12
+ const virtualChild = child;
13
+
14
+ if (!virtualChild._virtual) {
15
+ virtualChild._virtual = {};
16
+ }
17
+
18
+ virtualChild._virtual.parent = parent || undefined;
16
19
  }
17
20
  //# sourceMappingURL=setVirtualParent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setVirtualParent.js","sourceRoot":"","sources":["../../src/virtualParent/setVirtualParent.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAkB,EAAE,MAAoB;IACvE,IAAI,CAAC,KAAK,EAAE;QACV,OAAO;KACR;IAED,MAAM,YAAY,GAAmB,KAAK,CAAC;IAE3C,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE;QAC1B,YAAY,CAAC,QAAQ,GAAG,EAAE,CAAC;KAC5B;IAED,YAAY,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,IAAI,SAAS,CAAC;AACrD,CAAC"}
1
+ {"version":3,"sources":["../../src/virtualParent/setVirtualParent.ts"],"names":[],"mappings":"AAEA;;;;;AAKG;AACH,OAAM,SAAU,gBAAV,CAA2B,KAA3B,EAA+C,MAA/C,EAAmE;AACvE,MAAI,CAAC,KAAL,EAAY;AACV;AACD;;AAED,QAAM,YAAY,GAAmB,KAArC;;AAEA,MAAI,CAAC,YAAY,CAAC,QAAlB,EAA4B;AAC1B,IAAA,YAAY,CAAC,QAAb,GAAwB,EAAxB;AACD;;AAED,EAAA,YAAY,CAAC,QAAb,CAAsB,MAAtB,GAA+B,MAAM,IAAI,SAAzC;AACD","sourceRoot":""}
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
4
9
  tslib_1.__exportStar(require("./components/Portal/index"), exports);
5
10
  //# sourceMappingURL=Portal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.js","sourceRoot":"","sources":["../src/Portal.ts"],"names":[],"mappings":";;;AAAA,oEAA0C"}
1
+ {"version":3,"sources":["../src/Portal.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA","sourceRoot":""}