diff --git a/change/@fluentui-react-shared-contexts-625a6ac7-63ff-4172-a2fd-a4f60b9eff2e.json b/change/@fluentui-react-shared-contexts-625a6ac7-63ff-4172-a2fd-a4f60b9eff2e.json new file mode 100644 index 00000000000000..3ee40c1db2e24c --- /dev/null +++ b/change/@fluentui-react-shared-contexts-625a6ac7-63ff-4172-a2fd-a4f60b9eff2e.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "exposes internal methods and types that are used in the API surface", + "packageName": "@fluentui/react-shared-contexts", + "email": "bernardo.sunderhus@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-shared-contexts/etc/react-shared-contexts.api.md b/packages/react-components/react-shared-contexts/etc/react-shared-contexts.api.md index 342a64fed5ef73..215ca76c963948 100644 --- a/packages/react-components/react-shared-contexts/etc/react-shared-contexts.api.md +++ b/packages/react-components/react-shared-contexts/etc/react-shared-contexts.api.md @@ -25,13 +25,13 @@ export const ThemeClassNameProvider_unstable: React_2.Provider; // @internal (undocumented) export const ThemeContext_unstable: React_2.Context; -// @internal (undocumented) +// @public (undocumented) export type ThemeContextValue_unstable = Theme | Partial | undefined; // @internal (undocumented) export const ThemeProvider_unstable: React_2.Provider; -// @internal +// @public export type TooltipVisibilityContextValue_unstable = { visibleTooltip?: { hide: () => void; @@ -44,10 +44,10 @@ export const TooltipVisibilityProvider_unstable: React_2.Provider | undefined; /** diff --git a/packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts b/packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts index a7c8bb8685d86c..ec98e83215be41 100644 --- a/packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts +++ b/packages/react-components/react-shared-contexts/src/TooltipVisibilityContext/TooltipContext.ts @@ -1,7 +1,6 @@ import * as React from 'react'; /** - * @internal * The context provided by TooltipProvider */ export type TooltipVisibilityContextValue = { @@ -29,9 +28,6 @@ const tooltipVisibilityContextDefaultValue: TooltipVisibilityContextValue = {}; */ export const TooltipVisibilityProvider = TooltipVisibilityContext.Provider; -/** - * @internal - */ export function useTooltipVisibility(): TooltipVisibilityContextValue { return React.useContext(TooltipVisibilityContext) ?? tooltipVisibilityContextDefaultValue; }