@tiledev/sdk-apptile-live-selling 0.12.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +116 -19
  2. package/dist/giveawayPrizeLines.d.ts +10 -0
  3. package/dist/giveawayPrizeLines.d.ts.map +1 -1
  4. package/dist/giveawayPrizeLines.js +11 -1
  5. package/dist/giveawayPrizeLines.js.map +1 -1
  6. package/dist/heldComments.d.ts +13 -2
  7. package/dist/heldComments.d.ts.map +1 -1
  8. package/dist/heldComments.js +16 -2
  9. package/dist/heldComments.js.map +1 -1
  10. package/dist/hiddenShows.d.ts +10 -0
  11. package/dist/hiddenShows.d.ts.map +1 -1
  12. package/dist/hiddenShows.js +11 -0
  13. package/dist/hiddenShows.js.map +1 -1
  14. package/dist/index.d.ts +9 -4
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +35 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/livePages.d.ts +79 -0
  19. package/dist/livePages.d.ts.map +1 -0
  20. package/dist/livePages.js +90 -0
  21. package/dist/livePages.js.map +1 -0
  22. package/dist/liveRoom.d.ts +21 -0
  23. package/dist/liveRoom.d.ts.map +1 -0
  24. package/dist/liveRoom.js +28 -0
  25. package/dist/liveRoom.js.map +1 -0
  26. package/dist/pageOptions.d.ts +100 -0
  27. package/dist/pageOptions.d.ts.map +1 -0
  28. package/dist/pageOptions.js +82 -0
  29. package/dist/pageOptions.js.map +1 -0
  30. package/dist/pageTypes.d.ts +127 -0
  31. package/dist/pageTypes.d.ts.map +1 -0
  32. package/dist/pageTypes.js +3 -0
  33. package/dist/pageTypes.js.map +1 -0
  34. package/dist/react/LiveSellingProvider.d.ts +23 -1
  35. package/dist/react/LiveSellingProvider.d.ts.map +1 -1
  36. package/dist/react/LiveSellingProvider.js +26 -2
  37. package/dist/react/LiveSellingProvider.js.map +1 -1
  38. package/dist/react/index.d.ts +10 -0
  39. package/dist/react/index.d.ts.map +1 -1
  40. package/dist/react/index.js +29 -1
  41. package/dist/react/index.js.map +1 -1
  42. package/dist/react/index.web.d.ts +11 -32
  43. package/dist/react/index.web.d.ts.map +1 -1
  44. package/dist/react/index.web.js +46 -139
  45. package/dist/react/index.web.js.map +1 -1
  46. package/dist/react/navigation.d.ts +13 -0
  47. package/dist/react/navigation.d.ts.map +1 -0
  48. package/dist/react/navigation.js +7 -0
  49. package/dist/react/navigation.js.map +1 -0
  50. package/dist/react/platformSession.d.ts +16 -0
  51. package/dist/react/platformSession.d.ts.map +1 -0
  52. package/dist/react/platformSession.js +28 -0
  53. package/dist/react/platformSession.js.map +1 -0
  54. package/dist/react/platformSession.web.d.ts +35 -0
  55. package/dist/react/platformSession.web.d.ts.map +1 -0
  56. package/dist/react/platformSession.web.js +148 -0
  57. package/dist/react/platformSession.web.js.map +1 -0
  58. package/dist/react/replayPlayer.d.ts +74 -0
  59. package/dist/react/replayPlayer.d.ts.map +1 -0
  60. package/dist/react/replayPlayer.js +279 -0
  61. package/dist/react/replayPlayer.js.map +1 -0
  62. package/dist/react/shopifyProviders.d.ts +68 -0
  63. package/dist/react/shopifyProviders.d.ts.map +1 -0
  64. package/dist/react/shopifyProviders.js +98 -0
  65. package/dist/react/shopifyProviders.js.map +1 -0
  66. package/dist/react/showPages.d.ts +5 -1
  67. package/dist/react/showPages.d.ts.map +1 -1
  68. package/dist/react/showPages.js +14 -5
  69. package/dist/react/showPages.js.map +1 -1
  70. package/dist/react/useKeepScreenAwake.d.ts +2 -0
  71. package/dist/react/useKeepScreenAwake.d.ts.map +1 -0
  72. package/dist/react/useKeepScreenAwake.js +34 -0
  73. package/dist/react/useKeepScreenAwake.js.map +1 -0
  74. package/dist/react/useLiveAuction.d.ts +104 -0
  75. package/dist/react/useLiveAuction.d.ts.map +1 -0
  76. package/dist/react/useLiveAuction.js +244 -0
  77. package/dist/react/useLiveAuction.js.map +1 -0
  78. package/dist/react/useLiveChat.d.ts +75 -0
  79. package/dist/react/useLiveChat.d.ts.map +1 -0
  80. package/dist/react/useLiveChat.js +131 -0
  81. package/dist/react/useLiveChat.js.map +1 -0
  82. package/dist/react/useLiveGiveawaysAndPolls.d.ts +84 -0
  83. package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +1 -0
  84. package/dist/react/useLiveGiveawaysAndPolls.js +180 -0
  85. package/dist/react/useLiveGiveawaysAndPolls.js.map +1 -0
  86. package/dist/react/useLivePage.d.ts +113 -0
  87. package/dist/react/useLivePage.d.ts.map +1 -0
  88. package/dist/react/useLivePage.js +264 -0
  89. package/dist/react/useLivePage.js.map +1 -0
  90. package/dist/react/useLiveSession.d.ts +8 -0
  91. package/dist/react/useLiveSession.d.ts.map +1 -1
  92. package/dist/react/useLiveSession.js +43 -27
  93. package/dist/react/useLiveSession.js.map +1 -1
  94. package/dist/react/useLiveShop.d.ts +83 -0
  95. package/dist/react/useLiveShop.d.ts.map +1 -0
  96. package/dist/react/useLiveShop.js +165 -0
  97. package/dist/react/useLiveShop.js.map +1 -0
  98. package/dist/react/useReplayPage.d.ts +117 -0
  99. package/dist/react/useReplayPage.d.ts.map +1 -0
  100. package/dist/react/useReplayPage.js +504 -0
  101. package/dist/react/useReplayPage.js.map +1 -0
  102. package/dist/sessionTypes.d.ts +17 -9
  103. package/dist/sessionTypes.d.ts.map +1 -1
  104. package/dist/sessionTypes.js.map +1 -1
  105. package/dist/shopifyIdentity.d.ts +7 -4
  106. package/dist/shopifyIdentity.d.ts.map +1 -1
  107. package/dist/shopifyIdentity.js +11 -5
  108. package/dist/shopifyIdentity.js.map +1 -1
  109. package/dist/showCredit.d.ts +87 -0
  110. package/dist/showCredit.d.ts.map +1 -0
  111. package/dist/showCredit.js +120 -0
  112. package/dist/showCredit.js.map +1 -0
  113. package/dist/showNames.d.ts +24 -3
  114. package/dist/showNames.d.ts.map +1 -1
  115. package/dist/showNames.js +57 -10
  116. package/dist/showNames.js.map +1 -1
  117. package/dist/showPages.d.ts +12 -0
  118. package/dist/showPages.d.ts.map +1 -1
  119. package/dist/showPages.js +10 -0
  120. package/dist/showPages.js.map +1 -1
  121. package/dist/ui/BubbleFrame.d.ts +38 -0
  122. package/dist/ui/BubbleFrame.d.ts.map +1 -0
  123. package/dist/ui/BubbleFrame.js +181 -0
  124. package/dist/ui/BubbleFrame.js.map +1 -0
  125. package/dist/ui/LiveBubble.d.ts +37 -0
  126. package/dist/ui/LiveBubble.d.ts.map +1 -0
  127. package/dist/ui/LiveBubble.js +101 -0
  128. package/dist/ui/LiveBubble.js.map +1 -0
  129. package/dist/ui/ReplayBubble.d.ts +23 -0
  130. package/dist/ui/ReplayBubble.d.ts.map +1 -0
  131. package/dist/ui/ReplayBubble.js +65 -0
  132. package/dist/ui/ReplayBubble.js.map +1 -0
  133. package/dist/ui.d.ts +27 -0
  134. package/dist/ui.d.ts.map +1 -0
  135. package/dist/ui.js +34 -0
  136. package/dist/ui.js.map +1 -0
  137. package/package.json +36 -5
  138. package/ui/package.json +6 -0
