@praxisui/core 10.0.0-rc.4 → 10.0.0-rc.40

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 CHANGED
@@ -4,12 +4,184 @@ Shared contracts, tokens, services, metadata models, widget runtime primitives,
4
4
 
5
5
  Use this package directly when a host application or library needs Praxis UI types, global actions, metadata registries, schema clients, resource discovery, i18n, theme bridge, dynamic widget contracts, or shared runtime services.
6
6
 
7
+ ## Closed page authoring profile
8
+
9
+ The additive page codec validates and preserves the Config-owned publication
10
+ profile, copies typed widget/link identities and materializes stable route/child
11
+ identities. Structural success is distinct from native validation and server
12
+ admission. See [the codec contract](https://github.com/codexrodrigues/praxis-ui-angular/blob/main/projects/praxis-core/docs/page-publication-codec.md) for APIs,
13
+ limits, examples and evidence scope. This API alone does not activate publication.
14
+
15
+ ## Context-bound runtime navigation
16
+
17
+ `EnterpriseRuntimeContextService.navigation({ parentRef?, cursor?, pageSize? })`
18
+ reads one page from the host's existing `/api/praxis/runtime/navigation` endpoint.
19
+ It waits for a confirmed ready context and sends its `X-Praxis-Context-Version`
20
+ with the existing authenticated host headers. `pageSize` defaults to 50 (1–100);
21
+ `parentRef` is a canonical group UUID and the opaque cursor is bounded to 4096
22
+ characters. Omit `parentRef` for roots; use a returned group ID for its children.
23
+ The server remains responsible for current authorization, cursor admission,
24
+ ordering and the complete authorized projection.
25
+
26
+ The response uses `praxis-enterprise-runtime-navigation.v1` and requires `nodes`,
27
+ `capabilities`, `contextVersion`, `receiptEtag`, `headReceipts`, `nextCursor` and
28
+ `resolvedAt`; empty arrays and a null `nextCursor` are valid. Nodes can carry an
29
+ admitted icon identifier, and `children: null` denotes on-demand loading. Head
30
+ receipts use Core's existing `UiLayoutReleaseHeadReceipt`. The semantic read
31
+ receipt is distinct from each strong write `headEtag`; Core does not introduce
32
+ navigation caching or send `If-None-Match` in this slice.
33
+
34
+ The service captures the local context generation before awaiting readiness and
35
+ rejects stale success/error responses with `EnterpriseRuntimeContextObsoleteError`,
36
+ including A → B → A and a response confirming another context. An unconfirmed
37
+ context fails before navigation dispatch. HTTP errors in the current generation
38
+ remain HTTP errors; callers must handle unavailable or stale continuations rather
39
+ than silently restarting or combining pages. A cursor never grants access.
40
+
41
+ This is the Core wire/transport slice of [Config's frozen P3-B design](https://github.com/codexrodrigues/praxis-config-starter/blob/c161609f14ffcdc39024e66a886a1bd5df471fc8/docs/ai/contracts/page-publication-p0/P3B-DESIGN.md).
42
+ It does not install a host navigation provider. An absent provider remains
43
+ `503 RUNTIME_PROVIDER_UNAVAILABLE`. Shell rendering, published-page routes and
44
+ their visual E2E remain P4; real host HTTP proof remains P3-C. A service HTTP spec
45
+ and a direct-consumer build do not establish those later integrations.
46
+
47
+ ## Contextual table defaults
48
+
49
+ `createDefaultTableConfig()` leaves `pagination.strategy` and `sorting.strategy`
50
+ unset. These shared contracts cannot choose a data source: `@praxisui/table`
51
+ infers server processing for remote data and client processing for local data.
52
+ Explicit `client` or `server` choices remain authored choices. Optional strategy
53
+ properties allow sparse metadata and editor resets to preserve contextual
54
+ resolution; `auto` is not a public serialized value.
55
+
56
+ ## Governed bulk client: basic synchronous slice
57
+
58
+ `BulkOperationClientService` consumes the Metadata published `BulkExecutionContract`
59
+ from an action or CRUD capability. `discoverAction` and `discoverCapability` use the
60
+ existing resource discovery surface; operation paths and filtered schema URLs come
61
+ from that descriptor. `evaluationSchema` loads the backend's filtered request schema
62
+ for a caller to render the operation's form. The client admits only `SYNC`,
63
+ `EXPLICIT` and `PER_ITEM` in this first Angular slice. A descriptor that also
64
+ advertises query selection is usable only with an explicit target request here.
65
+
66
+ The Quickstart candidate migrates its existing uniform update operation to an
67
+ `ASYNC`-only profile; that host adoption is still being validated. BASIC omits
68
+ an `ASYNC`-only operation without a `SYNC` fallback. Angular ASYNC support needs
69
+ its own consumer implementation and acceptance; this note does not establish a
70
+ Render deployment or an ASYNC UI journey.
71
+
72
+ Provide the exact wire ID and opaque resource `expectedVersion` for every selected
73
+ target. In particular, int64/Long IDs remain decimal strings; do not convert them
74
+ through JavaScript numbers. Evaluate first, review the returned READY or BLOCKED
75
+ proposal and its authorized paged results, then confirm a READY proposal using
76
+ only `{ proposalId }` and one `Idempotency-Key`. `BulkSyncStateService.createSession`
77
+ keeps that key fixed across a retry of the same confirmation. A new intention gets
78
+ a new session. The key and proposal live only in that session; it makes no claim
79
+ of recovery across a page reload.
80
+
81
+ For a selected collection row that publishes a `self` link,
82
+ `readTargetVersion(row._links, wireId, identityPath, options)` reads that exact
83
+ item, verifies its returned identity and returns the original strong quoted ETag
84
+ as `expectedVersion`. It rejects absent/weak ETags, foreign origins and mismatched
85
+ IDs. Callers should bound concurrent reads and cancel them when their resource
86
+ context closes. A row value, schema ETag or locally inferred URL is not a resource
87
+ version.
88
+
89
+ ```ts
90
+ const contract = await firstValueFrom(bulkClient.discoverCapability(resourceResponse, operationId));
91
+ const session = bulkState.createSession(contract);
92
+ const proposal = await session.evaluate(explicitSyncRequest);
93
+ const preview = await firstValueFrom(bulkClient.readProposalResults(contract, proposal.proposalId));
94
+ // Present proposal and preview to the person; a BLOCKED proposal cannot be confirmed.
95
+
96
+ // In a separate, explicit confirmation action for a READY proposal:
97
+ await session.confirm(idempotencyKeyForThisIntent);
98
+ // On an uncertain HTTP failure, retain this session and retry with the same key.
99
+ // The host schedules further authorized readbacks for an accepted nonterminal execution.
100
+ const reads = new AbortController(); // This view owns GET lifetime, not confirmation custody.
101
+ if (!session.isTerminal()) await session.refreshExecution(reads.signal);
102
+ if (session.isTerminal()) {
103
+ const results = await session.readResults(200, undefined, reads.signal);
104
+ }
105
+ ```
106
+
107
+ `resourceResponse`, `operationId`, the explicit request and the key come from the
108
+ caller's governed selection and form flow; the client resolves operation URLs from
109
+ the descriptor. The caller controls when to read status again and presents each
110
+ authorized page of results. This example is a service integration sketch, not a
111
+ ready visual workflow or a deployment claim.
112
+
113
+ `refreshExecution(signal?)` and `readResults(size?, after?, signal?)` retain their
114
+ Promise API and optionally accept a standard `AbortSignal`. An already aborted
115
+ signal dispatches no GET; abort unsubscribes the actual HTTP request, releases the
116
+ read slot, and prevents a late Promise continuation from updating the session.
117
+ Abort listeners are removed on success, failure and cancellation. A cancelled GET
118
+ keeps the original proposal, confirmation key and accepted execution; it does not
119
+ mark that execution terminal or prove rollback. A new authorized read may observe
120
+ the same execution. Overlapping execution refreshes remain rejected, while an
121
+ aborted generation cannot release the slot of its successor.
122
+
123
+ The caller owns GET cancellation and its observation budget; the Core session does
124
+ not invent a global read timeout. Use a fresh read lifetime for a fresh consultation
125
+ and abort reads when the owning view closes. Do not race a Promise with a timer:
126
+ connect the signal to the read itself so the HTTP subscription is torn down.
127
+ `evaluate` and `confirm` do not accept this signal: a dispatched POST and its original
128
+ key stay in intent custody across view teardown. GET failure/cancellation must never
129
+ start a new evaluation or confirmation automatically.
130
+
131
+ The backend is the authority on proposal expiry. A client clock hint must not
132
+ block a same-key replay after an uncertain confirmation; the backend may return
133
+ 409 or 410 and the host must explain that state without inventing a new intent.
134
+
135
+ HTTP 202, `RUNNING`, `CANCEL_REQUESTED` and `RECONCILIATION_REQUIRED` are not
136
+ business success. Read the authorized execution until its reconciled terminal
137
+ state and use the paged result reader for each item outcome. Preserve backend
138
+ errors (including 409, 410, 429 and 503) for the host's governed UX mapping;
139
+ do not turn them into a new submission with a new key. The backend continues to
140
+ own authorization, policy, identity, idempotency, limits and the domain transaction.
141
+ The table library has a candidate visual path for a published CRUD
142
+ `bulk-update` capability in `UNIFORM_UPDATE` mode. It uses this client and a
143
+ separate review/confirmation surface; it does not add a second backend contract.
144
+ The service also supports typed command and per-item requests, but that table
145
+ surface does not advertise them. Query selection, ASYNC jobs and ATOMIC mode are
146
+ outside this Angular slice. This is not a claim that the reference host or full
147
+ backend B7 acceptance is complete.
148
+
149
+ ## Published asynchronous execution tracking
150
+
151
+ `PraxisBulkClientService.waitForExecution` is separate from the BASIC client
152
+ above. Use its published execution operation only when that operation actually
153
+ supports the asynchronous profile; an enum member does not enable a backend
154
+ profile. The Observable emits one canonical terminal snapshot, preserving
155
+ `COMPLETED`, `COMPLETED_WITH_ERRORS`, `CANCELLED`, `STOPPED` and
156
+ `RECONCILIATION_REQUIRED`. `CANCEL_REQUESTED` remains pending.
157
+
158
+ Each subscription starts its own strict overall deadline. At most one GET is in
159
+ flight: interval ticks do not abort a useful slow read or queue overlapping reads.
160
+ Pending responses do not renew the deadline, which also bounds a GET that never
161
+ responds. Terminal completion, transport error, deadline and unsubscribe release
162
+ the active read and polling timers; a late response cannot revive an expired
163
+ subscription. Stopping a GET does not reverse server effects or cancel a POST.
164
+
165
+ A read failure means the outcome is unknown. Explicitly resume reads for the same
166
+ execution and preserve the original proposal and confirmation key; do not confirm
167
+ or evaluate again to restore progress. This transport does not provide custody
168
+ across closing/reopening a dialog, reload recovery or operational ASYNC acceptance.
169
+
7
170
  ## Governed color palettes
8
171
 
9
172
  `materializeGovernedPaletteEntries(palette, purposes)` returns `MaterializedGovernedColorToken[]`, pairing each original `entry` with its resolved `color`. It preserves distinct token IDs even when CSS references/colors match, applies purpose filtering, and resolves fallback dependencies against the complete palette. Use this projection for identified swatches; do not zip color arrays to entries or infer identity from color equality. `materializeGovernedPaletteColors` remains the string-only projection of the same resolver.
10
173
 
11
174
  `GovernedColorPaletteService` is the canonical Angular client for color-palette projections published by Praxis Config. Published palettes carry a stable `familyKey`, an explicit `variant` identity and token-level `displayName`/`aliases`; incomplete legacy projections are rejected before caching. The service supports list/read/capabilities/preview, exact `list(familyKey)` queries, tenant/environment-isolated caching, conditional ETag revalidation and deterministic `version`/`etag` pins. Consumers may use names and aliases for presentation and discovery only: `paletteKey` and `tokenId` remain the persisted identities, and local metadata must not become a second source of governance. `GovernedColorTokenSelection` carries the exact palette/version/ETag/token observation beside the existing CSS-string field value; applications persist it only through an explicit domain field or mapping.
12
175
 
176
+ ## Declarative Page DataSources (`page.dataSources`)
177
+
178
+ `WidgetPageDefinition.dataSources` and `WidgetPageDataSourceRuntimeService` allow dynamic pages and dashboards to fetch backend KPIs, group-by aggregations, and time-series metrics without imperative host `HttpClient` orchestration:
179
+
180
+ - **Endpoint resolution (`endpointKey` + `resourcePath`)**: resolves URLs through the `API_URL` token using `endpointKey` (falling back to `'default'`) so multi-service enterprise hosts route each DataSource to its target microservice.
181
+ - **Transform presets & JsonLogic**: supports `{ kind: 'path', path }`, `{ kind: 'group-by-map', mappings, totalField }` (initializing declared keys with `0` for sparse buckets), `{ kind: 'timeseries-last', mappings }`, or arbitrary JsonLogic expressions.
182
+ - **Transient state overlay (`targetStatePath`)**: merges resolved payloads into a non-persisted runtime overlay over `page.state.values[targetStatePath]` and coalesces concurrent emissions via microtask batching before re-evaluating `page.state.derived` and `composition.links`. Live runtime payloads never dirty `authoredPageDefinition` or trigger `autoPersist` writes.
183
+ - **Resilience & visibility-aware polling**: `errorPolicy` (`'fallback' | 'silent' | 'propagate'`) applies `fallbackValue` only before the first successful response so transient network errors during polling (`refreshIntervalMs`) never overwrite live data with static fallbacks. Subsequent poll ticks pause while `document.visibilityState === 'hidden'` and resume immediately on `visibilitychange`.
184
+
13
185
  ## LLM Recommendation Guide
14
186
 
15
187
  - `BUILTIN_WIDGET_SHELL_PRESETS` is the canonical catalog for reusable shell
@@ -209,6 +381,12 @@ Peer dependencies:
209
381
  - `@angular/common`, `@angular/core`, `@angular/forms`, `@angular/material`, `@angular/platform-browser`, `@angular/router` `^21.0.0`
210
382
  - `rxjs` `~7.8.0`
211
383
 
384
+ ## Resource HTTP responses and revision custody
385
+
386
+ `GenericCrudService.getByIdHttpResponse(id, options?)` and `updateHttpResponse(id, entity, options?)` expose the original `HttpResponse<RestApiResponse<T>>`, pairing a representation with its response headers. Existing `getById`, `getByIdResponse`, `update` and `updateResponse` keep their original DTO/envelope return shapes.
387
+
388
+ `CrudOperationOptions.resourceVersion` overrides a write's shared item cache: a strong quoted ETag supplies the exact `If-Match`, `null` intentionally omits that precondition, and `undefined` preserves existing cache → DTO `resourceVersion` fallback (or the configured header when neither is present). Consumers that edit a captured representation must provide its original revision, rather than a revision obtained by another read. `readStrongResourceEtag` validates a single strong tag without normalizing its bytes; weak, unquoted and multi-valued headers cannot stand in for a write revision. An explicitly invalid/weak response header clears the previous cached token. When the header is absent, the existing Core cache can capture DTO `resourceVersion`; this legacy/manual fallback does not authorize an automatic Form snapshot. Explicit overrides never fall back to cached, DTO or configured tokens.
389
+
212
390
  ## Theme And Icons
213
391
 
214
392
  ### Canonical SCSS Theming (Recommended)
@@ -451,6 +629,20 @@ Hosts that maintain an authored source separately from runtime state should cons
451
629
  `pageChange` remains the compatibility stream for every canonical page update, including persistent
452
630
  runtime state; transient composition projections remain excluded from both outputs.
453
631
 
632
+ With `autoPersist` enabled, pass a stable `pageIdentity` to scope the document and
633
+ listen to `persistenceChange: WidgetPagePersistenceState` for `loading`, `saving`,
634
+ `saved`, `resetting`, `idle` or `error`. `savedAt` is emitted only after the
635
+ storage confirms a save. An empty `{ widgets: [] }` document is a valid customized
636
+ page; absence of a stored document falls back to the host's page. The runtime
637
+ serializes save and reset operations for the identity so each storage call uses
638
+ the latest provider ETag. A 409/412 conflict blocks later writes until the host
639
+ explicitly calls `reloadPersistedPage(defaultPage)`, which discards the current
640
+ draft. `resetPersistedPage(defaultPage)` clears storage and applies the factory
641
+ page only after acknowledgement. `persistCurrentPage(page?)` requests an
642
+ explicit save or retries a recoverable save failure; callers can pass the exact
643
+ authored snapshot they want saved. Completion without a storage value reports
644
+ `errorKind: 'unacknowledged'` rather than claiming success.
645
+
454
646
  Pointer drag/resize in the canvas snapshots rendered CSS Grid track sizes and gutters at gesture
455
647
  start. Content-sized rows are not treated as uniformly sized `rowUnit` rows. Horizontal resize
456
648
  snaps to columns; vertical resize in `autoRows: 'content'` authors the item's independent
@@ -692,6 +884,12 @@ contracts are unchanged.
692
884
 
693
885
  `DomainKnowledgeService` and `DomainRuleService` are shared clients for governed semantic decision flows exposed by `praxis-config-starter`. `browseDefinitionCatalog` exposes the bounded, redacted and server-scoped decision catalog; consumers then use `getDefinition` with the exact returned definition id instead of downloading every rule body or joining versions by key. `getDefinitionFacts` projects the same definition's versioned fact vocabulary, including type, localized meaning, provider evidence, sensitivity and redaction policy; Angular must not reconstruct that vocabulary from JSON Logic or host-specific fixtures. `getDefinitionCapabilities` returns the authenticated principal's server-scoped `CREATE_NEW_VERSION` action per definition; consumers must not treat projection metadata such as editor support as authorization. For change workspaces, `getChangeWorkspaceCapabilities` returns the authenticated principal's `availableActions` and stable blockers; consumers must not infer submit, review or promotion authority from lifecycle status. `DomainRuleService` also exposes the safe RuleSet version catalog, active head/status, redacted execution summary, aggregate host alignment, forward activation and rollback protected by the current head ETag. The same client projects immutable rollout-policy versions, their independent anti-ABA head, maker-checker approval, activation and append-only timeline; policy authority and lifecycle validation remain server-owned. It also exposes the two-phase operational rollout through a recoverable human catalog, redacted readiness, create/cancel commands and candidate activation bound to the rollout identity. Consumers must obey the Config-owned `availableActions`; they must not recalculate quorum or head validity. Execution summaries contain only aggregate outcome counts, distinct-host count and observation timestamps for an immutable snapshot. Host-status summaries contain only aligned, snapshot-drifted, runtime-incompatible, unavailable and stale counts derived against the active head and its approved compatibility coordinates; facts and host identities remain outside Angular. Runtime surfaces should treat materializations as derived projections of backend-governed decisions, not as frontend-owned business rules.
694
886
 
887
+ `getDefinitionParameters` reads the same immutable definition's Engine-owned parameter template and typed constraints, together with declared/default/effective values. An absent `defaultValue` or `declaredValue` property differs from explicit JSON null; `origin` identifies the declared/default source. Consumers edit only workspace `parameters.parameterValues`, preserve other parameter metadata, and let Config derive the structural condition. Template identity, read-only flags, constraints, workspace ETags and publication through the governed snapshot lifecycle remain server-owned.
888
+
889
+ An intact historical snapshot with a different runtime compatibility is `RUNTIME_INCOMPATIBLE`, remains available for authorized audit, and is not executable (`executionReady=false`). All non-`READY` versions expose `availableAction=UNAVAILABLE`, including an incompatible version still referenced by the active head. Consumers must preserve that historical identity without offering activation, rollback or rollout; `READY` still requires the current compiler and implementation catalog. Historical readability never authorizes execution.
890
+
891
+ Snapshot publication returns `DomainRuleSnapshotStored` (immutable content/hash), without selecting or refreshing an active head. Before a first activation, a server-published `CREATE_ROLLOUT` version action may authorize starting the staged flow together with the rollout catalog action. `createRollout` and `activateSnapshotCandidate` accept an explicit null head token for verified absence and send only `If-None-Match: *`; existing tokens send only `If-Match`. Candidate activation retains the actual rollout ID. The nullable expected snapshot/head pair records bootstrap absence; clients must never replace it with a content hash, fabricated head or local readiness calculation.
892
+
695
893
  ## Public API Areas
696
894
 
697
895
  Core exports:
@@ -719,7 +917,9 @@ Action-bearing components must use the semantic `--praxis-action-control-*` vari
719
917
 
720
918
  ### Catálogo no quick connect e isolamento do editor de página
721
919
 
722
- `ResourceQuickConnectComponent` apresenta recursos publicados em `/schemas/catalog` usando o seletor `pdx-material-select` registrado em `ComponentMetadataRegistry`. O host deve registrar os descritores oficiais de DynamicFields. O controle é inicializado pelo protocolo `setInputMetadata` e ControlValueAccessor; Core não importa a biblioteca de campos. A conexão avançada por rota continua disponível.
920
+ `ResourceQuickConnectComponent` apresenta recursos publicados em `/schemas/catalog` usando o seletor `pdx-material-select` registrado em `ComponentMetadataRegistry`. O host deve registrar os descritores oficiais de DynamicFields. O controle é inicializado pelo protocolo `setInputMetadata` e `ControlValueAccessor`; Core não importa a biblioteca de campos. A conexão avançada por rota continua disponível (com `<datalist>` de sugestões do catálogo e abertura automática da seção avançada quando o seletor dinâmico não está disponível ou quando o recurso atual é uma rota customizada fora do catálogo).
921
+
922
+ O componente expõe `[resourcePath]`, `(resourcePathChange)`, `[endpointKey]`, `[apiUrlEntry]`, `[intent]`, `ControlValueAccessor` (`ngModel` / `formControl`) e os hooks `reset()` / `acceptAppliedValue()` de `SettingsValueProvider`. A projeção e reconciliação de opções do catálogo são centralizadas em `ResourceDiscoveryService.getDiscoveredResources()`, `loadDiscoveredResources()`, `projectSchemaCatalogResources()` e `resolveCatalogResourceOptionValue()`, deduplicando chamadas concorrentes a `/schemas/catalog` por URL, consumindo `resourcePath`, `resourceReadOnly` e `resourceCapabilities` publicados pelo backend para eliminar falsos-positivos de capacidades (como endpoints herdados `/stats/*` desabilitados) e sinalizando recursos somente leitura no subtítulo do seletor. `ResourceDiscoveryService` reutiliza a instância do injetor ancestral quando um componente standalone cria injetor filho sem override local de `API_URL`.
723
923
 
724
924
  O editor de configurações da página recebe uma cópia da definição autoral. Dados carregados e entradas transitórias dos widgets não devem virar configuração ao alterar o layout.
725
925
 
@@ -899,10 +1099,17 @@ widget appearance/size, or registered content editor session. It uses the existi
899
1099
  `owner` option; no session identity is persisted in the page document.
900
1100
 
901
1101
  The session is cancelled when its panel closes, the page is destroyed, or an external
902
- page/context/identity/authoring input change invalidates it. A page-only acknowledgement
903
- identical to the current authored document keeps the session alive for subsequent
904
- Apply/Save. This is deliberately conservative: a different external document cancels
905
- open editors even when a particular widget happens to be unchanged.
1102
+ page/context/identity/authoring input change invalidates it. An acknowledgement identical
1103
+ to the current authored page keeps the session alive for subsequent Apply/Save, including
1104
+ when the host resends an equivalent `pageIdentity` object. After the first input change,
1105
+ identity equivalence means strict equality of its five fields: `appId`, `tenantId`,
1106
+ `userId`, `routePath` and `locale`; whitespace, delimiters and missing values are not
1107
+ normalized. Core retains a private snapshot of those accepted primitive values, so
1108
+ mutating the host's previous object before resending a clone still changes the scope.
1109
+ Resending only that equivalent identity also preserves data-source overlays,
1110
+ composition and persistence scope. Context, instance and authoring capability changes
1111
+ remain invalidating. A different external document cancels open editors even when a
1112
+ particular widget happens to be unchanged. This does not confirm an HTTP save.
906
1113
 
907
1114
  Confirmed widget removal cancels sessions targeting that key, plus page-wide settings
908
1115
  that could restore the removed widget. Asynchronous editor results cannot open a panel
@@ -1065,9 +1272,70 @@ blur does not become an inner widget's default. Intentional inheritance through
1065
1272
  `context.ui.shell.preset/presets` remains supported. This isolation does not remove
1066
1273
  the host's shared theme tokens.
1067
1274
 
1275
+ ## App shell: host appearance
1276
+
1277
+ `PraxisAppShellComponent` materializes the host theme for both the sidebar and
1278
+ header. The existing theme roles `--sidebar` (falling back to `--card`),
1279
+ `--surface-gradient` (falling back to `--card`), `--command-gradient`,
1280
+ `--sidebar-foreground`, `--sidebar-primary`, `--sidebar-accent`,
1281
+ `--sidebar-accent-foreground`, `--primary-deep`, `--primary-foreground`,
1282
+ `--accent`, `--secondary`, `--overlay`
1283
+ and `--shadow-panel` apply to the native chrome and brand icon. Navigation,
1284
+ loading and mobile behavior do not change when these colors change. Without host
1285
+ theme tokens, the brand uses a dark blue fallback with a white icon; custom host
1286
+ colors should always supply their corresponding foreground roles.
1287
+
1288
+ Semantic badges use tinted surfaces with the host's foreground. Success,
1289
+ warning and info consume `--praxis-success`, `--praxis-warning` and
1290
+ `--praxis-info`; the established `--ready`/`--warning` variables and bounded
1291
+ fallbacks remain available. Error consumes `--destructive`. Hosts should use
1292
+ these existing roles rather than overriding private shell selectors. No new
1293
+ shell input, saved layout field or theme-specific component is required.
1294
+
1068
1295
  <!-- praxis-npm-catalog-links:start -->
1069
1296
  ## Official documentation and examples
1070
1297
 
1071
1298
  - [Canonical technical overview: Overview](https://praxisui.dev/docs/components/praxis-core)
1072
1299
  - [Praxis Angular public catalog](https://praxisui.dev/angular)
1073
1300
  <!-- praxis-npm-catalog-links:end -->
1301
+
1302
+ ### Optional editing highlight
1303
+
1304
+ This feature was added in source after `10.0.0-rc.36`; it is not yet part of a published package release.
1305
+
1306
+ `WidgetShellConfig.appearance.card.interactionHighlight` selects `standard` or
1307
+ `gradient`. Omit it to inherit the shell preset; the final default is `standard`.
1308
+ An explicit `standard` overrides a gradient preset. This is editing chrome: it
1309
+ appears on selection or keyboard focus while customization is enabled, never as a
1310
+ permanent border in the published page. Focusing a child control does not change selection; the highlight itself does not emit selection.
1311
+ The gradient uses the current primary, tertiary and secondary theme tokens. Resize
1312
+ grips follow the same choice. Internal control focus indicators remain intact;
1313
+ blocked canvas operations retain the error indicator and forced colors use a solid
1314
+ system-color outline. The highlight follows the resolved card radius (square for
1315
+ content-only shells).
1316
+
1317
+ ```json
1318
+ {"shell":{"kind":"dashboard-card","appearance":{"card":{"interactionHighlight":"gradient"}}}}
1319
+ ```
1320
+
1321
+ In Widget settings → Appearance, choose Inherit, Standard or Gradient and inspect
1322
+ its preview. Apply updates the local draft; the host controls remote persistence.
1323
+ Saving the settings panel alone is not proof of a server write: the reference Page
1324
+ Builder host requires Save page. Reopening and Reset preserve the distinction between
1325
+ an omitted value and an explicit override. Editing appearance on a widget without a
1326
+ shell preserves content-only presentation (`kind: 'none'`); a card requires an explicit
1327
+ choice. The option does not change child component inputs or enable customization.
1328
+
1329
+ This preference controls editing appearance; it grants no authorization and carries
1330
+ no business selection state. The host integrates persistence, identity and tenant
1331
+ scope through the canonical configuration infrastructure, including its ETag
1332
+ contract; this option requires no separate ETag implementation in the host. Editing only this preference must preserve unrelated
1333
+ shell settings, including `bodyLayout`, `windowActions` and action `pressed` values.
1334
+ Local editor round-trip tests do not prove remote tenant isolation or ETag behavior.
1335
+
1336
+ The existing AI operation `widget.shell.configure` merges partial shell input.
1337
+ Omitting `interactionHighlight` from that input preserves an existing override; it
1338
+ does not perform the visual editor's Inherit action, which removes the field from
1339
+ the complete saved document. Explicit `standard` disables the gradient but remains
1340
+ an override. Resetting an existing override to inherited styling through this AI
1341
+ operation remains unsupported; this option does not imply full editor/AI parity.