@coveo/quantic 3.33.2 → 3.33.4
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 +13 -13
- package/force-app/main/default/lwc/quanticCategoryFacet/quanticCategoryFacet.js +1 -1
- package/force-app/main/default/lwc/quanticCitation/__tests__/quanticCitation.test.js +142 -3
- package/force-app/main/default/lwc/quanticCitation/quanticCitation.html +10 -4
- package/force-app/main/default/lwc/quanticCitation/quanticCitation.js +72 -31
- package/force-app/main/default/lwc/quanticFacet/quanticFacet.js +1 -1
- package/force-app/main/default/lwc/quanticHeading/quanticHeading.js +1 -1
- package/force-app/main/default/lwc/quanticResultsPerPage/quanticResultsPerPage.js +1 -1
- package/force-app/main/default/lwc/quanticSearchBoxSuggestionsList/e2e/quanticSearchBoxSuggestionsList.e2e.ts +0 -17
- package/force-app/main/default/lwc/quanticSummary/quanticSummary.js +1 -1
- package/force-app/main/default/lwc/quanticTimeframe/quanticTimeframe.js +2 -2
- package/force-app/main/default/lwc/quanticUtils/facetDependenciesUtils.js +2 -2
- package/force-app/main/default/lwc/quanticUtils/quanticUtils.js +4 -4
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/product.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/date/date-format.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/plan/plan-response.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search/stemming.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/case-assist-engine/case-assist-engine-configuration.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-engine/commerce-engine-configuration.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/engine-configuration.d.ts +7 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/insight-engine/insight-engine-configuration.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/recommendation-engine/recommendation-engine-configuration.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/search-engine/search-engine-configuration.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/breadcrumb-manager/headless-breadcrumb-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/breadcrumb-manager/headless-core-breadcrumb-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/parameter-manager/headless-core-parameter-manager.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-category-filter-suggestions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/filter-suggestions/headless-filter-suggestions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/instant-products/headless-instant-products.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/product-listing/headless-product-listing.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/recent-queries-list/headless-recent-queries-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/recommendations/headless-recommendations.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/search/headless-search.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/breadcrumb-manager/headless-core-breadcrumb-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/headless-core-context.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/did-you-mean/headless-core-did-you-mean.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facet-manager/headless-core-facet-manager.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/category-facet/headless-core-category-facet.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/facet/headless-core-facet.d.ts +4 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/headless-core-date-facet.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/date-facet/headless-core-date-filter.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-core-numeric-facet.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/facets/range-facet/numeric-facet/headless-core-numeric-filter.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/folded-result-list/headless-core-folded-result-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/pager/headless-core-pager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/query-error/headless-core-query-error.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/recent-queries-list/headless-core-recent-queries-list.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/result-list/headless-core-result-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/results-per-page/headless-core-results-per-page.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/search-box/headless-core-search-box-options.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/smart-snippet-questions-list/headless-core-smart-snippet-questions-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/sort/headless-core-sort.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/status/headless-core-status.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/tab/headless-core-tab.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-notify-trigger.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-query-trigger.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/triggers/headless-core-redirection-trigger.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/dictionary-field-context/headless-dictionary-field-context.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/facets/automatic-facet-generator/headless-automatic-facet-generator.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/field-suggestions/category-facet/headless-category-field-suggestions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/field-suggestions/facet/headless-field-suggestions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/history-manager/headless-history-manager.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/instant-results/instant-results.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/query-summary/headless-query-summary.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/quickview/headless-quickview.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recent-results-list/headless-recent-results-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/recommendation/headless-recommendation.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/relevance-inspector/headless-relevance-inspector.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/result-list/headless-interactive-result.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/smart-snippet-questions-list/headless-smart-snippet-questions-list.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/standalone-search-box/headless-standalone-search-box.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/static-filter/headless-static-filter.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/static-filter/static-filter-value.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/triggers/headless-execute-trigger.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/url-manager/headless-url-manager.d.ts +5 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/advanced-search-queries/advanced-search-queries-state.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/search-action-cause.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/search-analytics-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-assist-configuration/case-assist-configuration-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-assist-configuration/case-assist-configuration-state.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-field/case-field-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/case-input/case-input-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/configuration/configuration-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/configuration/configuration-state.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/core-facet/core-facet-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/location-facet/location-facet-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/numeric-facet/manual-numeric-facet-selectors.d.ts +1 -21
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/facets/numeric-facet/numeric-facet-actions.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/pagination/pagination-selectors.d.ts +6 -126
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/product-listing/product-listing-selectors.d.ts +6 -160
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/query/query-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recommendations/recommendations-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/recommendations/recommendations-selectors.d.ts +2 -42
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/search/search-selectors.d.ts +7 -181
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-actions.d.ts +13 -13
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-selectors.d.ts +4 -48
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/configuration/configuration-state.d.ts +5 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/context/context-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/context/context-selector.d.ts +2 -24
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/debug/ranking-info-parser.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/dictionary-field-context/dictionary-field-context-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/did-you-mean/did-you-mean-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/did-you-mean/did-you-mean-selectors.d.ts +1 -21
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/excerpt-length/excerpt-length-selectors.d.ts +2 -24
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facet-options/facet-options-actions-loader.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/category-facet-set/category-facet-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/category-facet-set/category-facet-set-actions.d.ts +5 -5
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-set/facet-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/facet-set/facet-set-actions.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/date-facet-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/date-facet-set/date-facet-actions.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/numeric-facet-set/numeric-facet-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/facets/range-facets/numeric-facet-set/numeric-facet-actions.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/fields/fields-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-actions.d.ts +3 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-analytics-actions.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-insight-analytics-actions.d.ts +1 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-mocks.d.ts +11 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/instant-items/instant-items-state.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/pipeline/select-pipeline.d.ts +2 -24
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-actions.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +4 -48
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query-suggest/query-suggest-actions.d.ts +6 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query-suggest/query-suggest-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/question-answering/question-answering-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/recommendation/recommendation-state.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-hub/search-hub-selectors.d.ts +2 -24
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-parameters/search-parameter-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort-criteria/criteria-parser.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/sort-criteria/sort-criteria-selectors.d.ts +2 -24
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/static-filter-set/static-filter-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/static-filter-set/static-filter-set-state.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/tab-set/tab-set-actions-loader.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/tab-set/tab-set-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/insight.index.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/search/controllers/facets/range-facet/date-facet/headless-date-facet.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/search/controllers/facets/range-facet/numeric-facet/headless-numeric-facet.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr/search/controllers/static-filter/headless-static-filter.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/commerce/types/controller-definitions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/controller-utils.d.ts +6 -4
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/controllers/facets/range-facet/date-facet/headless-date-facet.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/controllers/facets/range-facet/numeric-facet/headless-numeric-facet.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/controllers/static-filter/headless-static-filter.ssr.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/engine/search-engine.ssr.d.ts +13 -25
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/factories/build-factory.d.ts +8 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/factories/hydrated-state-factory.d.ts +5 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/factories/static-state-factory.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/types/build.d.ts +16 -7
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/types/controller-definition.d.ts +19 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/types/engine.d.ts +26 -8
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/types/fetch-static-state.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/utils/controller-wiring.d.ts +21 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next/search/utils/engine-wiring.d.ts +4 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/ssr-next.index.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-ssr-controller-definitions.d.ts +12 -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
|
@@ -2,7 +2,7 @@ import type { Controller } from '../../controller/headless-controller.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The `RedirectionTrigger` controller handles redirection triggers. A [Redirection trigger](https://docs.coveo.com/en/3413#redirect) query pipeline rule lets you define a URL to redirect the user's browser to when a certain condition is met.
|
|
4
4
|
*
|
|
5
|
-
* Example: [redirection-trigger.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
5
|
+
* Example: [redirection-trigger.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/triggers/redirection-trigger.fn.tsx)
|
|
6
6
|
*
|
|
7
7
|
* @group Controllers
|
|
8
8
|
* @category RedirectionTrigger
|
|
@@ -5,7 +5,7 @@ export type { DictionaryFieldContextPayload };
|
|
|
5
5
|
/**
|
|
6
6
|
* The `DictionaryFieldContext` controller allows specifying which [dictionary field](https://docs.coveo.com/en/2036/) keys to retrieve.
|
|
7
7
|
*
|
|
8
|
-
* Example: [dictionary-field-context.fn.ts](https://github.com/coveo/ui-kit/blob/main/
|
|
8
|
+
* Example: [dictionary-field-context.fn.ts](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/dictionary-field-context/dictionary-field-context.fn.ts)
|
|
9
9
|
*
|
|
10
10
|
* @group Controllers
|
|
11
11
|
* @category DictionaryFieldContext
|
|
@@ -12,8 +12,8 @@ export type { AutomaticFacetGeneratorOptions };
|
|
|
12
12
|
* To learn more about the automatic facet generator feature, see: [About the Facet Generator](https://docs.coveo.com/en/n9sd0159/).
|
|
13
13
|
*
|
|
14
14
|
* Examples:
|
|
15
|
-
* - [automatic-facet-generator.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
16
|
-
* - [automatic-facet-generator.class.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
15
|
+
* - [automatic-facet-generator.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/automatic-facet-generator/automatic-facet-generator.fn.tsx)
|
|
16
|
+
* - [automatic-facet-generator.class.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/automatic-facet-generator/automatic-facet-generator.class.tsx)
|
|
17
17
|
*
|
|
18
18
|
* @group Controllers
|
|
19
19
|
* @category AutomaticFacetGenerator
|
|
@@ -64,7 +64,7 @@ export interface AutomaticFacetState {
|
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* The `AutomaticFacet` controller allows you to create a search interface component that the end user
|
|
67
|
-
* can interact with to refine a query by selecting filters based on item metadata (
|
|
67
|
+
* can interact with to refine a query by selecting filters based on item metadata (that is, field values). Unlike regular facets that
|
|
68
68
|
* need to be explicitly defined and requested in the query, automatic facets are dynamically generated by the index
|
|
69
69
|
* in response to the query.
|
|
70
70
|
*
|
|
@@ -54,7 +54,7 @@ export interface CategoryFieldSuggestionsState {
|
|
|
54
54
|
*
|
|
55
55
|
* This controller is a wrapper around the basic category facet controller search functionality, and thus exposes similar options and properties.
|
|
56
56
|
*
|
|
57
|
-
* Example: [category-suggestions.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
57
|
+
* Example: [category-suggestions.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/field-suggestions/category-field/category-suggestions.fn.tsx)
|
|
58
58
|
*
|
|
59
59
|
* @group Controllers
|
|
60
60
|
* @category CategoryFieldSuggestions
|
|
@@ -47,7 +47,7 @@ export interface FieldSuggestionsState {
|
|
|
47
47
|
*
|
|
48
48
|
* This controller is a wrapper around the basic facet controller search functionality, and thus exposes similar options and properties.
|
|
49
49
|
*
|
|
50
|
-
* Example: [field-suggestions.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
50
|
+
* Example: [field-suggestions.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/field-suggestions/specific-field/field-suggestions.fn.tsx)
|
|
51
51
|
*
|
|
52
52
|
* @group Controllers
|
|
53
53
|
* @category FieldSuggestions
|
|
@@ -5,7 +5,7 @@ import { type Controller } from '../controller/headless-controller.js';
|
|
|
5
5
|
/**
|
|
6
6
|
* The `HistoryManager` controller is in charge of allowing navigating back and forward in the search interface history.
|
|
7
7
|
*
|
|
8
|
-
* Example: [history-manager.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
8
|
+
* Example: [history-manager.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/history-manager/history-manager.fn.tsx)
|
|
9
9
|
*
|
|
10
10
|
* @group Controllers
|
|
11
11
|
* @category HistoryManager
|
|
@@ -11,7 +11,7 @@ export interface InstantResultProps {
|
|
|
11
11
|
/**
|
|
12
12
|
* The `InstantResults` controller allows the end user to manage instant results queries.
|
|
13
13
|
*
|
|
14
|
-
* Example: [instant-results.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
14
|
+
* Example: [instant-results.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/instant-results/instant-results.fn.tsx)
|
|
15
15
|
*
|
|
16
16
|
* @group Controllers
|
|
17
17
|
* @category InstantResults
|
|
@@ -7,7 +7,7 @@ export type { QuerySummary, QuerySummaryState };
|
|
|
7
7
|
* @param engine - The headless engine instance.
|
|
8
8
|
* @returns A `QuerySummary` controller instance.
|
|
9
9
|
*
|
|
10
|
-
* Example: [query-summary.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
10
|
+
* Example: [query-summary.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/query-summary/query-summary.fn.tsx)
|
|
11
11
|
*
|
|
12
12
|
* @group Controllers
|
|
13
13
|
* @category QuerySummary
|
|
@@ -24,7 +24,7 @@ export interface QuickviewState extends CoreQuickviewState {
|
|
|
24
24
|
/**
|
|
25
25
|
* The `Quickview` controller provides an interface for triggering desirable side effects, such as logging UA events to the Coveo Platform, when a user interacts with a quickview.
|
|
26
26
|
*
|
|
27
|
-
* Example: [quickview.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
27
|
+
* Example: [quickview.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/quickview/quickview.fn.tsx)
|
|
28
28
|
*
|
|
29
29
|
* @group Controllers
|
|
30
30
|
* @category Quickview
|
|
@@ -28,7 +28,7 @@ export interface RecentResultsListOptions {
|
|
|
28
28
|
/**
|
|
29
29
|
* The `RecentResultsList` controller manages a user's recently clicked results.
|
|
30
30
|
*
|
|
31
|
-
* Example: [recent-results.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
31
|
+
* Example: [recent-results.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/recent-results/recent-results.fn.tsx)
|
|
32
32
|
*
|
|
33
33
|
* @group Controllers
|
|
34
34
|
* @category RecentResultsList
|
|
@@ -20,7 +20,7 @@ export interface RecommendationListProps {
|
|
|
20
20
|
/**
|
|
21
21
|
* The `RecommendationList` controller retrieves information about the current recommendations by the search API, if there are any.
|
|
22
22
|
*
|
|
23
|
-
* Example: [recommendation-list.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
23
|
+
* Example: [recommendation-list.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/recommendation-list/recommendation-list.fn.tsx)
|
|
24
24
|
*
|
|
25
25
|
* @group Controllers
|
|
26
26
|
* @category RecommendationList
|
|
@@ -22,7 +22,7 @@ export interface RelevanceInspectorInitialState {
|
|
|
22
22
|
/**
|
|
23
23
|
* The `RelevanceInspector` controller is in charge of allowing displaying various debug information.
|
|
24
24
|
*
|
|
25
|
-
* Example: [relevance-inspector.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
25
|
+
* Example: [relevance-inspector.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/relevance-inspector/relevance-inspector.fn.tsx)
|
|
26
26
|
*
|
|
27
27
|
* @group Controllers
|
|
28
28
|
* @category RelevanceInspector
|
|
@@ -16,7 +16,7 @@ export interface InteractiveResultProps extends InteractiveResultCoreProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* The `InteractiveResult` controller provides an interface for triggering desirable side effects, such as logging UA events to the Coveo Platform, when a user selects a query result.
|
|
18
18
|
*
|
|
19
|
-
* Example: [result-link.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
19
|
+
* Example: [result-link.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/result-list/result-link.tsx)
|
|
20
20
|
*
|
|
21
21
|
* @group Controllers
|
|
22
22
|
* @category InteractiveResult
|
|
@@ -13,7 +13,7 @@ export interface SmartSnippetQuestionsListState extends CoreSmartSnippetQuestion
|
|
|
13
13
|
/**
|
|
14
14
|
* The `SmartSnippetQuestionsList` controller allows to manage additional queries for which a SmartSnippet model can provide relevant excerpts.
|
|
15
15
|
*
|
|
16
|
-
* Example: [smart-snippet-questions-list.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
16
|
+
* Example: [smart-snippet-questions-list.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/smart-snippet-questions-list/smart-snippet-questions-list.fn.tsx)
|
|
17
17
|
*
|
|
18
18
|
* @group Controllers
|
|
19
19
|
* @category SmartSnippetQuestionsList
|
|
@@ -10,7 +10,7 @@ export interface StandaloneSearchBoxProps {
|
|
|
10
10
|
* The `StandaloneSearchBox` headless controller offers a high-level interface for designing a common search box UI controller.
|
|
11
11
|
* Meant to be used for a search box that will redirect instead of executing a query.
|
|
12
12
|
*
|
|
13
|
-
* Example: [standalone-search-box.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
13
|
+
* Example: [standalone-search-box.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/standalone-search-box/standalone-search-box.fn.tsx)
|
|
14
14
|
*
|
|
15
15
|
* @group Controllers
|
|
16
16
|
* @category StandaloneSearchBox
|
|
@@ -23,7 +23,7 @@ export interface StaticFilterOptions {
|
|
|
23
23
|
/**
|
|
24
24
|
* The `StaticFilter` controller manages a collection of filter values.
|
|
25
25
|
*
|
|
26
|
-
* Example: [static-filter.fn.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
26
|
+
* Example: [static-filter.fn.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/static-filter/static-filter.fn.tsx)
|
|
27
27
|
*
|
|
28
28
|
* @group Controllers
|
|
29
29
|
* @category StaticFilter
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { StaticFilterValue, StaticFilterValueState } from '../../features/static-filter-set/static-filter-set-state.js';
|
|
2
2
|
export interface StaticFilterValueOptions {
|
|
3
3
|
/**
|
|
4
|
-
* A human-readable caption for the expression (
|
|
4
|
+
* A human-readable caption for the expression (for example, `Youtube`).
|
|
5
5
|
*/
|
|
6
6
|
caption: string;
|
|
7
7
|
/**
|
|
8
|
-
* The query filter expression to apply when the value is selected (
|
|
8
|
+
* The query filter expression to apply when the value is selected (for example, `@filetype=="youtubevideo"`).
|
|
9
9
|
*/
|
|
10
10
|
expression: string;
|
|
11
11
|
/**
|
|
@@ -5,8 +5,8 @@ import { type Controller } from '../controller/headless-controller.js';
|
|
|
5
5
|
* The `ExecuteTrigger` controller handles Execute triggers from the query response. An [Execute trigger](https://docs.coveo.com/en/3413#execute) query pipeline rule lets you define a custom JavaScript function to be executed in the frontend when a certain condition is met.
|
|
6
6
|
*
|
|
7
7
|
* Examples:
|
|
8
|
-
* - [execute-trigger.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
9
|
-
* - [execute-trigger.class.tsx](https://github.com/coveo/ui-kit/blob/main/
|
|
8
|
+
* - [execute-trigger.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/triggers/execute-trigger.tsx)
|
|
9
|
+
* - [execute-trigger.class.tsx](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/triggers/execute-trigger.class.tsx)
|
|
10
10
|
*
|
|
11
11
|
* @group Controllers
|
|
12
12
|
* @category ExecuteTrigger
|
|
@@ -10,7 +10,7 @@ export interface UrlManagerProps {
|
|
|
10
10
|
export interface UrlManagerInitialState {
|
|
11
11
|
/**
|
|
12
12
|
* The part of the url that contains search parameters.
|
|
13
|
-
*
|
|
13
|
+
* For example: `q=windmill&f[author]=Cervantes`.
|
|
14
14
|
*/
|
|
15
15
|
fragment: string;
|
|
16
16
|
}
|
|
@@ -18,7 +18,7 @@ export declare const initialStateSchema: Schema<Required<UrlManagerInitialState>
|
|
|
18
18
|
/**
|
|
19
19
|
* The `UrlManager` controller can parse an url fragment to extract search parameters which affect the search response.
|
|
20
20
|
*
|
|
21
|
-
* Example: [url-manager.ts](https://github.com/coveo/ui-kit/blob/main/
|
|
21
|
+
* Example: [url-manager.ts](https://github.com/coveo/ui-kit/blob/main/samples/headless/search-react/src/components/url-manager/url-manager.ts)
|
|
22
22
|
*
|
|
23
23
|
* @group Controllers
|
|
24
24
|
* @category UrlManager
|
|
@@ -29,8 +29,8 @@ export interface UrlManager extends Controller {
|
|
|
29
29
|
* */
|
|
30
30
|
state: UrlManagerState;
|
|
31
31
|
/**
|
|
32
|
-
* Updates the search parameters in state with those from the url
|
|
33
|
-
* @param fragment The part of the url that contains search parameters.
|
|
32
|
+
* Updates the search parameters in state with those from the url and launches a search.
|
|
33
|
+
* @param fragment The part of the url that contains search parameters. For example: `q=windmill&f[author]=Cervantes`.
|
|
34
34
|
*/
|
|
35
35
|
synchronize(fragment: string): void;
|
|
36
36
|
}
|
|
@@ -43,7 +43,7 @@ export interface UrlManager extends Controller {
|
|
|
43
43
|
export interface UrlManagerState {
|
|
44
44
|
/**
|
|
45
45
|
* The part of the url that contains search parameters.
|
|
46
|
-
*
|
|
46
|
+
* For example: `q=windmill&f[author]=Cervantes`.
|
|
47
47
|
*/
|
|
48
48
|
fragment: string;
|
|
49
49
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type AdvancedSearchQueriesDefaultFiltersState = {
|
|
2
2
|
/**
|
|
3
|
-
* The initial cq filter (
|
|
3
|
+
* The initial cq filter (for example, `((q AND aq) OR dq) AND cq).
|
|
4
4
|
*/
|
|
5
5
|
cq: string;
|
|
6
6
|
/**
|
|
7
|
-
* The initial aq filter (
|
|
7
|
+
* The initial aq filter (for example, `((q AND aq) OR dq) AND cq).
|
|
8
8
|
*/
|
|
9
9
|
aq: string;
|
|
10
10
|
/**
|
|
@@ -12,13 +12,13 @@ type AdvancedSearchQueriesDefaultFiltersState = {
|
|
|
12
12
|
*/
|
|
13
13
|
lq: string;
|
|
14
14
|
/**
|
|
15
|
-
* The initial dq filter, or disjunction query expression filter (
|
|
15
|
+
* The initial dq filter, or disjunction query expression filter (for example, `((q AND aq) OR dq) AND cq).
|
|
16
16
|
*/
|
|
17
17
|
dq: string;
|
|
18
18
|
};
|
|
19
19
|
export interface AdvancedSearchQueriesState {
|
|
20
20
|
/**
|
|
21
|
-
* The cq filter (
|
|
21
|
+
* The cq filter (for example, `((q AND aq) OR dq) AND cq).
|
|
22
22
|
*/
|
|
23
23
|
cq: string;
|
|
24
24
|
/**
|
|
@@ -28,7 +28,7 @@ export interface AdvancedSearchQueriesState {
|
|
|
28
28
|
*/
|
|
29
29
|
cqWasSet: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* The aq filter (
|
|
31
|
+
* The aq filter (for example, `((q AND aq) OR dq) AND cq).
|
|
32
32
|
*/
|
|
33
33
|
aq: string;
|
|
34
34
|
/**
|
|
@@ -53,7 +53,7 @@ export interface AdvancedSearchQueriesState {
|
|
|
53
53
|
/**
|
|
54
54
|
* The dq filter, or disjunction query expression.
|
|
55
55
|
*
|
|
56
|
-
* This is the disjunctive part of the query expression that is merged with the other expression parts using an OR boolean operator (
|
|
56
|
+
* This is the disjunctive part of the query expression that is merged with the other expression parts using an OR boolean operator (for example, `((q AND aq) OR dq) AND cq).
|
|
57
57
|
*/
|
|
58
58
|
dq: string;
|
|
59
59
|
/**
|
|
@@ -4,7 +4,7 @@ import type { SearchAction } from '../search/search-actions.js';
|
|
|
4
4
|
import { type ClickAction, type CustomAction, type LegacySearchAction } from './analytics-utils.js';
|
|
5
5
|
export interface LogSearchEventActionCreatorPayload {
|
|
6
6
|
/**
|
|
7
|
-
* The identifier of the search action (
|
|
7
|
+
* The identifier of the search action (for example, `interfaceLoad`).
|
|
8
8
|
* */
|
|
9
9
|
evt: string;
|
|
10
10
|
/**
|
|
@@ -15,7 +15,7 @@ export interface LogSearchEventActionCreatorPayload {
|
|
|
15
15
|
export declare const logSearchEvent: (p: LogSearchEventActionCreatorPayload) => LegacySearchAction;
|
|
16
16
|
export interface LogClickEventActionCreatorPayload {
|
|
17
17
|
/**
|
|
18
|
-
* The identifier of the click action (
|
|
18
|
+
* The identifier of the click action (for example, `documentOpen`).
|
|
19
19
|
* */
|
|
20
20
|
evt: string;
|
|
21
21
|
/**
|
|
@@ -36,7 +36,7 @@ export declare enum SearchPageEvents {
|
|
|
36
36
|
*/
|
|
37
37
|
breadcrumbResetAll = "breadcrumbResetAll",
|
|
38
38
|
/**
|
|
39
|
-
* Identifies the click event that gets logged when a user clicks
|
|
39
|
+
* Identifies the click event that gets logged when a user clicks a search result to open an item.
|
|
40
40
|
*/
|
|
41
41
|
documentOpen = "documentOpen",
|
|
42
42
|
/**
|
|
@@ -144,11 +144,11 @@ export declare enum SearchPageEvents {
|
|
|
144
144
|
*/
|
|
145
145
|
collapseSmartSnippetSuggestion = "collapseSmartSnippetSuggestion",
|
|
146
146
|
/**
|
|
147
|
-
* Identifies the custom event that gets logged when a user clicks
|
|
147
|
+
* Identifies the custom event that gets logged when a user clicks the source of an answer in a smart snippet.
|
|
148
148
|
*/
|
|
149
149
|
openSmartSnippetSource = "openSmartSnippetSource",
|
|
150
150
|
/**
|
|
151
|
-
* Identifies the custom event that gets logged when a user clicks
|
|
151
|
+
* Identifies the custom event that gets logged when a user clicks the source of a snippet suggestion for a related question.
|
|
152
152
|
*/
|
|
153
153
|
openSmartSnippetSuggestionSource = "openSmartSnippetSuggestionSource",
|
|
154
154
|
/**
|
|
@@ -49,7 +49,7 @@ export interface SearchAnalyticsActionCreators {
|
|
|
49
49
|
*/
|
|
50
50
|
logInterfaceChange(): LegacySearchAction;
|
|
51
51
|
/**
|
|
52
|
-
* The event to log when a user triggers a search by clicking
|
|
52
|
+
* The event to log when a user triggers a search by clicking a did-you-mean suggestion.
|
|
53
53
|
*
|
|
54
54
|
* @returns A dispatchable action.
|
|
55
55
|
*/
|
|
@@ -8,7 +8,7 @@ interface SetCaseAssistConfigurationActionCreatorPayload {
|
|
|
8
8
|
*/
|
|
9
9
|
locale?: string;
|
|
10
10
|
/**
|
|
11
|
-
* The base URL to use to proxy Coveo case assist requests (
|
|
11
|
+
* The base URL to use to proxy Coveo case assist requests (for example, `https://example.com/search`).
|
|
12
12
|
*
|
|
13
13
|
* This is an advanced option that you only set if you proxy Coveo case assist through your own
|
|
14
14
|
* server. In most cases, you should not set this option.
|
|
@@ -9,7 +9,7 @@ export interface CaseAssistConfigurationState {
|
|
|
9
9
|
*/
|
|
10
10
|
locale?: string;
|
|
11
11
|
/**
|
|
12
|
-
* The base URL to use to proxy Coveo case assist requests (
|
|
12
|
+
* The base URL to use to proxy Coveo case assist requests (for example, `https://example.com/search`).
|
|
13
13
|
*
|
|
14
14
|
* This is an advanced option that you only set if you proxy Coveo case assist through your own
|
|
15
15
|
* server. In most cases, you should not set this option.
|
|
@@ -2,7 +2,7 @@ import type { GetCaseClassificationsResponse } from '../../api/service/case-assi
|
|
|
2
2
|
import type { CaseAssistConfigurationSection, CaseFieldSection, CaseInputSection, ConfigurationSection, DebugSection } from '../../state/state-sections.js';
|
|
3
3
|
export interface SetCaseFieldActionCreatorPayload {
|
|
4
4
|
/**
|
|
5
|
-
* The name of the field whose value is being updated (
|
|
5
|
+
* The name of the field whose value is being updated (for example, product, category, model)
|
|
6
6
|
*/
|
|
7
7
|
fieldName: string;
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface SetCaseInputActionCreatorPayload {
|
|
2
2
|
/**
|
|
3
|
-
* The name of the field whose value is being updated (
|
|
3
|
+
* The name of the field whose value is being updated (for example, subject, description, product, category).
|
|
4
4
|
*/
|
|
5
5
|
fieldName: string;
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ export type UpdateBasicConfigurationPayload = UpdateBasicConfigurationActionCrea
|
|
|
3
3
|
export declare const updateBasicConfiguration: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: UpdateBasicConfigurationActionCreatorPayload], UpdateBasicConfigurationActionCreatorPayload, "commerce/configuration/updateBasicConfiguration", never, never>;
|
|
4
4
|
export type UpdateProxyBaseUrlPayload = {
|
|
5
5
|
/**
|
|
6
|
-
* The base URL to use to proxy Coveo commerce requests (
|
|
6
|
+
* The base URL to use to proxy Coveo commerce requests (for example, `https://example.com/commerce`).
|
|
7
7
|
*
|
|
8
8
|
* This is an advanced option that you only set if you proxy Coveo commerce requests through your own
|
|
9
9
|
* server. In most cases, you should not set this option.
|
|
@@ -11,7 +11,7 @@ interface CommerceState {
|
|
|
11
11
|
*
|
|
12
12
|
* By default, will append `/rest/organizations/{organizationId}/commerce/v2` to the automatically resolved
|
|
13
13
|
* platform [organization endpoint](https://docs.coveo.com/en/mcc80216)
|
|
14
|
-
* (
|
|
14
|
+
* (that is, `https;://<ORG_ID>.org<hipaa|dev|stg|>.coveo.com`)
|
|
15
15
|
*
|
|
16
16
|
* If necessary, you can override this value by specifying a `commerce.proxyBaseUrl` in the configuration of your
|
|
17
17
|
* commerce engine, or by manually dispatching the `updateProxyBaseUrl` action.
|
|
@@ -13,7 +13,7 @@ export declare const clearAllCoreFacets: import("@reduxjs/toolkit").ActionCreato
|
|
|
13
13
|
export declare const deleteAllCoreFacets: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"commerce/facets/core/deleteAll">;
|
|
14
14
|
export type DeselectAllValuesInCoreFacetPayload = {
|
|
15
15
|
/**
|
|
16
|
-
* The unique identifier of the facet (
|
|
16
|
+
* The unique identifier of the facet (for example, `"1"`).
|
|
17
17
|
*/
|
|
18
18
|
facetId: string;
|
|
19
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LocationFacetValue } from '../facet-set/interfaces/response.js';
|
|
2
2
|
export interface ToggleSelectLocationFacetValuePayload {
|
|
3
3
|
/**
|
|
4
|
-
* The unique identifier of the facet (
|
|
4
|
+
* The unique identifier of the facet (for example, `"1"`).
|
|
5
5
|
*/
|
|
6
6
|
facetId: string;
|
|
7
7
|
/**
|
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
import type { ManualRangeSection } from '../../../../state/state-sections.js';
|
|
2
|
-
export declare const manualNumericFacetSelector: (
|
|
3
|
-
clearCache: () => void;
|
|
4
|
-
resultsCount: () => number;
|
|
5
|
-
resetResultsCount: () => void;
|
|
6
|
-
} & {
|
|
7
|
-
resultFunc: (resultFuncArgs_0: import("../../../../ssr.index.js").NumericRangeRequest | undefined) => import("../../../../ssr.index.js").NumericRangeRequest | undefined;
|
|
8
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../../../../ssr.index.js").NumericRangeRequest | undefined) => import("../../../../ssr.index.js").NumericRangeRequest | undefined) & {
|
|
9
|
-
clearCache: () => void;
|
|
10
|
-
resultsCount: () => number;
|
|
11
|
-
resetResultsCount: () => void;
|
|
12
|
-
};
|
|
13
|
-
lastResult: () => import("../../../../ssr.index.js").NumericRangeRequest | undefined;
|
|
14
|
-
dependencies: [(state: ManualRangeSection, facetId: string) => import("../../../../ssr.index.js").NumericRangeRequest | undefined];
|
|
15
|
-
recomputations: () => number;
|
|
16
|
-
resetRecomputations: () => void;
|
|
17
|
-
dependencyRecomputations: () => number;
|
|
18
|
-
resetDependencyRecomputations: () => void;
|
|
19
|
-
} & {
|
|
20
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
21
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
22
|
-
};
|
|
2
|
+
export declare const manualNumericFacetSelector: (state: ManualRangeSection, facetId: string) => import("../../../../ssr.index.js").NumericRangeRequest | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NumericRangeRequest } from '../../../facets/range-facets/numeric-facet-set/interfaces/request.js';
|
|
2
2
|
export interface ToggleSelectNumericFacetValuePayload {
|
|
3
3
|
/**
|
|
4
|
-
* The unique identifier of the facet (
|
|
4
|
+
* The unique identifier of the facet (for example, `"1"`).
|
|
5
5
|
*/
|
|
6
6
|
facetId: string;
|
|
7
7
|
/**
|
|
@@ -21,7 +21,7 @@ export type ToggleExcludeNumericFacetValuePayload = ToggleSelectNumericFacetValu
|
|
|
21
21
|
export declare const toggleExcludeNumericFacetValue: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: ToggleSelectNumericFacetValuePayload], ToggleSelectNumericFacetValuePayload, "commerce/facets/numericFacet/toggleExcludeValue", never, never>;
|
|
22
22
|
export interface UpdateNumericFacetValuesPayload {
|
|
23
23
|
/**
|
|
24
|
-
* The unique identifier of the facet (
|
|
24
|
+
* The unique identifier of the facet (for example, `"1"`).
|
|
25
25
|
*/
|
|
26
26
|
facetId: string;
|
|
27
27
|
/**
|
|
@@ -32,7 +32,7 @@ export interface UpdateNumericFacetValuesPayload {
|
|
|
32
32
|
export declare const updateNumericFacetValues: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: UpdateNumericFacetValuesPayload], UpdateNumericFacetValuesPayload, "commerce/facets/numericFacet/updateValues", import("@reduxjs/toolkit").SerializedError | null, never>;
|
|
33
33
|
export type UpdateManualNumericFacetRangePayload = {
|
|
34
34
|
/**
|
|
35
|
-
* The unique identifier of the facet (
|
|
35
|
+
* The unique identifier of the facet (for example, `"1"`).
|
|
36
36
|
*/
|
|
37
37
|
facetId: string;
|
|
38
38
|
} & Omit<NumericRangeRequest, 'previousState'>;
|
|
@@ -1,127 +1,7 @@
|
|
|
1
1
|
import type { CommercePaginationSection } from '../../../state/state-sections.js';
|
|
2
|
-
export declare const perPagePrincipalSelector: (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
9
|
-
clearCache: () => void;
|
|
10
|
-
resultsCount: () => number;
|
|
11
|
-
resetResultsCount: () => void;
|
|
12
|
-
};
|
|
13
|
-
lastResult: () => number;
|
|
14
|
-
dependencies: [(state: Partial<CommercePaginationSection>) => number];
|
|
15
|
-
recomputations: () => number;
|
|
16
|
-
resetRecomputations: () => void;
|
|
17
|
-
dependencyRecomputations: () => number;
|
|
18
|
-
resetDependencyRecomputations: () => void;
|
|
19
|
-
} & {
|
|
20
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
21
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
22
|
-
};
|
|
23
|
-
export declare const perPageRecommendationSelector: ((state: Partial<CommercePaginationSection>, slotId: string) => number) & {
|
|
24
|
-
clearCache: () => void;
|
|
25
|
-
resultsCount: () => number;
|
|
26
|
-
resetResultsCount: () => void;
|
|
27
|
-
} & {
|
|
28
|
-
resultFunc: (resultFuncArgs_0: number) => number;
|
|
29
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
resultsCount: () => number;
|
|
32
|
-
resetResultsCount: () => void;
|
|
33
|
-
};
|
|
34
|
-
lastResult: () => number;
|
|
35
|
-
dependencies: [(state: Partial<CommercePaginationSection>, slotId: string) => number];
|
|
36
|
-
recomputations: () => number;
|
|
37
|
-
resetRecomputations: () => void;
|
|
38
|
-
dependencyRecomputations: () => number;
|
|
39
|
-
resetDependencyRecomputations: () => void;
|
|
40
|
-
} & {
|
|
41
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
42
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
43
|
-
};
|
|
44
|
-
export declare const totalEntriesPrincipalSelector: ((state: Partial<CommercePaginationSection>) => number) & {
|
|
45
|
-
clearCache: () => void;
|
|
46
|
-
resultsCount: () => number;
|
|
47
|
-
resetResultsCount: () => void;
|
|
48
|
-
} & {
|
|
49
|
-
resultFunc: (resultFuncArgs_0: number) => number;
|
|
50
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
51
|
-
clearCache: () => void;
|
|
52
|
-
resultsCount: () => number;
|
|
53
|
-
resetResultsCount: () => void;
|
|
54
|
-
};
|
|
55
|
-
lastResult: () => number;
|
|
56
|
-
dependencies: [(state: Partial<CommercePaginationSection>) => number];
|
|
57
|
-
recomputations: () => number;
|
|
58
|
-
resetRecomputations: () => void;
|
|
59
|
-
dependencyRecomputations: () => number;
|
|
60
|
-
resetDependencyRecomputations: () => void;
|
|
61
|
-
} & {
|
|
62
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
63
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
64
|
-
};
|
|
65
|
-
export declare const totalEntriesRecommendationSelector: ((state: Partial<CommercePaginationSection>, slotId: string) => number) & {
|
|
66
|
-
clearCache: () => void;
|
|
67
|
-
resultsCount: () => number;
|
|
68
|
-
resetResultsCount: () => void;
|
|
69
|
-
} & {
|
|
70
|
-
resultFunc: (resultFuncArgs_0: number) => number;
|
|
71
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
72
|
-
clearCache: () => void;
|
|
73
|
-
resultsCount: () => number;
|
|
74
|
-
resetResultsCount: () => void;
|
|
75
|
-
};
|
|
76
|
-
lastResult: () => number;
|
|
77
|
-
dependencies: [(state: Partial<CommercePaginationSection>, slotId: string) => number];
|
|
78
|
-
recomputations: () => number;
|
|
79
|
-
resetRecomputations: () => void;
|
|
80
|
-
dependencyRecomputations: () => number;
|
|
81
|
-
resetDependencyRecomputations: () => void;
|
|
82
|
-
} & {
|
|
83
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
84
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
85
|
-
};
|
|
86
|
-
export declare const pagePrincipalSelector: ((state: Partial<CommercePaginationSection>) => number) & {
|
|
87
|
-
clearCache: () => void;
|
|
88
|
-
resultsCount: () => number;
|
|
89
|
-
resetResultsCount: () => void;
|
|
90
|
-
} & {
|
|
91
|
-
resultFunc: (resultFuncArgs_0: number) => number;
|
|
92
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
93
|
-
clearCache: () => void;
|
|
94
|
-
resultsCount: () => number;
|
|
95
|
-
resetResultsCount: () => void;
|
|
96
|
-
};
|
|
97
|
-
lastResult: () => number;
|
|
98
|
-
dependencies: [(state: Partial<CommercePaginationSection>) => number];
|
|
99
|
-
recomputations: () => number;
|
|
100
|
-
resetRecomputations: () => void;
|
|
101
|
-
dependencyRecomputations: () => number;
|
|
102
|
-
resetDependencyRecomputations: () => void;
|
|
103
|
-
} & {
|
|
104
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
105
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
106
|
-
};
|
|
107
|
-
export declare const pageRecommendationSelector: ((state: Partial<CommercePaginationSection>, slotId: string) => number) & {
|
|
108
|
-
clearCache: () => void;
|
|
109
|
-
resultsCount: () => number;
|
|
110
|
-
resetResultsCount: () => void;
|
|
111
|
-
} & {
|
|
112
|
-
resultFunc: (resultFuncArgs_0: number) => number;
|
|
113
|
-
memoizedResultFunc: ((resultFuncArgs_0: number) => number) & {
|
|
114
|
-
clearCache: () => void;
|
|
115
|
-
resultsCount: () => number;
|
|
116
|
-
resetResultsCount: () => void;
|
|
117
|
-
};
|
|
118
|
-
lastResult: () => number;
|
|
119
|
-
dependencies: [(state: Partial<CommercePaginationSection>, slotId: string) => number];
|
|
120
|
-
recomputations: () => number;
|
|
121
|
-
resetRecomputations: () => void;
|
|
122
|
-
dependencyRecomputations: () => number;
|
|
123
|
-
resetDependencyRecomputations: () => void;
|
|
124
|
-
} & {
|
|
125
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
126
|
-
memoize: typeof import("reselect").weakMapMemoize;
|
|
127
|
-
};
|
|
2
|
+
export declare const perPagePrincipalSelector: (state: Partial<CommercePaginationSection>) => number;
|
|
3
|
+
export declare const perPageRecommendationSelector: (state: Partial<CommercePaginationSection>, slotId: string) => number;
|
|
4
|
+
export declare const totalEntriesPrincipalSelector: (state: Partial<CommercePaginationSection>) => number;
|
|
5
|
+
export declare const totalEntriesRecommendationSelector: (state: Partial<CommercePaginationSection>, slotId: string) => number;
|
|
6
|
+
export declare const pagePrincipalSelector: (state: Partial<CommercePaginationSection>) => number;
|
|
7
|
+
export declare const pageRecommendationSelector: (state: Partial<CommercePaginationSection>, slotId: string) => number;
|