@coveo/quantic 3.42.1 → 3.43.1

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.
Files changed (32) hide show
  1. package/force-app/main/default/labels/CustomLabels.labels-meta.xml +21 -0
  2. package/force-app/main/default/lwc/quanticGeneratedAnswer/__tests__/quanticGeneratedAnswer.test.js +145 -60
  3. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/agentData.ts +248 -0
  4. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/fixture-agent.ts +77 -0
  5. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/fixture.ts +74 -65
  6. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/pageObject.ts +157 -15
  7. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswer.e2e.ts +1 -5
  8. package/force-app/main/default/lwc/quanticGeneratedAnswer/e2e/quanticGeneratedAnswerAgent.e2e.ts +233 -0
  9. package/force-app/main/default/lwc/quanticGeneratedAnswer/quanticGeneratedAnswer.js +12 -108
  10. package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/conversation.html +1 -1
  11. package/force-app/main/default/lwc/quanticGeneratedAnswer/templates/generatedAnswer.html +8 -47
  12. package/force-app/main/default/lwc/quanticGeneratedAnswerContent/__tests__/quanticGeneratedAnswerContent.test.js +27 -0
  13. package/force-app/main/default/lwc/quanticGeneratedAnswerContent/quanticGeneratedAnswerContent.js +8 -1
  14. package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/__tests__/quanticGeneratedAnswerFollowUpInput.test.js +242 -10
  15. package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/quanticGeneratedAnswerFollowUpInput.css +2 -2
  16. package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/quanticGeneratedAnswerFollowUpInput.html +16 -1
  17. package/force-app/main/default/lwc/quanticGeneratedAnswerFollowUpInput/quanticGeneratedAnswerFollowUpInput.js +47 -4
  18. package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/__tests__/quanticGeneratedAnswerStreamOfThought.test.js +95 -41
  19. package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/__tests__/stepsUtils.test.js +118 -0
  20. package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/quanticGeneratedAnswerStreamOfThought.js +21 -35
  21. package/force-app/main/default/lwc/quanticGeneratedAnswerStreamOfThought/stepsUtils.js +66 -0
  22. package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +15 -15
  23. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-listing/facets/headless-product-listing-facet-options.d.ts +4 -39
  24. package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search/facets/headless-search-facet-options.d.ts +4 -39
  25. package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/facet-set/facet-set-selector.d.ts +3 -9
  26. package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-search-set/category/category-facet-search-state-selector.d.ts +1 -27
  27. package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-search-set/specific/specific-facet-search-state-selector.d.ts +1 -27
  28. package/force-app/main/default/staticresources/coveoheadless/headless.js +17 -17
  29. package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +16 -16
  30. package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +14 -14
  31. package/force-app/main/default/staticresources/dompurify/purify.min.js +2 -2
  32. package/package.json +7 -6
@@ -4,50 +4,14 @@ export declare const facetResponseSelector: ((state: ProductListingSection & Com
4
4
  resultsCount: () => number;
5
5
  resetResultsCount: () => void;
6
6
  } & {
7
- resultFunc: (resultFuncArgs_0: {
8
- state: ProductListingSection & CommerceFacetSetSection;
9
- facetId: string;
10
- }) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
11
- memoizedResultFunc: ((resultFuncArgs_0: {
12
- state: ProductListingSection & CommerceFacetSetSection;
13
- facetId: string;
14
- }) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined) & {
7
+ resultFunc: (resultFuncArgs_0: import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], resultFuncArgs_1: boolean, resultFuncArgs_2: string) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
8
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], resultFuncArgs_1: boolean, resultFuncArgs_2: string) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined) & {
15
9
  clearCache: () => void;
16
10
  resultsCount: () => number;
17
11
  resetResultsCount: () => void;
18
12
  };
19
13
  lastResult: () => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
20
- dependencies: [(state: ProductListingSection & CommerceFacetSetSection, facetId: string) => {
21
- state: ProductListingSection & CommerceFacetSetSection;
22
- facetId: string;
23
- }];
24
- recomputations: () => number;
25
- resetRecomputations: () => void;
26
- dependencyRecomputations: () => number;
27
- resetDependencyRecomputations: () => void;
28
- } & {
29
- argsMemoize: typeof import("reselect").weakMapMemoize;
30
- memoize: typeof import("reselect").weakMapMemoize;
31
- };
32
- export declare const isFacetLoadingResponseSelector: ((state: ProductListingSection) => boolean) & {
33
- clearCache: () => void;
34
- resultsCount: () => number;
35
- resetResultsCount: () => void;
36
- } & {
37
- resultFunc: (resultFuncArgs_0: {
38
- state: ProductListingSection;
39
- }) => boolean;
40
- memoizedResultFunc: ((resultFuncArgs_0: {
41
- state: ProductListingSection;
42
- }) => boolean) & {
43
- clearCache: () => void;
44
- resultsCount: () => number;
45
- resetResultsCount: () => void;
46
- };
47
- lastResult: () => boolean;
48
- dependencies: [(state: ProductListingSection) => {
49
- state: ProductListingSection;
50
- }];
14
+ dependencies: [(state: ProductListingSection & CommerceFacetSetSection) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], (state: ProductListingSection & CommerceFacetSetSection, facetId: string) => boolean, (_state: ProductListingSection & CommerceFacetSetSection, facetId: string) => string];
51
15
  recomputations: () => number;
