@tiledev/sdk-apptile-live-selling 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/dist/attribution.d.ts +2 -16
  2. package/dist/attribution.d.ts.map +1 -1
  3. package/dist/attribution.js +4 -10
  4. package/dist/attribution.js.map +1 -1
  5. package/dist/auctions.d.ts.map +1 -1
  6. package/dist/auctions.js +11 -42
  7. package/dist/auctions.js.map +1 -1
  8. package/dist/cartAttributes.d.ts +0 -10
  9. package/dist/cartAttributes.d.ts.map +1 -1
  10. package/dist/cartAttributes.js +1 -20
  11. package/dist/cartAttributes.js.map +1 -1
  12. package/dist/client.d.ts +2 -51
  13. package/dist/client.d.ts.map +1 -1
  14. package/dist/client.js +23 -123
  15. package/dist/client.js.map +1 -1
  16. package/dist/clips.d.ts +1 -12
  17. package/dist/clips.d.ts.map +1 -1
  18. package/dist/clips.js +6 -114
  19. package/dist/clips.js.map +1 -1
  20. package/dist/commentLinks.d.ts +0 -29
  21. package/dist/commentLinks.d.ts.map +1 -1
  22. package/dist/commentLinks.js.map +1 -1
  23. package/dist/engine.native.d.ts.map +1 -1
  24. package/dist/engine.native.js +845 -17
  25. package/dist/engine.native.js.map +1 -1
  26. package/dist/index.d.ts +4 -48
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +3 -240
  29. package/dist/index.js.map +1 -1
  30. package/dist/polls.d.ts.map +1 -1
  31. package/dist/polls.js +0 -3
  32. package/dist/polls.js.map +1 -1
  33. package/dist/react/LiveSellingProvider.d.ts +1 -54
  34. package/dist/react/LiveSellingProvider.d.ts.map +1 -1
  35. package/dist/react/LiveSellingProvider.js +3 -60
  36. package/dist/react/LiveSellingProvider.js.map +1 -1
  37. package/dist/react/LiveVideoTarget.d.ts.map +1 -1
  38. package/dist/react/LiveVideoTarget.js +3 -41
  39. package/dist/react/LiveVideoTarget.js.map +1 -1
  40. package/dist/react/index.d.ts +3 -30
  41. package/dist/react/index.d.ts.map +1 -1
  42. package/dist/react/index.js +1 -79
  43. package/dist/react/index.js.map +1 -1
  44. package/dist/react/index.web.d.ts +32 -36
  45. package/dist/react/index.web.d.ts.map +1 -1
  46. package/dist/react/index.web.js +122 -102
  47. package/dist/react/index.web.js.map +1 -1
  48. package/dist/react/useAuctionBidGate.d.ts +6 -62
  49. package/dist/react/useAuctionBidGate.d.ts.map +1 -1
  50. package/dist/react/useAuctionBidGate.js +27 -228
  51. package/dist/react/useAuctionBidGate.js.map +1 -1
  52. package/dist/react/useAuctionWins.d.ts +4 -14
  53. package/dist/react/useAuctionWins.d.ts.map +1 -1
  54. package/dist/react/useAuctionWins.js +5 -16
  55. package/dist/react/useAuctionWins.js.map +1 -1
  56. package/dist/react/useClips.d.ts +1 -7
  57. package/dist/react/useClips.d.ts.map +1 -1
  58. package/dist/react/useClips.js +7 -20
  59. package/dist/react/useClips.js.map +1 -1
  60. package/dist/react/useLiveSession.d.ts +3 -15
  61. package/dist/react/useLiveSession.d.ts.map +1 -1
  62. package/dist/react/useLiveSession.js +199 -612
  63. package/dist/react/useLiveSession.js.map +1 -1
  64. package/dist/react/useLiveStreams.d.ts.map +1 -1
  65. package/dist/react/useLiveStreams.js +2 -6
  66. package/dist/react/useLiveStreams.js.map +1 -1
  67. package/dist/react/useOngoingLive.d.ts +0 -1
  68. package/dist/react/useOngoingLive.d.ts.map +1 -1
  69. package/dist/react/useOngoingLive.js +1 -7
  70. package/dist/react/useOngoingLive.js.map +1 -1
  71. package/dist/react/useReplays.d.ts +0 -12
  72. package/dist/react/useReplays.d.ts.map +1 -1
  73. package/dist/react/useReplays.js +24 -56
  74. package/dist/react/useReplays.js.map +1 -1
  75. package/dist/react/useStreamInfo.d.ts +2 -13
  76. package/dist/react/useStreamInfo.d.ts.map +1 -1
  77. package/dist/react/useStreamInfo.js +8 -36
  78. package/dist/react/useStreamInfo.js.map +1 -1
  79. package/dist/replays.d.ts +0 -14
  80. package/dist/replays.d.ts.map +1 -1
  81. package/dist/replays.js +22 -68
  82. package/dist/replays.js.map +1 -1
  83. package/dist/session.d.ts +6 -39
  84. package/dist/session.d.ts.map +1 -1
  85. package/dist/session.js +22 -209
  86. package/dist/session.js.map +1 -1
  87. package/dist/sessionTypes.d.ts +18 -217
  88. package/dist/sessionTypes.d.ts.map +1 -1
  89. package/dist/sessionTypes.js +1 -2
  90. package/dist/sessionTypes.js.map +1 -1
  91. package/dist/streams.d.ts +1 -27
  92. package/dist/streams.d.ts.map +1 -1
  93. package/dist/streams.js +21 -84
  94. package/dist/streams.js.map +1 -1
  95. package/dist/types.d.ts +10 -288
  96. package/dist/types.d.ts.map +1 -1
  97. package/dist/types.js +1 -2
  98. package/dist/types.js.map +1 -1
  99. package/dist/wire.d.ts +0 -31
  100. package/dist/wire.d.ts.map +1 -1
  101. package/dist/wire.js +0 -25
  102. package/dist/wire.js.map +1 -1
  103. package/dist/zego.d.ts +1 -3
  104. package/dist/zego.d.ts.map +1 -1
  105. package/dist/zego.js +1 -1
  106. package/package.json +1 -1
  107. package/dist/auctionComments.d.ts +0 -25
  108. package/dist/auctionComments.d.ts.map +0 -1
  109. package/dist/auctionComments.js +0 -28
  110. package/dist/auctionComments.js.map +0 -1
  111. package/dist/auctionRules.d.ts +0 -77
  112. package/dist/auctionRules.d.ts.map +0 -1
  113. package/dist/auctionRules.js +0 -107
  114. package/dist/auctionRules.js.map +0 -1
  115. package/dist/cartExtension.d.ts +0 -39
  116. package/dist/cartExtension.d.ts.map +0 -1
  117. package/dist/cartExtension.js +0 -51
  118. package/dist/cartExtension.js.map +0 -1
  119. package/dist/checkoutRefused.d.ts +0 -9
  120. package/dist/checkoutRefused.d.ts.map +0 -1
  121. package/dist/checkoutRefused.js +0 -16
  122. package/dist/checkoutRefused.js.map +0 -1
  123. package/dist/clipsPage.d.ts +0 -29
  124. package/dist/clipsPage.d.ts.map +0 -1
  125. package/dist/clipsPage.js +0 -49
  126. package/dist/clipsPage.js.map +0 -1
  127. package/dist/commentHistory.d.ts +0 -70
  128. package/dist/commentHistory.d.ts.map +0 -1
  129. package/dist/commentHistory.js +0 -133
  130. package/dist/commentHistory.js.map +0 -1
  131. package/dist/commentLinkCards.d.ts +0 -11
  132. package/dist/commentLinkCards.d.ts.map +0 -1
  133. package/dist/commentLinkCards.js +0 -70
  134. package/dist/commentLinkCards.js.map +0 -1
  135. package/dist/giveawayPrize.d.ts +0 -13
  136. package/dist/giveawayPrize.d.ts.map +0 -1
  137. package/dist/giveawayPrize.js +0 -18
  138. package/dist/giveawayPrize.js.map +0 -1
  139. package/dist/giveawayPrizeLines.d.ts +0 -120
  140. package/dist/giveawayPrizeLines.d.ts.map +0 -1
  141. package/dist/giveawayPrizeLines.js +0 -97
  142. package/dist/giveawayPrizeLines.js.map +0 -1
  143. package/dist/giveawayPrizes.d.ts +0 -20
  144. package/dist/giveawayPrizes.d.ts.map +0 -1
  145. package/dist/giveawayPrizes.js +0 -50
  146. package/dist/giveawayPrizes.js.map +0 -1
  147. package/dist/giveawayRoster.d.ts +0 -53
  148. package/dist/giveawayRoster.d.ts.map +0 -1
  149. package/dist/giveawayRoster.js +0 -93
  150. package/dist/giveawayRoster.js.map +0 -1
  151. package/dist/heldComments.d.ts +0 -40
  152. package/dist/heldComments.d.ts.map +0 -1
  153. package/dist/heldComments.js +0 -75
  154. package/dist/heldComments.js.map +0 -1
  155. package/dist/hiddenShows.d.ts +0 -44
  156. package/dist/hiddenShows.d.ts.map +0 -1
  157. package/dist/hiddenShows.js +0 -53
  158. package/dist/hiddenShows.js.map +0 -1
  159. package/dist/linkLots.d.ts +0 -64
  160. package/dist/linkLots.d.ts.map +0 -1
  161. package/dist/linkLots.js +0 -84
  162. package/dist/linkLots.js.map +0 -1
  163. package/dist/liveHaptics.d.ts +0 -7
  164. package/dist/liveHaptics.d.ts.map +0 -1
  165. package/dist/liveHaptics.js +0 -11
  166. package/dist/liveHaptics.js.map +0 -1
  167. package/dist/liveHaptics.native.d.ts +0 -7
  168. package/dist/liveHaptics.native.d.ts.map +0 -1
  169. package/dist/liveHaptics.native.js +0 -12
  170. package/dist/liveHaptics.native.js.map +0 -1
  171. package/dist/livePages.d.ts +0 -176
  172. package/dist/livePages.d.ts.map +0 -1
  173. package/dist/livePages.js +0 -216
  174. package/dist/livePages.js.map +0 -1
  175. package/dist/liveRoom.d.ts +0 -21
  176. package/dist/liveRoom.d.ts.map +0 -1
  177. package/dist/liveRoom.js +0 -28
  178. package/dist/liveRoom.js.map +0 -1
  179. package/dist/liveShow.d.ts +0 -65
  180. package/dist/liveShow.d.ts.map +0 -1
  181. package/dist/liveShow.js +0 -65
  182. package/dist/liveShow.js.map +0 -1
  183. package/dist/missedPolls.d.ts +0 -27
  184. package/dist/missedPolls.d.ts.map +0 -1
  185. package/dist/missedPolls.js +0 -16
  186. package/dist/missedPolls.js.map +0 -1
  187. package/dist/pageOptions.d.ts +0 -149
  188. package/dist/pageOptions.d.ts.map +0 -1
  189. package/dist/pageOptions.js +0 -123
  190. package/dist/pageOptions.js.map +0 -1
  191. package/dist/pageTypes.d.ts +0 -185
  192. package/dist/pageTypes.d.ts.map +0 -1
  193. package/dist/pageTypes.js +0 -3
  194. package/dist/pageTypes.js.map +0 -1
  195. package/dist/phoneTaps.d.ts +0 -25
  196. package/dist/phoneTaps.d.ts.map +0 -1
  197. package/dist/phoneTaps.js +0 -47
  198. package/dist/phoneTaps.js.map +0 -1
  199. package/dist/pipWindow.d.ts +0 -85
  200. package/dist/pipWindow.d.ts.map +0 -1
  201. package/dist/pipWindow.js +0 -88
  202. package/dist/pipWindow.js.map +0 -1
  203. package/dist/react/clocks.d.ts +0 -29
  204. package/dist/react/clocks.d.ts.map +0 -1
  205. package/dist/react/clocks.js +0 -124
  206. package/dist/react/clocks.js.map +0 -1
  207. package/dist/react/navigation.d.ts +0 -13
  208. package/dist/react/navigation.d.ts.map +0 -1
  209. package/dist/react/navigation.js +0 -7
  210. package/dist/react/navigation.js.map +0 -1
  211. package/dist/react/platformSession.d.ts +0 -16
  212. package/dist/react/platformSession.d.ts.map +0 -1
  213. package/dist/react/platformSession.js +0 -28
  214. package/dist/react/platformSession.js.map +0 -1
  215. package/dist/react/platformSession.web.d.ts +0 -35
  216. package/dist/react/platformSession.web.d.ts.map +0 -1
  217. package/dist/react/platformSession.web.js +0 -148
  218. package/dist/react/platformSession.web.js.map +0 -1
  219. package/dist/react/replayPlayer.d.ts +0 -83
  220. package/dist/react/replayPlayer.d.ts.map +0 -1
  221. package/dist/react/replayPlayer.js +0 -315
  222. package/dist/react/replayPlayer.js.map +0 -1
  223. package/dist/react/share.d.ts +0 -22
  224. package/dist/react/share.d.ts.map +0 -1
  225. package/dist/react/share.js +0 -45
  226. package/dist/react/share.js.map +0 -1
  227. package/dist/react/shopifyProviders.d.ts +0 -82
  228. package/dist/react/shopifyProviders.d.ts.map +0 -1
  229. package/dist/react/shopifyProviders.js +0 -113
  230. package/dist/react/shopifyProviders.js.map +0 -1
  231. package/dist/react/showPages.d.ts +0 -106
  232. package/dist/react/showPages.d.ts.map +0 -1
  233. package/dist/react/showPages.js +0 -166
  234. package/dist/react/showPages.js.map +0 -1
  235. package/dist/react/showPagesOnDevice.d.ts +0 -18
  236. package/dist/react/showPagesOnDevice.d.ts.map +0 -1
  237. package/dist/react/showPagesOnDevice.js +0 -31
  238. package/dist/react/showPagesOnDevice.js.map +0 -1
  239. package/dist/react/startSignIn.d.ts +0 -3
  240. package/dist/react/startSignIn.d.ts.map +0 -1
  241. package/dist/react/startSignIn.js +0 -19
  242. package/dist/react/startSignIn.js.map +0 -1
  243. package/dist/react/systemPictureInPicture.d.ts +0 -34
  244. package/dist/react/systemPictureInPicture.d.ts.map +0 -1
  245. package/dist/react/systemPictureInPicture.js +0 -93
  246. package/dist/react/systemPictureInPicture.js.map +0 -1
  247. package/dist/react/useAccountName.d.ts +0 -8
  248. package/dist/react/useAccountName.d.ts.map +0 -1
  249. package/dist/react/useAccountName.js +0 -49
  250. package/dist/react/useAccountName.js.map +0 -1
  251. package/dist/react/useClipsPage.d.ts +0 -47
  252. package/dist/react/useClipsPage.d.ts.map +0 -1
  253. package/dist/react/useClipsPage.js +0 -130
  254. package/dist/react/useClipsPage.js.map +0 -1
  255. package/dist/react/useCommentLinkCards.d.ts +0 -6
  256. package/dist/react/useCommentLinkCards.d.ts.map +0 -1
  257. package/dist/react/useCommentLinkCards.js +0 -67
  258. package/dist/react/useCommentLinkCards.js.map +0 -1
  259. package/dist/react/useFeaturedClip.d.ts +0 -15
  260. package/dist/react/useFeaturedClip.d.ts.map +0 -1
  261. package/dist/react/useFeaturedClip.js +0 -52
  262. package/dist/react/useFeaturedClip.js.map +0 -1
  263. package/dist/react/useGiveawayEntry.d.ts +0 -59
  264. package/dist/react/useGiveawayEntry.d.ts.map +0 -1
  265. package/dist/react/useGiveawayEntry.js +0 -170
  266. package/dist/react/useGiveawayEntry.js.map +0 -1
  267. package/dist/react/useGiveawayPrize.d.ts +0 -12
  268. package/dist/react/useGiveawayPrize.d.ts.map +0 -1
  269. package/dist/react/useGiveawayPrize.js +0 -53
  270. package/dist/react/useGiveawayPrize.js.map +0 -1
  271. package/dist/react/useGiveawayPrizes.d.ts +0 -4
  272. package/dist/react/useGiveawayPrizes.d.ts.map +0 -1
  273. package/dist/react/useGiveawayPrizes.js +0 -58
  274. package/dist/react/useGiveawayPrizes.js.map +0 -1
  275. package/dist/react/useHiddenShows.d.ts +0 -10
  276. package/dist/react/useHiddenShows.d.ts.map +0 -1
  277. package/dist/react/useHiddenShows.js +0 -30
  278. package/dist/react/useHiddenShows.js.map +0 -1
  279. package/dist/react/useKeepScreenAwake.d.ts +0 -2
  280. package/dist/react/useKeepScreenAwake.d.ts.map +0 -1
  281. package/dist/react/useKeepScreenAwake.js +0 -34
  282. package/dist/react/useKeepScreenAwake.js.map +0 -1
  283. package/dist/react/useLiveAuction.d.ts +0 -106
  284. package/dist/react/useLiveAuction.d.ts.map +0 -1
  285. package/dist/react/useLiveAuction.js +0 -255
  286. package/dist/react/useLiveAuction.js.map +0 -1
  287. package/dist/react/useLiveChat.d.ts +0 -110
  288. package/dist/react/useLiveChat.d.ts.map +0 -1
  289. package/dist/react/useLiveChat.js +0 -230
  290. package/dist/react/useLiveChat.js.map +0 -1
  291. package/dist/react/useLiveGiveawaysAndPolls.d.ts +0 -95
  292. package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +0 -1
  293. package/dist/react/useLiveGiveawaysAndPolls.js +0 -225
  294. package/dist/react/useLiveGiveawaysAndPolls.js.map +0 -1
  295. package/dist/react/useLivePage.d.ts +0 -136
  296. package/dist/react/useLivePage.d.ts.map +0 -1
  297. package/dist/react/useLivePage.js +0 -319
  298. package/dist/react/useLivePage.js.map +0 -1
  299. package/dist/react/useLiveShop.d.ts +0 -97
  300. package/dist/react/useLiveShop.d.ts.map +0 -1
  301. package/dist/react/useLiveShop.js +0 -197
  302. package/dist/react/useLiveShop.js.map +0 -1
  303. package/dist/react/useLiveShow.d.ts +0 -3
  304. package/dist/react/useLiveShow.d.ts.map +0 -1
  305. package/dist/react/useLiveShow.js +0 -21
  306. package/dist/react/useLiveShow.js.map +0 -1
  307. package/dist/react/useMySilentAuctionBids.d.ts +0 -29
  308. package/dist/react/useMySilentAuctionBids.d.ts.map +0 -1
  309. package/dist/react/useMySilentAuctionBids.js +0 -157
  310. package/dist/react/useMySilentAuctionBids.js.map +0 -1
  311. package/dist/react/useReplayPage.d.ts +0 -155
  312. package/dist/react/useReplayPage.d.ts.map +0 -1
  313. package/dist/react/useReplayPage.js +0 -580
  314. package/dist/react/useReplayPage.js.map +0 -1
  315. package/dist/react/useSilentAuctionLot.d.ts +0 -44
  316. package/dist/react/useSilentAuctionLot.d.ts.map +0 -1
  317. package/dist/react/useSilentAuctionLot.js +0 -168
  318. package/dist/react/useSilentAuctionLot.js.map +0 -1
  319. package/dist/react/useSilentAuctionLots.d.ts +0 -41
  320. package/dist/react/useSilentAuctionLots.d.ts.map +0 -1
  321. package/dist/react/useSilentAuctionLots.js +0 -64
  322. package/dist/react/useSilentAuctionLots.js.map +0 -1
  323. package/dist/react/useSilentAuctionRounds.d.ts +0 -15
  324. package/dist/react/useSilentAuctionRounds.d.ts.map +0 -1
  325. package/dist/react/useSilentAuctionRounds.js +0 -44
  326. package/dist/react/useSilentAuctionRounds.js.map +0 -1
  327. package/dist/replayPages.d.ts +0 -31
  328. package/dist/replayPages.d.ts.map +0 -1
  329. package/dist/replayPages.js +0 -34
  330. package/dist/replayPages.js.map +0 -1
  331. package/dist/shopifyCommerce.d.ts +0 -204
  332. package/dist/shopifyCommerce.d.ts.map +0 -1
  333. package/dist/shopifyCommerce.js +0 -217
  334. package/dist/shopifyCommerce.js.map +0 -1
  335. package/dist/shopifyIdentity.d.ts +0 -61
  336. package/dist/shopifyIdentity.d.ts.map +0 -1
  337. package/dist/shopifyIdentity.js +0 -61
  338. package/dist/shopifyIdentity.js.map +0 -1
  339. package/dist/shopifyIds.d.ts +0 -9
  340. package/dist/shopifyIds.d.ts.map +0 -1
  341. package/dist/shopifyIds.js +0 -18
  342. package/dist/shopifyIds.js.map +0 -1
  343. package/dist/showCredit.d.ts +0 -89
  344. package/dist/showCredit.d.ts.map +0 -1
  345. package/dist/showCredit.js +0 -120
  346. package/dist/showCredit.js.map +0 -1
  347. package/dist/showLinks.d.ts +0 -24
  348. package/dist/showLinks.d.ts.map +0 -1
  349. package/dist/showLinks.js +0 -23
  350. package/dist/showLinks.js.map +0 -1
  351. package/dist/showLots.d.ts +0 -44
  352. package/dist/showLots.d.ts.map +0 -1
  353. package/dist/showLots.js +0 -70
  354. package/dist/showLots.js.map +0 -1
  355. package/dist/showNames.d.ts +0 -77
  356. package/dist/showNames.d.ts.map +0 -1
  357. package/dist/showNames.js +0 -143
  358. package/dist/showNames.js.map +0 -1
  359. package/dist/showPages.d.ts +0 -56
  360. package/dist/showPages.d.ts.map +0 -1
  361. package/dist/showPages.js +0 -48
  362. package/dist/showPages.js.map +0 -1
  363. package/dist/silentAuctionFeed.d.ts +0 -49
  364. package/dist/silentAuctionFeed.d.ts.map +0 -1
  365. package/dist/silentAuctionFeed.js +0 -242
  366. package/dist/silentAuctionFeed.js.map +0 -1
  367. package/dist/silentAuctionRules.d.ts +0 -253
  368. package/dist/silentAuctionRules.d.ts.map +0 -1
  369. package/dist/silentAuctionRules.js +0 -489
  370. package/dist/silentAuctionRules.js.map +0 -1
  371. package/dist/silentAuctions.d.ts +0 -65
  372. package/dist/silentAuctions.d.ts.map +0 -1
  373. package/dist/silentAuctions.js +0 -272
  374. package/dist/silentAuctions.js.map +0 -1
  375. package/dist/storeData.d.ts +0 -16
  376. package/dist/storeData.d.ts.map +0 -1
  377. package/dist/storeData.js +0 -19
  378. package/dist/storeData.js.map +0 -1
  379. package/dist/ui/BubbleFrame.d.ts +0 -38
  380. package/dist/ui/BubbleFrame.d.ts.map +0 -1
  381. package/dist/ui/BubbleFrame.js +0 -181
  382. package/dist/ui/BubbleFrame.js.map +0 -1
  383. package/dist/ui/LiveBubble.d.ts +0 -43
  384. package/dist/ui/LiveBubble.d.ts.map +0 -1
  385. package/dist/ui/LiveBubble.js +0 -116
  386. package/dist/ui/LiveBubble.js.map +0 -1
  387. package/dist/ui/ReplayBubble.d.ts +0 -23
  388. package/dist/ui/ReplayBubble.d.ts.map +0 -1
  389. package/dist/ui/ReplayBubble.js +0 -71
  390. package/dist/ui/ReplayBubble.js.map +0 -1
  391. package/dist/ui.d.ts +0 -27
  392. package/dist/ui.d.ts.map +0 -1
  393. package/dist/ui.js +0 -34
  394. package/dist/ui.js.map +0 -1
  395. package/dist/unreadRoomMessages.d.ts +0 -26
  396. package/dist/unreadRoomMessages.d.ts.map +0 -1
  397. package/dist/unreadRoomMessages.js +0 -62
  398. package/dist/unreadRoomMessages.js.map +0 -1
  399. package/dist/viewerRules.d.ts +0 -38
  400. package/dist/viewerRules.d.ts.map +0 -1
  401. package/dist/viewerRules.js +0 -46
  402. package/dist/viewerRules.js.map +0 -1
  403. package/dist/winsAttribution.d.ts +0 -22
  404. package/dist/winsAttribution.d.ts.map +0 -1
  405. package/dist/winsAttribution.js +0 -49
  406. package/dist/winsAttribution.js.map +0 -1
  407. package/dist/zegoEngine.d.ts +0 -173
  408. package/dist/zegoEngine.d.ts.map +0 -1
  409. package/dist/zegoEngine.js +0 -1069
  410. package/dist/zegoEngine.js.map +0 -1
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shareProduct = exports.useLiveShop = exports.useLiveChat = exports.RESTRICTIONS_REFRESH_MS = exports.useLivePage = exports.useKeepScreenAwake = exports.useAutoPictureInPicture = exports.useReplayPlayer = exports.ReplayPlayerProvider = exports.ShopifyLiveSessionProvider = exports.ShopifyLiveSellingProvider = exports.useLivePageOptions = exports.useAuctionWins = exports.useAuctionBidGate = exports.SHEET_HANDOFF_MS = exports.LiveVideoTarget = exports.NativeVideoView = exports.isNativeVideoSupported = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.nativeViewTag = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.useShowClock = exports.useAuctionCountdown = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useGiveawayPrizes = exports.forgetFeaturedClips = exports.useFeaturedClip = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
4
- exports.useClipsPage = exports.useAccountName = exports.useReplayPage = exports.useLiveGiveawaysAndPolls = exports.useLiveAuction = exports.SHARE_AGAIN_AFTER_MS = exports.shareAddress = void 0;
5
- exports.useItemsYouWonPage = useItemsYouWonPage;
6
- exports.useLiveHubPage = useLiveHubPage;
7
- exports.useLiveRail = useLiveRail;
3
+ exports.SHEET_HANDOFF_MS = exports.NativeVideoView = exports.isNativeVideoSupported = exports.nativeViewTag = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
4
+ exports.LiveSessionProvider = LiveSessionProvider;
5
+ exports.useLiveSession = useLiveSession;
6
+ exports.LiveVideoTarget = LiveVideoTarget;
7
+ exports.useAuctionBidGate = useAuctionBidGate;
8
+ exports.useAuctionWins = useAuctionWins;
8
9
  /**
9
10
  * The React layer on the **web** — real where a browser can honestly do the work, inert where it
10
11
  * cannot. Metro resolves this file in place of `./index` for web, and TypeScript reads the native
@@ -27,18 +28,15 @@ exports.useLiveRail = useLiveRail;
27
28
  * The **client** is real: `liveSelling` and its HTTP calls work from a browser, so `useLiveSelling()`,
28
29
  * the stream/replay/clip read hooks and the polled record all behave as they do on device.
29
30
  *
30
- * The stand-ins themselves (the idle session, the `View`, the bid gate that never blocks, the empty
31
- * wins) live in `platformSession.web.ts` since 0.14.0, which the page hooks and the `/ui` bubbles read
32
- * the session from, so they run here too; this file re-exports them.
31
+ * `createElement` rather than JSX, like the rest of the package, so this stays a plain `.ts`.
33
32
  */
