Commit Graph

155 Commits

Author SHA1 Message Date
streamdown-github-app[bot] 2f97e9784f Version Packages (#168)
Co-authored-by: ai-elements-bot[bot] <ai-elements-bot[bot]@users.noreply.github.com>
ai-elements@1.5.0
2025-10-27 23:59:59 -07:00
Hayden Bleasel c1ef254d35 Update mcp.mdx 2025-10-27 23:51:46 -07:00
Hayden Bleasel 21ad9628a2 Update release.yml 2025-10-27 23:50:27 -07:00
Hayden Bleasel 03d04f4b2b Update mcp.mdx 2025-10-27 23:44:03 -07:00
Hayden Bleasel e32a8ac97a Update meta.json 2025-10-27 23:43:07 -07:00
Hayden Bleasel 619416a7ca Add AI Elements MCP server 2025-10-27 23:37:07 -07:00
Hayden Bleasel a7128ab45e Create loud-doors-fold.md 2025-10-27 23:03:54 -07:00
Hayden Bleasel dccf114dd8 replace jsdom with vitest browser mode (#176)
* Swap from jsdom to browser

* Create clever-toys-travel.md

* Add missing packages

* Attempt more test fixes

* Update testing matrix

* Update test.yml

* Update test.yml
2025-10-27 22:46:08 -07:00
Tobias Büschel cdd4d0b282 test: add vitest-fail-on-console and improve test stability (#170)
* test: add vitest-fail-on-console and improve test stability

- Integrate `vitest-fail-on-console` plugin to ensure console logs cause test failures
- Use `act` to wrap asynchronous updates in test interactions
- Add `happy-dom` for improved test environment compatibility
- Update test descriptions to remove async usage where unnecessary

* feat: enhance button accessibility and update tsconfig with testing types

- Add 'type="button"' to improve button element accessibility in test files
- Include 'vitest/globals' and '@testing-library/jest-dom' types in tsconfig for better testing support

* Create grumpy-ways-look.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 21:22:57 -07:00
Tobias Büschel 0949dd944c docs: update README with component categories and examples (#175)
* docs: update README with component categories and examples

* docs: update component description in README.md
2025-10-27 21:14:04 -07:00
Tobias Büschel 86a94c914b fix: correct typos in chatbot documentation files (#173) 2025-10-27 21:13:43 -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
Tobias Büschel 5f63caa2db docs: ensure code block page has correct sidebar title (#171)
* docs: ensure code block page has correct sidebar title

* feat: remove unused PromptInputFooter import in prompt-input.tsx
2025-10-27 21:12:54 -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 2135d806f1 refactor: replace react-syntax-highlighter with shiki in CodeBlock (#149)
* refactor: replace react-syntax-highlighter with shiki in CodeBlock

* Create perky-wolves-grow.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 19:07:34 -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
dependabot[bot] b571328ab8 Bump tailwindcss from 4.1.12 to 4.1.14 (#142)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.12 to 4.1.14.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.14/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.14
  dependency-type: direct:development
  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:04 -07:00
dependabot[bot] 1629a9320e Bump @types/node from 24.3.1 to 24.8.0 (#141)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.1 to 24.8.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 18:49:55 -07:00
dependabot[bot] 85e74c10c5 Bump actions/checkout from 4 to 5 (#139)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 18:49:40 -07:00
dependabot[bot] 22e661e930 Bump actions/setup-node from 4 to 6 (#138)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 18:49:34 -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
Tobias Büschel e9979f7688 ci: run against node v18, 20 and 22 + run ultracite (#152) 2025-10-27 18:45:31 -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
Sora Morimoto 4a5afad0bb Fix type error in Edge component by using const assertion (#158)
* Fix type error in Edge component by using const assertion

Add 'as const' to the return value of `getHandleCoordsByPosition` to ensure
it is typed as a readonly tuple `[number, number]` rather than a mutable
array `number[]`, which was causing TypeScript to infer the elements as
potentially undefined when destructured in the Animated component.

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Create odd-knives-relax.md

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:43:11 -07:00
Sora Morimoto 2fce23cf38 Fix type error in InlineCitationCardTrigger by checking sources[0] directly (#159)
* Fix type error in `InlineCitationCardTrigger` by checking `sources[0]` directly

Change the condition from `sources.length` to `sources[0]` to ensure
TypeScript recognises that `sources[0]` is defined when passed to the URL
constructor. This resolves the `string | undefined` is not assignable to
`string | URL` type error.

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Create proud-rocks-study.md

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:41:41 -07:00
Sora Morimoto 27dbfc2c2b Use optional chaining for speech recognition result access (#160)
* Use optional chaining for speech recognition result access

Prevent potential undefined access when retrieving the first alternative
from speech recognition results. The `SpeechRecognitionResult` index
access may return `undefined`, so use optional chaining to safely handle
this case.

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* Use nullish coalescing operator to provide a default empty string

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* Create sharp-numbers-think.md

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:39:47 -07:00
Brendan Dash a848cf8d60 refactor: update tokenlens api (#164)
* refactor: update tokenlens api

* Create red-kids-report.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:38:23 -07:00
Brendan Dash 40067f2b4a chore: lint @typescript-eslint/no-redeclare (#165)
* chore: lint @typescript-eslint/no-redeclare

* Create famous-heads-marry.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-27 18:37:12 -07:00
Hayden Bleasel 00c5835e3a Fix tests 2025-10-27 18:32:41 -07:00
Hayden Bleasel b6305cd582 Update release.yml 2025-10-27 18:26:30 -07:00
Hayden Bleasel 6e7c975127 Create release.yml 2025-10-27 18:12:13 -07:00
Hayden Bleasel 9ede5515fe Create hot-ducks-beam.md 2025-10-27 18:10:48 -07:00
Hayden Bleasel 958d6329c7 Update package.json 2025-10-27 18:10:13 -07:00
Hayden Bleasel cb4effd132 Add changesets 2025-10-27 18:09:19 -07:00
Hayden Bleasel 91f0d00ec8 Update client-navbar.tsx 2025-10-27 17:17:45 -07:00
Hayden Bleasel 703ec7862e Scaffold navbar buttons 2025-10-27 17:17:19 -07:00
Hayden Bleasel d5b3efa08b Fix preview 2025-10-27 17:00:52 -07:00
Hayden Bleasel 1b28a60d45 Fix docs 2025-10-27 16:54:01 -07:00
Hayden Bleasel b8e77c7d0d Update elements-button.tsx 2025-10-27 16:51:02 -07:00
Hayden Bleasel d670524eee Fix navbar links 2025-10-27 16:47:33 -07:00
Hayden Bleasel 2504ab052f Fix preview 2025-10-27 16:39:57 -07:00
Hayden Bleasel db5ff0ec8b Fix titles and colors 2025-10-27 16:38:52 -07:00
Hayden Bleasel 5f3e5d8368 Fix navbar 2025-10-27 16:23:53 -07:00
Hayden Bleasel 95138ff85c Fix widths 2025-10-27 16:11:03 -07:00
Hayden Bleasel 16c5fe319b Bump fuma 2025-10-27 16:05:15 -07:00
Hayden Bleasel 9767a3adb8 Remove search toggle 2025-10-27 16:02:49 -07:00
Hayden Bleasel 9dbd76a246 Start working on layout 2025-10-27 16:01:09 -07:00
Hayden Bleasel d7ea28f451 Fix microfrontends routing 2025-10-27 14:09:44 -07:00