widget-chatbot 1.0.3-alpha.2 → 1.0.3-alpha.3
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.js +1 -1
- package/dist/types/assets/LoadingIcon.d.ts +2 -0
- package/dist/types/assets/icons/BackIcon.d.ts +5 -0
- package/dist/types/assets/icons/DocIcon.d.ts +2 -0
- package/dist/types/assets/icons/DragIcon.d.ts +10 -0
- package/dist/types/assets/icons/FileAltIcon.d.ts +5 -0
- package/dist/types/assets/icons/FollowAssistant.d.ts +2 -0
- package/dist/types/assets/icons/FormIcon.d.ts +2 -0
- package/dist/types/assets/icons/ReactionFeedbackIcon.d.ts +5 -0
- package/dist/types/assets/icons/ReadUnreadIcon.d.ts +2 -0
- package/dist/types/assets/icons/RightArrowIcon.d.ts +2 -0
- package/dist/types/assets/icons/ThumbsIcon.d.ts +8 -0
- package/dist/types/index.d.ts +95 -0
- package/dist/types/src/HistoryContext.d.ts +7 -0
- package/dist/types/src/LanguageContextProvider.d.ts +5 -0
- package/dist/types/src/PayloadContextProvider.d.ts +28 -0
- package/dist/types/src/PayslipContextProvider.d.ts +22 -0
- package/dist/types/src/components/Global/ErrorBoundary/index.d.ts +13 -0
- package/dist/types/src/components/Global/ModalChatbot/index.d.ts +41 -0
- package/dist/types/src/components/Global/NotAuthorized/index.d.ts +2 -0
- package/dist/types/src/components/Widget/ThemeContext.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/HelpdeskChatContextProvider.d.ts +5 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalCloseTicket.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalFeedback.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/ModalImagePreview.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Body/ModalComponents/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Body/index.d.ts +8 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpBotInfo.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpMarkdownText.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpMessagesRender.d.ts +6 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpNewComponent.d.ts +11 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpPrediction.d.ts +16 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpRecommendation.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpReferences.d.ts +10 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpSuggestion.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpTimestamps.d.ts +12 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/EhelpTypingIndication.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpChart.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpCollapsible.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpDivider.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpFileDownload.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/components-message/EhelpText.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Ehelp/index.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Header/index.d.ts +26 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/EmptyHelpdesk.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/BalloonChat.d.ts +7 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/AttachmentChat.d.ts +10 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/RegularChat.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/chat_type/info-chat/index.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/detail-helpdesk/index.d.ts +4 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/list-ticket/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/loading-next-fetch/index.d.ts +10 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/search-ticket/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/skeleton-helpdesk/index.d.ts +6 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Helpdesk/title-helpdesk/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/MessagesRender.d.ts +16 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/FormFeedback.d.ts +6 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/ListReasons.d.ts +5 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/components/Feedback/index.d.ts +19 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Messages/index.d.ts +23 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/AssistantSender.d.ts +26 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/ButtonResetConvo.d.ts +5 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/EhelpSender.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/HelpdeskSender.d.ts +6 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/LiveChatSender.d.ts +32 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/helpers/isStringNull.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/Sender/index.d.ts +30 -0
- package/dist/types/src/components/Widget/components/Conversation/components/TabBottom/DotLiveChat.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/components/TabBottom/index.d.ts +2 -0
- package/dist/types/src/components/Widget/components/Conversation/index.d.ts +23 -0
- package/dist/types/src/components/Widget/components/Launcher/components/Badge/index.d.ts +9 -0
- package/dist/types/src/components/Widget/components/Launcher/components/LauncherCollapse/index.d.ts +5 -0
- package/dist/types/src/components/Widget/components/Launcher/index.d.ts +34 -0
- package/dist/types/src/components/Widget/index.d.ts +113 -0
- package/dist/types/src/components/Widget/layout.d.ts +31 -0
- package/dist/types/src/components/Widget/msgProcessor.d.ts +23 -0
- package/dist/types/src/constants.d.ts +70 -0
- package/dist/types/src/context/ConversationContextProvider.d.ts +22 -0
- package/dist/types/src/context/EhelpContextProvider.d.ts +7 -0
- package/dist/types/src/context/ErrorBoundaryContextProvider.d.ts +5 -0
- package/dist/types/src/context/ListTicketContextProvider.d.ts +5 -0
- package/dist/types/src/context/types.d.ts +170 -0
- package/dist/types/src/helpers/ModalResult.d.ts +17 -0
- package/dist/types/src/helpers/constant.d.ts +10 -0
- package/dist/types/src/helpers/decrypt.d.ts +2 -0
- package/dist/types/src/helpers/encrypt.d.ts +2 -0
- package/dist/types/src/helpers/formatChat.d.ts +3 -0
- package/dist/types/src/helpers/formatDate.d.ts +4 -0
- package/dist/types/src/helpers/getBase64.d.ts +2 -0
- package/dist/types/src/helpers/getTextWidth.d.ts +2 -0
- package/dist/types/src/helpers/isMobileUserAgent.d.ts +2 -0
- package/dist/types/src/helpers/sortArr.d.ts +9 -0
- package/dist/types/src/helpers/uniqueArrObj.d.ts +2 -0
- package/dist/types/src/hooks/useDecodeJWT.d.ts +35 -0
- package/dist/types/src/hooks/useDictionary.d.ts +8 -0
- package/dist/types/src/hooks/useFetch.d.ts +13 -0
- package/dist/types/src/hooks/useGetFileNameImage.d.ts +7 -0
- package/dist/types/src/hooks/useHeadersEnt.d.ts +9 -0
- package/dist/types/src/hooks/useWSChatbot.d.ts +7 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/pro-src/rules-wrapper.d.ts +2 -0
- package/dist/types/src/pro-src/rules.d.ts +38 -0
- package/dist/types/src/pro-src/utils.d.ts +1 -0
- package/dist/types/src/socket-socketio.d.ts +1 -0
- package/dist/types/src/socket-sockjs.d.ts +2 -0
- package/dist/types/src/socket.d.ts +1 -0
- package/dist/types/src/store/actions/actionTypes.d.ts +62 -0
- package/dist/types/src/store/reducers/behaviorReducer.d.ts +7 -0
- package/dist/types/src/store/reducers/ehelpReducer.d.ts +30 -0
- package/dist/types/src/store/reducers/helper.d.ts +31 -0
- package/dist/types/src/store/reducers/messagesReducer.d.ts +2 -0
- package/dist/types/src/store/reducers/metadataReducer.d.ts +2 -0
- package/dist/types/src/store/store.d.ts +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const IS_MOBILE: boolean;
|
|
2
|
+
export const KEY: "6Le0DgMTAAAANokdEEial";
|
|
3
|
+
export function APP_KEY_HEX(keyEncrypt: any): any;
|
|
4
|
+
export namespace CIPHER_OPTIONS {
|
|
5
|
+
let mode: any;
|
|
6
|
+
let padding: any;
|
|
7
|
+
}
|
|
8
|
+
export const ENCRYPTED_ROUTE_PREFIX: "|";
|
|
9
|
+
export const UNENCRYPTED_ROUTE_PREFIX: "#";
|
|
10
|
+
export const BASE_WEBSOCKET_URL: "wss://sfchatbot.dataon.com:5005/livechat-helpdesk/ws";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default useDecodeJWT;
|
|
2
|
+
export type DecodeJWT = {
|
|
3
|
+
COCODE: string;
|
|
4
|
+
COID: number;
|
|
5
|
+
EMP_ID: string;
|
|
6
|
+
EXP: number;
|
|
7
|
+
IAT: number;
|
|
8
|
+
INSTANCE: string;
|
|
9
|
+
ORIGINAPP: string;
|
|
10
|
+
STR_EXP: string;
|
|
11
|
+
SVCID: string;
|
|
12
|
+
UID: number;
|
|
13
|
+
UNAME: string;
|
|
14
|
+
WLOC: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @typedef DecodeJWT
|
|
18
|
+
* @property {string} COCODE
|
|
19
|
+
* @property {number} COID
|
|
20
|
+
* @property {string} EMP_ID
|
|
21
|
+
* @property {number} EXP
|
|
22
|
+
* @property {number} IAT
|
|
23
|
+
* @property {string} INSTANCE
|
|
24
|
+
* @property {string} ORIGINAPP
|
|
25
|
+
* @property {string} STR_EXP
|
|
26
|
+
* @property {string} SVCID
|
|
27
|
+
* @property {number} UID
|
|
28
|
+
* @property {string} UNAME
|
|
29
|
+
* @property {string} WLOC
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @returns {DecodeJWT}
|
|
34
|
+
*/
|
|
35
|
+
declare function useDecodeJWT(): DecodeJWT;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default useFetch;
|
|
2
|
+
export type FetchConfig = {
|
|
3
|
+
isFormData?: boolean;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @typedef FetchConfig
|
|
7
|
+
* @property {boolean} [isFormData=false]
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
declare function useFetch(): {
|
|
11
|
+
({ method, endpoint, data, isFormData, url, ...additionalConfig }: import("axios").AxiosRequestConfig & FetchConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
abort(): void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const RULES_HANDLER_SINGLETON: "rasaWebchatRulesHandler";
|
|
2
|
+
export default class RulesHandler {
|
|
3
|
+
static removeEventListeners(eventListeners: any): void;
|
|
4
|
+
static cleanURL(url: any): any;
|
|
5
|
+
static compareUrls(urlWindow: any, urlCompare: any, partialMatch?: boolean): any;
|
|
6
|
+
constructor(rules: any, sendMethod: any, triggerEventListenerUpdateRate?: number);
|
|
7
|
+
url: string;
|
|
8
|
+
numberOfVisits: number;
|
|
9
|
+
rules: any;
|
|
10
|
+
sendMethod: any;
|
|
11
|
+
timeoutIds: any[];
|
|
12
|
+
eventListeners: any[];
|
|
13
|
+
resetListenersTimeouts: any[];
|
|
14
|
+
protocol: string;
|
|
15
|
+
triggerEventListenerUpdateRate: number;
|
|
16
|
+
lastLocationChange: number;
|
|
17
|
+
popstateCallback: () => void;
|
|
18
|
+
locationChangeCallback: () => void;
|
|
19
|
+
updateRules(newRules: any): void;
|
|
20
|
+
storeRuleHash(rule: any): void;
|
|
21
|
+
initHandler(): void;
|
|
22
|
+
initEventHandler(rules: any, withViz?: boolean): void;
|
|
23
|
+
addViz(listener: any, elem: any): () => any;
|
|
24
|
+
placeDot(receptacle: any, dot: any): void;
|
|
25
|
+
placeQuestionMark(receptacle: any, questionMark: any): void;
|
|
26
|
+
verifyMobile(trigger: any): boolean;
|
|
27
|
+
verifyTimeLimit(trigger: any, ruleTriggeredIndex: any): boolean;
|
|
28
|
+
verifyUrlSequence(trigger: any): boolean;
|
|
29
|
+
verifyUrl(trigger: any): any;
|
|
30
|
+
verifyConditions(rules: any, boolMode: any, tooltipSelector?: boolean, removeViz?: () => void): boolean;
|
|
31
|
+
verifyQueryStringAndAddEntities(encodedQueryString: any, queryObject: any, payload: any): boolean;
|
|
32
|
+
convertQueryStringToJson(query?: string): {};
|
|
33
|
+
sendMessage(payload: any, when?: string, tooltipSelector?: boolean): void;
|
|
34
|
+
storeHistory(url: any): void;
|
|
35
|
+
fetchHistory(): void;
|
|
36
|
+
history: any;
|
|
37
|
+
cleanUp(alsoClearWindowEventListners?: boolean): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function onRemove(element: any, callback: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(socketUrl: any, customData: any, path: any): import("socket.io-client").Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(socketUrl: any, customData: any, path: any, protocol: any, protocolOptions: any): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const INITIALIZE: "INITIALIZE";
|
|
2
|
+
export const CONNECT: "CONNECT";
|
|
3
|
+
export const DISCONNECT: "DISCONNECT";
|
|
4
|
+
export const GET_OPEN_STATE: "GET_OPEN_STATE";
|
|
5
|
+
export const GET_VISIBLE_STATE: "GET_VISIBLE_STATE";
|
|
6
|
+
export const GET_FULLSCREEN_STATE: "GET_FULLSCREEN_STATE";
|
|
7
|
+
export const SHOW_CHAT: "SHOW_CHAT";
|
|
8
|
+
export const HIDE_CHAT: "HIDE_CHAT";
|
|
9
|
+
export const TOGGLE_CHAT: "TOGGLE_CHAT";
|
|
10
|
+
export const OPEN_CHAT: "OPEN_CHAT";
|
|
11
|
+
export const CLOSE_CHAT: "CLOSE_CHAT";
|
|
12
|
+
export const TOGGLE_FULLSCREEN: "TOGGLE_FULLSCREEN";
|
|
13
|
+
export const TOGGLE_INPUT_DISABLED: "TOGGLE_INPUT_DISABLED";
|
|
14
|
+
export const ADD_NEW_USER_MESSAGE: "ADD_NEW_USER_MESSAGE";
|
|
15
|
+
export const EMIT_NEW_USER_MESSAGE: "EMIT_NEW_USER_MESSAGE";
|
|
16
|
+
export const EMIT_NEW_USER_FILE: "EMIT_NEW_USER_FILE";
|
|
17
|
+
export const ADD_NEW_RESPONSE_MESSAGE: "ADD_NEW_RESPONSE_MESSAGE";
|
|
18
|
+
export const ADD_CAROUSEL: "ADD_CAROUSEL";
|
|
19
|
+
export const ADD_DATEPICKER: "ADD_DATEPICKER";
|
|
20
|
+
export const ADD_DATETIMEPICKER: "ADD_DATETIMEPICKER";
|
|
21
|
+
export const ADD_FILEDOWNLOADER: "ADD_FILEDOWNLOADER";
|
|
22
|
+
export const ADD_CHART: "ADD_CHART";
|
|
23
|
+
export const ADD_COLLAPSIBLE: "ADD_COLLAPSIBLE";
|
|
24
|
+
export const ADD_MULTIPLESELECT: "ADD_MULTIPLESELECT";
|
|
25
|
+
export const ADD_HTMLRENDERER: "ADD_HTMLRENDERER";
|
|
26
|
+
export const ADD_SUGGESTION: "ADD_SUGGESTION";
|
|
27
|
+
export const ADD_FILEUPLOADER: "ADD_FILEUPLOADER";
|
|
28
|
+
export const ADD_FILEMESSAGE: "ADD_FILEMESSAGE";
|
|
29
|
+
export const ADD_LISTEHELP: "ADD_LISTEHELP";
|
|
30
|
+
export const ADD_LISTTICKET: "ADD_LISTTICKET";
|
|
31
|
+
export const ADD_REFERENCELINK: "ADD_REFERENCELINK";
|
|
32
|
+
export const ADD_SHOWPASSWORDWP: "ADD_SHOWPASSWORDWP";
|
|
33
|
+
export const ADD_HELPDESKEHELP: "ADD_HELPDESKEHELP";
|
|
34
|
+
export const ADD_SELECTEMPLOYEE: "ADD_SELECTEMPLOYEE";
|
|
35
|
+
export const ADD_DROPDOWN: "ADD_DROPDOWN";
|
|
36
|
+
export const ADD_NEWCOMPONENTEHELP: "ADD_NEWCOMPONENTEHELP";
|
|
37
|
+
export const ADD_MULTIPLETYPE: "ADD_MULTIPLETYPE";
|
|
38
|
+
export const ADD_NEW_VIDEO_VIDREPLY: "ADD_NEW_VIDEO_VIDREPLY";
|
|
39
|
+
export const ADD_NEW_IMAGE_IMGREPLY: "ADD_NEW_IMAGE_IMGREPLY";
|
|
40
|
+
export const ADD_COMPONENT_MESSAGE: "ADD_COMPONENT_MESSAGE";
|
|
41
|
+
export const ADD_BUTTONS: "ADD_BUTTONS";
|
|
42
|
+
export const SET_BUTTONS: "SET_BUTTONS";
|
|
43
|
+
export const INSERT_NEW_USER_MESSAGE: "INSERT_NEW_USER_MESSAGE";
|
|
44
|
+
export const DROP_MESSAGES: "DROP_MESSAGES";
|
|
45
|
+
export const PULL_SESSION: "PULL_SESSION";
|
|
46
|
+
export const NEW_UNREAD_MESSAGE: "NEW_UNREAD_MESSAGE";
|
|
47
|
+
export const TRIGGER_MESSAGE_DELAY: "TRIGGER_MESSAGE_DELAY";
|
|
48
|
+
export const TRIGGER_TOOLTIP_SENT: "TRIGGER_TOOLTIP_SENT";
|
|
49
|
+
export const SHOW_TOOLTIP: "SHOW_TOOLTIP";
|
|
50
|
+
export const CLEAR_METADATA: "CLEAR_METADATA";
|
|
51
|
+
export const SET_LINK_TARGET: "SET_LINK_TARGET";
|
|
52
|
+
export const SET_USER_INPUT: "SET_USER_INPUT";
|
|
53
|
+
export const SET_INPUT_TYPE: "SET_INPUT_TYPE";
|
|
54
|
+
export const SET_PAGECHANGE_CALLBACKS: "SET_PAGECHANGE_CALLBACKS";
|
|
55
|
+
export const SET_DOM_HIGHLIGHT: "SET_DOM_HIGHLIGHT";
|
|
56
|
+
export const SET_HINT_TEXT: "SET_HINT_TEXT";
|
|
57
|
+
export const SET_OLD_URL: "SET_OLD_URL";
|
|
58
|
+
export const EVAL_URL: "EVAL_URL";
|
|
59
|
+
export const SET_CUSTOM_CSS: "SET_CUSTOM_CSS";
|
|
60
|
+
export const SET_FILE_UPLOAD: "SET_FILE_UPLOAD";
|
|
61
|
+
export const SET_IN_LIVECHAT: "SET_IN_LIVECHAT";
|
|
62
|
+
export const SET_COMPLETED: "SET_COMPLETED";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const setMessages: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
2
|
+
any,
|
|
3
|
+
'ehelp/setMessages'
|
|
4
|
+
>;
|
|
5
|
+
export const setLoadingBotResponse: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
6
|
+
any,
|
|
7
|
+
'ehelp/setLoadingBotResponse'
|
|
8
|
+
>;
|
|
9
|
+
export const setInputValue: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
10
|
+
any,
|
|
11
|
+
'ehelp/setInputValue'
|
|
12
|
+
>;
|
|
13
|
+
export const setSuggestion: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
14
|
+
any,
|
|
15
|
+
'ehelp/setSuggestion'
|
|
16
|
+
>;
|
|
17
|
+
export const setHiddenUserInput: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
18
|
+
any,
|
|
19
|
+
'ehelp/setHiddenUserInput'
|
|
20
|
+
>;
|
|
21
|
+
export const setVAMode: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, 'ehelp/setVAMode'>;
|
|
22
|
+
export default ehelpReducer;
|
|
23
|
+
declare const ehelpReducer: import('@reduxjs/toolkit').Reducer<{
|
|
24
|
+
messages: any[];
|
|
25
|
+
loadingBotResponse: boolean;
|
|
26
|
+
inputValue: string;
|
|
27
|
+
suggestion: any[];
|
|
28
|
+
isHiddenUserInput: boolean;
|
|
29
|
+
isVAMode: boolean;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function createNewMessage(text: any, sender: any, nextMessageIsTooltip: any, hidden: any, up_link: any, down_link: any, feedback_link: any, message_id: any, showFeedbackIcons: any, senderName?: string, senderPhoto?: string): Map<string, any>;
|
|
2
|
+
export function createCarousel(carousel: any, sender: any): Map<string, any>;
|
|
3
|
+
export function createDatepicker(datepicker: any, sender: any): Map<string, any>;
|
|
4
|
+
export function createDatetimepicker(datetimepicker: any, sender: any): Map<string, any>;
|
|
5
|
+
export function createFiledownloader(filedownloader: any, sender: any): Map<string, any>;
|
|
6
|
+
export function createFileuploader(fileuploader: any, sender: any): Map<string, any>;
|
|
7
|
+
export function createListEhelp(listehelp: any, sender: any): Map<string, any>;
|
|
8
|
+
export function createListTicket(listticket: any, sender: any): Map<string, any>;
|
|
9
|
+
export function createReferenceLink(referencelink: any, sender: any): Map<string, any>;
|
|
10
|
+
export function createShowPasswordWP(sender: any): Map<string, any>;
|
|
11
|
+
export function createMultipleType(data: any, sender: any): Map<string, any>;
|
|
12
|
+
export function createHelpdeskEhelp(data: any, sender: any): Map<string, any>;
|
|
13
|
+
export function createSelectEmployee(data: any, sender: any): Map<string, any>;
|
|
14
|
+
export function createDropdown(data: any, sender: any): Map<string, any>;
|
|
15
|
+
export function createNewComponentEhelp(data: any, sender: any): Map<string, any>;
|
|
16
|
+
export function createChart(charts: any, sender: any): Map<string, any>;
|
|
17
|
+
export function createCollapsible(collapsible: any, sender: any): Map<string, any>;
|
|
18
|
+
export function createMultipleSelect(multipleselect: any, sender: any): Map<string, any>;
|
|
19
|
+
export function createHtmlrenderer(htmlrenderer: any, sender: any): Map<string, any>;
|
|
20
|
+
export function createFilemessage(filemessage: any, sender: any): Map<string, any>;
|
|
21
|
+
export function createVideoSnippet(video: any, sender: any): Map<string, any>;
|
|
22
|
+
export function createImageSnippet(image: any, sender: any): Map<string, any>;
|
|
23
|
+
export function createButtons(buttons: any, sender: any): Map<string, any>;
|
|
24
|
+
export function createSuggestion(suggestion: any, sender: any): Map<string, any>;
|
|
25
|
+
export function createComponentMessage(component: any, props: any, showAvatar: any): Map<string, any>;
|
|
26
|
+
export function getLocalSession(storage: any, key: any): any;
|
|
27
|
+
export function storeLocalSession(storage: any, key: any, sid: any): void;
|
|
28
|
+
export function storeMessageTo(storage: any): (conversation: any) => any;
|
|
29
|
+
export function storeParamsTo(storage: any): (params: any) => any;
|
|
30
|
+
export function storeMetadataTo(storage: any): (metadata: any) => any;
|
|
31
|
+
import { Map } from 'immutable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function initStore(connectingText: any, socket: any, storage: any, docViewer: boolean, onWidgetEvent: any): any;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "widget-chatbot",
|
|
3
|
-
"version": "1.0.3-alpha.
|
|
3
|
+
"version": "1.0.3-alpha.3",
|
|
4
4
|
"description": "Custom rasa chat widget",
|
|
5
5
|
"module": "module/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
9
10
|
],
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
71
72
|
"babel-preset-stage-0": "^6.24.1",
|
|
72
73
|
"clean-webpack-plugin": "^0.1.19",
|
|
74
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
73
75
|
"css-loader": "^6.10.0",
|
|
74
76
|
"eslint": "8.11.0",
|
|
75
77
|
"eslint-config-airbnb": "19.0.4",
|