@fluentui/react-shared-contexts 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.4

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 (72) hide show
  1. package/CHANGELOG.json +137 -8
  2. package/CHANGELOG.md +56 -6
  3. package/dist/react-shared-contexts.d.ts +2 -5
  4. package/lib/MenuContext/MenuContext.js +2 -2
  5. package/lib/MenuContext/MenuContext.js.map +1 -1
  6. package/lib/MenuContext/index.js.map +1 -1
  7. package/lib/MenuContext/types.js.map +1 -1
  8. package/lib/MenuContext.js.map +1 -1
  9. package/lib/ProviderContext/ProviderContext.js +1 -1
  10. package/lib/ProviderContext/ProviderContext.js.map +1 -1
  11. package/lib/ProviderContext/ProviderContext.types.js.map +1 -1
  12. package/lib/ProviderContext/index.js.map +1 -1
  13. package/lib/ProviderContext.js.map +1 -1
  14. package/lib/ThemeClassNameContext/ThemeClassNameContext.js +1 -1
  15. package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  16. package/lib/ThemeClassNameContext/index.js.map +1 -1
  17. package/lib/ThemeClassNameContext.js.map +1 -1
  18. package/lib/ThemeContext/ThemeContext.d.ts +3 -3
  19. package/lib/ThemeContext/ThemeContext.js +1 -1
  20. package/lib/ThemeContext/ThemeContext.js.map +1 -1
  21. package/lib/ThemeContext/index.d.ts +0 -1
  22. package/lib/ThemeContext/index.js +0 -1
  23. package/lib/ThemeContext/index.js.map +1 -1
  24. package/lib/ThemeContext.js.map +1 -1
  25. package/lib/TooltipContext/TooltipContext.js +1 -1
  26. package/lib/TooltipContext/TooltipContext.js.map +1 -1
  27. package/lib/TooltipContext/index.js.map +1 -1
  28. package/lib/TooltipContext.js.map +1 -1
  29. package/lib/index.js.map +1 -1
  30. package/lib-commonjs/MenuContext/MenuContext.js +2 -2
  31. package/lib-commonjs/MenuContext/MenuContext.js.map +1 -1
  32. package/lib-commonjs/MenuContext/index.js +1 -1
  33. package/lib-commonjs/MenuContext/index.js.map +1 -1
  34. package/lib-commonjs/MenuContext/types.js.map +1 -1
  35. package/lib-commonjs/MenuContext.js +1 -1
  36. package/lib-commonjs/MenuContext.js.map +1 -1
  37. package/lib-commonjs/ProviderContext/ProviderContext.js +1 -1
  38. package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
  39. package/lib-commonjs/ProviderContext/ProviderContext.types.js.map +1 -1
  40. package/lib-commonjs/ProviderContext/index.js +1 -1
  41. package/lib-commonjs/ProviderContext/index.js.map +1 -1
  42. package/lib-commonjs/ProviderContext.js +1 -1
  43. package/lib-commonjs/ProviderContext.js.map +1 -1
  44. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +1 -1
  45. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  46. package/lib-commonjs/ThemeClassNameContext/index.js +1 -1
  47. package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
  48. package/lib-commonjs/ThemeClassNameContext.js +1 -1
  49. package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
  50. package/lib-commonjs/ThemeContext/ThemeContext.d.ts +3 -3
  51. package/lib-commonjs/ThemeContext/ThemeContext.js +2 -2
  52. package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
  53. package/lib-commonjs/ThemeContext/index.d.ts +0 -1
  54. package/lib-commonjs/ThemeContext/index.js +1 -3
  55. package/lib-commonjs/ThemeContext/index.js.map +1 -1
  56. package/lib-commonjs/ThemeContext.js +1 -1
  57. package/lib-commonjs/ThemeContext.js.map +1 -1
  58. package/lib-commonjs/TooltipContext/TooltipContext.js +1 -1
  59. package/lib-commonjs/TooltipContext/TooltipContext.js.map +1 -1
  60. package/lib-commonjs/TooltipContext/index.js +1 -1
  61. package/lib-commonjs/TooltipContext/index.js.map +1 -1
  62. package/lib-commonjs/TooltipContext.js +1 -1
  63. package/lib-commonjs/TooltipContext.js.map +1 -1
  64. package/lib-commonjs/index.js +1 -1
  65. package/lib-commonjs/index.js.map +1 -1
  66. package/package.json +12 -5
  67. package/lib/ThemeContext/ThemeContext.types.d.ts +0 -3
  68. package/lib/ThemeContext/ThemeContext.types.js +0 -2
  69. package/lib/ThemeContext/ThemeContext.types.js.map +0 -1
  70. package/lib-commonjs/ThemeContext/ThemeContext.types.d.ts +0 -3
  71. package/lib-commonjs/ThemeContext/ThemeContext.types.js +0 -6
  72. package/lib-commonjs/ThemeContext/ThemeContext.types.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,22 +2,151 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 19 Oct 2021 12:39:14 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v9.0.0-nightly.f81b28ceb3.1",
