@carbon-labs/wc-global-header 0.38.0 → 0.40.0

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.
@@ -5514,13 +5514,13 @@ let Bo = class extends y {
5514
5514
  };
5515
5515
  }
5516
5516
  connectedCallback() {
5517
- super.connectedCallback(), this.addEventListener("cds-search-input", (o) => {
5517
+ super.connectedCallback(), this.addEventListener("cds-custom-search-input", (o) => {
5518
5518
  var t;
5519
5519
  return this._handleSearchInput((t = o == null ? void 0 : o.detail) == null ? void 0 : t.value);
5520
5520
  });
5521
5521
  }
5522
5522
  disconnectedCallback() {
5523
- this.removeEventListener("cds-search-input", () => {
5523
+ this.removeEventListener("cds-custom-search-input", () => {
5524
5524
  }), super.disconnectedCallback();
5525
5525
  }
5526
5526
  _handleKeydown(o) {
@@ -5528,7 +5528,7 @@ let Bo = class extends y {
5528
5528
  o.stopPropagation(), (o.key === "Enter" || o.code === "Enter") && ((t = this.props) != null && t.submitCallback) && this.props.submitCallback(this.searchValue);
5529
5529
  }
5530
5530
  _handleSearchInput(o) {
5531
- this.searchValue = o, this.props.callback(o);
5531
+ this.searchValue = o, this.props.callback && this.props.callback(o);
5532
5532
  }
5533
5533
  render() {
5534
5534
  var o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon-labs/wc-global-header",
3
- "version": "0.38.0",
3
+ "version": "0.40.0",
4
4
  "author": "Your Name <your@email.com>",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.23.2",
39
- "@carbon-labs/utilities": "0.20.0",
39
+ "@carbon-labs/utilities": "0.21.0",
40
40
  "@carbon/web-components": "2.33.0",
41
41
  "@lit-labs/motion": "^1.0.9"
42
42
  },
@@ -45,5 +45,5 @@
45
45
  "@web/test-runner": "^0.20.2",
46
46
  "vite": "^5.4.21"
47
47
  },
48
- "gitHead": "b423a1091eca662f795d1199a81785b3117b225b"
48
+ "gitHead": "1fd0dfad782db7e2e606b68b0352eccc043e8941"
49
49
  }