@deepagents/react-genai 7.33.0 → 7.34.1

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.
@@ -1,21 +1,18 @@
1
- import { Button } from '@zukhruf/shadcn';
2
- import type { ComponentProps, HTMLAttributes, ReactNode } from 'react';
3
- export type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
1
+ import { Button, CodeBlock as CodeBlockRoot } from '@zukhruf/shadcn';
2
+ import type { ComponentProps, ReactNode } from 'react';
3
+ export type CodeBlockProps = ComponentProps<typeof CodeBlockRoot> & {
4
4
  code: string;
5
5
  language: string;
6
6
  showLineNumbers?: boolean;
7
- /**
8
- * Soft-wrap long lines. The container is `overflow-hidden`, so without this
9
- * anything past the right edge is clipped with no scrollbar to recover it.
10
- */
7
+ /** Soft-wrap long lines instead of scrolling them horizontally. */
11
8
  wrap?: boolean;
12
9
  children?: ReactNode;
13
10
  };
14
- export declare const CodeBlock: ({ code, language, showLineNumbers, wrap, className, children, ...props }: CodeBlockProps) => import("react").JSX.Element;
11
+ export declare const CodeBlock: ({ code, language, showLineNumbers, wrap, children, ...props }: CodeBlockProps) => import("react").JSX.Element;
15
12
  export type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
16
13
  onCopy?: () => void;
17
14
  onError?: (error: Error) => void;
18
15
  timeout?: number;
19
16
  };
20
17
  export declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => import("react").JSX.Element;
21
- //# sourceMappingURL=CodeBlock.d.ts.map
18
+ //# sourceMappingURL=code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.d.ts","sources":["../../../src/lib/elements/code-block.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EAIN,SAAS,IAAI,aAAa,EAE3B,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvD,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,GAAG;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mEAAmE;IACnE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,SAAS,kEAOnB,cAAc,gCAgBhB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gEAO7B,wBAAwB,gCA+B1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepagents/react-genai",
3
- "version": "7.33.0",
3
+ "version": "7.34.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,13 +30,13 @@
30
30
  "./styles.css": "./styles.css"
31
31
  },
32
32
  "dependencies": {
33
- "@ai-sdk/react": "^4.0.170",
34
- "@deepagents/context": "7.33.0",
35
- "@deepagents/elements": "7.33.0",
36
- "@deepagents/react-formatters": "7.33.0",
37
- "@deepagents/react-input": "7.33.0",
33
+ "@ai-sdk/react": "^4.0.186",
34
+ "@deepagents/context": "7.34.1",
35
+ "@deepagents/elements": "7.34.1",
36
+ "@deepagents/react-formatters": "7.34.1",
37
+ "@deepagents/react-input": "7.34.1",
38
38
  "@types/mdast": "^4.0.4",
39
- "ai": "^7.0.166",
39
+ "ai": "^7.0.181",
40
40
  "cn": "^0.4.0",
41
41
  "html-to-image": "1.11.13",
42
42
  "lodash-es": "^4.18.1",
@@ -44,7 +44,6 @@
44
44
  "mdast-util-directive": "^3.1.0",
45
45
  "mdast-util-to-string": "^4.0.0",
46
46
  "motion": "^12.42.2",
47
- "react-syntax-highlighter": "16.1.1",
48
47
  "remark-directive": "^4.0.0",
49
48
  "remark-gfm": "^4.0.1",
50
49
  "remark-parse": "^11.0.0",
@@ -72,7 +71,6 @@
72
71
  "@types/lodash-es": "^4.17.12",
73
72
  "@types/react": "19.2.18",
74
73
  "@types/react-dom": "19.2.5",
75
- "@types/react-syntax-highlighter": "^15.5.13",
76
74
  "@vitejs/plugin-react": "^6.0.3",
77
75
  "@zukhruf/shadcn": "^0.8.41",
78
76
  "@zukhruf/ui": "^0.8.41",
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeBlock.d.ts","sources":["../../../src/lib/elements/CodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBvE,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,SAAS,6EAQnB,cAAc,gCAkEhB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,gEAO7B,wBAAwB,gCA+B1B,CAAC"}