@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.
Files changed (69) hide show
  1. package/dist/components/chat/chat.js +1 -1
  2. package/dist/components/chat/mod-view.d.ts.map +1 -1
  3. package/dist/components/chat/mod-view.js +31 -6
  4. package/dist/components/chat/mod-view.js.map +1 -1
  5. package/dist/components/dashboard/moderator-panel.js +7 -1
  6. package/dist/components/dashboard/moderator-panel.js.map +1 -1
  7. package/dist/components/mobile-player/props.d.ts +1 -0
  8. package/dist/components/mobile-player/props.d.ts.map +1 -1
  9. package/dist/components/mobile-player/rotation-lock.js +2 -2
  10. package/dist/components/mobile-player/rotation-lock.js.map +1 -1
  11. package/dist/components/mobile-player/video-async.native.d.ts.map +1 -1
  12. package/dist/components/mobile-player/video-async.native.js +5 -1
  13. package/dist/components/mobile-player/video-async.native.js.map +1 -1
  14. package/dist/components/stream-notification/pin-notification.d.ts +7 -0
  15. package/dist/components/stream-notification/pin-notification.d.ts.map +1 -0
  16. package/dist/components/stream-notification/pin-notification.js +63 -0
  17. package/dist/components/stream-notification/pin-notification.js.map +1 -0
  18. package/dist/components/ui/dropdown.d.ts.map +1 -1
  19. package/dist/components/ui/dropdown.js +3 -2
  20. package/dist/components/ui/dropdown.js.map +1 -1
  21. package/dist/components/ui/resizeable.js +2 -2
  22. package/dist/components/ui/resizeable.js.map +1 -1
  23. package/dist/lib/stream-notifications.d.ts +7 -0
  24. package/dist/lib/stream-notifications.d.ts.map +1 -1
  25. package/dist/lib/stream-notifications.js +21 -0
  26. package/dist/lib/stream-notifications.js.map +1 -1
  27. package/dist/lib/theme/atoms.d.ts +141 -141
  28. package/dist/livestream-provider/index.d.ts +1 -0
  29. package/dist/livestream-provider/index.d.ts.map +1 -1
  30. package/dist/livestream-provider/index.js +35 -3
  31. package/dist/livestream-provider/index.js.map +1 -1
  32. package/dist/livestream-store/chat.d.ts +2 -0
  33. package/dist/livestream-store/chat.d.ts.map +1 -1
  34. package/dist/livestream-store/chat.js +80 -1
  35. package/dist/livestream-store/chat.js.map +1 -1
  36. package/dist/livestream-store/livestream-state.d.ts +2 -1
  37. package/dist/livestream-store/livestream-state.d.ts.map +1 -1
  38. package/dist/livestream-store/livestream-store.d.ts +1 -0
  39. package/dist/livestream-store/livestream-store.d.ts.map +1 -1
  40. package/dist/livestream-store/livestream-store.js +4 -1
  41. package/dist/livestream-store/livestream-store.js.map +1 -1
  42. package/dist/livestream-store/websocket-consumer.d.ts.map +1 -1
  43. package/dist/livestream-store/websocket-consumer.js +14 -0
  44. package/dist/livestream-store/websocket-consumer.js.map +1 -1
  45. package/dist/streamplace-store/moderation.d.ts +1 -0
  46. package/dist/streamplace-store/moderation.d.ts.map +1 -1
  47. package/dist/streamplace-store/moderation.js +1 -0
  48. package/dist/streamplace-store/moderation.js.map +1 -1
  49. package/dist/streamplace-store/moderator-management.d.ts +1 -1
  50. package/dist/streamplace-store/moderator-management.d.ts.map +1 -1
  51. package/node-compile-cache/v22.15.0-x64-efe9a9df-0/37be0eec +0 -0
  52. package/package.json +3 -3
  53. package/src/components/chat/chat.tsx +1 -1
  54. package/src/components/chat/mod-view.tsx +82 -3
  55. package/src/components/dashboard/moderator-panel.tsx +13 -2
  56. package/src/components/mobile-player/props.tsx +1 -0
  57. package/src/components/mobile-player/rotation-lock.tsx +2 -2
  58. package/src/components/mobile-player/video-async.native.tsx +5 -0
  59. package/src/components/stream-notification/pin-notification.tsx +135 -0
  60. package/src/components/ui/dropdown.tsx +3 -2
  61. package/src/components/ui/resizeable.tsx +2 -2
  62. package/src/lib/stream-notifications.ts +28 -0
  63. package/src/livestream-provider/index.tsx +38 -2
  64. package/src/livestream-store/chat.tsx +92 -0
  65. package/src/livestream-store/livestream-state.tsx +2 -0
  66. package/src/livestream-store/livestream-store.tsx +4 -0
  67. package/src/livestream-store/websocket-consumer.tsx +15 -0
  68. package/src/streamplace-store/moderation.tsx +2 -0
  69. 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":"AAIA,eAAO,MAAM,mBAAmB;uBACX;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"}
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;AAC1B,2EAAuE;AACvE,mGAA+F;AAElF,QAAA,mBAAmB,GAAG;IACjC,QAAQ,EAAE,CAAC,MAMV,EAAE,EAAE;QACH,wCAAkB,CAAC,IAAI,CAAC;YACtB,EAAE,EAAE,UAAU;YACd,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE;gBAC1C,OAAO,eAAK,CAAC,aAAa,CAAC,4CAAoB,EAAE;oBAC/C,YAAY,EAAE,MAAM,CAAC,YAAY;oBACjC,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,SAAS,EAAE,SAAS;oBACpB,SAAS,EAAE,SAAS;iBACrB,CAAC,CAAC;YACL,CAAC;YACD,QAAQ,EAAE,CAAC,EAAE,iDAAiD;YAC9D,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,EAAE,GAAG,EAAE;QACtB,wCAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;IAED,WAAW,EAAE,CAAC,YAAoB,EAAE,EAAE;QACpC,wCAAkB,CAAC,IAAI,CAAC;YACtB,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE,mBAAmB,YAAY,KAAK;YAC7C,QAAQ,EAAE,CAAC;YACX,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,EAAE,CAAC,OAAe,EAAE,EAAE;QAC5B,wCAAkB,CAAC,IAAI,CAAC;YACtB,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE,OAAO;YAChB,QAAQ,EAAE,CAAC;YACX,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
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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