@nyaruka/temba-components 0.109.0 → 0.110.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 (82) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/temba-components.js +361 -354
  3. package/dist/temba-components.js.map +1 -1
  4. package/out-tsc/src/compose/Compose.js +62 -106
  5. package/out-tsc/src/compose/Compose.js.map +1 -1
  6. package/out-tsc/src/contacts/ContactChat.js +64 -59
  7. package/out-tsc/src/contacts/ContactChat.js.map +1 -1
  8. package/out-tsc/src/vectoricon/index.js +0 -1
  9. package/out-tsc/src/vectoricon/index.js.map +1 -1
  10. package/out-tsc/test/temba-compose.test.js +24 -440
  11. package/out-tsc/test/temba-compose.test.js.map +1 -1
  12. package/out-tsc/test/temba-contact-chat.test.js +30 -167
  13. package/out-tsc/test/temba-contact-chat.test.js.map +1 -1
  14. package/package.json +1 -1
  15. package/screenshots/truth/compose/attachments-tab.png +0 -0
  16. package/screenshots/truth/compose/attachments-with-failures.png +0 -0
  17. package/screenshots/truth/compose/attachments-with-files-and-failures.png +0 -0
  18. package/screenshots/truth/compose/attachments-with-files-focused.png +0 -0
  19. package/screenshots/truth/compose/attachments-with-files.png +0 -0
  20. package/screenshots/truth/compose/intial-text.png +0 -0
  21. package/screenshots/truth/compose/no-counter.png +0 -0
  22. package/screenshots/truth/compose/wraps-text-and-spaces.png +0 -0
  23. package/screenshots/truth/compose/wraps-text-and-url.png +0 -0
  24. package/screenshots/truth/compose/wraps-text-no-spaces.png +0 -0
  25. package/screenshots/truth/contacts/chat-failure.png +0 -0
  26. package/src/compose/Compose.ts +69 -103
  27. package/src/contacts/ContactChat.ts +69 -70
  28. package/src/untyped.d.ts +1 -1
  29. package/src/vectoricon/index.ts +0 -1
  30. package/test/temba-compose.test.ts +29 -590
  31. package/test/temba-contact-chat.test.ts +30 -263
  32. package/web-test-runner.config.mjs +1 -0
  33. package/screenshots/truth/compose/attachments-and-send-button.png +0 -0
  34. package/screenshots/truth/compose/attachments-no-send-button.png +0 -0
  35. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  36. package/screenshots/truth/compose/attachments-with-all-files.png +0 -0
  37. package/screenshots/truth/compose/attachments-with-failure-files.png +0 -0
  38. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  39. package/screenshots/truth/compose/attachments-with-success-files.png +0 -0
  40. package/screenshots/truth/compose/chatbox-attachments-counter-and-send-button.png +0 -0
  41. package/screenshots/truth/compose/chatbox-attachments-counter-no-send-button.png +0 -0
  42. package/screenshots/truth/compose/chatbox-attachments-no-counter-and-send-button.png +0 -0
  43. package/screenshots/truth/compose/chatbox-attachments-no-counter-no-send-button.png +0 -0
  44. package/screenshots/truth/compose/chatbox-counter-and-send-button.png +0 -0
  45. package/screenshots/truth/compose/chatbox-counter-no-send-button.png +0 -0
  46. package/screenshots/truth/compose/chatbox-no-counter-and-send-button.png +0 -0
  47. package/screenshots/truth/compose/chatbox-no-counter-no-send-button.png +0 -0
  48. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  49. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files.png +0 -0
  50. package/screenshots/truth/compose/chatbox-no-text-attachments-with-failure-files.png +0 -0
  51. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  52. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files.png +0 -0
  53. package/screenshots/truth/compose/chatbox-with-text-and-click-send.png +0 -0
  54. package/screenshots/truth/compose/chatbox-with-text-and-hit-enter.png +0 -0
  55. package/screenshots/truth/compose/chatbox-with-text-and-spaces.png +0 -0
  56. package/screenshots/truth/compose/chatbox-with-text-and-url.png +0 -0
  57. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-click-send.png +0 -0
  58. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  59. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files.png +0 -0
  60. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  61. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  62. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files.png +0 -0
  63. package/screenshots/truth/compose/chatbox-with-text-attachments-with-failure-files.png +0 -0
  64. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  65. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  66. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files.png +0 -0
  67. package/screenshots/truth/compose/chatbox-with-text-no-spaces.png +0 -0
  68. package/screenshots/truth/compose/chatbox-with-text.png +0 -0
  69. package/screenshots/truth/contacts/compose-attachments-no-text-failure.png +0 -0
  70. package/screenshots/truth/contacts/compose-text-and-attachments-failure-attachments.png +0 -0
  71. package/screenshots/truth/contacts/compose-text-and-attachments-failure-generic.png +0 -0
  72. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text-and-attachments.png +0 -0
  73. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text.png +0 -0
  74. package/screenshots/truth/contacts/compose-text-no-attachments-failure.png +0 -0
  75. package/screenshots/truth/contacts/compose-text-no-attachments-success.png +0 -0
  76. /package/screenshots/truth/contacts/{compose-attachments-no-text-success.png → chat-for-active-contact.png} +0 -0
  77. /package/screenshots/truth/contacts/{contact-archived-hide-chatbox.png → chat-for-archived-contact.png} +0 -0
  78. /package/screenshots/truth/contacts/{contact-blocked-hide-chatbox.png → chat-for-blocked-contact.png} +0 -0
  79. /package/screenshots/truth/contacts/{contact-stopped-hide-chatbox.png → chat-for-stopped-contact.png} +0 -0
  80. /package/screenshots/truth/contacts/{compose-text-and-attachments-success.png → chat-sends-attachments-only.png} +0 -0
  81. /package/screenshots/truth/contacts/{contact-active-default.png → chat-sends-text-and-attachments.png} +0 -0
  82. /package/screenshots/truth/contacts/{contact-active-show-chatbox.png → chat-sends-text-only.png} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,8 +4,23 @@ 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.110.0](https://github.com/nyaruka/temba-components/compare/v0.109.1...v0.110.0)
8
+
9
+ - Compose cleanup [`#461`](https://github.com/nyaruka/temba-components/pull/461)
10
+ - Cleanup error and attachmenst tests [`49f63e2`](https://github.com/nyaruka/temba-components/commit/49f63e2ebdb22fe801b567edf955b8aa553c5b31)
11
+ - [WIP] Simplify compose [`344bd07`](https://github.com/nyaruka/temba-components/commit/344bd07b7851ac9d71d4c6f8013cad406ca6f857)
12
+ - Remove no longer needed icon [`b5c7a93`](https://github.com/nyaruka/temba-components/commit/b5c7a93063180c0475f7d3e529db39acfac6e634)
13
+
14
+ #### [v0.109.1](https://github.com/nyaruka/temba-components/compare/v0.109.0...v0.109.1)
15
+
16
+ > 24 October 2024
17
+
18
+ - Find better team icon [`4214f8a`](https://github.com/nyaruka/temba-components/commit/4214f8a628255625882aa38c27fac8aa72a6541b)
19
+
7
20
  #### [v0.109.0](https://github.com/nyaruka/temba-components/compare/v0.108.7...v0.109.0)
8
21
 
22
+ > 17 October 2024
23
+
9
24
  - Add Shortcuts [`#460`](https://github.com/nyaruka/temba-components/pull/460)
10
25
  - Add shortcuts to compose widget [`6db4c0c`](https://github.com/nyaruka/temba-components/commit/6db4c0caf9060b7e457c3a77812c86001a342234)
11
26
  - Update tests [`8148d11`](https://github.com/nyaruka/temba-components/commit/8148d11d95e16881907d3dd675d3678caee8dd29)