@go1/go1-embedding-react-sdk 0.0.56 → 0.0.58
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 +2 -1
- package/dist/README.md +2 -1
- package/dist/common/types.d.ts +2 -7
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/README.md
CHANGED
package/dist/common/types.d.ts
CHANGED
|
@@ -14,15 +14,15 @@ export interface AdditionalInfoMessage {
|
|
|
14
14
|
export interface ThemeInformation {
|
|
15
15
|
accent: string;
|
|
16
16
|
}
|
|
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';
|
|
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
18
|
export interface Go1Message {
|
|
19
19
|
type: Go1MessageType;
|
|
20
20
|
payload?: any;
|
|
21
21
|
}
|
|
22
|
-
type go1OnlyEnabledFeatures = Array<'ai-chat' | 'library' | 'my-playlists' | 'search'>;
|
|
23
22
|
export type ExternalExperience = 'manager' | 'learner' | 'role-aware';
|
|
24
23
|
export interface FeatureAttributeCommon {
|
|
25
24
|
shouldSuppressPreview?: boolean;
|
|
25
|
+
shouldSuppressOpeningPlayer?: boolean;
|
|
26
26
|
experience?: ExternalExperience;
|
|
27
27
|
featureName?: string;
|
|
28
28
|
contentScope?: 'subscription' | 'library';
|
|
@@ -38,8 +38,6 @@ export interface FeatureAttributesAIChat extends FeatureAttributesPreviewCommon
|
|
|
38
38
|
existingSkills?: string[];
|
|
39
39
|
desiredSkills?: string[];
|
|
40
40
|
desiredRole?: string;
|
|
41
|
-
go1OnlySaveToMyPlaylistsOverride?: boolean;
|
|
42
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
43
41
|
}
|
|
44
42
|
export interface FeatureAttributesPreview extends FeatureAttributesPreviewCommon {
|
|
45
43
|
id: number;
|
|
@@ -55,20 +53,17 @@ export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
|
|
|
55
53
|
export interface FeatureAttributesLibrary extends FeatureAttributesPreviewCommon, FeatureAttributesRetirement {
|
|
56
54
|
libraryEmptyStateDescription?: string;
|
|
57
55
|
shouldShowLibraryTabs?: boolean;
|
|
58
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
59
56
|
}
|
|
60
57
|
export interface FeatureAttributesRetirement extends FeatureAttributesPreviewCommon {
|
|
61
58
|
shouldShowAlternativesSearchButton?: boolean;
|
|
62
59
|
shouldShowNotificationEmailRegisterSwitch?: boolean;
|
|
63
60
|
}
|
|
64
61
|
export interface FeatureAttributesSearch extends FeatureAttributesPreviewCommon {
|
|
65
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
66
62
|
}
|
|
67
63
|
export interface FeatureAttributesContentHub extends FeatureAttributesPreviewCommon {
|
|
68
64
|
}
|
|
69
65
|
export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCommon {
|
|
70
66
|
playlistId?: number;
|
|
71
|
-
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
72
67
|
}
|
|
73
68
|
export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {
|
|
74
69
|
}
|