@fluentui/react-shared-contexts 0.0.0-nightlyfbae36b19b20211111.1 → 0.0.0-nightlyfc5cfdc52420220215.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,17 +2,96 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 11 Nov 2021 04:19:00 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v0.0.0-nightlyfbae36b19b20211111.1",
7
- "version": "0.0.0-nightlyfbae36b19b20211111.1",
5
+ "date": "Tue, 15 Feb 2022 04:11:41 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v0.0.0-nightlyfc5cfdc52420220215.1",
7
+ "version": "0.0.0-nightlyfc5cfdc52420220215.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-shared-contexts",
13
- "commit": "b913f5d66978b4e311c72ff6ba9f00d5817ab025",
13
+ "commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-shared-contexts",
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyfc5cfdc52420220215.1",
20
+ "commit": "911569f28daa07a66ee59e1d8b7cfaf6f86051e9"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Thu, 10 Feb 2022 08:50:48 GMT",
27
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-rc.1",
28
+ "version": "9.0.0-rc.1",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "martinhochel@microsoft.com",
33
+ "package": "@fluentui/react-shared-contexts",
34
+ "commit": "ecfe4c4fdc306e9c484706f28457f440f55d3684",
35
+ "comment": "make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue"
36
+ },
37
+ {
38
+ "author": "behowell@microsoft.com",
39
+ "package": "@fluentui/react-shared-contexts",
40
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
41
+ "comment": "Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
42
+ },
43
+ {
44
+ "author": "lingfangao@hotmail.com",
45
+ "package": "@fluentui/react-shared-contexts",
46
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
47
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-shared-contexts",
52
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
53
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
54
+ }
55
+ ],
56
+ "none": [
57
+ {
58
+ "author": "olfedias@microsoft.com",
59
+ "package": "@fluentui/react-shared-contexts",
60
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
61
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "date": "Thu, 25 Nov 2021 08:34:16 GMT",
68
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-beta.4",
69
+ "version": "9.0.0-beta.4",
70
+ "comments": {
71
+ "none": [
72
+ {
73
+ "author": "olfedias@microsoft.com",
74
+ "package": "@fluentui/react-shared-contexts",
75
+ "commit": "ba05e3ba0a8fec662323e2e39e628cf015dae3ef",
76
+ "comment": "update tooling configs"
77
+ }
78
+ ],
79
+ "prerelease": [
80
+ {
81
+ "author": "beachball",
82
+ "package": "@fluentui/react-shared-contexts",
83
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
84
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
85
+ }
86
+ ]
87
+ }
88
+ },
89
+ {
90
+ "date": "Fri, 12 Nov 2021 13:25:32 GMT",
91
+ "tag": "@fluentui/react-shared-contexts_v9.0.0-beta.3",
92
+ "version": "9.0.0-beta.3",
93
+ "comments": {
94
+ "prerelease": [
16
95
  {
17
96
  "author": "gcox@microsoft.com",
18
97
  "package": "@fluentui/react-shared-contexts",
@@ -22,8 +101,16 @@
22
101
  {
23
102
  "author": "beachball",
24
103
  "package": "@fluentui/react-shared-contexts",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyfbae36b19b20211111.1",
26
- "commit": "b913f5d66978b4e311c72ff6ba9f00d5817ab025"
104
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
105
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
106
+ }
107
+ ],
108
+ "none": [
109
+ {
110
+ "author": "lingfangao@hotmail.com",
111
+ "package": "@fluentui/react-shared-contexts",
112
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
113
+ "comment": "Remove beta release tag"
27
114
  }
28
115
  ]
29
116
  }
package/CHANGELOG.md CHANGED
@@ -1,19 +1,49 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Thu, 11 Nov 2021 04:19:00 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 15 Feb 2022 04:11:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyfbae36b19b20211111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightlyfbae36b19b20211111.1)
7
+ ## [0.0.0-nightlyfc5cfdc52420220215.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightlyfc5cfdc52420220215.1)
8
8
 
9
- Thu, 11 Nov 2021 04:19:00 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.2..@fluentui/react-shared-contexts_v0.0.0-nightlyfbae36b19b20211111.1)
9
+ Tue, 15 Feb 2022 04:11:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.1..@fluentui/react-shared-contexts_v0.0.0-nightlyfc5cfdc52420220215.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by email not defined)
15
+ - Bump @fluentui/react-theme to v0.0.0-nightlyfc5cfdc52420220215.1 ([commit](https://github.com/microsoft/fluentui/commit/911569f28daa07a66ee59e1d8b7cfaf6f86051e9) by beachball)
16
+
17
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.1)
18
+
19
+ Thu, 10 Feb 2022 08:50:48 GMT
20
+ [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)
21
+
22
+ ### Changes
23
+
24
+ - make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue ([PR #21286](https://github.com/microsoft/fluentui/pull/21286) by martinhochel@microsoft.com)
25
+ - 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)
26
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
27
+ - Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
28
+
29
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
30
+
31
+ Thu, 25 Nov 2021 08:34:16 GMT
32
+ [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)
33
+
34
+ ### Changes
35
+
36
+ - Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
37
+
38
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.3)
39
+
40
+ Fri, 12 Nov 2021 13:25:32 GMT
41
+ [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)
11
42
 
12
43
  ### Changes
13
44
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by email not defined)
15
45
  - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
16
- - Bump @fluentui/react-theme to v0.0.0-nightlyfbae36b19b20211111.1 ([commit](https://github.com/microsoft/fluentui/commit/b913f5d66978b4e311c72ff6ba9f00d5817ab025) by beachball)
46
+ - Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
17
47
 
18
48
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.2)
19
49
 
@@ -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,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 const 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,MAAM,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":["../../src/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","sourceRoot":""}
@@ -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":"","sources":["../../src/ThemeContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -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;
@@ -7,7 +7,7 @@ exports.useTheme = exports.ThemeContext = void 0;
7
7
 
8
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,MAAA,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":["../../src/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","sourceRoot":""}
@@ -1,2 +1 @@
1
1
  export * from './ThemeContext';
2
- export * from './ThemeContext.types';
@@ -7,6 +7,4 @@ Object.defineProperty(exports, "__esModule", {
7
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":["../../src/ThemeContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "0.0.0-nightlyfbae36b19b20211111.1",
3
+ "version": "0.0.0-nightlyfc5cfdc52420220215.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",
@@ -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": "0.0.0-nightlyfbae36b19b20211111.1",
38
+ "@fluentui/react-theme": "0.0.0-nightlyfc5cfdc52420220215.1",
38
39
  "tslib": "^2.1.0"
39
40
  },
40
41
  "peerDependencies": {
@@ -42,7 +43,6 @@
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",
@@ -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":""}