From 551a4a41188a142bbc1ef02913cc54e13ced405a Mon Sep 17 00:00:00 2001 From: Robert Penner Date: Fri, 13 Dec 2024 18:11:29 +0000 Subject: [PATCH] chore(MessageBar): roll back deprecations of MessageBarTransitionContext - based on code review --- .../library/etc/react-message-bar.api.md | 8 ++++---- .../src/contexts/messageBarTransitionContext.ts | 11 ++++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md b/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md index cc6f80e27fdeb..f542397433e67 100644 --- a/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md +++ b/packages/react-components/react-message-bar/library/etc/react-message-bar.api.md @@ -144,13 +144,13 @@ export type MessageBarTitleSlots = { // @public export type MessageBarTitleState = ComponentState; -// @internal @deprecated (undocumented) +// @internal (undocumented) export const messageBarTransitionContextDefaultValue: MessageBarTransitionContextValue; -// @internal @deprecated +// @internal export const MessageBarTransitionContextProvider: React_2.Provider; -// @public @deprecated (undocumented) +// @public (undocumented) export type MessageBarTransitionContextValue = { className: string; nodeRef: React_2.Ref; @@ -210,7 +210,7 @@ export const useMessageBarTitle_unstable: (props: MessageBarTitleProps, ref: Rea // @public export const useMessageBarTitleStyles_unstable: (state: MessageBarTitleState) => MessageBarTitleState; -// @internal @deprecated (undocumented) +// @internal (undocumented) export const useMessageBarTransitionContext: () => MessageBarTransitionContextValue; // (No @packageDocumentation comment for this package) diff --git a/packages/react-components/react-message-bar/library/src/contexts/messageBarTransitionContext.ts b/packages/react-components/react-message-bar/library/src/contexts/messageBarTransitionContext.ts index ce0862601ee9d..5c1dea8f74f58 100644 --- a/packages/react-components/react-message-bar/library/src/contexts/messageBarTransitionContext.ts +++ b/packages/react-components/react-message-bar/library/src/contexts/messageBarTransitionContext.ts @@ -1,9 +1,9 @@ import * as React from 'react'; -/** - * @deprecated Code is unused, replaced by motion components - */ export type MessageBarTransitionContextValue = { + /** + * @deprecated CSS className is no longer used for this transition, replaced by motion components + */ className: string; nodeRef: React.Ref; }; @@ -12,7 +12,6 @@ const messageBarTransitionContext = React.createContext React.useContext(messageBarTransitionContext) ?? messageBarTransitionContextDefaultValue;