@blotoutio/providers-shop-gpt-sdk 1.1.0 → 1.1.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
@@ -645,7 +645,6 @@ const shopGPTStyles = i$3 `
645
645
  bottom: 28px;
646
646
  height: 80%;
647
647
  width: 35%;
648
- min-height: 620px;
649
648
  min-width: 475px;
650
649
  border-radius: 10px;
651
650
  overflow: hidden;
@@ -1408,6 +1407,9 @@ class ProductsList extends s {
1408
1407
  (_a = this.productsEle) === null || _a === void 0 ? void 0 : _a.scrollBy({ left: 186, behavior: 'smooth' });
1409
1408
  }
1410
1409
  render() {
1410
+ if (!this.products.length) {
1411
+ return T;
1412
+ }
1411
1413
  return x `
1412
1414
  <div class="products-wrapper">
1413
1415
  <div class="products" @scroll=${this.updateButtonsState}>
@@ -2947,7 +2949,7 @@ let ShopGPT = class ShopGPT extends s {
2947
2949
  }
2948
2950
  connectedCallback() {
2949
2951
  super.connectedCallback();
2950
- if (this.uiMode === 'overlay') {
2952
+ if (!this.uiMode || this.uiMode === 'overlay') {
2951
2953
  if (!this.path) {
2952
2954
  return;
2953
2955
  }
package/index.js CHANGED
@@ -646,7 +646,6 @@ var ProvidersShopGptSdk = (function () {
646
646
  bottom: 28px;
647
647
  height: 80%;
648
648
  width: 35%;
649
- min-height: 620px;
650
649
  min-width: 475px;
651
650
  border-radius: 10px;
652
651
  overflow: hidden;
@@ -1409,6 +1408,9 @@ var ProvidersShopGptSdk = (function () {
1409
1408
  (_a = this.productsEle) === null || _a === void 0 ? void 0 : _a.scrollBy({ left: 186, behavior: 'smooth' });
1410
1409
  }
1411
1410
  render() {
1411
+ if (!this.products.length) {
1412
+ return T;
1413
+ }
1412
1414
  return x `
1413
1415
  <div class="products-wrapper">
1414
1416
  <div class="products" @scroll=${this.updateButtonsState}>
@@ -2948,7 +2950,7 @@ var ProvidersShopGptSdk = (function () {
2948
2950
  }
2949
2951
  connectedCallback() {
2950
2952
  super.connectedCallback();
2951
- if (this.uiMode === 'overlay') {
2953
+ if (!this.uiMode || this.uiMode === 'overlay') {
2952
2954
  if (!this.path) {
2953
2955
  return;
2954
2956
  }
package/index.mjs CHANGED
@@ -643,7 +643,6 @@ const shopGPTStyles = i$3 `
643
643
  bottom: 28px;
644
644
  height: 80%;
645
645
  width: 35%;
646
- min-height: 620px;
647
646
  min-width: 475px;
648
647
  border-radius: 10px;
649
648
  overflow: hidden;
@@ -1406,6 +1405,9 @@ class ProductsList extends s {
1406
1405
  (_a = this.productsEle) === null || _a === void 0 ? void 0 : _a.scrollBy({ left: 186, behavior: 'smooth' });
1407
1406
  }
1408
1407
  render() {
1408
+ if (!this.products.length) {
1409
+ return T;
1410
+ }
1409
1411
  return x `
1410
1412
  <div class="products-wrapper">
1411
1413
  <div class="products" @scroll=${this.updateButtonsState}>
@@ -2945,7 +2947,7 @@ let ShopGPT = class ShopGPT extends s {
2945
2947
  }
2946
2948
  connectedCallback() {
2947
2949
  super.connectedCallback();
2948
- if (this.uiMode === 'overlay') {
2950
+ if (!this.uiMode || this.uiMode === 'overlay') {
2949
2951
  if (!this.path) {
2950
2952
  return;
2951
2953
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-shop-gpt-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shop GPT SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",