@itechchoice/prime-chatkit 0.1.0-alpha.3 → 0.1.0-alpha.5
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/LICENSE +20 -0
- package/dist/index.js +2651 -2625
- package/dist/types/components/agent-thread.d.ts +4 -1
- package/dist/types/components/ui/chat-composer-clean.d.ts +3 -1
- package/dist/types/components/ui/decision-card-clean.d.ts +1 -0
- package/dist/types/components/ui/dropzone-clean.d.ts +5 -1
- package/package.json +3 -3
|
@@ -728,6 +728,9 @@ declare function UserMessage({ message: m, labels, onRetry }: {
|
|
|
728
728
|
}): import("react").JSX.Element;
|
|
729
729
|
/** The orchestrator's: plain text on the page under its mark, with its cards, tools and files in between */
|
|
730
730
|
declare const ThreadLinkContext: import("react").Context<((href: string, event: MouseEvent<HTMLAnchorElement>) => void) | undefined>;
|
|
731
|
+
declare const ThreadMarkdown: import("react").NamedExoticComponent<{
|
|
732
|
+
text: string;
|
|
733
|
+
}>;
|
|
731
734
|
declare function AgentMessage({ message: m, status, phase, clock, orchestratorAvatar, first, now, labels, askState, onTask, onAsk, onRetry, onCopy, onRegenerate, onFeedback, feedbackReasons, }: {
|
|
732
735
|
message: ThreadAgentMessage;
|
|
733
736
|
status?: ReactNode;
|
|
@@ -742,7 +745,7 @@ declare function AgentMessage({ message: m, status, phase, clock, orchestratorAv
|
|
|
742
745
|
onAsk: (id: string) => void;
|
|
743
746
|
onRetry?: () => void;
|
|
744
747
|
} & Pick<AgentThreadScreenProps, "onCopy" | "onRegenerate" | "onFeedback" | "feedbackReasons">): import("react").JSX.Element;
|
|
745
|
-
export { UserMessage, AgentMessage, ThreadStart, ThreadLinkContext, threadDefaults };
|
|
748
|
+
export { UserMessage, AgentMessage, ThreadStart, ThreadMarkdown, ThreadLinkContext, threadDefaults };
|
|
746
749
|
export type { Labels };
|
|
747
750
|
/** The original message parts, with their shell tokens but no screen layout. */
|
|
748
751
|
export declare function ThreadPartsRoot({ children, className }: {
|
|
@@ -83,6 +83,8 @@ export type ChatComposerProps = {
|
|
|
83
83
|
onModelChange?: (model: ChatModel) => void;
|
|
84
84
|
/** An entry of the plus menu was picked: "files", "claude", "folder", "goal", "plan", "skill", "draw", "documents" or "pdf" */
|
|
85
85
|
onAttach?: (item: string) => void;
|
|
86
|
+
/** Open a picker directly instead of the plus menu. */
|
|
87
|
+
onAdd?: () => void;
|
|
86
88
|
/** Plus-menu row IDs to show, after the tray's folder/apps replacement; omitted, show all. */
|
|
87
89
|
addItems?: string[];
|
|
88
90
|
/** The approval mode to start with; false removes the button and menu. */
|
|
@@ -115,4 +117,4 @@ export type ChatComposerProps = {
|
|
|
115
117
|
export declare const defaultFolders: string[];
|
|
116
118
|
export declare const defaultApps: ChatApp[];
|
|
117
119
|
export declare const defaultModels: ChatModel[];
|
|
118
|
-
export declare function ChatComposer({ running, onStop, sendDisabled, placeholder, disabled, labels: labelProp, models, dictation, onSend, onModelChange, onAttach, addItems, voice, approval: firstApproval, onApprovalChange, onLearnMore, folders, folder: firstFolder, onFolderChange, apps, connectedApps, onAppsChange, foot, tray, }: ChatComposerProps): import("react").JSX.Element;
|
|
120
|
+
export declare function ChatComposer({ running, onStop, sendDisabled, placeholder, disabled, labels: labelProp, models, dictation, onSend, onModelChange, onAttach, onAdd, addItems, voice, approval: firstApproval, onApprovalChange, onLearnMore, folders, folder: firstFolder, onFolderChange, apps, connectedApps, onAppsChange, foot, tray, }: ChatComposerProps): import("react").JSX.Element;
|
|
@@ -27,6 +27,7 @@ export type Decision = {
|
|
|
27
27
|
task?: string;
|
|
28
28
|
/** decision: rows to pick from · pick: preview tiles · approval: facts, then Approve / Decline (default: decision) */
|
|
29
29
|
kind?: DecisionKind;
|
|
30
|
+
body?: ReactNode;
|
|
30
31
|
/** decision and pick – all supplied options */
|
|
31
32
|
options?: DecisionOption[];
|
|
32
33
|
own?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
1
2
|
export type UploadStatus = "uploading" | "done" | "error";
|
|
2
3
|
export type UploadItem = {
|
|
3
4
|
id: string;
|
|
@@ -12,6 +13,9 @@ export type UploadItem = {
|
|
|
12
13
|
file?: File;
|
|
13
14
|
};
|
|
14
15
|
export type DropzoneProps = {
|
|
16
|
+
picker?: RefObject<{
|
|
17
|
+
pick: () => void;
|
|
18
|
+
} | null>;
|
|
15
19
|
labels?: Partial<DropzoneLabels>;
|
|
16
20
|
/** Allowed extensions, e.g. [".pdf", ".png"] – any file when left out */
|
|
17
21
|
accept?: string[];
|
|
@@ -67,4 +71,4 @@ export declare const defaultDropzoneLabels: {
|
|
|
67
71
|
fileBadge: (extension: string) => string;
|
|
68
72
|
};
|
|
69
73
|
export type DropzoneLabels = typeof defaultDropzoneLabels;
|
|
70
|
-
export declare function Dropzone({ labels: labelProp, accept, maxSize, onUpload, onChange, hint, autoplay, className, }: DropzoneProps): import("react").JSX.Element;
|
|
74
|
+
export declare function Dropzone({ picker, labels: labelProp, accept, maxSize, onUpload, onChange, hint, autoplay, className, }: DropzoneProps): import("react").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itechchoice/prime-chatkit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "PrimeChatKit: React chat UI for products built on the prime-chatkit SDK BFF contract. Shows the agent's work: thinking, tool calls, approvals, sources and cost.",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
7
|
-
"access": "
|
|
7
|
+
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"module": "./dist/index.js",
|