@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.
@@ -2494,6 +2494,8 @@ var buildImage = (settings) => ({
2494
2494
  ...settings.displaySettings?.image?.imageFit && {
2495
2495
  objectFit: settings.displaySettings.image.imageFit
2496
2496
  },
2497
+ /** 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. */
2498
+ altText: "{{variantTitle}}",
2497
2499
  sectionType: "image",
2498
2500
  source: settings.images?.source === "product" ? "{{productImage}}" : "{{variantImage}}",
2499
2501
  width: 100
@@ -2573,6 +2575,8 @@ var buildSubscriptionButton = (settings) => {
2573
2575
  {
2574
2576
  action: "switchToSubscription",
2575
2577
  buttonStyle: "plain",
2578
+ /** 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. */
2579
+ ...settings.productType === "subscription" && { disableDowngrade: true },
2576
2580
  sections: [
2577
2581
  slot("subscriptionOption", void 0),
2578
2582
  slot("switchToOneTimePurchase", language?.cartSwitchToOnetime),