@blotoutio/providers-blotout-wallet-sdk 0.57.0 → 0.58.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
@@ -868,6 +868,11 @@ const init = (params) => {
868
868
  }
869
869
  }
870
870
  if ((_c = params.manifest.variables) === null || _c === void 0 ? void 0 : _c['enabled']) {
871
+ // if the component is already defined, skip creating the element to avoid
872
+ // layering multiple widgets
873
+ if (window[registryKey].wallet) {
874
+ return;
875
+ }
871
876
  const element = (window[registryKey].wallet =
872
877
  document.createElement('blotout-wallet'));
873
878
  const theme = (_d = params.manifest.variables) === null || _d === void 0 ? void 0 : _d['theme'];
package/index.js CHANGED
@@ -869,6 +869,11 @@ var ProvidersBlotoutWalletSdk = (function () {
869
869
  }
870
870
  }
871
871
  if ((_c = params.manifest.variables) === null || _c === void 0 ? void 0 : _c['enabled']) {
872
+ // if the component is already defined, skip creating the element to avoid
873
+ // layering multiple widgets
874
+ if (window[registryKey].wallet) {
875
+ return;
876
+ }
872
877
  const element = (window[registryKey].wallet =
873
878
  document.createElement('blotout-wallet'));
874
879
  const theme = (_d = params.manifest.variables) === null || _d === void 0 ? void 0 : _d['theme'];
package/index.mjs CHANGED
@@ -866,6 +866,11 @@ const init = (params) => {
866
866
  }
867
867
  }
868
868
  if ((_c = params.manifest.variables) === null || _c === void 0 ? void 0 : _c['enabled']) {
869
+ // if the component is already defined, skip creating the element to avoid
870
+ // layering multiple widgets
871
+ if (window[registryKey].wallet) {
872
+ return;
873
+ }
869
874
  const element = (window[registryKey].wallet =
870
875
  document.createElement('blotout-wallet'));
871
876
  const theme = (_d = params.manifest.variables) === null || _d === void 0 ? void 0 : _d['theme'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-blotout-wallet-sdk",
3
- "version": "0.57.0",
3
+ "version": "0.58.1",
4
4
  "description": "Blotout Wallet SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",