Commit Graph

22 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 61838a469b Upgrade Next.js and React 2025-12-04 20:59:31 -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
dependabot[bot] 052378ccef Bump next from 16.0.0 to 16.0.1 (#200)
Bumps [next](https://github.com/vercel/next.js) from 16.0.0 to 16.0.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.0...v16.0.1)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.0.1
  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-11-05 21:14:12 -08:00
Hayden Bleasel 619416a7ca Add AI Elements MCP server 2025-10-27 23:37:07 -07:00
Hayden Bleasel 43dbf312e2 Release cleanup (#174)
* Bump deps

* Update package.json

* Update shadcn/ui

* Run Ultracite

* Run Ultracite

* Fix unit tests

* Update prompt-input.tsx

* Build fixes

* Modify docs styles

* Fix terminal titles

* Update code-block.mdx

* Add tool-approval docs and examples

* Rename ToolApproval to Confirmation

* Fix confirmation

* Misc fixes

* Update test.yml

* Downgrade jsdom

* Update confirmation.test.tsx
2025-10-27 21:12:09 -07:00
Hayden Bleasel f2cb8c7505 Open source documentation (#156)
* Initial port

* Remove test repo

* Misc fixes

* Fix folder groups

* Docs and design fixes

* Add primary color, fix manual install

* Fix elements demo

* Delete .source

* Update .gitignore

* Update package.json

* Update shadcn-ui

* Upgrade to Next.js and Fumadocs 16

* Add missing examples

* Fix metadata

* Add base path

* Update next-env.d.ts

* Add microfrontends config

* Create microfrontends.json
2025-10-27 13:40:56 -07:00
Hayden Bleasel 14888a6475 October update (#135)
* Add Shiki to test repo

* Fix controls unit test

* Bump deps

* Cleanup and merge task queue elements

* Rename to Queue

* Update page.tsx

* Update queue.tsx

* Update queue.tsx

* Rebuild queue

* Continue breaking apart Queue component

* Cleanup

* Finish decomposing Queue

* Update queue.tsx

* Misc cleanup and renaming

* Add PromptInputHeader, Footer and Tabs

* Improve exports

* Rename Tabs -> HoverCard

* Add Rules example

* Add PromptInputCommand

* Add tests for Queue

* Update prompt-input.test.tsx

* Create Shimmer component

* Redo colors

* Update reasoning.tsx

* Create Plan component

* Update prompt-input.tsx

* Linter improvements

* Add check / fix commands

* Run Ultracite

* Update prompt-input.tsx
2025-10-15 21:11:00 -07:00
Shinya Fujino fd1cf7e347 Include @types/* as devDependencies (#91) 2025-09-22 10:27:24 -07:00
Hayden Bleasel 2599cf229f Create new "all.json" 2025-09-09 08:55:05 -07:00
Hayden Bleasel 701e570979 September 8 Updates (#80)
* feat: Add File Upload with PromptAttachments and PromptForm Components (#76)

* feat: Add PromptInputActionMenu for granular action dropdowns

* feat: Implement PromptForm and PromptAttachments components for file attachment handling

* refactor: Integrate PromptForm with PromptInput for enhanced submission handling and attachment support

* docs: Update README files to include new components PromptForm and PromptInputAttachments

* refactor: Refactor useAttachment hook for better DX

* feat: Add Chat context visualization component (#75)

* feat: add context component to visualise model context usage

* chore: update README and package.json to include context component in documentation and description

* feat: integrate context component into example files for enhanced token visualization

* fix: update title for ContextIcon to improve accessibility

* refactor: remove title element from ContextIcon for cleaner code

* fix: add className prop to button in Context for improved styling flexibility

* fix: apply minHeight and maxHeight props in PromptInputTextarea (#40)

* fix: apply minHeight and maxHeight props in PromptInputTextarea

* style: revert unintended quote changes

* Switch to pure CSS

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>

* feat: add MessageContent variants (#37)

* feat: add variants for message content

* chore: remove unneded join

* Bump deps

* Ignore shadcn/ui

* Run formatter

* Update biome.jsonc

* Resolves #77

* Resolves #69

* Resolves #60

* Remove logo.dev from examples

* Update context.tsx

* Propagate fixes from ai-studio

* Resolves #74

* Resolves #59

* Resolves #67

* Run Ultracite

* Resolves #73

* Resolves #71

* Update prompt-input.tsx

* Start merging prompt input files

* Continue working

* STILL working

* Finish cleaning up prompt input

* Update prompt-input.tsx

* Remove context

* Update prompt-input.tsx

* Update prompt-input.tsx

* Update message.tsx

* Fix trigger consistency

* Fade reasoning text

* Resolves #38

* Create artifact.tsx

* Misc fixes

* Port Context from ChatSDK (WIP)

* Rebuild context component

* Update context.tsx

* Misc fixes

* Port updates from ai-studio

* Update suggestion-input.tsx

* Update v0-clone.tsx

---------

Co-authored-by: Nicklas Scharpff <64584979+xn1cklas@users.noreply.github.com>
Co-authored-by: huygbui <160628415+huygbui@users.noreply.github.com>
Co-authored-by: Damiano Carradori <damiano.carradori@gmail.com>
2025-09-08 21:47:43 -07:00
Hayden Bleasel 1c23c11819 Add targets 2025-09-03 10:22:54 -07:00
Hayden Bleasel b9d252fa6c Resolves #55 2025-08-30 10:11:42 -07:00
Hayden Bleasel e2c4b5f659 Add shadcn registry blocks (#47)
* Migrate examples

* Load examples as blocks

* Update route.ts
2025-08-26 23:51:24 -07:00
Hayden Bleasel a6ad61d4fa Update shadcn spec (#46)
* Accept registry.json

* Update route.ts

* Update route.ts
2025-08-26 22:29:26 -07:00
Hayden Bleasel a909624861 Add basic vercel analytics 2025-08-15 16:16:59 -07:00
Hayden Bleasel 5ff0fb481f Misc fixes 2025-08-15 16:06:08 -07:00
Hayden Bleasel a8a9a30f2f Migrate registry 2025-08-15 13:27:04 -07:00