@nyaruka/temba-components 0.88.0 → 0.90.0

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 (43) hide show
  1. package/.devcontainer/devcontainer.json +10 -2
  2. package/CHANGELOG.md +47 -7
  3. package/dist/temba-components.js +437 -443
  4. package/dist/temba-components.js.map +1 -1
  5. package/out-tsc/src/compose/Compose.js +21 -340
  6. package/out-tsc/src/compose/Compose.js.map +1 -1
  7. package/out-tsc/src/mediapicker/MediaPicker.js +312 -0
  8. package/out-tsc/src/mediapicker/MediaPicker.js.map +1 -0
  9. package/out-tsc/src/templates/TemplateEditor.js +75 -4
  10. package/out-tsc/src/templates/TemplateEditor.js.map +1 -1
  11. package/out-tsc/src/thumbnail/Thumbnail.js +31 -29
  12. package/out-tsc/src/thumbnail/Thumbnail.js.map +1 -1
  13. package/out-tsc/src/utils/index.js +7 -1
  14. package/out-tsc/src/utils/index.js.map +1 -1
  15. package/out-tsc/src/vectoricon/VectorIcon.js +0 -1
  16. package/out-tsc/src/vectoricon/VectorIcon.js.map +1 -1
  17. package/out-tsc/src/vectoricon/index.js +1 -0
  18. package/out-tsc/src/vectoricon/index.js.map +1 -1
  19. package/out-tsc/temba-modules.js +2 -0
  20. package/out-tsc/temba-modules.js.map +1 -1
  21. package/out-tsc/test/temba-compose.test.js +11 -12
  22. package/out-tsc/test/temba-compose.test.js.map +1 -1
  23. package/package.json +1 -1
  24. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  25. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  26. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  27. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  28. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  29. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  30. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  31. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  32. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  33. package/screenshots/truth/templates/default.png +0 -0
  34. package/screenshots/truth/templates/french.png +0 -0
  35. package/src/compose/Compose.ts +23 -378
  36. package/src/mediapicker/MediaPicker.ts +338 -0
  37. package/src/templates/TemplateEditor.ts +81 -4
  38. package/src/thumbnail/Thumbnail.ts +43 -39
  39. package/src/utils/index.ts +9 -1
  40. package/src/vectoricon/VectorIcon.ts +0 -1
  41. package/src/vectoricon/index.ts +1 -0
  42. package/temba-modules.ts +2 -0
  43. package/test/temba-compose.test.ts +13 -53
@@ -3,10 +3,12 @@
3
3
  "build": {
4
4
  "dockerfile": "Dockerfile"
5
5
  },
6
+ "features": {},
6
7
  "forwardPorts": [
7
8
  3010
8
9
  ],
9
10
  "runArgs": [
11
+ "--name=dev-components",
10
12
  "--network=textit_default",
11
13
  "--hostname=temba-components"
12
14
  ],
@@ -16,8 +18,14 @@
16
18
  "vscode": {
17
19
  "extensions": [
18
20
  "lfs.vscode-emacs-friendly"
19
- ]
21
+ ],
22
+ "settings": {
23
+ "terminal.integrated.defaultProfile.linux": "zsh",
24
+ "editor.formatOnSave": true,
25
+ "editor.rulers": [
26
+ 120
27
+ ]
28
+ }
20
29
  }
21
30
  }
22
- // "features": {},
23
31
  }
