@designcrowd/library.brand-page 5.14.15 → 5.14.16

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 (24) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-ByNPc8Hb.js → CreatedOnBrandCrowd-de-de-Dksz1z6B.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DmEUyEY8.js → CreatedOnBrandCrowd-en-us-DW4P0uxF.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-pj4tJF5b.js → CreatedOnBrandCrowd-es-es-Bj55F1f7.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-Bk81kSzP.js → CreatedOnBrandCrowd-fr-ca-DWcvCxSL.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-Bk81kSzP.js → CreatedOnBrandCrowd-fr-fr-DWcvCxSL.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CnVFU3A5.js → CreatedOnBrandCrowd-pt-br-dw_qDCWc.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CnVFU3A5.js → CreatedOnBrandCrowd-pt-pt-dw_qDCWc.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-D8HLLDmb.js → CreatedOnDcom-de-de-zvXCsqSW.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-Dnx_Owbc.js → CreatedOnDcom-en-us-fuiCBWvT.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-DMxVfNN1.js → CreatedOnDcom-es-es-0KIXpe1R.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-ByvP9wW6.js → CreatedOnDcom-fr-ca-B9kdYATG.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-vvM5o0f2.js → CreatedOnDcom-fr-fr-Duz20YEP.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-BKkbOxEh.js → CreatedOnDcom-pt-br-fkkM7iI1.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DmEgNPdM.js → CreatedOnDcom-pt-pt-CaN_1bZ8.js} +1 -1
  15. package/lib/src/css/library.brand-page-brandCrowd.min.css +12 -12
  16. package/lib/src/css/library.brand-page-brandPage.min.css +12 -12
  17. package/lib/src/css/library.brand-page-designCom.min.css +12 -12
  18. package/lib/src/css/library.brand-page-preview.min.css +12 -12
  19. package/lib/src/index.mjs +1 -1
  20. package/lib/src/{lib-BnLnBPH_.js → lib-DB7abwo_.js} +922 -913
  21. package/package.json +1 -1
  22. package/src/brand-page/components/shop/Shop.vue +3 -6
  23. package/src/brand-page-maker/components/shop/ProductConfigModal.vue +11 -1
  24. package/src/shared/ecommerce-settings/components/product-config-field/ProductConfigOption.vue +11 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.14.15",
4
+ "version": "5.14.16",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  :view-model="viewModel"
33
33
  :context="context"
34
34
  :item-style="itemStyle"
35
- :currency-symbol="data.defaultCurrencySymbol"
35
+ :currency-symbol="currencySymbol"
36
36
  @on-product-detail="onShowProductDetailModal"
37
37
  />
38
38
  <ThumbnailDisplay
@@ -41,7 +41,7 @@
41
41
  :context="context"
42
42
  :aspect-ratio="aspectRatio"
43
43
  :item-style="itemStyle"
44
- :currency-symbol="data.defaultCurrencySymbol"
44
+ :currency-symbol="currencySymbol"
45
45
  :content-index="contentIndex"
46
46
  @on-product-detail="onShowProductDetailModal"
47
47
  />
@@ -51,7 +51,7 @@
51
51
  :context="context"
52
52
  :aspect-ratio="aspectRatio"
53
53
  :item-style="itemStyle"
54
- :currency-symbol="data.defaultCurrencySymbol"
54
+ :currency-symbol="currencySymbol"
55
55
  :content-index="contentIndex"
56
56
  @on-product-detail="onShowProductDetailModal"
57
57
  />
@@ -201,9 +201,6 @@ const data = reactive({
201
201
  isAddCartSuccess: false,
202
202
  product: {} as ProductModel,
203
203
  isActivePaymentProvider: false,
204
- defaultCurrencySymbol:
205
- props.viewModel.shopPaymentConfig?.paymentConfig?.defaultCurrencySymbol ??
206
- '$',
207
204
  });
208
205
 
209
206
  const viewCartText = computed(() => {
@@ -36,7 +36,10 @@
36
36
  </div>
37
37
  </template>
38
38
  <template #default>
39
- <AddOrEditProductContainer v-if="!isImageUpload" />
39
+ <AddOrEditProductContainer
40
+ v-if="!isImageUpload"
41
+ :currency-symbol="currencySymbol"
42
+ />
40
43
  <ImageUpload v-else />
41
44
  </template>
42
45
  <template v-if="!isImageUpload" #footer>
@@ -78,6 +81,13 @@ import { productTr } from '../../../composables/useTranslate';
78
81
 
79
82
  const productSettingStore = useProductConfigStore();
80
83
 
84
+ interface Props {
85
+ currencySymbol: string;
86
+ }
87
+ const props = withDefaults(defineProps<Props>(), {
88
+ currencySymbol: '$',
89
+ });
90
+
81
91
  const emit = defineEmits(['on-close', 'on-save']);
82
92
 
83
93
  const isVisible = computed(() => productSettingStore.showModal);
@@ -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
- {{ shopSettingStore.currencySymbol }}{{ displayPrice(product) }}
32
+ {{ currencySymbol }}{{ displayPrice(product) }}
33
33
  </div>
34
34
  </div>
35
35
  </template>
@@ -45,6 +45,7 @@
45
45
  <ProductConfigModal
46
46
  v-if="productSettingStore.showModal"
47
47
  class="modal-product-config"
48
+ :currency-symbol="currencySymbol"
48
49
  @on-save="onSaveProductModal"
49
50
  />
50
51
  <!-- End Product modal -->
@@ -53,10 +54,10 @@
53
54
  <script setup lang="ts">
54
55
  import { Button, Icon } from '@designcrowd/fe-shared-lib';
55
56
  import ItemsField from '../../../content-settings/components/items-field/ItemsField.vue';
56
- import type { PaymentOption } from '../../../../brand-page/models';
57
+ import type { PaymentOption, ShopContent } from '../../../../brand-page/models';
57
58
  import { useShopConfigStore } from '../../store/shop-settings-store';
58
59
  import type { ProductModel } from '../../../../brand-page/models/shop.model';
59
- import { reactive } from 'vue';
60
+ import { computed, reactive } from 'vue';
60
61
  import type { DebounceHandle } from 'lodash.debounce';
61
62
  import cloneDeep from 'lodash.clonedeep';
62
63
  import type { UpdateItemValuePayload } from '../../../../shared/content-settings/models';
@@ -72,6 +73,7 @@ const props = withDefaults(
72
73
  name: string;
73
74
  canCollapse: boolean;
74
75
  value: ProductModel[];
76
+ content: ShopContent;
75
77
  }>(),
76
78
  {},
77
79
  );
@@ -160,6 +162,12 @@ const displayPrice = (product) => {
160
162
 
161
163
  return ` ${finalPrice}`;
162
164
  };
165
+
166
+ const currencySymbol = computed((): any => {
167
+ return (
168
+ props.content.shopPaymentConfig?.paymentConfig?.defaultCurrencySymbol ?? '$'
169
+ );
170
+ });
163
171
  </script>
164
172
  <style scoped>
165
173
  @media (min-width: 640px) {