@praxisui/core 10.0.0-rc.58 → 10.0.0-rc.59
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 +26 -1
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-schema.mjs +970 -63
- package/fesm2022/praxisui-core.mjs +4437 -968
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +294 -0
- package/types/praxisui-core.d.ts +4484 -3882
package/README.md
CHANGED
|
@@ -621,6 +621,17 @@ identity (`USER` when `X-User-ID` is present), and never sends a tenant ETag as
|
|
|
621
621
|
`If-Match` for that user-owned write. Editing or deleting the tenant document
|
|
622
622
|
requires an explicitly tenant-scoped provider.
|
|
623
623
|
|
|
624
|
+
`ApiConfigStorageOptions.canRead?: () => boolean` gates read requests (`loadConfig` and `loadConfigDocument`) when configured. Returning `false` skips remote GET dispatches and emits `null`, allowing hosts with deferred or session-gated authentication to avoid premature pre-session reads without replacing backend authorization.
|
|
625
|
+
|
|
626
|
+
`ApiConfigStorageOptions.canWrite?: () => boolean` and `ApiConfigStorageOptions.canWriteScope?: (scope: ConfigStorageScope) => boolean` gate remote config writes/clears (`saveConfig`, `clearConfig`, `deletePersonalOverrideAndReloadTenantBaseline`) and runtime scope switches (`setWriteScope`, `toggleWriteScope`). Both predicates are evaluated lazily inside `defer()`, return `undefined` without dispatching HTTP PUT/DELETE when denied (preventing `EmptyError` for promise callers), and expose `storage.canWriteConfig(key, options)` so runtimes like `DynamicWidgetPageComponent` avoid false `'saved'` states when writes are disabled. `providePraxisGlobalConfigBootstrap` also forwards `canRead`, `canWrite`, `canWriteScope`, `writeScope`, and `resolveWriteScope` into `ApiConfigStorageOptions`.
|
|
627
|
+
|
|
628
|
+
### Workspace Customization Governance (`PraxisCustomizationModeService`)
|
|
629
|
+
|
|
630
|
+
`PraxisCustomizationModeService` coordinates layout customization across `@praxisui/core`, `@praxisui/page-builder`, `@praxisui/crud`, and `PraxisAppShellComponent`:
|
|
631
|
+
|
|
632
|
+
- `disableCustomization(reason?: string | null): () => void`: acquires a token-scoped lock (`isAvailable()` becomes `false`, `unavailableReason()` exposes the active lock reason, `isDisabled()` becomes `true`, and active customization exits automatically). Calling the returned release callback restores availability once all locks are released.
|
|
633
|
+
- `PraxisAppShellComponent` reflects `unavailableReason()` on the customization toggle's accessible metadata and blocks toggles while `isDisabled()` is `true`.
|
|
634
|
+
|
|
624
635
|
## Dynamic Page Runtime
|
|
625
636
|
|
|
626
637
|
`DynamicWidgetPageComponent` renders `WidgetPageDefinition` documents.
|
|
@@ -653,6 +664,20 @@ export class PageComponent {
|
|
|
653
664
|
|
|
654
665
|
Use `page.composition.links` for persisted wiring. `page.connections` is legacy/residual and should not be used for new pages or examples. Nested component ports should use `component-port` endpoints with `ref.nestedPath`.
|
|
655
666
|
|
|
667
|
+
### Transient runtime overlays and persistence hooks
|
|
668
|
+
|
|
669
|
+
`DynamicWidgetPageComponent.patchWidgetInputs(widgetKey, inputsPatch, options?)` and `updateWidgetShell(widgetKey, shellPatch, options?)` treat runtime updates as non-persistable overlays by default (`options?.persistable === false` when omitted). Authored widget configuration and shell titles/actions remain intact in persisted snapshots and child editors unless `{ persistable: true }` is explicitly passed, and transient keys are restored before persistence emission.
|
|
670
|
+
|
|
671
|
+
Hosts using Core-managed persistence can supply opt-in hooks on `<praxis-dynamic-page>`:
|
|
672
|
+
- `reconcilePersistedPage?: (saved, current) => WidgetPageDefinition`: merges a loaded persisted document against the current canonical page before hydration.
|
|
673
|
+
- `preparePageForPersistence?: (page) => WidgetPageDefinition`: strips volatile runtime projections or normalizes layout geometry before `ASYNC_CONFIG_STORAGE.saveConfig(...)`.
|
|
674
|
+
|
|
675
|
+
The helper `cloneInputsPreservingLiveReferences(inputs)` is exported from `@praxisui/core` for deep-cloning plain input structures while preserving functions, Angular signals, RxJS observables, non-plain class instances, and circular references.
|
|
676
|
+
|
|
677
|
+
### Header action pinning and keyboard tab navigation
|
|
678
|
+
|
|
679
|
+
`WidgetShellAction.pinned?: boolean` keeps critical shell actions directly visible in the card header before overflow collapsing is evaluated, even when compact header width (`< 480px`) limits unpinned header slots. Shell tabs follow WAI-ARIA roving `tabindex` (`0` on the active tab, `-1` on inactive tabs) with reactive `ArrowRight`, `ArrowLeft`, `Home`, and `End` keyboard navigation in `WidgetShellComponent`.
|
|
680
|
+
|
|
656
681
|
When a host enables dynamic-page customization, it can pass a transient
|
|
657
682
|
`WidgetPageAuthoringCapabilities` grant through `authoringCapabilities` to expose only the canvas,
|
|
658
683
|
page settings, widget shell, component-input, removal and child-customization operations that the
|
|
@@ -923,7 +948,7 @@ the same value at runtime. Ordinary runtime change outputs keep using `pageChang
|
|
|
923
948
|
composition targets still pass through canonical restoration before persistence.
|
|
924
949
|
This lets Page Builder save the edited config instead of its previous draft.
|
|
925
950
|
|
|
926
|
-
Dynamic widgets may implement `WidgetShellActionContributor` to publish transient, stateful content actions to their owning `WidgetShell`. The loader observes that signal and the shell merges contributions with authored actions by stable id without writing them into the page document. The widget remains the owner of command handling, localized labels, availability and controlled-region state; the shell owns responsive toolbar materialization and ARIA projection.
|
|
951
|
+
Dynamic widgets may implement `WidgetShellActionContributor` to publish transient, stateful content actions to their owning `WidgetShell`. The loader observes that signal and synchronizes header visibility (`setShellActionHostHeaderVisible`), and the shell merges contributions with authored actions by stable id without writing them into the page document. The primary header row (`.pdx-shell-header-main`) remains single-line across desktop and tablet card widths (`>= 448px`) using real `44px` icon-button touch-target budgets and standalone/`pinned` icon compaction before overflow, while preserving readable minimum identity (`min(14rem, 50%)`) and `44px` touch targets on narrow shells (`< 448px`) and keeping optional `.pdx-shell-tabs` on a dedicated secondary row below. Standalone, `pinned` (`compactVariant: 'icon'`), and segmented actions (`groupVariant: 'segmented'`, optional `groupLabel`, `compactVariant: 'icon'`, `selectionRole: 'radio'`) share the same width cascade along `icon + label -> icon-only + tooltip -> overflow menu (⋯)`, where grouped options render as labeled radio sections with checkmarks. The widget remains the owner of command handling, localized labels, availability and controlled-region state; the shell owns responsive toolbar materialization and ARIA projection.
|
|
927
952
|
|
|
928
953
|
## Global configuration snapshots
|
|
929
954
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-23T10:34:57.283Z",
|
|
4
4
|
"packageName": "@praxisui/core",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.59",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 4,
|