@designcrowd/fe-shared-lib 1.2.9 → 1.2.10-ml-407-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.9",
3
+ "version": "1.2.10-ml-407-1",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -21,7 +21,6 @@
21
21
  aria-describedby="desc"
22
22
  :data-id="`${name}-${id}-title`"
23
23
  >
24
- <title v-if="title" :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
25
24
  <desc v-if="description" :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
26
25
  <component :is="`icon-${iconName}`"></component>
27
26
  </svg>
@@ -57,7 +57,7 @@
57
57
  </p>
58
58
  <div class="tw-flex tw-flex-col">
59
59
  <div>
60
- <form id="signin" action="/identity/account/signin" method="post" @submit="validate">
60
+ <form id="signin" :action="getSignInAction" method="post" @submit="validate">
61
61
  <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
62
62
  <label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
63
63
  <input
@@ -170,6 +170,7 @@ import themeMixin from '../../mixins/themeMixin';
170
170
  import { SIGN_IN } from '../../constants/partner-dictionary-constants';
171
171
  import isValidEmail from '../../helpers/email-validator';
172
172
  import SocialSignIn from './SocialSignIn.vue';
173
+ import { getCurrentLocale } from '../../../useSharedLibTranslate';
173
174
 
174
175
  export default {
175
176
  components: {
@@ -309,7 +310,7 @@ export default {
309
310
  signInContent: {
310
311
  type: Object,
311
312
  required: false,
312
- default: () => {},
313
+ default: () => { },
313
314
  },
314
315
  },
315
316
  data() {
@@ -334,6 +335,9 @@ export default {
334
335
  isLoading() {
335
336
  return this.emailLoading || this.facebookLoading || this.googleLoading;
336
337
  },
338
+ currentLocale() {
339
+ return getCurrentLocale();
340
+ },
337
341
  submissionButtonLabelLowercase() {
338
342
  return this.submissionButtonLabel.toLowerCase();
339
343
  },
@@ -369,6 +373,11 @@ export default {
369
373
  }
370
374
  return this.signUpText;
371
375
  },
376
+ getSignInAction() {
377
+ const params = new URLSearchParams();
378
+ params.set('locale', this.currentLocale);
379
+ return `/identity/account/signin?${params.toString()}`;
380
+ },
372
381
  },
373
382
  watch: {
374
383
  capturePassword() {
@@ -431,6 +440,7 @@ export default {
431
440
  background-image: url(https://dcstatic.com/images/icons/forms/forms-email-58207f9a5c.svg);
432
441
  background-position: top 50% left 0.5rem;
433
442
  }
443
+
434
444
  .password-input {
435
445
  background-image: url(https://dcstatic.com/images/icons/forms/forms-password-ff538cd5e4.svg);
436
446
  background-position: top 50% left 0.5rem;