@inappstory/slide-api 0.0.25 → 0.0.26

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.cjs CHANGED
@@ -16034,7 +16034,7 @@ class WidgetProducts extends WidgetBase {
16034
16034
  ...this.statisticEventBaseFieldsShortForm,
16035
16035
  wi: this.elementId,
16036
16036
  wl: captionViewText,
16037
- wv: this.linkTarget,
16037
+ wv: JSON.stringify(this.linkTarget),
16038
16038
  }, {
16039
16039
  ...this.statisticEventBaseFieldsShortForm,
16040
16040
  widget_id: this.elementId,
@@ -16055,8 +16055,8 @@ class WidgetProducts extends WidgetBase {
16055
16055
  ...this.statisticEventBaseFieldsShortForm,
16056
16056
  wi: this.elementId,
16057
16057
  wl: captionViewText,
16058
- wv: this.linkTarget,
16059
- wit: offers.map(item => item.offerId),
16058
+ wv: JSON.stringify(this.linkTarget),
16059
+ wit: JSON.stringify(offers.map(item => item.offerId)),
16060
16060
  }, {
16061
16061
  ...this.statisticEventBaseFieldsShortForm,
16062
16062
  widget_id: this.elementId,
@@ -16273,14 +16273,15 @@ class WidgetProducts extends WidgetBase {
16273
16273
  const figure = document.createElement("div");
16274
16274
  figure.classList.add("ias-products-card-figure");
16275
16275
  if (offer.coverUrl) {
16276
- // todo preload coverImage by fetch, save to offer.coverUrl via createUrl (add revoke)
16277
- // if cannot fetch - skip caching
16278
16276
  const image = document.createElement("img");
16279
16277
  image.classList.add("ias-products-card-figure-image");
16280
16278
  image.alt = offer.name ?? "";
16281
16279
  image.src = offer.coverUrl;
16282
16280
  figure.appendChild(image);
16283
16281
  }
16282
+ const imageMask = document.createElement("div");
16283
+ imageMask.classList.add("ias-products-card-figure-image-mask");
16284
+ figure.appendChild(imageMask);
16284
16285
  // const subTitle = document.createElement("div");
16285
16286
  // subTitle.classList.add("ias-products-card-subtitle");
16286
16287
  // subTitle.innerText = offer.description ?? "";
@@ -16391,8 +16392,10 @@ class WidgetProducts extends WidgetBase {
16391
16392
  e.stopPropagation();
16392
16393
  onClose();
16393
16394
  };
16395
+ const divider = document.createElement("div");
16394
16396
  backgroundView.appendChild(scrollView);
16395
16397
  backgroundView.appendChild(closeButton);
16398
+ backgroundView.appendChild(divider);
16396
16399
  containerView.appendChild(backdropView);
16397
16400
  containerView.appendChild(backgroundView);
16398
16401
  return containerView;