@unisphere/genie-types 1.23.2 → 1.24.1
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
|
@@ -3182,7 +3182,7 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
3182
3182
|
|
|
3183
3183
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
3184
3184
|
|
|
3185
|
-
const SUPPORTED_LAYOUT_TYPES = new Set(['cinema', 'focusContent', 'balanced', 'floatingCorner']);
|
|
3185
|
+
const SUPPORTED_LAYOUT_TYPES = new Set(['cinema', 'focusContent', 'balanced', 'floatingCorner', 'fullscreenContent']);
|
|
3186
3186
|
|
|
3187
3187
|
const blockVisualContextSchema = {
|
|
3188
3188
|
type: 'object',
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export interface SlotEntry {
|
|
|
12
12
|
mount: SlotMount;
|
|
13
13
|
mode: SlotMode;
|
|
14
14
|
}
|
|
15
|
-
export type LayoutType = 'cinema' | 'focusContent' | 'balanced' | 'floatingCorner';
|
|
15
|
+
export type LayoutType = 'cinema' | 'focusContent' | 'balanced' | 'floatingCorner' | 'fullscreenContent';
|
|
16
16
|
export declare const SUPPORTED_LAYOUT_TYPES: Set<string>;
|
|
17
17
|
export interface LayoutConfig {
|
|
18
18
|
type: LayoutType;
|
|
@@ -20,11 +20,12 @@ export interface LayoutConfig {
|
|
|
20
20
|
}
|
|
21
21
|
export interface VisualBehavior {
|
|
22
22
|
pauseAfterSpeaking?: boolean;
|
|
23
|
+
pauseImmediately?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface VisualTypeConfig {
|
|
25
26
|
behavior?: VisualBehavior;
|
|
26
27
|
layout?: LayoutConfig;
|
|
27
|
-
slots?: Record<SlotType, SlotConfig
|
|
28
|
+
slots?: Partial<Record<SlotType, SlotConfig>>;
|
|
28
29
|
}
|
|
29
30
|
export interface ResolvedCapabilities {
|
|
30
31
|
layout?: LayoutConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnisphereService } from '@unisphere/runtime';
|
|
2
|
-
import { TinyPubSub } from '@unisphere/core';
|
|
2
|
+
import { TinyDataStoreConsumer, TinyPubSub } from '@unisphere/core';
|
|
3
3
|
import { AnswerModel, AnswerType } from '../types';
|
|
4
4
|
import { GlobalChatSettings } from '../chat-runtime';
|
|
5
5
|
/**
|
|
@@ -61,18 +61,14 @@ export interface GenieChatServiceType extends UnisphereService {
|
|
|
61
61
|
}>;
|
|
62
62
|
/** Observable for stopping active answer generation */
|
|
63
63
|
stopAnswer: TinyPubSub<void>;
|
|
64
|
-
/**
|
|
65
|
-
|
|
64
|
+
/** Answer time store */
|
|
65
|
+
answerType: TinyDataStoreConsumer<AnswerType>;
|
|
66
66
|
/** Set the preferred answer type */
|
|
67
67
|
setAnswerType(type: AnswerType): void;
|
|
68
|
-
/**
|
|
69
|
-
|
|
70
|
-
/** Observable that fires when answer model changes */
|
|
71
|
-
answerModelChanged: TinyPubSub<AnswerModel | undefined>;
|
|
68
|
+
/** Answer model store */
|
|
69
|
+
answerModel: TinyDataStoreConsumer<AnswerModel | undefined>;
|
|
72
70
|
/** Set the preferred answer model */
|
|
73
71
|
setAnswerModel(model: AnswerModel | undefined): void;
|
|
74
|
-
/** Get the current answer model */
|
|
75
|
-
getAnswerModel(): AnswerModel | undefined;
|
|
76
72
|
/** Get UI configuration ID */
|
|
77
73
|
getUiconfId(): string | null;
|
|
78
74
|
/** Get Kaltura player initialization parameters */
|
|
@@ -92,5 +88,13 @@ export interface GenieChatServiceType extends UnisphereService {
|
|
|
92
88
|
getContainerRef(): HTMLDivElement | null;
|
|
93
89
|
/** Global chat configuration settings */
|
|
94
90
|
get globalChatSettings(): GlobalChatSettings;
|
|
91
|
+
/** @deprecated use answerType */
|
|
92
|
+
answerTypeChanged: TinyPubSub<AnswerType>;
|
|
93
|
+
/** @deprecated use answerType */
|
|
94
|
+
getAnswerType(): AnswerType;
|
|
95
|
+
/** @deprecated use answerModel */
|
|
96
|
+
answerModelChanged: TinyPubSub<AnswerModel | undefined>;
|
|
97
|
+
/** @deprecated use answerModel */
|
|
98
|
+
getAnswerModel(): AnswerModel | undefined;
|
|
95
99
|
}
|
|
96
100
|
export {};
|