Skip to content

Commit

Permalink
fix: exported BreadcrumbProvider and useBreadcrumbContext (#29315)
Browse files Browse the repository at this point in the history
* exported breadcrumb context

* change files
  • Loading branch information
ValentinaKozlova authored Sep 27, 2023
1 parent bb6155a commit 8255272
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "fix: exported BreadcrumbProvider and useBreadcrumbContext",
"packageName": "@fluentui/react-breadcrumb-preview",
"email": "vkozlova@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export type BreadcrumbButtonState = ComponentState<BreadcrumbButtonSlots> & Omit
// @public (undocumented)
export const breadcrumbClassNames: SlotClassNames<BreadcrumbSlots>;

// @public
export type BreadcrumbContextValue = Required<Pick<BreadcrumbProps, 'appearance' | 'dividerType' | 'size'>>;

// @public
export const BreadcrumbDivider: ForwardRefComponent<BreadcrumbDividerProps>;

Expand Down Expand Up @@ -86,6 +89,9 @@ export type BreadcrumbProps = ComponentProps<BreadcrumbSlots> & {
size?: 'small' | 'medium' | 'large';
};

// @internal (undocumented)
export const BreadcrumbProvider: React_2.Provider<Required<Pick<BreadcrumbProps, "size" | "appearance" | "dividerType">> | undefined>;

// @public (undocumented)
export type BreadcrumbSlots = {
root: Slot<'nav'>;
Expand Down Expand Up @@ -142,6 +148,9 @@ export const useBreadcrumbButton_unstable: (props: BreadcrumbButtonProps, ref: R
// @public
export const useBreadcrumbButtonStyles_unstable: (state: BreadcrumbButtonState) => BreadcrumbButtonState;

// @internal (undocumented)
export const useBreadcrumbContext_unstable: () => Required<Pick<BreadcrumbProps, "size" | "appearance" | "dividerType">>;

// @public
export const useBreadcrumbDivider_unstable: (props: BreadcrumbDividerProps, ref: React_2.Ref<HTMLLIElement>) => BreadcrumbDividerState;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './Breadcrumb';
export * from './Breadcrumb.types';
export * from './BreadcrumbContext';
export * from './renderBreadcrumb';
export * from './useBreadcrumb';
export * from './useBreadcrumbStyles.styles';
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export {
useBreadcrumbButton_unstable,
} from './BreadcrumbButton';
export type { BreadcrumbButtonProps, BreadcrumbButtonSlots, BreadcrumbButtonState } from './BreadcrumbButton';
export { BreadcrumbProvider, useBreadcrumbContext_unstable } from './Breadcrumb';
export type { BreadcrumbContextValue } from './Breadcrumb';

0 comments on commit 8255272

Please sign in to comment.