Repository navigation
Release v4.79.1
A slice preview draws only the slice's own UI, once, in a neutral container: no application shell around it, and the command presented once instead of as a screen plus a dialog on top (Cratis/StudioIssues#1068).
Fixed
- A preview of a slice (
ScenePreviewHostwith a{ slice }target) no longer draws the application shell - root template, navigation regions, feature page - around the slice: its screens are composed on the chrome-less full-page layout. Module, feature and application previews keep their shell. (#252) - The command of a State Change slice is presented once: the screen the slice owns when that screen presents the command (a screen built from a dialog template is drawn as an opened dialog card on a neutral backdrop), else the task dialog - never both, so the form is no longer drawn twice with a dialog on top. (#252)
- An action that executes the command of a form the same screen hosts is that form's submit: one submit button, carrying the action's label. (#252)
data-scene-preview-surface (page, dialog, task-dialog) on .scene-preview-host says how the slice is presented. New exports: SliceSurface, onNeutralSurface, presentsCommand, isDialogScreen, withoutFormSubmits, defaultForm.