@unisphere/genie-types 1.40.0 → 1.41.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
|
@@ -1863,6 +1863,10 @@ const floaterVisualSettingsSchema = {
|
|
|
1863
1863
|
mode: modeSchema,
|
|
1864
1864
|
context: chatContextSchema,
|
|
1865
1865
|
customization: chatCustomizationSchema,
|
|
1866
|
+
onThreadIdChanged: {
|
|
1867
|
+
type: 'function',
|
|
1868
|
+
optional: true
|
|
1869
|
+
},
|
|
1866
1870
|
dynamicVariables: dynamicVariablesSchema,
|
|
1867
1871
|
header: headerSchema,
|
|
1868
1872
|
openingPosition: {
|
|
@@ -1887,6 +1891,10 @@ const floaterCTAVisualSettingsSchema = {
|
|
|
1887
1891
|
optional: true
|
|
1888
1892
|
},
|
|
1889
1893
|
mode: modeSchema,
|
|
1894
|
+
onThreadIdChanged: {
|
|
1895
|
+
type: 'function',
|
|
1896
|
+
optional: true
|
|
1897
|
+
},
|
|
1890
1898
|
openByDefault: {
|
|
1891
1899
|
type: 'primitive',
|
|
1892
1900
|
value: 'boolean',
|
|
@@ -1997,6 +2005,10 @@ const pageVisualSettingsSchema = {
|
|
|
1997
2005
|
properties: Object.assign(Object.assign({}, chatCustomizationSchemaProperties), {
|
|
1998
2006
|
schemaVersion: schemaVersionSchema,
|
|
1999
2007
|
scroll: scrollSchema,
|
|
2008
|
+
onThreadIdChanged: {
|
|
2009
|
+
type: 'function',
|
|
2010
|
+
optional: true
|
|
2011
|
+
},
|
|
2000
2012
|
customization: chatCustomizationSchema,
|
|
2001
2013
|
context: pageContextSchema,
|
|
2002
2014
|
initialQuestion: initialQuestionSchema,
|
|
@@ -2058,7 +2070,11 @@ const popupVisualSettingsSchema = {
|
|
|
2058
2070
|
scroll: scrollSchema,
|
|
2059
2071
|
customization: chatCustomizationSchema,
|
|
2060
2072
|
initialQuestion: initialQuestionSchema,
|
|
2061
|
-
dynamicVariables: dynamicVariablesSchema
|
|
2073
|
+
dynamicVariables: dynamicVariablesSchema,
|
|
2074
|
+
onThreadIdChanged: {
|
|
2075
|
+
type: 'function',
|
|
2076
|
+
optional: true
|
|
2077
|
+
}
|
|
2062
2078
|
})
|
|
2063
2079
|
};
|
|
2064
2080
|
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ type InitialQuestion = {
|
|
|
49
49
|
export type PageVisualSettings = ScrollableVisualSettings & ChatCustomization & {
|
|
50
50
|
/** Context for the chat session — host-provided, not user-controllable */
|
|
51
51
|
context?: Pick<ChatContext, 'type' | 'id'>;
|
|
52
|
+
onThreadIdChanged?: (threadId: string) => void;
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
54
55
|
* Visual settings for banner/hero-style chat landing pages.
|
|
@@ -108,6 +109,7 @@ export type BannerVisualSettings = BaseVisualSettings & ChatCustomization & {
|
|
|
108
109
|
export type PopupVisualSettings = ScrollableVisualSettings & ChatCustomization & {
|
|
109
110
|
/** Optional question to ask automatically when popup opens */
|
|
110
111
|
initialQuestion?: InitialQuestion;
|
|
112
|
+
onThreadIdChanged?: (threadId: string) => void;
|
|
111
113
|
};
|
|
112
114
|
export type ChatHeaderSettings = {
|
|
113
115
|
/** Replaces the default header title */
|
|
@@ -139,12 +141,14 @@ export type FloaterCTAVisualSettings = ModeContextVisualSettings & ChatCustomiza
|
|
|
139
141
|
openByDefault?: boolean;
|
|
140
142
|
type?: 'button';
|
|
141
143
|
text?: string;
|
|
144
|
+
onThreadIdChanged?: (threadId: string) => void;
|
|
142
145
|
showIcon?: boolean;
|
|
143
146
|
header?: ChatHeaderSettings;
|
|
144
147
|
};
|
|
145
148
|
export type FloaterVisualSettings = ModeContextVisualSettings & ChatCustomization & {
|
|
146
149
|
openingPosition?: 'left' | 'right';
|
|
147
150
|
header?: ChatHeaderSettings;
|
|
151
|
+
onThreadIdChanged?: (threadId: string) => void;
|
|
148
152
|
};
|
|
149
153
|
export declare const floaterVisualSettingsSchema: ValidatorSchema;
|
|
150
154
|
export declare const floaterCTAVisualSettingsSchema: ValidatorSchema;
|