@fluid-topics/ft-search-context 2.0.26 → 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 { FtSearchContext } from "./ft-search-context";
3
- customElement("ft-search-context")(FtSearchContext);
1
+ import { customElements } from "@fluid-topics/ft-wc-utils";
2
+ import definitions from "./definitions";
3
+ customElements(definitions);
@@ -0,0 +1,5 @@
1
+ import { FtSearchContext } from "./ft-search-context";
2
+ declare const _default: {
3
+ "ft-search-context": typeof FtSearchContext;
4
+ };
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { FtSearchContext } from "./ft-search-context";
2
+ export default {
3
+ "ft-search-context": FtSearchContext,
4
+ };
@@ -24,7 +24,7 @@ export declare class FtSearchContext extends FtLitElementRedux implements FtSear
24
24
  otherQueryParams: Record<string, string>;
25
25
  private request?;
26
26
  private paging?;
27
- private autocorrect?;
27
+ private spellcheckAutocorrect?;
28
28
  private _appIntegrationInfoReady;
29
29
  searchServiceProvider?: () => FtSearchService;
30
30
  private _stateManager?;
@@ -118,7 +118,7 @@ export class FtSearchContext extends FtLitElementRedux {
118
118
  this.dispatchEvent(new SearchRequestChangeEvent(this.request));
119
119
  }
120
120
  if (props.has("paging") && this.paging !== undefined) {
121
- this.dispatchEvent(new SearchResultsChangeEvent(this.request, this.paging, this.autocorrect));
121
+ this.dispatchEvent(new SearchResultsChangeEvent(this.request, this.paging, this.spellcheckAutocorrect));
122
122
  }
123
123
  }
124
124
  registerComponent(e) {
@@ -198,7 +198,7 @@ __decorate([
198
198
  ], FtSearchContext.prototype, "paging", void 0);
199
199
  __decorate([
200
200
  redux({ store: "search", selector: (s) => s.spellcheck })
201
- ], FtSearchContext.prototype, "autocorrect", void 0);
201
+ ], FtSearchContext.prototype, "spellcheckAutocorrect", void 0);
202
202
  __decorate([
203
203
  redux({ store: ftAppInfoStore.name, selector: (s) => s.apiIntegrationIdentifier !== undefined && s.apiIntegrationAppVersion !== undefined })
204
204
  ], FtSearchContext.prototype, "_appIntegrationInfoReady", void 0);