sales-frontend-utils 0.0.44 → 0.0.45
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 +22 -0
- 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 +19 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/user-agent-utils.cjs +22 -0
- package/dist/utils/user-agent-utils.cjs.map +1 -1
- package/dist/utils/user-agent-utils.d.cts +21 -1
- package/dist/utils/user-agent-utils.d.ts +21 -1
- package/dist/utils/user-agent-utils.js +19 -1
- package/dist/utils/user-agent-utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -539,6 +539,24 @@ var getDeviceModel = () => {
|
|
|
539
539
|
}
|
|
540
540
|
return "Unknown";
|
|
541
541
|
};
|
|
542
|
+
var isAndroidDevice = () => {
|
|
543
|
+
if (isClient() === false) {
|
|
544
|
+
return false;
|
|
545
|
+
}
|
|
546
|
+
return /Android/i.test(navigator.userAgent);
|
|
547
|
+
};
|
|
548
|
+
var isIosDevice = () => {
|
|
549
|
+
if (isClient() === false) {
|
|
550
|
+
return false;
|
|
551
|
+
}
|
|
552
|
+
return /iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
553
|
+
};
|
|
554
|
+
var isAndroidWebView = () => {
|
|
555
|
+
return getDspExecutionEnvironment() === "android-webview";
|
|
556
|
+
};
|
|
557
|
+
var isIosWebView = () => {
|
|
558
|
+
return getDspExecutionEnvironment() === "ios-webview";
|
|
559
|
+
};
|
|
542
560
|
|
|
543
561
|
// src/utils/event-handler-utils.ts
|
|
544
562
|
var _MessageEventManager = class _MessageEventManager {
|
|
@@ -1046,12 +1064,16 @@ exports.getSubdomain = getSubdomain;
|
|
|
1046
1064
|
exports.hasAstx2 = hasAstx2;
|
|
1047
1065
|
exports.imageUrlToFile = imageUrlToFile;
|
|
1048
1066
|
exports.initASTX2 = initASTX2;
|
|
1067
|
+
exports.isAndroidDevice = isAndroidDevice;
|
|
1068
|
+
exports.isAndroidWebView = isAndroidWebView;
|
|
1049
1069
|
exports.isClient = isClient;
|
|
1050
1070
|
exports.isDate = isDate;
|
|
1051
1071
|
exports.isDateAfter = isDateAfter;
|
|
1052
1072
|
exports.isDspApp = isDspApp;
|
|
1053
1073
|
exports.isFpPlannerApp = isFpPlannerApp;
|
|
1054
1074
|
exports.isFutureDate = isFutureDate;
|
|
1075
|
+
exports.isIosDevice = isIosDevice;
|
|
1076
|
+
exports.isIosWebView = isIosWebView;
|
|
1055
1077
|
exports.isPc = isPc;
|
|
1056
1078
|
exports.isPhone = isPhone;
|
|
1057
1079
|
exports.isProductionApp = isProductionApp;
|