@fluentui/react-context-selector 9.0.0-rc.6 → 9.0.0-rc.9

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.json CHANGED
@@ -2,7 +2,72 @@
2
2
  "name": "@fluentui/react-context-selector",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 19 Apr 2022 19:14:32 GMT",
5
+ "date": "Mon, 23 May 2022 12:10:50 GMT",
6
+ "tag": "@fluentui/react-context-selector_v9.0.0-rc.9",
7
+ "version": "9.0.0-rc.9",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-context-selector",
13
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
14
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 05 May 2022 18:26:23 GMT",
21
+ "tag": "@fluentui/react-context-selector_v9.0.0-rc.8",
22
+ "version": "9.0.0-rc.8",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "martinhochel@microsoft.com",
27
+ "package": "@fluentui/react-context-selector",
28
+ "commit": "e465622ca241f3dd0534da50823a51e7311fd9ef",
29
+ "comment": "feat: ship rolluped only dts"
30
+ },
31
+ {
32
+ "author": "humberto_makoto@hotmail.com",
33
+ "package": "@fluentui/react-context-selector",
34
+ "commit": "982f68bd9b216ed71dc5e4fb7e77b56e73a8a468",
35
+ "comment": "Removing star exports."
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-context-selector",
40
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
41
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Wed, 04 May 2022 13:26:42 GMT",
48
+ "tag": "@fluentui/react-context-selector_v9.0.0-rc.7",
49
+ "version": "9.0.0-rc.7",
50
+ "comments": {
51
+ "none": [
52
+ {
53
+ "author": "tristan.watanabe@gmail.com",
54
+ "package": "@fluentui/react-context-selector",
55
+ "commit": "8997f88bdd280b6831338d6c231b387fd554046e",
56
+ "comment": "react-context-selector: Move to new common folder."
57
+ }
58
+ ],
59
+ "prerelease": [
60
+ {
61
+ "author": "beachball",
62
+ "package": "@fluentui/react-context-selector",
63
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.7",
64
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "date": "Tue, 19 Apr 2022 19:17:22 GMT",
6
71
  "tag": "@fluentui/react-context-selector_v9.0.0-rc.6",
7
72
  "version": "9.0.0-rc.6",
8
73
  "comments": {
@@ -31,7 +96,7 @@
31
96
  "author": "beachball",
32
97
  "package": "@fluentui/react-context-selector",
33
98
  "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
34
- "commit": "9c8592decacb9f7b1dc608a03c9f991918806008"
99
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
35
100
  }
36
101
  ]
37
102
  }
package/CHANGELOG.md CHANGED
@@ -1,22 +1,51 @@
1
1
  # Change Log - @fluentui/react-context-selector
2
2
 
3
- This log was last generated on Tue, 19 Apr 2022 19:14:32 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 23 May 2022 12:10:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.9)
8
+
9
+ Mon, 23 May 2022 12:10:50 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.8..@fluentui/react-context-selector_v9.0.0-rc.9)
11
+
12
+ ### Changes
13
+
14
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
15
+
16
+ ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.8)
17
+
18
+ Thu, 05 May 2022 18:26:23 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.7..@fluentui/react-context-selector_v9.0.0-rc.8)
20
+
21
+ ### Changes
22
+
23
+ - feat: ship rolluped only dts ([PR #22823](https://github.com/microsoft/fluentui/pull/22823) by martinhochel@microsoft.com)
24
+ - Removing star exports. ([PR #22801](https://github.com/microsoft/fluentui/pull/22801) by humberto_makoto@hotmail.com)
25
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
26
+
27
+ ## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.7)
28
+
29
+ Wed, 04 May 2022 13:26:42 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.6..@fluentui/react-context-selector_v9.0.0-rc.7)
31
+
32
+ ### Changes
33
+
34
+ - Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
35
+
7
36
  ## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.6)
8
37
 
9
- Tue, 19 Apr 2022 19:14:32 GMT
38
+ Tue, 19 Apr 2022 19:17:22 GMT
10
39
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.5..@fluentui/react-context-selector_v9.0.0-rc.6)
11
40
 
12
41
  ### Changes
13
42
 
14
43
  - Move `scheduler` to a peer dependency and allow appropriate versions for React 16 or 17 ([PR #21769](https://github.com/microsoft/fluentui/pull/21769) by elcraig@microsoft.com)
15
- - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #22367](https://github.com/microsoft/fluentui/pull/22367) by beachball)
44
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
16
45
 
17
46
  ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.5)
18
47
 
19
- Fri, 04 Mar 2022 05:17:36 GMT
48
+ Fri, 04 Mar 2022 05:17:36 GMT
20
49
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.4..@fluentui/react-context-selector_v9.0.0-rc.5)
21
50
 
22
51
  ### Changes
@@ -26,7 +55,7 @@ Fri, 04 Mar 2022 05:17:36 GMT
26
55
 
27
56
  ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.4)
28
57
 
29
- Tue, 01 Mar 2022 02:17:40 GMT
58
+ Tue, 01 Mar 2022 02:17:40 GMT
30
59
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.3..@fluentui/react-context-selector_v9.0.0-rc.4)
31
60
 
