UNPKG

@botonic/react

Version:

Build Chatbots using React

102 lines 2.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebchatContext = exports.useWebchat = void 0; const react_1 = require("react"); var use_webchat_1 = require("./use-webchat"); Object.defineProperty(exports, "useWebchat", { enumerable: true, get: function () { return use_webchat_1.useWebchat; } }); exports.WebchatContext = (0, react_1.createContext)({ addMessage: () => { return; }, getThemeProperty: () => { return; }, // used to retrieve a specific property of the theme defined by the developer in his 'webchat/index.js' closeWebview: async () => { return; }, openWebview: () => { return; }, resolveCase: () => { return; }, resetUnreadMessages: () => { return; }, setIsInputFocused: () => { return; }, setLastMessageVisible: () => { return; }, sendAttachment: async () => { return; }, sendInput: async () => { return; }, sendPayload: async () => { return; }, sendText: async () => { return; }, toggleCoverComponent: () => { return; }, toggleWebchat: () => { return; }, toggleEmojiPicker: () => { return; }, togglePersistentMenu: () => { return; }, updateCustomMessageProps: () => { return; }, updateLatestInput: () => { return; }, updateMessage: () => { return; }, updateReplies: () => { return; }, updateUser: () => { return; }, updateWebchatDevSettings: () => { return; }, webchatState: {}, previewUtils: { onClickOpenToolResults: () => { return; }, trackPreviewEventOpened: () => { return; }, getChunkIdsGroupedBySource: async () => { return []; }, onClickOpenChunks: () => { return; }, getMessageById: async () => { return {}; }, }, trackEvent: async () => { return; }, webchatContainerRef: { current: null }, chatAreaRef: { current: null }, inputPanelRef: { current: null }, headerRef: { current: null }, scrollableMessagesListRef: { current: null }, repliesRef: { current: null }, }); //# sourceMappingURL=index.js.map