@botonic/plugin-flow-builder 0.56.0-alpha.0 → 0.57.0-rslib-esm.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 (733) hide show
  1. package/README.md +1 -1
  2. package/lib/{cjs/action → action}/ai-agent-from-user-input.d.ts +2 -2
  3. package/lib/{cjs/action → action}/ai-agent-from-user-input.js +9 -6
  4. package/lib/action/ai-agent-from-user-input.js.map +1 -0
  5. package/lib/{esm/action → action}/context.d.ts +2 -2
  6. package/lib/action/context.js +20 -0
  7. package/lib/action/context.js.map +1 -0
  8. package/lib/{cjs/action → action}/fallback.d.ts +2 -2
  9. package/lib/{cjs/action → action}/fallback.js +16 -11
  10. package/lib/action/fallback.js.map +1 -0
  11. package/lib/action/first-interaction.d.ts +3 -0
  12. package/lib/{cjs/action → action}/first-interaction.js +39 -27
  13. package/lib/action/first-interaction.js.map +1 -0
  14. package/lib/{cjs/action → action}/get-contents.d.ts +1 -1
  15. package/lib/action/get-contents.js +56 -0
  16. package/lib/action/get-contents.js.map +1 -0
  17. package/lib/{esm/action → action}/index.d.ts +1 -1
  18. package/lib/{esm/action → action}/index.js +68 -32
  19. package/lib/action/index.js.map +1 -0
  20. package/lib/action/payload.d.ts +3 -0
  21. package/lib/{cjs/action → action}/payload.js +27 -23
  22. package/lib/action/payload.js.map +1 -0
  23. package/lib/{cjs/api.d.ts → api.d.ts} +2 -2
  24. package/lib/{esm/api.js → api.js} +55 -44
  25. package/lib/api.js.map +1 -0
  26. package/lib/constants.js +17 -0
  27. package/lib/constants.js.map +1 -0
  28. package/lib/{esm/content-fields → content-fields}/content-fields-base.d.ts +2 -2
  29. package/lib/content-fields/content-fields-base.js +78 -0
  30. package/lib/content-fields/content-fields-base.js.map +1 -0
  31. package/lib/{esm/content-fields → content-fields}/custom-conditional/custom-conditional-v2-evaluators.d.ts +1 -1
  32. package/lib/content-fields/custom-conditional/custom-conditional-v2-evaluators.js +73 -0
  33. package/lib/content-fields/custom-conditional/custom-conditional-v2-evaluators.js.map +1 -0
  34. package/lib/{esm/content-fields → content-fields}/custom-conditional/custom-conditional-v2-resolver.d.ts +1 -1
  35. package/lib/{cjs/content-fields → content-fields}/custom-conditional/custom-conditional-v2-resolver.js +15 -15
  36. package/lib/content-fields/custom-conditional/custom-conditional-v2-resolver.js.map +1 -0
  37. package/lib/{cjs/content-fields → content-fields}/custom-conditional/flow-custom-condition-v2.d.ts +3 -3
  38. package/lib/content-fields/custom-conditional/flow-custom-condition-v2.js +94 -0
  39. package/lib/content-fields/custom-conditional/flow-custom-condition-v2.js.map +1 -0
  40. package/lib/{esm/content-fields → content-fields}/flow-ai-agent-base.d.ts +4 -4
  41. package/lib/content-fields/flow-ai-agent-base.js +100 -0
  42. package/lib/content-fields/flow-ai-agent-base.js.map +1 -0
  43. package/lib/{esm/content-fields → content-fields}/flow-ai-agent-router.d.ts +5 -5
  44. package/lib/{esm/content-fields → content-fields}/flow-ai-agent-router.js +57 -46
  45. package/lib/content-fields/flow-ai-agent-router.js.map +1 -0
  46. package/lib/{cjs/content-fields → content-fields}/flow-ai-agent.d.ts +4 -4
  47. package/lib/{cjs/content-fields → content-fields}/flow-ai-agent.js +33 -22
  48. package/lib/content-fields/flow-ai-agent.js.map +1 -0
  49. package/lib/{esm/content-fields → content-fields}/flow-bot-action.d.ts +3 -3
  50. package/lib/{esm/content-fields → content-fields}/flow-bot-action.js +23 -15
  51. package/lib/content-fields/flow-bot-action.js.map +1 -0
  52. package/lib/{esm/content-fields → content-fields}/flow-button.d.ts +5 -5
  53. package/lib/{esm/content-fields → content-fields}/flow-button.js +48 -29
  54. package/lib/content-fields/flow-button.js.map +1 -0
  55. package/lib/{cjs/content-fields → content-fields}/flow-capture-user-input.d.ts +2 -2
  56. package/lib/content-fields/flow-capture-user-input.js +46 -0
  57. package/lib/content-fields/flow-capture-user-input.js.map +1 -0
  58. package/lib/{esm/content-fields → content-fields}/flow-carousel.d.ts +4 -4
  59. package/lib/content-fields/flow-carousel.js +193 -0
  60. package/lib/content-fields/flow-carousel.js.map +1 -0
  61. package/lib/{esm/content-fields → content-fields}/flow-channel-conditional.d.ts +3 -3
  62. package/lib/{esm/content-fields → content-fields}/flow-channel-conditional.js +26 -22
  63. package/lib/content-fields/flow-channel-conditional.js.map +1 -0
  64. package/lib/{cjs/content-fields → content-fields}/flow-country-conditional.d.ts +3 -3
  65. package/lib/{esm/content-fields → content-fields}/flow-country-conditional.js +26 -21
  66. package/lib/content-fields/flow-country-conditional.js.map +1 -0
  67. package/lib/{cjs/content-fields → content-fields}/flow-custom-conditional.d.ts +4 -4
  68. package/lib/{esm/content-fields → content-fields}/flow-custom-conditional.js +31 -33
  69. package/lib/content-fields/flow-custom-conditional.js.map +1 -0
  70. package/lib/{cjs/content-fields → content-fields}/flow-element.d.ts +4 -4
  71. package/lib/content-fields/flow-element.js +67 -0
  72. package/lib/content-fields/flow-element.js.map +1 -0
  73. package/lib/{esm/content-fields → content-fields}/flow-go-to-flow.d.ts +3 -3
  74. package/lib/{esm/content-fields → content-fields}/flow-go-to-flow.js +25 -20
  75. package/lib/content-fields/flow-go-to-flow.js.map +1 -0
  76. package/lib/{cjs/content-fields → content-fields}/flow-handoff.d.ts +3 -3
  77. package/lib/{cjs/content-fields → content-fields}/flow-handoff.js +30 -19
  78. package/lib/content-fields/flow-handoff.js.map +1 -0
  79. package/lib/{cjs/content-fields → content-fields}/flow-image.d.ts +2 -2
  80. package/lib/content-fields/flow-image.js +42 -0
  81. package/lib/content-fields/flow-image.js.map +1 -0
  82. package/lib/{cjs/content-fields → content-fields}/flow-queue-status-conditional.d.ts +3 -3
  83. package/lib/{cjs/content-fields → content-fields}/flow-queue-status-conditional.js +45 -40
  84. package/lib/content-fields/flow-queue-status-conditional.js.map +1 -0
  85. package/lib/{esm/content-fields → content-fields}/flow-rating.d.ts +3 -3
  86. package/lib/content-fields/flow-rating.js +88 -0
  87. package/lib/content-fields/flow-rating.js.map +1 -0
  88. package/lib/{cjs/content-fields → content-fields}/flow-text.d.ts +4 -4
  89. package/lib/content-fields/flow-text.js +82 -0
  90. package/lib/content-fields/flow-text.js.map +1 -0
  91. package/lib/{esm/content-fields → content-fields}/flow-video.d.ts +2 -2
  92. package/lib/content-fields/flow-video.js +42 -0
  93. package/lib/content-fields/flow-video.js.map +1 -0
  94. package/lib/{esm/content-fields → content-fields}/flow-webview.d.ts +2 -2
  95. package/lib/{cjs/content-fields → content-fields}/flow-webview.js +31 -28
  96. package/lib/content-fields/flow-webview.js.map +1 -0
  97. package/lib/{esm/content-fields → content-fields}/flow-whatsapp-cta-url-button.d.ts +3 -3
  98. package/lib/content-fields/flow-whatsapp-cta-url-button.js +131 -0
  99. package/lib/content-fields/flow-whatsapp-cta-url-button.js.map +1 -0
  100. package/lib/{esm/content-fields → content-fields}/flow-whatsapp-request-contact-info.d.ts +3 -4
  101. package/lib/content-fields/flow-whatsapp-request-contact-info.js +51 -0
  102. package/lib/content-fields/flow-whatsapp-request-contact-info.js.map +1 -0
  103. package/lib/{cjs/content-fields → content-fields}/flow-whatsapp-template.d.ts +2 -2
  104. package/lib/{esm/content-fields → content-fields}/flow-whatsapp-template.js +119 -102
  105. package/lib/content-fields/flow-whatsapp-template.js.map +1 -0
  106. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/ai-agent-router.d.ts +3 -3
  107. package/lib/content-fields/hubtype-fields/ai-agent-router.js +4 -0
  108. package/lib/content-fields/hubtype-fields/ai-agent-router.js.map +1 -0
  109. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/ai-agent.d.ts +2 -2
  110. package/lib/content-fields/hubtype-fields/ai-agent.js +4 -0
  111. package/lib/content-fields/hubtype-fields/ai-agent.js.map +1 -0
  112. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/bot-action.d.ts +2 -2
  113. package/lib/content-fields/hubtype-fields/bot-action.js +4 -0
  114. package/lib/content-fields/hubtype-fields/bot-action.js.map +1 -0
  115. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/button.d.ts +1 -1
  116. package/lib/content-fields/hubtype-fields/button.js +4 -0
  117. package/lib/content-fields/hubtype-fields/button.js.map +1 -0
  118. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/capture-user-input.d.ts +2 -2
  119. package/lib/content-fields/hubtype-fields/capture-user-input.js +12 -0
  120. package/lib/content-fields/hubtype-fields/capture-user-input.js.map +1 -0
  121. package/lib/{esm/content-fields → content-fields}/hubtype-fields/carousel.d.ts +3 -3
  122. package/lib/content-fields/hubtype-fields/carousel.js +4 -0
  123. package/lib/content-fields/hubtype-fields/carousel.js.map +1 -0
  124. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/channel-conditional.d.ts +3 -3
  125. package/lib/content-fields/hubtype-fields/channel-conditional.js +4 -0
  126. package/lib/content-fields/hubtype-fields/channel-conditional.js.map +1 -0
  127. package/lib/{esm/content-fields → content-fields}/hubtype-fields/common.d.ts +2 -2
  128. package/lib/content-fields/hubtype-fields/common.js +4 -0
  129. package/lib/content-fields/hubtype-fields/common.js.map +1 -0
  130. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/country-conditional.d.ts +3 -3
  131. package/lib/content-fields/hubtype-fields/country-conditional.js +4 -0
  132. package/lib/content-fields/hubtype-fields/country-conditional.js.map +1 -0
  133. package/lib/{esm/content-fields → content-fields}/hubtype-fields/custom-conditional-v2.d.ts +2 -2
  134. package/lib/{esm/content-fields → content-fields}/hubtype-fields/custom-conditional-v2.js +15 -15
  135. package/lib/content-fields/hubtype-fields/custom-conditional-v2.js.map +1 -0
  136. package/lib/{esm/content-fields → content-fields}/hubtype-fields/custom-conditional.d.ts +3 -3
  137. package/lib/content-fields/hubtype-fields/custom-conditional.js +4 -0
  138. package/lib/content-fields/hubtype-fields/custom-conditional.js.map +1 -0
  139. package/lib/{esm/content-fields → content-fields}/hubtype-fields/fallback.d.ts +2 -2
  140. package/lib/content-fields/hubtype-fields/fallback.js +4 -0
  141. package/lib/content-fields/hubtype-fields/fallback.js.map +1 -0
  142. package/lib/{esm/content-fields → content-fields}/hubtype-fields/function.d.ts +2 -2
  143. package/lib/content-fields/hubtype-fields/function.js +11 -0
  144. package/lib/content-fields/hubtype-fields/function.js.map +1 -0
  145. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/go-to-flow.d.ts +2 -2
  146. package/lib/content-fields/hubtype-fields/go-to-flow.js +4 -0
  147. package/lib/content-fields/hubtype-fields/go-to-flow.js.map +1 -0
  148. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/handoff.d.ts +2 -2
  149. package/lib/content-fields/hubtype-fields/handoff.js +4 -0
  150. package/lib/content-fields/hubtype-fields/handoff.js.map +1 -0
  151. package/lib/{esm/content-fields → content-fields}/hubtype-fields/image.d.ts +2 -2
  152. package/lib/content-fields/hubtype-fields/image.js +4 -0
  153. package/lib/content-fields/hubtype-fields/image.js.map +1 -0
  154. package/lib/content-fields/hubtype-fields/index.d.ts +27 -0
  155. package/lib/content-fields/hubtype-fields/index.js +57 -0
  156. package/lib/content-fields/hubtype-fields/index.js.map +1 -0
  157. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/keyword.d.ts +2 -2
  158. package/lib/content-fields/hubtype-fields/keyword.js +4 -0
  159. package/lib/content-fields/hubtype-fields/keyword.js.map +1 -0
  160. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/node-types.js +12 -12
  161. package/lib/content-fields/hubtype-fields/node-types.js.map +1 -0
  162. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/nodes.d.ts +23 -23
  163. package/lib/content-fields/hubtype-fields/nodes.js +4 -0
  164. package/lib/content-fields/hubtype-fields/nodes.js.map +1 -0
  165. package/lib/{esm/content-fields → content-fields}/hubtype-fields/payload.d.ts +1 -1
  166. package/lib/content-fields/hubtype-fields/payload.js +4 -0
  167. package/lib/content-fields/hubtype-fields/payload.js.map +1 -0
  168. package/lib/{esm/content-fields → content-fields}/hubtype-fields/queue-status-conditional.d.ts +3 -3
  169. package/lib/content-fields/hubtype-fields/queue-status-conditional.js +4 -0
  170. package/lib/content-fields/hubtype-fields/queue-status-conditional.js.map +1 -0
  171. package/lib/{esm/content-fields → content-fields}/hubtype-fields/rating.d.ts +2 -2
  172. package/lib/content-fields/hubtype-fields/rating.js +9 -0
  173. package/lib/content-fields/hubtype-fields/rating.js.map +1 -0
  174. package/lib/{esm/content-fields → content-fields}/hubtype-fields/smart-intent.d.ts +2 -2
  175. package/lib/content-fields/hubtype-fields/smart-intent.js +4 -0
  176. package/lib/content-fields/hubtype-fields/smart-intent.js.map +1 -0
  177. package/lib/{esm/content-fields → content-fields}/hubtype-fields/text.d.ts +3 -3
  178. package/lib/content-fields/hubtype-fields/text.js +4 -0
  179. package/lib/content-fields/hubtype-fields/text.js.map +1 -0
  180. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/url.d.ts +1 -1
  181. package/lib/content-fields/hubtype-fields/url.js +4 -0
  182. package/lib/content-fields/hubtype-fields/url.js.map +1 -0
  183. package/lib/{esm/content-fields → content-fields}/hubtype-fields/video.d.ts +2 -2
  184. package/lib/content-fields/hubtype-fields/video.js +4 -0
  185. package/lib/content-fields/hubtype-fields/video.js.map +1 -0
  186. package/lib/{esm/content-fields → content-fields}/hubtype-fields/webview.d.ts +2 -2
  187. package/lib/content-fields/hubtype-fields/webview.js +4 -0
  188. package/lib/content-fields/hubtype-fields/webview.js.map +1 -0
  189. package/lib/{esm/content-fields → content-fields}/hubtype-fields/whatsapp-button-list.d.ts +2 -2
  190. package/lib/content-fields/hubtype-fields/whatsapp-button-list.js +4 -0
  191. package/lib/content-fields/hubtype-fields/whatsapp-button-list.js.map +1 -0
  192. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/whatsapp-cta-url-button.d.ts +3 -3
  193. package/lib/content-fields/hubtype-fields/whatsapp-cta-url-button.js +4 -0
  194. package/lib/content-fields/hubtype-fields/whatsapp-cta-url-button.js.map +1 -0
  195. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/whatsapp-request-contact-info.d.ts +2 -2
  196. package/lib/content-fields/hubtype-fields/whatsapp-request-contact-info.js +4 -0
  197. package/lib/content-fields/hubtype-fields/whatsapp-request-contact-info.js.map +1 -0
  198. package/lib/{cjs/content-fields → content-fields}/hubtype-fields/whatsapp-template.d.ts +3 -3
  199. package/lib/content-fields/hubtype-fields/whatsapp-template.js +9 -0
  200. package/lib/content-fields/hubtype-fields/whatsapp-template.js.map +1 -0
  201. package/lib/content-fields/index.d.ts +25 -0
  202. package/lib/content-fields/index.js +73 -0
  203. package/lib/content-fields/index.js.map +1 -0
  204. package/lib/{cjs/content-fields → content-fields}/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +3 -3
  205. package/lib/{esm/content-fields → content-fields}/whatsapp-button-list/flow-whatsapp-button-list-row.js +16 -14
  206. package/lib/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +1 -0
  207. package/lib/{cjs/content-fields → content-fields}/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +4 -4
  208. package/lib/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +41 -0
  209. package/lib/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +1 -0
  210. package/lib/{esm/content-fields → content-fields}/whatsapp-button-list/flow-whatsapp-button-list.d.ts +4 -4
  211. package/lib/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +66 -0
  212. package/lib/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +1 -0
  213. package/lib/{esm/content-fields → content-fields}/whatsapp-button-list/index.d.ts +3 -3
  214. package/lib/content-fields/whatsapp-button-list/index.js +12 -0
  215. package/lib/content-fields/whatsapp-button-list/index.js.map +1 -0
  216. package/lib/{cjs/filters → filters}/index.d.ts +2 -2
  217. package/lib/filters/index.js +16 -0
  218. package/lib/filters/index.js.map +1 -0
  219. package/lib/{cjs/flow-factory.d.ts → flow-factory.d.ts} +3 -3
  220. package/lib/flow-factory.js +75 -0
  221. package/lib/flow-factory.js.map +1 -0
  222. package/lib/{esm/functions → functions}/index.d.ts +1 -1
  223. package/lib/{cjs/functions → functions}/index.js +25 -19
  224. package/lib/functions/index.js.map +1 -0
  225. package/lib/{cjs/index.d.ts → index.d.ts} +12 -12
  226. package/lib/{esm/index.js → index.js} +94 -77
  227. package/lib/index.js.map +1 -0
  228. package/lib/services/hubtype-queues-api.js +26 -0
  229. package/lib/services/hubtype-queues-api.js.map +1 -0
  230. package/lib/structured-output/flow-builder-content.js +16 -0
  231. package/lib/structured-output/flow-builder-content.js.map +1 -0
  232. package/lib/{cjs/tracking.d.ts → tracking.d.ts} +2 -2
  233. package/lib/{cjs/tracking.js → tracking.js} +27 -21
  234. package/lib/tracking.js.map +1 -0
  235. package/lib/{esm/types.d.ts → types.d.ts} +5 -5
  236. package/lib/types.js +14 -0
  237. package/lib/types.js.map +1 -0
  238. package/lib/{esm/user-input → user-input}/capture-user-input-api.d.ts +2 -2
  239. package/lib/{cjs/user-input → user-input}/capture-user-input-api.js +44 -33
  240. package/lib/user-input/capture-user-input-api.js.map +1 -0
  241. package/lib/{esm/user-input → user-input}/index.d.ts +2 -2
  242. package/lib/user-input/index.js +46 -0
  243. package/lib/user-input/index.js.map +1 -0
  244. package/lib/{esm/user-input → user-input}/keyword.d.ts +2 -2
  245. package/lib/{esm/user-input → user-input}/keyword.js +31 -26
  246. package/lib/user-input/keyword.js.map +1 -0
  247. package/lib/{cjs/user-input → user-input}/smart-intent.d.ts +2 -2
  248. package/lib/{cjs/user-input → user-input}/smart-intent.js +36 -32
  249. package/lib/user-input/smart-intent.js.map +1 -0
  250. package/lib/{cjs/utils → utils}/ai-agent.d.ts +3 -3
  251. package/lib/utils/ai-agent.js +33 -0
  252. package/lib/utils/ai-agent.js.map +1 -0
  253. package/lib/{cjs/utils → utils}/authentication.js +10 -7
  254. package/lib/utils/authentication.js.map +1 -0
  255. package/lib/{cjs/utils → utils}/flow-locale.js +14 -18
  256. package/lib/utils/flow-locale.js.map +1 -0
  257. package/lib/{cjs/utils → utils}/get-flow-builder-plugin.d.ts +1 -1
  258. package/lib/{cjs/utils → utils}/get-flow-builder-plugin.js +4 -4
  259. package/lib/utils/get-flow-builder-plugin.js.map +1 -0
  260. package/lib/{cjs/utils → utils}/hubtype-assistant-content.d.ts +1 -2
  261. package/lib/{cjs/utils → utils}/hubtype-assistant-content.js +57 -54
  262. package/lib/utils/hubtype-assistant-content.js.map +1 -0
  263. package/lib/utils/input.js +37 -0
  264. package/lib/utils/input.js.map +1 -0
  265. package/lib/{cjs/webview → webview}/contents-context.d.ts +1 -1
  266. package/lib/webview/contents-context.js +14 -0
  267. package/lib/webview/contents-context.js.map +1 -0
  268. package/lib/webview/index.d.ts +3 -0
  269. package/lib/webview/index.js +11 -0
  270. package/lib/webview/index.js.map +1 -0
  271. package/lib/{esm/webview → webview}/types.d.ts +1 -1
  272. package/lib/webview/types.js +9 -0
  273. package/lib/webview/types.js.map +1 -0
  274. package/lib/{cjs/webview → webview}/use-webview-contents.d.ts +1 -1
  275. package/lib/webview/use-webview-contents.js +90 -0
  276. package/lib/webview/use-webview-contents.js.map +1 -0
  277. package/package.json +10 -8
  278. package/src/content-fields/flow-ai-agent-base.tsx +0 -11
  279. package/src/content-fields/flow-whatsapp-request-contact-info.tsx +1 -17
  280. package/src/content-fields/index.ts +2 -2
  281. package/src/index.ts +5 -5
  282. package/src/types.ts +6 -6
  283. package/src/utils/hubtype-assistant-content.ts +0 -14
  284. package/lib/cjs/action/ai-agent-from-user-input.js.map +0 -1
  285. package/lib/cjs/action/context.d.ts +0 -11
  286. package/lib/cjs/action/context.js +0 -17
  287. package/lib/cjs/action/context.js.map +0 -1
  288. package/lib/cjs/action/fallback.js.map +0 -1
  289. package/lib/cjs/action/first-interaction.d.ts +0 -3
  290. package/lib/cjs/action/first-interaction.js.map +0 -1
  291. package/lib/cjs/action/get-contents.js +0 -39
  292. package/lib/cjs/action/get-contents.js.map +0 -1
  293. package/lib/cjs/action/index.d.ts +0 -25
  294. package/lib/cjs/action/index.js +0 -90
  295. package/lib/cjs/action/index.js.map +0 -1
  296. package/lib/cjs/action/payload.d.ts +0 -3
  297. package/lib/cjs/action/payload.js.map +0 -1
  298. package/lib/cjs/api.js +0 -205
  299. package/lib/cjs/api.js.map +0 -1
  300. package/lib/cjs/constants.js +0 -19
  301. package/lib/cjs/constants.js.map +0 -1
  302. package/lib/cjs/content-fields/content-fields-base.d.ts +0 -20
  303. package/lib/cjs/content-fields/content-fields-base.js +0 -74
  304. package/lib/cjs/content-fields/content-fields-base.js.map +0 -1
  305. package/lib/cjs/content-fields/custom-conditional/custom-conditional-v2-evaluators.d.ts +0 -15
  306. package/lib/cjs/content-fields/custom-conditional/custom-conditional-v2-evaluators.js +0 -71
  307. package/lib/cjs/content-fields/custom-conditional/custom-conditional-v2-evaluators.js.map +0 -1
  308. package/lib/cjs/content-fields/custom-conditional/custom-conditional-v2-resolver.d.ts +0 -9
  309. package/lib/cjs/content-fields/custom-conditional/custom-conditional-v2-resolver.js.map +0 -1
  310. package/lib/cjs/content-fields/custom-conditional/flow-custom-condition-v2.js +0 -79
  311. package/lib/cjs/content-fields/custom-conditional/flow-custom-condition-v2.js.map +0 -1
  312. package/lib/cjs/content-fields/flow-ai-agent-base.d.ts +0 -25
  313. package/lib/cjs/content-fields/flow-ai-agent-base.js +0 -97
  314. package/lib/cjs/content-fields/flow-ai-agent-base.js.map +0 -1
  315. package/lib/cjs/content-fields/flow-ai-agent-router.d.ts +0 -21
  316. package/lib/cjs/content-fields/flow-ai-agent-router.js +0 -125
  317. package/lib/cjs/content-fields/flow-ai-agent-router.js.map +0 -1
  318. package/lib/cjs/content-fields/flow-ai-agent.js.map +0 -1
  319. package/lib/cjs/content-fields/flow-bot-action.d.ts +0 -14
  320. package/lib/cjs/content-fields/flow-bot-action.js +0 -45
  321. package/lib/cjs/content-fields/flow-bot-action.js.map +0 -1
  322. package/lib/cjs/content-fields/flow-button.d.ts +0 -31
  323. package/lib/cjs/content-fields/flow-button.js +0 -86
  324. package/lib/cjs/content-fields/flow-button.js.map +0 -1
  325. package/lib/cjs/content-fields/flow-capture-user-input.js +0 -45
  326. package/lib/cjs/content-fields/flow-capture-user-input.js.map +0 -1
  327. package/lib/cjs/content-fields/flow-carousel.d.ts +0 -22
  328. package/lib/cjs/content-fields/flow-carousel.js +0 -152
  329. package/lib/cjs/content-fields/flow-carousel.js.map +0 -1
  330. package/lib/cjs/content-fields/flow-channel-conditional.d.ts +0 -14
  331. package/lib/cjs/content-fields/flow-channel-conditional.js +0 -57
  332. package/lib/cjs/content-fields/flow-channel-conditional.js.map +0 -1
  333. package/lib/cjs/content-fields/flow-country-conditional.js +0 -59
  334. package/lib/cjs/content-fields/flow-country-conditional.js.map +0 -1
  335. package/lib/cjs/content-fields/flow-custom-conditional.js +0 -89
  336. package/lib/cjs/content-fields/flow-custom-conditional.js.map +0 -1
  337. package/lib/cjs/content-fields/flow-element.js +0 -50
  338. package/lib/cjs/content-fields/flow-element.js.map +0 -1
  339. package/lib/cjs/content-fields/flow-go-to-flow.d.ts +0 -13
  340. package/lib/cjs/content-fields/flow-go-to-flow.js +0 -51
  341. package/lib/cjs/content-fields/flow-go-to-flow.js.map +0 -1
  342. package/lib/cjs/content-fields/flow-handoff.js.map +0 -1
  343. package/lib/cjs/content-fields/flow-image.js +0 -33
  344. package/lib/cjs/content-fields/flow-image.js.map +0 -1
  345. package/lib/cjs/content-fields/flow-queue-status-conditional.js.map +0 -1
  346. package/lib/cjs/content-fields/flow-rating.d.ts +0 -15
  347. package/lib/cjs/content-fields/flow-rating.js +0 -66
  348. package/lib/cjs/content-fields/flow-rating.js.map +0 -1
  349. package/lib/cjs/content-fields/flow-text.js +0 -60
  350. package/lib/cjs/content-fields/flow-text.js.map +0 -1
  351. package/lib/cjs/content-fields/flow-video.d.ts +0 -10
  352. package/lib/cjs/content-fields/flow-video.js +0 -33
  353. package/lib/cjs/content-fields/flow-video.js.map +0 -1
  354. package/lib/cjs/content-fields/flow-webview.d.ts +0 -16
  355. package/lib/cjs/content-fields/flow-webview.js.map +0 -1
  356. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.d.ts +0 -21
  357. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js +0 -92
  358. package/lib/cjs/content-fields/flow-whatsapp-cta-url-button.js.map +0 -1
  359. package/lib/cjs/content-fields/flow-whatsapp-request-contact-info.d.ts +0 -11
  360. package/lib/cjs/content-fields/flow-whatsapp-request-contact-info.js +0 -45
  361. package/lib/cjs/content-fields/flow-whatsapp-request-contact-info.js.map +0 -1
  362. package/lib/cjs/content-fields/flow-whatsapp-template.js +0 -264
  363. package/lib/cjs/content-fields/flow-whatsapp-template.js.map +0 -1
  364. package/lib/cjs/content-fields/hubtype-fields/ai-agent-router.js +0 -3
  365. package/lib/cjs/content-fields/hubtype-fields/ai-agent-router.js.map +0 -1
  366. package/lib/cjs/content-fields/hubtype-fields/ai-agent.js +0 -3
  367. package/lib/cjs/content-fields/hubtype-fields/ai-agent.js.map +0 -1
  368. package/lib/cjs/content-fields/hubtype-fields/bot-action.js +0 -3
  369. package/lib/cjs/content-fields/hubtype-fields/bot-action.js.map +0 -1
  370. package/lib/cjs/content-fields/hubtype-fields/button.js +0 -3
  371. package/lib/cjs/content-fields/hubtype-fields/button.js.map +0 -1
  372. package/lib/cjs/content-fields/hubtype-fields/capture-user-input.js +0 -12
  373. package/lib/cjs/content-fields/hubtype-fields/capture-user-input.js.map +0 -1
  374. package/lib/cjs/content-fields/hubtype-fields/carousel.d.ts +0 -17
  375. package/lib/cjs/content-fields/hubtype-fields/carousel.js +0 -3
  376. package/lib/cjs/content-fields/hubtype-fields/carousel.js.map +0 -1
  377. package/lib/cjs/content-fields/hubtype-fields/channel-conditional.js +0 -3
  378. package/lib/cjs/content-fields/hubtype-fields/channel-conditional.js.map +0 -1
  379. package/lib/cjs/content-fields/hubtype-fields/common.d.ts +0 -83
  380. package/lib/cjs/content-fields/hubtype-fields/common.js +0 -3
  381. package/lib/cjs/content-fields/hubtype-fields/common.js.map +0 -1
  382. package/lib/cjs/content-fields/hubtype-fields/country-conditional.js +0 -3
  383. package/lib/cjs/content-fields/hubtype-fields/country-conditional.js.map +0 -1
  384. package/lib/cjs/content-fields/hubtype-fields/custom-conditional-v2.d.ts +0 -56
  385. package/lib/cjs/content-fields/hubtype-fields/custom-conditional-v2.js +0 -36
  386. package/lib/cjs/content-fields/hubtype-fields/custom-conditional-v2.js.map +0 -1
  387. package/lib/cjs/content-fields/hubtype-fields/custom-conditional.d.ts +0 -11
  388. package/lib/cjs/content-fields/hubtype-fields/custom-conditional.js +0 -3
  389. package/lib/cjs/content-fields/hubtype-fields/custom-conditional.js.map +0 -1
  390. package/lib/cjs/content-fields/hubtype-fields/fallback.d.ts +0 -9
  391. package/lib/cjs/content-fields/hubtype-fields/fallback.js +0 -3
  392. package/lib/cjs/content-fields/hubtype-fields/fallback.js.map +0 -1
  393. package/lib/cjs/content-fields/hubtype-fields/function.d.ts +0 -30
  394. package/lib/cjs/content-fields/hubtype-fields/function.js +0 -11
  395. package/lib/cjs/content-fields/hubtype-fields/function.js.map +0 -1
  396. package/lib/cjs/content-fields/hubtype-fields/go-to-flow.js +0 -3
  397. package/lib/cjs/content-fields/hubtype-fields/go-to-flow.js.map +0 -1
  398. package/lib/cjs/content-fields/hubtype-fields/handoff.js +0 -3
  399. package/lib/cjs/content-fields/hubtype-fields/handoff.js.map +0 -1
  400. package/lib/cjs/content-fields/hubtype-fields/image.d.ts +0 -8
  401. package/lib/cjs/content-fields/hubtype-fields/image.js +0 -3
  402. package/lib/cjs/content-fields/hubtype-fields/image.js.map +0 -1
  403. package/lib/cjs/content-fields/hubtype-fields/index.d.ts +0 -27
  404. package/lib/cjs/content-fields/hubtype-fields/index.js +0 -31
  405. package/lib/cjs/content-fields/hubtype-fields/index.js.map +0 -1
  406. package/lib/cjs/content-fields/hubtype-fields/keyword.js +0 -3
  407. package/lib/cjs/content-fields/hubtype-fields/keyword.js.map +0 -1
  408. package/lib/cjs/content-fields/hubtype-fields/node-types.js.map +0 -1
  409. package/lib/cjs/content-fields/hubtype-fields/nodes.js +0 -3
  410. package/lib/cjs/content-fields/hubtype-fields/nodes.js.map +0 -1
  411. package/lib/cjs/content-fields/hubtype-fields/payload.d.ts +0 -8
  412. package/lib/cjs/content-fields/hubtype-fields/payload.js +0 -3
  413. package/lib/cjs/content-fields/hubtype-fields/payload.js.map +0 -1
  414. package/lib/cjs/content-fields/hubtype-fields/queue-status-conditional.d.ts +0 -25
  415. package/lib/cjs/content-fields/hubtype-fields/queue-status-conditional.js +0 -3
  416. package/lib/cjs/content-fields/hubtype-fields/queue-status-conditional.js.map +0 -1
  417. package/lib/cjs/content-fields/hubtype-fields/rating.d.ts +0 -23
  418. package/lib/cjs/content-fields/hubtype-fields/rating.js +0 -9
  419. package/lib/cjs/content-fields/hubtype-fields/rating.js.map +0 -1
  420. package/lib/cjs/content-fields/hubtype-fields/smart-intent.d.ts +0 -12
  421. package/lib/cjs/content-fields/hubtype-fields/smart-intent.js +0 -3
  422. package/lib/cjs/content-fields/hubtype-fields/smart-intent.js.map +0 -1
  423. package/lib/cjs/content-fields/hubtype-fields/text.d.ts +0 -11
  424. package/lib/cjs/content-fields/hubtype-fields/text.js +0 -3
  425. package/lib/cjs/content-fields/hubtype-fields/text.js.map +0 -1
  426. package/lib/cjs/content-fields/hubtype-fields/url.js +0 -3
  427. package/lib/cjs/content-fields/hubtype-fields/url.js.map +0 -1
  428. package/lib/cjs/content-fields/hubtype-fields/video.d.ts +0 -8
  429. package/lib/cjs/content-fields/hubtype-fields/video.js +0 -3
  430. package/lib/cjs/content-fields/hubtype-fields/video.js.map +0 -1
  431. package/lib/cjs/content-fields/hubtype-fields/webview.d.ts +0 -17
  432. package/lib/cjs/content-fields/hubtype-fields/webview.js +0 -3
  433. package/lib/cjs/content-fields/hubtype-fields/webview.js.map +0 -1
  434. package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.d.ts +0 -21
  435. package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.js +0 -3
  436. package/lib/cjs/content-fields/hubtype-fields/whatsapp-button-list.js.map +0 -1
  437. package/lib/cjs/content-fields/hubtype-fields/whatsapp-cta-url-button.js +0 -3
  438. package/lib/cjs/content-fields/hubtype-fields/whatsapp-cta-url-button.js.map +0 -1
  439. package/lib/cjs/content-fields/hubtype-fields/whatsapp-request-contact-info.js +0 -3
  440. package/lib/cjs/content-fields/hubtype-fields/whatsapp-request-contact-info.js.map +0 -1
  441. package/lib/cjs/content-fields/hubtype-fields/whatsapp-template.js +0 -9
  442. package/lib/cjs/content-fields/hubtype-fields/whatsapp-template.js.map +0 -1
  443. package/lib/cjs/content-fields/index.d.ts +0 -25
  444. package/lib/cjs/content-fields/index.js +0 -52
  445. package/lib/cjs/content-fields/index.js.map +0 -1
  446. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js +0 -41
  447. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +0 -1
  448. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +0 -36
  449. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +0 -1
  450. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.d.ts +0 -14
  451. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +0 -46
  452. package/lib/cjs/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +0 -1
  453. package/lib/cjs/content-fields/whatsapp-button-list/index.d.ts +0 -3
  454. package/lib/cjs/content-fields/whatsapp-button-list/index.js +0 -10
  455. package/lib/cjs/content-fields/whatsapp-button-list/index.js.map +0 -1
  456. package/lib/cjs/filters/index.js +0 -17
  457. package/lib/cjs/filters/index.js.map +0 -1
  458. package/lib/cjs/flow-factory.js +0 -69
  459. package/lib/cjs/flow-factory.js.map +0 -1
  460. package/lib/cjs/functions/index.d.ts +0 -11
  461. package/lib/cjs/functions/index.js.map +0 -1
  462. package/lib/cjs/index.js +0 -178
  463. package/lib/cjs/index.js.map +0 -1
  464. package/lib/cjs/services/hubtype-queues-api.js +0 -26
  465. package/lib/cjs/services/hubtype-queues-api.js.map +0 -1
  466. package/lib/cjs/structured-output/flow-builder-content.js +0 -15
  467. package/lib/cjs/structured-output/flow-builder-content.js.map +0 -1
  468. package/lib/cjs/tracking.js.map +0 -1
  469. package/lib/cjs/types.d.ts +0 -62
  470. package/lib/cjs/types.js +0 -14
  471. package/lib/cjs/types.js.map +0 -1
  472. package/lib/cjs/user-input/capture-user-input-api.d.ts +0 -21
  473. package/lib/cjs/user-input/capture-user-input-api.js.map +0 -1
  474. package/lib/cjs/user-input/index.d.ts +0 -4
  475. package/lib/cjs/user-input/index.js +0 -37
  476. package/lib/cjs/user-input/index.js.map +0 -1
  477. package/lib/cjs/user-input/keyword.d.ts +0 -27
  478. package/lib/cjs/user-input/keyword.js +0 -84
  479. package/lib/cjs/user-input/keyword.js.map +0 -1
  480. package/lib/cjs/user-input/smart-intent.js.map +0 -1
  481. package/lib/cjs/utils/ai-agent.js +0 -28
  482. package/lib/cjs/utils/ai-agent.js.map +0 -1
  483. package/lib/cjs/utils/authentication.js.map +0 -1
  484. package/lib/cjs/utils/flow-locale.js.map +0 -1
  485. package/lib/cjs/utils/get-flow-builder-plugin.js.map +0 -1
  486. package/lib/cjs/utils/hubtype-assistant-content.js.map +0 -1
  487. package/lib/cjs/utils/input.js +0 -35
  488. package/lib/cjs/utils/input.js.map +0 -1
  489. package/lib/cjs/webview/contents-context.js +0 -12
  490. package/lib/cjs/webview/contents-context.js.map +0 -1
  491. package/lib/cjs/webview/index.d.ts +0 -3
  492. package/lib/cjs/webview/index.js +0 -10
  493. package/lib/cjs/webview/index.js.map +0 -1
  494. package/lib/cjs/webview/types.d.ts +0 -47
  495. package/lib/cjs/webview/types.js +0 -9
  496. package/lib/cjs/webview/types.js.map +0 -1
  497. package/lib/cjs/webview/use-webview-contents.js +0 -83
  498. package/lib/cjs/webview/use-webview-contents.js.map +0 -1
  499. package/lib/esm/action/ai-agent-from-user-input.d.ts +0 -3
  500. package/lib/esm/action/ai-agent-from-user-input.js +0 -32
  501. package/lib/esm/action/ai-agent-from-user-input.js.map +0 -1
  502. package/lib/esm/action/context.js +0 -17
  503. package/lib/esm/action/context.js.map +0 -1
  504. package/lib/esm/action/fallback.d.ts +0 -3
  505. package/lib/esm/action/fallback.js +0 -36
  506. package/lib/esm/action/fallback.js.map +0 -1
  507. package/lib/esm/action/first-interaction.d.ts +0 -3
  508. package/lib/esm/action/first-interaction.js +0 -88
  509. package/lib/esm/action/first-interaction.js.map +0 -1
  510. package/lib/esm/action/get-contents.d.ts +0 -3
  511. package/lib/esm/action/get-contents.js +0 -39
  512. package/lib/esm/action/get-contents.js.map +0 -1
  513. package/lib/esm/action/index.js.map +0 -1
  514. package/lib/esm/action/payload.d.ts +0 -3
  515. package/lib/esm/action/payload.js +0 -74
  516. package/lib/esm/action/payload.js.map +0 -1
  517. package/lib/esm/api.d.ts +0 -40
  518. package/lib/esm/api.js.map +0 -1
  519. package/lib/esm/constants.d.ts +0 -13
  520. package/lib/esm/constants.js +0 -19
  521. package/lib/esm/constants.js.map +0 -1
  522. package/lib/esm/content-fields/content-fields-base.js +0 -74
  523. package/lib/esm/content-fields/content-fields-base.js.map +0 -1
  524. package/lib/esm/content-fields/custom-conditional/custom-conditional-v2-evaluators.js +0 -71
  525. package/lib/esm/content-fields/custom-conditional/custom-conditional-v2-evaluators.js.map +0 -1
  526. package/lib/esm/content-fields/custom-conditional/custom-conditional-v2-resolver.js +0 -58
  527. package/lib/esm/content-fields/custom-conditional/custom-conditional-v2-resolver.js.map +0 -1
  528. package/lib/esm/content-fields/custom-conditional/flow-custom-condition-v2.d.ts +0 -17
  529. package/lib/esm/content-fields/custom-conditional/flow-custom-condition-v2.js +0 -79
  530. package/lib/esm/content-fields/custom-conditional/flow-custom-condition-v2.js.map +0 -1
  531. package/lib/esm/content-fields/flow-ai-agent-base.js +0 -97
  532. package/lib/esm/content-fields/flow-ai-agent-base.js.map +0 -1
  533. package/lib/esm/content-fields/flow-ai-agent-router.js.map +0 -1
  534. package/lib/esm/content-fields/flow-ai-agent.d.ts +0 -17
  535. package/lib/esm/content-fields/flow-ai-agent.js +0 -64
  536. package/lib/esm/content-fields/flow-ai-agent.js.map +0 -1
  537. package/lib/esm/content-fields/flow-bot-action.js.map +0 -1
  538. package/lib/esm/content-fields/flow-button.js.map +0 -1
  539. package/lib/esm/content-fields/flow-capture-user-input.d.ts +0 -14
  540. package/lib/esm/content-fields/flow-capture-user-input.js +0 -45
  541. package/lib/esm/content-fields/flow-capture-user-input.js.map +0 -1
  542. package/lib/esm/content-fields/flow-carousel.js +0 -152
  543. package/lib/esm/content-fields/flow-carousel.js.map +0 -1
  544. package/lib/esm/content-fields/flow-channel-conditional.js.map +0 -1
  545. package/lib/esm/content-fields/flow-country-conditional.d.ts +0 -13
  546. package/lib/esm/content-fields/flow-country-conditional.js.map +0 -1
  547. package/lib/esm/content-fields/flow-custom-conditional.d.ts +0 -17
  548. package/lib/esm/content-fields/flow-custom-conditional.js.map +0 -1
  549. package/lib/esm/content-fields/flow-element.d.ts +0 -22
  550. package/lib/esm/content-fields/flow-element.js +0 -50
  551. package/lib/esm/content-fields/flow-element.js.map +0 -1
  552. package/lib/esm/content-fields/flow-go-to-flow.js.map +0 -1
  553. package/lib/esm/content-fields/flow-handoff.d.ts +0 -17
  554. package/lib/esm/content-fields/flow-handoff.js +0 -68
  555. package/lib/esm/content-fields/flow-handoff.js.map +0 -1
  556. package/lib/esm/content-fields/flow-image.d.ts +0 -10
  557. package/lib/esm/content-fields/flow-image.js +0 -33
  558. package/lib/esm/content-fields/flow-image.js.map +0 -1
  559. package/lib/esm/content-fields/flow-queue-status-conditional.d.ts +0 -30
  560. package/lib/esm/content-fields/flow-queue-status-conditional.js +0 -95
  561. package/lib/esm/content-fields/flow-queue-status-conditional.js.map +0 -1
  562. package/lib/esm/content-fields/flow-rating.js +0 -66
  563. package/lib/esm/content-fields/flow-rating.js.map +0 -1
  564. package/lib/esm/content-fields/flow-text.d.ts +0 -15
  565. package/lib/esm/content-fields/flow-text.js +0 -60
  566. package/lib/esm/content-fields/flow-text.js.map +0 -1
  567. package/lib/esm/content-fields/flow-video.js +0 -33
  568. package/lib/esm/content-fields/flow-video.js.map +0 -1
  569. package/lib/esm/content-fields/flow-webview.js +0 -78
  570. package/lib/esm/content-fields/flow-webview.js.map +0 -1
  571. package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js +0 -92
  572. package/lib/esm/content-fields/flow-whatsapp-cta-url-button.js.map +0 -1
  573. package/lib/esm/content-fields/flow-whatsapp-request-contact-info.js +0 -45
  574. package/lib/esm/content-fields/flow-whatsapp-request-contact-info.js.map +0 -1
  575. package/lib/esm/content-fields/flow-whatsapp-template.d.ts +0 -37
  576. package/lib/esm/content-fields/flow-whatsapp-template.js.map +0 -1
  577. package/lib/esm/content-fields/hubtype-fields/ai-agent-router.d.ts +0 -21
  578. package/lib/esm/content-fields/hubtype-fields/ai-agent-router.js +0 -3
  579. package/lib/esm/content-fields/hubtype-fields/ai-agent-router.js.map +0 -1
  580. package/lib/esm/content-fields/hubtype-fields/ai-agent.d.ts +0 -25
  581. package/lib/esm/content-fields/hubtype-fields/ai-agent.js +0 -3
  582. package/lib/esm/content-fields/hubtype-fields/ai-agent.js.map +0 -1
  583. package/lib/esm/content-fields/hubtype-fields/bot-action.d.ts +0 -10
  584. package/lib/esm/content-fields/hubtype-fields/bot-action.js +0 -3
  585. package/lib/esm/content-fields/hubtype-fields/bot-action.js.map +0 -1
  586. package/lib/esm/content-fields/hubtype-fields/button.d.ts +0 -8
  587. package/lib/esm/content-fields/hubtype-fields/button.js +0 -3
  588. package/lib/esm/content-fields/hubtype-fields/button.js.map +0 -1
  589. package/lib/esm/content-fields/hubtype-fields/capture-user-input.d.ts +0 -19
  590. package/lib/esm/content-fields/hubtype-fields/capture-user-input.js +0 -12
  591. package/lib/esm/content-fields/hubtype-fields/capture-user-input.js.map +0 -1
  592. package/lib/esm/content-fields/hubtype-fields/carousel.js +0 -3
  593. package/lib/esm/content-fields/hubtype-fields/carousel.js.map +0 -1
  594. package/lib/esm/content-fields/hubtype-fields/channel-conditional.d.ts +0 -10
  595. package/lib/esm/content-fields/hubtype-fields/channel-conditional.js +0 -3
  596. package/lib/esm/content-fields/hubtype-fields/channel-conditional.js.map +0 -1
  597. package/lib/esm/content-fields/hubtype-fields/common.js +0 -3
  598. package/lib/esm/content-fields/hubtype-fields/common.js.map +0 -1
  599. package/lib/esm/content-fields/hubtype-fields/country-conditional.d.ts +0 -10
  600. package/lib/esm/content-fields/hubtype-fields/country-conditional.js +0 -3
  601. package/lib/esm/content-fields/hubtype-fields/country-conditional.js.map +0 -1
  602. package/lib/esm/content-fields/hubtype-fields/custom-conditional-v2.js.map +0 -1
  603. package/lib/esm/content-fields/hubtype-fields/custom-conditional.js +0 -3
  604. package/lib/esm/content-fields/hubtype-fields/custom-conditional.js.map +0 -1
  605. package/lib/esm/content-fields/hubtype-fields/fallback.js +0 -3
  606. package/lib/esm/content-fields/hubtype-fields/fallback.js.map +0 -1
  607. package/lib/esm/content-fields/hubtype-fields/function.js +0 -11
  608. package/lib/esm/content-fields/hubtype-fields/function.js.map +0 -1
  609. package/lib/esm/content-fields/hubtype-fields/go-to-flow.d.ts +0 -9
  610. package/lib/esm/content-fields/hubtype-fields/go-to-flow.js +0 -3
  611. package/lib/esm/content-fields/hubtype-fields/go-to-flow.js.map +0 -1
  612. package/lib/esm/content-fields/hubtype-fields/handoff.d.ts +0 -11
  613. package/lib/esm/content-fields/hubtype-fields/handoff.js +0 -3
  614. package/lib/esm/content-fields/hubtype-fields/handoff.js.map +0 -1
  615. package/lib/esm/content-fields/hubtype-fields/image.js +0 -3
  616. package/lib/esm/content-fields/hubtype-fields/image.js.map +0 -1
  617. package/lib/esm/content-fields/hubtype-fields/index.d.ts +0 -27
  618. package/lib/esm/content-fields/hubtype-fields/index.js +0 -31
  619. package/lib/esm/content-fields/hubtype-fields/index.js.map +0 -1
  620. package/lib/esm/content-fields/hubtype-fields/keyword.d.ts +0 -9
  621. package/lib/esm/content-fields/hubtype-fields/keyword.js +0 -3
  622. package/lib/esm/content-fields/hubtype-fields/keyword.js.map +0 -1
  623. package/lib/esm/content-fields/hubtype-fields/node-types.d.ts +0 -31
  624. package/lib/esm/content-fields/hubtype-fields/node-types.js +0 -38
  625. package/lib/esm/content-fields/hubtype-fields/node-types.js.map +0 -1
  626. package/lib/esm/content-fields/hubtype-fields/nodes.d.ts +0 -26
  627. package/lib/esm/content-fields/hubtype-fields/nodes.js +0 -3
  628. package/lib/esm/content-fields/hubtype-fields/nodes.js.map +0 -1
  629. package/lib/esm/content-fields/hubtype-fields/payload.js +0 -3
  630. package/lib/esm/content-fields/hubtype-fields/payload.js.map +0 -1
  631. package/lib/esm/content-fields/hubtype-fields/queue-status-conditional.js +0 -3
  632. package/lib/esm/content-fields/hubtype-fields/queue-status-conditional.js.map +0 -1
  633. package/lib/esm/content-fields/hubtype-fields/rating.js +0 -9
  634. package/lib/esm/content-fields/hubtype-fields/rating.js.map +0 -1
  635. package/lib/esm/content-fields/hubtype-fields/smart-intent.js +0 -3
  636. package/lib/esm/content-fields/hubtype-fields/smart-intent.js.map +0 -1
  637. package/lib/esm/content-fields/hubtype-fields/text.js +0 -3
  638. package/lib/esm/content-fields/hubtype-fields/text.js.map +0 -1
  639. package/lib/esm/content-fields/hubtype-fields/url.d.ts +0 -8
  640. package/lib/esm/content-fields/hubtype-fields/url.js +0 -3
  641. package/lib/esm/content-fields/hubtype-fields/url.js.map +0 -1
  642. package/lib/esm/content-fields/hubtype-fields/video.js +0 -3
  643. package/lib/esm/content-fields/hubtype-fields/video.js.map +0 -1
  644. package/lib/esm/content-fields/hubtype-fields/webview.js +0 -3
  645. package/lib/esm/content-fields/hubtype-fields/webview.js.map +0 -1
  646. package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.js +0 -3
  647. package/lib/esm/content-fields/hubtype-fields/whatsapp-button-list.js.map +0 -1
  648. package/lib/esm/content-fields/hubtype-fields/whatsapp-cta-url-button.d.ts +0 -17
  649. package/lib/esm/content-fields/hubtype-fields/whatsapp-cta-url-button.js +0 -3
  650. package/lib/esm/content-fields/hubtype-fields/whatsapp-cta-url-button.js.map +0 -1
  651. package/lib/esm/content-fields/hubtype-fields/whatsapp-request-contact-info.d.ts +0 -8
  652. package/lib/esm/content-fields/hubtype-fields/whatsapp-request-contact-info.js +0 -3
  653. package/lib/esm/content-fields/hubtype-fields/whatsapp-request-contact-info.js.map +0 -1
  654. package/lib/esm/content-fields/hubtype-fields/whatsapp-template.d.ts +0 -96
  655. package/lib/esm/content-fields/hubtype-fields/whatsapp-template.js +0 -9
  656. package/lib/esm/content-fields/hubtype-fields/whatsapp-template.js.map +0 -1
  657. package/lib/esm/content-fields/index.d.ts +0 -25
  658. package/lib/esm/content-fields/index.js +0 -52
  659. package/lib/esm/content-fields/index.js.map +0 -1
  660. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.d.ts +0 -14
  661. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js.map +0 -1
  662. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.d.ts +0 -13
  663. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js +0 -36
  664. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js.map +0 -1
  665. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js +0 -46
  666. package/lib/esm/content-fields/whatsapp-button-list/flow-whatsapp-button-list.js.map +0 -1
  667. package/lib/esm/content-fields/whatsapp-button-list/index.js +0 -10
  668. package/lib/esm/content-fields/whatsapp-button-list/index.js.map +0 -1
  669. package/lib/esm/filters/index.d.ts +0 -12
  670. package/lib/esm/filters/index.js +0 -17
  671. package/lib/esm/filters/index.js.map +0 -1
  672. package/lib/esm/flow-factory.d.ts +0 -12
  673. package/lib/esm/flow-factory.js +0 -69
  674. package/lib/esm/flow-factory.js.map +0 -1
  675. package/lib/esm/functions/index.js +0 -49
  676. package/lib/esm/functions/index.js.map +0 -1
  677. package/lib/esm/index.d.ts +0 -45
  678. package/lib/esm/index.js.map +0 -1
  679. package/lib/esm/services/hubtype-queues-api.d.ts +0 -14
  680. package/lib/esm/services/hubtype-queues-api.js +0 -26
  681. package/lib/esm/services/hubtype-queues-api.js.map +0 -1
  682. package/lib/esm/structured-output/flow-builder-content.d.ts +0 -13
  683. package/lib/esm/structured-output/flow-builder-content.js +0 -15
  684. package/lib/esm/structured-output/flow-builder-content.js.map +0 -1
  685. package/lib/esm/tracking.d.ts +0 -16
  686. package/lib/esm/tracking.js +0 -71
  687. package/lib/esm/tracking.js.map +0 -1
  688. package/lib/esm/types.js +0 -14
  689. package/lib/esm/types.js.map +0 -1
  690. package/lib/esm/user-input/capture-user-input-api.js +0 -88
  691. package/lib/esm/user-input/capture-user-input-api.js.map +0 -1
  692. package/lib/esm/user-input/index.js +0 -37
  693. package/lib/esm/user-input/index.js.map +0 -1
  694. package/lib/esm/user-input/keyword.js.map +0 -1
  695. package/lib/esm/user-input/smart-intent.d.ts +0 -24
  696. package/lib/esm/user-input/smart-intent.js +0 -89
  697. package/lib/esm/user-input/smart-intent.js.map +0 -1
  698. package/lib/esm/utils/ai-agent.d.ts +0 -11
  699. package/lib/esm/utils/ai-agent.js +0 -28
  700. package/lib/esm/utils/ai-agent.js.map +0 -1
  701. package/lib/esm/utils/authentication.d.ts +0 -2
  702. package/lib/esm/utils/authentication.js +0 -21
  703. package/lib/esm/utils/authentication.js.map +0 -1
  704. package/lib/esm/utils/flow-locale.d.ts +0 -22
  705. package/lib/esm/utils/flow-locale.js +0 -79
  706. package/lib/esm/utils/flow-locale.js.map +0 -1
  707. package/lib/esm/utils/get-flow-builder-plugin.d.ts +0 -3
  708. package/lib/esm/utils/get-flow-builder-plugin.js +0 -16
  709. package/lib/esm/utils/get-flow-builder-plugin.js.map +0 -1
  710. package/lib/esm/utils/hubtype-assistant-content.d.ts +0 -13
  711. package/lib/esm/utils/hubtype-assistant-content.js +0 -184
  712. package/lib/esm/utils/hubtype-assistant-content.js.map +0 -1
  713. package/lib/esm/utils/input.d.ts +0 -6
  714. package/lib/esm/utils/input.js +0 -35
  715. package/lib/esm/utils/input.js.map +0 -1
  716. package/lib/esm/webview/contents-context.d.ts +0 -2
  717. package/lib/esm/webview/contents-context.js +0 -12
  718. package/lib/esm/webview/contents-context.js.map +0 -1
  719. package/lib/esm/webview/index.d.ts +0 -3
  720. package/lib/esm/webview/index.js +0 -10
  721. package/lib/esm/webview/index.js.map +0 -1
  722. package/lib/esm/webview/types.js +0 -9
  723. package/lib/esm/webview/types.js.map +0 -1
  724. package/lib/esm/webview/use-webview-contents.d.ts +0 -2
  725. package/lib/esm/webview/use-webview-contents.js +0 -83
  726. package/lib/esm/webview/use-webview-contents.js.map +0 -1
  727. /package/lib/{cjs/constants.d.ts → constants.d.ts} +0 -0
  728. /package/lib/{cjs/content-fields → content-fields}/hubtype-fields/node-types.d.ts +0 -0
  729. /package/lib/{cjs/services → services}/hubtype-queues-api.d.ts +0 -0
  730. /package/lib/{cjs/structured-output → structured-output}/flow-builder-content.d.ts +0 -0
  731. /package/lib/{cjs/utils → utils}/authentication.d.ts +0 -0
  732. /package/lib/{cjs/utils → utils}/flow-locale.d.ts +0 -0
  733. /package/lib/{cjs/utils → utils}/input.d.ts +0 -0