32
61
  ### Changes
@@ -35,7 +64,7 @@ Tue, 01 Mar 2022 02:17:40 GMT
35
64
 
36
65
  ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.3)
37
66
 
38
- Fri, 18 Feb 2022 13:35:31 GMT
67
+ Fri, 18 Feb 2022 13:35:31 GMT
39
68
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.1..@fluentui/react-context-selector_v9.0.0-rc.3)
40
69
 
41
70
  ### Changes
@@ -45,7 +74,7 @@ Fri, 18 Feb 2022 13:35:31 GMT
45
74
 
46
75
  ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.1)
47
76
 
48
- Thu, 10 Feb 2022 08:51:09 GMT
77
+ Thu, 10 Feb 2022 08:51:09 GMT
49
78
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-beta.4..@fluentui/react-context-selector_v9.0.0-rc.1)
50
79
 
51
80
  ### Changes
@@ -56,7 +85,7 @@ Thu, 10 Feb 2022 08:51:09 GMT
56
85
 
57
86
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-beta.4)
58
87
 
59
- Thu, 25 Nov 2021 08:34:13 GMT
88
+ Thu, 25 Nov 2021 08:34:13 GMT
60
89
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-beta.3..@fluentui/react-context-selector_v9.0.0-beta.4)
61
90
 
62
91
  ### Changes
@@ -65,7 +94,7 @@ Thu, 25 Nov 2021 08:34:13 GMT
65
94
 
66
95
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-beta.3)
67
96
 
68
- Fri, 12 Nov 2021 13:25:22 GMT
97
+ Fri, 12 Nov 2021 13:25:22 GMT
69
98
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-beta.2..@fluentui/react-context-selector_v9.0.0-beta.3)
70
99
 
71
100
  ### Changes
@@ -75,7 +104,7 @@ Fri, 12 Nov 2021 13:25:22 GMT
75
104
 
76
105
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-beta.2)
77
106
 
78
- Wed, 27 Oct 2021 12:14:24 GMT
107
+ Wed, 27 Oct 2021 12:14:24 GMT
79
108
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-beta.1..@fluentui/react-context-selector_v9.0.0-beta.2)
80
109
 
81
110
  ### Changes
@@ -84,7 +113,7 @@ Wed, 27 Oct 2021 12:14:24 GMT
84
113
 
85
114
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-beta.1)
86
115
 
87
- Wed, 06 Oct 2021 10:37:22 GMT
116
+ Wed, 06 Oct 2021 10:37:22 GMT
88
117
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.39..@fluentui/react-context-selector_v9.0.0-beta.1)
89
118
 
90
119
  ### Changes
@@ -94,7 +123,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
94
123
 
95
124
  ## [9.0.0-alpha.39](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.39)
96
125
 
