@fluentui/react-message-bar 9.2.1 → 9.2.2

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,22 +1,34 @@
1
1
  # Change Log - @fluentui/react-message-bar
2
2
 
3
- This log was last generated on Thu, 23 May 2024 07:57:56 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Jun 2024 15:22:16 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.2.2)
8
+
9
+ Thu, 06 Jun 2024 15:22:16 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.2.1..@fluentui/react-message-bar_v9.2.2)
11
+
12
+ ### Patches
13
+
14
+ - chore: disable eslint rule ([PR #30967](https://github.com/microsoft/fluentui/pull/30967) by seanmonahan@microsoft.com)
15
+ - Bump @fluentui/react-button to v9.3.83 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v9.0.39 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
17
+ - Bump @fluentui/react-utilities to v9.18.10 ([PR #31586](https://github.com/microsoft/fluentui/pull/31586) by beachball)
18
+
7
19
  ## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.2.1)
8
20
 
9
- Thu, 23 May 2024 07:57:56 GMT
21
+ Thu, 23 May 2024 08:02:45 GMT
10
22
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.2.0..@fluentui/react-message-bar_v9.2.1)
11
23
 
12
24
  ### Patches
13
25
 
14
26
  - chore: replace usage of .shorthands() in styles ([PR #31458](https://github.com/microsoft/fluentui/pull/31458) by olfedias@microsoft.com)
15
- - Bump @fluentui/react-button to v9.3.82 ([commit](https://github.com/microsoft/fluentui/commit/10e6758b203de79c53ce31ba264e137f83f50ff4) by beachball)
27
+ - Bump @fluentui/react-button to v9.3.82 ([commit](https://github.com/microsoft/fluentui/commit/03599d609e8310b08c57d1f871cffbf717d79207) by beachball)
16
28
 
17
29
  ## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.2.0)
18
30
 
19
- Mon, 20 May 2024 12:44:58 GMT
31
+ Mon, 20 May 2024 12:44:58 GMT
20
32
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.1.1..@fluentui/react-message-bar_v9.2.0)
21
33
 
22
34
  ### Minor changes
@@ -34,17 +46,17 @@ Mon, 20 May 2024 12:44:58 GMT
34
46
 
35
47
  ## [9.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.1.1)
36
48
 
37
- Thu, 16 May 2024 09:25:15 GMT
49
+ Thu, 16 May 2024 09:25:15 GMT
38
50
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.1.0..@fluentui/react-message-bar_v9.1.1)
39
51
 
40
52
  ### Patches
41
53
 
42
- - chore: Upgrade react-icons version to 2.0.239 to pick up provider export map fix. ([PR #31287](https://github.com/microsoft/fluentui/pull/31287) by ololubek@microsoft.com)
54
+ - chore: Upgrade react-icons version to 2.0.239 to pick up provider export map fix. ([PR #31287](https://github.com/microsoft/fluentui/pull/31287) by ololubek@microsoft.com)
43
55
  - Bump @fluentui/react-button to v9.3.80 ([PR #31390](https://github.com/microsoft/fluentui/pull/31390) by beachball)
44
56
 
45
57
  ## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.1.0)
46
58
 
47
- Mon, 13 May 2024 12:34:19 GMT
59
+ Mon, 13 May 2024 12:34:19 GMT
48
60
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.30..@fluentui/react-message-bar_v9.1.0)
49
61
 
50
62
  ### Minor changes
@@ -53,7 +65,7 @@ Mon, 13 May 2024 12:34:19 GMT
53
65
 
54
66
  ## [9.0.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.30)
55
67
 
56
- Thu, 09 May 2024 19:35:12 GMT
68
+ Thu, 09 May 2024 19:35:12 GMT
57
69
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.29..@fluentui/react-message-bar_v9.0.30)
58
70
 
59
71
  ### Patches
@@ -62,7 +74,7 @@ Thu, 09 May 2024 19:35:12 GMT
62
74
 
63
75
  ## [9.0.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.29)
64
76
 
65
- Mon, 06 May 2024 12:55:02 GMT
77
+ Mon, 06 May 2024 12:55:02 GMT
66
78
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.28..@fluentui/react-message-bar_v9.0.29)
67
79
 
68
80
  ### Patches
@@ -74,17 +86,17 @@ Mon, 06 May 2024 12:55:02 GMT
74
86
 
75
87
  ## [9.0.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.28)
76
88
 
77
- Thu, 02 May 2024 11:36:35 GMT
89
+ Thu, 02 May 2024 11:36:35 GMT
78
90
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.27..@fluentui/react-message-bar_v9.0.28)
79
91
 
80
92
  ### Patches
81
93
 
82
- - chore: upgrade @fluentui/react-icons to 2.0.237. ([PR #31139](https://github.com/microsoft/fluentui/pull/31139) by ololubek@microsoft.com)
94
+ - chore: upgrade @fluentui/react-icons to 2.0.237. ([PR #31139](https://github.com/microsoft/fluentui/pull/31139) by ololubek@microsoft.com)
83
95
  - Bump @fluentui/react-button to v9.3.77 ([PR #31231](https://github.com/microsoft/fluentui/pull/31231) by beachball)
84
96
 
85
97
  ## [9.0.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.27)
86
98
 
87
- Tue, 23 Apr 2024 08:17:49 GMT
99
+ Tue, 23 Apr 2024 08:17:49 GMT
88
100
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.26..@fluentui/react-message-bar_v9.0.27)
89
101
 
90
102
  ### Patches
@@ -96,18 +108,18 @@ Tue, 23 Apr 2024 08:17:49 GMT
96
108
 
97
109
  ## [9.0.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.26)
98
110
 
99
- Wed, 17 Apr 2024 21:53:54 GMT
111
+ Wed, 17 Apr 2024 21:53:54 GMT
100
112
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.25..@fluentui/react-message-bar_v9.0.26)
101
113
 
102
114
  ### Patches
103
115
 
104
- - chore: refactor styles defined in makeResetStyles() to avoid shorthands.*() ([PR #30996](https://github.com/microsoft/fluentui/pull/30996) by olfedias@microsoft.com)
116
+ - chore: refactor styles defined in makeResetStyles() to avoid shorthands.\*() ([PR #30996](https://github.com/microsoft/fluentui/pull/30996) by olfedias@microsoft.com)
105
117
  - chore: Update react-icons to 2.0.235 ([PR #31011](https://github.com/microsoft/fluentui/pull/31011) by ololubek@microsoft.com)
106
118
  - Bump @fluentui/react-button to v9.3.75 ([PR #31100](https://github.com/microsoft/fluentui/pull/31100) by beachball)
107
119
 
108
120
  ## [9.0.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.25)
109
121
 
110
- Tue, 02 Apr 2024 09:48:01 GMT
122
+ Tue, 02 Apr 2024 09:48:01 GMT
111
123
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.24..@fluentui/react-message-bar_v9.0.25)
112
124
 
113
125
  ### Patches
@@ -119,7 +131,7 @@ Tue, 02 Apr 2024 09:48:01 GMT
119
131
 
120
132
  ## [9.0.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.24)
121
133
 
122
- Mon, 18 Mar 2024 19:50:46 GMT
134
+ Mon, 18 Mar 2024 19:50:46 GMT
123
135
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.23..@fluentui/react-message-bar_v9.0.24)
124
136
 
125
137
  ### Patches
@@ -132,7 +144,7 @@ Mon, 18 Mar 2024 19:50:46 GMT
132
144
 
133
145
  ## [9.0.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.23)
134
146
 
135
- Fri, 15 Mar 2024 21:43:49 GMT
147
+ Fri, 15 Mar 2024 21:43:49 GMT
136
148
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.22..@fluentui/react-message-bar_v9.0.23)
137
149
 
138
150
  ### Patches
@@ -145,7 +157,7 @@ Fri, 15 Mar 2024 21:43:49 GMT
145
157
 
146
158
  ## [9.0.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.22)
147
159
 
148
- Thu, 07 Mar 2024 19:33:27 GMT
160
+ Thu, 07 Mar 2024 19:33:27 GMT
149
161
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.21..@fluentui/react-message-bar_v9.0.22)
150
162
 
151
163
  ### Patches
@@ -158,7 +170,7 @@ Thu, 07 Mar 2024 19:33:27 GMT
158
170
 
159
171
  ## [9.0.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.21)
160
172
 
161
- Wed, 28 Feb 2024 02:34:19 GMT
173
+ Wed, 28 Feb 2024 02:34:19 GMT
162
174
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.20..@fluentui/react-message-bar_v9.0.21)
163
175
 
164
176
  ### Patches
@@ -170,7 +182,7 @@ Wed, 28 Feb 2024 02:34:19 GMT
170
182
 
171
183
  ## [9.0.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.20)
172
184
 
173
- Tue, 20 Feb 2024 14:22:30 GMT
185
+ Tue, 20 Feb 2024 14:22:30 GMT
174
186
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.19..@fluentui/react-message-bar_v9.0.20)
175
187
 
176
188
  ### Patches
@@ -181,7 +193,7 @@ Tue, 20 Feb 2024 14:22:30 GMT
181
193
 
182
194
  ## [9.0.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.19)
183
195
 
184
- Tue, 06 Feb 2024 17:55:18 GMT
196
+ Tue, 06 Feb 2024 17:55:18 GMT
185
197
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.18..@fluentui/react-message-bar_v9.0.19)
186
198
 
187
199
  ### Patches
@@ -191,7 +203,7 @@ Tue, 06 Feb 2024 17:55:18 GMT
191
203
 
192
204
  ## [9.0.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.18)
193
205
 
194
- Tue, 30 Jan 2024 23:16:54 GMT
206
+ Tue, 30 Jan 2024 23:16:54 GMT
195
207
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.17..@fluentui/react-message-bar_v9.0.18)
196
208
 
197
209
  ### Patches
@@ -202,7 +214,7 @@ Tue, 30 Jan 2024 23:16:54 GMT
202
214
 
203
215
  ## [9.0.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.17)
204
216
 
205
- Tue, 23 Jan 2024 15:11:00 GMT
217
+ Tue, 23 Jan 2024 15:11:00 GMT
206
218
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.16..@fluentui/react-message-bar_v9.0.17)
207
219
 
208
220
  ### Patches
@@ -213,7 +225,7 @@ Tue, 23 Jan 2024 15:11:00 GMT
213
225
 
214
226
  ## [9.0.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.16)
215
227
 
216
- Thu, 18 Jan 2024 14:25:03 GMT
228
+ Thu, 18 Jan 2024 14:25:03 GMT
217
229
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.15..@fluentui/react-message-bar_v9.0.16)
218
230
 
219
231
  ### Patches
@@ -225,7 +237,7 @@ Thu, 18 Jan 2024 14:25:03 GMT
225
237
 
226
238
  ## [9.0.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.15)
227
239
 
228
- Wed, 17 Jan 2024 16:18:50 GMT
240
+ Wed, 17 Jan 2024 16:18:50 GMT
229
241
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.14..@fluentui/react-message-bar_v9.0.15)
230
242
 
231
243
  ### Patches
@@ -236,7 +248,7 @@ Wed, 17 Jan 2024 16:18:50 GMT
236
248
 
237
249
  ## [9.0.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.14)
238
250
 
239
- Tue, 16 Jan 2024 13:14:24 GMT
251
+ Tue, 16 Jan 2024 13:14:24 GMT
240
252
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.13..@fluentui/react-message-bar_v9.0.14)
241
253
 
242
254
  ### Patches
@@ -246,7 +258,7 @@ Tue, 16 Jan 2024 13:14:24 GMT
246
258
 
247
259
  ## [9.0.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.13)
248
260
 
249
- Thu, 11 Jan 2024 09:04:29 GMT
261
+ Thu, 11 Jan 2024 09:04:29 GMT
250
262
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.12..@fluentui/react-message-bar_v9.0.13)
251
263
 
252
264
  ### Patches
@@ -255,7 +267,7 @@ Thu, 11 Jan 2024 09:04:29 GMT
255
267
 
256
268
  ## [9.0.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.12)
257
269
 
258
- Mon, 08 Jan 2024 16:24:23 GMT
270
+ Mon, 08 Jan 2024 16:24:23 GMT
259
271
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.11..@fluentui/react-message-bar_v9.0.12)
260
272
 
261
273
  ### Patches
@@ -267,7 +279,7 @@ Mon, 08 Jan 2024 16:24:23 GMT
267
279
 
268
280
  ## [9.0.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.11)
269
281
 
270
- Wed, 03 Jan 2024 09:26:44 GMT
282
+ Wed, 03 Jan 2024 09:26:44 GMT
271
283
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.10..@fluentui/react-message-bar_v9.0.11)
272
284
 
273
285
  ### Patches
@@ -278,7 +290,7 @@ Wed, 03 Jan 2024 09:26:44 GMT
278
290
 
279
291
  ## [9.0.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.10)
280
292
 
281
- Mon, 18 Dec 2023 14:40:46 GMT
293
+ Mon, 18 Dec 2023 14:40:46 GMT
282
294
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.9..@fluentui/react-message-bar_v9.0.10)
283
295
 
284
296
  ### Patches
@@ -290,7 +302,7 @@ Mon, 18 Dec 2023 14:40:46 GMT
290
302
 
291
303
  ## [9.0.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.9)
292
304
 
293
- Thu, 14 Dec 2023 09:58:46 GMT
305
+ Thu, 14 Dec 2023 09:58:46 GMT
294
306
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.8..@fluentui/react-message-bar_v9.0.9)
295
307
 
296
308
  ### Patches
@@ -302,7 +314,7 @@ Thu, 14 Dec 2023 09:58:46 GMT
302
314
 
303
315
  ## [9.0.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.8)
304
316
 
305
- Thu, 30 Nov 2023 13:42:08 GMT
317
+ Thu, 30 Nov 2023 13:42:08 GMT
306
318
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.7..@fluentui/react-message-bar_v9.0.8)
307
319
 
308
320
  ### Patches
@@ -312,7 +324,7 @@ Thu, 30 Nov 2023 13:42:08 GMT
312
324
 
313
325
  ## [9.0.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.7)
314
326
 
315
- Mon, 20 Nov 2023 09:55:10 GMT
327
+ Mon, 20 Nov 2023 09:55:10 GMT
316
328
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.6..@fluentui/react-message-bar_v9.0.7)
317
329
 
318
330
  ### Patches
@@ -322,7 +334,7 @@ Mon, 20 Nov 2023 09:55:10 GMT
322
334
 
323
335
  ## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.6)
324
336
 
325
- Tue, 14 Nov 2023 17:51:27 GMT
337
+ Tue, 14 Nov 2023 17:51:27 GMT
326
338
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.5..@fluentui/react-message-bar_v9.0.6)
327
339
 
328
340
  ### Patches
@@ -331,7 +343,7 @@ Tue, 14 Nov 2023 17:51:27 GMT
331
343
 
332
344
  ## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.5)
333
345
 
334
- Thu, 09 Nov 2023 17:29:37 GMT
346
+ Thu, 09 Nov 2023 17:29:37 GMT
335
347
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.4..@fluentui/react-message-bar_v9.0.5)
336
348
 
