Repository navigation
build(deps): upgrade ranui to 0.5.2 to stop the language menu flash - #294
Merged
Merged
Conversation
ranui 0.5.2 (chaxus/ran#444) ships :not(:defined) rules in ranui.css that keep light-DOM content such as r-popover's r-content off the page until the element is defined. public/ran-tokens.css is that sheet, re-synced the way bin/build.sh does, so the language menu no longer spills its seven links before the deferred popover bundle runs. The release-age exclusion follows ranview to 0.2.2, and the dompurify override moves to 3.4.17, the version ranui 0.5.2 depends on (the pin forced 3.4.16, which has a critical and a high advisory). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying document with
|
| Latest commit: |
840a6bc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e1f9c4ae.document-7hm.pages.dev |
| Branch Preview URL: | https://chore-ranui-0-5-2.document-7hm.pages.dev |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Upgrades ranui and ranuts to 0.5.2 and ranview to 0.2.2. This fixes the language menu flash: before
<r-popover>is defined, its seven language links were laid out in flow and stretched the header from 38 px to about 300 px.ranui.cssnow hides light-DOM content until the element is defined, using:not(:defined)rules for r-popover'sr-content, r-select options, r-tabs, r-modal, r-reasoning, r-route, r-markdown, r-math, r-mermaid and r-scratch.public/ran-tokens.cssand links it in<head>on every page, so the upgrade alone fixes the menu. No site CSS is added.hiddento<r-content>would only help if the sheet failed to load, which doesn't happen here.@alixex/ranview@0.2.2. A--frozen-lockfileinstall passes against the final policy.public/ran-tokens.cssis re-synced exactly asbin/build.shdoes; it is byte-identical to header +ranui/dist/ranui.css. The IIFE bundles didn't change.Commits
build(deps): versions, lockfile, workspace policy, synced token sheettest(e2e):lang-menu-before-upgrade.spec.tsdocs(deps): exploration record and CHANGELOG.Tests and reverse validation
lang-menu-before-upgrade.spec.tscovers/,/zh-CN/,/helpand/history. It blocks/ranui-iife/*.iife.jsand/assets/*.jssor-popoveris never defined, then asserts the list has no height and the menu stays under 48 px. Withpublic/ran-tokens.cssswapped back to the 0.5.1 copy, all four cases fail, with the menu at 245–266 px.Run locally:
lint:tsandformat:check: passed.The full suites and the Pages/Docker configs are left to CI. An independent subagent review found no blocking issues, and its minor notes are addressed.
🤖 Generated with Claude Code