@fluentui/react-shared-contexts 0.0.0-nightly-20220623-0419.1 → 0.0.0-nightly-20220624-0419.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 CHANGED
@@ -2,16 +2,22 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 23 Jun 2022 04:31:26 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1",
7
- "version": "0.0.0-nightly-20220623-0419.1",
5
+ "date": "Fri, 24 Jun 2022 04:33:13 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20220624-0419.1",
7
+ "version": "0.0.0-nightly-20220624-0419.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
+ {
11
+ "author": "lingfangao@hotmail.com",
12
+ "package": "@fluentui/react-shared-contexts",
13
+ "commit": "2da4428ae7d6e464c538b7ed10e425ce0e531144",
14
+ "comment": "chore: Mark teams-prg owned APIs with @internal"
15
+ },
10
16
  {
11
17
  "author": "beachball",
12
18
  "package": "@fluentui/react-shared-contexts",
13
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220623-0419.1",
14
- "commit": "9df169f017c97b7fe34f7b7618e4a29baf38b22b"
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220624-0419.1",
20
+ "commit": "5197053e8e0ad04d319248954fcfa61d4f63b97a"
15
21
  }
16
22
  ]
17
23
  }
package/CHANGELOG.md CHANGED
@@ -1,17 +1,18 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Thu, 23 Jun 2022 04:31:26 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 24 Jun 2022 04:33:13 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20220623-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1)
7
+ ## [0.0.0-nightly-20220624-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20220624-0419.1)
8
8
 
9
- Thu, 23 Jun 2022 04:31:26 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.10..@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1)
9
+ Fri, 24 Jun 2022 04:33:13 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.10..@fluentui/react-shared-contexts_v0.0.0-nightly-20220624-0419.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Bump @fluentui/react-theme to v0.0.0-nightly-20220623-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/9df169f017c97b7fe34f7b7618e4a29baf38b22b) by beachball)
14
+ - chore: Mark teams-prg owned APIs with @internal ([PR #23689](https://github.com/microsoft/fluentui/pull/23689) by lingfangao@hotmail.com)
15
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20220624-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/5197053e8e0ad04d319248954fcfa61d4f63b97a) by beachball)
15
16
 
16
17
  ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.10)
17
18
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  import * as React_2 from 'react';
2
2
  import type { Theme } from '@fluentui/react-theme';
3
3
 
4
+ /**
5
+ * @internal
6
+ */
4
7
  export declare const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;
5
8
 
