@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.
- package/dist/index.cjs +971 -787
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +971 -787
- package/dist/pricing/index.cjs +58 -1
- package/dist/pricing/index.d.ts +2 -0
- package/dist/pricing/index.mjs +58 -1
- package/dist/pricing/postPurchaseDisplayFacts.d.ts +36 -0
- package/dist/pricing/postPurchaseDisplayPrice.d.ts +8 -0
- package/dist/pricing/postPurchaseReduction.d.ts +17 -0
- package/dist/schema/checkout-and-beyond/constants.cjs +4 -0
- package/dist/schema/checkout-and-beyond/constants.mjs +4 -0
- package/dist/schema/checkout-and-beyond/index.cjs +388 -374
- package/dist/schema/checkout-and-beyond/index.mjs +388 -374
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/postPurchaseAdmission.d.ts +33 -0
- package/dist/schema/postPurchaseDisplayPrice.d.ts +31 -0
- package/dist/schema/postPurchaseFollowups.d.ts +47 -0
- package/dist/schema/postPurchaseHealth.d.ts +5 -0
- package/dist/schema/postPurchasePlanCatalog.d.ts +2 -0
- package/dist/schema/postPurchaseProduct.d.ts +2 -0
- package/dist/schema/postPurchaseProductCollectionView.d.ts +62 -0
- package/dist/schema/postPurchaseProductView.d.ts +65 -0
- package/dist/schema/postPurchaseRecovery.d.ts +47 -0
- package/dist/schema/postPurchaseSubscriptionProduct.d.ts +2 -0
- package/dist/schema/postPurchaseUpgrade.d.ts +117 -0
- package/dist/schema/widget-data.cjs +452 -441
- package/dist/schema/widget-data.mjs +452 -441
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +14 -0
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +8 -0
- package/dist/schema/widgets/checkout-and-beyond/imageThumbnails.d.ts +13 -0
- package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +1 -0
- package/dist/server/index.cjs +1721 -1419
- package/dist/server/index.mjs +1707 -1405
- package/dist/server/postPurchasePlanCatalog.d.ts +4 -1
- package/dist/server/preparePostPurchaseAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseCollectionGroup.d.ts +57 -0
- package/dist/server/preparePostPurchaseCollectionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupDefault.d.ts +53 -0
- package/dist/server/preparePostPurchaseGroupView.d.ts +53 -0
- package/dist/server/preparePostPurchaseMemberView.d.ts +159 -0
- package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +53 -0
- package/dist/server/preparePostPurchaseQuantityView.d.ts +53 -0
- package/dist/server/preparePostPurchaseSubscription.d.ts +1 -0
- package/dist/server/selectPostPurchaseChoice.d.ts +1 -0
- package/dist/transforms/index.cjs +980 -581
- package/dist/transforms/index.mjs +980 -581
- package/dist/transforms/postPurchase/convertProductInformation.d.ts +6 -2
- package/dist/transforms/postPurchase/productCardControls.d.ts +7 -0
- package/dist/transforms/postPurchase/productCardCosts.d.ts +3 -0
- package/dist/transforms/postPurchase/productCardPricing.d.ts +3 -0
- package/dist/transforms/postPurchase/productCardRows.d.ts +63 -0
- package/dist/transforms/postPurchase/productCardSettings.d.ts +103 -0
- package/dist/transforms/postPurchase/types.d.ts +2 -2
- package/dist/transforms/productCard/earnedText.d.ts +25 -0
- package/dist/transforms/productCard/priceText.d.ts +2 -0
- package/dist/transforms/productCard/quantitySection.d.ts +28 -0
- package/dist/transforms/productCard/subscriptionToggle.d.ts +18 -0
- 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>;
|
|
@@ -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<{
|