@designcrowd/fe-shared-lib 1.0.8-ml-i18n → 1.0.8-ml-i18n-2

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-i18n",
3
+ "version": "1.0.8-ml-i18n-2",
4
4
  "scripts": {
5
5
  "start": "npm run storybook",
6
6
  "build": "npm run build:css --production",
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <p v-if="isPartnerTheme" class="tw-text-center tw-text-sm tw-mt-4 tw-mb-2 tw-text-grayscale-600">
2
+ <div v-if="hasTermsAndConditionsSlot && !isPartnerTheme">
3
+ <slot name="termsAndConditions" />
4
+ </div>
5
+ <p v-else class="tw-text-center tw-text-sm tw-mt-4 tw-mb-2 tw-text-grayscale-600">
3
6
  <span v-if="isPartnerTheme">
4
7
  {{ legal.BY_PROCEEDING_TEXT[theme] }}
5
8
  <a :href="termsAndConditionsLink" target="_blank" :class="legal.LINK_CLASSES[theme]">
@@ -23,20 +26,6 @@
23
26
  and agree to receive future updates from {{ isDesignCom ? 'Design.com' : 'BrandCrowd' }}.</span
24
27
  >
25
28
  </p>
26
- <div v-else>
27
- <i18n-t keypath="termsAndConditionsLabel">
28
- <template #termsOfUseLabel>
29
- <a :href="termsAndConditionsLink">
30
- {{ termsOfUseLabel }}
31
- </a>
32
- </template>
33
- <template #privacyPolicyLabel>
34
- <a :href="privacyPolicyLink">
35
- {{ privacyPolicyLabel }}
36
- </a>
37
- </template>
38
- </i18n-t>
39
- </div>
40
29
  </template>
41
30
 
42
31
  <script>
@@ -87,6 +76,9 @@ export default {
87
76
  }
88
77
  return this.privacyPolicyUrl;
89
78
  },
79
+ hasTermsAndConditionsSlot() {
80
+ return !!this.$slots.termsAndConditions;
81
+ }
90
82
  },
91
83
  };
92
84
  </script>
@@ -81,7 +81,11 @@
81
81
  :available-themes="availableThemes"
82
82
  :is-design-com="isDesignCom"
83
83
  :terms-and-conditions="termsAndConditions"
84
- />
84
+ >
85
+ <template name="authLegal">
86
+ <slot name="termsAndConditions" />
87
+ </template>
88
+ </AuthLegal>
85
89
  <div v-if="!!loginWithFacebookUrl || !!loginWithGoogleUrl" class="tw-text-center tw-text-grayscale-600">
86
90
  <div class="tw-w-full tw-inline-flex tw-items-center tw-mb-4">
87
91
  <div class="tw-grow tw-h-0 tw-border-0 tw-border-t tw-border-solid tw-border-grayscale-400 tw-px-4"></div>