@go1/go1-embedding-react-sdk 0.0.52 → 0.0.54
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 +9 -3
- package/dist/README.md +9 -3
- package/dist/common/types.d.ts +6 -3
- package/dist/common/types.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,9 +87,11 @@ export interface Go1Message {
|
|
|
87
87
|
payload?: any;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type Experience = 'manager' | 'learner' | 'context-aware'
|
|
91
|
+
|
|
90
92
|
interface FeatureAttributeCommon {
|
|
91
93
|
shouldSuppressPreview?: boolean;
|
|
92
|
-
experience?:
|
|
94
|
+
experience?: Experience;
|
|
93
95
|
contentScope?: 'subscription' | 'library';
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -143,13 +145,16 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
|
|
|
143
145
|
playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
|
|
144
146
|
}
|
|
145
147
|
|
|
148
|
+
export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {}
|
|
149
|
+
|
|
146
150
|
export type FeatureAttributes =
|
|
147
151
|
| FeatureAttributesAIChat
|
|
148
152
|
| FeatureAttributesPreview
|
|
149
153
|
| FeatureAttributesWallet
|
|
150
154
|
| FeatureAttributesLibrary
|
|
151
155
|
| FeatureAttributesSearch
|
|
152
|
-
| FeatureAttributesMyPlaylists
|
|
156
|
+
| FeatureAttributesMyPlaylists
|
|
157
|
+
| FeatureAttributesMyLearning;;
|
|
153
158
|
|
|
154
159
|
export interface AdditionalUserInfo {
|
|
155
160
|
jobTitle: string;
|
|
@@ -164,7 +169,8 @@ export type FeatureType =
|
|
|
164
169
|
| 'wallet'
|
|
165
170
|
| 'content-retirement'
|
|
166
171
|
| 'my-playlists'
|
|
167
|
-
| 'activity-feed'
|
|
172
|
+
| 'activity-feed'
|
|
173
|
+
| 'my-learning';
|
|
168
174
|
|
|
169
175
|
export interface InitOptions {
|
|
170
176
|
/** Mandatory identifier for the embedded feature */
|
package/dist/README.md
CHANGED
|
@@ -87,9 +87,11 @@ export interface Go1Message {
|
|
|
87
87
|
payload?: any;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
export type Experience = 'manager' | 'learner' | 'context-aware'
|
|
91
|
+
|
|
90
92
|
interface FeatureAttributeCommon {
|
|
91
93
|
shouldSuppressPreview?: boolean;
|
|
92
|
-
experience?:
|
|
94
|
+
experience?: Experience;
|
|
93
95
|
contentScope?: 'subscription' | 'library';
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -143,13 +145,16 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
|
|
|
143
145
|
playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
|
|
144
146
|
}
|
|
145
147
|
|
|
148
|
+
export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {}
|
|
149
|
+
|
|
146
150
|
export type FeatureAttributes =
|
|
147
151
|
| FeatureAttributesAIChat
|
|
148
152
|
| FeatureAttributesPreview
|
|
149
153
|
| FeatureAttributesWallet
|
|
150
154
|
| FeatureAttributesLibrary
|
|
151
155
|
| FeatureAttributesSearch
|
|
152
|
-
| FeatureAttributesMyPlaylists
|
|
156
|
+
| FeatureAttributesMyPlaylists
|
|
157
|
+
| FeatureAttributesMyLearning;;
|
|
153
158
|
|
|
154
159
|
export interface AdditionalUserInfo {
|
|
155
160
|
jobTitle: string;
|
|
@@ -164,7 +169,8 @@ export type FeatureType =
|
|
|
164
169
|
| 'wallet'
|
|
165
170
|
| 'content-retirement'
|
|
166
171
|
| 'my-playlists'
|
|
167
|
-
| 'activity-feed'
|
|
172
|
+
| 'activity-feed'
|
|
173
|
+
| 'my-learning';
|
|
168
174
|
|
|
169
175
|
export interface InitOptions {
|
|
170
176
|
/** Mandatory identifier for the embedded feature */
|
package/dist/common/types.d.ts
CHANGED
|
@@ -20,9 +20,10 @@ export interface Go1Message {
|
|
|
20
20
|
payload?: any;
|
|
21
21
|
}
|
|
22
22
|
type go1OnlyEnabledFeatures = Array<'ai-chat' | 'library' | 'my-playlists' | 'search'>;
|
|
23
|
+
export type Experience = 'manager' | 'learner' | 'context-aware';
|
|
23
24
|
export interface FeatureAttributeCommon {
|
|
24
25
|
shouldSuppressPreview?: boolean;
|
|
25
|
-
experience?:
|
|
26
|
+
experience?: Experience;
|
|
26
27
|
featureName?: string;
|
|
27
28
|
contentScope?: 'subscription' | 'library';
|
|
28
29
|
}
|
|
@@ -70,11 +71,13 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
|
|
|
70
71
|
playlistId?: number;
|
|
71
72
|
go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
|
|
72
73
|
}
|
|
73
|
-
export
|
|
74
|
+
export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {
|
|
75
|
+
}
|
|
76
|
+
export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview | FeatureAttributesWallet | FeatureAttributesLibrary | FeatureAttributesSearch | FeatureAttributesMyPlaylists | FeatureAttributesMyLearning;
|
|
74
77
|
export interface AdditionalUserInfo {
|
|
75
78
|
jobTitle: string;
|
|
76
79
|
}
|
|
77
|
-
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed"];
|
|
80
|
+
export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed", "my-learning"];
|
|
78
81
|
export type FeatureType = (typeof features)[number];
|
|
79
82
|
export interface InitOptions {
|
|
80
83
|
feature: FeatureType;
|
package/dist/common/types.js
CHANGED