@rebuy/rebuy 2.35.0 → 2.36.0-rc.1

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 (35) hide show
  1. package/dist/index.js +13 -0
  2. package/dist/index.js.map +2 -2
  3. package/dist/index.mjs +13 -0
  4. package/dist/index.mjs.map +2 -2
  5. package/dist/schema/cabShopConfig.d.ts +1 -0
  6. package/dist/schema/cabShopConfig.d.ts.map +1 -1
  7. package/dist/schema/checkout-and-beyond/index.js +7 -0
  8. package/dist/schema/checkout-and-beyond/index.js.map +2 -2
  9. package/dist/schema/checkout-and-beyond/index.mjs +7 -0
  10. package/dist/schema/checkout-and-beyond/index.mjs.map +2 -2
  11. package/dist/schema/smartCart.d.ts +4 -0
  12. package/dist/schema/smartCart.d.ts.map +1 -1
  13. package/dist/schema/user-config.js +6 -0
  14. package/dist/schema/user-config.js.map +2 -2
  15. package/dist/schema/user-config.mjs +6 -0
  16. package/dist/schema/user-config.mjs.map +2 -2
  17. package/dist/schema/userConfig.d.ts +1 -0
  18. package/dist/schema/userConfig.d.ts.map +1 -1
  19. package/dist/schema/widget-data.js +7 -0
  20. package/dist/schema/widget-data.js.map +2 -2
  21. package/dist/schema/widget-data.mjs +7 -0
  22. package/dist/schema/widget-data.mjs.map +2 -2
  23. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +2 -0
  24. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts.map +1 -1
  25. package/dist/server/index.js +95 -53
  26. package/dist/server/index.js.map +4 -4
  27. package/dist/server/index.mjs +95 -53
  28. package/dist/server/index.mjs.map +4 -4
  29. package/dist/transforms/index.js +55 -17
  30. package/dist/transforms/index.js.map +3 -3
  31. package/dist/transforms/index.mjs +55 -17
  32. package/dist/transforms/index.mjs.map +3 -3
  33. package/dist/transforms/progressBarV1/convertProgressBarToV2.d.ts.map +1 -1
  34. package/dist/transforms/smartCart/convertSmartCartProgressBarToV2.d.ts.map +1 -1
  35. package/package.json +13 -3
package/dist/index.js CHANGED
@@ -1033,6 +1033,12 @@ var SmartCartTier = import_zod.z.looseObject({
1033
1033
  productAmountRemainingLabel: import_zod.z.boolean().optional(),
1034
1034
  productAmountRemainingLabelText: import_zod.z.string().optional(),
1035
1035
  products: import_zod.z.array(SmartCartTierProduct).optional(),
1036
+ /**
1037
+ * onsite `product_tier_image`: on a product (gift) tier, show the gift's product image in the step-row
1038
+ * slot instead of the generic bag icon (React `TierProgressIcon` swaps in the image when this is set and
1039
+ * an image resolves). Per-tier; the client resolves the image (config carries only product IDs).
1040
+ */
1041
+ productTierImage: import_zod.z.boolean().optional(),
1036
1042
  type: import_zod.z.string().optional(),
1037
1043
  /**
1038
1044
  * onsite's PER-TIER unit switch (`unlock_condition_type`): `'item_quantity'` makes `minimum` an
@@ -2510,6 +2516,13 @@ var CABProgressTier = import_zod23.z.object({
2510
2516
  * emits no caption slot rather than an empty one). Plain text — a compact icon+label.
2511
2517
  */
2512
2518
  label: import_zod23.z.record(import_zod23.z.string(), import_zod23.z.string()).optional(),
2519
+ /**
2520
+ * Smart-cart product (gift) tiers only (onsite `product_tier_image`): show the gift's product image in
2521
+ * the step-row slot instead of the generic bag icon. The converter can't supply the image URL (config
2522
+ * carries only product IDs), so the client resolves it (authoritative Shopify featured image, React
2523
+ * parity) and falls back to the bag icon when the flag is off or no image resolves. Default false.
2524
+ */
2525
+ productTierImage: import_zod23.z.boolean().default(false),
2513
2526
  /**
2514
2527
  * The tier's goal, measured per `unit`. `currency` (default): SHOP-currency cents — the canonical
2515
2528
  * fallback: when the buyer's presentment currency has no entry in `thresholds`, the client