@fluentui/react-shared-contexts 9.25.0 → 9.25.2
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.md +20 -2
- package/lib/AnnounceContext/AnnounceContext.js +1 -0
- package/lib/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js +1 -0
- package/lib/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib/OverridesContext/OverridesContext.js +1 -0
- package/lib/OverridesContext/OverridesContext.js.map +1 -1
- package/lib/PortalMountNodeContext.js +1 -0
- package/lib/PortalMountNodeContext.js.map +1 -1
- package/lib/ProviderContext/ProviderContext.js +1 -0
- package/lib/ProviderContext/ProviderContext.js.map +1 -1
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js +1 -0
- package/lib/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib/ThemeContext/ThemeContext.js +1 -0
- package/lib/ThemeContext/ThemeContext.js.map +1 -1
- package/lib/TooltipVisibilityContext/TooltipContext.js +1 -0
- package/lib/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/lib-commonjs/AnnounceContext/AnnounceContext.js +1 -0
- package/lib-commonjs/AnnounceContext/AnnounceContext.js.map +1 -1
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js +1 -0
- package/lib-commonjs/BackgroundAppearanceContext/BackgroundAppearanceContext.js.map +1 -1
- package/lib-commonjs/OverridesContext/OverridesContext.js +1 -0
- package/lib-commonjs/OverridesContext/OverridesContext.js.map +1 -1
- package/lib-commonjs/PortalMountNodeContext.js +1 -0
- package/lib-commonjs/PortalMountNodeContext.js.map +1 -1
- package/lib-commonjs/ProviderContext/ProviderContext.js +1 -0
- package/lib-commonjs/ProviderContext/ProviderContext.js.map +1 -1
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js +1 -0
- package/lib-commonjs/ThemeClassNameContext/ThemeClassNameContext.js.map +1 -1
- package/lib-commonjs/ThemeContext/ThemeContext.js +1 -0
- package/lib-commonjs/ThemeContext/ThemeContext.js.map +1 -1
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js +1 -0
- package/lib-commonjs/TooltipVisibilityContext/TooltipContext.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
|
2
2
|
|
|
3
|
-
This log was last generated on Thu,
|
|
3
|
+
This log was last generated on Thu, 02 Oct 2025 15:07:22 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.25.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.25.2)
|
|
8
|
+
|
|
9
|
+
Thu, 02 Oct 2025 15:07:22 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.25.1..@fluentui/react-shared-contexts_v9.25.2)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- feat: enforce usage of use client directive for files with client-only features ([PR #35173](https://github.com/microsoft/fluentui/pull/35173) by dmytrokirpa@microsoft.com)
|
|
15
|
+
|
|
16
|
+
## [9.25.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.25.1)
|
|
17
|
+
|
|
18
|
+
Mon, 08 Sep 2025 12:50:33 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.25.0..@fluentui/react-shared-contexts_v9.25.1)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- chore: extend peer dependencies versions to support React 19 ([PR #35145](https://github.com/microsoft/fluentui/pull/35145) by dmytrokirpa@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## [9.25.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.25.0)
|
|
8
26
|
|
|
9
|
-
Thu, 21 Aug 2025 12:
|
|
27
|
+
Thu, 21 Aug 2025 12:25:18 GMT
|
|
10
28
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.24.1..@fluentui/react-shared-contexts_v9.25.0)
|
|
11
29
|
|
|
12
30
|
### Minor changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\n\nexport type AnnounceContextValue = {\n announce: (message: string, options?: AnnounceOptions) => void;\n};\n\n/**\n * @internal\n */\nconst AnnounceContext = React.createContext<AnnounceContextValue | undefined>(undefined);\n\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["React","AnnounceContext","createContext","undefined","AnnounceProvider","Provider","useAnnounce","useContext","announce"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AA2B/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CAAmCC;AAE9E,OAAO,MAAMC,mBAAmBH,gBAAgBI,QAAQ,CAAC;AAEzD;;CAEC,GACD,OAAO,SAASC;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,8BAAjBD,+BAAAA,oBAAqC;QAAEQ,UAAU,IAAML;IAAU;AAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/BackgroundAppearanceContext/BackgroundAppearanceContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/BackgroundAppearanceContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * @internal\n */\nexport type BackgroundAppearanceContextValue = 'inverted' | undefined;\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceContext = React.createContext<BackgroundAppearanceContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;\n\nexport function useBackgroundAppearance(): BackgroundAppearanceContextValue {\n return React.useContext(BackgroundAppearanceContext);\n}\n"],"names":["React","BackgroundAppearanceContext","createContext","undefined","BackgroundAppearanceProvider","Provider","useBackgroundAppearance","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAO/B;;CAEC,GACD,OAAO,MAAMC,8BAA8BD,MAAME,aAAa,CAA+CC,WAAW;AAExH;;CAEC,GACD,OAAO,MAAMC,+BAA+BH,4BAA4BI,QAAQ,CAAC;AAEjF,OAAO,SAASC;IACd,OAAON,MAAMO,UAAU,CAACN;AAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/OverridesContext/OverridesContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/OverridesContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * @internal\n */\nexport type OverridesContextValue = {\n // No 'underline' as it is not supported by TextArea\n inputDefaultAppearance?: 'outline' | 'filled-darker' | 'filled-lighter';\n};\n\n/**\n * @internal\n */\nexport const OverridesContext = React.createContext<OverridesContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const OverridesProvider = OverridesContext.Provider;\n\nexport function useOverrides(): OverridesContextValue {\n return React.useContext(OverridesContext) ?? {};\n}\n"],"names":["React","OverridesContext","createContext","undefined","OverridesProvider","Provider","useOverrides","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,OAAO,MAAMC,mBAAmBD,MAAME,aAAa,CAAoCC,WAAW;AAElG;;CAEC,GACD,OAAO,MAAMC,oBAAoBH,iBAAiBI,QAAQ,CAAC;AAE3D,OAAO,SAASC;QACPN;IAAP,OAAOA,CAAAA,oBAAAA,MAAMO,UAAU,CAACN,+BAAjBD,+BAAAA,oBAAsC,CAAC;AAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/PortalMountNodeContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/PortalMountNodeContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type PortalMountNodeContextValue = HTMLElement | ShadowRoot | undefined;\n\n/**\n * Provides a mount node for portals to render into.\n *\n * @internal\n */\nconst PortalMountNodeContext = React.createContext<PortalMountNodeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const PortalMountNodeProvider = PortalMountNodeContext.Provider;\n\nexport function usePortalMountNode(): PortalMountNodeContextValue {\n return React.useContext(PortalMountNodeContext);\n}\n"],"names":["React","PortalMountNodeContext","createContext","undefined","PortalMountNodeProvider","Provider","usePortalMountNode","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAI/B;;;;CAIC,GACD,MAAMC,yBAAyBD,MAAME,aAAa,CAA8BC;AAEhF;;CAEC,GACD,OAAO,MAAMC,0BAA0BH,uBAAuBI,QAAQ,CAAC;AAEvE,OAAO,SAASC;IACd,OAAON,MAAMO,UAAU,CAACN;AAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ProviderContext/ProviderContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/ProviderContext.ts"],"sourcesContent":["'use client';\n\nimport * 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 // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )\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"],"names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,0HAA0H;IAC1HC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACP;AAEA;;CAEC,GACD,OAAO,MAAMC,WAAWP,gBAAgBO,QAAQ,CAAC;AAEjD,OAAO,SAASC;QACPT;IAAP,OAAOA,CAAAA,oBAAAA,MAAMU,UAAU,CAACT,8BAAjBD,+BAAAA,oBAAqCI;AAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["React","ThemeClassNameContext","createContext","undefined","themeClassNameContextDefaultVaue","ThemeClassNameProvider","Provider","useThemeClassName","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAI/B;;;;;CAKC,GACD,MAAMC,wBAAwBD,MAAME,aAAa,CAC/CC;AAGF,MAAMC,mCAAmC;AAEzC,OAAO,MAAMC,yBAAyBJ,sBAAsBK,QAAQ,CAAC;AAErE;;CAEC,GACD,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,oCAAjBD,+BAAAA,oBAA2CI;AACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["React","ThemeContext","createContext","undefined","ThemeProvider","Provider"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAK/B;;CAEC,GACD,OAAO,MAAMC,eAAeD,MAAME,aAAa,CAAoBC,WAAW;AAE9E;;CAEC,GACD,OAAO,MAAMC,gBAAgBH,aAAaI,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["React","TooltipVisibilityContext","createContext","undefined","tooltipVisibilityContextDefaultValue","TooltipVisibilityProvider","Provider","useTooltipVisibility","useContext"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAe/B;;;CAGC,GACD,MAAMC,2BAA2BD,MAAME,aAAa,CAClDC;AAGF,MAAMC,uCAAsE,CAAC;AAE7E;;CAEC,GACD,OAAO,MAAMC,4BAA4BJ,yBAAyBK,QAAQ,CAAC;AAE3E,OAAO,SAASC;QACPP;IAAP,OAAOA,CAAAA,oBAAAA,MAAMQ,UAAU,CAACP,uCAAjBD,+BAAAA,oBAA8CI;AACvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/AnnounceContext/AnnounceContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * Defines options for a message to be announced.\n */\nexport type AnnounceOptions = {\n alert?: boolean;\n\n /**\n * A unique identifier for the message. If a message with the same id is already announced, it will be replaced.\n */\n batchId?: string;\n\n /**\n * Indicates that the message announcement can be interrupted by another message and will be announced only\n * user is idle.\n */\n polite?: boolean;\n\n /** Defines the priority of the message. Higher priority messages will be announced first. */\n priority?: number;\n};\n\nexport type AnnounceContextValue = {\n announce: (message: string, options?: AnnounceOptions) => void;\n};\n\n/**\n * @internal\n */\nconst AnnounceContext = React.createContext<AnnounceContextValue | undefined>(undefined);\n\nexport const AnnounceProvider = AnnounceContext.Provider;\n\n/**\n * Returns a function that can be used to announce messages to screen readers.\n */\nexport function useAnnounce(): AnnounceContextValue {\n return React.useContext(AnnounceContext) ?? { announce: () => undefined };\n}\n"],"names":["AnnounceProvider","useAnnounce","AnnounceContext","React","createContext","undefined","Provider","useContext","announce"],"mappings":"AAAA;;;;;;;;;;;;IAkCaA,gBAAgB;eAAhBA;;IAKGC,WAAW;eAAXA;;;;iEArCO;AA2BvB;;CAEC,GACD,MAAMC,kBAAkBC,OAAMC,aAAa,CAAmCC;AAEvE,MAAML,mBAAmBE,gBAAgBI,QAAQ;AAKjD,SAASL;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMI,UAAU,CAACL,8BAAjBC,+BAAAA,oBAAqC;QAAEK,UAAU,IAAMH;IAAU;AAC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/BackgroundAppearanceContext/BackgroundAppearanceContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/BackgroundAppearanceContext/BackgroundAppearanceContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * @internal\n */\nexport type BackgroundAppearanceContextValue = 'inverted' | undefined;\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceContext = React.createContext<BackgroundAppearanceContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const BackgroundAppearanceProvider = BackgroundAppearanceContext.Provider;\n\nexport function useBackgroundAppearance(): BackgroundAppearanceContextValue {\n return React.useContext(BackgroundAppearanceContext);\n}\n"],"names":["BackgroundAppearanceContext","BackgroundAppearanceProvider","useBackgroundAppearance","React","createContext","undefined","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IAYaA,2BAA2B;eAA3BA;;IAKAC,4BAA4B;eAA5BA;;IAEGC,uBAAuB;eAAvBA;;;;iEAjBO;AAUhB,MAAMF,8BAA8BG,OAAMC,aAAa,CAA+CC;AAKtG,MAAMJ,+BAA+BD,4BAA4BM,QAAQ;AAEzE,SAASJ;IACd,OAAOC,OAAMI,UAAU,CAACP;AAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/OverridesContext/OverridesContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/OverridesContext/OverridesContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\n/**\n * @internal\n */\nexport type OverridesContextValue = {\n // No 'underline' as it is not supported by TextArea\n inputDefaultAppearance?: 'outline' | 'filled-darker' | 'filled-lighter';\n};\n\n/**\n * @internal\n */\nexport const OverridesContext = React.createContext<OverridesContextValue | undefined>(undefined);\n\n/**\n * @internal\n */\nexport const OverridesProvider = OverridesContext.Provider;\n\nexport function useOverrides(): OverridesContextValue {\n return React.useContext(OverridesContext) ?? {};\n}\n"],"names":["OverridesContext","OverridesProvider","useOverrides","React","createContext","undefined","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IAeaA,gBAAgB;eAAhBA;;IAKAC,iBAAiB;eAAjBA;;IAEGC,YAAY;eAAZA;;;;iEApBO;AAahB,MAAMF,mBAAmBG,OAAMC,aAAa,CAAoCC;AAKhF,MAAMJ,oBAAoBD,iBAAiBM,QAAQ;AAEnD,SAASJ;QACPC;IAAP,OAAOA,CAAAA,oBAAAA,OAAMI,UAAU,CAACP,+BAAjBG,+BAAAA,oBAAsC,CAAC;AAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/PortalMountNodeContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/PortalMountNodeContext.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n\nexport type PortalMountNodeContextValue = HTMLElement | ShadowRoot | undefined;\n\n/**\n * Provides a mount node for portals to render into.\n *\n * @internal\n */\nconst PortalMountNodeContext = React.createContext<PortalMountNodeContextValue>(undefined);\n\n/**\n * @internal\n */\nexport const PortalMountNodeProvider = PortalMountNodeContext.Provider;\n\nexport function usePortalMountNode(): PortalMountNodeContextValue {\n return React.useContext(PortalMountNodeContext);\n}\n"],"names":["PortalMountNodeProvider","usePortalMountNode","PortalMountNodeContext","React","createContext","undefined","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IAgBaA,uBAAuB;eAAvBA;;IAEGC,kBAAkB;eAAlBA;;;;iEAhBO;AAIvB;;;;CAIC,GACD,MAAMC,yBAAyBC,OAAMC,aAAa,CAA8BC;AAKzE,MAAML,0BAA0BE,uBAAuBI,QAAQ;AAE/D,SAASL;IACd,OAAOE,OAAMI,UAAU,CAACL;AAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ProviderContext/ProviderContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ProviderContext/ProviderContext.ts"],"sourcesContent":["'use client';\n\nimport * 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 // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )\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"],"names":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","useContext"],"mappings":"AAAA;;;;;;;;;;;;IA4BaA,QAAQ;eAARA;;IAEGC,SAAS;eAATA;;;;iEA5BO;AAUvB;;CAEC,GACD,MAAMC,kBAAkBC,OAAMC,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,0HAA0H;IAC1HC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACP;AAKO,MAAMT,WAAWE,gBAAgBF,QAAQ;AAEzC,SAASC;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMO,UAAU,CAACR,8BAAjBC,+BAAAA,oBAAqCG;AAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ThemeClassNameContext/ThemeClassNameContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["ThemeClassNameProvider","useThemeClassName","ThemeClassNameContext","React","createContext","undefined","themeClassNameContextDefaultVaue","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IAkBaA,sBAAsB;eAAtBA;;IAKGC,iBAAiB;eAAjBA;;;;iEArBO;AAIvB;;;;;CAKC,GACD,MAAMC,wBAAwBC,OAAMC,aAAa,CAC/CC;AAGF,MAAMC,mCAAmC;AAElC,MAAMN,yBAAyBE,sBAAsBK,QAAQ;AAK7D,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,oCAAjBC,+BAAAA,oBAA2CG;AACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/ThemeContext/ThemeContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["ThemeContext","ThemeProvider","React","createContext","undefined","Provider"],"mappings":"AAAA;;;;;;;;;;;;IAUaA,YAAY;eAAZA;;IAKAC,aAAa;eAAbA;;;;iEAbU;AAQhB,MAAMD,eAAeE,OAAMC,aAAa,CAAoBC;AAK5D,MAAMH,gBAAgBD,aAAaK,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/TooltipVisibilityContext/TooltipContext.ts"],"sourcesContent":["'use client';\n\nimport * 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"],"names":["TooltipVisibilityProvider","useTooltipVisibility","TooltipVisibilityContext","React","createContext","undefined","tooltipVisibilityContextDefaultValue","Provider","useContext"],"mappings":"AAAA;;;;;;;;;;;;IA8BaA,yBAAyB;eAAzBA;;IAEGC,oBAAoB;eAApBA;;;;iEA9BO;AAevB;;;CAGC,GACD,MAAMC,2BAA2BC,OAAMC,aAAa,CAClDC;AAGF,MAAMC,uCAAsE,CAAC;AAKtE,MAAMN,4BAA4BE,yBAAyBK,QAAQ;AAEnE,SAASN;QACPE;IAAP,OAAOA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,uCAAjBC,+BAAAA,oBAA8CG;AACvD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
|
3
|
-
"version": "9.25.
|
|
3
|
+
"version": "9.25.2",
|
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@swc/helpers": "^0.5.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@types/react": ">=16.14.0 <
|
|
24
|
-
"react": ">=16.14.0 <
|
|
23
|
+
"@types/react": ">=16.14.0 <20.0.0",
|
|
24
|
+
"react": ">=16.14.0 <20.0.0"
|
|
25
25
|
},
|
|
26
26
|
"beachball": {
|
|
27
27
|
"disallowedChangeTypes": [
|