@everymatrix/general-player-login-form 1.27.3 → 1.27.6

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-login-form",
3
- "version": "1.27.3",
3
+ "version": "1.27.6",
4
4
  "main": "dist/general-player-login-form.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "bb3f018dda0d4518201642689dcd1745b1d9153e"
38
+ "gitHead": "2f583e2260a753f1dc3591b8b5b122a6684bf76f"
39
39
  }
@@ -6,9 +6,6 @@
6
6
 
7
7
  import '@everymatrix/general-player-sms-verification-form';
8
8
 
9
- // Native bridge
10
- import { isNative, call as callNative, registerEventListener as registerNativeEventListener } from 'js-native-bridge';
11
-
12
9
  import { _, addNewMessages, setLocale, setupI18n } from './i18n';
13
10
  import { TRANSLATIONS } from './translations';
14
11
 
@@ -46,11 +43,8 @@
46
43
  let isPasswordVisible:boolean = false;
47
44
  let isFormDataInvalid:boolean = true;
48
45
 
49
- // Native bridge
50
- let isOnNative:boolean = false;
51
- let waitingForCredentials:boolean = false;
52
46
 
53
- let nativeCredentials:any = {};
47
+
54
48
 
55
49
  let customStylingContainer:HTMLElement;
56
50
  let displayNone:boolean = false;
@@ -187,13 +181,6 @@
187
181
  }
188
182
 
189
183
  const handlePostLogin = (loginData):void => {
190
- if (isOnNative && loginData && loginData.usernameOrEmail) {
191
- callNative(
192
- 'UPDATE_CREDENTIALS',
193
- { username: loginData.username, password: loginData.password },
194
- );
195
- }
196
-
197
184
  //Analytics event
198
185
  if(typeof gtag == 'function'){
199
186
  gtag('event', 'Login', {
@@ -349,34 +336,6 @@
349
336
  onMount(() => {
350
337
  window.addEventListener("message", messageHandler, false);
351
338
  window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href);
352
- isOnNative = !!isNative(userAgent);
353
- waitingForCredentials = isOnNative;
354
-
355
- if (isOnNative) {
356
- registerNativeEventListener(
357
- 'GET_CREDENTIALS',
358
- (credentials:any):void => {
359
- if (waitingForCredentials) {
360
- if (credentials) {
361
- const { username, password } = credentials;
362
-
363
- userValue = username;
364
- userPassword = password;
365
-
366
- submitLoginForm();
367
- } else {
368
- waitingForCredentials = false;
369
- }
370
- }
371
- }
372
- );
373
-
374
- const methodFound = callNative('GET_CREDENTIALS');
375
-
376
- if (!methodFound) {
377
- waitingForCredentials = false;
378
- }
379
- }
380
339
 
381
340
  mobileView = isMobile(userAgent);
382
341