@kosdev-code/kos-dispense-sdk 0.1.0-dev.5053

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 (346) hide show
  1. package/dispense-registration-manager-BZ5L3AWX.cjs +2 -0
  2. package/dispense-registration-manager-BZ5L3AWX.cjs.map +1 -0
  3. package/dispense-registration-manager-CB_nSTZw.js +1912 -0
  4. package/dispense-registration-manager-CB_nSTZw.js.map +1 -0
  5. package/extension-utils-CkYqorcG.js +381 -0
  6. package/extension-utils-CkYqorcG.js.map +1 -0
  7. package/extension-utils-DUel3wIz.cjs +2 -0
  8. package/extension-utils-DUel3wIz.cjs.map +1 -0
  9. package/extensions/control-pour-extension.d.ts +70 -0
  10. package/extensions/control-pour-extension.d.ts.map +1 -0
  11. package/extensions/index.d.ts +2 -0
  12. package/extensions/index.d.ts.map +1 -0
  13. package/index.cjs +2 -0
  14. package/index.cjs.map +1 -0
  15. package/index.d.ts +6 -0
  16. package/index.d.ts.map +1 -0
  17. package/index.js +133 -0
  18. package/index.js.map +1 -0
  19. package/models/constants/constants.d.ts +230 -0
  20. package/models/constants/constants.d.ts.map +1 -0
  21. package/models/constants/index.d.ts +2 -0
  22. package/models/constants/index.d.ts.map +1 -0
  23. package/models/index.d.ts +6 -0
  24. package/models/index.d.ts.map +1 -0
  25. package/models/models/assembly/assembly-model.d.ts +41 -0
  26. package/models/models/assembly/assembly-model.d.ts.map +1 -0
  27. package/models/models/assembly/assembly-registration.d.ts +81 -0
  28. package/models/models/assembly/assembly-registration.d.ts.map +1 -0
  29. package/models/models/assembly/board-utils.d.ts +6 -0
  30. package/models/models/assembly/board-utils.d.ts.map +1 -0
  31. package/models/models/assembly/holder-utils.d.ts +5 -0
  32. package/models/models/assembly/holder-utils.d.ts.map +1 -0
  33. package/models/models/assembly/index.d.ts +5 -0
  34. package/models/models/assembly/index.d.ts.map +1 -0
  35. package/models/models/assembly/nozzle-utils.d.ts +6 -0
  36. package/models/models/assembly/nozzle-utils.d.ts.map +1 -0
  37. package/models/models/assembly/pump-utils.d.ts +7 -0
  38. package/models/models/assembly/pump-utils.d.ts.map +1 -0
  39. package/models/models/assembly/services/assembly-services.d.ts +8 -0
  40. package/models/models/assembly/services/assembly-services.d.ts.map +1 -0
  41. package/models/models/assembly/services/index.d.ts +2 -0
  42. package/models/models/assembly/services/index.d.ts.map +1 -0
  43. package/models/models/assembly/types/index.d.ts +64 -0
  44. package/models/models/availability/availability-model.d.ts +89 -0
  45. package/models/models/availability/availability-model.d.ts.map +1 -0
  46. package/models/models/availability/index.d.ts +3 -0
  47. package/models/models/availability/index.d.ts.map +1 -0
  48. package/models/models/availability/types/index.d.ts +79 -0
  49. package/models/models/board/board-container-model.d.ts +23 -0
  50. package/models/models/board/board-container-model.d.ts.map +1 -0
  51. package/models/models/board/board-container-registration.d.ts +87 -0
  52. package/models/models/board/board-container-registration.d.ts.map +1 -0
  53. package/models/models/board/board-model.d.ts +18 -0
  54. package/models/models/board/board-model.d.ts.map +1 -0
  55. package/models/models/board/board-registration.d.ts +84 -0
  56. package/models/models/board/board-registration.d.ts.map +1 -0
  57. package/models/models/board/index.d.ts +5 -0
  58. package/models/models/board/index.d.ts.map +1 -0
  59. package/models/models/board/types/index.d.ts +36 -0
  60. package/models/models/board/types/services.d.ts +12 -0
  61. package/models/models/board/types/services.d.ts.map +1 -0
  62. package/models/models/board/utils/board-trouble-data-mapper.d.ts +7 -0
  63. package/models/models/board/utils/board-trouble-data-mapper.d.ts.map +1 -0
  64. package/models/models/board/utils/board-trouble-resolver.d.ts +7 -0
  65. package/models/models/board/utils/board-trouble-resolver.d.ts.map +1 -0
  66. package/models/models/device-assembly/device-assembly-model.d.ts +17 -0
  67. package/models/models/device-assembly/device-assembly-model.d.ts.map +1 -0
  68. package/models/models/device-assembly/device-assembly-registration.d.ts +89 -0
  69. package/models/models/device-assembly/device-assembly-registration.d.ts.map +1 -0
  70. package/models/models/device-assembly/index.d.ts +4 -0
  71. package/models/models/device-assembly/index.d.ts.map +1 -0
  72. package/models/models/device-assembly/types/index.d.ts +1 -0
  73. package/models/models/generic-pour/generic-pour-model.d.ts +53 -0
  74. package/models/models/generic-pour/generic-pour-model.d.ts.map +1 -0
  75. package/models/models/generic-pour/generic-pour-registration.d.ts +87 -0
  76. package/models/models/generic-pour/generic-pour-registration.d.ts.map +1 -0
  77. package/models/models/generic-pour/index.d.ts +5 -0
  78. package/models/models/generic-pour/index.d.ts.map +1 -0
  79. package/models/models/generic-pour/services/generic-pour-services.d.ts +16 -0
  80. package/models/models/generic-pour/services/generic-pour-services.d.ts.map +1 -0
  81. package/models/models/generic-pour/services/index.d.ts +2 -0
  82. package/models/models/generic-pour/services/index.d.ts.map +1 -0
  83. package/models/models/generic-pour/types/index.d.ts +5 -0
  84. package/models/models/holder/holder-model.d.ts +93 -0
  85. package/models/models/holder/holder-model.d.ts.map +1 -0
  86. package/models/models/holder/index.d.ts +5 -0
  87. package/models/models/holder/index.d.ts.map +1 -0
  88. package/models/models/holder/services/assignment-services.d.ts +25 -0
  89. package/models/models/holder/services/assignment-services.d.ts.map +1 -0
  90. package/models/models/holder/services/holder-services.d.ts +28 -0
  91. package/models/models/holder/services/holder-services.d.ts.map +1 -0
  92. package/models/models/holder/services/index.d.ts +3 -0
  93. package/models/models/holder/services/index.d.ts.map +1 -0
  94. package/models/models/holder/types/index.d.ts +170 -0
  95. package/models/models/holder/utils/holder-utils.d.ts +9 -0
  96. package/models/models/holder/utils/holder-utils.d.ts.map +1 -0
  97. package/models/models/holder-container/holder-container-model.d.ts +80 -0
  98. package/models/models/holder-container/holder-container-model.d.ts.map +1 -0
  99. package/models/models/holder-container/index.d.ts +3 -0
  100. package/models/models/holder-container/index.d.ts.map +1 -0
  101. package/models/models/holder-container/types/index.d.ts +69 -0
  102. package/models/models/index.d.ts +14 -0
  103. package/models/models/index.d.ts.map +1 -0
  104. package/models/models/ingredient/index.d.ts +4 -0
  105. package/models/models/ingredient/index.d.ts.map +1 -0
  106. package/models/models/ingredient/ingredient-model.d.ts +86 -0
  107. package/models/models/ingredient/ingredient-model.d.ts.map +1 -0
  108. package/models/models/ingredient/services/index.d.ts +2 -0
  109. package/models/models/ingredient/services/index.d.ts.map +1 -0
  110. package/models/models/ingredient/services/ingredient-services.d.ts +30 -0
  111. package/models/models/ingredient/services/ingredient-services.d.ts.map +1 -0
  112. package/models/models/ingredient/types/index.d.ts +67 -0
  113. package/models/models/ingredient-container/index.d.ts +3 -0
  114. package/models/models/ingredient-container/index.d.ts.map +1 -0
  115. package/models/models/ingredient-container/ingredient-container-model.d.ts +80 -0
  116. package/models/models/ingredient-container/ingredient-container-model.d.ts.map +1 -0
  117. package/models/models/ingredient-container/types/index.d.ts +67 -0
  118. package/models/models/nozzle/index.d.ts +5 -0
  119. package/models/models/nozzle/index.d.ts.map +1 -0
  120. package/models/models/nozzle/nozzle-model.d.ts +257 -0
  121. package/models/models/nozzle/nozzle-model.d.ts.map +1 -0
  122. package/models/models/nozzle/services/index.d.ts +2 -0
  123. package/models/models/nozzle/services/index.d.ts.map +1 -0
  124. package/models/models/nozzle/services/nozzle-services.d.ts +182 -0
  125. package/models/models/nozzle/services/nozzle-services.d.ts.map +1 -0
  126. package/models/models/nozzle/types/index.d.ts +85 -0
  127. package/models/models/pump/index.d.ts +4 -0
  128. package/models/models/pump/index.d.ts.map +1 -0
  129. package/models/models/pump/pump-model.d.ts +91 -0
  130. package/models/models/pump/pump-model.d.ts.map +1 -0
  131. package/models/models/pump/services/index.d.ts +2 -0
  132. package/models/models/pump/services/index.d.ts.map +1 -0
  133. package/models/models/pump/services/pump-services.d.ts +27 -0
  134. package/models/models/pump/services/pump-services.d.ts.map +1 -0
  135. package/models/models/pump/types/index.d.ts +56 -0
  136. package/models/models/pump/utils/pump-trouble-resolver.d.ts +8 -0
  137. package/models/models/pump/utils/pump-trouble-resolver.d.ts.map +1 -0
  138. package/models/models/pump-container/index.d.ts +3 -0
  139. package/models/models/pump-container/index.d.ts.map +1 -0
  140. package/models/models/pump-container/pump-container-model.d.ts +85 -0
  141. package/models/models/pump-container/pump-container-model.d.ts.map +1 -0
  142. package/models/models/pump-container/types/index.d.ts +31 -0
  143. package/models/models/types/assembly.d.ts +83 -0
  144. package/models/models/types/assembly.d.ts.map +1 -0
  145. package/models/models/types/index.d.ts +4 -0
  146. package/models/models/types/index.d.ts.map +1 -0
  147. package/models/models/types/intent.d.ts +19 -0
  148. package/models/models/types/intent.d.ts.map +1 -0
  149. package/models/models/types/pouring.d.ts +9 -0
  150. package/models/models/types/pouring.d.ts.map +1 -0
  151. package/models/utils/dispense-registration-manager.d.ts +28 -0
  152. package/models/utils/dispense-registration-manager.d.ts.map +1 -0
  153. package/models/utils/extension-utils.d.ts +266 -0
  154. package/models/utils/extension-utils.d.ts.map +1 -0
  155. package/models/utils/openapi.d.ts +9276 -0
  156. package/models/utils/registration.d.ts +4 -0
  157. package/models/utils/registration.d.ts.map +1 -0
  158. package/models/utils/service.d.ts +80 -0
  159. package/models/utils/service.d.ts.map +1 -0
  160. package/models.cjs +2 -0
  161. package/models.cjs.map +1 -0
  162. package/models.d.ts +1 -0
  163. package/models.js +42 -0
  164. package/models.js.map +1 -0
  165. package/package.json +39 -0
  166. package/pump-provider-86479YU2.cjs +2 -0
  167. package/pump-provider-86479YU2.cjs.map +1 -0
  168. package/pump-provider-DSyiDoPF.js +1304 -0
  169. package/pump-provider-DSyiDoPF.js.map +1 -0
  170. package/ui/contexts/assembly/assembly-provider.d.ts +12 -0
  171. package/ui/contexts/assembly/assembly-provider.d.ts.map +1 -0
  172. package/ui/contexts/assembly/index.d.ts +2 -0
  173. package/ui/contexts/assembly/index.d.ts.map +1 -0
  174. package/ui/contexts/availability/availability-provider.d.ts +13 -0
  175. package/ui/contexts/availability/availability-provider.d.ts.map +1 -0
  176. package/ui/contexts/availability/index.d.ts +2 -0
  177. package/ui/contexts/availability/index.d.ts.map +1 -0
  178. package/ui/contexts/board/board-provider.d.ts +13 -0
  179. package/ui/contexts/board/board-provider.d.ts.map +1 -0
  180. package/ui/contexts/board/index.d.ts +2 -0
  181. package/ui/contexts/board/index.d.ts.map +1 -0
  182. package/ui/contexts/board-container/board-container-provider.d.ts +12 -0
  183. package/ui/contexts/board-container/board-container-provider.d.ts.map +1 -0
  184. package/ui/contexts/board-container/index.d.ts +2 -0
  185. package/ui/contexts/board-container/index.d.ts.map +1 -0
  186. package/ui/contexts/cui-kit/cui-kit.d.ts +29 -0
  187. package/ui/contexts/cui-kit/cui-kit.d.ts.map +1 -0
  188. package/ui/contexts/cui-kit/index.d.ts +2 -0
  189. package/ui/contexts/cui-kit/index.d.ts.map +1 -0
  190. package/ui/contexts/device-assembly/device-assembly-provider.d.ts +12 -0
  191. package/ui/contexts/device-assembly/device-assembly-provider.d.ts.map +1 -0
  192. package/ui/contexts/device-assembly/index.d.ts +2 -0
  193. package/ui/contexts/device-assembly/index.d.ts.map +1 -0
  194. package/ui/contexts/holder/holder-provider.d.ts +13 -0
  195. package/ui/contexts/holder/holder-provider.d.ts.map +1 -0
  196. package/ui/contexts/holder/index.d.ts +2 -0
  197. package/ui/contexts/holder/index.d.ts.map +1 -0
  198. package/ui/contexts/holder-container/holder-container-provider.d.ts +13 -0
  199. package/ui/contexts/holder-container/holder-container-provider.d.ts.map +1 -0
  200. package/ui/contexts/holder-container/index.d.ts +2 -0
  201. package/ui/contexts/holder-container/index.d.ts.map +1 -0
  202. package/ui/contexts/index.d.ts +13 -0
  203. package/ui/contexts/index.d.ts.map +1 -0
  204. package/ui/contexts/ingredient/index.d.ts +2 -0
  205. package/ui/contexts/ingredient/index.d.ts.map +1 -0
  206. package/ui/contexts/ingredient/ingredient-provider.d.ts +13 -0
  207. package/ui/contexts/ingredient/ingredient-provider.d.ts.map +1 -0
  208. package/ui/contexts/ingredient-container/index.d.ts +2 -0
  209. package/ui/contexts/ingredient-container/index.d.ts.map +1 -0
  210. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts +13 -0
  211. package/ui/contexts/ingredient-container/ingredient-container-provider.d.ts.map +1 -0
  212. package/ui/contexts/nozzle/index.d.ts +2 -0
  213. package/ui/contexts/nozzle/index.d.ts.map +1 -0
  214. package/ui/contexts/nozzle/nozzle-provider.d.ts +13 -0
  215. package/ui/contexts/nozzle/nozzle-provider.d.ts.map +1 -0
  216. package/ui/contexts/pump/index.d.ts +2 -0
  217. package/ui/contexts/pump/index.d.ts.map +1 -0
  218. package/ui/contexts/pump/pump-provider.d.ts +13 -0
  219. package/ui/contexts/pump/pump-provider.d.ts.map +1 -0
  220. package/ui/hooks/assembly/index.d.ts +3 -0
  221. package/ui/hooks/assembly/index.d.ts.map +1 -0
  222. package/ui/hooks/assembly/use-assembly.d.ts +14 -0
  223. package/ui/hooks/assembly/use-assembly.d.ts.map +1 -0
  224. package/ui/hooks/assembly/with-assembly.d.ts +8 -0
  225. package/ui/hooks/assembly/with-assembly.d.ts.map +1 -0
  226. package/ui/hooks/availability/index.d.ts +3 -0
  227. package/ui/hooks/availability/index.d.ts.map +1 -0
  228. package/ui/hooks/availability/use-availability.d.ts +14 -0
  229. package/ui/hooks/availability/use-availability.d.ts.map +1 -0
  230. package/ui/hooks/availability/with-availability.d.ts +8 -0
  231. package/ui/hooks/availability/with-availability.d.ts.map +1 -0
  232. package/ui/hooks/board/index.d.ts +3 -0
  233. package/ui/hooks/board/index.d.ts.map +1 -0
  234. package/ui/hooks/board/use-board.d.ts +14 -0
  235. package/ui/hooks/board/use-board.d.ts.map +1 -0
  236. package/ui/hooks/board/with-board.d.ts +8 -0
  237. package/ui/hooks/board/with-board.d.ts.map +1 -0
  238. package/ui/hooks/board-container/index.d.ts +3 -0
  239. package/ui/hooks/board-container/index.d.ts.map +1 -0
  240. package/ui/hooks/board-container/use-board-container.d.ts +14 -0
  241. package/ui/hooks/board-container/use-board-container.d.ts.map +1 -0
  242. package/ui/hooks/board-container/with-board-container.d.ts +8 -0
  243. package/ui/hooks/board-container/with-board-container.d.ts.map +1 -0
  244. package/ui/hooks/cui-kit/index.d.ts +8 -0
  245. package/ui/hooks/cui-kit/index.d.ts.map +1 -0
  246. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts +18 -0
  247. package/ui/hooks/cui-kit/use-ambient-attract-timers.d.ts.map +1 -0
  248. package/ui/hooks/cui-kit/use-beverages.d.ts +17 -0
  249. package/ui/hooks/cui-kit/use-beverages.d.ts.map +1 -0
  250. package/ui/hooks/cui-kit/use-brands.d.ts +17 -0
  251. package/ui/hooks/cui-kit/use-brands.d.ts.map +1 -0
  252. package/ui/hooks/cui-kit/use-cui-kit.d.ts +192 -0
  253. package/ui/hooks/cui-kit/use-cui-kit.d.ts.map +1 -0
  254. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts +162 -0
  255. package/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.d.ts.map +1 -0
  256. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts +23 -0
  257. package/ui/hooks/cui-kit/use-dispense-lifecycle.d.ts.map +1 -0
  258. package/ui/hooks/cui-kit/use-dispense-timers.d.ts +17 -0
  259. package/ui/hooks/cui-kit/use-dispense-timers.d.ts.map +1 -0
  260. package/ui/hooks/cui-kit/use-flavors.d.ts +17 -0
  261. package/ui/hooks/cui-kit/use-flavors.d.ts.map +1 -0
  262. package/ui/hooks/device-assembly/index.d.ts +3 -0
  263. package/ui/hooks/device-assembly/index.d.ts.map +1 -0
  264. package/ui/hooks/device-assembly/use-device-assembly.d.ts +14 -0
  265. package/ui/hooks/device-assembly/use-device-assembly.d.ts.map +1 -0
  266. package/ui/hooks/device-assembly/with-device-assembly.d.ts +9 -0
  267. package/ui/hooks/device-assembly/with-device-assembly.d.ts.map +1 -0
  268. package/ui/hooks/generic-pour/index.d.ts +3 -0
  269. package/ui/hooks/generic-pour/index.d.ts.map +1 -0
  270. package/ui/hooks/generic-pour/use-generic-pour.d.ts +15 -0
  271. package/ui/hooks/generic-pour/use-generic-pour.d.ts.map +1 -0
  272. package/ui/hooks/generic-pour/with-generic-pour.d.ts +14 -0
  273. package/ui/hooks/generic-pour/with-generic-pour.d.ts.map +1 -0
  274. package/ui/hooks/holder/index.d.ts +3 -0
  275. package/ui/hooks/holder/index.d.ts.map +1 -0
  276. package/ui/hooks/holder/use-holder.d.ts +14 -0
  277. package/ui/hooks/holder/use-holder.d.ts.map +1 -0
  278. package/ui/hooks/holder/with-holder.d.ts +8 -0
  279. package/ui/hooks/holder/with-holder.d.ts.map +1 -0
  280. package/ui/hooks/holder-container/index.d.ts +3 -0
  281. package/ui/hooks/holder-container/index.d.ts.map +1 -0
  282. package/ui/hooks/holder-container/use-holder-container.d.ts +14 -0
  283. package/ui/hooks/holder-container/use-holder-container.d.ts.map +1 -0
  284. package/ui/hooks/holder-container/with-holder-container.d.ts +8 -0
  285. package/ui/hooks/holder-container/with-holder-container.d.ts.map +1 -0
  286. package/ui/hooks/index.d.ts +16 -0
  287. package/ui/hooks/index.d.ts.map +1 -0
  288. package/ui/hooks/ingredient/index.d.ts +4 -0
  289. package/ui/hooks/ingredient/index.d.ts.map +1 -0
  290. package/ui/hooks/ingredient/use-ingredient-pour.d.ts +49 -0
  291. package/ui/hooks/ingredient/use-ingredient-pour.d.ts.map +1 -0
  292. package/ui/hooks/ingredient/use-ingredient.d.ts +14 -0
  293. package/ui/hooks/ingredient/use-ingredient.d.ts.map +1 -0
  294. package/ui/hooks/ingredient/with-ingredient.d.ts +8 -0
  295. package/ui/hooks/ingredient/with-ingredient.d.ts.map +1 -0
  296. package/ui/hooks/ingredient-container/index.d.ts +3 -0
  297. package/ui/hooks/ingredient-container/index.d.ts.map +1 -0
  298. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts +14 -0
  299. package/ui/hooks/ingredient-container/use-ingredient-container.d.ts.map +1 -0
  300. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts +8 -0
  301. package/ui/hooks/ingredient-container/with-ingredient-container.d.ts.map +1 -0
  302. package/ui/hooks/nozzle/index.d.ts +3 -0
  303. package/ui/hooks/nozzle/index.d.ts.map +1 -0
  304. package/ui/hooks/nozzle/use-dispense-kit.d.ts +22 -0
  305. package/ui/hooks/nozzle/use-dispense-kit.d.ts.map +1 -0
  306. package/ui/hooks/nozzle/use-nozzle.d.ts +14 -0
  307. package/ui/hooks/nozzle/use-nozzle.d.ts.map +1 -0
  308. package/ui/hooks/nozzle/with-nozzle.d.ts +8 -0
  309. package/ui/hooks/nozzle/with-nozzle.d.ts.map +1 -0
  310. package/ui/hooks/nozzle-pour/index.d.ts +2 -0
  311. package/ui/hooks/nozzle-pour/index.d.ts.map +1 -0
  312. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts +57 -0
  313. package/ui/hooks/nozzle-pour/use-nozzle-pour.d.ts.map +1 -0
  314. package/ui/hooks/pour/index.d.ts +2 -0
  315. package/ui/hooks/pour/index.d.ts.map +1 -0
  316. package/ui/hooks/pour/use-pour.d.ts +55 -0
  317. package/ui/hooks/pour/use-pour.d.ts.map +1 -0
  318. package/ui/hooks/pump/index.d.ts +3 -0
  319. package/ui/hooks/pump/index.d.ts.map +1 -0
  320. package/ui/hooks/pump/use-pump.d.ts +14 -0
  321. package/ui/hooks/pump/use-pump.d.ts.map +1 -0
  322. package/ui/hooks/pump/with-pump.d.ts +8 -0
  323. package/ui/hooks/pump/with-pump.d.ts.map +1 -0
  324. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts +5 -0
  325. package/ui/hooks/utils/pour-strategy/hold-to-pour-intent-strategy.d.ts.map +1 -0
  326. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts +4 -0
  327. package/ui/hooks/utils/pour-strategy/hold-to-pour-strategy.d.ts.map +1 -0
  328. package/ui/hooks/utils/pour-strategy/index.d.ts +7 -0
  329. package/ui/hooks/utils/pour-strategy/index.d.ts.map +1 -0
  330. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts +16 -0
  331. package/ui/hooks/utils/pour-strategy/pour-strategy.d.ts.map +1 -0
  332. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts +13 -0
  333. package/ui/hooks/utils/pour-strategy/tap-or-hold-to-pour-intent-strategy.d.ts.map +1 -0
  334. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts +5 -0
  335. package/ui/hooks/utils/pour-strategy/tap-to-pour-intent-strategy.d.ts.map +1 -0
  336. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts +4 -0
  337. package/ui/hooks/utils/pour-strategy/tap-to-pour-strategy.d.ts.map +1 -0
  338. package/ui/index.d.ts +4 -0
  339. package/ui/index.d.ts.map +1 -0
  340. package/ui/utils/pour-context.d.ts +8 -0
  341. package/ui/utils/pour-context.d.ts.map +1 -0
  342. package/ui.cjs +2 -0
  343. package/ui.cjs.map +1 -0
  344. package/ui.d.ts +1 -0
  345. package/ui.js +75 -0
  346. package/ui.js.map +1 -0
