@nyaruka/temba-components 0.129.10 → 0.129.11

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 (243) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/demo/data/flows/sample-flow.json +96 -56
  3. package/dist/temba-components.js +278 -268
  4. package/dist/temba-components.js.map +1 -1
  5. package/out-tsc/src/events.js.map +1 -1
  6. package/out-tsc/src/flow/Editor.js +9 -6
  7. package/out-tsc/src/flow/Editor.js.map +1 -1
  8. package/out-tsc/src/flow/actions/set_contact_channel.js +1 -1
  9. package/out-tsc/src/flow/actions/set_contact_channel.js.map +1 -1
  10. package/out-tsc/src/flow/actions/set_contact_field.js +1 -1
  11. package/out-tsc/src/flow/actions/set_contact_field.js.map +1 -1
  12. package/out-tsc/src/flow/actions/set_contact_language.js +1 -1
  13. package/out-tsc/src/flow/actions/set_contact_language.js.map +1 -1
  14. package/out-tsc/src/flow/actions/set_contact_status.js +1 -1
  15. package/out-tsc/src/flow/actions/set_contact_status.js.map +1 -1
  16. package/out-tsc/src/flow/config.js +2 -8
  17. package/out-tsc/src/flow/config.js.map +1 -1
  18. package/out-tsc/src/flow/nodes/split_by_llm.js +101 -0
  19. package/out-tsc/src/flow/nodes/split_by_llm.js.map +1 -0
  20. package/out-tsc/src/flow/nodes/split_by_llm_categorize.js +4 -89
  21. package/out-tsc/src/flow/nodes/split_by_llm_categorize.js.map +1 -1
  22. package/out-tsc/src/flow/nodes/split_by_subflow.js +123 -3
  23. package/out-tsc/src/flow/nodes/split_by_subflow.js.map +1 -1
  24. package/out-tsc/src/flow/nodes/split_by_ticket.js +115 -13
  25. package/out-tsc/src/flow/nodes/split_by_ticket.js.map +1 -1
  26. package/out-tsc/src/flow/nodes/split_by_webhook.js +160 -12
  27. package/out-tsc/src/flow/nodes/split_by_webhook.js.map +1 -1
  28. package/out-tsc/src/live/ContactChat.js +48 -66
  29. package/out-tsc/src/live/ContactChat.js.map +1 -1
  30. package/out-tsc/src/utils.js +115 -0
  31. package/out-tsc/src/utils.js.map +1 -1
  32. package/out-tsc/test/nodes/split_by_llm.test.js +174 -0
  33. package/out-tsc/test/nodes/split_by_llm.test.js.map +1 -0
  34. package/package.json +1 -1
  35. package/screenshots/truth/actions/add_contact_groups/editor/descriptive-group-names.png +0 -0
  36. package/screenshots/truth/actions/add_contact_groups/editor/long-group-names.png +0 -0
  37. package/screenshots/truth/actions/add_contact_groups/editor/many-groups.png +0 -0
  38. package/screenshots/truth/actions/add_contact_groups/editor/multiple-groups.png +0 -0
  39. package/screenshots/truth/actions/add_contact_groups/editor/single-group.png +0 -0
  40. package/screenshots/truth/actions/call_llm/editor/information-extraction.png +0 -0
  41. package/screenshots/truth/actions/call_llm/editor/sentiment-analysis.png +0 -0
  42. package/screenshots/truth/actions/call_llm/editor/summarization.png +0 -0
  43. package/screenshots/truth/actions/call_llm/editor/translation-task.png +0 -0
  44. package/screenshots/truth/actions/remove_contact_groups/editor/cleanup-groups.png +0 -0
  45. package/screenshots/truth/actions/remove_contact_groups/editor/long-descriptive-group-names.png +0 -0
  46. package/screenshots/truth/actions/remove_contact_groups/editor/many-groups.png +0 -0
  47. package/screenshots/truth/actions/remove_contact_groups/editor/multiple-groups.png +0 -0
  48. package/screenshots/truth/actions/remove_contact_groups/editor/remove-from-all-groups.png +0 -0
  49. package/screenshots/truth/actions/remove_contact_groups/editor/single-group.png +0 -0
  50. package/screenshots/truth/actions/send_email/editor/complex-business-email.png +0 -0
  51. package/screenshots/truth/actions/send_email/editor/empty-body.png +0 -0
  52. package/screenshots/truth/actions/send_email/editor/empty-subject.png +0 -0
  53. package/screenshots/truth/actions/send_email/editor/long-subject.png +0 -0
  54. package/screenshots/truth/actions/send_email/editor/multiline-body.png +0 -0
  55. package/screenshots/truth/actions/send_email/editor/multiple-recipients.png +0 -0
  56. package/screenshots/truth/actions/send_email/editor/simple-email.png +0 -0
  57. package/screenshots/truth/actions/send_email/editor/with-expressions.png +0 -0
  58. package/screenshots/truth/actions/send_msg/editor/long-quick-replies.png +0 -0
  59. package/screenshots/truth/actions/send_msg/editor/multiline-text-with-replies.png +0 -0
  60. package/screenshots/truth/actions/send_msg/editor/simple-text.png +0 -0
  61. package/screenshots/truth/actions/send_msg/editor/text-with-linebreaks.png +0 -0
  62. package/screenshots/truth/actions/send_msg/editor/text-with-many-quick-replies.png +0 -0
  63. package/screenshots/truth/actions/send_msg/editor/text-with-quick-replies.png +0 -0
  64. package/screenshots/truth/actions/send_msg/editor/text-without-quick-replies.png +0 -0
  65. package/screenshots/truth/checkbox/checkbox-label-background-hover.png +0 -0
  66. package/screenshots/truth/checkbox/checkbox-no-label-no-background-hover.png +0 -0
  67. package/screenshots/truth/checkbox/checkbox-whitespace-label-no-background-hover.png +0 -0
  68. package/screenshots/truth/checkbox/checkbox-with-help-text.png +0 -0
  69. package/screenshots/truth/checkbox/checked.png +0 -0
  70. package/screenshots/truth/checkbox/default.png +0 -0
  71. package/screenshots/truth/colorpicker/default.png +0 -0
  72. package/screenshots/truth/colorpicker/focused.png +0 -0
  73. package/screenshots/truth/colorpicker/initialized.png +0 -0
  74. package/screenshots/truth/colorpicker/selected.png +0 -0
  75. package/screenshots/truth/compose/attachments-tab.png +0 -0
  76. package/screenshots/truth/compose/attachments-with-files.png +0 -0
  77. package/screenshots/truth/compose/intial-text.png +0 -0
  78. package/screenshots/truth/compose/no-counter.png +0 -0
  79. package/screenshots/truth/compose/wraps-text-and-spaces.png +0 -0
  80. package/screenshots/truth/compose/wraps-text-and-url.png +0 -0
  81. package/screenshots/truth/compose/wraps-text-no-spaces.png +0 -0
  82. package/screenshots/truth/contacts/chat-failure.png +0 -0
  83. package/screenshots/truth/contacts/chat-for-active-contact.png +0 -0
  84. package/screenshots/truth/contacts/chat-sends-attachments-only.png +0 -0
  85. package/screenshots/truth/contacts/chat-sends-text-and-attachments.png +0 -0
  86. package/screenshots/truth/contacts/chat-sends-text-only.png +0 -0
  87. package/screenshots/truth/counter/summary.png +0 -0
  88. package/screenshots/truth/counter/text.png +0 -0
  89. package/screenshots/truth/counter/unicode-variables.png +0 -0
  90. package/screenshots/truth/counter/unicode.png +0 -0
  91. package/screenshots/truth/counter/variable.png +0 -0
  92. package/screenshots/truth/datepicker/date-truncated-time.png +0 -0
  93. package/screenshots/truth/datepicker/date.png +0 -0
  94. package/screenshots/truth/datepicker/initial-timezone.png +0 -0
  95. package/screenshots/truth/datepicker/range-picker-editing-start.png +0 -0
  96. package/screenshots/truth/datepicker/updated-keyboard-date.png +0 -0
  97. package/screenshots/truth/dialog/focused.png +0 -0
  98. package/screenshots/truth/dropdown/right-edge-collision.png +0 -0
  99. package/screenshots/truth/editor/router.png +0 -0
  100. package/screenshots/truth/editor/send_msg.png +0 -0
  101. package/screenshots/truth/editor/set_contact_language.png +0 -0
  102. package/screenshots/truth/editor/set_contact_name.png +0 -0
  103. package/screenshots/truth/editor/set_run_result.png +0 -0
  104. package/screenshots/truth/editor/wait.png +0 -0
  105. package/screenshots/truth/field-renderer/checkbox-checked.png +0 -0
  106. package/screenshots/truth/field-renderer/checkbox-unchecked.png +0 -0
  107. package/screenshots/truth/field-renderer/checkbox-with-errors.png +0 -0
  108. package/screenshots/truth/field-renderer/context-comparison.png +0 -0
  109. package/screenshots/truth/field-renderer/key-value-with-label.png +0 -0
  110. package/screenshots/truth/field-renderer/message-editor-with-label.png +0 -0
  111. package/screenshots/truth/field-renderer/select-multi.png +0 -0
  112. package/screenshots/truth/field-renderer/select-no-label.png +0 -0
  113. package/screenshots/truth/field-renderer/select-with-label.png +0 -0
  114. package/screenshots/truth/field-renderer/text-evaluated.png +0 -0
  115. package/screenshots/truth/field-renderer/text-no-label.png +0 -0
  116. package/screenshots/truth/field-renderer/text-with-errors.png +0 -0
  117. package/screenshots/truth/field-renderer/text-with-label.png +0 -0
  118. package/screenshots/truth/field-renderer/textarea-evaluated.png +0 -0
  119. package/screenshots/truth/field-renderer/textarea-with-label.png +0 -0
  120. package/screenshots/truth/integration/checkbox-markdown-errors.png +0 -0
  121. package/screenshots/truth/list/fields-dragging.png +0 -0
  122. package/screenshots/truth/list/fields-filtered.png +0 -0
  123. package/screenshots/truth/list/fields-hovered.png +0 -0
  124. package/screenshots/truth/list/fields.png +0 -0
  125. package/screenshots/truth/list/items-selected.png +0 -0
  126. package/screenshots/truth/list/items-updated.png +0 -0
  127. package/screenshots/truth/list/items.png +0 -0
  128. package/screenshots/truth/menu/menu-focused-with items.png +0 -0
  129. package/screenshots/truth/menu/menu-refresh-1.png +0 -0
  130. package/screenshots/truth/menu/menu-refresh-2.png +0 -0
  131. package/screenshots/truth/menu/menu-submenu.png +0 -0
  132. package/screenshots/truth/menu/menu-tasks-nextup.png +0 -0
  133. package/screenshots/truth/menu/menu-tasks.png +0 -0
  134. package/screenshots/truth/message-editor/autogrow-initial-content.png +0 -0
  135. package/screenshots/truth/message-editor/default.png +0 -0
  136. package/screenshots/truth/message-editor/drag-highlight.png +0 -0
  137. package/screenshots/truth/message-editor/filtered-attachments.png +0 -0
  138. package/screenshots/truth/message-editor/with-completion.png +0 -0
  139. package/screenshots/truth/message-editor/with-properties.png +0 -0
  140. package/screenshots/truth/modax/form.png +0 -0
  141. package/screenshots/truth/modax/simple.png +0 -0
  142. package/screenshots/truth/nodes/split_by_llm/editor/information-extraction.png +0 -0
  143. package/screenshots/truth/nodes/split_by_llm/editor/sentiment-analysis.png +0 -0
  144. package/screenshots/truth/nodes/split_by_llm/editor/summarization.png +0 -0
  145. package/screenshots/truth/nodes/split_by_llm/editor/translation-task.png +0 -0
  146. package/screenshots/truth/nodes/split_by_llm/render/information-extraction.png +0 -0
  147. package/screenshots/truth/nodes/split_by_llm/render/sentiment-analysis.png +0 -0
  148. package/screenshots/truth/nodes/split_by_llm/render/summarization.png +0 -0
  149. package/screenshots/truth/nodes/split_by_llm/render/translation-task.png +0 -0
  150. package/screenshots/truth/nodes/split_by_llm_categorize/editor/basic-categorization.png +0 -0
  151. package/screenshots/truth/nodes/split_by_llm_categorize/editor/custom-input-and-result-name.png +0 -0
  152. package/screenshots/truth/nodes/split_by_llm_categorize/editor/feedback-categorization.png +0 -0
  153. package/screenshots/truth/nodes/split_by_llm_categorize/editor/many-categories.png +0 -0
  154. package/screenshots/truth/nodes/split_by_llm_categorize/editor/minimal-categories.png +0 -0
  155. package/screenshots/truth/nodes/split_by_random/editor/ab-test-multiple-variants.png +0 -0
  156. package/screenshots/truth/nodes/split_by_random/editor/sampling-split.png +0 -0
  157. package/screenshots/truth/nodes/split_by_random/editor/three-way-split.png +0 -0
  158. package/screenshots/truth/nodes/split_by_random/editor/two-bucket-split.png +0 -0
  159. package/screenshots/truth/nodes/wait_for_digits/editor/basic-digits-wait.png +0 -0
  160. package/screenshots/truth/nodes/wait_for_digits/editor/phone-number-collection.png +0 -0
  161. package/screenshots/truth/nodes/wait_for_digits/editor/single-digit-with-timeout.png +0 -0
  162. package/screenshots/truth/nodes/wait_for_digits/editor/verification-code.png +0 -0
  163. package/screenshots/truth/nodes/wait_for_response/editor/basic-wait.png +0 -0
  164. package/screenshots/truth/nodes/wait_for_response/editor/custom-result-name.png +0 -0
  165. package/screenshots/truth/nodes/wait_for_response/editor/no-timeout.png +0 -0
  166. package/screenshots/truth/nodes/wait_for_response/editor/short-timeout.png +0 -0
  167. package/screenshots/truth/omnibox/selected.png +0 -0
  168. package/screenshots/truth/options/block.png +0 -0
  169. package/screenshots/truth/run-list/basic.png +0 -0
  170. package/screenshots/truth/select/disabled-multi-selection.png +0 -0
  171. package/screenshots/truth/select/disabled-selection.png +0 -0
  172. package/screenshots/truth/select/disabled.png +0 -0
  173. package/screenshots/truth/select/embedded.png +0 -0
  174. package/screenshots/truth/select/empty-options.png +0 -0
  175. package/screenshots/truth/select/expression-selected.png +0 -0
  176. package/screenshots/truth/select/expressions.png +0 -0
  177. package/screenshots/truth/select/functions.png +0 -0
  178. package/screenshots/truth/select/local-options.png +0 -0
  179. package/screenshots/truth/select/multi-with-endpoint.png +0 -0
  180. package/screenshots/truth/select/multiple-initial-values.png +0 -0
  181. package/screenshots/truth/select/remote-options.png +0 -0
  182. package/screenshots/truth/select/search-enabled.png +0 -0
  183. package/screenshots/truth/select/search-multi-no-matches.png +0 -0
  184. package/screenshots/truth/select/search-selected-focus.png +0 -0
  185. package/screenshots/truth/select/search-selected.png +0 -0
  186. package/screenshots/truth/select/search-with-selected.png +0 -0
  187. package/screenshots/truth/select/searching.png +0 -0
  188. package/screenshots/truth/select/selected-multi-maxitems-reached.png +0 -0
  189. package/screenshots/truth/select/selected-multi.png +0 -0
  190. package/screenshots/truth/select/selected-single.png +0 -0
  191. package/screenshots/truth/select/selection-clearable.png +0 -0
  192. package/screenshots/truth/select/static-initial-value.png +0 -0
  193. package/screenshots/truth/select/static-initial-via-selected.png +0 -0
  194. package/screenshots/truth/select/truncated-selection.png +0 -0
  195. package/screenshots/truth/select/with-placeholder.png +0 -0
  196. package/screenshots/truth/select/without-placeholder.png +0 -0
  197. package/screenshots/truth/slider/update-slider-on-circle-dragged.png +0 -0
  198. package/screenshots/truth/templates/default.png +0 -0
  199. package/screenshots/truth/templates/unapproved.png +0 -0
  200. package/screenshots/truth/textinput/autogrow-initial.png +0 -0
  201. package/screenshots/truth/textinput/input-disabled.png +0 -0
  202. package/screenshots/truth/textinput/input-focused.png +0 -0
  203. package/screenshots/truth/textinput/input-form.png +0 -0
  204. package/screenshots/truth/textinput/input-inserted.png +0 -0
  205. package/screenshots/truth/textinput/input-placeholder.png +0 -0
  206. package/screenshots/truth/textinput/input-updated.png +0 -0
  207. package/screenshots/truth/textinput/input.png +0 -0
  208. package/screenshots/truth/textinput/textarea-focused.png +0 -0
  209. package/screenshots/truth/textinput/textarea.png +0 -0
  210. package/src/events.ts +4 -2
  211. package/src/flow/Editor.ts +6 -3
  212. package/src/flow/actions/set_contact_channel.ts +1 -1
  213. package/src/flow/actions/set_contact_field.ts +1 -1
  214. package/src/flow/actions/set_contact_language.ts +1 -1
  215. package/src/flow/actions/set_contact_status.ts +1 -1
  216. package/src/flow/config.ts +2 -8
  217. package/src/flow/nodes/split_by_llm.ts +119 -0
  218. package/src/flow/nodes/split_by_llm_categorize.ts +13 -116
  219. package/src/flow/nodes/split_by_subflow.ts +153 -3
  220. package/src/flow/nodes/split_by_ticket.ts +135 -12
  221. package/src/flow/nodes/split_by_webhook.ts +187 -12
  222. package/src/live/ContactChat.ts +56 -58
  223. package/src/store/flow-definition.d.ts +2 -1
  224. package/src/utils.ts +192 -0
  225. package/test/nodes/split_by_llm.test.ts +232 -0
  226. package/test-assets/style.css +36 -234
  227. package/web-dev-server.config.mjs +26 -0
  228. package/web-test-runner.config.mjs +1 -1
  229. package/out-tsc/src/flow/actions/call_llm.js +0 -64
  230. package/out-tsc/src/flow/actions/call_llm.js.map +0 -1
  231. package/out-tsc/src/flow/actions/call_webhook.js +0 -131
  232. package/out-tsc/src/flow/actions/call_webhook.js.map +0 -1
  233. package/out-tsc/src/flow/actions/enter_flow.js +0 -14
  234. package/out-tsc/src/flow/actions/enter_flow.js.map +0 -1
  235. package/out-tsc/src/flow/actions/open_ticket.js +0 -73
  236. package/out-tsc/src/flow/actions/open_ticket.js.map +0 -1
  237. package/out-tsc/test/actions/call_llm.test.js +0 -103
  238. package/out-tsc/test/actions/call_llm.test.js.map +0 -1
  239. package/src/flow/actions/call_llm.ts +0 -66
  240. package/src/flow/actions/call_webhook.ts +0 -143
  241. package/src/flow/actions/enter_flow.ts +0 -15
  242. package/src/flow/actions/open_ticket.ts +0 -83
  243. package/test/actions/call_llm.test.ts +0 -137

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.