@rebuy/rebuy 3.41.0 → 3.43.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 (60) hide show
  1. package/dist/index.cjs +971 -787
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.mjs +971 -787
  4. package/dist/pricing/index.cjs +58 -1
  5. package/dist/pricing/index.d.ts +2 -0
  6. package/dist/pricing/index.mjs +58 -1
  7. package/dist/pricing/postPurchaseDisplayFacts.d.ts +36 -0
  8. package/dist/pricing/postPurchaseDisplayPrice.d.ts +8 -0
  9. package/dist/pricing/postPurchaseReduction.d.ts +17 -0
  10. package/dist/schema/checkout-and-beyond/constants.cjs +4 -0
  11. package/dist/schema/checkout-and-beyond/constants.mjs +4 -0
  12. package/dist/schema/checkout-and-beyond/index.cjs +388 -374
  13. package/dist/schema/checkout-and-beyond/index.mjs +388 -374
  14. package/dist/schema/index.d.ts +2 -0
  15. package/dist/schema/postPurchaseAdmission.d.ts +33 -0
  16. package/dist/schema/postPurchaseDisplayPrice.d.ts +31 -0
  17. package/dist/schema/postPurchaseFollowups.d.ts +47 -0
  18. package/dist/schema/postPurchaseHealth.d.ts +5 -0
  19. package/dist/schema/postPurchasePlanCatalog.d.ts +2 -0
  20. package/dist/schema/postPurchaseProduct.d.ts +2 -0
  21. package/dist/schema/postPurchaseProductCollectionView.d.ts +62 -0
  22. package/dist/schema/postPurchaseProductView.d.ts +65 -0
  23. package/dist/schema/postPurchaseRecovery.d.ts +47 -0
  24. package/dist/schema/postPurchaseSubscriptionProduct.d.ts +2 -0
  25. package/dist/schema/postPurchaseUpgrade.d.ts +117 -0
  26. package/dist/schema/widget-data.cjs +452 -441
  27. package/dist/schema/widget-data.mjs +452 -441
  28. package/dist/schema/widgets/checkout-and-beyond/common.d.ts +14 -0
  29. package/dist/schema/widgets/checkout-and-beyond/image.d.ts +8 -0
  30. package/dist/schema/widgets/checkout-and-beyond/imageThumbnails.d.ts +13 -0
  31. package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
  32. package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +1 -0
  33. package/dist/server/index.cjs +1721 -1419
  34. package/dist/server/index.mjs +1707 -1405
  35. package/dist/server/postPurchasePlanCatalog.d.ts +4 -1
  36. package/dist/server/preparePostPurchaseAdmissionView.d.ts +53 -0
  37. package/dist/server/preparePostPurchaseCollectionGroup.d.ts +57 -0
  38. package/dist/server/preparePostPurchaseCollectionView.d.ts +53 -0
  39. package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +53 -0
  40. package/dist/server/preparePostPurchaseGroupDefault.d.ts +53 -0
  41. package/dist/server/preparePostPurchaseGroupView.d.ts +53 -0
  42. package/dist/server/preparePostPurchaseMemberView.d.ts +159 -0
  43. package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +53 -0
  44. package/dist/server/preparePostPurchaseQuantityView.d.ts +53 -0
  45. package/dist/server/preparePostPurchaseSubscription.d.ts +1 -0
  46. package/dist/server/selectPostPurchaseChoice.d.ts +1 -0
  47. package/dist/transforms/index.cjs +980 -581
  48. package/dist/transforms/index.mjs +980 -581
  49. package/dist/transforms/postPurchase/convertProductInformation.d.ts +6 -2
  50. package/dist/transforms/postPurchase/productCardControls.d.ts +7 -0
  51. package/dist/transforms/postPurchase/productCardCosts.d.ts +3 -0
  52. package/dist/transforms/postPurchase/productCardPricing.d.ts +3 -0
  53. package/dist/transforms/postPurchase/productCardRows.d.ts +63 -0
  54. package/dist/transforms/postPurchase/productCardSettings.d.ts +103 -0
  55. package/dist/transforms/postPurchase/types.d.ts +2 -2
  56. package/dist/transforms/productCard/earnedText.d.ts +25 -0
  57. package/dist/transforms/productCard/priceText.d.ts +2 -0
  58. package/dist/transforms/productCard/quantitySection.d.ts +28 -0
  59. package/dist/transforms/productCard/subscriptionToggle.d.ts +18 -0
  60. package/package.json +1 -1
