@opexa/portal-sdk 0.23.0 → 0.24.0
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.cjs +12 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4126,8 +4126,8 @@ var DomainManager = class {
|
|
|
4126
4126
|
this.logger.warn("Cannot determine domain on the server.");
|
|
4127
4127
|
return null;
|
|
4128
4128
|
}
|
|
4129
|
-
if (this.
|
|
4130
|
-
if (this.
|
|
4129
|
+
if (this.isIOSApp) return `ios/${this.platform}`;
|
|
4130
|
+
if (this.isAndroidApp) return `android/${this.platform}`;
|
|
4131
4131
|
const url = new URL(window.location.href);
|
|
4132
4132
|
if (url.searchParams.has("m")) return `${url.hostname}/${url.searchParams.get("m")}`;
|
|
4133
4133
|
const map = {
|
|
@@ -4140,19 +4140,16 @@ var DomainManager = class {
|
|
|
4140
4140
|
get isServer() {
|
|
4141
4141
|
return typeof window === "undefined";
|
|
4142
4142
|
}
|
|
4143
|
-
get
|
|
4144
|
-
return
|
|
4145
|
-
//
|
|
4146
|
-
"iPad Simulator",
|
|
4147
|
-
"iPhone Simulator",
|
|
4148
|
-
"iPod Simulator",
|
|
4149
|
-
"iPad",
|
|
4150
|
-
"iPhone",
|
|
4151
|
-
"iPod"
|
|
4152
|
-
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
4143
|
+
get isNative() {
|
|
4144
|
+
return !!(window.Capacitor?.isNativePlatform?.() || window.cordova !== undefined);
|
|
4153
4145
|
}
|
|
4154
|
-
get
|
|
4155
|
-
return
|
|
4146
|
+
get isIOSApp() {
|
|
4147
|
+
return (["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(
|
|
4148
|
+
navigator.platform
|
|
4149
|
+
) || navigator.userAgent.includes("Mac") && "ontouchend" in window) && this.isNative;
|
|
4150
|
+
}
|
|
4151
|
+
get isAndroidApp() {
|
|
4152
|
+
return /Android/i.test(navigator.userAgent) && (window.Capacitor?.isNativePlatform?.() || window.cordova !== undefined || /(wv|Version\/)/i.test(navigator.userAgent));
|
|
4156
4153
|
}
|
|
4157
4154
|
};
|
|
4158
4155
|
|
|
@@ -4566,7 +4563,7 @@ function addAreaCode(mobileNumber, locale) {
|
|
|
4566
4563
|
}
|
|
4567
4564
|
|
|
4568
4565
|
// src/sdk/transformer.ts
|
|
4569
|
-
var IMAGE_CACHE_ID = "
|
|
4566
|
+
var IMAGE_CACHE_ID = "3".padStart(8, "0");
|
|
4570
4567
|
var Transformer = class {
|
|
4571
4568
|
get transform() {
|
|
4572
4569
|
return {
|