@fluid-topics/ft-reader-search-in-document 1.2.14 → 1.2.16

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.
@@ -10,7 +10,6 @@ export declare class FtReaderSearchInDocument extends FtReaderSearchInDocument_b
10
10
  constructor();
11
11
  map?: FtMap;
12
12
  private searchInDocumentQuery;
13
- private searchContext?;
14
13
  private searchResults?;
15
14
  private hideResultTitle;
16
15
  private hideResultBreadcrumb;
@@ -89,7 +89,7 @@ class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
89
89
  (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.setSearchInDocumentQuery(e.detail);
90
90
  }}"></ft-search-input>
91
91
  ${this.hideResultsNumber ? nothing : html `
92
- <ft-search-results-number @ft-search-result-click=${(e) => e.stopPropagation()}></ft-search-results-number>
92
+ <ft-search-results-number></ft-search-results-number>
93
93
  `}
94
94
  <ft-search-results ?displayNoResultsMessage=${this.hideResultsNumber}
95
95
  cluster-policy="display-all-results"
@@ -104,9 +104,6 @@ class FtReaderSearchInDocument extends withI18n(FtReaderComponent) {
104
104
  }
105
105
  update(props) {
106
106
  super.update(props);
107
- if (props.has("map") && this.searchContext) {
108
- this.searchContext.clear();
109
- }
110
107
  if (["hideResultTitle", "hideResultBreadcrumb", "hideResultAbstract"].some(p => props.has(p)) && this.searchResults) {
111
108
  this.searchResults.requestUpdate();
112
109
  }
@@ -136,9 +133,6 @@ __decorate([
136
133
  __decorate([
137
134
  redux()
138
135
  ], FtReaderSearchInDocument.prototype, "searchInDocumentQuery", void 0);
139
- __decorate([
140
- query("ft-search-context")
141
- ], FtReaderSearchInDocument.prototype, "searchContext", void 0);
142
136
  __decorate([
143
137
  query("ft-search-results")
144
138
  ], FtReaderSearchInDocument.prototype, "searchResults", void 0);