@fluentui/react-shared-contexts 9.13.0 → 9.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui/react-shared-contexts
2
2
 
3
- This log was last generated on Mon, 20 Nov 2023 09:51:21 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 18 Dec 2023 14:36:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.13.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.13.2)
8
+
9
+ Mon, 18 Dec 2023 14:36:11 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.13.1..@fluentui/react-shared-contexts_v9.13.2)
11
+
12
+ ### Patches
13
+
14
+ - fix: add custom style hook for TimePicker compat. ([PR #30058](https://github.com/microsoft/fluentui/pull/30058) by yuanboxue@microsoft.com)
15
+
16
+ ## [9.13.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.13.1)
17
+
18
+ Thu, 14 Dec 2023 09:58:45 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.13.0..@fluentui/react-shared-contexts_v9.13.1)
20
+
21
+ ### Patches
22
+
23
+ - chore: disallow `window` and `document` access ([PR #29962](https://github.com/microsoft/fluentui/pull/29962) by seanmonahan@microsoft.com)
24
+
7
25
  ## [9.13.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-shared-contexts_v9.13.0)
8
26
 
9
- Mon, 20 Nov 2023 09:51:21 GMT
27
+ Mon, 20 Nov 2023 09:55:09 GMT
10
28
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-shared-contexts_v9.12.0..@fluentui/react-shared-contexts_v9.13.0)
11
29
 
12
30
  ### Minor changes
package/dist/index.d.ts CHANGED
@@ -158,6 +158,7 @@ export declare const CustomStyleHooksContext_unstable: React_2.Context<Partial<{
158
158
  useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
159
159
  useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
160
160
  useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
161
+ useTimePickerCompatStyles_unstable: CustomStyleHook;
161
162
  }> | undefined>;
162
163
 
163
164
  export declare type CustomStyleHooksContextValue_unstable = Partial<{
@@ -283,6 +284,7 @@ export declare type CustomStyleHooksContextValue_unstable = Partial<{
283
284
  useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
284
285
  useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
285
286
  useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
287
+ useTimePickerCompatStyles_unstable: CustomStyleHook;
286
288
  }>;
287
289
 
288
290
  /**
@@ -411,6 +413,7 @@ export declare const CustomStyleHooksProvider_unstable: React_2.Provider<Partial
411
413
  useTeachingPopoverPageCountStyles_unstable: CustomStyleHook;
412
414
  useTeachingPopoverSurfaceStyles_unstable: CustomStyleHook;
413
415
  useTeachingPopoverTitleStyles_unstable: CustomStyleHook;
416
+ useTimePickerCompatStyles_unstable: CustomStyleHook;
414
417
  }> | undefined>;
415
418
 
416
419
  /**
@@ -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 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}>;\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;AAkI/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"}
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 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;AAmI/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"}
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  * @internal
4
4
  */ const ProviderContext = React.createContext(undefined);
5
5
  const providerContextDefaultValue = {
6
+ // eslint-disable-next-line no-restricted-globals
6
7
  targetDocument: typeof document === 'object' ? document : undefined,
7
8
  dir: 'ltr'
8
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ProviderContextValue = {\n /** Sets the direction of text & generated styles. */\n dir: 'ltr' | 'rtl';\n\n /** Provides the document, can be undefined during SSR render. */\n targetDocument?: Document;\n};\n\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxDC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACP;AAEA;;CAEC,GACD,OAAO,MAAMC,WAAWP,gBAAgBO,QAAQ,CAAC;AAEjD,OAAO,SAASC;QACPT;IAAP,OAAOA,CAAAA,oBAAAA,MAAMU,UAAU,CAACT,8BAAjBD,+BAAAA,oBAAqCI;AAC9C"}
1
+ {"version":3,"sources":["ProviderContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type ProviderContextValue = {\n /** Sets the direction of text & generated styles. */\n dir: 'ltr' | 'rtl';\n\n /** Provides the document, can be undefined during SSR render. */\n targetDocument?: Document;\n};\n\n/**\n * @internal\n */\nconst ProviderContext = React.createContext<ProviderContextValue | undefined>(\n undefined,\n) as React.Context<ProviderContextValue>;\n\nconst providerContextDefaultValue: ProviderContextValue = {\n // eslint-disable-next-line no-restricted-globals\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr' as const,\n};\n\n/**\n * @internal\n */\nexport const Provider = ProviderContext.Provider;\n\nexport function useFluent(): ProviderContextValue {\n return React.useContext(ProviderContext) ?? providerContextDefaultValue;\n}\n"],"names":["React","ProviderContext","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","Provider","useFluent","useContext"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAU/B;;CAEC,GACD,MAAMC,kBAAkBD,MAAME,aAAa,CACzCC;AAGF,MAAMC,8BAAoD;IACxD,iDAAiD;IACjDC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACP;AAEA;;CAEC,GACD,OAAO,MAAMC,WAAWP,gBAAgBO,QAAQ,CAAC;AAEjD,OAAO,SAASC;QACPT;IAAP,OAAOA,CAAAA,oBAAAA,MAAMU,UAAU,CAACT,8BAAjBD,+BAAAA,oBAAqCI;AAC9C"}
@@ -22,6 +22,7 @@ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
22
22
  * @internal
23
23
  */ const ProviderContext = /*#__PURE__*/ _react.createContext(undefined);
24
24
  const providerContextDefaultValue = {
25
+ // eslint-disable-next-line no-restricted-globals
25
26
  targetDocument: typeof document === 'object' ? document : undefined,
26
27
  dir: 'ltr'
27
28
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["ProviderContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const ProviderContext = React.createContext(undefined);\nconst providerContextDefaultValue = {\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr'\n};\n/**\n * @internal\n */ export const Provider = ProviderContext.Provider;\nexport function useFluent() {\n var _React_useContext;\n return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;\n}\n"],"names":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAUiBA,QAAQ;eAARA;;IACDC,SAAS;eAATA;;;;iEAXO;AACvB;;CAEC,GAAG,MAAMC,gCAAkBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,8BAA8B;IAChCC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACT;AAGW,MAAMT,WAAWE,gBAAgBF,QAAQ;AAC7C,SAASC;IACZ,IAAIS;IACJ,OAAO,AAACA,CAAAA,oBAAoBP,OAAMQ,UAAU,CAACT,gBAAe,MAAO,QAAQQ,sBAAsB,KAAK,IAAIA,oBAAoBJ;AAClI"}
1
+ {"version":3,"sources":["ProviderContext.js"],"sourcesContent":["import * as React from 'react';\n/**\n * @internal\n */ const ProviderContext = React.createContext(undefined);\nconst providerContextDefaultValue = {\n // eslint-disable-next-line no-restricted-globals\n targetDocument: typeof document === 'object' ? document : undefined,\n dir: 'ltr'\n};\n/**\n * @internal\n */ export const Provider = ProviderContext.Provider;\nexport function useFluent() {\n var _React_useContext;\n return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;\n}\n"],"names":["Provider","useFluent","ProviderContext","React","createContext","undefined","providerContextDefaultValue","targetDocument","document","dir","_React_useContext","useContext"],"mappings":";;;;;;;;;;;IAWiBA,QAAQ;eAARA;;IACDC,SAAS;eAATA;;;;iEAZO;AACvB;;CAEC,GAAG,MAAMC,gCAAkBC,OAAMC,aAAa,CAACC;AAChD,MAAMC,8BAA8B;IAChC,iDAAiD;IACjDC,gBAAgB,OAAOC,aAAa,WAAWA,WAAWH;IAC1DI,KAAK;AACT;AAGW,MAAMT,WAAWE,gBAAgBF,QAAQ;AAC7C,SAASC;IACZ,IAAIS;IACJ,OAAO,AAACA,CAAAA,oBAAoBP,OAAMQ,UAAU,CAACT,gBAAe,MAAO,QAAQQ,sBAAsB,KAAK,IAAIA,oBAAoBJ;AAClI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-shared-contexts",
3
- "version": "9.13.0",
3
+ "version": "9.13.2",
4
4
  "description": "Fluent UI React Contexts shared by multiple components.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",