🔥 Remove previous invalid d.ts files
This commit is contained in:
@ -1,7 +0,0 @@
|
|||||||
type Props = {
|
|
||||||
hostAvatarSrc?: string;
|
|
||||||
keepShowing: boolean;
|
|
||||||
};
|
|
||||||
export declare const AvatarSideContainer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=AvatarSideContainer.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"AvatarSideContainer.d.ts","sourceRoot":"","sources":["AvatarSideContainer.tsx"],"names":[],"mappings":"AAYA,KAAK,KAAK,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,CAAA;AAE7D,eAAO,MAAM,mBAAmB,2FAuD9B,CAAA"}
|
|
@ -1,10 +0,0 @@
|
|||||||
import { InputBlock } from '@typebot.io/schemas';
|
|
||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
export declare const InputChatBlock: ({ block, hasAvatar, hasGuestAvatar, onTransitionEnd, onSkip, }: {
|
|
||||||
block: InputBlock;
|
|
||||||
hasGuestAvatar: boolean;
|
|
||||||
hasAvatar: boolean;
|
|
||||||
onTransitionEnd: (answerContent?: InputSubmitContent, isRetry?: boolean) => void;
|
|
||||||
onSkip: () => void;
|
|
||||||
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
||||||
//# sourceMappingURL=InputChatBlock.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"InputChatBlock.d.ts","sourceRoot":"","sources":["InputChatBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAkB5C,eAAO,MAAM,cAAc,mEAMxB;IACD,KAAK,EAAE,UAAU,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,eAAe,EAAE,CACf,aAAa,CAAC,EAAE,kBAAkB,EAClC,OAAO,CAAC,EAAE,OAAO,KACd,IAAI,CAAA;IACT,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,mDA8DA,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
interface Props {
|
|
||||||
message: string;
|
|
||||||
showAvatar: boolean;
|
|
||||||
avatarSrc?: string;
|
|
||||||
}
|
|
||||||
export declare const GuestBubble: ({ message, showAvatar, avatarSrc, }: Props) => JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=GuestBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["GuestBubble.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,wCAIrB,KAAK,KAAG,GAAG,CAAC,OAmBd,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
import { BubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: BubbleBlock;
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const HostBubble: ({ block, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=HostBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"HostBubble.d.ts","sourceRoot":"","sources":["HostBubble.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGjD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,WAAW,CAAA;IAClB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,UAAU,+BAAgC,KAAK,4CAkB3D,CAAA"}
|
|
@ -1,15 +0,0 @@
|
|||||||
import { LinkedTypebot } from '../../providers/TypebotProvider';
|
|
||||||
import { PublicTypebot, Block } from '@typebot.io/schemas';
|
|
||||||
type ChatGroupProps = {
|
|
||||||
blocks: Block[];
|
|
||||||
startBlockIndex: number;
|
|
||||||
groupTitle: string;
|
|
||||||
keepShowingHostAvatar: boolean;
|
|
||||||
onGroupEnd: ({ edgeId, updatedTypebot, }: {
|
|
||||||
edgeId?: string;
|
|
||||||
updatedTypebot?: PublicTypebot | LinkedTypebot;
|
|
||||||
}) => void;
|
|
||||||
};
|
|
||||||
export declare const ChatGroup: ({ blocks, startBlockIndex, groupTitle, onGroupEnd, keepShowingHostAvatar, }: ChatGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=ChatGroup.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ChatGroup.d.ts","sourceRoot":"","sources":["ChatGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAc,MAAM,iCAAiC,CAAA;AAU3E,OAAO,EAGL,aAAa,EACb,KAAK,EACN,MAAM,qBAAqB,CAAA;AAe5B,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,qBAAqB,EAAE,OAAO,CAAA;IAC9B,UAAU,EAAE,CAAC,EACX,MAAM,EACN,cAAc,GACf,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,cAAc,CAAC,EAAE,aAAa,GAAG,aAAa,CAAA;KAC/C,KAAK,IAAI,CAAA;CACX,CAAA;AAID,eAAO,MAAM,SAAS,gFAMnB,cAAc,4CA2LhB,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { ChatGroup } from './ChatGroup';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@ -1,13 +0,0 @@
|
|||||||
import { Edge, Theme } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
theme: Theme;
|
|
||||||
predefinedVariables?: {
|
|
||||||
[key: string]: string | undefined;
|
|
||||||
};
|
|
||||||
startGroupId?: string;
|
|
||||||
onNewGroupVisible: (edge: Edge) => void;
|
|
||||||
onCompleted: () => void;
|
|
||||||
};
|
|
||||||
export declare const ConversationContainer: ({ theme, predefinedVariables, startGroupId, onNewGroupVisible, onCompleted, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=ConversationContainer.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ConversationContainer.d.ts","sourceRoot":"","sources":["ConversationContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,IAAI,EAEJ,KAAK,EAEN,MAAM,qBAAqB,CAAA;AAQ5B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,CAAA;IACZ,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACvC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AACD,eAAO,MAAM,qBAAqB,kFAM/B,KAAK,4CA+IP,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export declare const LiteBadge: () => import("react/jsx-runtime").JSX.Element;
|
|
||||||
//# sourceMappingURL=LiteBadge.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"LiteBadge.d.ts","sourceRoot":"","sources":["LiteBadge.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,+CAwCrB,CAAA"}
|
|
@ -1,7 +0,0 @@
|
|||||||
type Props = {
|
|
||||||
url: string;
|
|
||||||
onLinkClick: () => void;
|
|
||||||
};
|
|
||||||
export declare const PopupBlockedToast: ({ url, onLinkClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=PopupBlockedToast.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"PopupBlockedToast.d.ts","sourceRoot":"","sources":["PopupBlockedToast.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,iBAAiB,yBAA0B,KAAK,4CAwB5D,CAAA"}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { SVGProps } from 'react';
|
|
||||||
type SendButtonProps = {
|
|
||||||
label: string;
|
|
||||||
isDisabled?: boolean;
|
|
||||||
isLoading?: boolean;
|
|
||||||
disableIcon?: boolean;
|
|
||||||
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
||||||
export declare const SendButton: ({ label, isDisabled, isLoading, disableIcon, ...props }: SendButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export declare const Spinner: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=SendButton.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["SendButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGhC,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AAEjD,eAAO,MAAM,UAAU,4DAMpB,eAAe,4CAoBjB,CAAA;AAED,eAAO,MAAM,OAAO,UAAW,QAAQ,CAAC,aAAa,CAAC,4CAuBrD,CAAA"}
|
|
@ -1,22 +0,0 @@
|
|||||||
import { AnswerInput, Edge, PublicTypebot, VariableWithValue } from '@typebot.io/schemas';
|
|
||||||
import { Log } from '@typebot.io/prisma';
|
|
||||||
export type TypebotViewerProps = {
|
|
||||||
typebot: Omit<PublicTypebot, 'updatedAt' | 'createdAt'>;
|
|
||||||
isPreview?: boolean;
|
|
||||||
apiHost?: string;
|
|
||||||
predefinedVariables?: {
|
|
||||||
[key: string]: string | undefined;
|
|
||||||
};
|
|
||||||
resultId?: string;
|
|
||||||
startGroupId?: string;
|
|
||||||
isLoading?: boolean;
|
|
||||||
onNewGroupVisible?: (edge: Edge) => void;
|
|
||||||
onNewAnswer?: (answer: AnswerInput & {
|
|
||||||
uploadedFiles: boolean;
|
|
||||||
}) => Promise<void>;
|
|
||||||
onNewLog?: (log: Omit<Log, 'id' | 'createdAt' | 'resultId'>) => void;
|
|
||||||
onCompleted?: () => void;
|
|
||||||
onVariablesUpdated?: (variables: VariableWithValue[]) => void;
|
|
||||||
};
|
|
||||||
export declare const TypebotViewer: ({ typebot, apiHost, isPreview, isLoading, resultId, startGroupId, predefinedVariables, onNewLog, onNewGroupVisible, onNewAnswer, onCompleted, onVariablesUpdated, }: TypebotViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
//# sourceMappingURL=TypebotViewer.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"TypebotViewer.d.ts","sourceRoot":"","sources":["TypebotViewer.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,WAAW,EACX,IAAI,EACJ,aAAa,EACb,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAKxC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,WAAW,CAAC,CAAA;IACvD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,CACZ,MAAM,EAAE,WAAW,GAAG;QAAE,aAAa,EAAE,OAAO,CAAA;KAAE,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC,KAAK,IAAI,CAAA;IACpE,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAA;CAC9D,CAAA;AAED,eAAO,MAAM,aAAa,wKAavB,kBAAkB,4CAuEpB,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export declare const TypingBubble: () => JSX.Element;
|
|
||||||
//# sourceMappingURL=TypingBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAO,GAAG,CAAC,OAMnC,CAAA"}
|
|
@ -1,4 +0,0 @@
|
|||||||
export declare const Avatar: ({ avatarSrc }: {
|
|
||||||
avatarSrc?: string;
|
|
||||||
}) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
//# sourceMappingURL=Avatar.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["Avatar.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,kBAAmB;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAmB3D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export declare const DefaultAvatar: () => import("react/jsx-runtime").JSX.Element;
|
|
||||||
//# sourceMappingURL=DefaultAvatar.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["DefaultAvatar.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+CAuCzB,CAAA"}
|
|
@ -1 +0,0 @@
|
|||||||
declare module '*.css'
|
|
@ -1,2 +0,0 @@
|
|||||||
export declare const SendIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
//# sourceMappingURL=icons.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["icons.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,UAAW,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,4CAU5D,CAAA"}
|
|
@ -1,4 +0,0 @@
|
|||||||
export declare const ShortTextInput: import("react").ForwardRefExoticComponent<{
|
|
||||||
onChange: (value: string) => void;
|
|
||||||
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "onChange"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
||||||
//# sourceMappingURL=ShortTextInput.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["ShortTextInput.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,cAAc;cAHf,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;8HAkBjC,CAAA"}
|
|
@ -1,4 +0,0 @@
|
|||||||
export declare const Textarea: import("react").ForwardRefExoticComponent<{
|
|
||||||
onChange: (value: string) => void;
|
|
||||||
} & Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
||||||
//# sourceMappingURL=Textarea.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["Textarea.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;cAHT,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;uIAoBjC,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
import { AudioBubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
url: NonNullable<AudioBubbleBlock['content']>['url'];
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const AudioBubble: ({ url, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=AudioBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"AudioBubble.d.ts","sourceRoot":"","sources":["AudioBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;IACpD,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAKD,eAAO,MAAM,WAAW,6BAA8B,KAAK,4CAiD1D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export * from './AudioBubble';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export * from './components';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { EmbedBubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: EmbedBubbleBlock;
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const showAnimationDuration = 400;
|
|
||||||
export declare const EmbedBubble: ({ block, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=EmbedBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"EmbedBubble.d.ts","sourceRoot":"","sources":["EmbedBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAKtD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAA;IACvB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,eAAO,MAAM,WAAW,+BAAgC,KAAK,4CAgE5D,CAAA"}
|
|
@ -1,78 +0,0 @@
|
|||||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
||||||
import { EmbedBubbleBlock } from '@typebot.io/schemas'
|
|
||||||
import { TypingBubble } from '../../../../../components/TypingBubble'
|
|
||||||
import { parseVariables } from '@/features/variables'
|
|
||||||
import { useTypebot } from '@/providers/TypebotProvider'
|
|
||||||
|
|
||||||
type Props = {
|
|
||||||
block: EmbedBubbleBlock
|
|
||||||
onTransitionEnd: () => void
|
|
||||||
}
|
|
||||||
|
|
||||||
export const showAnimationDuration = 400
|
|
||||||
|
|
||||||
export const EmbedBubble = ({ block, onTransitionEnd }: Props) => {
|
|
||||||
const { typebot, isLoading } = useTypebot()
|
|
||||||
const messageContainer = useRef<HTMLDivElement | null>(null)
|
|
||||||
const [isTyping, setIsTyping] = useState(true)
|
|
||||||
const [url] = useState(parseVariables(typebot.variables)(block.content?.url))
|
|
||||||
|
|
||||||
const onTypingEnd = useCallback(() => {
|
|
||||||
setIsTyping(false)
|
|
||||||
setTimeout(() => {
|
|
||||||
onTransitionEnd()
|
|
||||||
}, showAnimationDuration)
|
|
||||||
}, [onTransitionEnd])
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (!isTyping || isLoading) return
|
|
||||||
const timeout = setTimeout(() => {
|
|
||||||
setIsTyping(false)
|
|
||||||
onTypingEnd()
|
|
||||||
}, 1000)
|
|
||||||
|
|
||||||
return () => {
|
|
||||||
clearTimeout(timeout)
|
|
||||||
}
|
|
||||||
}, [isLoading, isTyping, onTypingEnd])
|
|
||||||
|
|
||||||
const height = block.content?.height
|
|
||||||
? typeof block.content.height === 'string'
|
|
||||||
? parseVariables(typebot.variables)(block.content.height) + 'px'
|
|
||||||
: block.content.height
|
|
||||||
: '2rem'
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="flex flex-col w-full" ref={messageContainer}>
|
|
||||||
<div className="flex mb-2 w-full lg:w-11/12 items-center">
|
|
||||||
<div
|
|
||||||
className={
|
|
||||||
'flex relative z-10 items-start typebot-host-bubble w-full'
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="flex items-center absolute px-4 py-2 rounded-lg bubble-typing z-10 "
|
|
||||||
style={{
|
|
||||||
width: isTyping ? '4rem' : '100%',
|
|
||||||
height: isTyping ? '2rem' : '100%',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{isTyping ? <TypingBubble /> : <></>}
|
|
||||||
</div>
|
|
||||||
<iframe
|
|
||||||
id="embed-bubble-content"
|
|
||||||
src={url}
|
|
||||||
className={
|
|
||||||
'w-full z-20 p-4 content-opacity ' +
|
|
||||||
(isTyping ? 'opacity-0' : 'opacity-100')
|
|
||||||
}
|
|
||||||
style={{
|
|
||||||
height: isTyping ? '2rem' : height,
|
|
||||||
borderRadius: '15px',
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { EmbedBubble } from './components/EmbedBubble';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@ -1 +0,0 @@
|
|||||||
export { EmbedBubble } from './components/EmbedBubble'
|
|
@ -1,10 +0,0 @@
|
|||||||
import { ImageBubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: ImageBubbleBlock;
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const showAnimationDuration = 400;
|
|
||||||
export declare const mediaLoadingFallbackTimeout = 5000;
|
|
||||||
export declare const ImageBubble: ({ block, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=ImageBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ImageBubble.d.ts","sourceRoot":"","sources":["ImageBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAItD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAA;IACvB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,eAAO,MAAM,2BAA2B,OAAO,CAAA;AAE/C,eAAO,MAAM,WAAW,+BAAgC,KAAK,4CAsE5D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { ImageBubble } from './components/ImageBubble';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { TextBubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: TextBubbleBlock;
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const showAnimationDuration = 400;
|
|
||||||
export declare const TextBubble: ({ block, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=TextBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"TextBubble.d.ts","sourceRoot":"","sources":["TextBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAMrD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,eAAe,CAAA;IACtB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,eAAO,MAAM,UAAU,+BAAgC,KAAK,4CAsE3D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { TextBubble } from './components/TextBubble';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
import { Settings } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
bubbleContent: string;
|
|
||||||
typingSettings?: Settings['typingEmulation'];
|
|
||||||
};
|
|
||||||
export declare const computeTypingDuration: ({ bubbleContent, typingSettings, }: Props) => number;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=computeTypingDuration.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"computeTypingDuration.d.ts","sourceRoot":"","sources":["computeTypingDuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAG9C,KAAK,KAAK,GAAG;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,qBAAqB,uCAG/B,KAAK,WAaP,CAAA"}
|
|
@ -1,10 +0,0 @@
|
|||||||
import { VideoBubbleBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: VideoBubbleBlock;
|
|
||||||
onTransitionEnd: () => void;
|
|
||||||
};
|
|
||||||
export declare const showAnimationDuration = 400;
|
|
||||||
export declare const mediaLoadingFallbackTimeout = 5000;
|
|
||||||
export declare const VideoBubble: ({ block, onTransitionEnd }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=VideoBubble.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"VideoBubble.d.ts","sourceRoot":"","sources":["VideoBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAKhE,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAA;IACvB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAA;AAExC,eAAO,MAAM,2BAA2B,OAAO,CAAA;AAE/C,eAAO,MAAM,WAAW,+BAAgC,KAAK,4CA8C5D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { VideoBubble } from './components/VideoBubble';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { ChoiceInputBlock } from '@typebot.io/schemas';
|
|
||||||
type ChoiceFormProps = {
|
|
||||||
block: ChoiceInputBlock;
|
|
||||||
onSubmit: (value: InputSubmitContent) => void;
|
|
||||||
};
|
|
||||||
export declare const ChoiceForm: ({ block, onSubmit }: ChoiceFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=ChoiceForm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ChoiceForm.d.ts","sourceRoot":"","sources":["ChoiceForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAItD,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,gBAAgB,CAAA;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,UAAU,wBAAyB,eAAe,4CAgF9D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { ChoiceForm } from './components/ChoiceForm';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@ -1,9 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { DateInputBlock } from '@typebot.io/schemas';
|
|
||||||
type DateInputProps = {
|
|
||||||
onSubmit: (inputValue: InputSubmitContent) => void;
|
|
||||||
options: DateInputBlock['options'];
|
|
||||||
};
|
|
||||||
export declare const DateForm: ({ onSubmit, options, }: DateInputProps) => JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=DateForm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"DateForm.d.ts","sourceRoot":"","sources":["DateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAClD,OAAO,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,QAAQ,2BAGlB,cAAc,KAAG,GAAG,CAAC,OAuEvB,CAAA"}
|
|
@ -1,3 +0,0 @@
|
|||||||
export { DateForm } from './components/DateForm';
|
|
||||||
export { parseReadableDate } from './utils/parseReadableDate';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@ -1,7 +0,0 @@
|
|||||||
export declare const parseReadableDate: ({ from, to, hasTime, isRange, }: {
|
|
||||||
from: string;
|
|
||||||
to: string;
|
|
||||||
hasTime?: boolean;
|
|
||||||
isRange?: boolean;
|
|
||||||
}) => string;
|
|
||||||
//# sourceMappingURL=parseReadableDate.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"parseReadableDate.d.ts","sourceRoot":"","sources":["parseReadableDate.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,oCAK3B;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,WAgBA,CAAA"}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { EmailInputBlock } from '@typebot.io/schemas';
|
|
||||||
type EmailInputProps = {
|
|
||||||
block: EmailInputBlock;
|
|
||||||
onSubmit: (value: InputSubmitContent) => void;
|
|
||||||
defaultValue?: string;
|
|
||||||
hasGuestAvatar: boolean;
|
|
||||||
};
|
|
||||||
export declare const EmailInput: ({ block, onSubmit, defaultValue, hasGuestAvatar, }: EmailInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=EmailInput.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"EmailInput.d.ts","sourceRoot":"","sources":["EmailInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGrD,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,eAAe,CAAA;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,UAAU,uDAKpB,eAAe,4CA8CjB,CAAA"}
|
|
@ -1,3 +0,0 @@
|
|||||||
export { EmailInput } from './components/EmailInput';
|
|
||||||
export { validateEmail } from './utils/validateEmail';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export declare const validateEmail: (email: string) => boolean;
|
|
||||||
//# sourceMappingURL=validateEmail.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"validateEmail.d.ts","sourceRoot":"","sources":["validateEmail.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,UAAW,MAAM,YAA2B,CAAA"}
|
|
@ -1,10 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { FileInputBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
block: FileInputBlock;
|
|
||||||
onSubmit: (url: InputSubmitContent) => void;
|
|
||||||
onSkip: () => void;
|
|
||||||
};
|
|
||||||
export declare const FileUploadForm: ({ block: { id, options }, onSubmit, onSkip, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=FileUploadForm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"FileUploadForm.d.ts","sourceRoot":"","sources":["FileUploadForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKpD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,KAAK,4CAuMP,CAAA"}
|
|
@ -1,12 +0,0 @@
|
|||||||
type UploadFileProps = {
|
|
||||||
basePath?: string;
|
|
||||||
files: {
|
|
||||||
file: File;
|
|
||||||
path: string;
|
|
||||||
}[];
|
|
||||||
onUploadProgress?: (percent: number) => void;
|
|
||||||
};
|
|
||||||
type UrlList = (string | null)[];
|
|
||||||
export declare const uploadFiles: ({ basePath, files, onUploadProgress, }: UploadFileProps) => Promise<UrlList>;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=uploadFiles.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"uploadFiles.d.ts","sourceRoot":"","sources":["uploadFiles.ts"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE;QACL,IAAI,EAAE,IAAI,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;IACH,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C,CAAA;AAED,KAAK,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAA;AAEhC,eAAO,MAAM,WAAW,2CAIrB,eAAe,KAAG,OAAO,CAAC,OAAO,CA+BnC,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { FileUploadForm } from './components/FileUploadForm';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA"}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { NumberInputBlock } from '@typebot.io/schemas';
|
|
||||||
type NumberInputProps = {
|
|
||||||
block: NumberInputBlock;
|
|
||||||
onSubmit: (value: InputSubmitContent) => void;
|
|
||||||
defaultValue?: string;
|
|
||||||
hasGuestAvatar: boolean;
|
|
||||||
};
|
|
||||||
export declare const NumberInput: ({ block, onSubmit, defaultValue, hasGuestAvatar, }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["NumberInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAGtD,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,gBAAgB,CAAA;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,WAAW,uDAKrB,gBAAgB,4CAmDlB,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { NumberInput } from './components/NumberInput';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
import { PaymentInputBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
onSuccess: () => void;
|
|
||||||
options: PaymentInputBlock['options'];
|
|
||||||
};
|
|
||||||
export declare const PaymentForm: ({ onSuccess, options }: Props) => JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=PaymentForm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"PaymentForm.d.ts","sourceRoot":"","sources":["PaymentForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAIvD,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,WAAW,2BAA4B,KAAK,KAAG,GAAG,CAAC,OAM/D,CAAA"}
|
|
@ -1,8 +0,0 @@
|
|||||||
import { PaymentInputBlock } from '@typebot.io/schemas';
|
|
||||||
type Props = {
|
|
||||||
options: PaymentInputBlock['options'];
|
|
||||||
onSuccess: () => void;
|
|
||||||
};
|
|
||||||
export declare const StripePaymentForm: ({ options, onSuccess }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=StripePaymentForm.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"StripePaymentForm.d.ts","sourceRoot":"","sources":["StripePaymentForm.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAY,MAAM,qBAAqB,CAAA;AASjE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IACrC,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,2BAA4B,KAAK,4CAgD9D,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { PaymentForm } from './PaymentForm';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
@ -1,2 +0,0 @@
|
|||||||
export { PaymentForm } from './components/PaymentForm';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@ -1,16 +0,0 @@
|
|||||||
import { PaymentInputBlock, Variable } from '@typebot.io/schemas';
|
|
||||||
export declare const createPaymentIntentQuery: ({ apiHost, isPreview, inputOptions, variables, }: {
|
|
||||||
inputOptions: PaymentInputBlock["options"];
|
|
||||||
apiHost: string;
|
|
||||||
variables: Variable[];
|
|
||||||
isPreview: boolean;
|
|
||||||
}) => Promise<{
|
|
||||||
data?: {
|
|
||||||
clientSecret: string;
|
|
||||||
publicKey: string;
|
|
||||||
amountLabel: string;
|
|
||||||
} | undefined;
|
|
||||||
error?: Error;
|
|
||||||
response?: Response;
|
|
||||||
}>;
|
|
||||||
//# sourceMappingURL=createPaymentIntentQuery.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"createPaymentIntentQuery.d.ts","sourceRoot":"","sources":["createPaymentIntentQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAGjE,eAAO,MAAM,wBAAwB,qDAKlC;IACD,YAAY,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;IAC1C,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;CACnB;;sBAC6B,MAAM;mBAAa,MAAM;qBAAe,MAAM;;;;EAMzE,CAAA"}
|
|
@ -1,11 +0,0 @@
|
|||||||
import { InputSubmitContent } from '@/types';
|
|
||||||
import { PhoneNumberInputBlock } from '@typebot.io/schemas';
|
|
||||||
type PhoneInputProps = {
|
|
||||||
block: PhoneNumberInputBlock;
|
|
||||||
onSubmit: (value: InputSubmitContent) => void;
|
|
||||||
defaultValue?: string;
|
|
||||||
hasGuestAvatar: boolean;
|
|
||||||
};
|
|
||||||
export declare const PhoneInput: ({ block, onSubmit, defaultValue, hasGuestAvatar, }: PhoneInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=PhoneInput.d.ts.map
|
|
@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["PhoneInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAI3D,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,qBAAqB,CAAA;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,UAAU,uDAKpB,eAAe,4CAkDjB,CAAA"}
|
|
@ -1,3 +0,0 @@
|
|||||||
export { PhoneInput } from './components/PhoneInput';
|
|
||||||
export { validatePhoneNumber } from './utils/validatePhoneNumber';
|
|
||||||
//# sourceMappingURL=index.d.ts.map
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user