@designcrowd/fe-shared-lib 1.4.7-ast-generate-ai-3 → 1.4.7-jj-2
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/.storybook-static/assets/Auth-CV5AmoX8.css +1 -0
- package/.storybook-static/assets/Auth.stories-CX3sjxh5.js +490 -0
- package/.storybook-static/assets/AuthCrazyDomains.stories-Didj_VFa.js +73 -0
- package/.storybook-static/assets/Button-5UzSGUF6.css +1 -0
- package/.storybook-static/assets/Button-DtVlr_q3.js +1 -0
- package/.storybook-static/assets/ButtonGroup-Dfr7bNL2.css +1 -0
- package/.storybook-static/assets/ButtonGroup.stories-4EQk-ktb.js +503 -0
- package/.storybook-static/assets/ButtonPrimary-Bu6bXb_c.css +1 -0
- package/.storybook-static/assets/ButtonPrimary-DG9wNod9.js +1 -0
- package/.storybook-static/assets/Buttons.stories-B_KpeCzt.js +761 -0
- package/.storybook-static/assets/ButtonsCrazyDomains.stories-oZtahAmR.js +199 -0
- package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +1 -0
- package/.storybook-static/assets/Checkbox.stories-C67RL0ut.js +203 -0
- package/.storybook-static/assets/Checktile.stories-DN2wfzd6.js +88 -0
- package/.storybook-static/assets/CollapsiblePanel.stories-BkzrqfVG.js +39 -0
- package/.storybook-static/assets/ColorPicker.stories-85BQwpyF.js +73 -0
- package/.storybook-static/assets/CopyToClipboardText.stories-Csh5nVRs.js +32 -0
- package/.storybook-static/assets/Dropdown.stories-NNlxNopk.js +159 -0
- package/.storybook-static/assets/DropdownItem-CDX_V6Mi.js +1 -0
- package/.storybook-static/assets/DropdownItem-CLNmWtKh.css +1 -0
- package/.storybook-static/assets/FormControl.mixin-_gXRExB7.js +1 -0
- package/.storybook-static/assets/HashRouteModal.stories-Dy1_nLTJ.js +64 -0
- package/.storybook-static/assets/HelloBar-z54fob0q.js +1 -0
- package/.storybook-static/assets/HelloBar.stories-ClJ9_KRK.js +342 -0
- package/.storybook-static/assets/Icon-8mZGP41G.js +144 -0
- package/.storybook-static/assets/Icon.stories-BcXMvpuh.js +126 -0
- package/.storybook-static/assets/Icon.stories-D6ECVMta.js +751 -0
- package/.storybook-static/assets/Loader-D61Ki9P1.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-B1_8hw0H.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-DEFhAyxR.css +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours.stories-CIWe9ndn.js +36 -0
- package/.storybook-static/assets/Masonry-C2MNiGg0.css +1 -0
- package/.storybook-static/assets/Masonry.stories-CDT8kZCv.js +71 -0
- package/.storybook-static/assets/Modal-BQrpXSGA.js +1 -0
- package/.storybook-static/assets/Modal-BvVMN71n.css +1 -0
- package/.storybook-static/assets/Modal.stories-BycF7YL6.js +345 -0
- package/.storybook-static/assets/Notice.stories-BufkrC1b.js +222 -0
- package/.storybook-static/assets/NumberStepper-Blffv09R.css +1 -0
- package/.storybook-static/assets/NumberStepper.stories-6_y_lEgC.js +64 -0
- package/.storybook-static/assets/PaymentConfigList-wI1eTv5x.css +1 -0
- package/.storybook-static/assets/PaymentConfigList.stories-BlzzKrzz.js +126 -0
- package/.storybook-static/assets/Picture-Cq76CaoK.js +1 -0
- package/.storybook-static/assets/Picture.stories-BDqRm9_g.js +119 -0
- package/.storybook-static/assets/Pill-BsMeJhV9.js +1 -0
- package/.storybook-static/assets/Pill.stories-DUvzbtnS.js +18 -0
- package/.storybook-static/assets/PillBar-os4mJV3M.css +1 -0
- package/.storybook-static/assets/PillBar.stories-BUMLXBij.js +41 -0
- package/.storybook-static/assets/Price-DKOwLeD0.js +1 -0
- package/.storybook-static/assets/Price.stories-DlqrNUWI.js +221 -0
- package/.storybook-static/assets/PublishBrandPageModal-CLU8-If3.css +1 -0
- package/.storybook-static/assets/PublishBrandPageModal.stories-Dqobvq-n.js +273 -0
- package/.storybook-static/assets/SearchBar.stories-_wPX3-Rl.js +12 -0
- package/.storybook-static/assets/Select-Dw-zvSUg.css +1 -0
- package/.storybook-static/assets/Select.stories-BWINGxdY.js +108 -0
- package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-ByK_ak0A.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-CdfyEX1a.css +1 -0
- package/.storybook-static/assets/SellDomainNameListModal.stories-DrL8w2AY.js +71 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-1WuAKfzI.css +1 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-By0IpIM_.js +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults-BttjI4PH.js +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-Dm1Q8Cza.js +37 -0
- package/.storybook-static/assets/SellDomainNameWidget.stories-CKoz3WnZ.js +36 -0
- package/.storybook-static/assets/SignIn-DNYeJu86.css +1 -0
- package/.storybook-static/assets/SignIn-Dt8OJr0J.js +1 -0
- package/.storybook-static/assets/Slider-Cog2FFdj.css +1 -0
- package/.storybook-static/assets/Slider.stories-08DN2SFB.js +141 -0
- package/.storybook-static/assets/StarRating-BtKh7pzm.css +1 -0
- package/.storybook-static/assets/StarRating.stories-BEIj9ufA.js +45 -0
- package/.storybook-static/assets/TabMenu.stories-D9f0pyZI.js +47 -0
- package/.storybook-static/assets/TextCopyField-B04vTGbG.js +1 -0
- package/.storybook-static/assets/TextCopyField.stories-KD0WUWzA.js +47 -0
- package/.storybook-static/assets/TextInput-JK1M0hv6.js +1 -0
- package/.storybook-static/assets/TextInput.stories-BO0eQqBY.js +233 -0
- package/.storybook-static/assets/Textarea.stories-Bcn4sCkV.js +207 -0
- package/.storybook-static/assets/Toggle.stories-CuTFLoNh.js +161 -0
- package/.storybook-static/assets/Tooltip-DcSbUh5f.js +1 -0
- package/.storybook-static/assets/Tooltip-DyXIgFQH.css +1 -0
- package/.storybook-static/assets/Tooltip.stories-B0I_PBGG.js +953 -0
- package/.storybook-static/assets/UploadYourLogoApplication-EyTEQx-x.css +9 -0
- package/.storybook-static/assets/UploadYourLogoApplication.stories-Dixp1ynI.js +194 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-DQqACf-e.css +1 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-DouZtNvi.js +24 -0
- package/.storybook-static/assets/UploadYourLogoDropzone.stories-BHYeu4gz.js +55 -0
- package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-D1KR63O4.js +79 -0
- package/.storybook-static/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
- package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/.storybook-static/assets/api-lSJGRrF2.js +1 -0
- package/.storybook-static/assets/axe-nGVJxRof.js +30 -0
- package/.storybook-static/assets/brand-crowd-api.client-DiPM1Wo-.js +1 -0
- package/.storybook-static/assets/bundled-translations-BZ57czTo.js +1 -0
- package/.storybook-static/assets/bundled-translations.de-DE-DXggTXB2.js +1 -0
- package/.storybook-static/assets/bundled-translations.es-ES-DtMmvicd.js +1 -0
- package/.storybook-static/assets/bundled-translations.fr-FR-BrQqbieG.js +1 -0
- package/.storybook-static/assets/bundled-translations.pt-PT-CpiWEAtr.js +1 -0
- package/.storybook-static/assets/carousel-CMMZ5MZ-.css +1 -0
- package/.storybook-static/assets/carousel.stories-o3eu2Qyc.js +374 -0
- package/.storybook-static/assets/event-constants-CMO9VQVu.js +1 -0
- package/.storybook-static/assets/iframe-C86bI_2U.js +1126 -0
- package/.storybook-static/assets/index-Bw-gCGc_.js +6 -0
- package/.storybook-static/assets/index-DhkYCT1V.js +29 -0
- package/.storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
- package/.storybook-static/assets/tracking-ATsLLehC.js +1 -0
- package/.storybook-static/css/tailwind-brandCrowd.css +2404 -0
- package/.storybook-static/css/tailwind-brandPage.css +2088 -0
- package/.storybook-static/css/tailwind-crazyDomains.css +2404 -0
- package/.storybook-static/css/tailwind-designCom.css +2404 -0
- package/.storybook-static/css/tailwind-designCrowd.css +2404 -0
- package/.storybook-static/favicon.svg +1 -0
- package/.storybook-static/iframe.html +694 -0
- package/.storybook-static/index.html +156 -0
- package/.storybook-static/index.json +1 -0
- package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/project.json +1 -0
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +5 -0
- package/.storybook-static/sb-addons/links-2/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +188 -0
- package/.storybook-static/sb-addons/themes-3/manager-bundle.js +3 -0
- package/.storybook-static/sb-common-assets/favicon.svg +1 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/sb-manager/globals-module-info.js +797 -0
- package/.storybook-static/sb-manager/globals-runtime.js +72062 -0
- package/.storybook-static/sb-manager/globals.js +34 -0
- package/.storybook-static/sb-manager/runtime.js +13002 -0
- package/dist/css/tailwind-brandCrowd.css +3 -80
- package/dist/css/tailwind-brandPage.css +3 -76
- package/dist/css/tailwind-crazyDomains.css +3 -80
- package/dist/css/tailwind-designCom.css +3 -80
- package/dist/css/tailwind-designCrowd.css +3 -80
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +0 -3
- package/public/css/tailwind-brandPage.css +0 -3
- package/public/css/tailwind-crazyDomains.css +0 -3
- package/public/css/tailwind-designCom.css +0 -3
- package/public/css/tailwind-designCrowd.css +0 -3
- package/src/atoms/components/Icon/Icon.stories.js +0 -2
- package/src/atoms/components/Icon/Icon.vue +0 -4
- package/src/atoms/components/SparkleIcon/SparkleIcon.stories.js +2 -2
- package/src/atoms/components/SparkleIcon/SparkleIcon.vue +36 -28
- package/src/atoms/components/SparkleIcon/assets/sparkle.svg +1 -1
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +0 -29
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +101 -297
- package/src/experiences/components/PublishBrandPageModal/views/InitialPublishView.vue +323 -0
- package/src/experiences/components/PublishBrandPageModal/views/PublishWhenHasDomainsView.vue +271 -0
- package/src/experiences/components/PublishBrandPageModal/views/PublishWhenNoDomainsView.vue +168 -0
- package/src/experiences/components/PublishBrandPageModal/views/PublishedView.vue +149 -0
- package/src/atoms/components/Icon/icons/send.vue +0 -12
- package/src/atoms/components/Icon/icons/stop.vue +0 -5
- package/src/atoms/components/SparkleIcon/sparkle-paths.ts +0 -53
|
@@ -30,211 +30,78 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
</template>
|
|
32
32
|
<template #default>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
element-classes="tw-mb-0 !tw-rounded-l-none tw-text-lg"
|
|
106
|
-
:prefix-text="`${brandPageBaseUrlWithoutHttps}/`"
|
|
107
|
-
:error="!!slugValidationError"
|
|
108
|
-
:disabled="isInputEnabled"
|
|
109
|
-
:placeholder="getPlaceHolder"
|
|
110
|
-
data-test-brand-page-slug-input
|
|
111
|
-
:attrs="{ 'data-test-set-url-text-field': '' }"
|
|
112
|
-
@input="onSlugChanged"
|
|
113
|
-
/>
|
|
114
|
-
<div v-if="slugErrorMessage" class="tw-mt-2 tw-text-sm tw-text-left tw-text-error-500 tw-font-normal">
|
|
115
|
-
{{ slugErrorMessage }}
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
<div v-if="isNotPublished || !isSlugEditMode" class="tw-mt-4">
|
|
120
|
-
<div v-if="showRadioButtons">
|
|
121
|
-
<div
|
|
122
|
-
class="tw-flex tw-items-center tw-mr-2 tw-mb-1"
|
|
123
|
-
@click="onDomainTypeRadioButtonClick(DOMAIN_TYPES.purchased)"
|
|
124
|
-
>
|
|
125
|
-
<input
|
|
126
|
-
type="radio"
|
|
127
|
-
class="tw-w-6 tw-h-8 tw-cursor-pointer tw-mb-0"
|
|
128
|
-
:style="{ 'accent-color': 'rgb(242 27 63)' }"
|
|
129
|
-
name="domainTypeValue"
|
|
130
|
-
:checked="domainTypeValue === DOMAIN_TYPES.purchased"
|
|
131
|
-
:value="domainTypeValue === DOMAIN_TYPES.purchased"
|
|
132
|
-
/>
|
|
133
|
-
<label
|
|
134
|
-
for="domain-type"
|
|
135
|
-
class="tw-font-sans tw-w-full tw-text-grayscale-600 tw-text-sm tw-cursor-pointer tw-ml-2"
|
|
136
|
-
>
|
|
137
|
-
<span class="tw-inline-block tw-rounded-full">{{ purchasedDomainLabel }}</span>
|
|
138
|
-
</label>
|
|
139
|
-
</div>
|
|
140
|
-
<div class="tw-mt-4 domain-dropdown">
|
|
141
|
-
<Dropdown
|
|
142
|
-
v-if="domains"
|
|
143
|
-
ref="dropdown"
|
|
144
|
-
:element-classes="{
|
|
145
|
-
'tw-h-12': true,
|
|
146
|
-
}"
|
|
147
|
-
menu-element-classes="tw-w-full"
|
|
148
|
-
:disabled="domainTypeValue === DOMAIN_TYPES.slug"
|
|
149
|
-
:class="{
|
|
150
|
-
'tw-text-grayscale-600 tw-font-normal': !selectedCustomDomain,
|
|
151
|
-
}"
|
|
152
|
-
:title="(selectedCustomDomain && selectedCustomDomain.domainName) || selectDomainDropdownPlaceholder"
|
|
153
|
-
>
|
|
154
|
-
<DropdownItem
|
|
155
|
-
v-for="purchasedDomain of domains"
|
|
156
|
-
:key="purchasedDomain.domainName"
|
|
157
|
-
class="tw-font-bold tw-break-all tw-flex tw-gap-2 tw-text-black"
|
|
158
|
-
@click="onSelectPurchasedDomain(purchasedDomain)"
|
|
159
|
-
>
|
|
160
|
-
{{ purchasedDomain.domainName }}
|
|
161
|
-
</DropdownItem>
|
|
162
|
-
</Dropdown>
|
|
163
|
-
</div>
|
|
164
|
-
<div v-if="errorMessage" class="tw-mt-2 tw-text-sm tw-text-left tw-text-error-500 tw-font-normal">
|
|
165
|
-
{{ errorMessage }}
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
<slot v-if="!hasPurchasedDomains" name="recommended" />
|
|
169
|
-
</div>
|
|
170
|
-
<div
|
|
171
|
-
v-if="hasPurchasedDomains"
|
|
172
|
-
class="tw-font-sans tw-text-center"
|
|
173
|
-
:style="isMobile ? 'padding-left: 1.5rem; padding-right: 1.5rem;' : ''"
|
|
174
|
-
>
|
|
175
|
-
<Button
|
|
176
|
-
:label="isSlugEditMode ? setUrlLabel : publishLabel"
|
|
177
|
-
:variant="isDesignCom ? 'primary' : 'primary-with-icon'"
|
|
178
|
-
icon="chevron-right-wide"
|
|
179
|
-
:disabled="isPublishingDisabled"
|
|
180
|
-
class="tw-my-4"
|
|
181
|
-
:full-width="isMobile"
|
|
182
|
-
data-test-brand-page-publish-button
|
|
183
|
-
@on-click="onPublish"
|
|
184
|
-
/>
|
|
185
|
-
<Button
|
|
186
|
-
:label="hasAlreadyPurchasedDomainCloseButtonLabel"
|
|
187
|
-
variant="no-border"
|
|
188
|
-
size="large"
|
|
189
|
-
class="tw-my-4"
|
|
190
|
-
:full-width="isMobile"
|
|
191
|
-
@on-click="onCloseModal"
|
|
192
|
-
/>
|
|
193
|
-
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<div v-else class="tw-font-sans">
|
|
196
|
-
<div v-if="!showUpsellRotationContainer" class="tw-mb-6 tw-text-left">
|
|
197
|
-
<div class="tw-mb-6">
|
|
198
|
-
<SellDomainNameSearchWithResults
|
|
199
|
-
:is-design-com="isDesignCom"
|
|
200
|
-
:initial-search-term="searchText"
|
|
201
|
-
:currency="userCurrency"
|
|
202
|
-
:display-result-limit="4"
|
|
203
|
-
:domain-search-location="sitePublishedModal"
|
|
204
|
-
show-view-more-button
|
|
205
|
-
@on-change-search="onSearchTextChanged"
|
|
206
|
-
@on-buy-now-click="onBuyNowClick"
|
|
207
|
-
@on-view-more="onViewMore"
|
|
208
|
-
/>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
<div class="tw-px-4 tw-text-center" :class="{ 'lg:tw-px-20': hasPurchasedDomains }">
|
|
212
|
-
<TextCopyField
|
|
213
|
-
button-variant="secondary"
|
|
214
|
-
:text="brandPageUrl"
|
|
215
|
-
:default-copy-button-text="copyLabel"
|
|
216
|
-
:copied-button-text="copySuccessLabel"
|
|
217
|
-
data-test-brand-page-copy-input
|
|
218
|
-
@on-click="onCopyUrlClick"
|
|
219
|
-
/>
|
|
220
|
-
<Button
|
|
221
|
-
:label="viewMyWebsiteLabel"
|
|
222
|
-
:variant="isDesignCom ? 'primary' : 'primary-with-icon'"
|
|
223
|
-
icon="chevron-right-wide"
|
|
224
|
-
size="medium"
|
|
225
|
-
icon-view-box="0 0 24 24"
|
|
226
|
-
class="tw-my-4"
|
|
227
|
-
target="_blank"
|
|
228
|
-
rel="noopener noreferrer"
|
|
229
|
-
:url="brandPageUrl"
|
|
230
|
-
:full-width="isMobile"
|
|
231
|
-
@on-click="onBrandPageUrlClick"
|
|
232
|
-
/>
|
|
233
|
-
</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
|
-
</div>
|
|
33
|
+
<PublishWhenNoDomainsView
|
|
34
|
+
v-if="isNotPublished && !hasPurchasedDomains"
|
|
35
|
+
:brand-page-base-url="brandPageBaseUrl"
|
|
36
|
+
:brand-page-slug="brandPageSlug"
|
|
37
|
+
:slug-validation-error="slugValidationError"
|
|
38
|
+
:error-message="errorMessage"
|
|
39
|
+
:publish-error-message="publishErrorMessage"
|
|
40
|
+
:is-publishing="isPublishing"
|
|
41
|
+
:is-design-com="isDesignCom"
|
|
42
|
+
:brand-page-type="brandPageType"
|
|
43
|
+
@on-slug-changed="onSlugChanged"
|
|
44
|
+
@internal-publish-brand-page="onInternalPublishBrandPage"
|
|
45
|
+
>
|
|
46
|
+
<template #recommended>
|
|
47
|
+
<slot name="recommended" />
|
|
48
|
+
</template>
|
|
49
|
+
</PublishWhenNoDomainsView>
|
|
50
|
+
<PublishWhenHasDomainsView
|
|
51
|
+
v-if="isNotPublished && showRadioButtons && hasPurchasedDomains"
|
|
52
|
+
:radio-value="radioValue"
|
|
53
|
+
:domains="domains"
|
|
54
|
+
:brand-page-base-url="brandPageBaseUrl"
|
|
55
|
+
:brand-page-slug="brandPageSlug"
|
|
56
|
+
:custom-domain="customDomain"
|
|
57
|
+
:slug-validation-error="slugValidationError"
|
|
58
|
+
:error-message="errorMessage"
|
|
59
|
+
:publish-error-message="publishErrorMessage"
|
|
60
|
+
:is-publishing="isPublishing"
|
|
61
|
+
:is-design-com="isDesignCom"
|
|
62
|
+
:brand-page-type="brandPageType"
|
|
63
|
+
@close-modal="onCloseModal"
|
|
64
|
+
@on-slug-changed="onSlugChanged"
|
|
65
|
+
@radio-button-changed="onRadioButtonChanged"
|
|
66
|
+
@on-select-domain="onSelectDomain"
|
|
67
|
+
@internal-publish-brand-page="onInternalPublishBrandPage"
|
|
68
|
+
/>
|
|
69
|
+
<!-- <InitialPublishView
|
|
70
|
+
v-if="isNotPublished || isSlugEditMode"
|
|
71
|
+
:radio-value="radioValue"
|
|
72
|
+
:domains="domains"
|
|
73
|
+
:brand-page-base-url="brandPageBaseUrl"
|
|
74
|
+
:brand-page-slug="brandPageSlug"
|
|
75
|
+
:custom-domain="customDomain"
|
|
76
|
+
:slug-validation-error="slugValidationError"
|
|
77
|
+
:brand-page-display-name="brandPageDisplayName"
|
|
78
|
+
:error-message="errorMessage"
|
|
79
|
+
:publish-error-message="publishErrorMessage"
|
|
80
|
+
:is-published="isPublished"
|
|
81
|
+
:is-publishing="isPublishing"
|
|
82
|
+
:should-publish="shouldPublish"
|
|
83
|
+
:is-design-com="isDesignCom"
|
|
84
|
+
:show-radio-buttons="showRadioButtons"
|
|
85
|
+
:is-brand-page-slug-edit-mode="isBrandPageSlugEditMode"
|
|
86
|
+
:brand-page-type="brandPageType"
|
|
87
|
+
/> -->
|
|
88
|
+
<PublishedView
|
|
89
|
+
v-if="!isNotPublished && !isSlugEditMode"
|
|
90
|
+
:brand-page-url="brandPageUrl"
|
|
91
|
+
:is-design-com="isDesignCom"
|
|
92
|
+
:show-upsell-rotation="showUpsellRotation"
|
|
93
|
+
:is-subsequent-publish="isSubsequentPublish"
|
|
94
|
+
:search-text="searchText"
|
|
95
|
+
:brand-page-display-name="brandPageDisplayName"
|
|
96
|
+
:has-purchased-domain="hasPurchasedDomains"
|
|
97
|
+
:show-upsell-rotation-container="showUpsellRotationContainer"
|
|
98
|
+
:user-currency="userCurrency"
|
|
99
|
+
@copy-url-clicked="onCopyUrlClick"
|
|
100
|
+
@on-brand-page-url-click="onBrandPageUrlClick"
|
|
101
|
+
@on-view-more-domains="onViewMore"
|
|
102
|
+
@on-buy-now-clicked="onBuyNowClick"
|
|
103
|
+
@on-search-text-changed="onSearchTextChanged"
|
|
104
|
+
/>
|
|
238
105
|
</template>
|
|
239
106
|
</Modal>
|
|
240
107
|
<SellDomainNameListModal
|
|
@@ -253,41 +120,32 @@
|
|
|
253
120
|
</template>
|
|
254
121
|
<script>
|
|
255
122
|
import Modal from '../../../atoms/components/Modal/Modal.vue';
|
|
256
|
-
import PublishBrandPageCard from './PublishBrandPageCard.vue';
|
|
257
|
-
import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
|
|
258
|
-
import Dropdown from '../../../atoms/components/Dropdown/Dropdown.vue';
|
|
259
|
-
import DropdownItem from '../../../atoms/components/Dropdown/DropdownItem.vue';
|
|
260
|
-
import Button from '../../../atoms/components/Button/Button.vue';
|
|
261
|
-
import TextCopyField from '../../../atoms/components/TextCopyField/TextCopyField.vue';
|
|
262
|
-
|
|
263
|
-
import SellDomainNameSearchWithResults from '../SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue';
|
|
264
123
|
import SellDomainNameListModal from '../SellDomainNameListModal/SellDomainNameListModal.vue';
|
|
265
124
|
import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
|
|
266
125
|
import Events, { sitePublishedModal } from '../../constants/event-constants';
|
|
267
126
|
import mediaQueryMixin from '../../mixins/mediaQueryMixin';
|
|
268
127
|
import { publishBrandPageModalTr } from '../../../useSharedLibTranslate';
|
|
128
|
+
import PublishedView from './views/PublishedView.vue';
|
|
129
|
+
// import InitialPublishView from './views/InitialPublishView.vue';
|
|
130
|
+
import PublishWhenNoDomainsView from './views/PublishWhenNoDomainsView.vue';
|
|
131
|
+
import PublishWhenHasDomainsView from './views/PublishWhenHasDomainsView.vue';
|
|
269
132
|
|
|
270
133
|
const DOMAIN_TYPES = {
|
|
271
134
|
slug: 'slug',
|
|
272
135
|
purchased: 'purchased',
|
|
273
136
|
};
|
|
274
137
|
|
|
275
|
-
const DCOM_IMG_FREE = 'https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/publish/dcom-free-url.svg';
|
|
276
|
-
const BC_IMG_FREE = 'https://brandcrowd-cdn.s3.amazonaws.com/public/assets/images/icons/publish/bc-free-url.svg';
|
|
277
138
|
const WEBSITE_FRIENDLY_NAME = 'Website';
|
|
278
139
|
export const DIGITAL_BUSINESS_CARD = 'Digital Business Card';
|
|
279
140
|
|
|
280
141
|
export default {
|
|
281
142
|
components: {
|
|
282
143
|
Modal,
|
|
283
|
-
TextInput,
|
|
284
|
-
Dropdown,
|
|
285
|
-
DropdownItem,
|
|
286
|
-
Button,
|
|
287
|
-
TextCopyField,
|
|
288
|
-
SellDomainNameSearchWithResults,
|
|
289
144
|
SellDomainNameListModal,
|
|
290
|
-
|
|
145
|
+
PublishedView,
|
|
146
|
+
// InitialPublishView,
|
|
147
|
+
PublishWhenNoDomainsView,
|
|
148
|
+
PublishWhenHasDomainsView,
|
|
291
149
|
},
|
|
292
150
|
mixins: [mediaQueryMixin],
|
|
293
151
|
props: {
|
|
@@ -423,31 +281,19 @@ export default {
|
|
|
423
281
|
emits: [
|
|
424
282
|
'close-modal',
|
|
425
283
|
'radio-button-changed',
|
|
426
|
-
'copy-url-
|
|
284
|
+
'copy-url-clicked',
|
|
427
285
|
'internal-publish-brand-page',
|
|
428
286
|
'on-select-domain',
|
|
429
287
|
'on-brand-page-url-click',
|
|
430
288
|
'on-view-more-domains',
|
|
431
289
|
'on-slug-changed',
|
|
290
|
+
'on-show-domain-modal',
|
|
432
291
|
],
|
|
433
292
|
setup() {
|
|
434
293
|
return {
|
|
435
294
|
publishBrandPageModalTr,
|
|
436
295
|
sitePublishedLabel: publishBrandPageModalTr('sitePublishedLabel'),
|
|
437
|
-
freePublishCardTitleLabel: publishBrandPageModalTr('freePublishCardTitleLabel'),
|
|
438
|
-
freePublishCardDescriptionLabel: publishBrandPageModalTr('freePublishCardDescriptionLabel'),
|
|
439
|
-
slugInputPlaceholderYourNameLabel: publishBrandPageModalTr('slugInputPlaceholderYourNameLabel'),
|
|
440
|
-
slugInputPlaceholderYourBusinessNameLabel: publishBrandPageModalTr('slugInputPlaceholderYourBusinessNameLabel'),
|
|
441
|
-
freeDomainLabel: publishBrandPageModalTr('freeDomainLabel'),
|
|
442
|
-
purchasedDomainLabel: publishBrandPageModalTr('purchasedDomainLabel'),
|
|
443
|
-
setUrlLabel: publishBrandPageModalTr('setUrlLabel'),
|
|
444
|
-
publishLabel: publishBrandPageModalTr('publishLabel'),
|
|
445
|
-
viewMoreDomainLabel: publishBrandPageModalTr('viewMoreDomainLabel'),
|
|
446
|
-
copyLabel: publishBrandPageModalTr('copyLabel'),
|
|
447
|
-
copySuccessLabel: publishBrandPageModalTr('copySuccessLabel'),
|
|
448
|
-
hasAlreadyPurchasedDomainCloseButtonLabel: publishBrandPageModalTr('hasAlreadyPurchasedDomainCloseButtonLabel'),
|
|
449
296
|
publishedSuccessDescriptionLabel: publishBrandPageModalTr('publishedSuccessDescriptionLabel'),
|
|
450
|
-
selectDomainDropdownPlaceholder: publishBrandPageModalTr('selectDomainDropdownPlaceholder'),
|
|
451
297
|
};
|
|
452
298
|
},
|
|
453
299
|
data() {
|
|
@@ -466,9 +312,6 @@ export default {
|
|
|
466
312
|
};
|
|
467
313
|
},
|
|
468
314
|
computed: {
|
|
469
|
-
brandPageBaseUrlWithoutHttps() {
|
|
470
|
-
return this.brandPageBaseUrl.replace('https://', '');
|
|
471
|
-
},
|
|
472
315
|
firstTimePublishHeaderLabel() {
|
|
473
316
|
const translatedBrandPageName = this.getLanguageAwareBrandPageDisplayName(this.brandPageDisplayName);
|
|
474
317
|
return this.publishBrandPageModalTr('firstTimePublishHeaderLabel', {
|
|
@@ -480,43 +323,15 @@ export default {
|
|
|
480
323
|
brandPageDisplayName: this.brandPageDisplayName,
|
|
481
324
|
});
|
|
482
325
|
},
|
|
483
|
-
viewMyWebsiteLabel() {
|
|
484
|
-
return this.publishBrandPageModalTr('viewMyWebsiteLabel', {
|
|
485
|
-
brandPageDisplayName: this.brandPageDisplayName,
|
|
486
|
-
});
|
|
487
|
-
},
|
|
488
|
-
allowPublish() {
|
|
489
|
-
if (this.domainTypeValue === DOMAIN_TYPES.slug) {
|
|
490
|
-
return this.internalSlug && !this.slugValidationError;
|
|
491
|
-
}
|
|
492
|
-
return this.selectedCustomDomain;
|
|
493
|
-
},
|
|
494
326
|
hasPurchasedDomains() {
|
|
495
327
|
return this.domains && this.domains.length > 0;
|
|
496
328
|
},
|
|
497
|
-
slugErrorMessage() {
|
|
498
|
-
return this.slugValidationError ? this.slugValidationError : this.publishErrorMessage;
|
|
499
|
-
},
|
|
500
329
|
isNotPublished() {
|
|
501
330
|
return !this.isPublished || !this.shouldPublish;
|
|
502
331
|
},
|
|
503
332
|
isSlugEditMode() {
|
|
504
333
|
return this.isPublished && this.shouldPublish && this.isBrandPageSlugEditMode;
|
|
505
334
|
},
|
|
506
|
-
iconUrl() {
|
|
507
|
-
return this.isDesignCom ? DCOM_IMG_FREE : BC_IMG_FREE;
|
|
508
|
-
},
|
|
509
|
-
isInputEnabled() {
|
|
510
|
-
return this.isPublishing || this.domainTypeValue === DOMAIN_TYPES.purchased;
|
|
511
|
-
},
|
|
512
|
-
isPublishingDisabled() {
|
|
513
|
-
return !this.allowPublish || this.isPublishing;
|
|
514
|
-
},
|
|
515
|
-
getPlaceHolder() {
|
|
516
|
-
return this.brandPageType === 'brandContact'
|
|
517
|
-
? this.slugInputPlaceholderYourNameLabel
|
|
518
|
-
: this.slugInputPlaceholderYourBusinessNameLabel;
|
|
519
|
-
},
|
|
520
335
|
showUpsellRotationContainer() {
|
|
521
336
|
if (!this.isSubsequentPublish) {
|
|
522
337
|
return false;
|
|
@@ -553,28 +368,10 @@ export default {
|
|
|
553
368
|
return brandPageName;
|
|
554
369
|
}
|
|
555
370
|
},
|
|
556
|
-
onDomainTypeRadioButtonClick(domain) {
|
|
557
|
-
this.domainTypeValue = domain;
|
|
558
|
-
this.closePurchasedDomainDropdown();
|
|
559
|
-
this.$emit('radio-button-changed', domain);
|
|
560
|
-
},
|
|
561
371
|
onCloseModal() {
|
|
562
372
|
this.$emit('close-modal');
|
|
563
373
|
this.$emit('on-hide-domain-modal');
|
|
564
374
|
},
|
|
565
|
-
onCopyUrlClick() {
|
|
566
|
-
this.$emit('copy-url-clicked');
|
|
567
|
-
},
|
|
568
|
-
onSlugChanged(e) {
|
|
569
|
-
this.searchText = e;
|
|
570
|
-
this.$emit('on-slug-changed', e);
|
|
571
|
-
},
|
|
572
|
-
onPublish() {
|
|
573
|
-
this.$emit('internal-publish-brand-page', this.internalSlug, this.selectedCustomDomain);
|
|
574
|
-
},
|
|
575
|
-
onBrandPageUrlClick() {
|
|
576
|
-
this.$emit('on-brand-page-url-click');
|
|
577
|
-
},
|
|
578
375
|
onViewMore() {
|
|
579
376
|
this.$emit('on-show-domain-modal');
|
|
580
377
|
if (this.searchText) {
|
|
@@ -585,22 +382,29 @@ export default {
|
|
|
585
382
|
this.searchText = val;
|
|
586
383
|
this.$emit('on-change-search', val);
|
|
587
384
|
},
|
|
588
|
-
|
|
589
|
-
this
|
|
385
|
+
onSellDomainNameListCloseModal() {
|
|
386
|
+
this.$emit('on-hide-domain-modal');
|
|
387
|
+
},
|
|
388
|
+
onSlugChanged(e) {
|
|
389
|
+
this.$emit('on-slug-changed', e);
|
|
390
|
+
},
|
|
391
|
+
onInternalPublishBrandPage(slug, customdomain) {
|
|
392
|
+
this.$emit('internal-publish-brand-page', slug, customdomain);
|
|
393
|
+
},
|
|
394
|
+
onRadioButtonChanged(domain) {
|
|
395
|
+
this.$emit('radio-button-changed', domain);
|
|
396
|
+
},
|
|
397
|
+
onSelectDomain(newVal) {
|
|
590
398
|
this.$emit('on-select-domain', newVal);
|
|
591
|
-
this.closePurchasedDomainDropdown();
|
|
592
399
|
},
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (this.$refs.dropdown?.hideMenu) {
|
|
596
|
-
this.$refs.dropdown.hideMenu();
|
|
597
|
-
}
|
|
400
|
+
onCopyUrlClick(newVal) {
|
|
401
|
+
this.$emit('copy-url-clicked', newVal);
|
|
598
402
|
},
|
|
599
|
-
|
|
600
|
-
this.$emit('on-
|
|
403
|
+
onBrandPageUrlClick(newVal) {
|
|
404
|
+
this.$emit('on-brand-page-url-click', newVal);
|
|
601
405
|
},
|
|
602
|
-
|
|
603
|
-
this.$emit('on-buy-now-clicked');
|
|
406
|
+
onBuyNow(newVal) {
|
|
407
|
+
this.$emit('on-buy-now-clicked', newVal);
|
|
604
408
|
},
|
|
605
409
|
async searchDomainName(isUserTriggered) {
|
|
606
410
|
this.isLoading = true;
|