feat: add web channel configuration support and update widget response structure

This commit is contained in:
mlogclub
2026-04-24 22:24:19 +08:00
parent a262a865a0
commit ea94837db2
9 changed files with 400 additions and 114 deletions
+3
View File
@@ -103,10 +103,13 @@ export type ImAsset = {
}
export type ImWidgetConfig = {
channelId?: string
title?: string
subtitle?: string
welcomeText?: string
themeColor?: string
position?: "left" | "right"
width?: string
}
const VISITOR_STORAGE_KEY = "cs_agent_im_visitor_id"