@designcrowd/fe-shared-lib 1.2.19-ast-upsell-3 → 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
|
@@ -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="
|
|
10
|
+
:remove-horizontal-padding="showUpsellRotationContainer && !isCustomDomainActive && !hasPurchasedDomains"
|
|
11
11
|
:class="{
|
|
12
|
-
'tw-px-2 md:tw-px-8':
|
|
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 ': !
|
|
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="!
|
|
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
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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="
|
|
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) {
|