@nyaruka/temba-components 0.62.2 → 0.63.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 (105) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/demo/index.html +0 -11
  3. package/dist/{ba373419.js → b745b4f0.js} +423 -256
  4. package/dist/index.js +423 -256
  5. package/dist/static/svg/index.svg +1 -1
  6. package/dist/sw.js +1 -1
  7. package/dist/sw.js.map +1 -1
  8. package/dist/templates/components-body.html +1 -1
  9. package/dist/templates/components-head.html +1 -1
  10. package/out-tsc/src/RapidElement.js +6 -0
  11. package/out-tsc/src/RapidElement.js.map +1 -1
  12. package/out-tsc/src/compose/Compose.js +190 -89
  13. package/out-tsc/src/compose/Compose.js.map +1 -1
  14. package/out-tsc/src/contacts/ContactChat.js +4 -5
  15. package/out-tsc/src/contacts/ContactChat.js.map +1 -1
  16. package/out-tsc/src/interfaces.js.map +1 -1
  17. package/out-tsc/src/lightbox/Lightbox.js +1 -0
  18. package/out-tsc/src/lightbox/Lightbox.js.map +1 -1
  19. package/out-tsc/src/select/Select.js +1 -1
  20. package/out-tsc/src/select/Select.js.map +1 -1
  21. package/out-tsc/src/tabpane/Tab.js.map +1 -1
  22. package/out-tsc/src/tabpane/TabPane.js +155 -25
  23. package/out-tsc/src/tabpane/TabPane.js.map +1 -1
  24. package/out-tsc/src/textinput/TextInput.js +1 -0
  25. package/out-tsc/src/textinput/TextInput.js.map +1 -1
  26. package/out-tsc/src/thumbnail/Thumbnail.js +121 -0
  27. package/out-tsc/src/thumbnail/Thumbnail.js.map +1 -0
  28. package/out-tsc/src/utils/index.js +6 -0
  29. package/out-tsc/src/utils/index.js.map +1 -1
  30. package/out-tsc/src/vectoricon/index.js +2 -1
  31. package/out-tsc/src/vectoricon/index.js.map +1 -1
  32. package/out-tsc/temba-modules.js +2 -0
  33. package/out-tsc/temba-modules.js.map +1 -1
  34. package/out-tsc/test/temba-compose.test.js +2 -1
  35. package/out-tsc/test/temba-compose.test.js.map +1 -1
  36. package/out-tsc/test/temba-contact-chat.test.js.map +1 -1
  37. package/package.json +1 -1
  38. package/screenshots/truth/compose/attachments-and-send-button.png +0 -0
  39. package/screenshots/truth/compose/attachments-no-send-button.png +0 -0
  40. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  41. package/screenshots/truth/compose/attachments-with-all-files.png +0 -0
  42. package/screenshots/truth/compose/attachments-with-failure-files.png +0 -0
  43. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  44. package/screenshots/truth/compose/attachments-with-success-files.png +0 -0
  45. package/screenshots/truth/compose/chatbox-attachments-counter-and-send-button.png +0 -0
  46. package/screenshots/truth/compose/chatbox-attachments-counter-no-send-button.png +0 -0
  47. package/screenshots/truth/compose/chatbox-attachments-no-counter-and-send-button.png +0 -0
  48. package/screenshots/truth/compose/chatbox-attachments-no-counter-no-send-button.png +0 -0
  49. package/screenshots/truth/compose/chatbox-counter-and-send-button.png +0 -0
  50. package/screenshots/truth/compose/chatbox-counter-no-send-button.png +0 -0
  51. package/screenshots/truth/compose/chatbox-no-counter-and-send-button.png +0 -0
  52. package/screenshots/truth/compose/chatbox-no-counter-no-send-button.png +0 -0
  53. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  54. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files.png +0 -0
  55. package/screenshots/truth/compose/chatbox-no-text-attachments-with-failure-files.png +0 -0
  56. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  57. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files.png +0 -0
  58. package/screenshots/truth/compose/chatbox-with-text-and-click-send.png +0 -0
  59. package/screenshots/truth/compose/chatbox-with-text-and-hit-enter.png +0 -0
  60. package/screenshots/truth/compose/chatbox-with-text-and-spaces.png +0 -0
  61. package/screenshots/truth/compose/chatbox-with-text-and-url.png +0 -0
  62. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-click-send.png +0 -0
  63. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  64. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files.png +0 -0
  65. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  66. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  67. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files.png +0 -0
  68. package/screenshots/truth/compose/chatbox-with-text-attachments-with-failure-files.png +0 -0
  69. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  70. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  71. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files.png +0 -0
  72. package/screenshots/truth/compose/chatbox-with-text-no-spaces.png +0 -0
  73. package/screenshots/truth/compose/chatbox-with-text.png +0 -0
  74. package/screenshots/truth/contacts/compose-attachments-no-text-failure.png +0 -0
  75. package/screenshots/truth/contacts/compose-attachments-no-text-success.png +0 -0
  76. package/screenshots/truth/contacts/compose-text-and-attachments-failure-attachments.png +0 -0
  77. package/screenshots/truth/contacts/compose-text-and-attachments-failure-generic.png +0 -0
  78. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text-and-attachments.png +0 -0
  79. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text.png +0 -0
  80. package/screenshots/truth/contacts/compose-text-and-attachments-success.png +0 -0
  81. package/screenshots/truth/contacts/compose-text-no-attachments-failure.png +0 -0
  82. package/screenshots/truth/contacts/compose-text-no-attachments-success.png +0 -0
  83. package/screenshots/truth/contacts/contact-active-default.png +0 -0
  84. package/screenshots/truth/contacts/contact-active-show-chatbox.png +0 -0
  85. package/screenshots/truth/contacts/contact-archived-hide-chatbox.png +0 -0
  86. package/screenshots/truth/contacts/contact-blocked-hide-chatbox.png +0 -0
  87. package/screenshots/truth/contacts/contact-stopped-hide-chatbox.png +0 -0
  88. package/src/RapidElement.ts +7 -0
  89. package/src/compose/Compose.ts +200 -106
  90. package/src/contacts/ContactChat.ts +4 -5
  91. package/src/interfaces.ts +9 -0
  92. package/src/lightbox/Lightbox.ts +1 -0
  93. package/src/select/Select.ts +1 -1
  94. package/src/tabpane/Tab.ts +1 -1
  95. package/src/tabpane/TabPane.ts +154 -26
  96. package/src/textinput/TextInput.ts +1 -0
  97. package/src/thumbnail/Thumbnail.ts +119 -0
  98. package/src/utils/index.ts +8 -1
  99. package/src/vectoricon/index.ts +2 -1
  100. package/static/svg/index.svg +1 -1
  101. package/static/svg/work/traced/dotpoints-01.svg +1 -0
  102. package/static/svg/work/used/dotpoints-01.svg +3 -0
  103. package/temba-modules.ts +2 -0
  104. package/test/temba-compose.test.ts +8 -2
  105. package/test/temba-contact-chat.test.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -4,8 +4,21 @@ 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.63.0](https://github.com/nyaruka/temba-components/compare/v0.62.3...v0.63.0)
8
+
9
+ - Compose tabs [`#378`](https://github.com/nyaruka/temba-components/pull/378)
10
+ - Use tabs for compose [`d26fb18`](https://github.com/nyaruka/temba-components/commit/d26fb1802cfdfa8c7e2c13307251704863a47b5e)
11
+
12
+ #### [v0.62.3](https://github.com/nyaruka/temba-components/compare/v0.62.2...v0.62.3)
13
+
14
+ > 23 October 2023
15
+
16
+ - Fire content changed on compose for full delete [`#377`](https://github.com/nyaruka/temba-components/pull/377)
17
+
7
18
  #### [v0.62.2](https://github.com/nyaruka/temba-components/compare/v0.62.1...v0.62.2)
8
19
 
20
+ > 19 October 2023
21
+
9
22
  - Bump @babel/traverse from 7.20.5 to 7.23.2 [`#375`](https://github.com/nyaruka/temba-components/pull/375)
10
23
  - Fix maxlength and focus issues for text controls [`#376`](https://github.com/nyaruka/temba-components/pull/376)
11
24
 
package/demo/index.html CHANGED
@@ -144,17 +144,6 @@
144
144
  <div class="header">temba-components</div>
145
145
 
146
146
  <temba-tabs collapses>
147
-
148
- <temba-tab name="Color Picker" icon="colors">
149
-
150
-
151
- <temba-compose chatbox attachments counter
152
- languages="[{&quot;name&quot;:&quot;English&quot;, &quot;iso&quot;:&quot;eng&quot;}, {&quot;name&quot;:&quot;Spanish&quot;, &quot;iso&quot;:&quot;esp&quot;}]"></temba-compose>
153
-
154
-
155
-
156
- </temba-tab>
157
-
158
147
  <temba-tab name="Overview" icon="default">
159
148
  <div style="display:flex;flex-wrap: wrap;">
160
149
  <temba-checkbox label="Check this out" checked></temba-checkbox>