252 Commits

Author SHA1 Message Date
Hayden Bleasel f1a7c74f73 Env Vars component 2026-01-16 19:50:59 -08:00
Hayden Bleasel d444778f9a Create StackTrace component 2026-01-16 17:29:17 -08:00
Hayden Bleasel a0cb0c0716 Misc fixes 2026-01-16 17:07:23 -08:00
Hayden Bleasel a0e72c43d6 Update meta.json 2026-01-16 17:06:16 -08:00
Hayden Bleasel ea149172b6 Update Geistdocs 2026-01-16 17:05:48 -08:00
Hayden Bleasel b1490b8a18 Fix lint / formatting issues 2026-01-16 16:33:33 -08:00
Hayden Bleasel 1ac4397f03 Create Agent component 2026-01-16 16:05:37 -08:00
Hayden Bleasel e1d89ad13a Resolves #161 2026-01-16 15:43:44 -08:00
Hayden Bleasel 505476ea99 Resolves #167 2026-01-16 15:21:07 -08:00
Hayden Bleasel f928ae74cc Create new Code category 2026-01-16 14:47:22 -08:00
Hayden Bleasel d1ab925a61 Resolves #293 2026-01-16 14:14:01 -08:00
Hayden Bleasel 8a4a6feaff Resolves #321 2026-01-16 13:24:24 -08:00
Hayden Bleasel 797f6baf7a Update registry refs 2026-01-16 12:55:55 -08:00
Hayden Bleasel c3639d786e Fix attachment implementations 2026-01-16 12:53:52 -08:00
Hayden Bleasel cc83e40b3c Update home-links.tsx 2026-01-16 12:53:44 -08:00
Hayden Bleasel 7b190b55f7 Downgrade Fumadocs 2026-01-16 12:43:23 -08:00
Hayden Bleasel 8d541fc28b Delete next-env.d.ts 2026-01-16 12:42:04 -08:00
Hayden Bleasel bdb2964d00 Bump deps 2026-01-16 12:40:58 -08:00
Hayden Bleasel 2dd23cfc87 Attachments (#318)
* Scaffold attachments

* Create beige-cameras-tap.md
2026-01-15 10:45:32 -08:00
Hayden Bleasel ba34adc2ee Merge registry app into docs (#216)
* Merge registry app into docs

* Update packages/cli/index.js

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2026-01-14 13:23:01 -08:00
Francisco Moretti 04242be0e4 Sandbox component (#231)
* Implement Sandbox component with collapsible sections and tabs; export getStatusBadge function for external use

* sandbox

* feat: add new Sandbox component

* Update packages/elements/src/sandbox.tsx

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* Refactor Sandbox component: remove SandboxCopyButton and integrate copy functionality into SandboxCode and SandboxOutput components. Update related tests and documentation accordingly.

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2026-01-14 13:13:31 -08:00
dependabot[bot] 709b74fe41 Bump next from 16.0.10 to 16.1.1 (#306)
Bumps [next](https://github.com/vercel/next.js) from 16.0.10 to 16.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v16.0.10...v16.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 13:08:51 -08:00
dependabot[bot] c59f08c4a8 Bump mermaid from 11.12.1 to 11.12.2 (#303)
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.12.1 to 11.12.2.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.12.1...mermaid@11.12.2)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-version: 11.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 13:07:45 -08:00
dependabot[bot] 88eb8c086f Bump zod from 4.1.12 to 4.3.4 (#307)
Bumps [zod](https://github.com/colinhacks/zod) from 4.1.12 to 4.3.4.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.1.12...v4.3.4)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.3.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-14 13:06:50 -08:00
Hayden Bleasel ef0a8a72ee Voice (#317)
* New voice folder

* Draft Audio Player component

* Add support for AI SDK speech result

* Draft Mic Selector component

* Extract PromptInputSpeechButton to SpeechInput

* Update speech-input.mdx

* Add new unit tests

* Merge groups

* Fix tests

* Improve test coverage

* Run Ultracite

* Update mic-selector.tsx

* Draft Voice Selector

* Scaffold Persona

* Update persona.tsx

* Redesign speech input as record button

* Scaffold Transcription component

* Fix unit tests

* Propagate changes from #233

* Resolves #242

* Update mic-selector.tsx

* Update preview.tsx

* Attempt to overwrite color

* Fix persona bugs

* Remove Pal

* Update persona.test.tsx

* Resolves #210

* Fix non-model instances

* Rename orb to opal, change default

* Performance improvements

* Update pnpm-lock.yaml

* Fix navbar tracking

* Minor fixes

* Update registry mcp server

* Add changesets

* Update persona.test.tsx
2026-01-14 07:26:36 -08:00
Haitian f0625b5ef3 fix(mcp): use zod/v3 for compatibility with mcp-handler (#290)
The mcp-handler package internally depends on @modelcontextprotocol/sdk@1.22.0,
which uses zod-to-json-schema that is incompatible with Zod 4. This caused
the `component` parameter in `get_ai_elements_component` tool to not be
exposed in the inputSchema (empty properties object).

Changes:
- Import zod from "zod/v3" instead of "zod" for backward compatibility
- Replace z.enum() with z.string().describe() for better schema generation
- Improve error message to list available components when not found

Co-authored-by: liuhaitian <liuhaitian@bytedance.com>
2025-12-18 17:33:54 -08:00
vercel[bot] fbc9844dfd Fix React Server Components CVE vulnerabilities (#288)
Updated dependencies to fix Next.js and React CVE vulnerabilities.

The fix-react2shell-next tool automatically updated the following packages to their secure versions:
- next
- react-server-dom-webpack
- react-server-dom-parcel  
- react-server-dom-turbopack

All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-11 20:39:32 -08:00
vercel[bot] 28a1233654 Fix React Server Components CVE vulnerabilities (#287)
Updated dependencies to fix Next.js and React CVE vulnerabilities.

The fix-react2shell-next tool automatically updated the following packages to their secure versions:
- next
- react-server-dom-webpack
- react-server-dom-parcel  
- react-server-dom-turbopack

All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-11 14:14:27 -08:00
Hayden Bleasel 39882426d7 Update message.mdx 2025-12-09 12:25:45 -08:00
dependabot[bot] f2e4172a58 Bump ai from 5.0.89 to 5.0.104 (#263)
Bumps [ai](https://github.com/vercel/ai) from 5.0.89 to 5.0.104.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/ai@5.0.89...ai@5.0.104)

---
updated-dependencies:
- dependency-name: ai
  dependency-version: 5.0.104
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-07 22:34:32 -08:00
dependabot[bot] 022f1aa90d Bump react-player from 3.3.3 to 3.4.0 (#271)
Bumps [react-player](https://github.com/cookpete/react-player) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/cookpete/react-player/releases)
- [Changelog](https://github.com/cookpete/react-player/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cookpete/react-player/compare/v3.3.3...v3.4.0)

---
updated-dependencies:
- dependency-name: react-player
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-07 22:31:48 -08:00
Hayden Bleasel 9e6d119f27 Update home-links.tsx 2025-12-04 21:14:00 -08:00
vercel[bot] f524f7e7b7 Update repo for React Flight RCE advisory (#277)
## React Flight / Next.js RCE Advisory Security Update

Successfully updated the ai-elements monorepo to address the React Flight / Next.js RCE advisory (CVE-2025-XXXXX).

### Summary of Changes

The project was found to be affected by the vulnerability. Two Next.js applications were using vulnerable versions and have been patched.

### Affected Packages Detected

- **apps/docs**: Next.js 16.0.1 → 16.0.7
- **apps/registry**: Next.js 16.0.1 → 16.0.7

Both applications were running Next.js 16.0.1, which is vulnerable to the RCE advisory. According to the security guidance, Next.js 16.x projects must be upgraded to 16.0.7.

### Not Affected

The project does NOT use any of the following vulnerable React Flight packages:
- react-server-dom-webpack
- react-server-dom-parcel
- react-server-dom-turbopack

Other workspace packages (elements, examples, shadcn-ui, cli, typescript-config) do not use Next.js and were not affected.

### Files Modified

1. **apps/docs/package.json** - Updated Next.js from 16.0.1 to 16.0.7
2. **apps/registry/package.json** - Updated Next.js from 16.0.1 to 16.0.7
3. **pnpm-lock.yaml** - Updated lockfile to reflect new Next.js versions
4. **apps/docs/next-env.d.ts** - Auto-generated type definitions updated by Next.js 16.0.7

### Implementation Details

- Used pnpm package manager to install dependencies and update lockfile
- Did NOT manually update React or React-DOM versions (Next.js manages these automatically)
- Followed the advisory guideline: "For Next.js 16.x → set to 16.0.7"
- Did NOT upgrade across major versions (stayed within Next.js 16.x)

### Verification

Both Next.js applications were successfully built with the patched version:
- ✅ `apps/registry` - Build passed (Next.js 16.0.7 with Turbopack)
- ✅ `apps/docs` - Build passed (Next.js 16.0.7 with Turbopack)

All TypeScript compilation and static page generation completed without errors.

### Security Impact

This update patches the React Flight / Next.js RCE vulnerability in both Next.js applications within the monorepo. The patched version 16.0.7 includes critical security fixes that prevent remote code execution attacks.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-12-04 21:04:02 -08:00
Hayden Bleasel 61838a469b Upgrade Next.js and React 2025-12-04 20:59:31 -08:00
Hayden Bleasel 347ce99b8d Update index.tsx 2025-11-28 23:47:50 -08:00
Hayden Bleasel 478dcbda88 Resolves #42, resolves #252 2025-11-26 11:38:03 -08:00
Hayden Bleasel 1ab97a495c Resolves #245 2025-11-26 11:33:43 -08:00
Brendan Dash 034e5b4c2d fix: shiki dark mode (#246) 2025-11-26 11:29:52 -08:00
李学明 787dfc3472 feat(reasoning): ReasoningTrigger allows custom getThinkingMessage function (#255)
* feat(reasoning): ReasoningTrigger allows custom getThinkingMessage function

* Update reasoning.mdx

* Create giant-streets-swim.md

---------

Co-authored-by: Comyn LI 李学明 <comyn.li@nio.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-11-26 11:25:26 -08:00
Emmanuel Lucius 21a07f548a Updated Links routing to 404 (#251) 2025-11-20 15:27:56 -08:00
Will Garman 196f3d3d89 Import MessageResponse alongside Message and MessageContent from '@/components/ai-elements/message' (#249) 2025-11-19 16:56:24 -08:00
Hayden Bleasel 69204251b5 Resolves #244 2025-11-18 13:50:55 -08:00
Hayden Bleasel bb4a036ac6 Import path fixes 2025-11-16 19:13:59 -08:00
Jan-Hendrik Koch 461eee14d3 docs: add claude code to mcp server docs and fix claude desktop location (#243) 2025-11-16 17:05:07 -08:00
Hayden Bleasel ecaa2d2082 Update search.tsx 2025-11-16 16:36:26 -08:00
Hayden Bleasel bd205aa8d5 Update search.tsx 2025-11-16 15:35:47 -08:00
Hayden Bleasel 74d1670484 Update video.tsx 2025-11-16 10:18:12 -08:00
Hayden Bleasel cc3fbeebdd Update next.config.mjs 2025-11-14 16:19:58 -08:00
Hayden Bleasel 9095a4a027 Load og fonts locally 2025-11-14 16:14:19 -08:00
Hayden Bleasel 7902e35243 Update route.ts 2025-11-14 14:58:54 -08:00