@praxisui/page-builder 10.0.0-rc.38 → 10.0.0-rc.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/page-builder",
3
- "version": "10.0.0-rc.38",
3
+ "version": "10.0.0-rc.39",
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": "^10.0.0-rc.38",
12
- "@praxisui/core": "^10.0.0-rc.38",
13
- "@praxisui/settings-panel": "^10.0.0-rc.38",
11
+ "@praxisui/ai": "^10.0.0-rc.39",
12
+ "@praxisui/core": "^10.0.0-rc.39",
13
+ "@praxisui/settings-panel": "^10.0.0-rc.39",
14
14
  "rxjs": "~7.8.0"
15
15
  },
16
16
  "dependencies": {
@@ -2,7 +2,7 @@ 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
4
  import * as _praxisui_core from '@praxisui/core';
5
- import { ComponentDocMeta, WidgetShellConfig, ComponentMetadataRegistry, PraxisI18nService, SettingsEditorSection, EndpointRef, PraxisTextValue, WidgetShellPresetCategory, CompositionLink, WidgetShellAction, WidgetPageAuthoringCapabilities, PortContract, ComponentPortPathSegment, LinkIntent, WidgetPageDefinition, SurfaceOpenActionEditorComponent, TransformKind, TransformPipeline, SurfaceOpenPayload, WidgetPageDeviceKind, SettingsValueProvider as SettingsValueProvider$1, WidgetShellPresetDefinition, WidgetPageCanvasLayout, DiscoveredResourceOption, FieldDefinition, WidgetPageGroupingDefinition, WidgetPageDataSourceDefinition, WidgetPageDataSourceKind, WidgetPageDataSourceMethod, WidgetPageDataSourceErrorPolicy, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, TransformOutputHint, TransformSemanticKind, ConfigAuthoringSource, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, ComponentContextPack, ComponentAuthoringManifest, DiagnosticRecord, NestedPortCatalogRegistry, CompositionValidatorService, ApiUrlEntry, DynamicWidgetPageComponent, ConfigDocument, WidgetPagePersistenceState, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem, PageAuthoringDocument } from '@praxisui/core';
5
+ import { ComponentDocMeta, WidgetShellConfig, ComponentMetadataRegistry, PraxisI18nService, SettingsEditorSection, EndpointRef, PraxisTextValue, WidgetShellPresetCategory, CompositionLink, WidgetShellAction, WidgetPageAuthoringCapabilities, PortContract, ComponentPortPathSegment, LinkIntent, WidgetPageDefinition, SurfaceOpenActionEditorComponent, TransformKind, TransformPipeline, SurfaceOpenPayload, WidgetPageDeviceKind, SettingsValueProvider as SettingsValueProvider$1, WidgetShellPresetDefinition, WidgetPageCanvasLayout, DiscoveredResourceOption, FieldDefinition, WidgetPageGroupingDefinition, WidgetPageDataSourceDefinition, WidgetPageDataSourceKind, WidgetPageDataSourceMethod, WidgetPageDataSourceErrorPolicy, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, PageIdentity, WidgetStateNode, WidgetDerivedStateNode, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, WidgetPageDeviceLayouts, WidgetPageSlotAssignments, WidgetPageStateInput, WidgetInstance, TransformOutputHint, TransformSemanticKind, ConfigAuthoringSource, DomainKnowledgeChangeSetRequest, DomainKnowledgeChangeSet, DomainKnowledgeChangeSetTimelineResponse, DomainKnowledgeChangeSetFilters, DomainKnowledgeValidationResponse, DomainKnowledgeStatusTransitionRequest, DomainRuleIntakeRequest, DomainRuleIntakeResponse, DomainRuleDefinitionRequest, DomainRuleDefinition, DomainRuleSimulationRequest, DomainRuleSimulationResponse, DomainRuleStatusTransitionRequest, DomainRulePublicationRequest, DomainRulePublicationResponse, DomainRuleMaterializationFilters, DomainRuleMaterialization, DomainRuleTimelineResponse, PraxisRuntimeComponentObservationEnvelope, ComponentContextPack, ComponentAuthoringManifest, DiagnosticRecord, NestedPortCatalogRegistry, CompositionValidatorService, ApiUrlEntry, DynamicWidgetPageComponent, ConfigDocument, WidgetPagePersistenceState, WidgetEventEnvelope, ObservabilityAgenticTurnMetrics, SettingsPanelBridge, ObservabilityAgenticTurnMetricBucket, RichTimelineItem, PageAuthoringDocument, UiLayoutLayerClass, UiLayoutAssignmentSelector, PageDocumentDiagnostic, PageSourceReference, UiLayoutPageChildSource, UiLayoutTarget, PageCatalogEntry, NavigationGroupsAuthoringDocument, RuntimeNavigationMenuNode, PageCreationCommand, UiLayoutLifecycleHttpReceipt, PageCreationReceipt, PageCatalogReadOptions, PageCatalogResponse, UiLayoutLifecycleNotModifiedReceipt, PublishedPageReadResponse, UiLayoutDraftReceipt, UiLayoutDraftWorkspaceReceipt, UiLayoutReleaseReviewReceipt, UiLayoutReleaseHeadReceipt, UiLayoutRevisionCommand, UiLayoutRevisionCommandResult, UiLayoutAssignmentCommand, UiLayoutAssignmentCommandResult, UiLayoutFreezeReleaseCommand, UiLayoutFreezeReleaseCommandResult, UiLayoutReasonCommand, UiLayoutHeadWriteCondition, UiLayoutReleaseReferenceCommand, GovernedPagePreviewMaterialization, PageChildDocumentValidators, GovernedPagePreviewWidgetAdapters, UiLayoutLifecycleService, NavigationGroupAuthoringEntry, EffectiveUiLayoutService, PageNavigationBinding, PageNavigationBindingUpdateOptions } from '@praxisui/core';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { BehaviorSubject, Observable } from 'rxjs';
8
8
  import { FormGroup, FormControl, FormArray, AbstractControl } from '@angular/forms';
@@ -3205,5 +3205,312 @@ declare class PraxisPageCopyActionComponent {
3205
3205
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisPageCopyActionComponent, "praxis-page-copy-action", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "canCopy": { "alias": "canCopy"; "required": false; "isSignal": true; }; }, { "copyRequested": "copyRequested"; }, never, never, true, never>;
3206
3206
  }
