@onlive.ai/common-121 0.2.163 → 0.2.184

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 (447) hide show
  1. package/audi-dark.theme-B8g9SRrd.d.cts +11 -0
  2. package/audi-dark.theme-B8g9SRrd.d.ts +11 -0
  3. package/audi.theme-CbqEkKLD.d.cts +11 -0
  4. package/audi.theme-CbqEkKLD.d.ts +11 -0
  5. package/australia.theme-Cs0cygOQ.d.cts +11 -0
  6. package/australia.theme-Cs0cygOQ.d.ts +11 -0
  7. package/chunk-UTOVVCSU.js +2 -0
  8. package/components/asset/asset-modal-portal.cjs +1 -1
  9. package/components/asset/asset-modal-portal.d.cts +1 -1
  10. package/components/asset/asset-modal-portal.d.ts +1 -1
  11. package/components/asset/asset-modal-portal.js +1 -1
  12. package/components/asset/asset.cjs +4 -4
  13. package/components/asset/asset.d.cts +1 -1
  14. package/components/asset/asset.d.ts +1 -1
  15. package/components/asset/asset.js +13 -13
  16. package/components/asset/asset.loaders.cjs +1 -1
  17. package/components/asset/asset.loaders.d.cts +1 -1
  18. package/components/asset/asset.loaders.d.ts +1 -1
  19. package/components/asset/asset.loaders.js +1 -1
  20. package/components/asset/asset.renderer.cjs +4 -4
  21. package/components/asset/asset.renderer.d.cts +1 -1
  22. package/components/asset/asset.renderer.d.ts +1 -1
  23. package/components/asset/asset.renderer.js +10 -10
  24. package/components/asset/asset.styles.cjs +1 -1
  25. package/components/asset/asset.styles.d.cts +1 -1
  26. package/components/asset/asset.styles.d.ts +1 -1
  27. package/components/asset/asset.styles.js +1 -1
  28. package/components/asset/asset.types.cjs +1 -1
  29. package/components/asset/asset.types.d.cts +1 -1
  30. package/components/asset/asset.types.d.ts +1 -1
  31. package/components/asset/asset.types.js +1 -1
  32. package/components/asset/index.cjs +4 -4
  33. package/components/asset/index.d.cts +1 -1
  34. package/components/asset/index.d.ts +1 -1
  35. package/components/asset/index.js +13 -13
  36. package/components/player/player.cjs +1 -1
  37. package/components/player/player.d.cts +1 -1
  38. package/components/player/player.d.ts +1 -1
  39. package/components/player/player.js +1 -1
  40. package/components/player/player.styles.cjs +1 -1
  41. package/components/player/player.styles.d.cts +1 -1
  42. package/components/player/player.styles.d.ts +1 -1
  43. package/components/player/player.styles.js +1 -1
  44. package/components/side-bar/index.cjs +1 -1
  45. package/components/side-bar/index.d.cts +1 -1
  46. package/components/side-bar/index.d.ts +1 -1
  47. package/components/side-bar/index.js +1 -1
  48. package/components/side-bar/side-bar.cjs +1 -1
  49. package/components/side-bar/side-bar.d.cts +1 -1
  50. package/components/side-bar/side-bar.d.ts +1 -1
  51. package/components/side-bar/side-bar.js +1 -1
  52. package/components/side-bar/side-bar.styles.cjs +1 -1
  53. package/components/side-bar/side-bar.styles.d.cts +1 -1
  54. package/components/side-bar/side-bar.styles.d.ts +1 -1
  55. package/components/side-bar/side-bar.styles.js +1 -1
  56. package/components/side-bar/side-bar.types.cjs +1 -1
  57. package/components/side-bar/side-bar.types.d.cts +1 -1
  58. package/components/side-bar/side-bar.types.d.ts +1 -1
  59. package/components/side-bar/side-bar.types.js +1 -1
  60. package/components/upload/index.cjs +1 -1
  61. package/components/upload/index.d.cts +1 -1
  62. package/components/upload/index.d.ts +1 -1
  63. package/components/upload/index.js +1 -1
  64. package/components/upload/upload.cjs +1 -1
  65. package/components/upload/upload.d.cts +1 -1
  66. package/components/upload/upload.d.ts +1 -1
  67. package/components/upload/upload.js +1 -1
  68. package/components/upload/upload.styles.cjs +1 -1
  69. package/components/upload/upload.styles.d.cts +1 -1
  70. package/components/upload/upload.styles.d.ts +1 -1
  71. package/components/upload/upload.styles.js +1 -1
  72. package/components/upload/upload.types.cjs +1 -1
  73. package/components/upload/upload.types.d.cts +1 -1
  74. package/components/upload/upload.types.d.ts +1 -1
  75. package/components/upload/upload.types.js +1 -1
  76. package/cuernavaca.theme-0UFX1MeG.d.cts +11 -0
  77. package/cuernavaca.theme-0UFX1MeG.d.ts +11 -0
  78. package/cupra-diagonal.theme-DVrQr2iv.d.cts +11 -0
  79. package/cupra-diagonal.theme-DVrQr2iv.d.ts +11 -0
  80. package/cupra-events.theme-D2xJeafa.d.cts +11 -0
  81. package/cupra-events.theme-D2xJeafa.d.ts +11 -0
  82. package/cupra.theme-CqgKWLYE.d.cts +11 -0
  83. package/cupra.theme-CqgKWLYE.d.ts +11 -0
  84. package/germany.theme-CnwD309P.d.cts +11 -0
  85. package/germany.theme-CnwD309P.d.ts +11 -0
  86. package/hyundai.theme-E2ZiyZmJ.d.cts +11 -0
  87. package/hyundai.theme-E2ZiyZmJ.d.ts +11 -0
  88. package/index.cjs +276 -276
  89. package/index.d.cts +4134 -3
  90. package/index.d.ts +4134 -3
  91. package/index.js +280 -280
  92. package/italy.theme-BjfPp7rU.d.cts +11 -0
  93. package/italy.theme-BjfPp7rU.d.ts +11 -0
  94. package/magimix.theme-7cd19P1X.d.cts +11 -0
  95. package/magimix.theme-7cd19P1X.d.ts +11 -0
  96. package/media-SB4RDT6E.js +2 -0
  97. package/onlive-ai.theme-CASPoRHr.d.cts +11 -0
  98. package/onlive-ai.theme-CASPoRHr.d.ts +11 -0
  99. package/onlive.theme-nKZQHG1I.d.cts +11 -0
  100. package/onlive.theme-nKZQHG1I.d.ts +11 -0
  101. package/package.json +13 -9
  102. package/react/components/asset/Asset.cjs +1 -1
  103. package/react/components/asset/Asset.jsx +1 -1
  104. package/react/components/side-bar/SideBar.cjs +1 -1
  105. package/react/components/side-bar/SideBar.jsx +1 -1
  106. package/react/components/upload/Upload.cjs +1 -1
  107. package/react/components/upload/Upload.jsx +1 -1
  108. package/seat-cupra.theme-B4ylEjOZ.d.cts +11 -0
  109. package/seat-cupra.theme-B4ylEjOZ.d.ts +11 -0
  110. package/services/audio.service.cjs +1 -1
  111. package/services/audio.service.d.cts +1 -1
  112. package/services/audio.service.d.ts +1 -1
  113. package/services/audio.service.js +1 -1
  114. package/services/conversation/conversation.service.cjs +2 -2
  115. package/services/conversation/conversation.service.d.cts +26 -3
  116. package/services/conversation/conversation.service.d.ts +26 -3
  117. package/services/conversation/conversation.service.js +2 -2
  118. package/services/conversation/conversation.types.cjs +2 -2
  119. package/services/conversation/conversation.types.d.cts +120 -4
  120. package/services/conversation/conversation.types.d.ts +120 -4
  121. package/services/conversation/conversation.types.js +2 -2
  122. package/services/conversation/index.cjs +2 -2
  123. package/services/conversation/index.d.cts +19 -2
  124. package/services/conversation/index.d.ts +19 -2
  125. package/services/conversation/index.js +2 -2
  126. package/services/conversation/mock/actor/agent.cjs +2 -0
  127. package/services/conversation/mock/actor/agent.d.cts +202 -0
  128. package/services/conversation/mock/actor/agent.d.ts +202 -0
  129. package/services/conversation/mock/actor/agent.js +2 -0
  130. package/services/conversation/mock/actor/index.cjs +2 -0
  131. package/services/conversation/mock/actor/index.d.cts +4 -0
  132. package/services/conversation/mock/actor/index.d.ts +4 -0
  133. package/services/conversation/mock/actor/index.js +2 -0
  134. package/services/conversation/mock/actor/strategies.cjs +2 -0
  135. package/services/conversation/mock/actor/strategies.d.cts +31 -0
  136. package/services/conversation/mock/actor/strategies.d.ts +31 -0
  137. package/services/conversation/mock/actor/strategies.js +2 -0
  138. package/services/conversation/mock/errors.cjs +2 -0
  139. package/services/conversation/mock/errors.d.cts +125 -0
  140. package/services/conversation/mock/errors.d.ts +125 -0
  141. package/services/conversation/mock/errors.js +2 -0
  142. package/services/conversation/mock/events.cjs +2 -0
  143. package/services/conversation/mock/events.d.cts +253 -0
  144. package/services/conversation/mock/events.d.ts +253 -0
  145. package/services/conversation/mock/events.js +2 -0
  146. package/services/conversation/mock/factory.cjs +2 -0
  147. package/services/conversation/mock/factory.d.cts +134 -0
  148. package/services/conversation/mock/factory.d.ts +134 -0
  149. package/services/conversation/mock/factory.js +2 -0
  150. package/services/conversation/mock/fixtures.cjs +2 -0
  151. package/services/conversation/mock/fixtures.d.cts +191 -0
  152. package/services/conversation/mock/fixtures.d.ts +191 -0
  153. package/services/conversation/mock/fixtures.js +2 -0
  154. package/services/conversation/mock/generators.cjs +2 -0
  155. package/services/conversation/mock/generators.d.cts +123 -0
  156. package/services/conversation/mock/generators.d.ts +123 -0
  157. package/services/conversation/mock/generators.js +2 -0
  158. package/services/conversation/mock/index.cjs +2 -0
  159. package/services/conversation/mock/index.d.cts +24 -0
  160. package/services/conversation/mock/index.d.ts +24 -0
  161. package/services/conversation/mock/index.js +2 -0
  162. package/services/conversation/mock/livekit/index.cjs +2 -0
  163. package/services/conversation/mock/livekit/index.d.cts +7 -0
  164. package/services/conversation/mock/livekit/index.d.ts +7 -0
  165. package/services/conversation/mock/livekit/index.js +2 -0
  166. package/services/conversation/mock/livekit/local-participant.cjs +2 -0
  167. package/services/conversation/mock/livekit/local-participant.d.cts +204 -0
  168. package/services/conversation/mock/livekit/local-participant.d.ts +204 -0
  169. package/services/conversation/mock/livekit/local-participant.js +2 -0
  170. package/services/conversation/mock/livekit/participant.cjs +2 -0
  171. package/services/conversation/mock/livekit/participant.d.cts +171 -0
  172. package/services/conversation/mock/livekit/participant.d.ts +171 -0
  173. package/services/conversation/mock/livekit/participant.js +2 -0
  174. package/services/conversation/mock/livekit/room.cjs +2 -0
  175. package/services/conversation/mock/livekit/room.d.cts +292 -0
  176. package/services/conversation/mock/livekit/room.d.ts +292 -0
  177. package/services/conversation/mock/livekit/room.js +2 -0
  178. package/services/conversation/mock/livekit/streams.cjs +2 -0
  179. package/services/conversation/mock/livekit/streams.d.cts +190 -0
  180. package/services/conversation/mock/livekit/streams.d.ts +190 -0
  181. package/services/conversation/mock/livekit/streams.js +2 -0
  182. package/services/conversation/mock/livekit/tracks.cjs +2 -0
  183. package/services/conversation/mock/livekit/tracks.d.cts +149 -0
  184. package/services/conversation/mock/livekit/tracks.d.ts +149 -0
  185. package/services/conversation/mock/livekit/tracks.js +2 -0
  186. package/services/conversation/mock/media.cjs +2 -0
  187. package/services/conversation/mock/media.d.cts +174 -0
  188. package/services/conversation/mock/media.d.ts +174 -0
  189. package/services/conversation/mock/media.js +2 -0
  190. package/services/conversation/mock/service.cjs +2 -0
  191. package/services/conversation/mock/service.d.cts +305 -0
  192. package/services/conversation/mock/service.d.ts +305 -0
  193. package/services/conversation/mock/service.js +2 -0
  194. package/services/conversation/mock/service.test.cjs +2 -0
  195. package/services/conversation/mock/service.test.d.cts +1 -0
  196. package/services/conversation/mock/service.test.d.ts +1 -0
  197. package/services/conversation/mock/service.test.js +2 -0
  198. package/services/conversation/mock/state.cjs +2 -0
  199. package/services/conversation/mock/state.d.cts +296 -0
  200. package/services/conversation/mock/state.d.ts +296 -0
  201. package/services/conversation/mock/state.js +2 -0
  202. package/services/conversation/mock/storybook.cjs +2 -0
  203. package/services/conversation/mock/storybook.d.cts +197 -0
  204. package/services/conversation/mock/storybook.d.ts +197 -0
  205. package/services/conversation/mock/storybook.js +2 -0
  206. package/services/conversation/mock/types.cjs +2 -0
  207. package/services/conversation/mock/types.d.cts +442 -0
  208. package/services/conversation/mock/types.d.ts +442 -0
  209. package/services/conversation/mock/types.js +1 -0
  210. package/services/faqs/faqs.service.cjs +1 -1
  211. package/services/faqs/faqs.service.d.cts +1 -1
  212. package/services/faqs/faqs.service.d.ts +1 -1
  213. package/services/faqs/faqs.service.js +1 -1
  214. package/services/faqs/faqs.types.cjs +1 -1
  215. package/services/faqs/faqs.types.d.cts +1 -1
  216. package/services/faqs/faqs.types.d.ts +1 -1
  217. package/services/faqs/faqs.types.js +1 -1
  218. package/services/faqs/index.cjs +1 -1
  219. package/services/faqs/index.d.cts +1 -1
  220. package/services/faqs/index.d.ts +1 -1
  221. package/services/faqs/index.js +1 -1
  222. package/services/file/file.service.cjs +1 -1
  223. package/services/file/file.service.d.cts +1 -1
  224. package/services/file/file.service.d.ts +1 -1
  225. package/services/file/file.service.js +1 -1
  226. package/services/file/file.types.cjs +1 -1
  227. package/services/file/file.types.d.cts +1 -1
  228. package/services/file/file.types.d.ts +1 -1
  229. package/services/file/file.types.js +1 -1
  230. package/services/file/index.cjs +1 -1
  231. package/services/file/index.d.cts +1 -1
  232. package/services/file/index.d.ts +1 -1
  233. package/services/file/index.js +1 -1
  234. package/services/firebase/firebase-api.cjs +1 -1
  235. package/services/firebase/firebase-api.d.cts +1 -1
  236. package/services/firebase/firebase-api.d.ts +1 -1
  237. package/services/firebase/firebase-api.js +1 -1
  238. package/services/multimedia/config.example.cjs +1 -1
  239. package/services/multimedia/config.example.d.cts +1 -1
  240. package/services/multimedia/config.example.d.ts +1 -1
  241. package/services/multimedia/config.example.js +1 -1
  242. package/services/multimedia/index.cjs +1 -1
  243. package/services/multimedia/index.d.cts +1 -1
  244. package/services/multimedia/index.d.ts +1 -1
  245. package/services/multimedia/index.js +1 -1
  246. package/services/multimedia/multimedia.service.cjs +1 -1
  247. package/services/multimedia/multimedia.service.d.cts +1 -1
  248. package/services/multimedia/multimedia.service.d.ts +1 -1
  249. package/services/multimedia/multimedia.service.js +1 -1
  250. package/services/multimedia/multimedia.types.cjs +1 -1
  251. package/services/multimedia/multimedia.types.d.cts +1 -1
  252. package/services/multimedia/multimedia.types.d.ts +1 -1
  253. package/services/multimedia/multimedia.types.js +1 -1
  254. package/services/product/index.cjs +1 -1
  255. package/services/product/index.d.cts +1 -1
  256. package/services/product/index.d.ts +1 -1
  257. package/services/product/index.js +1 -1
  258. package/services/product/product.service.cjs +1 -1
  259. package/services/product/product.service.d.cts +1 -1
  260. package/services/product/product.service.d.ts +1 -1
  261. package/services/product/product.service.js +1 -1
  262. package/services/product/product.types.cjs +1 -1
  263. package/services/product/product.types.d.cts +1 -1
  264. package/services/product/product.types.d.ts +1 -1
  265. package/services/product/product.types.js +1 -1
  266. package/services/request.provider.cjs +1 -1
  267. package/services/request.provider.d.cts +1 -1
  268. package/services/request.provider.d.ts +1 -1
  269. package/services/request.provider.js +1 -1
  270. package/services/session.service.cjs +2 -2
  271. package/services/session.service.d.cts +1 -1
  272. package/services/session.service.d.ts +1 -1
  273. package/services/session.service.js +2 -2
  274. package/services/upload/index.cjs +1 -1
  275. package/services/upload/index.d.cts +1 -1
  276. package/services/upload/index.d.ts +1 -1
  277. package/services/upload/index.js +1 -1
  278. package/services/upload/upload.service.cjs +1 -1
  279. package/services/upload/upload.service.d.cts +1 -1
  280. package/services/upload/upload.service.d.ts +1 -1
  281. package/services/upload/upload.service.js +1 -1
  282. package/themes/custom/audi-dark.theme.cjs +920 -0
  283. package/themes/custom/audi-dark.theme.d.cts +3 -0
  284. package/themes/custom/audi-dark.theme.d.ts +3 -0
  285. package/themes/custom/audi-dark.theme.js +920 -0
  286. package/themes/custom/audi.theme.cjs +777 -0
  287. package/themes/custom/audi.theme.d.cts +3 -0
  288. package/themes/custom/audi.theme.d.ts +3 -0
  289. package/themes/custom/audi.theme.js +777 -0
  290. package/themes/custom/australia.theme.cjs +386 -0
  291. package/themes/custom/australia.theme.d.cts +3 -0
  292. package/themes/custom/australia.theme.d.ts +3 -0
  293. package/themes/custom/australia.theme.js +386 -0
  294. package/themes/custom/cuernavaca.theme.cjs +196 -0
  295. package/themes/custom/cuernavaca.theme.d.cts +3 -0
  296. package/themes/custom/cuernavaca.theme.d.ts +3 -0
  297. package/themes/custom/cuernavaca.theme.js +196 -0
  298. package/themes/custom/cupra-diagonal.theme.cjs +1029 -0
  299. package/themes/custom/cupra-diagonal.theme.d.cts +3 -0
  300. package/themes/custom/cupra-diagonal.theme.d.ts +3 -0
  301. package/themes/custom/cupra-diagonal.theme.js +1029 -0
  302. package/themes/custom/cupra-events.theme.cjs +555 -0
  303. package/themes/custom/cupra-events.theme.d.cts +3 -0
  304. package/themes/custom/cupra-events.theme.d.ts +3 -0
  305. package/themes/custom/cupra-events.theme.js +555 -0
  306. package/themes/custom/cupra.theme.cjs +147 -0
  307. package/themes/custom/cupra.theme.d.cts +3 -0
  308. package/themes/custom/cupra.theme.d.ts +3 -0
  309. package/themes/custom/cupra.theme.js +147 -0
  310. package/themes/custom/germany.theme.cjs +716 -0
  311. package/themes/custom/germany.theme.d.cts +3 -0
  312. package/themes/custom/germany.theme.d.ts +3 -0
  313. package/themes/custom/germany.theme.js +716 -0
  314. package/themes/custom/hyundai.theme.cjs +294 -0
  315. package/themes/custom/hyundai.theme.d.cts +3 -0
  316. package/themes/custom/hyundai.theme.d.ts +3 -0
  317. package/themes/custom/hyundai.theme.js +294 -0
  318. package/themes/custom/italy.theme.cjs +850 -0
  319. package/themes/custom/italy.theme.d.cts +3 -0
  320. package/themes/custom/italy.theme.d.ts +3 -0
  321. package/themes/custom/italy.theme.js +850 -0
  322. package/themes/custom/magimix.theme.cjs +119 -0
  323. package/themes/custom/magimix.theme.d.cts +3 -0
  324. package/themes/custom/magimix.theme.d.ts +3 -0
  325. package/themes/custom/magimix.theme.js +119 -0
  326. package/themes/custom/onlive-ai.theme.cjs +74 -0
  327. package/themes/custom/onlive-ai.theme.d.cts +3 -0
  328. package/themes/custom/onlive-ai.theme.d.ts +3 -0
  329. package/themes/custom/onlive-ai.theme.js +74 -0
  330. package/themes/custom/onlive.theme.cjs +33 -0
  331. package/themes/custom/onlive.theme.d.cts +3 -0
  332. package/themes/custom/onlive.theme.d.ts +3 -0
  333. package/themes/custom/onlive.theme.js +33 -0
  334. package/themes/custom/seat-cupra.theme.cjs +478 -0
  335. package/themes/custom/seat-cupra.theme.d.cts +3 -0
  336. package/themes/custom/seat-cupra.theme.d.ts +3 -0
  337. package/themes/custom/seat-cupra.theme.js +478 -0
  338. package/themes/dark.cjs +13 -2
  339. package/themes/dark.d.cts +1 -1
  340. package/themes/dark.d.ts +1 -1
  341. package/themes/dark.js +12 -1
  342. package/themes/light.cjs +13 -2
  343. package/themes/light.d.cts +1 -1
  344. package/themes/light.d.ts +1 -1
  345. package/themes/light.js +12 -1
  346. package/types/globals.cjs +1 -1
  347. package/types/globals.d.cts +1 -1
  348. package/types/globals.d.ts +1 -1
  349. package/types/globals.js +1 -1
  350. package/types/tracking-options.cjs +1 -1
  351. package/types/tracking-options.d.cts +1 -1
  352. package/types/tracking-options.d.ts +1 -1
  353. package/types/tracking-options.js +1 -1
  354. package/utils/adopt-styles.cjs +1 -1
  355. package/utils/adopt-styles.d.cts +1 -1
  356. package/utils/adopt-styles.d.ts +1 -1
  357. package/utils/adopt-styles.js +1 -1
  358. package/utils/apply-optional-styles.cjs +6548 -0
  359. package/utils/apply-optional-styles.d.cts +47 -0
  360. package/utils/apply-optional-styles.d.ts +47 -0
  361. package/utils/apply-optional-styles.js +6548 -0
  362. package/utils/browser-preferences.cjs +1 -1
  363. package/utils/browser-preferences.d.cts +1 -1
  364. package/utils/browser-preferences.d.ts +1 -1
  365. package/utils/browser-preferences.js +1 -1
  366. package/utils/classify-media.cjs +1 -1
  367. package/utils/classify-media.d.cts +1 -1
  368. package/utils/classify-media.d.ts +1 -1
  369. package/utils/classify-media.js +1 -1
  370. package/utils/decorators.cjs +1 -1
  371. package/utils/decorators.d.cts +1 -1
  372. package/utils/decorators.d.ts +1 -1
  373. package/utils/decorators.js +1 -1
  374. package/utils/detected-lang.cjs +1 -1
  375. package/utils/detected-lang.d.cts +1 -1
  376. package/utils/detected-lang.d.ts +1 -1
  377. package/utils/detected-lang.js +1 -1
  378. package/utils/fullscreen.cjs +1 -1
  379. package/utils/fullscreen.d.cts +1 -1
  380. package/utils/fullscreen.d.ts +1 -1
  381. package/utils/fullscreen.js +1 -1
  382. package/utils/insert-script.cjs +1 -1
  383. package/utils/insert-script.d.cts +1 -1
  384. package/utils/insert-script.d.ts +1 -1
  385. package/utils/insert-script.js +1 -1
  386. package/utils/is-map-compatible.cjs +1 -1
  387. package/utils/is-map-compatible.d.cts +1 -1
  388. package/utils/is-map-compatible.d.ts +1 -1
  389. package/utils/is-map-compatible.js +1 -1
  390. package/utils/markdown.cjs +1 -1
  391. package/utils/markdown.d.cts +1 -1
  392. package/utils/markdown.d.ts +1 -1
  393. package/utils/markdown.js +1 -1
  394. package/utils/merge.cjs +1 -1
  395. package/utils/merge.d.cts +1 -1
  396. package/utils/merge.d.ts +1 -1
  397. package/utils/merge.js +1 -1
  398. package/utils/multiband-track-volume.cjs +1 -1
  399. package/utils/multiband-track-volume.d.cts +1 -1
  400. package/utils/multiband-track-volume.d.ts +1 -1
  401. package/utils/multiband-track-volume.js +1 -1
  402. package/utils/onlive-url-params.cjs +1 -1
  403. package/utils/onlive-url-params.d.cts +1 -1
  404. package/utils/onlive-url-params.d.ts +1 -1
  405. package/utils/onlive-url-params.js +1 -1
  406. package/utils/pretty-distance.cjs +1 -1
  407. package/utils/pretty-distance.d.cts +1 -1
  408. package/utils/pretty-distance.d.ts +1 -1
  409. package/utils/pretty-distance.js +1 -1
  410. package/utils/pretty-time.cjs +1 -1
  411. package/utils/pretty-time.d.cts +1 -1
  412. package/utils/pretty-time.d.ts +1 -1
  413. package/utils/pretty-time.js +1 -1
  414. package/utils/random-string.cjs +1 -1
  415. package/utils/random-string.d.cts +1 -1
  416. package/utils/random-string.d.ts +1 -1
  417. package/utils/random-string.js +1 -1
  418. package/utils/resource-type.cjs +1 -1
  419. package/utils/resource-type.d.cts +1 -1
  420. package/utils/resource-type.d.ts +1 -1
  421. package/utils/resource-type.js +1 -1
  422. package/utils/round-number.cjs +1 -1
  423. package/utils/round-number.d.cts +1 -1
  424. package/utils/round-number.d.ts +1 -1
  425. package/utils/round-number.js +1 -1
  426. package/utils/safe-html.cjs +2 -2
  427. package/utils/safe-html.d.cts +9 -2
  428. package/utils/safe-html.d.ts +9 -2
  429. package/utils/safe-html.js +2 -2
  430. package/utils/sanitize.cjs +1 -1
  431. package/utils/sanitize.d.cts +1 -1
  432. package/utils/sanitize.d.ts +1 -1
  433. package/utils/sanitize.js +1 -1
  434. package/utils/spread.cjs +1 -1
  435. package/utils/spread.d.cts +1 -1
  436. package/utils/spread.d.ts +1 -1
  437. package/utils/spread.js +1 -1
  438. package/utils/watch.cjs +1 -1
  439. package/utils/watch.d.cts +1 -1
  440. package/utils/watch.d.ts +1 -1
  441. package/utils/watch.js +1 -1
  442. package/react/components/asset/Asset.d.cts +0 -33
  443. package/react/components/asset/Asset.d.ts +0 -33
  444. package/react/components/side-bar/SideBar.d.cts +0 -37
  445. package/react/components/side-bar/SideBar.d.ts +0 -37
  446. package/react/components/upload/Upload.d.cts +0 -23
  447. package/react/components/upload/Upload.d.ts +0 -23
