Commit Graph

128 Commits

Author SHA1 Message Date
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
Hayden Bleasel daa4069845 Update sidebar.tsx 2025-11-14 14:44:32 -08:00
Hayden Bleasel fbd9ad9b94 Update route.ts 2025-11-14 14:06:35 -08:00
Hayden Bleasel 34a51c3c93 Geistdocs updates 2025-11-14 13:53:51 -08:00
Hayden Bleasel 48793c5ba1 Update docs-page.tsx 2025-11-14 09:13:07 -08:00
Hayden Bleasel bdc4b281fd Update route.ts 2025-11-14 09:12:39 -08:00
Hayden Bleasel caa44150f5 Custom microfrontends workaround for vercel production url 2025-11-14 09:09:22 -08:00
Hayden Bleasel 328dd658f7 Update code-block-tabs.tsx 2025-11-14 09:03:37 -08:00
Hayden Bleasel 4def8c1a41 Update Geistdocs 2025-11-14 08:58:04 -08:00
Hayden Bleasel abc501cb3b Fix navbar and code block 2025-11-14 08:48:18 -08:00
Hayden Bleasel dcd3d5c808 Update toc.tsx 2025-11-14 07:49:33 -08:00
Hayden Bleasel 867b033f67 Update mdx-components.tsx 2025-11-14 07:44:48 -08:00
Hayden Bleasel a66a5a3572 Update documentation style (#235)
* Copy Geistdocs files

* Fix wiring

* More wiring

* Upgrade Fumadocs

* Reorganize custom components

* Restore ai-sdk nav

* Update files

* Update client-navbar.tsx

* Update elements-installer.tsx

* Disable Ask AI

* Update source.ts

* Update preview.tsx

* Build fixes

* Update elements-demo.tsx

* Update next-env.d.ts

* Update client-navbar.tsx

* Update mdx-components

* Update client-navbar.tsx

* Update client-navbar.tsx

* Update docs-page.tsx

* Update global.css

* Update code-block.tsx

* Update code-block.tsx

* AI SDK website patches

* Update banner.tsx

* Update toc.tsx

* Responsive fixes

* Update banner.tsx

* Update og image

* Fix banner on dark mode, add theme toggle

* Update route.tsx
2025-11-14 07:35:07 -08:00
Hayden Bleasel 05f2202b12 Fix search endpoint 2025-11-12 12:39:48 -08:00
Hayden Bleasel 485a75e112 Update chatbot.mdx 2025-11-10 12:29:19 -08:00
Hayden Bleasel 2d67ab6c8a Documentation fixes 2025-11-10 10:39:07 -08:00
Hayden Bleasel 464292ae04 Resolves #180 2025-11-08 18:14:25 -08:00
Hayden Bleasel 80f8ffd84c Fix search 2025-11-08 18:14:14 -08:00
Hayden Bleasel 8024d7cc9f Update copy-markdown.tsx 2025-11-06 18:38:20 -08:00
Hayden Bleasel 4fe0d28c2f Update open in chat 2025-11-06 18:37:53 -08:00
Hayden Bleasel 1c09c94260 Resolves #184 2025-11-06 18:21:55 -08:00
Hayden Bleasel ec9bc62ed9 Fix preview scrolling 2025-11-06 18:19:32 -08:00
Hayden Bleasel 3c34582527 Resolves #182 2025-11-06 18:01:39 -08:00
Hayden Bleasel 3b21b897ef Update next-env.d.ts 2025-11-06 17:54:25 -08:00
Hayden Bleasel 1c0843a741 Add responsive bar to preview component 2025-11-06 14:18:59 -08:00