@apolitical/component-library 4.5.10 → 4.5.11-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/context/user/user.context.d.ts +13 -5
  2. package/context/user/user.provider.d.ts +2 -1
  3. package/form/components/form/form.types.d.ts +13 -12
  4. package/form/components/form/index.d.ts +1 -1
  5. package/form/components/profile-image-change/profile-image-change.d.ts +20 -7
  6. package/form/types/index.d.ts +1 -0
  7. package/form/types/profile-form/index.d.ts +1 -0
  8. package/form/types/profile-form/profile-form.d.ts +25 -0
  9. package/helpers/intl.d.ts +20 -6
  10. package/index.js +63 -63
  11. package/index.mjs +23115 -22874
  12. package/modals/components/index.d.ts +2 -0
  13. package/modals/{overlay → components/overlay}/overlay.d.ts +1 -1
  14. package/modals/index.d.ts +2 -4
  15. package/modals/{discussion-form-modal → types/discussion-form-modal}/discussion-form-modal.d.ts +1 -1
  16. package/modals/types/index.d.ts +3 -0
  17. package/modals/types/profile-modal/index.d.ts +1 -0
  18. package/modals/types/profile-modal/profile-modal.d.ts +25 -0
  19. package/package.json +1 -1
  20. package/sections/edit-section/edit-section.d.ts +4 -2
  21. package/style.css +1 -1
  22. package/user/profile-picture/profile-picture.d.ts +3 -1
  23. /package/modals/{modal → components/modal}/index.d.ts +0 -0
  24. /package/modals/{modal → components/modal}/modal.d.ts +0 -0
  25. /package/modals/{overlay → components/overlay}/index.d.ts +0 -0
  26. /package/modals/{overlay → components/overlay}/overlay.helpers.d.ts +0 -0
  27. /package/modals/{discussion-form-modal → types/discussion-form-modal}/index.d.ts +0 -0
  28. /package/modals/{invite-modal → types/invite-modal}/index.d.ts +0 -0
  29. /package/modals/{invite-modal → types/invite-modal}/invite-modal.d.ts +0 -0
@@ -11,8 +11,10 @@ interface Props {
11
11
  height?: number;
12
12
  /** Additional classes */
13
13
  className?: string;
14
+ /** Whether we should show the user's initials as a fallback, instead of an image, when there's no src */
15
+ showInitials?: boolean;
14
16
  /** Optional test ID */
15
17
  'data-testid'?: string;
16
18
  }
17
- declare const ProfilePicture: ({ className, src, name, alt, width, height, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
19
+ declare const ProfilePicture: ({ className, src, name, alt, width, height, showInitials, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
18
20
  export default ProfilePicture;
File without changes
File without changes