@tiledev/sdk-apptile-live-selling 0.13.0 → 0.15.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.
Files changed (131) hide show
  1. package/README.md +116 -12
  2. package/dist/clipsPage.d.ts +29 -0
  3. package/dist/clipsPage.d.ts.map +1 -0
  4. package/dist/clipsPage.js +49 -0
  5. package/dist/clipsPage.js.map +1 -0
  6. package/dist/giveawayPrizeLines.d.ts +10 -0
  7. package/dist/giveawayPrizeLines.d.ts.map +1 -1
  8. package/dist/giveawayPrizeLines.js +11 -1
  9. package/dist/giveawayPrizeLines.js.map +1 -1
  10. package/dist/hiddenShows.d.ts +10 -0
  11. package/dist/hiddenShows.d.ts.map +1 -1
  12. package/dist/hiddenShows.js +11 -0
  13. package/dist/hiddenShows.js.map +1 -1
  14. package/dist/index.d.ts +10 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +53 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/linkLots.d.ts +64 -0
  19. package/dist/linkLots.d.ts.map +1 -0
  20. package/dist/linkLots.js +84 -0
  21. package/dist/linkLots.js.map +1 -0
  22. package/dist/livePages.d.ts +166 -0
  23. package/dist/livePages.d.ts.map +1 -0
  24. package/dist/livePages.js +187 -0
  25. package/dist/livePages.js.map +1 -0
  26. package/dist/liveRoom.d.ts +21 -0
  27. package/dist/liveRoom.d.ts.map +1 -0
  28. package/dist/liveRoom.js +28 -0
  29. package/dist/liveRoom.js.map +1 -0
  30. package/dist/pageOptions.d.ts +118 -0
  31. package/dist/pageOptions.d.ts.map +1 -0
  32. package/dist/pageOptions.js +99 -0
  33. package/dist/pageOptions.js.map +1 -0
  34. package/dist/pageTypes.d.ts +185 -0
  35. package/dist/pageTypes.d.ts.map +1 -0
  36. package/dist/pageTypes.js +3 -0
  37. package/dist/pageTypes.js.map +1 -0
  38. package/dist/react/LiveSellingProvider.d.ts +31 -1
  39. package/dist/react/LiveSellingProvider.d.ts.map +1 -1
  40. package/dist/react/LiveSellingProvider.js +44 -2
  41. package/dist/react/LiveSellingProvider.js.map +1 -1
  42. package/dist/react/index.d.ts +12 -0
  43. package/dist/react/index.d.ts.map +1 -1
  44. package/dist/react/index.js +34 -1
  45. package/dist/react/index.js.map +1 -1
  46. package/dist/react/index.web.d.ts +13 -32
  47. package/dist/react/index.web.d.ts.map +1 -1
  48. package/dist/react/index.web.js +52 -139
  49. package/dist/react/index.web.js.map +1 -1
  50. package/dist/react/navigation.d.ts +13 -0
  51. package/dist/react/navigation.d.ts.map +1 -0
  52. package/dist/react/navigation.js +7 -0
  53. package/dist/react/navigation.js.map +1 -0
  54. package/dist/react/platformSession.d.ts +16 -0
  55. package/dist/react/platformSession.d.ts.map +1 -0
  56. package/dist/react/platformSession.js +28 -0
  57. package/dist/react/platformSession.js.map +1 -0
  58. package/dist/react/platformSession.web.d.ts +35 -0
  59. package/dist/react/platformSession.web.d.ts.map +1 -0
  60. package/dist/react/platformSession.web.js +148 -0
  61. package/dist/react/platformSession.web.js.map +1 -0
  62. package/dist/react/replayPlayer.d.ts +74 -0
  63. package/dist/react/replayPlayer.d.ts.map +1 -0
  64. package/dist/react/replayPlayer.js +279 -0
  65. package/dist/react/replayPlayer.js.map +1 -0
  66. package/dist/react/shopifyProviders.d.ts +69 -0
  67. package/dist/react/shopifyProviders.d.ts.map +1 -0
  68. package/dist/react/shopifyProviders.js +100 -0
  69. package/dist/react/shopifyProviders.js.map +1 -0
  70. package/dist/react/useAccountName.d.ts +8 -0
  71. package/dist/react/useAccountName.d.ts.map +1 -0
  72. package/dist/react/useAccountName.js +49 -0
  73. package/dist/react/useAccountName.js.map +1 -0
  74. package/dist/react/useClipsPage.d.ts +47 -0
  75. package/dist/react/useClipsPage.d.ts.map +1 -0
  76. package/dist/react/useClipsPage.js +130 -0
  77. package/dist/react/useClipsPage.js.map +1 -0
  78. package/dist/react/useKeepScreenAwake.d.ts +2 -0
  79. package/dist/react/useKeepScreenAwake.d.ts.map +1 -0
  80. package/dist/react/useKeepScreenAwake.js +34 -0
  81. package/dist/react/useKeepScreenAwake.js.map +1 -0
  82. package/dist/react/useLiveAuction.d.ts +106 -0
  83. package/dist/react/useLiveAuction.d.ts.map +1 -0
  84. package/dist/react/useLiveAuction.js +249 -0
  85. package/dist/react/useLiveAuction.js.map +1 -0
  86. package/dist/react/useLiveChat.d.ts +110 -0
  87. package/dist/react/useLiveChat.d.ts.map +1 -0
  88. package/dist/react/useLiveChat.js +209 -0
  89. package/dist/react/useLiveChat.js.map +1 -0
  90. package/dist/react/useLiveGiveawaysAndPolls.d.ts +95 -0
  91. package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +1 -0
  92. package/dist/react/useLiveGiveawaysAndPolls.js +225 -0
  93. package/dist/react/useLiveGiveawaysAndPolls.js.map +1 -0
  94. package/dist/react/useLivePage.d.ts +134 -0
  95. package/dist/react/useLivePage.d.ts.map +1 -0
  96. package/dist/react/useLivePage.js +304 -0
  97. package/dist/react/useLivePage.js.map +1 -0
  98. package/dist/react/useLiveShop.d.ts +103 -0
  99. package/dist/react/useLiveShop.d.ts.map +1 -0
  100. package/dist/react/useLiveShop.js +211 -0
  101. package/dist/react/useLiveShop.js.map +1 -0
  102. package/dist/react/useReplayPage.d.ts +133 -0
  103. package/dist/react/useReplayPage.d.ts.map +1 -0
  104. package/dist/react/useReplayPage.js +565 -0
  105. package/dist/react/useReplayPage.js.map +1 -0
  106. package/dist/showCredit.d.ts +87 -0
  107. package/dist/showCredit.d.ts.map +1 -0
  108. package/dist/showCredit.js +120 -0
  109. package/dist/showCredit.js.map +1 -0
  110. package/dist/showNames.d.ts +11 -0
  111. package/dist/showNames.d.ts.map +1 -1
  112. package/dist/showNames.js +23 -1
  113. package/dist/showNames.js.map +1 -1
  114. package/dist/ui/BubbleFrame.d.ts +38 -0
  115. package/dist/ui/BubbleFrame.d.ts.map +1 -0
  116. package/dist/ui/BubbleFrame.js +181 -0
  117. package/dist/ui/BubbleFrame.js.map +1 -0
  118. package/dist/ui/LiveBubble.d.ts +37 -0
  119. package/dist/ui/LiveBubble.d.ts.map +1 -0
  120. package/dist/ui/LiveBubble.js +101 -0
  121. package/dist/ui/LiveBubble.js.map +1 -0
  122. package/dist/ui/ReplayBubble.d.ts +23 -0
  123. package/dist/ui/ReplayBubble.d.ts.map +1 -0
  124. package/dist/ui/ReplayBubble.js +65 -0
  125. package/dist/ui/ReplayBubble.js.map +1 -0
  126. package/dist/ui.d.ts +27 -0
  127. package/dist/ui.d.ts.map +1 -0
  128. package/dist/ui.js +34 -0
  129. package/dist/ui.js.map +1 -0
  130. package/package.json +36 -5
  131. package/ui/package.json +6 -0
