@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
package/dist/wire.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"wire.js","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;AAMH,4BAEC;AAGD,kBAIC;AAGD,kBAOC;AAED,oBAEC;AAED,kBAEC;AAGD,kBAEC;AAGD,oBAOC;AAQD,4BAGC;AAGD,8BAOC;AAwJD,0CAMC;AA7ND,SAAgB,QAAQ,CAAC,KAAc;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,4FAA4F;AAC5F,SAAgB,GAAG,CAAC,KAAc;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,IAAI,IAAI,CAAC;IACpD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9E,OAAO,IAAI,CAAC;AACd,CAAC;AAED,4FAA4F;AAC5F,SAAgB,GAAG,CAAC,KAAc;IAChC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5E,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,OAAO,MAAM,CAA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AAQ;QAAE,OAAO,IAAI,CAAC;IACzC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
package/dist/zego.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * The SDK is an **optional** peer loaded with a lazy `require()` — a static import would pull the
5
5
  * native module into every bundle and make `tsc` depend on it being installed. That leaves the import
6
6
  * untyped, so the surface is declared here instead: narrow on purpose, covering only what
7
- * `zegoEngine.ts` calls, and structural so the real module satisfies it without an import.
7
+ * `engine.native.ts` calls, and structural so the real module satisfies it without an import.
8
8
  *
9
9
  * If a call is added there and the SDK's own signature disagrees, this file is where it fails.
10
10
  */
