@designcrowd/library.brand-page 5.15.3 → 5.15.4

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.
Files changed (104) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-P6321XBu.js → CreatedOnBrandCrowd-de-de-D-JqIBXF.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CB2Vbc_1.js → CreatedOnBrandCrowd-en-us-rj1RdP3D.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BUzOkzZ1.js → CreatedOnBrandCrowd-es-es-CQjoXEVn.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BGhklGg-.js → CreatedOnBrandCrowd-fr-ca-BLfDC22k.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BGhklGg-.js → CreatedOnBrandCrowd-fr-fr-BLfDC22k.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DjkF8yHg.js → CreatedOnBrandCrowd-pt-br-DA4HMlpw.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DjkF8yHg.js → CreatedOnBrandCrowd-pt-pt-DA4HMlpw.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-Blsa8CUj.js → CreatedOnDcom-de-de-DcSzC02I.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-CBk25ntF.js → CreatedOnDcom-en-us-Cj099v1g.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-D1ghG1-O.js → CreatedOnDcom-es-es-BLMAaoWm.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-C0igjVq3.js → CreatedOnDcom-fr-ca-DT5jxd5X.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-BAO9DjJx.js → CreatedOnDcom-fr-fr-BVT8h3pj.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DIq8gG3f.js → CreatedOnDcom-pt-br-DP4jKxkV.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-De83jTtG.js → CreatedOnDcom-pt-pt-B6K9BtIo.js} +1 -1
  15. package/lib/src/brand-page/utils/migration/migration-07.js +2 -1
  16. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +3 -1
  17. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.js +0 -1
  18. package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +0 -2
  19. package/lib/src/brand-page-maker/constants/config-settings-constant.js +2 -2
  20. package/lib/src/brand-page-maker/constants/index.js +0 -2
  21. package/lib/src/brand-page-maker/stores/user/user-store.js +0 -1
  22. package/lib/src/{bundled-translations-Gwpp-xB6.js → bundled-translations-C35ICQCS.js} +16 -18
  23. package/lib/src/{bundled-translations.de-DE-CB4KkNf3.js → bundled-translations.de-DE-B3sIK6Yw.js} +11 -13
  24. package/lib/src/{bundled-translations.es-ES-27tfJoU5.js → bundled-translations.es-ES-CJCflztK.js} +13 -15
  25. package/lib/src/{bundled-translations.fr-CA-SDhUJ5C0.js → bundled-translations.fr-CA-CtlwKcDs.js} +16 -18
  26. package/lib/src/{bundled-translations.fr-FR-_THRUXSu.js → bundled-translations.fr-FR-CjDBsRhl.js} +20 -22
  27. package/lib/src/{bundled-translations.pt-BR-Cet1bnj3.js → bundled-translations.pt-BR-CNuFzR0R.js} +17 -19
  28. package/lib/src/{bundled-translations.pt-PT-BWuPalqF.js → bundled-translations.pt-PT-D2Ak5M-w.js} +4 -6
  29. package/lib/src/bundles/bundled-translations.de-DE.json +0 -7
  30. package/lib/src/bundles/bundled-translations.es-ES.json +0 -7
  31. package/lib/src/bundles/bundled-translations.fr-CA.json +0 -7
  32. package/lib/src/bundles/bundled-translations.fr-FR.json +0 -7
  33. package/lib/src/bundles/bundled-translations.json +0 -7
  34. package/lib/src/bundles/bundled-translations.pt-BR.json +0 -7
  35. package/lib/src/bundles/bundled-translations.pt-PT.json +0 -7
  36. package/lib/src/composables/useTranslate.d.ts +1 -2
  37. package/lib/src/composables/useTranslate.js +1 -2
  38. package/lib/src/constants/ui.d.ts +0 -1
  39. package/lib/src/css/library.brand-page-brandCrowd.min.css +22 -68
  40. package/lib/src/css/library.brand-page-brandPage.min.css +22 -68
  41. package/lib/src/css/library.brand-page-designCom.min.css +22 -68
  42. package/lib/src/css/library.brand-page-preview.min.css +22 -68
  43. package/lib/src/index.mjs +1 -1
  44. package/lib/src/{lib-B3T2jOqU.js → lib-DV-z72zv.js} +9928 -10096
  45. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.stories.js +0 -1
  46. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +3 -1
  47. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.js +3 -1
  48. package/lib/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.d.ts +112 -0
  49. package/lib/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.js +135 -0
  50. package/lib/src/shared/content-settings/models.d.ts +0 -1
  51. package/lib/src/shared/content-settings/models.js +0 -1
  52. package/lib/src/shared/ecommerce-settings/store/shop-settings-store.d.ts +3 -1
  53. package/lib/src/shared/ecommerce-settings/store/shop-settings-store.js +2 -2
  54. package/lib/src/shared/models.d.ts +0 -1
  55. package/lib/src/shared/my-uploads/MyMedia.stories.js +0 -1
  56. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -1
  57. package/package.json +1 -1
  58. package/src/brand-page/components/logo/LogoRender.vue +1 -0
  59. package/src/brand-page/components/shop/FeaturedDisplay.vue +6 -7
  60. package/src/brand-page/components/shop/PaymentModal.vue +2 -0
  61. package/src/brand-page/components/shop/ProductDetailModal.vue +1 -2
  62. package/src/brand-page/components/shop/Shop.vue +31 -12
  63. package/src/brand-page/components/shop/TextDisplay.vue +6 -7
  64. package/src/brand-page/components/shop/ThumbnailDisplay.vue +6 -7
  65. package/src/brand-page/utils/migration/migration-07.ts +2 -1
  66. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.stories.ts +0 -1
  67. package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +0 -2
  68. package/src/brand-page-maker/components/shop/AddOrEditProductContainer.vue +8 -3
  69. package/src/brand-page-maker/constants/config-settings-constant.ts +2 -2
  70. package/src/brand-page-maker/constants/index.ts +0 -2
  71. package/src/brand-page-maker/stores/user/user-store.ts +0 -1
  72. package/src/bundles/bundled-translations.de-DE.json +0 -7
  73. package/src/bundles/bundled-translations.es-ES.json +0 -7
  74. package/src/bundles/bundled-translations.fr-CA.json +0 -7
  75. package/src/bundles/bundled-translations.fr-FR.json +0 -7
  76. package/src/bundles/bundled-translations.json +0 -7
  77. package/src/bundles/bundled-translations.pt-BR.json +0 -7
  78. package/src/bundles/bundled-translations.pt-PT.json +0 -7
  79. package/src/composables/useTranslate.ts +0 -2
  80. package/src/constants/ui.ts +0 -1
  81. package/src/shared/content-settings/components/content-settings/ContentSettings.stories.ts +0 -1
  82. package/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.ts +3 -1
  83. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.mixin.ts +168 -0
  84. package/src/shared/content-settings/components/replace-image-base-settings/ReplaceImageBaseSettings.vue +19 -215
  85. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.de-DE.json +0 -1
  86. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.es-ES.json +0 -1
  87. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.fr-CA.json +0 -1
  88. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.fr-FR.json +0 -1
  89. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.json +0 -1
  90. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.pt-BR.json +0 -1
  91. package/src/shared/content-settings/components/replace-image-base-settings/i18n/replace-image-setting.pt-PT.json +0 -1
  92. package/src/shared/content-settings/models.ts +0 -1
  93. package/src/shared/ecommerce-settings/components/product-config-field/ProductConfigOption.vue +2 -4
  94. package/src/shared/ecommerce-settings/store/shop-settings-store.ts +4 -2
  95. package/src/shared/models.ts +0 -1
  96. package/src/shared/my-uploads/MyMedia.stories.ts +0 -1
  97. package/src/shared/video-library/VideoLibrary.vue +0 -374
  98. package/src/shared/video-library/i18n/video-library.de-DE.json +0 -8
  99. package/src/shared/video-library/i18n/video-library.es-ES.json +0 -8
  100. package/src/shared/video-library/i18n/video-library.fr-CA.json +0 -8
  101. package/src/shared/video-library/i18n/video-library.fr-FR.json +0 -8
  102. package/src/shared/video-library/i18n/video-library.json +0 -8
  103. package/src/shared/video-library/i18n/video-library.pt-BR.json +0 -8
  104. package/src/shared/video-library/i18n/video-library.pt-PT.json +0 -8
