@designcrowd/fe-shared-lib 1.4.5 → 1.4.6-ast-generate-ai-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.
Files changed (65) hide show
  1. package/package.json +1 -2
  2. package/public/css/tailwind-brandCrowd.css +2414 -0
  3. package/public/css/tailwind-brandPage.css +2098 -0
  4. package/public/css/tailwind-crazyDomains.css +2414 -0
  5. package/public/css/tailwind-designCom.css +2414 -0
  6. package/public/css/tailwind-designCrowd.css +2414 -0
  7. package/src/atoms/components/Checkbox/Checkbox.stories.js +134 -1
  8. package/src/atoms/components/Checkbox/Checkbox.vue +2 -8
  9. package/src/atoms/components/Dropdown/DropdownItem.vue +1 -1
  10. package/src/atoms/components/Icon/Icon.stories.js +4 -0
  11. package/src/atoms/components/Icon/Icon.vue +104 -97
  12. package/src/atoms/components/Icon/icons/file.vue +7 -0
  13. package/src/atoms/components/Icon/icons/pen-tool.vue +7 -0
  14. package/src/atoms/components/Icon/icons/send.vue +12 -0
  15. package/src/atoms/components/Icon/icons/stop.vue +5 -0
  16. package/src/atoms/components/SparkleIcon/SparkleIcon.stories.js +182 -0
  17. package/src/atoms/components/SparkleIcon/SparkleIcon.vue +105 -0
  18. package/src/atoms/components/SparkleIcon/assets/animations/state-01.svg +5 -0
  19. package/src/atoms/components/SparkleIcon/assets/animations/state-02.svg +5 -0
  20. package/src/atoms/components/SparkleIcon/assets/animations/state-03.svg +5 -0
  21. package/src/atoms/components/SparkleIcon/assets/animations/state-04.svg +5 -0
  22. package/src/atoms/components/SparkleIcon/assets/animations/state-05.svg +5 -0
  23. package/src/atoms/components/SparkleIcon/assets/animations/state-06.svg +5 -0
  24. package/src/atoms/components/SparkleIcon/assets/animations/state-07.svg +5 -0
  25. package/src/atoms/components/SparkleIcon/assets/animations/state-08.svg +5 -0
  26. package/src/atoms/components/SparkleIcon/assets/sparkle.svg +3 -0
  27. package/src/atoms/components/SparkleIcon/index.ts +3 -0
  28. package/src/atoms/components/TextInput/TextInput.vue +2 -1
  29. package/src/atoms/components/Textarea/Textarea.vue +4 -1
  30. package/src/bundles/bundled-translations.de-DE.json +2 -1
  31. package/src/bundles/bundled-translations.es-ES.json +2 -1
  32. package/src/bundles/bundled-translations.fr-CA.json +2 -1
  33. package/src/bundles/bundled-translations.fr-FR.json +2 -1
  34. package/src/bundles/bundled-translations.json +2 -1
  35. package/src/bundles/bundled-translations.pt-BR.json +2 -1
  36. package/src/bundles/bundled-translations.pt-PT.json +2 -1
  37. package/src/experiences/clients/brand-crowd-api.client.js +12 -1
  38. package/src/experiences/clients/brand-page-api.client.js +15 -0
  39. package/src/experiences/components/AuthFlow/AuthModal.vue +1 -1
  40. package/src/experiences/components/AuthFlow/ForgotPassword.vue +1 -1
  41. package/src/experiences/components/AuthFlow/ResetPassword.vue +1 -1
  42. package/src/experiences/components/AuthFlow/ResetPasswordSuccessModal.vue +1 -1
  43. package/src/experiences/components/AuthFlow/SocialSignInButton.vue +1 -1
  44. package/src/experiences/components/AuthFlow/SubmissionButton.vue +1 -1
  45. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +20 -0
  46. package/src/experiences/components/PaymentConfigList/PaymentConfigDeleteConfigModal.vue +7 -5
  47. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +77 -39
  48. package/src/experiences/components/PaymentConfigList/PaymentConfigList.stories.js +45 -0
  49. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +3 -3
  50. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +2 -1
  51. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +2 -1
  52. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-CA.json +2 -1
  53. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +2 -1
  54. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +2 -1
  55. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-BR.json +2 -1
  56. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +2 -1
  57. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -1
  58. package/src/experiences/components/UploadYourLogoApplication/UploadYourLogoApplication.vue +6 -0
  59. package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +3 -3
  60. package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +1 -1
  61. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadModal.vue +1 -1
  62. package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +6 -1
  63. package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +6 -0
  64. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +1 -1
  65. package/src/atoms/components/Icon/icons/calculator.vue +0 -3
