@fluid-topics/ft-search-context 1.3.55 → 1.3.57

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.
@@ -1,7 +1,7 @@
1
- import { FtSearchStateResourceRequest } from "./model";
2
- import { cancelable, CanceledPromiseError, Debouncer, FtStateManager, watch } from "@fluid-topics/ft-wc-utils";
3
- import { createSearchPageStore } from "./redux";
4
- import { FtSearchKeywordMatch, FtSearchScope, FtVirtualField } from "@fluid-topics/public-api";
1
+ import { FtSearchStateResourceRequest, } from "./model";
2
+ import { cancelable, CanceledPromiseError, Debouncer, FtStateManager, watch, } from "@fluid-topics/ft-wc-utils";
3
+ import { createSearchPageStore, } from "./redux";
4
+ import { FtSearchKeywordMatch, FtSearchScope, FtVirtualField, } from "@fluid-topics/public-api";
5
5
  import { FtSearchService } from "./utils/FtSearchService";
6
6
  export const searchInDocumentTitlesOnlySelector = (s) => s.request.virtualField === FtVirtualField.TITLE_ONLY
7
7
  && s.request.scope === FtSearchScope.DOCUMENTS;
@@ -133,9 +133,11 @@ export class FtSearchStateManager extends FtStateManager {
133
133
  this.store.actions.setRequestVirtualField(FtVirtualField.EVERYWHERE);
134
134
  this.store.actions.setRequestScope(FtSearchScope.DEFAULT);
135
135
  }
136
+ this.store.actions.setPageNumber(1);
136
137
  }
137
138
  setKeywordMatch(matchAllKeywords) {
138
139
  this.store.actions.setKeywordMatch(matchAllKeywords);
140
+ this.store.actions.setPageNumber(1);
139
141
  }
140
142
  setVirtualField(virtualField) {
141
143
  this.store.actions.setRequestVirtualField(virtualField);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-context",
3
- "version": "1.3.55",
3
+ "version": "1.3.57",
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.3.55",
23
- "@fluid-topics/ft-wc-utils": "1.3.55",
22
+ "@fluid-topics/ft-app-context": "1.3.57",
23
+ "@fluid-topics/ft-wc-utils": "1.3.57",
24
24
  "lit": "3.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.113"
28
28
  },
29
- "gitHead": "4b1a60c10c8b8d68e0b9075038c0508a94ff7d38"
29
+ "gitHead": "8090592342a99d25739c496504682af62fb1821a"
30
30
  }