97
- Tue, 05 Oct 2021 09:28:07 GMT
126
+ Tue, 05 Oct 2021 09:28:07 GMT
98
127
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.38..@fluentui/react-context-selector_v9.0.0-alpha.39)
99
128
 
100
129
  ### Changes
@@ -103,7 +132,7 @@ Tue, 05 Oct 2021 09:28:07 GMT
103
132
 
104
133
  ## [9.0.0-alpha.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.38)
105
134
 
106
- Fri, 01 Oct 2021 14:13:08 GMT
135
+ Fri, 01 Oct 2021 14:13:08 GMT
107
136
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.36..@fluentui/react-context-selector_v9.0.0-alpha.38)
108
137
 
109
138
  ### Changes
@@ -113,7 +142,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
113
142
 
114
143
  ## [9.0.0-alpha.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.36)
115
144
 
116
- Mon, 27 Sep 2021 08:06:00 GMT
145
+ Mon, 27 Sep 2021 08:06:00 GMT
117
146
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.35..@fluentui/react-context-selector_v9.0.0-alpha.36)
118
147
 
119
148
  ### Changes
@@ -122,7 +151,7 @@ Mon, 27 Sep 2021 08:06:00 GMT
122
151
 
123
152
  ## [9.0.0-alpha.35](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.35)
124
153
 
125
- Fri, 24 Sep 2021 09:17:17 GMT
154
+ Fri, 24 Sep 2021 09:17:17 GMT
126
155
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.34..@fluentui/react-context-selector_v9.0.0-alpha.35)
127
156
 
128
157
  ### Changes
@@ -131,7 +160,7 @@ Fri, 24 Sep 2021 09:17:17 GMT
131
160
 
132
161
  ## [9.0.0-alpha.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.34)
133
162
 
134
- Thu, 23 Sep 2021 08:21:34 GMT
163
+ Thu, 23 Sep 2021 08:21:34 GMT
135
164
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.33..@fluentui/react-context-selector_v9.0.0-alpha.34)
136
165
 
137
166
  ### Changes
@@ -140,7 +169,7 @@ Thu, 23 Sep 2021 08:21:34 GMT
140
169
 
141
170
  ## [9.0.0-alpha.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.33)
142
171
 
143
- Wed, 22 Sep 2021 10:10:07 GMT
172
+ Wed, 22 Sep 2021 10:10:07 GMT
144
173
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.32..@fluentui/react-context-selector_v9.0.0-alpha.33)
145
174
 
146
175
  ### Changes
@@ -149,7 +178,7 @@ Wed, 22 Sep 2021 10:10:07 GMT
149
178
 
150
179
  ## [9.0.0-alpha.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.32)
151
180
 
152
- Fri, 17 Sep 2021 07:35:26 GMT
181
+ Fri, 17 Sep 2021 07:35:26 GMT
153
182
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.31..@fluentui/react-context-selector_v9.0.0-alpha.32)
154
183
 
155
184
  ### Changes
@@ -158,7 +187,7 @@ Fri, 17 Sep 2021 07:35:26 GMT
158
187
 
159
188
  ## [9.0.0-alpha.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.31)
160
189
 
161
- Thu, 16 Sep 2021 07:38:39 GMT
190
+ Thu, 16 Sep 2021 07:38:39 GMT
162
191
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.30..@fluentui/react-context-selector_v9.0.0-alpha.31)
163
192
 
164
193
  ### Changes
@@ -167,7 +196,7 @@ Thu, 16 Sep 2021 07:38:39 GMT
167
196
 
168
197
  ## [9.0.0-alpha.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.30)
169
198
 
170
- Tue, 14 Sep 2021 20:09:02 GMT
199
+ Tue, 14 Sep 2021 20:09:02 GMT
171
200
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.29..@fluentui/react-context-selector_v9.0.0-alpha.30)
172
201
 
173
202
  ### Changes
@@ -176,7 +205,7 @@ Tue, 14 Sep 2021 20:09:02 GMT
176
205
 
