@fluentui/react-shared-contexts 9.0.1 → 9.1.0
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 +52 -1
- package/CHANGELOG.md +21 -2
- package/README.md +1 -1
- package/dist/index.d.ts +0 -8
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +0 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +0 -4
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +0 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +0 -3
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,58 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Wed, 02 Nov 2022 11:55:01 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.1.0",
|
7
|
+
"version": "9.1.0",
|
8
|
+
"comments": {
|
9
|
+
"minor": [
|
10
|
+
{
|
11
|
+
"author": "bernardo.sunderhus@gmail.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "81f33ef87e837711bf9efd55d343d1a6cc4eb346",
|
14
|
+
"comment": "exposes internal methods and types that are used in the API surface"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"date": "Tue, 25 Oct 2022 00:35:36 GMT",
|
21
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.2",
|
22
|
+
"version": "9.0.2",
|
23
|
+
"comments": {
|
24
|
+
"none": [
|
25
|
+
{
|
26
|
+
"author": "miroslav.stastny@microsoft.com",
|
27
|
+
"package": "@fluentui/react-shared-contexts",
|
28
|
+
"commit": "6ced976a8d0e6a0e2e207da8fe0eb810e2bd19bc",
|
29
|
+
"comment": "Update package readme"
|
30
|
+
}
|
31
|
+
]
|
32
|
+
}
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"date": "Thu, 20 Oct 2022 08:39:45 GMT",
|
36
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.2",
|
37
|
+
"version": "9.0.2",
|
38
|
+
"comments": {
|
39
|
+
"patch": [
|
40
|
+
{
|
41
|
+
"author": "mgodbolt@microsoft.com",
|
42
|
+
"package": "@fluentui/react-shared-contexts",
|
43
|
+
"commit": "772f9e3ebde2d5b8157a3204c1a4e007e56f5508",
|
44
|
+
"comment": "chore: Bump react peer dependency to react 18."
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-shared-contexts",
|
49
|
+
"comment": "Bump @fluentui/react-theme to v9.1.1",
|
50
|
+
"commit": "5ea1372675d910d76cf1b9cbd74d05b7c4e8fcbc"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"date": "Thu, 15 Sep 2022 09:49:20 GMT",
|
6
57
|
"tag": "@fluentui/react-shared-contexts_v9.0.1",
|
7
58
|
"version": "9.0.1",
|
8
59
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 02 Nov 2022 11:55:01 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.1.0)
|
8
|
+
|
9
|
+
Wed, 02 Nov 2022 11:55:01 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.2..@fluentui/react-shared-contexts_v9.1.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- exposes internal methods and types that are used in the API surface ([PR #25405](https://github.com/microsoft/fluentui/pull/25405) by bernardo.sunderhus@gmail.com)
|
15
|
+
|
16
|
+
## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.2)
|
17
|
+
|
18
|
+
Thu, 20 Oct 2022 08:39:45 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.1..@fluentui/react-shared-contexts_v9.0.2)
|
20
|
+
|
21
|
+
### Patches
|
22
|
+
|
23
|
+
- chore: Bump react peer dependency to react 18. ([PR #25278](https://github.com/microsoft/fluentui/pull/25278) by mgodbolt@microsoft.com)
|
24
|
+
- Bump @fluentui/react-theme to v9.1.1 ([PR #25265](https://github.com/microsoft/fluentui/pull/25265) by beachball)
|
25
|
+
|
7
26
|
## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.1)
|
8
27
|
|
9
|
-
Thu, 15 Sep 2022 09:
|
28
|
+
Thu, 15 Sep 2022 09:49:20 GMT
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0..@fluentui/react-shared-contexts_v9.0.1)
|
11
30
|
|
12
31
|
### Patches
|
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
**Shared contexts for [Fluent UI React](https://
|
3
|
+
**Shared contexts for [Fluent UI React](https://react.fluentui.dev)**
|
4
4
|
|
5
5
|
This package includes a number of exported React Contexts that are shared by Fluent UI components.
|
6
6
|
|
package/dist/index.d.ts
CHANGED
@@ -22,9 +22,6 @@ export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
|
|
22
22
|
*/
|
23
23
|
export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
|
24
24
|
|
25
|
-
/**
|
26
|
-
* @internal
|
27
|
-
*/
|
28
25
|
export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
|
29
26
|
|
30
27
|
/**
|
@@ -33,7 +30,6 @@ export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefi
|
|
33
30
|
export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
|
34
31
|
|
35
32
|
/**
|
36
|
-
* @internal
|
37
33
|
* The context provided by TooltipProvider
|
38
34
|
*/
|
39
35
|
export declare type TooltipVisibilityContextValue_unstable = {
|
@@ -54,14 +50,10 @@ export declare const TooltipVisibilityProvider_unstable: React_2.Provider<Toolti
|
|
54
50
|
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
55
51
|
|
56
52
|
/**
|
57
|
-
* @internal
|
58
53
|
* @returns CSS class that applies css variables
|
59
54
|
*/
|
60
55
|
export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
|
61
56
|
|
62
|
-
/**
|
63
|
-
* @internal
|
64
|
-
*/
|
65
57
|
export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
|
66
58
|
|
67
59
|
export { }
|
@@ -10,7 +10,6 @@ const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
|
|
10
10
|
const themeClassNameContextDefaultVaue = '';
|
11
11
|
export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
12
12
|
/**
|
13
|
-
* @internal
|
14
13
|
* @returns CSS class that applies css variables
|
15
14
|
*/
|
16
15
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;;AAKG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEA,OAAO,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,QAArD;AAEP
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;;AAKG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEA,OAAO,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,QAArD;AAEP;;AAEG;;AACH,OAAM,SAAU,iBAAV,GAA2B;;;EAC/B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAA,MAAuC,IAAvC,IAAuC,EAAA,KAAA,KAAA,CAAvC,GAAuC,EAAvC,GAA2C,gCAAlD;AACD","sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;
|
1
|
+
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAKA;;AAEG;;AACH,OAAO,MAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAArB;AAEP;;AAEG;;AACH,OAAO,MAAM,aAAa,GAAG,YAAY,CAAC,QAAnC","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;;AAGG;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAC/B,SAD+B,CAAjC;AAIA,MAAM,oCAAoC,GAAkC,EAA5E;AAEA;;AAEG;;AACH,OAAO,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,QAA3D;AAEP,OAAM,SAAU,oBAAV,GAA8B;;;EAClC,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAA,MAA0C,IAA1C,IAA0C,EAAA,KAAA,KAAA,CAA1C,GAA0C,EAA1C,GAA8C,oCAArD;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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
|
@@ -18,7 +18,6 @@ const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
|
|
18
18
|
const themeClassNameContextDefaultVaue = '';
|
19
19
|
exports.ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
20
20
|
/**
|
21
|
-
* @internal
|
22
21
|
* @returns CSS class that applies css variables
|
23
22
|
*/
|
24
23
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;;AAKG;;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEa,OAAA,CAAA,sBAAA,GAAyB,qBAAqB,CAAC,QAA/C;AAEb
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;;AAKG;;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEa,OAAA,CAAA,sBAAA,GAAyB,qBAAqB,CAAC,QAA/C;AAEb;;AAEG;;AACH,SAAgB,iBAAhB,GAAiC;;;EAC/B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAA,MAAuC,IAAvC,IAAuC,EAAA,KAAA,KAAA,CAAvC,GAAuC,EAAvC,GAA2C,gCAAlD;AACD;;AAFD,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;
|
1
|
+
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAKA;;AAEG;;;AACU,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAAf;AAEb;;AAEG;;AACU,OAAA,CAAA,aAAA,GAAgB,OAAA,CAAA,YAAA,CAAa,QAA7B","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;;AAGG;;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAC/B,SAD+B,CAAjC;AAIA,MAAM,oCAAoC,GAAkC,EAA5E;AAEA;;AAEG;;AACU,OAAA,CAAA,yBAAA,GAA4B,wBAAwB,CAAC,QAArD;;AAEb,SAAgB,oBAAhB,GAAoC;;;EAClC,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAA,MAA0C,IAA1C,IAA0C,EAAA,KAAA,KAAA,CAA1C,GAA0C,EAA1C,GAA8C,oCAArD;AACD;;AAFD,OAAA,CAAA,oBAAA,GAAA,oBAAA","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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.0
|
3
|
+
"version": "9.1.0",
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -27,12 +27,12 @@
|
|
27
27
|
"@fluentui/scripts": "^1.0.0"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@fluentui/react-theme": "^9.1.
|
30
|
+
"@fluentui/react-theme": "^9.1.1",
|
31
31
|
"tslib": "^2.1.0"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
34
|
-
"@types/react": ">=16.8.0 <
|
35
|
-
"react": ">=16.8.0 <
|
34
|
+
"@types/react": ">=16.8.0 <19.0.0",
|
35
|
+
"react": ">=16.8.0 <19.0.0"
|
36
36
|
},
|
37
37
|
"beachball": {
|
38
38
|
"disallowedChangeTypes": [
|