@unisphere/genie-types 1.38.6 → 1.39.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 +723 -362
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/lib/avatar-runtime/contained-visual-types.d.ts +3 -0
- package/src/lib/avatar-runtime/floater-visual-types.d.ts +3 -0
- package/src/lib/avatar-runtime/visual-bridge-types.d.ts +1 -0
- package/src/lib/data-models-utils.d.ts +36 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
|
+
import { ForceOrientation } from './visual-bridge-types';
|
|
3
4
|
/**
|
|
4
5
|
* Visual settings for contained/embedded avatar display mode.
|
|
5
6
|
*
|
|
@@ -27,5 +28,7 @@ export interface AvatarRuntimeContainedVisualSettings {
|
|
|
27
28
|
onMount: (containerId: string) => void;
|
|
28
29
|
onUnMount: (containerId: string) => void;
|
|
29
30
|
} | null;
|
|
31
|
+
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
32
|
+
forceOrientation?: ForceOrientation;
|
|
30
33
|
}
|
|
31
34
|
export declare const avatarRuntimeContainedVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
|
+
import { ForceOrientation } from './visual-bridge-types';
|
|
3
4
|
/**
|
|
4
5
|
* Visual settings for avatar agent display mode.
|
|
5
6
|
*
|
|
@@ -19,5 +20,7 @@ export interface AvatarRuntimeFloaterVisualSettings {
|
|
|
19
20
|
buttonLabel?: string;
|
|
20
21
|
/** Connection options */
|
|
21
22
|
connect?: AvatarRuntimeConnectSettings;
|
|
23
|
+
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
24
|
+
forceOrientation?: ForceOrientation;
|
|
22
25
|
}
|
|
23
26
|
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -13,6 +13,7 @@ export interface SlotEntry {
|
|
|
13
13
|
mode: SlotMode;
|
|
14
14
|
}
|
|
15
15
|
export type LayoutType = 'cinema' | 'focusContent' | 'balanced' | 'floatingCorner' | 'fullscreenContent';
|
|
16
|
+
export type ForceOrientation = 'portrait' | 'landscape';
|
|
16
17
|
export declare const SUPPORTED_LAYOUT_TYPES: Set<string>;
|
|
17
18
|
export interface LayoutConfig {
|
|
18
19
|
type: LayoutType;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ClassGenieFlashCard, ClassGenieFlashCardElement, ClassGenieFollowupsElement, ClassGenieSourceDocumentItem, ClassGenieSourceItem, ClassGenieSourcesElement, ClassGenieSourceVideoItem, ClassGenieTextFlashcard, ClassGenieVideoGalleryFlashcard, UnisphereChatBlock } from './data-models';
|
|
2
|
+
export declare const isFlashcardElement: (element: any) => element is ClassGenieFlashCardElement;
|
|
3
|
+
export declare const isSourcesElement: (element: any) => element is ClassGenieSourcesElement;
|
|
4
|
+
export declare const isFollowupsElement: (element: any) => element is ClassGenieFollowupsElement;
|
|
5
|
+
export declare const isTextFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieTextFlashcard;
|
|
6
|
+
export declare const isVideoGalleryFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieVideoGalleryFlashcard;
|
|
7
|
+
export declare const isVideoSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceVideoItem;
|
|
8
|
+
export declare const isPDFSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceDocumentItem;
|
|
9
|
+
export declare function isFlashcardBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
10
|
+
type: 'unisphere-tool';
|
|
11
|
+
runtimeName: 'flashcards-tool';
|
|
12
|
+
status: 'loading' | 'ready';
|
|
13
|
+
settings: {
|
|
14
|
+
keypoints: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function isSourcesBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
18
|
+
type: 'unisphere-tool';
|
|
19
|
+
runtimeName: 'sources-tool';
|
|
20
|
+
status: 'loading' | 'ready';
|
|
21
|
+
settings: {
|
|
22
|
+
sources: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type FollowupsBlock = UnisphereChatBlock & {
|
|
26
|
+
type: 'unisphere-tool';
|
|
27
|
+
runtimeName: 'followups-tool';
|
|
28
|
+
status: 'loading' | 'ready';
|
|
29
|
+
};
|
|
30
|
+
export declare function isFollowupsBlock(b: UnisphereChatBlock): b is FollowupsBlock;
|
|
31
|
+
export declare function isTextBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
32
|
+
type: 'markdown';
|
|
33
|
+
status: 'ready';
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const hasSources: (blocks: UnisphereChatBlock[]) => boolean;
|