@tiledev/sdk-apptile-live-selling 0.16.0-beta.0 → 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 +5 -1
- 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/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -12
- package/dist/index.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 +16 -1
- package/dist/pageOptions.d.ts.map +1 -1
- package/dist/pageOptions.js +22 -1
- package/dist/pageOptions.js.map +1 -1
- package/dist/react/LiveSellingProvider.d.ts +9 -1
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +7 -4
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/shopifyProviders.d.ts +12 -4
- package/dist/react/shopifyProviders.d.ts.map +1 -1
- package/dist/react/shopifyProviders.js +10 -7
- package/dist/react/shopifyProviders.js.map +1 -1
- package/dist/react/useLiveAuction.d.ts.map +1 -1
- package/dist/react/useLiveAuction.js +3 -1
- package/dist/react/useLiveAuction.js.map +1 -1
- package/dist/react/useLiveChat.d.ts +0 -5
- package/dist/react/useLiveChat.d.ts.map +1 -1
- package/dist/react/useLiveChat.js +11 -12
- package/dist/react/useLiveChat.js.map +1 -1
- package/dist/react/useLivePage.d.ts +0 -4
- package/dist/react/useLivePage.d.ts.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.map +1 -1
- package/dist/react/useReplayPage.js +7 -5
- package/dist/react/useReplayPage.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.map +1 -1
- package/dist/shopifyCommerce.js +3 -0
- 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/silentAuctionRules.d.ts +19 -2
- package/dist/silentAuctionRules.d.ts.map +1 -1
- package/dist/silentAuctionRules.js +16 -5
- package/dist/silentAuctionRules.js.map +1 -1
- package/dist/storeData.d.ts +7 -36
- package/dist/storeData.d.ts.map +1 -1
- package/dist/storeData.js +14 -30
- package/dist/storeData.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 +7 -8
- package/dist/viewerRules.d.ts.map +1 -1
- package/dist/viewerRules.js +9 -9
- package/dist/viewerRules.js.map +1 -1
- 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/package.json +2 -2
package/README.md
CHANGED
|
@@ -494,6 +494,10 @@ const routes: LiveSellingRoutes = {
|
|
|
494
494
|
shopName={APP_NAME}
|
|
495
495
|
// 0.15.0: the names nobody watching may go by, from a list the app publishes (`blockedNamesFrom`).
|
|
496
496
|
blockedNames={blockedNamesFrom(publishedBlockedNames)}
|
|
497
|
+
// 0.16.0, optional: a limit on each viewer's reactions, refilled when the host features another product;
|
|
498
|
+
// past it a tap sends nothing and onReactionLimitReached is called. Unset: no limit.
|
|
499
|
+
reactionLimit={15}
|
|
500
|
+
onReactionLimitReached={() => showToast('Please wait before reacting again.')}
|
|
497
501
|
>
|
|
498
502
|
<ShopifyLiveSessionProvider>
|
|
499
503
|
<ReplayPlayerProvider>
|
|
@@ -798,7 +802,7 @@ gate.bidOnItsWay; // true for BID_ON_ITS_WAY_MS (1.2 s) after a bid goes
|
|
|
798
802
|
```
|
|
799
803
|
|
|
800
804
|
The store's bar (0.16.0): the provider's `viewerRestrictions` (on Shopify, the customer's `BIDBLOCKED` /
|
|
801
|
-
`APPBLOCKED` tags). Barred, a bid stops at `blocked`, before unpaid wins. Not read yet, it waits at
|
|
805
|
+
`APPBLOCKED` tags, read by `viewerRestrictionsFromTags`). Barred, a bid stops at `blocked`, before unpaid wins. Not read yet, it waits at
|
|
802
806
|
`checkingAccount` ("Checking your account…") while they are read again, then goes on (or stops at `blocked`);
|
|
803
807
|
not read within `ACCOUNT_CHECK_LIMIT_MS` (10 s) it is dropped at `accountUnknown`.
|
|
804
808
|
|
package/dist/attribution.d.ts
CHANGED
|
@@ -6,13 +6,27 @@ export type AttributionSource = {
|
|
|
6
6
|
} | {
|
|
7
7
|
type: 'replay';
|
|
8
8
|
showId: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'auction';
|
|
11
|
+
showId: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: 'auction-replay';
|
|
14
|
+
showId: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'silent-auction';
|
|
17
|
+
showId: string;
|
|
9
18
|
} | {
|
|
10
19
|
type: 'app';
|
|
11
20
|
};
|
|
21
|
+
/** A show on air: `auction` for an auction show (`isAuction`), else `live`; by its streamingId. */
|
|
12
22
|
export declare function liveAttributionSourceFor(stream: {
|
|
13
23
|
streamingId: string;
|
|
14
24
|
status: LiveStreamStatus;
|
|
25
|
+
isAuction?: boolean;
|
|
15
26
|
} | null): AttributionSource | null;
|
|
16
|
-
/**
|
|
17
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Takes the streamingId of the show the replay is of, never the replay feed id: `auction-replay` for an
|
|
29
|
+
* auction show's recording, else `replay`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function replayAttributionSourceFor(showStreamingId: string | null, isAuction?: boolean): AttributionSource | null;
|
|
18
32
|
//# sourceMappingURL=attribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,uGAAuG;AACvG,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAEpB,wBAAgB,wBAAwB,CACtC,MAAM,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,uGAAuG;AACvG,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAEpB,mGAAmG;AACnG,wBAAgB,wBAAwB,CACtC,MAAM,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,GACpF,iBAAiB,GAAG,IAAI,CAG1B;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,UAAQ,GAAG,iBAAiB,GAAG,IAAI,CAEtH"}
|
package/dist/attribution.js
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.liveAttributionSourceFor = liveAttributionSourceFor;
|
|
4
4
|
exports.replayAttributionSourceFor = replayAttributionSourceFor;
|
|
5
|
+
/** A show on air: `auction` for an auction show (`isAuction`), else `live`; by its streamingId. */
|
|
5
6
|
function liveAttributionSourceFor(stream) {
|
|
6
|
-
|
|
7
|
+
if ((stream === null || stream === void 0 ? void 0 : stream.status) !== 'live')
|
|
8
|
+
return null;
|
|
9
|
+
return { type: stream.isAuction ? 'auction' : 'live', showId: stream.streamingId };
|
|
7
10
|
}
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Takes the streamingId of the show the replay is of, never the replay feed id: `auction-replay` for an
|
|
13
|
+
* auction show's recording, else `replay`.
|
|
14
|
+
*/
|
|
15
|
+
function replayAttributionSourceFor(showStreamingId, isAuction = false) {
|
|
16
|
+
return showStreamingId ? { type: isAuction ? 'auction-replay' : 'replay', showId: showStreamingId } : null;
|
|
11
17
|
}
|
|
12
18
|
//# sourceMappingURL=attribution.js.map
|
package/dist/attribution.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":";;AAYA,4DAKC;AAMD,gEAEC;AAdD,mGAAmG;AACnG,SAAgB,wBAAwB,CACtC,MAAqF;IAErF,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;AACrF,CAAC;AAED;;;GAGG;AACH,SAAgB,0BAA0B,CAAC,eAA8B,EAAE,SAAS,GAAG,KAAK;IAC1F,OAAO,eAAe,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7G,CAAC"}
|
package/dist/auctions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctions.d.ts","sourceRoot":"","sources":["../src/auctions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auctions.d.ts","sourceRoot":"","sources":["../src/auctions.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAA+B,WAAW,EAAE,MAAM,SAAS,CAAC;AA8FxE,eAAO,MAAM,QAAQ,EAAE,WAkGtB,CAAC"}
|
package/dist/auctions.js
CHANGED
|
@@ -13,6 +13,7 @@ exports.auctions = void 0;
|
|
|
13
13
|
* token and so goes through the injected `customerAccountRequest`.
|
|
14
14
|
*/
|
|
15
15
|
const client_1 = require("./client");
|
|
16
|
+
const cartAttributes_1 = require("./cartAttributes");
|
|
16
17
|
const TERMS_KEY = 'auction.termsAccepted';
|
|
17
18
|
// ─── Unpaid wins (customer-account metafield) ────────────────────────────────
|
|
18
19
|
const UNPAID_WINS_QUERY = /* GraphQL */ `
|
|
@@ -25,7 +26,7 @@ const UNPAID_WINS_QUERY = /* GraphQL */ `
|
|
|
25
26
|
}
|
|
26
27
|
`;
|
|
27
28
|
/** A silent auction's wins are recorded under a key of their own, `silent_…` (0.12.0). */
|
|
28
|
-
const SILENT_KEY_PREFIX =
|
|
29
|
+
const SILENT_KEY_PREFIX = cartAttributes_1.SILENT_AUCTION_KEY_PREFIX;
|
|
29
30
|
async function fetchWinnerMetafield() {
|
|
30
31
|
var _a, _b;
|
|
31
32
|
const customerAccountRequest = (0, client_1.getCustomerAccountRequest)();
|
package/dist/auctions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auctions.js","sourceRoot":"","sources":["../src/auctions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,qCAOkB;
|
|
1
|
+
{"version":3,"file":"auctions.js","sourceRoot":"","sources":["../src/auctions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,qCAOkB;AAClB,qD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AAE,OAAO,KAAK,CAAC;QAC/C,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC;QAC9B,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;CACF,CAAC"}
|
package/dist/cartAttributes.d.ts
CHANGED
|
@@ -7,11 +7,21 @@ import type { CartLineAttribute, CommerceAdapter } from './sessionTypes';
|
|
|
7
7
|
import type { LiveStreamStatus } from './types';
|
|
8
8
|
export declare const LIVE_STREAM_ID_ATTRIBUTE = "_stream_id";
|
|
9
9
|
export declare const REPLAY_ID_ATTRIBUTE = "_replay_id";
|
|
10
|
+
/** A silent auction's win, by the auction's id (its `silent_…` key without the prefix). */
|
|
11
|
+
export declare const SILENT_AUCTION_ID_ATTRIBUTE = "_silent_auction_id";
|
|
10
12
|
/** Gates on the record's own status, not the session's derived one: only a show on air earns the tag. */
|
|
11
13
|
export declare function liveCartAttributesFor(stream: {
|
|
12
14
|
streamingId: string;
|
|
13
15
|
status: LiveStreamStatus;
|
|
14
16
|
} | null): CartLineAttribute[];
|
|
17
|
+
/** A silent auction's wins are recorded under a key of their own, `silent_…` (0.12.0): no live show. */
|
|
18
|
+
export declare const SILENT_AUCTION_KEY_PREFIX = "silent_";
|
|
19
|
+
/**
|
|
20
|
+
* Where a won lot came from, for its line of the wins cart (0.16.0), so the order says what sold it: the
|
|
21
|
+
* live show's `_stream_id`, as an add during the show carries it, or a silent auction's
|
|
22
|
+
* `_silent_auction_id`. None without either.
|
|
23
|
+
*/
|
|
24
|
+
export declare function wonLotAttributesFor(streamingId: string | null | undefined): CartLineAttribute[];
|
|
15
25
|
export declare function replayCartAttributesFor(replayId: string | null): CartLineAttribute[];
|
|
16
26
|
export declare function addLiveLine(adapter: CommerceAdapter<unknown> | null, stream: {
|
|
17
27
|
streamingId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartAttributes.d.ts","sourceRoot":"","sources":["../src/cartAttributes.ts"],"names":[],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AC,CAGlB"}
|
package/dist/cartAttributes.js
CHANGED
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REPLAY_ID_ATTRIBUTE = exports.LIVE_STREAM_ID_ATTRIBUTE = void 0;
|
|
3
|
+
exports.SILENT_AUCTION_KEY_PREFIX = exports.SILENT_AUCTION_ID_ATTRIBUTE = exports.REPLAY_ID_ATTRIBUTE = exports.LIVE_STREAM_ID_ATTRIBUTE = void 0;
|
|
4
4
|
exports.liveCartAttributesFor = liveCartAttributesFor;
|
|
5
|
+
exports.wonLotAttributesFor = wonLotAttributesFor;
|
|
5
6
|
exports.replayCartAttributesFor = replayCartAttributesFor;
|
|
6
7
|
exports.addLiveLine = addLiveLine;
|
|
7
8
|
exports.LIVE_STREAM_ID_ATTRIBUTE = '_stream_id';
|
|
8
9
|
exports.REPLAY_ID_ATTRIBUTE = '_replay_id';
|
|
10
|
+
/** A silent auction's win, by the auction's id (its `silent_…` key without the prefix). */
|
|
11
|
+
exports.SILENT_AUCTION_ID_ATTRIBUTE = '_silent_auction_id';
|
|
9
12
|
/** Gates on the record's own status, not the session's derived one: only a show on air earns the tag. */
|
|
10
13
|
function liveCartAttributesFor(stream) {
|
|
11
14
|
return (stream === null || stream === void 0 ? void 0 : stream.status) === 'live'
|
|
12
15
|
? [{ key: exports.LIVE_STREAM_ID_ATTRIBUTE, value: stream.streamingId }]
|
|
13
16
|
: [];
|
|
14
17
|
}
|
|
18
|
+
/** A silent auction's wins are recorded under a key of their own, `silent_…` (0.12.0): no live show. */
|
|
19
|
+
exports.SILENT_AUCTION_KEY_PREFIX = 'silent_';
|
|
20
|
+
/**
|
|
21
|
+
* Where a won lot came from, for its line of the wins cart (0.16.0), so the order says what sold it: the
|
|
22
|
+
* live show's `_stream_id`, as an add during the show carries it, or a silent auction's
|
|
23
|
+
* `_silent_auction_id`. None without either.
|
|
24
|
+
*/
|
|
25
|
+
function wonLotAttributesFor(streamingId) {
|
|
26
|
+
const id = streamingId === null || streamingId === void 0 ? void 0 : streamingId.trim();
|
|
27
|
+
if (!id)
|
|
28
|
+
return [];
|
|
29
|
+
if (!id.startsWith(exports.SILENT_AUCTION_KEY_PREFIX))
|
|
30
|
+
return [{ key: exports.LIVE_STREAM_ID_ATTRIBUTE, value: id }];
|
|
31
|
+
const auctionId = id.slice(exports.SILENT_AUCTION_KEY_PREFIX.length).trim();
|
|
32
|
+
return auctionId ? [{ key: exports.SILENT_AUCTION_ID_ATTRIBUTE, value: auctionId }] : [];
|
|
33
|
+
}
|
|
15
34
|
function replayCartAttributesFor(replayId) {
|
|
16
35
|
return replayId ? [{ key: exports.REPLAY_ID_ATTRIBUTE, value: replayId }] : [];
|
|
17
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartAttributes.js","sourceRoot":"","sources":["../src/cartAttributes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cartAttributes.js","sourceRoot":"","sources":["../src/cartAttributes.ts"],"names":[],"mappings":";;;AAcA,sDAMC;AAUD,kDAMC;AAED,0DAEC;AAED,kCAOC;AAzCY,QAAA,wBAAwB,GAAG,YAAY,CAAC;AACxC,QAAA,mBAAmB,GAAG,YAAY,CAAC;AAChD,2FAA2F;AAC9E,QAAA,2BAA2B,GAAG,oBAAoB,CAAC;AAEhE,yGAAyG;AACzG,SAAgB,qBAAqB,CACnC,MAAgE;IAEhE,OAAO,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,MAAM;QAC9B,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,gCAAwB,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;QAChE,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAED,wGAAwG;AAC3F,QAAA,yBAAyB,GAAG,SAAS,CAAC;AAEnD;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,WAAsC;IACxE,MAAM,EAAE,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,EAAE,CAAC;IAC/B,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,iCAAyB,CAAC;QAAE,OAAO,CAAC,EAAE,GAAG,EAAE,gCAAwB,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACrG,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC,iCAAyB,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACpE,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,mCAA2B,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACnF,CAAC;AAED,SAAgB,uBAAuB,CAAC,QAAuB;IAC7D,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,2BAAmB,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACzE,CAAC;AAEM,KAAK,UAAU,WAAW,CAC/B,OAAwC,EACxC,MAAgE,EAChE,SAAiB;IAEjB,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA;QAAE,OAAO,KAAK,CAAC;IACpC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC;AACtE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,12 +28,12 @@ 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, productAuctionGates, 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';
|
|
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
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';
|
|
@@ -41,8 +41,10 @@ export { GIVEAWAY_CODE_PREFIX, GIVEAWAY_PRIZE_KEY, GIVEAWAY_PRIZE_KEYS, isGiveaw
|
|
|
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';
|
|
@@ -54,8 +56,8 @@ export { BACK_ACTIONS, NO_HOLDS, REPLAY_COMMENTS_SHOWN, accountLoadingOf, accoun
|
|
|
54
56
|
export { opensInApp, linkLotPrice, showLinkOf, recordingShopItems, isShowLink, type ShowLink, type LinkLotFields, type RecordLot, } from './linkLots';
|
|
55
57
|
export { featuredClipOf, isCopyOfClip } from './clips';
|
|
56
58
|
export { CLIP_THUMB_PIXELS, clipProductId, clipReelItems, type ProductForClip } from './clipsPage';
|
|
57
|
-
export { NO_ROUTES, NO_RESTRICTIONS, consoleWarning, pageOptionsReading, reportLiveWarning, type LivePageOptions, type LivePageOptionsInput, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ScreenNavigation, type SignInPageMethod, type ViewerRestrictions, } from './pageOptions';
|
|
58
|
-
export { createReactionBudget, restrictionStepFor, replayControlsRule, REPLAY_CONTROLS_SHOW_MS,
|
|
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';
|
|
59
61
|
export type * from './pageTypes';
|
|
60
62
|
export { sessionReducer, initialSessionState, deriveStatus, roundClosesAt, nextExpiryAt, isNothingOnAir, withOffAirSettled, isTheEndedGiveaway, SOLD_CARD_MS, REACTION_MS, CART_CARD_MS, } from './session';
|
|
61
63
|
export { capabilitiesFor, LIVE_CAPABILITIES, AUCTION_CAPABILITIES, REPLAY_CAPABILITIES, IDLE_AUCTION, IDLE_GIVEAWAY, } from './sessionTypes';
|
|
@@ -93,6 +95,6 @@ export * from './react/index';
|
|
|
93
95
|
*/
|
|
94
96
|
export { BubbleFrame, BUBBLE_CHIP_COLOR, LiveBubble, ReplayBubble, type BubbleFrameProps, type LiveBubbleProps, type ReplayBubbleProps, } from './ui';
|
|
95
97
|
export { readsOnPastHidden, readsRecordingsAgainOnView, showListStatus, winsTotal, type ShowListStatus, type ShowListInput } from './showPages';
|
|
96
|
-
export {
|
|
98
|
+
export { LOT_TAG } from './storeData';
|
|
97
99
|
export { CheckoutRefusedError } from './checkoutRefused';
|
|
98
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,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AmB,EACnB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,kBAAkB,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,11 +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.
|
|
37
|
-
exports.CheckoutRefusedError = 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;
|
|
38
38
|
// The imperative client (default + named).
|
|
39
39
|
var liveSelling_1 = require("./liveSelling");
|
|
40
40
|
Object.defineProperty(exports, "liveSelling", { enumerable: true, get: function () { return liveSelling_1.liveSelling; } });
|
|
@@ -95,6 +95,7 @@ Object.defineProperty(exports, "MAX_VIEWER_NAME", { enumerable: true, get: funct
|
|
|
95
95
|
var cartAttributes_1 = require("./cartAttributes");
|
|
96
96
|
Object.defineProperty(exports, "LIVE_STREAM_ID_ATTRIBUTE", { enumerable: true, get: function () { return cartAttributes_1.LIVE_STREAM_ID_ATTRIBUTE; } });
|
|
97
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; } });
|
|
98
99
|
Object.defineProperty(exports, "liveCartAttributesFor", { enumerable: true, get: function () { return cartAttributes_1.liveCartAttributesFor; } });
|
|
99
100
|
Object.defineProperty(exports, "replayCartAttributesFor", { enumerable: true, get: function () { return cartAttributes_1.replayCartAttributesFor; } });
|
|
100
101
|
Object.defineProperty(exports, "addLiveLine", { enumerable: true, get: function () { return cartAttributes_1.addLiveLine; } });
|
|
@@ -136,6 +137,7 @@ Object.defineProperty(exports, "upcomingGroups", { enumerable: true, get: functi
|
|
|
136
137
|
Object.defineProperty(exports, "myBidsTabs", { enumerable: true, get: function () { return silentAuctionRules_1.myBidsTabs; } });
|
|
137
138
|
Object.defineProperty(exports, "productPageBuyBar", { enumerable: true, get: function () { return silentAuctionRules_1.productPageBuyBar; } });
|
|
138
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; } });
|
|
139
141
|
Object.defineProperty(exports, "bidRecordEntries", { enumerable: true, get: function () { return silentAuctionRules_1.bidRecordEntries; } });
|
|
140
142
|
Object.defineProperty(exports, "bidRecordEntry", { enumerable: true, get: function () { return silentAuctionRules_1.bidRecordEntry; } });
|
|
141
143
|
Object.defineProperty(exports, "queryableBidEntries", { enumerable: true, get: function () { return silentAuctionRules_1.queryableBidEntries; } });
|
|
@@ -190,9 +192,18 @@ Object.defineProperty(exports, "blockedNamesFrom", { enumerable: true, get: func
|
|
|
190
192
|
var liveShow_1 = require("./liveShow");
|
|
191
193
|
Object.defineProperty(exports, "liveShowFor", { enumerable: true, get: function () { return liveShow_1.liveShowFor; } });
|
|
192
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; } });
|
|
193
196
|
var showLots_1 = require("./showLots");
|
|
194
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; } });
|
|
195
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; } });
|
|
196
207
|
var showLinks_1 = require("./showLinks");
|
|
197
208
|
Object.defineProperty(exports, "showLinkDestination", { enumerable: true, get: function () { return showLinks_1.showLinkDestination; } });
|
|
198
209
|
// The bid and giveaway flows' rules (0.9.0, "SDK move 8"). Pure, so an app's own tests can load them
|
|
@@ -265,6 +276,9 @@ Object.defineProperty(exports, "clipReelItems", { enumerable: true, get: functio
|
|
|
265
276
|
var pageOptions_1 = require("./pageOptions");
|
|
266
277
|
Object.defineProperty(exports, "NO_ROUTES", { enumerable: true, get: function () { return pageOptions_1.NO_ROUTES; } });
|
|
267
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; } });
|
|
268
282
|
Object.defineProperty(exports, "consoleWarning", { enumerable: true, get: function () { return pageOptions_1.consoleWarning; } });
|
|
269
283
|
Object.defineProperty(exports, "pageOptionsReading", { enumerable: true, get: function () { return pageOptions_1.pageOptionsReading; } });
|
|
270
284
|
Object.defineProperty(exports, "reportLiveWarning", { enumerable: true, get: function () { return pageOptions_1.reportLiveWarning; } });
|
|
@@ -273,9 +287,6 @@ Object.defineProperty(exports, "createReactionBudget", { enumerable: true, get:
|
|
|
273
287
|
Object.defineProperty(exports, "restrictionStepFor", { enumerable: true, get: function () { return viewerRules_1.restrictionStepFor; } });
|
|
274
288
|
Object.defineProperty(exports, "replayControlsRule", { enumerable: true, get: function () { return viewerRules_1.replayControlsRule; } });
|
|
275
289
|
Object.defineProperty(exports, "REPLAY_CONTROLS_SHOW_MS", { enumerable: true, get: function () { return viewerRules_1.REPLAY_CONTROLS_SHOW_MS; } });
|
|
276
|
-
Object.defineProperty(exports, "REACTION_BUDGET", { enumerable: true, get: function () { return viewerRules_1.REACTION_BUDGET; } });
|
|
277
|
-
Object.defineProperty(exports, "REACTION_BUDGET_AFTER_PRODUCT_CHANGE", { enumerable: true, get: function () { return viewerRules_1.REACTION_BUDGET_AFTER_PRODUCT_CHANGE; } });
|
|
278
|
-
Object.defineProperty(exports, "REACTION_LIMIT_MESSAGE", { enumerable: true, get: function () { return viewerRules_1.REACTION_LIMIT_MESSAGE; } });
|
|
279
290
|
// The session state machine — pure, and usable without React for tests or a custom host.
|
|
280
291
|
var session_1 = require("./session");
|
|
281
292
|
Object.defineProperty(exports, "sessionReducer", { enumerable: true, get: function () { return session_1.sessionReducer; } });
|
|
@@ -345,11 +356,7 @@ Object.defineProperty(exports, "readsRecordingsAgainOnView", { enumerable: true,
|
|
|
345
356
|
Object.defineProperty(exports, "showListStatus", { enumerable: true, get: function () { return showPages_1.showListStatus; } });
|
|
346
357
|
Object.defineProperty(exports, "winsTotal", { enumerable: true, get: function () { return showPages_1.winsTotal; } });
|
|
347
358
|
var storeData_1 = require("./storeData");
|
|
348
|
-
Object.defineProperty(exports, "AUCTION_METAFIELDS", { enumerable: true, get: function () { return storeData_1.AUCTION_METAFIELDS; } });
|
|
349
|
-
Object.defineProperty(exports, "APP_BLOCKED_TAG", { enumerable: true, get: function () { return storeData_1.APP_BLOCKED_TAG; } });
|
|
350
|
-
Object.defineProperty(exports, "BID_BLOCKED_TAG", { enumerable: true, get: function () { return storeData_1.BID_BLOCKED_TAG; } });
|
|
351
359
|
Object.defineProperty(exports, "LOT_TAG", { enumerable: true, get: function () { return storeData_1.LOT_TAG; } });
|
|
352
|
-
Object.defineProperty(exports, "viewerRestrictionsFrom", { enumerable: true, get: function () { return storeData_1.viewerRestrictionsFrom; } });
|
|
353
360
|
var checkoutRefused_1 = require("./checkoutRefused");
|
|
354
361
|
Object.defineProperty(exports, "CheckoutRefusedError", { enumerable: true, get: function () { return checkoutRefused_1.CheckoutRefusedError; } });
|
|
355
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;;;;;;;;;;;;;;;;;;;;;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,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAE1D,yGAAyG;AACzG,qCAMmB;AALjB,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,8GAAA,mBAAmB,OAAA;AACnB,yGAAA,cAAc,OAAA;AACd,4GAAA,iBAAiB,OAAA;AAEnB,iCAA2E;AAAlE,mGAAA,UAAU,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AAAE,0GAAA,iBAAiB,OAAA;AACzD,+BAAmD;AAA1C,gGAAA,QAAQ,OAAA;AAAE,uGAAA,eAAe,OAAA;AAClC,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,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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveShow.d.ts","sourceRoot":"","sources":["../src/liveShow.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,gGAAgG;AAChG,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AAEnE,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB;;;OAGG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB,wFAAwF;IACxF,KAAK,EAAE,OAAO,CAAC;IACf,sFAAsF;IACtF,YAAY,EAAE,uBAAuB,CAAC;CACvC;AAED,+CAA+C;AAC/C,MAAM,WAAW,cA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B,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,iBAAiB,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,CAarG;AAED,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,IAAI,EACJ,YAAY,GACb,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAGV;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
|
@@ -73,7 +73,7 @@ export type LiveTrack = (name: string, properties: Record<string, unknown>) => v
|
|
|
73
73
|
export type LiveWarning = (error: unknown, context: Record<string, unknown>) => void;
|
|
74
74
|
/**
|
|
75
75
|
* What the store stops this viewer doing (0.16.0), from the store-data standard's customer tags
|
|
76
|
-
* (`ShopifyLiveSellingProvider` reads sdk-shopify's `useCustomerTags
|
|
76
|
+
* (`viewerRestrictionsFromTags`; `ShopifyLiveSellingProvider` reads them with sdk-shopify's `useCustomerTags`).
|
|
77
77
|
*/
|
|
78
78
|
export interface ViewerRestrictions {
|
|
79
79
|
/** `blocked`: a bid stops at the gate's `blocked`; `unknown` (not read yet): a bid waits, `checkingAccount`. */
|
|
@@ -85,6 +85,15 @@ export interface ViewerRestrictions {
|
|
|
85
85
|
}
|
|
86
86
|
/** A provider given none: nothing restricted. */
|
|
87
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'>;
|
|
88
97
|
/** What the page hooks read from `LiveSellingProvider`. */
|
|
89
98
|
export interface LivePageOptions {
|
|
90
99
|
/** Every route, `openLink` included: one the app didn't give says so and goes nowhere. */
|
|
@@ -101,6 +110,10 @@ export interface LivePageOptions {
|
|
|
101
110
|
blockedNames: readonly string[];
|
|
102
111
|
/** What the store stops this viewer doing (0.16.0): the provider's `viewerRestrictions`, else `NO_RESTRICTIONS`. */
|
|
103
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;
|
|
104
117
|
}
|
|
105
118
|
/** The provider's props the options are made from, any of them unset. */
|
|
106
119
|
export interface LivePageOptionsInput {
|
|
@@ -108,6 +121,8 @@ export interface LivePageOptionsInput {
|
|
|
108
121
|
track?: LiveTrack | null;
|
|
109
122
|
shopName?: string | null;
|
|
110
123
|
blockedNames?: readonly string[] | null;
|
|
124
|
+
reactionLimit?: number | null;
|
|
125
|
+
onReactionLimitReached?: (() => void) | null;
|
|
111
126
|
}
|
|
112
127
|
/** Without `onWarning`: the console, so a failure is never silent in development. */
|
|
113
128
|
export declare const consoleWarning: LiveWarning;
|