@streamplace/components 0.10.6 → 0.10.7
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.js +1 -1
- package/dist/components/chat/mod-view.d.ts.map +1 -1
- package/dist/components/chat/mod-view.js +31 -6
- package/dist/components/chat/mod-view.js.map +1 -1
- package/dist/components/dashboard/moderator-panel.js +7 -1
- package/dist/components/dashboard/moderator-panel.js.map +1 -1
- package/dist/components/mobile-player/props.d.ts +1 -0
- package/dist/components/mobile-player/props.d.ts.map +1 -1
- package/dist/components/mobile-player/rotation-lock.js +2 -2
- package/dist/components/mobile-player/rotation-lock.js.map +1 -1
- package/dist/components/mobile-player/video-async.native.d.ts.map +1 -1
- package/dist/components/mobile-player/video-async.native.js +5 -1
- package/dist/components/mobile-player/video-async.native.js.map +1 -1
- package/dist/components/stream-notification/pin-notification.d.ts +7 -0
- package/dist/components/stream-notification/pin-notification.d.ts.map +1 -0
- package/dist/components/stream-notification/pin-notification.js +63 -0
- package/dist/components/stream-notification/pin-notification.js.map +1 -0
- package/dist/components/ui/dropdown.d.ts.map +1 -1
- package/dist/components/ui/dropdown.js +3 -2
- package/dist/components/ui/dropdown.js.map +1 -1
- package/dist/components/ui/resizeable.js +2 -2
- package/dist/components/ui/resizeable.js.map +1 -1
- package/dist/lib/stream-notifications.d.ts +7 -0
- package/dist/lib/stream-notifications.d.ts.map +1 -1
- package/dist/lib/stream-notifications.js +21 -0
- package/dist/lib/stream-notifications.js.map +1 -1
- package/dist/lib/theme/atoms.d.ts +141 -141
- package/dist/livestream-provider/index.d.ts +1 -0
- package/dist/livestream-provider/index.d.ts.map +1 -1
- package/dist/livestream-provider/index.js +35 -3
- package/dist/livestream-provider/index.js.map +1 -1
- package/dist/livestream-store/chat.d.ts +2 -0
- package/dist/livestream-store/chat.d.ts.map +1 -1
- package/dist/livestream-store/chat.js +80 -1
- package/dist/livestream-store/chat.js.map +1 -1
- package/dist/livestream-store/livestream-state.d.ts +2 -1
- package/dist/livestream-store/livestream-state.d.ts.map +1 -1
- package/dist/livestream-store/livestream-store.d.ts +1 -0
- package/dist/livestream-store/livestream-store.d.ts.map +1 -1
- package/dist/livestream-store/livestream-store.js +4 -1
- 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 +14 -0
- package/dist/livestream-store/websocket-consumer.js.map +1 -1
- package/dist/streamplace-store/moderation.d.ts +1 -0
- package/dist/streamplace-store/moderation.d.ts.map +1 -1
- package/dist/streamplace-store/moderation.js +1 -0
- package/dist/streamplace-store/moderation.js.map +1 -1
- package/dist/streamplace-store/moderator-management.d.ts +1 -1
- package/dist/streamplace-store/moderator-management.d.ts.map +1 -1
- package/node-compile-cache/v22.15.0-x64-efe9a9df-0/37be0eec +0 -0
- package/package.json +3 -3
- package/src/components/chat/chat.tsx +1 -1
- package/src/components/chat/mod-view.tsx +82 -3
- package/src/components/dashboard/moderator-panel.tsx +13 -2
- package/src/components/mobile-player/props.tsx +1 -0
- package/src/components/mobile-player/rotation-lock.tsx +2 -2
- package/src/components/mobile-player/video-async.native.tsx +5 -0
- package/src/components/stream-notification/pin-notification.tsx +135 -0
- package/src/components/ui/dropdown.tsx +3 -2
- package/src/components/ui/resizeable.tsx +2 -2
- package/src/lib/stream-notifications.ts +28 -0
- package/src/livestream-provider/index.tsx +38 -2
- package/src/livestream-store/chat.tsx +92 -0
- package/src/livestream-store/livestream-state.tsx +2 -0
- package/src/livestream-store/livestream-store.tsx +4 -0
- package/src/livestream-store/websocket-consumer.tsx +15 -0
- package/src/streamplace-store/moderation.tsx +2 -0
- package/src/streamplace-store/moderator-management.tsx +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { PinnedRecordViewHydrated } from "streamplace";
|
|
1
2
|
export declare const StreamNotifications: {
|
|
3
|
+
pinnedComment: (params: {
|
|
4
|
+
pinnedComment: PinnedRecordViewHydrated;
|
|
5
|
+
onDismiss?: (reason?: "user" | "auto") => void;
|
|
6
|
+
onUnpin?: () => void;
|
|
7
|
+
}) => void;
|
|
8
|
+
pinnedCommentDismiss: () => void;
|
|
2
9
|
teleport: (params: {
|
|
3
10
|
targetHandle: string;
|
|
4
11
|
targetDID: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-notifications.d.ts","sourceRoot":"","sources":["../../src/lib/stream-notifications.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stream-notifications.d.ts","sourceRoot":"","sources":["../../src/lib/stream-notifications.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAKvD,eAAO,MAAM,mBAAmB;4BACN;QACtB,aAAa,EAAE,wBAAwB,CAAC;QACxC,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;QAC/C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB;;uBAsBkB;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;KAChD;;gCAsB2B,MAAM;wBASd,MAAM;CAQ3B,CAAC"}
|
|
@@ -4,8 +4,29 @@ exports.StreamNotifications = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const stream_notification_1 = require("../components/stream-notification");
|
|
7
|
+
const pin_notification_1 = require("../components/stream-notification/pin-notification");
|
|
7
8
|
const teleport_notification_1 = require("../components/stream-notification/teleport-notification");
|
|
8
9
|
exports.StreamNotifications = {
|
|
10
|
+
pinnedComment: (params) => {
|
|
11
|
+
stream_notification_1.streamNotification.show({
|
|
12
|
+
id: "pinned-comment",
|
|
13
|
+
render: (isExiting, onDismiss) => {
|
|
14
|
+
return react_1.default.createElement(pin_notification_1.PinnedCommentNotification, {
|
|
15
|
+
pinnedComment: params.pinnedComment,
|
|
16
|
+
onDismiss: () => onDismiss("user"),
|
|
17
|
+
onUnpin: () => {
|
|
18
|
+
params.onUnpin?.();
|
|
19
|
+
onDismiss("user");
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
duration: 0, // manually dismissed or auto-dismissed by TTL
|
|
24
|
+
onDismiss: params.onDismiss,
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
pinnedCommentDismiss: () => {
|
|
28
|
+
stream_notification_1.streamNotification.hide("pinned-comment");
|
|
29
|
+
},
|
|
9
30
|
teleport: (params) => {
|
|
10
31
|
stream_notification_1.streamNotification.show({
|
|
11
32
|
id: "teleport",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-notifications.js","sourceRoot":"","sources":["../../src/lib/stream-notifications.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;
|
|
1
|
+
{"version":3,"file":"stream-notifications.js","sourceRoot":"","sources":["../../src/lib/stream-notifications.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAE1B,2EAAuE;AACvE,yFAA+F;AAC/F,mGAA+F;AAElF,QAAA,mBAAmB,GAAG;IACjC,aAAa,EAAE,CAAC,MAIf,EAAE,EAAE;QACH,wCAAkB,CAAC,IAAI,CAAC;YACtB,EAAE,EAAE,gBAAgB;YACpB,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE;gBAC/B,OAAO,eAAK,CAAC,aAAa,CAAC,4CAAyB,EAAE;oBACpD,aAAa,EAAE,MAAM,CAAC,aAAa;oBACnC,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;oBAClC,OAAO,EAAE,GAAG,EAAE;wBACZ,MAAM,CAAC,OAAO,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