@arcware-cloud/pixelstreaming-websdk 1.3.12 → 1.3.13
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/index.cjs.js +376 -102
- package/index.esm.js +387 -111
- package/index.umd.js +376 -102
- package/package.json +1 -1
- package/types/lib/ArcwareConfig.d.ts +1 -1
- package/types/lib/ArcwarePixelStreaming.d.ts +2 -0
- package/types/lib/domain/ArcwareSettingsSchema.d.ts +39 -3
- package/types/lib/features/whiteLabelling.d.ts +4 -0
- package/types/lib/styles/ArcwarePixelStreamingApplicationStyles.d.ts +65 -0
- package/types/lib/ui/ArcwareLogoLoader/index.d.ts +8 -0
- package/types/shared/lib/Types/ZWhiteLabel.d.ts +24 -0
- package/types/shared/lib/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcware-cloud/pixelstreaming-websdk",
|
|
3
3
|
"description": "WebSDK for easy implementation of pixel streaming with Arcware Cloud Services. Heavily based on the '@epicgames-ps' library.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.13",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./index.umd.js",
|
|
7
7
|
"module": "./index.umd.js",
|
|
@@ -26,7 +26,7 @@ export declare class ArcwareConfig extends Config {
|
|
|
26
26
|
readonly session: Session;
|
|
27
27
|
readonly settings: Settings;
|
|
28
28
|
private _initialSettings;
|
|
29
|
-
readonly VERSION = "1.3.
|
|
29
|
+
readonly VERSION = "1.3.13";
|
|
30
30
|
constructor(config: ArcwareConfigParams);
|
|
31
31
|
/** Setup connection string. */
|
|
32
32
|
get urlFlags(): string;
|
|
@@ -29,6 +29,7 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
29
29
|
private _rVFCArmedForElement?;
|
|
30
30
|
private _mo?;
|
|
31
31
|
private _postInitSideEffectsDone;
|
|
32
|
+
private logoLoader?;
|
|
32
33
|
private resetInitGuardsAndHooks;
|
|
33
34
|
reconnect(): void;
|
|
34
35
|
private isRetryableClose;
|
|
@@ -126,5 +127,6 @@ export declare class ArcwarePixelStreaming extends PixelStreaming {
|
|
|
126
127
|
onStreamingStateChange(callback: (isStreaming: boolean) => void): void;
|
|
127
128
|
private removeXRIconIfDisabled;
|
|
128
129
|
private injectCustomUI;
|
|
130
|
+
private applyBrandingFromSettings;
|
|
129
131
|
}
|
|
130
132
|
export {};
|
|
@@ -31,9 +31,6 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
|
|
|
31
31
|
type: z.ZodLiteral<"queue">;
|
|
32
32
|
queue: z.ZodObject<{
|
|
33
33
|
index: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
/** Can be used to be added to the request in order to verify access to private projects.
|
|
35
|
-
* For internal use only. => Preview page.
|
|
36
|
-
*/
|
|
37
34
|
queueLength: z.ZodOptional<z.ZodNumber>;
|
|
38
35
|
waited: z.ZodOptional<z.ZodNumber>;
|
|
39
36
|
estimatedWaitTime: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -134,6 +131,29 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
|
|
|
134
131
|
landscape?: number;
|
|
135
132
|
portrait?: number;
|
|
136
133
|
}>>;
|
|
134
|
+
/** Loader customization */
|
|
135
|
+
whiteLabelling: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
loadingIconUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
137
|
+
loadingIconFadeMs: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
splashScreenUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
139
|
+
splashScreenMode: z.ZodOptional<z.ZodEnum<["contain", "cover", "stretch", "repeat"]>>;
|
|
140
|
+
splashScreenPosition: z.ZodOptional<z.ZodString>;
|
|
141
|
+
splashScreenBgColor: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, "strict", z.ZodTypeAny, {
|
|
143
|
+
loadingIconUrl?: string;
|
|
144
|
+
loadingIconFadeMs?: number;
|
|
145
|
+
splashScreenUrl?: string;
|
|
146
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
147
|
+
splashScreenPosition?: string;
|
|
148
|
+
splashScreenBgColor?: string;
|
|
149
|
+
}, {
|
|
150
|
+
loadingIconUrl?: string;
|
|
151
|
+
loadingIconFadeMs?: number;
|
|
152
|
+
splashScreenUrl?: string;
|
|
153
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
154
|
+
splashScreenPosition?: string;
|
|
155
|
+
splashScreenBgColor?: string;
|
|
156
|
+
}>>;
|
|
137
157
|
}, "strip", z.ZodTypeAny, {
|
|
138
158
|
session?: string;
|
|
139
159
|
token?: string;
|
|
@@ -179,6 +199,14 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
|
|
|
179
199
|
landscape?: number;
|
|
180
200
|
portrait?: number;
|
|
181
201
|
};
|
|
202
|
+
whiteLabelling?: {
|
|
203
|
+
loadingIconUrl?: string;
|
|
204
|
+
loadingIconFadeMs?: number;
|
|
205
|
+
splashScreenUrl?: string;
|
|
206
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
207
|
+
splashScreenPosition?: string;
|
|
208
|
+
splashScreenBgColor?: string;
|
|
209
|
+
};
|
|
182
210
|
}, {
|
|
183
211
|
session?: string;
|
|
184
212
|
token?: string;
|
|
@@ -224,5 +252,13 @@ export declare const ArcwareSettingsSchema: z.ZodObject<{
|
|
|
224
252
|
landscape?: number;
|
|
225
253
|
portrait?: number;
|
|
226
254
|
};
|
|
255
|
+
whiteLabelling?: {
|
|
256
|
+
loadingIconUrl?: string;
|
|
257
|
+
loadingIconFadeMs?: number;
|
|
258
|
+
splashScreenUrl?: string;
|
|
259
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
260
|
+
splashScreenPosition?: string;
|
|
261
|
+
splashScreenBgColor?: string;
|
|
262
|
+
};
|
|
227
263
|
}>;
|
|
228
264
|
export type Settings = z.infer<typeof ArcwareSettingsSchema>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ZWhiteLabel } from "@arcware-cloud/shared-pixelstreaming-websdk";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/** Parse ?wl=... (or ?whitelabel=...) → validated partial settings */
|
|
4
|
+
export declare function readWhiteLabelFromQuery(qs: URLSearchParams): Partial<z.infer<typeof ZWhiteLabel>> | undefined;
|
|
@@ -17,6 +17,20 @@ export declare const ArcwareStyles: {
|
|
|
17
17
|
"--color13": string;
|
|
18
18
|
"--colorBoxShadow": string;
|
|
19
19
|
};
|
|
20
|
+
".aw-splash": {
|
|
21
|
+
backgroundRepeat: string;
|
|
22
|
+
backgroundPosition: string;
|
|
23
|
+
backgroundSize: string;
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
};
|
|
26
|
+
"@keyframes aw-loader-fade": {
|
|
27
|
+
from: {
|
|
28
|
+
opacity: number;
|
|
29
|
+
};
|
|
30
|
+
to: {
|
|
31
|
+
opacity: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
20
34
|
"#playerUI *": {
|
|
21
35
|
fontFamily: string;
|
|
22
36
|
};
|
|
@@ -209,9 +223,38 @@ export declare const ArcwareStyles: {
|
|
|
209
223
|
};
|
|
210
224
|
".arcware-logo-loader": {
|
|
211
225
|
position: string;
|
|
226
|
+
display: string;
|
|
227
|
+
alignItems: string;
|
|
228
|
+
justifyContent: string;
|
|
229
|
+
width: string;
|
|
230
|
+
height: string;
|
|
231
|
+
margin: string;
|
|
232
|
+
boxSizing: string;
|
|
233
|
+
};
|
|
234
|
+
".arcware-logo-loader img": {
|
|
235
|
+
maxWidth: string;
|
|
236
|
+
maxHeight: string;
|
|
237
|
+
objectFit: string;
|
|
238
|
+
objectPosition: string;
|
|
239
|
+
display: string;
|
|
240
|
+
margin: number;
|
|
241
|
+
verticalAlign: string;
|
|
242
|
+
};
|
|
243
|
+
".arcware-logo-loader.pulse img": {
|
|
244
|
+
animation: string;
|
|
245
|
+
};
|
|
246
|
+
".arcware-logo-loader.aw-custom-loader": {
|
|
247
|
+
width: string;
|
|
248
|
+
height: string;
|
|
249
|
+
};
|
|
250
|
+
".arcware-logo-loader.aw-custom-loader img": {
|
|
212
251
|
display: string;
|
|
213
252
|
width: string;
|
|
214
253
|
height: string;
|
|
254
|
+
maxWidth: string;
|
|
255
|
+
maxHeight: string;
|
|
256
|
+
objectFit: string;
|
|
257
|
+
margin: string;
|
|
215
258
|
};
|
|
216
259
|
"#playOverlay img#playButton": {
|
|
217
260
|
width: string;
|
|
@@ -474,5 +517,27 @@ export declare const ArcwareStyles: {
|
|
|
474
517
|
opacity: number;
|
|
475
518
|
transition: string;
|
|
476
519
|
};
|
|
520
|
+
".love-letters-box-root .arcware-logo-loader": {
|
|
521
|
+
display: string;
|
|
522
|
+
alignItems: string;
|
|
523
|
+
justifyContent: string;
|
|
524
|
+
};
|
|
525
|
+
".love-letters-box-root .arcware-logo-loader.aw-custom-loader": {
|
|
526
|
+
width: string;
|
|
527
|
+
height: string;
|
|
528
|
+
};
|
|
529
|
+
".love-letters-box-root .arcware-logo-loader.aw-custom-loader img": {
|
|
530
|
+
display: string;
|
|
531
|
+
margin: string;
|
|
532
|
+
width: string;
|
|
533
|
+
height: string;
|
|
534
|
+
objectFit: string;
|
|
535
|
+
objectPosition: string;
|
|
536
|
+
};
|
|
537
|
+
".love-letters-box-root .arcware-logo-loader.aw-custom-loader img.alt-40pct": {
|
|
538
|
+
width: string;
|
|
539
|
+
maxWidth: string;
|
|
540
|
+
height: string;
|
|
541
|
+
};
|
|
477
542
|
};
|
|
478
543
|
};
|
|
@@ -2,5 +2,13 @@ export declare class ArcwareLogoLoader {
|
|
|
2
2
|
arcwareLogoLoader: HTMLDivElement;
|
|
3
3
|
constructor();
|
|
4
4
|
private createArcwareLogoLoader;
|
|
5
|
+
private _imgEl?;
|
|
6
|
+
private _hostEl?;
|
|
7
|
+
/** Call this once after you create the wrapper/root that contains the SVG */
|
|
8
|
+
setHostElement(el: HTMLElement): void;
|
|
9
|
+
/** Swap the loader image at runtime; pass undefined to go back to SVG */
|
|
10
|
+
setImage(url?: string): void;
|
|
11
|
+
/** Enable/disable pulsing fade in ms; 0 disables */
|
|
12
|
+
setFade(ms?: number): void;
|
|
5
13
|
private getSvg;
|
|
6
14
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Strict allowlist for white-label brand fields coming from the URL */
|
|
3
|
+
export declare const ZWhiteLabel: z.ZodObject<{
|
|
4
|
+
loadingIconUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
5
|
+
loadingIconFadeMs: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
splashScreenUrl: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
7
|
+
splashScreenMode: z.ZodOptional<z.ZodEnum<["contain", "cover", "stretch", "repeat"]>>;
|
|
8
|
+
splashScreenPosition: z.ZodOptional<z.ZodString>;
|
|
9
|
+
splashScreenBgColor: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
loadingIconUrl?: string;
|
|
12
|
+
loadingIconFadeMs?: number;
|
|
13
|
+
splashScreenUrl?: string;
|
|
14
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
15
|
+
splashScreenPosition?: string;
|
|
16
|
+
splashScreenBgColor?: string;
|
|
17
|
+
}, {
|
|
18
|
+
loadingIconUrl?: string;
|
|
19
|
+
loadingIconFadeMs?: number;
|
|
20
|
+
splashScreenUrl?: string;
|
|
21
|
+
splashScreenMode?: "repeat" | "contain" | "cover" | "stretch";
|
|
22
|
+
splashScreenPosition?: string;
|
|
23
|
+
splashScreenBgColor?: string;
|
|
24
|
+
}>;
|