@rebuy/rebuy 3.12.0 → 3.12.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.
package/dist/index.cjs
CHANGED
|
@@ -4678,16 +4678,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
4678
4678
|
gridCardImage(image),
|
|
4679
4679
|
title,
|
|
4680
4680
|
...variantTitle,
|
|
4681
|
+
...reviews,
|
|
4681
4682
|
price,
|
|
4682
4683
|
...description,
|
|
4683
|
-
...reviews,
|
|
4684
4684
|
...variants,
|
|
4685
4685
|
...quantity,
|
|
4686
4686
|
...subscription,
|
|
4687
4687
|
addButton
|
|
4688
4688
|
];
|
|
4689
4689
|
}
|
|
4690
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
4690
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
4691
4691
|
const actions = [...subscription, addButton];
|
|
4692
4692
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
4693
4693
|
const card = {
|
package/dist/index.mjs
CHANGED
|
@@ -4392,16 +4392,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
4392
4392
|
gridCardImage(image),
|
|
4393
4393
|
title,
|
|
4394
4394
|
...variantTitle,
|
|
4395
|
+
...reviews,
|
|
4395
4396
|
price,
|
|
4396
4397
|
...description,
|
|
4397
|
-
...reviews,
|
|
4398
4398
|
...variants,
|
|
4399
4399
|
...quantity,
|
|
4400
4400
|
...subscription,
|
|
4401
4401
|
addButton
|
|
4402
4402
|
];
|
|
4403
4403
|
}
|
|
4404
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
4404
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
4405
4405
|
const actions = [...subscription, addButton];
|
|
4406
4406
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
4407
4407
|
const card = {
|
package/dist/server/index.cjs
CHANGED
|
@@ -3215,16 +3215,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
3215
3215
|
gridCardImage(image),
|
|
3216
3216
|
title,
|
|
3217
3217
|
...variantTitle,
|
|
3218
|
+
...reviews,
|
|
3218
3219
|
price,
|
|
3219
3220
|
...description,
|
|
3220
|
-
...reviews,
|
|
3221
3221
|
...variants,
|
|
3222
3222
|
...quantity,
|
|
3223
3223
|
...subscription,
|
|
3224
3224
|
addButton
|
|
3225
3225
|
];
|
|
3226
3226
|
}
|
|
3227
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
3227
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
3228
3228
|
const actions = [...subscription, addButton];
|
|
3229
3229
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
3230
3230
|
const card = {
|
package/dist/server/index.mjs
CHANGED
|
@@ -3167,16 +3167,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
3167
3167
|
gridCardImage(image),
|
|
3168
3168
|
title,
|
|
3169
3169
|
...variantTitle,
|
|
3170
|
+
...reviews,
|
|
3170
3171
|
price,
|
|
3171
3172
|
...description,
|
|
3172
|
-
...reviews,
|
|
3173
3173
|
...variants,
|
|
3174
3174
|
...quantity,
|
|
3175
3175
|
...subscription,
|
|
3176
3176
|
addButton
|
|
3177
3177
|
];
|
|
3178
3178
|
}
|
|
3179
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
3179
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
3180
3180
|
const actions = [...subscription, addButton];
|
|
3181
3181
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
3182
3182
|
const card = {
|
|
@@ -3083,16 +3083,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
3083
3083
|
gridCardImage(image),
|
|
3084
3084
|
title,
|
|
3085
3085
|
...variantTitle,
|
|
3086
|
+
...reviews,
|
|
3086
3087
|
price,
|
|
3087
3088
|
...description,
|
|
3088
|
-
...reviews,
|
|
3089
3089
|
...variants,
|
|
3090
3090
|
...quantity,
|
|
3091
3091
|
...subscription,
|
|
3092
3092
|
addButton
|
|
3093
3093
|
];
|
|
3094
3094
|
}
|
|
3095
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
3095
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
3096
3096
|
const actions = [...subscription, addButton];
|
|
3097
3097
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
3098
3098
|
const card = {
|
|
@@ -3026,16 +3026,16 @@ var buildOfferCard = (settings, horizontal) => {
|
|
|
3026
3026
|
gridCardImage(image),
|
|
3027
3027
|
title,
|
|
3028
3028
|
...variantTitle,
|
|
3029
|
+
...reviews,
|
|
3029
3030
|
price,
|
|
3030
3031
|
...description,
|
|
3031
|
-
...reviews,
|
|
3032
3032
|
...variants,
|
|
3033
3033
|
...quantity,
|
|
3034
3034
|
...subscription,
|
|
3035
3035
|
addButton
|
|
3036
3036
|
];
|
|
3037
3037
|
}
|
|
3038
|
-
const info = rowsLayout([title, ...variantTitle, price, ...description, ...
|
|
3038
|
+
const info = rowsLayout([title, ...variantTitle, ...reviews, price, ...description, ...variants]);
|
|
3039
3039
|
const actions = [...subscription, addButton];
|
|
3040
3040
|
const actionsCell = actions.length === 1 ? actions[0] : rowsLayout(actions);
|
|
3041
3041
|
const card = {
|
|
@@ -7,9 +7,12 @@ export declare const borderToken: <T extends readonly string[]>(tokens: T, value
|
|
|
7
7
|
*
|
|
8
8
|
* `horizontal` mirrors the v1 layout orientation (see `convertOfferToV2`):
|
|
9
9
|
* - horizontal (v1 `list`/default, vertical-stacked products): a 3-column grid card —
|
|
10
|
-
* image | title/price/
|
|
10
|
+
* image | title/reviews/price/variants | actions — matching the compact V1 row.
|
|
11
11
|
* - vertical (v1 `grid`/`line`, side-by-side products): a flat top-to-bottom stack
|
|
12
|
-
* (image → title → price → … → button), the narrow column card.
|
|
12
|
+
* (image → title → reviews → price → … → button), the narrow column card.
|
|
13
|
+
*
|
|
14
|
+
* Reviews sit ABOVE the price in both orientations: legacy `OfferDetail` renders the star
|
|
15
|
+
* rating between the variant title and the price line (REB-24225).
|
|
13
16
|
*
|
|
14
17
|
* Quantity is a full-width row beneath the card in the horizontal layout; in the vertical
|
|
15
18
|
* layout it sits inline in the stack. NOT carried: the savings-amount badge (no live v1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.1",
|
|
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.",
|