@yartsun/chat-widget-types 1.0.15 → 1.0.17
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/README.md +20 -0
- package/dist/config.types.d.ts +46 -9
- package/dist/config.types.d.ts.map +1 -1
- package/dist/default-config.d.ts +1 -1
- package/dist/default-config.d.ts.map +1 -1
- package/dist/default-config.js +2 -319
- package/dist/default-config.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/migration/commands.d.ts +1 -0
- package/dist/migration/commands.d.ts.map +1 -1
- package/dist/migration/commands.js +58 -2
- package/dist/migration/commands.js.map +1 -1
- package/dist/migration/examples.d.ts +1 -1
- package/dist/migration/facade.d.ts +8 -0
- package/dist/migration/facade.d.ts.map +1 -1
- package/dist/migration/facade.js +22 -2
- package/dist/migration/facade.js.map +1 -1
- package/dist/migration/migrator.d.ts +1 -0
- package/dist/migration/migrator.d.ts.map +1 -1
- package/dist/migration/migrator.js +23 -4
- package/dist/migration/migrator.js.map +1 -1
- package/dist/migration/strategies.d.ts +52 -0
- package/dist/migration/strategies.d.ts.map +1 -1
- package/dist/migration/strategies.js +277 -4
- package/dist/migration/strategies.js.map +1 -1
- package/dist/migration/types.d.ts +9 -1
- package/dist/migration/types.d.ts.map +1 -1
- package/dist/migration/types.js +7 -1
- package/dist/migration/types.js.map +1 -1
- package/package.json +25 -2
- package/src/config.types.ts +50 -10
- package/src/default-config.ts +3 -329
- package/src/index.ts +5 -3
- package/src/migration/commands.ts +65 -2
- package/src/migration/facade.ts +23 -2
- package/src/migration/migrator.ts +22 -6
- package/src/migration/strategies.ts +291 -4
- package/src/migration/types.ts +11 -1
- package/themes/configV3-shine.json +369 -0
- package/themes/configV3-soft.json +369 -0
- package/themes/configV3-ultra.json +369 -0
- package/themes/configV3.json +370 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": {
|
|
3
|
+
"required": [
|
|
4
|
+
"settings",
|
|
5
|
+
"texts",
|
|
6
|
+
"sections"
|
|
7
|
+
],
|
|
8
|
+
"version": "3.1"
|
|
9
|
+
},
|
|
10
|
+
"sections": {
|
|
11
|
+
"bottom": {
|
|
12
|
+
"btnSend": {
|
|
13
|
+
"bgColor": "#1F7443",
|
|
14
|
+
"borderColor": "#595959",
|
|
15
|
+
"borderRadius": 50,
|
|
16
|
+
"borderWidth": 0,
|
|
17
|
+
"color": "#FFFFFF",
|
|
18
|
+
"fontSize": 11,
|
|
19
|
+
"icon": {
|
|
20
|
+
"color": "#fff",
|
|
21
|
+
"showIcon": true,
|
|
22
|
+
"size": 17,
|
|
23
|
+
"src": "<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.5525 6.38248L7.13245 3.17248C2.81995 1.01248 1.04995 2.78248 3.20995 7.09498L3.86245 8.39998C4.04995 8.78248 4.04995 9.22498 3.86245 9.60748L3.20995 10.905C1.04995 15.2175 2.81245 16.9875 7.13245 14.8275L13.5525 11.6175C16.4325 10.1775 16.4325 7.82248 13.5525 6.38248ZM11.13 9.56248H7.07995C6.77245 9.56248 6.51745 9.30748 6.51745 8.99998C6.51745 8.69248 6.77245 8.43748 7.07995 8.43748H11.13C11.4375 8.43748 11.6925 8.69248 11.6925 8.99998C11.6925 9.30748 11.4375 9.56248 11.13 9.56248Z\" fill=\"currentColor\"/>\n</svg>\n"
|
|
24
|
+
},
|
|
25
|
+
"showType": "icon",
|
|
26
|
+
"size": "lg"
|
|
27
|
+
},
|
|
28
|
+
"btnVoice": {
|
|
29
|
+
"bgColor": "#212121",
|
|
30
|
+
"borderRadius": 50,
|
|
31
|
+
"borderColor": "#595959",
|
|
32
|
+
"borderWidth": 2,
|
|
33
|
+
"color": "#FFFFFF",
|
|
34
|
+
"fontSize": 14,
|
|
35
|
+
"icon": {
|
|
36
|
+
"color": "#fff",
|
|
37
|
+
"showIcon": true,
|
|
38
|
+
"size": 19,
|
|
39
|
+
"src": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7.99997 1.40002C8.39394 1.40002 8.78405 1.47762 9.14802 1.62839C9.512 1.77915 9.84272 2.00013 10.1213 2.2787C10.3999 2.55728 10.6208 2.888 10.7716 3.25197C10.9224 3.61595 11 4.00606 11 4.40002V8.00002C11 8.79567 10.6839 9.55874 10.1213 10.1213C9.55869 10.684 8.79562 11 7.99997 11C7.20432 11 6.44126 10.684 5.87865 10.1213C5.31604 9.55874 4.99997 8.79567 4.99997 8.00002V4.40002C4.99997 3.60437 5.31604 2.84131 5.87865 2.2787C6.44126 1.71609 7.20432 1.40002 7.99997 1.40002V1.40002ZM2.11517 9.17722L3.29237 8.94142C3.51101 10.0289 4.09939 11.0071 4.95756 11.7099C5.81573 12.4127 6.89075 12.7968 7.99997 12.7968C9.1092 12.7968 10.1842 12.4127 11.0424 11.7099C11.9006 11.0071 12.4889 10.0289 12.7076 8.94142L13.8848 9.17722C13.3376 11.927 10.91 14 7.99997 14C5.08997 14 2.66237 11.927 2.11517 9.17722Z\" fill=\"currentColor\">\n</svg>\n"
|
|
40
|
+
},
|
|
41
|
+
"showType": "icon",
|
|
42
|
+
"size": "sm"
|
|
43
|
+
},
|
|
44
|
+
"disclaimer": {
|
|
45
|
+
"bgColor": "#FF0000",
|
|
46
|
+
"color": "#4C4C4C",
|
|
47
|
+
"fontSize": 11,
|
|
48
|
+
"height": 29
|
|
49
|
+
},
|
|
50
|
+
"inputSend": {
|
|
51
|
+
"bgColor": "#0E0E0E",
|
|
52
|
+
"bgType": "plain",
|
|
53
|
+
"borderColor": "#292929",
|
|
54
|
+
"borderRadius": 8,
|
|
55
|
+
"borderWidth": 1,
|
|
56
|
+
"color": "#EEECEC",
|
|
57
|
+
"fontSize": 12,
|
|
58
|
+
"inputStyle": "stacked",
|
|
59
|
+
"paddingHorizontal": 8,
|
|
60
|
+
"paddingVertical": 8,
|
|
61
|
+
"sidePadding": 8,
|
|
62
|
+
"size": "lg"
|
|
63
|
+
},
|
|
64
|
+
"params": {
|
|
65
|
+
"disclaimerShow": true,
|
|
66
|
+
"size": "md"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"colapsed": {
|
|
70
|
+
"bgColor": "#7D52F4",
|
|
71
|
+
"borderColor": "rgba(29, 29, 31, 0.90)",
|
|
72
|
+
"borderRadius": 50,
|
|
73
|
+
"borderWidth": 8,
|
|
74
|
+
"color": "#fff",
|
|
75
|
+
"height": 56,
|
|
76
|
+
"icon": {
|
|
77
|
+
"showIcon": true,
|
|
78
|
+
"size": 18
|
|
79
|
+
},
|
|
80
|
+
"logo": "<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.22048 12.26L8.71413 11.1293C9.1535 10.1231 9.94426 9.32209 10.9307 8.88424L12.2895 8.28107C12.7215 8.08931 12.7215 7.46082 12.2895 7.26906L10.9731 6.68472C9.9613 6.23561 9.15637 5.40496 8.72453 4.3644L8.22447 3.15941C8.0389 2.71224 7.42105 2.71224 7.23548 3.15941L6.7354 4.36439C6.30357 5.40496 5.49861 6.23561 4.48686 6.68472L3.17045 7.26906C2.73843 7.46082 2.73843 8.08931 3.17045 8.28107L4.5293 8.88424C5.51569 9.32209 6.30646 10.1231 6.7458 11.1293L7.23948 12.26C7.42924 12.6946 8.03069 12.6946 8.22048 12.26ZM13.1632 15.0131L13.302 14.6949C13.5495 14.1275 13.9953 13.6758 14.5515 13.4287L14.9792 13.2386C15.2106 13.1358 15.2106 12.7996 14.9792 12.6969L14.5754 12.5174C14.0049 12.264 13.5511 11.7955 13.3078 11.2089L13.1653 10.865C13.0659 10.6254 12.7346 10.6254 12.6352 10.865L12.4927 11.2089C12.2494 11.7955 11.7957 12.264 11.2251 12.5174L10.8213 12.6969C10.59 12.7996 10.59 13.1358 10.8213 13.2386L11.249 13.4287C11.8053 13.6758 12.251 14.1275 12.4985 14.6949L12.6374 15.0131C12.739 15.246 13.0615 15.246 13.1632 15.0131Z\" fill=\"currentColor\"/></svg>",
|
|
81
|
+
"width": 56
|
|
82
|
+
},
|
|
83
|
+
"inside": {
|
|
84
|
+
"activeSnippet": {
|
|
85
|
+
"element": {
|
|
86
|
+
"bgColor": "#373739",
|
|
87
|
+
"borderColor": "#595959",
|
|
88
|
+
"borderRadius": 12,
|
|
89
|
+
"borderWidth": 1,
|
|
90
|
+
"color": "#fff",
|
|
91
|
+
"fontSize": 12,
|
|
92
|
+
"sidePadding": 8,
|
|
93
|
+
"verticalSpacing": 8
|
|
94
|
+
},
|
|
95
|
+
"headerChip": {
|
|
96
|
+
"bgColor": "#69696A",
|
|
97
|
+
"bgType": "filled",
|
|
98
|
+
"borderRadius": 12,
|
|
99
|
+
"color": "#fff",
|
|
100
|
+
"fontSize": 12,
|
|
101
|
+
"size": "md"
|
|
102
|
+
},
|
|
103
|
+
"noButton": {
|
|
104
|
+
"bgColor": "#C20E4D",
|
|
105
|
+
"borderRadius": 12,
|
|
106
|
+
"color": "#fff",
|
|
107
|
+
"fontSize": 12
|
|
108
|
+
},
|
|
109
|
+
"params": {
|
|
110
|
+
"buttonStyle": "filled",
|
|
111
|
+
"buttonType": "both",
|
|
112
|
+
"size": "md"
|
|
113
|
+
},
|
|
114
|
+
"propertyColor": "rgba(255, 255, 255, 0.30)",
|
|
115
|
+
"valueColor": "#fff",
|
|
116
|
+
"yesButton": {
|
|
117
|
+
"bgColor": "#12A150",
|
|
118
|
+
"borderRadius": 12,
|
|
119
|
+
"color": "#fff",
|
|
120
|
+
"fontSize": 12
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"dataAction": {
|
|
124
|
+
"activeStepColor": "#FFFFFF",
|
|
125
|
+
"bodyFillColor": "#207443",
|
|
126
|
+
"headerFillColor": "#1F7443",
|
|
127
|
+
"headerText": "Talking to the data",
|
|
128
|
+
"pastStepColor": "#88F5B6",
|
|
129
|
+
"strokeColor": "#398A5B",
|
|
130
|
+
"type": "box"
|
|
131
|
+
},
|
|
132
|
+
"messageBot": {
|
|
133
|
+
"bgColor": "#1F7443",
|
|
134
|
+
"bgType": "bubble",
|
|
135
|
+
"borderColor": "#29804E",
|
|
136
|
+
"borderRadius": 12,
|
|
137
|
+
"borderWidth": 1,
|
|
138
|
+
"color": "#fff",
|
|
139
|
+
"fontSize": 14,
|
|
140
|
+
"size": "md"
|
|
141
|
+
},
|
|
142
|
+
"messageUser": {
|
|
143
|
+
"bgColor": "#4C4C4C",
|
|
144
|
+
"bgType": "bubble",
|
|
145
|
+
"borderColor": "#595959",
|
|
146
|
+
"borderRadius": 12,
|
|
147
|
+
"borderWidth": 1,
|
|
148
|
+
"color": "#F9F8F8",
|
|
149
|
+
"fontSize": 14,
|
|
150
|
+
"size": "md"
|
|
151
|
+
},
|
|
152
|
+
"params": {
|
|
153
|
+
"sidePadding": 8,
|
|
154
|
+
"size": "md",
|
|
155
|
+
"verticalPadding": 8
|
|
156
|
+
},
|
|
157
|
+
"welcomeMessage": {
|
|
158
|
+
"bgColor": "#292929",
|
|
159
|
+
"bgType": "bubble",
|
|
160
|
+
"borderColor": "#4C4C4C",
|
|
161
|
+
"borderRadius": 11,
|
|
162
|
+
"borderWidth": 1,
|
|
163
|
+
"color": "#fff",
|
|
164
|
+
"fontSize": 12,
|
|
165
|
+
"size": "md"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"loader": {
|
|
169
|
+
"activeStep": {
|
|
170
|
+
"color": "#FFF",
|
|
171
|
+
"fontSize": 12,
|
|
172
|
+
"icon": {
|
|
173
|
+
"color": "#88F5B6",
|
|
174
|
+
"showIcon": true,
|
|
175
|
+
"size": 16,
|
|
176
|
+
"src": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 1.16797C13.32 1.16797 16.832 4.67995 16.832 9C16.832 12.5505 14.4412 15.664 11.0107 16.5723C10.9693 16.579 10.9352 16.584 10.9121 16.584C10.7652 16.5838 10.6279 16.4859 10.5879 16.3379C10.5432 16.1561 10.6488 15.976 10.8232 15.9277L10.8223 15.9268C13.9682 15.0971 16.1611 12.2463 16.1611 8.99219C16.161 5.03988 12.9445 1.82422 8.99219 1.82422C5.64852 1.82434 3.46048 3.77824 2.44336 4.94824L2.11133 5.33105H4.82227C5.00218 5.33105 5.15408 5.48223 5.1543 5.66211C5.1543 5.85227 5.00768 6.00191 4.83008 6.00195H1.50781C1.47864 6.00195 1.44847 5.99697 1.41699 5.98828C1.39538 5.9808 1.3755 5.97292 1.35742 5.96387L1.30371 5.93262L1.30469 5.93164L1.29785 5.92773C1.26413 5.9052 1.23598 5.87449 1.21484 5.83691C1.18538 5.77694 1.17193 5.73479 1.16797 5.69727V2.25C1.16797 2.06995 1.31995 1.91797 1.5 1.91797C1.68005 1.91797 1.83203 2.06995 1.83203 2.25V4.62891L2.23145 4.2002C3.42943 2.91402 5.67506 1.16797 9 1.16797Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"0.461538\"/><path d=\"M5.96875 15.8682C6.0377 15.7 6.23467 15.6162 6.39551 15.6797C7.06335 15.9437 7.76904 16.0982 8.48047 16.1523L8.48828 16.1533H8.49316L8.55469 16.1621C8.69343 16.1978 8.79869 16.3289 8.79883 16.4922V16.5078C8.78432 16.6759 8.64442 16.8072 8.48145 16.8145L8.47656 16.8125L8.42969 16.8096C7.65193 16.7586 6.8879 16.584 6.15918 16.2998L6.15723 16.2988L6.1123 16.2783C6.013 16.2206 5.94531 16.1065 5.94531 15.9824C5.94532 15.9653 5.94738 15.9468 5.95117 15.9277L5.96875 15.8682ZM2.62207 12.9619C2.76567 12.8619 2.98634 12.9053 3.07812 13.043L3.08008 13.0459C3.48891 13.6398 3.97606 14.1654 4.54102 14.6074V14.6084C4.61985 14.6734 4.66699 14.7677 4.66699 14.8652C4.66695 14.9478 4.64217 15.0228 4.5957 15.082V15.083C4.53778 15.1575 4.4419 15.2041 4.33496 15.2041C4.27542 15.2041 4.22185 15.1916 4.17285 15.165L4.125 15.1338C3.51383 14.6461 2.98267 14.0705 2.53809 13.4219L2.53711 13.4209C2.4918 13.3554 2.47363 13.2953 2.47363 13.2373C2.47369 13.1255 2.52625 13.0261 2.61816 12.9648L2.62207 12.9619ZM1.5 8.66797C1.68005 8.66797 1.83203 8.81995 1.83203 9C1.83203 9.63062 1.91428 10.2554 2.0752 10.8584L2.14941 11.1152C2.15694 11.1434 2.16209 11.1799 2.16211 11.2197C2.16211 11.3617 2.0747 11.482 1.94043 11.5293C1.89854 11.5394 1.86649 11.5439 1.83008 11.5439C1.67999 11.5439 1.55697 11.4493 1.51953 11.3203L1.51758 11.3164C1.28461 10.5665 1.16797 9.78707 1.16797 9C1.16797 8.81995 1.31995 8.66797 1.5 8.66797Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"0.461538\"/><path d=\"M9 6.23047C10.5294 6.23047 11.7695 7.4706 11.7695 9C11.7695 10.5294 10.5294 11.7695 9 11.7695C7.4706 11.7695 6.23047 10.5294 6.23047 9C6.23047 7.4706 7.4706 6.23047 9 6.23047Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"0.461538\"/></svg>"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"completeStep": {
|
|
180
|
+
"color": "#8E8E8F",
|
|
181
|
+
"fontSize": 12,
|
|
182
|
+
"icon": {
|
|
183
|
+
"color": "#3737A5",
|
|
184
|
+
"showIcon": true,
|
|
185
|
+
"size": 16,
|
|
186
|
+
"src": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 1.5C4.8675 1.5 1.5 4.8675 1.5 9C1.5 13.1325 4.8675 16.5 9 16.5C13.1325 16.5 16.5 13.1325 16.5 9C16.5 4.8675 13.1325 1.5 9 1.5ZM12.585 7.275L8.3325 11.5275C8.2275 11.6325 8.085 11.6925 7.935 11.6925C7.785 11.6925 7.6425 11.6325 7.5375 11.5275L5.415 9.405C5.1975 9.1875 5.1975 8.8275 5.415 8.61C5.6325 8.3925 5.9925 8.3925 6.21 8.61L7.935 10.335L11.79 6.48C12.0075 6.2625 12.3675 6.2625 12.585 6.48C12.8025 6.6975 12.8025 7.05 12.585 7.275Z\" fill=\"currentColor\"/></svg>"
|
|
187
|
+
},
|
|
188
|
+
"verticalSpacing": 8
|
|
189
|
+
},
|
|
190
|
+
"typingLoader": {
|
|
191
|
+
"bgColor": "#2F2F31",
|
|
192
|
+
"color": "#8E8E8F"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"top": {
|
|
196
|
+
"buttons": {
|
|
197
|
+
"bgColor": "#2F2F31",
|
|
198
|
+
"borderRadius": 12,
|
|
199
|
+
"color": "#BBBBBD",
|
|
200
|
+
"showType": "icon"
|
|
201
|
+
},
|
|
202
|
+
"chipWidgetTitle": {
|
|
203
|
+
"bgColor": "#5E4AC6",
|
|
204
|
+
"borderRadius": 12,
|
|
205
|
+
"color": "#4FD74C",
|
|
206
|
+
"showType": "both"
|
|
207
|
+
},
|
|
208
|
+
"params": {
|
|
209
|
+
"bgColor": "#5E4AC6",
|
|
210
|
+
"bgStyle": "invisible",
|
|
211
|
+
"border": {
|
|
212
|
+
"color": "#292929",
|
|
213
|
+
"width": 1
|
|
214
|
+
},
|
|
215
|
+
"borderRadius": 12,
|
|
216
|
+
"buttonStyle": "invisible",
|
|
217
|
+
"chipStyle": "invisible",
|
|
218
|
+
"paddingHorizontal": 19,
|
|
219
|
+
"paddingVertical": 14,
|
|
220
|
+
"sideMargin": 0,
|
|
221
|
+
"size": "md"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"warnings": {
|
|
225
|
+
"connectionIssue": {
|
|
226
|
+
"content": {
|
|
227
|
+
"bgColor": "#8A7045",
|
|
228
|
+
"color": "#fff",
|
|
229
|
+
"icon": {
|
|
230
|
+
"color": "#fff",
|
|
231
|
+
"showIcon": true,
|
|
232
|
+
"size": 16,
|
|
233
|
+
"src": "<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M21.76 16.42L15.36 4.9C14.5 3.35 13.31 2.5 12 2.5C10.69 2.5 9.49998 3.35 8.63998 4.9L2.23998 16.42C1.42998 17.89 1.33998 19.3 1.98998 20.41C2.63998 21.52 3.91998 22.13 5.59998 22.13H18.4C20.08 22.13 21.36 21.52 22.01 20.41C22.66 19.3 22.57 17.88 21.76 16.42ZM11.25 9.5C11.25 9.09 11.59 8.75 12 8.75C12.41 8.75 12.75 9.09 12.75 9.5V14.5C12.75 14.91 12.41 15.25 12 15.25C11.59 15.25 11.25 14.91 11.25 14.5V9.5ZM12.71 18.21C12.66 18.25 12.61 18.29 12.56 18.33C12.5 18.37 12.44 18.4 12.38 18.42C12.32 18.45 12.26 18.47 12.19 18.48C12.13 18.49 12.06 18.5 12 18.5C11.94 18.5 11.87 18.49 11.8 18.48C11.74 18.47 11.68 18.45 11.62 18.42C11.56 18.4 11.5 18.37 11.44 18.33C11.39 18.29 11.34 18.25 11.29 18.21C11.11 18.02 11 17.76 11 17.5C11 17.24 11.11 16.98 11.29 16.79C11.34 16.75 11.39 16.71 11.44 16.67C11.5 16.63 11.56 16.6 11.62 16.58C11.68 16.55 11.74 16.53 11.8 16.52C11.93 16.49 12.07 16.49 12.19 16.52C12.26 16.53 12.32 16.55 12.38 16.58C12.44 16.6 12.5 16.63 12.56 16.67C12.61 16.71 12.66 16.75 12.71 16.79C12.89 16.98 13 17.24 13 17.5C13 17.76 12.89 18.02 12.71 18.21Z\" fill=\"#FFCC77\"/>\n</svg>"
|
|
234
|
+
},
|
|
235
|
+
"sidePadding": 8,
|
|
236
|
+
"verticalSpacing": 8
|
|
237
|
+
},
|
|
238
|
+
"resetButton": {
|
|
239
|
+
"bgColor": "#e5e1dd",
|
|
240
|
+
"bgType": "filled",
|
|
241
|
+
"borderRadius": 12,
|
|
242
|
+
"color": "#2e2e30",
|
|
243
|
+
"fontSize": 12,
|
|
244
|
+
"icon": {
|
|
245
|
+
"color": "#2e2e30",
|
|
246
|
+
"showIcon": true,
|
|
247
|
+
"size": 16,
|
|
248
|
+
"src": "<svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.793 1.83301H5.20634C2.77967 1.83301 1.33301 3.27967 1.33301 5.70634V11.2863C1.33301 13.7197 2.77967 15.1663 5.20634 15.1663H10.7863C13.213 15.1663 14.6597 13.7197 14.6597 11.293V5.70634C14.6663 3.27967 13.2197 1.83301 10.793 1.83301ZM7.99967 12.6663C6.80634 12.6663 5.87301 12.073 5.23967 11.4863V11.9597C5.23967 12.233 5.01301 12.4597 4.73967 12.4597C4.46634 12.4597 4.23967 12.233 4.23967 11.9597V10.1263C4.23967 9.85301 4.46634 9.62634 4.73967 9.62634H6.39301C6.66634 9.62634 6.89301 9.85301 6.89301 10.1263C6.89301 10.3997 6.66634 10.6263 6.39301 10.6263H5.79301C6.28634 11.1197 7.05301 11.6663 7.99967 11.6663C9.74634 11.6663 11.1663 10.2463 11.1663 8.49967C11.1663 8.22634 11.393 7.99967 11.6663 7.99967C11.9397 7.99967 12.1663 8.22634 12.1663 8.49967C12.1663 10.7997 10.2997 12.6663 7.99967 12.6663ZM12.1663 6.85967C12.1663 6.87967 12.1663 6.89967 12.1663 6.91301C12.1597 6.98634 12.1397 7.05301 12.1063 7.11301C12.073 7.17301 12.0263 7.22634 11.9663 7.27301C11.9197 7.30634 11.8663 7.33301 11.8063 7.35301C11.7597 7.36634 11.713 7.37301 11.6663 7.37301H10.0463C9.77301 7.37301 9.54634 7.14634 9.54634 6.87301C9.54634 6.59967 9.77301 6.37301 10.0463 6.37301H10.5997C10.0663 5.87967 9.20634 5.33301 8.01301 5.33301C6.26634 5.33301 4.84634 6.75301 4.84634 8.49967C4.84634 8.77301 4.61967 8.99967 4.34634 8.99967C4.07301 8.99967 3.83301 8.77301 3.83301 8.49967C3.83301 6.19967 5.69967 4.33301 7.99967 4.33301C9.43301 4.33301 10.4863 4.95301 11.1663 5.54634V5.03967C11.1663 4.76634 11.393 4.53967 11.6663 4.53967C11.9397 4.53967 12.1663 4.76634 12.1663 5.03967V6.85967Z\" fill=\"currentColor\"/></svg>"
|
|
249
|
+
},
|
|
250
|
+
"showType": "both",
|
|
251
|
+
"size": "md"
|
|
252
|
+
},
|
|
253
|
+
"warningStyle": "faded"
|
|
254
|
+
},
|
|
255
|
+
"disableInputIssue": {
|
|
256
|
+
"content": {
|
|
257
|
+
"bgColor": "#8A7045",
|
|
258
|
+
"color": "#fff",
|
|
259
|
+
"icon": {
|
|
260
|
+
"color": "#FFF",
|
|
261
|
+
"showIcon": true,
|
|
262
|
+
"src": "<svg width=\"17\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4 4.02667C3.06667 5.08667 2.5 6.48 2.5 8C2.5 11.3133 5.18667 14 8.5 14C11.8133 14 14.5 11.3133 14.5 8C14.5 4.68667 11.8133 2 8.5 2C8.02667 2 7.56667 2.05333 7.12667 2.16\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"warningStyle": "gradient"
|
|
266
|
+
},
|
|
267
|
+
"launchIssue": {
|
|
268
|
+
"content": {
|
|
269
|
+
"bgColor": "#8A7045",
|
|
270
|
+
"color": "#fff",
|
|
271
|
+
"headlineColor": "#f9c97c",
|
|
272
|
+
"headlineTextSize": 12,
|
|
273
|
+
"icon": {
|
|
274
|
+
"color": "#FFCC77",
|
|
275
|
+
"showIcon": true,
|
|
276
|
+
"size": 24,
|
|
277
|
+
"src": "<svg width=\"24\" height=\"25\" viewBox=\"0 0 24 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M21.76 16.42L15.36 4.9C14.5 3.35 13.31 2.5 12 2.5C10.69 2.5 9.5 3.35 8.64 4.9L2.24 16.42C1.43 17.89 1.34 19.3 1.99 20.41C2.64 21.52 3.92 22.13 5.6 22.13H18.4C20.08 22.13 21.36 21.52 22.01 20.41C22.66 19.3 22.57 17.88 21.76 16.42ZM12.71 18.21C12.66 18.25 12.61 18.29 12.56 18.33C12.5 18.37 12.44 18.4 12.38 18.42C12.32 18.45 12.26 18.47 12.19 18.48C12.13 18.49 12.06 18.5 12 18.5C11.94 18.5 11.87 18.49 11.8 18.48C11.74 18.47 11.68 18.45 11.62 18.42C11.56 18.4 11.5 18.37 11.44 18.33C11.39 18.29 11.34 18.25 11.29 18.21C11.11 18.02 11 17.76 11 17.5C11 17.24 11.11 16.98 11.29 16.79C11.34 16.75 11.39 16.71 11.44 16.67C11.5 16.63 11.56 16.6 11.62 16.58C11.68 16.55 11.74 16.53 11.8 16.52C11.93 16.49 12.07 16.49 12.19 16.52C12.26 16.53 12.32 16.55 12.38 16.58C12.44 16.6 12.5 16.63 12.56 16.67C12.61 16.71 12.66 16.75 12.71 16.79C12.89 16.98 13 17.24 13 17.5C13 17.76 12.89 18.02 12.71 18.21ZM11.25 9.5C11.25 9.09 11.59 8.75 12 8.75C12.41 8.75 12.75 9.09 12.75 9.5V14.5C12.75 14.91 12.41 15.25 12 15.25C11.59 15.25 11.25 14.91 11.25 14.5V9.5Z\" fill=\"currentColor\"/></svg>"
|
|
278
|
+
},
|
|
279
|
+
"sidePadding": 8,
|
|
280
|
+
"subTextSize": 12,
|
|
281
|
+
"verticalSpacing": 4
|
|
282
|
+
},
|
|
283
|
+
"resetButton": {
|
|
284
|
+
"bgColor": "#e5e1dd",
|
|
285
|
+
"bgType": "filled",
|
|
286
|
+
"borderRadius": 12,
|
|
287
|
+
"color": "#2e2e30",
|
|
288
|
+
"fontSize": 12,
|
|
289
|
+
"icon": {
|
|
290
|
+
"color": "#2e2e30",
|
|
291
|
+
"showIcon": true,
|
|
292
|
+
"size": 16,
|
|
293
|
+
"src": "<svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.793 1.83301H5.20634C2.77967 1.83301 1.33301 3.27967 1.33301 5.70634V11.2863C1.33301 13.7197 2.77967 15.1663 5.20634 15.1663H10.7863C13.213 15.1663 14.6597 13.7197 14.6597 11.293V5.70634C14.6663 3.27967 13.2197 1.83301 10.793 1.83301ZM7.99967 12.6663C6.80634 12.6663 5.87301 12.073 5.23967 11.4863V11.9597C5.23967 12.233 5.01301 12.4597 4.73967 12.4597C4.46634 12.4597 4.23967 12.233 4.23967 11.9597V10.1263C4.23967 9.85301 4.46634 9.62634 4.73967 9.62634H6.39301C6.66634 9.62634 6.89301 9.85301 6.89301 10.1263C6.89301 10.3997 6.66634 10.6263 6.39301 10.6263H5.79301C6.28634 11.1197 7.05301 11.6663 7.99967 11.6663C9.74634 11.6663 11.1663 10.2463 11.1663 8.49967C11.1663 8.22634 11.393 7.99967 11.6663 7.99967C11.9397 7.99967 12.1663 8.22634 12.1663 8.49967C12.1663 10.7997 10.2997 12.6663 7.99967 12.6663ZM12.1663 6.85967C12.1663 6.87967 12.1663 6.89967 12.1663 6.91301C12.1597 6.98634 12.1397 7.05301 12.1063 7.11301C12.073 7.17301 12.0263 7.22634 11.9663 7.27301C11.9197 7.30634 11.8663 7.33301 11.8063 7.35301C11.7597 7.36634 11.713 7.37301 11.6663 7.37301H10.0463C9.77301 7.37301 9.54634 7.14634 9.54634 6.87301C9.54634 6.59967 9.77301 6.37301 10.0463 6.37301H10.5997C10.0663 5.87967 9.20634 5.33301 8.01301 5.33301C6.26634 5.33301 4.84634 6.75301 4.84634 8.49967C4.84634 8.77301 4.61967 8.99967 4.34634 8.99967C4.07301 8.99967 3.83301 8.77301 3.83301 8.49967C3.83301 6.19967 5.69967 4.33301 7.99967 4.33301C9.43301 4.33301 10.4863 4.95301 11.1663 5.54634V5.03967C11.1663 4.76634 11.393 4.53967 11.6663 4.53967C11.9397 4.53967 12.1663 4.76634 12.1663 5.03967V6.85967Z\" fill=\"currentColor\"/></svg>"
|
|
294
|
+
},
|
|
295
|
+
"showType": "both",
|
|
296
|
+
"size": "md"
|
|
297
|
+
},
|
|
298
|
+
"warningStyle": "faded"
|
|
299
|
+
},
|
|
300
|
+
"reconnectIssue": {
|
|
301
|
+
"content": {
|
|
302
|
+
"bgColor": "#8A7045",
|
|
303
|
+
"borderRadius": 12,
|
|
304
|
+
"color": "#fff",
|
|
305
|
+
"icon": {
|
|
306
|
+
"color": "#FFF",
|
|
307
|
+
"showIcon": true,
|
|
308
|
+
"size": 16,
|
|
309
|
+
"src": "<svg width=\"17\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4 4.02667C3.06667 5.08667 2.5 6.48 2.5 8C2.5 11.3133 5.18667 14 8.5 14C11.8133 14 14.5 11.3133 14.5 8C14.5 4.68667 11.8133 2 8.5 2C8.02667 2 7.56667 2.05333 7.12667 2.16\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>"
|
|
310
|
+
},
|
|
311
|
+
"margin": 8,
|
|
312
|
+
"sidePadding": 8,
|
|
313
|
+
"verticalSpacing": 8
|
|
314
|
+
},
|
|
315
|
+
"warningStyle": "gradient"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"settings": {
|
|
320
|
+
"bgChat": "#0F0F0F",
|
|
321
|
+
"borderRadius": 27,
|
|
322
|
+
"container": {
|
|
323
|
+
"gradient": "#161616",
|
|
324
|
+
"innerBorder": {
|
|
325
|
+
"color": "#292929",
|
|
326
|
+
"style": "solid",
|
|
327
|
+
"width": 1
|
|
328
|
+
},
|
|
329
|
+
"outerBorder": {
|
|
330
|
+
"color": "#292929",
|
|
331
|
+
"style": "solid",
|
|
332
|
+
"width": 10
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"fontFamily": "Inter",
|
|
336
|
+
"fontWeight": 500,
|
|
337
|
+
"gapMessageLine": 12,
|
|
338
|
+
"globalRoundingRadius": true,
|
|
339
|
+
"launchView": "closed",
|
|
340
|
+
"letterSpacing": 0,
|
|
341
|
+
"lineHeight": 1.2,
|
|
342
|
+
"loader": "dots",
|
|
343
|
+
"logo": "<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.22048 12.26L8.71413 11.1293C9.1535 10.1231 9.94426 9.32209 10.9307 8.88424L12.2895 8.28107C12.7215 8.08931 12.7215 7.46082 12.2895 7.26906L10.9731 6.68472C9.9613 6.23561 9.15637 5.40496 8.72453 4.3644L8.22447 3.15941C8.0389 2.71224 7.42105 2.71224 7.23548 3.15941L6.7354 4.36439C6.30357 5.40496 5.49861 6.23561 4.48686 6.68472L3.17045 7.26906C2.73843 7.46082 2.73843 8.08931 3.17045 8.28107L4.5293 8.88424C5.51569 9.32209 6.30646 10.1231 6.7458 11.1293L7.23948 12.26C7.42924 12.6946 8.03069 12.6946 8.22048 12.26ZM13.1632 15.0131L13.302 14.6949C13.5495 14.1275 13.9953 13.6758 14.5515 13.4287L14.9792 13.2386C15.2106 13.1358 15.2106 12.7996 14.9792 12.6969L14.5754 12.5174C14.0049 12.264 13.5511 11.7955 13.3078 11.2089L13.1653 10.865C13.0659 10.6254 12.7346 10.6254 12.6352 10.865L12.4927 11.2089C12.2494 11.7955 11.7957 12.264 11.2251 12.5174L10.8213 12.6969C10.59 12.7996 10.59 13.1358 10.8213 13.2386L11.249 13.4287C11.8053 13.6758 12.251 14.1275 12.4985 14.6949L12.6374 15.0131C12.739 15.246 13.0615 15.246 13.1632 15.0131Z\" fill=\"currentColor\"/></svg>",
|
|
344
|
+
"mode": "collapsed",
|
|
345
|
+
"offset": {
|
|
346
|
+
"x": 24,
|
|
347
|
+
"y": 36
|
|
348
|
+
},
|
|
349
|
+
"position": "bottomRight",
|
|
350
|
+
"size": {
|
|
351
|
+
"height": 517,
|
|
352
|
+
"width": 497
|
|
353
|
+
},
|
|
354
|
+
"theme": "light"
|
|
355
|
+
},
|
|
356
|
+
"texts": {
|
|
357
|
+
"disableInputText": "Can’t send a message while processing the previous request",
|
|
358
|
+
"disclaimer": "Disclaimer text",
|
|
359
|
+
"inputPlaceholder": "Type question",
|
|
360
|
+
"issueText": "Something went wrong, please restart",
|
|
361
|
+
"launchIssueText": "Please restart the chat, it should work",
|
|
362
|
+
"launchIssueTitle": "There was a glitch",
|
|
363
|
+
"reconnectText": "Connection issue, trying to reconnect",
|
|
364
|
+
"sendButton": "Send",
|
|
365
|
+
"typingLoader": "AI-Co-pilot typing",
|
|
366
|
+
"welcomeMessage": "👋 Hey there, I’m your AI data assistant. With me you can talk to your data and get instant insights about your leads, deals, clients and everything in-between",
|
|
367
|
+
"widgetTitle": "Agent.ai"
|
|
368
|
+
}
|
|
369
|
+
}
|