@coveo/atomic-react 3.11.22 → 3.11.23
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/cjs/atomic-react.cjs +14 -7
- package/dist/cjs/atomic-react.cjs.map +1 -1
- package/dist/cjs/commerce/atomic-react.cjs +14 -7
- package/dist/cjs/commerce/atomic-react.cjs.map +1 -1
- package/dist/cjs/recommendation/atomic-react.cjs +14 -7
- package/dist/cjs/recommendation/atomic-react.cjs.map +1 -1
- package/package.json +2 -2
|
@@ -3239,7 +3239,8 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3239
3239
|
else this.searchOrListing = commerce.buildSearch(this.bindings.engine);
|
|
3240
3240
|
this.context = commerce.buildContext(this.bindings.engine);
|
|
3241
3241
|
this.breadcrumbManager = this.searchOrListing.breadcrumbManager();
|
|
3242
|
-
if (
|
|
3242
|
+
if (this.disableCollapse) this.isCollapsed = false;
|
|
3243
|
+
else if (window.ResizeObserver && this.parentElement) {
|
|
3243
3244
|
this.resizeObserver = new ResizeObserver(()=>this.adaptBreadcrumbs());
|
|
3244
3245
|
this.resizeObserver.observe(this.parentElement);
|
|
3245
3246
|
}
|
|
@@ -3272,7 +3273,7 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3272
3273
|
this.breadcrumbs.forEach((breadcrumb)=>this.show(breadcrumb));
|
|
3273
3274
|
}
|
|
3274
3275
|
adaptBreadcrumbs() {
|
|
3275
|
-
if (!this.breadcrumbs.length) return;
|
|
3276
|
+
if (this.disableCollapse || !this.breadcrumbs.length) return;
|
|
3276
3277
|
this.showAllBreadcrumbs();
|
|
3277
3278
|
if (!this.isCollapsed) return void this.updateShowLessDisplay();
|
|
3278
3279
|
this.hideOverflowingBreadcrumbs();
|
|
@@ -3352,7 +3353,7 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3352
3353
|
i18n: this.bindings.i18n
|
|
3353
3354
|
}
|
|
3354
3355
|
})(lit.html`${this.renderBreadcrumbs(breadcrumbs)}
|
|
3355
|
-
${renderBreadcrumbShowMore({
|
|
3356
|
+
${this.disableCollapse ? lit.nothing : lit.html`${renderBreadcrumbShowMore({
|
|
3356
3357
|
props: {
|
|
3357
3358
|
refCallback: async (el)=>{
|
|
3358
3359
|
await this.breadcrumbShowLessFocus.setTarget(el);
|
|
@@ -3371,7 +3372,7 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3371
3372
|
})
|
|
3372
3373
|
}
|
|
3373
3374
|
})}
|
|
3374
|
-
|
|
3375
|
+
${renderBreadcrumbShowLess({
|
|
3375
3376
|
props: {
|
|
3376
3377
|
onShowLess: ()=>{
|
|
3377
3378
|
this.breadcrumbShowLessFocus.focusOnNextTarget();
|
|
@@ -3380,7 +3381,7 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3380
3381
|
isCollapsed: this.isCollapsed,
|
|
3381
3382
|
i18n: this.bindings.i18n
|
|
3382
3383
|
}
|
|
3383
|
-
})}
|
|
3384
|
+
})}`}
|
|
3384
3385
|
${renderBreadcrumbClearAll({
|
|
3385
3386
|
props: {
|
|
3386
3387
|
refCallback: async (ref)=>{
|
|
@@ -3397,7 +3398,7 @@ let AtomicCommerceBreadbox$1 = class AtomicCommerceBreadbox extends lit.LitEleme
|
|
|
3397
3398
|
})} `)}`;
|
|
3398
3399
|
}
|
|
3399
3400
|
constructor(){
|
|
3400
|
-
super(), this.lastRemovedBreadcrumbIndex = 0, this.numberOfBreadcrumbs = 0, this.numberOfCollapsedBreadcrumbs = 0, this.isCollapsed = true, this.showMoreText = '', this.breadboxAriaMessage = new AriaLiveRegionController(this, 'breadbox', true), this.pathLimit = 3, this.valueForFacetType = (type, field, value)=>{
|
|
3401
|
+
super(), this.lastRemovedBreadcrumbIndex = 0, this.numberOfBreadcrumbs = 0, this.numberOfCollapsedBreadcrumbs = 0, this.isCollapsed = true, this.showMoreText = '', this.disableCollapse = false, this.breadboxAriaMessage = new AriaLiveRegionController(this, 'breadbox', true), this.pathLimit = 3, this.valueForFacetType = (type, field, value)=>{
|
|
3401
3402
|
switch(type){
|
|
3402
3403
|
case 'numericalRange':
|
|
3403
3404
|
return [
|
|
@@ -3463,6 +3464,12 @@ _ts_decorate$12([
|
|
|
3463
3464
|
_ts_decorate$12([
|
|
3464
3465
|
decorators_js.state()
|
|
3465
3466
|
], AtomicCommerceBreadbox$1.prototype, "showMoreText", void 0);
|
|
3467
|
+
_ts_decorate$12([
|
|
3468
|
+
decorators_js.property({
|
|
3469
|
+
type: Boolean,
|
|
3470
|
+
attribute: 'disable-collapse'
|
|
3471
|
+
})
|
|
3472
|
+
], AtomicCommerceBreadbox$1.prototype, "disableCollapse", void 0);
|
|
3466
3473
|
_ts_decorate$12([
|
|
3467
3474
|
decorators_js.property({
|
|
3468
3475
|
type: Number,
|
|
@@ -8669,7 +8676,7 @@ function getWindow() {
|
|
|
8669
8676
|
}
|
|
8670
8677
|
function getAtomicEnvironment(headlessVersion) {
|
|
8671
8678
|
return {
|
|
8672
|
-
version: "3.
|
|
8679
|
+
version: "3.59.0",
|
|
8673
8680
|
headlessVersion
|
|
8674
8681
|
};
|
|
8675
8682
|
}
|