@praxisui/dialog 10.0.0-rc.3 → 10.0.0-rc.31

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-10-07T02:07:06.204Z",
3
+ "generatedAt": "2026-10-16T17:45:27.774Z",
4
4
  "packageName": "@praxisui/dialog",
5
- "packageVersion": "10.0.0-rc.3",
5
+ "packageVersion": "10.0.0-rc.31",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -9,7 +9,7 @@ import * as i3 from '@angular/cdk/a11y';
9
9
  import { A11yModule } from '@angular/cdk/a11y';
10
10
  import * as i4 from '@angular/material/icon';
11
11
  import { MatIconModule } from '@angular/material/icon';
12
- import { PraxisIconDirective, PraxisLayerScaleStyleService, GlobalConfigService, GLOBAL_DIALOG_SERVICE, ComponentMetadataRegistry, markGlobalActionProviderOperational, GLOBAL_SURFACE_SERVICE, SurfaceOpenMaterializerService, LoggerService, SURFACE_DRAWER_BRIDGE, PraxisSurfaceHostComponent, SurfaceNavigationError } from '@praxisui/core';
12
+ import { PraxisIconDirective, PraxisLayerScaleStyleService, SURFACE_DRAWER_REF, SURFACE_DRAWER_CONTENT_DATA, GlobalConfigService, GLOBAL_DIALOG_SERVICE, ComponentMetadataRegistry, markGlobalActionProviderOperational, GLOBAL_SURFACE_SERVICE, SurfaceOpenMaterializerService, LoggerService, SURFACE_DRAWER_BRIDGE, PraxisSurfaceHostComponent, SurfaceNavigationError } from '@praxisui/core';
13
13
  import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
14
14
  import * as i1$1 from '@angular/forms';
15
15
  import { FormsModule } from '@angular/forms';
@@ -755,12 +755,17 @@ class PraxisDialog {
755
755
  open(content, config) {
756
756
  this.layerScale.ensureInstalled();
757
757
  const effectiveInjector = config?.injector ?? config?.viewContainerRef?.injector ?? this.injector;
758
+ const overlayRef = this.overlay.createOverlay(config ?? {});
759
+ const ref = new PraxisDialogRef(overlayRef);
758
760
  const injector = Injector.create({
759
- providers: [{ provide: PRAXIS_DIALOG_DATA, useValue: config?.data }],
761
+ providers: [
762
+ { provide: PRAXIS_DIALOG_DATA, useValue: config?.data },
763
+ { provide: PraxisDialogRef, useValue: ref },
764
+ { provide: SURFACE_DRAWER_REF, useValue: null },
765
+ { provide: SURFACE_DRAWER_CONTENT_DATA, useValue: null },
766
+ ],
760
767
  parent: effectiveInjector,
761
768
  });
762
- const overlayRef = this.overlay.createOverlay(config ?? {});
763
- const ref = new PraxisDialogRef(overlayRef);
764
769
  // Auto-id fallback if not provided
765
770
  let assignedId = config?.id ?? `praxis-dialog-${++this._seq}`;
766
771
  while (this.getDialogById(assignedId)) {
@@ -1368,13 +1373,20 @@ function toSurfaceSelectionResult(output, payload) {
1368
1373
  payload,
1369
1374
  };
1370
1375
  }
1371
- function resolveParentSurfaceRuntime(context) {
1376
+ function resolveParentSurfaceRuntime(context, runtimeInjector) {
1372
1377
  const runtime = context?.runtime?.state?.surfaceRuntime ||
1373
1378
  context?.payload?.surfaceContext?.surfaceRuntime ||
1374
1379
  context?.pageContext?.surfaceRuntime;
1375
- return runtime && typeof runtime === 'object'
1376
- ? runtime
1377
- : null;
1380
+ if (runtime && typeof runtime === 'object') {
1381
+ return runtime;
1382
+ }
1383
+ if (runtimeInjector && !runtimeInjector.get(PraxisDialogRef, null)) {
1384
+ const injectedRuntime = runtimeInjector.get(SURFACE_DRAWER_REF, null);
1385
+ if (injectedRuntime && typeof injectedRuntime === 'object') {
1386
+ return injectedRuntime;
1387
+ }
1388
+ }
1389
+ return null;
1378
1390
  }
1379
1391
  /**
1380
1392
  * The action origin is runtime-only: persisted surface payloads remain JSON
@@ -1485,7 +1497,7 @@ function providePraxisSurfaceGlobalActions() {
1485
1497
  }),
1486
1498
  },
1487
1499
  };
1488
- const parentRuntime = resolveParentSurfaceRuntime(context);
1500
+ const parentRuntime = resolveParentSurfaceRuntime(context, runtimeInjector);
1489
1501
  if (typeof parentRuntime?.['push'] === 'function') {
1490
1502
  const frameRef = await parentRuntime['push'](frame);
1491
1503
  if (!frameRef) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@praxisui/dialog",
3
- "version": "10.0.0-rc.3",
3
+ "version": "10.0.0-rc.31",
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": "^10.0.0-rc.3",
10
+ "@praxisui/core": "^10.0.0-rc.31",
11
11
  "@angular/material": "^21.0.0",
12
12
  "@angular/platform-browser": "^21.0.0",
13
13
  "rxjs": "~7.8.0"