7
- "version": "9.0.0-nightly.f81b28ceb3.1",
5
+ "date": "Fri, 04 Mar 2022 05:15:43 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-rc.4",
7
+ "version": "9.0.0-rc.4",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
- "author": "email not defined",
11
+ "author": "dzearing@microsoft.com",
12
+ "package": "@fluentui/react-shared-contexts",
13
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
14
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-shared-contexts",
19
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.4",
20
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 18 Feb 2022 13:35:34 GMT",
27
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-rc.3",
28
+ "version": "9.0.0-rc.3",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "lingfangao@hotmail.com",
33
+ "package": "@fluentui/react-shared-contexts",
34
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
35
+ "comment": "fix: Source maps contain original source code"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui/react-shared-contexts",
40
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.3",
41
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Thu, 10 Feb 2022 08:50:48 GMT",
48
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-rc.1",
49
+ "version": "9.0.0-rc.1",
50
+ "comments": {
51
+ "prerelease": [
52
+ {
53
+ "author": "martinhochel@microsoft.com",
54
+ "package": "@fluentui/react-shared-contexts",
55
+ "commit": "ecfe4c4fdc306e9c484706f28457f440f55d3684",
56
+ "comment": "make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue"
57
+ },
58
+ {
59
+ "author": "behowell@microsoft.com",
60
+ "package": "@fluentui/react-shared-contexts",
61
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
62
+ "comment": "Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
63
+ },
64
+ {
65
+ "author": "lingfangao@hotmail.com",
66
+ "package": "@fluentui/react-shared-contexts",
67
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
68
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-shared-contexts",
73
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
74
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
75
+ }
76
+ ],
77
+ "none": [
78
+ {
79
+ "author": "olfedias@microsoft.com",
80
+ "package": "@fluentui/react-shared-contexts",
81
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
82
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "date": "Thu, 25 Nov 2021 08:34:16 GMT",
89
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-beta.4",
90
+ "version": "9.0.0-beta.4",
91
+ "comments": {
92
+ "none": [
93
+ {
94
+ "author": "olfedias@microsoft.com",
95
+ "package": "@fluentui/react-shared-contexts",
96
+ "commit": "ba05e3ba0a8fec662323e2e39e628cf015dae3ef",
97
+ "comment": "update tooling configs"
98
+ }
99
+ ],
100
+ "prerelease": [
101
+ {
102
+ "author": "beachball",
103
+ "package": "@fluentui/react-shared-contexts",
104
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
105
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
106
+ }
107
+ ]
108
+ }
109
+ },
110
+ {
111
+ "date": "Fri, 12 Nov 2021 13:25:32 GMT",
112
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-beta.3",
113
+ "version": "9.0.0-beta.3",
114
+ "comments": {
115
+ "prerelease": [
116
+ {
117
+ "author": "gcox@microsoft.com",
12
118
  "package": "@fluentui/react-shared-contexts",
13
- "comment": "Release nightly v9",
14
- "commit": "0ae8560ad3e7b4cb03f3f47152dfce2f81523cca"
119
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
120
+ "comment": "Updated beta and RC components to ES2019"
15
121
  },
16
122
  {
17
123
  "author": "beachball",
18
124
  "package": "@fluentui/react-shared-contexts",
19
- "comment": "Bump @fluentui/react-theme to v9.0.0-nightly.f81b28ceb3.1",
20
- "commit": "0ae8560ad3e7b4cb03f3f47152dfce2f81523cca"
125
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
126
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
127
+ }
128
+ ],
129
+ "none": [
130
+ {
131
+ "author": "lingfangao@hotmail.com",
132
+ "package": "@fluentui/react-shared-contexts",
133
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
134
+ "comment": "Remove beta release tag"
135
+ }
136
+ ]
137
+ }
138
+ },
139
+ {
140
+ "date": "Wed, 27 Oct 2021 12:14:24 GMT",
141
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-beta.2",
142
+ "version": "9.0.0-beta.2",
143
+ "comments": {
144
+ "prerelease": [
145
+ {
146
+ "author": "beachball",
147
+ "package": "@fluentui/react-shared-contexts",
148
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.2",
149
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
21
150
  }
22
151
  ]
23
152
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,68 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Tue, 19 Oct 2021 12:39:14 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 04 Mar 2022 05:15:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.0.0-nightly.f81b28ceb3.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-nightly.f81b28ceb3.1)
7
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.4)
8
8
 
9
- Tue, 19 Oct 2021 12:39:14 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.1..@fluentui/react-shared-contexts_v9.0.0-nightly.f81b28ceb3.1)
9
+ Fri, 04 Mar 2022 05:15:43 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.3..@fluentui/react-shared-contexts_v9.0.0-rc.4)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/0ae8560ad3e7b4cb03f3f47152dfce2f81523cca) by email not defined)
15
- - Bump @fluentui/react-theme to v9.0.0-nightly.f81b28ceb3.1 ([commit](https://github.com/microsoft/fluentui/commit/0ae8560ad3e7b4cb03f3f47152dfce2f81523cca) by beachball)
14
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
15
+ - Bump @fluentui/react-theme to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
16
+
17
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.3)
18
+
19
+ Fri, 18 Feb 2022 13:35:34 GMT
20
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.1..@fluentui/react-shared-contexts_v9.0.0-rc.3)
21
+
22
+ ### Changes
23
+
24
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
25
+ - Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
26
+
27
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.1)
28
+
29
+ Thu, 10 Feb 2022 08:50:48 GMT
30
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.4..@fluentui/react-shared-contexts_v9.0.0-rc.1)
31
+
32
+ ### Changes
33
+
34
+ - make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue ([PR #21286](https://github.com/microsoft/fluentui/pull/21286) by martinhochel@microsoft.com)
35
+ - Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
36
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
37
+ - Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
38
+
39
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
40
+
41
+ Thu, 25 Nov 2021 08:34:16 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.3..@fluentui/react-shared-contexts_v9.0.0-beta.4)
43
+
44
+ ### Changes
45
+
46
+ - Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
47
+
48
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.3)
49
+
50
+ Fri, 12 Nov 2021 13:25:32 GMT
51
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.2..@fluentui/react-shared-contexts_v9.0.0-beta.3)
52
+
53
+ ### Changes
54
+
55
+ - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
56
+ - Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
57
+
58
+ ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.2)
59
+
60
+ Wed, 27 Oct 2021 12:14:24 GMT
61
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.1..@fluentui/react-shared-contexts_v9.0.0-beta.2)
62
+
63
+ ### Changes
64
+
65
+ - Bump @fluentui/react-theme to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
16
66
 