@@ -0,0 +1,162 @@
1
+ import { CuiKitType } from './use-cui-kit';
2
+
3
+ /**
4
+ * Hook that provides default CUI Kit lifecycle management with support for preflight checks.
5
+ *
6
+ * @example
7
+ * // Basic usage without preflight check
8
+ * const lifecycle = useDefaultCuiKitLifecycle({
9
+ * kit,
10
+ * inactivity: { idleTimeout: 60, areYouThereTimeoutOffset: 10 }
11
+ * });
12
+ *
13
+ * @example
14
+ * // With before callback to validate conditions before showing "Are You There"
15
+ * const lifecycle = useDefaultCuiKitLifecycle({
16
+ * kit,
17
+ * inactivity: { idleTimeout: 60, areYouThereTimeoutOffset: 10 },
18
+ * onBeforeAreYouThereTimer: async () => {
19
+ * // Check if user has items in cart
20
+ * if (cartItems.length === 0) {
21
+ * return false; // Skip "Are You There" if no items selected
22
+ * }
23
+ *
24
+ * // Check system status
25
+ * const systemStatus = await checkSystemAvailability();
26
+ * return systemStatus.isOperational;
27
+ * }
28
+ * });
29
+ *
30
+ * @example
31
+ * // Advanced before callback with multiple conditions
32
+ * const onBeforeAreYouThereTimer = useCallback(async () => {
33
+ * // Don't show if pour is in progress
34
+ * if (pourInProgress) return false;
35
+ *
36
+ * // Don't show if maintenance mode is active
37
+ * const maintenance = await checkMaintenanceStatus();
38
+ * if (maintenance.active) return false;
39
+ *
40
+ * // Don't show if user has premium access (extended timeout)
41
+ * if (user?.isPremium) return false;
42
+ *
43
+ * return true; // Show "Are You There" screen
44
+ * }, [pourInProgress, user]);
45
+ */
46
+ interface TimerProps {
47
+ /**
48
+ * The idle timeout in seconds. This is the time in seconds that the screen will wait before
49
+ * the current session is considered idle at which point the current selections will be cleared
50
+ * and the screen will return to the home screen.
51
+ */
52
+ idleTimeout?: number;
53
+ /**
54
+ * This is the amount of time left in the idle timeout at which point the are you there screen will be shown.
55
+ *
56
+ * For example, if the idle timer was set to 60 seconds and the areYouThereTimeoutOffset was set to 10 seconds,
57
+ * the are you there screen would be shown after 50 seconds of inactivity to provide an opportunity for the user
58
+ * to indicate that they are still present.
59
+ */
60
+ areYouThereTimeoutOffset?: number;
61
+ }
62
+ interface Props {
63
+ /**
64
+ * The CuiKit instance
65
+ */
66
+ kit?: CuiKitType | null;
67
+ /**
68
+ * The timer configuration for the inactivity timer
69
+ */
70
+ inactivity?: TimerProps;
71
+ /**
72
+ * An alternate timer configuration that is applied when a pour has been initiated
73
+ * in the current session. This is useful when the idle timeout should be different
74
+ * when a pour has been initiated.
75
+ */
76
+ pour?: TimerProps;
77
+ /**
78
+ * Screen configuration to control the visibility and timing of the attract and ambient screens.
79
+ */
80
+ screens?: {
81
+ /**
82
+ * The amount of time in seconds before the attract screen is shown.
83
+ */
84
+ attractTimeout?: number;
85
+ /**
86
+ * The amount of time in seconds measured as an offset from the attract timeout
87
+ * that the ambient screen will be shown. For example, if the attract screen is to be
88
+ * show after 300 seconds and the ambient timeout is set to 120 seconds, the ambient screen will appear
89
+ * after 180 seconds and display for 120 seconds before the attract screen is shown.
90
+ */
91
+ ambientTimeoutOffset?: number;
92
+ };
93
+ /**
94
+ * Optional callback function that executes when the areYouThere timer expires.
95
+ * If provided, this function will be called before showing the "Are You There" screen.
96
+ * The screen will only be shown if the callback returns true.
97
+ *
98
+ * @returns Promise<boolean> - Return true to show the "Are You There" screen, false to prevent it
99
+ */
100
+ onBeforeAreYouThereTimer?: () => Promise<boolean>;
101
+ /**
102
+ * Defines what happens to timers when onBeforeAreYouThereTimer returns false.
103
+ * - "pause" - Pause the current timer (default)
104
+ * - "restart" - Restart the timer from the beginning
105
+ * - "none" - Do nothing, let timers continue as-is
106
+ */
107
+ areYouThereRejectionPolicy?: "pause" | "restart" | "none";
108
+ }
109
+ interface LifecycleData {
110
+ /**
111
+ * Flag to indicate if the are you there timoute screen should be shown
112
+ * @type {boolean}
113
+ */
114
+ showAreYouThere: boolean;
115
+ /**
116
+ * Callback that when invoked will reset the are you there timer and hide the screen
117
+ * @returns
118
+ */
119
+ clearAreYouThere: () => void;
120
+ /**
121
+ * The countdown value for the are you there screen. This value is used to display the countdown.
122
+ * If a pour has been initiated at any point in the current session, the countdown value will be based
123
+ * on the pour idleTimeout and pour areYouThereTimeoutOffset value. Otherwise it will be based on the
124
+ * inactivity idleTimeout and areYouThereTimeoutOffset values.
125
+ * @type {number}
126
+ *
127
+ */
128
+ areYouThereCountdown: number;
129
+ /**
130
+ * Flag to indicate if the ambient screen should be shown
131
+ */
132
+ showAmbientScreen: boolean;
133
+ /**
134
+ * Flag to indicate if the attract screen should be shown
135
+ */
136
+ showAttractScreen: boolean;
137
+ /**
138
+ * Callback to pause and reset the screen timer. This will typically be called when a user
139
+ * interacts with the screen when the ambient or attract screen is show. This will set
140
+ * the `showAmbientScreen` and `showAttractScreen` flags to false and reset the timer.
141
+ */
142
+ pauseScreenTimer: () => void;
143
+ /**
144
+ * Callback to restart the ambient screen timer. This will typically be called when a user
145
+ * interacts with the screen when the ambient or attract screen is show. This will set
146
+ * the `showAmbientScreen` and `showAttractScreen` flags to false and restart the timer.
147
+ */
148
+ restartScreenTimer: () => void;
149
+ /**
150
+ * Callback to pause the idle timer. This is typically called when the user interacts with the screen
151
+ * and should pause the idle timer.
152
+ */
153
+ pauseIdleTimer: () => void;
154
+ /**
155
+ * Callback to restart the idle timer. This is typically called when the user interacts with the screen
156
+ * and should restart the idle timer.
157
+ */
158
+ restartIdleTimer: () => void;
159
+ }
160
+ export declare const useDefaultCuiKitLifecycle: ({ kit, inactivity, pour, screens, onBeforeAreYouThereTimer, areYouThereRejectionPolicy, }: Props) => LifecycleData;
161
+ export {};
162
+ //# sourceMappingURL=use-default-cui-kit-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-default-cui-kit-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-default-cui-kit-lifecycle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,UAAU,UAAU;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AACD,UAAU,KAAK;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;;;WAKG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC;IAEF;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CAC3D;AAED,UAAU,aAAa;IACrB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;;;;OAOG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAE/B;;;OAGG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B;;;OAGG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AACD,eAAO,MAAM,yBAAyB,8FAOnC,KAAK,KAAG,aAgTV,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { AvailabilityModel } from '../../../models';
2
+
3
+ interface Props<BrandData extends Record<string, any> = any, BeverageData extends Record<string, any> = any, FlavorData extends Record<string, any> = any> {
4
+ onBrandSelected?: (brand: AvailabilityModel<BrandData>) => void;
5
+ onBrandCleared?: () => void;
6
+ onBeverageSelected?: (brand: AvailabilityModel<BeverageData>) => void;
7
+ onBeverageCleared?: () => void;
8
+ onFlavorSelected?: (brand: AvailabilityModel<FlavorData>) => void;
9
+ onFlavorCleared?: () => void;
10
+ onReturnToHome?: () => void;
11
+ onPour?: () => void;
12
+ onPourCancel?: () => void;
13
+ onBeforePourRejected?: () => void;
14
+ onAmbientTimer?: () => void;
15
+ onAttractTimer?: () => void;
16
+ onResumeAttractTimer?: () => void;
17
+ onIdleTimeout?: () => void;
18
+ onAreYouThereTimeout?: () => void;
19
+ onInit?: () => void;
20
+ }
21
+ export declare const useDispenseLifecycle: ({ onInit, onBrandSelected, onBrandCleared, onBeverageCleared, onBeverageSelected, onFlavorCleared, onFlavorSelected, onReturnToHome, onPour, onPourCancel, onBeforePourRejected, onAmbientTimer, onAttractTimer, onResumeAttractTimer, onIdleTimeout, onAreYouThereTimeout, }: Props) => void;
22
+ export {};
23
+ //# sourceMappingURL=use-dispense-lifecycle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-dispense-lifecycle.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-dispense-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,UAAU,KAAK,CACb,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC3C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC9C,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;IAE5C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAChE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IACtE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AASD,eAAO,MAAM,oBAAoB,kRAiB9B,KAAK,SA8FP,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { KosTimer } from '@kosdev-code/kos-ui-sdk';
2
+
3
+ interface TimerProps {
4
+ defaultIdleTime?: number;
5
+ defaultAreYouThereTime?: number;
6
+ onIdleTimer?: VoidFunction;
7
+ onAreYouThereTimer?: VoidFunction;
8
+ onResetIdleTimer?: VoidFunction;
9
+ prefix?: string;
10
+ }
11
+ export declare const useCuiKitTimers: (props: TimerProps) => {
12
+ idleTimer: KosTimer | null;
13
+ restart: () => void;
14
+ pause: () => void;
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=use-dispense-timers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-dispense-timers.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-dispense-timers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAI9E,UAAU,UAAU;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,kBAAkB,CAAC,EAAE,YAAY,CAAC;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,eAAe,UAAW,UAAU;;;;CAwGhD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { AvailabilityModel } from '../../../models';
2
+ import { IKosDataModel } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ interface Props {
5
+ onFlavorSelected?: (flavor: AvailabilityModel, flavors: AvailabilityModel[]) => void;
6
+ onFlavorCleared?: () => void;
7
+ companionType?: string;
8
+ }
9
+ export declare const useFlavors: <F extends Record<string, any> = any, C extends IKosDataModel = IKosDataModel>({ onFlavorSelected, onFlavorCleared, companionType, }: Props) => {
10
+ flavors: AvailabilityModel<F, Record<string, any>>[];
11
+ flavorCompanions: C[];
12
+ selectFlavor: (flavor: AvailabilityModel) => Promise<void>;
13
+ selectedFlavors: AvailabilityModel<any, Record<string, any>>[] | null;
14
+ clearFlavors: () => Promise<void>;
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=use-flavors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-flavors.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/cui-kit/use-flavors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,UAAU,KAAK;IACb,gBAAgB,CAAC,EAAE,CACjB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,EAAE,KACzB,IAAI,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,eAAO,MAAM,UAAU,wIAOpB,KAAK;;;2BAqBW,iBAAiB;;;CAkCnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './use-device-assembly';
2
+ export * from './with-device-assembly';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { DeviceAssemblyModel } from '../../../models';
2
+
3
+ export declare const useDeviceAssembly: () => {
4
+ model: DeviceAssemblyModel | undefined;
5
+ ready: boolean;
6
+ error: string | undefined;
7
+ status: {
8
+ model: DeviceAssemblyModel | undefined;
9
+ ready: boolean;
10
+ error: string | undefined;
11
+ };
12
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
13
+ };
14
+ //# sourceMappingURL=use-device-assembly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-device-assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/use-device-assembly.ts"],"names":[],"mappings":";AACA,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;;;;CAS7B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { DeviceAssemblyModel } from '../../../models';
2
+
3
+ interface DeviceAssemblyProps {
4
+ deviceAssembly: DeviceAssemblyModel;
5
+ }
6
+ type HoCDeviceAssemblyProps = DeviceAssemblyProps;
7
+ export declare function withDeviceAssembly<T extends HoCDeviceAssemblyProps = HoCDeviceAssemblyProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof DeviceAssemblyProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=with-device-assembly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-device-assembly.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/device-assembly/with-device-assembly.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG3D,UAAU,mBAAmB;IAC3B,cAAc,EAAE,mBAAmB,CAAC;CACrC;AAED,KAAK,sBAAsB,GAAG,mBAAmB,CAAC;AAElD,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,mBAAmB,CAAC,sDASlD"}
@@ -0,0 +1,3 @@
1
+ export * from './use-generic-pour';
2
+ export * from './with-generic-pour';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { KosData } from '@kosdev-code/kos-ui-sdk';
2
+ import { GenericPourModel } from '@kosdev-code/kos-dispense-sdk';
3
+
4
+ export declare const useGenericPour: (id: string, servicePathFactory: (selectedId: string, context?: KosData<Record<string, any>>) => string, itemId?: string) => {
5
+ model: GenericPourModel | undefined;
6
+ ready: boolean;
7
+ error: string | undefined;
8
+ status: {
9
+ model: GenericPourModel | undefined;
10
+ ready: boolean;
11
+ error: string | undefined;
12
+ };
13
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
14
+ };
15
+ //# sourceMappingURL=use-generic-pour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-generic-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/use-generic-pour.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,gBAAgB,EAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,cAAc,OACrB,MAAM,sBACU,CAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,KACnC,MAAM,WACF,MAAM;;;;;;;;;;CAchB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { GenericPourModel } from '@kosdev-code/kos-dispense-sdk';
2
+
3
+ interface GenericPourProps {
4
+ genericPour: GenericPourModel;
5
+ }
6
+ interface Identifiable {
7
+ id: string;
8
+ servicePathFactory: (selectedId: string) => string;
9
+ itemId?: string;
10
+ }
11
+ type HoCGenericPourProps = GenericPourProps & Identifiable;
12
+ export declare function withGenericPour<T extends HoCGenericPourProps = HoCGenericPourProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof GenericPourProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=with-generic-pour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-generic-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/generic-pour/with-generic-pour.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,UAAU,gBAAgB;IACxB,WAAW,EAAE,gBAAgB,CAAC;CAC/B;AAED,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,mBAAmB,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE3D,wBAAgB,eAAe,CAC7B,CAAC,SAAS,mBAAmB,GAAG,mBAAmB,EACnD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,gBAAgB,CAAC,sDAa/C"}
@@ -0,0 +1,3 @@
1
+ export * from './use-holder';
2
+ export * from './with-holder';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { HolderModel } from '../../../models';
2
+
3
+ export declare const useHolder: (id: string) => {
4
+ model: HolderModel<any> | undefined;
5
+ ready: boolean;
6
+ error: string | undefined;
7
+ status: {
8
+ model: HolderModel<any> | undefined;
9
+ ready: boolean;
10
+ error: string | undefined;
11
+ };
12
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
13
+ };
14
+ //# sourceMappingURL=use-holder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-holder.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/use-holder.ts"],"names":[],"mappings":";AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE3D,eAAO,MAAM,SAAS,OAAQ,MAAM;;;;;;;;;;CASnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HolderModel } from '../../../models';
2
+
3
+ interface HolderProps {
4
+ holder: HolderModel;
5
+ }
6
+ export declare function withHolder<T extends HolderProps = HolderProps>(id: string, WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof HolderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=with-holder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-holder.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder/with-holder.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,UAAU,WAAW;IACnB,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,EAAE,EAAE,MAAM,EACV,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WAEzB,KAAK,CAAC,EAAE,MAAM,WAAW,CAAC,sDAS1C"}
@@ -0,0 +1,3 @@
1
+ export * from './use-holder-container';
2
+ export * from './with-holder-container';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { HolderContainerModel } from '../../../models';
2
+
3
+ export declare const useHolderContainer: () => {
4
+ model: HolderContainerModel<any> | undefined;
5
+ ready: boolean;
6
+ error: string | undefined;
7
+ status: {
8
+ model: HolderContainerModel<any> | undefined;
9
+ ready: boolean;
10
+ error: string | undefined;
11
+ };
12
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
13
+ };
14
+ //# sourceMappingURL=use-holder-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-holder-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/use-holder-container.ts"],"names":[],"mappings":";AACA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE7E,eAAO,MAAM,kBAAkB;;;;;;;;;;CAS9B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { HolderContainerModel } from '../../../models';
2
+
3
+ interface HolderContainerProps {
4
+ holderContainer: HolderContainerModel;
5
+ }
6
+ export declare function withHolderContainer<T extends HolderContainerProps = HolderContainerProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof HolderContainerProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=with-holder-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-holder-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/holder-container/with-holder-container.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D,UAAU,oBAAoB;IAC5B,eAAe,EAAE,oBAAoB,CAAC;CACvC;AAED,wBAAgB,mBAAmB,CACjC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,EACrD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,oBAAoB,CAAC,sDASnD"}
@@ -0,0 +1,16 @@
1
+ export * from './assembly';
2
+ export * from './availability';
3
+ export * from './board';
4
+ export * from './board-container';
5
+ export * from './cui-kit';
6
+ export * from './device-assembly';
7
+ export * from './holder';
8
+ export * from './holder-container';
9
+ export * from './ingredient';
10
+ export * from './ingredient-container';
11
+ export * from './nozzle';
12
+ export * from './nozzle-pour';
13
+ export * from './pour';
14
+ export * from './utils/pour-strategy';
15
+ export * from './generic-pour';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AAEtC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './use-ingredient';
2
+ export * from './use-ingredient-pour';
3
+ export * from './with-ingredient';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { PourStrategy } from '../utils/pour-strategy/pour-strategy';
2
+ import { IntentAware } from '../../../models';
3
+ import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
4
+
5
+ interface IngredientPourProps {
6
+ onPour?: () => void;
7
+ onPourCancel?: () => void;
8
+ intentContainer: IntentAware;
9
+ strategy?: PourStrategy<IntentAware>;
10
+ }
11
+ export interface IngredientPourResponse {
12
+ handlers: (...args: any[]) => ReactDOMAttributes;
13
+ cancel: () => void;
14
+ status?: {
15
+ canPour: boolean;
16
+ isPouring: boolean;
17
+ };
18
+ }
19
+ /**
20
+ * Hook that encapsulates the logic for handling ingredient pouring.
21
+ *
22
+ * The hook will return a number of gesture handlers that can be spread onto a DOM element.
23
+ * The hook will automatically detects if touch or mouse events are used.
24
+ *
25
+ *
26
+ * @param onPour - callback initiated after pouring starts
27
+ * @param onPourCancel - callback initiated after pouring is cancelled
28
+ * @returns handlers - gesture handlers for nozzle pouring
29
+ *
30
+ *
31
+ * @example
32
+ * const { handlers } = useIngredientPour({
33
+ * onPour: () => {
34
+ * console.log("Pouring started");
35
+ * },
36
+ * onPourCancel: () => {
37
+ * console.log("Pouring cancelled");
38
+ * },
39
+ * });
40
+ *
41
+ * <div {...handlers()} />
42
+ *
43
+ *
44
+ * @see {@link IntentAware.performIntent}
45
+ * @see {@link usePressGesture}
46
+ **/
47
+ export declare const useIngredientPour: ({ onPour, onPourCancel, intentContainer, strategy, }: IngredientPourProps) => IngredientPourResponse;
48
+ export {};
49
+ //# sourceMappingURL=use-ingredient-pour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-ingredient-pour.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/use-ingredient-pour.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEzE,UAAU,mBAAmB;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,kBAAkB,CAAC;IACjD,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BI;AACJ,eAAO,MAAM,iBAAiB,yDAK3B,mBAAmB,KAAG,sBAiCxB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { IngredientModel } from '../../../models';
2
+
3
+ export declare const useIngredient: () => {
4
+ model: IngredientModel<any> | undefined;
5
+ ready: boolean;
6
+ error: string | undefined;
7
+ status: {
8
+ model: IngredientModel<any> | undefined;
9
+ ready: boolean;
10
+ error: string | undefined;
11
+ };
12
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
13
+ };
14
+ //# sourceMappingURL=use-ingredient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-ingredient.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/use-ingredient.ts"],"names":[],"mappings":";AACA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;;;;;;;CASzB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IngredientModel } from '../../../models';
2
+
3
+ interface IngredientProps {
4
+ ingredient: IngredientModel;
5
+ }
6
+ export declare function withIngredient<T extends IngredientProps = IngredientProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof IngredientProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=with-ingredient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-ingredient.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient/with-ingredient.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,UAAU,eAAe;IACvB,UAAU,EAAE,eAAe,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxE,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WAEzB,KAAK,CAAC,EAAE,MAAM,eAAe,CAAC,sDAS9C"}
@@ -0,0 +1,3 @@
1
+ export * from './use-ingredient-container';
2
+ export * from './with-ingredient-container';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { IngredientContainerModel } from '../../../models';
2
+
3
+ export declare const useIngredientContainer: () => {
4
+ model: IngredientContainerModel<{}> | undefined;
5
+ ready: boolean;
6
+ error: string | undefined;
7
+ status: {
8
+ model: IngredientContainerModel<{}> | undefined;
9
+ ready: boolean;
10
+ error: string | undefined;
11
+ };
12
+ KosModelLoader: import('react').FunctionComponent<import('react').PropsWithChildren<import('packages/sdk/kos-ui-sdk/src/ui/components/error-boundary/error-boundary').ErrorBoundaryProps & import('@kosdev-code/kos-ui-sdk').KosModelLoaderProps>>;
13
+ };
14
+ //# sourceMappingURL=use-ingredient-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-ingredient-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/use-ingredient-container.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,sBAAsB;;;;;;;;;;CASlC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { IngredientContainerModel } from '../../../models';
2
+
3
+ interface IngredientContainerProps {
4
+ ingredientContainer: IngredientContainerModel;
5
+ }
6
+ export declare function withIngredientContainer<T extends IngredientContainerProps = IngredientContainerProps>(WrappedComponent: React.ComponentType<T>): (props: Omit<T, keyof IngredientContainerProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=with-ingredient-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-ingredient-container.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/ingredient-container/with-ingredient-container.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAGhE,UAAU,wBAAwB;IAChC,mBAAmB,EAAE,wBAAwB,CAAC;CAC/C;AAED,wBAAgB,uBAAuB,CACrC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,EAC7D,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,WACzB,KAAK,CAAC,EAAE,MAAM,wBAAwB,CAAC,sDASvD"}
@@ -0,0 +1,3 @@
1
+ export * from './use-nozzle';
2
+ export * from './with-nozzle';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/nozzle/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { AvailabilityModel } from '../../../models';
2
+
3
+ interface Props {
4
+ brandGroupName: string;
5
+ beverageGroupName: string;
6
+ flavorGroupName: string;
7
+ }
8
+ export declare const useDispenseKit: ({ brandGroupName, beverageGroupName, flavorGroupName }?: Props) => {
9
+ [x: string]: {
10
+ [x: string]: AvailabilityModel<any, Record<string, any>> | AvailabilityModel<any, Record<string, any>>[] | null;
11
+ handlers?: undefined;
12
+ } | {
13
+ handlers: () => {
14
+ onSelected: (brand: AvailabilityModel) => void;
15
+ };
16
+ };
17
+ selections: {
18
+ [x: string]: AvailabilityModel<any, Record<string, any>> | AvailabilityModel<any, Record<string, any>>[] | null;
19
+ };
20
+ };
21
+ export {};
22
+ //# sourceMappingURL=use-dispense-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-dispense-kit.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-dispense-sdk/src/ui/hooks/nozzle/use-dispense-kit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,UAAU,KAAK;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB;AACD,eAAO,MAAM,cAAc,4DAC+B,KAAK;;;;;;gCAyBnD,iBAAiB;;;;;;CAyD5B,CAAC"}