🚧 Use TS project references
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
"dependencies": {
|
||||
"@typebot.io/forge": "workspace:*",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"@typebot.io/tsconfig": "workspace:*",
|
||||
"@typebot.io/variables": "workspace:*",
|
||||
"ai": "3.3.15",
|
||||
"ky": "1.2.4"
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
{
|
||||
"extends": "@typebot.io/tsconfig/base.json",
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["node_modules"],
|
||||
"extends": "../tsconfig/base.json",
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2021", "DOM"]
|
||||
}
|
||||
"outDir": "dist"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../forge/core"
|
||||
},
|
||||
{
|
||||
"path": "../lib"
|
||||
},
|
||||
{
|
||||
"path": "../variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TRPCError } from '@trpc/server'
|
||||
import { isDefined, isNotDefined, isNotEmpty } from '@typebot.io/lib/utils'
|
||||
import { isDefined, isNotDefined } from '@typebot.io/lib/utils'
|
||||
import { getSession } from '../queries/getSession'
|
||||
import { continueBotFlow } from '../continueBotFlow'
|
||||
import { filterPotentiallySensitiveLogs } from '../logs/filterPotentiallySensitiveLogs'
|
||||
|
||||
@@ -7,7 +7,6 @@ import { isDefined } from '@typebot.io/lib'
|
||||
import { filterChoiceItems } from './filterChoiceItems'
|
||||
import { deepParseVariables } from '@typebot.io/variables/deepParseVariables'
|
||||
import { transformVariablesToList } from '@typebot.io/variables/transformVariablesToList'
|
||||
import { updateVariablesInSession } from '@typebot.io/variables/updateVariablesInSession'
|
||||
|
||||
export const injectVariableValuesInButtonsInputBlock =
|
||||
(state: SessionState) =>
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
Block,
|
||||
Credentials,
|
||||
SessionState,
|
||||
TypebotInSession,
|
||||
} from '@typebot.io/schemas'
|
||||
import { Block, SessionState, TypebotInSession } from '@typebot.io/schemas'
|
||||
import {
|
||||
ChatCompletionOpenAIOptions,
|
||||
OpenAICredentials,
|
||||
@@ -176,6 +171,3 @@ const getNextBlock =
|
||||
)
|
||||
: connectedGroup?.blocks.at(0)
|
||||
}
|
||||
|
||||
const isCredentialsV2 = (credentials: Pick<Credentials, 'iv'>) =>
|
||||
credentials.iv.length === 24
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { DefaultBotNotificationEmail, render } from '@typebot.io/emails'
|
||||
import {
|
||||
AnswerInSessionState,
|
||||
ChatLog,
|
||||
@@ -20,6 +19,8 @@ import prisma from '@typebot.io/lib/prisma'
|
||||
import { parseVariables } from '@typebot.io/variables/parseVariables'
|
||||
import { defaultSendEmailOptions } from '@typebot.io/schemas/features/blocks/integrations/sendEmail/constants'
|
||||
import { parseAnswers } from '@typebot.io/results/parseAnswers'
|
||||
import { DefaultBotNotificationEmail } from '@typebot.io/emails/src/emails/DefaultBotNotificationEmail'
|
||||
import { render } from '@typebot.io/emails/src/index'
|
||||
|
||||
export const sendEmailSuccessDescription = 'Email successfully sent'
|
||||
export const sendEmailErrorDescription = 'Email not sent'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { User } from '@typebot.io/prisma'
|
||||
import {
|
||||
Block,
|
||||
PublicTypebot,
|
||||
|
||||
@@ -28,11 +28,11 @@ import { env } from '@typebot.io/env'
|
||||
import { TRPCError } from '@trpc/server'
|
||||
import { ExecuteIntegrationResponse, ExecuteLogicResponse } from './types'
|
||||
import { createId } from '@paralleldrive/cuid2'
|
||||
import {
|
||||
BubbleBlockWithDefinedContent,
|
||||
parseBubbleBlock,
|
||||
} from './parseBubbleBlock'
|
||||
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
|
||||
import {
|
||||
parseBubbleBlock,
|
||||
BubbleBlockWithDefinedContent,
|
||||
} from '@typebot.io/logic/parseBubbleBlock'
|
||||
|
||||
type ContextProps = {
|
||||
version: 1 | 2
|
||||
|
||||
@@ -206,6 +206,3 @@ const getNextBlock =
|
||||
)
|
||||
: connectedGroup?.blocks.at(0)
|
||||
}
|
||||
|
||||
const isCredentialsV2 = (credentials: { iv: string }) =>
|
||||
credentials.iv.length === 24
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"private": true,
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
"dependencies": {
|
||||
"@paralleldrive/cuid2": "2.2.1",
|
||||
"@planetscale/database": "1.8.0",
|
||||
@@ -17,7 +15,6 @@
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"@typebot.io/results": "workspace:*",
|
||||
"@typebot.io/schemas": "workspace:*",
|
||||
"@typebot.io/tsconfig": "workspace:*",
|
||||
"@typebot.io/variables": "workspace:*",
|
||||
"@udecode/plate-common": "30.4.5",
|
||||
"ai": "3.3.15",
|
||||
|
||||
@@ -41,7 +41,6 @@ import { IntegrationBlockType } from '@typebot.io/schemas/features/blocks/integr
|
||||
import { VisitedEdge } from '@typebot.io/prisma'
|
||||
import { env } from '@typebot.io/env'
|
||||
import { getFirstEdgeId } from './getFirstEdgeId'
|
||||
import { Reply } from './types'
|
||||
import {
|
||||
defaultGuestAvatarIsEnabled,
|
||||
defaultHostAvatarIsEnabled,
|
||||
|
||||
@@ -1,9 +1,43 @@
|
||||
{
|
||||
"extends": "@typebot.io/tsconfig/base.json",
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"extends": "../tsconfig/base.json",
|
||||
"include": [
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"jsx": "preserve",
|
||||
"lib": ["ES2021"]
|
||||
}
|
||||
"outDir": "dist"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../emails"
|
||||
},
|
||||
{
|
||||
"path": "../env"
|
||||
},
|
||||
{
|
||||
"path": "../forge/core"
|
||||
},
|
||||
{
|
||||
"path": "../forge/repository"
|
||||
},
|
||||
{
|
||||
"path": "../lib"
|
||||
},
|
||||
{
|
||||
"path": "../logic"
|
||||
},
|
||||
{
|
||||
"path": "../prisma"
|
||||
},
|
||||
{
|
||||
"path": "../results"
|
||||
},
|
||||
{
|
||||
"path": "../schemas"
|
||||
},
|
||||
{
|
||||
"path": "../variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"name": "@typebot.io/db-rules",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
||||
17
packages/db-rules/tsconfig.json
Normal file
17
packages/db-rules/tsconfig.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": "../tsconfig/base.json",
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"outDir": "dist"
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../env"
|
||||
},
|
||||
{
|
||||
"path": "../prisma"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3,8 +3,6 @@
|
||||
"private": true,
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"version": "0.1.0",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"dev": "tsup --watch"
|
||||
@@ -20,33 +18,31 @@
|
||||
"resize-observer": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typebot.io/env": "workspace:*",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"@typebot.io/schemas": "workspace:*",
|
||||
"@types/node": "20.4.2",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react": "18.2.15",
|
||||
"@types/react": "18.3.4",
|
||||
"@types/react-phone-number-input": "3.0.14",
|
||||
"@types/react-scroll": "1.8.6",
|
||||
"@types/react-transition-group": "4.4.5",
|
||||
"autoprefixer": "10.4.14",
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"esbuild": "0.19.5",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"@typebot.io/schemas": "workspace:*",
|
||||
"postcss": "8.4.26",
|
||||
"prettier": "2.8.8",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"tailwindcss": "3.3.3",
|
||||
"@typebot.io/tsconfig": "workspace:*",
|
||||
"tsup": "6.5.0",
|
||||
"typebot-js": "workspace:*",
|
||||
"typescript": "5.4.5",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"@typebot.io/env": "workspace:*"
|
||||
"typebot-js": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"react": "18.0.0",
|
||||
"react-dom": "18.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
7
packages/deprecated/bot-engine/src/components/ChatGroup/AvatarSideContainer.d.ts
vendored
Normal file
7
packages/deprecated/bot-engine/src/components/ChatGroup/AvatarSideContainer.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
type Props = {
|
||||
hostAvatarSrc?: string;
|
||||
keepShowing: boolean;
|
||||
};
|
||||
export declare const AvatarSideContainer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
||||
export {};
|
||||
//# sourceMappingURL=AvatarSideContainer.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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,4 +1,4 @@
|
||||
import React, {
|
||||
import {
|
||||
ForwardedRef,
|
||||
forwardRef,
|
||||
useEffect,
|
||||
|
||||
10
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/InputChatBlock.d.ts
vendored
Normal file
10
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/InputChatBlock.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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,4 +1,4 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { useAnswers } from '../../../providers/AnswersProvider'
|
||||
import { InputBlock } from '@typebot.io/schemas'
|
||||
import { GuestBubble } from './bubbles/GuestBubble'
|
||||
|
||||
8
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/bubbles/GuestBubble.d.ts
vendored
Normal file
8
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/bubbles/GuestBubble.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
interface Props {
|
||||
message: string;
|
||||
showAvatar: boolean;
|
||||
avatarSrc?: string;
|
||||
}
|
||||
export declare const GuestBubble: ({ message, showAvatar, avatarSrc, }: Props) => JSX.Element;
|
||||
export {};
|
||||
//# sourceMappingURL=GuestBubble.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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,5 +1,5 @@
|
||||
import { Avatar } from '@/components/avatars/Avatar'
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { CSSTransition } from 'react-transition-group'
|
||||
|
||||
interface Props {
|
||||
|
||||
8
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/bubbles/HostBubble.d.ts
vendored
Normal file
8
packages/deprecated/bot-engine/src/components/ChatGroup/ChatBlock/bubbles/HostBubble.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
15
packages/deprecated/bot-engine/src/components/ChatGroup/ChatGroup.d.ts
vendored
Normal file
15
packages/deprecated/bot-engine/src/components/ChatGroup/ChatGroup.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/components/ChatGroup/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/components/ChatGroup/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { ChatGroup } from './ChatGroup';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
||||
13
packages/deprecated/bot-engine/src/components/ConversationContainer.d.ts
vendored
Normal file
13
packages/deprecated/bot-engine/src/components/ConversationContainer.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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,4 +1,4 @@
|
||||
import React, { useEffect, useRef, useState } from 'react'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { ChatGroup } from './ChatGroup'
|
||||
import { useAnswers } from '../providers/AnswersProvider'
|
||||
import {
|
||||
|
||||
2
packages/deprecated/bot-engine/src/components/LiteBadge.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/components/LiteBadge.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const LiteBadge: () => import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=LiteBadge.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"LiteBadge.d.ts","sourceRoot":"","sources":["LiteBadge.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,+CAwCrB,CAAA"}
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useRef } from 'react'
|
||||
import { useEffect, useRef } from 'react'
|
||||
|
||||
export const LiteBadge = () => {
|
||||
const liteBadge = useRef<HTMLAnchorElement | null>(null)
|
||||
|
||||
7
packages/deprecated/bot-engine/src/components/PopupBlockedToast.d.ts
vendored
Normal file
7
packages/deprecated/bot-engine/src/components/PopupBlockedToast.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
11
packages/deprecated/bot-engine/src/components/SendButton.d.ts
vendored
Normal file
11
packages/deprecated/bot-engine/src/components/SendButton.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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,4 +1,4 @@
|
||||
import React, { SVGProps } from 'react'
|
||||
import { SVGProps } from 'react'
|
||||
import { SendIcon } from './icons'
|
||||
|
||||
type SendButtonProps = {
|
||||
|
||||
22
packages/deprecated/bot-engine/src/components/TypebotViewer.d.ts
vendored
Normal file
22
packages/deprecated/bot-engine/src/components/TypebotViewer.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/components/TypingBubble.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/components/TypingBubble.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const TypingBubble: () => JSX.Element;
|
||||
//# sourceMappingURL=TypingBubble.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAO,GAAG,CAAC,OAMnC,CAAA"}
|
||||
@@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export const TypingBubble = (): JSX.Element => (
|
||||
<div className="flex items-center">
|
||||
<div className="w-2 h-2 mr-1 rounded-full bubble1" />
|
||||
|
||||
4
packages/deprecated/bot-engine/src/components/avatars/Avatar.d.ts
vendored
Normal file
4
packages/deprecated/bot-engine/src/components/avatars/Avatar.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare const Avatar: ({ avatarSrc }: {
|
||||
avatarSrc?: string;
|
||||
}) => import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=Avatar.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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,4 +1,4 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { isDefined } from '@typebot.io/lib'
|
||||
import { DefaultAvatar } from './DefaultAvatar'
|
||||
|
||||
|
||||
2
packages/deprecated/bot-engine/src/components/avatars/DefaultAvatar.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/components/avatars/DefaultAvatar.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const DefaultAvatar: () => import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=DefaultAvatar.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["DefaultAvatar.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+CAuCzB,CAAA"}
|
||||
@@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export const DefaultAvatar = () => (
|
||||
<figure
|
||||
className={
|
||||
|
||||
2
packages/deprecated/bot-engine/src/components/icons.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/components/icons.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare const SendIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=icons.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
export const SendIcon = (props: React.SVGProps<SVGSVGElement>) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
4
packages/deprecated/bot-engine/src/components/inputs/ShortTextInput.d.ts
vendored
Normal file
4
packages/deprecated/bot-engine/src/components/inputs/ShortTextInput.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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,11 +1,11 @@
|
||||
import { isMobile } from '@/utils/helpers'
|
||||
import React from 'react'
|
||||
import { forwardRef } from 'react'
|
||||
|
||||
type ShortTextInputProps = {
|
||||
onChange: (value: string) => void
|
||||
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>
|
||||
|
||||
export const ShortTextInput = React.forwardRef(function ShortTextInput(
|
||||
export const ShortTextInput = forwardRef(function ShortTextInput(
|
||||
{ onChange, ...props }: ShortTextInputProps,
|
||||
ref: React.ForwardedRef<HTMLInputElement>
|
||||
) {
|
||||
|
||||
4
packages/deprecated/bot-engine/src/components/inputs/Textarea.d.ts
vendored
Normal file
4
packages/deprecated/bot-engine/src/components/inputs/Textarea.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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,11 +1,11 @@
|
||||
import { isMobile } from '@/utils/helpers'
|
||||
import React from 'react'
|
||||
import { forwardRef } from 'react'
|
||||
|
||||
type TextareaProps = {
|
||||
onChange: (value: string) => void
|
||||
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>
|
||||
|
||||
export const Textarea = React.forwardRef(function Textarea(
|
||||
export const Textarea = forwardRef(function Textarea(
|
||||
{ onChange, ...props }: TextareaProps,
|
||||
ref: React.ForwardedRef<HTMLTextAreaElement>
|
||||
) {
|
||||
|
||||
8
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/components/AudioBubble.d.ts
vendored
Normal file
8
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/components/AudioBubble.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/components/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/components/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './AudioBubble';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/audio/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './components';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
||||
9
packages/deprecated/bot-engine/src/features/blocks/bubbles/embed/components/EmbedBubble.d.ts
vendored
Normal file
9
packages/deprecated/bot-engine/src/features/blocks/bubbles/embed/components/EmbedBubble.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/embed/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/embed/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { EmbedBubble } from './components/EmbedBubble';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
||||
10
packages/deprecated/bot-engine/src/features/blocks/bubbles/image/components/ImageBubble.d.ts
vendored
Normal file
10
packages/deprecated/bot-engine/src/features/blocks/bubbles/image/components/ImageBubble.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/image/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/image/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { ImageBubble } from './components/ImageBubble';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
||||
@@ -0,0 +1,9 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/textBubble/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/textBubble/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { TextBubble } from './components/TextBubble';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
|
||||
@@ -0,0 +1,8 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
10
packages/deprecated/bot-engine/src/features/blocks/bubbles/video/components/VideoBubble.d.ts
vendored
Normal file
10
packages/deprecated/bot-engine/src/features/blocks/bubbles/video/components/VideoBubble.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/video/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/bubbles/video/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { VideoBubble } from './components/VideoBubble';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
||||
9
packages/deprecated/bot-engine/src/features/blocks/inputs/buttons/components/ChoiceForm.d.ts
vendored
Normal file
9
packages/deprecated/bot-engine/src/features/blocks/inputs/buttons/components/ChoiceForm.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
@@ -3,7 +3,7 @@ import { useAnswers } from '@/providers/AnswersProvider'
|
||||
import { useTypebot } from '@/providers/TypebotProvider'
|
||||
import { InputSubmitContent } from '@/types'
|
||||
import { ChoiceInputBlock } from '@typebot.io/schemas'
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { SendButton } from '../../../../../components/SendButton'
|
||||
|
||||
type ChoiceFormProps = {
|
||||
|
||||
2
packages/deprecated/bot-engine/src/features/blocks/inputs/buttons/index.d.ts
vendored
Normal file
2
packages/deprecated/bot-engine/src/features/blocks/inputs/buttons/index.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { ChoiceForm } from './components/ChoiceForm';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA"}
|
||||
9
packages/deprecated/bot-engine/src/features/blocks/inputs/date/components/DateForm.d.ts
vendored
Normal file
9
packages/deprecated/bot-engine/src/features/blocks/inputs/date/components/DateForm.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
3
packages/deprecated/bot-engine/src/features/blocks/inputs/date/index.d.ts
vendored
Normal file
3
packages/deprecated/bot-engine/src/features/blocks/inputs/date/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { DateForm } from './components/DateForm';
|
||||
export { parseReadableDate } from './utils/parseReadableDate';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
7
packages/deprecated/bot-engine/src/features/blocks/inputs/date/utils/parseReadableDate.d.ts
vendored
Normal file
7
packages/deprecated/bot-engine/src/features/blocks/inputs/date/utils/parseReadableDate.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare const parseReadableDate: ({ from, to, hasTime, isRange, }: {
|
||||
from: string;
|
||||
to: string;
|
||||
hasTime?: boolean;
|
||||
isRange?: boolean;
|
||||
}) => string;
|
||||
//# sourceMappingURL=parseReadableDate.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
11
packages/deprecated/bot-engine/src/features/blocks/inputs/email/components/EmailInput.d.ts
vendored
Normal file
11
packages/deprecated/bot-engine/src/features/blocks/inputs/email/components/EmailInput.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
{"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"}
|
||||
@@ -2,7 +2,7 @@ import { ShortTextInput } from '@/components/inputs/ShortTextInput'
|
||||
import { SendButton } from '@/components/SendButton'
|
||||
import { InputSubmitContent } from '@/types'
|
||||
import { EmailInputBlock } from '@typebot.io/schemas'
|
||||
import React, { MutableRefObject, useRef, useState } from 'react'
|
||||
import { MutableRefObject, useRef, useState } from 'react'
|
||||
|
||||
type EmailInputProps = {
|
||||
block: EmailInputBlock
|
||||
|
||||
3
packages/deprecated/bot-engine/src/features/blocks/inputs/email/index.d.ts
vendored
Normal file
3
packages/deprecated/bot-engine/src/features/blocks/inputs/email/index.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { EmailInput } from './components/EmailInput';
|
||||
export { validateEmail } from './utils/validateEmail';
|
||||
//# 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