teodor-new-chat-ui 4.3.397 → 4.3.399
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/checkpoint/components/TimelineColumn.d.ts +12 -0
- package/dist/features/checkpoint/components/index.d.ts +1 -0
- package/dist/features/checkpoint/hooks/index.d.ts +2 -0
- package/dist/features/checkpoint/hooks/useCheckpointIndex.d.ts +2 -0
- package/dist/features/checkpoint/hooks/useMessageMetadata.d.ts +18 -0
- package/dist/features/checkpoint/index.d.ts +4 -0
- package/dist/features/checkpoint/types.d.ts +34 -0
- package/dist/{lib → features/checkpoint/utils}/attemptDetection.d.ts +2 -6
- package/dist/features/checkpoint/utils/checkpointIndex.d.ts +15 -0
- package/dist/features/checkpoint/utils/index.d.ts +7 -0
- package/dist/features/checkpoint/utils/messageMetadataResolver.d.ts +32 -0
- package/dist/{lib → features/checkpoint/utils}/messagePreviews.d.ts +1 -0
- package/dist/{api/chat-api.d.ts → features/core/api/clients/chatClient.d.ts} +2 -3
- package/dist/features/core/api/clients/index.d.ts +2 -0
- package/dist/features/core/api/index.d.ts +2 -0
- package/dist/features/core/api/utils/index.d.ts +1 -0
- package/dist/{config → features/core/constants}/env.d.ts +1 -1
- package/dist/features/core/constants/index.d.ts +1 -0
- package/dist/{context → features/core/contexts}/ChatProviders.d.ts +2 -3
- package/dist/features/core/contexts/index.d.ts +6 -0
- package/dist/{context → features/core/contexts}/providers/ApiProvider.d.ts +1 -1
- package/dist/features/core/contexts/providers/ChatSessionProvider.d.ts +1 -0
- package/dist/features/core/hooks/index.d.ts +2 -0
- package/dist/features/core/index.d.ts +6 -0
- package/dist/{types → features/core/types}/context.d.ts +3 -3
- package/dist/features/core/types/index.d.ts +7 -0
- package/dist/features/core/utils/index.d.ts +1 -0
- package/dist/{components → features/messaging/components}/chat/ChatApp.d.ts +1 -2
- package/dist/{components → features/messaging/components}/chat/MessageComponent.d.ts +1 -2
- package/dist/{components → features/messaging/components}/chat/MessageList.d.ts +3 -11
- package/dist/{components → features/messaging/components}/chat/MessageRow.d.ts +3 -10
- package/dist/features/messaging/index.d.ts +12 -0
- package/dist/{context/providers/ChatSessionProvider.d.ts → features/streaming/contexts/StreamingProvider.d.ts} +10 -8
- package/dist/features/streaming/contexts/index.d.ts +3 -0
- package/dist/{context/services/streaming → features/streaming/contexts/services}/use-streaming-service.d.ts +3 -12
- package/dist/features/streaming/index.d.ts +3 -0
- package/dist/features/streaming/utils/index.d.ts +1 -0
- package/dist/features/streaming/utils/types.d.ts +109 -0
- package/dist/{hooks → features/thread/hooks}/useThreadHistoryState.d.ts +5 -3
- package/dist/{hooks → features/thread/hooks}/useThreadsState.d.ts +2 -2
- package/dist/features/thread/index.d.ts +2 -0
- package/dist/{hooks → features/ui/hooks}/use-toast.d.ts +3 -3
- package/dist/features/ui/index.d.ts +17 -0
- package/dist/features/ui/utils/index.d.ts +1 -0
- package/dist/index.esm.js +12635 -11688
- package/dist/index.umd.js +49 -48
- package/dist/lib/index.d.ts +8 -25
- package/dist/types/events.d.ts +1 -90
- package/dist/types/index.d.ts +1 -3
- package/dist/types/marked.d.ts +11 -0
- package/dist/types/models.d.ts +80 -104
- package/dist/types/requests.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/chat/message-components/artifacts/ResearchTaskArtifact.d.ts +0 -20
- package/dist/components/settings/ChatSettings.d.ts +0 -30
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/alert-dialog.d.ts +0 -20
- package/dist/components/ui/alert.d.ts +0 -8
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/avatar.d.ts +0 -6
- package/dist/components/ui/breadcrumb.d.ts +0 -19
- package/dist/components/ui/calendar.d.ts +0 -8
- package/dist/components/ui/carousel.d.ts +0 -18
- package/dist/components/ui/chart.d.ts +0 -62
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/context-menu.d.ts +0 -27
- package/dist/components/ui/drawer.d.ts +0 -22
- package/dist/components/ui/form.d.ts +0 -23
- package/dist/components/ui/hover-card.d.ts +0 -6
- package/dist/components/ui/input-otp.d.ts +0 -34
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/pagination.d.ts +0 -28
- package/dist/components/ui/popover.d.ts +0 -6
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/resizable.d.ts +0 -23
- package/dist/components/ui/sidebar.d.ts +0 -66
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -7
- package/dist/components/ui/toggle-group.d.ts +0 -12
- package/dist/components/ui/toggle.d.ts +0 -12
- package/dist/components/ui/use-toast.d.ts +0 -2
- package/dist/context/index.d.ts +0 -14
- package/dist/context/types.d.ts +0 -1
- package/dist/hooks/checkpoints/index.d.ts +0 -4
- package/dist/hooks/checkpoints/types.d.ts +0 -14
- package/dist/hooks/checkpoints/useCheckpointMetadata.d.ts +0 -33
- package/dist/hooks/checkpoints/useCheckpointSelectors.d.ts +0 -24
- package/dist/hooks/checkpoints/useMessageMetadata.d.ts +0 -39
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/lib/markdown.d.ts +0 -46
- package/dist/types/toolStream.d.ts +0 -11
- package/dist/utils/env.d.ts +0 -12
- /package/dist/{lib → features/checkpoint/utils}/historyUtils.d.ts +0 -0
- /package/dist/{lib → features/checkpoint/utils}/schemaUtils.d.ts +0 -0
- /package/dist/{api/file-api.d.ts → features/core/api/clients/fileClient.d.ts} +0 -0
- /package/dist/{api/utils.d.ts → features/core/api/utils/http.d.ts} +0 -0
- /package/dist/{lib → features/core/utils}/chatUtils.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInput.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ChatInterface.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/FileViewerModal.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/MarkdownContent.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/ThreadManager.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ArtifactRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/InterruptPartRenderer.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/SimpleJsonView.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/StreamProgress.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/ToolComponent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/UserTextContent.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/artifacts/PlotArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message/artifacts}/ResearchTaskArtifact.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/index.d.ts +0 -0
- /package/dist/{components/chat/message-components → features/messaging/components/chat/message}/useFilePreview.d.ts +0 -0
- /package/dist/{components → features/messaging/components}/chat/threads/ThreadListItem.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageHelpers.d.ts +0 -0
- /package/dist/{lib → features/messaging/utils}/messageUtils.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/MessageReducer.d.ts +0 -0
- /package/dist/{context → features/streaming/contexts}/reducers/utils/reducerUtils.d.ts +0 -0
- /package/dist/{hooks → features/streaming/hooks}/use-stream.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/badge.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/button.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/card.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/command.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dialog.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/dropdown-menu.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/input.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/label.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/scroll-area.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/select.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/separator.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sheet.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/sonner.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/switch.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/textarea.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toast.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/toaster.d.ts +0 -0
- /package/dist/{components → features/ui/components}/ui/tooltip.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → features/ui/utils/cn.d.ts} +0 -0
package/dist/lib/markdown.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Markdown rendering utilities for chat content
|
|
3
|
-
* Handles basic markdown formatting without external dependencies
|
|
4
|
-
*/
|
|
5
|
-
interface MarkdownOptions {
|
|
6
|
-
escapeHtml?: boolean;
|
|
7
|
-
breaks?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Decode HTML entities back to plain text
|
|
11
|
-
*/
|
|
12
|
-
export declare function decodeHtmlEntities(content: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Process HTML content by decoding HTML entities
|
|
15
|
-
*/
|
|
16
|
-
export declare function processHtmlContent(content: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Simple markdown renderer for chat content
|
|
19
|
-
*/
|
|
20
|
-
export declare function renderMarkdown(content: string, options?: MarkdownOptions): string;
|
|
21
|
-
/**
|
|
22
|
-
* Check if content contains HTML tags or HTML entities
|
|
23
|
-
*/
|
|
24
|
-
export declare function isHtmlContent(content: string): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Check if content looks like markdown
|
|
27
|
-
*/
|
|
28
|
-
export declare function isMarkdownContent(content: string): boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Check if content should be rendered as HTML (either markdown or HTML)
|
|
31
|
-
*/
|
|
32
|
-
export declare function shouldRenderAsHtml(content: string): boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Sanitize HTML content
|
|
35
|
-
*/
|
|
36
|
-
export declare function sanitizeHtml(html: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* React hook for rendering markdown content safely
|
|
39
|
-
*/
|
|
40
|
-
export declare function useMarkdownRenderer(): {
|
|
41
|
-
renderContent: (content: string, options?: MarkdownOptions) => string;
|
|
42
|
-
isMarkdownContent: typeof isMarkdownContent;
|
|
43
|
-
isHtmlContent: typeof isHtmlContent;
|
|
44
|
-
shouldRenderAsHtml: typeof shouldRenderAsHtml;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type ToolStreamEntryType = "tool.start" | "tool.call" | "tool.progress" | "custom" | "tool.end";
|
|
2
|
-
export interface ToolStreamEntry {
|
|
3
|
-
id: string;
|
|
4
|
-
idx: number;
|
|
5
|
-
type: ToolStreamEntryType;
|
|
6
|
-
toolId?: string;
|
|
7
|
-
toolName?: string;
|
|
8
|
-
content?: string | null;
|
|
9
|
-
metadata?: Record<string, unknown>;
|
|
10
|
-
timestamp: string;
|
|
11
|
-
}
|
package/dist/utils/env.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function isProductionEnv(): boolean;
|
|
2
|
-
export declare function isDevEnv(): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Check if debug logging is enabled via window.__ARTIFACT_DEBUG__
|
|
5
|
-
* Set this flag to true in your consuming app to enable debug logs in production
|
|
6
|
-
* Example in MainLayout: window.__ARTIFACT_DEBUG__ = true;
|
|
7
|
-
*/
|
|
8
|
-
export declare function isDebugLoggingEnabled(): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Combined check: show logs if either in dev mode OR if debug flag is enabled
|
|
11
|
-
*/
|
|
12
|
-
export declare function shouldShowLogs(): boolean;
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|