@saasquatch/component-environment 1.0.4-0 → 1.0.4

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/dist/index.js CHANGED
@@ -87,12 +87,6 @@ function getEnvironmentSDK() {
87
87
  widgetIdent: window["widgetIdent"]
88
88
  };
89
89
  }
90
- if (window["SquatchIOS"]) {
91
- return {
92
- type: "SquatchIOS",
93
- widgetIdent: window["widgetIdent"]
94
- };
95
- }
96
90
  if (window["SquatchPortal"]) {
97
91
  return {
98
92
  type: "SquatchPortal",
@@ -105,7 +99,7 @@ function getEnvironmentSDK() {
105
99
  adminSDK: window["SquatchAdmin"]
106
100
  };
107
101
  }
108
- if (((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"]) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
102
+ if ((window["widgetIdent"] || ((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"])) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
109
103
  return {
110
104
  type: "SquatchJS2",
111
105
  api: (_c = window.frameElement) == null ? void 0 : _c["squatchJsApi"],
package/dist/index.mjs CHANGED
@@ -38,12 +38,6 @@ function getEnvironmentSDK() {
38
38
  widgetIdent: window["widgetIdent"]
39
39
  };
40
40
  }
41
- if (window["SquatchIOS"]) {
42
- return {
43
- type: "SquatchIOS",
44
- widgetIdent: window["widgetIdent"]
45
- };
46
- }
47
41
  if (window["SquatchPortal"]) {
48
42
  return {
49
43
  type: "SquatchPortal",
@@ -56,7 +50,7 @@ function getEnvironmentSDK() {
56
50
  adminSDK: window["SquatchAdmin"]
57
51
  };
58
52
  }
59
- if (((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"]) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
53
+ if ((window["widgetIdent"] || ((_a = window.frameElement) == null ? void 0 : _a["squatchJsApi"])) && ((_b = window["widgetIdent"]) == null ? void 0 : _b.env) !== "demo") {
60
54
  return {
61
55
  type: "SquatchJS2",
62
56
  api: (_c = window.frameElement) == null ? void 0 : _c["squatchJsApi"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saasquatch/component-environment",
3
- "version": "1.0.4-0",
3
+ "version": "1.0.4",
4
4
  "description": "Environment and contexts for SaaSquatch components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",