177
206
  ## [9.0.0-alpha.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.29)
178
207
 
179
- Fri, 10 Sep 2021 16:31:53 GMT
208
+ Fri, 10 Sep 2021 16:31:53 GMT
180
209
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.28..@fluentui/react-context-selector_v9.0.0-alpha.29)
181
210
 
182
211
  ### Changes
@@ -186,7 +215,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
186
215
 
187
216
  ## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.28)
188
217
 
189
- Fri, 10 Sep 2021 07:39:51 GMT
218
+ Fri, 10 Sep 2021 07:39:51 GMT
190
219
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.27..@fluentui/react-context-selector_v9.0.0-alpha.28)
191
220
 
192
221
  ### Changes
@@ -195,7 +224,7 @@ Fri, 10 Sep 2021 07:39:51 GMT
195
224
 
196
225
  ## [9.0.0-alpha.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.27)
197
226
 
198
- Mon, 06 Sep 2021 07:34:53 GMT
227
+ Mon, 06 Sep 2021 07:34:53 GMT
199
228
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.26..@fluentui/react-context-selector_v9.0.0-alpha.27)
200
229
 
201
230
  ### Changes
@@ -204,7 +233,7 @@ Mon, 06 Sep 2021 07:34:53 GMT
204
233
 
205
234
  ## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.26)
206
235
 
207
- Wed, 01 Sep 2021 07:39:56 GMT
236
+ Wed, 01 Sep 2021 07:39:56 GMT
208
237
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.25..@fluentui/react-context-selector_v9.0.0-alpha.26)
209
238
 
210
239
  ### Changes
@@ -213,7 +242,7 @@ Wed, 01 Sep 2021 07:39:56 GMT
213
242
 
214
243
  ## [9.0.0-alpha.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.25)
215
244
 
216
- Tue, 31 Aug 2021 07:37:47 GMT
245
+ Tue, 31 Aug 2021 07:37:47 GMT
217
246
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.24..@fluentui/react-context-selector_v9.0.0-alpha.25)
218
247
 
219
248
  ### Changes
@@ -222,7 +251,7 @@ Tue, 31 Aug 2021 07:37:47 GMT
222
251
 
223
252
  ## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.24)
224
253
 
225
- Fri, 20 Aug 2021 07:37:28 GMT
254
+ Fri, 20 Aug 2021 07:37:28 GMT
226
255
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.23..@fluentui/react-context-selector_v9.0.0-alpha.24)
227
256
 
228
257
  ### Changes
@@ -231,7 +260,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
231
260
 
232
261
  ## [9.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.23)
233
262
 
234
- Thu, 19 Aug 2021 07:41:35 GMT
263
+ Thu, 19 Aug 2021 07:41:35 GMT
235
264
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.22..@fluentui/react-context-selector_v9.0.0-alpha.23)
236
265
 
237
266
  ### Changes
@@ -240,7 +269,7 @@ Thu, 19 Aug 2021 07:41:35 GMT
240
269
 
241
270
  ## [9.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.22)
242
271
 
243
- Fri, 06 Aug 2021 07:35:14 GMT
272
+ Fri, 06 Aug 2021 07:35:14 GMT
244
273
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.21..@fluentui/react-context-selector_v9.0.0-alpha.22)
245
274
 
246
275
  ### Changes
@@ -249,7 +278,7 @@ Fri, 06 Aug 2021 07:35:14 GMT
249
278
 
250
279
  ## [9.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.21)
251
280
 
252
- Tue, 03 Aug 2021 07:39:30 GMT
281
+ Tue, 03 Aug 2021 07:39:30 GMT
253
282
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.20..@fluentui/react-context-selector_v9.0.0-alpha.21)
254
283
 
255
284
  ### Patches
@@ -263,7 +292,7 @@ Tue, 03 Aug 2021 07:39:30 GMT
263
292
 
264
293
  ## [9.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.20)
265
294
 