34
- const platformSession_web_1 = require("./platformSession.web");
35
- const showPages_1 = require("./showPages");
33
+ const react_1 = require("react");
34
+ const react_native_1 = require("react-native");
35
+ const sessionTypes_1 = require("../sessionTypes");
36
36
  // Real on the web: the gateway is plain HTTP, and the engine it configures is the no-op build.
37
37
  var LiveSellingProvider_1 = require("./LiveSellingProvider");
38
38
  Object.defineProperty(exports, "LiveSellingProvider", { enumerable: true, get: function () { return LiveSellingProvider_1.LiveSellingProvider; } });
39
39
  Object.defineProperty(exports, "useLiveSelling", { enumerable: true, get: function () { return LiveSellingProvider_1.useLiveSelling; } });
40
- var useHiddenShows_1 = require("./useHiddenShows");
41
- Object.defineProperty(exports, "useHiddenShows", { enumerable: true, get: function () { return useHiddenShows_1.useHiddenShows; } });
42
40
  var useOngoingLive_1 = require("./useOngoingLive");
43
41
  Object.defineProperty(exports, "useOngoingLive", { enumerable: true, get: function () { return useOngoingLive_1.useOngoingLive; } });
44
42
  var ongoingLiveStore_1 = require("../ongoingLiveStore");
