@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,53 +0,0 @@
1
- import type { LiveGiveaway } from './types';
2
- /** How often the record is asked for the roster while waiting. */
3
- export declare const GIVEAWAY_ROSTER_RETRY_MS = 700;
4
- /** How long the reveal waits for a roster before going ahead without one. */
5
- export declare const GIVEAWAY_ROSTER_WAIT_MS = 5000;
6
- /**
7
- * The giveaway the session means by a lot: the open one for that product, else its latest.
8
- *
9
- * **The same product can be given away more than once in a show**, and the record keeps every one,
10
- * oldest first (`giveawayProducts`, appended as the host starts each). Seen 2026-10-05 on show
11
- * `h2rorgm7po`: Navy / XL drawn at 06:26, given away again at 09:37. Taking the first entry for the
12
- * product, as 0.9.0 did, handed a viewer who joined during the second one the FIRST, already `ended`,
13
- * so no nudge showed; and its entrants would have rolled in the second one's draw. An earlier, finished
14
- * giveaway of the same product is never the one meant.
15
- */
16
- export declare function giveawayForLot(giveaways: LiveGiveaway[], storeProductId: string): LiveGiveaway | null;
17
- /**
18
- * The names on the record for a lot just drawn: its latest giveaway's (the one drawn, ended or not yet
19
- * marked so). Empty while the record has none yet, so the wait goes on rather than roll an earlier
20
- * giveaway's entrants for the same product.
21
- */
22
- export declare function rosterFromRecord(giveaways: LiveGiveaway[], storeProductId: string): string[];
23
- /**
24
- * The customer id the record names as the winner of a draw (0.9.0): on the giveaway with the draw's lot
25
- * AND its start, so a record read before a repeat of the same product (which still ends with the
26
- * earlier draw, winner and all) can't name the earlier winner. Null when the start isn't known, the
27
- * record has no such giveaway yet, or it names nobody.
28
- */
29
- export declare function winnerIdFromRecord(giveaways: LiveGiveaway[], storeProductId: string, startedAtMs: number | null): string | null;
30
- /**
31
- * Whether this shopper won the draw (0.9.0), `giveaway.result.isYou`: by customer id when the record
32
- * names the winner (`winnerId`), else, as amore-v2 matched it, among those who entered by the room's
33
- * name, spaces and capitals aside. The room names the winner only by name (`giveaway_end`), so without
34
- * an id another entrant with the same name would be told they won too.
35
- */
36
- export declare function isYourGiveawayWin(draw: {
37
- winnerId: string | null;
38
- winnerName: string;
39
- youEntered: boolean;
40
- bidderId: string | null;
41
- viewerName: string | null;
42
- }): boolean;
43
- /**
44
- * Reads the record now and every `retryMs`, and calls `onGiveUp` after `waitMs`. Returns a stop, which
45
- * the caller runs as soon as the names arrive.
46
- */
47
- export declare function waitForGiveawayRoster(options: {
48
- readRecord: () => void;
49
- onGiveUp: () => void;
50
- retryMs?: number;
51
- waitMs?: number;
52
- }): () => void;
53
- //# sourceMappingURL=giveawayRoster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"giveawayRoster.d.ts","sourceRoot":"","sources":["../src/giveawayRoster.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,kEAAkE;AAClE,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAE7C;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAGrG;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAG5F;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,YAAY,EAAE,EACzB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,GAAG,IAAI,GACzB,MAAM,GAAG,IAAI,CAMf;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE;IACtC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,GAAG,OAAO,CAGV;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,IAAI,CAYb"}
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GIVEAWAY_ROSTER_WAIT_MS = exports.GIVEAWAY_ROSTER_RETRY_MS = void 0;
4
- exports.giveawayForLot = giveawayForLot;
5
- exports.rosterFromRecord = rosterFromRecord;
6
- exports.winnerIdFromRecord = winnerIdFromRecord;
7
- exports.isYourGiveawayWin = isYourGiveawayWin;
8
- exports.waitForGiveawayRoster = waitForGiveawayRoster;
9
- /**
10
- * The roster a giveaway reveal rolls through — ENG-705.
11
- *
12
- * `giveaway_end` names only the winner. The entrants come off the stream record, on the giveaway's
13
- * `users`, and the room hears the end BEFORE the gateway has written them there. One re-read lost that
14
- * race; the reveal then showed the winner alone, or the winner, then everyone, then the winner again
15
- * as later reads changed the list under it. So the session asks the record again on a short beat for a
16
- * few seconds, takes the first list that has names, and keeps it.
17
- *
18
- * **The real fix is the gateway's**: send the entrant names (or the roster's size and a sample) on
19
- * `giveaway_end`, so the reveal needs no second read at all.
20
- */
21
- const showNames_1 = require("./showNames");
22
- /** How often the record is asked for the roster while waiting. */
23
- exports.GIVEAWAY_ROSTER_RETRY_MS = 700;
24
- /** How long the reveal waits for a roster before going ahead without one. */
25
- exports.GIVEAWAY_ROSTER_WAIT_MS = 5000;
26
- /**
27
- * The giveaway the session means by a lot: the open one for that product, else its latest.
28
- *
29
- * **The same product can be given away more than once in a show**, and the record keeps every one,
30
- * oldest first (`giveawayProducts`, appended as the host starts each). Seen 2026-10-05 on show
31
- * `h2rorgm7po`: Navy / XL drawn at 06:26, given away again at 09:37. Taking the first entry for the
32
- * product, as 0.9.0 did, handed a viewer who joined during the second one the FIRST, already `ended`,
33
- * so no nudge showed; and its entrants would have rolled in the second one's draw. An earlier, finished
34
- * giveaway of the same product is never the one meant.
35
- */
36
- function giveawayForLot(giveaways, storeProductId) {
37
- var _a, _b;
38
- const forLot = giveaways.filter((giveaway) => giveaway.storeProductId === storeProductId);
39
- return (_b = (_a = forLot.find((giveaway) => giveaway.status === 'active')) !== null && _a !== void 0 ? _a : forLot[forLot.length - 1]) !== null && _b !== void 0 ? _b : null;
40
- }
41
- /**
42
- * The names on the record for a lot just drawn: its latest giveaway's (the one drawn, ended or not yet
43
- * marked so). Empty while the record has none yet, so the wait goes on rather than roll an earlier
44
- * giveaway's entrants for the same product.
45
- */
46
- function rosterFromRecord(giveaways, storeProductId) {
47
- var _a, _b;
48
- const forLot = giveaways.filter((giveaway) => giveaway.storeProductId === storeProductId);
49
- return (_b = (_a = forLot[forLot.length - 1]) === null || _a === void 0 ? void 0 : _a.entrantNames) !== null && _b !== void 0 ? _b : [];
50
- }
51
- /**
52
- * The customer id the record names as the winner of a draw (0.9.0): on the giveaway with the draw's lot
53
- * AND its start, so a record read before a repeat of the same product (which still ends with the
54
- * earlier draw, winner and all) can't name the earlier winner. Null when the start isn't known, the
55
- * record has no such giveaway yet, or it names nobody.
56
- */
57
- function winnerIdFromRecord(giveaways, storeProductId, startedAtMs) {
58
- var _a;
59
- if (startedAtMs === null)
60
- return null;
61
- const drawn = giveaways.find((giveaway) => giveaway.storeProductId === storeProductId && giveaway.startedAtMs === startedAtMs);
62
- return (_a = drawn === null || drawn === void 0 ? void 0 : drawn.winnerId) !== null && _a !== void 0 ? _a : null;
63
- }
64
- /**
65
- * Whether this shopper won the draw (0.9.0), `giveaway.result.isYou`: by customer id when the record
66
- * names the winner (`winnerId`), else, as amore-v2 matched it, among those who entered by the room's
67
- * name, spaces and capitals aside. The room names the winner only by name (`giveaway_end`), so without
68
- * an id another entrant with the same name would be told they won too.
69
- */
70
- function isYourGiveawayWin(draw) {
71
- if (draw.winnerId)
72
- return !!draw.bidderId && draw.winnerId === draw.bidderId;
73
- return draw.youEntered && (0, showNames_1.sameRoomName)(draw.winnerName, draw.viewerName);
74
- }
75
- /**
76
- * Reads the record now and every `retryMs`, and calls `onGiveUp` after `waitMs`. Returns a stop, which
77
- * the caller runs as soon as the names arrive.
78
- */
79
- function waitForGiveawayRoster(options) {
80
- var _a, _b;
81
- const { readRecord, onGiveUp } = options;
82
- readRecord();
83
- const retry = setInterval(readRecord, (_a = options.retryMs) !== null && _a !== void 0 ? _a : exports.GIVEAWAY_ROSTER_RETRY_MS);
84
- const giveUp = setTimeout(() => {
85
- clearInterval(retry);
86
- onGiveUp();
87
- }, (_b = options.waitMs) !== null && _b !== void 0 ? _b : exports.GIVEAWAY_ROSTER_WAIT_MS);
88
- return () => {
89
- clearInterval(retry);
90
- clearTimeout(giveUp);
91
- };
92
- }
93
- //# sourceMappingURL=giveawayRoster.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"giveawayRoster.js","sourceRoot":"","sources":["../src/giveawayRoster.ts"],"names":[],"mappings":";;;AA+BA,wCAGC;AAOD,4CAGC;AAQD,gDAUC;AAQD,8CASC;AAMD,sDAiBC;AAtGD;;;;;;;;;;;GAWG;AACH,2CAA2C;AAG3C,kEAAkE;AACrD,QAAA,wBAAwB,GAAG,GAAG,CAAC;AAE5C,6EAA6E;AAChE,QAAA,uBAAuB,GAAG,IAAK,CAAC;AAE7C;;;;;;;;;GASG;AACH,SAAgB,cAAc,CAAC,SAAyB,EAAE,cAAsB;;IAC9E,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,cAAc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AGG;AACH,SAAgB,qBAAqB,CAAC,OAKrC;;IACC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACzC,UAAU,EAAE,CAAC;IACb,MAAM,KAAK,GAAG,WAAW,CAAC,UAAU,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,gCAAwB,CAAC,CAAC;IACnF,MAAM,MAAM,GAAG,UAAU,CAAC,GAAG,EAAE;QAC7B,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,QAAQ,EAAE,CAAC;IACb,CAAC,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,+BAAuB,CAAC,CAAC;IAC9C,OAAO,GAAG,EAAE;QACV,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,YAAY,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC;AACJ,CAAC"}
@@ -1,40 +0,0 @@
1
- /**
2
- * Comments held back until the shopper's name is known (L6).
3
- *
4
- * A signed-in shopper's name is their account's, but the account loads after the screen does. A comment sent in that gap went out under the engine's
5
- * fallback, "Anonymous", into the room and into the stored history, where it cannot be taken back.
6
- * The session now holds such a comment here and sends it the moment the name lands.
7
- *
8
- * Bounded: a held comment is sent anyway after `maxWaitMs`, because a comment that silently never
9
- * arrives is worse than one under the fallback name. Each caller's promise settles once its own
10
- * comment has been sent (or dropped with the show).
11
- */
12
- export declare const HELD_COMMENT_MAX_WAIT_MS = 10000;
13
- /**
14
- * Whether a comment sent now waits for the shopper's name: their account is still being read
15
- * (`identity.customerLoading`) and nothing from it has named them yet (`nameFromAccount`: the
16
- * provider's `viewerName`, else the identity's `customerName`).
17
- *
18
- * Only while it loads (0.13.0). An account that has been read with no name on it isn't waited for, as
19
- * no name is coming: the session's name is then the one typed on this phone, or null, and the app asks
20
- * for one before the comment goes. Until 0.13.0 the rule was "a bidder with no name", which, with no
21
- * email to fall back on, held such a shopper's every comment for 10 s and then sent it as "Anonymous";
22
- * and it never held a comment while the account loaded, as there is no bidder until it has.
23
- */
24
- export declare function waitsForAccountName(accountLoading: boolean, nameFromAccount: string | null): boolean;
25
- export declare class HeldComments<T> {
26
- private readonly send;
27
- private readonly maxWaitMs;
28
- private held;
29
- private timer;
30
- constructor(send: (item: T) => Promise<void>, maxWaitMs?: number);
31
- get size(): number;
32
- /** Holds one comment. Resolves once it has been sent, in the order it was held. */
33
- hold(item: T): Promise<void>;
34
- /** Sends everything held, oldest first. A failed send is the sender's to report; the rest still go. */
35
- release(): Promise<void>;
36
- /** Forgets everything held without sending it — the show changed underneath. */
37
- drop(): void;
38
- private clearTimer;
39
- }
40
- //# sourceMappingURL=heldComments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heldComments.d.ts","sourceRoot":"","sources":["../src/heldComments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAEpG;AAED,qBAAa,YAAY,CAAC,CAAC;IAKvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAL5B,OAAO,CAAC,IAAI,CAA8C;IAC1D,OAAO,CAAC,KAAK,CAA8C;gBAGxC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,SAAS,GAAE,MAAiC;IAG/D,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,mFAAmF;IACnF,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5B,uGAAuG;IACjG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAY9B,gFAAgF;IAChF,IAAI,IAAI,IAAI;IAKZ,OAAO,CAAC,UAAU;CAInB"}
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HeldComments = exports.HELD_COMMENT_MAX_WAIT_MS = void 0;
4
- exports.waitsForAccountName = waitsForAccountName;
5
- /**
6
- * Comments held back until the shopper's name is known (L6).
7
- *
8
- * A signed-in shopper's name is their account's, but the account loads after the screen does. A comment sent in that gap went out under the engine's
9
- * fallback, "Anonymous", into the room and into the stored history, where it cannot be taken back.
10
- * The session now holds such a comment here and sends it the moment the name lands.
11
- *
12
- * Bounded: a held comment is sent anyway after `maxWaitMs`, because a comment that silently never
13
- * arrives is worse than one under the fallback name. Each caller's promise settles once its own
14
- * comment has been sent (or dropped with the show).
15
- */
16
- exports.HELD_COMMENT_MAX_WAIT_MS = 10000;
17
- /**
18
- * Whether a comment sent now waits for the shopper's name: their account is still being read
19
- * (`identity.customerLoading`) and nothing from it has named them yet (`nameFromAccount`: the
20
- * provider's `viewerName`, else the identity's `customerName`).
21
- *
22
- * Only while it loads (0.13.0). An account that has been read with no name on it isn't waited for, as
23
- * no name is coming: the session's name is then the one typed on this phone, or null, and the app asks
24
- * for one before the comment goes. Until 0.13.0 the rule was "a bidder with no name", which, with no
25
- * email to fall back on, held such a shopper's every comment for 10 s and then sent it as "Anonymous";
26
- * and it never held a comment while the account loaded, as there is no bidder until it has.
27
- */
28
- function waitsForAccountName(accountLoading, nameFromAccount) {
29
- return accountLoading && !nameFromAccount;
30
- }
31
- class HeldComments {
32
- constructor(send, maxWaitMs = exports.HELD_COMMENT_MAX_WAIT_MS) {
33
- this.send = send;
34
- this.maxWaitMs = maxWaitMs;
35
- this.held = [];
36
- this.timer = null;
37
- }
38
- get size() {
39
- return this.held.length;
40
- }
41
- /** Holds one comment. Resolves once it has been sent, in the order it was held. */
42
- hold(item) {
43
- return new Promise((settle) => {
44
- this.held.push({ item, settle });
45
- if (!this.timer)
46
- this.timer = setTimeout(() => void this.release(), this.maxWaitMs);
47
- });
48
- }
49
- /** Sends everything held, oldest first. A failed send is the sender's to report; the rest still go. */
50
- async release() {
51
- this.clearTimer();
52
- const batch = this.held.splice(0);
53
- for (const { item, settle } of batch) {
54
- try {
55
- await this.send(item);
56
- }
57
- finally {
58
- settle();
59
- }
60
- }
61
- }
62
- /** Forgets everything held without sending it — the show changed underneath. */
63
- drop() {
64
- this.clearTimer();
65
- for (const { settle } of this.held.splice(0))
66
- settle();
67
- }
68
- clearTimer() {
69
- if (this.timer)
70
- clearTimeout(this.timer);
71
- this.timer = null;
72
- }
73
- }
74
- exports.HeldComments = HeldComments;
75
- //# sourceMappingURL=heldComments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"heldComments.js","sourceRoot":"","sources":["../src/heldComments.ts"],"names":[],"mappings":";;;AAwBA,kDAEC;AA1BD;;;;;;;;;;GAUG;AACU,QAAA,wBAAwB,GAAG,KAAM,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,SAAgB,mBAAmB,CAAC,cAAuB,EAAE,eAA8B;IACzF,OAAO,cAAc,IAAI,CAAC,eAAe,CAAC;AAC5C,CAAC;AAED,MAAa,YAAY;IAIvB,YACmB,IAAgC,EAChC,YAAoB,gCAAwB;QAD5C,SAAI,GAAJ,IAAI,CAA4B;QAChC,cAAS,GAAT,SAAS,CAAmC;QALvD,SAAI,GAA2C,EAAE,CAAC;QAClD,UAAK,GAAyC,IAAI,CAAC;IAKxD,CAAC;IAEJ,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,mFAAmF;IACnF,IAAI,CAAC,IAAO;QACV,OAAO,IAAI,OAAO,CAAO,CAAC,MAAM,EAAE,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,uGAAuG;IACvG,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAClC,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;YACrC,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;oBAAS,CAAC;gBACT,MAAM,EAAE,CAAC;YACX,CAAC;QACH,CAAC;IACH,CAAC;IAED,gFAAgF;IAChF,IAAI;QACF,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAAE,MAAM,EAAE,CAAC;IACzD,CAAC;IAEO,UAAU;QAChB,IAAI,IAAI,CAAC,KAAK;YAAE,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;CACF;AA5CD,oCA4CC"}
@@ -1,44 +0,0 @@
1
- /**
2
- * Hidden shows (0.9.0): a team's practice runs, kept from shoppers.
3
- *
4
- * A team rehearses on the store's real live-selling gateway, and the gateway has no "draft" or
5
- * "hidden" setting, so every list of shows would include the practice runs. The app names them in
6
- * its config (`hiddenShows`): a show whose title contains one of `titleIncludes`, in any case, is
7
- * hidden, except from a viewer signed in with an email at one of `visibleToEmailDomains`. Amore and
8
- * Freckled Poppy each kept this rule, word for word, in their own code (`apptiletest`, `@apptile.io`).
9
- *
10
- * Matching is "contains", not "equals": "ApptileTest run 2" is a rehearsal too. The email must END
11
- * with `@<domain>`, so `host@apptile.io.example.com` is not on the team.
12
- *
13
- * Pure, so it loads in plain Node for tests and in an app's own test runner. The hooks apply it with
14
- * the viewer from `LiveSellingProvider`'s `viewerEmail` and the rule from the config.
15
- */
16
- import type { HiddenShows } from './types';
17
- /**
18
- * Rehearsals: the Apptile team's practice shows, for `config.hiddenShows` (0.14.0, moved from amore-v2's
19
- * `REHEARSALS`, old Amore's rule from the live-selling kit's `internalLive.ts`). The team practises on
20
- * the store's real gateway under the word `apptiletest`; a show whose title contains it, in any case
21
- * ("ApptileTest run 2" too), is hidden from everyone but a shopper signed in with an `@apptile.io`
22
- * email: not on Home, not on the Live tab, not as a recording, and their phone never joins its room.
23
- * `useLivePage` never reports `liveJoin` for a show the rule names, whoever watches it. Not a default:
24
- * an app passes it as `hiddenShows`.
25
- */
26
- export declare const REHEARSALS: HiddenShows;
27
- /** Whether a viewer signed in with this email sees hidden shows. No email (signed out): never. */
28
- export declare function seesHiddenShows(viewerEmail: string | null | undefined, rule: HiddenShows | null | undefined): boolean;
29
- /** Whether the rule hides this show by its title, from viewers who don't see hidden shows. */
30
- export declare function isHiddenShow(show: {
31
- title: string;
32
- } | null | undefined, rule: HiddenShows | null | undefined): boolean;
33
- /** Whether this viewer must not be shown this show: hidden by its title, and the viewer isn't on the team. */
34
- export declare function isHiddenFrom(show: {
35
- title: string;
36
- } | null | undefined, viewerEmail: string | null | undefined, rule: HiddenShows | null | undefined): boolean;
37
- /**
38
- * The shows this viewer may see, in the same order. The same array when nothing is left out, so a
39
- * memo that depends on it doesn't change for nothing.
40
- */
41
- export declare function withoutHiddenShows<Show extends {
42
- title: string;
43
- }>(shows: Show[], viewerEmail: string | null | undefined, rule: HiddenShows | null | undefined): Show[];
44
- //# sourceMappingURL=hiddenShows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hiddenShows.d.ts","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,WAAuF,CAAC;AAEjH,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOrH;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOtH;AAED,8GAA8G;AAC9G,wBAAgB,YAAY,CAC1B,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC1C,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAC/D,KAAK,EAAE,IAAI,EAAE,EACb,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,EAAE,CAIR"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REHEARSALS = void 0;
4
- exports.seesHiddenShows = seesHiddenShows;
5
- exports.isHiddenShow = isHiddenShow;
6
- exports.isHiddenFrom = isHiddenFrom;
7
- exports.withoutHiddenShows = withoutHiddenShows;
8
- /**
9
- * Rehearsals: the Apptile team's practice shows, for `config.hiddenShows` (0.14.0, moved from amore-v2's
10
- * `REHEARSALS`, old Amore's rule from the live-selling kit's `internalLive.ts`). The team practises on
11
- * the store's real gateway under the word `apptiletest`; a show whose title contains it, in any case
12
- * ("ApptileTest run 2" too), is hidden from everyone but a shopper signed in with an `@apptile.io`
13
- * email: not on Home, not on the Live tab, not as a recording, and their phone never joins its room.
14
- * `useLivePage` never reports `liveJoin` for a show the rule names, whoever watches it. Not a default:
15
- * an app passes it as `hiddenShows`.
16
- */
17
- exports.REHEARSALS = { titleIncludes: ['apptiletest'], visibleToEmailDomains: ['apptile.io'] };
18
- /** Whether a viewer signed in with this email sees hidden shows. No email (signed out): never. */
19
- function seesHiddenShows(viewerEmail, rule) {
20
- const email = (viewerEmail !== null && viewerEmail !== void 0 ? viewerEmail : '').trim().toLowerCase();
21
- if (!email || !rule)
22
- return false;
23
- return rule.visibleToEmailDomains.some((domain) => {
24
- const plainDomain = domain.trim().toLowerCase().replace(/^@/, '');
25
- return !!plainDomain && email.endsWith(`@${plainDomain}`);
26
- });
27
- }
28
- /** Whether the rule hides this show by its title, from viewers who don't see hidden shows. */
29
- function isHiddenShow(show, rule) {
30
- var _a;
31
- if (!show || !rule)
32
- return false;
33
- const title = ((_a = show.title) !== null && _a !== void 0 ? _a : '').toLowerCase();
34
- return rule.titleIncludes.some((word) => {
35
- const plainWord = word.trim().toLowerCase();
36
- return !!plainWord && title.includes(plainWord);
37
- });
38
- }
39
- /** Whether this viewer must not be shown this show: hidden by its title, and the viewer isn't on the team. */
40
- function isHiddenFrom(show, viewerEmail, rule) {
41
- return isHiddenShow(show, rule) && !seesHiddenShows(viewerEmail, rule);
42
- }
43
- /**
44
- * The shows this viewer may see, in the same order. The same array when nothing is left out, so a
45
- * memo that depends on it doesn't change for nothing.
46
- */
47
- function withoutHiddenShows(shows, viewerEmail, rule) {
48
- if (!rule || seesHiddenShows(viewerEmail, rule))
49
- return shows;
50
- const visible = shows.filter((show) => !isHiddenShow(show, rule));
51
- return visible.length === shows.length ? shows : visible;
52
- }
53
- //# sourceMappingURL=hiddenShows.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hiddenShows.js","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":";;;AA6BA,0CAOC;AAGD,oCAOC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SAAgB,YAAY,CAC1B,IAA0C,EAC1C,WAAsC,EACtC,IAAoC;IAEpC,OAAO,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAChC,KAAa,EACb,WAAsC,EACtC,IAAoC;IAEpC,IAAI,CAAC,IAAI,IAAI,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAClE,OAAO,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;AAC3D,CAAC"}
@@ -1,64 +0,0 @@
1
- /**
2
- * Whether a link can open inside the app: an https address. Plain `http:`, an email, a phone number,
3
- * words or nothing: false, and the link is drawn as words, not something to tap. Where an https link
4
- * goes is the app's (`LiveSellingProvider`'s `routes.openLink`).
5
- */
6
- export declare function opensInApp(url: string | null | undefined): boolean;
7
- /** A link lot ready to draw: what the Live and Replay screens' link cards take (`LiveShopLink`, `ReplayShopLink`). */
8
- export interface ShowLink {
9
- /** Says this item is a link, not a product. */
10
- kind: 'link';
11
- /** The lot's key on the show: its address when the host gave it no id. */
12
- id: string;
13
- title: string;
14
- /** Formatted ("$45.00"); empty when the host gave no price. */
15
- price: string;
16
- imageUrl: string | null;
17
- /**
18
- * The page, when a tap can open it inside the app (an https address, and an app that opens links);
19
- * null otherwise, and the card is words, not a button.
20
- */
21
- url: string | null;
22
- }
23
- /** What a link lot carries, from the session (`LiveProduct`) or the show's record (`LiveStreamProduct`). */
24
- export interface LinkLotFields {
25
- id: string;
26
- title: string;
27
- /** The host's price, as the gateway sends it ("45.0"); none when unset. */
28
- price: string | number | null | undefined;
29
- /** The session leaves it null on a link lot: the shop's own currency then (`getCurrencyCode`). */
30
- currencyCode?: string | null;
31
- imageUrl?: string | null;
32
- externalUrl?: string | null;
33
- }
34
- /** The host's price in the shop's currency ("$45.00"), or empty when there is none to show. */
35
- export declare function linkLotPrice(price: LinkLotFields['price'], currencyCode?: string | null): string;
36
- /**
37
- * A link lot as its card draws it. `canOpen` false (an app that gave no `routes.openLink`): the address
38
- * is kept from the card, so it is words, as for a link that isn't https.
39
- */
40
- export declare function showLinkOf(lot: LinkLotFields, { canOpen }?: {
41
- canOpen?: boolean;
42
- }): ShowLink;
43
- /** A lot on a show's record (`LiveStreamProduct`), as far as a recording's shop reads it. */
44
- export interface RecordLot {
45
- storeProductId: string;
46
- name: string;
47
- price: string | number | null;
48
- thumbnailUrl: string | null;
49
- externalUrl?: string | null;
50
- }
51
- /**
52
- * A recording's shop in the host's order (amore-v2, 2026-10-19): the show's record lists every lot, the
53
- * links the host added among the products, so a link takes its place there and a product is found by
54
- * its id (`productGidOf` the lot's). Products the record doesn't list (the replay feed's own list) follow
55
- * in the feed's order. With no record (it couldn't be read) the products alone, as before.
56
- */
57
- export declare function recordingShopItems<Item extends {
58
- id: string;
59
- }>(products: readonly Item[], recordLots: readonly RecordLot[] | null, productGidOf: (storeProductId: string) => string, { canOpen }?: {
60
- canOpen?: boolean;
61
- }): (Item | ShowLink)[];
62
- /** An item of a show's shop that is a link the host added, not a product. */
63
- export declare function isShowLink<Item extends object>(item: Item | ShowLink): item is ShowLink;
64
- //# sourceMappingURL=linkLots.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkLots.d.ts","sourceRoot":"","sources":["../src/linkLots.ts"],"names":[],"mappings":"AAiBA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAElE;AAED,sHAAsH;AACtH,MAAM,WAAW,QAAQ;IACvB,+CAA+C;I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AC5D,QAAQ,EAAE,SAAS,IAAI,EAAE,EACzB,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,IAAI,EACvC,YAAY,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,EAChD,EAAE,OAAc,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GAC7C,CAAC,IAAI,GAAG,QAAQ,CAAC,EAAE,CAqBrB;AAED,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,IAAI,SAAS,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,QAAQ,GAAG,IAAI,IAAI,QAAQ,CAEvF"}
package/dist/linkLots.js DELETED
@@ -1,84 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.opensInApp = opensInApp;
4
- exports.linkLotPrice = linkLotPrice;
5
- exports.showLinkOf = showLinkOf;
6
- exports.recordingShopItems = recordingShopItems;
7
- exports.isShowLink = isShowLink;
8
- /**
9
- * Link lots (0.15.0, moved from amore-v2's `src/core/utils/linkLots.ts` and the https rule of its
10
- * `screenForLink`): a lot the host added as a web address (`product_type: "url"`) rather than a product
11
- * of the store, mostly an affiliate link. The session hands them over among its products, in the host's
12
- * order, with a title, a price, a photo and the address (`LiveProduct.externalUrl`), no sizes and no
13
- * catalogue product (`raw`); a show's record has the same (`LiveStreamProduct.externalUrl`). One store's
14
- * last 80 shows had 305 of 1,803 lots as links (17%), every one https and priced. They are opened, never
15
- * bought: no Add to Cart, no favourite.
16
- *
17
- * Free of React and React Native, so it loads in plain Node for tests; the price is sdk-shopify's
18
- * `formatMoney` in the shop's currency (`getCurrencyCode`), plain functions.
19
- */
20
- const sdk_shopify_1 = require("@tiledev/sdk-shopify");
21
- /** An https address with a host and no spaces: the only kind of link that opens anything (an app's web page loads https only). */
22
- const HTTPS_ADDRESS = /^https:\/\/[^\s/?#]+\S*$/i;
23
- /**
24
- * Whether a link can open inside the app: an https address. Plain `http:`, an email, a phone number,
25
- * words or nothing: false, and the link is drawn as words, not something to tap. Where an https link
26
- * goes is the app's (`LiveSellingProvider`'s `routes.openLink`).
27
- */
28
- function opensInApp(url) {
29
- return typeof url === 'string' && HTTPS_ADDRESS.test(url.trim());
30
- }
31
- /** The host's price in the shop's currency ("$45.00"), or empty when there is none to show. */
32
- function linkLotPrice(price, currencyCode) {
33
- if (price === null || price === undefined || price === '')
34
- return '';
35
- const amount = Number(price);
36
- if (!Number.isFinite(amount))
37
- return '';
38
- return (0, sdk_shopify_1.formatMoney)({ amount: String(amount), currencyCode: currencyCode || (0, sdk_shopify_1.getCurrencyCode)() || 'USD' });
39
- }
40
- /**
41
- * A link lot as its card draws it. `canOpen` false (an app that gave no `routes.openLink`): the address
42
- * is kept from the card, so it is words, as for a link that isn't https.
43
- */
44
- function showLinkOf(lot, { canOpen = true } = {}) {
45
- var _a;
46
- const address = typeof lot.externalUrl === 'string' ? lot.externalUrl.trim() : '';
47
- return {
48
- kind: 'link',
49
- id: lot.id,
50
- title: lot.title,
51
- price: linkLotPrice(lot.price, lot.currencyCode),
52
- imageUrl: (_a = lot.imageUrl) !== null && _a !== void 0 ? _a : null,
53
- url: canOpen && opensInApp(address) ? address : null,
54
- };
55
- }
56
- /**
57
- * A recording's shop in the host's order (amore-v2, 2026-10-19): the show's record lists every lot, the
58
- * links the host added among the products, so a link takes its place there and a product is found by
59
- * its id (`productGidOf` the lot's). Products the record doesn't list (the replay feed's own list) follow
60
- * in the feed's order. With no record (it couldn't be read) the products alone, as before.
61
- */
62
- function recordingShopItems(products, recordLots, productGidOf, { canOpen = true } = {}) {
63
- if (!recordLots)
64
- return [...products];
65
- const placed = new Set();
66
- const inOrder = [];
67
- for (const lot of recordLots) {
68
- if (lot.externalUrl) {
69
- inOrder.push(showLinkOf({ id: lot.storeProductId, title: lot.name, price: lot.price, imageUrl: lot.thumbnailUrl, externalUrl: lot.externalUrl }, { canOpen }));
70
- continue;
71
- }
72
- const product = products.find((item) => item.id === productGidOf(lot.storeProductId));
73
- if (product && !placed.has(product.id)) {
74
- placed.add(product.id);
75
- inOrder.push(product);
76
- }
77
- }
78
- return [...inOrder, ...products.filter((item) => !placed.has(item.id))];
79
- }
80
- /** An item of a show's shop that is a link the host added, not a product. */
81
- function isShowLink(item) {
82
- return item.kind === 'link';
83
- }
84
- //# sourceMappingURL=linkLots.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"linkLots.js","sourceRoot":"","sources":["../src/linkLots.ts"],"names":[],"mappings":";;AAsBA,gCAEC;AAgCD,oCAKC;AAMD,gCAUC;AAiBD,gDA0BC;AAGD,gCAEC;AA7HD;;;;;;;;;;;GAWG;AACH,sDAAoE;AAEpE,kIAAkI;AAClI,MAAM,aAAa,GAAG,2BAA2B,CAAC;AAElD;;;;GAIG;AACH,SAAgB,UAAU,CAAC,GAA8B;IACvD,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC;AA+BD,+FAA+F;AAC/F,SAAgB,YAAY,CAAC,KAA6B,EAAE,YAA4B;IACtF,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC;IACrE,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,EAAE,CAAC;IACxC,OAAO,IAAA,yBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,YAAY,IAAI,IAAA,6BAAe,GAAE,IAAI,KAAK,EAAE,CAAC,CAAC;AAC3G,CAAC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,GAAkB,EAAE,EAAE,OAAO,GAAG,IAAI,KAA4B,EAAE;;IAC3F,MAAM,OAAO,GAAG,OAAO,GAAG,CAAC,WAAW,KA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C,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;QACtF,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;YACvC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1E,CAAC;AAED,6EAA6E;AAC7E,SAAgB,UAAU,CAAsB,IAAqB;IACnE,OAAQ,IAAiB,CAAC,IAAI,KAAK,MAAM,CAAC;AAC5C,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Taps on the phone at a show's big moments (`phoneTaps.ts`). This is the web build (and Node's): it
3
- * does nothing. Phones get `liveHaptics.native.ts`, which taps through the module the app passes as
4
- * `haptics` to `configure`.
5
- */
6
- export declare const liveHaptics: import("./phoneTaps").LiveHaptics;
7
- //# sourceMappingURL=liveHaptics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveHaptics.d.ts","sourceRoot":"","sources":["../src/liveHaptics.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,mCAAgC,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.liveHaptics = void 0;
4
- const phoneTaps_1 = require("./phoneTaps");
5
- /**
6
- * Taps on the phone at a show's big moments (`phoneTaps.ts`). This is the web build (and Node's): it
7
- * does nothing. Phones get `liveHaptics.native.ts`, which taps through the module the app passes as
8
- * `haptics` to `configure`.
9
- */
10
- exports.liveHaptics = (0, phoneTaps_1.createLiveHaptics)(() => null);
11
- //# sourceMappingURL=liveHaptics.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveHaptics.js","sourceRoot":"","sources":["../src/liveHaptics.ts"],"names":[],"mappings":";;;AAAA,2CAAgD;AAEhD;;;;GAIG;AACU,QAAA,WAAW,GAAG,IAAA,6BAAiB,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Taps on the phone at a show's big moments (`phoneTaps.ts`), through the module the app passes as
3
- * `haptics` to `configure` (expo-haptics). Nothing until then, or without one. The web gets
4
- * `liveHaptics.ts`, which does nothing.
5
- */
6
- export declare const liveHaptics: import("./phoneTaps").LiveHaptics;
7
- //# sourceMappingURL=liveHaptics.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveHaptics.native.d.ts","sourceRoot":"","sources":["../src/liveHaptics.native.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,WAAW,mCAAyE,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.liveHaptics = void 0;
4
- const client_1 = require("./client");
5
- const phoneTaps_1 = require("./phoneTaps");
6
- /**
7
- * Taps on the phone at a show's big moments (`phoneTaps.ts`), through the module the app passes as
8
- * `haptics` to `configure` (expo-haptics). Nothing until then, or without one. The web gets
9
- * `liveHaptics.ts`, which does nothing.
10
- */
11
- exports.liveHaptics = (0, phoneTaps_1.createLiveHaptics)(() => ((0, client_1.isConfigured)() ? (0, client_1.getConfig)().haptics : null));
12
- //# sourceMappingURL=liveHaptics.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liveHaptics.native.js","sourceRoot":"","sources":["../src/liveHaptics.native.ts"],"names":[],"mappings":";;;AAAA,qCAAmD;AACnD,2CAAgD;AAEhD;;;;GAIG;AACU,QAAA,WAAW,GAAG,IAAA,6BAAiB,EAAC,GAAG,EAAE,CAAC,CAAC,IAAA,qBAAY,GAAE,CAAC,CAAC,CAAC,IAAA,kBAAS,GAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC"}