@designcrowd/fe-shared-lib 1.0.8-ml-82-20 → 1.0.8-ml-82-21

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.0.8-ml-82-20",
3
+ "version": "1.0.8-ml-82-21",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -11,15 +11,15 @@
11
11
  </a>
12
12
  </span>
13
13
  <span v-if="isPartnerTheme"> and BrandCrowd's </span>
14
- <span v-else>{{ termsAndConditionsContent?.byProceeding }}</span>
14
+ <span v-else>{{ termsAndConditionsContent?.byProceeding }} </span>
15
15
  <a :href="termsOfUseUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
16
16
  >{{ termsAndConditionsContent?.termsOfUse }}</a
17
- >
18
- {{ termsAndConditionsContent?.and }}
17
+ >
18
+ <span> {{ termsAndConditionsContent?.and }} </span>
19
19
  <a :href="privacyPolicyUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
20
20
  >{{ termsAndConditionsContent?.privacyPolicy }}</a
21
21
  >
22
- <span>{{ termsAndConditionsContent?.agreeToFutureUpdates }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span>
22
+ <span> {{ termsAndConditionsContent?.agreeToFutureUpdates }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span>
23
23
  </p>
24
24
  </template>
25
25
 
@@ -151,7 +151,7 @@
151
151
  >
152
152
  <p>
153
153
  {{ getSignUpText }}
154
- <a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
154
+ <a :href="getSignUpUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
155
155
  signUpLabel
156
156
  }}</a>
157
157
  </p>
@@ -340,6 +340,16 @@ export default {
340
340
  required: false,
341
341
  default: undefined,
342
342
  },
343
+ invalidUsernameErrorLabel: {
344
+ type: String,
345
+ required: false,
346
+ default: 'Please enter a valid email address',
347
+ },
348
+ missingPasswordErrorLabel: {
349
+ type: String,
350
+ required: false,
351
+ default: 'Please enter a password',
352
+ },
343
353
  },
344
354
  data() {
345
355
  return {
@@ -413,13 +423,13 @@ export default {
413
423
  validate(e) {
414
424
  this.clearErrorMessages();
415
425
  if (!this.aUserName || !isValidEmail(this.aUserName)) {
416
- this.userNameError = 'Please enter a valid email address';
426
+ this.userNameError = this.invalidUsernameErrorLabel;
417
427
  e.preventDefault();
418
428
  return false;
419
429
  }
420
430
 
421
431
  if (this.capturePassword && !this.password) {
422
- this.passwordError = 'Please enter a password';
432
+ this.passwordError = this.missingPasswordErrorLabel;
423
433
  e.preventDefault();
424
434
  return false;
425
435
  }
@@ -101,7 +101,7 @@
101
101
  class="tw-w-full tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-text-center tw-pt-6 tw-pb-8 tw-text-grayscale-600"
102
102
  >
103
103
  {{ alreadyHaveAnAccountLabel }}
104
- <a :href="getRedirectToSignInUrl" class="tw-text-info-500">{{ loginLabel }}</a>
104
+ <a :href="getRedirectToSignInUrl" target="_blank" class="tw-text-info-500">{{ loginLabel }}</a>
105
105
  </p>
106
106
  </div>
107
107
  </div>
@@ -225,6 +225,16 @@ export default {
225
225
  required: false,
226
226
  default: undefined,
227
227
  },
228
+ invalidUsernameErrorLabel: {
229
+ type: String,
230
+ required: false,
231
+ default: 'Please enter a valid email address',
232
+ },
233
+ missingPasswordErrorLabel: {
234
+ type: String,
235
+ required: false,
236
+ default: 'Please enter a password',
237
+ },
228
238
  },
229
239
  data() {
230
240
  return {
@@ -272,10 +282,10 @@ export default {
272
282
  this.passwordError = undefined;
273
283
 
274
284
  if (!this.aUserName) {
275
- this.userNameError = 'Please enter a valid email address';
285
+ this.userNameError = this.invalidUsernameErrorLabel;
276
286
  }
277
287
  if (!this.password) {
278
- this.passwordError = 'Please enter a password';
288
+ this.passwordError = this.missingPasswordErrorLabel;
279
289
  }
280
290
 
281
291
  e.preventDefault();