@anker-in/campaign-ui 0.0.33-alpha1 → 0.0.33-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,8 @@ interface Message {
12
12
  export interface ActionProps {
13
13
  start?: string
14
14
  history: Message[]
15
- buynowRender?: string | ((_props: any) => string)
16
- signupRender?: string | ((_props: any) => string)
15
+ buynowRender?: string | ((_props: any) => React.ReactElement)
16
+ signupRender?: string | ((_props: any) => React.ReactElement)
17
17
  children?: React.ReactNode
18
18
  }
19
19
 
@@ -20,11 +20,11 @@ export interface ChatProps {
20
20
  /** 产品卡片,接受参数: {"status":"complete","args":[{"sku":"A3936031","handle":"space-a40-a3936031"}],"result":""}
21
21
  * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
22
22
  */
23
- buynowRender?: string | ((_props: any) => string)
23
+ buynowRender?: string | ((_props: any) => React.ReactElement)
24
24
  /** 订阅卡片,接受参数:
25
25
  * 后端接口文档:https://anker-in.feishu.cn/wiki/DOYJwE9oxipWmYk072ncnJNznBb
26
26
  */
27
- signupRender?: string | ((_props: any) => string)
27
+ signupRender?: string | ((_props: any) => React.ReactElement)
28
28
  /** CopilotPopup 自定义参数,参考:https://docs.copilotkit.ai/reference/components/CopilotPopup */
29
29
  popup?: any
30
30
  /** 文案,{"popupTip": "Hi ! Welcome to soundcore Innovations live chat!"} */
@@ -35,7 +35,7 @@ export const Default: Story = {
35
35
  title: 'DTC Live Chat',
36
36
  runtimeUrl: 'https://beta-dtcapi.anker.com',
37
37
  shopify_domain: 'soundcoreusa.myshopify.com',
38
- user_id: 'ar_4',
38
+ user_id: 'ar_411',
39
39
  query: '',
40
40
  lang: { popupTip: 'Hi ! Welcome to soundcore Innovations live chat!' },
41
41
  },