Skip to content

Commit f219d75

Browse files
Copilotjmazzah-coveodeveloper-experience-bot[bot]
authored
Migrate atomic-breadbox from Stencil to Lit (#6492)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jmazzah-coveo <[email protected]> Co-authored-by: Jad Mazzah <[email protected]> Co-authored-by: developer-experience-bot[bot] <91079284+developer-experience-bot[bot]@users.noreply.github.com>
1 parent 58d12a2 commit f219d75

File tree

19 files changed

+1484
-831
lines changed

19 files changed

+1484
-831
lines changed

packages/atomic-react/src/components/search/components.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
AtomicAriaLive as LitAtomicAriaLive,
33
AtomicAutomaticFacet as LitAtomicAutomaticFacet,
4+
AtomicBreadbox as LitAtomicBreadbox,
45
AtomicComponentError as LitAtomicComponentError,
56
AtomicExternal as LitAtomicExternal,
67
AtomicFacet as LitAtomicFacet,
@@ -57,6 +58,12 @@ export const AtomicAutomaticFacet = createComponent({
5758
elementClass: LitAtomicAutomaticFacet,
5859
});
5960

61+
export const AtomicBreadbox = createComponent({
62+
tagName: 'atomic-breadbox',
63+
react: React,
64+
elementClass: LitAtomicBreadbox,
65+
});
66+
6067
export const AtomicComponentError = createComponent({
6168
tagName: 'atomic-component-error',
6269
react: React,

packages/atomic/cypress/e2e/breadbox.cypress.ts

Lines changed: 0 additions & 287 deletions
This file was deleted.

packages/atomic/src/components.d.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,6 @@ export namespace Components {
5555
"numberOfValues": number;
5656
"updateCollapseFacetsDependingOnFacetsVisibility": (collapseAfter: number, numberOfVisibleFacets: number) => Promise<void>;
5757
}
58-
/**
59-
* The `atomic-breadbox` component helps the user keep track of the navigational state of the currently active facet values, located in a single place on the search page.
60-
* In most cases, these are on the top of a page between the search bar and the results.
61-
* By default, the field name is displayed before the field value to clarify which facet the value is from.
62-
* You can clear a single selection by clicking the `x` inside of each pill, or clear all selections by using the `Clear` button.
63-
*/
64-
interface AtomicBreadbox {
65-
/**
66-
* This prop allows you to control the display depth of the path by specifying the number of parent or ancestor breadcrumbs links relative to the currently selected value. If the path size is equal to or less than the pathLimit, all values in the path will be displayed without truncation. If the path size exceeds the pathLimit, it will truncate the path by replacing the middle values with ellipses ('...'). Minimum: `1`
67-
* @defaultValue `3`
68-
*/
69-
"pathLimit": number;
70-
}
7158
/**
7259
* A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (for example, number of occurrences).
7360
* An `atomic-category-facet` displays a facet of values in a browsable, hierarchical fashion.
@@ -2123,18 +2110,6 @@ declare global {
21232110
prototype: HTMLAtomicAutomaticFacetGeneratorElement;
21242111
new (): HTMLAtomicAutomaticFacetGeneratorElement;
21252112
};
2126-
/**
2127-
* The `atomic-breadbox` component helps the user keep track of the navigational state of the currently active facet values, located in a single place on the search page.
2128-
* In most cases, these are on the top of a page between the search bar and the results.
2129-
* By default, the field name is displayed before the field value to clarify which facet the value is from.
2130-
* You can clear a single selection by clicking the `x` inside of each pill, or clear all selections by using the `Clear` button.
2131-
*/
2132-
interface HTMLAtomicBreadboxElement extends Components.AtomicBreadbox, HTMLStencilElement {
2133-
}
2134-
var HTMLAtomicBreadboxElement: {
2135-
prototype: HTMLAtomicBreadboxElement;
2136-
new (): HTMLAtomicBreadboxElement;
2137-
};
21382113
/**
21392114
* A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (for example, number of occurrences).
21402115
* An `atomic-category-facet` displays a facet of values in a browsable, hierarchical fashion.
@@ -3194,7 +3169,6 @@ declare global {
31943169
};
31953170
interface HTMLElementTagNameMap {
31963171
"atomic-automatic-facet-generator": HTMLAtomicAutomaticFacetGeneratorElement;
3197-
"atomic-breadbox": HTMLAtomicBreadboxElement;
31983172
"atomic-category-facet": HTMLAtomicCategoryFacetElement;
31993173
"atomic-citation": HTMLAtomicCitationElement;
32003174
"atomic-color-facet": HTMLAtomicColorFacetElement;
@@ -3322,19 +3296,6 @@ declare namespace LocalJSX {
33223296
*/
33233297
"numberOfValues"?: number;
33243298
}
3325-
/**
3326-
* The `atomic-breadbox` component helps the user keep track of the navigational state of the currently active facet values, located in a single place on the search page.
3327-
* In most cases, these are on the top of a page between the search bar and the results.
3328-
* By default, the field name is displayed before the field value to clarify which facet the value is from.
3329-
* You can clear a single selection by clicking the `x` inside of each pill, or clear all selections by using the `Clear` button.
3330-
*/
3331-
interface AtomicBreadbox {
3332-
/**
3333-
* This prop allows you to control the display depth of the path by specifying the number of parent or ancestor breadcrumbs links relative to the currently selected value. If the path size is equal to or less than the pathLimit, all values in the path will be displayed without truncation. If the path size exceeds the pathLimit, it will truncate the path by replacing the middle values with ellipses ('...'). Minimum: `1`
3334-
* @defaultValue `3`
3335-
*/
3336-
"pathLimit"?: number;
3337-
}
33383299
/**
33393300
* A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (for example, number of occurrences).
33403301
* An `atomic-category-facet` displays a facet of values in a browsable, hierarchical fashion.
@@ -5279,7 +5240,6 @@ declare namespace LocalJSX {
52795240
}
52805241
interface IntrinsicElements {
52815242
"atomic-automatic-facet-generator": AtomicAutomaticFacetGenerator;
5282-
"atomic-breadbox": AtomicBreadbox;
52835243
"atomic-category-facet": AtomicCategoryFacet;
52845244
"atomic-citation": AtomicCitation;
52855245
"atomic-color-facet": AtomicColorFacet;
@@ -5399,13 +5359,6 @@ declare module "@stencil/core" {
53995359
* To learn more about the automatic facet generator feature, see: [About the Facet Generator](https://docs.coveo.com/en/n9sd0159/).
54005360
*/
54015361
"atomic-automatic-facet-generator": LocalJSX.AtomicAutomaticFacetGenerator & JSXBase.HTMLAttributes<HTMLAtomicAutomaticFacetGeneratorElement>;
5402-
/**
5403-
* The `atomic-breadbox` component helps the user keep track of the navigational state of the currently active facet values, located in a single place on the search page.
5404-
* In most cases, these are on the top of a page between the search bar and the results.
5405-
* By default, the field name is displayed before the field value to clarify which facet the value is from.
5406-
* You can clear a single selection by clicking the `x` inside of each pill, or clear all selections by using the `Clear` button.
5407-
*/
5408-
"atomic-breadbox": LocalJSX.AtomicBreadbox & JSXBase.HTMLAttributes<HTMLAtomicBreadboxElement>;
54095362
/**
54105363
* A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (for example, number of occurrences).
54115364
* An `atomic-category-facet` displays a facet of values in a browsable, hierarchical fashion.

0 commit comments

Comments
 (0)