@rebuy/rebuy 2.30.0 → 2.31.0

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.
@@ -2549,6 +2549,8 @@ var buildImage = (settings) => ({
2549
2549
  ...settings.displaySettings?.image?.imageFit && {
2550
2550
  objectFit: settings.displaySettings.image.imageFit
2551
2551
  },
2552
+ /** Accessible name for the product image (legacy `OfferImage` used `accessibilityDescription={variantTitle}`); the renderer interpolates it, so an empty default would announce the image as decorative. */
2553
+ altText: "{{variantTitle}}",
2552
2554
  sectionType: "image",
2553
2555
  source: settings.images?.source === "product" ? "{{productImage}}" : "{{variantImage}}",
2554
2556
  width: 100
@@ -2628,6 +2630,8 @@ var buildSubscriptionButton = (settings) => {
2628
2630
  {
2629
2631
  action: "switchToSubscription",
2630
2632
  buttonStyle: "plain",
2633
+ /** A `subscription` widget offers no one-time purchase (legacy's offers checkbox renders only when `isProductTypeBoth`); suppress the downgrade so the buyer can't switch to one-time on a subscription-only offer. */
2634
+ ...settings.productType === "subscription" && { disableDowngrade: true },
2631
2635
  sections: [
2632
2636
  slot("subscriptionOption", void 0),
2633
2637
  slot("switchToOneTimePurchase", language?.cartSwitchToOnetime),