@tiledev/sdk-apptile-live-selling 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -8
- package/dist/clipsPage.d.ts +29 -0
- package/dist/clipsPage.d.ts.map +1 -0
- package/dist/clipsPage.js +49 -0
- package/dist/clipsPage.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/linkLots.d.ts +64 -0
- package/dist/linkLots.d.ts.map +1 -0
- package/dist/linkLots.js +84 -0
- package/dist/linkLots.js.map +1 -0
- package/dist/livePages.d.ts +91 -4
- package/dist/livePages.d.ts.map +1 -1
- package/dist/livePages.js +101 -4
- package/dist/livePages.js.map +1 -1
- package/dist/pageOptions.d.ts +24 -6
- package/dist/pageOptions.d.ts.map +1 -1
- package/dist/pageOptions.js +20 -3
- package/dist/pageOptions.js.map +1 -1
- package/dist/pageTypes.d.ts +58 -0
- package/dist/pageTypes.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.d.ts +11 -3
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +26 -8
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +6 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.web.d.ts +3 -1
- package/dist/react/index.web.d.ts.map +1 -1
- package/dist/react/index.web.js +7 -1
- package/dist/react/index.web.js.map +1 -1
- package/dist/react/shopifyProviders.d.ts +4 -3
- package/dist/react/shopifyProviders.d.ts.map +1 -1
- package/dist/react/shopifyProviders.js +6 -4
- package/dist/react/shopifyProviders.js.map +1 -1
- package/dist/react/useAccountName.d.ts +8 -0
- package/dist/react/useAccountName.d.ts.map +1 -0
- package/dist/react/useAccountName.js +49 -0
- package/dist/react/useAccountName.js.map +1 -0
- package/dist/react/useClipsPage.d.ts +47 -0
- package/dist/react/useClipsPage.d.ts.map +1 -0
- package/dist/react/useClipsPage.js +130 -0
- package/dist/react/useClipsPage.js.map +1 -0
- package/dist/react/useLiveAuction.d.ts +5 -3
- package/dist/react/useLiveAuction.d.ts.map +1 -1
- package/dist/react/useLiveAuction.js +10 -5
- package/dist/react/useLiveAuction.js.map +1 -1
- package/dist/react/useLiveChat.d.ts +42 -7
- package/dist/react/useLiveChat.d.ts.map +1 -1
- package/dist/react/useLiveChat.js +90 -12
- package/dist/react/useLiveChat.js.map +1 -1
- package/dist/react/useLiveGiveawaysAndPolls.d.ts +14 -3
- package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +1 -1
- package/dist/react/useLiveGiveawaysAndPolls.js +56 -11
- package/dist/react/useLiveGiveawaysAndPolls.js.map +1 -1
- package/dist/react/useLivePage.d.ts +22 -1
- package/dist/react/useLivePage.d.ts.map +1 -1
- package/dist/react/useLivePage.js +51 -11
- package/dist/react/useLivePage.js.map +1 -1
- package/dist/react/useLiveShop.d.ts +25 -5
- package/dist/react/useLiveShop.d.ts.map +1 -1
- package/dist/react/useLiveShop.js +65 -19
- package/dist/react/useLiveShop.js.map +1 -1
- package/dist/react/useReplayPage.d.ts +20 -4
- package/dist/react/useReplayPage.d.ts.map +1 -1
- package/dist/react/useReplayPage.js +94 -33
- package/dist/react/useReplayPage.js.map +1 -1
- package/dist/showNames.d.ts +11 -0
- package/dist/showNames.d.ts.map +1 -1
- package/dist/showNames.js +23 -1
- package/dist/showNames.js.map +1 -1
- package/package.json +1 -1
package/dist/livePages.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REPLAY_COMMENTS_SHOWN = exports.BACK_ACTIONS = void 0;
|
|
3
|
+
exports.REPLAY_COMMENTS_SHOWN = exports.NO_HOLDS = exports.BACK_ACTIONS = void 0;
|
|
4
4
|
exports.isCoveredOnlyBySheet = isCoveredOnlyBySheet;
|
|
5
5
|
exports.chatNameAsk = chatNameAsk;
|
|
6
|
+
exports.holdEndTimesOf = holdEndTimesOf;
|
|
7
|
+
exports.accountLoadingOf = accountLoadingOf;
|
|
8
|
+
exports.accountNameToComplete = accountNameToComplete;
|
|
9
|
+
exports.tidyAccountName = tidyAccountName;
|
|
10
|
+
exports.accountNameAsk = accountNameAsk;
|
|
11
|
+
exports.giveawayNameAsk = giveawayNameAsk;
|
|
6
12
|
exports.isTheShow = isTheShow;
|
|
7
13
|
exports.playerMs = playerMs;
|
|
8
14
|
exports.productOnScreen = productOnScreen;
|
|
9
15
|
exports.firstShownAt = firstShownAt;
|
|
10
16
|
exports.replayCommentsAt = replayCommentsAt;
|
|
17
|
+
/**
|
|
18
|
+
* The rules behind the Live and Replay page models (0.14.0, moved from amore-v2's `useLivePage`,
|
|
19
|
+
* `useLiveChat` and `useReplayPage`): which navigation is a back press, when a sheet leaves the show
|
|
20
|
+
* playing, who the chat asks for a name, and what a recording shows at a point of its playhead.
|
|
21
|
+
*
|
|
22
|
+
* Pure, so it loads in plain Node for tests (sdk-shopify's `cartLineFacts` is a plain function). The
|
|
23
|
+
* hooks (`react/useLivePage.ts` and the rest) apply them.
|
|
24
|
+
*/
|
|
25
|
+
const sdk_shopify_1 = require("@tiledev/sdk-shopify");
|
|
26
|
+
const showNames_1 = require("./showNames");
|
|
11
27
|
// ─── The Live screen ──────────────────────────────────────────────────────────
|
|
12
28
|
/**
|
|
13
29
|
* The navigation actions that are a back press: the header's arrow and picture-in-picture button
|
|
@@ -44,6 +60,84 @@ function chatNameAsk({ named, loggedIn, restoring, hasCustomer }) {
|
|
|
44
60
|
const accountLoading = restoring || (loggedIn && !hasCustomer);
|
|
45
61
|
return { askForName: !named && !accountLoading, waitingForName: !named && accountLoading };
|
|
46
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* A cart with no holds: one list, so the header isn't handed a new one on every draw. A plain array, as
|
|
65
|
+
* the header tile types it (`holdEndTimes?: number[]`); never change it.
|
|
66
|
+
*/
|
|
67
|
+
exports.NO_HOLDS = [];
|
|
68
|
+
/**
|
|
69
|
+
* When each of the cart's holds ends (0.15.0, amore-v2's ENG-691), for the Live header's timer under the
|
|
70
|
+
* cart button: each line's reservation as the Cart reads it (sdk-shopify's `cartLineFacts` over the
|
|
71
|
+
* provider's `cartExtensions`: Cart Hold's stamp). A giveaway prize and a service line have none, nor
|
|
72
|
+
* does a line Cart Hold never held. Every end, not only the soonest: the Live screen doesn't read the
|
|
73
|
+
* cart again when a hold runs out, so the soonest worked out here would stay on a hold that has ended;
|
|
74
|
+
* the header picks the soonest still running as it counts. `NO_HOLDS` when there are none.
|
|
75
|
+
*/
|
|
76
|
+
function holdEndTimesOf(cart, extensions) {
|
|
77
|
+
if (!cart)
|
|
78
|
+
return exports.NO_HOLDS;
|
|
79
|
+
const ends = cart.lines
|
|
80
|
+
.map((line) => (0, sdk_shopify_1.cartLineFacts)(line, cart, extensions).holdExpiresAt)
|
|
81
|
+
.filter((end) => end !== null && end !== undefined);
|
|
82
|
+
return ends.length > 0 ? ends : exports.NO_HOLDS;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Signed in, the account not read yet (a stored sign-in on app open, or a moment after signing in, with
|
|
86
|
+
* the session and no profile): what to ask isn't known, so Send and Enter wait.
|
|
87
|
+
*/
|
|
88
|
+
function accountLoadingOf({ loggedIn, restoring, customer }) {
|
|
89
|
+
return !!restoring || (!!loggedIn && !customer);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The name a signed-in shopper's account needs (0.15.0, amore-v2's ENG-686): read, and with no first
|
|
93
|
+
* name (blank, or only spaces) or with a name the show's team goes by. What it has, each part trimmed,
|
|
94
|
+
* for the ask to start from (a last name already there needn't be typed again). Null when it has a
|
|
95
|
+
* first name, while it loads, and when signed out (a guest's name stays on the phone).
|
|
96
|
+
*/
|
|
97
|
+
function accountNameToComplete(account, blockedNames) {
|
|
98
|
+
var _a, _b, _c, _d, _e, _f;
|
|
99
|
+
if (!account.loggedIn || accountLoadingOf(account))
|
|
100
|
+
return null;
|
|
101
|
+
const firstName = (_c = (_b = (_a = account.customer) === null || _a === void 0 ? void 0 : _a.firstName) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : '';
|
|
102
|
+
const lastName = (_f = (_e = (_d = account.customer) === null || _d === void 0 ? void 0 : _d.lastName) === null || _e === void 0 ? void 0 : _e.trim()) !== null && _f !== void 0 ? _f : '';
|
|
103
|
+
const needsAName = !firstName || (0, showNames_1.isBlockedViewerName)(`${firstName} ${lastName}`, blockedNames);
|
|
104
|
+
return needsAName ? { firstName, lastName } : null;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A typed name as it goes on the account: each part's spaces closed up and trimmed, and the whole name
|
|
108
|
+
* ("Jane Doe", or "Jane" with no last name). Null with no first name, or a name the show's team goes by:
|
|
109
|
+
* nothing is saved.
|
|
110
|
+
*/
|
|
111
|
+
function tidyAccountName(typedFirstName, typedLastName, blockedNames) {
|
|
112
|
+
const firstName = typedFirstName.replace(/\s+/g, ' ').trim();
|
|
113
|
+
const lastName = typedLastName.replace(/\s+/g, ' ').trim();
|
|
114
|
+
const fullName = lastName ? `${firstName} ${lastName}` : firstName;
|
|
115
|
+
if (!firstName || (0, showNames_1.isBlockedViewerName)(fullName, blockedNames))
|
|
116
|
+
return null;
|
|
117
|
+
return { firstName, lastName, fullName };
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* What the comment box does about the shopper's name since 0.15.0 (amore-v2's ENG-686), beside
|
|
121
|
+
* `chatNameAsk`, 0.14.0's rule, which is unchanged:
|
|
122
|
+
*
|
|
123
|
+
* - **Ask** (`askForName`) a signed-in shopper whose account needs a name (`accountNameToComplete`):
|
|
124
|
+
* a first and a last name, saved to the account; and a signed-out shopper the room has no name for,
|
|
125
|
+
* saved on this phone.
|
|
126
|
+
* - **Wait** (`waitingForName`) while the account loads: Send is held, so nothing goes out as
|
|
127
|
+
* "Anonymous".
|
|
128
|
+
*/
|
|
129
|
+
function accountNameAsk({ named, loggedIn, restoring, accountLoading, nameToComplete, }) {
|
|
130
|
+
const signedIn = loggedIn || restoring;
|
|
131
|
+
return { askForName: !!nameToComplete || (!named && !signedIn), waitingForName: accountLoading };
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* What a giveaway's "Entering As:" does about the shopper's name (entering needs a sign-in): ask a
|
|
135
|
+
* signed-in shopper whose account needs a name, or whom the room has no name for once their profile has
|
|
136
|
+
* arrived; wait while the account loads.
|
|
137
|
+
*/
|
|
138
|
+
function giveawayNameAsk({ named, loggedIn, hasCustomer, accountLoading, nameToComplete, }) {
|
|
139
|
+
return { askForName: !!nameToComplete || (loggedIn && !named && hasCustomer), waitingForName: accountLoading };
|
|
140
|
+
}
|
|
47
141
|
// ─── The Replay screen ────────────────────────────────────────────────────────
|
|
48
142
|
/** A card passes the recording's feed id; a push passes its show's streaming id. Both find it. */
|
|
49
143
|
function isTheShow(replay, id) {
|
|
@@ -56,13 +150,16 @@ function playerMs(seconds) {
|
|
|
56
150
|
/**
|
|
57
151
|
* The product on screen at `atMs`: the one whose time window covers it (where windows overlap, the
|
|
58
152
|
* host went back to something, and the last one is what they were on); before the first window (a
|
|
59
|
-
* sale opens with a greeting), the first tagged product. Null with no products.
|
|
153
|
+
* sale opens with a greeting), the first tagged product. Null with no products. Since 0.15.0 the items
|
|
154
|
+
* can be a recording's shop, links among the products (`windowKeyOf`).
|
|
60
155
|
*/
|
|
61
|
-
function productOnScreen(segments, products, atMs
|
|
156
|
+
function productOnScreen(segments, products, atMs,
|
|
157
|
+
/** The key a window names an item by (0.15.0): a product's id, or a link lot's as a product GID. */
|
|
158
|
+
windowKeyOf = (item) => item.id) {
|
|
62
159
|
var _a, _b;
|
|
63
160
|
const covering = segments.filter((segment) => atMs >= segment.startMs && atMs <= segment.endMs);
|
|
64
161
|
const productId = covering.length ? covering[covering.length - 1].productGid : null;
|
|
65
|
-
return (_b = (_a = (productId ? products.find((product) => product
|
|
162
|
+
return (_b = (_a = (productId ? products.find((product) => windowKeyOf(product) === productId) : undefined)) !== null && _a !== void 0 ? _a : products[0]) !== null && _b !== void 0 ? _b : null;
|
|
66
163
|
}
|
|
67
164
|
/** Where the host first showed a product, or null for one they never did (tagged, with no time window). */
|
|
68
165
|
function firstShownAt(segments, productId) {
|
package/dist/livePages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"livePages.js","sourceRoot":"","sources":["../src/livePages.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"livePages.js","sourceRoot":"","sources":["../src/livePages.ts"],"names":[],"mappings":";;;AAmCA,oDASC;AAyBD,kCAOC;AAgBD,wCAMC;AAgBD,4CAEC;AAQD,sDAMC;AAOD,0CAUC;AAYD,wCAgBC;AAOD,0CAcC;AAKD,8BAEC;AAGD,4BAEC;AAQD,0CAUC;AAGD,oCAEC;AAUD,4CAaC;AA9PD;;;;;;;GAOG;AACH,sDAAoF;AAGpF,2CAAkD;AAGlD,iFAAiF;AAEjF;;;;;GAKG;AACU,QAAA,YAAY,GAAwB,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AAQrG;;;;GAIG;AACH,SAAgB,oBAAoB,CAClC,KAA6C,EAC7C,SAAiB,EACjB,MAAyB;IAEzB,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC5C,OAAO,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,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,8 +50,17 @@ export interface LiveSellingRoutes {
|
|
|
50
50
|
}, navigation: ScreenNavigation): void;
|
|
51
51
|
/** The variant page, drawn as a sheet over the playing show, with the show's credit. */
|
|
52
52
|
openVariantPage(params: VariantPageParams, navigation: ScreenNavigation): void;
|
|
53
|
-
/** The app's Sign In page (sdk-shopify's `useSignIn` `onOpenSignInPage`)
|
|
53
|
+
/** The app's Sign In page (sdk-shopify's `useSignIn` `onOpenSignInPage`): a bid, a giveaway entry, "Sign in to comment". */
|
|
54
54
|
openSignIn(method: SignInPageMethod, navigation: ScreenNavigation): void;
|
|
55
|
+
/**
|
|
56
|
+
* A link from a show, inside the app (0.15.0; decided 2026-10-19 by amore-v2's Head of Engineering:
|
|
57
|
+
* never the phone's browser): a host's or moderator's link in the chat, or a lot the host added as a web
|
|
58
|
+
* address. amore-v2's: the store's product or collection on its screen, any other page in its `WebPage`
|
|
59
|
+
* route with `title` in the header (`screenForLink`). Taken only for an https address (`opensInApp`),
|
|
60
|
+
* after the show has gone into the bubble. Optional: without it, links are shown as words, with nothing
|
|
61
|
+
* to tap.
|
|
62
|
+
*/
|
|
63
|
+
openLink?(url: string, title: string | null | undefined, navigation: ScreenNavigation): void;
|
|
55
64
|
/**
|
|
56
65
|
* The route names of the pages drawn as sheets over a show (amore-v2's: `VariantSelector` and
|
|
57
66
|
* `SignIn`). Under one the show plays on, with the screen kept on and the light status bar.
|
|
@@ -64,16 +73,25 @@ export type LiveTrack = (name: string, properties: Record<string, unknown>) => v
|
|
|
64
73
|
export type LiveWarning = (error: unknown, context: Record<string, unknown>) => void;
|
|
65
74
|
/** What the page hooks read from `LiveSellingProvider`. */
|
|
66
75
|
export interface LivePageOptions {
|
|
67
|
-
|
|
76
|
+
/** Every route, `openLink` included: one the app didn't give says so and goes nowhere. */
|
|
77
|
+
routes: Required<LiveSellingRoutes>;
|
|
68
78
|
track: LiveTrack;
|
|
69
79
|
/** The store's name, in the bidding rules. Unset: the bid bar's own words. */
|
|
70
80
|
shopName: string | undefined;
|
|
81
|
+
/** The app gave `routes.openLink` (0.15.0): a link from a show can be opened, so it is drawn as one. */
|
|
82
|
+
canOpenLinks: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The names nobody watching may go by (0.15.0), the show's team's: the provider's `blockedNames`, else
|
|
85
|
+
* `DEFAULT_BLOCKED_VIEWER_NAMES` (Host, Moderator). The name asks refuse them as they are typed.
|
|
86
|
+
*/
|
|
87
|
+
blockedNames: readonly string[];
|
|
71
88
|
}
|
|
72
89
|
/** The provider's props the options are made from, any of them unset. */
|
|
73
90
|
export interface LivePageOptionsInput {
|
|
74
91
|
routes?: LiveSellingRoutes | null;
|
|
75
92
|
track?: LiveTrack | null;
|
|
76
93
|
shopName?: string | null;
|
|
94
|
+
blockedNames?: readonly string[] | null;
|
|
77
95
|
}
|
|
78
96
|
/** Without `onWarning`: the console, so a failure is never silent in development. */
|
|
79
97
|
export declare const consoleWarning: LiveWarning;
|
|
@@ -89,12 +107,12 @@ export declare function reportLiveWarning(error: unknown, context: Record<string
|
|
|
89
107
|
* The routes of a provider given none: each says so (`reportLiveWarning`) and goes nowhere, and no
|
|
90
108
|
* page counts as a sheet. A screen still draws; only its buttons that go somewhere do nothing.
|
|
91
109
|
*/
|
|
92
|
-
export declare const NO_ROUTES: LiveSellingRoutes
|
|
110
|
+
export declare const NO_ROUTES: Required<LiveSellingRoutes>;
|
|
93
111
|
/**
|
|
94
112
|
* The page options, read from `latest` at the moment each is used, with their defaults: no routes
|
|
95
|
-
* (`NO_ROUTES`), no analytics, no store name
|
|
96
|
-
* the app hands the provider new ones (an inline
|
|
97
|
-
* on them without its effects running again.
|
|
113
|
+
* (`NO_ROUTES`), no analytics, no store name, links that can't open, the SDK's blocked names. The
|
|
114
|
+
* routes and `track` keep one identity however often the app hands the provider new ones (an inline
|
|
115
|
+
* object, a hook's function), so a page hook can depend on them without its effects running again.
|
|
98
116
|
*/
|
|
99
117
|
export declare function pageOptionsReading(latest: () => LivePageOptionsInput): LivePageOptions;
|
|
100
118
|
//# sourceMappingURL=pageOptions.d.ts.map
|
|
@@ -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;
|
|
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,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,sHAAsH;IACtH,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtE;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAClD,mHAAmH;IACnH,QAAQ,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC7C,mGAAmG;IACnG,QAAQ,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,OAAO,CAAA;KAAE,EAAE,UAAU,EAAE,gBAAg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E,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;CACzC;AAED,qFAAqF;AACrF,eAAO,MAAM,cAAc,EAAE,WAE5B,CAAC;AAIF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAE7E;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAMxF;AAOD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,iBAAiB,CAWjD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,oBAAoB,GAAG,eAAe,CAmCtF"}
|
package/dist/pageOptions.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.NO_ROUTES = exports.consoleWarning = void 0;
|
|
|
4
4
|
exports.setLiveWarningSink = setLiveWarningSink;
|
|
5
5
|
exports.reportLiveWarning = reportLiveWarning;
|
|
6
6
|
exports.pageOptionsReading = pageOptionsReading;
|
|
7
|
+
const showNames_1 = require("./showNames");
|
|
7
8
|
/** Without `onWarning`: the console, so a failure is never silent in development. */
|
|
8
9
|
const consoleWarning = (error, context) => {
|
|
9
10
|
console.warn(error, context);
|
|
@@ -43,13 +44,14 @@ exports.NO_ROUTES = {
|
|
|
43
44
|
openCart: goesNowhere('openCart'),
|
|
44
45
|
openVariantPage: goesNowhere('openVariantPage'),
|
|
45
46
|
openSignIn: goesNowhere('openSignIn'),
|
|
47
|
+
openLink: goesNowhere('openLink'),
|
|
46
48
|
sheets: [],
|
|
47
49
|
};
|
|
48
50
|
/**
|
|
49
51
|
* The page options, read from `latest` at the moment each is used, with their defaults: no routes
|
|
50
|
-
* (`NO_ROUTES`), no analytics, no store name
|
|
51
|
-
* the app hands the provider new ones (an inline
|
|
52
|
-
* on them without its effects running again.
|
|
52
|
+
* (`NO_ROUTES`), no analytics, no store name, links that can't open, the SDK's blocked names. The
|
|
53
|
+
* routes and `track` keep one identity however often the app hands the provider new ones (an inline
|
|
54
|
+
* object, a hook's function), so a page hook can depend on them without its effects running again.
|
|
53
55
|
*/
|
|
54
56
|
function pageOptionsReading(latest) {
|
|
55
57
|
const routes = () => { var _a; return (_a = latest().routes) !== null && _a !== void 0 ? _a : exports.NO_ROUTES; };
|
|
@@ -63,6 +65,13 @@ function pageOptionsReading(latest) {
|
|
|
63
65
|
openCart: (options, navigation) => routes().openCart(options, navigation),
|
|
64
66
|
openVariantPage: (params, navigation) => routes().openVariantPage(params, navigation),
|
|
65
67
|
openSignIn: (method, navigation) => routes().openSignIn(method, navigation),
|
|
68
|
+
openLink: (url, title, navigation) => {
|
|
69
|
+
const openLink = routes().openLink;
|
|
70
|
+
if (openLink)
|
|
71
|
+
openLink(url, title, navigation);
|
|
72
|
+
else
|
|
73
|
+
exports.NO_ROUTES.openLink(url, title, navigation);
|
|
74
|
+
},
|
|
66
75
|
get sheets() {
|
|
67
76
|
var _a;
|
|
68
77
|
return (_a = routes().sheets) !== null && _a !== void 0 ? _a : [];
|
|
@@ -77,6 +86,14 @@ function pageOptionsReading(latest) {
|
|
|
77
86
|
var _a;
|
|
78
87
|
return (_a = latest().shopName) !== null && _a !== void 0 ? _a : undefined;
|
|
79
88
|
},
|
|
89
|
+
get canOpenLinks() {
|
|
90
|
+
var _a;
|
|
91
|
+
return !!((_a = latest().routes) === null || _a === void 0 ? void 0 : _a.openLink);
|
|
92
|
+
},
|
|
93
|
+
get blockedNames() {
|
|
94
|
+
var _a;
|
|
95
|
+
return (_a = latest().blockedNames) !== null && _a !== void 0 ? _a : showNames_1.DEFAULT_BLOCKED_VIEWER_NAMES;
|
|
96
|
+
},
|
|
80
97
|
};
|
|
81
98
|
}
|
|
82
99
|
//# sourceMappingURL=pageOptions.js.map
|
package/dist/pageOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageOptions.js","sourceRoot":"","sources":["../src/pageOptions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pageOptions.js","sourceRoot":"","sources":["../src/pageOptions.ts"],"names":[],"mappings":";;;AAmHA,gDAEC;AAGD,8CAMC;AA8BD,gDAmCC;AAjLD,2CAA2D;AAyF3D,qFAAqF;AAC9E,MAAM,cAAc,GAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAC5D,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC,CAAC;AAFW,QAAA,cAAc,kBAEzB;AAEF,IAAI,WAAW,GAAgB,sBAAc,CAAC;AAE9C;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAoC;IACrE,WAAW,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,sBAAc,CAAC;AACvC,CAAC;AAED,wGAAwG;AACxG,SAAgB,iBAAiB,CAAC,KAAc,EAAE,OAAgC;IAChF,IAAI,CAAC;QACH,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,gDAAgD;IAClD,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,KAA8B;IACjD,OAAO,GAAG,EAAE,CACV,iBAAiB,CAAC,IAAI,KAAK,CAAC,0CAA0C,KAAK,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE,UAAU,KAAK,EAAE,EAAE,CAAC,CAAC;AAC5H,CAAC;AAED;;;GAGG;AACU,QAAA,SAAS,GAAgC;IACpD,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC;IACjC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC;IACrC,iBAAiB,EAAE,WAAW,CAAC,mBAAmB,CAAC;IACnD,aAAa,EAAE,WAAW,CAAC,eAAe,CAAC;IAC3C,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC;IACjC,QAAQ,EAAE,WAAW,CAA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AG,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;gBACnC,MAAM,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC;gBACnC,IAAI,QAAQ;oBAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;;oBAC1C,iBAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;YAClD,CAAC;YACD,IAAI,MAAM;;gBACR,OAAO,MAAA,MAAM,EAAE,CAAC,MAAM,mCAAI,EAAE,CAAC;YAC/B,CAAC;SACF;QACD,KAAK,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;YAC1B,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC;YAC7B,IAAI,KAAK;gBAAE,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QACrC,CAAC;QACD,IAAI,QAAQ;;YACV,OAAO,MAAA,MAAM,EAAE,CAAC,QAAQ,mCAAI,SAAS,CAAC;QACxC,CAAC;QACD,IAAI,YAAY;;YACd,OAAO,CAAC,CAAC,CAAA,MAAA,MAAM,EAAE,CAAC,MAAM,0CAAE,QAAQ,CAAA,CAAC;QACrC,CAAC;QACD,IAAI,YAAY;;YACd,OAAO,MAAA,MAAM,EAAE,CAAC,YAAY,mCAAI,wCAA4B,CAAC;QAC/D,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/pageTypes.d.ts
CHANGED
|
@@ -18,6 +18,30 @@ export interface LiveFeaturedProduct {
|
|
|
18
18
|
lotNumber?: string | null;
|
|
19
19
|
/** An auction lot's opening bid, formatted ("$20.00"). None on a live show. */
|
|
20
20
|
startingBid?: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* A link the host featured (0.15.0; a lot that is a web address, not a product of the store): the
|
|
23
|
+
* card opens its page rather than selling it, on any show (a link is opened, never bought or bid on).
|
|
24
|
+
*/
|
|
25
|
+
isLink?: boolean;
|
|
26
|
+
/** False: a link the app can't open, so the card is words, not a button. Default: a button. */
|
|
27
|
+
canOpen?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A link the host added to the show, ready to draw in the Shop sheet (0.15.0; `LiveShopButton01`): a lot
|
|
31
|
+
* that is a web address, not a product of the store, mostly an affiliate link. It is opened, never
|
|
32
|
+
* bought: its card has no Add to Cart and no star. The page formats the price.
|
|
33
|
+
*/
|
|
34
|
+
export interface LiveShopLink {
|
|
35
|
+
/** Says this item is a link, not a product. */
|
|
36
|
+
kind: 'link';
|
|
37
|
+
/** The lot's key on the show (its address when the host gave it no id). */
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
/** Formatted ("$45.00"); empty: none shown. */
|
|
41
|
+
price: string;
|
|
42
|
+
imageUrl?: string | null;
|
|
43
|
+
/** The page a tap opens; none when the app can't open it (not https), and the card is then words, not a button. */
|
|
44
|
+
url?: string | null;
|
|
21
45
|
}
|
|
22
46
|
/**
|
|
23
47
|
* Where the featured lot stands in its auction, ready to draw (`LiveProductCard01`; the page formats
|
|
@@ -101,6 +125,16 @@ export interface LiveCommentMention {
|
|
|
101
125
|
name: string;
|
|
102
126
|
key: number;
|
|
103
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* A signed-in shopper's name on their account (0.15.0), as the comment box's "Commenting As:" starts
|
|
130
|
+
* from it (`LiveCommentBox01`'s `accountName`): each part trimmed, possibly empty.
|
|
131
|
+
*/
|
|
132
|
+
export interface NameOnAccount {
|
|
133
|
+
firstName?: string | null;
|
|
134
|
+
lastName?: string | null;
|
|
135
|
+
}
|
|
136
|
+
/** The same, as the giveaway's "Entering As:" starts from it (`LiveGiveawayButton01`'s `accountName`). */
|
|
137
|
+
export type GiveawayNameOnAccount = NameOnAccount;
|
|
104
138
|
/** One recording in the feed, as the player draws it (`ReplayPlayer01`). */
|
|
105
139
|
export interface ReplayShow {
|
|
106
140
|
id: string;
|
|
@@ -114,7 +148,13 @@ export interface ReplayNowProduct {
|
|
|
114
148
|
/** Formatted ("$58.00"). */
|
|
115
149
|
price: string;
|
|
116
150
|
imageUrl?: string | null;
|
|
151
|
+
/** A link the host added (0.15.0): the card opens its page rather than selling it. */
|
|
152
|
+
isLink?: boolean;
|
|
153
|
+
/** False: a link the app can't open, so the card is words, not a button. Default: a button. */
|
|
154
|
+
canOpen?: boolean;
|
|
117
155
|
}
|
|
156
|
+
/** A link the host added, in the Replay screen's shop (0.15.0; `ReplayShopBar01`): `LiveShopLink`'s shape. */
|
|
157
|
+
export type ReplayShopLink = LiveShopLink;
|
|
118
158
|
/** One comment from the show's chat (`ReplayComments01`). */
|
|
119
159
|
export interface ReplayCommentItem {
|
|
120
160
|
id: string;
|
|
@@ -124,4 +164,22 @@ export interface ReplayCommentItem {
|
|
|
124
164
|
/** Said by the host: drawn under the tile's `hostName`. */
|
|
125
165
|
fromHost?: boolean;
|
|
126
166
|
}
|
|
167
|
+
/** One clip of the reel, ready to draw (0.15.0; `ClipReel01`): the page formats the price. */
|
|
168
|
+
export interface ClipReelItem {
|
|
169
|
+
id: string;
|
|
170
|
+
/** The recording the clip plays from (an HLS playlist on native). */
|
|
171
|
+
videoUrl: string;
|
|
172
|
+
/** Shown until the video draws its first frame, and on web, where HLS doesn't play. */
|
|
173
|
+
posterUrl?: string | null;
|
|
174
|
+
/** A clip is often a cut from a longer recording: it starts here and loops back here at `endMs`. Neither set: the whole video, looped. */
|
|
175
|
+
startMs?: number | null;
|
|
176
|
+
/** None: the cut runs to the end of the recording. */
|
|
177
|
+
endMs?: number | null;
|
|
178
|
+
/** The product the clip sells. None: no product bar and no share button. */
|
|
179
|
+
product?: {
|
|
180
|
+
title: string;
|
|
181
|
+
price: string;
|
|
182
|
+
imageUrl?: string | null;
|
|
183
|
+
} | null;
|
|
184
|
+
}
|
|
127
185
|
//# sourceMappingURL=pageTypes.d.ts.map
|
package/dist/pageTypes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageTypes.d.ts","sourceRoot":"","sources":["../src/pageTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD,0GAA0G;AAC1G,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"pageTypes.d.ts","sourceRoot":"","sources":["../src/pageTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIpD,0GAA0G;AAC1G,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,KAAK,EAAE,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AAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,sFAAsF;IACtF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAE1C,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAID,8FAA8F;AAC9F,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IACjB,uFAAuF;IACvF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0IAA0I;IAC1I,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,4EAA4E;IAC5E,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC7E"}
|
|
@@ -35,13 +35,21 @@ export interface LiveSellingProviderProps {
|
|
|
35
35
|
onWarning?: LiveWarning;
|
|
36
36
|
/** The store's name, in the bidding rules (0.14.0); amore-v2 passed its `APP_NAME`. Unset: the bid bar's own words. */
|
|
37
37
|
shopName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The names nobody watching may go by, the show's team's (0.15.0): the name asks refuse them as they
|
|
40
|
+
* are typed, an account named as one is asked for another, and `ShopifyLiveSessionProvider` hands them
|
|
41
|
+
* to the session, which never shows one. amore-v2's PM sets them in its Live Layer (Settings › Live
|
|
42
|
+
* Room); `blockedNamesFrom` reads such a list. Unset: `DEFAULT_BLOCKED_VIEWER_NAMES` (Host, Moderator).
|
|
43
|
+
*/
|
|
44
|
+
blockedNames?: readonly string[];
|
|
38
45
|
}
|
|
39
|
-
export declare function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, }: LiveSellingProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSellingContextType | undefined>>;
|
|
46
|
+
export declare function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, blockedNames, }: LiveSellingProviderProps): import("react").FunctionComponentElement<import("react").ProviderProps<LiveSellingContextType | undefined>>;
|
|
40
47
|
export declare function useLiveSelling(): LiveSellingContextType;
|
|
41
48
|
/**
|
|
42
49
|
* What the live pages need from the app (0.14.0), as `LiveSellingProvider` was given it: `routes`,
|
|
43
|
-
* `track` and `
|
|
44
|
-
* identity, so an app's own screen can take the same routes
|
|
50
|
+
* `track`, `shopName`, and since 0.15.0 `canOpenLinks` and `blockedNames`, with their defaults outside a
|
|
51
|
+
* provider. The routes and `track` keep one identity, so an app's own screen can take the same routes
|
|
52
|
+
* the page hooks do.
|
|
45
53
|
*/
|
|
46
54
|
export declare function useLivePageOptions(): LivePageOptions;
|
|
47
55
|
//# sourceMappingURL=LiveSellingProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveSellingProvider.d.ts","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LiveSellingProvider.d.ts","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,kGAAkG;IAClG,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,iGAAiG;IACjG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,0HAA0H;IAC1H,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,uHAAuH;IACvH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAUD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,EACR,YAAY,GACb,EAAE,wBAAwB,+GA8D1B;AAED,wBAAgB,cAAc,IAAI,sBAAsB,CAIvD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD"}
|
|
@@ -16,16 +16,18 @@ exports.useLivePageOptions = useLivePageOptions;
|
|
|
16
16
|
* `viewerEmail` is who is watching, for the hidden shows (`config.hiddenShows`); `useHiddenShows`
|
|
17
17
|
* (its own file) reads it with the rule for the hooks that hand out shows.
|
|
18
18
|
*
|
|
19
|
-
* `routes`, `track`, `onWarning` and `shopName` (0.14.0) are what the live
|
|
20
|
-
* (`pageOptions.ts`): the page hooks read them through `useLivePageOptions`, and
|
|
19
|
+
* `routes`, `track`, `onWarning` and `shopName` (0.14.0), and `blockedNames` (0.15.0), are what the live
|
|
20
|
+
* pages need from the app (`pageOptions.ts`): the page hooks read them through `useLivePageOptions`, and
|
|
21
|
+
* the bubbles too.
|
|
21
22
|
*/
|
|
22
23
|
const react_1 = require("react");
|
|
23
24
|
const liveSelling_1 = require("../liveSelling");
|
|
24
25
|
const pageOptions_1 = require("../pageOptions");
|
|
25
26
|
const LiveSellingContext = (0, react_1.createContext)(undefined);
|
|
27
|
+
const sameNames = (first, second) => first === second || (first.length === second.length && first.every((name, at) => name === second[at]));
|
|
26
28
|
/** The defaults, for a hook rendered without the provider: no routes, no analytics, no store name. */
|
|
27
29
|
const LivePageOptionsContext = (0, react_1.createContext)((0, pageOptions_1.pageOptionsReading)(() => ({})));
|
|
28
|
-
function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, }) {
|
|
30
|
+
function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, track, onWarning, shopName, blockedNames, }) {
|
|
29
31
|
const [ready, setReady] = (0, react_1.useState)(false);
|
|
30
32
|
const [error, setError] = (0, react_1.useState)(null);
|
|
31
33
|
// Set as the provider draws rather than in an effect: the screens below run their effects first, and
|
|
@@ -54,10 +56,25 @@ function LiveSellingProvider({ children, config, onEvent, viewerEmail, routes, t
|
|
|
54
56
|
const value = (0, react_1.useMemo)(() => ({ ready, error, client: liveSelling_1.liveSelling, viewerEmail: email }), [ready, error, email]);
|
|
55
57
|
// The routes and `track` keep one identity for the provider's life, reading the latest props when
|
|
56
58
|
// taken, so the page hooks' effects don't run again each time the app draws.
|
|
57
|
-
const latestPageProps = (0, react_1.useRef)({ routes, track, shopName });
|
|
58
|
-
latestPageProps.current = { routes, track, shopName };
|
|
59
|
+
const latestPageProps = (0, react_1.useRef)({ routes, track, shopName, blockedNames });
|
|
60
|
+
latestPageProps.current = { routes, track, shopName, blockedNames };
|
|
59
61
|
const stablePageOptions = (0, react_1.useMemo)(() => (0, pageOptions_1.pageOptionsReading)(() => latestPageProps.current), []);
|
|
60
|
-
|
|
62
|
+
// What the hooks draw from (not only call) changes the value, so they draw again.
|
|
63
|
+
const canOpenLinks = !!(routes === null || routes === void 0 ? void 0 : routes.openLink);
|
|
64
|
+
// The same list keeps the same array, so a list the app builds each draw (`blockedNamesFrom`) doesn't
|
|
65
|
+
// change the value each draw.
|
|
66
|
+
const blockedNamesNow = (0, react_1.useRef)(stablePageOptions.blockedNames);
|
|
67
|
+
const latestBlockedNames = stablePageOptions.blockedNames;
|
|
68
|
+
if (!sameNames(blockedNamesNow.current, latestBlockedNames))
|
|
69
|
+
blockedNamesNow.current = latestBlockedNames;
|
|
70
|
+
const pageBlockedNames = blockedNamesNow.current;
|
|
71
|
+
const pageOptions = (0, react_1.useMemo)(() => ({
|
|
72
|
+
routes: stablePageOptions.routes,
|
|
73
|
+
track: stablePageOptions.track,
|
|
74
|
+
shopName: shopName !== null && shopName !== void 0 ? shopName : undefined,
|
|
75
|
+
canOpenLinks,
|
|
76
|
+
blockedNames: pageBlockedNames,
|
|
77
|
+
}), [stablePageOptions, shopName, canOpenLinks, pageBlockedNames]);
|
|
61
78
|
return (0, react_1.createElement)(LiveSellingContext.Provider, { value }, (0, react_1.createElement)(LivePageOptionsContext.Provider, { value: pageOptions }, children));
|
|
62
79
|
}
|
|
63
80
|
function useLiveSelling() {
|
|
@@ -68,8 +85,9 @@ function useLiveSelling() {
|
|
|
68
85
|
}
|
|
69
86
|
/**
|
|
70
87
|
* What the live pages need from the app (0.14.0), as `LiveSellingProvider` was given it: `routes`,
|
|
71
|
-
* `track` and `
|
|
72
|
-
* identity, so an app's own screen can take the same routes
|
|
88
|
+
* `track`, `shopName`, and since 0.15.0 `canOpenLinks` and `blockedNames`, with their defaults outside a
|
|
89
|
+
* provider. The routes and `track` keep one identity, so an app's own screen can take the same routes
|
|
90
|
+
* the page hooks do.
|
|
73
91
|
*/
|
|
74
92
|
function useLivePageOptions() {
|
|
75
93
|
return (0, react_1.useContext)(LivePageOptionsContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveSellingProvider.js","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"LiveSellingProvider.js","sourceRoot":"","sources":["../../src/react/LiveSellingProvider.ts"],"names":[],"mappings":";;AAmFA,kDAwEC;AAED,wCAIC;AAQD,gDAEC;AA3KD;;;;;;;;;;;;;;;;GAgBG;AACH,iCAAuG;AAGvG,gDAA6C;AAC7C,gDAOwB;AA+CxB,MAAM,kBAAkB,GAAG,IAAA,qBAAa,EAAqC,SAAS,CAAC,CAAC;AAExF,MAAM,SAAS,GAAG,CAAC,KAAwB,EAAE,MAAyB,EAAE,EAAE,CACxE,KAAK,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEzG,sGAAsG;AACtG,MAAM,sBAAsB,GAAG,IAAA,qBAAa,EAAkB,IAAA,gCAAkB,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE9F,SAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,EACT,QAAQ,EACR,YAAY,GACa;IACzB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAgB,IAAI,C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AQ,CAAC,CACjF,CAAC;AACJ,CAAC;AAED,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,kBAAkB,CAAC,CAAC;IAC3C,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IACtF,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB;IAChC,OAAO,IAAA,kBAAU,EAAC,sBAAsB,CAAC,CAAC;AAC5C,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -35,8 +35,10 @@ export { ReplayPlayerProvider, useReplayPlayer, type ReplayPlayerState } from '.
|
|
|
35
35
|
export { useKeepScreenAwake } from './useKeepScreenAwake';
|
|
36
36
|
export { useLivePage, type LivePage } from './useLivePage';
|
|
37
37
|
export { useLiveChat, type LiveChat, type LiveChatShow } from './useLiveChat';
|
|
38
|
-
export { useLiveShop, shareProduct, shareAddress, type LiveShop } from './useLiveShop';
|
|
38
|
+
export { useLiveShop, shareProduct, shareAddress, type LiveShop, type LiveShopScreen } from './useLiveShop';
|
|
39
39
|
export { useLiveAuction, type LiveAuction, type LiveAuctionScreen } from './useLiveAuction';
|
|
40
40
|
export { useLiveGiveawaysAndPolls, type LiveGiveawaysAndPolls } from './useLiveGiveawaysAndPolls';
|
|
41
41
|
export { useReplayPage, type ReplayPage } from './useReplayPage';
|
|
42
|
+
export { useAccountName, type AccountName } from './useAccountName';
|
|
43
|
+
export { useClipsPage, type ClipsPage } from './useClipsPage';
|
|
42
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA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AqB,GAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,GACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAE,wBAAwB,EAAE,KAAK,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useLiveAuction = exports.shareAddress = exports.shareProduct = exports.useLiveShop = exports.useLiveChat = exports.useLivePage = exports.useKeepScreenAwake = exports.useReplayPlayer = exports.ReplayPlayerProvider = exports.ShopifyLiveSessionProvider = exports.ShopifyLiveSellingProvider = exports.useLivePageOptions = exports.nativeViewTag = exports.SHOWS_PAGE_SIZE = exports.useLiveRailFor = exports.useLiveHubPageFor = exports.useItemsYouWonPageFor = exports.useLiveRail = exports.useLiveHubPage = exports.useItemsYouWonPage = exports.useAuctionWins = exports.useSilentAuctionRounds = exports.useMySilentAuctionBids = exports.useSilentAuctionLot = exports.useSilentAuctionLots = exports.useCommentLinkCards = exports.useGiveawayPrize = exports.useGiveawayEntry = exports.SHEET_HANDOFF_MS = exports.useAuctionBidGate = exports.isNativeVideoSupported = exports.NativeVideoView = exports.LiveVideoTarget = exports.refreshStreamRecordsIfStale = exports.refreshStreamRecords = exports.useStreamInfo = exports.useShowClock = exports.useAuctionCountdown = exports.useLiveShow = exports.useLiveSession = exports.LiveSessionProvider = exports.useClips = exports.useReplays = exports.useAuction = exports.useLiveStreams = exports.refreshOngoingLive = exports.useOngoingLive = exports.useHiddenShows = exports.useLiveSelling = exports.LiveSellingProvider = void 0;
|
|
4
|
-
exports.useReplayPage = exports.useLiveGiveawaysAndPolls = void 0;
|
|
4
|
+
exports.useClipsPage = exports.useAccountName = exports.useReplayPage = exports.useLiveGiveawaysAndPolls = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* React helpers for `@tiledev/sdk-apptile-live-selling` — the provider and the read hooks.
|
|
7
7
|
*
|
|
@@ -104,4 +104,9 @@ var useLiveGiveawaysAndPolls_1 = require("./useLiveGiveawaysAndPolls");
|
|
|
104
104
|
Object.defineProperty(exports, "useLiveGiveawaysAndPolls", { enumerable: true, get: function () { return useLiveGiveawaysAndPolls_1.useLiveGiveawaysAndPolls; } });
|
|
105
105
|
var useReplayPage_1 = require("./useReplayPage");
|
|
106
106
|
Object.defineProperty(exports, "useReplayPage", { enumerable: true, get: function () { return useReplayPage_1.useReplayPage; } });
|
|
107
|
+
// 0.15.0: the name on the shopper's account, for the name asks; the Clips page.
|
|
108
|
+
var useAccountName_1 = require("./useAccountName");
|
|
109
|
+
Object.defineProperty(exports, "useAccountName", { enumerable: true, get: function () { return useAccountName_1.useAccountName; } });
|
|
110
|
+
var useClipsPage_1 = require("./useClipsPage");
|
|
111
|
+
Object.defineProperty(exports, "useClipsPage", { enumerable: true, get: function () { return useClipsPage_1.useClipsPage; } });
|
|
107
112
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,6DAK+B;AAJ7B,0HAAA,mBAAmB,OAAA;AACnB,qHAAA,cAAc,OAAA;AAIhB,mDAA6E;AAApE,gHAAA,cAAc,OAAA;AACvB,mDAA4E;AAAnE,gHAAA,cAAc,OAAA;AACvB,wDAAyD;AAAhD,sHAAA,kBAAkB,OAAA;AAC3B,mDAA4E;AAAnE,gHAAA,cAAc,OAAA;AACvB,2CAAgE;AAAvD,wGAAA,UAAU,OAAA;AACnB,2CAAwF;AAA/E,wGAAA,UAAU,OAAA;AACnB,uCAA0D;AAAjD,oGAAA,QAAQ,OAAA;AAEjB,4FAA4F;AAC5F,mDAI0B;AAHxB,qHAAA,mBAAmB,OAAA;AACnB,gHAAA,cAAc,OAAA;AAGhB,yEAAyE;AACzE,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,oGAAoG;AACpG,mCAA6D;AAApD,6GAAA,mBAAmB,OAAA;AAAE,sGAAA,YAAY,OAAA;AAC1C,iDAKyB;AAJvB,8GAAA,aAAa,OAAA;AACb,qHAAA,oBAAoB,OAAA;AACpB,4HAAA,2BAA2B,OAAA;AAG7B,qDAK2B;AAJzB,kHAAA,eAAe,OAAA;AACf,kHAAA,eAAe,OAAA;AACf,yHAAA,sBAAsB,OAAA;AAGxB,yDAO6B;AAN3B,sHAAA,iBAAiB,OAAA;AAC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,yCAWqB;AAVnB,kHAAA,qBAAqB,OAAA;AACrB,8GAAA,iBAAiB,OAAA;AACjB,2GAAA,cAAc,OAAA;AACd,4GAAA,eAAe,OAAA;AAQjB,qEAAqE;AACrE,kDAAiD;AAAxC,8GAAA,aAAa,OAAA;AAEtB,wFAAwF;AACxF,0GAA0G;AAC1G,6EAA6E;AAC7E,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,uDAM4B;AAL1B,8HAAA,0BAA0B,OAAA;AAC1B,8HAAA,0BAA0B,OAAA;AAK5B,+CAA+F;AAAtF,oHAAA,oBAAoB,OAAA;AAAE,+GAAA,eAAe,OAAA;AAC9C,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,6CAA2D;AAAlD,0GAAA,WAAW,OAAA;AACpB,6CAA8E;AAArE,0GAAA,WAAW,OAAA;AACpB,6CAA4G;AAAnG,0GAAA,WAAW,OAAA;AAAE,2GAAA,YAAY,OAAA;AAAE,2GAAA,YAAY,OAAA;AAChD,mDAA4F;AAAnF,gHAAA,cAAc,OAAA;AACvB,uEAAkG;AAAzF,oIAAA,wBAAwB,OAAA;AACjC,iDAAiE;AAAxD,8GAAA,aAAa,OAAA;AACtB,gFAAgF;AAChF,mDAAoE;AAA3D,gHAAA,cAAc,OAAA;AACvB,+CAA8D;AAArD,4GAAA,YAAY,OAAA"}
|
|
@@ -29,10 +29,12 @@ export { ReplayPlayerProvider, useReplayPlayer, type ReplayPlayerState } from '.
|
|
|
29
29
|
export { useKeepScreenAwake } from './useKeepScreenAwake';
|
|
30
30
|
export { useLivePage, type LivePage } from './useLivePage';
|
|
31
31
|
export { useLiveChat, type LiveChat, type LiveChatShow } from './useLiveChat';
|
|
32
|
-
export { useLiveShop, shareProduct, shareAddress, type LiveShop } from './useLiveShop';
|
|
32
|
+
export { useLiveShop, shareProduct, shareAddress, type LiveShop, type LiveShopScreen } from './useLiveShop';
|
|
33
33
|
export { useLiveAuction, type LiveAuction, type LiveAuctionScreen } from './useLiveAuction';
|
|
34
34
|
export { useLiveGiveawaysAndPolls, type LiveGiveawaysAndPolls } from './useLiveGiveawaysAndPolls';
|
|
35
35
|
export { useReplayPage, type ReplayPage } from './useReplayPage';
|
|
36
|
+
export { useAccountName, type AccountName } from './useAccountName';
|
|
37
|
+
export { useClipsPage, type ClipsPage } from './useClipsPage';
|
|
36
38
|
/** The Items You Won tab over the empty wins: signed in, it says nothing was won. */
|
|
37
39
|
export declare function useItemsYouWonPage<TRaw = unknown>(options: UseItemsYouWonPageOptions): ItemsYouWonPage<TRaw>;
|
|
38
40
|
/** The Live tab over the idle session: the recordings are real, the show on air never plays here. */
|