@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.
- package/dist/cjs/components/chat/action.d.ts +2 -2
- package/dist/cjs/components/chat/action.js +1 -1
- package/dist/cjs/components/chat/action.js.map +1 -1
- package/dist/cjs/components/chat/index.d.ts +2 -2
- package/dist/cjs/components/chat/index.js +2 -2
- package/dist/cjs/components/chat/index.js.map +1 -1
- package/dist/cjs/stories/chat.stories.js +1 -1
- package/dist/cjs/stories/chat.stories.js.map +2 -2
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/components/chat/action.d.ts +2 -2
- package/dist/esm/components/chat/action.js +1 -1
- package/dist/esm/components/chat/action.js.map +1 -1
- package/dist/esm/components/chat/index.d.ts +2 -2
- package/dist/esm/components/chat/index.js +2 -2
- package/dist/esm/components/chat/index.js.map +1 -1
- package/dist/esm/stories/chat.stories.js +1 -1
- package/dist/esm/stories/chat.stories.js.map +2 -2
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/src/components/chat/action.tsx +2 -2
- package/src/components/chat/index.tsx +2 -2
- package/src/stories/chat.stories.tsx +1 -1
- package/style.css +14 -708
|
@@ -12,8 +12,8 @@ interface Message {
|
|
|
12
12
|
export interface ActionProps {
|
|
13
13
|
start?: string
|
|
14
14
|
history: Message[]
|
|
15
|
-
buynowRender?: string | ((_props: any) =>
|
|
16
|
-
signupRender?: string | ((_props: any) =>
|
|
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) =>
|
|
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) =>
|
|
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: '
|
|
38
|
+
user_id: 'ar_411',
|
|
39
39
|
query: '',
|
|
40
40
|
lang: { popupTip: 'Hi ! Welcome to soundcore Innovations live chat!' },
|
|
41
41
|
},
|