@coveo/atomic-hosted-page 1.2.49 → 1.2.51
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/autoloader/index.js
CHANGED
|
@@ -15,9 +15,7 @@ if (typeof window !== 'undefined') {
|
|
|
15
15
|
.map((el) => el.tagName.toLowerCase())
|
|
16
16
|
.filter((tag) => tag.includes('-'));
|
|
17
17
|
// If the root element is an undefined Atomic component, add it to the list
|
|
18
|
-
if (rootIsCustomElement &&
|
|
19
|
-
!customElements.get(rootTagName) &&
|
|
20
|
-
!tags.includes(rootTagName)) {
|
|
18
|
+
if (rootIsCustomElement && !customElements.get(rootTagName) && !tags.includes(rootTagName)) {
|
|
21
19
|
tags.push(rootTagName);
|
|
22
20
|
}
|
|
23
21
|
if (rootIsCustomElement) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function processHostedPage(element, hostedPage) {
|
|
2
2
|
element.innerHTML = hostedPage.html;
|
|
3
3
|
hostedPage.javascript?.forEach((file) => insertJS(file));
|
|
4
|
-
hostedPage.css?.forEach((file) => 'url' in file ? insertCSSUrl(file) : insertCSSInline(file));
|
|
4
|
+
hostedPage.css?.forEach((file) => ('url' in file ? insertCSSUrl(file) : insertCSSInline(file)));
|
|
5
5
|
}
|
|
6
6
|
function insertJS(file) {
|
|
7
7
|
const script = document.createElement('script');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic-hosted-page",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.51",
|
|
4
4
|
"description": "Web Component used to inject a Coveo Hosted Search Page in the DOM.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,16 +13,15 @@
|
|
|
13
13
|
"docs/"
|
|
14
14
|
],
|
|
15
15
|
"type": "module",
|
|
16
|
-
"main": "dist/index.
|
|
16
|
+
"main": "dist/index.js",
|
|
17
17
|
"module": "dist/index.js",
|
|
18
|
-
"types": "dist/
|
|
19
|
-
"unpkg": "dist/atomic-
|
|
18
|
+
"types": "dist/index.d.ts",
|
|
19
|
+
"unpkg": "dist/atomic-hosted-page.esm.js",
|
|
20
20
|
"es2015": "dist/esm/index.mjs",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"import": "./dist/index.js"
|
|
25
|
-
"require": "./dist/index.cjs.js"
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
26
25
|
},
|
|
27
26
|
"./loader": {
|
|
28
27
|
"import": "./loader/index.js"
|
|
@@ -32,13 +31,13 @@
|
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"lit": "3.3.3",
|
|
34
33
|
"@coveo/bueno": "1.1.9",
|
|
35
|
-
"@coveo/headless": "3.53.
|
|
34
|
+
"@coveo/headless": "3.53.2"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
37
|
"@playwright/test": "1.60.0",
|
|
39
38
|
"@types/node": "24.12.4",
|
|
40
39
|
"local-web-server": "5.4.0",
|
|
41
|
-
"vite": "8.1.
|
|
40
|
+
"vite": "8.1.5"
|
|
42
41
|
},
|
|
43
42
|
"engines": {
|
|
44
43
|
"node": "^20.9.0 || ^22.11.0 || ^24.11.0"
|