What's New

Release notes and changelog for all packages.

0.7.7

Fixes
  • RichTextEditorToolbar: Insert link with nothing selected did not insert a link at the caret. In an empty paragraph nothing was inserted, and with the caret inside text the whole text around it was linked, while the dialog closed as if it had worked. Now, with the caret outside a link, Insert link inserts the entered URL as link text at the caret; with a non-empty selection it links the selected text, and with the caret inside a link it updates that link, as before.
Performance
  • Typing in a RichTextEditor code block no longer re-tokenizes the whole block. In TypeScript, JavaScript, Python, and shell code, an edit inside one line re-tokenizes that line, plus at most the line above it, and replaces only the color ranges inside the text node it edited, so a keystroke in a 2,000-line block tokenizes as little code as one in a short block. Edits that open or close a string or comment across lines, and other languages, still re-tokenize the whole block. Colors are unchanged, except that a block whose text nodes are replaced by others with the same text is now recolored instead of left uncolored.
Contributors
Thanks to everyone who contributed to this release:

0.7.6

Fixes
  • RichTextEditor's toolbar now treats '' as empty, as it already treated null, undefined and booleans, so toolbar="" no longer adds the toolbar's top border to the editing surface. RichTextEditorToolbar's endContent treats '', false and true as empty, so it no longer adds a trailing separator. 0 still 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: statusVariant names 'tooltip' in its own type, so it keeps accepting statusVariant="tooltip" after FieldStatus drops its deprecated tooltip variant 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-error and bg-<status> keep their meaning as the strong fills. In Tailwind, bg-info, bg-info-muted, text-on-<status>, text-on-<status>-muted, and text-status-<status> are new; text-, decoration-, placeholder-, and caret-<status> now use the readable text shade, and border-, divide-, outline-, and ring-<status> use the border shade, while bg-, accent-, fill-, stroke-<status>, shadows, and gradients keep the strong fill. For example, Core's light text-warning is now [#753](https://github.com/meta/astryx/pull/753)F07 instead of #E9AF08. To keep the fill color on text, write text-[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)A1317 instead 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)E0 instead of the accent ([#2694](https://github.com/meta/astryx/pull/2694)FE in 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)F instead 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)F07 instead 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-error are now the fills its Badges already showed, and its --color-info is [#0074](https://github.com/meta/astryx/pull/0074)E2 ([#6](https://github.com/meta/astryx/pull/6)D9CFE in 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-hover and --color-overlay-pressed. --astryx-theme-neutral-color-status-fill-accent keeps 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-success to your old --color-success.
  • RichTextEditor and RichTextView take codeLanguages, the same list Markdown takes, so code looks the same while reading and editing.
Fixes
  • Type declarations resolve in projects that use moduleResolution: NodeNext.
  • In RichTextEditor and RichTextView, a code block with no language leaves room for its Copy button, so long lines wrap before it. The block is as tall as in Markdown, 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.