@fluentui/react-shared-contexts 9.14.1 → 9.15.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.md
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Fri, 15 Mar 2024 21:37:57 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.15.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.15.1)
|
8
|
+
|
9
|
+
Fri, 15 Mar 2024 21:37:57 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.15.0..@fluentui/react-shared-contexts_v9.15.1)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- Bump @fluentui/react-theme to v9.1.18 ([PR #30740](https://github.com/microsoft/fluentui/pull/30740) by beachball)
|
15
|
+
|
16
|
+
## [9.15.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.15.0)
|
17
|
+
|
18
|
+
Thu, 07 Mar 2024 19:33:25 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.14.1..@fluentui/react-shared-contexts_v9.15.0)
|
20
|
+
|
21
|
+
### Minor changes
|
22
|
+
|
23
|
+
- feat: Deprecate legacy TeachingPopoverCarousel style hooks ([PR #30423](https://github.com/microsoft/fluentui/pull/30423) by mifraser@microsoft.com)
|
24
|
+
- Bump @fluentui/react-theme to v9.1.17 ([PR #30687](https://github.com/microsoft/fluentui/pull/30687) by beachball)
|
25
|
+
|
7
26
|
## [9.14.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.14.1)
|
8
27
|
|
9
|
-
Wed, 28 Feb 2024 02:
|
28
|
+
Wed, 28 Feb 2024 02:34:18 GMT
|
10
29
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.14.0..@fluentui/react-shared-contexts_v9.14.1)
|
11
30
|
|
12
31
|
### Patches
|
package/dist/index.d.ts
CHANGED
@@ -160,11 +160,14 @@ export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
|
160
160
|
useToasterStyles_unstable: CustomStyleHook;
|
161
161
|
/** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */
|
162
162
|
useTeachingPopoverStyles_unstable: CustomStyleHook;
|
163
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */
|
163
164
|
useTeachingPopoverActionsStyles_unstable: CustomStyleHook;
|
164
165
|
useTeachingPopoverBodyStyles_unstable: CustomStyleHook;
|
166
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */
|
165
167
|
useTeachingPopoverButtonStyles_unstable: CustomStyleHook;
|
166
168
|
useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;
|
167
169
|
useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;
|
170
|
+
/** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */
|
168
171
|
useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
|
169
172
|
useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
|
170
173
|
useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
|
@@ -287,11 +290,14 @@ export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
|
287
290
|
useToasterStyles_unstable: CustomStyleHook;
|
288
291
|
/** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */
|
289
292
|
useTeachingPopoverStyles_unstable: CustomStyleHook;
|
293
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */
|
290
294
|
useTeachingPopoverActionsStyles_unstable: CustomStyleHook;
|
291
295
|
useTeachingPopoverBodyStyles_unstable: CustomStyleHook;
|
296
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */
|
292
297
|
useTeachingPopoverButtonStyles_unstable: CustomStyleHook;
|
293
298
|
useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;
|
294
299
|
useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;
|
300
|
+
/** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */
|
295
301
|
useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
|
296
302
|
useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
|
297
303
|
useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
|
@@ -417,11 +423,14 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
|
|
417
423
|
useToasterStyles_unstable: CustomStyleHook;
|
418
424
|
/** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */
|
419
425
|
useTeachingPopoverStyles_unstable: CustomStyleHook;
|
426
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */
|
420
427
|
useTeachingPopoverActionsStyles_unstable: CustomStyleHook;
|
421
428
|
useTeachingPopoverBodyStyles_unstable: CustomStyleHook;
|
429
|
+
/** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */
|
422
430
|
useTeachingPopoverButtonStyles_unstable: CustomStyleHook;
|
423
431
|
useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;
|
424
432
|
useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;
|
433
|
+
/** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */
|
425
434
|
useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
|
426
435
|
useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
|
427
436
|
useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n useListItemButtonStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n}>;\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","useContext"],"mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;
|
1
|
+
{"version":3,"sources":["CustomStyleHooksContext.ts"],"sourcesContent":["/* eslint-disable */\n\nimport * as React from 'react';\n\ntype CustomStyleHook = (state: unknown) => void;\n\n// The list of hooks is built from the exports from react-components/src/index\nexport type CustomStyleHooksContextValue = Partial<{\n useAccordionHeaderStyles_unstable: CustomStyleHook;\n useAccordionItemStyles_unstable: CustomStyleHook;\n useAccordionPanelStyles_unstable: CustomStyleHook;\n useAccordionStyles_unstable: CustomStyleHook;\n useAvatarStyles_unstable: CustomStyleHook;\n useAvatarGroupStyles_unstable: CustomStyleHook;\n useAvatarGroupItemStyles_unstable: CustomStyleHook;\n useAvatarGroupPopoverStyles_unstable: CustomStyleHook;\n useBadgeStyles_unstable: CustomStyleHook;\n useCounterBadgeStyles_unstable: CustomStyleHook;\n useCardHeaderStyles_unstable: CustomStyleHook;\n useCardStyles_unstable: CustomStyleHook;\n useCardFooterStyles_unstable: CustomStyleHook;\n useCardPreviewStyles_unstable: CustomStyleHook;\n usePresenceBadgeStyles_unstable: CustomStyleHook;\n useButtonStyles_unstable: CustomStyleHook;\n useCompoundButtonStyles_unstable: CustomStyleHook;\n useMenuButtonStyles_unstable: CustomStyleHook;\n useSplitButtonStyles_unstable: CustomStyleHook;\n useToggleButtonStyles_unstable: CustomStyleHook;\n useCheckboxStyles_unstable: CustomStyleHook;\n useComboboxStyles_unstable: CustomStyleHook;\n useDropdownStyles_unstable: CustomStyleHook;\n useListboxStyles_unstable: CustomStyleHook;\n useListStyles_unstable: CustomStyleHook;\n useListItemStyles_unstable: CustomStyleHook;\n useListItemButtonStyles_unstable: CustomStyleHook;\n useOptionStyles_unstable: CustomStyleHook;\n useOptionGroupStyles_unstable: CustomStyleHook;\n useDividerStyles_unstable: CustomStyleHook;\n useInputStyles_unstable: CustomStyleHook;\n useImageStyles_unstable: CustomStyleHook;\n useLabelStyles_unstable: CustomStyleHook;\n useLinkStyles_unstable: CustomStyleHook;\n useMenuDividerStyles_unstable: CustomStyleHook;\n useMenuGroupHeaderStyles_unstable: CustomStyleHook;\n useMenuGroupStyles_unstable: CustomStyleHook;\n useMenuItemCheckboxStyles_unstable: CustomStyleHook;\n useMenuItemRadioStyles_unstable: CustomStyleHook;\n useMenuItemStyles_unstable: CustomStyleHook;\n useMenuListStyles_unstable: CustomStyleHook;\n useMenuPopoverStyles_unstable: CustomStyleHook;\n useMenuSplitGroupStyles_unstable: CustomStyleHook;\n usePersonaStyles_unstable: CustomStyleHook;\n usePopoverSurfaceStyles_unstable: CustomStyleHook;\n useRadioGroupStyles_unstable: CustomStyleHook;\n useRadioStyles_unstable: CustomStyleHook;\n useSelectStyles_unstable: CustomStyleHook;\n useSliderStyles_unstable: CustomStyleHook;\n useSpinButtonStyles_unstable: CustomStyleHook;\n useSpinnerStyles_unstable: CustomStyleHook;\n useSwitchStyles_unstable: CustomStyleHook;\n useTabStyles_unstable: CustomStyleHook;\n useTabListStyles_unstable: CustomStyleHook;\n useTextStyles_unstable: CustomStyleHook;\n useTextareaStyles_unstable: CustomStyleHook;\n useTooltipStyles_unstable: CustomStyleHook;\n useDialogTitleStyles_unstable: CustomStyleHook;\n useDialogBodyStyles_unstable: CustomStyleHook;\n useDialogActionsStyles_unstable: CustomStyleHook;\n useDialogSurfaceStyles_unstable: CustomStyleHook;\n useDialogContentStyles_unstable: CustomStyleHook;\n useProgressBarStyles_unstable: CustomStyleHook;\n useToolbarButtonStyles_unstable: CustomStyleHook;\n useToolbarRadioButtonStyles_unstable: CustomStyleHook;\n useToolbarGroupStyles_unstable: CustomStyleHook;\n useToolbarToggleButtonStyles_unstable: CustomStyleHook;\n useToolbarDividerStyles_unstable: CustomStyleHook;\n useToolbarStyles_unstable: CustomStyleHook;\n useTableCellStyles_unstable: CustomStyleHook;\n useTableRowStyles_unstable: CustomStyleHook;\n useTableBodyStyles_unstable: CustomStyleHook;\n useTableStyles_unstable: CustomStyleHook;\n useTableHeaderStyles_unstable: CustomStyleHook;\n useTableHeaderCellStyles_unstable: CustomStyleHook;\n useTableResizeHandleStyles_unstable: CustomStyleHook;\n useTableSelectionCellStyles_unstable: CustomStyleHook;\n useTableCellActionsStyles_unstable: CustomStyleHook;\n useTableCellLayoutStyles_unstable: CustomStyleHook;\n useDataGridCellStyles_unstable: CustomStyleHook;\n useDataGridRowStyles_unstable: CustomStyleHook;\n useDataGridBodyStyles_unstable: CustomStyleHook;\n useDataGridStyles_unstable: CustomStyleHook;\n useDataGridHeaderStyles_unstable: CustomStyleHook;\n useDataGridHeaderCellStyles_unstable: CustomStyleHook;\n useDataGridSelectionCellStyles_unstable: CustomStyleHook;\n useDrawerStyles_unstable: CustomStyleHook;\n /** @deprecated Use useInlineDrawerStyles_unstable instead. */\n useDrawerInlineStyles_unstable: CustomStyleHook;\n /** @deprecated Use useOverlayDrawerStyles_unstable instead. */\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useInlineDrawerStyles_unstable: CustomStyleHook;\n useOverlayDrawerStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_unstable: CustomStyleHook;\n useInteractionTagStyles_unstable: CustomStyleHook;\n useInteractionTagPrimaryStyles_unstable: CustomStyleHook;\n useInteractionTagSecondaryStyles_unstable: CustomStyleHook;\n useTagStyles_unstable: CustomStyleHook;\n useTagGroupStyles_unstable: CustomStyleHook;\n useBreadcrumbStyles_unstable: CustomStyleHook;\n useBreadcrumbButtonStyles_unstable: CustomStyleHook;\n useBreadcrumbItemStyles_unstable: CustomStyleHook;\n useBreadcrumbDividerStyles_unstable: CustomStyleHook;\n useMessageBarStyles_unstable: CustomStyleHook;\n useMessageBarBodyStyles_unstable: CustomStyleHook;\n useMessageBarTitleStyles_unstable: CustomStyleHook;\n useMessageBarActionsStyles_unstable: CustomStyleHook;\n useMessageBarGroupStyles_unstable: CustomStyleHook;\n useToasterStyles_unstable: CustomStyleHook;\n /** @deprecated TeachingPopover wrapper has no styles (non-UI hooks only). */\n useTeachingPopoverStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel internal functionality. */\n useTeachingPopoverActionsStyles_unstable: CustomStyleHook;\n useTeachingPopoverBodyStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverFooter / TeachingPopoverCarousel styling hooks */\n useTeachingPopoverButtonStyles_unstable: CustomStyleHook;\n useTeachingPopoverCarouselStyles_unstable: CustomStyleHook;\n useTeachingPopoverHeaderStyles_unstable: CustomStyleHook;\n /** @deprecated Replaced by TeachingPopoverCarouselNav styling hooks */\n useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;\n useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;\n useTeachingPopoverTitleStyles_unstable: CustomStyleHook;\n useTimePickerCompatStyles_unstable: CustomStyleHook;\n}>;\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\n/**\n * Gets a custom style hook\n * @param hook - One of the hook properties in CustomStyleHooksContextValue\n * @returns The corresponding hook when defined, otherwise a no-op function.\n */\nexport const useCustomStyleHook = (hook: keyof CustomStyleHooksContextValue): CustomStyleHook => {\n return React.useContext(CustomStyleHooksContext)?.[hook] ?? noop;\n};\n"],"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","useContext"],"mappings":"AAAA,kBAAkB,GAElB,YAAYA,WAAW,QAAQ;AAuI/B;;CAEC,GACD,OAAO,MAAMC,0BAA0BD,MAAME,aAAa,CAA2CC,WAAW;AAEhH,MAAMC,OAAO,KAAO;AAEpB;;CAEC,GACD,OAAO,MAAMC,2BAA2BJ,wBAAwBK,QAAQ,CAAC;AAEzE;;;;CAIC,GACD,OAAO,MAAMC,qBAAqB,CAACC;QAC1BR;QAAAA;IAAP,OAAOA,CAAAA,0BAAAA,oBAAAA,MAAMS,UAAU,CAACR,sCAAjBD,wCAAAA,iBAA2C,CAACQ,KAAK,cAAjDR,oCAAAA,yBAAqDI;AAC9D,EAAE"}
|
package/lib-commonjs/index.js
CHANGED
@@ -9,68 +9,68 @@ function _export(target, all) {
|
|
9
9
|
});
|
10
10
|
}
|
11
11
|
_export(exports, {
|
12
|
-
|
13
|
-
return
|
12
|
+
AnnounceProvider: function() {
|
13
|
+
return _AnnounceContext.AnnounceProvider;
|
14
14
|
},
|
15
|
-
|
16
|
-
return
|
15
|
+
AnnounceProvider_unstable: function() {
|
16
|
+
return /** @deprecated Use AnnounceProvider instead. */ _AnnounceContext.AnnounceProvider;
|
17
17
|
},
|
18
|
-
|
19
|
-
return
|
18
|
+
BackgroundAppearanceProvider: function() {
|
19
|
+
return _BackgroundAppearanceContext.BackgroundAppearanceProvider;
|
20
20
|
},
|
21
|
-
|
22
|
-
return
|
21
|
+
CustomStyleHooksContext_unstable: function() {
|
22
|
+
return _CustomStyleHooksContext.CustomStyleHooksContext;
|
23
23
|
},
|
24
|
-
|
25
|
-
return
|
24
|
+
CustomStyleHooksProvider_unstable: function() {
|
25
|
+
return _CustomStyleHooksContext.CustomStyleHooksProvider;
|
26
26
|
},
|
27
|
-
|
28
|
-
return
|
27
|
+
OverridesProvider_unstable: function() {
|
28
|
+
return _OverridesContext.OverridesProvider;
|
29
|
+
},
|
30
|
+
PortalMountNodeProvider: function() {
|
31
|
+
return _PortalMountNodeContext.PortalMountNodeProvider;
|
29
32
|
},
|
30
33
|
Provider_unstable: function() {
|
31
34
|
return _ProviderContext.Provider;
|
32
35
|
},
|
33
|
-
|
34
|
-
return
|
35
|
-
},
|
36
|
-
OverridesProvider_unstable: function() {
|
37
|
-
return _OverridesContext.OverridesProvider;
|
36
|
+
ThemeClassNameProvider_unstable: function() {
|
37
|
+
return _ThemeClassNameContext.ThemeClassNameProvider;
|
38
38
|
},
|
39
|
-
|
40
|
-
return
|
39
|
+
ThemeContext_unstable: function() {
|
40
|
+
return _ThemeContext.ThemeContext;
|
41
41
|
},
|
42
|
-
|
43
|
-
return
|
42
|
+
ThemeProvider_unstable: function() {
|
43
|
+
return _ThemeContext.ThemeProvider;
|
44
44
|
},
|
45
|
-
|
46
|
-
return
|
45
|
+
TooltipVisibilityProvider_unstable: function() {
|
46
|
+
return _TooltipVisibilityContext.TooltipVisibilityProvider;
|
47
47
|
},
|
48
|
-
|
49
|
-
return
|
48
|
+
useAnnounce: function() {
|
49
|
+
return _AnnounceContext.useAnnounce;
|
50
50
|
},
|
51
|
-
|
52
|
-
return
|
51
|
+
useAnnounce_unstable: function() {
|
52
|
+
return /** @deprecated Use useAnnounce instead. */ _AnnounceContext.useAnnounce;
|
53
53
|
},
|
54
54
|
useBackgroundAppearance: function() {
|
55
55
|
return _BackgroundAppearanceContext.useBackgroundAppearance;
|
56
56
|
},
|
57
|
-
|
58
|
-
return
|
57
|
+
useCustomStyleHook_unstable: function() {
|
58
|
+
return _CustomStyleHooksContext.useCustomStyleHook;
|
59
59
|
},
|
60
|
-
|
61
|
-
return
|
60
|
+
useFluent_unstable: function() {
|
61
|
+
return _ProviderContext.useFluent;
|
62
62
|
},
|
63
|
-
|
64
|
-
return
|
63
|
+
useOverrides_unstable: function() {
|
64
|
+
return _OverridesContext.useOverrides;
|
65
65
|
},
|
66
|
-
|
67
|
-
return
|
66
|
+
usePortalMountNode: function() {
|
67
|
+
return _PortalMountNodeContext.usePortalMountNode;
|
68
68
|
},
|
69
|
-
|
70
|
-
return
|
69
|
+
useThemeClassName_unstable: function() {
|
70
|
+
return _ThemeClassNameContext.useThemeClassName;
|
71
71
|
},
|
72
|
-
|
73
|
-
return
|
72
|
+
useTooltipVisibility_unstable: function() {
|
73
|
+
return _TooltipVisibilityContext.useTooltipVisibility;
|
74
74
|
}
|
75
75
|
});
|
76
76
|
const _ThemeContext = require("./ThemeContext");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.js"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';\nexport { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';\nexport { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';\nexport { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';\nexport { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';\nexport { AnnounceProvider, /** @deprecated Use AnnounceProvider instead. */ AnnounceProvider as AnnounceProvider_unstable, useAnnounce, /** @deprecated Use useAnnounce instead. */ useAnnounce as useAnnounce_unstable } from './AnnounceContext';\n"],"names":["
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { ThemeContext as ThemeContext_unstable, ThemeProvider as ThemeProvider_unstable } from './ThemeContext';\nexport { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClassName as useThemeClassName_unstable } from './ThemeClassNameContext';\nexport { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';\nexport { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';\nexport { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';\nexport { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';\nexport { BackgroundAppearanceProvider, useBackgroundAppearance } from './BackgroundAppearanceContext';\nexport { PortalMountNodeProvider, usePortalMountNode } from './PortalMountNodeContext';\nexport { AnnounceProvider, /** @deprecated Use AnnounceProvider instead. */ AnnounceProvider as AnnounceProvider_unstable, useAnnounce, /** @deprecated Use useAnnounce instead. */ useAnnounce as useAnnounce_unstable } from './AnnounceContext';\n"],"names":["AnnounceProvider","AnnounceProvider_unstable","BackgroundAppearanceProvider","CustomStyleHooksContext_unstable","CustomStyleHooksContext","CustomStyleHooksProvider_unstable","CustomStyleHooksProvider","OverridesProvider_unstable","OverridesProvider","PortalMountNodeProvider","Provider_unstable","Provider","ThemeClassNameProvider_unstable","ThemeClassNameProvider","ThemeContext_unstable","ThemeContext","ThemeProvider_unstable","ThemeProvider","TooltipVisibilityProvider_unstable","TooltipVisibilityProvider","useAnnounce","useAnnounce_unstable","useBackgroundAppearance","useCustomStyleHook_unstable","useCustomStyleHook","useFluent_unstable","useFluent","useOverrides_unstable","useOverrides","usePortalMountNode","useThemeClassName_unstable","useThemeClassName","useTooltipVisibility_unstable","useTooltipVisibility"],"mappings":";;;;;;;;;;;IAQSA,gBAAgB;eAAhBA,iCAAgB;;IAAuEC,yBAAyB;eAA9F,8CAA8C,GAAGD,iCAAgB;;IAFnFE,4BAA4B;eAA5BA,yDAA4B;;IADDC,gCAAgC;eAA3DC,gDAAuB;;IAAkEC,iCAAiC;eAA7DC,iDAAwB;;IADhEC,0BAA0B;eAA/CC,mCAAiB;;IAGjBC,uBAAuB;eAAvBA,+CAAuB;;IAJXC,iBAAiB;eAA7BC,yBAAQ;;IAFkBC,+BAA+B;eAAzDC,6CAAsB;;IADNC,qBAAqB;eAArCC,0BAAY;;IAA4CC,sBAAsB;eAAvCC,2BAAa;;IAEvBC,kCAAkC;eAA/DC,mDAAyB;;IAMyFC,WAAW;eAAXA,4BAAW;;IAA6DC,oBAAoB;eAA/E,yCAAyC,GAAGD,4BAAW;;IAFxJE,uBAAuB;eAAvBA,oDAAuB;;IAD6FC,2BAA2B;eAAjDC,2CAAkB;;IAFlGC,kBAAkB;eAA/BC,0BAAS;;IACyBC,qBAAqB;eAArCC,8BAAY;;IAGpCC,kBAAkB;eAAlBA,0CAAkB;;IANqCC,0BAA0B;eAA/CC,wCAAiB;;IACaC,6BAA6B;eAArDC,8CAAoB;;;8BAFC;uCAC4B;0CACY;iCACxD;kCACwB;yCACuF;6CACxH;wCACV;iCACmK"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.15.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",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@fluentui/scripts-tasks": "*"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@fluentui/react-theme": "^9.1.
|
33
|
+
"@fluentui/react-theme": "^9.1.18",
|
34
34
|
"@swc/helpers": "^0.5.1"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|