@streamlayer/react 1.11.3-rc.3 → 1.11.3-rc.5
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/lib/advertisement.d.ts +146 -0
- package/lib/{classic/app/auth.d.ts → auth.d.ts} +13 -4
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +58 -59
- package/lib/cjs/useStreamLayerApp2.js +15 -17
- package/lib/classic/advertisement.d.ts +146 -0
- package/lib/{app → classic}/auth.d.ts +13 -4
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +58 -59
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -17
- package/lib/classic/es/advertisement.js +94 -93
- package/lib/classic/es/auth.js +5 -2
- package/lib/classic/es/insight.js +22 -21
- package/lib/classic/es/notification.js +5 -4
- package/lib/classic/es/points.js +8 -6
- package/lib/classic/es/provider.js +10672 -11282
- package/lib/classic/es/useStreamLayerApp2.js +4697 -8424
- package/lib/classic/index.d.ts +218 -5
- package/lib/classic/insight.d.ts +136 -0
- package/lib/classic/notification.d.ts +120 -0
- package/lib/classic/points.d.ts +12 -0
- package/lib/classic/style.css +1 -1
- package/lib/classic/useStreamLayerApp.d.ts +167 -0
- package/lib/es/advertisement.js +94 -93
- package/lib/es/auth.js +5 -2
- package/lib/es/insight.js +22 -21
- package/lib/es/notification.js +5 -4
- package/lib/es/points.js +8 -6
- package/lib/es/provider.js +10709 -11327
- package/lib/es/useStreamLayerApp2.js +4697 -8424
- package/lib/index.d.ts +218 -5
- package/lib/insight.d.ts +136 -0
- package/lib/notification.d.ts +120 -0
- package/lib/points.d.ts +12 -0
- package/lib/style.css +1 -1
- package/lib/useStreamLayerApp.d.ts +167 -0
- package/package.json +3 -51
- package/lib/app/advertisement.d.ts +0 -18
- package/lib/app/app.d.ts +0 -19
- package/lib/app/event.d.ts +0 -4
- package/lib/app/insight.d.ts +0 -13
- package/lib/app/notification.d.ts +0 -5
- package/lib/app/points.d.ts +0 -3
- package/lib/app/provider.d.ts +0 -43
- package/lib/app/useStreamLayerApp.d.ts +0 -19
- package/lib/classic/app/advertisement.d.ts +0 -18
- package/lib/classic/app/app.d.ts +0 -19
- package/lib/classic/app/event.d.ts +0 -4
- package/lib/classic/app/insight.d.ts +0 -13
- package/lib/classic/app/notification.d.ts +0 -5
- package/lib/classic/app/points.d.ts +0 -3
- package/lib/classic/app/provider.d.ts +0 -43
- package/lib/classic/app/useStreamLayerApp.d.ts +0 -19
package/lib/classic/index.d.ts
CHANGED
|
@@ -1,5 +1,218 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
declare type CancelMountCb = () => void;
|
|
2
|
+
|
|
3
|
+
export declare type ContentActivateParams = {
|
|
4
|
+
stage: 'activate' | 'deactivate';
|
|
5
|
+
id: string;
|
|
6
|
+
isViewed?: boolean;
|
|
7
|
+
hasNotification?: boolean;
|
|
8
|
+
type: 'advertisement' | 'insight' | 'poll' | 'trivia' | 'prediction' | 'tweet' | 'question';
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
declare const DEEP_LINK_EVENT_ID = "sldl_eid";
|
|
12
|
+
|
|
13
|
+
declare const DEEP_LINK_EXTERNAL_EVENT_ID = "sldl_e_eid";
|
|
14
|
+
|
|
15
|
+
declare const DEEP_LINK_USER_ID = "sldl_uid";
|
|
16
|
+
|
|
17
|
+
export declare type DeepLinkCallback = (deepLinkData: DeepLinkContextData['data']) => void;
|
|
18
|
+
|
|
19
|
+
declare type DeepLinkContextData = {
|
|
20
|
+
handled?: boolean;
|
|
21
|
+
parsed?: boolean;
|
|
22
|
+
used?: boolean;
|
|
23
|
+
data?: DeepLinkUrlParams;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare type DeepLinkUrlParams = {
|
|
27
|
+
[DEEP_LINK_USER_ID]?: string;
|
|
28
|
+
[DEEP_LINK_EVENT_ID]?: string;
|
|
29
|
+
[DEEP_LINK_EXTERNAL_EVENT_ID]?: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare type DoneFn = Function;
|
|
33
|
+
|
|
34
|
+
export declare type OnContentActivateCallback = (renderData: ContentActivateParams) => void;
|
|
35
|
+
|
|
36
|
+
declare type OnMountCb = () => CancelMountCb;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum streamlayer.sdkSettings.SdkOverlayType
|
|
40
|
+
*/
|
|
41
|
+
declare enum SdkOverlayType {
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_UNSET = 0;
|
|
44
|
+
*/
|
|
45
|
+
UNSET = 0,
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* betting legacy
|
|
49
|
+
*
|
|
50
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_INPLAY = 1;
|
|
51
|
+
*/
|
|
52
|
+
INPLAY = 1,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MESSAGING = 2;
|
|
56
|
+
*/
|
|
57
|
+
MESSAGING = 2,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_STATISTICS = 3;
|
|
61
|
+
*/
|
|
62
|
+
STATISTICS = 3,
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* betting
|
|
66
|
+
*
|
|
67
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_BETTING = 4;
|
|
68
|
+
*/
|
|
69
|
+
BETTING = 4,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TWITTER = 5;
|
|
73
|
+
*/
|
|
74
|
+
TWITTER = 5,
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MERCHANDISE = 6;
|
|
78
|
+
*/
|
|
79
|
+
MERCHANDISE = 6,
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_CONTESTS = 7;
|
|
83
|
+
*/
|
|
84
|
+
CONTESTS = 7,
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* WatchParty
|
|
88
|
+
*
|
|
89
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_VOICE_CHAT = 8;
|
|
90
|
+
*/
|
|
91
|
+
VOICE_CHAT = 8,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TICKETS = 9;
|
|
95
|
+
*/
|
|
96
|
+
TICKETS = 9,
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_WHOIS_WATCHING = 10;
|
|
100
|
+
*/
|
|
101
|
+
WHOIS_WATCHING = 10,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PROFILE = 11;
|
|
105
|
+
*/
|
|
106
|
+
PROFILE = 11,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GAMES = 12;
|
|
110
|
+
*/
|
|
111
|
+
GAMES = 12,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GOLF_STATISTICS = 13;
|
|
115
|
+
*/
|
|
116
|
+
GOLF_STATISTICS = 13,
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_HIGHLIGHTS = 14;
|
|
120
|
+
*/
|
|
121
|
+
HIGHLIGHTS = 14,
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PUBLIC_CHAT = 15;
|
|
125
|
+
*/
|
|
126
|
+
PUBLIC_CHAT = 15,
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare interface StreamLayerOptions {
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare type StreamLayerPlugin<T = unknown> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
|
|
133
|
+
|
|
134
|
+
declare type StreamLayerProps = {
|
|
135
|
+
sdkKey: string;
|
|
136
|
+
plugins?: Set<StreamLayerPlugin>;
|
|
137
|
+
event?: string;
|
|
138
|
+
production?: boolean;
|
|
139
|
+
autoEnable?: boolean;
|
|
140
|
+
onDeepLinkHandled?: DeepLinkCallback;
|
|
141
|
+
videoPlayerController?: VideoPlayerCallback;
|
|
142
|
+
onContentActivate?: OnContentActivateCallback;
|
|
143
|
+
theme?: string;
|
|
144
|
+
withAdNotification?: boolean;
|
|
145
|
+
withAd?: boolean;
|
|
146
|
+
friendsTab?: 'enabled' | 'disabled' | 'activatedGame';
|
|
147
|
+
themeMode?: 'light' | 'dark';
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare const StreamLayerProvider: React.FC<StreamLayerProps & {
|
|
151
|
+
children: React.ReactNode;
|
|
152
|
+
}>;
|
|
153
|
+
|
|
154
|
+
declare interface StreamLayerSDK {
|
|
155
|
+
onMount: (opts: {
|
|
156
|
+
name: string;
|
|
157
|
+
clear?: boolean;
|
|
158
|
+
}, cb: OnMountCb) => void;
|
|
159
|
+
closeFeature: (destroy?: boolean) => void;
|
|
160
|
+
openFeature: (featureType: SdkOverlayType) => void;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare const StreamLayerSDKEvent: React.FC<StreamLayerSDKEventProps>;
|
|
164
|
+
|
|
165
|
+
export declare type StreamLayerSDKEventProps = {
|
|
166
|
+
event?: string;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export declare const StreamLayerSDKNotification: React.FC<{
|
|
170
|
+
theme?: string;
|
|
171
|
+
}>;
|
|
172
|
+
|
|
173
|
+
export declare const StreamLayerSDKNotificationUI: React.FC<{
|
|
174
|
+
sdk: StreamLayerSDK;
|
|
175
|
+
}>;
|
|
176
|
+
|
|
177
|
+
export declare const StreamLayerSDKReact: React.FC<{
|
|
178
|
+
event?: string;
|
|
179
|
+
topNavigation?: boolean;
|
|
180
|
+
withSidebarNotification?: boolean;
|
|
181
|
+
theme?: string;
|
|
182
|
+
}>;
|
|
183
|
+
|
|
184
|
+
export declare const StreamLayerThemeProvider: React.FC<{
|
|
185
|
+
children: React.ReactNode;
|
|
186
|
+
style?: React.CSSProperties;
|
|
187
|
+
themeMode?: 'light' | 'dark';
|
|
188
|
+
customTheme?: string;
|
|
189
|
+
}>;
|
|
190
|
+
|
|
191
|
+
export declare const useStreamLayer: () => StreamLayerSDK | null;
|
|
192
|
+
|
|
193
|
+
export declare const useStreamLayerTheme: () => Pick<StreamLayerOptions, "theme" | "themeMode">;
|
|
194
|
+
|
|
195
|
+
export declare const useStreamLayerUI: () => {
|
|
196
|
+
promotionExternalAd?: boolean;
|
|
197
|
+
promotionSidebar?: boolean;
|
|
198
|
+
promotionOverlay?: boolean;
|
|
199
|
+
promotionNotification?: boolean;
|
|
200
|
+
promotionBanner?: boolean;
|
|
201
|
+
app?: boolean;
|
|
202
|
+
appNotification?: boolean;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export declare type VideoPlayerCallback = (videoPlayerData: VideoPlayerData) => void;
|
|
206
|
+
|
|
207
|
+
declare type VideoPlayerData = {
|
|
208
|
+
muted: boolean;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export { }
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
declare global {
|
|
215
|
+
interface Window {
|
|
216
|
+
sl: unknown;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
declare type CancelMountCb = () => void;
|
|
2
|
+
|
|
3
|
+
declare type OnMountCb = () => CancelMountCb;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from enum streamlayer.sdkSettings.SdkOverlayType
|
|
7
|
+
*/
|
|
8
|
+
declare enum SdkOverlayType {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_UNSET = 0;
|
|
11
|
+
*/
|
|
12
|
+
UNSET = 0,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* betting legacy
|
|
16
|
+
*
|
|
17
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_INPLAY = 1;
|
|
18
|
+
*/
|
|
19
|
+
INPLAY = 1,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MESSAGING = 2;
|
|
23
|
+
*/
|
|
24
|
+
MESSAGING = 2,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_STATISTICS = 3;
|
|
28
|
+
*/
|
|
29
|
+
STATISTICS = 3,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* betting
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_BETTING = 4;
|
|
35
|
+
*/
|
|
36
|
+
BETTING = 4,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TWITTER = 5;
|
|
40
|
+
*/
|
|
41
|
+
TWITTER = 5,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MERCHANDISE = 6;
|
|
45
|
+
*/
|
|
46
|
+
MERCHANDISE = 6,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_CONTESTS = 7;
|
|
50
|
+
*/
|
|
51
|
+
CONTESTS = 7,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* WatchParty
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_VOICE_CHAT = 8;
|
|
57
|
+
*/
|
|
58
|
+
VOICE_CHAT = 8,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TICKETS = 9;
|
|
62
|
+
*/
|
|
63
|
+
TICKETS = 9,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_WHOIS_WATCHING = 10;
|
|
67
|
+
*/
|
|
68
|
+
WHOIS_WATCHING = 10,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PROFILE = 11;
|
|
72
|
+
*/
|
|
73
|
+
PROFILE = 11,
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GAMES = 12;
|
|
77
|
+
*/
|
|
78
|
+
GAMES = 12,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GOLF_STATISTICS = 13;
|
|
82
|
+
*/
|
|
83
|
+
GOLF_STATISTICS = 13,
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_HIGHLIGHTS = 14;
|
|
87
|
+
*/
|
|
88
|
+
HIGHLIGHTS = 14,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PUBLIC_CHAT = 15;
|
|
92
|
+
*/
|
|
93
|
+
PUBLIC_CHAT = 15,
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare interface StreamLayerSDK {
|
|
97
|
+
onMount: (opts: {
|
|
98
|
+
name: string;
|
|
99
|
+
clear?: boolean;
|
|
100
|
+
}, cb: OnMountCb) => void;
|
|
101
|
+
closeFeature: (destroy?: boolean) => void;
|
|
102
|
+
openFeature: (featureType: SdkOverlayType) => void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export declare const StreamLayerSDKInsight: React.FC<StreamLayerSDKInsightProps>;
|
|
106
|
+
|
|
107
|
+
export declare type StreamLayerSDKInsightProps = {
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated Pass event to StreamLayerProvider or StreamLayerSDKEvent component instead, see docs for more info
|
|
110
|
+
*/
|
|
111
|
+
event?: string;
|
|
112
|
+
theme?: string;
|
|
113
|
+
hideHeader?: boolean;
|
|
114
|
+
persistent?: boolean;
|
|
115
|
+
skipAutoClose?: boolean;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare type StreamLayerSDKInsightProps_2 = {
|
|
119
|
+
hideHeader?: boolean;
|
|
120
|
+
persistent?: boolean;
|
|
121
|
+
skipAutoClose?: boolean;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export declare const StreamLayerSDKInsightUI: React.FC<StreamLayerSDKInsightProps_2 & {
|
|
125
|
+
sdk: StreamLayerSDK;
|
|
126
|
+
insightId?: string;
|
|
127
|
+
}>;
|
|
128
|
+
|
|
129
|
+
export { }
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
declare global {
|
|
133
|
+
interface Window {
|
|
134
|
+
sl: unknown;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare type CancelMountCb = () => void;
|
|
2
|
+
|
|
3
|
+
declare type OnMountCb = () => CancelMountCb;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @generated from enum streamlayer.sdkSettings.SdkOverlayType
|
|
7
|
+
*/
|
|
8
|
+
declare enum SdkOverlayType {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_UNSET = 0;
|
|
11
|
+
*/
|
|
12
|
+
UNSET = 0,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* betting legacy
|
|
16
|
+
*
|
|
17
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_INPLAY = 1;
|
|
18
|
+
*/
|
|
19
|
+
INPLAY = 1,
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MESSAGING = 2;
|
|
23
|
+
*/
|
|
24
|
+
MESSAGING = 2,
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_STATISTICS = 3;
|
|
28
|
+
*/
|
|
29
|
+
STATISTICS = 3,
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* betting
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_BETTING = 4;
|
|
35
|
+
*/
|
|
36
|
+
BETTING = 4,
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TWITTER = 5;
|
|
40
|
+
*/
|
|
41
|
+
TWITTER = 5,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MERCHANDISE = 6;
|
|
45
|
+
*/
|
|
46
|
+
MERCHANDISE = 6,
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_CONTESTS = 7;
|
|
50
|
+
*/
|
|
51
|
+
CONTESTS = 7,
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* WatchParty
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_VOICE_CHAT = 8;
|
|
57
|
+
*/
|
|
58
|
+
VOICE_CHAT = 8,
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TICKETS = 9;
|
|
62
|
+
*/
|
|
63
|
+
TICKETS = 9,
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_WHOIS_WATCHING = 10;
|
|
67
|
+
*/
|
|
68
|
+
WHOIS_WATCHING = 10,
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PROFILE = 11;
|
|
72
|
+
*/
|
|
73
|
+
PROFILE = 11,
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GAMES = 12;
|
|
77
|
+
*/
|
|
78
|
+
GAMES = 12,
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GOLF_STATISTICS = 13;
|
|
82
|
+
*/
|
|
83
|
+
GOLF_STATISTICS = 13,
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_HIGHLIGHTS = 14;
|
|
87
|
+
*/
|
|
88
|
+
HIGHLIGHTS = 14,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PUBLIC_CHAT = 15;
|
|
92
|
+
*/
|
|
93
|
+
PUBLIC_CHAT = 15,
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare interface StreamLayerSDK {
|
|
97
|
+
onMount: (opts: {
|
|
98
|
+
name: string;
|
|
99
|
+
clear?: boolean;
|
|
100
|
+
}, cb: OnMountCb) => void;
|
|
101
|
+
closeFeature: (destroy?: boolean) => void;
|
|
102
|
+
openFeature: (featureType: SdkOverlayType) => void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export declare const StreamLayerSDKNotification: React.FC<{
|
|
106
|
+
theme?: string;
|
|
107
|
+
}>;
|
|
108
|
+
|
|
109
|
+
export declare const StreamLayerSDKNotificationUI: React.FC<{
|
|
110
|
+
sdk: StreamLayerSDK;
|
|
111
|
+
}>;
|
|
112
|
+
|
|
113
|
+
export { }
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
declare global {
|
|
117
|
+
interface Window {
|
|
118
|
+
sl: unknown;
|
|
119
|
+
}
|
|
120
|
+
}
|
package/lib/classic/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ps1br77{--color-blue-question-action-btn:#1589ee;--color-white:#FFFFFF;--color-blue:#2d6ffd;--color-grey-primary:#909395;--color-grey-primary-onboarding-inapp:#B5B7B8;--color-primary-1:#1D7BFF;--color-primary-2:#095CD1;--color-primary-text:#090E13;--color-secondary-text:rgba(10, 14, 19, 0.70);--color-question-type-icon:#1D7BFF;--color-success:#107D57;--color-unsuccess:#DF2F3B;--color-secondary-red1:#DF2F3B;--color-neutrals-white:#FFFFFF;--color-neutrals-white1:#FFFFFF;--color-neutrals-gray1:#F7F7F7;--color-neutrals-gray2:#F2F2F1;--color-neutrals-gray3:#E8E8E8;--color-neutrals-gray4:#D9D9D6;--color-neutrals-gray5:#B1B3B3;--color-neutrals-gray6:#888B8D;--color-neutrals-gray7:#6B6F73;--color-neutrals-gray9:#25282A;--color-sdk-container-bg:#F7F7F7;--color-sdk-white-container-bg:#fff;--color-sdk-dark-container-bg:#fff;--color-sdk-prediction-result-success-bg:#fff;--color-sdk-prediction-result-incorrect-bg:#fff;--color-sdk-prediction-result-success-text:#107D57;--color-sdk-prediction-result-error-title:#090E13;--color-sdk-prediction-result-error-subtitle:#DF2F3B;--color-sdk-prediction-result-close-icon:#6B6F73;--color-sdk-prediction-feedback-success-icon:#107D57;--color-sdk-prediction-feedback-incorrect-rect1:#CD2525;--color-sdk-prediction-feedback-incorrect-rect2:#fff;--color-prediction-bg-lines-correct:#01AB58;--color-prediction-bg-lines-incorrect:#888B8D;--color-skeleton-color-1:#f1efef;--color-skeleton-color-2:#f9f8f8;--color-tabs-container-bg:#F2F2F1;--color-tabs-active-bg:#FFFFFF;--color-tabs-color:#6B6F73;--color-tabs-active-color:#1D7BFF;--color-card-bg:#FFFFFF;--color-card-border:#fff;--color-border:#E8E8E8;--color-vote-btn-bg:#F7F7F7;--color-vote-btn-border:rgb(232, 232, 232);--color-vote-btn-disabled-border:#B1B3B3;--color-vote-btn-selected-border:#25282A;--color-vote-btn-not-selected-border:#E8E8E8;--color-vote-btn-selected-bg:#FFFFFF;--color-vote-btn-not-selected-bg:#FFFFFF;--color-vote-btn-not-selected-bg-unset:rgb(196, 196, 196);--color-voted-answer-bg:#FFFFFF;--color-voted-btn-rct-bg:#2d5694;--color-in-app-bg:rgba(255, 255, 255, 0.90);--color-in-app-question-type-icon:#1D7BFF;--color-in-app-question-type-label:#82899E;--color-in-app-question-quote:rgba(10, 14, 19, 0.70);--color-in-app-question-result-subtitle-bg:#1D7BFF;--color-in-app-question-result-line:#babfc5;--color-adv-bg-primary:#13212b;--color-adv-bg-secondary:#152430;--color-adv-bg-secondary1:#435059;--color-adv-border-primary:rgba(255, 255, 255, 0.1);--color-adv-text-primary:#f9f9f9;--color-adv-text-primary1:#f9f9f9;--color-adv-text-secondary:rgba(255, 255, 255, 0.8);--color-adv-text-secondary1:#878787;--color-adv-white:#fff;--font-family:'SF Pro Text',Arial,Helvetica,sans-serif;--font-regular:'SF Pro Text',Arial,Helvetica,sans-serif;--font-color:#fff;--font-serif:'SF Pro Display',Arial,Helvetica,sans-serif;--font-weight-default:500;--font-weight-default1:500;--font-weight-default2:400;--font-weight-default3:500;--font-size-default:16px;--font-size-secondary:14px;--font-size-small:12px;--line-height-default:24px;--margin-title-default:24px 0px;--font-header-title:1.125rem;--header-offset:0px;--header-height:68px;--animation-duration:0.5s;--animation-function:ease;--container-padding:16px;--tabs-padding-top:16px;--summary-container-padding-bottom:16px;--max-tabs-width:100%;--border-radius:8px;--pill-offset:0px;--max-width:600px;--max-notifications-width:400px;--header-padding:12px 12px 12px 16px;--margin-web-link-btn:0px;--padding-web-link-btn:11px 16px;--insight-content-padding:0px;--close-icon-size:12px;--close-icon-size:1.125rem;--close-icon-stroke-width:1.5;--padding-title-default:0px;--insight-image-display:inline;--web-link-align-items:center;--web-link-column-gap:10px;--nav-border:1px solid var(--color-neutrals-gray3);--card-border:1px solid var(--color-card-border);--welcome-screen-graphic-size:144px;--welcome-screen-graphic-size-xl:144px;--row-gap-default:12px;--row-gap-default1:12px;--row-gap-default2:16px;--promo-header-line-height:18.5px;--promo-animation-duration:0.5s;--promo-animation-function:ease-in;--insight-image-ratio:16/9;--adv-side-indents:16px;--adv-top-indent:12px;--adv-header-height:52px;--adv-media-row-gap:24px;--adv-media-padding:0 26.5px;--adv-sponsor-logo-size:32px;--adv-sponsor-font-size:16px;--adv-header-border:1px solid var(--color-adv-border-primary);--adv-header-shift:0;--adv-media-shift:24px;--adv-hide-on-mobile:unset;--adv-title-font-size:24px;--adv-description-font-size:16px;--adv-title-height:31px;--adv-description-height:21px;--adv-btn-font-size:16px;--adv-btn-padding:10px 14px;height:100%;font-family:var(--font-family);color:var(--font-color);}@media only screen and (max-width: 1199px){.ps1br77{--header-offset:0px;}}@media only screen and (max-width: 1199px) and (min-width: 992px){.ps1br77{--header-offset:0px;}}.ps1br77 .mobile-view{--adv-side-indents:16px;--adv-hide-on-mobile:none;--adv-header-shift:-10px;--adv-media-shift:-10px;--adv-top-indent:4px;--adv-header-border:none;--adv-header-height:48px;--adv-media-row-gap:22.5px;--adv-sponsor-logo-size:28px;--adv-sponsor-font-size:12px;}.ps1br77 *{box-sizing:border-box;}.ps1br77.light .on-dark{display:none;}.ps1br77.dark{--nav-border:none;--card-border:none;--color-sdk-container-bg:#1a2d40;--color-sdk-white-container-bg:#1a2d40;--color-tabs-color:#fff;--color-tabs-active-color:#fff;--color-tabs-container-bg:#314153;--color-tabs-active-bg:#1d7bff;--color-sdk-dark-container-bg:rgba(255, 255, 255, 0.1);--color-sdk-prediction-result-success-bg:#01ab58;--color-sdk-prediction-result-incorrect-bg:#da3732;--color-sdk-prediction-result-success-text:#fff;--color-sdk-prediction-result-error-title:#fff;--color-sdk-prediction-result-error-subtitle:#fff;--color-sdk-prediction-result-close-icon:#fff;--color-sdk-prediction-feedback-success-icon:#fff;--color-sdk-prediction-feedback-incorrect-rect1:#fff;--color-sdk-prediction-feedback-incorrect-rect2:#cd2525;--color-prediction-bg-lines-correct:#fff;--color-prediction-bg-lines-incorrect:#fff;--color-primary-text:#fff;--color-secondary-text:rgba(255, 255, 255, 0.7);--color-border:rgba(255, 255, 255, 0.1);--color-skeleton-color-1:rgba(255, 255, 255, 0.1);--color-skeleton-color-2:rgba(255, 255, 255, 0.05);--color-question-type-icon:#fff;--color-in-app-question-type-label:rgba(255, 255, 255, 0.7);--color-in-app-question-quote:rgba(255, 255, 255, 0.7);--color-in-app-question-result-subtitle-bg:rgba(10, 14, 19, 0.8);--color-in-app-question-result-line:#1589ee;--color-vote-btn-bg:rgba(255, 255, 255, 0.1);--color-vote-btn-border:rgba(255, 255, 255, 0.1);--color-vote-btn-selected-bg:rgba(29, 123, 255, 0.3);--color-vote-btn-selected-border:#1d7bff;--color-vote-btn-not-selected-bg:rgba(255, 255, 255, 0.1);--color-vote-btn-not-selected-border:rgba(255, 255, 255, 0.1);--color-vote-btn-not-selected-bg-unset:rgba(255, 255, 255, 0.1);--color-voted-answer-bg:#1d7bff;--color-voted-btn-rct-bg:rgba(29, 123, 255, 0.3);--color-in-app-bg:rgba(10, 14, 19, 0.85);--color-success:#00bd60;--color-unsuccess:#df2f3b;--summary-container-padding-bottom:0px;--tabs-padding-top:0px;}.ps1br77.dark .on-light{display:none;}
|
|
1
|
+
.ps1br77{--color-blue-question-action-btn:#1589ee;--color-white:#FFFFFF;--color-blue:#2d6ffd;--color-grey-primary:#909395;--color-grey-primary-onboarding-inapp:#B5B7B8;--color-primary-1:#1D7BFF;--color-primary-2:#095CD1;--color-primary-text:#090E13;--color-secondary-text:rgba(10, 14, 19, 0.70);--color-question-type-icon:#1D7BFF;--color-success:#107D57;--color-unsuccess:#DF2F3B;--color-secondary-red1:#DF2F3B;--color-neutrals-white:#FFFFFF;--color-neutrals-white1:#FFFFFF;--color-neutrals-gray1:#F7F7F7;--color-neutrals-gray2:#F2F2F1;--color-neutrals-gray3:#E8E8E8;--color-neutrals-gray4:#D9D9D6;--color-neutrals-gray5:#B1B3B3;--color-neutrals-gray6:#888B8D;--color-neutrals-gray7:#6B6F73;--color-neutrals-gray9:#25282A;--color-sdk-container-bg:#F7F7F7;--color-sdk-white-container-bg:#fff;--color-sdk-dark-container-bg:#fff;--color-sdk-prediction-result-success-bg:#fff;--color-sdk-prediction-result-incorrect-bg:#fff;--color-sdk-prediction-result-success-text:#107D57;--color-sdk-prediction-result-error-title:#090E13;--color-sdk-prediction-result-error-subtitle:#DF2F3B;--color-sdk-prediction-result-close-icon:#6B6F73;--color-sdk-prediction-feedback-success-icon:#107D57;--color-sdk-prediction-feedback-incorrect-rect1:#CD2525;--color-sdk-prediction-feedback-incorrect-rect2:#fff;--color-prediction-bg-lines-correct:#01AB58;--color-prediction-bg-lines-incorrect:#888B8D;--color-skeleton-color-1:#f1efef;--color-skeleton-color-2:#f9f8f8;--color-tabs-container-bg:#F2F2F1;--color-tabs-active-bg:#FFFFFF;--color-tabs-color:#6B6F73;--color-tabs-active-color:#1D7BFF;--color-card-bg:#FFFFFF;--color-card-border:#fff;--color-border:#E8E8E8;--color-vote-btn-bg:#F7F7F7;--color-vote-btn-border:rgb(232, 232, 232);--color-vote-btn-disabled-border:#B1B3B3;--color-vote-btn-selected-border:#25282A;--color-vote-btn-not-selected-border:#E8E8E8;--color-vote-btn-selected-bg:#FFFFFF;--color-vote-btn-not-selected-bg:#FFFFFF;--color-vote-btn-not-selected-bg-unset:rgb(196, 196, 196);--color-voted-answer-bg:#FFFFFF;--color-voted-btn-rct-bg:#2d5694;--color-in-app-bg:rgba(255, 255, 255, 0.90);--color-in-app-question-type-icon:#1D7BFF;--color-in-app-question-type-label:#82899E;--color-in-app-question-quote:rgba(10, 14, 19, 0.70);--color-in-app-question-result-subtitle-bg:#1D7BFF;--color-in-app-question-result-line:#babfc5;--color-adv-bg-primary:#13212b;--color-adv-bg-secondary:#152430;--color-adv-bg-secondary1:#435059;--color-adv-border-primary:rgba(255, 255, 255, 0.1);--color-adv-text-primary:#f9f9f9;--color-adv-text-primary1:#f9f9f9;--color-adv-text-secondary:rgba(255, 255, 255, 0.8);--color-adv-text-secondary1:#878787;--color-adv-white:#fff;--font-family:'SF Pro Text',Arial,Helvetica,sans-serif;--font-regular:'SF Pro Text',Arial,Helvetica,sans-serif;--font-color:#fff;--font-serif:'SF Pro Display',Arial,Helvetica,sans-serif;--font-weight-default:500;--font-weight-default1:500;--font-weight-default2:400;--font-weight-default3:500;--font-size-default:16px;--font-size-secondary:14px;--font-size-small:12px;--line-height-default:24px;--margin-title-default:24px 0px;--font-header-title:1.125rem;--header-offset:0px;--header-height:68px;--animation-duration:0.5s;--animation-function:ease;--container-padding:16px;--tabs-padding-top:16px;--summary-container-padding-bottom:16px;--max-tabs-width:100%;--border-radius:8px;--pill-offset:0px;--max-width:600px;--max-notifications-width:400px;--header-padding:12px 12px 12px 16px;--margin-web-link-btn:0px;--padding-web-link-btn:11px 16px;--insight-content-padding:0px;--close-icon-size:12px;--close-icon-size:1.125rem;--close-icon-stroke-width:1.5;--padding-title-default:0px;--insight-image-display:inline;--web-link-align-items:center;--web-link-column-gap:10px;--nav-border:1px solid var(--color-neutrals-gray3);--card-border:1px solid var(--color-card-border);--welcome-screen-graphic-size:144px;--welcome-screen-graphic-size-xl:144px;--row-gap-default:12px;--row-gap-default1:12px;--row-gap-default2:16px;--promo-header-line-height:18.5px;--promo-animation-duration:0.5s;--promo-animation-function:ease-in;--insight-image-ratio:16/9;--adv-side-indents:16px;--adv-top-indent:12px;--adv-header-height:52px;--adv-media-row-gap:24px;--adv-media-padding:0 26.5px;--adv-sponsor-logo-size:32px;--adv-sponsor-font-size:16px;--adv-header-border:1px solid var(--color-adv-border-primary);--adv-header-shift:0;--adv-media-shift:24px;--adv-hide-on-mobile:unset;--adv-title-font-size:24px;--adv-description-font-size:16px;--adv-title-height:31px;--adv-description-height:21px;--adv-btn-font-size:16px;--adv-btn-padding:10px 14px;height:100%;font-family:var(--font-family);color:var(--font-color);--theme-name:'base';}@media only screen and (max-width: 1199px){.ps1br77{--header-offset:0px;}}@media only screen and (max-width: 1199px) and (min-width: 992px){.ps1br77{--header-offset:0px;}}.ps1br77 .mobile-view{--adv-side-indents:16px;--adv-hide-on-mobile:none;--adv-header-shift:-10px;--adv-media-shift:-10px;--adv-top-indent:4px;--adv-header-border:none;--adv-header-height:48px;--adv-media-row-gap:22.5px;--adv-sponsor-logo-size:28px;--adv-sponsor-font-size:12px;}.ps1br77 *{box-sizing:border-box;}.ps1br77.light .on-dark{display:none;}.ps1br77.dark{--nav-border:none;--card-border:none;--color-sdk-container-bg:#1a2d40;--color-sdk-white-container-bg:#1a2d40;--color-tabs-color:#fff;--color-tabs-active-color:#fff;--color-tabs-container-bg:#314153;--color-tabs-active-bg:#1d7bff;--color-sdk-dark-container-bg:rgba(255, 255, 255, 0.1);--color-sdk-prediction-result-success-bg:#01ab58;--color-sdk-prediction-result-incorrect-bg:#da3732;--color-sdk-prediction-result-success-text:#fff;--color-sdk-prediction-result-error-title:#fff;--color-sdk-prediction-result-error-subtitle:#fff;--color-sdk-prediction-result-close-icon:#fff;--color-sdk-prediction-feedback-success-icon:#fff;--color-sdk-prediction-feedback-incorrect-rect1:#fff;--color-sdk-prediction-feedback-incorrect-rect2:#cd2525;--color-prediction-bg-lines-correct:#fff;--color-prediction-bg-lines-incorrect:#fff;--color-primary-text:#fff;--color-secondary-text:rgba(255, 255, 255, 0.7);--color-border:rgba(255, 255, 255, 0.1);--color-skeleton-color-1:rgba(255, 255, 255, 0.1);--color-skeleton-color-2:rgba(255, 255, 255, 0.05);--color-question-type-icon:#fff;--color-in-app-question-type-label:rgba(255, 255, 255, 0.7);--color-in-app-question-quote:rgba(255, 255, 255, 0.7);--color-in-app-question-result-subtitle-bg:rgba(10, 14, 19, 0.8);--color-in-app-question-result-line:#1589ee;--color-vote-btn-bg:rgba(255, 255, 255, 0.1);--color-vote-btn-border:rgba(255, 255, 255, 0.1);--color-vote-btn-selected-bg:rgba(29, 123, 255, 0.3);--color-vote-btn-selected-border:#1d7bff;--color-vote-btn-not-selected-bg:rgba(255, 255, 255, 0.1);--color-vote-btn-not-selected-border:rgba(255, 255, 255, 0.1);--color-vote-btn-not-selected-bg-unset:rgba(255, 255, 255, 0.1);--color-voted-answer-bg:#1d7bff;--color-voted-btn-rct-bg:rgba(29, 123, 255, 0.3);--color-in-app-bg:rgba(10, 14, 19, 0.85);--color-success:#00bd60;--color-unsuccess:#df2f3b;--summary-container-padding-bottom:0px;--tabs-padding-top:0px;}.ps1br77.dark .on-light{display:none;}
|
|
2
2
|
.i1clitdv{background:#222425;width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}
|
|
3
3
|
.fwia263{font-weight:var(--font-weight-default);color:var(--color-primary-text);}
|
|
4
4
|
.u1p7dtdf{font-weight:var(--font-weight-default);color:var(--color-primary-text);font-size:12px;text-align:center;width:24px;line-height:24px;background:rgba(255, 255, 255, 0.1);border-radius:5px;}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
declare type CancelMountCb = () => void;
|
|
2
|
+
|
|
3
|
+
declare const DEEP_LINK_EVENT_ID = "sldl_eid";
|
|
4
|
+
|
|
5
|
+
declare const DEEP_LINK_EXTERNAL_EVENT_ID = "sldl_e_eid";
|
|
6
|
+
|
|
7
|
+
declare const DEEP_LINK_USER_ID = "sldl_uid";
|
|
8
|
+
|
|
9
|
+
declare type DeepLinkCallback = (deepLinkData: DeepLinkContextData['data']) => void;
|
|
10
|
+
|
|
11
|
+
declare type DeepLinkContextData = {
|
|
12
|
+
handled?: boolean;
|
|
13
|
+
parsed?: boolean;
|
|
14
|
+
used?: boolean;
|
|
15
|
+
data?: DeepLinkUrlParams;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare type DeepLinkUrlParams = {
|
|
19
|
+
[DEEP_LINK_USER_ID]?: string;
|
|
20
|
+
[DEEP_LINK_EVENT_ID]?: string;
|
|
21
|
+
[DEEP_LINK_EXTERNAL_EVENT_ID]?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare type DoneFn = Function;
|
|
25
|
+
|
|
26
|
+
declare type OnContentActivateCallback = (renderData: UIData) => void;
|
|
27
|
+
|
|
28
|
+
declare type OnMountCb = () => CancelMountCb;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum streamlayer.sdkSettings.SdkOverlayType
|
|
32
|
+
*/
|
|
33
|
+
declare enum SdkOverlayType {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_UNSET = 0;
|
|
36
|
+
*/
|
|
37
|
+
UNSET = 0,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* betting legacy
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_INPLAY = 1;
|
|
43
|
+
*/
|
|
44
|
+
INPLAY = 1,
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MESSAGING = 2;
|
|
48
|
+
*/
|
|
49
|
+
MESSAGING = 2,
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_STATISTICS = 3;
|
|
53
|
+
*/
|
|
54
|
+
STATISTICS = 3,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* betting
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_BETTING = 4;
|
|
60
|
+
*/
|
|
61
|
+
BETTING = 4,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TWITTER = 5;
|
|
65
|
+
*/
|
|
66
|
+
TWITTER = 5,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_MERCHANDISE = 6;
|
|
70
|
+
*/
|
|
71
|
+
MERCHANDISE = 6,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_CONTESTS = 7;
|
|
75
|
+
*/
|
|
76
|
+
CONTESTS = 7,
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* WatchParty
|
|
80
|
+
*
|
|
81
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_VOICE_CHAT = 8;
|
|
82
|
+
*/
|
|
83
|
+
VOICE_CHAT = 8,
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_TICKETS = 9;
|
|
87
|
+
*/
|
|
88
|
+
TICKETS = 9,
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_WHOIS_WATCHING = 10;
|
|
92
|
+
*/
|
|
93
|
+
WHOIS_WATCHING = 10,
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PROFILE = 11;
|
|
97
|
+
*/
|
|
98
|
+
PROFILE = 11,
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GAMES = 12;
|
|
102
|
+
*/
|
|
103
|
+
GAMES = 12,
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_GOLF_STATISTICS = 13;
|
|
107
|
+
*/
|
|
108
|
+
GOLF_STATISTICS = 13,
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_HIGHLIGHTS = 14;
|
|
112
|
+
*/
|
|
113
|
+
HIGHLIGHTS = 14,
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from enum value: SDK_OVERLAY_TYPE_PUBLIC_CHAT = 15;
|
|
117
|
+
*/
|
|
118
|
+
PUBLIC_CHAT = 15,
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare type StreamLayerPlugin<T = unknown> = (instance: StreamLayerContext, opts: T, done: DoneFn) => void;
|
|
122
|
+
|
|
123
|
+
declare interface StreamLayerSDK {
|
|
124
|
+
onMount: (opts: {
|
|
125
|
+
name: string;
|
|
126
|
+
clear?: boolean;
|
|
127
|
+
}, cb: OnMountCb) => void;
|
|
128
|
+
closeFeature: (destroy?: boolean) => void;
|
|
129
|
+
openFeature: (featureType: SdkOverlayType) => void;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare type UIData = {
|
|
133
|
+
stage: 'activate' | 'deactivate';
|
|
134
|
+
id: string;
|
|
135
|
+
isViewed?: boolean;
|
|
136
|
+
hasNotification?: boolean;
|
|
137
|
+
type: 'advertisement' | 'insight' | 'poll' | 'trivia' | 'prediction' | 'tweet' | 'question';
|
|
138
|
+
hasBanner?: boolean;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export declare const useStreamLayerApp: ({ sdkKey, plugins, production, autoEnable, onDeepLinkHandled, videoPlayerController, onContentActivate, withAdNotification, withAd, friendsTab, }: {
|
|
142
|
+
sdkKey: string;
|
|
143
|
+
plugins?: Set<StreamLayerPlugin>;
|
|
144
|
+
production?: boolean;
|
|
145
|
+
autoEnable?: boolean;
|
|
146
|
+
onDeepLinkHandled?: DeepLinkCallback;
|
|
147
|
+
videoPlayerController?: VideoPlayerCallback;
|
|
148
|
+
onContentActivate?: OnContentActivateCallback;
|
|
149
|
+
withAdNotification?: boolean;
|
|
150
|
+
withAd?: boolean;
|
|
151
|
+
friendsTab: "enabled" | "disabled" | "activatedGame";
|
|
152
|
+
}) => StreamLayerSDK | null;
|
|
153
|
+
|
|
154
|
+
declare type VideoPlayerCallback = (videoPlayerData: VideoPlayerData) => void;
|
|
155
|
+
|
|
156
|
+
declare type VideoPlayerData = {
|
|
157
|
+
muted: boolean;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export { }
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
declare global {
|
|
164
|
+
interface Window {
|
|
165
|
+
sl: unknown;
|
|
166
|
+
}
|
|
167
|
+
}
|