@botpress/webchat 2.2.20 → 2.3.1
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/.turbo/turbo-build.log +8 -8
- package/dist/adapters/adapters/webchat-to-target.d.ts +46 -0
- package/dist/adapters/webchat.d.ts +816 -0
- package/dist/client/{PushpinClient/index.d.ts → client.d.ts} +6 -5
- package/dist/client/index.d.ts +1 -2
- package/dist/client/{PushpinClient/inner-client → inner-client}/index.d.ts +3 -3
- package/dist/client/{PushpinClient/inner-client → inner-client}/signal-listener.d.ts +1 -1
- package/dist/client/types.d.ts +3 -26
- package/dist/components/Block.d.ts +1 -1
- package/dist/components/Message/Message.d.ts +4 -2
- package/dist/components/renderers/Audio/Audio.d.ts +3 -1
- package/dist/components/renderers/Bubble/Bubble.d.ts +2 -2
- package/dist/components/renderers/Button/Button.d.ts +2 -2
- package/dist/components/renderers/Carousel/Carousel.d.ts +3 -1
- package/dist/components/renderers/Column/Column.d.ts +2 -2
- package/dist/components/renderers/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/renderers/File/File.d.ts +3 -1
- package/dist/components/renderers/Image/Image.d.ts +3 -1
- package/dist/components/renderers/Location/Location.d.ts +3 -1
- package/dist/components/renderers/Row/Row.d.ts +2 -2
- package/dist/components/renderers/Text/Text.d.ts +2 -2
- package/dist/components/renderers/Video/Video.d.ts +3 -1
- package/dist/gen/client/models.d.ts +57 -48
- package/dist/gen/client/operations/createMessage.d.ts +114 -96
- package/dist/gen/client/operations/getMessage.d.ts +57 -48
- package/dist/gen/client/operations/listConversationMessages.d.ts +57 -48
- package/dist/gen/signals/index.d.ts +409 -94
- package/dist/gen/signals/messageCreated.t.d.ts +57 -48
- package/dist/gen/signals/messageCreated.z.d.ts +408 -86
- package/dist/get-client.d.ts +1 -2
- package/dist/hooks/useClient.d.ts +1 -2
- package/dist/index.js +12137 -14521
- package/dist/index.umd.cjs +88 -88
- package/dist/schemas/init.d.ts +0 -7
- package/dist/stores/offlineStore.d.ts +1 -1
- package/dist/stores/webchatStore.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/styles/classes.d.ts +22 -22
- package/dist/types/block-type.d.ts +16 -14
- package/dist/types/init.d.ts +0 -1
- package/openapi.ts +1 -1
- package/package.json +3 -2
- package/dist/client/MessagingClient/client.d.ts +0 -35
- package/dist/client/MessagingClient/index.d.ts +0 -1
- package/dist/gen/signals/custom.j.d.ts +0 -3
- package/dist/gen/signals/messageCreated.j.d.ts +0 -3
- package/dist/gen/signals/typingStarted.j.d.ts +0 -3
- package/dist/gen/signals/typingStopped.j.d.ts +0 -3
- package/dist/gen/signals/webchatConfig.j.d.ts +0 -3
- package/dist/gen/signals/webchatVisibility.j.d.ts +0 -3
- /package/dist/client/{PushpinClient/inner-client → inner-client}/event-emitter.d.ts +0 -0
- /package/dist/client/{PushpinClient/inner-client → inner-client}/eventsource.d.ts +0 -0
- /package/dist/client/{PushpinClient/state-machine.d.ts → state-machine.d.ts} +0 -0
|
@@ -17,10 +17,6 @@ export interface MessageCreated {
|
|
|
17
17
|
*/
|
|
18
18
|
payload: {
|
|
19
19
|
audioUrl: string;
|
|
20
|
-
/**
|
|
21
|
-
* CSS className to apply to the message
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
20
|
type: "audio";
|
|
25
21
|
[k: string]: any;
|
|
26
22
|
} | {
|
|
@@ -34,10 +30,6 @@ export interface MessageCreated {
|
|
|
34
30
|
[k: string]: any;
|
|
35
31
|
}[];
|
|
36
32
|
type: "card";
|
|
37
|
-
/**
|
|
38
|
-
* CSS className to apply to the message
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
33
|
[k: string]: any;
|
|
42
34
|
} | {
|
|
43
35
|
items: {
|
|
@@ -50,16 +42,8 @@ export interface MessageCreated {
|
|
|
50
42
|
value: string;
|
|
51
43
|
[k: string]: any;
|
|
52
44
|
}[];
|
|
53
|
-
/**
|
|
54
|
-
* CSS className to apply to the message
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
45
|
[k: string]: any;
|
|
58
46
|
}[];
|
|
59
|
-
/**
|
|
60
|
-
* CSS className to apply to the message
|
|
61
|
-
*/
|
|
62
|
-
className?: string;
|
|
63
47
|
type: "carousel";
|
|
64
48
|
[k: string]: any;
|
|
65
49
|
} | {
|
|
@@ -69,10 +53,6 @@ export interface MessageCreated {
|
|
|
69
53
|
value: string;
|
|
70
54
|
[k: string]: any;
|
|
71
55
|
}[];
|
|
72
|
-
/**
|
|
73
|
-
* CSS className to apply to the message
|
|
74
|
-
*/
|
|
75
|
-
className?: string;
|
|
76
56
|
type: "choice";
|
|
77
57
|
disableFreeText?: boolean;
|
|
78
58
|
[k: string]: any;
|
|
@@ -83,27 +63,15 @@ export interface MessageCreated {
|
|
|
83
63
|
value: string;
|
|
84
64
|
[k: string]: any;
|
|
85
65
|
}[];
|
|
86
|
-
/**
|
|
87
|
-
* CSS className to apply to the message
|
|
88
|
-
*/
|
|
89
|
-
className?: string;
|
|
90
66
|
type: "dropdown";
|
|
91
67
|
[k: string]: any;
|
|
92
68
|
} | {
|
|
93
69
|
fileUrl: string;
|
|
94
70
|
title?: string;
|
|
95
|
-
/**
|
|
96
|
-
* CSS className to apply to the message
|
|
97
|
-
*/
|
|
98
|
-
className?: string;
|
|
99
71
|
type: "file";
|
|
100
72
|
[k: string]: any;
|
|
101
73
|
} | {
|
|
102
74
|
imageUrl: string;
|
|
103
|
-
/**
|
|
104
|
-
* CSS className to apply to the message
|
|
105
|
-
*/
|
|
106
|
-
className?: string;
|
|
107
75
|
type: "image";
|
|
108
76
|
[k: string]: any;
|
|
109
77
|
} | {
|
|
@@ -111,36 +79,77 @@ export interface MessageCreated {
|
|
|
111
79
|
longitude: number;
|
|
112
80
|
address?: string;
|
|
113
81
|
title?: string;
|
|
114
|
-
/**
|
|
115
|
-
* CSS className to apply to the message
|
|
116
|
-
*/
|
|
117
|
-
className?: string;
|
|
118
82
|
type: "location";
|
|
119
83
|
[k: string]: any;
|
|
120
84
|
} | {
|
|
121
85
|
markdown: string;
|
|
122
|
-
/**
|
|
123
|
-
* CSS className to apply to the message
|
|
124
|
-
*/
|
|
125
|
-
className?: string;
|
|
126
86
|
type: "markdown";
|
|
127
87
|
[k: string]: any;
|
|
128
88
|
} | {
|
|
129
89
|
text: string;
|
|
130
|
-
/**
|
|
131
|
-
* CSS className to apply to the message
|
|
132
|
-
*/
|
|
133
|
-
className?: string;
|
|
134
90
|
type: "text";
|
|
135
91
|
[k: string]: any;
|
|
136
92
|
} | {
|
|
137
93
|
videoUrl: string;
|
|
138
|
-
/**
|
|
139
|
-
* CSS className to apply to the message
|
|
140
|
-
*/
|
|
141
|
-
className?: string;
|
|
142
94
|
type: "video";
|
|
143
95
|
[k: string]: any;
|
|
96
|
+
} | {
|
|
97
|
+
items: ({
|
|
98
|
+
type: "text";
|
|
99
|
+
payload: {
|
|
100
|
+
text: string;
|
|
101
|
+
[k: string]: any;
|
|
102
|
+
};
|
|
103
|
+
[k: string]: any;
|
|
104
|
+
} | {
|
|
105
|
+
type: "markdown";
|
|
106
|
+
payload: {
|
|
107
|
+
markdown: string;
|
|
108
|
+
[k: string]: any;
|
|
109
|
+
};
|
|
110
|
+
[k: string]: any;
|
|
111
|
+
} | {
|
|
112
|
+
type: "image";
|
|
113
|
+
payload: {
|
|
114
|
+
imageUrl: string;
|
|
115
|
+
[k: string]: any;
|
|
116
|
+
};
|
|
117
|
+
[k: string]: any;
|
|
118
|
+
} | {
|
|
119
|
+
type: "audio";
|
|
120
|
+
payload: {
|
|
121
|
+
audioUrl: string;
|
|
122
|
+
[k: string]: any;
|
|
123
|
+
};
|
|
124
|
+
[k: string]: any;
|
|
125
|
+
} | {
|
|
126
|
+
type: "video";
|
|
127
|
+
payload: {
|
|
128
|
+
videoUrl: string;
|
|
129
|
+
[k: string]: any;
|
|
130
|
+
};
|
|
131
|
+
[k: string]: any;
|
|
132
|
+
} | {
|
|
133
|
+
type: "file";
|
|
134
|
+
payload: {
|
|
135
|
+
fileUrl: string;
|
|
136
|
+
title?: string;
|
|
137
|
+
[k: string]: any;
|
|
138
|
+
};
|
|
139
|
+
[k: string]: any;
|
|
140
|
+
} | {
|
|
141
|
+
type: "location";
|
|
142
|
+
payload: {
|
|
143
|
+
latitude: number;
|
|
144
|
+
longitude: number;
|
|
145
|
+
address?: string;
|
|
146
|
+
title?: string;
|
|
147
|
+
[k: string]: any;
|
|
148
|
+
};
|
|
149
|
+
[k: string]: any;
|
|
150
|
+
})[];
|
|
151
|
+
type: "bloc";
|
|
152
|
+
[k: string]: any;
|
|
144
153
|
};
|
|
145
154
|
/**
|
|
146
155
|
* ID of the [User](#schema_user)
|