@praxisui/page-builder 9.0.0-beta.86 → 9.0.0-beta.88
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.
|
@@ -20247,6 +20247,7 @@ class DynamicPageBuilderComponent {
|
|
|
20247
20247
|
}), ...(ngDevMode ? [{ debugName: "agenticAuthoringPanelLayout" }] : /* istanbul ignore next */ []));
|
|
20248
20248
|
previewMode = false;
|
|
20249
20249
|
runtimePreviewPageCache;
|
|
20250
|
+
runtimeAuthoringPageCache;
|
|
20250
20251
|
agenticComponentCapabilities;
|
|
20251
20252
|
agenticComponentCapabilitiesPromise;
|
|
20252
20253
|
agenticTurnController;
|
|
@@ -20320,7 +20321,12 @@ class DynamicPageBuilderComponent {
|
|
|
20320
20321
|
runtimePage() {
|
|
20321
20322
|
const page = this.currentPage();
|
|
20322
20323
|
if (!this.previewMode) {
|
|
20323
|
-
|
|
20324
|
+
if (this.runtimeAuthoringPageCache?.source === page) {
|
|
20325
|
+
return this.runtimeAuthoringPageCache.value;
|
|
20326
|
+
}
|
|
20327
|
+
const value = this.toAuthoringRuntimePage(page);
|
|
20328
|
+
this.runtimeAuthoringPageCache = { source: page, value };
|
|
20329
|
+
return value;
|
|
20324
20330
|
}
|
|
20325
20331
|
if (this.runtimePreviewPageCache?.source === page) {
|
|
20326
20332
|
return this.runtimePreviewPageCache.value;
|
|
@@ -22961,6 +22967,26 @@ class DynamicPageBuilderComponent {
|
|
|
22961
22967
|
cloned.widgets = (cloned.widgets || []).map((widget) => this.toPresentationRuntimeWidget(widget));
|
|
22962
22968
|
return cloned;
|
|
22963
22969
|
}
|
|
22970
|
+
toAuthoringRuntimePage(page) {
|
|
22971
|
+
const cloned = this.clonePage(page);
|
|
22972
|
+
cloned.widgets = (cloned.widgets || []).map((widget) => {
|
|
22973
|
+
const metadata = this.componentMetadata.get(widget.definition?.id);
|
|
22974
|
+
if (!metadata?.inputs?.some((input) => input.name === 'enableCustomization')) {
|
|
22975
|
+
return widget;
|
|
22976
|
+
}
|
|
22977
|
+
return {
|
|
22978
|
+
...widget,
|
|
22979
|
+
definition: {
|
|
22980
|
+
...widget.definition,
|
|
22981
|
+
inputs: {
|
|
22982
|
+
...(widget.definition?.inputs || {}),
|
|
22983
|
+
enableCustomization: true,
|
|
22984
|
+
},
|
|
22985
|
+
},
|
|
22986
|
+
};
|
|
22987
|
+
});
|
|
22988
|
+
return cloned;
|
|
22989
|
+
}
|
|
22964
22990
|
toPresentationRuntimeWidget(widget) {
|
|
22965
22991
|
const inputs = widget.definition?.inputs;
|
|
22966
22992
|
if (!inputs || inputs['enableCustomization'] !== true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/page-builder",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.88",
|
|
4
4
|
"description": "Page and widget builder utilities for Praxis UI (grid, dynamic widgets, editors).",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"@angular/forms": "^21.0.0",
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|
|
10
10
|
"@angular/material": "^21.0.0",
|
|
11
|
-
"@praxisui/ai": "^9.0.0-beta.
|
|
12
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
13
|
-
"@praxisui/settings-panel": "^9.0.0-beta.
|
|
11
|
+
"@praxisui/ai": "^9.0.0-beta.88",
|
|
12
|
+
"@praxisui/core": "^9.0.0-beta.88",
|
|
13
|
+
"@praxisui/settings-panel": "^9.0.0-beta.88",
|
|
14
14
|
"rxjs": "~7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -1810,6 +1810,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1810
1810
|
readonly agenticAuthoringPanelLayout: _angular_core.WritableSignal<PraxisAssistantShellLayout>;
|
|
1811
1811
|
private previewMode;
|
|
1812
1812
|
private runtimePreviewPageCache?;
|
|
1813
|
+
private runtimeAuthoringPageCache?;
|
|
1813
1814
|
private agenticComponentCapabilities?;
|
|
1814
1815
|
private agenticComponentCapabilitiesPromise?;
|
|
1815
1816
|
private agenticTurnController?;
|
|
@@ -1999,6 +2000,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1999
2000
|
private applyAgenticPreviewLocally;
|
|
2000
2001
|
private enterPreviewMode;
|
|
2001
2002
|
private toPresentationRuntimePage;
|
|
2003
|
+
private toAuthoringRuntimePage;
|
|
2002
2004
|
private toPresentationRuntimeWidget;
|
|
2003
2005
|
private applyAgenticTurnState;
|
|
2004
2006
|
private primeSharedRuleHandoff;
|