@coveo/quantic 3.30.3-pre.06fbdac577 → 3.30.3-pre.0ac5bd8dae
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/force-app/main/default/lwc/quanticUtils/markdownUtils.js +16 -3
- package/force-app/main/default/lwc/quanticUtils/quanticUtils.js +105 -17
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/knowledge/generated-answer/headless-answerapi-generated-answer-mocks.d.ts +25 -743
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-selectors.d.ts +51 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/dictionary-field-context/dictionary-field-context-selectors.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/excerpt-length/excerpt-length-selectors.d.ts +26 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facet-options/facet-options-selectors.d.ts +7 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/folding/folding-selectors.d.ts +9 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-request.d.ts +16 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/insight-search/insight-search-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +25 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort-criteria/sort-criteria-selectors.d.ts +26 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/factories/build-factory.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/utils.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -10
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -9
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +7 -7
- package/package.json +2 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ConfigurationState } from './configuration-state.js';
|
|
2
|
+
export declare const selectLocale: ((state: {
|
|
3
|
+
configuration: ConfigurationState;
|
|
4
|
+
}) => string) & {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: string) => string;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: string) => string) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => string;
|
|
16
|
+
dependencies: [(state: {
|
|
17
|
+
configuration: ConfigurationState;
|
|
18
|
+
}) => string];
|
|
19
|
+
recomputations: () => number;
|
|
20
|
+
resetRecomputations: () => void;
|
|
21
|
+
dependencyRecomputations: () => number;
|
|
22
|
+
resetDependencyRecomputations: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
26
|
+
};
|
|
27
|
+
export declare const selectTimezone: ((state: {
|
|
28
|
+
configuration: ConfigurationState;
|
|
29
|
+
}) => string) & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
resultsCount: () => number;
|
|
32
|
+
resetResultsCount: () => void;
|
|
33
|
+
} & {
|
|
34
|
+
resultFunc: (resultFuncArgs_0: string) => string;
|
|
35
|
+
memoizedResultFunc: ((resultFuncArgs_0: string) => string) & {
|
|
36
|
+
clearCache: () => void;
|
|
37
|
+
resultsCount: () => number;
|
|
38
|
+
resetResultsCount: () => void;
|
|
39
|
+
};
|
|
40
|
+
lastResult: () => string;
|
|
41
|
+
dependencies: [(state: {
|
|
42
|
+
configuration: ConfigurationState;
|
|
43
|
+
}) => string];
|
|
44
|
+
recomputations: () => number;
|
|
45
|
+
resetRecomputations: () => void;
|
|
46
|
+
dependencyRecomputations: () => number;
|
|
47
|
+
resetDependencyRecomputations: () => void;
|
|
48
|
+
} & {
|
|
49
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
50
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
51
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DictionaryFieldContextState } from './dictionary-field-context-state.js';
|
|
2
|
+
export declare const selectDictionaryFieldContext: (state: {
|
|
3
|
+
dictionaryFieldContext?: DictionaryFieldContextState;
|
|
4
|
+
}) => import("./dictionary-field-context-state.js").DictionaryFieldContextPayload | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ExcerptLengthState } from './excerpt-length-state.js';
|
|
2
|
+
export declare const selectExcerptLength: ((state: {
|
|
3
|
+
excerptLength?: ExcerptLengthState;
|
|
4
|
+
}) => number | undefined) & {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: number | undefined) => number | undefined;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: number | undefined) => number | undefined) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => number | undefined;
|
|
16
|
+
dependencies: [(state: {
|
|
17
|
+
excerptLength?: ExcerptLengthState;
|
|
18
|
+
}) => number | undefined];
|
|
19
|
+
recomputations: () => number;
|
|
20
|
+
resetRecomputations: () => void;
|
|
21
|
+
dependencyRecomputations: () => number;
|
|
22
|
+
resetDependencyRecomputations: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
26
|
+
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import type { FacetOptionsSection } from '../../state/state-sections.js';
|
|
2
2
|
export declare const isFacetEnabledSelector: (state: FacetOptionsSection, id: string) => boolean;
|
|
3
|
+
export declare const selectFacetOptions: (state: {
|
|
4
|
+
facetOptions?: {
|
|
5
|
+
freezeFacetOrder?: boolean;
|
|
6
|
+
};
|
|
7
|
+
}) => {
|
|
8
|
+
freezeFacetOrder: boolean;
|
|
9
|
+
} | undefined;
|
|
@@ -20,7 +20,22 @@ export declare const constructAnswerAPIQueryParams: (state: StreamAnswerAPIState
|
|
|
20
20
|
capture?: boolean;
|
|
21
21
|
source?: string[];
|
|
22
22
|
};
|
|
23
|
+
facetOptions?: {
|
|
24
|
+
freezeFacetOrder: boolean;
|
|
25
|
+
} | undefined;
|
|
26
|
+
sortCriteria: string | undefined;
|
|
27
|
+
dictionaryFieldContext?: import("../dictionary-field-context/dictionary-field-context-state.js").DictionaryFieldContextPayload | undefined;
|
|
28
|
+
excerptLength?: number | undefined;
|
|
29
|
+
filterField?: string | undefined;
|
|
30
|
+
childField?: string | undefined;
|
|
31
|
+
parentField?: string | undefined;
|
|
32
|
+
filterFieldRange?: number | undefined;
|
|
33
|
+
actionsHistory: import("../../api/analytics/coveo.analytics/history-store.js").HistoryElement[];
|
|
34
|
+
referrer: string;
|
|
35
|
+
debug?: boolean | undefined;
|
|
23
36
|
tab: string;
|
|
37
|
+
locale: string;
|
|
38
|
+
timezone: string;
|
|
24
39
|
numberOfResults?: number | undefined;
|
|
25
40
|
firstResult?: number | undefined;
|
|
26
41
|
queryCorrection?: {
|
|
@@ -60,6 +75,7 @@ export declare const constructAnswerAPIQueryParams: (state: StreamAnswerAPIState
|
|
|
60
75
|
};
|
|
61
76
|
};
|
|
62
77
|
context?: import("../context/context-state.js").ContextPayload | undefined;
|
|
78
|
+
enableQuerySyntax?: boolean | undefined;
|
|
63
79
|
lq?: string | undefined;
|
|
64
80
|
dq?: string | undefined;
|
|
65
81
|
cq?: string | undefined;
|
|
@@ -4,7 +4,7 @@ import type { InsightQueryRequest } from '../../api/service/insight/query/query-
|
|
|
4
4
|
import type { CategoryFacetSection, ConfigurationSection, ContextSection, DateFacetSection, DidYouMeanSection, FacetSection, FieldsSection, FoldingSection, InsightCaseContextSection, InsightConfigurationSection, NumericFacetSection, PaginationSection, QuerySection, QuerySetSection, QuerySuggestionSection, SearchSection, SortSection, TabSection } from '../../state/state-sections.js';
|
|
5
5
|
import type { InsightAction as LegacyInsightAction } from '../analytics/analytics-utils.js';
|
|
6
6
|
import type { FetchQuerySuggestionsActionCreatorPayload, FetchQuerySuggestionsThunkReturn } from '../query-suggest/query-suggest-actions.js';
|
|
7
|
-
import {
|
|
7
|
+
import type { ExecuteSearchThunkReturn, SearchAction } from '../search/search-actions.js';
|
|
8
8
|
import { type MappedSearchRequest } from '../search/search-mappings.js';
|
|
9
9
|
export type StateNeededByExecuteSearch = ConfigurationSection & InsightConfigurationSection & Partial<InsightCaseContextSection & SearchSection & QuerySection & FacetSection & NumericFacetSection & DateFacetSection & CategoryFacetSection & PaginationSection & TabSection & FieldsSection & DidYouMeanSection & SortSection & FoldingSection & ContextSection>;
|
|
10
10
|
export declare const fetchFromAPI: (client: InsightAPIClient, state: StateNeededByExecuteSearch, { request, mappings }: MappedSearchRequest<InsightQueryRequest>, options?: SearchOptions) => Promise<{
|
|
@@ -24,3 +24,28 @@ export declare const selectQuery: ((state: {
|
|
|
24
24
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
25
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
26
26
|
};
|
|
27
|
+
export declare const selectEnableQuerySyntax: ((state: {
|
|
28
|
+
query?: QueryState;
|
|
29
|
+
}) => boolean | undefined) & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
resultsCount: () => number;
|
|
32
|
+
resetResultsCount: () => void;
|
|
33
|
+
} & {
|
|
34
|
+
resultFunc: (resultFuncArgs_0: boolean | undefined) => boolean | undefined;
|
|
35
|
+
memoizedResultFunc: ((resultFuncArgs_0: boolean | undefined) => boolean | undefined) & {
|
|
36
|
+
clearCache: () => void;
|
|
37
|
+
resultsCount: () => number;
|
|
38
|
+
resetResultsCount: () => void;
|
|
39
|
+
};
|
|
40
|
+
lastResult: () => boolean | undefined;
|
|
41
|
+
dependencies: [(state: {
|
|
42
|
+
query?: QueryState;
|
|
43
|
+
}) => boolean | undefined];
|
|
44
|
+
recomputations: () => number;
|
|
45
|
+
resetRecomputations: () => void;
|
|
46
|
+
dependencyRecomputations: () => number;
|
|
47
|
+
resetDependencyRecomputations: () => void;
|
|
48
|
+
} & {
|
|
49
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
50
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
51
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SortCriteriaState } from './sort-criteria-state.js';
|
|
2
|
+
export declare const selectSortCriteria: ((state: {
|
|
3
|
+
sortCriteria?: SortCriteriaState;
|
|
4
|
+
}) => string | undefined) & {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
resultsCount: () => number;
|
|
7
|
+
resetResultsCount: () => void;
|
|
8
|
+
} & {
|
|
9
|
+
resultFunc: (resultFuncArgs_0: string | undefined) => string | undefined;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: string | undefined) => string | undefined) & {
|
|
11
|
+
clearCache: () => void;
|
|
12
|
+
resultsCount: () => number;
|
|
13
|
+
resetResultsCount: () => void;
|
|
14
|
+
};
|
|
15
|
+
lastResult: () => string | undefined;
|
|
16
|
+
dependencies: [(state: {
|
|
17
|
+
sortCriteria?: SortCriteriaState;
|
|
18
|
+
}) => string | undefined];
|
|
19
|
+
recomputations: () => number;
|
|
20
|
+
resetRecomputations: () => void;
|
|
21
|
+
dependencyRecomputations: () => number;
|
|
22
|
+
resetDependencyRecomputations: () => void;
|
|
23
|
+
} & {
|
|
24
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
25
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
26
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import { type CommerceEngine } from '../../../app/commerce-engine/commerce-engine.js';
|
|
3
3
|
import { SolutionType } from '../types/controller-constants.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { BakedInControllers } from '../types/controller-definitions.js';
|
|
5
5
|
import type { InferControllersMapFromDefinition } from '../types/controller-inference.js';
|
|
6
6
|
import type { CommerceControllerDefinitionsMap, CommerceEngineDefinitionOptions, FetchStaticStateParameters, HydrateStaticStateParameters } from '../types/engine.js';
|
|
7
7
|
/**
|
|
@@ -15,7 +15,7 @@ export interface SSRCommerceEngine extends CommerceEngine {
|
|
|
15
15
|
*/
|
|
16
16
|
waitForRequestCompletedAction(): Promise<Action>[];
|
|
17
17
|
}
|
|
18
|
-
export declare const buildFactory: <TControllerDefinitions extends CommerceControllerDefinitionsMap>(controllerDefinitions:
|
|
18
|
+
export declare const buildFactory: <TControllerDefinitions extends CommerceControllerDefinitionsMap>(controllerDefinitions: TControllerDefinitions, options: CommerceEngineDefinitionOptions<TControllerDefinitions>) => <TSolutionType extends SolutionType>(solutionType: TSolutionType) => (...[buildOptions]: FetchStaticStateParameters<TControllerDefinitions, TSolutionType> | HydrateStaticStateParameters<TControllerDefinitions, TSolutionType>) => Promise<{
|
|
19
19
|
engine: SSRCommerceEngine;
|
|
20
20
|
controllers: InferControllersMapFromDefinition<TControllerDefinitions, TSolutionType> & BakedInControllers;
|
|
21
21
|
}>;
|
|
@@ -27,3 +27,6 @@ export declare function createWaitForActionMiddlewareForRecommendation<TAction e
|
|
|
27
27
|
promise: Promise<TAction>;
|
|
28
28
|
middleware: Middleware;
|
|
29
29
|
};
|
|
30
|
+
export declare function debounce<T extends (...args: unknown[]) => unknown>(func: T, wait: number, options?: {
|
|
31
|
+
isImmediate?: boolean;
|
|
32
|
+
}): T;
|