thub-embed 9.0.26 → 9.1.2
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/.env.example +34 -0
- package/README.md +342 -151
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Bot.d.ts +37 -3
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/ImageUploadButton.d.ts +11 -0
- package/dist/components/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/RecordAudioButton.d.ts +11 -0
- package/dist/components/RecordAudioButton.d.ts.map +1 -0
- package/dist/components/SendButton.d.ts +12 -0
- package/dist/components/SendButton.d.ts.map +1 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts +6 -0
- package/dist/components/bubbles/AgentReasoningBubble.d.ts.map +1 -1
- package/dist/components/bubbles/BotBubble.d.ts +8 -1
- package/dist/components/bubbles/BotBubble.d.ts.map +1 -1
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts +8 -0
- package/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts +1 -0
- package/dist/components/bubbles/GuestBubble.d.ts.map +1 -1
- package/dist/components/bubbles/StarterPromptBubble.d.ts +1 -0
- package/dist/components/bubbles/StarterPromptBubble.d.ts.map +1 -1
- package/dist/components/buttons/AttachmentUploadButton.d.ts +11 -0
- package/dist/components/buttons/AttachmentUploadButton.d.ts.map +1 -0
- package/dist/components/icons/AttachmentIcon.d.ts +3 -0
- package/dist/components/icons/AttachmentIcon.d.ts.map +1 -0
- package/dist/components/icons/SparklesIcon.d.ts +3 -0
- package/dist/components/icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/icons/TickIcon.d.ts +2 -0
- package/dist/components/icons/TickIcon.d.ts.map +1 -0
- package/dist/components/icons/XIcon.d.ts +3 -1
- package/dist/components/icons/XIcon.d.ts.map +1 -1
- package/dist/components/icons/index.d.ts +3 -0
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/inputs/textInput/components/FilePreview.d.ts +12 -0
- package/dist/components/inputs/textInput/components/FilePreview.d.ts.map +1 -0
- package/dist/components/inputs/textInput/components/TextInput.d.ts +7 -3
- package/dist/components/inputs/textInput/components/TextInput.d.ts.map +1 -1
- package/dist/components/inputs/textInput/index.d.ts +1 -0
- package/dist/components/inputs/textInput/index.d.ts.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/features/bubble/components/Bubble.d.ts.map +1 -1
- package/dist/features/bubble/components/BubbleButton.d.ts +3 -0
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
- package/dist/features/bubble/types.d.ts +23 -0
- package/dist/features/bubble/types.d.ts.map +1 -1
- package/dist/features/full/components/Full.d.ts.map +1 -1
- package/dist/features/popup/components/DisclaimerPopup.d.ts +9 -0
- package/dist/features/popup/components/DisclaimerPopup.d.ts.map +1 -0
- package/dist/features/popup/components/index.d.ts +1 -0
- package/dist/features/popup/components/index.d.ts.map +1 -1
- package/dist/queries/sendMessageQuery.d.ts +31 -16
- package/dist/queries/sendMessageQuery.d.ts.map +1 -1
- package/dist/utils/chatInputHistory.d.ts +22 -0
- package/dist/utils/chatInputHistory.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -4
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/web.d.ts +4 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/dist/window.d.ts +3 -0
- package/dist/window.d.ts.map +1 -1
- package/images/proxyserver.png +0 -0
- package/package.json +15 -6
- package/public/index.html +37 -0
- package/server.js +402 -0
- package/dist/features/bubble/components/ExpandButton.d.ts +0 -18
- package/dist/features/bubble/components/ExpandButton.d.ts.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type RecordAudioButtonProps = {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const RecordAudioButton: (props: RecordAudioButtonProps) => JSX.Element;
|
|
9
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=RecordAudioButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordAudioButton.d.ts","sourceRoot":"","sources":["../../src/components/RecordAudioButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type SendButtonProps = {
|
|
3
|
+
sendButtonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const SendButton: (props: SendButtonProps) => JSX.Element;
|
|
9
|
+
export declare const DeleteButton: (props: SendButtonProps) => JSX.Element;
|
|
10
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=SendButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../src/components/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAkBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { FileUpload } from '../Bot';
|
|
1
2
|
type Props = {
|
|
3
|
+
apiHost?: string;
|
|
4
|
+
chatflowid: string;
|
|
5
|
+
chatId: string;
|
|
2
6
|
agentName: string;
|
|
3
7
|
agentMessage: string;
|
|
8
|
+
agentArtifacts?: FileUpload[];
|
|
4
9
|
backgroundColor?: string;
|
|
5
10
|
textColor?: string;
|
|
6
11
|
fontSize?: number;
|
|
12
|
+
renderHTML?: boolean;
|
|
7
13
|
};
|
|
8
14
|
export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
9
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentReasoningBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/AgentReasoningBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AgentReasoningBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/AgentReasoningBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAoFhD,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { MessageType } from '../Bot';
|
|
1
|
+
import { IAction, MessageType } from '../Bot';
|
|
2
|
+
import { DateTimeToggleTheme } from '@/features/bubble/types';
|
|
2
3
|
type Props = {
|
|
3
4
|
message: MessageType;
|
|
4
5
|
chatflowid: string;
|
|
5
6
|
chatId: string;
|
|
6
7
|
apiHost?: string;
|
|
8
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
7
9
|
fileAnnotations?: any;
|
|
8
10
|
showAvatar?: boolean;
|
|
9
11
|
avatarSrc?: string;
|
|
@@ -13,7 +15,12 @@ type Props = {
|
|
|
13
15
|
fontSize?: number;
|
|
14
16
|
feedbackColor?: string;
|
|
15
17
|
isLoading: boolean;
|
|
18
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
16
19
|
showAgentMessages?: boolean;
|
|
20
|
+
sourceDocsTitle?: string;
|
|
21
|
+
renderHTML?: boolean;
|
|
22
|
+
handleActionClick: (label: string, action: IAction | undefined | null) => void;
|
|
23
|
+
handleSourceDocumentsClick: (src: any) => void;
|
|
17
24
|
};
|
|
18
25
|
export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element;
|
|
19
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAM1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAChD,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCAscrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FollowUpPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/FollowUpPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAsBhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,WAAW,UAAW,KAAK,mCAwEvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCAsB/C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
+
type FileUploadButtonProps = {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
disableIcon?: boolean;
|
|
7
|
+
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
8
|
+
export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element;
|
|
9
|
+
export declare const Spinner: (props: JSX.SvgSVGAttributes<SVGSVGElement>) => JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=AttachmentUploadButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/AttachmentUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,sBAAsB,UAAW,qBAAqB,gBAiBlE,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AttachmentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SparklesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SparklesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TickIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,sCAepB,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'solid-js/jsx-runtime';
|
|
2
|
-
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement>
|
|
2
|
+
export declare const XIcon: (props: JSX.SvgSVGAttributes<SVGSVGElement> & {
|
|
3
|
+
isCurrentColor?: boolean;
|
|
4
|
+
}) => JSX.Element;
|
|
3
5
|
//# sourceMappingURL=XIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/XIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,KAAK,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/XIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,KAAK,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,gBAe9F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type CardWithDeleteOverlayProps = {
|
|
2
|
+
item: {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onDelete: (item: {
|
|
7
|
+
name: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=FilePreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/FilePreview.tsx"],"names":[],"mappings":"AAGA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,0BAA0B,mCAyC5D,CAAC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { Setter } from 'solid-js';
|
|
2
2
|
import { FileEvent, UploadsConfig } from '@/components/Bot';
|
|
3
|
-
type
|
|
3
|
+
type TextInputProps = {
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
textColor?: string;
|
|
7
7
|
sendButtonColor?: string;
|
|
8
|
-
|
|
8
|
+
inputValue: string;
|
|
9
9
|
fontSize?: number;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
onSubmit: (value: string) => void;
|
|
12
|
+
onInputChange: (value: string) => void;
|
|
12
13
|
uploadsConfig?: Partial<UploadsConfig>;
|
|
14
|
+
isFullFileUpload?: boolean;
|
|
13
15
|
setPreviews: Setter<unknown[]>;
|
|
14
16
|
onMicrophoneClicked: () => void;
|
|
15
17
|
handleFileChange: (event: FileEvent<HTMLInputElement>) => void;
|
|
@@ -18,7 +20,9 @@ type Props = {
|
|
|
18
20
|
autoFocus?: boolean;
|
|
19
21
|
sendMessageSound?: boolean;
|
|
20
22
|
sendSoundLocation?: string;
|
|
23
|
+
enableInputHistory?: boolean;
|
|
24
|
+
maxHistorySize?: number;
|
|
21
25
|
};
|
|
22
|
-
export declare const TextInput: (props:
|
|
26
|
+
export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element;
|
|
23
27
|
export {};
|
|
24
28
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAM5D,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAkM9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAO7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAOxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCA2PxC,CAAC"}
|
|
@@ -7,6 +7,9 @@ type Props = ButtonTheme & {
|
|
|
7
7
|
right: number;
|
|
8
8
|
}) => void;
|
|
9
9
|
dragAndDrop: boolean;
|
|
10
|
+
autoOpen?: boolean;
|
|
11
|
+
openDelay?: number;
|
|
12
|
+
autoOpenOnMobile?: boolean;
|
|
10
13
|
};
|
|
11
14
|
export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element;
|
|
12
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAOF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA+HxC,CAAC"}
|
|
@@ -5,6 +5,7 @@ export type BubbleTheme = {
|
|
|
5
5
|
chatWindow?: ChatWindowTheme;
|
|
6
6
|
button?: ButtonTheme;
|
|
7
7
|
tooltip?: ToolTipTheme;
|
|
8
|
+
disclaimer?: DisclaimerPopUpTheme;
|
|
8
9
|
};
|
|
9
10
|
export type TextInputTheme = {
|
|
10
11
|
backgroundColor?: string;
|
|
@@ -49,6 +50,7 @@ export type ChatWindowTheme = {
|
|
|
49
50
|
welcomeMessage?: string;
|
|
50
51
|
errorMessage?: string;
|
|
51
52
|
backgroundColor?: string;
|
|
53
|
+
backgroundImage?: string;
|
|
52
54
|
height?: number;
|
|
53
55
|
width?: number;
|
|
54
56
|
fontSize?: number;
|
|
@@ -57,7 +59,13 @@ export type ChatWindowTheme = {
|
|
|
57
59
|
textInput?: TextInputTheme;
|
|
58
60
|
feedback?: FeedbackTheme;
|
|
59
61
|
footer?: FooterTheme;
|
|
62
|
+
sourceDocsTitle?: string;
|
|
60
63
|
poweredByTextColor?: string;
|
|
64
|
+
starterPrompts?: string[];
|
|
65
|
+
starterPromptFontSize?: number;
|
|
66
|
+
clearChatOnReload?: boolean;
|
|
67
|
+
dateTimeToggle?: DateTimeToggleTheme;
|
|
68
|
+
renderHTML?: boolean;
|
|
61
69
|
};
|
|
62
70
|
export type ButtonTheme = {
|
|
63
71
|
size?: 'small' | 'medium' | 'large' | number;
|
|
@@ -67,6 +75,7 @@ export type ButtonTheme = {
|
|
|
67
75
|
bottom?: number;
|
|
68
76
|
right?: number;
|
|
69
77
|
dragAndDrop?: boolean;
|
|
78
|
+
autoWindowOpen?: autoWindowOpenTheme;
|
|
70
79
|
};
|
|
71
80
|
export type ToolTipTheme = {
|
|
72
81
|
showTooltip?: boolean;
|
|
@@ -75,4 +84,18 @@ export type ToolTipTheme = {
|
|
|
75
84
|
tooltipTextColor?: string;
|
|
76
85
|
tooltipFontSize?: number;
|
|
77
86
|
};
|
|
87
|
+
export type autoWindowOpenTheme = {
|
|
88
|
+
autoOpen?: boolean;
|
|
89
|
+
openDelay?: number;
|
|
90
|
+
autoOpenOnMobile?: boolean;
|
|
91
|
+
};
|
|
92
|
+
export type DisclaimerPopUpTheme = {
|
|
93
|
+
title?: string;
|
|
94
|
+
message?: string;
|
|
95
|
+
buttonText?: string;
|
|
96
|
+
};
|
|
97
|
+
export type DateTimeToggleTheme = {
|
|
98
|
+
date?: boolean;
|
|
99
|
+
time?: boolean;
|
|
100
|
+
};
|
|
78
101
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,C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EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;
|
|
1
|
+
{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCAkFzE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type DisclaimerPopupProps = {
|
|
2
|
+
isOpen?: boolean;
|
|
3
|
+
onAccept?: () => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=DisclaimerPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisclaimerPopup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/DisclaimerPopup.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCA8B1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileUpload } from '@/components/Bot';
|
|
1
|
+
import { FileUpload, IAction } from '@/components/Bot';
|
|
2
2
|
export type IncomingInput = {
|
|
3
3
|
question: string;
|
|
4
4
|
uploads?: FileUpload[];
|
|
@@ -7,10 +7,14 @@ export type IncomingInput = {
|
|
|
7
7
|
chatId?: string;
|
|
8
8
|
fileName?: string;
|
|
9
9
|
leadEmail?: string;
|
|
10
|
+
action?: IAction;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
chatflowid?: string;
|
|
12
|
+
type BaseRequest = {
|
|
13
13
|
apiHost?: string;
|
|
14
|
+
onRequest?: (request: RequestInit) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export type MessageRequest = BaseRequest & {
|
|
17
|
+
chatflowid?: string;
|
|
14
18
|
body?: IncomingInput;
|
|
15
19
|
};
|
|
16
20
|
export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN';
|
|
@@ -20,16 +24,19 @@ export type FeedbackInput = {
|
|
|
20
24
|
rating: FeedbackRatingType;
|
|
21
25
|
content?: string;
|
|
22
26
|
};
|
|
23
|
-
export type CreateFeedbackRequest = {
|
|
27
|
+
export type CreateFeedbackRequest = BaseRequest & {
|
|
24
28
|
chatflowid?: string;
|
|
25
|
-
apiHost?: string;
|
|
26
29
|
body?: FeedbackInput;
|
|
27
30
|
};
|
|
28
|
-
export type UpdateFeedbackRequest = {
|
|
31
|
+
export type UpdateFeedbackRequest = BaseRequest & {
|
|
29
32
|
id: string;
|
|
30
|
-
apiHost?: string;
|
|
31
33
|
body?: Partial<FeedbackInput>;
|
|
32
34
|
};
|
|
35
|
+
export type UpsertRequest = BaseRequest & {
|
|
36
|
+
chatflowid: string;
|
|
37
|
+
apiHost?: string;
|
|
38
|
+
formData: FormData;
|
|
39
|
+
};
|
|
33
40
|
export type LeadCaptureInput = {
|
|
34
41
|
chatflowid: string;
|
|
35
42
|
chatId: string;
|
|
@@ -37,36 +44,44 @@ export type LeadCaptureInput = {
|
|
|
37
44
|
email?: string;
|
|
38
45
|
phone?: string;
|
|
39
46
|
};
|
|
40
|
-
export type LeadCaptureRequest = {
|
|
41
|
-
apiHost?: string;
|
|
47
|
+
export type LeadCaptureRequest = BaseRequest & {
|
|
42
48
|
body: Partial<LeadCaptureInput>;
|
|
43
49
|
};
|
|
44
|
-
export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body }: CreateFeedbackRequest) => Promise<{
|
|
50
|
+
export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{
|
|
45
51
|
data?: unknown;
|
|
46
52
|
error?: Error | undefined;
|
|
47
53
|
}>;
|
|
48
|
-
export declare const updateFeedbackQuery: ({ id, apiHost, body }: UpdateFeedbackRequest) => Promise<{
|
|
54
|
+
export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{
|
|
49
55
|
data?: unknown;
|
|
50
56
|
error?: Error | undefined;
|
|
51
57
|
}>;
|
|
52
|
-
export declare const sendMessageQuery: ({ chatflowid, apiHost, body }: MessageRequest) => Promise<{
|
|
58
|
+
export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{
|
|
53
59
|
data?: any;
|
|
54
60
|
error?: Error | undefined;
|
|
55
61
|
}>;
|
|
56
|
-
export declare const
|
|
62
|
+
export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
|
|
63
|
+
data?: unknown;
|
|
64
|
+
error?: Error | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{
|
|
67
|
+
data?: unknown;
|
|
68
|
+
error?: Error | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
|
|
57
71
|
data?: any;
|
|
58
72
|
error?: Error | undefined;
|
|
59
73
|
}>;
|
|
60
|
-
export declare const isStreamAvailableQuery: ({ chatflowid, apiHost }: MessageRequest) => Promise<{
|
|
74
|
+
export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{
|
|
61
75
|
data?: any;
|
|
62
76
|
error?: Error | undefined;
|
|
63
77
|
}>;
|
|
64
|
-
export declare const sendFileDownloadQuery: ({ apiHost, body }: MessageRequest) => Promise<{
|
|
78
|
+
export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{
|
|
65
79
|
data?: any;
|
|
66
80
|
error?: Error | undefined;
|
|
67
81
|
}>;
|
|
68
|
-
export declare const addLeadQuery: ({ apiHost, body }: LeadCaptureRequest) => Promise<{
|
|
82
|
+
export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{
|
|
69
83
|
data?: any;
|
|
70
84
|
error?: Error | undefined;
|
|
71
85
|
}>;
|
|
86
|
+
export {};
|
|
72
87
|
//# sourceMappingURL=sendMessageQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,O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AAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAAwE,qBAAqB;;;EAMvH,CAAC;AAEL,eAAO,MAAM,mBAAmB,qCAAgE,qBAAqB;;;EAMjH,CAAC;AAEL,eAAO,MAAM,gBAAgB,6CAAwE,cAAc;;;EAM/G,CAAC;AAEL,eAAO,MAAM,4BAA4B,iDAA4E,aAAa;;;EAS9H,CAAC;AAEL,eAAO,MAAM,6BAA6B,iDAA4E,aAAa;;;EAS/H,CAAC;AAEL,eAAO,MAAM,gBAAgB,uCAAkE,cAAc;;;EAKzG,CAAC;AAEL,eAAO,MAAM,sBAAsB,uCAAkE,cAAc;;;EAK/G,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAOxG,CAAC;AAEL,eAAO,MAAM,YAAY,iCAA4D,kBAAkB;;;EAMnG,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type ChatHistoryStorage = {
|
|
2
|
+
getItem(key: string): string | null;
|
|
3
|
+
setItem(key: string, value: string): void;
|
|
4
|
+
};
|
|
5
|
+
export declare class ChatInputHistory {
|
|
6
|
+
private getMaxHistory;
|
|
7
|
+
private storage;
|
|
8
|
+
private history;
|
|
9
|
+
private currentIndex;
|
|
10
|
+
private tempInput;
|
|
11
|
+
private maxHistory;
|
|
12
|
+
constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage);
|
|
13
|
+
getHistory(): string[];
|
|
14
|
+
getCurrentIndex(): number;
|
|
15
|
+
addToHistory(input: string): void;
|
|
16
|
+
getPreviousInput(currentInput: string): string;
|
|
17
|
+
getNextInput(): string;
|
|
18
|
+
private saveHistory;
|
|
19
|
+
private loadHistory;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=chatInputHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatInputHistory.d.ts","sourceRoot":"","sources":["../../src/utils/chatInputHistory.ts"],"names":[],"mappings":"AACA,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAPjB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAS;gBAGjB,aAAa,GAAE,MAAM,MAAiB,EACtC,OAAO,GAAE,kBAAiC;IAMpD,UAAU,IAAI,MAAM,EAAE;IAItB,eAAe,IAAI,MAAM;IAIzB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAejC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAY9C,YAAY,IAAI,MAAM;IAWtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;CAWpB"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,12 +2,15 @@ export declare const isNotDefined: <T>(value: T | null | undefined) => value is
|
|
|
2
2
|
export declare const isDefined: <T>(value: T | null | undefined) => value is NonNullable<T>;
|
|
3
3
|
export declare const isEmpty: (value: string | undefined | null) => value is undefined;
|
|
4
4
|
export declare const isNotEmpty: (value: string | undefined | null) => value is string;
|
|
5
|
-
export declare const sendRequest: <ResponseData>(params: {
|
|
5
|
+
export declare const sendRequest: <ResponseData>(params: string | {
|
|
6
6
|
url: string;
|
|
7
7
|
method: string;
|
|
8
|
-
body?: Record<string, unknown> | FormData;
|
|
9
|
-
type?: string;
|
|
10
|
-
|
|
8
|
+
body?: Record<string, unknown> | FormData | undefined;
|
|
9
|
+
type?: string | undefined;
|
|
10
|
+
headers?: Record<string, any> | undefined;
|
|
11
|
+
formData?: FormData | undefined;
|
|
12
|
+
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
13
|
+
}) => Promise<{
|
|
11
14
|
data?: ResponseData | undefined;
|
|
12
15
|
error?: Error | undefined;
|
|
13
16
|
}>;
|
|
@@ -15,4 +18,6 @@ export declare const setLocalStorageChatflow: (chatflowid: string, chatId: strin
|
|
|
15
18
|
export declare const getLocalStorageChatflow: (chatflowid: string) => any;
|
|
16
19
|
export declare const removeLocalStorageChatHistory: (chatflowid: string) => void;
|
|
17
20
|
export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number;
|
|
21
|
+
export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void;
|
|
22
|
+
export declare const getCookie: (cname: string) => string;
|
|
18
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI,eAAO,MAAM,WAAW;SAGX,MAAM;YACH,MAAM;;;;;2BAKQ,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;EAuD1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,UAAU,MAAM,YAAW,OAAO,MAAM,EAAE,GAAG,CAAC,SAiBvG,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,QAQzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAAgB,MAAM,SAgB/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC"}
|
package/dist/web.d.ts
CHANGED
|
@@ -2,16 +2,20 @@ declare const chatbot: {
|
|
|
2
2
|
initFull: (props: {
|
|
3
3
|
chatflowid: string;
|
|
4
4
|
apiHost?: string | undefined;
|
|
5
|
+
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
5
6
|
chatflowConfig?: Record<string, unknown> | undefined;
|
|
6
7
|
observersConfig?: import("./components/Bot").observersConfigType | undefined;
|
|
8
|
+
theme?: import("./features/bubble/types").BubbleTheme | undefined;
|
|
7
9
|
} & {
|
|
8
10
|
id?: string | undefined;
|
|
9
11
|
}) => void;
|
|
10
12
|
init: (props: {
|
|
11
13
|
chatflowid: string;
|
|
12
14
|
apiHost?: string | undefined;
|
|
15
|
+
onRequest?: ((request: RequestInit) => Promise<void>) | undefined;
|
|
13
16
|
chatflowConfig?: Record<string, unknown> | undefined;
|
|
14
17
|
observersConfig?: import("./components/Bot").observersConfigType | undefined;
|
|
18
|
+
theme?: import("./features/bubble/types").BubbleTheme | undefined;
|
|
15
19
|
}) => void;
|
|
16
20
|
destroy: () => void;
|
|
17
21
|
};
|
package/dist/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"}
|