@streamplace/components 0.9.0 → 0.9.1
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/dist/components/chat/chat-box.d.ts.map +1 -1
- package/dist/components/chat/chat-box.js +90 -34
- package/dist/components/chat/chat-box.js.map +1 -1
- package/dist/components/chat/chat-message.d.ts +4 -0
- package/dist/components/chat/chat-message.d.ts.map +1 -1
- package/dist/components/chat/chat-message.js +3 -2
- package/dist/components/chat/chat-message.js.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/chat/chat.js +56 -3
- package/dist/components/chat/chat.js.map +1 -1
- package/dist/components/chat/emoji-suggestions.d.ts.map +1 -1
- package/dist/components/chat/emoji-suggestions.js +11 -11
- package/dist/components/chat/emoji-suggestions.js.map +1 -1
- package/dist/components/chat/mention-suggestions.d.ts.map +1 -1
- package/dist/components/chat/mention-suggestions.js +20 -19
- package/dist/components/chat/mention-suggestions.js.map +1 -1
- package/dist/components/chat/system-message.d.ts +5 -1
- package/dist/components/chat/system-message.d.ts.map +1 -1
- package/dist/components/chat/system-message.js +4 -4
- package/dist/components/chat/system-message.js.map +1 -1
- package/dist/components/mobile-player/shared.d.ts +1 -1
- package/dist/components/mobile-player/shared.d.ts.map +1 -1
- package/dist/components/mobile-player/shared.js +11 -10
- package/dist/components/mobile-player/shared.js.map +1 -1
- package/dist/components/mobile-player/ui/viewer-context-menu.d.ts +1 -1
- package/dist/components/mobile-player/ui/viewer-context-menu.d.ts.map +1 -1
- package/dist/components/mobile-player/ui/viewer-context-menu.js +60 -43
- package/dist/components/mobile-player/ui/viewer-context-menu.js.map +1 -1
- package/dist/components/stream-notification/index.d.ts +3 -0
- package/dist/components/stream-notification/index.d.ts.map +1 -0
- package/dist/components/stream-notification/index.js +9 -0
- package/dist/components/stream-notification/index.js.map +1 -0
- package/dist/components/stream-notification/stream-notification-manager.d.ts +36 -0
- package/dist/components/stream-notification/stream-notification-manager.d.ts.map +1 -0
- package/dist/components/stream-notification/stream-notification-manager.js +96 -0
- package/dist/components/stream-notification/stream-notification-manager.js.map +1 -0
- package/dist/components/stream-notification/stream-notification.d.ts +5 -0
- package/dist/components/stream-notification/stream-notification.d.ts.map +1 -0
- package/dist/components/stream-notification/stream-notification.js +146 -0
- package/dist/components/stream-notification/stream-notification.js.map +1 -0
- package/dist/components/stream-notification/teleport-notification.d.ts +8 -0
- package/dist/components/stream-notification/teleport-notification.d.ts.map +1 -0
- package/dist/components/stream-notification/teleport-notification.js +116 -0
- package/dist/components/stream-notification/teleport-notification.js.map +1 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +7 -0
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/dropdown.d.ts +4 -0
- package/dist/components/ui/dropdown.d.ts.map +1 -1
- package/dist/components/ui/dropdown.js +41 -15
- package/dist/components/ui/dropdown.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/portal.d.ts +2 -0
- package/dist/components/ui/portal.d.ts.map +1 -0
- package/dist/components/ui/portal.js +5 -0
- package/dist/components/ui/portal.js.map +1 -0
- package/dist/components/ui/portal.web.d.ts +11 -0
- package/dist/components/ui/portal.web.d.ts.map +1 -0
- package/dist/components/ui/portal.web.js +22 -0
- package/dist/components/ui/portal.web.js.map +1 -0
- package/dist/components/ui/resizeable.d.ts +2 -1
- package/dist/components/ui/resizeable.d.ts.map +1 -1
- package/dist/components/ui/resizeable.js +68 -26
- package/dist/components/ui/resizeable.js.map +1 -1
- package/dist/components/ui/text.d.ts +1 -1
- package/dist/components/ui/view.d.ts +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/slash-commands/teleport.d.ts +4 -0
- package/dist/lib/slash-commands/teleport.d.ts.map +1 -0
- package/dist/lib/slash-commands/teleport.js +110 -0
- package/dist/lib/slash-commands/teleport.js.map +1 -0
- package/dist/lib/slash-commands.d.ts +16 -0
- package/dist/lib/slash-commands.d.ts.map +1 -0
- package/dist/lib/slash-commands.js +46 -0
- package/dist/lib/slash-commands.js.map +1 -0
- package/dist/lib/stream-notifications.d.ts +13 -0
- package/dist/lib/stream-notifications.d.ts.map +1 -0
- package/dist/lib/stream-notifications.js +46 -0
- package/dist/lib/stream-notifications.js.map +1 -0
- package/dist/lib/system-messages.d.ts +4 -8
- package/dist/lib/system-messages.d.ts.map +1 -1
- package/dist/lib/system-messages.js +38 -2
- package/dist/lib/system-messages.js.map +1 -1
- package/dist/lib/theme/atoms.d.ts +193 -193
- package/dist/livestream-provider/index.d.ts +7 -2
- package/dist/livestream-provider/index.d.ts.map +1 -1
- package/dist/livestream-provider/index.js +72 -4
- package/dist/livestream-provider/index.js.map +1 -1
- package/dist/livestream-store/livestream-state.d.ts +4 -1
- package/dist/livestream-store/livestream-state.d.ts.map +1 -1
- package/dist/livestream-store/livestream-store.d.ts.map +1 -1
- package/dist/livestream-store/livestream-store.js +3 -0
- package/dist/livestream-store/livestream-store.js.map +1 -1
- package/dist/livestream-store/websocket-consumer.d.ts.map +1 -1
- package/dist/livestream-store/websocket-consumer.js +30 -43
- package/dist/livestream-store/websocket-consumer.js.map +1 -1
- package/dist/streamplace-store/index.d.ts +1 -0
- package/dist/streamplace-store/index.d.ts.map +1 -1
- package/dist/streamplace-store/index.js +1 -0
- package/dist/streamplace-store/index.js.map +1 -1
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/37be0eec +0 -0
- package/package.json +4 -2
- package/src/components/chat/chat-box.tsx +126 -53
- package/src/components/chat/chat-message.tsx +1 -1
- package/src/components/chat/chat.tsx +79 -5
- package/src/components/chat/emoji-suggestions.tsx +27 -25
- package/src/components/chat/mention-suggestions.tsx +36 -33
- package/src/components/chat/system-message.tsx +14 -5
- package/src/components/mobile-player/shared.tsx +2 -1
- package/src/components/mobile-player/ui/viewer-context-menu.tsx +192 -166
- package/src/components/stream-notification/index.ts +5 -0
- package/src/components/stream-notification/stream-notification-manager.ts +140 -0
- package/src/components/stream-notification/stream-notification.tsx +227 -0
- package/src/components/stream-notification/teleport-notification.tsx +187 -0
- package/src/components/ui/button.tsx +7 -0
- package/src/components/ui/dropdown.tsx +96 -26
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/portal.tsx +1 -0
- package/src/components/ui/portal.web.tsx +37 -0
- package/src/components/ui/resizeable.tsx +89 -35
- package/src/index.tsx +3 -0
- package/src/lib/slash-commands/teleport.ts +136 -0
- package/src/lib/slash-commands.ts +65 -0
- package/src/lib/stream-notifications.ts +51 -0
- package/src/lib/system-messages.ts +52 -2
- package/src/livestream-provider/index.tsx +106 -3
- package/src/livestream-store/livestream-state.tsx +4 -0
- package/src/livestream-store/livestream-store.tsx +3 -0
- package/src/livestream-store/websocket-consumer.tsx +35 -54
- package/src/streamplace-store/index.tsx +1 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { Main } from "streamplace/src/lexicons/types/place/stream/richtext/facet";
|
|
2
|
+
import { SystemMessageType } from "../../lib/system-messages";
|
|
1
3
|
interface SystemMessageProps {
|
|
4
|
+
variant: SystemMessageType;
|
|
2
5
|
title: string;
|
|
3
6
|
timestamp: Date;
|
|
7
|
+
facets?: Main[];
|
|
4
8
|
}
|
|
5
|
-
export declare function SystemMessage({ title, timestamp }: SystemMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SystemMessage({ variant, title, timestamp, facets, }: SystemMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export default SystemMessage;
|
|
7
11
|
//# sourceMappingURL=system-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-message.d.ts","sourceRoot":"","sources":["../../../src/components/chat/system-message.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system-message.d.ts","sourceRoot":"","sources":["../../../src/components/chat/system-message.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,4DAA4D,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAK9D,UAAU,kBAAkB;IAC1B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,GACP,EAAE,kBAAkB,2CAyBpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -4,17 +4,17 @@ exports.SystemMessage = SystemMessage;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_native_1 = require("react-native");
|
|
6
6
|
const ui_1 = require("../../ui");
|
|
7
|
-
const ui_2 = require("../ui");
|
|
8
7
|
const text_1 = require("../ui/text");
|
|
9
|
-
|
|
8
|
+
const chat_message_1 = require("./chat-message");
|
|
9
|
+
function SystemMessage({ variant, title, timestamp, facets, }) {
|
|
10
10
|
return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [ui_1.w.percent[100], ui_1.px[2], ui_1.pb[2]], children: [(0, jsx_runtime_1.jsx)(text_1.Code, { color: "muted", tracking: "widest", style: [ui_1.pl[12], ui_1.ml[1]], children: "SYSTEM MESSAGE" }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [ui_1.gap.all[2], ui_1.layout.flex.row], children: [(0, jsx_runtime_1.jsx)(text_1.Text, { style: {
|
|
11
11
|
fontVariant: ["tabular-nums"],
|
|
12
|
-
color:
|
|
12
|
+
color: ui_1.colors.gray[400],
|
|
13
13
|
}, children: timestamp.toLocaleTimeString([], {
|
|
14
14
|
hour: "2-digit",
|
|
15
15
|
minute: "2-digit",
|
|
16
16
|
hour12: false,
|
|
17
|
-
}) }), (0, jsx_runtime_1.jsx)(text_1.Text, { weight: "bold", color: "default", style: [ui_1.flex.shrink[1]], children: title })] })] }));
|
|
17
|
+
}) }), (0, jsx_runtime_1.jsx)(text_1.Text, { weight: "bold", color: "default", style: [ui_1.flex.shrink[1]], children: (0, jsx_runtime_1.jsx)(chat_message_1.RichTextMessage, { facets: facets, text: title }) })] })] }));
|
|
18
18
|
}
|
|
19
19
|
exports.default = SystemMessage;
|
|
20
20
|
//# sourceMappingURL=system-message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-message.js","sourceRoot":"","sources":["../../../src/components/chat/system-message.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"system-message.js","sourceRoot":"","sources":["../../../src/components/chat/system-message.tsx"],"names":[],"mappings":";;AAcA,sCA8BC;;AA5CD,+CAAoC;AAGpC,iCAAwE;AACxE,qCAAwC;AACxC,iDAAiD;AASjD,SAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,GACa;IACnB,OAAO,CACL,wBAAC,mBAAI,IAAC,KAAK,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAE,CAAC,CAAC,CAAC,EAAE,OAAE,CAAC,CAAC,CAAC,CAAC,aACzC,uBAAC,WAAI,IAAC,KAAK,EAAC,OAAO,EAAC,QAAQ,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,OAAE,CAAC,EAAE,CAAC,EAAE,OAAE,CAAC,CAAC,CAAC,CAAC,+BAErD,EACP,wBAAC,mBAAI,IAAC,KAAK,EAAE,CAAC,QAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAM,CAAC,IAAI,CAAC,GAAG,CAAC,aACxC,uBAAC,WAAI,IACH,KAAK,EAAE;4BACL,WAAW,EAAE,CAAC,cAAc,CAAC;4BAC7B,KAAK,EAAE,WAAM,CAAC,IAAI,CAAC,GAAG,CAAC;yBACxB,YAEA,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE;4BAChC,IAAI,EAAE,SAAS;4BACf,MAAM,EAAE,SAAS;4BACjB,MAAM,EAAE,KAAK;yBACd,CAAC,GACG,EACP,uBAAC,WAAI,IAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,CAAC,SAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,YACzD,uBAAC,8BAAe,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,GAAI,GAC3C,IACF,IACF,CACR,CAAC;AACJ,CAAC;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/mobile-player/shared.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/mobile-player/shared.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAUjE,wBAAgB,QAAQ,CACtB,KAAK,EAAE;IACL,GAAG,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,EACD,QAAQ,EAAE,cAAc,GACvB;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB,CAoCA"}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.srcToUrl = srcToUrl;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
const
|
|
5
|
+
const player_state_1 = require("../../player-store/player-state");
|
|
6
|
+
const streamplace_store_1 = require("../../streamplace-store");
|
|
6
7
|
const protocolSuffixes = {
|
|
7
|
-
m3u8:
|
|
8
|
-
mp4:
|
|
9
|
-
webm:
|
|
10
|
-
webrtc:
|
|
8
|
+
m3u8: player_state_1.PlayerProtocol.HLS,
|
|
9
|
+
mp4: player_state_1.PlayerProtocol.PROGRESSIVE_MP4,
|
|
10
|
+
webm: player_state_1.PlayerProtocol.PROGRESSIVE_WEBM,
|
|
11
|
+
webrtc: player_state_1.PlayerProtocol.WEBRTC,
|
|
11
12
|
};
|
|
12
13
|
function srcToUrl(props, protocol) {
|
|
13
|
-
const url = (0,
|
|
14
|
+
const url = (0, streamplace_store_1.useStreamplaceStore)((x) => x.url);
|
|
14
15
|
return (0, react_1.useMemo)(() => {
|
|
15
16
|
if (props.src.startsWith("http://") || props.src.startsWith("https://")) {
|
|
16
17
|
const segments = props.src.split(/[./]/);
|
|
@@ -26,7 +27,7 @@ function srcToUrl(props, protocol) {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
let outUrl;
|
|
29
|
-
if (protocol ===
|
|
30
|
+
if (protocol === player_state_1.PlayerProtocol.HLS) {
|
|
30
31
|
if (props.selectedRendition === "auto") {
|
|
31
32
|
outUrl = `${url}/api/playback/${props.src}/hls/index.m3u8`;
|
|
32
33
|
}
|
|
@@ -34,13 +35,13 @@ function srcToUrl(props, protocol) {
|
|
|
34
35
|
outUrl = `${url}/api/playback/${props.src}/hls/index.m3u8?rendition=${props.selectedRendition || "source"}`;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
else if (protocol ===
|
|
38
|
+
else if (protocol === player_state_1.PlayerProtocol.PROGRESSIVE_MP4) {
|
|
38
39
|
outUrl = `${url}/api/playback/${props.src}/stream.mp4`;
|
|
39
40
|
}
|
|
40
|
-
else if (protocol ===
|
|
41
|
+
else if (protocol === player_state_1.PlayerProtocol.PROGRESSIVE_WEBM) {
|
|
41
42
|
outUrl = `${url}/api/playback/${props.src}/stream.webm`;
|
|
42
43
|
}
|
|
43
|
-
else if (protocol ===
|
|
44
|
+
else if (protocol === player_state_1.PlayerProtocol.WEBRTC) {
|
|
44
45
|
outUrl = `${url}/api/playback/${props.src}/webrtc?rendition=${props.selectedRendition || "source"}`;
|
|
45
46
|
}
|
|
46
47
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/components/mobile-player/shared.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/components/mobile-player/shared.tsx"],"names":[],"mappings":";;AAWA,4BA6CC;AAxDD,iCAAgC;AAChC,kEAAiE;AACjE,+DAA8D;AAE9D,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,6BAAc,CAAC,GAAG;IACxB,GAAG,EAAE,6BAAc,CAAC,eAAe;IACnC,IAAI,EAAE,6BAAc,CAAC,gBAAgB;IACrC,MAAM,EAAE,6BAAc,CAAC,MAAM;CAC9B,CAAC;AAEF,SAAgB,QAAQ,CACtB,KAGC,EACD,QAAwB;IAKxB,MAAM,GAAG,GAAG,IAAA,uCAAmB,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC9C,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QAClB,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YACxE,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAC7C,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC7B,OAAO;oBACL,GAAG,EAAE,KAAK,CAAC,GAAG;oBACd,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAAC;iBACnC,CAAC;YACJ,CAAC;iBAAM,CAAC;g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1
1
|
export declare function ContextMenu({ dropdownPortalContainer, }: {
|
|
2
|
-
dropdownPortalContainer?:
|
|
2
|
+
dropdownPortalContainer?: string;
|
|
3
3
|
}): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ReportButton({ livestream, setReportModalOpen, setReportSubject, }: {
|
|
5
5
|
livestream: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/mobile-player/ui/viewer-context-menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viewer-context-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/mobile-player/ui/viewer-context-menu.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,WAAW,CAAC,EAC1B,uBAAuB,GACxB,EAAE;IACD,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,2CAiPA;AAED,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,kBAAkB,EAClB,gBAAgB,GACjB;;;;CAAA,2CAkBA"}
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContextMenu = ContextMenu;
|
|
4
4
|
exports.ReportButton = ReportButton;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
7
|
const dropdown_menu_1 = require("@rn-primitives/dropdown-menu");
|
|
7
8
|
const lucide_react_native_1 = require("lucide-react-native");
|
|
9
|
+
const react_1 = require("react");
|
|
8
10
|
const react_native_1 = require("react-native");
|
|
11
|
+
const react_native_reanimated_1 = tslib_1.__importStar(require("react-native-reanimated"));
|
|
9
12
|
const __1 = require("../../..");
|
|
10
|
-
const theme_1 = require("../../../lib/theme");
|
|
11
13
|
const livestream_store_1 = require("../../../livestream-store");
|
|
12
14
|
const player_store_1 = require("../../../player-store/");
|
|
13
15
|
const graph_1 = require("../../../streamplace-store/graph");
|
|
14
16
|
const ui_1 = require("../../../ui");
|
|
15
17
|
const ui_2 = require("../../ui");
|
|
16
18
|
function ContextMenu({ dropdownPortalContainer, }) {
|
|
19
|
+
const th = (0, ui_2.useTheme)();
|
|
17
20
|
const quality = (0, player_store_1.usePlayerStore)((x) => x.selectedRendition);
|
|
18
21
|
const setQuality = (0, player_store_1.usePlayerStore)((x) => x.setSelectedRendition);
|
|
19
22
|
const qualities = (0, livestream_store_1.useLivestreamStore)((x) => x.renditions);
|
|
@@ -28,6 +31,7 @@ function ContextMenu({ dropdownPortalContainer, }) {
|
|
|
28
31
|
const avatars = (0, __1.useAvatars)(profile?.did ? [profile?.did] : []);
|
|
29
32
|
const ls = (0, livestream_store_1.useLivestreamStore)((x) => x.livestream);
|
|
30
33
|
const segment = (0, livestream_store_1.useLivestreamStore)((x) => x.segment);
|
|
34
|
+
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
31
35
|
// Get content rights from the latest segment
|
|
32
36
|
const contentRights = segment?.contentRights;
|
|
33
37
|
const contentWarnings = segment?.contentWarnings?.warnings || [];
|
|
@@ -39,51 +43,64 @@ function ContextMenu({ dropdownPortalContainer, }) {
|
|
|
39
43
|
// are we on mobile? then do dropdowns
|
|
40
44
|
const isMobile = react_native_1.Platform.OS === "ios" || react_native_1.Platform.OS === "android";
|
|
41
45
|
// dummy portal for mobile
|
|
42
|
-
const Portal
|
|
46
|
+
//const Portal: typeof DropdownMenuPortal = DropdownMenu;
|
|
43
47
|
const DropdownMenuContent = ui_2.ResponsiveDropdownMenuContent;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
48
|
+
const iconRotate = (0, react_native_reanimated_1.useAnimatedStyle)(() => {
|
|
49
|
+
return {
|
|
50
|
+
transform: [
|
|
51
|
+
{
|
|
52
|
+
rotateZ: (0, react_native_reanimated_1.withTiming)(isOpen ? "240deg" : "0deg", {
|
|
53
|
+
duration: 650,
|
|
54
|
+
easing: react_native_reanimated_1.Easing.out(react_native_reanimated_1.Easing.ease),
|
|
55
|
+
}),
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
// rerender when dropdown portal container changes so we swap portals 'seamlessly'
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(ui_2.DropdownMenu, { onOpenChange: setIsOpen, children: [(0, jsx_runtime_1.jsx)(ui_2.DropdownMenuTrigger, { children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [iconRotate], children: (0, jsx_runtime_1.jsx)(lucide_react_native_1.Cog, { color: th.theme.colors.foreground }) }) }), (0, jsx_runtime_1.jsxs)(DropdownMenuContent, { side: "top", align: "end", portalHost: dropdownPortalContainer, children: [react_native_1.Platform.OS !== "web" && ((0, jsx_runtime_1.jsxs)(ui_2.DropdownMenuGroup, { title: "Streamer", children: [(0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
62
|
+
__1.zero.layout.flex.row,
|
|
63
|
+
__1.zero.layout.flex.center,
|
|
64
|
+
__1.zero.gap.all[3],
|
|
65
|
+
{ flex: 1, minWidth: 0 },
|
|
66
|
+
], children: [profile?.did && avatars[profile?.did]?.avatar && ((0, jsx_runtime_1.jsx)(react_native_1.Image, { source: {
|
|
67
|
+
uri: avatars[profile?.did]?.avatar,
|
|
68
|
+
}, style: { width: 42, height: 42, borderRadius: 999 }, resizeMode: "cover" }, "avatar")), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: { flex: 1, minWidth: 0 }, children: [(0, jsx_runtime_1.jsx)(react_native_1.View, { style: [
|
|
69
|
+
__1.zero.layout.flex.row,
|
|
70
|
+
__1.zero.layout.flex.alignCenter,
|
|
71
|
+
__1.zero.gap.all[2],
|
|
72
|
+
], children: (0, jsx_runtime_1.jsx)(react_native_1.Pressable, { onPress: () => {
|
|
73
|
+
if (profile?.handle) {
|
|
74
|
+
const url = `https://bsky.app/profile/${(0, __1.formatHandle)(profile)}`;
|
|
75
|
+
react_native_1.Linking.openURL(url);
|
|
76
|
+
}
|
|
77
|
+
}, children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: profile && (0, __1.formatHandleWithAt)(profile) }) }) }), (0, jsx_runtime_1.jsx)(ui_2.Text, { color: "muted", size: "sm", numberOfLines: 2, ellipsizeMode: "tail", children: ls?.record.title || "Stream Title" })] })] }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuSeparator, {}), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuItem, { disabled: graphManager.isLoading || !profile?.did, onPress: async () => {
|
|
78
|
+
try {
|
|
79
|
+
if (graphManager.isFollowing) {
|
|
80
|
+
await graphManager.unfollow();
|
|
68
81
|
}
|
|
69
|
-
|
|
70
|
-
|
|
82
|
+
else {
|
|
83
|
+
await graphManager.follow();
|
|
71
84
|
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
console.error("Follow/unfollow error:", err);
|
|
88
|
+
}
|
|
89
|
+
}, children: (0, jsx_runtime_1.jsx)(ui_2.Text, { color: graphManager.isFollowing ? "destructive" : "default", children: graphManager.isLoading
|
|
90
|
+
? "Loading..."
|
|
91
|
+
: graphManager.isFollowing
|
|
92
|
+
? "Unfollow"
|
|
93
|
+
: "Follow" }) }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuSeparator, {}), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuItem, { onPress: () => {
|
|
94
|
+
if (profile?.handle) {
|
|
95
|
+
const url = `https://bsky.app/profile/${(0, __1.formatHandle)(profile)}`;
|
|
96
|
+
react_native_1.Linking.openURL(url);
|
|
97
|
+
}
|
|
98
|
+
}, children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: "View Profile on Bluesky" }) })] })), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuGroup, { children: (0, jsx_runtime_1.jsxs)(ui_2.DropdownMenuSub, { children: [(0, jsx_runtime_1.jsx)(ui_2.DropdownMenuSubTrigger, { subMenuTitle: "Quality", children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
|
|
99
|
+
__1.zero.flex.values[1],
|
|
100
|
+
isMobile ? __1.zero.layout.flex.row : __1.zero.layout.flex.column,
|
|
101
|
+
__1.zero.layout.flex.spaceBetween,
|
|
102
|
+
__1.zero.pr[4],
|
|
103
|
+
], children: [(0, jsx_runtime_1.jsx)(ui_2.Text, { children: "Quality" }), (0, jsx_runtime_1.jsxs)(ui_2.Text, { muted: true, size: isMobile ? "base" : "sm", children: [quality === "source" ? "Source" : quality, ",", " ", lowLatency ? "Low Latency" : ""] })] }) }), (0, jsx_runtime_1.jsxs)(ui_2.DropdownMenuSubContent, { portalHost: dropdownPortalContainer, children: [(0, jsx_runtime_1.jsx)(ui_2.DropdownMenuGroup, { title: "Resolution", children: (0, jsx_runtime_1.jsxs)(ui_2.DropdownMenuRadioGroup, { value: quality, onValueChange: setQuality, children: [(0, jsx_runtime_1.jsx)(ui_2.DropdownMenuRadioItem, { value: "source", children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: "Source (Original Quality)" }) }), qualities.map((r) => ((0, jsx_runtime_1.jsx)(ui_2.DropdownMenuRadioItem, { value: r.name, children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: r.name }) }, r.name)))] }) }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuGroup, { children: (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuCheckboxItem, { checked: lowLatency, onCheckedChange: () => setLowLatency(!lowLatency), children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: "Low Latency" }) }) }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuInfo, { description: "Reduces the delay between video and chat for a more real-time experience." })] })] }) }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuGroup, { title: "Advanced", children: (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuCheckboxItem, { checked: debugInfo, onCheckedChange: () => setShowDebugInfo(!debugInfo), children: (0, jsx_runtime_1.jsx)(ui_2.Text, { children: "Show Debug Info" }) }) }), (0, jsx_runtime_1.jsx)(ui_2.DropdownMenuGroup, { title: "Report", children: (0, jsx_runtime_1.jsx)(ReportButton, { livestream: livestream, setReportModalOpen: setReportModalOpen, setReportSubject: setReportSubject }) }), (0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [ui_1.pt[3], ui_1.px[2], ui_1.gap.all[2]], children: [contentWarnings && contentWarnings.length > 0 && ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [ui_1.gap.all[1]], children: [(0, jsx_runtime_1.jsx)(ui_2.Text, { size: "base", color: "muted", children: "Stream may contain" }), (0, jsx_runtime_1.jsx)(__1.ContentWarnings, { warnings: contentWarnings, compact: true })] })), contentRights && Object.keys(contentRights).length > 0 && ((0, jsx_runtime_1.jsx)(__1.ContentRights, { contentRights: contentRights, size: "xs", color: "muted" }))] })] })] }, dropdownPortalContainer));
|
|
87
104
|
}
|
|
88
105
|
function ReportButton({ livestream, setReportModalOpen, setReportSubject, }) {
|
|
89
106
|
const { onOpenChange } = (0, dropdown_menu_1.useRootContext)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-context-menu.js","sourceRoot":"","sources":["../../../../src/components/mobile-player/ui/viewer-context-menu.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"viewer-context-menu.js","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GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,GAAG,EAAE,UAAU,CAAC,GAAG;aACpB,CAAC,CAAC;QACL,CAAC,YAED,uBAAC,SAAI,uCAA4B,GAChB,CACpB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/stream-notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.streamNotificationManager = exports.streamNotification = exports.StreamNotificationProvider = void 0;
|
|
4
|
+
var stream_notification_1 = require("./stream-notification");
|
|
5
|
+
Object.defineProperty(exports, "StreamNotificationProvider", { enumerable: true, get: function () { return stream_notification_1.StreamNotificationProvider; } });
|
|
6
|
+
var stream_notification_manager_1 = require("./stream-notification-manager");
|
|
7
|
+
Object.defineProperty(exports, "streamNotification", { enumerable: true, get: function () { return stream_notification_manager_1.streamNotification; } });
|
|
8
|
+
Object.defineProperty(exports, "streamNotificationManager", { enumerable: true, get: function () { return stream_notification_manager_1.streamNotificationManager; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/stream-notification/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmE;AAA1D,iIAAA,0BAA0B,OAAA;AACnC,6EAGuC;AAFrC,iIAAA,kBAAkB,OAAA;AAClB,wIAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type NotificationConfig = {
|
|
2
|
+
id?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
render?: (isExiting: boolean, onDismiss: (reason?: "user" | "auto") => void, startTime?: number) => React.ReactNode;
|
|
5
|
+
duration?: number;
|
|
6
|
+
actionLabel?: string;
|
|
7
|
+
onAction?: () => void;
|
|
8
|
+
onDismiss?: (reason?: "user" | "auto") => void;
|
|
9
|
+
variant?: "default" | "info" | "warning";
|
|
10
|
+
};
|
|
11
|
+
export type StreamNotification = NotificationConfig & {
|
|
12
|
+
id: string;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
shouldDismiss?: boolean;
|
|
15
|
+
dismissReason?: "user" | "auto";
|
|
16
|
+
startTime?: number;
|
|
17
|
+
};
|
|
18
|
+
type Listener = (notifications: StreamNotification[]) => void;
|
|
19
|
+
declare class StreamNotificationManager {
|
|
20
|
+
private notifications;
|
|
21
|
+
private listeners;
|
|
22
|
+
private dismissTimers;
|
|
23
|
+
show(config: NotificationConfig): void;
|
|
24
|
+
requestDismiss(id: string, reason?: "user" | "auto"): void;
|
|
25
|
+
hide(id: string, reason?: "user" | "auto"): void;
|
|
26
|
+
getAll(): StreamNotification[];
|
|
27
|
+
subscribe(listener: Listener): () => void;
|
|
28
|
+
private notifyListeners;
|
|
29
|
+
}
|
|
30
|
+
export declare const streamNotificationManager: StreamNotificationManager;
|
|
31
|
+
export declare const streamNotification: {
|
|
32
|
+
show: (config: NotificationConfig) => void;
|
|
33
|
+
hide: (id: string) => void;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=stream-notification-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-notification-manager.d.ts","sourceRoot":"","sources":["../../../src/components/stream-notification/stream-notification-manager.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CACP,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,CAAC,MAAM,CAAC,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|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.streamNotification = exports.streamNotificationManager = void 0;
|
|
4
|
+
class StreamNotificationManager {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.notifications = [];
|
|
7
|
+
this.listeners = new Set();
|
|
8
|
+
this.dismissTimers = new Map();
|
|
9
|
+
}
|
|
10
|
+
show(config) {
|
|
11
|
+
const notification = {
|
|
12
|
+
id: config.id || `notification-${Date.now()}`,
|
|
13
|
+
message: config.message,
|
|
14
|
+
render: config.render,
|
|
15
|
+
duration: config.duration ?? 5,
|
|
16
|
+
actionLabel: config.actionLabel,
|
|
17
|
+
onAction: config.onAction,
|
|
18
|
+
onDismiss: config.onDismiss,
|
|
19
|
+
variant: config.variant ?? "default",
|
|
20
|
+
visible: true,
|
|
21
|
+
startTime: Date.now(),
|
|
22
|
+
};
|
|
23
|
+
// if notification with same ID exists, dismiss it first
|
|
24
|
+
const existingIndex = this.notifications.findIndex((n) => n.id === notification.id);
|
|
25
|
+
if (existingIndex !== -1) {
|
|
26
|
+
const existingTimer = this.dismissTimers.get(notification.id);
|
|
27
|
+
if (existingTimer) {
|
|
28
|
+
clearTimeout(existingTimer);
|
|
29
|
+
this.dismissTimers.delete(notification.id);
|
|
30
|
+
}
|
|
31
|
+
this.notifications = this.notifications.filter((n) => n.id !== notification.id);
|
|
32
|
+
}
|
|
33
|
+
this.notifications = [...this.notifications, notification];
|
|
34
|
+
this.notifyListeners();
|
|
35
|
+
// auto-dismiss if duration > 0
|
|
36
|
+
if (notification.duration && notification.duration > 0) {
|
|
37
|
+
const timer = setTimeout(() => {
|
|
38
|
+
this.requestDismiss(notification.id, "auto");
|
|
39
|
+
}, notification.duration * 1000);
|
|
40
|
+
this.dismissTimers.set(notification.id, timer);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
requestDismiss(id, reason = "user") {
|
|
44
|
+
const notification = this.notifications.find((n) => n.id === id);
|
|
45
|
+
if (!notification) {
|
|
46
|
+
console.log("Notification not found!");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// mark the notification for dismissal
|
|
50
|
+
notification.shouldDismiss = true;
|
|
51
|
+
notification.dismissReason = reason;
|
|
52
|
+
this.notifyListeners();
|
|
53
|
+
// after 500ms, just hide it for real
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
this.hide(id, reason);
|
|
56
|
+
}, 500);
|
|
57
|
+
}
|
|
58
|
+
hide(id, reason = "user") {
|
|
59
|
+
console.log("Hide called with id:", id, "reason:", reason);
|
|
60
|
+
console.log("Current notifications:", this.notifications.map((n) => n.id));
|
|
61
|
+
const notification = this.notifications.find((n) => n.id === id);
|
|
62
|
+
if (!notification) {
|
|
63
|
+
console.log("Notification not found!");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const timer = this.dismissTimers.get(id);
|
|
67
|
+
if (timer) {
|
|
68
|
+
clearTimeout(timer);
|
|
69
|
+
this.dismissTimers.delete(id);
|
|
70
|
+
}
|
|
71
|
+
this.notifications = this.notifications.filter((n) => n.id !== id);
|
|
72
|
+
console.log("Remaining notifications:", this.notifications.map((n) => n.id));
|
|
73
|
+
this.notifyListeners();
|
|
74
|
+
notification.onDismiss?.(reason);
|
|
75
|
+
}
|
|
76
|
+
getAll() {
|
|
77
|
+
return this.notifications;
|
|
78
|
+
}
|
|
79
|
+
subscribe(listener) {
|
|
80
|
+
this.listeners.add(listener);
|
|
81
|
+
return () => {
|
|
82
|
+
this.listeners.delete(listener);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
notifyListeners() {
|
|
86
|
+
this.listeners.forEach((listener) => {
|
|
87
|
+
listener(this.notifications);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.streamNotificationManager = new StreamNotificationManager();
|
|
92
|
+
exports.streamNotification = {
|
|
93
|
+
show: (config) => exports.streamNotificationManager.show(config),
|
|
94
|
+
hide: (id) => exports.streamNotificationManager.hide(id),
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=stream-notification-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-notification-manager.js","sourceRoot":"","sources":["../../../src/components/stream-notification/stream-notification-manager.ts"],"names":[],"mappings":";;;AAyBA,MAAM,yBAAyB;IAA/B;QACU,kBAAa,GAAyB,EAAE,CAAC;QACzC,cAAS,GAAkB,IAAI,GAAG,EAAE,CAAC;QACrC,kBAAa,GAAgC,IAAI,GAAG,EAAE,CAAC;IAwGjE,CAAC;IAtGC,IAAI,CAAC,MAA0B;QAC7B,MAAM,YAAY,GAAuB;YACvC,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,gBAAgB,IAAI,CAAC,GAAG,EAAE,EAAE;YAC7C,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,CAAC;YAC9B,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,SAAS;YACpC,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC;QAEF,wDAAwD;QACxD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAChD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,YAAY,CAAC,EAAE,CAChC,CAAC;QACF,IAAI,aAAa,KAAK,CAAC,CAAC,EAAE,CAAC;YACzB,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;YAC9D,IAAI,aAAa,EAAE,CAAC;gBAClB,YAAY,CAAC,aAAa,CAAC,CAAC;gBAC5B,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I,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,SAAS,CAAC,QAAkB;QAC1B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAClC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAEY,QAAA,yBAAyB,GAAG,IAAI,yBAAyB,EAAE,CAAC;AAE5D,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,CAAC,MAA0B,EAAE,EAAE,CAAC,iCAAyB,CAAC,IAAI,CAAC,MAAM,CAAC;IAC5E,IAAI,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,iCAAyB,CAAC,IAAI,CAAC,EAAE,CAAC;CACzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-notification.d.ts","sourceRoot":"","sources":["../../../src/components/stream-notification/stream-notification.tsx"],"names":[],"mappings":"AAeA,wBAAgB,0BAA0B,CAAC,EACzC,QAAgB,EAChB,QAAgB,GACjB,EAAE;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B,2CAsBA"}
|