@saasquatch/component-environment 1.0.3 → 1.0.4-1

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