52
16
  resetRecomputations: () => void;
53
17
  dependencyRecomputations: () => number;
@@ -56,3 +20,4 @@ export declare const isFacetLoadingResponseSelector: ((state: ProductListingSect
56
20
  argsMemoize: typeof import("reselect").weakMapMemoize;
57
21
  memoize: typeof import("reselect").weakMapMemoize;
58
22
  };
23
+ export declare const isFacetLoadingResponseSelector: (state: ProductListingSection) => boolean;
@@ -4,50 +4,14 @@ export declare const facetResponseSelector: ((state: CommerceSearchSection & Com
4
4
  resultsCount: () => number;
5
5
  resetResultsCount: () => void;
6
6
  } & {
7
- resultFunc: (resultFuncArgs_0: {
8
- state: CommerceSearchSection & CommerceFacetSetSection;
9
- facetId: string;
10
- }) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
11
- memoizedResultFunc: ((resultFuncArgs_0: {
12
- state: CommerceSearchSection & CommerceFacetSetSection;
13
- facetId: string;
14
- }) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined) & {
7
+ resultFunc: (resultFuncArgs_0: import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], resultFuncArgs_1: boolean, resultFuncArgs_2: string) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
8
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], resultFuncArgs_1: boolean, resultFuncArgs_2: string) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined) & {
15
9
  clearCache: () => void;
16
10
  resultsCount: () => number;
17
11
  resetResultsCount: () => void;
18
12
  };
19
13
  lastResult: () => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse | undefined;