package/CHANGELOG.md CHANGED
@@ -4,27 +4,49 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v0.90.0](https://github.com/nyaruka/temba-components/compare/v0.89.0...v0.90.0)
8
+
9
+ - Add media picker, use for compose and templates [`#430`](https://github.com/nyaruka/temba-components/pull/430)
10
+ - Fix drop acceptance [`f520af6`](https://github.com/nyaruka/temba-components/commit/f520af64ceaa2630833d36d36eac4e42c97204f1)
11
+ - Make templates work for different content types [`58b7ed8`](https://github.com/nyaruka/temba-components/commit/58b7ed8a49d537055f946f3ed404aecd592d6db3)
12
+ - Remove attachments by url instead of uuid [`c6f272e`](https://github.com/nyaruka/temba-components/commit/c6f272effcb48a93d0f8766249a034ff200ea988)
13
+
14
+ #### [v0.89.0](https://github.com/nyaruka/temba-components/compare/v0.88.0...v0.89.0)
15
+
16
+ > 23 May 2024
17
+
18
+ - Add csrf fallback if cookie isn't there [`#429`](https://github.com/nyaruka/temba-components/pull/429)
19
+ - Check for existence of csrf element first [`c136a78`](https://github.com/nyaruka/temba-components/commit/c136a78d36e28760fe95b2dfa7a994b1c82b338c)
20
+
7
21
  #### [v0.88.0](https://github.com/nyaruka/temba-components/compare/v0.87.0...v0.88.0)
8
22
 
23
+ > 17 May 2024
24
+
9
25
  - Temba toast [`#428`](https://github.com/nyaruka/temba-components/pull/428)
10
26
  - Add toasts [`4bbc215`](https://github.com/nyaruka/temba-components/commit/4bbc215178be81f80a1729b32a54cbba87065bea)
11
27
  - Make toasts more configurable [`9e3a68f`](https://github.com/nyaruka/temba-components/commit/9e3a68f0e116f6835c42f8672726c4efd0d629c9)
12
28
  - Remove excess logging for temba list [`706e1f2`](https://github.com/nyaruka/temba-components/commit/706e1f25735d40180e9306b70a421bbe683126c0)
13
29
 
14
- #### [v0.87.0](https://github.com/nyaruka/temba-components/compare/v0.86.0...v0.87.0)
30
+ #### [v0.87.0](https://github.com/nyaruka/temba-components/compare/v0.86.1...v0.87.0)
15
31
 
16
32
  > 9 May 2024
17
33
 
18
34
  - Add general avatar and fix message grouping [`#427`](https://github.com/nyaruka/temba-components/pull/427)
19
35
  - Linting updates [`#426`](https://github.com/nyaruka/temba-components/pull/426)
20
36
  - Webchat history [`#425`](https://github.com/nyaruka/temba-components/pull/425)
21
- - Bump ejs from 3.1.9 to 3.1.10 [`#420`](https://github.com/nyaruka/temba-components/pull/420)
22
- - Include number of records on notifications for some export types [`#424`](https://github.com/nyaruka/temba-components/pull/424)
23
- - Support flow export notification [`#423`](https://github.com/nyaruka/temba-components/pull/423)
24
37
  - Fix linting issues [`b2bd993`](https://github.com/nyaruka/temba-components/commit/b2bd99309e79c9b1b6a5121a4df75a4c1ae78e57)
25
38
  - Add history paging to webchat [`86ebcfa`](https://github.com/nyaruka/temba-components/commit/86ebcfacd1de17b919dc0f64dad4c83884103e68)
26
39
  - Show scroll markers after fetching [`40bf4c4`](https://github.com/nyaruka/temba-components/commit/40bf4c44075bc2c531b4fa3aeda5e725ba15634e)
27
40
 
41
+ #### [v0.86.1](https://github.com/nyaruka/temba-components/compare/v0.86.0...v0.86.1)
42
+
43
+ > 7 May 2024
44
+
45
+ - Bump ejs from 3.1.9 to 3.1.10 [`#420`](https://github.com/nyaruka/temba-components/pull/420)
46
+ - Include number of records on notifications for some export types [`#424`](https://github.com/nyaruka/temba-components/pull/424)
47
+ - Support flow export notification [`#423`](https://github.com/nyaruka/temba-components/pull/423)
48
+ - Support definition export notification [`cd69bec`](https://github.com/nyaruka/temba-components/commit/cd69bec0f4a5e836f1635348df835d13f641f093)
49
+
28
50
  #### [v0.86.0](https://github.com/nyaruka/temba-components/compare/v0.85.0...v0.86.0)
29
51
 
30
52
  > 2 May 2024
@@ -74,7 +96,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
74
96
 
75
97
  - Add beat for temba-option collection [`3406463`](https://github.com/nyaruka/temba-components/commit/3406463dd07490615ec979c21c8701f7694a4f80)
76
98
 
77
- #### [v0.80.0](https://github.com/nyaruka/temba-components/compare/v0.77.0...v0.80.0)
99
+ #### [v0.80.0](https://github.com/nyaruka/temba-components/compare/v0.78.2...v0.80.0)
78
100
 
79
101
  > 9 April 2024
80
102
 
@@ -82,12 +104,30 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
82
104
  - Update dependencies [`#411`](https://github.com/nyaruka/temba-components/pull/411)
83
105
  - Dependency updates [`#409`](https://github.com/nyaruka/temba-components/pull/409)
84
106
  - Add status for chat [`#410`](https://github.com/nyaruka/temba-components/pull/410)
85
- - Ensure we have icons for all channel types in use [`#407`](https://github.com/nyaruka/temba-components/pull/407)
86
- - Rework `temba-date` to be inline span instead of div [`#406`](https://github.com/nyaruka/temba-components/pull/406)
87
107
  - Yarn update [`9fe452e`](https://github.com/nyaruka/temba-components/commit/9fe452ece62a7f40707e37ac1bd70ea10cd87789)
88
108
  - Update open-wc [`f433526`](https://github.com/nyaruka/temba-components/commit/f4335262417c6c45f45b60f3fad0a7f1204845e7)
89
109
  - Show connection status on chat widget [`f75ec9b`](https://github.com/nyaruka/temba-components/commit/f75ec9b61d5ab7e2080d887f2afc3a28b86148eb)
90
110
 
111
+ #### [v0.78.2](https://github.com/nyaruka/temba-components/compare/v0.78.1...v0.78.2)
112
+
113
+ > 4 April 2024
114
+
115
+ - Add icons for template statuses [`4b1cf1c`](https://github.com/nyaruka/temba-components/commit/4b1cf1c9dce5c5b508a000cef9c99dc0684f1a8e)
116
+
117
+ #### [v0.78.1](https://github.com/nyaruka/temba-components/compare/v0.78.0...v0.78.1)
118
+
119
+ > 4 April 2024
120
+
121
+ - Ensure we have icons for all channel types in use [`#407`](https://github.com/nyaruka/temba-components/pull/407)
122
+
123
+ #### [v0.78.0](https://github.com/nyaruka/temba-components/compare/v0.77.0...v0.78.0)
124
+
125
+ > 3 April 2024
126
+
127
+ - Rework `temba-date` to be inline span instead of div [`#406`](https://github.com/nyaruka/temba-components/pull/406)
128
+ - Add test to ensure date renders inline [`abcbc1f`](https://github.com/nyaruka/temba-components/commit/abcbc1f226e59a39b6f53d00d9178adb68df852d)
129
+ - Rework temba-date to be inline [`78af86e`](https://github.com/nyaruka/temba-components/commit/78af86e22b92cd2546b62bfc7bd46250250b84cf)
130
+
91
131
  #### [v0.77.0](https://github.com/nyaruka/temba-components/compare/v0.76.0...v0.77.0)
92
132
 
93
133
  > 29 March 2024