@rebuy/rebuy 3.63.0 → 3.65.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 +18 -1
  2. package/dist/index.mjs +18 -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 +7 -0
  6. package/dist/schema/checkout-and-beyond/index.mjs +7 -0
  7. package/dist/schema/postPurchaseFinish.d.ts +17 -3
  8. package/dist/schema/postPurchaseOfferPresentation.d.ts +2 -0
  9. package/dist/schema/postPurchaseProductCollectionView.d.ts +2 -0
  10. package/dist/schema/postPurchaseProductView.d.ts +2 -0
  11. package/dist/schema/widget-data.cjs +7 -0
  12. package/dist/schema/widget-data.mjs +7 -0
  13. package/dist/schema/widgetData.d.ts +3 -0
  14. package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +1 -0
  15. package/dist/schema/widgets/checkout-and-beyond/button.d.ts +1 -0
  16. package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +1 -0
  17. package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +1 -0
  18. package/dist/schema/widgets/checkout-and-beyond/common.d.ts +4 -2
  19. package/dist/schema/widgets/checkout-and-beyond/image.d.ts +2 -0
  20. package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +1 -0
  21. package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +1 -0
  22. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +1 -0
  23. package/dist/schema/widgets/checkout-and-beyond/root.d.ts +1 -0
  24. package/dist/schema/widgets/checkout-and-beyond/text.d.ts +1 -0
  25. package/dist/schema/widgets/contentBlock.d.ts +1 -0
  26. package/dist/schema/widgets/lineItemEditor.d.ts +1 -0
  27. package/dist/schema/widgets/rebuyButton.d.ts +1 -0
  28. package/dist/server/index.cjs +37 -3
  29. package/dist/server/index.mjs +37 -3
  30. package/dist/server/postPurchaseSts.d.ts +4 -4
  31. package/dist/server/preparePostPurchaseAdmissionView.d.ts +2 -2
  32. package/dist/server/preparePostPurchaseCollectionGroup.d.ts +2 -2
  33. package/dist/server/preparePostPurchaseCollectionView.d.ts +2 -2
  34. package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +2 -2
  35. package/dist/server/preparePostPurchaseGroupDefault.d.ts +2 -2
  36. package/dist/server/preparePostPurchaseGroupView.d.ts +2 -2
  37. package/dist/server/preparePostPurchaseMemberView.d.ts +8 -8
  38. package/dist/server/preparePostPurchaseOfferPresentation.d.ts +1 -1
  39. package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +2 -2
  40. package/dist/server/preparePostPurchaseQuantityView.d.ts +2 -2
  41. package/dist/server/preparePostPurchaseStsMember.d.ts +2 -2
  42. package/dist/transforms/index.cjs +7 -0
  43. package/dist/transforms/index.mjs +7 -0
  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
package/dist/index.cjs CHANGED
@@ -1916,6 +1916,12 @@ var buttonActions = [
1916
1916
  "addToOrder",
1917
1917
  "declineAllOffers",
1918
1918
  "declineOffer",
1919
+ /**
1920
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
1921
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
1922
+ * CAB-native action that ends the session, for widgets authored in the new editor.
1923
+ */
1924
+ "declineThese",
1919
1925
  "displayContentInModal",
1920
1926
  "displayContentInPopover",
1921
1927
  "goToNextPage",
@@ -1937,6 +1943,7 @@ var buttonFields = [
1937
1943
  "buttonLabel",
1938
1944
  "declineAllOffers",
1939
1945
  "declineOffer",
1946
+ "declineThese",
1940
1947
  "destinationUrl",
1941
1948
  "inactivePage",
1942
1949
  "overlayContent",
@@ -3483,7 +3490,17 @@ var FinishedPurchaseSchema = import_zod47.z.union([
3483
3490
  ])
3484
3491
  })
3485
3492
  ]);
3486
- var PostPurchaseFinishReasonSchema = import_zod47.z.enum(["decline-all", "timer-expiry", "end", "unknown-result"]);
3493
+ var PostPurchaseFinishReasonSchema = import_zod47.z.enum([
3494
+ "continue",
3495
+ "decline-all",
3496
+ "end",
3497
+ "error",
3498
+ "ineligible",
3499
+ "purchase-complete",
3500
+ "recovery",
3501
+ "timer-expiry",
3502
+ "unknown-result"
3503
+ ]);
3487
3504
  var SessionFinishRequestSchema = DecideRequestSchema.extend({
3488
3505
  endReason: PostPurchaseEndReasonSchema.optional(),
3489
3506
  reason: PostPurchaseFinishReasonSchema.optional()
package/dist/index.mjs CHANGED
@@ -1433,6 +1433,12 @@ var buttonActions = [
1433
1433
  "addToOrder",
1434
1434
  "declineAllOffers",
1435
1435
  "declineOffer",
1436
+ /**
1437
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
1438
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
1439
+ * CAB-native action that ends the session, for widgets authored in the new editor.
1440
+ */
1441
+ "declineThese",
1436
1442
  "displayContentInModal",
1437
1443
  "displayContentInPopover",
1438
1444
  "goToNextPage",
@@ -1454,6 +1460,7 @@ var buttonFields = [
1454
1460
  "buttonLabel",
1455
1461
  "declineAllOffers",
1456
1462
  "declineOffer",
1463
+ "declineThese",
1457
1464
  "destinationUrl",
1458
1465
  "inactivePage",
1459
1466
  "overlayContent",
@@ -3000,7 +3007,17 @@ var FinishedPurchaseSchema = z47.union([
3000
3007
  ])
3001
3008
  })
3002
3009
  ]);