@@ -51,105 +49,127 @@ var useReplays_1 = require("./useReplays");
51
49
  Object.defineProperty(exports, "useReplays", { enumerable: true, get: function () { return useReplays_1.useReplays; } });
52
50
  var useClips_1 = require("./useClips");
53
51
  Object.defineProperty(exports, "useClips", { enumerable: true, get: function () { return useClips_1.useClips; } });
54
- var useFeaturedClip_1 = require("./useFeaturedClip");
55
- Object.defineProperty(exports, "useFeaturedClip", { enumerable: true, get: function () { return useFeaturedClip_1.useFeaturedClip; } });
56
- Object.defineProperty(exports, "forgetFeaturedClips", { enumerable: true, get: function () { return useFeaturedClip_1.forgetFeaturedClips; } });
57
- var useGiveawayPrizes_1 = require("./useGiveawayPrizes");
58
- Object.defineProperty(exports, "useGiveawayPrizes", { enumerable: true, get: function () { return useGiveawayPrizes_1.useGiveawayPrizes; } });
59
52
  var useStreamInfo_1 = require("./useStreamInfo");
60
53
  Object.defineProperty(exports, "useStreamInfo", { enumerable: true, get: function () { return useStreamInfo_1.useStreamInfo; } });
61
54
  Object.defineProperty(exports, "refreshStreamRecords", { enumerable: true, get: function () { return useStreamInfo_1.refreshStreamRecords; } });
