@go1/go1-embedding-react-sdk 0.0.8 → 0.0.9
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/README.md
CHANGED
|
@@ -73,7 +73,14 @@ export interface FeatureAttributesAIChat {
|
|
|
73
73
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Used to configure the `preview` feature
|
|
78
|
+
*/
|
|
79
|
+
export interface FeatureAttributesPreview {
|
|
80
|
+
id: number
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
|
77
84
|
|
|
78
85
|
export interface AdditionalUserInfo {
|
|
79
86
|
jobTitle: string;
|
package/dist/README.md
CHANGED
|
@@ -73,7 +73,14 @@ export interface FeatureAttributesAIChat {
|
|
|
73
73
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Used to configure the `preview` feature
|
|
78
|
+
*/
|
|
79
|
+
export interface FeatureAttributesPreview {
|
|
80
|
+
id: number
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
|
77
84
|
|
|
78
85
|
export interface AdditionalUserInfo {
|
|
79
86
|
jobTitle: string;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -24,12 +24,15 @@ export interface FeatureAttributesAIChat {
|
|
|
24
24
|
desiredSkills?: string[];
|
|
25
25
|
desiredRole?: string;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export interface FeatureAttributesPreview {
|
|
28
|
+
id: number;
|
|
29
|
+
}
|
|
30
|
+
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview;
|
|
28
31
|
export interface AdditionalUserInfo {
|
|
29
32
|
jobTitle: string;
|
|
30
33
|
}
|
|
31
34
|
export interface InitOptions {
|
|
32
|
-
feature: 'ai-chat' | 'content-hub' | 'preview';
|
|
35
|
+
feature: 'ai-chat' | 'content-hub' | 'preview' | 'library' | 'search';
|
|
33
36
|
iframeParentId?: string;
|
|
34
37
|
iframeParentElement?: HTMLElement;
|
|
35
38
|
featureAttributes?: FeatureAttributes;
|
|
@@ -30,11 +30,11 @@ function useGo1ContentView(props) {
|
|
|
30
30
|
let payload = {
|
|
31
31
|
additionalUserInfo,
|
|
32
32
|
themeInformation,
|
|
33
|
-
featureAttributes
|
|
33
|
+
featureAttributes,
|
|
34
34
|
};
|
|
35
35
|
sendMessageToGo1({
|
|
36
36
|
type: 'set_additional_embedding_data',
|
|
37
|
-
payload
|
|
37
|
+
payload,
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
@@ -48,7 +48,7 @@ function useGo1ContentView(props) {
|
|
|
48
48
|
sendMessageToGo1,
|
|
49
49
|
onGo1MessageReceived,
|
|
50
50
|
themeInformation,
|
|
51
|
-
featureAttributes
|
|
51
|
+
featureAttributes,
|
|
52
52
|
]);
|
|
53
53
|
(0, react_1.useEffect)(() => {
|
|
54
54
|
window.addEventListener('message', eventListenerInstance);
|