@deepagents/react-genai 7.42.3 → 7.43.0
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.
- package/README.md +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1278 -2327
- package/dist/index.js.map +1 -1
- package/dist/lib/chat/agent-context.d.ts +1 -2
- package/dist/lib/chat/agent-context.d.ts.map +1 -1
- package/dist/lib/chat/chat-manager.d.ts +8 -26
- package/dist/lib/chat/chat-manager.d.ts.map +1 -1
- package/dist/lib/chat/chat.d.ts.map +1 -1
- package/dist/lib/chat/citations.d.ts +4 -6
- package/dist/lib/chat/citations.d.ts.map +1 -1
- package/package.json +10 -11
- package/dist/lib/dynamic-ui/DynamicRenderer.d.ts +0 -8
- package/dist/lib/dynamic-ui/DynamicRenderer.d.ts.map +0 -1
- package/dist/lib/dynamic-ui/error-boundary.d.ts +0 -23
- package/dist/lib/dynamic-ui/error-boundary.d.ts.map +0 -1
- package/dist/lib/dynamic-ui/index.d.ts +0 -8
- package/dist/lib/dynamic-ui/index.d.ts.map +0 -1
- package/dist/lib/dynamic-ui/safe-scope.d.ts +0 -4
- package/dist/lib/dynamic-ui/safe-scope.d.ts.map +0 -1
- package/dist/lib/dynamic-ui/transpiler.d.ts +0 -10
- package/dist/lib/dynamic-ui/transpiler.d.ts.map +0 -1
- package/dist/lib/elements/PromptInput.d.ts +0 -134
- package/dist/lib/elements/PromptInput.d.ts.map +0 -1
|
@@ -19,7 +19,7 @@ export interface AgentConfigContextValue {
|
|
|
19
19
|
stop: () => void;
|
|
20
20
|
}
|
|
21
21
|
type AgentMessagesContextValue = UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>;
|
|
22
|
-
export declare function AgentProvider({ chatId, children, skipInitialView, debugMode: debugOn, registry, initialMessages, transport, resume, onData, onFinish, onResetChat,
|
|
22
|
+
export declare function AgentProvider({ chatId, children, skipInitialView, debugMode: debugOn, registry, initialMessages, transport, resume, onData, onFinish, onResetChat, }: {
|
|
23
23
|
chatId: string;
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
skipInitialView?: boolean;
|
|
@@ -34,7 +34,6 @@ export declare function AgentProvider({ chatId, children, skipInitialView, debug
|
|
|
34
34
|
/** Observes response termination; inspect isAbort, isDisconnect, and isError. */
|
|
35
35
|
onFinish?: ChatOnFinishCallback<UIMessage<unknown, UIDataTypes, UITools>>;
|
|
36
36
|
onResetChat: (chatId: string) => void;
|
|
37
|
-
queueEnabled?: boolean;
|
|
38
37
|
}): import("react").JSX.Element;
|
|
39
38
|
export declare function useAgent(): AgentConfigContextValue;
|
|
40
39
|
export declare function useAgentStatus(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-context.d.ts","sources":["../../../src/lib/chat/agent-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,WAAW,EACX,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,EACL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"agent-context.d.ts","sources":["../../../src/lib/chat/agent-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,WAAW,EACX,OAAO,EACR,MAAM,IAAI,CAAC;AACZ,OAAO,EACL,KAAK,SAAS,EAQf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,oBAAoB,EA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,YAAY,CAAC,CAAC;IAC3C,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,MAAM,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,iFAAiF;IACjF,QAAQ,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,+BAuFA;AAED,wBAAgB,QAAQ,4BAMvB;AAED,wBAAgB,cAAc;;EAG7B;AAED,wBAAgB,YAAY;kBAtI2B,OAAO;EA4I7D;AAED,wBAAgB,gBAAgB,8BAM/B;AAED,wBAAgB,cAAc,gBAM7B"}
|
|
@@ -1,38 +1,28 @@
|
|
|
1
1
|
import type { UIMessage, UseChatHelpers } from '@ai-sdk/react';
|
|
2
2
|
import { type UIDataTypes, type UITools } from 'ai';
|
|
3
|
-
import type { ComposerDraftSource } from '@deepagents/react-input/browser';
|
|
4
3
|
import type { ZukhrufChatTransport } from './zukhruf-chat-transport.ts';
|
|
5
4
|
type UploadFile = ZukhrufChatTransport['uploadFile'];
|
|
6
5
|
export interface ChatSubmission {
|
|
7
6
|
prompt: string;
|
|
8
7
|
persistedPrompt: string;
|
|
9
|
-
editableSource?: ComposerDraftSource;
|
|
10
8
|
metadata?: Record<string, unknown>;
|
|
11
9
|
/** Image files referenced from `prompt`, in `[Image #N]` order. */
|
|
12
10
|
files?: File[];
|
|
13
11
|
}
|
|
14
|
-
export interface QueuedMessage {
|
|
15
|
-
id: string;
|
|
16
|
-
prompt: string;
|
|
17
|
-
persistedPrompt: string;
|
|
18
|
-
editableSource?: ComposerDraftSource;
|
|
19
|
-
metadata?: Record<string, unknown>;
|
|
20
|
-
/** Receipts for the submission's files, in `[Image #N]` order; sent as `metadata.uploads`. */
|
|
21
|
-
uploads?: Awaited<ReturnType<UploadFile>>[];
|
|
22
|
-
}
|
|
23
|
-
type Listener = () => void;
|
|
24
12
|
type BoundChat = UseChatHelpers<UIMessage<unknown, UIDataTypes, UITools>>;
|
|
25
13
|
export interface ChatManagerOptions {
|
|
26
14
|
chat: BoundChat;
|
|
27
|
-
queueEnabled?: boolean;
|
|
28
15
|
uploadFile: UploadFile;
|
|
29
16
|
onResetChat: (chatId: string) => void;
|
|
30
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The prompt as the user typed it (`/prompts:recent from today`, a collapsed
|
|
20
|
+
* paste), which `submit` sends in the message's metadata beside the expanded
|
|
21
|
+
* prompt the model reads. Label a queued message with it.
|
|
22
|
+
*/
|
|
23
|
+
export declare function persistedPromptOf(message: UIMessage): string;
|
|
31
24
|
export declare class ChatManager {
|
|
32
25
|
private chat;
|
|
33
|
-
private listeners;
|
|
34
|
-
private _queue;
|
|
35
|
-
private _queueEnabled;
|
|
36
26
|
private readonly uploadFile;
|
|
37
27
|
/**
|
|
38
28
|
* Runs submissions one at a time, in order, so a text-only message never
|
|
@@ -50,14 +40,8 @@ export declare class ChatManager {
|
|
|
50
40
|
submit(submission: ChatSubmission): Promise<void>;
|
|
51
41
|
private uploadFiles;
|
|
52
42
|
private assertCurrentChat;
|
|
53
|
-
|
|
54
|
-
private
|
|
55
|
-
/** Dispatch only from a committed queue and SDK status snapshot. */
|
|
56
|
-
processQueue(queue: readonly QueuedMessage[]): void;
|
|
57
|
-
removeFromQueue(id: string): void;
|
|
58
|
-
clearQueue(): void;
|
|
59
|
-
get queue(): readonly QueuedMessage[];
|
|
60
|
-
get queueEnabled(): boolean;
|
|
43
|
+
/** While a response is in flight the chat queues the message, and sends it once that response finishes. */
|
|
44
|
+
private send;
|
|
61
45
|
clearChat(): void;
|
|
62
46
|
setChat(messages: UIMessage[]): void;
|
|
63
47
|
stop(): void;
|
|
@@ -68,8 +52,6 @@ export declare class ChatManager {
|
|
|
68
52
|
getLastAssistantMessage(): UIMessage | null;
|
|
69
53
|
/** Whether the bound chat has messages: the conversation has started. */
|
|
70
54
|
get hasSubmitted(): boolean;
|
|
71
|
-
subscribe: (listener: Listener) => (() => void);
|
|
72
|
-
private notify;
|
|
73
55
|
}
|
|
74
56
|
export {};
|
|
75
57
|
//# sourceMappingURL=chat-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-manager.d.ts","sources":["../../../src/lib/chat/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAqB,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-manager.d.ts","sources":["../../../src/lib/chat/chat-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAqB,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,IAAI,CAAC;AAKvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,UAAU,GAAG,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,mEAAmE;IACnE,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;AAED,KAAK,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,K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5
|
}
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* and the WorkspaceBody Sources panel so their numbering stays in sync.
|
|
7
|
+
* Deduped by URL in first-seen order, so a source keeps one citation number
|
|
8
|
+
* across every message of the chat.
|
|
10
9
|
*/
|
|
11
10
|
export declare function extractSourcesFromMessages(messages: UIMessage[]): CitationSource[];
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* in practice when the same `extractSourcesFromMessages` output is used).
|
|
12
|
+
* The 1-based citation number of `url` in `sources`, or null when `sources`
|
|
13
|
+
* does not hold it.
|
|
16
14
|
*/
|
|
17
15
|
export declare function citationIndexOf(sources: CitationSource[], url: string): number | null;
|
|
18
16
|
//# sourceMappingURL=citations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations.d.ts","sources":["../../../src/lib/chat/citations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED
|
|
1
|
+
{"version":3,"file":"citations.d.ts","sources":["../../../src/lib/chat/citations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,SAAS,EAAE,GACpB,cAAc,EAAE,CAYlB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,cAAc,EAAE,EACzB,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,IAAI,CAGf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepagents/react-genai",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.43.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ai-sdk/react": "^4.0.186",
|
|
34
|
-
"@deepagents/context": "7.
|
|
35
|
-
"@deepagents/elements": "7.
|
|
36
|
-
"@deepagents/react-formatters": "7.
|
|
37
|
-
"@deepagents/react-input": "7.
|
|
34
|
+
"@deepagents/context": "7.43.0",
|
|
35
|
+
"@deepagents/elements": "7.43.0",
|
|
36
|
+
"@deepagents/react-formatters": "7.43.0",
|
|
37
|
+
"@deepagents/react-input": "7.43.0",
|
|
38
38
|
"@types/mdast": "^4.0.4",
|
|
39
39
|
"ai": "^7.0.181",
|
|
40
40
|
"cn": "^0.4.0",
|
|
@@ -47,16 +47,15 @@
|
|
|
47
47
|
"remark-directive": "^4.0.0",
|
|
48
48
|
"remark-gfm": "^4.0.1",
|
|
49
49
|
"remark-parse": "^11.0.0",
|
|
50
|
-
"streamdown": "^2.
|
|
51
|
-
"sucrase": "^3.35.0",
|
|
50
|
+
"streamdown": "^2.8.1",
|
|
52
51
|
"unified": "^11.0.5",
|
|
53
52
|
"unist-util-visit": "^5.1.0",
|
|
54
53
|
"use-stick-to-bottom": "^1.1.3",
|
|
55
54
|
"zod": "^4.6.7"
|
|
56
55
|
},
|
|
57
56
|
"peerDependencies": {
|
|
58
|
-
"@zukhruf/shadcn": "^0.8.
|
|
59
|
-
"@zukhruf/ui": "^0.8.
|
|
57
|
+
"@zukhruf/shadcn": "^0.8.144",
|
|
58
|
+
"@zukhruf/ui": "^0.8.144",
|
|
60
59
|
"react": "^19.2.8",
|
|
61
60
|
"react-dom": "^19.2.8"
|
|
62
61
|
},
|
|
@@ -72,8 +71,8 @@
|
|
|
72
71
|
"@types/react": "19.2.18",
|
|
73
72
|
"@types/react-dom": "19.2.5",
|
|
74
73
|
"@vitejs/plugin-react": "^6.0.3",
|
|
75
|
-
"@zukhruf/shadcn": "^0.8.
|
|
76
|
-
"@zukhruf/ui": "^0.8.
|
|
74
|
+
"@zukhruf/shadcn": "^0.8.144",
|
|
75
|
+
"@zukhruf/ui": "^0.8.144",
|
|
77
76
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
78
77
|
"happy-dom": "20.11.2",
|
|
79
78
|
"react": "19.2.8",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface DynamicRendererProps {
|
|
3
|
-
code: string;
|
|
4
|
-
onRetry?: (errorMessage: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function DynamicRenderer({ code, onRetry }: DynamicRendererProps): React.JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=DynamicRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicRenderer.d.ts","sources":["../../../src/lib/dynamic-ui/DynamicRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AA6CD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,oBAAoB,qBAoBtE"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface ErrorBoundaryProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
code: string;
|
|
5
|
-
onRetry?: (errorMessage: string) => void;
|
|
6
|
-
}
|
|
7
|
-
interface ErrorBoundaryState {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error: Error | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class DynamicUIErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
12
|
-
constructor(props: ErrorBoundaryProps);
|
|
13
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
14
|
-
handleRetry: () => void;
|
|
15
|
-
render(): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | Iterable<React.ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | null | undefined;
|
|
16
|
-
}
|
|
17
|
-
export declare function DynamicUIError({ error, code, onRetry, }: {
|
|
18
|
-
error: Error | null;
|
|
19
|
-
code: string;
|
|
20
|
-
onRetry?: () => void;
|
|
21
|
-
}): React.JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=error-boundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.d.ts","sources":["../../../src/lib/dynamic-ui/error-boundary.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CACzD,kBAAkB,EAClB,kBAAkB,CACnB;IACC,YAAY,KAAK,EAAE,kBAAkB,EAGpC;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAEhE;IAED,WAAW,aAIT;IAEO,MAAM,oSAYd;CACF;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,qBAqCA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { DynamicRenderer } from './DynamicRenderer.tsx';
|
|
2
|
-
export { DynamicUIErrorBoundary, DynamicUIError } from './error-boundary.tsx';
|
|
3
|
-
export { ToolError } from '../components/tool-error.tsx';
|
|
4
|
-
export type { ToolErrorProps } from '../components/tool-error.tsx';
|
|
5
|
-
export { createSafeScope, getScopeKeys, getScopeValues } from './safe-scope.ts';
|
|
6
|
-
export { transpileJSX, wrapAsComponent } from './transpiler.ts';
|
|
7
|
-
export type { TranspileResult } from './transpiler.ts';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../src/lib/dynamic-ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safe-scope.d.ts","sources":["../../../src/lib/dynamic-ui/safe-scope.ts"],"names":[],"mappings":"AAoBA,wBAAgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmCzD;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED,wBAAgB,cAAc,IAAI,OAAO,EAAE,CAE1C"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type TranspileResult = {
|
|
2
|
-
success: true;
|
|
3
|
-
code: string;
|
|
4
|
-
} | {
|
|
5
|
-
success: false;
|
|
6
|
-
error: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function transpileJSX(code: string): TranspileResult;
|
|
9
|
-
export declare function wrapAsComponent(transpiledCode: string): string;
|
|
10
|
-
//# sourceMappingURL=transpiler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transpiler.d.ts","sources":["../../../src/lib/dynamic-ui/transpiler.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GACzB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAqBtE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAuB1D;AAwBD,wBAAgB,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAe9D"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, DropdownMenu, DropdownMenuContent, DropdownMenuItem, HoverCard, HoverCardContent, HoverCardTrigger, InputGroupAddon, InputGroupButton, InputGroupTextarea, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@zukhruf/shadcn';
|
|
2
|
-
import type { ChatStatus, FileUIPart } from 'ai';
|
|
3
|
-
import { type ComponentProps, type HTMLAttributes, type PropsWithChildren, type ReactNode, type RefObject, type SubmitEvent } from 'react';
|
|
4
|
-
export type AttachmentsContext = {
|
|
5
|
-
files: (FileUIPart & {
|
|
6
|
-
id: string;
|
|
7
|
-
})[];
|
|
8
|
-
add: (files: File[] | FileList) => void;
|
|
9
|
-
remove: (id: string) => void;
|
|
10
|
-
clear: () => void;
|
|
11
|
-
openFileDialog: () => void;
|
|
12
|
-
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
13
|
-
};
|
|
14
|
-
export type TextInputContext = {
|
|
15
|
-
value: string;
|
|
16
|
-
setInput: (v: string) => void;
|
|
17
|
-
clear: () => void;
|
|
18
|
-
};
|
|
19
|
-
export type PromptInputControllerProps = {
|
|
20
|
-
textInput: TextInputContext;
|
|
21
|
-
attachments: AttachmentsContext;
|
|
22
|
-
/** INTERNAL: Allows PromptInput to register its file textInput + "open" callback */
|
|
23
|
-
__registerFileInput: (ref: RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
24
|
-
};
|
|
25
|
-
export declare const usePromptInputController: () => PromptInputControllerProps;
|
|
26
|
-
export declare const useProviderAttachments: () => AttachmentsContext;
|
|
27
|
-
export type PromptInputProviderProps = PropsWithChildren<{
|
|
28
|
-
initialInput?: string;
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Optional global provider that lifts PromptInput state outside of PromptInput.
|
|
32
|
-
* If you don't use it, PromptInput stays fully self-managed.
|
|
33
|
-
*/
|
|
34
|
-
export declare function PromptInputProvider({ initialInput: initialTextInput, children, }: PromptInputProviderProps): import("react").JSX.Element;
|
|
35
|
-
export declare const usePromptInputAttachments: () => AttachmentsContext;
|
|
36
|
-
export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
|
|
37
|
-
data: FileUIPart & {
|
|
38
|
-
id: string;
|
|
39
|
-
};
|
|
40
|
-
className?: string;
|
|
41
|
-
};
|
|
42
|
-
export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react").JSX.Element;
|
|
43
|
-
export type PromptInputAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
44
|
-
children: (attachment: FileUIPart & {
|
|
45
|
-
id: string;
|
|
46
|
-
}) => ReactNode;
|
|
47
|
-
};
|
|
48
|
-
export declare function PromptInputAttachments({ children, className, ...props }: PromptInputAttachmentsProps): import("react").JSX.Element | null;
|
|
49
|
-
export type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
50
|
-
label?: string;
|
|
51
|
-
};
|
|
52
|
-
export declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => import("react").JSX.Element;
|
|
53
|
-
export type PromptInputMessage = {
|
|
54
|
-
text: string;
|
|
55
|
-
files: FileUIPart[];
|
|
56
|
-
};
|
|
57
|
-
export type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, 'onSubmit' | 'onError'> & {
|
|
58
|
-
accept?: string;
|
|
59
|
-
multiple?: boolean;
|
|
60
|
-
globalDrop?: boolean;
|
|
61
|
-
maxFiles?: number;
|
|
62
|
-
maxFileSize?: number;
|
|
63
|
-
onError?: (err: {
|
|
64
|
-
code: 'max_files' | 'max_file_size' | 'accept';
|
|
65
|
-
message: string;
|
|
66
|
-
}) => void;
|
|
67
|
-
onSubmit: (message: PromptInputMessage, event: SubmitEvent<HTMLFormElement>) => void | Promise<void>;
|
|
68
|
-
};
|
|
69
|
-
export declare const PromptInput: ({ className, accept, multiple, globalDrop, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react").JSX.Element;
|
|
70
|
-
export type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
71
|
-
export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react").JSX.Element;
|
|
72
|
-
export type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
73
|
-
export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react").JSX.Element;
|
|
74
|
-
export type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
75
|
-
export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react").JSX.Element;
|
|
76
|
-
export type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
77
|
-
export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react").JSX.Element;
|
|
78
|
-
export type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
|
|
79
|
-
export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react").JSX.Element;
|
|
80
|
-
export type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
|
|
81
|
-
export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react").JSX.Element;
|
|
82
|
-
export type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
83
|
-
export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react").JSX.Element;
|
|
84
|
-
export type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
85
|
-
export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react").JSX.Element;
|
|
86
|
-
export type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
87
|
-
export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react").JSX.Element;
|
|
88
|
-
export type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
89
|
-
export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react").JSX.Element;
|
|
90
|
-
export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
91
|
-
status?: ChatStatus;
|
|
92
|
-
};
|
|
93
|
-
export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react").JSX.Element;
|
|
94
|
-
export type PromptInputSelectProps = ComponentProps<typeof Select>;
|
|
95
|
-
export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react").JSX.Element;
|
|
96
|
-
export type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
97
|
-
export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react").JSX.Element;
|
|
98
|
-
export type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
|
|
99
|
-
export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react").JSX.Element;
|
|
100
|
-
export type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
|
|
101
|
-
export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react").JSX.Element;
|
|
102
|
-
export type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
|
|
103
|
-
export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react").JSX.Element;
|
|
104
|
-
export type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
105
|
-
export declare const PromptInputHoverCard: (props: PromptInputHoverCardProps) => import("react").JSX.Element;
|
|
106
|
-
export type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
107
|
-
export declare const PromptInputHoverCardTrigger: ({ delay, closeDelay, ...props }: PromptInputHoverCardTriggerProps) => import("react").JSX.Element;
|
|
108
|
-
export type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
109
|
-
export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react").JSX.Element;
|
|
110
|
-
export type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
111
|
-
export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react").JSX.Element;
|
|
112
|
-
export type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
|
|
113
|
-
export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react").JSX.Element;
|
|
114
|
-
export type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
|
|
115
|
-
export declare const PromptInputTabLabel: ({ className, children, ...props }: PromptInputTabLabelProps) => import("react").JSX.Element;
|
|
116
|
-
export type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
117
|
-
export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react").JSX.Element;
|
|
118
|
-
export type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
|
|
119
|
-
export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react").JSX.Element;
|
|
120
|
-
export type PromptInputCommandProps = ComponentProps<typeof Command>;
|
|
121
|
-
export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react").JSX.Element;
|
|
122
|
-
export type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
|
|
123
|
-
export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react").JSX.Element;
|
|
124
|
-
export type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
|
|
125
|
-
export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react").JSX.Element;
|
|
126
|
-
export type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
127
|
-
export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react").JSX.Element;
|
|
128
|
-
export type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
|
|
129
|
-
export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react").JSX.Element;
|
|
130
|
-
export type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
|
|
131
|
-
export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react").JSX.Element;
|
|
132
|
-
export type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
133
|
-
export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react").JSX.Element;
|
|
134
|
-
//# sourceMappingURL=PromptInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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