@fluid-topics/ft-reader-toc 2.1.23 → 2.1.24

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.
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { html, nothing, } from "lit";
8
- import { repeat } from "lit/directives/repeat.js";
8
+ import { map } from "lit/directives/map.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { styleMap } from "lit/directives/style-map.js";
11
11
  import { ifDefined } from "lit/directives/if-defined.js";
@@ -86,7 +86,7 @@ export class FtReaderToc extends withI18n(FtReaderComponent) {
86
86
  <div class="${classMap(classes)}">
87
87
  <ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
88
88
  ${this.renderExpandCollapseAll()}
89
- ${repeat((_a = this.toc) !== null && _a !== void 0 ? _a : [], (node) => node.tocId, (node) => this.renderNode(node))}
89
+ ${map((_a = this.toc) !== null && _a !== void 0 ? _a : [], (node) => this.renderNode(node))}
90
90
  </div>
91
91
  `;
92
92
  }
@@ -158,7 +158,7 @@ export class FtReaderToc extends withI18n(FtReaderComponent) {
158
158
  <div id="${node.tocId}-children"
159
159
  class="ft-reader-toc--node-children"
160
160
  ?hidden=${!isExpanded}>
161
- ${repeat(isExpanded ? node.children : [], (child) => child.tocId, (child) => this.renderNode(child))}
161
+ ${map(isExpanded ? node.children : [], (child) => this.renderNode(child))}
162
162
  </div>
163
163
  ` : nothing}
164
164
  </div>