@fluid-topics/ft-search-context 1.4.3 → 1.4.4
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/registration.js
CHANGED
|
@@ -4,7 +4,7 @@ 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 { applyMixinOnce, FtLitElementRedux, hasChanged } from "@fluid-topics/ft-wc-utils";
|
|
7
|
+
import { applyMixinOnce, FtLitElementRedux, hasChanged, } from "@fluid-topics/ft-wc-utils";
|
|
8
8
|
import { state } from "lit/decorators.js";
|
|
9
9
|
export * from "./store/model";
|
|
10
10
|
export { FtSearchStateManager } from "./store/FtSearchStateManager";
|
|
@@ -15,6 +15,7 @@ export declare class FtSearchStateManager extends FtStateManager {
|
|
|
15
15
|
protected readonly searchWatcher: ReduxWatcher<FtSearchPageState, FtSearchRequest>;
|
|
16
16
|
protected readonly suggestWatcher: ReduxWatcher<FtSearchPageState, FtSuggestRequest>;
|
|
17
17
|
constructor(store: FtReduxStore<FtSearchPageState, FtSearchPageStateReducers>, service?: FtSearchService);
|
|
18
|
+
onNewNeededRequest: (neededRequest: string) => void;
|
|
18
19
|
initService(): Promise<boolean>;
|
|
19
20
|
setQuery(query: string): void;
|
|
20
21
|
setContentLocale(contentLocale?: string): string | undefined;
|
|
@@ -16,6 +16,11 @@ export class FtSearchStateManager extends FtStateManager {
|
|
|
16
16
|
this.store = store;
|
|
17
17
|
this.ignoreEmptyQuery = false;
|
|
18
18
|
this.openExternalDocumentInNewTab = false;
|
|
19
|
+
this.onNewNeededRequest = (neededRequest) => {
|
|
20
|
+
if (neededRequest == FtSearchStateResourceRequest.CLUSTERED_SEARCH) {
|
|
21
|
+
this.launchSearch(this.buildSearchRequest(this.store.getState()));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
19
24
|
this.localesDebouncer = new Debouncer(10);
|
|
20
25
|
this.searchDebouncer = new Debouncer(100);
|
|
21
26
|
this.launchSearch = (request) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-context",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
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.4.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.4.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.4.4",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.4.4",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@fluid-topics/public-api": "1.0.114"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "fdd626e6a7b6cfef613b7060c1ac2ece1073a1da"
|
|
30
30
|
}
|