@vegintech/langchain-react-agent 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -0
  2. package/package.json +2 -1
package/dist/index.mjs CHANGED
@@ -2,6 +2,7 @@ import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo
2
2
  import { Actions, Bubble, Sender, Think, ThoughtChain } from "@ant-design/x";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Streamdown } from "streamdown";
5
+ import { code } from "@streamdown/code";
5
6
  import { useStream } from "@langchain/langgraph-sdk/react";
6
7
  //#region src/components/ChatInput.tsx
7
8
  const slotConfig = [];
@@ -180,6 +181,7 @@ const ContentBlock = ({ block, index, components, securityConfig }) => {
180
181
  },
181
182
  allowedTags: securityConfig?.allowedTags,
182
183
  literalTagContent: securityConfig?.literalTagContent,
184
+ plugins: { code },
183
185
  controls: { table: {
184
186
  copy: false,
185
187
  download: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegintech/langchain-react-agent",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "LangChain Agent UI component library for React",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -25,6 +25,7 @@
25
25
  "dependencies": {
26
26
  "@ant-design/x": "^2.4.0",
27
27
  "@langchain/langgraph-sdk": "^1.8.7",
28
+ "@streamdown/code": "^1.1.1",
28
29
  "streamdown": "^2.5.0"
29
30
  },
30
31
  "devDependencies": {