@blotoutio/providers-blotout-wallet-sdk 0.67.0 → 0.67.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/index.cjs.js CHANGED
@@ -1116,29 +1116,28 @@ BlotoutWallet = __decorate([
1116
1116
  t$1('blotout-wallet')
1117
1117
  ], BlotoutWallet);
1118
1118
 
1119
- var _a;
1119
+ var _a, _b;
1120
+ var _c;
1120
1121
  let wallet;
1121
1122
  if (typeof window != 'undefined' && typeof document != 'undefined') {
1122
1123
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
1123
1124
  // if a custom implementation is already present, don't override it
1124
- if (!window[registryKey].ui) {
1125
- window[registryKey].ui = {
1126
- init(params) {
1127
- if (wallet) {
1128
- return;
1129
- }
1130
- wallet = document.createElement('blotout-wallet');
1131
- if (params.theme) {
1132
- wallet.style.cssText = Object.entries(params.theme)
1133
- .filter(([name]) => name.startsWith('--'))
1134
- .map(([name, value]) => `${name}:${value}`)
1135
- .join(';');
1136
- }
1137
- Object.assign(wallet, params);
1138
- document.body.append(wallet);
1139
- },
1140
- };
1141
- }
1125
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
1126
+ init(params) {
1127
+ if (wallet) {
1128
+ return;
1129
+ }
1130
+ wallet = document.createElement('blotout-wallet');
1131
+ if (params.theme) {
1132
+ wallet.style.cssText = Object.entries(params.theme)
1133
+ .filter(([name]) => name.startsWith('--'))
1134
+ .map(([name, value]) => `${name}:${value}`)
1135
+ .join(';');
1136
+ }
1137
+ Object.assign(wallet, params);
1138
+ document.body.append(wallet);
1139
+ },
1140
+ });
1142
1141
  }
1143
1142
 
1144
1143
  module.exports = data;
package/index.js CHANGED
@@ -1117,29 +1117,28 @@ var ProvidersBlotoutWalletSdk = (function () {
1117
1117
  t$1('blotout-wallet')
1118
1118
  ], BlotoutWallet);
1119
1119
 
1120
- var _a;
1120
+ var _a, _b;
1121
+ var _c;
1121
1122
  let wallet;
1122
1123
  if (typeof window != 'undefined' && typeof document != 'undefined') {
1123
1124
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
1124
1125
  // if a custom implementation is already present, don't override it
1125
- if (!window[registryKey].ui) {
1126
- window[registryKey].ui = {
1127
- init(params) {
1128
- if (wallet) {
1129
- return;
1130
- }
1131
- wallet = document.createElement('blotout-wallet');
1132
- if (params.theme) {
1133
- wallet.style.cssText = Object.entries(params.theme)
1134
- .filter(([name]) => name.startsWith('--'))
1135
- .map(([name, value]) => `${name}:${value}`)
1136
- .join(';');
1137
- }
1138
- Object.assign(wallet, params);
1139
- document.body.append(wallet);
1140
- },
1141
- };
1142
- }
1126
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
1127
+ init(params) {
1128
+ if (wallet) {
1129
+ return;
1130
+ }
1131
+ wallet = document.createElement('blotout-wallet');
1132
+ if (params.theme) {
1133
+ wallet.style.cssText = Object.entries(params.theme)
1134
+ .filter(([name]) => name.startsWith('--'))
1135
+ .map(([name, value]) => `${name}:${value}`)
1136
+ .join(';');
1137
+ }
1138
+ Object.assign(wallet, params);
1139
+ document.body.append(wallet);
1140
+ },
1141
+ });
1143
1142
  }
1144
1143
 
1145
1144
  return data;
package/index.mjs CHANGED
@@ -1114,29 +1114,28 @@ BlotoutWallet = __decorate([
1114
1114
  t$1('blotout-wallet')
1115
1115
  ], BlotoutWallet);
1116
1116
 
1117
- var _a;
1117
+ var _a, _b;
1118
+ var _c;
1118
1119
  let wallet;
