@designcrowd/fe-shared-lib 1.2.18-byo-2 → 1.2.18-kp-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 (25) hide show
  1. package/package.json +1 -1
  2. package/public/css/tailwind-brandCrowd.css +3 -10
  3. package/public/css/tailwind-brandPage.css +3 -10
  4. package/public/css/tailwind-crazyDomains.css +3 -10
  5. package/public/css/tailwind-designCom.css +3 -10
  6. package/public/css/tailwind-designCrowd.css +3 -10
  7. package/src/bundles/bundled-translations.de-DE.json +0 -6
  8. package/src/bundles/bundled-translations.es-ES.json +0 -6
  9. package/src/bundles/bundled-translations.fr-FR.json +0 -6
  10. package/src/bundles/bundled-translations.json +3 -7
  11. package/src/bundles/bundled-translations.pt-PT.json +0 -6
  12. package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +16 -1
  13. package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +23 -21
  14. package/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue +3 -13
  15. package/src/useSharedLibTranslate.js +0 -4
  16. package/dist/css/tailwind-brandCrowd.css +0 -2493
  17. package/dist/css/tailwind-brandPage.css +0 -2177
  18. package/dist/css/tailwind-crazyDomains.css +0 -2493
  19. package/dist/css/tailwind-designCom.css +0 -2493
  20. package/dist/css/tailwind-designCrowd.css +0 -2493
  21. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.de-DE.json +0 -8
  22. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.es-ES.json +0 -8
  23. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.fr-FR.json +0 -8
  24. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.json +0 -8
  25. package/src/experiences/components/UploadedLogoSearchResultCard/i18n/upload-logo-search-result-card.pt-PT.json +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.18-byo-2",
