♻️ Remove @typebot.io/schemas from @typebot.io/lib
This commit is contained in:
@@ -19,7 +19,7 @@ import { RatingForm } from '@/features/blocks/inputs/rating'
|
||||
import { FileUploadForm } from '@/features/blocks/inputs/fileUpload'
|
||||
import { defaultSettings } from '@typebot.io/schemas/features/typebot/settings/constants'
|
||||
import { InputBlockType } from '@typebot.io/schemas/features/blocks/inputs/constants'
|
||||
import { getBlockById } from '@typebot.io/lib/getBlockById'
|
||||
import { getBlockById } from '@typebot.io/schemas/helpers'
|
||||
|
||||
export const InputChatBlock = ({
|
||||
block,
|
||||
|
||||
@@ -2,16 +2,15 @@ import { useEffect, useRef, useState } from 'react'
|
||||
import { TransitionGroup, CSSTransition } from 'react-transition-group'
|
||||
import { AvatarSideContainer } from './AvatarSideContainer'
|
||||
import { LinkedTypebot, useTypebot } from '../../providers/TypebotProvider'
|
||||
import { isDefined, byId } from '@typebot.io/lib'
|
||||
import {
|
||||
isBubbleBlock,
|
||||
isBubbleBlockType,
|
||||
isChoiceInput,
|
||||
isDefined,
|
||||
isInputBlock,
|
||||
isIntegrationBlock,
|
||||
isLogicBlock,
|
||||
byId,
|
||||
} from '@typebot.io/lib'
|
||||
} from '@typebot.io/schemas/helpers'
|
||||
import {
|
||||
BubbleBlock,
|
||||
InputBlock,
|
||||
@@ -30,7 +29,7 @@ import { executeLogic } from '@/utils/executeLogic'
|
||||
import { blockCanBeRetried, parseRetryBlock } from '@/utils/inputs'
|
||||
import { PopupBlockedToast } from '../PopupBlockedToast'
|
||||
import { LogicBlockType } from '@typebot.io/schemas/features/blocks/logic/constants'
|
||||
import { getBlockById } from '@typebot.io/lib/getBlockById'
|
||||
import { getBlockById } from '@typebot.io/schemas/helpers'
|
||||
|
||||
type ChatGroupProps = {
|
||||
blocks: Block[]
|
||||
|
||||
@@ -8,7 +8,8 @@ import {
|
||||
Theme,
|
||||
VariableWithValue,
|
||||
} from '@typebot.io/schemas'
|
||||
import { byId, isDefined, isInputBlock, isNotDefined } from '@typebot.io/lib'
|
||||
import { byId, isDefined, isNotDefined } from '@typebot.io/lib'
|
||||
import { isInputBlock } from '@typebot.io/schemas/helpers'
|
||||
import { animateScroll as scroll } from 'react-scroll'
|
||||
import { LinkedTypebot, useTypebot } from '@/providers/TypebotProvider'
|
||||
import { setCssVariablesValue } from '@/features/theme'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BubbleBlock, InputBlock, Block } from '@typebot.io/schemas'
|
||||
import { isBubbleBlock, isInputBlock } from '@typebot.io/lib'
|
||||
import { isInputBlock, isBubbleBlock } from '@typebot.io/schemas/helpers'
|
||||
import type { TypebotPostMessageData } from 'typebot-js'
|
||||
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
|
||||
import { InputBlockType } from '@typebot.io/schemas/features/blocks/inputs/constants'
|
||||
|
||||
@@ -11,7 +11,8 @@ import {
|
||||
UrlInputBlock,
|
||||
Variable,
|
||||
} from '@typebot.io/schemas'
|
||||
import { isDefined, isInputBlock } from '@typebot.io/lib'
|
||||
import { isDefined } from '@typebot.io/lib'
|
||||
import { isInputBlock } from '@typebot.io/schemas/helpers'
|
||||
import { InputBlockType } from '@typebot.io/schemas/features/blocks/inputs/constants'
|
||||
import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/constants'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user