widget-chatbot 1.0.3-alpha.3 → 1.0.3-alpha.5
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/index.d.ts +36 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/types/assets/LoadingIcon.d.ts +0 -2
- package/dist/types/assets/icons/BackIcon.d.ts +0 -5
- package/dist/types/assets/icons/DocIcon.d.ts +0 -2
- package/dist/types/assets/icons/DragIcon.d.ts +0 -10
- package/dist/types/assets/icons/FileAltIcon.d.ts +0 -5
- package/dist/types/assets/icons/FollowAssistant.d.ts +0 -2
- package/dist/types/assets/icons/FormIcon.d.ts +0 -2
- package/dist/types/assets/icons/ReactionFeedbackIcon.d.ts +0 -5
- package/dist/types/assets/icons/ReadUnreadIcon.d.ts +0 -2
- package/dist/types/assets/icons/RightArrowIcon.d.ts +0 -2
- package/dist/types/assets/icons/ThumbsIcon.d.ts +0 -8
- package/dist/types/index.d.ts +0 -95
- package/dist/types/src/HistoryContext.d.ts +0 -7
- package/dist/types/src/LanguageContextProvider.d.ts +0 -5
- package/dist/types/src/PayloadContextProvider.d.ts +0 -28
- package/dist/types/src/PayslipContextProvider.d.ts +0 -22
- package/dist/types/src/components/Global/ErrorBoundary/index.d.ts +0 -13
- package/dist/types/src/components/Global/ModalChatbot/index.d.ts +0 -41
- package/dist/types/src/components/Global/NotAuthorized/index.d.ts +0 -2
- package/dist/types/src/components/Widget/ThemeContext.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/HelpdeskChatContextProvider.d.ts +0 -5
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalCloseTicket.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalFeedback.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalImagePreview.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Body/index.d.ts +0 -8
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpBotInfo.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpMarkdownText.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpMessagesRender.d.ts +0 -6
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpNewComponent.d.ts +0 -11
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpPrediction.d.ts +0 -16
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpRecommendation.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpReferences.d.ts +0 -10
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpSuggestion.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpTimestamps.d.ts +0 -12
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpTypingIndication.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpChart.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpCollapsible.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpDivider.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpFileDownload.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpText.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/index.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Header/index.d.ts +0 -26
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/EmptyHelpdesk.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/BalloonChat.d.ts +0 -7
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/AttachmentChat.d.ts +0 -10
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/RegularChat.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/info-chat/index.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/index.d.ts +0 -4
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/list-ticket/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/loading-next-fetch/index.d.ts +0 -10
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/search-ticket/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/skeleton-helpdesk/index.d.ts +0 -6
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/title-helpdesk/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/MessagesRender.d.ts +0 -16
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/FormFeedback.d.ts +0 -6
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/ListReasons.d.ts +0 -5
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/index.d.ts +0 -19
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/index.d.ts +0 -23
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/AssistantSender.d.ts +0 -26
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/ButtonResetConvo.d.ts +0 -5
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/EhelpSender.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/HelpdeskSender.d.ts +0 -6
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/LiveChatSender.d.ts +0 -32
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/helpers/isStringNull.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/index.d.ts +0 -30
- package/dist/types/src/components/Widget/components/Conversation/components/TabBottom/DotLiveChat.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/components/TabBottom/index.d.ts +0 -2
- package/dist/types/src/components/Widget/components/Conversation/index.d.ts +0 -23
- package/dist/types/src/components/Widget/components/Launcher/components/Badge/index.d.ts +0 -9
- package/dist/types/src/components/Widget/components/Launcher/components/LauncherCollapse/index.d.ts +0 -5
- package/dist/types/src/components/Widget/components/Launcher/index.d.ts +0 -34
- package/dist/types/src/components/Widget/index.d.ts +0 -113
- package/dist/types/src/components/Widget/layout.d.ts +0 -31
- package/dist/types/src/components/Widget/msgProcessor.d.ts +0 -23
- package/dist/types/src/constants.d.ts +0 -70
- package/dist/types/src/context/ConversationContextProvider.d.ts +0 -22
- package/dist/types/src/context/EhelpContextProvider.d.ts +0 -7
- package/dist/types/src/context/ErrorBoundaryContextProvider.d.ts +0 -5
- package/dist/types/src/context/ListTicketContextProvider.d.ts +0 -5
- package/dist/types/src/context/types.d.ts +0 -170
- package/dist/types/src/helpers/ModalResult.d.ts +0 -17
- package/dist/types/src/helpers/constant.d.ts +0 -10
- package/dist/types/src/helpers/decrypt.d.ts +0 -2
- package/dist/types/src/helpers/encrypt.d.ts +0 -2
- package/dist/types/src/helpers/formatChat.d.ts +0 -3
- package/dist/types/src/helpers/formatDate.d.ts +0 -4
- package/dist/types/src/helpers/getBase64.d.ts +0 -2
- package/dist/types/src/helpers/getTextWidth.d.ts +0 -2
- package/dist/types/src/helpers/isMobileUserAgent.d.ts +0 -2
- package/dist/types/src/helpers/sortArr.d.ts +0 -9
- package/dist/types/src/helpers/uniqueArrObj.d.ts +0 -2
- package/dist/types/src/hooks/useDecodeJWT.d.ts +0 -35
- package/dist/types/src/hooks/useDictionary.d.ts +0 -8
- package/dist/types/src/hooks/useFetch.d.ts +0 -13
- package/dist/types/src/hooks/useGetFileNameImage.d.ts +0 -7
- package/dist/types/src/hooks/useHeadersEnt.d.ts +0 -9
- package/dist/types/src/hooks/useWSChatbot.d.ts +0 -7
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/pro-src/rules-wrapper.d.ts +0 -2
- package/dist/types/src/pro-src/rules.d.ts +0 -38
- package/dist/types/src/pro-src/utils.d.ts +0 -1
- package/dist/types/src/socket-socketio.d.ts +0 -1
- package/dist/types/src/socket-sockjs.d.ts +0 -2
- package/dist/types/src/socket.d.ts +0 -1
- package/dist/types/src/store/actions/actionTypes.d.ts +0 -62
- package/dist/types/src/store/reducers/behaviorReducer.d.ts +0 -7
- package/dist/types/src/store/reducers/ehelpReducer.d.ts +0 -30
- package/dist/types/src/store/reducers/helper.d.ts +0 -31
- package/dist/types/src/store/reducers/messagesReducer.d.ts +0 -2
- package/dist/types/src/store/reducers/metadataReducer.d.ts +0 -2
- package/dist/types/src/store/store.d.ts +0 -1
package/dist/types/src/components/Widget/components/Conversation/components/Messages/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export function scrollToBottom(): void;
|
|
2
|
-
export function scrollToTop(): void;
|
|
3
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof Messages, import("react-redux").Omit<any, "inputType" | "userInput" | "dispatch" | "messages" | "displayTypingIndication" | "is_in_livechat">>;
|
|
4
|
-
export default _default;
|
|
5
|
-
declare class Messages extends Component<any, any, any> {
|
|
6
|
-
constructor(props: any);
|
|
7
|
-
componentDidMount(): void;
|
|
8
|
-
componentDidUpdate(): void;
|
|
9
|
-
getComponentToRender: (message: any, index: any, isLast: any, showMessageDate: any) => any;
|
|
10
|
-
render(): any;
|
|
11
|
-
}
|
|
12
|
-
declare namespace Messages {
|
|
13
|
-
export { ThemeContext as contextType };
|
|
14
|
-
export namespace propTypes {
|
|
15
|
-
let messages: any;
|
|
16
|
-
let profileAvatar: any;
|
|
17
|
-
let customComponent: any;
|
|
18
|
-
let showMessageDate: any;
|
|
19
|
-
let displayTypingIndication: any;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
import { Component } from 'react';
|
|
23
|
-
import ThemeContext from '../../../../ThemeContext';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<({ inputType, formRef, handleFileSubmit, handleMessageSubmit, onEnterPress, handleChange, inputTextFieldHint, disabledInput, userInput, displayTypingIndication, inputValue, }: {
|
|
2
|
-
inputType: any;
|
|
3
|
-
formRef: any;
|
|
4
|
-
handleFileSubmit: any;
|
|
5
|
-
handleMessageSubmit: any;
|
|
6
|
-
onEnterPress: any;
|
|
7
|
-
handleChange: any;
|
|
8
|
-
inputTextFieldHint: any;
|
|
9
|
-
disabledInput: any;
|
|
10
|
-
userInput: any;
|
|
11
|
-
displayTypingIndication: any;
|
|
12
|
-
inputValue: any;
|
|
13
|
-
}) => any, import("react-redux").Omit<{
|
|
14
|
-
inputType: any;
|
|
15
|
-
formRef: any;
|
|
16
|
-
handleFileSubmit: any;
|
|
17
|
-
handleMessageSubmit: any;
|
|
18
|
-
onEnterPress: any;
|
|
19
|
-
handleChange: any;
|
|
20
|
-
inputTextFieldHint: any;
|
|
21
|
-
disabledInput: any;
|
|
22
|
-
userInput: any;
|
|
23
|
-
displayTypingIndication: any;
|
|
24
|
-
inputValue: any;
|
|
25
|
-
}, "inputType" | "disabledInput" | "userInput" | "displayTypingIndication">>;
|
|
26
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<({ formRef, inputType, handleFileSubmit, handleMessageSubmit, onEnterPress, handleChange, inputTextFieldHint, disabledInput, userInput, messages, displayTypingIndication, inputValue, onResetConvo, is_in_livechat, }: {
|
|
2
|
-
formRef: any;
|
|
3
|
-
inputType: any;
|
|
4
|
-
handleFileSubmit: any;
|
|
5
|
-
handleMessageSubmit: any;
|
|
6
|
-
onEnterPress: any;
|
|
7
|
-
handleChange: any;
|
|
8
|
-
inputTextFieldHint: any;
|
|
9
|
-
disabledInput: any;
|
|
10
|
-
userInput: any;
|
|
11
|
-
messages: any;
|
|
12
|
-
displayTypingIndication: any;
|
|
13
|
-
inputValue: any;
|
|
14
|
-
onResetConvo: any;
|
|
15
|
-
is_in_livechat: any;
|
|
16
|
-
}) => any, import("react-redux").Omit<{
|
|
17
|
-
formRef: any;
|
|
18
|
-
inputType: any;
|
|
19
|
-
handleFileSubmit: any;
|
|
20
|
-
handleMessageSubmit: any;
|
|
21
|
-
onEnterPress: any;
|
|
22
|
-
handleChange: any;
|
|
23
|
-
inputTextFieldHint: any;
|
|
24
|
-
disabledInput: any;
|
|
25
|
-
userInput: any;
|
|
26
|
-
messages: any;
|
|
27
|
-
displayTypingIndication: any;
|
|
28
|
-
inputValue: any;
|
|
29
|
-
onResetConvo: any;
|
|
30
|
-
is_in_livechat: any;
|
|
31
|
-
}, "inputType" | "userInput" | "messages" | "displayTypingIndication" | "is_in_livechat">>;
|
|
32
|
-
export default _default;
|
package/dist/types/src/components/Widget/components/Conversation/components/Sender/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
-
({ sendMessage, inputTextFieldHint, choosedFile, displayTypingIndication, errMsgResponse, setReInit, is_in_livechat, userInput, }: {
|
|
3
|
-
sendMessage: any;
|
|
4
|
-
inputTextFieldHint: any;
|
|
5
|
-
choosedFile: any;
|
|
6
|
-
displayTypingIndication: any;
|
|
7
|
-
errMsgResponse: any;
|
|
8
|
-
setReInit: any;
|
|
9
|
-
is_in_livechat: any;
|
|
10
|
-
userInput: any;
|
|
11
|
-
}): any;
|
|
12
|
-
propTypes: {
|
|
13
|
-
sendMessage: any;
|
|
14
|
-
inputTextFieldHint: any;
|
|
15
|
-
disabledInput: any;
|
|
16
|
-
userInput: any;
|
|
17
|
-
inputType: any;
|
|
18
|
-
choosedFile: any;
|
|
19
|
-
};
|
|
20
|
-
}, import("react-redux").Omit<{
|
|
21
|
-
sendMessage: any;
|
|
22
|
-
inputTextFieldHint: any;
|
|
23
|
-
choosedFile: any;
|
|
24
|
-
displayTypingIndication: any;
|
|
25
|
-
errMsgResponse: any;
|
|
26
|
-
setReInit: any;
|
|
27
|
-
is_in_livechat: any;
|
|
28
|
-
userInput: any;
|
|
29
|
-
}, "userInput" | "displayTypingIndication" | "is_in_livechat" | "choosedFile" | "errMsgResponse">>;
|
|
30
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
-
(props: any): any;
|
|
3
|
-
propTypes: {
|
|
4
|
-
title: any;
|
|
5
|
-
subtitle: any;
|
|
6
|
-
sendMessage: any;
|
|
7
|
-
profileAvatar: any;
|
|
8
|
-
toggleFullScreen: any;
|
|
9
|
-
fullScreenMode: any;
|
|
10
|
-
toggleChat: any;
|
|
11
|
-
showCloseButton: any;
|
|
12
|
-
showFullScreenButton: any;
|
|
13
|
-
disabledInput: any;
|
|
14
|
-
inputTextFieldHint: any;
|
|
15
|
-
params: any;
|
|
16
|
-
connected: any;
|
|
17
|
-
connectingText: any;
|
|
18
|
-
closeImage: any;
|
|
19
|
-
customComponent: any;
|
|
20
|
-
showMessageDate: any;
|
|
21
|
-
};
|
|
22
|
-
}, import("react-redux").Omit<any, "userInput" | "iscompleted" | "dispatch" | "messages" | "is_in_livechat">>;
|
|
23
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
-
({ toggle, isChatOpen, badge, fullScreenMode, unreadCount, displayUnreadCount, lastMessages, }: {
|
|
3
|
-
toggle: any;
|
|
4
|
-
isChatOpen: any;
|
|
5
|
-
badge: any;
|
|
6
|
-
fullScreenMode: any;
|
|
7
|
-
unreadCount: any;
|
|
8
|
-
displayUnreadCount: any;
|
|
9
|
-
lastMessages: any;
|
|
10
|
-
}): any;
|
|
11
|
-
propTypes: {
|
|
12
|
-
toggle: any;
|
|
13
|
-
isChatOpen: any;
|
|
14
|
-
badge: any;
|
|
15
|
-
fullScreenMode: any;
|
|
16
|
-
openLauncherImage: any;
|
|
17
|
-
closeImage: any;
|
|
18
|
-
unreadCount: any;
|
|
19
|
-
displayUnreadCount: any;
|
|
20
|
-
showTooltip: any;
|
|
21
|
-
lastUserMessage: any;
|
|
22
|
-
domHighlight: any;
|
|
23
|
-
lastMessages: any;
|
|
24
|
-
};
|
|
25
|
-
}, import("react-redux").Omit<{
|
|
26
|
-
toggle: any;
|
|
27
|
-
isChatOpen: any;
|
|
28
|
-
badge: any;
|
|
29
|
-
fullScreenMode: any;
|
|
30
|
-
unreadCount: any;
|
|
31
|
-
displayUnreadCount: any;
|
|
32
|
-
lastMessages: any;
|
|
33
|
-
}, "unreadCount" | "lastMessages">>;
|
|
34
|
-
export default _default;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof Widget, import("react-redux").Omit<any, "connected" | "initialized" | "isChatVisible" | "isChatOpen" | "oldUrl" | "pageChangeCallbacks" | "fullScreenMode" | "domHighlight" | "tooltipSent" | "dispatch" | "messages" | "is_in_livechat">>;
|
|
2
|
-
export default _default;
|
|
3
|
-
declare class Widget extends Component<any, any, any> {
|
|
4
|
-
constructor(props: any);
|
|
5
|
-
messages: any[];
|
|
6
|
-
delayedMessage: any;
|
|
7
|
-
messageDelayTimeout: NodeJS.Timeout;
|
|
8
|
-
onGoingMessageDelay: boolean;
|
|
9
|
-
sendMessage(payload: any, text?: string, when?: string, tooltipSelector?: boolean): void;
|
|
10
|
-
getSessionId(): any;
|
|
11
|
-
intervalId: NodeJS.Timeout;
|
|
12
|
-
url: any;
|
|
13
|
-
socket: any;
|
|
14
|
-
eventListenerCleaner: () => void;
|
|
15
|
-
state: {
|
|
16
|
-
isLoadingLiveChat: boolean;
|
|
17
|
-
isDirectToLiveChat: boolean;
|
|
18
|
-
directTicketID: number;
|
|
19
|
-
isWidgetShow: boolean;
|
|
20
|
-
};
|
|
21
|
-
onToggleLoadingLiveChat(value: any): void;
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
onReInit(): void;
|
|
24
|
-
componentDidUpdate(): void;
|
|
25
|
-
componentWillUnmount(): void;
|
|
26
|
-
handleMessageReceived(messageWithMetadata: any): void;
|
|
27
|
-
popLastMessage(): void;
|
|
28
|
-
newMessageTimeout(message: any): void;
|
|
29
|
-
propagateMetadata(metadata: any): void;
|
|
30
|
-
handleBotUtterance(botUtterance: any): void;
|
|
31
|
-
addCustomsEventListeners(pageEventCallbacks: any): () => void;
|
|
32
|
-
clearCustomStyle(): void;
|
|
33
|
-
applyCustomStyle(): void;
|
|
34
|
-
checkVersionBeforePull(): void;
|
|
35
|
-
initializeWidget(sendInitPayload?: boolean): void;
|
|
36
|
-
tooltipTimeout: NodeJS.Timeout;
|
|
37
|
-
trysendpayload(): void;
|
|
38
|
-
trySendInitPayload(): void;
|
|
39
|
-
trySendTooltipPayload(): void;
|
|
40
|
-
toggleConversation(): void;
|
|
41
|
-
toggleFullScreen(): void;
|
|
42
|
-
dispatchMessage(message: any): void;
|
|
43
|
-
handleMessageSubmit: (inputValue: any, selectedFile: any) => void;
|
|
44
|
-
render(): any;
|
|
45
|
-
}
|
|
46
|
-
declare namespace Widget {
|
|
47
|
-
namespace propTypes {
|
|
48
|
-
let title: any;
|
|
49
|
-
let customData: any;
|
|
50
|
-
let subtitle: any;
|
|
51
|
-
let initPayload: any;
|
|
52
|
-
let profileAvatar: any;
|
|
53
|
-
let showCloseButton: any;
|
|
54
|
-
let showFullScreenButton: any;
|
|
55
|
-
let hideWhenNotConnected: any;
|
|
56
|
-
let connectOn: any;
|
|
57
|
-
let autoClearCache: any;
|
|
58
|
-
let fullScreenMode: any;
|
|
59
|
-
let isChatVisible: any;
|
|
60
|
-
let isChatOpen: any;
|
|
61
|
-
let badge: any;
|
|
62
|
-
let socket: any;
|
|
63
|
-
let embedded: any;
|
|
64
|
-
let params: any;
|
|
65
|
-
let connected: any;
|
|
66
|
-
let initialized: any;
|
|
67
|
-
let openLauncherImage: any;
|
|
68
|
-
let closeImage: any;
|
|
69
|
-
let inputTextFieldHint: any;
|
|
70
|
-
let customComponent: any;
|
|
71
|
-
let displayUnreadCount: any;
|
|
72
|
-
let showMessageDate: any;
|
|
73
|
-
let customMessageDelay: any;
|
|
74
|
-
let tooltipPayload: any;
|
|
75
|
-
let tooltipSent: any;
|
|
76
|
-
let tooltipDelay: any;
|
|
77
|
-
let domHighlight: any;
|
|
78
|
-
let storage: any;
|
|
79
|
-
let disableTooltips: any;
|
|
80
|
-
let defaultHighlightAnimation: any;
|
|
81
|
-
let defaultHighlightCss: any;
|
|
82
|
-
let defaultHighlightClassname: any;
|
|
83
|
-
let messages: any;
|
|
84
|
-
}
|
|
85
|
-
namespace defaultProps {
|
|
86
|
-
let isChatOpen_1: boolean;
|
|
87
|
-
export { isChatOpen_1 as isChatOpen };
|
|
88
|
-
let isChatVisible_1: boolean;
|
|
89
|
-
export { isChatVisible_1 as isChatVisible };
|
|
90
|
-
let fullScreenMode_1: boolean;
|
|
91
|
-
export { fullScreenMode_1 as fullScreenMode };
|
|
92
|
-
let connectOn_1: string;
|
|
93
|
-
export { connectOn_1 as connectOn };
|
|
94
|
-
let autoClearCache_1: boolean;
|
|
95
|
-
export { autoClearCache_1 as autoClearCache };
|
|
96
|
-
let displayUnreadCount_1: boolean;
|
|
97
|
-
export { displayUnreadCount_1 as displayUnreadCount };
|
|
98
|
-
let tooltipPayload_1: any;
|
|
99
|
-
export { tooltipPayload_1 as tooltipPayload };
|
|
100
|
-
let inputTextFieldHint_1: string;
|
|
101
|
-
export { inputTextFieldHint_1 as inputTextFieldHint };
|
|
102
|
-
export let oldUrl: string;
|
|
103
|
-
let disableTooltips_1: boolean;
|
|
104
|
-
export { disableTooltips_1 as disableTooltips };
|
|
105
|
-
let defaultHighlightClassname_1: string;
|
|
106
|
-
export { defaultHighlightClassname_1 as defaultHighlightClassname };
|
|
107
|
-
let defaultHighlightCss_1: string;
|
|
108
|
-
export { defaultHighlightCss_1 as defaultHighlightCss };
|
|
109
|
-
let defaultHighlightAnimation_1: string;
|
|
110
|
-
export { defaultHighlightAnimation_1 as defaultHighlightAnimation };
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
import { Component } from 'react';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
-
(props: any): any;
|
|
3
|
-
propTypes: {
|
|
4
|
-
title: any;
|
|
5
|
-
subtitle: any;
|
|
6
|
-
onSendMessage: any;
|
|
7
|
-
toggleChat: any;
|
|
8
|
-
toggleFullScreen: any;
|
|
9
|
-
isChatOpen: any;
|
|
10
|
-
isChatVisible: any;
|
|
11
|
-
profileAvatar: any;
|
|
12
|
-
showCloseButton: any;
|
|
13
|
-
showFullScreenButton: any;
|
|
14
|
-
hideWhenNotConnected: any;
|
|
15
|
-
disabledInput: any;
|
|
16
|
-
fullScreenMode: any;
|
|
17
|
-
badge: any;
|
|
18
|
-
embedded: any;
|
|
19
|
-
inputTextFieldHint: any;
|
|
20
|
-
params: any;
|
|
21
|
-
connected: any;
|
|
22
|
-
connectingText: any;
|
|
23
|
-
openLauncherImage: any;
|
|
24
|
-
closeImage: any;
|
|
25
|
-
customComponent: any;
|
|
26
|
-
displayUnreadCount: any;
|
|
27
|
-
showMessageDate: any;
|
|
28
|
-
tooltipPayload: any;
|
|
29
|
-
};
|
|
30
|
-
}, import("react-redux").Omit<any, "connected" | "isChatVisible" | "isChatOpen" | "disabledInput" | "connectingText" | "dispatch">>;
|
|
31
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export function isCarousel(message: any): boolean;
|
|
2
|
-
export function isVideo(message: any): boolean;
|
|
3
|
-
export function isImage(message: any): boolean;
|
|
4
|
-
export function isText(message: any): boolean;
|
|
5
|
-
export function isButtons(message: any): boolean;
|
|
6
|
-
export function isSuggestion(message: any): boolean;
|
|
7
|
-
export function isDatepicker(message: any): boolean;
|
|
8
|
-
export function isDatetimepicker(message: any): boolean;
|
|
9
|
-
export function isFiledownloader(message: any): boolean;
|
|
10
|
-
export function isFileUploader(message: any): boolean;
|
|
11
|
-
export function isChart(message: any): boolean;
|
|
12
|
-
export function isCollapsible(message: any): boolean;
|
|
13
|
-
export function isHtmlrenderer(message: any): boolean;
|
|
14
|
-
export function isMultipleSelect(message: any): boolean;
|
|
15
|
-
export function isListEhelp(message: any): boolean;
|
|
16
|
-
export function isListTicket(message: any): boolean;
|
|
17
|
-
export function isReferenceLink(message: any): boolean;
|
|
18
|
-
export function isShowPasswordWP(message: any): boolean;
|
|
19
|
-
export function isMultipleType(message: any): boolean;
|
|
20
|
-
export function isHelpdeskEhelp(message: any): boolean;
|
|
21
|
-
export function isSelectEmployee(message: any): boolean;
|
|
22
|
-
export function isNewComponentEhelp(message: any): boolean;
|
|
23
|
-
export function isDropdown(message: any): boolean;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export const FALLBACK_URI_SERVICE: "https://sfchatbot.dataon.com/openai-service-dev/";
|
|
2
|
-
export const SESSION_NAME: "chat_session";
|
|
3
|
-
export namespace MESSAGE_SENDER {
|
|
4
|
-
let CLIENT: string;
|
|
5
|
-
let RESPONSE: string;
|
|
6
|
-
}
|
|
7
|
-
export namespace MESSAGES_TYPES {
|
|
8
|
-
let TEXT: string;
|
|
9
|
-
let CAROUSEL: string;
|
|
10
|
-
let DATEPICKER: string;
|
|
11
|
-
let DATETIMEPICKER: string;
|
|
12
|
-
let FILEDOWNLOADER: string;
|
|
13
|
-
let FILEUPLOADER: string;
|
|
14
|
-
let FILEMESSAGE: string;
|
|
15
|
-
namespace VIDREPLY {
|
|
16
|
-
let VIDEO: string;
|
|
17
|
-
}
|
|
18
|
-
namespace IMGREPLY {
|
|
19
|
-
let IMAGE: string;
|
|
20
|
-
}
|
|
21
|
-
let BUTTONS: string;
|
|
22
|
-
let CUSTOM_COMPONENT: string;
|
|
23
|
-
let CHARTS: string;
|
|
24
|
-
let COLLAPSIBLE: string;
|
|
25
|
-
let HTMLRENDERER: string;
|
|
26
|
-
let SUGGESTION: string;
|
|
27
|
-
let MULTIPLESELECT: string;
|
|
28
|
-
let LIST_EHELP: string;
|
|
29
|
-
let LIST_TICKET: string;
|
|
30
|
-
let REFERENCE_LINK: string;
|
|
31
|
-
let SHOW_PASSWORD_WP: string;
|
|
32
|
-
let MULTIPLE_TYPE: string;
|
|
33
|
-
let HELPDESK_EHELP: string;
|
|
34
|
-
let SELECT_EMPLOYEE: string;
|
|
35
|
-
let NEWCOMPONENTEHELP: string;
|
|
36
|
-
let DROPDOWN: string;
|
|
37
|
-
}
|
|
38
|
-
export const NEXT_MESSAGE: "mrbot_next_message";
|
|
39
|
-
export namespace PROP_TYPES {
|
|
40
|
-
export let MESSAGE: any;
|
|
41
|
-
let CAROUSEL_1: any;
|
|
42
|
-
export { CAROUSEL_1 as CAROUSEL };
|
|
43
|
-
let DATEPICKER_1: any;
|
|
44
|
-
export { DATEPICKER_1 as DATEPICKER };
|
|
45
|
-
let DATETIMEPICKER_1: any;
|
|
46
|
-
export { DATETIMEPICKER_1 as DATETIMEPICKER };
|
|
47
|
-
let FILEDOWNLOADER_1: any;
|
|
48
|
-
export { FILEDOWNLOADER_1 as FILEDOWNLOADER };
|
|
49
|
-
let FILEUPLOADER_1: any;
|
|
50
|
-
export { FILEUPLOADER_1 as FILEUPLOADER };
|
|
51
|
-
let CHARTS_1: any;
|
|
52
|
-
export { CHARTS_1 as CHARTS };
|
|
53
|
-
let COLLAPSIBLE_1: any;
|
|
54
|
-
export { COLLAPSIBLE_1 as COLLAPSIBLE };
|
|
55
|
-
let MULTIPLESELECT_1: any;
|
|
56
|
-
export { MULTIPLESELECT_1 as MULTIPLESELECT };
|
|
57
|
-
let FILEMESSAGE_1: any;
|
|
58
|
-
export { FILEMESSAGE_1 as FILEMESSAGE };
|
|
59
|
-
let HTMLRENDERER_1: any;
|
|
60
|
-
export { HTMLRENDERER_1 as HTMLRENDERER };
|
|
61
|
-
let VIDREPLY_1: any;
|
|
62
|
-
export { VIDREPLY_1 as VIDREPLY };
|
|
63
|
-
let IMGREPLY_1: any;
|
|
64
|
-
export { IMGREPLY_1 as IMGREPLY };
|
|
65
|
-
let BUTTONS_1: any;
|
|
66
|
-
export { BUTTONS_1 as BUTTONS };
|
|
67
|
-
let SUGGESTION_1: any;
|
|
68
|
-
export { SUGGESTION_1 as SUGGESTION };
|
|
69
|
-
}
|
|
70
|
-
export const BOT_PROFILE_URL: "https://res.cloudinary.com/dcvolkyfb/image/upload/v1740135794/svg/bot_profile_hlnyop.png";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export function useConversationContext(): import("./types").ConversationContext;
|
|
2
|
-
export default ConversationContextProvider;
|
|
3
|
-
declare function ConversationContextProvider({ children, onToggleLoadingLiveChat, isLoadingLiveChat, keyActive, setKeyActive, fullScreenMode, setTaskIDSelect, taskIDSelect, connected, isDirectToLiveChat, setDirectToLiveChat, directTicketID, isScrollFetch, setScrollFetch, socket, isInVAMode, setVA, setReInit, }: {
|
|
4
|
-
children: any;
|
|
5
|
-
onToggleLoadingLiveChat: any;
|
|
6
|
-
isLoadingLiveChat: any;
|
|
7
|
-
keyActive: any;
|
|
8
|
-
setKeyActive: any;
|
|
9
|
-
fullScreenMode: any;
|
|
10
|
-
setTaskIDSelect: any;
|
|
11
|
-
taskIDSelect: any;
|
|
12
|
-
connected: any;
|
|
13
|
-
isDirectToLiveChat: any;
|
|
14
|
-
setDirectToLiveChat: any;
|
|
15
|
-
directTicketID: any;
|
|
16
|
-
isScrollFetch: any;
|
|
17
|
-
setScrollFetch: any;
|
|
18
|
-
socket: any;
|
|
19
|
-
isInVAMode: any;
|
|
20
|
-
setVA: any;
|
|
21
|
-
setReInit: any;
|
|
22
|
-
}): any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function useEhelpContext(): import("./types").EhelpContextData;
|
|
2
|
-
export default EhelpContextProvider;
|
|
3
|
-
declare function EhelpContextProvider({ isUpdateHeight, setUpdateHeight, children }: {
|
|
4
|
-
isUpdateHeight: any;
|
|
5
|
-
setUpdateHeight: any;
|
|
6
|
-
children: any;
|
|
7
|
-
}): any;
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
export type SenderInfo = {
|
|
2
|
-
COMPANY_CODE: string;
|
|
3
|
-
COMPANY_ID: number;
|
|
4
|
-
COSTCENTER_CODE: string;
|
|
5
|
-
COSTCENTER_NAME: string;
|
|
6
|
-
DEPT_NAME: string;
|
|
7
|
-
EMAIL: string;
|
|
8
|
-
EMPLOYMENT_STATUS_CODE: string;
|
|
9
|
-
EMPLOYMENT_STATUS_NAME: string;
|
|
10
|
-
EMP_ID: string;
|
|
11
|
-
EMP_NO: string;
|
|
12
|
-
EMP_STATUS: number;
|
|
13
|
-
FULL_NAME: string;
|
|
14
|
-
JOBTITLE_NAME: string;
|
|
15
|
-
LENGTH_OF_SERVICES: string;
|
|
16
|
-
ORGANIZATION_UNIT: string;
|
|
17
|
-
PHONE: string;
|
|
18
|
-
PHOTO: string;
|
|
19
|
-
POSITION_CODE: string;
|
|
20
|
-
POSITION_ID: number;
|
|
21
|
-
POSITION_NAME: string;
|
|
22
|
-
TOTALALL_SUBORDINATES: number;
|
|
23
|
-
TOTALDIRECT_SUBORDINATES: number;
|
|
24
|
-
WORKLOCATION: string;
|
|
25
|
-
WORKLOCATION_LAT_LNG: string;
|
|
26
|
-
};
|
|
27
|
-
export type ListTicketData = {
|
|
28
|
-
ADMIN_PIC: SenderInfo;
|
|
29
|
-
ASSIGN_BY: SenderInfo;
|
|
30
|
-
ASSIGN_TO: SenderInfo;
|
|
31
|
-
CREATED_BY: SenderInfo;
|
|
32
|
-
CREATED_DATE: string;
|
|
33
|
-
IS_UNREAD: boolean;
|
|
34
|
-
LAST_ACTIVITY: string;
|
|
35
|
-
LAST_CHAT: string;
|
|
36
|
-
SATISFACTION_STATUS: string;
|
|
37
|
-
TASK_CATEGORY: string;
|
|
38
|
-
TASK_CODE: string;
|
|
39
|
-
TASK_DESCRIPTION: string;
|
|
40
|
-
TASK_ID: number;
|
|
41
|
-
TASK_NAME: string;
|
|
42
|
-
TASK_NOTE: string;
|
|
43
|
-
TASK_STATUS: "In Progress" | "Open" | "Closed";
|
|
44
|
-
};
|
|
45
|
-
export type TicketStateData = {
|
|
46
|
-
loadingClose: boolean;
|
|
47
|
-
isRefetch: boolean;
|
|
48
|
-
isInitNotif: boolean;
|
|
49
|
-
count: number;
|
|
50
|
-
list: ListTicketData[];
|
|
51
|
-
total: number;
|
|
52
|
-
loadingGet: boolean;
|
|
53
|
-
loadingGetNext: boolean;
|
|
54
|
-
search: string;
|
|
55
|
-
pageFetch: number;
|
|
56
|
-
stopNotifWS: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type ListTicketContext = {
|
|
59
|
-
ticketState: TicketStateData;
|
|
60
|
-
setTicketState: import("react").Dispatch<import("react").SetStateAction<TicketStateData>>;
|
|
61
|
-
taskIDs: number[];
|
|
62
|
-
isFetchScroll: boolean;
|
|
63
|
-
};
|
|
64
|
-
export type DetailTicketContext = {
|
|
65
|
-
chatState: ChatState;
|
|
66
|
-
setChatState: import("react").Dispatch<import("react").SetStateAction<ChatState>>;
|
|
67
|
-
isFetchPrevChat: boolean;
|
|
68
|
-
};
|
|
69
|
-
export type ChatState = {
|
|
70
|
-
loadingSend: boolean;
|
|
71
|
-
loadingInit: boolean;
|
|
72
|
-
loadingGet: boolean;
|
|
73
|
-
list: ListChat;
|
|
74
|
-
fileInput: import("antd/lib/upload").UploadFile;
|
|
75
|
-
isShowModalPreviewFile: boolean;
|
|
76
|
-
urlImagePreview: string;
|
|
77
|
-
taskIDClose: number;
|
|
78
|
-
total: number;
|
|
79
|
-
pageFetch: number;
|
|
80
|
-
isInitChat: boolean;
|
|
81
|
-
showScrollBottom: boolean;
|
|
82
|
-
};
|
|
83
|
-
export type Actor = {
|
|
84
|
-
FULL_NAME: string;
|
|
85
|
-
PHOTO: string;
|
|
86
|
-
};
|
|
87
|
-
export type ListChat = {
|
|
88
|
-
ACTOR?: Actor;
|
|
89
|
-
ATTACHMENT?: string;
|
|
90
|
-
CHAT_ALIGN?: "to" | "from";
|
|
91
|
-
CREATED_DATE?: "string";
|
|
92
|
-
FAQ_ID?: number;
|
|
93
|
-
MESSAGE?: string;
|
|
94
|
-
READ_BY?: string;
|
|
95
|
-
};
|
|
96
|
-
export type StateOfModal = {
|
|
97
|
-
feedback?: boolean;
|
|
98
|
-
guard?: boolean;
|
|
99
|
-
closeTicket?: boolean;
|
|
100
|
-
};
|
|
101
|
-
export type ConversationContext = {
|
|
102
|
-
modalState: StateOfModal;
|
|
103
|
-
setModalState: import("react").Dispatch<import("react").SetStateAction<StateOfModal>>;
|
|
104
|
-
keyActive: "assistant" | "ehelp" | "helpdesk";
|
|
105
|
-
setKeyActive: import("react").Dispatch<import("react").SetStateAction<"assistant" | "ehelp" | "helpdesk">>;
|
|
106
|
-
taskIDSelect: number;
|
|
107
|
-
connected: boolean;
|
|
108
|
-
fullScreenMode: boolean;
|
|
109
|
-
};
|
|
110
|
-
export type AskResponseOther = {
|
|
111
|
-
link: string;
|
|
112
|
-
score: number;
|
|
113
|
-
source: string;
|
|
114
|
-
help_id: string;
|
|
115
|
-
id: number;
|
|
116
|
-
};
|
|
117
|
-
export type PredictionObjectActions = {
|
|
118
|
-
text: string;
|
|
119
|
-
type: string;
|
|
120
|
-
value: string;
|
|
121
|
-
metadata: {
|
|
122
|
-
userInput: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
export type PredictionObject = {
|
|
126
|
-
text: string;
|
|
127
|
-
type: string;
|
|
128
|
-
actions: PredictionObjectActions[];
|
|
129
|
-
};
|
|
130
|
-
export type PredictionActions = {
|
|
131
|
-
intent: string;
|
|
132
|
-
task: string;
|
|
133
|
-
prediction?: PredictionObject;
|
|
134
|
-
};
|
|
135
|
-
export type AskResponse = {
|
|
136
|
-
answer: string;
|
|
137
|
-
reference: string[];
|
|
138
|
-
others: AskResponseOther[];
|
|
139
|
-
prediction_actions: PredictionActions;
|
|
140
|
-
timestamp: string;
|
|
141
|
-
};
|
|
142
|
-
export type AskResponseMessages = {
|
|
143
|
-
from: "from" | "to";
|
|
144
|
-
chats: AskResponse;
|
|
145
|
-
};
|
|
146
|
-
export type EhelpState = {
|
|
147
|
-
messages: AskResponseMessages[];
|
|
148
|
-
loadingBotResponse: boolean;
|
|
149
|
-
inputValue: string;
|
|
150
|
-
suggestion: string[];
|
|
151
|
-
isHiddenUserInput: boolean;
|
|
152
|
-
};
|
|
153
|
-
export type TextEhelpState = {
|
|
154
|
-
greetings: string;
|
|
155
|
-
recommendations: string[];
|
|
156
|
-
hint: string;
|
|
157
|
-
showRecommendation: boolean;
|
|
158
|
-
};
|
|
159
|
-
export type EhelpContextData = {
|
|
160
|
-
ehelpState: EhelpState;
|
|
161
|
-
setEhelpState: import("react").Dispatch<import("react").SetStateAction<EhelpState>>;
|
|
162
|
-
onSendMessage: (value: string, [isFromInput]: boolean) => void;
|
|
163
|
-
textEhelp: TextEhelpState;
|
|
164
|
-
isUpdateHeight: boolean;
|
|
165
|
-
setUpdateHeight: boolean;
|
|
166
|
-
};
|
|
167
|
-
export type ErrorBoundaryContextData = {
|
|
168
|
-
isErrorBoundary: boolean;
|
|
169
|
-
setErrorBoundary: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
170
|
-
};
|