@go1/go1-embedding-react-sdk 0.2.0 → 0.3.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/README.md +3 -3
- package/dist/CHANGELOG.md +8 -0
- package/dist/README.md +3 -3
- package/dist/common/types.d.ts +5 -2
- package/dist/common/types.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Go1 Embedding React SDK
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A React hook to embed a Go1 content view in your site. Includes two-way messaging between your site and the Go1 content view.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -95,7 +95,7 @@ export type Experience = 'manager' | 'learner' | 'role-aware'
|
|
|
95
95
|
|
|
96
96
|
interface FeatureAttributeCommon {
|
|
97
97
|
shouldSuppressPreview?: boolean;
|
|
98
|
-
experience?: Experience;
|
|
98
|
+
experience?: Experience; // Defaults to `manager`
|
|
99
99
|
contentScope?: 'subscription' | 'library';
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -311,4 +311,4 @@ const onGo1MessageReceived = (message) => {
|
|
|
311
311
|
|
|
312
312
|
## Support
|
|
313
313
|
|
|
314
|
-
https://www.go1.com/developers
|
|
314
|
+
<https://www.go1.com/developers>
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @go1/go1-embedding-react-sdk
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- New featureAttributes for Select Welcome Modal and Recommendation
|
|
8
|
+
- new Go1MessageType 'contact_go1_navigation'
|
|
9
|
+
- Add new feature auth-clients
|
|
10
|
+
|
|
3
11
|
## 0.2.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Go1 Embedding React SDK
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A React hook to embed a Go1 content view in your site. Includes two-way messaging between your site and the Go1 content view.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -95,7 +95,7 @@ export type Experience = 'manager' | 'learner' | 'role-aware'
|
|
|
95
95
|
|
|
96
96
|
interface FeatureAttributeCommon {
|
|
97
97
|
shouldSuppressPreview?: boolean;
|
|
98
|
-
experience?: Experience;
|
|
98
|
+
experience?: Experience; // Defaults to `manager`
|
|
99
99
|
contentScope?: 'subscription' | 'library';
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -311,4 +311,4 @@ const onGo1MessageReceived = (message) => {
|
|
|
311
311
|
|
|
312
312
|
## Support
|
|
313
313
|
|
|
314
|
-
https://www.go1.com/developers
|
|
314
|
+
<https://www.go1.com/developers>
|
package/dist/common/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface AdditionalInfoMessage {
|
|
|
7
7
|
feature: FeatureType;
|
|
8
8
|
additionalUserInfo?: AdditionalUserInfo;
|
|
9
9
|
featureAttributes?: FeatureAttributes;
|
|
10
|
-
themeInformation?: ThemeInformation;
|
|
10
|
+
themeInformation?: ThemeInformation | ThemeInformationElysium;
|
|
11
11
|
integrationSystemId?: string;
|
|
12
12
|
presentingIntegrationSystemId?: string;
|
|
13
13
|
experience?: FeatureAttributes['experience'];
|
|
@@ -16,6 +16,9 @@ export interface AdditionalInfoMessage {
|
|
|
16
16
|
export interface ThemeInformation {
|
|
17
17
|
accent: string;
|
|
18
18
|
}
|
|
19
|
+
export interface ThemeInformationElysium {
|
|
20
|
+
brandColor: string;
|
|
21
|
+
}
|
|
19
22
|
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' | 'set_access_token' | 'logout' | 'sync_content' | 'open_save_to_playlist_modal' | 'update_experience' | 'inter_feature_navigation' | 'side_drawer_open' | 'side_drawer_close' | 'elysium_modal_open' | 'elysium_modal_close' | 'play_content' | 'go1pay_custom_data' | 'bulk_upload_content' | 'bulk_upload_metadata' | 'bulk_upload_close' | 'contact_go1_navigation';
|
|
20
23
|
export type Go1Message = {
|
|
21
24
|
type: Go1MessageType;
|
|
@@ -94,7 +97,7 @@ export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPrevi
|
|
|
94
97
|
export interface AdditionalUserInfo {
|
|
95
98
|
jobTitle: string;
|
|
96
99
|
}
|
|
97
|
-
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed", "my-learning", "insights", "go1-learn/library", "go1-learn/my-learning", "go1-learn/learner-content", "go1-learn/search", "bulk-upload", "content-status", "partner-sales", "home", "recommendations"];
|
|
100
|
+
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed", "my-learning", "insights", "go1-learn/library", "go1-learn/my-learning", "go1-learn/learner-content", "go1-learn/search", "bulk-upload", "content-status", "partner-sales", "home", "recommendations", "auth-clients"];
|
|
98
101
|
export type FeatureType = (typeof features)[number];
|
|
99
102
|
export interface InitOptions {
|
|
100
103
|
feature: FeatureType;
|
package/dist/common/types.js
CHANGED