@lookiero/checkout 0.8.14 → 0.8.15

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.
@@ -1,4 +1,4 @@
1
- declare const COLOR_I18N_PREFIX = "color.";
1
+ declare const COLOR_I18N_PREFIX = "catalog.color.";
2
2
  declare enum I18nMessages {
3
3
  TOAST_GENERIC_ERROR = "toast_generic_error",
4
4
  ITEM_SIZE = "item.size",
@@ -1,4 +1,4 @@
1
- const COLOR_I18N_PREFIX = "color.";
1
+ const COLOR_I18N_PREFIX = "catalog.color.";
2
2
  var I18nMessages;
3
3
  (function (I18nMessages) {
4
4
  I18nMessages["TOAST_GENERIC_ERROR"] = "toast_generic_error";
@@ -14,7 +14,7 @@ import { IMAGE_WIDTH, style } from "./ProductVariant.style";
14
14
  const { colorContent } = theme();
15
15
  const ProductVariant = ({ media, brand, name, price, size: sizeProjection, color, status, discarded, country, style: customStyle, onPress, }) => {
16
16
  const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
17
- const colorLabel = useI18nMessage({ id: color.label, prefix: COLOR_I18N_PREFIX });
17
+ const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
18
18
  const sizeChangeText = useI18nMessage({ id: I18nMessages.PRODUCT_VARIANT_SIZE_CHANGE });
19
19
  const cdnImageUrl = useMediaImage();
20
20
  return (React.createElement(Pressable, { pointerEvents: onPress ? "auto" : "none", style: style.container, testID: "product-variant", onPress: onPress },
@@ -10,7 +10,7 @@ const ProductVariantDescription = ({ brand, name, price, size: sizeProjection, c
10
10
  const sizeText = useI18nMessage({ id: I18nMessages.ITEM_SIZE });
11
11
  const colorText = useI18nMessage({ id: I18nMessages.ITEM_COLOR });
12
12
  const uniqueText = useI18nMessage({ id: I18nMessages.ITEM_UNIQUE });
13
- const colorLabel = useI18nMessage({ id: color.label, prefix: COLOR_I18N_PREFIX });
13
+ const colorLabel = useI18nMessage({ id: color.name, prefix: COLOR_I18N_PREFIX });
14
14
  return (React.createElement(View, { style: style.container },
15
15
  React.createElement(Text, { level: 3, style: style.brand, detail: true }, brand),
16
16
  React.createElement(Text, { level: 2, style: style.name, body: true }, name),
@@ -24,6 +24,7 @@ interface MediaProjection {
24
24
  interface ColorProjection {
25
25
  readonly id: string;
26
26
  readonly label: string;
27
+ readonly name: string;
27
28
  }
28
29
  interface CheckoutItemProductVariantProjection {
29
30
  readonly id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.8.14",
3
+ "version": "0.8.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [