Commit Graph

65 Commits

Author SHA1 Message Date
Hayden Bleasel 0ebf67db1d 1.3 changes (#145)
* Bump deps

* Run Ultracite

* Update code-block.tsx

* Update parse-blocks.tsx

* Create great-pants-trade.md
2025-09-15 20:35:31 -07:00
Machiel 73b17a4d0b showControls to show and hide copy/download buttons (#138)
* feat: add showControls prop to control copy/download button visibility.

* feat: Add documentation for `showControls`.

* feat: Add tests for `showControls`.

* feat: add showControls prop to control copy/download button visibility.

* Rename showControls to controls

* Fix conditional hooks

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-09-15 12:08:03 -07:00
Ayhan Sipahi d2edc9012d feat: add custom Mermaid configuration support (#122)
* feat: add custom Mermaid configuration support

* ci: add change set

* fix: optimize mermaid config comparison and initialization
2025-09-10 21:12:25 -07:00
Hayden Bleasel fa7733c918 1.2 cleanup (#104)
* Bump deps

* Run Ultracite

* Replace custom download code with file-saver

* Export with correct file extension

* Update code-block.tsx

* Replace file-saver with save-file

* Add button animations

* Add file support to test app

* Add ability to select model in test app

* Filter out embedding models

* Update chat.tsx

* Create olive-lamps-glow.md
2025-09-04 19:00:25 -07:00
Hayden Bleasel 5a50f22008 Bump deps (#89)
* Bump deps

* Transpile shiki

* Create afraid-kiwis-bathe.md

* Update biome.jsonc

* Ignore shadcn files

* Run Ultracite

* Run unsafe fixes
2025-09-03 09:56:07 -07:00
Hayden Bleasel f45ea6d7d2 fix: the unterminated long link text is not rendering anything until the full link has completed streaming (#85)
* Update terminator-parser.tsx

* Automatically close links with placeholder url

* Create yummy-lines-matter.md
2025-09-02 19:35:54 -07:00
dependabot[bot] dfb85ce9f2 Bump the npm_and_yarn group across 2 directories with 1 update (#71)
Bumps the npm_and_yarn group with 1 update in the / directory: [next](https://github.com/vercel/next.js).
Bumps the npm_and_yarn group with 1 update in the /apps/website directory: [next](https://github.com/vercel/next.js).


Updates `next` from 15.4.6 to 15.4.7
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.6...v15.4.7)

Updates `next` from 15.4.6 to 15.4.7
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.6...v15.4.7)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.7
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: next
  dependency-version: 15.4.7
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-02 08:19:09 -07:00
Hayden Bleasel e483a2e8b3 Resolves #17 2025-08-28 11:19:12 -07:00
Hayden Bleasel 69fb1e0db4 fix single dollar sign text rendering as math (#64)
* Disable singleDollarTextMath

* Create wet-islands-slide.md

* Update tests

* Update mathematics.tsx

* Update wet-islands-slide.md

* Revert "Update wet-islands-slide.md"

This reverts commit 3e8f80aa63.
2025-08-28 11:04:34 -07:00
Hayden Bleasel e01669bd4e Add test app (#62)
* Scaffold test app

* Wire up AI SDK + Gateway

* Finish test app

* Resolves #53

* For #55

* Update config.json

* Create fuzzy-zoos-drive.md
2025-08-28 10:16:25 -07:00
Hayden Bleasel 593e49eb92 fix multiple renders of the same mermaid diagram (#59)
* Improve stable ID

* Update mermaid.tsx

* Create social-bugs-doubt.md
2025-08-28 08:50:05 -07:00
Hayden Bleasel f106ec440d add faq to website (#56)
* Scaffold FAQ

* Resolves #4

* Update faq.tsx
2025-08-27 21:17:08 -07:00
Hayden Bleasel 5ccfe24093 Resolves #5 2025-08-25 17:40:31 -07:00
Hayden Bleasel f834892754 fix: codeblock dark mode and background (#40)
* Add theme provider

* Update footer.tsx

* Update code blocks

* Create yellow-webs-follow.md

* Accept two shiki themes

* Update index.tsx

* Misc fixes
2025-08-25 17:32:34 -07:00
Hayden Bleasel ae0881caff Automatic diagrams (#34)
* Update demo copy

* Extract Code component

* Merge Code components

* Update mermaid.tsx

* Update mermaid.tsx

* Intelligently render "cached" valid Mermaid diagram

* Update components.tsx

* Fix infinite loop

* Update package.json
2025-08-25 11:41:57 -07:00
Ayhan Sipahi d528e25ac1 feat: Add Interactive Mermaid Diagram Support with Manual Rendering (#18)
* feat: add Mermaid diagram support to Streamdown

- Add Mermaid package dependency
- Create Mermaid component with error handling
- Integrate Mermaid support in markdown components
- Add Mermaid demo to website
- Update README with Mermaid examples
- Add comprehensive tests for Mermaid component

* feat(mermaıd): lazy load mermaid

* feat: add interactive Mermaid diagram support with manual render buttons

* perf: optimize Mermaid initialization to prevent config conflicts

* fix: extract pre component to resolve React Hooks Rules violation

* fix: add error handling and unique ID generation

* fix: conditionally render Mermaid button only for Mermaid code blocks
2025-08-25 10:58:33 -07:00
Hayden Bleasel b932431e6a Update props 2025-08-21 09:54:37 -07:00
Yella Yohan Reddy a4647ccd8e Add Vercel header link and include dist in build outputs (#10)
* fix: add Vercel link to header

* turbo: include dist/** in build outputs

* fix: replace Link with anchor for external Vercel link
2025-08-21 09:52:43 -07:00
Mrinaal Arora d775eff63c Update malicious link in hardened component (#3) 2025-08-19 15:55:45 -07:00
Hayden Bleasel d8ac8af409 Add missing copy buttons 2025-08-19 10:46:17 -07:00
Hayden Bleasel f88a31f7d7 Fix typo 2025-08-18 23:29:32 -07:00
Hayden Bleasel d3761ef8d5 Update tsconfig.json 2025-08-18 19:48:04 -07:00
Hayden Bleasel 7485cd1597 Update tsconfig.json 2025-08-18 19:40:17 -07:00
Hayden Bleasel ec2e5f93af Update installer.tsx 2025-08-18 19:38:35 -07:00
Hayden Bleasel d6b7a28917 Responsive fixes 2025-08-18 19:37:19 -07:00
Hayden Bleasel 688b40a40e Note Tailwind styles issue 2025-08-18 19:14:04 -07:00
Hayden Bleasel 9416d7d649 Detach code block from website 2025-08-18 19:12:10 -07:00
Hayden Bleasel b33cd3f855 Add AI Elements demo 2025-08-18 17:33:56 -07:00
Hayden Bleasel 694dbac7d8 Update copy 2025-08-18 17:21:57 -07:00
Hayden Bleasel ef61ab7259 Update page.tsx 2025-08-18 13:11:22 -07:00
Hayden Bleasel 466e8bfe1d Create opengraph-image.png 2025-08-18 11:39:33 -07:00
Hayden Bleasel b3b55ab5ee Add Vercel analytics 2025-08-18 11:34:31 -07:00
Hayden Bleasel e1072c052b Responsive fixes 2025-08-18 11:31:57 -07:00
Hayden Bleasel 971ad030cc Add props 2025-08-18 11:18:24 -07:00
Hayden Bleasel 3f0571f185 Add implementation code 2025-08-18 11:10:24 -07:00
Hayden Bleasel 7e7be9a8de Update section.tsx 2025-08-18 10:09:43 -07:00
Hayden Bleasel d8e4e0dfa8 Responsive fixes 2025-08-18 10:06:24 -07:00
Hayden Bleasel b333ab79f8 Finish homepage 2025-08-18 09:53:42 -07:00
Hayden Bleasel 1ba1b00713 Fix section reset 2025-08-18 09:50:34 -07:00
Hayden Bleasel 55e670112c New section component 2025-08-18 09:41:30 -07:00
Hayden Bleasel e0fe0410e3 Create math example 2025-08-18 09:34:12 -07:00
Hayden Bleasel 0a86cd23fa Run renderer on view 2025-08-18 09:05:49 -07:00
Hayden Bleasel 6a97e6ea2f Misc cleanup 2025-08-18 09:02:05 -07:00
Hayden Bleasel e690cf82f4 Add react-scan, disable optimization docs for now 2025-08-18 08:32:56 -07:00
Hayden Bleasel 4936904eca Fix section styling 2025-08-18 08:01:00 -07:00
Hayden Bleasel c9ca606f63 Update styling 2025-08-18 07:58:15 -07:00
Hayden Bleasel fbc5cc3c7e Website style improvements 2025-08-15 12:14:10 -07:00
Hayden Bleasel 480a2b54d1 Update page.tsx 2025-08-15 11:41:23 -07:00
Hayden Bleasel 1787b69c97 Update hardened.tsx 2025-08-15 11:34:26 -07:00
Hayden Bleasel 5bcf2df64a Update hardened.tsx 2025-08-15 11:34:09 -07:00