@@ -0,0 +1,190 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ /**
3
+ * @file Mock LiveKit data streams.
4
+ *
5
+ * @description Provides mock implementations for LiveKit's text and data streaming
6
+ * capabilities used for real-time message delivery.
7
+ */
8
+ /**
9
+ * Text stream info.
10
+ */
11
+ interface MockTextStreamInfo {
12
+ /** Stream ID */
13
+ id: string;
14
+ /** Stream topic */
15
+ topic?: string;
16
+ /** Stream attributes */
17
+ attributes?: Record<string, string>;
18
+ /** Timestamp */
19
+ timestamp?: number;
20
+ /** Total size if known */
21
+ totalSize?: number;
22
+ }
23
+ /**
24
+ * Mock text stream reader for simulating message streams.
25
+ *
26
+ * @description Simulates LiveKit's TextStreamReader for receiving streamed text content.
27
+ * Supports async iteration for consuming stream chunks.
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const reader = new MockTextStreamReader("msg_1", "agent", "Hello, world!");
32
+ * for await (const chunk of reader) {
33
+ * console.log(chunk); // "Hello, world!"
34
+ * }
35
+ * ```
36
+ */
37
+ declare class MockTextStreamReader {
38
+ /** Stream info */
39
+ info: MockTextStreamInfo;
40
+ /** Sender participant identity */
41
+ participantIdentity: string;
42
+ /** Stream topic */
43
+ topic?: string;
44
+ /** Content chunks */
45
+ private chunks;
46
+ /** Current read index */
47
+ private index;
48
+ /** Whether stream is complete */
49
+ private _complete;
50
+ /**
51
+ * Creates a new MockTextStreamReader.
52
+ *
53
+ * @param id - Stream ID.
54
+ * @param participantIdentity - Sender identity.
55
+ * @param content - Full content or array of chunks.
56
+ * @param attributes - Optional stream attributes.
57
+ * @param topic - Optional stream topic.
58
+ */
59
+ constructor(id: string, participantIdentity: string, content: string | string[], attributes?: Record<string, string>, topic?: string);
60
+ /**
61
+ * Gets whether the stream is complete.
62
+ */
63
+ get isComplete(): boolean;
64
+ /**
65
+ * Async iterator for stream chunks.
66
+ */
67
+ [Symbol.asyncIterator](): AsyncIterableIterator<string>;
68
+ /**
69
+ * Reads the next chunk.
70
+ *
71
+ * @returns The next chunk or null if complete.
72
+ */
73
+ read(): Promise<string | null>;
74
+ /**
75
+ * Reads all remaining content.
76
+ *
77
+ * @returns The complete remaining content.
78
+ */
79
+ readAll(): Promise<string>;
80
+ /**
81
+ * Cancels the stream.
82
+ */
83
+ cancel(): void;
84
+ }
85
+ /**
86
+ * Mock text stream writer for sending streamed text.
87
+ *
88
+ * @description Simulates LiveKit's capability to send streamed text content.
89
+ */
90
+ declare class MockTextStreamWriter {
91
+ /** Stream ID */
92
+ readonly id: string;
93
+ /** Destination identities */
94
+ private _destinationIdentities?;
95
+ /** Topic */
96
+ private _topic?;
97
+ /** Written chunks */
98
+ private chunks;
99
+ /** Whether stream is closed */
100
+ private _closed;
101
+ /** Callback when data is written */
102
+ private onWriteCallback?;
103
+ /**
104
+ * Creates a new MockTextStreamWriter.
105
+ *
106
+ * @param topic - Stream topic.
107
+ * @param destinationIdentities - Optional specific recipients.
108
+ */
109
+ constructor(topic?: string, destinationIdentities?: string[]);
110
+ /**
111
+ * Gets whether the stream is closed.
112
+ */
113
+ get isClosed(): boolean;
114
+ /**
115
+ * Gets the stream topic.
116
+ */
117
+ get topic(): string | undefined;
118
+ /**
119
+ * Gets the destination identities.
120
+ */
121
+ get destinationIdentities(): string[] | undefined;
122
+ /**
123
+ * Gets all written content.
124
+ */
125
+ get content(): string;
126
+ /**
127
+ * Sets a callback for when data is written.
128
+ *
129
+ * @param callback - Callback function.
130
+ */
131
+ onWrite(callback: (chunk: string) => void): void;
132
+ /**
133
+ * Writes a chunk to the stream.
134
+ *
135
+ * @param chunk - Text chunk to write.
136
+ */
137
+ write(chunk: string): Promise<void>;
138
+ /**
139
+ * Closes the stream.
140
+ */
141
+ close(): Promise<void>;
142
+ }
143
+ /**
144
+ * Mock byte stream reader for binary data.
145
+ */
146
+ declare class MockByteStreamReader {
147
+ /** Stream info */
148
+ info: MockTextStreamInfo;
149
+ /** Sender identity */
150
+ participantIdentity: string;
151
+ /** Data chunks */
152
+ private chunks;
153
+ /** Current index */
154
+ private _index;
155
+ /**
156
+ * Gets the current index.
157
+ */
158
+ get index(): number;
159
+ /**
160
+ * Creates a new MockByteStreamReader.
161
+ *
162
+ * @param id - Stream ID.
163
+ * @param participantIdentity - Sender identity.
164
+ * @param data - Binary data.
165
+ */
166
+ constructor(id: string, participantIdentity: string, data: Uint8Array | Uint8Array[]);
167
+ /**
168
+ * Async iterator for data chunks.
169
+ */
170
+ [Symbol.asyncIterator](): AsyncIterableIterator<Uint8Array>;
171
+ /**
172
+ * Reads all remaining data.
173
+ */
174
+ readAll(): Promise<Uint8Array>;
175
+ }
176
+ /**
177
+ * Creates a text stream reader from content.
178
+ *
179
+ * @param participantIdentity - Sender identity.
180
+ * @param content - Content to stream.
181
+ * @param options - Optional configuration.
182
+ * @returns A MockTextStreamReader.
183
+ */
184
+ declare function createTextStream(participantIdentity: string, content: string | string[], options?: {
185
+ id?: string;
186
+ attributes?: Record<string, string>;
187
+ topic?: string;
188
+ }): MockTextStreamReader;
189
+
190
+ export { MockByteStreamReader, type MockTextStreamInfo, MockTextStreamReader, MockTextStreamWriter, createTextStream };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ var a=0;function o(r){return a++,`mock_${r}_${a}_${Date.now().toString(36)}`}var c=class{constructor(t,n,e,i,s){this.index=0;this._complete=!1;this.info={id:t,attributes:i,topic:s,timestamp:Date.now()},this.participantIdentity=n,this.topic=s,this.chunks=Array.isArray(e)?e:[e],this.info.totalSize=this.chunks.reduce((l,d)=>l+d.length,0)}get isComplete(){return this._complete}async*[Symbol.asyncIterator](){for(let t of this.chunks)yield t;this._complete=!0}async read(){return this.index>=this.chunks.length?(this._complete=!0,null):this.chunks[this.index++]}async readAll(){let t=this.chunks.slice(this.index).join("");return this.index=this.chunks.length,this._complete=!0,t}cancel(){this._complete=!0}},g=class{constructor(t,n){this.chunks=[];this._closed=!1;this.id=o("stream"),this._topic=t,this._destinationIdentities=n}get isClosed(){return this._closed}get topic(){return this._topic}get destinationIdentities(){return this._destinationIdentities}get content(){return this.chunks.join("")}onWrite(t){this.onWriteCallback=t}async write(t){if(this._closed)throw new Error("Stream is closed");this.chunks.push(t),this.onWriteCallback?.(t)}async close(){this._closed=!0}},u=class{constructor(t,n,e){this._index=0;this.info={id:t,timestamp:Date.now()},this.participantIdentity=n,this.chunks=Array.isArray(e)?e:[e]}get index(){return this._index}async*[Symbol.asyncIterator](){for(let t of this.chunks)yield t}async readAll(){let t=this.chunks.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t),e=0;for(let i of this.chunks)n.set(i,e),e+=i.length;return n}};function m(r,t,n){return new c(n?.id||o("stream"),r,t,n?.attributes,n?.topic)}export{u as MockByteStreamReader,c as MockTextStreamReader,g as MockTextStreamWriter,m as createTextStream};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ "use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var g=(r,t)=>{for(var e in t)a(r,e,{get:t[e],enumerable:!0})},k=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of u(t))!l.call(r,i)&&i!==e&&a(r,i,{get:()=>t[i],enumerable:!(n=m(t,i))||n.enumerable});return r};var h=r=>k(a({},"__esModule",{value:!0}),r);var p={};g(p,{MockTrack:()=>o,MockTrackPublication:()=>s});module.exports=h(p);var c=0;function d(r){return c++,`mock_${r}_${c}_${Date.now().toString(36)}`}var o=class{constructor(t,e,n,i){this.muted=!1;this.enabled=!0;this.attachedElements=new Set;this.kind=t,this.source=e,this.sid=d("TR"),this.mediaStreamTrack=n,this.mediaCleanup=i}get mediaTrack(){return this.mediaStreamTrack}attach(t){let e=t||document.createElement(this.kind==="video"?"video":"audio");if(this.mediaStreamTrack){let n=new MediaStream([this.mediaStreamTrack]);e.srcObject=n,e.autoplay=!0,this.kind==="video"&&(e.playsInline=!0,e.muted=!0)}return this.attachedElements.add(e),e}detach(t){if(t)return t.srcObject=null,this.attachedElements.delete(t),[t];let e=Array.from(this.attachedElements);for(let n of e)n.srcObject=null;return this.attachedElements.clear(),e}stop(){this.detach(),this.mediaCleanup&&this.mediaCleanup(),this.mediaStreamTrack&&this.mediaStreamTrack.stop(),this.enabled=!1}setMuted(t){this.muted=t,this.mediaStreamTrack&&(this.mediaStreamTrack.enabled=!t)}setEnabled(t){this.enabled=t,this.mediaStreamTrack&&(this.mediaStreamTrack.enabled=t)}},s=class{constructor(t,e){this.subscribed=!0;this.isEnabled=!0;this.track=t,this.trackSid=t.sid,this.trackName=e||`${t.kind}_${t.source}`,this.source=t.source,this.kind=t.kind}get isMuted(){return this.track?.muted??!1}get isSubscribed(){return this.subscribed&&this.track!==null}setSubscribed(t){this.subscribed=t}setEnabled(t){this.isEnabled=t,this.track&&(this.track.enabled=t)}setMuted(t){this.track&&this.track.setMuted(t)}};0&&(module.exports={MockTrack,MockTrackPublication});
@@ -0,0 +1,149 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ import { MockTrackKind } from '../types.cjs';
3
+ export { MockTrackSource } from '../types.cjs';
4
+
5
+ /**
6
+ * @file Mock LiveKit Track implementations.
7
+ *
8
+ * @description Provides mock implementations of LiveKit Track and TrackPublication
9
+ * classes for testing audio/video functionality without real media streams.
10
+ */
11
+
12
+ /**
13
+ * Mock track that can attach to HTML media elements.
14
+ *
15
+ * @description Simulates LiveKit's Track class with support for synthetic media streams.
16
+ * Tracks can be attached to DOM elements for visual testing.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const track = new MockTrack("video", "camera", mediaStreamTrack);
21
+ * const videoElement = track.attach();
22
+ * document.body.appendChild(videoElement);
23
+ * ```
24
+ */
25
+ declare class MockTrack {
26
+ /** Track kind (audio, video, data) */
27
+ kind: MockTrackKind;
28
+ /** Track source (camera, microphone, screen_share, etc.) */
29
+ source: string;
30
+ /** Track SID */
31
+ sid: string;
32
+ /** Whether track is muted */
33
+ muted: boolean;
34
+ /** Whether track is enabled */
35
+ enabled: boolean;
36
+ /** Attached elements */
37
+ private attachedElements;
38
+ /** MediaStream track if using synthetic media */
39
+ private mediaStreamTrack?;
40
+ /** Cleanup function for synthetic media */
41
+ private mediaCleanup?;
42
+ /**
43
+ * Creates a new MockTrack.
44
+ *
45
+ * @param kind - Track kind (audio, video, data).
46
+ * @param source - Track source identifier.
47
+ * @param mediaStreamTrack - Optional real MediaStreamTrack for synthetic media.
48
+ * @param mediaCleanup - Optional cleanup function for synthetic media.
49
+ */
50
+ constructor(kind: MockTrackKind, source: string, mediaStreamTrack?: MediaStreamTrack, mediaCleanup?: () => void);
51
+ /**
52
+ * Gets the underlying MediaStreamTrack if available.
53
+ */
54
+ get mediaTrack(): MediaStreamTrack | undefined;
55
+ /**
56
+ * Attaches the track to an HTML element.
57
+ *
58
+ * @param element - Optional element to attach to. Creates one if not provided.
59
+ * @returns The attached HTML media element.
60
+ */
61
+ attach(element?: HTMLMediaElement): HTMLMediaElement;
62
+ /**
63
+ * Detaches the track from an element or all elements.
64
+ *
65
+ * @param element - Optional specific element to detach from.
66
+ * @returns Array of detached elements.
67
+ */
68
+ detach(element?: HTMLMediaElement): HTMLMediaElement[];
69
+ /**
70
+ * Stops the track and releases resources.
71
+ */
72
+ stop(): void;
73
+ /**
74
+ * Sets track mute state.
75
+ *
76
+ * @param muted - Whether the track should be muted.
77
+ */
78
+ setMuted(muted: boolean): void;
79
+ /**
80
+ * Sets track enabled state.
81
+ *
82
+ * @param enabled - Whether the track should be enabled.
83
+ */
84
+ setEnabled(enabled: boolean): void;
85
+ }
86
+ /**
87
+ * Mock track publication that wraps a track.
88
+ *
89
+ * @description Simulates LiveKit's TrackPublication class which represents
90
+ * a published track in a room.
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * const track = new MockTrack("video", "camera");
95
+ * const publication = new MockTrackPublication(track);
96
+ * publication.setSubscribed(true);
97
+ * ```
98
+ */
99
+ declare class MockTrackPublication {
100
+ /** Track SID */
101
+ trackSid: string;
102
+ /** Track name */
103
+ trackName: string;
104
+ /** Track source */
105
+ source: string;
106
+ /** Track kind */
107
+ kind: MockTrackKind;
108
+ /** Whether subscribed to this track */
109
+ subscribed: boolean;
110
+ /** Whether the publication is enabled */
111
+ isEnabled: boolean;
112
+ /** The track itself (may be undefined if not subscribed) */
113
+ track: MockTrack | null;
114
+ /**
115
+ * Gets whether the track is muted.
116
+ */
117
+ get isMuted(): boolean;
118
+ /**
119
+ * Gets whether the track is subscribed.
120
+ */
121
+ get isSubscribed(): boolean;
122
+ /**
123
+ * Creates a new MockTrackPublication.
124
+ *
125
+ * @param track - The track to wrap.
126
+ * @param name - Optional publication name.
127
+ */
128
+ constructor(track: MockTrack, name?: string);
129
+ /**
130
+ * Sets subscription state.
131
+ *
132
+ * @param subscribed - Whether to subscribe to the track.
133
+ */
134
+ setSubscribed(subscribed: boolean): void;
135
+ /**
136
+ * Sets track enabled state.
137
+ *
138
+ * @param enabled - Whether the track should be enabled.
139
+ */
140
+ setEnabled(enabled: boolean): void;
141
+ /**
142
+ * Mutes or unmutes the track.
143
+ *
144
+ * @param muted - Whether the track should be muted.
145
+ */
146
+ setMuted(muted: boolean): void;
147
+ }
148
+
149
+ export { MockTrack, MockTrackKind, MockTrackPublication };
@@ -0,0 +1,149 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ import { MockTrackKind } from '../types.js';
3
+ export { MockTrackSource } from '../types.js';
4
+
5
+ /**
6
+ * @file Mock LiveKit Track implementations.
7
+ *
8
+ * @description Provides mock implementations of LiveKit Track and TrackPublication
9
+ * classes for testing audio/video functionality without real media streams.
10
+ */
11
+
12
+ /**
13
+ * Mock track that can attach to HTML media elements.
14
+ *
15
+ * @description Simulates LiveKit's Track class with support for synthetic media streams.
16
+ * Tracks can be attached to DOM elements for visual testing.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * const track = new MockTrack("video", "camera", mediaStreamTrack);
21
+ * const videoElement = track.attach();
22
+ * document.body.appendChild(videoElement);
23
+ * ```
24
+ */
25
+ declare class MockTrack {
26
+ /** Track kind (audio, video, data) */
27
+ kind: MockTrackKind;
28
+ /** Track source (camera, microphone, screen_share, etc.) */
29
+ source: string;
30
+ /** Track SID */
31
+ sid: string;
32
+ /** Whether track is muted */
33
+ muted: boolean;
34
+ /** Whether track is enabled */
35
+ enabled: boolean;
36
+ /** Attached elements */
37
+ private attachedElements;
38
+ /** MediaStream track if using synthetic media */
39
+ private mediaStreamTrack?;
40
+ /** Cleanup function for synthetic media */
41
+ private mediaCleanup?;
42
+ /**
43
+ * Creates a new MockTrack.
44
+ *
45
+ * @param kind - Track kind (audio, video, data).
46
+ * @param source - Track source identifier.
47
+ * @param mediaStreamTrack - Optional real MediaStreamTrack for synthetic media.
48
+ * @param mediaCleanup - Optional cleanup function for synthetic media.
49
+ */
50
+ constructor(kind: MockTrackKind, source: string, mediaStreamTrack?: MediaStreamTrack, mediaCleanup?: () => void);
51
+ /**
52
+ * Gets the underlying MediaStreamTrack if available.
53
+ */
54
+ get mediaTrack(): MediaStreamTrack | undefined;
55
+ /**
56
+ * Attaches the track to an HTML element.
57
+ *
58
+ * @param element - Optional element to attach to. Creates one if not provided.
59
+ * @returns The attached HTML media element.
60
+ */
61
+ attach(element?: HTMLMediaElement): HTMLMediaElement;
62
+ /**
63
+ * Detaches the track from an element or all elements.
64
+ *
65
+ * @param element - Optional specific element to detach from.
66
+ * @returns Array of detached elements.
67
+ */
68
+ detach(element?: HTMLMediaElement): HTMLMediaElement[];
69
+ /**
70
+ * Stops the track and releases resources.
71
+ */
72
+ stop(): void;
73
+ /**
74
+ * Sets track mute state.
75
+ *
76
+ * @param muted - Whether the track should be muted.
77
+ */
78
+ setMuted(muted: boolean): void;
79
+ /**
80
+ * Sets track enabled state.
81
+ *
82
+ * @param enabled - Whether the track should be enabled.
83
+ */
84
+ setEnabled(enabled: boolean): void;
85
+ }
86
+ /**
87
+ * Mock track publication that wraps a track.
88
+ *
89
+ * @description Simulates LiveKit's TrackPublication class which represents
90
+ * a published track in a room.
91
+ *
92
+ * @example
93
+ * ```typescript
94
+ * const track = new MockTrack("video", "camera");
95
+ * const publication = new MockTrackPublication(track);
96
+ * publication.setSubscribed(true);
97
+ * ```
98
+ */
99
+ declare class MockTrackPublication {
100
+ /** Track SID */
101
+ trackSid: string;
102
+ /** Track name */
103
+ trackName: string;
104
+ /** Track source */
105
+ source: string;
106
+ /** Track kind */
107
+ kind: MockTrackKind;
108
+ /** Whether subscribed to this track */
109
+ subscribed: boolean;
110
+ /** Whether the publication is enabled */
111
+ isEnabled: boolean;
112
+ /** The track itself (may be undefined if not subscribed) */
113
+ track: MockTrack | null;
114
+ /**
115
+ * Gets whether the track is muted.
116
+ */
117
+ get isMuted(): boolean;
118
+ /**
119
+ * Gets whether the track is subscribed.
120
+ */
121
+ get isSubscribed(): boolean;
122
+ /**
123
+ * Creates a new MockTrackPublication.
124
+ *
125
+ * @param track - The track to wrap.
126
+ * @param name - Optional publication name.
127
+ */
128
+ constructor(track: MockTrack, name?: string);
129
+ /**
130
+ * Sets subscription state.
131
+ *
132
+ * @param subscribed - Whether to subscribe to the track.
133
+ */
134
+ setSubscribed(subscribed: boolean): void;
135
+ /**
136
+ * Sets track enabled state.
137
+ *
138
+ * @param enabled - Whether the track should be enabled.
139
+ */
140
+ setEnabled(enabled: boolean): void;
141
+ /**
142
+ * Mutes or unmutes the track.
143
+ *
144
+ * @param muted - Whether the track should be muted.
145
+ */
146
+ setMuted(muted: boolean): void;
147
+ }
148
+
149
+ export { MockTrack, MockTrackKind, MockTrackPublication };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ var i=0;function a(n){return i++,`mock_${n}_${i}_${Date.now().toString(36)}`}var o=class{constructor(t,e,r,c){this.muted=!1;this.enabled=!0;this.attachedElements=new Set;this.kind=t,this.source=e,this.sid=a("TR"),this.mediaStreamTrack=r,this.mediaCleanup=c}get mediaTrack(){return this.mediaStreamTrack}attach(t){let e=t||document.createElement(this.kind==="video"?"video":"audio");if(this.mediaStreamTrack){let r=new MediaStream([this.mediaStreamTrack]);e.srcObject=r,e.autoplay=!0,this.kind==="video"&&(e.playsInline=!0,e.muted=!0)}return this.attachedElements.add(e),e}detach(t){if(t)return t.srcObject=null,this.attachedElements.delete(t),[t];let e=Array.from(this.attachedElements);for(let r of e)r.srcObject=null;return this.attachedElements.clear(),e}stop(){this.detach(),this.mediaCleanup&&this.mediaCleanup(),this.mediaStreamTrack&&this.mediaStreamTrack.stop(),this.enabled=!1}setMuted(t){this.muted=t,this.mediaStreamTrack&&(this.mediaStreamTrack.enabled=!t)}setEnabled(t){this.enabled=t,this.mediaStreamTrack&&(this.mediaStreamTrack.enabled=t)}},s=class{constructor(t,e){this.subscribed=!0;this.isEnabled=!0;this.track=t,this.trackSid=t.sid,this.trackName=e||`${t.kind}_${t.source}`,this.source=t.source,this.kind=t.kind}get isMuted(){return this.track?.muted??!1}get isSubscribed(){return this.subscribed&&this.track!==null}setSubscribed(t){this.subscribed=t}setEnabled(t){this.isEnabled=t,this.track&&(this.track.enabled=t)}setMuted(t){this.track&&this.track.setMuted(t)}};export{o as MockTrack,s as MockTrackPublication};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ "use strict";var p=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var q=(o,t)=>{for(var a in t)p(o,a,{get:t[a],enumerable:!0})},D=(o,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of I(t))!R.call(o,i)&&i!==a&&p(o,i,{get:()=>t[i],enumerable:!(l=V(t,i))||l.enumerable});return o};var N=o=>D(p({},"__esModule",{value:!0}),o);var F={};q(F,{SYNTHETIC_MEDIA_PRESETS:()=>A,createSyntheticAudioTrack:()=>w,createSyntheticMedia:()=>x,createSyntheticMediaFromPreset:()=>O,createSyntheticVideoTrack:()=>C});module.exports=N(F);function C(o={}){let{width:t=640,height:a=480,fps:l=30,backgroundColor:i="#1a1a2e",foregroundColor:f="#4361ee",label:d="Mock Video",animation:S="wave"}=o,r=document.createElement("canvas");r.width=t,r.height=a;let e=r.getContext("2d"),u,h=Date.now(),v={wave:s=>{e.fillStyle=i,e.fillRect(0,0,t,a),e.strokeStyle=f,e.lineWidth=3,e.beginPath();for(let n=0;n<t;n++){let c=a/2+Math.sin(n/t*4*Math.PI+s*.002)*(a/4);n===0?e.moveTo(n,c):e.lineTo(n,c)}e.stroke()},pulse:s=>{e.fillStyle=i,e.fillRect(0,0,t,a);let n=Math.sin(s*.003)*.3+.7,c=Math.min(t,a)*.3*n;e.beginPath(),e.arc(t/2,a/2,c,0,Math.PI*2),e.fillStyle=f,e.fill()},bars:s=>{e.fillStyle=i,e.fillRect(0,0,t,a);let n=20,c=t/n,m=a*.7;e.fillStyle=f;for(let g=0;g<n;g++){let T=Math.abs(Math.sin(g/n*Math.PI*2+s*.004))*m,E=g*c,P=a-T;e.fillRect(E+2,P,c-4,T)}},avatar:s=>{e.fillStyle=i,e.fillRect(0,0,t,a);let n=t/2,c=a/2-20,m=Math.min(t,a)*.15;e.beginPath(),e.arc(n,c,m,0,Math.PI*2),e.fillStyle=f,e.fill(),e.beginPath(),e.ellipse(n,c+m*2.2,m*1.5,m,0,Math.PI,0),e.fill(),Math.sin(s*.01)>0&&(e.beginPath(),e.arc(n,c+m*3,5+Math.sin(s*.02)*3,0,Math.PI*2),e.fillStyle="#22c55e",e.fill())},none:()=>{e.fillStyle=i,e.fillRect(0,0,t,a)}},y=()=>{e.fillStyle="rgba(255, 255, 255, 0.8)",e.font=`${Math.floor(a*.04)}px system-ui, sans-serif`,e.textAlign="center",e.fillText(d,t/2,a-20)},b=()=>{let s=Date.now()-h;v[S](s),y(),u=requestAnimationFrame(b)};b();let M=r.captureStream(l),k=M.getVideoTracks()[0];return{track:k,stream:M,cleanup:()=>{cancelAnimationFrame(u),k.stop()}}}function w(o={}){let{frequency:t=440,volume:a=.1,waveType:l="sine",addVariation:i=!0,enabled:f=!1}=o,d=new AudioContext,S=d.createMediaStreamDestination(),r=d.createOscillator();r.type=l,r.frequency.value=t;let e=d.createGain();e.gain.value=f?a:0;let u=null,h=null;i&&(u=d.createOscillator(),u.frequency.value=.5,h=d.createGain(),h.gain.value=10,u.connect(h),h.connect(r.frequency),u.start()),r.connect(e),e.connect(S),r.start();let v=S.stream,y=v.getAudioTracks()[0];return{track:y,stream:v,setVolume:b=>{e.gain.value=Math.max(0,Math.min(1,b))},setEnabled:b=>{e.gain.value=b?a:0},cleanup:()=>{r.stop(),u?.stop(),d.close(),y.stop()}}}function x(o,t){let a=C(o),l=w(t),i=new MediaStream([a.track,l.track]);return{videoTrack:a.track,audioTrack:l.track,combinedStream:i,setAudioVolume:l.setVolume,setAudioEnabled:l.setEnabled,cleanup:()=>{a.cleanup(),l.cleanup()}}}var A={localCamera:{video:{width:640,height:480,animation:"avatar",label:"You",foregroundColor:"#4361ee"},audio:{enabled:!1}},agentCamera:{video:{width:640,height:480,animation:"avatar",label:"AI Agent",foregroundColor:"#22c55e",backgroundColor:"#0f172a"},audio:{enabled:!1,frequency:300}},screenShare:{video:{width:1920,height:1080,animation:"bars",label:"Screen Share",backgroundColor:"#0a0a0a",foregroundColor:"#f59e0b"},audio:{enabled:!1}},voiceOnly:{video:{width:320,height:240,animation:"wave",label:"Voice Call"},audio:{enabled:!1,volume:.05}}};function O(o){let t=A[o];return x(t.video,t.audio)}0&&(module.exports={SYNTHETIC_MEDIA_PRESETS,createSyntheticAudioTrack,createSyntheticMedia,createSyntheticMediaFromPreset,createSyntheticVideoTrack});
@@ -0,0 +1,174 @@
1
+ /*! @onlive.ai/common-121 v0.2.184 | © 2026 Onlive.ai */
2
+ /**
3
+ * @file Synthetic media generators for mock LiveKit tracks.
4
+ * @description Generates fake video and audio MediaStreams for visual demos
5
+ * in Storybook without requiring real camera/microphone access.
6
+ */
7
+ /**
8
+ * Configuration for synthetic video generation.
9
+ */
10
+ interface SyntheticVideoConfig {
11
+ /** Video width in pixels. Default: 640 */
12
+ width?: number;
13
+ /** Video height in pixels. Default: 480 */
14
+ height?: number;
15
+ /** Frames per second. Default: 30 */
16
+ fps?: number;
17
+ /** Background color. Default: '#1a1a2e' */
18
+ backgroundColor?: string;
19
+ /** Foreground/animation color. Default: '#4361ee' */
20
+ foregroundColor?: string;
21
+ /** Label to display on video. Default: 'Mock Video' */
22
+ label?: string;
23
+ /** Animation type. Default: 'wave' */
24
+ animation?: "wave" | "pulse" | "bars" | "avatar" | "none";
25
+ }
26
+ /**
27
+ * Configuration for synthetic audio generation.
28
+ */
29
+ interface SyntheticAudioConfig {
30
+ /** Base frequency in Hz. Default: 440 */
31
+ frequency?: number;
32
+ /** Volume (0-1). Default: 0.1 */
33
+ volume?: number;
34
+ /** Waveform type. Default: 'sine' */
35
+ waveType?: OscillatorType;
36
+ /** Whether to add variation. Default: true */
37
+ addVariation?: boolean;
38
+ /** Enable audio (false = silent track). Default: false */
39
+ enabled?: boolean;
40
+ }
41
+ /**
42
+ * Creates a synthetic video MediaStreamTrack using canvas.
43
+ *
44
+ * @param config - Video configuration options.
45
+ * @returns Object with track and cleanup function.
46
+ *
47
+ * @example
48
+ * ```typescript
49
+ * const { track, cleanup } = createSyntheticVideoTrack({
50
+ * width: 1280,
51
+ * height: 720,
52
+ * animation: 'avatar',
53
+ * label: 'Agent Camera',
54
+ * });
55
+ *
56
+ * videoElement.srcObject = new MediaStream([track]);
57
+ *
58
+ * // When done:
59
+ * cleanup();
60
+ * ```
61
+ */
62
+ declare function createSyntheticVideoTrack(config?: SyntheticVideoConfig): {
63
+ track: MediaStreamTrack;
64
+ stream: MediaStream;
65
+ cleanup: () => void;
66
+ };
67
+ /**
68
+ * Creates a synthetic audio MediaStreamTrack using Web Audio API.
69
+ *
70
+ * @param config - Audio configuration options.
71
+ * @returns Object with track and cleanup function.
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * const { track, cleanup } = createSyntheticAudioTrack({
76
+ * frequency: 440,
77
+ * volume: 0.1,
78
+ * enabled: true, // Set to false for silent track
79
+ * });
80
+ *
81
+ * audioElement.srcObject = new MediaStream([track]);
82
+ *
83
+ * // When done:
84
+ * cleanup();
85
+ * ```
86
+ */
87
+ declare function createSyntheticAudioTrack(config?: SyntheticAudioConfig): {
88
+ track: MediaStreamTrack;
89
+ stream: MediaStream;
90
+ cleanup: () => void;
91
+ setVolume: (volume: number) => void;
92
+ setEnabled: (enabled: boolean) => void;
93
+ };
94
+ /**
95
+ * Creates a complete mock media setup with both video and audio.
96
+ *
97
+ * @param videoConfig - Video configuration.
98
+ * @param audioConfig - Audio configuration.
99
+ * @returns Combined media setup.
100
+ */
101
+ declare function createSyntheticMedia(videoConfig?: SyntheticVideoConfig, audioConfig?: SyntheticAudioConfig): {
102
+ videoTrack: MediaStreamTrack;
103
+ audioTrack: MediaStreamTrack;
104
+ combinedStream: MediaStream;
105
+ cleanup: () => void;
106
+ setAudioVolume: (volume: number) => void;
107
+ setAudioEnabled: (enabled: boolean) => void;
108
+ };
109
+ /**
110
+ * Preset configurations for common scenarios.
111
+ */
112
+ declare const SYNTHETIC_MEDIA_PRESETS: {
113
+ /** Local user camera */
114
+ readonly localCamera: {
115
+ readonly video: {
116
+ readonly width: 640;
117
+ readonly height: 480;
118
+ readonly animation: "avatar";
119
+ readonly label: "You";
120
+ readonly foregroundColor: "#4361ee";
121
+ };
122
+ readonly audio: {
123
+ readonly enabled: false;
124
+ };
125
+ };
126
+ /** Remote agent camera */
127
+ readonly agentCamera: {
128
+ readonly video: {
129
+ readonly width: 640;
130
+ readonly height: 480;
131
+ readonly animation: "avatar";
132
+ readonly label: "AI Agent";
133
+ readonly foregroundColor: "#22c55e";
134
+ readonly backgroundColor: "#0f172a";
135
+ };
136
+ readonly audio: {
137
+ readonly enabled: false;
138
+ readonly frequency: 300;
139
+ };
140
+ };
141
+ /** Screen share simulation */
142
+ readonly screenShare: {
143
+ readonly video: {
144
+ readonly width: 1920;
145
+ readonly height: 1080;
146
+ readonly animation: "bars";
147
+ readonly label: "Screen Share";
148
+ readonly backgroundColor: "#0a0a0a";
149
+ readonly foregroundColor: "#f59e0b";
150
+ };
151
+ readonly audio: {
152
+ readonly enabled: false;
153
+ };
154
+ };
155
+ /** Voice-only call */
156
+ readonly voiceOnly: {
157
+ readonly video: {
158
+ readonly width: 320;
159
+ readonly height: 240;
160
+ readonly animation: "wave";
161
+ readonly label: "Voice Call";
162
+ };
163
+ readonly audio: {
164
+ readonly enabled: false;
165
+ readonly volume: 0.05;
166
+ };
167
+ };
168
+ };
169
+ /**
170
+ * Creates synthetic media from a preset.
171
+ */
172
+ declare function createSyntheticMediaFromPreset(preset: keyof typeof SYNTHETIC_MEDIA_PRESETS): ReturnType<typeof createSyntheticMedia>;
173
+
174
+ export { SYNTHETIC_MEDIA_PRESETS, type SyntheticAudioConfig, type SyntheticVideoConfig, createSyntheticAudioTrack, createSyntheticMedia, createSyntheticMediaFromPreset, createSyntheticVideoTrack };