@@ -52,10 +52,10 @@
52
52
  :is-delete-enabled="isDeleteEnabled"
53
53
  :media-type="mediaType"
54
54
  :supported-file-extensions="imageExtension"
55
- :desired-width="mediaSettings?.desiredWidth"
56
- :desired-height="mediaSettings?.desiredHeight"
57
- :max-file-size="mediaSettings?.maxFilesize"
58
- :max-files="mediaSettings?.maxFiles"
55
+ :desired-width="mediaSettings.desiredWidth"
56
+ :desired-height="mediaSettings.desiredHeight"
57
+ :max-file-size="mediaSettings.maxFilesize"
58
+ :max-files="mediaSettings.maxFiles"
59
59
  @on-select-image="onImageSelected"
60
60
  @on-delete-image="onDeleteImage"
61
61
  />
@@ -65,9 +65,6 @@
65
65
  <div v-if="tab.id === 'IMAGE_LIBRARY'">
66
66
  <UnsplashLibrary @on-select-image="onDesignSelected" />
67
67
  </div>
68
- <div v-if="tab.id === 'VIDEO_LIBRARY'">
69
- <VideoLibrary @on-select-video="onDesignSelected" />
70
- </div>
71
68
  <div v-if="tab.id === 'SHAPE_LIBRARY'">
