You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@stackflow/plugin-basic-ui@1.20.0
Minor Changes
1f88aab: Read safe area insets from the --native-safe-area-inset-* CSS variables first, falling back to env(safe-area-inset-*) when they are not defined. A host app that injects these variables on the root element before the first render, and updates them whenever the insets change, no longer causes a layout shift in AppScreen, AppBar, Modal, and BottomSheet.
If your host app injects these variables and you set appBar.minSafeAreaInsetTop or its CSS variable to a cached inset to avoid that layout shift, remove the override. AppBar uses the larger of the two, so a stale cached value still wins over the native variable. Without the native variables, env() can still be 0px on the first render, so a cached override still prevents the shift there.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Documentation
Added release notes for version 1.20.0 describing how native safe-area values are handled, including the fallback behavior and guidance for cached AppBar inset overrides.
Updated the project changelog with the same release information.
These notes document the safe-area behavior; no user-facing behavior change is described in this update.
The PR updates @stackflow/plugin-basic-ui to version 1.20.0, adds release notes about safe-area inset handling, and removes the corresponding changeset.
Changes: Basic UI release
Layer / File(s)
Summary
Version and release notes extensions/plugin-basic-ui/package.json, extensions/plugin-basic-ui/CHANGELOG.md, docs/components/ChangelogContent.mdx, .changeset/native-safe-area-insets.md
The package version changes from 1.19.2 to 1.20.0. The changelogs describe native safe-area CSS variables as the preferred inset source, env() as a fallback, and the documented AppBar override guidance. The changeset is removed.
daangn/stackflow#780: Adds the safe-area inset handling described in this PR’s release notes.
Suggested reviewers:orionmiz
Merge Risk: Minimal · up to 8e504
This release bumps @stackflow/plugin-basic-ui to 1.20.0 and documents the native safe-area inset variables, with env() as the fallback. It changes no runtime code in this PR, and no merge-blocking risk was found.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Title check
The title "Version Packages" is the generic default title used by the Changesets release action. It does not name the main change, which is reading safe-area insets from --native-safe-area-inset-* CSS…
Rename the title to name the primary change, for example: "Release @stackflow/plugin-basic-ui 1.20.0 with native safe-area inset support". Keep the Changesets default only if the team accepts generic release titles.
Passed checks: 3 passed
Check name
Status
Explanation
Description check
The description states that the PR is opened by the Changesets release action and proposes @stackflow/plugin-basic-ui@1.20.0. It describes the safe-area change (CSS variables first, env() fallback), t…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description states that the PR is opened by the Changesets release action and proposes @stackflow/plugin-basic-ui@1.20.0. It describes the safe-area change (CSS variables first, env() fallback), the affected components (AppScreen, AppBar, Modal, BottomSheet), and the guidance to remove cached appBar.minSafeAreaInsetTop overrides. This matches the changeset, changelog, and package.json edits.
Full details: Title check
Explanation
The title "Version Packages" is the generic default title used by the Changesets release action. It does not name the main change, which is reading safe-area insets from --native-safe-area-inset-* CSS variables in @stackflow/plugin-basic-ui 1.20.0. It is a release-bookkeeping title, so it is vague and non-descriptive.
Resolution
Rename the title to name the primary change, for example: "Release @stackflow/plugin-basic-ui 1.20.0 with native safe-area inset support". Keep the Changesets default only if the team accepts generic release titles.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 1f88aab and 8e50440.
Files selected for processing: 4
.changeset/native-safe-area-insets.md
docs/components/ChangelogContent.mdx
extensions/plugin-basic-ui/CHANGELOG.md
extensions/plugin-basic-ui/package.json
Files with no reviewable changes: 1
.changeset/native-safe-area-insets.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@stackflow/plugin-basic-ui@1.20.0
Minor Changes
1f88aab: Read safe area insets from the
--native-safe-area-inset-*CSS variables first, falling back toenv(safe-area-inset-*)when they are not defined. A host app that injects these variables on the root element before the first render, and updates them whenever the insets change, no longer causes a layout shift inAppScreen,AppBar,Modal, andBottomSheet.If your host app injects these variables and you set
appBar.minSafeAreaInsetTopor its CSS variable to a cached inset to avoid that layout shift, remove the override.AppBaruses the larger of the two, so a stale cached value still wins over the native variable. Without the native variables,env()can still be0pxon the first render, so a cached override still prevents the shift there.