@yarvelle/ui 0.1.0 → 0.1.2
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-B6FcwyCu.d.ts +163 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +686 -344
- package/dist/index.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DLbrj3Po.d.ts +0 -90
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../types-CP_CDg6G.js';
|
|
2
|
-
export {
|
|
2
|
+
export { o as createMockChatMessage, p as createMockProfile, q as createMockSlotContribution } from '../index-B6FcwyCu.js';
|
|
3
3
|
import 'react';
|
package/package.json
CHANGED
package/dist/index-DLbrj3Po.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { S as SlotContribution } from './types-CP_CDg6G.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type MessageRole = 'user' | 'assistant' | 'system';
|
|
5
|
-
type MessageStatus = 'sending' | 'sent' | 'streaming' | 'error';
|
|
6
|
-
type RiskLevel = 'info' | 'warn' | 'danger';
|
|
7
|
-
interface ChatAttachment {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
mimeType?: string;
|
|
11
|
-
sizeBytes?: number;
|
|
12
|
-
url?: string;
|
|
13
|
-
}
|
|
14
|
-
interface ToolCallTrace {
|
|
15
|
-
id: string;
|
|
16
|
-
toolName: string;
|
|
17
|
-
input?: Record<string, unknown> | string;
|
|
18
|
-
output?: Record<string, unknown> | string;
|
|
19
|
-
status: 'running' | 'success' | 'error';
|
|
20
|
-
durationMs?: number;
|
|
21
|
-
}
|
|
22
|
-
interface ExecutionPlanStep {
|
|
23
|
-
id: string;
|
|
24
|
-
description: string;
|
|
25
|
-
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
26
|
-
}
|
|
27
|
-
interface ApprovalRequest {
|
|
28
|
-
id: string;
|
|
29
|
-
level: RiskLevel;
|
|
30
|
-
label: string;
|
|
31
|
-
details?: Record<string, unknown>;
|
|
32
|
-
status?: 'pending' | 'approved' | 'rejected';
|
|
33
|
-
}
|
|
34
|
-
interface ChatMessage {
|
|
35
|
-
id: string;
|
|
36
|
-
role: MessageRole;
|
|
37
|
-
content: string;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
status?: MessageStatus;
|
|
40
|
-
authorName?: string;
|
|
41
|
-
avatarUrl?: string;
|
|
42
|
-
attachments?: ChatAttachment[];
|
|
43
|
-
toolTraces?: ToolCallTrace[];
|
|
44
|
-
executionPlan?: ExecutionPlanStep[];
|
|
45
|
-
approval?: ApprovalRequest;
|
|
46
|
-
reasoning?: string;
|
|
47
|
-
}
|
|
48
|
-
interface ChatSlotHooks {
|
|
49
|
-
beforeSend?: (content: string, attachments: ChatAttachment[]) => Promise<boolean | string>;
|
|
50
|
-
composerAction?: React.ReactNode;
|
|
51
|
-
messageRenderer?: (message: ChatMessage) => React.ReactNode;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type ProfileRole = 'owner' | 'steward' | 'member' | 'viewer';
|
|
55
|
-
interface ProfileMember {
|
|
56
|
-
id: string;
|
|
57
|
-
displayName: string;
|
|
58
|
-
relationship?: string;
|
|
59
|
-
role: ProfileRole;
|
|
60
|
-
avatarUrl?: string;
|
|
61
|
-
colorToken?: string;
|
|
62
|
-
dateOfBirth?: string;
|
|
63
|
-
teenTransitionDate?: string;
|
|
64
|
-
scopes?: string[];
|
|
65
|
-
}
|
|
66
|
-
interface ScopePermission {
|
|
67
|
-
domain: string;
|
|
68
|
-
read: boolean;
|
|
69
|
-
write: boolean;
|
|
70
|
-
approve: boolean;
|
|
71
|
-
}
|
|
72
|
-
interface ViewerInviteData {
|
|
73
|
-
email: string;
|
|
74
|
-
role: 'viewer';
|
|
75
|
-
scopes: string[];
|
|
76
|
-
expiresInDays: number;
|
|
77
|
-
}
|
|
78
|
-
interface ShareBundleData {
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
scopes: string[];
|
|
82
|
-
requiresPasscode?: boolean;
|
|
83
|
-
expiresAt?: string;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare function createMockSlotContribution(overrides?: Partial<SlotContribution>): SlotContribution;
|
|
87
|
-
declare function createMockProfile(overrides?: Partial<ProfileMember>): ProfileMember;
|
|
88
|
-
declare function createMockChatMessage(overrides?: Partial<ChatMessage>): ChatMessage;
|
|
89
|
-
|
|
90
|
-
export { type ApprovalRequest as A, type ChatMessage as C, type ExecutionPlanStep as E, type MessageRole as M, type ProfileMember as P, type RiskLevel as R, type ScopePermission as S, type ToolCallTrace as T, type ViewerInviteData as V, type ChatAttachment as a, type ChatSlotHooks as b, type ShareBundleData as c, type MessageStatus as d, type ProfileRole as e, createMockChatMessage as f, createMockProfile as g, createMockSlotContribution as h };
|