337
349
  ### Patches
@@ -345,7 +357,7 @@ Thu, 09 Nov 2023 17:29:37 GMT
345
357
 
346
358
  ## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.4)
347
359
 
348
- Wed, 01 Nov 2023 12:55:59 GMT
360
+ Wed, 01 Nov 2023 12:55:59 GMT
349
361
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.3..@fluentui/react-message-bar_v9.0.4)
350
362
 
351
363
  ### Patches
@@ -356,7 +368,7 @@ Wed, 01 Nov 2023 12:55:59 GMT
356
368
 
357
369
  ## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.3)
358
370
 
359
- Sat, 28 Oct 2023 23:35:59 GMT
371
+ Sat, 28 Oct 2023 23:35:59 GMT
360
372
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.2..@fluentui/react-message-bar_v9.0.3)
361
373
 
362
374
  ### Patches
@@ -366,7 +378,7 @@ Sat, 28 Oct 2023 23:35:59 GMT
366
378
 
367
379
  ## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.2)
368
380
 
369
- Mon, 23 Oct 2023 09:51:57 GMT
381
+ Mon, 23 Oct 2023 09:51:57 GMT
370
382
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.1..@fluentui/react-message-bar_v9.0.2)
371
383
 
372
384
  ### Patches
@@ -375,7 +387,7 @@ Mon, 23 Oct 2023 09:51:57 GMT
375
387
 
