@fluentui/react-shared-contexts 9.3.3 → 9.5.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 +72 -6
- package/CHANGELOG.md +20 -5
- package/dist/index.d.ts +193 -5
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js +9 -88
- package/lib/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js +5 -89
- package/lib-commonjs/CustomStyleHooksContext/CustomStyleHooksContext.js.map +1 -1
- package/lib-commonjs/index.js +2 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +4 -3
- package/.swcrc +0 -30
package/CHANGELOG.json
CHANGED
@@ -2,16 +2,82 @@
|
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-shared-contexts_v9.
|
7
|
-
"version": "9.
|
5
|
+
"date": "Wed, 24 May 2023 20:42:44 GMT",
|
6
|
+
"tag": "@fluentui/react-shared-contexts_v9.5.0",
|
7
|
+
"version": "9.5.0",
|
8
8
|
"comments": {
|
9
|
+
"none": [
|
10
|
+
{
|
11
|
+
"author": "olfedias@microsoft.com",
|
12
|
+
"package": "@fluentui/react-shared-contexts",
|
13
|
+
"commit": "69e0617a93cb44ef42f3bd19284b7dc5fe27fed3",
|
14
|
+
"comment": "chore: update test-ssr script"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"minor": [
|
18
|
+
{
|
19
|
+
"author": "marcosvmmoura@gmail.com",
|
20
|
+
"package": "@fluentui/react-shared-contexts",
|
21
|
+
"commit": "a30aec3345289cac3cb0e58f8b17caa8239cd239",
|
22
|
+
"comment": "feat: add style overrides for drawer components"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"date": "Thu, 18 May 2023 00:39:13 GMT",
|
29
|
+
"tag": "@fluentui/react-shared-contexts_v9.4.0",
|
30
|
+
"version": "9.4.0",
|
31
|
+
"comments": {
|
32
|
+
"none": [
|
33
|
+
{
|
34
|
+
"author": "olfedias@microsoft.com",
|
35
|
+
"package": "@fluentui/react-shared-contexts",
|
36
|
+
"commit": "06cd515eda59a3078bfe32f9cc7c1f281cd20208",
|
37
|
+
"comment": "chore: add test-ssr script to v9 packages"
|
38
|
+
}
|
39
|
+
]
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"date": "Fri, 12 May 2023 20:27:41 GMT",
|
44
|
+
"tag": "@fluentui/react-shared-contexts_v9.4.0",
|
45
|
+
"version": "9.4.0",
|
46
|
+
"comments": {
|
47
|
+
"minor": [
|
48
|
+
{
|
49
|
+
"author": "marcosvmmoura@gmail.com",
|
50
|
+
"package": "@fluentui/react-shared-contexts",
|
51
|
+
"commit": "3a9044346aced02d96e8cde65b46e88e8d9d32ec",
|
52
|
+
"comment": "feat: add style overrides for drawer components"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"author": "gcox@microsoft.com",
|
56
|
+
"package": "@fluentui/react-shared-contexts",
|
57
|
+
"commit": "ee977e20d359922798949a4f18af7a036ca36ca3",
|
58
|
+
"comment": "Updated to provide single hook for noop tree-shaking"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"author": "beachball",
|
62
|
+
"package": "@fluentui/react-shared-contexts",
|
63
|
+
"comment": "Bump @fluentui/react-theme to v9.1.8",
|
64
|
+
"commit": "79c08ce5bbf6387b2b18ba4c3d2d5681e0177d4b"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"none": [
|
68
|
+
{
|
69
|
+
"author": "martinhochel@microsoft.com",
|
70
|
+
"package": "@fluentui/react-shared-contexts",
|
71
|
+
"commit": "dbda7fa69e3000aaf8dd4a061e254ebd35198b8e",
|
72
|
+
"comment": "fix: update npmignore files to fix npm8/node16 regression how npm publish works"
|
73
|
+
}
|
74
|
+
],
|
9
75
|
"patch": [
|
10
76
|
{
|
11
|
-
"author": "
|
77
|
+
"author": "olfedias@microsoft.com",
|
12
78
|
"package": "@fluentui/react-shared-contexts",
|
13
|
-
"commit": "
|
14
|
-
"comment": "
|
79
|
+
"commit": "c28decb23d191a0daaaf6d5d1832429715102129",
|
80
|
+
"comment": "chore: exclude .swcrc from being published"
|
15
81
|
}
|
16
82
|
]
|
17
83
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,17 +1,32 @@
|
|
1
1
|
# Change Log - @fluentui/react-shared-contexts
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 24 May 2023 20:42:44 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [9.
|
7
|
+
## [9.5.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.5.0)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.
|
9
|
+
Wed, 24 May 2023 20:42:44 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.4.0..@fluentui/react-shared-contexts_v9.5.0)
|
11
|
+
|
12
|
+
### Minor changes
|
13
|
+
|
14
|
+
- feat: add style overrides for drawer components ([PR #27582](https://github.com/microsoft/fluentui/pull/27582) by marcosvmmoura@gmail.com)
|
15
|
+
|
16
|
+
## [9.4.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.4.0)
|
17
|
+
|
18
|
+
Fri, 12 May 2023 20:27:41 GMT
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.3.2..@fluentui/react-shared-contexts_v9.4.0)
|
20
|
+
|
21
|
+
### Minor changes
|
22
|
+
|
23
|
+
- feat: add style overrides for drawer components ([PR #27581](https://github.com/microsoft/fluentui/pull/27581) by marcosvmmoura@gmail.com)
|
24
|
+
- Updated to provide single hook for noop tree-shaking ([PR #27491](https://github.com/microsoft/fluentui/pull/27491) by gcox@microsoft.com)
|
25
|
+
- Bump @fluentui/react-theme to v9.1.8 ([PR #27827](https://github.com/microsoft/fluentui/pull/27827) by beachball)
|
11
26
|
|
12
27
|
### Patches
|
13
28
|
|
14
|
-
-
|
29
|
+
- chore: exclude .swcrc from being published ([PR #27740](https://github.com/microsoft/fluentui/pull/27740) by olfedias@microsoft.com)
|
15
30
|
|
16
31
|
## [9.3.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.3.2)
|
17
32
|
|
package/dist/index.d.ts
CHANGED
@@ -6,9 +6,98 @@ declare type CustomStyleHook = (state: unknown) => void;
|
|
6
6
|
/**
|
7
7
|
* @internal
|
8
8
|
*/
|
9
|
-
export declare const CustomStyleHooksContext_unstable: React_2.Context<
|
9
|
+
export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
|
10
|
+
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
11
|
+
useAccordionItemStyles_unstable: CustomStyleHook;
|
12
|
+
useAccordionPanelStyles_unstable: CustomStyleHook;
|
13
|
+
useAccordionStyles_unstable: CustomStyleHook;
|
14
|
+
useAvatarStyles_unstable: CustomStyleHook;
|
15
|
+
useAvatarGroupStyles_unstable: CustomStyleHook;
|
16
|
+
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
17
|
+
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
18
|
+
useBadgeStyles_unstable: CustomStyleHook;
|
19
|
+
useCounterBadgeStyles_unstable: CustomStyleHook;
|
20
|
+
useCardHeaderStyles_unstable: CustomStyleHook;
|
21
|
+
useCardStyles_unstable: CustomStyleHook;
|
22
|
+
useCardFooterStyles_unstable: CustomStyleHook;
|
23
|
+
useCardPreviewStyles_unstable: CustomStyleHook;
|
24
|
+
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
25
|
+
useButtonStyles_unstable: CustomStyleHook;
|
26
|
+
useCompoundButtonStyles_unstable: CustomStyleHook;
|
27
|
+
useMenuButtonStyles_unstable: CustomStyleHook;
|
28
|
+
useSplitButtonStyles_unstable: CustomStyleHook;
|
29
|
+
useToggleButtonStyles_unstable: CustomStyleHook;
|
30
|
+
useCheckboxStyles_unstable: CustomStyleHook;
|
31
|
+
useComboboxStyles_unstable: CustomStyleHook;
|
32
|
+
useDropdownStyles_unstable: CustomStyleHook;
|
33
|
+
useListboxStyles_unstable: CustomStyleHook;
|
34
|
+
useOptionStyles_unstable: CustomStyleHook;
|
35
|
+
useOptionGroupStyles_unstable: CustomStyleHook;
|
36
|
+
useDividerStyles_unstable: CustomStyleHook;
|
37
|
+
useInputStyles_unstable: CustomStyleHook;
|
38
|
+
useImageStyles_unstable: CustomStyleHook;
|
39
|
+
useLabelStyles_unstable: CustomStyleHook;
|
40
|
+
useLinkStyles_unstable: CustomStyleHook;
|
41
|
+
useMenuDividerStyles_unstable: CustomStyleHook;
|
42
|
+
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
43
|
+
useMenuGroupStyles_unstable: CustomStyleHook;
|
44
|
+
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
45
|
+
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
46
|
+
useMenuItemStyles_unstable: CustomStyleHook;
|
47
|
+
useMenuListStyles_unstable: CustomStyleHook;
|
48
|
+
useMenuPopoverStyles_unstable: CustomStyleHook;
|
49
|
+
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
50
|
+
usePersonaStyles_unstable: CustomStyleHook;
|
51
|
+
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
52
|
+
useRadioGroupStyles_unstable: CustomStyleHook;
|
53
|
+
useRadioStyles_unstable: CustomStyleHook;
|
54
|
+
useSelectStyles_unstable: CustomStyleHook;
|
55
|
+
useSliderStyles_unstable: CustomStyleHook;
|
56
|
+
useSpinButtonStyles_unstable: CustomStyleHook;
|
57
|
+
useSpinnerStyles_unstable: CustomStyleHook;
|
58
|
+
useSwitchStyles_unstable: CustomStyleHook;
|
59
|
+
useTabStyles_unstable: CustomStyleHook;
|
60
|
+
useTabListStyles_unstable: CustomStyleHook;
|
61
|
+
useTextStyles_unstable: CustomStyleHook;
|
62
|
+
useTextareaStyles_unstable: CustomStyleHook;
|
63
|
+
useTooltipStyles_unstable: CustomStyleHook;
|
64
|
+
useDialogTitleStyles_unstable: CustomStyleHook;
|
65
|
+
useDialogBodyStyles_unstable: CustomStyleHook;
|
66
|
+
useDialogActionsStyles_unstable: CustomStyleHook;
|
67
|
+
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
68
|
+
useDialogContentStyles_unstable: CustomStyleHook;
|
69
|
+
useProgressBarStyles_unstable: CustomStyleHook;
|
70
|
+
useToolbarButtonStyles_unstable: CustomStyleHook;
|
71
|
+
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
72
|
+
useToolbarGroupStyles_unstable: CustomStyleHook;
|
73
|
+
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
74
|
+
useToolbarDividerStyles_unstable: CustomStyleHook;
|
75
|
+
useToolbarStyles_unstable: CustomStyleHook;
|
76
|
+
useTableCellStyles_unstable: CustomStyleHook;
|
77
|
+
useTableRowStyles_unstable: CustomStyleHook;
|
78
|
+
useTableBodyStyles_unstable: CustomStyleHook;
|
79
|
+
useTableStyles_unstable: CustomStyleHook;
|
80
|
+
useTableHeaderStyles_unstable: CustomStyleHook;
|
81
|
+
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
82
|
+
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
83
|
+
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
84
|
+
useTableCellActionsStyles_unstable: CustomStyleHook;
|
85
|
+
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
86
|
+
useDataGridCellStyles_unstable: CustomStyleHook;
|
87
|
+
useDataGridRowStyles_unstable: CustomStyleHook;
|
88
|
+
useDataGridBodyStyles_unstable: CustomStyleHook;
|
89
|
+
useDataGridStyles_unstable: CustomStyleHook;
|
90
|
+
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
91
|
+
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
92
|
+
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
93
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
94
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
95
|
+
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
96
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
97
|
+
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
98
|
+
}> | undefined>;
|
10
99
|
|
11
|
-
export declare type CustomStyleHooksContextValue_unstable = {
|
100
|
+
export declare type CustomStyleHooksContextValue_unstable = Partial<{
|
12
101
|
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
13
102
|
useAccordionItemStyles_unstable: CustomStyleHook;
|
14
103
|
useAccordionPanelStyles_unstable: CustomStyleHook;
|
@@ -92,12 +181,106 @@ export declare type CustomStyleHooksContextValue_unstable = {
|
|
92
181
|
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
93
182
|
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
94
183
|
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
95
|
-
|
184
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
185
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
186
|
+
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
187
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
188
|
+
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
189
|
+
}>;
|
96
190
|
|
97
191
|
/**
|
98
192
|
* @internal
|
99
193
|
*/
|
100
|
-
export declare const CustomStyleHooksProvider_unstable: React_2.Provider<
|
194
|
+
export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial<{
|
195
|
+
useAccordionHeaderStyles_unstable: CustomStyleHook;
|
196
|
+
useAccordionItemStyles_unstable: CustomStyleHook;
|
197
|
+
useAccordionPanelStyles_unstable: CustomStyleHook;
|
198
|
+
useAccordionStyles_unstable: CustomStyleHook;
|
199
|
+
useAvatarStyles_unstable: CustomStyleHook;
|
200
|
+
useAvatarGroupStyles_unstable: CustomStyleHook;
|
201
|
+
useAvatarGroupItemStyles_unstable: CustomStyleHook;
|
202
|
+
useAvatarGroupPopoverStyles_unstable: CustomStyleHook;
|
203
|
+
useBadgeStyles_unstable: CustomStyleHook;
|
204
|
+
useCounterBadgeStyles_unstable: CustomStyleHook;
|
205
|
+
useCardHeaderStyles_unstable: CustomStyleHook;
|
206
|
+
useCardStyles_unstable: CustomStyleHook;
|
207
|
+
useCardFooterStyles_unstable: CustomStyleHook;
|
208
|
+
useCardPreviewStyles_unstable: CustomStyleHook;
|
209
|
+
usePresenceBadgeStyles_unstable: CustomStyleHook;
|
210
|
+
useButtonStyles_unstable: CustomStyleHook;
|
211
|
+
useCompoundButtonStyles_unstable: CustomStyleHook;
|
212
|
+
useMenuButtonStyles_unstable: CustomStyleHook;
|
213
|
+
useSplitButtonStyles_unstable: CustomStyleHook;
|
214
|
+
useToggleButtonStyles_unstable: CustomStyleHook;
|
215
|
+
useCheckboxStyles_unstable: CustomStyleHook;
|
216
|
+
useComboboxStyles_unstable: CustomStyleHook;
|
217
|
+
useDropdownStyles_unstable: CustomStyleHook;
|
218
|
+
useListboxStyles_unstable: CustomStyleHook;
|
219
|
+
useOptionStyles_unstable: CustomStyleHook;
|
220
|
+
useOptionGroupStyles_unstable: CustomStyleHook;
|
221
|
+
useDividerStyles_unstable: CustomStyleHook;
|
222
|
+
useInputStyles_unstable: CustomStyleHook;
|
223
|
+
useImageStyles_unstable: CustomStyleHook;
|
224
|
+
useLabelStyles_unstable: CustomStyleHook;
|
225
|
+
useLinkStyles_unstable: CustomStyleHook;
|
226
|
+
useMenuDividerStyles_unstable: CustomStyleHook;
|
227
|
+
useMenuGroupHeaderStyles_unstable: CustomStyleHook;
|
228
|
+
useMenuGroupStyles_unstable: CustomStyleHook;
|
229
|
+
useMenuItemCheckboxStyles_unstable: CustomStyleHook;
|
230
|
+
useMenuItemRadioStyles_unstable: CustomStyleHook;
|
231
|
+
useMenuItemStyles_unstable: CustomStyleHook;
|
232
|
+
useMenuListStyles_unstable: CustomStyleHook;
|
233
|
+
useMenuPopoverStyles_unstable: CustomStyleHook;
|
234
|
+
useMenuSplitGroupStyles_unstable: CustomStyleHook;
|
235
|
+
usePersonaStyles_unstable: CustomStyleHook;
|
236
|
+
usePopoverSurfaceStyles_unstable: CustomStyleHook;
|
237
|
+
useRadioGroupStyles_unstable: CustomStyleHook;
|
238
|
+
useRadioStyles_unstable: CustomStyleHook;
|
239
|
+
useSelectStyles_unstable: CustomStyleHook;
|
240
|
+
useSliderStyles_unstable: CustomStyleHook;
|
241
|
+
useSpinButtonStyles_unstable: CustomStyleHook;
|
242
|
+
useSpinnerStyles_unstable: CustomStyleHook;
|
243
|
+
useSwitchStyles_unstable: CustomStyleHook;
|
244
|
+
useTabStyles_unstable: CustomStyleHook;
|
245
|
+
useTabListStyles_unstable: CustomStyleHook;
|
246
|
+
useTextStyles_unstable: CustomStyleHook;
|
247
|
+
useTextareaStyles_unstable: CustomStyleHook;
|
248
|
+
useTooltipStyles_unstable: CustomStyleHook;
|
249
|
+
useDialogTitleStyles_unstable: CustomStyleHook;
|
250
|
+
useDialogBodyStyles_unstable: CustomStyleHook;
|
251
|
+
useDialogActionsStyles_unstable: CustomStyleHook;
|
252
|
+
useDialogSurfaceStyles_unstable: CustomStyleHook;
|
253
|
+
useDialogContentStyles_unstable: CustomStyleHook;
|
254
|
+
useProgressBarStyles_unstable: CustomStyleHook;
|
255
|
+
useToolbarButtonStyles_unstable: CustomStyleHook;
|
256
|
+
useToolbarRadioButtonStyles_unstable: CustomStyleHook;
|
257
|
+
useToolbarGroupStyles_unstable: CustomStyleHook;
|
258
|
+
useToolbarToggleButtonStyles_unstable: CustomStyleHook;
|
259
|
+
useToolbarDividerStyles_unstable: CustomStyleHook;
|
260
|
+
useToolbarStyles_unstable: CustomStyleHook;
|
261
|
+
useTableCellStyles_unstable: CustomStyleHook;
|
262
|
+
useTableRowStyles_unstable: CustomStyleHook;
|
263
|
+
useTableBodyStyles_unstable: CustomStyleHook;
|
264
|
+
useTableStyles_unstable: CustomStyleHook;
|
265
|
+
useTableHeaderStyles_unstable: CustomStyleHook;
|
266
|
+
useTableHeaderCellStyles_unstable: CustomStyleHook;
|
267
|
+
useTableResizeHandleStyles_unstable: CustomStyleHook;
|
268
|
+
useTableSelectionCellStyles_unstable: CustomStyleHook;
|
269
|
+
useTableCellActionsStyles_unstable: CustomStyleHook;
|
270
|
+
useTableCellLayoutStyles_unstable: CustomStyleHook;
|
271
|
+
useDataGridCellStyles_unstable: CustomStyleHook;
|
272
|
+
useDataGridRowStyles_unstable: CustomStyleHook;
|
273
|
+
useDataGridBodyStyles_unstable: CustomStyleHook;
|
274
|
+
useDataGridStyles_unstable: CustomStyleHook;
|
275
|
+
useDataGridHeaderStyles_unstable: CustomStyleHook;
|
276
|
+
useDataGridHeaderCellStyles_unstable: CustomStyleHook;
|
277
|
+
useDataGridSelectionCellStyles_unstable: CustomStyleHook;
|
278
|
+
useDrawerStyles_unstable: CustomStyleHook;
|
279
|
+
useDrawerBodyStyles_unstable: CustomStyleHook;
|
280
|
+
useDrawerHeaderStyles_unstable: CustomStyleHook;
|
281
|
+
useDrawerHeaderTitleStyles_unstable: CustomStyleHook;
|
282
|
+
useDrawerHeaderNavigationStyles_unstable: CustomStyleHook;
|
283
|
+
}> | undefined>;
|
101
284
|
|
102
285
|
/**
|
103
286
|
* @internal
|
@@ -157,7 +340,12 @@ export declare type TooltipVisibilityContextValue_unstable = {
|
|
157
340
|
*/
|
158
341
|
export declare const TooltipVisibilityProvider_unstable: React_2.Provider<TooltipVisibilityContextValue_unstable>;
|
159
342
|
|
160
|
-
|
343
|
+
/**
|
344
|
+
* Gets a custom style hook
|
345
|
+
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
346
|
+
* @returns The corresponding hook when defined, otherwise a no-op function.
|
347
|
+
*/
|
348
|
+
export declare const useCustomStyleHook_unstable: (hook: keyof CustomStyleHooksContextValue_unstable) => CustomStyleHook;
|
161
349
|
|
162
350
|
export declare function useFluent_unstable(): ProviderContextValue_unstable;
|
163
351
|
|
@@ -4,97 +4,18 @@
|
|
4
4
|
*/
|
5
5
|
export const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);
|
6
6
|
const noop = () => {};
|
7
|
-
const customStyleHooksContextDefaultValue = {
|
8
|
-
useAccordionHeaderStyles_unstable: noop,
|
9
|
-
useAccordionItemStyles_unstable: noop,
|
10
|
-
useAccordionPanelStyles_unstable: noop,
|
11
|
-
useAccordionStyles_unstable: noop,
|
12
|
-
useAvatarStyles_unstable: noop,
|
13
|
-
useAvatarGroupStyles_unstable: noop,
|
14
|
-
useAvatarGroupItemStyles_unstable: noop,
|
15
|
-
useAvatarGroupPopoverStyles_unstable: noop,
|
16
|
-
useBadgeStyles_unstable: noop,
|
17
|
-
useCounterBadgeStyles_unstable: noop,
|
18
|
-
useCardHeaderStyles_unstable: noop,
|
19
|
-
useCardStyles_unstable: noop,
|
20
|
-
useCardFooterStyles_unstable: noop,
|
21
|
-
useCardPreviewStyles_unstable: noop,
|
22
|
-
usePresenceBadgeStyles_unstable: noop,
|
23
|
-
useButtonStyles_unstable: noop,
|
24
|
-
useCompoundButtonStyles_unstable: noop,
|
25
|
-
useMenuButtonStyles_unstable: noop,
|
26
|
-
useSplitButtonStyles_unstable: noop,
|
27
|
-
useToggleButtonStyles_unstable: noop,
|
28
|
-
useCheckboxStyles_unstable: noop,
|
29
|
-
useComboboxStyles_unstable: noop,
|
30
|
-
useDropdownStyles_unstable: noop,
|
31
|
-
useListboxStyles_unstable: noop,
|
32
|
-
useOptionStyles_unstable: noop,
|
33
|
-
useOptionGroupStyles_unstable: noop,
|
34
|
-
useDividerStyles_unstable: noop,
|
35
|
-
useInputStyles_unstable: noop,
|
36
|
-
useImageStyles_unstable: noop,
|
37
|
-
useLabelStyles_unstable: noop,
|
38
|
-
useLinkStyles_unstable: noop,
|
39
|
-
useMenuDividerStyles_unstable: noop,
|
40
|
-
useMenuGroupHeaderStyles_unstable: noop,
|
41
|
-
useMenuGroupStyles_unstable: noop,
|
42
|
-
useMenuItemCheckboxStyles_unstable: noop,
|
43
|
-
useMenuItemRadioStyles_unstable: noop,
|
44
|
-
useMenuItemStyles_unstable: noop,
|
45
|
-
useMenuListStyles_unstable: noop,
|
46
|
-
useMenuPopoverStyles_unstable: noop,
|
47
|
-
useMenuSplitGroupStyles_unstable: noop,
|
48
|
-
usePersonaStyles_unstable: noop,
|
49
|
-
usePopoverSurfaceStyles_unstable: noop,
|
50
|
-
useRadioGroupStyles_unstable: noop,
|
51
|
-
useRadioStyles_unstable: noop,
|
52
|
-
useSelectStyles_unstable: noop,
|
53
|
-
useSliderStyles_unstable: noop,
|
54
|
-
useSpinButtonStyles_unstable: noop,
|
55
|
-
useSpinnerStyles_unstable: noop,
|
56
|
-
useSwitchStyles_unstable: noop,
|
57
|
-
useTabStyles_unstable: noop,
|
58
|
-
useTabListStyles_unstable: noop,
|
59
|
-
useTextStyles_unstable: noop,
|
60
|
-
useTextareaStyles_unstable: noop,
|
61
|
-
useTooltipStyles_unstable: noop,
|
62
|
-
useDialogTitleStyles_unstable: noop,
|
63
|
-
useDialogBodyStyles_unstable: noop,
|
64
|
-
useDialogActionsStyles_unstable: noop,
|
65
|
-
useDialogSurfaceStyles_unstable: noop,
|
66
|
-
useDialogContentStyles_unstable: noop,
|
67
|
-
useProgressBarStyles_unstable: noop,
|
68
|
-
useToolbarButtonStyles_unstable: noop,
|
69
|
-
useToolbarRadioButtonStyles_unstable: noop,
|
70
|
-
useToolbarGroupStyles_unstable: noop,
|
71
|
-
useToolbarToggleButtonStyles_unstable: noop,
|
72
|
-
useToolbarDividerStyles_unstable: noop,
|
73
|
-
useToolbarStyles_unstable: noop,
|
74
|
-
useTableCellStyles_unstable: noop,
|
75
|
-
useTableRowStyles_unstable: noop,
|
76
|
-
useTableBodyStyles_unstable: noop,
|
77
|
-
useTableStyles_unstable: noop,
|
78
|
-
useTableHeaderStyles_unstable: noop,
|
79
|
-
useTableHeaderCellStyles_unstable: noop,
|
80
|
-
useTableResizeHandleStyles_unstable: noop,
|
81
|
-
useTableSelectionCellStyles_unstable: noop,
|
82
|
-
useTableCellActionsStyles_unstable: noop,
|
83
|
-
useTableCellLayoutStyles_unstable: noop,
|
84
|
-
useDataGridCellStyles_unstable: noop,
|
85
|
-
useDataGridRowStyles_unstable: noop,
|
86
|
-
useDataGridBodyStyles_unstable: noop,
|
87
|
-
useDataGridStyles_unstable: noop,
|
88
|
-
useDataGridHeaderStyles_unstable: noop,
|
89
|
-
useDataGridHeaderCellStyles_unstable: noop,
|
90
|
-
useDataGridSelectionCellStyles_unstable: noop
|
91
|
-
};
|
92
7
|
/**
|
93
8
|
* @internal
|
94
9
|
*/
|
95
10
|
export const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
96
|
-
|
11
|
+
/**
|
12
|
+
* Gets a custom style hook
|
13
|
+
* @param hook - One of the hook properties in CustomStyleHooksContextValue
|
14
|
+
* @returns The corresponding hook when defined, otherwise a no-op function.
|
15
|
+
*/
|
16
|
+
export const useCustomStyleHook = hook => {
|
97
17
|
var _React_useContext;
|
98
|
-
|
99
|
-
|
18
|
+
var _React_useContext_hook;
|
19
|
+
return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
|
20
|
+
};
|
100
21
|
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","CustomStyleHooksContext","createContext","undefined","noop","customStyleHooksContextDefaultValue","useAccordionHeaderStyles_unstable","useAccordionItemStyles_unstable","useAccordionPanelStyles_unstable","useAccordionStyles_unstable","useAvatarStyles_unstable","useAvatarGroupStyles_unstable","useAvatarGroupItemStyles_unstable","useAvatarGroupPopoverStyles_unstable","useBadgeStyles_unstable","useCounterBadgeStyles_unstable","useCardHeaderStyles_unstable","useCardStyles_unstable","useCardFooterStyles_unstable","useCardPreviewStyles_unstable","usePresenceBadgeStyles_unstable","useButtonStyles_unstable","useCompoundButtonStyles_unstable","useMenuButtonStyles_unstable","useSplitButtonStyles_unstable","useToggleButtonStyles_unstable","useCheckboxStyles_unstable","useComboboxStyles_unstable","useDropdownStyles_unstable","useListboxStyles_unstable","useOptionStyles_unstable","useOptionGroupStyles_unstable","useDividerStyles_unstable","useInputStyles_unstable","useImageStyles_unstable","useLabelStyles_unstable","useLinkStyles_unstable","useMenuDividerStyles_unstable","useMenuGroupHeaderStyles_unstable","useMenuGroupStyles_unstable","useMenuItemCheckboxStyles_unstable","useMenuItemRadioStyles_unstable","useMenuItemStyles_unstable","useMenuListStyles_unstable","useMenuPopoverStyles_unstable","useMenuSplitGroupStyles_unstable","usePersonaStyles_unstable","usePopoverSurfaceStyles_unstable","useRadioGroupStyles_unstable","useRadioStyles_unstable","useSelectStyles_unstable","useSliderStyles_unstable","useSpinButtonStyles_unstable","useSpinnerStyles_unstable","useSwitchStyles_unstable","useTabStyles_unstable","useTabListStyles_unstable","useTextStyles_unstable","useTextareaStyles_unstable","useTooltipStyles_unstable","useDialogTitleStyles_unstable","useDialogBodyStyles_unstable","useDialogActionsStyles_unstable","useDialogSurfaceStyles_unstable","useDialogContentStyles_unstable","useProgressBarStyles_unstable","useToolbarButtonStyles_unstable","useToolbarRadioButtonStyles_unstable","useToolbarGroupStyles_unstable","useToolbarToggleButtonStyles_unstable","useToolbarDividerStyles_unstable","useToolbarStyles_unstable","useTableCellStyles_unstable","useTableRowStyles_unstable","useTableBodyStyles_unstable","useTableStyles_unstable","useTableHeaderStyles_unstable","useTableHeaderCellStyles_unstable","useTableResizeHandleStyles_unstable","useTableSelectionCellStyles_unstable","useTableCellActionsStyles_unstable","useTableCellLayoutStyles_unstable","useDataGridCellStyles_unstable","useDataGridRowStyles_unstable","useDataGridBodyStyles_unstable","useDataGridStyles_unstable","useDataGridHeaderStyles_unstable","useDataGridHeaderCellStyles_unstable","useDataGridSelectionCellStyles_unstable","CustomStyleHooksProvider","Provider","useCustomStyleHooks","_React_useContext","useContext"],"sources":["../../src/CustomStyleHooksContext/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 = {\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};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = React.createContext<CustomStyleHooksContextValue | undefined>(undefined);\n\nconst noop = () => {};\nconst customStyleHooksContextDefaultValue: CustomStyleHooksContextValue = {\n useAccordionHeaderStyles_unstable: noop,\n useAccordionItemStyles_unstable: noop,\n useAccordionPanelStyles_unstable: noop,\n useAccordionStyles_unstable: noop,\n useAvatarStyles_unstable: noop,\n useAvatarGroupStyles_unstable: noop,\n useAvatarGroupItemStyles_unstable: noop,\n useAvatarGroupPopoverStyles_unstable: noop,\n useBadgeStyles_unstable: noop,\n useCounterBadgeStyles_unstable: noop,\n useCardHeaderStyles_unstable: noop,\n useCardStyles_unstable: noop,\n useCardFooterStyles_unstable: noop,\n useCardPreviewStyles_unstable: noop,\n usePresenceBadgeStyles_unstable: noop,\n useButtonStyles_unstable: noop,\n useCompoundButtonStyles_unstable: noop,\n useMenuButtonStyles_unstable: noop,\n useSplitButtonStyles_unstable: noop,\n useToggleButtonStyles_unstable: noop,\n useCheckboxStyles_unstable: noop,\n useComboboxStyles_unstable: noop,\n useDropdownStyles_unstable: noop,\n useListboxStyles_unstable: noop,\n useOptionStyles_unstable: noop,\n useOptionGroupStyles_unstable: noop,\n useDividerStyles_unstable: noop,\n useInputStyles_unstable: noop,\n useImageStyles_unstable: noop,\n useLabelStyles_unstable: noop,\n useLinkStyles_unstable: noop,\n useMenuDividerStyles_unstable: noop,\n useMenuGroupHeaderStyles_unstable: noop,\n useMenuGroupStyles_unstable: noop,\n useMenuItemCheckboxStyles_unstable: noop,\n useMenuItemRadioStyles_unstable: noop,\n useMenuItemStyles_unstable: noop,\n useMenuListStyles_unstable: noop,\n useMenuPopoverStyles_unstable: noop,\n useMenuSplitGroupStyles_unstable: noop,\n usePersonaStyles_unstable: noop,\n usePopoverSurfaceStyles_unstable: noop,\n useRadioGroupStyles_unstable: noop,\n useRadioStyles_unstable: noop,\n useSelectStyles_unstable: noop,\n useSliderStyles_unstable: noop,\n useSpinButtonStyles_unstable: noop,\n useSpinnerStyles_unstable: noop,\n useSwitchStyles_unstable: noop,\n useTabStyles_unstable: noop,\n useTabListStyles_unstable: noop,\n useTextStyles_unstable: noop,\n useTextareaStyles_unstable: noop,\n useTooltipStyles_unstable: noop,\n useDialogTitleStyles_unstable: noop,\n useDialogBodyStyles_unstable: noop,\n useDialogActionsStyles_unstable: noop,\n useDialogSurfaceStyles_unstable: noop,\n useDialogContentStyles_unstable: noop,\n useProgressBarStyles_unstable: noop,\n useToolbarButtonStyles_unstable: noop,\n useToolbarRadioButtonStyles_unstable: noop,\n useToolbarGroupStyles_unstable: noop,\n useToolbarToggleButtonStyles_unstable: noop,\n useToolbarDividerStyles_unstable: noop,\n useToolbarStyles_unstable: noop,\n useTableCellStyles_unstable: noop,\n useTableRowStyles_unstable: noop,\n useTableBodyStyles_unstable: noop,\n useTableStyles_unstable: noop,\n useTableHeaderStyles_unstable: noop,\n useTableHeaderCellStyles_unstable: noop,\n useTableResizeHandleStyles_unstable: noop,\n useTableSelectionCellStyles_unstable: noop,\n useTableCellActionsStyles_unstable: noop,\n useTableCellLayoutStyles_unstable: noop,\n useDataGridCellStyles_unstable: noop,\n useDataGridRowStyles_unstable: noop,\n useDataGridBodyStyles_unstable: noop,\n useDataGridStyles_unstable: noop,\n useDataGridHeaderStyles_unstable: noop,\n useDataGridHeaderCellStyles_unstable: noop,\n useDataGridSelectionCellStyles_unstable: noop,\n};\n\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\n\nexport function useCustomStyleHooks(): CustomStyleHooksContextValue {\n return React.useContext(CustomStyleHooksContext) ?? customStyleHooksContextDefaultValue;\n}\n"],"mappings":"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"}
|
1
|
+
{"version":3,"names":["React","CustomStyleHooksContext","createContext","undefined","noop","CustomStyleHooksProvider","Provider","useCustomStyleHook","hook","_React_useContext","_React_useContext_hook","useContext"],"sources":["../../src/CustomStyleHooksContext/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 useDrawerBodyStyles_unstable: CustomStyleHook;\n useDrawerHeaderStyles_unstable: CustomStyleHook;\n useDrawerHeaderTitleStyles_unstable: CustomStyleHook;\n useDrawerHeaderNavigationStyles_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"],"mappings":"AAAA,oBAEA,YAAYA,KAAA,MAAW;AAgGvB;;;AAGA,OAAO,MAAMC,uBAAA,gBAA0BD,KAAA,CAAME,aAAa,CAA2CC,SAAA;AAErG,MAAMC,IAAA,GAAOA,CAAA,KAAM,CAAC;AAEpB;;;AAGA,OAAO,MAAMC,wBAAA,GAA2BJ,uBAAA,CAAwBK,QAAQ;AAExE;;;;;AAKA,OAAO,MAAMC,kBAAA,GAAsBC,IAAA,IAA8D;MACxFC,iBAAA;MAAAC,sBAAA;EAAP,OAAO,CAAAA,sBAAA,IAAAD,iBAAA,GAAAT,KAAA,CAAMW,UAAU,CAACV,uBAAA,eAAjBQ,iBAAA,uBAAAA,iBAA2C,CAACD,IAAA,CAAK,cAAjDE,sBAAA,cAAAA,sBAAA,GAAqDN,IAAI;AAClE"}
|
package/lib/index.js
CHANGED
@@ -3,5 +3,5 @@ export { ThemeClassNameProvider as ThemeClassNameProvider_unstable, useThemeClas
|
|
3
3
|
export { TooltipVisibilityProvider as TooltipVisibilityProvider_unstable, useTooltipVisibility as useTooltipVisibility_unstable } from './TooltipVisibilityContext';
|
4
4
|
export { Provider as Provider_unstable, useFluent as useFluent_unstable } from './ProviderContext';
|
5
5
|
export { OverridesProvider as OverridesProvider_unstable, useOverrides as useOverrides_unstable } from './OverridesContext';
|
6
|
-
export { CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,
|
6
|
+
export { CustomStyleHooksContext as CustomStyleHooksContext_unstable, CustomStyleHooksProvider as CustomStyleHooksProvider_unstable, useCustomStyleHook as useCustomStyleHook_unstable } from './CustomStyleHooksContext';
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"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","OverridesProvider","OverridesProvider_unstable","useOverrides","useOverrides_unstable","CustomStyleHooksProvider","CustomStyleHooksProvider_unstable","
|
1
|
+
{"version":3,"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","OverridesProvider","OverridesProvider_unstable","useOverrides","useOverrides_unstable","CustomStyleHooksContext","CustomStyleHooksContext_unstable","CustomStyleHooksProvider","CustomStyleHooksProvider_unstable","useCustomStyleHook","useCustomStyleHook_unstable"],"sources":["../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\nexport {\n OverridesProvider as OverridesProvider_unstable,\n useOverrides as useOverrides_unstable,\n} from './OverridesContext';\nexport type { OverridesContextValue as OverridesContextValue_unstable } from './OverridesContext';\n\nexport {\n CustomStyleHooksContext as CustomStyleHooksContext_unstable,\n CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,\n useCustomStyleHook as useCustomStyleHook_unstable,\n} from './CustomStyleHooksContext';\nexport type { CustomStyleHooksContextValue as CustomStyleHooksContextValue_unstable } from './CustomStyleHooksContext';\n"],"mappings":"AAAA,SAASA,YAAA,IAAgBC,qBAAqB,EAAEC,aAAA,IAAiBC,sBAAsB,QAAQ;AAG/F,SACEC,sBAAA,IAA0BC,+BAA+B,EACzDC,iBAAA,IAAqBC,0BAA0B,QAC1C;AAGP,SACEC,yBAAA,IAA6BC,kCAAkC,EAC/DC,oBAAA,IAAwBC,6BAA6B,QAChD;AAGP,SAASC,QAAA,IAAYC,iBAAiB,EAAEC,SAAA,IAAaC,kBAAkB,QAAQ;AAG/E,SACEC,iBAAA,IAAqBC,0BAA0B,EAC/CC,YAAA,IAAgBC,qBAAqB,QAChC;AAGP,SACEC,uBAAA,IAA2BC,gCAAgC,EAC3DC,wBAAA,IAA4BC,iCAAiC,EAC7DC,kBAAA,IAAsBC,2BAA2B,QAC5C"}
|
@@ -11,101 +11,17 @@ function _export(target, all) {
|
|
11
11
|
_export(exports, {
|
12
12
|
CustomStyleHooksContext: ()=>CustomStyleHooksContext,
|
13
13
|
CustomStyleHooksProvider: ()=>CustomStyleHooksProvider,
|
14
|
-
|
14
|
+
useCustomStyleHook: ()=>useCustomStyleHook
|
15
15
|
});
|
16
16
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
17
17
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
18
18
|
const CustomStyleHooksContext = /*#__PURE__*/ _react.createContext(undefined);
|
19
19
|
const noop = ()=>{};
|
20
|
-
const customStyleHooksContextDefaultValue = {
|
21
|
-
useAccordionHeaderStyles_unstable: noop,
|
22
|
-
useAccordionItemStyles_unstable: noop,
|
23
|
-
useAccordionPanelStyles_unstable: noop,
|
24
|
-
useAccordionStyles_unstable: noop,
|
25
|
-
useAvatarStyles_unstable: noop,
|
26
|
-
useAvatarGroupStyles_unstable: noop,
|
27
|
-
useAvatarGroupItemStyles_unstable: noop,
|
28
|
-
useAvatarGroupPopoverStyles_unstable: noop,
|
29
|
-
useBadgeStyles_unstable: noop,
|
30
|
-
useCounterBadgeStyles_unstable: noop,
|
31
|
-
useCardHeaderStyles_unstable: noop,
|
32
|
-
useCardStyles_unstable: noop,
|
33
|
-
useCardFooterStyles_unstable: noop,
|
34
|
-
useCardPreviewStyles_unstable: noop,
|
35
|
-
usePresenceBadgeStyles_unstable: noop,
|
36
|
-
useButtonStyles_unstable: noop,
|
37
|
-
useCompoundButtonStyles_unstable: noop,
|
38
|
-
useMenuButtonStyles_unstable: noop,
|
39
|
-
useSplitButtonStyles_unstable: noop,
|
40
|
-
useToggleButtonStyles_unstable: noop,
|
41
|
-
useCheckboxStyles_unstable: noop,
|
42
|
-
useComboboxStyles_unstable: noop,
|
43
|
-
useDropdownStyles_unstable: noop,
|
44
|
-
useListboxStyles_unstable: noop,
|
45
|
-
useOptionStyles_unstable: noop,
|
46
|
-
useOptionGroupStyles_unstable: noop,
|
47
|
-
useDividerStyles_unstable: noop,
|
48
|
-
useInputStyles_unstable: noop,
|
49
|
-
useImageStyles_unstable: noop,
|
50
|
-
useLabelStyles_unstable: noop,
|
51
|
-
useLinkStyles_unstable: noop,
|
52
|
-
useMenuDividerStyles_unstable: noop,
|
53
|
-
useMenuGroupHeaderStyles_unstable: noop,
|
54
|
-
useMenuGroupStyles_unstable: noop,
|
55
|
-
useMenuItemCheckboxStyles_unstable: noop,
|
56
|
-
useMenuItemRadioStyles_unstable: noop,
|
57
|
-
useMenuItemStyles_unstable: noop,
|
58
|
-
useMenuListStyles_unstable: noop,
|
59
|
-
useMenuPopoverStyles_unstable: noop,
|
60
|
-
useMenuSplitGroupStyles_unstable: noop,
|
61
|
-
usePersonaStyles_unstable: noop,
|
62
|
-
usePopoverSurfaceStyles_unstable: noop,
|
63
|
-
useRadioGroupStyles_unstable: noop,
|
64
|
-
useRadioStyles_unstable: noop,
|
65
|
-
useSelectStyles_unstable: noop,
|
66
|
-
useSliderStyles_unstable: noop,
|
67
|
-
useSpinButtonStyles_unstable: noop,
|
68
|
-
useSpinnerStyles_unstable: noop,
|
69
|
-
useSwitchStyles_unstable: noop,
|
70
|
-
useTabStyles_unstable: noop,
|
71
|
-
useTabListStyles_unstable: noop,
|
72
|
-
useTextStyles_unstable: noop,
|
73
|
-
useTextareaStyles_unstable: noop,
|
74
|
-
useTooltipStyles_unstable: noop,
|
75
|
-
useDialogTitleStyles_unstable: noop,
|
76
|
-
useDialogBodyStyles_unstable: noop,
|
77
|
-
useDialogActionsStyles_unstable: noop,
|
78
|
-
useDialogSurfaceStyles_unstable: noop,
|
79
|
-
useDialogContentStyles_unstable: noop,
|
80
|
-
useProgressBarStyles_unstable: noop,
|
81
|
-
useToolbarButtonStyles_unstable: noop,
|
82
|
-
useToolbarRadioButtonStyles_unstable: noop,
|
83
|
-
useToolbarGroupStyles_unstable: noop,
|
84
|
-
useToolbarToggleButtonStyles_unstable: noop,
|
85
|
-
useToolbarDividerStyles_unstable: noop,
|
86
|
-
useToolbarStyles_unstable: noop,
|
87
|
-
useTableCellStyles_unstable: noop,
|
88
|
-
useTableRowStyles_unstable: noop,
|
89
|
-
useTableBodyStyles_unstable: noop,
|
90
|
-
useTableStyles_unstable: noop,
|
91
|
-
useTableHeaderStyles_unstable: noop,
|
92
|
-
useTableHeaderCellStyles_unstable: noop,
|
93
|
-
useTableResizeHandleStyles_unstable: noop,
|
94
|
-
useTableSelectionCellStyles_unstable: noop,
|
95
|
-
useTableCellActionsStyles_unstable: noop,
|
96
|
-
useTableCellLayoutStyles_unstable: noop,
|
97
|
-
useDataGridCellStyles_unstable: noop,
|
98
|
-
useDataGridRowStyles_unstable: noop,
|
99
|
-
useDataGridBodyStyles_unstable: noop,
|
100
|
-
useDataGridStyles_unstable: noop,
|
101
|
-
useDataGridHeaderStyles_unstable: noop,
|
102
|
-
useDataGridHeaderCellStyles_unstable: noop,
|
103
|
-
useDataGridSelectionCellStyles_unstable: noop
|
104
|
-
};
|
105
20
|
const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;
|
106
|
-
|
21
|
+
const useCustomStyleHook = (hook)=>{
|
107
22
|
var _React_useContext;
|
108
|
-
|
109
|
-
|
23
|
+
var _React_useContext_hook;
|
24
|
+
return (_React_useContext_hook = (_React_useContext = _react.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;
|
25
|
+
}; //# sourceMappingURL=CustomStyleHooksContext.js.map
|
110
26
|
|
111
27
|
//# sourceMappingURL=CustomStyleHooksContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../lib/CustomStyleHooksContext/CustomStyleHooksContext.js"],"sourcesContent":["/* eslint-disable */import * as React from 'react';\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);\nconst noop = () => {};\
|
1
|
+
{"version":3,"sources":["../../lib/CustomStyleHooksContext/CustomStyleHooksContext.js"],"sourcesContent":["/* eslint-disable */import * as React from 'react';\n/**\n * @internal\n */\nexport const CustomStyleHooksContext = /*#__PURE__*/React.createContext(undefined);\nconst noop = () => {};\n/**\n * @internal\n */\nexport const CustomStyleHooksProvider = CustomStyleHooksContext.Provider;\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 => {\n var _React_useContext;\n var _React_useContext_hook;\n return (_React_useContext_hook = (_React_useContext = React.useContext(CustomStyleHooksContext)) === null || _React_useContext === void 0 ? void 0 : _React_useContext[hook]) !== null && _React_useContext_hook !== void 0 ? _React_useContext_hook : noop;\n};\n//# sourceMappingURL=CustomStyleHooksContext.js.map"],"names":["CustomStyleHooksContext","CustomStyleHooksProvider","useCustomStyleHook","React","createContext","undefined","noop","Provider","hook","_React_useContext","_React_useContext_hook","useContext"],"mappings":"AAAA,kBAAkB;;;;;;;;;;;IAILA,uBAAuB,MAAvBA;IAKAC,wBAAwB,MAAxBA;IAMAC,kBAAkB,MAAlBA;;;6DAf8B;AAIpC,MAAMF,0BAA0B,WAAW,GAAEG,OAAMC,aAAa,CAACC;AACxE,MAAMC,OAAO,IAAM,CAAC;AAIb,MAAML,2BAA2BD,wBAAwBO,QAAQ;AAMjE,MAAML,qBAAqBM,CAAAA,OAAQ;IACxC,IAAIC;IACJ,IAAIC;IACJ,OAAO,AAACA,CAAAA,yBAAyB,AAACD,CAAAA,oBAAoBN,OAAMQ,UAAU,CAACX,wBAAuB,MAAO,IAAI,IAAIS,sBAAsB,KAAK,IAAI,KAAK,IAAIA,iBAAiB,CAACD,KAAK,AAAD,MAAO,IAAI,IAAIE,2BAA2B,KAAK,IAAIA,yBAAyBJ,IAAI;AAC7P,GACA,mDAAmD"}
|
package/lib-commonjs/index.js
CHANGED
@@ -19,8 +19,9 @@ _export(exports, {
|
|
19
19
|
useFluent_unstable: ()=>_providerContext.useFluent,
|
20
20
|
OverridesProvider_unstable: ()=>_overridesContext.OverridesProvider,
|
21
21
|
useOverrides_unstable: ()=>_overridesContext.useOverrides,
|
22
|
+
CustomStyleHooksContext_unstable: ()=>_customStyleHooksContext.CustomStyleHooksContext,
|
22
23
|
CustomStyleHooksProvider_unstable: ()=>_customStyleHooksContext.CustomStyleHooksProvider,
|
23
|
-
|
24
|
+
useCustomStyleHook_unstable: ()=>_customStyleHooksContext.useCustomStyleHook
|
24
25
|
});
|
25
26
|
const _themeContext = require("./ThemeContext");
|
26
27
|
const _themeClassNameContext = require("./ThemeClassNameContext");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../lib/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 { CustomStyleHooksProvider as CustomStyleHooksProvider_unstable,
|
1
|
+
{"version":3,"sources":["../lib/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';\n//# sourceMappingURL=index.js.map"],"names":["ThemeContext_unstable","ThemeContext","ThemeProvider_unstable","ThemeProvider","ThemeClassNameProvider_unstable","ThemeClassNameProvider","useThemeClassName_unstable","useThemeClassName","TooltipVisibilityProvider_unstable","TooltipVisibilityProvider","useTooltipVisibility_unstable","useTooltipVisibility","Provider_unstable","Provider","useFluent_unstable","useFluent","OverridesProvider_unstable","OverridesProvider","useOverrides_unstable","useOverrides","CustomStyleHooksContext_unstable","CustomStyleHooksContext","CustomStyleHooksProvider_unstable","CustomStyleHooksProvider","useCustomStyleHook_unstable","useCustomStyleHook"],"mappings":";;;;;;;;;;;IAAyBA,qBAAqB,MAArCC,0BAAY;IAA4CC,sBAAsB,MAAvCC,2BAAa;IAC1BC,+BAA+B,MAAzDC,6CAAsB;IAA0DC,0BAA0B,MAA/CC,wCAAiB;IAC/CC,kCAAkC,MAA/DC,mDAAyB;IAAgEC,6BAA6B,MAArDC,8CAAoB;IACzEC,iBAAiB,MAA7BC,yBAAQ;IAAoCC,kBAAkB,MAA/BC,0BAAS;IACnBC,0BAA0B,MAA/CC,mCAAiB;IAAgDC,qBAAqB,MAArCC,8BAAY;IAClCC,gCAAgC,MAA3DC,gDAAuB;IAAkEC,iCAAiC,MAA7DC,iDAAwB;IAA6DC,2BAA2B,MAAjDC,2CAAkB;;8BALxD;uCAC4B;0CACY;iCACxD;kCACwB;yCACuF;CAC9L,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-shared-contexts",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.5.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",
|
@@ -19,7 +19,8 @@
|
|
19
19
|
"lint": "just-scripts lint",
|
20
20
|
"test": "jest --passWithNoTests",
|
21
21
|
"type-check": "tsc -b tsconfig.json",
|
22
|
-
"generate-api": "just-scripts generate-api"
|
22
|
+
"generate-api": "just-scripts generate-api",
|
23
|
+
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
|
23
24
|
},
|
24
25
|
"devDependencies": {
|
25
26
|
"@fluentui/eslint-plugin": "*",
|
@@ -27,7 +28,7 @@
|
|
27
28
|
"@fluentui/scripts-tasks": "*"
|
28
29
|
},
|
29
30
|
"dependencies": {
|
30
|
-
"@fluentui/react-theme": "^9.1.
|
31
|
+
"@fluentui/react-theme": "^9.1.8",
|
31
32
|
"@swc/helpers": "^0.4.14"
|
32
33
|
},
|
33
34
|
"peerDependencies": {
|
package/.swcrc
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://json.schemastore.org/swcrc",
|
3
|
-
"exclude": [
|
4
|
-
"/testing",
|
5
|
-
"/**/*.cy.ts",
|
6
|
-
"/**/*.cy.tsx",
|
7
|
-
"/**/*.spec.ts",
|
8
|
-
"/**/*.spec.tsx",
|
9
|
-
"/**/*.test.ts",
|
10
|
-
"/**/*.test.tsx"
|
11
|
-
],
|
12
|
-
"jsc": {
|
13
|
-
"parser": {
|
14
|
-
"syntax": "typescript",
|
15
|
-
"tsx": true,
|
16
|
-
"decorators": false,
|
17
|
-
"dynamicImport": false
|
18
|
-
},
|
19
|
-
"externalHelpers": true,
|
20
|
-
"transform": {
|
21
|
-
"react": {
|
22
|
-
"runtime": "classic",
|
23
|
-
"useSpread": true
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"target": "es2019"
|
27
|
-
},
|
28
|
-
"minify": false,
|
29
|
-
"sourceMaps": true
|
30
|
-
}
|