@fluid-topics/ft-reader-breadcrumbs 2.1.18 → 2.1.20

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.
@@ -1,4 +1,4 @@
1
- import { I18nMessageContext } from "@fluid-topics/ft-i18n/build/generator/I18nMessageContext";
1
+ import { I18nMessageContext, } from "@fluid-topics/ft-i18n/build/generator/I18nMessageContext";
2
2
  export const readerBreadcrumbsContext = I18nMessageContext.build("readerBreadcrumbsComponent");
3
3
  export const readerBreadcrumbsDefaultMessages = {
4
4
  navAriaLabel: "Breadcrumb",
@@ -4,20 +4,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing } from "lit";
8
- import { property, query, state } from "lit/decorators.js";
7
+ import { html, nothing, } from "lit";
8
+ import { property, query, state, } from "lit/decorators.js";
9
9
  import { repeat } from "lit/directives/repeat.js";
10
10
  import { when } from "lit/directives/when.js";
11
11
  import { classMap } from "lit/directives/class-map.js";
12
- import { numberProperty, redux } from "@fluid-topics/ft-wc-utils";
12
+ import { numberProperty, redux, } from "@fluid-topics/ft-wc-utils";
13
13
  import { styles } from "./ft-reader-breadcrumbs.styles";
14
14
  import { FtReaderComponent } from "@fluid-topics/ft-reader-context/build/registration";
15
15
  import { FtReaderInternalLink } from "@fluid-topics/ft-reader-internal-link";
16
- import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
16
+ import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
17
17
  import { splitBreadcrumbForMenu } from "./helpers/FtReaderBreadcrumbsMenuHelper";
18
- import { FtFloatingMenu, FtFloatingMenuItem } from "@fluid-topics/ft-floating-menu";
18
+ import { FtFloatingMenu, FtFloatingMenuItem, } from "@fluid-topics/ft-floating-menu";
19
19
  import { withI18n } from "@fluid-topics/ft-i18n";
20
- import { readerBreadcrumbsContext, readerBreadcrumbsDefaultMessages } from "./ReaderBreadcrumbsMessages";
20
+ import { readerBreadcrumbsContext, readerBreadcrumbsDefaultMessages, } from "./ReaderBreadcrumbsMessages";
21
21
  import { FtRipple } from "@fluid-topics/ft-ripple";
22
22
  import { FtSkeleton } from "@fluid-topics/ft-skeleton";
23
23
  export class FtReaderBreadcrumbs extends withI18n(FtReaderComponent) {
@@ -30,7 +30,7 @@ export class FtReaderBreadcrumbs extends withI18n(FtReaderComponent) {
30
30
  willUpdate(props) {
31
31
  var _a, _b, _c;
32
32
  super.willUpdate(props);
33
- if (["tocId", "toc"].some(p => props.has(p)) && this.tocId !== undefined) {
33
+ if (["tocId", "toc"].some((p) => props.has(p)) && this.tocId !== undefined) {
34
34
  this.breadcrumb = (_b = (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.buildBreadcrumb(this.tocId)) !== null && _b !== void 0 ? _b : [];
35
35
  }
36
36
  if (props.has("breadcrumb")) {
@@ -174,7 +174,7 @@ __decorate([
174
174
  __decorate([
175
175
  redux({
176
176
  store: "reader",
177
- selector: (state) => state.translation.isLoading
177
+ selector: (state) => state.translation.isLoading,
178
178
  })
179
179
  ], FtReaderBreadcrumbs.prototype, "translationLoading", void 0);
180
180
  __decorate([