@fluentui/react-shared-contexts 9.0.2 → 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 CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 20 Oct 2022 08:35:22 GMT",
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",
6
36
  "tag": "@fluentui/react-shared-contexts_v9.0.2",
7
37
  "version": "9.0.2",
8
38
  "comments": {
@@ -17,7 +47,7 @@
17
47
  "author": "beachball",
18
48
  "package": "@fluentui/react-shared-contexts",
19
49
  "comment": "Bump @fluentui/react-theme to v9.1.1",
20
- "commit": "be27026d83b8a019bcb945d0f42635ae76c00385"
50
+ "commit": "5ea1372675d910d76cf1b9cbd74d05b7c4e8fcbc"
21
51
  }
22
52
  ]
23
53
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,27 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Thu, 20 Oct 2022 08:35:22 GMT and should not be manually modified.
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
+
7
16
  ## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.2)
8
17
 
9
- Thu, 20 Oct 2022 08:35:22 GMT
18
+ Thu, 20 Oct 2022 08:39:45 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.1..@fluentui/react-shared-contexts_v9.0.2)
11
20
 
12
21
  ### Patches
13
22
 
14
23
  - chore: Bump react peer dependency to react 18. ([PR #25278](https://github.com/microsoft/fluentui/pull/25278) by mgodbolt@microsoft.com)
15
- - Bump @fluentui/react-theme to v9.1.1 ([commit](https://github.com/microsoft/fluentui/commit/be27026d83b8a019bcb945d0f42635ae76c00385) by beachball)
24
+ - Bump @fluentui/react-theme to v9.1.1 ([PR #25265](https://github.com/microsoft/fluentui/pull/25265) by beachball)
16
25
 
17
26
  ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.1)
18
27
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @fluentui/react-shared-contexts
2
2
 
3
- **Shared contexts for [Fluent UI React](https://developer.microsoft.com/en-us/fluentui)**
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;;;AAGG;;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 * @internal\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
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;AAQA;;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\n/**\n * @internal\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
+ {"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/"}
@@ -11,10 +11,6 @@ const tooltipVisibilityContextDefaultValue = {};
11
11
  */
12
12
 
13
13
  export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
14
- /**
15
- * @internal
16
- */
17
-
18
14
  export function useTooltipVisibility() {
19
15
  var _a;
20
16
 
@@ -1 +1 @@
1
- {"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAgBA;;;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;;AAEG;;AACH,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 * @internal\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\n/**\n * @internal\n */\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
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;;;AAGG;;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 * @internal\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
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;AAQA;;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\n/**\n * @internal\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
+ {"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/"}
@@ -19,9 +19,6 @@ const tooltipVisibilityContextDefaultValue = {};
19
19
  */
20
20
 
21
21
  exports.TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
22
- /**
23
- * @internal
24
- */
25
22
 
26
23
  function useTooltipVisibility() {
27
24
  var _a;
@@ -1 +1 @@
1
- {"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAgBA;;;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;;AAEG;;AACH,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 * @internal\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\n/**\n * @internal\n */\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
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.2",
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",