Skip to content

Commit

Permalink
docs: navbar update, update deps (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 19, 2024
1 parent 56dc015 commit f685520
Show file tree
Hide file tree
Showing 18 changed files with 503 additions and 192 deletions.
31 changes: 29 additions & 2 deletions apps/docs/app/docs/layout.config.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { type BaseLayoutProps, type DocsLayoutProps } from "fumadocs-ui/layout";
import { pageTree } from "@/app/source";
import { RootToggle } from "fumadocs-ui/components/layout/root-toggle";
import { BookIcon, LayoutTemplateIcon, UserIcon } from "lucide-react";
import {
BookIcon,
LayoutTemplateIcon,
PhoneCall,
PhoneCallIcon,
} from "lucide-react";
import { LibraryIcon, type LucideIcon } from "lucide-react";
import icon from "@/public/favicon/favicon.svg";
import Image from "next/image";
Expand Down Expand Up @@ -31,6 +36,21 @@ export const modes: Mode[] = [
},
];

const DiscordIcon = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 127.14 96.36"
className="size-4"
>
<path
fill="currentColor"
d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"
/>
</svg>
);
};

// shared configuration
export const baseOptions: BaseLayoutProps = {
githubUrl: "https://github.com/Yonom/assistant-ui",
Expand Down Expand Up @@ -62,9 +82,16 @@ export const baseOptions: BaseLayoutProps = {
icon: <LayoutTemplateIcon />,
},
{
text: "Enterprise Inquiry",
url: "https://cal.com/simon-farshid/assistant-ui",
icon: <PhoneCallIcon />,
external: true,
},
{
type: "secondary",
text: "Discord",
url: "https://discord.gg/S9dwgCNEFs",
icon: <UserIcon />,
icon: <DiscordIcon />,
external: true,
},
],
Expand Down
Empty file added apps/docs/assets/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/themes": "^3.1.1",
"ai": "^3.2.27",
"ai": "^3.2.29",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"fumadocs-core": "12.5.3",
"fumadocs-core": "12.5.4",
"fumadocs-mdx": "8.2.34",
"fumadocs-ui": "12.5.3",
"fumadocs-ui": "12.5.4",
"geist": "^1.3.1",
"lucide-react": "^0.408.0",
"next": "^14.2.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/search-agent-for-e-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"ai": "^3.2.27",
"ai": "^3.2.29",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"embla-carousel-autoplay": "^8.1.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-inline-suggestions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@radix-ui/react-avatar": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"ai": "^3.2.27",
"ai": "^3.2.29",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.408.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-openai-assistants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@assistant-ui/react": "workspace:*",
"@assistant-ui/react-ai-sdk": "workspace:*",
"@radix-ui/react-avatar": "^1.1.0",
"ai": "^3.2.27",
"ai": "^3.2.29",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.408.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-react-hook-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.52.1",
"react-resizable-panels": "^2.0.20",
"react-resizable-panels": "^2.0.21",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vercel-ai-rsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"ai": "3.2.27",
"ai": "3.2.29",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.408.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@assistant-ui/tsconfig": "workspace:*",
"@types/cross-spawn": "^6.0.6",
"@types/node": "^20.14.11",
"tsup": "8.1.0"
"tsup": "8.1.2"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ai-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build": "tsup src/index.ts --format cjs,esm --dts --sourcemap --clean"
},
"dependencies": {
"tsup": "8.1.0",
"tsup": "8.1.2",
"zod": "^3.23.8",
"zustand": "^4.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hook-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@assistant-ui/tsconfig": "workspace:*",
"eslint-config-next": "14.2.5",
"tsup": "8.1.0"
"tsup": "8.1.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"postcss": "^8.4.39",
"tailwindcss": "^3.4.6",
"tailwindcss-animate": "^1.0.7",
"tsup": "8.1.0",
"tsup": "8.1.2",
"tsx": "^4.16.2"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint-config-next": "14.2.5",
"tailwindcss": "^3.4.6",
"tailwindcss-animate": "^1.0.7",
"tsup": "8.1.0",
"tsup": "8.1.2",
"tsx": "^4.16.2"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const APIKeyInput: FC = () => {
};

type ModelSelectorProps = {
models?: string[];
models?: string[] | undefined;
};

const ModelSelector: FC<ModelSelectorProps> = ({
Expand Down Expand Up @@ -317,9 +317,7 @@ const MaxTokensSlider: FC = () => {
);
};

const Sidebar: FC<AssistantPlaygroundProps> = ({
modelSelector: modelSelector,
}) => {
const Sidebar: FC<AssistantPlaygroundProps> = ({ modelSelector }) => {
const { useAssistantActions } = useAssistantContext();
const handleReset = () => {
useAssistantActions.getState().switchToThread(null);
Expand All @@ -344,9 +342,11 @@ const Sidebar: FC<AssistantPlaygroundProps> = ({
};

type AssistantPlaygroundProps = {
modelSelector: {
models?: string[];
};
modelSelector?:
| {
models?: string[] | undefined;
}
| undefined;
};

export const AssistantPlayground: FC<AssistantPlaygroundProps> = ({
Expand Down
2 changes: 1 addition & 1 deletion packages/react-syntax-highlighter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@assistant-ui/tsconfig": "workspace:*",
"eslint-config-next": "14.2.5",
"tsup": "8.1.0"
"tsup": "8.1.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"postcss-nested": "^6.0.1",
"tailwindcss": "^3.4.6",
"tailwindcss-animate": "^1.0.7",
"tsup": "8.1.0",
"tsup": "8.1.2",
"tsx": "^4.16.2"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/shadcn-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"eslint": "^8",
"lucide-react": "^0.408.0",
"react": "^18.3.1",
"react-resizable-panels": "^2.0.20",
"react-resizable-panels": "^2.0.21",
"react-syntax-highlighter": "^15.5.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
Expand Down
Loading

0 comments on commit f685520

Please sign in to comment.