@lookiero/checkout 15.2.0 → 15.2.2
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/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.js +1 -1
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +1 -0
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +1 -1
- package/src/infrastructure/ui/views/item/components/productVariantSlider/__snapshots__/ProductVariantSlider.test.tsx.snap +2 -0
- package/src/infrastructure/ui/views/item/views/productVariant/__snapshots__/ProductVariant.test.tsx.snap +6 -0
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +1 -0
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.tsx +1 -1
- package/src/infrastructure/ui/views/shared/components/productVariant/__snapshots__/ProductVariant.test.tsx.snap +4 -2
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/__snapshots__/CheckoutItemsTabs.test.tsx.snap +8 -4
|
@@ -18,7 +18,7 @@ const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color
|
|
|
18
18
|
return (React.createElement(Pressable, { pointerEvents: onPress ? "auto" : "none", style: style.container, testID: "product-variant", onPress: onPress },
|
|
19
19
|
React.createElement(View, { style: style.row },
|
|
20
20
|
React.createElement(View, null,
|
|
21
|
-
React.createElement(LazyImage, { hiResSrc: cdnImageUrl({ url: media[0]?.url, width: IMAGE_WIDTH }), resizeMode: "
|
|
21
|
+
React.createElement(LazyImage, { hiResSrc: cdnImageUrl({ url: media[0]?.url, width: IMAGE_WIDTH }), resizeMode: "cover", src: cdnImageUrl({ url: media[0]?.url, width: IMAGE_WIDTH, dpi: 1 }), style: { view: [style.media, customStyle?.image] }, testID: "product-variant-media" })),
|
|
22
22
|
React.createElement(View, { style: style.descriptionContainer },
|
|
23
23
|
React.createElement(View, { style: style.infoProductVariant },
|
|
24
24
|
React.createElement(Text, { level: 2, style: style.text, variant: "detail" }, brand),
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "15.2.
|
|
2
|
-
export declare const RELEASE = "checkout@15.2.
|
|
1
|
+
export declare const VERSION = "15.2.2";
|
|
2
|
+
export declare const RELEASE = "checkout@15.2.2";
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "15.2.
|
|
2
|
-
export const RELEASE = "checkout@15.2.
|
|
1
|
+
export const VERSION = "15.2.2";
|
|
2
|
+
export const RELEASE = "checkout@15.2.2";
|
package/package.json
CHANGED
|
@@ -459,6 +459,7 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
459
459
|
style={
|
|
460
460
|
[
|
|
461
461
|
{
|
|
462
|
+
"backgroundColor": "#0C0A0A",
|
|
462
463
|
"marginHorizontal": 3,
|
|
463
464
|
},
|
|
464
465
|
{
|
|
@@ -514,6 +515,7 @@ exports[`ProductVariantSlider matches the snapshot 1`] = `
|
|
|
514
515
|
style={
|
|
515
516
|
[
|
|
516
517
|
{
|
|
518
|
+
"backgroundColor": "#0C0A0A",
|
|
517
519
|
"marginHorizontal": 3,
|
|
518
520
|
},
|
|
519
521
|
{
|
|
@@ -470,6 +470,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
470
470
|
style={
|
|
471
471
|
[
|
|
472
472
|
{
|
|
473
|
+
"backgroundColor": "#0C0A0A",
|
|
473
474
|
"marginHorizontal": 3,
|
|
474
475
|
},
|
|
475
476
|
{
|
|
@@ -525,6 +526,7 @@ exports[`ItemActions component matches the snapshot for a KEPT checkoutItem 1`]
|
|
|
525
526
|
style={
|
|
526
527
|
[
|
|
527
528
|
{
|
|
529
|
+
"backgroundColor": "#0C0A0A",
|
|
528
530
|
"marginHorizontal": 3,
|
|
529
531
|
},
|
|
530
532
|
{
|
|
@@ -1144,6 +1146,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1144
1146
|
style={
|
|
1145
1147
|
[
|
|
1146
1148
|
{
|
|
1149
|
+
"backgroundColor": "#0C0A0A",
|
|
1147
1150
|
"marginHorizontal": 3,
|
|
1148
1151
|
},
|
|
1149
1152
|
{
|
|
@@ -1199,6 +1202,7 @@ exports[`ItemActions component matches the snapshot for a REPLACED checkoutItem
|
|
|
1199
1202
|
style={
|
|
1200
1203
|
[
|
|
1201
1204
|
{
|
|
1205
|
+
"backgroundColor": "#0C0A0A",
|
|
1202
1206
|
"marginHorizontal": 3,
|
|
1203
1207
|
},
|
|
1204
1208
|
{
|
|
@@ -1818,6 +1822,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1818
1822
|
style={
|
|
1819
1823
|
[
|
|
1820
1824
|
{
|
|
1825
|
+
"backgroundColor": "#0C0A0A",
|
|
1821
1826
|
"marginHorizontal": 3,
|
|
1822
1827
|
},
|
|
1823
1828
|
{
|
|
@@ -1873,6 +1878,7 @@ exports[`ItemActions component matches the snapshot for an INITIAL checkoutItem
|
|
|
1873
1878
|
style={
|
|
1874
1879
|
[
|
|
1875
1880
|
{
|
|
1881
|
+
"backgroundColor": "#0C0A0A",
|
|
1876
1882
|
"marginHorizontal": 3,
|
|
1877
1883
|
},
|
|
1878
1884
|
{
|
|
@@ -60,7 +60,7 @@ const ProductVariant: FC<ProductVariantProps> = ({
|
|
|
60
60
|
<View>
|
|
61
61
|
<LazyImage
|
|
62
62
|
hiResSrc={cdnImageUrl({ url: media[0]?.url as string, width: IMAGE_WIDTH })}
|
|
63
|
-
resizeMode="
|
|
63
|
+
resizeMode="cover"
|
|
64
64
|
src={cdnImageUrl({ url: media[0]?.url as string, width: IMAGE_WIDTH, dpi: 1 })}
|
|
65
65
|
style={{ view: [style.media, customStyle?.image] }}
|
|
66
66
|
testID="product-variant-media"
|
|
@@ -93,6 +93,7 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
93
93
|
"borderRadius": 8,
|
|
94
94
|
"borderWidth": 2,
|
|
95
95
|
"height": 132,
|
|
96
|
+
"overflow": "hidden",
|
|
96
97
|
"width": 104,
|
|
97
98
|
},
|
|
98
99
|
undefined,
|
|
@@ -182,7 +183,7 @@ exports[`ProductVariant component matches the snapshot for a non-unique size: no
|
|
|
182
183
|
</View>
|
|
183
184
|
<Image
|
|
184
185
|
onLoad={[Function]}
|
|
185
|
-
resizeMode="
|
|
186
|
+
resizeMode="cover"
|
|
186
187
|
source={
|
|
187
188
|
{
|
|
188
189
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|
|
@@ -447,6 +448,7 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
447
448
|
"borderRadius": 8,
|
|
448
449
|
"borderWidth": 2,
|
|
449
450
|
"height": 132,
|
|
451
|
+
"overflow": "hidden",
|
|
450
452
|
"width": 104,
|
|
451
453
|
},
|
|
452
454
|
undefined,
|
|
@@ -536,7 +538,7 @@ exports[`ProductVariant component matches the snapshot for an unique size: uniqu
|
|
|
536
538
|
</View>
|
|
537
539
|
<Image
|
|
538
540
|
onLoad={[Function]}
|
|
539
|
-
resizeMode="
|
|
541
|
+
resizeMode="cover"
|
|
540
542
|
source={
|
|
541
543
|
{
|
|
542
544
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|
|
@@ -377,6 +377,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
377
377
|
"borderRadius": 8,
|
|
378
378
|
"borderWidth": 2,
|
|
379
379
|
"height": 132,
|
|
380
|
+
"overflow": "hidden",
|
|
380
381
|
"width": 104,
|
|
381
382
|
},
|
|
382
383
|
undefined,
|
|
@@ -466,7 +467,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
466
467
|
</View>
|
|
467
468
|
<Image
|
|
468
469
|
onLoad={[Function]}
|
|
469
|
-
resizeMode="
|
|
470
|
+
resizeMode="cover"
|
|
470
471
|
source={
|
|
471
472
|
{
|
|
472
473
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|
|
@@ -703,6 +704,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
703
704
|
"borderRadius": 8,
|
|
704
705
|
"borderWidth": 2,
|
|
705
706
|
"height": 132,
|
|
707
|
+
"overflow": "hidden",
|
|
706
708
|
"width": 104,
|
|
707
709
|
},
|
|
708
710
|
undefined,
|
|
@@ -792,7 +794,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
792
794
|
</View>
|
|
793
795
|
<Image
|
|
794
796
|
onLoad={[Function]}
|
|
795
|
-
resizeMode="
|
|
797
|
+
resizeMode="cover"
|
|
796
798
|
source={
|
|
797
799
|
{
|
|
798
800
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|
|
@@ -1074,6 +1076,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1074
1076
|
"borderRadius": 8,
|
|
1075
1077
|
"borderWidth": 2,
|
|
1076
1078
|
"height": 132,
|
|
1079
|
+
"overflow": "hidden",
|
|
1077
1080
|
"width": 104,
|
|
1078
1081
|
},
|
|
1079
1082
|
undefined,
|
|
@@ -1163,7 +1166,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1163
1166
|
</View>
|
|
1164
1167
|
<Image
|
|
1165
1168
|
onLoad={[Function]}
|
|
1166
|
-
resizeMode="
|
|
1169
|
+
resizeMode="cover"
|
|
1167
1170
|
source={
|
|
1168
1171
|
{
|
|
1169
1172
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|
|
@@ -1400,6 +1403,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1400
1403
|
"borderRadius": 8,
|
|
1401
1404
|
"borderWidth": 2,
|
|
1402
1405
|
"height": 132,
|
|
1406
|
+
"overflow": "hidden",
|
|
1403
1407
|
"width": 104,
|
|
1404
1408
|
},
|
|
1405
1409
|
undefined,
|
|
@@ -1489,7 +1493,7 @@ exports[`CheckoutItemTabs component matches the snapshot 1`] = `
|
|
|
1489
1493
|
</View>
|
|
1490
1494
|
<Image
|
|
1491
1495
|
onLoad={[Function]}
|
|
1492
|
-
resizeMode="
|
|
1496
|
+
resizeMode="cover"
|
|
1493
1497
|
source={
|
|
1494
1498
|
{
|
|
1495
1499
|
"uri": "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg?w=104&f=auto",
|