@go1/go1-embedding-react-sdk 0.3.0 → 0.5.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 +13 -0
- package/dist/CHANGELOG.md +26 -0
- package/dist/README.md +13 -0
- package/dist/common/types.d.ts +15 -6
- package/dist/common/types.js +14 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -309,6 +309,19 @@ const onGo1MessageReceived = (message) => {
|
|
|
309
309
|
};
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
+
### Go1 Message Example Payloads
|
|
313
|
+
|
|
314
|
+
Item has been added to the library
|
|
315
|
+
|
|
316
|
+
```typescript
|
|
317
|
+
{
|
|
318
|
+
"type": "library_content_added",
|
|
319
|
+
"payload": {
|
|
320
|
+
"id": "3510462"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
```
|
|
324
|
+
|
|
312
325
|
## Support
|
|
313
326
|
|
|
314
327
|
<https://www.go1.com/developers>
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @go1/go1-embedding-react-sdk
|
|
2
2
|
|
|
3
|
+
## 0.5.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
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Add new message library_content_added
|
|
14
|
+
- Remove message elysium_modal_open and elysium_modal_close
|
|
15
|
+
- Adding shouldSuppressBookmark and shouldSuppressPlaylistAdministration to featureAttributes, allowing partners to hide the bookmark and playlist functionality
|
|
16
|
+
|
|
17
|
+
## 0.4.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- New featureAttributes for Select Welcome Modal and Recommendation
|
|
22
|
+
- new Go1MessageType 'contact_go1_navigation'
|
|
23
|
+
- Add new feature auth-clients
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Add new message library_content_added
|
|
28
|
+
|
|
3
29
|
## 0.3.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
package/dist/README.md
CHANGED
|
@@ -309,6 +309,19 @@ const onGo1MessageReceived = (message) => {
|
|
|
309
309
|
};
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
+
### Go1 Message Example Payloads
|
|
313
|
+
|
|
314
|
+
Item has been added to the library
|
|
315
|
+
|
|
316
|
+
```typescript
|
|
317
|
+
{
|
|
318
|
+
"type": "library_content_added",
|
|
319
|
+
"payload": {
|
|
320
|
+
"id": "3510462"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
```
|
|
324
|
+
|
|
312
325
|
## Support
|
|
313
326
|
|
|
314
327
|
<https://www.go1.com/developers>
|
package/dist/common/types.d.ts
CHANGED
|
@@ -19,16 +19,25 @@ export interface ThemeInformation {
|
|
|
19
19
|
export interface ThemeInformationElysium {
|
|
20
20
|
brandColor: string;
|
|
21
21
|
}
|
|
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' | '
|
|
23
|
-
|
|
24
|
-
type:
|
|
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' | 'play_content' | 'go1pay_custom_data' | 'bulk_upload_content' | 'bulk_upload_metadata' | 'bulk_upload_close' | 'contact_go1_navigation' | 'library_content_added';
|
|
23
|
+
interface Go1MessageUpdateExperience {
|
|
24
|
+
type: 'update_experience';
|
|
25
|
+
payload: {
|
|
26
|
+
experience: ExternalExperience;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
interface Go1MessageGeneric {
|
|
30
|
+
type: Exclude<Go1MessageType, 'update_experience'>;
|
|
25
31
|
payload?: any;
|
|
26
|
-
}
|
|
32
|
+
}
|
|
33
|
+
export type Go1Message = Go1MessageUpdateExperience | Go1MessageGeneric;
|
|
27
34
|
export type ExternalExperience = 'manager' | 'learner' | 'role-aware';
|
|
28
35
|
export interface FeatureAttributeCommon {
|
|
29
36
|
shouldSuppressPreview?: boolean;
|
|
30
37
|
shouldSuppressOpeningPlayer?: boolean;
|
|
31
38
|
shouldShowSelectWelcomeModal?: boolean;
|
|
39
|
+
shouldSuppressBookmark?: boolean;
|
|
40
|
+
shouldSuppressPlaylistAdministration?: boolean;
|
|
32
41
|
experience?: ExternalExperience;
|
|
33
42
|
contentScope?: 'subscription' | 'library';
|
|
34
43
|
}
|
|
@@ -49,7 +58,7 @@ export interface FeatureAttributesPreview extends FeatureAttributesPreviewCommon
|
|
|
49
58
|
id: number;
|
|
50
59
|
}
|
|
51
60
|
export interface FeatureAttributesWallet extends FeatureAttributeCommon {
|
|
52
|
-
walletMode: 'setup' | 'main'
|
|
61
|
+
walletMode: 'setup' | 'main';
|
|
53
62
|
deepLink?: string;
|
|
54
63
|
oneClickBuyUrl?: string;
|
|
55
64
|
}
|
|
@@ -97,7 +106,7 @@ export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPrevi
|
|
|
97
106
|
export interface AdditionalUserInfo {
|
|
98
107
|
jobTitle: string;
|
|
99
108
|
}
|
|
100
|
-
export declare const features: readonly ["
|
|
109
|
+
export declare const features: readonly ["auth-clients", "go1-learn/learner-content", "go1-learn/library", "go1-learn/my-learning", "go1-learn/search", "insights", "activity-feed", "ai-chat", "bulk-upload", "content-hub", "content-retirement", "content-status", "home", "library", "my-learning", "my-playlists", "partner-sales", "preview", "recommendations", "search", "wallet"];
|
|
101
110
|
export type FeatureType = (typeof features)[number];
|
|
102
111
|
export interface InitOptions {
|
|
103
112
|
feature: FeatureType;
|
package/dist/common/types.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.features = void 0;
|
|
4
4
|
exports.features = [
|
|
5
|
-
'
|
|
6
|
-
'content
|
|
7
|
-
'preview',
|
|
8
|
-
'library',
|
|
9
|
-
'search',
|
|
10
|
-
'wallet',
|
|
11
|
-
'content-retirement',
|
|
12
|
-
'my-playlists',
|
|
13
|
-
'activity-feed',
|
|
14
|
-
'my-learning',
|
|
15
|
-
'insights',
|
|
5
|
+
'auth-clients',
|
|
6
|
+
'go1-learn/learner-content',
|
|
16
7
|
'go1-learn/library',
|
|
17
8
|
'go1-learn/my-learning',
|
|
18
|
-
'go1-learn/learner-content',
|
|
19
9
|
'go1-learn/search',
|
|
10
|
+
'insights',
|
|
11
|
+
'activity-feed',
|
|
12
|
+
'ai-chat',
|
|
20
13
|
'bulk-upload',
|
|
14
|
+
'content-hub',
|
|
15
|
+
'content-retirement',
|
|
21
16
|
'content-status',
|
|
22
|
-
'partner-sales',
|
|
23
17
|
'home',
|
|
18
|
+
'library',
|
|
19
|
+
'my-learning',
|
|
20
|
+
'my-playlists',
|
|
21
|
+
'partner-sales',
|
|
22
|
+
'preview',
|
|
24
23
|
'recommendations',
|
|
25
|
-
'
|
|
24
|
+
'search',
|
|
25
|
+
'wallet',
|
|
26
26
|
];
|