@fluentui/react-shared-contexts 0.0.0-nightly-20220523-0424.1 → 0.0.0-nightly-20220623-0419.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 +62 -5
- package/CHANGELOG.md +34 -5
- package/dist/index.d.ts +15 -29
- package/lib/ProviderContext/ProviderContext.js +4 -1
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ProviderContext/index.js +0 -1
- package/lib/ProviderContext/index.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +4 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js +3 -3
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +13 -0
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -0
- package/lib/{TooltipContext → TooltipVisibilityContext}/index.js +0 -0
- package/lib/TooltipVisibilityContext/index.js.map +1 -0
- package/lib/TooltipVisibilityContext.js +2 -0
- package/lib/TooltipVisibilityContext.js.map +1 -0
- package/lib/index.js +4 -5
- package/lib/index.js.map +1 -1
- package/lib-commonjs/ProviderContext/ProviderContext.js +4 -3
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/index.js +0 -2
- package/lib-commonjs/ProviderContext/index.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +4 -3
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +2 -7
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +22 -0
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -0
- package/lib-commonjs/{TooltipContext → TooltipVisibilityContext}/index.js +0 -0
- package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -0
- package/lib-commonjs/{MenuContext.js → TooltipVisibilityContext.js} +2 -2
- package/lib-commonjs/TooltipVisibilityContext.js.map +1 -0
- package/lib-commonjs/index.js +19 -28
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +2 -2
- package/lib/MenuContext/MenuContext.js +0 -6
- package/lib/MenuContext/MenuContext.js.map +0 -1
- package/lib/MenuContext/index.js +0 -3
- package/lib/MenuContext/index.js.map +0 -1
- package/lib/MenuContext/types.js +0 -2
- package/lib/MenuContext/types.js.map +0 -1
- package/lib/MenuContext.js +0 -2
- package/lib/MenuContext.js.map +0 -1
- package/lib/ProviderContext/ProviderContext.types.js +0 -2
- package/lib/ProviderContext/ProviderContext.types.js.map +0 -1
- package/lib/TooltipContext/TooltipContext.js +0 -7
- package/lib/TooltipContext/TooltipContext.js.map +0 -1
- package/lib/TooltipContext/index.js.map +0 -1
- package/lib/TooltipContext.js +0 -2
- package/lib/TooltipContext.js.map +0 -1
- package/lib-commonjs/MenuContext/MenuContext.js +0 -17
- package/lib-commonjs/MenuContext/MenuContext.js.map +0 -1
- package/lib-commonjs/MenuContext/index.js +0 -12
- package/lib-commonjs/MenuContext/index.js.map +0 -1
- package/lib-commonjs/MenuContext/types.js +0 -6
- package/lib-commonjs/MenuContext/types.js.map +0 -1
- package/lib-commonjs/MenuContext.js.map +0 -1
- package/lib-commonjs/ProviderContext/ProviderContext.types.js +0 -6
- package/lib-commonjs/ProviderContext/ProviderContext.types.js.map +0 -1
- package/lib-commonjs/TooltipContext/TooltipContext.js +0 -15
- package/lib-commonjs/TooltipContext/TooltipContext.js.map +0 -1
- package/lib-commonjs/TooltipContext/index.js.map +0 -1
- package/lib-commonjs/TooltipContext.js +0 -10
- package/lib-commonjs/TooltipContext.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,66 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Thu, 23 Jun 2022 04:31:26 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1",
|
7
|
+
"version": "0.0.0-nightly-20220623-0419.1",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "beachball",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220623-0419.1",
|
14
|
+
"commit": "9df169f017c97b7fe34f7b7618e4a29baf38b22b"
|
15
|
+
}
|
16
|
+
]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"date": "Tue, 31 May 2022 21:28:45 GMT",
|
21
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.0-rc.10",
|
22
|
+
"version": "9.0.0-rc.10",
|
23
|
+
"comments": {
|
24
|
+
"prerelease": [
|
25
|
+
{
|
26
|
+
"author": "olfedias@microsoft.com",
|
27
|
+
"package": "@fluentui/react-shared-contexts",
|
28
|
+
"commit": "5a92ebd3f8687a1cd40e8233cacdb91d324b742a",
|
29
|
+
"comment": "remove unused MenuContext"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"author": "me@levithomason.com",
|
33
|
+
"package": "@fluentui/react-shared-contexts",
|
34
|
+
"commit": "4ed24c29ddf8de037e4402d67c820b7398eaa265",
|
35
|
+
"comment": "remove useTheme from exports"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"author": "bernardo.sunderhus@gmail.com",
|
39
|
+
"package": "@fluentui/react-shared-contexts",
|
40
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd",
|
41
|
+
"comment": "mark context hooks and providers to unstable"
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"date": "Mon, 23 May 2022 18:56:51 GMT",
|
48
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.0-rc.9",
|
49
|
+
"version": "9.0.0-rc.9",
|
50
|
+
"comments": {
|
51
|
+
"prerelease": [
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-shared-contexts",
|
55
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
56
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"date": "Mon, 23 May 2022 12:13:38 GMT",
|
63
|
+
"tag": "@fluentui/react-shared-contexts_v9.0.0-rc.8",
|
64
|
+
"version": "9.0.0-rc.8",
|
8
65
|
"comments": {
|
9
66
|
"prerelease": [
|
10
67
|
{
|
@@ -16,8 +73,8 @@
|
|
16
73
|
{
|
17
74
|
"author": "beachball",
|
18
75
|
"package": "@fluentui/react-shared-contexts",
|
19
|
-
"comment": "Bump @fluentui/react-theme to
|
20
|
-
"commit": "
|
76
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
|
77
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
21
78
|
}
|
22
79
|
],
|
23
80
|
"none": [
|
package/CHANGELOG.md
CHANGED
@@ -1,18 +1,47 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 23 Jun 2022 04:31:26 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20220623-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.
|
9
|
+
Thu, 23 Jun 2022 04:31:26 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.10..@fluentui/react-shared-contexts_v0.0.0-nightly-20220623-0419.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20220623-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/9df169f017c97b7fe34f7b7618e4a29baf38b22b) by beachball)
|
15
|
+
|
16
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.10)
|
17
|
+
|
18
|
+
Tue, 31 May 2022 21:28:45 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.9..@fluentui/react-shared-contexts_v9.0.0-rc.10)
|
20
|
+
|
21
|
+
### Changes
|
22
|
+
|
23
|
+
- remove unused MenuContext ([PR #23277](https://github.com/microsoft/fluentui/pull/23277) by olfedias@microsoft.com)
|
24
|
+
- remove useTheme from exports ([PR #23335](https://github.com/microsoft/fluentui/pull/23335) by me@levithomason.com)
|
25
|
+
- mark context hooks and providers to unstable ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by bernardo.sunderhus@gmail.com)
|
26
|
+
|
27
|
+
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.9)
|
28
|
+
|
29
|
+
Mon, 23 May 2022 18:56:51 GMT
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.8..@fluentui/react-shared-contexts_v9.0.0-rc.9)
|
31
|
+
|
32
|
+
### Changes
|
33
|
+
|
34
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
35
|
+
|
36
|
+
## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.8)
|
37
|
+
|
38
|
+
Mon, 23 May 2022 12:13:38 GMT
|
39
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.0.0-rc.7..@fluentui/react-shared-contexts_v9.0.0-rc.8)
|
11
40
|
|
12
41
|
### Changes
|
13
42
|
|
14
43
|
- feat: ship rolluped only dts ([PR #22965](https://github.com/microsoft/fluentui/pull/22965) by martinhochel@microsoft.com)
|
15
|
-
- Bump @fluentui/react-theme to
|
44
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
16
45
|
|
17
46
|
## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.0.0-rc.7)
|
18
47
|
|
package/dist/index.d.ts
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
import * as React_2 from 'react';
|
2
2
|
import type { Theme } from '@fluentui/react-theme';
|
3
3
|
|
4
|
-
export declare const
|
4
|
+
export declare const Provider_unstable: React_2.Provider<ProviderContextValue_unstable>;
|
5
5
|
|
6
|
-
export declare type
|
7
|
-
hidden?: boolean;
|
8
|
-
onDismiss?: () => void;
|
9
|
-
target?: React_2.Ref<HTMLElement>;
|
10
|
-
};
|
11
|
-
|
12
|
-
export declare const ProviderContext: React_2.Context<ProviderContextValue>;
|
13
|
-
|
14
|
-
export declare interface ProviderContextValue {
|
6
|
+
export declare type ProviderContextValue_unstable = {
|
15
7
|
/** Sets the direction of text & generated styles. */
|
16
8
|
dir: 'ltr' | 'rtl';
|
17
9
|
/** Provides the document, can be undefined during SSR render. */
|
18
10
|
targetDocument?: Document;
|
19
|
-
}
|
11
|
+
};
|
20
12
|
|
21
|
-
|
22
|
-
* Used to provide a CSS class that applies theme css variables
|
23
|
-
*
|
24
|
-
* Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
|
25
|
-
*/
|
26
|
-
export declare const ThemeClassNameContext: React_2.Context<string>;
|
13
|
+
export declare type ThemeClassNameContextValue_unstable = string;
|
27
14
|
|
28
|
-
export declare
|
15
|
+
export declare const ThemeClassNameProvider_unstable: React_2.Provider<string>;
|
29
16
|
|
30
|
-
export declare const
|
17
|
+
export declare const ThemeContext_unstable: React_2.Context<ThemeContextValue_unstable>;
|
31
18
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
export declare const TooltipContext: React_2.Context<TooltipContextType>;
|
19
|
+
export declare type ThemeContextValue_unstable = Theme | Partial<Theme> | undefined;
|
20
|
+
|
21
|
+
export declare const ThemeProvider_unstable: React_2.Provider<ThemeContextValue_unstable>;
|
36
22
|
|
37
23
|
/**
|
38
24
|
* The context provided by TooltipProvider
|
39
25
|
*/
|
40
|
-
export declare type
|
26
|
+
export declare type TooltipVisibilityContextValue_unstable = {
|
41
27
|
/**
|
42
28
|
* When a tooltip is shown, it sets itself as the visibleTooltip.
|
43
29
|
* The next tooltip to become visible can use it to hide the previous tooltip immediately.
|
@@ -47,15 +33,15 @@ export declare type TooltipContextType = {
|
|
47
33
|
};
|
48
34
|
};
|
49
35
|
|
50
|
-
export declare
|
36
|
+
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
51
37
|
|
52
|
-
export declare
|
53
|
-
|
54
|
-
export declare function useTheme(): Theme | Partial<Theme> | undefined;
|
38
|
+
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
55
39
|
|
56
40
|
/**
|
57
41
|
* @returns CSS class that applies css variables
|
58
42
|
*/
|
59
|
-
export declare function
|
43
|
+
export declare function useThemeClassName_unstable(): ThemeClassNameContextValue_unstable;
|
44
|
+
|
45
|
+
export declare function useTooltipVisibility_unstable(): TooltipVisibilityContextValue_unstable;
|
60
46
|
|
61
47
|
export { }
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
2
|
+
const ProviderContext = /*#__PURE__*/React.createContext({
|
3
3
|
targetDocument: typeof document === 'object' ? document : undefined,
|
4
4
|
dir: 'ltr'
|
5
5
|
});
|
6
|
+
export const {
|
7
|
+
Provider
|
8
|
+
} = ProviderContext;
|
6
9
|
export function useFluent() {
|
7
10
|
return React.useContext(ProviderContext);
|
8
11
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;
|
1
|
+
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKA,OAAO,MAAM;EAAE;AAAF,IAAe,eAArB;AAEP,OAAM,SAAU,SAAV,GAAmB;EACvB,OAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\n\nexport type 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\nconst ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\nexport const { Provider } = ProviderContext;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["ProviderContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './ProviderContext';\n"]}
|
@@ -5,7 +5,10 @@ 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
|
-
|
8
|
+
const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
|
9
|
+
export const {
|
10
|
+
Provider: ThemeClassNameProvider
|
11
|
+
} = ThemeClassNameContext;
|
9
12
|
/**
|
10
13
|
* @returns CSS class that applies css variables
|
11
14
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;AAIG;;AACH,
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;AAIG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;AAEA,OAAO,MAAM;EAAE,QAAQ,EAAE;AAAZ,IAAuC,qBAA7C;AAEP;;AAEG;;AACH,OAAM,SAAU,iBAAV,GAA2B;EAC/B,OAAO,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 */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue>('');\n\nexport const { Provider: ThemeClassNameProvider } = ThemeClassNameContext;\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,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
|
3
|
-
export
|
4
|
-
|
5
|
-
}
|
3
|
+
export const {
|
4
|
+
Provider: ThemeProvider
|
5
|
+
} = ThemeContext;
|
6
6
|
//# sourceMappingURL=ThemeContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;
|
1
|
+
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAKA,OAAO,MAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAArB;AAEP,OAAO,MAAM;EAAE,QAAQ,EAAE;AAAZ,IAA8B,YAApC","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\nexport const { Provider: ThemeProvider } = ThemeContext;\n"],"sourceRoot":"../src/"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
/**
|
3
|
+
* Context shared by all of the tooltips in the app
|
4
|
+
*/
|
5
|
+
|
6
|
+
const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
|
7
|
+
export const {
|
8
|
+
Provider: TooltipVisibilityProvider
|
9
|
+
} = TooltipVisibilityContext;
|
10
|
+
export function useTooltipVisibility() {
|
11
|
+
return React.useContext(TooltipVisibilityContext);
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=TooltipContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;AAEG;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAAmD,EAAnD,CAAjC;AAEA,OAAO,MAAM;EAAE,QAAQ,EAAE;AAAZ,IAA0C,wBAAhD;AAEP,OAAM,SAAU,oBAAV,GAA8B;EAClC,OAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;AACD","sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipVisibilityContextValue = {\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 */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue>({});\n\nexport const { Provider: TooltipVisibilityProvider } = TooltipVisibilityContext;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext);\n}\n"],"sourceRoot":"../src/"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["TooltipVisibilityContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './TooltipContext';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TooltipVisibilityContext.js","sourceRoot":"../src/","sources":["TooltipVisibilityContext.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './TooltipVisibilityContext/index';\n"]}
|
package/lib/index.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
3
|
-
export {
|
4
|
-
export {
|
5
|
-
export { ProviderContext, useFluent } from './ProviderContext';
|
1
|
+
export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';
|
2
|
+
export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';
|
3
|
+
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';
|
4
|
+
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';
|
6
5
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,qBAAzB,EAAgD,aAAa,IAAI,sBAAjE,QAA+F,gBAA/F;AAGA,SACE,sBAAsB,IAAI,+BAD5B,EAEE,iBAAiB,IAAI,0BAFvB,QAGO,yBAHP;AAMA,SACE,yBAAyB,IAAI,kCAD/B,EAEE,oBAAoB,IAAI,6BAF1B,QAGO,4BAHP;AAMA,SAAS,QAAQ,IAAI,iBAArB,EAAwC,SAAS,IAAI,kBAArD,QAA+E,mBAA/E","sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n"],"sourceRoot":"../src/"}
|
@@ -3,17 +3,18 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.useFluent = exports.
|
6
|
+
exports.useFluent = exports.Provider = void 0;
|
7
7
|
|
8
8
|
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
|
-
|
10
|
+
const ProviderContext = /*#__PURE__*/React.createContext({
|
11
11
|
targetDocument: typeof document === 'object' ? document : undefined,
|
12
12
|
dir: 'ltr'
|
13
13
|
});
|
14
|
+
exports.Provider = ProviderContext.Provider;
|
14
15
|
|
15
16
|
function useFluent() {
|
16
|
-
return React.useContext(
|
17
|
+
return React.useContext(ProviderContext);
|
17
18
|
}
|
18
19
|
|
19
20
|
exports.useFluent = useFluent;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;
|
1
|
+
{"version":3,"sources":["ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAUA,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CAA0C;EAChE,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADM;EAEhE,GAAG,EAAE;AAF2D,CAA1C,CAAxB;AAKe,OAAA,CAAA,QAAA,GAAa,eAAe,CAAA,QAA5B;;AAEf,SAAgB,SAAhB,GAAyB;EACvB,OAAO,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,SAAA,GAAA,SAAA","sourcesContent":["import * as React from 'react';\n\nexport type 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\nconst ProviderContext = React.createContext<ProviderContextValue>({\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr',\n});\n\nexport const { Provider } = ProviderContext;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ProviderContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA
|
1
|
+
{"version":3,"sources":["ProviderContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext';\n"],"sourceRoot":"../src/"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.useThemeClassName = exports.
|
6
|
+
exports.useThemeClassName = exports.ThemeClassNameProvider = void 0;
|
7
7
|
|
8
8
|
const React = /*#__PURE__*/require("react");
|
9
9
|
/**
|
@@ -13,13 +13,14 @@ const React = /*#__PURE__*/require("react");
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
|
16
|
-
|
16
|
+
const ThemeClassNameContext = /*#__PURE__*/React.createContext('');
|
17
|
+
exports.ThemeClassNameProvider = ThemeClassNameContext.Provider;
|
17
18
|
/**
|
18
19
|
* @returns CSS class that applies css variables
|
19
20
|
*/
|
20
21
|
|
21
22
|
function useThemeClassName() {
|
22
|
-
return React.useContext(
|
23
|
+
return React.useContext(ThemeClassNameContext);
|
23
24
|
}
|
24
25
|
|
25
26
|
exports.useThemeClassName = useThemeClassName;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;AAIG;;;
|
1
|
+
{"version":3,"sources":["ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;AAIG;;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAAgD,EAAhD,CAA9B;AAEyB,OAAA,CAAA,sBAAA,GAA2B,qBAAqB,CAAA,QAAhD;AAEzB;;AAEG;;AACH,SAAgB,iBAAhB,GAAiC;EAC/B,OAAO,KAAK,CAAC,UAAN,CAAiB,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 */\nconst ThemeClassNameContext = React.createContext<ThemeClassNameContextValue>('');\n\nexport const { Provider: ThemeClassNameProvider } = ThemeClassNameContext;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext);\n}\n"],"sourceRoot":"../src/"}
|
@@ -3,15 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.ThemeProvider = exports.ThemeContext = void 0;
|
7
7
|
|
8
8
|
const React = /*#__PURE__*/require("react");
|
9
9
|
|
10
10
|
exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
|
11
|
-
|
12
|
-
function useTheme() {
|
13
|
-
return React.useContext(exports.ThemeContext);
|
14
|
-
}
|
15
|
-
|
16
|
-
exports.useTheme = useTheme;
|
11
|
+
exports.ThemeProvider = exports.ThemeContext.Provider;
|
17
12
|
//# sourceMappingURL=ThemeContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;
|
1
|
+
{"version":3,"sources":["ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAKa,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAAf;AAEY,OAAA,CAAA,aAAA,GAAkB,OAAA,CAAA,YAAA,CAAY,QAA9B","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\nexport const { Provider: ThemeProvider } = ThemeContext;\n"],"sourceRoot":"../src/"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.useTooltipVisibility = exports.TooltipVisibilityProvider = void 0;
|
7
|
+
|
8
|
+
const React = /*#__PURE__*/require("react");
|
9
|
+
/**
|
10
|
+
* Context shared by all of the tooltips in the app
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
const TooltipVisibilityContext = /*#__PURE__*/React.createContext({});
|
15
|
+
exports.TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
|
16
|
+
|
17
|
+
function useTooltipVisibility() {
|
18
|
+
return React.useContext(TooltipVisibilityContext);
|
19
|
+
}
|
20
|
+
|
21
|
+
exports.useTooltipVisibility = useTooltipVisibility;
|
22
|
+
//# sourceMappingURL=TooltipContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;AAEG;;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAAmD,EAAnD,CAAjC;AAEyB,OAAA,CAAA,yBAAA,GAA8B,wBAAwB,CAAA,QAAtD;;AAEzB,SAAgB,oBAAhB,GAAoC;EAClC,OAAO,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAP;AACD;;AAFD,OAAA,CAAA,oBAAA,GAAA,oBAAA","sourcesContent":["import * as React from 'react';\n\n/**\n * The context provided by TooltipProvider\n */\nexport type TooltipVisibilityContextValue = {\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 */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue>({});\n\nexport const { Provider: TooltipVisibilityProvider } = TooltipVisibilityContext;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext);\n}\n"],"sourceRoot":"../src/"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipContext';\n"],"sourceRoot":"../src/"}
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
|
7
7
|
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
|
-
tslib_1.__exportStar(require("./
|
10
|
-
//# sourceMappingURL=
|
9
|
+
tslib_1.__exportStar(require("./TooltipVisibilityContext/index"), exports);
|
10
|
+
//# sourceMappingURL=TooltipVisibilityContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["TooltipVisibilityContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kCAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"sourceRoot":"../src/"}
|
package/lib-commonjs/index.js
CHANGED
@@ -3,71 +3,62 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
7
|
-
|
8
|
-
var MenuContext_1 = /*#__PURE__*/require("./MenuContext");
|
9
|
-
|
10
|
-
Object.defineProperty(exports, "MenuContext", {
|
11
|
-
enumerable: true,
|
12
|
-
get: function () {
|
13
|
-
return MenuContext_1.MenuContext;
|
14
|
-
}
|
15
|
-
});
|
16
|
-
Object.defineProperty(exports, "useMenuContext", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function () {
|
19
|
-
return MenuContext_1.useMenuContext;
|
20
|
-
}
|
21
|
-
});
|
6
|
+
exports.useFluent_unstable = exports.Provider_unstable = exports.useTooltipVisibility_unstable = exports.TooltipVisibilityProvider_unstable = exports.useThemeClassName_unstable = exports.ThemeClassNameProvider_unstable = exports.ThemeProvider_unstable = exports.ThemeContext_unstable = void 0;
|
22
7
|
|
23
8
|
var ThemeContext_1 = /*#__PURE__*/require("./ThemeContext");
|
24
9
|
|
25
|
-
Object.defineProperty(exports, "
|
10
|
+
Object.defineProperty(exports, "ThemeContext_unstable", {
|
26
11
|
enumerable: true,
|
27
12
|
get: function () {
|
28
13
|
return ThemeContext_1.ThemeContext;
|
29
14
|
}
|
30
15
|
});
|
31
|
-
Object.defineProperty(exports, "
|
16
|
+
Object.defineProperty(exports, "ThemeProvider_unstable", {
|
32
17
|
enumerable: true,
|
33
18
|
get: function () {
|
34
|
-
return ThemeContext_1.
|
19
|
+
return ThemeContext_1.ThemeProvider;
|
35
20
|
}
|
36
21
|
});
|
37
22
|
|
38
23
|
var ThemeClassNameContext_1 = /*#__PURE__*/require("./ThemeClassNameContext");
|
39
24
|
|
40
|
-
Object.defineProperty(exports, "
|
25
|
+
Object.defineProperty(exports, "ThemeClassNameProvider_unstable", {
|
41
26
|
enumerable: true,
|
42
27
|
get: function () {
|
43
|
-
return ThemeClassNameContext_1.
|
28
|
+
return ThemeClassNameContext_1.ThemeClassNameProvider;
|
44
29
|
}
|
45
30
|
});
|
46
|
-
Object.defineProperty(exports, "
|
31
|
+
Object.defineProperty(exports, "useThemeClassName_unstable", {
|
47
32
|
enumerable: true,
|
48
33
|
get: function () {
|
49
34
|
return ThemeClassNameContext_1.useThemeClassName;
|
50
35
|
}
|
51
36
|
});
|
52
37
|
|
53
|
-
var
|
38
|
+
var TooltipVisibilityContext_1 = /*#__PURE__*/require("./TooltipVisibilityContext");
|
54
39
|
|
55
|
-
Object.defineProperty(exports, "
|
40
|
+
Object.defineProperty(exports, "TooltipVisibilityProvider_unstable", {
|
41
|
+
enumerable: true,
|
42
|
+
get: function () {
|
43
|
+
return TooltipVisibilityContext_1.TooltipVisibilityProvider;
|
44
|
+
}
|
45
|
+
});
|
46
|
+
Object.defineProperty(exports, "useTooltipVisibility_unstable", {
|
56
47
|
enumerable: true,
|
57
48
|
get: function () {
|
58
|
-
return
|
49
|
+
return TooltipVisibilityContext_1.useTooltipVisibility;
|
59
50
|
}
|
60
51
|
});
|
61
52
|
|
62
53
|
var ProviderContext_1 = /*#__PURE__*/require("./ProviderContext");
|
63
54
|
|
64
|
-
Object.defineProperty(exports, "
|
55
|
+
Object.defineProperty(exports, "Provider_unstable", {
|
65
56
|
enumerable: true,
|
66
57
|
get: function () {
|
67
|
-
return ProviderContext_1.
|
58
|
+
return ProviderContext_1.Provider;
|
68
59
|
}
|
69
60
|
});
|
70
|
-
Object.defineProperty(exports, "
|
61
|
+
Object.defineProperty(exports, "useFluent_unstable", {
|
71
62
|
enumerable: true,
|
72
63
|
get: function () {
|
73
64
|
return ProviderContext_1.useFluent;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,cAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,uBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,cAAA,CAAA,YAAA;EAAY;AAAZ,CAAA;AAAuC,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,wBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,cAAA,CAAA,aAAA;EAAa;AAAb,CAAA;;AAGhD,IAAA,uBAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iCAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,uBAAA,CAAA,sBAAA;EAAsB;AAAtB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,4BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,uBAAA,CAAA,iBAAA;EAAiB;AAAjB,CAAA;;AAIF,IAAA,0BAAA,gBAAA,OAAA,CAAA,4BAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oCAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,0BAAA,CAAA,yBAAA;EAAyB;AAAzB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,+BAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,0BAAA,CAAA,oBAAA;EAAoB;AAApB,CAAA;;AAIF,IAAA,iBAAA,gBAAA,OAAA,CAAA,mBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,iBAAA,CAAA,QAAA;EAAQ;AAAR,CAAA;AAA+B,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,iBAAA,CAAA,SAAA;EAAS;AAAT,CAAA","sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport type { ThemeContextValue as ThemeContextValue_unstable } from './ThemeContext';\n\nexport {\n ThemeClassNameProvider as ThemeClassNameProvider_unstable,\n useThemeClassName as useThemeClassName_unstable,\n} from './ThemeClassNameContext';\nexport type { ThemeClassNameContextValue as ThemeClassNameContextValue_unstable } from './ThemeClassNameContext';\n\nexport {\n TooltipVisibilityProvider as TooltipVisibilityProvider_unstable,\n useTooltipVisibility as useTooltipVisibility_unstable,\n} from './TooltipVisibilityContext';\nexport type { TooltipVisibilityContextValue as TooltipVisibilityContextValue_unstable } from './TooltipVisibilityContext';\n\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport type { ProviderContextValue as ProviderContextValue_unstable } from './ProviderContext';\n"],"sourceRoot":"../src/"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20220623-0419.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",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"@fluentui/scripts": "^1.0.0"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
30
|
+
"@fluentui/react-theme": "0.0.0-nightly-20220623-0419.1",
|
31
31
|
"tslib": "^2.1.0"
|
32
32
|
},
|
33
33
|
"peerDependencies": {
|
@@ -1 +0,0 @@
|
|
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/"}
|
package/lib/MenuContext/index.js
DELETED
@@ -1 +0,0 @@
|
|
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"]}
|
package/lib/MenuContext/types.js
DELETED
@@ -1 +0,0 @@
|
|
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"]}
|
package/lib/MenuContext.js
DELETED
package/lib/MenuContext.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuContext.js","sourceRoot":"../src/","sources":["MenuContext.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './MenuContext/index';\n"]}
|
@@ -1 +0,0 @@
|
|
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 +0,0 @@
|
|
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 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["TooltipContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './TooltipContext';\n"]}
|
package/lib/TooltipContext.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TooltipContext.js","sourceRoot":"../src/","sources":["TooltipContext.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './TooltipContext/index';\n"]}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.useMenuContext = exports.MenuContext = void 0;
|
7
|
-
|
8
|
-
const React = /*#__PURE__*/require("react");
|
9
|
-
|
10
|
-
exports.MenuContext = /*#__PURE__*/React.createContext({});
|
11
|
-
|
12
|
-
const useMenuContext = () => {
|
13
|
-
return React.useContext(exports.MenuContext);
|
14
|
-
};
|
15
|
-
|
16
|
-
exports.useMenuContext = useMenuContext;
|
17
|
-
//# sourceMappingURL=MenuContext.js.map
|
@@ -1 +0,0 @@
|
|
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/"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
|
7
|
-
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
|
-
|
9
|
-
tslib_1.__exportStar(require("./MenuContext"), exports);
|
10
|
-
|
11
|
-
tslib_1.__exportStar(require("./types"), exports);
|
12
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
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 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
|
@@ -1 +0,0 @@
|
|
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/"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.TooltipContext = void 0;
|
7
|
-
|
8
|
-
const React = /*#__PURE__*/require("react");
|
9
|
-
/**
|
10
|
-
* Context shared by all of the tooltips in the app
|
11
|
-
*/
|
12
|
-
|
13
|
-
|
14
|
-
exports.TooltipContext = /*#__PURE__*/React.createContext({});
|
15
|
-
//# sourceMappingURL=TooltipContext.js.map
|
@@ -1 +0,0 @@
|
|
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/"}
|
@@ -1 +0,0 @@
|
|
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/"}
|
@@ -1 +0,0 @@
|
|
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/"}
|