376
388
  ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.1)
377
389
 
378
- Wed, 18 Oct 2023 17:54:04 GMT
390
+ Wed, 18 Oct 2023 17:54:04 GMT
379
391
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar_v9.0.0..@fluentui/react-message-bar_v9.0.1)
380
392
 
381
393
  ### Patches
@@ -387,7 +399,7 @@ Wed, 18 Oct 2023 17:54:04 GMT
387
399
 
388
400
  ## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar_v9.0.0)
389
401
 
390
- Thu, 12 Oct 2023 14:55:44 GMT
402
+ Thu, 12 Oct 2023 14:55:44 GMT
391
403
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.2.1..@fluentui/react-message-bar_v9.0.0)
392
404
 
393
405
  ### Minor changes
@@ -398,7 +410,7 @@ Thu, 12 Oct 2023 14:55:44 GMT
398
410
 
399
411
  ## [0.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.2.1)
400
412
 
401
- Wed, 11 Oct 2023 13:54:24 GMT
413
+ Wed, 11 Oct 2023 13:54:24 GMT
402
414
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.2.0..@fluentui/react-message-bar-preview_v0.2.1)
403
415
 
404
416
  ### Patches
@@ -411,7 +423,7 @@ Wed, 11 Oct 2023 13:54:24 GMT
411
423
 
412
424
  ## [0.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-message-bar-preview_v0.2.0)
413
425
 
414
- Mon, 09 Oct 2023 20:45:42 GMT
426
+ Mon, 09 Oct 2023 20:45:42 GMT
415
427
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-message-bar-preview_v0.1.1..@fluentui/react-message-bar-preview_v0.2.0)
416
428
 
417
429
  ### Minor changes