package/README.md CHANGED
@@ -4,13 +4,14 @@ Live selling, auctions and giveaways for React Native — the Apptile live-selli
4
4
  singleton, a Zego room engine, an assembled session state machine, and system picture-in-picture with
5
5
  its own config plugin.
6
6
 
7
- **Headless.** It ships one component (`LiveVideoTarget`, because a render target is unavoidably
8
- native). Your header, comments list, bid bar and sheets stay yours.
7
+ **Headless.** The root ships one component (`LiveVideoTarget`, because a render target is unavoidably
8
+ native). Your header, comments list, bid bar and sheets stay yours. Since 0.14.0 the floating bubbles a
9
+ shrunk show plays in come from a separate entry, `/ui` (§3, "The Live and Replay pages").
9
10
 
10
11
  **Storefront-agnostic.** Products, cart writes and the auction checkout come from an adapter you
11
12
  supply. An app on `@tiledev/sdk-shopify` can take that adapter ready-made (§4, "On Shopify"), along
12
- with the cart's giveaway-prize helpers. They are built on the app's own sdk-shopify client, so this
13
- package loads none of sdk-shopify.
13
+ with the cart's giveaway-prize helpers, built on the app's own sdk-shopify client. The Live and Replay
14
+ page models (0.14.0) are the exception: they are built for an app on sdk-shopify and call its hooks.
14
15
 
