@fluentui/react-shared-contexts 0.0.0-nightly-20220530-0421.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.
Files changed (49) hide show
  1. package/CHANGELOG.json +36 -3
  2. package/CHANGELOG.md +16 -4
  3. package/dist/index.d.ts +32 -16
  4. package/lib/ProviderContext/ProviderContext.js +10 -1
  5. package/lib/ProviderContext/ProviderContext.js.map +1 -1
  6. package/lib/ProviderContext/index.js +0 -1
  7. package/lib/ProviderContext/index.js.map +1 -1
  8. package/lib/ThemeClassNameContext/ThemeClassNameContext.js +4 -1
  9. package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  10. package/lib/ThemeContext/ThemeContext.js +9 -3
  11. package/lib/ThemeContext/ThemeContext.js.map +1 -1
  12. package/lib/TooltipVisibilityContext/TooltipContext.js +20 -0
  13. package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -0
  14. package/lib/{TooltipContext → TooltipVisibilityContext}/index.js +0 -0
  15. package/lib/TooltipVisibilityContext/index.js.map +1 -0
  16. package/lib/TooltipVisibilityContext.js +2 -0
  17. package/lib/TooltipVisibilityContext.js.map +1 -0
  18. package/lib/index.js +4 -4
  19. package/lib/index.js.map +1 -1
  20. package/lib-commonjs/ProviderContext/ProviderContext.js +12 -3
  21. package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
  22. package/lib-commonjs/ProviderContext/index.js +0 -2
  23. package/lib-commonjs/ProviderContext/index.js.map +1 -1
  24. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +6 -3
  25. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  26. package/lib-commonjs/ThemeContext/ThemeContext.js +9 -6
  27. package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
  28. package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +30 -0
  29. package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -0
  30. package/lib-commonjs/{TooltipContext → TooltipVisibilityContext}/index.js +0 -0
  31. package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -0
  32. package/lib-commonjs/{TooltipContext.js → TooltipVisibilityContext.js} +2 -2
  33. package/lib-commonjs/TooltipVisibilityContext.js.map +1 -0
  34. package/lib-commonjs/index.js +19 -13
  35. package/lib-commonjs/index.js.map +1 -1
  36. package/package.json +2 -2
  37. package/lib/ProviderContext/ProviderContext.types.js +0 -2
  38. package/lib/ProviderContext/ProviderContext.types.js.map +0 -1
  39. package/lib/TooltipContext/TooltipContext.js +0 -7
  40. package/lib/TooltipContext/TooltipContext.js.map +0 -1
  41. package/lib/TooltipContext/index.js.map +0 -1
  42. package/lib/TooltipContext.js +0 -2
  43. package/lib/TooltipContext.js.map +0 -1
  44. package/lib-commonjs/ProviderContext/ProviderContext.types.js +0 -6
  45. package/lib-commonjs/ProviderContext/ProviderContext.types.js.map +0 -1
  46. package/lib-commonjs/TooltipContext/TooltipContext.js +0 -15
  47. package/lib-commonjs/TooltipContext/TooltipContext.js.map +0 -1
  48. package/lib-commonjs/TooltipContext/index.js.map +0 -1
  49. package/lib-commonjs/TooltipContext.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,9 +2,30 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 30 May 2022 04:31:32 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20220530-0421.1",