6
9
  export declare type ProviderContextValue_unstable = {
@@ -14,13 +17,23 @@ export declare type ThemeClassNameContextValue_unstable = string;
14
17
 
15
18
  export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
16
19
 
20
+ /**
21
+ * @internal
22
+ */
17
23
  export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
18
24
 
25
+ /**
26
+ * @internal
27
+ */
19
28
  export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
20
29
 
30
+ /**
31
+ * @internal
32
+ */
21
33
  export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
22
34
 
23
35
  /**
36
+ * @internal
24
37
  * The context provided by TooltipProvider
25
38
  */
26
39
  export declare type TooltipVisibilityContextValue_unstable = {
@@ -33,15 +46,22 @@ export declare type TooltipVisibilityContextValue_unstable = {
33
46
  };
34
47
  };
35
48
 
49
+ /**
50
+ * @internal
51
+ */
36
52
  export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
37
53
 
38
54
  export declare function useFluent_unstable(): ProviderContextValue_unstable;
39
55
 
40
56
  /**
57
+ * @internal
41
58
  * @returns CSS class that applies css variables
42
59
  */
43
60
  export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
44
61
 
62
+ /**
63
+ * @internal
64
+ */
45
65
  export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
46
66
 
47
67
  export { }
@@ -1,11 +1,17 @@
1
1
  import * as React from 'react';
2
+ /**
3
+ * @internal
4
+ */
5
+
2
6
  const ProviderContext = /*#__PURE__*/React.createContext({
3
7
  targetDocument: typeof document === 'object' ? document : undefined,
4
8
  dir: 'ltr'
5
9
  });
6
- export const {
7
- Provider
8
- } = ProviderContext;
10
+ /**
11
+ * @internal
12
+ */
13
+
14
+ export const Provider = ProviderContext.Provider;
9
15
  export function useFluent() {
10
16
  return React.useContext(ProviderContext);
11
17
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKA,OAAO,MAAM;EAAE;AAAF,IAAe,eAArB;AAEP,OAAM,SAAU,SAAV,GAAmB;EACvB,OAAO,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
+ {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA;;AAEG;;AACH,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKA;;AAEG;;AACH,OAAO,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAjC;AAEP,OAAM,SAAU,SAAV,GAAmB;EACvB,OAAO,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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
2
  /**
3
+ * @internal
3
4
  * Used to provide a CSS class that applies theme css variables
4
5
  *
5
6
  * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
6
7
  */
7
8
 
8
9
  const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
9
- export const {
10
- Provider: ThemeClassNameProvider
11
- } = ThemeClassNameContext;
10
+ export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
12
11
  /**
12
+ * @internal
13
13
  * @returns CSS class that applies css variables
14
14
  */
15
15
 
@@ -1 +1 @@
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;EAAE,QAAQ,EAAE;AAAZ,IAAuC,qBAA7C;AAEP;;AAEG;;AACH,OAAM,SAAU,iBAAV,GAA2B;EAC/B,OAAO,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
+ {"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;;AAKG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;AAEA,OAAO,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,QAArD;AAEP;;;AAGG;;AACH,OAAM,SAAU,iBAAV,GAA2B;EAC/B,OAAO,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAP;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>('');\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);\n}\n"],"sourceRoot":"../src/"}
@@ -1,6 +1,12 @@
1
1
  import * as React from 'react';
2
+ /**
3
+ * @internal
4
+ */
5
+
2
6
  export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
3
- export const {
4
- Provider: ThemeProvider
5
- } = ThemeContext;
7
+ /**
8
+ * @internal
9
+ */
10
+
11
+ export const ThemeProvider = ThemeContext.Provider;
6
12
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
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;EAAE,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
+ {"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,12 +1,19 @@
1
1
  import * as React from 'react';
2
2
  /**
3
+ * @internal
3
4
  * Context shared by all of the tooltips in the app
4
5
  */
5
6
 
6
7
  const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
7
- export const {
8
- Provider: TooltipVisibilityProvider
9
- } = TooltipVisibilityContext;
8
+ /**
9
+ * @internal
10
+ */
11
+
12
+ export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
13
+ /**
14
+ * @internal
15
+ */
16
+
10
17
  export function useTooltipVisibility() {
11
18
  return React.useContext(TooltipVisibilityContext);
12
19
  }
@@ -1 +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;EAAE,QAAQ,EAAE;AAAZ,IAA0C,wBAAhD;AAEP,OAAM,SAAU,oBAAV,GAA8B;EAClC,OAAO,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/"}
1
+ {"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAgBA;;;AAGG;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAAmD,EAAnD,CAAjC;AAEA;;AAEG;;AACH,OAAO,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,QAA3D;AAEP;;AAEG;;AACH,OAAM,SAAU,oBAAV,GAA8B;EAClC,OAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;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>({});\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\n/**\n * @internal\n */\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext);\n}\n"],"sourceRoot":"../src/"}
@@ -6,11 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useFluent = exports.Provider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
+ /**
10
+ * @internal
11
+ */
12
+
9
13
 
10
14
  const ProviderContext = /*#__PURE__*/React.createContext({
11
15
  targetDocument: typeof document === 'object' ? document : undefined,
12
16
  dir: 'ltr'
13
17
  });
18
+ /**
19
+ * @internal
20
+ */
21
+
14
22
  exports.Provider = ProviderContext.Provider;
15
23
 
16
24
  function useFluent() {
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAUA,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKe,OAAA,CAAA,QAAA,GAAa,eAAe,CAAA,QAA5B;;AAEf,SAAgB,SAAhB,GAAyB;EACvB,OAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,SAAA,GAAA,SAAA","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
+ {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAUA;;AAEG;;;AACH,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKA;;AAEG;;AACU,OAAA,CAAA,QAAA,GAAW,eAAe,CAAC,QAA3B;;AAEb,SAAgB,SAAhB,GAAyB;EACvB,OAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,SAAA,GAAA,SAAA","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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
@@ -7,6 +7,7 @@ exports.useThemeClassName = exports.ThemeClassNameProvider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
  /**
10
+ * @internal
10
11
  * Used to provide a CSS class that applies theme css variables
11
12
  *
12
13
  * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
@@ -16,6 +17,7 @@ const React = /*#__PURE__*/require("react");
16
17
  const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
17
18
  exports.ThemeClassNameProvider = ThemeClassNameContext.Provider;
18
19
  /**
20
+ * @internal
19
21
  * @returns CSS class that applies css variables
20
22
  */
21
23
 
@@ -1 +1 @@
1
- {"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;AAIG;;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;AAEyB,OAAA,CAAA,sBAAA,GAA2B,qBAAqB,CAAA,QAAhD;AAEzB;;AAEG;;AACH,SAAgB,iBAAhB,GAAiC;EAC/B,OAAO,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,iBAAA,GAAA,iBAAA","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
+ {"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,CAAgD,EAAhD,CAA9B;AAEa,OAAA,CAAA,sBAAA,GAAyB,qBAAqB,CAAC,QAA/C;AAEb;;;AAGG;;AACH,SAAgB,iBAAhB,GAAiC;EAC/B,OAAO,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAP;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>('');\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);\n}\n"],"sourceRoot":"../src/"}
@@ -6,7 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ThemeProvider = exports.ThemeContext = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
+ /**
10
+ * @internal
11
+ */
12
+
9
13
 
10
14
  exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
15
+ /**
16
+ * @internal
17
+ */
18
+
11
19
  exports.ThemeProvider = exports.ThemeContext.Provider;
12
20
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAKa,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAAf;AAEY,OAAA,CAAA,aAAA,GAAkB,OAAA,CAAA,YAAA,CAAY,QAA9B","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
+ {"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/"}
@@ -7,12 +7,20 @@ exports.useTooltipVisibility = exports.TooltipVisibilityProvider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
  /**
10
+ * @internal
10
11
  * Context shared by all of the tooltips in the app
11
12
  */
12
13
 
13
14
 
14
15
  const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
16
+ /**
17
+ * @internal
18
+ */
19
+
15
20
  exports.TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
21
+ /**
22
+ * @internal
23
+ */
16
24
 
17
25
  function useTooltipVisibility() {
18
26
  return React.useContext(TooltipVisibilityContext);
@@ -1 +1 @@
1
- {"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;AAEG;;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAAmD,EAAnD,CAAjC;AAEyB,OAAA,CAAA,yBAAA,GAA8B,wBAAwB,CAAA,QAAtD;;AAEzB,SAAgB,oBAAhB,GAAoC;EAClC,OAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;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 * 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/"}
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,CAAmD,EAAnD,CAAjC;AAEA;;AAEG;;AACU,OAAA,CAAA,yBAAA,GAA4B,wBAAwB,CAAC,QAArD;AAEb;;AAEG;;AACH,SAAgB,oBAAhB,GAAoC;EAClC,OAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;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>({});\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\n/**\n * @internal\n */\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext);\n}\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "0.0.0-nightly-20220623-0419.1",
3
+ "version": "0.0.0-nightly-20220624-0419.1",
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,7 +27,7 @@
27
27
  "@fluentui/scripts": "^1.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@fluentui/react-theme": "0.0.0-nightly-20220623-0419.1",
30
+ "@fluentui/react-theme": "0.0.0-nightly-20220624-0419.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "peerDependencies": {