diff --git a/change/@fluentui-react-avatar-4f8775b1-d717-49c5-a688-4998bc9773e3.json b/change/@fluentui-react-avatar-4f8775b1-d717-49c5-a688-4998bc9773e3.json new file mode 100644 index 00000000000000..fb7241ed5d069c --- /dev/null +++ b/change/@fluentui-react-avatar-4f8775b1-d717-49c5-a688-4998bc9773e3.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "docs: Adding @internal to getInitials.", + "packageName": "@fluentui/react-avatar", + "email": "esteban.230@hotmail.com", + "dependentChangeType": "none" +} diff --git a/packages/react-components/react-avatar/etc/react-avatar.api.md b/packages/react-components/react-avatar/etc/react-avatar.api.md index 59bcfcd878bdc5..34df0299efee61 100644 --- a/packages/react-components/react-avatar/etc/react-avatar.api.md +++ b/packages/react-components/react-avatar/etc/react-avatar.api.md @@ -105,7 +105,9 @@ export type AvatarState = ComponentState & Required>; }; -// @public +// Warning: (ae-internal-missing-underscore) The name "getInitials" should be prefixed with an underscore because the declaration is marked as @internal +// +// @internal export function getInitials(displayName: string | undefined | null, isRtl: boolean, options?: { allowPhoneInitials?: boolean; firstInitialOnly?: boolean; diff --git a/packages/react-components/react-avatar/src/utils/getInitials.ts b/packages/react-components/react-avatar/src/utils/getInitials.ts index 864f23122bcee2..b8caf7d4de528a 100644 --- a/packages/react-components/react-avatar/src/utils/getInitials.ts +++ b/packages/react-components/react-avatar/src/utils/getInitials.ts @@ -75,6 +75,8 @@ function cleanupDisplayName(displayName: string): string { * * @returns The 1 or 2 character initials based on the name. Or an empty string if no initials * could be derived from the name. + * + * @internal */ export function getInitials( displayName: string | undefined | null,