1119
1120
  if (typeof window != 'undefined' && typeof document != 'undefined') {
1120
1121
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
1121
1122
  // if a custom implementation is already present, don't override it
1122
- if (!window[registryKey].ui) {
1123
- window[registryKey].ui = {
1124
- init(params) {
1125
- if (wallet) {
1126
- return;
1127
- }
1128
- wallet = document.createElement('blotout-wallet');
1129
- if (params.theme) {
1130
- wallet.style.cssText = Object.entries(params.theme)
1131
- .filter(([name]) => name.startsWith('--'))
1132
- .map(([name, value]) => `${name}:${value}`)
1133
- .join(';');
1134
- }
1135
- Object.assign(wallet, params);
1136
- document.body.append(wallet);
1137
- },
1138
- };
1139
- }
1123
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
1124
+ init(params) {
1125
+ if (wallet) {
1126
+ return;
1127
+ }
1128
+ wallet = document.createElement('blotout-wallet');
1129
+ if (params.theme) {
1130
+ wallet.style.cssText = Object.entries(params.theme)
1131
+ .filter(([name]) => name.startsWith('--'))
1132
+ .map(([name, value]) => `${name}:${value}`)
1133
+ .join(';');
1134
+ }
1135
+ Object.assign(wallet, params);
1136
+ document.body.append(wallet);
1137
+ },
1138
+ });
1140
1139
  }
1141
1140
 
1142
1141
  export { data as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-blotout-wallet-sdk",
3
- "version": "0.67.0",
3
+ "version": "0.67.1",
4
4
  "description": "Blotout Wallet SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",
@@ -81,7 +81,8 @@ const parseCookies = (cookie) => {
81
81
  }));
82
82
  };
83
83
 
84
- var _a;
84
+ var _a, _b;
85
+ var _c;
85
86
  const MAX_RETRY_COUNT = 3;
86
87
  const RETRY_DELAY = 500;
87
88
  const ERROR_PATTERNS = {
@@ -165,5 +166,6 @@ const createShopApi = (fetchOverride = window.fetch) => ({
165
166
  });
166
167
  if (typeof window != 'undefined') {
167
168
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
168
- window[registryKey].storeAPIFactory = createShopApi;
169
+ // if a custom implementation is already present, don't override it
170
+ (_b = (_c = window[registryKey]).storeAPIFactory) !== null && _b !== void 0 ? _b : (_c.storeAPIFactory = createShopApi);
169
171
  }
@@ -82,7 +82,8 @@
82
82
  }));
83
83
  };
84
84
 
85
- var _a;
85
+ var _a, _b;
86
+ var _c;
86
87
  const MAX_RETRY_COUNT = 3;
87
88
  const RETRY_DELAY = 500;
88
89
  const ERROR_PATTERNS = {
@@ -166,7 +167,8 @@
166
167
  });
167
168
  if (typeof window != 'undefined') {
168
169
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
169
- window[registryKey].storeAPIFactory = createShopApi;
170
+ // if a custom implementation is already present, don't override it
171
+ (_b = (_c = window[registryKey]).storeAPIFactory) !== null && _b !== void 0 ? _b : (_c.storeAPIFactory = createShopApi);
170
172
  }
171
173
 
172
174
  })();
@@ -79,7 +79,8 @@ const parseCookies = (cookie) => {
79
79
  }));
80
80
  };
81
81
 
82
- var _a;
82
+ var _a, _b;
83
+ var _c;
83
84
  const MAX_RETRY_COUNT = 3;
84
85
  const RETRY_DELAY = 500;
85
86
  const ERROR_PATTERNS = {
@@ -163,5 +164,6 @@ const createShopApi = (fetchOverride = window.fetch) => ({
163
164
  });
164
165
  if (typeof window != 'undefined') {
165
166
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
166
- window[registryKey].storeAPIFactory = createShopApi;
167
+ // if a custom implementation is already present, don't override it
168
+ (_b = (_c = window[registryKey]).storeAPIFactory) !== null && _b !== void 0 ? _b : (_c.storeAPIFactory = createShopApi);
167
169
  }
package/ui.cjs.js CHANGED
@@ -841,27 +841,26 @@ BlotoutWallet = __decorate([
841
841
  t$1('blotout-wallet')
842
842
  ], BlotoutWallet);
843
843
 
844
- var _a;
844
+ var _a, _b;
845
+ var _c;
845
846
  let wallet;
846
847
  if (typeof window != 'undefined' && typeof document != 'undefined') {
847
848
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
848
849
  // if a custom implementation is already present, don't override it
849
- if (!window[registryKey].ui) {
850
- window[registryKey].ui = {
851
- init(params) {
852
- if (wallet) {
853
- return;
854
- }
855
- wallet = document.createElement('blotout-wallet');
856
- if (params.theme) {
857
- wallet.style.cssText = Object.entries(params.theme)
858
- .filter(([name]) => name.startsWith('--'))
859
- .map(([name, value]) => `${name}:${value}`)
860
- .join(';');
861
- }
862
- Object.assign(wallet, params);
863
- document.body.append(wallet);
864
- },
865
- };
866
- }
850
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
851
+ init(params) {
852
+ if (wallet) {
853
+ return;
854
+ }
855
+ wallet = document.createElement('blotout-wallet');
856
+ if (params.theme) {
857
+ wallet.style.cssText = Object.entries(params.theme)
858
+ .filter(([name]) => name.startsWith('--'))
859
+ .map(([name, value]) => `${name}:${value}`)
860
+ .join(';');
861
+ }
862
+ Object.assign(wallet, params);
863
+ document.body.append(wallet);
864
+ },
865
+ });
867
866
  }