15
16
  ```bash
16
17
  npm i @tiledev/sdk-apptile-live-selling @tiledev/sdk-apptile-live-selling-native
@@ -71,16 +72,24 @@ mistake here regardless of how the ranges are written.
71
72
 
72
73
  Peers: `react` and `react-native` are needed by the main entry, which re-exports the React layer;
73
74
  `zego-express-engine-reactnative` stays optional — off-device the engine resolves to a no-op, as does
74
- picture-in-picture in the native package. `@tiledev/sdk-shopify` (`>=0.10.0`) is required since 0.9.0:
75
- the Shopify adapter and prize helpers (§4) are built for it, though the app passes its own client in
76
- and nothing of sdk-shopify is loaded from here.
75
+ picture-in-picture in the native package. `@tiledev/sdk-shopify` is required since 0.9.0, and since
76
+ 0.14.0 at `>=0.21.0` and loaded from here: the Live and Replay page models call its hooks
77
+ (`useCustomer`, `useCart`, `useWishlist`, `useQuickAdd`, `useSignIn`) and read `isAuctioned` and
78
+ `CARD_IMAGE`, so they must resolve the app's own copy, the one its `ShopifyProvider` came from. Also
79
+ loaded by the main entry since 0.14.0: `@react-navigation/native` (7), `expo-video` (3),
80
+ `expo-keep-awake` (15), `@react-native-async-storage/async-storage` (2) and
81
+ `@tiledev/sdk-analytics-core`. `@expo/vector-icons`, `react-native-safe-area-context` and
82
+ `@tiledev/react-native-performant-image` are optional: only `/ui` loads them.
77
83
 
78
84
  **Everything ships from the package root**, including the providers, the hooks, `LiveVideoTarget` and
79
85
  the Shopify helpers. There is no `./react` or `./shopify` subpath — a subpath is reachable only through
80
86
  the `exports` map, which a resolver that ignores it (node10, some test runners and bundlers) cannot see
81
87
  at all, and an app testing a local build would need its Metro and Jest redirects changed for one
82
- (decided 2026-10-06, Head of Engineering). What remains beside the root is `./types` (types alone) and
83
- a wildcard for any module in `dist` — `/session`, `/streams`, `/polls` — the escape hatch below.
88
+ (decided 2026-10-06, Head of Engineering). What remains beside the root is `./types` (types alone),
89
+ `./ui` (0.14.0: the bubbles, which need peers the root doesn't), and a wildcard for any module in
90
+ `dist` — `/session`, `/streams`, `/polls` — the escape hatch below. `/ui`, like `/types` and
91
+ `/session`, has a folder of its own in the package with a `package.json`, so a resolver that ignores the
92
+ `exports` map finds it too; an app testing a local build redirects it alongside the root.
84
93
 
85
94
  > The root entry pulls in `react-native`, so it no longer loads in a plain Node runtime. Driving the
86
95
  > pure data layer from Node — `sessionReducer`, the wire mappers — goes through the module subpaths
@@ -321,9 +330,20 @@ the auction's leader and winner, the giveaway's winner and entrants, a replay's
321
330
  themselves. An email keeps its part before the @, an "@handle" stays whole, a real name is unchanged.
322
331
  So does the name it publishes for this viewer.
323
332
 
324
- - `viewerNameFor(customer)` is the name to pass as `viewerName`: first and last name, else the first
325
- name, else the email's handle; null when signed out. `createShopifyLiveIdentity`'s `customerName`
326
- uses it.
333
+ - `viewerNameFor(customer)` is the name to pass as `viewerName`: first and last name, else whichever
334
+ of the two the customer gave; null when their account has no name, and when signed out.
335
+ `createShopifyLiveIdentity`'s `customerName` uses it. **Never the email nor its part before the @**
336
+ (0.13.0; from 0.9.0 it fell back to the part before the @, which a room showed for every shopper
337
+ signed in by emailed code, as that sign-in leaves the name blank). With no name, `session.viewerName`
338
+ is the one typed on this phone, or null: ask the shopper for one before their first comment, and
339
+ save the answer to their account so they are asked once.
340
+ - **The show's team's names are blocked (0.13.0).** `LiveSessionProvider`'s `blockedNames` (default
341
+ `DEFAULT_BLOCKED_VIEWER_NAMES`: Host, Moderator) are names this viewer is never shown under: the
342
+ account's, the identity's or one typed on this phone that matches counts as no name
343
+ (`session.viewerName` null, so the app asks), and `chooseViewerName` refuses one (null). Compared
344
+ whole, with capitals, accents, spaces, punctuation and symbols left out (`isBlockedViewerName`:
345
+ "H.o.s.t" and "Hôst 🎤" are Host; "The Host", "Hostess" and "M0derator" aren't). Check a typed name
346
+ with `isBlockedViewerName(name, sameList)` before saving it, to tell the shopper why.
327
347
  - `firstNameOf(name)` is the first word, for a card with no room for more.
328
348
  - **The name the room is entered under (0.9.2).** The host's screen shows each viewer join under the
329
349
  name their phone entered the room with. While `identity.customerLoading()` is true (a sign-in still
@@ -343,8 +363,10 @@ session's job now; delete the app-side copies when you upgrade.
343
363
  marked `isOwn` by the name it comments under. Muted lines are left out.
344
364
  - **The first comment carries the right name (L6).** `chooseViewerName` gives the name to the engine
345
365
  at once, so the comment that prompted for it goes out under it, not as "Anonymous". A comment a
346
- signed-in shopper sends before their name has loaded is **held** and sent the moment it lands —
347
- `sendComment` resolves then — or after 10 s at the latest. Don't hold it yourself.
366
+ signed-in shopper sends while their account is still loading (`identity.customerLoading()`) is
367
+ **held** and sent the moment it has loaded — `sendComment` resolves then — or after 10 s at the
368
+ latest. Don't hold it yourself. An account that has loaded with no name on it isn't waited for
369
+ (0.13.0: until then a held comment waited the full 10 s and went out as "Anonymous").
348
370
  - **Pinned comment.** `session.pinnedComment` joins the record's `pinned_comment` (arrival), every
349
371
  `PINNED_COMMENT_CHANGED` broadcast (now the typed `pinnedCommentChanged` event, not `unknown`), and
350
372
  a fresh record read on every reconnect. Hidden once the show has ended.
@@ -426,6 +448,78 @@ const rail = useLiveRail({ screenOnShow: useIsFocused() });
426
448
  hidden from this viewer rather than say there are none. On the web, the three run over the idle session
427
449
  and empty wins.
428
450
 
451
+ ### The Live and Replay pages (0.14.0)
452
+
453
+ The Live screen and the Replay screen as page models, moved from amore-v2 so an app built on it keeps
454
+ no copy: the screen and each tile's wiring call the same hook, and spread its fields into the tiles.
455
+ Built for an app on sdk-shopify.
456
+
457
+ ```tsx
458
+ import {
459
+ ShopifyLiveSellingProvider, ShopifyLiveSessionProvider, ReplayPlayerProvider,
460
+ GIVEAWAY_PRIZE_KEY, REHEARSALS, type LiveSellingRoutes,
461
+ } from '@tiledev/sdk-apptile-live-selling';
462
+ import { LiveBubble, ReplayBubble } from '@tiledev/sdk-apptile-live-selling/ui';
463
+
464
+ // Where the pages send the shopper: the app's routes, set once.
465
+ const routes: LiveSellingRoutes = {
466
+ openLive: (streamId) => navigationRef.dispatch(CommonActions.navigate('Live', { streamId }, { pop: true })),
467
+ openReplay: (feedId) => navigationRef.dispatch(CommonActions.navigate('Replay', { feedId }, { pop: true })),
468
+ replaceWithReplay: (feedId, nav) => nav.dispatch(StackActions.replace('Replay', { feedId })),
469
+ backToLiveTab: (nav) => nav.dispatch(StackActions.popTo('Tabs', { screen: 'LiveTab' })),
470
+ openHome: (nav) => nav.navigate('Tabs', { screen: 'Home' }),
471
+ openCart: ({ itemsYouWon }, nav) => nav.navigate('Cart', itemsYouWon ? { screen: 'ItemsYouWon' } : undefined),
472
+ openVariantPage: (params, nav) => nav.navigate('VariantSelector', params),
473
+ openSignIn: (method, nav) => nav.navigate('SignIn', { method }),
474
+ sheets: ['VariantSelector', 'SignIn'],
475
+ };
476
+
477
+ <ShopifyLiveSellingProvider
478
+ config={{ ...LIVE_SELLING, haptics: Haptics, hiddenShows: REHEARSALS }}
479
+ cartSourceName={CART_SOURCE_NAME}
480
+ prizeWriteKey={GIVEAWAY_PRIZE_KEY}
481
+ routes={routes}
482
+ track={analytics.track}
483
+ onWarning={captureWarning}
484
+ shopName={APP_NAME}
485
+ >
486
+ <ShopifyLiveSessionProvider>
487
+ <ReplayPlayerProvider>
488
+ <AppNavigator />
489
+ <ReplayBubble chipColor={scrim} />
490
+ <LiveBubble chipColor={scrim} />
491
+ </ReplayPlayerProvider>
492
+ </ShopifyLiveSessionProvider>
493
+ </ShopifyLiveSellingProvider>
494
+ ```
495
+
496
+ ```tsx
497
+ // The Live screen, and each of its tiles' wiring:
498
+ const page = useLivePage(); // page.player, page.header, page.chat.{comments, commentBox, …}
499
+ const shop = useLiveShop(); // shop.productCard, shop.shopButton, shop.soldChips, shop.cartChips
500
+ const auction = useLiveAuction({ openItemsYouWon: page.header.onCart });
501
+ const giveawaysAndPolls = useLiveGiveawaysAndPolls();
502
+
503
+ // The Replay screen, and each of its tiles' wiring:
504
+ const replay = useReplayPage(); // replay.player, header, controls, nowCard, comments, shopBar, missing
505
+ ```
506
+
507
+ - **Routes stay the app's.** A route taken inside a screen is handed that screen's navigation (to
508
+ replace it, or go back from it); `openLive` and `openReplay` are taken from outside the navigator (a
509
+ bubble, the session's `onPipRestore`). Without `routes`, each says so through `onWarning` and goes
510
+ nowhere. The hooks read the route's params themselves: `streamId` on Live, `feedId` or `streamId` on
511
+ Replay.
512
+ - **`track`** gets `liveJoin` (once per show per app run, never for a show `hiddenShows` names) and a
513
+ show's copy of each add (`streamAddToCart`, `replayAddToCart`); **`onWarning`** a read a page carried
514
+ on without; **`shopName`** goes in the bidding rules.
515
+ - **The variant page** gets `VariantPageParams` (a handle, a show's credit, `beingAuctioned`). It
516
+ reports a landed add with `reportShowAdd(credit, track, product, variant)`; product grids elsewhere
517
+ get sdk-shopify's quick-add options from `showQuickAddOptions(openVariantPage)`.
518
+ - **The tiles' types** (`LiveFeaturedProduct`, `LiveAuctionLot`, `ReplayNowProduct`…) are this
519
+ package's, so a tile imports them from here.
520
+ - **On the web** the hooks and bubbles run over the idle session: the Live screen's tiles draw nothing,
521
+ the Replay screen plays.
522
+
429
523
  ### Store links in comments, as cards (0.12.0)
430
524
 
431
525
  A host pastes a product or collection link into the chat; the comment can show it as a card with the
@@ -592,8 +686,10 @@ It returns:
592
686
 
593
687
  - `identity`: `bidderId`, the customer's bare numeric id, and `customerRef`, their GID, both only for a
594
688
  Shopify sign-in (the winner's record is on the Customer Account API, so an email-and-password
595
- session can't bid); `customerName`, first and last name; `customerEmail`; `customerLoading`, true
596
- while sdk-shopify is still reading the stored sign-in on app open (`restoring`, 0.9.2).
689
+ session can't bid); `customerName`, first and last name, null with none (`viewerNameFor`);
690
+ `customerEmail`; `customerLoading`, true while sdk-shopify is still reading the stored sign-in on
691
+ app open (`restoring`, 0.9.2) and, since 0.13.0, while a shopper who has just signed in has no
692
+ profile yet (`loggedIn` without a `customer`).
597
693
  - `customerAccountRequest`: the customer's own `request`.
598
694
  - `buyer`: their access token and email, for `createShopifyLiveCommerce`; null when signed out.
599
695
 
@@ -795,6 +891,7 @@ lives in the native package.)
795
891
  |---|---|
796
892
  | `engine.native.ts` — hands the real Zego module, `Platform.OS`, picture-in-picture and the token call to `ZegoLiveEngine` (`zegoEngine.ts`), which owns the room, plays into a rebindable view, publishes a guest's camera, and translates every Zego channel into a `LiveEvent` | `engine.ts` — no-op, `isNoop: true` |
797
893
  | `react/index.ts` — the real providers, hooks and video target | `react/index.web.ts` — real client and read hooks, idle session, `View` in place of the texture view |
894
+ | `react/platformSession.ts` (0.14.0) — the session, its show, the video target, the bid gate and the wins, for the page hooks and the bubbles | `react/platformSession.web.ts` — the idle stand-ins `index.web.ts` re-exports |
798
895
 
799
896
  The web file is not only about behaviour. `LiveVideoTarget` requires `zego-express-engine-reactnative`
800
897
  for its texture view, and a bundler collects that `require` whichever branch would run it — so a web
@@ -960,7 +1057,7 @@ two copies of the same Expo module, and identical pod and module names collide a
960
1057
  | `npm run lint` | Typechecks, emitting nothing |
961
1058
  | `npm run clean` | Removes `dist` |
962
1059
  | `npm test` | Compiles `src` + `test` to `.test-dist` and runs `node --test` — the reducer, the engine (against a stand-in Zego), the transport and the mappers |
963
- | `npm pack` | The publish tarball — `dist`, `types`, `session` and nothing native |
1060
+ | `npm pack` | The publish tarball — `dist`, `types`, `session`, `ui` and nothing native |
964
1061
 
965
1062
  The reducer is exported on its own (`sessionReducer`, `deriveStatus`, `roundClosesAt`, `nextExpiryAt`) and is pure, so it
966
1063
  can be driven with no room, socket or React — from Node, import it as
@@ -987,8 +1084,8 @@ can be driven with no room, socket or React — from Node, import it as
987
1084
 
988
1085
  ## Not included
989
1086
 
990
- UI · a storefront · navigation · a static clip fallback (`clips.list()` reads only the configured
991
- collection).
1087
+ UI beyond the bubbles (`/ui`) · a storefront · navigation (the pages take the app's `routes`) · a static
1088
+ clip fallback (`clips.list()` reads only the configured collection).
992
1089
 
993
1090
  ## Verified against
994
1091
 
@@ -12,6 +12,16 @@ import type { ShopifyMoney } from './shopifyCommerce';
12
12
  * 2026-09-07, Amore 2026-10-05), and `_giveawayItem`, which Freckled Poppy's auction cart writes.
13
13
  */
14
14
  export declare const GIVEAWAY_PRIZE_KEYS: readonly string[];
15
+ /**
16
+ * The key to stamp a prize with (0.14.0, moved from amore-v2's `src/core/providers/liveSelling.tsx`):
17
+ * `_isGiveawayItem`, the platform's. The live-selling service stamps it on the prize it adds to a
18
+ * winner's cart, the order webhook settles giveaway claims by it, and an app's wins checkout writes it
19
+ * (`ShopifyLiveSellingProvider`'s and `createShopifyLiveCommerce`'s `prizeWriteKey`). It only marks
20
+ * the line as a prize (a card of its own, no stepper or bin); the prize's `GIVEAWAY-…` discount code is
21
+ * what makes it free. Amore's since 2026-10-05; K-Marie's since 2026-10-19, which wrote `_giveawayItem`
22
+ * before (`GIVEAWAY_PRIZE_KEYS` still reads both).
23
+ */
24
+ export declare const GIVEAWAY_PRIZE_KEY = "_isGiveawayItem";
15
25
  export interface GiveawayPrizeLineOptions {
16
26
  /** The keys that mark a prize on this store. Defaults to `GIVEAWAY_PRIZE_KEYS`, both spellings. */
17
27
  keys?: readonly string[];
@@ -1 +1 @@
1
- {"version":3,"file":"giveawayPrizeLines.d.ts","sourceRoot":"","sources":["../src/giveawayPrizeLines.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAE3F,MAAM,WAAW,wBAAwB;IACvC,mGAAmG;IACnG,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE;IAAE,UAAU,CAAC,EAAE,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,GAAG,IAAI,CAAA;CAAE,EAC/E,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAGT;AAED,mCAAmC;AACnC,MAAM,WAAW,c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hD,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEvE;AAED,2GAA2G;AAC3G,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,GAAG,IAAI,CAAC;IACtE,IAAI,EAAE;QAAE,WAAW,EAAE,YAAY,CAAA;KAAE,CAAC;IACpC,WAAW,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IACrC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,SAAS;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,EAAE,GAAG,IAAI,CAAC;CAC7E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,SAAS,wBAAwB,EAAE,EAC1C,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAYT;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EAAE,GAChE,WAAW,CAAC,MAAM,CAAC,CAErB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GIVEAWAY_CODE_PREFIX = exports.GIVEAWAY_PRIZE_KEYS = void 0;
3
+ exports.GIVEAWAY_CODE_PREFIX = exports.GIVEAWAY_PRIZE_KEY = exports.GIVEAWAY_PRIZE_KEYS = void 0;
4
4
  exports.isGiveawayPrizeLine = isGiveawayPrizeLine;
5
5
  exports.prizeLinePrice = prizeLinePrice;
6
6
  exports.isGiveawayCode = isGiveawayCode;
@@ -12,6 +12,16 @@ exports.giveawayVariantIdsOf = giveawayVariantIdsOf;
12
12
  * 2026-09-07, Amore 2026-10-05), and `_giveawayItem`, which Freckled Poppy's auction cart writes.
13
13
  */
14
14
  exports.GIVEAWAY_PRIZE_KEYS = ['_isGiveawayItem', '_giveawayItem'];
15
+ /**
16
+ * The key to stamp a prize with (0.14.0, moved from amore-v2's `src/core/providers/liveSelling.tsx`):
17
+ * `_isGiveawayItem`, the platform's. The live-selling service stamps it on the prize it adds to a
18
+ * winner's cart, the order webhook settles giveaway claims by it, and an app's wins checkout writes it
19
+ * (`ShopifyLiveSellingProvider`'s and `createShopifyLiveCommerce`'s `prizeWriteKey`). It only marks
20
+ * the line as a prize (a card of its own, no stepper or bin); the prize's `GIVEAWAY-…` discount code is
21
+ * what makes it free. Amore's since 2026-10-05; K-Marie's since 2026-10-19, which wrote `_giveawayItem`
22
+ * before (`GIVEAWAY_PRIZE_KEYS` still reads both).
23
+ */
24
+ exports.GIVEAWAY_PRIZE_KEY = '_isGiveawayItem';
15
25
  /**
16
26
  * Whether a cart line is stamped as a giveaway prize: any of `keys`, with any value but `"false"` (the
17
27
  * service's value isn't documented, and a stamped line is a prize).
@@ -1 +1 @@
1
- {"version":3,"file":"giveawayPrizeLines.js","sourceRoot":"","sources":["../src/giveawayPrizeLines.ts"],"names":[],"mappings":";;;AA4BA,kDAMC;AAkBD,wCAYC;AAUD,wCAEC;AA2BD,oEAeC;AAOD,oDAIC;AAxHD;;;;GAIG;AACU,QAAA,mBAAmB,GAAsB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;AAO3F;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,IAA+E,EAC/E,UAAoC,EAAE;;IAEtC,MAAM,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,2BAAmB,CAAC;IACjD,OAAO,CAAC,MAAA,IAAI,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC,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AC,QAAQ,EAAE,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACnD,MAAM,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IAC9D,OAAO,uBAAuB,IAAI,IAAI,CAAC;AACzC,CAAC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAClC,IAAiE;IAEjE,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;AACpF,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Comments held back until the shopper's name is known (L6).
3
3
  *
4
- * A signed-in shopper is never asked for a name — the session uses the customer's own — but the
5
- * customer record loads after the screen does. A comment sent in that gap went out under the engine's
4
+ * A signed-in shopper's name is their account's, but the account loads after the screen does. A comment sent in that gap went out under the engine's
6
5
  * fallback, "Anonymous", into the room and into the stored history, where it cannot be taken back.
7
6
  * The session now holds such a comment here and sends it the moment the name lands.
8
7
  *
@@ -11,6 +10,18 @@
11
10
  * comment has been sent (or dropped with the show).
12
11
  */
13
12
  export declare const HELD_COMMENT_MAX_WAIT_MS = 10000;
13
+ /**
14
+ * Whether a comment sent now waits for the shopper's name: their account is still being read
15
+ * (`identity.customerLoading`) and nothing from it has named them yet (`nameFromAccount`: the
16
+ * provider's `viewerName`, else the identity's `customerName`).
17
+ *
18
+ * Only while it loads (0.13.0). An account that has been read with no name on it isn't waited for, as
19
+ * no name is coming: the session's name is then the one typed on this phone, or null, and the app asks
20
+ * for one before the comment goes. Until 0.13.0 the rule was "a bidder with no name", which, with no
21
+ * email to fall back on, held such a shopper's every comment for 10 s and then sent it as "Anonymous";
22
+ * and it never held a comment while the account loaded, as there is no bidder until it has.
23
+ */
24
+ export declare function waitsForAccountName(accountLoading: boolean, nameFromAccount: string | null): boolean;
14
25
  export declare class HeldComments<T> {
15
26
  private readonly send;
16
27
  private readonly maxWaitMs;
@@ -1 +1 @@
1
- {"version":3,"file":"heldComments.d.ts","sourceRoot":"","sources":["../src/heldComments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C,qBAAa,YAAY,CAAC,CAAC;IAKvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAL5B,OAAO,CAAC,IAAI,CAA8C;IAC1D,OAAO,CAAC,KAAK,CAA8C;gBAGxC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,SAAS,GAAE,MAAiC;IAG/D,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,mFAAmF;IACnF,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5B,uGAAuG;IACjG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAY9B,gFAAgF;IAChF,IAAI,IAAI,IAAI;IAKZ,OAAO,CAAC,UAAU;CAInB"}
1
+ {"version":3,"file":"heldComments.d.ts","sourceRoot":"","sources":["../src/heldComments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,QAAS,CAAC;AAE/C;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAEpG;AAED,qBAAa,YAAY,CAAC,CAAC;IAKvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAL5B,OAAO,CAAC,IAAI,CAA8C;IAC1D,OAAO,CAAC,KAAK,CAA8C;gBAGxC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EAChC,SAAS,GAAE,MAAiC;IAG/D,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,mFAAmF;IACnF,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5B,uGAAuG;IACjG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAY9B,gFAAgF;IAChF,IAAI,IAAI,IAAI;IAKZ,OAAO,CAAC,UAAU;CAInB"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HeldComments = exports.HELD_COMMENT_MAX_WAIT_MS = void 0;
4
+ exports.waitsForAccountName = waitsForAccountName;
4
5
  /**
5
6
  * Comments held back until the shopper's name is known (L6).
6
7
  *
7
- * A signed-in shopper is never asked for a name — the session uses the customer's own — but the
8
- * customer record loads after the screen does. A comment sent in that gap went out under the engine's
8
+ * A signed-in shopper's name is their account's, but the account loads after the screen does. A comment sent in that gap went out under the engine's
9
9
  * fallback, "Anonymous", into the room and into the stored history, where it cannot be taken back.
10
10
  * The session now holds such a comment here and sends it the moment the name lands.
11
11
  *
@@ -14,6 +14,20 @@ exports.HeldComments = exports.HELD_COMMENT_MAX_WAIT_MS = void 0;
14
14
  * comment has been sent (or dropped with the show).
15
15
  */
16
16
  exports.HELD_COMMENT_MAX_WAIT_MS = 10000;
17
+ /**
18
+ * Whether a comment sent now waits for the shopper's name: their account is still being read
19
+ * (`identity.customerLoading`) and nothing from it has named them yet (`nameFromAccount`: the
20
+ * provider's `viewerName`, else the identity's `customerName`).
21
+ *
22
+ * Only while it loads (0.13.0). An account that has been read with no name on it isn't waited for, as
23
+ * no name is coming: the session's name is then the one typed on this phone, or null, and the app asks
24
+ * for one before the comment goes. Until 0.13.0 the rule was "a bidder with no name", which, with no
25
+ * email to fall back on, held such a shopper's every comment for 10 s and then sent it as "Anonymous";
26
+ * and it never held a comment while the account loaded, as there is no bidder until it has.
27
+ */
28
+ function waitsForAccountName(accountLoading, nameFromAccount) {
29
+ return accountLoading && !nameFromAccount;
30
+ }
17
31
  class HeldComments {
18
32
  constructor(send, maxWaitMs = exports.HELD_COMMENT_MAX_WAIT_MS) {
19
33
  this.send = send;
@@ -1 +1 @@
1
- {"version":3,"file":"heldComments.js","sourceRoot":"","sources":["../src/heldComments.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACU,QAAA,wBAAwB,GAAG,KAAM,CAAC;AAE/C,MAAa,YAAY;IAIvB,YACmB,IAAgC,EAChC,YAAoB,gCAAwB;QAD5C,SAAI,GAAJ,IAAI,CAA4B;QAChC,cAAS,GAAT,SAAS,CAAmC;QALvD,SAAI,GAA2C,EAAE,CAAC;QAClD,UAAK,GAAyC,IAAI,CAAC;IAKxD,CAAC;IAEJ,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,mFAAmF;IACnF,IAAI,CAAC,IAAO;QACV,OAAO,IAAI,OAAO,CAAO,CAAC,MAAM,EAAE,EAAE;YAClC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,uGAAuG;IACvG,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAClC,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,I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,MAAM,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,KAAK;gBAAE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,uGAAuG;IACvG,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAClC,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC;YACrC,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;oBAAS,CAAC;gBACT,MAAM,EAAE,CAAC;YACX,CAAC;QACH,CAAC;IACH,CAAC;IAED,gFAAgF;IAChF,IAAI;QACF,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAAE,MAAM,EAAE,CAAC;IACzD,CAAC;IAEO,UAAU;QAChB,IAAI,IAAI,CAAC,KAAK;YAAE,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;CACF;AA5CD,oCA4CC"}
@@ -14,6 +14,16 @@
14
14
  * the viewer from `LiveSellingProvider`'s `viewerEmail` and the rule from the config.
15
15
  */
16
16
  import type { HiddenShows } from './types';
17
+ /**
18
+ * Rehearsals: the Apptile team's practice shows, for `config.hiddenShows` (0.14.0, moved from amore-v2's
19
+ * `REHEARSALS`, old Amore's rule from the live-selling kit's `internalLive.ts`). The team practises on
20
+ * the store's real gateway under the word `apptiletest`; a show whose title contains it, in any case
21
+ * ("ApptileTest run 2" too), is hidden from everyone but a shopper signed in with an `@apptile.io`
22
+ * email: not on Home, not on the Live tab, not as a recording, and their phone never joins its room.
23
+ * `useLivePage` never reports `liveJoin` for a show the rule names, whoever watches it. Not a default:
24
+ * an app passes it as `hiddenShows`.
25
+ */
26
+ export declare const REHEARSALS: HiddenShows;
17
27
  /** Whether a viewer signed in with this email sees hidden shows. No email (signed out): never. */
18
28
  export declare function seesHiddenShows(viewerEmail: string | null | undefined, rule: HiddenShows | null | undefined): boolean;
19
29
  /** Whether the rule hides this show by its title, from viewers who don't see hidden shows. */
@@ -1 +1 @@
1
- {"version":3,"file":"hiddenShows.d.ts","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOrH;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOtH;AAED,8GAA8G;AAC9G,wBAAgB,YAAY,CAC1B,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC1C,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAC/D,KAAK,EAAE,IAAI,EAAE,EACb,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,EAAE,CAIR"}
1
+ {"version":3,"file":"hiddenShows.d.ts","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,WAAuF,CAAC;AAEjH,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOrH;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOtH;AAED,8GAA8G;AAC9G,wBAAgB,YAAY,CAC1B,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAC1C,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,SAAS;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAC/D,KAAK,EAAE,IAAI,EAAE,EACb,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,EAAE,CAIR"}
@@ -1,9 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REHEARSALS = void 0;
3
4
  exports.seesHiddenShows = seesHiddenShows;
4
5
  exports.isHiddenShow = isHiddenShow;
5
6
  exports.isHiddenFrom = isHiddenFrom;
6
7
  exports.withoutHiddenShows = withoutHiddenShows;
8
+ /**
9
+ * Rehearsals: the Apptile team's practice shows, for `config.hiddenShows` (0.14.0, moved from amore-v2's
10
+ * `REHEARSALS`, old Amore's rule from the live-selling kit's `internalLive.ts`). The team practises on
11
+ * the store's real gateway under the word `apptiletest`; a show whose title contains it, in any case
12
+ * ("ApptileTest run 2" too), is hidden from everyone but a shopper signed in with an `@apptile.io`
13
+ * email: not on Home, not on the Live tab, not as a recording, and their phone never joins its room.
14
+ * `useLivePage` never reports `liveJoin` for a show the rule names, whoever watches it. Not a default:
15
+ * an app passes it as `hiddenShows`.
16
+ */
17
+ exports.REHEARSALS = { titleIncludes: ['apptiletest'], visibleToEmailDomains: ['apptile.io'] };
7
18
  /** Whether a viewer signed in with this email sees hidden shows. No email (signed out): never. */
8
19
  function seesHiddenShows(viewerEmail, rule) {
9
20
  const email = (viewerEmail !== null && viewerEmail !== void 0 ? viewerEmail : '').trim().toLowerCase();
@@ -1 +1 @@
1
- {"version":3,"file":"hiddenShows.js","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":";;AAkBA,0CAOC;AAGD,oCAOC;AAGD,oCAMC;AAMD,gDAQC;AAzCD,kGAAkG;AAClG,SAAgB,eAAe,CAAC,WAAsC,EAAE,IAAoC;IAC1G,MAAM,KAAK,GAAG,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACvD,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC;IAClC,OAAO,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QAChD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,I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O,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,8GAA8G;AAC9G,SAAgB,YAAY,CAC1B,IAA0C,EAC1C,WAAsC,EACtC,IAAoC;IAEpC,OAAO,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC;AAED;;;GAGG;AACH,SAAgB,kBAAkB,CAChC,KAAa,EACb,WAAsC,EACtC,IAAoC;IAEpC,IAAI,CAAC,IAAI,IAAI,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9D,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IAClE,OAAO,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;AAC3D,CAAC"}
package/dist/index.d.ts CHANGED
@@ -37,16 +37,21 @@ export { toSilentAuctionLot, lotsFromResponse, lotProductGid, lotKey, lotPhase,
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, type ShopifyAttribute, type ShopifyBuyer, type ShopifyCartLineInput, type ShopifyCollectionForCard, type ShopifyImageTransform, type ShopifyLiveCommerce, type ShopifyLiveCommerceOptions, type ShopifyMoney, type ShopifyProductForLive, type ShopifyProductsAndCart, } from './shopifyCommerce';
39
39
  export { createShopifyLiveIdentity, type ShopifyCustomerSession, type ShopifyLiveIdentity, } from './shopifyIdentity';
40
- export { GIVEAWAY_CODE_PREFIX, GIVEAWAY_PRIZE_KEYS, isGiveawayCode, isGiveawayPrizeLine, prizeLinePrice, prizesCoveredByGiveawayCodes, type CartLineForGiveawayCodes, type GiveawayPrizeLineOptions, type PrizeLinePrice, } from './giveawayPrizeLines';
40
+ export { GIVEAWAY_CODE_PREFIX, GIVEAWAY_PRIZE_KEY, GIVEAWAY_PRIZE_KEYS, isGiveawayCode, isGiveawayPrizeLine, prizeLinePrice, prizesCoveredByGiveawayCodes, type CartLineForGiveawayCodes, type GiveawayPrizeLineOptions, type PrizeLinePrice, } from './giveawayPrizeLines';
41
41
  export { giveawayPrizeExtension, type GiveawayPrizeExtension, type GiveawayPrizeExtensionOptions, type CartLineForPrizes, } from './cartExtension';
42
- export { isHiddenFrom, isHiddenShow, seesHiddenShows, withoutHiddenShows } from './hiddenShows';
43
- export { publicName, firstNameOf, viewerNameFor, sameRoomName, type NamedCustomer } from './showNames';
42
+ export { isHiddenFrom, isHiddenShow, seesHiddenShows, withoutHiddenShows, REHEARSALS } from './hiddenShows';
43
+ export { publicName, firstNameOf, viewerNameFor, sameRoomName, isBlockedViewerName, DEFAULT_BLOCKED_VIEWER_NAMES, type NamedCustomer, } from './showNames';
44
44
  export { liveShowFor, canPlayInCard, type LiveShow, type LiveShowStatus, type SessionForCard, type SessionForShow, } from './liveShow';
45
45
  export { featuredFirst, withLotFieldsFromRecord } from './showLots';
46
46
  export { showLinkDestination } from './showLinks';
47
47
  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
48
  export { classifyComment, type CommentLine } from './auctionComments';
49
49
  export { isTheVariant, givenAwayVariant } from './giveawayPrize';
50
+ export { variantPageParams, auctionLotPageParams, liveShowCredit, replayShowCredit, reportShowAdd, showQuickAddOptions, type ShowCredit, type ShowQuickAdd, type VariantPageParams, } from './showCredit';
51
+ export { announceAddToLiveRoom, type LiveRoomAnnouncement } from './liveRoom';
52
+ export { BACK_ACTIONS, REPLAY_COMMENTS_SHOWN, chatNameAsk, firstShownAt, isCoveredOnlyBySheet, isTheShow, playerMs, productOnScreen, replayCommentsAt, type ChatNameInput, type StackStateForSheets, } from './livePages';
53
+ export { NO_ROUTES, consoleWarning, pageOptionsReading, reportLiveWarning, type LivePageOptions, type LivePageOptionsInput, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ScreenNavigation, type SignInPageMethod, } from './pageOptions';
54
+ export type * from './pageTypes';
50
55
  export { sessionReducer, initialSessionState, deriveStatus, roundClosesAt, nextExpiryAt, isNothingOnAir, withOffAirSettled, isTheEndedGiveaway, SOLD_CARD_MS, REACTION_MS, CART_CARD_MS, } from './session';
51
56
  export { capabilitiesFor, LIVE_CAPABILITIES, AUCTION_CAPABILITIES, REPLAY_CAPABILITIES, IDLE_AUCTION, IDLE_GIVEAWAY, } from './sessionTypes';
52
57
  /**
@@ -75,5 +80,5 @@ export type * from './sessionTypes';
75
80
  */
76
81
  export { createOngoingLiveStore, ONGOING_LIVE_POLL_IDLE_MS, ONGOING_LIVE_POLL_LIVE_MS, type OngoingLivePolling, type OngoingLiveSnapshot, type OngoingLiveStore, } from './ongoingLive';
77
82
  export * from './react/index';
78
- export { readsOnPastHidden, showListStatus, winsTotal, type ShowListStatus, type ShowListInput } from './showPages';
83
+ export { readsOnPastHidden, readsRecordingsAgainOnView, showListStatus, winsTotal, type ShowListStatus, type ShowListInput } from './showPages';
79
84
  //# sourceMappingURL=index.d.ts.map
@@ -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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K,mBAAmB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AAEvB,mBAAmB,aAAa,CAAC;AAGjC,OAAO,EACL,cAAc,EACd,mBAAmB,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;AAC9B,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -31,8 +31,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
33
  exports.resolveCommentLinkCard = exports.displayHost = exports.toUrlPreview = exports.classifyCommentLink = exports.hasCommentLink = exports.toCommentSegments = exports.replayAttributionSourceFor = exports.liveAttributionSourceFor = exports.addLiveLine = exports.replayCartAttributesFor = exports.liveCartAttributesFor = 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.sameRoomName = exports.viewerNameFor = exports.firstNameOf = exports.publicName = exports.withoutHiddenShows = exports.seesHiddenShows = exports.isHiddenShow = exports.isHiddenFrom = exports.giveawayPrizeExtension = exports.prizesCoveredByGiveawayCodes = exports.prizeLinePrice = exports.isGiveawayPrizeLine = exports.isGiveawayCode = exports.GIVEAWAY_PRIZE_KEYS = exports.GIVEAWAY_CODE_PREFIX = exports.createShopifyLiveIdentity = 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.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 = void 0;
35
- exports.winsTotal = exports.showListStatus = exports.readsOnPastHidden = exports.ONGOING_LIVE_POLL_LIVE_MS = exports.ONGOING_LIVE_POLL_IDLE_MS = exports.createOngoingLiveStore = exports.COMMENT_SOURCES = exports.isLivePipSupported = exports.livePip = 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.givenAwayVariant = exports.isTheVariant = 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.withLotFieldsFromRecord = exports.featuredFirst = exports.canPlayInCard = exports.liveShowFor = void 0;
34
+ exports.firstNameOf = exports.publicName = exports.REHEARSALS = exports.withoutHiddenShows = exports.seesHiddenShows = 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.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.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 = void 0;
35
+ exports.isTheEndedGiveaway = exports.withOffAirSettled = exports.isNothingOnAir = exports.nextExpiryAt = exports.roundClosesAt = exports.deriveStatus = exports.initialSessionState = exports.sessionReducer = exports.reportLiveWarning = exports.pageOptionsReading = exports.consoleWarning = exports.NO_ROUTES = exports.replayCommentsAt = exports.productOnScreen = exports.playerMs = exports.isTheShow = exports.isCoveredOnlyBySheet = exports.firstShownAt = exports.chatNameAsk = exports.REPLAY_COMMENTS_SHOWN = exports.BACK_ACTIONS = exports.announceAddToLiveRoom = exports.showQuickAddOptions = exports.reportShowAdd = exports.replayShowCredit = exports.liveShowCredit = exports.auctionLotPageParams = exports.variantPageParams = exports.givenAwayVariant = exports.isTheVariant = 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.withLotFieldsFromRecord = exports.featuredFirst = exports.canPlayInCard = exports.liveShowFor = exports.DEFAULT_BLOCKED_VIEWER_NAMES = exports.isBlockedViewerName = exports.sameRoomName = exports.viewerNameFor = void 0;
36
+ exports.winsTotal = exports.showListStatus = exports.readsRecordingsAgainOnView = exports.readsOnPastHidden = exports.ONGOING_LIVE_POLL_LIVE_MS = exports.ONGOING_LIVE_POLL_IDLE_MS = exports.createOngoingLiveStore = exports.COMMENT_SOURCES = exports.isLivePipSupported = exports.livePip = 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 = void 0;
36
37
  // The imperative client (default + named).
37
38
  var liveSelling_1 = require("./liveSelling");
38
39
  Object.defineProperty(exports, "liveSelling", { enumerable: true, get: function () { return liveSelling_1.liveSelling; } });
@@ -155,6 +156,7 @@ var shopifyIdentity_1 = require("./shopifyIdentity");
155
156
  Object.defineProperty(exports, "createShopifyLiveIdentity", { enumerable: true, get: function () { return shopifyIdentity_1.createShopifyLiveIdentity; } });
156
157
  var giveawayPrizeLines_1 = require("./giveawayPrizeLines");
157
158
  Object.defineProperty(exports, "GIVEAWAY_CODE_PREFIX", { enumerable: true, get: function () { return giveawayPrizeLines_1.GIVEAWAY_CODE_PREFIX; } });
159
+ Object.defineProperty(exports, "GIVEAWAY_PRIZE_KEY", { enumerable: true, get: function () { return giveawayPrizeLines_1.GIVEAWAY_PRIZE_KEY; } });
158
160
  Object.defineProperty(exports, "GIVEAWAY_PRIZE_KEYS", { enumerable: true, get: function () { return giveawayPrizeLines_1.GIVEAWAY_PRIZE_KEYS; } });
159
161
  Object.defineProperty(exports, "isGiveawayCode", { enumerable: true, get: function () { return giveawayPrizeLines_1.isGiveawayCode; } });
160
162
  Object.defineProperty(exports, "isGiveawayPrizeLine", { enumerable: true, get: function () { return giveawayPrizeLines_1.isGiveawayPrizeLine; } });
@@ -171,11 +173,14 @@ Object.defineProperty(exports, "isHiddenFrom", { enumerable: true, get: function
171
173
  Object.defineProperty(exports, "isHiddenShow", { enumerable: true, get: function () { return hiddenShows_1.isHiddenShow; } });
172
174
  Object.defineProperty(exports, "seesHiddenShows", { enumerable: true, get: function () { return hiddenShows_1.seesHiddenShows; } });
173
175
  Object.defineProperty(exports, "withoutHiddenShows", { enumerable: true, get: function () { return hiddenShows_1.withoutHiddenShows; } });
176
+ Object.defineProperty(exports, "REHEARSALS", { enumerable: true, get: function () { return hiddenShows_1.REHEARSALS; } });
174
177
  var showNames_1 = require("./showNames");
175
178
  Object.defineProperty(exports, "publicName", { enumerable: true, get: function () { return showNames_1.publicName; } });
176
179
  Object.defineProperty(exports, "firstNameOf", { enumerable: true, get: function () { return showNames_1.firstNameOf; } });
177
180
  Object.defineProperty(exports, "viewerNameFor", { enumerable: true, get: function () { return showNames_1.viewerNameFor; } });
178
181
  Object.defineProperty(exports, "sameRoomName", { enumerable: true, get: function () { return showNames_1.sameRoomName; } });
182
+ Object.defineProperty(exports, "isBlockedViewerName", { enumerable: true, get: function () { return showNames_1.isBlockedViewerName; } });
183
+ Object.defineProperty(exports, "DEFAULT_BLOCKED_VIEWER_NAMES", { enumerable: true, get: function () { return showNames_1.DEFAULT_BLOCKED_VIEWER_NAMES; } });
179
184
  var liveShow_1 = require("./liveShow");
180
185
  Object.defineProperty(exports, "liveShowFor", { enumerable: true, get: function () { return liveShow_1.liveShowFor; } });
181
186
  Object.defineProperty(exports, "canPlayInCard", { enumerable: true, get: function () { return liveShow_1.canPlayInCard; } });
@@ -202,6 +207,33 @@ Object.defineProperty(exports, "classifyComment", { enumerable: true, get: funct
202
207
  var giveawayPrize_1 = require("./giveawayPrize");
203
208
  Object.defineProperty(exports, "isTheVariant", { enumerable: true, get: function () { return giveawayPrize_1.isTheVariant; } });
204
209
  Object.defineProperty(exports, "givenAwayVariant", { enumerable: true, get: function () { return giveawayPrize_1.givenAwayVariant; } });
210
+ // The Live and Replay pages' rules and what credits an add to a show (0.14.0, moved from amore-v2).
211
+ // Pure, so an app's own tests can load them from `dist` (`showCredit`, `livePages`, `pageOptions`,
212
+ // `liveRoom`) without the native engine. The page hooks are on the React layer below.
213
+ var showCredit_1 = require("./showCredit");
214
+ Object.defineProperty(exports, "variantPageParams", { enumerable: true, get: function () { return showCredit_1.variantPageParams; } });
215
+ Object.defineProperty(exports, "auctionLotPageParams", { enumerable: true, get: function () { return showCredit_1.auctionLotPageParams; } });
216
+ Object.defineProperty(exports, "liveShowCredit", { enumerable: true, get: function () { return showCredit_1.liveShowCredit; } });
217
+ Object.defineProperty(exports, "replayShowCredit", { enumerable: true, get: function () { return showCredit_1.replayShowCredit; } });
218
+ Object.defineProperty(exports, "reportShowAdd", { enumerable: true, get: function () { return showCredit_1.reportShowAdd; } });
219
+ Object.defineProperty(exports, "showQuickAddOptions", { enumerable: true, get: function () { return showCredit_1.showQuickAddOptions; } });
220
+ var liveRoom_1 = require("./liveRoom");
221
+ Object.defineProperty(exports, "announceAddToLiveRoom", { enumerable: true, get: function () { return liveRoom_1.announceAddToLiveRoom; } });
222
+ var livePages_1 = require("./livePages");
223
+ Object.defineProperty(exports, "BACK_ACTIONS", { enumerable: true, get: function () { return livePages_1.BACK_ACTIONS; } });
224
+ Object.defineProperty(exports, "REPLAY_COMMENTS_SHOWN", { enumerable: true, get: function () { return livePages_1.REPLAY_COMMENTS_SHOWN; } });
225
+ Object.defineProperty(exports, "chatNameAsk", { enumerable: true, get: function () { return livePages_1.chatNameAsk; } });
226
+ Object.defineProperty(exports, "firstShownAt", { enumerable: true, get: function () { return livePages_1.firstShownAt; } });
227
+ Object.defineProperty(exports, "isCoveredOnlyBySheet", { enumerable: true, get: function () { return livePages_1.isCoveredOnlyBySheet; } });
228
+ Object.defineProperty(exports, "isTheShow", { enumerable: true, get: function () { return livePages_1.isTheShow; } });
229
+ Object.defineProperty(exports, "playerMs", { enumerable: true, get: function () { return livePages_1.playerMs; } });
230
+ Object.defineProperty(exports, "productOnScreen", { enumerable: true, get: function () { return livePages_1.productOnScreen; } });
231
+ Object.defineProperty(exports, "replayCommentsAt", { enumerable: true, get: function () { return livePages_1.replayCommentsAt; } });
232
+ var pageOptions_1 = require("./pageOptions");
233
+ Object.defineProperty(exports, "NO_ROUTES", { enumerable: true, get: function () { return pageOptions_1.NO_ROUTES; } });
234
+ Object.defineProperty(exports, "consoleWarning", { enumerable: true, get: function () { return pageOptions_1.consoleWarning; } });
235
+ Object.defineProperty(exports, "pageOptionsReading", { enumerable: true, get: function () { return pageOptions_1.pageOptionsReading; } });
236
+ Object.defineProperty(exports, "reportLiveWarning", { enumerable: true, get: function () { return pageOptions_1.reportLiveWarning; } });
205
237
  // The session state machine — pure, and usable without React for tests or a custom host.
206
238
  var session_1 = require("./session");
207
239
  Object.defineProperty(exports, "sessionReducer", { enumerable: true, get: function () { return session_1.sessionReducer; } });
@@ -256,6 +288,7 @@ Object.defineProperty(exports, "ONGOING_LIVE_POLL_LIVE_MS", { enumerable: true,
256
288
  __exportStar(require("./react/index"), exports);
257
289
  var showPages_1 = require("./showPages");
258
290
  Object.defineProperty(exports, "readsOnPastHidden", { enumerable: true, get: function () { return showPages_1.readsOnPastHidden; } });
291
+ Object.defineProperty(exports, "readsRecordingsAgainOnView", { enumerable: true, get: function () { return showPages_1.readsRecordingsAgainOnView; } });
259
292
  Object.defineProperty(exports, "showListStatus", { enumerable: true, get: function () { return showPages_1.showListStatus; } });
260
293
  Object.defineProperty(exports, "winsTotal", { enumerable: true, get: function () { return showPages_1.winsTotal; } });
261
294
  //# 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;;;;;;;;;;;;;;;;;;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