@rebuy/rebuy 3.28.0 → 3.29.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 +8 -1
- package/dist/index.mjs +8 -1
- package/dist/schema/checkout-and-beyond/index.cjs +8 -1
- package/dist/schema/checkout-and-beyond/index.mjs +8 -1
- package/dist/schema/widget-data.cjs +8 -1
- package/dist/schema/widget-data.mjs +8 -1
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +1 -1
- package/dist/server/index.cjs +362 -156
- package/dist/server/index.mjs +362 -156
- package/dist/transforms/index.cjs +236 -30
- package/dist/transforms/index.mjs +236 -30
- package/dist/transforms/postPurchase/convertImageBlock.d.ts +4 -0
- package/dist/transforms/postPurchase/convertImageContentBlock.d.ts +7 -0
- package/dist/transforms/postPurchase/convertImageContentText.d.ts +5 -0
- package/dist/transforms/postPurchase/convertImageFrame.d.ts +9 -0
- package/dist/transforms/postPurchase/convertMessagePreview.d.ts +3 -3
- package/dist/transforms/postPurchase/convertProductInformation.d.ts +4 -0
- package/dist/transforms/postPurchase/imageContentSettings.d.ts +50 -0
- package/dist/transforms/postPurchase/sizeImageSource.d.ts +2 -0
- package/dist/transforms/postPurchase/types.d.ts +7 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3242,7 +3242,14 @@ var CABReviewsSection = import_zod36.z.object({
|
|
|
3242
3242
|
sectionId: import_zod36.z.uuid().default(() => (0, import_uuid11.v7)()),
|
|
3243
3243
|
sectionType: import_zod36.z.literal(SectionType.reviews).default(SectionType.reviews),
|
|
3244
3244
|
size: import_zod36.z.enum(reviewsSizes).default(ReviewsSize.default),
|
|
3245
|
-
|
|
3245
|
+
/**
|
|
3246
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
3247
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
3248
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
3249
|
+
* the whole reviews section.
|
|
3250
|
+
*/
|
|
3251
|
+
strokeColor: import_zod36.z.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
3252
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
3246
3253
|
strokeWidth: import_zod36.z.number().nonnegative().default(0)
|
|
3247
3254
|
});
|
|
3248
3255
|
|
package/dist/index.mjs
CHANGED
|
@@ -2916,7 +2916,14 @@ var CABReviewsSection = z36.object({
|
|
|
2916
2916
|
sectionId: z36.uuid().default(() => uuidv710()),
|
|
2917
2917
|
sectionType: z36.literal(SectionType.reviews).default(SectionType.reviews),
|
|
2918
2918
|
size: z36.enum(reviewsSizes).default(ReviewsSize.default),
|
|
2919
|
-
|
|
2919
|
+
/**
|
|
2920
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
2921
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
2922
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
2923
|
+
* the whole reviews section.
|
|
2924
|
+
*/
|
|
2925
|
+
strokeColor: z36.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
2926
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
2920
2927
|
strokeWidth: z36.number().nonnegative().default(0)
|
|
2921
2928
|
});
|
|
2922
2929
|
|
|
@@ -1572,7 +1572,14 @@ var CABReviewsSection = import_zod16.z.object({
|
|
|
1572
1572
|
sectionId: import_zod16.z.uuid().default(() => (0, import_uuid10.v7)()),
|
|
1573
1573
|
sectionType: import_zod16.z.literal(SectionType.reviews).default(SectionType.reviews),
|
|
1574
1574
|
size: import_zod16.z.enum(reviewsSizes).default(ReviewsSize.default),
|
|
1575
|
-
|
|
1575
|
+
/**
|
|
1576
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
1577
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
1578
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
1579
|
+
* the whole reviews section.
|
|
1580
|
+
*/
|
|
1581
|
+
strokeColor: import_zod16.z.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
1582
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
1576
1583
|
strokeWidth: import_zod16.z.number().nonnegative().default(0)
|
|
1577
1584
|
});
|
|
1578
1585
|
|
|
@@ -1362,7 +1362,14 @@ var CABReviewsSection = z16.object({
|
|
|
1362
1362
|
sectionId: z16.uuid().default(() => uuidv710()),
|
|
1363
1363
|
sectionType: z16.literal(SectionType.reviews).default(SectionType.reviews),
|
|
1364
1364
|
size: z16.enum(reviewsSizes).default(ReviewsSize.default),
|
|
1365
|
-
|
|
1365
|
+
/**
|
|
1366
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
1367
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
1368
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
1369
|
+
* the whole reviews section.
|
|
1370
|
+
*/
|
|
1371
|
+
strokeColor: z16.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
1372
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
1366
1373
|
strokeWidth: z16.number().nonnegative().default(0)
|
|
1367
1374
|
});
|
|
1368
1375
|
|
|
@@ -1399,7 +1399,14 @@ var CABReviewsSection = import_zod19.z.object({
|
|
|
1399
1399
|
sectionId: import_zod19.z.uuid().default(() => (0, import_uuid10.v7)()),
|
|
1400
1400
|
sectionType: import_zod19.z.literal(SectionType.reviews).default(SectionType.reviews),
|
|
1401
1401
|
size: import_zod19.z.enum(reviewsSizes).default(ReviewsSize.default),
|
|
1402
|
-
|
|
1402
|
+
/**
|
|
1403
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
1404
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
1405
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
1406
|
+
* the whole reviews section.
|
|
1407
|
+
*/
|
|
1408
|
+
strokeColor: import_zod19.z.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
1409
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
1403
1410
|
strokeWidth: import_zod19.z.number().nonnegative().default(0)
|
|
1404
1411
|
});
|
|
1405
1412
|
|
|
@@ -1374,7 +1374,14 @@ var CABReviewsSection = z19.object({
|
|
|
1374
1374
|
sectionId: z19.uuid().default(() => uuidv710()),
|
|
1375
1375
|
sectionType: z19.literal(SectionType.reviews).default(SectionType.reviews),
|
|
1376
1376
|
size: z19.enum(reviewsSizes).default(ReviewsSize.default),
|
|
1377
|
-
|
|
1377
|
+
/**
|
|
1378
|
+
* Star outline color, interpolated into a style by the renderer, so it is hex-constrained like
|
|
1379
|
+
* `CABButtonSection.color`. The legacy source (`PostPurchaseSettings.styles.starStrokeColor`) is a free
|
|
1380
|
+
* string: its converter must validate and fall back to this default rather than let one odd value drop
|
|
1381
|
+
* the whole reviews section.
|
|
1382
|
+
*/
|
|
1383
|
+
strokeColor: z19.string().regex(HEX_COLOR_REGEX).default("#fadb14"),
|
|
1384
|
+
/** Star outline width in px; `0` draws no outline. The legacy `styles.strokeWidth` is a STRING ('1') — its converter coerces. */
|
|
1378
1385
|
strokeWidth: z19.number().nonnegative().default(0)
|
|
1379
1386
|
});
|
|
1380
1387
|
|
|
@@ -172,7 +172,6 @@ export declare const LanguageKey: {
|
|
|
172
172
|
readonly zh: "zh";
|
|
173
173
|
};
|
|
174
174
|
export type LanguageKey = (typeof languageKeys)[number];
|
|
175
|
-
/** Runtime cart/order events a variable mutator can fire on (the events phase of REB-22472). */
|
|
176
175
|
/**
|
|
177
176
|
* Platform chrome a `layout` can wear. A frame changes how a renderer wraps the section, never its data, so a
|
|
178
177
|
* framed section stays a plain `layout` rather than becoming its own section type (a `callout` is passive
|
|
@@ -184,6 +183,7 @@ export declare const LayoutFrame: {
|
|
|
184
183
|
readonly "offer-content": "offer-content";
|
|
185
184
|
};
|
|
186
185
|
export type LayoutFrame = (typeof layoutFrames)[number];
|
|
186
|
+
/** Runtime cart/order events a variable mutator can fire on (the events phase of REB-22472). */
|
|
187
187
|
export declare const mutatorEvents: readonly ["item_added", "quantity_changed", "variant_selected"];
|
|
188
188
|
export declare const MutatorEvent: {
|
|
189
189
|
readonly item_added: "item_added";
|