@unisphere/genie-types 1.39.3 → 1.39.4
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
|
@@ -2450,18 +2450,47 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2450
2450
|
optional: true
|
|
2451
2451
|
},
|
|
2452
2452
|
lobbyButton: {
|
|
2453
|
-
type: '
|
|
2453
|
+
type: 'orByType',
|
|
2454
2454
|
optional: true,
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
type: '
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2455
|
+
schemas: {
|
|
2456
|
+
custom: {
|
|
2457
|
+
type: 'object',
|
|
2458
|
+
properties: {
|
|
2459
|
+
type: {
|
|
2460
|
+
type: 'literal',
|
|
2461
|
+
value: 'custom'
|
|
2462
|
+
},
|
|
2463
|
+
onMount: {
|
|
2464
|
+
type: 'function'
|
|
2465
|
+
},
|
|
2466
|
+
onUnMount: {
|
|
2467
|
+
type: 'function'
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2462
2470
|
},
|
|
2463
|
-
|
|
2464
|
-
type: '
|
|
2471
|
+
default: {
|
|
2472
|
+
type: 'object',
|
|
2473
|
+
properties: {
|
|
2474
|
+
type: {
|
|
2475
|
+
type: 'literal',
|
|
2476
|
+
value: 'default'
|
|
2477
|
+
},
|
|
2478
|
+
label: {
|
|
2479
|
+
type: 'primitive',
|
|
2480
|
+
value: 'string',
|
|
2481
|
+
optional: true
|
|
2482
|
+
},
|
|
2483
|
+
icon: {
|
|
2484
|
+
type: 'primitive',
|
|
2485
|
+
value: 'any',
|
|
2486
|
+
optional: true
|
|
2487
|
+
},
|
|
2488
|
+
style: {
|
|
2489
|
+
type: 'primitive',
|
|
2490
|
+
value: 'object',
|
|
2491
|
+
optional: true
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2465
2494
|
}
|
|
2466
2495
|
}
|
|
2467
2496
|
},
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export type ChatEntry = {
|
|
|
4
4
|
role: ChatEntryRole;
|
|
5
5
|
text: string;
|
|
6
6
|
turnId?: string;
|
|
7
|
+
messageId?: string;
|
|
7
8
|
};
|
|
8
9
|
export type ClientToolCallLogEntryStatus = 'fired' | 'unregistered' | 'unregistered-awaiting-response' | 'completed' | 'error' | 'no-response' | 'delivery-error' | 'invalid-payload' | 'invalid-arguments';
|
|
9
10
|
export type ClientToolCallLogEntry = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
3
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
4
|
import { ForceOrientation } from './visual-bridge-types';
|
|
@@ -22,11 +23,18 @@ export interface AvatarRuntimeContainedVisualSettings {
|
|
|
22
23
|
* - `null`: no lobby button rendered
|
|
23
24
|
* - `{ type: 'custom', ... }`: host renders its own button into the container,
|
|
24
25
|
* notified via `onMount`/`onUnMount`
|
|
26
|
+
* - `{ type: 'default', ... }`: host renders its own button into the container,
|
|
27
|
+
* with optional label, icon, and styles
|
|
25
28
|
*/
|
|
26
29
|
lobbyButton?: {
|
|
27
30
|
type: 'custom';
|
|
28
31
|
onMount: (containerId: string) => void;
|
|
29
32
|
onUnMount: (containerId: string) => void;
|
|
33
|
+
} | {
|
|
34
|
+
type: 'default';
|
|
35
|
+
label?: string;
|
|
36
|
+
icon?: React.ReactNode;
|
|
37
|
+
style?: React.CSSProperties;
|
|
30
38
|
} | null;
|
|
31
39
|
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
32
40
|
forceOrientation?: ForceOrientation;
|