@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLiveShop.js","sourceRoot":"","sources":["../../src/react/useLiveShop.ts"],"names":[],"mappings":";;AAoCA,oCAOC;AAGD,oCAEC;AA0CD,kCA+JC;AAzPD;;;;GAIG;AACH,sDAAyH;AACzH,iCAA6C;AAC7C,+CAA+C;AAE/C,0CAAoE;AAEpE,8CAA6G;AAC7G,4CAA2C;AAC3C,0CAA4C;AAC5C,+DAA2D;AAC3D,uDAAgE;AAChE,6CAAgH;AAehH;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAAC,GAA8B;IAC/D,IAAI,CAAC,GAAG;QAAE,OAAO;IACjB,IAAI,CAAC;QACH,MAAM,oBAAK,CAAC,KAAK,CAAC,uBAAQ,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IACxE,CAAC;IAAC,MAAM,CAAC;QACP,gCAAgC;IAClC,CAAC;AACH,CAAC;AAED,qIAAqI;AAC9H,KAAK,UAAU,YAAY,CAAC,OAAgB;IACjD,MAAM,YAAY,CAAC,IAAA,6BAAe,EAAC,OAAO,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAgB,WAAW,CAAC,SAAyB,EAAE;;IACrD,MAAM,GAAG,GAAG,IAAA,0BAAa,GAAiC,CAAC;IAC3D,MAAM,QAAQ,GAAG,MAAA,MAAA,IAAA,qBAAQ,GAAa,CAAC,MAAM,0CAAE,QAAQ,mCAAI,EAAE,CAAC;IAC9D,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAA,wCAAkB,GAAE,CAAC;IAC7D,MAAM,cAAc,GAAG,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SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;QACjD,qFAAqF;QACrF,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;KAChE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Replay screen's page model (0.14.0, moved from amore-v2's `src/core/hooks/useReplayPage.ts`: old
|
|
3
|
+
* Amore's Replay, rebuilt; 0.15.0 adds its link lots and a tap on the video that pauses and plays, from
|
|
4
|
+
* amore-v2's `eng928/integration`). The routes are the app's (`LiveSellingProvider`'s `routes`); the
|
|
5
|
+
* route's `feedId` and `streamId` params are read here, and `feedId` is set as the shopper swipes.
|
|
6
|
+
*/
|
|
7
|
+
import { type Product } from '@tiledev/sdk-shopify';
|
|
8
|
+
import { type ShowLink } from '../linkLots';
|
|
9
|
+
import type { ReplayCommentItem, ReplayNowProduct, ReplayShopLink, ReplayShow } from '../pageTypes';
|
|
10
|
+
/**
|
|
11
|
+
* Everything the Replay screen wires, so the screen stays plain tiles. Call it from the Replay screen
|
|
12
|
+
* and from each of its tiles' wiring.
|
|
13
|
+
*
|
|
14
|
+
* - **A feed over the archive.** The route names where the shopper comes in (`feedId` from a card,
|
|
15
|
+
* `streamId` from a push or link); `useReplays` (playable recordings, 20 a read) is paged until that
|
|
16
|
+
* recording turns up. A swipe moves along the archive, and the next page is read when the shopper
|
|
17
|
+
* reaches the last one or two read so far. Hidden shows a shopper can't see are left out
|
|
18
|
+
* (`hiddenShows`), as on the Live tab: one opened by its id reads the archive to its end, then "This
|
|
19
|
+
* show has ended".
|
|
20
|
+
* - **One player** (expo-video) for the whole app, borrowed from `ReplayPlayerProvider`, which owns it
|
|
21
|
+
* above the navigator so it outlives this screen: a new recording replaces the source, one source per
|
|
22
|
+
* recording, and its poster covers the picture until the video has a frame. It plays while the screen
|
|
23
|
+
* is on show, or only covered by a sheet (`routes.sheets`: the variant page), or in the bubble, and
|
|
24
|
+
* pauses under anything else.
|
|
25
|
+
* - **Picture-in-picture, in the app** (decided 2026-10-05, amore-v2's Head of Engineering): the
|
|
26
|
+
* header's picture-in-picture button shrinks the show into a floating bubble over the app and goes
|
|
27
|
+
* back (Home when there's nothing to go back to: `routes.openHome`); its cart button shrinks it the
|
|
28
|
+
* same way and opens the Cart (`routes.openCart`). Arriving on this screen ends the bubble, and the
|
|
29
|
+
* screen shows the video where the bubble had it; ✕ stops the show, with no bubble. Opening another
|
|
30
|
+
* recording replaces the bubble's. No system picture-in-picture. One shrunk show at a time: arriving
|
|
31
|
+
* here stops a live show's bubble, as the Live screen stops this one's.
|
|
32
|
+
* - **The playhead** is read twice a second. A seek is held until the player reports arriving there,
|
|
33
|
+
* so the bar never jumps back to where it was.
|
|
34
|
+
* - **A tap on the video pauses or plays** (0.15.0; decided 2026-10-20 by amore-v2's Head of
|
|
35
|
+
* Engineering, as the clips reel's; until then a tap showed or hid the controls): the controls' own
|
|
36
|
+
* Play and Pause, which shows the controls for their 4 s, so the skips and the bar are in reach.
|
|
37
|
+
* While the shopper has paused, the player draws the reel's play mark (`player.paused`).
|
|
38
|
+
* - **The product on screen** is the one whose time window covers the playhead
|
|
39
|
+
* (`liveSelling.replays.segments`, `productOnScreen`); before the first window, the first tagged
|
|
40
|
+
* product. Picking a product in the shop sheet goes to where the host first showed it, playing, then
|
|
41
|
+
* opens the variant page (`routes.openVariantPage`); a product the host never showed (tagged, no time
|
|
42
|
+
* window) leaves the player untouched, where it was and playing or paused, and only opens the variant
|
|
43
|
+
* page. Every add from there is credited to the recording (`replayShowCredit`): `_replay_id` on the
|
|
44
|
+
* line, `replayAddToCart` (`track`), and the cart's `_apptile_attribution` count against the show's
|
|
45
|
+
* `streamingId`, never the replay's feed id. Products are read at sdk-shopify's `CARD_IMAGE`.
|
|
46
|
+
* - **Links the host added** (0.15.0; amore-v2, 2026-10-19: lots that are web addresses, mostly
|
|
47
|
+
* affiliate links): the feed lists only products, so the show's record (`liveSelling.streams.byId`) is
|
|
48
|
+
* read with them, once per recording per visit, and gives the shop its order, the links among the
|
|
49
|
+
* products (`recordingShopItems`). A link can be the lot on screen (its time window, by its id) and is
|
|
50
|
+
* a card in the sheet (`ReplayShopLink`); a tap opens it inside the app, the show in the bubble as for
|
|
51
|
+
* the cart (`routes.openLink`), and share shares its address. An unreadable record leaves the products
|
|
52
|
+
* alone, as before, and is reported.
|
|
53
|
+
* - **The chat** is the show's comments file (`liveSelling.replays.comments`), revealed up to the
|
|
54
|
+
* playhead, the newest 60 (`replayCommentsAt`).
|
|
55
|
+
* - **A view** is counted once per recording per visit (not on the web, where the Tile preview would
|
|
56
|
+
* count on the merchant's real counter); a show back from the bubble isn't a new view.
|
|
57
|
+
* - **A read that fails** (the products, the time windows, the chat) goes to `onWarning`; a failed
|
|
58
|
+
* products or windows read is tried again when the shopper comes back to the recording.
|
|
59
|
+
*/
|
|
60
|
+
export declare function useReplayPage(): {
|
|
61
|
+
/** The video is on screen: light status bar text over it. */
|
|
62
|
+
darkBehindStatusBar: boolean;
|
|
63
|
+
player: {
|
|
64
|
+
visible: boolean;
|
|
65
|
+
show: ReplayShow | null;
|
|
66
|
+
previousShow: ReplayShow | null;
|
|
67
|
+
nextShow: ReplayShow | null;
|
|
68
|
+
player: import("expo-video").VideoPlayer | null;
|
|
69
|
+
videoReady: boolean;
|
|
70
|
+
buffering: boolean;
|
|
71
|
+
paused: boolean;
|
|
72
|
+
onVideoFirstFrame: () => void;
|
|
73
|
+
onTapVideo: () => void;
|
|
74
|
+
onSwipeToNext: () => void;
|
|
75
|
+
onSwipeToPrevious: () => void;
|
|
76
|
+
};
|
|
77
|
+
header: {
|
|
78
|
+
title: string | null;
|
|
79
|
+
muted: boolean;
|
|
80
|
+
canMute: boolean;
|
|
81
|
+
canPip: boolean;
|
|
82
|
+
cartCount: number;
|
|
83
|
+
onClose: () => void;
|
|
84
|
+
onToggleMute: () => void;
|
|
85
|
+
onPip: () => void;
|
|
86
|
+
onCart: () => void;
|
|
87
|
+
};
|
|
88
|
+
controls: {
|
|
89
|
+
visible: boolean;
|
|
90
|
+
positionMs: number;
|
|
91
|
+
durationMs: number;
|
|
92
|
+
playing: boolean;
|
|
93
|
+
onScrub: (atMs: number) => void;
|
|
94
|
+
onSeek: (atMs: number) => void;
|
|
95
|
+
onSkip: (changeMs: number) => void;
|
|
96
|
+
onTogglePlay: () => void;
|
|
97
|
+
};
|
|
98
|
+
nowCard: {
|
|
99
|
+
visible: boolean;
|
|
100
|
+
product: ReplayNowProduct | null;
|
|
101
|
+
favorite: boolean;
|
|
102
|
+
onOpen: () => void;
|
|
103
|
+
onToggleFavorite: () => void;
|
|
104
|
+
onShare: () => void;
|
|
105
|
+
};
|
|
106
|
+
comments: {
|
|
107
|
+
visible: boolean;
|
|
108
|
+
comments: ReplayCommentItem[];
|
|
109
|
+
hasChat: boolean;
|
|
110
|
+
hidden: boolean;
|
|
111
|
+
onToggleHidden: () => void;
|
|
112
|
+
};
|
|
113
|
+
shopBar: {
|
|
114
|
+
visible: boolean;
|
|
115
|
+
/** The products and the links the host added (`ReplayShopLink`), in the record's order. */
|
|
116
|
+
products: (Product | ShowLink)[];
|
|
117
|
+
onScreenProductId: string | null;
|
|
118
|
+
favoriteIds: string[];
|
|
119
|
+
auctionProductIds: string[];
|
|
120
|
+
onPressProduct: (product: Product) => void;
|
|
121
|
+
onOpenLink: (link: Pick<ReplayShopLink, "url" | "title">) => void;
|
|
122
|
+
onToggleFavorite: (product: Product) => undefined;
|
|
123
|
+
onQuickAdd: (product: Product) => void;
|
|
124
|
+
addingProductIds: string[];
|
|
125
|
+
};
|
|
126
|
+
missing: {
|
|
127
|
+
visible: boolean;
|
|
128
|
+
onAction: () => void;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/** What `useReplayPage` hands the Replay screen and its tiles. */
|
|
132
|
+
export type ReplayPage = ReturnType<typeof useReplayPage>;
|
|
133
|
+
//# sourceMappingURL=useReplayPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReplayPage.d.ts","sourceRoot":"","sources":["../../src/react/useReplayPage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAkD,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5F,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAuCpG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAgB,aAAa;IA8YzB,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4C3C,MAAM;uBAIP,MAAM;2BAIF,MAAM;;;;;;;;;;;;;;;;;;;;QAgCzB,2FAA2F;;;;;kCA/JnF,OAAO;2BAgEV,IAAI,CAAC,cAAc,EAAE,KAAK,GAAG,OAAO,CAAC;oCAsGd,OAAO;;;;;;;;EASxC;AAED,kEAAkE;AAClE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC"}
|