@subiz/widget-v4 4.1.61 → 4.1.63
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 +10 -0
- package/app.js +2 -6
- package/assets/less/widget.less +16 -7
- package/dist/{213.js → 132.js} +121 -121
- package/dist/18dd22fb422.132.js +1 -0
- package/dist/18dd22fb422.27.js +1 -0
- package/dist/18dd22fb422.278.js +1 -0
- package/dist/18dd22fb422.459.js +1 -0
- package/dist/{18d5e97bf55.605.js → 18dd22fb422.490.js} +1 -1
- package/dist/18dd22fb422.497.js +1 -0
- package/dist/18dd22fb422.74.js +1 -0
- package/dist/18dd22fb422.997.js +1 -0
- package/dist/18dd22fb422.app.js +1 -0
- package/dist/{18d5e97bf55.index.html → 18dd22fb422.index.html} +1 -1
- package/dist/{18d5e97bf55.library.html → 18dd22fb422.library.html} +1 -1
- package/dist/18dd22fb422.library.js +1 -0
- package/dist/{18d5e97bf55.preview.html → 18dd22fb422.preview.html} +1 -1
- package/dist/18dd22fb422.preview.js +1 -0
- package/dist/18dd22fb422.screenshoot.js +1 -0
- package/dist/18dd22fb422.webview.js +1 -0
- package/dist/{782.js → 27.js} +6 -6
- package/dist/{178.js → 278.js} +54 -54
- package/dist/{362.js → 459.js} +6 -6
- package/dist/{605.js → 490.js} +57 -57
- package/dist/{841.js → 497.js} +688 -677
- package/dist/{335.js → 74.js} +30 -30
- package/dist/{678.js → 997.js} +6 -6
- package/dist/HASH +1 -1
- package/dist/malicious-app.js +4 -8
- package/dist/screenshoot.html +1 -1
- package/dist/screenshoot.js +291 -291
- package/malicious-app.js +4 -8
- package/package.json +6 -6
- package/src/chatbox/Widget.js +56 -32
- package/src/store/api.js +17 -0
- package/src/store/api_fake.js +3 -0
- package/src/store/store.js +16 -50
- package/dist/18d5e97bf55.178.js +0 -1
- package/dist/18d5e97bf55.213.js +0 -1
- package/dist/18d5e97bf55.335.js +0 -1
- package/dist/18d5e97bf55.362.js +0 -1
- package/dist/18d5e97bf55.678.js +0 -1
- package/dist/18d5e97bf55.782.js +0 -1
- package/dist/18d5e97bf55.841.js +0 -1
- package/dist/18d5e97bf55.app.js +0 -1
- package/dist/18d5e97bf55.library.js +0 -1
- package/dist/18d5e97bf55.preview.js +0 -1
- package/dist/18d5e97bf55.screenshoot.js +0 -1
- package/dist/18d5e97bf55.webview.js +0 -1
package/README.md
CHANGED
|
@@ -21,3 +21,13 @@ Since our script is running in client site. The built-in function may be overrid
|
|
|
21
21
|
|
|
22
22
|
JSON.stringify => sb.stringify
|
|
23
23
|
JSON.parse => sb.parseJSON
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Note about preact
|
|
27
|
+
preact above 10.19.3 cause form input problem
|
|
28
|
+
reproduct: ,
|
|
29
|
+
1. checkout to commit
|
|
30
|
+
2. IMPORTANT: open new incognitor browser
|
|
31
|
+
2. visit http://localhost:8082/?account_id=acpxkgumifuoofoosble
|
|
32
|
+
3. input into form offline
|
|
33
|
+
4. cannot submit (expted: can submit)
|
package/app.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
window.navigator.userAgent &&
|
|
4
|
-
window.navigator.userAgent.indexOf &&
|
|
5
|
-
window.navigator.userAgent.indexOf('subizbot') > -1
|
|
6
|
-
) {
|
|
1
|
+
var nav = window.navigator
|
|
2
|
+
if (nav && nav.userAgent && nav.userAgent.indexOf && nav.userAgent.indexOf('subizbot') > -1) {
|
|
7
3
|
throw new Error('dont run with subiz bot')
|
|
8
4
|
}
|
|
9
5
|
|
package/assets/less/widget.less
CHANGED
|
@@ -225,9 +225,9 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.widget-container.widget-container--full {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
max-height: 100%;
|
|
229
|
+
height: 100%;
|
|
230
|
+
margin-bottom: 0;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.widget-container.widget-container--hide {
|
|
@@ -238,6 +238,7 @@
|
|
|
238
238
|
|
|
239
239
|
.btn--start-convo {
|
|
240
240
|
border-radius: 7px;
|
|
241
|
+
display: block;
|
|
241
242
|
padding-left: 32px;
|
|
242
243
|
padding-right: 32px;
|
|
243
244
|
height: 40px;
|
|
@@ -246,15 +247,23 @@
|
|
|
246
247
|
line-height: 20px;
|
|
247
248
|
text-align: center;
|
|
248
249
|
background: @primary-color;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
max-width: 250px;
|
|
251
|
+
width: 70%;
|
|
252
|
+
text-overflow: ellipsis;
|
|
253
|
+
white-space: nowrap;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
|
|
253
256
|
&::after {
|
|
254
257
|
display: none;
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
260
|
|
|
261
|
+
.btn--start-convo:disabled {
|
|
262
|
+
opacity: 0.5;
|
|
263
|
+
cursor: default;
|
|
264
|
+
pointer-events: none;
|
|
265
|
+
}
|
|
266
|
+
|
|
258
267
|
.widget-body.widget-body--none {
|
|
259
268
|
display: none;
|
|
260
269
|
}
|