@praxisui/page-builder 8.0.0-beta.104 → 8.0.0-beta.106
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 +5 -5
- package/fesm2022/praxisui-page-builder.mjs +644 -106
- package/package.json +4 -4
- package/types/praxisui-page-builder.d.ts +46 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/page-builder",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.106",
|
|
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": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
13
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
11
|
+
"@praxisui/ai": "^8.0.0-beta.106",
|
|
12
|
+
"@praxisui/core": "^8.0.0-beta.106",
|
|
13
|
+
"@praxisui/settings-panel": "^8.0.0-beta.106",
|
|
14
14
|
"rxjs": "~7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -7,7 +7,7 @@ import * as rxjs from 'rxjs';
|
|
|
7
7
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
9
9
|
import { SettingsValueProvider } from '@praxisui/settings-panel';
|
|
10
|
-
import { AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AiJsonValue, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringQuickReplyContract, AgenticAuthoringPendingClarificationContract, AiContextHintsContract,
|
|
10
|
+
import { AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AiJsonValue, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AiJsonObject, AgenticAuthoringQuickReplyContract, AgenticAuthoringPendingClarificationContract, AiContextHintsContract, AgenticAuthoringSemanticDecisionContract, AgenticAuthoringPlanRequestContract, AgenticAuthoringResourceCandidatesRequestContract, AgenticAuthoringResourceCandidatesResultContract, AgenticAuthoringTurnStreamEnvelopeContract, AgenticAuthoringTurnStreamStartResponseContract, PraxisAssistantShellMessage, PraxisAssistantShellQuickReply, PraxisAssistantShellAttachment, PraxisAssistantShellLayout, PraxisAssistantSessionSnapshot, PraxisAssistantShellLabels, PraxisAssistantShellAction, PraxisAssistantShellState, PraxisAssistantShellContextItem } from '@praxisui/ai';
|
|
11
11
|
|
|
12
12
|
declare const PLACEHOLDER = 1;
|
|
13
13
|
|
|
@@ -42,6 +42,12 @@ declare class FloatingToolbarComponent {
|
|
|
42
42
|
canRedo: boolean;
|
|
43
43
|
showSave: boolean;
|
|
44
44
|
showPreview: boolean;
|
|
45
|
+
editingEnabled: boolean;
|
|
46
|
+
previewActive: boolean;
|
|
47
|
+
connectionMode: boolean;
|
|
48
|
+
modeLabel: string;
|
|
49
|
+
previewLabel: string;
|
|
50
|
+
exitPreviewLabel: string;
|
|
45
51
|
add: EventEmitter<void>;
|
|
46
52
|
undo: EventEmitter<void>;
|
|
47
53
|
redo: EventEmitter<void>;
|
|
@@ -49,7 +55,7 @@ declare class FloatingToolbarComponent {
|
|
|
49
55
|
preview: EventEmitter<void>;
|
|
50
56
|
save: EventEmitter<void>;
|
|
51
57
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FloatingToolbarComponent, never>;
|
|
52
|
-
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; }; }, { "add": "add"; "undo": "undo"; "redo": "redo"; "settings": "settings"; "preview": "preview"; "save": "save"; }, never, ["[pdx-toolbar-extra]"], true, never>;
|
|
58
|
+
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>;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
interface ComponentPaletteSelection {
|
|
@@ -61,6 +67,7 @@ interface ComponentPaletteData {
|
|
|
61
67
|
title?: string;
|
|
62
68
|
allowedWidgetIds?: string[];
|
|
63
69
|
allowedWidgetTags?: string[];
|
|
70
|
+
allowedPresetIds?: string[];
|
|
64
71
|
predicate?: (m: ComponentDocMeta) => boolean;
|
|
65
72
|
}
|
|
66
73
|
interface ComponentPaletteEntry {
|
|
@@ -1284,6 +1291,7 @@ interface PageBuilderAgenticAuthoringIntentResolutionResult {
|
|
|
1284
1291
|
gate: PageBuilderAgenticAuthoringGateResult;
|
|
1285
1292
|
effectivePrompt?: string | null;
|
|
1286
1293
|
assistantMessage?: string | null;
|
|
1294
|
+
assistantContent?: AiJsonObject | null;
|
|
1287
1295
|
quickReplies?: PageBuilderAgenticAuthoringQuickReply[];
|
|
1288
1296
|
pendingClarification?: PageBuilderAgenticAuthoringPendingClarification | null;
|
|
1289
1297
|
clarificationQuestions: string[];
|
|
@@ -1582,6 +1590,20 @@ interface AgenticAuthoringQuickReply extends PraxisAssistantShellQuickReply {
|
|
|
1582
1590
|
kind: string;
|
|
1583
1591
|
}
|
|
1584
1592
|
type AgenticAuthoringPanelLayout = PraxisAssistantShellLayout;
|
|
1593
|
+
type PageBuilderPremiumReadinessSeverity = 'info' | 'warning' | 'error';
|
|
1594
|
+
type PageBuilderPremiumReadinessActionKind = 'open-page-settings' | 'open-connections' | 'open-widget-config' | 'focus-widget';
|
|
1595
|
+
interface PageBuilderPremiumReadinessAction {
|
|
1596
|
+
kind: PageBuilderPremiumReadinessActionKind;
|
|
1597
|
+
label: string;
|
|
1598
|
+
widgetKey?: string;
|
|
1599
|
+
}
|
|
1600
|
+
interface PageBuilderPremiumReadinessIssue {
|
|
1601
|
+
id: string;
|
|
1602
|
+
severity: PageBuilderPremiumReadinessSeverity;
|
|
1603
|
+
title: string;
|
|
1604
|
+
description: string;
|
|
1605
|
+
action?: PageBuilderPremiumReadinessAction;
|
|
1606
|
+
}
|
|
1585
1607
|
type SharedRuleCockpitAction = 'definition' | 'simulation' | 'approve' | 'activate' | 'publication' | 'materializations' | 'timeline' | 'enforcement';
|
|
1586
1608
|
type ProjectKnowledgeCockpitAction = 'change-set' | 'validate' | 'approve' | 'reject' | 'apply' | 'readback';
|
|
1587
1609
|
interface SharedRuleEnforcementSummary {
|
|
@@ -1626,6 +1648,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1626
1648
|
private settingsPanel;
|
|
1627
1649
|
private readonly i18n;
|
|
1628
1650
|
private readonly injector;
|
|
1651
|
+
private readonly hostElement;
|
|
1629
1652
|
private readonly componentMetadata;
|
|
1630
1653
|
private readonly agenticAuthoring;
|
|
1631
1654
|
private readonly agenticTurnOrchestrator;
|
|
@@ -1642,6 +1665,9 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1642
1665
|
pageIdentity?: PageIdentity;
|
|
1643
1666
|
componentInstanceId?: string;
|
|
1644
1667
|
pageEditorComponent: Type<any> | undefined;
|
|
1668
|
+
componentPaletteAllowedWidgetIds: string[] | null;
|
|
1669
|
+
componentPaletteAllowedWidgetTags: string[] | null;
|
|
1670
|
+
componentPaletteAllowedPresetIds: string[] | null;
|
|
1645
1671
|
enableAgenticAuthoring: boolean;
|
|
1646
1672
|
agenticAuthoringProvider?: string;
|
|
1647
1673
|
agenticAuthoringModel?: string;
|
|
@@ -1665,6 +1691,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1665
1691
|
savedPageDeleteRequested: EventEmitter<void>;
|
|
1666
1692
|
readonly currentPage: _angular_core.WritableSignal<WidgetPageDefinition>;
|
|
1667
1693
|
readonly hasPageWidgets: _angular_core.Signal<boolean>;
|
|
1694
|
+
readonly premiumReadinessIssues: _angular_core.Signal<PageBuilderPremiumReadinessIssue[]>;
|
|
1668
1695
|
readonly connectionsViewerOpen: _angular_core.WritableSignal<boolean>;
|
|
1669
1696
|
readonly agenticAuthoringOpen: _angular_core.WritableSignal<boolean>;
|
|
1670
1697
|
readonly agenticAuthoringPrompt: _angular_core.WritableSignal<string>;
|
|
@@ -1713,6 +1740,8 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1713
1740
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1714
1741
|
ngOnDestroy(): void;
|
|
1715
1742
|
showSettings(): boolean;
|
|
1743
|
+
isPreviewMode(): boolean;
|
|
1744
|
+
builderModeLabel(): string;
|
|
1716
1745
|
onRuntimePageChange(next: WidgetPageDefinition): void;
|
|
1717
1746
|
onRuntimeWidgetEvent(event: WidgetEventEnvelope): void;
|
|
1718
1747
|
onConnectionEditorPageChange(next: WidgetPageDefinition): void;
|
|
@@ -1722,11 +1751,20 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1722
1751
|
toggleSharedRuleCockpit(): void;
|
|
1723
1752
|
toggleProjectKnowledgeCockpit(): void;
|
|
1724
1753
|
toggleConnectionsViewer(): void;
|
|
1754
|
+
connectionsToggleLabel(): string;
|
|
1725
1755
|
onAddComponent(): void;
|
|
1726
1756
|
addWidget(selection: string | ComponentPaletteSelection): void;
|
|
1757
|
+
private layoutHintsFor;
|
|
1727
1758
|
openPageSettings(): void;
|
|
1728
1759
|
saveCurrentPage(): void;
|
|
1729
1760
|
canSaveCurrentPage(): boolean;
|
|
1761
|
+
private evaluatePremiumReadiness;
|
|
1762
|
+
runPremiumReadinessAction(issue: PageBuilderPremiumReadinessIssue): void;
|
|
1763
|
+
private isPremiumReadinessCandidate;
|
|
1764
|
+
private hasDisconnectedOperationalWidgets;
|
|
1765
|
+
private latePrimaryChartKey;
|
|
1766
|
+
private usesLocalAnalyticData;
|
|
1767
|
+
private isAnalyticWidget;
|
|
1730
1768
|
applyConfigFromAdapter(config: PageBuilderConfig): void;
|
|
1731
1769
|
private createAdapterHost;
|
|
1732
1770
|
toggleAgenticAuthoring(): void;
|
|
@@ -1886,6 +1924,11 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1886
1924
|
private toRecord;
|
|
1887
1925
|
private resolvePreviewCompiledFormPatch;
|
|
1888
1926
|
focusCanvasWidget(widgetKey: string): void;
|
|
1927
|
+
private openWidgetConfiguration;
|
|
1928
|
+
private selectInsertedWidget;
|
|
1929
|
+
private deferInsertedWidgetFocus;
|
|
1930
|
+
private scrollInsertedWidgetIntoView;
|
|
1931
|
+
private escapeAttributeValue;
|
|
1889
1932
|
private parsePage;
|
|
1890
1933
|
private clonePage;
|
|
1891
1934
|
private clearSelectedWidgetIfMissing;
|
|
@@ -1906,7 +1949,7 @@ declare class DynamicPageBuilderComponent implements OnChanges, OnDestroy {
|
|
|
1906
1949
|
private cloneValue;
|
|
1907
1950
|
tx(key: string, fallback: string): string;
|
|
1908
1951
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicPageBuilderComponent, [null, { optional: true; }]>;
|
|
1909
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicPageBuilderComponent, "praxis-dynamic-page-builder", never, { "page": { "alias": "page"; "required": false; }; "context": { "alias": "context"; "required": false; }; "strictValidation": { "alias": "strictValidation"; "required": false; }; "autoPersist": { "alias": "autoPersist"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showSettingsButton": { "alias": "showSettingsButton"; "required": false; }; "pageIdentity": { "alias": "pageIdentity"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "pageEditorComponent": { "alias": "pageEditorComponent"; "required": false; }; "enableAgenticAuthoring": { "alias": "enableAgenticAuthoring"; "required": false; }; "agenticAuthoringProvider": { "alias": "agenticAuthoringProvider"; "required": false; }; "agenticAuthoringModel": { "alias": "agenticAuthoringModel"; "required": false; }; "agenticAuthoringApiKey": { "alias": "agenticAuthoringApiKey"; "required": false; }; "agenticAuthoringComponentId": { "alias": "agenticAuthoringComponentId"; "required": false; }; "agenticAuthoringScope": { "alias": "agenticAuthoringScope"; "required": false; }; "agenticAuthoringEtag": { "alias": "agenticAuthoringEtag"; "required": false; }; "agenticAuthoringIncludeLlmDiagnostics": { "alias": "agenticAuthoringIncludeLlmDiagnostics"; "required": false; }; "agenticAuthoringEnableStreaming": { "alias": "agenticAuthoringEnableStreaming"; "required": false; }; "agenticAuthoringContextHints": { "alias": "agenticAuthoringContextHints"; "required": false; }; "showPageLifecycleActions": { "alias": "showPageLifecycleActions"; "required": false; }; "canDeleteSavedPage": { "alias": "canDeleteSavedPage"; "required": false; }; "pageLifecycleBusy": { "alias": "pageLifecycleBusy"; "required": false; }; "pageLifecycleResetRevision": { "alias": "pageLifecycleResetRevision"; "required": false; }; }, { "pageChange": "pageChange"; "widgetEvent": "widgetEvent"; "pageSaveRequested": "pageSaveRequested"; "agenticAuthoringApplied": "agenticAuthoringApplied"; "agenticAuthoringSharedRuleHandoff": "agenticAuthoringSharedRuleHandoff"; "pageRestart": "pageRestart"; "savedPageDeleteRequested": "savedPageDeleteRequested"; }, never, never, true, never>;
|
|
1952
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicPageBuilderComponent, "praxis-dynamic-page-builder", never, { "page": { "alias": "page"; "required": false; }; "context": { "alias": "context"; "required": false; }; "strictValidation": { "alias": "strictValidation"; "required": false; }; "autoPersist": { "alias": "autoPersist"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showSettingsButton": { "alias": "showSettingsButton"; "required": false; }; "pageIdentity": { "alias": "pageIdentity"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "pageEditorComponent": { "alias": "pageEditorComponent"; "required": false; }; "componentPaletteAllowedWidgetIds": { "alias": "componentPaletteAllowedWidgetIds"; "required": false; }; "componentPaletteAllowedWidgetTags": { "alias": "componentPaletteAllowedWidgetTags"; "required": false; }; "componentPaletteAllowedPresetIds": { "alias": "componentPaletteAllowedPresetIds"; "required": false; }; "enableAgenticAuthoring": { "alias": "enableAgenticAuthoring"; "required": false; }; "agenticAuthoringProvider": { "alias": "agenticAuthoringProvider"; "required": false; }; "agenticAuthoringModel": { "alias": "agenticAuthoringModel"; "required": false; }; "agenticAuthoringApiKey": { "alias": "agenticAuthoringApiKey"; "required": false; }; "agenticAuthoringComponentId": { "alias": "agenticAuthoringComponentId"; "required": false; }; "agenticAuthoringScope": { "alias": "agenticAuthoringScope"; "required": false; }; "agenticAuthoringEtag": { "alias": "agenticAuthoringEtag"; "required": false; }; "agenticAuthoringIncludeLlmDiagnostics": { "alias": "agenticAuthoringIncludeLlmDiagnostics"; "required": false; }; "agenticAuthoringEnableStreaming": { "alias": "agenticAuthoringEnableStreaming"; "required": false; }; "agenticAuthoringContextHints": { "alias": "agenticAuthoringContextHints"; "required": false; }; "showPageLifecycleActions": { "alias": "showPageLifecycleActions"; "required": false; }; "canDeleteSavedPage": { "alias": "canDeleteSavedPage"; "required": false; }; "pageLifecycleBusy": { "alias": "pageLifecycleBusy"; "required": false; }; "pageLifecycleResetRevision": { "alias": "pageLifecycleResetRevision"; "required": false; }; }, { "pageChange": "pageChange"; "widgetEvent": "widgetEvent"; "pageSaveRequested": "pageSaveRequested"; "agenticAuthoringApplied": "agenticAuthoringApplied"; "agenticAuthoringSharedRuleHandoff": "agenticAuthoringSharedRuleHandoff"; "pageRestart": "pageRestart"; "savedPageDeleteRequested": "savedPageDeleteRequested"; }, never, never, true, never>;
|
|
1910
1953
|
}
|
|
1911
1954
|
|
|
1912
1955
|
export { ComponentPaletteDialogComponent, ConfirmDialogComponent, ConnectionEditorComponent, DynamicPageBuilderComponent, DynamicPageConfigEditorComponent, FloatingToolbarComponent, PAGE_BUILDER_AGENTIC_AUTHORING_OPTIONS, PAGE_BUILDER_AI_CAPABILITIES, PAGE_BUILDER_COMPONENT_CONTEXT_PACK, PAGE_BUILDER_WIDGET_AI_CATALOGS, PLACEHOLDER, PRAXIS_PAGE_BUILDER_AUTHORING_MANIFEST, PageBuilderAgenticAuthoringService, PageConfigEditorComponent, TileToolbarComponent, WidgetShellEditorComponent, clearWidgetAiCatalogs, compileUiCompositionPlan, getPageAiCatalog, getWidgetAiCapabilities, providePageBuilderWidgetAiCatalogs, registerWidgetAiCatalog, registerWidgetAiCatalogs, validateUiCompositionPlan };
|