@designcrowd/fe-shared-lib 1.2.12 → 1.2.13-ml-407-3

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.
Files changed (23) hide show
  1. package/{public → dist}/css/tailwind-brandCrowd.css +628 -509
  2. package/{public → dist}/css/tailwind-brandPage.css +526 -432
  3. package/{public → dist}/css/tailwind-crazyDomains.css +628 -509
  4. package/{public → dist}/css/tailwind-designCom.css +628 -509
  5. package/{public → dist}/css/tailwind-designCrowd.css +628 -509
  6. package/package.json +2 -2
  7. package/src/atoms/components/Price/i18n/price.json +5 -5
  8. package/src/bundles/bundled-translations.de-DE.json +8 -0
  9. package/src/bundles/bundled-translations.es-ES.json +8 -0
  10. package/src/bundles/bundled-translations.fr-FR.json +8 -0
  11. package/src/bundles/bundled-translations.json +8 -0
  12. package/src/bundles/bundled-translations.pt-PT.json +8 -0
  13. package/src/experiences/components/AuthFlow/SignIn.vue +10 -1
  14. package/src/experiences/components/AuthFlow/SignUp.vue +5 -0
  15. package/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js +5 -4
  16. package/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue +5 -2
  17. package/src/experiences/components/PaymentConfigList/PaymentConfigList.vue +4 -1
  18. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.de-DE.json +10 -0
  19. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.es-ES.json +10 -0
  20. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.fr-FR.json +10 -0
  21. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.json +10 -0
  22. package/src/experiences/components/PaymentConfigList/i18n/shared-payment-config.pt-PT.json +10 -0
  23. package/src/useSharedLibTranslate.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designcrowd/fe-shared-lib",
3
- "version": "1.2.12",
3
+ "version": "1.2.13-ml-407-3",
4
4
  "scripts": {
5
5
  "start": "run-p storybook watch:translation",
6
6
  "build": "npm run build:css --production",
@@ -113,4 +113,4 @@
113
113
  "overrides": {
114
114
  "storybook": "$storybook"
115
115
  }
116
- }
116
+ }
@@ -1,6 +1,6 @@
1
- {
2
- "price": {
3
- "domainCreditUsed": "Domain credit used",
4
- "free": "Free"
5
- }
1
+ {
2
+ "price": {
3
+ "domainCreditUsed": "Domain credit used",
4
+ "free": "Free"
5
+ }
6
6
  }
@@ -3,6 +3,14 @@
3
3
  "domainCreditUsed": "Verwendetes Domain-Guthaben",
4
4
  "free": "Kostenlos"
5
5
  },
6
+ "sharedPaymentConfig": {
7
+ "onboardingIncomplete": "Das Onboarding wurde noch nicht abgeschlossen.",
8
+ "pendingVerification": "Ausstehende Verifizierung",
9
+ "connected": "Verbunden",
10
+ "inactive": "Inaktiv",
11
+ "addPaymentProvider": "Zahlungsanbieter hinzufügen",
12
+ "deletePaymentMethod": "Zahlungsmethode löschen"
13
+ },
6
14
  "publishBrandPageModal": {
7
15
  "firstTimePublishHeaderLabel": "Legen Sie die URL für {{brandPageDisplayName}} fest",
8
16
  "sitePublishedLabel": "Seite veröffentlicht!",
@@ -3,6 +3,14 @@
3
3
  "domainCreditUsed": "Crédito del dominio usado",
4
4
  "free": "Gratis"
5
5
  },
6
+ "sharedPaymentConfig": {
7
+ "onboardingIncomplete": "Incorporación incompleta",
8
+ "pendingVerification": "Pendiente de verificación",
9
+ "connected": "Conectado",
10
+ "inactive": "Inactivo",
11
+ "addPaymentProvider": "Añadir proveedor de pago",
12
+ "deletePaymentMethod": "Eliminar método de pago"
13
+ },
6
14
  "publishBrandPageModal": {
7
15
  "firstTimePublishHeaderLabel": "Establece la URL para {{brandPageDisplayName}}",
8
16
  "sitePublishedLabel": "¡Sitio publicado!",
@@ -3,6 +3,14 @@
3
3
  "domainCreditUsed": "Crédit de domaine utilisé",
4
4
  "free": "Gratuit"
5
5
  },
6
+ "sharedPaymentConfig": {
7
+ "onboardingIncomplete": "Inscription incomplète",
8
+ "pendingVerification": "Vérification en attente",
9
+ "connected": "Connecté",
10
+ "inactive": "Inactif",
11
+ "addPaymentProvider": "Ajouter un fournisseur de paiement",
12
+ "deletePaymentMethod": "Supprimer le mode de paiement"
13
+ },
6
14
  "publishBrandPageModal": {
7
15
  "firstTimePublishHeaderLabel": "Définissez l'URL pour {{brandPageDisplayName}}",
8
16
  "sitePublishedLabel": "Site publié !",
@@ -3,6 +3,14 @@
3
3
  "domainCreditUsed": "Domain credit used",
4
4
  "free": "Free"
5
5
  },