3207
3207
 
3208
- 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, PRAXIS_PAGE_BUILDER_COMPONENT_METADATA, PageBuilderAgenticAuthoringService, PageConfigEditorComponent, PraxisPageCopyActionComponent, PraxisPageSaveAsComponent, TileToolbarComponent, UiCompositionResourcePreflightService, WidgetShellEditorComponent, clearWidgetAiCatalogs, compileUiCompositionPlan, getPageAiCatalog, getWidgetAiCapabilities, isComponentDocMeta, preflightUiCompositionPlan, preflightUiCompositionPlanResources, providePageBuilderWidgetAiCatalogs, providePraxisPageBuilderMetadata, providePraxisPageBuilderWidgets, registerWidgetAiCatalog, registerWidgetAiCatalogs, resolveUiCompositionPlanTemplate, validateUiCompositionPlan, verifyUiCompositionAuthoringSource };
3209
- export type { Capability, CapabilityCatalog, CapabilityCategory, CollectionScreenComposerConfig, ComponentPaletteData, ComponentPaletteSelection, ConfirmDialogData, GuidedDataSourceQueryConfig, GuidedDataSourceTransformConfig, GuidedDerivedMeasureConfig, PageBuilderAgenticAuthoringAttachmentSummary, PageBuilderAgenticAuthoringCandidate, PageBuilderAgenticAuthoringComponentCapabilitiesResult, PageBuilderAgenticAuthoringComponentCapability, PageBuilderAgenticAuthoringComponentCapabilityCatalog, PageBuilderAgenticAuthoringComponentCapabilityExample, PageBuilderAgenticAuthoringComponentFieldAlias, PageBuilderAgenticAuthoringConversationMessage, PageBuilderAgenticAuthoringGateResult, PageBuilderAgenticAuthoringIntentResolutionRequest, PageBuilderAgenticAuthoringIntentResolutionResult, PageBuilderAgenticAuthoringOptions, PageBuilderAgenticAuthoringPendingClarification, PageBuilderAgenticAuthoringPromptRequest, PageBuilderAgenticAuthoringProvider, PageBuilderAgenticAuthoringQuickReply, PageBuilderAgenticAuthoringResourceCandidatesRequest, PageBuilderAgenticAuthoringResourceCandidatesResult, PageBuilderAgenticAuthoringSharedRuleHandoff, PageBuilderAgenticAuthoringTarget, PageBuilderAgenticAuthoringTurnStreamConnectionError, PageBuilderAgenticAuthoringTurnStreamEvent, PageBuilderAgenticAuthoringTurnStreamRequest, PageBuilderAgenticAuthoringTurnStreamStartResponse, PageBuilderApplyRequest, PageBuilderApplyResult, PageBuilderAuthoringCapabilities, PageBuilderCompiledFormPatch, PageBuilderMinimalFormPlanResult, PageBuilderPreviewDiagnostics, PageBuilderPreviewResult, PageBuilderProjectKnowledgeAudit, PageSaveAsAdapter, PageSaveAsRequest, PageSaveAsResult, PaletteCategory, PaletteExistingCanvasItem, QueuedPaletteItem, UiCompositionAuthoringSourceDiagnostic, UiCompositionAuthoringSourceDiagnosticCode, UiCompositionAuthoringSourceVerification, UiCompositionAuthoringSourceVerificationContext, UiCompositionPlan, UiCompositionPlanAuthoringInput, UiCompositionPlanAuthoringSource, UiCompositionPlanBinding, UiCompositionPlanCompileResult, UiCompositionPlanComponentPortEndpoint, UiCompositionPlanContextScope, UiCompositionPlanContextScopeTarget, UiCompositionPlanContextValue, UiCompositionPlanDiagnostic, UiCompositionPlanEndpoint, UiCompositionPlanGlobalActionEndpoint, UiCompositionPlanGlobalActionSourceEndpoint, UiCompositionPlanInputSource, UiCompositionPlanPreflightResult, UiCompositionPlanSelectCase, UiCompositionPlanSelectionSync, UiCompositionPlanSelectionSyncMapping, UiCompositionPlanSourceEndpoint, UiCompositionPlanStateEndpoint, UiCompositionPlanTargetEndpoint, UiCompositionPlanTemplateMaterialization, UiCompositionPlanTemplateRef, UiCompositionPlanTemplateReference, UiCompositionPlanTemplateResolutionResult, UiCompositionPlanTemplateRevision, UiCompositionPlanTransform, UiCompositionPlanTransformOutput, UiCompositionPlanWidget, UiCompositionResourceSchemaRequest, UiCompositionResourceSchemaResolution, UiCompositionResourceSchemaResolver, ValueKind };
3208
+ interface GovernedPageCapabilities {
3209
+ readonly canAuthorPages: boolean;
3210
+ readonly canSubmitForReview: boolean;
3211
+ readonly canApproveReleases: boolean;
3212
+ readonly canPublishReleases: boolean;
3213
+ readonly canManageNavigationGroups: boolean;
3214
+ }
3215
+ declare const GOVERNED_PAGE_CAPABILITY_KEYS: Readonly<{
3216
+ authorPages: "praxis.config.pages.author";
3217
+ submitForReview: "praxis.config.pages.submit";
3218
+ approveReleases: "praxis.config.pages.approve";
3219
+ publishReleases: "praxis.config.pages.publish";
3220
+ manageNavigationGroups: "praxis.config.navigation.manage";
3221
+ }>;
3222
+ /**
3223
+ * Derives governed page capabilities from canonical server-issued capability keys.
3224
+ * Never fabricates approval or publication authority when a capability is absent.
3225
+ */
3226
+ declare function deriveGovernedPageCapabilities(grantedCapabilities: Iterable<string> | null | undefined): GovernedPageCapabilities;
3227
+ type GovernedPageReadResult<T> = UiLayoutLifecycleHttpReceipt<T> | UiLayoutLifecycleNotModifiedReceipt;
3228
+ interface GovernedPagePersistenceAdapter {
3229
+ readonly mode: 'corporate';
3230
+ createPage(command: PageCreationCommand): Promise<UiLayoutLifecycleHttpReceipt<PageCreationReceipt>>;
3231
+ readPageByCreationKey(creationKey: string): Promise<UiLayoutLifecycleHttpReceipt<PageCreationReceipt>>;
3232
+ readPageCatalog(options?: PageCatalogReadOptions): Promise<PageCatalogResponse>;
3233
+ readPublishedPage(pageId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<PublishedPageReadResponse>>;
3234
+ readDraftByCreationKey(target: UiLayoutTarget, creationKey: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutDraftReceipt>>;
3235
+ readDraft(target: UiLayoutTarget, draftId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutDraftWorkspaceReceipt>>;
3236
+ readReview(target: UiLayoutTarget, releaseId: string, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutReleaseReviewReceipt>>;
3237
+ readHead(target: UiLayoutTarget, ifNoneMatch?: string): Promise<GovernedPageReadResult<UiLayoutReleaseHeadReceipt>>;
3238
+ createDraft(target: UiLayoutTarget, idempotencyKey: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutDraftWorkspaceReceipt>>;
3239
+ createRevision(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutRevisionCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutRevisionCommandResult>>;
3240
+ createAssignment(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutAssignmentCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutAssignmentCommandResult>>;
3241
+ freezeRelease(target: UiLayoutTarget, draftId: string, draftEtag: string, command: UiLayoutFreezeReleaseCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutFreezeReleaseCommandResult>>;
3242
+ submit(target: UiLayoutTarget, releaseId: string, reviewEtag: string): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseReviewReceipt>>;
3243
+ approve(target: UiLayoutTarget, releaseId: string, reviewEtag: string, command: UiLayoutReasonCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseReviewReceipt>>;
3244
+ publish(target: UiLayoutTarget, condition: UiLayoutHeadWriteCondition, command: UiLayoutReleaseReferenceCommand): Promise<UiLayoutLifecycleHttpReceipt<UiLayoutReleaseHeadReceipt>>;
3245
+ }
3246
+ declare function createCorporateGovernedPagePersistenceAdapter(lifecycle: Pick<UiLayoutLifecycleService, 'createPage' | 'readPageByCreationKey' | 'readPageCatalog' | 'readPublishedPage' | 'readDraftByCreationKey' | 'readDraft' | 'readReview' | 'readHead' | 'createDraft' | 'createRevision' | 'createAssignment' | 'freezeRelease' | 'submit' | 'approve' | 'publish'>): GovernedPagePersistenceAdapter;
3247
+ /**
3248
+ * Explicit local/sandbox Save-As adapter contract.
3249
+ * Never simulates corporate review/approval/release states in the browser.
3250
+ */
3251
+ interface GovernedPageLocalSaveAdapter extends PageSaveAsAdapter {
3252
+ readonly mode: 'local';
3253
+ }
3254
+ declare function createLocalPageSaveAsAdapter(handler: (request: PageSaveAsRequest) => Promise<PageSaveAsResult>): GovernedPageLocalSaveAdapter;
3255
+ type GovernedPageOperationKind = 'create-page' | 'import-legacy-page' | 'save-revision' | 'assign-scope' | 'freeze-release' | 'submit-review' | 'approve-release' | 'publish-release';
3256
+ declare const LEGACY_PUBLISHED_PAGE_STORAGE_PREFIX: "published-page:";
3257
+ interface GovernedPageLegacyExportArtifact {
3258
+ readonly schemaVersion: '1.0.0';
3259
+ readonly kind: 'legacy-published-page-export';
3260
+ readonly storageKey: string;
3261
+ readonly pageId: string;
3262
+ readonly routePath: `/pages/${string}`;
3263
+ readonly compatible: boolean;
3264
+ readonly diagnostics: readonly PageDocumentDiagnostic[];
3265
+ readonly rawPayload: unknown;
3266
+ }
3267
+ interface GovernedPageLegacyInspectionResult {
3268
+ readonly storageKey: string;
3269
+ readonly pageId: string;
3270
+ readonly routePath: `/pages/${string}`;
3271
+ readonly target: UiLayoutTarget;
3272
+ readonly compatible: boolean;
3273
+ readonly source: PageSourceReference | null;
3274
+ readonly childSources: readonly UiLayoutPageChildSource[];
3275
+ readonly authoringDocument: PageAuthoringDocument | null;
3276
+ readonly diagnostics: readonly PageDocumentDiagnostic[];
3277
+ readonly exportableArtifact: GovernedPageLegacyExportArtifact;
3278
+ }
3279
+ interface GovernedPageLegacyImportRequest {
3280
+ readonly pageId: string;
3281
+ readonly rawPayload: unknown;
3282
+ readonly source?: PageSourceReference;
3283
+ readonly childSources?: readonly UiLayoutPageChildSource[];
3284
+ readonly reason?: string;
3285
+ readonly idempotencyKey?: string;
3286
+ }
3287
+ interface GovernedPageUncertainOperation {
3288
+ readonly operation: GovernedPageOperationKind;
3289
+ readonly attemptKey: string;
3290
+ readonly creationKey?: string;
3291
+ readonly commandRef?: string;
3292
+ readonly draftId?: string;
3293
+ readonly releaseId?: string;
3294
+ readonly source?: PageSourceReference | null;
3295
+ readonly childSources?: readonly UiLayoutPageChildSource[];
3296
+ readonly occurredAt: string;
3297
+ }
3298
+ interface GovernedPageWorkflowError {
3299
+ readonly code: 'CAPABILITY_DENIED' | 'CONTEXT_OBSOLETE' | 'COMMAND_OUTCOME_UNCERTAIN' | 'OPERATION_FENCED' | 'PRECONDITION_FAILED' | 'CONFLICT' | 'VALIDATION_FAILED' | 'PREVIEW_UNCERTIFIED' | 'ETAG_NOT_PROGRESSED' | 'DRAFT_NOT_LOADED' | 'RELEASE_NOT_FROZEN' | 'TRANSPORT_ERROR';
3300
+ readonly message: string;
3301
+ readonly diagnostics?: readonly PageDocumentDiagnostic[];
3302
+ readonly status?: number;
3303
+ }
3304
+ interface GovernedPageWorkflowSnapshot {
3305
+ readonly contextGeneration: number;
3306
+ readonly contextKey: string;
3307
+ readonly pageId: string | null;
3308
+ readonly rootTarget: UiLayoutTarget | null;
3309
+ readonly source: PageSourceReference | null;
3310
+ readonly draftWorkspace: UiLayoutDraftWorkspaceReceipt | null;
3311
+ readonly draftEtag: string | null;
3312
+ readonly workingDocument: PageAuthoringDocument | null;
3313
+ readonly baselineDocument: PageAuthoringDocument | null;
3314
+ readonly publishedSnapshot: PublishedPageReadResponse | null;
3315
+ readonly publishedEtag: string | null;
3316
+ readonly childSources: readonly UiLayoutPageChildSource[];
3317
+ readonly reviewReceipt: UiLayoutReleaseReviewReceipt | null;
3318
+ readonly reviewEtag: string | null;
3319
+ readonly headReceipt: UiLayoutReleaseHeadReceipt | null;
3320
+ readonly headEtag: string | null;
3321
+ readonly preview: GovernedPagePreviewMaterialization | null;
3322
+ readonly dirty: boolean;
3323
+ readonly busy: boolean;
3324
+ readonly capabilities: GovernedPageCapabilities;
3325
+ readonly fencedOperations: Readonly<Record<string, GovernedPageUncertainOperation>>;
3326
+ readonly lastError: GovernedPageWorkflowError | null;
3327
+ }
3328
+ interface GovernedPageWorkflowControllerConfig {
3329
+ readonly persistence: GovernedPagePersistenceAdapter;
3330
+ readonly childValidators?: PageChildDocumentValidators;
3331
+ readonly previewAdapters?: GovernedPagePreviewWidgetAdapters;
3332
+ readonly initialCapabilities?: GovernedPageCapabilities;
3333
+ readonly initialContextKey?: string;
3334
+ readonly idGenerator?: () => string;
3335
+ }
3336
+ interface GovernedPageCreateNativeRequest {
3337
+ readonly creationKey?: string;
3338
+ readonly title: string;
3339
+ readonly sourceId: string;
3340
+ readonly revision: string;
3341
+ }
3342
+ interface GovernedPageCopyPublishedRequest {
3343
+ readonly creationKey?: string;
3344
+ readonly title: string;
3345
+ readonly sourcePageId: string;
3346
+ }
3347
+ interface GovernedPageAssignmentInput {
3348
+ readonly layerClass: UiLayoutLayerClass;
3349
+ readonly selector: UiLayoutAssignmentSelector;
3350
+ readonly priority?: number;
3351
+ readonly contributionKey?: string;
3352
+ }
3353
+ interface GovernedPageSubmitOptions {
3354
+ readonly reason?: string;
3355
+ readonly assignment?: GovernedPageAssignmentInput;
3356
+ }
3357
+ interface GovernedPageNavigationSnapshot {
3358
+ readonly epoch: number;
3359
+ readonly contextKey: string;
3360
+ readonly catalogEntries: readonly PageCatalogEntry[];
3361
+ readonly groupsDocument: NavigationGroupsAuthoringDocument;
3362
+ readonly menuNodes: readonly RuntimeNavigationMenuNode[];
3363
+ readonly expandedGroupIds: readonly string[];
3364
+ readonly loading: boolean;
3365
+ readonly diagnostics: readonly PageDocumentDiagnostic[];
3366
+ readonly fencedAttempts: Readonly<Record<string, string>>;
3367
+ readonly lastError: string | null;
3368
+ }
3369
+
3370
+ declare const DEFAULT_CORPORATE_NAVIGATION_GROUPS_TARGET: UiLayoutTarget;
3371
+ interface GovernedPageNavigationControllerConfig {
3372
+ readonly persistence: GovernedPagePersistenceAdapter;
3373
+ readonly effectiveLayoutService?: Pick<EffectiveUiLayoutService, 'resolve'> | null;
3374
+ readonly observeTargetDocument?: (target: UiLayoutTarget) => Observable<Record<string, unknown> | null>;
3375
+ readonly navigationGroupsTarget?: UiLayoutTarget;
3376
+ readonly registeredNamespace?: string;
3377
+ readonly allowedIcons?: Iterable<string>;
3378
+ readonly pageSize?: number;
3379
+ readonly maxItemsPerLevel?: number;
3380
+ readonly initialContextKey?: string;
3381
+ readonly idGenerator?: () => string;
3382
+ }
3383
+ interface GovernedNavigationGroupPublishInput {
3384
+ readonly entry: NavigationGroupAuthoringEntry;
3385
+ readonly draftCreationKey?: string;
3386
+ readonly revisionCommandRef?: string;
3387
+ readonly assignmentCommandRef?: string;
3388
+ readonly freezeCommandRef?: string;
3389
+ readonly reason?: string;
3390
+ readonly layerClass?: UiLayoutLayerClass;
3391
+ readonly selector: UiLayoutAssignmentSelector;
3392
+ readonly priority?: number;
3393
+ readonly contributionKey?: string;
3394
+ }
3395
+ declare class GovernedPageNavigationController {
3396
+ private readonly persistence;
3397
+ private readonly observeTargetDoc?;
3398
+ private readonly navigationGroupsTarget;
3399
+ private readonly registeredNamespace;
3400
+ private readonly allowedIcons;
3401
+ private readonly pageSize;
3402
+ private readonly maxItemsPerLevel;
3403
+ private readonly idGenerator;
3404
+ private epoch;
3405
+ private contextKey;
3406
+ private groupsSub;
3407
+ private readonly pageSubs;
3408
+ private readonly pageDocuments;
3409
+ private readonly expandedGroups;
3410
+ private readonly fencedAttempts;
3411
+ private latestGroupsDoc;
3412
+ private latestCatalogEntries;
3413
+ private readonly stateSubject;
3414
+ readonly snapshot$: Observable<GovernedPageNavigationSnapshot>;
3415
+ constructor(config: GovernedPageNavigationControllerConfig);
3416
+ get snapshot(): GovernedPageNavigationSnapshot;
3417
+ setContextKey(nextContextKey: string): void;
3418
+ invalidate(): void;
3419
+ destroy(): void;
3420
+ refresh(): Promise<GovernedPageNavigationSnapshot>;
3421
+ toggleGroupExpanded(groupId: string): void;
3422
+ clearFencedAttempt(attemptKey: string): void;
3423
+ upsertAndPublishNavigationGroup(input: GovernedNavigationGroupPublishInput): Promise<NavigationGroupsAuthoringDocument>;
3424
+ private readAllCatalogEntries;
3425
+ private hydrateCatalogPages;
3426
+ private bindGroupsObservation;
3427
+ private bindPageObservation;
3428
+ private reobserveGroupChildren;
3429
+ private recomputeProjection;
3430
+ private isStale;
3431
+ private teardownSubscriptions;
3432
+ private publishSnapshot;
3433
+ }
3434
+
3435
+ declare const DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS: PageChildDocumentValidators;
3436
+ declare const DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS: GovernedPagePreviewWidgetAdapters;
3437
+ /**
3438
+ * Inspects a legacy `published-page:<uuid>` payload against the closed P0 governed page profile.
3439
+ * Validates page source, authoring document structure, and child widget sources while preserving
3440
+ * an exportable artifact for incompatible legacy records.
3441
+ */
3442
+ declare function inspectLegacyPublishedPagePayload(request: GovernedPageLegacyImportRequest, childValidators?: PageChildDocumentValidators): GovernedPageLegacyInspectionResult;
3443
+ declare class GovernedPageWorkflowController {
3444
+ private readonly persistence;
3445
+ private readonly childValidators;
3446
+ private readonly previewAdapters;
3447
+ private readonly idGenerator;
3448
+ private contextGeneration;
3449
+ private contextKey;
3450
+ private readonly fencedOperations;
3451
+ private readonly childSourcesByWidgetId;
3452
+ private readonly stateSubject;
3453
+ readonly snapshot$: Observable<GovernedPageWorkflowSnapshot>;
3454
+ constructor(config: GovernedPageWorkflowControllerConfig);
3455
+ get snapshot(): GovernedPageWorkflowSnapshot;
3456
+ setCapabilities(capabilities: GovernedPageCapabilities): void;
3457
+ /**
3458
+ * Advances monotonic context generation on context switch (including A -> B -> A),
3459
+ * invalidating any in-flight callbacks from previous generations.
3460
+ */
3461
+ setContextKey(nextContextKey: string): void;
3462
+ destroy(): void;
3463
+ createNativePage(request: GovernedPageCreateNativeRequest): Promise<PageCreationReceipt>;
3464
+ copyPublishedPage(request: GovernedPageCopyPublishedRequest): Promise<PageCreationReceipt>;
3465
+ /**
3466
+ * Explicitly imports a compatible legacy `published-page:<uuid>` record into a governed draft
3467
+ * preserving the `/pages/<uuid>` address (`{ componentType: 'praxis-dynamic-page', componentId: pageId }`).
3468
+ * Never fabricates approval or publication state and never deletes legacy storage keys.
3469
+ */
3470
+ importLegacyPublishedPage(request: GovernedPageLegacyImportRequest): Promise<GovernedPageWorkflowSnapshot>;
3471
+ openDraftWorkspace(pageId: string, draftId: string, options?: {
3472
+ source?: PageSourceReference | null;
3473
+ }): Promise<GovernedPageWorkflowSnapshot>;
3474
+ updateWorkingDocument(nextDocument: PageAuthoringDocument): PageAuthoringDocument;
3475
+ updatePresentation(presentation: PageAuthoringDocument['config']['presentation']): PageAuthoringDocument;
3476
+ upsertNavigationBinding(binding: PageNavigationBinding, options?: PageNavigationBindingUpdateOptions): PageAuthoringDocument;
3477
+ /**
3478
+ * Updates a child widget's inputs inside the page's authoring document and
3479
+ * records its governed child source so child widgets remain under page authorship.
3480
+ */
3481
+ updateChildWidgetInputs(widgetKey: string, inputs: Record<string, unknown>, childSource?: UiLayoutPageChildSource): PageAuthoringDocument;
3482
+ buildInteractivePreview(baseContext?: Record<string, unknown>): GovernedPagePreviewMaterialization;
3483
+ saveDraftRevision(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
3484
+ assignScope(input: GovernedPageAssignmentInput): Promise<GovernedPageWorkflowSnapshot>;
3485
+ saveAndSubmitForReview(options?: GovernedPageSubmitOptions): Promise<GovernedPageWorkflowSnapshot>;
3486
+ approveRelease(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
3487
+ publishRelease(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
3488
+ approveAndPublish(reason?: string): Promise<GovernedPageWorkflowSnapshot>;
3489
+ /**
3490
+ * Reconciles a fenced operation after an ambiguous network failure (`COMMAND_OUTCOME_UNCERTAIN`)
3491
+ * using the canonical read endpoints before unlocking retries.
3492
+ */
3493
+ reconcileUncertainOperation(attemptKey: string): Promise<GovernedPageWorkflowSnapshot>;
3494
+ /**
3495
+ * Reloads server state after a 409 Conflict or 412 Precondition Failed response.
3496
+ */
3497
+ reloadAfterConflict(): Promise<GovernedPageWorkflowSnapshot>;
3498
+ private executePageCreation;
3499
+ private applyDraftWorkspaceReceipt;
3500
+ private refreshPublishedAndLifecycleMetadata;
3501
+ private requireCapability;
3502
+ private requireWorkingDocument;
3503
+ private requireLoadedDraft;
3504
+ private assertNotFenced;
3505
+ private isStale;
3506
+ private assertActiveContext;
3507
+ private handleOperationError;
3508
+ private fail;
3509
+ private isLifecycleContractErrorLike;
3510
+ private isWorkflowError;
3511
+ private setBusy;
3512
+ private publishSnapshot;
3513
+ }
3514
+
3515
+ export { ComponentPaletteDialogComponent, ConfirmDialogComponent, ConnectionEditorComponent, DEFAULT_CORPORATE_NAVIGATION_GROUPS_TARGET, DEFAULT_GOVERNED_PAGE_CHILD_VALIDATORS, DEFAULT_GOVERNED_PAGE_PREVIEW_ADAPTERS, DynamicPageBuilderComponent, DynamicPageConfigEditorComponent, FloatingToolbarComponent, GOVERNED_PAGE_CAPABILITY_KEYS, GovernedPageNavigationController, GovernedPageWorkflowController, LEGACY_PUBLISHED_PAGE_STORAGE_PREFIX, 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, PRAXIS_PAGE_BUILDER_COMPONENT_METADATA, PageBuilderAgenticAuthoringService, PageConfigEditorComponent, PraxisPageCopyActionComponent, PraxisPageSaveAsComponent, TileToolbarComponent, UiCompositionResourcePreflightService, WidgetShellEditorComponent, clearWidgetAiCatalogs, compileUiCompositionPlan, createCorporateGovernedPagePersistenceAdapter, createLocalPageSaveAsAdapter, deriveGovernedPageCapabilities, getPageAiCatalog, getWidgetAiCapabilities, inspectLegacyPublishedPagePayload, isComponentDocMeta, preflightUiCompositionPlan, preflightUiCompositionPlanResources, providePageBuilderWidgetAiCatalogs, providePraxisPageBuilderMetadata, providePraxisPageBuilderWidgets, registerWidgetAiCatalog, registerWidgetAiCatalogs, resolveUiCompositionPlanTemplate, validateUiCompositionPlan, verifyUiCompositionAuthoringSource };
3516
+ export type { Capability, CapabilityCatalog, CapabilityCategory, CollectionScreenComposerConfig, ComponentPaletteData, ComponentPaletteSelection, ConfirmDialogData, GovernedNavigationGroupPublishInput, GovernedPageAssignmentInput, GovernedPageCapabilities, GovernedPageCopyPublishedRequest, GovernedPageCreateNativeRequest, GovernedPageLegacyExportArtifact, GovernedPageLegacyImportRequest, GovernedPageLegacyInspectionResult, GovernedPageLocalSaveAdapter, GovernedPageNavigationControllerConfig, GovernedPageNavigationSnapshot, GovernedPageOperationKind, GovernedPagePersistenceAdapter, GovernedPageReadResult, GovernedPageSubmitOptions, GovernedPageUncertainOperation, GovernedPageWorkflowControllerConfig, GovernedPageWorkflowError, GovernedPageWorkflowSnapshot, GuidedDataSourceQueryConfig, GuidedDataSourceTransformConfig, GuidedDerivedMeasureConfig, PageBuilderAgenticAuthoringAttachmentSummary, PageBuilderAgenticAuthoringCandidate, PageBuilderAgenticAuthoringComponentCapabilitiesResult, PageBuilderAgenticAuthoringComponentCapability, PageBuilderAgenticAuthoringComponentCapabilityCatalog, PageBuilderAgenticAuthoringComponentCapabilityExample, PageBuilderAgenticAuthoringComponentFieldAlias, PageBuilderAgenticAuthoringConversationMessage, PageBuilderAgenticAuthoringGateResult, PageBuilderAgenticAuthoringIntentResolutionRequest, PageBuilderAgenticAuthoringIntentResolutionResult, PageBuilderAgenticAuthoringOptions, PageBuilderAgenticAuthoringPendingClarification, PageBuilderAgenticAuthoringPromptRequest, PageBuilderAgenticAuthoringProvider, PageBuilderAgenticAuthoringQuickReply, PageBuilderAgenticAuthoringResourceCandidatesRequest, PageBuilderAgenticAuthoringResourceCandidatesResult, PageBuilderAgenticAuthoringSharedRuleHandoff, PageBuilderAgenticAuthoringTarget, PageBuilderAgenticAuthoringTurnStreamConnectionError, PageBuilderAgenticAuthoringTurnStreamEvent, PageBuilderAgenticAuthoringTurnStreamRequest, PageBuilderAgenticAuthoringTurnStreamStartResponse, PageBuilderApplyRequest, PageBuilderApplyResult, PageBuilderAuthoringCapabilities, PageBuilderCompiledFormPatch, PageBuilderMinimalFormPlanResult, PageBuilderPreviewDiagnostics, PageBuilderPreviewResult, PageBuilderProjectKnowledgeAudit, PageSaveAsAdapter, PageSaveAsRequest, PageSaveAsResult, PaletteCategory, PaletteExistingCanvasItem, QueuedPaletteItem, UiCompositionAuthoringSourceDiagnostic, UiCompositionAuthoringSourceDiagnosticCode, UiCompositionAuthoringSourceVerification, UiCompositionAuthoringSourceVerificationContext, UiCompositionPlan, UiCompositionPlanAuthoringInput, UiCompositionPlanAuthoringSource, UiCompositionPlanBinding, UiCompositionPlanCompileResult, UiCompositionPlanComponentPortEndpoint, UiCompositionPlanContextScope, UiCompositionPlanContextScopeTarget, UiCompositionPlanContextValue, UiCompositionPlanDiagnostic, UiCompositionPlanEndpoint, UiCompositionPlanGlobalActionEndpoint, UiCompositionPlanGlobalActionSourceEndpoint, UiCompositionPlanInputSource, UiCompositionPlanPreflightResult, UiCompositionPlanSelectCase, UiCompositionPlanSelectionSync, UiCompositionPlanSelectionSyncMapping, UiCompositionPlanSourceEndpoint, UiCompositionPlanStateEndpoint, UiCompositionPlanTargetEndpoint, UiCompositionPlanTemplateMaterialization, UiCompositionPlanTemplateRef, UiCompositionPlanTemplateReference, UiCompositionPlanTemplateResolutionResult, UiCompositionPlanTemplateRevision, UiCompositionPlanTransform, UiCompositionPlanTransformOutput, UiCompositionPlanWidget, UiCompositionResourceSchemaRequest, UiCompositionResourceSchemaResolution, UiCompositionResourceSchemaResolver, ValueKind };