@@ -5,6 +5,8 @@ export function useMessageBarReflow(enabled = false) {
5
5
  const { targetDocument } = useFluent();
6
6
  const forceUpdate = React.useReducer(()=>({}), {})[1];
7
7
  const reflowingRef = React.useRef(false);
8
+ // TODO: exclude types from this lint rule: https://github.com/microsoft/fluentui/issues/31286
9
+ // eslint-disable-next-line no-restricted-globals
8
10
  const resizeObserverRef = React.useRef(null);
9
11
  const prevInlineSizeRef = React.useRef(-1);
10
12
  const handleResize = React.useCallback((entries)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["useMessageBarReflow.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { isHTMLElement } from '@fluentui/react-utilities';\n\nexport function useMessageBarReflow(enabled: boolean = false) {\n const { targetDocument } = useFluent();\n const forceUpdate = React.useReducer(() => ({}), {})[1];\n const reflowingRef = React.useRef(false);\n const resizeObserverRef = React.useRef<ResizeObserver | null>(null);\n const prevInlineSizeRef = React.useRef(-1);\n\n const handleResize: ResizeObserverCallback = React.useCallback(\n entries => {\n // Resize observer is only owned by this component - one resize observer entry expected\n // No need to support multiple fragments - one border box entry expected\n if (process.env.NODE_ENV !== 'production' && entries.length > 1) {\n // eslint-disable-next-line no-console\n console.error(\n [\n 'useMessageBarReflow: Resize observer should only have one entry. ',\n 'If multiple entries are observed, the first entry will be used.',\n 'This is a bug, please report it to the Fluent UI team.',\n ].join(' '),\n );\n }\n\n const entry = entries[0];\n const borderBoxSize = entry?.borderBoxSize[0];\n if (!borderBoxSize || !entry) {\n return;\n }\n\n const { inlineSize } = borderBoxSize;\n const { target } = entry;\n\n if (!isHTMLElement(target)) {\n return;\n }\n\n let nextReflowing: boolean | undefined;\n\n // No easy way to really determine when the single line layout will fit\n // Just keep try to set single line layout as long as the size is growing\n // Will cause flickering when size is being adjusted gradually (i.e. drag) - but this should not be a common case\n if (reflowingRef.current) {\n if (prevInlineSizeRef.current < inlineSize) {\n nextReflowing = false;\n }\n } else {\n const scrollWidth = target.scrollWidth;\n if (inlineSize < scrollWidth) {\n nextReflowing = true;\n }\n }\n\n prevInlineSizeRef.current = inlineSize;\n if (typeof nextReflowing !== 'undefined' && reflowingRef.current !== nextReflowing) {\n reflowingRef.current = nextReflowing;\n forceUpdate();\n }\n },\n [forceUpdate],\n );\n\n const ref = React.useCallback(\n (el: HTMLElement | null) => {\n if (!enabled || !el || !targetDocument?.defaultView) {\n return;\n }\n\n resizeObserverRef.current?.disconnect();\n\n const win = targetDocument.defaultView;\n const resizeObserver = new win.ResizeObserver(handleResize);\n resizeObserverRef.current = resizeObserver;\n resizeObserver.observe(el, { box: 'border-box' });\n },\n [targetDocument, handleResize, enabled],\n );\n\n React.useEffect(() => {\n return () => {\n resizeObserverRef.current?.disconnect();\n };\n }, []);\n\n return { ref, reflowing: reflowingRef.current };\n}\n"],"names":["React","useFluent_unstable","useFluent","isHTMLElement","useMessageBarReflow","enabled","targetDocument","forceUpdate","useReducer","reflowingRef","useRef","resizeObserverRef","prevInlineSizeRef","handleResize","useCallback","entries","process","env","NODE_ENV","length","console","error","join","entry","borderBoxSize","inlineSize","target","nextReflowing","current","scrollWidth","ref","el","defaultView","disconnect","win","resizeObserver","ResizeObserver","observe","box","useEffect","reflowing"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAClF,SAASC,aAAa,QAAQ,4BAA4B;AAE1D,OAAO,SAASC,oBAAoBC,UAAmB,KAAK;IAC1D,MAAM,EAAEC,cAAc,EAAE,GAAGJ;IAC3B,MAAMK,cAAcP,MAAMQ,UAAU,CAAC,IAAO,CAAA,CAAC,CAAA,GAAI,CAAC,EAAE,CAAC,EAAE;IACvD,MAAMC,eAAeT,MAAMU,MAAM,CAAC;IAClC,MAAMC,oBAAoBX,MAAMU,MAAM,CAAwB;IAC9D,MAAME,oBAAoBZ,MAAMU,MAAM,CAAC,CAAC;IAExC,MAAMG,eAAuCb,MAAMc,WAAW,CAC5DC,CAAAA;QACE,uFAAuF;QACvF,wEAAwE;QACxE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAAgBH,QAAQI,MAAM,GAAG,GAAG;YAC/D,sCAAsC;YACtCC,QAAQC,KAAK,CACX;gBACE;gBACA;gBACA;aACD,CAACC,IAAI,CAAC;QAEX;QAEA,MAAMC,QAAQR,OAAO,CAAC,EAAE;QACxB,MAAMS,gBAAgBD,kBAAAA,4BAAAA,MAAOC,aAAa,CAAC,EAAE;QAC7C,IAAI,CAACA,iBAAiB,CAACD,OAAO;YAC5B;QACF;QAEA,MAAM,EAAEE,UAAU,EAAE,GAAGD;QACvB,MAAM,EAAEE,MAAM,EAAE,GAAGH;QAEnB,IAAI,CAACpB,cAAcuB,SAAS;YAC1B;QACF;QAEA,IAAIC;QAEJ,uEAAuE;QACvE,yEAAyE;QACzE,iHAAiH;QACjH,IAAIlB,aAAamB,OAAO,EAAE;YACxB,IAAIhB,kBAAkBgB,OAAO,GAAGH,YAAY;gBAC1CE,gBAAgB;YAClB;QACF,OAAO;YACL,MAAME,cAAcH,OAAOG,WAAW;YACtC,IAAIJ,aAAaI,aAAa;gBAC5BF,gBAAgB;YAClB;QACF;QAEAf,kBAAkBgB,OAAO,GAAGH;QAC5B,IAAI,OAAOE,kBAAkB,eAAelB,aAAamB,OAAO,KAAKD,eAAe;YAClFlB,aAAamB,OAAO,GAAGD;YACvBpB;QACF;IACF,GACA;QAACA;KAAY;IAGf,MAAMuB,MAAM9B,MAAMc,WAAW,CAC3B,CAACiB;YAKCpB;QAJA,IAAI,CAACN,WAAW,CAAC0B,MAAM,EAACzB,2BAAAA,qCAAAA,eAAgB0B,WAAW,GAAE;YACnD;QACF;SAEArB,6BAAAA,kBAAkBiB,OAAO,cAAzBjB,iDAAAA,2BAA2BsB,UAAU;QAErC,MAAMC,MAAM5B,eAAe0B,WAAW;QACtC,MAAMG,iBAAiB,IAAID,IAAIE,cAAc,CAACvB;QAC9CF,kBAAkBiB,OAAO,GAAGO;QAC5BA,eAAeE,OAAO,CAACN,IAAI;YAAEO,KAAK;QAAa;IACjD,GACA;QAAChC;QAAgBO;QAAcR;KAAQ;IAGzCL,MAAMuC,SAAS,CAAC;QACd,OAAO;gBACL5B;aAAAA,6BAAAA,kBAAkBiB,OAAO,cAAzBjB,iDAAAA,2BAA2BsB,UAAU;QACvC;IACF,GAAG,EAAE;IAEL,OAAO;QAAEH;QAAKU,WAAW/B,aAAamB,OAAO;IAAC;AAChD"}
1
+ {"version":3,"sources":["useMessageBarReflow.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { isHTMLElement } from '@fluentui/react-utilities';\n\nexport function useMessageBarReflow(enabled: boolean = false) {\n const { targetDocument } = useFluent();\n const forceUpdate = React.useReducer(() => ({}), {})[1];\n const reflowingRef = React.useRef(false);\n // TODO: exclude types from this lint rule: https://github.com/microsoft/fluentui/issues/31286\n // eslint-disable-next-line no-restricted-globals\n const resizeObserverRef = React.useRef<ResizeObserver | null>(null);\n const prevInlineSizeRef = React.useRef(-1);\n\n const handleResize: ResizeObserverCallback = React.useCallback(\n entries => {\n // Resize observer is only owned by this component - one resize observer entry expected\n // No need to support multiple fragments - one border box entry expected\n if (process.env.NODE_ENV !== 'production' && entries.length > 1) {\n // eslint-disable-next-line no-console\n console.error(\n [\n 'useMessageBarReflow: Resize observer should only have one entry. ',\n 'If multiple entries are observed, the first entry will be used.',\n 'This is a bug, please report it to the Fluent UI team.',\n ].join(' '),\n );\n }\n\n const entry = entries[0];\n const borderBoxSize = entry?.borderBoxSize[0];\n if (!borderBoxSize || !entry) {\n return;\n }\n\n const { inlineSize } = borderBoxSize;\n const { target } = entry;\n\n if (!isHTMLElement(target)) {\n return;\n }\n\n let nextReflowing: boolean | undefined;\n\n // No easy way to really determine when the single line layout will fit\n // Just keep try to set single line layout as long as the size is growing\n // Will cause flickering when size is being adjusted gradually (i.e. drag) - but this should not be a common case\n if (reflowingRef.current) {\n if (prevInlineSizeRef.current < inlineSize) {\n nextReflowing = false;\n }\n } else {\n const scrollWidth = target.scrollWidth;\n if (inlineSize < scrollWidth) {\n nextReflowing = true;\n }\n }\n\n prevInlineSizeRef.current = inlineSize;\n if (typeof nextReflowing !== 'undefined' && reflowingRef.current !== nextReflowing) {\n reflowingRef.current = nextReflowing;\n forceUpdate();\n }\n },\n [forceUpdate],\n );\n\n const ref = React.useCallback(\n (el: HTMLElement | null) => {\n if (!enabled || !el || !targetDocument?.defaultView) {\n return;\n }\n\n resizeObserverRef.current?.disconnect();\n\n const win = targetDocument.defaultView;\n const resizeObserver = new win.ResizeObserver(handleResize);\n resizeObserverRef.current = resizeObserver;\n resizeObserver.observe(el, { box: 'border-box' });\n },\n [targetDocument, handleResize, enabled],\n );\n\n React.useEffect(() => {\n return () => {\n resizeObserverRef.current?.disconnect();\n };\n }, []);\n\n return { ref, reflowing: reflowingRef.current };\n}\n"],"names":["React","useFluent_unstable","useFluent","isHTMLElement","useMessageBarReflow","enabled","targetDocument","forceUpdate","useReducer","reflowingRef","useRef","resizeObserverRef","prevInlineSizeRef","handleResize","useCallback","entries","process","env","NODE_ENV","length","console","error","join","entry","borderBoxSize","inlineSize","target","nextReflowing","current","scrollWidth","ref","el","defaultView","disconnect","win","resizeObserver","ResizeObserver","observe","box","useEffect","reflowing"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAClF,SAASC,aAAa,QAAQ,4BAA4B;AAE1D,OAAO,SAASC,oBAAoBC,UAAmB,KAAK;IAC1D,MAAM,EAAEC,cAAc,EAAE,GAAGJ;IAC3B,MAAMK,cAAcP,MAAMQ,UAAU,CAAC,IAAO,CAAA,CAAC,CAAA,GAAI,CAAC,EAAE,CAAC,EAAE;IACvD,MAAMC,eAAeT,MAAMU,MAAM,CAAC;IAClC,8FAA8F;IAC9F,iDAAiD;IACjD,MAAMC,oBAAoBX,MAAMU,MAAM,CAAwB;IAC9D,MAAME,oBAAoBZ,MAAMU,MAAM,CAAC,CAAC;IAExC,MAAMG,eAAuCb,MAAMc,WAAW,CAC5DC,CAAAA;QACE,uFAAuF;QACvF,wEAAwE;QACxE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAAgBH,QAAQI,MAAM,GAAG,GAAG;YAC/D,sCAAsC;YACtCC,QAAQC,KAAK,CACX;gBACE;gBACA;gBACA;aACD,CAACC,IAAI,CAAC;QAEX;QAEA,MAAMC,QAAQR,OAAO,CAAC,EAAE;QACxB,MAAMS,gBAAgBD,kBAAAA,4BAAAA,MAAOC,aAAa,CAAC,EAAE;QAC7C,IAAI,CAACA,iBAAiB,CAACD,OAAO;YAC5B;QACF;QAEA,MAAM,EAAEE,UAAU,EAAE,GAAGD;QACvB,MAAM,EAAEE,MAAM,EAAE,GAAGH;QAEnB,IAAI,CAACpB,cAAcuB,SAAS;YAC1B;QACF;QAEA,IAAIC;QAEJ,uEAAuE;QACvE,yEAAyE;QACzE,iHAAiH;QACjH,IAAIlB,aAAamB,OAAO,EAAE;YACxB,IAAIhB,kBAAkBgB,OAAO,GAAGH,YAAY;gBAC1CE,gBAAgB;YAClB;QACF,OAAO;YACL,MAAME,cAAcH,OAAOG,WAAW;YACtC,IAAIJ,aAAaI,aAAa;gBAC5BF,gBAAgB;YAClB;QACF;QAEAf,kBAAkBgB,OAAO,GAAGH;QAC5B,IAAI,OAAOE,kBAAkB,eAAelB,aAAamB,OAAO,KAAKD,eAAe;YAClFlB,aAAamB,OAAO,GAAGD;YACvBpB;QACF;IACF,GACA;QAACA;KAAY;IAGf,MAAMuB,MAAM9B,MAAMc,WAAW,CAC3B,CAACiB;YAKCpB;QAJA,IAAI,CAACN,WAAW,CAAC0B,MAAM,EAACzB,2BAAAA,qCAAAA,eAAgB0B,WAAW,GAAE;YACnD;QACF;SAEArB,6BAAAA,kBAAkBiB,OAAO,cAAzBjB,iDAAAA,2BAA2BsB,UAAU;QAErC,MAAMC,MAAM5B,eAAe0B,WAAW;QACtC,MAAMG,iBAAiB,IAAID,IAAIE,cAAc,CAACvB;QAC9CF,kBAAkBiB,OAAO,GAAGO;QAC5BA,eAAeE,OAAO,CAACN,IAAI;YAAEO,KAAK;QAAa;IACjD,GACA;QAAChC;QAAgBO;QAAcR;KAAQ;IAGzCL,MAAMuC,SAAS,CAAC;QACd,OAAO;gBACL5B;aAAAA,6BAAAA,kBAAkBiB,OAAO,cAAzBjB,iDAAAA,2BAA2BsB,UAAU;QACvC;IACF,GAAG,EAAE;IAEL,OAAO;QAAEH;QAAKU,WAAW/B,aAAamB,OAAO;IAAC;AAChD"}
@@ -16,6 +16,8 @@ function useMessageBarReflow(enabled = false) {
16
16
  const { targetDocument } = (0, _reactsharedcontexts.useFluent_unstable)();
17
17
  const forceUpdate = _react.useReducer(()=>({}), {})[1];
18
18
  const reflowingRef = _react.useRef(false);
19
+ // TODO: exclude types from this lint rule: https://github.com/microsoft/fluentui/issues/31286
20
+ // eslint-disable-next-line no-restricted-globals
19
21
  const resizeObserverRef = _react.useRef(null);
20
22
  const prevInlineSizeRef = _react.useRef(-1);
21
23
  const handleResize = _react.useCallback((entries)=>{
@@ -1 +1 @@
1
- {"version":3,"sources":["useMessageBarReflow.js"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { isHTMLElement } from '@fluentui/react-utilities';\nexport function useMessageBarReflow(enabled = false) {\n const { targetDocument } = useFluent();\n const forceUpdate = React.useReducer(()=>({}), {})[1];\n const reflowingRef = React.useRef(false);\n const resizeObserverRef = React.useRef(null);\n const prevInlineSizeRef = React.useRef(-1);\n const handleResize = React.useCallback((entries)=>{\n // Resize observer is only owned by this component - one resize observer entry expected\n // No need to support multiple fragments - one border box entry expected\n if (process.env.NODE_ENV !== 'production' && entries.length > 1) {\n // eslint-disable-next-line no-console\n console.error([\n 'useMessageBarReflow: Resize observer should only have one entry. ',\n 'If multiple entries are observed, the first entry will be used.',\n 'This is a bug, please report it to the Fluent UI team.'\n ].join(' '));\n }\n const entry = entries[0];\n const borderBoxSize = entry === null || entry === void 0 ? void 0 : entry.borderBoxSize[0];\n if (!borderBoxSize || !entry) {\n return;\n }\n const { inlineSize } = borderBoxSize;\n const { target } = entry;\n if (!isHTMLElement(target)) {\n return;\n }\n let nextReflowing;\n // No easy way to really determine when the single line layout will fit\n // Just keep try to set single line layout as long as the size is growing\n // Will cause flickering when size is being adjusted gradually (i.e. drag) - but this should not be a common case\n if (reflowingRef.current) {\n if (prevInlineSizeRef.current < inlineSize) {\n nextReflowing = false;\n }\n } else {\n const scrollWidth = target.scrollWidth;\n if (inlineSize < scrollWidth) {\n nextReflowing = true;\n }\n }\n prevInlineSizeRef.current = inlineSize;\n if (typeof nextReflowing !== 'undefined' && reflowingRef.current !== nextReflowing) {\n reflowingRef.current = nextReflowing;\n forceUpdate();\n }\n }, [\n forceUpdate\n ]);\n const ref = React.useCallback((el)=>{\n var _resizeObserverRef_current;\n if (!enabled || !el || !(targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView)) {\n return;\n }\n (_resizeObserverRef_current = resizeObserverRef.current) === null || _resizeObserverRef_current === void 0 ? void 0 : _resizeObserverRef_current.disconnect();\n const win = targetDocument.defaultView;\n const resizeObserver = new win.ResizeObserver(handleResize);\n resizeObserverRef.current = resizeObserver;\n resizeObserver.observe(el, {\n box: 'border-box'\n });\n }, [\n targetDocument,\n handleResize,\n enabled\n ]);\n React.useEffect(()=>{\n return ()=>{\n var _resizeObserverRef_current;\n (_resizeObserverRef_current = resizeObserverRef.current) === null || _resizeObserverRef_current === void 0 ? void 0 : _resizeObserverRef_current.disconnect();\n };\n }, []);\n return {\n ref,\n reflowing: reflowingRef.current\n };\n}\n"],"names":["useMessageBarReflow","enabled","targetDocument","useFluent","forceUpdate","React","useReducer","reflowingRef","useRef","resizeObserverRef","prevInlineSizeRef","handleResize","useCallback","entries","process","env","NODE_ENV","length","console","error","join","entry","borderBoxSize","inlineSize","target","isHTMLElement","nextReflowing","current","scrollWidth","ref","el","_resizeObserverRef_current","defaultView","disconnect","win","resizeObserver","ResizeObserver","observe","box","useEffect","reflowing"],"mappings":";;;;+BAGgBA;;;eAAAA;;;;iEAHO;qCACyB;gCAClB;AACvB,SAASA,oBAAoBC,UAAU,KAAK;IAC/C,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAS;IACpC,MAAMC,cAAcC,OAAMC,UAAU,CAAC,IAAK,CAAA,CAAC,CAAA,GAAI,CAAC,EAAE,CAAC,EAAE;IACrD,MAAMC,eAAeF,OAAMG,MAAM,CAAC;IAClC,MAAMC,oBAAoBJ,OAAMG,MAAM,CAAC;IACvC,MAAME,oBAAoBL,OAAMG,MAAM,CAAC,CAAC;IACxC,MAAMG,eAAeN,OAAMO,WAAW,CAAC,CAACC;QACpC,uFAAuF;QACvF,wEAAwE;QACxE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAAgBH,QAAQI,MAAM,GAAG,GAAG;YAC7D,sCAAsC;YACtCC,QAAQC,KAAK,CAAC;gBACV;gBACA;gBACA;aACH,CAACC,IAAI,CAAC;QACX;QACA,MAAMC,QAAQR,OAAO,CAAC,EAAE;QACxB,MAAMS,gBAAgBD,UAAU,QAAQA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMC,aAAa,CAAC,EAAE;QAC1F,IAAI,CAACA,iBAAiB,CAACD,OAAO;YAC1B;QACJ;QACA,MAAM,EAAEE,UAAU,EAAE,GAAGD;QACvB,MAAM,EAAEE,MAAM,EAAE,GAAGH;QACnB,IAAI,CAACI,IAAAA,6BAAa,EAACD,SAAS;YACxB;QACJ;QACA,IAAIE;QACJ,uEAAuE;QACvE,yEAAyE;QACzE,iHAAiH;QACjH,IAAInB,aAAaoB,OAAO,EAAE;YACtB,IAAIjB,kBAAkBiB,OAAO,GAAGJ,YAAY;gBACxCG,gBAAgB;YACpB;QACJ,OAAO;YACH,MAAME,cAAcJ,OAAOI,WAAW;YACtC,IAAIL,aAAaK,aAAa;gBAC1BF,gBAAgB;YACpB;QACJ;QACAhB,kBAAkBiB,OAAO,GAAGJ;QAC5B,IAAI,OAAOG,kBAAkB,eAAenB,aAAaoB,OAAO,KAAKD,eAAe;YAChFnB,aAAaoB,OAAO,GAAGD;YACvBtB;QACJ;IACJ,GAAG;QACCA;KACH;IACD,MAAMyB,MAAMxB,OAAMO,WAAW,CAAC,CAACkB;QAC3B,IAAIC;QACJ,IAAI,CAAC9B,WAAW,CAAC6B,MAAM,CAAE5B,CAAAA,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAe8B,WAAW,AAAD,GAAI;YAClH;QACJ;QACCD,CAAAA,6BAA6BtB,kBAAkBkB,OAAO,AAAD,MAAO,QAAQI,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BE,UAAU;QAC3J,MAAMC,MAAMhC,eAAe8B,WAAW;QACtC,MAAMG,iBAAiB,IAAID,IAAIE,cAAc,CAACzB;QAC9CF,kBAAkBkB,OAAO,GAAGQ;QAC5BA,eAAeE,OAAO,CAACP,IAAI;YACvBQ,KAAK;QACT;IACJ,GAAG;QACCpC;QACAS;QACAV;KACH;IACDI,OAAMkC,SAAS,CAAC;QACZ,OAAO;YACH,IAAIR;YACHA,CAAAA,6BAA6BtB,kBAAkBkB,OAAO,AAAD,MAAO,QAAQI,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BE,UAAU;QAC/J;IACJ,GAAG,EAAE;IACL,OAAO;QACHJ;QACAW,WAAWjC,aAAaoB,OAAO;IACnC;AACJ"}
1
+ {"version":3,"sources":["useMessageBarReflow.js"],"sourcesContent":["import * as React from 'react';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { isHTMLElement } from '@fluentui/react-utilities';\nexport function useMessageBarReflow(enabled = false) {\n const { targetDocument } = useFluent();\n const forceUpdate = React.useReducer(()=>({}), {})[1];\n const reflowingRef = React.useRef(false);\n // TODO: exclude types from this lint rule: https://github.com/microsoft/fluentui/issues/31286\n // eslint-disable-next-line no-restricted-globals\n const resizeObserverRef = React.useRef(null);\n const prevInlineSizeRef = React.useRef(-1);\n const handleResize = React.useCallback((entries)=>{\n // Resize observer is only owned by this component - one resize observer entry expected\n // No need to support multiple fragments - one border box entry expected\n if (process.env.NODE_ENV !== 'production' && entries.length > 1) {\n // eslint-disable-next-line no-console\n console.error([\n 'useMessageBarReflow: Resize observer should only have one entry. ',\n 'If multiple entries are observed, the first entry will be used.',\n 'This is a bug, please report it to the Fluent UI team.'\n ].join(' '));\n }\n const entry = entries[0];\n const borderBoxSize = entry === null || entry === void 0 ? void 0 : entry.borderBoxSize[0];\n if (!borderBoxSize || !entry) {\n return;\n }\n const { inlineSize } = borderBoxSize;\n const { target } = entry;\n if (!isHTMLElement(target)) {\n return;\n }\n let nextReflowing;\n // No easy way to really determine when the single line layout will fit\n // Just keep try to set single line layout as long as the size is growing\n // Will cause flickering when size is being adjusted gradually (i.e. drag) - but this should not be a common case\n if (reflowingRef.current) {\n if (prevInlineSizeRef.current < inlineSize) {\n nextReflowing = false;\n }\n } else {\n const scrollWidth = target.scrollWidth;\n if (inlineSize < scrollWidth) {\n nextReflowing = true;\n }\n }\n prevInlineSizeRef.current = inlineSize;\n if (typeof nextReflowing !== 'undefined' && reflowingRef.current !== nextReflowing) {\n reflowingRef.current = nextReflowing;\n forceUpdate();\n }\n }, [\n forceUpdate\n ]);\n const ref = React.useCallback((el)=>{\n var _resizeObserverRef_current;\n if (!enabled || !el || !(targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView)) {\n return;\n }\n (_resizeObserverRef_current = resizeObserverRef.current) === null || _resizeObserverRef_current === void 0 ? void 0 : _resizeObserverRef_current.disconnect();\n const win = targetDocument.defaultView;\n const resizeObserver = new win.ResizeObserver(handleResize);\n resizeObserverRef.current = resizeObserver;\n resizeObserver.observe(el, {\n box: 'border-box'\n });\n }, [\n targetDocument,\n handleResize,\n enabled\n ]);\n React.useEffect(()=>{\n return ()=>{\n var _resizeObserverRef_current;\n (_resizeObserverRef_current = resizeObserverRef.current) === null || _resizeObserverRef_current === void 0 ? void 0 : _resizeObserverRef_current.disconnect();\n };\n }, []);\n return {\n ref,\n reflowing: reflowingRef.current\n };\n}\n"],"names":["useMessageBarReflow","enabled","targetDocument","useFluent","forceUpdate","React","useReducer","reflowingRef","useRef","resizeObserverRef","prevInlineSizeRef","handleResize","useCallback","entries","process","env","NODE_ENV","length","console","error","join","entry","borderBoxSize","inlineSize","target","isHTMLElement","nextReflowing","current","scrollWidth","ref","el","_resizeObserverRef_current","defaultView","disconnect","win","resizeObserver","ResizeObserver","observe","box","useEffect","reflowing"],"mappings":";;;;+BAGgBA;;;eAAAA;;;;iEAHO;qCACyB;gCAClB;AACvB,SAASA,oBAAoBC,UAAU,KAAK;IAC/C,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAS;IACpC,MAAMC,cAAcC,OAAMC,UAAU,CAAC,IAAK,CAAA,CAAC,CAAA,GAAI,CAAC,EAAE,CAAC,EAAE;IACrD,MAAMC,eAAeF,OAAMG,MAAM,CAAC;IAClC,8FAA8F;IAC9F,iDAAiD;IACjD,MAAMC,oBAAoBJ,OAAMG,MAAM,CAAC;IACvC,MAAME,oBAAoBL,OAAMG,MAAM,CAAC,CAAC;IACxC,MAAMG,eAAeN,OAAMO,WAAW,CAAC,CAACC;QACpC,uFAAuF;QACvF,wEAAwE;QACxE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,gBAAgBH,QAAQI,MAAM,GAAG,GAAG;YAC7D,sCAAsC;YACtCC,QAAQC,KAAK,CAAC;gBACV;gBACA;gBACA;aACH,CAACC,IAAI,CAAC;QACX;QACA,MAAMC,QAAQR,OAAO,CAAC,EAAE;QACxB,MAAMS,gBAAgBD,UAAU,QAAQA,UAAU,KAAK,IAAI,KAAK,IAAIA,MAAMC,aAAa,CAAC,EAAE;QAC1F,IAAI,CAACA,iBAAiB,CAACD,OAAO;YAC1B;QACJ;QACA,MAAM,EAAEE,UAAU,EAAE,GAAGD;QACvB,MAAM,EAAEE,MAAM,EAAE,GAAGH;QACnB,IAAI,CAACI,IAAAA,6BAAa,EAACD,SAAS;YACxB;QACJ;QACA,IAAIE;QACJ,uEAAuE;QACvE,yEAAyE;QACzE,iHAAiH;QACjH,IAAInB,aAAaoB,OAAO,EAAE;YACtB,IAAIjB,kBAAkBiB,OAAO,GAAGJ,YAAY;gBACxCG,gBAAgB;YACpB;QACJ,OAAO;YACH,MAAME,cAAcJ,OAAOI,WAAW;YACtC,IAAIL,aAAaK,aAAa;gBAC1BF,gBAAgB;YACpB;QACJ;QACAhB,kBAAkBiB,OAAO,GAAGJ;QAC5B,IAAI,OAAOG,kBAAkB,eAAenB,aAAaoB,OAAO,KAAKD,eAAe;YAChFnB,aAAaoB,OAAO,GAAGD;YACvBtB;QACJ;IACJ,GAAG;QACCA;KACH;IACD,MAAMyB,MAAMxB,OAAMO,WAAW,CAAC,CAACkB;QAC3B,IAAIC;QACJ,IAAI,CAAC9B,WAAW,CAAC6B,MAAM,CAAE5B,CAAAA,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK,IAAIA,eAAe8B,WAAW,AAAD,GAAI;YAClH;QACJ;QACCD,CAAAA,6BAA6BtB,kBAAkBkB,OAAO,AAAD,MAAO,QAAQI,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BE,UAAU;QAC3J,MAAMC,MAAMhC,eAAe8B,WAAW;QACtC,MAAMG,iBAAiB,IAAID,IAAIE,cAAc,CAACzB;QAC9CF,kBAAkBkB,OAAO,GAAGQ;QAC5BA,eAAeE,OAAO,CAACP,IAAI;YACvBQ,KAAK;QACT;IACJ,GAAG;QACCpC;QACAS;QACAV;KACH;IACDI,OAAMkC,SAAS,CAAC;QACZ,OAAO;YACH,IAAIR;YACHA,CAAAA,6BAA6BtB,kBAAkBkB,OAAO,AAAD,MAAO,QAAQI,+BAA+B,KAAK,IAAI,KAAK,IAAIA,2BAA2BE,UAAU;QAC/J;IACJ,GAAG,EAAE;IACL,OAAO;QACHJ;QACAW,WAAWjC,aAAaoB,OAAO;IACnC;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-message-bar",
3
- "version": "9.2.1",
3
+ "version": "9.2.2",
4
4
  "description": "Fluent UI MessageBar component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,10 +18,9 @@
18
18
  "generate-api": "just-scripts generate-api",
19
19
  "lint": "just-scripts lint",
20
20
  "start": "yarn storybook",
21
- "storybook": "start-storybook",
21
+ "storybook": "yarn --cwd ../stories storybook",
22
22
  "test": "jest --passWithNoTests",
23
- "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
24
- "type-check": "tsc -b tsconfig.json"
23
+ "type-check": "just-scripts type-check"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@fluentui/eslint-plugin": "*",
@@ -31,12 +30,12 @@
31
30
  "@fluentui/scripts-tasks": "*"
32
31
  },
33
32
  "dependencies": {
34
- "@fluentui/react-button": "^9.3.82",
33
+ "@fluentui/react-button": "^9.3.83",
35
34
  "@fluentui/react-icons": "^2.0.239",
36
- "@fluentui/react-jsx-runtime": "^9.0.38",
35
+ "@fluentui/react-jsx-runtime": "^9.0.39",
37
36
  "@fluentui/react-shared-contexts": "^9.19.0",
38
37
  "@fluentui/react-theme": "^9.1.19",
39
- "@fluentui/react-utilities": "^9.18.9",
38
+ "@fluentui/react-utilities": "^9.18.10",
40
39
  "@griffel/react": "^1.5.22",
41
40
  "@swc/helpers": "^0.5.1",
42
41
  "react-transition-group": "^4.4.1"