@fluentui/react-shared-contexts 9.1.4 → 9.1.5

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.
Files changed (38) hide show
  1. package/CHANGELOG.json +37 -1
  2. package/CHANGELOG.md +2 -2
  3. package/lib/ProviderContext/ProviderContext.js +0 -3
  4. package/lib/ProviderContext/ProviderContext.js.map +1 -1
  5. package/lib/ThemeClassNameContext/ThemeClassNameContext.js +0 -3
  6. package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  7. package/lib/ThemeContext/ThemeContext.js +0 -2
  8. package/lib/ThemeContext/ThemeContext.js.map +1 -1
  9. package/lib/TooltipVisibilityContext/TooltipContext.js +0 -3
  10. package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
  11. package/lib/index.js.map +1 -1
  12. package/lib-commonjs/ProviderContext/ProviderContext.js +0 -7
  13. package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
  14. package/lib-commonjs/ProviderContext/index.js +0 -2
  15. package/lib-commonjs/ProviderContext/index.js.map +1 -1
  16. package/lib-commonjs/ProviderContext.js +0 -2
  17. package/lib-commonjs/ProviderContext.js.map +1 -1
  18. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +0 -6
  19. package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
  20. package/lib-commonjs/ThemeClassNameContext/index.js +0 -2
  21. package/lib-commonjs/ThemeClassNameContext/index.js.map +1 -1
  22. package/lib-commonjs/ThemeClassNameContext.js +0 -2
  23. package/lib-commonjs/ThemeClassNameContext.js.map +1 -1
  24. package/lib-commonjs/ThemeContext/ThemeContext.js +0 -4
  25. package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
  26. package/lib-commonjs/ThemeContext/index.js +0 -2
  27. package/lib-commonjs/ThemeContext/index.js.map +1 -1
  28. package/lib-commonjs/ThemeContext.js +0 -2
  29. package/lib-commonjs/ThemeContext.js.map +1 -1
  30. package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +0 -7
  31. package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
  32. package/lib-commonjs/TooltipVisibilityContext/index.js +0 -2
  33. package/lib-commonjs/TooltipVisibilityContext/index.js.map +1 -1
  34. package/lib-commonjs/TooltipVisibilityContext.js +0 -2
  35. package/lib-commonjs/TooltipVisibilityContext.js.map +1 -1
  36. package/lib-commonjs/index.js +0 -8
  37. package/lib-commonjs/index.js.map +1 -1
  38. package/package.json +3 -2
