Skip to content

Commit

Permalink
chore: update deps (#802)
Browse files Browse the repository at this point in the history
Co-authored-by: GitButler <[email protected]>
  • Loading branch information
Yonom and gitbutler-client authored Sep 10, 2024
1 parent 7d7bbce commit 04f6fc8
Show file tree
Hide file tree
Showing 39 changed files with 1,029 additions and 1,153 deletions.
12 changes: 12 additions & 0 deletions .changeset/rare-actors-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@assistant-ui/react-syntax-highlighter": patch
"@assistant-ui/react-playground": patch
"@assistant-ui/react-hook-form": patch
"@assistant-ui/react-langgraph": patch
"@tool-ui/weather": patch
"@assistant-ui/react-markdown": patch
"@assistant-ui/react-ai-sdk": patch
"@assistant-ui/react": patch
---

chore: update deps
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ coverage
.next/
out/

# fumadocs
.source

# production
build
dist
Expand Down
22 changes: 11 additions & 11 deletions apps/docs/app/(home)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import Link from "next/link";
import { blog, BlogPage } from "@/app/source";
import { buttonVariants } from "@/components/ui/button";
import Image from "next/image";

import profilePic from "../../../../components/testimonials/profiles/Mc0m3zkD_400x400.jpg";
import defaultMdxComponents from "fumadocs-ui/mdx";

interface Param {
slug: string;
Expand All @@ -19,8 +19,6 @@ export default function Page({

if (!page) notFound();

const MDX = (page.data as any).exports.default;

return (
<main className="px-4">
<div className="mx-auto flex w-full max-w-screen-xl items-center justify-between py-4">
Expand All @@ -30,13 +28,15 @@ export default function Page({
>
Back
</Link>
<p className="text-xs text-gray-500">
{(page.data.date as Date).toLocaleString("en-US", {
year: "numeric",
month: "2-digit",
day: "2-digit",
})}
</p>
{!!page.data.date && (
<p className="text-xs text-gray-500">
{(page.data.date as Date).toLocaleString("en-US", {
year: "numeric",
month: "2-digit",
day: "2-digit",
})}
</p>
)}
</div>
<div
className="mx-auto w-full max-w-screen-xl rounded-xl border py-12 md:px-8"
Expand All @@ -60,7 +60,7 @@ export default function Page({
</div>
</div>
<article className="prose lg:prose-lg mx-auto w-full max-w-screen-sm py-8">
<MDX />
<page.data.body components={defaultMdxComponents} />
</article>
<div className="mx-auto mb-20 flex w-full max-w-screen-sm items-start gap-3">
<Image
Expand Down
5 changes: 3 additions & 2 deletions apps/docs/app/api/search/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { createSearchAPI } from "fumadocs-core/search/server";

export const { GET } = createSearchAPI("advanced", {
indexes: getPages().map((page) => ({
title: (page.data as any).title,
structuredData: (page.data as any).exports.structuredData,
title: page.data.title,
description: page.data.description,
structuredData: page.data.structuredData,
id: page.url,
url: page.url,
})),
Expand Down
5 changes: 2 additions & 3 deletions apps/docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { notFound } from "next/navigation";
import { cn } from "@/lib/utils";
import { buttonVariants } from "@/components/ui/button";
import { EditIcon } from "lucide-react";
import defaultMdxComponents from "fumadocs-ui/mdx";

export default async function Page({
params,
Expand Down Expand Up @@ -37,8 +38,6 @@ export default async function Page({
</a>
);

const MDX = (page.data as any).exports.default;

return (
<DocsPage
toc={(page.data as any).exports.toc}
Expand All @@ -47,7 +46,7 @@ export default async function Page({
>
<DocsBody>
<h1>{(page.data as any).title}</h1>
<MDX />
<page.data.body components={defaultMdxComponents} />
</DocsBody>
</DocsPage>
);
Expand Down
33 changes: 0 additions & 33 deletions apps/docs/app/source.ts

This file was deleted.

18 changes: 18 additions & 0 deletions apps/docs/app/source.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createMDXSource } from "fumadocs-mdx";
import type { InferPageType } from "fumadocs-core/source";
import { loader } from "fumadocs-core/source";
import { meta, docs, blog as blogPosts } from "@/.source";

const utils = loader({
baseUrl: "/docs",
source: createMDXSource(docs, meta),
});

export const { getPages, getPage, pageTree } = utils;

export const blog = loader({
baseUrl: "/blog",
source: createMDXSource(blogPosts, []),
});

export type BlogPage = InferPageType<typeof blog>;
2 changes: 1 addition & 1 deletion apps/docs/content/docs/advanced/API.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ const ClearChatButton = () => {

return <button onClick={handleClick}>Clear chat</button>;
};
```
```
2 changes: 1 addition & 1 deletion apps/docs/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
28 changes: 3 additions & 25 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
import createMDX from "fumadocs-mdx/config";
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
import { transformerTwoslash } from "fumadocs-twoslash";
import { transformerMetaHighlight } from "@shikijs/transformers";

const withMDX = createMDX({
mdxOptions: {
rehypeCodeOptions: {
transformers: [
...rehypeCodeDefaultOptions.transformers,
transformerMetaHighlight(),
transformerTwoslash({
twoslashOptions: {
compilerOptions: {
jsx: 12,
paths: {
"@/*": ["./*"],
},
},
},
}),
],
},
},
});
import { createMDX } from "fumadocs-mdx/next";

/** @type {import('next').NextConfig} */
const config = {
Expand All @@ -43,4 +19,6 @@ const config = {
}),
};

const withMDX = createMDX();

export default withMDX(config);
26 changes: 13 additions & 13 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"start": "next start"
},
"dependencies": {
"@ai-sdk/openai": "^0.0.54",
"@ai-sdk/provider": "^0.0.22",
"@ai-sdk/openai": "^0.0.58",
"@ai-sdk/provider": "^0.0.23",
"@assistant-ui/react": "workspace:*",
"@assistant-ui/react-ai-sdk": "workspace:*",
"@assistant-ui/react-langgraph": "workspace:*",
Expand All @@ -26,18 +26,18 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/themes": "^3.1.3",
"@shikijs/transformers": "^1.16.2",
"ai": "^3.3.21",
"@shikijs/transformers": "^1.16.3",
"ai": "^3.3.30",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"fumadocs-core": "13.4.1",
"fumadocs-mdx": "9.0.4",
"fumadocs-twoslash": "^1.1.2",
"fumadocs-ui": "13.4.1",
"fumadocs-core": "13.4.9",
"fumadocs-mdx": "10.0.2",
"fumadocs-twoslash": "^1.1.3",
"fumadocs-ui": "13.4.9",
"geist": "^1.3.1",
"lucide-react": "^0.438.0",
"next": "^14.2.7",
"openai": "^4.57.0",
"lucide-react": "^0.439.0",
"next": "^14.2.9",
"openai": "^4.58.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-syntax-highlighter": "^15.5.0",
Expand All @@ -51,8 +51,8 @@
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.43",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
51 changes: 51 additions & 0 deletions apps/docs/source.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {
defineConfig,
defineDocs,
defineCollections,
frontmatterSchema,
} from "fumadocs-mdx/config";
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins";
import { transformerTwoslash } from "fumadocs-twoslash";
import { transformerMetaHighlight } from "@shikijs/transformers";
import { z } from "zod";

export const { docs, meta } = defineDocs({
docs: {
schema: frontmatterSchema,
},
});

export const blog = defineCollections({
dir: "content/blog",
schema: frontmatterSchema.extend({
author: z.string(),
date: z.string().date().or(z.date()).optional(),
}),
type: "doc",
});

export default defineConfig({
mdxOptions: {
rehypeCodeOptions: {
themes: {
light: "catppuccin-latte",
dark: "catppuccin-mocha",
},
transformers: [
...(rehypeCodeDefaultOptions.transformers ?? []),

transformerMetaHighlight(),
transformerTwoslash({
twoslashOptions: {
compilerOptions: {
jsx: 1, // JSX preserve
paths: {
"@/*": ["./*"],
},
},
},
}),
],
},
},
});
1 change: 1 addition & 0 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"target": "ES6",
"incremental": true,
"exactOptionalPropertyTypes": false,
"plugins": [
{
"name": "next"
Expand Down
20 changes: 10 additions & 10 deletions examples/search-agent-for-e-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@
"lint": "next lint"
},
"dependencies": {
"@ai-sdk/openai": "^0.0.54",
"@ai-sdk/openai": "^0.0.58",
"@assistant-ui/react": "workspace:*",
"@assistant-ui/react-ai-sdk": "workspace:*",
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"ai": "^3.3.21",
"ai": "^3.3.30",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"embla-carousel-autoplay": "^8.2.0",
"embla-carousel-react": "^8.2.0",
"lucide-react": "^0.438.0",
"embla-carousel-autoplay": "^8.2.1",
"embla-carousel-react": "^8.2.1",
"lucide-react": "^0.439.0",
"nanoid": "^5.0.7",
"next": "14.2.7",
"next": "14.2.9",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.5.2",
Expand All @@ -32,13 +32,13 @@
},
"devDependencies": {
"@assistant-ui/tsconfig": "workspace:*",
"@types/node": "^22.5.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"eslint": "^8",
"eslint-config-next": "14.2.7",
"postcss": "^8.4.43",
"eslint-config-next": "14.2.9",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
6 changes: 3 additions & 3 deletions examples/with-external-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"lint": "next lint"
},
"dependencies": {
"@ai-sdk/openai": "^0.0.54",
"@ai-sdk/openai": "^0.0.58",
"@assistant-ui/react": "^0.5",
"next": "14.2.7",
"next": "14.2.9",
"react": "^18",
"react-dom": "^18",
"tailwindcss-animate": "^1.0.7"
Expand All @@ -22,7 +22,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.7",
"eslint-config-next": "14.2.9",
"postcss": "^8",
"tailwindcss": "^3.4.10",
"typescript": "^5"
Expand Down
Loading

0 comments on commit 04f6fc8

Please sign in to comment.