266
- Mon, 02 Aug 2021 07:36:20 GMT
295
+ Mon, 02 Aug 2021 07:36:20 GMT
267
296
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.19..@fluentui/react-context-selector_v9.0.0-alpha.20)
268
297
 
269
298
  ### Changes
@@ -272,7 +301,7 @@ Mon, 02 Aug 2021 07:36:20 GMT
272
301
 
273
302
  ## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.19)
274
303
 
275
- Fri, 23 Jul 2021 07:38:19 GMT
304
+ Fri, 23 Jul 2021 07:38:19 GMT
276
305
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.18..@fluentui/react-context-selector_v9.0.0-alpha.19)
277
306
 
278
307
  ### Changes
@@ -281,7 +310,7 @@ Fri, 23 Jul 2021 07:38:19 GMT
281
310
 
282
311
  ## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.18)
283
312
 
284
- Thu, 22 Jul 2021 07:36:55 GMT
313
+ Thu, 22 Jul 2021 07:36:55 GMT
285
314
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.17..@fluentui/react-context-selector_v9.0.0-alpha.18)
286
315
 
287
316
  ### Changes
@@ -290,7 +319,7 @@ Thu, 22 Jul 2021 07:36:55 GMT
290
319
 
291
320
  ## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.17)
292
321
 
293
- Thu, 15 Jul 2021 07:36:18 GMT
322
+ Thu, 15 Jul 2021 07:36:18 GMT
294
323
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.16..@fluentui/react-context-selector_v9.0.0-alpha.17)
295
324
 
296
325
  ### Changes
@@ -299,7 +328,7 @@ Thu, 15 Jul 2021 07:36:18 GMT
299
328
 
300
329
  ## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.16)
301
330
 
302
- Fri, 09 Jul 2021 07:39:31 GMT
331
+ Fri, 09 Jul 2021 07:39:31 GMT
303
332
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.15..@fluentui/react-context-selector_v9.0.0-alpha.16)
304
333
 
305
334
  ### Patches
@@ -313,7 +342,7 @@ Fri, 09 Jul 2021 07:39:31 GMT
313
342
 
314
343
  ## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.15)
315
344
 
316
- Fri, 02 Jul 2021 23:15:55 GMT
345
+ Fri, 02 Jul 2021 23:15:55 GMT
317
346
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.14..@fluentui/react-context-selector_v9.0.0-alpha.15)
318
347
 
319
348
  ### Changes
@@ -322,7 +351,7 @@ Fri, 02 Jul 2021 23:15:55 GMT
322
351
 
323
352
  ## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.14)
324
353
 
325
- Fri, 02 Jul 2021 07:37:06 GMT
354
+ Fri, 02 Jul 2021 07:37:06 GMT
326
355
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.13..@fluentui/react-context-selector_v9.0.0-alpha.14)
327
356
 
328
357
  ### Changes
@@ -331,7 +360,7 @@ Fri, 02 Jul 2021 07:37:06 GMT
331
360
 
332
361
  ## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.13)
333
362
 
334
- Tue, 15 Jun 2021 07:40:20 GMT
363
+ Tue, 15 Jun 2021 07:40:20 GMT
335
364
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.12..@fluentui/react-context-selector_v9.0.0-alpha.13)
336
365
 
337
366
  ### Changes
@@ -340,7 +369,7 @@ Tue, 15 Jun 2021 07:40:20 GMT
340
369
 
341
370
  ## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.12)
342
371
 
343
- Mon, 07 Jun 2021 07:38:15 GMT
372
+ Mon, 07 Jun 2021 07:38:15 GMT
344
373
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.11..@fluentui/react-context-selector_v9.0.0-alpha.12)
345
374
 
346
375
  ### Patches
@@ -354,7 +383,7 @@ Mon, 07 Jun 2021 07:38:15 GMT
354
383
 
355
384
  ## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.11)
356
385
 
357
- Fri, 04 Jun 2021 07:37:23 GMT
386
+ Fri, 04 Jun 2021 07:37:23 GMT
358
387
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.10..@fluentui/react-context-selector_v9.0.0-alpha.11)
359
388
 