@@ -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.useClipsPage = exports.useAccountName = 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,36 @@ 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; } });
107
+ // 0.15.0: the name on the shopper's account, for the name asks; the Clips page.
108
+ var useAccountName_1 = require("./useAccountName");
109
+ Object.defineProperty(exports, "useAccountName", { enumerable: true, get: function () { return useAccountName_1.useAccountName; } });
110
+ var useClipsPage_1 = require("./useClipsPage");
111
+ Object.defineProperty(exports, "useClipsPage", { enumerable: true, get: function () { return useClipsPage_1.useClipsPage; } });
79
112
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,OA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eAAe,OAAA;AAC9C,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,6CAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,6CAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,6CAA4G;AAAnG,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;AACtB,gFAAgF;AAChF,mDAAoE;AAA3D,gHAAA,cAAc,OAAA;AACvB,+CAA8D;AAArD,4GAAA,YAAY,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,19 @@ 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 declare function LiveSessionProvider({ children }: LiveSessionProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSession | null>>;
34
- /**
35
- * The idle session, read without touching the context: a surface rendered outside the provider
36
- * behaves the same as one inside it, because on the web there is only ever this one session.
37
- */
38
- export declare function useLiveSession<TRaw = unknown>(): LiveSession<TRaw>;
39
- /** `useLiveShow` over the idle session: always `ended`, with no show, whatever the id. */
40
- export declare function useLiveShow(_streamingId: string | null | undefined): LiveShow;
41
- export declare const isNativeVideoSupported = false;
42
- /**
43
- * A plain `View`, which is what the native file falls back to on a build without the Zego SDK:
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, type LiveShopScreen } 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';
36
+ export { useAccountName, type AccountName } from './useAccountName';
37
+ export { useClipsPage, type ClipsPage } from './useClipsPage';
57
38
  /** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
58
39
  export declare function useItemsYouWonPage<TRaw = unknown>(options: UseItemsYouWonPageOptions): ItemsYouWonPage<TRaw>;
59
40
  /** 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":"AAyBA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEzD,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;AAC9D,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,sBA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rF,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"}
@@ -1,12 +1,7 @@
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.useAccountName = 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;
4
+ exports.useClipsPage = void 0;
10
5
  exports.useItemsYouWonPage = useItemsYouWonPage;
11
6
  exports.useLiveHubPage = useLiveHubPage;
12
7
  exports.useLiveRail = useLiveRail;
@@ -32,12 +27,11 @@ exports.useLiveRail = useLiveRail;
32
27
  * The **client** is real: `liveSelling` and its HTTP calls work from a browser, so `useLiveSelling()`,
33
28
  * the stream/replay/clip read hooks and the polled record all behave as they do on device.
34
29
  *
35
- * `createElement` rather than JSX, like the rest of the package, so this stays a plain `.ts`.
30
+ * The stand-ins themselves (the idle session, the `View`, the bid gate that never blocks, the empty
31
+ * wins) live in `platformSession.web.ts` since 0.14.0, which the page hooks and the `/ui` bubbles read
32
+ * the session from, so they run here too; this file re-exports them.
36
33
  */
37
- const react_1 = require("react");
38
- const react_native_1 = require("react-native");
39
- const liveShow_1 = require("../liveShow");
40
- const sessionTypes_1 = require("../sessionTypes");
34
+ const platformSession_web_1 = require("./platformSession.web");
41
35
  const showPages_1 = require("./showPages");
42
36
  // Real on the web: the gateway is plain HTTP, and the engine it configures is the no-op build.
43
37
  var LiveSellingProvider_1 = require("./LiveSellingProvider");
@@ -92,141 +86,60 @@ Object.defineProperty(exports, "useItemsYouWonPageFor", { enumerable: true, get:
92
86
  Object.defineProperty(exports, "useLiveHubPageFor", { enumerable: true, get: function () { return showPages_2.useLiveHubPageFor; } });
93
87
  Object.defineProperty(exports, "useLiveRailFor", { enumerable: true, get: function () { return showPages_2.useLiveRailFor; } });
94
88
  Object.defineProperty(exports, "SHOWS_PAGE_SIZE", { enumerable: true, get: function () { return showPages_2.SHOWS_PAGE_SIZE; } });
95
- // ─── The session ─────────────────────────────────────────────────────────────
96
- /** Every action, resolved and doing nothing. There is no room to send any of it to. */
97
- const IDLE_ACTIONS = {
98
- bindVideoView: () => undefined,
99
- sendComment: async () => undefined,
100
- sendReaction: async () => undefined,
101
- announceAddToCart: async () => undefined,
102
- voteInPoll: async () => undefined,
103
- chooseViewerName: async () => null,
104
- addToCart: async () => false,
105
- joinAsGuest: () => Promise.reject(new Error('Co-hosting needs a device build.')),
106
- leaveGuest: async () => undefined,
107
- setGuestMicMuted: async () => undefined,
108
- setGuestCameraOff: async () => undefined,
109
- flipGuestCamera: async () => undefined,
110
- bindGuestPreview: () => undefined,
111
- bindGuestHostView: () => undefined,
112
- setMuted: () => undefined,
113
- setOutputMuted: () => undefined,
114
- setPipHandover: () => undefined,
115
- holdStream: () => undefined,
116
- releaseStream: () => undefined,
117
- enterPip: () => undefined,
118
- exitPip: () => undefined,
119
- placeBid: async () => ({ sent: false, reason: 'noShow' }),
120
- enterGiveaway: async () => ({ entered: false, reason: 'noGiveaway' }),
121
- dismissAuctionWin: () => undefined,
122
- dismissGiveawayResult: () => undefined,
123
- };
124
- /** A stream that is over: the one state every surface already knows how to draw. */
125
- const IDLE_SESSION = {
126
- status: 'ended',
127
- stream: null,
128
- viewerCount: 0,
129
- rawViewerCount: 0,
130
- reactionStyle: 'single',
131
- comments: [],
132
- activeProduct: null,
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
- }
89
+ // The idle session, the video's `View`, the bid gate that never blocks and the empty wins.
90
+ var platformSession_web_2 = require("./platformSession.web");
91
+ Object.defineProperty(exports, "LiveSessionProvider", { enumerable: true, get: function () { return platformSession_web_2.LiveSessionProvider; } });
92
+ Object.defineProperty(exports, "useLiveSession", { enumerable: true, get: function () { return platformSession_web_2.useLiveSession; } });
93
+ Object.defineProperty(exports, "useLiveShow", { enumerable: true, get: function () { return platformSession_web_2.useLiveShow; } });
94
+ Object.defineProperty(exports, "isNativeVideoSupported", { enumerable: true, get: function () { return platformSession_web_2.isNativeVideoSupported; } });
95
+ Object.defineProperty(exports, "NativeVideoView", { enumerable: true, get: function () { return platformSession_web_2.NativeVideoView; } });
96
+ Object.defineProperty(exports, "LiveVideoTarget", { enumerable: true, get: function () { return platformSession_web_2.LiveVideoTarget; } });
97
+ Object.defineProperty(exports, "SHEET_HANDOFF_MS", { enumerable: true, get: function () { return platformSession_web_2.SHEET_HANDOFF_MS; } });
98
+ Object.defineProperty(exports, "useAuctionBidGate", { enumerable: true, get: function () { return platformSession_web_2.useAuctionBidGate; } });
99
+ Object.defineProperty(exports, "useAuctionWins", { enumerable: true, get: function () { return platformSession_web_2.useAuctionWins; } });
100
+ // The Live and Replay pages (0.14.0): the same modules as on a device, which read the session from
101
+ // `./platformSession` and so get the idle one above here. The Live screen's tiles draw nothing (its show
102
+ // is always `ended`); the Replay screen's recordings and player are real.
103
+ var LiveSellingProvider_2 = require("./LiveSellingProvider");
104
+ Object.defineProperty(exports, "useLivePageOptions", { enumerable: true, get: function () { return LiveSellingProvider_2.useLivePageOptions; } });
105
+ var shopifyProviders_1 = require("./shopifyProviders");
106
+ Object.defineProperty(exports, "ShopifyLiveSellingProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSellingProvider; } });
107
+ Object.defineProperty(exports, "ShopifyLiveSessionProvider", { enumerable: true, get: function () { return shopifyProviders_1.ShopifyLiveSessionProvider; } });
108
+ var replayPlayer_1 = require("./replayPlayer");
109
+ Object.defineProperty(exports, "ReplayPlayerProvider", { enumerable: true, get: function () { return replayPlayer_1.ReplayPlayerProvider; } });
110
+ Object.defineProperty(exports, "useReplayPlayer", { enumerable: true, get: function () { return replayPlayer_1.useReplayPlayer; } });
111
+ var useKeepScreenAwake_1 = require("./useKeepScreenAwake");
112
+ Object.defineProperty(exports, "useKeepScreenAwake", { enumerable: true, get: function () { return useKeepScreenAwake_1.useKeepScreenAwake; } });
113
+ var useLivePage_1 = require("./useLivePage");
114
+ Object.defineProperty(exports, "useLivePage", { enumerable: true, get: function () { return useLivePage_1.useLivePage; } });
115
+ var useLiveChat_1 = require("./useLiveChat");
116
+ Object.defineProperty(exports, "useLiveChat", { enumerable: true, get: function () { return useLiveChat_1.useLiveChat; } });
117
+ var useLiveShop_1 = require("./useLiveShop");
118
+ Object.defineProperty(exports, "useLiveShop", { enumerable: true, get: function () { return useLiveShop_1.useLiveShop; } });
119
+ Object.defineProperty(exports, "shareProduct", { enumerable: true, get: function () { return useLiveShop_1.shareProduct; } });
120
+ Object.defineProperty(exports, "shareAddress", { enumerable: true, get: function () { return useLiveShop_1.shareAddress; } });
121
+ var useLiveAuction_1 = require("./useLiveAuction");
122
+ Object.defineProperty(exports, "useLiveAuction", { enumerable: true, get: function () { return useLiveAuction_1.useLiveAuction; } });
123
+ var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
124
+ Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
125
+ var useReplayPage_1 = require("./useReplayPage");
126
+ Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
127
+ // 0.15.0: the name on the shopper's account, for the name asks; the Clips page.
128
+ var useAccountName_1 = require("./useAccountName");
129
+ Object.defineProperty(exports, "useAccountName", { enumerable: true, get: function () { return useAccountName_1.useAccountName; } });
130
+ var useClipsPage_1 = require("./useClipsPage");
131
+ Object.defineProperty(exports, "useClipsPage", { enumerable: true, get: function () { return useClipsPage_1.useClipsPage; } });
219
132
  // ─── The page models ─────────────────────────────────────────────────────────
220
133
  /** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
221
134
  function useItemsYouWonPage(options) {
222
- return (0, showPages_1.useItemsYouWonPageFor)(useAuctionWins(), options);
135
+ return (0, showPages_1.useItemsYouWonPageFor)((0, platformSession_web_1.useAuctionWins)(), options);
223
136
  }
224
137
  /** The Live tab over the idle session: the recordings are real, the show on air never plays here. */
225
138
  function useLiveHubPage(options) {
226
- return (0, showPages_1.useLiveHubPageFor)(IDLE_SESSION, options);
139
+ return (0, showPages_1.useLiveHubPageFor)(platformSession_web_1.IDLE_SESSION, options);
227
140
  }
228
141
  /** A home screen's live rail over the idle session. */
229
142
  function useLiveRail(options) {
230
- return (0, showPages_1.useLiveRailFor)(IDLE_SESSION, options);
143
+ return (0, showPages_1.useLiveRailFor)(platformSession_web_1.IDLE_SESSION, options);
231
144
  }
232
145
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../src/react/index.web.ts"],"names":[],"mappings":";;;AA8KA,kDAEC;AAMD,wCAEC;AAMD,kCAEC;AAeD,0CAEC;AAOD,8CAeC;AAMD,wCAiBC;AAKD,gDAEC;AAGD,wCAEC;AAGD,kCAEC;A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oB,OAAA;AAAE,+GAAA,eAAe,OAAA;AAC9C,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,6CAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,6CAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,6CAA4G;AAAnG,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;AACtB,gFAAgF;AAChF,mDAAoE;AAA3D,gHAAA,cAAc,OAAA;AACvB,+CAA8D;AAArD,4GAAA,YAAY,OAAA;AAErB,gFAAgF;AAEhF,qFAAqF;AACrF,SAAgB,kBAAkB,CAAiB,OAAkC;IACnF,OAAO,IAAA,iCAAqB,EAAC,IAAA,oCAAc,GAAQ,EAAE,OAAO,CAAC,CAAC;AAChE,CAAC;AAED,qGAAqG;AACrG,SAAgB,cAAc,CAAC,OAA8B;IAC3D,OAAO,IAAA,6BAAiB,EAAC,kCAAY,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAED,uDAAuD;AACvD,SAAgB,WAAW,CAAC,OAA8B;IACxD,OAAO,IAAA,0BAAc,EAAC,kCAAY,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC"}
@@ -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"}
@@ -0,0 +1,35 @@
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
+ /** A stream that is over: the one state every surface already knows how to draw. */
10
+ export declare const IDLE_SESSION: LiveSession;
11
+ export declare function LiveSessionProvider({ children }: LiveSessionProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSession | null>>;
12
+ /**
13
+ * The idle session, read without touching the context: a surface rendered outside the provider
14
+ * behaves the same as one inside it, because on the web there is only ever this one session.
15
+ */
16
+ export declare function useLiveSession<TRaw = unknown>(): LiveSession<TRaw>;
17
+ /** `useLiveShow` over the idle session: always `ended`, with no show, whatever the id. */
18
+ export declare function useLiveShow(_streamingId: string | null | undefined): LiveShow;
19
+ export declare const isNativeVideoSupported = false;
20
+ /**
21
+ * A plain `View`, which is what the native file falls back to on a build without the Zego SDK:
22
+ * callers position this and draw a poster over it, so returning null would collapse the layout the
23
+ * poster depends on.
24
+ */
25
+ export declare const NativeVideoView: import("react").ForwardRefExoticComponent<ViewProps & import("react").RefAttributes<unknown>>;
26
+ export declare function LiveVideoTarget({ style, children }: LiveVideoTargetProps): import("react").CElement<ViewProps, View>;
27
+ export declare const SHEET_HANDOFF_MS = 380;
28
+ /** Never blocks, because there is no bid to gate — `placeBid` above resolves without sending. */
29
+ export declare function useAuctionBidGate(_options: UseAuctionBidGateOptions): AuctionBidGate;
30
+ /**
31
+ * An empty tab rather than a failure. The wins metafield is readable from a browser, but settling one
32
+ * mints a cart and sends the shopper to checkout — not something a preview should be able to start.
33
+ */
34
+ export declare function useAuctionWins<TRaw = unknown>(_options?: UseAuctionWinsOptions): UseAuctionWinsState<TRaw>;
35
+ //# sourceMappingURL=platformSession.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformSession.web.d.ts","sourceRoot":"","sources":["../../src/react/platformSession.web.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEzD,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;AAiC9D,oFAAoF;AACpF,eAAO,MAAM,YAAY,EAAE,WA8B1B,CAAC;AAIF,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,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