@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,69 +1,16 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { type LivePageOptions, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ViewerRestrictions } from '../pageOptions';
|
|
3
2
|
import type { LiveEvent, LiveSellingClient, LiveSellingConfig } from '../types';
|
|
4
3
|
export interface LiveSellingContextType {
|
|
5
4
|
ready: boolean;
|
|
6
5
|
error: string | null;
|
|
7
6
|
client: LiveSellingClient;
|
|
8
|
-
/** The signed-in viewer's email (`LiveSellingProvider`'s `viewerEmail`), or null. Since 0.9.0. */
|
|
9
|
-
viewerEmail: string | null;
|
|
10
7
|
}
|
|
11
8
|
export interface LiveSellingProviderProps {
|
|
12
9
|
children: ReactNode;
|
|
13
10
|
config: LiveSellingConfig;
|
|
14
11
|
/** Every live-engine event, for a host that wants to react without subscribing to the engine. */
|
|
15
12
|
onEvent?: (event: LiveEvent) => void;
|
|
16
|
-
/**
|
|
17
|
-
* The signed-in shopper's email, or null when signed out (0.9.0). Decides which hidden shows they
|
|
18
|
-
* see (`config.hiddenShows`): every hook that hands out shows reads it from here, so a show can't be
|
|
19
|
-
* hidden on one screen and shown on another. A prop, so a sign-in or sign-out reaches every hook at
|
|
20
|
-
* once. Only matters with `hiddenShows` set.
|
|
21
|
-
*/
|
|
22
|
-
viewerEmail?: string | null;
|
|
23
|
-
/**
|
|
24
|
-
* Where the live pages send the shopper (0.14.0): the Live and Replay screens' hooks, the bubbles and
|
|
25
|
-
* the session's `onPipRestore` take these rather than naming the app's routes. Unset, each says so
|
|
26
|
-
* through `onWarning` and goes nowhere. Read at the moment each is taken, so an inline object is fine.
|
|
27
|
-
*/
|
|
28
|
-
routes?: LiveSellingRoutes;
|
|
29
|
-
/** The app's analytics `track` (0.14.0): `liveJoin`, and a show's copy of each add that lands. Unset: nothing is sent. */
|
|
30
|
-
track?: LiveTrack;
|
|
31
|
-
/**
|
|
32
|
-
* Where a handled failure goes (0.14.0): a read the page carried on without, an announcement to the
|
|
33
|
-
* room that didn't go, a keep-awake that failed. The app's Sentry, say. Unset: `console.warn`.
|
|
34
|
-
*/
|
|
35
|
-
onWarning?: LiveWarning;
|
|
36
|
-
/** The store's name, in the bidding rules (0.14.0); amore-v2 passed its `APP_NAME`. Unset: the bid bar's own words. */
|
|
37
|
-
shopName?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The names nobody watching may go by, the show's team's (0.15.0): the name asks refuse them as they
|
|
40
|
-
* are typed, an account named as one is asked for another, and `ShopifyLiveSessionProvider` hands them
|
|
41
|
-
* to the session, which never shows one. amore-v2's PM sets them in its Live Layer (Settings › Live
|
|
42
|
-
* Room); `blockedNamesFrom` reads such a list. Unset: `DEFAULT_BLOCKED_VIEWER_NAMES` (Host, Moderator).
|
|
43
|
-
*/
|
|
44
|
-
blockedNames?: readonly string[];
|
|
45
|
-
/**
|
|
46
|
-
* What the store stops this viewer doing (0.16.0): bidding (`blocked`, or `unknown` while not read) and
|
|
47
|
-
* whose comments are muted. `ShopifyLiveSellingProvider` fills it from the customer's tags. Unset:
|
|
48
|
-
* nothing restricted.
|
|
49
|
-
*/
|
|
50
|
-
viewerRestrictions?: ViewerRestrictions;
|
|
51
|
-
/**
|
|
52
|
-
* A limit on each viewer's reactions (0.16.0): this many taps, back to this many each time the host
|
|
53
|
-
* features another product. A tap past it sends nothing and calls `onReactionLimitReached`. Unset (the
|
|
54
|
-
* default): no limit.
|
|
55
|
-
*/
|
|
56
|
-
reactionLimit?: number;
|
|
57
|
-
/** A tap past `reactionLimit` (0.16.0): for the app to say so (a toast, say). */
|
|
58
|
-
onReactionLimitReached?: () => void;
|
|
59
13
|
}
|
|
60
|
-
export declare function LiveSellingProvider({ children, config, onEvent
|
|
14
|
+
export declare function LiveSellingProvider({ children, config, onEvent }: LiveSellingProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSellingContextType | undefined>>;
|
|
61
15
|
export declare function useLiveSelling(): LiveSellingContextType;
|
|
62
|
-
/**
|
|
63
|
-
* What the live pages need from the app (0.14.0), as `LiveSellingProvider` was given it: `routes`,
|
|
64
|
-
* `track`, `shopName`, and since 0.15.0 `canOpenLinks` and `blockedNames`, with their defaults outside a
|
|
65
|
-
* provider. The routes and `track` keep one identity, so an app's own screen can take the same routes
|
|
66
|
-
* the page hooks do.
|
|
67
|
-
*/
|
|
68
|
-
export declare function useLivePageOptions(): LivePageOptions;
|
|
69
16
|
//# sourceMappingURL=LiveSellingProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveSellingProvider.d.ts","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LiveSellingProvider.d.ts","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,iGAAiG;IACjG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC;AAID,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,wBAAwB,+GA6B1F;AAED,wBAAgB,cAAc,IAAI,sBAAsB,CAIvD"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LiveSellingProvider = LiveSellingProvider;
|
|
4
4
|
exports.useLiveSelling = useLiveSelling;
|
|
5
|
-
exports.useLivePageOptions = useLivePageOptions;
|
|
6
5
|
/**
|
|
7
6
|
* `LiveSellingProvider` — configures the client once and exposes readiness + the client to the tree.
|
|
8
7
|
*
|
|
@@ -12,28 +11,13 @@ exports.useLivePageOptions = useLivePageOptions;
|
|
|
12
11
|
*
|
|
13
12
|
* `onEvent` is a passthrough of the live engine's `LiveEvent` union, so a host can react to comments,
|
|
14
13
|
* bids, sold announcements and co-host signals without subscribing to the engine directly.
|
|
15
|
-
*
|
|
16
|
-
* `viewerEmail` is who is watching, for the hidden shows (`config.hiddenShows`); `useHiddenShows`
|
|
17
|
-
* (its own file) reads it with the rule for the hooks that hand out shows.
|
|
18
|
-
*
|
|
19
|
-
* `routes`, `track`, `onWarning` and `shopName` (0.14.0), and `blockedNames` (0.15.0), are what the live
|
|
20
|
-
* pages need from the app (`pageOptions.ts`): the page hooks read them through `useLivePageOptions`, and
|
|
21
|
-
* the bubbles too.
|
|
22
14
|
*/
|
|
23
15
|
const react_1 = require("react");
|
|
24
16
|
const liveSelling_1 = require("../liveSelling");
|
|
25
|
-
const pageOptions_1 = require("../pageOptions");
|
|
26
17
|
const LiveSellingContext = (0, react_1.createContext)(undefined);
|
|
27
|
-
|
|
28
|
-
/** The defaults, for a hook rendered without the provider: no routes, no analytics, no store name. */
|
|
29
|
-
const LivePageOptionsContext = (0, react_1.createContext)((0, pageOptions_1.pageOptionsReading)(() => ({})));
|
|
30
|
-
function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, blockedNames, viewerRestrictions, reactionLimit, onReactionLimitReached, }) {
|
|
31
|
-
var _a, _b;
|
|
18
|
+
function LiveSellingProvider({ children, config, onEvent }) {
|
|
32
19
|
const [ready, setReady] = (0, react_1.useState)(false);
|
|
33
20
|
const [error, setError] = (0, react_1.useState)(null);
|
|
34
|
-
// Set as the provider draws rather than in an effect: the screens below run their effects first, and
|
|
35
|
-
// a failure reported there must reach the app's `onWarning`, not the console.
|
|
36
|
-
(0, pageOptions_1.setLiveWarningSink)(onWarning);
|
|
37
21
|
(0, react_1.useEffect)(() => {
|
|
38
22
|
try {
|
|
39
23
|
liveSelling_1.liveSelling.configure(config);
|
|
@@ -53,40 +37,8 @@ function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, t
|
|
|
53
37
|
return;
|
|
54
38
|
return liveSelling_1.liveSelling.engine.subscribe(onEvent);
|
|
55
39
|
}, [onEvent]);
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
// The routes and `track` keep one identity for the provider's life, reading the latest props when
|
|
59
|
-
// taken, so the page hooks' effects don't run again each time the app draws.
|
|
60
|
-
const latestPageProps = (0, react_1.useRef)({ routes, track, shopName, blockedNames, onReactionLimitReached });
|
|
61
|
-
latestPageProps.current = { routes, track, shopName, blockedNames, onReactionLimitReached };
|
|
62
|
-
const stablePageOptions = (0, react_1.useMemo)(() => (0, pageOptions_1.pageOptionsReading)(() => latestPageProps.current), []);
|
|
63
|
-
// What the hooks draw from (not only call) changes the value, so they draw again.
|
|
64
|
-
const canOpenLinks = !!(routes === null || routes === void 0 ? void 0 : routes.openLink);
|
|
65
|
-
// The same list keeps the same array, so a list the app builds each draw (`blockedNamesFrom`) doesn't
|
|
66
|
-
// change the value each draw.
|
|
67
|
-
const blockedNamesNow = (0, react_1.useRef)(stablePageOptions.blockedNames);
|
|
68
|
-
const latestBlockedNames = stablePageOptions.blockedNames;
|
|
69
|
-
if (!sameNames(blockedNamesNow.current, latestBlockedNames))
|
|
70
|
-
blockedNamesNow.current = latestBlockedNames;
|
|
71
|
-
const pageBlockedNames = blockedNamesNow.current;
|
|
72
|
-
// A new value only when what it says changes; `refresh` read at the call.
|
|
73
|
-
const latestRefresh = (0, react_1.useRef)(viewerRestrictions === null || viewerRestrictions === void 0 ? void 0 : viewerRestrictions.refresh);
|
|
74
|
-
latestRefresh.current = viewerRestrictions === null || viewerRestrictions === void 0 ? void 0 : viewerRestrictions.refresh;
|
|
75
|
-
const bidding = (_a = viewerRestrictions === null || viewerRestrictions === void 0 ? void 0 : viewerRestrictions.bidding) !== null && _a !== void 0 ? _a : 'allowed';
|
|
76
|
-
const commentsMuted = (_b = viewerRestrictions === null || viewerRestrictions === void 0 ? void 0 : viewerRestrictions.commentsMuted) !== null && _b !== void 0 ? _b : false;
|
|
77
|
-
const restrictions = (0, react_1.useMemo)(() => ({ bidding, commentsMuted, refresh: () => { var _a; return (_a = latestRefresh.current) === null || _a === void 0 ? void 0 : _a.call(latestRefresh); } }), [bidding, commentsMuted]);
|
|
78
|
-
const pageReactionLimit = reactionLimit !== null && reactionLimit !== void 0 ? reactionLimit : null;
|
|
79
|
-
const pageOptions = (0, react_1.useMemo)(() => ({
|
|
80
|
-
routes: stablePageOptions.routes,
|
|
81
|
-
track: stablePageOptions.track,
|
|
82
|
-
shopName: shopName !== null && shopName !== void 0 ? shopName : undefined,
|
|
83
|
-
canOpenLinks,
|
|
84
|
-
blockedNames: pageBlockedNames,
|
|
85
|
-
viewerRestrictions: restrictions,
|
|
86
|
-
reactionLimit: pageReactionLimit,
|
|
87
|
-
onReactionLimitReached: stablePageOptions.onReactionLimitReached,
|
|
88
|
-
}), [stablePageOptions, shopName, canOpenLinks, pageBlockedNames, restrictions, pageReactionLimit]);
|
|
89
|
-
return (0, react_1.createElement)(LiveSellingContext.Provider, { value }, (0, react_1.createElement)(LivePageOptionsContext.Provider, { value: pageOptions }, children));
|
|
40
|
+
const value = (0, react_1.useMemo)(() => ({ ready, error, client: liveSelling_1.liveSelling }), [ready, error]);
|
|
41
|
+
return (0, react_1.createElement)(LiveSellingContext.Provider, { value }, children);
|
|
90
42
|
}
|
|
91
43
|
function useLiveSelling() {
|
|
92
44
|
const ctx = (0, react_1.useContext)(LiveSellingContext);
|
|
@@ -94,13 +46,4 @@ function useLiveSelling() {
|
|
|
94
46
|
throw new Error('useLiveSelling must be used within a LiveSellingProvider');
|
|
95
47
|
return ctx;
|
|
96
48
|
}
|
|
97
|
-
/**
|
|
98
|
-
* What the live pages need from the app (0.14.0), as `LiveSellingProvider` was given it: `routes`,
|
|
99
|
-
* `track`, `shopName`, and since 0.15.0 `canOpenLinks` and `blockedNames`, with their defaults outside a
|
|
100
|
-
* provider. The routes and `track` keep one identity, so an app's own screen can take the same routes
|
|
101
|
-
* the page hooks do.
|
|
102
|
-
*/
|
|
103
|
-
function useLivePageOptions() {
|
|
104
|
-
return (0, react_1.useContext)(LivePageOptionsContext);
|
|
105
|
-
}
|
|
106
49
|
//# sourceMappingURL=LiveSellingProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveSellingProvider.js","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"LiveSellingProvider.js","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":";;AA+BA,kDA6BC;AAED,wCAIC;AAlED;;;;;;;;;GASG;AACH,iCAA+F;AAG/F,gDAA6C;AAgB7C,MAAM,kBAAkB,GAAG,IAAA,qBAAa,EAAqC,SAAS,CAAC,CAAC;AAExF,SAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAA4B;IACzF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,g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;IAC3C,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IACtF,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveVideoTarget.d.ts","sourceRoot":"","sources":["../../src/react/LiveVideoTarget.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAiB,SAAS,EAAO,MAAM,OAAO,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"LiveVideoTarget.d.ts","sourceRoot":"","sources":["../../src/react/LiveVideoTarget.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAiB,SAAS,EAAO,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAwBzD,qGAAqG;AACrG,eAAO,MAAM,sBAAsB,SAA4B,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,eAAe,+FAG1B,CAAC;AAEH,MAAM,WAAW,oBAAoB;IACnC,0FAA0F;IAC1F,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,KAAK,EACL,OAAe,EACf,KAAK,EACL,QAAQ,GACT,EAAE,oBAAoB,6CAmEtB"}
|
|
@@ -51,9 +51,7 @@ exports.NativeVideoView = (0, react_1.forwardRef)(function NativeVideoView(props
|
|
|
51
51
|
function LiveVideoTarget({ active, muted, autoPip = false, style, children, }) {
|
|
52
52
|
const viewRef = (0, react_1.useRef)(null);
|
|
53
53
|
const { status, muted: shopperMuted, actions } = (0, useLiveSession_1.useLiveSession)();
|
|
54
|
-
|
|
55
|
-
anything but an explicit `false` forces. */
|
|
56
|
-
const claim = (0, react_1.useCallback)((force = true) => {
|
|
54
|
+
const claim = (0, react_1.useCallback)(() => {
|
|
57
55
|
if (!active)
|
|
58
56
|
return;
|
|
59
57
|
if (status !== 'playing' && status !== 'connecting')
|
|
@@ -63,41 +61,9 @@ function LiveVideoTarget({ active, muted, autoPip = false, style, children, }) {
|
|
|
63
61
|
return;
|
|
64
62
|
// Forced: this runs when the surface takes ownership, and the engine may still believe it is
|
|
65
63
|
// rendering into this view when in fact the view was torn down behind another screen.
|
|
66
|
-
actions.bindVideoView(tag,
|
|
64
|
+
actions.bindVideoView(tag, true);
|
|
67
65
|
}, [active, status, actions]);
|
|
68
66
|
(0, react_1.useEffect)(claim, [claim]);
|
|
69
|
-
/**
|
|
70
|
-
* Back from the background: take the picture again if the engine let go of it.
|
|
71
|
-
*
|
|
72
|
-
* With no system window granted, the session stops playback a moment after the app leaves, and that
|
|
73
|
-
* forgets the bound view. Coming back, the session's own foreground handler re-issues playback only
|
|
74
|
-
* into a view it still has — none — and nothing here re-ran, because `active` and `status` had not
|
|
75
|
-
* changed: a blank surface over a show that was playing (ENG-580, the white bubble after a comment
|
|
76
|
-
* link). Freckled Poppy withheld `active` for one commit to force a re-claim; this asks directly.
|
|
77
|
-
*
|
|
78
|
-
* Unforced, so a view the engine is still playing into is left alone, and on the next task rather
|
|
79
|
-
* than now, so the session's own re-issue goes first.
|
|
80
|
-
*/
|
|
81
|
-
const claimRef = (0, react_1.useRef)(claim);
|
|
82
|
-
claimRef.current = claim;
|
|
83
|
-
(0, react_1.useEffect)(() => {
|
|
84
|
-
let pending = null;
|
|
85
|
-
const subscription = react_native_1.AppState.addEventListener('change', (next) => {
|
|
86
|
-
if (next !== 'active')
|
|
87
|
-
return;
|
|
88
|
-
if (pending)
|
|
89
|
-
clearTimeout(pending);
|
|
90
|
-
pending = setTimeout(() => {
|
|
91
|
-
pending = null;
|
|
92
|
-
claimRef.current(false);
|
|
93
|
-
}, 0);
|
|
94
|
-
});
|
|
95
|
-
return () => {
|
|
96
|
-
subscription.remove();
|
|
97
|
-
if (pending)
|
|
98
|
-
clearTimeout(pending);
|
|
99
|
-
};
|
|
100
|
-
}, []);
|
|
101
67
|
/**
|
|
102
68
|
* The sound, in its own effect — and the split from `claim` is load-bearing twice over.
|
|
103
69
|
*
|
|
@@ -113,10 +79,6 @@ function LiveVideoTarget({ active, muted, autoPip = false, style, children, }) {
|
|
|
113
79
|
* write nothing at all, which kept a handover clean — the arriving surface states the answer — but
|
|
114
80
|
* also left the room audible when NOTHING arrived. It now stands the room down instead, deferred so
|
|
115
81
|
* a handover still reads as one continuous sound; see `videoTargets`.
|
|
116
|
-
*
|
|
117
|
-
* Restated on every `status` change as well. A card mounted during a cold start said "silent" while
|
|
118
|
-
* the engine did not exist yet, and nothing said it again once it did: the host was audible over
|
|
119
|
-
* the Home tab (Freckled Poppy). `connecting` → `playing` is exactly the moment to repeat it.
|
|
120
82
|
*/
|
|
121
83
|
(0, react_1.useEffect)(() => {
|
|
122
84
|
if (!active) {
|
|
@@ -127,7 +89,7 @@ function LiveVideoTarget({ active, muted, autoPip = false, style, children, }) {
|
|
|
127
89
|
const release = (0, videoTargets_1.holdVideoTarget)();
|
|
128
90
|
actions.setOutputMuted(muted !== null && muted !== void 0 ? muted : shopperMuted);
|
|
129
91
|
return release;
|
|
130
|
-
}, [active, muted, shopperMuted,
|
|
92
|
+
}, [active, muted, shopperMuted, actions]);
|
|
131
93
|
/**
|
|
132
94
|
* The handover request, released on the way out.
|
|
133
95
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveVideoTarget.js","sourceRoot":"","sources":["../../src/react/LiveVideoTarget.ts"],"names":[],"mappings":";;;AA0FA,
|
|
1
|
+
{"version":3,"file":"LiveVideoTarget.js","sourceRoot":"","sources":["../../src/react/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;QAC5B,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;QACrE,QAAQ,EAAE,KAAK;KAChB,CAAC,EACF,QAAQ,CACT,CAAC;AACJ,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -5,43 +5,16 @@
|
|
|
5
5
|
* client and the native engine work without React entirely.
|
|
6
6
|
*/
|
|
7
7
|
export { LiveSellingProvider, useLiveSelling, type LiveSellingProviderProps, type LiveSellingContextType, } from './LiveSellingProvider';
|
|
8
|
-
export { useHiddenShows, type HiddenShowsForViewer } from './useHiddenShows';
|
|
9
8
|
export { useOngoingLive, type UseOngoingLiveState } from './useOngoingLive';
|
|
10
9
|
export { refreshOngoingLive } from '../ongoingLiveStore';
|
|
11
10
|
export { useLiveStreams, type UseLiveStreamsState } from './useLiveStreams';
|
|
12
11
|
export { useAuction, type UseAuctionState } from './useAuction';
|
|
13
12
|
export { useReplays, type UseReplaysOptions, type UseReplaysState } from './useReplays';
|
|
14
|
-
export { useClips, type
|
|
15
|
-
export { useFeaturedClip, forgetFeaturedClips, type UseFeaturedClipOptions, type UseFeaturedClipState } from './useFeaturedClip';
|
|
16
|
-
export { useGiveawayPrizes } from './useGiveawayPrizes';
|
|
13
|
+
export { useClips, type UseClipsState } from './useClips';
|
|
17
14
|
export { LiveSessionProvider, useLiveSession, type LiveSessionProviderProps, } from './useLiveSession';
|
|
18
|
-
export {
|
|
19
|
-
export { useAuctionCountdown, useShowClock } from './clocks';
|
|
20
|
-
export { useStreamInfo, refreshStreamRecords, refreshStreamRecordsIfStale, type UseStreamInfoState, } from './useStreamInfo';
|
|
15
|
+
export { useStreamInfo, refreshStreamRecords, refreshStreamRecordsIfStale, } from './useStreamInfo';
|
|
21
16
|
export { LiveVideoTarget, NativeVideoView, isNativeVideoSupported, type LiveVideoTargetProps, } from './LiveVideoTarget';
|
|
22
|
-
export { useAuctionBidGate, SHEET_HANDOFF_MS,
|
|
23
|
-
export { useGiveawayEntry, type GiveawayDraw, type UseGiveawayEntryState, type SessionForGiveaway, type UseGiveawayEntryOptions, } from './useGiveawayEntry';
|
|
24
|
-
export { useGiveawayPrize, type UseGiveawayPrizeState } from './useGiveawayPrize';
|
|
25
|
-
export { useCommentLinkCards, type CommentLinkCards } from './useCommentLinkCards';
|
|
26
|
-
export { useSilentAuctionLots, type UseSilentAuctionLotsOptions, type SilentAuctionLotsPage } from './useSilentAuctionLots';
|
|
27
|
-
export { useSilentAuctionLot, type UseSilentAuctionLotOptions, type SilentAuctionLotConsole } from './useSilentAuctionLot';
|
|
28
|
-
export { useMySilentAuctionBids, type UseMySilentAuctionBidsOptions, type MySilentAuctionBidsPage } from './useMySilentAuctionBids';
|
|
29
|
-
export { useSilentAuctionRounds, type UseSilentAuctionRoundsOptions, type SilentAuctionRounds } from './useSilentAuctionRounds';
|
|
17
|
+
export { useAuctionBidGate, SHEET_HANDOFF_MS, type AuctionBidGate, type BidBlocker } from './useAuctionBidGate';
|
|
30
18
|
export { useAuctionWins, type AuctionWinRow, type UseAuctionWinsOptions, type UseAuctionWinsState, } from './useAuctionWins';
|
|
31
|
-
export { useItemsYouWonPage, useLiveHubPage, useLiveRail } from './showPagesOnDevice';
|
|
32
|
-
export { useItemsYouWonPageFor, useLiveHubPageFor, useLiveRailFor, SHOWS_PAGE_SIZE, type ItemsYouWonPage, type LiveHubPage, type LiveRail, type SessionForShowPages, type UseItemsYouWonPageOptions, type UseLiveHubPageOptions, } from './showPages';
|
|
33
19
|
export { nativeViewTag } from '../nativeViewTag';
|
|
34
|
-
export { useLivePageOptions } from './LiveSellingProvider';
|
|
35
|
-
export { ShopifyLiveSellingProvider, ShopifyLiveSessionProvider, type ShopifyLiveSellingConfig, type ShopifyLiveSellingProviderProps, type ShopifyLiveSessionProviderProps, } from './shopifyProviders';
|
|
36
|
-
export { ReplayPlayerProvider, useReplayPlayer, type ReplayPlayerState } from './replayPlayer';
|
|
37
|
-
export { useAutoPictureInPicture } from './systemPictureInPicture';
|
|
38
|
-
export { useKeepScreenAwake } from './useKeepScreenAwake';
|
|
39
|
-
export { useLivePage, RESTRICTIONS_REFRESH_MS, type LivePage } from './useLivePage';
|
|
40
|
-
export { useLiveChat, type LiveChat, type LiveChatShow } from './useLiveChat';
|
|
41
|
-
export { useLiveShop, shareProduct, shareAddress, SHARE_AGAIN_AFTER_MS, type LiveShop, type LiveShopScreen } from './useLiveShop';
|
|
42
|
-
export { useLiveAuction, type LiveAuction, type LiveAuctionScreen } from './useLiveAuction';
|
|
43
|
-
export { useLiveGiveawaysAndPolls, type LiveGiveawaysAndPolls } from './useLiveGiveawaysAndPolls';
|
|
44
|
-
export { useReplayPage, type ReplayPage, type UseReplayPageOptions } from './useReplayPage';
|
|
45
|
-
export { useAccountName, type AccountName } from './useAccountName';
|
|
46
|
-
export { useClipsPage, type ClipsPage } from './useClipsPage';
|
|
47
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,GAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAChH,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.useClipsPage = exports.useAccountName = exports.useReplayPage = exports.useLiveGiveawaysAndPolls = exports.useLiveAuction = exports.SHARE_AGAIN_AFTER_MS = exports.shareAddress = exports.shareProduct = exports.useLiveShop = exports.useLiveChat = exports.RESTRICTIONS_REFRESH_MS = void 0;
|
|
3
|
+
exports.nativeViewTag = exports.useAuctionWins = exports.SHEET_HANDOFF_MS = exports.useAuctionBidGate = exports.isNativeVideoSupported = exports.NativeVideoView = exports.LiveVideoTarget = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useLiveSession = exports.LiveSessionProvider = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
5
4
|
/**
|
|
6
5
|
* React helpers for `@tiledev/sdk-apptile-live-selling` — the provider and the read hooks.
|
|
7
6
|
*
|
|
@@ -11,8 +10,6 @@ exports.useClipsPage = exports.useAccountName = exports.useReplayPage = exports.
|
|
|
11
10
|
var LiveSellingProvider_1 = require("./LiveSellingProvider");
|
|
12
11
|
Object.defineProperty(exports, "LiveSellingProvider", { enumerable: true, get: function () { return LiveSellingProvider_1.LiveSellingProvider; } });
|
|
13
12
|
Object.defineProperty(exports, "useLiveSelling", { enumerable: true, get: function () { return LiveSellingProvider_1.useLiveSelling; } });
|
|
14
|
-
var useHiddenShows_1 = require("./useHiddenShows");
|
|
15
|
-
Object.defineProperty(exports, "useHiddenShows", { enumerable: true, get: function () { return useHiddenShows_1.useHiddenShows; } });
|
|
16
13
|
var useOngoingLive_1 = require("./useOngoingLive");
|
|
17
14
|
Object.defineProperty(exports, "useOngoingLive", { enumerable: true, get: function () { return useOngoingLive_1.useOngoingLive; } });
|
|
18
15
|
var ongoingLiveStore_1 = require("../ongoingLiveStore");
|
|
@@ -25,22 +22,10 @@ var useReplays_1 = require("./useReplays");
|
|
|
25
22
|
Object.defineProperty(exports, "useReplays", { enumerable: true, get: function () { return useReplays_1.useReplays; } });
|
|
26
23
|
var useClips_1 = require("./useClips");
|
|
27
24
|
Object.defineProperty(exports, "useClips", { enumerable: true, get: function () { return useClips_1.useClips; } });
|
|
28
|
-
var useFeaturedClip_1 = require("./useFeaturedClip");
|
|
29
|
-
Object.defineProperty(exports, "useFeaturedClip", { enumerable: true, get: function () { return useFeaturedClip_1.useFeaturedClip; } });
|
|
30
|
-
Object.defineProperty(exports, "forgetFeaturedClips", { enumerable: true, get: function () { return useFeaturedClip_1.forgetFeaturedClips; } });
|
|
31
|
-
var useGiveawayPrizes_1 = require("./useGiveawayPrizes");
|
|
32
|
-
Object.defineProperty(exports, "useGiveawayPrizes", { enumerable: true, get: function () { return useGiveawayPrizes_1.useGiveawayPrizes; } });
|
|
33
25
|
// The assembled session: the engine's events plus the polled record, folded into one state.
|
|
34
26
|
var useLiveSession_1 = require("./useLiveSession");
|
|
35
27
|
Object.defineProperty(exports, "LiveSessionProvider", { enumerable: true, get: function () { return useLiveSession_1.LiveSessionProvider; } });
|
|
36
28
|
Object.defineProperty(exports, "useLiveSession", { enumerable: true, get: function () { return useLiveSession_1.useLiveSession; } });
|
|
37
|
-
// The show a screen is about, once the session holds its record (0.9.0).
|
|
38
|
-
var useLiveShow_1 = require("./useLiveShow");
|
|
39
|
-
Object.defineProperty(exports, "useLiveShow", { enumerable: true, get: function () { return useLiveShow_1.useLiveShow; } });
|
|
40
|
-
// The clocks a screen shows, kept in the component that shows them: the session itself never ticks.
|
|
41
|
-
var clocks_1 = require("./clocks");
|
|
42
|
-
Object.defineProperty(exports, "useAuctionCountdown", { enumerable: true, get: function () { return clocks_1.useAuctionCountdown; } });
|
|
43
|
-
Object.defineProperty(exports, "useShowClock", { enumerable: true, get: function () { return clocks_1.useShowClock; } });
|
|
44
29
|
var useStreamInfo_1 = require("./useStreamInfo");
|
|
45
30
|
Object.defineProperty(exports, "useStreamInfo", { enumerable: true, get: function () { return useStreamInfo_1.useStreamInfo; } });
|
|
46
31
|
Object.defineProperty(exports, "refreshStreamRecords", { enumerable: true, get: function () { return useStreamInfo_1.refreshStreamRecords; } });
|
|
@@ -52,72 +37,9 @@ Object.defineProperty(exports, "isNativeVideoSupported", { enumerable: true, get
|
|
|
52
37
|
var useAuctionBidGate_1 = require("./useAuctionBidGate");
|
|
53
38
|
Object.defineProperty(exports, "useAuctionBidGate", { enumerable: true, get: function () { return useAuctionBidGate_1.useAuctionBidGate; } });
|
|
54
39
|
Object.defineProperty(exports, "SHEET_HANDOFF_MS", { enumerable: true, get: function () { return useAuctionBidGate_1.SHEET_HANDOFF_MS; } });
|
|
55
|
-
Object.defineProperty(exports, "ACCOUNT_CHECK_LIMIT_MS", { enumerable: true, get: function () { return useAuctionBidGate_1.ACCOUNT_CHECK_LIMIT_MS; } });
|
|
56
|
-
// The giveaway's flows on a screen (0.9.0): the entry, its sheet and sign-in, the draw; the prize.
|
|
57
|
-
var useGiveawayEntry_1 = require("./useGiveawayEntry");
|
|
58
|
-
Object.defineProperty(exports, "useGiveawayEntry", { enumerable: true, get: function () { return useGiveawayEntry_1.useGiveawayEntry; } });
|
|
59
|
-
var useGiveawayPrize_1 = require("./useGiveawayPrize");
|
|
60
|
-
Object.defineProperty(exports, "useGiveawayPrize", { enumerable: true, get: function () { return useGiveawayPrize_1.useGiveawayPrize; } });
|
|
61
|
-
var useCommentLinkCards_1 = require("./useCommentLinkCards");
|
|
62
|
-
Object.defineProperty(exports, "useCommentLinkCards", { enumerable: true, get: function () { return useCommentLinkCards_1.useCommentLinkCards; } });
|
|
63
|
-
var useSilentAuctionLots_1 = require("./useSilentAuctionLots");
|
|
64
|
-
Object.defineProperty(exports, "useSilentAuctionLots", { enumerable: true, get: function () { return useSilentAuctionLots_1.useSilentAuctionLots; } });
|
|
65
|
-
var useSilentAuctionLot_1 = require("./useSilentAuctionLot");
|
|
66
|
-
Object.defineProperty(exports, "useSilentAuctionLot", { enumerable: true, get: function () { return useSilentAuctionLot_1.useSilentAuctionLot; } });
|
|
67
|
-
var useMySilentAuctionBids_1 = require("./useMySilentAuctionBids");
|
|
68
|
-
Object.defineProperty(exports, "useMySilentAuctionBids", { enumerable: true, get: function () { return useMySilentAuctionBids_1.useMySilentAuctionBids; } });
|
|
69
|
-
var useSilentAuctionRounds_1 = require("./useSilentAuctionRounds");
|
|
70
|
-
Object.defineProperty(exports, "useSilentAuctionRounds", { enumerable: true, get: function () { return useSilentAuctionRounds_1.useSilentAuctionRounds; } });
|
|
71
40
|
var useAuctionWins_1 = require("./useAuctionWins");
|
|
72
41
|
Object.defineProperty(exports, "useAuctionWins", { enumerable: true, get: function () { return useAuctionWins_1.useAuctionWins; } });
|
|
73
|
-
// The page models (0.11.0): Items You Won, the Live tab, a home screen's live rail.
|
|
74
|
-
var showPagesOnDevice_1 = require("./showPagesOnDevice");
|
|
75
|
-
Object.defineProperty(exports, "useItemsYouWonPage", { enumerable: true, get: function () { return showPagesOnDevice_1.useItemsYouWonPage; } });
|
|
76
|
-
Object.defineProperty(exports, "useLiveHubPage", { enumerable: true, get: function () { return showPagesOnDevice_1.useLiveHubPage; } });
|
|
77
|
-
Object.defineProperty(exports, "useLiveRail", { enumerable: true, get: function () { return showPagesOnDevice_1.useLiveRail; } });
|
|
78
|
-
var showPages_1 = require("./showPages");
|
|
79
|
-
Object.defineProperty(exports, "useItemsYouWonPageFor", { enumerable: true, get: function () { return showPages_1.useItemsYouWonPageFor; } });
|
|
80
|
-
Object.defineProperty(exports, "useLiveHubPageFor", { enumerable: true, get: function () { return showPages_1.useLiveHubPageFor; } });
|
|
81
|
-
Object.defineProperty(exports, "useLiveRailFor", { enumerable: true, get: function () { return showPages_1.useLiveRailFor; } });
|
|
82
|
-
Object.defineProperty(exports, "SHOWS_PAGE_SIZE", { enumerable: true, get: function () { return showPages_1.SHOWS_PAGE_SIZE; } });
|
|
83
42
|
// React Native only, so it lives here rather than on the root entry.
|
|
84
43
|
var nativeViewTag_1 = require("../nativeViewTag");
|
|
85
44
|
Object.defineProperty(exports, "nativeViewTag", { enumerable: true, get: function () { return nativeViewTag_1.nativeViewTag; } });
|
|
86
|
-
// The Live and Replay pages (0.14.0, moved from amore-v2): what the app gives them once
|
|
87
|
-
// (`LiveSellingProvider`'s `routes`, `track`, `onWarning`, `shopName`), the providers on sdk-shopify, the
|
|
88
|
-
// replay player, and the page models a screen's tiles take their props from.
|
|
89
|
-
var LiveSellingProvider_2 = require("./LiveSellingProvider");
|
|
90
|
-
Object.defineProperty(exports, "useLivePageOptions", { enumerable: true, get: function () { return LiveSellingProvider_2.useLivePageOptions; } });
|
|
91
|
-
var shopifyProviders_1 = require("./shopifyProviders");
|
|
92
|
-
Object.defineProperty(exports, "ShopifyLiveSellingProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSellingProvider; } });
|
|
93
|
-
Object.defineProperty(exports, "ShopifyLiveSessionProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSessionProvider; } });
|
|
94
|
-
var replayPlayer_1 = require("./replayPlayer");
|
|
95
|
-
Object.defineProperty(exports, "ReplayPlayerProvider", { enumerable: true, get: function () { return replayPlayer_1.ReplayPlayerProvider; } });
|
|
96
|
-
Object.defineProperty(exports, "useReplayPlayer", { enumerable: true, get: function () { return replayPlayer_1.useReplayPlayer; } });
|
|
97
|
-
// The phone's own picture-in-picture window, for any surface that draws a show's video (0.15.2).
|
|
98
|
-
var systemPictureInPicture_1 = require("./systemPictureInPicture");
|
|
99
|
-
Object.defineProperty(exports, "useAutoPictureInPicture", { enumerable: true, get: function () { return systemPictureInPicture_1.useAutoPictureInPicture; } });
|
|
100
|
-
var useKeepScreenAwake_1 = require("./useKeepScreenAwake");
|
|
101
|
-
Object.defineProperty(exports, "useKeepScreenAwake", { enumerable: true, get: function () { return useKeepScreenAwake_1.useKeepScreenAwake; } });
|
|
102
|
-
var useLivePage_1 = require("./useLivePage");
|
|
103
|
-
Object.defineProperty(exports, "useLivePage", { enumerable: true, get: function () { return useLivePage_1.useLivePage; } });
|
|
104
|
-
Object.defineProperty(exports, "RESTRICTIONS_REFRESH_MS", { enumerable: true, get: function () { return useLivePage_1.RESTRICTIONS_REFRESH_MS; } });
|
|
105
|
-
var useLiveChat_1 = require("./useLiveChat");
|
|
106
|
-
Object.defineProperty(exports, "useLiveChat", { enumerable: true, get: function () { return useLiveChat_1.useLiveChat; } });
|
|
107
|
-
var useLiveShop_1 = require("./useLiveShop");
|
|
108
|
-
Object.defineProperty(exports, "useLiveShop", { enumerable: true, get: function () { return useLiveShop_1.useLiveShop; } });
|
|
109
|
-
Object.defineProperty(exports, "shareProduct", { enumerable: true, get: function () { return useLiveShop_1.shareProduct; } });
|
|
110
|
-
Object.defineProperty(exports, "shareAddress", { enumerable: true, get: function () { return useLiveShop_1.shareAddress; } });
|
|
111
|
-
Object.defineProperty(exports, "SHARE_AGAIN_AFTER_MS", { enumerable: true, get: function () { return useLiveShop_1.SHARE_AGAIN_AFTER_MS; } });
|
|
112
|
-
var useLiveAuction_1 = require("./useLiveAuction");
|
|
113
|
-
Object.defineProperty(exports, "useLiveAuction", { enumerable: true, get: function () { return useLiveAuction_1.useLiveAuction; } });
|
|
114
|
-
var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
|
|
115
|
-
Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
|
|
116
|
-
var useReplayPage_1 = require("./useReplayPage");
|
|
117
|
-
Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
|
|
118
|
-
// 0.15.0: the name on the shopper's account, for the name asks; the Clips page.
|
|
119
|
-
var useAccountName_1 = require("./useAccountName");
|
|
120
|
-
Object.defineProperty(exports, "useAccountName", { enumerable: true, get: function () { return useAccountName_1.useAccountName; } });
|
|
121
|
-
var useClipsPage_1 = require("./useClipsPage");
|
|
122
|
-
Object.defineProperty(exports, "useClipsPage", { enumerable: true, get: function () { return useClipsPage_1.useClipsPage; } });
|
|
123
45
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,6DAK+B;AAJ7B,0HAAA,mBAAmB,OAAA;AACnB,qHAAA,cAAc,OAAA;AAIhB,mDAA4E;AAAnE,gHAAA,cAAc,OAAA;AACvB,wDAAyD;AAAhD,sHAAA,kBAAkB,OAAA;AAC3B,mDAA4E;AAAnE,gHAAA,cAAc,OAAA;AACvB,2CAAgE;AAAvD,wGAAA,UAAU,OAAA;AACnB,2CAAwF;AAA/E,wGAAA,UAAU,OAAA;AACnB,uCAA0D;AAAjD,oGAAA,QAAQ,OAAA;AAEjB,4FAA4F;AAC5F,mDAI0B;AAHxB,qHAAA,mBAAmB,OAAA;AACnB,gHAAA,cAAc,OAAA;AAGhB,iDAIyB;AAHvB,8GAAA,aAAa,OAAA;AACb,qHAAA,oBAAoB,OAAA;AACpB,4HAAA,2BAA2B,OAAA;AAE7B,qDAK2B;AAJzB,kHAAA,eAAe,OAAA;AACf,kHAAA,eAAe,OAAA;AACf,yHAAA,sBAAsB,OAAA;AAGxB,yDAAgH;AAAvG,sHAAA,iBAAiB,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAC5C,mDAK0B;AAJxB,gHAAA,cAAc,OAAA;AAKhB,qEAAqE;AACrE,kDAAiD;AAAxC,8GAAA,aAAa,OAAA"}
|
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { LiveSession } from '../sessionTypes';
|
|
4
|
+
import type { AuctionBidGate, UseAuctionBidGateOptions } from './useAuctionBidGate';
|
|
5
|
+
import type { UseAuctionWinsOptions, UseAuctionWinsState } from './useAuctionWins';
|
|
6
|
+
import type { LiveSessionProviderProps } from './useLiveSession';
|
|
7
|
+
import type { LiveVideoTargetProps } from './LiveVideoTarget';
|
|
2
8
|
export { LiveSellingProvider, useLiveSelling, type LiveSellingProviderProps, type LiveSellingContextType, } from './LiveSellingProvider';
|
|
3
|
-
export { useHiddenShows, type HiddenShowsForViewer } from './useHiddenShows';
|
|
4
9
|
export { useOngoingLive, type UseOngoingLiveState } from './useOngoingLive';
|
|
5
10
|
export { refreshOngoingLive } from '../ongoingLiveStore';
|
|
6
11
|
export { useLiveStreams, type UseLiveStreamsState } from './useLiveStreams';
|
|
7
12
|
export { useAuction, type UseAuctionState } from './useAuction';
|
|
8
13
|
export { useReplays, type UseReplaysOptions, type UseReplaysState } from './useReplays';
|
|
9
|
-
export { useClips, type
|
|
10
|
-
export {
|
|
11
|
-
export { useGiveawayPrizes } from './useGiveawayPrizes';
|
|
12
|
-
export { useStreamInfo, refreshStreamRecords, refreshStreamRecordsIfStale, type UseStreamInfoState, } from './useStreamInfo';
|
|
13
|
-
export { useAuctionCountdown, useShowClock } from './clocks';
|
|
14
|
-
export { useGiveawayEntry, type GiveawayDraw, type UseGiveawayEntryState, type SessionForGiveaway, type UseGiveawayEntryOptions, } from './useGiveawayEntry';
|
|
15
|
-
export { useGiveawayPrize, type UseGiveawayPrizeState } from './useGiveawayPrize';
|
|
16
|
-
export { useCommentLinkCards, type CommentLinkCards } from './useCommentLinkCards';
|
|
17
|
-
export { useSilentAuctionLots, type UseSilentAuctionLotsOptions, type SilentAuctionLotsPage } from './useSilentAuctionLots';
|
|
18
|
-
export { useSilentAuctionLot, type UseSilentAuctionLotOptions, type SilentAuctionLotConsole } from './useSilentAuctionLot';
|
|
19
|
-
export { useMySilentAuctionBids, type UseMySilentAuctionBidsOptions, type MySilentAuctionBidsPage } from './useMySilentAuctionBids';
|
|
20
|
-
export { useSilentAuctionRounds, type UseSilentAuctionRoundsOptions, type SilentAuctionRounds } from './useSilentAuctionRounds';
|
|
14
|
+
export { useClips, type UseClipsState } from './useClips';
|
|
15
|
+
export { useStreamInfo, refreshStreamRecords, refreshStreamRecordsIfStale, } from './useStreamInfo';
|
|
21
16
|
export { nativeViewTag } from '../nativeViewTag';
|
|
22
|
-
export
|
|
23
|
-
export type { AuctionBidGate, BidBlocker, BidRefusal, UseAuctionBidGateOptions } from './useAuctionBidGate';
|
|
17
|
+
export type { AuctionBidGate, BidBlocker } from './useAuctionBidGate';
|
|
24
18
|
export type { AuctionWinRow, UseAuctionWinsOptions, UseAuctionWinsState } from './useAuctionWins';
|
|
25
19
|
export type { LiveSessionProviderProps } from './useLiveSession';
|
|
26
20
|
export type { LiveVideoTargetProps } from './LiveVideoTarget';
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export
|
|
40
|
-
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
21
|
+
export declare function LiveSessionProvider({ children }: LiveSessionProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSession | null>>;
|
|
22
|
+
/**
|
|
23
|
+
* The idle session, read without touching the context: a surface rendered outside the provider
|
|
24
|
+
* behaves the same as one inside it, because on the web there is only ever this one session.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useLiveSession<TRaw = unknown>(): LiveSession<TRaw>;
|
|
27
|
+
export declare const isNativeVideoSupported = false;
|
|
28
|
+
/**
|
|
29
|
+
* A plain `View`, which is what the native file falls back to on a build without the Zego SDK:
|
|
30
|
+
* callers position this and draw a poster over it, so returning null would collapse the layout the
|
|
31
|
+
* poster depends on.
|
|
32
|
+
*/
|
|
33
|
+
export declare const NativeVideoView: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<unknown>>;
|
|
34
|
+
export declare function LiveVideoTarget({ style, children }: LiveVideoTargetProps): import("react").CElement<ViewProps, View>;
|
|
35
|
+
export declare const SHEET_HANDOFF_MS = 380;
|
|
36
|
+
/** Never blocks, because there is no bid to gate — `placeBid` above resolves without sending. */
|
|
37
|
+
export declare function useAuctionBidGate(_options: UseAuctionBidGateOptions): AuctionBidGate;
|
|
38
|
+
/**
|
|
39
|
+
* An empty tab rather than a failure. The wins metafield is readable from a browser, but settling one
|
|
40
|
+
* mints a cart and sends the shopper to checkout — not something a preview should be able to start.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useAuctionWins<TRaw = unknown>(_options?: UseAuctionWinsOptions): UseAuctionWinsState<TRaw>;
|
|
47
43
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAAiB,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,K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