@designcrowd/fe-shared-lib 1.0.8-ml-82-5 → 1.0.8-ml-82-7

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-5",
3
+ "version": "1.0.8-ml-82-7",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -11,16 +11,16 @@
11
11
  </a>
12
12
  </span>
13
13
  <span v-if="isPartnerTheme"> and BrandCrowd's </span>
14
- <span v-else>{{ termsAndConditions.byProceeding ?? 'By proceeding you accept our' }} </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
- >{{ termsAndConditions.termsOfUse ?? 'Terms of Use' }} </a
16
+ > {{ termsAndConditionsContent?.termsOfUse }} </a
17
17
  >
18
- {{ termsAndConditions.and ?? 'and' }}
18
+ {{ termsAndConditionsContent?.and }}
19
19
  <a :href="privacyPolicyUrl" target="_blank" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }"
20
- >{{ termsAndConditions.privacyPolicy ?? 'Privacy Policy' }} </a
20
+ >{{ termsAndConditionsContent?.privacyPolicy }} </a
21
21
  >
22
22
  <span>
23
- {{ termsAndConditions.agreeToFutureUpdates ?? 'and agree to receive future updates from' }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span
23
+ {{ termsAndConditionsContent?.agreeToFutureUpdates }} {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span
24
24
  >
25
25
  </p>
26
26
  </template>
@@ -68,6 +68,15 @@ export default {
68
68
  }
69
69
  return this.privacyPolicyUrl;
70
70
  },
71
+ termsAndConditionsContent() {
72
+ return {
73
+ byProceeding: this.termsAndConditions?.byProceeding ?? 'By proceeding you accept our',
74
+ termsOfUse: this.termsAndConditions?.termsOfUse ?? 'Terms of Use',
75
+ and: this.termsAndConditions?.and ?? 'and',
76
+ privacyPolicy: this.termsAndConditions?.privacyPolicy ?? 'Privacy Policy',
77
+ agreeToFutureUpdates: this.termsAndConditions?.agreeToFutureUpdates ?? 'and agree to receive future updates from'
78
+ };
79
+ },
71
80
  },
72
81
  };
73
82
  </script>
@@ -57,7 +57,7 @@
57
57
  </p>
58
58
  <div class="tw-flex tw-flex-col">
59
59
  <div>
60
- <form id="signin" method="post" @submit="validate">
60
+ <form id="signin" action="/identity/account/signin" 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
@@ -149,7 +149,9 @@
149
149
  >
150
150
  <p>
151
151
  {{ getSignUpText }}
152
- <a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{ signInLabel }}</a>
152
+ <a :href="getSignUpUrl" class="tw-text-info-500" :class="{ 'hover:tw-underline': isDesignCom }">{{
153
+ signInLabel
154
+ }}</a>
153
155
  </p>
154
156
  </div>
155
157
  </div>
@@ -32,7 +32,7 @@
32
32
  <h2 v-if="title" class="tw-text-center tw-text-4xl tw-font-bold tw-mb-6">
33
33
  {{ title }}
34
34
  </h2>
35
- <form id="signup" method="post" @submit="validate">
35
+ <form id="signup" action="/identity/account/signup" method="post" @submit="validate">
36
36
  <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
37
37
  <label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
38
38
  <input
@@ -67,7 +67,7 @@
67
67
  <SubmissionButton
68
68
  variant="primary"
69
69
  size="medium"
70
- label="SIGN UP"
70
+ :label="submissionButtonLabel"
71
71
  label-size="smaller"
72
72
  :is-loading="isLoading"
73
73
  :disabled="isLoading"
@@ -208,6 +208,11 @@ export default {
208
208
  required: false,
209
209
  default: undefined,
210
210
  },
211
+ submissionButtonLabel: {
212
+ type: String,
213
+ required: false,
214
+ default: 'Sign Up',
215
+ },
211
216
  },
212
217
  data() {
213
218
  return {
@@ -223,7 +228,7 @@ export default {
223
228
  if (typeof window === 'undefined') {
224
229
  return null;
225
230
  }
226
-
231
+
227
232
  const url = new URL(`https://${window.location.host}${this.signInUrl}`);
228
233
  if (this.aUserName) {
229
234
  url.searchParams.append('initialUserName', this.aUserName);