@rebuy/rebuy 3.62.2 → 3.64.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.
Files changed (47) hide show
  1. package/dist/index.cjs +10 -1
  2. package/dist/index.mjs +10 -1
  3. package/dist/schema/checkout-and-beyond/constants.cjs +7 -0
  4. package/dist/schema/checkout-and-beyond/constants.mjs +7 -0
  5. package/dist/schema/checkout-and-beyond/index.cjs +10 -1
  6. package/dist/schema/checkout-and-beyond/index.mjs +10 -1
  7. package/dist/schema/postPurchaseOfferPresentation.d.ts +2 -0
  8. package/dist/schema/postPurchaseProductCollectionView.d.ts +2 -0
  9. package/dist/schema/postPurchaseProductView.d.ts +2 -0
  10. package/dist/schema/widget-data.cjs +10 -1
  11. package/dist/schema/widget-data.mjs +10 -1
  12. package/dist/schema/widgetData.d.ts +3 -0
  13. package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +1 -0
  14. package/dist/schema/widgets/checkout-and-beyond/button.d.ts +1 -0
  15. package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +1 -0
  16. package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +1 -0
  17. package/dist/schema/widgets/checkout-and-beyond/common.d.ts +4 -2
  18. package/dist/schema/widgets/checkout-and-beyond/image.d.ts +2 -0
  19. package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +1 -0
  20. package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +1 -0
  21. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +1 -0
  22. package/dist/schema/widgets/checkout-and-beyond/root.d.ts +1 -0
  23. package/dist/schema/widgets/checkout-and-beyond/text.d.ts +1 -0
  24. package/dist/schema/widgets/contentBlock.d.ts +1 -0
  25. package/dist/schema/widgets/lineItemEditor.d.ts +1 -0
  26. package/dist/schema/widgets/rebuyButton.d.ts +1 -0
  27. package/dist/server/index.cjs +48 -8
  28. package/dist/server/index.mjs +48 -8
  29. package/dist/server/postPurchaseSts.d.ts +4 -4
  30. package/dist/server/preparePostPurchaseAdmissionView.d.ts +2 -2
  31. package/dist/server/preparePostPurchaseCollectionGroup.d.ts +2 -2
  32. package/dist/server/preparePostPurchaseCollectionView.d.ts +2 -2
  33. package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +2 -2
  34. package/dist/server/preparePostPurchaseGroupDefault.d.ts +2 -2
  35. package/dist/server/preparePostPurchaseGroupView.d.ts +2 -2
  36. package/dist/server/preparePostPurchaseMemberView.d.ts +8 -8
  37. package/dist/server/preparePostPurchaseOfferPresentation.d.ts +1 -1
  38. package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +2 -2
  39. package/dist/server/preparePostPurchaseQuantityView.d.ts +2 -2
  40. package/dist/server/preparePostPurchaseStsMember.d.ts +2 -2
  41. package/dist/transforms/index.cjs +18 -5
  42. package/dist/transforms/index.mjs +18 -5
  43. package/dist/transforms/postPurchase/convertProductInformation.d.ts +2 -1
  44. package/dist/transforms/postPurchase/declineTheseButton.d.ts +104 -0
  45. package/dist/transforms/postPurchase/productCardPay.d.ts +1 -1
  46. package/dist/transforms/productCard/addToOrderButton.d.ts +1 -1
  47. package/package.json +1 -1