3003
- var PostPurchaseFinishReasonSchema = z47.enum(["decline-all", "timer-expiry", "end", "unknown-result"]);
3010
+ var PostPurchaseFinishReasonSchema = z47.enum([
3011
+ "continue",
3012
+ "decline-all",
3013
+ "end",
3014
+ "error",
3015
+ "ineligible",
3016
+ "purchase-complete",
3017
+ "recovery",
3018
+ "timer-expiry",
3019
+ "unknown-result"
3020
+ ]);
3004
3021
  var SessionFinishRequestSchema = DecideRequestSchema.extend({
3005
3022
  endReason: PostPurchaseEndReasonSchema.optional(),
3006
3023
  reason: PostPurchaseFinishReasonSchema.optional()
@@ -120,6 +120,12 @@ var buttonActions = [
120
120
  "addToOrder",
121
121
  "declineAllOffers",
122
122
  "declineOffer",
123
+ /**
124
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
125
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
126
+ * CAB-native action that ends the session, for widgets authored in the new editor.
127
+ */
128
+ "declineThese",
123
129
  "displayContentInModal",
124
130
  "displayContentInPopover",
125
131
  "goToNextPage",
@@ -141,6 +147,7 @@ var buttonFields = [
141
147
  "buttonLabel",
142
148
  "declineAllOffers",
143
149
  "declineOffer",
150
+ "declineThese",
144
151
  "destinationUrl",
145
152
  "inactivePage",
146
153
  "overlayContent",
@@ -14,6 +14,12 @@ var buttonActions = [
14
14
  "addToOrder",
15
15
  "declineAllOffers",
16
16
  "declineOffer",
17
+ /**
18
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
19
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
20
+ * CAB-native action that ends the session, for widgets authored in the new editor.
21
+ */
22
+ "declineThese",
17
23
  "displayContentInModal",
18
24
  "displayContentInPopover",
19
25
  "goToNextPage",
@@ -35,6 +41,7 @@ var buttonFields = [
35
41
  "buttonLabel",
36
42
  "declineAllOffers",
37
43
  "declineOffer",
44
+ "declineThese",
38
45
  "destinationUrl",
39
46
  "inactivePage",
40
47
  "overlayContent",
@@ -232,6 +232,12 @@ var buttonActions = [
232
232
  "addToOrder",
233
233
  "declineAllOffers",
234
234
  "declineOffer",
235
+ /**
236
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
237
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
238
+ * CAB-native action that ends the session, for widgets authored in the new editor.
239
+ */
240
+ "declineThese",
235
241
  "displayContentInModal",
236
242
  "displayContentInPopover",
237
243
  "goToNextPage",
@@ -253,6 +259,7 @@ var buttonFields = [
253
259
  "buttonLabel",
254
260
  "declineAllOffers",
255
261
  "declineOffer",
262
+ "declineThese",
256
263
  "destinationUrl",
257
264
  "inactivePage",
258
265
  "overlayContent",
@@ -17,6 +17,12 @@ var buttonActions = [
17
17
  "addToOrder",
18
18
  "declineAllOffers",
19
19
  "declineOffer",
20
+ /**
21
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
22
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
23
+ * CAB-native action that ends the session, for widgets authored in the new editor.
24
+ */
25
+ "declineThese",
20
26
  "displayContentInModal",
21
27
  "displayContentInPopover",
22
28
  "goToNextPage",
@@ -38,6 +44,7 @@ var buttonFields = [
38
44
  "buttonLabel",
39
45
  "declineAllOffers",
40
46
  "declineOffer",
47
+ "declineThese",
41
48
  "destinationUrl",
42
49
  "inactivePage",
43
50
  "overlayContent",
@@ -14,13 +14,22 @@ export declare const FinishedPurchaseSchema: z.ZodUnion<readonly [z.ZodObject<{
14
14
  }>)[]]>;
15
15
  }, z.core.$strict>]>;
16
16
  /**
17
- * Why the client finished: the buyer declined every Offer (`decline-all`), the timer ran out (`timer-expiry`),
18
- * a transition Ended or could not read the next Offer (`end`), or a purchase's result stayed unknown
19
- * (`unknown-result`).
17
+ * Why the client finished: the buyer continued (`continue`) or declined every Offer (`decline-all`), a
18
+ * transition Ended or could not read the next Offer (`end`), preparation, admission or a membership command
19
+ * failed (`error`), Render's eligibility recheck refused the order (`ineligible`), a purchase completed the
20
+ * session (`purchase-complete`), recovery found a purchase that permits no fresh presentation (`recovery`),
21
+ * the timer ran out (`timer-expiry`), or a purchase's result stayed unknown (`unknown-result`). One value per
22
+ * client exit, so an `experience.end` row names every exit rather than `null` for the ones Finish had no word
23
+ * for.
20
24
  */
21
25
  export declare const PostPurchaseFinishReasonSchema: z.ZodEnum<{
26
+ error: "error";
22
27
  end: "end";
28
+ continue: "continue";
23
29
  "decline-all": "decline-all";
30
+ ineligible: "ineligible";
31
+ "purchase-complete": "purchase-complete";
32
+ recovery: "recovery";
24
33
  "timer-expiry": "timer-expiry";
25
34
  "unknown-result": "unknown-result";
26
35
  }>;
@@ -37,8 +46,13 @@ export declare const SessionFinishRequestSchema: z.ZodObject<{
37
46
  "accept-cap": "accept-cap";
38
47
  }>>;
39
48
  reason: z.ZodOptional<z.ZodEnum<{
49
+ error: "error";
40
50
  end: "end";
51
+ continue: "continue";
41
52
  "decline-all": "decline-all";
53
+ ineligible: "ineligible";
54
+ "purchase-complete": "purchase-complete";
55
+ recovery: "recovery";
42
56
  "timer-expiry": "timer-expiry";
43
57
  "unknown-result": "unknown-result";
44
58
  }>>;
@@ -49,6 +49,7 @@ export declare const PostPurchaseOfferPresentation: z.ZodObject<{
49
49
  buttonField: z.ZodOptional<z.ZodEnum<{
50
50
  declineAllOffers: "declineAllOffers";
51
51
  declineOffer: "declineOffer";
52
+ declineThese: "declineThese";
52
53
  removeFromOrder: "removeFromOrder";
53
54
  undoAddToOrder: "undoAddToOrder";
54
55
  activePage: "activePage";
@@ -440,6 +441,7 @@ export declare const OfferPresentationResponseSchema: z.ZodObject<{
440
441
  buttonField: z.ZodOptional<z.ZodEnum<{
441
442
  declineAllOffers: "declineAllOffers";
442
443
  declineOffer: "declineOffer";
444
+ declineThese: "declineThese";
443
445
  removeFromOrder: "removeFromOrder";
444
446
  undoAddToOrder: "undoAddToOrder";
445
447
  activePage: "activePage";
@@ -332,6 +332,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
332
332
  buttonField: z.ZodOptional<z.ZodEnum<{
333
333
  declineAllOffers: "declineAllOffers";
334
334
  declineOffer: "declineOffer";
335
+ declineThese: "declineThese";
335
336
  removeFromOrder: "removeFromOrder";
336
337
  undoAddToOrder: "undoAddToOrder";
337
338
  activePage: "activePage";
@@ -796,6 +797,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
796
797
  buttonField: z.ZodOptional<z.ZodEnum<{
797
798
  declineAllOffers: "declineAllOffers";
798
799
  declineOffer: "declineOffer";
800
+ declineThese: "declineThese";
799
801
  removeFromOrder: "removeFromOrder";
800
802
  undoAddToOrder: "undoAddToOrder";
801
803
  activePage: "activePage";
@@ -336,6 +336,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
336
336
  buttonField: z.ZodOptional<z.ZodEnum<{
337
337
  declineAllOffers: "declineAllOffers";
338
338
  declineOffer: "declineOffer";
339
+ declineThese: "declineThese";
339
340
  removeFromOrder: "removeFromOrder";
340
341
  undoAddToOrder: "undoAddToOrder";
341
342
  activePage: "activePage";
@@ -800,6 +801,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
800
801
  buttonField: z.ZodOptional<z.ZodEnum<{
801
802
  declineAllOffers: "declineAllOffers";
802
803
  declineOffer: "declineOffer";
804
+ declineThese: "declineThese";
803
805
  removeFromOrder: "removeFromOrder";
804
806
  undoAddToOrder: "undoAddToOrder";
805
807
  activePage: "activePage";
@@ -51,6 +51,12 @@ var buttonActions = [
51
51
  "addToOrder",
52
52
  "declineAllOffers",
53
53
  "declineOffer",
54
+ /**
55
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
56
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
57
+ * CAB-native action that ends the session, for widgets authored in the new editor.
58
+ */
59
+ "declineThese",
54
60
  "displayContentInModal",
55
61
  "displayContentInPopover",
56
62
  "goToNextPage",
@@ -72,6 +78,7 @@ var buttonFields = [
72
78
  "buttonLabel",
73
79
  "declineAllOffers",
74
80
  "declineOffer",
81
+ "declineThese",
75
82
  "destinationUrl",
76
83
  "inactivePage",
77
84
  "overlayContent",
@@ -26,6 +26,12 @@ var buttonActions = [
26
26
  "addToOrder",
27
27
  "declineAllOffers",
28
28
  "declineOffer",
29
+ /**
30
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
31
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
32
+ * CAB-native action that ends the session, for widgets authored in the new editor.
33
+ */
34
+ "declineThese",
29
35
  "displayContentInModal",
30
36
  "displayContentInPopover",
31
37
  "goToNextPage",
@@ -47,6 +53,7 @@ var buttonFields = [
47
53
  "buttonLabel",
48
54
  "declineAllOffers",
49
55
  "declineOffer",
56
+ "declineThese",
50
57
  "destinationUrl",
51
58
  "inactivePage",
52
59
  "overlayContent",
@@ -87,6 +87,7 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
87
  buttonField: z.ZodOptional<z.ZodEnum<{
88
88
  declineAllOffers: "declineAllOffers";
89
89
  declineOffer: "declineOffer";
90
+ declineThese: "declineThese";
90
91
  removeFromOrder: "removeFromOrder";
91
92
  undoAddToOrder: "undoAddToOrder";
92
93
  activePage: "activePage";
@@ -453,6 +454,7 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
453
454
  buttonField: z.ZodOptional<z.ZodEnum<{
454
455
  declineAllOffers: "declineAllOffers";
455
456
  declineOffer: "declineOffer";
457
+ declineThese: "declineThese";
456
458
  removeFromOrder: "removeFromOrder";
457
459
  undoAddToOrder: "undoAddToOrder";
458
460
  activePage: "activePage";
@@ -796,6 +798,7 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
796
798
  buttonField: z.ZodOptional<z.ZodEnum<{
797
799
  declineAllOffers: "declineAllOffers";
798
800
  declineOffer: "declineOffer";
801
+ declineThese: "declineThese";
799
802
  removeFromOrder: "removeFromOrder";
800
803
  undoAddToOrder: "undoAddToOrder";
801
804
  activePage: "activePage";
@@ -261,6 +261,7 @@ export declare const CABBannerSection: z.ZodLazy<z.ZodObject<{
261
261
  buttonField: z.ZodOptional<z.ZodEnum<{
262
262
  declineAllOffers: "declineAllOffers";
263
263
  declineOffer: "declineOffer";
264
+ declineThese: "declineThese";
264
265
  removeFromOrder: "removeFromOrder";
265
266
  undoAddToOrder: "undoAddToOrder";
266
267
  activePage: "activePage";
@@ -12,6 +12,7 @@ export declare const CABButtonSection: z.ZodObject<{
12
12
  addToOrder: "addToOrder";
13
13
  declineAllOffers: "declineAllOffers";
14
14
  declineOffer: "declineOffer";
15
+ declineThese: "declineThese";
15
16
  displayContentInModal: "displayContentInModal";
16
17
  displayContentInPopover: "displayContentInPopover";
17
18
  goToNextPage: "goToNextPage";
@@ -45,6 +45,7 @@ export declare const CABCarouselSection: z.ZodLazy<z.ZodObject<{
45
45
  buttonField: z.ZodOptional<z.ZodEnum<{
46
46
  declineAllOffers: "declineAllOffers";
47
47
  declineOffer: "declineOffer";
48
+ declineThese: "declineThese";
48
49
  removeFromOrder: "removeFromOrder";
49
50
  undoAddToOrder: "undoAddToOrder";
50
51
  activePage: "activePage";
@@ -44,6 +44,7 @@ export declare const CABCartLineSection: z.ZodLazy<z.ZodObject<{
44
44
  buttonField: z.ZodOptional<z.ZodEnum<{
45
45
  declineAllOffers: "declineAllOffers";
46
46
  declineOffer: "declineOffer";
47
+ declineThese: "declineThese";
47
48
  removeFromOrder: "removeFromOrder";
48
49
  undoAddToOrder: "undoAddToOrder";
49
50
  activePage: "activePage";
@@ -31,13 +31,14 @@ export declare const BorderWidth: {
31
31
  readonly thick: "thick";
32
32
  };
33
33
  export type BorderWidth = (typeof borderWidths)[number];
34
- export declare const buttonActions: readonly ["acceptOffer", "addGift", "addToOrder", "declineAllOffers", "declineOffer", "displayContentInModal", "displayContentInPopover", "goToNextPage", "goToPrevPage", "goToURL", "removeFromOrder", "removeGift", "selectVariant", "showPagination", "switchToSubscription", "undoAddToOrder"];
34
+ export declare const buttonActions: readonly ["acceptOffer", "addGift", "addToOrder", "declineAllOffers", "declineOffer", "declineThese", "displayContentInModal", "displayContentInPopover", "goToNextPage", "goToPrevPage", "goToURL", "removeFromOrder", "removeGift", "selectVariant", "showPagination", "switchToSubscription", "undoAddToOrder"];
35
35
  export declare const ButtonAction: {
36
36
  readonly acceptOffer: "acceptOffer";
37
37
  readonly addGift: "addGift";
38
38
  readonly addToOrder: "addToOrder";
39
39
  readonly declineAllOffers: "declineAllOffers";
40
40
  readonly declineOffer: "declineOffer";
41
+ readonly declineThese: "declineThese";
41
42
  readonly displayContentInModal: "displayContentInModal";
42
43
  readonly displayContentInPopover: "displayContentInPopover";
43
44
  readonly goToNextPage: "goToNextPage";
@@ -51,10 +52,11 @@ export declare const ButtonAction: {
51
52
  readonly undoAddToOrder: "undoAddToOrder";
52
53
  };
53
54
  export type ButtonAction = (typeof buttonActions)[number];
54
- export declare const buttonFields: readonly ["activePage", "addedToCart", "addingToCart", "addToCart", "buttonLabel", "declineAllOffers", "declineOffer", "destinationUrl", "inactivePage", "overlayContent", "payNow", "progressReached", "progressRemaining", "redirectToCheckout", "removeFromOrder", "showVariant", "showVariants", "soldOut", "subscriptionOption", "switchToOneTimePurchase", "switchToSubscriptionNoDiscount", "switchToSubscriptionWithDiscount", "undoAddToOrder"];
55
+ export declare const buttonFields: readonly ["activePage", "addedToCart", "addingToCart", "addToCart", "buttonLabel", "declineAllOffers", "declineOffer", "declineThese", "destinationUrl", "inactivePage", "overlayContent", "payNow", "progressReached", "progressRemaining", "redirectToCheckout", "removeFromOrder", "showVariant", "showVariants", "soldOut", "subscriptionOption", "switchToOneTimePurchase", "switchToSubscriptionNoDiscount", "switchToSubscriptionWithDiscount", "undoAddToOrder"];
55
56
  export declare const ButtonField: {
56
57
  readonly declineAllOffers: "declineAllOffers";
57
58
  readonly declineOffer: "declineOffer";
59
+ readonly declineThese: "declineThese";
58
60
  readonly removeFromOrder: "removeFromOrder";
59
61
  readonly undoAddToOrder: "undoAddToOrder";
60
62
  readonly activePage: "activePage";
@@ -31,6 +31,7 @@ export declare const CABImageSectionFields: z.ZodObject<{
31
31
  buttonField: z.ZodOptional<z.ZodEnum<{
32
32
  declineAllOffers: "declineAllOffers";
33
33
  declineOffer: "declineOffer";
34
+ declineThese: "declineThese";
34
35
  removeFromOrder: "removeFromOrder";
35
36
  undoAddToOrder: "undoAddToOrder";
36
37
  activePage: "activePage";
@@ -389,6 +390,7 @@ export declare const CABImageSection: z.ZodObject<{
389
390
  buttonField: z.ZodOptional<z.ZodEnum<{
390
391
  declineAllOffers: "declineAllOffers";
391
392
  declineOffer: "declineOffer";
393
+ declineThese: "declineThese";
392
394
  removeFromOrder: "removeFromOrder";
393
395
  undoAddToOrder: "undoAddToOrder";
394
396
  activePage: "activePage";
@@ -46,6 +46,7 @@ export declare const CABLayoutSection: z.ZodObject<{
46
46
  buttonField: z.ZodOptional<z.ZodEnum<{
47
47
  declineAllOffers: "declineAllOffers";
48
48
  declineOffer: "declineOffer";
49
+ declineThese: "declineThese";
49
50
  removeFromOrder: "removeFromOrder";
50
51
  undoAddToOrder: "undoAddToOrder";
51
52
  activePage: "activePage";
@@ -44,6 +44,7 @@ export declare const CABOffersSection: z.ZodLazy<z.ZodObject<{
44
44
  buttonField: z.ZodOptional<z.ZodEnum<{
45
45
  declineAllOffers: "declineAllOffers";
46
46
  declineOffer: "declineOffer";
47
+ declineThese: "declineThese";
47
48
  removeFromOrder: "removeFromOrder";
48
49
  undoAddToOrder: "undoAddToOrder";
49
50
  activePage: "activePage";
@@ -116,6 +116,7 @@ export declare const CABProgressBarSection: z.ZodLazy<z.ZodObject<{
116
116
  buttonField: z.ZodOptional<z.ZodEnum<{
117
117
  declineAllOffers: "declineAllOffers";
118
118
  declineOffer: "declineOffer";
119
+ declineThese: "declineThese";
119
120
  removeFromOrder: "removeFromOrder";
120
121
  undoAddToOrder: "undoAddToOrder";
121
122
  activePage: "activePage";
@@ -105,6 +105,7 @@ export declare const CABRootSection: z.ZodObject<{
105
105
  buttonField: z.ZodOptional<z.ZodEnum<{
106
106
  declineAllOffers: "declineAllOffers";
107
107
  declineOffer: "declineOffer";
108
+ declineThese: "declineThese";
108
109
  removeFromOrder: "removeFromOrder";
109
110
  undoAddToOrder: "undoAddToOrder";
110
111
  activePage: "activePage";
@@ -117,6 +117,7 @@ export declare const CABTextSection: z.ZodObject<{
117
117
  buttonField: z.ZodOptional<z.ZodEnum<{
118
118
  declineAllOffers: "declineAllOffers";
119
119
  declineOffer: "declineOffer";
120
+ declineThese: "declineThese";
120
121
  removeFromOrder: "removeFromOrder";
121
122
  undoAddToOrder: "undoAddToOrder";
122
123
  activePage: "activePage";
@@ -130,6 +130,7 @@ export declare const ContentBlock: z.ZodDiscriminatedUnion<[z.ZodObject<{
130
130
  buttonField: z.ZodOptional<z.ZodEnum<{
131
131
  declineAllOffers: "declineAllOffers";
132
132
  declineOffer: "declineOffer";
133
+ declineThese: "declineThese";
133
134
  removeFromOrder: "removeFromOrder";
134
135
  undoAddToOrder: "undoAddToOrder";
135
136
  activePage: "activePage";
@@ -95,6 +95,7 @@ export declare const LineItemEditor: z.ZodDiscriminatedUnion<[z.ZodObject<{
95
95
  buttonField: z.ZodOptional<z.ZodEnum<{
96
96
  declineAllOffers: "declineAllOffers";
97
97
  declineOffer: "declineOffer";
98
+ declineThese: "declineThese";
98
99
  removeFromOrder: "removeFromOrder";
99
100
  undoAddToOrder: "undoAddToOrder";
100
101
  activePage: "activePage";
@@ -42,6 +42,7 @@ export declare const RebuyButton: z.ZodDiscriminatedUnion<[z.ZodObject<{
42
42
  buttonField: z.ZodOptional<z.ZodEnum<{
43
43
  declineAllOffers: "declineAllOffers";
44
44
  declineOffer: "declineOffer";
45
+ declineThese: "declineThese";
45
46
  removeFromOrder: "removeFromOrder";
46
47
  undoAddToOrder: "undoAddToOrder";
47
48
  activePage: "activePage";
@@ -542,6 +542,12 @@ var buttonActions = [
542
542
  "addToOrder",
543
543
  "declineAllOffers",
544
544
  "declineOffer",
545
+ /**
546
+ * Post-purchase only: declines every remaining member of the Offer shown and follows the flow, as legacy's
547
+ * "Decline All" did (L59). Conversion emits this for the legacy button; `declineAllOffers` stays the
548
+ * CAB-native action that ends the session, for widgets authored in the new editor.
549
+ */
550
+ "declineThese",
545
551
  "displayContentInModal",
546
552
  "displayContentInPopover",
547
553
  "goToNextPage",
@@ -563,6 +569,7 @@ var buttonFields = [
563
569
  "buttonLabel",
564
570
  "declineAllOffers",
565
571
  "declineOffer",
572
+ "declineThese",
566
573
  "destinationUrl",
567
574
  "inactivePage",
568
575
  "overlayContent",
@@ -8434,6 +8441,26 @@ var OfferPresentationResponseSchema = import_zod89.z.object({
8434
8441
  successful: import_zod89.z.literal(true)
8435
8442
  });
8436
8443
 
8444
+ // src/transforms/postPurchase/declineTheseButton.ts
8445
+ var DECLINE_ALL = { en: "Decline All" };
8446
+ var declineTheseButton = (label2) => CABLayoutSection.parse({
8447
+ frame: "offer-content",
8448
+ sections: [
8449
+ CABButtonSection.parse({
8450
+ action: "declineThese",
8451
+ buttonStyle: "secondary",
8452
+ sections: [labelSlot("declineThese", DECLINE_ALL, label2)]
8453
+ })
8454
+ ]
8455
+ });
8456
+ var withDeclineThese = (sections, placement, label2) => {
8457
+ const isRegion = ({ sectionType }) => sectionType === "offers";
8458
+ if (!placement || placement === "none" || !sections.some(isRegion)) return sections;
8459
+ const above = () => placement === "above" || placement === "both" ? [declineTheseButton(label2)] : [];
8460
+ const below = () => placement === "below" || placement === "both" ? [declineTheseButton(label2)] : [];
8461
+ return sections.flatMap((section) => isRegion(section) ? [...above(), section, ...below()] : [section]);
8462
+ };
8463
+
8437
8464
  // src/server/preparePostPurchaseOfferPresentation.ts
8438
8465
  var FrameSettings = PostPurchaseSettings.pick({ language: true, offersLayout: true, productOptions: true }).extend({
8439
8466
  blocks: import_zod90.z.array(import_zod90.z.unknown()).optional()
@@ -8445,7 +8472,7 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8445
8472
  const effective = FrameSettings.parse((0, import_compat8.merge)({}, original, metadata.widget));
8446
8473
  let sections = null;
8447
8474
  try {
8448
- sections = convertMessagePreview(
8475
+ const tree = convertMessagePreview(
8449
8476
  widgetId,
8450
8477
  {
8451
8478
  ...merged,
@@ -8454,14 +8481,21 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8454
8481
  },
8455
8482
  report
8456
8483
  );
8484
+ sections = {
8485
+ ...tree,
8486
+ sections: withDeclineThese(
8487
+ tree.sections,
8488
+ effective.productOptions.showDeclineAll,
8489
+ effective.language.global.declineAll
8490
+ )
8491
+ };
8457
8492
  } catch (error) {
8458
8493
  if (!(error instanceof NotFoundError)) throw error;
8459
8494
  }
8460
8495
  return PostPurchaseOfferPresentation.parse({
8461
8496
  labels: effective.language.global,
8462
8497
  layout: effective.offersLayout,
8463
- sections,
8464
- showDeclineAll: effective.productOptions.showDeclineAll
8498
+ sections
8465
8499
  });
8466
8500
  };
8467
8501
 
@@ -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",
@@ -8361,6 +8368,26 @@ var OfferPresentationResponseSchema = z89.object({
8361
8368
  successful: z89.literal(true)
8362
8369
  });
8363
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
+
8364
8391
  // src/server/preparePostPurchaseOfferPresentation.ts
8365
8392
  var FrameSettings = PostPurchaseSettings.pick({ language: true, offersLayout: true, productOptions: true }).extend({
8366
8393
  blocks: z90.array(z90.unknown()).optional()
@@ -8372,7 +8399,7 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8372
8399
  const effective = FrameSettings.parse(merge2({}, original, metadata.widget));
8373
8400
  let sections = null;
8374
8401
  try {
8375
- sections = convertMessagePreview(
8402
+ const tree = convertMessagePreview(
8376
8403
  widgetId,
8377
8404
  {
8378
8405
  ...merged,
@@ -8381,14 +8408,21 @@ var preparePostPurchaseOfferPresentation = (widgetId, settings, response, report
8381
8408
  },
8382
8409
  report
8383
8410
  );
8411
+ sections = {
8412
+ ...tree,
8413
+ sections: withDeclineThese(
8414
+ tree.sections,
8415
+ effective.productOptions.showDeclineAll,
8416
+ effective.language.global.declineAll
8417
+ )
8418
+ };
8384
8419
  } catch (error) {
8385
8420
  if (!(error instanceof NotFoundError)) throw error;
8386
8421
  }
8387
8422
  return PostPurchaseOfferPresentation.parse({
8388
8423
  labels: effective.language.global,
8389
8424
  layout: effective.offersLayout,
8390
- sections,
8391
- showDeclineAll: effective.productOptions.showDeclineAll
8425
+ sections
8392
8426
  });
8393
8427
  };
8394
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",
@@ -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",
@@ -0,0 +1,104 @@
1
+ import { type CABSection } from '../../schema/widgets/checkout-and-beyond/shared';
2
+ import { type PostPurchaseSettings } from '../../schema/widgets/post-purchase-offer/postPurchaseSettings';
3
+ type Placement = PostPurchaseSettings['productOptions']['showDeclineAll'];
4
+ /**
5
+ * Legacy's step-level "Decline All" (L59, `DeclineAllButton`): a secondary `declineThese` button labelled by
6
+ * the merchant's `declineAll` in a `declineThese` slot, framed as the offer's content column like legacy's
7
+ * 350-pixel column. It declines the Offer's remaining members and follows the flow, as legacy did; the
8
+ * session-ending `declineAllOffers` is never what conversion produces (Mindy, 2026-11-03).
9
+ */
10
+ export declare const declineTheseButton: (label: string | undefined) => {
11
+ alignment: {
12
+ horizontal: "start" | "center" | "end";
13
+ vertical: "top" | "middle" | "bottom";
14
+ };
15
+ border: {
16
+ radius: "small" | "none" | "base" | "large" | "fullyRounded";
17
+ style: "none" | "base" | "dotted" | "dashed";
18
+ width: "base" | "medium" | "thick";
19
+ };
20
+ direction: "columns" | "rows" | "grid";
21
+ padding: "none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose";
22
+ sectionId: string;
23
+ sections: never[] | CABSection[];
24
+ sectionType: "layout";
25
+ spacing: "none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose";
26
+ width: number;
27
+ 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;
28
+ frame?: "callout" | "offer-content" | undefined;
29
+ grid?: {
30
+ columns: (string | number)[];
31
+ rows: (string | number)[];
32
+ } | undefined;
33
+ name?: string | undefined;
34
+ viewUrl?: string | undefined;
35
+ wrapping?: {
36
+ breakAt: number;
37
+ maxPerLine: number;
38
+ } | undefined;
39
+ mutators?: {
40
+ effect: "set_false" | "set_true" | "toggle";
41
+ variable: string;
42
+ when: {
43
+ operator: "is_empty" | "is_not_empty";
44
+ type: "content";
45
+ } | {
46
+ operator: "equals" | "greater_than" | "less_than";
47
+ type: "result_count";
48
+ value: number;
49
+ } | {
50
+ operator: "contains" | "does_not_contain";
51
+ type: "result_tag";
52
+ value: string;
53
+ } | {
54
+ event: "item_added" | "quantity_changed" | "variant_selected";
55
+ type: "event";
56
+ };
57
+ }[] | undefined;
58
+ variables?: ({
59
+ defaultValue: string;
60
+ name: string;
61
+ type: "text";
62
+ seed?: undefined;
63
+ } | {
64
+ defaultValue: number;
65
+ name: string;
66
+ type: "number";
67
+ seed?: undefined;
68
+ } | {
69
+ defaultValue: boolean;
70
+ name: string;
71
+ type: "boolean";
72
+ seed?: {
73
+ dataSourceId: number | null;
74
+ ruleset: {
75
+ exitIfMatched: boolean;
76
+ logic: {
77
+ rules: {
78
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
79
+ products: never[] | unknown[];
80
+ type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
81
+ value: string;
82
+ }[];
83
+ }[];
84
+ output: {
85
+ key: string;
86
+ type: "data_json";
87
+ value: string;
88
+ }[];
89
+ }[];
90
+ } | undefined;
91
+ })[] | undefined;
92
+ visibility?: {
93
+ variable: string;
94
+ visibleWhen: boolean;
95
+ } | undefined;
96
+ };
97
+ /**
98
+ * Places the button where `productOptions.showDeclineAll` put legacy's: above and/or below every product
99
+ * region (each `offers` section a product information block converts to), as legacy drew one `ProductOffers`
100
+ * with its own Decline All per block. A frame without a product region, or a placement of `none`, carries no
101
+ * button and is returned as it came.
102
+ */
103
+ export declare const withDeclineThese: (sections: CABSection[], placement: Placement, label: string | undefined) => CABSection[];
104
+ export {};
@@ -4,7 +4,7 @@ import { type ProductCardSettings } from '../../transforms/postPurchase/productC
4
4
  * merchant's `notAvailable`, over the checkout card's localized `soldOut` defaults.
5
5
  */
6
6
  export declare const soldOutSlot: ({ language }: ProductCardSettings) => {
7
- buttonField: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount";
7
+ 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";
8
8
  content: Record<string, string> & {
9
9
  en: string;
10
10
  };
@@ -8,7 +8,7 @@ import { type ButtonField } from '../../schema/widgets/checkout-and-beyond/commo
8
8
  export declare const labelSlot: (buttonField: ButtonField, defaults: Record<string, string> & {
9
9
  en: string;
10
10
  }, override: string | undefined, knownTokens?: readonly string[], legacyDefaults?: readonly string[]) => {
11
- buttonField: "declineAllOffers" | "declineOffer" | "removeFromOrder" | "undoAddToOrder" | "activePage" | "addedToCart" | "addingToCart" | "addToCart" | "buttonLabel" | "destinationUrl" | "inactivePage" | "overlayContent" | "payNow" | "progressReached" | "progressRemaining" | "redirectToCheckout" | "showVariant" | "showVariants" | "soldOut" | "subscriptionOption" | "switchToOneTimePurchase" | "switchToSubscriptionNoDiscount" | "switchToSubscriptionWithDiscount";
11
+ 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";
12
12
  content: Record<string, string> & {
13
13
  en: string;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebuy/rebuy",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "description": "Shared zod schemas, legacy-to-CAB widget transforms, and server orchestrators for Rebuy's Shopify consumers (rebuy-api, admin-nextjs, rebuy-shopify-extensions)",
5
5
  "license": "MIT",
6
6
  "author": "Rebuy, Inc.",