Shared Element Context
data class SharedElementContext(val scope: SharedTransitionScope, val animatedVisibilityScope: AnimatedVisibilityScope)
Bundles the pieces Navigation 3's shared-element transition between PostCard and PostDetailScreen needs: the enclosing SharedTransitionScope and the per-entry AnimatedVisibilityScope that scopes the transition's enter/exit animation. Nullable and optional everywhere it's consumed, so @Previews and designsheet call sites - which have neither a SharedTransitionLayout nor an AnimatedVisibilityScope available - keep compiling unchanged by simply omitting it.