@tiledev/sdk-apptile-live-selling 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -12
- 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/giveawayPrizeLines.d.ts +10 -0
- package/dist/giveawayPrizeLines.d.ts.map +1 -1
- package/dist/giveawayPrizeLines.js +11 -1
- package/dist/giveawayPrizeLines.js.map +1 -1
- package/dist/hiddenShows.d.ts +10 -0
- package/dist/hiddenShows.d.ts.map +1 -1
- package/dist/hiddenShows.js +11 -0
- package/dist/hiddenShows.js.map +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -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 +166 -0
- package/dist/livePages.d.ts.map +1 -0
- package/dist/livePages.js +187 -0
- package/dist/livePages.js.map +1 -0
- package/dist/liveRoom.d.ts +21 -0
- package/dist/liveRoom.d.ts.map +1 -0
- package/dist/liveRoom.js +28 -0
- package/dist/liveRoom.js.map +1 -0
- package/dist/pageOptions.d.ts +118 -0
- package/dist/pageOptions.d.ts.map +1 -0
- package/dist/pageOptions.js +99 -0
- package/dist/pageOptions.js.map +1 -0
- package/dist/pageTypes.d.ts +185 -0
- package/dist/pageTypes.d.ts.map +1 -0
- package/dist/pageTypes.js +3 -0
- package/dist/pageTypes.js.map +1 -0
- package/dist/react/LiveSellingProvider.d.ts +31 -1
- package/dist/react/LiveSellingProvider.d.ts.map +1 -1
- package/dist/react/LiveSellingProvider.js +44 -2
- package/dist/react/LiveSellingProvider.js.map +1 -1
- package/dist/react/index.d.ts +12 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +34 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.web.d.ts +13 -32
- package/dist/react/index.web.d.ts.map +1 -1
- package/dist/react/index.web.js +52 -139
- package/dist/react/index.web.js.map +1 -1
- package/dist/react/navigation.d.ts +13 -0
- package/dist/react/navigation.d.ts.map +1 -0
- package/dist/react/navigation.js +7 -0
- package/dist/react/navigation.js.map +1 -0
- package/dist/react/platformSession.d.ts +16 -0
- package/dist/react/platformSession.d.ts.map +1 -0
- package/dist/react/platformSession.js +28 -0
- package/dist/react/platformSession.js.map +1 -0
- package/dist/react/platformSession.web.d.ts +35 -0
- package/dist/react/platformSession.web.d.ts.map +1 -0
- package/dist/react/platformSession.web.js +148 -0
- package/dist/react/platformSession.web.js.map +1 -0
- package/dist/react/replayPlayer.d.ts +74 -0
- package/dist/react/replayPlayer.d.ts.map +1 -0
- package/dist/react/replayPlayer.js +279 -0
- package/dist/react/replayPlayer.js.map +1 -0
- package/dist/react/shopifyProviders.d.ts +69 -0
- package/dist/react/shopifyProviders.d.ts.map +1 -0
- package/dist/react/shopifyProviders.js +100 -0
- package/dist/react/shopifyProviders.js.map +1 -0
- 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/useKeepScreenAwake.d.ts +2 -0
- package/dist/react/useKeepScreenAwake.d.ts.map +1 -0
- package/dist/react/useKeepScreenAwake.js +34 -0
- package/dist/react/useKeepScreenAwake.js.map +1 -0
- package/dist/react/useLiveAuction.d.ts +106 -0
- package/dist/react/useLiveAuction.d.ts.map +1 -0
- package/dist/react/useLiveAuction.js +249 -0
- package/dist/react/useLiveAuction.js.map +1 -0
- package/dist/react/useLiveChat.d.ts +110 -0
- package/dist/react/useLiveChat.d.ts.map +1 -0
- package/dist/react/useLiveChat.js +209 -0
- package/dist/react/useLiveChat.js.map +1 -0
- package/dist/react/useLiveGiveawaysAndPolls.d.ts +95 -0
- package/dist/react/useLiveGiveawaysAndPolls.d.ts.map +1 -0
- package/dist/react/useLiveGiveawaysAndPolls.js +225 -0
- package/dist/react/useLiveGiveawaysAndPolls.js.map +1 -0
- package/dist/react/useLivePage.d.ts +134 -0
- package/dist/react/useLivePage.d.ts.map +1 -0
- package/dist/react/useLivePage.js +304 -0
- package/dist/react/useLivePage.js.map +1 -0
- package/dist/react/useLiveShop.d.ts +103 -0
- package/dist/react/useLiveShop.d.ts.map +1 -0
- package/dist/react/useLiveShop.js +211 -0
- package/dist/react/useLiveShop.js.map +1 -0
- package/dist/react/useReplayPage.d.ts +133 -0
- package/dist/react/useReplayPage.d.ts.map +1 -0
- package/dist/react/useReplayPage.js +565 -0
- package/dist/react/useReplayPage.js.map +1 -0
- package/dist/showCredit.d.ts +87 -0
- package/dist/showCredit.d.ts.map +1 -0
- package/dist/showCredit.js +120 -0
- package/dist/showCredit.js.map +1 -0
- 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/dist/ui/BubbleFrame.d.ts +38 -0
- package/dist/ui/BubbleFrame.d.ts.map +1 -0
- package/dist/ui/BubbleFrame.js +181 -0
- package/dist/ui/BubbleFrame.js.map +1 -0
- package/dist/ui/LiveBubble.d.ts +37 -0
- package/dist/ui/LiveBubble.d.ts.map +1 -0
- package/dist/ui/LiveBubble.js +101 -0
- package/dist/ui/LiveBubble.js.map +1 -0
- package/dist/ui/ReplayBubble.d.ts +23 -0
- package/dist/ui/ReplayBubble.d.ts.map +1 -0
- package/dist/ui/ReplayBubble.js +65 -0
- package/dist/ui/ReplayBubble.js.map +1 -0
- package/dist/ui.d.ts +27 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +34 -0
- package/dist/ui.js.map +1 -0
- package/package.json +36 -5
- 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.**
|
|
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
|
|
13
|
-
|
|
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`
|
|
75
|
-
|
|
76
|
-
|
|
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)
|
|
83
|
-
|
|
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
|
|
@@ -439,6 +448,100 @@ const rail = useLiveRail({ screenOnShow: useIsFocused() });
|
|
|
439
448
|
hidden from this viewer rather than say there are none. On the web, the three run over the idle session
|
|
440
449
|
and empty wins.
|
|
441
450
|
|
|
451
|
+
### The Live, Replay and Clips pages (0.14.0, 0.15.0)
|
|
452
|
+
|
|
453
|
+
The Live screen, the Replay screen and (0.15.0) the Clips page as page models, moved from amore-v2 so an
|
|
454
|
+
app built on it keeps no copy: the screen and each tile's wiring call the same hook, and spread its
|
|
455
|
+
fields into the tiles. 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
|
+
// 0.15.0, optional: a link from a show (https only), the show already in the bubble. Without it,
|
|
475
|
+
// links are words.
|
|
476
|
+
openLink: (url, title, nav) => {
|
|
477
|
+
const screen = screenForLink(url, title); // the app's: its product, collection or web page
|
|
478
|
+
if (screen) nav.navigate(screen.route, screen.params);
|
|
479
|
+
},
|
|
480
|
+
sheets: ['VariantSelector', 'SignIn'],
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
<ShopifyLiveSellingProvider
|
|
484
|
+
config={{ ...LIVE_SELLING, haptics: Haptics, hiddenShows: REHEARSALS }}
|
|
485
|
+
cartSourceName={CART_SOURCE_NAME}
|
|
486
|
+
prizeWriteKey={GIVEAWAY_PRIZE_KEY}
|
|
487
|
+
routes={routes}
|
|
488
|
+
track={analytics.track}
|
|
489
|
+
onWarning={captureWarning}
|
|
490
|
+
shopName={APP_NAME}
|
|
491
|
+
// 0.15.0: the names nobody watching may go by, from a list the app publishes (`blockedNamesFrom`).
|
|
492
|
+
blockedNames={blockedNamesFrom(publishedBlockedNames)}
|
|
493
|
+
>
|
|
494
|
+
<ShopifyLiveSessionProvider>
|
|
495
|
+
<ReplayPlayerProvider>
|
|
496
|
+
<AppNavigator />
|
|
497
|
+
<ReplayBubble chipColor={scrim} />
|
|
498
|
+
<LiveBubble chipColor={scrim} />
|
|
499
|
+
</ReplayPlayerProvider>
|
|
500
|
+
</ShopifyLiveSessionProvider>
|
|
501
|
+
</ShopifyLiveSellingProvider>
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
```tsx
|
|
505
|
+
// The Live screen, and each of its tiles' wiring:
|
|
506
|
+
const page = useLivePage(); // page.player, page.header, page.chat.{comments, commentBox, …}, page.openLink
|
|
507
|
+
const shop = useLiveShop({ openLink: page.openLink }); // shop.productCard, shopButton, soldChips, cartChips
|
|
508
|
+
const auction = useLiveAuction({ openItemsYouWon: page.header.onCart });
|
|
509
|
+
const giveawaysAndPolls = useLiveGiveawaysAndPolls();
|
|
510
|
+
|
|
511
|
+
// The Replay screen, and each of its tiles' wiring:
|
|
512
|
+
const replay = useReplayPage(); // replay.player, header, controls, nowCard, comments, shopBar, missing
|
|
513
|
+
|
|
514
|
+
// The Clips page (0.15.0), and each of its tiles' wiring:
|
|
515
|
+
const clips = useClipsPage(); // clips.reel (the reel tile), clips.header, clips.hasReel, clips.isFocused
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
- **Routes stay the app's.** A route taken inside a screen is handed that screen's navigation (to
|
|
519
|
+
replace it, or go back from it); `openLive` and `openReplay` are taken from outside the navigator (a
|
|
520
|
+
bubble, the session's `onPipRestore`). Without `routes`, each says so through `onWarning` and goes
|
|
521
|
+
nowhere. The hooks read the route's params themselves: `streamId` on Live, `feedId` or `streamId` on
|
|
522
|
+
Replay.
|
|
523
|
+
- **`track`** gets `liveJoin` (once per show per app run, never for a show `hiddenShows` names) and a
|
|
524
|
+
show's copy of each add (`streamAddToCart`, `replayAddToCart`); **`onWarning`** a read a page carried
|
|
525
|
+
on without; **`shopName`** goes in the bidding rules.
|
|
526
|
+
- **The variant page** gets `VariantPageParams` (a handle, a show's credit, `beingAuctioned`). It
|
|
527
|
+
reports a landed add with `reportShowAdd(credit, track, product, variant)`; product grids elsewhere
|
|
528
|
+
get sdk-shopify's quick-add options from `showQuickAddOptions(openVariantPage)`.
|
|
529
|
+
- **Links from a show** (0.15.0): a host's or moderator's link in the chat, and lots the host added as
|
|
530
|
+
web addresses (`LiveShopLink`, `ReplayShopLink`: in the Shop sheet among the products, featured on the
|
|
531
|
+
card, among an auction's lots, on screen in a recording). Only an https address opens (`opensInApp`),
|
|
532
|
+
through `routes.openLink`, with the show in the bubble; without that route they are words.
|
|
533
|
+
- **Names** (0.15.0): a signed-in shopper whose account has no first name is asked once, by a comment
|
|
534
|
+
or a giveaway entry, and the name goes on the account (`useAccountName`, sdk-shopify's
|
|
535
|
+
`updateProfile`); the team's names (`blockedNames`) are refused as they are typed. A comment box can
|
|
536
|
+
send a signed-out shopper to sign in instead ("Sign in to comment": `signedOut`, `onSignInToComment`,
|
|
537
|
+
`keyboardRequest`).
|
|
538
|
+
- **The Live header** gets the cart hold's end times (`header.holdEndTimes`, 0.15.0); **a tap on the
|
|
539
|
+
Replay video** pauses and plays (`player.paused`, 0.15.0).
|
|
540
|
+
- **The tiles' types** (`LiveFeaturedProduct`, `LiveAuctionLot`, `ReplayNowProduct`, `LiveShopLink`,
|
|
541
|
+
`ClipReelItem`…) are this package's, so a tile imports them from here.
|
|
542
|
+
- **On the web** the hooks and bubbles run over the idle session: the Live screen's tiles draw nothing,
|
|
543
|
+
the Replay screen plays.
|
|
544
|
+
|
|
442
545
|
### Store links in comments, as cards (0.12.0)
|
|
443
546
|
|
|
444
547
|
A host pastes a product or collection link into the chat; the comment can show it as a card with the
|
|
@@ -810,6 +913,7 @@ lives in the native package.)
|
|
|
810
913
|
|---|---|
|
|
811
914
|
| `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` |
|
|
812
915
|
| `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 |
|
|
916
|
+
| `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 |
|
|
813
917
|
|
|
814
918
|
The web file is not only about behaviour. `LiveVideoTarget` requires `zego-express-engine-reactnative`
|
|
815
919
|
for its texture view, and a bundler collects that `require` whichever branch would run it — so a web
|
|
@@ -975,7 +1079,7 @@ two copies of the same Expo module, and identical pod and module names collide a
|
|
|
975
1079
|
| `npm run lint` | Typechecks, emitting nothing |
|
|
976
1080
|
| `npm run clean` | Removes `dist` |
|
|
977
1081
|
| `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 |
|
|
978
|
-
| `npm pack` | The publish tarball — `dist`, `types`, `session` and nothing native |
|
|
1082
|
+
| `npm pack` | The publish tarball — `dist`, `types`, `session`, `ui` and nothing native |
|
|
979
1083
|
|
|
980
1084
|
The reducer is exported on its own (`sessionReducer`, `deriveStatus`, `roundClosesAt`, `nextExpiryAt`) and is pure, so it
|
|
981
1085
|
can be driven with no room, socket or React — from Node, import it as
|
|
@@ -1002,8 +1106,8 @@ can be driven with no room, socket or React — from Node, import it as
|
|
|
1002
1106
|
|
|
1003
1107
|
## Not included
|
|
1004
1108
|
|
|
1005
|
-
UI · a storefront · navigation
|
|
1006
|
-
collection).
|
|
1109
|
+
UI beyond the bubbles (`/ui`) · a storefront · navigation (the pages take the app's `routes`) · a static
|
|
1110
|
+
clip fallback (`clips.list()` reads only the configured collection).
|
|
1007
1111
|
|
|
1008
1112
|
## Verified against
|
|
1009
1113
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ClipReelItem } from './pageTypes';
|
|
2
|
+
import type { ClipItem } from './types';
|
|
3
|
+
/** The reel's product bar photo: 56pt wide at 3×. */
|
|
4
|
+
export declare const CLIP_THUMB_PIXELS = 168;
|
|
5
|
+
/** A clip's product as far as the reel reads it (sdk-shopify's `Product` has it). */
|
|
6
|
+
export interface ProductForClip {
|
|
7
|
+
title: string;
|
|
8
|
+
priceRange: {
|
|
9
|
+
min: {
|
|
10
|
+
amount: string;
|
|
11
|
+
currencyCode: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
featuredImage?: {
|
|
15
|
+
url: string;
|
|
16
|
+
} | null;
|
|
17
|
+
images?: {
|
|
18
|
+
url: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
/** The clip's product: the first the collection lists for it. */
|
|
22
|
+
export declare function clipProductId(clip: Pick<ClipItem, 'productIds'>): string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The reel, in the collection's order: each clip with its product's title, price and photo (the bar's
|
|
25
|
+
* size). A clip whose product the store no longer has (`null`), or hasn't been read yet, is left out:
|
|
26
|
+
* there is nothing to buy from it.
|
|
27
|
+
*/
|
|
28
|
+
export declare function clipReelItems(clips: readonly ClipItem[], productsById: ReadonlyMap<string, ProductForClip | null>, thumbPixels?: number): ClipReelItem[];
|
|
29
|
+
//# sourceMappingURL=clipsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipsPage.d.ts","sourceRoot":"","sources":["../src/clipsPage.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE;QAAE,GAAG,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAC9D,aAAa,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC5B;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,MAAM,GAAG,IAAI,CAE/E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC,EACxD,WAAW,GAAE,MAA0B,GACtC,YAAY,EAAE,CAoBhB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIP_THUMB_PIXELS = void 0;
|
|
4
|
+
exports.clipProductId = clipProductId;
|
|
5
|
+
exports.clipReelItems = clipReelItems;
|
|
6
|
+
/**
|
|
7
|
+
* The rules behind the Clips page (0.15.0, moved from amore-v2's `useClipsPage`): which clips the reel
|
|
8
|
+
* shows, each with its product, ready to draw. The hook is `react/useClipsPage.ts`.
|
|
9
|
+
*
|
|
10
|
+
* Free of React and React Native, so it loads in plain Node for tests (sdk-shopify's `formatMoney` and
|
|
11
|
+
* `sizedImageUrl` are plain functions).
|
|
12
|
+
*/
|
|
13
|
+
const sdk_shopify_1 = require("@tiledev/sdk-shopify");
|
|
14
|
+
/** The reel's product bar photo: 56pt wide at 3×. */
|
|
15
|
+
exports.CLIP_THUMB_PIXELS = 168;
|
|
16
|
+
/** The clip's product: the first the collection lists for it. */
|
|
17
|
+
function clipProductId(clip) {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = clip.productIds[0]) !== null && _a !== void 0 ? _a : null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The reel, in the collection's order: each clip with its product's title, price and photo (the bar's
|
|
23
|
+
* size). A clip whose product the store no longer has (`null`), or hasn't been read yet, is left out:
|
|
24
|
+
* there is nothing to buy from it.
|
|
25
|
+
*/
|
|
26
|
+
function clipReelItems(clips, productsById, thumbPixels = exports.CLIP_THUMB_PIXELS) {
|
|
27
|
+
return clips.flatMap((clip) => {
|
|
28
|
+
var _a, _b, _c, _d;
|
|
29
|
+
const productId = clipProductId(clip);
|
|
30
|
+
const product = productId ? productsById.get(productId) : null;
|
|
31
|
+
if (!product)
|
|
32
|
+
return [];
|
|
33
|
+
return [
|
|
34
|
+
{
|
|
35
|
+
id: clip.id,
|
|
36
|
+
videoUrl: clip.videoUrl,
|
|
37
|
+
posterUrl: clip.posterUrl,
|
|
38
|
+
startMs: clip.startMs,
|
|
39
|
+
endMs: clip.endMs,
|
|
40
|
+
product: {
|
|
41
|
+
title: product.title,
|
|
42
|
+
price: (0, sdk_shopify_1.formatMoney)(product.priceRange.min),
|
|
43
|
+
imageUrl: (0, sdk_shopify_1.sizedImageUrl)((_b = (_a = product.featuredImage) === null || _a === void 0 ? void 0 : _a.url) !== null && _b !== void 0 ? _b : (_d = (_c = product.images) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.url, thumbPixels),
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=clipsPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipsPage.js","sourceRoot":"","sources":["../src/clipsPage.ts"],"names":[],"mappings":";;;AAwBA,sCAEC;AAOD,sCAwBC;AAzDD;;;;;;GAMG;AACH,sDAAkE;AAKlE,qDAAqD;AACxC,QAAA,iBAAiB,GAAG,GAAG,CAAC;AAUrC,iEAAiE;AACjE,SAAgB,aAAa,CAAC,IAAkC;;IAC9D,OAAO,MAAA,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,mCAAI,IAAI,CAAC;AACpC,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,KAA0B,EAC1B,YAAwD,EACxD,cAAsB,yBAAiB;IAEvC,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;QAC5B,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/D,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACxB,OAAO;YACL;gBACE,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO,EAAE;oBACP,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,KAAK,EAAE,IAAA,yBAAW,EAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;oBAC1C,QAAQ,EAAE,IAAA,2BAAa,EAAC,MAAA,MAAA,OAAO,CAAC,aAAa,0CAAE,GAAG,mCAAI,MAAA,MAAA,OAAO,CAAC,MAAM,0CAAG,CAAC,CAAC,0CAAE,GAAG,EAAE,WAAW,CAAC;iBAC7F;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -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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,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":";;;
|
|
1
|
+
{"version":3,"file":"giveawayPrizeLines.js","sourceRoot":"","sources":["../src/giveawayPrizeLines.ts"],"names":[],"mappings":";;;AAuCA,kDAMC;AAkBD,wCAYC;AAUD,wCAEC;AA2BD,oEAeC;AAOD,oDAIC;AAnID;;;;GAIG;AACU,QAAA,mBAAmB,GAAsB,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;AAE3F;;;;;;;;GAQG;AACU,QAAA,kBAAkB,GAAG,iBAAiB,CAAC;AAOpD;;;;;;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,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,KAAK,KAAK,OAAO,CAAC,CAAC;AAClH,CAAC;AAYD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,IAI9B;IACC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,C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AC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC1G,MAAM,uBAAuB,GAAG,KAAK;SAClC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SACpC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,SAAS,mCAAI,EAAE,CAAA,EAAA,CAAC;SACvC,MAAM,CAAC,CAAC,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"}
|
package/dist/hiddenShows.d.ts
CHANGED
|
@@ -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,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
"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();
|
package/dist/hiddenShows.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hiddenShows.js","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hiddenShows.js","sourceRoot":"","sources":["../src/hiddenShows.ts"],"names":[],"mappings":";;;AA6BA,0CAOC;AAGD,oCAOC;AAGD,oCAMC;AAMD,gDAQC;AApDD;;;;;;;;GAQG;AACU,QAAA,UAAU,GAAgB,EAAE,aAAa,EAAE,CAAC,aAAa,C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,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,23 @@ 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, isBlockedViewerName, DEFAULT_BLOCKED_VIEWER_NAMES, type NamedCustomer, } from './showNames';
|
|
42
|
+
export { isHiddenFrom, isHiddenShow, seesHiddenShows, withoutHiddenShows, REHEARSALS } from './hiddenShows';
|
|
43
|
+
export { publicName, firstNameOf, viewerNameFor, sameRoomName, isBlockedViewerName, DEFAULT_BLOCKED_VIEWER_NAMES, MOST_BLOCKED_NAMES, blockedNamesFrom, 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, NO_HOLDS, REPLAY_COMMENTS_SHOWN, accountLoadingOf, accountNameAsk, accountNameToComplete, chatNameAsk, firstShownAt, giveawayNameAsk, holdEndTimesOf, isCoveredOnlyBySheet, isTheShow, playerMs, productOnScreen, replayCommentsAt, tidyAccountName, type AccountForNames, type ChatNameInput, type StackStateForSheets, } from './livePages';
|
|
53
|
+
export { opensInApp, linkLotPrice, showLinkOf, recordingShopItems, isShowLink, type ShowLink, type LinkLotFields, type RecordLot, } from './linkLots';
|
|
54
|
+
export { CLIP_THUMB_PIXELS, clipProductId, clipReelItems, type ProductForClip } from './clipsPage';
|
|
55
|
+
export { NO_ROUTES, consoleWarning, pageOptionsReading, reportLiveWarning, type LivePageOptions, type LivePageOptionsInput, type LiveSellingRoutes, type LiveTrack, type LiveWarning, type ScreenNavigation, type SignInPageMethod, } from './pageOptions';
|
|
56
|
+
export type * from './pageTypes';
|
|
50
57
|
export { sessionReducer, initialSessionState, deriveStatus, roundClosesAt, nextExpiryAt, isNothingOnAir, withOffAirSettled, isTheEndedGiveaway, SOLD_CARD_MS, REACTION_MS, CART_CARD_MS, } from './session';
|
|
51
58
|
export { capabilitiesFor, LIVE_CAPABILITIES, AUCTION_CAPABILITIES, REPLAY_CAPABILITIES, IDLE_AUCTION, IDLE_GIVEAWAY, } from './sessionTypes';
|
|
52
59
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,wBAAw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
|
|
|
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.
|
|
35
|
-
exports.
|
|
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.showLinkOf = exports.linkLotPrice = exports.opensInApp = exports.tidyAccountName = exports.replayCommentsAt = exports.productOnScreen = exports.playerMs = exports.isTheShow = exports.isCoveredOnlyBySheet = exports.holdEndTimesOf = exports.giveawayNameAsk = exports.firstShownAt = exports.chatNameAsk = exports.accountNameToComplete = exports.accountNameAsk = exports.accountLoadingOf = exports.REPLAY_COMMENTS_SHOWN = exports.NO_HOLDS = exports.BACK_ACTIONS = exports.announceAddToLiveRoom = exports.showQuickAddOptions = exports.reportShowAdd = exports.replayShowCredit = exports.liveShowCredit = exports.auctionLotPageParams = exports.variantPageParams = exports.givenAwayVariant = exports.isTheVariant = exports.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.blockedNamesFrom = exports.MOST_BLOCKED_NAMES = 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 = 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.clipReelItems = exports.clipProductId = exports.CLIP_THUMB_PIXELS = exports.isShowLink = exports.recordingShopItems = 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,6 +173,7 @@ 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; } });
|
|
@@ -178,6 +181,8 @@ Object.defineProperty(exports, "viewerNameFor", { enumerable: true, get: functio
|
|
|
178
181
|
Object.defineProperty(exports, "sameRoomName", { enumerable: true, get: function () { return showNames_1.sameRoomName; } });
|
|
179
182
|
Object.defineProperty(exports, "isBlockedViewerName", { enumerable: true, get: function () { return showNames_1.isBlockedViewerName; } });
|
|
180
183
|
Object.defineProperty(exports, "DEFAULT_BLOCKED_VIEWER_NAMES", { enumerable: true, get: function () { return showNames_1.DEFAULT_BLOCKED_VIEWER_NAMES; } });
|
|
184
|
+
Object.defineProperty(exports, "MOST_BLOCKED_NAMES", { enumerable: true, get: function () { return showNames_1.MOST_BLOCKED_NAMES; } });
|
|
185
|
+
Object.defineProperty(exports, "blockedNamesFrom", { enumerable: true, get: function () { return showNames_1.blockedNamesFrom; } });
|
|
181
186
|
var liveShow_1 = require("./liveShow");
|
|
182
187
|
Object.defineProperty(exports, "liveShowFor", { enumerable: true, get: function () { return liveShow_1.liveShowFor; } });
|
|
183
188
|
Object.defineProperty(exports, "canPlayInCard", { enumerable: true, get: function () { return liveShow_1.canPlayInCard; } });
|
|
@@ -204,6 +209,52 @@ Object.defineProperty(exports, "classifyComment", { enumerable: true, get: funct
|
|
|
204
209
|
var giveawayPrize_1 = require("./giveawayPrize");
|
|
205
210
|
Object.defineProperty(exports, "isTheVariant", { enumerable: true, get: function () { return giveawayPrize_1.isTheVariant; } });
|
|
206
211
|
Object.defineProperty(exports, "givenAwayVariant", { enumerable: true, get: function () { return giveawayPrize_1.givenAwayVariant; } });
|
|
212
|
+
// The Live and Replay pages' rules and what credits an add to a show (0.14.0, moved from amore-v2).
|
|
213
|
+
// Pure, so an app's own tests can load them from `dist` (`showCredit`, `livePages`, `pageOptions`,
|
|
214
|
+
// `liveRoom`) without the native engine. The page hooks are on the React layer below.
|
|
215
|
+
var showCredit_1 = require("./showCredit");
|
|
216
|
+
Object.defineProperty(exports, "variantPageParams", { enumerable: true, get: function () { return showCredit_1.variantPageParams; } });
|
|
217
|
+
Object.defineProperty(exports, "auctionLotPageParams", { enumerable: true, get: function () { return showCredit_1.auctionLotPageParams; } });
|
|
218
|
+
Object.defineProperty(exports, "liveShowCredit", { enumerable: true, get: function () { return showCredit_1.liveShowCredit; } });
|
|
219
|
+
Object.defineProperty(exports, "replayShowCredit", { enumerable: true, get: function () { return showCredit_1.replayShowCredit; } });
|
|
220
|
+
Object.defineProperty(exports, "reportShowAdd", { enumerable: true, get: function () { return showCredit_1.reportShowAdd; } });
|
|
221
|
+
Object.defineProperty(exports, "showQuickAddOptions", { enumerable: true, get: function () { return showCredit_1.showQuickAddOptions; } });
|
|
222
|
+
var liveRoom_1 = require("./liveRoom");
|
|
223
|
+
Object.defineProperty(exports, "announceAddToLiveRoom", { enumerable: true, get: function () { return liveRoom_1.announceAddToLiveRoom; } });
|
|
224
|
+
var livePages_1 = require("./livePages");
|
|
225
|
+
Object.defineProperty(exports, "BACK_ACTIONS", { enumerable: true, get: function () { return livePages_1.BACK_ACTIONS; } });
|
|
226
|
+
Object.defineProperty(exports, "NO_HOLDS", { enumerable: true, get: function () { return livePages_1.NO_HOLDS; } });
|
|
227
|
+
Object.defineProperty(exports, "REPLAY_COMMENTS_SHOWN", { enumerable: true, get: function () { return livePages_1.REPLAY_COMMENTS_SHOWN; } });
|
|
228
|
+
Object.defineProperty(exports, "accountLoadingOf", { enumerable: true, get: function () { return livePages_1.accountLoadingOf; } });
|
|
229
|
+
Object.defineProperty(exports, "accountNameAsk", { enumerable: true, get: function () { return livePages_1.accountNameAsk; } });
|
|
230
|
+
Object.defineProperty(exports, "accountNameToComplete", { enumerable: true, get: function () { return livePages_1.accountNameToComplete; } });
|
|
231
|
+
Object.defineProperty(exports, "chatNameAsk", { enumerable: true, get: function () { return livePages_1.chatNameAsk; } });
|
|
232
|
+
Object.defineProperty(exports, "firstShownAt", { enumerable: true, get: function () { return livePages_1.firstShownAt; } });
|
|
233
|
+
Object.defineProperty(exports, "giveawayNameAsk", { enumerable: true, get: function () { return livePages_1.giveawayNameAsk; } });
|
|
234
|
+
Object.defineProperty(exports, "holdEndTimesOf", { enumerable: true, get: function () { return livePages_1.holdEndTimesOf; } });
|
|
235
|
+
Object.defineProperty(exports, "isCoveredOnlyBySheet", { enumerable: true, get: function () { return livePages_1.isCoveredOnlyBySheet; } });
|
|
236
|
+
Object.defineProperty(exports, "isTheShow", { enumerable: true, get: function () { return livePages_1.isTheShow; } });
|
|
237
|
+
Object.defineProperty(exports, "playerMs", { enumerable: true, get: function () { return livePages_1.playerMs; } });
|
|
238
|
+
Object.defineProperty(exports, "productOnScreen", { enumerable: true, get: function () { return livePages_1.productOnScreen; } });
|
|
239
|
+
Object.defineProperty(exports, "replayCommentsAt", { enumerable: true, get: function () { return livePages_1.replayCommentsAt; } });
|
|
240
|
+
Object.defineProperty(exports, "tidyAccountName", { enumerable: true, get: function () { return livePages_1.tidyAccountName; } });
|
|
241
|
+
// Link lots and the links a show opens in the app (0.15.0, moved from amore-v2's `linkLots`).
|
|
242
|
+
var linkLots_1 = require("./linkLots");
|
|
243
|
+
Object.defineProperty(exports, "opensInApp", { enumerable: true, get: function () { return linkLots_1.opensInApp; } });
|
|
244
|
+
Object.defineProperty(exports, "linkLotPrice", { enumerable: true, get: function () { return linkLots_1.linkLotPrice; } });
|
|
245
|
+
Object.defineProperty(exports, "showLinkOf", { enumerable: true, get: function () { return linkLots_1.showLinkOf; } });
|
|
246
|
+
Object.defineProperty(exports, "recordingShopItems", { enumerable: true, get: function () { return linkLots_1.recordingShopItems; } });
|
|
247
|
+
Object.defineProperty(exports, "isShowLink", { enumerable: true, get: function () { return linkLots_1.isShowLink; } });
|
|
248
|
+
// The Clips page's reel (0.15.0, moved from amore-v2's `useClipsPage`).
|
|
249
|
+
var clipsPage_1 = require("./clipsPage");
|
|
250
|
+
Object.defineProperty(exports, "CLIP_THUMB_PIXELS", { enumerable: true, get: function () { return clipsPage_1.CLIP_THUMB_PIXELS; } });
|
|
251
|
+
Object.defineProperty(exports, "clipProductId", { enumerable: true, get: function () { return clipsPage_1.clipProductId; } });
|
|
252
|
+
Object.defineProperty(exports, "clipReelItems", { enumerable: true, get: function () { return clipsPage_1.clipReelItems; } });
|
|
253
|
+
var pageOptions_1 = require("./pageOptions");
|
|
254
|
+
Object.defineProperty(exports, "NO_ROUTES", { enumerable: true, get: function () { return pageOptions_1.NO_ROUTES; } });
|
|
255
|
+
Object.defineProperty(exports, "consoleWarning", { enumerable: true, get: function () { return pageOptions_1.consoleWarning; } });
|
|
256
|
+
Object.defineProperty(exports, "pageOptionsReading", { enumerable: true, get: function () { return pageOptions_1.pageOptionsReading; } });
|
|
257
|
+
Object.defineProperty(exports, "reportLiveWarning", { enumerable: true, get: function () { return pageOptions_1.reportLiveWarning; } });
|
|
207
258
|
// The session state machine — pure, and usable without React for tests or a custom host.
|
|
208
259
|
var session_1 = require("./session");
|
|
209
260
|
Object.defineProperty(exports, "sessionReducer", { enumerable: true, get: function () { return session_1.sessionReducer; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;AAEH,2CAA2C;AAC3C,6CAAoE;AAA3D,0GAAA,WAAW,OAAA;AAAE,sGAAA,WAAW,OAAW;AAE5C,iGAAiG;AACjG,2CAA2C;AAC3C,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,yCAA4F;AAAnF,8GAAA,iBAAiB,OAAA;AAAE,qHAAA,wBAAwB,OAAA;AAEpD,0EAA0E;AAC1E,mCAAgD;AAAvC,oGAAA,MAAM,OAAc;AAE7B,uGAAuG;AACvG,mCAMkB;AALhB,0GAAA,gBAAgB,OAAA;AAChB,iHAAA,uBAAuB,OAAA;AACvB,oHAAA,0BAA0B,OAAA;AAC1B,kHAAA,wBAAwB,OAAA;AACxB,sGAAA,YAAY,OAAA;AAEd,2CAAiF;AAAxE,4GAAA,cAAc,OAAA;AAAE,2GAAA,aAAa,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAE1D,yGAAyG;AACzG,qCAMmB;AALjB,uGAAA,YAAY,OAAA;AACZ,wGAAA,aAAa,OAAA;AACb,8GAAA,mBAAmB,OAAA;AACnB,yGAAA,cAAc,OAAA;AACd,4GAAA,iBAAiB,OAAA;AAEnB,iCAA2E;AAAlE,mGAAA,UAAU,OAA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