feat(bubbles): ✨ Add image bubble
This commit is contained in:
@ -1,12 +1,28 @@
|
||||
import { StepBase } from '.'
|
||||
|
||||
export type BubbleStep = TextStep
|
||||
export type BubbleStep = TextBubbleStep | ImageBubbleStep
|
||||
|
||||
export enum BubbleStepType {
|
||||
TEXT = 'text',
|
||||
IMAGE = 'image',
|
||||
}
|
||||
|
||||
export type TextStep = StepBase & {
|
||||
export type TextBubbleStep = StepBase & {
|
||||
type: BubbleStepType.TEXT
|
||||
content: { html: string; richText: unknown[]; plainText: string }
|
||||
content: TextBubbleContent
|
||||
}
|
||||
|
||||
export type ImageBubbleStep = StepBase & {
|
||||
type: BubbleStepType.IMAGE
|
||||
content?: ImageBubbleContent
|
||||
}
|
||||
|
||||
export type TextBubbleContent = {
|
||||
html: string
|
||||
richText: unknown[]
|
||||
plainText: string
|
||||
}
|
||||
|
||||
export type ImageBubbleContent = {
|
||||
url?: string
|
||||
}
|
||||
|
Reference in New Issue
Block a user