@tiledev/sdk-apptile-live-selling 0.15.4 → 0.16.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 +48 -5
- package/dist/attribution.d.ts +16 -2
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js +10 -4
- package/dist/attribution.js.map +1 -1
- package/dist/auctions.d.ts.map +1 -1
- package/dist/auctions.js +2 -1
- package/dist/auctions.js.map +1 -1
- package/dist/cartAttributes.d.ts +10 -0
- package/dist/cartAttributes.d.ts.map +1 -1
- package/dist/cartAttributes.js +20 -1
- package/dist/cartAttributes.js.map +1 -1
- package/dist/checkoutRefused.d.ts +9 -0
- package/dist/checkoutRefused.d.ts.map +1 -0
- package/dist/checkoutRefused.js +16 -0
- package/dist/checkoutRefused.js.map +1 -0
- package/dist/clips.d.ts +4 -2
- package/dist/clips.d.ts.map +1 -1
- package/dist/clips.js +76 -15
- package/dist/clips.js.map +1 -1
- package/dist/giveawayPrizes.d.ts +20 -0
- package/dist/giveawayPrizes.d.ts.map +1 -0
- package/dist/giveawayPrizes.js +50 -0
- package/dist/giveawayPrizes.js.map +1 -0
- package/dist/index.d.ts +13 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -4
- package/dist/index.js.map +1 -1
- package/dist/livePages.d.ts +11 -1
- package/dist/livePages.d.ts.map +1 -1
- package/dist/livePages.js +29 -0
- package/dist/livePages.js.map +1 -1
- package/dist/liveShow.d.ts +7 -0
- package/dist/liveShow.d.ts.map +1 -1
- package/dist/liveShow.js +10 -0
- package/dist/liveShow.js.map +1 -1
- package/dist/missedPolls.d.ts +27 -0
- package/dist/missedPolls.d.ts.map +1 -0
- package/dist/missedPolls.js +16 -0
- package/dist/missedPolls.js.map +1 -0
- package/dist/pageOptions.d.ts +31 -0
- package/dist/pageOptions.d.ts.map +1 -1
- package/dist/pageOptions.js +25 -1
- package/dist/pageOptions.js.map +1 -1
- package/dist/pageTypes.d.ts +1 -1
- package/dist/pageTypes.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.d.ts +16 -2
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +15 -4
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/index.d.ts +6 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +6 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.web.d.ts +5 -4
- package/dist/react/index.web.d.ts.map +1 -1
- package/dist/react/index.web.js +5 -2
- package/dist/react/index.web.js.map +1 -1
- package/dist/react/replayPlayer.d.ts +2 -0
- package/dist/react/replayPlayer.d.ts.map +1 -1
- package/dist/react/replayPlayer.js +11 -1
- package/dist/react/replayPlayer.js.map +1 -1
- package/dist/react/shopifyProviders.d.ts +18 -5
- package/dist/react/shopifyProviders.d.ts.map +1 -1
- package/dist/react/shopifyProviders.js +17 -4
- package/dist/react/shopifyProviders.js.map +1 -1
- package/dist/react/showPages.d.ts.map +1 -1
- package/dist/react/showPages.js +4 -2
- package/dist/react/showPages.js.map +1 -1
- package/dist/react/useAuctionBidGate.d.ts +8 -2
- package/dist/react/useAuctionBidGate.d.ts.map +1 -1
- package/dist/react/useAuctionBidGate.js +59 -2
- package/dist/react/useAuctionBidGate.js.map +1 -1
- package/dist/react/useAuctionWins.d.ts +5 -3
- package/dist/react/useAuctionWins.d.ts.map +1 -1
- package/dist/react/useAuctionWins.js +7 -2
- package/dist/react/useAuctionWins.js.map +1 -1
- package/dist/react/useClips.d.ts +7 -1
- package/dist/react/useClips.d.ts.map +1 -1
- package/dist/react/useClips.js +20 -7
- package/dist/react/useClips.js.map +1 -1
- package/dist/react/useFeaturedClip.d.ts +5 -1
- package/dist/react/useFeaturedClip.d.ts.map +1 -1
- package/dist/react/useFeaturedClip.js +6 -4
- package/dist/react/useFeaturedClip.js.map +1 -1
- package/dist/react/useGiveawayPrizes.d.ts +4 -0
- package/dist/react/useGiveawayPrizes.d.ts.map +1 -0
- package/dist/react/useGiveawayPrizes.js +58 -0
- package/dist/react/useGiveawayPrizes.js.map +1 -0
- package/dist/react/useLiveAuction.d.ts.map +1 -1
- package/dist/react/useLiveAuction.js +12 -6
- package/dist/react/useLiveAuction.js.map +1 -1
- package/dist/react/useLiveChat.d.ts +1 -1
- package/dist/react/useLiveChat.d.ts.map +1 -1
- package/dist/react/useLiveChat.js +30 -9
- package/dist/react/useLiveChat.js.map +1 -1
- package/dist/react/useLivePage.d.ts +8 -6
- package/dist/react/useLivePage.d.ts.map +1 -1
- package/dist/react/useLivePage.js +33 -18
- package/dist/react/useLivePage.js.map +1 -1
- package/dist/react/useLiveSession.d.ts.map +1 -1
- package/dist/react/useLiveSession.js +51 -0
- package/dist/react/useLiveSession.js.map +1 -1
- package/dist/react/useLiveShop.d.ts +2 -1
- package/dist/react/useLiveShop.d.ts.map +1 -1
- package/dist/react/useLiveShop.js +4 -2
- package/dist/react/useLiveShop.js.map +1 -1
- package/dist/react/useReplayPage.d.ts +22 -3
- package/dist/react/useReplayPage.d.ts.map +1 -1
- package/dist/react/useReplayPage.js +109 -102
- package/dist/react/useReplayPage.js.map +1 -1
- package/dist/react/useSilentAuctionLot.d.ts +2 -0
- package/dist/react/useSilentAuctionLot.d.ts.map +1 -1
- package/dist/react/useSilentAuctionLot.js +17 -1
- package/dist/react/useSilentAuctionLot.js.map +1 -1
- package/dist/react/useSilentAuctionLots.d.ts +2 -0
- package/dist/react/useSilentAuctionLots.d.ts.map +1 -1
- package/dist/react/useSilentAuctionLots.js +1 -0
- package/dist/react/useSilentAuctionLots.js.map +1 -1
- package/dist/react/useSilentAuctionRounds.d.ts +2 -1
- package/dist/react/useSilentAuctionRounds.d.ts.map +1 -1
- package/dist/react/useSilentAuctionRounds.js +1 -1
- package/dist/react/useSilentAuctionRounds.js.map +1 -1
- package/dist/react/useStreamInfo.d.ts.map +1 -1
- package/dist/react/useStreamInfo.js +5 -3
- package/dist/react/useStreamInfo.js.map +1 -1
- package/dist/shopifyCommerce.d.ts +18 -5
- package/dist/shopifyCommerce.d.ts.map +1 -1
- package/dist/shopifyCommerce.js +45 -11
- package/dist/shopifyCommerce.js.map +1 -1
- package/dist/showCredit.d.ts +4 -2
- package/dist/showCredit.d.ts.map +1 -1
- package/dist/showCredit.js +2 -2
- package/dist/showCredit.js.map +1 -1
- package/dist/showLots.d.ts +16 -0
- package/dist/showLots.d.ts.map +1 -1
- package/dist/showLots.js +19 -0
- package/dist/showLots.js.map +1 -1
- package/dist/silentAuctionFeed.d.ts +2 -0
- package/dist/silentAuctionFeed.d.ts.map +1 -1
- package/dist/silentAuctionFeed.js +12 -2
- package/dist/silentAuctionFeed.js.map +1 -1
- package/dist/silentAuctionRules.d.ts +46 -0
- package/dist/silentAuctionRules.d.ts.map +1 -1
- package/dist/silentAuctionRules.js +65 -1
- package/dist/silentAuctionRules.js.map +1 -1
- package/dist/storeData.d.ts +16 -0
- package/dist/storeData.d.ts.map +1 -0
- package/dist/storeData.js +19 -0
- package/dist/storeData.js.map +1 -0
- package/dist/types.d.ts +27 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/ui/LiveBubble.d.ts +7 -1
- package/dist/ui/LiveBubble.d.ts.map +1 -1
- package/dist/ui/LiveBubble.js +19 -4
- package/dist/ui/LiveBubble.js.map +1 -1
- package/dist/unreadRoomMessages.d.ts +26 -0
- package/dist/unreadRoomMessages.d.ts.map +1 -0
- package/dist/unreadRoomMessages.js +62 -0
- package/dist/unreadRoomMessages.js.map +1 -0
- package/dist/viewerRules.d.ts +38 -0
- package/dist/viewerRules.d.ts.map +1 -0
- package/dist/viewerRules.js +46 -0
- package/dist/viewerRules.js.map +1 -0
- package/dist/winsAttribution.d.ts +22 -0
- package/dist/winsAttribution.d.ts.map +1 -0
- package/dist/winsAttribution.js +49 -0
- package/dist/winsAttribution.js.map +1 -0
- package/dist/zegoEngine.d.ts.map +1 -1
- package/dist/zegoEngine.js +14 -7
- package/dist/zegoEngine.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -28,32 +28,36 @@ export { GIVEAWAY_ROSTER_RETRY_MS, GIVEAWAY_ROSTER_WAIT_MS, giveawayForLot, rost
|
|
|
28
28
|
export { toMixerLayout } from './guest';
|
|
29
29
|
export { resetCompanyFlagsCache } from './flags';
|
|
30
30
|
export { MAX_VIEWER_NAME } from './viewer';
|
|
31
|
-
export { LIVE_STREAM_ID_ATTRIBUTE, REPLAY_ID_ATTRIBUTE, liveCartAttributesFor, replayCartAttributesFor, addLiveLine, } from './cartAttributes';
|
|
31
|
+
export { LIVE_STREAM_ID_ATTRIBUTE, REPLAY_ID_ATTRIBUTE, SILENT_AUCTION_ID_ATTRIBUTE, liveCartAttributesFor, replayCartAttributesFor, addLiveLine, } from './cartAttributes';
|
|
32
32
|
export { liveAttributionSourceFor, replayAttributionSourceFor, type AttributionSource, } from './attribution';
|
|
33
33
|
export { toCommentSegments, hasCommentLink, classifyCommentLink, toUrlPreview, displayHost, type CommentLink, type CommentLinkCard, type CommentSegment, type StoreCommentLink, } from './commentLinks';
|
|
34
34
|
export { resolveCommentLinkCard, cachedCommentLinkCard, clearCommentLinkCards } from './commentLinkCards';
|
|
35
35
|
export { silentAuctions, SILENT_AUCTION_API_URL, BID_RECORD_BATCH_SIZE } from './silentAuctions';
|
|
36
|
-
export { toSilentAuctionLot, lotsFromResponse, lotProductGid, lotKey, lotPhase, timeLeftMs, inExtensionWindow, wasExtended, nextBid, bidCapState, isLeading, lotStatus, orderLots, upcomingGroups, myBidsTabs, productPageBuyBar, bidRecordEntries, bidRecordEntry, queryableBidEntries, toSilentAuctionRound, BID_RECORD_NAMESPACE, BID_RECORD_KEY, type SilentAuctionLot, type SilentAuctionPhase, type SilentAuctionLotStatus, type SilentAuctionOrder, type BidCapState, type ProductPageBuyBarInput, type SilentAuctionRound, type SilentAuctionRoundLot, } from './silentAuctionRules';
|
|
36
|
+
export { toSilentAuctionLot, lotsFromResponse, lotProductGid, lotKey, lotPhase, timeLeftMs, inExtensionWindow, wasExtended, nextBid, bidCapState, isLeading, lotStatus, orderLots, upcomingGroups, myBidsTabs, productPageBuyBar, productAuctionGates, AUCTION_GATE_METAFIELDS, type ProductWithAuctionGates, bidRecordEntries, bidRecordEntry, queryableBidEntries, toSilentAuctionRound, BID_RECORD_NAMESPACE, BID_RECORD_KEY, type SilentAuctionLot, type SilentAuctionPhase, type SilentAuctionLotStatus, type SilentAuctionOrder, type BidCapState, type ProductPageBuyBarInput, type SilentAuctionRound, type SilentAuctionRoundLot, } from './silentAuctionRules';
|
|
37
37
|
export { createSilentAuctionFeed, type SilentAuctionFeed, type SilentAuctionFeedOptions, type SilentAuctionFeedState, type SilentAuctionItem, } from './silentAuctionFeed';
|
|
38
|
-
export { createShopifyLiveCommerce, liveProductFromShopify, chargedVariantId, AUCTION_CART_SOURCE_TYPE, WINNING_BID_KEY, WIN_INDEX_KEY, type ShopifyAttribute, type ShopifyBuyer, type ShopifyCartLineInput, type ShopifyCollectionForCard, type ShopifyImageTransform, type ShopifyLiveCommerce, type ShopifyLiveCommerceOptions, type ShopifyMoney, type ShopifyProductForLive, type ShopifyProductsAndCart, } from './shopifyCommerce';
|
|
38
|
+
export { createShopifyLiveCommerce, liveProductFromShopify, chargedVariantId, AUCTION_CART_SOURCE_TYPE, WINNING_BID_KEY, WIN_INDEX_KEY, LOT_NUMBER_KEY, auctionIdsOf, type ShopifyAttribute, type ShopifyBuyer, type ShopifyCartLineInput, type ShopifyCollectionForCard, type ShopifyImageTransform, type ShopifyLiveCommerce, type ShopifyLiveCommerceOptions, type ShopifyMoney, type ShopifyProductForLive, type ShopifyProductsAndCart, } from './shopifyCommerce';
|
|
39
39
|
export { createShopifyLiveIdentity, type ShopifyCustomerSession, type ShopifyLiveIdentity, } from './shopifyIdentity';
|
|
40
40
|
export { GIVEAWAY_CODE_PREFIX, GIVEAWAY_PRIZE_KEY, GIVEAWAY_PRIZE_KEYS, isGiveawayCode, isGiveawayPrizeLine, prizeLinePrice, prizesCoveredByGiveawayCodes, type CartLineForGiveawayCodes, type GiveawayPrizeLineOptions, type PrizeLinePrice, } from './giveawayPrizeLines';
|
|
41
41
|
export { giveawayPrizeExtension, type GiveawayPrizeExtension, type GiveawayPrizeExtensionOptions, type CartLineForPrizes, } from './cartExtension';
|
|
42
42
|
export { isHiddenFrom, isHiddenShow, seesHiddenShows, withoutHiddenShows, REHEARSALS } from './hiddenShows';
|
|
43
43
|
export { publicName, firstNameOf, viewerNameFor, sameRoomName, isBlockedViewerName, DEFAULT_BLOCKED_VIEWER_NAMES, MOST_BLOCKED_NAMES, blockedNamesFrom, type NamedCustomer, } from './showNames';
|
|
44
|
-
export { liveShowFor, canPlayInCard, type LiveShow, type LiveShowStatus, type SessionForCard, type SessionForShow, } from './liveShow';
|
|
45
|
-
export { featuredFirst, withLotFieldsFromRecord } from './showLots';
|
|
44
|
+
export { liveShowFor, canPlayInCard, hostIsAway, type LiveShow, type LiveShowStatus, type SessionForCard, type SessionForShow, } from './liveShow';
|
|
45
|
+
export { featuredFirst, productOnCard, withLotFieldsFromRecord } from './showLots';
|
|
46
|
+
export { MISSED_POLL_READ_MS, readsForMissedPoll } from './missedPolls';
|
|
47
|
+
export { roomMessageKind, UnreadRoomMessages } from './unreadRoomMessages';
|
|
46
48
|
export { showLinkDestination } from './showLinks';
|
|
47
49
|
export { bidRefusal, quickBids, winChance, lotStateFor, isYourWin, BID_ON_ITS_WAY_MS, QUICK_BID_STEPS, VERY_HIGH_CHANCE_OVER, GOOD_CHANCE_OVER, type BidRound, type BidRefusalReason, type WinChance, openingBidFor } from './auctionRules';
|
|
48
50
|
export { classifyComment, type CommentLine } from './auctionComments';
|
|
51
|
+
export { collectGiveawayPrizes, type GiveawayPrizesConfig, type GiveawayPrizeCollection } from './giveawayPrizes';
|
|
49
52
|
export { isTheVariant, givenAwayVariant } from './giveawayPrize';
|
|
50
53
|
export { variantPageParams, auctionLotPageParams, liveShowCredit, replayShowCredit, reportShowAdd, showQuickAddOptions, type ShowCredit, type ShowQuickAdd, type VariantPageParams, } from './showCredit';
|
|
51
54
|
export { announceAddToLiveRoom, type LiveRoomAnnouncement } from './liveRoom';
|
|
52
|
-
export { BACK_ACTIONS, NO_HOLDS, REPLAY_COMMENTS_SHOWN, accountLoadingOf, accountNameAsk, accountNameToComplete, chatNameAsk, firstShownAt, giveawayNameAsk, holdEndTimesOf, isCoveredOnlyBySheet, isTheShow, playerMs, productOnScreen, replayCommentsAt, tidyAccountName, type AccountForNames, type ChatNameInput, type StackStateForSheets, } from './livePages';
|
|
55
|
+
export { BACK_ACTIONS, NO_HOLDS, REPLAY_COMMENTS_SHOWN, accountLoadingOf, accountNameAsk, accountNameToComplete, chatNameAsk, firstShownAt, giveawayNameAsk, holdEndTimesOf, isCoveredOnlyBySheet, isTheShow, playerMs, productOnScreen, replayClipWindow, replayCommentsAt, replayOfClip, tidyAccountName, type AccountForNames, type ChatNameInput, type StackStateForSheets, } from './livePages';
|
|
53
56
|
export { opensInApp, linkLotPrice, showLinkOf, recordingShopItems, isShowLink, type ShowLink, type LinkLotFields, type RecordLot, } from './linkLots';
|
|
54
57
|
export { featuredClipOf, isCopyOfClip } from './clips';
|
|
55
58
|
export { CLIP_THUMB_PIXELS, clipProductId, clipReelItems, type ProductForClip } from './clipsPage';
|
|
56
|
-
export { NO_ROUTES, consoleWarning, pageOptionsReading, reportLiveWarning, type LivePageOptions, type LivePageOptionsInput, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ScreenNavigation, type SignInPageMethod, } from './pageOptions';
|
|
59
|
+
export { NO_ROUTES, NO_RESTRICTIONS, BID_BLOCKED_TAG, APP_BLOCKED_TAG, viewerRestrictionsFromTags, consoleWarning, pageOptionsReading, reportLiveWarning, type LivePageOptions, type LivePageOptionsInput, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ScreenNavigation, type SignInPageMethod, type ViewerRestrictions, } from './pageOptions';
|
|
60
|
+
export { createReactionBudget, restrictionStepFor, replayControlsRule, REPLAY_CONTROLS_SHOW_MS, type ReactionBudget, } from './viewerRules';
|
|
57
61
|
export type * from './pageTypes';
|
|
58
62
|
export { sessionReducer, initialSessionState, deriveStatus, roundClosesAt, nextExpiryAt, isNothingOnAir, withOffAirSettled, isTheEndedGiveaway, SOLD_CARD_MS, REACTION_MS, CART_CARD_MS, } from './session';
|
|
59
63
|
export { capabilitiesFor, LIVE_CAPABILITIES, AUCTION_CAPABILITIES, REPLAY_CAPABILITIES, IDLE_AUCTION, IDLE_GIVEAWAY, } from './sessionTypes';
|
|
@@ -91,4 +95,6 @@ export * from './react/index';
|
|
|
91
95
|
*/
|
|
92
96
|
export { BubbleFrame, BUBBLE_CHIP_COLOR, LiveBubble, ReplayBubble, type BubbleFrameProps, type LiveBubbleProps, type ReplayBubbleProps, } from './ui';
|
|
93
97
|
export { readsOnPastHidden, readsRecordingsAgainOnView, showListStatus, winsTotal, type ShowListStatus, type ShowListInput } from './showPages';
|
|
98
|
+
export { LOT_TAG } from './storeData';
|
|
99
|
+
export { CheckoutRefusedError } from './checkoutRefused';
|
|
94
100
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAG5F,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,YAAY,GACb,MAAM,UAAU,CAAC;AAClB,OA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AAkB,EAClB,YAAY,EACZ,WAAW,EACX,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,aAAa,GACd,MAAM,gBAAgB,CAAC;AAGxB;;;;;;GAMG;AACH,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGvF,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,gBAAgB,CAAC;AAEpC;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B;;;;;GAKG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAChJ,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -30,10 +30,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
30
30
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
33
|
+
exports.displayHost = exports.toUrlPreview = exports.classifyCommentLink = exports.hasCommentLink = exports.toCommentSegments = exports.replayAttributionSourceFor = exports.liveAttributionSourceFor = exports.addLiveLine = exports.replayCartAttributesFor = exports.liveCartAttributesFor = exports.SILENT_AUCTION_ID_ATTRIBUTE = exports.REPLAY_ID_ATTRIBUTE = exports.LIVE_STREAM_ID_ATTRIBUTE = exports.MAX_VIEWER_NAME = exports.resetCompanyFlagsCache = exports.toMixerLayout = exports.isYourGiveawayWin = exports.winnerIdFromRecord = exports.rosterFromRecord = exports.giveawayForLot = exports.GIVEAWAY_ROSTER_WAIT_MS = exports.GIVEAWAY_ROSTER_RETRY_MS = exports.HOST_SELF_NAME = exports.COMMENT_HISTORY_WINDOW = exports.mergeCommentHistory = exports.toCommentHistory = exports.toPinnedComment = exports.imageUrl = exports.toEmbeddedResults = exports.toLivePollResults = exports.toLivePoll = exports.toGiveawayEntries = exports.toLiveGiveaway = exports.toLiveStreamProduct = exports.toLiveStreams = exports.toLiveStream = exports.JOIN_RETRY_BASE_MS = exports.JOIN_ATTEMPTS = exports.ZegoLoginError = exports.toProductGid = exports.DEFAULT_OFF_AIR_GRACE_MS = exports.DEFAULT_REQUEST_TIMEOUT_MS = exports.LiveSellingTimeoutError = exports.LiveSellingError = exports.liveEngine = exports.LIVE_HAPTICS_TICK_GAP_MS = exports.createLiveHaptics = exports.liveHaptics = exports.default = exports.liveSelling = void 0;
|
|
34
|
+
exports.isHiddenShow = exports.isHiddenFrom = exports.giveawayPrizeExtension = exports.prizesCoveredByGiveawayCodes = exports.prizeLinePrice = exports.isGiveawayPrizeLine = exports.isGiveawayCode = exports.GIVEAWAY_PRIZE_KEYS = exports.GIVEAWAY_PRIZE_KEY = exports.GIVEAWAY_CODE_PREFIX = exports.createShopifyLiveIdentity = exports.auctionIdsOf = exports.LOT_NUMBER_KEY = exports.WIN_INDEX_KEY = exports.WINNING_BID_KEY = exports.AUCTION_CART_SOURCE_TYPE = exports.chargedVariantId = exports.liveProductFromShopify = exports.createShopifyLiveCommerce = exports.createSilentAuctionFeed = exports.BID_RECORD_KEY = exports.BID_RECORD_NAMESPACE = exports.toSilentAuctionRound = exports.queryableBidEntries = exports.bidRecordEntry = exports.bidRecordEntries = exports.AUCTION_GATE_METAFIELDS = exports.productAuctionGates = exports.productPageBuyBar = exports.myBidsTabs = exports.upcomingGroups = exports.orderLots = exports.lotStatus = exports.isLeading = exports.bidCapState = exports.nextBid = exports.wasExtended = exports.inExtensionWindow = exports.timeLeftMs = exports.lotPhase = exports.lotKey = exports.lotProductGid = exports.lotsFromResponse = exports.toSilentAuctionLot = exports.BID_RECORD_BATCH_SIZE = exports.SILENT_AUCTION_API_URL = exports.silentAuctions = exports.clearCommentLinkCards = exports.cachedCommentLinkCard = exports.resolveCommentLinkCard = void 0;
|
|
35
|
+
exports.chatNameAsk = exports.accountNameToComplete = exports.accountNameAsk = exports.accountLoadingOf = exports.REPLAY_COMMENTS_SHOWN = exports.NO_HOLDS = exports.BACK_ACTIONS = exports.announceAddToLiveRoom = exports.showQuickAddOptions = exports.reportShowAdd = exports.replayShowCredit = exports.liveShowCredit = exports.auctionLotPageParams = exports.variantPageParams = exports.givenAwayVariant = exports.isTheVariant = exports.collectGiveawayPrizes = exports.classifyComment = exports.openingBidFor = exports.GOOD_CHANCE_OVER = exports.VERY_HIGH_CHANCE_OVER = exports.QUICK_BID_STEPS = exports.BID_ON_ITS_WAY_MS = exports.isYourWin = exports.lotStateFor = exports.winChance = exports.quickBids = exports.bidRefusal = exports.showLinkDestination = exports.UnreadRoomMessages = exports.roomMessageKind = exports.readsForMissedPoll = exports.MISSED_POLL_READ_MS = exports.withLotFieldsFromRecord = exports.productOnCard = exports.featuredFirst = exports.hostIsAway = exports.canPlayInCard = exports.liveShowFor = exports.blockedNamesFrom = exports.MOST_BLOCKED_NAMES = exports.DEFAULT_BLOCKED_VIEWER_NAMES = exports.isBlockedViewerName = exports.sameRoomName = exports.viewerNameFor = exports.firstNameOf = exports.publicName = exports.REHEARSALS = exports.withoutHiddenShows = exports.seesHiddenShows = void 0;
|
|
36
|
+
exports.IDLE_GIVEAWAY = exports.IDLE_AUCTION = exports.REPLAY_CAPABILITIES = exports.AUCTION_CAPABILITIES = exports.LIVE_CAPABILITIES = exports.capabilitiesFor = exports.CART_CARD_MS = exports.REACTION_MS = exports.SOLD_CARD_MS = exports.isTheEndedGiveaway = exports.withOffAirSettled = exports.isNothingOnAir = exports.nextExpiryAt = exports.roundClosesAt = exports.deriveStatus = exports.initialSessionState = exports.sessionReducer = exports.REPLAY_CONTROLS_SHOW_MS = exports.replayControlsRule = exports.restrictionStepFor = exports.createReactionBudget = exports.reportLiveWarning = exports.pageOptionsReading = exports.consoleWarning = exports.viewerRestrictionsFromTags = exports.APP_BLOCKED_TAG = exports.BID_BLOCKED_TAG = exports.NO_RESTRICTIONS = exports.NO_ROUTES = exports.clipReelItems = exports.clipProductId = exports.CLIP_THUMB_PIXELS = exports.isCopyOfClip = exports.featuredClipOf = exports.isShowLink = exports.recordingShopItems = exports.showLinkOf = exports.linkLotPrice = exports.opensInApp = exports.tidyAccountName = exports.replayOfClip = exports.replayCommentsAt = exports.replayClipWindow = exports.productOnScreen = exports.playerMs = exports.isTheShow = exports.isCoveredOnlyBySheet = exports.holdEndTimesOf = exports.giveawayNameAsk = exports.firstShownAt = void 0;
|
|
37
|
+
exports.CheckoutRefusedError = exports.LOT_TAG = exports.winsTotal = exports.showListStatus = exports.readsRecordingsAgainOnView = exports.readsOnPastHidden = exports.ReplayBubble = exports.LiveBubble = exports.BUBBLE_CHIP_COLOR = exports.BubbleFrame = exports.ONGOING_LIVE_POLL_LIVE_MS = exports.ONGOING_LIVE_POLL_IDLE_MS = exports.createOngoingLiveStore = exports.COMMENT_SOURCES = exports.isLivePipSupported = exports.livePip = void 0;
|
|
37
38
|
// The imperative client (default + named).
|
|
38
39
|
var liveSelling_1 = require("./liveSelling");
|
|
39
40
|
Object.defineProperty(exports, "liveSelling", { enumerable: true, get: function () { return liveSelling_1.liveSelling; } });
|
|
@@ -94,6 +95,7 @@ Object.defineProperty(exports, "MAX_VIEWER_NAME", { enumerable: true, get: funct
|
|
|
94
95
|
var cartAttributes_1 = require("./cartAttributes");
|
|
95
96
|
Object.defineProperty(exports, "LIVE_STREAM_ID_ATTRIBUTE", { enumerable: true, get: function () { return cartAttributes_1.LIVE_STREAM_ID_ATTRIBUTE; } });
|
|
96
97
|
Object.defineProperty(exports, "REPLAY_ID_ATTRIBUTE", { enumerable: true, get: function () { return cartAttributes_1.REPLAY_ID_ATTRIBUTE; } });
|
|
98
|
+
Object.defineProperty(exports, "SILENT_AUCTION_ID_ATTRIBUTE", { enumerable: true, get: function () { return cartAttributes_1.SILENT_AUCTION_ID_ATTRIBUTE; } });
|
|
97
99
|
Object.defineProperty(exports, "liveCartAttributesFor", { enumerable: true, get: function () { return cartAttributes_1.liveCartAttributesFor; } });
|
|
98
100
|
Object.defineProperty(exports, "replayCartAttributesFor", { enumerable: true, get: function () { return cartAttributes_1.replayCartAttributesFor; } });
|
|
99
101
|
Object.defineProperty(exports, "addLiveLine", { enumerable: true, get: function () { return cartAttributes_1.addLiveLine; } });
|
|
@@ -134,6 +136,8 @@ Object.defineProperty(exports, "orderLots", { enumerable: true, get: function ()
|
|
|
134
136
|
Object.defineProperty(exports, "upcomingGroups", { enumerable: true, get: function () { return silentAuctionRules_1.upcomingGroups; } });
|
|
135
137
|
Object.defineProperty(exports, "myBidsTabs", { enumerable: true, get: function () { return silentAuctionRules_1.myBidsTabs; } });
|
|
136
138
|
Object.defineProperty(exports, "productPageBuyBar", { enumerable: true, get: function () { return silentAuctionRules_1.productPageBuyBar; } });
|
|
139
|
+
Object.defineProperty(exports, "productAuctionGates", { enumerable: true, get: function () { return silentAuctionRules_1.productAuctionGates; } });
|
|
140
|
+
Object.defineProperty(exports, "AUCTION_GATE_METAFIELDS", { enumerable: true, get: function () { return silentAuctionRules_1.AUCTION_GATE_METAFIELDS; } });
|
|
137
141
|
Object.defineProperty(exports, "bidRecordEntries", { enumerable: true, get: function () { return silentAuctionRules_1.bidRecordEntries; } });
|
|
138
142
|
Object.defineProperty(exports, "bidRecordEntry", { enumerable: true, get: function () { return silentAuctionRules_1.bidRecordEntry; } });
|
|
139
143
|
Object.defineProperty(exports, "queryableBidEntries", { enumerable: true, get: function () { return silentAuctionRules_1.queryableBidEntries; } });
|
|
@@ -152,6 +156,8 @@ Object.defineProperty(exports, "chargedVariantId", { enumerable: true, get: func
|
|
|
152
156
|
Object.defineProperty(exports, "AUCTION_CART_SOURCE_TYPE", { enumerable: true, get: function () { return shopifyCommerce_1.AUCTION_CART_SOURCE_TYPE; } });
|
|
153
157
|
Object.defineProperty(exports, "WINNING_BID_KEY", { enumerable: true, get: function () { return shopifyCommerce_1.WINNING_BID_KEY; } });
|
|
154
158
|
Object.defineProperty(exports, "WIN_INDEX_KEY", { enumerable: true, get: function () { return shopifyCommerce_1.WIN_INDEX_KEY; } });
|
|
159
|
+
Object.defineProperty(exports, "LOT_NUMBER_KEY", { enumerable: true, get: function () { return shopifyCommerce_1.LOT_NUMBER_KEY; } });
|
|
160
|
+
Object.defineProperty(exports, "auctionIdsOf", { enumerable: true, get: function () { return shopifyCommerce_1.auctionIdsOf; } });
|
|
155
161
|
var shopifyIdentity_1 = require("./shopifyIdentity");
|
|
156
162
|
Object.defineProperty(exports, "createShopifyLiveIdentity", { enumerable: true, get: function () { return shopifyIdentity_1.createShopifyLiveIdentity; } });
|
|
157
163
|
var giveawayPrizeLines_1 = require("./giveawayPrizeLines");
|
|
@@ -186,9 +192,18 @@ Object.defineProperty(exports, "blockedNamesFrom", { enumerable: true, get: func
|
|
|
186
192
|
var liveShow_1 = require("./liveShow");
|
|
187
193
|
Object.defineProperty(exports, "liveShowFor", { enumerable: true, get: function () { return liveShow_1.liveShowFor; } });
|
|
188
194
|
Object.defineProperty(exports, "canPlayInCard", { enumerable: true, get: function () { return liveShow_1.canPlayInCard; } });
|
|
195
|
+
Object.defineProperty(exports, "hostIsAway", { enumerable: true, get: function () { return liveShow_1.hostIsAway; } });
|
|
189
196
|
var showLots_1 = require("./showLots");
|
|
190
197
|
Object.defineProperty(exports, "featuredFirst", { enumerable: true, get: function () { return showLots_1.featuredFirst; } });
|
|
198
|
+
Object.defineProperty(exports, "productOnCard", { enumerable: true, get: function () { return showLots_1.productOnCard; } });
|
|
191
199
|
Object.defineProperty(exports, "withLotFieldsFromRecord", { enumerable: true, get: function () { return showLots_1.withLotFieldsFromRecord; } });
|
|
200
|
+
// A poll the room never told the phone about, and room messages this version doesn't read (0.16.0, ENG-969).
|
|
201
|
+
var missedPolls_1 = require("./missedPolls");
|
|
202
|
+
Object.defineProperty(exports, "MISSED_POLL_READ_MS", { enumerable: true, get: function () { return missedPolls_1.MISSED_POLL_READ_MS; } });
|
|
203
|
+
Object.defineProperty(exports, "readsForMissedPoll", { enumerable: true, get: function () { return missedPolls_1.readsForMissedPoll; } });
|
|
204
|
+
var unreadRoomMessages_1 = require("./unreadRoomMessages");
|
|
205
|
+
Object.defineProperty(exports, "roomMessageKind", { enumerable: true, get: function () { return unreadRoomMessages_1.roomMessageKind; } });
|
|
206
|
+
Object.defineProperty(exports, "UnreadRoomMessages", { enumerable: true, get: function () { return unreadRoomMessages_1.UnreadRoomMessages; } });
|
|
192
207
|
var showLinks_1 = require("./showLinks");
|
|
193
208
|
Object.defineProperty(exports, "showLinkDestination", { enumerable: true, get: function () { return showLinks_1.showLinkDestination; } });
|
|
194
209
|
// The bid and giveaway flows' rules (0.9.0, "SDK move 8"). Pure, so an app's own tests can load them
|
|
@@ -206,6 +221,8 @@ Object.defineProperty(exports, "GOOD_CHANCE_OVER", { enumerable: true, get: func
|
|
|
206
221
|
Object.defineProperty(exports, "openingBidFor", { enumerable: true, get: function () { return auctionRules_1.openingBidFor; } });
|
|
207
222
|
var auctionComments_1 = require("./auctionComments");
|
|
208
223
|
Object.defineProperty(exports, "classifyComment", { enumerable: true, get: function () { return auctionComments_1.classifyComment; } });
|
|
224
|
+
var giveawayPrizes_1 = require("./giveawayPrizes");
|
|
225
|
+
Object.defineProperty(exports, "collectGiveawayPrizes", { enumerable: true, get: function () { return giveawayPrizes_1.collectGiveawayPrizes; } });
|
|
209
226
|
var giveawayPrize_1 = require("./giveawayPrize");
|
|
210
227
|
Object.defineProperty(exports, "isTheVariant", { enumerable: true, get: function () { return giveawayPrize_1.isTheVariant; } });
|
|
211
228
|
Object.defineProperty(exports, "givenAwayVariant", { enumerable: true, get: function () { return giveawayPrize_1.givenAwayVariant; } });
|
|
@@ -236,7 +253,9 @@ Object.defineProperty(exports, "isCoveredOnlyBySheet", { enumerable: true, get:
|
|
|
236
253
|
Object.defineProperty(exports, "isTheShow", { enumerable: true, get: function () { return livePages_1.isTheShow; } });
|
|
237
254
|
Object.defineProperty(exports, "playerMs", { enumerable: true, get: function () { return livePages_1.playerMs; } });
|
|
238
255
|
Object.defineProperty(exports, "productOnScreen", { enumerable: true, get: function () { return livePages_1.productOnScreen; } });
|
|
256
|
+
Object.defineProperty(exports, "replayClipWindow", { enumerable: true, get: function () { return livePages_1.replayClipWindow; } });
|
|
239
257
|
Object.defineProperty(exports, "replayCommentsAt", { enumerable: true, get: function () { return livePages_1.replayCommentsAt; } });
|
|
258
|
+
Object.defineProperty(exports, "replayOfClip", { enumerable: true, get: function () { return livePages_1.replayOfClip; } });
|
|
240
259
|
Object.defineProperty(exports, "tidyAccountName", { enumerable: true, get: function () { return livePages_1.tidyAccountName; } });
|
|
241
260
|
// Link lots and the links a show opens in the app (0.15.0, moved from amore-v2's `linkLots`).
|
|
242
261
|
var linkLots_1 = require("./linkLots");
|
|
@@ -256,9 +275,18 @@ Object.defineProperty(exports, "clipProductId", { enumerable: true, get: functio
|
|
|
256
275
|
Object.defineProperty(exports, "clipReelItems", { enumerable: true, get: function () { return clipsPage_1.clipReelItems; } });
|
|
257
276
|
var pageOptions_1 = require("./pageOptions");
|
|
258
277
|
Object.defineProperty(exports, "NO_ROUTES", { enumerable: true, get: function () { return pageOptions_1.NO_ROUTES; } });
|
|
278
|
+
Object.defineProperty(exports, "NO_RESTRICTIONS", { enumerable: true, get: function () { return pageOptions_1.NO_RESTRICTIONS; } });
|
|
279
|
+
Object.defineProperty(exports, "BID_BLOCKED_TAG", { enumerable: true, get: function () { return pageOptions_1.BID_BLOCKED_TAG; } });
|
|
280
|
+
Object.defineProperty(exports, "APP_BLOCKED_TAG", { enumerable: true, get: function () { return pageOptions_1.APP_BLOCKED_TAG; } });
|
|
281
|
+
Object.defineProperty(exports, "viewerRestrictionsFromTags", { enumerable: true, get: function () { return pageOptions_1.viewerRestrictionsFromTags; } });
|
|
259
282
|
Object.defineProperty(exports, "consoleWarning", { enumerable: true, get: function () { return pageOptions_1.consoleWarning; } });
|
|
260
283
|
Object.defineProperty(exports, "pageOptionsReading", { enumerable: true, get: function () { return pageOptions_1.pageOptionsReading; } });
|
|
261
284
|
Object.defineProperty(exports, "reportLiveWarning", { enumerable: true, get: function () { return pageOptions_1.reportLiveWarning; } });
|
|
285
|
+
var viewerRules_1 = require("./viewerRules");
|
|
286
|
+
Object.defineProperty(exports, "createReactionBudget", { enumerable: true, get: function () { return viewerRules_1.createReactionBudget; } });
|
|
287
|
+
Object.defineProperty(exports, "restrictionStepFor", { enumerable: true, get: function () { return viewerRules_1.restrictionStepFor; } });
|
|
288
|
+
Object.defineProperty(exports, "replayControlsRule", { enumerable: true, get: function () { return viewerRules_1.replayControlsRule; } });
|
|
289
|
+
Object.defineProperty(exports, "REPLAY_CONTROLS_SHOW_MS", { enumerable: true, get: function () { return viewerRules_1.REPLAY_CONTROLS_SHOW_MS; } });
|
|
262
290
|
// The session state machine — pure, and usable without React for tests or a custom host.
|
|
263
291
|
var session_1 = require("./session");
|
|
264
292
|
Object.defineProperty(exports, "sessionReducer", { enumerable: true, get: function () { return session_1.sessionReducer; } });
|
|
@@ -327,4 +355,8 @@ Object.defineProperty(exports, "readsOnPastHidden", { enumerable: true, get: fun
|
|
|
327
355
|
Object.defineProperty(exports, "readsRecordingsAgainOnView", { enumerable: true, get: function () { return showPages_1.readsRecordingsAgainOnView; } });
|
|
328
356
|
Object.defineProperty(exports, "showListStatus", { enumerable: true, get: function () { return showPages_1.showListStatus; } });
|
|
329
357
|
Object.defineProperty(exports, "winsTotal", { enumerable: true, get: function () { return showPages_1.winsTotal; } });
|
|
358
|
+
var storeData_1 = require("./storeData");
|
|
359
|
+
Object.defineProperty(exports, "LOT_TAG", { enumerable: true, get: function () { return storeData_1.LOT_TAG; } });
|
|
360
|
+
var checkoutRefused_1 = require("./checkoutRefused");
|
|
361
|
+
Object.defineProperty(exports, "CheckoutRefusedError", { enumerable: true, get: function () { return checkoutRefused_1.CheckoutRefusedError; } });
|
|
330
362
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA2C;AAC3C,6CAAoE;AAA3D,0GAAA,WAAW,OAAA;AAAE,sGAAA,WAAW,OAAW;AAE5C,iGAAiG;AACjG,2CAA2C;AAC3C,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,yCAA4F;AAAnF,8GAAA,iBAAiB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAEpD,0EAA0E;AAC1E,mCAAgD;AAAvC,oGAAA,MAAM,OAAc;AAE7B,uGAAuG;AACvG,mCAMkB;AALhB,0GAAA,gBAAgB,OAAA;AAChB,iHAAA,uBAAuB,OAAA;AACvB,oHAAA,0BAA0B,OAAA;AAC1B,kHAAA,wBAAwB,OAAA;AACxB,sGAAA,YAAY,OAAA;AAEd,2CAAiF;AAAxE,4GAAA,cAAc,OAAA;AAAE,2GAAA,aAAa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;;GAKG;AACH,2BAQc;AAPZ,iGAAA,WAAW,OAAA;AACX,uGAAA,iBAAiB,OAAA;AACjB,gGAAA,UAAU,OAAA;AACV,kGAAA,YAAY,OAAA;AAKd,yCAAgJ;AAAvI,8GAAA,iBAAiB,OAAA;AAAE,uHAAA,0BAA0B,OAAA;AAAE,2GAAA,cAAc,OAAA;AAAE,sGAAA,SAAS,OAAA;AACjF,yCAAsC;AAA7B,oGAAA,OAAO,OAAA;AAChB,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA"}
|
package/dist/livePages.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { type Cart, type CartExtension } from '@tiledev/sdk-shopify';
|
|
10
10
|
import type { NameOnAccount, ReplayCommentItem } from './pageTypes';
|
|
11
|
-
import type { Replay, ReplayComment, ReplaySegment } from './types';
|
|
11
|
+
import type { Replay, ReplayClip, ReplayComment, ReplaySegment } from './types';
|
|
12
12
|
/**
|
|
13
13
|
* The navigation actions that are a back press: the header's arrow and picture-in-picture button
|
|
14
14
|
* (`goBack`, or `popTo` the tabs when nothing is behind), Android's back (`GO_BACK`) and the iOS swipe
|
|
@@ -140,6 +140,16 @@ export declare function giveawayNameAsk({ named, loggedIn, hasCustomer, accountL
|
|
|
140
140
|
};
|
|
141
141
|
/** A card passes the recording's feed id; a push passes its show's streaming id. Both find it. */
|
|
142
142
|
export declare function isTheShow(replay: Pick<Replay, 'id' | 'streamingId'>, id: string): boolean;
|
|
143
|
+
/**
|
|
144
|
+
* A clip's window on its recording, for Replay (0.16.0): where it starts (0 for none) and where it ends
|
|
145
|
+
* (null: the recording's end). An end at or before the start is no end.
|
|
146
|
+
*/
|
|
147
|
+
export declare function replayClipWindow(clip: Pick<ReplayClip, 'startMs' | 'endMs'>): {
|
|
148
|
+
startMs: number;
|
|
149
|
+
endMs: number | null;
|
|
150
|
+
};
|
|
151
|
+
/** The recording a clip plays on Replay (0.16.0), by its id (the clip's own when it names none); null with nothing to play. */
|
|
152
|
+
export declare function replayOfClip(clip: ReplayClip): Replay | null;
|
|
143
153
|
/** A time or length from the player, in seconds, as milliseconds; 0 when it has none yet. */
|
|
144
154
|
export declare function playerMs(seconds: number): number;
|
|
145
155
|
/**
|
package/dist/livePages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"livePages.d.ts","sourceRoot":"","sources":["../src/livePages.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAiB,KAAK,IAAI,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEpF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"livePages.d.ts","sourceRoot":"","sources":["../src/livePages.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAiB,KAAK,IAAI,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEpF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIhF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAAuD,CAAC;AAErG,kGAAkG;AAClG,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,EAC7C,SAAS,EAAE,MAAM,EACjB,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,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAIvH;AAED,+HAA+H;AAC/H,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAc5D;AAED,6FAA6F;AAC7F,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACzD,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,QAAQ,EAAE,SAAS,IAAI,EAAE,EACzB,IAAI,EAAE,MAAM;AACZ,oGAAoG;AACpG,WAAW,GAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAA0B,GACtD,IAAI,GAAG,IAAI,CAIb;AAED,2GAA2G;AAC3G,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEjG;AAED,wFAAwF;AACxF,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,MAA8B,GACpC,iBAAiB,EAAE,CASrB"}
|
package/dist/livePages.js
CHANGED
|
@@ -10,6 +10,8 @@ exports.tidyAccountName = tidyAccountName;
|
|
|
10
10
|
exports.accountNameAsk = accountNameAsk;
|
|
11
11
|
exports.giveawayNameAsk = giveawayNameAsk;
|
|
12
12
|
exports.isTheShow = isTheShow;
|
|
13
|
+
exports.replayClipWindow = replayClipWindow;
|
|
14
|
+
exports.replayOfClip = replayOfClip;
|
|
13
15
|
exports.playerMs = playerMs;
|
|
14
16
|
exports.productOnScreen = productOnScreen;
|
|
15
17
|
exports.firstShownAt = firstShownAt;
|
|
@@ -143,6 +145,33 @@ function giveawayNameAsk({ named, loggedIn, hasCustomer, accountLoading, nameToC
|
|
|
143
145
|
function isTheShow(replay, id) {
|
|
144
146
|
return replay.id === id || replay.streamingId === id;
|
|
145
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* A clip's window on its recording, for Replay (0.16.0): where it starts (0 for none) and where it ends
|
|
150
|
+
* (null: the recording's end). An end at or before the start is no end.
|
|
151
|
+
*/
|
|
152
|
+
function replayClipWindow(clip) {
|
|
153
|
+
const startMs = typeof clip.startMs === 'number' && clip.startMs > 0 ? clip.startMs : 0;
|
|
154
|
+
const endMs = typeof clip.endMs === 'number' && clip.endMs > startMs ? clip.endMs : null;
|
|
155
|
+
return { startMs, endMs };
|
|
156
|
+
}
|
|
157
|
+
/** The recording a clip plays on Replay (0.16.0), by its id (the clip's own when it names none); null with nothing to play. */
|
|
158
|
+
function replayOfClip(clip) {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const videoUrl = (_a = clip.videoUrl) === null || _a === void 0 ? void 0 : _a.trim();
|
|
161
|
+
if (!videoUrl)
|
|
162
|
+
return null;
|
|
163
|
+
return {
|
|
164
|
+
id: clip.recordingId || clip.id,
|
|
165
|
+
streamingId: (_b = clip.streamingId) !== null && _b !== void 0 ? _b : '',
|
|
166
|
+
title: clip.title,
|
|
167
|
+
videoUrl,
|
|
168
|
+
thumbnailUrl: clip.posterUrl,
|
|
169
|
+
coverUrl: null,
|
|
170
|
+
productIds: (_c = clip.productIds) !== null && _c !== void 0 ? _c : [],
|
|
171
|
+
viewCount: 0,
|
|
172
|
+
publishedAt: null,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
146
175
|
/** A time or length from the player, in seconds, as milliseconds; 0 when it has none yet. */
|
|
147
176
|
function playerMs(seconds) {
|
|
148
177
|
return Number.isFinite(seconds) && seconds > 0 ? seconds * 1000 : 0;
|
package/dist/livePages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"livePages.js","sourceRoot":"","sources":["../src/livePages.ts"],"names":[],"mappings":";;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mCAAI,IAAI,CAAC;AACvF,CAAC;AAED,wFAAwF;AAC3E,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAExC;;;;GAIG;AACH,SAAgB,gBAAgB,CAC9B,QAAkC,EAClC,IAAY,EACZ,QAAgB,6BAAqB;IAErC,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,OAAO,IAAI,GAAG,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI;QAAE,IAAI,IAAI,CAAC,CAAC;IACxE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3E,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,MAAM,EAAE,OAAO,CAAC,QAAQ;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK;KAClE,CAAC,CAAC,CAAC;AACN,CAAC"}
|
package/dist/liveShow.d.ts
CHANGED
|
@@ -55,4 +55,11 @@ export declare function canPlayInCard({ session, show, screenOnShow, }: {
|
|
|
55
55
|
} | null | undefined;
|
|
56
56
|
screenOnShow: boolean;
|
|
57
57
|
}): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The host's camera is off, or their picture has stalled (`waitingForHost`): the room's video draws
|
|
60
|
+
* black. The floating bubble and Android's picture-in-picture window cover it with the show's poster and
|
|
61
|
+
* "Waiting for the host" while this holds (0.16.0, ENG-969: both were black). The Live screen says the
|
|
62
|
+
* same over its own player.
|
|
63
|
+
*/
|
|
64
|
+
export declare function hostIsAway(status: LiveSessionStatus): boolean;
|
|
58
65
|
//# sourceMappingURL=liveShow.d.ts.map
|
package/dist/liveShow.d.ts.map
CHANGED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;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAE7D"}
|
package/dist/liveShow.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.liveShowFor = liveShowFor;
|
|
4
4
|
exports.canPlayInCard = canPlayInCard;
|
|
5
|
+
exports.hostIsAway = hostIsAway;
|
|
5
6
|
/**
|
|
6
7
|
* The show a screen is about, read off the app's one session (0.9.0).
|
|
7
8
|
*
|
|
@@ -52,4 +53,13 @@ function canPlayInCard({ session, show, screenOnShow, }) {
|
|
|
52
53
|
return false;
|
|
53
54
|
return ((_a = session.stream) === null || _a === void 0 ? void 0 : _a.streamingId) === show.streamingId && session.pipMode === 'none' && session.status === 'playing';
|
|
54
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* The host's camera is off, or their picture has stalled (`waitingForHost`): the room's video draws
|
|
58
|
+
* black. The floating bubble and Android's picture-in-picture window cover it with the show's poster and
|
|
59
|
+
* "Waiting for the host" while this holds (0.16.0, ENG-969: both were black). The Live screen says the
|
|
60
|
+
* same over its own player.
|
|
61
|
+
*/
|
|
62
|
+
function hostIsAway(status) {
|
|
63
|
+
return status === 'waitingForHost';
|
|
64
|
+
}
|
|
55
65
|
//# sourceMappingURL=liveShow.js.map
|
package/dist/liveShow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveShow.js","sourceRoot":"","sources":["../src/liveShow.ts"],"names":[],"mappings":";;AA6CA,kCAaC;AAqBD,sCAWC;
|
|
1
|
+
{"version":3,"file":"liveShow.js","sourceRoot":"","sources":["../src/liveShow.ts"],"names":[],"mappings":";;AA6CA,kCAaC;AAqBD,sCAWC;AAQD,gCAEC;AApGD;;;;;;;;;;GAUG;AACH,iDAAiD;AA8BjD;;;GAGG;AACH,SAAgB,WAAW,CAAC,OAAuB,EAAE,WAAsC;IACzF,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IAC5B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtF,IAAI,MAAsB,CAAC;IAC3B,gHAAgH;IAChH,IAAI,CAAC,IAAI;QAAE,MAAM,GAAG,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;;QAC5E,MAAM,GAAG,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC3E,OAAO;QACL,IAAI;QACJ,MAAM;QACN,KAAK,EAAE,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,gBAAgB;QAC1D,YAAY,EAAE,IAAA,8BAAe,EAAC,IAAI,CAAC;KACpC,CAAC;AACJ,CAAC;AASD;;;;;;;;;;;GAWG;AACH,SAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,EACJ,YAAY,GAKb;;IACC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY;QAAE,OAAO,KAAK,CAAC;IACzC,OAAO,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,WAAW,MAAK,IAAI,CAAC,WAAW,IAAI,OAAO,CAAC,OAAO,KAAK,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC;AACxH,CAAC;AAED;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,MAAyB;IAClD,OAAO,MAAM,KAAK,gBAAgB,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A poll the room never told this phone about (0.16.0, ENG-969, 2026-10-26).
|
|
3
|
+
*
|
|
4
|
+
* A poll opened while a shopper watched showed only after they left the show and came back: the app
|
|
5
|
+
* raised it only from a forced read of the show's record (`pollSynced`, DEL-2769), which a screen's
|
|
6
|
+
* focus starts. The room's `START_POLL` never reached the session, for a reason not yet proven (its
|
|
7
|
+
* handling in `zegoEngine.ts` hasn't changed since 0.9.2; `unreadRoomMessages.ts` reports what the room
|
|
8
|
+
* sends that this version doesn't read, to find out). Until then the session reads the record every
|
|
9
|
+
* `MISSED_POLL_READ_MS` while a show is on air with no poll up, so a poll opened meanwhile shows within
|
|
10
|
+
* that time.
|
|
11
|
+
*
|
|
12
|
+
* Pure, so it loads in plain Node for tests.
|
|
13
|
+
*/
|
|
14
|
+
import type { LiveSessionStatus } from './sessionTypes';
|
|
15
|
+
/** How often the session reads the show's record for a poll it may have missed: 20 s. */
|
|
16
|
+
export declare const MISSED_POLL_READ_MS = 20000;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the session reads the record for a missed poll: a show on air (playing, or waiting for the
|
|
19
|
+
* host's camera), the room connected (a reconnect reads it anyway), and no poll showing (one showing is
|
|
20
|
+
* the room's, and fresher than any read).
|
|
21
|
+
*/
|
|
22
|
+
export declare function readsForMissedPoll(input: {
|
|
23
|
+
status: LiveSessionStatus;
|
|
24
|
+
connected: boolean;
|
|
25
|
+
pollShowing: boolean;
|
|
26
|
+
}): boolean;
|
|
27
|
+
//# sourceMappingURL=missedPolls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missedPolls.d.ts","sourceRoot":"","sources":["../src/missedPolls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,QAAS,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,iBAAiB,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAG1H"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MISSED_POLL_READ_MS = void 0;
|
|
4
|
+
exports.readsForMissedPoll = readsForMissedPoll;
|
|
5
|
+
/** How often the session reads the show's record for a poll it may have missed: 20 s. */
|
|
6
|
+
exports.MISSED_POLL_READ_MS = 20000;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the session reads the record for a missed poll: a show on air (playing, or waiting for the
|
|
9
|
+
* host's camera), the room connected (a reconnect reads it anyway), and no poll showing (one showing is
|
|
10
|
+
* the room's, and fresher than any read).
|
|
11
|
+
*/
|
|
12
|
+
function readsForMissedPoll(input) {
|
|
13
|
+
const onAir = input.status === 'playing' || input.status === 'waitingForHost';
|
|
14
|
+
return onAir && input.connected && !input.pollShowing;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=missedPolls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"missedPolls.js","sourceRoot":"","sources":["../src/missedPolls.ts"],"names":[],"mappings":";;;AAuBA,gDAGC;AAXD,yFAAyF;AAC5E,QAAA,mBAAmB,GAAG,KAAM,CAAC;AAE1C;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,KAA8E;IAC/G,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,gBAAgB,CAAC;IAC9E,OAAO,KAAK,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC;AACxD,CAAC"}
|
package/dist/pageOptions.d.ts
CHANGED
|
@@ -71,6 +71,29 @@ export interface LiveSellingRoutes {
|
|
|
71
71
|
export type LiveTrack = (name: string, properties: Record<string, unknown>) => void;
|
|
72
72
|
/** A handled failure: a read that failed, an announcement that didn't go. The app's Sentry, say. */
|
|
73
73
|
export type LiveWarning = (error: unknown, context: Record<string, unknown>) => void;
|
|
74
|
+
/**
|
|
75
|
+
* What the store stops this viewer doing (0.16.0), from the store-data standard's customer tags
|
|
76
|
+
* (`viewerRestrictionsFromTags`; `ShopifyLiveSellingProvider` reads them with sdk-shopify's `useCustomerTags`).
|
|
77
|
+
*/
|
|
78
|
+
export interface ViewerRestrictions {
|
|
79
|
+
/** `blocked`: a bid stops at the gate's `blocked`; `unknown` (not read yet): a bid waits, `checkingAccount`. */
|
|
80
|
+
bidding: 'allowed' | 'blocked' | 'unknown';
|
|
81
|
+
/** The viewer's comments reach nobody else (the engine's `forceMuted`). */
|
|
82
|
+
commentsMuted: boolean;
|
|
83
|
+
/** Reads them again (a screen coming on show, a bid waiting on them). */
|
|
84
|
+
refresh: () => void;
|
|
85
|
+
}
|
|
86
|
+
/** A provider given none: nothing restricted. */
|
|
87
|
+
export declare const NO_RESTRICTIONS: ViewerRestrictions;
|
|
88
|
+
/** The store-data standard (0.16.0): a customer with this tag may not bid. */
|
|
89
|
+
export declare const BID_BLOCKED_TAG = "BIDBLOCKED";
|
|
90
|
+
/** The store-data standard (0.16.0): a customer with this tag may not bid, and only they see their comments. */
|
|
91
|
+
export declare const APP_BLOCKED_TAG = "APPBLOCKED";
|
|
92
|
+
/**
|
|
93
|
+
* What the standard tags stop, for a customer's tags (trimmed, case-insensitive). `known` false (not read
|
|
94
|
+
* yet): bidding is `unknown`, so a bid waits rather than going. Signed out is known with no tags.
|
|
95
|
+
*/
|
|
96
|
+
export declare function viewerRestrictionsFromTags(tags: readonly string[] | null | undefined, known: boolean): Pick<ViewerRestrictions, 'bidding' | 'commentsMuted'>;
|
|
74
97
|
/** What the page hooks read from `LiveSellingProvider`. */
|
|
75
98
|
export interface LivePageOptions {
|
|
76
99
|
/** Every route, `openLink` included: one the app didn't give says so and goes nowhere. */
|
|
@@ -85,6 +108,12 @@ export interface LivePageOptions {
|
|
|
85
108
|
* `DEFAULT_BLOCKED_VIEWER_NAMES` (Host, Moderator). The name asks refuse them as they are typed.
|
|
86
109
|
*/
|
|
87
110
|
blockedNames: readonly string[];
|
|
111
|
+
/** What the store stops this viewer doing (0.16.0): the provider's `viewerRestrictions`, else `NO_RESTRICTIONS`. */
|
|
112
|
+
viewerRestrictions: ViewerRestrictions;
|
|
113
|
+
/** Taps a viewer may react with (0.16.0): the provider's `reactionLimit`, else null (no limit). */
|
|
114
|
+
reactionLimit: number | null;
|
|
115
|
+
/** A tap past the limit (0.16.0): calls the provider's `onReactionLimitReached`, if any. */
|
|
116
|
+
onReactionLimitReached: () => void;
|
|
88
117
|
}
|
|
89
118
|
/** The provider's props the options are made from, any of them unset. */
|
|
90
119
|
export interface LivePageOptionsInput {
|
|
@@ -92,6 +121,8 @@ export interface LivePageOptionsInput {
|
|
|
92
121
|
track?: LiveTrack | null;
|
|
93
122
|
shopName?: string | null;
|
|
94
123
|
blockedNames?: readonly string[] | null;
|
|
124
|
+
reactionLimit?: number | null;
|
|
125
|
+
onReactionLimitReached?: (() => void) | null;
|
|
95
126
|
}
|
|
96
127
|
/** Without `onWarning`: the console, so a failure is never silent in development. */
|
|
97
128
|
export declare const consoleWarning: LiveWarning;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageOptions.d.ts","sourceRoot":"","sources":["../src/pageOptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAGnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,iGAAiG;AACjG,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAE7D,qGAAqG;AACrG,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,Q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BAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,oBAAoB,GAAG,eAAe,CAwCtF"}
|
package/dist/pageOptions.js
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NO_ROUTES = exports.consoleWarning = void 0;
|
|
3
|
+
exports.NO_ROUTES = exports.consoleWarning = exports.APP_BLOCKED_TAG = exports.BID_BLOCKED_TAG = exports.NO_RESTRICTIONS = void 0;
|
|
4
|
+
exports.viewerRestrictionsFromTags = viewerRestrictionsFromTags;
|
|
4
5
|
exports.setLiveWarningSink = setLiveWarningSink;
|
|
5
6
|
exports.reportLiveWarning = reportLiveWarning;
|
|
6
7
|
exports.pageOptionsReading = pageOptionsReading;
|
|
7
8
|
const showNames_1 = require("./showNames");
|
|
9
|
+
/** A provider given none: nothing restricted. */
|
|
10
|
+
exports.NO_RESTRICTIONS = Object.freeze({ bidding: 'allowed', commentsMuted: false, refresh: () => { } });
|
|
11
|
+
/** The store-data standard (0.16.0): a customer with this tag may not bid. */
|
|
12
|
+
exports.BID_BLOCKED_TAG = 'BIDBLOCKED';
|
|
13
|
+
/** The store-data standard (0.16.0): a customer with this tag may not bid, and only they see their comments. */
|
|
14
|
+
exports.APP_BLOCKED_TAG = 'APPBLOCKED';
|
|
15
|
+
/**
|
|
16
|
+
* What the standard tags stop, for a customer's tags (trimmed, case-insensitive). `known` false (not read
|
|
17
|
+
* yet): bidding is `unknown`, so a bid waits rather than going. Signed out is known with no tags.
|
|
18
|
+
*/
|
|
19
|
+
function viewerRestrictionsFromTags(tags, known) {
|
|
20
|
+
if (!known || !tags)
|
|
21
|
+
return { bidding: 'unknown', commentsMuted: false };
|
|
22
|
+
const has = (tag) => tags.some((t) => t.trim().toLowerCase() === tag.toLowerCase());
|
|
23
|
+
const appBlocked = has(exports.APP_BLOCKED_TAG);
|
|
24
|
+
return { bidding: appBlocked || has(exports.BID_BLOCKED_TAG) ? 'blocked' : 'allowed', commentsMuted: appBlocked };
|
|
25
|
+
}
|
|
8
26
|
/** Without `onWarning`: the console, so a failure is never silent in development. */
|
|
9
27
|
const consoleWarning = (error, context) => {
|
|
10
28
|
console.warn(error, context);
|
|
@@ -94,6 +112,12 @@ function pageOptionsReading(latest) {
|
|
|
94
112
|
var _a;
|
|
95
113
|
return (_a = latest().blockedNames) !== null && _a !== void 0 ? _a : showNames_1.DEFAULT_BLOCKED_VIEWER_NAMES;
|
|
96
114
|
},
|
|
115
|
+
viewerRestrictions: exports.NO_RESTRICTIONS,
|
|
116
|
+
get reactionLimit() {
|
|
117
|
+
var _a;
|
|
118
|
+
return (_a = latest().reactionLimit) !== null && _a !== void 0 ? _a : null;
|
|
119
|
+
},
|
|
120
|
+
onReactionLimitReached: () => { var _a, _b; return (_b = (_a = latest()).onReactionLimitReached) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
97
121
|
};
|
|
98
122
|
}
|
|
99
123
|
//# sourceMappingURL=pageOptions.js.map
|