@rebuy/rebuy 2.36.0-rc.1 → 2.36.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.js +8 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +2 -2
- package/dist/schema/cabShopConfig.d.ts +1 -1
- package/dist/schema/smartCart.d.ts +4 -4
- package/dist/schema/smartCart.d.ts.map +1 -1
- package/dist/schema/user-config.js +8 -1
- package/dist/schema/user-config.js.map +2 -2
- package/dist/schema/user-config.mjs +8 -1
- package/dist/schema/user-config.mjs.map +2 -2
- package/dist/schema/userConfig.d.ts +1 -1
- package/dist/server/index.js +61 -58
- package/dist/server/index.js.map +4 -4
- package/dist/server/index.mjs +61 -58
- package/dist/server/index.mjs.map +4 -4
- package/dist/transforms/index.js +17 -23
- package/dist/transforms/index.js.map +3 -3
- package/dist/transforms/index.mjs +17 -23
- package/dist/transforms/index.mjs.map +3 -3
- package/dist/transforms/normalizeTokens.d.ts +1 -0
- package/dist/transforms/normalizeTokens.d.ts.map +1 -1
- package/dist/transforms/progressBarV1/convertProgressBarToV2.d.ts.map +1 -1
- package/dist/transforms/reactBarChrome.d.ts +18 -0
- package/dist/transforms/reactBarChrome.d.ts.map +1 -0
- package/dist/transforms/smartCart/convertSmartCartProgressBarToV2.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1037,8 +1037,15 @@ var SmartCartTier = import_zod.z.looseObject({
|
|
|
1037
1037
|
* onsite `product_tier_image`: on a product (gift) tier, show the gift's product image in the step-row
|
|
1038
1038
|
* slot instead of the generic bag icon (React `TierProgressIcon` swaps in the image when this is set and
|
|
1039
1039
|
* an image resolves). Per-tier; the client resolves the image (config carries only product IDs).
|
|
1040
|
+
*
|
|
1041
|
+
* `.catch(undefined)` is load-bearing. This key was previously unknown-and-ignored by the `looseObject`;
|
|
1042
|
+
* declaring it as a real boolean means a stored non-boolean (`1` / `"1"` / `"true"`) would now FAIL the
|
|
1043
|
+
* tier — and since `SmartCartConfig` is parsed `.nullish().catch(undefined)` (userConfig/cabShopConfig)
|
|
1044
|
+
* with no intermediate catch, one drifted flag would drop EVERY progress bar for the shop, not just the
|
|
1045
|
+
* flag. The converter only reads it for truthiness (`gift && tier.productTierImage`), so failing open to
|
|
1046
|
+
* `undefined` (bag-icon fallback, the documented default) is strictly safer than that blast radius.
|
|
1040
1047
|
*/
|
|
1041
|
-
productTierImage: import_zod.z.boolean().optional(),
|
|
1048
|
+
productTierImage: import_zod.z.boolean().optional().catch(void 0),
|
|
1042
1049
|
type: import_zod.z.string().optional(),
|
|
1043
1050
|
/**
|
|
1044
1051
|
* onsite's PER-TIER unit switch (`unlock_condition_type`): `'item_quantity'` makes `minimum` an
|