@@ -469,6 +469,12 @@ var buttonActions = [
469
469
  "addToOrder",
470
470
  "declineAllOffers",
471
471
  "declineOffer",
472
+ /**
473
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
474
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
475
+ * CAB-native action that ends the session, for widgets authored in the new editor.
476
+ */
477
+ "declineThese",
472
478
  "displayContentInModal",
473
479
  "displayContentInPopover",
474
480
  "goToNextPage",
@@ -490,6 +496,7 @@ var buttonFields = [
490
496
  "buttonLabel",
491
497
  "declineAllOffers",
492
498
  "declineOffer",
499
+ "declineThese",
493
500
  "destinationUrl",
494
501
  "inactivePage",
495
502
  "overlayContent",
@@ -1880,7 +1887,9 @@ var CABLayoutSection = z22.object({
1880
1887
  direction: z22.enum(directions).default(Direction.rows),
1881
1888
  /**
1882
1889
  * Platform chrome around the section, not a layout behavior: `callout` is a subdued box with block borders
1883
- * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content card.
1890
+ * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content column
1891
+ * (legacy `ComponentSectionLayout`), which the converter puts around the text, image and image-with-text
1892
+ * blocks. The offers section is never framed: the renderers place it in that column themselves.
1884
1893
  */
1885
1894
  frame: z22.enum(layoutFrames).optional(),
1886
1895
  grid: z22.object({
@@ -4949,15 +4958,19 @@ var convertProductInformation = (raw, report, widgetSettings) => {
4949
4958
  CABLayoutSection.parse({
4950
4959
  alignment: { horizontal: "center" },
4951
4960
  direction: "grid",
4952
- grid: { columns: [250] },
4961
+ /**
4962
+ * One full-width track, uncapped. Legacy `ProductImage` set its 250-pixel, 90% track
4963
+ * only on the small viewport, so on medium and large the image filled its column; the
4964
+ * schema has no per-viewport tracks, so it fills its column at every viewport.
4965
+ */
4966
+ grid: { columns: ["100%"] },
4953
4967
  sections: [
4954
4968
  CABImageSection.parse({
4955
4969
  altText: "{{productTitle}}",
4956
4970
  source: "{{productImage}}",
4957
4971
  ...thumbnails(settings)
4958
4972
  })
4959
- ],
4960
- width: 90
4973
+ ]
4961
4974
  })
4962
4975
  ]
4963
4976
  }),
@@ -5047,7 +5060,7 @@ var convertTextBlock = (raw, report) => {
5047
5060
  const section = CABTextSection.safeParse({ content: { en: content } });
5048
5061
  return section.success ? [section.data] : omit(field);
5049
5062
  });
5050
- return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, sections })] : [];
5063
+ return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, frame: "offer-content", sections })] : [];
5051
5064
  };
5052
5065
 
5053
5066
  // src/transforms/postPurchase/convertTimerBlock.ts
@@ -8355,6 +8368,26 @@ var OfferPresentationResponseSchema = z89.object({
8355
8368
  successful: z89.literal(true)
8356
8369
  });
8357
8370
 
8371
+ // src/transforms/postPurchase/declineTheseButton.ts
8372
+ var DECLINE_ALL = { en: "Decline All" };
8373
+ var declineTheseButton = (label2) => CABLayoutSection.parse({
8374
+ frame: "offer-content",
8375
+ sections: [
8376
+ CABButtonSection.parse({
8377
+ action: "declineThese",
8378
+ buttonStyle: "secondary",
8379
+ sections: [labelSlot("declineThese", DECLINE_ALL, label2)]
8380
+ })
8381
+ ]
8382
+ });
8383
+ var withDeclineThese = (sections, placement, label2) => {
8384
+ const isRegion = ({ sectionType }) => sectionType === "offers";
8385
+ if (!placement || placement === "none" || !sections.some(isRegion)) return sections;
8386
+ const above = () => placement === "above" || placement === "both" ? [declineTheseButton(label2)] : [];
8387
+ const below = () => placement === "below" || placement === "both" ? [declineTheseButton(label2)] : [];
8388
+ return sections.flatMap((section) => isRegion(section) ? [...above(), section, ...below()] : [section]);
8389
+ };
8390
+
8358
8391
  // src/server/preparePostPurchaseOfferPresentation.ts
