@everymatrix/general-player-register-form-step1 0.0.243 → 0.0.247

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": "@everymatrix/general-player-register-form-step1",
3
- "version": "0.0.243",
3
+ "version": "0.0.247",
4
4
  "main": "dist/general-player-register-form-step1.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "fa7606648eac979494812909713f05eec0ac0cd8"
39
+ "gitHead": "a5b796f4cea4507671829ccf33489c7c93dc3709"
40
40
  }
@@ -47,13 +47,13 @@
47
47
  }
48
48
 
49
49
  const regexValidators = {
50
- user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,
50
+ user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d].*$/,
51
51
  email: /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,
52
52
  password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
53
53
  }
54
54
 
55
55
  const checkEmailIdentifier = (email:string) => {
56
- if (regexValidators.email.test(email)) {
56
+ if (regexValidators.email.test(email) && email.length <= 100) {
57
57
  return true;
58
58
  }
59
59
 
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  const checkUserIdentifier = (user:string) => {
69
- if(regexValidators.user.test(user)) {
69
+ if(regexValidators.user.test(user) && user.length <= 20) {
70
70
  return true;
71
71
  }
72
72
 
@@ -219,7 +219,7 @@
219
219
  <label for="Email">{$_('registerFormStep1.registerEmail')}:<span class="FormRequired">*</span></label>
220
220
  <input bind:value={userEmail} on:blur={validateEmail} type="text" id="Email" />
221
221
  {#if invalidEmail}
222
- <p class="InvalidInput">{$_('registerFormStep1.registerEmail')}</p>
222
+ <p class="InvalidInput">{$_('registerFormStep1.registerEmailError')}</p>
223
223
  {/if}
224
224
  </div>
225
225
  <div class="UserContainer {invalidName ? 'InvalidField' : ''}">
@@ -374,7 +374,7 @@
374
374
  }
375
375
 
376
376
  .InvalidInput {
377
- color: var(--emfe-w-color-primary, #D0046C);
377
+ color: var(--emfe-w-color-error, #FD2839);
378
378
  font-size: ttp(0.625);
379
379
  position: absolute;
380
380
  bottom: -3px;
@@ -384,7 +384,7 @@
384
384
  .ErrorMessage {
385
385
  margin: 0 0 ttp(0.938) 0;
386
386
  font-size: ttp(0.75);
387
- color: var(--emfe-w-color-primary, #D0046C);
387
+ color: var(--emfe-w-color-error, #FD2839);
388
388
  }
389
389
 
390
390
  .UserContainer {
@@ -7,7 +7,7 @@ export const RegisterFormStep1Translations = {
7
7
  registerEmail: 'Email',
8
8
  registerEmailError: "Email should contain '@' and a 2-3 letter long domain.",
9
9
  registerUsername: 'Username',
10
- registerUsernameError: 'Name must be at least 2 characters long and contain no special characters.',
10
+ registerUsernameError: 'Name must be at least 4-20 characters long and contain no special characters.',
11
11
  registerPassword: 'Password',
12
12
  registerPasswordError: 'Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.',
13
13
  registerConfirmPassword: 'Confirm Password',
@@ -27,7 +27,7 @@ export const RegisterFormStep1Translations = {
27
27
  registerEmail: 'E-posta',
28
28
  registerEmailError: "E-posta '@' ve 2-3 harf uzunluğunda bir etki alanı içermelidir.",
29
29
  registerUsername: 'Kullanıcı adı',
30
- registerUsernameError: 'Ad en az 2 karakter uzunluğunda olmalı ve özel karakter içermemelidir.',
30
+ registerUsernameError: 'Ad en az 4-20 karakter uzunluğunda olmalı ve özel karakter içermemelidir.',
31
31
  registerPassword: 'Parola',
32
32
  registerPasswordError: 'Şifre 8-20 karakter uzunluğunda olmalı ve en az 1 büyük harf, 1 rakam ve 1 özel karakter içermelidir.',
33
33
  registerConfirmPassword: 'Şifreyi Onayla',
@@ -47,7 +47,7 @@ export const RegisterFormStep1Translations = {
47
47
  registerEmail: 'Email',
48
48
  registerEmailError: "Email-ul ar trebui sa contina '@' si 2-3 litere.",
49
49
  registerUsername: 'Utilizator',
50
- registerUsernameError: 'Utilizatorul trebuie sa contina minim 2 litere si sa nu contina caractere speciale.',
50
+ registerUsernameError: 'Utilizatorul trebuie sa fie cuprins intre 4-20 litere si sa nu contina caractere speciale.',
51
51
  registerPassword: 'Parola',
52
52
  registerPasswordError: 'Parola trebuie sa fie cuprinsa intre 8 si 20 de caractere, cel putin o litera mare, cel putin un numar si cel putin un caracter special.',
53
53
  registerConfirmPassword: 'Confirma Parola',