@coveo/quantic 3.11.1 → 3.12.1
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/force-app/main/default/lwc/quanticBreadcrumbManager/__tests__/quanticBreadcrumbManager.test.js +326 -57
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/fixture.ts +76 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/pageObject.ts +282 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/e2e/quanticBreadcrumbManager.e2e.ts +167 -0
- package/force-app/main/default/lwc/quanticBreadcrumbManager/quanticBreadcrumbManager.html +10 -10
- package/force-app/main/default/lwc/quanticPager/e2e/fixture.ts +4 -4
- package/force-app/main/default/lwc/quanticTab/__tests__/quanticTab.test.js +287 -0
- package/force-app/main/default/lwc/quanticTab/e2e/fixture.ts +62 -0
- package/force-app/main/default/lwc/quanticTab/e2e/pageObject.ts +67 -0
- package/force-app/main/default/lwc/quanticTab/e2e/quanticTab.e2e.ts +77 -0
- package/force-app/main/default/lwc/quanticTab/quanticTab.html +1 -1
- package/force-app/main/default/lwc/quanticTabBar/__tests__/quanticTabBar.test.js +331 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/fixture.ts +61 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/pageObject.ts +80 -0
- package/force-app/main/default/lwc/quanticTabBar/e2e/quanticTabBar.e2e.ts +173 -0
- package/force-app/main/default/lwc/quanticTabBar/quanticTabBar.html +30 -8
- package/force-app/main/default/lwc/quanticTabBar/quanticTabBar.js +5 -4
- package/force-app/main/default/lwc/quanticUtils/__tests__/markdownUtils.test.js +1 -1
- package/force-app/main/default/staticresources/coveoheadless/case-assist/headless.js +8 -6
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/commerce/common/request.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/knowledge/stream-answer-api.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/search/search-api-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/case-assist/case-assist-params.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/api/service/insight/insight-params.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/common.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/commerce-ssr-engine/types/kind.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/ssr-engine/types/common.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/app/undoable.d.ts +0 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/commerce/core/sub-controller/headless-sub-controller.ssr.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/controllers/core/context/example-deleteme-headless-case-context.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/actions-history/ipx-actions-history-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/analytics/analytics-utils.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/commerce/parameters/parameters-serializer.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/generated-answer/generated-answer-analytics-actions.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/history/history-actions.d.ts +3 -3
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/pipeline/select-pipeline.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/query/query-selectors.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/question-answering/question-answering-document-id.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-actions.d.ts +42 -42
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/legacy/search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-actions.d.ts +42 -43
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-mappings.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search/search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/features/search-hub/search-hub-selectors.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/selectors/commerce-selectors.index.d.ts +2 -2
- package/force-app/main/default/staticresources/coveoheadless/definitions/test/mock-search-request.d.ts +44 -44
- package/force-app/main/default/staticresources/coveoheadless/definitions/tsdoc-metadata.json +1 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/compare-utils.d.ts +2 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/errors.d.ts +3 -0
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/utils.d.ts +0 -1
- package/force-app/main/default/staticresources/coveoheadless/definitions/utils/validate-payload.d.ts +1 -1
- package/force-app/main/default/staticresources/coveoheadless/headless.js +10 -8
- package/force-app/main/default/staticresources/coveoheadless/insight/headless.js +9 -7
- package/force-app/main/default/staticresources/coveoheadless/recommendation/headless.js +8 -6
- package/force-app/main/default/staticresources/marked/marked.min.js +3 -3
- package/package.json +6 -10
- /package/force-app/main/default/lwc/quanticPager/e2e/{pagerObject.ts → pageObject.ts} +0 -0
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class={tabBarContainerClasses}>
|
|
3
|
-
<div
|
|
3
|
+
<div
|
|
4
|
+
class="tab-bar_list-container slds-tabs_default slds-tabs_default__nav slds-is-relative"
|
|
5
|
+
>
|
|
4
6
|
<slot></slot>
|
|
5
7
|
<div
|
|
6
|
-
class="tab-bar_more-
|
|
8
|
+
class="tab-bar_more-section slds-tabs_default__item slds-tabs_default__overflow-button slds-is-absolute slds-p-right_none slds-p-left_none"
|
|
7
9
|
title={labels.moreTabs}
|
|
8
10
|
role="presentation"
|
|
11
|
+
data-testid="tab-bar_more-section"
|
|
9
12
|
>
|
|
10
|
-
<div class={dropdownClasses}>
|
|
11
|
-
<button
|
|
13
|
+
<div class={dropdownClasses} data-testid="tab-bar_dropdown-container">
|
|
14
|
+
<button
|
|
15
|
+
data-testid="tab-bar_more-button"
|
|
16
|
+
class="slds-button slds-var-p-horizontal_small"
|
|
17
|
+
aria-haspopup="true"
|
|
18
|
+
onclick={toggleDropdown}
|
|
19
|
+
name={labels.more}
|
|
20
|
+
>
|
|
12
21
|
{moreButtonLabel}
|
|
13
|
-
<lightning-icon
|
|
22
|
+
<lightning-icon
|
|
23
|
+
class={moreButtonIconClasses}
|
|
24
|
+
icon-name={arrowIconName}
|
|
25
|
+
size="xx-small"
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
>
|
|
28
|
+
</lightning-icon>
|
|
14
29
|
</button>
|
|
15
30
|
<div class="tab-bar_dropdown slds-dropdown slds-dropdown_right">
|
|
16
31
|
<ul class="slds-dropdown__list" role="menu">
|
|
17
32
|
<template for:each={tabsInDropdown} for:item="tab">
|
|
18
|
-
<li
|
|
33
|
+
<li
|
|
34
|
+
data-testid="tab-bar_dropdown-item"
|
|
35
|
+
class="slds-dropdown__item"
|
|
36
|
+
role="presentation"
|
|
37
|
+
key={tab.id}
|
|
38
|
+
>
|
|
19
39
|
<button
|
|
20
40
|
class="slds-size_1-of-1 slds-button slds-tabs_default__item"
|
|
21
41
|
role="menuitem"
|
|
@@ -25,8 +45,10 @@
|
|
|
25
45
|
data-label={tab.label}
|
|
26
46
|
onblur={onBlur}
|
|
27
47
|
>
|
|
28
|
-
<span class="slds-tabs_default__link" title={tab.label}
|
|
29
|
-
|
|
48
|
+
<span class="slds-tabs_default__link" title={tab.label}
|
|
49
|
+
>{tab.label}</span
|
|
50
|
+
>
|
|
51
|
+
</button>
|
|
30
52
|
</li>
|
|
31
53
|
</template>
|
|
32
54
|
</ul>
|
|
@@ -258,7 +258,7 @@ export default class QuanticTabBar extends LightningElement {
|
|
|
258
258
|
* @returns {HTMLElement}
|
|
259
259
|
*/
|
|
260
260
|
get moreButton() {
|
|
261
|
-
return this.template.querySelector('.tab-bar_more-
|
|
261
|
+
return this.template.querySelector('.tab-bar_more-section');
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
/**
|
|
@@ -357,9 +357,10 @@ export default class QuanticTabBar extends LightningElement {
|
|
|
357
357
|
* @returns {Array<Element>}
|
|
358
358
|
*/
|
|
359
359
|
getTabsFromSlot() {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
/** @type {HTMLSlotElement} */
|
|
361
|
+
const slot = this.template.querySelector('slot');
|
|
362
|
+
|
|
363
|
+
return slot.assignedElements().filter((element) => this.isTab(element));
|
|
363
364
|
}
|
|
364
365
|
|
|
365
366
|
isTab = (element) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This is the same js file as what we load inside the LWC via a static resource.
|
|
2
2
|
import {transformMarkdownToHtml} from 'c/quanticUtils';
|
|
3
|
-
import {marked} from '
|
|
3
|
+
import {marked} from '../../../../../../../../node_modules/marked/lib/marked.cjs';
|
|
4
4
|
|
|
5
5
|
const removeLineBreaks = (text) => text.replace(/\n/g, '');
|
|
6
6
|
|