@tiledev/sdk-apptile-live-selling 0.12.1 → 0.14.0
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/README.md +116 -19
- package/dist/giveawayPrizeLines.d.ts +10 -0
- package/dist/giveawayPrizeLines.d.ts.map +1 -1
- package/dist/giveawayPrizeLines.js +11 -1
- package/dist/giveawayPrizeLines.js.map +1 -1
- package/dist/heldComments.d.ts +13 -2
- package/dist/heldComments.d.ts.map +1 -1
- package/dist/heldComments.js +16 -2
- package/dist/heldComments.js.map +1 -1
- package/dist/hiddenShows.d.ts +10 -0
- package/dist/hiddenShows.d.ts.map +1 -1
- package/dist/hiddenShows.js +11 -0
- package/dist/hiddenShows.js.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -2
- package/dist/index.js.map +1 -1
- package/dist/livePages.d.ts +79 -0
- package/dist/livePages.d.ts.map +1 -0
- package/dist/livePages.js +90 -0
- package/dist/livePages.js.map +1 -0
- package/dist/liveRoom.d.ts +21 -0
- package/dist/liveRoom.d.ts.map +1 -0
- package/dist/liveRoom.js +28 -0
- package/dist/liveRoom.js.map +1 -0
- package/dist/pageOptions.d.ts +100 -0
- package/dist/pageOptions.d.ts.map +1 -0
- package/dist/pageOptions.js +82 -0
- package/dist/pageOptions.js.map +1 -0
- package/dist/pageTypes.d.ts +127 -0
- package/dist/pageTypes.d.ts.map +1 -0
- package/dist/pageTypes.js +3 -0
- package/dist/pageTypes.js.map +1 -0
- package/dist/react/LiveSellingProvider.d.ts +23 -1
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +26 -2
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/index.d.ts +10 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +29 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.web.d.ts +11 -32
- package/dist/react/index.web.d.ts.map +1 -1
- package/dist/react/index.web.js +46 -139
- package/dist/react/index.web.js.map +1 -1
- package/dist/react/navigation.d.ts +13 -0
- package/dist/react/navigation.d.ts.map +1 -0
- package/dist/react/navigation.js +7 -0
- package/dist/react/navigation.js.map +1 -0
- package/dist/react/platformSession.d.ts +16 -0
- package/dist/react/platformSession.d.ts.map +1 -0
- package/dist/react/platformSession.js +28 -0
- package/dist/react/platformSession.js.map +1 -0
- package/dist/react/platformSession.web.d.ts +35 -0
- package/dist/react/platformSession.web.d.ts.map +1 -0
- package/dist/react/platformSession.web.js +148 -0
- package/dist/react/platformSession.web.js.map +1 -0
- package/dist/react/replayPlayer.d.ts +74 -0
- package/dist/react/replayPlayer.d.ts.map +1 -0
- package/dist/react/replayPlayer.js +279 -0
- package/dist/react/replayPlayer.js.map +1 -0
- package/dist/react/shopifyProviders.d.ts +68 -0
- package/dist/react/shopifyProviders.d.ts.map +1 -0
- package/dist/react/shopifyProviders.js +98 -0
- package/dist/react/shopifyProviders.js.map +1 -0
- package/dist/react/showPages.d.ts +5 -1
- package/dist/react/showPages.d.ts.map +1 -1
- package/dist/react/showPages.js +14 -5
- package/dist/react/showPages.js.map +1 -1
- package/dist/react/useKeepScreenAwake.d.ts +2 -0
- package/dist/react/useKeepScreenAwake.d.ts.map +1 -0
- package/dist/react/useKeepScreenAwake.js +34 -0
- package/dist/react/useKeepScreenAwake.js.map +1 -0
- package/dist/react/useLiveAuction.d.ts +104 -0
- package/dist/react/useLiveAuction.d.ts.map +1 -0
- package/dist/react/useLiveAuction.js +244 -0
- package/dist/react/useLiveAuction.js.map +1 -0
- package/dist/react/useLiveChat.d.ts +75 -0
- package/dist/react/useLiveChat.d.ts.map +1 -0
- package/dist/react/useLiveChat.js +131 -0
- package/dist/react/useLiveChat.js.map +1 -0
- package/dist/react/useLiveGiveawaysAndPolls.d.ts +84 -0
- package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +1 -0
- package/dist/react/useLiveGiveawaysAndPolls.js +180 -0
- package/dist/react/useLiveGiveawaysAndPolls.js.map +1 -0
- package/dist/react/useLivePage.d.ts +113 -0
- package/dist/react/useLivePage.d.ts.map +1 -0
- package/dist/react/useLivePage.js +264 -0
- package/dist/react/useLivePage.js.map +1 -0
- package/dist/react/useLiveSession.d.ts +8 -0
- package/dist/react/useLiveSession.d.ts.map +1 -1
- package/dist/react/useLiveSession.js +43 -27
- package/dist/react/useLiveSession.js.map +1 -1
- package/dist/react/useLiveShop.d.ts +83 -0
- package/dist/react/useLiveShop.d.ts.map +1 -0
- package/dist/react/useLiveShop.js +165 -0
- package/dist/react/useLiveShop.js.map +1 -0
- package/dist/react/useReplayPage.d.ts +117 -0
- package/dist/react/useReplayPage.d.ts.map +1 -0
- package/dist/react/useReplayPage.js +504 -0
- package/dist/react/useReplayPage.js.map +1 -0
- package/dist/sessionTypes.d.ts +17 -9
- package/dist/sessionTypes.d.ts.map +1 -1
- package/dist/sessionTypes.js.map +1 -1
- package/dist/shopifyIdentity.d.ts +7 -4
- package/dist/shopifyIdentity.d.ts.map +1 -1
- package/dist/shopifyIdentity.js +11 -5
- package/dist/shopifyIdentity.js.map +1 -1
- package/dist/showCredit.d.ts +87 -0
- package/dist/showCredit.d.ts.map +1 -0
- package/dist/showCredit.js +120 -0
- package/dist/showCredit.js.map +1 -0
- package/dist/showNames.d.ts +24 -3
- package/dist/showNames.d.ts.map +1 -1
- package/dist/showNames.js +57 -10
- package/dist/showNames.js.map +1 -1
- package/dist/showPages.d.ts +12 -0
- package/dist/showPages.d.ts.map +1 -1
- package/dist/showPages.js +10 -0
- package/dist/showPages.js.map +1 -1
- package/dist/ui/BubbleFrame.d.ts +38 -0
- package/dist/ui/BubbleFrame.d.ts.map +1 -0
- package/dist/ui/BubbleFrame.js +181 -0
- package/dist/ui/BubbleFrame.js.map +1 -0
- package/dist/ui/LiveBubble.d.ts +37 -0
- package/dist/ui/LiveBubble.d.ts.map +1 -0
- package/dist/ui/LiveBubble.js +101 -0
- package/dist/ui/LiveBubble.js.map +1 -0
- package/dist/ui/ReplayBubble.d.ts +23 -0
- package/dist/ui/ReplayBubble.d.ts.map +1 -0
- package/dist/ui/ReplayBubble.js +65 -0
- package/dist/ui/ReplayBubble.js.map +1 -0
- package/dist/ui.d.ts +27 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +34 -0
- package/dist/ui.js.map +1 -0
- package/package.json +36 -5
- package/ui/package.json +6 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LiveSellingProvider = LiveSellingProvider;
|
|
4
4
|
exports.useLiveSelling = useLiveSelling;
|
|
5
|
+
exports.useLivePageOptions = useLivePageOptions;
|
|
5
6
|
/**
|
|
6
7
|
* `LiveSellingProvider` — configures the client once and exposes readiness + the client to the tree.
|
|
7
8
|
*
|
|
@@ -14,13 +15,22 @@ exports.useLiveSelling = useLiveSelling;
|
|
|
14
15
|
*
|
|
15
16
|
* `viewerEmail` is who is watching, for the hidden shows (`config.hiddenShows`); `useHiddenShows`
|
|
16
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) are what the live pages need from the app
|
|
20
|
+
* (`pageOptions.ts`): the page hooks read them through `useLivePageOptions`, and the bubbles too.
|
|
17
21
|
*/
|
|
18
22
|
const react_1 = require("react");
|
|
19
23
|
const liveSelling_1 = require("../liveSelling");
|
|
24
|
+
const pageOptions_1 = require("../pageOptions");
|
|
20
25
|
const LiveSellingContext = (0, react_1.createContext)(undefined);
|
|
21
|
-
|
|
26
|
+
/** The defaults, for a hook rendered without the provider: no routes, no analytics, no store name. */
|
|
27
|
+
const LivePageOptionsContext = (0, react_1.createContext)((0, pageOptions_1.pageOptionsReading)(() => ({})));
|
|
28
|
+
function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, }) {
|
|
22
29
|
const [ready, setReady] = (0, react_1.useState)(false);
|
|
23
30
|
const [error, setError] = (0, react_1.useState)(null);
|
|
31
|
+
// Set as the provider draws rather than in an effect: the screens below run their effects first, and
|
|
32
|
+
// a failure reported there must reach the app's `onWarning`, not the console.
|
|
33
|
+
(0, pageOptions_1.setLiveWarningSink)(onWarning);
|
|
24
34
|
(0, react_1.useEffect)(() => {
|
|
25
35
|
try {
|
|
26
36
|
liveSelling_1.liveSelling.configure(config);
|
|
@@ -42,7 +52,13 @@ function LiveSellingProvider({ children, config, onEvent, viewerEmail }) {
|
|
|
42
52
|
}, [onEvent]);
|
|
43
53
|
const email = (viewerEmail === null || viewerEmail === void 0 ? void 0 : viewerEmail.trim()) || null;
|
|
44
54
|
const value = (0, react_1.useMemo)(() => ({ ready, error, client: liveSelling_1.liveSelling, viewerEmail: email }), [ready, error, email]);
|
|
45
|
-
|
|
55
|
+
// The routes and `track` keep one identity for the provider's life, reading the latest props when
|
|
56
|
+
// taken, so the page hooks' effects don't run again each time the app draws.
|
|
57
|
+
const latestPageProps = (0, react_1.useRef)({ routes, track, shopName });
|
|
58
|
+
latestPageProps.current = { routes, track, shopName };
|
|
59
|
+
const stablePageOptions = (0, react_1.useMemo)(() => (0, pageOptions_1.pageOptionsReading)(() => latestPageProps.current), []);
|
|
60
|
+
const pageOptions = (0, react_1.useMemo)(() => ({ routes: stablePageOptions.routes, track: stablePageOptions.track, shopName: shopName !== null && shopName !== void 0 ? shopName : undefined }), [stablePageOptions, shopName]);
|
|
61
|
+
return (0, react_1.createElement)(LiveSellingContext.Provider, { value }, (0, react_1.createElement)(LivePageOptionsContext.Provider, { value: pageOptions }, children));
|
|
46
62
|
}
|
|
47
63
|
function useLiveSelling() {
|
|
48
64
|
const ctx = (0, react_1.useContext)(LiveSellingContext);
|
|
@@ -50,4 +66,12 @@ function useLiveSelling() {
|
|
|
50
66
|
throw new Error('useLiveSelling must be used within a LiveSellingProvider');
|
|
51
67
|
return ctx;
|
|
52
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* What the live pages need from the app (0.14.0), as `LiveSellingProvider` was given it: `routes`,
|
|
71
|
+
* `track` and `shopName`, with their defaults outside a provider. The routes and `track` keep one
|
|
72
|
+
* identity, so an app's own screen can take the same routes the page hooks do.
|
|
73
|
+
*/
|
|
74
|
+
function useLivePageOptions() {
|
|
75
|
+
return (0, react_1.useContext)(LivePageOptionsContext);
|
|
76
|
+
}
|
|
53
77
|
//# 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":";;AAwEA,kDAyDC;AAED,wCAIC;AAOD,gDAEC;AAhJD;;;;;;;;;;;;;;;GAeG;AACH,iCAAuG;AAGvG,gDAA6C;AAC7C,gDAOwB;AAwCxB,MAAM,kBAAkB,GAAG,IAAA,qBAAa,EAAqC,SAAS,CAAC,CAAC;AAExF,sGAAsG;AACtG,MAAM,sBAAsB,GAAG,IAAA,qBAAa,EAAkB,IAAA,gCAAkB,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9F,SAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,GACiB;IACzB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,CAAC,CAAC;IAExD,qGAAqG;IACrG,8EAA8E;IAC9E,IAAA,gCAAkB,EAAC,SAAS,CAAC,CAAC;IAE9B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAA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GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,gCAAkB,EAAC,GAAG,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/F,MAAM,WAAW,GAAG,IAAA,eAAO,EACzB,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,EAAE,CAAC,EAC7G,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAC9B,CAAC;IAEF,OAAO,IAAA,qBAAa,EAClB,kBAAkB,CAAC,QAAQ,EAC3B,EAAE,KAAK,EAAE,EACT,IAAA,qBAAa,EAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,QAAQ,CAAC,CACjF,CAAC;AACJ,CAAC;AAED,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,kBAAkB,CAAC,CAAC;IAC3C,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IACtF,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB;IAChC,OAAO,IAAA,kBAAU,EAAC,sBAAsB,CAAC,CAAC;AAC5C,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -29,4 +29,14 @@ export { useAuctionWins, type AuctionWinRow, type UseAuctionWinsOptions, type Us
|
|
|
29
29
|
export { useItemsYouWonPage, useLiveHubPage, useLiveRail } from './showPagesOnDevice';
|
|
30
30
|
export { useItemsYouWonPageFor, useLiveHubPageFor, useLiveRailFor, SHOWS_PAGE_SIZE, type ItemsYouWonPage, type LiveHubPage, type LiveRail, type SessionForShowPages, type UseItemsYouWonPageOptions, type UseLiveHubPageOptions, } from './showPages';
|
|
31
31
|
export { nativeViewTag } from '../nativeViewTag';
|
|
32
|
+
export { useLivePageOptions } from './LiveSellingProvider';
|
|
33
|
+
export { ShopifyLiveSellingProvider, ShopifyLiveSessionProvider, type ShopifyLiveSellingConfig, type ShopifyLiveSellingProviderProps, type ShopifyLiveSessionProviderProps, } from './shopifyProviders';
|
|
34
|
+
export { ReplayPlayerProvider, useReplayPlayer, type ReplayPlayerState } from './replayPlayer';
|
|
35
|
+
export { useKeepScreenAwake } from './useKeepScreenAwake';
|
|
36
|
+
export { useLivePage, type LivePage } from './useLivePage';
|
|
37
|
+
export { useLiveChat, type LiveChat, type LiveChatShow } from './useLiveChat';
|
|
38
|
+
export { useLiveShop, shareProduct, shareAddress, type LiveShop } from './useLiveShop';
|
|
39
|
+
export { useLiveAuction, type LiveAuction, type LiveAuctionScreen } from './useLiveAuction';
|
|
40
|
+
export { useLiveGiveawaysAndPolls, type LiveGiveawaysAndPolls } from './useLiveGiveawaysAndPolls';
|
|
41
|
+
export { useReplayPage, type ReplayPage } from './useReplayPage';
|
|
32
42
|
//# 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,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,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,C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
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nativeViewTag = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.useLiveRail = exports.useLiveHubPage = exports.useItemsYouWonPage = exports.useAuctionWins = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.SHEET_HANDOFF_MS = exports.useAuctionBidGate = exports.isNativeVideoSupported = exports.NativeVideoView = exports.LiveVideoTarget = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useShowClock = exports.useAuctionCountdown = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
3
|
+
exports.useLiveAuction = exports.shareAddress = exports.shareProduct = exports.useLiveShop = exports.useLiveChat = exports.useLivePage = exports.useKeepScreenAwake = exports.useReplayPlayer = exports.ReplayPlayerProvider = exports.ShopifyLiveSessionProvider = exports.ShopifyLiveSellingProvider = exports.useLivePageOptions = exports.nativeViewTag = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.useLiveRail = exports.useLiveHubPage = exports.useItemsYouWonPage = exports.useAuctionWins = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.SHEET_HANDOFF_MS = exports.useAuctionBidGate = exports.isNativeVideoSupported = exports.NativeVideoView = exports.LiveVideoTarget = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useShowClock = exports.useAuctionCountdown = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
4
|
+
exports.useReplayPage = exports.useLiveGiveawaysAndPolls = void 0;
|
|
4
5
|
/**
|
|
5
6
|
* React helpers for `@tiledev/sdk-apptile-live-selling` — the provider and the read hooks.
|
|
6
7
|
*
|
|
@@ -76,4 +77,31 @@ Object.defineProperty(exports, "SHOWS_PAGE_SIZE", { enumerable: true, get: funct
|
|
|
76
77
|
// React Native only, so it lives here rather than on the root entry.
|
|
77
78
|
var nativeViewTag_1 = require("../nativeViewTag");
|
|
78
79
|
Object.defineProperty(exports, "nativeViewTag", { enumerable: true, get: function () { return nativeViewTag_1.nativeViewTag; } });
|
|
80
|
+
// The Live and Replay pages (0.14.0, moved from amore-v2): what the app gives them once
|
|
81
|
+
// (`LiveSellingProvider`'s `routes`, `track`, `onWarning`, `shopName`), the providers on sdk-shopify, the
|
|
82
|
+
// replay player, and the page models a screen's tiles take their props from.
|
|
83
|
+
var LiveSellingProvider_2 = require("./LiveSellingProvider");
|
|
84
|
+
Object.defineProperty(exports, "useLivePageOptions", { enumerable: true, get: function () { return LiveSellingProvider_2.useLivePageOptions; } });
|
|
85
|
+
var shopifyProviders_1 = require("./shopifyProviders");
|
|
86
|
+
Object.defineProperty(exports, "ShopifyLiveSellingProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSellingProvider; } });
|
|
87
|
+
Object.defineProperty(exports, "ShopifyLiveSessionProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSessionProvider; } });
|
|
88
|
+
var replayPlayer_1 = require("./replayPlayer");
|
|
89
|
+
Object.defineProperty(exports, "ReplayPlayerProvider", { enumerable: true, get: function () { return replayPlayer_1.ReplayPlayerProvider; } });
|
|
90
|
+
Object.defineProperty(exports, "useReplayPlayer", { enumerable: true, get: function () { return replayPlayer_1.useReplayPlayer; } });
|
|
91
|
+
var useKeepScreenAwake_1 = require("./useKeepScreenAwake");
|
|
92
|
+
Object.defineProperty(exports, "useKeepScreenAwake", { enumerable: true, get: function () { return useKeepScreenAwake_1.useKeepScreenAwake; } });
|
|
93
|
+
var useLivePage_1 = require("./useLivePage");
|
|
94
|
+
Object.defineProperty(exports, "useLivePage", { enumerable: true, get: function () { return useLivePage_1.useLivePage; } });
|
|
95
|
+
var useLiveChat_1 = require("./useLiveChat");
|
|
96
|
+
Object.defineProperty(exports, "useLiveChat", { enumerable: true, get: function () { return useLiveChat_1.useLiveChat; } });
|
|
97
|
+
var useLiveShop_1 = require("./useLiveShop");
|
|
98
|
+
Object.defineProperty(exports, "useLiveShop", { enumerable: true, get: function () { return useLiveShop_1.useLiveShop; } });
|
|
99
|
+
Object.defineProperty(exports, "shareProduct", { enumerable: true, get: function () { return useLiveShop_1.shareProduct; } });
|
|
100
|
+
Object.defineProperty(exports, "shareAddress", { enumerable: true, get: function () { return useLiveShop_1.shareAddress; } });
|
|
101
|
+
var useLiveAuction_1 = require("./useLiveAuction");
|
|
102
|
+
Object.defineProperty(exports, "useLiveAuction", { enumerable: true, get: function () { return useLiveAuction_1.useLiveAuction; } });
|
|
103
|
+
var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
|
|
104
|
+
Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
|
|
105
|
+
var useReplayPage_1 = require("./useReplayPage");
|
|
106
|
+
Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
|
|
79
107
|
//# 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,mDAA6E;AAApE,gHAAA,cAAc,OAAA;AACvB,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,yEAAyE;AACzE,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,oGAAoG;AACpG,mCAA6D;AAApD,6GAAA,mBAAmB,OAAA;AAAE,sGAAA,YAAY,OAAA;AAC1C,iDAKyB;AAJvB,8GAAA,aAAa,OAAA;AACb,qHAAA,oBAAoB,OAAA;AACpB,4HAAA,2BAA2B,OAAA;AAG7B,qDAK2B;AAJzB,kHAAA,eAAe,OAAA;AACf,kHAAA,eAAe,OAAA;AACf,yHAAA,sBAAsB,OAAA;AAGxB,yDAO6B;AAN3B,sHAAA,iBAAiB,OAAA;AACjB,qHAAA,gBAAgB,OAAA;AAMlB,mGAAmG;AACnG,uDAM4B;AAL1B,oHAAA,gBAAgB,OAAA;AAMlB,uDAAkF;AAAzE,oHAAA,gBAAgB,OAAA;AACzB,6DAAmF;AAA1E,0HAAA,mBAAmB,OAAA;AAC5B,+DAA4H;AAAnH,4HAAA,oBAAoB,OAAA;AAC7B,6DAA2H;AAAlH,0HAAA,mBAAmB,OAAA;AAC5B,mEAAoI;AAA3H,gIAAA,sBAAsB,OAAA;AAC/B,mEAAgI;AAAvH,gIAAA,sBAAsB,OAAA;AAC/B,mDAK0B;AAJxB,gHAAA,cAAc,OAAA;AAKhB,oFAAoF;AACpF,yDAAsF;AAA7E,uHAAA,kBAAkB,OAAA;AAAE,mHAAA,cAAc,OAAA;AAAE,gHAAA,WAAW,OAAA;AACxD,yCAWqB;AAVnB,kHAAA,qBAAqB,OAAA;AACrB,8GAAA,iBAAiB,OAAA;AACjB,2GAAA,cAAc,OAAA;AACd,4GAAA,eAAe,OAAA;AAQjB,qEAAqE;AACrE,kDAAiD;AAAxC,8GAAA,aAAa,OAAA;AAEtB,wFAAwF;AACxF,0GAA0G;AAC1G,6EAA6E;AAC7E,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,uDAM4B;AAL1B,8HAAA,0BAA0B,OAAA;AAC1B,8HAAA,0BAA0B,OAAA;AAK5B,+CAA+F;AAAtF,oHAAA,oBAAoB,OAAA;AAAE,+GAAA,eAAe,OAAA;AAC9C,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,6CAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,6CAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,6CAAuF;AAA9E,0GAAA,WAAW,OAAA;AAAE,2GAAA,YAAY,OAAA;AAAE,2GAAA,YAAY,OAAA;AAChD,mDAA4F;AAAnF,gHAAA,cAAc,OAAA;AACvB,uEAAkG;AAAzF,oIAAA,wBAAwB,OAAA;AACjC,iDAAiE;AAAxD,8GAAA,aAAa,OAAA"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
import { type LiveShow } from '../liveShow';
|
|
4
|
-
import type { LiveSession } from '../sessionTypes';
|
|
5
|
-
import type { AuctionBidGate, UseAuctionBidGateOptions } from './useAuctionBidGate';
|
|
6
|
-
import type { UseAuctionWinsOptions, UseAuctionWinsState } from './useAuctionWins';
|
|
7
|
-
import type { LiveSessionProviderProps } from './useLiveSession';
|
|
8
|
-
import type { LiveVideoTargetProps } from './LiveVideoTarget';
|
|
9
1
|
import { type ItemsYouWonPage, type LiveHubPage, type LiveRail, type UseItemsYouWonPageOptions, type UseLiveHubPageOptions } from './showPages';
|
|
10
2
|
export { LiveSellingProvider, useLiveSelling, type LiveSellingProviderProps, type LiveSellingContextType, } from './LiveSellingProvider';
|
|
11
3
|
export { useHiddenShows, type HiddenShowsForViewer } from './useHiddenShows';
|
|
@@ -30,30 +22,17 @@ export type { AuctionBidGate, BidBlocker, BidRefusal, UseAuctionBidGateOptions }
|
|
|
30
22
|
export type { AuctionWinRow, UseAuctionWinsOptions, UseAuctionWinsState } from './useAuctionWins';
|
|
31
23
|
export type { LiveSessionProviderProps } from './useLiveSession';
|
|
32
24
|
export type { LiveVideoTargetProps } from './LiveVideoTarget';
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* callers position this and draw a poster over it, so returning null would collapse the layout the
|
|
45
|
-
* poster depends on.
|
|
46
|
-
*/
|
|
47
|
-
export declare const NativeVideoView: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<unknown>>;
|
|
48
|
-
export declare function LiveVideoTarget({ style, children }: LiveVideoTargetProps): import("react").CElement<ViewProps, View>;
|
|
49
|
-
export declare const SHEET_HANDOFF_MS = 380;
|
|
50
|
-
/** Never blocks, because there is no bid to gate — `placeBid` above resolves without sending. */
|
|
51
|
-
export declare function useAuctionBidGate(_options: UseAuctionBidGateOptions): AuctionBidGate;
|
|
52
|
-
/**
|
|
53
|
-
* An empty tab rather than a failure. The wins metafield is readable from a browser, but settling one
|
|
54
|
-
* mints a cart and sends the shopper to checkout — not something a preview should be able to start.
|
|
55
|
-
*/
|
|
56
|
-
export declare function useAuctionWins<TRaw = unknown>(_options?: UseAuctionWinsOptions): UseAuctionWinsState<TRaw>;
|
|
25
|
+
export { LiveSessionProvider, useLiveSession, useLiveShow, isNativeVideoSupported, NativeVideoView, LiveVideoTarget, SHEET_HANDOFF_MS, useAuctionBidGate, useAuctionWins, } from './platformSession.web';
|
|
26
|
+
export { useLivePageOptions } from './LiveSellingProvider';
|
|
27
|
+
export { ShopifyLiveSellingProvider, ShopifyLiveSessionProvider, type ShopifyLiveSellingConfig, type ShopifyLiveSellingProviderProps, type ShopifyLiveSessionProviderProps, } from './shopifyProviders';
|
|
28
|
+
export { ReplayPlayerProvider, useReplayPlayer, type ReplayPlayerState } from './replayPlayer';
|
|
29
|
+
export { useKeepScreenAwake } from './useKeepScreenAwake';
|
|
30
|
+
export { useLivePage, type LivePage } from './useLivePage';
|
|
31
|
+
export { useLiveChat, type LiveChat, type LiveChatShow } from './useLiveChat';
|
|
32
|
+
export { useLiveShop, shareProduct, shareAddress, type LiveShop } from './useLiveShop';
|
|
33
|
+
export { useLiveAuction, type LiveAuction, type LiveAuctionScreen } from './useLiveAuction';
|
|
34
|
+
export { useLiveGiveawaysAndPolls, type LiveGiveawaysAndPolls } from './useLiveGiveawaysAndPolls';
|
|
35
|
+
export { useReplayPage, type ReplayPage } from './useReplayPage';
|
|
57
36
|
/** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
|
|
58
37
|
export declare function useItemsYouWonPage<TRaw = unknown>(options: UseItemsYouWonPageOptions): ItemsYouWonPage<TRaw>;
|
|
59
38
|
/** The Live tab over the idle session: the recordings are real, the show on air never plays here. */
|
|
@@ -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":"AA2BA,OAAO,EAIL,KAAK,eAAe,EACpB,KA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gB,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIjE,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,yBAAyB,GAAG,eAAe,CAAC,IAAI,CAAC,CAE5G;AAED,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,WAAW,CAE1E;AAED,uDAAuD;AACvD,wBAAgB,WAAW,CAAC,OAAO,EAAE,qBAAqB,GAAG,QAAQ,CAEpE"}
|
package/dist/react/index.web.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SHEET_HANDOFF_MS = exports.NativeVideoView = exports.isNativeVideoSupported = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.nativeViewTag = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.useShowClock = exports.useAuctionCountdown = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
4
|
-
exports.LiveSessionProvider = LiveSessionProvider;
|
|
5
|
-
exports.useLiveSession = useLiveSession;
|
|
6
|
-
exports.useLiveShow = useLiveShow;
|
|
7
|
-
exports.LiveVideoTarget = LiveVideoTarget;
|
|
8
|
-
exports.useAuctionBidGate = useAuctionBidGate;
|
|
9
|
-
exports.useAuctionWins = useAuctionWins;
|
|
3
|
+
exports.useReplayPage = exports.useLiveGiveawaysAndPolls = exports.useLiveAuction = exports.shareAddress = exports.shareProduct = exports.useLiveShop = exports.useLiveChat = exports.useLivePage = exports.useKeepScreenAwake = exports.useReplayPlayer = exports.ReplayPlayerProvider = exports.ShopifyLiveSessionProvider = exports.ShopifyLiveSellingProvider = exports.useLivePageOptions = exports.useAuctionWins = exports.useAuctionBidGate = exports.SHEET_HANDOFF_MS = exports.LiveVideoTarget = exports.NativeVideoView = exports.isNativeVideoSupported = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.nativeViewTag = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.useShowClock = exports.useAuctionCountdown = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
10
4
|
exports.useItemsYouWonPage = useItemsYouWonPage;
|
|
11
5
|
exports.useLiveHubPage = useLiveHubPage;
|
|
12
6
|
exports.useLiveRail = useLiveRail;
|
|
@@ -32,12 +26,11 @@ exports.useLiveRail = useLiveRail;
|
|
|
32
26
|
* The **client** is real: `liveSelling` and its HTTP calls work from a browser, so `useLiveSelling()`,
|
|
33
27
|
* the stream/replay/clip read hooks and the polled record all behave as they do on device.
|
|
34
28
|
*
|
|
35
|
-
*
|
|
29
|
+
* The stand-ins themselves (the idle session, the `View`, the bid gate that never blocks, the empty
|
|
30
|
+
* wins) live in `platformSession.web.ts` since 0.14.0, which the page hooks and the `/ui` bubbles read
|
|
31
|
+
* the session from, so they run here too; this file re-exports them.
|
|
36
32
|
*/
|
|
37
|
-
const
|
|
38
|
-
const react_native_1 = require("react-native");
|
|
39
|
-
const liveShow_1 = require("../liveShow");
|
|
40
|
-
const sessionTypes_1 = require("../sessionTypes");
|
|
33
|
+
const platformSession_web_1 = require("./platformSession.web");
|
|
41
34
|
const showPages_1 = require("./showPages");
|
|
42
35
|
// Real on the web: the gateway is plain HTTP, and the engine it configures is the no-op build.
|
|
43
36
|
var LiveSellingProvider_1 = require("./LiveSellingProvider");
|
|
@@ -92,141 +85,55 @@ Object.defineProperty(exports, "useItemsYouWonPageFor", { enumerable: true, get:
|
|
|
92
85
|
Object.defineProperty(exports, "useLiveHubPageFor", { enumerable: true, get: function () { return showPages_2.useLiveHubPageFor; } });
|
|
93
86
|
Object.defineProperty(exports, "useLiveRailFor", { enumerable: true, get: function () { return showPages_2.useLiveRailFor; } });
|
|
94
87
|
Object.defineProperty(exports, "SHOWS_PAGE_SIZE", { enumerable: true, get: function () { return showPages_2.SHOWS_PAGE_SIZE; } });
|
|
95
|
-
//
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
products: [],
|
|
134
|
-
sold: [],
|
|
135
|
-
cartAnnouncements: [],
|
|
136
|
-
reactions: [],
|
|
137
|
-
poll: null,
|
|
138
|
-
muted: true,
|
|
139
|
-
videoTag: null,
|
|
140
|
-
pipMode: 'none',
|
|
141
|
-
guest: {
|
|
142
|
-
mode: false,
|
|
143
|
-
status: 'idle',
|
|
144
|
-
slot: null,
|
|
145
|
-
mutedByHost: false,
|
|
146
|
-
cameraOffByHost: false,
|
|
147
|
-
mixerLayout: null,
|
|
148
|
-
},
|
|
149
|
-
viewerName: null,
|
|
150
|
-
auction: sessionTypes_1.IDLE_AUCTION,
|
|
151
|
-
giveaway: sessionTypes_1.IDLE_GIVEAWAY,
|
|
152
|
-
pinnedComment: null,
|
|
153
|
-
error: null,
|
|
154
|
-
actions: IDLE_ACTIONS,
|
|
155
|
-
};
|
|
156
|
-
const LiveSessionContext = (0, react_1.createContext)(null);
|
|
157
|
-
function LiveSessionProvider({ children }) {
|
|
158
|
-
return (0, react_1.createElement)(LiveSessionContext.Provider, { value: IDLE_SESSION }, children);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* The idle session, read without touching the context: a surface rendered outside the provider
|
|
162
|
-
* behaves the same as one inside it, because on the web there is only ever this one session.
|
|
163
|
-
*/
|
|
164
|
-
function useLiveSession() {
|
|
165
|
-
return IDLE_SESSION;
|
|
166
|
-
}
|
|
167
|
-
/** The idle session's show: none, and `ended`. One object, as the session never changes here. */
|
|
168
|
-
const IDLE_SHOW = (0, liveShow_1.liveShowFor)(IDLE_SESSION, null);
|
|
169
|
-
/** `useLiveShow` over the idle session: always `ended`, with no show, whatever the id. */
|
|
170
|
-
function useLiveShow(_streamingId) {
|
|
171
|
-
return IDLE_SHOW;
|
|
172
|
-
}
|
|
173
|
-
// ─── The video ───────────────────────────────────────────────────────────────
|
|
174
|
-
exports.isNativeVideoSupported = false;
|
|
175
|
-
/**
|
|
176
|
-
* A plain `View`, which is what the native file falls back to on a build without the Zego SDK:
|
|
177
|
-
* callers position this and draw a poster over it, so returning null would collapse the layout the
|
|
178
|
-
* poster depends on.
|
|
179
|
-
*/
|
|
180
|
-
exports.NativeVideoView = (0, react_1.forwardRef)(function NativeVideoView(props, _ref) {
|
|
181
|
-
return (0, react_1.createElement)(react_native_1.View, props);
|
|
182
|
-
});
|
|
183
|
-
function LiveVideoTarget({ style, children }) {
|
|
184
|
-
return (0, react_1.createElement)(react_native_1.View, { style: style !== null && style !== void 0 ? style : { flex: 1 } }, children);
|
|
185
|
-
}
|
|
186
|
-
// ─── Auctions ────────────────────────────────────────────────────────────────
|
|
187
|
-
exports.SHEET_HANDOFF_MS = 380;
|
|
188
|
-
/** Never blocks, because there is no bid to gate — `placeBid` above resolves without sending. */
|
|
189
|
-
function useAuctionBidGate(_options) {
|
|
190
|
-
return (0, react_1.useMemo)(() => ({
|
|
191
|
-
blocker: null,
|
|
192
|
-
variantId: null,
|
|
193
|
-
requestBid: () => undefined,
|
|
194
|
-
acceptTerms: () => undefined,
|
|
195
|
-
chooseVariant: () => undefined,
|
|
196
|
-
dismiss: () => undefined,
|
|
197
|
-
refreshUnpaidWins: () => undefined,
|
|
198
|
-
refusal: null,
|
|
199
|
-
bidOnItsWay: false,
|
|
200
|
-
}), []);
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* An empty tab rather than a failure. The wins metafield is readable from a browser, but settling one
|
|
204
|
-
* mints a cart and sends the shopper to checkout — not something a preview should be able to start.
|
|
205
|
-
*/
|
|
206
|
-
function useAuctionWins(_options) {
|
|
207
|
-
return (0, react_1.useMemo)(() => ({
|
|
208
|
-
rows: [],
|
|
209
|
-
giveawayVariantIds: new Set(),
|
|
210
|
-
totalBids: 0,
|
|
211
|
-
streamingId: null,
|
|
212
|
-
loading: false,
|
|
213
|
-
checkingOut: false,
|
|
214
|
-
error: null,
|
|
215
|
-
refresh: () => undefined,
|
|
216
|
-
checkout: async () => null,
|
|
217
|
-
}), []);
|
|
218
|
-
}
|
|
88
|
+
// The idle session, the video's `View`, the bid gate that never blocks and the empty wins.
|
|
89
|
+
var platformSession_web_2 = require("./platformSession.web");
|
|
90
|
+
Object.defineProperty(exports, "LiveSessionProvider", { enumerable: true, get: function () { return platformSession_web_2.LiveSessionProvider; } });
|
|
91
|
+
Object.defineProperty(exports, "useLiveSession", { enumerable: true, get: function () { return platformSession_web_2.useLiveSession; } });
|
|
92
|
+
Object.defineProperty(exports, "useLiveShow", { enumerable: true, get: function () { return platformSession_web_2.useLiveShow; } });
|
|
93
|
+
Object.defineProperty(exports, "isNativeVideoSupported", { enumerable: true, get: function () { return platformSession_web_2.isNativeVideoSupported; } });
|
|
94
|
+
Object.defineProperty(exports, "NativeVideoView", { enumerable: true, get: function () { return platformSession_web_2.NativeVideoView; } });
|
|
95
|
+
Object.defineProperty(exports, "LiveVideoTarget", { enumerable: true, get: function () { return platformSession_web_2.LiveVideoTarget; } });
|
|
96
|
+
Object.defineProperty(exports, "SHEET_HANDOFF_MS", { enumerable: true, get: function () { return platformSession_web_2.SHEET_HANDOFF_MS; } });
|
|
97
|
+
Object.defineProperty(exports, "useAuctionBidGate", { enumerable: true, get: function () { return platformSession_web_2.useAuctionBidGate; } });
|
|
98
|
+
Object.defineProperty(exports, "useAuctionWins", { enumerable: true, get: function () { return platformSession_web_2.useAuctionWins; } });
|
|
99
|
+
// The Live and Replay pages (0.14.0): the same modules as on a device, which read the session from
|
|
100
|
+
// `./platformSession` and so get the idle one above here. The Live screen's tiles draw nothing (its show
|
|
101
|
+
// is always `ended`); the Replay screen's recordings and player are real.
|
|
102
|
+
var LiveSellingProvider_2 = require("./LiveSellingProvider");
|
|
103
|
+
Object.defineProperty(exports, "useLivePageOptions", { enumerable: true, get: function () { return LiveSellingProvider_2.useLivePageOptions; } });
|
|
104
|
+
var shopifyProviders_1 = require("./shopifyProviders");
|
|
105
|
+
Object.defineProperty(exports, "ShopifyLiveSellingProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSellingProvider; } });
|
|
106
|
+
Object.defineProperty(exports, "ShopifyLiveSessionProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSessionProvider; } });
|
|
107
|
+
var replayPlayer_1 = require("./replayPlayer");
|
|
108
|
+
Object.defineProperty(exports, "ReplayPlayerProvider", { enumerable: true, get: function () { return replayPlayer_1.ReplayPlayerProvider; } });
|
|
109
|
+
Object.defineProperty(exports, "useReplayPlayer", { enumerable: true, get: function () { return replayPlayer_1.useReplayPlayer; } });
|
|
110
|
+
var useKeepScreenAwake_1 = require("./useKeepScreenAwake");
|
|
111
|
+
Object.defineProperty(exports, "useKeepScreenAwake", { enumerable: true, get: function () { return useKeepScreenAwake_1.useKeepScreenAwake; } });
|
|
112
|
+
var useLivePage_1 = require("./useLivePage");
|
|
113
|
+
Object.defineProperty(exports, "useLivePage", { enumerable: true, get: function () { return useLivePage_1.useLivePage; } });
|
|
114
|
+
var useLiveChat_1 = require("./useLiveChat");
|
|
115
|
+
Object.defineProperty(exports, "useLiveChat", { enumerable: true, get: function () { return useLiveChat_1.useLiveChat; } });
|
|
116
|
+
var useLiveShop_1 = require("./useLiveShop");
|
|
117
|
+
Object.defineProperty(exports, "useLiveShop", { enumerable: true, get: function () { return useLiveShop_1.useLiveShop; } });
|
|
118
|
+
Object.defineProperty(exports, "shareProduct", { enumerable: true, get: function () { return useLiveShop_1.shareProduct; } });
|
|
119
|
+
Object.defineProperty(exports, "shareAddress", { enumerable: true, get: function () { return useLiveShop_1.shareAddress; } });
|
|
120
|
+
var useLiveAuction_1 = require("./useLiveAuction");
|
|
121
|
+
Object.defineProperty(exports, "useLiveAuction", { enumerable: true, get: function () { return useLiveAuction_1.useLiveAuction; } });
|
|
122
|
+
var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
|
|
123
|
+
Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
|
|
124
|
+
var useReplayPage_1 = require("./useReplayPage");
|
|
125
|
+
Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
|
|
219
126
|
// ─── The page models ─────────────────────────────────────────────────────────
|
|
220
127
|
/** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
|
|
221
128
|
function useItemsYouWonPage(options) {
|
|
222
|
-
return (0, showPages_1.useItemsYouWonPageFor)(useAuctionWins(), options);
|
|
129
|
+
return (0, showPages_1.useItemsYouWonPageFor)((0, platformSession_web_1.useAuctionWins)(), options);
|
|
223
130
|
}
|
|
224
131
|
/** The Live tab over the idle session: the recordings are real, the show on air never plays here. */
|
|
225
132
|
function useLiveHubPage(options) {
|
|
226
|
-
return (0, showPages_1.useLiveHubPageFor)(IDLE_SESSION, options);
|
|
133
|
+
return (0, showPages_1.useLiveHubPageFor)(platformSession_web_1.IDLE_SESSION, options);
|
|
227
134
|
}
|
|
228
135
|
/** A home screen's live rail over the idle session. */
|
|
229
136
|
function useLiveRail(options) {
|
|
230
|
-
return (0, showPages_1.useLiveRailFor)(IDLE_SESSION, options);
|
|
137
|
+
return (0, showPages_1.useLiveRailFor)(platformSession_web_1.IDLE_SESSION, options);
|
|
231
138
|
}
|
|
232
139
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":";;;AAuIA,gDAEC;AA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 -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Navigation's hooks, for the page hooks that read the screen they run in (0.14.0): whether it is
|
|
3
|
+
* focused, its route's params, the stack above it, its own navigation for `goBack` and the app's routes.
|
|
4
|
+
*
|
|
5
|
+
* `@react-navigation/native` 7 ships ECMAScript modules only, and this package compiles to CommonJS
|
|
6
|
+
* (`module: node16`), where TypeScript refuses a static import of one. Metro (and jest-expo) turn the
|
|
7
|
+
* package into CommonJS as they bundle it, so a `require` here reaches the app's own copy, the one its
|
|
8
|
+
* `NavigationContainer` came from, which the hooks must share. The types are read as the module's.
|
|
9
|
+
*/
|
|
10
|
+
import type * as ReactNavigation from '@react-navigation/native' with { 'resolution-mode': 'import' };
|
|
11
|
+
export type { NavigationProp, ParamListBase, RouteProp, } from '@react-navigation/native' with { 'resolution-mode': 'import' };
|
|
12
|
+
export declare const useFocusEffect: typeof ReactNavigation.useFocusEffect, useIsFocused: typeof ReactNavigation.useIsFocused, useNavigation: typeof ReactNavigation.useNavigation, useNavigationState: typeof ReactNavigation.useNavigationState, useRoute: typeof ReactNavigation.useRoute;
|
|
13
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/react/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,KAAK,eAAe,MAAM,0BAA0B,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAEtG,YAAY,EACV,cAAc,EACd,aAAa,EACb,SAAS,GACV,MAAM,0BAA0B,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAKvE,eAAO,MAAQ,cAAc,yCAAE,YAAY,uCAAE,aAAa,wCAAE,kBAAkB,6CAAE,QAAQ,iCAAe,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRoute = exports.useNavigationState = exports.useNavigation = exports.useIsFocused = exports.useFocusEffect = void 0;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
5
|
+
const navigation = require('@react-navigation/native');
|
|
6
|
+
exports.useFocusEffect = navigation.useFocusEffect, exports.useIsFocused = navigation.useIsFocused, exports.useNavigation = navigation.useNavigation, exports.useNavigationState = navigation.useNavigationState, exports.useRoute = navigation.useRoute;
|
|
7
|
+
//# sourceMappingURL=navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../src/react/navigation.ts"],"names":[],"mappings":";;;AAiBA,8DAA8D;AAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,0BAA0B,CAA2B,CAAC;AAElE,sBAAc,GAAgE,UAAU,iBAAxE,oBAAY,GAAkD,UAAU,eAA1D,qBAAa,GAAmC,UAAU,gBAA3C,0BAAkB,GAAe,UAAU,qBAAvB,gBAAQ,GAAK,UAAU,UAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The session and what draws it, for the code that runs on both platforms (0.14.0): the page hooks,
|
|
3
|
+
* the Shopify session provider and the `/ui` bubbles import them from here, never from their own files.
|
|
4
|
+
*
|
|
5
|
+
* This is the device's: the real session, its show, the bid gate, the wins and the video target.
|
|
6
|
+
* Metro serves `platformSession.web.ts` in its place on the web (the idle session, a `View` for the
|
|
7
|
+
* video), as it serves `index.web.ts` for `index.ts`, so a module that reads the session from here
|
|
8
|
+
* runs on the web too, and never pulls the Zego entry into a web bundle. TypeScript reads this one;
|
|
9
|
+
* keep the two in step.
|
|
10
|
+
*/
|
|
11
|
+
export { LiveSessionProvider, useLiveSession } from './useLiveSession';
|
|
12
|
+
export { useLiveShow } from './useLiveShow';
|
|
13
|
+
export { LiveVideoTarget, NativeVideoView, isNativeVideoSupported } from './LiveVideoTarget';
|
|
14
|
+
export { useAuctionBidGate, SHEET_HANDOFF_MS } from './useAuctionBidGate';
|
|
15
|
+
export { useAuctionWins } from './useAuctionWins';
|
|
16
|
+
//# sourceMappingURL=platformSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformSession.d.ts","sourceRoot":"","sources":["../../src/react/platformSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAuctionWins = exports.SHEET_HANDOFF_MS = exports.useAuctionBidGate = exports.isNativeVideoSupported = exports.NativeVideoView = exports.LiveVideoTarget = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The session and what draws it, for the code that runs on both platforms (0.14.0): the page hooks,
|
|
6
|
+
* the Shopify session provider and the `/ui` bubbles import them from here, never from their own files.
|
|
7
|
+
*
|
|
8
|
+
* This is the device's: the real session, its show, the bid gate, the wins and the video target.
|
|
9
|
+
* Metro serves `platformSession.web.ts` in its place on the web (the idle session, a `View` for the
|
|
10
|
+
* video), as it serves `index.web.ts` for `index.ts`, so a module that reads the session from here
|
|
11
|
+
* runs on the web too, and never pulls the Zego entry into a web bundle. TypeScript reads this one;
|
|
12
|
+
* keep the two in step.
|
|
13
|
+
*/
|
|
14
|
+
var useLiveSession_1 = require("./useLiveSession");
|
|
15
|
+
Object.defineProperty(exports, "LiveSessionProvider", { enumerable: true, get: function () { return useLiveSession_1.LiveSessionProvider; } });
|
|
16
|
+
Object.defineProperty(exports, "useLiveSession", { enumerable: true, get: function () { return useLiveSession_1.useLiveSession; } });
|
|
17
|
+
var useLiveShow_1 = require("./useLiveShow");
|
|
18
|
+
Object.defineProperty(exports, "useLiveShow", { enumerable: true, get: function () { return useLiveShow_1.useLiveShow; } });
|
|
19
|
+
var LiveVideoTarget_1 = require("./LiveVideoTarget");
|
|
20
|
+
Object.defineProperty(exports, "LiveVideoTarget", { enumerable: true, get: function () { return LiveVideoTarget_1.LiveVideoTarget; } });
|
|
21
|
+
Object.defineProperty(exports, "NativeVideoView", { enumerable: true, get: function () { return LiveVideoTarget_1.NativeVideoView; } });
|
|
22
|
+
Object.defineProperty(exports, "isNativeVideoSupported", { enumerable: true, get: function () { return LiveVideoTarget_1.isNativeVideoSupported; } });
|
|
23
|
+
var useAuctionBidGate_1 = require("./useAuctionBidGate");
|
|
24
|
+
Object.defineProperty(exports, "useAuctionBidGate", { enumerable: true, get: function () { return useAuctionBidGate_1.useAuctionBidGate; } });
|
|
25
|
+
Object.defineProperty(exports, "SHEET_HANDOFF_MS", { enumerable: true, get: function () { return useAuctionBidGate_1.SHEET_HANDOFF_MS; } });
|
|
26
|
+
var useAuctionWins_1 = require("./useAuctionWins");
|
|
27
|
+
Object.defineProperty(exports, "useAuctionWins", { enumerable: true, get: function () { return useAuctionWins_1.useAuctionWins; } });
|
|
28
|
+
//# sourceMappingURL=platformSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformSession.js","sourceRoot":"","sources":["../../src/react/platformSession.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,mDAAuE;AAA9D,qHAAA,mBAAmB,OAAA;AAAE,gHAAA,cAAc,OAAA;AAC5C,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,qDAA6F;AAApF,kHAAA,eAAe,OAAA;AAAE,kHAAA,eAAe,OAAA;AAAE,yHAAA,sBAAsB,OAAA;AACjE,yDAA0E;AAAjE,sHAAA,iBAAiB,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAC5C,mDAAkD;AAAzC,gHAAA,cAAc,OAAA"}
|