@@ -41,8 +41,6 @@ export interface ZegoEngineInstance {
41
41
  off(event: string, listener?: unknown): void;
42
42
  loginRoom(roomId: string, user: ZegoUserLike, config: unknown): Promise<ZegoRoomResult | undefined>;
43
43
  logoutRoom(roomId: string): Promise<unknown>;
44
- /** Swaps in a fresh token for a room already joined; the answer to `roomTokenWillExpire`. */
45
- renewToken(roomId: string, token: string): Promise<unknown>;
46
44
  startPlayingStream(streamId: string, view: unknown, config: unknown): Promise<unknown>;
47
45
  stopPlayingStream(streamId: string): Promise<unknown>;
48
46
  startPublishingStream(streamId: string, channel: ZegoPublishChannelValue, config: {
@@ -1 +1 @@
1
- {"version":3,"file":"zego.d.ts","sourceRoot":"","sources":["../src/zego.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cA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CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtE,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9F,0FAA0F;IAC1F,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,QAAQ,IAAI,kBAAkB,CAAC;IAC/B,uBAAuB,CAAC,OAAO,EAAE;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,iBAAiB,CAAC;KAC7B,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrB,aAAa,IAAI,IAAI,CAAC;CACvB;AAED;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG;IAC1C,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC"}
package/dist/zego.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * The SDK is an **optional** peer loaded with a lazy `require()` — a static import would pull the
6
6
  * native module into every bundle and make `tsc` depend on it being installed. That leaves the import
7
7
  * untyped, so the surface is declared here instead: narrow on purpose, covering only what
8
- * `zegoEngine.ts` calls, and structural so the real module satisfies it without an import.
8
+ * `engine.native.ts` calls, and structural so the real module satisfies it without an import.
9
9
  *
10
10
  * If a call is added there and the SDK's own signature disagrees, this file is where it fails.
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledev/sdk-apptile-live-selling",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Live selling, auctions and giveaways for React Native — the Apptile live-selling gateway as a typed singleton, a Zego room engine behind a platform boundary, an assembled session state machine, system picture-in-picture with its own config plugin, and the Live and Replay page models with their floating bubbles (`/ui`). Commerce comes from an adapter.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -1,25 +0,0 @@
1
- /**
2
- * The room's auction lines in the chat (0.9.0, "SDK move 8"): a bid and a winner arrive as plain text
3
- * from the gateway, with no field or source to tell them apart, so they are known by their shape
4
- * (Freckled Poppy's DEL-3012; amore-v2's chat used the same two patterns). Ordinary chat never takes
5
- * these forms. Matching, not words a shopper reads.
6
- *
7
- * Pure, so it loads in plain Node for tests and in an app's own test runner.
8
- */
9
- /** A line of the chat, as an auction screen draws it. */
10
- export type CommentLine =
11
- /** A winner's line: the whole line is the announcement. */
12
- {
13
- kind: 'winner';
14
- }
15
- /** A bid: `label` ("Bid ") then `amount` ("$64.00"), drawn in the bidding colour. */
16
- | {
17
- kind: 'bid';
18
- label: string;
19
- amount: string;
20
- } | {
21
- kind: 'plain';
22
- };
23
- /** What kind of line `text` is: a winner's line (checked first), a bid, or plain chat. */
24
- export declare function classifyComment(text: string | null | undefined): CommentLine;
25
- //# sourceMappingURL=auctionComments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auctionComments.d.ts","sourceRoot":"","sources":["../src/auctionComments.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,yDAAyD;AACzD,MAAM,MAAM,WAAW;AACrB,2DAA2D;AACzD;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE;AACpB,qFAAqF;GACnF;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAKtB,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAK5E"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- /**
3
- * The room's auction lines in the chat (0.9.0, "SDK move 8"): a bid and a winner arrive as plain text
4
- * from the gateway, with no field or source to tell them apart, so they are known by their shape
5
- * (Freckled Poppy's DEL-3012; amore-v2's chat used the same two patterns). Ordinary chat never takes
6
- * these forms. Matching, not words a shopper reads.
7
- *
8
- * Pure, so it loads in plain Node for tests and in an app's own test runner.
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.classifyComment = classifyComment;
12
- /** "Bid $64.00": the word and its space, then an amount that holds a digit (so "Bid now!" isn't one). */
13
- const BID_LINE = /^(Bid\s+)(.*\d.*)$/;
14
- /** "Congratulations!! Jane is the winner of …". */
15
- const WINNER_LINE = /\bis the winner of\b/i;
16
- const PLAIN = { kind: 'plain' };
17
- const WINNER = { kind: 'winner' };
18
- /** What kind of line `text` is: a winner's line (checked first), a bid, or plain chat. */
19
- function classifyComment(text) {
20
- var _a, _b;
21
- if (typeof text !== 'string' || !text)
22
- return PLAIN;
23
- if (WINNER_LINE.test(text))
24
- return WINNER;
25
- const bid = BID_LINE.exec(text);
26
- return bid ? { kind: 'bid', label: (_a = bid[1]) !== null && _a !== void 0 ? _a : '', amount: (_b = bid[2]) !== null && _b !== void 0 ? _b : '' } : PLAIN;
27
- }
28
- //# sourceMappingURL=auctionComments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auctionComments.js","sourceRoot":"","sources":["../src/auctionComments.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAmBH,0CAKC;AAtBD,yGAAyG;AACzG,MAAM,QAAQ,GAAG,oBAAoB,CAAC;AACtC,mDAAmD;AACnD,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAU5C,MAAM,KAAK,GAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC7C,MAAM,MAAM,GAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAE/C,0FAA0F;AAC1F,SAAgB,eAAe,CAAC,IAA+B;;IAC7D,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IACpD,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC;IAC1C,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAA,GAAG,CAAC,CAAC,CAAC,mCAAI,EAAE,EAAE,MAAM,EAAE,MAAA,GAAG,CAAC,CAAC,CAAC,mCAAI,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AAClF,CAAC"}
@@ -1,77 +0,0 @@
1
- /**
2
- * The rules around a bid that every auction screen needs (0.9.0, "SDK move 8"): the last look before a
3
- * bid goes, the custom bid's quick picks and its chance of winning, each lot's state, and whether the
4
- * shopper won the round that just closed. amore-v2 and Freckled Poppy each kept their own copies.
5
- *
6
- * Pure, so it loads in plain Node for tests and in an app's own test runner.
7
- */
8
- import type { AuctionState, LeaderWhenRoundClosed, LotState } from './sessionTypes';
9
- import type { AuctionWin, LiveStream } from './types';
10
- /**
11
- * How long, after a bid is handed to `placeBid`, a bid bar takes no other (old Amore's
12
- * `BID_SPINNER_MS`, Freckled Poppy's too). The host answers on the room, not to the bid, so this is the
13
- * moment a second tap would most likely be a mistake. `useAuctionBidGate`'s `bidOnItsWay`.
14
- */
15
- export declare const BID_ON_ITS_WAY_MS = 1200;
16
- /** The round as a bid is checked against it: `session.auction` has all of it. */
17
- export type BidRound = Pick<AuctionState, 'biddingOpen' | 'nextBid' | 'bidCap' | 'closesAt' | 'storeProductId'>;
18
- /** Why a bid isn't sent, found as it is about to go. */
19
- export type BidRefusalReason = 'closed' | 'outbid' | 'overCap';
20
- /**
21
- * Why a bid of `amount` can't go out into `round` now, or null when it can: the last look before a bid
22
- * goes (amore-v2's, "a bid goes out at the amount shown"). In order:
23
- *
24
- * - `closed`: no round open, or its clock has run out (`closesAt` at or before `now`, on the phone's
25
- * clock). Nothing to tell the shopper: the bar has gone.
26
- * - `overCap`: more than the host's ceiling. A bid of exactly the ceiling stands (old Amore's).
27
- * - `outbid`: less than the next bid: the room moved past the amount the shopper saw.
28
- */
29
- export declare function bidRefusal(amount: number, round: Pick<AuctionState, 'biddingOpen' | 'nextBid' | 'bidCap' | 'closesAt'>, now: number): BidRefusalReason | null;
30
- /** Old Amore's quick picks on the custom bid sheet: the next bid, rounded up, plus each of these. */
31
- export declare const QUICK_BID_STEPS: readonly number[];
32
- /**
33
- * The custom bid sheet's quick picks: the next bid rounded up to a whole amount, plus each step
34
- * (`QUICK_BID_STEPS`: 5, 20, 60, 100), leaving out any over the host's ceiling. Old Amore's; Freckled
35
- * Poppy's added the same steps without rounding the last three up, and offered picks over the ceiling.
36
- */
37
- export declare function quickBids(nextBid: number, bidCap: number | null, steps?: readonly number[]): number[];
38
- /** How good a chance a custom bid stands. */
39
- export type WinChance = 'veryHigh' | 'good' | 'medium' | 'tooLow';
40
- /** At least this much over the next bid is a very high chance of winning (old Amore's and Freckled Poppy's). */
41
- export declare const VERY_HIGH_CHANCE_OVER = 50;
42
- /** At least this much over the next bid is a good chance (old Amore's and Freckled Poppy's). */
43
- export declare const GOOD_CHANCE_OVER = 20;
44
- /**
45
- * How good a chance `amount` stands against the next bid, as old Amore's custom bid sheet (and Freckled
46
- * Poppy's, with the same numbers) says it: 50 or more over, or double the next bid, is `veryHigh`; 20
47
- * or more over, or half as much again, `good`; the next bid itself or anything over, `medium` (since
48
- * 0.9.2: the slide bids exactly the next bid, so a custom bid of it stands too; it was `tooLow`); else
49
- * `tooLow`, an amount that isn't a number included. Being over the ceiling, or outbid, is the sheet's to say first.
50
- */
51
- export declare function winChance(amount: number, nextBid: number): WinChance;
52
- /**
53
- * Where a lot stands in the show's auction: `open` while a round is open on it, `closed` once it has
54
- * been won (on the show's record, `winnerCount`, or seen won on this phone this show, `wonLotIds`: the
55
- * record says so only once it is read again), else `upcoming`. A lot reads `open` only with a round
56
- * open: between rounds the featured lot is still `upcoming` (old Amore's said "Bidding Live" for it).
57
- */
58
- export declare function lotStateFor(storeProductId: string, auction: Pick<AuctionState, 'biddingOpen' | 'storeProductId' | 'wonLotIds'>, show: Pick<LiveStream, 'products'> | null | undefined): LotState;
59
- /**
60
- * Whether the round's winner is this shopper: they led the round as it closed (`bidderId`, the id the
61
- * host echoes) and the winning bid is theirs, the same amount, on the same lot when both name one. The
62
- * room names the winner only by name (the README's backend ask), so this is the best a phone can tell.
63
- */
64
- export declare function isYourWin(win: AuctionWin | null | undefined, leader: LeaderWhenRoundClosed | null | undefined, bidderId: string | null | undefined): boolean;
65
- /**
66
- * The first bid on a lot, before the host has sent a next bid: its opening bid when it has one, else the
67
- * lot's bid step, else the show's smallest step. Never 0 when any of them is set (Head of Engineering,
68
- * 2026-10-06: "How will anyone bid if starting is 0 ... we should show bid incremented": a lot the host
69
- * didn't price opened at "Bid $0.00", and sliding it sent nothing).
70
- */
71
- export declare function openingBidFor(lot: {
72
- baseBidPrice?: number | null;
73
- bidIncrement?: number | null;
74
- } | null | undefined, show: {
75
- minimumBidIncrement?: number | null;
76
- } | null | undefined): number;
77
- //# sourceMappingURL=auctionRules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auctionRules.d.ts","sourceRoot":"","sources":["../src/auctionRules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,iFAAiF;AACjF,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,gBAAgB,CAAC,CAAC;AAEhH,wDAAwD;AACxD,M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C,OAAO,CAIT;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EACtF,IAAI,EAAE;IAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GAC/D,MAAM,CAKR"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GOOD_CHANCE_OVER = exports.VERY_HIGH_CHANCE_OVER = exports.QUICK_BID_STEPS = exports.BID_ON_ITS_WAY_MS = void 0;
4
- exports.bidRefusal = bidRefusal;
5
- exports.quickBids = quickBids;
6
- exports.winChance = winChance;
7
- exports.lotStateFor = lotStateFor;
8
- exports.isYourWin = isYourWin;
9
- exports.openingBidFor = openingBidFor;
10
- /**
11
- * How long, after a bid is handed to `placeBid`, a bid bar takes no other (old Amore's
12
- * `BID_SPINNER_MS`, Freckled Poppy's too). The host answers on the room, not to the bid, so this is the
13
- * moment a second tap would most likely be a mistake. `useAuctionBidGate`'s `bidOnItsWay`.
14
- */
15
- exports.BID_ON_ITS_WAY_MS = 1200;
16
- /**
17
- * Why a bid of `amount` can't go out into `round` now, or null when it can: the last look before a bid
18
- * goes (amore-v2's, "a bid goes out at the amount shown"). In order:
19
- *
20
- * - `closed`: no round open, or its clock has run out (`closesAt` at or before `now`, on the phone's
21
- * clock). Nothing to tell the shopper: the bar has gone.
22
- * - `overCap`: more than the host's ceiling. A bid of exactly the ceiling stands (old Amore's).
23
- * - `outbid`: less than the next bid: the room moved past the amount the shopper saw.
24
- */
25
- function bidRefusal(amount, round, now) {
26
- if (!round.biddingOpen || (round.closesAt !== null && round.closesAt <= now))
27
- return 'closed';
28
- if (round.bidCap !== null && amount > round.bidCap)
29
- return 'overCap';
30
- if (amount < round.nextBid)
31
- return 'outbid';
32
- return null;
33
- }
34
- /** Old Amore's quick picks on the custom bid sheet: the next bid, rounded up, plus each of these. */
35
- exports.QUICK_BID_STEPS = [5, 20, 60, 100];
36
- /**
37
- * The custom bid sheet's quick picks: the next bid rounded up to a whole amount, plus each step
38
- * (`QUICK_BID_STEPS`: 5, 20, 60, 100), leaving out any over the host's ceiling. Old Amore's; Freckled
39
- * Poppy's added the same steps without rounding the last three up, and offered picks over the ceiling.
40
- */
41
- function quickBids(nextBid, bidCap, steps = exports.QUICK_BID_STEPS) {
42
- const floor = Math.ceil(nextBid);
43
- return steps.map((step) => floor + step).filter((amount) => bidCap === null || amount <= bidCap);
44
- }
45
- /** At least this much over the next bid is a very high chance of winning (old Amore's and Freckled Poppy's). */
46
- exports.VERY_HIGH_CHANCE_OVER = 50;
47
- /** At least this much over the next bid is a good chance (old Amore's and Freckled Poppy's). */
48
- exports.GOOD_CHANCE_OVER = 20;
49
- /**
50
- * How good a chance `amount` stands against the next bid, as old Amore's custom bid sheet (and Freckled
51
- * Poppy's, with the same numbers) says it: 50 or more over, or double the next bid, is `veryHigh`; 20
52
- * or more over, or half as much again, `good`; the next bid itself or anything over, `medium` (since
53
- * 0.9.2: the slide bids exactly the next bid, so a custom bid of it stands too; it was `tooLow`); else
54
- * `tooLow`, an amount that isn't a number included. Being over the ceiling, or outbid, is the sheet's to say first.
55
- */
56
- function winChance(amount, nextBid) {
57
- const over = amount - nextBid;
58
- const ratio = nextBid > 0 ? amount / nextBid - 1 : 0;
59
- if (over >= exports.VERY_HIGH_CHANCE_OVER || ratio >= 1)
60
- return 'veryHigh';
61
- if (over >= exports.GOOD_CHANCE_OVER || ratio >= 0.5)
62
- return 'good';
63
- if (over >= 0)
64
- return 'medium';
65
- return 'tooLow';
66
- }
67
- /**
68
- * Where a lot stands in the show's auction: `open` while a round is open on it, `closed` once it has
69
- * been won (on the show's record, `winnerCount`, or seen won on this phone this show, `wonLotIds`: the
70
- * record says so only once it is read again), else `upcoming`. A lot reads `open` only with a round
71
- * open: between rounds the featured lot is still `upcoming` (old Amore's said "Bidding Live" for it).
72
- */
73
- function lotStateFor(storeProductId, auction, show) {
74
- var _a;
75
- if (auction.biddingOpen && auction.storeProductId === storeProductId)
76
- return 'open';
77
- const onRecord = show === null || show === void 0 ? void 0 : show.products.find((product) => product.storeProductId === storeProductId);
78
- if (((_a = onRecord === null || onRecord === void 0 ? void 0 : onRecord.winnerCount) !== null && _a !== void 0 ? _a : 0) > 0 || auction.wonLotIds.includes(storeProductId))
79
- return 'closed';
80
- return 'upcoming';
81
- }
82
- /**
83
- * Whether the round's winner is this shopper: they led the round as it closed (`bidderId`, the id the
84
- * host echoes) and the winning bid is theirs, the same amount, on the same lot when both name one. The
85
- * room names the winner only by name (the README's backend ask), so this is the best a phone can tell.
86
- */
87
- function isYourWin(win, leader, bidderId) {
88
- if (!win || !leader || !bidderId || leader.userId !== bidderId)
89
- return false;
90
- if (leader.amount !== win.winningBid)
91
- return false;
92
- return win.storeProductId === null || leader.storeProductId === null || win.storeProductId === leader.storeProductId;
93
- }
94
- /**
95
- * The first bid on a lot, before the host has sent a next bid: its opening bid when it has one, else the
96
- * lot's bid step, else the show's smallest step. Never 0 when any of them is set (Head of Engineering,
97
- * 2026-10-06: "How will anyone bid if starting is 0 ... we should show bid incremented": a lot the host
98
- * didn't price opened at "Bid $0.00", and sliding it sent nothing).
99
- */
100
- function openingBidFor(lot, show) {
101
- for (const amount of [lot === null || lot === void 0 ? void 0 : lot.baseBidPrice, lot === null || lot === void 0 ? void 0 : lot.bidIncrement, show === null || show === void 0 ? void 0 : show.minimumBidIncrement]) {
102
- if (typeof amount === 'number' && Number.isFinite(amount) && amount > 0)
103
- return amount;
104
- }
105
- return 0;
106
- }
107
- //# sourceMappingURL=auctionRules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auctionRules.js","sourceRoot":"","sources":["../src/auctionRules.ts"],"names":[],"mappings":";;;AAgCA,gCASC;AAUD,8BAOC;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C,cAAc,KAAK,IAAI,IAAI,GAAG,CAAC,cAAc,KAAK,MAAM,CAAC,cAAc,CAAC;AACvH,CAAC;AAED;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,GAAsF,EACtF,IAAgE;IAEhE,KAAK,MAAM,MAAM,IAAI,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,YAAY,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,YAAY,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,mBAAmB,CAAC,EAAE,CAAC;QACvF,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC;YAAE,OAAO,MAAM,CAAC;IACzF,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Live selling's part of sdk-shopify's cart page: which lines are giveaway prizes and what they cost.
3
- * Hand it to `ShopifyProvider`'s `cartExtensions` (sdk-shopify 0.14.0+):
4
- *
5
- * const CART_EXTENSIONS = [cartHoldExtension(), giveawayPrizeExtension({ keys: ['_isGiveawayItem'] })];
6
- *
7
- * Then each prize line on `useCartPage` has its `prize`: what one unit costs now (`prizeLinePrice`),
8
- * whether it is free (the store repriced it to nothing, or the cart's giveaway codes cover the prizes'
9
- * full price wherever Shopify put them: `prizesCoveredByGiveawayCodes`), and the full price to strike
10
- * through. A prize shows no reservation and no controls. Moved from amore-v2's `useCartPage` (0.10.0),
11
- * where it was decided 2026-10-08, Head of Engineering: "Stamp only" (the stamp alone makes a prize) and
12
- * "Giveaway codes cover all prizes".
13
- *
14
- * Typed by its shape rather than sdk-shopify's `CartExtension`, as the rest of this package's Shopify
15
- * helpers are; amore-v2's type check holds the two together.
16
- */
17
- import { type CartLineForGiveawayCodes } from './giveawayPrizeLines';
18
- import type { ShopifyMoney } from './shopifyCommerce';
19
- export interface GiveawayPrizeExtensionOptions {
20
- /** The keys that stamp a prize on this store (default `GIVEAWAY_PRIZE_KEYS`, both spellings). */
21
- keys?: readonly string[];
22
- }
23
- /** A cart line as the extension reads it (sdk-shopify's `CartLine` has all of it). */
24
- export type CartLineForPrizes = CartLineForGiveawayCodes;
25
- /** sdk-shopify's `CartExtension`, as live selling fills it in. */
26
- export interface GiveawayPrizeExtension {
27
- name: 'giveaway-prizes';
28
- lineFacts(line: CartLineForPrizes, cart: {
29
- lines: readonly CartLineForPrizes[];
30
- }): {
31
- prize?: {
32
- nowPerUnit: ShopifyMoney;
33
- costsNothing: boolean;
34
- fullPrice: ShopifyMoney | null;
35
- };
36
- };
37
- }
38
- export declare function giveawayPrizeExtension(options?: GiveawayPrizeExtensionOptions): GiveawayPrizeExtension;
39
- //# sourceMappingURL=cartExtension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cartExtension.d.ts","sourceRoot":"","sources":["../src/cartExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,6BAA6B;IAC5C,iGAAiG;IACjG,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B;AAED,sFAAsF;AACtF,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAEzD,kEAAkE;AAClE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,CACP,IAAI,EAAE,iBAAiB,EACvB,IAAI,EAAE;QAAE,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAA;KAAE,GAC5C;QAAE,KAAK,CAAC,EAAE;YAAE,UAAU,EAAE,YAAY,CAAC;YAAC,YAAY,EAAE,OAAO,CAAC;YAAC,SAAS,EAAE,YAAY,GAAG,IAAI,CAAA;SAAE,CAAA;KAAE,CAAC;CACpG;AAED,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,6BAAkC,GAAG,sBAAsB,CA2B1G"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.giveawayPrizeExtension = giveawayPrizeExtension;
4
- /**
5
- * Live selling's part of sdk-shopify's cart page: which lines are giveaway prizes and what they cost.
6
- * Hand it to `ShopifyProvider`'s `cartExtensions` (sdk-shopify 0.14.0+):
7
- *
8
- * const CART_EXTENSIONS = [cartHoldExtension(), giveawayPrizeExtension({ keys: ['_isGiveawayItem'] })];
9
- *
10
- * Then each prize line on `useCartPage` has its `prize`: what one unit costs now (`prizeLinePrice`),
11
- * whether it is free (the store repriced it to nothing, or the cart's giveaway codes cover the prizes'
12
- * full price wherever Shopify put them: `prizesCoveredByGiveawayCodes`), and the full price to strike
13
- * through. A prize shows no reservation and no controls. Moved from amore-v2's `useCartPage` (0.10.0),
14
- * where it was decided 2026-10-08, Head of Engineering: "Stamp only" (the stamp alone makes a prize) and
15
- * "Giveaway codes cover all prizes".
16
- *
17
- * Typed by its shape rather than sdk-shopify's `CartExtension`, as the rest of this package's Shopify
18
- * helpers are; amore-v2's type check holds the two together.
19
- */
20
- const giveawayPrizeLines_1 = require("./giveawayPrizeLines");
21
- function giveawayPrizeExtension(options = {}) {
22
- var _a;
23
- const keys = (_a = options.keys) !== null && _a !== void 0 ? _a : giveawayPrizeLines_1.GIVEAWAY_PRIZE_KEYS;
24
- // Whether the codes pay for every prize is the whole cart's answer: worked out once per cart.
25
- let lastLines = null;
26
- let lastCovered = false;
27
- const coveredByCodes = (lines) => {
28
- if (lines !== lastLines) {
29
- lastLines = lines;
30
- lastCovered = (0, giveawayPrizeLines_1.prizesCoveredByGiveawayCodes)(lines, { keys });
31
- }
32
- return lastCovered;
33
- };
34
- return {
35
- name: 'giveaway-prizes',
36
- lineFacts(line, cart) {
37
- if (!(0, giveawayPrizeLines_1.isGiveawayPrizeLine)(line, { keys }))
38
- return {};
39
- const price = (0, giveawayPrizeLines_1.prizeLinePrice)(line);
40
- const paidByCodes = coveredByCodes(cart.lines);
41
- return {
42
- prize: {
43
- nowPerUnit: price.nowPerUnit,
44
- costsNothing: price.costsNothing || paidByCodes,
45
- fullPrice: price.repriced || paidByCodes ? line.merchandise.price : null,
46
- },
47
- };
48
- },
49
- };
50
- }
51
- //# sourceMappingURL=cartExtension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cartExtension.js","sourceRoot":"","sources":["../src/cartExtension.ts"],"names":[],"mappings":";;AA0CA,wDA2BC;AArED;;;;;;;;;;;;;;;GAeG;AACH,6DAM8B;AAoB9B,SAAgB,sBAAsB,CAAC,UAAyC,EAAE;;IAChF,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,wCAAmB,CAAC;IACjD,8FAA8F;IAC9F,IAAI,SAAS,GAAwC,IAAI,CAAC;IAC1D,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,MAAM,cAAc,GAAG,CAAC,KAAmC,EAAE,EAAE;QAC7D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,SAAS,GAAG,KAAK,CAAC;YAClB,WAAW,GAAG,IAAA,iDAA4B,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,SAAS,CAAC,IAAI,EAAE,IAAI;YAClB,IAAI,CAAC,IAAA,wCAAmB,EAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC;gBAAE,OAAO,EAAE,CAAC;YACpD,MAAM,KAAK,GAAG,IAAA,mCAAc,EAAC,IAAI,CAAC,CAAC;YACnC,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC/C,OAAO;gBACL,KAAK,EAAE;oBACL,UAAU,EAAE,KAAK,CAAC,UAAU;oBAC5B,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,WAAW;oBAC/C,SAAS,EAAE,KAAK,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;iBACzE;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * A wins checkout refused rather than charge a wrong price or leave a lot unsettled (0.16.0, as Spark*l's
3
- * 33.2.0 refused it): a won item that can't be bought any more, a win with no winning price, or no auction
4
- * to settle. Its `message` is for the shopper, saying what to do; `useAuctionWins().error` shows it as it is.
5
- */
6
- export declare class CheckoutRefusedError extends Error {
7
- constructor(message: string);
8
- }
9
- //# sourceMappingURL=checkoutRefused.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkoutRefused.d.ts","sourceRoot":"","sources":["../src/checkoutRefused.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAI5B"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CheckoutRefusedError = void 0;
4
- /**
5
- * A wins checkout refused rather than charge a wrong price or leave a lot unsettled (0.16.0, as Spark*l's
6
- * 33.2.0 refused it): a won item that can't be bought any more, a win with no winning price, or no auction
7
- * to settle. Its `message` is for the shopper, saying what to do; `useAuctionWins().error` shows it as it is.
8
- */
9
- class CheckoutRefusedError extends Error {
10
- constructor(message) {
11
- super(message);
12
- this.name = 'CheckoutRefusedError';
13
- }
14
- }
15
- exports.CheckoutRefusedError = CheckoutRefusedError;
16
- //# sourceMappingURL=checkoutRefused.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkoutRefused.js","sourceRoot":"","sources":["../src/checkoutRefused.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AALD,oDAKC"}
@@ -1,29 +0,0 @@
1
- import type { ClipReelItem } from './pageTypes';
2
- import type { ClipItem } from './types';
3
- /** The reel's product bar photo: 56pt wide at 3×. */
4
- export declare const CLIP_THUMB_PIXELS = 168;
5
- /** A clip's product as far as the reel reads it (sdk-shopify's `Product` has it). */
6
- export interface ProductForClip {
7
- title: string;
8
- priceRange: {
9
- min: {
10
- amount: string;
11
- currencyCode: string;
12
- };
13
- };
14
- featuredImage?: {
15
- url: string;
16
- } | null;
17
- images?: {
18
- url: string;
19
- }[];
20
- }
21
- /** The clip's product: the first the collection lists for it. */
22
- export declare function clipProductId(clip: Pick<ClipItem, 'productIds'>): string | null;
23
- /**
24
- * The reel, in the collection's order: each clip with its product's title, price and photo (the bar's
25
- * size). A clip whose product the store no longer has (`null`), or hasn't been read yet, is left out:
26
- * there is nothing to buy from it.
27
- */
28
- export declare function clipReelItems(clips: readonly ClipItem[], productsById: ReadonlyMap<string, ProductForClip | null>, thumbPixels?: number): ClipReelItem[];
29
- //# sourceMappingURL=clipsPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clipsPage.d.ts","sourceRoot":"","sources":["../src/clipsPage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QAAE,GAAG,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAC9D,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC5B;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,MAAM,GAAG,IAAI,CAE/E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC,EACxD,WAAW,GAAE,MAA0B,GACtC,YAAY,EAAE,CAoBhB"}
package/dist/clipsPage.js DELETED
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLIP_THUMB_PIXELS = void 0;
4
- exports.clipProductId = clipProductId;
5
- exports.clipReelItems = clipReelItems;
6
- /**
7
- * The rules behind the Clips page (0.15.0, moved from amore-v2's `useClipsPage`): which clips the reel
8
- * shows, each with its product, ready to draw. The hook is `react/useClipsPage.ts`.
9
- *
10
- * Free of React and React Native, so it loads in plain Node for tests (sdk-shopify's `formatMoney` and
11
- * `sizedImageUrl` are plain functions).
12
- */
13
- const sdk_shopify_1 = require("@tiledev/sdk-shopify");
14
- /** The reel's product bar photo: 56pt wide at 3×. */
15
- exports.CLIP_THUMB_PIXELS = 168;
16
- /** The clip's product: the first the collection lists for it. */
17
- function clipProductId(clip) {
18
- var _a;
19
- return (_a = clip.productIds[0]) !== null && _a !== void 0 ? _a : null;
20
- }
21
- /**
22
- * The reel, in the collection's order: each clip with its product's title, price and photo (the bar's
23
- * size). A clip whose product the store no longer has (`null`), or hasn't been read yet, is left out:
24
- * there is nothing to buy from it.
25
- */
26
- function clipReelItems(clips, productsById, thumbPixels = exports.CLIP_THUMB_PIXELS) {
27
- return clips.flatMap((clip) => {
28
- var _a, _b, _c, _d;
29
- const productId = clipProductId(clip);
30
- const product = productId ? productsById.get(productId) : null;
31
- if (!product)
32
- return [];
33
- return [
34
- {
35
- id: clip.id,
36
- videoUrl: clip.videoUrl,
37
- posterUrl: clip.posterUrl,
38
- startMs: clip.startMs,
39
- endMs: clip.endMs,
40
- product: {
41
- title: product.title,
42
- price: (0, sdk_shopify_1.formatMoney)(product.priceRange.min),
43
- imageUrl: (0, sdk_shopify_1.sizedImageUrl)((_b = (_a = product.featuredImage) === null || _a === void 0 ? void 0 : _a.url) !== null && _b !== void 0 ? _b : (_d = (_c = product.images) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.url, thumbPixels),
44
- },
45
- },
46
- ];
47
- });
48
- }
49
- //# sourceMappingURL=clipsPage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clipsPage.js","sourceRoot":"","sources":["../src/clipsPage.ts"],"names":[],"mappings":";;;AAwBA,sCAEC;AAOD,sCAwBC;AAzDD;;;;;;GAMG;AACH,sDAAkE;AAKlE,qDAAqD;AACxC,QAAA,iBAAiB,GAAG,GAAG,CAAC;AAUrC,iEAAiE;AACjE,SAAgB,aAAa,CAAC,IAAkC;;IAC9D,OAAO,MAAA,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;AACpC,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,KAA0B,EAC1B,YAAwD,EACxD,cAAsB,yBAAiB;IAEvC,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;QAC5B,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE;oBACP,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,KAAK,EAAE,IAAA,yBAAW,EAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;oBAC1C,QAAQ,EAAE,IAAA,2BAAa,EAAC,MAAA,MAAA,OAAO,CAAC,aAAa,0CAAE,GAAG,mCAAI,MAAA,MAAA,OAAO,CAAC,MAAM,0CAAG,CAAC,CAAC,0CAAE,GAAG,EAAE,WAAW,CAAC;iBAC7F;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,70 +0,0 @@
1
- import type { LiveComment } from './types';
2
- /**
3
- * How many of the most recent lines to hand over. The pane shows a handful and scrolls; a rejoining
4
- * shopper wants the tail of the conversation, not an hour of it.
5
- */
6
- export declare const COMMENT_HISTORY_WINDOW = 40;
7
- /**
8
- * Asked for wider than the window because the gateway stores every line two to four times: forty
9
- * lines can take four times as many rows, and a tighter read would come back with ten.
10
- */
11
- export declare const COMMENT_HISTORY_FETCH_LIMIT: number;
12
- /**
13
- * Two identical lines closer together than this are the store's own copies, not someone saying the
14
- * same thing twice. Generous — the copies seen land milliseconds apart — because the costs are
15
- * lopsided: collapsing a genuine repeat loses one line, keeping the copies makes the pane look broken.
16
- */
17
- export declare const DUPLICATE_ROW_WINDOW_MS = 5000;
18
- /**
19
- * The name the host dashboard stores the host's OWN lines under. The room broadcasts the same lines
20
- * under the brand (`LiveStream.hostName`), and a shopper reading "You" would think they had said it.
21
- */
22
- export declare const HOST_SELF_NAME = "You";
23
- /** One row of `/live-streaming/comments`. */
24
- export interface RawHistoryComment {
25
- comment_id?: string | number | null;
26
- comment?: string | null;
27
- user_name?: string | null;
28
- source?: string | null;
29
- /** The host mutes a viewer for everyone by flagging their lines rather than deleting them. */
30
- muted?: boolean | null;
31
- /** Milliseconds since the show started; what the rows are ordered by. */
32
- relative_timestamp?: number | string | null;
33
- }
34
- /**
35
- * The gateway's rows as comments, oldest first, the last `COMMENT_HISTORY_WINDOW` of them.
36
- *
37
- * - Muted lines and empty lines are left out.
38
- * - Sorted rather than reversed: the wire is newest first today, but the order is the service's to
39
- * change. Ties keep the order they arrived in.
40
- * - A run of identical lines (same speaker, same words) within `DUPLICATE_ROW_WINDOW_MS` of the last
41
- * one kept is one line.
42
- * - `isOwn` is false on every line: each stored row carries the HOST account's `user_id`, viewer lines
43
- * included, so nothing says which device wrote it. `mergeCommentHistory` re-marks by name.
44
- */
45
- export declare function toCommentHistory(rows: unknown): LiveComment[];
46
- export interface CommentHistoryContext {
47
- /** `LiveStream.hostName` — what the room calls the host, and what "You" in the history means. */
48
- hostName: string | null;
49
- /** The name this device comments under (`session.viewerName`), to mark its earlier lines as its own. */
50
- ownName: string | null;
51
- }
52
- /**
53
- * History in front of the comments the room has delivered, with nothing said twice.
54
- *
55
- * - A history line is the stored copy of a delivered line when the same speaker says the same words.
56
- * "You" counts as the host for that comparison, because the dashboard stores the host's lines as
57
- * "You" while the room broadcasts them under the brand — the duplicated "won the Giveaway" line.
58
- * - A history line is also the copy of one of this device's own delivered lines when the words match,
59
- * whatever name it carries: a comment sent in the same moment as a sign-in can carry another name.
60
- * - **Each delivered line stands for one stored copy, the newest one not yet matched** (ENG-969,
61
- * 2026-10-22). Matching by words alone dropped every earlier line that said the same thing: the host
62
- * sent a link, then the same link again, and the first one disappeared. Order can't decide it either:
63
- * the stored order of the host's own lines differs from the room's.
64
- * - A kept "You" line is renamed to the host, and a kept USER line under this device's name is marked
65
- * `isOwn`.
66
- *
67
- * Returns `live` itself when there is nothing to add, so an unchanged list costs no render.
68
- */
69
- export declare function mergeCommentHistory(history: LiveComment[], live: LiveComment[], context: CommentHistoryContext): LiveComment[];
70
- //# sourceMappingURL=commentHistory.d.ts.map