@praxisui/page-builder 9.0.23 → 9.0.25
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 +4 -1
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-page-builder.mjs +2195 -2071
- package/package.json +4 -4
- package/types/praxisui-page-builder.d.ts +19 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/page-builder",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.25",
|
|
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.
|
|
12
|
-
"@praxisui/core": "^9.0.
|
|
13
|
-
"@praxisui/settings-panel": "^9.0.
|
|
11
|
+
"@praxisui/ai": "^9.0.25",
|
|
12
|
+
"@praxisui/core": "^9.0.25",
|
|
13
|
+
"@praxisui/settings-panel": "^9.0.25",
|
|
14
14
|
"rxjs": "~7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { EventEmitter, OnInit, WritableSignal, InjectionToken, Provider, OnChanges, OnDestroy, Type, SimpleChanges } from '@angular/core';
|
|
4
|
-
import { ComponentDocMeta, ComponentMetadataRegistry, WidgetShellConfig, WidgetShellAction, EndpointRef, ComponentPortPathSegment, LinkIntent, CompositionLink, WidgetPageDefinition, TransformKind, SurfaceOpenPayload, SettingsValueProvider as SettingsValueProvider$1, WidgetPageGroupingDefinition, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, WidgetPageCanvasLayout, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, ComponentContextPack, ComponentAuthoringManifest, DynamicWidgetPageComponent, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem } from '@praxisui/core';
|
|
4
|
+
import { ComponentDocMeta, ComponentMetadataRegistry, PraxisI18nService, WidgetShellConfig, WidgetShellAction, EndpointRef, ComponentPortPathSegment, LinkIntent, CompositionLink, WidgetPageDefinition, TransformKind, SurfaceOpenPayload, SettingsValueProvider as SettingsValueProvider$1, WidgetPageGroupingDefinition, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, WidgetPageCanvasLayout, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, ComponentContextPack, ComponentAuthoringManifest, DynamicWidgetPageComponent, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem } from '@praxisui/core';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
@@ -45,6 +45,11 @@ declare class FloatingToolbarComponent {
|
|
|
45
45
|
previewActive: boolean;
|
|
46
46
|
connectionMode: boolean;
|
|
47
47
|
modeLabel: string;
|
|
48
|
+
addLabel: string;
|
|
49
|
+
saveLabel: string;
|
|
50
|
+
undoLabel: string;
|
|
51
|
+
redoLabel: string;
|
|
52
|
+
settingsLabel: string;
|
|
48
53
|
previewLabel: string;
|
|
49
54
|
exitPreviewLabel: string;
|
|
50
55
|
add: EventEmitter<void>;
|
|
@@ -54,7 +59,7 @@ declare class FloatingToolbarComponent {
|
|
|
54
59
|
preview: EventEmitter<void>;
|
|
55
60
|
save: EventEmitter<void>;
|
|
56
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FloatingToolbarComponent, never>;
|
|
57
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FloatingToolbarComponent, "praxis-floating-toolbar", never, { "visible": { "alias": "visible"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; "showSave": { "alias": "showSave"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "editingEnabled": { "alias": "editingEnabled"; "required": false; }; "previewActive": { "alias": "previewActive"; "required": false; }; "connectionMode": { "alias": "connectionMode"; "required": false; }; "modeLabel": { "alias": "modeLabel"; "required": false; }; "previewLabel": { "alias": "previewLabel"; "required": false; }; "exitPreviewLabel": { "alias": "exitPreviewLabel"; "required": false; }; }, { "add": "add"; "undo": "undo"; "redo": "redo"; "settings": "settings"; "preview": "preview"; "save": "save"; }, never, ["[pdx-toolbar-extra]"], true, never>;
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FloatingToolbarComponent, "praxis-floating-toolbar", never, { "visible": { "alias": "visible"; "required": false; }; "canUndo": { "alias": "canUndo"; "required": false; }; "canRedo": { "alias": "canRedo"; "required": false; }; "showSave": { "alias": "showSave"; "required": false; }; "showPreview": { "alias": "showPreview"; "required": false; }; "editingEnabled": { "alias": "editingEnabled"; "required": false; }; "previewActive": { "alias": "previewActive"; "required": false; }; "connectionMode": { "alias": "connectionMode"; "required": false; }; "modeLabel": { "alias": "modeLabel"; "required": false; }; "addLabel": { "alias": "addLabel"; "required": false; }; "saveLabel": { "alias": "saveLabel"; "required": false; }; "undoLabel": { "alias": "undoLabel"; "required": false; }; "redoLabel": { "alias": "redoLabel"; "required": false; }; "settingsLabel": { "alias": "settingsLabel"; "required": false; }; "previewLabel": { "alias": "previewLabel"; "required": false; }; "exitPreviewLabel": { "alias": "exitPreviewLabel"; "required": false; }; }, { "add": "add"; "undo": "undo"; "redo": "redo"; "settings": "settings"; "preview": "preview"; "save": "save"; }, never, ["[pdx-toolbar-extra]"], true, never>;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
interface ComponentPaletteSelection {
|
|
@@ -89,16 +94,18 @@ interface ComponentPaletteBadge {
|
|
|
89
94
|
declare class ComponentPaletteDialogComponent implements OnInit {
|
|
90
95
|
private dialogRef;
|
|
91
96
|
private registry;
|
|
97
|
+
private i18n;
|
|
92
98
|
data?: ComponentPaletteData | undefined;
|
|
93
99
|
query: _angular_core.WritableSignal<string>;
|
|
94
100
|
private all;
|
|
95
101
|
filtered: _angular_core.Signal<ComponentPaletteEntry[]>;
|
|
96
102
|
density: _angular_core.Signal<"roomy" | "dense" | "normal">;
|
|
97
|
-
constructor(dialogRef: MatDialogRef<ComponentPaletteDialogComponent, ComponentPaletteSelection>, registry: ComponentMetadataRegistry, data?: ComponentPaletteData | undefined);
|
|
103
|
+
constructor(dialogRef: MatDialogRef<ComponentPaletteDialogComponent, ComponentPaletteSelection>, registry: ComponentMetadataRegistry, i18n: PraxisI18nService, data?: ComponentPaletteData | undefined);
|
|
98
104
|
ngOnInit(): void;
|
|
99
105
|
select(entry: ComponentPaletteEntry): void;
|
|
100
106
|
trackById: (_: number, entry: ComponentPaletteEntry) => string;
|
|
101
107
|
getPreview(entry: ComponentPaletteEntry): string;
|
|
108
|
+
tx(key: string, fallback: string): string;
|
|
102
109
|
private _adjustSizeEffect;
|
|
103
110
|
private applyFilters;
|
|
104
111
|
private buildEntries;
|
|
@@ -2115,6 +2122,15 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
2115
2122
|
private enterPreviewMode;
|
|
2116
2123
|
private toPresentationRuntimePage;
|
|
2117
2124
|
private toAuthoringRuntimePage;
|
|
2125
|
+
/**
|
|
2126
|
+
* Removes authoring-only inputs from a page emitted by the embedded runtime.
|
|
2127
|
+
*
|
|
2128
|
+
* The runtime must receive `enableCustomization=true` so nested components can
|
|
2129
|
+
* expose their editors, but that projection is not part of the authored page.
|
|
2130
|
+
* Restore the canonical value by widget key before publishing `pageChange` so
|
|
2131
|
+
* a presentation-only edit cannot accidentally persist authoring chrome.
|
|
2132
|
+
*/
|
|
2133
|
+
private toCanonicalPageFromAuthoringRuntime;
|
|
2118
2134
|
private toPresentationRuntimeWidget;
|
|
2119
2135
|
private applyAgenticTurnState;
|
|
2120
2136
|
private primeSharedRuleHandoff;
|