@unisphere/genie-types 1.35.1 → 1.37.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/index.esm.js
CHANGED
|
@@ -2078,7 +2078,7 @@ const getResolvedWidgetName = params => {
|
|
|
2078
2078
|
if (params.widgetName === 'unisphere.widget.genie' && GENIE_RUNTIMES.includes(params.runtimeName)) {
|
|
2079
2079
|
return 'unisphere.widget.genie-tools';
|
|
2080
2080
|
}
|
|
2081
|
-
if (params.widgetName === 'unisphere.widget.genie' && GEN_UI_RUNTIMES.includes(params.runtimeName)) {
|
|
2081
|
+
if ((params.widgetName === 'unisphere.widget.genie' || params.widgetName === 'unisphere.widget.genie-tools') && GEN_UI_RUNTIMES.includes(params.runtimeName)) {
|
|
2082
2082
|
return 'unisphere.widget.gen-ui';
|
|
2083
2083
|
}
|
|
2084
2084
|
return params.widgetName;
|
|
@@ -2396,7 +2396,28 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2396
2396
|
value: '1',
|
|
2397
2397
|
optional: true
|
|
2398
2398
|
},
|
|
2399
|
-
connect: avatarRuntimeConnectSettingsSchema
|
|
2399
|
+
connect: avatarRuntimeConnectSettingsSchema,
|
|
2400
|
+
stageMode: {
|
|
2401
|
+
type: 'enum',
|
|
2402
|
+
values: ['contained', 'full-screen'],
|
|
2403
|
+
optional: true
|
|
2404
|
+
},
|
|
2405
|
+
lobbyButton: {
|
|
2406
|
+
type: 'object',
|
|
2407
|
+
optional: true,
|
|
2408
|
+
properties: {
|
|
2409
|
+
type: {
|
|
2410
|
+
type: 'literal',
|
|
2411
|
+
value: 'custom'
|
|
2412
|
+
},
|
|
2413
|
+
onMount: {
|
|
2414
|
+
type: 'function'
|
|
2415
|
+
},
|
|
2416
|
+
onUnMount: {
|
|
2417
|
+
type: 'function'
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2400
2421
|
}
|
|
2401
2422
|
};
|
|
2402
2423
|
|
|
@@ -3390,6 +3411,11 @@ const blockVisualContextSchema = {
|
|
|
3390
3411
|
type: 'primitive',
|
|
3391
3412
|
value: 'number',
|
|
3392
3413
|
optional: true
|
|
3414
|
+
},
|
|
3415
|
+
avatarSessionId: {
|
|
3416
|
+
type: 'primitive',
|
|
3417
|
+
value: 'string',
|
|
3418
|
+
optional: true
|
|
3393
3419
|
}
|
|
3394
3420
|
}
|
|
3395
3421
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"author": "kaltura",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"types": "./src/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@kaltura-sdk/rtc-core": "^1.25.
|
|
12
|
+
"@kaltura-sdk/rtc-core": "^1.25.16",
|
|
13
13
|
"@unisphere/core": "^1.99.0",
|
|
14
14
|
"@unisphere/runtime": "^1.98.0",
|
|
15
15
|
"@unisphere/runtime-js": "^1.96.0"
|
|
@@ -13,5 +13,19 @@ export interface AvatarRuntimeContainedVisualSettings {
|
|
|
13
13
|
schemaVersion?: string;
|
|
14
14
|
/** Connection options */
|
|
15
15
|
connect?: AvatarRuntimeConnectSettings;
|
|
16
|
+
/** Stage presentation mode: inline within the container or full-screen dialog */
|
|
17
|
+
stageMode?: 'contained' | 'full-screen';
|
|
18
|
+
/**
|
|
19
|
+
* Lobby button shown before the avatar connects.
|
|
20
|
+
* - omitted: default built-in lobby button
|
|
21
|
+
* - `null`: no lobby button rendered
|
|
22
|
+
* - `{ type: 'custom', ... }`: host renders its own button into the container,
|
|
23
|
+
* notified via `onMount`/`onUnMount`
|
|
24
|
+
*/
|
|
25
|
+
lobbyButton?: {
|
|
26
|
+
type: 'custom';
|
|
27
|
+
onMount: (containerId: string) => void;
|
|
28
|
+
onUnMount: (containerId: string) => void;
|
|
29
|
+
} | null;
|
|
16
30
|
}
|
|
17
31
|
export declare const avatarRuntimeContainedVisualSettingsSchema: ValidatorSchema;
|
|
@@ -26,6 +26,8 @@ export interface BlockVisualContext {
|
|
|
26
26
|
groupIndex?: number;
|
|
27
27
|
/** Custom UI styling and behavior options */
|
|
28
28
|
customization?: ChatCustomization;
|
|
29
|
+
/** Optional session identifier for the avatar */
|
|
30
|
+
avatarSessionId?: string;
|
|
29
31
|
}
|
|
30
32
|
export declare const blockVisualContextSchema: ValidatorSchema;
|
|
31
33
|
export {};
|