@fluid-topics/ft-search-context 1.2.22 → 1.2.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.
|
@@ -239,7 +239,7 @@ export class FtSearchStateManager {
|
|
|
239
239
|
return this.localesDebouncer.run(async () => this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales));
|
|
240
240
|
}
|
|
241
241
|
async fetchSearchData(request) {
|
|
242
|
-
var _a, _b;
|
|
242
|
+
var _a, _b, _c;
|
|
243
243
|
try {
|
|
244
244
|
(_a = this.cancelableSearch) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
245
245
|
this.store.actions.paging(undefined);
|
|
@@ -264,8 +264,9 @@ export class FtSearchStateManager {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
catch (e) {
|
|
267
|
-
if (!(e instanceof CanceledPromiseError)
|
|
268
|
-
|
|
267
|
+
if (!(e instanceof CanceledPromiseError)) {
|
|
268
|
+
console.error(e);
|
|
269
|
+
(_c = this.errorHandler) === null || _c === void 0 ? void 0 : _c.call(this, e);
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
272
|
}
|
|
@@ -16,14 +16,14 @@ export class FtSearchService extends FtServiceWithCache {
|
|
|
16
16
|
metadataFilters: this.sortFilters(request.metadataFilters),
|
|
17
17
|
facets: [...request.facets].sort((a, b) => a.id.localeCompare(b.id)),
|
|
18
18
|
};
|
|
19
|
-
return this.cache.get(this.hash(sortedRequest), async () => (await this.awaitApi).search(request), 2 * 60 * 1000);
|
|
19
|
+
return this.cache.get("search-" + this.hash(sortedRequest), async () => (await this.awaitApi).search(request), 2 * 60 * 1000);
|
|
20
20
|
}
|
|
21
21
|
async launchSuggest(request) {
|
|
22
22
|
const sortedRequest = {
|
|
23
23
|
...request,
|
|
24
24
|
metadataFilters: this.sortFilters(request.metadataFilters)
|
|
25
25
|
};
|
|
26
|
-
return this.cache.get(this.hash(sortedRequest), async () => (await this.awaitApi).getSuggestions(request), 2 * 60 * 1000);
|
|
26
|
+
return this.cache.get("suggest-" + this.hash(sortedRequest), async () => (await this.awaitApi).getSuggestions(request), 2 * 60 * 1000);
|
|
27
27
|
}
|
|
28
28
|
async getAvailableSearchLocales() {
|
|
29
29
|
return this.cache.get("available-locales", async () => (await this.awaitApi).getAvailableSearchLocales());
|
|
@@ -34,7 +34,7 @@ export class FtSearchService extends FtServiceWithCache {
|
|
|
34
34
|
...f,
|
|
35
35
|
valueFilter: {
|
|
36
36
|
...f.valueFilter,
|
|
37
|
-
values: f.valueFilter.values.sort((a, b) => a.localeCompare(b))
|
|
37
|
+
values: [...f.valueFilter.values].sort((a, b) => a.localeCompare(b))
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
.sort((a, b) => a.key.localeCompare(b.key));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-context",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"description": "Context block for integrated search components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.2.24",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.2.24",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluid-topics/public-api": "1.0.82"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "cc7e47575395833158a24098949b74db4b3cf4d5"
|
|
30
30
|
}
|