sales-frontend-utils 0.0.31 → 0.0.32

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 CHANGED
@@ -184,9 +184,11 @@ var getDspExecutionEnvironment = () => {
184
184
  }
185
185
  return "web";
186
186
  };
187
- var isWebView = () => {
188
- const environment = getDspExecutionEnvironment();
189
- return environment === "android-webview" || environment === "ios-webview";
187
+ var isProductionApp = () => {
188
+ if (!isClient()) {
189
+ return false;
190
+ }
191
+ return isDspApp() || isFpPlannerApp();
190
192
  };
191
193
  var checkUserAgentDspApp = (userAgent) => {
192
194
  return userAgent.toLowerCase().includes("sspapp");
@@ -850,10 +852,10 @@ exports.isDspApp = isDspApp;
850
852
  exports.isFpPlannerApp = isFpPlannerApp;
851
853
  exports.isPc = isPc;
852
854
  exports.isPhone = isPhone;
855
+ exports.isProductionApp = isProductionApp;
853
856
  exports.isSalesPortal = isSalesPortal;
854
857
  exports.isStorybookEnv = isStorybookEnv;
855
858
  exports.isTablet = isTablet;
856
- exports.isWebView = isWebView;
857
859
  exports.loadScript = loadScript;
858
860
  exports.objectUrlToBase64 = objectUrlToBase64;
859
861
  exports.objectUrlToBlob = objectUrlToBlob;