2
0

feat(theme): Add chat theme settings

This commit is contained in:
Baptiste Arnaud
2022-01-24 15:07:09 +01:00
parent 619d10ae4e
commit b0abe5b8fa
37 changed files with 771 additions and 375 deletions

View File

@ -2,10 +2,7 @@ import {
Block,
TextBubbleStep,
PublicTypebot,
BackgroundType,
Settings,
StartStep,
Theme,
BubbleStepType,
InputStepType,
ChoiceInputStep,
@ -216,19 +213,6 @@ export const parseNewTypebot = ({
graphCoordinates: { x: 0, y: 0 },
stepIds: [startStepId],
}
const theme: Theme = {
general: {
font: 'Open Sans',
background: { type: BackgroundType.NONE, content: '#ffffff' },
},
}
const settings: Settings = {
typingEmulation: {
enabled: true,
speed: 300,
maxDelay: 1.5,
},
}
return {
folderId,
name,
@ -239,8 +223,6 @@ export const parseNewTypebot = ({
variables: { byId: {}, allIds: [] },
edges: { byId: {}, allIds: [] },
webhooks: { byId: {}, allIds: [] },
theme,
settings,
}
}