@tiledev/sdk-apptile-live-selling 0.8.0 → 0.9.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 (184) hide show
  1. package/README.md +443 -34
  2. package/dist/auctionComments.d.ts +25 -0
  3. package/dist/auctionComments.d.ts.map +1 -0
  4. package/dist/auctionComments.js +28 -0
  5. package/dist/auctionComments.js.map +1 -0
  6. package/dist/auctionRules.d.ts +76 -0
  7. package/dist/auctionRules.d.ts.map +1 -0
  8. package/dist/auctionRules.js +106 -0
  9. package/dist/auctionRules.js.map +1 -0
  10. package/dist/auctions.d.ts.map +1 -1
  11. package/dist/auctions.js +19 -10
  12. package/dist/auctions.js.map +1 -1
  13. package/dist/client.d.ts +51 -2
  14. package/dist/client.d.ts.map +1 -1
  15. package/dist/client.js +123 -23
  16. package/dist/client.js.map +1 -1
  17. package/dist/commentHistory.d.ts +66 -0
  18. package/dist/commentHistory.d.ts.map +1 -0
  19. package/dist/commentHistory.js +125 -0
  20. package/dist/commentHistory.js.map +1 -0
  21. package/dist/engine.native.d.ts.map +1 -1
  22. package/dist/engine.native.js +17 -845
  23. package/dist/engine.native.js.map +1 -1
  24. package/dist/giveawayPrize.d.ts +13 -0
  25. package/dist/giveawayPrize.d.ts.map +1 -0
  26. package/dist/giveawayPrize.js +18 -0
  27. package/dist/giveawayPrize.js.map +1 -0
  28. package/dist/giveawayPrizeLines.d.ts +67 -0
  29. package/dist/giveawayPrizeLines.d.ts.map +1 -0
  30. package/dist/giveawayPrizeLines.js +48 -0
  31. package/dist/giveawayPrizeLines.js.map +1 -0
  32. package/dist/giveawayRoster.d.ts +53 -0
  33. package/dist/giveawayRoster.d.ts.map +1 -0
  34. package/dist/giveawayRoster.js +93 -0
  35. package/dist/giveawayRoster.js.map +1 -0
  36. package/dist/heldComments.d.ts +29 -0
  37. package/dist/heldComments.d.ts.map +1 -0
  38. package/dist/heldComments.js +61 -0
  39. package/dist/heldComments.js.map +1 -0
  40. package/dist/hiddenShows.d.ts +34 -0
  41. package/dist/hiddenShows.d.ts.map +1 -0
  42. package/dist/hiddenShows.js +42 -0
  43. package/dist/hiddenShows.js.map +1 -0
  44. package/dist/index.d.ts +17 -2
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +86 -3
  47. package/dist/index.js.map +1 -1
  48. package/dist/liveShow.d.ts +58 -0
  49. package/dist/liveShow.d.ts.map +1 -0
  50. package/dist/liveShow.js +55 -0
  51. package/dist/liveShow.js.map +1 -0
  52. package/dist/pipWindow.d.ts +85 -0
  53. package/dist/pipWindow.d.ts.map +1 -0
  54. package/dist/pipWindow.js +88 -0
  55. package/dist/pipWindow.js.map +1 -0
  56. package/dist/polls.d.ts.map +1 -1
  57. package/dist/polls.js +3 -0
  58. package/dist/polls.js.map +1 -1
  59. package/dist/react/LiveSellingProvider.d.ts +10 -1
  60. package/dist/react/LiveSellingProvider.d.ts.map +1 -1
  61. package/dist/react/LiveSellingProvider.js +6 -2
  62. package/dist/react/LiveSellingProvider.js.map +1 -1
  63. package/dist/react/LiveVideoTarget.d.ts.map +1 -1
  64. package/dist/react/LiveVideoTarget.js +41 -3
  65. package/dist/react/LiveVideoTarget.js.map +1 -1
  66. package/dist/react/clocks.d.ts +29 -0
  67. package/dist/react/clocks.d.ts.map +1 -0
  68. package/dist/react/clocks.js +124 -0
  69. package/dist/react/clocks.js.map +1 -0
  70. package/dist/react/index.d.ts +7 -2
  71. package/dist/react/index.d.ts.map +1 -1
  72. package/dist/react/index.js +15 -1
  73. package/dist/react/index.js.map +1 -1
  74. package/dist/react/index.web.d.ts +9 -2
  75. package/dist/react/index.web.d.ts.map +1 -1
  76. package/dist/react/index.web.js +27 -4
  77. package/dist/react/index.web.js.map +1 -1
  78. package/dist/react/startSignIn.d.ts +3 -0
  79. package/dist/react/startSignIn.d.ts.map +1 -0
  80. package/dist/react/startSignIn.js +19 -0
  81. package/dist/react/startSignIn.js.map +1 -0
  82. package/dist/react/useAuctionBidGate.d.ts +54 -4
  83. package/dist/react/useAuctionBidGate.d.ts.map +1 -1
  84. package/dist/react/useAuctionBidGate.js +169 -25
  85. package/dist/react/useAuctionBidGate.js.map +1 -1
  86. package/dist/react/useAuctionWins.d.ts +9 -1
  87. package/dist/react/useAuctionWins.d.ts.map +1 -1
  88. package/dist/react/useAuctionWins.js +9 -3
  89. package/dist/react/useAuctionWins.js.map +1 -1
  90. package/dist/react/useGiveawayEntry.d.ts +59 -0
  91. package/dist/react/useGiveawayEntry.d.ts.map +1 -0
  92. package/dist/react/useGiveawayEntry.js +170 -0
  93. package/dist/react/useGiveawayEntry.js.map +1 -0
  94. package/dist/react/useGiveawayPrize.d.ts +12 -0
  95. package/dist/react/useGiveawayPrize.d.ts.map +1 -0
  96. package/dist/react/useGiveawayPrize.js +53 -0
  97. package/dist/react/useGiveawayPrize.js.map +1 -0
  98. package/dist/react/useHiddenShows.d.ts +10 -0
  99. package/dist/react/useHiddenShows.d.ts.map +1 -0
  100. package/dist/react/useHiddenShows.js +30 -0
  101. package/dist/react/useHiddenShows.js.map +1 -0
  102. package/dist/react/useLiveSession.d.ts +7 -3
  103. package/dist/react/useLiveSession.d.ts.map +1 -1
  104. package/dist/react/useLiveSession.js +522 -157
  105. package/dist/react/useLiveSession.js.map +1 -1
  106. package/dist/react/useLiveShow.d.ts +3 -0
  107. package/dist/react/useLiveShow.d.ts.map +1 -0
  108. package/dist/react/useLiveShow.js +21 -0
  109. package/dist/react/useLiveShow.js.map +1 -0
  110. package/dist/react/useLiveStreams.d.ts.map +1 -1
  111. package/dist/react/useLiveStreams.js +6 -2
  112. package/dist/react/useLiveStreams.js.map +1 -1
  113. package/dist/react/useOngoingLive.d.ts +1 -0
  114. package/dist/react/useOngoingLive.d.ts.map +1 -1
  115. package/dist/react/useOngoingLive.js +7 -1
  116. package/dist/react/useOngoingLive.js.map +1 -1
  117. package/dist/react/useReplays.d.ts +12 -0
  118. package/dist/react/useReplays.d.ts.map +1 -1
  119. package/dist/react/useReplays.js +56 -24
  120. package/dist/react/useReplays.js.map +1 -1
  121. package/dist/react/useStreamInfo.d.ts +13 -2
  122. package/dist/react/useStreamInfo.d.ts.map +1 -1
  123. package/dist/react/useStreamInfo.js +31 -5
  124. package/dist/react/useStreamInfo.js.map +1 -1
  125. package/dist/replayPages.d.ts +31 -0
  126. package/dist/replayPages.d.ts.map +1 -0
  127. package/dist/replayPages.js +34 -0
  128. package/dist/replayPages.js.map +1 -0
  129. package/dist/replays.d.ts +7 -0
  130. package/dist/replays.d.ts.map +1 -1
  131. package/dist/replays.js +52 -22
  132. package/dist/replays.js.map +1 -1
  133. package/dist/session.d.ts +39 -6
  134. package/dist/session.d.ts.map +1 -1
  135. package/dist/session.js +209 -22
  136. package/dist/session.js.map +1 -1
  137. package/dist/sessionTypes.d.ts +190 -14
  138. package/dist/sessionTypes.d.ts.map +1 -1
  139. package/dist/sessionTypes.js +2 -1
  140. package/dist/sessionTypes.js.map +1 -1
  141. package/dist/shopifyCommerce.d.ts +149 -0
  142. package/dist/shopifyCommerce.d.ts.map +1 -0
  143. package/dist/shopifyCommerce.js +123 -0
  144. package/dist/shopifyCommerce.js.map +1 -0
  145. package/dist/shopifyIdentity.d.ts +51 -0
  146. package/dist/shopifyIdentity.d.ts.map +1 -0
  147. package/dist/shopifyIdentity.js +52 -0
  148. package/dist/shopifyIdentity.js.map +1 -0
  149. package/dist/shopifyIds.d.ts +9 -0
  150. package/dist/shopifyIds.d.ts.map +1 -0
  151. package/dist/shopifyIds.js +18 -0
  152. package/dist/shopifyIds.js.map +1 -0
  153. package/dist/showLinks.d.ts +24 -0
  154. package/dist/showLinks.d.ts.map +1 -0
  155. package/dist/showLinks.js +23 -0
  156. package/dist/showLinks.js.map +1 -0
  157. package/dist/showLots.d.ts +28 -0
  158. package/dist/showLots.d.ts.map +1 -0
  159. package/dist/showLots.js +51 -0
  160. package/dist/showLots.js.map +1 -0
  161. package/dist/showNames.d.ts +45 -0
  162. package/dist/showNames.d.ts.map +1 -0
  163. package/dist/showNames.js +74 -0
  164. package/dist/showNames.js.map +1 -0
  165. package/dist/streams.d.ts +27 -1
  166. package/dist/streams.d.ts.map +1 -1
  167. package/dist/streams.js +90 -21
  168. package/dist/streams.js.map +1 -1
  169. package/dist/types.d.ts +195 -8
  170. package/dist/types.d.ts.map +1 -1
  171. package/dist/types.js +2 -1
  172. package/dist/types.js.map +1 -1
  173. package/dist/wire.d.ts +31 -0
  174. package/dist/wire.d.ts.map +1 -1
  175. package/dist/wire.js +25 -0
  176. package/dist/wire.js.map +1 -1
  177. package/dist/zego.d.ts +3 -1
  178. package/dist/zego.d.ts.map +1 -1
  179. package/dist/zego.js +1 -1
  180. package/dist/zegoEngine.d.ts +168 -0
  181. package/dist/zegoEngine.d.ts.map +1 -0
  182. package/dist/zegoEngine.js +1052 -0
  183. package/dist/zegoEngine.js.map +1 -0
  184. package/package.json +3 -2
