cmcts-c-agent-embedding-react 1.0.64-vib → 1.0.66-vib
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/README.md +48 -48
- package/base.json +21 -21
- package/dist/index.js +1 -1
- package/package.json +43 -47
- package/react-library.json +11 -11
- package/dist/components/Badge.d.ts +0 -10
- package/dist/components/Badge.d.ts.map +0 -1
- package/dist/components/Bot.d.ts +0 -130
- package/dist/components/Bot.d.ts.map +0 -1
- package/dist/components/FeedbackContentDialog.d.ts +0 -16
- package/dist/components/FeedbackContentDialog.d.ts.map +0 -1
- package/dist/components/Toast.d.ts +0 -10
- package/dist/components/Toast.d.ts.map +0 -1
- package/dist/components/TypingBubble.d.ts +0 -2
- package/dist/components/TypingBubble.d.ts.map +0 -1
- package/dist/components/avatars/Avatar.d.ts +0 -4
- package/dist/components/avatars/Avatar.d.ts.map +0 -1
- package/dist/components/avatars/DefaultAvatar.d.ts +0 -2
- package/dist/components/avatars/DefaultAvatar.d.ts.map +0 -1
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +0 -16
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +0 -1
- package/dist/components/bubbles/BotBubble.d.ts +0 -38
- package/dist/components/bubbles/BotBubble.d.ts.map +0 -1
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +0 -8
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +0 -1
- package/dist/components/bubbles/GuestBubble.d.ts +0 -16
- package/dist/components/bubbles/GuestBubble.d.ts.map +0 -1
- package/dist/components/bubbles/LeadCaptureBubble.d.ts +0 -20
- package/dist/components/bubbles/LeadCaptureBubble.d.ts.map +0 -1
- package/dist/components/bubbles/LoadingBubble.d.ts +0 -8
- package/dist/components/bubbles/LoadingBubble.d.ts.map +0 -1
- package/dist/components/bubbles/SourceBubble.d.ts +0 -9
- package/dist/components/bubbles/SourceBubble.d.ts.map +0 -1
- package/dist/components/bubbles/StarterPromptBubble.d.ts +0 -8
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +0 -1
- package/dist/components/buttons/AttachmentUploadButton.d.ts +0 -11
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +0 -1
- package/dist/components/buttons/CancelButton.d.ts +0 -10
- package/dist/components/buttons/CancelButton.d.ts.map +0 -1
- package/dist/components/buttons/FeedbackButtons.d.ts +0 -14
- package/dist/components/buttons/FeedbackButtons.d.ts.map +0 -1
- package/dist/components/buttons/ImageUploadButton.d.ts +0 -11
- package/dist/components/buttons/ImageUploadButton.d.ts.map +0 -1
- package/dist/components/buttons/LeadCaptureButtons.d.ts +0 -11
- package/dist/components/buttons/LeadCaptureButtons.d.ts.map +0 -1
- package/dist/components/buttons/RecordAudioButton.d.ts +0 -11
- package/dist/components/buttons/RecordAudioButton.d.ts.map +0 -1
- package/dist/components/buttons/SendButton.d.ts +0 -13
- package/dist/components/buttons/SendButton.d.ts.map +0 -1
- package/dist/components/icons/AddImageIcon.d.ts +0 -3
- package/dist/components/icons/AddImageIcon.d.ts.map +0 -1
- package/dist/components/icons/AttachmentIcon.d.ts +0 -3
- package/dist/components/icons/AttachmentIcon.d.ts.map +0 -1
- package/dist/components/icons/CircleDotIcon.d.ts +0 -3
- package/dist/components/icons/CircleDotIcon.d.ts.map +0 -1
- package/dist/components/icons/ClipboardIcon.d.ts +0 -3
- package/dist/components/icons/ClipboardIcon.d.ts.map +0 -1
- package/dist/components/icons/CmcIcon.d.ts +0 -3
- package/dist/components/icons/CmcIcon.d.ts.map +0 -1
- package/dist/components/icons/DeleteIcon.d.ts +0 -3
- package/dist/components/icons/DeleteIcon.d.ts.map +0 -1
- package/dist/components/icons/FullScreenIcon.d.ts +0 -3
- package/dist/components/icons/FullScreenIcon.d.ts.map +0 -1
- package/dist/components/icons/RecordIcon.d.ts +0 -3
- package/dist/components/icons/RecordIcon.d.ts.map +0 -1
- package/dist/components/icons/ResetBtn.d.ts +0 -3
- package/dist/components/icons/ResetBtn.d.ts.map +0 -1
- package/dist/components/icons/SendIcon.d.ts +0 -3
- package/dist/components/icons/SendIcon.d.ts.map +0 -1
- package/dist/components/icons/SendIconOff.d.ts +0 -3
- package/dist/components/icons/SendIconOff.d.ts.map +0 -1
- package/dist/components/icons/SendIconOn.d.ts +0 -3
- package/dist/components/icons/SendIconOn.d.ts.map +0 -1
- package/dist/components/icons/SparklesIcon.d.ts +0 -3
- package/dist/components/icons/SparklesIcon.d.ts.map +0 -1
- package/dist/components/icons/ThumbsDownIcon.d.ts +0 -5
- package/dist/components/icons/ThumbsDownIcon.d.ts.map +0 -1
- package/dist/components/icons/ThumbsUpIcon.d.ts +0 -5
- package/dist/components/icons/ThumbsUpIcon.d.ts.map +0 -1
- package/dist/components/icons/TickIcon.d.ts +0 -2
- package/dist/components/icons/TickIcon.d.ts.map +0 -1
- package/dist/components/icons/TrashIcon.d.ts +0 -3
- package/dist/components/icons/TrashIcon.d.ts.map +0 -1
- package/dist/components/icons/XIcon.d.ts +0 -5
- package/dist/components/icons/XIcon.d.ts.map +0 -1
- package/dist/components/icons/index.d.ts +0 -15
- package/dist/components/icons/index.d.ts.map +0 -1
- package/dist/components/image/PreviewImage.d.ts +0 -5
- package/dist/components/image/PreviewImage.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +0 -12
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +0 -1
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts +0 -13
- package/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +0 -1
- package/dist/components/inputs/textInput/components/TextInput.d.ts +0 -36
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +0 -1
- package/dist/components/inputs/textInput/index.d.ts +0 -3
- package/dist/components/inputs/textInput/index.d.ts.map +0 -1
- package/dist/components/mobile/MobileWelcomeScreen.d.ts +0 -13
- package/dist/components/mobile/MobileWelcomeScreen.d.ts.map +0 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +0 -1
- package/dist/features/bubble/components/Bubble.d.ts +0 -5
- package/dist/features/bubble/components/Bubble.d.ts.map +0 -1
- package/dist/features/bubble/components/BubbleButton.d.ts +0 -16
- package/dist/features/bubble/components/BubbleButton.d.ts.map +0 -1
- package/dist/features/bubble/components/Tooltip.d.ts +0 -15
- package/dist/features/bubble/components/Tooltip.d.ts.map +0 -1
- package/dist/features/bubble/components/index.d.ts +0 -2
- package/dist/features/bubble/components/index.d.ts.map +0 -1
- package/dist/features/bubble/index.d.ts +0 -2
- package/dist/features/bubble/index.d.ts.map +0 -1
- package/dist/features/bubble/types.d.ts +0 -111
- package/dist/features/bubble/types.d.ts.map +0 -1
- package/dist/features/full/components/Full.d.ts +0 -7
- package/dist/features/full/components/Full.d.ts.map +0 -1
- package/dist/features/full/components/index.d.ts +0 -2
- package/dist/features/full/components/index.d.ts.map +0 -1
- package/dist/features/full/index.d.ts +0 -2
- package/dist/features/full/index.d.ts.map +0 -1
- package/dist/features/popup/components/DisclaimerPopup.d.ts +0 -14
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +0 -1
- package/dist/features/popup/components/Popup.d.ts +0 -8
- package/dist/features/popup/components/Popup.d.ts.map +0 -1
- package/dist/features/popup/components/index.d.ts +0 -3
- package/dist/features/popup/components/index.d.ts.map +0 -1
- package/dist/features/popup/index.d.ts +0 -2
- package/dist/features/popup/index.d.ts.map +0 -1
- package/dist/features/popup/types.d.ts +0 -8
- package/dist/features/popup/types.d.ts.map +0 -1
- package/dist/hooks/useMobileDetection.d.ts +0 -52
- package/dist/hooks/useMobileDetection.d.ts.map +0 -1
- package/dist/queries/sendMessageQuery.d.ts +0 -125
- package/dist/queries/sendMessageQuery.d.ts.map +0 -1
- package/dist/register.d.ts +0 -2
- package/dist/register.d.ts.map +0 -1
- package/dist/test-markdown-component.d.ts +0 -2
- package/dist/test-markdown-component.d.ts.map +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/audioRecording.d.ts +0 -21
- package/dist/utils/audioRecording.d.ts.map +0 -1
- package/dist/utils/chatInputHistory.d.ts +0 -22
- package/dist/utils/chatInputHistory.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -100
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/isMobileSignal.d.ts +0 -2
- package/dist/utils/isMobileSignal.d.ts.map +0 -1
- package/dist/utils/mobileUtils.d.ts +0 -32
- package/dist/utils/mobileUtils.d.ts.map +0 -1
- package/dist/utils/ultimateJsonParser.d.ts +0 -2
- package/dist/utils/ultimateJsonParser.d.ts.map +0 -1
- package/dist/web.d.ts +0 -29
- package/dist/web.d.ts.map +0 -1
- package/dist/web.js +0 -1
- package/dist/window.d.ts +0 -33
- package/dist/window.d.ts.map +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export type DeviceType = 'mobile' | 'tablet' | 'desktop';
|
|
2
|
-
export type ScreenSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3
|
-
export interface DeviceInfo {
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
isTablet: boolean;
|
|
6
|
-
isDesktop: boolean;
|
|
7
|
-
deviceType: DeviceType;
|
|
8
|
-
screenSize: ScreenSize;
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
orientation: 'portrait' | 'landscape';
|
|
12
|
-
touchSupport: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Enhanced mobile detection hook with comprehensive device information
|
|
16
|
-
* Follows Tailwind CSS breakpoints:
|
|
17
|
-
* - xs: < 640px (mobile)
|
|
18
|
-
* - sm: 640px - 768px (large mobile/small tablet)
|
|
19
|
-
* - md: 768px - 1024px (tablet)
|
|
20
|
-
* - lg: 1024px - 1280px (small desktop)
|
|
21
|
-
* - xl: 1280px - 1536px (desktop)
|
|
22
|
-
* - 2xl: >= 1536px (large desktop)
|
|
23
|
-
*/
|
|
24
|
-
export declare const useMobileDetection: () => import("solid-js").Accessor<DeviceInfo>;
|
|
25
|
-
/**
|
|
26
|
-
* Simple mobile detection hook (backward compatibility)
|
|
27
|
-
*/
|
|
28
|
-
export declare const useIsMobile: () => () => boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Utility functions for responsive design
|
|
31
|
-
*/
|
|
32
|
-
export declare const createResponsiveClass: (deviceInfo: () => DeviceInfo) => {
|
|
33
|
-
mobile: (classes: string) => string;
|
|
34
|
-
tablet: (classes: string) => string;
|
|
35
|
-
desktop: (classes: string) => string;
|
|
36
|
-
touchDevice: (classes: string) => string;
|
|
37
|
-
portrait: (classes: string) => string;
|
|
38
|
-
landscape: (classes: string) => string;
|
|
39
|
-
screenSize: (size: ScreenSize, classes: string) => string;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Media query utilities
|
|
43
|
-
*/
|
|
44
|
-
export declare const mediaQueries: {
|
|
45
|
-
readonly mobile: "(max-width: 767px)";
|
|
46
|
-
readonly tablet: "(min-width: 768px) and (max-width: 1023px)";
|
|
47
|
-
readonly desktop: "(min-width: 1024px)";
|
|
48
|
-
readonly touch: "(hover: none) and (pointer: coarse)";
|
|
49
|
-
readonly portrait: "(orientation: portrait)";
|
|
50
|
-
readonly landscape: "(orientation: landscape)";
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=useMobileDetection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMobileDetection.d.ts","sourceRoot":"","sources":["../../src/hooks/useMobileDetection.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,GAAG,WAAW,CAAC;IACtC,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,+CAgF9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,qBAGvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,eAAgB,MAAM,UAAU;sBAE5C,MAAM;sBACN,MAAM;uBACL,MAAM;2BACF,MAAM;wBACT,MAAM;yBACL,MAAM;uBACR,UAAU,WAAW,MAAM;CAEjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { FileUpload, IAction } from '@/components/Bot';
|
|
2
|
-
export type IncomingInput = {
|
|
3
|
-
question: string;
|
|
4
|
-
uploads?: FileUpload[];
|
|
5
|
-
overrideConfig?: Record<string, unknown>;
|
|
6
|
-
socketIOClientId?: string;
|
|
7
|
-
chatId?: string;
|
|
8
|
-
fileName?: string;
|
|
9
|
-
leadEmail?: string;
|
|
10
|
-
action?: IAction;
|
|
11
|
-
stored?: Record<string, any>;
|
|
12
|
-
fetch?: boolean;
|
|
13
|
-
faqId?: string;
|
|
14
|
-
useId?: string;
|
|
15
|
-
};
|
|
16
|
-
type BaseRequest = {
|
|
17
|
-
apiHost?: string;
|
|
18
|
-
onRequest?: (request: RequestInit) => Promise<void>;
|
|
19
|
-
};
|
|
20
|
-
export type MessageRequest = BaseRequest & {
|
|
21
|
-
chatflowid?: string;
|
|
22
|
-
body?: IncomingInput;
|
|
23
|
-
};
|
|
24
|
-
export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
|
|
25
|
-
export type FeedbackInput = {
|
|
26
|
-
chatId: string;
|
|
27
|
-
messageId: string;
|
|
28
|
-
rating: any;
|
|
29
|
-
content?: string;
|
|
30
|
-
};
|
|
31
|
-
export type CreateFeedbackRequest = BaseRequest & {
|
|
32
|
-
chatflowid?: string;
|
|
33
|
-
body?: FeedbackInput;
|
|
34
|
-
};
|
|
35
|
-
export type UpdateFeedbackRequest = BaseRequest & {
|
|
36
|
-
id: string;
|
|
37
|
-
body?: Partial<FeedbackInput>;
|
|
38
|
-
};
|
|
39
|
-
export type UpsertRequest = BaseRequest & {
|
|
40
|
-
chatflowid: string;
|
|
41
|
-
apiHost?: string;
|
|
42
|
-
formData: FormData;
|
|
43
|
-
};
|
|
44
|
-
export type LeadCaptureInput = {
|
|
45
|
-
chatflowid: string;
|
|
46
|
-
chatId: string;
|
|
47
|
-
name?: string;
|
|
48
|
-
email?: string;
|
|
49
|
-
phone?: string;
|
|
50
|
-
};
|
|
51
|
-
export type GetFeedbackByMessageIdRequest = BaseRequest & {
|
|
52
|
-
messageId: string;
|
|
53
|
-
};
|
|
54
|
-
export type LeadCaptureRequest = BaseRequest & {
|
|
55
|
-
body: Partial<LeadCaptureInput>;
|
|
56
|
-
};
|
|
57
|
-
export declare const getUserFromLocalStorage: () => any | null;
|
|
58
|
-
export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
|
|
59
|
-
data?: unknown;
|
|
60
|
-
error?: Error | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const getFeedbackByMessageId: ({ messageId, apiHost, onRequest }: GetFeedbackByMessageIdRequest) => Promise<{
|
|
63
|
-
data?: unknown;
|
|
64
|
-
error?: Error | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
|
|
67
|
-
data?: unknown;
|
|
68
|
-
error?: Error | undefined;
|
|
69
|
-
}>;
|
|
70
|
-
export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{
|
|
71
|
-
data?: any;
|
|
72
|
-
error?: Error | undefined;
|
|
73
|
-
}>;
|
|
74
|
-
export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
|
|
75
|
-
data?: unknown;
|
|
76
|
-
error?: Error | undefined;
|
|
77
|
-
}>;
|
|
78
|
-
export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
|
|
79
|
-
data?: unknown;
|
|
80
|
-
error?: Error | undefined;
|
|
81
|
-
}>;
|
|
82
|
-
export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
|
|
83
|
-
data?: any;
|
|
84
|
-
error?: Error | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
|
|
87
|
-
data?: any;
|
|
88
|
-
error?: Error | undefined;
|
|
89
|
-
}>;
|
|
90
|
-
export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{
|
|
91
|
-
data?: any;
|
|
92
|
-
error?: Error | undefined;
|
|
93
|
-
}>;
|
|
94
|
-
export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{
|
|
95
|
-
data?: any;
|
|
96
|
-
error?: Error | undefined;
|
|
97
|
-
}>;
|
|
98
|
-
export declare const searchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
|
|
99
|
-
chatflowid?: string | undefined;
|
|
100
|
-
apiHost?: string | undefined;
|
|
101
|
-
query: string;
|
|
102
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
103
|
-
}) => Promise<{
|
|
104
|
-
data?: any;
|
|
105
|
-
error?: Error | undefined;
|
|
106
|
-
}>;
|
|
107
|
-
export declare const vectorSearchFaqsQuery: ({ chatflowid, apiHost, query, onRequest, }: {
|
|
108
|
-
chatflowid: string;
|
|
109
|
-
apiHost?: string | undefined;
|
|
110
|
-
query: string;
|
|
111
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
112
|
-
}) => Promise<{
|
|
113
|
-
data?: any;
|
|
114
|
-
error?: Error | undefined;
|
|
115
|
-
}>;
|
|
116
|
-
export declare const getFileContent: ({ apiHost, path, onRequest, }: {
|
|
117
|
-
apiHost?: string | undefined;
|
|
118
|
-
path: string;
|
|
119
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
120
|
-
}) => Promise<{
|
|
121
|
-
data?: any;
|
|
122
|
-
error?: Error | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
export {};
|
|
125
|
-
//# sourceMappingURL=sendMessageQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;C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 -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-markdown-component.d.ts","sourceRoot":"","sources":["../src/test-markdown-component.tsx"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY,sCA6DxB,CAAC"}
|
package/dist/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare function getElaspedTime(): string;
|
|
2
|
-
/** Starts the audio recording*/
|
|
3
|
-
export declare function startAudioRecording(onRecordingStart: (value: boolean) => void, onUnsupportedBrowser: (value: boolean) => void, setElapsedTime: (value: string) => void): void;
|
|
4
|
-
/** Stop the currently started audio recording & sends it
|
|
5
|
-
*/
|
|
6
|
-
export declare function stopAudioRecording(addRecordingToPreviews: null | ((blob: Blob) => void)): void;
|
|
7
|
-
/** Cancel the currently started audio recording */
|
|
8
|
-
export declare function cancelAudioRecording(): void;
|
|
9
|
-
type AudioRecorder = {
|
|
10
|
-
audioBlobs: Blob[];
|
|
11
|
-
mediaRecorder: MediaRecorder | null;
|
|
12
|
-
streamBeingCaptured: MediaStream | null;
|
|
13
|
-
start: () => Promise<void>;
|
|
14
|
-
stop: () => Promise<unknown>;
|
|
15
|
-
cancel: () => void;
|
|
16
|
-
stopStream: () => void;
|
|
17
|
-
resetRecordingProperties: () => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const audioRecorder: AudioRecorder;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=audioRecording.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audioRecording.d.ts","sourceRoot":"","sources":["../../src/utils/audioRecording.ts"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,WAE7B;AAED,gCAAgC;AAChC,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC1C,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,QAkExC;AACD;GACG;AACH,wBAAgB,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,QAuBvF;AAED,mDAAmD;AACnD,wBAAgB,oBAAoB,SAMnC;AA8FD,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,WAAW,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB,EAAE,MAAM,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aA6G3B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type ChatHistoryStorage = {
|
|
2
|
-
getItem(key: string): string | null;
|
|
3
|
-
setItem(key: string, value: string): void;
|
|
4
|
-
};
|
|
5
|
-
export declare class ChatInputHistory {
|
|
6
|
-
private getMaxHistory;
|
|
7
|
-
private storage;
|
|
8
|
-
private history;
|
|
9
|
-
private currentIndex;
|
|
10
|
-
private tempInput;
|
|
11
|
-
private maxHistory;
|
|
12
|
-
constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage);
|
|
13
|
-
getHistory(): string[];
|
|
14
|
-
getCurrentIndex(): number;
|
|
15
|
-
addToHistory(input: string): void;
|
|
16
|
-
getPreviousInput(currentInput: string): string;
|
|
17
|
-
getNextInput(): string;
|
|
18
|
-
private saveHistory;
|
|
19
|
-
private loadHistory;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=chatInputHistory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatInputHistory.d.ts","sourceRoot":"","sources":["../../src/utils/chatInputHistory.ts"],"names":[],"mappings":"AACA,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAPjB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAS;gBAGjB,aAAa,GAAE,MAAM,MAAiB,EACtC,OAAO,GAAE,kBAAiC;IAMpD,UAAU,IAAI,MAAM,EAAE;IAItB,eAAe,IAAI,MAAM;IAIzB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAejC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAY9C,YAAY,IAAI,MAAM;IAWtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;CAWpB"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
export declare const isNotDefined: <T>(value: T | null | undefined) => value is null | undefined;
|
|
2
|
-
export declare const isDefined: <T>(value: T | null | undefined) => value is NonNullable<T>;
|
|
3
|
-
export declare const isEmpty: (value: string | undefined | null) => value is undefined;
|
|
4
|
-
export declare const isNotEmpty: (value: string | undefined | null) => value is string;
|
|
5
|
-
/**
|
|
6
|
-
* Clears authentication data from localStorage
|
|
7
|
-
* Used when 401 errors are detected or user logs out
|
|
8
|
-
*/
|
|
9
|
-
export declare const clearAuthenticationData: () => void;
|
|
10
|
-
export declare const sendRequest: <ResponseData>(params: string | {
|
|
11
|
-
url: string;
|
|
12
|
-
method: string;
|
|
13
|
-
body?: Record<string, unknown> | FormData | undefined;
|
|
14
|
-
type?: string | undefined;
|
|
15
|
-
headers?: Record<string, any> | undefined;
|
|
16
|
-
formData?: FormData | undefined;
|
|
17
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
18
|
-
}) => Promise<{
|
|
19
|
-
data?: ResponseData | undefined;
|
|
20
|
-
error?: Error | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const setLocalStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record<string, any>) => void;
|
|
23
|
-
export declare const getLocalStorageChatflow: (chatflowid: string) => any;
|
|
24
|
-
export declare const removeLocalStorageChatHistory: (chatflowid: string) => void;
|
|
25
|
-
export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number;
|
|
26
|
-
export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Validates dataLogin from localStorage and maps user data to cmcts:userInfo
|
|
29
|
-
* @returns true if successful mapping occurred, false otherwise
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Type definitions for user info API response
|
|
33
|
-
*/
|
|
34
|
-
export type UserInfoApiResponse = {
|
|
35
|
-
RESULT: {
|
|
36
|
-
CODE: number;
|
|
37
|
-
MSG: string;
|
|
38
|
-
};
|
|
39
|
-
OBJRETURN: {
|
|
40
|
-
data: {
|
|
41
|
-
id: string;
|
|
42
|
-
_id: number;
|
|
43
|
-
loginname: string;
|
|
44
|
-
fullname: string;
|
|
45
|
-
fullnameen: string;
|
|
46
|
-
email: string;
|
|
47
|
-
code: string;
|
|
48
|
-
mobile?: string;
|
|
49
|
-
imageurl?: string;
|
|
50
|
-
roleName: string[];
|
|
51
|
-
techGroup: Array<{
|
|
52
|
-
id: number;
|
|
53
|
-
name: string;
|
|
54
|
-
}>;
|
|
55
|
-
permissions: Record<string, string>;
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Fetches user info from /api/user-info endpoint with cookies
|
|
62
|
-
* @param apiHost - The API host URL
|
|
63
|
-
* @param onRequest - Optional request interceptor
|
|
64
|
-
* @returns Promise with user info data or error
|
|
65
|
-
*/
|
|
66
|
-
export declare const fetchUserInfo: (apiHost: string, onRequest?: ((request: RequestInit) => Promise<void>) | undefined) => Promise<{
|
|
67
|
-
data?: UserInfoApiResponse;
|
|
68
|
-
error?: Error;
|
|
69
|
-
}>;
|
|
70
|
-
/**
|
|
71
|
-
* Maps API response to dataLogin format expected by the application
|
|
72
|
-
* @param apiResponse - The API response from /api/user-info
|
|
73
|
-
* @returns Mapped dataLogin object
|
|
74
|
-
*/
|
|
75
|
-
export declare const mapApiResponseToDataLogin: (apiResponse: UserInfoApiResponse) => any;
|
|
76
|
-
/**
|
|
77
|
-
* Validates dataLogin from localStorage and maps user data to cmcts:userInfo
|
|
78
|
-
* @returns true if successful mapping occurred, false otherwise
|
|
79
|
-
*/
|
|
80
|
-
export declare const validateAndMapUserInfo: () => boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Checks and initializes authentication for popup embedding
|
|
83
|
-
* If dataLogin doesn't exist, fetches user info from API and creates it
|
|
84
|
-
* @param apiHost - The API host URL
|
|
85
|
-
* @param onRequest - Optional request interceptor
|
|
86
|
-
* @param isFullPage - Whether the chatbot is in full page mode
|
|
87
|
-
* @returns Promise<boolean> - true if authentication is successful, false otherwise
|
|
88
|
-
*/
|
|
89
|
-
export declare const checkAndInitializeAuth: (apiHost?: string, onRequest?: ((request: RequestInit) => Promise<void>) | undefined, isFullPage?: boolean) => Promise<boolean>;
|
|
90
|
-
/**
|
|
91
|
-
* Forces reload of user information from API and remaps to dataLogin
|
|
92
|
-
* Used when popup opens to ensure fresh user data
|
|
93
|
-
* @param apiHost - The API host URL
|
|
94
|
-
* @param onRequest - Optional request interceptor
|
|
95
|
-
* @param isFullPage - Whether the chatbot is in full page mode
|
|
96
|
-
* @returns Promise<boolean> - true if reload and mapping successful, false otherwise
|
|
97
|
-
*/
|
|
98
|
-
export declare const reloadAndMapUserInfo: (apiHost?: string, onRequest?: ((request: RequestInit) => Promise<void>) | undefined, isFullPage?: boolean) => Promise<boolean>;
|
|
99
|
-
export declare const getCookie: (cname: string) => string;
|
|
100
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI;;;GAGG;AACH,eAAO,MAAM,uBAAuB,QAAO,IAQ1C,CAAC;AAEF,eAAO,MAAM,WAAW;SAGX,MAAM;YACH,MAAM;;;;;2BAKQ,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EA6D1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,UAAU,MAAM,YAAW,OAAO,MAAM,EAAE,GAAG,CAAC,SAiBvG,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,QAQzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAAgB,MAAM,SAyB/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,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ACnB,QAAQ,OAAO,CAoEjB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,yBACM,WAAW,KAAK,QAAQ,IAAI,CAAC,4BACtC,OAAO,KACnB,QAAQ,OAAO,CA6DjB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAO,QAAQ,oDAAE,WAAW,gDAA2B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility function to conditionally apply mobile-specific classes
|
|
3
|
-
* @param mobileClasses - Classes to apply on mobile
|
|
4
|
-
* @param desktopClasses - Classes to apply on desktop (optional)
|
|
5
|
-
* @returns Combined class string based on current device type
|
|
6
|
-
*/
|
|
7
|
-
export declare const mobileClass: (mobileClasses: string, desktopClasses?: string) => string;
|
|
8
|
-
/**
|
|
9
|
-
* Utility function to combine base classes with mobile-specific classes
|
|
10
|
-
* @param baseClasses - Classes that apply to both mobile and desktop
|
|
11
|
-
* @param mobileClasses - Additional classes for mobile
|
|
12
|
-
* @param desktopClasses - Additional classes for desktop (optional)
|
|
13
|
-
* @returns Combined class string
|
|
14
|
-
*/
|
|
15
|
-
export declare const responsiveClass: (baseClasses: string, mobileClasses?: string, desktopClasses?: string) => string;
|
|
16
|
-
/**
|
|
17
|
-
* Mobile-specific background container class
|
|
18
|
-
*/
|
|
19
|
-
export declare const getMobileBackgroundClass: () => "" | "mobile-bg-container";
|
|
20
|
-
/**
|
|
21
|
-
* Mobile-specific header class
|
|
22
|
-
*/
|
|
23
|
-
export declare const getMobileHeaderClass: () => "" | "mobile-header";
|
|
24
|
-
/**
|
|
25
|
-
* Mobile-specific input container class
|
|
26
|
-
*/
|
|
27
|
-
export declare const getMobileInputClass: () => "" | "mobile-input-container";
|
|
28
|
-
/**
|
|
29
|
-
* Mobile-specific welcome screen class
|
|
30
|
-
*/
|
|
31
|
-
export declare const getMobileWelcomeClass: () => "" | "welcome-screen-mobile";
|
|
32
|
-
//# sourceMappingURL=mobileUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobileUtils.d.ts","sourceRoot":"","sources":["../../src/utils/mobileUtils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,kBAAmB,MAAM,mBAAkB,MAAM,WAExE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,kBACJ,MAAM,mBACL,MAAM,WAIvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,kCAIpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,4BAIhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,qCAI/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,oCAIjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ultimateJsonParser.d.ts","sourceRoot":"","sources":["../../src/utils/ultimateJsonParser.ts"],"names":[],"mappings":"AAsBA,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAgDzD"}
|
package/dist/web.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare const chatbot: {
|
|
2
|
-
initFull: (props: {
|
|
3
|
-
chatflowid: string;
|
|
4
|
-
apiHost?: string | undefined;
|
|
5
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
6
|
-
chatflowConfig?: Record<string, unknown> | undefined;
|
|
7
|
-
observersConfig?: import("./components/Bot").observersConfigType | undefined;
|
|
8
|
-
theme?: import("./features/bubble/types").BubbleTheme | undefined;
|
|
9
|
-
chatwootUrl?: string | undefined;
|
|
10
|
-
roomIds?: Record<string, string> | undefined;
|
|
11
|
-
isUseFAQ?: boolean | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
id?: string | undefined;
|
|
14
|
-
}) => void;
|
|
15
|
-
init: (props: {
|
|
16
|
-
chatflowid: string;
|
|
17
|
-
apiHost?: string | undefined;
|
|
18
|
-
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
19
|
-
chatflowConfig?: Record<string, unknown> | undefined;
|
|
20
|
-
observersConfig?: import("./components/Bot").observersConfigType | undefined;
|
|
21
|
-
theme?: import("./features/bubble/types").BubbleTheme | undefined;
|
|
22
|
-
chatwootUrl?: string | undefined;
|
|
23
|
-
roomIds?: Record<string, string> | undefined;
|
|
24
|
-
isUseFAQ?: boolean | undefined;
|
|
25
|
-
}) => void;
|
|
26
|
-
destroy: () => void;
|
|
27
|
-
};
|
|
28
|
-
export default chatbot;
|
|
29
|
-
//# sourceMappingURL=web.d.ts.map
|
package/dist/web.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"}
|