@coveo/atomic 3.34.0-pre.e601ac3612 → 3.34.0-pre.ebcb0fe404
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/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -4
- package/dist/atomic/components/_index.js +0 -2
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-citation.js +1 -1
- package/dist/atomic/components/atomic-facet-manager.js +1 -1
- package/dist/atomic/components/atomic-facet.js +1 -1
- package/dist/atomic/components/atomic-format-currency.js +1 -1
- package/dist/atomic/components/atomic-format-number.js +1 -1
- package/dist/atomic/components/atomic-format-unit.js +1 -1
- package/dist/atomic/components/atomic-generated-answer-feedback-modal.js +1 -1
- package/dist/atomic/components/atomic-html2.js +1 -1
- package/dist/atomic/components/atomic-insight-edit-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-facet.js +1 -1
- package/dist/atomic/components/atomic-insight-folded-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-full-search-button.js +1 -1
- package/dist/atomic/components/atomic-insight-history-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-layout.js +82 -1
- package/dist/atomic/components/atomic-insight-layout.js.map +1 -1
- package/dist/atomic/components/atomic-insight-no-results.js +1 -1
- package/dist/atomic/components/atomic-insight-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-insight-pager.js +3 -3
- package/dist/atomic/components/atomic-insight-query-error.js +1 -1
- package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-result-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
- package/dist/atomic/components/atomic-insight-result-children.js +1 -1
- package/dist/atomic/components/atomic-insight-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result2.js +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +2 -2
- package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-tabs.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-body2.js +2 -2
- package/dist/atomic/components/atomic-ipx-button.js +2 -2
- package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
- package/dist/atomic/components/atomic-ipx-modal.js +2 -2
- package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
- package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
- package/dist/atomic/components/atomic-load-more-results.js +1 -1
- package/dist/atomic/components/atomic-no-results.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-query-error.js +1 -1
- package/dist/atomic/components/atomic-quickview-modal2.js +23 -23
- package/dist/atomic/components/atomic-quickview-modal2.js.map +1 -1
- package/dist/atomic/components/atomic-quickview.js +1 -1
- package/dist/atomic/components/atomic-recs-error.js +1 -1
- package/dist/atomic/components/atomic-recs-interface.js +2915 -3
- package/dist/atomic/components/atomic-recs-interface.js.map +1 -1
- package/dist/atomic/components/atomic-recs-list.js +1 -1
- package/dist/atomic/components/atomic-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-result-children.js +1 -1
- package/dist/atomic/components/atomic-result-fields-list.js +1 -1
- package/dist/atomic/components/atomic-result-link.js +1 -1
- package/dist/atomic/components/atomic-result-list.js +1 -1
- package/dist/atomic/components/atomic-result-placeholder2.js +2 -2
- package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
- package/dist/atomic/components/atomic-search-box-instant-results.js +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-box.js +3 -3
- package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-collapse-wrapper2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
- package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +17 -32
- package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +50 -0
- package/dist/atomic/components/components/insight/atomic-insight-interface/analytics-config.js +31 -0
- package/dist/atomic/components/components/insight/atomic-insight-interface/atomic-insight-interface.js +258 -0
- package/dist/atomic/components/components/insight/index.js +2 -1
- package/dist/atomic/components/components/insight/lazy-index.js +3 -1
- package/dist/atomic/components/components/search/atomic-relevance-inspector/atomic-relevance-inspector.js +100 -0
- package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +17 -24
- package/dist/atomic/components/components/search/index.js +1 -0
- package/dist/atomic/components/components/search/lazy-index.js +1 -0
- package/dist/atomic/components/facet-number-input.js +2 -2
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/item-section-utils.js +1 -1
- package/dist/atomic/components/replace-breakpoint-utils.js +1 -1
- package/dist/atomic/components/replace-breakpoint-utils.js.map +1 -1
- package/dist/atomic/components/store.js +2 -30
- package/dist/atomic/components/store.js.map +1 -1
- package/dist/atomic/components/tab-button.js +1 -1
- package/dist/atomic/components/tab-popover.js +1 -1
- package/dist/atomic/components/utils/compare-utils.js +49 -0
- package/dist/atomic/components/utils.js +1 -17
- package/dist/atomic/components/utils.js.map +1 -1
- package/dist/atomic/{p-27cf779a.js → p-025a346a.js} +2 -2
- package/dist/atomic/{p-3cbab25b.entry.js → p-044de1f9.entry.js} +2 -2
- package/dist/atomic/{p-fe59fb2d.entry.js → p-0535b93d.entry.js} +2 -2
- package/dist/atomic/{p-31a13850.js → p-0580b866.js} +2 -2
- package/dist/atomic/{p-0edea6f9.entry.js → p-05f1ff6f.entry.js} +2 -2
- package/dist/atomic/{p-3e9db2b5.entry.js → p-088d634c.entry.js} +2 -2
- package/dist/atomic/{p-4bdc6d5a.entry.js → p-0ee7cab8.entry.js} +2 -2
- package/dist/atomic/{p-0f449e9d.entry.js → p-14bad769.entry.js} +2 -2
- package/dist/atomic/{p-475124d2.entry.js → p-15547bd5.entry.js} +2 -2
- package/dist/atomic/{p-8fdef8a3.entry.js → p-182f9112.entry.js} +2 -2
- package/dist/atomic/{p-ed8e5c4d.entry.js → p-18dc558c.entry.js} +2 -2
- package/dist/atomic/{p-00069a4b.entry.js → p-1910eb7f.entry.js} +2 -2
- package/dist/atomic/{p-85145c88.entry.js → p-1c8bcadf.entry.js} +2 -2
- package/dist/atomic/p-1fca38e1.js +2 -0
- package/dist/atomic/{p-26598ee0.js.map → p-1fca38e1.js.map} +1 -1
- package/dist/atomic/{p-cafa4083.entry.js → p-21ab7750.entry.js} +2 -2
- package/dist/atomic/{p-89d8bb0d.entry.js → p-22b76c96.entry.js} +2 -2
- package/dist/atomic/{p-36f63642.entry.js → p-26e0c1f8.entry.js} +2 -2
- package/dist/atomic/{p-6098b906.entry.js → p-2f437b47.entry.js} +2 -2
- package/dist/atomic/{p-998393ec.entry.js → p-2f517a54.entry.js} +2 -2
- package/dist/atomic/{p-06284430.entry.js → p-318c96f5.entry.js} +2 -2
- package/dist/atomic/{p-60800b2f.entry.js → p-3272a04b.entry.js} +2 -2
- package/dist/atomic/{p-a5714bc4.entry.js → p-3291adda.entry.js} +2 -2
- package/dist/atomic/{p-dbc0ce5c.entry.js → p-33245038.entry.js} +2 -2
- package/dist/atomic/{p-fa658ef2.entry.js → p-35c2ee5f.entry.js} +2 -2
- package/dist/atomic/{p-88af4470.entry.js → p-36905dd1.entry.js} +2 -2
- package/dist/atomic/{p-3d55fce6.entry.js → p-36e2c945.entry.js} +2 -2
- package/dist/atomic/{p-4601eb93.entry.js → p-36ff2bc3.entry.js} +2 -2
- package/dist/atomic/{p-86bde026.entry.js → p-39fe9c1e.entry.js} +2 -2
- package/dist/atomic/{p-93da1f4e.entry.js → p-3b49d42d.entry.js} +2 -2
- package/dist/atomic/{p-577d34ba.entry.js → p-3e62ef5c.entry.js} +2 -2
- package/dist/atomic/{p-bd3542d2.entry.js → p-3fcf37f8.entry.js} +2 -2
- package/dist/atomic/p-40b7b8f6.entry.js +2 -0
- package/dist/atomic/p-40b7b8f6.entry.js.map +1 -0
- package/dist/atomic/{p-fafd5042.entry.js → p-448091f7.entry.js} +2 -2
- package/dist/atomic/{p-fe3cd55b.entry.js → p-44d96103.entry.js} +2 -2
- package/dist/atomic/{p-da845e35.entry.js → p-463336ca.entry.js} +2 -2
- package/dist/atomic/{p-f9dd14b2.entry.js → p-479cb38a.entry.js} +2 -2
- package/dist/atomic/{p-a9383817.entry.js → p-47b41b27.entry.js} +2 -2
- package/dist/atomic/{p-97ce3384.entry.js → p-48bab1a6.entry.js} +2 -2
- package/dist/atomic/{p-0c8e7d5f.entry.js → p-4cb91ee7.entry.js} +2 -2
- package/dist/atomic/{p-7709fba4.js → p-4fc7e58e.js} +2 -2
- package/dist/atomic/{p-23d4dc54.entry.js → p-558f2191.entry.js} +2 -2
- package/dist/atomic/{p-8572a953.entry.js → p-55c41e00.entry.js} +2 -2
- package/dist/atomic/{p-2e4628bb.entry.js → p-57049cd2.entry.js} +2 -2
- package/dist/atomic/{p-edd4d5f7.js → p-5a2ef889.js} +2 -2
- package/dist/atomic/{p-10b5e0f3.entry.js → p-5b8cc4bc.entry.js} +2 -2
- package/dist/atomic/{p-dbcef3a9.entry.js → p-5cab535b.entry.js} +2 -2
- package/dist/atomic/p-5d0fc7e2.js +2 -0
- package/dist/atomic/{p-a4d277c7.entry.js → p-5e1018bb.entry.js} +2 -2
- package/dist/atomic/{p-4723ffa5.entry.js → p-5f4724c9.entry.js} +2 -2
- package/dist/atomic/{p-740cd5bc.entry.js → p-6439156c.entry.js} +2 -2
- package/dist/atomic/{p-7e9a1a1a.entry.js → p-66166975.entry.js} +2 -2
- package/dist/atomic/{p-97538903.entry.js → p-6698d5e9.entry.js} +2 -2
- package/dist/atomic/{p-0610b3e7.entry.js → p-6819f12c.entry.js} +2 -2
- package/dist/atomic/p-6b3429d3.js +2 -0
- package/dist/atomic/{p-a130b00b.entry.js → p-70747efa.entry.js} +2 -2
- package/dist/atomic/{p-4830b9bb.entry.js → p-7242b46e.entry.js} +2 -2
- package/dist/atomic/{p-3af2fca0.js → p-7427daa3.js} +2 -2
- package/dist/atomic/{p-b320f270.entry.js → p-76c14d82.entry.js} +2 -2
- package/dist/atomic/{p-1435fb6f.entry.js → p-7741124a.entry.js} +2 -2
- package/dist/atomic/{p-cdeb5f2a.entry.js → p-77d00da1.entry.js} +2 -2
- package/dist/atomic/{p-97748161.js → p-7e636397.js} +2 -2
- package/dist/atomic/{p-20764605.entry.js → p-7f56351b.entry.js} +2 -2
- package/dist/atomic/{p-519d9abd.entry.js → p-7fd58269.entry.js} +2 -2
- package/dist/atomic/p-7fe23afc.entry.js +2 -0
- package/dist/atomic/{p-c7af4b9e.entry.js.map → p-7fe23afc.entry.js.map} +1 -1
- package/dist/atomic/{p-f76b7ac3.entry.js → p-80290dd3.entry.js} +2 -2
- package/dist/atomic/{p-0bdd730f.entry.js → p-81bdbd07.entry.js} +2 -2
- package/dist/atomic/{p-723f76a1.entry.js → p-82cd6398.entry.js} +2 -2
- package/dist/atomic/{p-5f706e3d.entry.js → p-831519c0.entry.js} +2 -2
- package/dist/atomic/{p-3857d6a3.entry.js → p-831b1340.entry.js} +2 -2
- package/dist/atomic/{p-fdcd187d.entry.js → p-851b9735.entry.js} +2 -2
- package/dist/atomic/{p-6289adc7.entry.js → p-87e2c8ae.entry.js} +2 -2
- package/dist/atomic/p-89abfaec.entry.js +2 -0
- package/dist/atomic/p-8ace4e12.entry.js +2 -0
- package/dist/atomic/p-8ace4e12.entry.js.map +1 -0
- package/dist/atomic/{p-ee957926.entry.js → p-8d5228da.entry.js} +2 -2
- package/dist/atomic/{p-0b5efb51.entry.js → p-94adab79.entry.js} +2 -2
- package/dist/atomic/{p-c25f1437.entry.js → p-955092ed.entry.js} +2 -2
- package/dist/atomic/{p-47ab6c9f.entry.js → p-99d4c4bf.entry.js} +2 -2
- package/dist/atomic/{p-edede7d1.entry.js → p-9aad555a.entry.js} +2 -2
- package/dist/atomic/{p-00a6ab8c.entry.js → p-a0ebbbdf.entry.js} +2 -2
- package/dist/atomic/{p-d1795580.entry.js → p-a5922586.entry.js} +2 -2
- package/dist/atomic/{p-24fd7df6.entry.js → p-a6dde0f6.entry.js} +2 -2
- package/dist/atomic/{p-1db20a4a.entry.js → p-a7189b06.entry.js} +2 -2
- package/dist/atomic/p-aaa5a853.js +2 -0
- package/dist/atomic/p-aaa5a853.js.map +1 -0
- package/dist/atomic/{p-59b15bd6.entry.js → p-ae69f519.entry.js} +2 -2
- package/dist/atomic/{p-d6e04719.entry.js → p-af2855cc.entry.js} +2 -2
- package/dist/atomic/{p-fdd0aa42.entry.js → p-b1b583a0.entry.js} +2 -2
- package/dist/atomic/{p-7ec6dd3e.entry.js → p-b1ffa893.entry.js} +2 -2
- package/dist/atomic/{p-3c9289b5.js → p-b29d121c.js} +2 -2
- package/dist/atomic/{p-df4397ab.entry.js → p-b380f118.entry.js} +2 -2
- package/dist/atomic/p-b628ed03.entry.js +2 -0
- package/dist/atomic/{p-a1ee594f.entry.js.map → p-b628ed03.entry.js.map} +1 -1
- package/dist/atomic/{p-cb3fd0f4.entry.js → p-b84108f3.entry.js} +2 -2
- package/dist/atomic/{p-fb1a1e2e.entry.js → p-b85c2c46.entry.js} +2 -2
- package/dist/atomic/{p-9faad55b.entry.js → p-ba95a7d1.entry.js} +2 -2
- package/dist/atomic/{p-e398835b.entry.js → p-bc43df67.entry.js} +2 -2
- package/dist/atomic/{p-93601dc0.entry.js → p-bd01acd5.entry.js} +2 -2
- package/dist/atomic/{p-416d088e.entry.js → p-be011bd1.entry.js} +2 -2
- package/dist/atomic/{p-7c3c5f07.entry.js → p-c2a5dac0.entry.js} +2 -2
- package/dist/atomic/p-c2a5dac0.entry.js.map +1 -0
- package/dist/atomic/p-c467674f.entry.js +2 -0
- package/dist/atomic/{p-93f1d551.entry.js → p-c5164dbf.entry.js} +2 -2
- package/dist/atomic/{p-3622ed6c.js → p-c619df9b.js} +2 -2
- package/dist/atomic/p-ca1425cc.entry.js +2 -0
- package/dist/atomic/{p-a1522fe5.entry.js.map → p-ca1425cc.entry.js.map} +1 -1
- package/dist/atomic/{p-5ca21deb.js → p-ca37969c.js} +2 -2
- package/dist/atomic/{p-7cced247.entry.js → p-d0ab0125.entry.js} +2 -2
- package/dist/atomic/{p-16f6c1f3.entry.js → p-d8caa4d8.entry.js} +2 -2
- package/dist/atomic/{p-367ec37d.entry.js → p-db2d92c5.entry.js} +2 -2
- package/dist/atomic/{p-dbf0c5a3.entry.js → p-db3b11ca.entry.js} +2 -2
- package/dist/atomic/{p-27b8404c.js → p-dbb680bd.js} +2 -2
- package/dist/atomic/{p-0f39889d.entry.js → p-dea22a8d.entry.js} +2 -2
- package/dist/atomic/{p-3a7a1a00.entry.js → p-df8d38ca.entry.js} +2 -2
- package/dist/atomic/{p-f9608731.entry.js → p-e276c7e0.entry.js} +2 -2
- package/dist/atomic/{p-406a288c.entry.js → p-e34dafbb.entry.js} +2 -2
- package/dist/atomic/{p-ce5b896e.entry.js → p-e455330c.entry.js} +2 -2
- package/dist/atomic/{p-59f043a0.entry.js → p-e49ad083.entry.js} +2 -2
- package/dist/atomic/{p-30c09377.entry.js → p-e6871a3f.entry.js} +2 -2
- package/dist/atomic/{p-c9f1790d.entry.js → p-e6dc9de7.entry.js} +2 -2
- package/dist/atomic/p-ef8f2239.entry.js +2 -0
- package/dist/atomic/{p-345c425d.entry.js.map → p-ef8f2239.entry.js.map} +1 -1
- package/dist/atomic/{p-13391e75.entry.js → p-f0c657f4.entry.js} +2 -2
- package/dist/atomic/{p-f936f55e.entry.js → p-f1241140.entry.js} +2 -2
- package/dist/atomic/p-f37dea9e.entry.js +2 -0
- package/dist/atomic/{p-b6415814.entry.js.map → p-f37dea9e.entry.js.map} +1 -1
- package/dist/atomic/p-f4818e53.entry.js +2 -0
- package/dist/atomic/p-f537c5af.js +2 -0
- package/dist/atomic/p-f537c5af.js.map +1 -0
- package/dist/atomic/{p-dd35e7ad.entry.js → p-f65ca329.entry.js} +2 -2
- package/dist/atomic/{p-97829295.entry.js → p-fc71835d.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/atomic-automatic-facet_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-breadbox.cjs.entry.js +2 -2
- package/dist/cjs/atomic-category-facet.cjs.entry.js +4 -4
- package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +3 -3
- package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
- package/dist/cjs/atomic-facet.cjs.entry.js +6 -6
- package/dist/cjs/atomic-field-condition.cjs.entry.js +4 -4
- package/dist/cjs/atomic-focus-trap.cjs.entry.js +2 -2
- package/dist/cjs/atomic-folded-result-list.cjs.entry.js +8 -8
- package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
- package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js +3 -3
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +3 -3
- package/dist/cjs/atomic-html.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +5 -5
- package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +8 -8
- package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-layout.cjs.entry.js +85 -5
- package/dist/cjs/atomic-insight-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-no-results.cjs.entry.js +3 -3
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +6 -6
- package/dist/cjs/atomic-insight-pager.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-query-error.cjs.entry.js +3 -3
- package/dist/cjs/atomic-insight-query-summary.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +4 -5
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-result-children.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-result-list.cjs.entry.js +8 -8
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +3 -3
- package/dist/cjs/atomic-insight-result-template.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-result.cjs.entry.js +7 -7
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-tab.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +4 -4
- package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-body.cjs.entry.js +4 -4
- package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +3 -3
- package/dist/cjs/atomic-ipx-modal.cjs.entry.js +4 -4
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +8 -8
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +3 -4
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-tab.cjs.entry.js +1 -2
- package/dist/cjs/atomic-ipx-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-load-more-results.cjs.entry.js +2 -3
- package/dist/cjs/atomic-load-more-results.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-no-results.cjs.entry.js +3 -3
- package/dist/cjs/atomic-notifications.cjs.entry.js +2 -2
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +6 -6
- package/dist/cjs/atomic-query-error.cjs.entry.js +3 -3
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +23 -23
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +3 -3
- package/dist/cjs/atomic-rating-facet.cjs.entry.js +4 -4
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +3 -3
- package/dist/cjs/atomic-recs-error.cjs.entry.js +3 -3
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2927 -18
- package/dist/cjs/atomic-recs-interface.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-recs-list.cjs.entry.js +8 -8
- package/dist/cjs/atomic-recs-result-template.cjs.entry.js +4 -4
- package/dist/cjs/atomic-recs-result.cjs.entry.js +6 -6
- package/dist/cjs/atomic-refine-modal.cjs.entry.js +3 -3
- package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-children-template.cjs.entry.js +4 -4
- package/dist/cjs/atomic-result-children.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-icon.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +9 -9
- package/dist/cjs/atomic-result-localized-text.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-multi-value-text.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +7 -7
- package/dist/cjs/atomic-result-printable-uri.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-section-children.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-template.cjs.entry.js +4 -4
- package/dist/cjs/atomic-result.cjs.entry.js +6 -6
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-search-box.cjs.entry.js +6 -6
- package/dist/cjs/atomic-segmented-facet.cjs.entry.js +2 -2
- package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-smart-snippet-collapse-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +4 -4
- package/dist/cjs/atomic-smart-snippet-suggestions.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +3 -3
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +3 -3
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-timeframe-facet.cjs.entry.js +4 -4
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/{cloned-facet-elements-70cd1601.js → cloned-facet-elements-3c7ea837.js} +2 -2
- package/dist/cjs/{cloned-facet-elements-70cd1601.js.map → cloned-facet-elements-3c7ea837.js.map} +1 -1
- package/dist/cjs/{display-options-14f05862.js → display-options-09a8fab8.js} +2 -2
- package/dist/cjs/{display-options-14f05862.js.map → display-options-09a8fab8.js.map} +1 -1
- package/dist/cjs/index-757bc886.js +0 -8
- package/dist/cjs/{item-section-utils-8579462c.js → item-section-utils-37848715.js} +2 -2
- package/dist/cjs/{item-section-utils-8579462c.js.map → item-section-utils-37848715.js.map} +1 -1
- package/dist/cjs/{props-utils-1e4ba1b0.js → props-utils-15a042f3.js} +2 -2
- package/dist/cjs/{props-utils-1e4ba1b0.js.map → props-utils-15a042f3.js.map} +1 -1
- package/dist/cjs/{replace-breakpoint-utils-7a084f54.js → replace-breakpoint-utils-47f2eaa4.js} +1 -2
- package/dist/cjs/replace-breakpoint-utils-47f2eaa4.js.map +1 -0
- package/dist/cjs/{result-template-common-88359dad.js → result-template-common-023d3060.js} +3 -3
- package/dist/cjs/{result-template-common-88359dad.js.map → result-template-common-023d3060.js.map} +1 -1
- package/dist/cjs/{sections-fbb93b53.js → sections-a6a40eaa.js} +2 -2
- package/dist/cjs/{sections-fbb93b53.js.map → sections-a6a40eaa.js.map} +1 -1
- package/dist/cjs/{stencil-accessibility-utils-aa4c9f6c.js → stencil-accessibility-utils-86cc7071.js} +2 -2
- package/dist/cjs/{stencil-accessibility-utils-aa4c9f6c.js.map → stencil-accessibility-utils-86cc7071.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-e67c9332.js → stencil-facet-value-5957b403.js} +2 -2
- package/dist/cjs/{stencil-facet-value-e67c9332.js.map → stencil-facet-value-5957b403.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-checkbox-62f07459.js → stencil-facet-value-checkbox-fed178ad.js} +2 -2
- package/dist/cjs/{stencil-facet-value-checkbox-62f07459.js.map → stencil-facet-value-checkbox-fed178ad.js.map} +1 -1
- package/dist/cjs/{stencil-item-list-common-17bd1046.js → stencil-item-list-common-b08abf21.js} +4 -4
- package/dist/cjs/{stencil-item-list-common-17bd1046.js.map → stencil-item-list-common-b08abf21.js.map} +1 -1
- package/dist/cjs/{stencil-values-container-9f50ec1a.js → stencil-values-container-d20f9b28.js} +2 -2
- package/dist/cjs/{stencil-values-container-9f50ec1a.js.map → stencil-values-container-d20f9b28.js.map} +1 -1
- package/dist/cjs/{store-82abd941.js → store-7927ea61.js} +2 -33
- package/dist/cjs/store-7927ea61.js.map +1 -0
- package/dist/cjs/{timeframe-facet-common-b5535cca.js → timeframe-facet-common-4ea96ccb.js} +2 -2
- package/dist/cjs/{timeframe-facet-common-b5535cca.js.map → timeframe-facet-common-4ea96ccb.js.map} +1 -1
- package/dist/cjs/{utils-7153ae6b.js → utils-12b49e87.js} +1 -18
- package/dist/cjs/utils-12b49e87.js.map +1 -0
- package/dist/cjs/version.cjs.js +1 -1
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/atomic-automatic-facet_2.entry.js +3 -3
- package/dist/esm/atomic-breadbox.entry.js +2 -2
- package/dist/esm/atomic-category-facet.entry.js +4 -4
- package/dist/esm/atomic-citation.entry.js +1 -1
- package/dist/esm/atomic-color-facet.entry.js +3 -3
- package/dist/esm/atomic-facet-manager.entry.js +1 -1
- package/dist/esm/atomic-facet-number-input.entry.js +2 -2
- package/dist/esm/atomic-facet.entry.js +6 -6
- package/dist/esm/atomic-field-condition.entry.js +4 -4
- package/dist/esm/atomic-focus-trap.entry.js +2 -2
- package/dist/esm/atomic-folded-result-list.entry.js +8 -8
- package/dist/esm/atomic-format-currency.entry.js +1 -1
- package/dist/esm/atomic-format-number.entry.js +1 -1
- package/dist/esm/atomic-format-unit.entry.js +1 -1
- package/dist/esm/atomic-generated-answer-feedback-modal.entry.js +3 -3
- package/dist/esm/atomic-generated-answer.entry.js +3 -3
- package/dist/esm/atomic-html.entry.js +1 -1
- package/dist/esm/atomic-insight-edit-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +5 -5
- package/dist/esm/atomic-insight-folded-result-list.entry.js +8 -8
- package/dist/esm/atomic-insight-full-search-button.entry.js +1 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +2 -2
- package/dist/esm/atomic-insight-history-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-layout.entry.js +83 -3
- package/dist/esm/atomic-insight-layout.entry.js.map +1 -1
- package/dist/esm/atomic-insight-no-results.entry.js +3 -3
- package/dist/esm/atomic-insight-numeric-facet.entry.js +6 -6
- package/dist/esm/atomic-insight-pager.entry.js +4 -4
- package/dist/esm/atomic-insight-query-error.entry.js +3 -3
- package/dist/esm/atomic-insight-query-summary.entry.js +2 -2
- package/dist/esm/atomic-insight-refine-modal.entry.js +4 -5
- package/dist/esm/atomic-insight-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-insight-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-result-action-bar.entry.js +2 -2
- package/dist/esm/atomic-insight-result-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +1 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +4 -4
- package/dist/esm/atomic-insight-result-children.entry.js +2 -2
- package/dist/esm/atomic-insight-result-list.entry.js +8 -8
- package/dist/esm/atomic-insight-result-quickview-action.entry.js +3 -3
- package/dist/esm/atomic-insight-result-template.entry.js +4 -4
- package/dist/esm/atomic-insight-result.entry.js +7 -7
- package/dist/esm/atomic-insight-search-box.entry.js +4 -4
- package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +4 -4
- package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js +1 -1
- package/dist/esm/atomic-insight-smart-snippet.entry.js +1 -1
- package/dist/esm/atomic-insight-tab.entry.js +2 -2
- package/dist/esm/atomic-insight-tabs.entry.js +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +4 -4
- package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
- package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-body.entry.js +4 -4
- package/dist/esm/atomic-ipx-button.entry.js +2 -2
- package/dist/esm/atomic-ipx-embedded.entry.js +3 -3
- package/dist/esm/atomic-ipx-modal.entry.js +4 -4
- package/dist/esm/atomic-ipx-recs-list.entry.js +8 -8
- package/dist/esm/atomic-ipx-refine-modal.entry.js +3 -4
- package/dist/esm/atomic-ipx-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-result-link.entry.js +1 -1
- package/dist/esm/atomic-ipx-tab.entry.js +1 -2
- package/dist/esm/atomic-ipx-tab.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
- package/dist/esm/atomic-load-more-results.entry.js +2 -3
- package/dist/esm/atomic-load-more-results.entry.js.map +1 -1
- package/dist/esm/atomic-no-results.entry.js +3 -3
- package/dist/esm/atomic-notifications.entry.js +2 -2
- package/dist/esm/atomic-numeric-facet.entry.js +6 -6
- package/dist/esm/atomic-query-error.entry.js +3 -3
- package/dist/esm/atomic-quickview-modal.entry.js +23 -23
- package/dist/esm/atomic-quickview-modal.entry.js.map +1 -1
- package/dist/esm/atomic-quickview.entry.js +3 -3
- package/dist/esm/atomic-rating-facet.entry.js +4 -4
- package/dist/esm/atomic-rating-range-facet.entry.js +3 -3
- package/dist/esm/atomic-recs-error.entry.js +3 -3
- package/dist/esm/atomic-recs-interface.entry.js +2919 -10
- package/dist/esm/atomic-recs-interface.entry.js.map +1 -1
- package/dist/esm/atomic-recs-list.entry.js +8 -8
- package/dist/esm/atomic-recs-result-template.entry.js +4 -4
- package/dist/esm/atomic-recs-result.entry.js +6 -6
- package/dist/esm/atomic-refine-modal.entry.js +3 -3
- package/dist/esm/atomic-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-result-children-template.entry.js +4 -4
- package/dist/esm/atomic-result-children.entry.js +2 -2
- package/dist/esm/atomic-result-fields-list.entry.js +1 -1
- package/dist/esm/atomic-result-icon.entry.js +1 -1
- package/dist/esm/atomic-result-link.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +9 -9
- package/dist/esm/atomic-result-localized-text.entry.js +2 -2
- package/dist/esm/atomic-result-multi-value-text.entry.js +1 -1
- package/dist/esm/atomic-result-placeholder_8.entry.js +7 -7
- package/dist/esm/atomic-result-printable-uri.entry.js +2 -2
- package/dist/esm/atomic-result-section-children.entry.js +2 -2
- package/dist/esm/atomic-result-section-emphasized.entry.js +2 -2
- package/dist/esm/atomic-result-section-title-metadata.entry.js +2 -2
- package/dist/esm/atomic-result-template.entry.js +4 -4
- package/dist/esm/atomic-result.entry.js +6 -6
- package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +3 -3
- package/dist/esm/atomic-search-box.entry.js +6 -6
- package/dist/esm/atomic-segmented-facet.entry.js +2 -2
- package/dist/esm/atomic-smart-snippet-answer_2.entry.js +3 -3
- package/dist/esm/atomic-smart-snippet-collapse-wrapper_2.entry.js +3 -3
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +4 -4
- package/dist/esm/atomic-smart-snippet-suggestions.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +3 -3
- package/dist/esm/atomic-sort-expression.entry.js +3 -3
- package/dist/esm/atomic-stencil-facet-date-input.entry.js +3 -3
- package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
- package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
- package/dist/esm/atomic-tab-button.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic-timeframe-facet.entry.js +4 -4
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/{cloned-facet-elements-807b566b.js → cloned-facet-elements-82071d0c.js} +2 -2
- package/dist/esm/{cloned-facet-elements-807b566b.js.map → cloned-facet-elements-82071d0c.js.map} +1 -1
- package/dist/esm/{display-options-c16840c6.js → display-options-aede159b.js} +2 -2
- package/dist/esm/{display-options-c16840c6.js.map → display-options-aede159b.js.map} +1 -1
- package/dist/esm/index-3f35faca.js +0 -8
- package/dist/esm/{item-section-utils-46828f30.js → item-section-utils-d8aa24b7.js} +2 -2
- package/dist/esm/{item-section-utils-46828f30.js.map → item-section-utils-d8aa24b7.js.map} +1 -1
- package/dist/esm/{props-utils-e97ad6bd.js → props-utils-6040b5d2.js} +2 -2
- package/dist/esm/{props-utils-e97ad6bd.js.map → props-utils-6040b5d2.js.map} +1 -1
- package/dist/esm/{replace-breakpoint-utils-7a336631.js → replace-breakpoint-utils-13ff9ca5.js} +2 -2
- package/dist/esm/replace-breakpoint-utils-13ff9ca5.js.map +1 -0
- package/dist/esm/{result-template-common-ac9fecab.js → result-template-common-efcc3c0e.js} +3 -3
- package/dist/esm/{result-template-common-ac9fecab.js.map → result-template-common-efcc3c0e.js.map} +1 -1
- package/dist/esm/{sections-d787040b.js → sections-3f12bc7d.js} +2 -2
- package/dist/esm/{sections-d787040b.js.map → sections-3f12bc7d.js.map} +1 -1
- package/dist/esm/{stencil-accessibility-utils-196a08f3.js → stencil-accessibility-utils-ae75044b.js} +2 -2
- package/dist/esm/{stencil-accessibility-utils-196a08f3.js.map → stencil-accessibility-utils-ae75044b.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-30dc9b6c.js → stencil-facet-value-9deafe8e.js} +2 -2
- package/dist/esm/{stencil-facet-value-30dc9b6c.js.map → stencil-facet-value-9deafe8e.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-checkbox-0637f7f8.js → stencil-facet-value-checkbox-c0df7c4e.js} +2 -2
- package/dist/esm/{stencil-facet-value-checkbox-0637f7f8.js.map → stencil-facet-value-checkbox-c0df7c4e.js.map} +1 -1
- package/dist/esm/{stencil-item-list-common-fc95e16b.js → stencil-item-list-common-d2833d51.js} +4 -4
- package/dist/esm/{stencil-item-list-common-fc95e16b.js.map → stencil-item-list-common-d2833d51.js.map} +1 -1
- package/dist/esm/{stencil-values-container-55a7e816.js → stencil-values-container-9b9cd73f.js} +2 -2
- package/dist/esm/{stencil-values-container-55a7e816.js.map → stencil-values-container-9b9cd73f.js.map} +1 -1
- package/dist/esm/{store-015afa83.js → store-7d2c2a8c.js} +3 -31
- package/dist/esm/store-7d2c2a8c.js.map +1 -0
- package/dist/esm/{timeframe-facet-common-eb1016d2.js → timeframe-facet-common-55fc72f3.js} +2 -2
- package/dist/esm/{timeframe-facet-common-eb1016d2.js.map → timeframe-facet-common-55fc72f3.js.map} +1 -1
- package/dist/esm/{utils-7161486d.js → utils-6400ebde.js} +2 -18
- package/dist/esm/utils-6400ebde.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -3
- package/dist/types/components/common/facets/facet-search/facet-search-input-guard.d.ts +1 -1
- package/dist/types/components/common/no-items/guard.d.ts +1 -1
- package/dist/types/components/common/refine-modal/guard.d.ts +1 -1
- package/dist/types/components/common/sort/sort-guard.d.ts +1 -1
- package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +32 -0
- package/dist/types/components/insight/atomic-insight-interface/atomic-insight-interface.d.ts +35 -42
- package/dist/types/components/insight/index.d.ts +1 -1
- package/dist/types/components/search/atomic-relevance-inspector/atomic-relevance-inspector.d.ts +18 -8
- package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +6 -3
- package/dist/types/components/search/index.d.ts +1 -0
- package/dist/types/components.d.ts +4 -166
- package/dist/types/directives/hierarchical-path.d.ts +1 -1
- package/dist/types/utils/compare-utils.d.ts +9 -0
- package/docs/atomic-docs.json +6 -508
- package/package.json +2 -2
- package/dist/atomic/components/analytics-config.js +0 -2918
- package/dist/atomic/components/analytics-config.js.map +0 -1
- package/dist/atomic/components/atomic-insight-interface.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-interface.js +0 -332
- package/dist/atomic/components/atomic-insight-interface.js.map +0 -1
- package/dist/atomic/components/atomic-relevance-inspector.d.ts +0 -11
- package/dist/atomic/components/atomic-relevance-inspector.js +0 -53
- package/dist/atomic/components/atomic-relevance-inspector.js.map +0 -1
- package/dist/atomic/components/insight-layout.js +0 -87
- package/dist/atomic/components/insight-layout.js.map +0 -1
- package/dist/atomic/p-05ea5af2.entry.js +0 -2
- package/dist/atomic/p-05ea5af2.entry.js.map +0 -1
- package/dist/atomic/p-0c0b8d41.entry.js +0 -2
- package/dist/atomic/p-0c0b8d41.entry.js.map +0 -1
- package/dist/atomic/p-250f34d4.entry.js +0 -2
- package/dist/atomic/p-26598ee0.js +0 -2
- package/dist/atomic/p-28e882e8.js +0 -2
- package/dist/atomic/p-2caa1859.js +0 -2
- package/dist/atomic/p-2caa1859.js.map +0 -1
- package/dist/atomic/p-345c425d.entry.js +0 -2
- package/dist/atomic/p-37a96876.entry.js +0 -2
- package/dist/atomic/p-37a96876.entry.js.map +0 -1
- package/dist/atomic/p-56c97c3e.js +0 -2
- package/dist/atomic/p-7c3c5f07.entry.js.map +0 -1
- package/dist/atomic/p-971e0bf3.js +0 -2
- package/dist/atomic/p-971e0bf3.js.map +0 -1
- package/dist/atomic/p-a12e1c59.js +0 -2
- package/dist/atomic/p-a12e1c59.js.map +0 -1
- package/dist/atomic/p-a1522fe5.entry.js +0 -2
- package/dist/atomic/p-a1ee594f.entry.js +0 -2
- package/dist/atomic/p-b6415814.entry.js +0 -2
- package/dist/atomic/p-c2b4b401.entry.js +0 -2
- package/dist/atomic/p-c7af4b9e.entry.js +0 -2
- package/dist/atomic/p-cc0bf58b.js +0 -2
- package/dist/atomic/p-cc0bf58b.js.map +0 -1
- package/dist/atomic/p-de687bed.entry.js +0 -2
- package/dist/atomic/p-de687bed.entry.js.map +0 -1
- package/dist/atomic/p-f71b14b2.entry.js +0 -2
- package/dist/cjs/analytics-config-95929206.js +0 -2927
- package/dist/cjs/analytics-config-95929206.js.map +0 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +0 -307
- package/dist/cjs/atomic-insight-interface.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +0 -38
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +0 -1
- package/dist/cjs/insight-layout-355a94dd.js +0 -90
- package/dist/cjs/insight-layout-355a94dd.js.map +0 -1
- package/dist/cjs/replace-breakpoint-utils-7a084f54.js.map +0 -1
- package/dist/cjs/store-82abd941.js.map +0 -1
- package/dist/cjs/utils-7153ae6b.js.map +0 -1
- package/dist/esm/analytics-config-06a73359.js +0 -2918
- package/dist/esm/analytics-config-06a73359.js.map +0 -1
- package/dist/esm/atomic-insight-interface.entry.js +0 -303
- package/dist/esm/atomic-insight-interface.entry.js.map +0 -1
- package/dist/esm/atomic-relevance-inspector.entry.js +0 -34
- package/dist/esm/atomic-relevance-inspector.entry.js.map +0 -1
- package/dist/esm/insight-layout-776b87f2.js +0 -87
- package/dist/esm/insight-layout-776b87f2.js.map +0 -1
- package/dist/esm/replace-breakpoint-utils-7a336631.js.map +0 -1
- package/dist/esm/store-015afa83.js.map +0 -1
- package/dist/esm/utils-7161486d.js.map +0 -1
- /package/dist/atomic/{p-27cf779a.js.map → p-025a346a.js.map} +0 -0
- /package/dist/atomic/{p-3cbab25b.entry.js.map → p-044de1f9.entry.js.map} +0 -0
- /package/dist/atomic/{p-fe59fb2d.entry.js.map → p-0535b93d.entry.js.map} +0 -0
- /package/dist/atomic/{p-31a13850.js.map → p-0580b866.js.map} +0 -0
- /package/dist/atomic/{p-0edea6f9.entry.js.map → p-05f1ff6f.entry.js.map} +0 -0
- /package/dist/atomic/{p-3e9db2b5.entry.js.map → p-088d634c.entry.js.map} +0 -0
- /package/dist/atomic/{p-4bdc6d5a.entry.js.map → p-0ee7cab8.entry.js.map} +0 -0
- /package/dist/atomic/{p-0f449e9d.entry.js.map → p-14bad769.entry.js.map} +0 -0
- /package/dist/atomic/{p-475124d2.entry.js.map → p-15547bd5.entry.js.map} +0 -0
- /package/dist/atomic/{p-8fdef8a3.entry.js.map → p-182f9112.entry.js.map} +0 -0
- /package/dist/atomic/{p-ed8e5c4d.entry.js.map → p-18dc558c.entry.js.map} +0 -0
- /package/dist/atomic/{p-00069a4b.entry.js.map → p-1910eb7f.entry.js.map} +0 -0
- /package/dist/atomic/{p-85145c88.entry.js.map → p-1c8bcadf.entry.js.map} +0 -0
- /package/dist/atomic/{p-cafa4083.entry.js.map → p-21ab7750.entry.js.map} +0 -0
- /package/dist/atomic/{p-89d8bb0d.entry.js.map → p-22b76c96.entry.js.map} +0 -0
- /package/dist/atomic/{p-36f63642.entry.js.map → p-26e0c1f8.entry.js.map} +0 -0
- /package/dist/atomic/{p-6098b906.entry.js.map → p-2f437b47.entry.js.map} +0 -0
- /package/dist/atomic/{p-998393ec.entry.js.map → p-2f517a54.entry.js.map} +0 -0
- /package/dist/atomic/{p-06284430.entry.js.map → p-318c96f5.entry.js.map} +0 -0
- /package/dist/atomic/{p-60800b2f.entry.js.map → p-3272a04b.entry.js.map} +0 -0
- /package/dist/atomic/{p-a5714bc4.entry.js.map → p-3291adda.entry.js.map} +0 -0
- /package/dist/atomic/{p-dbc0ce5c.entry.js.map → p-33245038.entry.js.map} +0 -0
- /package/dist/atomic/{p-fa658ef2.entry.js.map → p-35c2ee5f.entry.js.map} +0 -0
- /package/dist/atomic/{p-88af4470.entry.js.map → p-36905dd1.entry.js.map} +0 -0
- /package/dist/atomic/{p-3d55fce6.entry.js.map → p-36e2c945.entry.js.map} +0 -0
- /package/dist/atomic/{p-4601eb93.entry.js.map → p-36ff2bc3.entry.js.map} +0 -0
- /package/dist/atomic/{p-86bde026.entry.js.map → p-39fe9c1e.entry.js.map} +0 -0
- /package/dist/atomic/{p-93da1f4e.entry.js.map → p-3b49d42d.entry.js.map} +0 -0
- /package/dist/atomic/{p-577d34ba.entry.js.map → p-3e62ef5c.entry.js.map} +0 -0
- /package/dist/atomic/{p-bd3542d2.entry.js.map → p-3fcf37f8.entry.js.map} +0 -0
- /package/dist/atomic/{p-fafd5042.entry.js.map → p-448091f7.entry.js.map} +0 -0
- /package/dist/atomic/{p-fe3cd55b.entry.js.map → p-44d96103.entry.js.map} +0 -0
- /package/dist/atomic/{p-da845e35.entry.js.map → p-463336ca.entry.js.map} +0 -0
- /package/dist/atomic/{p-f9dd14b2.entry.js.map → p-479cb38a.entry.js.map} +0 -0
- /package/dist/atomic/{p-a9383817.entry.js.map → p-47b41b27.entry.js.map} +0 -0
- /package/dist/atomic/{p-97ce3384.entry.js.map → p-48bab1a6.entry.js.map} +0 -0
- /package/dist/atomic/{p-0c8e7d5f.entry.js.map → p-4cb91ee7.entry.js.map} +0 -0
- /package/dist/atomic/{p-7709fba4.js.map → p-4fc7e58e.js.map} +0 -0
- /package/dist/atomic/{p-23d4dc54.entry.js.map → p-558f2191.entry.js.map} +0 -0
- /package/dist/atomic/{p-8572a953.entry.js.map → p-55c41e00.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e4628bb.entry.js.map → p-57049cd2.entry.js.map} +0 -0
- /package/dist/atomic/{p-edd4d5f7.js.map → p-5a2ef889.js.map} +0 -0
- /package/dist/atomic/{p-10b5e0f3.entry.js.map → p-5b8cc4bc.entry.js.map} +0 -0
- /package/dist/atomic/{p-dbcef3a9.entry.js.map → p-5cab535b.entry.js.map} +0 -0
- /package/dist/atomic/{p-56c97c3e.js.map → p-5d0fc7e2.js.map} +0 -0
- /package/dist/atomic/{p-a4d277c7.entry.js.map → p-5e1018bb.entry.js.map} +0 -0
- /package/dist/atomic/{p-4723ffa5.entry.js.map → p-5f4724c9.entry.js.map} +0 -0
- /package/dist/atomic/{p-740cd5bc.entry.js.map → p-6439156c.entry.js.map} +0 -0
- /package/dist/atomic/{p-7e9a1a1a.entry.js.map → p-66166975.entry.js.map} +0 -0
- /package/dist/atomic/{p-97538903.entry.js.map → p-6698d5e9.entry.js.map} +0 -0
- /package/dist/atomic/{p-0610b3e7.entry.js.map → p-6819f12c.entry.js.map} +0 -0
- /package/dist/atomic/{p-28e882e8.js.map → p-6b3429d3.js.map} +0 -0
- /package/dist/atomic/{p-a130b00b.entry.js.map → p-70747efa.entry.js.map} +0 -0
- /package/dist/atomic/{p-4830b9bb.entry.js.map → p-7242b46e.entry.js.map} +0 -0
- /package/dist/atomic/{p-3af2fca0.js.map → p-7427daa3.js.map} +0 -0
- /package/dist/atomic/{p-b320f270.entry.js.map → p-76c14d82.entry.js.map} +0 -0
- /package/dist/atomic/{p-1435fb6f.entry.js.map → p-7741124a.entry.js.map} +0 -0
- /package/dist/atomic/{p-cdeb5f2a.entry.js.map → p-77d00da1.entry.js.map} +0 -0
- /package/dist/atomic/{p-97748161.js.map → p-7e636397.js.map} +0 -0
- /package/dist/atomic/{p-20764605.entry.js.map → p-7f56351b.entry.js.map} +0 -0
- /package/dist/atomic/{p-519d9abd.entry.js.map → p-7fd58269.entry.js.map} +0 -0
- /package/dist/atomic/{p-f76b7ac3.entry.js.map → p-80290dd3.entry.js.map} +0 -0
- /package/dist/atomic/{p-0bdd730f.entry.js.map → p-81bdbd07.entry.js.map} +0 -0
- /package/dist/atomic/{p-723f76a1.entry.js.map → p-82cd6398.entry.js.map} +0 -0
- /package/dist/atomic/{p-5f706e3d.entry.js.map → p-831519c0.entry.js.map} +0 -0
- /package/dist/atomic/{p-3857d6a3.entry.js.map → p-831b1340.entry.js.map} +0 -0
- /package/dist/atomic/{p-fdcd187d.entry.js.map → p-851b9735.entry.js.map} +0 -0
- /package/dist/atomic/{p-6289adc7.entry.js.map → p-87e2c8ae.entry.js.map} +0 -0
- /package/dist/atomic/{p-f71b14b2.entry.js.map → p-89abfaec.entry.js.map} +0 -0
- /package/dist/atomic/{p-ee957926.entry.js.map → p-8d5228da.entry.js.map} +0 -0
- /package/dist/atomic/{p-0b5efb51.entry.js.map → p-94adab79.entry.js.map} +0 -0
- /package/dist/atomic/{p-c25f1437.entry.js.map → p-955092ed.entry.js.map} +0 -0
- /package/dist/atomic/{p-47ab6c9f.entry.js.map → p-99d4c4bf.entry.js.map} +0 -0
- /package/dist/atomic/{p-edede7d1.entry.js.map → p-9aad555a.entry.js.map} +0 -0
- /package/dist/atomic/{p-00a6ab8c.entry.js.map → p-a0ebbbdf.entry.js.map} +0 -0
- /package/dist/atomic/{p-d1795580.entry.js.map → p-a5922586.entry.js.map} +0 -0
- /package/dist/atomic/{p-24fd7df6.entry.js.map → p-a6dde0f6.entry.js.map} +0 -0
- /package/dist/atomic/{p-1db20a4a.entry.js.map → p-a7189b06.entry.js.map} +0 -0
- /package/dist/atomic/{p-59b15bd6.entry.js.map → p-ae69f519.entry.js.map} +0 -0
- /package/dist/atomic/{p-d6e04719.entry.js.map → p-af2855cc.entry.js.map} +0 -0
- /package/dist/atomic/{p-fdd0aa42.entry.js.map → p-b1b583a0.entry.js.map} +0 -0
- /package/dist/atomic/{p-7ec6dd3e.entry.js.map → p-b1ffa893.entry.js.map} +0 -0
- /package/dist/atomic/{p-3c9289b5.js.map → p-b29d121c.js.map} +0 -0
- /package/dist/atomic/{p-df4397ab.entry.js.map → p-b380f118.entry.js.map} +0 -0
- /package/dist/atomic/{p-cb3fd0f4.entry.js.map → p-b84108f3.entry.js.map} +0 -0
- /package/dist/atomic/{p-fb1a1e2e.entry.js.map → p-b85c2c46.entry.js.map} +0 -0
- /package/dist/atomic/{p-9faad55b.entry.js.map → p-ba95a7d1.entry.js.map} +0 -0
- /package/dist/atomic/{p-e398835b.entry.js.map → p-bc43df67.entry.js.map} +0 -0
- /package/dist/atomic/{p-93601dc0.entry.js.map → p-bd01acd5.entry.js.map} +0 -0
- /package/dist/atomic/{p-416d088e.entry.js.map → p-be011bd1.entry.js.map} +0 -0
- /package/dist/atomic/{p-250f34d4.entry.js.map → p-c467674f.entry.js.map} +0 -0
- /package/dist/atomic/{p-93f1d551.entry.js.map → p-c5164dbf.entry.js.map} +0 -0
- /package/dist/atomic/{p-3622ed6c.js.map → p-c619df9b.js.map} +0 -0
- /package/dist/atomic/{p-5ca21deb.js.map → p-ca37969c.js.map} +0 -0
- /package/dist/atomic/{p-7cced247.entry.js.map → p-d0ab0125.entry.js.map} +0 -0
- /package/dist/atomic/{p-16f6c1f3.entry.js.map → p-d8caa4d8.entry.js.map} +0 -0
- /package/dist/atomic/{p-367ec37d.entry.js.map → p-db2d92c5.entry.js.map} +0 -0
- /package/dist/atomic/{p-dbf0c5a3.entry.js.map → p-db3b11ca.entry.js.map} +0 -0
- /package/dist/atomic/{p-27b8404c.js.map → p-dbb680bd.js.map} +0 -0
- /package/dist/atomic/{p-0f39889d.entry.js.map → p-dea22a8d.entry.js.map} +0 -0
- /package/dist/atomic/{p-3a7a1a00.entry.js.map → p-df8d38ca.entry.js.map} +0 -0
- /package/dist/atomic/{p-f9608731.entry.js.map → p-e276c7e0.entry.js.map} +0 -0
- /package/dist/atomic/{p-406a288c.entry.js.map → p-e34dafbb.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce5b896e.entry.js.map → p-e455330c.entry.js.map} +0 -0
- /package/dist/atomic/{p-59f043a0.entry.js.map → p-e49ad083.entry.js.map} +0 -0
- /package/dist/atomic/{p-30c09377.entry.js.map → p-e6871a3f.entry.js.map} +0 -0
- /package/dist/atomic/{p-c9f1790d.entry.js.map → p-e6dc9de7.entry.js.map} +0 -0
- /package/dist/atomic/{p-13391e75.entry.js.map → p-f0c657f4.entry.js.map} +0 -0
- /package/dist/atomic/{p-f936f55e.entry.js.map → p-f1241140.entry.js.map} +0 -0
- /package/dist/atomic/{p-c2b4b401.entry.js.map → p-f4818e53.entry.js.map} +0 -0
- /package/dist/atomic/{p-dd35e7ad.entry.js.map → p-f65ca329.entry.js.map} +0 -0
- /package/dist/atomic/{p-97829295.entry.js.map → p-fc71835d.entry.js.map} +0 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { VERSION as HEADLESS_VERSION } from '@coveo/headless'; // TODO - KIT-4886 import from @coveo/headless/insight
|
8
|
+
import { buildInsightEngine, buildResultsPerPage as buildInsightResultsPerPage, loadFieldActions, } from '@coveo/headless/insight';
|
9
|
+
import { provide } from '@lit/context';
|
10
|
+
import i18next from 'i18next';
|
11
|
+
import { css, html, LitElement } from 'lit';
|
12
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
13
|
+
import { InterfaceController, } from "../../common/interface/interface-controller";
|
14
|
+
import { bindingsContext } from "../../context/bindings-context";
|
15
|
+
import { booleanConverter } from "../../../converters/boolean-converter";
|
16
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
17
|
+
import { watch } from "../../../decorators/watch";
|
18
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
19
|
+
import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
|
20
|
+
import { markParentAsReady } from "../../../utils/init-queue";
|
21
|
+
import { getAnalyticsConfig } from './analytics-config.js';
|
22
|
+
import { createInsightStore } from './store.js';
|
23
|
+
const FirstInsightRequestExecutedFlag = 'firstInsightRequestExecuted';
|
24
|
+
/**
|
25
|
+
* The `atomic-insight-interface` component is the parent to all other atomic insight components in an insight page.
|
26
|
+
* It handles the headless insight engine and localization configurations.
|
27
|
+
*
|
28
|
+
* @slot default - The default slot where you can add child components to the interface.
|
29
|
+
* @slot full-search - A slot for components that should be positioned absolutely in the top-right corner.
|
30
|
+
*/
|
31
|
+
let AtomicInsightInterface = class AtomicInsightInterface extends ChildrenUpdateCompleteMixin(LitElement) {
|
32
|
+
constructor() {
|
33
|
+
super();
|
34
|
+
this.bindings = {};
|
35
|
+
this.initialized = false;
|
36
|
+
this.interfaceController = new InterfaceController(this, 'CoveoAtomic', HEADLESS_VERSION);
|
37
|
+
// TODO - KIT-4994: add disableAnalytics prop
|
38
|
+
// TODO - KIT-4994: deprecate in favor of disableAnalytics
|
39
|
+
// TODO - KIT-4990: remove
|
40
|
+
/**
|
41
|
+
* Whether analytics should be enabled.
|
42
|
+
*/
|
43
|
+
this.analytics = true;
|
44
|
+
/**
|
45
|
+
* The service insight interface language.
|
46
|
+
*/
|
47
|
+
this.language = 'en';
|
48
|
+
/**
|
49
|
+
* The language assets path. By default, this will be a relative URL pointing to `./lang`.
|
50
|
+
*
|
51
|
+
* Example: "/mypublicpath/languages"
|
52
|
+
*
|
53
|
+
*/
|
54
|
+
this.languageAssetsPath = './lang';
|
55
|
+
/**
|
56
|
+
* The icon assets path. By default, this will be a relative URL pointing to `./assets`.
|
57
|
+
*
|
58
|
+
* Example: "/mypublicpath/icons"
|
59
|
+
*
|
60
|
+
*/
|
61
|
+
this.iconAssetsPath = './assets';
|
62
|
+
/**
|
63
|
+
* A list of non-default fields to include in the query results.
|
64
|
+
*
|
65
|
+
* Specify the property as an array using a JSON string representation:
|
66
|
+
* ```html
|
67
|
+
* <atomic-insight-interface fields-to-include='["fieldA", "fieldB"]'></atomic-insight-interface>
|
68
|
+
* ```
|
69
|
+
*/
|
70
|
+
this.fieldsToInclude = [];
|
71
|
+
/**
|
72
|
+
* The number of results per page. By default, this is set to `5`.
|
73
|
+
*/
|
74
|
+
this.resultsPerPage = 5;
|
75
|
+
this.handleInitialization = (event) => {
|
76
|
+
this.interfaceController.onComponentInitializing(event);
|
77
|
+
};
|
78
|
+
this.store = createInsightStore();
|
79
|
+
const { promise, resolve } = Promise.withResolvers();
|
80
|
+
this.i18Initialized = promise;
|
81
|
+
this.i18n = i18next.createInstance(undefined, resolve);
|
82
|
+
}
|
83
|
+
connectedCallback() {
|
84
|
+
super.connectedCallback();
|
85
|
+
this.store.setLoadingFlag(FirstInsightRequestExecutedFlag);
|
86
|
+
this.addEventListener('atomic/initializeComponent', this.handleInitialization);
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* Initializes the connection with the headless insight engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
|
90
|
+
*/
|
91
|
+
initialize(options) {
|
92
|
+
return this.internalInitialization(() => this.initEngine(options));
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* Initializes the connection with an already preconfigured headless insight engine.
|
96
|
+
*/
|
97
|
+
initializeWithInsightEngine(engine) {
|
98
|
+
return this.internalInitialization(() => {
|
99
|
+
this.engine = engine;
|
100
|
+
});
|
101
|
+
}
|
102
|
+
/**
|
103
|
+
* Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
|
104
|
+
*/
|
105
|
+
async executeFirstSearch() {
|
106
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
107
|
+
return;
|
108
|
+
}
|
109
|
+
if (!this.initialized) {
|
110
|
+
console.error('You have to wait until the "initialize" promise is fulfilled before executing a search.', this);
|
111
|
+
return;
|
112
|
+
}
|
113
|
+
this.engine.executeFirstSearch();
|
114
|
+
}
|
115
|
+
// TODO - KIT-4994 / KIT-4990: adjust
|
116
|
+
toggleAnalytics() {
|
117
|
+
this.interfaceController.onAnalyticsChange();
|
118
|
+
}
|
119
|
+
updateIconAssetsPath() {
|
120
|
+
this.store.state.iconAssetsPath = this.iconAssetsPath;
|
121
|
+
}
|
122
|
+
updateLanguage() {
|
123
|
+
return this.interfaceController.onLanguageChange();
|
124
|
+
}
|
125
|
+
disconnectedCallback() {
|
126
|
+
super.disconnectedCallback();
|
127
|
+
this.removeEventListener('atomic/initializeComponent', this.handleInitialization);
|
128
|
+
}
|
129
|
+
render() {
|
130
|
+
return html `
|
131
|
+
<slot name="full-search"></slot>
|
132
|
+
<slot></slot>
|
133
|
+
`;
|
134
|
+
}
|
135
|
+
getBindings() {
|
136
|
+
return {
|
137
|
+
engine: this.engine,
|
138
|
+
i18n: this.i18n,
|
139
|
+
store: this.store,
|
140
|
+
interfaceElement: this,
|
141
|
+
// TODO - KIT-4839: Remove once atomic-insight-layout migration is complete.
|
142
|
+
createStyleElement: () => {
|
143
|
+
const styleTag = document.createElement('style');
|
144
|
+
return styleTag;
|
145
|
+
},
|
146
|
+
// TODO - KIT-4839: Remove once atomic-insight-layout migration is complete.
|
147
|
+
createScriptElement: () => {
|
148
|
+
const scriptTag = document.createElement('script');
|
149
|
+
return scriptTag;
|
150
|
+
},
|
151
|
+
};
|
152
|
+
}
|
153
|
+
// TODO - KIT-4994 / KIT-4990: adjust
|
154
|
+
initEngine(options) {
|
155
|
+
const analyticsConfig = getAnalyticsConfig(options, this.analytics);
|
156
|
+
try {
|
157
|
+
this.engine = buildInsightEngine({
|
158
|
+
configuration: {
|
159
|
+
...options,
|
160
|
+
analytics: analyticsConfig,
|
161
|
+
},
|
162
|
+
loggerOptions: {
|
163
|
+
level: this.logLevel,
|
164
|
+
},
|
165
|
+
});
|
166
|
+
}
|
167
|
+
catch (error) {
|
168
|
+
this.error = error;
|
169
|
+
throw error;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
initResultsPerPage() {
|
173
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
174
|
+
return;
|
175
|
+
}
|
176
|
+
buildInsightResultsPerPage(this.bindings.engine, {
|
177
|
+
initialState: { numberOfResults: this.resultsPerPage },
|
178
|
+
});
|
179
|
+
}
|
180
|
+
async internalInitialization(initEngine) {
|
181
|
+
await Promise.all([
|
182
|
+
this.interfaceController.onInitialization(initEngine),
|
183
|
+
this.i18Initialized,
|
184
|
+
]);
|
185
|
+
this.updateLanguage();
|
186
|
+
this.bindings = this.getBindings();
|
187
|
+
markParentAsReady(this);
|
188
|
+
this.initResultsPerPage();
|
189
|
+
this.registerFieldsToInclude();
|
190
|
+
this.store.unsetLoadingFlag(FirstInsightRequestExecutedFlag);
|
191
|
+
await this.getUpdateComplete();
|
192
|
+
this.initialized = true;
|
193
|
+
}
|
194
|
+
// TODO - (v4) KIT-5008: Make private
|
195
|
+
registerFieldsToInclude() {
|
196
|
+
if (this.fieldsToInclude.length) {
|
197
|
+
this.engine.dispatch(loadFieldActions(this.engine).registerFieldsToInclude([
|
198
|
+
...this.fieldsToInclude,
|
199
|
+
]));
|
200
|
+
}
|
201
|
+
}
|
202
|
+
};
|
203
|
+
AtomicInsightInterface.styles = css`:host{position:relative}slot[name=full-search]{display:block;position:absolute;right:0;top:0}`;
|
204
|
+
__decorate([
|
205
|
+
state(),
|
206
|
+
provide({ context: bindingsContext })
|
207
|
+
], AtomicInsightInterface.prototype, "bindings", void 0);
|
208
|
+
__decorate([
|
209
|
+
state()
|
210
|
+
], AtomicInsightInterface.prototype, "error", void 0);
|
211
|
+
__decorate([
|
212
|
+
property({ type: Object })
|
213
|
+
], AtomicInsightInterface.prototype, "engine", void 0);
|
214
|
+
__decorate([
|
215
|
+
property({
|
216
|
+
type: Boolean,
|
217
|
+
converter: booleanConverter,
|
218
|
+
reflect: true,
|
219
|
+
})
|
220
|
+
], AtomicInsightInterface.prototype, "analytics", void 0);
|
221
|
+
__decorate([
|
222
|
+
property({ type: Object })
|
223
|
+
], AtomicInsightInterface.prototype, "i18n", void 0);
|
224
|
+
__decorate([
|
225
|
+
property({ type: String, attribute: 'log-level', reflect: true })
|
226
|
+
], AtomicInsightInterface.prototype, "logLevel", void 0);
|
227
|
+
__decorate([
|
228
|
+
property({ type: String, attribute: 'language', reflect: true })
|
229
|
+
], AtomicInsightInterface.prototype, "language", void 0);
|
230
|
+
__decorate([
|
231
|
+
property({ type: String, attribute: 'language-assets-path', reflect: true })
|
232
|
+
], AtomicInsightInterface.prototype, "languageAssetsPath", void 0);
|
233
|
+
__decorate([
|
234
|
+
property({ type: String, attribute: 'icon-assets-path', reflect: true })
|
235
|
+
], AtomicInsightInterface.prototype, "iconAssetsPath", void 0);
|
236
|
+
__decorate([
|
237
|
+
property({ type: Array, attribute: 'fields-to-include' })
|
238
|
+
], AtomicInsightInterface.prototype, "fieldsToInclude", void 0);
|
239
|
+
__decorate([
|
240
|
+
property({ type: Number, attribute: 'results-per-page', reflect: true })
|
241
|
+
], AtomicInsightInterface.prototype, "resultsPerPage", void 0);
|
242
|
+
__decorate([
|
243
|
+
watch('analytics')
|
244
|
+
], AtomicInsightInterface.prototype, "toggleAnalytics", null);
|
245
|
+
__decorate([
|
246
|
+
watch('iconAssetsPath')
|
247
|
+
], AtomicInsightInterface.prototype, "updateIconAssetsPath", null);
|
248
|
+
__decorate([
|
249
|
+
watch('language')
|
250
|
+
], AtomicInsightInterface.prototype, "updateLanguage", null);
|
251
|
+
__decorate([
|
252
|
+
errorGuard()
|
253
|
+
], AtomicInsightInterface.prototype, "render", null);
|
254
|
+
AtomicInsightInterface = __decorate([
|
255
|
+
customElement('atomic-insight-interface'),
|
256
|
+
withTailwindStyles
|
257
|
+
], AtomicInsightInterface);
|
258
|
+
export { AtomicInsightInterface };
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
// Auto-generated file
|
2
|
+
export { AtomicInsightInterface } from './atomic-insight-interface/atomic-insight-interface.js';
|
@@ -0,0 +1,100 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { getOrganizationEndpoint } from '@coveo/headless';
|
8
|
+
import { html, LitElement, nothing } from 'lit';
|
9
|
+
import { customElement, state } from 'lit/decorators.js';
|
10
|
+
import { renderButton } from "../../common/button";
|
11
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
12
|
+
import "../../common/atomic-modal/atomic-modal";
|
13
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
14
|
+
import { bindings } from "../../../decorators/bindings";
|
15
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
16
|
+
/**
|
17
|
+
* The `atomic-relevance-inspector` component is used internally to offer insight on search page relevance, as well as information to help troubleshoot issues during development.
|
18
|
+
*
|
19
|
+
* @internal
|
20
|
+
*/
|
21
|
+
let AtomicRelevanceInspector = class AtomicRelevanceInspector extends LitElement {
|
22
|
+
constructor() {
|
23
|
+
super(...arguments);
|
24
|
+
this.open = false;
|
25
|
+
this.initialize = () => {
|
26
|
+
this.bindings.interfaceElement.addEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
27
|
+
};
|
28
|
+
this.handleRelevanceInspectorDoubleClick = (e) => {
|
29
|
+
if (e.altKey) {
|
30
|
+
this.open = !this.open;
|
31
|
+
}
|
32
|
+
};
|
33
|
+
}
|
34
|
+
disconnectedCallback() {
|
35
|
+
this.bindings.interfaceElement.removeEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
36
|
+
}
|
37
|
+
render() {
|
38
|
+
return html `
|
39
|
+
<atomic-modal
|
40
|
+
.isOpen=${this.open}
|
41
|
+
@close=${() => this.handleCloseRelevanceInspector()}
|
42
|
+
exportparts="footer"
|
43
|
+
>
|
44
|
+
<p slot="header">Open the relevance inspector</p>
|
45
|
+
<p slot="body">
|
46
|
+
The Relevance Inspector will open in the Coveo Administration Console.
|
47
|
+
</p>
|
48
|
+
<div slot="footer" class="flex w-full items-center justify-end">
|
49
|
+
${renderButton({
|
50
|
+
props: {
|
51
|
+
style: 'outline-primary',
|
52
|
+
class: 'mr-2 p-2',
|
53
|
+
onClick: () => this.handleCloseRelevanceInspector(),
|
54
|
+
text: 'Ignore',
|
55
|
+
},
|
56
|
+
})(nothing)}
|
57
|
+
${renderButton({
|
58
|
+
props: {
|
59
|
+
style: 'primary',
|
60
|
+
class: 'p-2',
|
61
|
+
onClick: () => {
|
62
|
+
window.open(this.adminHref, '_blank');
|
63
|
+
this.handleCloseRelevanceInspector();
|
64
|
+
},
|
65
|
+
text: 'Open',
|
66
|
+
},
|
67
|
+
})(nothing)}
|
68
|
+
</div>
|
69
|
+
</atomic-modal>
|
70
|
+
`;
|
71
|
+
}
|
72
|
+
handleCloseRelevanceInspector() {
|
73
|
+
this.open = false;
|
74
|
+
}
|
75
|
+
get adminHref() {
|
76
|
+
const { organizationId, environment } = this.bindings.engine.state.configuration;
|
77
|
+
const admin = getOrganizationEndpoint(organizationId, environment, 'admin');
|
78
|
+
const { searchResponseId } = this.bindings.engine.state.search;
|
79
|
+
return `${admin}/admin/#/${organizationId}/search/relevanceInspector/${searchResponseId}`;
|
80
|
+
}
|
81
|
+
};
|
82
|
+
__decorate([
|
83
|
+
state()
|
84
|
+
], AtomicRelevanceInspector.prototype, "bindings", void 0);
|
85
|
+
__decorate([
|
86
|
+
state()
|
87
|
+
], AtomicRelevanceInspector.prototype, "error", void 0);
|
88
|
+
__decorate([
|
89
|
+
state()
|
90
|
+
], AtomicRelevanceInspector.prototype, "open", void 0);
|
91
|
+
__decorate([
|
92
|
+
bindingGuard(),
|
93
|
+
errorGuard()
|
94
|
+
], AtomicRelevanceInspector.prototype, "render", null);
|
95
|
+
AtomicRelevanceInspector = __decorate([
|
96
|
+
customElement('atomic-relevance-inspector'),
|
97
|
+
bindings(),
|
98
|
+
withTailwindStyles
|
99
|
+
], AtomicRelevanceInspector);
|
100
|
+
export { AtomicRelevanceInspector };
|
package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js
CHANGED
@@ -8,7 +8,7 @@ import { buildSearchEngine, buildSearchStatus, buildUrlManager, EcommerceDefault
|
|
8
8
|
import { provide } from '@lit/context';
|
9
9
|
import i18next from 'i18next';
|
10
10
|
import { css, html, LitElement } from 'lit';
|
11
|
-
import { customElement, property, state } from 'lit/decorators.js';
|
11
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
12
12
|
import { when } from 'lit/directives/when.js';
|
13
13
|
import { InterfaceController, } from "../../common/interface/interface-controller";
|
14
14
|
import { MobileBreakpointController } from "../../common/layout/mobile-breakpoint-controller";
|
@@ -21,6 +21,7 @@ import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js"
|
|
21
21
|
import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
|
22
22
|
import { markParentAsReady } from "../../../utils/init-queue";
|
23
23
|
import { SafeStorage, StorageItems, } from "../../../utils/local-storage-utils";
|
24
|
+
import "../atomic-relevance-inspector/atomic-relevance-inspector";
|
24
25
|
import { getAnalyticsConfig } from './analytics-config';
|
25
26
|
import { createSearchStore } from './store';
|
26
27
|
// TODO - Remove once all components that use atomic-modal have been migrated.
|
@@ -35,7 +36,6 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
35
36
|
constructor() {
|
36
37
|
super();
|
37
38
|
this.bindings = {};
|
38
|
-
this.relevanceInspectorIsOpen = false;
|
39
39
|
this.unsubscribeUrlManager = () => { };
|
40
40
|
this.unsubscribeSearchStatus = () => { };
|
41
41
|
this.initialized = false;
|
@@ -105,11 +105,6 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
105
105
|
this.handleInitialization = (event) => {
|
106
106
|
this.interfaceController.onComponentInitializing(event);
|
107
107
|
};
|
108
|
-
this.handleRelevanceInspectorDoubleClick = (e) => {
|
109
|
-
if (e.altKey) {
|
110
|
-
this.relevanceInspectorIsOpen = !this.relevanceInspectorIsOpen;
|
111
|
-
}
|
112
|
-
};
|
113
108
|
this.onHashChange = () => {
|
114
109
|
this.urlManager.synchronize(this.fragment);
|
115
110
|
};
|
@@ -122,15 +117,13 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
122
117
|
connectedCallback() {
|
123
118
|
super.connectedCallback();
|
124
119
|
this.store.setLoadingFlag(FirstSearchExecutedFlag);
|
125
|
-
this.initRelevanceInspector();
|
126
120
|
this.addEventListener('atomic/initializeComponent', this.handleInitialization);
|
127
121
|
this.addEventListener('atomic/scrollToTop', this.scrollToTop);
|
128
|
-
this.addEventListener('atomic/relevanceInspector/close', this.closeRelevanceInspector);
|
129
122
|
}
|
130
123
|
willUpdate(changedProperties) {
|
131
124
|
super.willUpdate(changedProperties);
|
132
125
|
if (changedProperties.has('fieldsToInclude')) {
|
133
|
-
this.
|
126
|
+
this.updateFieldsToInclude();
|
134
127
|
}
|
135
128
|
}
|
136
129
|
disconnectedCallback() {
|
@@ -144,8 +137,6 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
144
137
|
window.removeEventListener('hashchange', this.onHashChange);
|
145
138
|
this.removeEventListener('atomic/initializeComponent', this.handleInitialization);
|
146
139
|
this.removeEventListener('atomic/scrollToTop', this.scrollToTop);
|
147
|
-
this.removeEventListener('atomic/relevanceInspector/close', this.closeRelevanceInspector);
|
148
|
-
this.removeEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
149
140
|
}
|
150
141
|
// TODO - (v4) KIT-4991: Make private.
|
151
142
|
scrollToTop() {
|
@@ -156,8 +147,13 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
156
147
|
}
|
157
148
|
scrollContainerElement.scrollIntoView({ behavior: 'smooth' });
|
158
149
|
}
|
150
|
+
/**
|
151
|
+
* @deprecated provided for backward compatibility. set the 'open' property directly on the relevance inspector instead.
|
152
|
+
*/
|
159
153
|
closeRelevanceInspector() {
|
160
|
-
this.
|
154
|
+
if (this.relevanceInspector) {
|
155
|
+
this.relevanceInspector.open = false;
|
156
|
+
}
|
161
157
|
}
|
162
158
|
/**
|
163
159
|
* Initializes the connection with the headless search engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
|
@@ -260,6 +256,11 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
260
256
|
const fields = EcommerceDefaultFieldsToInclude.concat(this.fieldsToInclude);
|
261
257
|
this.store.addFieldsToInclude(fields);
|
262
258
|
}
|
259
|
+
updateFieldsToInclude() {
|
260
|
+
this.store.state.fieldsToInclude = [];
|
261
|
+
this.initFieldsToInclude();
|
262
|
+
this.registerFieldsToInclude();
|
263
|
+
}
|
263
264
|
registerFieldsToInclude() {
|
264
265
|
this.engine?.dispatch(loadFieldActions(this.engine).registerFieldsToInclude(this.store.state.fieldsToInclude));
|
265
266
|
}
|
@@ -314,11 +315,6 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
314
315
|
this.unsubscribeUrlManager = this.urlManager.subscribe(() => this.updateHash());
|
315
316
|
window.addEventListener('hashchange', this.onHashChange);
|
316
317
|
}
|
317
|
-
initRelevanceInspector() {
|
318
|
-
if (this.enableRelevanceInspector && !this.disableRelevanceInspector) {
|
319
|
-
this.addEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
320
|
-
}
|
321
|
-
}
|
322
318
|
initSearchStatus() {
|
323
319
|
this.searchStatus = buildSearchStatus(this.engine);
|
324
320
|
this.unsubscribeSearchStatus = this.searchStatus.subscribe(() => {
|
@@ -363,10 +359,7 @@ let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCo
|
|
363
359
|
return html `
|
364
360
|
${when(this.bindings?.engine &&
|
365
361
|
this.enableRelevanceInspector &&
|
366
|
-
!this.disableRelevanceInspector, () => html `<atomic-relevance-inspector
|
367
|
-
?open=${this.relevanceInspectorIsOpen}
|
368
|
-
.bindings=${this.bindings}
|
369
|
-
></atomic-relevance-inspector>`)}
|
362
|
+
!this.disableRelevanceInspector, () => html `<atomic-relevance-inspector></atomic-relevance-inspector>`)}
|
370
363
|
<slot></slot>
|
371
364
|
`;
|
372
365
|
}
|
@@ -382,8 +375,8 @@ __decorate([
|
|
382
375
|
state()
|
383
376
|
], AtomicSearchInterface.prototype, "error", void 0);
|
384
377
|
__decorate([
|
385
|
-
|
386
|
-
], AtomicSearchInterface.prototype, "
|
378
|
+
query('atomic-relevance-inspector')
|
379
|
+
], AtomicSearchInterface.prototype, "relevanceInspector", void 0);
|
387
380
|
__decorate([
|
388
381
|
property({
|
389
382
|
type: Array,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
// Auto-generated file
|
2
2
|
export { AtomicPager } from './atomic-pager/atomic-pager.js';
|
3
3
|
export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
|
4
|
+
export { AtomicRelevanceInspector } from './atomic-relevance-inspector/atomic-relevance-inspector.js';
|
4
5
|
export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
|
5
6
|
export { AtomicSearchInterface } from './atomic-search-interface/atomic-search-interface.js';
|
6
7
|
export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
|
@@ -2,6 +2,7 @@
|
|
2
2
|
export default {
|
3
3
|
'atomic-pager': async () => await import('./atomic-pager/atomic-pager.js'),
|
4
4
|
'atomic-query-summary': async () => await import('./atomic-query-summary/atomic-query-summary.js'),
|
5
|
+
'atomic-relevance-inspector': async () => await import('./atomic-relevance-inspector/atomic-relevance-inspector.js'),
|
5
6
|
'atomic-results-per-page': async () => await import('./atomic-results-per-page/atomic-results-per-page.js'),
|
6
7
|
'atomic-search-interface': async () => await import('./atomic-search-interface/atomic-search-interface.js'),
|
7
8
|
'atomic-search-layout': async () => await import('./atomic-search-layout/atomic-search-layout.js'),
|
@@ -42,11 +42,11 @@ const FacetNumberInput = /*@__PURE__*/ proxyCustomElement(class FacetNumberInput
|
|
42
42
|
const inputClasses = 'p-2.5 input-primary placeholder-neutral-dark min-w-0 mr-1';
|
43
43
|
const labelClasses = 'text-neutral-dark text-sm';
|
44
44
|
const step = this.type === 'integer' ? '1' : 'any';
|
45
|
-
return (h("form", { key: '
|
45
|
+
return (h("form", { key: '50b7dee0d6dc358f1ab54f485605f674f4b4f086', class: "mt-4 gap-y-0.5 px-2", part: "input-form", onSubmit: (e) => {
|
46
46
|
e.preventDefault();
|
47
47
|
this.apply();
|
48
48
|
return false;
|
49
|
-
} }, h("label", { key: '
|
49
|
+
} }, h("label", { key: '1e27929ca1ea2ffe616377bba78c0394028ff3a2', part: "label-start", class: labelClasses, htmlFor: `${this.filterState.facetId}_start` }, minText), h("input", { key: 'a179aa5b898e60b38d0eb15977f23cdcf9f7c31d', part: "input-start", id: `${this.filterState.facetId}_start`, type: "number", step: step, ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": minAria, required: true, min: Number.MIN_SAFE_INTEGER, max: this.end, value: this.filterState.range?.start, onInput: (e) => (this.start = e.target.valueAsNumber) }), h("label", { key: 'd77ef3eaf1ad74999e5793e072037ffc4d35cd89', part: "label-end", class: labelClasses, htmlFor: `${this.filterState.facetId}_end` }, maxText), h("input", { key: '147793a1619dcb567febe7ed1583642e68edcf2b', part: "input-end", id: `${this.filterState.facetId}_end`, type: "number", step: step, ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": maxAria, required: true, min: this.start, max: Number.MAX_SAFE_INTEGER, value: this.filterState.range?.end, onInput: (e) => (this.end = e.target.valueAsNumber) }), h(Button, { key: '283c333fd999fb87f0080e45182a1c0e5fd7832d', style: "outline-primary", type: "submit", part: "input-apply-button", class: "flex-none truncate p-2.5", ariaLabel: applyAria, text: apply })));
|
50
50
|
}
|
51
51
|
static get style() { return AtomicFacetNumberInputStyle0; }
|
52
52
|
}, [0, "atomic-facet-number-input", {
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"index.js","mappings":"
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;MCHa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACoDA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/stencil-product-template-decorators.tsx","src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/decorators/commerce/product-template-decorators.ts"],"sourcesContent":["import {Product} from '@coveo/headless/commerce';\nimport {itemContext} from '../../common/item-list/stencil-item-decorators';\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * 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).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {InteractiveProduct, Product} from '@coveo/headless/commerce';\nimport type {LitElement} from 'lit';\nimport {\n InteractiveItemContextController,\n type InteractiveItemContextEvent,\n} from '@/src/components/common/item-list/context/interactive-item-context-controller';\nimport {\n ItemContextController,\n type ItemContextEvent,\n} from '@/src/components/common/item-list/context/item-context-controller';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing product context in product template components.\n *\n * @param host - The Lit component instance\n * @param options - Configuration options\n * @returns ItemContextController instance configured for atomic-product\n *\n * @example\n * ```typescript\n * @customElement('my-product-component')\n * export class MyProductComponent extends LitElement {\n * private productController = createProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.productController.item;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createProductContextController(\n host: LitElement & {error: Error | null},\n options: {folded?: boolean} = {}\n): ItemContextController<Product> {\n return new ItemContextController<Product>(host, {\n parentName: 'atomic-product',\n folded: options.folded ?? false,\n });\n}\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing interactive product context in product template components.\n *\n * @param host - The Lit component instance\n * @returns InteractiveItemContextController instance\n *\n * @example\n * ```typescript\n * @customElement('my-interactive-product-component')\n * export class MyInteractiveProductComponent extends LitElement {\n * private interactiveProductController = createInteractiveProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.interactiveProductController.interactiveItem;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createInteractiveProductContextController(\n host: LitElement & {error: Error}\n): InteractiveItemContextController<InteractiveProduct> {\n return new InteractiveItemContextController<InteractiveProduct>(host);\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent<\n T extends InteractiveProduct = InteractiveProduct,\n> = InteractiveItemContextEvent<T>;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n"],"version":3}
|
@@ -36,6 +36,6 @@ function updateBreakpoints(element) {
|
|
36
36
|
replateStyleContent(element, layout.mobileBreakpoint);
|
37
37
|
}
|
38
38
|
|
39
|
-
export {
|
39
|
+
export { updateBreakpoints as u };
|
40
40
|
|
41
41
|
//# sourceMappingURL=replace-breakpoint-utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"replace-breakpoint-utils.js","mappings":";;
|
1
|
+
{"file":"replace-breakpoint-utils.js","mappings":";;AAEO,MAAM,yBAAyB,GAAG,QAAQ,CAAC;AAElD,SAAS,iBAAiB,CAAC,KAAa,EAAE,gBAAwB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CACtB,iBAAiB,yBAAyB,mBAAmB,yBAAyB,KAAK,EAC3F,GAAG,CACJ,CAAC;IACF,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,aAAa,gBAAgB,GAAG,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAoB,EAAE,gBAAwB;IACvE,MAAM,WAAW,GAAG,OAAO,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAC3D,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE;QACvC,OAAO;KACR;IAED,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;IAClC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC;SAC7C,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC;SAC3B,IAAI,CAAC,EAAE,CAAC,CAAC;IACZ,UAAU,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAoB,EAAE,UAAkB;IACnE,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC5D,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO;KACR;IAED,QAAQ,CAAC,WAAW,GAAG,iBAAiB,CAAC,QAAQ,CAAC,WAAY,EAAE,UAAU,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,OAAO,GAAG,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;SAElD,iBAAiB,CAAC,OAAoB;IACpD,MAAM,MAAM,GAAyB,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAE1E,IAAI,CAAC,MAAM,EAAE,gBAAgB,EAAE;QAC7B,OAAO;KACR;IAED,IAAI,MAAM,CAAC,gBAAgB,KAAK,yBAAyB,EAAE;QACzD,OAAO;KACR;IAED,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACpD,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/utils/replace-breakpoint-utils.ts"],"sourcesContent":["import {closest} from './dom-utils';\n\nexport const DEFAULT_MOBILE_BREAKPOINT = '1024px';\n\nfunction replaceMediaQuery(style: string, mobileBreakpoint: string) {\n const regex = new RegExp(\n `\\\\(min-width: ${DEFAULT_MOBILE_BREAKPOINT}\\\\)|\\\\(width >= ${DEFAULT_MOBILE_BREAKPOINT}\\\\)`,\n 'g'\n );\n return style.replace(regex, `(width >= ${mobileBreakpoint})`);\n}\n\nfunction replaceStyleSheet(element: HTMLElement, mobileBreakpoint: string) {\n const stylesheets = element.shadowRoot?.adoptedStyleSheets;\n if (!stylesheets || !stylesheets.length) {\n return;\n }\n\n const stylesheet = stylesheets[0];\n const style = Object.values(stylesheet.cssRules)\n .map((rule) => rule.cssText)\n .join('');\n stylesheet.replaceSync(replaceMediaQuery(style, mobileBreakpoint));\n}\n\nfunction replateStyleContent(element: HTMLElement, breakpoint: string) {\n const styleTag = element.shadowRoot?.querySelector('style');\n if (!styleTag) {\n return;\n }\n\n styleTag.textContent = replaceMediaQuery(styleTag.textContent!, breakpoint);\n}\n\nconst layouts = ['atomic-search-layout', 'atomic-insight-layout'];\ntype LayoutElement = HTMLElement & {mobileBreakpoint: string};\nexport function updateBreakpoints(element: HTMLElement) {\n const layout: LayoutElement | null = closest(element, layouts.join(', '));\n\n if (!layout?.mobileBreakpoint) {\n return;\n }\n\n if (layout.mobileBreakpoint === DEFAULT_MOBILE_BREAKPOINT) {\n return;\n }\n\n replaceStyleSheet(element, layout.mobileBreakpoint);\n replateStyleContent(element, layout.mobileBreakpoint);\n}\n"],"version":3}
|