@fluentui/global-context 9.0.0-beta.5 → 9.0.0-beta.50

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/CHANGELOG.md CHANGED
@@ -1,12 +1,473 @@
1
1
  # Change Log - @fluentui/global-context
2
2
 
3
- This log was last generated on Thu, 13 Oct 2022 10:59:42 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 14 Dec 2023 09:51:32 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.50](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.50)
8
+
9
+ Thu, 14 Dec 2023 09:51:32 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.49..@fluentui/global-context_v9.0.0-beta.50)
11
+
12
+ ### Changes
13
+
14
+ - chore: disallow `window` and `document` access ([PR #29962](https://github.com/microsoft/fluentui/pull/29962) by seanmonahan@microsoft.com)
15
+ - Bump @fluentui/react-context-selector to v9.1.43 ([commit](https://github.com/microsoft/fluentui/commit/80a1b02be2fbbdde916ac87fbf760e442a2295c4) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.15.3 ([commit](https://github.com/microsoft/fluentui/commit/80a1b02be2fbbdde916ac87fbf760e442a2295c4) by beachball)
17
+
18
+ ## [9.0.0-beta.49](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.49)
19
+
20
+ Thu, 09 Nov 2023 17:29:49 GMT
21
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.48..@fluentui/global-context_v9.0.0-beta.49)
22
+
23
+ ### Changes
24
+
25
+ - chore: use package.json#files setup instead of npmignore for all v9 libraries ([PR #29734](https://github.com/microsoft/fluentui/pull/29734) by martinhochel@microsoft.com)
26
+ - Bump @fluentui/react-context-selector to v9.1.42 ([PR #29800](https://github.com/microsoft/fluentui/pull/29800) by beachball)
27
+ - Bump @fluentui/react-utilities to v9.15.2 ([PR #29800](https://github.com/microsoft/fluentui/pull/29800) by beachball)
28
+
29
+ ## [9.0.0-beta.48](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.48)
30
+
31
+ Wed, 18 Oct 2023 17:54:08 GMT
32
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.47..@fluentui/global-context_v9.0.0-beta.48)
33
+
34
+ ### Changes
35
+
36
+ - Bump @fluentui/react-context-selector to v9.1.41 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
37
+ - Bump @fluentui/react-utilities to v9.15.1 ([PR #29560](https://github.com/microsoft/fluentui/pull/29560) by beachball)
38
+
39
+ ## [9.0.0-beta.47](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.47)
40
+
41
+ Wed, 11 Oct 2023 13:54:26 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.46..@fluentui/global-context_v9.0.0-beta.47)
43
+
44
+ ### Changes
45
+
46
+ - Bump @fluentui/react-context-selector to v9.1.40 ([PR #29262](https://github.com/microsoft/fluentui/pull/29262) by beachball)
47
+ - Bump @fluentui/react-utilities to v9.15.0 ([PR #29262](https://github.com/microsoft/fluentui/pull/29262) by beachball)
48
+
49
+ ## [9.0.0-beta.46](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.46)
50
+
51
+ Mon, 09 Oct 2023 20:45:44 GMT
52
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.45..@fluentui/global-context_v9.0.0-beta.46)
53
+
54
+ ### Changes
55
+
56
+ - Bump @fluentui/react-context-selector to v9.1.39 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
57
+ - Bump @fluentui/react-utilities to v9.14.2 ([PR #29364](https://github.com/microsoft/fluentui/pull/29364) by beachball)
58
+
59
+ ## [9.0.0-beta.45](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.45)
60
+
61
+ Thu, 05 Oct 2023 15:25:35 GMT
62
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.44..@fluentui/global-context_v9.0.0-beta.45)
63
+
64
+ ### Changes
65
+
66
+ - Bump @fluentui/react-context-selector to v9.1.38 ([PR #29412](https://github.com/microsoft/fluentui/pull/29412) by beachball)
67
+ - Bump @fluentui/react-utilities to v9.14.1 ([PR #29412](https://github.com/microsoft/fluentui/pull/29412) by beachball)
68
+
69
+ ## [9.0.0-beta.44](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.44)
70
+
71
+ Wed, 04 Oct 2023 08:45:47 GMT
72
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.43..@fluentui/global-context_v9.0.0-beta.44)
73
+
74
+ ### Changes
75
+
76
+ - Bump @fluentui/react-context-selector to v9.1.37 ([commit](https://github.com/microsoft/fluentui/commit/67b6cc6534e684ed32704dc6c0faee632bb840dc) by beachball)
77
+ - Bump @fluentui/react-utilities to v9.14.0 ([commit](https://github.com/microsoft/fluentui/commit/67b6cc6534e684ed32704dc6c0faee632bb840dc) by beachball)
78
+
79
+ ## [9.0.0-beta.43](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.43)
80
+
81
+ Tue, 26 Sep 2023 17:49:01 GMT
82
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.42..@fluentui/global-context_v9.0.0-beta.43)
83
+
84
+ ### Changes
85
+
86
+ - chore: trigger manual version bump after broken release ([PR #29303](https://github.com/microsoft/fluentui/pull/29303) by yuanboxue@microsoft.com)
87
+ - Bump @fluentui/react-context-selector to v9.1.36 ([PR #29303](https://github.com/microsoft/fluentui/pull/29303) by beachball)
88
+ - Bump @fluentui/react-utilities to v9.13.5 ([PR #29303](https://github.com/microsoft/fluentui/pull/29303) by beachball)
89
+
90
+ ## [9.0.0-beta.42](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.42)
91
+
92
+ Tue, 26 Sep 2023 15:32:07 GMT
93
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.41..@fluentui/global-context_v9.0.0-beta.42)
94
+
95
+ ### Changes
96
+
97
+ - fix: bump swc core to mitigate transpilation memory leaks ([PR #29253](https://github.com/microsoft/fluentui/pull/29253) by martinhochel@microsoft.com)
98
+ - Bump @fluentui/react-context-selector to v9.1.35 ([PR #29300](https://github.com/microsoft/fluentui/pull/29300) by beachball)
99
+ - Bump @fluentui/react-utilities to v9.13.4 ([PR #29300](https://github.com/microsoft/fluentui/pull/29300) by beachball)
100
+
101
+ ## [9.0.0-beta.41](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.41)
102
+
103
+ Wed, 06 Sep 2023 13:31:31 GMT
104
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.40..@fluentui/global-context_v9.0.0-beta.41)
105
+
106
+ ### Changes
107
+
108
+ - Bump @fluentui/react-context-selector to v9.1.34 ([PR #29080](https://github.com/microsoft/fluentui/pull/29080) by beachball)
109
+ - Bump @fluentui/react-utilities to v9.13.3 ([PR #29080](https://github.com/microsoft/fluentui/pull/29080) by beachball)
110
+
111
+ ## [9.0.0-beta.40](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.40)
112
+
113
+ Tue, 05 Sep 2023 15:39:04 GMT
114
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.39..@fluentui/global-context_v9.0.0-beta.40)
115
+
116
+ ### Changes
117
+
118
+ - Bump @fluentui/react-context-selector to v9.1.33 ([PR #29055](https://github.com/microsoft/fluentui/pull/29055) by beachball)
119
+ - Bump @fluentui/react-utilities to v9.13.2 ([PR #29055](https://github.com/microsoft/fluentui/pull/29055) by beachball)
120
+
121
+ ## [9.0.0-beta.39](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.39)
122
+
123
+ Tue, 05 Sep 2023 13:29:13 GMT
124
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.38..@fluentui/global-context_v9.0.0-beta.39)
125
+
126
+ ### Changes
127
+
128
+ - bumps @swc/helpers version to 0.5.1 ([PR #28989](https://github.com/microsoft/fluentui/pull/28989) by bernardo.sunderhus@gmail.com)
129
+ - bumps react peer dependencies to v16.14.0 ([PR #28959](https://github.com/microsoft/fluentui/pull/28959) by bernardo.sunderhus@gmail.com)
130
+ - Bump @fluentui/react-context-selector to v9.1.32 ([PR #29056](https://github.com/microsoft/fluentui/pull/29056) by beachball)
131
+ - Bump @fluentui/react-utilities to v9.13.1 ([PR #29056](https://github.com/microsoft/fluentui/pull/29056) by beachball)
132
+
133
+ ## [9.0.0-beta.38](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.38)
134
+
135
+ Tue, 29 Aug 2023 12:57:36 GMT
136
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.37..@fluentui/global-context_v9.0.0-beta.38)
137
+
138
+ ### Changes
139
+
140
+ - Bump @fluentui/react-context-selector to v9.1.31 ([PR #29005](https://github.com/microsoft/fluentui/pull/29005) by beachball)
141
+ - Bump @fluentui/react-utilities to v9.13.0 ([PR #29005](https://github.com/microsoft/fluentui/pull/29005) by beachball)
142
+
143
+ ## [9.0.0-beta.37](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.37)
144
+
145
+ Thu, 24 Aug 2023 10:26:35 GMT
146
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.36..@fluentui/global-context_v9.0.0-beta.37)
147
+
148
+ ### Changes
149
+
150
+ - Bump @fluentui/react-context-selector to v9.1.30 ([PR #28973](https://github.com/microsoft/fluentui/pull/28973) by beachball)
151
+ - Bump @fluentui/react-utilities to v9.12.0 ([PR #28973](https://github.com/microsoft/fluentui/pull/28973) by beachball)
152
+
153
+ ## [9.0.0-beta.36](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.36)
154
+
155
+ Wed, 23 Aug 2023 12:01:49 GMT
156
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.35..@fluentui/global-context_v9.0.0-beta.36)
157
+
158
+ ### Changes
159
+
160
+ - Bump @fluentui/react-context-selector to v9.1.29 ([PR #28957](https://github.com/microsoft/fluentui/pull/28957) by beachball)
161
+ - Bump @fluentui/react-utilities to v9.11.2 ([PR #28957](https://github.com/microsoft/fluentui/pull/28957) by beachball)
162
+
163
+ ## [9.0.0-beta.35](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.35)
164
+
165
+ Fri, 11 Aug 2023 12:14:26 GMT
166
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.34..@fluentui/global-context_v9.0.0-beta.35)
167
+
168
+ ### Changes
169
+
170
+ - Bump @fluentui/react-context-selector to v9.1.28 ([PR #28808](https://github.com/microsoft/fluentui/pull/28808) by beachball)
171
+ - Bump @fluentui/react-utilities to v9.11.1 ([PR #28808](https://github.com/microsoft/fluentui/pull/28808) by beachball)
172
+
173
+ ## [9.0.0-beta.34](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.34)
174
+
175
+ Fri, 04 Aug 2023 08:52:58 GMT
176
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.33..@fluentui/global-context_v9.0.0-beta.34)
177
+
178
+ ### Changes
179
+
180
+ - Bump @fluentui/react-context-selector to v9.1.27 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
181
+ - Bump @fluentui/react-utilities to v9.11.0 ([commit](https://github.com/microsoft/fluentui/commit/0bf7d9438c1d0ff90cd2b28bc4cceb4f807afbca) by beachball)
182
+
183
+ ## [9.0.0-beta.33](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.33)
184
+
185
+ Mon, 03 Jul 2023 11:57:14 GMT
186
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.32..@fluentui/global-context_v9.0.0-beta.33)
187
+
188
+ ### Changes
189
+
190
+ - Bump @fluentui/react-context-selector to v9.1.26 ([PR #28412](https://github.com/microsoft/fluentui/pull/28412) by beachball)
191
+ - Bump @fluentui/react-utilities to v9.10.1 ([PR #28412](https://github.com/microsoft/fluentui/pull/28412) by beachball)
192
+
193
+ ## [9.0.0-beta.32](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.32)
194
+
195
+ Wed, 28 Jun 2023 11:12:21 GMT
196
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.31..@fluentui/global-context_v9.0.0-beta.32)
197
+
198
+ ### Changes
199
+
200
+ - Bump @fluentui/react-context-selector to v9.1.25 ([PR #28320](https://github.com/microsoft/fluentui/pull/28320) by beachball)
201
+ - Bump @fluentui/react-utilities to v9.10.0 ([PR #28320](https://github.com/microsoft/fluentui/pull/28320) by beachball)
202
+
203
+ ## [9.0.0-beta.31](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.31)
204
+
205
+ Mon, 26 Jun 2023 09:53:55 GMT
206
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.30..@fluentui/global-context_v9.0.0-beta.31)
207
+
208
+ ### Changes
209
+
210
+ - Bump @fluentui/react-context-selector to v9.1.24 ([PR #28296](https://github.com/microsoft/fluentui/pull/28296) by beachball)
211
+ - Bump @fluentui/react-utilities to v9.9.4 ([PR #28296](https://github.com/microsoft/fluentui/pull/28296) by beachball)
212
+
213
+ ## [9.0.0-beta.30](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.30)
214
+
215
+ Tue, 20 Jun 2023 12:39:07 GMT
216
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.29..@fluentui/global-context_v9.0.0-beta.30)
217
+
218
+ ### Changes
219
+
220
+ - Bump @fluentui/react-context-selector to v9.1.23 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
221
+ - Bump @fluentui/react-utilities to v9.9.3 ([PR #28229](https://github.com/microsoft/fluentui/pull/28229) by beachball)
222
+
223
+ ## [9.0.0-beta.29](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.29)
224
+
225
+ Wed, 31 May 2023 06:46:08 GMT
226
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.28..@fluentui/global-context_v9.0.0-beta.29)
227
+
228
+ ### Changes
229
+
230
+ - Bump @fluentui/react-context-selector to v9.1.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
231
+ - Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
232
+
233
+ ## [9.0.0-beta.28](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.28)
234
+
235
+ Thu, 25 May 2023 10:00:48 GMT
236
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.27..@fluentui/global-context_v9.0.0-beta.28)
237
+
238
+ ### Changes
239
+
240
+ - Bump @fluentui/react-context-selector to v9.1.21 ([PR #27988](https://github.com/microsoft/fluentui/pull/27988) by beachball)
241
+ - Bump @fluentui/react-utilities to v9.9.1 ([PR #27988](https://github.com/microsoft/fluentui/pull/27988) by beachball)
242
+
243
+ ## [9.0.0-beta.27](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.27)
244
+
245
+ Thu, 18 May 2023 00:39:00 GMT
246
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.26..@fluentui/global-context_v9.0.0-beta.27)
247
+
248
+ ### Changes
249
+
250
+ - Bump @fluentui/react-context-selector to v9.1.20 ([PR #27834](https://github.com/microsoft/fluentui/pull/27834) by beachball)
251
+ - Bump @fluentui/react-utilities to v9.9.0 ([PR #27834](https://github.com/microsoft/fluentui/pull/27834) by beachball)
252
+
253
+ ## [9.0.0-beta.26](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.26)
254
+
255
+ Fri, 12 May 2023 20:28:08 GMT
256
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.25..@fluentui/global-context_v9.0.0-beta.26)
257
+
258
+ ### Changes
259
+
260
+ - chore: exclude .swcrc from being published ([PR #27740](https://github.com/microsoft/fluentui/pull/27740) by olfedias@microsoft.com)
261
+ - Bump @fluentui/react-context-selector to v9.1.19 ([PR #27827](https://github.com/microsoft/fluentui/pull/27827) by beachball)
262
+ - Bump @fluentui/react-utilities to v9.8.1 ([PR #27827](https://github.com/microsoft/fluentui/pull/27827) by beachball)
263
+
264
+ ## [9.0.0-beta.25](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.25)
265
+
266
+ Mon, 17 Apr 2023 17:54:02 GMT
267
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.24..@fluentui/global-context_v9.0.0-beta.25)
268
+
269
+ ### Changes
270
+
271
+ - Bump @fluentui/react-context-selector to v9.1.18 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
272
+ - Bump @fluentui/react-utilities to v9.8.0 ([PR #27564](https://github.com/microsoft/fluentui/pull/27564) by beachball)
273
+
274
+ ## [9.0.0-beta.24](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.24)
275
+
276
+ Wed, 12 Apr 2023 09:31:45 GMT
277
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.23..@fluentui/global-context_v9.0.0-beta.24)
278
+
279
+ ### Changes
280
+
281
+ - Bump @fluentui/react-context-selector to v9.1.17 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
282
+ - Bump @fluentui/react-utilities to v9.7.4 ([PR #27274](https://github.com/microsoft/fluentui/pull/27274) by beachball)
283
+
284
+ ## [9.0.0-beta.23](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.23)
285
+
286
+ Tue, 04 Apr 2023 18:44:50 GMT
287
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.22..@fluentui/global-context_v9.0.0-beta.23)
288
+
289
+ ### Changes
290
+
291
+ - Bump @fluentui/react-context-selector to v9.1.16 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
292
+ - Bump @fluentui/react-utilities to v9.7.3 ([PR #27434](https://github.com/microsoft/fluentui/pull/27434) by beachball)
293
+
294
+ ## [9.0.0-beta.22](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.22)
295
+
296
+ Tue, 21 Mar 2023 21:23:18 GMT
297
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.21..@fluentui/global-context_v9.0.0-beta.22)
298
+
299
+ ### Changes
300
+
301
+ - chore: migrate to swc transpilation approach. ([PR #27250](https://github.com/microsoft/fluentui/pull/27250) by tristan.watanabe@gmail.com)
302
+ - fix: add node field to package.json exports map. ([PR #27154](https://github.com/microsoft/fluentui/pull/27154) by tristan.watanabe@gmail.com)
303
+ - Bump @fluentui/react-context-selector to v9.1.15 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
304
+ - Bump @fluentui/react-utilities to v9.7.2 ([PR #27271](https://github.com/microsoft/fluentui/pull/27271) by beachball)
305
+
306
+ ## [9.0.0-beta.21](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.21)
307
+
308
+ Thu, 16 Mar 2023 14:36:59 GMT
309
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.20..@fluentui/global-context_v9.0.0-beta.21)
310
+
311
+ ### Changes
312
+
313
+ - Bump @fluentui/react-context-selector to v9.1.14 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
314
+ - Bump @fluentui/react-utilities to v9.7.1 ([PR #27229](https://github.com/microsoft/fluentui/pull/27229) by beachball)
315
+
316
+ ## [9.0.0-beta.20](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.20)
317
+
318
+ Mon, 13 Mar 2023 08:58:26 GMT
319
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.19..@fluentui/global-context_v9.0.0-beta.20)
320
+
321
+ ### Changes
322
+
323
+ - Bump @fluentui/react-context-selector to v9.1.13 ([PR #27161](https://github.com/microsoft/fluentui/pull/27161) by beachball)
324
+ - Bump @fluentui/react-utilities to v9.7.0 ([PR #27161](https://github.com/microsoft/fluentui/pull/27161) by beachball)
325
+
326
+ ## [9.0.0-beta.19](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.19)
327
+
328
+ Fri, 10 Mar 2023 07:14:01 GMT
329
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.18..@fluentui/global-context_v9.0.0-beta.19)
330
+
331
+ ### Changes
332
+
333
+ - Bump @fluentui/react-context-selector to v9.1.12 ([PR #27157](https://github.com/microsoft/fluentui/pull/27157) by beachball)
334
+ - Bump @fluentui/react-utilities to v9.6.2 ([PR #27157](https://github.com/microsoft/fluentui/pull/27157) by beachball)
335
+
336
+ ## [9.0.0-beta.18](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.18)
337
+
338
+ Wed, 08 Mar 2023 17:42:51 GMT
339
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.17..@fluentui/global-context_v9.0.0-beta.18)
340
+
341
+ ### Changes
342
+
343
+ - Bump @fluentui/react-context-selector to v9.1.11 ([PR #27127](https://github.com/microsoft/fluentui/pull/27127) by beachball)
344
+ - Bump @fluentui/react-utilities to v9.6.1 ([PR #27127](https://github.com/microsoft/fluentui/pull/27127) by beachball)
345
+
346
+ ## [9.0.0-beta.17](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.17)
347
+
348
+ Wed, 15 Feb 2023 11:44:52 GMT
349
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.16..@fluentui/global-context_v9.0.0-beta.17)
350
+
351
+ ### Changes
352
+
353
+ - Bump @fluentui/react-context-selector to v9.1.10 ([PR #26845](https://github.com/microsoft/fluentui/pull/26845) by beachball)
354
+ - Bump @fluentui/react-utilities to v9.6.0 ([PR #26845](https://github.com/microsoft/fluentui/pull/26845) by beachball)
355
+
356
+ ## [9.0.0-beta.16](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.16)
357
+
358
+ Mon, 13 Feb 2023 23:43:14 GMT
359
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.15..@fluentui/global-context_v9.0.0-beta.16)
360
+
361
+ ### Changes
362
+
363
+ - Bump @fluentui/react-context-selector to v9.1.9 ([PR #26814](https://github.com/microsoft/fluentui/pull/26814) by beachball)
364
+ - Bump @fluentui/react-utilities to v9.5.3 ([PR #26814](https://github.com/microsoft/fluentui/pull/26814) by beachball)
365
+
366
+ ## [9.0.0-beta.15](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.15)
367
+
368
+ Fri, 10 Feb 2023 08:50:02 GMT
369
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.14..@fluentui/global-context_v9.0.0-beta.15)
370
+
371
+ ### Changes
372
+
373
+ - Bump @fluentui/react-context-selector to v9.1.8 ([commit](https://github.com/microsoft/fluentui/commit/cc62f050f8231e8f21a2cf7dddf33003e0ba3931) by beachball)
374
+ - Bump @fluentui/react-utilities to v9.5.2 ([commit](https://github.com/microsoft/fluentui/commit/cc62f050f8231e8f21a2cf7dddf33003e0ba3931) by beachball)
375
+
376
+ ## [9.0.0-beta.14](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.14)
377
+
378
+ Tue, 31 Jan 2023 19:53:58 GMT
379
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.13..@fluentui/global-context_v9.0.0-beta.14)
380
+
381
+ ### Changes
382
+
383
+ - Bump @fluentui/react-context-selector to v9.1.7 ([PR #26557](https://github.com/microsoft/fluentui/pull/26557) by beachball)
384
+ - Bump @fluentui/react-utilities to v9.5.1 ([PR #26557](https://github.com/microsoft/fluentui/pull/26557) by beachball)
385
+
386
+ ## [9.0.0-beta.13](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.13)
387
+
388
+ Thu, 26 Jan 2023 13:31:03 GMT
389
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.12..@fluentui/global-context_v9.0.0-beta.13)
390
+
391
+ ### Changes
392
+
393
+ - Bump @fluentui/react-context-selector to v9.1.6 ([PR #26496](https://github.com/microsoft/fluentui/pull/26496) by beachball)
394
+ - Bump @fluentui/react-utilities to v9.5.0 ([PR #26496](https://github.com/microsoft/fluentui/pull/26496) by beachball)
395
+
396
+ ## [9.0.0-beta.12](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.12)
397
+
398
+ Mon, 09 Jan 2023 14:34:54 GMT
399
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.11..@fluentui/global-context_v9.0.0-beta.12)
400
+
401
+ ### Changes
402
+
403
+ - Bump @fluentui/react-context-selector to v9.1.5 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
404
+ - Bump @fluentui/react-utilities to v9.4.0 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
405
+
406
+ ## [9.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.11)
407
+
408
+ Wed, 04 Jan 2023 01:40:46 GMT
409
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.10..@fluentui/global-context_v9.0.0-beta.11)
410
+
411
+ ### Changes
412
+
413
+ - Bump @fluentui/react-context-selector to v9.1.4 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
414
+ - Bump @fluentui/react-utilities to v9.3.1 ([PR #26114](https://github.com/microsoft/fluentui/pull/26114) by beachball)
415
+
416
+ ## [9.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.10)
417
+
418
+ Tue, 20 Dec 2022 14:59:34 GMT
419
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.9..@fluentui/global-context_v9.0.0-beta.10)
420
+
421
+ ### Changes
422
+
423
+ - Bump @fluentui/react-context-selector to v9.1.3 ([PR #26047](https://github.com/microsoft/fluentui/pull/26047) by beachball)
424
+ - Bump @fluentui/react-utilities to v9.3.0 ([PR #26047](https://github.com/microsoft/fluentui/pull/26047) by beachball)
425
+
426
+ ## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.9)
427
+
428
+ Thu, 17 Nov 2022 23:05:31 GMT
429
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.8..@fluentui/global-context_v9.0.0-beta.9)
430
+
431
+ ### Changes
432
+
433
+ - Bump @fluentui/react-context-selector to v9.1.2 ([PR #25683](https://github.com/microsoft/fluentui/pull/25683) by beachball)
434
+ - Bump @fluentui/react-utilities to v9.2.2 ([PR #25683](https://github.com/microsoft/fluentui/pull/25683) by beachball)
435
+
436
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.8)
437
+
438
+ Fri, 11 Nov 2022 14:57:50 GMT
439
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.7..@fluentui/global-context_v9.0.0-beta.8)
440
+
441
+ ### Changes
442
+
443
+ - fix: create valid export maps ([PR #25558](https://github.com/microsoft/fluentui/pull/25558) by martinhochel@microsoft.com)
444
+ - Bump @fluentui/react-context-selector to v9.1.1 ([PR #25615](https://github.com/microsoft/fluentui/pull/25615) by beachball)
445
+ - Bump @fluentui/react-utilities to v9.2.1 ([PR #25615](https://github.com/microsoft/fluentui/pull/25615) by beachball)
446
+
447
+ ## [9.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.7)
448
+
449
+ Wed, 02 Nov 2022 11:58:07 GMT
450
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.6..@fluentui/global-context_v9.0.0-beta.7)
451
+
452
+ ### Changes
453
+
454
+ - Bump @fluentui/react-context-selector to v9.1.0 ([PR #25456](https://github.com/microsoft/fluentui/pull/25456) by beachball)
455
+ - Bump @fluentui/react-utilities to v9.2.0 ([PR #25456](https://github.com/microsoft/fluentui/pull/25456) by beachball)
456
+
457
+ ## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.6)
458
+
459
+ Thu, 20 Oct 2022 08:39:56 GMT
460
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.5..@fluentui/global-context_v9.0.0-beta.6)
461
+
462
+ ### Changes
463
+
464
+ - chore: Bump peer deps to support React 18 ([PR #24972](https://github.com/microsoft/fluentui/pull/24972) by mgodbolt@microsoft.com)
465
+ - Bump @fluentui/react-context-selector to v9.0.5 ([PR #25265](https://github.com/microsoft/fluentui/pull/25265) by beachball)
466
+ - Bump @fluentui/react-utilities to v9.1.2 ([PR #25265](https://github.com/microsoft/fluentui/pull/25265) by beachball)
467
+
7
468
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.5)
8
469
 
9
- Thu, 13 Oct 2022 10:59:42 GMT
470
+ Thu, 13 Oct 2022 11:03:06 GMT
10
471
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.4..@fluentui/global-context_v9.0.0-beta.5)
11
472
 
12
473
  ### Changes
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @fluentui/global-context
2
2
 
3
- **Global Context for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
3
+ **Global Context for [Fluent UI React](https://react.fluentui.dev)**
4
4
 
5
5
  This package contains a shim for `React.createContext` API that will register the context object to the global
6
6
  scope (`window` for browsers, `global` for nodejs). This means that contexts will be real singletons.
@@ -1,23 +1,23 @@
1
+ import * as React from 'react';
1
2
  import { createContext as baseCreateContext } from '@fluentui/react-context-selector';
2
3
  import { canUseDOM } from '@fluentui/react-utilities';
3
4
  import { getMajorVersion } from './utils';
4
- const isBrowser = /*#__PURE__*/canUseDOM();
5
- const globalObject = isBrowser ? window : global; // Identifier for the symbol, for easy idenfitifaction of symbols created by this util
5
+ const isBrowser = canUseDOM();
6
+ // eslint-disable-next-line no-restricted-globals
7
+ const globalObject = isBrowser ? window : global;
8
+ // Identifier for the symbol, for easy idenfitifaction of symbols created by this util
6
9
  // Useful for clearning global object during SSR reloads
7
-
8
- export const SYMBOL_NAMESPACE = 'global-context-selector:'; // During SSR the global object persists with the server process
10
+ export const SYMBOL_NAMESPACE = 'global-context-selector:';
11
+ // During SSR the global object persists with the server process
9
12
  // Clean out the global object during server reload during development
10
-
11
13
  if (!isBrowser && process.env.NODE_ENV !== 'production') {
12
- const globalSymbols = /*#__PURE__*/Object.getOwnPropertySymbols(globalObject);
13
- globalSymbols.forEach(sym => {
14
- var _a;
15
-
16
- if ((_a = Symbol.keyFor(sym)) === null || _a === void 0 ? void 0 : _a.startsWith(SYMBOL_NAMESPACE)) {
17
- // @ts-expect-error - Indexing object with symbols not supported until TS 4.4
18
- delete globalObject[sym];
19
- }
20
- });
14
+ const globalSymbols = Object.getOwnPropertySymbols(globalObject);
15
+ globalSymbols.forEach((sym)=>{
16
+ var _Symbol_keyFor;
17
+ if ((_Symbol_keyFor = Symbol.keyFor(sym)) === null || _Symbol_keyFor === void 0 ? void 0 : _Symbol_keyFor.startsWith(SYMBOL_NAMESPACE)) {
18
+ delete globalObject[sym];
19
+ }
20
+ });
21
21
  }
22
22
  /**
23
23
  * Wrapper around @see createContext from \@fluentui/react-context-selector that implements context registration
@@ -31,23 +31,15 @@ if (!isBrowser && process.env.NODE_ENV !== 'production') {
31
31
  * @param packageName - name of the npm package where the module is used
32
32
  * @param packageVersion - version of the npm package where the module is used
33
33
  * @returns @see React.createContext
34
- */
35
-
36
-
37
- export const createContext = (defaultValue, name, packageName, packageVersion) => {
38
- // Symbol guaranteed to be unique for the entire runtime
39
- const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`); // Objects keyed with symbols are not visible with console.log
40
- // Object symbol properties can't be iterated with `for` or `Object.keys`
41
-
42
- const globalSymbols = Object.getOwnPropertySymbols(globalObject);
43
-
44
- if (!globalSymbols.includes(sym)) {
45
- // @ts-expect-error - Indexing object with symbols not supported until TS 4.4
46
- // eslint-disable-next-line @fluentui/no-context-default-value
47
- globalObject[sym] = baseCreateContext(defaultValue);
48
- } // @ts-expect-error - Indexing object with symbols not supported until TS 4.4
49
-
50
-
51
- return globalObject[sym];
34
+ */ export const createContext = (defaultValue, name, packageName, packageVersion)=>{
35
+ // Symbol guaranteed to be unique for the entire runtime
36
+ const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);
37
+ // Objects keyed with symbols are not visible with console.log
38
+ // Object symbol properties can't be iterated with `for` or `Object.keys`
39
+ const globalSymbols = Object.getOwnPropertySymbols(globalObject);
40
+ if (!globalSymbols.includes(sym)) {
41
+ // eslint-disable-next-line @fluentui/no-context-default-value
42
+ globalObject[sym] = baseCreateContext(defaultValue);
43
+ }
44
+ return globalObject[sym];
52
45
  };
53
- //# sourceMappingURL=global-context-selector.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["global-context-selector.ts"],"names":[],"mappings":"AACA,SAAS,aAAa,IAAI,iBAA1B,QAAmD,kCAAnD;AACA,SAAS,SAAT,QAA0B,2BAA1B;AACA,SAAS,eAAT,QAAgC,SAAhC;AAGA,MAAM,SAAS,gBAAG,SAAS,EAA3B;AACA,MAAM,YAAY,GAAiB,SAAS,GAAG,MAAH,GAAY,MAAxD,C,CAEA;AACA;;AACA,OAAO,MAAM,gBAAgB,GAAG,0BAAzB,C,CAEP;AACA;;AACA,IAAI,CAAC,SAAD,IAAc,OAAO,CAAC,GAAR,CAAY,QAAZ,KAAyB,YAA3C,EAAyD;EACvD,MAAM,aAAa,gBAAG,MAAM,CAAC,qBAAP,CAA6B,YAA7B,CAAtB;EACA,aAAa,CAAC,OAAd,CAAsB,GAAG,IAAG;;;IAC1B,IAAI,CAAA,EAAA,GAAA,MAAM,CAAC,MAAP,CAAc,GAAd,CAAA,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,KAAA,CAAlB,GAAkB,EAAA,CAAE,UAAF,CAAa,gBAAb,CAAtB,EAAsD;MACpD;MACA,OAAO,YAAY,CAAC,GAAD,CAAnB;IACD;EACF,CALD;AAMD;AAED;;;;;;;;;;;;AAYG;;;AACH,OAAO,MAAM,aAAa,GAAG,CAAI,YAAJ,EAAqB,IAArB,EAAmC,WAAnC,EAAwD,cAAxD,KAAkF;EAC7G;EACA,MAAM,GAAG,GAAG,MAAM,CAAC,GAAP,CAAW,GAAG,gBAAgB,GAAG,WAAW,IAAI,IAAI,KAAK,eAAe,CAAC,cAAD,CAAgB,EAAxF,CAAZ,CAF6G,CAI7G;EACA;;EACA,MAAM,aAAa,GAAG,MAAM,CAAC,qBAAP,CAA6B,YAA7B,CAAtB;;EACA,IAAI,CAAC,aAAa,CAAC,QAAd,CAAuB,GAAvB,CAAL,EAAkC;IAChC;IACA;IACA,YAAY,CAAC,GAAD,CAAZ,GAAoB,iBAAiB,CAAC,YAAD,CAArC;EACD,CAX4G,CAa7G;;;EACA,OAAO,YAAY,CAAC,GAAD,CAAnB;AACD,CAfM","sourcesContent":["import * as React from 'react';\nimport { createContext as baseCreateContext } from '@fluentui/react-context-selector';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport { getMajorVersion } from './utils';\nimport { GlobalObject } from './types';\n\nconst isBrowser = canUseDOM();\nconst globalObject: GlobalObject = isBrowser ? window : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context-selector:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n // @ts-expect-error - Indexing object with symbols not supported until TS 4.4\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see createContext from \\@fluentui/react-context-selector that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(defaultValue: T, name: string, packageName: string, packageVersion: string) => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // @ts-expect-error - Indexing object with symbols not supported until TS 4.4\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = baseCreateContext(defaultValue);\n }\n\n // @ts-expect-error - Indexing object with symbols not supported until TS 4.4\n return globalObject[sym] as React.Context<T>;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["global-context-selector.ts"],"sourcesContent":["import * as React from 'react';\nimport { createContext as baseCreateContext } from '@fluentui/react-context-selector';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport { getMajorVersion } from './utils';\nimport { GlobalObject } from './types';\n\nconst isBrowser = canUseDOM();\n// eslint-disable-next-line no-restricted-globals\nconst globalObject: GlobalObject = isBrowser ? window : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context-selector:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see createContext from \\@fluentui/react-context-selector that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(defaultValue: T, name: string, packageName: string, packageVersion: string) => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = baseCreateContext<unknown>(defaultValue);\n }\n\n return globalObject[sym] as React.Context<T>;\n};\n"],"names":["React","createContext","baseCreateContext","canUseDOM","getMajorVersion","isBrowser","globalObject","window","global","SYMBOL_NAMESPACE","process","env","NODE_ENV","globalSymbols","Object","getOwnPropertySymbols","forEach","sym","Symbol","keyFor","startsWith","defaultValue","name","packageName","packageVersion","for","includes"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,iBAAiBC,iBAAiB,QAAQ,mCAAmC;AACtF,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,eAAe,QAAQ,UAAU;AAG1C,MAAMC,YAAYF;AAClB,iDAAiD;AACjD,MAAMG,eAA6BD,YAAYE,SAASC;AAExD,sFAAsF;AACtF,wDAAwD;AACxD,OAAO,MAAMC,mBAAmB,2BAA2B;AAE3D,gEAAgE;AAChE,sEAAsE;AACtE,IAAI,CAACJ,aAAaK,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACvD,MAAMC,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnDO,cAAcG,OAAO,CAACC,CAAAA;YAChBC;QAAJ,KAAIA,iBAAAA,OAAOC,MAAM,CAACF,kBAAdC,qCAAAA,eAAoBE,UAAU,CAACX,mBAAmB;YACpD,OAAOH,YAAY,CAACW,IAAI;QAC1B;IACF;AACF;AAEA;;;;;;;;;;;;CAYC,GACD,OAAO,MAAMhB,gBAAgB,CAAIoB,cAAiBC,MAAcC,aAAqBC;IACnF,wDAAwD;IACxD,MAAMP,MAAMC,OAAOO,GAAG,CAAC,CAAC,EAAEhB,iBAAiB,EAAEc,YAAY,CAAC,EAAED,KAAK,EAAE,EAAElB,gBAAgBoB,gBAAgB,CAAC;IAEtG,8DAA8D;IAC9D,yEAAyE;IACzE,MAAMX,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnD,IAAI,CAACO,cAAca,QAAQ,CAACT,MAAM;QAChC,8DAA8D;QAC9DX,YAAY,CAACW,IAAI,GAAGf,kBAA2BmB;IACjD;IAEA,OAAOf,YAAY,CAACW,IAAI;AAC1B,EAAE"}