72
69
  <ShapeLibrary @on-select-image="onShapeSelected" />
73
70
  </div>
@@ -75,221 +72,28 @@
75
72
  </div>
76
73
  </div>
77
74
  </template>
78
-
79
- <script setup lang="ts">
80
- import type { PropType } from 'vue';
81
- import { computed, ref, onMounted } from 'vue';
75
+ <script>
82
76
  import { Button } from '@designcrowd/fe-shared-lib';
83
77
  import MyUploads from '../../../my-uploads/MyUploads.vue';
84
78
  import MyDesigns from '../../../my-designs/MyDesigns.vue';
85
79
  import IconLibrary from '../icon-library/IconLibrary.vue';
80
+ import ReplaceImageBaseSettings from './ReplaceImageBaseSettings.mixin';
86
81
  import UnsplashLibrary from '../../../unsplash-library/UnsplashLibrary.vue';
87
82
  import ShapeLibrary from '../../../shape-library/ShapeLibrary.vue';
88
- import VideoLibrary from '../../../video-library/VideoLibrary.vue';
89
- import type {
90
- Tab,
91
- ReplaceImageSettingsTabId,
92
- ReplaceImageSettingsBase,
93
- } from '../../models';
94
- import type { UserMediaItemWithDimensions } from '../../../my-uploads/models';
95
- import {
96
- useBrandPageContainerStore,
97
- useBrandPageMakerUserStore,
98
- type BrandPageSettingsMode,
99
- } from '../../../../brand-page-maker/stores';
100
- import axios from 'axios';
101
- import { getColorReplacementsFromSvgString } from '../../../../brand-page/utils/svg-color.util';
102
- import { commonTr, tr } from '../../../../composables/useTranslate';
103
-
104
- const imageSettingTr = (key: string) => tr(`replaceImageSetting.${key}`);
105
-
106
- // Props
107
- const props = defineProps({
108
- mediaSettings: {
109
- type: Object as PropType<ReplaceImageSettingsBase>,
110
- required: false,
111
- default: undefined,
112
- },
113
- imageExtension: {
114
- type: Array as PropType<string[]>,
115
- required: false,
116
- default: () => ['.jpg', '.jpeg', '.png'],
117
- },
118
- mode: {
119
- type: Object as PropType<BrandPageSettingsMode>,
120
- required: true,
121
- },
122
- isAdmin: {
123
- type: Boolean,
124
- required: true,
125
- default: false,
126
- },
127
- activeTabs: {
128
- type: Array as PropType<ReplaceImageSettingsTabId[]>,
129
- required: true,
130
- },
131
- mediaType: {
132
- type: String,
133
- required: false,
134
- default: '',
135
- },
136
- sectionTitle: {
137
- type: String,
138
- required: false,
139
- default: '',
140
- },
141
- transparentBg: {
142
- type: Boolean,
143
- required: true,
144
- default: false,
145
- },
146
- stickyBackBtn: {
147
- type: Boolean,
148
- required: true,
149
- default: true,
150
- },
151
- });
152
-
153
- // Emits
154
- const emit = defineEmits<{
155
- 'on-back': [];
156
- 'on-image-picked': [
157
- image: Pick<
158
- UserMediaItemWithDimensions,
159
- 'url' | 'minimisedUrl' | 'width' | 'height'
160
- >,
161
- mediaType: string,
162
- ];
163
- 'on-image-removed': [
164
- image: Pick<
165
- UserMediaItemWithDimensions,
166
- 'url' | 'minimisedUrl' | 'width' | 'height'
167
- >,
168
- ];
169
- 'on-design-selected': [image: UserMediaItemWithDimensions];
170
- 'on-shape-selected': [
171
- shape: {
172
- imageUrl: string;
173
- width: number;
174
- height: number;
175
- colorReplacements: any;
176
- aspectRatio: number;
177
- },
178
- ];
179
- }>();
180
-
181
- const containerStore = useBrandPageContainerStore();
182
- const userStore = useBrandPageMakerUserStore();
183
-
184
- const isPrePurchase = computed(() => containerStore.isPrePurchase);
185
- const canUseGettyVideos = computed(() => userStore.features.canUseGettyVideos);
186
-
187
- const tabs = ref<Tab[]>([
188
- {
189
- id: 'ICON',
190
- label: imageSettingTr('icon'),
191
- active: false,
192
- },
193
- {
194
- id: 'MY_UPLOADS',
195
- label: imageSettingTr('myUploads'),
196
- active: false,
197
- },
198
- {
199
- id: 'MY_DESIGNS',
200
- label: imageSettingTr('myDesigns'),
201
- active: false,
83
+ import { commonTr } from '../../../../composables/useTranslate';
84
+
85
+ export default {
86
+ components: {
87
+ Button,
88
+ MyDesigns,
89
+ MyUploads,
90
+ IconLibrary,
91
+ UnsplashLibrary,
92
+ ShapeLibrary,
202
93
  },
203
- {
204
- id: 'IMAGE_LIBRARY',
205
- label: imageSettingTr('imageLibrary'),
206
- active: false,
94
+ mixins: [ReplaceImageBaseSettings],
95
+ setup(props, context) {
96
+ return { ...ReplaceImageBaseSettings.setup(props, context), commonTr };
207
97
  },
208
- {
209
- id: 'VIDEO_LIBRARY',
210
- label: imageSettingTr('videoLibrary'),
211
- active: false,
212
- },
213
- {
214
- id: 'SHAPE_LIBRARY',
215
- label: imageSettingTr('shapeLibrary'),
216
- active: false,
217
- },
218
- ]);
219
-
220
- const enabledTabs = computed(() => {
221
- return tabs.value
222
- .filter((x) => x.id !== 'MY_DESIGNS' || !props.isAdmin)
223
- .filter(
224
- (x) =>
225
- x.id !== 'VIDEO_LIBRARY' || (canUseGettyVideos.value && props.isAdmin),
226
- )
227
- .filter(
228
- (x) =>
229
- props.activeTabs.some((y) => y === x.id) &&
230
- (!isPrePurchase.value || x.id !== 'MY_DESIGNS'),
231
- );
232
- });
233
-
234
- const isDeleteEnabled = computed(() => true);
235
-
236
- // Methods
237
- const onBack = () => {
238
- emit('on-back');
239
- };
240
-
241
- const onImageSelected = (
242
- image: Pick<
243
- UserMediaItemWithDimensions,
244
- 'url' | 'minimisedUrl' | 'width' | 'height'
245
- >,
246
- ) => {
247
- emit('on-image-picked', image, props.mediaType);
248
- };
249
-
250
- const onDeleteImage = (
251
- image: Pick<
252
- UserMediaItemWithDimensions,
253
- 'url' | 'minimisedUrl' | 'width' | 'height'
254
- >,
255
- ) => {
256
- emit('on-image-removed', image);
257
98
  };
258
-
259
- const onDesignSelected = (image: UserMediaItemWithDimensions) => {
260
- emit('on-design-selected', image);
261
- };
262
-
263
- const switchActiveTab = (id: string) => {
264
- tabs.value.forEach((tab: Tab) => {
265
- tab.active = tab.id === id;
266
- });
267
- };
268
-
269
- const onShapeSelected = async (image: UserMediaItemWithDimensions) => {
270
- try {
271
- const svgResponse = await axios.get<string>(image.url);
272
-
273
- const colorReplacements = getColorReplacementsFromSvgString(
274
- svgResponse.data,
275
- );
276
-
277
- emit('on-shape-selected', {
278
- imageUrl: image.url,
279
- width: image.width,
280
- height: image.height,
281
- colorReplacements,
282
- aspectRatio: image.aspectRatio || 1,
283
- });
284
- } catch (error) {
285
- console.error('Failed to load shape:', error);
286
- }
287
- };
288
-
289
- // Lifecycle
290
- onMounted(() => {
291
- if (enabledTabs.value.length > 0) {
292
- enabledTabs.value[0].active = true;
293
- }
294
- });
295
99
  </script>
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Meine Uploads",
5
5
  "myDesigns" : "Meine Designs",
6
6
  "imageLibrary" : "Bilderbibliothek",
7
- "videoLibrary" : "Videobibliothek",
8
7
  "shapeLibrary" : "Formbibliothek"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Mis subidas",
5
5
  "myDesigns" : "Mis diseños",
6
6
  "imageLibrary" : "Biblioteca de imágenes",
7
- "videoLibrary" : "Videoteca",
8
7
  "shapeLibrary" : "Biblioteca de Formas"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Mes importations",
5
5
  "myDesigns" : "Mes créations",
6
6
  "imageLibrary" : "Bibliothèque d’images",
7
- "videoLibrary" : "Vidéothèque",
8
7
  "shapeLibrary" : "Bibliothèque de formes"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Mes importations",
5
5
  "myDesigns" : "Mes créations",
6
6
  "imageLibrary" : "Bibliothèque d’images",
7
- "videoLibrary" : "Vidéothèque",
8
7
  "shapeLibrary" : "Bibliothèque de formes"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads": "My Uploads",
5
5
  "myDesigns": "My Designs",
6
6
  "imageLibrary": "Image Library",
7
- "videoLibrary": "Video Library",
8
7
  "shapeLibrary": "Shape Library"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Meus uploads",
5
5
  "myDesigns" : "Meus designs",
6
6
  "imageLibrary" : "Biblioteca de imagens",
7
- "videoLibrary" : "Biblioteca de vídeos",
8
7
  "shapeLibrary" : "Biblioteca de formas"
9
8
  }
10
9
  }
@@ -4,7 +4,6 @@
4
4
  "myUploads" : "Os meus carregamentos",
5
5
  "myDesigns" : "Os meus designs",
6
6
  "imageLibrary" : "Biblioteca de imagens",
7
- "videoLibrary" : "Videoteca",
8
7
  "shapeLibrary" : "Biblioteca de Formas"
9
8
  }