360
389
  ### Changes
@@ -363,7 +392,7 @@ Fri, 04 Jun 2021 07:37:23 GMT
363
392
 
364
393
  ## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.10)
365
394
 
366
- Wed, 26 May 2021 07:35:43 GMT
395
+ Wed, 26 May 2021 07:35:43 GMT
367
396
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.9..@fluentui/react-context-selector_v9.0.0-alpha.10)
368
397
 
369
398
  ### Changes
@@ -372,7 +401,7 @@ Wed, 26 May 2021 07:35:43 GMT
372
401
 
373
402
  ## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.9)
374
403
 
375
- Fri, 21 May 2021 07:34:54 GMT
404
+ Fri, 21 May 2021 07:34:54 GMT
376
405
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.8..@fluentui/react-context-selector_v9.0.0-alpha.9)
377
406
 
378
407
  ### Changes
@@ -381,7 +410,7 @@ Fri, 21 May 2021 07:34:54 GMT
381
410
 
382
411
  ## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.8)
383
412
 
384
- Thu, 20 May 2021 07:41:54 GMT
413
+ Thu, 20 May 2021 07:41:54 GMT
385
414
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.7..@fluentui/react-context-selector_v9.0.0-alpha.8)
386
415
 
387
416
  ### Patches
@@ -395,7 +424,7 @@ Thu, 20 May 2021 07:41:54 GMT
395
424
 
396
425
  ## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.7)
397
426
 
398
- Wed, 19 May 2021 07:34:20 GMT
427
+ Wed, 19 May 2021 07:34:20 GMT
399
428
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.6..@fluentui/react-context-selector_v9.0.0-alpha.7)
400
429
 
401
430
  ### Changes
@@ -404,7 +433,7 @@ Wed, 19 May 2021 07:34:20 GMT
404
433
 
405
434
  ## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.6)
406
435
 
407
- Mon, 03 May 2021 07:45:19 GMT
436
+ Mon, 03 May 2021 07:45:19 GMT
408
437
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.5..@fluentui/react-context-selector_v9.0.0-alpha.6)
409
438
 
410
439
  ### Changes
@@ -413,7 +442,7 @@ Mon, 03 May 2021 07:45:19 GMT
413
442
 
414
443
  ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.5)
415
444
 
416
- Fri, 30 Apr 2021 07:42:23 GMT
445
+ Fri, 30 Apr 2021 07:42:23 GMT
417
446
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.4..@fluentui/react-context-selector_v9.0.0-alpha.5)
418
447
 
419
448
  ### Patches
@@ -427,7 +456,7 @@ Fri, 30 Apr 2021 07:42:23 GMT
427
456
 
428
457
  ## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.4)
429
458
 
430
- Fri, 23 Apr 2021 07:37:10 GMT
459
+ Fri, 23 Apr 2021 07:37:10 GMT
431
460
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.3..@fluentui/react-context-selector_v9.0.0-alpha.4)
432
461
 
433
462
  ### Patches
@@ -441,7 +470,7 @@ Fri, 23 Apr 2021 07:37:10 GMT
441
470
 
442
471
  ## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.3)
443
472
 
444
- Thu, 22 Apr 2021 07:33:28 GMT
473
+ Thu, 22 Apr 2021 07:33:28 GMT
445
474
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.2..@fluentui/react-context-selector_v9.0.0-alpha.3)
446
475
 
447
476
  ### Changes
@@ -450,7 +479,7 @@ Thu, 22 Apr 2021 07:33:28 GMT
450
479
 
451
480
  ## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.2)
452
481
 
453
- Wed, 31 Mar 2021 00:53:43 GMT
482
+ Wed, 31 Mar 2021 00:53:43 GMT
454
483
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-alpha.1..@fluentui/react-context-selector_v9.0.0-alpha.2)
455
484
 
456
485
  ### Patches
@@ -460,7 +489,7 @@ Wed, 31 Mar 2021 00:53:43 GMT
460
489
 