20
- dependencies: [(state: CommerceSearchSection & CommerceFacetSetSection, facetId: string) => {
21
- state: CommerceSearchSection & CommerceFacetSetSection;
22
- facetId: string;
23
- }];
24
- recomputations: () => number;
25
- resetRecomputations: () => void;
26
- dependencyRecomputations: () => number;
27
- resetDependencyRecomputations: () => void;
28
- } & {
29
- argsMemoize: typeof import("reselect").weakMapMemoize;
30
- memoize: typeof import("reselect").weakMapMemoize;
31
- };
32
- export declare const isFacetLoadingResponseSelector: ((state: CommerceSearchSection) => boolean) & {
33
- clearCache: () => void;
34
- resultsCount: () => number;
35
- resetResultsCount: () => void;
36
- } & {
37
- resultFunc: (resultFuncArgs_0: {
38
- state: CommerceSearchSection;
39
- }) => boolean;
40
- memoizedResultFunc: ((resultFuncArgs_0: {
41
- state: CommerceSearchSection;
42
- }) => boolean) & {
43
- clearCache: () => void;
44
- resultsCount: () => number;
45
- resetResultsCount: () => void;
46
- };
47
- lastResult: () => boolean;
48
- dependencies: [(state: CommerceSearchSection) => {
49
- state: CommerceSearchSection;
50
- }];
14
+ dependencies: [(state: CommerceSearchSection & CommerceFacetSetSection) => import("../../../../features/commerce/facets/facet-set/interfaces/response.js").AnyFacetResponse[], (state: CommerceSearchSection & CommerceFacetSetSection, facetId: string) => boolean, (_state: CommerceSearchSection & CommerceFacetSetSection, facetId: string) => string];
51
15
  recomputations: () => number;
52
16
  resetRecomputations: () => void;
53
17
  dependencyRecomputations: () => number;
@@ -56,3 +20,4 @@ export declare const isFacetLoadingResponseSelector: ((state: CommerceSearchSect
56
20
  argsMemoize: typeof import("reselect").weakMapMemoize;
57
21
  memoize: typeof import("reselect").weakMapMemoize;
58
22
  };
23
+ export declare const isFacetLoadingResponseSelector: (state: CommerceSearchSection) => boolean;
@@ -5,20 +5,14 @@ export declare const facetRequestSelector: ((state: CommerceFacetSetSection, fac
5
5
  resultsCount: () => number;
6
6
  resetResultsCount: () => void;
7
7
  } & {
8
- resultFunc: (resultFuncArgs_0: {
9
- facetRequestSelector: import("./facet-set-state.js").CommerceFacetSlice;
10
- }) => AnyFacetRequest | undefined;
11
- memoizedResultFunc: ((resultFuncArgs_0: {
12
- facetRequestSelector: import("./facet-set-state.js").CommerceFacetSlice;
13
- }) => AnyFacetRequest | undefined) & {
8
+ resultFunc: (resultFuncArgs_0: import("./facet-set-state.js").CommerceFacetSlice) => AnyFacetRequest | undefined;
9
+ memoizedResultFunc: ((resultFuncArgs_0: import("./facet-set-state.js").CommerceFacetSlice) => AnyFacetRequest | undefined) & {
14
10
  clearCache: () => void;
15
11
  resultsCount: () => number;
16
12
  resetResultsCount: () => void;
17
13
  };
18
14
  lastResult: () => AnyFacetRequest | undefined;
19
- dependencies: [(state: CommerceFacetSetSection, facetId: string) => {
20
- facetRequestSelector: import("./facet-set-state.js").CommerceFacetSlice;
21
- }];
15
+ dependencies: [(state: CommerceFacetSetSection, facetId: string) => import("./facet-set-state.js").CommerceFacetSlice];
22
16
  recomputations: () => number;
23
17
  resetRecomputations: () => void;
24
18
  dependencyRecomputations: () => number;
@@ -1,29 +1,3 @@
1
1
  import type { CategoryFacetSearchSection } from '../../../../state/state-sections.js';
2
2
  import type { CategoryFacetSearchState } from './category-facet-search-set-state.js';
3
- export declare const categoryFacetSearchStateSelector: ((state: CategoryFacetSearchSection, facetId: string) => CategoryFacetSearchState | undefined) & {
4
- clearCache: () => void;
5
- resultsCount: () => number;
6
- resetResultsCount: () => void;
7
- } & {
8
- resultFunc: (resultFuncArgs_0: {
9
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/category-facet-search/category-facet-search-response.js").CategoryFacetSearchResponse>;
10
- }) => CategoryFacetSearchState | undefined;
11
- memoizedResultFunc: ((resultFuncArgs_0: {
12
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/category-facet-search/category-facet-search-response.js").CategoryFacetSearchResponse>;
13
- }) => CategoryFacetSearchState | undefined) & {
14
- clearCache: () => void;
15
- resultsCount: () => number;
16
- resetResultsCount: () => void;
17
- };
18
- lastResult: () => CategoryFacetSearchState | undefined;
19
- dependencies: [(state: CategoryFacetSearchSection, facetId: string) => {
20
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/category-facet-search/category-facet-search-response.js").CategoryFacetSearchResponse>;
21
- }];
22
- recomputations: () => number;
23
- resetRecomputations: () => void;
24
- dependencyRecomputations: () => number;
25
- resetDependencyRecomputations: () => void;
26
- } & {
27
- argsMemoize: typeof import("reselect").weakMapMemoize;
28
- memoize: typeof import("reselect").weakMapMemoize;
29
- };
3
+ export declare const categoryFacetSearchStateSelector: (state: CategoryFacetSearchSection, facetId: string) => CategoryFacetSearchState | undefined;
@@ -1,29 +1,3 @@
1
1
  import type { FacetSearchSection } from '../../../../state/state-sections.js';
2
2
  import type { SpecificFacetSearchState } from './specific-facet-search-set-state.js';
3
- export declare const specificFacetSearchStateSelector: ((state: FacetSearchSection, facetId: string) => SpecificFacetSearchState | undefined) & {
4
- clearCache: () => void;
5
- resultsCount: () => number;
6
- resetResultsCount: () => void;
7
- } & {
8
- resultFunc: (resultFuncArgs_0: {
9
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/specific-facet-search/specific-facet-search-response.js").SpecificFacetSearchResponse>;
10
- }) => SpecificFacetSearchState | undefined;
11
- memoizedResultFunc: ((resultFuncArgs_0: {
12
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/specific-facet-search/specific-facet-search-response.js").SpecificFacetSearchResponse>;
13
- }) => SpecificFacetSearchState | undefined) & {
14
- clearCache: () => void;
15
- resultsCount: () => number;
16
- resetResultsCount: () => void;
17
- };
18
- lastResult: () => SpecificFacetSearchState | undefined;
19
- dependencies: [(state: FacetSearchSection, facetId: string) => {
20
- facetSearchSelector: import("../facet-search-reducer-helpers.js").FacetSearchState<import("../../../../api/search/facet-search/specific-facet-search/specific-facet-search-response.js").SpecificFacetSearchResponse>;
21
- }];
22
- recomputations: () => number;
23
- resetRecomputations: () => void;
24
- dependencyRecomputations: () => number;
25
- resetDependencyRecomputations: () => void;
26
- } & {
27
- argsMemoize: typeof import("reselect").weakMapMemoize;
28
- memoize: typeof import("reselect").weakMapMemoize;
29
- };
3
+ export declare const specificFacetSearchStateSelector: (state: FacetSearchSection, facetId: string) => SpecificFacetSearchState | undefined;