10
9
  }
@@ -28,7 +28,6 @@ export interface FieldSettingsBase {
28
28
  export const ReplaceImageSettingsTabIds = {
29
29
  ICON: 'ICON',
30
30
  IMAGE_LIBRARY: 'IMAGE_LIBRARY',
31
- VIDEO_LIBRARY: 'VIDEO_LIBRARY',
32
31
  MY_UPLOADS: 'MY_UPLOADS',
33
32
  MY_DESIGNS: 'MY_DESIGNS',
34
33
  SHAPE_LIBRARY: 'SHAPE_LIBRARY',
@@ -29,7 +29,7 @@
29
29
  <div class="tw-flex tw-flex-col tw-break-all">
30
30
  <div class="tw-text-md tw-font-sans">{{ product.item.name }}</div>
31
31
  <div class="tw-text-sm tw-text-grayscale-600">
32
- {{ currencySymbol }}{{ displayPrice(product) }}
32
+ {{ shopSettingStore.currencySymbol }}{{ displayPrice(product) }}
33
33
  </div>
34
34
  </div>
35
35
  </template>
@@ -56,7 +56,7 @@ import ItemsField from '../../../content-settings/components/items-field/ItemsFi
56
56
  import type { PaymentOption } from '../../../../brand-page/models';
57
57
  import { useShopConfigStore } from '../../store/shop-settings-store';
58
58
  import type { ProductModel } from '../../../../brand-page/models/shop.model';
59
- import { computed, reactive } from 'vue';
59
+ import { reactive } from 'vue';
60
60
  import type { DebounceHandle } from 'lodash.debounce';
61
61
  import cloneDeep from 'lodash.clonedeep';
62
62
  import type { UpdateItemValuePayload } from '../../../../shared/content-settings/models';
@@ -83,8 +83,6 @@ const data = reactive({
83
83
  const shopSettingStore = useShopConfigStore();
84
84
  const productSettingStore = useProductConfigStore();
85
85
 
86
- const currencySymbol = computed(() => shopSettingStore.currencySymbol);
87
-
88
86
  const onAddNewProduct = () => {
89
87
  productSettingStore.openModal(undefined);
90
88
  };
@@ -68,8 +68,10 @@ export const useShopConfigStore = defineStore('shopConfig', {
68
68
  Object.assign($state, newState);
69
69
  });
70
70
  },
71
- setPaymentConfig(value: BrandPagePaymentConfig): void {
72
- this.paymentConfig = value;
71
+ setPaymentConfig(payload: {
72
+ paymentConfig: BrandPagePaymentConfig | undefined;
73
+ }): void {
74
+ this.paymentConfig = payload.paymentConfig;
73
75
  },
74
76
  getProductById(id: string): ProductModel | undefined {
75
77
  return this.products.find((x) => x.id === id);
@@ -27,7 +27,6 @@ export interface Endpoints {
27
27
  getAllUserMediaEndpoint: string;
28
28
  userPolicyDataEndpoint: string;
29
29
  getUnsplashMediaRootEndpoint: string;
30
- getGettyEndpoint: string;
31
30
  }
32
31
 
33
32
  export const UI_EVENT_SOURCES = {
@@ -18,7 +18,6 @@ const defaultUserEndpoints: Endpoints = {
18
18
  getAllUserMediaEndpoint: GET_ALL_USER_MEDIA_ENDPOINT,
19
19
  userPolicyDataEndpoint: USER_POLICY_DATA_ENDPOINT,
20
20
  getUnsplashMediaRootEndpoint: '',
21
- getGettyEndpoint: '',
22
21
  };
23
22
 
24
23
  const supportedFileExtensions = ['jpg', 'png', 'gif'];