@fluid-topics/ft-search-results-spellcheck 2.0.27 → 2.0.28

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/build/define.js CHANGED
@@ -1,3 +1,3 @@
1
- import { customElement } from "@fluid-topics/ft-wc-utils";
2
- import { FtSearchResultsSpellcheck } from "./ft-search-results-spellcheck";
3
- customElement("ft-search-results-spellcheck")(FtSearchResultsSpellcheck);
1
+ import { customElements } from "@fluid-topics/ft-wc-utils";
2
+ import definitions from "./definitions";
3
+ customElements(definitions);
@@ -0,0 +1,5 @@
1
+ import { FtSearchResultsSpellcheck } from "./ft-search-results-spellcheck";
2
+ declare const _default: {
3
+ "ft-search-results-spellcheck": typeof FtSearchResultsSpellcheck;
4
+ };
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { FtSearchResultsSpellcheck } from "./ft-search-results-spellcheck";
2
+ export default {
3
+ "ft-search-results-spellcheck": FtSearchResultsSpellcheck,
4
+ };
@@ -9,7 +9,7 @@ export declare class FtSearchResultsSpellcheck extends FtSearchResultsSpellcheck
9
9
  static elementDefinitions: ElementDefinitionsMap;
10
10
  static styles: import("lit").CSSResult;
11
11
  request?: FtSearchRequest;
12
- autocorrect?: FtSpellcheck;
12
+ spellcheckAutocorrect?: FtSpellcheck;
13
13
  autocorrectLink?: string;
14
14
  neededSearchRequests: FtSearchStateResourceRequest[];
15
15
  constructor();
@@ -21,7 +21,7 @@ export class FtSearchResultsSpellcheck extends withI18n(FtSearchComponent) {
21
21
  this.addI18nContext(spellcheck, defaultSpellcheckMessages);
22
22
  }
23
23
  render() {
24
- if (this.autocorrect && this.request && this.autocorrectLink) {
24
+ if (this.spellcheckAutocorrect && this.request && this.autocorrectLink) {
25
25
  return html `
26
26
  <div class="ft-search-results-spellcheck--spellcheck">
27
27
  <div>
@@ -30,7 +30,7 @@ export class FtSearchResultsSpellcheck extends withI18n(FtSearchComponent) {
30
30
  </ft-typography>
31
31
  <a href="${this.autocorrectLink}">
32
32
  <ft-typography variant="subtitle1" class="link ft-search-results-spellcheck--new-query">
33
- ${this.autocorrect.suggestedQuery}
33
+ ${this.spellcheckAutocorrect.suggestedQuery}
34
34
  </ft-typography>
35
35
  </a>
36
36
  </div>
@@ -46,8 +46,8 @@ export class FtSearchResultsSpellcheck extends withI18n(FtSearchComponent) {
46
46
  update(props) {
47
47
  super.update(props);
48
48
  if (["request", "autocorrect"].some((k) => props.has(k))
49
- && this.request && this.autocorrect) {
50
- this.autocorrectLink = SearchPlaceConverterProvider.get().serialize({ ...this.request, query: this.autocorrect.suggestedQuery });
49
+ && this.request && this.spellcheckAutocorrect) {
50
+ this.autocorrectLink = SearchPlaceConverterProvider.get().serialize({ ...this.request, query: this.spellcheckAutocorrect.suggestedQuery });
51
51
  }
52
52
  }
53
53
  }
@@ -60,7 +60,7 @@ __decorate([
60
60
  ], FtSearchResultsSpellcheck.prototype, "request", void 0);
61
61
  __decorate([
62
62
  redux({ store: "search", selector: (s) => s.spellcheck })
63
- ], FtSearchResultsSpellcheck.prototype, "autocorrect", void 0);
63
+ ], FtSearchResultsSpellcheck.prototype, "spellcheckAutocorrect", void 0);
64
64
  __decorate([
65
65
  state()
66
66
  ], FtSearchResultsSpellcheck.prototype, "autocorrectLink", void 0);