Package-level declarations
Types
Property delegate (ReadOnlyProperty<Any?, Sequence<CollectedPreview>>) used as the backing field type for properties declared with val x by collectModulePreviews() / collectAllModulePreviews(). Reading the property yields the underlying Sequence<CollectedPreview> directly, so consumers iterate the sequence with the standard kotlin.sequences operators (firstOrNull { ... }, take(N).toList(), toList(), …) without going through any wrapper accessor.
Represents an event that occurred during preview interaction
Have me.tbsten.compose.preview.lab.gallery.previewlist.PreviewTreeNode.Preview information collected by gradle plugin. It can be used to display the Preview catalog by passing it to PreviewLabGallery.
Properties
CompositionLocal that indicates whether the current composition is inside a PreviewLabGallery card body. When true, PreviewLab will skip rendering its full UI and only render the preview content directly. This is used to show scaled-down preview thumbnails in the gallery view.
CompositionLocal that provides the current PreviewLabPreview being displayed. This is set by PreviewLabGallery when a preview is selected.
Functions
Provides a delegate that collects @Preview functions from this module and every dependency module that has the Compose Preview Lab Gradle plugin applied.
Scope-aware variant of collectAllModulePreviews that limits the aggregated result to previews whose @ComposePreviewLabOption(collectScopes = [...]) array contains scope.
Provides a delegate that collects @Preview functions from this module only.
Scope-aware variant of collectModulePreviews that limits the result to previews whose @ComposePreviewLabOption(collectScopes = [...]) array contains scope.
Removes duplicates from the aggregated preview list by CollectedPreview.id, warning via stdout when a duplicate is observed.
Sequence-shaped variant of distinctPreviewsById used by the compiler plugin's collectAllModulePreviews() IR rewrite. Walks previews once, yields each first occurrence by CollectedPreview.id in encounter order, and on the final next() == null step emits one warnDuplicatePreview line per id that collided two-or-more times.
Returns a Sequence that yields one CollectedPreview per element of factories, invoking each factory lambda the first time the corresponding element is requested.
Create a CollectedPreview instance.
Emits a warning about duplicate preview ids to the platform's most discoverable warning surface. Used internally by distinctPreviewsById to surface cross-artifact same-FQN preview collisions; not part of the consumer-facing API.