chaipro v0.4.3

Released 2026-10-15. Upgrading from v0.4.2.

The theme and design tokens now behave like pages: you save them explicitly, publish them separately, and can roll them back. Videos join images in the images panel, and two permission changes need a look if you have custom roles.

Breaking

  • Database: ai_logs drops its foreign keys on siteId and companyId. Generate and apply a migration after upgrading.

  • One key publishes the theme and design tokens: theme:publish. app:publish_theme and design_tokens:publish are retired. Stored roles that still hold either keep working.

    • Publishing the theme or design tokens needs theme:publish; pages:publish alone is no longer enough.
    • Saving the theme needs theme:edit, and saving design tokens needs design_tokens:edit.
    • The built-in designer role gains theme:edit, theme:publish and the design token keys.
    • A publish request with no ids asks for pages:publish.

    See Roles and Permissions.

  • features.ai is the single switch for builder AI. With it off, the SEO generate buttons, the alt text button and the media manager's "Generate with AI" tab are hidden, and every model-calling action returns 403 AI_DISABLED. Read-only actions and MCP tools are unaffected.

  • Trashed pages cannot be published. A publish that includes one fails, and a restored page comes back unpublished.

Added

  • Theme save and discard. Theme edits stay unsaved until Save, Discard rolls them back, and the theme is published from the panel header. See Theming.
  • Theme and design tokens publish separately.
  • Theme and design token history with restore, one history per tab, when the revisions plugin is registered. See Revisions.
  • The panel is renamed Theme and Design Tokens. The Global styles tab lists tokens with an edit action on each row.
  • The shared styles dialog shows which blocks a token affects, with counted tabs and a filter, and flags tokens used on the current page.
  • Videos in the images panel. Videos are listed, uploaded and dragged alongside images, and a poster frame is captured on upload. See Media and Images.
  • Rich text links to site pages, with an "Open in new tab" option. The custom link tab is now "URL / Email / Phone".
  • The canvas scrolls nested containers to reveal the selected block.
  • Builder editing and AI editing of the same page are mutually exclusive.
  • i18nDefaultProps: a blank translation renders the prop unset instead of falling back. See Custom Blocks.

Fixed

  • A restore refuses to overwrite a save that landed after it read the page.
  • Restoring a trashed page removes stale live rows.
  • Slug changes check the dynamic state they ask for, and a dynamic page can use its parent folder's slug.
  • Switching language no longer wipes a translated prop or the selected dynamic page.
  • Bindings resolve in authored block attributes, and visibility bindings allow spaces inside the braces.
  • pageType: links resolve inside rich text.
  • Design token usage matches the exact class, not a substring.
  • Style CSS survives an AI round trip, and a fallback language's props from an AI translation are never applied.

Upgrade notes

  1. Upgrade the package with pnpm up chaipro@^0.4.3, then generate and apply the migration for the ai_logs change.
  2. Custom roles: grant theme:publish to anyone who should publish the theme or design tokens.
  3. Turned AI off with something other than features.ai? Use features: { ai: false }.

© ChaiBuilder. All rights reserved.

ChaiBuilderMade withChaiBuilder