@botonic/plugin-flow-builder 0.44.2 → 0.45.0-alpha.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 (337) hide show
  1. package/lib/cjs/action/ai-agent.d.ts +2 -2
  2. package/lib/cjs/action/ai-agent.js.map +1 -1
  3. package/lib/cjs/action/fallback.d.ts +2 -2
  4. package/lib/cjs/action/fallback.js.map +1 -1
  5. package/lib/cjs/action/first-interaction.d.ts +2 -2
  6. package/lib/cjs/action/first-interaction.js +1 -1
  7. package/lib/cjs/action/first-interaction.js.map +1 -1
  8. package/lib/cjs/action/index.d.ts +4 -4
  9. package/lib/cjs/action/index.js.map +1 -1
  10. package/lib/cjs/action/knowledge-bases.d.ts +2 -2
  11. package/lib/cjs/action/payload.d.ts +2 -2
  12. package/lib/cjs/action/payload.js.map +1 -1
  13. package/lib/cjs/api.d.ts +3 -3
  14. package/lib/cjs/api.js +10 -5
  15. package/lib/cjs/api.js.map +1 -1
  16. package/lib/cjs/content-fields/content-fields-base.d.ts +4 -2
  17. package/lib/cjs/content-fields/content-fields-base.js +21 -2
  18. package/lib/cjs/content-fields/content-fields-base.js.map +1 -1
  19. package/lib/cjs/content-fields/flow-ai-agent.d.ts +3 -3
  20. package/lib/cjs/content-fields/flow-ai-agent.js +3 -1
  21. package/lib/cjs/content-fields/flow-ai-agent.js.map +1 -1
  22. package/lib/cjs/content-fields/flow-bot-action.d.ts +3 -3
  23. package/lib/cjs/content-fields/flow-bot-action.js.map +1 -1
  24. package/lib/cjs/content-fields/flow-button.d.ts +4 -4
  25. package/lib/cjs/content-fields/flow-button.js +6 -5
  26. package/lib/cjs/content-fields/flow-button.js.map +1 -1
  27. package/lib/cjs/content-fields/flow-capture-user-input.d.ts +2 -2
  28. package/lib/cjs/content-fields/flow-carousel.d.ts +4 -4
  29. package/lib/cjs/content-fields/flow-carousel.js +1 -1
  30. package/lib/cjs/content-fields/flow-carousel.js.map +1 -1
  31. package/lib/cjs/content-fields/flow-channel-conditional.d.ts +3 -3
  32. package/lib/cjs/content-fields/flow-channel-conditional.js.map +1 -1
  33. package/lib/cjs/content-fields/flow-country-conditional.d.ts +3 -3
  34. package/lib/cjs/content-fields/flow-country-conditional.js.map +1 -1
  35. package/lib/cjs/content-fields/flow-custom-conditional.d.ts +3 -3
  36. package/lib/cjs/content-fields/flow-custom-conditional.js +1 -2
  37. package/lib/cjs/content-fields/flow-custom-conditional.js.map +1 -1
  38. package/lib/cjs/content-fields/flow-element.d.ts +4 -4
  39. package/lib/cjs/content-fields/flow-element.js +3 -3
  40. package/lib/cjs/content-fields/flow-element.js.map +1 -1
  41. package/lib/cjs/content-fields/flow-go-to-flow.d.ts +3 -3
  42. package/lib/cjs/content-fields/flow-go-to-flow.js.map +1 -1
  43. package/lib/cjs/content-fields/flow-handoff.d.ts +3 -3
  44. package/lib/cjs/content-fields/flow-handoff.js +2 -2
  45. package/lib/cjs/content-fields/flow-handoff.js.map +1 -1
  46. package/lib/cjs/content-fields/flow-image.d.ts +2 -2
  47. package/lib/cjs/content-fields/flow-image.js +1 -1
  48. package/lib/cjs/content-fields/flow-image.js.map +1 -1
  49. package/lib/cjs/content-fields/flow-knowledge-base.d.ts +2 -2
  50. package/lib/cjs/content-fields/flow-knowledge-base.js.map +1 -1
  51. package/lib/cjs/content-fields/flow-queue-status-conditional.d.ts +3 -3
  52. package/lib/cjs/content-fields/flow-queue-status-conditional.js.map +1 -1
  53. package/lib/cjs/content-fields/flow-rating.d.ts +2 -2
  54. package/lib/cjs/content-fields/flow-rating.js +3 -3
  55. package/lib/cjs/content-fields/flow-rating.js.map +1 -1
  56. package/lib/cjs/content-fields/flow-text.d.ts +5 -5
  57. package/lib/cjs/content-fields/flow-text.js +1 -1
  58. package/lib/cjs/content-fields/flow-text.js.map +1 -1
  59. package/lib/cjs/content-fields/flow-video.d.ts +2 -2
  60. package/lib/cjs/content-fields/flow-video.js +1 -1
  61. package/lib/cjs/content-fields/flow-video.js.map +1 -1
  62. package/lib/cjs/content-fields/flow-webview.d.ts +2 -2
  63. package/lib/cjs/content-fields/flow-webview.js.map +1 -1
  64. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.d.ts +3 -3
  65. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js +10 -6
  66. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js.map +1 -1
  67. package/lib/cjs/content-fields/flow-whatsapp-template.d.ts +2 -2
  68. package/lib/cjs/content-fields/flow-whatsapp-template.js.map +1 -1
  69. package/lib/cjs/content-fields/hubtype-fields/ai-agent.d.ts +2 -2
  70. package/lib/cjs/content-fields/hubtype-fields/bot-action.d.ts +2 -2
  71. package/lib/cjs/content-fields/hubtype-fields/button.d.ts +1 -1
  72. package/lib/cjs/content-fields/hubtype-fields/capture-user-input.d.ts +2 -2
  73. package/lib/cjs/content-fields/hubtype-fields/carousel.d.ts +3 -3
  74. package/lib/cjs/content-fields/hubtype-fields/channel-conditional.d.ts +3 -3
  75. package/lib/cjs/content-fields/hubtype-fields/common.d.ts +2 -2
  76. package/lib/cjs/content-fields/hubtype-fields/country-conditional.d.ts +3 -3
  77. package/lib/cjs/content-fields/hubtype-fields/custom-conditional.d.ts +3 -3
  78. package/lib/cjs/content-fields/hubtype-fields/fallback.d.ts +2 -2
  79. package/lib/cjs/content-fields/hubtype-fields/function.d.ts +2 -2
  80. package/lib/cjs/content-fields/hubtype-fields/go-to-flow.d.ts +2 -2
  81. package/lib/cjs/content-fields/hubtype-fields/handoff.d.ts +2 -2
  82. package/lib/cjs/content-fields/hubtype-fields/image.d.ts +2 -2
  83. package/lib/cjs/content-fields/hubtype-fields/keyword.d.ts +2 -2
  84. package/lib/cjs/content-fields/hubtype-fields/knowledge-base.d.ts +2 -2
  85. package/lib/cjs/content-fields/hubtype-fields/nodes.d.ts +21 -21
  86. package/lib/cjs/content-fields/hubtype-fields/payload.d.ts +1 -1
  87. package/lib/cjs/content-fields/hubtype-fields/queue-status-conditional.d.ts +3 -3
  88. package/lib/cjs/content-fields/hubtype-fields/rating.d.ts +2 -2
  89. package/lib/cjs/content-fields/hubtype-fields/smart-intent.d.ts +2 -2
  90. package/lib/cjs/content-fields/hubtype-fields/text.d.ts +3 -3
  91. package/lib/cjs/content-fields/hubtype-fields/url.d.ts +1 -1
  92. package/lib/cjs/content-fields/hubtype-fields/video.d.ts +2 -2
  93. package/lib/cjs/content-fields/hubtype-fields/webview.d.ts +2 -2
  94. package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.d.ts +2 -2
  95. package/lib/cjs/content-fields/hubtype-fields/whatsapp-cta-url-button.d.ts +4 -4
  96. package/lib/cjs/content-fields/hubtype-fields/whatsapp-template.d.ts +4 -4
  97. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +3 -3
  98. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +2 -2
  99. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -1
  100. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +3 -3
  101. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +3 -2
  102. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -1
  103. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +3 -3
  104. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +3 -2
  105. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -1
  106. package/lib/cjs/filters/index.d.ts +3 -3
  107. package/lib/cjs/flow-factory.d.ts +4 -4
  108. package/lib/cjs/functions/index.d.ts +2 -2
  109. package/lib/cjs/helpers.d.ts +2 -2
  110. package/lib/cjs/index.d.ts +6 -5
  111. package/lib/cjs/index.js +5 -1
  112. package/lib/cjs/index.js.map +1 -1
  113. package/lib/cjs/tracking.d.ts +3 -3
  114. package/lib/cjs/tracking.js.map +1 -1
  115. package/lib/cjs/types.d.ts +4 -3
  116. package/lib/cjs/types.js.map +1 -1
  117. package/lib/cjs/user-input/capture-user-input-api.d.ts +3 -3
  118. package/lib/cjs/user-input/capture-user-input-api.js.map +1 -1
  119. package/lib/cjs/user-input/index.d.ts +3 -3
  120. package/lib/cjs/user-input/index.js.map +1 -1
  121. package/lib/cjs/user-input/keyword.d.ts +3 -3
  122. package/lib/cjs/user-input/keyword.js.map +1 -1
  123. package/lib/cjs/user-input/smart-intent.d.ts +3 -3
  124. package/lib/cjs/user-input/smart-intent.js +6 -3
  125. package/lib/cjs/user-input/smart-intent.js.map +1 -1
  126. package/lib/cjs/utils.d.ts +2 -3
  127. package/lib/cjs/utils.js +0 -21
  128. package/lib/cjs/utils.js.map +1 -1
  129. package/lib/cjs/webview/contents-context.d.ts +1 -1
  130. package/lib/cjs/webview/types.d.ts +1 -1
  131. package/lib/cjs/webview/use-webview-contents.d.ts +1 -1
  132. package/lib/esm/action/ai-agent.d.ts +2 -2
  133. package/lib/esm/action/ai-agent.js.map +1 -1
  134. package/lib/esm/action/fallback.d.ts +2 -2
  135. package/lib/esm/action/fallback.js.map +1 -1
  136. package/lib/esm/action/first-interaction.d.ts +2 -2
  137. package/lib/esm/action/first-interaction.js +1 -1
  138. package/lib/esm/action/first-interaction.js.map +1 -1
  139. package/lib/esm/action/index.d.ts +4 -4
  140. package/lib/esm/action/index.js.map +1 -1
  141. package/lib/esm/action/knowledge-bases.d.ts +2 -2
  142. package/lib/esm/action/payload.d.ts +2 -2
  143. package/lib/esm/action/payload.js.map +1 -1
  144. package/lib/esm/api.d.ts +3 -3
  145. package/lib/esm/api.js +10 -5
  146. package/lib/esm/api.js.map +1 -1
  147. package/lib/esm/content-fields/content-fields-base.d.ts +4 -2
  148. package/lib/esm/content-fields/content-fields-base.js +21 -2
  149. package/lib/esm/content-fields/content-fields-base.js.map +1 -1
  150. package/lib/esm/content-fields/flow-ai-agent.d.ts +3 -3
  151. package/lib/esm/content-fields/flow-ai-agent.js +3 -1
  152. package/lib/esm/content-fields/flow-ai-agent.js.map +1 -1
  153. package/lib/esm/content-fields/flow-bot-action.d.ts +3 -3
  154. package/lib/esm/content-fields/flow-bot-action.js.map +1 -1
  155. package/lib/esm/content-fields/flow-button.d.ts +4 -4
  156. package/lib/esm/content-fields/flow-button.js +6 -5
  157. package/lib/esm/content-fields/flow-button.js.map +1 -1
  158. package/lib/esm/content-fields/flow-capture-user-input.d.ts +2 -2
  159. package/lib/esm/content-fields/flow-carousel.d.ts +4 -4
  160. package/lib/esm/content-fields/flow-carousel.js +1 -1
  161. package/lib/esm/content-fields/flow-carousel.js.map +1 -1
  162. package/lib/esm/content-fields/flow-channel-conditional.d.ts +3 -3
  163. package/lib/esm/content-fields/flow-channel-conditional.js.map +1 -1
  164. package/lib/esm/content-fields/flow-country-conditional.d.ts +3 -3
  165. package/lib/esm/content-fields/flow-country-conditional.js.map +1 -1
  166. package/lib/esm/content-fields/flow-custom-conditional.d.ts +3 -3
  167. package/lib/esm/content-fields/flow-custom-conditional.js +1 -2
  168. package/lib/esm/content-fields/flow-custom-conditional.js.map +1 -1
  169. package/lib/esm/content-fields/flow-element.d.ts +4 -4
  170. package/lib/esm/content-fields/flow-element.js +3 -3
  171. package/lib/esm/content-fields/flow-element.js.map +1 -1
  172. package/lib/esm/content-fields/flow-go-to-flow.d.ts +3 -3
  173. package/lib/esm/content-fields/flow-go-to-flow.js.map +1 -1
  174. package/lib/esm/content-fields/flow-handoff.d.ts +3 -3
  175. package/lib/esm/content-fields/flow-handoff.js +2 -2
  176. package/lib/esm/content-fields/flow-handoff.js.map +1 -1
  177. package/lib/esm/content-fields/flow-image.d.ts +2 -2
  178. package/lib/esm/content-fields/flow-image.js +1 -1
  179. package/lib/esm/content-fields/flow-image.js.map +1 -1
  180. package/lib/esm/content-fields/flow-knowledge-base.d.ts +2 -2
  181. package/lib/esm/content-fields/flow-knowledge-base.js.map +1 -1
  182. package/lib/esm/content-fields/flow-queue-status-conditional.d.ts +3 -3
  183. package/lib/esm/content-fields/flow-queue-status-conditional.js.map +1 -1
  184. package/lib/esm/content-fields/flow-rating.d.ts +2 -2
  185. package/lib/esm/content-fields/flow-rating.js +3 -3
  186. package/lib/esm/content-fields/flow-rating.js.map +1 -1
  187. package/lib/esm/content-fields/flow-text.d.ts +5 -5
  188. package/lib/esm/content-fields/flow-text.js +1 -1
  189. package/lib/esm/content-fields/flow-text.js.map +1 -1
  190. package/lib/esm/content-fields/flow-video.d.ts +2 -2
  191. package/lib/esm/content-fields/flow-video.js +1 -1
  192. package/lib/esm/content-fields/flow-video.js.map +1 -1
  193. package/lib/esm/content-fields/flow-webview.d.ts +2 -2
  194. package/lib/esm/content-fields/flow-webview.js.map +1 -1
  195. package/lib/esm/content-fields/flow-whatsapp-cta-url-button.d.ts +3 -3
  196. package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js +10 -6
  197. package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js.map +1 -1
  198. package/lib/esm/content-fields/flow-whatsapp-template.d.ts +2 -2
  199. package/lib/esm/content-fields/flow-whatsapp-template.js.map +1 -1
  200. package/lib/esm/content-fields/hubtype-fields/ai-agent.d.ts +2 -2
  201. package/lib/esm/content-fields/hubtype-fields/bot-action.d.ts +2 -2
  202. package/lib/esm/content-fields/hubtype-fields/button.d.ts +1 -1
  203. package/lib/esm/content-fields/hubtype-fields/capture-user-input.d.ts +2 -2
  204. package/lib/esm/content-fields/hubtype-fields/carousel.d.ts +3 -3
  205. package/lib/esm/content-fields/hubtype-fields/channel-conditional.d.ts +3 -3
  206. package/lib/esm/content-fields/hubtype-fields/common.d.ts +2 -2
  207. package/lib/esm/content-fields/hubtype-fields/country-conditional.d.ts +3 -3
  208. package/lib/esm/content-fields/hubtype-fields/custom-conditional.d.ts +3 -3
  209. package/lib/esm/content-fields/hubtype-fields/fallback.d.ts +2 -2
  210. package/lib/esm/content-fields/hubtype-fields/function.d.ts +2 -2
  211. package/lib/esm/content-fields/hubtype-fields/go-to-flow.d.ts +2 -2
  212. package/lib/esm/content-fields/hubtype-fields/handoff.d.ts +2 -2
  213. package/lib/esm/content-fields/hubtype-fields/image.d.ts +2 -2
  214. package/lib/esm/content-fields/hubtype-fields/keyword.d.ts +2 -2
  215. package/lib/esm/content-fields/hubtype-fields/knowledge-base.d.ts +2 -2
  216. package/lib/esm/content-fields/hubtype-fields/nodes.d.ts +21 -21
  217. package/lib/esm/content-fields/hubtype-fields/payload.d.ts +1 -1
  218. package/lib/esm/content-fields/hubtype-fields/queue-status-conditional.d.ts +3 -3
  219. package/lib/esm/content-fields/hubtype-fields/rating.d.ts +2 -2
  220. package/lib/esm/content-fields/hubtype-fields/smart-intent.d.ts +2 -2
  221. package/lib/esm/content-fields/hubtype-fields/text.d.ts +3 -3
  222. package/lib/esm/content-fields/hubtype-fields/url.d.ts +1 -1
  223. package/lib/esm/content-fields/hubtype-fields/video.d.ts +2 -2
  224. package/lib/esm/content-fields/hubtype-fields/webview.d.ts +2 -2
  225. package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.d.ts +2 -2
  226. package/lib/esm/content-fields/hubtype-fields/whatsapp-cta-url-button.d.ts +4 -4
  227. package/lib/esm/content-fields/hubtype-fields/whatsapp-template.d.ts +4 -4
  228. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +3 -3
  229. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +2 -2
  230. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -1
  231. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +3 -3
  232. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +3 -2
  233. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -1
  234. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +3 -3
  235. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +3 -2
  236. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -1
  237. package/lib/esm/filters/index.d.ts +3 -3
  238. package/lib/esm/flow-factory.d.ts +4 -4
  239. package/lib/esm/functions/index.d.ts +2 -2
  240. package/lib/esm/helpers.d.ts +2 -2
  241. package/lib/esm/index.d.ts +6 -5
  242. package/lib/esm/index.js +5 -1
  243. package/lib/esm/index.js.map +1 -1
  244. package/lib/esm/tracking.d.ts +3 -3
  245. package/lib/esm/tracking.js.map +1 -1
  246. package/lib/esm/types.d.ts +4 -3
  247. package/lib/esm/types.js.map +1 -1
  248. package/lib/esm/user-input/capture-user-input-api.d.ts +3 -3
  249. package/lib/esm/user-input/capture-user-input-api.js.map +1 -1
  250. package/lib/esm/user-input/index.d.ts +3 -3
  251. package/lib/esm/user-input/index.js.map +1 -1
  252. package/lib/esm/user-input/keyword.d.ts +3 -3
  253. package/lib/esm/user-input/keyword.js.map +1 -1
  254. package/lib/esm/user-input/smart-intent.d.ts +3 -3
  255. package/lib/esm/user-input/smart-intent.js +6 -3
  256. package/lib/esm/user-input/smart-intent.js.map +1 -1
  257. package/lib/esm/utils.d.ts +2 -3
  258. package/lib/esm/utils.js +0 -21
  259. package/lib/esm/utils.js.map +1 -1
  260. package/lib/esm/webview/contents-context.d.ts +1 -1
  261. package/lib/esm/webview/types.d.ts +1 -1
  262. package/lib/esm/webview/use-webview-contents.d.ts +1 -1
  263. package/package.json +5 -8
  264. package/src/action/ai-agent.ts +7 -7
  265. package/src/action/fallback.ts +5 -5
  266. package/src/action/first-interaction.ts +5 -5
  267. package/src/action/index.tsx +6 -6
  268. package/src/action/knowledge-bases.ts +7 -7
  269. package/src/action/payload.ts +4 -4
  270. package/src/api.ts +31 -21
  271. package/src/content-fields/content-fields-base.ts +32 -4
  272. package/src/content-fields/flow-ai-agent.tsx +11 -4
  273. package/src/content-fields/flow-bot-action.tsx +4 -4
  274. package/src/content-fields/flow-button.tsx +15 -12
  275. package/src/content-fields/flow-capture-user-input.tsx +2 -2
  276. package/src/content-fields/flow-carousel.tsx +6 -7
  277. package/src/content-fields/flow-channel-conditional.tsx +4 -4
  278. package/src/content-fields/flow-country-conditional.tsx +4 -4
  279. package/src/content-fields/flow-custom-conditional.tsx +5 -6
  280. package/src/content-fields/flow-element.tsx +16 -7
  281. package/src/content-fields/flow-go-to-flow.tsx +4 -4
  282. package/src/content-fields/flow-handoff.tsx +11 -5
  283. package/src/content-fields/flow-image.tsx +3 -4
  284. package/src/content-fields/flow-knowledge-base.tsx +2 -4
  285. package/src/content-fields/flow-queue-status-conditional.tsx +4 -5
  286. package/src/content-fields/flow-rating.tsx +5 -5
  287. package/src/content-fields/flow-text.tsx +10 -7
  288. package/src/content-fields/flow-video.tsx +3 -4
  289. package/src/content-fields/flow-webview.tsx +3 -3
  290. package/src/content-fields/flow-whatsapp-cta-url-button.tsx +25 -22
  291. package/src/content-fields/flow-whatsapp-template.tsx +10 -11
  292. package/src/content-fields/hubtype-fields/ai-agent.ts +2 -2
  293. package/src/content-fields/hubtype-fields/bot-action.ts +2 -2
  294. package/src/content-fields/hubtype-fields/button.ts +1 -1
  295. package/src/content-fields/hubtype-fields/capture-user-input.ts +2 -2
  296. package/src/content-fields/hubtype-fields/carousel.ts +3 -3
  297. package/src/content-fields/hubtype-fields/channel-conditional.ts +3 -3
  298. package/src/content-fields/hubtype-fields/common.ts +5 -2
  299. package/src/content-fields/hubtype-fields/country-conditional.ts +3 -3
  300. package/src/content-fields/hubtype-fields/custom-conditional.ts +3 -3
  301. package/src/content-fields/hubtype-fields/fallback.ts +2 -2
  302. package/src/content-fields/hubtype-fields/function.ts +2 -2
  303. package/src/content-fields/hubtype-fields/go-to-flow.ts +2 -2
  304. package/src/content-fields/hubtype-fields/handoff.ts +2 -2
  305. package/src/content-fields/hubtype-fields/image.ts +2 -2
  306. package/src/content-fields/hubtype-fields/keyword.ts +2 -2
  307. package/src/content-fields/hubtype-fields/knowledge-base.ts +2 -2
  308. package/src/content-fields/hubtype-fields/nodes.ts +21 -21
  309. package/src/content-fields/hubtype-fields/payload.ts +1 -1
  310. package/src/content-fields/hubtype-fields/queue-status-conditional.ts +3 -3
  311. package/src/content-fields/hubtype-fields/rating.ts +2 -2
  312. package/src/content-fields/hubtype-fields/smart-intent.ts +2 -2
  313. package/src/content-fields/hubtype-fields/text.ts +3 -3
  314. package/src/content-fields/hubtype-fields/url.ts +1 -1
  315. package/src/content-fields/hubtype-fields/video.ts +2 -2
  316. package/src/content-fields/hubtype-fields/webview.ts +2 -2
  317. package/src/content-fields/hubtype-fields/whatsapp-button-list.ts +2 -2
  318. package/src/content-fields/hubtype-fields/whatsapp-cta-url-button.ts +4 -4
  319. package/src/content-fields/hubtype-fields/whatsapp-template.ts +4 -4
  320. package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx +11 -5
  321. package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx +10 -5
  322. package/src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx +14 -9
  323. package/src/filters/index.ts +3 -3
  324. package/src/flow-factory.ts +5 -5
  325. package/src/functions/index.ts +2 -2
  326. package/src/helpers.ts +2 -2
  327. package/src/index.ts +24 -19
  328. package/src/tracking.ts +5 -5
  329. package/src/types.ts +8 -7
  330. package/src/user-input/capture-user-input-api.ts +4 -4
  331. package/src/user-input/index.ts +6 -3
  332. package/src/user-input/keyword.ts +4 -4
  333. package/src/user-input/smart-intent.ts +14 -8
  334. package/src/utils.ts +3 -35
  335. package/src/webview/contents-context.ts +1 -1
  336. package/src/webview/types.ts +1 -1
  337. package/src/webview/use-webview-contents.ts +6 -6
