@fluentui/react-shared-contexts
Advanced tools
Comparing version 1.0.0-beta.11 to 9.0.0-alpha.2
@@ -5,3 +5,24 @@ { | ||
{ | ||
"date": "Mon, 15 Mar 2021 07:33:50 GMT", | ||
"date": "Tue, 30 Mar 2021 07:30:40 GMT", | ||
"tag": "@fluentui/react-shared-contexts_v9.0.0-alpha.2", | ||
"version": "9.0.0-alpha.2", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "chore: restore \"sideEffects\" to enable treeshaking", | ||
"author": "olfedias@microsoft.com", | ||
"commit": "8d6eb6f174660017e96d2c539a08e1d64ccdf4a3", | ||
"package": "@fluentui/react-shared-contexts" | ||
}, | ||
{ | ||
"comment": "Lifts ThemeContext and FluentProviderContext to react-shared-contexts", | ||
"author": "bsunderhus@microsoft.com", | ||
"commit": "0e497f76bceee79ee6f15524b9903a9eda653c44", | ||
"package": "@fluentui/react-shared-contexts" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Mon, 15 Mar 2021 07:36:20 GMT", | ||
"tag": "@fluentui/react-shared-contexts_v1.0.0-beta.11", | ||
@@ -8,0 +29,0 @@ "version": "1.0.0-beta.11", |
# Change Log - @fluentui/react-shared-contexts | ||
This log was last generated on Mon, 15 Mar 2021 07:33:50 GMT and should not be manually modified. | ||
This log was last generated on Tue, 30 Mar 2021 07:30:40 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-alpha.2) | ||
Tue, 30 Mar 2021 07:30:40 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.11..@fluentui/react-shared-contexts_v9.0.0-alpha.2) | ||
### Changes | ||
- chore: restore "sideEffects" to enable treeshaking ([PR #17584](https://github.com/microsoft/fluentui/pull/17584) by olfedias@microsoft.com) | ||
- Lifts ThemeContext and FluentProviderContext to react-shared-contexts ([PR #17586](https://github.com/microsoft/fluentui/pull/17586) by bsunderhus@microsoft.com) | ||
## [1.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v1.0.0-beta.11) | ||
Mon, 15 Mar 2021 07:33:50 GMT | ||
Mon, 15 Mar 2021 07:36:20 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v1.0.0-beta.10..@fluentui/react-shared-contexts_v1.0.0-beta.11) | ||
@@ -11,0 +21,0 @@ |
import * as React from 'react'; | ||
import { Theme } from '@fluentui/react-theme'; | ||
@@ -14,4 +15,22 @@ export declare const MenuContext: React.Context<MinimalMenuProps>; | ||
export declare const ProviderContext: React.Context<ProviderContextValue>; | ||
export declare interface ProviderContextValue { | ||
/** Sets the direction of text & generated styles. */ | ||
dir: 'ltr' | 'rtl'; | ||
/** Provides the document, can be undefined during SSR render. */ | ||
document?: Document; | ||
} | ||
export declare const ThemeContext: React.Context<ThemeContextValue>; | ||
export declare interface ThemeContextValue extends Theme { | ||
} | ||
export declare function useFluent(): ProviderContextValue; | ||
export declare const useMenuContext: () => MinimalMenuProps; | ||
export declare function useTheme(): ThemeContextValue; | ||
export { } |
@@ -8,2 +8,3 @@ ## API Report File for "@fluentui/react-shared-contexts" | ||
import * as React from 'react'; | ||
import { Theme } from '@fluentui/react-theme'; | ||
@@ -21,7 +22,29 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export const ProviderContext: React.Context<ProviderContextValue>; | ||
// @public (undocumented) | ||
export interface ProviderContextValue { | ||
dir: 'ltr' | 'rtl'; | ||
document?: Document; | ||
} | ||
// @public (undocumented) | ||
export const ThemeContext: React.Context<ThemeContextValue>; | ||
// @public (undocumented) | ||
export interface ThemeContextValue extends Theme { | ||
} | ||
// @public (undocumented) | ||
export function useFluent(): ProviderContextValue; | ||
// @public (undocumented) | ||
export const useMenuContext: () => MinimalMenuProps; | ||
// @public (undocumented) | ||
export function useTheme(): ThemeContextValue; | ||
// (No @packageDocumentation comment for this package) | ||
``` |
export * from './MenuContext'; | ||
export * from './ThemeContext'; | ||
export * from './ProviderContext'; |
@@ -1,6 +0,8 @@ | ||
define(["require", "exports", "tslib", "./MenuContext"], function (require, exports, tslib_1, MenuContext_1) { | ||
define(["require", "exports", "tslib", "./MenuContext", "./ThemeContext", "./ProviderContext"], function (require, exports, tslib_1, MenuContext_1, ThemeContext_1, ProviderContext_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
tslib_1.__exportStar(MenuContext_1, exports); | ||
tslib_1.__exportStar(ThemeContext_1, exports); | ||
tslib_1.__exportStar(ProviderContext_1, exports); | ||
}); | ||
//# sourceMappingURL=index.js.map |
export * from './MenuContext'; | ||
export * from './ThemeContext'; | ||
export * from './ProviderContext'; |
@@ -5,2 +5,4 @@ "use strict"; | ||
tslib_1.__exportStar(require("./MenuContext"), exports); | ||
tslib_1.__exportStar(require("./ThemeContext"), exports); | ||
tslib_1.__exportStar(require("./ProviderContext"), exports); | ||
//# sourceMappingURL=index.js.map |
export * from './MenuContext'; | ||
export * from './ThemeContext'; | ||
export * from './ProviderContext'; |
export * from './MenuContext'; | ||
export * from './ThemeContext'; | ||
export * from './ProviderContext'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@fluentui/react-shared-contexts", | ||
"version": "1.0.0-beta.11", | ||
"version": "9.0.0-alpha.2", | ||
"description": "Fluent UI React Contexts shared by multiple components.", | ||
@@ -8,2 +8,3 @@ "main": "lib-commonjs/index.js", | ||
"typings": "lib/index.d.ts", | ||
"sideEffects": false, | ||
"repository": { | ||
@@ -37,2 +38,3 @@ "type": "git", | ||
"dependencies": { | ||
"@fluentui/react-theme": "^9.0.0-alpha.6", | ||
"tslib": "^1.10.0" | ||
@@ -45,3 +47,3 @@ }, | ||
"beachball": { | ||
"tag": "beta", | ||
"tag": "alpha", | ||
"disallowedChangeTypes": [ | ||
@@ -48,0 +50,0 @@ "major", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45819
131
599
4
1
80
+ Added@fluentui/react-theme@9.1.20(transitive)
+ Added@fluentui/tokens@1.0.0-alpha.17(transitive)
+ Added@swc/helpers@0.5.13(transitive)
+ Addedtslib@2.7.0(transitive)