17
67
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.1)
18
68
 
@@ -27,10 +27,7 @@ export declare const ThemeClassNameContext: React_2.Context<string>;
27
27
 
28
28
  export declare type ThemeClassNameContextValue = string;
29
29
 
30
- export declare const ThemeContext: React_2.Context<ThemeContextValue>;
31
-
32
- export declare interface ThemeContextValue extends Theme {
33
- }
30
+ export declare const ThemeContext: React_2.Context<Theme | Partial<Theme> | undefined>;
34
31
 
35
32
  /**
36
33
  * Context shared by all of the tooltips in the app
@@ -54,7 +51,7 @@ export declare function useFluent(): ProviderContextValue;
54
51
 
55
52
  export declare const useMenuContext: () => MinimalMenuProps;
56
53
 
57
- export declare function useTheme(): ThemeContextValue;
54
+ export declare function useTheme(): Theme | Partial<Theme> | undefined;
58
55
 
59
56
  /**
60
57
  * @returns CSS class that applies css variables
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- export var MenuContext = /*#__PURE__*/React.createContext({});
3
- export var useMenuContext = function () {
2
+ export const MenuContext = /*#__PURE__*/React.createContext({});
3
+ export const useMenuContext = () => {
4
4
  return React.useContext(MenuContext);
5
5
  };
6
6
  //# sourceMappingURL=MenuContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/MenuContext/MenuContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,IAAM,WAAW,gBAAG,KAAK,CAAC,aAAN,CAAsC,EAAtC,CAApB;AAEP,OAAO,IAAM,cAAc,GAAG,YAAA;AAC5B,SAAO,KAAK,CAAC,UAAN,CAAiB,WAAjB,CAAP;AACD,CAFM","sourceRoot":""}
1
+ {"version":3,"sources":["MenuContext/MenuContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,MAAM,WAAW,gBAAG,KAAK,CAAC,aAAN,CAAsC,EAAtC,CAApB;AAEP,OAAO,MAAM,cAAc,GAAG,MAAK;AACjC,SAAO,KAAK,CAAC,UAAN,CAAiB,WAAjB,CAAP;AACD,CAFM","sourcesContent":["import * as React from 'react';\nimport type { MinimalMenuProps } from './types';\n\nexport const MenuContext = React.createContext<MinimalMenuProps>({});\n\nexport const useMenuContext = () => {\n return React.useContext(MenuContext);\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/MenuContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["MenuContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC","sourcesContent":["export * from './MenuContext';\nexport * from './types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/MenuContext/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"../src/","sources":["MenuContext/types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\n\nexport type MinimalMenuProps = {\n hidden?: boolean;\n onDismiss?: () => void;\n target?: React.Ref<HTMLElement>;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContext.js","sourceRoot":"","sources":["../src/MenuContext.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"MenuContext.js","sourceRoot":"../src/","sources":["MenuContext.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './MenuContext/index';\n"]}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export var ProviderContext = /*#__PURE__*/React.createContext({
2
+ export const ProviderContext = /*#__PURE__*/React.createContext({
3
3
  targetDocument: typeof document === 'object' ? document : undefined,
4
4
  dir: 'ltr'
5
5
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,IAAM,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","sourceRoot":""}
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 +1 @@
1
- {"version":3,"file":"ProviderContext.types.js","sourceRoot":"","sources":["../../src/ProviderContext/ProviderContext.types.ts"],"names":[],"mappings":""}
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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
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 +1 @@
1
- {"version":3,"file":"ProviderContext.js","sourceRoot":"","sources":["../src/ProviderContext.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ProviderContext.js","sourceRoot":"../src/","sources":["ProviderContext.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ProviderContext/index';\n"]}
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
6
6
  */
7
7
 
8
- export var ThemeClassNameContext = /*#__PURE__*/React.createContext('');
8
+ export const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
9
9
  /**
10
10
  * @returns CSS class that applies css variables
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;AAIG;;AACH,OAAO,IAAM,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","sourceRoot":""}
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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ThemeClassNameContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ThemeClassNameContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './ThemeClassNameContext';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeClassNameContext.js","sourceRoot":"","sources":["../src/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"ThemeClassNameContext.js","sourceRoot":"../src/","sources":["ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './ThemeClassNameContext/index';\n"]}
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import type { ThemeContextValue } from './ThemeContext.types';
3
- export declare const ThemeContext: React.Context<ThemeContextValue>;
4
- export declare function useTheme(): ThemeContextValue;
2
+ import type { Theme } from '@fluentui/react-theme';
3
+ export declare const ThemeContext: React.Context<Theme | Partial<Theme> | undefined>;
4
+ export declare function useTheme(): Theme | Partial<Theme> | undefined;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export var ThemeContext = /*#__PURE__*/React.createContext(null);
2
+ export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
3
3
  export function useTheme() {
4
4
  return React.useContext(ThemeContext);
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAGA,OAAO,IAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAqB,IAArB,CAArB;AAEP,OAAM,SAAU,QAAV,GAAkB;AACtB,SAAO,KAAK,CAAC,UAAN,CAAiB,YAAjB,CAAP;AACD","sourceRoot":""}
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,2 +1 @@
1
1
  export * from './ThemeContext';
2
- export * from './ThemeContext.types';
@@ -1,3 +1,2 @@
1
1
  export * from './ThemeContext';
2
- export * from './ThemeContext.types';
3
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ThemeContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ThemeContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './ThemeContext';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext.js","sourceRoot":"","sources":["../src/ThemeContext.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ThemeContext.js","sourceRoot":"../src/","sources":["ThemeContext.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './ThemeContext/index';\n"]}
@@ -3,5 +3,5 @@ import * as React from 'react';
3
3
  * Context shared by all of the tooltips in the app
4
4
  */
5
5
 
6
- export var TooltipContext = /*#__PURE__*/React.createContext({});
6
+ export const TooltipContext = /*#__PURE__*/React.createContext({});
7
7
  //# sourceMappingURL=TooltipContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/TooltipContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;AAEG;;AACH,OAAO,IAAM,cAAc,gBAAG,KAAK,CAAC,aAAN,CAAwC,EAAxC,CAAvB","sourceRoot":""}
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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TooltipContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["TooltipContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './TooltipContext';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipContext.js","sourceRoot":"","sources":["../src/TooltipContext.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"TooltipContext.js","sourceRoot":"../src/","sources":["TooltipContext.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './TooltipContext/index';\n"]}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './MenuContext';\nexport * from './ThemeContext';\nexport * from './ThemeClassNameContext';\nexport * from './TooltipContext';\nexport * from './ProviderContext';\n"]}
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useMenuContext = exports.MenuContext = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
10
  exports.MenuContext = /*#__PURE__*/React.createContext({});
11
11
 
12
- var useMenuContext = function () {
12
+ const useMenuContext = () => {
13
13
  return React.useContext(exports.MenuContext);
14
14
  };
15
15
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/MenuContext/MenuContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGa,OAAA,CAAA,WAAA,gBAAc,KAAK,CAAC,aAAN,CAAsC,EAAtC,CAAd;;AAEN,IAAM,cAAc,GAAG,YAAA;AAC5B,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,WAAjB,CAAP;AACD,CAFM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["MenuContext/MenuContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGa,OAAA,CAAA,WAAA,gBAAc,KAAK,CAAC,aAAN,CAAsC,EAAtC,CAAd;;AAEN,MAAM,cAAc,GAAG,MAAK;AACjC,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,WAAjB,CAAP;AACD,CAFM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourcesContent":["import * as React from 'react';\nimport type { MinimalMenuProps } from './types';\n\nexport const MenuContext = React.createContext<MinimalMenuProps>({});\n\nexport const useMenuContext = () => {\n return React.useContext(MenuContext);\n};\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuContext"), exports);
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/MenuContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["MenuContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuContext';\nexport * from './types';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuContext/index"), exports);
10
10
  //# sourceMappingURL=MenuContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/MenuContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["MenuContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuContext/index';\n"],"sourceRoot":"../src/"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useFluent = exports.ProviderContext = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
10
  exports.ProviderContext = /*#__PURE__*/React.createContext({
11
11
  targetDocument: typeof document === 'object' ? document : undefined,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,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","sourceRoot":""}
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 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ProviderContext"), exports);
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/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","sourceRoot":""}
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/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ProviderContext/index"), exports);
10
10
  //# sourceMappingURL=ProviderContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ProviderContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["ProviderContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext/index';\n"],"sourceRoot":"../src/"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useThemeClassName = exports.ThemeClassNameContext = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
  /**
10
10
  * Used to provide a CSS class that applies theme css variables
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,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","sourceRoot":""}
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/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ThemeClassNameContext"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeClassNameContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["ThemeClassNameContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeClassNameContext';\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ThemeClassNameContext/index"), exports);
10
10
  //# sourceMappingURL=ThemeClassNameContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"sourceRoot":"../src/"}
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import type { ThemeContextValue } from './ThemeContext.types';
3
- export declare const ThemeContext: React.Context<ThemeContextValue>;
4
- export declare function useTheme(): ThemeContextValue;
2
+ import type { Theme } from '@fluentui/react-theme';
3
+ export declare const ThemeContext: React.Context<Theme | Partial<Theme> | undefined>;
4
+ export declare function useTheme(): Theme | Partial<Theme> | undefined;
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useTheme = exports.ThemeContext = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
 
10
- exports.ThemeContext = /*#__PURE__*/React.createContext(null);
10
+ exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
11
11
 
12
12
  function useTheme() {
13
13
  return React.useContext(exports.ThemeContext);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAGa,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAqB,IAArB,CAAf;;AAEb,SAAgB,QAAhB,GAAwB;AACtB,SAAO,KAAK,CAAC,UAAN,CAAiB,OAAA,CAAA,YAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,QAAA,GAAA,QAAA","sourceRoot":""}
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,2 +1 @@
1
1
  export * from './ThemeContext';
2
- export * from './ThemeContext.types';
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ThemeContext"), exports);
10
-
11
- tslib_1.__exportStar(require("./ThemeContext.types"), exports);
12
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ThemeContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["ThemeContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeContext';\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./ThemeContext/index"), exports);
10
10
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/ThemeContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["ThemeContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeContext/index';\n"],"sourceRoot":"../src/"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.TooltipContext = void 0;
7
7
 
8
- var React = /*#__PURE__*/require("react");
8
+ const React = /*#__PURE__*/require("react");
9
9
  /**
10
10
  * Context shared by all of the tooltips in the app
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/TooltipContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;AAEG;;;AACU,OAAA,CAAA,cAAA,gBAAiB,KAAK,CAAC,aAAN,CAAwC,EAAxC,CAAjB","sourceRoot":""}
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/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./TooltipContext"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/TooltipContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
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/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./TooltipContext/index"), exports);
10
10
  //# sourceMappingURL=TooltipContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/TooltipContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
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/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./MenuContext"), exports);
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './MenuContext';\nexport * from './ThemeContext';\nexport * from './ThemeClassNameContext';\nexport * from './TooltipContext';\nexport * from './ProviderContext';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "9.0.0-nightly.f81b28ceb3.1",
3
+ "version": "9.0.0-rc.4",
4
4
  "description": "Fluent UI React Contexts shared by multiple components.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,8 +18,9 @@
18
18
  "just": "just-scripts",
19
19
  "lint": "just-scripts lint",
20
20
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
21
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-shared-contexts/src && yarn docs",
22
- "test": "jest --passWithNoTests"
21
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-shared-contexts/src && yarn docs",
22
+ "test": "jest --passWithNoTests",
23
+ "type-check": "tsc -b tsconfig.json"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@fluentui/eslint-plugin": "*",
@@ -34,7 +35,7 @@
34
35
  "react-test-renderer": "^16.3.0"
35
36
  },
36
37
  "dependencies": {
37
- "@fluentui/react-theme": "9.0.0-nightly.f81b28ceb3.1",
38
+ "@fluentui/react-theme": "9.0.0-rc.4",
38
39
  "tslib": "^2.1.0"
39
40
  },
40
41
  "peerDependencies": {
@@ -42,11 +43,17 @@
42
43
  "react": ">=16.8.0 <18.0.0"
43
44
  },
44
45
  "beachball": {
45
- "tag": "beta",
46
46
  "disallowedChangeTypes": [
47
47
  "major",
48
48
  "minor",
49
49
  "patch"
50
50
  ]
51
+ },
52
+ "exports": {
53
+ ".": {
54
+ "types": "./lib/index.d.ts",
55
+ "import": "./lib/index.js",
56
+ "require": "./lib-commonjs/index.js"
57
+ }
51
58
  }
52
59
  }
@@ -1,3 +0,0 @@
1
- import type { Theme } from '@fluentui/react-theme';
2
- export interface ThemeContextValue extends Theme {
3
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ThemeContext.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeContext.types.js","sourceRoot":"","sources":["../../src/ThemeContext/ThemeContext.types.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { Theme } from '@fluentui/react-theme';
2
- export interface ThemeContextValue extends Theme {
3
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=ThemeContext.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}