7
- "version": "0.0.0-nightly-20220530-0421.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
+ "comments": {
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
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-shared-contexts",
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220624-0419.1",
20
+ "commit": "5197053e8e0ad04d319248954fcfa61d4f63b97a"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Tue, 31 May 2022 21:28:45 GMT",
27
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-rc.10",
28
+ "version": "9.0.0-rc.10",
8
29
  "comments": {
9
30
  "prerelease": [
10
31
  {
@@ -12,6 +33,18 @@
12
33
  "package": "@fluentui/react-shared-contexts",
13
34
  "commit": "5a92ebd3f8687a1cd40e8233cacdb91d324b742a",
14
35
  "comment": "remove unused MenuContext"
36
+ },
37
+ {
38
+ "author": "me@levithomason.com",
39
+ "package": "@fluentui/react-shared-contexts",
40
+ "commit": "4ed24c29ddf8de037e4402d67c820b7398eaa265",
41
+ "comment": "remove useTheme from exports"
42
+ },
43
+ {
44
+ "author": "bernardo.sunderhus@gmail.com",
45
+ "package": "@fluentui/react-shared-contexts",
46
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd",
47
+ "comment": "mark context hooks and providers to unstable"
15
48
  }
16
49
  ]
17
50
  }
package/CHANGELOG.md CHANGED
@@ -1,17 +1,29 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Mon, 30 May 2022 04:31:32 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-20220530-0421.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20220530-0421.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
- Mon, 30 May 2022 04:31:32 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.9..@fluentui/react-shared-contexts_v0.0.0-nightly-20220530-0421.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
+
12
+ ### Changes
13
+
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)
16
+
17
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.10)
18
+
19
+ Tue, 31 May 2022 21:28:45 GMT
20
+ [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
21
 
12
22
  ### Changes
13
23
 
14
24
  - remove unused MenuContext ([PR #23277](https://github.com/microsoft/fluentui/pull/23277) by olfedias@microsoft.com)
25
+ - remove useTheme from exports ([PR #23335](https://github.com/microsoft/fluentui/pull/23335) by me@levithomason.com)
26
+ - mark context hooks and providers to unstable ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by bernardo.sunderhus@gmail.com)
15
27
 
16
28
  ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.9)
17
29
 
package/dist/index.d.ts CHANGED
@@ -1,35 +1,42 @@
1
1
  import * as React_2 from 'react';
2
2
  import type { Theme } from '@fluentui/react-theme';
3
3
 
4
- export declare const ProviderContext: React_2.Context<ProviderContextValue>;
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;
5
8
 
6
- export declare interface ProviderContextValue {
9
+ export declare type ProviderContextValue_unstable = {
7
10
  /** Sets the direction of text & generated styles. */
8
11
  dir: 'ltr' | 'rtl';
9
12
  /** Provides the document, can be undefined during SSR render. */
10
13
  targetDocument?: Document;
11
- }
14
+ };
15
+
16
+ export declare type ThemeClassNameContextValue_unstable = string;
17
+
18
+ export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
12
19
 
13
20
  /**
14
- * Used to provide a CSS class that applies theme css variables
15
- *
16
- * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
21
+ * @internal
17
22
  */
18
- export declare const ThemeClassNameContext: React_2.Context<string>;
19
-
20
- export declare type ThemeClassNameContextValue = string;
23
+ export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
21
24
 
22
- export declare const ThemeContext: React_2.Context<Theme | Partial<Theme> | undefined>;
25
+ /**
26
+ * @internal
27
+ */
28
+ export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
23
29
 
24
30
  /**
25
- * Context shared by all of the tooltips in the app
31
+ * @internal
26
32
  */
27
- export declare const TooltipContext: React_2.Context<TooltipContextType>;
33
+ export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
28
34
 
29
35
  /**
36
+ * @internal
30
37
  * The context provided by TooltipProvider
31
38
  */
32
- export declare type TooltipContextType = {
39
+ export declare type TooltipVisibilityContextValue_unstable = {
33
40
  /**
34
41
  * When a tooltip is shown, it sets itself as the visibleTooltip.
35
42
  * The next tooltip to become visible can use it to hide the previous tooltip immediately.
@@ -39,13 +46,22 @@ export declare type TooltipContextType = {
39
46
  };
40
47
  };
41
48
 
42
- export declare function useFluent(): ProviderContextValue;
49
+ /**
50
+ * @internal
51
+ */
52
+ export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
43
53
 
44
- export declare function useTheme(): Theme | Partial<Theme> | undefined;
54
+ export declare function useFluent_unstable(): ProviderContextValue_unstable;
45
55
 
46
56
  /**
57
+ * @internal
47
58
  * @returns CSS class that applies css variables
48
59
  */
49
- export declare function useThemeClassName(): ThemeClassNameContextValue;
60
+ export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
61
+
62
+ /**
63
+ * @internal
64
+ */
65
+ export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
50
66
 
51
67
  export { }
@@ -1,8 +1,17 @@
1
1
  import * as React from 'react';
2
- export const ProviderContext = /*#__PURE__*/React.createContext({
2
+ /**
3
+ * @internal
4
+ */
5
+
6
+ const ProviderContext = /*#__PURE__*/React.createContext({
3
7
  targetDocument: typeof document === 'object' ? document : undefined,
4
8
  dir: 'ltr'
5
9
  });
10
+ /**
11
+ * @internal
12
+ */
13
+
14
+ export const Provider = ProviderContext.Provider;
6
15
  export function useFluent() {
7
16
  return React.useContext(ProviderContext);
8
17
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;AACvE,EAAA,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADa;AAEvE,EAAA,GAAG,EAAE;AAFkE,CAA1C,CAAxB;AAKP,OAAM,SAAU,SAAV,GAAmB;AACvB,SAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\nimport type { ProviderContextValue } from './ProviderContext.types';\n\nexport const ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\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,3 +1,2 @@
1
1
  export * from './ProviderContext';
2
- export * from './ProviderContext.types';
3
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ProviderContext';\nexport * from './ProviderContext.types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './ProviderContext';\n"]}
@@ -1,12 +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
- export const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
9
+ const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
10
+ export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
9
11
  /**
12
+ * @internal
10
13
  * @returns CSS class that applies css variables
11
14
  */
12
15
 
@@ -1 +1 @@
1
- {"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;AAIG;;AACH,OAAO,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;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 */\nexport const ThemeClassNameContext = React.createContext<ThemeClassNameContextValue>('');\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 function useTheme() {
4
- return React.useContext(ThemeContext);
5
- }
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;AAGA,OAAO,MAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAwD,SAAxD,CAArB;AAEP,OAAM,SAAU,QAAV,GAAkB;AACtB,SAAO,KAAK,CAAC,UAAN,CAAiB,YAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport const ThemeContext = React.createContext<Theme | Partial<Theme> | undefined>(undefined);\n\nexport function useTheme(): Theme | Partial<Theme> | undefined {\n return React.useContext(ThemeContext);\n}\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/"}
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * @internal
4
+ * Context shared by all of the tooltips in the app
5
+ */
6
+
7
+ const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
8
+ /**
9
+ * @internal
10
+ */
11
+
12
+ export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
13
+ /**
14
+ * @internal
15
+ */
16
+
17
+ export function useTooltipVisibility() {
18
+ return React.useContext(TooltipVisibilityContext);
19
+ }
20
+ //# sourceMappingURL=TooltipContext.js.map
@@ -0,0 +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,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/"}
@@ -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,2 @@
1
+ export * from './TooltipVisibilityContext/index';
2
+ //# sourceMappingURL=TooltipVisibilityContext.js.map
@@ -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,5 +1,5 @@
1
- export { ThemeContext, useTheme } from './ThemeContext';
2
- export { ThemeClassNameContext, useThemeClassName } from './ThemeClassNameContext';
3
- export { TooltipContext } from './TooltipContext';
4
- export { ProviderContext, useFluent } 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';
5
5
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["export { ThemeContext, useTheme } from './ThemeContext';\nexport { ThemeClassNameContext, useThemeClassName } from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue } from './ThemeClassNameContext';\nexport { TooltipContext } from './TooltipContext';\nexport type { TooltipContextType } from './TooltipContext';\nexport { ProviderContext, useFluent } from './ProviderContext';\nexport type { ProviderContextValue } from './ProviderContext';\n"]}
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/"}
@@ -3,17 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useFluent = exports.ProviderContext = void 0;
6
+ exports.useFluent = exports.Provider = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
+ /**
10
+ * @internal
11
+ */
9
12
 
10
- exports.ProviderContext = /*#__PURE__*/React.createContext({
13
+
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
+
22
+ exports.Provider = ProviderContext.Provider;
14
23
 
15
24
  function useFluent() {
16
- return React.useContext(exports.ProviderContext);
25
+ return React.useContext(ProviderContext);
17
26
  }
18
27
 
19
28
  exports.useFluent = useFluent;
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGa,OAAA,CAAA,eAAA,gBAAkB,KAAK,CAAC,aAAN,CAA0C;AACvE,EAAA,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADa;AAEvE,EAAA,GAAG,EAAE;AAFkE,CAA1C,CAAlB;;AAKb,SAAgB,SAAhB,GAAyB;AACvB,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,eAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,SAAA,GAAA,SAAA","sourcesContent":["import * as React from 'react';\nimport type { ProviderContextValue } from './ProviderContext.types';\n\nexport const ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\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,4 @@ Object.defineProperty(exports, "__esModule", {
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ProviderContext"), exports);
10
-
11
- tslib_1.__exportStar(require("./ProviderContext.types"), exports);
12
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext';\nexport * from './ProviderContext.types';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["ProviderContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext';\n"],"sourceRoot":"../src/"}
@@ -3,23 +3,26 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useThemeClassName = exports.ThemeClassNameContext = void 0;
6
+ 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
13
14
  */
14
15
 
15
16
 
16
- exports.ThemeClassNameContext = /*#__PURE__*/React.createContext('');
17
+ const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
18
+ exports.ThemeClassNameProvider = ThemeClassNameContext.Provider;
17
19
  /**
20
+ * @internal
18
21
  * @returns CSS class that applies css variables
19
22
  */
20
23
 
21
24
  function useThemeClassName() {
22
- return React.useContext(exports.ThemeClassNameContext);
25
+ return React.useContext(ThemeClassNameContext);
23
26
  }
24
27
 
25
28
  exports.useThemeClassName = useThemeClassName;
@@ -1 +1 @@
1
- {"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;AAIG;;;AACU,OAAA,CAAA,qBAAA,gBAAwB,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAAxB;AAEb;;AAEG;;AACH,SAAgB,iBAAhB,GAAiC;AAC/B,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,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 */\nexport const ThemeClassNameContext = React.createContext<ThemeClassNameContextValue>('');\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/"}
@@ -3,15 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTheme = exports.ThemeContext = void 0;
6
+ exports.ThemeProvider = exports.ThemeContext = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
+ /**
10
+ * @internal
11
+ */
9
12
 
10
- exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
11
13
 
12
- function useTheme() {
13
- return React.useContext(exports.ThemeContext);
14
- }
14
+ exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
15
+ /**
16
+ * @internal
17
+ */
15
18
 
16
- exports.useTheme = useTheme;
19
+ exports.ThemeProvider = exports.ThemeContext.Provider;
17
20
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGa,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAwD,SAAxD,CAAf;;AAEb,SAAgB,QAAhB,GAAwB;AACtB,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,YAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,QAAA,GAAA,QAAA","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport const ThemeContext = React.createContext<Theme | Partial<Theme> | undefined>(undefined);\n\nexport function useTheme(): Theme | Partial<Theme> | undefined {\n return React.useContext(ThemeContext);\n}\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/"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTooltipVisibility = exports.TooltipVisibilityProvider = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+ /**
10
+ * @internal
11
+ * Context shared by all of the tooltips in the app
12
+ */
13
+
14
+
15
+ const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
16
+ /**
17
+ * @internal
18
+ */
19
+
20
+ exports.TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
21
+ /**
22
+ * @internal
23
+ */
24
+
25
+ function useTooltipVisibility() {
26
+ return React.useContext(TooltipVisibilityContext);
27
+ }
28
+
29
+ exports.useTooltipVisibility = useTooltipVisibility;
30
+ //# sourceMappingURL=TooltipContext.js.map
@@ -0,0 +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,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/"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TooltipVisibilityContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipContext';\n"],"sourceRoot":"../src/"}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
- tslib_1.__exportStar(require("./TooltipContext/index"), exports);
10
- //# sourceMappingURL=TooltipContext.js.map
9
+ tslib_1.__exportStar(require("./TooltipVisibilityContext/index"), exports);
10
+ //# sourceMappingURL=TooltipVisibilityContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["TooltipVisibilityContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kCAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"sourceRoot":"../src/"}
@@ -3,56 +3,62 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useFluent = exports.ProviderContext = exports.TooltipContext = exports.useThemeClassName = exports.ThemeClassNameContext = exports.useTheme = exports.ThemeContext = void 0;
6
+ exports.useFluent_unstable = exports.Provider_unstable = exports.useTooltipVisibility_unstable = exports.TooltipVisibilityProvider_unstable = exports.useThemeClassName_unstable = exports.ThemeClassNameProvider_unstable = exports.ThemeProvider_unstable = exports.ThemeContext_unstable = void 0;
7
7
 
8
8
  var ThemeContext_1 = /*#__PURE__*/require("./ThemeContext");
9
9
 
10
- Object.defineProperty(exports, "ThemeContext", {
10
+ Object.defineProperty(exports, "ThemeContext_unstable", {
11
11
  enumerable: true,
12
12
  get: function () {
13
13
  return ThemeContext_1.ThemeContext;
14
14
  }
15
15
  });
16
- Object.defineProperty(exports, "useTheme", {
16
+ Object.defineProperty(exports, "ThemeProvider_unstable", {
17
17
  enumerable: true,
18
18
  get: function () {
19
- return ThemeContext_1.useTheme;
19
+ return ThemeContext_1.ThemeProvider;
20
20
  }
21
21
  });
22
22
 
23
23
  var ThemeClassNameContext_1 = /*#__PURE__*/require("./ThemeClassNameContext");
24
24
 
25
- Object.defineProperty(exports, "ThemeClassNameContext", {
25
+ Object.defineProperty(exports, "ThemeClassNameProvider_unstable", {
26
26
  enumerable: true,
27
27
  get: function () {
28
- return ThemeClassNameContext_1.ThemeClassNameContext;
28
+ return ThemeClassNameContext_1.ThemeClassNameProvider;
29
29
  }
30
30
  });
31
- Object.defineProperty(exports, "useThemeClassName", {
31
+ Object.defineProperty(exports, "useThemeClassName_unstable", {
32
32
  enumerable: true,
33
33
  get: function () {
34
34
  return ThemeClassNameContext_1.useThemeClassName;
35
35
  }
36
36
  });
37
37
 
38
- var TooltipContext_1 = /*#__PURE__*/require("./TooltipContext");
38
+ var TooltipVisibilityContext_1 = /*#__PURE__*/require("./TooltipVisibilityContext");
39
39
 
40
- Object.defineProperty(exports, "TooltipContext", {
40
+ Object.defineProperty(exports, "TooltipVisibilityProvider_unstable", {
41
41
  enumerable: true,
42
42
  get: function () {
43
- return TooltipContext_1.TooltipContext;
43
+ return TooltipVisibilityContext_1.TooltipVisibilityProvider;
44
+ }
45
+ });
46
+ Object.defineProperty(exports, "useTooltipVisibility_unstable", {
47
+ enumerable: true,
48
+ get: function () {
49
+ return TooltipVisibilityContext_1.useTooltipVisibility;
44
50
  }
45
51
  });
46
52
 
47
53
  var ProviderContext_1 = /*#__PURE__*/require("./ProviderContext");
48
54
 
49
- Object.defineProperty(exports, "ProviderContext", {
55
+ Object.defineProperty(exports, "Provider_unstable", {
50
56
  enumerable: true,
51
57
  get: function () {
52
- return ProviderContext_1.ProviderContext;
58
+ return ProviderContext_1.Provider;
53
59
  }
54
60
  });
55
- Object.defineProperty(exports, "useFluent", {
61
+ Object.defineProperty(exports, "useFluent_unstable", {
56
62
  enumerable: true,
57
63
  get: function () {
58
64
  return ProviderContext_1.useFluent;
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,cAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,cAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,YAAA;AAAY;AAAZ,CAAA;AAAc,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,UAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,cAAA,CAAA,QAAA;AAAQ;AAAR,CAAA;;AACvB,IAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,uBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,uBAAA,CAAA,qBAAA;AAAqB;AAArB,CAAA;AAAuB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,uBAAA,CAAA,iBAAA;AAAiB;AAAjB,CAAA;;AAEhC,IAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,gBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,gBAAA,CAAA,cAAA;AAAc;AAAd,CAAA;;AAET,IAAA,iBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,iBAAA,CAAA,eAAA;AAAe;AAAf,CAAA;AAAiB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,WAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,iBAAA,CAAA,SAAA;AAAS;AAAT,CAAA","sourcesContent":["export { ThemeContext, useTheme } from './ThemeContext';\nexport { ThemeClassNameContext, useThemeClassName } from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue } from './ThemeClassNameContext';\nexport { TooltipContext } from './TooltipContext';\nexport type { TooltipContextType } from './TooltipContext';\nexport { ProviderContext, useFluent } from './ProviderContext';\nexport type { ProviderContextValue } from './ProviderContext';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,cAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,uBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,cAAA,CAAA,YAAA;EAAY;AAAZ,CAAA;AAAuC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,cAAA,CAAA,aAAA;EAAa;AAAb,CAAA;;AAGhD,IAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iCAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,uBAAA,CAAA,sBAAA;EAAsB;AAAtB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,4BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,uBAAA,CAAA,iBAAA;EAAiB;AAAjB,CAAA;;AAIF,IAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oCAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,0BAAA,CAAA,yBAAA;EAAyB;AAAzB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,+BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,0BAAA,CAAA,oBAAA;EAAoB;AAApB,CAAA;;AAIF,IAAA,iBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,iBAAA,CAAA,QAAA;EAAQ;AAAR,CAAA;AAA+B,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,iBAAA,CAAA,SAAA;EAAS;AAAT,CAAA","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/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "0.0.0-nightly-20220530-0421.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-20220530-0421.0",
30
+ "@fluentui/react-theme": "0.0.0-nightly-20220624-0419.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ProviderContext.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProviderContext.types.js","sourceRoot":"../src/","sources":["ProviderContext/ProviderContext.types.ts"],"names":[],"mappings":"","sourcesContent":["export interface 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"]}
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * Context shared by all of the tooltips in the app
4
- */
5
-
6
- export const TooltipContext = /*#__PURE__*/React.createContext({});
7
- //# sourceMappingURL=TooltipContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["TooltipContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;AAEG;;AACH,OAAO,MAAM,cAAc,gBAAG,KAAK,CAAC,aAAN,CAAwC,EAAxC,CAAvB","sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipContextType = {\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 */\nexport const TooltipContext = React.createContext<TooltipContextType>({});\n"],"sourceRoot":"../src/"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["TooltipContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './TooltipContext';\n"]}
@@ -1,2 +0,0 @@
1
- export * from './TooltipContext/index';
2
- //# sourceMappingURL=TooltipContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TooltipContext.js","sourceRoot":"../src/","sources":["TooltipContext.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './TooltipContext/index';\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=ProviderContext.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.TooltipContext = void 0;
7
-
8
- const React = /*#__PURE__*/require("react");
9
- /**
10
- * Context shared by all of the tooltips in the app
11
- */
12
-
13
-
14
- exports.TooltipContext = /*#__PURE__*/React.createContext({});
15
- //# sourceMappingURL=TooltipContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["TooltipContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;AAEG;;;AACU,OAAA,CAAA,cAAA,gBAAiB,KAAK,CAAC,aAAN,CAAwC,EAAxC,CAAjB","sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipContextType = {\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 */\nexport const TooltipContext = React.createContext<TooltipContextType>({});\n"],"sourceRoot":"../src/"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["TooltipContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipContext';\n"],"sourceRoot":"../src/"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["TooltipContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipContext/index';\n"],"sourceRoot":"../src/"}