@urbiport/js 0.0.12 → 0.0.14
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/README.md +0 -0
- package/dist/components/Bot.d.ts +7 -3
- package/dist/components/Bot.d.ts.map +1 -1
- package/dist/components/{SubmitButton.d.ts → ButtonSubmit.d.ts} +2 -2
- package/dist/components/{SubmitButton.d.ts.map → ButtonSubmit.d.ts.map} +1 -1
- package/dist/components/{InputChatBlockFooter.d.ts → ChatInputFooter.d.ts} +4 -4
- package/dist/components/ChatInputFooter.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationContainer.d.ts +6 -2
- package/dist/components/ConversationContainer/ConversationContainer.d.ts.map +1 -1
- package/dist/components/ConversationContainer/ConversationContainerBody.d.ts +4 -0
- package/dist/components/ConversationContainer/ConversationContainerBody.d.ts.map +1 -1
- package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts +1 -2
- package/dist/components/ConversationContainer/ConversationContainerFooter.d.ts.map +1 -1
- package/dist/components/ConversationContainer/{ChatChunk.d.ts → ConversationMessageChunk.d.ts} +4 -4
- package/dist/components/ConversationContainer/ConversationMessageChunk.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts +7 -0
- package/dist/components/ConversationContainer/ConversationPopupBlockedToast.d.ts.map +1 -0
- package/dist/components/ConversationContainer/ConversationProgressBar.d.ts +6 -0
- package/dist/components/ConversationContainer/ConversationProgressBar.d.ts.map +1 -0
- package/dist/components/ConversationContainer/HostAvatar.d.ts +8 -0
- package/dist/components/ConversationContainer/HostAvatar.d.ts.map +1 -0
- package/dist/components/ConversationContainer/InputAnswer.d.ts +18 -0
- package/dist/components/ConversationContainer/InputAnswer.d.ts.map +1 -0
- package/dist/components/ConversationContainer/helpers.d.ts +2 -2
- package/dist/components/ConversationContainer/helpers.d.ts.map +1 -1
- package/dist/components/InputAnswerContext.d.ts +9 -4
- package/dist/components/InputAnswerContext.d.ts.map +1 -1
- package/dist/components/InputFormLayout.d.ts +2 -0
- package/dist/components/InputFormLayout.d.ts.map +1 -1
- package/dist/components/Spinner.d.ts.map +1 -1
- package/dist/components/bubbles/HostBubble.d.ts.map +1 -1
- package/dist/components/bubbles/HostBubbleStreaming.d.ts +8 -0
- package/dist/components/bubbles/HostBubbleStreaming.d.ts.map +1 -0
- package/dist/{features/blocks/inputs/fileUpload/components/SelectedFile.d.ts → components/inputs/FileAttached.d.ts} +2 -2
- package/dist/components/inputs/FileAttached.d.ts.map +1 -0
- package/dist/components/inputs/{ShortTextInput.d.ts → Input.d.ts} +2 -2
- package/dist/components/inputs/Input.d.ts.map +1 -0
- package/dist/features/blocks/bubbles/audio/components/AudioBubble.d.ts.map +1 -1
- package/dist/features/blocks/bubbles/embed/components/EmbedBubble.d.ts.map +1 -1
- package/dist/features/blocks/bubbles/image/components/ImageBubble.d.ts.map +1 -1
- package/dist/features/blocks/bubbles/textBubble/components/TextBubble.d.ts.map +1 -1
- package/dist/features/blocks/bubbles/video/components/VideoBubble.d.ts.map +1 -1
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts +3 -2
- package/dist/features/blocks/inputs/buttons/components/Buttons.d.ts.map +1 -1
- package/dist/{components/inputs/SearchInput.d.ts → features/blocks/inputs/buttons/components/ButtonsSearch.d.ts} +2 -2
- package/dist/features/blocks/inputs/buttons/components/ButtonsSearch.d.ts.map +1 -0
- package/dist/features/blocks/inputs/buttons/index.d.ts +2 -0
- package/dist/features/blocks/inputs/buttons/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/date/components/DateForm.d.ts.map +1 -1
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts +2 -0
- package/dist/features/blocks/inputs/email/components/EmailInput.d.ts.map +1 -1
- package/dist/features/blocks/inputs/fileUpload/components/FileUploadForm.d.ts.map +1 -1
- package/dist/features/blocks/inputs/fileUpload/{helpers → utils}/sanitizeSelectedFiles.d.ts +2 -4
- package/dist/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/fileUpload/utils/uploadFiles.d.ts.map +1 -0
- package/dist/features/blocks/inputs/number/components/NumberInput.d.ts.map +1 -1
- package/dist/features/blocks/inputs/number/utils/numberInputHelper.d.ts.map +1 -0
- package/dist/features/blocks/inputs/payment/utils/paymentInProgressStorage.d.ts.map +1 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts +2 -0
- package/dist/features/blocks/inputs/phone/components/PhoneInput.d.ts.map +1 -1
- package/dist/features/blocks/inputs/rating/components/RatingForm.d.ts.map +1 -1
- package/dist/features/blocks/inputs/{textInput → text}/components/TextInput.d.ts +3 -1
- package/dist/features/blocks/inputs/text/components/TextInput.d.ts.map +1 -0
- package/dist/features/blocks/inputs/{textInput → text}/components/VoiceRecorder.d.ts +2 -2
- package/dist/features/blocks/inputs/text/components/VoiceRecorder.d.ts.map +1 -0
- package/dist/features/blocks/inputs/text/components/VolumeProcessor.d.ts.map +1 -0
- package/dist/features/blocks/inputs/text/index.d.ts +2 -0
- package/dist/features/blocks/inputs/text/index.d.ts.map +1 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts +2 -0
- package/dist/features/blocks/inputs/url/components/UrlInput.d.ts.map +1 -1
- package/dist/features/bubble/components/BubbleButton.d.ts.map +1 -1
- package/dist/features/bubble/components/{PreviewMessage.d.ts → BubbleMessage.d.ts} +2 -2
- package/dist/features/bubble/components/BubbleMessage.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -2
- package/dist/queries/continueChatQuery.d.ts +67 -104
- package/dist/queries/continueChatQuery.d.ts.map +1 -1
- package/dist/queries/startChatQuery.d.ts +153 -180
- package/dist/queries/startChatQuery.d.ts.map +1 -1
- package/dist/utils/executeClientSideActions.d.ts.map +1 -1
- package/dist/utils/injectFont.d.ts +2 -2
- package/dist/utils/injectFont.d.ts.map +1 -1
- package/dist/utils/injectStartProps.d.ts.map +1 -1
- package/dist/utils/setCssVariablesValue.d.ts +2 -2
- package/dist/utils/setCssVariablesValue.d.ts.map +1 -1
- package/dist/utils/storage.d.ts +153 -180
- package/dist/utils/storage.d.ts.map +1 -1
- package/dist/web.js +31 -9
- package/package.json +8 -3
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts +0 -8
- package/dist/components/ConversationContainer/AvatarSideContainer.d.ts.map +0 -1
- package/dist/components/ConversationContainer/ChatChunk.d.ts.map +0 -1
- package/dist/components/ConversationContainer/ChatChunkFooter.d.ts +0 -20
- package/dist/components/ConversationContainer/ChatChunkFooter.d.ts.map +0 -1
- package/dist/components/ConversationContainer/InputAnswerContext.d.ts +0 -13
- package/dist/components/ConversationContainer/InputAnswerContext.d.ts.map +0 -1
- package/dist/components/ConversationContainer/LoadingChunk.d.ts +0 -7
- package/dist/components/ConversationContainer/LoadingChunk.d.ts.map +0 -1
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts +0 -7
- package/dist/components/ConversationContainer/PopupBlockedToast.d.ts.map +0 -1
- package/dist/components/InputChatBlock.d.ts +0 -18
- package/dist/components/InputChatBlock.d.ts.map +0 -1
- package/dist/components/InputChatBlockFooter copy.d.ts +0 -17
- package/dist/components/InputChatBlockFooter copy.d.ts.map +0 -1
- package/dist/components/InputChatBlockFooter.d.ts.map +0 -1
- package/dist/components/InputChatBlockFooterShow.d.ts +0 -13
- package/dist/components/InputChatBlockFooterShow.d.ts.map +0 -1
- package/dist/components/LiteBadge.d.ts +0 -6
- package/dist/components/LiteBadge.d.ts.map +0 -1
- package/dist/components/ProgressBar.d.ts +0 -6
- package/dist/components/ProgressBar.d.ts.map +0 -1
- package/dist/components/SendButton.d.ts +0 -9
- package/dist/components/SendButton.d.ts.map +0 -1
- package/dist/components/Submit.d.ts +0 -9
- package/dist/components/Submit.d.ts.map +0 -1
- package/dist/components/avatars/DefaultAvatar.d.ts +0 -2
- package/dist/components/avatars/DefaultAvatar.d.ts.map +0 -1
- package/dist/components/bubbles/LoadingBubble.d.ts +0 -2
- package/dist/components/bubbles/LoadingBubble.d.ts.map +0 -1
- package/dist/components/bubbles/StreamingBubble.d.ts +0 -8
- package/dist/components/bubbles/StreamingBubble.d.ts.map +0 -1
- package/dist/components/icons/TypebotLogo.d.ts +0 -2
- package/dist/components/icons/TypebotLogo.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/inputs/SearchInput.d.ts.map +0 -1
- package/dist/components/inputs/ShortTextInput.d.ts.map +0 -1
- package/dist/components/inputs/index.d.ts +0 -3
- package/dist/components/inputs/index.d.ts.map +0 -1
- package/dist/constants/conversation.d.ts +0 -4
- package/dist/constants/conversation.d.ts.map +0 -1
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts +0 -10
- package/dist/features/blocks/bubbles/embed/components/CustomEmbedBubble.d.ts.map +0 -1
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts +0 -3
- package/dist/features/blocks/bubbles/textBubble/helpers/convertRichTextToPlainText.d.ts.map +0 -1
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts +0 -7
- package/dist/features/blocks/inputs/buttons/components/Checkbox.d.ts.map +0 -1
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts +0 -11
- package/dist/features/blocks/inputs/buttons/components/MultipleChoicesForm.d.ts.map +0 -1
- package/dist/features/blocks/inputs/fileUpload/components/SelectedFile.d.ts.map +0 -1
- package/dist/features/blocks/inputs/fileUpload/helpers/sanitizeSelectedFiles.d.ts.map +0 -1
- package/dist/features/blocks/inputs/fileUpload/helpers/uploadFiles.d.ts.map +0 -1
- package/dist/features/blocks/inputs/number/numberInputHelper.d.ts.map +0 -1
- package/dist/features/blocks/inputs/payment/helpers/paymentInProgressStorage.d.ts.map +0 -1
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts +0 -11
- package/dist/features/blocks/inputs/pictureChoice/MultiplePictureChoice.d.ts.map +0 -1
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts +0 -11
- package/dist/features/blocks/inputs/pictureChoice/SinglePictureChoice.d.ts.map +0 -1
- package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts +0 -11
- package/dist/features/blocks/inputs/textInput/components/TextInput copy.d.ts.map +0 -1
- package/dist/features/blocks/inputs/textInput/components/TextInput.d.ts.map +0 -1
- package/dist/features/blocks/inputs/textInput/components/VoiceRecorder.d.ts.map +0 -1
- package/dist/features/blocks/inputs/textInput/components/VolumeProcessor.d.ts.map +0 -1
- package/dist/features/blocks/inputs/textInput/index.d.ts +0 -2
- package/dist/features/blocks/inputs/textInput/index.d.ts.map +0 -1
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts +0 -3
- package/dist/features/blocks/integrations/googleAnalytics/utils/executeGoogleAnalytics.d.ts.map +0 -1
- package/dist/features/blocks/integrations/openai/streamChat.d.ts +0 -17
- package/dist/features/blocks/integrations/openai/streamChat.d.ts.map +0 -1
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts +0 -6
- package/dist/features/blocks/logic/setVariable/executeSetVariable.d.ts.map +0 -1
- package/dist/features/bubble/components/PreviewMessage.d.ts.map +0 -1
- package/dist/lib/gtag.d.ts +0 -4
- package/dist/lib/gtag.d.ts.map +0 -1
- package/tsconfig.build.json +0 -23
- /package/dist/features/blocks/inputs/fileUpload/{helpers → utils}/uploadFiles.d.ts +0 -0
- /package/dist/features/blocks/inputs/number/{numberInputHelper.d.ts → utils/numberInputHelper.d.ts} +0 -0
- /package/dist/features/blocks/inputs/payment/{helpers → utils}/paymentInProgressStorage.d.ts +0 -0
- /package/dist/features/blocks/inputs/{textInput → text}/components/VolumeProcessor.d.ts +0 -0
package/README.md
CHANGED
|
File without changes
|
package/dist/components/Bot.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { OutgoingLog } from '@/types';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeFontProps, StartFrom } from '@quickbot.io/schemas';
|
|
3
3
|
export type BotProps = {
|
|
4
4
|
bot: string | any;
|
|
5
5
|
isPreview?: boolean;
|
|
6
6
|
resultId?: string;
|
|
7
7
|
prefilledVariables?: Record<string, unknown>;
|
|
8
8
|
apiHost?: string;
|
|
9
|
-
font?:
|
|
9
|
+
font?: ThemeFontProps;
|
|
10
10
|
progressBarRef?: HTMLDivElement;
|
|
11
11
|
startFrom?: StartFrom;
|
|
12
12
|
sessionId?: string;
|
|
13
|
-
|
|
13
|
+
onNewBlock?: (block: {
|
|
14
|
+
id: string;
|
|
15
|
+
type: string;
|
|
16
|
+
}) => void;
|
|
14
17
|
onAnswer?: (answer: {
|
|
15
18
|
message: string;
|
|
16
19
|
blockId: string;
|
|
@@ -19,6 +22,7 @@ export type BotProps = {
|
|
|
19
22
|
onEnd?: () => void;
|
|
20
23
|
onNewLogs?: (logs: OutgoingLog[]) => void;
|
|
21
24
|
onChatStatePersisted?: (isEnabled: boolean) => void;
|
|
25
|
+
onBubblesDisplayed?: () => void;
|
|
22
26
|
};
|
|
23
27
|
export declare const Bot: (props: BotProps & {
|
|
24
28
|
class?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAc,WAAW,EAAE,MAAM,SAAS,CAAA;AAWjD,OAAO,EAAE,cAAc,EAAqB,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAoBnF,MAAM,MAAM,QAAQ,GAAG;IAErB,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACnD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,GAAG,UAAW,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCA8MvD,CAAA"}
|
|
@@ -4,6 +4,6 @@ type SubmitButtonProps = {
|
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
class?: string;
|
|
6
6
|
} & JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const ButtonSubmit: (props: SubmitButtonProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=ButtonSubmit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"ButtonSubmit.d.ts","sourceRoot":"","sources":["../../src/components/ButtonSubmit.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAM1C,KAAK,iBAAiB,GAAG;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAE/C,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAoBpD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ContinueChatResponse,
|
|
1
|
+
import type { ContinueChatResponse, ThemeChatProps } from '@quickbot.io/schemas';
|
|
2
2
|
import { BotContext, InputSubmitContent } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
block: NonNullable<ContinueChatResponse['input']>;
|
|
5
5
|
hasHostAvatar: boolean;
|
|
6
|
-
guestAvatar?: NonNullable<
|
|
6
|
+
guestAvatar?: NonNullable<ThemeChatProps>['guestAvatar'];
|
|
7
7
|
chunkIndex: number;
|
|
8
8
|
context: BotContext;
|
|
9
9
|
isInputPrefillEnabled: boolean;
|
|
@@ -12,6 +12,6 @@ type Props = {
|
|
|
12
12
|
onSubmit: (content: InputSubmitContent) => void;
|
|
13
13
|
onSkip: () => void;
|
|
14
14
|
};
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const ChatInputFooter: (props: Props) => import("solid-js").JSX.Element;
|
|
16
16
|
export {};
|
|
17
|
-
//# sourceMappingURL=
|
|
17
|
+
//# sourceMappingURL=ChatInputFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInputFooter.d.ts","sourceRoot":"","sources":["../../src/components/ChatInputFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAWpB,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAsBxD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA;IACjD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC,CAAA;IACxD,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,UAAU,CAAA;IACnB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,UAAW,KAAK,mCAwL3C,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { StartChatResponse
|
|
1
|
+
import { StartChatResponse } from '@quickbot.io/schemas';
|
|
2
2
|
import { BotContext, OutgoingLog } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
botContainer: HTMLDivElement | undefined;
|
|
5
5
|
initialChatReply: StartChatResponse;
|
|
6
6
|
context: BotContext;
|
|
7
|
-
|
|
7
|
+
onNewBlock?: (block: {
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}) => void;
|
|
8
11
|
onAnswer?: (answer: {
|
|
9
12
|
message: string;
|
|
10
13
|
blockId: string;
|
|
@@ -12,6 +15,7 @@ type Props = {
|
|
|
12
15
|
onEnd?: () => void;
|
|
13
16
|
onNewLogs?: (logs: OutgoingLog[]) => void;
|
|
14
17
|
onProgressUpdate?: (progress: number) => void;
|
|
18
|
+
onBubblesDisplayed?: () => void;
|
|
15
19
|
};
|
|
16
20
|
export declare const ConversationContainer: (props: Props) => import("solid-js").JSX.Element;
|
|
17
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ConversationContainer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAC,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKjD,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,cAAc,GAAG,SAAS,CAAA;IACxC,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,qBAAqB,UAAW,KAAK,mCASjD,CAAA"}
|
|
@@ -4,6 +4,10 @@ type Props = {
|
|
|
4
4
|
initialChatReply: StartChatResponse;
|
|
5
5
|
context: BotContext;
|
|
6
6
|
onEnd?: () => void;
|
|
7
|
+
onNewBlock?: (block: {
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}) => void;
|
|
7
11
|
};
|
|
8
12
|
export declare const ConversationContainerBody: (props: Props) => import("solid-js").JSX.Element;
|
|
9
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationContainerBody.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"ConversationContainerBody.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AASpC,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC3D,CAAA;AAED,eAAO,MAAM,yBAAyB,UAAW,KAAK,mCAkIrD,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StartChatResponse } from '@quickbot.io/schemas';
|
|
2
2
|
import { BotContext, OutgoingLog } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
4
|
botContainer: HTMLDivElement | undefined;
|
|
5
5
|
initialChatReply: StartChatResponse;
|
|
6
6
|
context: BotContext;
|
|
7
|
-
onNewInputBlock?: (inputBlock: InputBlock) => void;
|
|
8
7
|
onAnswer?: (answer: {
|
|
9
8
|
message: string;
|
|
10
9
|
blockId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationContainerFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainerFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConversationContainerFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationContainerFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMjD,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,cAAc,GAAG,SAAS,CAAA;IACxC,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,2BAA2B,UAAW,KAAK,mCA2DvD,CAAA"}
|
package/dist/components/ConversationContainer/{ChatChunk.d.ts → ConversationMessageChunk.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InputSubmitContent, BotContext, ChatChunk as ChatChunkType } from '@/types';
|
|
2
|
-
import { ContinueChatResponse, Settings,
|
|
2
|
+
import { ContinueChatResponse, Settings, ThemeProps } from '@quickbot.io/schemas';
|
|
3
3
|
type Props = Pick<ContinueChatResponse, 'messages' | 'input'> & {
|
|
4
4
|
blockRef: HTMLDivElement | undefined;
|
|
5
|
-
theme:
|
|
5
|
+
theme: ThemeProps;
|
|
6
6
|
settings: Settings;
|
|
7
7
|
index: number;
|
|
8
8
|
context: BotContext;
|
|
@@ -16,6 +16,6 @@ type Props = Pick<ContinueChatResponse, 'messages' | 'input'> & {
|
|
|
16
16
|
onSkip: () => void;
|
|
17
17
|
onAllBubblesDisplayed: () => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const ConversationMessageChunk: (props: Props) => import("solid-js").JSX.Element;
|
|
20
20
|
export {};
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=ConversationMessageChunk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMessageChunk.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationMessageChunk.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAEpF,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAcjF,KAAK,KAAK,GAAG,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IAC9D,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,KAAK,EAAE,UAAU,CAAA;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,kBAAkB,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAA;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxD,gBAAgB,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,qBAAqB,EAAE,MAAM,IAAI,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,wBAAwB,UAAW,KAAK,mCAwIpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationPopupBlockedToast.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationPopupBlockedToast.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,6BAA6B,UAAW,KAAK,mCAmDzD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/ConversationProgressBar.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,uBAAuB,UAAW,KAAK,mCASnD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/HostAvatar.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCA6CtC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ContinueChatResponse, ThemeChatProps } from '@quickbot.io/schemas';
|
|
2
|
+
import { BotContext } from '@/types';
|
|
3
|
+
type Props = {
|
|
4
|
+
ref: HTMLDivElement | undefined;
|
|
5
|
+
block: NonNullable<ContinueChatResponse['input']>;
|
|
6
|
+
hasHostAvatar: boolean;
|
|
7
|
+
guestAvatar?: NonNullable<ThemeChatProps>['guestAvatar'];
|
|
8
|
+
chunkIndex: number;
|
|
9
|
+
context: BotContext;
|
|
10
|
+
isInputPrefillEnabled: boolean;
|
|
11
|
+
hasError: boolean;
|
|
12
|
+
onTransitionEnd: () => void;
|
|
13
|
+
onSubmit: (content: any) => void;
|
|
14
|
+
onSkip: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const InputAnswer: (props: Props) => import("solid-js").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=InputAnswer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/InputAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAKpC,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,cAAc,GAAG,SAAS,CAAA;IAC/B,KAAK,EAAE,WAAW,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA;IACjD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC,CAAA;IACxD,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,UAAU,CAAA;IACnB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IACjB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAA;IAChC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,KAAK,mCAiBvC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputSubmitContent } from '@/types';
|
|
2
|
-
import { ContinueChatResponse, Message,
|
|
2
|
+
import { ContinueChatResponse, Message, ThemeProps } from '@quickbot.io/schemas';
|
|
3
3
|
export declare const convertSubmitContentToMessage: (answer: InputSubmitContent | undefined) => Message | undefined;
|
|
4
4
|
export declare const autoScrollToBottom: (containerElement: HTMLDivElement | undefined, lastElement?: HTMLDivElement, offset?: number, autoScrollBottomToleranceScreenPercent?: number, bottomSpacerHeight?: number) => void;
|
|
5
|
-
export declare const parseDynamicTheme: (initialTheme:
|
|
5
|
+
export declare const parseDynamicTheme: (initialTheme: ThemeProps, dynamicTheme: ContinueChatResponse['dynamicTheme']) => ThemeProps;
|
|
6
6
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationContainer/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEhF,eAAO,MAAM,6BAA6B,WAChC,kBAAkB,GAAG,SAAS,KACrC,OAAO,GAAG,SASZ,CAAA;AAED,eAAO,MAAM,kBAAkB,qBACX,cAAc,GAAG,SAAS,gBAC9B,cAAc,wGAsB7B,CAAA;AAED,eAAO,MAAM,iBAAiB,iBACd,UAAU,gBACV,oBAAoB,CAAC,cAAc,CAAC,KACjD,UAmBD,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Accessor, JSX } from 'solid-js';
|
|
2
|
-
import { ContinueChatResponse,
|
|
2
|
+
import { ContinueChatResponse, ThemeProps, StartChatResponse } from '@quickbot.io/schemas';
|
|
3
3
|
import { BotContext, ChatChunk as ChatChunkType, InputSubmitContent, OutgoingLog } from '@/types';
|
|
4
4
|
type InputAnswerContextType = {
|
|
5
5
|
chatChunks: Accessor<ChatChunkType[]>;
|
|
6
|
-
theme: Accessor<
|
|
6
|
+
theme: Accessor<ThemeProps>;
|
|
7
7
|
dynamicTheme: Accessor<ContinueChatResponse['dynamicTheme']>;
|
|
8
|
-
setTheme: (theme:
|
|
8
|
+
setTheme: (theme: ThemeProps) => void;
|
|
9
9
|
hasError: Accessor<boolean>;
|
|
10
10
|
setHasError: (hasError: boolean) => void;
|
|
11
11
|
isSending: Accessor<boolean>;
|
|
@@ -21,12 +21,16 @@ type InputAnswerContextType = {
|
|
|
21
21
|
getDisplayedMessageIndex: (chunkIndex: number) => number;
|
|
22
22
|
sendMessage: (answer?: InputSubmitContent) => Promise<void>;
|
|
23
23
|
processClientSideActions: (actions: NonNullable<ContinueChatResponse['clientSideActions']>) => Promise<void>;
|
|
24
|
+
onBubblesDisplayed: () => void;
|
|
24
25
|
};
|
|
25
26
|
type Props = {
|
|
26
27
|
children: JSX.Element;
|
|
27
28
|
initialChatReply: StartChatResponse;
|
|
28
29
|
context: BotContext;
|
|
29
|
-
|
|
30
|
+
onNewBlock?: (block: {
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}) => void;
|
|
30
34
|
onAnswer?: (answer: {
|
|
31
35
|
message: string;
|
|
32
36
|
blockId: string;
|
|
@@ -34,6 +38,7 @@ type Props = {
|
|
|
34
38
|
onEnd?: () => void;
|
|
35
39
|
onNewLogs?: (logs: OutgoingLog[]) => void;
|
|
36
40
|
onProgressUpdate?: (progress: number) => void;
|
|
41
|
+
onBubblesDisplayed?: () => void;
|
|
37
42
|
};
|
|
38
43
|
export declare const InputAnswerProvider: (props: Props) => JSX.Element;
|
|
39
44
|
export declare const useInputAnswer: () => InputAnswerContextType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputAnswerContext.d.ts","sourceRoot":"","sources":["../../src/components/InputAnswerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,QAAQ,EACR,GAAG,EAEJ,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"InputAnswerContext.d.ts","sourceRoot":"","sources":["../../src/components/InputAnswerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,QAAQ,EACR,GAAG,EAEJ,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,oBAAoB,EACpB,UAAU,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,UAAU,EAAE,SAAS,IAAI,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAejG,KAAK,sBAAsB,GAAG;IAC5B,UAAU,EAAE,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAA;IACrC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAA;IAC3B,YAAY,EAAE,QAAQ,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC,CAAA;IAC5D,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IACrC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC3B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IAC5B,eAAe,EAAE,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7C,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACrD,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,YAAY,EAAE,MAAM,aAAa,GAAG,SAAS,CAAA;IAC7C,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAC,CAAC,CAAA;IACjE,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,KAAK,IAAI,CAAA;IAChF,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAA;IACjE,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACzD,wBAAwB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrE,wBAAwB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAA;IACxD,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,wBAAwB,EAAE,CACxB,OAAO,EAAE,WAAW,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,KAC5D,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,gBAAgB,EAAE,iBAAiB,CAAA;IACnC,OAAO,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IAC1D,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;IACjE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACzC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC,CAAA;AAID,eAAO,MAAM,mBAAmB,UAAW,KAAK,gBAgU/C,CAAA;AAED,eAAO,MAAM,cAAc,8BAM1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputFormLayout.d.ts","sourceRoot":"","sources":["../../src/components/InputFormLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAA;AAGpC,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"InputFormLayout.d.ts","sourceRoot":"","sources":["../../src/components/InputFormLayout.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAA;AAGpC,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,UAAW,oBAAoB,gBA4C1D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAG9B,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HostBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/HostBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HostBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/HostBubble.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAEV,WAAW,EAGX,QAAQ,EAGT,MAAM,sBAAsB,CAAA;AAI7B,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAA;IACpB,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAChD,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCAoCtC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BotContext } from '@/types';
|
|
2
|
+
type Props = {
|
|
3
|
+
streamingMessageId: string;
|
|
4
|
+
context: BotContext;
|
|
5
|
+
};
|
|
6
|
+
export declare const HostBubbleStreaming: (props: Props) => import("solid-js").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=HostBubbleStreaming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostBubbleStreaming.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/HostBubbleStreaming.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,KAAK,KAAK,GAAG;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,UAAU,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCAsD/C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const FileAttached: (props: {
|
|
2
2
|
file: File;
|
|
3
3
|
uploadProgressPercent?: number;
|
|
4
4
|
onRemoveClick: () => void;
|
|
5
5
|
}) => import("solid-js").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=FileAttached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttached.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/FileAttached.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,UAAW;IAClC,IAAI,EAAE,IAAI,CAAA;IACV,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAA;CAC1B,mCA4BA,CAAA"}
|
|
@@ -3,6 +3,6 @@ type ShortTextInputProps = {
|
|
|
3
3
|
ref: HTMLInputElement | undefined;
|
|
4
4
|
onInput: (value: string) => void;
|
|
5
5
|
} & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'onInput'>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Input: (props: ShortTextInputProps) => JSX.Element;
|
|
7
7
|
export {};
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAE1C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC,GAAG,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,CAAA;AAE9D,eAAO,MAAM,KAAK,UAAW,mBAAmB,gBAa/C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AudioBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/audio/components/AudioBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AudioBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/audio/components/AudioBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAKvD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CACjD,CAAA;AAOD,eAAO,MAAM,WAAW,UAAW,KAAK,mCAoDvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/embed/components/EmbedBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmbedBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/embed/components/EmbedBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAI5C,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAChD,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAClD,CAAA;AAMD,eAAO,MAAM,WAAW,UAAW,KAAK,mCA+GvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/image/components/ImageBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImageBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/image/components/ImageBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAGvD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CACjD,CAAA;AAQD,eAAO,MAAM,WAAW,UAAW,KAAK,mCAmFvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/textBubble/components/TextBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"TextBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/textBubble/components/TextBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAOrE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;IACnC,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;IAC5C,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CACjD,CAAA;AAMD,eAAO,MAAM,UAAU,UAAW,KAAK,mCAiFtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/video/components/VideoBubble.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoBubble.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/bubbles/video/components/VideoBubble.tsx"],"names":[],"mappings":"AASA,OAAO,EAAoC,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEzF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CACjD,CAAA;AAKD,eAAO,MAAM,WAAW,UAAW,KAAK,mCAmGvC,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { InputSubmitContent } from '@/types';
|
|
2
1
|
import type { ChoiceInputBlock } from '@quickbot.io/schemas';
|
|
2
|
+
import { InputSubmitContent } from '@/types';
|
|
3
3
|
type Props = {
|
|
4
|
-
chunkIndex
|
|
4
|
+
chunkIndex?: number;
|
|
5
5
|
defaultItems: ChoiceInputBlock['items'];
|
|
6
6
|
options: ChoiceInputBlock['options'];
|
|
7
7
|
onSubmit: (value: InputSubmitContent) => void;
|
|
8
8
|
onTransitionEnd: () => void;
|
|
9
|
+
multiple?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export declare const Buttons: (props: Props) => import("solid-js").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/buttons/components/Buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Buttons.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/buttons/components/Buttons.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAK5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAK5C,KAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IACvC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,OAAO,UAAW,KAAK,mCA4InC,CAAA"}
|
|
@@ -4,6 +4,6 @@ type Props = {
|
|
|
4
4
|
onInput: (value: string) => void;
|
|
5
5
|
onClear: () => void;
|
|
6
6
|
} & Omit<JSX.InputHTMLAttributes<HTMLInputElement>, 'onInput'>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const ButtonsSearch: (props: Props) => JSX.Element;
|
|
8
8
|
export {};
|
|
9
|
-
//# sourceMappingURL=
|
|
9
|
+
//# sourceMappingURL=ButtonsSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonsSearch.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/buttons/components/ButtonsSearch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAG1C,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAAA;IACjC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,GAAG,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,CAAA;AAE9D,eAAO,MAAM,aAAa,UAAW,KAAK,gBAgCzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/blocks/inputs/buttons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/date/components/DateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"DateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/date/components/DateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAMrD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAClD,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ,UAAW,KAAK,mCAmQpC,CAAA"}
|
|
@@ -4,6 +4,8 @@ type Props = {
|
|
|
4
4
|
block: EmailInputBlock;
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
onSubmit: (value: InputSubmitContent) => void;
|
|
7
|
+
isInputDisabled?: () => boolean;
|
|
8
|
+
hasError?: boolean;
|
|
7
9
|
};
|
|
8
10
|
export declare const EmailInput: (props: Props) => import("solid-js").JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/email/components/EmailInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAK3D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,eAAe,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"EmailInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/email/components/EmailInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAK3D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,eAAe,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCAkDtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/fileUpload/components/FileUploadForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAYrD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,UAAU,CAAA;IACnB,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"FileUploadForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/fileUpload/components/FileUploadForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAYrD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,UAAU,CAAA;IACnB,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,cAAc,UAAW,KAAK,mCA+N1C,CAAA"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
newFile: File;
|
|
3
3
|
existingFiles: File[];
|
|
4
|
-
params:
|
|
5
|
-
sizeLimit?: number;
|
|
6
|
-
};
|
|
4
|
+
params: Record<string, never>;
|
|
7
5
|
onError: (message: {
|
|
8
6
|
title?: string;
|
|
9
7
|
description: string;
|
|
10
8
|
}) => void;
|
|
11
9
|
};
|
|
12
|
-
export declare const sanitizeNewFile: ({ newFile, existingFiles,
|
|
10
|
+
export declare const sanitizeNewFile: ({ newFile, existingFiles, onError, }: Props) => File | undefined;
|
|
13
11
|
export {};
|
|
14
12
|
//# sourceMappingURL=sanitizeSelectedFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitizeSelectedFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/fileUpload/utils/sanitizeSelectedFiles.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,IAAI,CAAA;IACb,aAAa,EAAE,IAAI,EAAE,CAAA;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;IAC7B,OAAO,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACpE,CAAA;AACD,eAAO,MAAM,eAAe,yCAIzB,KAAK,KAAG,IAAI,GAAG,SAsBjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/fileUpload/utils/uploadFiles.ts"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE;QACL,IAAI,EAAE,IAAI,CAAA;QACV,KAAK,EAAE;YACL,SAAS,EAAE,MAAM,CAAA;YACjB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,EAAE,CAAA;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E,CAAA;AAED,KAAK,OAAO,GAAG,CAAC;IACd,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,IAAI,CAAC,EAAE,CAAA;AAEX,eAAO,MAAM,WAAW,0CAIrB,eAAe,KAAG,QAAQ,OAAO,CAwCnC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/number/components/NumberInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,gBAAgB,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,gBAAgB,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/number/components/NumberInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,gBAAgB,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,gBAAgB,mCA2DlD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberInputHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/number/utils/numberInputHelper.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,UAAoB,MAAM,GAAG,UA4B1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymentInProgressStorage.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/payment/utils/paymentInProgressStorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,eAAO,MAAM,6BAA6B,UACjC,KAAK,iBAAiB,EAAE,KAAK,GAAG,WAAW,GAAG,UAAU,CAAC,SAGjE,CAAA;AAED,eAAO,MAAM,6BAA6B,qBAAuD,CAAA;AAEjG,eAAO,MAAM,kCAAkC,YAE9C,CAAA"}
|
|
@@ -3,6 +3,8 @@ import { PhoneNumberInputBlock } from '@quickbot.io/schemas';
|
|
|
3
3
|
type PhoneInputProps = Pick<NonNullable<PhoneNumberInputBlock['options']>, 'labels' | 'defaultCountryCode'> & {
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
onSubmit: (value: InputSubmitContent) => void;
|
|
6
|
+
isInputDisabled?: () => boolean;
|
|
7
|
+
hasError?: boolean;
|
|
6
8
|
};
|
|
7
9
|
export declare const PhoneInput: (props: PhoneInputProps) => import("solid-js").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/phone/components/PhoneInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAK5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAI5D,KAAK,eAAe,GAAG,IAAI,CACzB,WAAW,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,EAC7C,QAAQ,GAAG,oBAAoB,CAChC,GAAG;IACF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/phone/components/PhoneInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAK5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAI5D,KAAK,eAAe,GAAG,IAAI,CACzB,WAAW,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,EAC7C,QAAQ,GAAG,oBAAoB,CAChC,GAAG;IACF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,eAAe,mCA4GhD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/rating/components/RatingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"RatingForm.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/rating/components/RatingForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAO5D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,UAAU,UAAW,KAAK,mCAyEtC,CAAA"}
|
|
@@ -5,7 +5,9 @@ type Props = {
|
|
|
5
5
|
defaultValue?: string;
|
|
6
6
|
context: BotContext;
|
|
7
7
|
onSubmit: (value: InputSubmitContent) => void;
|
|
8
|
+
isInputDisabled?: () => boolean;
|
|
9
|
+
hasError?: boolean;
|
|
8
10
|
};
|
|
9
|
-
export declare const
|
|
11
|
+
export declare const TextInput: (props: Props) => import("solid-js").JSX.Element;
|
|
10
12
|
export {};
|
|
11
13
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/text/components/TextInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,UAAU,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAgB1D,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,UAAU,CAAA;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,eAAe,CAAC,EAAE,MAAM,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,SAAS,UAAW,KAAK,mCAgRrC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeChatProps } from '@quickbot.io/schemas';
|
|
2
2
|
type Props = {
|
|
3
3
|
recordingStatus: 'asking' | 'started' | 'stopped';
|
|
4
|
-
buttonsTheme: NonNullable<
|
|
4
|
+
buttonsTheme: NonNullable<ThemeChatProps>['buttons'];
|
|
5
5
|
onAbortRecording: () => void;
|
|
6
6
|
onRecordingConfirmed: (stream: MediaStream) => void;
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoiceRecorder.d.ts","sourceRoot":"","sources":["../../../../../../src/features/blocks/inputs/text/components/VoiceRecorder.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAWrD,KAAK,KAAK,GAAG;IACX,eAAe,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAA;IACjD,YAAY,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,CAAA;IACpD,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,oBAAoB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,aAAa,UAAW,KAAK,mCA0IzC,CAAA"}
|