teodor-new-chat-ui 4.3.410 → 4.3.412
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/features/core/contexts/index.d.ts +1 -1
- package/dist/features/core/contexts/providers/ChatProviders.d.ts +2 -1
- package/dist/features/core/contexts/providers/index.d.ts +1 -1
- package/dist/features/core/types/models.d.ts +1 -0
- package/dist/features/messaging/components/{ChatApp.d.ts → chat/ChatApp.d.ts} +1 -4
- package/dist/features/messaging/components/chat/index.d.ts +5 -0
- package/dist/features/messaging/components/index.d.ts +3 -0
- package/dist/features/messaging/components/message/MessageBody.d.ts +33 -0
- package/dist/features/messaging/components/message/hooks/index.d.ts +1 -0
- package/dist/features/messaging/components/message/index.d.ts +12 -7
- package/dist/features/messaging/components/{MarkdownContent.d.ts → message/markdown/MarkdownContent.d.ts} +1 -1
- package/dist/features/messaging/components/message/markdown/index.d.ts +3 -0
- package/dist/features/messaging/components/message/modals/index.d.ts +1 -0
- package/dist/features/messaging/components/message/renderers/ThinkingIndicator.d.ts +3 -0
- package/dist/features/messaging/components/message/renderers/index.d.ts +7 -0
- package/dist/features/messaging/components/message/utils/index.d.ts +2 -0
- package/dist/features/messaging/{utils → components/message/utils}/messageHelpers.d.ts +4 -2
- package/dist/features/messaging/components/thread/index.d.ts +4 -0
- package/dist/features/messaging/hooks/useParsedMessageContent.d.ts +13 -0
- package/dist/features/messaging/index.d.ts +1 -12
- package/dist/features/streaming/contexts/StreamingProvider.d.ts +3 -94
- package/dist/features/streaming/contexts/index.d.ts +1 -2
- package/dist/features/streaming/contexts/types.d.ts +11 -4
- package/dist/features/streaming/hooks/index.d.ts +2 -0
- package/dist/features/streaming/hooks/types.d.ts +50 -0
- package/dist/features/streaming/hooks/use-stream.d.ts +1 -46
- package/dist/features/streaming/index.d.ts +3 -3
- package/dist/features/streaming/utils/types.d.ts +50 -0
- package/dist/features/thread/contexts/ThreadStateProvider.d.ts +19 -0
- package/dist/features/thread/contexts/ThreadsProvider.d.ts +10 -0
- package/dist/features/thread/contexts/index.d.ts +2 -0
- package/dist/features/thread/index.d.ts +1 -0
- package/dist/index.esm.js +11002 -10820
- package/dist/index.umd.js +43 -43
- package/dist/lib/index.d.ts +0 -1
- package/package.json +15 -17
- package/dist/features/messaging/components/message/ResearchTaskArtifact.d.ts +0 -20
- package/dist/features/messaging/utils/markdown.worker.d.ts +0 -1
- /package/dist/features/messaging/components/{ChatInput.d.ts → chat/ChatInput.d.ts} +0 -0
- /package/dist/features/messaging/components/{ChatInterface.d.ts → chat/ChatInterface.d.ts} +0 -0
- /package/dist/features/messaging/components/{MessageComponent.d.ts → message/MessageComponent.d.ts} +0 -0
- /package/dist/features/messaging/components/{MessageList.d.ts → message/MessageList.d.ts} +0 -0
- /package/dist/features/messaging/components/{MessageRow.d.ts → message/MessageRow.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{useFilePreview.d.ts → hooks/useFilePreview.d.ts} +0 -0
- /package/dist/features/messaging/components/{FileViewerModal.d.ts → message/modals/FileViewerModal.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{ArtifactRenderer.d.ts → renderers/ArtifactRenderer.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{InterruptPartRenderer.d.ts → renderers/InterruptPartRenderer.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{SimpleJsonView.d.ts → renderers/SimpleJsonView.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{StreamProgress.d.ts → renderers/StreamProgress.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{ToolComponent.d.ts → renderers/ToolComponent.d.ts} +0 -0
- /package/dist/features/messaging/components/message/{UserTextContent.d.ts → renderers/UserTextContent.d.ts} +0 -0
- /package/dist/features/messaging/{utils → components/message/utils}/messageUtils.d.ts +0 -0
- /package/dist/features/messaging/components/{threads → thread}/ThreadListItem.d.ts +0 -0
- /package/dist/features/messaging/components/{ThreadManager.d.ts → thread/ThreadManager.d.ts} +0 -0
- /package/dist/features/{streaming → thread}/contexts/reducers/MessageReducer.d.ts +0 -0
- /package/dist/features/{streaming → thread}/contexts/reducers/utils/reducerUtils.d.ts +0 -0
package/dist/lib/index.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export * from "../features/thread";
|
|
|
8
8
|
export * from "../features/ui";
|
|
9
9
|
export * from "../features/core";
|
|
10
10
|
export type { ChatMessage, ChatRequest, HistoryPayload, HydratedCheckpointSnapshot, MessagePart, PregelTask, Role, StateSnapshot, StreamEvent, TextPart, ThreadInfo, ThreadShareTarget, ThreadSummary, ToolEndEvent } from '@/types';
|
|
11
|
-
export type { UseChatStreamOptions, UseStreamApi } from "../features/streaming/hooks/use-stream";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teodor-new-chat-ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.412",
|
|
4
4
|
"description": "React chat UI components with streaming support, tool calls, and modern design",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -35,21 +35,6 @@
|
|
|
35
35
|
},
|
|
36
36
|
"private": false,
|
|
37
37
|
"type": "module",
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "vite",
|
|
40
|
-
"build": "npm run build:lib && npm run build:types",
|
|
41
|
-
"build:lib": "vite build --mode library",
|
|
42
|
-
"build:types": "tsc --project tsconfig.build.json",
|
|
43
|
-
"bump": "node scripts/bump-version.mjs",
|
|
44
|
-
"bump:minor": "node scripts/bump-version.mjs minor",
|
|
45
|
-
"bump:major": "node scripts/bump-version.mjs major",
|
|
46
|
-
"build:dev": "vite build --mode development",
|
|
47
|
-
"lint": "eslint .",
|
|
48
|
-
"preview": "vite preview",
|
|
49
|
-
"prepare": "npm run build",
|
|
50
|
-
"prepublishOnly": "npm run build",
|
|
51
|
-
"test": "vitest"
|
|
52
|
-
},
|
|
53
38
|
"peerDependencies": {
|
|
54
39
|
"react": ">=18.0.0",
|
|
55
40
|
"react-dom": ">=18.0.0",
|
|
@@ -145,5 +130,18 @@
|
|
|
145
130
|
"typescript-eslint": "^8.40.0",
|
|
146
131
|
"vite": "^5.4.19",
|
|
147
132
|
"vitest": "^2.1.4"
|
|
133
|
+
},
|
|
134
|
+
"scripts": {
|
|
135
|
+
"dev": "vite",
|
|
136
|
+
"build": "npm run build:lib && npm run build:types",
|
|
137
|
+
"build:lib": "vite build --mode library",
|
|
138
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
139
|
+
"bump": "node scripts/bump-version.mjs",
|
|
140
|
+
"bump:minor": "node scripts/bump-version.mjs minor",
|
|
141
|
+
"bump:major": "node scripts/bump-version.mjs major",
|
|
142
|
+
"build:dev": "vite build --mode development",
|
|
143
|
+
"lint": "eslint .",
|
|
144
|
+
"preview": "vite preview",
|
|
145
|
+
"test": "vitest"
|
|
148
146
|
}
|
|
149
|
-
}
|
|
147
|
+
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom artifact renderer for research_task_info type
|
|
3
|
-
* Displays research task status with links and metadata
|
|
4
|
-
*/
|
|
5
|
-
export interface ResearchTaskInfo {
|
|
6
|
-
type: "research_task_info";
|
|
7
|
-
task_id: string;
|
|
8
|
-
progress_url: string;
|
|
9
|
-
query?: string;
|
|
10
|
-
status?: "pending" | "processing" | "completed" | "failed";
|
|
11
|
-
createdAt?: string;
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
}
|
|
14
|
-
export interface ResearchTaskArtifactProps {
|
|
15
|
-
artifact: ResearchTaskInfo;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Renders a research task artifact with status badge and action buttons
|
|
19
|
-
*/
|
|
20
|
-
export declare function ResearchTaskArtifact({ artifact }: ResearchTaskArtifactProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
/package/dist/features/messaging/components/{MessageComponent.d.ts → message/MessageComponent.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/features/messaging/components/{ThreadManager.d.ts → thread/ThreadManager.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|