@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.
- package/dist/attribution.d.ts +2 -16
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js +4 -10
- package/dist/attribution.js.map +1 -1
- package/dist/auctions.d.ts.map +1 -1
- package/dist/auctions.js +11 -42
- package/dist/auctions.js.map +1 -1
- package/dist/cartAttributes.d.ts +0 -10
- package/dist/cartAttributes.d.ts.map +1 -1
- package/dist/cartAttributes.js +1 -20
- package/dist/cartAttributes.js.map +1 -1
- package/dist/client.d.ts +2 -51
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +23 -123
- package/dist/client.js.map +1 -1
- package/dist/clips.d.ts +1 -12
- package/dist/clips.d.ts.map +1 -1
- package/dist/clips.js +6 -114
- package/dist/clips.js.map +1 -1
- package/dist/commentLinks.d.ts +0 -29
- package/dist/commentLinks.d.ts.map +1 -1
- package/dist/commentLinks.js.map +1 -1
- package/dist/engine.native.d.ts.map +1 -1
- package/dist/engine.native.js +845 -17
- package/dist/engine.native.js.map +1 -1
- package/dist/index.d.ts +4 -48
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -240
- package/dist/index.js.map +1 -1
- package/dist/polls.d.ts.map +1 -1
- package/dist/polls.js +0 -3
- package/dist/polls.js.map +1 -1
- package/dist/react/LiveSellingProvider.d.ts +1 -54
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +3 -60
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/LiveVideoTarget.d.ts.map +1 -1
- package/dist/react/LiveVideoTarget.js +3 -41
- package/dist/react/LiveVideoTarget.js.map +1 -1
- package/dist/react/index.d.ts +3 -30
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -79
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.web.d.ts +32 -36
- package/dist/react/index.web.d.ts.map +1 -1
- package/dist/react/index.web.js +122 -102
- package/dist/react/index.web.js.map +1 -1
- package/dist/react/useAuctionBidGate.d.ts +6 -62
- package/dist/react/useAuctionBidGate.d.ts.map +1 -1
- package/dist/react/useAuctionBidGate.js +27 -228
- package/dist/react/useAuctionBidGate.js.map +1 -1
- package/dist/react/useAuctionWins.d.ts +4 -14
- package/dist/react/useAuctionWins.d.ts.map +1 -1
- package/dist/react/useAuctionWins.js +5 -16
- package/dist/react/useAuctionWins.js.map +1 -1
- package/dist/react/useClips.d.ts +1 -7
- package/dist/react/useClips.d.ts.map +1 -1
- package/dist/react/useClips.js +7 -20
- package/dist/react/useClips.js.map +1 -1
- package/dist/react/useLiveSession.d.ts +3 -15
- package/dist/react/useLiveSession.d.ts.map +1 -1
- package/dist/react/useLiveSession.js +199 -612
- package/dist/react/useLiveSession.js.map +1 -1
- package/dist/react/useLiveStreams.d.ts.map +1 -1
- package/dist/react/useLiveStreams.js +2 -6
- package/dist/react/useLiveStreams.js.map +1 -1
- package/dist/react/useOngoingLive.d.ts +0 -1
- package/dist/react/useOngoingLive.d.ts.map +1 -1
- package/dist/react/useOngoingLive.js +1 -7
- package/dist/react/useOngoingLive.js.map +1 -1
- package/dist/react/useReplays.d.ts +0 -12
- package/dist/react/useReplays.d.ts.map +1 -1
- package/dist/react/useReplays.js +24 -56
- package/dist/react/useReplays.js.map +1 -1
- package/dist/react/useStreamInfo.d.ts +2 -13
- package/dist/react/useStreamInfo.d.ts.map +1 -1
- package/dist/react/useStreamInfo.js +8 -36
- package/dist/react/useStreamInfo.js.map +1 -1
- package/dist/replays.d.ts +0 -14
- package/dist/replays.d.ts.map +1 -1
- package/dist/replays.js +22 -68
- package/dist/replays.js.map +1 -1
- package/dist/session.d.ts +6 -39
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +22 -209
- package/dist/session.js.map +1 -1
- package/dist/sessionTypes.d.ts +18 -217
- package/dist/sessionTypes.d.ts.map +1 -1
- package/dist/sessionTypes.js +1 -2
- package/dist/sessionTypes.js.map +1 -1
- package/dist/streams.d.ts +1 -27
- package/dist/streams.d.ts.map +1 -1
- package/dist/streams.js +21 -84
- package/dist/streams.js.map +1 -1
- package/dist/types.d.ts +10 -288
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -2
- package/dist/types.js.map +1 -1
- package/dist/wire.d.ts +0 -31
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +0 -25
- package/dist/wire.js.map +1 -1
- package/dist/zego.d.ts +1 -3
- package/dist/zego.d.ts.map +1 -1
- package/dist/zego.js +1 -1
- package/package.json +1 -1
- package/dist/auctionComments.d.ts +0 -25
- package/dist/auctionComments.d.ts.map +0 -1
- package/dist/auctionComments.js +0 -28
- package/dist/auctionComments.js.map +0 -1
- package/dist/auctionRules.d.ts +0 -77
- package/dist/auctionRules.d.ts.map +0 -1
- package/dist/auctionRules.js +0 -107
- package/dist/auctionRules.js.map +0 -1
- package/dist/cartExtension.d.ts +0 -39
- package/dist/cartExtension.d.ts.map +0 -1
- package/dist/cartExtension.js +0 -51
- package/dist/cartExtension.js.map +0 -1
- package/dist/checkoutRefused.d.ts +0 -9
- package/dist/checkoutRefused.d.ts.map +0 -1
- package/dist/checkoutRefused.js +0 -16
- package/dist/checkoutRefused.js.map +0 -1
- package/dist/clipsPage.d.ts +0 -29
- package/dist/clipsPage.d.ts.map +0 -1
- package/dist/clipsPage.js +0 -49
- package/dist/clipsPage.js.map +0 -1
- package/dist/commentHistory.d.ts +0 -70
- package/dist/commentHistory.d.ts.map +0 -1
- package/dist/commentHistory.js +0 -133
- package/dist/commentHistory.js.map +0 -1
- package/dist/commentLinkCards.d.ts +0 -11
- package/dist/commentLinkCards.d.ts.map +0 -1
- package/dist/commentLinkCards.js +0 -70
- package/dist/commentLinkCards.js.map +0 -1
- package/dist/giveawayPrize.d.ts +0 -13
- package/dist/giveawayPrize.d.ts.map +0 -1
- package/dist/giveawayPrize.js +0 -18
- package/dist/giveawayPrize.js.map +0 -1
- package/dist/giveawayPrizeLines.d.ts +0 -120
- package/dist/giveawayPrizeLines.d.ts.map +0 -1
- package/dist/giveawayPrizeLines.js +0 -97
- package/dist/giveawayPrizeLines.js.map +0 -1
- package/dist/giveawayPrizes.d.ts +0 -20
- package/dist/giveawayPrizes.d.ts.map +0 -1
- package/dist/giveawayPrizes.js +0 -50
- package/dist/giveawayPrizes.js.map +0 -1
- package/dist/giveawayRoster.d.ts +0 -53
- package/dist/giveawayRoster.d.ts.map +0 -1
- package/dist/giveawayRoster.js +0 -93
- package/dist/giveawayRoster.js.map +0 -1
- package/dist/heldComments.d.ts +0 -40
- package/dist/heldComments.d.ts.map +0 -1
- package/dist/heldComments.js +0 -75
- package/dist/heldComments.js.map +0 -1
- package/dist/hiddenShows.d.ts +0 -44
- package/dist/hiddenShows.d.ts.map +0 -1
- package/dist/hiddenShows.js +0 -53
- package/dist/hiddenShows.js.map +0 -1
- package/dist/linkLots.d.ts +0 -64
- package/dist/linkLots.d.ts.map +0 -1
- package/dist/linkLots.js +0 -84
- package/dist/linkLots.js.map +0 -1
- package/dist/liveHaptics.d.ts +0 -7
- package/dist/liveHaptics.d.ts.map +0 -1
- package/dist/liveHaptics.js +0 -11
- package/dist/liveHaptics.js.map +0 -1
- package/dist/liveHaptics.native.d.ts +0 -7
- package/dist/liveHaptics.native.d.ts.map +0 -1
- package/dist/liveHaptics.native.js +0 -12
- package/dist/liveHaptics.native.js.map +0 -1
- package/dist/livePages.d.ts +0 -176
- package/dist/livePages.d.ts.map +0 -1
- package/dist/livePages.js +0 -216
- package/dist/livePages.js.map +0 -1
- package/dist/liveRoom.d.ts +0 -21
- package/dist/liveRoom.d.ts.map +0 -1
- package/dist/liveRoom.js +0 -28
- package/dist/liveRoom.js.map +0 -1
- package/dist/liveShow.d.ts +0 -65
- package/dist/liveShow.d.ts.map +0 -1
- package/dist/liveShow.js +0 -65
- package/dist/liveShow.js.map +0 -1
- package/dist/missedPolls.d.ts +0 -27
- package/dist/missedPolls.d.ts.map +0 -1
- package/dist/missedPolls.js +0 -16
- package/dist/missedPolls.js.map +0 -1
- package/dist/pageOptions.d.ts +0 -149
- package/dist/pageOptions.d.ts.map +0 -1
- package/dist/pageOptions.js +0 -123
- package/dist/pageOptions.js.map +0 -1
- package/dist/pageTypes.d.ts +0 -185
- package/dist/pageTypes.d.ts.map +0 -1
- package/dist/pageTypes.js +0 -3
- package/dist/pageTypes.js.map +0 -1
- package/dist/phoneTaps.d.ts +0 -25
- package/dist/phoneTaps.d.ts.map +0 -1
- package/dist/phoneTaps.js +0 -47
- package/dist/phoneTaps.js.map +0 -1
- package/dist/pipWindow.d.ts +0 -85
- package/dist/pipWindow.d.ts.map +0 -1
- package/dist/pipWindow.js +0 -88
- package/dist/pipWindow.js.map +0 -1
- package/dist/react/clocks.d.ts +0 -29
- package/dist/react/clocks.d.ts.map +0 -1
- package/dist/react/clocks.js +0 -124
- package/dist/react/clocks.js.map +0 -1
- package/dist/react/navigation.d.ts +0 -13
- package/dist/react/navigation.d.ts.map +0 -1
- package/dist/react/navigation.js +0 -7
- package/dist/react/navigation.js.map +0 -1
- package/dist/react/platformSession.d.ts +0 -16
- package/dist/react/platformSession.d.ts.map +0 -1
- package/dist/react/platformSession.js +0 -28
- package/dist/react/platformSession.js.map +0 -1
- package/dist/react/platformSession.web.d.ts +0 -35
- package/dist/react/platformSession.web.d.ts.map +0 -1
- package/dist/react/platformSession.web.js +0 -148
- package/dist/react/platformSession.web.js.map +0 -1
- package/dist/react/replayPlayer.d.ts +0 -83
- package/dist/react/replayPlayer.d.ts.map +0 -1
- package/dist/react/replayPlayer.js +0 -315
- package/dist/react/replayPlayer.js.map +0 -1
- package/dist/react/share.d.ts +0 -22
- package/dist/react/share.d.ts.map +0 -1
- package/dist/react/share.js +0 -45
- package/dist/react/share.js.map +0 -1
- package/dist/react/shopifyProviders.d.ts +0 -82
- package/dist/react/shopifyProviders.d.ts.map +0 -1
- package/dist/react/shopifyProviders.js +0 -113
- package/dist/react/shopifyProviders.js.map +0 -1
- package/dist/react/showPages.d.ts +0 -106
- package/dist/react/showPages.d.ts.map +0 -1
- package/dist/react/showPages.js +0 -166
- package/dist/react/showPages.js.map +0 -1
- package/dist/react/showPagesOnDevice.d.ts +0 -18
- package/dist/react/showPagesOnDevice.d.ts.map +0 -1
- package/dist/react/showPagesOnDevice.js +0 -31
- package/dist/react/showPagesOnDevice.js.map +0 -1
- package/dist/react/startSignIn.d.ts +0 -3
- package/dist/react/startSignIn.d.ts.map +0 -1
- package/dist/react/startSignIn.js +0 -19
- package/dist/react/startSignIn.js.map +0 -1
- package/dist/react/systemPictureInPicture.d.ts +0 -34
- package/dist/react/systemPictureInPicture.d.ts.map +0 -1
- package/dist/react/systemPictureInPicture.js +0 -93
- package/dist/react/systemPictureInPicture.js.map +0 -1
- package/dist/react/useAccountName.d.ts +0 -8
- package/dist/react/useAccountName.d.ts.map +0 -1
- package/dist/react/useAccountName.js +0 -49
- package/dist/react/useAccountName.js.map +0 -1
- package/dist/react/useClipsPage.d.ts +0 -47
- package/dist/react/useClipsPage.d.ts.map +0 -1
- package/dist/react/useClipsPage.js +0 -130
- package/dist/react/useClipsPage.js.map +0 -1
- package/dist/react/useCommentLinkCards.d.ts +0 -6
- package/dist/react/useCommentLinkCards.d.ts.map +0 -1
- package/dist/react/useCommentLinkCards.js +0 -67
- package/dist/react/useCommentLinkCards.js.map +0 -1
- package/dist/react/useFeaturedClip.d.ts +0 -15
- package/dist/react/useFeaturedClip.d.ts.map +0 -1
- package/dist/react/useFeaturedClip.js +0 -52
- package/dist/react/useFeaturedClip.js.map +0 -1
- package/dist/react/useGiveawayEntry.d.ts +0 -59
- package/dist/react/useGiveawayEntry.d.ts.map +0 -1
- package/dist/react/useGiveawayEntry.js +0 -170
- package/dist/react/useGiveawayEntry.js.map +0 -1
- package/dist/react/useGiveawayPrize.d.ts +0 -12
- package/dist/react/useGiveawayPrize.d.ts.map +0 -1
- package/dist/react/useGiveawayPrize.js +0 -53
- package/dist/react/useGiveawayPrize.js.map +0 -1
- package/dist/react/useGiveawayPrizes.d.ts +0 -4
- package/dist/react/useGiveawayPrizes.d.ts.map +0 -1
- package/dist/react/useGiveawayPrizes.js +0 -58
- package/dist/react/useGiveawayPrizes.js.map +0 -1
- package/dist/react/useHiddenShows.d.ts +0 -10
- package/dist/react/useHiddenShows.d.ts.map +0 -1
- package/dist/react/useHiddenShows.js +0 -30
- package/dist/react/useHiddenShows.js.map +0 -1
- package/dist/react/useKeepScreenAwake.d.ts +0 -2
- package/dist/react/useKeepScreenAwake.d.ts.map +0 -1
- package/dist/react/useKeepScreenAwake.js +0 -34
- package/dist/react/useKeepScreenAwake.js.map +0 -1
- package/dist/react/useLiveAuction.d.ts +0 -106
- package/dist/react/useLiveAuction.d.ts.map +0 -1
- package/dist/react/useLiveAuction.js +0 -255
- package/dist/react/useLiveAuction.js.map +0 -1
- package/dist/react/useLiveChat.d.ts +0 -110
- package/dist/react/useLiveChat.d.ts.map +0 -1
- package/dist/react/useLiveChat.js +0 -230
- package/dist/react/useLiveChat.js.map +0 -1
- package/dist/react/useLiveGiveawaysAndPolls.d.ts +0 -95
- package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +0 -1
- package/dist/react/useLiveGiveawaysAndPolls.js +0 -225
- package/dist/react/useLiveGiveawaysAndPolls.js.map +0 -1
- package/dist/react/useLivePage.d.ts +0 -136
- package/dist/react/useLivePage.d.ts.map +0 -1
- package/dist/react/useLivePage.js +0 -319
- package/dist/react/useLivePage.js.map +0 -1
- package/dist/react/useLiveShop.d.ts +0 -97
- package/dist/react/useLiveShop.d.ts.map +0 -1
- package/dist/react/useLiveShop.js +0 -197
- package/dist/react/useLiveShop.js.map +0 -1
- package/dist/react/useLiveShow.d.ts +0 -3
- package/dist/react/useLiveShow.d.ts.map +0 -1
- package/dist/react/useLiveShow.js +0 -21
- package/dist/react/useLiveShow.js.map +0 -1
- package/dist/react/useMySilentAuctionBids.d.ts +0 -29
- package/dist/react/useMySilentAuctionBids.d.ts.map +0 -1
- package/dist/react/useMySilentAuctionBids.js +0 -157
- package/dist/react/useMySilentAuctionBids.js.map +0 -1
- package/dist/react/useReplayPage.d.ts +0 -155
- package/dist/react/useReplayPage.d.ts.map +0 -1
- package/dist/react/useReplayPage.js +0 -580
- package/dist/react/useReplayPage.js.map +0 -1
- package/dist/react/useSilentAuctionLot.d.ts +0 -44
- package/dist/react/useSilentAuctionLot.d.ts.map +0 -1
- package/dist/react/useSilentAuctionLot.js +0 -168
- package/dist/react/useSilentAuctionLot.js.map +0 -1
- package/dist/react/useSilentAuctionLots.d.ts +0 -41
- package/dist/react/useSilentAuctionLots.d.ts.map +0 -1
- package/dist/react/useSilentAuctionLots.js +0 -64
- package/dist/react/useSilentAuctionLots.js.map +0 -1
- package/dist/react/useSilentAuctionRounds.d.ts +0 -15
- package/dist/react/useSilentAuctionRounds.d.ts.map +0 -1
- package/dist/react/useSilentAuctionRounds.js +0 -44
- package/dist/react/useSilentAuctionRounds.js.map +0 -1
- package/dist/replayPages.d.ts +0 -31
- package/dist/replayPages.d.ts.map +0 -1
- package/dist/replayPages.js +0 -34
- package/dist/replayPages.js.map +0 -1
- package/dist/shopifyCommerce.d.ts +0 -204
- package/dist/shopifyCommerce.d.ts.map +0 -1
- package/dist/shopifyCommerce.js +0 -217
- package/dist/shopifyCommerce.js.map +0 -1
- package/dist/shopifyIdentity.d.ts +0 -61
- package/dist/shopifyIdentity.d.ts.map +0 -1
- package/dist/shopifyIdentity.js +0 -61
- package/dist/shopifyIdentity.js.map +0 -1
- package/dist/shopifyIds.d.ts +0 -9
- package/dist/shopifyIds.d.ts.map +0 -1
- package/dist/shopifyIds.js +0 -18
- package/dist/shopifyIds.js.map +0 -1
- package/dist/showCredit.d.ts +0 -89
- package/dist/showCredit.d.ts.map +0 -1
- package/dist/showCredit.js +0 -120
- package/dist/showCredit.js.map +0 -1
- package/dist/showLinks.d.ts +0 -24
- package/dist/showLinks.d.ts.map +0 -1
- package/dist/showLinks.js +0 -23
- package/dist/showLinks.js.map +0 -1
- package/dist/showLots.d.ts +0 -44
- package/dist/showLots.d.ts.map +0 -1
- package/dist/showLots.js +0 -70
- package/dist/showLots.js.map +0 -1
- package/dist/showNames.d.ts +0 -77
- package/dist/showNames.d.ts.map +0 -1
- package/dist/showNames.js +0 -143
- package/dist/showNames.js.map +0 -1
- package/dist/showPages.d.ts +0 -56
- package/dist/showPages.d.ts.map +0 -1
- package/dist/showPages.js +0 -48
- package/dist/showPages.js.map +0 -1
- package/dist/silentAuctionFeed.d.ts +0 -49
- package/dist/silentAuctionFeed.d.ts.map +0 -1
- package/dist/silentAuctionFeed.js +0 -242
- package/dist/silentAuctionFeed.js.map +0 -1
- package/dist/silentAuctionRules.d.ts +0 -253
- package/dist/silentAuctionRules.d.ts.map +0 -1
- package/dist/silentAuctionRules.js +0 -489
- package/dist/silentAuctionRules.js.map +0 -1
- package/dist/silentAuctions.d.ts +0 -65
- package/dist/silentAuctions.d.ts.map +0 -1
- package/dist/silentAuctions.js +0 -272
- package/dist/silentAuctions.js.map +0 -1
- package/dist/storeData.d.ts +0 -16
- package/dist/storeData.d.ts.map +0 -1
- package/dist/storeData.js +0 -19
- package/dist/storeData.js.map +0 -1
- package/dist/ui/BubbleFrame.d.ts +0 -38
- package/dist/ui/BubbleFrame.d.ts.map +0 -1
- package/dist/ui/BubbleFrame.js +0 -181
- package/dist/ui/BubbleFrame.js.map +0 -1
- package/dist/ui/LiveBubble.d.ts +0 -43
- package/dist/ui/LiveBubble.d.ts.map +0 -1
- package/dist/ui/LiveBubble.js +0 -116
- package/dist/ui/LiveBubble.js.map +0 -1
- package/dist/ui/ReplayBubble.d.ts +0 -23
- package/dist/ui/ReplayBubble.d.ts.map +0 -1
- package/dist/ui/ReplayBubble.js +0 -71
- package/dist/ui/ReplayBubble.js.map +0 -1
- package/dist/ui.d.ts +0 -27
- package/dist/ui.d.ts.map +0 -1
- package/dist/ui.js +0 -34
- package/dist/ui.js.map +0 -1
- package/dist/unreadRoomMessages.d.ts +0 -26
- package/dist/unreadRoomMessages.d.ts.map +0 -1
- package/dist/unreadRoomMessages.js +0 -62
- package/dist/unreadRoomMessages.js.map +0 -1
- package/dist/viewerRules.d.ts +0 -38
- package/dist/viewerRules.d.ts.map +0 -1
- package/dist/viewerRules.js +0 -46
- package/dist/viewerRules.js.map +0 -1
- package/dist/winsAttribution.d.ts +0 -22
- package/dist/winsAttribution.d.ts.map +0 -1
- package/dist/winsAttribution.js +0 -49
- package/dist/winsAttribution.js.map +0 -1
- package/dist/zegoEngine.d.ts +0 -173
- package/dist/zegoEngine.d.ts.map +0 -1
- package/dist/zegoEngine.js +0 -1069
- package/dist/zegoEngine.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLiveShop.js","sourceRoot":"","sources":["../../src/react/useLiveShop.ts"],"names":[],"mappings":";;;AA2EA,kCAgKC;AA3OD;;;;GAIG;AACH,sDAAwG;AACxG,iCAA6C;AAE7C,0CAAoE;AAEpE,8CAA6G;AAC7G,4CAA2C;AAC3C,0CAA2D;AAC3D,+DAA2D;AAC3D,mCAAqD;AAErD,iCAA2E;AAAlE,qGAAA,YAAY,OAAA;AAAE,qGAAA,YAAY,OAAA;AAAE,6GAAA,oBAAoB,OAAA;AACzD,uDAAgE;AAChE,6CAAgH;AAgBhH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,WAAW,CAAC,SAAyB,EAAE;;IACrD,MAAM,GAAG,GAAG,IAAA,0BAAa,GAAiC,CAAC;IAC3D,MAAM,QAAQ,GAAG,MAAA,MAAA,IAAA,qBAAQ,GAAa,CAAC,MAAM,0CAAE,QAAQ,mCAAI,EAAE,CAAC;IAC9D,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAA,wCAAkB,GAAE,CAAC;IAC7D,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,mEAAmE;IACnE,MAA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YACxB,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;SAC5C;QACD,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;QACjD,qFAAqF;QACrF,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;KAChE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLiveShow.d.ts","sourceRoot":"","sources":["../../src/react/useLiveShow.ts"],"names":[],"mappings":"AAYA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGzD,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,CAG5E"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useLiveShow = useLiveShow;
|
|
4
|
-
/**
|
|
5
|
-
* `useLiveShow(streamingId)` — the show a screen is about, off the app's one session (0.9.0).
|
|
6
|
-
*
|
|
7
|
-
* `liveShowFor` (`liveShow.ts`) as a hook: `show` is the session's record once it is this show's (a
|
|
8
|
-
* moment after `holdStream(streamingId)` it can still be the last show's), `status` where it stands
|
|
9
|
-
* for its screen, `onAir` whether the room's controls show, `capabilities` what it calls for. The
|
|
10
|
-
* same object until one of those changes, so a screen can depend on it.
|
|
11
|
-
*
|
|
12
|
-
* The web entry has its own, over its idle session: there it is always `ended` with no show.
|
|
13
|
-
*/
|
|
14
|
-
const react_1 = require("react");
|
|
15
|
-
const liveShow_1 = require("../liveShow");
|
|
16
|
-
const useLiveSession_1 = require("./useLiveSession");
|
|
17
|
-
function useLiveShow(streamingId) {
|
|
18
|
-
const { stream, status } = (0, useLiveSession_1.useLiveSession)();
|
|
19
|
-
return (0, react_1.useMemo)(() => (0, liveShow_1.liveShowFor)({ stream, status }, streamingId), [stream, status, streamingId]);
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=useLiveShow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLiveShow.js","sourceRoot":"","sources":["../../src/react/useLiveShow.ts"],"names":[],"mappings":";;AAeA,kCAGC;AAlBD;;;;;;;;;GASG;AACH,iCAAgC;AAEhC,0CAAyD;AACzD,qDAAkD;AAElD,SAAgB,WAAW,CAAC,WAAsC;IAChE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC5C,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,sBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AACpG,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { SilentAuctionItem } from '../silentAuctionFeed';
|
|
2
|
-
export interface UseMySilentAuctionBidsOptions {
|
|
3
|
-
signedIn: boolean;
|
|
4
|
-
/** The stored session is still being read. */
|
|
5
|
-
restoring?: boolean;
|
|
6
|
-
/** The screen is showing: reads and polls only then. */
|
|
7
|
-
screenOnShow: boolean;
|
|
8
|
-
/** Read the lots again this often, ms. Default 2 000; 0 doesn't poll. */
|
|
9
|
-
pollIntervalMs?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface MySilentAuctionBidsPage<TRaw = unknown> {
|
|
12
|
-
status: 'signedOut' | 'loading' | 'failed' | 'empty' | 'ready';
|
|
13
|
-
/** Still open, the soonest to close first. */
|
|
14
|
-
active: SilentAuctionItem<TRaw>[];
|
|
15
|
-
/** Closed with this customer leading, the latest first. */
|
|
16
|
-
won: SilentAuctionItem<TRaw>[];
|
|
17
|
-
/** Closed otherwise, the latest first. */
|
|
18
|
-
lost: SilentAuctionItem<TRaw>[];
|
|
19
|
-
/** The customer the leading badge and the won/lost split compare against. */
|
|
20
|
-
customerId: string | null;
|
|
21
|
-
/** Some bids couldn't be looked up, so the list is knowingly short. */
|
|
22
|
-
incomplete: boolean;
|
|
23
|
-
refreshing: boolean;
|
|
24
|
-
refresh(): void;
|
|
25
|
-
hasMore: boolean;
|
|
26
|
-
loadMore(): void;
|
|
27
|
-
}
|
|
28
|
-
export declare function useMySilentAuctionBids<TRaw = unknown>(options: UseMySilentAuctionBidsOptions): MySilentAuctionBidsPage<TRaw>;
|
|
29
|
-
//# sourceMappingURL=useMySilentAuctionBids.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMySilentAuctionBids.d.ts","sourceRoot":"","sources":["../../src/react/useMySilentAuctionBids.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAK9D,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,OAAO,CAAC;IAClB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,YAAY,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB,CAAC,IAAI,GAAG,OAAO;IACrD,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC/D,8CAA8C;IAC9C,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;IAClC,2DAA2D;IAC3D,GAAG,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;IAChC,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,uEAAuE;IACvE,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,IAAI,IAAI,CAAC;CAClB;AAID,wBAAgB,sBAAsB,CAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,6BAA6B,GAAG,uBAAuB,CAAC,IAAI,CAAC,CAoI5H"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useMySilentAuctionBids = useMySilentAuctionBids;
|
|
4
|
-
/**
|
|
5
|
-
* My Bids as a page model (0.12.0, moved from Sparkl's `MySilentAuctionBids` on 2026-10-17): the lots
|
|
6
|
-
* this customer bid on, split into active, won and lost (`myBidsTabs`).
|
|
7
|
-
*
|
|
8
|
-
* - **The customer's bid record is the list** (`silentAuctions.bidRecord`): the service keeps no
|
|
9
|
-
* per-bidder index. Read each time the screen shows. A failed read isn't "signed out": the last
|
|
10
|
-
* record stays, and the page is `failed` only with nothing to show.
|
|
11
|
-
* - **90 entries to a page** (`loadMore`), read in one bulk call each; a batch that fails leaves the
|
|
12
|
-
* rest (`incomplete`), and only all of them failing is a failure.
|
|
13
|
-
* - **Products are read once** through the commerce adapter and kept, so a poll (every
|
|
14
|
-
* `pollIntervalMs`, 2 000: an open lot is contested) costs one bulk call. Sold-out lots stay: a won
|
|
15
|
-
* lot usually is.
|
|
16
|
-
* - **Restoring counts as loading,** so the signed-out state doesn't flash on a cold start.
|
|
17
|
-
*/
|
|
18
|
-
const react_1 = require("react");
|
|
19
|
-
const client_1 = require("../client");
|
|
20
|
-
const silentAuctionRules_1 = require("../silentAuctionRules");
|
|
21
|
-
const silentAuctions_1 = require("../silentAuctions");
|
|
22
|
-
const LiveSellingProvider_1 = require("./LiveSellingProvider");
|
|
23
|
-
function useMySilentAuctionBids(options) {
|
|
24
|
-
var _a, _b, _c;
|
|
25
|
-
const { signedIn, restoring = false, screenOnShow, pollIntervalMs = 2000 } = options;
|
|
26
|
-
const { ready } = (0, LiveSellingProvider_1.useLiveSelling)();
|
|
27
|
-
const [record, setRecord] = (0, react_1.useState)(null);
|
|
28
|
-
const [recordRead, setRecordRead] = (0, react_1.useState)(false);
|
|
29
|
-
const [recordFailed, setRecordFailed] = (0, react_1.useState)(false);
|
|
30
|
-
const [pages, setPages] = (0, react_1.useState)(1);
|
|
31
|
-
const [items, setItems] = (0, react_1.useState)([]);
|
|
32
|
-
const [loading, setLoading] = (0, react_1.useState)(true);
|
|
33
|
-
const [refreshing, setRefreshing] = (0, react_1.useState)(false);
|
|
34
|
-
const [lotsFailed, setLotsFailed] = (0, react_1.useState)(false);
|
|
35
|
-
const [someBatchesFailed, setSomeBatchesFailed] = (0, react_1.useState)(false);
|
|
36
|
-
/** Products by store id, kept across polls. */
|
|
37
|
-
const products = (0, react_1.useRef)(new Map());
|
|
38
|
-
/** Every read starts a new one; an answer from an older one is dropped. */
|
|
39
|
-
const generation = (0, react_1.useRef)(0);
|
|
40
|
-
const readRecord = (0, react_1.useCallback)(async () => {
|
|
41
|
-
if (!signedIn) {
|
|
42
|
-
setRecord(null);
|
|
43
|
-
setRecordFailed(false);
|
|
44
|
-
setRecordRead(true);
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
try {
|
|
48
|
-
setRecord(await silentAuctions_1.silentAuctions.bidRecord());
|
|
49
|
-
setRecordFailed(false);
|
|
50
|
-
}
|
|
51
|
-
catch (caught) {
|
|
52
|
-
// Not "signed out": the token may be fine and the network not. Keep what we had.
|
|
53
|
-
(0, client_1.getLogger)().error(caught, { at: 'useMySilentAuctionBids.record' });
|
|
54
|
-
setRecordFailed(true);
|
|
55
|
-
}
|
|
56
|
-
finally {
|
|
57
|
-
setRecordRead(true);
|
|
58
|
-
}
|
|
59
|
-
}, [signedIn]);
|
|
60
|
-
// Only once the provider has configured the client, as the other silent-auction hooks.
|
|
61
|
-
(0, react_1.useEffect)(() => {
|
|
62
|
-
if (ready && screenOnShow)
|
|
63
|
-
void readRecord();
|
|
64
|
-
}, [ready, screenOnShow, readRecord]);
|
|
65
|
-
const entries = (_a = record === null || record === void 0 ? void 0 : record.entries) !== null && _a !== void 0 ? _a : [];
|
|
66
|
-
const visible = (0, react_1.useMemo)(() => entries.slice(0, pages * silentAuctions_1.BID_RECORD_BATCH_SIZE), [entries, pages]);
|
|
67
|
-
const visibleKey = visible.join(',');
|
|
68
|
-
const load = (0, react_1.useCallback)(async () => {
|
|
69
|
-
const mine = ++generation.current;
|
|
70
|
-
if (visible.length === 0) {
|
|
71
|
-
setItems([]);
|
|
72
|
-
setLoading(false);
|
|
73
|
-
setRefreshing(false);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
const { lots, failedBatches, totalBatches } = await silentAuctions_1.silentAuctions.lotsForBidEntries(visible);
|
|
78
|
-
if (mine !== generation.current)
|
|
79
|
-
return;
|
|
80
|
-
const missing = [...new Set(lots.map((lot) => lot.storeProductId).filter((id) => !!id && !products.current.has(id)))];
|
|
81
|
-
const commerce = (0, client_1.getCommerce)();
|
|
82
|
-
if (missing.length && commerce) {
|
|
83
|
-
const read = await commerce.productsByIds(missing);
|
|
84
|
-
if (mine !== generation.current)
|
|
85
|
-
return;
|
|
86
|
-
for (const product of read)
|
|
87
|
-
products.current.set(product.storeProductId, product);
|
|
88
|
-
}
|
|
89
|
-
const next = [];
|
|
90
|
-
for (const lot of lots) {
|
|
91
|
-
const product = lot.storeProductId ? products.current.get(lot.storeProductId) : undefined;
|
|
92
|
-
if (lot.productGid && product)
|
|
93
|
-
next.push({ lot, product: product });
|
|
94
|
-
}
|
|
95
|
-
setItems(next);
|
|
96
|
-
setLotsFailed(totalBatches > 0 && failedBatches === totalBatches);
|
|
97
|
-
setSomeBatchesFailed(failedBatches > 0 && failedBatches < totalBatches);
|
|
98
|
-
}
|
|
99
|
-
catch (caught) {
|
|
100
|
-
if (mine !== generation.current)
|
|
101
|
-
return;
|
|
102
|
-
(0, client_1.getLogger)().error(caught, { at: 'useMySilentAuctionBids.lots' });
|
|
103
|
-
setLotsFailed(true);
|
|
104
|
-
}
|
|
105
|
-
finally {
|
|
106
|
-
if (mine === generation.current) {
|
|
107
|
-
setLoading(false);
|
|
108
|
-
setRefreshing(false);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// The entries by value: `visible` is a new array each render.
|
|
112
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
113
|
-
}, [visibleKey]);
|
|
114
|
-
(0, react_1.useEffect)(() => {
|
|
115
|
-
if (!recordRead)
|
|
116
|
-
return;
|
|
117
|
-
void load();
|
|
118
|
-
}, [recordRead, load]);
|
|
119
|
-
(0, react_1.useEffect)(() => {
|
|
120
|
-
if (!screenOnShow || pollIntervalMs <= 0 || visible.length === 0)
|
|
121
|
-
return undefined;
|
|
122
|
-
const timer = setInterval(() => void load(), pollIntervalMs);
|
|
123
|
-
return () => clearInterval(timer);
|
|
124
|
-
}, [screenOnShow, pollIntervalMs, visible.length, load]);
|
|
125
|
-
const refresh = (0, react_1.useCallback)(() => {
|
|
126
|
-
setRefreshing(true);
|
|
127
|
-
void readRecord();
|
|
128
|
-
void load();
|
|
129
|
-
}, [readRecord, load]);
|
|
130
|
-
const hasMore = entries.length > visible.length;
|
|
131
|
-
const loadMore = (0, react_1.useCallback)(() => {
|
|
132
|
-
if (hasMore)
|
|
133
|
-
setPages((count) => count + 1);
|
|
134
|
-
}, [hasMore]);
|
|
135
|
-
const customerId = (_b = record === null || record === void 0 ? void 0 : record.customerId) !== null && _b !== void 0 ? _b : null;
|
|
136
|
-
const tabs = (0, react_1.useMemo)(() => (0, silentAuctionRules_1.myBidsTabs)(items, customerId, Date.now()), [items, customerId]);
|
|
137
|
-
const status = !signedIn && !restoring
|
|
138
|
-
? 'signedOut'
|
|
139
|
-
: restoring || !recordRead || loading
|
|
140
|
-
? 'loading'
|
|
141
|
-
: (recordFailed || lotsFailed) && items.length === 0
|
|
142
|
-
? 'failed'
|
|
143
|
-
: items.length === 0
|
|
144
|
-
? 'empty'
|
|
145
|
-
: 'ready';
|
|
146
|
-
return {
|
|
147
|
-
status,
|
|
148
|
-
...tabs,
|
|
149
|
-
customerId,
|
|
150
|
-
incomplete: ((_c = record === null || record === void 0 ? void 0 : record.skipped) !== null && _c !== void 0 ? _c : 0) > 0 || someBatchesFailed,
|
|
151
|
-
refreshing,
|
|
152
|
-
refresh,
|
|
153
|
-
hasMore,
|
|
154
|
-
loadMore,
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=useMySilentAuctionBids.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMySilentAuctionBids.js","sourceRoot":"","sources":["../../src/react/useMySilentAuctionBids.ts"],"names":[],"mappings":";;AAqDA,wDAoIC;AAzLD;;;;;;;;;;;;;GAaG;AACH,iCAA0E;AAE1E,sCAAmD;AAGnD,8DAAmD;AACnD,sDAA0E;AAC1E,+DAAuD;AAgCvD,SAAgB,sBAAsB,CAAiB,OAAsC;;IAC3F,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,KAAK,EAAE,YAAY,EAAE,cAAc,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACrF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,oCAAc,GAAE,CAAC;IACnC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAmB,IAAI,CAAC,CAAC;IAC7D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,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,CAAC;IAC9C,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,UAAU,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,mCAAI,IAAI,CAAC;IAC9C,MAAM,IAAI,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,+BAAU,EAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE3F,MAAM,MAAM,GACV,CAAC,QAAQ,IAAI,CAAC,SAAS;QACrB,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,SAAS,IAAI,CAAC,UAAU,IAAI,OAAO;YACnC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,CAAC,YAAY,IAAI,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;gBAClD,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;oBAClB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,OAAO,CAAC;IAEpB,OAAO;QACL,MAAM;QACN,GAAG,IAAI;QACP,UAAU;QACV,UAAU,EAAE,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,mCAAI,CAAC,CAAC,GAAG,CAAC,IAAI,iBAAiB;QAC3D,UAAU;QACV,OAAO;QACP,OAAO;QACP,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Replay screen's page model (0.14.0, moved from amore-v2's `src/core/hooks/useReplayPage.ts`: old
|
|
3
|
-
* Amore's Replay, rebuilt; 0.15.0 adds its link lots and a tap on the video that pauses and plays, from
|
|
4
|
-
* amore-v2's `eng928/integration`). The routes are the app's (`LiveSellingProvider`'s `routes`); the
|
|
5
|
-
* route's `feedId` and `streamId` params are read here, and `feedId` is set as the shopper swipes.
|
|
6
|
-
*/
|
|
7
|
-
import { type Product } from '@tiledev/sdk-shopify';
|
|
8
|
-
import { type ShowLink } from '../linkLots';
|
|
9
|
-
import type { ReplayCommentItem, ReplayNowProduct, ReplayShopLink, ReplayShow } from '../pageTypes';
|
|
10
|
-
/**
|
|
11
|
-
* Everything the Replay screen wires, so the screen stays plain tiles. Call it from the Replay screen
|
|
12
|
-
* and from each of its tiles' wiring.
|
|
13
|
-
*
|
|
14
|
-
* - **A feed over the archive.** The route names where the shopper comes in (`feedId` from a card,
|
|
15
|
-
* `streamId` from a push or link); `useReplays` (playable recordings, 20 a read) is paged until that
|
|
16
|
-
* recording turns up. A swipe moves along the archive, and the next page is read when the shopper
|
|
17
|
-
* reaches the last one or two read so far. Hidden shows a shopper can't see are left out
|
|
18
|
-
* (`hiddenShows`), as on the Live tab: one opened by its id reads the archive to its end, then "This
|
|
19
|
-
* show has ended".
|
|
20
|
-
* - **A clip** (0.16.0: the route's `clip`, e.g. a product page's `useProductClip`) plays on its own: its
|
|
21
|
-
* recording isn't looked for in the archive (nor hidden as a rehearsal: whoever was shown the clip
|
|
22
|
-
* plays it), there is nothing to swipe to, and only its window plays. The bar is the clip's, from 0 to
|
|
23
|
-
* its length; the recording stops at the clip's end (`finished`), and Play there starts the clip again.
|
|
24
|
-
* The products are the clip's own (`productIds`), with no time windows, so the first is on screen and
|
|
25
|
-
* a pick from the sheet only opens its variant page; the chat is the recording's, at the recording's time.
|
|
26
|
-
* - **One player** (expo-video) for the whole app, borrowed from `ReplayPlayerProvider`, which owns it
|
|
27
|
-
* above the navigator so it outlives this screen: a new recording replaces the source, one source per
|
|
28
|
-
* recording, and its poster covers the picture until the video has a frame. It plays while the screen
|
|
29
|
-
* is on show, or only covered by a sheet (`routes.sheets`: the variant page), or in the bubble, and
|
|
30
|
-
* pauses under anything else.
|
|
31
|
-
* - **Picture-in-picture, in the app** (decided 2026-10-05, amore-v2's Head of Engineering): the
|
|
32
|
-
* header's picture-in-picture button shrinks the show into a floating bubble over the app and goes
|
|
33
|
-
* Home; ✕ and Android's back stop it and go Home (every app, decided 2026-10-22: `routes.openHome`; the
|
|
34
|
-
* iOS swipe back is off on this screen); its cart button shrinks it the
|
|
35
|
-
* same way and opens the Cart (`routes.openCart`). Arriving on this screen ends the bubble, and the
|
|
36
|
-
* screen shows the video where the bubble had it; ✕ stops the show, with no bubble. Opening another
|
|
37
|
-
* recording replaces the bubble's. No system picture-in-picture. One shrunk show at a time: arriving
|
|
38
|
-
* here stops a live show's bubble, as the Live screen stops this one's.
|
|
39
|
-
* - **The playhead** is read twice a second. A seek is held until the player reports arriving there,
|
|
40
|
-
* so the bar never jumps back to where it was.
|
|
41
|
-
* - **A tap on the video pauses or plays** (0.15.0; decided 2026-10-20 by amore-v2's Head of
|
|
42
|
-
* Engineering, as the clips reel's), or with `tapVideo: 'showControls'` (0.16.0) brings the controls
|
|
43
|
-
* back for `controlsShowMs`, kept up while paused: the controls' own
|
|
44
|
-
* Play and Pause, which shows the controls for their 4 s, so the skips and the bar are in reach.
|
|
45
|
-
* While the shopper has paused, the player draws the reel's play mark (`player.paused`).
|
|
46
|
-
* - **The product on screen** is the one whose time window covers the playhead
|
|
47
|
-
* (`liveSelling.replays.segments`, `productOnScreen`); before the first window, the first tagged
|
|
48
|
-
* product. Picking a product in the shop sheet goes to where the host first showed it, playing, then
|
|
49
|
-
* opens the variant page (`routes.openVariantPage`); a product the host never showed (tagged, no time
|
|
50
|
-
* window) leaves the player untouched, where it was and playing or paused, and only opens the variant
|
|
51
|
-
* page. Every add from there is credited to the recording (`replayShowCredit`): `_replay_id` on the
|
|
52
|
-
* line, `replayAddToCart` (`track`), and the cart's `_apptile_attribution` count against the show's
|
|
53
|
-
* `streamingId`, never the replay's feed id. Products are read at sdk-shopify's `CARD_IMAGE`.
|
|
54
|
-
* - **Links the host added** (0.15.0; amore-v2, 2026-10-19: lots that are web addresses, mostly
|
|
55
|
-
* affiliate links): the feed lists only products, so the show's record (`liveSelling.streams.byId`) is
|
|
56
|
-
* read with them, once per recording per visit, and gives the shop its order, the links among the
|
|
57
|
-
* products (`recordingShopItems`). A link can be the lot on screen (its time window, by its id) and is
|
|
58
|
-
* a card in the sheet (`ReplayShopLink`); a tap opens it inside the app, the show in the bubble as for
|
|
59
|
-
* the cart (`routes.openLink`), and share shares its address. An unreadable record leaves the products
|
|
60
|
-
* alone, as before, and is reported.
|
|
61
|
-
* - **The chat** is the show's comments file (`liveSelling.replays.comments`), revealed up to the
|
|
62
|
-
* playhead, the newest 60 (`replayCommentsAt`).
|
|
63
|
-
* - **A view** is counted once per recording per visit (not on the web, where the Tile preview would
|
|
64
|
-
* count on the merchant's real counter); a show back from the bubble isn't a new view.
|
|
65
|
-
* - **A read that fails** (the products, the time windows, the chat) goes to `onWarning`; a failed
|
|
66
|
-
* products or windows read is tried again when the shopper comes back to the recording.
|
|
67
|
-
*/
|
|
68
|
-
export interface UseReplayPageOptions {
|
|
69
|
-
/**
|
|
70
|
-
* What a tap on the video does (0.16.0): `playPause` (the default, 0.15.0's, as the clips reel), or
|
|
71
|
-
* `showControls`: the controls come back for `controlsShowMs`, and stay up while the video is paused, so
|
|
72
|
-
* a paused recording always shows its play button.
|
|
73
|
-
*/
|
|
74
|
-
tapVideo?: 'playPause' | 'showControls';
|
|
75
|
-
/** How long the controls stay after they show or are touched, ms, 1000–15000 (default 4000). 0.16.0. */
|
|
76
|
-
controlsShowMs?: number;
|
|
77
|
-
}
|
|
78
|
-
export declare function useReplayPage({ tapVideo, controlsShowMs }?: UseReplayPageOptions): {
|
|
79
|
-
/** The video is on screen: light status bar text over it. */
|
|
80
|
-
darkBehindStatusBar: boolean;
|
|
81
|
-
player: {
|
|
82
|
-
visible: boolean;
|
|
83
|
-
show: ReplayShow | null;
|
|
84
|
-
previousShow: ReplayShow | null;
|
|
85
|
-
nextShow: ReplayShow | null;
|
|
86
|
-
player: import("expo-video").VideoPlayer | null;
|
|
87
|
-
videoReady: boolean;
|
|
88
|
-
buffering: boolean;
|
|
89
|
-
paused: boolean;
|
|
90
|
-
finished: boolean;
|
|
91
|
-
onVideoFirstFrame: () => void;
|
|
92
|
-
startsPictureInPictureAutomatically: boolean;
|
|
93
|
-
onPictureInPictureStart: () => void;
|
|
94
|
-
onPictureInPictureStop: () => void;
|
|
95
|
-
onTapVideo: () => void;
|
|
96
|
-
onSwipeToNext: () => void;
|
|
97
|
-
onSwipeToPrevious: () => void;
|
|
98
|
-
};
|
|
99
|
-
header: {
|
|
100
|
-
title: string | null;
|
|
101
|
-
muted: boolean;
|
|
102
|
-
canMute: boolean;
|
|
103
|
-
canPip: boolean;
|
|
104
|
-
cartCount: number;
|
|
105
|
-
onClose: () => void;
|
|
106
|
-
onToggleMute: () => void;
|
|
107
|
-
onPip: () => void;
|
|
108
|
-
onCart: () => void;
|
|
109
|
-
};
|
|
110
|
-
controls: {
|
|
111
|
-
visible: boolean;
|
|
112
|
-
positionMs: number;
|
|
113
|
-
durationMs: number;
|
|
114
|
-
playing: boolean;
|
|
115
|
-
onScrub: (atMs: number) => void;
|
|
116
|
-
onSeek: (atMs: number) => void;
|
|
117
|
-
onSkip: (changeMs: number) => void;
|
|
118
|
-
onTogglePlay: () => void;
|
|
119
|
-
};
|
|
120
|
-
nowCard: {
|
|
121
|
-
visible: boolean;
|
|
122
|
-
product: ReplayNowProduct | null;
|
|
123
|
-
favorite: boolean;
|
|
124
|
-
onOpen: () => void;
|
|
125
|
-
onToggleFavorite: () => void;
|
|
126
|
-
onShare: () => void;
|
|
127
|
-
};
|
|
128
|
-
comments: {
|
|
129
|
-
visible: boolean;
|
|
130
|
-
comments: ReplayCommentItem[];
|
|
131
|
-
hasChat: boolean;
|
|
132
|
-
hidden: boolean;
|
|
133
|
-
onToggleHidden: () => void;
|
|
134
|
-
};
|
|
135
|
-
shopBar: {
|
|
136
|
-
visible: boolean;
|
|
137
|
-
/** The products and the links the host added (`ReplayShopLink`), in the record's order. */
|
|
138
|
-
products: (Product | ShowLink)[];
|
|
139
|
-
onScreenProductId: string | null;
|
|
140
|
-
favoriteIds: string[];
|
|
141
|
-
auctionProductIds: string[];
|
|
142
|
-
onPressProduct: (product: Product) => void;
|
|
143
|
-
onOpenLink: (link: Pick<ReplayShopLink, "url" | "title">) => void;
|
|
144
|
-
onToggleFavorite: (product: Product) => undefined;
|
|
145
|
-
onQuickAdd: (product: Product) => void;
|
|
146
|
-
addingProductIds: string[];
|
|
147
|
-
};
|
|
148
|
-
missing: {
|
|
149
|
-
visible: boolean;
|
|
150
|
-
onAction: () => void;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
/** What `useReplayPage` hands the Replay screen and its tiles. */
|
|
154
|
-
export type ReplayPage = ReturnType<typeof useReplayPage>;
|
|
155
|
-
//# sourceMappingURL=useReplayPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useReplayPage.d.ts","sourceRoot":"","sources":["../../src/react/useReplayPage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAkD,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAa5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAyCpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;IACxC,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAsB,EAAE,cAAc,EAAE,GAAE,oBAAyB;IAuc/F,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqD3C,MAAM;uBAIP,MAAM;2BAIF,MAAM;;;;;;;;;;;;;;;;;;;;QAgCzB,2FAA2F;;;;;kCArLnF,OAAO;2BA6EV,IAAI,CAAC,cAAc,EAAE,KAAK,GAAG,OAAO,CAAC;oCA+Gd,OAAO;;;;;;;;EASxC;AAED,kEAAkE;AAClE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC"}
|