@@ -0,0 +1,4 @@
1
+
2
+
3
+
4
+ //# sourceMappingURL=whatsapp-cta-url-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/hubtype-fields/whatsapp-cta-url-button.js","sources":["../../../src/content-fields/hubtype-fields/whatsapp-cta-url-button.ts"],"sourcesContent":["import type { WhatsappCTAUrlHeaderType } from '@botonic/react'\n\nimport type { HtButton } from './button'\nimport type { HtBaseNode, HtMediaFileLocale, HtTextLocale } from './common'\nimport type { HtNodeWithContentType } from './node-types'\n\nexport interface HtWhatsappCTAUrlButtonNode extends HtBaseNode {\n type: HtNodeWithContentType.WHATSAPP_CTA_URL_BUTTON\n content: {\n text: HtTextLocale[]\n header: HtTextLocale[]\n header_type?: WhatsappCTAUrlHeaderType\n header_image?: HtMediaFileLocale[]\n header_video?: HtMediaFileLocale[]\n header_document?: HtMediaFileLocale[]\n footer: HtTextLocale[]\n button: HtButton\n }\n}\n"],"names":[],"mappings":"AAkBC"}
@@ -1,5 +1,5 @@
1
- import type { HtBaseNode, HtTextLocale } from './common';
2
- import type { HtNodeWithContentType } from './node-types';
1
+ import type { HtBaseNode, HtTextLocale } from './common.js';
2
+ import type { HtNodeWithContentType } from './node-types.js';
3
3
  export interface HtWhatsappRequestContactInfoNode extends HtBaseNode {
4
4
  type: HtNodeWithContentType.WHATSAPP_REQUEST_CONTACT_INFO;
5
5
  content: {
@@ -0,0 +1,4 @@
1
+
2
+
3
+
4
+ //# sourceMappingURL=whatsapp-request-contact-info.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/hubtype-fields/whatsapp-request-contact-info.js","sources":["../../../src/content-fields/hubtype-fields/whatsapp-request-contact-info.ts"],"sourcesContent":["import type { HtBaseNode, HtTextLocale } from './common'\nimport type { HtNodeWithContentType } from './node-types'\n\nexport interface HtWhatsappRequestContactInfoNode extends HtBaseNode {\n type: HtNodeWithContentType.WHATSAPP_REQUEST_CONTACT_INFO\n content: {\n text: HtTextLocale[]\n }\n}\n"],"names":[],"mappings":"AAQC"}
@@ -1,7 +1,7 @@
1
1
  import type { WhatsAppTemplateButtonSubType, WhatsAppTemplateComponentType, WhatsAppTemplateParameterType } from '@botonic/react';
2
- import type { HtButton } from './button';
3
- import type { HtBaseNode, HtMediaFileLocale } from './common';
4
- import type { HtNodeWithContentType } from './node-types';
2
+ import type { HtButton } from './button.js';
3
+ import type { HtBaseNode, HtMediaFileLocale } from './common.js';
4
+ import type { HtNodeWithContentType } from './node-types.js';
5
5
  export declare enum HtWhatsAppTemplateFlowActionType {
6
6
  NAVIGATE = "navigate",
7
7
  DATA_EXCHANGE = "data_exchange"
@@ -0,0 +1,9 @@
1
+ var whatsapp_template_HtWhatsAppTemplateFlowActionType = /*#__PURE__*/ function(HtWhatsAppTemplateFlowActionType) {
2
+ HtWhatsAppTemplateFlowActionType["NAVIGATE"] = "navigate";
3
+ HtWhatsAppTemplateFlowActionType["DATA_EXCHANGE"] = "data_exchange";
4
+ return HtWhatsAppTemplateFlowActionType;
5
+ }({});
6
+
7
+ export { whatsapp_template_HtWhatsAppTemplateFlowActionType as HtWhatsAppTemplateFlowActionType };
8
+
9
+ //# sourceMappingURL=whatsapp-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/hubtype-fields/whatsapp-template.js","sources":["../../../src/content-fields/hubtype-fields/whatsapp-template.ts"],"sourcesContent":["import type {\n WhatsAppTemplateButtonSubType,\n WhatsAppTemplateComponentType,\n WhatsAppTemplateParameterType,\n} from '@botonic/react'\n\nimport type { HtButton } from './button'\nimport type { HtBaseNode, HtMediaFileLocale } from './common'\nimport type { HtNodeWithContentType } from './node-types'\n\nexport enum HtWhatsAppTemplateFlowActionType {\n NAVIGATE = 'navigate',\n DATA_EXCHANGE = 'data_exchange',\n}\n\ntype HtWhatsAppTemplateButton =\n | {\n type: WhatsAppTemplateButtonSubType.URL\n text: string\n url?: string\n index: number\n }\n | {\n type: WhatsAppTemplateButtonSubType.QUICK_REPLY\n text: string\n id: string\n index: number\n }\n | {\n type: WhatsAppTemplateButtonSubType.PHONE_NUMBER\n text: string\n phone_number: string\n index: number\n }\n | {\n type: WhatsAppTemplateButtonSubType.VOICE_CALL\n text: string\n index: number\n }\n | {\n type: WhatsAppTemplateButtonSubType.REQUEST_CONTACT_INFO\n text?: string\n index: number\n }\n | {\n type: WhatsAppTemplateButtonSubType.FLOW\n text: string\n flow_id: string\n flow_action?: HtWhatsAppTemplateFlowActionType\n navigate_screen?: string\n index: number\n }\n\nexport interface HtFlowButtonActionValue {\n flow_token: string\n flow_action_data?: Record<string, string>\n}\n\nexport interface HtWhatsAppTemplateHeaderComponent {\n type: WhatsAppTemplateComponentType.HEADER\n format:\n | WhatsAppTemplateParameterType.TEXT\n | WhatsAppTemplateParameterType.IMAGE\n | WhatsAppTemplateParameterType.VIDEO\n text?: string\n image?: { link: string }\n video?: { link: string }\n}\n\nexport interface HtWhatsAppTemplateBodyComponent {\n type: WhatsAppTemplateComponentType.BODY\n text: string\n}\n\nexport interface HtWhatsAppTemplateFooterComponent {\n type: WhatsAppTemplateComponentType.FOOTER\n text: string\n}\n\nexport interface HtWhatsAppTemplateButtonsComponent {\n type: WhatsAppTemplateComponentType.BUTTONS\n buttons: HtWhatsAppTemplateButton[]\n}\nexport type HtWhatsAppTemplateComponent =\n | HtWhatsAppTemplateHeaderComponent\n | HtWhatsAppTemplateBodyComponent\n | HtWhatsAppTemplateFooterComponent\n | HtWhatsAppTemplateButtonsComponent\n\nexport interface HtWhatsAppTemplate {\n id: string\n name: string\n language: string\n status: string\n category: string\n components: HtWhatsAppTemplateComponent[]\n namespace: string\n parameter_format: string\n}\n\nexport interface HtWhatsappTemplateContentByLocale {\n template?: HtWhatsAppTemplate\n header_variables?: {\n type: WhatsAppTemplateParameterType\n text?: Record<string, string>\n media?: HtMediaFileLocale[]\n }\n variable_values?: Record<string, string>\n url_variable_values?: Record<string, string>\n flow_button_action_values?: Record<string, HtFlowButtonActionValue>\n}\n\nexport interface HtWhatsappTemplateNode extends HtBaseNode {\n type: HtNodeWithContentType.WHATSAPP_TEMPLATE\n content: {\n by_locale: Record<string, HtWhatsappTemplateContentByLocale>\n buttons: HtButton[]\n }\n}\n"],"names":["HtWhatsAppTemplateFlowActionType"],"mappings":"AAUO,IAAKA,kDAAgCA,0BAAhCA;;;WAAAA;MAGX"}
@@ -0,0 +1,25 @@
1
+ import { FlowCustomConditionalV2 } from './custom-conditional/flow-custom-condition-v2.js';
2
+ import { FlowAiAgent } from './flow-ai-agent.js';
3
+ import { FlowAiAgentRouter } from './flow-ai-agent-router.js';
4
+ import { FlowBotAction } from './flow-bot-action.js';
5
+ import { FlowCaptureUserInput } from './flow-capture-user-input.js';
6
+ import { FlowCarousel } from './flow-carousel.js';
7
+ import { FlowChannelConditional } from './flow-channel-conditional.js';
8
+ import { FlowCountryConditional } from './flow-country-conditional.js';
9
+ import { FlowCustomConditional } from './flow-custom-conditional.js';
10
+ import { FlowGoToFlow } from './flow-go-to-flow.js';
11
+ import { FlowHandoff } from './flow-handoff.js';
12
+ import { FlowImage } from './flow-image.js';
13
+ import { FlowQueueStatusConditional } from './flow-queue-status-conditional.js';
14
+ import { FlowRating } from './flow-rating.js';
15
+ import { FlowText } from './flow-text.js';
16
+ import { FlowVideo } from './flow-video.js';
17
+ import { FlowWhatsappCtaUrlButtonNode } from './flow-whatsapp-cta-url-button.js';
18
+ import { FlowWhatsappRequestContactInfoNode } from './flow-whatsapp-request-contact-info.js';
19
+ import { FlowWhatsappTemplate } from './flow-whatsapp-template.js';
20
+ import { FlowWhatsappButtonList, FlowWhatsappButtonListRow, FlowWhatsappButtonListSection } from './whatsapp-button-list/index.js';
21
+ export { ContentFieldsBase } from './content-fields-base.js';
22
+ export { FlowButton } from './flow-button.js';
23
+ export { FlowElement } from './flow-element.js';
24
+ export { FlowAiAgent, FlowAiAgentRouter, FlowBotAction, FlowCaptureUserInput, FlowCarousel, FlowChannelConditional, FlowCountryConditional, FlowCustomConditional, FlowCustomConditionalV2, FlowGoToFlow, FlowHandoff, FlowImage, FlowQueueStatusConditional, FlowRating, FlowText, FlowVideo, FlowWhatsappButtonList, FlowWhatsappButtonListRow, FlowWhatsappButtonListSection, FlowWhatsappCtaUrlButtonNode, FlowWhatsappRequestContactInfoNode, FlowWhatsappTemplate, };
25
+ export type FlowContent = FlowCarousel | FlowImage | FlowText | FlowVideo | FlowWhatsappButtonList | FlowWhatsappCtaUrlButtonNode | FlowWhatsappRequestContactInfoNode | FlowWhatsappTemplate | FlowHandoff | FlowBotAction | FlowAiAgent | FlowRating | FlowCountryConditional | FlowChannelConditional | FlowQueueStatusConditional | FlowCustomConditional | FlowGoToFlow | FlowCaptureUserInput | FlowAiAgentRouter | FlowCustomConditionalV2;
@@ -0,0 +1,73 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+ export { FlowCustomConditionalV2 } from "./custom-conditional/flow-custom-condition-v2.js";
50
+ export { FlowAiAgent } from "./flow-ai-agent.js";
51
+ export { FlowAiAgentRouter } from "./flow-ai-agent-router.js";
52
+ export { FlowBotAction } from "./flow-bot-action.js";
53
+ export { FlowCaptureUserInput } from "./flow-capture-user-input.js";
54
+ export { FlowCarousel } from "./flow-carousel.js";
55
+ export { FlowChannelConditional } from "./flow-channel-conditional.js";
56
+ export { FlowCountryConditional } from "./flow-country-conditional.js";
57
+ export { FlowCustomConditional } from "./flow-custom-conditional.js";
58
+ export { FlowGoToFlow } from "./flow-go-to-flow.js";
59
+ export { FlowHandoff } from "./flow-handoff.js";
60
+ export { FlowImage } from "./flow-image.js";
61
+ export { FlowQueueStatusConditional } from "./flow-queue-status-conditional.js";
62
+ export { FlowRating } from "./flow-rating.js";
63
+ export { FlowText } from "./flow-text.js";
64
+ export { FlowVideo } from "./flow-video.js";
65
+ export { FlowWhatsappCtaUrlButtonNode } from "./flow-whatsapp-cta-url-button.js";
66
+ export { FlowWhatsappRequestContactInfoNode } from "./flow-whatsapp-request-contact-info.js";
67
+ export { FlowWhatsappTemplate } from "./flow-whatsapp-template.js";
68
+ export { FlowWhatsappButtonList, FlowWhatsappButtonListRow, FlowWhatsappButtonListSection } from "./whatsapp-button-list/index.js";
69
+ export { ContentFieldsBase } from "./content-fields-base.js";
70
+ export { FlowButton } from "./flow-button.js";
71
+ export { FlowElement } from "./flow-element.js";
72
+
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/index.js","sources":["../../src/content-fields/index.ts"],"sourcesContent":["import { FlowCustomConditionalV2 } from './custom-conditional/flow-custom-condition-v2'\nimport { FlowAiAgent } from './flow-ai-agent'\nimport { FlowAiAgentRouter } from './flow-ai-agent-router'\nimport { FlowBotAction } from './flow-bot-action'\nimport { FlowCaptureUserInput } from './flow-capture-user-input'\nimport { FlowCarousel } from './flow-carousel'\nimport { FlowChannelConditional } from './flow-channel-conditional'\nimport { FlowCountryConditional } from './flow-country-conditional'\nimport { FlowCustomConditional } from './flow-custom-conditional'\nimport { FlowGoToFlow } from './flow-go-to-flow'\nimport { FlowHandoff } from './flow-handoff'\nimport { FlowImage } from './flow-image'\nimport { FlowQueueStatusConditional } from './flow-queue-status-conditional'\nimport { FlowRating } from './flow-rating'\nimport { FlowText } from './flow-text'\nimport { FlowVideo } from './flow-video'\nimport { FlowWhatsappCtaUrlButtonNode } from './flow-whatsapp-cta-url-button'\nimport { FlowWhatsappRequestContactInfoNode } from './flow-whatsapp-request-contact-info'\nimport { FlowWhatsappTemplate } from './flow-whatsapp-template'\nimport {\n FlowWhatsappButtonList,\n FlowWhatsappButtonListRow,\n FlowWhatsappButtonListSection,\n} from './whatsapp-button-list'\n\nexport { ContentFieldsBase } from './content-fields-base'\nexport { FlowButton } from './flow-button'\nexport { FlowElement } from './flow-element'\nexport {\n FlowAiAgent,\n FlowAiAgentRouter,\n FlowBotAction,\n FlowCaptureUserInput,\n FlowCarousel,\n FlowChannelConditional,\n FlowCountryConditional,\n FlowCustomConditional,\n FlowCustomConditionalV2,\n FlowGoToFlow,\n FlowHandoff,\n FlowImage,\n FlowQueueStatusConditional,\n FlowRating,\n FlowText,\n FlowVideo,\n FlowWhatsappButtonList,\n FlowWhatsappButtonListRow,\n FlowWhatsappButtonListSection,\n FlowWhatsappCtaUrlButtonNode,\n FlowWhatsappRequestContactInfoNode,\n FlowWhatsappTemplate,\n}\n\nexport type FlowContent =\n | FlowCarousel\n | FlowImage\n | FlowText\n | FlowVideo\n | FlowWhatsappButtonList\n | FlowWhatsappCtaUrlButtonNode\n | FlowWhatsappRequestContactInfoNode\n | FlowWhatsappTemplate\n | FlowHandoff\n | FlowBotAction\n | FlowAiAgent\n | FlowRating\n | FlowCountryConditional\n | FlowChannelConditional\n | FlowQueueStatusConditional\n | FlowCustomConditional\n | FlowGoToFlow\n | FlowCaptureUserInput\n | FlowAiAgentRouter\n | FlowCustomConditionalV2\n"],"names":["FlowCustomConditionalV2","FlowAiAgent","FlowAiAgentRouter","FlowBotAction","FlowCaptureUserInput","FlowCarousel","FlowChannelConditional","FlowCountryConditional","FlowCustomConditional","FlowGoToFlow","FlowHandoff","FlowImage","FlowQueueStatusConditional","FlowRating","FlowText","FlowVideo","FlowWhatsappCtaUrlButtonNode","FlowWhatsappRequestContactInfoNode","FlowWhatsappTemplate","FlowWhatsappButtonList","FlowWhatsappButtonListRow","FlowWhatsappButtonListSection","ContentFieldsBase","FlowButton","FlowElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAuF;AAC1C;AACa;AACT;AACe;AAClB;AACqB;AACA;AACF;AACjB;AACJ;AACJ;AACoC;AAClC;AACJ;AACE;AACqC;AACY;AAC1B;AAKhC;AAE0B;AACf;AACE;AAwB3C"}
@@ -1,7 +1,7 @@
1
1
  import type { WhatsappButtonListRowProps } from '@botonic/react';
2
- import type { FlowBuilderApi } from '../../api';
3
- import { ContentFieldsBase } from '../content-fields-base';
4
- import type { HtWhatsappButtonListRow } from '../hubtype-fields';
2
+ import type { FlowBuilderApi } from '../../api.js';
3
+ import { ContentFieldsBase } from '../content-fields-base.js';
4
+ import type { HtWhatsappButtonListRow } from '../hubtype-fields/index.js';
5
5
  export declare class FlowWhatsappButtonListRow extends ContentFieldsBase {
6
6
  title: string;
7
7
  description: string;
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlowWhatsappButtonListRow = void 0;
4
- const constants_1 = require("../../constants");
5
- const content_fields_base_1 = require("../content-fields-base");
6
- class FlowWhatsappButtonListRow extends content_fields_base_1.ContentFieldsBase {
7
- constructor() {
8
- super(...arguments);
9
- this.title = '';
10
- this.description = '';
11
- }
1
+ import { SOURCE_INFO_SEPARATOR } from "../../constants.js";
2
+ import { ContentFieldsBase } from "../content-fields-base.js";
3
+
4
+
5
+
6
+
7
+
8
+ class FlowWhatsappButtonListRow extends ContentFieldsBase {
12
9
  static fromHubtypeCMS(component, locale, cmsApi) {
13
10
  const newRow = new FlowWhatsappButtonListRow(component.id);
14
11
  newRow.title = FlowWhatsappButtonListRow.getTextByLocale(locale, component.text);
@@ -30,12 +27,17 @@ class FlowWhatsappButtonListRow extends content_fields_base_1.ContentFieldsBase
30
27
  return {
31
28
  id: this.getRowId(rowIndex, sectionIndex),
32
29
  title: this.title,
33
- description: this.description,
30
+ description: this.description
34
31
  };
35
32
  }
36
33
  getRowId(rowIndex, sectionIndex) {
37
- return `${this.targetId}${constants_1.SOURCE_INFO_SEPARATOR}${sectionIndex}.${rowIndex}`;
34
+ return `${this.targetId}${SOURCE_INFO_SEPARATOR}${sectionIndex}.${rowIndex}`;
35
+ }
36
+ constructor(...args){
37
+ super(...args), this.title = '', this.description = '';
38
38
  }
39
39
  }
40
- exports.FlowWhatsappButtonListRow = FlowWhatsappButtonListRow;
40
+
41
+ export { FlowWhatsappButtonListRow };
42
+
41
43
  //# sourceMappingURL=flow-whatsapp-button-list-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.js","sources":["../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-row.tsx"],"sourcesContent":["import type { WhatsappButtonListRowProps } from '@botonic/react'\n\nimport type { FlowBuilderApi } from '../../api'\nimport { SOURCE_INFO_SEPARATOR } from '../../constants'\nimport { ContentFieldsBase } from '../content-fields-base'\nimport type { HtWhatsappButtonListRow } from '../hubtype-fields'\n\nexport class FlowWhatsappButtonListRow extends ContentFieldsBase {\n public title = ''\n public description = ''\n public targetId?: string\n\n static fromHubtypeCMS(\n component: HtWhatsappButtonListRow,\n locale: string,\n cmsApi: FlowBuilderApi\n ): FlowWhatsappButtonListRow {\n const newRow = new FlowWhatsappButtonListRow(component.id)\n newRow.title = FlowWhatsappButtonListRow.getTextByLocale(\n locale,\n component.text\n )\n newRow.description = FlowWhatsappButtonListRow.getTextByLocale(\n locale,\n component.description\n )\n newRow.targetId = cmsApi.getPayload(component.target)\n\n return newRow\n }\n\n async trackFlow(): Promise<void> {\n return\n }\n\n async processContent(): Promise<void> {\n return\n }\n\n renderRow(\n rowIndex: number,\n sectionIndex: number\n ): WhatsappButtonListRowProps | undefined {\n if (!this.targetId) {\n console.error(`Row with title: '${this.title}' has no target`)\n return undefined\n }\n return {\n id: this.getRowId(rowIndex, sectionIndex),\n title: this.title,\n description: this.description,\n }\n }\n\n private getRowId(rowIndex: number, sectionIndex: number): string {\n return `${this.targetId}${SOURCE_INFO_SEPARATOR}${sectionIndex}.${rowIndex}`\n }\n}\n"],"names":["SOURCE_INFO_SEPARATOR","ContentFieldsBase","FlowWhatsappButtonListRow","component","locale","cmsApi","newRow","rowIndex","sectionIndex","console","undefined"],"mappings":";;;;;AAGuD;AACG;AAGnD,MAAME,yBAAyBA,SAASD,iBAAiBA;IAK9D,OAAO,eACLE,SAAkC,EAClCC,MAAc,EACdC,MAAsB,EACK;QAC3B,MAAMC,SAAS,IAAIJ,yBAAyBA,CAACC,UAAU,EAAE;QACzDG,OAAO,KAAK,GAAGJ,yBAAyBA,CAAC,eAAe,CACtDE,QACAD,UAAU,IAAI;QAEhBG,OAAO,WAAW,GAAGJ,yBAAyBA,CAAC,eAAe,CAC5DE,QACAD,UAAU,WAAW;QAEvBG,OAAO,QAAQ,GAAGD,OAAO,UAAU,CAACF,UAAU,MAAM;QAEpD,OAAOG;IACT;IAEA,MAAM,YAA2B;QAC/B;IACF;IAEA,MAAM,iBAAgC;QACpC;IACF;IAEA,UACEC,QAAgB,EAChBC,YAAoB,EACoB;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClBC,QAAQ,KAAK,CAAC,CAAC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;YAC7D,OAAOC;QACT;QACA,OAAO;YACL,IAAI,IAAI,CAAC,QAAQ,CAACH,UAAUC;YAC5B,OAAO,IAAI,CAAC,KAAK;YACjB,aAAa,IAAI,CAAC,WAAW;QAC/B;IACF;IAEQ,SAASD,QAAgB,EAAEC,YAAoB,EAAU;QAC/D,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAGR,qBAAqBA,GAAGQ,aAAa,CAAC,EAAED,UAAU;IAC9E;;QAjDK,qBACE,QAAQ,SACR,cAAc;;AAgDvB"}
@@ -1,8 +1,8 @@
1
1
  import type { WhatsappButtonListSectionProps } from '@botonic/react';
2
- import type { FlowBuilderApi } from '../../api';
3
- import { ContentFieldsBase } from '../content-fields-base';
4
- import type { HtWhatsappButtonListSection } from '../hubtype-fields';
5
- import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
2
+ import type { FlowBuilderApi } from '../../api.js';
3
+ import { ContentFieldsBase } from '../content-fields-base.js';
4
+ import type { HtWhatsappButtonListSection } from '../hubtype-fields/index.js';
5
+ import { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row.js';
6
6
  export declare class FlowWhatsappButtonListSection extends ContentFieldsBase {
7
7
  title: string;
8
8
  rows: FlowWhatsappButtonListRow[];
@@ -0,0 +1,41 @@
1
+ import { ContentFieldsBase } from "../content-fields-base.js";
2
+ import { FlowWhatsappButtonListRow } from "./flow-whatsapp-button-list-row.js";
3
+
4
+
5
+
6
+
7
+
8
+ class FlowWhatsappButtonListSection extends ContentFieldsBase {
9
+ static fromHubtypeCMS(component, locale, cmsApi) {
10
+ const newButton = new FlowWhatsappButtonListSection(component.id);
11
+ newButton.title = FlowWhatsappButtonListSection.getTextByLocale(locale, component.title);
12
+ newButton.rows = component.rows.map((row)=>FlowWhatsappButtonListRow.fromHubtypeCMS(row, locale, cmsApi));
13
+ return newButton;
14
+ }
15
+ async trackFlow() {
16
+ return;
17
+ }
18
+ async processContent() {
19
+ return;
20
+ }
21
+ renderSection(sectionIndex) {
22
+ const rows = this.rows.reduce((acc, row, rowIndex)=>{
23
+ const botonicRow = row.renderRow(rowIndex, sectionIndex);
24
+ if (botonicRow) {
25
+ acc.push(botonicRow);
26
+ }
27
+ return acc;
28
+ }, []);
29
+ return {
30
+ title: this.title,
31
+ rows
32
+ };
33
+ }
34
+ constructor(...args){
35
+ super(...args), this.title = '', this.rows = [];
36
+ }
37
+ }
38
+
39
+ export { FlowWhatsappButtonListSection };
40
+
41
+ //# sourceMappingURL=flow-whatsapp-button-list-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.js","sources":["../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list-section.tsx"],"sourcesContent":["import type {\n WhatsappButtonListRowProps,\n WhatsappButtonListSectionProps,\n} from '@botonic/react'\n\nimport type { FlowBuilderApi } from '../../api'\nimport { ContentFieldsBase } from '../content-fields-base'\nimport type { HtWhatsappButtonListSection } from '../hubtype-fields'\nimport { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row'\n\nexport class FlowWhatsappButtonListSection extends ContentFieldsBase {\n public title = ''\n public rows: FlowWhatsappButtonListRow[] = []\n\n static fromHubtypeCMS(\n component: HtWhatsappButtonListSection,\n locale: string,\n cmsApi: FlowBuilderApi\n ): FlowWhatsappButtonListSection {\n const newButton = new FlowWhatsappButtonListSection(component.id)\n newButton.title = FlowWhatsappButtonListSection.getTextByLocale(\n locale,\n component.title\n )\n newButton.rows = component.rows.map(row =>\n FlowWhatsappButtonListRow.fromHubtypeCMS(row, locale, cmsApi)\n )\n return newButton\n }\n\n async trackFlow(): Promise<void> {\n return\n }\n\n async processContent(): Promise<void> {\n return\n }\n\n renderSection(sectionIndex: number): WhatsappButtonListSectionProps {\n const rows = this.rows.reduce(\n (acc: WhatsappButtonListRowProps[], row, rowIndex) => {\n const botonicRow = row.renderRow(rowIndex, sectionIndex)\n if (botonicRow) {\n acc.push(botonicRow)\n }\n return acc\n },\n []\n )\n\n return { title: this.title, rows }\n }\n}\n"],"names":["ContentFieldsBase","FlowWhatsappButtonListRow","FlowWhatsappButtonListSection","component","locale","cmsApi","newButton","row","sectionIndex","rows","acc","rowIndex","botonicRow"],"mappings":";;;;;AAM0D;AAEiB;AAEpE,MAAME,6BAA6BA,SAASF,iBAAiBA;IAIlE,OAAO,eACLG,SAAsC,EACtCC,MAAc,EACdC,MAAsB,EACS;QAC/B,MAAMC,YAAY,IAAIJ,6BAA6BA,CAACC,UAAU,EAAE;QAChEG,UAAU,KAAK,GAAGJ,6BAA6BA,CAAC,eAAe,CAC7DE,QACAD,UAAU,KAAK;QAEjBG,UAAU,IAAI,GAAGH,UAAU,IAAI,CAAC,GAAG,CAACI,CAAAA,MAClCN,wCAAwC,CAACM,KAAKH,QAAQC;QAExD,OAAOC;IACT;IAEA,MAAM,YAA2B;QAC/B;IACF;IAEA,MAAM,iBAAgC;QACpC;IACF;IAEA,cAAcE,YAAoB,EAAkC;QAClE,MAAMC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAC3B,CAACC,KAAmCH,KAAKI;YACvC,MAAMC,aAAaL,IAAI,SAAS,CAACI,UAAUH;YAC3C,IAAII,YAAY;gBACdF,IAAI,IAAI,CAACE;YACX;YACA,OAAOF;QACT,GACA,EAAE;QAGJ,OAAO;YAAE,OAAO,IAAI,CAAC,KAAK;YAAED;QAAK;IACnC;;QAzCK,qBACE,QAAQ,SACR,OAAoC,EAAE;;AAwC/C"}
@@ -1,8 +1,8 @@
1
1
  import { type BotContext } from '@botonic/core';
2
- import type { FlowBuilderApi } from '../../api';
3
- import { ContentFieldsBase } from '../content-fields-base';
4
- import type { HtWhatsappButtonListNode } from '../hubtype-fields';
5
- import { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section';
2
+ import type { FlowBuilderApi } from '../../api.js';
3
+ import { ContentFieldsBase } from '../content-fields-base.js';
4
+ import type { HtWhatsappButtonListNode } from '../hubtype-fields/index.js';
5
+ import { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section.js';
6
6
  export declare class FlowWhatsappButtonList extends ContentFieldsBase {
7
7
  text: string;
8
8
  listButtonText: string;
@@ -0,0 +1,66 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { isWhatsapp } from "@botonic/core";
3
+ import { Button, Text, WhatsappButtonList } from "@botonic/react";
4
+ import { trackOneContent } from "../../tracking.js";
5
+ import { ContentFieldsBase } from "../content-fields-base.js";
6
+ import { FlowWhatsappButtonListSection } from "./flow-whatsapp-button-list-section.js";
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ class FlowWhatsappButtonList extends ContentFieldsBase {
21
+ static fromHubtypeCMS(component, locale, cmsApi) {
22
+ const newWhatsappButtonList = new FlowWhatsappButtonList(component.id);
23
+ newWhatsappButtonList.code = component.code;
24
+ newWhatsappButtonList.text = FlowWhatsappButtonList.getTextByLocale(locale, component.content.text);
25
+ newWhatsappButtonList.listButtonText = FlowWhatsappButtonList.getTextByLocale(locale, component.content.button_text);
26
+ newWhatsappButtonList.sections = component.content.sections.map((section)=>FlowWhatsappButtonListSection.fromHubtypeCMS(section, locale, cmsApi));
27
+ newWhatsappButtonList.followUp = component.follow_up;
28
+ return newWhatsappButtonList;
29
+ }
30
+ async trackFlow(botContext) {
31
+ await trackOneContent(botContext, this);
32
+ }
33
+ async processContent(botContext) {
34
+ await this.trackFlow(botContext);
35
+ await this.filterContent(botContext, this);
36
+ return;
37
+ }
38
+ toBotonic(botContext) {
39
+ const replacedText = this.replaceVariables(this.text, botContext);
40
+ if (!isWhatsapp(botContext.session)) {
41
+ const rows = this.sections.flatMap((section)=>section.rows);
42
+ const buttons = rows.map((row)=>/*#__PURE__*/ jsx(Button, {
43
+ payload: row.targetId,
44
+ children: row.title
45
+ }, row.id));
46
+ return /*#__PURE__*/ jsxs(Text, {
47
+ children: [
48
+ replacedText,
49
+ buttons
50
+ ]
51
+ });
52
+ }
53
+ return /*#__PURE__*/ jsx(WhatsappButtonList, {
54
+ body: replacedText,
55
+ button: this.listButtonText,
56
+ sections: this.sections.map((section, sectionIndex)=>section.renderSection(sectionIndex))
57
+ }, this.id);
58
+ }
59
+ constructor(...args){
60
+ super(...args), this.text = '', this.listButtonText = '', this.sections = [];
61
+ }
62
+ }
63
+
64
+ export { FlowWhatsappButtonList };
65
+
66
+ //# sourceMappingURL=flow-whatsapp-button-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/whatsapp-button-list/flow-whatsapp-button-list.js","sources":["../../../src/content-fields/whatsapp-button-list/flow-whatsapp-button-list.tsx"],"sourcesContent":["import { type BotContext, isWhatsapp } from '@botonic/core'\nimport { Button, Text, WhatsappButtonList } from '@botonic/react'\n\nimport type { FlowBuilderApi } from '../../api'\nimport { trackOneContent } from '../../tracking'\nimport { ContentFieldsBase } from '../content-fields-base'\nimport type { HtWhatsappButtonListNode } from '../hubtype-fields'\nimport { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section'\n\nexport class FlowWhatsappButtonList extends ContentFieldsBase {\n public text = ''\n public listButtonText = ''\n public sections: FlowWhatsappButtonListSection[] = []\n\n static fromHubtypeCMS(\n component: HtWhatsappButtonListNode,\n locale: string,\n cmsApi: FlowBuilderApi\n ): FlowWhatsappButtonList {\n const newWhatsappButtonList = new FlowWhatsappButtonList(component.id)\n newWhatsappButtonList.code = component.code\n newWhatsappButtonList.text = FlowWhatsappButtonList.getTextByLocale(\n locale,\n component.content.text\n )\n newWhatsappButtonList.listButtonText =\n FlowWhatsappButtonList.getTextByLocale(\n locale,\n component.content.button_text\n )\n newWhatsappButtonList.sections = component.content.sections.map(section =>\n FlowWhatsappButtonListSection.fromHubtypeCMS(section, locale, cmsApi)\n )\n newWhatsappButtonList.followUp = component.follow_up\n\n return newWhatsappButtonList\n }\n\n async trackFlow(botContext: BotContext): Promise<void> {\n await trackOneContent(botContext, this)\n }\n\n async processContent(botContext: BotContext): Promise<void> {\n await this.trackFlow(botContext)\n await this.filterContent(botContext, this)\n return\n }\n\n toBotonic(botContext: BotContext): JSX.Element {\n const replacedText = this.replaceVariables(this.text, botContext)\n\n if (!isWhatsapp(botContext.session)) {\n const rows = this.sections.flatMap(section => section.rows)\n const buttons = rows.map(row => (\n <Button key={row.id} payload={row.targetId}>\n {row.title}\n </Button>\n ))\n\n return (\n <Text>\n {replacedText}\n {buttons}\n </Text>\n )\n }\n\n return (\n <WhatsappButtonList\n key={this.id}\n body={replacedText}\n button={this.listButtonText}\n sections={this.sections.map((section, sectionIndex) =>\n section.renderSection(sectionIndex)\n )}\n />\n )\n }\n}\n"],"names":["isWhatsapp","Button","Text","WhatsappButtonList","trackOneContent","ContentFieldsBase","FlowWhatsappButtonListSection","FlowWhatsappButtonList","component","locale","cmsApi","newWhatsappButtonList","section","botContext","replacedText","rows","buttons","row","sectionIndex"],"mappings":";;;;;;;;;;;;;;AAA2D;AACM;AAGjB;AACU;AAEyB;AAE5E,MAAMO,sBAAsBA,SAASF,iBAAiBA;IAK3D,OAAO,eACLG,SAAmC,EACnCC,MAAc,EACdC,MAAsB,EACE;QACxB,MAAMC,wBAAwB,IAAIJ,sBAAsBA,CAACC,UAAU,EAAE;QACrEG,sBAAsB,IAAI,GAAGH,UAAU,IAAI;QAC3CG,sBAAsB,IAAI,GAAGJ,sBAAsBA,CAAC,eAAe,CACjEE,QACAD,UAAU,OAAO,CAAC,IAAI;QAExBG,sBAAsB,cAAc,GAClCJ,sBAAsBA,CAAC,eAAe,CACpCE,QACAD,UAAU,OAAO,CAAC,WAAW;QAEjCG,sBAAsB,QAAQ,GAAGH,UAAU,OAAO,CAAC,QAAQ,CAAC,GAAG,CAACI,CAAAA,UAC9DN,4CAA4C,CAACM,SAASH,QAAQC;QAEhEC,sBAAsB,QAAQ,GAAGH,UAAU,SAAS;QAEpD,OAAOG;IACT;IAEA,MAAM,UAAUE,UAAsB,EAAiB;QACrD,MAAMT,eAAeA,CAACS,YAAY,IAAI;IACxC;IAEA,MAAM,eAAeA,UAAsB,EAAiB;QAC1D,MAAM,IAAI,CAAC,SAAS,CAACA;QACrB,MAAM,IAAI,CAAC,aAAa,CAACA,YAAY,IAAI;QACzC;IACF;IAEA,UAAUA,UAAsB,EAAe;QAC7C,MAAMC,eAAe,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAED;QAEtD,IAAI,CAACb,UAAUA,CAACa,WAAW,OAAO,GAAG;YACnC,MAAME,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAACH,CAAAA,UAAWA,QAAQ,IAAI;YAC1D,MAAMI,UAAUD,KAAK,GAAG,CAACE,CAAAA,oBACvB,IAAChB,MAAMA;oBAAc,SAASgB,IAAI,QAAQ;8BACvCA,IAAI,KAAK;mBADCA,IAAI,EAAE;YAKrB,qBACE,KAACf,IAAIA;;oBACFY;oBACAE;;;QAGP;QAEA,qBACE,IAACb,kBAAkBA;YAEjB,MAAMW;YACN,QAAQ,IAAI,CAAC,cAAc;YAC3B,UAAU,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAACF,SAASM,eACpCN,QAAQ,aAAa,CAACM;WAJnB,IAAI,CAAC,EAAE;IAQlB;;QApEK,qBACE,OAAO,SACP,iBAAiB,SACjB,WAA4C,EAAE;;AAkEvD"}
@@ -1,3 +1,3 @@
1
- export { FlowWhatsappButtonList } from './flow-whatsapp-button-list';
2
- export { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row';
3
- export { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section';
1
+ export { FlowWhatsappButtonList } from './flow-whatsapp-button-list.js';
2
+ export { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row.js';
3
+ export { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section.js';
@@ -0,0 +1,12 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+ export { FlowWhatsappButtonList } from "./flow-whatsapp-button-list.js";
9
+ export { FlowWhatsappButtonListRow } from "./flow-whatsapp-button-list-row.js";
10
+ export { FlowWhatsappButtonListSection } from "./flow-whatsapp-button-list-section.js";
11
+
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-fields/whatsapp-button-list/index.js","sources":["../../../src/content-fields/whatsapp-button-list/index.ts"],"sourcesContent":["export { FlowWhatsappButtonList } from './flow-whatsapp-button-list'\nexport { FlowWhatsappButtonListRow } from './flow-whatsapp-button-list-row'\nexport { FlowWhatsappButtonListSection } from './flow-whatsapp-button-list-section'\n"],"names":["FlowWhatsappButtonList","FlowWhatsappButtonListRow","FlowWhatsappButtonListSection"],"mappings":";;;AAAoE;AACO;AACQ"}
@@ -1,6 +1,6 @@
1
1
  import type { BotContext } from '@botonic/core';
2
- import type { FlowContent } from '../content-fields';
3
- import type { ContentFilter } from '../types';
2
+ import type { FlowContent } from '../content-fields/index.js';
3
+ import type { ContentFilter } from '../types.js';
4
4
  interface ContentFilterExecutorOptions {
5
5
  filters: ContentFilter[];
6
6
  }
@@ -0,0 +1,16 @@
1
+ class ContentFilterExecutor {
2
+ async filter(request, content) {
3
+ for (const filter of this.filters){
4
+ content = await filter(request, content);
5
+ }
6
+ return content;
7
+ }
8
+ constructor(options){
9
+ this.filters = [];
10
+ this.filters = options.filters;
11
+ }
12
+ }
13
+
14
+ export { ContentFilterExecutor };
15
+
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filters/index.js","sources":["../../src/filters/index.ts"],"sourcesContent":["import type { BotContext } from '@botonic/core'\n\nimport type { FlowContent } from '../content-fields'\nimport type { ContentFilter } from '../types'\n\ninterface ContentFilterExecutorOptions {\n filters: ContentFilter[]\n}\n\nexport class ContentFilterExecutor {\n private filters: ContentFilter[] = []\n\n constructor(options: ContentFilterExecutorOptions) {\n this.filters = options.filters\n }\n\n async filter(\n request: BotContext,\n content: FlowContent\n ): Promise<FlowContent> {\n for (const filter of this.filters) {\n content = await filter(request, content)\n }\n\n return content\n }\n}\n"],"names":["ContentFilterExecutor","request","content","filter","options"],"mappings":"AASO,MAAMA,qBAAqBA;IAOhC,MAAM,OACJC,OAAmB,EACnBC,OAAoB,EACE;QACtB,KAAK,MAAMC,UAAU,IAAI,CAAC,OAAO,CAAE;YACjCD,UAAU,MAAMC,OAAOF,SAASC;QAClC;QAEA,OAAOA;IACT;IAbA,YAAYE,OAAqC,CAAE;aAF3C,UAA2B,EAAE;QAGnC,IAAI,CAAC,OAAO,GAAGA,QAAQ,OAAO;IAChC;AAYF"}
@@ -1,7 +1,7 @@
1
1
  import type { BotContext } from '@botonic/core';
2
- import type { FlowBuilderApi } from './api';
3
- import { type FlowContent } from './content-fields';
4
- import { type HtNodeComponent } from './content-fields/hubtype-fields';
2
+ import type { FlowBuilderApi } from './api.js';
3
+ import { type FlowContent } from './content-fields/index.js';
4
+ import { type HtNodeComponent } from './content-fields/hubtype-fields/index.js';
5
5
  export declare class FlowFactory {
6
6
  botContext: BotContext;
7
7
  cmsApi: FlowBuilderApi;
@@ -0,0 +1,75 @@
1
+ import { FlowAiAgent, FlowAiAgentRouter, FlowBotAction, FlowCarousel, FlowChannelConditional, FlowCountryConditional, FlowCustomConditional, FlowCustomConditionalV2, FlowGoToFlow, FlowHandoff, FlowImage, FlowQueueStatusConditional, FlowRating, FlowText, FlowVideo, FlowWhatsappButtonList, FlowWhatsappCtaUrlButtonNode, FlowWhatsappRequestContactInfoNode, FlowWhatsappTemplate } from "./content-fields/index.js";
2
+ import { FlowCaptureUserInput } from "./content-fields/flow-capture-user-input.js";
3
+ import { HtNodeWithContentType } from "./content-fields/hubtype-fields/index.js";
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ class FlowFactory {
12
+ async getFlowContent(hubtypeContent) {
13
+ switch(hubtypeContent.type){
14
+ case HtNodeWithContentType.TEXT:
15
+ return FlowText.fromHubtypeCMS(hubtypeContent, this.locale, this.cmsApi, this.botContext);
16
+ case HtNodeWithContentType.IMAGE:
17
+ return FlowImage.fromHubtypeCMS(hubtypeContent, this.locale);
18
+ case HtNodeWithContentType.CAROUSEL:
19
+ return FlowCarousel.fromHubtypeCMS(hubtypeContent, this.locale, this.cmsApi, this.botContext);
20
+ case HtNodeWithContentType.VIDEO:
21
+ return FlowVideo.fromHubtypeCMS(hubtypeContent, this.locale);
22
+ case HtNodeWithContentType.WHATSAPP_BUTTON_LIST:
23
+ return FlowWhatsappButtonList.fromHubtypeCMS(hubtypeContent, this.locale, this.cmsApi);
24
+ case HtNodeWithContentType.WHATSAPP_CTA_URL_BUTTON:
25
+ return FlowWhatsappCtaUrlButtonNode.fromHubtypeCMS(hubtypeContent, this.locale, this.cmsApi, this.botContext);
26
+ case HtNodeWithContentType.WHATSAPP_REQUEST_CONTACT_INFO:
27
+ return FlowWhatsappRequestContactInfoNode.fromHubtypeCMS(hubtypeContent, this.locale);
28
+ case HtNodeWithContentType.HANDOFF:
29
+ return FlowHandoff.fromHubtypeCMS(hubtypeContent, this.locale, this.cmsApi);
30
+ case HtNodeWithContentType.AI_AGENT_ROUTER:
31
+ return FlowAiAgentRouter.fromHubtypeCMS(hubtypeContent, this.botContext);
32
+ case HtNodeWithContentType.AI_AGENT:
33
+ return FlowAiAgent.fromHubtypeCMS(hubtypeContent, this.botContext);
34
+ case HtNodeWithContentType.RATING:
35
+ return FlowRating.fromHubtypeCMS(hubtypeContent, this.locale);
36
+ case HtNodeWithContentType.BOT_ACTION:
37
+ return FlowBotAction.fromHubtypeCMS(hubtypeContent, this.cmsApi);
38
+ case HtNodeWithContentType.FUNCTION:
39
+ return this.resolveFlowFunctionContent(hubtypeContent);
40
+ case HtNodeWithContentType.GO_TO_FLOW:
41
+ return FlowGoToFlow.fromHubtypeCMS(hubtypeContent, this.cmsApi);
42
+ case HtNodeWithContentType.WHATSAPP_TEMPLATE:
43
+ return FlowWhatsappTemplate.fromHubtypeCMS(hubtypeContent, this.locale);
44
+ case HtNodeWithContentType.CAPTURE_USER_INPUT:
45
+ return FlowCaptureUserInput.fromHubtypeCMS(hubtypeContent);
46
+ case HtNodeWithContentType.CUSTOM_CONDITION:
47
+ return FlowCustomConditionalV2.fromHubtypeCMS(hubtypeContent, this.botContext);
48
+ default:
49
+ return undefined;
50
+ }
51
+ }
52
+ async resolveFlowFunctionContent(hubtypeContent) {
53
+ switch(hubtypeContent.content.action){
54
+ case 'check-country':
55
+ return FlowCountryConditional.fromHubtypeCMS(hubtypeContent, this.botContext);
56
+ case 'get-channel-type':
57
+ return FlowChannelConditional.fromHubtypeCMS(hubtypeContent, this.botContext);
58
+ case 'check-queue-status':
59
+ return FlowQueueStatusConditional.fromHubtypeCMS(hubtypeContent, this.locale);
60
+ case 'check-bot-variable':
61
+ return FlowCustomConditional.fromHubtypeCMS(hubtypeContent, this.botContext);
62
+ default:
63
+ return undefined;
64
+ }
65
+ }
66
+ constructor(botContext, cmsApi, locale){
67
+ this.botContext = botContext;
68
+ this.cmsApi = cmsApi;
69
+ this.locale = locale;
70
+ }
71
+ }
72
+
73
+ export { FlowFactory };
74
+
75
+ //# sourceMappingURL=flow-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-factory.js","sources":["../src/flow-factory.ts"],"sourcesContent":["import type { BotContext } from '@botonic/core'\n\nimport type { FlowBuilderApi } from './api'\nimport {\n FlowAiAgent,\n FlowAiAgentRouter,\n FlowBotAction,\n FlowCarousel,\n FlowChannelConditional,\n type FlowContent,\n FlowCountryConditional,\n FlowCustomConditional,\n FlowCustomConditionalV2,\n FlowGoToFlow,\n FlowHandoff,\n FlowImage,\n FlowQueueStatusConditional,\n FlowRating,\n FlowText,\n FlowVideo,\n FlowWhatsappButtonList,\n FlowWhatsappCtaUrlButtonNode,\n FlowWhatsappRequestContactInfoNode,\n FlowWhatsappTemplate,\n} from './content-fields'\nimport { FlowCaptureUserInput } from './content-fields/flow-capture-user-input'\nimport {\n type HtFunctionNode,\n type HtNodeComponent,\n HtNodeWithContentType,\n} from './content-fields/hubtype-fields'\n\nexport class FlowFactory {\n public botContext: BotContext\n public cmsApi: FlowBuilderApi\n public locale: string\n\n constructor(botContext: BotContext, cmsApi: FlowBuilderApi, locale: string) {\n this.botContext = botContext\n this.cmsApi = cmsApi\n this.locale = locale\n }\n\n async getFlowContent(\n hubtypeContent: HtNodeComponent\n ): Promise<FlowContent | undefined> {\n switch (hubtypeContent.type) {\n case HtNodeWithContentType.TEXT:\n return FlowText.fromHubtypeCMS(\n hubtypeContent,\n this.locale,\n this.cmsApi,\n this.botContext\n )\n case HtNodeWithContentType.IMAGE:\n return FlowImage.fromHubtypeCMS(hubtypeContent, this.locale)\n case HtNodeWithContentType.CAROUSEL:\n return FlowCarousel.fromHubtypeCMS(\n hubtypeContent,\n this.locale,\n this.cmsApi,\n this.botContext\n )\n case HtNodeWithContentType.VIDEO:\n return FlowVideo.fromHubtypeCMS(hubtypeContent, this.locale)\n case HtNodeWithContentType.WHATSAPP_BUTTON_LIST:\n return FlowWhatsappButtonList.fromHubtypeCMS(\n hubtypeContent,\n this.locale,\n this.cmsApi\n )\n case HtNodeWithContentType.WHATSAPP_CTA_URL_BUTTON:\n return FlowWhatsappCtaUrlButtonNode.fromHubtypeCMS(\n hubtypeContent,\n this.locale,\n this.cmsApi,\n this.botContext\n )\n case HtNodeWithContentType.WHATSAPP_REQUEST_CONTACT_INFO:\n return FlowWhatsappRequestContactInfoNode.fromHubtypeCMS(\n hubtypeContent,\n this.locale\n )\n case HtNodeWithContentType.HANDOFF:\n return FlowHandoff.fromHubtypeCMS(\n hubtypeContent,\n this.locale,\n this.cmsApi\n )\n\n case HtNodeWithContentType.AI_AGENT_ROUTER:\n return FlowAiAgentRouter.fromHubtypeCMS(hubtypeContent, this.botContext)\n\n case HtNodeWithContentType.AI_AGENT:\n return FlowAiAgent.fromHubtypeCMS(hubtypeContent, this.botContext)\n\n case HtNodeWithContentType.RATING:\n return FlowRating.fromHubtypeCMS(hubtypeContent, this.locale)\n\n case HtNodeWithContentType.BOT_ACTION:\n return FlowBotAction.fromHubtypeCMS(hubtypeContent, this.cmsApi)\n\n case HtNodeWithContentType.FUNCTION:\n return this.resolveFlowFunctionContent(hubtypeContent)\n\n case HtNodeWithContentType.GO_TO_FLOW:\n return FlowGoToFlow.fromHubtypeCMS(hubtypeContent, this.cmsApi)\n\n case HtNodeWithContentType.WHATSAPP_TEMPLATE:\n return FlowWhatsappTemplate.fromHubtypeCMS(hubtypeContent, this.locale)\n\n case HtNodeWithContentType.CAPTURE_USER_INPUT:\n return FlowCaptureUserInput.fromHubtypeCMS(hubtypeContent)\n\n case HtNodeWithContentType.CUSTOM_CONDITION:\n return FlowCustomConditionalV2.fromHubtypeCMS(\n hubtypeContent,\n this.botContext\n )\n\n default:\n return undefined\n }\n }\n\n private async resolveFlowFunctionContent(\n hubtypeContent: HtFunctionNode\n ): Promise<FlowContent | undefined> {\n switch (hubtypeContent.content.action) {\n case 'check-country':\n return FlowCountryConditional.fromHubtypeCMS(\n hubtypeContent,\n this.botContext\n )\n case 'get-channel-type':\n return FlowChannelConditional.fromHubtypeCMS(\n hubtypeContent,\n this.botContext\n )\n case 'check-queue-status':\n return FlowQueueStatusConditional.fromHubtypeCMS(\n hubtypeContent,\n this.locale\n )\n case 'check-bot-variable':\n return FlowCustomConditional.fromHubtypeCMS(\n hubtypeContent,\n this.botContext\n )\n default:\n return undefined\n }\n }\n}\n"],"names":["FlowAiAgent","FlowAiAgentRouter","FlowBotAction","FlowCarousel","FlowChannelConditional","FlowCountryConditional","FlowCustomConditional","FlowCustomConditionalV2","FlowGoToFlow","FlowHandoff","FlowImage","FlowQueueStatusConditional","FlowRating","FlowText","FlowVideo","FlowWhatsappButtonList","FlowWhatsappCtaUrlButtonNode","FlowWhatsappRequestContactInfoNode","FlowWhatsappTemplate","FlowCaptureUserInput","HtNodeWithContentType","FlowFactory","hubtypeContent","undefined","botContext","cmsApi","locale"],"mappings":";;;;;;;AAwByB;AACsD;AAKvC;AAEjC,MAAMqB,WAAWA;IAWtB,MAAM,eACJC,cAA+B,EACG;QAClC,OAAQA,eAAe,IAAI;YACzB,KAAKF,0BAA0B;gBAC7B,OAAOP,uBAAuB,CAC5BS,gBACA,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU;YAEnB,KAAKF,2BAA2B;gBAC9B,OAAOV,wBAAwB,CAACY,gBAAgB,IAAI,CAAC,MAAM;YAC7D,KAAKF,8BAA8B;gBACjC,OAAOjB,2BAA2B,CAChCmB,gBACA,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU;YAEnB,KAAKF,2BAA2B;gBAC9B,OAAON,wBAAwB,CAACQ,gBAAgB,IAAI,CAAC,MAAM;YAC7D,KAAKF,0CAA0C;gBAC7C,OAAOL,qCAAqC,CAC1CO,gBACA,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM;YAEf,KAAKF,6CAA6C;gBAChD,OAAOJ,2CAA2C,CAChDM,gBACA,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU;YAEnB,KAAKF,mDAAmD;gBACtD,OAAOH,iDAAiD,CACtDK,gBACA,IAAI,CAAC,MAAM;YAEf,KAAKF,6BAA6B;gBAChC,OAAOX,0BAA0B,CAC/Ba,gBACA,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM;YAGf,KAAKF,qCAAqC;gBACxC,OAAOnB,gCAAgC,CAACqB,gBAAgB,IAAI,CAAC,UAAU;YAEzE,KAAKF,8BAA8B;gBACjC,OAAOpB,0BAA0B,CAACsB,gBAAgB,IAAI,CAAC,UAAU;YAEnE,KAAKF,4BAA4B;gBAC/B,OAAOR,yBAAyB,CAACU,gBAAgB,IAAI,CAAC,MAAM;YAE9D,KAAKF,gCAAgC;gBACnC,OAAOlB,4BAA4B,CAACoB,gBAAgB,IAAI,CAAC,MAAM;YAEjE,KAAKF,8BAA8B;gBACjC,OAAO,IAAI,CAAC,0BAA0B,CAACE;YAEzC,KAAKF,gCAAgC;gBACnC,OAAOZ,2BAA2B,CAACc,gBAAgB,IAAI,CAAC,MAAM;YAEhE,KAAKF,uCAAuC;gBAC1C,OAAOF,mCAAmC,CAACI,gBAAgB,IAAI,CAAC,MAAM;YAExE,KAAKF,wCAAwC;gBAC3C,OAAOD,mCAAmC,CAACG;YAE7C,KAAKF,sCAAsC;gBACzC,OAAOb,sCAAsC,CAC3Ce,gBACA,IAAI,CAAC,UAAU;YAGnB;gBACE,OAAOC;QACX;IACF;IAEA,MAAc,2BACZD,cAA8B,EACI;QAClC,OAAQA,eAAe,OAAO,CAAC,MAAM;YACnC,KAAK;gBACH,OAAOjB,qCAAqC,CAC1CiB,gBACA,IAAI,CAAC,UAAU;YAEnB,KAAK;gBACH,OAAOlB,qCAAqC,CAC1CkB,gBACA,IAAI,CAAC,UAAU;YAEnB,KAAK;gBACH,OAAOX,yCAAyC,CAC9CW,gBACA,IAAI,CAAC,MAAM;YAEf,KAAK;gBACH,OAAOhB,oCAAoC,CACzCgB,gBACA,IAAI,CAAC,UAAU;YAEnB;gBACE,OAAOC;QACX;IACF;IAnHA,YAAYC,UAAsB,EAAEC,MAAsB,EAAEC,MAAc,CAAE;QAC1E,IAAI,CAAC,UAAU,GAAGF;QAClB,IAAI,CAAC,MAAM,GAAGC;QACd,IAAI,CAAC,MAAM,GAAGC;IAChB;AAgHF"}
@@ -1,5 +1,5 @@
1
1
  import type { ActionRequest } from '@botonic/react';
2
- import type { HtFunctionArgument, HtFunctionArguments, HtFunctionNode } from '../content-fields/hubtype-fields';
2
+ import type { HtFunctionArgument, HtFunctionArguments, HtFunctionNode } from '../content-fields/hubtype-fields/index.js';
3
3
  export declare const DEFAULT_FUNCTION_NAMES: string[];
4
4
  export declare class CustomFunction {
5
5
  functions: Record<any, any>;