@@ -0,0 +1,66 @@
1
+ import type { LiveComment } from './types';
2
+ /**
3
+ * How many of the most recent lines to hand over. The pane shows a handful and scrolls; a rejoining
4
+ * shopper wants the tail of the conversation, not an hour of it.
5
+ */
6
+ export declare const COMMENT_HISTORY_WINDOW = 40;
7
+ /**
8
+ * Asked for wider than the window because the gateway stores every line two to four times: forty
9
+ * lines can take four times as many rows, and a tighter read would come back with ten.
10
+ */
11
+ export declare const COMMENT_HISTORY_FETCH_LIMIT: number;
12
+ /**
13
+ * Two identical lines closer together than this are the store's own copies, not someone saying the
14
+ * same thing twice. Generous — the copies seen land milliseconds apart — because the costs are
15
+ * lopsided: collapsing a genuine repeat loses one line, keeping the copies makes the pane look broken.
16
+ */
17
+ export declare const DUPLICATE_ROW_WINDOW_MS = 5000;
18
+ /**
19
+ * The name the host dashboard stores the host's OWN lines under. The room broadcasts the same lines
20
+ * under the brand (`LiveStream.hostName`), and a shopper reading "You" would think they had said it.
21
+ */
22
+ export declare const HOST_SELF_NAME = "You";
23
+ /** One row of `/live-streaming/comments`. */
24
+ export interface RawHistoryComment {
25
+ comment_id?: string | number | null;
26
+ comment?: string | null;
27
+ user_name?: string | null;
28
+ source?: string | null;
29
+ /** The host mutes a viewer for everyone by flagging their lines rather than deleting them. */
30
+ muted?: boolean | null;
31
+ /** Milliseconds since the show started; what the rows are ordered by. */
32
+ relative_timestamp?: number | string | null;
33
+ }
34
+ /**
35
+ * The gateway's rows as comments, oldest first, the last `COMMENT_HISTORY_WINDOW` of them.
36
+ *
37
+ * - Muted lines and empty lines are left out.
38
+ * - Sorted rather than reversed: the wire is newest first today, but the order is the service's to
39
+ * change. Ties keep the order they arrived in.
40
+ * - A run of identical lines (same speaker, same words) within `DUPLICATE_ROW_WINDOW_MS` of the last
41
+ * one kept is one line.
42
+ * - `isOwn` is false on every line: each stored row carries the HOST account's `user_id`, viewer lines
43
+ * included, so nothing says which device wrote it. `mergeCommentHistory` re-marks by name.
44
+ */
45
+ export declare function toCommentHistory(rows: unknown): LiveComment[];
46
+ export interface CommentHistoryContext {
47
+ /** `LiveStream.hostName` — what the room calls the host, and what "You" in the history means. */
48
+ hostName: string | null;
49
+ /** The name this device comments under (`session.viewerName`), to mark its earlier lines as its own. */
50
+ ownName: string | null;
51
+ }
52
+ /**
53
+ * History in front of the comments the room has delivered, with nothing said twice.
54
+ *
55
+ * - A history line is dropped when the room already delivered the same speaker saying the same words.
56
+ * "You" counts as the host for that comparison, because the dashboard stores the host's lines as
57
+ * "You" while the room broadcasts them under the brand — the duplicated "won the Giveaway" line.
58
+ * - A history line is also dropped when its words match one of this device's own delivered lines,
59
+ * whatever name it carries: a comment sent in the same moment as a sign-in can carry another name.
60
+ * - A kept "You" line is renamed to the host, and a kept USER line under this device's name is marked
61
+ * `isOwn`.
62
+ *
63
+ * Returns `live` itself when there is nothing to add, so an unchanged list costs no render.
64
+ */
65
+ export declare function mergeCommentHistory(history: LiveComment[], live: LiveComment[], context: CommentHistoryContext): LiveComment[];
66
+ //# sourceMappingURL=commentHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commentHistory.d.ts","sourceRoot":"","sources":["../src/commentHistory.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,2BAA2B,QAA6B,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,OAAQ,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAQ,CAAC;AAEpC,6CAA6C;AAC7C,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,8FAA8F;IAC9F,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAC7C;AAOD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,WAAW,EAAE,CA8B7D;AAED,MAAM,WAAW,qBAAqB;IACpC,iGAAiG;IACjG,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wGAAwG;IACxG,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,WAAW,EAAE,EACtB,IAAI,EAAE,WAAW,EAAE,EACnB,OAAO,EAAE,qBAAqB,GAC7B,WAAW,EAAE,CAsBf"}
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HOST_SELF_NAME = exports.DUPLICATE_ROW_WINDOW_MS = exports.COMMENT_HISTORY_FETCH_LIMIT = exports.COMMENT_HISTORY_WINDOW = void 0;
4
+ exports.toCommentHistory = toCommentHistory;
5
+ exports.mergeCommentHistory = mergeCommentHistory;
6
+ /**
7
+ * What the room said before this viewer arrived — ported from Freckled Poppy's `liveCommentHistory.ts`
8
+ * and the merge on its Live screen.
9
+ *
10
+ * A live room's comments arrive over the Zego room and nowhere else, so the pane started EMPTY every
11
+ * time the session did — and the session starts from nothing on every launch. A shopper who reopens the
12
+ * app comes back to a show they were part of and cannot see a word of it.
13
+ *
14
+ * `/live-streaming/comments?streaming_id=…` closes that gap: anonymous, company header only, newest
15
+ * first, and **filled while the show is on air** (for a finished recording the same route answers an
16
+ * empty list; a replay's chat comes from the CDN file instead — see `replays.comments`).
17
+ *
18
+ * Pure, so it is tested without a room: `toCommentHistory` reads the gateway's rows, and
19
+ * `mergeCommentHistory` puts them in front of what the room has delivered since.
20
+ */
21
+ const showNames_1 = require("./showNames");
22
+ /**
23
+ * How many of the most recent lines to hand over. The pane shows a handful and scrolls; a rejoining
24
+ * shopper wants the tail of the conversation, not an hour of it.
25
+ */
26
+ exports.COMMENT_HISTORY_WINDOW = 40;
27
+ /**
28
+ * Asked for wider than the window because the gateway stores every line two to four times: forty
29
+ * lines can take four times as many rows, and a tighter read would come back with ten.
30
+ */
31
+ exports.COMMENT_HISTORY_FETCH_LIMIT = exports.COMMENT_HISTORY_WINDOW * 4;
32
+ /**
33
+ * Two identical lines closer together than this are the store's own copies, not someone saying the
34
+ * same thing twice. Generous — the copies seen land milliseconds apart — because the costs are
35
+ * lopsided: collapsing a genuine repeat loses one line, keeping the copies makes the pane look broken.
36
+ */
37
+ exports.DUPLICATE_ROW_WINDOW_MS = 5000;
38
+ /**
39
+ * The name the host dashboard stores the host's OWN lines under. The room broadcasts the same lines
40
+ * under the brand (`LiveStream.hostName`), and a shopper reading "You" would think they had said it.
41
+ */
42
+ exports.HOST_SELF_NAME = 'You';
43
+ function toCommentSource(source) {
44
+ const upper = source === null || source === void 0 ? void 0 : source.trim().toUpperCase();
45
+ return upper === 'HOST' || upper === 'MODERATOR' || upper === 'TIP' ? upper : 'USER';
46
+ }
47
+ /**
48
+ * The gateway's rows as comments, oldest first, the last `COMMENT_HISTORY_WINDOW` of them.
49
+ *
50
+ * - Muted lines and empty lines are left out.
51
+ * - Sorted rather than reversed: the wire is newest first today, but the order is the service's to
52
+ * change. Ties keep the order they arrived in.
53
+ * - A run of identical lines (same speaker, same words) within `DUPLICATE_ROW_WINDOW_MS` of the last
54
+ * one kept is one line.
55
+ * - `isOwn` is false on every line: each stored row carries the HOST account's `user_id`, viewer lines
56
+ * included, so nothing says which device wrote it. `mergeCommentHistory` re-marks by name.
57
+ */
58
+ function toCommentHistory(rows) {
59
+ var _a, _b;
60
+ if (!Array.isArray(rows))
61
+ return [];
62
+ const said = rows
63
+ .map((raw, index) => ({ raw, index }))
64
+ .filter((row) => !!row.raw && typeof row.raw.comment === 'string' && !!row.raw.comment.trim() && !row.raw.muted)
65
+ .map((row) => { var _a; return ({ ...row, atMs: Number((_a = row.raw.relative_timestamp) !== null && _a !== void 0 ? _a : 0) || 0 }); })
66
+ .sort((a, b) => a.atMs - b.atMs || a.index - b.index);
67
+ const lastSaidAt = new Map();
68
+ const kept = [];
69
+ for (const { raw, index, atMs } of said) {
70
+ const text = String(raw.comment);
71
+ // Never an email: the stored rows keep whatever an older app published (`publicName`).
72
+ const userName = (_a = (0, showNames_1.publicName)(raw.user_name)) !== null && _a !== void 0 ? _a : 'Anonymous';
73
+ const sameLine = `${userName}\u0000${text}`;
74
+ const previous = lastSaidAt.get(sameLine);
75
+ if (previous !== undefined && atMs - previous <= exports.DUPLICATE_ROW_WINDOW_MS)
76
+ continue;
77
+ lastSaidAt.set(sameLine, atMs);
78
+ kept.push({
79
+ id: `history-${(_b = raw.comment_id) !== null && _b !== void 0 ? _b : index}`,
80
+ text,
81
+ userName,
82
+ source: toCommentSource(raw.source),
83
+ isOwn: false,
84
+ });
85
+ }
86
+ return kept.slice(-exports.COMMENT_HISTORY_WINDOW);
87
+ }
88
+ /**
89
+ * History in front of the comments the room has delivered, with nothing said twice.
90
+ *
91
+ * - A history line is dropped when the room already delivered the same speaker saying the same words.
92
+ * "You" counts as the host for that comparison, because the dashboard stores the host's lines as
93
+ * "You" while the room broadcasts them under the brand — the duplicated "won the Giveaway" line.
94
+ * - A history line is also dropped when its words match one of this device's own delivered lines,
95
+ * whatever name it carries: a comment sent in the same moment as a sign-in can carry another name.
96
+ * - A kept "You" line is renamed to the host, and a kept USER line under this device's name is marked
97
+ * `isOwn`.
98
+ *
99
+ * Returns `live` itself when there is nothing to add, so an unchanged list costs no render.
100
+ */
101
+ function mergeCommentHistory(history, live, context) {
102
+ var _a, _b;
103
+ if (!history.length)
104
+ return live;
105
+ const host = ((_a = context.hostName) === null || _a === void 0 ? void 0 : _a.trim()) || null;
106
+ const ownName = ((_b = context.ownName) === null || _b === void 0 ? void 0 : _b.trim()) || null;
107
+ const speaker = (name) => {
108
+ const trimmed = name.trim();
109
+ return trimmed === exports.HOST_SELF_NAME && host ? host : trimmed;
110
+ };
111
+ const sameLine = (comment) => `${speaker(comment.userName)}\u0000${comment.text}`;
112
+ const delivered = new Set(live.map(sameLine));
113
+ const ownWords = new Set(live.filter((comment) => comment.isOwn).map((comment) => comment.text));
114
+ const earlier = history
115
+ .filter((comment) => !delivered.has(sameLine(comment)) && !ownWords.has(comment.text))
116
+ .map((comment) => {
117
+ const userName = speaker(comment.userName);
118
+ const isOwn = comment.isOwn || (comment.source === 'USER' && !!ownName && userName === ownName);
119
+ return userName === comment.userName && isOwn === comment.isOwn
120
+ ? comment
121
+ : { ...comment, userName, isOwn };
122
+ });
123
+ return earlier.length ? [...earlier, ...live] : live;
124
+ }
125
+ //# sourceMappingURL=commentHistory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commentHistory.js","sourceRoot":"","sources":["../src/commentHistory.ts"],"names":[],"mappings":";;;AAuEA,4CA8BC;AAsBD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OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO,IAAI,QAAQ,KAAK,OAAO,CAAC,CAAC;QAChG,OAAO,QAAQ,KAAK,OAAO,CAAC,QAAQ,IAAI,KAAK,KAAK,OAAO,CAAC,KAAK;YAC7D,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;IACL,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"engine.native.d.ts","sourceRoot":"","sources":["../src/engine.native.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAKV,UAAU,EAMX,MAAM,SAAS,CAAC;AA+3BjB,eAAO,MAAM,MAAM,EAAE,UAAmC,CAAC"}
1
+ {"version":3,"file":"engine.native.d.ts","sourceRoot":"","sources":["../src/engine.native.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,eAAO,MAAM,MAAM,EAAE,UAMnB,CAAC"}