@adaptavant/share-modal@1.2.0

Minor Changes

  • 80ed045: ShareModal: Fix ShareModal's Share option not firing the close callback when the Web Share API is unavailable. The modal now closes correctly and triggers onShareOptionSelect regardless of whether the Web Share API is supported in the current environment.
  • 486aceb: ShareModal: Adjusted paddings and spacing (modal content gap gap-2gap-6, option stack py-2pb-2), added line-clamp-1 to description text for overflow handling. Fixed label casing in examples ("Copy Link" → "Copy link", "Whatsapp" → "WhatsApp"). Added "Company Details with Avatar Toggle" example demonstrating show/hide of company avatar via avatarProps.

Patch Changes

  • 3912399: ShareModal: The company details section (avatar and description) is now optional. Previously a CompanyIcon was always rendered when no avatarProps were provided. It now renders only when avatarProps, headingImageProps, or translations.description are supplied. If all of these are omitted, the section is hidden and only the share option buttons are shown.
  • Updated dependencies [a229675]
  • Updated dependencies [9a028fc]
  • Updated dependencies [8235a81]
  • Updated dependencies [d5ee541]
  • Updated dependencies [086b042]
  • Updated dependencies [2156236]
  • Updated dependencies [2698c32]
    • @adaptavant/eds-core@1.38.0
    • @adaptavant/eds-brands@1.7.0