3
+ "version": "1.2.18-kp-1",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -643,10 +643,6 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
- .theme-brandCrowd .tw-my-1 {
647
- margin-top: 0.25rem;
648
- margin-bottom: 0.25rem;
649
- }
650
646
  .theme-brandCrowd .tw-my-10 {
651
647
  margin-top: 2.5rem;
652
648
  margin-bottom: 2.5rem;
@@ -853,6 +849,9 @@ video {
853
849
  .theme-brandCrowd .tw-max-h-screen {
854
850
  max-height: 100vh;
855
851
  }
852
+ .theme-brandCrowd .tw-w-1\/3 {
853
+ width: 33.333333%;
854
+ }
856
855
  .theme-brandCrowd .tw-w-10 {
857
856
  width: 2.5rem;
858
857
  }
@@ -1021,9 +1020,6 @@ video {
1021
1020
  .theme-brandCrowd .tw-animate-spin {
1022
1021
  animation: tw-spin 1s linear infinite;
1023
1022
  }
1024
- .\!tw-cursor-not-allowed {
1025
- cursor: not-allowed !important;
1026
- }
1027
1023
  .theme-brandCrowd .tw-cursor-not-allowed {
1028
1024
  cursor: not-allowed;
1029
1025
  }
@@ -2231,9 +2227,6 @@ video {
2231
2227
  .theme-brandCrowd .md\:tw-ml-4 {
2232
2228
  margin-left: 1rem;
2233
2229
  }
2234
- .theme-brandCrowd .md\:tw-mr-2 {
2235
- margin-right: 0.5rem;
2236
- }
2237
2230
  .theme-brandCrowd .md\:tw-mt-0 {
2238
2231
  margin-top: 0px;
2239
2232
  }
@@ -643,10 +643,6 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
- .theme-brandPage .tw-my-1 {
647
- margin-top: 0.25rem;
648
- margin-bottom: 0.25rem;
649
- }
650
646
  .theme-brandPage .tw-my-10 {
651
647
  margin-top: 2.5rem;
652
648
  margin-bottom: 2.5rem;
@@ -853,6 +849,9 @@ video {
853
849
  .theme-brandPage .tw-max-h-screen {
854
850
  max-height: 100vh;
855
851
  }
852
+ .theme-brandPage .tw-w-1\/3 {
853
+ width: 33.333333%;
854
+ }
856
855
  .theme-brandPage .tw-w-10 {
857
856
  width: 2.5rem;
858
857
  }
@@ -1021,9 +1020,6 @@ video {
1021
1020
  .theme-brandPage .tw-animate-spin {
1022
1021
  animation: tw-spin 1s linear infinite;
1023
1022
  }
1024
- .\!tw-cursor-not-allowed {
1025
- cursor: not-allowed !important;
1026
- }
1027
1023
  .theme-brandPage .tw-cursor-not-allowed {
1028
1024
  cursor: not-allowed;
1029
1025
  }
@@ -1915,9 +1911,6 @@ video {
1915
1911
  .theme-brandPage .md\:tw-ml-4 {
1916
1912
  margin-left: 1rem;
1917
1913
  }
1918
- .theme-brandPage .md\:tw-mr-2 {
1919
- margin-right: 0.5rem;
1920
- }
1921
1914
  .theme-brandPage .md\:tw-mt-0 {
1922
1915
  margin-top: 0px;
1923
1916
  }
@@ -643,10 +643,6 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
- .theme-crazyDomains .tw-my-1 {
647
- margin-top: 0.25rem;
648
- margin-bottom: 0.25rem;
649
- }
650
646
  .theme-crazyDomains .tw-my-10 {
651
647
  margin-top: 2.5rem;
652
648
  margin-bottom: 2.5rem;
@@ -853,6 +849,9 @@ video {
853
849
  .theme-crazyDomains .tw-max-h-screen {
854
850
  max-height: 100vh;
855
851
  }
852
+ .theme-crazyDomains .tw-w-1\/3 {
853
+ width: 33.333333%;
854
+ }
856
855
  .theme-crazyDomains .tw-w-10 {
857
856
  width: 2.5rem;
858
857
  }
@@ -1021,9 +1020,6 @@ video {
1021
1020
  .theme-crazyDomains .tw-animate-spin {
1022
1021
  animation: tw-spin 1s linear infinite;
1023
1022
  }
1024
- .\!tw-cursor-not-allowed {
1025
- cursor: not-allowed !important;
1026
- }
1027
1023
  .theme-crazyDomains .tw-cursor-not-allowed {
1028
1024
  cursor: not-allowed;
1029
1025
  }
@@ -2231,9 +2227,6 @@ video {
2231
2227
  .theme-crazyDomains .md\:tw-ml-4 {
2232
2228
  margin-left: 1rem;
2233
2229
  }
2234
- .theme-crazyDomains .md\:tw-mr-2 {
2235
- margin-right: 0.5rem;
2236
- }
2237
2230
  .theme-crazyDomains .md\:tw-mt-0 {
2238
2231
  margin-top: 0px;
2239
2232
  }
@@ -643,10 +643,6 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
- .theme-designCom .tw-my-1 {
647
- margin-top: 0.25rem;
648
- margin-bottom: 0.25rem;
649
- }
650
646
  .theme-designCom .tw-my-10 {
651
647
  margin-top: 2.5rem;
652
648
  margin-bottom: 2.5rem;
@@ -853,6 +849,9 @@ video {
853
849
  .theme-designCom .tw-max-h-screen {
854
850
  max-height: 100vh;
855
851
  }
852
+ .theme-designCom .tw-w-1\/3 {
853
+ width: 33.333333%;
854
+ }
856
855
  .theme-designCom .tw-w-10 {
857
856
  width: 2.5rem;
858
857
  }
@@ -1021,9 +1020,6 @@ video {
1021
1020
  .theme-designCom .tw-animate-spin {
1022
1021
  animation: tw-spin 1s linear infinite;
1023
1022
  }
1024
- .\!tw-cursor-not-allowed {
1025
- cursor: not-allowed !important;
1026
- }
1027
1023
  .theme-designCom .tw-cursor-not-allowed {
1028
1024
  cursor: not-allowed;
1029
1025
  }
@@ -2231,9 +2227,6 @@ video {
2231
2227
  .theme-designCom .md\:tw-ml-4 {
2232
2228
  margin-left: 1rem;
2233
2229
  }
2234
- .theme-designCom .md\:tw-mr-2 {
2235
- margin-right: 0.5rem;
2236
- }
2237
2230
  .theme-designCom .md\:tw-mt-0 {
2238
2231
  margin-top: 0px;
2239
2232
  }
@@ -643,10 +643,6 @@ video {
643
643
  margin-top: 0px;
644
644
  margin-bottom: 0px;
645
645
  }
646
- .theme-designCrowd .tw-my-1 {
647
- margin-top: 0.25rem;
648
- margin-bottom: 0.25rem;
649
- }
650
646
  .theme-designCrowd .tw-my-10 {
651
647
  margin-top: 2.5rem;
652
648
  margin-bottom: 2.5rem;
@@ -853,6 +849,9 @@ video {
853
849
  .theme-designCrowd .tw-max-h-screen {
854
850
  max-height: 100vh;
855
851
  }
852
+ .theme-designCrowd .tw-w-1\/3 {
853
+ width: 33.333333%;
854
+ }
856
855
  .theme-designCrowd .tw-w-10 {
857
856
  width: 2.5rem;
858
857
  }
@@ -1021,9 +1020,6 @@ video {
1021
1020
  .theme-designCrowd .tw-animate-spin {
1022
1021
  animation: tw-spin 1s linear infinite;
1023
1022
  }
1024
- .\!tw-cursor-not-allowed {
1025
- cursor: not-allowed !important;
1026
- }
1027
1023
  .theme-designCrowd .tw-cursor-not-allowed {
1028
1024
  cursor: not-allowed;
1029
1025
  }
@@ -2231,9 +2227,6 @@ video {
2231
2227
  .theme-designCrowd .md\:tw-ml-4 {
2232
2228
  margin-left: 1rem;
2233
2229
  }
2234
- .theme-designCrowd .md\:tw-mr-2 {
2235
- margin-right: 0.5rem;
2236
- }
2237
2230
  .theme-designCrowd .md\:tw-mt-0 {
2238
2231
  margin-top: 0px;
2239
2232
  }
@@ -92,11 +92,5 @@
92
92
  "clickToUpload": "klicken Sie hier, um eine Datei hochzuladen.",
93
93
  "acceptedFiles": "Wir akzeptieren PNG-, JPG-, SVG- und EPS-Dateien bis zu 25 MB.",
94
94
  "wrongUploadType": "Sie können Dateien dieses Typs nicht hochladen."
95
- },
96
- "uploadLogoSearchResultCard": {
97
- "replace": "Ersetzen",
98
- "replaceLogo": "Logo ersetzen",
99
- "delete": "Löschen",
100
- "deleteLogo": "Logo löschen"
101
95
  }
102
96
  }
@@ -92,11 +92,5 @@
92
92
  "clickToUpload": "haz clic para subirlo",
93
93
  "acceptedFiles": "Aceptamos archivos PNG, JPG, SVG o EPS de hasta 25 MB",
94
94
  "wrongUploadType": "No puedes subir archivos de este tipo."
95
- },
96
- "uploadLogoSearchResultCard": {
97
- "replace": "Sustituir",
98
- "replaceLogo": "Reemplaza el logo",
99
- "delete": "Eliminar",
100
- "deleteLogo": "Elimina el logo"
101
95
  }
102
96
  }
@@ -92,11 +92,5 @@
92
92
  "clickToUpload": "cliquez pour télécharger",
93
93
  "acceptedFiles": "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
94
94
  "wrongUploadType": "Vous ne pouvez pas télécharger des fichiers de ce type."
95
- },
96
- "uploadLogoSearchResultCard": {
97
- "replace": "Remplacer",
98
- "replaceLogo": "Remplacez le logo",
99
- "delete": "Supprimer",
100
- "deleteLogo": "Supprimez le logo"
101
95
  }
102
96
  }
@@ -29,7 +29,9 @@
29
29
  "copySuccessLabel": "Copied!",
30
30
  "publishedSuccessDescriptionLabel": "Buy matching domain name for your brand",
31
31
  "hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
32
- "selectDomainDropdownPlaceholder": "Select domain name"
32
+ "selectDomainDropdownPlaceholder": "Select domain name",
33
+ "websiteFriendlyName": "Website",
34
+ "digitalBusinessCardFriendlyName": "Digital Business Card"
33
35
  },
34
36
  "sellDomainNameList": {
35
37
  "freeDomainButtonLabel": "Free Domain",
@@ -92,11 +94,5 @@
92
94
  "clickToUpload": "click to upload",
93
95
  "acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
94
96
  "wrongUploadType": "You can't upload files of this type."
95
- },
96
- "uploadLogoSearchResultCard": {
97
- "replace": "Replace",
98
- "replaceLogo": "Replace Logo",
99
- "delete": "Delete",
100
- "deleteLogo": "Delete Logo"
101
97
  }
102
98
  }
@@ -92,11 +92,5 @@
92
92
  "clickToUpload": "clique para carregar",
93
93
  "acceptedFiles": "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
94
94
  "wrongUploadType": "Não pode carregar ficheiros deste tipo."
95
- },
96
- "uploadLogoSearchResultCard": {
97
- "replace": "Substituir",
98
- "replaceLogo": "Substituir logótipo",
99
- "delete": "Eliminar",
100
- "deleteLogo": "Eliminar Logótipo"
101
95
  }
102
96
  }
@@ -270,6 +270,8 @@ const DOMAIN_TYPES = {
270
270
 
271
271
  const DCOM_IMG_FREE = 'https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/publish/dcom-free-url.svg';
272
272
  const BC_IMG_FREE = 'https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/publish/bc-free-url.svg';
273
+ const WEBSITE_FRIENDLY_NAME = 'Website';
274
+ export const DIGITAL_BUSINESS_CARD = 'Digital Business Card';
273
275
 
274
276
  export default {
275
277
  components: {
@@ -454,8 +456,9 @@ export default {
454
456
  return this.brandPageBaseUrl.replace('https://', '');
455
457
  },
456
458
  firstTimePublishHeaderLabel() {
459
+ const translatedBrandPageName = this.getLanguageAwareBrandPageDisplayName(this.brandPageDisplayName);
457
460
  return this.publishBrandPageModalTr('firstTimePublishHeaderLabel', {
458
- brandPageDisplayName: this.brandPageDisplayName,
461
+ brandPageDisplayName: translatedBrandPageName,
459
462
  });
460
463
  },
461
464
  publishSuccessLabel() {
@@ -520,6 +523,18 @@ export default {
520
523
  this.isModalVisible = this.isSearchDomainListModalVisible;
521
524
  },
522
525
  methods: {
526
+ getLanguageAwareBrandPageDisplayName(brandPageName) {
527
+ switch (brandPageName) {
528
+ case WEBSITE_FRIENDLY_NAME:
529
+ return this.te('websiteFriendlyName') ? this.t('websiteFriendlyName') : 'Website';
530
+ case DIGITAL_BUSINESS_CARD:
531
+ return this.te('digitalBusinessCardFriendlyName')
532
+ ? this.t('digitalBusinessCardFriendlyName')
533
+ : 'Digital Business Card';
534
+ default:
535
+ return brandPageName;
536
+ }
537
+ },
523
538
  onDomainTypeRadioButtonClick(domain) {
524
539
  this.domainTypeValue = domain;
525
540
  this.closePurchasedDomainDropdown();
@@ -1,22 +1,24 @@
1
1
  {
2
- "publishBrandPageModal": {
3
- "firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
4
- "sitePublishedLabel": "Site published!",
5
- "publishSuccessLabel": "Your {{brandPageDisplayName}} is live! Start using your link:",
6
- "freePublishCardTitleLabel": "Free Address",
7
- "freePublishCardDescriptionLabel": "Choose a free address to publish now. You can always edit the URL later",
8
- "slugInputPlaceholderYourNameLabel": "your-name",
9
- "slugInputPlaceholderYourBusinessNameLabel": "your-business-name",
10
- "freeDomainLabel": "Free domain",
11
- "purchasedDomainLabel": "Purchased domain",
12
- "setUrlLabel": "Set URL",
13
- "publishLabel": "Publish",
14
- "viewMoreDomainLabel": "VIEW MORE DOMAINS",
15
- "viewMyWebsiteLabel": "View {{brandPageDisplayName}}",
16
- "copyLabel": "Copy",
17
- "copySuccessLabel": "Copied!",
18
- "publishedSuccessDescriptionLabel": "Buy matching domain name for your brand",
19
- "hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
20
- "selectDomainDropdownPlaceholder": "Select domain name"
21
- }
22
- }
2
+ "publishBrandPageModal": {
3
+ "firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
4
+ "sitePublishedLabel": "Site published!",
5
+ "publishSuccessLabel": "Your {{brandPageDisplayName}} is live! Start using your link:",
6
+ "freePublishCardTitleLabel": "Free Address",
7
+ "freePublishCardDescriptionLabel": "Choose a free address to publish now. You can always edit the URL later",
8
+ "slugInputPlaceholderYourNameLabel": "your-name",
9
+ "slugInputPlaceholderYourBusinessNameLabel": "your-business-name",
10
+ "freeDomainLabel": "Free domain",
11
+ "purchasedDomainLabel": "Purchased domain",
12
+ "setUrlLabel": "Set URL",
13
+ "publishLabel": "Publish",
14
+ "viewMoreDomainLabel": "VIEW MORE DOMAINS",
15
+ "viewMyWebsiteLabel": "View {{brandPageDisplayName}}",
16
+ "copyLabel": "Copy",
17
+ "copySuccessLabel": "Copied!",
18
+ "publishedSuccessDescriptionLabel": "Buy matching domain name for your brand",
19
+ "hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
20
+ "selectDomainDropdownPlaceholder": "Select domain name",
21
+ "websiteFriendlyName": "Website",
22
+ "digitalBusinessCardFriendlyName": "Digital Business Card"
23
+ }
24
+ }
@@ -55,7 +55,7 @@
55
55
  }"
56
56
  >
57
57
  <label for="replace-logo-file" class="tw-sr-only">
58
- {{ uploadLogoSearchResultCardTr('replaceLogo') }}
58
+ Replace logo
59
59
  <input
60
60
  id="replace-logo-file"
61
61
  ref="fileInput"
@@ -102,7 +102,6 @@ import Button from '../../../../src/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';
105
- import { uploadLogoSearchResultCardTr } from '../../../useSharedLibTranslate';
106
105
 
107
106
  export default {
108
107
  components: {
@@ -132,11 +131,6 @@ export default {
132
131
  default: false,
133
132
  },
134
133
  },
135
- setup() {
136
- return {
137
- uploadLogoSearchResultCardTr,
138
- };
139
- },
140
134
  data() {
141
135
  return {
142
136
  extraWideLandscape: this.useLandscapeTile && this.aspectRatio <= 30,
@@ -144,14 +138,10 @@ export default {
144
138
  },
145
139
  computed: {
146
140
  replaceButtonLabel() {
147
- return this.alternativeLayout
148
- ? this.uploadLogoSearchResultCardTr('replace')
149
- : this.uploadLogoSearchResultCardTr('replaceLogo');
141
+ return this.alternativeLayout ? 'Replace' : 'Replace Logo';
150
142
  },
151
143
  deleteButtonLabel() {
152
- return this.alternativeLayout
153
- ? this.uploadLogoSearchResultCardTr('delete')
154
- : this.uploadLogoSearchResultCardTr('deleteLogo');
144
+ return this.alternativeLayout ? 'Delete' : 'Delete Logo';
155
145
  },
156
146
  },
157
147
  methods: {
@@ -63,9 +63,6 @@ const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPayme
63
63
 
64
64
  const priceTr = (key, valuesToInterpolate = {}) => tr(`price.${key}`, valuesToInterpolate);
65
65
 
66
- const uploadLogoSearchResultCardTr = (key, valuesToInterpolate = {}) =>
67
- tr(`uploadLogoSearchResultCard.${key}`, valuesToInterpolate);
68
-
69
66
  const getCurrentLocale = () => {
70
67
  return i18next.language || 'en-US';
71
68
  };
@@ -84,5 +81,4 @@ export {
84
81
  uploadYourLogoTr,
85
82
  sharedPaymentConfigTr,
86
83
  priceTr,
87
- uploadLogoSearchResultCardTr,
88
84
  };