@orangelogic/design-system 2.31.0 → 2.32.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.
@@ -45242,13 +45242,13 @@ let Fo = class extends Fn {
45242
45242
  this.resetLinkValues(), await this.updateComplete, this.showLinkPopup = !1;
45243
45243
  }
45244
45244
  handleEditorChange() {
45245
- this.editor?.view.dom.addEventListener("keydown", this.handleKeyDown);
45245
+ this.editor?.view.dom.addEventListener("keydown", this.handleKeyDown, !0);
45246
45246
  }
45247
45247
  connectedCallback() {
45248
45248
  super.connectedCallback(), document.addEventListener("click", this.handleOutsideClick);
45249
45249
  }
45250
45250
  disconnectedCallback() {
45251
- super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.editor?.view.dom.removeEventListener("keydown", this.handleKeyDown);
45251
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick), this.editor?.view.dom.removeEventListener("keydown", this.handleKeyDown, !0);
45252
45252
  }
45253
45253
  render() {
45254
45254
  return this.editor?.isEditable ? Z`<cx-space
@@ -151872,18 +151872,13 @@ let hl = class extends Fn {
151872
151872
  [r]: i
151873
151873
  }, this.handleAddCortexEvent(t, i);
151874
151874
  }
151875
- runFirstUpdated() {
151876
- this.addEventListener("cx-select", this.handleItemSelect);
151877
- }
151878
- disconnectedCallback() {
151879
- super.disconnectedCallback(), this.removeEventListener("cx-select", this.handleItemSelect);
151880
- }
151881
151875
  render() {
151882
151876
  return Z`<cx-view-and-sort
151883
151877
  .items=${this.menu}
151884
151878
  label=${this.label}
151885
151879
  trigger-button-variant=${this.triggerButtonVariant}
151886
151880
  trigger-button-size=${this.triggerButtonSize}
151881
+ @cx-select=${this.handleItemSelect}
151887
151882
  ></cx-view-and-sort>`;
151888
151883
  }
151889
151884
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.31.0",
4
+ "version": "2.32.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -41,8 +41,6 @@ export default class CxTemplateSwitcher extends CortexElement {
41
41
  handleSettingsChange(): void;
42
42
  handleAddCortexEvent(eventName: string, value: string, isSetting?: boolean): void;
43
43
  handleItemSelect(event: CustomEvent): void;
44
- runFirstUpdated(): void;
45
- disconnectedCallback(): void;
46
44
  render(): TemplateResult;
47
45
  }
48
46
  declare global {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.31.0",
4
+ "version": "2.32.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {