Commit Graph

58 Commits

Author SHA1 Message Date
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
Abhishek Kumar 4dfcaad3eb Removed: duplicate useIsMobile hook 2025-08-18 00:57:54 +05:30
Hayden Bleasel a909624861 Add basic vercel analytics ai-elements@1.0.0 2025-08-15 16:16:59 -07:00
Hayden Bleasel 5ff0fb481f Misc fixes 2025-08-15 16:06:08 -07:00
Hayden Bleasel 6e44e08381 Misc linting and formatting improvements 2025-08-15 15:32:05 -07:00
Hayden Bleasel a8a9a30f2f Migrate registry 2025-08-15 13:27:04 -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 245bae409e Misc cleanup 2025-08-15 12:39:19 -07:00
Hayden Bleasel ee68619cca Update README.md 2025-08-15 12:38:35 -07:00
Hayden Bleasel 9a8648604c Update README 2025-08-15 12:37:43 -07:00
Hayden Bleasel 055b983b0e Finish test app 2025-08-15 12:36:34 -07:00
Hayden Bleasel e8aa524f8a Start fixing up connections 2025-08-15 12:34:04 -07:00
Hayden Bleasel f0a275e1bb Start wiring up test app 2025-08-15 12:29:27 -07:00
Hayden Bleasel c9708c5c81 Add Ultracite 2025-08-15 12:26:01 -07:00