@designcrowd/fe-shared-lib 1.2.5-ml-jj-2 → 1.2.5-ml-jj-3

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/index.js CHANGED
@@ -19,7 +19,7 @@ export { default as SellDomainNameWidget } from './src/experiences/components/Se
19
19
  export { default as PublishBrandPageModal } from './src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue';
20
20
  export { default as PublishBrandPageCard } from './src/experiences/components/PublishBrandPageModal/PublishBrandPageCard.vue';
21
21
 
22
- export { setLocaleAsync, tr } from './src/useSharedLibTranslate';
22
+ export { setSharedLibLocaleAsync, tr } from './src/useSharedLibTranslate';
23
23
 
24
24
  export { default as Button } from './src/atoms/components/Button/Button.vue';
25
25
  export { default as ButtonGroup } from './src/atoms/components/ButtonGroup/ButtonGroup.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.5-ml-jj-2",
3
+ "version": "1.2.5-ml-jj-3",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -2227,6 +2227,9 @@ video {
2227
2227
  .theme-brandCrowd .md\:tw-ml-4 {
2228
2228
  margin-left: 1rem;
2229
2229
  }
2230
+ .theme-brandCrowd .md\:tw-mr-2 {
2231
+ margin-right: 0.5rem;
2232
+ }
2230
2233
  .theme-brandCrowd .md\:tw-mt-0 {
2231
2234
  margin-top: 0px;
2232
2235
  }
@@ -2263,6 +2266,9 @@ video {
2263
2266
  .theme-brandCrowd .md\:tw-w-full {
2264
2267
  width: 100%;
2265
2268
  }
2269
+ .theme-brandCrowd .md\:tw-min-w-24 {
2270
+ min-width: 6rem;
2271
+ }
2266
2272
  .theme-brandCrowd .md\:tw-max-w-full {
2267
2273
  max-width: 100%;
2268
2274
  }
@@ -1911,6 +1911,9 @@ video {
1911
1911
  .theme-brandPage .md\:tw-ml-4 {
1912
1912
  margin-left: 1rem;
1913
1913
  }
1914
+ .theme-brandPage .md\:tw-mr-2 {
1915
+ margin-right: 0.5rem;
1916
+ }
1914
1917
  .theme-brandPage .md\:tw-mt-0 {
1915
1918
  margin-top: 0px;
1916
1919
  }
@@ -1947,6 +1950,9 @@ video {
1947
1950
  .theme-brandPage .md\:tw-w-full {
1948
1951
  width: 100%;
1949
1952
  }
1953
+ .theme-brandPage .md\:tw-min-w-24 {
1954
+ min-width: 6rem;
1955
+ }
1950
1956
  .theme-brandPage .md\:tw-max-w-full {
1951
1957
  max-width: 100%;
1952
1958
  }
@@ -2227,6 +2227,9 @@ video {
2227
2227
  .theme-crazyDomains .md\:tw-ml-4 {
2228
2228
  margin-left: 1rem;
2229
2229
  }
2230
+ .theme-crazyDomains .md\:tw-mr-2 {
2231
+ margin-right: 0.5rem;
2232
+ }
2230
2233
  .theme-crazyDomains .md\:tw-mt-0 {
2231
2234
  margin-top: 0px;
2232
2235
  }
@@ -2263,6 +2266,9 @@ video {
2263
2266
  .theme-crazyDomains .md\:tw-w-full {
2264
2267
  width: 100%;
2265
2268
  }
2269
+ .theme-crazyDomains .md\:tw-min-w-24 {
2270
+ min-width: 6rem;
2271
+ }
2266
2272
  .theme-crazyDomains .md\:tw-max-w-full {
2267
2273
  max-width: 100%;
2268
2274
  }
@@ -2227,6 +2227,9 @@ video {
2227
2227
  .theme-designCom .md\:tw-ml-4 {
2228
2228
  margin-left: 1rem;
2229
2229
  }
2230
+ .theme-designCom .md\:tw-mr-2 {
2231
+ margin-right: 0.5rem;
2232
+ }
2230
2233
  .theme-designCom .md\:tw-mt-0 {
2231
2234
  margin-top: 0px;
2232
2235
  }
@@ -2263,6 +2266,9 @@ video {
2263
2266
  .theme-designCom .md\:tw-w-full {
2264
2267
  width: 100%;
2265
2268
  }
2269
+ .theme-designCom .md\:tw-min-w-24 {
2270
+ min-width: 6rem;
2271
+ }
2266
2272
  .theme-designCom .md\:tw-max-w-full {
2267
2273
  max-width: 100%;
2268
2274
  }
@@ -2227,6 +2227,9 @@ video {
2227
2227
  .theme-designCrowd .md\:tw-ml-4 {
2228
2228
  margin-left: 1rem;
2229
2229
  }
2230
+ .theme-designCrowd .md\:tw-mr-2 {
2231
+ margin-right: 0.5rem;
2232
+ }
2230
2233
  .theme-designCrowd .md\:tw-mt-0 {
2231
2234
  margin-top: 0px;
2232
2235
  }
@@ -2263,6 +2266,9 @@ video {
2263
2266
  .theme-designCrowd .md\:tw-w-full {
2264
2267
  width: 100%;
2265
2268
  }
2269
+ .theme-designCrowd .md\:tw-min-w-24 {
2270
+ min-width: 6rem;
2271
+ }
2266
2272
  .theme-designCrowd .md\:tw-max-w-full {
2267
2273
  max-width: 100%;
2268
2274
  }
@@ -19,9 +19,10 @@
19
19
  role="graphics-symbol"
20
20
  aria-labelledby="title"
21
21
  aria-describedby="desc"
22
+ :data-id="`${name}-${id}-title`"
22
23
  >
23
- <title :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
24
- <desc :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
24
+ <title v-if="title" :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
25
+ <desc v-if="description" :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
25
26
  <component :is="`icon-${iconName}`"></component>
26
27
  </svg>
27
28
  </div>
@@ -799,7 +800,7 @@ export default {
799
800
  return css || null;
800
801
  },
801
802
  title() {
802
- return this.altText || `${this.titleCase(this.name)}`;
803
+ return this.altText;
803
804
  },
804
805
  description() {
805
806
  return `${this.title} Icon`;
@@ -34,7 +34,7 @@ export const NotPublishedWithPurchasedDomains = () => {
34
34
  should-publish
35
35
  :domains="domains"
36
36
  brand-page-display-name='Website'
37
- brand-page-base-url="https://brand.site/"
37
+ brand-page-base-url="https://brand.site"
38
38
  radio-value="slug"
39
39
  :show-radio-buttons="domains.length > 0"
40
40
  />
@@ -76,7 +76,7 @@ export const PublishWithSelectedDomain = () => {
76
76
  :domains="domains"
77
77
  :custom-domain="customDomain"
78
78
  brand-page-display-name='Website'
79
- brand-page-base-url="https://brand.site/"
79
+ brand-page-base-url="https://brand.site"
80
80
  radio-value="purchased"
81
81
  :show-radio-buttons="domains.length > 0"
82
82
  @radio-button-changed="onRadioButtonChanged"
@@ -106,7 +106,7 @@ export const SetSlug = () => {
106
106
  should-publish
107
107
  :domains="domains"
108
108
  brand-page-display-name='Website'
109
- brand-page-base-url="https://brand.site/"
109
+ brand-page-base-url="https://brand.site"
110
110
  brand-page-slug='test-slug'
111
111
  :show-radio-buttons="domains.length > 0"
112
112
  />
@@ -134,7 +134,7 @@ export const Published = () => {
134
134
  should-publish
135
135
  :domains="domains"
136
136
  brand-page-display-name='Website'
137
- brand-page-base-url="https://brand.site/"
137
+ brand-page-base-url="https://brand.site"
138
138
  radio-value="slug"
139
139
  brand-page-url="https://brand.site/brandname"
140
140
  />
@@ -164,7 +164,7 @@ export const PublishedNoDomains = () => {
164
164
  :domains="domains"
165
165
  brand-page-display-name='Website'
166
166
  brand-page-slug='test-slug'
167
- brand-page-base-url="https://brand.site/"
167
+ brand-page-base-url="https://brand.site"
168
168
  radio-value="slug"
169
169
  brand-page-url="https://brand.site/test-slug"
170
170
  />
@@ -201,7 +201,7 @@ export const Free = () => {
201
201
  should-publish
202
202
  :domains="domains"
203
203
  brand-page-display-name='Website'
204
- brand-page-base-url="https://brand.site/"
204
+ brand-page-base-url="https://brand.site"
205
205
  radio-value="slug"
206
206
  brand-page-url="https://brand.site/brandname"
207
207
  :show-radio-buttons="domains.length > 0"
@@ -58,11 +58,11 @@
58
58
  >
59
59
  <template #slug>
60
60
  <div class="tw-flex tw-flex-col md:tw-flex-row tw-justify-between">
61
- <div>
61
+ <div class="tw-grow md:tw-mr-2">
62
62
  <TextInput
63
63
  v-model="internalSlug"
64
- element-classes="tw-mb-0 !tw-rounded-l-none tw-text-md tw-w-1/3"
65
- :prefix-text="`${brandPageBaseUrl}/`"
64
+ element-classes="tw-mb-0 !tw-rounded-l-none tw-text-md"
65
+ :prefix-text="`${brandPageBaseUrlWithoutHttps}/`"
66
66
  :error="!!slugValidationError"
67
67
  :disabled="isInputEnabled"
68
68
  :placeholder="getPlaceHolder"
@@ -80,7 +80,7 @@
80
80
  <Button
81
81
  :label="publishLabel"
82
82
  :disabled="isPublishingDisabled"
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"
83
+ class="tw-flex tw-items-center tw-justify-center tw-mt-2 md:tw-mt-0 tw-font-bold tw-transition-colors tw-duration-300"
84
84
  data-test-brand-page-publish-button
85
85
  variant="primary"
86
86
  size="small-medium"
@@ -97,7 +97,7 @@
97
97
  <TextInput
98
98
  v-model="internalSlug"
99
99
  element-classes="tw-mb-0 !tw-rounded-l-none tw-text-lg"
100
- :prefix-text="`${brandPageBaseUrl}/`"
100
+ :prefix-text="`${brandPageBaseUrlWithoutHttps}/`"
101
101
  :error="!!slugValidationError"
102
102
  :disabled="isInputEnabled"
103
103
  :placeholder="getPlaceHolder"
@@ -450,6 +450,9 @@ export default {
450
450
  };
451
451
  },
452
452
  computed: {
453
+ brandPageBaseUrlWithoutHttps() {
454
+ return this.brandPageBaseUrl.replace('https://', '');
455
+ },
453
456
  firstTimePublishHeaderLabel() {
454
457
  return this.tr('publishBrandPageModal.firstTimePublishHeaderLabel', {
455
458
  brandPageDisplayName: this.brandPageDisplayName,
@@ -11,8 +11,8 @@ const relativePathsToTranslationFiles = {
11
11
  'pt-PT': () => import('./bundles/bundled-translations.pt-PT.json'),
12
12
  };
13
13
 
14
- const setLocaleAsync = async (locale = 'en-US') => {
15
- const localeToUse = locale;
14
+ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
15
+ const localeToUse = locale || 'en-US';
16
16
 
17
17
  if (!i18next.isInitialized) {
18
18
  await i18next.init({
@@ -35,4 +35,4 @@ const tr = (key, valuesToInterpolate = {}) => {
35
35
  return translated;
36
36
  };
37
37
 
38
- export { setLocaleAsync, tr };
38
+ export { setSharedLibLocaleAsync, tr };