diff --git a/apps/docs/package.json b/apps/docs/package.json index 84e9b2d99..29a124890 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -11,12 +11,12 @@ "dependencies": { "@ai-sdk/openai": "^0.0.54", "@ai-sdk/provider": "^0.0.22", - "@assistant-ui/react": "workspace:^", - "@assistant-ui/react-ai-sdk": "workspace:^", - "@assistant-ui/react-langgraph": "workspace:^", - "@assistant-ui/react-markdown": "workspace:^", - "@assistant-ui/react-syntax-highlighter": "workspace:^", - "@assistant-ui/tsconfig": "workspace:^", + "@assistant-ui/react": "workspace:*", + "@assistant-ui/react-ai-sdk": "workspace:*", + "@assistant-ui/react-langgraph": "workspace:*", + "@assistant-ui/react-markdown": "workspace:*", + "@assistant-ui/react-syntax-highlighter": "workspace:*", + "@assistant-ui/tsconfig": "workspace:*", "@langchain/core": "^0.2.31", "@langchain/langgraph-sdk": "^0.0.8", "@radix-ui/react-avatar": "^1.1.0", diff --git a/examples/with-langgraph/app/page.tsx b/examples/with-langgraph/app/page.tsx index b70cbf71e..b99f72efc 100644 --- a/examples/with-langgraph/app/page.tsx +++ b/examples/with-langgraph/app/page.tsx @@ -4,6 +4,9 @@ import { Thread } from "@assistant-ui/react"; import { PriceSnapshotTool } from "@/components/tools/price-snapshot/PriceSnapshotTool"; import { PurchaseStockTool } from "@/components/tools/purchase-stock/PurchaseStockTool"; import { ToolFallback } from "@/components/tools/ToolFallback"; +import { makeMarkdownText } from "@assistant-ui/react-markdown"; + +const MarkdownText = makeMarkdownText({}); export default function Home() { return ( @@ -22,7 +25,7 @@ export default function Home() { }, ], }} - assistantMessage={{ components: { ToolFallback } }} + assistantMessage={{ components: { Text: MarkdownText, ToolFallback } }} tools={[PriceSnapshotTool, PurchaseStockTool]} /> diff --git a/examples/with-langgraph/package.json b/examples/with-langgraph/package.json index 82caa5e4a..883e1e050 100644 --- a/examples/with-langgraph/package.json +++ b/examples/with-langgraph/package.json @@ -11,6 +11,7 @@ "dependencies": { "@assistant-ui/react": "workspace:*", "@assistant-ui/react-langgraph": "workspace:*", + "@assistant-ui/react-markdown": "workspace:*", "@langchain/langgraph-sdk": "^0.0.8", "@radix-ui/react-slot": "^1.1.0", "class-variance-authority": "^0.7.0", diff --git a/examples/with-langgraph/tailwind.config.ts b/examples/with-langgraph/tailwind.config.ts index 88de2f431..ca4024974 100644 --- a/examples/with-langgraph/tailwind.config.ts +++ b/examples/with-langgraph/tailwind.config.ts @@ -79,6 +79,7 @@ const config = { plugins: [ require("tailwindcss-animate"), require("@assistant-ui/react/tailwindcss")({ shadcn: true }), + require("@assistant-ui/react-markdown/tailwindcss"), ], } satisfies Config; diff --git a/examples/with-playground/package.json b/examples/with-playground/package.json index 2cf1274f8..8774a5d82 100644 --- a/examples/with-playground/package.json +++ b/examples/with-playground/package.json @@ -20,7 +20,7 @@ "tailwindcss-animate": "^1.0.7" }, "devDependencies": { - "@assistant-ui/tsconfig": "workspace:^", + "@assistant-ui/tsconfig": "workspace:*", "@types/node": "^22", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/packages/react-markdown/package.json b/packages/react-markdown/package.json index 54ee7b73a..f0575f2d9 100644 --- a/packages/react-markdown/package.json +++ b/packages/react-markdown/package.json @@ -61,7 +61,7 @@ } }, "devDependencies": { - "@assistant-ui/tailwindcss-transformer": "workspace:^", + "@assistant-ui/tailwindcss-transformer": "workspace:*", "@assistant-ui/tsconfig": "workspace:*", "@types/node": "^22.5.2", "autoprefixer": "^10.4.20", diff --git a/packages/shadcn-registry/package.json b/packages/shadcn-registry/package.json index 94e05c127..c72016375 100644 --- a/packages/shadcn-registry/package.json +++ b/packages/shadcn-registry/package.json @@ -7,7 +7,7 @@ "devDependencies": { "@assistant-ui/react": "workspace:*", "@assistant-ui/react-markdown": "workspace:*", - "@assistant-ui/react-syntax-highlighter": "workspace:^", + "@assistant-ui/react-syntax-highlighter": "workspace:*", "@assistant-ui/tsconfig": "workspace:*", "@radix-ui/react-avatar": "^1.1.0", "@radix-ui/react-icons": "^1.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b7a326b24..40602858c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,22 +33,22 @@ importers: specifier: ^0.0.22 version: 0.0.22 '@assistant-ui/react': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/react '@assistant-ui/react-ai-sdk': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/react-ai-sdk '@assistant-ui/react-langgraph': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/react-langgraph '@assistant-ui/react-markdown': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/react-markdown '@assistant-ui/react-syntax-highlighter': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/react-syntax-highlighter '@assistant-ui/tsconfig': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/tsconfig '@langchain/core': specifier: ^0.2.31 @@ -381,6 +381,9 @@ importers: '@assistant-ui/react-langgraph': specifier: workspace:* version: link:../../packages/react-langgraph + '@assistant-ui/react-markdown': + specifier: workspace:* + version: link:../../packages/react-markdown '@langchain/langgraph-sdk': specifier: ^0.0.8 version: 0.0.8 @@ -550,7 +553,7 @@ importers: version: 1.0.7(tailwindcss@3.4.10) devDependencies: '@assistant-ui/tsconfig': - specifier: workspace:^ + specifier: workspace:* version: link:../../packages/tsconfig '@types/node': specifier: ^22 @@ -1038,7 +1041,7 @@ importers: version: 9.0.1(@types/react@18.3.5)(react@18.3.1) devDependencies: '@assistant-ui/tailwindcss-transformer': - specifier: workspace:^ + specifier: workspace:* version: link:../tailwindcss-transformer '@assistant-ui/tsconfig': specifier: workspace:* @@ -1202,7 +1205,7 @@ importers: specifier: workspace:* version: link:../react-markdown '@assistant-ui/react-syntax-highlighter': - specifier: workspace:^ + specifier: workspace:* version: link:../react-syntax-highlighter '@assistant-ui/tsconfig': specifier: workspace:* @@ -8747,7 +8750,7 @@ snapshots: eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0) - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) eslint-plugin-jsx-a11y: 6.9.0(eslint@8.57.0) eslint-plugin-react: 7.35.0(eslint@8.57.0) eslint-plugin-react-hooks: 4.6.2(eslint@8.57.0) @@ -8778,7 +8781,7 @@ snapshots: is-bun-module: 1.1.0 is-glob: 4.0.3 optionalDependencies: - eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0) + eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0) transitivePeerDependencies: - '@typescript-eslint/parser' - eslint-import-resolver-node @@ -8796,7 +8799,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0): + eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.5.4))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0): dependencies: array-includes: 3.1.8 array.prototype.findlastindex: 1.2.5