@@ -371,6 +371,20 @@ export declare const VariantMode: {
371
371
  readonly single: "single";
372
372
  };
373
373
  export type VariantMode = (typeof variantModes)[number];
374
+ /**
375
+ * The `variants` SECTION's modes: the product-level `variantModes` plus `productGroup` (legacy post-purchase
376
+ * L97), which chooses between the products of a product group — one menu entry per grouped product, an entry
377
+ * disabled when none of its variants is available — instead of between one product's variants. It renders
378
+ * nothing for a product that is not grouped. The `product` section keeps `variantModes`: a group choice is
379
+ * a card control, not a product display mode.
380
+ */
381
+ export declare const variantsModes: readonly ["multiple", "single", "productGroup"];
382
+ export declare const VariantsMode: {
383
+ readonly multiple: "multiple";
384
+ readonly single: "single";
385
+ readonly productGroup: "productGroup";
386
+ };
387
+ export type VariantsMode = (typeof variantsModes)[number];
374
388
  export declare const variantSelectors: readonly ["menu", "radio", "button"];
375
389
  export declare const VariantSelector: {
376
390
  readonly button: "button";
@@ -163,6 +163,10 @@ export declare const CABImageSectionFields: z.ZodObject<{
163
163
  "x-circle": "x-circle";
164
164
  "x-circle-filled": "x-circle-filled";
165
165
  }>]>>;
166
+ thumbnails: z.ZodOptional<z.ZodObject<{
167
+ limit: z.ZodDefault<z.ZodNumber>;
168
+ perLine: z.ZodDefault<z.ZodNumber>;
169
+ }, z.core.$strip>>;
166
170
  width: z.ZodDefault<z.ZodNumber>;
167
171
  mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
168
172
  effect: z.ZodDefault<z.ZodEnum<{
@@ -517,6 +521,10 @@ export declare const CABImageSection: z.ZodObject<{
517
521
  "x-circle": "x-circle";
518
522
  "x-circle-filled": "x-circle-filled";
519
523
  }>]>>;
524
+ thumbnails: z.ZodOptional<z.ZodObject<{
525
+ limit: z.ZodDefault<z.ZodNumber>;
526
+ perLine: z.ZodDefault<z.ZodNumber>;
527
+ }, z.core.$strip>>;
520
528
  width: z.ZodDefault<z.ZodNumber>;
521
529
  mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
530
  effect: z.ZodDefault<z.ZodEnum<{
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * An image's gallery thumbnails (legacy post-purchase L67/L68): a row of the product's images beneath the
4
+ * main image, `perLine` to a line and at most `limit` of them, shown only when the product has more than
5
+ * one image. Choosing a thumbnail makes it the main image until the buyer picks a variant with its own
6
+ * image. Optional and additive (REB-24817): absent means no thumbnails, and a renderer that does not
7
+ * support the field yet simply shows the main image alone.
8
+ */
9
+ export declare const CABImageThumbnails: z.ZodObject<{
10
+ limit: z.ZodDefault<z.ZodNumber>;
11
+ perLine: z.ZodDefault<z.ZodNumber>;
12
+ }, z.core.$strip>;
13
+ export type CABImageThumbnails = z.infer<typeof CABImageThumbnails>;
@@ -10,6 +10,7 @@ export * from './giftLabels';
10
10
  export * from './discount';
11
11
  export * from './icons';
12
12
  export * from './image';
13
+ export * from './imageThumbnails';
13
14
  export * from './layout';
14
15
  export * from './monetize';
15
16
  export * from './offerLabels';
@@ -13,6 +13,7 @@ export declare const CABVariantsSection: z.ZodObject<{
13
13
  variantMode: z.ZodDefault<z.ZodEnum<{
14
14
  multiple: "multiple";
15
15
  single: "single";
16
+ productGroup: "productGroup";
16
17
  }>>;
17
18
  mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
19
  effect: z.ZodDefault<z.ZodEnum<{