@deepagents/react-genai 7.0.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/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7085 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/chat/agent-context.d.ts +49 -0
- package/dist/lib/chat/agent-context.d.ts.map +1 -0
- package/dist/lib/chat/chat-manager.d.ts +92 -0
- package/dist/lib/chat/chat-manager.d.ts.map +1 -0
- package/dist/lib/chat/chat.d.ts +51 -0
- package/dist/lib/chat/chat.d.ts.map +1 -0
- package/dist/lib/chat/citations.d.ts +18 -0
- package/dist/lib/chat/citations.d.ts.map +1 -0
- package/dist/lib/chat/client-tool-output.d.ts +11 -0
- package/dist/lib/chat/client-tool-output.d.ts.map +1 -0
- package/dist/lib/chat/markdown-paragraph.d.ts +5 -0
- package/dist/lib/chat/markdown-paragraph.d.ts.map +1 -0
- package/dist/lib/chat/message-parts.d.ts +22 -0
- package/dist/lib/chat/message-parts.d.ts.map +1 -0
- package/dist/lib/chat/prefill.d.ts +8 -0
- package/dist/lib/chat/prefill.d.ts.map +1 -0
- package/dist/lib/chat/read-only-transport.d.ts +12 -0
- package/dist/lib/chat/read-only-transport.d.ts.map +1 -0
- package/dist/lib/chat/tool-abort.d.ts +5 -0
- package/dist/lib/chat/tool-abort.d.ts.map +1 -0
- package/dist/lib/chat/tools-schema.d.ts +8 -0
- package/dist/lib/chat/tools-schema.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts +46 -0
- package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/compact-disclosure.d.ts +5 -0
- package/dist/lib/chat/trajectory/compact-disclosure.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/index.d.ts +14 -0
- package/dist/lib/chat/trajectory/index.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/messages-context.d.ts +18 -0
- package/dist/lib/chat/trajectory/messages-context.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/nested-trajectory.d.ts +16 -0
- package/dist/lib/chat/trajectory/nested-trajectory.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/segments/index.d.ts +72 -0
- package/dist/lib/chat/trajectory/segments/index.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/tool-label.d.ts +24 -0
- package/dist/lib/chat/trajectory/tool-label.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts +12 -0
- package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts +103 -0
- package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts +15 -0
- package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/messages-error.d.ts +5 -0
- package/dist/lib/chat/trajectory/trajectories/messages-error.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts +20 -0
- package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/messages.d.ts +23 -0
- package/dist/lib/chat/trajectory/trajectories/messages.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts +3 -0
- package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/timeline-dot.d.ts +4 -0
- package/dist/lib/chat/trajectory/trajectories/timeline-dot.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts +7 -0
- package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/timeline.d.ts +23 -0
- package/dist/lib/chat/trajectory/trajectories/timeline.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts +22 -0
- package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/trajectory-thinking.d.ts +2 -0
- package/dist/lib/chat/trajectory/trajectories/trajectory-thinking.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectories/user-message.d.ts +11 -0
- package/dist/lib/chat/trajectory/trajectories/user-message.d.ts.map +1 -0
- package/dist/lib/chat/trajectory/trajectory-segments.d.ts +37 -0
- package/dist/lib/chat/trajectory/trajectory-segments.d.ts.map +1 -0
- package/dist/lib/chat/usage.d.ts +18 -0
- package/dist/lib/chat/usage.d.ts.map +1 -0
- package/dist/lib/chat/zukhruf-chat-transport.d.ts +51 -0
- package/dist/lib/chat/zukhruf-chat-transport.d.ts.map +1 -0
- package/dist/lib/components/ChatAction.d.ts +8 -0
- package/dist/lib/components/ChatAction.d.ts.map +1 -0
- package/dist/lib/components/ChatComposer.d.ts +24 -0
- package/dist/lib/components/ChatComposer.d.ts.map +1 -0
- package/dist/lib/components/ChatTextarea.d.ts +7 -0
- package/dist/lib/components/ChatTextarea.d.ts.map +1 -0
- package/dist/lib/components/CitationPill.d.ts +6 -0
- package/dist/lib/components/CitationPill.d.ts.map +1 -0
- package/dist/lib/components/InteractiveResponse.d.ts +8 -0
- package/dist/lib/components/InteractiveResponse.d.ts.map +1 -0
- package/dist/lib/components/PendingToolInput.d.ts +12 -0
- package/dist/lib/components/PendingToolInput.d.ts.map +1 -0
- package/dist/lib/components/SubmitButton.d.ts +8 -0
- package/dist/lib/components/SubmitButton.d.ts.map +1 -0
- package/dist/lib/components/Tip/TipLine.d.ts +4 -0
- package/dist/lib/components/Tip/TipLine.d.ts.map +1 -0
- package/dist/lib/components/Tip/TipProvider.d.ts +21 -0
- package/dist/lib/components/Tip/TipProvider.d.ts.map +1 -0
- package/dist/lib/components/Tip/index.d.ts +4 -0
- package/dist/lib/components/Tip/index.d.ts.map +1 -0
- package/dist/lib/components/queue.d.ts +29 -0
- package/dist/lib/components/queue.d.ts.map +1 -0
- package/dist/lib/components/text-shimmer.d.ts +11 -0
- package/dist/lib/components/text-shimmer.d.ts.map +1 -0
- package/dist/lib/components/tool-debug.d.ts +8 -0
- package/dist/lib/components/tool-debug.d.ts.map +1 -0
- package/dist/lib/components/tool-error.d.ts +11 -0
- package/dist/lib/components/tool-error.d.ts.map +1 -0
- package/dist/lib/copy/assistant-snapshot.d.ts +10 -0
- package/dist/lib/copy/assistant-snapshot.d.ts.map +1 -0
- package/dist/lib/copy/copy-image.d.ts +19 -0
- package/dist/lib/copy/copy-image.d.ts.map +1 -0
- package/dist/lib/copy/snapshot-context.d.ts +9 -0
- package/dist/lib/copy/snapshot-context.d.ts.map +1 -0
- package/dist/lib/copy/snapshot-render.d.ts +20 -0
- package/dist/lib/copy/snapshot-render.d.ts.map +1 -0
- package/dist/lib/copy/use-copy-element-as-image.d.ts +21 -0
- package/dist/lib/copy/use-copy-element-as-image.d.ts.map +1 -0
- package/dist/lib/dynamic-ui/DynamicRenderer.d.ts +8 -0
- package/dist/lib/dynamic-ui/DynamicRenderer.d.ts.map +1 -0
- package/dist/lib/dynamic-ui/error-boundary.d.ts +23 -0
- package/dist/lib/dynamic-ui/error-boundary.d.ts.map +1 -0
- package/dist/lib/dynamic-ui/index.d.ts +8 -0
- package/dist/lib/dynamic-ui/index.d.ts.map +1 -0
- package/dist/lib/dynamic-ui/safe-scope.d.ts +4 -0
- package/dist/lib/dynamic-ui/safe-scope.d.ts.map +1 -0
- package/dist/lib/dynamic-ui/transpiler.d.ts +10 -0
- package/dist/lib/dynamic-ui/transpiler.d.ts.map +1 -0
- package/dist/lib/elements/ChainOfThought.d.ts +28 -0
- package/dist/lib/elements/ChainOfThought.d.ts.map +1 -0
- package/dist/lib/elements/CodeBlock.d.ts +21 -0
- package/dist/lib/elements/CodeBlock.d.ts.map +1 -0
- package/dist/lib/elements/Conversation.d.ts +16 -0
- package/dist/lib/elements/Conversation.d.ts.map +1 -0
- package/dist/lib/elements/Message.d.ts +20 -0
- package/dist/lib/elements/Message.d.ts.map +1 -0
- package/dist/lib/elements/PromptInput.d.ts +184 -0
- package/dist/lib/elements/PromptInput.d.ts.map +1 -0
- package/dist/lib/elements/Response.d.ts +5 -0
- package/dist/lib/elements/Response.d.ts.map +1 -0
- package/dist/lib/elements/Task.d.ts +15 -0
- package/dist/lib/elements/Task.d.ts.map +1 -0
- package/dist/lib/elements/Tool.d.ts +24 -0
- package/dist/lib/elements/Tool.d.ts.map +1 -0
- package/dist/lib/elements/ToolDebug.d.ts +8 -0
- package/dist/lib/elements/ToolDebug.d.ts.map +1 -0
- package/dist/lib/elements/interactive-element.d.ts +17 -0
- package/dist/lib/elements/interactive-element.d.ts.map +1 -0
- package/dist/lib/elements/normalize-streamdown-children.d.ts +2 -0
- package/dist/lib/elements/normalize-streamdown-children.d.ts.map +1 -0
- package/dist/lib/elements/table-panel-extension.d.ts +26 -0
- package/dist/lib/elements/table-panel-extension.d.ts.map +1 -0
- package/dist/lib/hooks/use-async-generator.d.ts +10 -0
- package/dist/lib/hooks/use-async-generator.d.ts.map +1 -0
- package/dist/lib/hooks/use-auto-resize-textarea.d.ts +11 -0
- package/dist/lib/hooks/use-auto-resize-textarea.d.ts.map +1 -0
- package/dist/lib/hooks/use-element-event.d.ts +2 -0
- package/dist/lib/hooks/use-element-event.d.ts.map +1 -0
- package/dist/lib/hooks/use-keyboard.d.ts +8 -0
- package/dist/lib/hooks/use-keyboard.d.ts.map +1 -0
- package/dist/lib/renderers/icon-picker.d.ts +16 -0
- package/dist/lib/renderers/icon-picker.d.ts.map +1 -0
- package/dist/lib/renderers/render-part.d.ts +5 -0
- package/dist/lib/renderers/render-part.d.ts.map +1 -0
- package/dist/lib/tools/helpers.d.ts +15 -0
- package/dist/lib/tools/helpers.d.ts.map +1 -0
- package/dist/lib/tools/index.d.ts +3 -0
- package/dist/lib/tools/index.d.ts.map +1 -0
- package/dist/lib/tools/registry.d.ts +37 -0
- package/dist/lib/tools/registry.d.ts.map +1 -0
- package/dist/lib/ui/ArrowUpIcon.d.ts +11 -0
- package/dist/lib/ui/ArrowUpIcon.d.ts.map +1 -0
- package/dist/lib/ui/TablePanel.d.ts +17 -0
- package/dist/lib/ui/TablePanel.d.ts.map +1 -0
- package/dist/lib/ui/TheButton.d.ts +106 -0
- package/dist/lib/ui/TheButton.d.ts.map +1 -0
- package/dist/lib/ui/UnicodeSpinner.d.ts +25 -0
- package/dist/lib/ui/UnicodeSpinner.d.ts.map +1 -0
- package/dist/lib/ui/use-copy-feedback.d.ts +2 -0
- package/dist/lib/ui/use-copy-feedback.d.ts.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare function MessageQueueRoot({ children, className, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
declare function MessageQueueItem({ children, className, }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
declare function MessageQueueIcon({ className }: {
|
|
11
|
+
className?: string;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
declare function MessageQueueText({ children, className, }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
declare function MessageQueueRemove({ onClick, className, }: {
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export declare const MessageQueue: {
|
|
22
|
+
Root: typeof MessageQueueRoot;
|
|
23
|
+
Item: typeof MessageQueueItem;
|
|
24
|
+
Icon: typeof MessageQueueIcon;
|
|
25
|
+
Text: typeof MessageQueueText;
|
|
26
|
+
Remove: typeof MessageQueueRemove;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/lib/components/queue.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,iBAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAWA;AAED,iBAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAMA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAM9D;AAED,iBAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAUA;AAED,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BAcA;AAED,eAAO,MAAM,YAAY;;;;;;CAMxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
export type TextShimmerProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Sweep duration in seconds; the shimmer utility defaults to 2s. */
|
|
7
|
+
duration?: number;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function TextShimmer({ children, as: Component, className, duration, enabled, }: TextShimmerProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=text-shimmer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-shimmer.d.ts","sourceRoot":"","sources":["../../../src/lib/components/text-shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,EAAE,EAAE,SAAe,EACnB,SAAS,EACT,QAAQ,EACR,OAAc,GACf,EAAE,gBAAgB,+BAalB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DynamicToolUIPart, ToolUIPart } from 'ai';
|
|
2
|
+
export declare function ToolDebug({ part }: {
|
|
3
|
+
part: ToolUIPart;
|
|
4
|
+
}): import("react").JSX.Element;
|
|
5
|
+
export declare function DynamicToolDebug({ part }: {
|
|
6
|
+
part: DynamicToolUIPart;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=tool-debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-debug.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tool-debug.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAe,MAAM,IAAI,CAAC;AAW1E,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,+BAyBvD;AACD,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,+BAwBrE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ToolUIPart } from 'ai';
|
|
2
|
+
import { ZodError } from 'zod';
|
|
3
|
+
export interface ToolErrorProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
detailLabel?: string;
|
|
7
|
+
part: ToolUIPart;
|
|
8
|
+
error: ZodError;
|
|
9
|
+
}
|
|
10
|
+
export declare function ToolError({ title, detail, detailLabel, part, error, }: ToolErrorProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=tool-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-error.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tool-error.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,IAAI,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAgBpC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAA+B,EAC/B,MAAM,EACN,WAA4B,EAC5B,IAAI,EACJ,KAAK,GACN,EAAE,cAAc,+BA2DhB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UIMessage } from 'ai';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare function extractAssistantRawText(message: UIMessage): string;
|
|
4
|
+
export declare function useIsAssistantSnapshotRender(): boolean;
|
|
5
|
+
export declare function AssistantSnapshot({ message, renderContent, className, }: {
|
|
6
|
+
message: UIMessage;
|
|
7
|
+
renderContent: () => ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=assistant-snapshot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant-snapshot.d.ts","sourceRoot":"","sources":["../../../src/lib/copy/assistant-snapshot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,IAAI,CAAC;AAElD,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAUf,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,SAAS,GAAG,MAAM,CAKlE;AAED,wBAAgB,4BAA4B,YAE3C;AAED,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAa,EACb,SAAS,GACV,EAAE;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,EAAE,MAAM,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA6DA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const COPY_EXCLUSION_ATTRIBUTE = "data-copy-exclude";
|
|
2
|
+
export declare const COPY_EXCLUSION_MODES: {
|
|
3
|
+
readonly image: "image";
|
|
4
|
+
readonly assistantSnapshot: "assistant-snapshot";
|
|
5
|
+
};
|
|
6
|
+
export type CopyExclusionMode = (typeof COPY_EXCLUSION_MODES)[keyof typeof COPY_EXCLUSION_MODES];
|
|
7
|
+
type ClipboardLike = {
|
|
8
|
+
write?: unknown;
|
|
9
|
+
writeText?: unknown;
|
|
10
|
+
} | null;
|
|
11
|
+
export type CopyToClipboardStrategy = 'image' | 'text' | 'none';
|
|
12
|
+
export declare function hasCopyExclusion(node: unknown, mode: CopyExclusionMode): boolean;
|
|
13
|
+
export declare function shouldIncludeInCopyImage(node: unknown, mode: CopyExclusionMode): boolean;
|
|
14
|
+
export declare function resolveCopyToClipboardStrategy({ clipboard, ClipboardItem, }: {
|
|
15
|
+
clipboard?: ClipboardLike;
|
|
16
|
+
ClipboardItem?: unknown;
|
|
17
|
+
}): CopyToClipboardStrategy;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=copy-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-image.d.ts","sourceRoot":"","sources":["../../../src/lib/copy/copy-image.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAMnE,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC;AAET,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAWhE,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAWT;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAET;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,SAAS,EACT,aAAa,GACd,EAAE;IACD,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,uBAAuB,CAa1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* True while a subtree renders into a static artifact (clipboard image, saved
|
|
3
|
+
* PNG, printed PDF) rather than onto the interactive surface. Lives in its own
|
|
4
|
+
* module so the portal that provides it and `useIsAssistantSnapshotRender` —
|
|
5
|
+
* which stays exported from `assistant-snapshot.tsx` for its existing consumers
|
|
6
|
+
* — can share it without importing each other.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SnapshotRenderContext: import('react').Context<boolean>;
|
|
9
|
+
//# sourceMappingURL=snapshot-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-context.d.ts","sourceRoot":"","sources":["../../../src/lib/copy/snapshot-context.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kCAAuB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
export declare function waitForNextPaint(): Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* Renders `children` off-screen at a fixed width so a capture (image, PDF) does
|
|
5
|
+
* not depend on the current window size.
|
|
6
|
+
*
|
|
7
|
+
* A portal keeps the React tree intact while moving only the DOM node, so the
|
|
8
|
+
* snapshot copy shares the surrounding providers — params, SQL interpolation,
|
|
9
|
+
* and the React Query cache. Widgets therefore hydrate from cache instead of
|
|
10
|
+
* re-running their queries, and the artifact shows the same numbers as the
|
|
11
|
+
* screen.
|
|
12
|
+
*/
|
|
13
|
+
export declare function SnapshotRenderPortal({ contentRef, children, width, padding, className, }: {
|
|
14
|
+
contentRef: RefObject<HTMLDivElement | null>;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
width?: number;
|
|
17
|
+
padding?: number;
|
|
18
|
+
className?: string;
|
|
19
|
+
}): import('react').ReactPortal | null;
|
|
20
|
+
//# sourceMappingURL=snapshot-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot-render.d.ts","sourceRoot":"","sources":["../../../src/lib/copy/snapshot-render.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlD,wBAAgB,gBAAgB,kBAI/B;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,UAAU,EACV,QAAQ,EACR,KAAY,EACZ,OAAY,EACZ,SAA+D,GAChE,EAAE;IACD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,sCA4BA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { CopyExclusionMode } from './copy-image.ts';
|
|
3
|
+
type CopySuccessMode = 'image' | 'text';
|
|
4
|
+
export type CopyImageFeedback = {
|
|
5
|
+
kind: 'success';
|
|
6
|
+
mode: CopySuccessMode;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'error';
|
|
9
|
+
message: string;
|
|
10
|
+
} | null;
|
|
11
|
+
export declare function useCopyElementAsImage({ elementRef, excludeMode, fallbackText, }: {
|
|
12
|
+
elementRef: RefObject<HTMLElement | null>;
|
|
13
|
+
excludeMode: CopyExclusionMode;
|
|
14
|
+
fallbackText?: string;
|
|
15
|
+
}): {
|
|
16
|
+
copy: () => Promise<void>;
|
|
17
|
+
feedback: CopyImageFeedback;
|
|
18
|
+
isCopying: boolean;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=use-copy-element-as-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-copy-element-as-image.d.ts","sourceRoot":"","sources":["../../../src/lib/copy/use-copy-element-as-image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,iBAAiB,CAAC;AAEzB,KAAK,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;AAExC,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAClC,IAAI,CAAC;AAYT,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,WAAW,EACX,YAAY,GACb,EAAE;IACD,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,WAAW,EAAE,iBAAiB,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;;;;EAwHA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicRenderer.d.ts","sourceRoot":"","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;AA8CD,wBAAgB,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,oBAAoB,qBAoBtE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/lib/dynamic-ui/error-boundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/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;gBACa,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB;IAIjE,WAAW,aAIT;IAEO,MAAM;CAahB;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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-scope.d.ts","sourceRoot":"","sources":["../../../src/lib/dynamic-ui/safe-scope.ts"],"names":[],"mappings":"AAoBA,wBAAgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkCzD;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED,wBAAgB,cAAc,IAAI,OAAO,EAAE,CAE1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transpiler.d.ts","sourceRoot":"","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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Badge, CollapsibleContent, CollapsibleTrigger } from '@deepagents/react-shadcn';
|
|
3
|
+
export type ChainOfThoughtProps = ComponentProps<'div'> & {
|
|
4
|
+
open?: boolean;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ChainOfThought: import('react').MemoExoticComponent<({ className, open, defaultOpen, onOpenChange, children, ...props }: ChainOfThoughtProps) => import("react").JSX.Element>;
|
|
9
|
+
export type ChainOfThoughtHeaderProps = ComponentProps<typeof CollapsibleTrigger>;
|
|
10
|
+
export declare const ChainOfThoughtHeader: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtHeaderProps) => import("react").JSX.Element>;
|
|
11
|
+
export type ChainOfThoughtStepProps = ComponentProps<'div'> & {
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
description?: string;
|
|
15
|
+
status?: 'complete' | 'active' | 'pending';
|
|
16
|
+
};
|
|
17
|
+
export declare const ChainOfThoughtStep: import('react').MemoExoticComponent<({ className, icon, label, description, status, children, ...props }: ChainOfThoughtStepProps) => import("react").JSX.Element>;
|
|
18
|
+
export type ChainOfThoughtSearchResultsProps = ComponentProps<'div'>;
|
|
19
|
+
export declare const ChainOfThoughtSearchResults: import('react').MemoExoticComponent<({ className, ...props }: ChainOfThoughtSearchResultsProps) => import("react").JSX.Element>;
|
|
20
|
+
export type ChainOfThoughtSearchResultProps = ComponentProps<typeof Badge>;
|
|
21
|
+
export declare const ChainOfThoughtSearchResult: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtSearchResultProps) => import("react").JSX.Element>;
|
|
22
|
+
export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
23
|
+
export declare const ChainOfThoughtContent: import('react').MemoExoticComponent<({ className, children, ...props }: ChainOfThoughtContentProps) => import("react").JSX.Element>;
|
|
24
|
+
export type ChainOfThoughtImageProps = ComponentProps<'div'> & {
|
|
25
|
+
caption?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const ChainOfThoughtImage: import('react').MemoExoticComponent<({ className, children, caption, ...props }: ChainOfThoughtImageProps) => import("react").JSX.Element>;
|
|
28
|
+
//# sourceMappingURL=ChainOfThought.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChainOfThought.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/ChainOfThought.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAA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AC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,mFACe,wBAAwB,iCAQtE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { Button } from '@deepagents/react-shadcn';
|
|
3
|
+
export type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
code: string;
|
|
5
|
+
language: string;
|
|
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
|
+
*/
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare const CodeBlock: ({ code, language, showLineNumbers, wrap, className, children, ...props }: CodeBlockProps) => import("react").JSX.Element;
|
|
15
|
+
export type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
|
|
16
|
+
onCopy?: () => void;
|
|
17
|
+
onError?: (error: Error) => void;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => import("react").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/CodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAE,MAAM,EAAM,MAAM,0BAA0B,CAAC;AAYtD,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,GAAI,0EAQvB,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,GAAI,6DAOjC,wBAAwB,gCA+B1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { StickToBottom } from 'use-stick-to-bottom';
|
|
3
|
+
import { Button } from '@deepagents/react-shadcn';
|
|
4
|
+
export type ConversationProps = ComponentProps<typeof StickToBottom>;
|
|
5
|
+
export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react").JSX.Element;
|
|
6
|
+
export type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
|
|
7
|
+
export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react").JSX.Element;
|
|
8
|
+
export type ConversationEmptyStateProps = ComponentProps<'div'> & {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const ConversationEmptyState: ({ className, title, description, icon, children, ...props }: ConversationEmptyStateProps) => import("react").JSX.Element;
|
|
14
|
+
export type ConversationScrollButtonProps = ComponentProps<typeof Button>;
|
|
15
|
+
export declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=Conversation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Conversation.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/Conversation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAe,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,MAAM,EAAM,MAAM,0BAA0B,CAAC;AAEtD,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,gCAQtE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,aAAa,CAAC,OAAO,CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAE1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6DAOpC,2BAA2B,gCAoB7B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,6BAA6B,wCAwB/B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UIMessage } from 'ai';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ComponentProps, HTMLAttributes } from 'react';
|
|
4
|
+
import { Avatar } from '@deepagents/react-shadcn';
|
|
5
|
+
export type MessageProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
from: UIMessage['role'];
|
|
7
|
+
};
|
|
8
|
+
export declare const Message: ({ className, from, ...props }: MessageProps) => import("react").JSX.Element;
|
|
9
|
+
declare const messageContentVariants: (props?: ({
|
|
10
|
+
variant?: "flat" | "contained" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
export type MessageContentProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageContentVariants>;
|
|
13
|
+
export declare const MessageContent: ({ children, className, variant, ...props }: MessageContentProps) => import("react").JSX.Element;
|
|
14
|
+
export type MessageAvatarProps = ComponentProps<typeof Avatar> & {
|
|
15
|
+
src: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const MessageAvatar: ({ src, name, className, ...props }: MessageAvatarProps) => import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EACL,MAAM,EAIP,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC1D,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,+BAA+B,YAAY,gCASlE,CAAC;AAEF,QAAA,MAAM,sBAAsB;;8EAoB3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,GAC9D,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE9C,eAAO,MAAM,cAAc,GAAI,4CAK5B,mBAAmB,gCAOrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,oCAK3B,kBAAkB,gCAKpB,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ChatStatus, FileUIPart } from 'ai';
|
|
2
|
+
import { ComponentProps, FormEvent, HTMLAttributes, PropsWithChildren, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, DropdownMenu, DropdownMenuContent, DropdownMenuItem, HoverCard, HoverCardContent, HoverCardTrigger, InputGroupAddon, InputGroupButton, InputGroupTextarea, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@deepagents/react-shadcn';
|
|
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
|
+
syncHiddenInput?: boolean;
|
|
62
|
+
maxFiles?: number;
|
|
63
|
+
maxFileSize?: number;
|
|
64
|
+
onError?: (err: {
|
|
65
|
+
code: 'max_files' | 'max_file_size' | 'accept';
|
|
66
|
+
message: string;
|
|
67
|
+
}) => void;
|
|
68
|
+
onSubmit: (message: PromptInputMessage, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
|
|
69
|
+
};
|
|
70
|
+
export declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react").JSX.Element;
|
|
71
|
+
export type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
72
|
+
export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react").JSX.Element;
|
|
73
|
+
export type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
74
|
+
export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react").JSX.Element;
|
|
75
|
+
export type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
76
|
+
export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react").JSX.Element;
|
|
77
|
+
export type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, 'align'>;
|
|
78
|
+
export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react").JSX.Element;
|
|
79
|
+
export type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
|
|
80
|
+
export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react").JSX.Element;
|
|
81
|
+
export type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
|
|
82
|
+
export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react").JSX.Element;
|
|
83
|
+
export type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
84
|
+
export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react").JSX.Element;
|
|
85
|
+
export type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
86
|
+
export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react").JSX.Element;
|
|
87
|
+
export type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
88
|
+
export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react").JSX.Element;
|
|
89
|
+
export type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
90
|
+
export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react").JSX.Element;
|
|
91
|
+
export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
92
|
+
status?: ChatStatus;
|
|
93
|
+
};
|
|
94
|
+
export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react").JSX.Element;
|
|
95
|
+
interface SpeechRecognition extends EventTarget {
|
|
96
|
+
continuous: boolean;
|
|
97
|
+
interimResults: boolean;
|
|
98
|
+
lang: string;
|
|
99
|
+
start(): void;
|
|
100
|
+
stop(): void;
|
|
101
|
+
onstart: ((this: SpeechRecognition, ev: Event) => void) | null;
|
|
102
|
+
onend: ((this: SpeechRecognition, ev: Event) => void) | null;
|
|
103
|
+
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => void) | null;
|
|
104
|
+
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => void) | null;
|
|
105
|
+
}
|
|
106
|
+
interface SpeechRecognitionEvent extends Event {
|
|
107
|
+
results: SpeechRecognitionResultList;
|
|
108
|
+
resultIndex: number;
|
|
109
|
+
}
|
|
110
|
+
type SpeechRecognitionResultList = {
|
|
111
|
+
readonly length: number;
|
|
112
|
+
item(index: number): SpeechRecognitionResult;
|
|
113
|
+
[index: number]: SpeechRecognitionResult;
|
|
114
|
+
};
|
|
115
|
+
type SpeechRecognitionResult = {
|
|
116
|
+
readonly length: number;
|
|
117
|
+
item(index: number): SpeechRecognitionAlternative;
|
|
118
|
+
[index: number]: SpeechRecognitionAlternative;
|
|
119
|
+
isFinal: boolean;
|
|
120
|
+
};
|
|
121
|
+
type SpeechRecognitionAlternative = {
|
|
122
|
+
transcript: string;
|
|
123
|
+
confidence: number;
|
|
124
|
+
};
|
|
125
|
+
interface SpeechRecognitionErrorEvent extends Event {
|
|
126
|
+
error: string;
|
|
127
|
+
}
|
|
128
|
+
declare global {
|
|
129
|
+
interface Window {
|
|
130
|
+
SpeechRecognition: {
|
|
131
|
+
new (): SpeechRecognition;
|
|
132
|
+
};
|
|
133
|
+
webkitSpeechRecognition: {
|
|
134
|
+
new (): SpeechRecognition;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export type PromptInputSpeechButtonProps = ComponentProps<typeof PromptInputButton> & {
|
|
139
|
+
textareaRef?: RefObject<HTMLTextAreaElement | null>;
|
|
140
|
+
onTranscriptionChange?: (text: string) => void;
|
|
141
|
+
};
|
|
142
|
+
export declare const PromptInputSpeechButton: ({ className, textareaRef, onTranscriptionChange, ...props }: PromptInputSpeechButtonProps) => import("react").JSX.Element;
|
|
143
|
+
export type PromptInputSelectProps = ComponentProps<typeof Select>;
|
|
144
|
+
export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react").JSX.Element;
|
|
145
|
+
export type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
146
|
+
export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react").JSX.Element;
|
|
147
|
+
export type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
|
|
148
|
+
export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react").JSX.Element;
|
|
149
|
+
export type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
|
|
150
|
+
export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react").JSX.Element;
|
|
151
|
+
export type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
|
|
152
|
+
export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react").JSX.Element;
|
|
153
|
+
export type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
154
|
+
export declare const PromptInputHoverCard: (props: PromptInputHoverCardProps) => import("react").JSX.Element;
|
|
155
|
+
export type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
156
|
+
export declare const PromptInputHoverCardTrigger: ({ delay, closeDelay, ...props }: PromptInputHoverCardTriggerProps) => import("react").JSX.Element;
|
|
157
|
+
export type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
158
|
+
export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react").JSX.Element;
|
|
159
|
+
export type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
160
|
+
export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react").JSX.Element;
|
|
161
|
+
export type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
|
|
162
|
+
export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react").JSX.Element;
|
|
163
|
+
export type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
|
|
164
|
+
export declare const PromptInputTabLabel: ({ className, children, ...props }: PromptInputTabLabelProps) => import("react").JSX.Element;
|
|
165
|
+
export type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
166
|
+
export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react").JSX.Element;
|
|
167
|
+
export type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
|
|
168
|
+
export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react").JSX.Element;
|
|
169
|
+
export type PromptInputCommandProps = ComponentProps<typeof Command>;
|
|
170
|
+
export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react").JSX.Element;
|
|
171
|
+
export type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
|
|
172
|
+
export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react").JSX.Element;
|
|
173
|
+
export type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
|
|
174
|
+
export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react").JSX.Element;
|
|
175
|
+
export type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
176
|
+
export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react").JSX.Element;
|
|
177
|
+
export type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
|
|
178
|
+
export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react").JSX.Element;
|
|
179
|
+
export type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
|
|
180
|
+
export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react").JSX.Element;
|
|
181
|
+
export type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
182
|
+
export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react").JSX.Element;
|
|
183
|
+
export {};
|
|
184
|
+
//# sourceMappingURL=PromptInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptInput.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/PromptInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAYjD,OAAO,EAKL,KAAK,cAAc,EACnB,KAAK,SAAS,EAGd,KAAK,cAAc,EAEnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EAC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GrC,4BAA4B,gCAE9B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,gCAE7B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAC3D,OAAO,gBAAgB,CACxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,yBAGzC,gCAAgC,gCAElC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TablePanelStreamdownProps } from './table-panel-extension.tsx';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type ResponseProps = TablePanelStreamdownProps;
|
|
4
|
+
export declare const Response: React.MemoExoticComponent<({ className, ...props }: ResponseProps) => React.JSX.Element>;
|
|
5
|
+
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/Response.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG,yBAAyB,CAAC;AA+BtD,eAAO,MAAM,QAAQ,sDAAkC,aAAa,uBAUlE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@deepagents/react-shadcn';
|
|
3
|
+
export type TaskItemFileProps = ComponentProps<'div'>;
|
|
4
|
+
export declare const TaskItemFile: ({ children, className, ...props }: TaskItemFileProps) => import("react").JSX.Element;
|
|
5
|
+
export type TaskItemProps = ComponentProps<'div'>;
|
|
6
|
+
export declare const TaskItem: ({ children, className, ...props }: TaskItemProps) => import("react").JSX.Element;
|
|
7
|
+
export type TaskProps = ComponentProps<typeof Collapsible>;
|
|
8
|
+
export declare const Task: ({ defaultOpen, className, ...props }: TaskProps) => import("react").JSX.Element;
|
|
9
|
+
export type TaskTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const TaskTrigger: ({ children, className, title, ...props }: TaskTriggerProps) => import("react").JSX.Element;
|
|
13
|
+
export type TaskContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
14
|
+
export declare const TaskContent: ({ children, className, ...props }: TaskContentProps) => import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Task.d.ts.map
|