Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dist/components/Bot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export type MessageType = {
};
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
export declare const CHAT_HEADER_HEIGHT = 50;
export type BotProps = {
chatflowid: string;
apiHost?: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Bot.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { BubbleProps } from './features/bubble';
export declare const defaultBotProps: BubbleProps;
export declare const CHAT_HEADER_HEIGHT = 50;
//# sourceMappingURL=constants.d.ts.map
2 changes: 1 addition & 1 deletion dist/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

395 changes: 198 additions & 197 deletions dist/web.js

Large diffs are not rendered by default.

395 changes: 198 additions & 197 deletions dist/web.umd.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/components/Bot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import {
} from '@/utils';
import { FollowUpPromptBubble } from '@/components/bubbles/FollowUpPromptBubble';
import { fetchEventSource, EventStreamContentType } from '@microsoft/fetch-event-source';
import { CHAT_HEADER_HEIGHT } from '@/constants';

export type FileEvent<T = EventTarget> = {
target: T;
Expand Down Expand Up @@ -145,8 +146,6 @@ type IUploads = {
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;

export const CHAT_HEADER_HEIGHT = 50;

export type BotProps = {
chatflowid: string;
apiHost?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/treeview/NodeDetailsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createSignal, Show, For, JSXElement } from 'solid-js';
import { Marked } from '@ts-stack/markdown';
import DOMPurify from 'dompurify';
import { getAgentflowIcon } from './AgentflowIcons';
import { CHAT_HEADER_HEIGHT } from '../Bot';
import { CHAT_HEADER_HEIGHT } from '@/constants';

type NodeDetailsDialogProps = {
isOpen: boolean;
Expand Down
2 changes: 2 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ export const defaultBotProps: BubbleProps = {
theme: undefined,
observersConfig: undefined,
};

export const CHAT_HEADER_HEIGHT = 50;