@coveo/atomic 3.31.1 → 3.31.2-pre.81392399e7
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/README.md +3 -3
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/analytics-config.js.map +1 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/props-utils.js +0 -3
- package/dist/atomic/components/props-utils.js.map +1 -1
- package/dist/atomic/components/utils/props-utils.js +0 -3
- package/dist/atomic/{p-d8953e30.entry.js → p-0ec46480.entry.js} +2 -2
- package/dist/atomic/{p-c9fc93d7.entry.js → p-174f6410.entry.js} +2 -2
- package/dist/atomic/{p-494c57a0.entry.js → p-28cea2b1.entry.js} +2 -2
- package/dist/atomic/{p-59e565ae.entry.js → p-2ba33076.entry.js} +2 -2
- package/dist/atomic/{p-04f6c431.entry.js → p-3ce4d644.entry.js} +2 -2
- package/dist/atomic/{p-0674783d.entry.js → p-446b788b.entry.js} +2 -2
- package/dist/atomic/{p-fae68fde.entry.js → p-538fa6a8.entry.js} +2 -2
- package/dist/atomic/{p-efe9ef19.entry.js → p-5920a26f.entry.js} +2 -2
- package/dist/atomic/{p-da185993.entry.js → p-5a1b0c43.entry.js} +2 -2
- package/dist/atomic/{p-e215ba76.entry.js → p-609d801e.entry.js} +2 -2
- package/dist/atomic/{p-4e77fe24.entry.js → p-64dc1a62.entry.js} +2 -2
- package/dist/atomic/{p-b6eadfae.entry.js → p-7017f8da.entry.js} +2 -2
- package/dist/atomic/{p-89fbc54c.entry.js → p-741cfe8d.entry.js} +2 -2
- package/dist/atomic/{p-2e028d26.entry.js → p-7969276e.entry.js} +2 -2
- package/dist/atomic/{p-2e00152f.entry.js → p-7b6843d6.entry.js} +2 -2
- package/dist/atomic/{p-29aed56e.js → p-8300e2f3.js} +2 -2
- package/dist/atomic/{p-29aed56e.js.map → p-8300e2f3.js.map} +1 -1
- package/dist/atomic/{p-cbaf262a.entry.js → p-84740eed.entry.js} +2 -2
- package/dist/atomic/{p-11dd759c.entry.js → p-85749286.entry.js} +2 -2
- package/dist/atomic/{p-a0b3c6e2.entry.js → p-8edfd289.entry.js} +2 -2
- package/dist/atomic/{p-0f3df0e6.entry.js → p-a24a8702.entry.js} +2 -2
- package/dist/atomic/{p-ebb8ae5b.entry.js → p-a4f1e397.entry.js} +2 -2
- package/dist/atomic/{p-0007beed.entry.js → p-b8beb062.entry.js} +2 -2
- package/dist/atomic/{p-7d2a47f5.entry.js → p-be04b3b0.entry.js} +2 -2
- package/dist/atomic/{p-fc73190d.entry.js → p-c8f4a164.entry.js} +2 -2
- package/dist/atomic/{p-16914fd4.entry.js → p-d1d012bc.entry.js} +2 -2
- package/dist/atomic/{p-86428057.js → p-d2db2d70.js} +1 -1
- package/dist/atomic/p-d2db2d70.js.map +1 -0
- package/dist/atomic/{p-8bb323e8.entry.js → p-e14019fd.entry.js} +2 -2
- package/dist/atomic/{p-c874a70b.entry.js → p-f7ae7657.entry.js} +2 -2
- package/dist/cjs/{analytics-config-bd387ecc.js → analytics-config-3a2fc126.js} +2 -2
- package/dist/cjs/analytics-config-3a2fc126.js.map +1 -0
- package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-field-condition.cjs.entry.js +1 -1
- package/dist/cjs/atomic-folded-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-children-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js +1 -1
- package/dist/cjs/atomic-rating-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-children-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-localized-text.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-template.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-segmented-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-timeframe-facet.cjs.entry.js +1 -1
- package/dist/cjs/{props-utils-1e4ba1b0.js → props-utils-dd638419.js} +1 -4
- package/dist/cjs/props-utils-dd638419.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/{analytics-config-1c4284fd.js → analytics-config-371aa4cf.js} +2 -2
- package/dist/esm/analytics-config-371aa4cf.js.map +1 -0
- package/dist/esm/atomic-category-facet.entry.js +1 -1
- package/dist/esm/atomic-color-facet.entry.js +1 -1
- package/dist/esm/atomic-facet.entry.js +1 -1
- package/dist/esm/atomic-field-condition.entry.js +1 -1
- package/dist/esm/atomic-folded-result-list.entry.js +1 -1
- package/dist/esm/atomic-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-insight-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-insight-result-children-template.entry.js +1 -1
- package/dist/esm/atomic-insight-result-template.entry.js +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-product-field-condition.entry.js +1 -1
- package/dist/esm/atomic-rating-facet.entry.js +1 -1
- package/dist/esm/atomic-rating-range-facet.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-result-template.entry.js +1 -1
- package/dist/esm/atomic-result-children-template.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-result-localized-text.entry.js +1 -1
- package/dist/esm/atomic-result-template.entry.js +1 -1
- package/dist/esm/atomic-search-interface.entry.js +2 -2
- package/dist/esm/atomic-segmented-facet.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet.entry.js +1 -1
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-timeframe-facet.entry.js +1 -1
- package/dist/esm/{props-utils-e17fa18c.js → props-utils-8e3d7f26.js} +1 -4
- package/dist/esm/props-utils-8e3d7f26.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/utils/props-utils.d.ts +0 -3
- package/docs/atomic-docs.json +1 -1
- package/package.json +23 -11
- package/dist/atomic/p-86428057.js.map +0 -1
- package/dist/cjs/analytics-config-bd387ecc.js.map +0 -1
- package/dist/cjs/props-utils-1e4ba1b0.js.map +0 -1
- package/dist/esm/analytics-config-1c4284fd.js.map +0 -1
- package/dist/esm/props-utils-e17fa18c.js.map +0 -1
- /package/dist/atomic/{p-d8953e30.entry.js.map → p-0ec46480.entry.js.map} +0 -0
- /package/dist/atomic/{p-c9fc93d7.entry.js.map → p-174f6410.entry.js.map} +0 -0
- /package/dist/atomic/{p-494c57a0.entry.js.map → p-28cea2b1.entry.js.map} +0 -0
- /package/dist/atomic/{p-59e565ae.entry.js.map → p-2ba33076.entry.js.map} +0 -0
- /package/dist/atomic/{p-04f6c431.entry.js.map → p-3ce4d644.entry.js.map} +0 -0
- /package/dist/atomic/{p-0674783d.entry.js.map → p-446b788b.entry.js.map} +0 -0
- /package/dist/atomic/{p-fae68fde.entry.js.map → p-538fa6a8.entry.js.map} +0 -0
- /package/dist/atomic/{p-efe9ef19.entry.js.map → p-5920a26f.entry.js.map} +0 -0
- /package/dist/atomic/{p-da185993.entry.js.map → p-5a1b0c43.entry.js.map} +0 -0
- /package/dist/atomic/{p-e215ba76.entry.js.map → p-609d801e.entry.js.map} +0 -0
- /package/dist/atomic/{p-4e77fe24.entry.js.map → p-64dc1a62.entry.js.map} +0 -0
- /package/dist/atomic/{p-b6eadfae.entry.js.map → p-7017f8da.entry.js.map} +0 -0
- /package/dist/atomic/{p-89fbc54c.entry.js.map → p-741cfe8d.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e028d26.entry.js.map → p-7969276e.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e00152f.entry.js.map → p-7b6843d6.entry.js.map} +0 -0
- /package/dist/atomic/{p-cbaf262a.entry.js.map → p-84740eed.entry.js.map} +0 -0
- /package/dist/atomic/{p-11dd759c.entry.js.map → p-85749286.entry.js.map} +0 -0
- /package/dist/atomic/{p-a0b3c6e2.entry.js.map → p-8edfd289.entry.js.map} +0 -0
- /package/dist/atomic/{p-0f3df0e6.entry.js.map → p-a24a8702.entry.js.map} +0 -0
- /package/dist/atomic/{p-ebb8ae5b.entry.js.map → p-a4f1e397.entry.js.map} +0 -0
- /package/dist/atomic/{p-0007beed.entry.js.map → p-b8beb062.entry.js.map} +0 -0
- /package/dist/atomic/{p-7d2a47f5.entry.js.map → p-be04b3b0.entry.js.map} +0 -0
- /package/dist/atomic/{p-fc73190d.entry.js.map → p-c8f4a164.entry.js.map} +0 -0
- /package/dist/atomic/{p-16914fd4.entry.js.map → p-d1d012bc.entry.js.map} +0 -0
- /package/dist/atomic/{p-8bb323e8.entry.js.map → p-e14019fd.entry.js.map} +0 -0
- /package/dist/atomic/{p-c874a70b.entry.js.map → p-f7ae7657.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, F as Fragment, g as getElement } from './inde
|
|
|
2
2
|
import { buildSearchStatus, buildTabManager, buildCategoryFacet, buildFacetConditionsManager } from '@coveo/headless';
|
|
3
3
|
import { a as getFieldCaptions, g as getFieldValueCaption } from './field-utils-f0146383.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { A as AriaLiveRegion, F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { C as CategoryFacetParentAsTreeContainer, a as CategoryFacetAllCategoryButton, b as CategoryFacetTreeValueContainer, c as CategoryFacetParentButton, d as CategoryFacetChildrenAsTreeContainer, e as CategoryFacetParentValueLink, f as CategoryFacetChildValueLink, g as CategoryFacetSearchValue, h as CategoryFacetSearchResultsContainer } from './value-as-tree-container-817faf3b.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildSearchStatus, buildFacet, buildTabManager, buildFacetConditionsManager } from '@coveo/headless';
|
|
3
3
|
import { a as getFieldCaptions, g as getFieldValueCaption } from './field-utils-f0146383.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { A as AriaLiveRegion, F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
8
8
|
import { F as FacetHeader, a as FacetContainer } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, F as Fragment, g as getElement } from './inde
|
|
|
2
2
|
import { buildFacet, buildSearchStatus, buildTabManager, buildFacetConditionsManager } from '@coveo/headless';
|
|
3
3
|
import { a as getFieldCaptions } from './field-utils-f0146383.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { A as AriaLiveRegion, F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
8
8
|
import { a as FacetContainer, F as FacetHeader } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { ResultTemplatesHelpers } from '@coveo/headless';
|
|
3
|
-
import { M as MapProp } from './props-utils-
|
|
3
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
4
4
|
import { m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
5
5
|
import { R as ResultContext } from './result-template-decorators-2ed76ea9.js';
|
|
6
6
|
import '@coveo/bueno';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildResultsPerPage, buildTabManager, buildFoldedResultList, buildInteractiveResult } from '@coveo/headless';
|
|
3
3
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
|
|
7
7
|
import { r as randomID } from './utils-30b00491.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildInteractiveCitation, buildGeneratedAnswer, buildSearchStatus, buildTabManager } from '@coveo/headless';
|
|
3
3
|
import { d as debounce } from './debounce-utils-efa015c0.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { A as AriaLiveRegion } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
|
|
8
8
|
import { G as GeneratedAnswerCommon } from './generated-answer-common-ee9bfc67.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, H as Host, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { buildResultsPerPage, loadFieldActions, buildInsightEngine } from '@coveo/headless/insight';
|
|
4
|
-
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { g as getNextAnalyticsConfig, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance } from './analytics-config-371aa4cf.js';
|
|
5
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
7
7
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-5fcae420.js';
|
|
8
8
|
import { m as makeDesktopQuery } from './insight-layout-776b87f2.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { Schema, StringValue } from '@coveo/bueno';
|
|
3
3
|
import { buildNumericFacet, buildNumericRange, buildNumericFilter, buildFacetConditionsManager, buildSearchStatus, loadNumericFacetSetActions } from '@coveo/headless/insight';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { M as MapProp } from './props-utils-
|
|
5
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { r as randomID } from './utils-30b00491.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildFacetConditionsManager, buildDateRange, deserializeRelativeDate, buildSearchStatus, buildDateFacet, buildDateFilter, loadDateFacetSetActions } from '@coveo/headless/insight';
|
|
3
3
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { M as MapProp } from './props-utils-
|
|
4
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetPlaceholder } from './facet-placeholder-ecbe6e6f.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { Schema, StringValue } from '@coveo/bueno';
|
|
3
3
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildNumericRange, buildNumericFilter, buildFacetConditionsManager, loadNumericFacetSetActions } from '@coveo/headless';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { r as randomID } from './utils-30b00491.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import './purify-c7ebd240.js';
|
|
4
4
|
import { ProductTemplatesHelpers } from '@coveo/headless/commerce';
|
|
5
5
|
import { P as ProductContext } from './stencil-product-template-decorators-58cfc116.js';
|
|
@@ -3,7 +3,7 @@ import { Schema, StringValue } from '@coveo/bueno';
|
|
|
3
3
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildFacetConditionsManager, buildNumericRange } from '@coveo/headless';
|
|
4
4
|
import { S as Star, R as Rating } from './atomic-rating-c16526af.js';
|
|
5
5
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
6
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
7
7
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
8
8
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
9
9
|
import { F as FacetHeader, a as FacetContainer } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildSearchStatus, buildTabManager, buildNumericFacet, buildFacetConditionsManager, buildNumericRange } from '@coveo/headless';
|
|
3
3
|
import { S as Star, R as Rating } from './atomic-rating-c16526af.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
7
7
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
8
8
|
import { F as FacetHeader, a as FacetContainer } from './stencil-facet-header-6a0bb1d4.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadRecommendationActions, loadSearchConfigurationActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildRecommendationEngine } from '@coveo/headless/recommendation';
|
|
4
|
-
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
5
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { g as getNextAnalyticsConfig, c as augmentAnalyticsConfigWithDocument, d as augmentAnalyticsConfigWithAtomicVersion, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-371aa4cf.js';
|
|
5
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { u as unsetLoadingFlag, s as setLoadingFlag, a as createBaseStore } from './store-5fcae420.js';
|
|
7
7
|
import './dayjs.min-d04628c6.js';
|
|
8
8
|
import './_commonjsHelpers-1789f0cf.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import { R as ResultTemplateCommon, a as makeDefinedConditions, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import { R as ResultTemplateCommon, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildTabManager, buildResultList, buildResultsPerPage, buildInteractiveResult } from '@coveo/headless';
|
|
3
3
|
import { H as Hidden, I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { A as ArrayProp } from './props-utils-
|
|
4
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { r as randomID } from './utils-30b00491.js';
|
|
7
7
|
import { R as ResultsPlaceholdersGuard } from './stencil-placeholders-58a0c818.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance } from './index-3f35faca.js';
|
|
|
2
2
|
import { isNullOrUndefined } from '@coveo/bueno';
|
|
3
3
|
import { ResultTemplatesHelpers } from '@coveo/headless';
|
|
4
4
|
import { I as InitializeBindings } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { M as MapProp } from './props-utils-
|
|
5
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { R as ResultContext } from './result-template-decorators-2ed76ea9.js';
|
|
7
7
|
import './dom-utils-f6086cd3.js';
|
|
8
8
|
import './event-utils-8de63ec3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { M as MapProp } from './props-utils-
|
|
2
|
+
import { M as MapProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import { R as ResultTemplateCommon, m as makeMatchConditions } from './result-template-common-0eb26069.js';
|
|
4
4
|
import '@coveo/bueno';
|
|
5
5
|
import './utils-30b00491.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, s as setNonce, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue-fbe942c3.js';
|
|
3
3
|
import { loadSearchConfigurationActions, loadQueryActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildSearchEngine, buildUrlManager, buildSearchStatus } from '@coveo/headless';
|
|
4
|
-
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-
|
|
4
|
+
import { g as getNextAnalyticsConfig, d as augmentAnalyticsConfigWithAtomicVersion, c as augmentAnalyticsConfigWithDocument, a as augmentWithExternalMiddleware, b as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config-371aa4cf.js';
|
|
5
5
|
import { a as StorageItems, S as SafeStorage } from './local-storage-utils-410269e6.js';
|
|
6
|
-
import { A as ArrayProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
7
7
|
import { m as makeDesktopQuery, n as noResultsSelector, e as errorSelector, f as firstSearchExecutedSelector } from './search-layout-1e3bd9fd.js';
|
|
8
8
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint-213367f8.js';
|
|
9
9
|
import { u as unsetLoadingFlag, s as setLoadingFlag, r as registerFacet, g as getFacetElements, w as waitUntilAppLoaded, a as createBaseStore } from './store-5fcae420.js';
|
|
@@ -2,7 +2,7 @@ import { h, r as registerInstance } from './index-3f35faca.js';
|
|
|
2
2
|
import { buildSearchStatus, buildTabManager, buildFacet, buildFacetConditionsManager } from '@coveo/headless';
|
|
3
3
|
import { g as getFieldValueCaption } from './field-utils-f0146383.js';
|
|
4
4
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
5
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
5
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetValuesGroup } from './stencil-facet-values-group-1108573d.js';
|
|
8
8
|
import { B as Button } from './stencil-button-2a8cc429.js';
|
|
@@ -3,7 +3,7 @@ import { S as SmartSnippetQuestion, d as SmartSnippetTruncatedAnswer, a as Smart
|
|
|
3
3
|
import { r as randomID } from './utils-30b00491.js';
|
|
4
4
|
import { buildSmartSnippet, buildTabManager } from '@coveo/headless';
|
|
5
5
|
import { I as InitializeBindings, B as BindStateToController, H as Hidden } from './initialization-utils-ff3edf9a.js';
|
|
6
|
-
import { A as ArrayProp } from './props-utils-
|
|
6
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
7
7
|
import { s as shouldDisplayOnCurrentTab } from './tab-utils-35886d3e.js';
|
|
8
8
|
import { g as getAttributesFromLinkSlot } from './attributes-slot-0fb13fa2.js';
|
|
9
9
|
import './stencil-button-2a8cc429.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
|
-
import { A as ArrayProp } from './props-utils-
|
|
2
|
+
import { A as ArrayProp } from './props-utils-8e3d7f26.js';
|
|
3
3
|
import '@coveo/bueno';
|
|
4
4
|
import './utils-30b00491.js';
|
|
5
5
|
import './purify-c7ebd240.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-3f35faca.js';
|
|
2
2
|
import { buildFacetConditionsManager, buildDateRange, deserializeRelativeDate, buildSearchStatus, buildTabManager, buildDateFacet, buildDateFilter, loadDateFacetSetActions } from '@coveo/headless';
|
|
3
3
|
import { I as InitializeBindings, B as BindStateToController } from './initialization-utils-ff3edf9a.js';
|
|
4
|
-
import { A as ArrayProp, M as MapProp } from './props-utils-
|
|
4
|
+
import { A as ArrayProp, M as MapProp } from './props-utils-8e3d7f26.js';
|
|
5
5
|
import { F as FocusTargetController } from './stencil-accessibility-utils-bc273be5.js';
|
|
6
6
|
import { p as parseDependsOn } from './depends-on-d73b0ce3.js';
|
|
7
7
|
import { F as FacetPlaceholder } from './facet-placeholder-ecbe6e6f.js';
|
|
@@ -21,9 +21,6 @@ function MapProp(opts) {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated In Lit, you can achieve the same behavior by using `@property({type: Array})`.
|
|
26
|
-
*/
|
|
27
24
|
function ArrayProp() {
|
|
28
25
|
return (component, variableName) => {
|
|
29
26
|
const { componentWillLoad } = component;
|
|
@@ -83,4 +80,4 @@ function attributesToStringMap(prefix, attributes) {
|
|
|
83
80
|
|
|
84
81
|
export { ArrayProp as A, MapProp as M };
|
|
85
82
|
|
|
86
|
-
//# sourceMappingURL=props-utils-
|
|
83
|
+
//# sourceMappingURL=props-utils-8e3d7f26.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"props-utils-8e3d7f26.js","mappings":"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","names":[],"sources":["src/utils/props-utils.ts"],"sourcesContent":["import {isArray} from '@coveo/bueno';\nimport {type ComponentInterface, getElement} from '@stencil/core';\nimport type {ReactiveElement} from 'lit';\nimport {camelToKebab, kebabToCamel} from './utils';\n\ninterface MapPropOptions {\n attributePrefix?: string;\n splitValues?: boolean;\n}\n\nexport function mapProperty<Element extends ReactiveElement>(\n options?: MapPropOptions\n) {\n return <\n Instance extends Element & Record<string, unknown>,\n K extends keyof Instance,\n >(\n proto: ReactiveElement,\n propertyKey: K\n ) => {\n const ctor = proto.constructor as typeof ReactiveElement;\n ctor.addInitializer((instance) => {\n const props = {};\n const prefix =\n options?.attributePrefix || camelToKebab(propertyKey.toString());\n\n mapAttributesToProp(\n prefix,\n props,\n Array.from(instance.attributes),\n options?.splitValues ?? false\n );\n\n (instance as Instance)[propertyKey] = props as Instance[K];\n });\n };\n}\n\n/**\n * @deprecated Use the `mapProperty` decorator instead.\n */\nexport function MapProp(opts?: MapPropOptions) {\n return (component: ComponentInterface, variableName: string) => {\n const {componentWillLoad} = component;\n if (!componentWillLoad) {\n console.error(\n 'The \"componentWillLoad\" lifecycle method has to be defined for the MapProp decorator to work.'\n );\n return;\n }\n\n component.componentWillLoad = function () {\n const prefix = opts?.attributePrefix || variableName;\n const variable = this[variableName];\n const attributes = getElement(this).attributes;\n mapAttributesToProp(\n prefix,\n variable,\n Array.from(attributes),\n opts?.splitValues ?? false\n );\n componentWillLoad.call(this);\n };\n };\n}\n\nexport function ArrayProp() {\n return (component: ComponentInterface, variableName: string) => {\n const {componentWillLoad} = component;\n\n const attributeWithBrackets = camelToKebab(variableName);\n\n component.componentWillLoad = function () {\n const value = this[variableName];\n if (!value || isArray(value)) {\n componentWillLoad?.call(this);\n return;\n }\n\n try {\n const valueAsArray = JSON.parse(value);\n if (isArray(valueAsArray)) {\n this[variableName] = valueAsArray;\n } else {\n console.error(\n `Property ${attributeWithBrackets} should be an array`,\n getElement(this)\n );\n }\n } catch (e) {\n console.error(\n `Error while parsing attribute ${attributeWithBrackets} as array`,\n e\n );\n }\n\n componentWillLoad?.call(this);\n };\n };\n}\n\nfunction splitAttributeValueOnCommas(attributeValue: string) {\n const splitButIgnoreEscapeSymbolsExpression = /(?:\\\\.|[^,])+/g;\n const [...valuesWithEscapeSymbols] =\n attributeValue.matchAll(splitButIgnoreEscapeSymbolsExpression) ?? [];\n\n const removeEscapeSymbolsExpression = /\\\\(.)/g;\n return valuesWithEscapeSymbols.map(([valuesWithEscapeSymbols]) =>\n valuesWithEscapeSymbols.replace(removeEscapeSymbolsExpression, '$1')\n );\n}\n\nexport function mapAttributesToProp(\n prefix: string,\n mapVariable: Record<string, string | string[]>,\n attributes: {name: string; value: string}[],\n splitValues: boolean\n) {\n const map = attributesToStringMap(prefix, attributes);\n Object.assign(\n mapVariable,\n splitValues ? stringMapToStringArrayMap(map) : map\n );\n}\n\nfunction stringMapToStringArrayMap(map: Record<string, string>) {\n return Object.entries(map).reduce(\n (acc, [key, value]) => ({\n // biome-ignore lint/performance/noAccumulatingSpread: <>\n ...acc,\n [key]: splitAttributeValueOnCommas(value).map((subValue) =>\n subValue.trim()\n ),\n }),\n {}\n );\n}\n\nfunction attributesToStringMap(\n prefix: string,\n attributes: {name: string; value: string}[]\n) {\n const mapVariable: Record<string, string> = {};\n const kebabPrefix = `${camelToKebab(prefix)}-`;\n for (let i = 0; i < attributes.length; i++) {\n const attribute = attributes[i];\n if (attribute.name.indexOf(kebabPrefix) !== 0) {\n continue;\n }\n\n const property = kebabToCamel(attribute.name.replace(kebabPrefix, ''));\n mapVariable[property] = `${attribute.value}`;\n }\n return mapVariable;\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.27.
|
|
2
|
-
export const atomicVersion = '3.31.
|
|
1
|
+
export const headlessVersion = '3.27.8-pre.81392399e7';
|
|
2
|
+
export const atomicVersion = '3.31.2-pre.81392399e7';
|
|
@@ -9,9 +9,6 @@ export declare function mapProperty<Element extends ReactiveElement>(options?: M
|
|
|
9
9
|
* @deprecated Use the `mapProperty` decorator instead.
|
|
10
10
|
*/
|
|
11
11
|
export declare function MapProp(opts?: MapPropOptions): (component: ComponentInterface, variableName: string) => void;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated In Lit, you can achieve the same behavior by using `@property({type: Array})`.
|
|
14
|
-
*/
|
|
15
12
|
export declare function ArrayProp(): (component: ComponentInterface, variableName: string) => void;
|
|
16
13
|
export declare function mapAttributesToProp(prefix: string, mapVariable: Record<string, string | string[]>, attributes: {
|
|
17
14
|
name: string;
|
package/docs/atomic-docs.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.31.
|
|
4
|
+
"version": "3.31.2-pre.81392399e7",
|
|
5
5
|
"description": "A web-component library for building modern UIs interfacing with the Coveo platform",
|
|
6
6
|
"homepage": "https://docs.coveo.com/en/atomic/latest/",
|
|
7
7
|
"repository": {
|
|
@@ -48,11 +48,22 @@
|
|
|
48
48
|
],
|
|
49
49
|
"scripts": {
|
|
50
50
|
"clean": "rimraf -rf dist/* dist-storybook/* www/* docs/* playwright-report/*",
|
|
51
|
-
"build": "
|
|
52
|
-
"build:
|
|
53
|
-
"
|
|
51
|
+
"build": "npm run build:storybook",
|
|
52
|
+
"build:storybook": "storybook build -o dist-storybook",
|
|
53
|
+
"build:cem": "cem analyze",
|
|
54
|
+
"build:stencil-lit": "node --max_old_space_size=6144 ../../node_modules/@stencil/core/bin/stencil build --tsConfig tsconfig.stencil.json && node ./scripts/stencil-proxy.mjs && node ./scripts/build.mjs --config=tsconfig.lit.json && esbuild src/autoloader/index.ts --format=esm --outfile=dist/atomic/autoloader/index.esm.js && esbuild src/autoloader/index.ts --format=cjs --outfile=dist/atomic/autoloader/index.cjs.js && rollup -c rollup.config.js && rimraf ./dist/atomic/loader/package.json && tsc --noEmit --esModuleInterop --skipLibCheck ./dist/types/components.d.ts",
|
|
55
|
+
"build:angular": "npm run gen:lit -w=@coveo/atomic-angular-builder",
|
|
56
|
+
"build:react": "npm run gen:lit -w=@coveo/atomic-react",
|
|
57
|
+
"build:locales": "node ./scripts/create-generated-folder.mjs && node ./scripts/split-locales.mjs && node ./scripts/copy-dayjs-locales.mjs",
|
|
58
|
+
"build:list-assets": "node ./scripts/list-assets.mjs",
|
|
59
|
+
"start": "concurrently \"node --max_old_space_size=6144 ../../node_modules/@stencil/core/bin/stencil build --dev --watch --tsConfig tsconfig.stencil.json\" \"node ./scripts/dev.mjs\"",
|
|
60
|
+
"dev": "npm run start",
|
|
61
|
+
"web:dev": "npx vite serve dev",
|
|
62
|
+
"web:cdn": "node ./scripts/start-cdn.mjs",
|
|
54
63
|
"prod": "npx serve www -l 3333 --no-request-logging",
|
|
55
|
-
"test": "
|
|
64
|
+
"test": "npm run test:stencil && npm run test:lit",
|
|
65
|
+
"test:stencil": "stencil test --spec -- src/utils/initialization-utils.spec.ts src/components/search/atomic-layout/search-layout.spec.ts",
|
|
66
|
+
"test:lit": "vitest run",
|
|
56
67
|
"test:watch": "vitest",
|
|
57
68
|
"e2e": "cypress run --browser chrome",
|
|
58
69
|
"e2e:firefox": "cypress run --browser firefox",
|
|
@@ -64,15 +75,16 @@
|
|
|
64
75
|
"e2e:snapshots:watch": "cypress open --config-file cypress-screenshots.config.mjs --browser chrome",
|
|
65
76
|
"e2e:insight": "cypress run --config-file cypress-insight-panel.config.mjs --browser chrome",
|
|
66
77
|
"e2e:insight:watch": "cypress open --config-file cypress-insight-panel.config.mjs --browser chrome",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
78
|
+
"generate-component": "node ./scripts/generate-component.mjs",
|
|
79
|
+
"release:phase3": "npm run-script -w=@coveo/ci npm-publish",
|
|
80
|
+
"release:phase1": "npm run-script -w=@coveo/ci bump",
|
|
69
81
|
"promote:npm:latest": "npm run-script -w=@coveo/ci promote-npm-prod",
|
|
70
82
|
"validate:definitions": "tsc --noEmit --esModuleInterop --skipLibCheck ./dist/types/components.d.ts"
|
|
71
83
|
},
|
|
72
84
|
"dependencies": {
|
|
73
85
|
"@lit/context": "1.1.6",
|
|
74
|
-
"@coveo/bueno": "1.0.
|
|
75
|
-
"@coveo/headless": "3.27.
|
|
86
|
+
"@coveo/bueno": "1.0.25-pre.81392399e7",
|
|
87
|
+
"@coveo/headless": "3.27.8-pre.81392399e7",
|
|
76
88
|
"@popperjs/core": "2.11.8",
|
|
77
89
|
"@salesforce-ux/design-system": "2.27.2",
|
|
78
90
|
"@stencil/core": "4.20.0",
|
|
@@ -157,8 +169,8 @@
|
|
|
157
169
|
"wait-on": "8.0.3"
|
|
158
170
|
},
|
|
159
171
|
"peerDependencies": {
|
|
160
|
-
"@coveo/bueno": "1.0.
|
|
161
|
-
"@coveo/headless": "3.27.
|
|
172
|
+
"@coveo/bueno": "1.0.25-pre.81392399e7",
|
|
173
|
+
"@coveo/headless": "3.27.8-pre.81392399e7",
|
|
162
174
|
"typescript": ">=5.0.0"
|
|
163
175
|
},
|
|
164
176
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["MapProp","opts","component","variableName","componentWillLoad","console","error","prefix","attributePrefix","variable","this","attributes","getElement","mapAttributesToProp","Array","from","splitValues","call","ArrayProp","attributeWithBrackets","camelToKebab","value","isArray","valueAsArray","JSON","parse","e","splitAttributeValueOnCommas","attributeValue","splitButIgnoreEscapeSymbolsExpression","valuesWithEscapeSymbols","matchAll","removeEscapeSymbolsExpression","map","replace","mapVariable","attributesToStringMap","Object","assign","stringMapToStringArrayMap","entries","reduce","acc","key","subValue","trim","kebabPrefix","i","length","attribute","name","indexOf","property","kebabToCamel"],"sources":["src/utils/props-utils.ts"],"sourcesContent":["import {isArray} from '@coveo/bueno';\nimport {type ComponentInterface, getElement} from '@stencil/core';\nimport type {ReactiveElement} from 'lit';\nimport {camelToKebab, kebabToCamel} from './utils';\n\ninterface MapPropOptions {\n attributePrefix?: string;\n splitValues?: boolean;\n}\n\nexport function mapProperty<Element extends ReactiveElement>(\n options?: MapPropOptions\n) {\n return <\n Instance extends Element & Record<string, unknown>,\n K extends keyof Instance,\n >(\n proto: ReactiveElement,\n propertyKey: K\n ) => {\n const ctor = proto.constructor as typeof ReactiveElement;\n ctor.addInitializer((instance) => {\n const props = {};\n const prefix =\n options?.attributePrefix || camelToKebab(propertyKey.toString());\n\n mapAttributesToProp(\n prefix,\n props,\n Array.from(instance.attributes),\n options?.splitValues ?? false\n );\n\n (instance as Instance)[propertyKey] = props as Instance[K];\n });\n };\n}\n\n/**\n * @deprecated Use the `mapProperty` decorator instead.\n */\nexport function MapProp(opts?: MapPropOptions) {\n return (component: ComponentInterface, variableName: string) => {\n const {componentWillLoad} = component;\n if (!componentWillLoad) {\n console.error(\n 'The \"componentWillLoad\" lifecycle method has to be defined for the MapProp decorator to work.'\n );\n return;\n }\n\n component.componentWillLoad = function () {\n const prefix = opts?.attributePrefix || variableName;\n const variable = this[variableName];\n const attributes = getElement(this).attributes;\n mapAttributesToProp(\n prefix,\n variable,\n Array.from(attributes),\n opts?.splitValues ?? false\n );\n componentWillLoad.call(this);\n };\n };\n}\n\n/**\n * @deprecated In Lit, you can achieve the same behavior by using `@property({type: Array})`.\n */\nexport function ArrayProp() {\n return (component: ComponentInterface, variableName: string) => {\n const {componentWillLoad} = component;\n\n const attributeWithBrackets = camelToKebab(variableName);\n\n component.componentWillLoad = function () {\n const value = this[variableName];\n if (!value || isArray(value)) {\n componentWillLoad?.call(this);\n return;\n }\n\n try {\n const valueAsArray = JSON.parse(value);\n if (isArray(valueAsArray)) {\n this[variableName] = valueAsArray;\n } else {\n console.error(\n `Property ${attributeWithBrackets} should be an array`,\n getElement(this)\n );\n }\n } catch (e) {\n console.error(\n `Error while parsing attribute ${attributeWithBrackets} as array`,\n e\n );\n }\n\n componentWillLoad?.call(this);\n };\n };\n}\n\nfunction splitAttributeValueOnCommas(attributeValue: string) {\n const splitButIgnoreEscapeSymbolsExpression = /(?:\\\\.|[^,])+/g;\n const [...valuesWithEscapeSymbols] =\n attributeValue.matchAll(splitButIgnoreEscapeSymbolsExpression) ?? [];\n\n const removeEscapeSymbolsExpression = /\\\\(.)/g;\n return valuesWithEscapeSymbols.map(([valuesWithEscapeSymbols]) =>\n valuesWithEscapeSymbols.replace(removeEscapeSymbolsExpression, '$1')\n );\n}\n\nexport function mapAttributesToProp(\n prefix: string,\n mapVariable: Record<string, string | string[]>,\n attributes: {name: string; value: string}[],\n splitValues: boolean\n) {\n const map = attributesToStringMap(prefix, attributes);\n Object.assign(\n mapVariable,\n splitValues ? stringMapToStringArrayMap(map) : map\n );\n}\n\nfunction stringMapToStringArrayMap(map: Record<string, string>) {\n return Object.entries(map).reduce(\n (acc, [key, value]) => ({\n // biome-ignore lint/performance/noAccumulatingSpread: <>\n ...acc,\n [key]: splitAttributeValueOnCommas(value).map((subValue) =>\n subValue.trim()\n ),\n }),\n {}\n );\n}\n\nfunction attributesToStringMap(\n prefix: string,\n attributes: {name: string; value: string}[]\n) {\n const mapVariable: Record<string, string> = {};\n const kebabPrefix = `${camelToKebab(prefix)}-`;\n for (let i = 0; i < attributes.length; i++) {\n const attribute = attributes[i];\n if (attribute.name.indexOf(kebabPrefix) !== 0) {\n continue;\n }\n\n const property = kebabToCamel(attribute.name.replace(kebabPrefix, ''));\n mapVariable[property] = `${attribute.value}`;\n }\n return mapVariable;\n}\n"],"mappings":"+HAyCgBA,EAAQC,GACtB,MAAO,CAACC,EAA+BC,KACrC,MAAMC,kBAACA,GAAqBF,EAC5B,IAAKE,EAAmB,CACtBC,QAAQC,MACN,iGAEF,M,CAGFJ,EAAUE,kBAAoB,WAC5B,MAAMG,EAASN,GAAMO,iBAAmBL,EACxC,MAAMM,EAAWC,KAAKP,GACtB,MAAMQ,EAAaC,EAAWF,MAAMC,WACpCE,EACEN,EACAE,EACAK,MAAMC,KAAKJ,GACXV,GAAMe,aAAe,OAEvBZ,EAAkBa,KAAKP,K,CACxB,CAEL,C,SAKgBQ,IACd,MAAO,CAAChB,EAA+BC,KACrC,MAAMC,kBAACA,GAAqBF,EAE5B,MAAMiB,EAAwBC,EAAajB,GAE3CD,EAAUE,kBAAoB,WAC5B,MAAMiB,EAAQX,KAAKP,GACnB,IAAKkB,GAASC,EAAQD,GAAQ,CAC5BjB,GAAmBa,KAAKP,MACxB,M,CAGF,IACE,MAAMa,EAAeC,KAAKC,MAAMJ,GAChC,GAAIC,EAAQC,GAAe,CACzBb,KAAKP,GAAgBoB,C,KAChB,CACLlB,QAAQC,MACN,YAAYa,uBACZP,EAAWF,M,EAGf,MAAOgB,GACPrB,QAAQC,MACN,iCAAiCa,aACjCO,E,CAIJtB,GAAmBa,KAAKP,K,CACzB,CAEL,CAEA,SAASiB,EAA4BC,GACnC,MAAMC,EAAwC,iBAC9C,SAAUC,GACRF,EAAeG,SAASF,IAA0C,GAEpE,MAAMG,EAAgC,SACtC,OAAOF,EAAwBG,KAAI,EAAEH,KACnCA,EAAwBI,QAAQF,EAA+B,OAEnE,C,SAEgBnB,EACdN,EACA4B,EACAxB,EACAK,GAEA,MAAMiB,EAAMG,EAAsB7B,EAAQI,GAC1C0B,OAAOC,OACLH,EACAnB,EAAcuB,EAA0BN,GAAOA,EAEnD,CAEA,SAASM,EAA0BN,GACjC,OAAOI,OAAOG,QAAQP,GAAKQ,QACzB,CAACC,GAAMC,EAAKtB,MAAM,IAEbqB,EACHC,CAACA,GAAMhB,EAA4BN,GAAOY,KAAKW,GAC7CA,EAASC,YAGb,GAEJ,CAEA,SAAST,EACP7B,EACAI,GAEA,MAAMwB,EAAsC,GAC5C,MAAMW,EAAc,GAAG1B,EAAab,MACpC,IAAK,IAAIwC,EAAI,EAAGA,EAAIpC,EAAWqC,OAAQD,IAAK,CAC1C,MAAME,EAAYtC,EAAWoC,GAC7B,GAAIE,EAAUC,KAAKC,QAAQL,KAAiB,EAAG,CAC7C,Q,CAGF,MAAMM,EAAWC,EAAaJ,EAAUC,KAAKhB,QAAQY,EAAa,KAClEX,EAAYiB,GAAY,GAAGH,EAAU5B,O,CAEvC,OAAOc,CACT,Q","ignoreList":[]}
|