@coveo/quantic 3.11.1 → 3.12.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/force-app/main/default/lwc/quanticBreadcrumbManager/__tests__/quanticBreadcrumbManager.test.js +326 -57
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/fixture.ts +76 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/pageObject.ts +282 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts +167 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/quanticBreadcrumbManager.html +10 -10
- package/force-app/main/default/lwc/quanticPager/e2e/fixture.ts +4 -4
- package/force-app/main/default/lwc/quanticTab/__tests__/quanticTab.test.js +287 -0
- package/force-app/main/default/lwc/quanticTab/e2e/fixture.ts +62 -0
- package/force-app/main/default/lwc/quanticTab/e2e/pageObject.ts +67 -0
- package/force-app/main/default/lwc/quanticTab/e2e/quanticTab.e2e.ts +77 -0
- package/force-app/main/default/lwc/quanticTab/quanticTab.html +1 -1
- package/force-app/main/default/lwc/quanticTabBar/__tests__/quanticTabBar.test.js +331 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/fixture.ts +61 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/pageObject.ts +80 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts +173 -0
- package/force-app/main/default/lwc/quanticTabBar/quanticTabBar.html +30 -8
- package/force-app/main/default/lwc/quanticTabBar/quanticTabBar.js +5 -4
- package/force-app/main/default/lwc/quanticUtils/__tests__/markdownUtils.test.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +5 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search-api-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/case-assist-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/insight-params.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/kind.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/undoable.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sub-controller/headless-sub-controller.ssr.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/example-deleteme-headless-case-context.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/actions-history/ipx-actions-history-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-utils.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/parameters/parameters-serializer.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-analytics-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/history/history-actions.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/pipeline/select-pipeline.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/question-answering/question-answering-document-id.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-actions.d.ts +42 -42
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.d.ts +42 -43
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-mappings.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-hub/search-hub-selectors.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/selectors/commerce-selectors.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/tsdoc-metadata.json +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/compare-utils.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/utils.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/validate-payload.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +7 -7
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +6 -6
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +5 -5
- package/force-app/main/default/staticresources/marked/marked.min.js +3 -3
- package/package.json +6 -10
- /package/force-app/main/default/lwc/quanticPager/e2e/{pagerObject.ts → pageObject.ts} +0 -0
|
@@ -5,64 +5,64 @@ import { ConfigurationSection } from '../../state/state-sections.js';
|
|
|
5
5
|
import { AutomaticFacetRequest } from '../facets/automatic-facet-set/interfaces/request.js';
|
|
6
6
|
type StateNeededBySearchRequest = ConfigurationSection & Partial<SearchAppState>;
|
|
7
7
|
export declare const buildSearchRequest: (state: StateNeededBySearchRequest, navigatorContext: NavigatorContext, eventDescription?: EventDescription) => Promise<import("./search-mappings.js").MappedSearchRequest<{
|
|
8
|
-
pipelineRuleParameters?: import("../../api/search/search-api-params.js").PipelineRuleParameters
|
|
8
|
+
pipelineRuleParameters?: import("../../api/search/search-api-params.js").PipelineRuleParameters;
|
|
9
9
|
generateAutomaticFacets?: {
|
|
10
10
|
desiredCount: number;
|
|
11
|
-
numberOfValues?: number
|
|
12
|
-
currentFacets?: AutomaticFacetRequest[]
|
|
13
|
-
}
|
|
14
|
-
filterField?: string
|
|
15
|
-
childField?: string
|
|
16
|
-
parentField?: string
|
|
17
|
-
filterFieldRange?: number
|
|
18
|
-
facetOptions?: import("../facet-options/facet-options.js").FacetOptions
|
|
19
|
-
numberOfResults?: number
|
|
20
|
-
firstResult?: number
|
|
21
|
-
facets?: import("../facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[]
|
|
22
|
-
cq?: string
|
|
11
|
+
numberOfValues?: number;
|
|
12
|
+
currentFacets?: AutomaticFacetRequest[];
|
|
13
|
+
};
|
|
14
|
+
filterField?: string;
|
|
15
|
+
childField?: string;
|
|
16
|
+
parentField?: string;
|
|
17
|
+
filterFieldRange?: number;
|
|
18
|
+
facetOptions?: import("../facet-options/facet-options.js").FacetOptions;
|
|
19
|
+
numberOfResults?: number;
|
|
20
|
+
firstResult?: number;
|
|
21
|
+
facets?: import("../facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[];
|
|
22
|
+
cq?: string;
|
|
23
23
|
queryCorrection?: {
|
|
24
|
-
enabled?: boolean
|
|
24
|
+
enabled?: boolean;
|
|
25
25
|
options?: {
|
|
26
|
-
automaticallyCorrect?: "never" | "whenNoResults"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
enableDidYouMean?: boolean
|
|
26
|
+
automaticallyCorrect?: "never" | "whenNoResults";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
enableDidYouMean?: boolean;
|
|
30
30
|
url: string;
|
|
31
31
|
accessToken: string;
|
|
32
32
|
organizationId: string;
|
|
33
|
-
q?: string
|
|
34
|
-
aq?: string
|
|
35
|
-
lq?: string
|
|
36
|
-
dq?: string
|
|
37
|
-
sortCriteria?: string
|
|
38
|
-
context?: Record<string, string | string[]
|
|
39
|
-
dictionaryFieldContext?: Record<string, string
|
|
40
|
-
enableQuerySyntax?: boolean
|
|
41
|
-
fieldsToInclude?: string[]
|
|
42
|
-
pipeline?: string
|
|
43
|
-
searchHub?: string
|
|
44
|
-
debug?: boolean
|
|
45
|
-
locale?: string
|
|
33
|
+
q?: string;
|
|
34
|
+
aq?: string;
|
|
35
|
+
lq?: string;
|
|
36
|
+
dq?: string;
|
|
37
|
+
sortCriteria?: string;
|
|
38
|
+
context?: Record<string, string | string[]>;
|
|
39
|
+
dictionaryFieldContext?: Record<string, string>;
|
|
40
|
+
enableQuerySyntax?: boolean;
|
|
41
|
+
fieldsToInclude?: string[];
|
|
42
|
+
pipeline?: string;
|
|
43
|
+
searchHub?: string;
|
|
44
|
+
debug?: boolean;
|
|
45
|
+
locale?: string;
|
|
46
46
|
tab: string;
|
|
47
47
|
referrer: string | null;
|
|
48
48
|
timezone: string;
|
|
49
49
|
analytics?: {
|
|
50
|
-
actionCause?: string
|
|
51
|
-
customData?: object
|
|
50
|
+
actionCause?: string;
|
|
51
|
+
customData?: object;
|
|
52
52
|
clientId: string;
|
|
53
|
-
deviceId?: string
|
|
54
|
-
pageId?: string
|
|
53
|
+
deviceId?: string;
|
|
54
|
+
pageId?: string;
|
|
55
55
|
clientTimestamp: string;
|
|
56
56
|
documentReferrer: string | null;
|
|
57
57
|
originContext: string;
|
|
58
|
-
userDisplayName?: string
|
|
59
|
-
documentLocation?: string | null
|
|
60
|
-
trackingId?: string
|
|
61
|
-
capture?: boolean
|
|
62
|
-
source?: string[]
|
|
63
|
-
}
|
|
64
|
-
excerptLength?: number
|
|
65
|
-
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[]
|
|
66
|
-
authentication?: string
|
|
58
|
+
userDisplayName?: string;
|
|
59
|
+
documentLocation?: string | null;
|
|
60
|
+
trackingId?: string;
|
|
61
|
+
capture?: boolean;
|
|
62
|
+
source?: string[];
|
|
63
|
+
};
|
|
64
|
+
excerptLength?: number;
|
|
65
|
+
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[];
|
|
66
|
+
authentication?: string;
|
|
67
67
|
}>>;
|
|
68
68
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommerceEngine } from '../app/commerce-engine/commerce-engine.js';
|
|
2
2
|
export declare namespace Search {
|
|
3
|
-
const responseIdSelector: (engine: CommerceEngine
|
|
3
|
+
const responseIdSelector: (engine: CommerceEngine) => string;
|
|
4
4
|
}
|
|
5
5
|
export declare namespace ProductListing {
|
|
6
|
-
const responseIdSelector: (engine: CommerceEngine
|
|
6
|
+
const responseIdSelector: (engine: CommerceEngine) => string;
|
|
7
7
|
}
|
|
@@ -3,60 +3,60 @@ export declare function buildMockSearchRequest(config?: Partial<SearchRequest>):
|
|
|
3
3
|
url: string;
|
|
4
4
|
accessToken: string;
|
|
5
5
|
organizationId: string;
|
|
6
|
-
q?: string
|
|
7
|
-
aq?: string
|
|
8
|
-
cq?: string
|
|
9
|
-
lq?: string
|
|
10
|
-
dq?: string
|
|
11
|
-
numberOfResults?: number
|
|
12
|
-
firstResult?: number
|
|
13
|
-
sortCriteria?: string
|
|
14
|
-
facets?: import("../features/facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[]
|
|
15
|
-
context?: Record<string, string | string[]
|
|
16
|
-
dictionaryFieldContext?: Record<string, string
|
|
17
|
-
enableDidYouMean?: boolean
|
|
6
|
+
q?: string;
|
|
7
|
+
aq?: string;
|
|
8
|
+
cq?: string;
|
|
9
|
+
lq?: string;
|
|
10
|
+
dq?: string;
|
|
11
|
+
numberOfResults?: number;
|
|
12
|
+
firstResult?: number;
|
|
13
|
+
sortCriteria?: string;
|
|
14
|
+
facets?: import("../features/facets/generic/interfaces/generic-facet-request.js").AnyFacetRequest[];
|
|
15
|
+
context?: Record<string, string | string[]>;
|
|
16
|
+
dictionaryFieldContext?: Record<string, string>;
|
|
17
|
+
enableDidYouMean?: boolean;
|
|
18
18
|
queryCorrection?: {
|
|
19
|
-
enabled?: boolean
|
|
19
|
+
enabled?: boolean;
|
|
20
20
|
options?: {
|
|
21
|
-
automaticallyCorrect?: "never" | "whenNoResults"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
enableQuerySyntax?: boolean
|
|
25
|
-
fieldsToInclude?: string[]
|
|
26
|
-
pipeline?: string
|
|
27
|
-
searchHub?: string
|
|
28
|
-
facetOptions?: import("../features/facet-options/facet-options.js").FacetOptions
|
|
29
|
-
debug?: boolean
|
|
30
|
-
locale?: string
|
|
31
|
-
filterField?: string
|
|
32
|
-
parentField?: string
|
|
33
|
-
childField?: string
|
|
34
|
-
filterFieldRange?: number
|
|
21
|
+
automaticallyCorrect?: "never" | "whenNoResults";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
enableQuerySyntax?: boolean;
|
|
25
|
+
fieldsToInclude?: string[];
|
|
26
|
+
pipeline?: string;
|
|
27
|
+
searchHub?: string;
|
|
28
|
+
facetOptions?: import("../features/facet-options/facet-options.js").FacetOptions;
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
locale?: string;
|
|
31
|
+
filterField?: string;
|
|
32
|
+
parentField?: string;
|
|
33
|
+
childField?: string;
|
|
34
|
+
filterFieldRange?: number;
|
|
35
35
|
tab: string;
|
|
36
36
|
referrer: string | null;
|
|
37
37
|
timezone: string;
|
|
38
38
|
analytics?: {
|
|
39
|
-
actionCause?: string
|
|
40
|
-
customData?: object
|
|
39
|
+
actionCause?: string;
|
|
40
|
+
customData?: object;
|
|
41
41
|
clientId: string;
|
|
42
|
-
deviceId?: string
|
|
43
|
-
pageId?: string
|
|
42
|
+
deviceId?: string;
|
|
43
|
+
pageId?: string;
|
|
44
44
|
clientTimestamp: string;
|
|
45
45
|
documentReferrer: string | null;
|
|
46
46
|
originContext: string;
|
|
47
|
-
userDisplayName?: string
|
|
48
|
-
documentLocation?: string | null
|
|
49
|
-
trackingId?: string
|
|
50
|
-
capture?: boolean
|
|
51
|
-
source?: string[]
|
|
52
|
-
}
|
|
53
|
-
excerptLength?: number
|
|
54
|
-
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[]
|
|
55
|
-
authentication?: string
|
|
47
|
+
userDisplayName?: string;
|
|
48
|
+
documentLocation?: string | null;
|
|
49
|
+
trackingId?: string;
|
|
50
|
+
capture?: boolean;
|
|
51
|
+
source?: string[];
|
|
52
|
+
};
|
|
53
|
+
excerptLength?: number;
|
|
54
|
+
actionsHistory?: import("coveo.analytics/dist/definitions/history.js").HistoryElement[];
|
|
55
|
+
authentication?: string;
|
|
56
56
|
generateAutomaticFacets?: {
|
|
57
57
|
desiredCount: number;
|
|
58
|
-
numberOfValues?: number
|
|
59
|
-
currentFacets?: import("../features/facets/automatic-facet-set/interfaces/request.js").AutomaticFacetRequest[]
|
|
60
|
-
}
|
|
61
|
-
pipelineRuleParameters?: import("../api/search/search-api-params.js").PipelineRuleParameters
|
|
58
|
+
numberOfValues?: number;
|
|
59
|
+
currentFacets?: import("../features/facets/automatic-facet-set/interfaces/request.js").AutomaticFacetRequest[];
|
|
60
|
+
};
|
|
61
|
+
pipelineRuleParameters?: import("../api/search/search-api-params.js").PipelineRuleParameters;
|
|
62
62
|
};
|
package/force-app/main/default/staticresources/coveoheadless/definitions/utils/compare-utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PrimitivesValues } from '@coveo/bueno';
|
|
1
2
|
export declare function arrayEqual<T>(firstArray: T[], secondArray: T[], isEqual?: (first: T, second: T) => boolean): boolean;
|
|
2
3
|
/**
|
|
3
4
|
* Checks if two arrays of primitive values have the same elements, in different order.
|
|
@@ -7,5 +8,5 @@ export declare function arrayEqual<T>(firstArray: T[], secondArray: T[], isEqual
|
|
|
7
8
|
* @param secondArray The second array of primitive values to compare.
|
|
8
9
|
* @returns `true` if the arrays have the same elements in different orders, `false` otherwise. Unless the two arrays have only one identical element each, this function will return `false` if the two arrays have the same elements in the same order.
|
|
9
10
|
*/
|
|
10
|
-
export declare const arrayEqualStrictlyDifferentOrder: <T extends
|
|
11
|
+
export declare const arrayEqualStrictlyDifferentOrder: <T extends Exclude<PrimitivesValues, object>>(firstArray: T[], secondArray: T[]) => boolean;
|
|
11
12
|
export declare const deepEqualAnyOrder: <T>(a: T, b: T) => boolean;
|
package/force-app/main/default/staticresources/coveoheadless/definitions/utils/validate-payload.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const validatePayloadAndThrow: <P>(payload: P, definition: Schema
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const validatePayload: <P>(payload: P, definition: SchemaDefinition<Required<P>> | SchemaValue<P>) => {
|
|
25
25
|
payload: P;
|
|
26
|
-
error?: SerializedError
|
|
26
|
+
error?: SerializedError;
|
|
27
27
|
};
|
|
28
28
|
export declare const validateInitialState: <T extends object>(engine: CoreEngine | CoreEngineNext, schema: Schema<T>, obj: T | undefined, functionName: string) => Partial<T>;
|
|
29
29
|
export declare const validateOptions: <T extends object>(engine: CoreEngine<object> | CoreEngineNext<object>, schema: Schema<T>, obj: Partial<T> | undefined, functionName: string) => Partial<Partial<T>>;
|