@fluentui/react-provider 0.0.0-nightly0e0cf06c3420211029.1 → 0.0.0-nightly554221a5aa20211202.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.json +188 -20
- package/CHANGELOG.md +48 -13
- package/dist/react-provider.d.ts +5 -0
- package/lib/components/FluentProvider/FluentProvider.js +3 -3
- package/lib/components/FluentProvider/FluentProvider.js.map +1 -1
- package/lib/components/FluentProvider/index.d.ts +1 -0
- package/lib/components/FluentProvider/index.js +1 -0
- package/lib/components/FluentProvider/index.js.map +1 -1
- package/lib/components/FluentProvider/renderFluentProvider.js +6 -7
- package/lib/components/FluentProvider/renderFluentProvider.js.map +1 -1
- package/lib/components/FluentProvider/useFluentProvider.js +16 -18
- package/lib/components/FluentProvider/useFluentProvider.js.map +1 -1
- package/lib/components/FluentProvider/useFluentProviderContextValues.js +14 -14
- package/lib/components/FluentProvider/useFluentProviderContextValues.js.map +1 -1
- package/lib/components/FluentProvider/useFluentProviderStyles.d.ts +1 -0
- package/lib/components/FluentProvider/useFluentProviderStyles.js +5 -4
- package/lib/components/FluentProvider/useFluentProviderStyles.js.map +1 -1
- package/lib/components/FluentProvider/useThemeStyleTag.js +17 -16
- package/lib/components/FluentProvider/useThemeStyleTag.js.map +1 -1
- package/lib-commonjs/FluentProvider.js +1 -1
- package/lib-commonjs/components/FluentProvider/FluentProvider.js +8 -8
- package/lib-commonjs/components/FluentProvider/FluentProvider.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/index.d.ts +1 -0
- package/lib-commonjs/components/FluentProvider/index.js +3 -1
- package/lib-commonjs/components/FluentProvider/index.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/renderFluentProvider.js +10 -12
- package/lib-commonjs/components/FluentProvider/renderFluentProvider.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/useFluentProvider.js +20 -23
- package/lib-commonjs/components/FluentProvider/useFluentProvider.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/useFluentProviderContextValues.js +16 -16
- package/lib-commonjs/components/FluentProvider/useFluentProviderContextValues.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/useFluentProviderStyles.d.ts +1 -0
- package/lib-commonjs/components/FluentProvider/useFluentProviderStyles.js +8 -6
- package/lib-commonjs/components/FluentProvider/useFluentProviderStyles.js.map +1 -1
- package/lib-commonjs/components/FluentProvider/useThemeStyleTag.js +19 -18
- package/lib-commonjs/components/FluentProvider/useThemeStyleTag.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +12 -12
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,64 +2,232 @@
|
|
2
2
|
"name": "@fluentui/react-provider",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-provider_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Thu, 02 Dec 2021 04:16:16 GMT",
|
6
|
+
"tag": "@fluentui/react-provider_v0.0.0-nightly554221a5aa20211202.1",
|
7
|
+
"version": "0.0.0-nightly554221a5aa20211202.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-provider",
|
13
|
-
"commit": "
|
13
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "bsunderhus@microsoft.com",
|
18
|
+
"package": "@fluentui/react-provider",
|
19
|
+
"commit": "c9a03954ffd5d1a85284fb36ef4cd103ed8aa927",
|
20
|
+
"comment": "Remove `themeToCSSVariables` function"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-provider",
|
25
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
26
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-provider",
|
31
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly554221a5aa20211202.1",
|
32
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-provider",
|
37
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly554221a5aa20211202.1",
|
38
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-provider",
|
43
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly554221a5aa20211202.1",
|
44
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-provider",
|
49
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1",
|
50
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-provider",
|
55
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
56
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
57
|
+
},
|
16
58
|
{
|
17
59
|
"author": "beachball",
|
18
60
|
"package": "@fluentui/react-provider",
|
19
|
-
"comment": "Bump @fluentui/
|
20
|
-
"commit": "
|
61
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
62
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
21
63
|
},
|
22
64
|
{
|
23
65
|
"author": "beachball",
|
24
66
|
"package": "@fluentui/react-provider",
|
25
|
-
"comment": "Bump @fluentui/react-
|
26
|
-
"commit": "
|
67
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly554221a5aa20211202.1",
|
68
|
+
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"none": [
|
72
|
+
{
|
73
|
+
"author": "olfedias@microsoft.com",
|
74
|
+
"package": "@fluentui/react-provider",
|
75
|
+
"commit": "d11a238f944b891c13b3bfa56a17ddace52f37d5",
|
76
|
+
"comment": "update stories to not use CSS shorthands in styles"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"date": "Thu, 25 Nov 2021 08:34:16 GMT",
|
83
|
+
"tag": "@fluentui/react-provider_v9.0.0-beta.5",
|
84
|
+
"version": "9.0.0-beta.5",
|
85
|
+
"comments": {
|
86
|
+
"none": [
|
87
|
+
{
|
88
|
+
"author": "olfedias@microsoft.com",
|
89
|
+
"package": "@fluentui/react-provider",
|
90
|
+
"commit": "14b1e35b8da2f04538c2183a9be6c6b76dad3cca",
|
91
|
+
"comment": "update tooling configs"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"prerelease": [
|
95
|
+
{
|
96
|
+
"author": "beachball",
|
97
|
+
"package": "@fluentui/react-provider",
|
98
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
99
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
27
100
|
},
|
28
101
|
{
|
29
102
|
"author": "beachball",
|
30
103
|
"package": "@fluentui/react-provider",
|
31
|
-
"comment": "Bump @fluentui/react-
|
32
|
-
"commit": "
|
104
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
105
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
33
106
|
},
|
34
107
|
{
|
35
108
|
"author": "beachball",
|
36
109
|
"package": "@fluentui/react-provider",
|
37
|
-
"comment": "Bump @fluentui/react-
|
38
|
-
"commit": "
|
110
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
111
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
39
112
|
},
|
40
113
|
{
|
41
114
|
"author": "beachball",
|
42
115
|
"package": "@fluentui/react-provider",
|
43
|
-
"comment": "Bump @fluentui/react-
|
44
|
-
"commit": "
|
116
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
117
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
45
118
|
},
|
46
119
|
{
|
47
120
|
"author": "beachball",
|
48
121
|
"package": "@fluentui/react-provider",
|
49
|
-
"comment": "Bump @fluentui/
|
50
|
-
"commit": "
|
122
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
123
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
51
124
|
},
|
52
125
|
{
|
53
126
|
"author": "beachball",
|
54
127
|
"package": "@fluentui/react-provider",
|
55
|
-
"comment": "Bump @fluentui/
|
56
|
-
"commit": "
|
128
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
129
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
57
130
|
},
|
58
131
|
{
|
59
132
|
"author": "beachball",
|
60
133
|
"package": "@fluentui/react-provider",
|
61
|
-
"comment": "Bump @fluentui/
|
62
|
-
"commit": "
|
134
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
135
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"author": "beachball",
|
139
|
+
"package": "@fluentui/react-provider",
|
140
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
141
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
142
|
+
}
|
143
|
+
]
|
144
|
+
}
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"date": "Fri, 12 Nov 2021 13:25:31 GMT",
|
148
|
+
"tag": "@fluentui/react-provider_v9.0.0-beta.4",
|
149
|
+
"version": "9.0.0-beta.4",
|
150
|
+
"comments": {
|
151
|
+
"prerelease": [
|
152
|
+
{
|
153
|
+
"author": "olfedias@microsoft.com",
|
154
|
+
"package": "@fluentui/react-provider",
|
155
|
+
"commit": "825ea92aae027295a94048368157c180358260f2",
|
156
|
+
"comment": "export static classes for components"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"author": "gcox@microsoft.com",
|
160
|
+
"package": "@fluentui/react-provider",
|
161
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
162
|
+
"comment": "Updated beta and RC components to ES2019"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"author": "beachball",
|
166
|
+
"package": "@fluentui/react-provider",
|
167
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
168
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"author": "beachball",
|
172
|
+
"package": "@fluentui/react-provider",
|
173
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
174
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"author": "beachball",
|
178
|
+
"package": "@fluentui/react-provider",
|
179
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
180
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"author": "beachball",
|
184
|
+
"package": "@fluentui/react-provider",
|
185
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
|
186
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"author": "beachball",
|
190
|
+
"package": "@fluentui/react-provider",
|
191
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
192
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"author": "beachball",
|
196
|
+
"package": "@fluentui/react-provider",
|
197
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
198
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"author": "beachball",
|
202
|
+
"package": "@fluentui/react-provider",
|
203
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
204
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"author": "beachball",
|
208
|
+
"package": "@fluentui/react-provider",
|
209
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
210
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
211
|
+
}
|
212
|
+
],
|
213
|
+
"none": [
|
214
|
+
{
|
215
|
+
"author": "me@levithomason.com",
|
216
|
+
"package": "@fluentui/react-provider",
|
217
|
+
"commit": "cdbe0769d2a6ee91a98a3e62c6ac9329a714355c",
|
218
|
+
"comment": "Docs update"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"author": "gcox@microsoft.com",
|
222
|
+
"package": "@fluentui/react-provider",
|
223
|
+
"commit": "f32855d6039f4049b69b005fe6dde0686eed503c",
|
224
|
+
"comment": "Refactored stories"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"author": "lingfangao@hotmail.com",
|
228
|
+
"package": "@fluentui/react-provider",
|
229
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
230
|
+
"comment": "Remove beta release tag"
|
63
231
|
}
|
64
232
|
]
|
65
233
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,25 +1,60 @@
|
|
1
1
|
# Change Log - @fluentui/react-provider
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 02 Dec 2021 04:16:16 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly554221a5aa20211202.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-provider_v0.0.0-nightly554221a5aa20211202.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-provider_v9.0.0-beta.
|
9
|
+
Thu, 02 Dec 2021 04:16:16 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-provider_v9.0.0-beta.5..@fluentui/react-provider_v0.0.0-nightly554221a5aa20211202.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
15
|
-
-
|
16
|
-
- Bump @fluentui/react-
|
17
|
-
- Bump @fluentui/react-
|
18
|
-
- Bump @fluentui/react-
|
19
|
-
- Bump @fluentui/react-
|
20
|
-
- Bump @fluentui/
|
21
|
-
- Bump @fluentui/
|
22
|
-
- Bump @fluentui/
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by email not defined)
|
15
|
+
- Remove `themeToCSSVariables` function ([PR #20828](https://github.com/microsoft/fluentui/pull/20828) by bsunderhus@microsoft.com)
|
16
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
17
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
18
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
19
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
20
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
21
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
22
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
23
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
|
24
|
+
|
25
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-provider_v9.0.0-beta.5)
|
26
|
+
|
27
|
+
Thu, 25 Nov 2021 08:34:16 GMT
|
28
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-provider_v9.0.0-beta.4..@fluentui/react-provider_v9.0.0-beta.5)
|
29
|
+
|
30
|
+
### Changes
|
31
|
+
|
32
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
33
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
34
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
35
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
36
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
37
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
38
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
39
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
40
|
+
|
41
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-provider_v9.0.0-beta.4)
|
42
|
+
|
43
|
+
Fri, 12 Nov 2021 13:25:31 GMT
|
44
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-provider_v9.0.0-beta.3..@fluentui/react-provider_v9.0.0-beta.4)
|
45
|
+
|
46
|
+
### Changes
|
47
|
+
|
48
|
+
- export static classes for components ([PR #20451](https://github.com/microsoft/fluentui/pull/20451) by olfedias@microsoft.com)
|
49
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
50
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
51
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
52
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
53
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
54
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
55
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
56
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
57
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
23
58
|
|
24
59
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-provider_v9.0.0-beta.3)
|
25
60
|
|
package/dist/react-provider.d.ts
CHANGED
@@ -13,6 +13,8 @@ import { useTheme } from '@fluentui/react-shared-contexts';
|
|
13
13
|
|
14
14
|
export declare const FluentProvider: React_2.ForwardRefExoticComponent<FluentProviderProps & React_2.RefAttributes<HTMLElement>>;
|
15
15
|
|
16
|
+
export declare const fluentProviderClassName = "fui-FluentProvider";
|
17
|
+
|
16
18
|
export declare interface FluentProviderCommons {
|
17
19
|
/** Sets the direction of text & generated styles. */
|
18
20
|
dir: 'ltr' | 'rtl';
|
@@ -62,6 +64,9 @@ export declare const useFluentProvider: (props: FluentProviderProps, ref: React_
|
|
62
64
|
|
63
65
|
export declare function useFluentProviderContextValues(state: FluentProviderState): FluentProviderContextValues;
|
64
66
|
|
67
|
+
/** Applies style classnames to slots */
|
68
|
+
export declare const useFluentProviderStyles: (state: FluentProviderState) => FluentProviderState;
|
69
|
+
|
65
70
|
export { useTheme }
|
66
71
|
|
67
72
|
export { }
|
@@ -3,10 +3,10 @@ import { renderFluentProvider } from './renderFluentProvider';
|
|
3
3
|
import { useFluentProvider } from './useFluentProvider';
|
4
4
|
import { useFluentProviderStyles } from './useFluentProviderStyles';
|
5
5
|
import { useFluentProviderContextValues } from './useFluentProviderContextValues';
|
6
|
-
export
|
7
|
-
|
6
|
+
export const FluentProvider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
7
|
+
const state = useFluentProvider(props, ref);
|
8
8
|
useFluentProviderStyles(state);
|
9
|
-
|
9
|
+
const contextValues = useFluentProviderContextValues(state);
|
10
10
|
return renderFluentProvider(state, contextValues);
|
11
11
|
});
|
12
12
|
FluentProvider.displayName = 'FluentProvider';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FluentProvider/FluentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AACA,SAAS,8BAAT,QAA+C,kCAA/C;AAGA,OAAO,
|
1
|
+
{"version":3,"sources":["../../../src/components/FluentProvider/FluentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,oBAAT,QAAqC,wBAArC;AACA,SAAS,iBAAT,QAAkC,qBAAlC;AACA,SAAS,uBAAT,QAAwC,2BAAxC;AACA,SAAS,8BAAT,QAA+C,kCAA/C;AAGA,OAAO,MAAM,cAAc,gBAAG,KAAK,CAAC,UAAN,CAAmD,CAAC,KAAD,EAAQ,GAAR,KAAe;AAC9F,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AACA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AAEA,QAAM,aAAa,GAAG,8BAA8B,CAAC,KAAD,CAApD;AAEA,SAAO,oBAAoB,CAAC,KAAD,EAAQ,aAAR,CAA3B;AACD,CAP6B,CAAvB;AASP,cAAc,CAAC,WAAf,GAA6B,gBAA7B","sourceRoot":""}
|
@@ -2,5 +2,6 @@ export * from './FluentProvider';
|
|
2
2
|
export * from './FluentProvider.types';
|
3
3
|
export * from './renderFluentProvider';
|
4
4
|
export * from './useFluentProvider';
|
5
|
+
export * from './useFluentProviderStyles';
|
5
6
|
export * from './useFluentProviderContextValues';
|
6
7
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FluentProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FluentProvider/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { ProviderContext, TooltipContext, ThemeContext, ThemeClassNameContext } from '@fluentui/react-shared-contexts';
|
4
3
|
import { getSlots } from '@fluentui/react-utilities';
|
@@ -7,11 +6,11 @@ import { fluentProviderShorthandProps } from './useFluentProvider';
|
|
7
6
|
* Render the final JSX of FluentProvider
|
8
7
|
*/
|
9
8
|
|
10
|
-
export
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
export const renderFluentProvider = (state, contextValues) => {
|
10
|
+
const {
|
11
|
+
slots,
|
12
|
+
slotProps
|
13
|
+
} = getSlots(state, fluentProviderShorthandProps);
|
15
14
|
return /*#__PURE__*/React.createElement(ProviderContext.Provider, {
|
16
15
|
value: contextValues.provider
|
17
16
|
}, /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
@@ -20,6 +19,6 @@ export var renderFluentProvider = function (state, contextValues) {
|
|
20
19
|
value: contextValues.themeClassName
|
21
20
|
}, /*#__PURE__*/React.createElement(TooltipContext.Provider, {
|
22
21
|
value: contextValues.tooltip
|
23
|
-
}, /*#__PURE__*/React.createElement(slots.root,
|
22
|
+
}, /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), state.root.children)))));
|
24
23
|
};
|
25
24
|
//# sourceMappingURL=renderFluentProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FluentProvider/renderFluentProvider.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/FluentProvider/renderFluentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,eAAT,EAA0B,cAA1B,EAA0C,YAA1C,EAAwD,qBAAxD,QAAqF,iCAArF;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,4BAAT,QAA6C,qBAA7C;AAEA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAG,CAAC,KAAD,EAA6B,aAA7B,KAA2E;AAC7G,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAsB,KAAtB,EAA6B,4BAA7B,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,eAAe,CAAC,QAAjB,EAAyB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAzB,eACE,KAAA,CAAA,aAAA,CAAC,YAAY,CAAC,QAAd,EAAsB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAtB,eACE,KAAA,CAAA,aAAA,CAAC,qBAAqB,CAAC,QAAvB,EAA+B;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAA/B,eACE,KAAA,CAAA,aAAA,CAAC,cAAc,CAAC,QAAhB,EAAwB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAxB,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EAAiC,KAAK,CAAC,IAAN,CAAW,QAA5C,CADF,CADF,CADF,CADF,CADF;AAWD,CAdM","sourceRoot":""}
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { useKeyboardNavAttribute } from '@fluentui/react-tabster';
|
3
2
|
import { mergeThemes } from '@fluentui/react-theme';
|
4
3
|
import { useFluent, useTheme } from '@fluentui/react-shared-contexts';
|
5
4
|
import { getNativeElementProps, useMergedRefs } from '@fluentui/react-utilities';
|
6
5
|
import { useThemeStyleTag } from './useThemeStyleTag';
|
7
|
-
export
|
6
|
+
export const fluentProviderShorthandProps = ['root'];
|
8
7
|
/**
|
9
8
|
* Create the state required to render FluentProvider.
|
10
9
|
*
|
@@ -15,37 +14,36 @@ export var fluentProviderShorthandProps = ['root'];
|
|
15
14
|
* @param ref - reference to root HTMLElement of FluentProvider
|
16
15
|
*/
|
17
16
|
|
18
|
-
export
|
19
|
-
|
20
|
-
|
17
|
+
export const useFluentProvider = (props, ref) => {
|
18
|
+
const parentContext = useFluent();
|
19
|
+
const parentTheme = useTheme();
|
21
20
|
/**
|
22
21
|
* TODO: add merge functions to "dir" merge,
|
23
22
|
* nesting providers with the same "dir" should not add additional attributes to DOM
|
24
23
|
* see https://github.com/microsoft/fluentui/blob/0dc74a19f3aa5a058224c20505016fbdb84db172/packages/fluentui/react-northstar/src/utils/mergeProviderContexts.ts#L89-L93
|
25
24
|
*/
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
var mergedTheme = mergeThemes(parentTheme, theme);
|
26
|
+
const {
|
27
|
+
dir = parentContext.dir,
|
28
|
+
targetDocument = parentContext.targetDocument,
|
29
|
+
theme = {}
|
30
|
+
} = props;
|
31
|
+
const mergedTheme = mergeThemes(parentTheme, theme);
|
34
32
|
return {
|
35
|
-
dir
|
36
|
-
targetDocument
|
33
|
+
dir,
|
34
|
+
targetDocument,
|
37
35
|
theme: mergedTheme,
|
38
36
|
themeClassName: useThemeStyleTag({
|
39
37
|
theme: mergedTheme,
|
40
|
-
targetDocument
|
38
|
+
targetDocument
|
41
39
|
}),
|
42
40
|
components: {
|
43
41
|
root: 'div'
|
44
42
|
},
|
45
|
-
root: getNativeElementProps('div',
|
46
|
-
dir
|
43
|
+
root: getNativeElementProps('div', { ...props,
|
44
|
+
dir,
|
47
45
|
ref: useMergedRefs(ref, useKeyboardNavAttribute())
|
48
|
-
})
|
46
|
+
})
|
49
47
|
};
|
50
48
|
};
|
51
49
|
//# sourceMappingURL=useFluentProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProvider.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProvider.ts"],"names":[],"mappings":"AAAA,SAAS,uBAAT,QAAwC,yBAAxC;AACA,SAAS,WAAT,QAA4B,uBAA5B;AACA,SAAS,SAAT,EAAoB,QAApB,QAAoC,iCAApC;AACA,SAAS,qBAAT,EAAgC,aAAhC,QAAqD,2BAArD;AAEA,SAAS,gBAAT,QAAiC,oBAAjC;AAGA,OAAO,MAAM,4BAA4B,GAAkC,CAAC,MAAD,CAApE;AAEP;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAA6B,GAA7B,KAAiF;AAChH,QAAM,aAAa,GAAG,SAAS,EAA/B;AACA,QAAM,WAAW,GAAG,QAAQ,EAA5B;AAEA;;;;AAIG;;AACH,QAAM;AAAE,IAAA,GAAG,GAAG,aAAa,CAAC,GAAtB;AAA2B,IAAA,cAAc,GAAG,aAAa,CAAC,cAA1D;AAA0E,IAAA,KAAK,GAAG;AAAlF,MAAyF,KAA/F;AACA,QAAM,WAAW,GAAG,WAAW,CAAC,WAAD,EAAc,KAAd,CAA/B;AAEA,SAAO;AACL,IAAA,GADK;AAEL,IAAA,cAFK;AAGL,IAAA,KAAK,EAAE,WAHF;AAIL,IAAA,cAAc,EAAE,gBAAgB,CAAC;AAAE,MAAA,KAAK,EAAE,WAAT;AAAsB,MAAA;AAAtB,KAAD,CAJ3B;AAML,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KANP;AAUL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ,EACjC,GAAG,KAD8B;AAEjC,MAAA,GAFiC;AAGjC,MAAA,GAAG,EAAE,aAAa,CAAC,GAAD,EAAM,uBAAuB,EAA7B;AAHe,KAAR;AAVtB,GAAP;AAgBD,CA5BM","sourceRoot":""}
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { useConst } from '@fluentui/react-utilities';
|
2
2
|
import * as React from 'react';
|
3
3
|
export function useFluentProviderContextValues(state) {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}, [dir, targetDocument]); // "Tooltip" component mutates an object in this context, instance should be stable
|
4
|
+
const {
|
5
|
+
root,
|
6
|
+
dir,
|
7
|
+
targetDocument,
|
8
|
+
theme
|
9
|
+
} = state;
|
10
|
+
const provider = React.useMemo(() => ({
|
11
|
+
dir,
|
12
|
+
targetDocument
|
13
|
+
}), [dir, targetDocument]); // "Tooltip" component mutates an object in this context, instance should be stable
|
14
14
|
|
15
|
-
|
15
|
+
const tooltip = useConst({});
|
16
16
|
return {
|
17
|
-
provider
|
18
|
-
tooltip
|
19
|
-
theme
|
17
|
+
provider,
|
18
|
+
tooltip,
|
19
|
+
theme,
|
20
20
|
themeClassName: root.className
|
21
21
|
};
|
22
22
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProviderContextValues.ts"],"names":[],"mappings":"AAAA,SAAS,QAAT,QAAyB,2BAAzB;AACA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,8BAAV,CAAyC,KAAzC,EAAmE;
|
1
|
+
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProviderContextValues.ts"],"names":[],"mappings":"AAAA,SAAS,QAAT,QAAyB,2BAAzB;AACA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAM,SAAU,8BAAV,CAAyC,KAAzC,EAAmE;AACvE,QAAM;AAAE,IAAA,IAAF;AAAQ,IAAA,GAAR;AAAa,IAAA,cAAb;AAA6B,IAAA;AAA7B,MAAuC,KAA7C;AAEA,QAAM,QAAQ,GAAG,KAAK,CAAC,OAAN,CAAc,OAAO;AAAE,IAAA,GAAF;AAAO,IAAA;AAAP,GAAP,CAAd,EAA+C,CAAC,GAAD,EAAM,cAAN,CAA/C,CAAjB,CAHuE,CAIvE;;AACA,QAAM,OAAO,GAAG,QAAQ,CAAC,EAAD,CAAxB;AAEA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,OAFK;AAGL,IAAA,KAHK;AAIL,IAAA,cAAc,EAAE,IAAI,CAAC;AAJhB,GAAP;AAMD","sourceRoot":""}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { FluentProviderState } from './FluentProvider.types';
|
2
|
+
export declare const fluentProviderClassName = "fui-FluentProvider";
|
2
3
|
/** Applies style classnames to slots */
|
3
4
|
export declare const useFluentProviderStyles: (state: FluentProviderState) => FluentProviderState;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { __styles, mergeClasses } from '@fluentui/react-make-styles';
|
2
|
+
export const fluentProviderClassName = 'fui-FluentProvider';
|
2
3
|
|
3
|
-
|
4
|
+
const useStyles = /*#__PURE__*/__styles({
|
4
5
|
"root": {
|
5
6
|
"sj55zd": "f19n0e5",
|
6
7
|
"De3pzq": "fxugw4r",
|
@@ -14,9 +15,9 @@ var useStyles = /*#__PURE__*/__styles({
|
|
14
15
|
/** Applies style classnames to slots */
|
15
16
|
|
16
17
|
|
17
|
-
export
|
18
|
-
|
19
|
-
state.root.className = mergeClasses(state.themeClassName, styles.root, state.root.className);
|
18
|
+
export const useFluentProviderStyles = state => {
|
19
|
+
const styles = useStyles();
|
20
|
+
state.root.className = mergeClasses(fluentProviderClassName, state.themeClassName, styles.root, state.root.className);
|
20
21
|
return state;
|
21
22
|
};
|
22
23
|
//# sourceMappingURL=useFluentProviderStyles.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProviderStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC
|
1
|
+
{"version":3,"sources":["../../../src/components/FluentProvider/useFluentProviderStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AAGA,OAAO,MAAM,uBAAuB,GAAG,oBAAhC;;AAEP,MAAM,SAAS,gBAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAUA;;;AACA,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAA+B;AACpE,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,uBAAD,EAA0B,KAAK,CAAC,cAAhC,EAAgD,MAAM,CAAC,IAAvD,EAA6D,KAAK,CAAC,IAAN,CAAW,SAAxE,CAAnC;AAEA,SAAO,KAAP;AACD,CANM","sourceRoot":""}
|