@fluentui/react-shared-contexts 0.0.0-nightlya54302c0b220211124.1 → 0.0.0-nightlyb8663b78ad20220207.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 +54 -5
- package/CHANGELOG.md +17 -5
- package/dist/react-shared-contexts.d.ts +2 -5
- package/lib/ThemeContext/ThemeContext.d.ts +3 -3
- package/lib/ThemeContext/ThemeContext.js +1 -1
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/ThemeContext/index.d.ts +0 -1
- package/lib/ThemeContext/index.js +0 -1
- package/lib/ThemeContext/index.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.d.ts +3 -3
- package/lib-commonjs/ThemeContext/ThemeContext.js +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/index.d.ts +0 -1
- package/lib-commonjs/ThemeContext/index.js +0 -2
- package/lib-commonjs/ThemeContext/index.js.map +1 -1
- package/package.json +5 -4
- package/lib/ThemeContext/ThemeContext.types.d.ts +0 -3
- package/lib/ThemeContext/ThemeContext.types.js +0 -2
- package/lib/ThemeContext/ThemeContext.types.js.map +0 -1
- package/lib-commonjs/ThemeContext/ThemeContext.types.d.ts +0 -3
- package/lib-commonjs/ThemeContext/ThemeContext.types.js +0 -6
- package/lib-commonjs/ThemeContext/ThemeContext.types.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,16 +2,65 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-shared-contexts_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Mon, 07 Feb 2022 04:15:35 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v0.0.0-nightlyb8663b78ad20220207.1",
|
7
|
+
"version": "0.0.0-nightlyb8663b78ad20220207.1",
|
8
8
|
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "email not defined",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "2e460da7ff58924597e3137a784dc897fd174d71",
|
14
|
+
"comment": "Release nightly v9"
|
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
|
+
},
|
22
|
+
{
|
23
|
+
"author": "behowell@microsoft.com",
|
24
|
+
"package": "@fluentui/react-shared-contexts",
|
25
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
26
|
+
"comment": "Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-shared-contexts",
|
31
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightlyb8663b78ad20220207.1",
|
32
|
+
"commit": "2e460da7ff58924597e3137a784dc897fd174d71"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"none": [
|
36
|
+
{
|
37
|
+
"author": "olfedias@microsoft.com",
|
38
|
+
"package": "@fluentui/react-shared-contexts",
|
39
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
40
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"date": "Thu, 25 Nov 2021 08:34:16 GMT",
|
47
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.0-beta.4",
|
48
|
+
"version": "9.0.0-beta.4",
|
49
|
+
"comments": {
|
50
|
+
"none": [
|
51
|
+
{
|
52
|
+
"author": "olfedias@microsoft.com",
|
53
|
+
"package": "@fluentui/react-shared-contexts",
|
54
|
+
"commit": "ba05e3ba0a8fec662323e2e39e628cf015dae3ef",
|
55
|
+
"comment": "update tooling configs"
|
56
|
+
}
|
57
|
+
],
|
9
58
|
"prerelease": [
|
10
59
|
{
|
11
60
|
"author": "beachball",
|
12
61
|
"package": "@fluentui/react-shared-contexts",
|
13
|
-
"comment": "Bump @fluentui/react-theme to
|
14
|
-
"commit": "
|
62
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
63
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
15
64
|
}
|
16
65
|
]
|
17
66
|
}
|
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
|
3
|
+
This log was last generated on Mon, 07 Feb 2022 04:15:35 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyb8663b78ad20220207.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightlyb8663b78ad20220207.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-beta.
|
9
|
+
Mon, 07 Feb 2022 04:15:35 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-nightlyb8663b78ad20220207.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
-
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) 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
|
+
- 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)
|
17
|
+
- Bump @fluentui/react-theme to v0.0.0-nightlyb8663b78ad20220207.1 ([commit](https://github.com/microsoft/fluentui/commit/2e460da7ff58924597e3137a784dc897fd174d71) by beachball)
|
18
|
+
|
19
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.4)
|
20
|
+
|
21
|
+
Thu, 25 Nov 2021 08:34:16 GMT
|
22
|
+
[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)
|
23
|
+
|
24
|
+
### Changes
|
25
|
+
|
26
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
15
27
|
|
16
28
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-beta.3)
|
17
29
|
|
@@ -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<
|
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():
|
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 {
|
3
|
-
export declare const ThemeContext: React.Context<
|
4
|
-
export declare function useTheme():
|
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 +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,
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ThemeContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,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 {
|
3
|
-
export declare const ThemeContext: React.Context<
|
4
|
-
export declare function useTheme():
|
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(
|
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,
|
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 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/ThemeContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA
|
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-
|
3
|
+
"version": "0.0.0-nightlyb8663b78ad20220207.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-
|
38
|
+
"@fluentui/react-theme": "0.0.0-nightlyb8663b78ad20220207.1",
|
38
39
|
"tslib": "^2.1.0"
|
39
40
|
},
|
40
41
|
"peerDependencies": {
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ThemeContext.types.js","sourceRoot":"","sources":["../../src/ThemeContext/ThemeContext.types.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
|