@go1/go1-embedding-react-sdk 0.0.58 → 0.0.60
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
|
@@ -81,7 +81,8 @@ export type Go1MessageType =
|
|
|
81
81
|
| 'inter_feature_navigation'
|
|
82
82
|
| 'side_drawer_open'
|
|
83
83
|
| 'side_drawer_close'
|
|
84
|
-
| 'play_content'
|
|
84
|
+
| 'play_content'
|
|
85
|
+
| 'go1pay_custom_data';
|
|
85
86
|
|
|
86
87
|
export interface Go1Message {
|
|
87
88
|
type: Go1MessageType;
|
|
@@ -105,6 +106,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributeCommon {
|
|
|
105
106
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
106
107
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
107
108
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
109
|
+
showFooter?: boolean // Whether to show/hide the footer, defaults to true
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
/**
|
package/dist/README.md
CHANGED
|
@@ -81,7 +81,8 @@ export type Go1MessageType =
|
|
|
81
81
|
| 'inter_feature_navigation'
|
|
82
82
|
| 'side_drawer_open'
|
|
83
83
|
| 'side_drawer_close'
|
|
84
|
-
| 'play_content'
|
|
84
|
+
| 'play_content'
|
|
85
|
+
| 'go1pay_custom_data';
|
|
85
86
|
|
|
86
87
|
export interface Go1Message {
|
|
87
88
|
type: Go1MessageType;
|
|
@@ -105,6 +106,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributeCommon {
|
|
|
105
106
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
106
107
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
107
108
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
109
|
+
showFooter?: boolean // Whether to show/hide the footer, defaults to true
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
/**
|
package/dist/common/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type IframesMap = {
|
|
|
4
4
|
[key: string]: HTMLIFrameElement;
|
|
5
5
|
};
|
|
6
6
|
export interface AdditionalInfoMessage {
|
|
7
|
+
feature: FeatureType;
|
|
7
8
|
additionalUserInfo?: AdditionalUserInfo;
|
|
8
9
|
featureAttributes?: FeatureAttributes;
|
|
9
10
|
themeInformation?: ThemeInformation;
|
|
@@ -14,7 +15,7 @@ export interface AdditionalInfoMessage {
|
|
|
14
15
|
export interface ThemeInformation {
|
|
15
16
|
accent: string;
|
|
16
17
|
}
|
|
17
|
-
export type Go1MessageType = 'preview_start_content' | 'preview_close' | 'preview_add_content_success' | 'preview_add_content_failure' | 'preview_remove_content_success' | 'preview_remove_content_failure' | 'parent_show_preview' | 'set_additional_embedding_data' | 'go1_app_initialised' | 'ott_required' | 'search_result_selected' | 'search_filter_toggle' | 'search_redirected' | 'pass_ott' | 'logout' | 'sync_content' | 'open_save_to_playlist_modal' | 'update_experience' | 'inter_feature_navigation' | 'side_drawer_open' | 'side_drawer_close' | 'play_content';
|
|
18
|
+
export type Go1MessageType = 'preview_start_content' | 'preview_close' | 'preview_add_content_success' | 'preview_add_content_failure' | 'preview_remove_content_success' | 'preview_remove_content_failure' | 'parent_show_preview' | 'set_additional_embedding_data' | 'go1_app_initialised' | 'ott_required' | 'search_result_selected' | 'search_filter_toggle' | 'search_redirected' | 'pass_ott' | 'logout' | 'sync_content' | 'open_save_to_playlist_modal' | 'update_experience' | 'inter_feature_navigation' | 'side_drawer_open' | 'side_drawer_close' | 'play_content' | 'go1pay_custom_data';
|
|
18
19
|
export interface Go1Message {
|
|
19
20
|
type: Go1MessageType;
|
|
20
21
|
payload?: any;
|
|
@@ -38,6 +39,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributesPreviewCommon
|
|
|
38
39
|
existingSkills?: string[];
|
|
39
40
|
desiredSkills?: string[];
|
|
40
41
|
desiredRole?: string;
|
|
42
|
+
showFooter?: boolean;
|
|
41
43
|
}
|
|
42
44
|
export interface FeatureAttributesPreview extends FeatureAttributesPreviewCommon {
|
|
43
45
|
id: number;
|
|
@@ -39,6 +39,7 @@ function useGo1ContentView(props) {
|
|
|
39
39
|
featureAttributes,
|
|
40
40
|
integrationSystemId,
|
|
41
41
|
presentingIntegrationSystemId,
|
|
42
|
+
feature,
|
|
42
43
|
};
|
|
43
44
|
sendMessageToGo1({
|
|
44
45
|
type: 'set_additional_embedding_data',
|
|
@@ -59,6 +60,7 @@ function useGo1ContentView(props) {
|
|
|
59
60
|
presentingIntegrationSystemId,
|
|
60
61
|
sendMessageToGo1,
|
|
61
62
|
onGo1MessageReceived,
|
|
63
|
+
feature,
|
|
62
64
|
]);
|
|
63
65
|
(0, react_1.useEffect)(() => {
|
|
64
66
|
window.addEventListener('message', eventListenerInstance);
|