Commit Graph

36 Commits

Author SHA1 Message Date
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
zxzinn 323b184f09 Improve form submission handling by using form reference and resettin… (#125)
* Prevent race condition by resetting form before async file processing

Add test for clearing textarea after form submission

Improve form submission handling by using form reference and resetting form after submission

* Update test case titles to include issue #125

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-06 07:21:47 -07:00
김의중(UyJoong Kim) 0188b6df91 fix: memoize chain-of-thought context (#117) 2025-10-04 00:54:31 -07:00
Andrew Chen Wang dca6c934e7 Check if output is a valid React element in ToolOutput (fixes #118) (#119) 2025-10-04 00:53:25 -07:00
Hayden Bleasel d971feaed6 Backfill unit tests 2025-09-30 11:56:30 +10:00
Hayden Bleasel b1420f6089 Resolves #113 2025-09-30 11:51:56 +10:00
Hayden Bleasel 656c4a5d97 add unit tests (#115)
* Add 200 unit tests

* Fix unit tests

* Create test.yml
2025-09-29 18:47:51 -07:00
Tobias Büschel a26d53160a fix: clear attachments in PromptInput after submit (#111) 2025-09-29 17:57:49 -07:00
Lachlan Campbell 6db48388c5 fix(OpenInChat): Update Claude branding (#109)
* fix(OpenInChat): Update Claude branding

* Fix JSX syntax
2025-09-29 17:56:19 -07:00
Lachlan Campbell 610669abec [OpenInChat] Fix capitalization of V0 → v0 (#108) 2025-09-29 17:55:10 -07:00
Hayden Bleasel 64d13a50ff add onPaste File Event Support to PromptInput Component (#105) 2025-09-22 12:08:09 -07:00
Parbez 7a65c0f231 fix: allow passing a custom title in tool header (#85) 2025-09-22 10:30:24 -07:00
Rohit Singh c06baa3502 fix(task): stop the jump of collapsible animation in task section (#83) 2025-09-22 10:23:54 -07:00
Hayden Bleasel ac65261848 Update open-in-chat.tsx 2025-09-21 13:42:42 -07:00
Hayden Bleasel 0daec531cc Bump Streamdown 2025-09-16 10:33:09 -07:00
Hayden Bleasel d05f5d77b4 Bump tokenlens 2025-09-12 21:41:01 -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 33a12b70c3 Update Streamdown to 1.2 2025-09-04 22:00:53 -07:00
Hayden Bleasel a1929e8e50 Resolves #63 2025-09-02 19:49:55 -07:00
Hayden Bleasel 16d3a6f255 Update Streamdown 2025-09-02 19:46:18 -07:00
Timo Wernars 5933623f65 apply classname prop in sources trigger (#54)
Co-authored-by: Timo <timo@goedgemerkt.nl>
2025-08-30 10:06:56 -07:00
Hayden Bleasel 8de78cb32e Update tool.tsx 2025-08-28 08:28:48 -07:00
Hayden Bleasel b0a2940350 Rename source -> sources 2025-08-27 15:28:02 -07:00
Hayden Bleasel ee76e9b0b9 Update Streamdown 2025-08-26 21:26:15 -07:00
Francisco Moretti aa72a23d80 fix(message): merge nested divs so flex-col gap applies to parts (#29)
Otherwise the flex col and gap is not being applied to message parts
2025-08-25 14:02:50 -07:00
Damiano Carradori ed5b5d0e76 refactor: update Reasoning component to adjust the auto-close logic (#36) 2025-08-25 14:02:07 -07:00
Krisdevs 8bc46ebf00 Add relative to Actions button to make sure the sr-only classname doesnt cause extra scrollbars (#23)
When using the Actions component there's an added sr-only class for screenreaders, however this adds a  
```
.sr-only{position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;}``` 
which causes an extra scrollbar to appear. adding relative to the Button, makes sure the position absolute is scoped to the Button and not the parent container
2025-08-20 18:08:32 -07:00
Hayden Bleasel 16277742ba Resolves #21 2025-08-19 12:29:15 -07:00
Hayden Bleasel 06383b04ee Resolves #11 2025-08-19 12:10:17 -07:00
Hayden Bleasel 89ff341764 Merge pull request #20 from vercel/streamdown
Streamdown
2025-08-18 22:48:09 -07:00
Brandon McConnell 7c88274ac6 Add pl-8 to account for -ml-4 in parent element
shadcn/ui adds `-ml-4` to wrapper created by `CarouselContent`. By default, the wrapped content is flush to all four sides even with its default `pl-4`. To apply an even `p-4` inside the content area, you must also account for the additional 4 units of padding initially present on the left side, totaling `pl-8`.
2025-08-18 18:19:38 -04:00
Hayden Bleasel 6e44e08381 Misc linting and formatting improvements 2025-08-15 15:32:05 -07:00
Hayden Bleasel ba3146c135 Update package.json 2025-08-15 13:03:46 -07:00
Hayden Bleasel 240bf26b57 Move components to src folder 2025-08-15 13:00:23 -07:00
Hayden Bleasel e23583dfea Fix refs 2025-08-15 12:25:35 -07:00
Hayden Bleasel 32d5dfec85 Migrate components, shadcn/ui, typescript and registry 2025-08-15 12:24:21 -07:00