@praxisui/page-builder 10.0.0-rc.62 → 10.0.0-rc.64
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 +11 -5
- package/ai/component-registry.json +81 -6
- package/fesm2022/praxisui-page-builder.mjs +1967 -130
- package/package.json +7 -7
- package/types/praxisui-page-builder.d.ts +141 -10
package/README.md
CHANGED
|
@@ -57,14 +57,19 @@ button retries through Core for manually managed pages; conflicts require an exp
|
|
|
57
57
|
|
|
58
58
|
For `authoringDocument` or agentic authoring, Core automatic persistence is disabled even
|
|
59
59
|
when requested: the existing host/server apply lifecycle owns revisions and provenance.
|
|
60
|
-
An AI preview must never be saved through an automatic generic config write.
|
|
60
|
+
An AI preview must never be saved through an automatic generic config write. When both `[autoPersist]="true"` and `[enableAgenticAuthoring]="true"` are desired together (for example, so unapplied AI previews pause runtime writes without suppressing manual layout persistence), bind `[allowAutoPersistWithAgentic]="true"` or `[autoPersistPolicy]="'independent'"`; in dev mode, omitting both logs an explicit diagnostic warning.
|
|
61
|
+
|
|
62
|
+
### Side-effect-free Save-As snapshots & closed publication projection
|
|
63
|
+
|
|
64
|
+
- **`builder.capturePreparedPageSnapshot()`**: produces a persistence-normalized `WidgetPageDefinition` (applying `siblingGridGeometrySync` and `preparePageForPersistence`) without updating persistence baselines, setting `hasLocalAuthoringChanges`, or emitting `pageSaveRequested` / `pageAuthoringChange`. Hosts building Save-As workflows should call `capturePreparedPageSnapshot()` so creating a derived page never alters the origin page.
|
|
65
|
+
- **`projectWidgetPageToClosedAuthoringResult(page, options?)`** and **`projectWidgetPageToClosedAuthoringDefinition(page, options?)`** (with `deterministicClosedPageUuid`, `ClosedAuthoringProjectionOptions`, `ClosedAuthoringDroppedWidget`, and `ClosedAuthoringProjectionResult`): exported from `@praxisui/page-builder` to deterministically map runtime `WidgetPageDefinition` graphs into canonical closed `page-authoring/v1` payloads ready for `decodePageAuthoringDocument` and `validatePageAuthoringDocument` while also reporting `droppedWidgets`, `droppedCanvas`, `droppedShellKeys`, and `warnings` (generating deterministic UUIDs, compacting closed table inputs with `columns: []` + `columnProjection.source: 'schema'`, stripping null/unsupported fields, and optionally setting `behavior.configPersistenceStrategy: 'volatile'` when `lockForGovernance: true`).
|
|
66
|
+
- **Restricted palette vs. explicit opt-in**: `integrityPolicy.allowedWidgetIds` is passed as a restrictive upper bound (`policyAllowedWidgetIds`) in `ComponentPaletteDialogComponent` and never unlocks `paletteVisibility: 'explicit-only'` widgets that are not explicitly listed in `componentPaletteAllowedWidgetIds` / `componentPaletteAllowedWidgetTags`. Setting `integrityPolicy.allowCustomWidgets = false` hides the insert-component affordance and blocks both `onAddComponent()` and programmatic `addWidget()`/`addWidgets()`.
|
|
67
|
+
- **Policy-safe adapter & agentic commits**: `applyConfigFromAdapter`, local agentic preview commits, and `resolvePreviewCompiledFormPatch` preserve `WidgetInstanceAuthoringPolicy` (`removable`, `duplicable`, `lockShellKind`) from the baseline page and strip newly inserted `hidden` or un-opted `explicit-only` widgets.
|
|
61
68
|
|
|
62
69
|
## Widget shell editor integrity
|
|
63
70
|
|
|
64
71
|
The shell editor exposes **Keep header visible while scrolling the page**
|
|
65
|
-
(`widget.shell.stickyHeader`). It retains the current title/subtitle rather than
|
|
66
|
-
copying record state into the host. Apply/save/reopen/reset use the same shell
|
|
67
|
-
document and the existing identity-authoring capability governs the option.
|
|
72
|
+
(`widget.shell.stickyHeader`). When `widgetAuthoringPolicy.lockShellKind` is `true`, the editor disables switching `kind` and `showHeader`, surfaces `praxis.pageBuilder.shell.lockedKindHint`, and preserves `initial.kind` (including explicit `'dashboard-card'`) and `initial.showHeader` verbatim on Save/Apply. When `lockShellKind` is `true` on a content-only widget (`kind: 'none'`), `WidgetShellEditorComponent` enters `isFramelessLocked` mode: it disables header, identity, avatar, card preset, and appearance controls (while still reading raw values on Save/Apply) and surfaces `praxis.pageBuilder.shell.framelessLockedNotice`. It retains the current title/subtitle rather than copying record state into the host. Apply/save/reopen/reset use the same shell document and the existing identity-authoring capability governs the option.
|
|
68
73
|
Pinning is visible in presentation mode, not while dragging/editing the canvas;
|
|
69
74
|
hidden headers, collapsed/overlay widgets and scroll recovery retain their own
|
|
70
75
|
behavior. Hosts with a fixed heading provide the Core CSS length
|
|
@@ -1217,7 +1222,7 @@ successful shell-authoring AI journey is recorded for the integrated source.
|
|
|
1217
1222
|
|
|
1218
1223
|
## Reusable copy and save-as journey
|
|
1219
1224
|
|
|
1220
|
-
`PraxisPageCopyActionComponent` and `PraxisPageSaveAsComponent` provide reusable authoring controls for copying the current draft and saving a new page with a menu name/icon and confirmed internal route. Hosts provide an explicit `PageSaveAsAdapter`; the controls own validation feedback, retry snapshot/key, busy state, obsolete callback rejection and the last confirmed link. They do not provide storage or grant publication authority.
|
|
1225
|
+
`PraxisPageCopyActionComponent` and `PraxisPageSaveAsComponent` provide reusable authoring controls for copying the current draft and saving a new page with a menu name/icon and confirmed internal route (with optional `menuSuggestions` autocomplete on both `PraxisPageSaveAsComponent` and `PraxisPersonalLaboratoryPageComponent`, which auto-merges unique `savedPages[].menuGroup` labels). Hosts provide an explicit `PageSaveAsAdapter`; the controls own validation feedback, retry snapshot/key, busy state, obsolete callback rejection and the last confirmed link. They do not provide storage or grant publication authority.
|
|
1221
1226
|
|
|
1222
1227
|
Connect `saveRequested` to `DynamicPageBuilderComponent.saveCurrentPage()` and its `pageSaveRequested` to `saveAs.save($event)` with `autoPersist=false`. Keep host routing, persistence and authorization in the adapter. See [contract, integration and proof limits](https://github.com/codexrodrigues/praxis-ui-angular/blob/main/projects/praxis-page-builder/docs/page-save-as.md). The first Hero proof is browser-local, not governed corporate publication; importing hosts require the matching packaged API before merge.
|
|
1223
1228
|
|
|
@@ -1236,6 +1241,7 @@ Corporate adoption requires a ready context and current context-version headers,
|
|
|
1236
1241
|
- **Enterprise Workspace Shell (`PraxisEnterpriseWorkspaceShellComponent`):** Locks `switchingContext` synchronously before consulting `PraxisContextSwitchGuard`, logs switch failures cleanly without mutating active context, prioritizes structured `errorCode` values (`TENANT_SCOPE_WRITE_FORBIDDEN`, `GOVERNANCE_DENIED`, `FORBIDDEN`) in save-error banners, guards `onSignOut()` against dirty state (`signOutBlocked`), forwards `canConfigure`, `isTenantWriteBlocked`, `globalSettingsTrigger`, `createPageTrigger`, and the `workspace-scope-bar` -> `shell-scope-bar` projection slot to `<praxis-app-shell>`, and localizes fallback command/search chrome. Import `<praxis-command-palette>` directly from `@praxisui/core` (the re-export from `@praxisui/page-builder` is deprecated).
|
|
1237
1242
|
- **Persistence Policy, Integrity & Preview Cleanup:** `DynamicPageBuilderComponent.autoPersistPolicy` (`'independent' | 'suspend-when-agentic' | 'disabled'`) explicitly decouples runtime auto-persistence from agentic authoring, `integrityPolicy` delegates load/save structural reconciliation (`composition.links`, `layoutPreset`, `grouping`, conservative `context` merge) to `PraxisPageReconcilerService`, and `clearAgenticAuthoringPreviewState` discards paused runtime writes unless `{ keepPausedPersistence: true }` is passed.
|
|
1238
1243
|
- **Declarative Sibling Grid Sync & Deep Sanitization:** `siblingGridGeometrySync` (`syncSiblingGridGeometry` / `createSiblingGridGeometryPrepareHook`) synchronizes tab sibling coordinates while clamping `col` against `columns - colSpan + 1` (even when `lockSize: true`), inheriting base `constraints` on `deviceLayouts`, preventing positional fallback collisions with explicit `slotMappings`, and deduplicating overlapping groupings. `sanitizeWidgetPageDefinition` recursively strips nested container widgets (`widgets`, `children`, `tabs`, `panels`, `steps`, and embedded `inputs.page`), deep `chartDocumentOverrides`, and optional declared `ComponentDocMeta.transientInputs`.
|
|
1244
|
+
- **Owner Rebind, Scoped Palette Isolation & Locked Shell Editing:** `DynamicPageBuilderComponent` exposes `@Input() persistenceOwnerKey` (forwarding to `<praxis-dynamic-page>` and isolating Core persistence, agentic session identity via `resolveAgenticAuthoringSessionId()`, and local authoring drafts cleanly on scope changes without `@for` teardown) and `@Input() componentPaletteExcludedWidgetTags`; `DynamicPageBuilderComponent` enforces `integrityPolicy.allowCustomWidgets = false` across `canInsertWidgets()`, `onAddComponent()`, `addWidget()`, and `addWidgets()`, derives/intersects `integrityPolicy.allowedWidgetIds` (failing closed when disjoint), forwards `excludedWidgetTags`, and prioritizes `authoringDocument` over `page` when enforcing baseline `authoringPolicy`; `ComponentPaletteDialogComponent` enforces `ComponentDocMeta.paletteVisibility` (`'hidden'` excluded; `'explicit-only'` admitted only under explicit allowlists); and `WidgetShellEditorComponent` locks `kind`/`showHeader` under `WidgetInstanceAuthoringPolicy.lockShellKind` and enters `isFramelessLocked` mode when `kind` is `'none'`.
|
|
1239
1245
|
|
|
1240
1246
|
<!-- praxis-npm-catalog-links:start -->
|
|
1241
1247
|
## Official documentation and examples
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-25T22:31:29.130Z",
|
|
4
4
|
"packageName": "@praxisui/page-builder",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.64",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -12,18 +12,90 @@
|
|
|
12
12
|
"description": "Page builder using the canonical praxis-dynamic-page runtime.",
|
|
13
13
|
"category": "page",
|
|
14
14
|
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"name": "page",
|
|
17
|
+
"type": "WidgetPageDefinition | string",
|
|
18
|
+
"required": false,
|
|
19
|
+
"description": "Declarative page definition rendered by praxis-dynamic-page."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "authoringDocument",
|
|
23
|
+
"type": "ConfigDocument<WidgetPageDefinition> | null",
|
|
24
|
+
"required": false,
|
|
25
|
+
"description": "Persisted governed document payload, ETag and attested authoring source; takes precedence over page."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "pageIdentity",
|
|
29
|
+
"type": "PageIdentity | null",
|
|
30
|
+
"required": false,
|
|
31
|
+
"description": "Canonical persistence identity (app, tenant, user, route) for governed config storage."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "componentInstanceId",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"required": false,
|
|
37
|
+
"description": "Stable component instance identifier on the host page."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "persistenceOwnerKey",
|
|
41
|
+
"type": "string | null",
|
|
42
|
+
"required": false,
|
|
43
|
+
"description": "Opaque scope/owner isolation key forwarded to Core runtime persistence and agentic authoring sessions."
|
|
44
|
+
},
|
|
15
45
|
{
|
|
16
46
|
"name": "autoPersist",
|
|
17
47
|
"type": "boolean",
|
|
18
48
|
"required": false,
|
|
19
49
|
"description": "Opt-in Core persistence for manual pages; defaults to false. Disabled for authoringDocument and agentic authoring unless overridden by autoPersistPolicy."
|
|
20
50
|
},
|
|
51
|
+
{
|
|
52
|
+
"name": "allowAutoPersistWithAgentic",
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"required": false,
|
|
55
|
+
"description": "Allows Core runtime auto-persistence to stay active alongside enableAgenticAuthoring while automatically pausing during active unapplied previews."
|
|
56
|
+
},
|
|
21
57
|
{
|
|
22
58
|
"name": "autoPersistPolicy",
|
|
23
59
|
"type": "'independent' | 'suspend-when-agentic' | 'disabled' | null",
|
|
24
60
|
"required": false,
|
|
25
61
|
"description": "Explicit policy decoupling Core runtime auto-persistence from agentic authoring."
|
|
26
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "enableAgenticAuthoring",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"required": false,
|
|
67
|
+
"description": "Enables the built-in agentic authoring assistant shell and preview/apply workflow."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "agenticAuthoringScope",
|
|
71
|
+
"type": "'user' | 'tenant'",
|
|
72
|
+
"required": false,
|
|
73
|
+
"description": "Target persistence scope used by agentic authoring apply/persistence requests."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "agenticAuthoringComponentId",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"required": false,
|
|
79
|
+
"description": "Optional componentId override sent by agentic authoring turns."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "authoringCapabilities",
|
|
83
|
+
"type": "PageBuilderAuthoringCapabilities | null",
|
|
84
|
+
"required": false,
|
|
85
|
+
"description": "Host-only capability grant limiting visible authoring operations without mutating WidgetPageDefinition."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "componentPaletteAllowedWidgetIds",
|
|
89
|
+
"type": "string[] | null",
|
|
90
|
+
"required": false,
|
|
91
|
+
"description": "Restricts palette insertion and authoring candidates to the listed widget ids."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "componentPaletteExcludedWidgetTags",
|
|
95
|
+
"type": "string[] | null",
|
|
96
|
+
"required": false,
|
|
97
|
+
"description": "Excludes widgets carrying any listed metadata tag from palette insertion and authoring candidates."
|
|
98
|
+
},
|
|
27
99
|
{
|
|
28
100
|
"name": "siblingGridGeometrySync",
|
|
29
101
|
"type": "boolean | SiblingGridGeometrySyncPolicy | null",
|
|
@@ -3944,6 +4016,9 @@
|
|
|
3944
4016
|
"Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.",
|
|
3945
4017
|
"Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.",
|
|
3946
4018
|
"Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.",
|
|
4019
|
+
"Hosts switching tenants, users or scopes isolate Core runtime auto-persistence and agentic authoring session identity through persistenceOwnerKey, resetting unsaved local/preview state cleanly on owner transitions.",
|
|
4020
|
+
"Per-widget WidgetInstanceAuthoringPolicy (removable, duplicable, lockShellKind) and ComponentDocMeta.paletteVisibility (global, explicit-only, hidden) remain authoritative across visual edits, palette insertion and agentic applies.",
|
|
4021
|
+
"Hosts deriving standalone or closed governed snapshots capture prepared runtime pages non-destructively with capturePreparedPageSnapshot() and inspect profile compatibility via projectWidgetPageToClosedAuthoringResult().",
|
|
3947
4022
|
"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.",
|
|
3948
4023
|
"Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding."
|
|
3949
4024
|
],
|
|
@@ -4156,9 +4231,9 @@
|
|
|
4156
4231
|
{
|
|
4157
4232
|
"chunkIndex": 0,
|
|
4158
4233
|
"chunkKind": "summary",
|
|
4159
|
-
"content": "Component ID: praxis-page-builder\nSelector: praxis-dynamic-page-builder\nFriendly Name: Praxis Page Builder\nDescription: Page builder using the canonical praxis-dynamic-page runtime.\nCategory: page\nLib/Package: @praxisui/page-builder\nTags: widget, page-builder, configurable\nInputs:\n - autoPersist (boolean)\n - autoPersistPolicy ('independent' | 'suspend-when-agentic' | 'disabled' | null)\n - siblingGridGeometrySync (boolean | SiblingGridGeometrySyncPolicy | null)\n - integrityPolicy (PageIntegrityPolicy | null)\nOutputs:\n - persistenceChange (WidgetPagePersistenceState)\n - pageChange (WidgetPageDefinition)\n - pageAuthoringChange (WidgetPageDefinition)\n - widgetEvent (WidgetEventEnvelope)\n - pageSaveRequested (WidgetPageDefinition)\n - agenticAuthoringApplied (PageBuilderApplyResult)\n - agenticAuthoringSharedRuleHandoff (PageBuilderAgenticAuthoringSharedRuleHandoff)\n - pageRestart (void)\n - savedPageDeleteRequested (void)\n",
|
|
4234
|
+
"content": "Component ID: praxis-page-builder\nSelector: praxis-dynamic-page-builder\nFriendly Name: Praxis Page Builder\nDescription: Page builder using the canonical praxis-dynamic-page runtime.\nCategory: page\nLib/Package: @praxisui/page-builder\nTags: widget, page-builder, configurable\nInputs:\n - page (WidgetPageDefinition | string)\n - authoringDocument (ConfigDocument<WidgetPageDefinition> | null)\n - pageIdentity (PageIdentity | null)\n - componentInstanceId (string)\n - persistenceOwnerKey (string | null)\n - autoPersist (boolean)\n - allowAutoPersistWithAgentic (boolean)\n - autoPersistPolicy ('independent' | 'suspend-when-agentic' | 'disabled' | null)\n - enableAgenticAuthoring (boolean)\n - agenticAuthoringScope ('user' | 'tenant')\n - agenticAuthoringComponentId (string)\n - authoringCapabilities (PageBuilderAuthoringCapabilities | null)\n - componentPaletteAllowedWidgetIds (string[] | null)\n - componentPaletteExcludedWidgetTags (string[] | null)\n - siblingGridGeometrySync (boolean | SiblingGridGeometrySyncPolicy | null)\n - integrityPolicy (PageIntegrityPolicy | null)\nOutputs:\n - persistenceChange (WidgetPagePersistenceState)\n - pageChange (WidgetPageDefinition)\n - pageAuthoringChange (WidgetPageDefinition)\n - widgetEvent (WidgetEventEnvelope)\n - pageSaveRequested (WidgetPageDefinition)\n - agenticAuthoringApplied (PageBuilderApplyResult)\n - agenticAuthoringSharedRuleHandoff (PageBuilderAgenticAuthoringSharedRuleHandoff)\n - pageRestart (void)\n - savedPageDeleteRequested (void)\n",
|
|
4160
4235
|
"sourcePointer": "projects/praxis-page-builder/src/lib/praxis-page-builder.metadata.ts",
|
|
4161
|
-
"contentHash": "
|
|
4236
|
+
"contentHash": "05bc9763469a66cf89a5c3c922d528985e4bfa09ce6f16572f721970aa5c380b",
|
|
4162
4237
|
"sourceKind": "component_definition",
|
|
4163
4238
|
"sourceId": "praxis-page-builder",
|
|
4164
4239
|
"corpusVersion": "1.0.0"
|
|
@@ -4436,9 +4511,9 @@
|
|
|
4436
4511
|
{
|
|
4437
4512
|
"chunkIndex": 28,
|
|
4438
4513
|
"chunkKind": "authoring_manifest",
|
|
4439
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"roundTripRequirements\",\"roundTripRequirements\":[\"WidgetPageDefinition is the canonical persisted runtime page shape for page-builder.\",\"UiCompositionPlan is an intermediate agentic plan and must compile before local preview/apply.\",\"Page side inset is authored through UiCompositionPlan.layout.paddingInline and materialized as page.layout.paddingInline. It accepts a CSS length or var(); 0px removes it and omission inherits the host --pdx-page-padding-inline token. Device-specific overrides live under deviceLayouts.*.layout.paddingInline. The inset belongs to the page, not to widget shell body padding or table cells.\",\"UiCompositionPlan.i18n, context and layout compile into the corresponding WidgetPageDefinition fields so a complete page never depends on host-only enrichment. A key-only PraxisTextValue receives text from the fallbackLocale dictionary when available.\",\"UiCompositionPlan.selectionSyncs is an authoring shorthand that compiles into explicit canonical page.composition.links and is never persisted in WidgetPageDefinition.\",\"UiCompositionPlan.contextScopes compiles constants and state.initial into explicit widget inputs, and state context into explicit page.composition.links; runtime inheritance is never ambient.\",\"UiCompositionPlan transforms devem ser totais: use fallbackValue para invalidacao de selecao e select-case com defaultValue para materializar conteudo ou empty/reset sem bindings clear paralelos.\",\"UiCompositionPlan global-action sources declare only actionId; dynamicPage.composition.dispatch supplies the runtime payload, and target-only payload fields fail closed on sources.\",\"Widget keys and composition link ids are stable identities; array indexes are never canonical identities.\",\"Persisted wiring uses page.composition.links and must not write legacy connections.\",\"The connection editor supports format-value in WidgetPageDefinition links with explicit config.format. This does not extend the UiCompositionPlanTransform shorthand. Invalid date/mask values prevent delivery and retain the previous target; plan identity, empty state and failures together.\",\"Nested component ports use component-port refs with nestedPath ending in a stable widget key.\",\"Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.\",\"Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.\",\"Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.\",\"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.\",\"Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding.\"]}",
|
|
4514
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.5.2\",\"componentId\":\"praxis-page-builder\",\"ownerPackage\":\"@praxisui/page-builder\",\"configSchemaId\":\"WidgetPageDefinition\",\"chunkSection\":\"roundTripRequirements\",\"roundTripRequirements\":[\"WidgetPageDefinition is the canonical persisted runtime page shape for page-builder.\",\"UiCompositionPlan is an intermediate agentic plan and must compile before local preview/apply.\",\"Page side inset is authored through UiCompositionPlan.layout.paddingInline and materialized as page.layout.paddingInline. It accepts a CSS length or var(); 0px removes it and omission inherits the host --pdx-page-padding-inline token. Device-specific overrides live under deviceLayouts.*.layout.paddingInline. The inset belongs to the page, not to widget shell body padding or table cells.\",\"UiCompositionPlan.i18n, context and layout compile into the corresponding WidgetPageDefinition fields so a complete page never depends on host-only enrichment. A key-only PraxisTextValue receives text from the fallbackLocale dictionary when available.\",\"UiCompositionPlan.selectionSyncs is an authoring shorthand that compiles into explicit canonical page.composition.links and is never persisted in WidgetPageDefinition.\",\"UiCompositionPlan.contextScopes compiles constants and state.initial into explicit widget inputs, and state context into explicit page.composition.links; runtime inheritance is never ambient.\",\"UiCompositionPlan transforms devem ser totais: use fallbackValue para invalidacao de selecao e select-case com defaultValue para materializar conteudo ou empty/reset sem bindings clear paralelos.\",\"UiCompositionPlan global-action sources declare only actionId; dynamicPage.composition.dispatch supplies the runtime payload, and target-only payload fields fail closed on sources.\",\"Widget keys and composition link ids are stable identities; array indexes are never canonical identities.\",\"Persisted wiring uses page.composition.links and must not write legacy connections.\",\"The connection editor supports format-value in WidgetPageDefinition links with explicit config.format. This does not extend the UiCompositionPlanTransform shorthand. Invalid date/mask values prevent delivery and retain the previous target; plan identity, empty state and failures together.\",\"Nested component ports use component-port refs with nestedPath ending in a stable widget key.\",\"Child widget definition.inputs edits delegate to the child manifest or ComponentDocMeta.configEditor.\",\"Agentic preview preflights UiCompositionPlan against the target registry and applies the attested WidgetPageDefinition; persistence rebuilds patch.page from that page while the surrounding envelope remains diagnostics/audit data.\",\"Save uses pageIdentity and ETag policy from praxis-config-starter; pageIdentity is not persisted inside WidgetPageDefinition.\",\"Hosts switching tenants, users or scopes isolate Core runtime auto-persistence and agentic authoring session identity through persistenceOwnerKey, resetting unsaved local/preview state cleanly on owner transitions.\",\"Per-widget WidgetInstanceAuthoringPolicy (removable, duplicable, lockShellKind) and ComponentDocMeta.paletteVisibility (global, explicit-only, hidden) remain authoritative across visual edits, palette insertion and agentic applies.\",\"Hosts deriving standalone or closed governed snapshots capture prepared runtime pages non-destructively with capturePreparedPageSnapshot() and inspect profile compatibility via projectWidgetPageToClosedAuthoringResult().\",\"Settings panel apply/save/reset/reopen must preserve page settings and widget shell config without hidden normalization drift.\",\"Widget inputs and inputs.context may reference page.state.values and page.state.derived using {{state.<path> | pipe}} or ${state.<path> | pipe} with CSP-safe declarative pipes (default/coalesce, round, number, percent, currency, uppercase, lowercase); the Page State Binder detects unbound state tokens across widget inputs and *Expr properties for one-click binding.\"]}",
|
|
4440
4515
|
"sourcePointer": "projects/praxis-page-builder/src/lib/ai/praxis-page-builder-authoring-manifest.ts",
|
|
4441
|
-
"contentHash": "
|
|
4516
|
+
"contentHash": "ef811b933e21d188c244dd1b213f1736ea0ad602ae94af921f8eaede5936991d",
|
|
4442
4517
|
"sourceKind": "component_definition",
|
|
4443
4518
|
"sourceId": "praxis-page-builder",
|
|
4444
4519
|
"corpusVersion": "1.0.0"
|