@praxisui/dialog 9.0.3 → 9.0.4-rc.10

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/README.md CHANGED
@@ -13,7 +13,7 @@ It is not the source of business authorization or persistence. The host owns dom
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- npm i @praxisui/dialog@latest
16
+ npm i @praxisui/dialog@rc
17
17
  ```
18
18
 
19
19
  Peer dependencies:
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-07-28T00:59:00.108Z",
3
+ "generatedAt": "2026-08-03T00:29:05.091Z",
4
4
  "packageName": "@praxisui/dialog",
5
- "packageVersion": "9.0.3",
5
+ "packageVersion": "9.0.4-rc.10",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -1126,6 +1126,7 @@ function buildHostInputs(payload, context, options) {
1126
1126
  beforeWidget: payload.beforeWidget,
1127
1127
  widget: payload.widget,
1128
1128
  afterWidget: payload.afterWidget,
1129
+ lifecycle: payload.lifecycle,
1129
1130
  context: {
1130
1131
  ...(payload.context || {}),
1131
1132
  actionContext: context || null,
@@ -1139,11 +1140,12 @@ function buildHostInputs(payload, context, options) {
1139
1140
  },
1140
1141
  };
1141
1142
  }
1142
- function buildDialogSurfaceRuntime(ref, resultSubject) {
1143
+ function buildDialogSurfaceRuntime(ref, resultSubject, complete) {
1143
1144
  return {
1144
1145
  closed$: ref.afterClosed(),
1145
1146
  result$: resultSubject.asObservable(),
1146
1147
  emitResult: (result) => resultSubject.next(result),
1148
+ complete,
1147
1149
  close: (result) => { void ref.close(result); },
1148
1150
  updateSize: (preset) => {
1149
1151
  const width = resolveDialogWidth(preset);
@@ -1250,16 +1252,25 @@ function providePraxisSurfaceGlobalActions() {
1250
1252
  }
1251
1253
  const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(materializedPayload));
1252
1254
  const resultSubject = new Subject();
1255
+ let terminalOutcomeEmitted = false;
1256
+ const complete = (outcome) => {
1257
+ if (terminalOutcomeEmitted)
1258
+ return;
1259
+ terminalOutcomeEmitted = true;
1260
+ resultSubject.next(outcome);
1261
+ void ref.close(outcome);
1262
+ };
1253
1263
  ref.afterClosed().subscribe(() => resultSubject.complete());
1254
1264
  ref.result$ = resultSubject.asObservable();
1255
1265
  ref.emitResult = (result) => resultSubject.next(result);
1266
+ ref.complete = complete;
1256
1267
  let unbindSelectionResults = null;
1257
1268
  ref.afterClosed().subscribe(() => {
1258
1269
  unbindSelectionResults?.();
1259
1270
  unbindSelectionResults = null;
1260
1271
  });
1261
1272
  const hostInputs = buildHostInputs(materializedPayload, context, {
1262
- surfaceRuntime: buildDialogSurfaceRuntime(ref, resultSubject),
1273
+ surfaceRuntime: buildDialogSurfaceRuntime(ref, resultSubject, complete),
1263
1274
  });
1264
1275
  applySurfaceHostInputs(ref, hostInputs, (instance) => {
1265
1276
  if (!unbindSelectionResults) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@praxisui/dialog",
3
- "version": "9.0.3",
3
+ "version": "9.0.4-rc.10",
4
4
  "description": "Dialog helpers and components for Praxis UI with Angular Material integration.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/cdk": "^21.0.0",
9
9
  "@angular/forms": "^21.0.0",
10
- "@praxisui/core": "^9.0.3",
10
+ "@praxisui/core": "^9.0.4-rc.10",
11
11
  "@angular/material": "^21.0.0",
12
12
  "@angular/platform-browser": "^21.0.0",
13
13
  "rxjs": "~7.8.0"