Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: re-exports DialogSurface context types and hooks",
"packageName": "@fluentui/react-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: exports DialogSurface context types and hooks",
"packageName": "@fluentui/react-dialog",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ import { DialogState } from '@fluentui/react-dialog';
import { DialogSurface } from '@fluentui/react-dialog';
import { dialogSurfaceClassNames } from '@fluentui/react-dialog';
import { DialogSurfaceContextValue } from '@fluentui/react-dialog';
import { DialogSurfaceContextValues } from '@fluentui/react-dialog';
import { DialogSurfaceProps } from '@fluentui/react-dialog';
import { DialogSurfaceSlots } from '@fluentui/react-dialog';
import { DialogSurfaceState } from '@fluentui/react-dialog';
Expand Down Expand Up @@ -1021,6 +1022,7 @@ import { useDialogContentStyles_unstable } from '@fluentui/react-dialog';
import { useDialogContext_unstable } from '@fluentui/react-dialog';
import { useDialogSurface_unstable } from '@fluentui/react-dialog';
import { useDialogSurfaceContext_unstable } from '@fluentui/react-dialog';
import { useDialogSurfaceContextValues_unstable } from '@fluentui/react-dialog';
import { useDialogSurfaceStyles_unstable } from '@fluentui/react-dialog';
import { useDialogTitle_unstable } from '@fluentui/react-dialog';
import { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';
Expand Down Expand Up @@ -1713,6 +1715,8 @@ export { dialogSurfaceClassNames }

export { DialogSurfaceContextValue }

export { DialogSurfaceContextValues }

export { DialogSurfaceProps }

export { DialogSurfaceSlots }
Expand Down Expand Up @@ -3283,6 +3287,8 @@ export { useDialogSurface_unstable }

export { useDialogSurfaceContext_unstable }

export { useDialogSurfaceContextValues_unstable }

export { useDialogSurfaceStyles_unstable }

export { useDialogTitle_unstable }
Expand Down
2 changes: 2 additions & 0 deletions packages/react-components/react-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ export {
renderDialogContent_unstable,
useDialogContext_unstable,
useDialogSurfaceContext_unstable,
useDialogSurfaceContextValues_unstable,
} from '@fluentui/react-dialog';

export type {
Expand Down Expand Up @@ -857,6 +858,7 @@ export type {
DialogContentState,
DialogContextValue,
DialogSurfaceContextValue,
DialogSurfaceContextValues,
} from '@fluentui/react-dialog';

export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ export const dialogSurfaceClassNames: SlotClassNames<DialogSurfaceSlots>;
// @public (undocumented)
export type DialogSurfaceContextValue = boolean;

// @public (undocumented)
export type DialogSurfaceContextValues = {
dialogSurface: DialogSurfaceContextValue;
};

// @public
export type DialogSurfaceElement = HTMLElement;

Expand Down Expand Up @@ -254,6 +259,9 @@ export const useDialogSurface_unstable: (props: DialogSurfaceProps, ref: React_2
// @public (undocumented)
export const useDialogSurfaceContext_unstable: () => boolean;

// @public (undocumented)
export function useDialogSurfaceContextValues_unstable(state: DialogSurfaceState): DialogSurfaceContextValues;

// @public
export const useDialogSurfaceStyles_unstable: (state: DialogSurfaceState) => DialogSurfaceState;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './DialogSurface.types';
export * from './renderDialogSurface';
export * from './useDialogSurface';
export * from './useDialogSurfaceStyles.styles';
export * from './useDialogSurfaceContextValues';
9 changes: 8 additions & 1 deletion packages/react-components/react-dialog/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,16 @@ export {
dialogSurfaceClassNames,
useDialogSurface_unstable,
useDialogSurfaceStyles_unstable,
useDialogSurfaceContextValues_unstable,
renderDialogSurface_unstable,
} from './DialogSurface';
export type { DialogSurfaceProps, DialogSurfaceSlots, DialogSurfaceState, DialogSurfaceElement } from './DialogSurface';
export type {
DialogSurfaceProps,
DialogSurfaceSlots,
DialogSurfaceState,
DialogSurfaceElement,
DialogSurfaceContextValues,
} from './DialogSurface';

export {
DialogContent,
Expand Down