@fluentui/react-shared-contexts 9.8.0 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,51 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 26 Sep 2023 15:15:00 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.9.0",
|
7
|
+
"version": "9.9.0",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"author": "martinhochel@microsoft.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "e61473fa10195f6ebf2308205c1e72e91b711831",
|
14
|
+
"comment": "fix: bump swc core to mitigate transpilation memory leaks"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"minor": [
|
18
|
+
{
|
19
|
+
"author": "yuanboxue@microsoft.com",
|
20
|
+
"package": "@fluentui/react-shared-contexts",
|
21
|
+
"commit": "45ab251870368226b02c57882e8f7ca0deb86c8f",
|
22
|
+
"comment": "feat: add custom style hooks for tag components"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"author": "beachball",
|
26
|
+
"package": "@fluentui/react-shared-contexts",
|
27
|
+
"comment": "Bump @fluentui/react-theme to v9.1.13",
|
28
|
+
"commit": "e16520437e10cd824ac254dd797e32762b5de72d"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"date": "Wed, 20 Sep 2023 17:47:42 GMT",
|
35
|
+
"tag": "@fluentui/react-shared-contexts_v9.8.1",
|
36
|
+
"version": "9.8.1",
|
37
|
+
"comments": {
|
38
|
+
"patch": [
|
39
|
+
{
|
40
|
+
"author": "martinhochel@microsoft.com",
|
41
|
+
"package": "@fluentui/react-shared-contexts",
|
42
|
+
"commit": "41d0ed0376ad79f1f5f5c4c7487515a1c6be35f0",
|
43
|
+
"comment": "chore: trigger manual version bump after broken release"
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"date": "Wed, 20 Sep 2023 14:59:52 GMT",
|
6
50
|
"tag": "@fluentui/react-shared-contexts_v9.8.0",
|
7
51
|
"version": "9.8.0",
|
8
52
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,35 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 26 Sep 2023 15:15:00 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.9.0)
|
8
|
+
|
9
|
+
Tue, 26 Sep 2023 15:15:00 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.8.1..@fluentui/react-shared-contexts_v9.9.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: add custom style hooks for tag components ([PR #29237](https://github.com/microsoft/fluentui/pull/29237) by yuanboxue@microsoft.com)
|
15
|
+
- Bump @fluentui/react-theme to v9.1.13 ([PR #29300](https://github.com/microsoft/fluentui/pull/29300) by beachball)
|
16
|
+
|
17
|
+
### Patches
|
18
|
+
|
19
|
+
- fix: bump swc core to mitigate transpilation memory leaks ([PR #29253](https://github.com/microsoft/fluentui/pull/29253) by martinhochel@microsoft.com)
|
20
|
+
|
21
|
+
## [9.8.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.8.1)
|
22
|
+
|
23
|
+
Wed, 20 Sep 2023 17:47:42 GMT
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.8.0..@fluentui/react-shared-contexts_v9.8.1)
|
25
|
+
|
26
|
+
### Patches
|
27
|
+
|
28
|
+
- chore: trigger manual version bump after broken release ([PR #29197](https://github.com/microsoft/fluentui/pull/29197) by martinhochel@microsoft.com)
|
29
|
+
|
7
30
|
## [9.8.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.8.0)
|
8
31
|
|
9
|
-
Wed, 20 Sep 2023 14:
|
32
|
+
Wed, 20 Sep 2023 14:59:52 GMT
|
10
33
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.7.3..@fluentui/react-shared-contexts_v9.8.0)
|
11
34
|
|
12
35
|
### Minor changes
|
package/dist/index.d.ts
CHANGED
@@ -127,6 +127,11 @@ export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
|
127
127
|
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
128
128
|
useDrawerBodyStyles_unstable: CustomStyleHook;
|
129
129
|
useDrawerFooterStyles_unstable: CustomStyleHook;
|
130
|
+
useInteractionTagStyles_unstable: CustomStyleHook;
|
131
|
+
useInteractionTagPrimaryStyles_unstable: CustomStyleHook;
|
132
|
+
useInteractionTagSecondaryStyles_unstable: CustomStyleHook;
|
133
|
+
useTagStyles_unstable: CustomStyleHook;
|
134
|
+
useTagGroupStyles_unstable: CustomStyleHook;
|
130
135
|
}> | undefined>;
|
131
136
|
|
132
137
|
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
@@ -221,6 +226,11 @@ export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
|
221
226
|
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
222
227
|
useDrawerBodyStyles_unstable: CustomStyleHook;
|
223
228
|
useDrawerFooterStyles_unstable: CustomStyleHook;
|
229
|
+
useInteractionTagStyles_unstable: CustomStyleHook;
|
230
|
+
useInteractionTagPrimaryStyles_unstable: CustomStyleHook;
|
231
|
+
useInteractionTagSecondaryStyles_unstable: CustomStyleHook;
|
232
|
+
useTagStyles_unstable: CustomStyleHook;
|
233
|
+
useTagGroupStyles_unstable: CustomStyleHook;
|
224
234
|
}>;
|
225
235
|
|
226
236
|
/**
|
@@ -318,6 +328,11 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
|
|
318
328
|
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
319
329
|
useDrawerBodyStyles_unstable: CustomStyleHook;
|
320
330
|
useDrawerFooterStyles_unstable: CustomStyleHook;
|
331
|
+
useInteractionTagStyles_unstable: CustomStyleHook;
|
332
|
+
useInteractionTagPrimaryStyles_unstable: CustomStyleHook;
|
333
|
+
useInteractionTagSecondaryStyles_unstable: CustomStyleHook;
|
334
|
+
useTagStyles_unstable: CustomStyleHook;
|
335
|
+
useTagGroupStyles_unstable: CustomStyleHook;
|
321
336
|
}> | undefined>;
|
322
337
|
|
323
338
|
/**
|
@@ -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 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 useDrawerInlineStyles_unstable: CustomStyleHook;\n useDrawerOverlayStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerFooterStyles_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 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 useDrawerInlineStyles_unstable: CustomStyleHook;\n useDrawerOverlayStyles_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}>;\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;AAwG/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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.9.0",
|
4
4
|
"description": "Fluent UI React Contexts shared by multiple components.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"@fluentui/scripts-tasks": "*"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"@fluentui/react-theme": "^9.1.
|
31
|
+
"@fluentui/react-theme": "^9.1.13",
|
32
32
|
"@swc/helpers": "^0.5.1"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|