@etsoo/materialui 1.4.0 → 1.4.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.
@@ -45,7 +45,7 @@ export class ServiceApp extends ReactApp {
45
45
  this.cachedUrl = removeUrl ? undefined : globalThis.location.href;
46
46
  // Get the redirect URL
47
47
  new AuthApi(this)
48
- .getSigninUrl({
48
+ .getLogInUrl({
49
49
  region: this.region,
50
50
  device: this.deviceId
51
51
  })
@@ -54,8 +54,8 @@ export class ServiceApp extends ReactApp {
54
54
  return;
55
55
  // Add try login flag
56
56
  url = url.addUrlParam("tryLogin", tryLogin ?? false);
57
- // Is it inside an iframe?
58
- if (globalThis.self !== globalThis.parent) {
57
+ // Is it embeded?
58
+ if (this.embedded) {
59
59
  globalThis.parent.postMessage(["login", url], this.coreOrigin);
60
60
  }
61
61
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,9 +50,9 @@
50
50
  "@emotion/css": "^11.13.4",
51
51
  "@emotion/react": "^11.13.3",
52
52
  "@emotion/styled": "^11.13.0",
53
- "@etsoo/appscript": "^1.5.33",
53
+ "@etsoo/appscript": "^1.5.35",
54
54
  "@etsoo/notificationbase": "^1.1.49",
55
- "@etsoo/react": "^1.7.71",
55
+ "@etsoo/react": "^1.7.73",
56
56
  "@etsoo/shared": "^1.2.48",
57
57
  "@mui/icons-material": "^6.1.3",
58
58
  "@mui/material": "^6.1.3",
@@ -82,7 +82,7 @@ export class ServiceApp<
82
82
 
83
83
  // Get the redirect URL
84
84
  new AuthApi(this)
85
- .getSigninUrl({
85
+ .getLogInUrl({
86
86
  region: this.region,
87
87
  device: this.deviceId
88
88
  })
@@ -92,8 +92,8 @@ export class ServiceApp<
92
92
  // Add try login flag
93
93
  url = url.addUrlParam("tryLogin", tryLogin ?? false);
94
94
 
95
- // Is it inside an iframe?
96
- if (globalThis.self !== globalThis.parent) {
95
+ // Is it embeded?
96
+ if (this.embedded) {
97
97
  globalThis.parent.postMessage(["login", url], this.coreOrigin);
98
98
  } else {
99
99
  if (BridgeUtils.host == null) {