62
55
  Object.defineProperty(exports, "refreshStreamRecordsIfStale", { enumerable: true, get: function () { return useStreamInfo_1.refreshStreamRecordsIfStale; } });
63
- // Real on the web: plain React timers, counting to a number the caller passes.
64
- var clocks_1 = require("./clocks");
65
- Object.defineProperty(exports, "useAuctionCountdown", { enumerable: true, get: function () { return clocks_1.useAuctionCountdown; } });
66
- Object.defineProperty(exports, "useShowClock", { enumerable: true, get: function () { return clocks_1.useShowClock; } });
67
- // Real on the web: they read only the session a screen passes in (here the idle one, so no giveaway is
68
- // ever open) and the adapter's catalogue.
69
- var useGiveawayEntry_1 = require("./useGiveawayEntry");
70
- Object.defineProperty(exports, "useGiveawayEntry", { enumerable: true, get: function () { return useGiveawayEntry_1.useGiveawayEntry; } });
71
- var useGiveawayPrize_1 = require("./useGiveawayPrize");
72
- Object.defineProperty(exports, "useGiveawayPrize", { enumerable: true, get: function () { return useGiveawayPrize_1.useGiveawayPrize; } });
73
- var useCommentLinkCards_1 = require("./useCommentLinkCards");
74
- Object.defineProperty(exports, "useCommentLinkCards", { enumerable: true, get: function () { return useCommentLinkCards_1.useCommentLinkCards; } });
75
- // Silent auctions are plain requests, so the same on the web.
76
- var useSilentAuctionLots_1 = require("./useSilentAuctionLots");
77
- Object.defineProperty(exports, "useSilentAuctionLots", { enumerable: true, get: function () { return useSilentAuctionLots_1.useSilentAuctionLots; } });
78
- var useSilentAuctionLot_1 = require("./useSilentAuctionLot");
79
- Object.defineProperty(exports, "useSilentAuctionLot", { enumerable: true, get: function () { return useSilentAuctionLot_1.useSilentAuctionLot; } });
80
- var useMySilentAuctionBids_1 = require("./useMySilentAuctionBids");
81
- Object.defineProperty(exports, "useMySilentAuctionBids", { enumerable: true, get: function () { return useMySilentAuctionBids_1.useMySilentAuctionBids; } });
82
- var useSilentAuctionRounds_1 = require("./useSilentAuctionRounds");
83
- Object.defineProperty(exports, "useSilentAuctionRounds", { enumerable: true, get: function () { return useSilentAuctionRounds_1.useSilentAuctionRounds; } });
84
56
  // Already returns null off device — react-native-web *throws* from `findNodeHandle`, which this
