@xsolla/xui-b2c-streaming-selector 0.217.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 +3 -0
- package/native/index.d.mts +50 -0
- package/native/index.d.ts +50 -0
- package/native/index.js +635 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +615 -0
- package/native/index.mjs.map +1 -0
- package/package.json +57 -0
- package/web/index.d.mts +50 -0
- package/web/index.d.ts +50 -0
- package/web/index.js +4207 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +4193 -0
- package/web/index.mjs.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ThemeOverrideProps } from '@xsolla/xui-core';
|
|
3
|
+
|
|
4
|
+
type StreamingSelectorPlatform = "desktop" | "mobile";
|
|
5
|
+
interface StreamingSelectorProps extends ThemeOverrideProps {
|
|
6
|
+
/** Streamer / influencer display name shown on the first footer line. */
|
|
7
|
+
streamerName: ReactNode;
|
|
8
|
+
/** Game currently being streamed. Rendered as "Playing {gameName}". */
|
|
9
|
+
gameName?: ReactNode;
|
|
10
|
+
/** Static snapshot of the stream shown in the cover area. */
|
|
11
|
+
coverSrc?: string;
|
|
12
|
+
coverAlt?: string;
|
|
13
|
+
/** Streamer avatar shown at the start of the footer. */
|
|
14
|
+
avatarSrc?: string;
|
|
15
|
+
avatarAlt?: string;
|
|
16
|
+
/** Rendered in the avatar slot when `avatarSrc` is absent or hidden. */
|
|
17
|
+
avatarFallback?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the stream is live. When true the Live tag is rendered over the
|
|
20
|
+
* cover.
|
|
21
|
+
*/
|
|
22
|
+
live?: boolean;
|
|
23
|
+
liveLabel?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the static cover while the card is hovered (desktop only).
|
|
26
|
+
* Supply your own autoplaying, muted, looping video element — the toolkit
|
|
27
|
+
* owns the hover state, the consumer owns the media element.
|
|
28
|
+
*/
|
|
29
|
+
previewSlot?: ReactNode;
|
|
30
|
+
watchLabel?: ReactNode;
|
|
31
|
+
/** Icon rendered before `watchLabel`. Defaults to a play glyph. */
|
|
32
|
+
watchIcon?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Fired when the Watch action is pressed. Does NOT trigger `onPress` — the
|
|
35
|
+
* two actions are independent.
|
|
36
|
+
*/
|
|
37
|
+
onWatchPress?: () => void;
|
|
38
|
+
/** Fired when the card plate itself is pressed. */
|
|
39
|
+
onPress?: () => void;
|
|
40
|
+
platform?: StreamingSelectorPlatform;
|
|
41
|
+
/** Stretch the card to the width of its container instead of a fixed width. */
|
|
42
|
+
fullWidth?: boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
"aria-label"?: string;
|
|
45
|
+
testID?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare const StreamingSelector: React.FC<StreamingSelectorProps>;
|
|
49
|
+
|
|
50
|
+
export { StreamingSelector, type StreamingSelectorPlatform, type StreamingSelectorProps };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ThemeOverrideProps } from '@xsolla/xui-core';
|
|
3
|
+
|
|
4
|
+
type StreamingSelectorPlatform = "desktop" | "mobile";
|
|
5
|
+
interface StreamingSelectorProps extends ThemeOverrideProps {
|
|
6
|
+
/** Streamer / influencer display name shown on the first footer line. */
|
|
7
|
+
streamerName: ReactNode;
|
|
8
|
+
/** Game currently being streamed. Rendered as "Playing {gameName}". */
|
|
9
|
+
gameName?: ReactNode;
|
|
10
|
+
/** Static snapshot of the stream shown in the cover area. */
|
|
11
|
+
coverSrc?: string;
|
|
12
|
+
coverAlt?: string;
|
|
13
|
+
/** Streamer avatar shown at the start of the footer. */
|
|
14
|
+
avatarSrc?: string;
|
|
15
|
+
avatarAlt?: string;
|
|
16
|
+
/** Rendered in the avatar slot when `avatarSrc` is absent or hidden. */
|
|
17
|
+
avatarFallback?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the stream is live. When true the Live tag is rendered over the
|
|
20
|
+
* cover.
|
|
21
|
+
*/
|
|
22
|
+
live?: boolean;
|
|
23
|
+
liveLabel?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Replaces the static cover while the card is hovered (desktop only).
|
|
26
|
+
* Supply your own autoplaying, muted, looping video element — the toolkit
|
|
27
|
+
* owns the hover state, the consumer owns the media element.
|
|
28
|
+
*/
|
|
29
|
+
previewSlot?: ReactNode;
|
|
30
|
+
watchLabel?: ReactNode;
|
|
31
|
+
/** Icon rendered before `watchLabel`. Defaults to a play glyph. */
|
|
32
|
+
watchIcon?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Fired when the Watch action is pressed. Does NOT trigger `onPress` — the
|
|
35
|
+
* two actions are independent.
|
|
36
|
+
*/
|
|
37
|
+
onWatchPress?: () => void;
|
|
38
|
+
/** Fired when the card plate itself is pressed. */
|
|
39
|
+
onPress?: () => void;
|
|
40
|
+
platform?: StreamingSelectorPlatform;
|
|
41
|
+
/** Stretch the card to the width of its container instead of a fixed width. */
|
|
42
|
+
fullWidth?: boolean;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
"aria-label"?: string;
|
|
45
|
+
testID?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare const StreamingSelector: React.FC<StreamingSelectorProps>;
|
|
49
|
+
|
|
50
|
+
export { StreamingSelector, type StreamingSelectorPlatform, type StreamingSelectorProps };
|