@subiz/widget-v4 4.1.71 → 4.1.73

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 (92) hide show
  1. package/app.js +0 -42
  2. package/assets/less/widget.less +6 -5
  3. package/assets/less/widget_header.less +5 -3
  4. package/compiled_src/chatbox/AudioAttachments.js +25 -32
  5. package/compiled_src/chatbox/Event.js +19 -3
  6. package/compiled_src/chatbox/InfoMessage.js +2 -1
  7. package/compiled_src/chatbox/OrderAttachments.js +102 -6
  8. package/compiled_src/chatbox/PoweredBy.js +20 -27
  9. package/compiled_src/chatbox/TextMessage.js +0 -14
  10. package/compiled_src/chatbox/VideoAttachments.js +1 -0
  11. package/compiled_src/chatbox/Widget.js +21 -21
  12. package/compiled_src/chatbox/time.js +46 -28
  13. package/compiled_src/lib.js +2 -2
  14. package/compiled_src/order/icon.js +2 -2
  15. package/compiled_src/order/index.js +2 -2
  16. package/compiled_src/plugin.js +2 -4
  17. package/compiled_src/store/api.js +1 -16
  18. package/compiled_src/store/store.js +2 -5
  19. package/compiled_src/util/common.js +12 -494
  20. package/compiled_src/util/index.js +0 -2
  21. package/dist/127.js +273 -0
  22. package/dist/132.js +2 -2
  23. package/dist/185.js +1885 -0
  24. package/dist/18eaf7ad0c6.127.js +1 -0
  25. package/dist/{18e74ca84ff.132.js → 18eaf7ad0c6.132.js} +1 -1
  26. package/dist/18eaf7ad0c6.185.js +1 -0
  27. package/dist/18eaf7ad0c6.278.js +1 -0
  28. package/dist/{18e74ca84ff.490.js → 18eaf7ad0c6.490.js} +1 -1
  29. package/dist/{18e74ca84ff.74.js → 18eaf7ad0c6.74.js} +1 -1
  30. package/dist/18eaf7ad0c6.app.js +1 -0
  31. package/dist/{18e74ca84ff.index.html → 18eaf7ad0c6.index.html} +1 -1
  32. package/dist/{18e74ca84ff.library.html → 18eaf7ad0c6.library.html} +1 -1
  33. package/dist/18eaf7ad0c6.library.js +1 -0
  34. package/dist/{18e74ca84ff.preview.html → 18eaf7ad0c6.preview.html} +1 -1
  35. package/dist/18eaf7ad0c6.preview.js +1 -0
  36. package/dist/18eaf7ad0c6.screenshoot.js +1 -0
  37. package/dist/18eaf7ad0c6.webview.js +1 -0
  38. package/dist/18ed1c3d33e.127.js +1 -0
  39. package/dist/18ed1c3d33e.132.js +1 -0
  40. package/dist/18ed1c3d33e.185.js +1 -0
  41. package/dist/18ed1c3d33e.27.js +1 -0
  42. package/dist/18ed1c3d33e.278.js +1 -0
  43. package/dist/18ed1c3d33e.459.js +1 -0
  44. package/dist/18ed1c3d33e.490.js +1 -0
  45. package/dist/18ed1c3d33e.74.js +1 -0
  46. package/dist/18ed1c3d33e.997.js +1 -0
  47. package/dist/18ed1c3d33e.app.js +1 -0
  48. package/dist/18ed1c3d33e.index.html +33 -0
  49. package/dist/18ed1c3d33e.library.html +33 -0
  50. package/dist/18ed1c3d33e.library.js +1 -0
  51. package/dist/18ed1c3d33e.preview.html +759 -0
  52. package/dist/18ed1c3d33e.preview.js +1 -0
  53. package/dist/18ed1c3d33e.screenshoot.js +1 -0
  54. package/dist/18ed1c3d33e.webview.js +1 -0
  55. package/dist/278.js +1 -1
  56. package/dist/490.js +1 -1
  57. package/dist/74.js +1 -1
  58. package/dist/HASH +1 -1
  59. package/dist/screenshoot.html +1 -1
  60. package/dist/screenshoot.js +4740 -627
  61. package/inject.js +3 -3
  62. package/package.json +6 -6
  63. package/src/chatbox/AudioAttachments.js +19 -26
  64. package/src/chatbox/Event.js +22 -3
  65. package/src/chatbox/InfoMessage.js +11 -11
  66. package/src/chatbox/OrderAttachments.js +118 -5
  67. package/src/chatbox/PoweredBy.js +14 -22
  68. package/src/chatbox/TextMessage.js +0 -14
  69. package/src/chatbox/VideoAttachments.js +1 -1
  70. package/src/chatbox/Widget.js +16 -20
  71. package/src/chatbox/time.js +54 -24
  72. package/src/lib.js +2 -2
  73. package/src/order/icon.js +2 -2
  74. package/src/order/index.js +2 -2
  75. package/src/plugin.js +4 -3
  76. package/src/store/api.js +1 -14
  77. package/src/store/store.js +3 -11
  78. package/src/util/common.js +13 -215
  79. package/src/util/index.js +0 -3
  80. package/compiled_src/util/order.js +0 -112
  81. package/dist/18e74ca84ff.278.js +0 -1
  82. package/dist/18e74ca84ff.497.js +0 -1
  83. package/dist/18e74ca84ff.app.js +0 -1
  84. package/dist/18e74ca84ff.library.js +0 -1
  85. package/dist/18e74ca84ff.preview.js +0 -1
  86. package/dist/18e74ca84ff.screenshoot.js +0 -1
  87. package/dist/18e74ca84ff.webview.js +0 -1
  88. package/dist/497.js +0 -6721
  89. package/src/util/order.js +0 -120
  90. /package/dist/{18e74ca84ff.27.js → 18eaf7ad0c6.27.js} +0 -0
  91. /package/dist/{18e74ca84ff.459.js → 18eaf7ad0c6.459.js} +0 -0
  92. /package/dist/{18e74ca84ff.997.js → 18eaf7ad0c6.997.js} +0 -0
