@nyaruka/temba-components 0.89.0 → 0.91.1

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 (40) hide show
  1. package/.devcontainer/devcontainer.json +10 -2
  2. package/CHANGELOG.md +19 -0
  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 +74 -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/vectoricon/VectorIcon.js +0 -1
  14. package/out-tsc/src/vectoricon/VectorIcon.js.map +1 -1
  15. package/out-tsc/src/vectoricon/index.js +1 -0
  16. package/out-tsc/src/vectoricon/index.js.map +1 -1
  17. package/out-tsc/temba-modules.js +2 -0
  18. package/out-tsc/temba-modules.js.map +1 -1
  19. package/out-tsc/test/temba-compose.test.js +11 -12
  20. package/out-tsc/test/temba-compose.test.js.map +1 -1
  21. package/package.json +1 -1
  22. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  23. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  24. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  25. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  26. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  27. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  28. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  29. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  30. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  31. package/screenshots/truth/templates/default.png +0 -0
  32. package/screenshots/truth/templates/french.png +0 -0
  33. package/src/compose/Compose.ts +23 -378
  34. package/src/mediapicker/MediaPicker.ts +338 -0
  35. package/src/templates/TemplateEditor.ts +79 -4
  36. package/src/thumbnail/Thumbnail.ts +43 -39
  37. package/src/vectoricon/VectorIcon.ts +0 -1
  38. package/src/vectoricon/index.ts +1 -0
  39. package/temba-modules.ts +2 -0
  40. 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,8 +4,27 @@ 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.91.1](https://github.com/nyaruka/temba-components/compare/v0.91.0...v0.91.1)
8
+
9
+ #### [v0.91.0](https://github.com/nyaruka/temba-components/compare/v0.90.0...v0.91.0)
10
+
11
+ > 7 June 2024
12
+
13
+ - Remove params from component spec [`#431`](https://github.com/nyaruka/temba-components/pull/431)
14
+
15
+ #### [v0.90.0](https://github.com/nyaruka/temba-components/compare/v0.89.0...v0.90.0)
16
+
17
+ > 7 June 2024
18
+
19
+ - Add media picker, use for compose and templates [`#430`](https://github.com/nyaruka/temba-components/pull/430)
20
+ - Fix drop acceptance [`f520af6`](https://github.com/nyaruka/temba-components/commit/f520af64ceaa2630833d36d36eac4e42c97204f1)
21
+ - Make templates work for different content types [`58b7ed8`](https://github.com/nyaruka/temba-components/commit/58b7ed8a49d537055f946f3ed404aecd592d6db3)
22
+ - Remove attachments by url instead of uuid [`c6f272e`](https://github.com/nyaruka/temba-components/commit/c6f272effcb48a93d0f8766249a034ff200ea988)
23
+
7
24
  #### [v0.89.0](https://github.com/nyaruka/temba-components/compare/v0.88.0...v0.89.0)
8
25
 
26
+ > 23 May 2024
27
+
9
28
  - Add csrf fallback if cookie isn't there [`#429`](https://github.com/nyaruka/temba-components/pull/429)
10
29
  - Check for existence of csrf element first [`c136a78`](https://github.com/nyaruka/temba-components/commit/c136a78d36e28760fe95b2dfa7a994b1c82b338c)
11
30