@@ -1,13 +1,13 @@
1
- import { EventAction, EventConditionalChannel } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
1
+ import { EventAction, type EventConditionalChannel } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
3
3
 
4
4
  import {
5
5
  getCommonFlowContentEventArgsForContentId,
6
6
  trackEvent,
7
7
  } from '../tracking'
8
8
  import { ContentFieldsBase } from './content-fields-base'
9
- import { HtChannelConditionalNode } from './hubtype-fields/channel-conditional'
10
- import { HtFunctionResult } from './hubtype-fields/function'
9
+ import type { HtChannelConditionalNode } from './hubtype-fields/channel-conditional'
10
+ import type { HtFunctionResult } from './hubtype-fields/function'
11
11
 
12
12
  export class FlowChannelConditional extends ContentFieldsBase {
13
13
  public resultMapping: HtFunctionResult[] = []
@@ -1,13 +1,13 @@
1
- import { EventAction, EventConditionalCountry } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
1
+ import { EventAction, type EventConditionalCountry } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
3
3
 
4
4
  import {
5
5
  getCommonFlowContentEventArgsForContentId,
6
6
  trackEvent,
7
7
  } from '../tracking'
8
8
  import { ContentFieldsBase } from './content-fields-base'
9
- import { HtFunctionResult } from './hubtype-fields'
10
- import { HtCountryConditionalNode } from './hubtype-fields/country-conditional'
9
+ import type { HtFunctionResult } from './hubtype-fields'
10
+ import type { HtCountryConditionalNode } from './hubtype-fields/country-conditional'
11
11
 
12
12
  export class FlowCountryConditional extends ContentFieldsBase {
13
13
  public resultMapping: HtFunctionResult[] = []
@@ -1,14 +1,13 @@
1
- import { EventAction, EventConditionalCustom } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
1
+ import { EventAction, type EventConditionalCustom } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
3
3
 
4
4
  import {
5
5
  getCommonFlowContentEventArgsForContentId,
6
6
  trackEvent,
7
7
  } from '../tracking'
8
- import { getValueFromKeyPath } from '../utils'
9
8
  import { ContentFieldsBase } from './content-fields-base'
10
- import { HtCustomConditionalNode } from './hubtype-fields/custom-conditional'
11
- import {
9
+ import type { HtCustomConditionalNode } from './hubtype-fields/custom-conditional'
10
+ import type {
12
11
  HtFunctionArgument,
13
12
  HtFunctionArguments,
14
13
  HtFunctionResult,
@@ -53,7 +52,7 @@ export class FlowCustomConditional extends ContentFieldsBase {
53
52
  throw new Error(`Key path not found for node ${this.code}`)
54
53
  }
55
54
 
56
- const botVariable = getValueFromKeyPath(request, keyPath)
55
+ const botVariable = this.getValueFromKeyPath(request, keyPath)
57
56
 
58
57
  let conditionalResult =
59
58
  this.resultMapping.find(rMap => rMap.result === botVariable) ||
@@ -1,10 +1,16 @@
1
- import { Button } from '@botonic/core'
2
- import { ActionRequest, Element, Pic, Subtitle, Title } from '@botonic/react'
1
+ import type { Button } from '@botonic/core'
2
+ import {
3
+ type ActionRequest,
4
+ Element,
5
+ Pic,
6
+ Subtitle,
7
+ Title,
8
+ } from '@botonic/react'
3
9
 
4
- import { FlowBuilderApi } from '../api'
10
+ import type { FlowBuilderApi } from '../api'
5
11
  import { ContentFieldsBase } from './content-fields-base'
6
12
  import { FlowButton } from './flow-button'
7
- import { HtCarouselElement } from './hubtype-fields'
13
+ import type { HtCarouselElement } from './hubtype-fields'
8
14
 
9
15
  export class FlowElement extends ContentFieldsBase {
10
16
  public title = ''
@@ -19,9 +25,12 @@ export class FlowElement extends ContentFieldsBase {
19
25
  cmsApi: FlowBuilderApi
20
26
  ): FlowElement {
21
27
  const newElement = new FlowElement(component.id)
22
- newElement.title = this.getTextByLocale(locale, component.title)
23
- newElement.subtitle = this.getTextByLocale(locale, component.subtitle)
24
- newElement.image = this.getAssetByLocale(locale, component.image)
28
+ newElement.title = FlowElement.getTextByLocale(locale, component.title)
29
+ newElement.subtitle = FlowElement.getTextByLocale(
30
+ locale,
31
+ component.subtitle
32
+ )
33
+ newElement.image = FlowElement.getAssetByLocale(locale, component.image)
25
34
  newElement.button = FlowButton.fromHubtypeCMS(
26
35
  component.button,
27
36
  locale,
@@ -1,13 +1,13 @@
1
- import { EventAction, EventRedirectFlow } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
1
+ import { EventAction, type EventRedirectFlow } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
3
3
 
4
- import { FlowBuilderApi } from '../api'
4
+ import type { FlowBuilderApi } from '../api'
5
5
  import {
6
6
  getCommonFlowContentEventArgsForContentId,
7
7
  trackEvent,
8
8
  } from '../tracking'
9
9
  import { ContentFieldsBase } from './content-fields-base'
10
- import { HtGoToFlow, HtNodeWithContent } from './hubtype-fields'
10
+ import type { HtGoToFlow, HtNodeWithContent } from './hubtype-fields'
11
11
 
12
12
  export class FlowGoToFlow extends ContentFieldsBase {
13
13
  public flowTargetId: string = ''
@@ -1,10 +1,10 @@
1
1
  import { HandOffBuilder, HelpdeskEvent, isDev, isWebchat } from '@botonic/core'
2
- import { ActionRequest, WebchatSettings } from '@botonic/react'
2
+ import { type ActionRequest, WebchatSettings } from '@botonic/react'
3
3
 
4
- import { FlowBuilderApi } from '../api'
4
+ import type { FlowBuilderApi } from '../api'
5
5
  import { getCommonFlowContentEventArgsForContentId } from '../tracking'
6
6
  import { ContentFieldsBase } from './content-fields-base'
7
- import { HtHandoffNode, HtQueueLocale } from './hubtype-fields'
7
+ import type { HtHandoffNode, HtQueueLocale } from './hubtype-fields'
8
8
 
9
9
  export class FlowHandoff extends ContentFieldsBase {
10
10
  public queue?: HtQueueLocale
@@ -20,8 +20,14 @@ export class FlowHandoff extends ContentFieldsBase {
20
20
  ): FlowHandoff {
21
21
  const newHandoff = new FlowHandoff(cmsHandoff.id)
22
22
  newHandoff.code = cmsHandoff.code
23
- newHandoff.queue = this.getQueueByLocale(locale, cmsHandoff.content.queue)
24
- newHandoff.onFinishPayload = this.getOnFinishPayload(cmsHandoff, cmsApi)
23
+ newHandoff.queue = FlowHandoff.getQueueByLocale(
24
+ locale,
25
+ cmsHandoff.content.queue
26
+ )
27
+ newHandoff.onFinishPayload = FlowHandoff.getOnFinishPayload(
28
+ cmsHandoff,
29
+ cmsApi
30
+ )
25
31
  newHandoff.handoffAutoAssign = cmsHandoff.content.has_auto_assign
26
32
  newHandoff.hasQueuePositionChangedNotificationsEnabled =
27
33
  cmsHandoff.content.has_queue_position_changed_notifications_enabled
@@ -1,9 +1,8 @@
1
- import { ActionRequest, Image } from '@botonic/react'
2
- import React from 'react'
1
+ import { type ActionRequest, Image } from '@botonic/react'
3
2
 
4
3
  import { trackOneContent } from '../tracking'
5
4
  import { ContentFieldsBase } from './content-fields-base'
6
- import { HtImageNode } from './hubtype-fields'
5
+ import type { HtImageNode } from './hubtype-fields'
7
6
 
8
7
  export class FlowImage extends ContentFieldsBase {
9
8
  public src = ''
@@ -11,7 +10,7 @@ export class FlowImage extends ContentFieldsBase {
11
10
  static fromHubtypeCMS(component: HtImageNode, locale: string): FlowImage {
12
11
  const newImage = new FlowImage(component.id)
13
12
  newImage.code = component.code
14
- newImage.src = this.getAssetByLocale(locale, component.content.image)
13
+ newImage.src = FlowImage.getAssetByLocale(locale, component.content.image)
15
14
  newImage.followUp = component.follow_up
16
15
 
17
16
  return newImage
@@ -1,9 +1,7 @@
1
- import { ActionRequest, Text } from '@botonic/react'
2
- import React from 'react'
1
+ import { type ActionRequest, Text } from '@botonic/react'
3
2
 
4
- import { trackOneContent } from '../tracking'
5
3
  import { ContentFieldsBase } from './content-fields-base'
6
- import { HtKnowledgeBaseNode } from './hubtype-fields'
4
+ import type { HtKnowledgeBaseNode } from './hubtype-fields'
7
5
 
8
6
  export const DISABLED_MEMORY_LENGTH = 1
9
7
 
@@ -1,6 +1,5 @@
1
- import { EventAction, EventConditionalQueueStatus } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
3
- import React from 'react'
1
+ import { EventAction, type EventConditionalQueueStatus } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
4
3
 
5
4
  import { getArgumentsByLocale } from '../functions'
6
5
  import { HubtypeQueuesApi } from '../services/hubtype-queues-api'
@@ -9,11 +8,11 @@ import {
9
8
  trackEvent,
10
9
  } from '../tracking'
11
10
  import { ContentFieldsBase } from './content-fields-base'
12
- import {
11
+ import type {
13
12
  HtFunctionArguments,
14
13
  HtFunctionResult,
15
14
  } from './hubtype-fields/function'
16
- import {
15
+ import type {
17
16
  HtQueueStatusConditionalNode,
18
17
  HtQueueStatusConditionalResultMapping,
19
18
  } from './hubtype-fields/queue-status-conditional'
@@ -1,6 +1,6 @@
1
1
  import { isDev, isWebchat, isWhatsapp } from '@botonic/core'
2
2
  import {
3
- ActionRequest,
3
+ type ActionRequest,
4
4
  CustomRatingMessage,
5
5
  Text,
6
6
  WhatsappButtonList,
@@ -10,7 +10,7 @@ import { getFlowBuilderPlugin } from '../helpers'
10
10
  import { trackOneContent } from '../tracking'
11
11
  import { ContentFieldsBase } from './content-fields-base'
12
12
  import { FlowButton } from './flow-button'
13
- import { HtRatingNode, RatingType } from './hubtype-fields'
13
+ import { type HtRatingNode, RatingType } from './hubtype-fields'
14
14
 
15
15
  export class FlowRating extends ContentFieldsBase {
16
16
  public text = ''
@@ -22,8 +22,8 @@ export class FlowRating extends ContentFieldsBase {
22
22
  static fromHubtypeCMS(cmsText: HtRatingNode, locale: string): FlowRating {
23
23
  const newRating = new FlowRating(cmsText.id)
24
24
  newRating.code = cmsText.code
25
- newRating.text = this.getTextByLocale(locale, cmsText.content.text)
26
- newRating.sendButtonText = this.getTextByLocale(
25
+ newRating.text = FlowRating.getTextByLocale(locale, cmsText.content.text)
26
+ newRating.sendButtonText = FlowRating.getTextByLocale(
27
27
  locale,
28
28
  cmsText.content.send_button_text
29
29
  )
@@ -31,7 +31,7 @@ export class FlowRating extends ContentFieldsBase {
31
31
  newRating.buttons = cmsText.content.buttons.map(button =>
32
32
  FlowButton.fromRating(button)
33
33
  )
34
- newRating.openListButtonText = this.getTextByLocale(
34
+ newRating.openListButtonText = FlowRating.getTextByLocale(
35
35
  locale,
36
36
  cmsText.content.open_list_button_text
37
37
  )
@@ -1,13 +1,16 @@
1
- import { TextMessage, TextWithButtonsMessage } from '@botonic/core'
2
- import { ActionRequest, Text } from '@botonic/react'
3
- import React from 'react'
1
+ import type {
2
+ BotExecutorMessage,
3
+ TextMessage,
4
+ TextWithButtonsMessage,
5
+ } from '@botonic/core'
6
+ import { type ActionRequest, Text } from '@botonic/react'
4
7
 
5
- import { FlowBuilderApi } from '../api'
8
+ import type { FlowBuilderApi } from '../api'
6
9
  import { EMPTY_PAYLOAD, SOURCE_INFO_SEPARATOR } from '../constants'
7
10
  import { trackOneContent } from '../tracking'
8
11
  import { ContentFieldsBase } from './content-fields-base'
9
12
  import { FlowButton } from './flow-button'
10
- import { HtButtonStyle, HtTextNode } from './hubtype-fields'
13
+ import { HtButtonStyle, type HtTextNode } from './hubtype-fields'
11
14
 
12
15
  export class FlowText extends ContentFieldsBase {
13
16
  public text = ''
@@ -22,7 +25,7 @@ export class FlowText extends ContentFieldsBase {
22
25
  const newText = new FlowText(cmsText.id)
23
26
  newText.code = cmsText.code
24
27
  newText.buttonStyle = cmsText.content.buttons_style || HtButtonStyle.BUTTON
25
- newText.text = this.getTextByLocale(locale, cmsText.content.text)
28
+ newText.text = FlowText.getTextByLocale(locale, cmsText.content.text)
26
29
  newText.buttons = cmsText.content.buttons.map(button =>
27
30
  FlowButton.fromHubtypeCMS(button, locale, cmsApi)
28
31
  )
@@ -40,7 +43,7 @@ export class FlowText extends ContentFieldsBase {
40
43
 
41
44
  static fromAIAgent(
42
45
  id: string,
43
- textMessage: TextMessage | TextWithButtonsMessage
46
+ textMessage: TextMessage | TextWithButtonsMessage | BotExecutorMessage
44
47
  ): JSX.Element {
45
48
  if (textMessage.type === 'text') {
46
49
  return <Text key={id}>{textMessage.content.text}</Text>
@@ -1,9 +1,8 @@
1
- import { ActionRequest, Video } from '@botonic/react'
2
- import React from 'react'
1
+ import { type ActionRequest, Video } from '@botonic/react'
3
2
 
4
3
  import { trackOneContent } from '../tracking'
5
4
  import { ContentFieldsBase } from './content-fields-base'
6
- import { HtVideoNode } from './hubtype-fields'
5
+ import type { HtVideoNode } from './hubtype-fields'
7
6
 
8
7
  export class FlowVideo extends ContentFieldsBase {
9
8
  public src = ''
@@ -11,7 +10,7 @@ export class FlowVideo extends ContentFieldsBase {
11
10
  static fromHubtypeCMS(component: HtVideoNode, locale: string): FlowVideo {
12
11
  const newVideo = new FlowVideo(component.id)
13
12
  newVideo.code = component.code
14
- newVideo.src = this.getVideoByLocale(locale, component.content.video)
13
+ newVideo.src = FlowVideo.getVideoByLocale(locale, component.content.video)
15
14
  newVideo.followUp = component.follow_up
16
15
 
17
16
  return newVideo
@@ -1,12 +1,12 @@
1
- import { EventAction, EventWebviewActionTriggered } from '@botonic/core'
2
- import { ActionRequest } from '@botonic/react'
1
+ import { EventAction, type EventWebviewActionTriggered } from '@botonic/core'
2
+ import type { ActionRequest } from '@botonic/react'
3
3
 
4
4
  import {
5
5
  getCommonFlowContentEventArgsForContentId,
6
6
  trackEvent,
7
7
  } from '../tracking'
8
8
  import { ContentFieldsBase } from './content-fields-base'
9
- import { HtWebviewExits, HtWebviewNode } from './hubtype-fields'
9
+ import type { HtWebviewExits, HtWebviewNode } from './hubtype-fields'
10
10
 
11
11
  export class FlowWebview extends ContentFieldsBase {
12
12
  public webviewTargetId: string = ''
@@ -1,18 +1,17 @@
1
1
  import { isWhatsapp } from '@botonic/core'
2
2
  import {
3
- ActionRequest,
3
+ type ActionRequest,
4
4
  Button,
5
5
  Text,
6
6
  WhatsappCTAUrlButton,
7
7
  WhatsappCTAUrlHeaderType,
8
8
  } from '@botonic/react'
9
- import React from 'react'
10
9
 
11
- import { FlowBuilderApi } from '../api'
10
+ import type { FlowBuilderApi } from '../api'
12
11
  import { trackOneContent } from '../tracking'
13
12
  import { ContentFieldsBase } from './content-fields-base'
14
13
  import { FlowButton } from './flow-button'
15
- import { HtUrlNode, HtWhatsappCTAUrlButtonNode } from './hubtype-fields'
14
+ import type { HtUrlNode, HtWhatsappCTAUrlButtonNode } from './hubtype-fields'
16
15
 
17
16
  export class FlowWhatsappCtaUrlButtonNode extends ContentFieldsBase {
18
17
  public text = ''
@@ -32,7 +31,7 @@ export class FlowWhatsappCtaUrlButtonNode extends ContentFieldsBase {
32
31
  ): FlowWhatsappCtaUrlButtonNode {
33
32
  const whatsappCtaUrlButton = new FlowWhatsappCtaUrlButtonNode(component.id)
34
33
  whatsappCtaUrlButton.code = component.code
35
- whatsappCtaUrlButton.text = this.getTextByLocale(
34
+ whatsappCtaUrlButton.text = FlowWhatsappCtaUrlButtonNode.getTextByLocale(
36
35
  locale,
37
36
  component.content.text
38
37
  )
@@ -41,7 +40,7 @@ export class FlowWhatsappCtaUrlButtonNode extends ContentFieldsBase {
41
40
  component,
42
41
  locale
43
42
  )
44
- whatsappCtaUrlButton.footer = this.getTextByLocale(
43
+ whatsappCtaUrlButton.footer = FlowWhatsappCtaUrlButtonNode.getTextByLocale(
45
44
  locale,
46
45
  component.content.footer
47
46
  )
@@ -75,40 +74,44 @@ export class FlowWhatsappCtaUrlButtonNode extends ContentFieldsBase {
75
74
  .header_type as WhatsappCTAUrlHeaderType
76
75
 
77
76
  if (component.content.header_type === WhatsappCTAUrlHeaderType.Text) {
78
- whatsappCtaUrlButton.header = this.getTextByLocale(
79
- locale,
80
- component.content.header
81
- )
77
+ whatsappCtaUrlButton.header =
78
+ FlowWhatsappCtaUrlButtonNode.getTextByLocale(
79
+ locale,
80
+ component.content.header
81
+ )
82
82
  }
83
83
 
84
84
  if (
85
85
  component.content.header_type === WhatsappCTAUrlHeaderType.Image &&
86
86
  component.content.header_image
87
87
  ) {
88
- whatsappCtaUrlButton.headerImage = this.getAssetByLocale(
89
- locale,
90
- component.content.header_image
91
- )
88
+ whatsappCtaUrlButton.headerImage =
89
+ FlowWhatsappCtaUrlButtonNode.getAssetByLocale(
90
+ locale,
91
+ component.content.header_image
92
+ )
92
93
  }
93
94
 
94
95
  if (
95
96
  component.content.header_type === WhatsappCTAUrlHeaderType.Video &&
96
97
  component.content.header_video
97
98
  ) {
98
- whatsappCtaUrlButton.headerVideo = this.getAssetByLocale(
99
- locale,
100
- component.content.header_video
101
- )
99
+ whatsappCtaUrlButton.headerVideo =
100
+ FlowWhatsappCtaUrlButtonNode.getAssetByLocale(
101
+ locale,
102
+ component.content.header_video
103
+ )
102
104
  }
103
105
 
104
106
  if (
105
107
  component.content.header_type === WhatsappCTAUrlHeaderType.Document &&
106
108
  component.content.header_document
107
109
  ) {
108
- whatsappCtaUrlButton.headerDocument = this.getAssetByLocale(
109
- locale,
110
- component.content.header_document
111
- )
110
+ whatsappCtaUrlButton.headerDocument =
111
+ FlowWhatsappCtaUrlButtonNode.getAssetByLocale(
112
+ locale,
113
+ component.content.header_document
114
+ )
112
115
  }
113
116
  }
114
117
 
@@ -1,25 +1,24 @@
1
1
  import { isWhatsapp } from '@botonic/core'
2
2
  import {
3
- ActionRequest,
3
+ type ActionRequest,
4
4
  Text,
5
- WhatsappTemplate,
6
- WhatsappTemplateButton,
7
5
  WhatsAppTemplateButtonSubType,
8
- WhatsappTemplateComponentBody,
9
- WhatsappTemplateComponentButtons,
10
- WhatsappTemplateComponentHeader,
11
6
  WhatsAppTemplateComponentType,
12
7
  WhatsAppTemplateParameterType,
13
- WhatsappTemplateQuickReplyButton,
14
- WhatsappTemplateUrlButton,
15
- WhatsappTemplateVoiceCallButton,
8
+ WhatsappTemplate,
9
+ type WhatsappTemplateButton,
10
+ type WhatsappTemplateComponentBody,
11
+ type WhatsappTemplateComponentButtons,
12
+ type WhatsappTemplateComponentHeader,
13
+ type WhatsappTemplateQuickReplyButton,
14
+ type WhatsappTemplateUrlButton,
15
+ type WhatsappTemplateVoiceCallButton,
16
16
  } from '@botonic/react'
17
- import React from 'react'
18
17
 
19
18
  import { getFlowBuilderPlugin } from '../helpers'
20
19
  import { trackOneContent } from '../tracking'
21
20
  import { ContentFieldsBase } from './content-fields-base'
22
- import {
21
+ import type {
23
22
  HtButton,
24
23
  HtMediaFileLocale,
25
24
  HtWhatsAppTemplate,
@@ -1,5 +1,5 @@
1
- import { HtBaseNode } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtInputGuardrailRule {
5
5
  name: string
@@ -1,5 +1,5 @@
1
- import { HtBaseNode } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtBotActionNode extends HtBaseNode {
5
5
  id: string
@@ -1,4 +1,4 @@
1
- import { HtNodeLink, HtTextLocale, HtUrlLocale } from './common'
1
+ import type { HtNodeLink, HtTextLocale, HtUrlLocale } from './common'
2
2
 
3
3
  export interface HtButton {
4
4
  id: string
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtNodeLink } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtNodeLink } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export enum HtAiValidationType {
5
5
  NONE = 'none',
@@ -1,6 +1,6 @@
1
- import { HtButton } from './button'
2
- import { HtBaseNode, HtMediaFileLocale, HtTextLocale } from './common'
3
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtButton } from './button'
2
+ import type { HtBaseNode, HtMediaFileLocale, HtTextLocale } from './common'
3
+ import type { HtNodeWithContentType } from './node-types'
4
4
 
5
5
  export interface HtCarouselElement {
6
6
  id: string
@@ -1,6 +1,6 @@
1
- import { HtBaseNode } from './common'
2
- import { HtFunctionResult } from './function'
3
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtFunctionResult } from './function'
3
+ import type { HtNodeWithContentType } from './node-types'
4
4
 
5
5
  export interface HtChannelConditionalNode extends HtBaseNode {
6
6
  type: HtNodeWithContentType.FUNCTION
@@ -1,5 +1,8 @@
1
- import { HtNodeWithContentType, HtNodeWithoutContentType } from './node-types'
2
- import { HtNodeComponent } from './nodes'
1
+ import type {
2
+ HtNodeWithContentType,
3
+ HtNodeWithoutContentType,
4
+ } from './node-types'
5
+ import type { HtNodeComponent } from './nodes'
3
6
 
4
7
  export interface HtFlowBuilderData {
5
8
  version: string
@@ -1,6 +1,6 @@
1
- import { HtBaseNode } from './common'
2
- import { HtFunctionResult } from './function'
3
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtFunctionResult } from './function'
3
+ import type { HtNodeWithContentType } from './node-types'
4
4
 
5
5
  export interface HtCountryConditionalNode extends HtBaseNode {
6
6
  type: HtNodeWithContentType.FUNCTION
@@ -1,6 +1,6 @@
1
- import { HtBaseNode } from './common'
2
- import { HtFunctionArguments, HtFunctionResult } from './function'
3
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtFunctionArguments, HtFunctionResult } from './function'
3
+ import type { HtNodeWithContentType } from './node-types'
4
4
 
5
5
  export interface HtCustomConditionalNode extends HtBaseNode {
6
6
  type: HtNodeWithContentType.FUNCTION
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtNodeLink } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtNodeLink } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtFallbackNode extends HtBaseNode {
5
5
  type: HtNodeWithContentType.FALLBACK
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtNodeLink } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtNodeLink } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export enum HtArgumentType {
5
5
  BOOLEAN = 'boolean',
@@ -1,5 +1,5 @@
1
- import { HtBaseNode } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtGoToFlow extends HtBaseNode {
5
5
  id: string
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtPayloadLocale, HtQueueLocale } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtPayloadLocale, HtQueueLocale } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtHandoffNode extends HtBaseNode {
5
5
  type: HtNodeWithContentType.HANDOFF
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtMediaFileLocale } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtMediaFileLocale } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtImageNode extends HtBaseNode {
5
5
  type: HtNodeWithContentType.IMAGE
@@ -1,5 +1,5 @@
1
- import { HtBaseNode, HtInputLocale, HtTextLocale } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode, HtInputLocale, HtTextLocale } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  export interface HtKeywordNode extends HtBaseNode {
5
5
  type: HtNodeWithContentType.KEYWORD
@@ -1,5 +1,5 @@
1
- import { HtBaseNode } from './common'
2
- import { HtNodeWithContentType } from './node-types'
1
+ import type { HtBaseNode } from './common'
2
+ import type { HtNodeWithContentType } from './node-types'
3
3
 
4
4
  interface SourceData {
5
5
  id: string