Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# production
/build
/dist
*.tgz

# misc
Expand Down
3 changes: 3 additions & 0 deletions dist/App.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const App: () => import("react/jsx-runtime").JSX.Element;
export default App;
//# sourceMappingURL=App.d.ts.map
1 change: 1 addition & 0 deletions dist/App.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/constants/DefaultPluginConfig.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { PluginConfig } from '../types/PluginConfig';
/**
* Default values for plugin config.
*/
export declare const DefaultPluginConfig: PluginConfig;
//# sourceMappingURL=DefaultPluginConfig.d.ts.map
1 change: 1 addition & 0 deletions dist/constants/DefaultPluginConfig.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/core/useRcbPlugin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Plugin } from 'react-chatbotify';
import { PluginConfig } from '../types/PluginConfig';
/**
* Plugin hook that handles all the core logic.
*
* @param pluginConfig configurations for the plugin
*/
declare const useRcbPlugin: (pluginConfig?: PluginConfig) => ReturnType<Plugin>;
export default useRcbPlugin;
//# sourceMappingURL=useRcbPlugin.d.ts.map
1 change: 1 addition & 0 deletions dist/core/useRcbPlugin.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/development.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=development.d.ts.map
1 change: 1 addition & 0 deletions dist/development.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions dist/factory/RcbPluginFactory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { PluginConfig } from '../types/PluginConfig';
/**
* Factory that prepares the plugin hook to be consumed by the core library.
*
* @param pluginConfig configurations for the plugin
*/
declare const RcbPluginFactory: (pluginConfig?: PluginConfig) => () => {
name: string;
settings?: import("react-chatbotify").Settings;
styles?: import("react-chatbotify").Styles;
};
export default RcbPluginFactory;
//# sourceMappingURL=RcbPluginFactory.d.ts.map
1 change: 1 addition & 0 deletions dist/factory/RcbPluginFactory.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions dist/hooks/useChangePath.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Flow } from 'react-chatbotify';
import { LlmConnectorBlock } from '../types/LlmConnectorBlock';
/**
* Handles changing of conversation path (block).
*
* @param getFlow flow of the chatbot
* @param setConnectorBlockFields sets all fields required for llm connector block
*/
declare const useChangePath: (getFlow: () => Flow, setConnectorBlockFields: (block: LlmConnectorBlock) => void) => void;
export { useChangePath };
//# sourceMappingURL=useChangePath.d.ts.map
1 change: 1 addition & 0 deletions dist/hooks/useChangePath.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions dist/hooks/useMessageHandler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Message } from 'react-chatbotify';
import { Provider } from '../types/Provider';
/**
* Handles message events.
*
* @param refs object containing relevant refs
* @param actions object containing relevant actions
*/
declare const useMessageHandler: (refs: {
providerRef: React.MutableRefObject<Provider | null>;
messagesRef: React.MutableRefObject<Message[]>;
outputTypeRef: React.MutableRefObject<"character" | "chunk" | "full">;
outputSpeedRef: React.MutableRefObject<number>;
historySizeRef: React.MutableRefObject<number>;
initialMessageRef: React.MutableRefObject<string>;
errorMessageRef: React.MutableRefObject<string>;
onUserMessageRef: React.MutableRefObject<((msg: Message) => Promise<string | null>) | null>;
onKeyDownRef: React.MutableRefObject<((e: KeyboardEvent) => Promise<string | null>) | null>;
}, actions: {
speakAudio: (text: string) => void;
injectMessage: (content: string | JSX.Element, sender?: string) => Promise<Message | null>;
simulateStreamMessage: (content: string, sender?: string) => Promise<Message | null>;
streamMessage: (msg: string) => void;
endStreamMessage: () => void;
toggleTextAreaDisabled: (active?: boolean) => void;
toggleIsBotTyping: (active?: boolean) => void;
focusTextArea: () => void;
goToPath: (path: string) => void;
getIsChatBotVisible: () => boolean;
}) => void;
export { useMessageHandler };
//# sourceMappingURL=useMessageHandler.d.ts.map
1 change: 1 addition & 0 deletions dist/hooks/useMessageHandler.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions dist/hooks/useProcessBlock.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Message } from 'react-chatbotify';
import { Provider } from '../types/Provider';
/**
* Handles pre-processing and post-processing of blocks.
*
* @param refs object containing relevant refs
* @param actions object containing relevant actions
*/
declare const useProcessBlock: (refs: {
providerRef: React.MutableRefObject<Provider | null>;
messagesRef: React.MutableRefObject<Message[]>;
outputTypeRef: React.MutableRefObject<"character" | "chunk" | "full">;
outputSpeedRef: React.MutableRefObject<number>;
historySizeRef: React.MutableRefObject<number>;
initialMessageRef: React.MutableRefObject<string>;
errorMessageRef: React.MutableRefObject<string>;
onUserMessageRef: React.MutableRefObject<((msg: Message) => Promise<string | null>) | null>;
onKeyDownRef: React.MutableRefObject<((e: KeyboardEvent) => Promise<string | null>) | null>;
}, actions: {
speakAudio: (text: string) => void;
injectMessage: (content: string | JSX.Element, sender?: string) => Promise<Message | null>;
simulateStreamMessage: (content: string, sender?: string) => Promise<Message | null>;
streamMessage: (msg: string) => void;
endStreamMessage: () => void;
toggleTextAreaDisabled: (active?: boolean) => void;
toggleIsBotTyping: (active?: boolean) => void;
focusTextArea: () => void;
goToPath: (path: string) => void;
getIsChatBotVisible: () => boolean;
}) => void;
export { useProcessBlock };
//# sourceMappingURL=useProcessBlock.d.ts.map
1 change: 1 addition & 0 deletions dist/hooks/useProcessBlock.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading