What's New
Release notes and changelog for all packages.0.7.6
Fixes
- RichTextEditor's
toolbarnow treats''as empty, as it already treatednull,undefinedand booleans, sotoolbar=""no longer adds the toolbar's top border to the editing surface. RichTextEditorToolbar'sendContenttreats'',falseandtrueas empty, so it no longer adds a trailing separator.0still counts as content and shows "0". (#9265) - Published packages no longer include repository test and benchmark files, reducing install size without changing exports. (#9153)
Other Changes
- RichTextEditor:
statusVariantnames'tooltip'in its own type, so it keeps acceptingstatusVariant="tooltip"after FieldStatus drops its deprecatedtooltipvariant in the next minor release. No behavior change. (#9196)
Contributors
Thanks to everyone who contributed to this release:
0.7.5
New Features
- Status colors are readable everywhere they appear, and Info is a status of its own. Each status (info, success, warning, error) now has a strong fill (
--color-<status>) with content on it (--color-on-<status>, at least 4.5:1), a pale fill (--color-<status>-muted) with its content (--color-on-<status>-muted), and readable text for the page and cards (--color-text-<status>). Status icons (--color-icon-<status>) and borders (--color-border-<status>) default to the readable text color. The Info roles (--color-info,--color-on-info,--color-info-muted, …) are new and no longer borrow your accent color.--color-success,--color-warning, and--color-errorandbg-<status>keep their meaning as the strong fills. In Tailwind,bg-info,bg-info-muted,text-on-<status>,text-on-<status>-muted, andtext-status-<status>are new;text-,decoration-,placeholder-, andcaret-<status>now use the readable text shade, andborder-,divide-,outline-, andring-<status>use the border shade, whilebg-,accent-,fill-,stroke-<status>, shadows, and gradients keep the strong fill. For example, Core's lighttext-warningis now[#753](https://github.com/meta/astryx/pull/753)F07instead of#E9AF08. To keep the fill color on text, writetext-[var(--color-warning)].What changes on screen:- Core's dark Error content (
--color-on-error) is now[#0](https://github.com/meta/astryx/pull/0)A1317instead of white, so text on dark-mode error fills reaches 4.5:1. Core's Info Badge uses[#0064](https://github.com/meta/astryx/pull/0064)E0instead of the accent ([#2694](https://github.com/meta/astryx/pull/2694)FEin dark mode). - Status icons (Icon
color="info|success|warning|error"), Stepper status glyphs, and Chat tool-call status icons use the readable shades. Core's light success icon is now[#09441](https://github.com/meta/astryx/pull/09441)Finstead of[#0](https://github.com/meta/astryx/pull/0)D8626. - Input and FileInput status borders use the border shades. Core's light warning border is now
[#753](https://github.com/meta/astryx/pull/753)F07instead of#E9AF08, and Butter's light success and warning input borders reach 3:1. - Banner draws its title, description, icon, and controls in the on-muted colors, and fills Info with
--color-info-muted. - Status fills keep a visible edge in forced-colors mode.
- Content on Chocolate and Matcha success and error fills, and on Stone success, warning, and error fills, now reaches 4.5:1.
- Every first-party theme sets a blue Info. Chocolate and Matcha Info Badges move from the accent to that blue; Butter keeps its own Info Badge colors.
- Neutral's
--color-success,--color-warning, and--color-errorare now the fills its Badges already showed, and its--color-infois[#0074](https://github.com/meta/astryx/pull/0074)E2([#6](https://github.com/meta/astryx/pull/6)D9CFEin dark mode). Its Badges, StatusDots, progress fills, and Stepper badges look the same; its accent ProgressBar, StatusDot, and Stepper now use Neutral's accent instead of blue. - Neutral no longer defines its undocumented local status tokens. Use the standard roles instead:
--astryx-theme-neutral-color-status-fill-success,-status-fill-warning, and-status-fill-error→--color-success,--color-warning,--color-error;-status-muted-accent→--color-info-muted;-on-tint-neutral→--color-neutral; the-on-tint-overlay-*and-destructive-overlay-*tokens →--color-overlay-hoverand--color-overlay-pressed.--astryx-theme-neutral-color-status-fill-accentkeeps its value but is deprecated.
Custom themes get the content and text roles they don't set: they are derived from the theme's status fills. To keep a component's previous color, set the matching role, for example--color-icon-successto your old--color-success. - Core's dark Error content (
RichTextEditorandRichTextViewtakecodeLanguages, the same listMarkdowntakes, so code looks the same while reading and editing.
Fixes
- Type declarations resolve in projects that use
moduleResolution: NodeNext. - In
RichTextEditorandRichTextView, a code block with no language leaves room for its Copy button, so long lines wrap before it. The block is as tall as inMarkdown, so switching between reading and editing no longer shifts the page.
Documentation
- Package links now point to the project's GitHub home,
meta/astryx.
Contributors
Thanks to everyone who contributed to this release:
0.7.4
No changes in this release.
0.7.3
No changes in this release.
0.7.2
New Features
- Tables draw a line on every cell edge, not only between rows, on both
Markdownand the RichText surfaces, and the grid closes at the table's rim. A reader following one row across never needed vertical lines, but someone editing a table has to aim at a cell and judge where a selection stops, and the empty 3×3 a toolbar insert produces was three horizontal rules with no sign it had three columns. The line is the same--color-borderalready used between rows, the rim merges with it into one rule rather than doubling at the edge, and both surfaces move together — the read and edit renderings match block for block, more closely than before.
Documentation
- The
RichTextEditordocs now listisOptional,isRequired,labelTooltipandnamespace, four props the editor already accepted, soastryx component RichTextEditorand the docsite props table show the Required/Optional indicator,aria-required, the label tooltip and the Lexical namespace.
Contributors
Thanks to everyone who contributed to this release: