@coveo/atomic 3.51.0 → 3.52.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/custom-elements.json +947 -831
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -8
- package/dist/atomic/components/_index.js +97 -25
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +2 -2
- package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +1 -0
- package/dist/atomic/components/components/common/facets/timeframe-facet-common.js +1 -0
- package/dist/atomic/components/components/common/generated-answer/atomic-answer-content/atomic-answer-content.js +166 -0
- package/dist/atomic/components/components/common/generated-answer/atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.js +155 -0
- package/dist/atomic/components/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.js +165 -0
- package/dist/atomic/components/components/common/generated-answer/render-follow-up-input.js +66 -0
- package/dist/atomic/components/components/common/generated-answer/styles/generated-answer.tw.css.js +1 -1
- package/dist/atomic/components/components/insight/atomic-insight-result-action/atomic-insight-result-action.js +169 -0
- package/dist/atomic/components/components/insight/atomic-insight-result-children/atomic-insight-result-children.js +3 -2
- package/dist/atomic/components/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.js +79 -0
- package/dist/atomic/components/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.js +267 -0
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-session/atomic-insight-user-actions-session.js +1 -1
- package/dist/atomic/components/components/insight/atomic-insight-user-actions-timeline/atomic-insight-user-actions-timeline.js +1 -1
- package/dist/atomic/components/components/insight/index.js +3 -0
- package/dist/atomic/components/components/insight/lazy-index.js +3 -0
- package/dist/atomic/components/components/search/atomic-external/atomic-external.js +1 -1
- package/dist/atomic/components/components/search/atomic-generated-answer/atomic-generated-answer.js +96 -9
- package/dist/atomic/components/components/search/atomic-search-box/atomic-search-box.js +2 -2
- package/dist/atomic/components/decorators/bindings.js +1 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/mixins/bindings-mixin.js +1 -1
- package/dist/atomic/components/utils/custom-element-tags.js +6 -2
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +2 -2
- package/dist/atomic/index.esm.js +1 -1
- package/dist/atomic/index.esm.js.map +1 -1
- package/dist/atomic/lang/cs.json +1 -1
- package/dist/atomic/lang/da.json +1 -1
- package/dist/atomic/lang/de.json +1 -1
- package/dist/atomic/lang/dev.json +1 -1
- package/dist/atomic/lang/el.json +1 -1
- package/dist/atomic/lang/en.json +1 -1
- package/dist/atomic/lang/es.json +1 -1
- package/dist/atomic/lang/fi.json +1 -1
- package/dist/atomic/lang/fr.json +1 -1
- package/dist/atomic/lang/hu.json +1 -1
- package/dist/atomic/lang/id.json +1 -1
- package/dist/atomic/lang/it.json +1 -1
- package/dist/atomic/lang/ja.json +1 -1
- package/dist/atomic/lang/ko.json +1 -1
- package/dist/atomic/lang/nl.json +1 -1
- package/dist/atomic/lang/no.json +1 -1
- package/dist/atomic/lang/pl.json +1 -1
- package/dist/atomic/lang/pt-BR.json +1 -1
- package/dist/atomic/lang/pt.json +1 -1
- package/dist/atomic/lang/ru.json +1 -1
- package/dist/atomic/lang/sv.json +1 -1
- package/dist/atomic/lang/th.json +1 -1
- package/dist/atomic/lang/tr.json +1 -1
- package/dist/atomic/lang/zh-CN.json +1 -1
- package/dist/atomic/lang/zh-TW.json +1 -1
- package/dist/atomic/lang/zh.json +1 -1
- package/dist/atomic/p-998f7983.js +3 -0
- package/dist/atomic/p-998f7983.js.map +1 -0
- package/dist/cjs/_index.cjs.js +110 -28
- package/dist/cjs/_loader.cjs.js +3 -4
- package/dist/cjs/app-globals-18f43c37.js +506 -0
- package/dist/cjs/app-globals-18f43c37.js.map +1 -0
- package/dist/cjs/atomic.cjs.js +4 -5
- package/dist/cjs/atomic.cjs.js.map +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_index.js +97 -23
- package/dist/esm/_loader.js +3 -4
- package/dist/esm/app-globals-c5b073da.js +481 -0
- package/dist/esm/app-globals-c5b073da.js.map +1 -0
- package/dist/esm/atomic.js +3 -4
- package/dist/esm/atomic.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/common/context/bindings-context.d.ts +1 -1
- package/dist/types/components/common/facets/timeframe-facet-common.d.ts +1 -0
- package/dist/types/components/common/generated-answer/{answerContent/answer-content.d.ts → atomic-answer-content/atomic-answer-content.d.ts} +7 -6
- package/dist/types/components/common/generated-answer/{generated-answer-thread-item/generated-answer-thread-item.d.ts → atomic-generated-answer-thread-item/atomic-generated-answer-thread-item.d.ts} +3 -3
- package/dist/types/components/common/generated-answer/atomic-generated-answers-thread/atomic-generated-answers-thread.d.ts +42 -0
- package/dist/types/components/insight/atomic-insight-result-action/atomic-insight-result-action.d.ts +33 -18
- package/dist/types/components/insight/atomic-insight-result-children/atomic-insight-result-children.d.ts +1 -0
- package/dist/types/components/insight/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +62 -0
- package/dist/types/components/insight/atomic-insight-timeframe-facet/atomic-insight-timeframe-facet.d.ts +47 -28
- package/dist/types/components/insight/index.d.ts +3 -0
- package/dist/types/components/search/atomic-external/atomic-external.d.ts +1 -1
- package/dist/types/components/search/atomic-generated-answer/atomic-generated-answer.d.ts +11 -2
- package/dist/types/components.d.ts +0 -298
- package/dist/types/decorators/bindings.d.ts +1 -1
- package/dist/types/index.d.ts +2 -3
- package/dist/types/utils/accessibility-utils.d.ts +2 -2
- package/dist/types/utils/init-queue.d.ts +1 -1
- package/docs/atomic-docs.json +2 -43
- package/package.json +4 -8
- package/dist/atomic/components/_commonjsHelpers.js +0 -5
- package/dist/atomic/components/_commonjsHelpers.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-action.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-action.js +0 -272
- package/dist/atomic/components/atomic-insight-result-action.js.map +0 -1
- package/dist/atomic/components/atomic-insight-result-children-template.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-result-children-template.js +0 -242
- package/dist/atomic/components/atomic-insight-result-children-template.js.map +0 -1
- package/dist/atomic/components/atomic-insight-timeframe-facet.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-timeframe-facet.js +0 -816
- package/dist/atomic/components/atomic-insight-timeframe-facet.js.map +0 -1
- package/dist/atomic/components/atomic-stencil-facet-date-input.d.ts +0 -11
- package/dist/atomic/components/atomic-stencil-facet-date-input.js +0 -107
- package/dist/atomic/components/atomic-stencil-facet-date-input.js.map +0 -1
- package/dist/atomic/components/date-utils.js +0 -26
- package/dist/atomic/components/date-utils.js.map +0 -1
- package/dist/atomic/components/initialization-utils.js +0 -226
- package/dist/atomic/components/initialization-utils.js.map +0 -1
- package/dist/atomic/components/props-utils.js +0 -1457
- package/dist/atomic/components/props-utils.js.map +0 -1
- package/dist/atomic/components/stencil-button.js +0 -148
- package/dist/atomic/components/stencil-button.js.map +0 -1
- package/dist/atomic/p-1580513b.js +0 -2
- package/dist/atomic/p-1580513b.js.map +0 -1
- package/dist/atomic/p-1df0744f.entry.js +0 -9
- package/dist/atomic/p-1df0744f.entry.js.map +0 -1
- package/dist/atomic/p-2045a1b1.js +0 -2
- package/dist/atomic/p-2045a1b1.js.map +0 -1
- package/dist/atomic/p-4573c419.js +0 -2
- package/dist/atomic/p-4573c419.js.map +0 -1
- package/dist/atomic/p-500bf5c4.entry.js +0 -2
- package/dist/atomic/p-500bf5c4.entry.js.map +0 -1
- package/dist/atomic/p-5226a938.js +0 -3
- package/dist/atomic/p-5226a938.js.map +0 -1
- package/dist/atomic/p-720863c3.js +0 -2
- package/dist/atomic/p-720863c3.js.map +0 -1
- package/dist/atomic/p-81336626.entry.js +0 -2
- package/dist/atomic/p-81336626.entry.js.map +0 -1
- package/dist/atomic/p-81d6e743.js +0 -2
- package/dist/atomic/p-81d6e743.js.map +0 -1
- package/dist/atomic/p-aad3b4ec.js +0 -3
- package/dist/atomic/p-aad3b4ec.js.map +0 -1
- package/dist/atomic/p-b5af331b.entry.js +0 -2
- package/dist/atomic/p-b5af331b.entry.js.map +0 -1
- package/dist/atomic/p-b7209471.js +0 -2
- package/dist/atomic/p-b7209471.js.map +0 -1
- package/dist/atomic/p-dac60354.js +0 -2
- package/dist/atomic/p-dac60354.js.map +0 -1
- package/dist/atomic/p-e1255160.js +0 -2
- package/dist/atomic/p-e1255160.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-68cdf74f.js +0 -7
- package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +0 -153
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +0 -222
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +0 -790
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +0 -86
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js.map +0 -1
- package/dist/cjs/date-utils-aae1d713.js +0 -28
- package/dist/cjs/date-utils-aae1d713.js.map +0 -1
- package/dist/cjs/event-utils-9bfcf3c5.js +0 -27
- package/dist/cjs/event-utils-9bfcf3c5.js.map +0 -1
- package/dist/cjs/index-122375df.js +0 -1394
- package/dist/cjs/index-122375df.js.map +0 -1
- package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js +0 -95
- package/dist/cjs/initialization-lit-stencil-common-utils-f19f74c0.js.map +0 -1
- package/dist/cjs/initialization-utils-c2821271.js +0 -148
- package/dist/cjs/initialization-utils-c2821271.js.map +0 -1
- package/dist/cjs/props-utils-e4f29f1e.js +0 -1464
- package/dist/cjs/props-utils-e4f29f1e.js.map +0 -1
- package/dist/cjs/stencil-button-bf22eea4.js +0 -130
- package/dist/cjs/stencil-button-bf22eea4.js.map +0 -1
- package/dist/cjs/stencil-result-template-decorators-96954751.js +0 -114
- package/dist/cjs/stencil-result-template-decorators-96954751.js.map +0 -1
- package/dist/esm/_commonjsHelpers-1c8beb5f.js +0 -5
- package/dist/esm/_commonjsHelpers-1c8beb5f.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/atomic-insight-result-action.entry.js +0 -149
- package/dist/esm/atomic-insight-result-action.entry.js.map +0 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +0 -218
- package/dist/esm/atomic-insight-result-children-template.entry.js.map +0 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +0 -786
- package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +0 -1
- package/dist/esm/atomic-stencil-facet-date-input.entry.js +0 -82
- package/dist/esm/atomic-stencil-facet-date-input.entry.js.map +0 -1
- package/dist/esm/date-utils-3b955e79.js +0 -26
- package/dist/esm/date-utils-3b955e79.js.map +0 -1
- package/dist/esm/event-utils-8de63ec3.js +0 -24
- package/dist/esm/event-utils-8de63ec3.js.map +0 -1
- package/dist/esm/index-4d679e44.js +0 -1364
- package/dist/esm/index-4d679e44.js.map +0 -1
- package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js +0 -88
- package/dist/esm/initialization-lit-stencil-common-utils-e7755434.js.map +0 -1
- package/dist/esm/initialization-utils-9ff399ff.js +0 -144
- package/dist/esm/initialization-utils-9ff399ff.js.map +0 -1
- package/dist/esm/props-utils-76043c82.js +0 -1457
- package/dist/esm/props-utils-76043c82.js.map +0 -1
- package/dist/esm/stencil-button-28de709c.js +0 -128
- package/dist/esm/stencil-button-28de709c.js.map +0 -1
- package/dist/esm/stencil-result-template-decorators-4c2e5132.js +0 -110
- package/dist/esm/stencil-result-template-decorators-4c2e5132.js.map +0 -1
- package/dist/types/components/commerce/product-template-component-utils/context/stencil-product-template-decorators.d.ts +0 -14
- package/dist/types/components/common/atomic-rating/stencil-rating.d.ts +0 -18
- package/dist/types/components/common/atomic-result-placeholder/stencil-placeholders.d.ts +0 -20
- package/dist/types/components/common/breadbox/stencil-breadcrumb-button.d.ts +0 -15
- package/dist/types/components/common/breadbox/stencil-breadcrumb-clear-all.d.ts +0 -13
- package/dist/types/components/common/breadbox/stencil-breadcrumb-container.d.ts +0 -11
- package/dist/types/components/common/breadbox/stencil-breadcrumb-content.d.ts +0 -14
- package/dist/types/components/common/breadbox/stencil-breadcrumb-show-less.d.ts +0 -13
- package/dist/types/components/common/breadbox/stencil-breadcrumb-show-more.d.ts +0 -14
- package/dist/types/components/common/facets/category-facet/stencil-all-categories-button.d.ts +0 -13
- package/dist/types/components/common/facets/category-facet/stencil-child-value-link.d.ts +0 -9
- package/dist/types/components/common/facets/category-facet/stencil-children-as-tree-container.d.ts +0 -9
- package/dist/types/components/common/facets/category-facet/stencil-parent-as-tree-container.d.ts +0 -10
- package/dist/types/components/common/facets/category-facet/stencil-parent-button.d.ts +0 -16
- package/dist/types/components/common/facets/category-facet/stencil-parent-value-link.d.ts +0 -9
- package/dist/types/components/common/facets/category-facet/stencil-search-results-container.d.ts +0 -5
- package/dist/types/components/common/facets/category-facet/stencil-search-value.d.ts +0 -19
- package/dist/types/components/common/facets/category-facet/stencil-value-as-tree-container.d.ts +0 -5
- package/dist/types/components/common/facets/category-facet/stencil-value-link.d.ts +0 -20
- package/dist/types/components/common/facets/facet-container/stencil-facet-container.d.ts +0 -5
- package/dist/types/components/common/facets/facet-header/stencil-facet-header.d.ts +0 -17
- package/dist/types/components/common/facets/facet-placeholder/stencil-facet-placeholder.d.ts +0 -10
- package/dist/types/components/common/facets/facet-search/stencil-facet-search-input-guard.d.ts +0 -11
- package/dist/types/components/common/facets/facet-search/stencil-facet-search-input.d.ts +0 -14
- package/dist/types/components/common/facets/facet-search/stencil-facet-search-matches.d.ts +0 -14
- package/dist/types/components/common/facets/facet-search/stencil-facet-search-value.d.ts +0 -6
- package/dist/types/components/common/facets/facet-show-more-less/stencil-facet-show-more-less.d.ts +0 -17
- package/dist/types/components/common/facets/facet-value/stencil-facet-value.d.ts +0 -22
- package/dist/types/components/common/facets/facet-value-box/stencil-facet-value-box.d.ts +0 -6
- package/dist/types/components/common/facets/facet-value-checkbox/stencil-facet-value-checkbox.d.ts +0 -11
- package/dist/types/components/common/facets/facet-value-exclude/stencil-facet-value-exclude.d.ts +0 -10
- package/dist/types/components/common/facets/facet-value-label-highlight/stencil-facet-value-label-highlight.d.ts +0 -12
- package/dist/types/components/common/facets/facet-value-link/stencil-facet-value-link.d.ts +0 -10
- package/dist/types/components/common/facets/facet-values-group/stencil-facet-values-group.d.ts +0 -12
- package/dist/types/components/common/facets/numeric-facet/stencil-value-link.d.ts +0 -12
- package/dist/types/components/common/facets/numeric-facet/stencil-values-container.d.ts +0 -11
- package/dist/types/components/common/facets/stencil-facet-common.d.ts +0 -43
- package/dist/types/components/common/facets/stencil-facet-date-input/stencil-facet-date-input.d.ts +0 -33
- package/dist/types/components/common/facets/stencil-facet-guard.d.ts +0 -12
- package/dist/types/components/common/facets/stencil-timeframe-facet-common.d.ts +0 -72
- package/dist/types/components/common/generated-answer/generated-answer-common.d.ts +0 -58
- package/dist/types/components/common/generated-answer/generated-content/stencil-generated-markdown-content.d.ts +0 -10
- package/dist/types/components/common/generated-answer/generated-content/stencil-generated-text-content.d.ts +0 -10
- package/dist/types/components/common/generated-answer/stencil-copy-button.d.ts +0 -12
- package/dist/types/components/common/generated-answer/stencil-feedback-button.d.ts +0 -13
- package/dist/types/components/common/generated-answer/stencil-generated-content-container.d.ts +0 -11
- package/dist/types/components/common/generated-answer/stencil-retry-prompt.d.ts +0 -11
- package/dist/types/components/common/generated-answer/stencil-show-button.d.ts +0 -12
- package/dist/types/components/common/generated-answer/stencil-source-citations.d.ts +0 -10
- package/dist/types/components/common/interface/interface-common-stencil.d.ts +0 -34
- package/dist/types/components/common/interface/stencil-i18n.d.ts +0 -11
- package/dist/types/components/common/item-link/stencil-item-link.d.ts +0 -30
- package/dist/types/components/common/item-list/item-list-decorators.d.ts +0 -17
- package/dist/types/components/common/item-list/stencil-display-grid.d.ts +0 -17
- package/dist/types/components/common/item-list/stencil-display-wrapper.d.ts +0 -11
- package/dist/types/components/common/item-list/stencil-item-decorators.d.ts +0 -41
- package/dist/types/components/common/item-list/stencil-item-display-guard.d.ts +0 -10
- package/dist/types/components/common/item-list/stencil-item-list-common.d.ts +0 -31
- package/dist/types/components/common/item-list/stencil-item-list-guard.d.ts +0 -13
- package/dist/types/components/common/item-text/stencil-item-text-fallback.d.ts +0 -14
- package/dist/types/components/common/item-text/stencil-item-text-highlighted.d.ts +0 -13
- package/dist/types/components/common/load-more/guard.d.ts +0 -10
- package/dist/types/components/common/load-more/stencil-button.d.ts +0 -13
- package/dist/types/components/common/load-more/stencil-container.d.ts +0 -5
- package/dist/types/components/common/load-more/stencil-progress-bar.d.ts +0 -10
- package/dist/types/components/common/load-more/stencil-summary.d.ts +0 -13
- package/dist/types/components/common/no-items/stencil-container.d.ts +0 -5
- package/dist/types/components/common/no-items/stencil-guard.d.ts +0 -11
- package/dist/types/components/common/no-items/stencil-magnifying-glass.d.ts +0 -5
- package/dist/types/components/common/no-items/stencil-no-items.d.ts +0 -12
- package/dist/types/components/common/no-items/stencil-tips.d.ts +0 -10
- package/dist/types/components/common/pager/stencil-pager-buttons.d.ts +0 -33
- package/dist/types/components/common/pager/stencil-pager-navigation.d.ts +0 -10
- package/dist/types/components/common/product-template/stencil-product-template-common.d.ts +0 -26
- package/dist/types/components/common/query-correction/stencil-auto-correction.d.ts +0 -12
- package/dist/types/components/common/query-correction/stencil-correction.d.ts +0 -12
- package/dist/types/components/common/query-correction/stencil-guard.d.ts +0 -9
- package/dist/types/components/common/query-correction/stencil-trigger-correction.d.ts +0 -13
- package/dist/types/components/common/query-error/stencil-container.d.ts +0 -5
- package/dist/types/components/common/query-error/stencil-description.d.ts +0 -13
- package/dist/types/components/common/query-error/stencil-details.d.ts +0 -10
- package/dist/types/components/common/query-error/stencil-guard.d.ts +0 -9
- package/dist/types/components/common/query-error/stencil-icon.d.ts +0 -9
- package/dist/types/components/common/query-error/stencil-link.d.ts +0 -11
- package/dist/types/components/common/query-error/stencil-show-more.d.ts +0 -13
- package/dist/types/components/common/query-error/stencil-title.d.ts +0 -12
- package/dist/types/components/common/query-summary/stencil-container.d.ts +0 -9
- package/dist/types/components/common/query-summary/stencil-guard.d.ts +0 -11
- package/dist/types/components/common/query-summary/stencil-utils.d.ts +0 -23
- package/dist/types/components/common/refine-modal/stencil-body.d.ts +0 -7
- package/dist/types/components/common/refine-modal/stencil-button.d.ts +0 -12
- package/dist/types/components/common/refine-modal/stencil-filters.d.ts +0 -20
- package/dist/types/components/common/refine-modal/stencil-guard.d.ts +0 -11
- package/dist/types/components/common/refine-modal/stencil-modal.d.ts +0 -18
- package/dist/types/components/common/refine-modal/stencil-sort.d.ts +0 -11
- package/dist/types/components/common/result-children/stencil-children-wrapper.d.ts +0 -9
- package/dist/types/components/common/result-children/stencil-collection-guard.d.ts +0 -16
- package/dist/types/components/common/result-children/stencil-guard.d.ts +0 -11
- package/dist/types/components/common/result-children/stencil-show-hide-button.d.ts +0 -14
- package/dist/types/components/common/result-templates/stencil-result-template-common.d.ts +0 -24
- package/dist/types/components/common/search-box/stencil-search-box-wrapper.d.ts +0 -10
- package/dist/types/components/common/search-box/stencil-search-text-area.d.ts +0 -22
- package/dist/types/components/common/search-box/stencil-submit-button.d.ts +0 -12
- package/dist/types/components/common/search-box/stencil-text-area-clear-button.d.ts +0 -12
- package/dist/types/components/common/smart-snippets/atomic-smart-snippet/stencil-smart-snippet-common.d.ts +0 -31
- package/dist/types/components/common/smart-snippets/atomic-smart-snippet-feedback-modal/stencil-smart-snippet-feedback-modal-common.d.ts +0 -57
- package/dist/types/components/common/smart-snippets/atomic-smart-snippet-suggestions/stencil-smart-snippet-suggestions-common.d.ts +0 -43
- package/dist/types/components/common/smart-snippets/stencil-smart-snippet-feedback-banner.d.ts +0 -18
- package/dist/types/components/common/stencil-button-style.d.ts +0 -11
- package/dist/types/components/common/stencil-button.d.ts +0 -30
- package/dist/types/components/common/stencil-carousel.d.ts +0 -15
- package/dist/types/components/common/stencil-checkbox.d.ts +0 -22
- package/dist/types/components/common/stencil-fieldset-group.d.ts +0 -9
- package/dist/types/components/common/stencil-heading.d.ts +0 -7
- package/dist/types/components/common/stencil-hidden.d.ts +0 -5
- package/dist/types/components/common/stencil-iconButton.d.ts +0 -13
- package/dist/types/components/common/stencil-radio-button.d.ts +0 -12
- package/dist/types/components/common/stencil-switch.d.ts +0 -15
- package/dist/types/components/common/stencil-triStateCheckbox.d.ts +0 -11
- package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +0 -19
- package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +0 -32
- package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +0 -96
- package/dist/types/components/insight/result-templates/atomic-insight-result-children-template/atomic-insight-result-children-template.d.ts +0 -50
- package/dist/types/components/search/facets/facet-segmented-value/stencil-facet-segmented-value.d.ts +0 -6
- package/dist/types/components/search/result-template-component-utils/context/stencil-result-template-decorators.d.ts +0 -32
- package/dist/types/components/search/result-template-components/quickview-iframe/stencil-quickview-iframe.d.ts +0 -14
- package/dist/types/utils/__mocks__/stencil-resource-url.d.ts +0 -1
- package/dist/types/utils/initialization-utils.d.ts +0 -70
- package/dist/types/utils/jsx-utils.d.ts +0 -6
- package/dist/types/utils/stencil-accessibility-utils.d.ts +0 -43
- package/dist/types/utils/stencil-asset-path-utils.d.ts +0 -1
- package/dist/types/utils/stencil-resource-url.d.ts +0 -1
- /package/dist/atomic/components/utils/{initialization-lit-stencil-common-utils.js → initialization-common-utils.js} +0 -0
- /package/dist/types/utils/{initialization-lit-stencil-common-utils.d.ts → initialization-common-utils.d.ts} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
import { JSXBase } from '../../stencil-public-runtime';
|
|
3
|
-
import { AnyBindings } from './interface/bindings.js';
|
|
4
|
-
interface CarouselProps {
|
|
5
|
-
bindings: AnyBindings;
|
|
6
|
-
previousPage(): void;
|
|
7
|
-
nextPage(): void;
|
|
8
|
-
numberOfPages: number;
|
|
9
|
-
currentPage: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated should only be used for Stencil components.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Carousel: FunctionalComponent<CarouselProps & JSXBase.HTMLAttributes<HTMLHeadingElement>>;
|
|
15
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated should only be used for Stencil components.
|
|
4
|
-
*/
|
|
5
|
-
export interface StencilCheckboxProps {
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onToggle(checked: boolean): void;
|
|
8
|
-
key?: string | number;
|
|
9
|
-
id?: string;
|
|
10
|
-
class?: string;
|
|
11
|
-
text?: string;
|
|
12
|
-
part?: string;
|
|
13
|
-
iconPart?: string;
|
|
14
|
-
ariaLabel?: string;
|
|
15
|
-
ariaCurrent?: string;
|
|
16
|
-
ref?(element?: HTMLElement): void;
|
|
17
|
-
onMouseDown?(evt: MouseEvent): void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated should only be used for Stencil components.
|
|
21
|
-
*/
|
|
22
|
-
export declare const StencilCheckbox: FunctionalComponent<StencilCheckboxProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
interface GroupProps {
|
|
3
|
-
label: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated should only be used for Stencil components.
|
|
7
|
-
*/
|
|
8
|
-
export declare const FieldsetGroup: FunctionalComponent<GroupProps>;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
import { JSXBase } from '../../stencil-public-runtime';
|
|
3
|
-
import { HeadingProps } from './heading';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated should only be used for Stencil components.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Heading: FunctionalComponent<Pick<HeadingProps, 'level'> & JSXBase.HTMLAttributes<HTMLHeadingElement>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent, VNode } from '../../stencil-public-runtime';
|
|
2
|
-
import { StencilButtonProps } from './stencil-button';
|
|
3
|
-
interface IconButtonProps extends StencilButtonProps {
|
|
4
|
-
badge?: VNode;
|
|
5
|
-
buttonRef?: (el?: HTMLButtonElement) => void;
|
|
6
|
-
icon: string;
|
|
7
|
-
partPrefix: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated should only be used for Stencil components.
|
|
11
|
-
*/
|
|
12
|
-
export declare const IconButton: FunctionalComponent<IconButtonProps>;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
import { RadioButtonProps } from './radio-button';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated should only be used for Stencil components.
|
|
5
|
-
*/
|
|
6
|
-
export interface StencilRadioButtonProps extends Omit<RadioButtonProps, 'ref'> {
|
|
7
|
-
ref?(element?: HTMLInputElement): void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated should only be used for Stencil components.
|
|
11
|
-
*/
|
|
12
|
-
export declare const RadioButton: FunctionalComponent<StencilRadioButtonProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
2
|
-
interface SwitchProps {
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
onToggle?(checked: boolean): void;
|
|
5
|
-
ariaLabel?: string;
|
|
6
|
-
part?: string;
|
|
7
|
-
tabIndex?: number;
|
|
8
|
-
title?: string;
|
|
9
|
-
withToggle?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated should only be used for Stencil components.
|
|
13
|
-
*/
|
|
14
|
-
export declare const Switch: FunctionalComponent<SwitchProps>;
|
|
15
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FacetValueState } from '@coveo/headless';
|
|
2
|
-
import { FunctionalComponent } from '../../stencil-public-runtime';
|
|
3
|
-
import { StencilCheckboxProps } from './stencil-checkbox';
|
|
4
|
-
type TriStateCheckboxProps = Omit<StencilCheckboxProps, 'checked'> & {
|
|
5
|
-
state: FacetValueState;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated should only be used for Stencil components.
|
|
9
|
-
*/
|
|
10
|
-
export declare const TriStateCheckbox: FunctionalComponent<TriStateCheckboxProps>;
|
|
11
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
|
-
import { i18n } from 'i18next';
|
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-types';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated should only be used for Stencil components.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated should only be used for Stencil components.
|
|
10
|
-
*/
|
|
11
|
-
export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
|
12
|
-
interface InstantItemShowAllButtonProps {
|
|
13
|
-
i18n: i18n;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated should only be used for Stencil components.
|
|
17
|
-
*/
|
|
18
|
-
export declare const InstantItemShowAllButton: FunctionalComponent<InstantItemShowAllButtonProps>;
|
|
19
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
|
2
|
-
import { i18n } from 'i18next';
|
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-types.js';
|
|
4
|
-
interface Suggestion {
|
|
5
|
-
highlightedValue: string;
|
|
6
|
-
rawValue: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated should only be used for Stencil components.
|
|
10
|
-
*/
|
|
11
|
-
export declare const getPartialSearchBoxSuggestionElement: (suggestion: Suggestion, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated should only be used for Stencil components.
|
|
14
|
-
*/
|
|
15
|
-
export declare const QuerySuggestionContainer: FunctionalComponent;
|
|
16
|
-
interface QuerySuggestionIconProps {
|
|
17
|
-
icon: string;
|
|
18
|
-
hasSuggestion: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated should only be used for Stencil components.
|
|
22
|
-
*/
|
|
23
|
-
export declare const QuerySuggestionIcon: FunctionalComponent<QuerySuggestionIconProps>;
|
|
24
|
-
interface QuerySuggestionTextProps {
|
|
25
|
-
suggestion: Suggestion;
|
|
26
|
-
hasQuery: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated should only be used for Stencil components.
|
|
30
|
-
*/
|
|
31
|
-
export declare const QuerySuggestionText: FunctionalComponent<QuerySuggestionTextProps>;
|
|
32
|
-
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { SearchBoxSuggestionElement, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent } from './suggestions-types';
|
|
2
|
-
/**
|
|
3
|
-
* List of suggestions that will be displayed along other lists (for example, recent queries) when the search box's input is selected.
|
|
4
|
-
*/
|
|
5
|
-
export interface SearchBoxSuggestions {
|
|
6
|
-
/**
|
|
7
|
-
* The search box will sort the position of suggestions using this value, the lowest value being first.
|
|
8
|
-
* By default, the DOM position will be used.
|
|
9
|
-
*/
|
|
10
|
-
position: number;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.
|
|
13
|
-
*/
|
|
14
|
-
panel?: 'left' | 'right';
|
|
15
|
-
/**
|
|
16
|
-
* Method that returns the list of elements which will be rendered in the list of suggestions.
|
|
17
|
-
*/
|
|
18
|
-
renderItems(): SearchBoxSuggestionElement[];
|
|
19
|
-
/**
|
|
20
|
-
* Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.
|
|
21
|
-
*/
|
|
22
|
-
onInput?(): Promise<unknown>;
|
|
23
|
-
/**
|
|
24
|
-
* Hook called when the current suggested query changes as the user navigates the list of suggestions.
|
|
25
|
-
* This is used for instant results, which are rendered based on the current suggested query.
|
|
26
|
-
* @param q The new current suggested query.
|
|
27
|
-
*/
|
|
28
|
-
onSuggestedQueryChange?(q: string): Promise<unknown>;
|
|
29
|
-
}
|
|
30
|
-
interface SearchBoxProps {
|
|
31
|
-
getSearchBoxValue: () => string;
|
|
32
|
-
updateQuery: (suggestedQuery: string) => void;
|
|
33
|
-
getSuggestionTimeout: () => number;
|
|
34
|
-
getNumberOfSuggestionsToDisplay: () => number;
|
|
35
|
-
getSuggestionDelay: () => number;
|
|
36
|
-
getLogger: () => Pick<typeof console, 'warn'>;
|
|
37
|
-
getHost: () => HTMLElement;
|
|
38
|
-
}
|
|
39
|
-
export declare class SuggestionManager<SearchBoxController> {
|
|
40
|
-
private ownerSearchBoxProps;
|
|
41
|
-
suggestions: SearchBoxSuggestions[];
|
|
42
|
-
leftSuggestionElements: SearchBoxSuggestionElement[];
|
|
43
|
-
rightSuggestionElements: SearchBoxSuggestionElement[];
|
|
44
|
-
leftPanel: HTMLElement | undefined;
|
|
45
|
-
rightPanel: HTMLElement | undefined;
|
|
46
|
-
triggerSuggestions: () => Promise<void>;
|
|
47
|
-
activeDescendant: string;
|
|
48
|
-
suggestedQuery: string;
|
|
49
|
-
keyboardActiveDescendant: string;
|
|
50
|
-
private queryDataAttribute;
|
|
51
|
-
private suggestionEvents;
|
|
52
|
-
private previousActiveDescendantElement;
|
|
53
|
-
private leftSuggestions;
|
|
54
|
-
private rightSuggestions;
|
|
55
|
-
constructor(ownerSearchBoxProps: SearchBoxProps);
|
|
56
|
-
get partialSuggestionBindings(): Pick<SearchBoxSuggestionsBindings<SearchBoxController>, 'suggestedQuery' | 'clearSuggestions' | 'triggerSuggestions' | 'getSuggestions' | 'getSuggestionElements'>;
|
|
57
|
-
get activeDescendantElement(): HTMLElement | null;
|
|
58
|
-
onSubmit(): void;
|
|
59
|
-
updateActiveDescendant(id?: string): void;
|
|
60
|
-
updateKeyboardActiveDescendant(id?: string): void;
|
|
61
|
-
clickOnActiveElement(): void;
|
|
62
|
-
isRightPanelInFocus(): boolean;
|
|
63
|
-
initializeSuggestions(bindings: SearchBoxSuggestionsBindings<SearchBoxController>): void;
|
|
64
|
-
registerSuggestionsFromEvent(event: CustomEvent<SearchBoxSuggestionsEvent<SearchBoxController>>, bindings: SearchBoxSuggestionsBindings<SearchBoxController>): void;
|
|
65
|
-
registerSuggestions(suggestions: SearchBoxSuggestions): void;
|
|
66
|
-
get isDoubleList(): boolean;
|
|
67
|
-
focusPanel(side: 'left' | 'right'): void;
|
|
68
|
-
clearSuggestions(): void;
|
|
69
|
-
focusNextValue(): Promise<void>;
|
|
70
|
-
focusValue(value: HTMLElement): Promise<void>;
|
|
71
|
-
onSuggestionMouseOver(item: SearchBoxSuggestionElement, side: 'left' | 'right', id: string): Promise<void>;
|
|
72
|
-
onSuggestionClick(item: SearchBoxSuggestionElement, e: Event): Promise<void>;
|
|
73
|
-
get hasSuggestions(): boolean;
|
|
74
|
-
get allSuggestionElements(): SearchBoxSuggestionElement[];
|
|
75
|
-
focusPreviousValue(): Promise<void>;
|
|
76
|
-
get hasActiveDescendant(): boolean;
|
|
77
|
-
private executeQuerySuggestion;
|
|
78
|
-
private get lastValue();
|
|
79
|
-
private get previousOrLastValue();
|
|
80
|
-
private sortSuggestions;
|
|
81
|
-
private get nextOrFirstValue();
|
|
82
|
-
private get firstValue();
|
|
83
|
-
private get panelInFocus();
|
|
84
|
-
private scrollActiveDescendantIntoView;
|
|
85
|
-
private updateQueryFromSuggestion;
|
|
86
|
-
private updateOwnerSearchboxQuery;
|
|
87
|
-
private updateSuggestedQuery;
|
|
88
|
-
private updateSuggestionElements;
|
|
89
|
-
forceUpdate(): void;
|
|
90
|
-
private isPanelInFocus;
|
|
91
|
-
private getAndFilterLeftSuggestionElements;
|
|
92
|
-
private getSuggestionElements;
|
|
93
|
-
private updateDescendants;
|
|
94
|
-
private clearSuggestionElements;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ResultTemplate, ResultTemplateCondition } from '@coveo/headless';
|
|
2
|
-
import { ResultTemplateCommon } from '../../../common/result-templates/stencil-result-template-common';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class AtomicInsightResultChildrenTemplate {
|
|
7
|
-
host: HTMLDivElement;
|
|
8
|
-
error: Error;
|
|
9
|
-
/**
|
|
10
|
-
* A function that must return true on results for the result template to apply.
|
|
11
|
-
* Set programmatically before initialization, not via attribute.
|
|
12
|
-
*
|
|
13
|
-
* For example, the following targets a template and sets a condition to make it apply only to results whose `title` contains `singapore`:
|
|
14
|
-
* `document.querySelector('#target-template').conditions = [(result) => /singapore/i.test(result.title)];`
|
|
15
|
-
*/
|
|
16
|
-
conditions: ResultTemplateCondition[];
|
|
17
|
-
/**
|
|
18
|
-
* The field that, when defined on a result item, would allow the template to be applied.
|
|
19
|
-
*
|
|
20
|
-
* For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are defined: `if-defined="filetype,sourcetype"`
|
|
21
|
-
*/
|
|
22
|
-
ifDefined?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The field that, when defined on a result item, would prevent the template from being applied.
|
|
25
|
-
*
|
|
26
|
-
* For example, a template with the following attribute only applies to result items whose `filetype` and `sourcetype` fields are NOT defined: `if-not-defined="filetype,sourcetype"`
|
|
27
|
-
*/
|
|
28
|
-
ifNotDefined?: string;
|
|
29
|
-
/**
|
|
30
|
-
* The field and values that define which result items the condition must be applied to.
|
|
31
|
-
*
|
|
32
|
-
* For example, a template with the following attribute only applies to result items whose `filetype` is `lithiummessage` or `YouTubePlaylist`: `must-match-filetype="lithiummessage,YouTubePlaylist"`
|
|
33
|
-
*/
|
|
34
|
-
mustMatch: Record<string, string[]>;
|
|
35
|
-
/**
|
|
36
|
-
* The field and values that define which result items the condition must not be applied to.
|
|
37
|
-
*
|
|
38
|
-
* For example, a template with the following attribute only applies to result items whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage"`
|
|
39
|
-
*/
|
|
40
|
-
mustNotMatch: Record<string, string[]>;
|
|
41
|
-
resultTemplateCommon: ResultTemplateCommon;
|
|
42
|
-
constructor();
|
|
43
|
-
connectedCallback(): void;
|
|
44
|
-
componentWillLoad(): void;
|
|
45
|
-
/**
|
|
46
|
-
* Gets the appropriate result template based on conditions applied.
|
|
47
|
-
*/
|
|
48
|
-
getTemplate(): Promise<ResultTemplate<DocumentFragment> | null>;
|
|
49
|
-
render(): any;
|
|
50
|
-
}
|
package/dist/types/components/search/facets/facet-segmented-value/stencil-facet-segmented-value.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../../../../stencil-public-runtime';
|
|
2
|
-
import { FacetValueProps } from '../../../common/facets/stencil-facet-common';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated should only be used for Stencil components.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FacetSegmentedValue: FunctionalComponent<FacetValueProps>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FoldedResult, Result } from '@coveo/headless';
|
|
2
|
-
import { InteractiveItemContextEvent, ItemContextEvent } from "../../../common/item-list/stencil-item-decorators";
|
|
3
|
-
/**
|
|
4
|
-
* A [StencilJS property decorator](https://stenciljs.com/) to be used for result template components.
|
|
5
|
-
* This allows the Stencil component to fetch the current result from its rendered parent, the `atomic-result` component.
|
|
6
|
-
*
|
|
7
|
-
* Example:
|
|
8
|
-
* @ResultContext() private result!: Result;
|
|
9
|
-
*
|
|
10
|
-
* For more information and examples, view the "Utilities" section of the readme.
|
|
11
|
-
*
|
|
12
|
-
* @deprecated should only be used for Stencil components. For Lit components, use `createResultContextController` from \@/src/components/search/result-template-component-utils/context/result-context-controller.ts
|
|
13
|
-
*/
|
|
14
|
-
export declare function ResultContext(opts?: {
|
|
15
|
-
folded: boolean;
|
|
16
|
-
}): (component: import("@stencil/core").ComponentInterface, itemVariable: string) => void;
|
|
17
|
-
export declare function InteractiveResultContext(): (component: import("@stencil/core").ComponentInterface, interactiveItemVariable: string) => void;
|
|
18
|
-
export type ResultContextEvent<T = Result> = ItemContextEvent<T>;
|
|
19
|
-
export type InteractiveResultContextEvent = InteractiveItemContextEvent;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves `Result` on a rendered `atomic-result`.
|
|
22
|
-
*
|
|
23
|
-
* This method is useful for building custom result template elements, see [Create a Result List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-result-template-component-example) for more information.
|
|
24
|
-
*
|
|
25
|
-
* You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).
|
|
26
|
-
*
|
|
27
|
-
* @param element The element that the event is dispatched to, which must be the child of a rendered "atomic-result" element.
|
|
28
|
-
* @returns A promise that resolves on initialization of the parent "atomic-result" element, or rejects when there is no parent "atomic-result" element.
|
|
29
|
-
*
|
|
30
|
-
* @deprecated should only be used for Stencil components. For Lit components, use `fetchResultContext` from \@/src/components/search/result-template-component-utils/context/fetch-result-context.ts
|
|
31
|
-
*/
|
|
32
|
-
export declare function resultContext<T extends Result | FoldedResult = Result>(element: Element): Promise<T>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SearchEngine } from '@coveo/headless';
|
|
2
|
-
import { FunctionalComponent } from '../../../../stencil-public-runtime';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated should only be used for Stencil components.
|
|
5
|
-
*/
|
|
6
|
-
export declare const QuickviewIframe: FunctionalComponent<{
|
|
7
|
-
title: string;
|
|
8
|
-
content?: string;
|
|
9
|
-
onSetIframeRef: (ref: HTMLIFrameElement) => void;
|
|
10
|
-
uniqueIdentifier?: string;
|
|
11
|
-
sandbox?: string;
|
|
12
|
-
src?: string;
|
|
13
|
-
logger?: SearchEngine['logger'];
|
|
14
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getResourceUrl: () => undefined;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface } from '../stencil-public-runtime';
|
|
2
|
-
import { TOptions } from 'i18next';
|
|
3
|
-
import { AnyBindings } from '../components/common/interface/bindings';
|
|
4
|
-
import { Bindings } from '../components/search/atomic-search-interface/atomic-search-interface';
|
|
5
|
-
import { InitializeEventHandler } from './initialization-lit-stencil-common-utils';
|
|
6
|
-
export type InitializeEvent = CustomEvent<InitializeEventHandler>;
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves `Bindings` or `CommerceBindings` on a configured parent interface.
|
|
9
|
-
* @param event - The element on which to dispatch the event, which must be the child of a configured Atomic container element.
|
|
10
|
-
* @returns A promise that resolves upon initialization of the parent container element, and rejects otherwise.
|
|
11
|
-
*/
|
|
12
|
-
export declare function initializeBindings<SpecificBindings extends AnyBindings = Bindings>(element: Element): Promise<SpecificBindings>;
|
|
13
|
-
export { MissingInterfaceParentError, InitializeEventHandler, initializeEventName, } from './initialization-lit-stencil-common-utils';
|
|
14
|
-
/**
|
|
15
|
-
* Necessary interface an Atomic Component must have to initialize itself correctly.
|
|
16
|
-
* @deprecated To be used for Stencil components. For Lit components. use `InitializableComponent` from './decorators/types/'
|
|
17
|
-
*/
|
|
18
|
-
export interface InitializableComponent<SpecificBindings extends AnyBindings = Bindings> extends ComponentInterface {
|
|
19
|
-
/**
|
|
20
|
-
* Bindings passed from the `AtomicSearchInterface` to its children components.
|
|
21
|
-
*/
|
|
22
|
-
bindings: SpecificBindings;
|
|
23
|
-
/**
|
|
24
|
-
* Method called right after the `bindings` property is defined. This is the method where Headless Framework controllers should be initialized.
|
|
25
|
-
*/
|
|
26
|
-
initialize?: () => void;
|
|
27
|
-
error: Error;
|
|
28
|
-
}
|
|
29
|
-
type InitializeBindingsProps = {
|
|
30
|
-
forceUpdate?: boolean;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* A [StencilJS property decorator](https://stenciljs.com/) to be used on a property named `bindings`.
|
|
34
|
-
* This will automatically fetch the `Bindings` from the parent `atomic-search-interface` or `atomic-external` components.
|
|
35
|
-
*
|
|
36
|
-
* Once a component is bound, the `initialize` method is called.
|
|
37
|
-
* In the event of an initialization error, the `error` property will be set and an `atomic-component-error` will be rendered.
|
|
38
|
-
*
|
|
39
|
-
* In order for a component using this decorator to render properly, it should have an internal state bound to one of the properties from `bindings`.
|
|
40
|
-
* This is possible by using the `BindStateToController` decorator.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* @InitializeBindings() public bindings!: Bindings;
|
|
44
|
-
*
|
|
45
|
-
* For more information and examples, view the "Utilities" section of the readme.
|
|
46
|
-
* @deprecated To be used for Stencil components. For Lit components, use `BindingController` Reactive Controller from @/mixins/bindings-mixin.ts.
|
|
47
|
-
*/
|
|
48
|
-
export declare function InitializeBindings<SpecificBindings extends AnyBindings>({ forceUpdate, }?: InitializeBindingsProps): (component: InitializableComponent<SpecificBindings>, bindingsProperty: string) => void;
|
|
49
|
-
/**
|
|
50
|
-
* A [StencilJS property decorator](https://stenciljs.com/) is used together with the [State decorator](https://stenciljs.com/docs/state#state-decorator).
|
|
51
|
-
* This allows the Stencil component state property to automatically get updates from a [Coveo Headless controller](https://docs.coveo.com/en/headless/latest/usage/#use-headless-controllers).
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* @BindStateToController('pager') @State() private pagerState!: PagerState;
|
|
55
|
-
*
|
|
56
|
-
* For more information and examples, view the "Utilities" section of the readme.
|
|
57
|
-
*
|
|
58
|
-
* @param controllerProperty The controller property to subscribe to. The controller has to be created inside of the `initialize` method.
|
|
59
|
-
* @param options The configurable `BindStateToController` options.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated To be used for Stencil components. For Lit components. use `bindStateToController` from '../decorators/bind-state.ts'
|
|
62
|
-
*/
|
|
63
|
-
export declare function BindStateToController(controllerProperty: string, options?: {
|
|
64
|
-
/**
|
|
65
|
-
* Component's method to be called when state is updated.
|
|
66
|
-
*/
|
|
67
|
-
onUpdateCallbackMethod?: string;
|
|
68
|
-
}): (component: InitializableComponent<AnyBindings>, stateProperty: string) => void;
|
|
69
|
-
export declare function DeferUntilRender(): (component: ComponentInterface, methodName: string) => void;
|
|
70
|
-
export type I18nState = Record<string, (variables?: TOptions) => string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FunctionalComponent } from '../stencil-public-runtime';
|
|
2
|
-
import { LocalizedStringProps } from '../directives/localized-string';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Should only be used for Stencil components; for Lit components, use the localizedString directive instead
|
|
5
|
-
*/
|
|
6
|
-
export declare const LocalizedString: FunctionalComponent<LocalizedStringProps>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AtomicAriaLive } from '../components/common/atomic-aria-live/atomic-aria-live';
|
|
2
|
-
import { AnyBindings } from '../components/common/interface/bindings';
|
|
3
|
-
import { InitializableComponent } from './initialization-utils';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use Lit equivalent
|
|
6
|
-
*/
|
|
7
|
-
export interface FindAriaLiveEventArgs {
|
|
8
|
-
element?: AtomicAriaLive;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated use Lit equivalent
|
|
12
|
-
*/
|
|
13
|
-
export declare function AriaLiveRegion(regionName: string, assertive?: boolean): (component: InitializableComponent<AnyBindings>, setterName: string) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated use Lit equivalent
|
|
16
|
-
*/
|
|
17
|
-
export declare class FocusTargetController {
|
|
18
|
-
private component;
|
|
19
|
-
private bindings;
|
|
20
|
-
private lastSearchId?;
|
|
21
|
-
private element?;
|
|
22
|
-
registerFocusCallback: (callback: Function) => void;
|
|
23
|
-
private internalOnFocusCallback?;
|
|
24
|
-
private doFocusAfterSearch;
|
|
25
|
-
private doFocusOnNextTarget;
|
|
26
|
-
private publicOnFocusCallbacks;
|
|
27
|
-
constructor(component: InitializableComponent<AnyBindings>);
|
|
28
|
-
private clearFocusCallbacks;
|
|
29
|
-
setTarget(el: HTMLElement | undefined): void;
|
|
30
|
-
focus(): Promise<void>;
|
|
31
|
-
focusAfterSearch(): Promise<unknown>;
|
|
32
|
-
focusOnNextTarget(): Promise<unknown>;
|
|
33
|
-
disableForCurrentSearch(): void;
|
|
34
|
-
private handleComponentRenderLoop;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated use Lit equivalent
|
|
38
|
-
*/
|
|
39
|
-
export declare function getFocusableDescendants(element: Element): Generator<HTMLElement>;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use Lit equivalent
|
|
42
|
-
*/
|
|
43
|
-
export declare function getFirstFocusableDescendant(element: Element): HTMLElement | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getAssetPath(path: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getResourceUrl: () => string;
|
|
File without changes
|
|
File without changes
|