@designcrowd/fe-shared-lib 1.1.12-ml-jj-1 → 1.2.0-ast-disabled-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.
@@ -4,9 +4,6 @@ module.exports = {
4
4
  stories: ['../src/**/components/**/*.stories.@(js|jsx|ts|tsx)'],
5
5
  addons: [
6
6
  '@storybook/addon-a11y',
7
- '@storybook/addon-actions',
8
- '@storybook/addon-controls',
9
- '@storybook/addon-essentials',
10
7
  '@storybook/addon-links',
11
8
  {
12
9
  name: '@storybook/addon-themes',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.1.12-ml-jj-1",
3
+ "version": "1.2.0-ast-disabled-1",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -17,7 +17,8 @@
17
17
  "docker:publish": "docker build . --build-arg NPM_TOKEN=$NPM_TOKEN"
18
18
  },
19
19
  "dependencies": {
20
- "@nuxtjs/i18n": "^9.2.1",
20
+ "@nuxtjs/i18n": "9.5.4",
21
+ "@storybook/react": "^9.0.4",
21
22
  "autoprefixer": "10.4.17",
22
23
  "axios": "1.6.7",
23
24
  "click-outside-vue3": "4.0.1",
@@ -29,26 +30,23 @@
29
30
  "postcss-loader": "8.1.0",
30
31
  "swiper": "11.0.6",
31
32
  "tailwindcss": "3.4.1",
32
- "vite": "5.1.4",
33
+ "vite": "6.3.5",
33
34
  "vite-plugin-eslint": "1.8.1",
34
35
  "vite-plugin-vue-devtools": "7.7.0",
35
- "vue": "3.5.13",
36
- "vue-color": "2.8.1",
36
+ "vue": "3.5.15",
37
+ "vue-color": "3.0.2",
37
38
  "vue-cropperjs": "5.0.0",
38
39
  "vue-observe-visibility": "1.0.0",
39
40
  "vue-router": "4.5.0",
40
41
  "yargs": "17.7.2"
41
42
  },
42
43
  "devDependencies": {
43
- "@storybook/addon-a11y": "8.6.11",
44
- "@storybook/addon-actions": "8.6.11",
45
- "@storybook/addon-controls": "8.6.11",
46
- "@storybook/addon-essentials": "8.6.11",
47
- "@storybook/addon-links": "8.6.11",
48
- "@storybook/addon-themes": "8.6.11",
49
- "@storybook/vue3": "8.6.11",
50
- "@storybook/vue3-vite": "8.6.11",
51
- "@vitejs/plugin-vue": "5.0.4",
44
+ "@storybook/addon-a11y": "9.0.4",
45
+ "@storybook/addon-links": "9.0.4",
46
+ "@storybook/addon-themes": "9.0.4",
47
+ "@storybook/vue3": "9.0.4",
48
+ "@storybook/vue3-vite": "9.0.4",
49
+ "@vitejs/plugin-vue": "5.2.4",
52
50
  "@vue/cli-plugin-eslint": "5.0.8",
53
51
  "@vue/cli-service": "5.0.8",
54
52
  "@vue/eslint-config-airbnb": "8.0.0",
@@ -69,7 +67,7 @@
69
67
  "postcss-import": "16.0.0",
70
68
  "postcss-nested": "6.0.1",
71
69
  "prettier": "3.2.4",
72
- "storybook": "8.6.11",
70
+ "storybook": "9.0.4",
73
71
  "stylelint": "16.2.1",
74
72
  "stylelint-config-standard": "36.0.0",
75
73
  "tailwindcss": "3.4.1",
@@ -106,5 +104,8 @@
106
104
  "./src/*.js": {
107
105
  "import": "./src/*.js"
108
106
  }
107
+ },
108
+ "overrides": {
109
+ "storybook": "$storybook"
109
110
  }
110
111
  }
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-brandCrowd .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-brandCrowd .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(0 121 172 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-brandCrowd .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(252 209 217 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-brandCrowd .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(245 73 101 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-brandPage .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-brandPage .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-crazyDomains .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-crazyDomains .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(0 129 191 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-crazyDomains .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(226 238 213 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-crazyDomains .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(140 189 89 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-designCom .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-designCom .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(50 71 197 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-designCom .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(236 238 254 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-designCom .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(121 139 249 / var(--tw-bg-opacity));
@@ -1020,6 +1020,9 @@ video {
1020
1020
  .theme-designCrowd .tw-animate-spin {
1021
1021
  animation: tw-spin 1s linear infinite;
1022
1022
  }
1023
+ .\!tw-cursor-not-allowed {
1024
+ cursor: not-allowed !important;
1025
+ }
1023
1026
  .theme-designCrowd .tw-cursor-not-allowed {
1024
1027
  cursor: not-allowed;
1025
1028
  }
@@ -2041,10 +2044,6 @@ video {
2041
2044
  --tw-bg-opacity: 1;
2042
2045
  background-color: rgb(14 121 188 / var(--tw-bg-opacity));
2043
2046
  }
2044
- .theme-designCrowd .hover\:tw-bg-primary-100:hover {
2045
- --tw-bg-opacity: 1;
2046
- background-color: rgb(207 234 251 / var(--tw-bg-opacity));
2047
- }
2048
2047
  .theme-designCrowd .hover\:tw-bg-primary-400:hover {
2049
2048
  --tw-bg-opacity: 1;
2050
2049
  background-color: rgb(65 172 239 / var(--tw-bg-opacity));
@@ -21,6 +21,7 @@ export const Sample = () => {
21
21
  {
22
22
  label: 'Medium',
23
23
  value: 'medium',
24
+ disabled: true,
24
25
  },
25
26
  {
26
27
  label: 'Large',
@@ -10,11 +10,14 @@
10
10
  <button
11
11
  class="button-group-item tw-text-xs tw-shadow-inner tw-w-full tw-py-2"
12
12
  :class="{
13
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
14
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
13
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
14
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
15
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
16
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
15
17
  }"
18
+ :disabled="option.disabled"
16
19
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
17
- @click="$emit('on-select', option)"
20
+ @click="!option.disabled && $emit('on-select', option)"
18
21
  >
19
22
  <slot name="content" :option="option"></slot>
20
23
  </button>
@@ -35,8 +38,10 @@
35
38
  <button
36
39
  v-if="variant === 'icon'"
37
40
  :class="{
38
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
39
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
41
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
42
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
43
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
44
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
40
45
  'tw-px-2': !option.iconViewBox,
41
46
  'tw-px-px':
42
47
  option.iconViewBox && !option.isSelected && !option.iconName.includes('display-style') && btnStyleVariant, // TODO - move style logic to computed prop
@@ -45,9 +50,10 @@
45
50
  'tw-px-0 tw-py-0': option.iconName.includes('display-style') || btnStyleVariant === 'compressed',
46
51
  }"
47
52
  :style="option.iconName.includes('display-style') ? { lineHeight: 0 } : {}"
53
+ :disabled="option.disabled"
48
54
  class="tw-text-xs button-group-icon-button tw-shadow-inner"
49
55
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
50
- @click="$emit('on-select', option)"
56
+ @click="!option.disabled && $emit('on-select', option)"
51
57
  >
52
58
  <div
53
59
  :class="{
@@ -67,12 +73,15 @@
67
73
  <button
68
74
  v-else
69
75
  :class="{
70
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
71
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
76
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
77
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
78
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
79
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
72
80
  }"
81
+ :disabled="option.disabled"
73
82
  class="tw-text-xs button-group-image-button tw-shadow-inner"
74
83
  v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
75
- @click="$emit('on-select', option)"
84
+ @click="!option.disabled && $emit('on-select', option)"
76
85
  >
77
86
  <img :src="option.src" :alt="option.alt" class="tw-w-full tw-h-full" />
78
87
  </button>
@@ -90,11 +99,14 @@
90
99
  :key="`button-${option.value}`"
91
100
  :class="{
92
101
  'tw-ml-2': idx > 0 && !columns,
93
- '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
94
- '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
102
+ '!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected && !option.disabled,
103
+ '!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected && !option.disabled,
104
+ 'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
105
+ 'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
95
106
  }"
107
+ :disabled="option.disabled"
96
108
  class="tw-text-xs button-group-button tw-shadow-inner"
97
- @click="$emit('on-select', option)"
109
+ @click="!option.disabled && $emit('on-select', option)"
98
110
  >
99
111
  {{ option.label }}
100
112
  </button>
@@ -7,49 +7,6 @@ export default {
7
7
  component: PublishBrandPageModal,
8
8
  };
9
9
 
10
- const locale = 'en-test';
11
-
12
- const localePublishBrandPageModalContent = {
13
- 'en-US': {
14
- firstTimePublishHeaderLabel: `Set the URL for your Website`,
15
- sitePublishedLabel: `Site published!`,
16
- publishSuccessLabel: `Your Website is live! Start using your link:`,
17
- freePublishCardTitleLabel: `Free Address`,
18
- freePublishCardDescriptionLabel: `Choose a free address to publish now. You can always edit the URL later`,
19
- slugInputPlaceholderYourNameLabel: 'your-name',
20
- slugInputPlaceholderYourBusinessNameLabel: 'your-business-name',
21
- freeDomainLabel: `Free domain`,
22
- purchasedDomainLabel: `Purchased domain`,
23
- setUrlLabel: 'Set URL',
24
- publishLabel: 'Publish',
25
- viewMoreDomainLabel: 'VIEW MORE DOMAINS',
26
- viewMyWebsiteLabel: 'View Website',
27
- copyLabel: 'Copy',
28
- copySuccessLabel: 'Copied!',
29
- publishedSuccessDescriptionLabel: 'Buy matching domain name for your brand',
30
- hasAlreadyPurchasedDomainCloseButtonLabel: 'No thanks, maybe later',
31
- },
32
- 'en-test': {
33
- firstTimePublishHeaderLabel: `++Set the URL for your Website`,
34
- sitePublishedLabel: `++Site published!`,
35
- publishSuccessLabel: `++Your Website is live! Start using your link:`,
36
- freePublishCardTitleLabel: `++Free Address`,
37
- freePublishCardDescriptionLabel: `++Choose a free address to publish now. You can always edit the URL later`,
38
- slugInputPlaceholderYourNameLabel: '++your-name',
39
- slugInputPlaceholderYourBusinessNameLabel: '++your-business-name',
40
- freeDomainLabel: `++Free domain`,
41
- purchasedDomainLabel: `++Purchased domain`,
42
- setUrlLabel: '++Set URL',
43
- publishLabel: '++Publish',
44
- viewMoreDomainLabel: '++VIEW MORE DOMAINS',
45
- viewMyWebsiteLabel: '++View Website',
46
- copyLabel: '++Copy',
47
- copySuccessLabel: '++Copied!',
48
- publishedSuccessDescriptionLabel: '++Buy matching domain name for your brand',
49
- hasAlreadyPurchasedDomainCloseButtonLabel: '++No thanks, maybe later',
50
- },
51
- };
52
-
53
10
  export const NotPublishedWithPurchasedDomains = () => {
54
11
  return {
55
12
  components: {
@@ -58,7 +15,6 @@ export const NotPublishedWithPurchasedDomains = () => {
58
15
  data() {
59
16
  return {
60
17
  domains,
61
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
62
18
  };
63
19
  },
64
20
  methods: {},
@@ -73,7 +29,6 @@ export const NotPublishedWithPurchasedDomains = () => {
73
29
  brand-page-base-url="https://brand.site/"
74
30
  radio-value="slug"
75
31
  :show-radio-buttons="domains.length > 0"
76
- :publishBrandPageModalContent="publishBrandPageModalContent"
77
32
  />
78
33
  `,
79
34
  };
@@ -96,7 +51,6 @@ export const PublishWithSelectedDomain = () => {
96
51
  isRegistrationComplete: false,
97
52
  status: 'Active',
98
53
  },
99
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
100
54
  };
101
55
  },
102
56
  methods: {
@@ -115,7 +69,6 @@ export const PublishWithSelectedDomain = () => {
115
69
  brand-page-base-url="https://brand.site/"
116
70
  radio-value="purchased"
117
71
  :show-radio-buttons="domains.length > 0"
118
- :publishBrandPageModalContent="publishBrandPageModalContent"
119
72
  @radio-button-changed="onRadioButtonChanged"
120
73
  />
121
74
  `,
@@ -130,7 +83,6 @@ export const SetSlug = () => {
130
83
  data() {
131
84
  return {
132
85
  domains,
133
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
134
86
  };
135
87
  },
136
88
  methods: {},
@@ -145,7 +97,6 @@ export const SetSlug = () => {
145
97
  brand-page-base-url="https://brand.site/"
146
98
  brand-page-slug='test-slug'
147
99
  :show-radio-buttons="domains.length > 0"
148
- :publishBrandPageModalContent="publishBrandPageModalContent"
149
100
  />
150
101
  `,
151
102
  };
@@ -158,7 +109,6 @@ export const Published = () => {
158
109
  data() {
159
110
  return {
160
111
  domains,
161
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
162
112
  };
163
113
  },
164
114
  methods: {},
@@ -172,7 +122,6 @@ export const Published = () => {
172
122
  brand-page-base-url="https://brand.site/"
173
123
  radio-value="slug"
174
124
  brand-page-url="https://brand.site/brandname"
175
- :publishBrandPageModalContent="publishBrandPageModalContent"
176
125
  />
177
126
  `,
178
127
  };
@@ -185,7 +134,6 @@ export const PublishedNoDomains = () => {
185
134
  data() {
186
135
  return {
187
136
  domains: [],
188
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
189
137
  };
190
138
  },
191
139
  methods: {},
@@ -201,7 +149,6 @@ export const PublishedNoDomains = () => {
201
149
  brand-page-base-url="https://brand.site/"
202
150
  radio-value="slug"
203
151
  brand-page-url="https://brand.site/test-slug"
204
- :publishBrandPageModalContent="publishBrandPageModalContent"
205
152
  />
206
153
  `,
207
154
  };
@@ -217,7 +164,6 @@ export const Free = () => {
217
164
  domains: [],
218
165
  isSearchDomainListModalVisible: false,
219
166
  isDesignCom: false,
220
- publishBrandPageModalContent: localePublishBrandPageModalContent[locale],
221
167
  };
222
168
  },
223
169
  methods: {
@@ -239,7 +185,6 @@ export const Free = () => {
239
185
  brand-page-url="https://brand.site/brandname"
240
186
  :show-radio-buttons="domains.length > 0"
241
187
  :is-search-domain-list-modal-visible="isSearchDomainListModalVisible"
242
- :publishBrandPageModalContent="publishBrandPageModalContent"
243
188
  @on-hide-domain-modal="onHideDomainListModal"
244
189
  >
245
190
  <template #recommended>
@@ -11,15 +11,15 @@
11
11
  >
12
12
  <template #header>
13
13
  <div v-if="isNotPublished || isSlugEditMode" class="tw-text-center tw-font-bold tw-mb-8 tw-mt-8 tw-text-4xl">
14
- <span>{{ firstTimePublishHeaderLabel }}</span>
14
+ <span>Set the URL for your {{ brandPageDisplayName }}</span>
15
15
  </div>
16
16
  <div v-if="isPublished && !isSlugEditMode" class="tw-text-center tw-font-bold tw-mb-8 tw-mt-8">
17
- <p class="tw-font-bold tw-text-black tw-mb-2 tw-text-4xl">{{ sitePublishedLabel }}</p>
17
+ <p class="tw-font-bold tw-text-black tw-mb-2 tw-text-4xl">Site published!</p>
18
18
  <p v-if="hasPurchasedDomains || isCustomDomainActive" class="tw-text-grayscale-600 tw-mb-8">
19
- {{ publishSuccessLabel }}
19
+ Your {{ brandPageDisplayName }} is live! Start using your link:
20
20
  </p>
21
21
  <p v-else class="tw-text-grayscale-600 tw-mb-8 tw-font-normal">
22
- {{ publishedSuccessDescriptionLabel }}
22
+ {{ headerSubtitle }}
23
23
  </p>
24
24
  </div>
25
25
  </template>
@@ -44,15 +44,15 @@
44
44
  for="domain-type"
45
45
  class="tw-font-sans tw-w-full tw-text-grayscale-600 tw-text-sm tw-cursor-pointer tw-ml-2"
46
46
  >
47
- <span class="tw-inline-block tw-rounded-full">{{ freeDomainLabel }}</span>
47
+ <span class="tw-inline-block tw-rounded-full">Free domain</span>
48
48
  </label>
49
49
  </div>
50
50
  <div v-if="isNotPublished || isSlugEditMode" class="tw-mt-4">
51
51
  <PublishBrandPageCard
52
52
  v-if="!hasPurchasedDomains"
53
- :img-url="iconUrl"
54
- :title="freePublishCardTitleLabel"
55
- :description="freePublishCardDescriptionLabel"
53
+ :imgUrl="iconUrl"
54
+ title="Free Address"
55
+ description="Choose a free address to publish now. You can always edit the URL later"
56
56
  :is-design-com="isDesignCom"
57
57
  :has-search-button="false"
58
58
  >
@@ -78,17 +78,17 @@
78
78
  </div>
79
79
  </div>
80
80
  <Button
81
- :label="publishLabel"
81
+ label="Publish"
82
82
  :disabled="isPublishingDisabled"
83
83
  class="tw-flex tw-items-center tw-justify-center md:tw-ml-2 tw-mt-2 md:tw-mt-0 tw-font-sans tw-font-bold tw-transition-colors tw-duration-300 tw-text-sm tw-w-full tw-rounded tw-cursor-pointer tw-w-full md:tw-w-24"
84
84
  data-test-brand-page-publish-button
85
85
  variant="primary"
86
86
  size="small-medium"
87
+ @on-click="onPublish"
87
88
  :full-width="isMobile"
88
89
  :class="{
89
90
  'tw-uppercase': !isDesignCom,
90
91
  }"
91
- @on-click="onPublish"
92
92
  />
93
93
  </div>
94
94
  </template>
@@ -128,7 +128,7 @@
128
128
  for="domain-type"
129
129
  class="tw-font-sans tw-w-full tw-text-grayscale-600 tw-text-sm tw-cursor-pointer tw-ml-2"
130
130
  >
131
- <span class="tw-inline-block tw-rounded-full">{{ purchasedDomainLabel }}</span>
131
+ <span class="tw-inline-block tw-rounded-full">Purchased domain</span>
132
132
  </label>
133
133
  </div>
134
134
  <div class="tw-mt-4 domain-dropdown">
@@ -167,7 +167,7 @@
167
167
  :style="isMobile ? 'padding-left: 1.5rem; padding-right: 1.5rem;' : ''"
168
168
  >
169
169
  <Button
170
- :label="isSlugEditMode ? setUrlLabel : publishLabel"
170
+ :label="isSlugEditMode ? 'Set URL' : 'Publish'"
171
171
  :variant="isDesignCom ? 'primary' : 'primary-with-icon'"
172
172
  icon="chevron-right-wide"
173
173
  :disabled="isPublishingDisabled"
@@ -177,7 +177,7 @@
177
177
  @on-click="onPublish"
178
178
  />
179
179
  <Button
180
- :label="hasAlreadyPurchasedDomainCloseButtonLabel"
180
+ label="No thanks, maybe later"
181
181
  variant="no-border"
182
182
  size="large"
183
183
  class="tw-my-4"
@@ -199,7 +199,7 @@
199
199
  />
200
200
  </div>
201
201
  <Button
202
- :label="viewMoreDomainLabel"
202
+ label="VIEW MORE DOMAINS"
203
203
  variant="no-border"
204
204
  size="small-medium"
205
205
  class="tw-text-center"
@@ -210,13 +210,11 @@
210
210
  <TextCopyField
211
211
  button-variant="secondary"
212
212
  :text="brandPageUrl"
213
- :default-copy-button-text="copyLabel"
214
- :copied-button-text="copySuccessLabel"
215
213
  data-test-brand-page-copy-input
216
214
  @on-click="onCopyUrlClick"
217
215
  />
218
216
  <Button
219
- :label="viewMyWebsiteLabel"
217
+ :label="`View ${brandPageDisplayName}`"
220
218
  :variant="isDesignCom ? 'primary' : 'primary-with-icon'"
221
219
  icon="chevron-right-wide"
222
220
  size="medium"
@@ -247,13 +245,13 @@
247
245
  </div>
248
246
  </template>
249
247
  <script>
250
- import Modal from '../../../atoms/components/Modal/Modal.vue';
248
+ import Modal from '../../../../src/atoms/components/Modal/Modal.vue';
251
249
  import PublishBrandPageCard from './PublishBrandPageCard.vue';
252
- import TextInput from '../../../atoms/components/TextInput/TextInput.vue';
253
- import Dropdown from '../../../atoms/components/Dropdown/Dropdown.vue';
254
- import DropdownItem from '../../../atoms/components/Dropdown/DropdownItem.vue';
255
- import Button from '../../../atoms/components/Button/Button.vue';
256
- import TextCopyField from '../../../atoms/components/TextCopyField/TextCopyField.vue';
250
+ import TextInput from '../../../../src/atoms/components/TextInput/TextInput.vue';
251
+ import Dropdown from '../../../../src/atoms/components/Dropdown/Dropdown.vue';
252
+ import DropdownItem from '../../../../src/atoms/components/Dropdown/DropdownItem.vue';
253
+ import Button from '../../../../src/atoms/components/Button/Button.vue';
254
+ import TextCopyField from '../../../../src/atoms/components/TextCopyField/TextCopyField.vue';
257
255
 
258
256
  import SellDomainNameSearchWithResults from '../SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue';
259
257
  import SellDomainNameListModal from '../SellDomainNameListModal/SellDomainNameListModal.vue';
@@ -261,6 +259,8 @@ import brandCrowdApiClient from '../../clients/brand-crowd-api.client';
261
259
  import Events, { sitePublishedModal } from '../../constants/event-constants';
262
260
  import mediaQueryMixin from '../../mixins/mediaQueryMixin';
263
261
 
262
+ const headerSubtitle = 'Buy matching domain name for your brand';
263
+
264
264
  const DOMAIN_TYPES = {
265
265
  slug: 'slug',
266
266
  purchased: 'purchased',
@@ -399,11 +399,7 @@ export default {
399
399
  brandPageType: {
400
400
  type: String,
401
401
  required: true,
402
- default: '',
403
- },
404
- publishBrandPageModalContent: {
405
- type: Object,
406
- required: true,
402
+ default: false,
407
403
  },
408
404
  },
409
405
  emits: [
@@ -418,30 +414,11 @@ export default {
418
414
  ],
419
415
  data() {
420
416
  return {
421
- firstTimePublishHeaderLabel: this.publishBrandPageModalContent.firstTimePublishHeaderLabel,
422
- sitePublishedLabel: this.publishBrandPageModalContent.sitePublishedLabel,
423
- publishSuccessLabel: this.publishBrandPageModalContent.publishSuccessLabel,
424
- freePublishCardTitleLabel: this.publishBrandPageModalContent.freePublishCardTitleLabel,
425
- freePublishCardDescriptionLabel: this.publishBrandPageModalContent.freePublishCardDescriptionLabel,
426
- slugInputPlaceholderYourNameLabel: this.publishBrandPageModalContent.slugInputPlaceholderYourNameLabel,
427
- slugInputPlaceholderYourBusinessNameLabel:
428
- this.publishBrandPageModalContent.slugInputPlaceholderYourBusinessNameLabel,
429
- freeDomainLabel: this.publishBrandPageModalContent.freeDomainLabel,
430
- purchasedDomainLabel: this.publishBrandPageModalContent.purchasedDomainLabel,
431
- setUrlLabel: this.publishBrandPageModalContent.setUrlLabel,
432
- publishLabel: this.publishBrandPageModalContent.publishLabel,
433
- viewMoreDomainLabel: this.publishBrandPageModalContent.viewMoreDomainLabel,
434
- viewMyWebsiteLabel: this.publishBrandPageModalContent.viewMyWebsiteLabel,
435
- copyLabel: this.publishBrandPageModalContent.copyLabel,
436
- copySuccessLabel: this.publishBrandPageModalContent.copySuccessLabel,
437
- hasAlreadyPurchasedDomainCloseButtonLabel:
438
- this.publishBrandPageModalContent.hasAlreadyPurchasedDomainCloseButtonLabel,
439
- publishedSuccessDescriptionLabel: this.publishBrandPageModalContent.publishedSuccessDescriptionLabel,
440
-
441
417
  DOMAIN_TYPES,
442
418
  domainTypeValue: this.radioValue,
443
419
  internalSlug: this.brandPageSlug,
444
420
  selectedCustomDomain: this.customDomain,
421
+ headerSubtitle,
445
422
  userCurrency: undefined,
446
423
  isModalVisible: false,
447
424
  isLoading: false,
@@ -480,9 +457,7 @@ export default {
480
457
  return !this.allowPublish || this.isPublishing;
481
458
  },
482
459
  getPlaceHolder() {
483
- return this.brandPageType === 'brandContact'
484
- ? this.slugInputPlaceholderYourNameLabel
485
- : this.slugInputPlaceholderYourBusinessNameLabel;
460
+ return this.brandPageType === 'brandContact' ? 'your-name' : 'your-business-name';
486
461
  },
487
462
  },
488
463
  watch: {
@@ -36,8 +36,8 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
- import Loader from '../../../atoms/components/Loader/Loader.vue';
40
- import Picture from '../../../atoms/components/Picture/Picture.vue';
39
+ import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
40
+ import Picture from '../../../../src/atoms/components/Picture/Picture.vue';
41
41
 
42
42
  import SellDomainNameList from '../SellDomainNameList/SellDomainNameList.vue';
43
43
  import Events from '../../constants/event-constants';