@praxisui/dialog 9.0.4-rc.26 → 9.0.4-rc.28
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-05T00:44:25.177Z",
|
|
4
4
|
"packageName": "@praxisui/dialog",
|
|
5
|
-
"packageVersion": "9.0.4-rc.
|
|
5
|
+
"packageVersion": "9.0.4-rc.28",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -1262,6 +1262,14 @@ function toSurfaceSelectionResult(output, payload) {
|
|
|
1262
1262
|
payload,
|
|
1263
1263
|
};
|
|
1264
1264
|
}
|
|
1265
|
+
function resolveParentSurfaceRuntime(context) {
|
|
1266
|
+
const runtime = context?.runtime?.state?.surfaceRuntime
|
|
1267
|
+
|| context?.payload?.surfaceContext?.surfaceRuntime
|
|
1268
|
+
|| context?.pageContext?.surfaceRuntime;
|
|
1269
|
+
return runtime && typeof runtime === 'object'
|
|
1270
|
+
? runtime
|
|
1271
|
+
: null;
|
|
1272
|
+
}
|
|
1265
1273
|
function providePraxisSurfaceGlobalActions() {
|
|
1266
1274
|
return {
|
|
1267
1275
|
provide: GLOBAL_SURFACE_SERVICE,
|
|
@@ -1278,23 +1286,33 @@ function providePraxisSurfaceGlobalActions() {
|
|
|
1278
1286
|
if (!surfaceDrawer) {
|
|
1279
1287
|
throw new Error('Drawer surface service not available');
|
|
1280
1288
|
}
|
|
1281
|
-
const
|
|
1289
|
+
const frame = {
|
|
1282
1290
|
id: `surface:${materializedPayload.widget.id}`,
|
|
1283
1291
|
title: materializedPayload.title || materializedPayload.widget.id,
|
|
1284
1292
|
titleIcon: materializedPayload.icon,
|
|
1285
1293
|
subtitle: materializedPayload.subtitle,
|
|
1286
|
-
width: materializedPayload.size?.width,
|
|
1287
|
-
minWidth: materializedPayload.size?.minWidth,
|
|
1288
|
-
maxWidth: materializedPayload.size?.maxWidth,
|
|
1289
|
-
height: materializedPayload.size?.height,
|
|
1290
|
-
minHeight: materializedPayload.size?.minHeight,
|
|
1291
|
-
maxHeight: materializedPayload.size?.maxHeight,
|
|
1292
1294
|
content: {
|
|
1293
1295
|
component: PraxisSurfaceHostComponent,
|
|
1294
1296
|
inputs: buildHostInputs(materializedPayload, context, {
|
|
1295
1297
|
includeSubtitle: false,
|
|
1296
1298
|
}),
|
|
1297
1299
|
},
|
|
1300
|
+
};
|
|
1301
|
+
const parentRuntime = resolveParentSurfaceRuntime(context);
|
|
1302
|
+
if (typeof parentRuntime?.['push'] === 'function') {
|
|
1303
|
+
const frameRef = await parentRuntime['push'](frame);
|
|
1304
|
+
if (frameRef) {
|
|
1305
|
+
return frameRef;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
const ref = surfaceDrawer.open({
|
|
1309
|
+
...frame,
|
|
1310
|
+
width: materializedPayload.size?.width,
|
|
1311
|
+
minWidth: materializedPayload.size?.minWidth,
|
|
1312
|
+
maxWidth: materializedPayload.size?.maxWidth,
|
|
1313
|
+
height: materializedPayload.size?.height,
|
|
1314
|
+
minHeight: materializedPayload.size?.minHeight,
|
|
1315
|
+
maxHeight: materializedPayload.size?.maxHeight,
|
|
1298
1316
|
});
|
|
1299
1317
|
return ref;
|
|
1300
1318
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dialog",
|
|
3
|
-
"version": "9.0.4-rc.
|
|
3
|
+
"version": "9.0.4-rc.28",
|
|
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.4-rc.
|
|
10
|
+
"@praxisui/core": "^9.0.4-rc.28",
|
|
11
11
|
"@angular/material": "^21.0.0",
|
|
12
12
|
"@angular/platform-browser": "^21.0.0",
|
|
13
13
|
"rxjs": "~7.8.0"
|