@egovernments/digit-ui-libraries 1.5.0-beta.3 → 1.5.0-beta.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
@@ -34156,6 +34156,10 @@ var Download = {
34156
34156
  }
34157
34157
 
34158
34158
  var saveAs = function saveAs(uri, filename) {
34159
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34160
+ window.mSewaApp.downloadBase64File(uri, filename);
34161
+ }
34162
+
34159
34163
  var link = document.createElement("a");
34160
34164
 
34161
34165
  if (typeof link.download === "string") {
@@ -34212,6 +34216,10 @@ var Download = {
34212
34216
  }
34213
34217
 
34214
34218
  var saveAs = function saveAs(uri, filename) {
34219
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34220
+ window.mSewaApp.downloadBase64File(uri, filename);
34221
+ }
34222
+
34215
34223
  var link = document.createElement("a");
34216
34224
 
34217
34225
  if (typeof link.download === "string") {
@@ -37131,7 +37139,7 @@ var ShareFiles = {
37131
37139
  return window.open("mailto:?body=" + shortUrl, "_blank");
37132
37140
 
37133
37141
  case "whatsapp":
37134
- return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37142
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) return window.open("https://wa.me/send?text=" + shortUrl, "_blank");else return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37135
37143
 
37136
37144
  default:
37137
37145
  return window.open(shortUrl, "_blank");