@blotoutio/providers-shop-gpt-sdk 1.24.2 → 1.25.0

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
@@ -11815,6 +11815,21 @@ if (typeof window != 'undefined' && typeof document != 'undefined') {
11815
11815
  shopGPT = undefined;
11816
11816
  delete window[registryKey];
11817
11817
  },
11818
+ show() {
11819
+ if (!shopGPT) {
11820
+ return;
11821
+ }
11822
+ if (!shopGPT.parentNode) {
11823
+ document.body.append(shopGPT);
11824
+ }
11825
+ shopGPT.style.display = '';
11826
+ },
11827
+ hide() {
11828
+ if (!shopGPT) {
11829
+ return;
11830
+ }
11831
+ shopGPT.style.display = 'none';
11832
+ },
11818
11833
  });
11819
11834
  }
11820
11835
 
package/index.d.ts CHANGED
@@ -197,6 +197,8 @@ declare global {
197
197
  }) => void
198
198
  loadUI: () => void
199
199
  destroy: () => void
200
+ show: () => void
201
+ hide: () => void
200
202
  }
201
203
 
202
204
  type ShopGPTAPI = {
package/index.js CHANGED
@@ -11816,6 +11816,21 @@ ${this.comment ? this.comment : E}</textarea
11816
11816
  shopGPT = undefined;
11817
11817
  delete window[registryKey];
11818
11818
  },
11819
+ show() {
11820
+ if (!shopGPT) {
11821
+ return;
11822
+ }
11823
+ if (!shopGPT.parentNode) {
11824
+ document.body.append(shopGPT);
11825
+ }
11826
+ shopGPT.style.display = '';
11827
+ },
11828
+ hide() {
11829
+ if (!shopGPT) {
11830
+ return;
11831
+ }
11832
+ shopGPT.style.display = 'none';
11833
+ },
11819
11834
  });
11820
11835
  }
11821
11836
 
package/index.mjs CHANGED
@@ -11813,6 +11813,21 @@ if (typeof window != 'undefined' && typeof document != 'undefined') {
11813
11813
  shopGPT = undefined;
11814
11814
  delete window[registryKey];
11815
11815
  },
11816
+ show() {
11817
+ if (!shopGPT) {
11818
+ return;
11819
+ }
11820
+ if (!shopGPT.parentNode) {
11821
+ document.body.append(shopGPT);
11822
+ }
11823
+ shopGPT.style.display = '';
11824
+ },
11825
+ hide() {
11826
+ if (!shopGPT) {
11827
+ return;
11828
+ }
11829
+ shopGPT.style.display = 'none';
11830
+ },
11816
11831
  });
11817
11832
  }
11818
11833
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-shop-gpt-sdk",
3
- "version": "1.24.2",
3
+ "version": "1.25.0",
4
4
  "description": "Shop GPT SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",