@praxisui/dialog 9.0.8 → 9.0.9
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-08-
|
|
3
|
+
"generatedAt": "2026-08-21T12:18:09.223Z",
|
|
4
4
|
"packageName": "@praxisui/dialog",
|
|
5
|
-
"packageVersion": "9.0.
|
|
5
|
+
"packageVersion": "9.0.9",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -1261,6 +1261,12 @@ function buildDialogConfig(payload, injector) {
|
|
|
1261
1261
|
injector,
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
+
function resolveRuntimeInjector(context, fallback) {
|
|
1265
|
+
const candidate = context?.runtime?.injector;
|
|
1266
|
+
return candidate && typeof candidate.get === 'function'
|
|
1267
|
+
? candidate
|
|
1268
|
+
: fallback;
|
|
1269
|
+
}
|
|
1264
1270
|
function buildHostInputs(payload, context, options) {
|
|
1265
1271
|
return {
|
|
1266
1272
|
subtitle: options?.includeSubtitle === false ? undefined : payload.subtitle,
|
|
@@ -1433,12 +1439,15 @@ function providePraxisSurfaceGlobalActions() {
|
|
|
1433
1439
|
const injector = inject(Injector);
|
|
1434
1440
|
const materializer = inject(SurfaceOpenMaterializerService);
|
|
1435
1441
|
const logger = inject(LoggerService, { optional: true });
|
|
1436
|
-
const
|
|
1442
|
+
const defaultSurfaceDrawer = inject(SURFACE_DRAWER_BRIDGE, {
|
|
1437
1443
|
optional: true,
|
|
1438
1444
|
});
|
|
1439
1445
|
return {
|
|
1440
1446
|
open: async (payload, context) => {
|
|
1441
|
-
const
|
|
1447
|
+
const runtimeInjector = resolveRuntimeInjector(context, injector);
|
|
1448
|
+
const contextualMaterializer = runtimeInjector.get(SurfaceOpenMaterializerService, materializer);
|
|
1449
|
+
const surfaceDrawer = runtimeInjector.get(SURFACE_DRAWER_BRIDGE, defaultSurfaceDrawer);
|
|
1450
|
+
const materializedPayload = await contextualMaterializer.materialize(payload, context);
|
|
1442
1451
|
const focusOrigin = resolveRuntimeFocusOrigin(context);
|
|
1443
1452
|
if (materializedPayload.presentation === 'drawer') {
|
|
1444
1453
|
if (!surfaceDrawer) {
|
|
@@ -1495,7 +1504,7 @@ function providePraxisSurfaceGlobalActions() {
|
|
|
1495
1504
|
restoreRuntimeFocusOnClose(ref.closed$, focusOrigin);
|
|
1496
1505
|
return ref;
|
|
1497
1506
|
}
|
|
1498
|
-
const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(materializedPayload,
|
|
1507
|
+
const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(materializedPayload, runtimeInjector));
|
|
1499
1508
|
restoreRuntimeFocusOnClose(ref.afterClosed(), focusOrigin);
|
|
1500
1509
|
const resultSubject = new Subject();
|
|
1501
1510
|
let terminalOutcomeEmitted = false;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dialog",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.9",
|
|
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.
|
|
10
|
+
"@praxisui/core": "^9.0.9",
|
|
11
11
|
"@angular/material": "^21.0.0",
|
|
12
12
|
"@angular/platform-browser": "^21.0.0",
|
|
13
13
|
"rxjs": "~7.8.0"
|