@@ -0,0 +1,33 @@
1
+ <!doctype html><html lang="en"><head><meta name="description" content="Subiz preview"/><meta charset="utf-8"/><title>Widget v4</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>body {
2
+ background: #ffc107;
3
+ }</style></head><body><h1>Subiz widget testing</h1><button id="test1">Test 1</button><script>function getUrlParameter(name) {
4
+ name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]')
5
+ var regex = new RegExp('[\\?&]' + name + '=([^&#]*)')
6
+ var results = regex.exec(location.search)
7
+ return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '))
8
+ }
9
+
10
+ window.sbz_v4 = true // signature to trick injected script believe that we are running v4 code
11
+
12
+ var accid =
13
+ getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acqsulrowbxiugvginhw'
14
+ // making a queue, so we can process data asynchronous
15
+ window._sbzaccid = accid
16
+ window.subiz = function () {
17
+ window.subiz.q.push(arguments)
18
+ }
19
+ window.subiz.q = []
20
+ // set account it in the very first call
21
+ window.subiz('setAccount', accid)
22
+ // window.subiz('expandWidget')
23
+
24
+ if (accid == 'acqsulrowbxiugvginhw') {
25
+ <!--window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})-->
26
+ }
27
+
28
+ setTimeout(function () {
29
+ const button = document.createElement('button')
30
+ button.innerText = 'test2'
31
+ button.id = 'test2'
32
+ document.body.appendChild(button)
33
+ }, 2000)</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18ed1c3d33e.app.js"></script></body></html>
@@ -0,0 +1,33 @@
1
+ <!doctype html><html lang="en"><head><meta name="description" content="Subiz preview"/><meta charset="utf-8"/><title>Widget v4</title><meta name="viewport" content="width=device-width,initial-scale=1"/><style>body {
2
+ background: #ffc107;
3
+ }</style></head><body><h1>Subiz widget testing</h1><button id="test1">Test 1</button><script>function getUrlParameter(name) {
4
+ name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]')
5
+ var regex = new RegExp('[\\?&]' + name + '=([^&#]*)')
6
+ var results = regex.exec(location.search)
7
+ return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '))
8
+ }
9
+
10
+ window.sbz_v4 = true // signature to trick injected script believe that we are running v4 code
11
+
12
+ var accid =
13
+ getUrlParameter('id') || getUrlParameter('acc_id') || getUrlParameter('account_id') || 'acqsulrowbxiugvginhw'
14
+ // making a queue, so we can process data asynchronous
15
+ window._sbzaccid = accid
16
+ window.subiz = function () {
17
+ window.subiz.q.push(arguments)
18
+ }
19
+ window.subiz.q = []
20
+ // set account it in the very first call
21
+ window.subiz('setAccount', accid)
22
+ // window.subiz('expandWidget')
23
+
24
+ if (accid == 'acqsulrowbxiugvginhw') {
25
+ <!--window.subiz('setViewingProduct', {id: '220170', sku: 'ipx', source_id: 'IPHONE10'})-->
26
+ }
27
+
28
+ setTimeout(function () {
29
+ const button = document.createElement('button')
30
+ button.innerText = 'test2'
31
+ button.id = 'test2'
32
+ document.body.appendChild(button)
33
+ }, 2000)</script><script defer="defer" src="https://vcdn.subiz-cdn.com/widget-v4/public/18ed1c3d33e.library.js"></script></body></html>