@streamscloud/embeddable 3.2.0 → 3.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.
@@ -52,7 +52,6 @@ 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,
56
55
  shortDescription: payload.shortDescription ?? null
57
56
  };
58
57
  };
@@ -19,9 +19,6 @@ export type ShortVideoViewerPayloadFragment = {
19
19
  thumbnailUrl: string | null;
20
20
  type: SchemaTypes.MediaType;
21
21
  }>;
22
- brand: {
23
- name: string;
24
- } | null;
25
22
  priceAndAvailability: {
26
23
  currency: SchemaTypes.Currency;
27
24
  price: number;
@@ -45,11 +45,6 @@ export const ShortVideoViewerPayloadFragmentDoc = {
45
45
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
46
46
  { kind: 'Field', name: { kind: 'Name', value: 'link' } },
47
47
  { kind: 'Field', name: { kind: 'Name', value: 'shortDescription' } },
48
- {
49
- kind: 'Field',
50
- name: { kind: 'Name', value: 'brand' },
51
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'name' } }] }
52
- },
53
48
  {
54
49
  kind: 'Field',
55
50
  name: { kind: 'Name', value: 'priceAndAvailability' },
@@ -17,9 +17,6 @@ fragment ShortVideoViewerPayloadFragment on Post {
17
17
  id
18
18
  link
19
19
  shortDescription
20
- brand {
21
- name
22
- }
23
20
  priceAndAvailability {
24
21
  currency
25
22
  price
@@ -37,6 +37,5 @@ export type ShortVideoViewerProductModel = {
37
37
  price: number;
38
38
  currency: Currency;
39
39
  salePrice: number | null;
40
- brandName?: string | null;
41
40
  shortDescription?: string | null;
42
41
  };
@@ -25,9 +25,6 @@ export type GetShortVideosQuery = {
25
25
  thumbnailUrl: string | null;
26
26
  type: SchemaTypes.MediaType;
27
27
  }>;
28
- brand: {
29
- name: string;
30
- } | null;
31
28
  priceAndAvailability: {
32
29
  currency: SchemaTypes.Currency;
33
30
  price: number;
@@ -87,11 +87,6 @@ export const GetShortVideosDocument = {
87
87
  { kind: 'Field', name: { kind: 'Name', value: 'id' } },
88
88
  { kind: 'Field', name: { kind: 'Name', value: 'link' } },
89
89
  { kind: 'Field', name: { kind: 'Name', value: 'shortDescription' } },
90
- {
91
- kind: 'Field',
92
- name: { kind: 'Name', value: 'brand' },
93
- selectionSet: { kind: 'SelectionSet', selections: [{ kind: 'Field', name: { kind: 'Name', value: 'name' } }] }
94
- },
95
90
  {
96
91
  kind: 'Field',
97
92
  name: { kind: 'Name', value: 'priceAndAvailability' },
@@ -58,7 +58,6 @@ const mapToProductCardModel = (model) => {
58
58
  currency: model.currency,
59
59
  price: model.price,
60
60
  salePrice: model.salePrice,
61
- brandName: model.brandName ?? null,
62
61
  shortDescription: model.shortDescription ?? null
63
62
  };
64
63
  };
@@ -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.2",
4
4
  "author": "StreamsCloud",
5
5
  "repository": "https://github.com/StreamsCloud/streamscloud-frontend-packages.git",
6
6
  "type": "module",