package/CHANGELOG.json CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@fluentui/react-shared-contexts",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 21 Dec 2022 10:17:16 GMT",
5
+ "date": "Mon, 16 Jan 2023 08:35:21 GMT",
6
+ "tag": "@fluentui/react-shared-contexts_v9.1.5",
7
+ "version": "9.1.5",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-shared-contexts",
13
+ "commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
14
+ "comment": "chore: migrate to packaged scripts"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 04 Jan 2023 01:40:26 GMT",
21
+ "tag": "@fluentui/react-shared-contexts_v9.1.4",
22
+ "version": "9.1.4",
23
+ "comments": {
24
+ "none": [
25
+ {
26
+ "author": "martinhochel@microsoft.com",
27
+ "package": "@fluentui/react-shared-contexts",
28
+ "commit": "4ec2b998b294d6d9c3196d3d82893bdd97d0c105",
29
+ "comment": "chore(scripts): move index.ts to to follow sub-folder domain packaging"
30
+ },
31
+ {
32
+ "author": "martinhochel@microsoft.com",
33
+ "package": "@fluentui/react-shared-contexts",
34
+ "commit": "194b0cf0cc27c1c1233aa945f09b3ad29778d8ca",
35
+ "comment": "chore(scripts): use for @fluentui/scripts version within all package.json"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Wed, 21 Dec 2022 10:20:33 GMT",
6
42
  "tag": "@fluentui/react-shared-contexts_v9.1.4",
7
43
  "version": "9.1.4",
8
44
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Wed, 21 Dec 2022 10:17:16 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 21 Dec 2022 10:20:33 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
7
  ## [9.1.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.1.4)
8
8
 
9
- Wed, 21 Dec 2022 10:17:16 GMT
9
+ Wed, 21 Dec 2022 10:20:33 GMT
10
10
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.1.3..@fluentui/react-shared-contexts_v9.1.4)
11
11
 
12
12
  ### Patches
@@ -2,7 +2,6 @@ import * as React from 'react';
2
2
  /**
3
3
  * @internal
4
4
  */
5
-
6
5
  const ProviderContext = /*#__PURE__*/React.createContext(undefined);
7
6
  const providerContextDefaultValue = {
8
7
  targetDocument: typeof document === 'object' ? document : undefined,
@@ -11,11 +10,9 @@ const providerContextDefaultValue = {
11
10
  /**
12
11
  * @internal
13
12
  */
14
-
15
13
  export const Provider = ProviderContext.Provider;
16
14
  export function useFluent() {
17
15
  var _a;
18
-
19
16
  return (_a = React.useContext(ProviderContext)) !== null && _a !== void 0 ? _a : providerContextDefaultValue;
20
17
  }
21
18
  //# sourceMappingURL=ProviderContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ProviderContext/ProviderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA;;AAEG;;AACH,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CACtB,SADsB,CAAxB;AAIA,MAAM,2BAA2B,GAAyB;EACxD,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADF;EAExD,GAAG,EAAE;AAFmD,CAA1D;AAKA;;AAEG;;AACH,OAAO,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAjC;AAEP,OAAM,SAAU,SAAV,GAAmB;;;EACvB,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAA,MAAiC,IAAjC,IAAiC,EAAA,KAAA,KAAA,CAAjC,GAAiC,EAAjC,GAAqC,2BAA5C;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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAU9B;;;AAGA,MAAMC,eAAe,gBAAGD,KAAK,CAACE,aAAa,CACzCC,SAAS,CAC6B;AAExC,MAAMC,2BAA2B,GAAyB;EACxDC,cAAc,EAAE,OAAOC,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAGH,SAAS;EACnEI,GAAG,EAAE;CACN;AAED;;;AAGA,OAAO,MAAMC,QAAQ,GAAGP,eAAe,CAACO,QAAQ;AAEhD,OAAM,SAAUC,SAAS;;EACvB,OAAO,WAAK,CAACC,UAAU,CAACT,eAAe,CAAC,mCAAIG,2BAA2B;AACzE","names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ProviderContext/ProviderContext.ts"],"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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"]}
@@ -5,17 +5,14 @@ import * as React from 'react';
5
5
  *
6
6
  * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
7
7
  */
8
-
9
8
  const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
10
9
  const themeClassNameContextDefaultVaue = '';
11
10
  export const ThemeClassNameProvider = ThemeClassNameContext.Provider;
12
11
  /**
13
12
  * @returns CSS class that applies css variables
14
13
  */
15
-
16
14
  export function useThemeClassName() {
17
15
  var _a;
18
-
19
16
  return (_a = React.useContext(ThemeClassNameContext)) !== null && _a !== void 0 ? _a : themeClassNameContextDefaultVaue;
20
17
  }
21
18
  //# sourceMappingURL=ThemeClassNameContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAIA;;;;;AAKG;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEA,OAAO,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,QAArD;AAEP;;AAEG;;AACH,OAAM,SAAU,iBAAV,GAA2B;;;EAC/B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAA,MAAuC,IAAvC,IAAuC,EAAA,KAAA,KAAA,CAAvC,GAAuC,EAAvC,GAA2C,gCAAlD;AACD","sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAI9B;;;;;;AAMA,MAAMC,qBAAqB,gBAAGD,KAAK,CAACE,aAAa,CAC/CC,SAAS,CACmC;AAE9C,MAAMC,gCAAgC,GAAG,EAAE;AAE3C,OAAO,MAAMC,sBAAsB,GAAGJ,qBAAqB,CAACK,QAAQ;AAEpE;;;AAGA,OAAM,SAAUC,iBAAiB;;EAC/B,OAAO,WAAK,CAACC,UAAU,CAACP,qBAAqB,CAAC,mCAAIG,gCAAgC;AACpF","names":["React","ThemeClassNameContext","createContext","undefined","themeClassNameContextDefaultVaue","ThemeClassNameProvider","Provider","useThemeClassName","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"]}
@@ -2,11 +2,9 @@ import * as React from 'react';
2
2
  /**
3
3
  * @internal
4
4
  */
5
-
6
5
  export const ThemeContext = /*#__PURE__*/React.createContext(undefined);
7
6
  /**
8
7
  * @internal
9
8
  */
10
-
11
9
  export const ThemeProvider = ThemeContext.Provider;
12
10
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeContext/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAKA;;AAEG;;AACH,OAAO,MAAM,YAAY,gBAAG,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAArB;AAEP;;AAEG;;AACH,OAAO,MAAM,aAAa,GAAG,YAAY,CAAC,QAAnC","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAK9B;;;AAGA,OAAO,MAAMC,YAAY,gBAAGD,KAAK,CAACE,aAAa,CAAoBC,SAAS,CAAC;AAE7E;;;AAGA,OAAO,MAAMC,aAAa,GAAGH,YAAY,CAACI,QAAQ","names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeContext/ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"]}
@@ -3,17 +3,14 @@ import * as React from 'react';
3
3
  * @internal
4
4
  * Context shared by all of the tooltips in the app
5
5
  */
6
-
7
6
  const TooltipVisibilityContext = /*#__PURE__*/React.createContext(undefined);
8
7
  const tooltipVisibilityContextDefaultValue = {};
9
8
  /**
10
9
  * @internal
11
10
  */
12
-
13
11
  export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
14
12
  export function useTooltipVisibility() {
15
13
  var _a;
16
-
17
14
  return (_a = React.useContext(TooltipVisibilityContext)) !== null && _a !== void 0 ? _a : tooltipVisibilityContextDefaultValue;
18
15
  }
19
16
  //# sourceMappingURL=TooltipContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAeA;;;AAGG;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAC/B,SAD+B,CAAjC;AAIA,MAAM,oCAAoC,GAAkC,EAA5E;AAEA;;AAEG;;AACH,OAAO,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,QAA3D;AAEP,OAAM,SAAU,oBAAV,GAA8B;;;EAClC,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAA,MAA0C,IAA1C,IAA0C,EAAA,KAAA,KAAA,CAA1C,GAA0C,EAA1C,GAA8C,oCAArD;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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAe9B;;;;AAIA,MAAMC,wBAAwB,gBAAGD,KAAK,CAACE,aAAa,CAClDC,SAAS,CACsC;AAEjD,MAAMC,oCAAoC,GAAkC,EAAE;AAE9E;;;AAGA,OAAO,MAAMC,yBAAyB,GAAGJ,wBAAwB,CAACK,QAAQ;AAE1E,OAAM,SAAUC,oBAAoB;;EAClC,OAAO,WAAK,CAACC,UAAU,CAACP,wBAAwB,CAAC,mCAAIG,oCAAoC;AAC3F","names":["React","TooltipVisibilityContext","createContext","undefined","tooltipVisibilityContextDefaultValue","TooltipVisibilityProvider","Provider","useTooltipVisibility","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts"],"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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"]}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/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/"}
1
+ {"version":3,"mappings":"AAAA,SAASA,YAAY,IAAIC,qBAAqB,EAAEC,aAAa,IAAIC,sBAAsB,QAAQ,gBAAgB;AAG/G,SACEC,sBAAsB,IAAIC,+BAA+B,EACzDC,iBAAiB,IAAIC,0BAA0B,QAC1C,yBAAyB;AAGhC,SACEC,yBAAyB,IAAIC,kCAAkC,EAC/DC,oBAAoB,IAAIC,6BAA6B,QAChD,4BAA4B;AAGnC,SAASC,QAAQ,IAAIC,iBAAiB,EAAEC,SAAS,IAAIC,kBAAkB,QAAQ,mBAAmB","names":["ThemeContext","ThemeContext_unstable","ThemeProvider","ThemeProvider_unstable","ThemeClassNameProvider","ThemeClassNameProvider_unstable","useThemeClassName","useThemeClassName_unstable","TooltipVisibilityProvider","TooltipVisibilityProvider_unstable","useTooltipVisibility","useTooltipVisibility_unstable","Provider","Provider_unstable","useFluent","useFluent_unstable"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/index.ts"],"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"]}
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useFluent = exports.Provider = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
8
  /**
10
9
  * @internal
11
10
  */
12
-
13
-
14
11
  const ProviderContext = /*#__PURE__*/React.createContext(undefined);
15
12
  const providerContextDefaultValue = {
16
13
  targetDocument: typeof document === 'object' ? document : undefined,
@@ -19,14 +16,10 @@ const providerContextDefaultValue = {
19
16
  /**
20
17
  * @internal
21
18
  */
22
-
23
19
  exports.Provider = ProviderContext.Provider;
24
-
25
20
  function useFluent() {
26
21
  var _a;
27
-
28
22
  return (_a = React.useContext(ProviderContext)) !== null && _a !== void 0 ? _a : providerContextDefaultValue;
29
23
  }
30
-
31
24
  exports.useFluent = useFluent;
32
25
  //# sourceMappingURL=ProviderContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ProviderContext/ProviderContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAUA;;AAEG;;;AACH,MAAM,eAAe,gBAAG,KAAK,CAAC,aAAN,CACtB,SADsB,CAAxB;AAIA,MAAM,2BAA2B,GAAyB;EACxD,cAAc,EAAE,OAAO,QAAP,KAAoB,QAApB,GAA+B,QAA/B,GAA0C,SADF;EAExD,GAAG,EAAE;AAFmD,CAA1D;AAKA;;AAEG;;AACU,OAAA,CAAA,QAAA,GAAW,eAAe,CAAC,QAA3B;;AAEb,SAAgB,SAAhB,GAAyB;;;EACvB,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,eAAjB,CAAA,MAAiC,IAAjC,IAAiC,EAAA,KAAA,KAAA,CAAjC,GAAiC,EAAjC,GAAqC,2BAA5C;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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AAUA;;;AAGA,MAAMA,eAAe,gBAAGC,KAAK,CAACC,aAAa,CACzCC,SAAS,CAC6B;AAExC,MAAMC,2BAA2B,GAAyB;EACxDC,cAAc,EAAE,OAAOC,QAAQ,KAAK,QAAQ,GAAGA,QAAQ,GAAGH,SAAS;EACnEI,GAAG,EAAE;CACN;AAED;;;AAGaC,gBAAQ,GAAGR,eAAe,CAACS,QAAQ;AAEhD,SAAgBC,SAAS;;EACvB,OAAO,WAAK,CAACC,UAAU,CAACX,eAAe,CAAC,mCAAII,2BAA2B;AACzE;AAFAI","names":["ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","exports","Provider","useFluent","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ProviderContext/ProviderContext.ts"],"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\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ProviderContext"), exports);
10
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ProviderContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,mBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ProviderContext/index.ts"],"sourcesContent":["export * from './ProviderContext';\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ProviderContext/index"), exports);
10
8
  //# sourceMappingURL=ProviderContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ProviderContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ProviderContext/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ProviderContext.ts"],"sourcesContent":["export * from './ProviderContext/index';\n"]}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useThemeClassName = exports.ThemeClassNameProvider = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
8
  /**
10
9
  * @internal
@@ -12,20 +11,15 @@ const React = /*#__PURE__*/require("react");
12
11
  *
13
12
  * Useful for elements in the React tree (can read context) but not in the DOM Tree. E.g. Portals
14
13
  */
15
-
16
-
17
14
  const ThemeClassNameContext = /*#__PURE__*/React.createContext(undefined);
18
15
  const themeClassNameContextDefaultVaue = '';
19
16
  exports.ThemeClassNameProvider = ThemeClassNameContext.Provider;
20
17
  /**
21
18
  * @returns CSS class that applies css variables
22
19
  */
23
-
24
20
  function useThemeClassName() {
25
21
  var _a;
26
-
27
22
  return (_a = React.useContext(ThemeClassNameContext)) !== null && _a !== void 0 ? _a : themeClassNameContextDefaultVaue;
28
23
  }
29
-
30
24
  exports.useThemeClassName = useThemeClassName;
31
25
  //# sourceMappingURL=ThemeClassNameContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAIA;;;;;AAKG;;;AACH,MAAM,qBAAqB,gBAAG,KAAK,CAAC,aAAN,CAC5B,SAD4B,CAA9B;AAIA,MAAM,gCAAgC,GAAG,EAAzC;AAEa,OAAA,CAAA,sBAAA,GAAyB,qBAAqB,CAAC,QAA/C;AAEb;;AAEG;;AACH,SAAgB,iBAAhB,GAAiC;;;EAC/B,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,qBAAjB,CAAA,MAAuC,IAAvC,IAAuC,EAAA,KAAA,KAAA,CAAvC,GAAuC,EAAvC,GAA2C,gCAAlD;AACD;;AAFD,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AAIA;;;;;;AAMA,MAAMA,qBAAqB,gBAAGC,KAAK,CAACC,aAAa,CAC/CC,SAAS,CACmC;AAE9C,MAAMC,gCAAgC,GAAG,EAAE;AAE9BC,8BAAsB,GAAGL,qBAAqB,CAACM,QAAQ;AAEpE;;;AAGA,SAAgBC,iBAAiB;;EAC/B,OAAO,WAAK,CAACC,UAAU,CAACR,qBAAqB,CAAC,mCAAII,gCAAgC;AACpF;AAFAC","names":["ThemeClassNameContext","React","createContext","undefined","themeClassNameContextDefaultVaue","exports","Provider","useThemeClassName","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ThemeClassNameContextValue = string;\n\n/**\n * @internal\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 | undefined>(\n undefined,\n) as React.Context<ThemeClassNameContextValue>;\n\nconst themeClassNameContextDefaultVaue = '';\n\nexport const ThemeClassNameProvider = ThemeClassNameContext.Provider;\n\n/**\n * @returns CSS class that applies css variables\n */\nexport function useThemeClassName(): ThemeClassNameContextValue {\n return React.useContext(ThemeClassNameContext) ?? themeClassNameContextDefaultVaue;\n}\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ThemeClassNameContext"), exports);
10
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,yBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeClassNameContext';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext/index.ts"],"sourcesContent":["export * from './ThemeClassNameContext';\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ThemeClassNameContext/index"), exports);
10
8
  //# sourceMappingURL=ThemeClassNameContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,+BAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeClassNameContext/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeClassNameContext.ts"],"sourcesContent":["export * from './ThemeClassNameContext/index';\n"]}
@@ -4,17 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ThemeProvider = exports.ThemeContext = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
8
  /**
10
9
  * @internal
11
10
  */
12
-
13
-
14
11
  exports.ThemeContext = /*#__PURE__*/React.createContext(undefined);
15
12
  /**
16
13
  * @internal
17
14
  */
18
-
19
15
  exports.ThemeProvider = exports.ThemeContext.Provider;
20
16
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeContext/ThemeContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAKA;;AAEG;;;AACU,OAAA,CAAA,YAAA,gBAAe,KAAK,CAAC,aAAN,CAAuC,SAAvC,CAAf;AAEb;;AAEG;;AACU,OAAA,CAAA,aAAA,GAAgB,OAAA,CAAA,YAAA,CAAa,QAA7B","sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AAKA;;;AAGaA,oBAAY,gBAAGC,KAAK,CAACC,aAAa,CAAoBC,SAAS,CAAC;AAE7E;;;AAGaH,qBAAa,GAAGA,oBAAY,CAACI,QAAQ","names":["exports","React","createContext","undefined","Provider"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeContext/ThemeContext.ts"],"sourcesContent":["import * as React from 'react';\nimport type { Theme } from '@fluentui/react-theme';\n\nexport type ThemeContextValue = Theme | Partial<Theme> | undefined;\n\n/**\n * @internal\n */\nexport const ThemeContext = React.createContext<ThemeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const ThemeProvider = ThemeContext.Provider;\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ThemeContext"), exports);
10
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,gBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeContext';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeContext/index.ts"],"sourcesContent":["export * from './ThemeContext';\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./ThemeContext/index"), exports);
10
8
  //# sourceMappingURL=ThemeContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/ThemeContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './ThemeContext/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/ThemeContext.ts"],"sourcesContent":["export * from './ThemeContext/index';\n"]}
@@ -4,27 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useTooltipVisibility = exports.TooltipVisibilityProvider = void 0;
7
-
8
7
  const React = /*#__PURE__*/require("react");
9
8
  /**
10
9
  * @internal
11
10
  * Context shared by all of the tooltips in the app
12
11
  */
13
-
14
-
15
12
  const TooltipVisibilityContext = /*#__PURE__*/React.createContext(undefined);
16
13
  const tooltipVisibilityContextDefaultValue = {};
17
14
  /**
18
15
  * @internal
19
16
  */
20
-
21
17
  exports.TooltipVisibilityProvider = TooltipVisibilityContext.Provider;
22
-
23
18
  function useTooltipVisibility() {
24
19
  var _a;
25
-
26
20
  return (_a = React.useContext(TooltipVisibilityContext)) !== null && _a !== void 0 ? _a : tooltipVisibilityContextDefaultValue;
27
21
  }
28
-
29
22
  exports.useTooltipVisibility = useTooltipVisibility;
30
23
  //# sourceMappingURL=TooltipContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;AAeA;;;AAGG;;;AACH,MAAM,wBAAwB,gBAAG,KAAK,CAAC,aAAN,CAC/B,SAD+B,CAAjC;AAIA,MAAM,oCAAoC,GAAkC,EAA5E;AAEA;;AAEG;;AACU,OAAA,CAAA,yBAAA,GAA4B,wBAAwB,CAAC,QAArD;;AAEb,SAAgB,oBAAhB,GAAoC;;;EAClC,OAAO,CAAA,EAAA,GAAA,KAAK,CAAC,UAAN,CAAiB,wBAAjB,CAAA,MAA0C,IAA1C,IAA0C,EAAA,KAAA,KAAA,CAA1C,GAA0C,EAA1C,GAA8C,oCAArD;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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AAeA;;;;AAIA,MAAMA,wBAAwB,gBAAGC,KAAK,CAACC,aAAa,CAClDC,SAAS,CACsC;AAEjD,MAAMC,oCAAoC,GAAkC,EAAE;AAE9E;;;AAGaC,iCAAyB,GAAGL,wBAAwB,CAACM,QAAQ;AAE1E,SAAgBC,oBAAoB;;EAClC,OAAO,WAAK,CAACC,UAAU,CAACR,wBAAwB,CAAC,mCAAII,oCAAoC;AAC3F;AAFAC","names":["TooltipVisibilityContext","React","createContext","undefined","tooltipVisibilityContextDefaultValue","exports","Provider","useTooltipVisibility","useContext"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts"],"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 * @internal\n * Context shared by all of the tooltips in the app\n */\nconst TooltipVisibilityContext = React.createContext<TooltipVisibilityContextValue | undefined>(\n undefined,\n) as React.Context<TooltipVisibilityContextValue>;\n\nconst tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {};\n\n/**\n * @internal\n */\nexport const TooltipVisibilityProvider = TooltipVisibilityContext.Provider;\n\nexport function useTooltipVisibility(): TooltipVisibilityContextValue {\n return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue;\n}\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./TooltipContext"), exports);
10
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipContext';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/index.ts"],"sourcesContent":["export * from './TooltipContext';\n"]}
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  const tslib_1 = /*#__PURE__*/require("tslib");
8
-
9
7
  tslib_1.__exportStar(require("./TooltipVisibilityContext/index"), exports);
10
8
  //# sourceMappingURL=TooltipVisibilityContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kCAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TooltipVisibilityContext/index';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"mappings":";;;;;;AAAAA","names":["tslib_1"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/TooltipVisibilityContext.ts"],"sourcesContent":["export * from './TooltipVisibilityContext/index';\n"]}
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
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;
7
-
8
7
  var ThemeContext_1 = /*#__PURE__*/require("./ThemeContext");
9
-
10
8
  Object.defineProperty(exports, "ThemeContext_unstable", {
11
9
  enumerable: true,
12
10
  get: function () {
@@ -19,9 +17,7 @@ Object.defineProperty(exports, "ThemeProvider_unstable", {
19
17
  return ThemeContext_1.ThemeProvider;
20
18
  }
21
19
  });
22
-
23
20
  var ThemeClassNameContext_1 = /*#__PURE__*/require("./ThemeClassNameContext");
24
-
25
21
  Object.defineProperty(exports, "ThemeClassNameProvider_unstable", {
26
22
  enumerable: true,
27
23
  get: function () {
@@ -34,9 +30,7 @@ Object.defineProperty(exports, "useThemeClassName_unstable", {
34
30
  return ThemeClassNameContext_1.useThemeClassName;
35
31
  }
36
32
  });
37
-
38
33
  var TooltipVisibilityContext_1 = /*#__PURE__*/require("./TooltipVisibilityContext");
39
-
40
34
  Object.defineProperty(exports, "TooltipVisibilityProvider_unstable", {
41
35
  enumerable: true,
42
36
  get: function () {
@@ -49,9 +43,7 @@ Object.defineProperty(exports, "useTooltipVisibility_unstable", {
49
43
  return TooltipVisibilityContext_1.useTooltipVisibility;
50
44
  }
51
45
  });
52
-
53
46
  var ProviderContext_1 = /*#__PURE__*/require("./ProviderContext");
54
-
55
47
  Object.defineProperty(exports, "Provider_unstable", {
56
48
  enumerable: true,
57
49
  get: function () {
@@ -1 +1 @@
1
- {"version":3,"sources":["packages/react-components/react-shared-contexts/src/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/"}
1
+ {"version":3,"mappings":";;;;;;AAAA;AAASA;EAAAC;EAAAC;IAAA,kCAAY;EAAA;AAAA;AAA2BF;EAAAC;EAAAC;IAAA,mCAAa;EAAA;AAAA;AAG7D;AACEF;EAAAC;EAAAC;IAAA,qDAAsB;EAAA;AAAA;AACtBF;EAAAC;EAAAC;IAAA,gDAAiB;EAAA;AAAA;AAInB;AACEF;EAAAC;EAAAC;IAAA,2DAAyB;EAAA;AAAA;AACzBF;EAAAC;EAAAC;IAAA,sDAAoB;EAAA;AAAA;AAItB;AAASF;EAAAC;EAAAC;IAAA,iCAAQ;EAAA;AAAA;AAAuBF;EAAAC;EAAAC;IAAA,kCAAS;EAAA;AAAA","names":["Object","enumerable","get"],"sourceRoot":"../src/","sources":["packages/react-components/react-shared-contexts/src/index.ts"],"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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "9.1.4",
3
+ "version": "9.1.5",
4
4
  "description": "Fluent UI React Contexts shared by multiple components.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -23,7 +23,8 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@fluentui/eslint-plugin": "*",
26
- "@fluentui/scripts": "^1.0.0"
26
+ "@fluentui/scripts-api-extractor": "*",
27
+ "@fluentui/scripts-tasks": "*"
27
28
  },
28
29
  "dependencies": {
29
30
  "@fluentui/react-theme": "^9.1.5",