@designcrowd/fe-shared-lib 1.2.26-ast-upsell-5 → 1.2.26

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.
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -1603,9 +1606,6 @@ video {
1603
1606
  .tw-p-4 {
1604
1607
  padding: 1rem;
1605
1608
  }
1606
- .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1609
  .tw-p-6 {
1610
1610
  padding: 1.5rem;
1611
1611
  }
@@ -1741,9 +1741,6 @@ video {
1741
1741
  .tw-pt-2 {
1742
1742
  padding-top: 0.5rem;
1743
1743
  }
1744
- .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1744
  .tw-pt-6 {
1748
1745
  padding-top: 1.5rem;
1749
1746
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -1451,9 +1454,6 @@ video {
1451
1454
  .tw-p-4 {
1452
1455
  padding: 1rem;
1453
1456
  }
1454
- .tw-p-5 {
1455
- padding: 1.25rem;
1456
- }
1457
1457
  .tw-p-6 {
1458
1458
  padding: 1.5rem;
1459
1459
  }
@@ -1589,9 +1589,6 @@ video {
1589
1589
  .tw-pt-2 {
1590
1590
  padding-top: 0.5rem;
1591
1591
  }
1592
- .tw-pt-4 {
1593
- padding-top: 1rem;
1594
- }
1595
1592
  .tw-pt-6 {
1596
1593
  padding-top: 1.5rem;
1597
1594
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -1603,9 +1606,6 @@ video {
1603
1606
  .tw-p-4 {
1604
1607
  padding: 1rem;
1605
1608
  }
1606
- .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1609
  .tw-p-6 {
1610
1610
  padding: 1.5rem;
1611
1611
  }
@@ -1741,9 +1741,6 @@ video {
1741
1741
  .tw-pt-2 {
1742
1742
  padding-top: 0.5rem;
1743
1743
  }
1744
- .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1744
  .tw-pt-6 {
1748
1745
  padding-top: 1.5rem;
1749
1746
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -1603,9 +1606,6 @@ video {
1603
1606
  .tw-p-4 {
1604
1607
  padding: 1rem;
1605
1608
  }
1606
- .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1609
  .tw-p-6 {
1610
1610
  padding: 1.5rem;
1611
1611
  }
@@ -1741,9 +1741,6 @@ video {
1741
1741
  .tw-pt-2 {
1742
1742
  padding-top: 0.5rem;
1743
1743
  }
1744
- .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1744
  .tw-pt-6 {
1748
1745
  padding-top: 1.5rem;
1749
1746
  }
@@ -717,6 +717,9 @@ video {
717
717
  .tw-ml-4 {
718
718
  margin-left: 1rem;
719
719
  }
720
+ .tw-ml-6 {
721
+ margin-left: 1.5rem;
722
+ }
720
723
  .tw-ml-auto {
721
724
  margin-left: auto;
722
725
  }
@@ -1603,9 +1606,6 @@ video {
1603
1606
  .tw-p-4 {
1604
1607
  padding: 1rem;
1605
1608
  }
1606
- .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1609
  .tw-p-6 {
1610
1610
  padding: 1.5rem;
1611
1611
  }
@@ -1741,9 +1741,6 @@ video {
1741
1741
  .tw-pt-2 {
1742
1742
  padding-top: 0.5rem;
1743
1743
  }
1744
- .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1744
  .tw-pt-6 {
1748
1745
  padding-top: 1.5rem;
1749
1746
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.26-ast-upsell-5",
3
+ "version": "1.2.26",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -1603,9 +1603,6 @@ video {
1603
1603
  .theme-brandCrowd .tw-p-4 {
1604
1604
  padding: 1rem;
1605
1605
  }
1606
- .theme-brandCrowd .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1606
  .theme-brandCrowd .tw-p-6 {
1610
1607
  padding: 1.5rem;
1611
1608
  }
@@ -1741,9 +1738,6 @@ video {
1741
1738
  .theme-brandCrowd .tw-pt-2 {
1742
1739
  padding-top: 0.5rem;
1743
1740
  }
1744
- .theme-brandCrowd .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1741
  .theme-brandCrowd .tw-pt-6 {
1748
1742
  padding-top: 1.5rem;
1749
1743
  }
@@ -1451,9 +1451,6 @@ video {
1451
1451
  .theme-brandPage .tw-p-4 {
1452
1452
  padding: 1rem;
1453
1453
  }
1454
- .theme-brandPage .tw-p-5 {
1455
- padding: 1.25rem;
1456
- }
1457
1454
  .theme-brandPage .tw-p-6 {
1458
1455
  padding: 1.5rem;
1459
1456
  }
@@ -1589,9 +1586,6 @@ video {
1589
1586
  .theme-brandPage .tw-pt-2 {
1590
1587
  padding-top: 0.5rem;
1591
1588
  }
1592
- .theme-brandPage .tw-pt-4 {
1593
- padding-top: 1rem;
1594
- }
1595
1589
  .theme-brandPage .tw-pt-6 {
1596
1590
  padding-top: 1.5rem;
1597
1591
  }
@@ -1603,9 +1603,6 @@ video {
1603
1603
  .theme-crazyDomains .tw-p-4 {
1604
1604
  padding: 1rem;
1605
1605
  }
1606
- .theme-crazyDomains .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1606
  .theme-crazyDomains .tw-p-6 {
1610
1607
  padding: 1.5rem;
1611
1608
  }
@@ -1741,9 +1738,6 @@ video {
1741
1738
  .theme-crazyDomains .tw-pt-2 {
1742
1739
  padding-top: 0.5rem;
1743
1740
  }
1744
- .theme-crazyDomains .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1741
  .theme-crazyDomains .tw-pt-6 {
1748
1742
  padding-top: 1.5rem;
1749
1743
  }
@@ -1603,9 +1603,6 @@ video {
1603
1603
  .theme-designCom .tw-p-4 {
1604
1604
  padding: 1rem;
1605
1605
  }
1606
- .theme-designCom .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1606
  .theme-designCom .tw-p-6 {
1610
1607
  padding: 1.5rem;
1611
1608
  }
@@ -1741,9 +1738,6 @@ video {
1741
1738
  .theme-designCom .tw-pt-2 {
1742
1739
  padding-top: 0.5rem;
1743
1740
  }
1744
- .theme-designCom .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1741
  .theme-designCom .tw-pt-6 {
1748
1742
  padding-top: 1.5rem;
1749
1743
  }
@@ -1603,9 +1603,6 @@ video {
1603
1603
  .theme-designCrowd .tw-p-4 {
1604
1604
  padding: 1rem;
1605
1605
  }
1606
- .theme-designCrowd .tw-p-5 {
1607
- padding: 1.25rem;
1608
- }
1609
1606
  .theme-designCrowd .tw-p-6 {
1610
1607
  padding: 1.5rem;
1611
1608
  }
@@ -1741,9 +1738,6 @@ video {
1741
1738
  .theme-designCrowd .tw-pt-2 {
1742
1739
  padding-top: 0.5rem;
1743
1740
  }
1744
- .theme-designCrowd .tw-pt-4 {
1745
- padding-top: 1rem;
1746
- }
1747
1741
  .theme-designCrowd .tw-pt-6 {
1748
1742
  padding-top: 1.5rem;
1749
1743
  }
@@ -15,7 +15,7 @@
15
15
  :class="[
16
16
  {
17
17
  'tw-w-full': !isImageMode,
18
- 'tw-p-4': !removeHorizontalPadding && !simple,
18
+ 'tw-p-4': !simple,
19
19
  'tw-max-w-md': size === 'md',
20
20
  'tw-max-w-xl': size === 'xl',
21
21
  'tw-max-w-2xl': !size && !isImageMode,
@@ -91,11 +91,6 @@ export default {
91
91
  required: false,
92
92
  default: false,
93
93
  },
94
- removeHorizontalPadding: {
95
- type: Boolean,
96
- required: false,
97
- default: false,
98
- },
99
94
  visible: {
100
95
  type: Boolean,
101
96
  required: false,
@@ -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
- "websiteFriendlyName": "Website",
22
- "digitalBusinessCardFriendlyName": "Digital Business Card"
23
- }
24
- }
1
+ {}
@@ -75,8 +75,8 @@ const props = defineProps({
75
75
  default: '',
76
76
  },
77
77
  imgUrl: {
78
- type: String,
79
- default: '',
78
+ type: Boolean,
79
+ default: true,
80
80
  },
81
81
  isDesignCom: {
82
82
  type: Boolean,
@@ -1,32 +1,26 @@
1
1
  <template>
2
2
  <div class="publish-bp--container">
3
3
  <Modal
4
- classes="publish-bp--modal tw-pt-4"
4
+ classes="publish-bp--modal tw-px-2 md:tw-px-8"
5
5
  close-on-esc
6
6
  :visible="visible"
7
7
  :hide-scrollbar="false"
8
8
  :show-modal-background-image="showModalBackgroundImage"
9
9
  :content-classes="isBusy ? ['tw-overflow-y-hidden'] : []"
10
- :remove-horizontal-padding="showUpsellRotationContainer && !isCustomDomainActive && !hasPurchasedDomains"
11
- :class="{
12
- 'tw-px-2 md:tw-px-8': !showUpsellRotationContainer && isCustomDomainActive && hasPurchasedDomains,
13
- }"
14
10
  @close-modal="onCloseModal"
15
11
  >
16
12
  <template #header>
17
13
  <div v-if="isNotPublished || isSlugEditMode" class="tw-text-center tw-font-bold tw-mb-8 tw-mt-8 tw-text-4xl">
18
14
  <span>{{ firstTimePublishHeaderLabel }}</span>
19
15
  </div>
20
- <div v-if="isPublished && !isSlugEditMode" class="tw-text-center tw-font-bold tw-mt-8 tw-mb-8">
16
+ <div v-if="isPublished && !isSlugEditMode" class="tw-text-center tw-font-bold tw-mb-8 tw-mt-8">
21
17
  <p class="tw-font-bold tw-text-black tw-mb-2 tw-text-4xl">{{ sitePublishedLabel }}</p>
22
- <div v-if="!showUpsellRotationContainer">
23
- <p v-if="hasPurchasedDomains || isCustomDomainActive" class="tw-text-grayscale-600 tw-mb-8">
24
- {{ publishSuccessLabel }}
25
- </p>
26
- <p v-else class="tw-text-grayscale-600 tw-mb-8 tw-font-normal">
27
- {{ publishedSuccessDescriptionLabel }}
28
- </p>
29
- </div>
18
+ <p v-if="hasPurchasedDomains || isCustomDomainActive" class="tw-text-grayscale-600 tw-mb-8">
19
+ {{ publishSuccessLabel }}
20
+ </p>
21
+ <p v-else class="tw-text-grayscale-600 tw-mb-8 tw-font-normal">
22
+ {{ publishedSuccessDescriptionLabel }}
23
+ </p>
30
24
  </div>
31
25
  </template>
32
26
  <template #default>
@@ -193,7 +187,7 @@
193
187
  </div>
194
188
  </div>
195
189
  <div v-else class="tw-font-sans">
196
- <div v-if="!showUpsellRotationContainer" class="tw-mb-6 tw-text-left">
190
+ <div v-if="!isCustomDomainActive && !hasPurchasedDomains" class="tw-mb-6 tw-text-left">
197
191
  <div class="tw-mb-6">
198
192
  <SellDomainNameSearchWithResults
199
193
  :is-design-com="isDesignCom"
@@ -201,12 +195,17 @@
201
195
  :currency="userCurrency"
202
196
  :display-result-limit="4"
203
197
  :domain-search-location="sitePublishedModal"
204
- show-view-more-button
205
198
  @on-change-search="onSearchTextChanged"
206
199
  @on-buy-now-click="onBuyNowClick"
207
- @on-view-more="onViewMore"
208
200
  />
209
201
  </div>
202
+ <Button
203
+ :label="viewMoreDomainLabel"
204
+ variant="no-border"
205
+ size="small-medium"
206
+ class="tw-text-center"
207
+ @on-click="onViewMore"
208
+ />
210
209
  </div>
211
210
  <div class="tw-px-4 tw-text-center" :class="{ 'lg:tw-px-20': hasPurchasedDomains }">
212
211
  <TextCopyField
@@ -231,9 +230,6 @@
231
230
  @on-click="onBrandPageUrlClick"
232
231
  />
233
232
  </div>
234
- <div v-if="showUpsellRotationContainer" class="tw-border-t tw-border-solid tw-border-grayscale-500 tw-p-5">
235
- <slot name="upsellContainer" />
236
- </div>
237
233
  </div>
238
234
  </template>
239
235
  </Modal>
@@ -409,16 +405,6 @@ export default {
409
405
  required: true,
410
406
  default: '',
411
407
  },
412
- showUpsellRotation: {
413
- type: Boolean,
414
- required: true,
415
- default: false,
416
- },
417
- isSubsequentPublish: {
418
- type: Boolean,
419
- required: true,
420
- default: false,
421
- },
422
408
  },
423
409
  emits: [
424
410
  'close-modal',
@@ -517,12 +503,6 @@ export default {
517
503
  ? this.slugInputPlaceholderYourNameLabel
518
504
  : this.slugInputPlaceholderYourBusinessNameLabel;
519
505
  },
520
- showUpsellRotationContainer() {
521
- if (!this.isSubsequentPublish) {
522
- return false;
523
- }
524
- return this.showUpsellRotation && !this.isCustomDomainActive && !this.hasPurchasedDomains;
525
- },
526
506
  },
527
507
  watch: {
528
508
  brandPageSlug(slug) {
@@ -22,14 +22,6 @@
22
22
  :domain-search-location="domainSearchLocation"
23
23
  @on-buy-now-click="onBuyNowClick"
24
24
  />
25
- <Button
26
- v-if="showViewMoreButton"
27
- :label="viewMoreDomainLabel"
28
- variant="no-border"
29
- size="small-medium"
30
- class="tw-text-center tw-pt-6"
31
- @on-click="onViewMore"
32
- />
33
25
  </div>
34
26
  </template>
35
27
  <script>
@@ -38,8 +30,6 @@ import SellDomainNameSearchResult from '../SellDomainNameSearchResult/SellDomain
38
30
 
39
31
  import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
40
32
  import Events from '../../constants/event-constants';
41
- import { publishBrandPageModalTr } from '../../../useSharedLibTranslate';
42
- import Button from '../../../atoms/components/Button/Button.vue';
43
33
 
44
34
  const TEXT_CHANGED_PARAM = 'textChanged';
45
35
 
@@ -47,7 +37,6 @@ export default {
47
37
  components: {
48
38
  SellDomainNameSearch,
49
39
  SellDomainNameSearchResult,
50
- Button,
51
40
  },
52
41
  props: {
53
42
  currency: {
@@ -112,16 +101,6 @@ export default {
112
101
  type: Number,
113
102
  default: undefined,
114
103
  },
115
- showViewMoreButton: {
116
- type: Boolean,
117
- default: false,
118
- },
119
- },
120
- setup() {
121
- return {
122
- publishBrandPageModalTr,
123
- viewMoreDomainLabel: publishBrandPageModalTr('viewMoreDomainLabel'),
124
- };
125
104
  },
126
105
  data: () => ({
127
106
  domainNameItems: undefined,
@@ -147,7 +126,6 @@ export default {
147
126
  methods: {
148
127
  async onSearchDomainName(args) {
149
128
  this.$emit('on-change-search', args.searchText);
150
- this.$emit('on-domain-search');
151
129
  await this.searchDomainName(args.searchText, args.isUserTriggered);
152
130
  },
153
131
  async searchDomainName(searchText, isUserTriggered) {
@@ -206,9 +184,6 @@ export default {
206
184
  const urlParams = new URLSearchParams(window.location.search);
207
185
  return urlParams.get(TEXT_CHANGED_PARAM)?.toUpperCase() === 'TRUE' || false;
208
186
  },
209
- onViewMore() {
210
- this.$emit('on-view-more');
211
- },
212
187
  },
213
188
  };
214
189
  </script>
@@ -1,24 +0,0 @@
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
- "websiteFriendlyName" : "Website",
22
- "digitalBusinessCardFriendlyName" : "Digital Business Card"
23
- }
24
- }