🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

flowise-embed

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowise-embed - npm Package Compare versions

Comparing version

to
2.0.0

dist/features/popup/components/DisclaimerPopup.d.ts

8

dist/components/Bot.d.ts
import { FeedbackRatingType } from '@/queries/sendMessageQuery';
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme } from '@/features/bubble/types';
import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme } from '@/features/bubble/types';
import { FilePreview } from '@/components/inputs/textInput/components/FilePreview';

@@ -35,2 +35,3 @@ export type FileEvent<T = EventTarget> = {

usedTools?: any[];
artifacts?: FileUpload[];
sourceDocuments?: any[];

@@ -60,5 +61,8 @@ instructions?: string;

fileUploads?: Partial<FileUpload>[];
artifacts?: Partial<FileUpload>[];
agentReasoning?: IAgentReasoning[];
usedTools?: any[];
action?: IAction | null;
rating?: FeedbackRatingType;
id?: string;
};

@@ -89,2 +93,3 @@ type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void;

footer?: FooterTheme;
sourceDocsTitle?: string;
observersConfig?: observersConfigType;

@@ -94,2 +99,3 @@ starterPrompts?: string[];

clearChatOnReload?: boolean;
disclaimer?: DisclaimerPopUpTheme;
};

@@ -96,0 +102,0 @@ export type LeadsConfig = {

@@ -0,4 +1,9 @@

import { FileUpload } from '../Bot';
type Props = {
apiHost?: string;
chatflowid: string;
chatId: string;
agentName: string;
agentMessage: string;
agentArtifacts?: FileUpload[];
backgroundColor?: string;

@@ -5,0 +10,0 @@ textColor?: string;

@@ -18,3 +18,5 @@ import { IAction, MessageType } from '../Bot';

showAgentMessages?: boolean;
sourceDocsTitle?: string;
handleActionClick: (label: string, action: IAction | undefined | null) => void;
handleSourceDocumentsClick: (src: any) => void;
};

@@ -21,0 +23,0 @@ export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;

@@ -8,2 +8,3 @@ export type BubbleParams = {

tooltip?: ToolTipTheme;
disclaimer?: DisclaimerPopUpTheme;
};

@@ -62,2 +63,3 @@ export type TextInputTheme = {

footer?: FooterTheme;
sourceDocsTitle?: string;
poweredByTextColor?: string;

@@ -90,2 +92,7 @@ starterPrompts?: string[];

};
export type DisclaimerPopUpTheme = {
title?: string;
message?: string;
buttonText?: string;
};
//# sourceMappingURL=types.d.ts.map
export * from './Popup';
export * from './DisclaimerPopup';
//# sourceMappingURL=index.d.ts.map

@@ -21,2 +21,4 @@ export declare const isNotDefined: <T>(value: T | null | undefined) => value is null | undefined;

export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number;
export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void;
export declare const getCookie: (cname: string) => string;
//# sourceMappingURL=index.d.ts.map

4

package.json
{
"name": "flowise-embed",
"version": "1.3.14",
"version": "2.0.0",
"description": "Javascript library to display flowise chatbot on your website",

@@ -20,2 +20,3 @@ "type": "module",

"@babel/core": "^7.22.1",
"@microsoft/fetch-event-source": "^2.0.1",
"@ts-stack/markdown": "^1.4.0",

@@ -25,3 +26,2 @@ "device-detector-js": "^3.0.3",

"prettier": "^3.1.0",
"socket.io-client": "^4.6.2",
"solid-element": "1.7.0",

@@ -28,0 +28,0 @@ "solid-js": "1.7.1",

@@ -138,3 +138,4 @@ <!-- markdownlint-disable MD030 -->

starterPromptFontSize: 15,
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads.
clearChatOnReload: false, // If set to true, the chat will be cleared when the page reloads
sourceDocsTitle: 'Sources:'
botMessage: {

@@ -174,2 +175,6 @@ backgroundColor: '#f7f8ff',

},
disclaimer: {
title: 'Disclaimer',
message: 'By using this chatbot, you agree to the <a target="_blank" href="https://flowiseai.com/terms">Terms & Condition</a>',
}
},

@@ -176,0 +181,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display