@fluentui/react-shared-contexts 9.0.0-nightly.d730088d7f.0 → 9.0.0-rc.10
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 +273 -8
- package/CHANGELOG.md +149 -41
- package/dist/index.d.ts +47 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/ProviderContext/ProviderContext.js +4 -1
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ProviderContext/index.js +0 -1
- package/lib/ProviderContext/index.js.map +1 -1
- package/lib/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +4 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeClassNameContext/index.js.map +1 -1
- package/lib/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js +4 -4
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/ThemeContext/index.js +0 -1
- package/lib/ThemeContext/index.js.map +1 -1
- package/lib/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +13 -0
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -0
- package/lib/{TooltipContext → TooltipVisibilityContext}/index.js +0 -0
- package/lib/TooltipVisibilityContext/index.js.map +1 -0
- package/lib/TooltipVisibilityContext.js +2 -0
- package/lib/TooltipVisibilityContext.js.map +1 -0
- package/lib/index.js +4 -5
- package/lib/index.js.map +1 -1
- package/lib-commonjs/ProviderContext/ProviderContext.js +5 -4
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/index.js +1 -3
- package/lib-commonjs/ProviderContext/index.js.map +1 -1
- package/lib-commonjs/ProviderContext.js +1 -1
- package/lib-commonjs/ProviderContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +5 -4
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/index.js +1 -1
- package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext.js +1 -1
- package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +4 -9
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/index.js +1 -3
- package/lib-commonjs/ThemeContext/index.js.map +1 -1
- package/lib-commonjs/ThemeContext.js +1 -1
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +22 -0
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -0
- package/lib-commonjs/{TooltipContext → TooltipVisibilityContext}/index.js +1 -1
- package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -0
- package/lib-commonjs/TooltipVisibilityContext.js +10 -0
- package/lib-commonjs/TooltipVisibilityContext.js.map +1 -0
- package/lib-commonjs/index.js +55 -6
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +14 -15
- package/dist/react-shared-contexts.d.ts +0 -64
- package/lib/MenuContext/MenuContext.d.ts +0 -4
- package/lib/MenuContext/MenuContext.js +0 -6
- package/lib/MenuContext/MenuContext.js.map +0 -1
- package/lib/MenuContext/index.d.ts +0 -2
- package/lib/MenuContext/index.js +0 -3
- package/lib/MenuContext/index.js.map +0 -1
- package/lib/MenuContext/types.d.ts +0 -6
- package/lib/MenuContext/types.js +0 -2
- package/lib/MenuContext/types.js.map +0 -1
- package/lib/MenuContext.d.ts +0 -1
- package/lib/MenuContext.js +0 -2
- package/lib/MenuContext.js.map +0 -1
- package/lib/ProviderContext/ProviderContext.d.ts +0 -4
- package/lib/ProviderContext/ProviderContext.types.d.ts +0 -6
- package/lib/ProviderContext/ProviderContext.types.js +0 -2
- package/lib/ProviderContext/ProviderContext.types.js.map +0 -1
- package/lib/ProviderContext/index.d.ts +0 -2
- package/lib/ProviderContext.d.ts +0 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.d.ts +0 -12
- package/lib/ThemeClassNameContext/index.d.ts +0 -1
- package/lib/ThemeClassNameContext.d.ts +0 -1
- package/lib/ThemeContext/ThemeContext.d.ts +0 -4
- package/lib/ThemeContext/ThemeContext.types.d.ts +0 -3
- package/lib/ThemeContext/ThemeContext.types.js +0 -2
- package/lib/ThemeContext/ThemeContext.types.js.map +0 -1
- package/lib/ThemeContext/index.d.ts +0 -2
- package/lib/ThemeContext.d.ts +0 -1
- package/lib/TooltipContext/TooltipContext.d.ts +0 -17
- package/lib/TooltipContext/TooltipContext.js +0 -7
- package/lib/TooltipContext/TooltipContext.js.map +0 -1
- package/lib/TooltipContext/index.d.ts +0 -1
- package/lib/TooltipContext/index.js.map +0 -1
- package/lib/TooltipContext.d.ts +0 -1
- package/lib/TooltipContext.js +0 -2
- package/lib/TooltipContext.js.map +0 -1
- package/lib/index.d.ts +0 -5
- package/lib-commonjs/MenuContext/MenuContext.d.ts +0 -4
- package/lib-commonjs/MenuContext/MenuContext.js +0 -17
- package/lib-commonjs/MenuContext/MenuContext.js.map +0 -1
- package/lib-commonjs/MenuContext/index.d.ts +0 -2
- package/lib-commonjs/MenuContext/index.js +0 -12
- package/lib-commonjs/MenuContext/index.js.map +0 -1
- package/lib-commonjs/MenuContext/types.d.ts +0 -6
- package/lib-commonjs/MenuContext/types.js +0 -6
- package/lib-commonjs/MenuContext/types.js.map +0 -1
- package/lib-commonjs/MenuContext.d.ts +0 -1
- package/lib-commonjs/MenuContext.js +0 -10
- package/lib-commonjs/MenuContext.js.map +0 -1
- package/lib-commonjs/ProviderContext/ProviderContext.d.ts +0 -4
- package/lib-commonjs/ProviderContext/ProviderContext.types.d.ts +0 -6
- package/lib-commonjs/ProviderContext/ProviderContext.types.js +0 -6
- package/lib-commonjs/ProviderContext/ProviderContext.types.js.map +0 -1
- package/lib-commonjs/ProviderContext/index.d.ts +0 -2
- package/lib-commonjs/ProviderContext.d.ts +0 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.d.ts +0 -12
- package/lib-commonjs/ThemeClassNameContext/index.d.ts +0 -1
- package/lib-commonjs/ThemeClassNameContext.d.ts +0 -1
- package/lib-commonjs/ThemeContext/ThemeContext.d.ts +0 -4
- package/lib-commonjs/ThemeContext/ThemeContext.types.d.ts +0 -3
- package/lib-commonjs/ThemeContext/ThemeContext.types.js +0 -6
- package/lib-commonjs/ThemeContext/ThemeContext.types.js.map +0 -1
- package/lib-commonjs/ThemeContext/index.d.ts +0 -2
- package/lib-commonjs/ThemeContext.d.ts +0 -1
- package/lib-commonjs/TooltipContext/TooltipContext.d.ts +0 -17
- package/lib-commonjs/TooltipContext/TooltipContext.js +0 -15
- package/lib-commonjs/TooltipContext/TooltipContext.js.map +0 -1
- package/lib-commonjs/TooltipContext/index.d.ts +0 -1
- package/lib-commonjs/TooltipContext/index.js.map +0 -1
- package/lib-commonjs/TooltipContext.d.ts +0 -1
- package/lib-commonjs/TooltipContext.js +0 -10
- package/lib-commonjs/TooltipContext.js.map +0 -1
- package/lib-commonjs/index.d.ts +0 -5
package/CHANGELOG.md
CHANGED
@@ -1,22 +1,130 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 31 May 2022 21:26:39 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [9.0.0-
|
7
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.10)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-
|
9
|
+
Tue, 31 May 2022 21:26:39 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.9..@fluentui/react-shared-contexts_v9.0.0-rc.10)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
-
|
15
|
-
-
|
14
|
+
- remove unused MenuContext ([PR #23277](https://github.com/microsoft/fluentui/pull/23277) by olfedias@microsoft.com)
|
15
|
+
- remove useTheme from exports ([PR #23335](https://github.com/microsoft/fluentui/pull/23335) by me@levithomason.com)
|
16
|
+
- mark context hooks and providers to unstable ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by bernardo.sunderhus@gmail.com)
|
17
|
+
|
18
|
+
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.9)
|
19
|
+
|
20
|
+
Mon, 23 May 2022 18:56:51 GMT
|
21
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.8..@fluentui/react-shared-contexts_v9.0.0-rc.9)
|
22
|
+
|
23
|
+
### Changes
|
24
|
+
|
25
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
26
|
+
|
27
|
+
## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.8)
|
28
|
+
|
29
|
+
Mon, 23 May 2022 12:13:38 GMT
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.7..@fluentui/react-shared-contexts_v9.0.0-rc.8)
|
31
|
+
|
32
|
+
### Changes
|
33
|
+
|
34
|
+
- feat: ship rolluped only dts ([PR #22965](https://github.com/microsoft/fluentui/pull/22965) by martinhochel@microsoft.com)
|
35
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
36
|
+
|
37
|
+
## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.7)
|
38
|
+
|
39
|
+
Thu, 05 May 2022 18:26:26 GMT
|
40
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.6..@fluentui/react-shared-contexts_v9.0.0-rc.7)
|
41
|
+
|
42
|
+
### Changes
|
43
|
+
|
44
|
+
- Removing star exports. ([PR #22808](https://github.com/microsoft/fluentui/pull/22808) by humberto_makoto@hotmail.com)
|
45
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.7 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
|
46
|
+
|
47
|
+
## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.6)
|
48
|
+
|
49
|
+
Wed, 04 May 2022 13:26:54 GMT
|
50
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.5..@fluentui/react-shared-contexts_v9.0.0-rc.6)
|
51
|
+
|
52
|
+
### Changes
|
53
|
+
|
54
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
55
|
+
|
56
|
+
## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.5)
|
57
|
+
|
58
|
+
Tue, 19 Apr 2022 19:16:52 GMT
|
59
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.4..@fluentui/react-shared-contexts_v9.0.0-rc.5)
|
60
|
+
|
61
|
+
### Changes
|
62
|
+
|
63
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.5 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
|
64
|
+
|
65
|
+
## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.4)
|
66
|
+
|
67
|
+
Fri, 04 Mar 2022 05:17:29 GMT
|
68
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.3..@fluentui/react-shared-contexts_v9.0.0-rc.4)
|
69
|
+
|
70
|
+
### Changes
|
71
|
+
|
72
|
+
- Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
|
73
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
|
74
|
+
|
75
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.3)
|
76
|
+
|
77
|
+
Fri, 18 Feb 2022 13:35:34 GMT
|
78
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.1..@fluentui/react-shared-contexts_v9.0.0-rc.3)
|
79
|
+
|
80
|
+
### Changes
|
81
|
+
|
82
|
+
- fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
|
83
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
84
|
+
|
85
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.1)
|
86
|
+
|
87
|
+
Thu, 10 Feb 2022 08:50:48 GMT
|
88
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.4..@fluentui/react-shared-contexts_v9.0.0-rc.1)
|
89
|
+
|
90
|
+
### Changes
|
91
|
+
|
92
|
+
- make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue ([PR #21286](https://github.com/microsoft/fluentui/pull/21286) by martinhochel@microsoft.com)
|
93
|
+
- Rename component hooks add the suffix \_unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
|
94
|
+
- Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
95
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
96
|
+
|
97
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
|
98
|
+
|
99
|
+
Thu, 25 Nov 2021 08:34:16 GMT
|
100
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.3..@fluentui/react-shared-contexts_v9.0.0-beta.4)
|
101
|
+
|
102
|
+
### Changes
|
103
|
+
|
104
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
105
|
+
|
106
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.3)
|
107
|
+
|
108
|
+
Fri, 12 Nov 2021 13:25:32 GMT
|
109
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.2..@fluentui/react-shared-contexts_v9.0.0-beta.3)
|
110
|
+
|
111
|
+
### Changes
|
112
|
+
|
113
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
114
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
115
|
+
|
116
|
+
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.2)
|
117
|
+
|
118
|
+
Wed, 27 Oct 2021 12:14:24 GMT
|
119
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.1..@fluentui/react-shared-contexts_v9.0.0-beta.2)
|
120
|
+
|
121
|
+
### Changes
|
122
|
+
|
123
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
16
124
|
|
17
125
|
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.1)
|
18
126
|
|
19
|
-
Wed, 06 Oct 2021 10:37:22 GMT
|
127
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
20
128
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.28..@fluentui/react-shared-contexts_v9.0.0-beta.1)
|
21
129
|
|
22
130
|
### Changes
|
@@ -26,7 +134,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
|
|
26
134
|
|
27
135
|
## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.28)
|
28
136
|
|
29
|
-
Fri, 01 Oct 2021 14:13:08 GMT
|
137
|
+
Fri, 01 Oct 2021 14:13:08 GMT
|
30
138
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.26..@fluentui/react-shared-contexts_v9.0.0-alpha.28)
|
31
139
|
|
32
140
|
### Changes
|
@@ -36,7 +144,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
|
|
36
144
|
|
37
145
|
## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.26)
|
38
146
|
|
39
|
-
Wed, 29 Sep 2021 08:06:11 GMT
|
147
|
+
Wed, 29 Sep 2021 08:06:11 GMT
|
40
148
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.25..@fluentui/react-shared-contexts_v9.0.0-alpha.26)
|
41
149
|
|
42
150
|
### Changes
|
@@ -45,7 +153,7 @@ Wed, 29 Sep 2021 08:06:11 GMT
|
|
45
153
|
|
46
154
|
## [9.0.0-alpha.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.25)
|
47
155
|
|
48
|
-
Tue, 21 Sep 2021 07:42:34 GMT
|
156
|
+
Tue, 21 Sep 2021 07:42:34 GMT
|
49
157
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.24..@fluentui/react-shared-contexts_v9.0.0-alpha.25)
|
50
158
|
|
51
159
|
### Changes
|
@@ -54,7 +162,7 @@ Tue, 21 Sep 2021 07:42:34 GMT
|
|
54
162
|
|
55
163
|
## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.24)
|
56
164
|
|
57
|
-
Fri, 10 Sep 2021 16:31:53 GMT
|
165
|
+
Fri, 10 Sep 2021 16:31:53 GMT
|
58
166
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.23..@fluentui/react-shared-contexts_v9.0.0-alpha.24)
|
59
167
|
|
60
168
|
### Changes
|
@@ -63,7 +171,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
|
|
63
171
|
|
64
172
|
## [9.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.23)
|
65
173
|
|
66
|
-
Tue, 24 Aug 2021 07:34:48 GMT
|
174
|
+
Tue, 24 Aug 2021 07:34:48 GMT
|
67
175
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.22..@fluentui/react-shared-contexts_v9.0.0-alpha.23)
|
68
176
|
|
69
177
|
### Changes
|
@@ -72,7 +180,7 @@ Tue, 24 Aug 2021 07:34:48 GMT
|
|
72
180
|
|
73
181
|
## [9.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.22)
|
74
182
|
|
75
|
-
Fri, 20 Aug 2021 07:37:28 GMT
|
183
|
+
Fri, 20 Aug 2021 07:37:28 GMT
|
76
184
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.21..@fluentui/react-shared-contexts_v9.0.0-alpha.22)
|
77
185
|
|
78
186
|
### Changes
|
@@ -81,7 +189,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
|
|
81
189
|
|
82
190
|
## [9.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.21)
|
83
191
|
|
84
|
-
Fri, 13 Aug 2021 07:36:34 GMT
|
192
|
+
Fri, 13 Aug 2021 07:36:34 GMT
|
85
193
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.20..@fluentui/react-shared-contexts_v9.0.0-alpha.21)
|
86
194
|
|
87
195
|
### Changes
|
@@ -90,7 +198,7 @@ Fri, 13 Aug 2021 07:36:34 GMT
|
|
90
198
|
|
91
199
|
## [9.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.20)
|
92
200
|
|
93
|
-
Tue, 03 Aug 2021 07:39:30 GMT
|
201
|
+
Tue, 03 Aug 2021 07:39:30 GMT
|
94
202
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.19..@fluentui/react-shared-contexts_v9.0.0-alpha.20)
|
95
203
|
|
96
204
|
### Patches
|
@@ -101,7 +209,7 @@ Tue, 03 Aug 2021 07:39:30 GMT
|
|
101
209
|
|
102
210
|
## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.19)
|
103
211
|
|
104
|
-
Mon, 26 Jul 2021 07:37:30 GMT
|
212
|
+
Mon, 26 Jul 2021 07:37:30 GMT
|
105
213
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.18..@fluentui/react-shared-contexts_v9.0.0-alpha.19)
|
106
214
|
|
107
215
|
### Changes
|
@@ -110,7 +218,7 @@ Mon, 26 Jul 2021 07:37:30 GMT
|
|
110
218
|
|
111
219
|
## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.18)
|
112
220
|
|
113
|
-
Fri, 23 Jul 2021 07:38:19 GMT
|
221
|
+
Fri, 23 Jul 2021 07:38:19 GMT
|
114
222
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.17..@fluentui/react-shared-contexts_v9.0.0-alpha.18)
|
115
223
|
|
116
224
|
### Changes
|
@@ -119,7 +227,7 @@ Fri, 23 Jul 2021 07:38:19 GMT
|
|
119
227
|
|
120
228
|
## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.17)
|
121
229
|
|
122
|
-
Fri, 09 Jul 2021 07:39:31 GMT
|
230
|
+
Fri, 09 Jul 2021 07:39:31 GMT
|
123
231
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.16..@fluentui/react-shared-contexts_v9.0.0-alpha.17)
|
124
232
|
|
125
233
|
### Patches
|
@@ -130,7 +238,7 @@ Fri, 09 Jul 2021 07:39:31 GMT
|
|
130
238
|
|
131
239
|
## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.16)
|
132
240
|
|
133
|
-
Fri, 02 Jul 2021 07:37:06 GMT
|
241
|
+
Fri, 02 Jul 2021 07:37:06 GMT
|
134
242
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.15..@fluentui/react-shared-contexts_v9.0.0-alpha.16)
|
135
243
|
|
136
244
|
### Changes
|
@@ -139,7 +247,7 @@ Fri, 02 Jul 2021 07:37:06 GMT
|
|
139
247
|
|
140
248
|
## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.15)
|
141
249
|
|
142
|
-
Mon, 07 Jun 2021 07:38:15 GMT
|
250
|
+
Mon, 07 Jun 2021 07:38:15 GMT
|
143
251
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.14..@fluentui/react-shared-contexts_v9.0.0-alpha.15)
|
144
252
|
|
145
253
|
### Patches
|
@@ -150,7 +258,7 @@ Mon, 07 Jun 2021 07:38:15 GMT
|
|
150
258
|
|
151
259
|
## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.14)
|
152
260
|
|
153
|
-
Fri, 04 Jun 2021 07:37:23 GMT
|
261
|
+
Fri, 04 Jun 2021 07:37:23 GMT
|
154
262
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.13..@fluentui/react-shared-contexts_v9.0.0-alpha.14)
|
155
263
|
|
156
264
|
### Changes
|
@@ -159,7 +267,7 @@ Fri, 04 Jun 2021 07:37:23 GMT
|
|
159
267
|
|
160
268
|
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.13)
|
161
269
|
|
162
|
-
Thu, 03 Jun 2021 07:36:03 GMT
|
270
|
+
Thu, 03 Jun 2021 07:36:03 GMT
|
163
271
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.12..@fluentui/react-shared-contexts_v9.0.0-alpha.13)
|
164
272
|
|
165
273
|
### Changes
|
@@ -168,7 +276,7 @@ Thu, 03 Jun 2021 07:36:03 GMT
|
|
168
276
|
|
169
277
|
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.12)
|
170
278
|
|
171
|
-
Thu, 20 May 2021 07:41:54 GMT
|
279
|
+
Thu, 20 May 2021 07:41:54 GMT
|
172
280
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.11..@fluentui/react-shared-contexts_v9.0.0-alpha.12)
|
173
281
|
|
174
282
|
### Patches
|
@@ -179,7 +287,7 @@ Thu, 20 May 2021 07:41:54 GMT
|
|
179
287
|
|
180
288
|
## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.11)
|
181
289
|
|
182
|
-
Wed, 19 May 2021 07:34:20 GMT
|
290
|
+
Wed, 19 May 2021 07:34:20 GMT
|
183
291
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.10..@fluentui/react-shared-contexts_v9.0.0-alpha.11)
|
184
292
|
|
185
293
|
### Changes
|
@@ -188,7 +296,7 @@ Wed, 19 May 2021 07:34:20 GMT
|
|
188
296
|
|
189
297
|
## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.10)
|
190
298
|
|
191
|
-
Thu, 13 May 2021 07:36:55 GMT
|
299
|
+
Thu, 13 May 2021 07:36:55 GMT
|
192
300
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.9..@fluentui/react-shared-contexts_v9.0.0-alpha.10)
|
193
301
|
|
194
302
|
### Changes
|
@@ -197,7 +305,7 @@ Thu, 13 May 2021 07:36:55 GMT
|
|
197
305
|
|
198
306
|
## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.9)
|
199
307
|
|
200
|
-
Wed, 12 May 2021 07:36:20 GMT
|
308
|
+
Wed, 12 May 2021 07:36:20 GMT
|
201
309
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.8..@fluentui/react-shared-contexts_v9.0.0-alpha.9)
|
202
310
|
|
203
311
|
### Changes
|
@@ -206,7 +314,7 @@ Wed, 12 May 2021 07:36:20 GMT
|
|
206
314
|
|
207
315
|
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.8)
|
208
316
|
|
209
|
-
Fri, 30 Apr 2021 07:42:23 GMT
|
317
|
+
Fri, 30 Apr 2021 07:42:23 GMT
|
210
318
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.7..@fluentui/react-shared-contexts_v9.0.0-alpha.8)
|
211
319
|
|
212
320
|
### Patches
|
@@ -221,7 +329,7 @@ Fri, 30 Apr 2021 07:42:23 GMT
|
|
221
329
|
|
222
330
|
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.7)
|
223
331
|
|
224
|
-
Fri, 23 Apr 2021 07:37:10 GMT
|
332
|
+
Fri, 23 Apr 2021 07:37:10 GMT
|
225
333
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.6..@fluentui/react-shared-contexts_v9.0.0-alpha.7)
|
226
334
|
|
227
335
|
### Patches
|
@@ -232,7 +340,7 @@ Fri, 23 Apr 2021 07:37:10 GMT
|
|
232
340
|
|
233
341
|
## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.6)
|
234
342
|
|
235
|
-
Tue, 20 Apr 2021 07:31:35 GMT
|
343
|
+
Tue, 20 Apr 2021 07:31:35 GMT
|
236
344
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.5..@fluentui/react-shared-contexts_v9.0.0-alpha.6)
|
237
345
|
|
238
346
|
### Changes
|
@@ -241,7 +349,7 @@ Tue, 20 Apr 2021 07:31:35 GMT
|
|
241
349
|
|
242
350
|
## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.5)
|
243
351
|
|
244
|
-
Fri, 16 Apr 2021 18:08:21 GMT
|
352
|
+
Fri, 16 Apr 2021 18:08:21 GMT
|
245
353
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.4..@fluentui/react-shared-contexts_v9.0.0-alpha.5)
|
246
354
|
|
247
355
|
### Changes
|
@@ -250,7 +358,7 @@ Fri, 16 Apr 2021 18:08:21 GMT
|
|
250
358
|
|
251
359
|
## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.4)
|
252
360
|
|
253
|
-
Thu, 08 Apr 2021 07:33:06 GMT
|
361
|
+
Thu, 08 Apr 2021 07:33:06 GMT
|
254
362
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.3..@fluentui/react-shared-contexts_v9.0.0-alpha.4)
|
255
363
|
|
256
364
|
### Changes
|
@@ -259,7 +367,7 @@ Thu, 08 Apr 2021 07:33:06 GMT
|
|
259
367
|
|
260
368
|
## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.3)
|
261
369
|
|
262
|
-
Wed, 31 Mar 2021 00:53:43 GMT
|
370
|
+
Wed, 31 Mar 2021 00:53:43 GMT
|
263
371
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-alpha.2..@fluentui/react-shared-contexts_v9.0.0-alpha.3)
|
264
372
|
|
265
373
|
### Patches
|
@@ -270,7 +378,7 @@ Wed, 31 Mar 2021 00:53:43 GMT
|
|
270
378
|
|
271
379
|
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.2)
|
272
380
|
|
273
|
-
Tue, 30 Mar 2021 07:34:45 GMT
|
381
|
+
Tue, 30 Mar 2021 07:34:45 GMT
|
274
382
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.11..@fluentui/react-shared-contexts_v9.0.0-alpha.2)
|
275
383
|
|
276
384
|
### Changes
|
@@ -280,7 +388,7 @@ Tue, 30 Mar 2021 07:34:45 GMT
|
|
280
388
|
|
281
389
|
## [1.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.11)
|
282
390
|
|
283
|
-
Mon, 15 Mar 2021 07:36:20 GMT
|
391
|
+
Mon, 15 Mar 2021 07:36:20 GMT
|
284
392
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.10..@fluentui/react-shared-contexts_v1.0.0-beta.11)
|
285
393
|
|
286
394
|
### Changes
|
@@ -289,7 +397,7 @@ Mon, 15 Mar 2021 07:36:20 GMT
|
|
289
397
|
|
290
398
|
## [1.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.10)
|
291
399
|
|
292
|
-
Fri, 26 Feb 2021 01:16:27 GMT
|
400
|
+
Fri, 26 Feb 2021 01:16:27 GMT
|
293
401
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.9..@fluentui/react-shared-contexts_v1.0.0-beta.10)
|
294
402
|
|
295
403
|
### Patches
|
@@ -305,7 +413,7 @@ Fri, 26 Feb 2021 01:16:27 GMT
|
|
305
413
|
|
306
414
|
## [1.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.9)
|
307
415
|
|
308
|
-
Mon, 22 Feb 2021 12:26:22 GMT
|
416
|
+
Mon, 22 Feb 2021 12:26:22 GMT
|
309
417
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.8..@fluentui/react-shared-contexts_v1.0.0-beta.9)
|
310
418
|
|
311
419
|
### Changes
|
@@ -314,7 +422,7 @@ Mon, 22 Feb 2021 12:26:22 GMT
|
|
314
422
|
|
315
423
|
## [1.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.8)
|
316
424
|
|
317
|
-
Thu, 18 Feb 2021 19:38:50 GMT
|
425
|
+
Thu, 18 Feb 2021 19:38:50 GMT
|
318
426
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.7..@fluentui/react-shared-contexts_v1.0.0-beta.8)
|
319
427
|
|
320
428
|
### Changes
|
@@ -323,7 +431,7 @@ Thu, 18 Feb 2021 19:38:50 GMT
|
|
323
431
|
|
324
432
|
## [1.0.0-beta.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.7)
|
325
433
|
|
326
|
-
Thu, 18 Feb 2021 12:27:34 GMT
|
434
|
+
Thu, 18 Feb 2021 12:27:34 GMT
|
327
435
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.6..@fluentui/react-shared-contexts_v1.0.0-beta.7)
|
328
436
|
|
329
437
|
### Changes
|
@@ -332,7 +440,7 @@ Thu, 18 Feb 2021 12:27:34 GMT
|
|
332
440
|
|
333
441
|
## [1.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.6)
|
334
442
|
|
335
|
-
Mon, 15 Feb 2021 12:22:00 GMT
|
443
|
+
Mon, 15 Feb 2021 12:22:00 GMT
|
336
444
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.5..@fluentui/react-shared-contexts_v1.0.0-beta.6)
|
337
445
|
|
338
446
|
### Changes
|
@@ -341,12 +449,12 @@ Mon, 15 Feb 2021 12:22:00 GMT
|
|
341
449
|
|
342
450
|
## [1.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.4)
|
343
451
|
|
344
|
-
Thu, 21 Jan 2021 12:36:12 GMT
|
452
|
+
Thu, 21 Jan 2021 12:36:12 GMT
|
345
453
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.1..@fluentui/react-shared-contexts_v1.0.0-beta.4)
|
346
454
|
|
347
455
|
### Changes
|
348
456
|
|
349
|
-
-
|
457
|
+
- Updating dev dependencies. ([PR #16548](https://github.com/microsoft/fluentui/pull/16548) by dzearing@microsoft.com)
|
350
458
|
|
351
459
|
## [1.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.1)
|
352
460
|
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
import * as React_2 from 'react';
|
2
|
+
import type { Theme } from '@fluentui/react-theme';
|
3
|
+
|
4
|
+
export declare const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;
|
5
|
+
|
6
|
+
export declare type ProviderContextValue_unstable = {
|
7
|
+
/** Sets the direction of text & generated styles. */
|
8
|
+
dir: 'ltr' | 'rtl';
|
9
|
+
/** Provides the document, can be undefined during SSR render. */
|
10
|
+
targetDocument?: Document;
|
11
|
+
};
|
12
|
+
|
13
|
+
export declare type ThemeClassNameContextValue_unstable = string;
|
14
|
+
|
15
|
+
export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
|
16
|
+
|
17
|
+
export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
|
18
|
+
|
19
|
+
export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
|
20
|
+
|
21
|
+
export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
|
22
|
+
|
23
|
+
/**
|
24
|
+
* The context provided by TooltipProvider
|
25
|
+
*/
|
26
|
+
export declare type TooltipVisibilityContextValue_unstable = {
|
27
|
+
/**
|
28
|
+
* When a tooltip is shown, it sets itself as the visibleTooltip.
|
29
|
+
* The next tooltip to become visible can use it to hide the previous tooltip immediately.
|
30
|
+
*/
|
31
|
+
visibleTooltip?: {
|
32
|
+
hide: () => void;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
|
36
|
+
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
37
|
+
|
38
|
+
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
39
|
+
|
40
|
+
/**
|
41
|
+
* @returns CSS class that applies css variables
|
42
|
+
*/
|
43
|
+
export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
|
44
|
+
|
45
|
+
export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
|
46
|
+
|
47
|
+
export { }
|
File without changes
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
2
|
+
const ProviderContext = /*#__PURE__*/React.createContext({
|
3
3
|
targetDocument: typeof document === 'object' ? document : undefined,
|
4
4
|
dir: 'ltr'
|
5
5
|
});
|
6
|
+
export const {
|
7
|
+
Provider
|
8
|
+
} = ProviderContext;
|
6
9
|
export function useFluent() {
|
7
10
|
return React.useContext(ProviderContext);
|
8
11
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;AAChE,EAAA,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;AAEhE,EAAA,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKA,OAAO,MAAM;AAAE,EAAA;AAAF,IAAe,eAArB;AAEP,OAAM,SAAU,SAAV,GAAmB;AACvB,SAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\n\nexport type ProviderContextValue = {\n /** Sets the direction of text & generated styles. */\n dir: 'ltr' | 'rtl';\n\n /** Provides the document, can be undefined during SSR render. */\n targetDocument?: Document;\n};\n\nconst ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\nexport const { Provider } = ProviderContext;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './ProviderContext';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProviderContext.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ProviderContext.js","sourceRoot":"../src/","sources":["ProviderContext.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ProviderContext/index';\n"]}
|
@@ -5,7 +5,10 @@ import * as React from 'react';
|
|
5
5
|
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
6
6
|
*/
|
7
7
|
|
8
|
-
|
8
|
+
const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
|
9
|
+
export const {
|
10
|
+
Provider: ThemeClassNameProvider
|
11
|
+
} = ThemeClassNameContext;
|
9
12
|
/**
|
10
13
|
* @returns CSS class that applies css variables
|
11
14
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;AAIG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;AAEA,OAAO,MAAM;AAAE,EAAA,QAAQ,EAAE;AAAZ,IAAuC,qBAA7C;AAEP;;AAEG;;AACH,OAAM,SAAU,iBAAV,GAA2B;AAC/B,SAAO,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * Used to provide a CSS class that applies theme css variables\n *\n * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals\n */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue>('');\n\nexport const { Provider: ThemeClassNameProvider } = ThemeClassNameContext;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ThemeClassNameContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ThemeClassNameContext';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ThemeClassNameContext.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ThemeClassNameContext.js","sourceRoot":"../src/","sources":["ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './ThemeClassNameContext/index';\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
export
|
3
|
-
export
|
4
|
-
|
5
|
-
}
|
2
|
+
export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
|
3
|
+
export const {
|
4
|
+
Provider: ThemeProvider
|
5
|
+
} = ThemeContext;
|
6
6
|
//# sourceMappingURL=ThemeContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAKA,OAAO,MAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAArB;AAEP,OAAO,MAAM;AAAE,EAAA,QAAQ,EAAE;AAAZ,IAA8B,YAApC","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\nexport const { Provider: ThemeProvider } = ThemeContext;\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ThemeContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './ThemeContext';\n"]}
|
package/lib/ThemeContext.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ThemeContext.js","sourceRoot":"../src/","sources":["ThemeContext.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './ThemeContext/index';\n"]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
/**
|
3
|
+
* Context shared by all of the tooltips in the app
|
4
|
+
*/
|
5
|
+
|
6
|
+
const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
|
7
|
+
export const {
|
8
|
+
Provider: TooltipVisibilityProvider
|
9
|
+
} = TooltipVisibilityContext;
|
10
|
+
export function useTooltipVisibility() {
|
11
|
+
return React.useContext(TooltipVisibilityContext);
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=TooltipContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;AAEG;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAAmD,EAAnD,CAAjC;AAEA,OAAO,MAAM;AAAE,EAAA,QAAQ,EAAE;AAAZ,IAA0C,wBAAhD;AAEP,OAAM,SAAU,oBAAV,GAA8B;AAClC,SAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipVisibilityContextValue = {\n /**\n * When a tooltip is shown, it sets itself as the visibleTooltip.\n * The next tooltip to become visible can use it to hide the previous tooltip immediately.\n */\n visibleTooltip?: {\n hide: () => void;\n };\n};\n\n/**\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue>({});\n\nexport const { Provider: TooltipVisibilityProvider } = TooltipVisibilityContext;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext);\n}\n"],"sourceRoot":"../src/"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["TooltipVisibilityContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './TooltipContext';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TooltipVisibilityContext.js","sourceRoot":"../src/","sources":["TooltipVisibilityContext.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './TooltipVisibilityContext/index';\n"]}
|
package/lib/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
5
|
-
export * from './ProviderContext';
|
1
|
+
export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';
|
2
|
+
export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';
|
3
|
+
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';
|
4
|
+
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';
|
6
5
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,qBAAzB,EAAgD,aAAa,IAAI,sBAAjE,QAA+F,gBAA/F;AAGA,SACE,sBAAsB,IAAI,+BAD5B,EAEE,iBAAiB,IAAI,0BAFvB,QAGO,yBAHP;AAMA,SACE,yBAAyB,IAAI,kCAD/B,EAEE,oBAAoB,IAAI,6BAF1B,QAGO,4BAHP;AAMA,SAAS,QAAQ,IAAI,iBAArB,EAAwC,SAAS,IAAI,kBAArD,QAA+E,mBAA/E","sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n"],"sourceRoot":"../src/"}
|