package/ui.js CHANGED
@@ -842,29 +842,28 @@
842
842
  t$1('blotout-wallet')
843
843
  ], BlotoutWallet);
844
844
 
845
- var _a;
845
+ var _a, _b;
846
+ var _c;
846
847
  let wallet;
847
848
  if (typeof window != 'undefined' && typeof document != 'undefined') {
848
849
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
849
850
  // if a custom implementation is already present, don't override it
850
- if (!window[registryKey].ui) {
851
- window[registryKey].ui = {
852
- init(params) {
853
- if (wallet) {
854
- return;
855
- }
856
- wallet = document.createElement('blotout-wallet');
857
- if (params.theme) {
858
- wallet.style.cssText = Object.entries(params.theme)
859
- .filter(([name]) => name.startsWith('--'))
860
- .map(([name, value]) => `${name}:${value}`)
861
- .join(';');
862
- }
863
- Object.assign(wallet, params);
864
- document.body.append(wallet);
865
- },
866
- };
867
- }
851
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
852
+ init(params) {
853
+ if (wallet) {
854
+ return;
855
+ }
856
+ wallet = document.createElement('blotout-wallet');
857
+ if (params.theme) {
858
+ wallet.style.cssText = Object.entries(params.theme)
859
+ .filter(([name]) => name.startsWith('--'))
860
+ .map(([name, value]) => `${name}:${value}`)
861
+ .join(';');
862
+ }
863
+ Object.assign(wallet, params);
864
+ document.body.append(wallet);
865
+ },
866
+ });
868
867
  }
869
868
 
870
869
  })();
package/ui.mjs CHANGED
@@ -839,27 +839,26 @@ BlotoutWallet = __decorate([
839
839
  t$1('blotout-wallet')
840
840
  ], BlotoutWallet);
841
841
 
842
- var _a;
842
+ var _a, _b;
843
+ var _c;
843
844
  let wallet;
844
845
  if (typeof window != 'undefined' && typeof document != 'undefined') {
845
846
  (_a = window[registryKey]) !== null && _a !== void 0 ? _a : (window[registryKey] = {});
846
847
  // if a custom implementation is already present, don't override it
847
- if (!window[registryKey].ui) {
848
- window[registryKey].ui = {
849
- init(params) {
850
- if (wallet) {
851
- return;
852
- }
853
- wallet = document.createElement('blotout-wallet');
854
- if (params.theme) {
855
- wallet.style.cssText = Object.entries(params.theme)
856
- .filter(([name]) => name.startsWith('--'))
857
- .map(([name, value]) => `${name}:${value}`)
858
- .join(';');
859
- }
860
- Object.assign(wallet, params);
861
- document.body.append(wallet);
862
- },
863
- };
864
- }
848
+ (_b = (_c = window[registryKey]).ui) !== null && _b !== void 0 ? _b : (_c.ui = {
849
+ init(params) {
850
+ if (wallet) {
851
+ return;
852
+ }
853
+ wallet = document.createElement('blotout-wallet');
854
+ if (params.theme) {
855
+ wallet.style.cssText = Object.entries(params.theme)
856
+ .filter(([name]) => name.startsWith('--'))
857
+ .map(([name, value]) => `${name}:${value}`)
858
+ .join(';');
859
+ }
860
+ Object.assign(wallet, params);
861
+ document.body.append(wallet);
862
+ },
863
+ });
865
864
  }