@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.
@@ -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':
@@ -229,6 +229,7 @@ class AtomicSearchBox extends external_lit_namespaceObject.LitElement {
229
229
  if (!e.shiftKey) this.onSubmit();
230
230
  break;
231
231
  case 'Escape':
232
+ this.isExpanded = false;
232
233
  this.suggestionManager.clearSuggestions();
233
234
  break;
234
235
  case 'ArrowDown':
@@ -33,7 +33,7 @@ function getWindow() {
33
33
  }
34
34
  function getAtomicEnvironment(headlessVersion) {
35
35
  return {
36
- version: "3.59.3",
36
+ version: "3.59.4",
37
37
  headlessVersion
38
38
  };
39
39
  }
@@ -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
+ });
@@ -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.3";
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 === [
@@ -198,6 +198,7 @@ class AtomicCommerceSearchBox extends LitElement {
198
198
  if (!e.shiftKey) this.onSubmit();
199
199
  break;
200
200
  case 'Escape':
201
+ this.isExpanded = false;
201
202
  this.suggestionManager.clearSuggestions();
202
203
  break;
203
204
  case 'ArrowDown':
@@ -84,6 +84,7 @@ class AtomicInsightSearchBox extends LitElement {
84
84
  if (!e.shiftKey) this.onSubmit();
85
85
  break;
86
86
  case 'Escape':
87
+ this.isExpanded = false;
87
88
  this.suggestionManager.clearSuggestions();
88
89
  break;
89
90
  case 'ArrowDown':
@@ -201,6 +201,7 @@ class AtomicSearchBox extends LitElement {
201
201
  if (!e.shiftKey) this.onSubmit();
202
202
  break;
203
203
  case 'Escape':
204
+ this.isExpanded = false;
204
205
  this.suggestionManager.clearSuggestions();
205
206
  break;
206
207
  case 'ArrowDown':
@@ -3,7 +3,7 @@ function getWindow() {
3
3
  }
4
4
  function getAtomicEnvironment(headlessVersion) {
5
5
  return {
6
- version: "3.59.3",
6
+ version: "3.59.4",
7
7
  headlessVersion
8
8
  };
9
9
  }
@@ -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 };
@@ -1,3 +1,3 @@
1
- const atomicVersion = "3.59.3";
1
+ const atomicVersion = "3.59.4";
2
2
  export { version as headlessVersion } from "@coveo/headless/package.json";
3
3
  export { atomicVersion };
@@ -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",
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.19",
72
+ "@coveo/atomic-legacy": "0.0.20",
73
73
  "@coveo/bueno": "1.1.9",
74
- "@coveo/headless": "3.51.3"
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.3"
121
+ "@coveo/headless": "^3.51.4"
122
122
  },
123
123
  "peerDependenciesMeta": {
124
124
  "typescript": {