@praxisui/dialog 8.0.0-beta.4 → 8.0.0-beta.5

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.
@@ -731,6 +731,9 @@ class PraxisDialog {
731
731
  });
732
732
  const keydownSub = overlayRef.keydownEvents().subscribe((ev) => {
733
733
  ref.notifyKeydown(ev);
734
+ if (ev.key === 'Escape' && !config?.disableClose) {
735
+ ref.close();
736
+ }
734
737
  });
735
738
  // Attach portal content now that the outlet exists
736
739
  const doAttach = () => {
@@ -1141,11 +1144,11 @@ function providePraxisSurfaceGlobalActions() {
1141
1144
  }),
1142
1145
  },
1143
1146
  });
1144
- return firstValueFrom(ref.closed$);
1147
+ return ref;
1145
1148
  }
1146
1149
  const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(payload));
1147
1150
  applySurfaceHostInputs(ref, hostInputs);
1148
- return firstValueFrom(ref.afterClosed());
1151
+ return ref;
1149
1152
  },
1150
1153
  };
1151
1154
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@praxisui/dialog",
3
- "version": "8.0.0-beta.4",
3
+ "version": "8.0.0-beta.5",
4
4
  "description": "Dialog helpers and components for Praxis UI with Angular Material integration.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.0.0",
7
7
  "@angular/core": "^20.0.0",
8
8
  "@angular/cdk": "^20.0.0",
9
9
  "@angular/forms": "^20.0.0",
10
- "@praxisui/core": "^8.0.0-beta.4"
10
+ "@praxisui/core": "^8.0.0-beta.5"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0"