@subiz/widget-v4 4.1.202 → 4.1.204

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 (46) hide show
  1. package/api.md +1224 -0
  2. package/compiled_src/chatbox/ChatButton.js +19 -16
  3. package/compiled_src/chatbox/MessageInput.js +1 -0
  4. package/compiled_src/chatbox/main.js +28 -3
  5. package/compiled_src/lib.js +14 -0
  6. package/compiled_src/store/api.js +36 -4
  7. package/compiled_src/store/store.js +20 -4
  8. package/compiled_src/util/event.test.js +38 -0
  9. package/dist/19e1c4525c1.app.js +1 -0
  10. package/dist/{19d8a41ce33.chat.html → 19e1c4525c1.chat.html} +1 -1
  11. package/dist/19e1c4525c1.chat.js +1 -0
  12. package/dist/{19d8a41ce33.form.html → 19e1c4525c1.form.html} +1 -1
  13. package/dist/19e1c4525c1.form.js +1 -0
  14. package/dist/{19d8a41ce33.index.html → 19e1c4525c1.index.html} +1 -1
  15. package/dist/{19d8a41ce33.library.html → 19e1c4525c1.library.html} +1 -1
  16. package/dist/19e1c4525c1.library.js +1 -0
  17. package/dist/{19d8a41ce33.preview.html → 19e1c4525c1.preview.html} +1 -1
  18. package/dist/19e1c4525c1.preview.js +1 -0
  19. package/dist/19e1c4525c1.webview.js +1 -0
  20. package/dist/HASH +1 -1
  21. package/dist/screenshoot.js +104 -22
  22. package/package.json +8 -8
  23. package/src/chatbox/ChatButton.js +20 -15
  24. package/src/chatbox/MessageInput.js +1 -0
  25. package/src/chatbox/main.js +24 -4
  26. package/src/lib.js +14 -0
  27. package/src/store/api.js +41 -3
  28. package/src/store/store.js +28 -19
  29. package/src/util/event.test.js +31 -0
  30. package/dist/19d8a41ce33.app.js +0 -1
  31. package/dist/19d8a41ce33.chat.js +0 -1
  32. package/dist/19d8a41ce33.form.js +0 -1
  33. package/dist/19d8a41ce33.library.js +0 -1
  34. package/dist/19d8a41ce33.preview.js +0 -1
  35. package/dist/19d8a41ce33.webview.js +0 -1
  36. package/examples/track.js +0 -41
  37. /package/dist/{19d8a41ce33.127.js → 19e1c4525c1.127.js} +0 -0
  38. /package/dist/{19d8a41ce33.132.js → 19e1c4525c1.132.js} +0 -0
  39. /package/dist/{19d8a41ce33.185.js → 19e1c4525c1.185.js} +0 -0
  40. /package/dist/{19d8a41ce33.27.js → 19e1c4525c1.27.js} +0 -0
  41. /package/dist/{19d8a41ce33.278.js → 19e1c4525c1.278.js} +0 -0
  42. /package/dist/{19d8a41ce33.339.js → 19e1c4525c1.339.js} +0 -0
  43. /package/dist/{19d8a41ce33.459.js → 19e1c4525c1.459.js} +0 -0
  44. /package/dist/{19d8a41ce33.490.js → 19e1c4525c1.490.js} +0 -0
  45. /package/dist/{19d8a41ce33.74.js → 19e1c4525c1.74.js} +0 -0
  46. /package/dist/{19d8a41ce33.997.js → 19e1c4525c1.997.js} +0 -0
package/examples/track.js DELETED
@@ -1,41 +0,0 @@
1
- // place order
2
- subiz('track', {
3
- type: 'order_created',
4
- data: {
5
- order: {
6
- items: [
7
- {
8
- name: 'box for a cat',
9
- sku: '45350835',
10
- quantity: 1,
11
- },
12
- ],
13
- currency: 'VND',
14
- total: 100000,
15
- },
16
- },
17
- })
18
-
19
- // created item
20
- subiz('track', {
21
- type: 'item_created',
22
- custom_data: {
23
- name: {
24
- type: 'string',
25
- string: 'cat box',
26
- },
27
- url: {
28
- type: 'url',
29
- url: 'https://example.com',
30
- },
31
- },
32
- })
33
-
34
- // created item
35
- subiz('track', {
36
- type: 'item_created',
37
- custom_data: {
38
- name: 'cat box',
39
- url: 'https://example.com',
40
- },
41
- })
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes