@fluentui/react-toast 0.0.0-nightly-20240610-0945.1 → 0.0.0-nightly-20240611-0405.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -80
- package/lib/components/ToastContainer/useToastContainer.js +1 -1
- package/lib/components/ToastContainer/useToastContainer.js.map +1 -1
- package/lib-commonjs/components/ToastContainer/useToastContainer.js +1 -1
- package/lib-commonjs/components/ToastContainer/useToastContainer.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-toast
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 11 Jun 2024 04:26:59 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-nightly-
|
|
7
|
+
## [0.0.0-nightly-20240611-0405.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v0.0.0-nightly-20240611-0405.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.45..@fluentui/react-toast_v0.0.0-nightly-
|
|
9
|
+
Tue, 11 Jun 2024 04:26:59 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.45..@fluentui/react-toast_v0.0.0-nightly-20240611-0405.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
15
|
-
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-
|
|
16
|
-
- Bump @fluentui/react-aria to v0.0.0-nightly-
|
|
17
|
-
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-
|
|
18
|
-
- Bump @fluentui/react-motion to v0.0.0-nightly-
|
|
19
|
-
- Bump @fluentui/react-portal to v0.0.0-nightly-
|
|
20
|
-
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-
|
|
21
|
-
- Bump @fluentui/react-tabster to v0.0.0-nightly-
|
|
22
|
-
- Bump @fluentui/react-theme to v0.0.0-nightly-
|
|
23
|
-
- Bump @fluentui/react-utilities to v0.0.0-nightly-
|
|
24
|
-
- Bump @fluentui/react-
|
|
25
|
-
- Bump @fluentui/react-conformance
|
|
15
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
16
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
17
|
+
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
18
|
+
- Bump @fluentui/react-motion to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
19
|
+
- Bump @fluentui/react-portal to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
20
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
21
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
22
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
23
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
24
|
+
- Bump @fluentui/react-provider to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
25
|
+
- Bump @fluentui/react-conformance to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
26
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20240611-0405.1 ([commit](https://github.com/microsoft/fluentui/commit/4ef532d4ea602209862433c87282ba8a014e7cc7) by beachball)
|
|
26
27
|
|
|
27
28
|
## [9.3.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.45)
|
|
28
29
|
|
|
@@ -44,7 +45,7 @@ Thu, 06 Jun 2024 15:26:41 GMT
|
|
|
44
45
|
|
|
45
46
|
## [9.3.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.44)
|
|
46
47
|
|
|
47
|
-
Thu, 23 May 2024 08:02:51 GMT
|
|
48
|
+
Thu, 23 May 2024 08:02:51 GMT
|
|
48
49
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.43..@fluentui/react-toast_v9.3.44)
|
|
49
50
|
|
|
50
51
|
### Patches
|
|
@@ -56,7 +57,7 @@ Thu, 23 May 2024 08:02:51 GMT
|
|
|
56
57
|
|
|
57
58
|
## [9.3.43](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.43)
|
|
58
59
|
|
|
59
|
-
Mon, 20 May 2024 12:45:07 GMT
|
|
60
|
+
Mon, 20 May 2024 12:45:07 GMT
|
|
60
61
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.42..@fluentui/react-toast_v9.3.43)
|
|
61
62
|
|
|
62
63
|
### Patches
|
|
@@ -71,16 +72,16 @@ Mon, 20 May 2024 12:45:07 GMT
|
|
|
71
72
|
|
|
72
73
|
## [9.3.42](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.42)
|
|
73
74
|
|
|
74
|
-
Thu, 16 May 2024 09:25:20 GMT
|
|
75
|
+
Thu, 16 May 2024 09:25:20 GMT
|
|
75
76
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.41..@fluentui/react-toast_v9.3.42)
|
|
76
77
|
|
|
77
78
|
### Patches
|
|
78
79
|
|
|
79
|
-
-
|
|
80
|
+
- 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)
|
|
80
81
|
|
|
81
82
|
## [9.3.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.41)
|
|
82
83
|
|
|
83
|
-
Thu, 09 May 2024 19:35:12 GMT
|
|
84
|
+
Thu, 09 May 2024 19:35:12 GMT
|
|
84
85
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.40..@fluentui/react-toast_v9.3.41)
|
|
85
86
|
|
|
86
87
|
### Patches
|
|
@@ -91,7 +92,7 @@ Thu, 09 May 2024 19:35:12 GMT
|
|
|
91
92
|
|
|
92
93
|
## [9.3.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.40)
|
|
93
94
|
|
|
94
|
-
Mon, 06 May 2024 12:55:02 GMT
|
|
95
|
+
Mon, 06 May 2024 12:55:02 GMT
|
|
95
96
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.39..@fluentui/react-toast_v9.3.40)
|
|
96
97
|
|
|
97
98
|
### Patches
|
|
@@ -105,21 +106,21 @@ Mon, 06 May 2024 12:55:02 GMT
|
|
|
105
106
|
|
|
106
107
|
## [9.3.39](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.39)
|
|
107
108
|
|
|
108
|
-
Thu, 02 May 2024 11:36:42 GMT
|
|
109
|
+
Thu, 02 May 2024 11:36:42 GMT
|
|
109
110
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.38..@fluentui/react-toast_v9.3.39)
|
|
110
111
|
|
|
111
112
|
### Patches
|
|
112
113
|
|
|
113
114
|
- refactor: use timeout and animation frame utilities ([PR #31168](https://github.com/microsoft/fluentui/pull/31168) by lingfangao@hotmail.com)
|
|
114
115
|
- fix: use "key" properly in ToastContainer ([PR #31104](https://github.com/microsoft/fluentui/pull/31104) by olfedias@microsoft.com)
|
|
115
|
-
-
|
|
116
|
+
- chore: upgrade @fluentui/react-icons to 2.0.237. ([PR #31139](https://github.com/microsoft/fluentui/pull/31139) by ololubek@microsoft.com)
|
|
116
117
|
- Bump @fluentui/react-aria to v9.11.0 ([PR #31231](https://github.com/microsoft/fluentui/pull/31231) by beachball)
|
|
117
118
|
- Bump @fluentui/react-portal to v9.4.22 ([PR #31231](https://github.com/microsoft/fluentui/pull/31231) by beachball)
|
|
118
119
|
- Bump @fluentui/react-tabster to v9.21.0 ([PR #31231](https://github.com/microsoft/fluentui/pull/31231) by beachball)
|
|
119
120
|
|
|
120
121
|
## [9.3.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.38)
|
|
121
122
|
|
|
122
|
-
Tue, 23 Apr 2024 08:17:49 GMT
|
|
123
|
+
Tue, 23 Apr 2024 08:17:49 GMT
|
|
123
124
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.37..@fluentui/react-toast_v9.3.38)
|
|
124
125
|
|
|
125
126
|
### Patches
|
|
@@ -133,12 +134,12 @@ Tue, 23 Apr 2024 08:17:49 GMT
|
|
|
133
134
|
|
|
134
135
|
## [9.3.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.37)
|
|
135
136
|
|
|
136
|
-
Wed, 17 Apr 2024 21:54:05 GMT
|
|
137
|
+
Wed, 17 Apr 2024 21:54:05 GMT
|
|
137
138
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.36..@fluentui/react-toast_v9.3.37)
|
|
138
139
|
|
|
139
140
|
### Patches
|
|
140
141
|
|
|
141
|
-
- chore: refactor styles defined in makeResetStyles() to avoid shorthands
|
|
142
|
+
- chore: refactor styles defined in makeResetStyles() to avoid shorthands.\*() ([PR #30996](https://github.com/microsoft/fluentui/pull/30996) by olfedias@microsoft.com)
|
|
142
143
|
- chore: Update react-icons to 2.0.235 ([PR #31011](https://github.com/microsoft/fluentui/pull/31011) by ololubek@microsoft.com)
|
|
143
144
|
- Bump @fluentui/react-aria to v9.10.4 ([PR #31100](https://github.com/microsoft/fluentui/pull/31100) by beachball)
|
|
144
145
|
- Bump @fluentui/react-portal to v9.4.20 ([PR #31100](https://github.com/microsoft/fluentui/pull/31100) by beachball)
|
|
@@ -146,7 +147,7 @@ Wed, 17 Apr 2024 21:54:05 GMT
|
|
|
146
147
|
|
|
147
148
|
## [9.3.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.36)
|
|
148
149
|
|
|
149
|
-
Tue, 02 Apr 2024 09:48:01 GMT
|
|
150
|
+
Tue, 02 Apr 2024 09:48:01 GMT
|
|
150
151
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.35..@fluentui/react-toast_v9.3.36)
|
|
151
152
|
|
|
152
153
|
### Patches
|
|
@@ -160,7 +161,7 @@ Tue, 02 Apr 2024 09:48:01 GMT
|
|
|
160
161
|
|
|
161
162
|
## [9.3.35](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.35)
|
|
162
163
|
|
|
163
|
-
Mon, 18 Mar 2024 19:50:46 GMT
|
|
164
|
+
Mon, 18 Mar 2024 19:50:46 GMT
|
|
164
165
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.34..@fluentui/react-toast_v9.3.35)
|
|
165
166
|
|
|
166
167
|
### Patches
|
|
@@ -175,7 +176,7 @@ Mon, 18 Mar 2024 19:50:46 GMT
|
|
|
175
176
|
|
|
176
177
|
## [9.3.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.34)
|
|
177
178
|
|
|
178
|
-
Fri, 15 Mar 2024 21:43:49 GMT
|
|
179
|
+
Fri, 15 Mar 2024 21:43:49 GMT
|
|
179
180
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.33..@fluentui/react-toast_v9.3.34)
|
|
180
181
|
|
|
181
182
|
### Patches
|
|
@@ -190,7 +191,7 @@ Fri, 15 Mar 2024 21:43:49 GMT
|
|
|
190
191
|
|
|
191
192
|
## [9.3.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.33)
|
|
192
193
|
|
|
193
|
-
Thu, 07 Mar 2024 19:33:27 GMT
|
|
194
|
+
Thu, 07 Mar 2024 19:33:27 GMT
|
|
194
195
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.32..@fluentui/react-toast_v9.3.33)
|
|
195
196
|
|
|
196
197
|
### Patches
|
|
@@ -206,7 +207,7 @@ Thu, 07 Mar 2024 19:33:27 GMT
|
|
|
206
207
|
|
|
207
208
|
## [9.3.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.32)
|
|
208
209
|
|
|
209
|
-
Wed, 28 Feb 2024 02:34:19 GMT
|
|
210
|
+
Wed, 28 Feb 2024 02:34:19 GMT
|
|
210
211
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.31..@fluentui/react-toast_v9.3.32)
|
|
211
212
|
|
|
212
213
|
### Patches
|
|
@@ -220,7 +221,7 @@ Wed, 28 Feb 2024 02:34:19 GMT
|
|
|
220
221
|
|
|
221
222
|
## [9.3.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.31)
|
|
222
223
|
|
|
223
|
-
Tue, 20 Feb 2024 14:22:28 GMT
|
|
224
|
+
Tue, 20 Feb 2024 14:22:28 GMT
|
|
224
225
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.30..@fluentui/react-toast_v9.3.31)
|
|
225
226
|
|
|
226
227
|
### Patches
|
|
@@ -234,7 +235,7 @@ Tue, 20 Feb 2024 14:22:28 GMT
|
|
|
234
235
|
|
|
235
236
|
## [9.3.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.30)
|
|
236
237
|
|
|
237
|
-
Tue, 06 Feb 2024 17:55:21 GMT
|
|
238
|
+
Tue, 06 Feb 2024 17:55:21 GMT
|
|
238
239
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.29..@fluentui/react-toast_v9.3.30)
|
|
239
240
|
|
|
240
241
|
### Patches
|
|
@@ -245,7 +246,7 @@ Tue, 06 Feb 2024 17:55:21 GMT
|
|
|
245
246
|
|
|
246
247
|
## [9.3.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.29)
|
|
247
248
|
|
|
248
|
-
Tue, 30 Jan 2024 23:16:54 GMT
|
|
249
|
+
Tue, 30 Jan 2024 23:16:54 GMT
|
|
249
250
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.28..@fluentui/react-toast_v9.3.29)
|
|
250
251
|
|
|
251
252
|
### Patches
|
|
@@ -258,7 +259,7 @@ Tue, 30 Jan 2024 23:16:54 GMT
|
|
|
258
259
|
|
|
259
260
|
## [9.3.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.28)
|
|
260
261
|
|
|
261
|
-
Tue, 23 Jan 2024 15:11:00 GMT
|
|
262
|
+
Tue, 23 Jan 2024 15:11:00 GMT
|
|
262
263
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.27..@fluentui/react-toast_v9.3.28)
|
|
263
264
|
|
|
264
265
|
### Patches
|
|
@@ -271,7 +272,7 @@ Tue, 23 Jan 2024 15:11:00 GMT
|
|
|
271
272
|
|
|
272
273
|
## [9.3.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.27)
|
|
273
274
|
|
|
274
|
-
Thu, 18 Jan 2024 14:25:03 GMT
|
|
275
|
+
Thu, 18 Jan 2024 14:25:03 GMT
|
|
275
276
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.26..@fluentui/react-toast_v9.3.27)
|
|
276
277
|
|
|
277
278
|
### Patches
|
|
@@ -285,7 +286,7 @@ Thu, 18 Jan 2024 14:25:03 GMT
|
|
|
285
286
|
|
|
286
287
|
## [9.3.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.26)
|
|
287
288
|
|
|
288
|
-
Wed, 17 Jan 2024 16:18:50 GMT
|
|
289
|
+
Wed, 17 Jan 2024 16:18:50 GMT
|
|
289
290
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.25..@fluentui/react-toast_v9.3.26)
|
|
290
291
|
|
|
291
292
|
### Patches
|
|
@@ -298,7 +299,7 @@ Wed, 17 Jan 2024 16:18:50 GMT
|
|
|
298
299
|
|
|
299
300
|
## [9.3.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.25)
|
|
300
301
|
|
|
301
|
-
Tue, 16 Jan 2024 13:14:12 GMT
|
|
302
|
+
Tue, 16 Jan 2024 13:14:12 GMT
|
|
302
303
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.24..@fluentui/react-toast_v9.3.25)
|
|
303
304
|
|
|
304
305
|
### Patches
|
|
@@ -312,7 +313,7 @@ Tue, 16 Jan 2024 13:14:12 GMT
|
|
|
312
313
|
|
|
313
314
|
## [9.3.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.24)
|
|
314
315
|
|
|
315
|
-
Thu, 11 Jan 2024 09:04:29 GMT
|
|
316
|
+
Thu, 11 Jan 2024 09:04:29 GMT
|
|
316
317
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.23..@fluentui/react-toast_v9.3.24)
|
|
317
318
|
|
|
318
319
|
### Patches
|
|
@@ -321,7 +322,7 @@ Thu, 11 Jan 2024 09:04:29 GMT
|
|
|
321
322
|
|
|
322
323
|
## [9.3.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.23)
|
|
323
324
|
|
|
324
|
-
Mon, 08 Jan 2024 16:24:27 GMT
|
|
325
|
+
Mon, 08 Jan 2024 16:24:27 GMT
|
|
325
326
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.22..@fluentui/react-toast_v9.3.23)
|
|
326
327
|
|
|
327
328
|
### Patches
|
|
@@ -335,7 +336,7 @@ Mon, 08 Jan 2024 16:24:27 GMT
|
|
|
335
336
|
|
|
336
337
|
## [9.3.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.22)
|
|
337
338
|
|
|
338
|
-
Wed, 03 Jan 2024 09:26:44 GMT
|
|
339
|
+
Wed, 03 Jan 2024 09:26:44 GMT
|
|
339
340
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.21..@fluentui/react-toast_v9.3.22)
|
|
340
341
|
|
|
341
342
|
### Patches
|
|
@@ -348,7 +349,7 @@ Wed, 03 Jan 2024 09:26:44 GMT
|
|
|
348
349
|
|
|
349
350
|
## [9.3.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.21)
|
|
350
351
|
|
|
351
|
-
Mon, 18 Dec 2023 14:40:46 GMT
|
|
352
|
+
Mon, 18 Dec 2023 14:40:46 GMT
|
|
352
353
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.20..@fluentui/react-toast_v9.3.21)
|
|
353
354
|
|
|
354
355
|
### Patches
|
|
@@ -362,7 +363,7 @@ Mon, 18 Dec 2023 14:40:46 GMT
|
|
|
362
363
|
|
|
363
364
|
## [9.3.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.20)
|
|
364
365
|
|
|
365
|
-
Thu, 14 Dec 2023 09:58:46 GMT
|
|
366
|
+
Thu, 14 Dec 2023 09:58:46 GMT
|
|
366
367
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.19..@fluentui/react-toast_v9.3.20)
|
|
367
368
|
|
|
368
369
|
### Patches
|
|
@@ -376,7 +377,7 @@ Thu, 14 Dec 2023 09:58:46 GMT
|
|
|
376
377
|
|
|
377
378
|
## [9.3.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.19)
|
|
378
379
|
|
|
379
|
-
Thu, 30 Nov 2023 13:42:08 GMT
|
|
380
|
+
Thu, 30 Nov 2023 13:42:08 GMT
|
|
380
381
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.18..@fluentui/react-toast_v9.3.19)
|
|
381
382
|
|
|
382
383
|
### Patches
|
|
@@ -388,7 +389,7 @@ Thu, 30 Nov 2023 13:42:08 GMT
|
|
|
388
389
|
|
|
389
390
|
## [9.3.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.18)
|
|
390
391
|
|
|
391
|
-
Mon, 20 Nov 2023 09:55:10 GMT
|
|
392
|
+
Mon, 20 Nov 2023 09:55:10 GMT
|
|
392
393
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.17..@fluentui/react-toast_v9.3.18)
|
|
393
394
|
|
|
394
395
|
### Patches
|
|
@@ -399,7 +400,7 @@ Mon, 20 Nov 2023 09:55:10 GMT
|
|
|
399
400
|
|
|
400
401
|
## [9.3.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.17)
|
|
401
402
|
|
|
402
|
-
Tue, 14 Nov 2023 17:51:27 GMT
|
|
403
|
+
Tue, 14 Nov 2023 17:51:27 GMT
|
|
403
404
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.16..@fluentui/react-toast_v9.3.17)
|
|
404
405
|
|
|
405
406
|
### Patches
|
|
@@ -409,7 +410,7 @@ Tue, 14 Nov 2023 17:51:27 GMT
|
|
|
409
410
|
|
|
410
411
|
## [9.3.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.16)
|
|
411
412
|
|
|
412
|
-
Thu, 09 Nov 2023 17:29:46 GMT
|
|
413
|
+
Thu, 09 Nov 2023 17:29:46 GMT
|
|
413
414
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.15..@fluentui/react-toast_v9.3.16)
|
|
414
415
|
|
|
415
416
|
### Patches
|
|
@@ -427,7 +428,7 @@ Thu, 09 Nov 2023 17:29:46 GMT
|
|
|
427
428
|
|
|
428
429
|
## [9.3.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.15)
|
|
429
430
|
|
|
430
|
-
Wed, 01 Nov 2023 12:55:59 GMT
|
|
431
|
+
Wed, 01 Nov 2023 12:55:59 GMT
|
|
431
432
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.14..@fluentui/react-toast_v9.3.15)
|
|
432
433
|
|
|
433
434
|
### Patches
|
|
@@ -439,7 +440,7 @@ Wed, 01 Nov 2023 12:55:59 GMT
|
|
|
439
440
|
|
|
440
441
|
## [9.3.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.14)
|
|
441
442
|
|
|
442
|
-
Sat, 28 Oct 2023 23:35:59 GMT
|
|
443
|
+
Sat, 28 Oct 2023 23:35:59 GMT
|
|
443
444
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.13..@fluentui/react-toast_v9.3.14)
|
|
444
445
|
|
|
445
446
|
### Patches
|
|
@@ -451,7 +452,7 @@ Sat, 28 Oct 2023 23:35:59 GMT
|
|
|
451
452
|
|
|
452
453
|
## [9.3.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.13)
|
|
453
454
|
|
|
454
|
-
Mon, 23 Oct 2023 09:51:57 GMT
|
|
455
|
+
Mon, 23 Oct 2023 09:51:57 GMT
|
|
455
456
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.12..@fluentui/react-toast_v9.3.13)
|
|
456
457
|
|
|
457
458
|
### Patches
|
|
@@ -461,7 +462,7 @@ Mon, 23 Oct 2023 09:51:57 GMT
|
|
|
461
462
|
|
|
462
463
|
## [9.3.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.12)
|
|
463
464
|
|
|
464
|
-
Wed, 18 Oct 2023 17:54:08 GMT
|
|
465
|
+
Wed, 18 Oct 2023 17:54:08 GMT
|
|
465
466
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.11..@fluentui/react-toast_v9.3.12)
|
|
466
467
|
|
|
467
468
|
### Patches
|
|
@@ -474,7 +475,7 @@ Wed, 18 Oct 2023 17:54:08 GMT
|
|
|
474
475
|
|
|
475
476
|
## [9.3.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.11)
|
|
476
477
|
|
|
477
|
-
Thu, 12 Oct 2023 14:55:44 GMT
|
|
478
|
+
Thu, 12 Oct 2023 14:55:44 GMT
|
|
478
479
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.10..@fluentui/react-toast_v9.3.11)
|
|
479
480
|
|
|
480
481
|
### Patches
|
|
@@ -483,7 +484,7 @@ Thu, 12 Oct 2023 14:55:44 GMT
|
|
|
483
484
|
|
|
484
485
|
## [9.3.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.10)
|
|
485
486
|
|
|
486
|
-
Wed, 11 Oct 2023 13:54:26 GMT
|
|
487
|
+
Wed, 11 Oct 2023 13:54:26 GMT
|
|
487
488
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.9..@fluentui/react-toast_v9.3.10)
|
|
488
489
|
|
|
489
490
|
### Patches
|
|
@@ -496,7 +497,7 @@ Wed, 11 Oct 2023 13:54:26 GMT
|
|
|
496
497
|
|
|
497
498
|
## [9.3.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.9)
|
|
498
499
|
|
|
499
|
-
Mon, 09 Oct 2023 20:45:44 GMT
|
|
500
|
+
Mon, 09 Oct 2023 20:45:44 GMT
|
|
500
501
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.8..@fluentui/react-toast_v9.3.9)
|
|
501
502
|
|
|
502
503
|
### Patches
|
|
@@ -510,7 +511,7 @@ Mon, 09 Oct 2023 20:45:44 GMT
|
|
|
510
511
|
|
|
511
512
|
## [9.3.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.8)
|
|
512
513
|
|
|
513
|
-
Thu, 05 Oct 2023 15:25:33 GMT
|
|
514
|
+
Thu, 05 Oct 2023 15:25:33 GMT
|
|
514
515
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.7..@fluentui/react-toast_v9.3.8)
|
|
515
516
|
|
|
516
517
|
### Patches
|
|
@@ -524,7 +525,7 @@ Thu, 05 Oct 2023 15:25:33 GMT
|
|
|
524
525
|
|
|
525
526
|
## [9.3.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.7)
|
|
526
527
|
|
|
527
|
-
Wed, 04 Oct 2023 08:45:47 GMT
|
|
528
|
+
Wed, 04 Oct 2023 08:45:47 GMT
|
|
528
529
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.6..@fluentui/react-toast_v9.3.7)
|
|
529
530
|
|
|
530
531
|
### Patches
|
|
@@ -537,7 +538,7 @@ Wed, 04 Oct 2023 08:45:47 GMT
|
|
|
537
538
|
|
|
538
539
|
## [9.3.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.6)
|
|
539
540
|
|
|
540
|
-
Mon, 02 Oct 2023 08:56:05 GMT
|
|
541
|
+
Mon, 02 Oct 2023 08:56:05 GMT
|
|
541
542
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.5..@fluentui/react-toast_v9.3.6)
|
|
542
543
|
|
|
543
544
|
### Patches
|
|
@@ -548,7 +549,7 @@ Mon, 02 Oct 2023 08:56:05 GMT
|
|
|
548
549
|
|
|
549
550
|
## [9.3.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.5)
|
|
550
551
|
|
|
551
|
-
Tue, 26 Sep 2023 17:49:14 GMT
|
|
552
|
+
Tue, 26 Sep 2023 17:49:14 GMT
|
|
552
553
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.4..@fluentui/react-toast_v9.3.5)
|
|
553
554
|
|
|
554
555
|
### Patches
|
|
@@ -565,7 +566,7 @@ Tue, 26 Sep 2023 17:49:14 GMT
|
|
|
565
566
|
|
|
566
567
|
## [9.3.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.4)
|
|
567
568
|
|
|
568
|
-
Tue, 26 Sep 2023 15:31:43 GMT
|
|
569
|
+
Tue, 26 Sep 2023 15:31:43 GMT
|
|
569
570
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.3..@fluentui/react-toast_v9.3.4)
|
|
570
571
|
|
|
571
572
|
### Patches
|
|
@@ -583,7 +584,7 @@ Tue, 26 Sep 2023 15:31:43 GMT
|
|
|
583
584
|
|
|
584
585
|
## [9.3.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.3)
|
|
585
586
|
|
|
586
|
-
Wed, 20 Sep 2023 17:47:45 GMT
|
|
587
|
+
Wed, 20 Sep 2023 17:47:45 GMT
|
|
587
588
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.2..@fluentui/react-toast_v9.3.3)
|
|
588
589
|
|
|
589
590
|
### Patches
|
|
@@ -596,7 +597,7 @@ Wed, 20 Sep 2023 17:47:45 GMT
|
|
|
596
597
|
|
|
597
598
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.2)
|
|
598
599
|
|
|
599
|
-
Wed, 20 Sep 2023 14:59:53 GMT
|
|
600
|
+
Wed, 20 Sep 2023 14:59:53 GMT
|
|
600
601
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.1..@fluentui/react-toast_v9.3.2)
|
|
601
602
|
|
|
602
603
|
### Patches
|
|
@@ -608,7 +609,7 @@ Wed, 20 Sep 2023 14:59:53 GMT
|
|
|
608
609
|
|
|
609
610
|
## [9.3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.1)
|
|
610
611
|
|
|
611
|
-
Thu, 14 Sep 2023 16:44:47 GMT
|
|
612
|
+
Thu, 14 Sep 2023 16:44:47 GMT
|
|
612
613
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.3.0..@fluentui/react-toast_v9.3.1)
|
|
613
614
|
|
|
614
615
|
### Patches
|
|
@@ -617,7 +618,7 @@ Thu, 14 Sep 2023 16:44:47 GMT
|
|
|
617
618
|
|
|
618
619
|
## [9.3.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.3.0)
|
|
619
620
|
|
|
620
|
-
Tue, 12 Sep 2023 08:51:33 GMT
|
|
621
|
+
Tue, 12 Sep 2023 08:51:33 GMT
|
|
621
622
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.2.3..@fluentui/react-toast_v9.3.0)
|
|
622
623
|
|
|
623
624
|
### Minor changes
|
|
@@ -630,7 +631,7 @@ Tue, 12 Sep 2023 08:51:33 GMT
|
|
|
630
631
|
|
|
631
632
|
## [9.2.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.2.3)
|
|
632
633
|
|
|
633
|
-
Wed, 06 Sep 2023 13:31:31 GMT
|
|
634
|
+
Wed, 06 Sep 2023 13:31:31 GMT
|
|
634
635
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.2.2..@fluentui/react-toast_v9.2.3)
|
|
635
636
|
|
|
636
637
|
### Patches
|
|
@@ -643,7 +644,7 @@ Wed, 06 Sep 2023 13:31:31 GMT
|
|
|
643
644
|
|
|
644
645
|
## [9.2.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.2.2)
|
|
645
646
|
|
|
646
|
-
Tue, 05 Sep 2023 15:39:04 GMT
|
|
647
|
+
Tue, 05 Sep 2023 15:39:04 GMT
|
|
647
648
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.2.1..@fluentui/react-toast_v9.2.2)
|
|
648
649
|
|
|
649
650
|
### Patches
|
|
@@ -656,7 +657,7 @@ Tue, 05 Sep 2023 15:39:04 GMT
|
|
|
656
657
|
|
|
657
658
|
## [9.2.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.2.1)
|
|
658
659
|
|
|
659
|
-
Tue, 05 Sep 2023 13:29:09 GMT
|
|
660
|
+
Tue, 05 Sep 2023 13:29:09 GMT
|
|
660
661
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.2.0..@fluentui/react-toast_v9.2.1)
|
|
661
662
|
|
|
662
663
|
### Patches
|
|
@@ -674,7 +675,7 @@ Tue, 05 Sep 2023 13:29:09 GMT
|
|
|
674
675
|
|
|
675
676
|
## [9.2.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.2.0)
|
|
676
677
|
|
|
677
|
-
Tue, 29 Aug 2023 12:57:35 GMT
|
|
678
|
+
Tue, 29 Aug 2023 12:57:35 GMT
|
|
678
679
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.6..@fluentui/react-toast_v9.2.0)
|
|
679
680
|
|
|
680
681
|
### Minor changes
|
|
@@ -688,7 +689,7 @@ Tue, 29 Aug 2023 12:57:35 GMT
|
|
|
688
689
|
|
|
689
690
|
## [9.1.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.6)
|
|
690
691
|
|
|
691
|
-
Thu, 24 Aug 2023 10:26:35 GMT
|
|
692
|
+
Thu, 24 Aug 2023 10:26:35 GMT
|
|
692
693
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.5..@fluentui/react-toast_v9.1.6)
|
|
693
694
|
|
|
694
695
|
### Patches
|
|
@@ -701,7 +702,7 @@ Thu, 24 Aug 2023 10:26:35 GMT
|
|
|
701
702
|
|
|
702
703
|
## [9.1.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.5)
|
|
703
704
|
|
|
704
|
-
Wed, 23 Aug 2023 12:01:49 GMT
|
|
705
|
+
Wed, 23 Aug 2023 12:01:49 GMT
|
|
705
706
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.4..@fluentui/react-toast_v9.1.5)
|
|
706
707
|
|
|
707
708
|
### Patches
|
|
@@ -714,7 +715,7 @@ Wed, 23 Aug 2023 12:01:49 GMT
|
|
|
714
715
|
|
|
715
716
|
## [9.1.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.4)
|
|
716
717
|
|
|
717
|
-
Wed, 16 Aug 2023 17:41:08 GMT
|
|
718
|
+
Wed, 16 Aug 2023 17:41:08 GMT
|
|
718
719
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.3..@fluentui/react-toast_v9.1.4)
|
|
719
720
|
|
|
720
721
|
### Patches
|
|
@@ -723,7 +724,7 @@ Wed, 16 Aug 2023 17:41:08 GMT
|
|
|
723
724
|
|
|
724
725
|
## [9.1.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.3)
|
|
725
726
|
|
|
726
|
-
Wed, 16 Aug 2023 11:38:33 GMT
|
|
727
|
+
Wed, 16 Aug 2023 11:38:33 GMT
|
|
727
728
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.2..@fluentui/react-toast_v9.1.3)
|
|
728
729
|
|
|
729
730
|
### Patches
|
|
@@ -732,7 +733,7 @@ Wed, 16 Aug 2023 11:38:33 GMT
|
|
|
732
733
|
|
|
733
734
|
## [9.1.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.2)
|
|
734
735
|
|
|
735
|
-
Fri, 11 Aug 2023 12:14:26 GMT
|
|
736
|
+
Fri, 11 Aug 2023 12:14:26 GMT
|
|
736
737
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.1..@fluentui/react-toast_v9.1.2)
|
|
737
738
|
|
|
738
739
|
### Patches
|
|
@@ -745,7 +746,7 @@ Fri, 11 Aug 2023 12:14:26 GMT
|
|
|
745
746
|
|
|
746
747
|
## [9.1.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.1)
|
|
747
748
|
|
|
748
|
-
Wed, 09 Aug 2023 13:17:08 GMT
|
|
749
|
+
Wed, 09 Aug 2023 13:17:08 GMT
|
|
749
750
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.1.0..@fluentui/react-toast_v9.1.1)
|
|
750
751
|
|
|
751
752
|
### Patches
|
|
@@ -761,7 +762,7 @@ Wed, 09 Aug 2023 13:17:08 GMT
|
|
|
761
762
|
|
|
762
763
|
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.1.0)
|
|
763
764
|
|
|
764
|
-
Fri, 04 Aug 2023 08:52:57 GMT
|
|
765
|
+
Fri, 04 Aug 2023 08:52:57 GMT
|
|
765
766
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.6..@fluentui/react-toast_v9.1.0)
|
|
766
767
|
|
|
767
768
|
### Minor changes
|
|
@@ -777,7 +778,7 @@ Fri, 04 Aug 2023 08:52:57 GMT
|
|
|
777
778
|
|
|
778
779
|
## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.6)
|
|
779
780
|
|
|
780
|
-
Tue, 01 Aug 2023 10:17:21 GMT
|
|
781
|
+
Tue, 01 Aug 2023 10:17:21 GMT
|
|
781
782
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.5..@fluentui/react-toast_v9.0.6)
|
|
782
783
|
|
|
783
784
|
### Patches
|
|
@@ -788,7 +789,7 @@ Tue, 01 Aug 2023 10:17:21 GMT
|
|
|
788
789
|
|
|
789
790
|
## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.5)
|
|
790
791
|
|
|
791
|
-
Tue, 25 Jul 2023 13:29:22 GMT
|
|
792
|
+
Tue, 25 Jul 2023 13:29:22 GMT
|
|
792
793
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.4..@fluentui/react-toast_v9.0.5)
|
|
793
794
|
|
|
794
795
|
### Patches
|
|
@@ -799,7 +800,7 @@ Tue, 25 Jul 2023 13:29:22 GMT
|
|
|
799
800
|
|
|
800
801
|
## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.4)
|
|
801
802
|
|
|
802
|
-
Thu, 20 Jul 2023 18:27:35 GMT
|
|
803
|
+
Thu, 20 Jul 2023 18:27:35 GMT
|
|
803
804
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.3..@fluentui/react-toast_v9.0.4)
|
|
804
805
|
|
|
805
806
|
### Patches
|
|
@@ -810,7 +811,7 @@ Thu, 20 Jul 2023 18:27:35 GMT
|
|
|
810
811
|
|
|
811
812
|
## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.3)
|
|
812
813
|
|
|
813
|
-
Tue, 11 Jul 2023 18:46:36 GMT
|
|
814
|
+
Tue, 11 Jul 2023 18:46:36 GMT
|
|
814
815
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.2..@fluentui/react-toast_v9.0.3)
|
|
815
816
|
|
|
816
817
|
### Patches
|
|
@@ -820,7 +821,7 @@ Tue, 11 Jul 2023 18:46:36 GMT
|
|
|
820
821
|
|
|
821
822
|
## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.2)
|
|
822
823
|
|
|
823
|
-
Mon, 03 Jul 2023 20:43:09 GMT
|
|
824
|
+
Mon, 03 Jul 2023 20:43:09 GMT
|
|
824
825
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.1..@fluentui/react-toast_v9.0.2)
|
|
825
826
|
|
|
826
827
|
### Patches
|
|
@@ -829,7 +830,7 @@ Mon, 03 Jul 2023 20:43:09 GMT
|
|
|
829
830
|
|
|
830
831
|
## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-toast_v9.0.1)
|
|
831
832
|
|
|
832
|
-
Mon, 03 Jul 2023 13:34:28 GMT
|
|
833
|
+
Mon, 03 Jul 2023 13:34:28 GMT
|
|
833
834
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-toast_v9.0.0..@fluentui/react-toast_v9.0.1)
|
|
834
835
|
|
|
835
836
|
### Patches
|
|
@@ -19,7 +19,7 @@ const intentPolitenessMap = {
|
|
|
19
19
|
* @param props - props from this instance of ToastContainer
|
|
20
20
|
* @param ref - reference to root HTMLElement of ToastContainer
|
|
21
21
|
*/ export const useToastContainer_unstable = (props, ref)=>{
|
|
22
|
-
const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus,
|
|
22
|
+
const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus, ...rest } = props;
|
|
23
23
|
const titleId = useId('toast-title');
|
|
24
24
|
const bodyId = useId('toast-body');
|
|
25
25
|
const toastRef = React.useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useToastContainer.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n getIntrinsicElementProps,\n useMergedRefs,\n ExtractSlotProps,\n Slot,\n useEventCallback,\n useId,\n slot,\n} from '@fluentui/react-utilities';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { Delete, Tab } from '@fluentui/keyboard-keys';\nimport { useFocusableGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport { ToastStatus } from '../../state';\nimport type { ToastContainerProps, ToastContainerState } from './ToastContainer.types';\nimport { Timer, TimerProps } from '../Timer/Timer';\n\nconst intentPolitenessMap = {\n success: 'assertive',\n warning: 'assertive',\n error: 'assertive',\n info: 'polite',\n} as const;\n\n/**\n * Create the state required to render ToastContainer.\n *\n * The returned state can be modified with hooks such as useToastContainerStyles_unstable,\n * before being passed to renderToastContainer_unstable.\n *\n * @param props - props from this instance of ToastContainer\n * @param ref - reference to root HTMLElement of ToastContainer\n */\nexport const useToastContainer_unstable = (\n props: ToastContainerProps,\n ref: React.Ref<HTMLElement>,\n): ToastContainerState => {\n const {\n visible,\n children,\n close: closeProp,\n remove,\n updateId,\n announce,\n data,\n timeout: timerTimeout,\n politeness: desiredPoliteness,\n intent = 'info',\n pauseOnHover,\n pauseOnWindowBlur,\n imperativeRef,\n tryRestoreFocus,\n content,\n ...rest\n } = props;\n const titleId = useId('toast-title');\n const bodyId = useId('toast-body');\n const toastRef = React.useRef<HTMLDivElement | null>(null);\n const { targetDocument } = useFluent_unstable();\n const [running, setRunning] = React.useState(false);\n const imperativePauseRef = React.useRef(false);\n const focusedToastBeforeClose = React.useRef(false);\n const focusableGroupAttribute = useFocusableGroup({\n tabBehavior: 'limited-trap-focus',\n // Users should only use Tab to focus into the toast\n // Escape is already reserved to dismiss all toasts\n ignoreDefaultKeydown: { Tab: true, Escape: true, Enter: true },\n });\n\n const close = useEventCallback(() => {\n const activeElement = targetDocument?.activeElement;\n if (activeElement && toastRef.current?.contains(activeElement)) {\n focusedToastBeforeClose.current = true;\n }\n\n closeProp();\n });\n const onStatusChange = useEventCallback((status: ToastStatus) => props.onStatusChange?.(null, { status, ...props }));\n const pause = useEventCallback(() => setRunning(false));\n const play = useEventCallback(() => {\n if (imperativePauseRef.current) {\n return;\n }\n const containsActive = !!toastRef.current?.contains(targetDocument?.activeElement ?? null);\n if (timerTimeout < 0) {\n setRunning(true);\n return;\n }\n\n if (!containsActive) {\n setRunning(true);\n }\n });\n\n React.useImperativeHandle(imperativeRef, () => ({\n focus: () => {\n if (!toastRef.current) {\n return;\n }\n\n toastRef.current.focus();\n },\n\n play: () => {\n imperativePauseRef.current = false;\n play();\n },\n pause: () => {\n imperativePauseRef.current = true;\n pause();\n },\n }));\n\n React.useEffect(() => {\n return () => onStatusChange('unmounted');\n }, [onStatusChange]);\n\n React.useEffect(() => {\n if (!targetDocument) {\n return;\n }\n\n if (pauseOnWindowBlur) {\n targetDocument.defaultView?.addEventListener('focus', play);\n targetDocument.defaultView?.addEventListener('blur', pause);\n return () => {\n targetDocument.defaultView?.removeEventListener('focus', play);\n targetDocument.defaultView?.removeEventListener('blur', pause);\n };\n }\n }, [targetDocument, pause, play, pauseOnWindowBlur]);\n\n // Users never actually use ToastContainer as a JSX but imperatively through useToastContainerController\n const userRootSlot = (data as { root?: ExtractSlotProps<Slot<'div'>> }).root;\n const onMotionFinish: ToastContainerState['onMotionFinish'] = React.useCallback(\n (_, { direction }) => {\n if (direction === 'exit') {\n remove();\n }\n\n if (direction === 'enter') {\n // start toast once it's fully animated in\n play();\n onStatusChange('visible');\n }\n },\n [onStatusChange, play, remove],\n );\n\n const onMouseEnter = useEventCallback((e: React.MouseEvent<HTMLDivElement>) => {\n pause();\n userRootSlot?.onMouseEnter?.(e);\n });\n\n const onMouseLeave = useEventCallback((e: React.MouseEvent<HTMLDivElement>) => {\n play();\n userRootSlot?.onMouseEnter?.(e);\n });\n\n const { findFirstFocusable, findLastFocusable } = useFocusFinders();\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLDivElement>) => {\n if (e.key === Delete) {\n e.preventDefault();\n close();\n }\n\n if (e.key === Tab && e.currentTarget === e.target) {\n e.preventDefault();\n if (e.shiftKey) {\n findLastFocusable(e.currentTarget)?.focus();\n } else {\n findFirstFocusable(e.currentTarget)?.focus();\n }\n }\n\n userRootSlot?.onKeyDown?.(e);\n });\n\n React.useEffect(() => {\n if (!visible) {\n return;\n }\n\n const politeness = desiredPoliteness ?? intentPolitenessMap[intent];\n announce(toastRef.current?.textContent ?? '', { politeness });\n }, [announce, desiredPoliteness, toastRef, visible, updateId, intent]);\n\n React.useEffect(() => {\n return () => {\n if (focusedToastBeforeClose.current) {\n focusedToastBeforeClose.current = false;\n tryRestoreFocus();\n }\n };\n }, [tryRestoreFocus]);\n\n return {\n components: {\n timer: Timer,\n root: 'div',\n },\n timer: slot.always<TimerProps>({ onTimeout: close, running, timeout: timerTimeout ?? -1 }, { elementType: Timer }),\n root: slot.always(\n getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, toastRef) as React.Ref<HTMLDivElement>,\n children,\n tabIndex: 0,\n role: 'listitem',\n 'aria-labelledby': titleId,\n 'aria-describedby': bodyId,\n ...rest,\n ...userRootSlot,\n ...focusableGroupAttribute,\n onMouseEnter,\n onMouseLeave,\n onKeyDown,\n }),\n { elementType: 'div' },\n ),\n timerTimeout,\n transitionTimeout: 0,\n running,\n visible,\n remove,\n close,\n onTransitionEntering: () => {\n /* no-op */\n },\n updateId,\n nodeRef: toastRef,\n intent,\n titleId,\n bodyId,\n onMotionFinish,\n };\n};\n"],"names":["React","getIntrinsicElementProps","useMergedRefs","useEventCallback","useId","slot","useFluent_unstable","Delete","Tab","useFocusableGroup","useFocusFinders","Timer","intentPolitenessMap","success","warning","error","info","useToastContainer_unstable","props","ref","visible","children","close","closeProp","remove","updateId","announce","data","timeout","timerTimeout","politeness","desiredPoliteness","intent","pauseOnHover","pauseOnWindowBlur","imperativeRef","tryRestoreFocus","content","rest","titleId","bodyId","toastRef","useRef","targetDocument","running","setRunning","useState","imperativePauseRef","focusedToastBeforeClose","focusableGroupAttribute","tabBehavior","ignoreDefaultKeydown","Escape","Enter","activeElement","current","contains","onStatusChange","status","pause","play","containsActive","useImperativeHandle","focus","useEffect","defaultView","addEventListener","removeEventListener","userRootSlot","root","onMotionFinish","useCallback","_","direction","onMouseEnter","e","onMouseLeave","findFirstFocusable","findLastFocusable","onKeyDown","key","preventDefault","currentTarget","target","shiftKey","textContent","components","timer","always","onTimeout","elementType","tabIndex","role","transitionTimeout","onTransitionEntering","nodeRef"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SACEC,wBAAwB,EACxBC,aAAa,EAGbC,gBAAgB,EAChBC,KAAK,EACLC,IAAI,QACC,4BAA4B;AACnC,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,MAAM,EAAEC,GAAG,QAAQ,0BAA0B;AACtD,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,0BAA0B;AAG7E,SAASC,KAAK,QAAoB,iBAAiB;AAEnD,MAAMC,sBAAsB;IAC1BC,SAAS;IACTC,SAAS;IACTC,OAAO;IACPC,MAAM;AACR;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMC,6BAA6B,CACxCC,OACAC;IAEA,MAAM,EACJC,OAAO,EACPC,QAAQ,EACRC,OAAOC,SAAS,EAChBC,MAAM,EACNC,QAAQ,EACRC,QAAQ,EACRC,IAAI,EACJC,SAASC,YAAY,EACrBC,YAAYC,iBAAiB,EAC7BC,S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UO;KAAO;IAErEhC,MAAMgE,SAAS,CAAC;QACd,OAAO;YACL,IAAIhB,wBAAwBO,OAAO,EAAE;gBACnCP,wBAAwBO,OAAO,GAAG;gBAClCnB;YACF;QACF;IACF,GAAG;QAACA;KAAgB;IAEpB,OAAO;QACLkD,YAAY;YACVC,OAAO5E;YACP0D,MAAM;QACR;QACAkB,OAAOlF,KAAKmF,MAAM,CAAa;YAAEC,WAAWnE;YAAOsB;YAAShB,SAASC,yBAAAA,0BAAAA,eAAgB,CAAC;QAAE,GAAG;YAAE6D,aAAa/E;QAAM;QAChH0D,MAAMhE,KAAKmF,MAAM,CACfvF,yBAAyB,OAAO;YAC9B,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5FkB,KAAKjB,cAAciB,KAAKsB;YACxBpB;YACAsE,UAAU;YACVC,MAAM;YACN,mBAAmBrD;YACnB,oBAAoBC;YACpB,GAAGF,IAAI;YACP,GAAG8B,YAAY;YACf,GAAGnB,uBAAuB;YAC1ByB;YACAE;YACAG;QACF,IACA;YAAEW,aAAa;QAAM;QAEvB7D;QACAgE,mBAAmB;QACnBjD;QACAxB;QACAI;QACAF;QACAwE,sBAAsB;QACpB,SAAS,GACX;QACArE;QACAsE,SAAStD;QACTT;QACAO;QACAC;QACA8B;IACF;AACF,EAAE"}
|
|
1
|
+
{"version":3,"sources":["useToastContainer.ts"],"sourcesContent":["import * as React from 'react';\nimport {\n getIntrinsicElementProps,\n useMergedRefs,\n ExtractSlotProps,\n Slot,\n useEventCallback,\n useId,\n slot,\n} from '@fluentui/react-utilities';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { Delete, Tab } from '@fluentui/keyboard-keys';\nimport { useFocusableGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport { ToastStatus } from '../../state';\nimport type { ToastContainerProps, ToastContainerState } from './ToastContainer.types';\nimport { Timer, TimerProps } from '../Timer/Timer';\n\nconst intentPolitenessMap = {\n success: 'assertive',\n warning: 'assertive',\n error: 'assertive',\n info: 'polite',\n} as const;\n\n/**\n * Create the state required to render ToastContainer.\n *\n * The returned state can be modified with hooks such as useToastContainerStyles_unstable,\n * before being passed to renderToastContainer_unstable.\n *\n * @param props - props from this instance of ToastContainer\n * @param ref - reference to root HTMLElement of ToastContainer\n */\nexport const useToastContainer_unstable = (\n props: ToastContainerProps,\n ref: React.Ref<HTMLElement>,\n): ToastContainerState => {\n const {\n visible,\n children,\n close: closeProp,\n remove,\n updateId,\n announce,\n data,\n timeout: timerTimeout,\n politeness: desiredPoliteness,\n intent = 'info',\n pauseOnHover,\n pauseOnWindowBlur,\n imperativeRef,\n tryRestoreFocus,\n ...rest\n } = props;\n const titleId = useId('toast-title');\n const bodyId = useId('toast-body');\n const toastRef = React.useRef<HTMLDivElement | null>(null);\n const { targetDocument } = useFluent_unstable();\n const [running, setRunning] = React.useState(false);\n const imperativePauseRef = React.useRef(false);\n const focusedToastBeforeClose = React.useRef(false);\n const focusableGroupAttribute = useFocusableGroup({\n tabBehavior: 'limited-trap-focus',\n // Users should only use Tab to focus into the toast\n // Escape is already reserved to dismiss all toasts\n ignoreDefaultKeydown: { Tab: true, Escape: true, Enter: true },\n });\n\n const close = useEventCallback(() => {\n const activeElement = targetDocument?.activeElement;\n if (activeElement && toastRef.current?.contains(activeElement)) {\n focusedToastBeforeClose.current = true;\n }\n\n closeProp();\n });\n const onStatusChange = useEventCallback((status: ToastStatus) => props.onStatusChange?.(null, { status, ...props }));\n const pause = useEventCallback(() => setRunning(false));\n const play = useEventCallback(() => {\n if (imperativePauseRef.current) {\n return;\n }\n const containsActive = !!toastRef.current?.contains(targetDocument?.activeElement ?? null);\n if (timerTimeout < 0) {\n setRunning(true);\n return;\n }\n\n if (!containsActive) {\n setRunning(true);\n }\n });\n\n React.useImperativeHandle(imperativeRef, () => ({\n focus: () => {\n if (!toastRef.current) {\n return;\n }\n\n toastRef.current.focus();\n },\n\n play: () => {\n imperativePauseRef.current = false;\n play();\n },\n pause: () => {\n imperativePauseRef.current = true;\n pause();\n },\n }));\n\n React.useEffect(() => {\n return () => onStatusChange('unmounted');\n }, [onStatusChange]);\n\n React.useEffect(() => {\n if (!targetDocument) {\n return;\n }\n\n if (pauseOnWindowBlur) {\n targetDocument.defaultView?.addEventListener('focus', play);\n targetDocument.defaultView?.addEventListener('blur', pause);\n return () => {\n targetDocument.defaultView?.removeEventListener('focus', play);\n targetDocument.defaultView?.removeEventListener('blur', pause);\n };\n }\n }, [targetDocument, pause, play, pauseOnWindowBlur]);\n\n // Users never actually use ToastContainer as a JSX but imperatively through useToastContainerController\n const userRootSlot = (data as { root?: ExtractSlotProps<Slot<'div'>> }).root;\n const onMotionFinish: ToastContainerState['onMotionFinish'] = React.useCallback(\n (_, { direction }) => {\n if (direction === 'exit') {\n remove();\n }\n\n if (direction === 'enter') {\n // start toast once it's fully animated in\n play();\n onStatusChange('visible');\n }\n },\n [onStatusChange, play, remove],\n );\n\n const onMouseEnter = useEventCallback((e: React.MouseEvent<HTMLDivElement>) => {\n pause();\n userRootSlot?.onMouseEnter?.(e);\n });\n\n const onMouseLeave = useEventCallback((e: React.MouseEvent<HTMLDivElement>) => {\n play();\n userRootSlot?.onMouseEnter?.(e);\n });\n\n const { findFirstFocusable, findLastFocusable } = useFocusFinders();\n const onKeyDown = useEventCallback((e: React.KeyboardEvent<HTMLDivElement>) => {\n if (e.key === Delete) {\n e.preventDefault();\n close();\n }\n\n if (e.key === Tab && e.currentTarget === e.target) {\n e.preventDefault();\n if (e.shiftKey) {\n findLastFocusable(e.currentTarget)?.focus();\n } else {\n findFirstFocusable(e.currentTarget)?.focus();\n }\n }\n\n userRootSlot?.onKeyDown?.(e);\n });\n\n React.useEffect(() => {\n if (!visible) {\n return;\n }\n\n const politeness = desiredPoliteness ?? intentPolitenessMap[intent];\n announce(toastRef.current?.textContent ?? '', { politeness });\n }, [announce, desiredPoliteness, toastRef, visible, updateId, intent]);\n\n React.useEffect(() => {\n return () => {\n if (focusedToastBeforeClose.current) {\n focusedToastBeforeClose.current = false;\n tryRestoreFocus();\n }\n };\n }, [tryRestoreFocus]);\n\n return {\n components: {\n timer: Timer,\n root: 'div',\n },\n timer: slot.always<TimerProps>({ onTimeout: close, running, timeout: timerTimeout ?? -1 }, { elementType: Timer }),\n root: slot.always(\n getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, toastRef) as React.Ref<HTMLDivElement>,\n children,\n tabIndex: 0,\n role: 'listitem',\n 'aria-labelledby': titleId,\n 'aria-describedby': bodyId,\n ...rest,\n ...userRootSlot,\n ...focusableGroupAttribute,\n onMouseEnter,\n onMouseLeave,\n onKeyDown,\n }),\n { elementType: 'div' },\n ),\n timerTimeout,\n transitionTimeout: 0,\n running,\n visible,\n remove,\n close,\n onTransitionEntering: () => {\n /* no-op */\n },\n updateId,\n nodeRef: toastRef,\n intent,\n titleId,\n bodyId,\n onMotionFinish,\n };\n};\n"],"names":["React","getIntrinsicElementProps","useMergedRefs","useEventCallback","useId","slot","useFluent_unstable","Delete","Tab","useFocusableGroup","useFocusFinders","Timer","intentPolitenessMap","success","warning","error","info","useToastContainer_unstable","props","ref","visible","children","close","closeProp","remove","updateId","announce","data","timeout","timerTimeout","politeness","desiredPoliteness","intent","pauseOnHover","pauseOnWindowBlur","imperativeRef","tryRestoreFocus","rest","titleId","bodyId","toastRef","useRef","targetDocument","running","setRunning","useState","imperativePauseRef","focusedToastBeforeClose","focusableGroupAttribute","tabBehavior","ignoreDefaultKeydown","Escape","Enter","activeElement","current","contains","onStatusChange","status","pause","play","containsActive","useImperativeHandle","focus","useEffect","defaultView","addEventListener","removeEventListener","userRootSlot","root","onMotionFinish","useCallback","_","direction","onMouseEnter","e","onMouseLeave","findFirstFocusable","findLastFocusable","onKeyDown","key","preventDefault","currentTarget","target","shiftKey","textContent","components","timer","always","onTimeout","elementType","tabIndex","role","transitionTimeout","onTransitionE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,aAAa;QAAM;QAEvB5D;QACA+D,mBAAmB;QACnBjD;QACAvB;QACAI;QACAF;QACAuE,sBAAsB;QACpB,SAAS,GACX;QACApE;QACAqE,SAAStD;QACTR;QACAM;QACAC;QACA8B;IACF;AACF,EAAE"}
|
|
@@ -22,7 +22,7 @@ const intentPolitenessMap = {
|
|
|
22
22
|
info: 'polite'
|
|
23
23
|
};
|
|
24
24
|
const useToastContainer_unstable = (props, ref)=>{
|
|
25
|
-
const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus,
|
|
25
|
+
const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus, ...rest } = props;
|
|
26
26
|
const titleId = (0, _reactutilities.useId)('toast-title');
|
|
27
27
|
const bodyId = (0, _reactutilities.useId)('toast-body');
|
|
28
28
|
const toastRef = _react.useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useToastContainer.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, useMergedRefs, useEventCallback, useId, slot } from '@fluentui/react-utilities';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { Delete, Tab } from '@fluentui/keyboard-keys';\nimport { useFocusableGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport { Timer } from '../Timer/Timer';\nconst intentPolitenessMap = {\n success: 'assertive',\n warning: 'assertive',\n error: 'assertive',\n info: 'polite'\n};\n/**\n * Create the state required to render ToastContainer.\n *\n * The returned state can be modified with hooks such as useToastContainerStyles_unstable,\n * before being passed to renderToastContainer_unstable.\n *\n * @param props - props from this instance of ToastContainer\n * @param ref - reference to root HTMLElement of ToastContainer\n */ export const useToastContainer_unstable = (props, ref)=>{\n const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus, content, ...rest } = props;\n const titleId = useId('toast-title');\n const bodyId = useId('toast-body');\n const toastRef = React.useRef(null);\n const { targetDocument } = useFluent_unstable();\n const [running, setRunning] = React.useState(false);\n const imperativePauseRef = React.useRef(false);\n const focusedToastBeforeClose = React.useRef(false);\n const focusableGroupAttribute = useFocusableGroup({\n tabBehavior: 'limited-trap-focus',\n // Users should only use Tab to focus into the toast\n // Escape is already reserved to dismiss all toasts\n ignoreDefaultKeydown: {\n Tab: true,\n Escape: true,\n Enter: true\n }\n });\n const close = useEventCallback(()=>{\n var _toastRef_current;\n const activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement;\n if (activeElement && ((_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.contains(activeElement))) {\n focusedToastBeforeClose.current = true;\n }\n closeProp();\n });\n const onStatusChange = useEventCallback((status)=>{\n var _props_onStatusChange;\n return (_props_onStatusChange = props.onStatusChange) === null || _props_onStatusChange === void 0 ? void 0 : _props_onStatusChange.call(props, null, {\n status,\n ...props\n });\n });\n const pause = useEventCallback(()=>setRunning(false));\n const play = useEventCallback(()=>{\n var _toastRef_current;\n if (imperativePauseRef.current) {\n return;\n }\n var _targetDocument_activeElement;\n const containsActive = !!((_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.contains((_targetDocument_activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement) !== null && _targetDocument_activeElement !== void 0 ? _targetDocument_activeElement : null));\n if (timerTimeout < 0) {\n setRunning(true);\n return;\n }\n if (!containsActive) {\n setRunning(true);\n }\n });\n React.useImperativeHandle(imperativeRef, ()=>({\n focus: ()=>{\n if (!toastRef.current) {\n return;\n }\n toastRef.current.focus();\n },\n play: ()=>{\n imperativePauseRef.current = false;\n play();\n },\n pause: ()=>{\n imperativePauseRef.current = true;\n pause();\n }\n }));\n React.useEffect(()=>{\n return ()=>onStatusChange('unmounted');\n }, [\n onStatusChange\n ]);\n React.useEffect(()=>{\n if (!targetDocument) {\n return;\n }\n if (pauseOnWindowBlur) {\n var _targetDocument_defaultView, _targetDocument_defaultView1;\n (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.addEventListener('focus', play);\n (_targetDocument_defaultView1 = targetDocument.defaultView) === null || _targetDocument_defaultView1 === void 0 ? void 0 : _targetDocument_defaultView1.addEventListener('blur', pause);\n return ()=>{\n var _targetDocument_defaultView, _targetDocument_defaultView1;\n (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.removeEventListener('focus', play);\n (_targetDocument_defaultView1 = targetDocument.defaultView) === null || _targetDocument_defaultView1 === void 0 ? void 0 : _targetDocument_defaultView1.removeEventListener('blur', pause);\n };\n }\n }, [\n targetDocument,\n pause,\n play,\n pauseOnWindowBlur\n ]);\n // Users never actually use ToastContainer as a JSX but imperatively through useToastContainerController\n const userRootSlot = data.root;\n const onMotionFinish = React.useCallback((_, { direction })=>{\n if (direction === 'exit') {\n remove();\n }\n if (direction === 'enter') {\n // start toast once it's fully animated in\n play();\n onStatusChange('visible');\n }\n }, [\n onStatusChange,\n play,\n remove\n ]);\n const onMouseEnter = useEventCallback((e)=>{\n var _userRootSlot_onMouseEnter;\n pause();\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onMouseEnter = userRootSlot.onMouseEnter) === null || _userRootSlot_onMouseEnter === void 0 ? void 0 : _userRootSlot_onMouseEnter.call(userRootSlot, e);\n });\n const onMouseLeave = useEventCallback((e)=>{\n var _userRootSlot_onMouseEnter;\n play();\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onMouseEnter = userRootSlot.onMouseEnter) === null || _userRootSlot_onMouseEnter === void 0 ? void 0 : _userRootSlot_onMouseEnter.call(userRootSlot, e);\n });\n const { findFirstFocusable, findLastFocusable } = useFocusFinders();\n const onKeyDown = useEventCallback((e)=>{\n var _userRootSlot_onKeyDown;\n if (e.key === Delete) {\n e.preventDefault();\n close();\n }\n if (e.key === Tab && e.currentTarget === e.target) {\n e.preventDefault();\n if (e.shiftKey) {\n var _findLastFocusable;\n (_findLastFocusable = findLastFocusable(e.currentTarget)) === null || _findLastFocusable === void 0 ? void 0 : _findLastFocusable.focus();\n } else {\n var _findFirstFocusable;\n (_findFirstFocusable = findFirstFocusable(e.currentTarget)) === null || _findFirstFocusable === void 0 ? void 0 : _findFirstFocusable.focus();\n }\n }\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onKeyDown = userRootSlot.onKeyDown) === null || _userRootSlot_onKeyDown === void 0 ? void 0 : _userRootSlot_onKeyDown.call(userRootSlot, e);\n });\n React.useEffect(()=>{\n var _toastRef_current;\n if (!visible) {\n return;\n }\n const politeness = desiredPoliteness !== null && desiredPoliteness !== void 0 ? desiredPoliteness : intentPolitenessMap[intent];\n var _toastRef_current_textContent;\n announce((_toastRef_current_textContent = (_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.textContent) !== null && _toastRef_current_textContent !== void 0 ? _toastRef_current_textContent : '', {\n politeness\n });\n }, [\n announce,\n desiredPoliteness,\n toastRef,\n visible,\n updateId,\n intent\n ]);\n React.useEffect(()=>{\n return ()=>{\n if (focusedToastBeforeClose.current) {\n focusedToastBeforeClose.current = false;\n tryRestoreFocus();\n }\n };\n }, [\n tryRestoreFocus\n ]);\n return {\n components: {\n timer: Timer,\n root: 'div'\n },\n timer: slot.always({\n onTimeout: close,\n running,\n timeout: timerTimeout !== null && timerTimeout !== void 0 ? timerTimeout : -1\n }, {\n elementType: Timer\n }),\n root: slot.always(getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, toastRef),\n children,\n tabIndex: 0,\n role: 'listitem',\n 'aria-labelledby': titleId,\n 'aria-describedby': bodyId,\n ...rest,\n ...userRootSlot,\n ...focusableGroupAttribute,\n onMouseEnter,\n onMouseLeave,\n onKeyDown\n }), {\n elementType: 'div'\n }),\n timerTimeout,\n transitionTimeout: 0,\n running,\n visible,\n remove,\n close,\n onTransitionEntering: ()=>{\n /* no-op */ },\n updateId,\n nodeRef: toastRef,\n intent,\n titleId,\n bodyId,\n onMotionFinish\n };\n};\n"],"names":["useToastContainer_unstable","intentPolitenessMap","success","warning","error","info","props","ref","visible","children","close","closeProp","remove","updateId","announce","data","timeout","timerTimeout","politeness","desiredPoliteness","intent","pauseOnHover","pauseOnWindowBlur","imperativeRef","tryRestoreFocus","content","rest","titleId","useId","bodyId","toastRef","React","useRef","targetDocument","useFluent_unstable","running","setRunning","useState","imperativePauseRef","focusedToastBeforeClose","focusableGroupAttribute","useFocusableGroup","tabBehavior","ignoreDefaultKeydown","Tab","Escape","Enter","useEventCallback","_toastRef_current","activeElement","current","contains","onStatusChange","status","_props_onStatusChange","call","pause","play","_targetDocument_activeElement","containsActive","useImperativeHandle","focus","useEffect","_targetDocument_defaultView","_targetDocument_defaultView1","defaultView","addEventListener","removeEventListener","userRootSlot","root","onMotionFinish","useCallback","_","direction","onMouseEnter","e","_userRootSlot_onMouseEnter","onMouseLeave","findFirstFocusable","findLastFocusable","useFocusFinders","onKeyDown","_userRootSlot_onKeyDown","key","Delete","preventDefault","currentTarget","target","shiftKey","_findLastFocusable","_findFirstFocusable","_toastRef_current_textContent","textContent","components","timer","Timer","slot","always","onTimeout","elementType","getIntrinsicElementProps","useMergedRefs","tabIndex","role","transitionTimeout","onTransitionEntering","nodeRef"],"mappings":";;;;+BAoBiBA;;;eAAAA;;;;iEApBM;gCACgE;qCACpD;8BACP;8BACuB;uBAC7B;AACtB,MAAMC,sBAAsB;IACxBC,SAAS;IACTC,SAAS;IACTC,OAAO;IACP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AK,IAAIA,kBAAkB4C,WAAW,AAAD,MAAO,QAAQD,kCAAkC,KAAK,IAAIA,gCAAgC,IAAI;YAC3PzE;QACJ;IACJ,GAAG;QACCJ;QACAK;QACAW;QACAtB;QACAK;QACAO;KACH;IACDW,OAAM+B,SAAS,CAAC;QACZ,OAAO;YACH,IAAIvB,wBAAwBW,OAAO,EAAE;gBACjCX,wBAAwBW,OAAO,GAAG;gBAClC1B;YACJ;QACJ;IACJ,GAAG;QACCA;KACH;IACD,OAAO;QACHqE,YAAY;YACRC,OAAOC,YAAK;YACZ1B,MAAM;QACV;QACAyB,OAAOE,oBAAI,CAACC,MAAM,CAAC;YACfC,WAAWxF;YACXyB;YACAnB,SAASC,iBAAiB,QAAQA,iBAAiB,KAAK,IAAIA,eAAe,CAAC;QAChF,GAAG;YACCkF,aAAaJ,YAAK;QACtB;QACA1B,MAAM2B,oBAAI,CAACC,MAAM,CAACG,IAAAA,wCAAwB,EAAC,OAAO;YAC9C,SAAS;YACT,4EAA4E;YAC5E,4FAA4F;YAC5F7F,KAAK8F,IAAAA,6BAAa,EAAC9F,KAAKuB;YACxBrB;YACA6F,UAAU;YACVC,MAAM;YACN,mBAAmB5E;YACnB,oBAAoBE;YACpB,GAAGH,IAAI;YACP,GAAG0C,YAAY;YACf,GAAG5B,uBAAuB;YAC1BkC;YACAG;YACAI;QACJ,IAAI;YACAkB,aAAa;QACjB;QACAlF;QACAuF,mBAAmB;QACnBrE;QACA3B;QACAI;QACAF;QACA+F,sBAAsB;QACtB,SAAS,GAAG;QACZ5F;QACA6F,SAAS5E;QACTV;QACAO;QACAE;QACAyC;IACJ;AACJ"}
|
|
1
|
+
{"version":3,"sources":["useToastContainer.js"],"sourcesContent":["import * as React from 'react';\nimport { getIntrinsicElementProps, useMergedRefs, useEventCallback, useId, slot } from '@fluentui/react-utilities';\nimport { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { Delete, Tab } from '@fluentui/keyboard-keys';\nimport { useFocusableGroup, useFocusFinders } from '@fluentui/react-tabster';\nimport { Timer } from '../Timer/Timer';\nconst intentPolitenessMap = {\n success: 'assertive',\n warning: 'assertive',\n error: 'assertive',\n info: 'polite'\n};\n/**\n * Create the state required to render ToastContainer.\n *\n * The returned state can be modified with hooks such as useToastContainerStyles_unstable,\n * before being passed to renderToastContainer_unstable.\n *\n * @param props - props from this instance of ToastContainer\n * @param ref - reference to root HTMLElement of ToastContainer\n */ export const useToastContainer_unstable = (props, ref)=>{\n const { visible, children, close: closeProp, remove, updateId, announce, data, timeout: timerTimeout, politeness: desiredPoliteness, intent = 'info', pauseOnHover, pauseOnWindowBlur, imperativeRef, tryRestoreFocus, ...rest } = props;\n const titleId = useId('toast-title');\n const bodyId = useId('toast-body');\n const toastRef = React.useRef(null);\n const { targetDocument } = useFluent_unstable();\n const [running, setRunning] = React.useState(false);\n const imperativePauseRef = React.useRef(false);\n const focusedToastBeforeClose = React.useRef(false);\n const focusableGroupAttribute = useFocusableGroup({\n tabBehavior: 'limited-trap-focus',\n // Users should only use Tab to focus into the toast\n // Escape is already reserved to dismiss all toasts\n ignoreDefaultKeydown: {\n Tab: true,\n Escape: true,\n Enter: true\n }\n });\n const close = useEventCallback(()=>{\n var _toastRef_current;\n const activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement;\n if (activeElement && ((_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.contains(activeElement))) {\n focusedToastBeforeClose.current = true;\n }\n closeProp();\n });\n const onStatusChange = useEventCallback((status)=>{\n var _props_onStatusChange;\n return (_props_onStatusChange = props.onStatusChange) === null || _props_onStatusChange === void 0 ? void 0 : _props_onStatusChange.call(props, null, {\n status,\n ...props\n });\n });\n const pause = useEventCallback(()=>setRunning(false));\n const play = useEventCallback(()=>{\n var _toastRef_current;\n if (imperativePauseRef.current) {\n return;\n }\n var _targetDocument_activeElement;\n const containsActive = !!((_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.contains((_targetDocument_activeElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.activeElement) !== null && _targetDocument_activeElement !== void 0 ? _targetDocument_activeElement : null));\n if (timerTimeout < 0) {\n setRunning(true);\n return;\n }\n if (!containsActive) {\n setRunning(true);\n }\n });\n React.useImperativeHandle(imperativeRef, ()=>({\n focus: ()=>{\n if (!toastRef.current) {\n return;\n }\n toastRef.current.focus();\n },\n play: ()=>{\n imperativePauseRef.current = false;\n play();\n },\n pause: ()=>{\n imperativePauseRef.current = true;\n pause();\n }\n }));\n React.useEffect(()=>{\n return ()=>onStatusChange('unmounted');\n }, [\n onStatusChange\n ]);\n React.useEffect(()=>{\n if (!targetDocument) {\n return;\n }\n if (pauseOnWindowBlur) {\n var _targetDocument_defaultView, _targetDocument_defaultView1;\n (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.addEventListener('focus', play);\n (_targetDocument_defaultView1 = targetDocument.defaultView) === null || _targetDocument_defaultView1 === void 0 ? void 0 : _targetDocument_defaultView1.addEventListener('blur', pause);\n return ()=>{\n var _targetDocument_defaultView, _targetDocument_defaultView1;\n (_targetDocument_defaultView = targetDocument.defaultView) === null || _targetDocument_defaultView === void 0 ? void 0 : _targetDocument_defaultView.removeEventListener('focus', play);\n (_targetDocument_defaultView1 = targetDocument.defaultView) === null || _targetDocument_defaultView1 === void 0 ? void 0 : _targetDocument_defaultView1.removeEventListener('blur', pause);\n };\n }\n }, [\n targetDocument,\n pause,\n play,\n pauseOnWindowBlur\n ]);\n // Users never actually use ToastContainer as a JSX but imperatively through useToastContainerController\n const userRootSlot = data.root;\n const onMotionFinish = React.useCallback((_, { direction })=>{\n if (direction === 'exit') {\n remove();\n }\n if (direction === 'enter') {\n // start toast once it's fully animated in\n play();\n onStatusChange('visible');\n }\n }, [\n onStatusChange,\n play,\n remove\n ]);\n const onMouseEnter = useEventCallback((e)=>{\n var _userRootSlot_onMouseEnter;\n pause();\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onMouseEnter = userRootSlot.onMouseEnter) === null || _userRootSlot_onMouseEnter === void 0 ? void 0 : _userRootSlot_onMouseEnter.call(userRootSlot, e);\n });\n const onMouseLeave = useEventCallback((e)=>{\n var _userRootSlot_onMouseEnter;\n play();\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onMouseEnter = userRootSlot.onMouseEnter) === null || _userRootSlot_onMouseEnter === void 0 ? void 0 : _userRootSlot_onMouseEnter.call(userRootSlot, e);\n });\n const { findFirstFocusable, findLastFocusable } = useFocusFinders();\n const onKeyDown = useEventCallback((e)=>{\n var _userRootSlot_onKeyDown;\n if (e.key === Delete) {\n e.preventDefault();\n close();\n }\n if (e.key === Tab && e.currentTarget === e.target) {\n e.preventDefault();\n if (e.shiftKey) {\n var _findLastFocusable;\n (_findLastFocusable = findLastFocusable(e.currentTarget)) === null || _findLastFocusable === void 0 ? void 0 : _findLastFocusable.focus();\n } else {\n var _findFirstFocusable;\n (_findFirstFocusable = findFirstFocusable(e.currentTarget)) === null || _findFirstFocusable === void 0 ? void 0 : _findFirstFocusable.focus();\n }\n }\n userRootSlot === null || userRootSlot === void 0 ? void 0 : (_userRootSlot_onKeyDown = userRootSlot.onKeyDown) === null || _userRootSlot_onKeyDown === void 0 ? void 0 : _userRootSlot_onKeyDown.call(userRootSlot, e);\n });\n React.useEffect(()=>{\n var _toastRef_current;\n if (!visible) {\n return;\n }\n const politeness = desiredPoliteness !== null && desiredPoliteness !== void 0 ? desiredPoliteness : intentPolitenessMap[intent];\n var _toastRef_current_textContent;\n announce((_toastRef_current_textContent = (_toastRef_current = toastRef.current) === null || _toastRef_current === void 0 ? void 0 : _toastRef_current.textContent) !== null && _toastRef_current_textContent !== void 0 ? _toastRef_current_textContent : '', {\n politeness\n });\n }, [\n announce,\n desiredPoliteness,\n toastRef,\n visible,\n updateId,\n intent\n ]);\n React.useEffect(()=>{\n return ()=>{\n if (focusedToastBeforeClose.current) {\n focusedToastBeforeClose.current = false;\n tryRestoreFocus();\n }\n };\n }, [\n tryRestoreFocus\n ]);\n return {\n components: {\n timer: Timer,\n root: 'div'\n },\n timer: slot.always({\n onTimeout: close,\n running,\n timeout: timerTimeout !== null && timerTimeout !== void 0 ? timerTimeout : -1\n }, {\n elementType: Timer\n }),\n root: slot.always(getIntrinsicElementProps('div', {\n // FIXME:\n // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`\n // but since it would be a breaking change to fix it, we are casting ref to it's proper type\n ref: useMergedRefs(ref, toastRef),\n children,\n tabIndex: 0,\n role: 'listitem',\n 'aria-labelledby': titleId,\n 'aria-describedby': bodyId,\n ...rest,\n ...userRootSlot,\n ...focusableGroupAttribute,\n onMouseEnter,\n onMouseLeave,\n onKeyDown\n }), {\n elementType: 'div'\n }),\n timerTimeout,\n transitionTimeout: 0,\n running,\n visible,\n remove,\n close,\n onTransitionEntering: ()=>{\n /* no-op */ },\n updateId,\n nodeRef: toastRef,\n intent,\n titleId,\n bodyId,\n onMotionFinish\n };\n};\n"],"names":["useToastContainer_unstable","intentPolitenessMap","success","warning","error","info","props","ref","visible","children","close","closeProp","remove","updateId","announce","data","timeout","timerTimeout","politeness","desiredPoliteness","intent","pauseOnHover","pauseOnWindowBlur","imperativeRef","tryRestoreFocus","rest","titleId","useId","bodyId","toastRef","React","useRef","targetDocument","useFluent_unstable","running","setRunning","useState","imperativePauseRef","focusedToastBeforeClose","focusableGroupAttribute","useFocusableGroup","tabBehavior","ignoreDefaultKeydown","Tab","Escape","Enter","useEventCallback","_toastRef_current","activeElement","current","contains","onStatusChange","status","_props_onStatusChange","call","pause","play","_targetDocument_activeElement","containsActive","useImperativeHandle","focus","useEffect","_targetDocument_defaultView","_targetDocument_defaultView1","defaultView","addEventListener","removeEventListener","userRootSlot","root","onMotionFinish","useCallback","_","direction","onMouseEnter","e","_userRootSlot_onMouseEnter","onMouseLeave","findFirstFocusable","findLastFocusable","useFocusFinders","onKeyDown","_userRootSlot_onKeyDown","key","Delete","preventDefault","currentTarget","target","shiftKey","_findLastFocusable","_findFirstFocusable","_toastRef_current_textContent","textContent","components","timer","Timer","slot","always","onTimeout","elementType","getIntrinsicElementProps","useMergedRefs","tabIndex","role","transitionTimeout","onTransitionEntering","nodeRef"],"mappings":";;;;+BAoBiBA;;;eAAAA;;;;iEApBM;gCACgE;qCACpD;8BACP;8BACuB;uBAC7B;AACtB,MAAMC,sBAAsB;IACxBC,SAAS;IACTC,SAAS;IACTC,OAAO;IACPC,MAAM;AACV;AASW,MAAML,6BAA6B,CAACM,OAAOC;IAClD,MAAM,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,OAAOC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,SAASC,YAAY,EAAEC,YAAYC,iBAAiB,EAAEC,SAAS,MAAM,EAAEC,YAAY,EAAEC,iBAAiB,EAAEC,aAAa,EAAEC,eAAe,EAAE,GAAGC,MAAM,GAAGnB;IACnO,MAAMoB,UAAUC,IAAAA,qBAAK,EAAC;IACtB,MAAMC,SAASD,IAAAA,qBAAK,EAAC;IACrB,MAAME,WAAWC,OAAMC,MAAM,CAAC;IAC9B,MAAM,EAAEC,cAAc,EAAE,GAAGC,IAAAA,uCAAkB;IAC7C,MAAM,CAACC,SAASC,WAAW,GAAGL,OAAMM,QAAQ,CAAC;IAC7C,MAAMC,qBAAqBP,OAAMC,MAAM,CAAC;IACxC,MAAMO,0BAA0BR,OAAMC,MAAM,CAAC;IAC7C,MAAMQ,0BAA0BC,IAAAA,+BAAiB,EAAC;QAC9CC,aAAa;QACb,oDAAoD;QACpD,mDAAmD;QACnDC,sBAAsB;YAClBC,KAAK;YACLC,QAAQ;YACRC,OAAO;QACX;IACJ;IACA,MAAMnC,QAAQoC,IAAAA,gCAAgB,EAAC;QAC3B,IAAIC;QACJ,MAAMC,gBAAgBhB,mBAAmB,QAAQA,mBAAmB,KAAK,IAAI,KAAK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ACA8F,sBAAsB;QACtB,SAAS,GAAG;QACZ3F;QACA4F,SAAS5E;QACTT;QACAM;QACAE;QACAyC;IACJ;AACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-toast",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240611-0405.1",
|
|
4
4
|
"description": "Toast component for Fluent UI",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -19,32 +19,32 @@
|
|
|
19
19
|
"just": "just-scripts",
|
|
20
20
|
"lint": "just-scripts lint",
|
|
21
21
|
"test": "jest --passWithNoTests",
|
|
22
|
-
"
|
|
23
|
-
"type-check": "tsc -b tsconfig.json",
|
|
22
|
+
"type-check": "just-scripts type-check",
|
|
24
23
|
"generate-api": "just-scripts generate-api",
|
|
25
|
-
"storybook": "
|
|
24
|
+
"storybook": "yarn --cwd ../stories storybook",
|
|
26
25
|
"start": "yarn storybook",
|
|
27
26
|
"e2e": "cypress run --component",
|
|
28
27
|
"e2e:local": "cypress open --component"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
30
|
+
"@fluentui/react-provider": "0.0.0-nightly-20240611-0405.1",
|
|
31
31
|
"@fluentui/eslint-plugin": "*",
|
|
32
|
-
"@fluentui/react-conformance": "0.0.0-nightly-
|
|
33
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
|
32
|
+
"@fluentui/react-conformance": "0.0.0-nightly-20240611-0405.1",
|
|
33
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20240611-0405.1",
|
|
34
34
|
"@fluentui/scripts-api-extractor": "*",
|
|
35
35
|
"@fluentui/scripts-tasks": "*"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@fluentui/keyboard-keys": "0.0.0-nightly-
|
|
39
|
-
"@fluentui/react-aria": "0.0.0-nightly-
|
|
38
|
+
"@fluentui/keyboard-keys": "0.0.0-nightly-20240611-0405.1",
|
|
39
|
+
"@fluentui/react-aria": "0.0.0-nightly-20240611-0405.1",
|
|
40
40
|
"@fluentui/react-icons": "^2.0.239",
|
|
41
|
-
"@fluentui/react-jsx-runtime": "0.0.0-nightly-
|
|
42
|
-
"@fluentui/react-motion": "0.0.0-nightly-
|
|
43
|
-
"@fluentui/react-portal": "0.0.0-nightly-
|
|
44
|
-
"@fluentui/react-shared-contexts": "0.0.0-nightly-
|
|
45
|
-
"@fluentui/react-tabster": "0.0.0-nightly-
|
|
46
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
|
47
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
|
41
|
+
"@fluentui/react-jsx-runtime": "0.0.0-nightly-20240611-0405.1",
|
|
42
|
+
"@fluentui/react-motion": "0.0.0-nightly-20240611-0405.1",
|
|
43
|
+
"@fluentui/react-portal": "0.0.0-nightly-20240611-0405.1",
|
|
44
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20240611-0405.1",
|
|
45
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20240611-0405.1",
|
|
46
|
+
"@fluentui/react-theme": "0.0.0-nightly-20240611-0405.1",
|
|
47
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20240611-0405.1",
|
|
48
48
|
"@griffel/react": "^1.5.22",
|
|
49
49
|
"@swc/helpers": "^0.5.1"
|
|
50
50
|
},
|