Skip to content

Commit

Permalink
chore(headless, atomic, quantic)!: remove deprecated functions/proper…
Browse files Browse the repository at this point in the history
…ties (#4350)

This PR removes deprecated functions and properties. It also removes
some atomic-react properties and big changes in atomic-hosted-page.

It includes changes to `atomic-category-facet` and the equivalent in
quantic as the `parents` and `values` properties have been replaced with
`valuesAsTrees` and `selectedValueAncestry`

https://coveord.atlassian.net/browse/KIT-2379

---------

Co-authored-by: Alex Prudhomme <[email protected]>
Co-authored-by: Frederic Beaudoin <[email protected]>
  • Loading branch information
3 people authored Sep 17, 2024
1 parent 799751a commit 8de5406
Show file tree
Hide file tree
Showing 23 changed files with 78 additions and 532 deletions.
80 changes: 0 additions & 80 deletions packages/atomic-hosted-page/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
import { PlatformEnvironment } from "@coveo/headless";
export { PlatformEnvironment } from "@coveo/headless";
export namespace Components {
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Hosted Pages API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/Hosted%20Page)
* @deprecated Use `<atomic-hosted-ui type="code"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface AtomicHostedPage {
/**
* Returns the unique, organization-specific endpoint(s)
* @param organizationId
* @param env
*/
"getOrganizationEndpoints": (organizationId: string, env?: PlatformEnvironment) => Promise<{ platform: string; analytics: string; search: string; admin: string; }>;
"initialize": (options: AtomicHostedPageInitializationOptions) => Promise<void>;
}
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
Expand All @@ -39,33 +25,8 @@ export namespace Components {
"hostedType": 'trial' | 'builder' | 'code';
"initialize": (options: AtomicHostedUIInitializationOptions) => Promise<void>;
}
/**
* A Web Component used to inject a [Coveo Search Interface made with the simple builder](https://docs.coveo.com/en/m7e92019/adobe/build-the-search-solution-using-a-coveo-ui-library-directly#search-interface-builder) in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
* @deprecated Use `<atomic-hosted-ui type="trial"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface AtomicSimpleBuilder {
/**
* Returns the unique, organization-specific endpoint(s)
* @param organizationId
* @param env
*/
"getOrganizationEndpoints": (organizationId: string, env?: PlatformEnvironment) => Promise<{ platform: string; analytics: string; search: string; admin: string; }>;
"initialize": (options: AtomicSimpleBuilderInitializationOptions) => Promise<void>;
}
}
declare global {
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Hosted Pages API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/Hosted%20Page)
* @deprecated Use `<atomic-hosted-ui type="code"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface HTMLAtomicHostedPageElement extends Components.AtomicHostedPage, HTMLStencilElement {
}
var HTMLAtomicHostedPageElement: {
prototype: HTMLAtomicHostedPageElement;
new (): HTMLAtomicHostedPageElement;
};
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
Expand All @@ -76,31 +37,11 @@ declare global {
prototype: HTMLAtomicHostedUiElement;
new (): HTMLAtomicHostedUiElement;
};
/**
* A Web Component used to inject a [Coveo Search Interface made with the simple builder](https://docs.coveo.com/en/m7e92019/adobe/build-the-search-solution-using-a-coveo-ui-library-directly#search-interface-builder) in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
* @deprecated Use `<atomic-hosted-ui type="trial"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface HTMLAtomicSimpleBuilderElement extends Components.AtomicSimpleBuilder, HTMLStencilElement {
}
var HTMLAtomicSimpleBuilderElement: {
prototype: HTMLAtomicSimpleBuilderElement;
new (): HTMLAtomicSimpleBuilderElement;
};
interface HTMLElementTagNameMap {
"atomic-hosted-page": HTMLAtomicHostedPageElement;
"atomic-hosted-ui": HTMLAtomicHostedUiElement;
"atomic-simple-builder": HTMLAtomicSimpleBuilderElement;
}
}
declare namespace LocalJSX {
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Hosted Pages API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/Hosted%20Page)
* @deprecated Use `<atomic-hosted-ui type="code"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface AtomicHostedPage {
}
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
Expand All @@ -111,40 +52,19 @@ declare namespace LocalJSX {
*/
"hostedType"?: 'trial' | 'builder' | 'code';
}
/**
* A Web Component used to inject a [Coveo Search Interface made with the simple builder](https://docs.coveo.com/en/m7e92019/adobe/build-the-search-solution-using-a-coveo-ui-library-directly#search-interface-builder) in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
* @deprecated Use `<atomic-hosted-ui type="trial"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
interface AtomicSimpleBuilder {
}
interface IntrinsicElements {
"atomic-hosted-page": AtomicHostedPage;
"atomic-hosted-ui": AtomicHostedUi;
"atomic-simple-builder": AtomicSimpleBuilder;
}
}
export { LocalJSX as JSX };
declare module "@stencil/core" {
export namespace JSX {
interface IntrinsicElements {
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Hosted Pages API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/Hosted%20Page)
* @deprecated Use `<atomic-hosted-ui type="code"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
"atomic-hosted-page": LocalJSX.AtomicHostedPage & JSXBase.HTMLAttributes<HTMLAtomicHostedPageElement>;
/**
* A Web Component used to inject a Coveo Hosted Search Page in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
*/
"atomic-hosted-ui": LocalJSX.AtomicHostedUi & JSXBase.HTMLAttributes<HTMLAtomicHostedUiElement>;
/**
* A Web Component used to inject a [Coveo Search Interface made with the simple builder](https://docs.coveo.com/en/m7e92019/adobe/build-the-search-solution-using-a-coveo-ui-library-directly#search-interface-builder) in the DOM.
* Pulls from the [Search Interfaces API](https://platform.cloud.coveo.com/docs?urls.primaryName=Search%20Interface%20Service#/)
* @deprecated Use `<atomic-hosted-ui type="trial"></atomic-hosted-ui>` instead {@link AtomicHostedUI }.
*/
"atomic-simple-builder": LocalJSX.AtomicSimpleBuilder & JSXBase.HTMLAttributes<HTMLAtomicSimpleBuilderElement>;
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8de5406

Please sign in to comment.