@coveo/quantic 3.43.6 → 3.44.0
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/docs/out/quantic-docs.json +20 -2
- package/force-app/main/default/lwc/quanticTimeframeFacet/__tests__/quanticTimeframeFacet.test.js +22 -0
- package/force-app/main/default/lwc/quanticTimeframeFacet/quanticTimeframeFacet.js +10 -2
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +15 -15
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/history-store.d.ts +9 -33
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +17 -17
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +16 -16
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +14 -14
- package/package.json +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/cookie.d.ts +0 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/detector.d.ts +0 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/analytics/coveo.analytics/storage.d.ts +0 -24
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { HistoryStore as CoveoAnalyticsHistoryStore } from 'coveo.analytics/dist/esm/history.mjs';
|
|
2
|
+
import type { WebStorage } from 'coveo.analytics/dist/esm/storage.mjs';
|
|
3
|
+
export type { HistoryElement } from 'coveo.analytics/dist/esm/history.mjs';
|
|
4
|
+
/**
|
|
5
|
+
* Headless shares a single history store across the engine, whereas coveo.analytics exposes a
|
|
6
|
+
* plain class. Subclassing keeps `HistoryStore` usable as both a value and a type at the existing
|
|
7
|
+
* call sites while the behavior lives in coveo.analytics.
|
|
8
|
+
*/
|
|
9
|
+
export default class HistoryStore extends CoveoAnalyticsHistoryStore {
|
|
6
10
|
private static instance;
|
|
7
11
|
static getInstance(store?: WebStorage): HistoryStore;
|
|
8
|
-
private store;
|
|
9
12
|
private constructor();
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Synchronous method is deprecated, use addElementAsync instead. This method will NOT work with react-native.
|
|
12
|
-
*/
|
|
13
|
-
addElement(elem: HistoryElement): void;
|
|
14
|
-
addElementAsync(elem: HistoryElement): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Synchronous method is deprecated, use getHistoryAsync instead. This method will NOT work with react-native.
|
|
17
|
-
*/
|
|
18
|
-
getHistory(): HistoryElement[];
|
|
19
|
-
getHistoryAsync(): Promise<HistoryElement[]>;
|
|
20
|
-
private getHistoryWithInternalTime;
|
|
21
|
-
private getHistoryWithInternalTimeAsync;
|
|
22
|
-
setHistory(history: HistoryElement[]): void;
|
|
23
|
-
clear(): void;
|
|
24
|
-
getMostRecentElement(): HistoryElement | null;
|
|
25
|
-
private cropQueryElement;
|
|
26
|
-
private isValidEntry;
|
|
27
|
-
private stripInternalTime;
|
|
28
|
-
private stripEmptyQuery;
|
|
29
|
-
private stripEmptyQueries;
|
|
30
13
|
}
|
|
31
|
-
export interface HistoryElement {
|
|
32
|
-
name: string;
|
|
33
|
-
value?: string;
|
|
34
|
-
time: string;
|
|
35
|
-
internalTime?: number;
|
|
36
|
-
}
|
|
37
|
-
export default HistoryStore;
|
|
@@ -68,7 +68,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, eve
|
|
|
68
68
|
source?: string[];
|
|
69
69
|
};
|
|
70
70
|
excerptLength?: number;
|
|
71
|
-
actionsHistory?: import("
|
|
71
|
+
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[];
|
|
72
72
|
authentication?: string;
|
|
73
73
|
}>>;
|
|
74
74
|
export {};
|
|
@@ -69,7 +69,7 @@ export declare const buildSearchRequest: (state: StateNeededBySearchRequest, nav
|
|
|
69
69
|
source?: string[];
|
|
70
70
|
};
|
|
71
71
|
excerptLength?: number;
|
|
72
|
-
actionsHistory?: import("
|
|
72
|
+
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[];
|
|
73
73
|
authentication?: string;
|
|
74
74
|
}>>;
|
|
75
75
|
export declare function getNumberOfResultsWithinIndexLimit(state: StateNeededBySearchRequest): number | undefined;
|
|
@@ -51,7 +51,7 @@ export declare function buildMockSearchRequest(config?: Partial<SearchRequest>):
|
|
|
51
51
|
source?: string[];
|
|
52
52
|
};
|
|
53
53
|
excerptLength?: number;
|
|
54
|
-
actionsHistory?: import("
|
|
54
|
+
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[];
|
|
55
55
|
authentication?: string;
|
|
56
56
|
generateAutomaticFacets?: {
|
|
57
57
|
desiredCount: number;
|