461
490
  ## [9.0.0-alpha.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-alpha.1)
462
491
 
463
- Tue, 30 Mar 2021 07:34:45 GMT
492
+ Tue, 30 Mar 2021 07:34:45 GMT
464
493
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v0.53.4..@fluentui/react-context-selector_v9.0.0-alpha.1)
465
494
 
466
495
  ### Changes
@@ -470,7 +499,7 @@ Tue, 30 Mar 2021 07:34:45 GMT
470
499
 
471
500
  ## [0.53.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v0.53.4)
472
501
 
473
- Mon, 15 Mar 2021 07:36:20 GMT
502
+ Mon, 15 Mar 2021 07:36:20 GMT
474
503
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v0.53.3..@fluentui/react-context-selector_v0.53.4)
475
504
 
476
505
  ### Patches
@@ -479,7 +508,7 @@ Mon, 15 Mar 2021 07:36:20 GMT
479
508
 
480
509
  ## [0.53.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v0.53.3)
481
510
 
482
- Fri, 26 Feb 2021 01:16:27 GMT
511
+ Fri, 26 Feb 2021 01:16:27 GMT
483
512
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v0.53.2..@fluentui/react-context-selector_v0.53.3)
484
513
 
485
514
  ### Patches
@@ -488,7 +517,7 @@ Fri, 26 Feb 2021 01:16:27 GMT
488
517
 
489
518
  ## [0.53.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v0.53.2)
490
519
 
491
- Mon, 22 Feb 2021 12:26:22 GMT
520
+ Mon, 22 Feb 2021 12:26:22 GMT
492
521
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v0.53.0..@fluentui/react-context-selector_v0.53.2)
493
522
 
494
523
  ### Patches
File without changes
File without changes
package/lib/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export { createContext } from './createContext';
2
2
  export { useContextSelector } from './useContextSelector';
3
3
  export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
5
4
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,SAAS,CAAC","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport type { Context, ContextSelector, ContextValue, ContextValues, ContextVersion } from './types';\n"]}
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useHasParentContext = exports.useContextSelector = exports.createContext = void 0;
7
7
 
8
- const tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
8
  var createContext_1 = /*#__PURE__*/require("./createContext");
11
9
 
12
10
  Object.defineProperty(exports, "createContext", {
@@ -33,6 +31,4 @@ Object.defineProperty(exports, "useHasParentContext", {
33
31
  return useHasParentContext_1.useHasParentContext;
34
32
  }
35
33
  });
36
-
37
- tslib_1.__exportStar(require("./types"), exports);
38
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,eAAA,CAAA,aAAA;AAAa;AAAb,CAAA;;AACT,IAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,oBAAA,CAAA,kBAAA;AAAkB;AAAlB,CAAA;;AACT,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA;;AACT,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport * from './types';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,eAAA,CAAA,aAAA;AAAa;AAAb,CAAA;;AACT,IAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,oBAAA,CAAA,kBAAA;AAAkB;AAAlB,CAAA;;AACT,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport type { Context, ContextSelector, ContextValue, ContextValues, ContextVersion } from './types';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-context-selector",
3
- "version": "9.0.0-rc.6",
3
+ "version": "9.0.0-rc.9",
4
4
  "description": "React useContextSelector hook in userland",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "lint": "just-scripts lint",
20
20
  "test": "jest --passWithNoTests",
21
21
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
22
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-context-selector/src && yarn docs",
22
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-context-selector/src && yarn docs",
23
23
  "type-check": "tsc -b tsconfig.json"
24
24
  },