8359
8392
  var FrameSettings = PostPurchaseSettings.pick({ language: true, offersLayout: true, productOptions: true }).extend({
8360
8393
  blocks: z90.array(z90.unknown()).optional()
@@ -8366,7 +8399,7 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8366
8399
  const effective = FrameSettings.parse(merge2({}, original, metadata.widget));
8367
8400
  let sections = null;
8368
8401
  try {
8369
- sections = convertMessagePreview(
8402
+ const tree = convertMessagePreview(
8370
8403
  widgetId,
8371
8404
  {
8372
8405
  ...merged,
@@ -8375,14 +8408,21 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8375
8408
  },
8376
8409
  report
8377
8410
  );
8411
+ sections = {
8412
+ ...tree,
8413
+ sections: withDeclineThese(
8414
+ tree.sections,
8415
+ effective.productOptions.showDeclineAll,
8416
+ effective.language.global.declineAll
8417
+ )
8418
+ };
8378
8419
  } catch (error) {
8379
8420
  if (!(error instanceof NotFoundError)) throw error;
8380
8421
  }
8381
8422
  return PostPurchaseOfferPresentation.parse({
8382
8423
  labels: effective.language.global,
8383
8424
  layout: effective.offersLayout,
8384
- sections,
8385
- showDeclineAll: effective.productOptions.showDeclineAll
8425
+ sections
8386
8426
  });
8387
8427
  };
8388
8428
 
@@ -283,7 +283,7 @@ export declare const preparePostPurchaseStsView: (widgetId: number, normalized:
283
283
  };
284
284
  version: 2;
285
285
  widgetId: number | null;
286
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
286
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
287
287
  frame?: "callout" | "offer-content" | undefined;
288
288
  grid?: {
289
289
  columns: (string | number)[];
@@ -536,7 +536,7 @@ export declare const preparePostPurchaseStsView: (widgetId: number, normalized:
536
536
  };
537
537
  version: 2;
538
538
  widgetId: number | null;
539
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
539
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
540
540
  frame?: "callout" | "offer-content" | undefined;
541
541
  grid?: {
542
542
  columns: (string | number)[];
@@ -894,7 +894,7 @@ export declare const prepareStsCollectionMember: (widgetId: number, normalized:
894
894
  };
895
895
  version: 2;
896
896
  widgetId: number | null;
897
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
897
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
898
898
  frame?: "callout" | "offer-content" | undefined;
899
899
  grid?: {
900
900
  columns: (string | number)[];
@@ -1147,7 +1147,7 @@ export declare const prepareStsCollectionMember: (widgetId: number, normalized:
1147
1147
  };
1148
1148
  version: 2;
1149
1149
  widgetId: number | null;
1150
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1150
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1151
1151
  frame?: "callout" | "offer-content" | undefined;
1152
1152
  grid?: {
1153
1153
  columns: (string | number)[];
@@ -195,7 +195,7 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
195
195
  };
196
196
  version: 2;
197
197
  widgetId: number | null;
198
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
198
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
199
199
  frame?: "callout" | "offer-content" | undefined;
200
200
  grid?: {
201
201
  columns: (string | number)[];
@@ -448,7 +448,7 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
448
448
  };
449
449
  version: 2;
450
450
  widgetId: number | null;
451
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
451
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
452
452
  frame?: "callout" | "offer-content" | undefined;
453
453
  grid?: {
454
454
  columns: (string | number)[];
@@ -235,7 +235,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
235
235
  };
236
236
  version: 2;
237
237
  widgetId: number | null;
238
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
238
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
239
239
  frame?: "callout" | "offer-content" | undefined;
240
240
  grid?: {
241
241
  columns: (string | number)[];
@@ -489,7 +489,7 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
489
489
  };
490
490
  version: 2;
491
491
  widgetId: number | null;
492
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
492
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
493
493
  frame?: "callout" | "offer-content" | undefined;
494
494
  grid?: {
495
495
  columns: (string | number)[];
@@ -220,7 +220,7 @@ sts?: PostPurchaseStsContext) => {
220
220
  };
221
221
  version: 2;
222
222
  widgetId: number | null;
223
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
223
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
224
224
  frame?: "callout" | "offer-content" | undefined;
225
225
  grid?: {
226
226
  columns: (string | number)[];
@@ -473,7 +473,7 @@ sts?: PostPurchaseStsContext) => {
473
473
  };
474
474
  version: 2;
475
475
  widgetId: number | null;
476
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
476
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
477
477
  frame?: "callout" | "offer-content" | undefined;
478
478
  grid?: {
479
479
  columns: (string | number)[];
@@ -243,7 +243,7 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
243
243
  };
244
244
  version: 2;
245
245
  widgetId: number | null;
246
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
246
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
247
247
  frame?: "callout" | "offer-content" | undefined;
248
248
  grid?: {
249
249
  columns: (string | number)[];
@@ -496,7 +496,7 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
496
496
  };
497
497
  version: 2;
498
498
  widgetId: number | null;
499
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
499
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
500
500
  frame?: "callout" | "offer-content" | undefined;
501
501
  grid?: {
502
502
  columns: (string | number)[];
@@ -199,7 +199,7 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
199
199
  };
200
200
  version: 2;
201
201
  widgetId: number | null;
202
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
202
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
203
203
  frame?: "callout" | "offer-content" | undefined;
204
204
  grid?: {
205
205
  columns: (string | number)[];
@@ -452,7 +452,7 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
452
452
  };
453
453
  version: 2;
454
454
  widgetId: number | null;
455
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
455
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
456
456
  frame?: "callout" | "offer-content" | undefined;
457
457
  grid?: {
458
458
  columns: (string | number)[];
@@ -242,7 +242,7 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
242
242
  };
243
243
  version: 2;
244
244
  widgetId: number | null;
245
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
245
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
246
246
  frame?: "callout" | "offer-content" | undefined;
247
247
  grid?: {
248
248
  columns: (string | number)[];
@@ -495,7 +495,7 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
495
495
  };
496
496
  version: 2;
497
497
  widgetId: number | null;
498
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
498
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
499
499
  frame?: "callout" | "offer-content" | undefined;
500
500
  grid?: {
501
501
  columns: (string | number)[];
@@ -199,7 +199,7 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
199
199
  };
200
200
  version: 2;
201
201
  widgetId: number | null;
202
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
202
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
203
203
  frame?: "callout" | "offer-content" | undefined;
204
204
  grid?: {
205
205
  columns: (string | number)[];
@@ -452,7 +452,7 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
452
452
  };
453
453
  version: 2;
454
454
  widgetId: number | null;
455
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
455
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
456
456
  frame?: "callout" | "offer-content" | undefined;
457
457
  grid?: {
458
458
  columns: (string | number)[];
@@ -1019,7 +1019,7 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
1019
1019
  };
1020
1020
  version: 2;
1021
1021
  widgetId: number | null;
1022
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1022
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1023
1023
  frame?: "callout" | "offer-content" | undefined;
1024
1024
  grid?: {
1025
1025
  columns: (string | number)[];
@@ -1272,7 +1272,7 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
1272
1272
  };
1273
1273
  version: 2;
1274
1274
  widgetId: number | null;
1275
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1275
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1276
1276
  frame?: "callout" | "offer-content" | undefined;
1277
1277
  grid?: {
1278
1278
  columns: (string | number)[];
@@ -1840,7 +1840,7 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
1840
1840
  };
1841
1841
  version: 2;
1842
1842
  widgetId: number | null;
1843
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1843
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
1844
1844
  frame?: "callout" | "offer-content" | undefined;
1845
1845
  grid?: {
1846
1846
  columns: (string | number)[];
@@ -2093,7 +2093,7 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
2093
2093
  };
2094
2094
  version: 2;
2095
2095
  widgetId: number | null;
2096
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2096
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2097
2097
  frame?: "callout" | "offer-content" | undefined;
2098
2098
  grid?: {
2099
2099
  columns: (string | number)[];
@@ -2448,7 +2448,7 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
2448
2448
  };
2449
2449
  version: 2;
2450
2450
  widgetId: number | null;
2451
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2451
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2452
2452
  frame?: "callout" | "offer-content" | undefined;
2453
2453
  grid?: {
2454
2454
  columns: (string | number)[];
@@ -2701,7 +2701,7 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
2701
2701
  };
2702
2702
  version: 2;
2703
2703
  widgetId: number | null;
2704
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2704
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
2705
2705
  frame?: "callout" | "offer-content" | undefined;
2706
2706
  grid?: {
2707
2707
  columns: (string | number)[];
@@ -57,7 +57,7 @@ export declare const preparePostPurchaseOfferPresentation: (widgetId: number, se
57
57
  };
58
58
  version: 2;
59
59
  widgetId: number | null;
60
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
60
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
61
61
  frame?: "callout" | "offer-content" | undefined;
62
62
  grid?: {
63
63
  columns: (string | number)[];
@@ -226,7 +226,7 @@ sts?: PostPurchaseStsContext) => {
226
226
  };
227
227
  version: 2;
228
228
  widgetId: number | null;
229
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
229
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
230
230
  frame?: "callout" | "offer-content" | undefined;
231
231
  grid?: {
232
232
  columns: (string | number)[];
@@ -479,7 +479,7 @@ sts?: PostPurchaseStsContext) => {
479
479
  };
480
480
  version: 2;
481
481
  widgetId: number | null;
482
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
482
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
483
483
  frame?: "callout" | "offer-content" | undefined;
484
484
  grid?: {
485
485
  columns: (string | number)[];
@@ -214,7 +214,7 @@ sts?: PostPurchaseStsContext) => {
214
214
  };
215
215
  version: 2;
216
216
  widgetId: number | null;
217
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
217
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
218
218
  frame?: "callout" | "offer-content" | undefined;
219
219
  grid?: {
220
220
  columns: (string | number)[];
@@ -467,7 +467,7 @@ sts?: PostPurchaseStsContext) => {
467
467
  };
468
468
  version: 2;
469
469
  widgetId: number | null;
470
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
470
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
471
471
  frame?: "callout" | "offer-content" | undefined;
472
472
  grid?: {
473
473
  columns: (string | number)[];
@@ -204,7 +204,7 @@ export declare const preparePostPurchaseStsMember: (widgetId: number, settings:
204
204
  };
205
205
  version: 2;
206
206
  widgetId: number | null;
207
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
207
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
208
208
  frame?: "callout" | "offer-content" | undefined;
209
209
  grid?: {
210
210
  columns: (string | number)[];
@@ -457,7 +457,7 @@ export declare const preparePostPurchaseStsMember: (widgetId: number, settings:
457
457
  };
458
458
  version: 2;
459
459
  widgetId: number | null;
460
- buttonField?: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
460
+ buttonField?: "declineAllOffers" | "declineOffer" | "declineThese" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount" | undefined;
461
461
  frame?: "callout" | "offer-content" | undefined;
462
462
  grid?: {
463
463
  columns: (string | number)[];
@@ -79,6 +79,12 @@ var buttonActions = [
79
79
  "addToOrder",
80
80
  "declineAllOffers",
81
81
  "declineOffer",
82
+ /**
83
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
84
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
85
+ * CAB-native action that ends the session, for widgets authored in the new editor.
86
+ */
87
+ "declineThese",
82
88
  "displayContentInModal",
83
89
  "displayContentInPopover",
84
90
  "goToNextPage",
@@ -100,6 +106,7 @@ var buttonFields = [
100
106
  "buttonLabel",
101
107
  "declineAllOffers",
102
108
  "declineOffer",
109
+ "declineThese",
103
110
  "destinationUrl",
104
111
  "inactivePage",
105
112
  "overlayContent",
@@ -536,7 +543,9 @@ var CABLayoutSection = import_zod4.z.object({
536
543
  direction: import_zod4.z.enum(directions).default(Direction.rows),
537
544
  /**
538
545
  * Platform chrome around the section, not a layout behavior: `callout` is a subdued box with block borders
539
- * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content card.
546
+ * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content column
547
+ * (legacy `ComponentSectionLayout`), which the converter puts around the text, image and image-with-text
548
+ * blocks. The offers section is never framed: the renderers place it in that column themselves.
540
549
  */
541
550
  frame: import_zod4.z.enum(layoutFrames).optional(),
542
551
  grid: import_zod4.z.object({
@@ -4553,15 +4562,19 @@ var convertProductInformation = (raw, report, widgetSettings) => {
4553
4562
  CABLayoutSection.parse({
4554
4563
  alignment: { horizontal: "center" },
4555
4564
  direction: "grid",
4556
- grid: { columns: [250] },
4565
+ /**
4566
+ * One full-width track, uncapped. Legacy `ProductImage` set its 250-pixel, 90% track
4567
+ * only on the small viewport, so on medium and large the image filled its column; the
4568
+ * schema has no per-viewport tracks, so it fills its column at every viewport.
4569
+ */
4570
+ grid: { columns: ["100%"] },
4557
4571
  sections: [
4558
4572
  CABImageSection.parse({
4559
4573
  altText: "{{productTitle}}",
4560
4574
  source: "{{productImage}}",
4561
4575
  ...thumbnails(settings)
4562
4576
  })
4563
- ],
4564
- width: 90
4577
+ ]
4565
4578
  })
4566
4579
  ]
4567
4580
  }),
@@ -4651,7 +4664,7 @@ var convertTextBlock = (raw, report) => {
4651
4664
  const section = CABTextSection.safeParse({ content: { en: content } });
4652
4665
  return section.success ? [section.data] : omit(field);
4653
4666
  });
4654
- return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, sections })] : [];
4667
+ return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, frame: "offer-content", sections })] : [];
4655
4668
  };
4656
4669
 
4657
4670
  // src/transforms/postPurchase/convertTimerBlock.ts
@@ -18,6 +18,12 @@ var buttonActions = [
18
18
  "addToOrder",
19
19
  "declineAllOffers",
20
20
  "declineOffer",
21
+ /**
22
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
23
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
24
+ * CAB-native action that ends the session, for widgets authored in the new editor.
25
+ */
26
+ "declineThese",
21
27
  "displayContentInModal",
22
28
  "displayContentInPopover",
23
29
  "goToNextPage",
@@ -39,6 +45,7 @@ var buttonFields = [
39
45
  "buttonLabel",
40
46
  "declineAllOffers",
41
47
  "declineOffer",
48
+ "declineThese",
42
49
  "destinationUrl",
43
50
  "inactivePage",
44
51
  "overlayContent",
@@ -475,7 +482,9 @@ var CABLayoutSection = z4.object({
475
482
  direction: z4.enum(directions).default(Direction.rows),
476
483
  /**
477
484
  * Platform chrome around the section, not a layout behavior: `callout` is a subdued box with block borders
478
- * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content card.
485
+ * (the legacy post-purchase callout banner), `offer-content` the post-purchase offer's own content column
486
+ * (legacy `ComponentSectionLayout`), which the converter puts around the text, image and image-with-text
487
+ * blocks. The offers section is never framed: the renderers place it in that column themselves.
479
488
  */
480
489
  frame: z4.enum(layoutFrames).optional(),
481
490
  grid: z4.object({
@@ -4492,15 +4501,19 @@ var convertProductInformation = (raw, report, widgetSettings) => {
4492
4501
  CABLayoutSection.parse({
4493
4502
  alignment: { horizontal: "center" },
4494
4503
  direction: "grid",
4495
- grid: { columns: [250] },
4504
+ /**
4505
+ * One full-width track, uncapped. Legacy `ProductImage` set its 250-pixel, 90% track
4506
+ * only on the small viewport, so on medium and large the image filled its column; the
4507
+ * schema has no per-viewport tracks, so it fills its column at every viewport.
4508
+ */
4509
+ grid: { columns: ["100%"] },
4496
4510
  sections: [
4497
4511
  CABImageSection.parse({
4498
4512
  altText: "{{productTitle}}",
4499
4513
  source: "{{productImage}}",
4500
4514
  ...thumbnails(settings)
4501
4515
  })
4502
- ],
4503
- width: 90
4516
+ ]
4504
4517
  })
4505
4518
  ]
4506
4519
  }),
@@ -4590,7 +4603,7 @@ var convertTextBlock = (raw, report) => {
4590
4603
  const section = CABTextSection.safeParse({ content: { en: content } });
4591
4604
  return section.success ? [section.data] : omit(field);
4592
4605
  });
4593
- return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, sections })] : [];
4606
+ return sections.length ? [CABLayoutSection.parse({ alignment: { horizontal }, frame: "offer-content", sections })] : [];
4594
4607
  };
4595
4608
 
4596
4609
  // src/transforms/postPurchase/convertTimerBlock.ts
@@ -4,6 +4,7 @@ import type { Reporter } from '../../server/shared';
4
4
  * Structure only: the card provider binds the separately prepared fixed product. The card is built from
5
5
  * the section types the checkout offer card uses — price, purchase mode, variants, quantity — plus the
6
6
  * post-purchase price breakdown and recurring summary, then the card's own Pay and decline, all driven by the saved
7
- * widget settings.
7
+ * widget settings. It carries no `frame`: the renderers set the offers section in the offer's content column
8
+ * themselves, so an `offer-content` frame here would cap the card twice.
8
9
  */
9
10
  export declare const convertProductInformation: (raw: unknown, report?: Reporter, widgetSettings?: unknown) => CABOffersSection[];