Commit Graph

35 Commits

Author SHA1 Message Date
Hayden Bleasel f887f5c76c Update PromptInputMessage to use AI SDK types 2025-11-10 12:28:51 -08:00
Hayden Bleasel 1c09c94260 Resolves #184 2025-11-06 18:21:55 -08:00
Hayden Bleasel 3c34582527 Resolves #182 2025-11-06 18:01:39 -08:00
Hayden Bleasel b82113887f Resolves #221 2025-11-06 14:11:30 -08:00
Hayden Bleasel eca525a319 Update prompt-input.tsx 2025-11-06 14:06:16 -08:00
Hayden Bleasel d5f1159390 New Message component (#222)
* Merge actions, branch and response into message

* Update docs and examples

* Make Flat variant default

* Update message

* Create tangy-melons-behave.md

* Upgrade branch to buttongroup

* Finish updating message

* Update message.test.tsx

* Update usage.mdx
2025-11-06 13:56:42 -08:00
Hayden Bleasel 796c32d573 Bump deps 2025-11-06 12:16:19 -08:00
Hayden Bleasel 29c2d430fc ModelSelector component (#217)
* Draft model selector

* Add support for logos

* Misc fixes

* Update model-selector.mdx

* Update model-selector.tsx

* Rename PromptInputModelSelect, replace with ModelSelector

* Add more providers, improve logos

* Create model-selector.test.tsx

* Create jolly-pots-wave.md
2025-11-06 12:10:25 -08:00
Hayden Bleasel c9f66cd2dd Update workflow.tsx 2025-11-06 10:51:13 -08:00
Hayden Bleasel 328173b55f Resolves #186 2025-11-05 21:35:32 -08:00
Hayden Bleasel dad0b0ab80 Bump deps 2025-11-05 21:16:32 -08:00
dependabot[bot] 1c537881ef Bump @xyflow/react from 12.9.0 to 12.9.2 (#198)
Bumps [@xyflow/react](https://github.com/xyflow/xyflow/tree/HEAD/packages/react) from 12.9.0 to 12.9.2.
- [Release notes](https://github.com/xyflow/xyflow/releases)
- [Changelog](https://github.com/xyflow/xyflow/blob/main/packages/react/CHANGELOG.md)
- [Commits](https://github.com/xyflow/xyflow/commits/@xyflow/react@12.9.2/packages/react)

---
updated-dependencies:
- dependency-name: "@xyflow/react"
  dependency-version: 12.9.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>
2025-11-05 21:15:52 -08:00
UncleBigBay 71f822cae8 Chore: add file sample to the queue component sample (#191) 2025-10-31 14:45:46 -07:00
Anirudh 2d0a9ebc67 fix: demo claude ui (#181) 2025-10-28 10:06:14 -07:00
Tobias Büschel 5a5342e8e4 fix: ensure prompt input attachments render inside header (#178)
* Update prompt-input.tsx

* fix: ensure prompt input attachments render inside header

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-28 00:26:15 -07:00
Hayden Bleasel a63d04f551 Misc fixes 2025-10-28 00:06:07 -07:00
Hayden Bleasel 4d20259861 Update chatbot.tsx 2025-10-27 21:13:30 -07:00
chaxus f50f548e0b fix: add missing PromptInputFooter import in chatbot example (#172)
- Add PromptInputFooter to imports in chatbot.tsx
- Remove duplicate PromptInputFooter import in prompt-input.tsx
- Fixes pnpm dev startup error
2025-10-27 21:13: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
Tobias Büschel 686577d848 feat: add tool approval state and tool approval component (#163)
* feat: add tool approval state and tool approval component

* Delete apps/test/app/examples/tool-approval.tsx

* Delete apps/test/app/examples/tool.tsx

* Delete apps/test/app/page.tsx

* Delete apps/test/package.json

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml

* Create slow-dancers-tap.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:57:16 -07:00
dependabot[bot] da5520fd98 Bump ai from 5.0.72 to 5.0.74 (#144)
Bumps [ai](https://github.com/vercel/ai) from 5.0.72 to 5.0.74.
- [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.72...ai@5.0.74)

---
updated-dependencies:
- dependency-name: ai
  dependency-version: 5.0.74
  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-10-27 18:50:24 -07:00
Tobias Büschel 8a4be1356e feat: improve layout and design of PromptInputAttachments (#151)
* feat: improve layout and design of PromptInputAttachments

* Delete apps/test/app/examples/prompt-input.tsx

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:47:11 -07:00
chaxus 60058420e7 fix: correct import by using PromptInputFooter instead of PromptInputToolBar (#155)
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:44:31 -07:00
Hayden Bleasel 2504ab052f Fix preview 2025-10-27 16:39:57 -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 2fc2e45b62 Update demo files 2025-10-16 12:21: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
Hayden Bleasel fbe92b4a9e Run Ultracite 2025-10-06 13:18:55 -07:00
Milind Mishra ccd7037ec3 feat: add stt and add to test and example apps (#112)
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-06 13:16:35 -07:00
Matthias Platzer 2db6495cee Added PromptInputProvider (#96)
* Added PromptInputProvider
- to access attachements outside the PromptInput context
- also added textInput controlls

Adapted PromptInput attachement rendering for non-image attachements
- show filename, use tooltip to show more
- group files, then images

* Merge provider back into prompt-input file

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-06 13:07:49 -07:00
Hayden Bleasel c3a463dffd Resolves #127 2025-10-06 11:18:15 -07:00
Hayden Bleasel e3bc4435cb Workflow Elements (#116)
* Draft workflow elements

* Create canvas.tsx

* Draft examples

* Improve demo

* Add Connection component

* Add Controls and Panel

* Update components

* Update workflow.tsx

* Update node.tsx

* Update edge.tsx

* Update node.tsx

* Scaffold Toolbar

* Fix toolbar classname

* Update controls.tsx
2025-10-06 10:48:18 -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 b0a2940350 Rename source -> sources 2025-08-27 15:28:02 -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