@go1/go1-embedding-react-sdk 0.12.0 → 0.13.1
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 +12 -0
- package/dist/README.md +15 -0
- package/dist/common/types.d.ts +9 -7
- package/dist/common/types.js +0 -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
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @go1/go1-embedding-react-sdk
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Remove the deprecated internal `bulk-upload` SDK feature.
|
|
8
|
+
|
|
9
|
+
## 0.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Add library_content_exported postMessage event for selected library item exports.
|
|
14
|
+
|
|
3
15
|
## 0.12.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
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' | '
|
|
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' | '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: {
|
|
@@ -101,10 +107,6 @@ export interface FeatureAttributesWallet extends FeatureAttributeCommon {
|
|
|
101
107
|
deepLink?: string;
|
|
102
108
|
oneClickBuyUrl?: string;
|
|
103
109
|
}
|
|
104
|
-
export interface FeatureAttributesBulkUpload extends FeatureAttributeCommon {
|
|
105
|
-
bulkMode: 'create' | 'update';
|
|
106
|
-
isStandalone?: boolean;
|
|
107
|
-
}
|
|
108
110
|
export interface FeatureAttributesContentStatus extends FeatureAttributeCommon {
|
|
109
111
|
isStandalone?: boolean;
|
|
110
112
|
}
|
|
@@ -142,11 +144,11 @@ export type SearchLearningObjectsOptions = {
|
|
|
142
144
|
sort?: string;
|
|
143
145
|
};
|
|
144
146
|
export type FeatureAttributesRecommendations = Omit<FeatureAttributesGo1LearnSearch, 'searchProvider'> & SearchLearningObjectsOptions;
|
|
145
|
-
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesDiscoveryAgent | FeatureAttributesPreview | FeatureAttributesWallet | FeatureAttributesLibrary | FeatureAttributesSearch | FeatureAttributesMyLearning |
|
|
147
|
+
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesDiscoveryAgent | FeatureAttributesPreview | FeatureAttributesWallet | FeatureAttributesLibrary | FeatureAttributesSearch | FeatureAttributesMyLearning | FeatureAttributesContentStatus | FeatureAttributesGo1LearnSearch | FeatureAttributesRecommendations;
|
|
146
148
|
export interface AdditionalUserInfo {
|
|
147
149
|
jobTitle: string;
|
|
148
150
|
}
|
|
149
|
-
export declare const features: readonly ["activity-feed", "ai-chat", "admin-curation", "auth-clients", "auth-clients-public", "discovery-agent", "go1-learn/library", "go1-learn/my-learning", "go1-learn/search", "go1-learn/search-categories", "
|
|
151
|
+
export declare const features: readonly ["activity-feed", "ai-chat", "admin-curation", "auth-clients", "auth-clients-public", "discovery-agent", "go1-learn/library", "go1-learn/my-learning", "go1-learn/search", "go1-learn/search-categories", "content-hub", "content-status", "partner-sales", "preview", "recommendations", "search", "wallet"];
|
|
150
152
|
export type FeatureType = Exclude<(typeof features)[number], 'ai-chat' | 'content-hub'> | 'ai-chat' | 'content-hub';
|
|
151
153
|
export interface InitOptions {
|
|
152
154
|
feature: FeatureType;
|
package/dist/common/types.js
CHANGED