@coveo/atomic 3.59.3 → 3.59.4
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/custom-elements.json +978 -523
- package/dist/cjs/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.cjs +1 -0
- package/dist/cjs/components/insight/atomic-insight-search-box/atomic-insight-search-box.cjs +1 -0
- package/dist/cjs/components/search/atomic-search-box/atomic-search-box.cjs +1 -0
- package/dist/cjs/global/environment.cjs +1 -1
- package/dist/cjs/utils/hidden-state-controller.cjs +63 -0
- package/dist/cjs/versions.cjs +1 -1
- package/dist/esm/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +1 -0
- package/dist/esm/components/insight/atomic-insight-search-box/atomic-insight-search-box.js +1 -0
- package/dist/esm/components/search/atomic-search-box/atomic-search-box.js +1 -0
- package/dist/esm/global/environment.js +1 -1
- package/dist/esm/utils/hidden-state-controller.js +29 -0
- package/dist/esm/versions.js +1 -1
- package/dist/types/components/insight/atomic-insight-smart-snippet-feedback-modal/atomic-insight-smart-snippet-feedback-modal.d.ts +0 -2
- package/dist/types/components/insight/atomic-insight-user-actions-modal/atomic-insight-user-actions-modal.d.ts +0 -2
- package/package.json +4 -4
package/dist/cjs/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.cjs
CHANGED
|
@@ -226,6 +226,7 @@ class AtomicCommerceSearchBox extends external_lit_namespaceObject.LitElement {
|
|
|
226
226
|
if (!e.shiftKey) this.onSubmit();
|
|
227
227
|
break;
|
|
228
228
|
case 'Escape':
|
|
229
|
+
this.isExpanded = false;
|
|
229
230
|
this.suggestionManager.clearSuggestions();
|
|
230
231
|
break;
|
|
231
232
|
case 'ArrowDown':
|
|
@@ -123,6 +123,7 @@ class AtomicInsightSearchBox extends external_lit_namespaceObject.LitElement {
|
|
|
123
123
|
if (!e.shiftKey) this.onSubmit();
|
|
124
124
|
break;
|
|
125
125
|
case 'Escape':
|
|
126
|
+
this.isExpanded = false;
|
|
126
127
|
this.suggestionManager.clearSuggestions();
|
|
127
128
|
break;
|
|
128
129
|
case 'ArrowDown':
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
HiddenStateController: ()=>HiddenStateController
|
|
28
|
+
});
|
|
29
|
+
const shadowSheet = new CSSStyleSheet();
|
|
30
|
+
shadowSheet.replaceSync(':host(:state(empty)) { display: none }');
|
|
31
|
+
const lightSheet = new CSSStyleSheet();
|
|
32
|
+
lightSheet.replaceSync(':state(empty) { display: none }');
|
|
33
|
+
class HiddenStateController {
|
|
34
|
+
hostConnected() {
|
|
35
|
+
const root = this.host.shadowRoot;
|
|
36
|
+
if (root) {
|
|
37
|
+
if (!root.adoptedStyleSheets.includes(shadowSheet)) root.adoptedStyleSheets.push(shadowSheet);
|
|
38
|
+
} else {
|
|
39
|
+
const parentRoot = this.host.getRootNode();
|
|
40
|
+
if (!parentRoot.adoptedStyleSheets.includes(lightSheet)) parentRoot.adoptedStyleSheets.push(lightSheet);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
set isEmpty(value) {
|
|
44
|
+
if (value) this.internals.states.add('empty');
|
|
45
|
+
else this.internals.states.delete('empty');
|
|
46
|
+
}
|
|
47
|
+
get isEmpty() {
|
|
48
|
+
return this.internals.states.has('empty');
|
|
49
|
+
}
|
|
50
|
+
constructor(host){
|
|
51
|
+
this.host = host;
|
|
52
|
+
this.internals = host.attachInternals();
|
|
53
|
+
this.internals.states.add('empty');
|
|
54
|
+
host.addController(this);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.HiddenStateController = __webpack_exports__.HiddenStateController;
|
|
58
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
59
|
+
"HiddenStateController"
|
|
60
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
61
|
+
Object.defineProperty(exports, '__esModule', {
|
|
62
|
+
value: true
|
|
63
|
+
});
|
package/dist/cjs/versions.cjs
CHANGED
|
@@ -28,7 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
headlessVersion: ()=>package_json_namespaceObject.version
|
|
29
29
|
});
|
|
30
30
|
const package_json_namespaceObject = require("@coveo/headless/package.json");
|
|
31
|
-
const atomicVersion = "3.59.
|
|
31
|
+
const atomicVersion = "3.59.4";
|
|
32
32
|
exports.atomicVersion = __webpack_exports__.atomicVersion;
|
|
33
33
|
exports.headlessVersion = __webpack_exports__.headlessVersion;
|
|
34
34
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const shadowSheet = new CSSStyleSheet();
|
|
2
|
+
shadowSheet.replaceSync(':host(:state(empty)) { display: none }');
|
|
3
|
+
const lightSheet = new CSSStyleSheet();
|
|
4
|
+
lightSheet.replaceSync(':state(empty) { display: none }');
|
|
5
|
+
class HiddenStateController {
|
|
6
|
+
hostConnected() {
|
|
7
|
+
const root = this.host.shadowRoot;
|
|
8
|
+
if (root) {
|
|
9
|
+
if (!root.adoptedStyleSheets.includes(shadowSheet)) root.adoptedStyleSheets.push(shadowSheet);
|
|
10
|
+
} else {
|
|
11
|
+
const parentRoot = this.host.getRootNode();
|
|
12
|
+
if (!parentRoot.adoptedStyleSheets.includes(lightSheet)) parentRoot.adoptedStyleSheets.push(lightSheet);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
set isEmpty(value) {
|
|
16
|
+
if (value) this.internals.states.add('empty');
|
|
17
|
+
else this.internals.states.delete('empty');
|
|
18
|
+
}
|
|
19
|
+
get isEmpty() {
|
|
20
|
+
return this.internals.states.has('empty');
|
|
21
|
+
}
|
|
22
|
+
constructor(host){
|
|
23
|
+
this.host = host;
|
|
24
|
+
this.internals = host.attachInternals();
|
|
25
|
+
this.internals.states.add('empty');
|
|
26
|
+
host.addController(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export { HiddenStateController };
|
package/dist/esm/versions.js
CHANGED
|
@@ -7,8 +7,6 @@ import type { InitializableComponent } from '../../../decorators/types';
|
|
|
7
7
|
*
|
|
8
8
|
* When the modal is opened, the class `atomic-modal-opened` is added to the body, allowing further customization.
|
|
9
9
|
*
|
|
10
|
-
* @internal
|
|
11
|
-
*
|
|
12
10
|
* @part backdrop - The transparent backdrop hiding the content behind the modal.
|
|
13
11
|
* @part container - The modal's outermost container with the outline and background.
|
|
14
12
|
* @part header-wrapper - The wrapper around the header.
|
|
@@ -8,8 +8,6 @@ import type { InitializableComponent } from '../../../decorators/types';
|
|
|
8
8
|
*
|
|
9
9
|
* When the modal is opened, the CSS class `atomic-modal-opened` is added to the interface element and the body, allowing further customization.
|
|
10
10
|
*
|
|
11
|
-
* @internal
|
|
12
|
-
*
|
|
13
11
|
* @part title - The title element displaying "user-actions" text.
|
|
14
12
|
* @part close-button - The button used to close the modal.
|
|
15
13
|
* @part close-icon - The close icon within the close button.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/atomic",
|
|
3
|
-
"version": "3.59.
|
|
3
|
+
"version": "3.59.4",
|
|
4
4
|
"description": "A web-component library for building modern UIs interfacing with the Coveo platform",
|
|
5
5
|
"homepage": "https://docs.coveo.com/en/atomic/latest/",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"i18next-http-backend": "3.0.6",
|
|
70
70
|
"lit": "3.3.3",
|
|
71
71
|
"marked": "12.0.2",
|
|
72
|
-
"@coveo/atomic-legacy": "0.0.
|
|
72
|
+
"@coveo/atomic-legacy": "0.0.20",
|
|
73
73
|
"@coveo/bueno": "1.1.9",
|
|
74
|
-
"@coveo/headless": "3.51.
|
|
74
|
+
"@coveo/headless": "3.51.4"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@ag-ui/client": "0.0.53",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"typescript": ">=5.0.0",
|
|
120
120
|
"@coveo/bueno": "^1.1.9",
|
|
121
|
-
"@coveo/headless": "^3.51.
|
|
121
|
+
"@coveo/headless": "^3.51.4"
|
|
122
122
|
},
|
|
123
123
|
"peerDependenciesMeta": {
|
|
124
124
|
"typescript": {
|