@streamscloud/embeddable 3.2.0 → 3.2.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.
@@ -52,7 +52,9 @@ const mapToShortVideoViewerProductModel = (payload) => {
52
52
  currency: payload.priceAndAvailability.currency,
53
53
  price: payload.priceAndAvailability.price,
54
54
  salePrice: effectiveSalePrice?.salePrice ?? null,
55
- brandName: payload.brand?.name ?? null,
55
+ brand: {
56
+ name: payload.brand?.name ?? null
57
+ },
56
58
  shortDescription: payload.shortDescription ?? null
57
59
  };
58
60
  };
@@ -37,6 +37,8 @@ export type ShortVideoViewerProductModel = {
37
37
  price: number;
38
38
  currency: Currency;
39
39
  salePrice: number | null;
40
- brandName?: string | null;
40
+ brand?: {
41
+ name?: string | null;
42
+ };
41
43
  shortDescription?: string | null;
42
44
  };
@@ -58,7 +58,9 @@ const mapToProductCardModel = (model) => {
58
58
  currency: model.currency,
59
59
  price: model.price,
60
60
  salePrice: model.salePrice,
61
- brandName: model.brandName ?? null,
61
+ brand: {
62
+ name: model.brand?.name ?? null
63
+ },
62
64
  shortDescription: model.shortDescription ?? null
63
65
  };
64
66
  };
@@ -28,6 +28,8 @@ export type StreamLayoutShortVideoProductModel = {
28
28
  price: number;
29
29
  currency: Currency;
30
30
  salePrice: number | null;
31
- brandName?: string | null;
31
+ brand?: {
32
+ name?: string | null;
33
+ };
32
34
  shortDescription?: string | null;
33
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/embeddable",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",