85
57
  // wraps, so the honest answer costs nothing here.
86
58
  var nativeViewTag_1 = require("../nativeViewTag");
87
59
  Object.defineProperty(exports, "nativeViewTag", { enumerable: true, get: function () { return nativeViewTag_1.nativeViewTag; } });
88
- // Real on the web over the idle session and the empty wins below (0.11.0).
89
- var showPages_2 = require("./showPages");
90
- Object.defineProperty(exports, "useItemsYouWonPageFor", { enumerable: true, get: function () { return showPages_2.useItemsYouWonPageFor; } });
91
- Object.defineProperty(exports, "useLiveHubPageFor", { enumerable: true, get: function () { return showPages_2.useLiveHubPageFor; } });
92
- Object.defineProperty(exports, "useLiveRailFor", { enumerable: true, get: function () { return showPages_2.useLiveRailFor; } });
93
- Object.defineProperty(exports, "SHOWS_PAGE_SIZE", { enumerable: true, get: function () { return showPages_2.SHOWS_PAGE_SIZE; } });
94
- // The idle session, the video's `View`, the bid gate that never blocks and the empty wins.
95
- var platformSession_web_2 = require("./platformSession.web");
96
- Object.defineProperty(exports, "LiveSessionProvider", { enumerable: true, get: function () { return platformSession_web_2.LiveSessionProvider; } });
97
- Object.defineProperty(exports, "useLiveSession", { enumerable: true, get: function () { return platformSession_web_2.useLiveSession; } });
98
- Object.defineProperty(exports, "useLiveShow", { enumerable: true, get: function () { return platformSession_web_2.useLiveShow; } });
99
- Object.defineProperty(exports, "isNativeVideoSupported", { enumerable: true, get: function () { return platformSession_web_2.isNativeVideoSupported; } });
100
- Object.defineProperty(exports, "NativeVideoView", { enumerable: true, get: function () { return platformSession_web_2.NativeVideoView; } });
101
- Object.defineProperty(exports, "LiveVideoTarget", { enumerable: true, get: function () { return platformSession_web_2.LiveVideoTarget; } });
102
- Object.defineProperty(exports, "SHEET_HANDOFF_MS", { enumerable: true, get: function () { return platformSession_web_2.SHEET_HANDOFF_MS; } });
103
- Object.defineProperty(exports, "useAuctionBidGate", { enumerable: true, get: function () { return platformSession_web_2.useAuctionBidGate; } });
104
- Object.defineProperty(exports, "useAuctionWins", { enumerable: true, get: function () { return platformSession_web_2.useAuctionWins; } });
105
- // The Live and Replay pages (0.14.0): the same modules as on a device, which read the session from
106
- // `./platformSession` and so get the idle one above here. The Live screen's tiles draw nothing (its show
107
- // is always `ended`); the Replay screen's recordings and player are real.
108
- var LiveSellingProvider_2 = require("./LiveSellingProvider");
109
- Object.defineProperty(exports, "useLivePageOptions", { enumerable: true, get: function () { return LiveSellingProvider_2.useLivePageOptions; } });
110
- var shopifyProviders_1 = require("./shopifyProviders");
111
- Object.defineProperty(exports, "ShopifyLiveSellingProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSellingProvider; } });
112
- Object.defineProperty(exports, "ShopifyLiveSessionProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSessionProvider; } });
113
- var replayPlayer_1 = require("./replayPlayer");
114
- Object.defineProperty(exports, "ReplayPlayerProvider", { enumerable: true, get: function () { return replayPlayer_1.ReplayPlayerProvider; } });
115
- Object.defineProperty(exports, "useReplayPlayer", { enumerable: true, get: function () { return replayPlayer_1.useReplayPlayer; } });
116
- // The phone's own picture-in-picture window, for any surface that draws a show's video (0.15.2).
117
- var systemPictureInPicture_1 = require("./systemPictureInPicture");
118
- Object.defineProperty(exports, "useAutoPictureInPicture", { enumerable: true, get: function () { return systemPictureInPicture_1.useAutoPictureInPicture; } });
119
- var useKeepScreenAwake_1 = require("./useKeepScreenAwake");
120
- Object.defineProperty(exports, "useKeepScreenAwake", { enumerable: true, get: function () { return useKeepScreenAwake_1.useKeepScreenAwake; } });
121
- var useLivePage_1 = require("./useLivePage");
122
- Object.defineProperty(exports, "useLivePage", { enumerable: true, get: function () { return useLivePage_1.useLivePage; } });
123
- Object.defineProperty(exports, "RESTRICTIONS_REFRESH_MS", { enumerable: true, get: function () { return useLivePage_1.RESTRICTIONS_REFRESH_MS; } });
124
- var useLiveChat_1 = require("./useLiveChat");
125
- Object.defineProperty(exports, "useLiveChat", { enumerable: true, get: function () { return useLiveChat_1.useLiveChat; } });
126
- var useLiveShop_1 = require("./useLiveShop");
127
- Object.defineProperty(exports, "useLiveShop", { enumerable: true, get: function () { return useLiveShop_1.useLiveShop; } });
128
- Object.defineProperty(exports, "shareProduct", { enumerable: true, get: function () { return useLiveShop_1.shareProduct; } });
129
- Object.defineProperty(exports, "shareAddress", { enumerable: true, get: function () { return useLiveShop_1.shareAddress; } });
130
- Object.defineProperty(exports, "SHARE_AGAIN_AFTER_MS", { enumerable: true, get: function () { return useLiveShop_1.SHARE_AGAIN_AFTER_MS; } });
131
- var useLiveAuction_1 = require("./useLiveAuction");
132
- Object.defineProperty(exports, "useLiveAuction", { enumerable: true, get: function () { return useLiveAuction_1.useLiveAuction; } });
133
- var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
134
- Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
135
- var useReplayPage_1 = require("./useReplayPage");
136
- Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
137
- // 0.15.0: the name on the shopper's account, for the name asks; the Clips page.
138
- var useAccountName_1 = require("./useAccountName");
139
- Object.defineProperty(exports, "useAccountName", { enumerable: true, get: function () { return useAccountName_1.useAccountName; } });
140
- var useClipsPage_1 = require("./useClipsPage");
141
- Object.defineProperty(exports, "useClipsPage", { enumerable: true, get: function () { return useClipsPage_1.useClipsPage; } });
142
- // ─── The page models ─────────────────────────────────────────────────────────
143
- /** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
144
- function useItemsYouWonPage(options) {
145
- return (0, showPages_1.useItemsYouWonPageFor)((0, platformSession_web_1.useAuctionWins)(), options);
60
+ // ─── The session ─────────────────────────────────────────────────────────────
61
+ /** Every action, resolved and doing nothing. There is no room to send any of it to. */
62
+ const IDLE_ACTIONS = {
63
+ bindVideoView: () => undefined,
64
+ sendComment: async () => undefined,
65
+ sendReaction: async () => undefined,
66
+ announceAddToCart: async () => undefined,
67
+ voteInPoll: async () => undefined,
68
+ chooseViewerName: async () => null,
69
+ addToCart: async () => false,
70
+ joinAsGuest: () => Promise.reject(new Error('Co-hosting needs a device build.')),
71
+ leaveGuest: async () => undefined,
72
+ setGuestMicMuted: async () => undefined,
73
+ setGuestCameraOff: async () => undefined,
74
+ flipGuestCamera: async () => undefined,
75
+ bindGuestPreview: () => undefined,
76
+ bindGuestHostView: () => undefined,
77
+ setMuted: () => undefined,
78
+ setOutputMuted: () => undefined,
79
+ setPipHandover: () => undefined,
80
+ holdStream: () => undefined,
81
+ releaseStream: () => undefined,
82
+ enterPip: () => undefined,
83
+ exitPip: () => undefined,
84
+ placeBid: async () => undefined,
85
+ enterGiveaway: async () => undefined,
86
+ dismissAuctionWin: () => undefined,
87
+ dismissGiveawayResult: () => undefined,
88
+ };
89
+ /** A stream that is over: the one state every surface already knows how to draw. */
90
+ const IDLE_SESSION = {
91
+ status: 'ended',
92
+ stream: null,
93
+ viewerCount: 0,
94
+ rawViewerCount: 0,
95
+ reactionStyle: 'single',
96
+ comments: [],
97
+ activeProduct: null,
98
+ products: [],
99
+ sold: [],
100
+ cartAnnouncements: [],
101
+ reactions: [],
102
+ poll: null,
103
+ muted: true,
104
+ videoTag: null,
105
+ elapsedMs: 0,
106
+ pipMode: 'none',
107
+ guest: {
108
+ mode: false,
109
+ status: 'idle',
110
+ slot: null,
111
+ mutedByHost: false,
112
+ cameraOffByHost: false,
113
+ mixerLayout: null,
114
+ },
115
+ viewerName: null,
116
+ auction: sessionTypes_1.IDLE_AUCTION,
117
+ giveaway: sessionTypes_1.IDLE_GIVEAWAY,
118
+ error: null,
119
+ actions: IDLE_ACTIONS,
120
+ };
121
+ const LiveSessionContext = (0, react_1.createContext)(null);
122
+ function LiveSessionProvider({ children }) {
123
+ return (0, react_1.createElement)(LiveSessionContext.Provider, { value: IDLE_SESSION }, children);
146
124
  }
147
- /** The Live tab over the idle session: the recordings are real, the show on air never plays here. */
148
- function useLiveHubPage(options) {
149
- return (0, showPages_1.useLiveHubPageFor)(platformSession_web_1.IDLE_SESSION, options);
125
+ /**
126
+ * The idle session, read without touching the context: a surface rendered outside the provider
127
+ * behaves the same as one inside it, because on the web there is only ever this one session.
128
+ */
129
+ function useLiveSession() {
130
+ return IDLE_SESSION;
131
+ }
132
+ // ─── The video ───────────────────────────────────────────────────────────────
133
+ exports.isNativeVideoSupported = false;
134
+ /**
135
+ * A plain `View`, which is what the native file falls back to on a build without the Zego SDK:
136
+ * callers position this and draw a poster over it, so returning null would collapse the layout the
137
+ * poster depends on.
138
+ */
139
+ exports.NativeVideoView = (0, react_1.forwardRef)(function NativeVideoView(props, _ref) {
140
+ return (0, react_1.createElement)(react_native_1.View, props);
141
+ });
142
+ function LiveVideoTarget({ style, children }) {
143
+ return (0, react_1.createElement)(react_native_1.View, { style: style !== null && style !== void 0 ? style : { flex: 1 } }, children);
144
+ }
145
+ // ─── Auctions ────────────────────────────────────────────────────────────────
146
+ exports.SHEET_HANDOFF_MS = 380;
147
+ /** Never blocks, because there is no bid to gate — `placeBid` above resolves without sending. */
148
+ function useAuctionBidGate(_options) {
149
+ return (0, react_1.useMemo)(() => ({
150
+ blocker: null,
151
+ variantId: null,
152
+ requestBid: () => undefined,
153
+ acceptTerms: () => undefined,
154
+ chooseVariant: () => undefined,
155
+ dismiss: () => undefined,
156
+ refreshUnpaidWins: () => undefined,
157
+ }), []);
150
158
  }
151
- /** A home screen's live rail over the idle session. */
152
- function useLiveRail(options) {
153
- return (0, showPages_1.useLiveRailFor)(platformSession_web_1.IDLE_SESSION, options);
159
+ /**
160
+ * An empty tab rather than a failure. The wins metafield is readable from a browser, but settling one
161
+ * mints a cart and sends the shopper to checkout — not something a preview should be able to start.
162
+ */
163
+ function useAuctionWins(_options) {
164
+ return (0, react_1.useMemo)(() => ({
165
+ rows: [],
166
+ totalBids: 0,
167
+ streamingId: null,
168
+ loading: false,
169
+ checkingOut: false,
170
+ error: null,
171
+ refresh: () => undefined,
172
+ checkout: async () => null,
173
+ }), []);
154
174
  }
155
175
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":";;;;AA8IA,gDAEC;AAGD,wCAEC;AAGD,kCAEC;AA1JD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,+DAAqE;AACrE,2CASqB;AAErB,+FAA+F;AAC/F,6DAK+B;AAJ7B,0HAAA,mBAAmB,OAAA;AACnB,qHAA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AG,GAAG,CAAC;AAEpC,iGAAiG;AACjG,SAAgB,iBAAiB,CAAC,QAAkC;IAClE,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CAAC,CAAC;QACL,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;QAC3B,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;QAC5B,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;QAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;QACxB,iBAAiB,EAAE,GAAG,EAAE,CAAC,SAAS;KACnC,CAAC,EACF,EAAE,CACH,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,cAAc,CAC5B,QAAgC;IAEhC,OAAO,IAAA,eAAO,EACZ,GAAG,EAAE,CAAC,CAAC;QACL,IAAI,EAAE,EAA2B;QACjC,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,IAAI;QACjB,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,KAAK;QAClB,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;QACxB,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI;KAC3B,CAAC,EACF,EAAE,CACH,CAAC;AACJ,CAAC"}
@@ -1,5 +1,3 @@
1
- import { type BidRound } from '../auctionRules';
2
- import type { BidResult } from '../sessionTypes';
3
1
  /**
4
2
  * How long to leave between one panel closing and the next opening.
5
3
  *
@@ -11,25 +9,8 @@ import type { BidResult } from '../sessionTypes';
11
9
  * Long enough to outlast a slide-out, short enough not to read as a pause.
12
10
  */
13
11
  export declare const SHEET_HANDOFF_MS = 380;
14
- /** How long a bid waits for the customer's account to be read before it is dropped (`accountUnknown`). 0.16.0. */
15
- export declare const ACCOUNT_CHECK_LIMIT_MS = 10000;
16
- /**
17
- * What is standing between the viewer and the bid they asked for. `checkingAccount` (0.16.0): the bid
18
- * waits while the account is read ("Checking your account…"); `accountUnknown`: it couldn't be, and the
19
- * bid was dropped ("We couldn't check your account just now").
20
- */
21
- export type BidBlocker = 'signIn' | 'blocked' | 'checkingAccount' | 'accountUnknown' | 'unpaidWins' | 'terms' | 'variant' | null;
22
- /**
23
- * A bid the gate didn't send, and why (0.9.0, `atAmountShown`): the room moved past it (`outbid`), or
24
- * it is over the host's ceiling (`overCap`).
25
- */
26
- export interface BidRefusal {
27
- /** A new number for each refusal, so the same reason twice is shown twice. */
28
- id: number;
29
- reason: 'outbid' | 'overCap';
30
- /** What to tell the shopper: the round's next bid now (`outbid`), or the ceiling (`overCap`). */
31
- amount: number;
32
- }
12
+ /** What is standing between the viewer and the bid they asked for. */
13
+ export type BidBlocker = 'signIn' | 'unpaidWins' | 'terms' | 'variant' | null;
33
14
  export interface AuctionBidGate {
34
15
  blocker: BidBlocker;
35
16
  /** The variant chosen for this round, once asked. */
@@ -50,55 +31,18 @@ export interface AuctionBidGate {
50
31
  * cannot hook navigation focus itself.
51
32
  */
52
33
  refreshUnpaidWins: () => void;
53
- /** The last bid not sent because the room moved past it or it passed the ceiling (`atAmountShown`). 0.9.0. */
54
- refusal: BidRefusal | null;
55
- /** A bid was just handed to `placeBid`: true for `BID_ON_ITS_WAY_MS`, so the bar takes no other. 0.9.0. */
56
- bidOnItsWay: boolean;
57
34
  }
58
- interface GateOptions {
35
+ export interface UseAuctionBidGateOptions {
59
36
  streamingId: string | null;
60
37
  isLoggedIn: boolean;
61
- /** True while a round is open. Closing one forgets the chosen variant, and drops a held bid. */
38
+ /** True while a round is open. Closing one forgets the chosen variant. */
62
39
  biddingOpen: boolean;
63
40
  /** How many variants the lot under the hammer has. 1 or 0 skips the variant step. */
64
41
  variantCount: number;
65
- /** The session's `actions.placeBid`, or a wrapper round it. */
66
42
  placeBid: (options?: {
67
43
  amount?: number;
68
44
  variantId?: string | null;
69
- }) => Promise<BidResult | void>;
70
- /**
71
- * Starts the app's sign-in (0.9.0). With it the gate never stops at `signIn`: it holds the bid and
72
- * calls this, then comes back to the bid once `isLoggedIn`, if bidding on its lot is still open.
73
- * Without it the gate stops at `signIn`, as in 0.8, and the app decides.
74
- */
75
- startSignIn?: () => unknown;
76
- /**
77
- * Signed in, the bidder still loading (a stored sign-in being read, a customer on its way): a bid
78
- * asked for now waits for them, and no sign-in is started. 0.9.0, with `startSignIn`.
79
- */
80
- signInLoading?: boolean;
81
- /**
82
- * The screen is on show, with nothing over it (navigation focus). When it comes back on show and the
83
- * shopper is still signed out (the app's Sign In page closed without a sign-in), a bid waiting for
84
- * the sign-in is dropped. A sign-in that never leaves the screen (a system sheet) keeps it until the
85
- * lot closes. Defaults to true. 0.9.0, with `startSignIn`.
86
- */
87
- screenOnShow?: boolean;
45
+ }) => Promise<void>;
88
46
  }
89
- export type UseAuctionBidGateOptions = GateOptions & ({
90
- /**
91
- * A bid goes out at the amount the shopper saw, or not at all (0.9.0): `requestBid()` holds the
92
- * round's next bid as it is at the tap, and every bid gets a last look at the round as it goes
93
- * (`bidRefusal`). Needs `round`.
94
- */
95
- atAmountShown: true;
96
- /** The round as the shopper sees it: `session.auction`. */
97
- round: BidRound;
98
- } | {
99
- atAmountShown?: false;
100
- round?: BidRound;
101
- });
102
- export declare function useAuctionBidGate(options: UseAuctionBidGateOptions): AuctionBidGate;
103
- export {};
47
+ export declare function useAuctionBidGate({ streamingId, isLoggedIn, biddingOpen, variantCount, placeBid, }: UseAuctionBidGateOptions): AuctionBidGate;
104
48
  //# sourceMappingURL=useAuctionBidGate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAuctionBidGate.d.ts","sourceRoot":"","sources":["../../src/react/useAuctionBidGate.ts"],"names":[],"mappings":"AA8CA,OAAO,EAAiC,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAEpC,kHAAkH;AAClH,eAAO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