@@ -40,17 +40,17 @@
40
40
  </Modal>
41
41
  </template>
42
42
  <script>
43
- import Modal from '../../../../src/atoms/components/Modal/Modal.vue';
44
- import Button from '../../../../src/atoms/components/Button/Button.vue';
45
- import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
46
- import brandPageApiClient from './../../clients/brand-page-api.client';
43
+ import Modal from '../../../atoms/components/Modal/Modal.vue';
44
+ import Button from '../../../atoms/components/Button/Button.vue';
45
+ import Loader from '../../../atoms/components/Loader/Loader.vue';
46
+ import brandPageApiClient from '../../clients/brand-page-api.client';
47
+
47
48
  export default {
48
49
  components: {
49
50
  Modal,
50
51
  Button,
51
52
  Loader,
52
53
  },
53
- emits: ['close-modal', 'on-delete'],
54
54
  props: {
55
55
  paymentConfig: {
56
56
  type: Object,
@@ -60,8 +60,10 @@ export default {
60
60
  brandPageToken: {
61
61
  type: String,
62
62
  required: false,
63
+ default: () => undefined,
63
64
  },
64
65
  },
66
+ emits: ['close-modal', 'on-delete'],
65
67
  data: () => ({
66
68
  isLoading: false,
67
69
  }),
@@ -10,54 +10,84 @@
10
10
  variant="outline"
11
11
  @on-click="onAddPaymentProviderButtonClick"
12
12
  ></Button>
13
- <Dropdown v-if="!isLoading && !isAddPaymentProviderButtonVisible" ref="dropdown">
14
- <template #title>
15
- <div
16
- v-if="selectedPaymentConfig"
17
- class="tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer"
13
+ <div v-if="!isLoading && !isAddPaymentProviderButtonVisible">
14
+ <Dropdown ref="dropdown">
15
+ <template #title>
16
+ <div
17
+ v-if="selectedPaymentConfig"
18
+ class="tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer"
19
+ >
20
+ <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
21
+ <span>{{ selectedPaymentConfig.name }}</span>
22
+ <small class="stripe-acct">({{ selectedPaymentConfig.paymentProviderExternalId }})</small>
23
+ </span>
24
+ <Pill class="tw-text-white" :class="getPaymentConfigStatusDisplayClasses(selectedPaymentConfig.status)">
25
+ {{ getPaymentConfigStatusDisplayText(selectedPaymentConfig.status) }}
26
+ </Pill>
27
+ </div>
28
+ </template>
29
+
30
+ <DropdownItem
31
+ v-for="paymentConfig in paymentConfigs"
32
+ :key="`payment-config-${paymentConfig.id}`"
33
+ @click="onPaymentConfigClick(paymentConfig)"
18
34
  >
19
35
  <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
20
- <span>{{ selectedPaymentConfig.name }}</span>
21
- <small class="stripe-acct">({{ selectedPaymentConfig.paymentProviderExternalId }})</small>
36
+ <span>{{ paymentConfig.name }}</span>
37
+ <small class="stripe-acct">({{ paymentConfig.paymentProviderExternalId }})</small>
22
38
  </span>
23
- <Pill class="tw-text-white" :class="getPaymentConfigStatusDisplayClasses(selectedPaymentConfig.status)">
24
- {{ getPaymentConfigStatusDisplayText(selectedPaymentConfig.status) }}
39
+ <Pill class="tw-text-white" :class="getPaymentConfigStatusDisplayClasses(paymentConfig.status)">
40
+ {{ getPaymentConfigStatusDisplayText(paymentConfig.status) }}
25
41
  </Pill>
26
- </div>
27
- </template>
42
+ </DropdownItem>
28
43
 
29
- <DropdownItem
30
- v-for="paymentConfig in paymentConfigs"
31
- :key="`payment-config-${paymentConfig.id}`"
32
- @click="onPaymentConfigClick(paymentConfig)"
33
- >
34
- <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
35
- <span>{{ paymentConfig.name }}</span>
36
- <small class="stripe-acct">({{ paymentConfig.paymentProviderExternalId }})</small>
37
- </span>
38
- <Pill class="tw-text-white" :class="getPaymentConfigStatusDisplayClasses(paymentConfig.status)">
39
- {{ getPaymentConfigStatusDisplayText(paymentConfig.status) }}
40
- </Pill>
41
- </DropdownItem>
44
+ <DropdownItem v-if="showAddPaymentProvider" class="tw-border-t-2" @click="onAddPaymentProviderButtonClick">
45
+ <Button
46
+ :full-width="true"
47
+ :label="sharedPaymentConfigTr('addPaymentProvider')"
48
+ size="small"
49
+ variant="outline"
50
+ @on-click="onAddPaymentProviderButtonClick"
51
+ />
52
+ </DropdownItem>
53
+ </Dropdown>
54
+ <!-- Currency -->
55
+ <template v-if="currencies && currencies.length > 0">
56
+ <h4 class="tw-mt-6 tw-mb-2 tw-text-sm tw-font-bold">{{ sharedPaymentConfigTr('currencyLabel') }}</h4>
57
+ <Dropdown ref="dropdownCurrency" :menu-element-classes="'tw-w-full'">
58
+ <template #title>
59
+ <div
60
+ v-if="selectedCurrency"
61
+ class="tw-flex tw-items-center tw-px-2 tw-py-2 drop-down-item tw-cursor-pointer"
62
+ >
63
+ <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
64
+ <span>{{ selectedCurrency.iso4127Code }} ({{ selectedCurrency.symbol }})</span>
65
+ </span>
66
+ </div>
67
+ </template>
42
68
 
43
- <DropdownItem v-if="showAddPaymentProvider" class="tw-border-t-2" @click="onAddPaymentProviderButtonClick">
44
- <Button
45
- :full-width="true"
46
- :label="sharedPaymentConfigTr('addPaymentProvider')"
47
- size="small"
48
- variant="outline"
49
- @on-click="onAddPaymentProviderButtonClick"
50
- />
51
- </DropdownItem>
52
- </Dropdown>
69
+ <DropdownItem
70
+ v-for="currency in currencies"
71
+ :key="`currency-${currency.id}`"
72
+ @click="onCurrencyClick(currency)"
73
+ >
74
+ <span class="tw-text-sm tw-grow tw-select-none tw-flex tw-flex-col">
75
+ <span>{{ currency.iso4127Code }} ({{ currency.symbol }})</span>
76
+ </span>
77
+ <Icon v-if="selectedCurrency?.id === currency.id" name="check-thin" />
78
+ </DropdownItem>
79
+ </Dropdown>
80
+ </template>
81
+ </div>
53
82
  </div>
54
83
  </template>
55
84
  <script>
56
- import Button from '../../../../src/atoms/components/Button/Button.vue';
57
- import Dropdown from '../../../../src/atoms/components/Dropdown/Dropdown.vue';
58
- import DropdownItem from '../../../../src/atoms/components/Dropdown/DropdownItem.vue';
59
- import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
60
- import Pill from '../../../../src/atoms/components/Pill/Pill.vue';
85
+ import Button from '../../../atoms/components/Button/Button.vue';
86
+ import Dropdown from '../../../atoms/components/Dropdown/Dropdown.vue';
87
+ import DropdownItem from '../../../atoms/components/Dropdown/DropdownItem.vue';
88
+ import Loader from '../../../atoms/components/Loader/Loader.vue';
89
+ import Pill from '../../../atoms/components/Pill/Pill.vue';
90
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
61
91
 
62
92
  import PaymentConfigMixin, { paymentConfigStatuses } from './PaymentConfig.mixin';
63
93
  import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
@@ -69,6 +99,7 @@ export default {
69
99
  DropdownItem,
70
100
  Loader,
71
101
  Pill,
102
+ Icon,
72
103
  },
73
104
  mixins: [PaymentConfigMixin],
74
105
  props: {
@@ -89,6 +120,8 @@ export default {
89
120
  },
90
121
  },
91
122
  async mounted() {
123
+ this.getCurrentListAsync();
124
+
92
125
  if (this.brandPageToken) {
93
126
  await this.updatePaymentConfigs();
94
127
  if (!this.selectedPaymentConfig && this.paymentConfigs.length === 0) {
@@ -125,6 +158,11 @@ export default {
125
158
  this.selectedPaymentConfig = paymentConfig;
126
159
  this.$emit('on-payment-config-selected', this.selectedPaymentConfig);
127
160
  },
161
+
162
+ onCurrencyClick(currency) {
163
+ this.$refs.dropdownCurrency.hideMenu();
164
+ this.$emit('on-currency-selected', currency);
165
+ },
128
166
  },
129
167
  };
130
168
  </script>
@@ -57,11 +57,53 @@ const PAYMENT_CONFIGS_RESPONSE = [
57
57
  },
58
58
  ];
59
59
 
60
+ const PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE = {
61
+ currencies: [
62
+ {
63
+ id: '9dce1a02-f415-433b-8ea8-0144c651e236',
64
+ name: 'United State Dollar',
65
+ iso4127Code: 'USD',
66
+ iso31662Code: 'US',
67
+ symbol: '$',
68
+ isSymbolPlacedBeforePrice: true,
69
+ created: '2023-06-21T01:04:12.961Z',
70
+ },
71
+ {
72
+ id: '38dc53a9-a66f-4c6d-b14c-cf987d7f779b',
73
+ name: 'Australian Dollar',
74
+ iso4127Code: 'AUD',
75
+ iso31662Code: 'AU',
76
+ symbol: '$',
77
+ isSymbolPlacedBeforePrice: true,
78
+ created: '2023-06-21T01:04:12.961Z',
79
+ },
80
+ {
81
+ id: '02c5a9f3-39f1-4764-bd91-a76982dd949a',
82
+ name: 'British Pound Sterling',
83
+ iso4127Code: 'GBP',
84
+ iso31662Code: 'UK',
85
+ symbol: '£',
86
+ isSymbolPlacedBeforePrice: true,
87
+ created: '2023-06-21T01:04:12.961Z',
88
+ },
89
+ {
90
+ id: '2b26857d-0525-4bf0-b37c-e020847e0bd2',
91
+ name: 'Euro',
92
+ iso4127Code: 'EUR',
93
+ iso31662Code: 'EU',
94
+ symbol: '€',
95
+ isSymbolPlacedBeforePrice: true,
96
+ created: '2023-06-21T01:04:12.961Z',
97
+ },
98
+ ],
99
+ };
100
+
60
101
  export const SampleStripe = () => {
61
102
  const mock = new MockAdapter(axios, { delayResponse: MOCK_RESPONSE_DELAY });
62
103
  const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
63
104
 
64
105
  mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
106
+ mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
65
107
 
66
108
  return {
67
109
  components: {
@@ -85,6 +127,7 @@ export const SampleStripeHideExternalId = () => {
85
127
  const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
86
128
 
87
129
  mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
130
+ mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
88
131
 
89
132
  return {
90
133
  components: {
@@ -112,6 +155,7 @@ export const SampleDropdownStripe = () => {
112
155
  const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
113
156
 
114
157
  mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
158
+ mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
115
159
 
116
160
  return {
117
161
  components: {
@@ -139,6 +183,7 @@ export const SampleDropdownStripeWithFilter = () => {
139
183
  const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
140
184
 
141
185
  mock.onGet(`/maker/api/brand-pages/${brandPageToken}/payment-configs`).reply(200, PAYMENT_CONFIGS_RESPONSE);
186
+ mock.onGet(`/maker/api/brand-pages/payment-configs/currency-list`).reply(200, PAYMENT_CONFIGS_CURRENCY_LIST_RESPONSE);
142
187
 
143
188
  return {
144
189
  components: {
@@ -65,10 +65,10 @@
65
65
  </template>
66
66
 
67
67
  <script>
68
- import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
69
- import Button from '../../../../src/atoms/components/Button/Button.vue';
68
+ import Loader from '../../../atoms/components/Loader/Loader.vue';
69
+ import Button from '../../../atoms/components/Button/Button.vue';
70
70
  import PaymentConfigDeleteConfigModal from './PaymentConfigDeleteConfigModal.vue';
71
- import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
71
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
72
72
 
73
73
  import PaymentConfigMixin from './PaymentConfig.mixin';
74
74
  import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
@@ -5,6 +5,7 @@
5
5
  "connected" : "Verbunden",
6
6
  "inactive" : "Inaktiv",
7
7
  "addPaymentProvider" : "Zahlungsanbieter hinzufügen",
8
- "deletePaymentMethod" : "Zahlungsmethode löschen"
8
+ "deletePaymentMethod" : "Zahlungsmethode löschen",
9
+ "currencyLabel" : "Währung"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Conectado",
6
6
  "inactive" : "Inactivo",
7
7
  "addPaymentProvider" : "Añadir proveedor de pago",
8
- "deletePaymentMethod" : "Eliminar método de pago"
8
+ "deletePaymentMethod" : "Eliminar método de pago",
9
+ "currencyLabel" : "Moneda"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Connecté",
6
6
  "inactive" : "Inactif",
7
7
  "addPaymentProvider" : "Ajouter un fournisseur de paiement",
8
- "deletePaymentMethod" : "Supprimer le mode de paiement"
8
+ "deletePaymentMethod" : "Supprimer le mode de paiement",
9
+ "currencyLabel" : "Devise"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Connecté",
6
6
  "inactive" : "Inactif",
7
7
  "addPaymentProvider" : "Ajouter un fournisseur de paiement",
8
- "deletePaymentMethod" : "Supprimer le mode de paiement"
8
+ "deletePaymentMethod" : "Supprimer le mode de paiement",
9
+ "currencyLabel" : "Devise"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected": "Connected",
6
6
  "inactive": "Inactive",
7
7
  "addPaymentProvider": "Add Payment Provider",
8
- "deletePaymentMethod": "Delete payment method"
8
+ "deletePaymentMethod": "Delete payment method",
9
+ "currencyLabel": "Currency"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Conectado",
6
6
  "inactive" : "Inativo",
7
7
  "addPaymentProvider" : "Adicionar fornecedor de pagamentos",
8
- "deletePaymentMethod" : "Excluir método de pagamento"
8
+ "deletePaymentMethod" : "Excluir método de pagamento",
9
+ "currencyLabel" : "Moeda"
9
10
  }
10
11
  }
@@ -5,6 +5,7 @@
5
5
  "connected" : "Ligado",
6
6
  "inactive" : "Inativo",
7
7
  "addPaymentProvider" : "Adicionar fornecedor de pagamentos",
8
- "deletePaymentMethod" : "Eliminar método de pagamento"
8
+ "deletePaymentMethod" : "Eliminar método de pagamento",
9
+ "currencyLabel" : "Moeda"
9
10
  }
10
11
  }
@@ -521,7 +521,7 @@ export default {
521
521
  if (!this.isSubsequentPublish) {
522
522
  return false;
523
523
  }
524
- return this.showUpsellRotation && !this.isCustomDomainActive && !this.hasPurchasedDomains;
524
+ return this.showUpsellRotation;
525
525
  },
526
526
  },
527
527
  watch: {
@@ -3,6 +3,7 @@
3
3
  <UploadYourLogoOnBoarding
4
4
  v-if="active"
5
5
  :logo-file="logoData.logoFile"
6
+ :custom-upload-data="customUploadData"
6
7
  :use-dropzone="useDropzone"
7
8
  :is-post-purchase-user-upload="isPostPurchaseUserUpload"
8
9
  @on-exit="onExit"
@@ -36,6 +37,11 @@ export default {
36
37
  required: false,
37
38
  default: false,
38
39
  },
40
+ customUploadData: {
41
+ type: Object,
42
+ required: false,
43
+ default: null,
44
+ },
39
45
  },
40
46
  data() {
41
47
  return {
@@ -121,9 +121,9 @@
121
121
  </template>
122
122
  <script>
123
123
  /* eslint-disable no-param-reassign */
124
- import Button from '../../../../src/atoms/components/Button/Button.vue';
125
- import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
126
- import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
124
+ import Button from '../../../atoms/components/Button/Button.vue';
125
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
126
+ import HelloBar from '../../../atoms/components/HelloBar/HelloBar.vue';
127
127
  import trackEvent from '../../helpers/tracking';
128
128
  import hexDiff from '../../helpers/hex-diff';
129
129
  import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
@@ -47,8 +47,8 @@
47
47
  </div>
48
48
  </template>
49
49
  <script>
50
- import Button from '../../../../src/atoms/components/Button/Button.vue';
51
50
  import VueCropper from 'vue-cropperjs';
51
+ import Button from '../../../atoms/components/Button/Button.vue';
52
52
 
53
53
  import trackEvent from '../../helpers/tracking';
54
54
  import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  </template>
18
18
  <script>
19
- import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
19
+ import Icon from '../../../atoms/components/Icon/Icon.vue';
20
20
 
21
21
  export default {
22
22
  components: {
@@ -19,6 +19,11 @@ export default {
19
19
  required: true,
20
20
  default: undefined,
21
21
  },
22
+ customUploadData: {
23
+ type: Object,
24
+ required: false,
25
+ default: null,
26
+ },
22
27
  eventCategory: {
23
28
  type: String,
24
29
  required: true,
@@ -50,7 +55,7 @@ export default {
50
55
  duration = Date.now() - start;
51
56
  }, 1);
52
57
 
53
- const result = await brandCrowdClient.uploadLogoAndGetDetails(this.logoFile);
58
+ const result = await brandCrowdClient.uploadLogoAndGetDetails(this.logoFile, this.customUploadData);
54
59
 
55
60
  clearInterval(intervalTimer);
56
61
  this.isRunning = false;
@@ -20,6 +20,7 @@
20
20
  <LogoUploader
21
21
  v-if="logoFile && !isAttemptingToExit && !hasError && currentStep === 1"
22
22
  :logo-file="logoFile"
23
+ :custom-upload-data="customUploadData"
23
24
  :event-category="eventCategory"
24
25
  @on-upload-success="onUploadSuccess"
25
26
  @on-upload-error="onUploadError"
@@ -127,6 +128,11 @@ export default {
127
128
  required: false,
128
129
  default: false,
129
130
  },
131
+ customUploadData: {
132
+ type: Object,
133
+ required: false,
134
+ default: undefined,
135
+ },
130
136
  },
131
137
  setup() {
132
138
  return {
@@ -98,7 +98,7 @@
98
98
  </template>
99
99
  <script>
100
100
  import axios from 'axios';
101
- import Button from '../../../../src/atoms/components/Button/Button.vue';
101
+ import Button from '../../../atoms/components/Button/Button.vue';
102
102
  import Events from '../../constants/event-constants';
103
103
  import API from '../../constants/api';
104
104
  import trackEvent from '../../helpers/tracking';
@@ -1,3 +0,0 @@
1
- <template>
2
- <path d="M13.25 5.2002C13.25 4.62777 13.2498 4.24315 13.2256 3.94727C13.2021 3.66027 13.1594 3.52316 13.1133 3.43262C12.9935 3.19751 12.8025 3.00655 12.5674 2.88672C12.4768 2.84059 12.3397 2.79788 12.0527 2.77442C11.7569 2.75024 11.3722 2.75 10.7998 2.75H5.20019C4.62776 2.75 4.24314 2.75024 3.94726 2.77442C3.66026 2.79788 3.52316 2.84059 3.43261 2.88672C3.1975 3.00655 3.00654 3.19751 2.88672 3.43262C2.84058 3.52316 2.79787 3.66027 2.77441 3.94727C2.75024 4.24315 2.75 4.62777 2.75 5.2002V10.7998C2.75 11.3722 2.75024 11.7569 2.77441 12.0527C2.79787 12.3397 2.84058 12.4768 2.88672 12.5674C3.00654 12.8025 3.1975 12.9935 3.43261 13.1133C3.52316 13.1594 3.66026 13.2021 3.94726 13.2256C4.24314 13.2498 4.62776 13.25 5.20019 13.25H10.7998C11.3722 13.25 11.7569 13.2498 12.0527 13.2256C12.3397 13.2021 12.4768 13.1594 12.5674 13.1133C12.8025 12.9935 12.9935 12.8025 13.1133 12.5674C13.1594 12.4768 13.2021 12.3397 13.2256 12.0527C13.2498 11.7569 13.25 11.3722 13.25 10.7998V5.2002ZM11.1367 3.80274C11.4296 3.51017 11.9045 3.50995 12.1973 3.80274C12.49 4.09552 12.4898 4.57037 12.1973 4.86329L4.86328 12.1973C4.57036 12.4898 4.09552 12.4901 3.80273 12.1973C3.50995 11.9045 3.51016 11.4296 3.80273 11.1367L11.1367 3.80274ZM11.667 9.58301C12.0809 9.58319 12.4168 9.91906 12.417 10.333C12.417 10.7471 12.0811 11.0828 11.667 11.083H9C8.58578 11.083 8.25 10.7472 8.25 10.333C8.25017 9.91895 8.58589 9.58301 9 9.58301H11.667ZM4.91699 7V6.417H4.333C3.91905 6.41682 3.58318 6.08095 3.583 5.667C3.583 5.25289 3.91894 4.91717 4.333 4.917H4.91699V4.33301C4.91716 3.91895 5.25288 3.58301 5.66699 3.58301C6.08094 3.58319 6.41681 3.91906 6.41699 4.33301V4.917H7C7.41421 4.917 7.75 5.25278 7.75 5.667C7.74982 6.08106 7.4141 6.417 7 6.417H6.41699V7C6.41699 7.41411 6.08105 7.74983 5.66699 7.75C5.25278 7.75 4.91699 7.41422 4.91699 7ZM14.75 10.7998C14.75 11.3475 14.751 11.8037 14.7207 12.1748C14.6897 12.5545 14.6219 12.9109 14.4502 13.2481C14.1865 13.7655 13.7655 14.1865 13.248 14.4502C12.9109 14.6219 12.5545 14.6897 12.1748 14.7207C11.8037 14.751 11.3475 14.75 10.7998 14.75H5.20019C4.65251 14.75 4.19632 14.751 3.82519 14.7207C3.44546 14.6897 3.08909 14.6219 2.75195 14.4502C2.2345 14.1865 1.81345 13.7655 1.5498 13.2481C1.37809 12.9109 1.31033 12.5545 1.27929 12.1748C1.24897 11.8037 1.25 11.3475 1.25 10.7998V5.2002C1.25 4.65252 1.24897 4.19633 1.27929 3.8252C1.31033 3.44547 1.37809 3.0891 1.5498 2.75196C1.81345 2.23451 2.2345 1.81346 2.75195 1.54981C3.08909 1.3781 3.44546 1.31033 3.82519 1.2793C4.19632 1.24898 4.65251 1.25 5.20019 1.25H10.7998C11.3475 1.25 11.8037 1.24898 12.1748 1.2793C12.5545 1.31033 12.9109 1.3781 13.248 1.54981C13.7655 1.81346 14.1865 2.23451 14.4502 2.75196C14.6219 3.0891 14.6897 3.44547 14.7207 3.8252C14.751 4.19633 14.75 4.65252 14.75 5.2002V10.7998Z" />
3
- </template>