@go1/go1-embedding-react-sdk 0.12.0 → 0.13.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 +15 -0
- package/dist/CHANGELOG.md +6 -0
- package/dist/README.md +15 -0
- package/dist/common/types.d.ts +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,6 +108,7 @@ export type Go1MessageType =
|
|
|
108
108
|
| 'play_content'
|
|
109
109
|
| 'library_content_added'
|
|
110
110
|
| 'library_content_removed'
|
|
111
|
+
| 'library_content_exported'
|
|
111
112
|
| 'save_content';
|
|
112
113
|
|
|
113
114
|
export interface Go1Message {
|
|
@@ -391,6 +392,20 @@ Item has been removed from the library
|
|
|
391
392
|
}
|
|
392
393
|
```
|
|
393
394
|
|
|
395
|
+
Selected library items have been exported through postMessage
|
|
396
|
+
|
|
397
|
+
```typescript
|
|
398
|
+
{
|
|
399
|
+
"type": "library_content_exported",
|
|
400
|
+
"payload": {
|
|
401
|
+
"items": [
|
|
402
|
+
{ "id": "3510462", "type": "lo" },
|
|
403
|
+
{ "id": "3510463", "type": "lo" }
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
```
|
|
408
|
+
|
|
394
409
|
Item bookmark action has been requested by a learner while `shouldSuppressBookmarkAction` is enabled
|
|
395
410
|
|
|
396
411
|
```typescript
|
package/dist/CHANGELOG.md
CHANGED
package/dist/README.md
CHANGED
|
@@ -108,6 +108,7 @@ export type Go1MessageType =
|
|
|
108
108
|
| 'play_content'
|
|
109
109
|
| 'library_content_added'
|
|
110
110
|
| 'library_content_removed'
|
|
111
|
+
| 'library_content_exported'
|
|
111
112
|
| 'save_content';
|
|
112
113
|
|
|
113
114
|
export interface Go1Message {
|
|
@@ -391,6 +392,20 @@ Item has been removed from the library
|
|
|
391
392
|
}
|
|
392
393
|
```
|
|
393
394
|
|
|
395
|
+
Selected library items have been exported through postMessage
|
|
396
|
+
|
|
397
|
+
```typescript
|
|
398
|
+
{
|
|
399
|
+
"type": "library_content_exported",
|
|
400
|
+
"payload": {
|
|
401
|
+
"items": [
|
|
402
|
+
{ "id": "3510462", "type": "lo" },
|
|
403
|
+
{ "id": "3510463", "type": "lo" }
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
```
|
|
408
|
+
|
|
394
409
|
Item bookmark action has been requested by a learner while `shouldSuppressBookmarkAction` is enabled
|
|
395
410
|
|
|
396
411
|
```typescript
|
package/dist/common/types.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface ThemeInformationElysium {
|
|
|
26
26
|
mode?: ThemeMode;
|
|
27
27
|
}
|
|
28
28
|
export type ThemeInformationPayload = ThemeInformation | ThemeInformationElysium | ThemeModeInformation;
|
|
29
|
-
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_retirement_request' | 'bulk_upload_close' | 'contact_go1_navigation' | 'library_content_added' | 'library_content_removed' | 'save_content';
|
|
29
|
+
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_retirement_request' | 'bulk_upload_close' | 'contact_go1_navigation' | 'library_content_added' | 'library_content_removed' | 'library_content_exported' | 'save_content';
|
|
30
30
|
export type LibraryContentAddedActionType = 'admin-add';
|
|
31
31
|
export type LibraryContentRemovedActionType = 'admin-remove';
|
|
32
32
|
export type SaveContentActionType = 'learner-save' | 'admin-save';
|
|
@@ -44,6 +44,12 @@ export interface LibraryContentAddedPayload extends LibraryContentMessagePayload
|
|
|
44
44
|
export interface LibraryContentRemovedPayload extends LibraryContentMessagePayload {
|
|
45
45
|
action_type: LibraryContentRemovedActionType;
|
|
46
46
|
}
|
|
47
|
+
export type LibraryContentExportedPayload = {
|
|
48
|
+
items: Array<{
|
|
49
|
+
id: string;
|
|
50
|
+
type: 'lo';
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
47
53
|
interface Go1MessageUpdateExperience {
|
|
48
54
|
type: 'update_experience';
|
|
49
55
|
payload: {
|