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