6
+ "sharedPaymentConfig": {
7
+ "onboardingIncomplete": "Onboarding Incomplete",
8
+ "pendingVerification": "Pending Verification",
9
+ "connected": "Connected",
10
+ "inactive": "Inactive",
11
+ "addPaymentProvider": "Add Payment Provider",
12
+ "deletePaymentMethod": "Delete payment method"
13
+ },
6
14
  "publishBrandPageModal": {
7
15
  "firstTimePublishHeaderLabel": "Set the URL for {{brandPageDisplayName}}",
8
16
  "sitePublishedLabel": "Site published!",
@@ -3,6 +3,14 @@
3
3
  "domainCreditUsed": "Crédito de domínio utilizado",
4
4
  "free": "Grátis"
5
5
  },
6
+ "sharedPaymentConfig": {
7
+ "onboardingIncomplete": "Integração incompleta",
8
+ "pendingVerification": "Verificação Pendente",
9
+ "connected": "Ligado",
10
+ "inactive": "Inativo",
11
+ "addPaymentProvider": "Adicionar fornecedor de pagamentos",
12
+ "deletePaymentMethod": "Eliminar método de pagamento"
13
+ },
6
14
  "publishBrandPageModal": {
7
15
  "firstTimePublishHeaderLabel": "Defina o URL para {{brandPageDisplayName}}",
8
16
  "sitePublishedLabel": "Site publicado!",
@@ -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: {
@@ -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() {
@@ -34,6 +34,7 @@
34
34
  </h2>
35
35
  <form id="signup" action="/identity/account/signup" method="post" @submit="validate">
36
36
  <input name="__RequestVerificationToken" type="hidden" :value="antiForgeryToken" />
37
+ <input name="requestLocale" type="hidden" :value="currentLocale" />
37
38
  <label for="userName" class="tw-sr-only"> {{ emailLabel }} </label>
38
39
  <input
39
40
  v-model="aUserName"
@@ -116,6 +117,7 @@ import SocialSignIn from './SocialSignIn.vue';
116
117
  import SubmissionButton from './SubmissionButton.vue';
117
118
  import AuthLegal from './AuthLegal.vue';
118
119
  import themeMixin from '../../mixins/themeMixin';
120
+ import { getCurrentLocale } from '../../../useSharedLibTranslate';
119
121
 
120
122
  export default {
121
123
  components: {
@@ -229,6 +231,9 @@ export default {
229
231
  }
230
232
  return url?.toString();
231
233
  },
234
+ currentLocale() {
235
+ return getCurrentLocale();
236
+ },
232
237
  },
233
238
  methods: {
234
239
  validate(e) {
@@ -1,5 +1,6 @@
1
1
  import vClickOutside from 'click-outside-vue3';
2
2
  import brandPageApiClient from '../../clients/brand-page-api.client';
3
+ import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
3
4
 
4
5
  export const paymentConfigStatuses = Object.freeze({
5
6
  active: 'Active',
@@ -38,13 +39,13 @@ export default {
38
39
  getPaymentConfigStatusDisplayText(paymentConfigStatus) {
39
40
  switch (paymentConfigStatus) {
40
41
  case paymentConfigStatuses.pendingPreOnboarding:
41
- return 'Onboarding Incomplete';
42
+ return sharedPaymentConfigTr('onboardingIncomplete');
42
43
  case paymentConfigStatuses.pendingPostOnboarding:
43
- return 'Pending Verification';
44
+ return sharedPaymentConfigTr('pendingVerification');
44
45
  case paymentConfigStatuses.active:
45
- return 'Connected';
46
+ return sharedPaymentConfigTr('connected');
46
47
  case paymentConfigStatuses.unactivatedByCustomer:
47
- return 'Inactive';
48
+ return sharedPaymentConfigTr('inactive');
48
49
  default:
49
50
  if (process.env.NODE_ENV !== 'production') {
50
51
  console.warn(`Unsupported payment config status ${paymentConfigStatus}`);
@@ -5,7 +5,7 @@
5
5
  </div>
6
6
  <Button
7
7
  v-if="isAddPaymentProviderButtonVisible"
8
- label="Add Payment Provider"
8
+ :label="sharedPaymentConfigTr('addPaymentProvider')"
9
9
  size="small"
10
10
  variant="outline"
11
11
  @on-click="onAddPaymentProviderButtonClick"
@@ -43,7 +43,7 @@
43
43
  <DropdownItem v-if="showAddPaymentProvider" class="tw-border-t-2" @click="onAddPaymentProviderButtonClick">
44
44
  <Button
45
45
  :full-width="true"
46
- label="Add Payment Provider"
46
+ :label="sharedPaymentConfigTr('addPaymentProvider')"
47
47
  size="small"
48
48
  variant="outline"
49
49
  @on-click="onAddPaymentProviderButtonClick"
@@ -60,6 +60,7 @@ import Loader from '../../../../src/atoms/components/Loader/Loader.vue';
60
60
  import Pill from '../../../../src/atoms/components/Pill/Pill.vue';
61
61
 
62
62
  import PaymentConfigMixin, { paymentConfigStatuses } from './PaymentConfig.mixin';
63
+ import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
63
64
 
64
65
  export default {
65
66
  components: {
@@ -109,6 +110,8 @@ export default {
109
110
  }
110
111
  },
111
112
  methods: {
113
+ sharedPaymentConfigTr,
114
+
112
115
  onAddPaymentProviderButtonClick() {
113
116
  this.$emit('on-add-payment-provider-click');
114
117
  },
@@ -48,7 +48,7 @@
48
48
  @click="onClickDeleteConfirmation(paymentConfig.id)"
49
49
  >
50
50
  <span class="tw-whitespace-nowrap tw-flex tw-gap-2"
51
- ><Icon name="delete" size="sm" />Delete payment method</span
51
+ ><Icon name="delete" size="sm" />{{ sharedPaymentConfigTr('deletePaymentMethod') }}</span
52
52
  >
53
53
  </li>
54
54
  </ul>
@@ -71,6 +71,7 @@ import PaymentConfigDeleteConfigModal from './PaymentConfigDeleteConfigModal.vue
71
71
  import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
72
72
 
73
73
  import PaymentConfigMixin from './PaymentConfig.mixin';
74
+ import { sharedPaymentConfigTr } from '../../../useSharedLibTranslate';
74
75
 
75
76
  export default {
76
77
  components: {
@@ -89,6 +90,8 @@ export default {
89
90
  };
90
91
  },
91
92
  methods: {
93
+ sharedPaymentConfigTr,
94
+
92
95
  onClickStripeOptions(index) {
93
96
  this.activeStripeOptionIndex = this.activeStripeOptionIndex === index ? null : index;
94
97
  },
@@ -0,0 +1,10 @@
1
+ {
2
+ "sharedPaymentConfig" : {
3
+ "onboardingIncomplete" : "Das Onboarding wurde noch nicht abgeschlossen.",
4
+ "pendingVerification" : "Ausstehende Verifizierung",
5
+ "connected" : "Verbunden",
6
+ "inactive" : "Inaktiv",
7
+ "addPaymentProvider" : "Zahlungsanbieter hinzufügen",
8
+ "deletePaymentMethod" : "Zahlungsmethode löschen"
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "sharedPaymentConfig" : {
3
+ "onboardingIncomplete" : "Incorporación incompleta",
4
+ "pendingVerification" : "Pendiente de verificación",
5
+ "connected" : "Conectado",
6
+ "inactive" : "Inactivo",
7
+ "addPaymentProvider" : "Añadir proveedor de pago",
8
+ "deletePaymentMethod" : "Eliminar método de pago"
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "sharedPaymentConfig" : {
3
+ "onboardingIncomplete" : "Inscription incomplète",
4
+ "pendingVerification" : "Vérification en attente",
5
+ "connected" : "Connecté",
6
+ "inactive" : "Inactif",
7
+ "addPaymentProvider" : "Ajouter un fournisseur de paiement",
8
+ "deletePaymentMethod" : "Supprimer le mode de paiement"
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "sharedPaymentConfig": {
3
+ "onboardingIncomplete": "Onboarding Incomplete",
4
+ "pendingVerification": "Pending Verification",
5
+ "connected": "Connected",
6
+ "inactive": "Inactive",
7
+ "addPaymentProvider": "Add Payment Provider",
8
+ "deletePaymentMethod": "Delete payment method"
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "sharedPaymentConfig" : {
3
+ "onboardingIncomplete" : "Integração incompleta",
4
+ "pendingVerification" : "Verificação Pendente",
5
+ "connected" : "Ligado",
6
+ "inactive" : "Inativo",
7
+ "addPaymentProvider" : "Adicionar fornecedor de pagamentos",
8
+ "deletePaymentMethod" : "Eliminar método de pagamento"
9
+ }
10
+ }
@@ -27,6 +27,8 @@ const setSharedLibLocaleAsync = async (locale = 'en-US') => {
27
27
  await i18next.addResourceBundle(localeToUse, 'fe-shared-lib', {
28
28
  ...languageFile,
29
29
  });
30
+
31
+ await i18next.changeLanguage(localeToUse);
30
32
  };
31
33
 
32
34
  const tr = (key, valuesToInterpolate = {}) => {
@@ -55,6 +57,8 @@ const sellDomainNameListModalTr = (key, valuesToInterpolate = {}) =>
55
57
 
56
58
  const sellDomainNameListTr = (key, valuesToInterpolate = {}) => tr(`sellDomainNameList.${key}`, valuesToInterpolate);
57
59
 
60
+ const sharedPaymentConfigTr = (key, valuesToInterpolate = {}) => tr(`sharedPaymentConfig.${key}`, valuesToInterpolate);
61
+
58
62
  const priceTr = (key, valuesToInterpolate = {}) => tr(`price.${key}`, valuesToInterpolate);
59
63
 
60
64
  const getCurrentLocale = () => {
@@ -72,6 +76,6 @@ export {
72
76
  sellDomainNameModalApplicationTr,
73
77
  sellDomainNameListModalTr,
74
78
  sellDomainNameListTr,
79
+ sharedPaymentConfigTr,
75
80
  priceTr,
76
81
  };
77
-