@fluid-topics/ft-infinite-scroll 2.2.17 → 2.2.19

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.
@@ -267,7 +267,8 @@ export class FtInfiniteScroll extends FtLitElement {
267
267
  return index >= this.items.length ? -1 : index;
268
268
  }
269
269
  getItem(index) {
270
- var _a, _b;
270
+ var _a;
271
+ var _b;
271
272
  return (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`#item-${index}`)) !== null && _b !== void 0 ? _b : this.shadowRoot.querySelector(`#item-0`);
272
273
  }
273
274
  scrollToTarget(index) {
@@ -380,7 +381,8 @@ export class FtInfiniteScroll extends FtLitElement {
380
381
  }
381
382
  }
382
383
  contentAvailableCallback(props) {
383
- var _a, _b;
384
+ var _a;
385
+ var _b;
384
386
  super.contentAvailableCallback(props);
385
387
  const renderedItemIndexes = [...(_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item-container.rendered")) !== null && _b !== void 0 ? _b : []]
386
388
  .map((e) => +e.getAttribute("data-item-index"));