@salesforcedevs/dx-components 0.10.1-alpha.101 → 0.10.1-alpha.102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "0.10.1-alpha.101",
3
+ "version": "0.10.1-alpha.102",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -10,14 +10,14 @@ import {
10
10
  buildSearchBox,
11
11
  loadAdvancedSearchQueryActions,
12
12
  SearchEngine,
13
- buildSearchStatus,
13
+ // buildSearchStatus,
14
14
  SearchAppState
15
15
  } from "@coveo/headless";
16
16
  import { buildSearchEngine, getSidebarSearchParams } from "utils/coveo";
17
17
  import { RecentSearches } from "utils/recentSearches";
18
18
  import { toJson } from "utils/normalizers";
19
19
  import { Option, PopoverRequestCloseType } from "typings/custom";
20
- import preloadedState from './__tests__/preloadedState';
20
+ import preloadedState from "./__tests__/preloadedState";
21
21
 
22
22
  const SESSION_KEY = "dx-sidebar-search-state";
23
23
 
@@ -28,15 +28,15 @@ const UserRecentSearches = new RecentSearches();
28
28
  const normalizeCoveoAdvancedQueryValue = (version: string): string =>
29
29
  version.split(".").join("\\.");
30
30
 
31
- function executeFirstSearch(engine: SearchEngine) {
32
- return new Promise((resolve) => {
33
- const searchStatus = buildSearchStatus(engine);
34
- searchStatus.subscribe(
35
- () => searchStatus.state.firstSearchExecuted && resolve(true)
36
- );
37
- engine.executeFirstSearch();
38
- });
39
- }
31
+ // function executeFirstSearch(engine: SearchEngine) {
32
+ // return new Promise((resolve) => {
33
+ // const searchStatus = buildSearchStatus(engine);
34
+ // searchStatus.subscribe(
35
+ // () => searchStatus.state.firstSearchExecuted && resolve(true)
36
+ // );
37
+ // engine.executeFirstSearch();
38
+ // });
39
+ // }
40
40
 
41
41
  export default class SidebarSearch extends LightningElement {
42
42
  @api coveoOrganizationId!: string;
@@ -141,7 +141,7 @@ export default class SidebarSearch extends LightningElement {
141
141
  organizationId: this.coveoOrganizationId,
142
142
  publicAccessToken: this.coveoPublicAccessToken,
143
143
  searchHub: this.coveoSearchHub,
144
- preloadedState: preloadedState
144
+ preloadedState: this.preloadedState
145
145
  });
146
146
 
147
147
  if (!this.engine) {
@@ -200,7 +200,7 @@ export default class SidebarSearch extends LightningElement {
200
200
  }
201
201
 
202
202
  if (!isLoading) {
203
- console.log('CHANGING RESULTS');
203
+ console.log("CHANGING RESULTS");
204
204
  this.dispatchOnChangeEvent(results);
205
205
  }
206
206