![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@coveo/atomic-hosted-page
Advanced tools
Web Component used to inject a Coveo Hosted Search Page in the DOM.
The Atomic Hosted Page package provides a Web Component, <atomic-hosted-ui>
, that integrates a Coveo Hosted Search Page into your web application. This component leverages the Search Interfaces API.
To use the <atomic-hosted-ui>
component in your project, install it via npm:
npm install @coveo/atomic-hosted-page
Alternatively, you can use the component directly from the CDN:
<script
type="module"
src="https://static.cloud.coveo.com/atomic-hosted-page/v1/atomic-hosted-page/atomic-hosted-page.esm.js"
></script>
Import the component into your application:
import '@coveo/atomic-hosted-page/dist/components/atomic-hosted-ui/atomic-hosted-ui.js';
Add the component to your HTML and initialize it with the required options:
<atomic-hosted-ui hosted-type="code"></atomic-hosted-ui>
const hostedUI = document.querySelector('atomic-hosted-ui');
hostedUI.initialize({
pageId: 'your-hosted-page-id',
organizationId: 'your-organization-id',
accessToken: 'your-access-token',
});
Add the component script from the CDN to your HTML:
<script
type="module"
src="https://static.cloud.coveo.com/atomic-hosted-page/v1/atomic-hosted-page/atomic-hosted-page.esm.js"
></script>
Include the component in your HTML and initialize it:
<atomic-hosted-ui hosted-type="builder"></atomic-hosted-ui>
<script>
const hostedUI = document.querySelector('atomic-hosted-ui');
hostedUI.initialize({
pageId: 'example-page-id',
organizationId: 'my-organization-id',
accessToken: 'your-api-key',
});
</script>
hosted-type
'trial' | 'builder' | 'code'
'code'
trial
: Loads a trial page.builder
: Loads a builder page.code
: Loads a custom code page.The initialize()
method requires the following options:
Option | Type | Required | Description |
---|---|---|---|
pageId | string | Yes | The unique identifier of the hosted search page. |
organizationId | string | Yes | The Coveo organization ID. |
accessToken | string | Yes | The API key or token used for authorization. |
platformUrl | string | No | The URL of the Coveo platform. Defaults to https://platform.cloud.coveo.com . |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Atomic Hosted Page Example</title>
<script
type="module"
src="https://static.cloud.coveo.com/atomic-hosted-page/v1/atomic-hosted-page/atomic-hosted-page.esm.js"
></script>
</head>
<body>
<atomic-hosted-ui hosted-type="builder"></atomic-hosted-ui>
<script>
const hostedUI = document.querySelector('atomic-hosted-ui');
hostedUI.initialize({
pageId: 'example-page-id',
organizationId: 'my-organization-id',
accessToken: 'your-api-key',
});
</script>
</body>
</html>
This project is licensed under the Apache 2.0 License.
FAQs
Web Component used to inject a Coveo Hosted Search Page in the DOM.
The npm package @coveo/atomic-hosted-page receives a total of 4 weekly downloads. As such, @coveo/atomic-hosted-page popularity was classified as not popular.
We found that @coveo/atomic-hosted-page demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.