@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.
Files changed (49) hide show
  1. package/README.md +10 -0
  2. package/app.js +2 -6
  3. package/assets/less/widget.less +16 -7
  4. package/dist/{213.js → 132.js} +121 -121
  5. package/dist/18dd22fb422.132.js +1 -0
  6. package/dist/18dd22fb422.27.js +1 -0
  7. package/dist/18dd22fb422.278.js +1 -0
  8. package/dist/18dd22fb422.459.js +1 -0
  9. package/dist/{18d5e97bf55.605.js → 18dd22fb422.490.js} +1 -1
  10. package/dist/18dd22fb422.497.js +1 -0
  11. package/dist/18dd22fb422.74.js +1 -0
  12. package/dist/18dd22fb422.997.js +1 -0
  13. package/dist/18dd22fb422.app.js +1 -0
  14. package/dist/{18d5e97bf55.index.html → 18dd22fb422.index.html} +1 -1
  15. package/dist/{18d5e97bf55.library.html → 18dd22fb422.library.html} +1 -1
  16. package/dist/18dd22fb422.library.js +1 -0
  17. package/dist/{18d5e97bf55.preview.html → 18dd22fb422.preview.html} +1 -1
  18. package/dist/18dd22fb422.preview.js +1 -0
  19. package/dist/18dd22fb422.screenshoot.js +1 -0
  20. package/dist/18dd22fb422.webview.js +1 -0
  21. package/dist/{782.js → 27.js} +6 -6
  22. package/dist/{178.js → 278.js} +54 -54
  23. package/dist/{362.js → 459.js} +6 -6
  24. package/dist/{605.js → 490.js} +57 -57
  25. package/dist/{841.js → 497.js} +688 -677
  26. package/dist/{335.js → 74.js} +30 -30
  27. package/dist/{678.js → 997.js} +6 -6
  28. package/dist/HASH +1 -1
  29. package/dist/malicious-app.js +4 -8
  30. package/dist/screenshoot.html +1 -1
  31. package/dist/screenshoot.js +291 -291
  32. package/malicious-app.js +4 -8
  33. package/package.json +6 -6
  34. package/src/chatbox/Widget.js +56 -32
  35. package/src/store/api.js +17 -0
  36. package/src/store/api_fake.js +3 -0
  37. package/src/store/store.js +16 -50
  38. package/dist/18d5e97bf55.178.js +0 -1
  39. package/dist/18d5e97bf55.213.js +0 -1
  40. package/dist/18d5e97bf55.335.js +0 -1
  41. package/dist/18d5e97bf55.362.js +0 -1
  42. package/dist/18d5e97bf55.678.js +0 -1
  43. package/dist/18d5e97bf55.782.js +0 -1
  44. package/dist/18d5e97bf55.841.js +0 -1
  45. package/dist/18d5e97bf55.app.js +0 -1
  46. package/dist/18d5e97bf55.library.js +0 -1
  47. package/dist/18d5e97bf55.preview.js +0 -1
  48. package/dist/18d5e97bf55.screenshoot.js +0 -1
  49. 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
- if (
2
- window.navigator &&
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
 
@@ -225,9 +225,9 @@
225
225
  }
226
226
 
227
227
  .widget-container.widget-container--full {
228
- max-height: 100%;
229
- height: 100%;
230
- margin-bottom: 0;
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
- display: flex;
250
- align-items: center;
251
- margin-left: auto;
252
- margin-right: auto;
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
  }