@designcrowd/fe-shared-lib 1.2.19-ast-upsell-2 → 1.2.19-ast-upsell-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.19-ast-upsell-2",
3
+ "version": "1.2.19-ast-upsell-4",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -7,9 +7,9 @@
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="showUpsellRotation && !isCustomDomainActive && !hasPurchasedDomains"
10
+ :remove-horizontal-padding="showUpsellRotationContainer && !isCustomDomainActive && !hasPurchasedDomains"
11
11
  :class="{
12
- 'tw-px-2 md:tw-px-8': !showUpsellRotation && isCustomDomainActive && hasPurchasedDomains,
12
+ 'tw-px-2 md:tw-px-8': !showUpsellRotationContainer && isCustomDomainActive && hasPurchasedDomains,
13
13
  }"
14
14
  @close-modal="onCloseModal"
15
15
  >
@@ -21,11 +21,11 @@
21
21
  v-if="isPublished && !isSlugEditMode"
22
22
  class="tw-text-center tw-font-bold tw-mt-8"
23
23
  :class="{
24
- 'tw-mb-8 ': !showUpsellRotation,
24
+ 'tw-mb-8 ': !showUpsellRotationContainer,
25
25
  }"
26
26
  >
27
27
  <p class="tw-font-bold tw-text-black tw-mb-2 tw-text-4xl">{{ sitePublishedLabel }}</p>
28
- <div v-if="!showUpsellRotation">
28
+ <div v-if="!showUpsellRotationContainer">
29
29
  <p v-if="hasPurchasedDomains || isCustomDomainActive" class="tw-text-grayscale-600 tw-mb-8">
30
30
  {{ publishSuccessLabel }}
31
31
  </p>
@@ -199,21 +199,22 @@
199
199
  </div>
200
200
  </div>
201
201
  <div v-else class="tw-font-sans">
202
- <div v-if="!isCustomDomainActive && !hasPurchasedDomains" class="tw-mb-6 tw-text-left">
203
- <div v-if="!showUpsellRotation">
204
- <div class="tw-mb-6">
205
- <SellDomainNameSearchWithResults
206
- :is-design-com="isDesignCom"
207
- :initial-search-term="searchText"
208
- :currency="userCurrency"
209
- :display-result-limit="4"
210
- :domain-search-location="sitePublishedModal"
211
- show-view-more-button
212
- @on-change-search="onSearchTextChanged"
213
- @on-buy-now-click="onBuyNowClick"
214
- @on-view-more="onViewMore"
215
- />
216
- </div>
202
+ <div
203
+ v-if="!isCustomDomainActive && !hasPurchasedDomains && !showUpsellRotationContainer"
204
+ class="tw-mb-6 tw-text-left"
205
+ >
206
+ <div class="tw-mb-6">
207
+ <SellDomainNameSearchWithResults
208
+ :is-design-com="isDesignCom"
209
+ :initial-search-term="searchText"
210
+ :currency="userCurrency"
211
+ :display-result-limit="4"
212
+ :domain-search-location="sitePublishedModal"
213
+ show-view-more-button
214
+ @on-change-search="onSearchTextChanged"
215
+ @on-buy-now-click="onBuyNowClick"
216
+ @on-view-more="onViewMore"
217
+ />
217
218
  </div>
218
219
  </div>
219
220
  <div class="tw-px-4 tw-text-center" :class="{ 'lg:tw-px-20': hasPurchasedDomains }">
@@ -239,7 +240,7 @@
239
240
  @on-click="onBrandPageUrlClick"
240
241
  />
241
242
  </div>
242
- <div v-if="showUpsellRotation" class="tw-border-t tw-border-solid tw-border-grayscale-500 tw-p-5">
243
+ <div v-if="showUpsellRotationContainer" class="tw-border-t tw-border-solid tw-border-grayscale-500 tw-p-5">
243
244
  <slot name="upsellContainer" />
244
245
  </div>
245
246
  </div>
@@ -522,6 +523,9 @@ export default {
522
523
  ? this.slugInputPlaceholderYourNameLabel
523
524
  : this.slugInputPlaceholderYourBusinessNameLabel;
524
525
  },
526
+ showUpsellRotationContainer() {
527
+ return this.showUpsellRotation && this.selectedUpsellProp;
528
+ },
525
529
  },
526
530
  watch: {
527
531
  brandPageSlug(slug) {