25
25
  "devDependencies": {
@@ -27,7 +27,7 @@
27
27
  "@fluentui/scripts": "^1.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@fluentui/react-utilities": "9.0.0-rc.6",
30
+ "@fluentui/react-utilities": "9.0.0-rc.9",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- import { Context } from './types';
2
- export declare const createContext: <Value>(defaultValue: Value) => Context<Value>;
package/lib/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { createContext } from './createContext';
2
- export { useContextSelector } from './useContextSelector';
3
- export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
package/lib/types.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- export declare type Context<Value> = React.Context<Value> & {
3
- Provider: React.FC<React.ProviderProps<Value>>;
4
- Consumer: never;
5
- };
6
- export declare type ContextSelector<Value, SelectedValue> = (value: Value) => SelectedValue;
7
- export declare type ContextVersion = number;
8
- export declare type ContextValue<Value> = {
9
- /** Holds a set of subscribers from components. */
10
- listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
11
- /** Holds an actual value of React's context that will be propagated down for computations. */
12
- value: React.MutableRefObject<Value>;
13
- /** A version field is used to sync a context value and consumers. */
14
- version: React.MutableRefObject<ContextVersion>;
15
- };
16
- export declare type ContextValues<Value> = ContextValue<Value> & {
17
- /** List of listners to publish changes */
18
- listeners: ((payload: readonly [ContextVersion, Record<string, Value>]) => void)[];
19
- };
@@ -1,7 +0,0 @@
1
- import { Context, ContextSelector } from './types';
2
- /**
3
- * This hook returns context selected value by selector.
4
- * It will only accept context created by `createContext`.
5
- * It will trigger re-render if only the selected value is referencially changed.
6
- */
7
- export declare const useContextSelector: <Value, SelectedValue>(context: Context<Value>, selector: ContextSelector<Value, SelectedValue>) => SelectedValue;
@@ -1,9 +0,0 @@
1
- import { Context } from './types';
2
- /**
3
- * Utility hook for contexts created by react-context-selector to determine if a parent context exists
4
- * WARNING: This hook will not work for native React contexts
5
- *
6
- * @param context - context created by react-context-selector
7
- * @returns whether the hook is wrapped by a parent context
8
- */
9
- export declare function useHasParentContext<Value>(context: Context<Value>): boolean;
@@ -1,2 +0,0 @@
1
- import { Context } from './types';
2
- export declare const createContext: <Value>(defaultValue: Value) => Context<Value>;
@@ -1,4 +0,0 @@
1
- export { createContext } from './createContext';
2
- export { useContextSelector } from './useContextSelector';
3
- export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- export declare type Context<Value> = React.Context<Value> & {
3
- Provider: React.FC<React.ProviderProps<Value>>;
4
- Consumer: never;
5
- };
6
- export declare type ContextSelector<Value, SelectedValue> = (value: Value) => SelectedValue;
7
- export declare type ContextVersion = number;
8
- export declare type ContextValue<Value> = {
9
- /** Holds a set of subscribers from components. */
10
- listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
11
- /** Holds an actual value of React's context that will be propagated down for computations. */
12
- value: React.MutableRefObject<Value>;
13
- /** A version field is used to sync a context value and consumers. */
14
- version: React.MutableRefObject<ContextVersion>;
15
- };
16
- export declare type ContextValues<Value> = ContextValue<Value> & {
17
- /** List of listners to publish changes */
18
- listeners: ((payload: readonly [ContextVersion, Record<string, Value>]) => void)[];
19
- };
@@ -1,7 +0,0 @@
1
- import { Context, ContextSelector } from './types';
2
- /**
3
- * This hook returns context selected value by selector.
4
- * It will only accept context created by `createContext`.
5
- * It will trigger re-render if only the selected value is referencially changed.
6
- */
7
- export declare const useContextSelector: <Value, SelectedValue>(context: Context<Value>, selector: ContextSelector<Value, SelectedValue>) => SelectedValue;
@@ -1,9 +0,0 @@
1
- import { Context } from './types';
2
- /**
3
- * Utility hook for contexts created by react-context-selector to determine if a parent context exists
4
- * WARNING: This hook will not work for native React contexts
5
- *
6
- * @param context - context created by react-context-selector
7
- * @returns whether the hook is wrapped by a parent context
8
- */
9
- export declare function useHasParentContext<Value>(context: Context<Value>): boolean;