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
ai-elements@1.3.0
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
Shinya Fujino
fd1cf7e347
Include @types/* as devDependencies ( #91 )
2025-09-22 10:27: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
ai-elements@1.2.1
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
17hz
e41ac1088b
fix: Update the all components link in the installation command to all.json ( #88 )
2025-09-10 09:08:59 -07:00
Hayden Bleasel
ecc03478fb
Update package.json
2025-09-09 08:55:35 -07:00
Hayden Bleasel
2599cf229f
Create new "all.json"
2025-09-09 08:55:05 -07:00
Hayden Bleasel
65f1906b59
Update README.md
2025-09-08 22:01:54 -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 >
ai-elements@1.2.0
2025-09-08 21:47:43 -07:00
Hayden Bleasel
33a12b70c3
Update Streamdown to 1.2
ai-elements@1.1.1
2025-09-04 22:00:53 -07:00
Hayden Bleasel
1c23c11819
Add targets
2025-09-03 10:22:54 -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
Hayden Bleasel
5cabdd443d
Update package.json
2025-08-30 10:12:29 -07:00
Hayden Bleasel
b9d252fa6c
Resolves #55
2025-08-30 10:11:42 -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
6351918777
Improve registry reliability ( #53 )
...
* Improve registry reliability
* Add error handling
* Update index.js
* Run all shadcn commands together
* Update package.json
2025-08-28 15:12:08 -07:00
Hayden Bleasel
8de78cb32e
Update tool.tsx
2025-08-28 08:28:48 -07:00
Hayden Bleasel
a8cd7d45a7
Update registry script
2025-08-28 08:28:45 -07:00
Hayden Bleasel
b0a2940350
Rename source -> sources
2025-08-27 15:28:02 -07:00
Hayden Bleasel
85d5b72eea
Fix registry
2025-08-27 15:24:30 -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
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
c4809d448c
Resolves #25
2025-08-20 18:06:04 -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
528d2386f1
Resolves #7
2025-08-19 11:47:47 -07:00
Hayden Bleasel
89ff341764
Merge pull request #20 from vercel/streamdown
...
Streamdown
ai-elements@1.1.0
2025-08-18 22:48:09 -07:00
Hayden Bleasel
1900b78b1e
Merge pull request #12 from AbhiArya20/duplicate-hook
...
Refactor: Remove duplicate useIsMobile hook & install required dependencies
2025-08-18 18:51:26 -07:00
Hayden Bleasel
2be40812e7
Merge pull request #18 from brandonmcconnell/fix/inline-citation-spacing-issue
...
Fix `InlineCitation` spacing issue
2025-08-18 18:50:44 -07:00
Brandon McConnell
afb2b711a7
Revert "Add missing nanoid dependency"
...
This reverts commit d8c59aeebc .
2025-08-18 18:32:00 -04: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
Brandon McConnell
d8c59aeebc
Add missing nanoid dependency
2025-08-18 18:16:44 -04:00