@praxisui/expansion 10.0.0-rc.8 → 10.0.0-rc.81

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
@@ -96,7 +96,7 @@ export class ExpansionHostComponent {
96
96
  - `config: ExpansionMetadata | null`: canonical accordion and panel configuration.
97
97
  - `expansionId: string`: required stable id used for local configuration persistence.
98
98
  - `componentInstanceId?: string`: disambiguates repeated instances on the same route.
99
- - `configPersistenceStrategy: 'storage-first' | 'input-first'`: defaults to `storage-first`; with `input-first` and a supplied `config`, the parent composition owns configuration and Expansion does not read or write component storage.
99
+ - `configPersistenceStrategy: 'local-first' | 'storage-first' | 'input-first' | 'volatile'`: defaults to `storage-first` (normalized as `local-first` via `@praxisui/core`); with `input-first` and a supplied `config`, the parent composition owns configuration without reading or writing storage; `volatile` disables all storage reads and writes unconditionally.
100
100
  - `context: Record<string, unknown>`: context passed to dynamic child widgets.
101
101
  - `strictValidation: boolean`: keeps runtime validation strict by default.
102
102
  - `enableCustomization: boolean`: opens runtime authoring affordances.
@@ -136,6 +136,8 @@ const config: ExpansionMetadata = {
136
136
 
137
137
  Panel `content` and `widgets` are rendered lazily with `matExpansionPanelContent`, so child runtime is created when the panel opens. Use stable `panels[].id` values; authoring, persistence and nested paths rely on them.
138
138
 
139
+ Each panel can also declare an optional `quickView?: ResourceQuickViewBinding` (and `quickViewActionLabel?: string`) on `PanelMetadata`. When a valid target ID is resolved from `[context]` or the panel's form values, `PraxisExpansion` renders an explicit header action button (`data-testid="expansion-panel-quick-view-action"`, `triggerMode: 'explicit-button'`) with click/keyboard propagation stopped so inspecting the referenced entity never toggles the expansion panel.
140
+
139
141
  ## Persistence And Authoring
140
142
 
141
143
  When `expansionId` is provided, configuration is stored under a key derived from route, component type, `expansionId` and optional `componentInstanceId`. `enableCustomization` opens Settings Panel editing and the governed semantic assistant flow.
@@ -187,7 +189,7 @@ export const appConfig = {
187
189
  };
188
190
  ```
189
191
 
190
- Without that provider, resource-backed table details remain fail-closed. Inline, same-origin `resourcePath`, and hypermedia sources retain their respective table contracts.
192
+ Without that provider, resource-backed table details remain fail-closed. Inline, same-origin `resourcePath`, and hypermedia sources retain their respective table contracts. `PraxisExpansion` honors `configPersistenceStrategy` (`'local-first' | 'input-first' | 'volatile'`), avoids premature persistence inside `ngOnChanges`, passes `configStorageKey` with async `onSave`/`onReset` Settings Panel handlers, and restores the host baseline config on reset.
191
193
 
192
194
  ## Public API Snapshot
193
195