cmcts-c-agent-embedding 1.0.33 → 1.0.34-cagent
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/.eslintrc.cjs +1 -0
- package/.idea/{Flowise-share-chatbox.iml → flowise-chatbox.iml} +0 -1
- package/.idea/modules.xml +1 -2
- package/.idea/vcs.xml +5 -6
- package/AGENTS.md +166 -0
- package/README.md +349 -349
- package/auggie_shell_conversation.txt +16 -0
- package/auggie_shell_user_request.txt +13 -0
- package/dist/BubbleChat.d.ts +9 -12
- package/dist/BubbleChat.d.ts.map +1 -1
- package/dist/FullPageChat.d.ts +17 -17
- package/dist/components/Bot.d.ts +10 -0
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/FeedbackContentDialog.d.ts.map +1 -1
- package/dist/components/Toast.d.ts +10 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/bubbles/BotBubble.d.ts +7 -0
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
- package/dist/components/bubbles/ChartBubble.d.ts +73 -0
- package/dist/components/bubbles/ChartBubble.d.ts.map +1 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts +8 -0
- package/dist/components/bubbles/ChartLoadingPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts +20 -0
- package/dist/components/bubbles/ChartPlaceholder.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPopupModal.d.ts +4 -0
- package/dist/components/bubbles/ChartPopupModal.d.ts.map +1 -0
- package/dist/components/bubbles/ChartPortalContainer.d.ts +12 -0
- package/dist/components/bubbles/ChartPortalContainer.d.ts.map +1 -0
- package/dist/components/bubbles/LoadingBubble.d.ts +7 -1
- package/dist/components/bubbles/LoadingBubble.d.ts.map +1 -1
- package/dist/components/bubbles/SourceBubble.d.ts.map +1 -1
- package/dist/components/bubbles/StableChartWrapper.d.ts +18 -0
- package/dist/components/bubbles/StableChartWrapper.d.ts.map +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -1
- package/dist/components/buttons/CopyMessageButton.d.ts +10 -0
- package/dist/components/buttons/CopyMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/EditMessageButton.d.ts +8 -0
- package/dist/components/buttons/EditMessageButton.d.ts.map +1 -0
- package/dist/components/buttons/PopupToast.d.ts +7 -0
- package/dist/components/buttons/PopupToast.d.ts.map +1 -0
- package/dist/components/buttons/SendButton.d.ts +1 -0
- package/dist/components/buttons/SendButton.d.ts.map +1 -1
- package/dist/components/dialogs/EditMessageDialog.d.ts +9 -0
- package/dist/components/dialogs/EditMessageDialog.d.ts.map +1 -0
- package/dist/components/icons/AddImageIcon.d.ts.map +1 -1
- package/dist/components/icons/CheckIcon.d.ts +3 -0
- package/dist/components/icons/CheckIcon.d.ts.map +1 -0
- package/dist/components/icons/CopyIcon.d.ts +5 -0
- package/dist/components/icons/CopyIcon.d.ts.map +1 -0
- package/dist/components/icons/EditIcon.d.ts +5 -0
- package/dist/components/icons/EditIcon.d.ts.map +1 -0
- package/dist/components/icons/FullScreenIcon.d.ts +3 -0
- package/dist/components/icons/FullScreenIcon.d.ts.map +1 -0
- package/dist/components/icons/ResetZoomIcon.d.ts +3 -0
- package/dist/components/icons/ResetZoomIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomInIcon.d.ts +3 -0
- package/dist/components/icons/ZoomInIcon.d.ts.map +1 -0
- package/dist/components/icons/ZoomOutIcon.d.ts +3 -0
- package/dist/components/icons/ZoomOutIcon.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +7 -0
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/image/PreviewImage.d.ts +5 -0
- package/dist/components/image/PreviewImage.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +4 -0
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +1 -1
- package/dist/components/inputs/textInput/components/TextInput.d.ts +16 -1
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
- package/dist/features/bubble/types.d.ts +1 -0
- package/dist/features/bubble/types.d.ts.map +1 -1
- package/dist/features/full/components/Full.d.ts.map +1 -1
- package/dist/features/popup/components/Popup.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/queries/sendMessageQuery.d.ts +19 -1
- package/dist/queries/sendMessageQuery.d.ts.map +1 -1
- package/dist/types/chart.d.ts +86 -0
- package/dist/types/chart.d.ts.map +1 -0
- package/dist/utils/chartConfigManager.d.ts +54 -0
- package/dist/utils/chartConfigManager.d.ts.map +1 -0
- package/dist/utils/chartInstanceManager.d.ts +43 -0
- package/dist/utils/chartInstanceManager.d.ts.map +1 -0
- package/dist/utils/chartPopupManager.d.ts +43 -0
- package/dist/utils/chartPopupManager.d.ts.map +1 -0
- package/dist/utils/chartPortalManager.d.ts +76 -0
- package/dist/utils/chartPortalManager.d.ts.map +1 -0
- package/dist/utils/chartTagParser.d.ts +39 -0
- package/dist/utils/chartTagParser.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/textStreamSmoother.d.ts +40 -0
- package/dist/utils/textStreamSmoother.d.ts.map +1 -0
- package/dist/utils/transcriptApi.d.ts +8 -0
- package/dist/utils/transcriptApi.d.ts.map +1 -0
- package/dist/utils/ultimateJsonParser.d.ts +2 -0
- package/dist/utils/ultimateJsonParser.d.ts.map +1 -0
- package/dist/web.d.ts +4 -2
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/dist/window.d.ts +2 -1
- package/dist/window.d.ts.map +1 -1
- package/docs/chart-rendering-implementation-plan.md +565 -0
- package/package.json +11 -5
- package/public/index.html +5 -115
- package/server.js +401 -401
- package/.env +0 -36
- package/.husky/pre-commit +0 -18
- package/.idea/codeStyles/Project.xml +0 -60
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -16
- package/.idea/prettier.xml +0 -6
- package/a.json +0 -57
- package/bun.lockb +0 -0
- package/dist/components/ImageUploadButton.d.ts +0 -11
- package/dist/components/ImageUploadButton.d.ts.map +0 -1
- package/dist/components/RecordAudioButton.d.ts +0 -11
- package/dist/components/RecordAudioButton.d.ts.map +0 -1
- package/dist/components/SendButton.d.ts +0 -12
- package/dist/components/SendButton.d.ts.map +0 -1
- package/test.html +0 -17
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
================================================================================
|
|
2
|
+
[2025-12-03T06:04:24.426Z]
|
|
3
|
+
In Bot.tsx around line 2285-2287, there's logic that sets `setIsVoiceChat(result.data?.isVoiceChat)` based on chatbot config. The user wants to change this logic so that `isVoiceChat` is only set to true when the recording button is also shown.
|
|
4
|
+
|
|
5
|
+
Context:
|
|
6
|
+
- The recording button visibility is controlled by `props.uploadsConfig?.isSpeechToTextEnabled` (see TextInput.tsx line 445)
|
|
7
|
+
- Currently, `isVoiceChat` is set independently from whether the recording button is visible
|
|
8
|
+
- The user wants voice chat features (like TTS toggle button shown in line 3033) to only appear when the recording button is also visible
|
|
9
|
+
|
|
10
|
+
Definition of Done:
|
|
11
|
+
- Modify the logic at line 2285-2287 so that `isVoiceChat` is set to true ONLY when BOTH conditions are met:
|
|
12
|
+
1. `result.data?.isVoiceChat` is true (from chatbot config)
|
|
13
|
+
2. The recording button would be shown (i.e., `isSpeechToTextEnabled` is true from uploadsConfig)
|
|
14
|
+
- Run lint-fix and type-check after changes
|
|
15
|
+
- Do not create or modify any markdown document files or code examples.
|
|
16
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
In Bot.tsx around line 2285-2287, there's logic that sets `setIsVoiceChat(result.data?.isVoiceChat)` based on chatbot config. The user wants to change this logic so that `isVoiceChat` is only set to true when the recording button is also shown.
|
|
2
|
+
|
|
3
|
+
Context:
|
|
4
|
+
- The recording button visibility is controlled by `props.uploadsConfig?.isSpeechToTextEnabled` (see TextInput.tsx line 445)
|
|
5
|
+
- Currently, `isVoiceChat` is set independently from whether the recording button is visible
|
|
6
|
+
- The user wants voice chat features (like TTS toggle button shown in line 3033) to only appear when the recording button is also visible
|
|
7
|
+
|
|
8
|
+
Definition of Done:
|
|
9
|
+
- Modify the logic at line 2285-2287 so that `isVoiceChat` is set to true ONLY when BOTH conditions are met:
|
|
10
|
+
1. `result.data?.isVoiceChat` is true (from chatbot config)
|
|
11
|
+
2. The recording button would be shown (i.e., `isSpeechToTextEnabled` is true from uploadsConfig)
|
|
12
|
+
- Run lint-fix and type-check after changes
|
|
13
|
+
- Do not create or modify any markdown document files or code examples.
|
package/dist/BubbleChat.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare const BubbleChat: (props: Props) => null;
|
|
12
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'flowise-chatbot': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export declare const BubbleChat: (props: BubbleProps) => null;
|
|
13
10
|
//# sourceMappingURL=BubbleChat.d.ts.map
|
package/dist/BubbleChat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleChat.d.ts","sourceRoot":"","sources":["../src/BubbleChat.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BubbleChat.d.ts","sourceRoot":"","sources":["../src/BubbleChat.tsx"],"names":[],"mappings":";AAKA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CACxC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,CAAA;SACF;KACF;CACF;AAID,eAAO,MAAM,UAAU,8BAkCtB,CAAA"}
|
package/dist/FullPageChat.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { BotProps } from 'cmcts-c-agent-embedding';
|
|
3
|
-
type Props = BotProps & {
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
declare global {
|
|
8
|
-
namespace JSX {
|
|
9
|
-
interface IntrinsicElements {
|
|
10
|
-
'flowise-fullchatbot': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
11
|
-
class?: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export declare const FullPageChat: ({ style, className, ...assignableProps }: Props) => JSX.Element;
|
|
17
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BotProps } from 'cmcts-c-agent-embedding';
|
|
3
|
+
type Props = BotProps & {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
'flowise-fullchatbot': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
11
|
+
class?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export declare const FullPageChat: ({ style, className, ...assignableProps }: Props) => JSX.Element;
|
|
17
|
+
export {};
|
|
18
18
|
//# sourceMappingURL=FullPageChat.d.ts.map
|
package/dist/components/Bot.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';
|
|
2
2
|
import { BotMessageTheme, DateTimeToggleTheme, DisclaimerPopUpTheme, FeedbackTheme, FooterTheme, TextInputTheme, UserMessageTheme } from '@/features/bubble/types';
|
|
3
3
|
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
|
|
4
|
+
import type { ChartConfig } from '@/types/chart';
|
|
4
5
|
export type FileEvent<T = EventTarget> = {
|
|
5
6
|
target: T;
|
|
6
7
|
};
|
|
@@ -65,6 +66,7 @@ export type MessageType = {
|
|
|
65
66
|
id?: string;
|
|
66
67
|
followUpPrompts?: string;
|
|
67
68
|
dateTime?: string;
|
|
69
|
+
chartConfigs?: ChartConfig[];
|
|
68
70
|
};
|
|
69
71
|
type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;
|
|
70
72
|
export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>;
|
|
@@ -74,6 +76,7 @@ export type BotProps = {
|
|
|
74
76
|
onRequest?: (request: RequestInit) => Promise<void>;
|
|
75
77
|
chatflowConfig?: Record<string, unknown>;
|
|
76
78
|
welcomeMessage?: string;
|
|
79
|
+
secondMessage?: string;
|
|
77
80
|
errorMessage?: string;
|
|
78
81
|
botMessage?: BotMessageTheme;
|
|
79
82
|
userMessage?: UserMessageTheme;
|
|
@@ -104,6 +107,13 @@ export type BotProps = {
|
|
|
104
107
|
roomIds?: Record<string, string>;
|
|
105
108
|
isUseFAQ?: boolean;
|
|
106
109
|
filePath?: string;
|
|
110
|
+
suggestQuestions?: string;
|
|
111
|
+
externalData?: string;
|
|
112
|
+
callBackFunction?: (e: any) => void;
|
|
113
|
+
callBackIcon?: string;
|
|
114
|
+
onToggleFullScreen?: () => void;
|
|
115
|
+
isFullScreen?: boolean;
|
|
116
|
+
onResetChat?: () => void;
|
|
107
117
|
};
|
|
108
118
|
export type LeadsConfig = {
|
|
109
119
|
status: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,cAAc,EACd,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AACnF,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,cAAc,EACd,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,kBAAkB,EASnB,MAAM,4BAA4B,CAAC;AAqBpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB,EAAE,iBAAiB,EAAE,CAAC;IAC3C,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,GAAG,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AG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAuDF,eAAO,MAAM,GAAG,aAAc,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCA21F1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAKF,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,mCAuF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
message: string;
|
|
3
|
+
type?: 'error' | 'success' | 'info';
|
|
4
|
+
duration?: number;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
style?: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
export declare const Toast: (props: Props) => import("solid-js").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/components/Toast.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,KAAK,mCA2DjC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { IAction, MessageType } from '../Bot';
|
|
2
2
|
import { DateTimeToggleTheme } from '@/features/bubble/types';
|
|
3
|
+
import type { ChartConfig } from '@/types/chart';
|
|
3
4
|
type Props = {
|
|
4
5
|
message: MessageType;
|
|
6
|
+
setMessages?: any;
|
|
5
7
|
chatflowid: string;
|
|
6
8
|
chatId: string;
|
|
7
9
|
apiHost?: string;
|
|
@@ -25,6 +27,11 @@ type Props = {
|
|
|
25
27
|
onConnectToHumanAdvisor?: (id: string, params?: any) => void;
|
|
26
28
|
roomIds?: Record<string, string>;
|
|
27
29
|
question?: string;
|
|
30
|
+
callBackIcon?: string;
|
|
31
|
+
callBackFunction?: (e: any) => void;
|
|
32
|
+
checkShowCallbackBtn?: boolean;
|
|
33
|
+
pendingCharts?: Map<string, Partial<ChartConfig>>;
|
|
34
|
+
completedCharts?: Map<string, ChartConfig>;
|
|
28
35
|
};
|
|
29
36
|
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
30
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAM1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAM9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC5C,CAAC;AAWF,eAAO,MAAM,SAAS,UAAW,KAAK,mCA+vBrC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { ChartOptions } from 'chart.js';
|
|
2
|
+
import type { ChartBubbleProps, SupportedChartType } from '@/types/chart';
|
|
3
|
+
/**
|
|
4
|
+
* Vietnamese Government Style Color Palette
|
|
5
|
+
* Based on official Vietnamese flag colors and professional government design standards
|
|
6
|
+
* Primary: Red (#C8102E) - symbolizes revolution and sacrifice
|
|
7
|
+
* Secondary: Gold (#FFCD00) - symbolizes prosperity and national identity
|
|
8
|
+
* Supporting colors for multi-series data visualization with accessibility in mind
|
|
9
|
+
*/
|
|
10
|
+
export declare const vnGovColors: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
palette: string[];
|
|
14
|
+
paletteFill: string[];
|
|
15
|
+
paletteLineFill: string[];
|
|
16
|
+
text: {
|
|
17
|
+
primary: string;
|
|
18
|
+
secondary: string;
|
|
19
|
+
light: string;
|
|
20
|
+
};
|
|
21
|
+
grid: {
|
|
22
|
+
line: string;
|
|
23
|
+
border: string;
|
|
24
|
+
axis: string;
|
|
25
|
+
};
|
|
26
|
+
container: {
|
|
27
|
+
background: string;
|
|
28
|
+
border: string;
|
|
29
|
+
shadow: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Professional Vietnamese government chart typography settings
|
|
34
|
+
* Using system sans-serif fonts for clean, official appearance
|
|
35
|
+
*/
|
|
36
|
+
export declare const vnGovTypography: {
|
|
37
|
+
fontFamily: string;
|
|
38
|
+
title: {
|
|
39
|
+
size: number;
|
|
40
|
+
weight: "bold";
|
|
41
|
+
lineHeight: number;
|
|
42
|
+
};
|
|
43
|
+
legend: {
|
|
44
|
+
size: number;
|
|
45
|
+
weight: "bold";
|
|
46
|
+
};
|
|
47
|
+
axis: {
|
|
48
|
+
size: number;
|
|
49
|
+
weight: "normal";
|
|
50
|
+
};
|
|
51
|
+
tooltip: {
|
|
52
|
+
size: number;
|
|
53
|
+
weight: "normal";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Applies Vietnamese government color palette to chart datasets
|
|
58
|
+
* Ensures consistent, professional appearance across all chart types
|
|
59
|
+
*/
|
|
60
|
+
export declare const applyVnGovColorsToDatasets: (data: ChartBubbleProps['config']['data'], chartType: SupportedChartType) => ChartBubbleProps['config']['data'];
|
|
61
|
+
/**
|
|
62
|
+
* Creates Vietnamese government-styled chart options
|
|
63
|
+
* Professional appearance suitable for official reports and dashboards
|
|
64
|
+
*/
|
|
65
|
+
export declare const createVnGovChartOptions: (chartType: SupportedChartType, title: string | undefined, textColor: string) => ChartOptions;
|
|
66
|
+
/**
|
|
67
|
+
* SolidJS component that renders a Chart.js chart with Vietnamese government styling.
|
|
68
|
+
* Features professional color palette, typography, and visual design appropriate
|
|
69
|
+
* for official government reports, dashboards, and publications.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ChartBubble: (props: ChartBubbleProps) => import("solid-js").JSX.Element;
|
|
72
|
+
export default ChartBubble;
|
|
73
|
+
//# sourceMappingURL=ChartBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAM1E;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CA0DvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAmB3B,CAAC;AAoGF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,SAC/B,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,aAC7B,kBAAkB,KAC5B,gBAAgB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAiGnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,cACvB,kBAAkB,SACtB,MAAM,GAAG,SAAS,aACd,MAAM,KAChB,YAkJF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,mCAsElD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ChartLoadingPlaceholderProps } from '@/types/chart';
|
|
2
|
+
/**
|
|
3
|
+
* Loading skeleton component displayed while chart data is streaming.
|
|
4
|
+
* Shows an animated placeholder with a chart icon.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ChartLoadingPlaceholder: (props: ChartLoadingPlaceholderProps) => import("solid-js").JSX.Element;
|
|
7
|
+
export default ChartLoadingPlaceholder;
|
|
8
|
+
//# sourceMappingURL=ChartLoadingPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartLoadingPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartLoadingPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAIlE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,4BAA4B,mCAkI1E,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ChartConfig } from '@/types/chart';
|
|
2
|
+
export interface ChartPlaceholderProps {
|
|
3
|
+
chartId: string;
|
|
4
|
+
/** Getter function that returns the chart config. Using a getter ensures reactivity when rendered via SolidJS render(). */
|
|
5
|
+
getConfig?: () => ChartConfig | null | undefined;
|
|
6
|
+
/** Getter function that returns loading state. Using a getter ensures reactivity when rendered via SolidJS render(). */
|
|
7
|
+
getIsLoading?: () => boolean;
|
|
8
|
+
/** Getter function that returns true while streaming is in progress. Using a getter ensures reactivity when rendered via SolidJS render(). */
|
|
9
|
+
isStreaming?: () => boolean;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Simplified placeholder component that renders charts directly inline.
|
|
15
|
+
* Uses StableChartWrapper to ensure charts are only rendered once when config is available.
|
|
16
|
+
* Includes a fullscreen button to open the chart in a popup modal with zoom/pan capabilities.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ChartPlaceholder: (props: ChartPlaceholderProps) => import("solid-js").JSX.Element;
|
|
19
|
+
export default ChartPlaceholder;
|
|
20
|
+
//# sourceMappingURL=ChartPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartPlaceholder.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKjD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,2HAA2H;IAC3H,SAAS,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,wHAAwH;IACxH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC;IAC7B,8IAA8I;IAC9I,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCA+E5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPopupModal.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartPopupModal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAS1D,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAiO1D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ChartPortalContainerProps {
|
|
2
|
+
backgroundColor?: string;
|
|
3
|
+
textColor?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Portal container that renders all charts outside the reactive streaming flow.
|
|
7
|
+
* Charts are positioned absolutely to overlay their corresponding placeholders.
|
|
8
|
+
* This prevents chart re-renders during message streaming.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ChartPortalContainer: (props: ChartPortalContainerProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export default ChartPortalContainer;
|
|
12
|
+
//# sourceMappingURL=ChartPortalContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPortalContainer.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ChartPortalContainer.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,mCA+DpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type Props = {
|
|
2
|
+
streamingStartTime?: number | null;
|
|
3
|
+
elapsedStreamingTime?: number;
|
|
4
|
+
hideTimer?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const LoadingBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
+
export {};
|
|
2
8
|
//# sourceMappingURL=LoadingBubble.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,KAAK,mCAWzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/SourceBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"SourceBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/SourceBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,KAAK,mCAmDxC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChartConfig } from '@/types/chart';
|
|
2
|
+
export interface StableChartWrapperProps {
|
|
3
|
+
chartId: string;
|
|
4
|
+
/** Getter function for reactive config updates */
|
|
5
|
+
getConfig?: () => ChartConfig | null | undefined;
|
|
6
|
+
/** Getter function for reactive loading state updates */
|
|
7
|
+
getIsLoading?: () => boolean;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A stable wrapper component that renders ChartBubble only ONCE when config becomes available.
|
|
13
|
+
* Uses manual DOM rendering via solid-js/web render() to bypass reactive updates.
|
|
14
|
+
* This prevents re-renders during streaming updates.
|
|
15
|
+
*/
|
|
16
|
+
export declare const StableChartWrapper: (props: StableChartWrapperProps) => import("solid-js").JSX.Element;
|
|
17
|
+
export default StableChartWrapper;
|
|
18
|
+
//# sourceMappingURL=StableChartWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StableChartWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StableChartWrapper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,mCAmGhE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA0B/C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface ICopyMessageButtonProps {
|
|
2
|
+
class?: string;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
onCopy?: (text: string) => void;
|
|
5
|
+
copiedDuration?: number;
|
|
6
|
+
textToCopy: string;
|
|
7
|
+
}
|
|
8
|
+
declare const CopyMessageButton: (props: ICopyMessageButtonProps) => import("solid-js").JSX.Element;
|
|
9
|
+
export default CopyMessageButton;
|
|
10
|
+
//# sourceMappingURL=CopyMessageButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyMessageButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/CopyMessageButton.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,mCA6CxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface IEditMessageButtonProps {
|
|
2
|
+
class?: string;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const EditMessageButton: (props: IEditMessageButtonProps) => import("solid-js").JSX.Element;
|
|
7
|
+
export default EditMessageButton;
|
|
8
|
+
//# sourceMappingURL=EditMessageButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditMessageButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/EditMessageButton.tsx"],"names":[],"mappings":"AAEA,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,iBAAiB,UAAW,uBAAuB,mCAmBxD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupToast.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/PopupToast.tsx"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,UAAW,WAAW,mCAwCrC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -7,6 +7,7 @@ type SendButtonProps = {
|
|
|
7
7
|
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
8
|
export declare const SendButton: (props: SendButtonProps) => JSX.Element;
|
|
9
9
|
export declare const DeleteButton: (props: SendButtonProps) => JSX.Element;
|
|
10
|
+
export declare const FullScreenButton: (props: SendButtonProps) => JSX.Element;
|
|
10
11
|
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
11
12
|
export {};
|
|
12
13
|
//# sourceMappingURL=SendButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"}
|
|
1
|
+
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBAsBtD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface EditMessageDialogProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
originalMessage: string;
|
|
5
|
+
onSave: (newMessage: string) => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
declare const EditMessageDialog: (props: EditMessageDialogProps) => import("solid-js").JSX.Element;
|
|
8
|
+
export default EditMessageDialog;
|
|
9
|
+
//# sourceMappingURL=EditMessageDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditMessageDialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialogs/EditMessageDialog.tsx"],"names":[],"mappings":"AAEA,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C;AAED,QAAA,MAAM,iBAAiB,UAAW,sBAAsB,mCA0EvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AddImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"AddImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AddImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAmBtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CheckIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAcnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CopyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,gBAiBzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/EditIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,gBAiBzF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullScreenIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FullScreenIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAwBxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetZoomIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ResetZoomIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomInIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ZoomInIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomOutIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ZoomOutIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,eAAO,MAAM,WAAW,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAiBrE,CAAC"}
|
|
@@ -11,4 +11,11 @@ export * from './XIcon';
|
|
|
11
11
|
export * from './TickIcon';
|
|
12
12
|
export * from './AttachmentIcon';
|
|
13
13
|
export * from './SparklesIcon';
|
|
14
|
+
export * from './FullScreenIcon';
|
|
15
|
+
export * from './EditIcon';
|
|
16
|
+
export * from './CopyIcon';
|
|
17
|
+
export * from './CheckIcon';
|
|
18
|
+
export * from './ZoomInIcon';
|
|
19
|
+
export * from './ZoomOutIcon';
|
|
20
|
+
export * from './ResetZoomIcon';
|
|
14
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewImage.d.ts","sourceRoot":"","sources":["../../../src/components/image/PreviewImage.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;gBAAyB,MAAM,OAAO,GAAG,IAAI;2BAAyB,OAAO,GAAG,IAAI,KAAK,IAAI;oCA6BrH,CAAC"}
|
|
@@ -4,6 +4,10 @@ type ShortTextInputProps = {
|
|
|
4
4
|
onInput: (value: string) => void;
|
|
5
5
|
fontSize?: number;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
isWelcomeScreen?: boolean;
|
|
8
|
+
onFocus?: () => void;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
onPaste?: (event: any) => void;
|
|
7
11
|
} & Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onInput'>;
|
|
8
12
|
export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element;
|
|
9
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAErE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBAoKxD,CAAC"}
|