@designcrowd/fe-shared-lib 1.0.8-ml-82-8 → 1.0.8-ml-82-9

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-8",
3
+ "version": "1.0.8-ml-82-9",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -139,6 +139,8 @@
139
139
  :disabled="isLoading"
140
140
  :facebook-loading="facebookLoading"
141
141
  :google-loading="googleLoading"
142
+ :login-with-google-label="loginWithGoogleLabel"
143
+ :login-with-facebook-label="loginWithFacebookLabel"
142
144
  />
143
145
  </div>
144
146
  </div>
@@ -328,6 +330,16 @@ export default {
328
330
  required: false,
329
331
  default: undefined,
330
332
  },
333
+ loginWithGoogleLabel: {
334
+ type: String,
335
+ required: false,
336
+ default: undefined,
337
+ },
338
+ loginWithFacebookLabel: {
339
+ type: String,
340
+ required: false,
341
+ default: undefined,
342
+ },
331
343
  },
332
344
  data() {
333
345
  return {
@@ -369,6 +381,10 @@ export default {
369
381
  return url;
370
382
  },
371
383
  getRedirectToRecommendedActionUrl() {
384
+ if (typeof window === 'undefined') {
385
+ return null;
386
+ }
387
+
372
388
  const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
373
389
  if (this.aUserName) {
374
390
  url.searchParams.append('email', this.aUserName);
@@ -248,6 +248,10 @@ export default {
248
248
  return url;
249
249
  },
250
250
  getRedirectToRecommendedActionUrl() {
251
+ if (typeof window === 'undefined') {
252
+ return null;
253
+ }
254
+
251
255
  const url = new URL(`https://${window.location.host}${this.recommendedActionLink}`);
252
256
  if (this.aUserName) {
253
257
  url.searchParams.append('email', this.aUserName);