@fluentui/react-shared-contexts 0.0.0-nightlyd3bf09bf8120211201.1 → 0.0.0-nightlydd0f007b3f20220119.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,22 +2,28 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 01 Dec 2021 04:25:39 GMT",
6
- "tag": "@fluentui/react-shared-contexts_v0.0.0-nightlyd3bf09bf8120211201.1",
7
- "version": "0.0.0-nightlyd3bf09bf8120211201.1",
5
+ "date": "Wed, 19 Jan 2022 04:16:39 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v0.0.0-nightlydd0f007b3f20220119.1",
7
+ "version": "0.0.0-nightlydd0f007b3f20220119.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-shared-contexts",
13
- "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7",
13
+ "commit": "6044506cc626a9a155e0df40645426ddcc080c55",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "martinhochel@microsoft.com",
18
+ "package": "@fluentui/react-shared-contexts",
19
+ "commit": "ecfe4c4fdc306e9c484706f28457f440f55d3684",
20
+ "comment": "make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue"
21
+ },
16
22
  {
17
23
  "author": "beachball",
18
24
  "package": "@fluentui/react-shared-contexts",
19
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyd3bf09bf8120211201.1",
20
- "commit": "40bec5fdab524f928e775fb2ed002822255eb2a7"
25
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlydd0f007b3f20220119.1",
26
+ "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
21
27
  }
22
28
  ]
23
29
  }
package/CHANGELOG.md CHANGED
@@ -1,18 +1,19 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Wed, 01 Dec 2021 04:25:39 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 19 Jan 2022 04:16:39 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyd3bf09bf8120211201.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightlyd3bf09bf8120211201.1)
7
+ ## [0.0.0-nightlydd0f007b3f20220119.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightlydd0f007b3f20220119.1)
8
8
 
9
- Wed, 01 Dec 2021 04:25:39 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.4..@fluentui/react-shared-contexts_v0.0.0-nightlyd3bf09bf8120211201.1)
9
+ Wed, 19 Jan 2022 04:16:39 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.4..@fluentui/react-shared-contexts_v0.0.0-nightlydd0f007b3f20220119.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by email not defined)
15
- - Bump @fluentui/react-theme to v0.0.0-nightlyd3bf09bf8120211201.1 ([commit](https://github.com/microsoft/fluentui/commit/40bec5fdab524f928e775fb2ed002822255eb2a7) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by email not defined)
15
+ - make the ThemeContext TS API reflect runtime and remove redundant ThemeContextValue ([PR #21286](https://github.com/microsoft/fluentui/pull/21286) by martinhochel@microsoft.com)
16
+ - Bump @fluentui/react-theme to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
16
17
 
17
18
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
18
19
 
@@ -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-nightlyd3bf09bf8120211201.1",
3
+ "version": "0.0.0-nightlydd0f007b3f20220119.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",
@@ -35,7 +35,7 @@
35
35
  "react-test-renderer": "^16.3.0"
36
36
  },
37
37
  "dependencies": {
38
- "@fluentui/react-theme": "0.0.0-nightlyd3bf09bf8120211201.1",
38
+ "@fluentui/react-theme": "0.0.0-nightlydd0f007b3f20220119.1",
39
39
  "tslib": "^2.1.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -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":""}