@go1/go1-embedding-react-sdk 0.0.57 → 0.0.59
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
|
@@ -105,6 +105,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributeCommon {
|
|
|
105
105
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
106
106
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
107
107
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
108
|
+
showFooter?: boolean // Whether to show/hide the footer, defaults to true
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
/**
|
package/dist/README.md
CHANGED
|
@@ -105,6 +105,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributeCommon {
|
|
|
105
105
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
106
106
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
107
107
|
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
108
|
+
showFooter?: boolean // Whether to show/hide the footer, defaults to true
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
/**
|
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;
|
|
@@ -19,7 +20,6 @@ export interface Go1Message {
|
|
|
19
20
|
type: Go1MessageType;
|
|
20
21
|
payload?: any;
|
|
21
22
|
}
|
|
22
|
-
type go1OnlyEnabledFeatures = Array<'ai-chat' | 'library' | 'my-playlists' | 'search'>;
|
|
23
23
|
export type ExternalExperience = 'manager' | 'learner' | 'role-aware';
|
|
24
24
|
export interface FeatureAttributeCommon {
|
|
25
25
|
shouldSuppressPreview?: boolean;
|
|
@@ -39,8 +39,7 @@ export interface FeatureAttributesAIChat extends FeatureAttributesPreviewCommon
|
|
|
39
39
|
existingSkills?: string[];
|
|
40
40
|
desiredSkills?: string[];
|
|
41
41
|
desiredRole?: string;
|
|
42
|
-
|
|
43
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
42
|
+
showFooter?: boolean;
|
|
44
43
|
}
|
|
45
44
|
export interface FeatureAttributesPreview extends FeatureAttributesPreviewCommon {
|
|
46
45
|
id: number;
|
|
@@ -56,20 +55,17 @@ export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
|
|
|
56
55
|
export interface FeatureAttributesLibrary extends FeatureAttributesPreviewCommon, FeatureAttributesRetirement {
|
|
57
56
|
libraryEmptyStateDescription?: string;
|
|
58
57
|
shouldShowLibraryTabs?: boolean;
|
|
59
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
60
58
|
}
|
|
61
59
|
export interface FeatureAttributesRetirement extends FeatureAttributesPreviewCommon {
|
|
62
60
|
shouldShowAlternativesSearchButton?: boolean;
|
|
63
61
|
shouldShowNotificationEmailRegisterSwitch?: boolean;
|
|
64
62
|
}
|
|
65
63
|
export interface FeatureAttributesSearch extends FeatureAttributesPreviewCommon {
|
|
66
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
67
64
|
}
|
|
68
65
|
export interface FeatureAttributesContentHub extends FeatureAttributesPreviewCommon {
|
|
69
66
|
}
|
|
70
67
|
export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCommon {
|
|
71
68
|
playlistId?: number;
|
|
72
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
73
69
|
}
|
|
74
70
|
export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {
|
|
75
71
|
}
|
|
@@ -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);
|