@go1/go1-embedding-react-sdk 0.0.53 → 0.0.55

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 CHANGED
@@ -87,7 +87,7 @@ export interface Go1Message {
87
87
  payload?: any;
88
88
  }
89
89
 
90
- export type Experience = 'manager' | 'learner' | 'context-aware'
90
+ export type Experience = 'manager' | 'learner' | 'role-aware'
91
91
 
92
92
  interface FeatureAttributeCommon {
93
93
  shouldSuppressPreview?: boolean;
@@ -145,13 +145,16 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
145
145
  playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
146
146
  }
147
147
 
148
+ export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {}
149
+
148
150
  export type FeatureAttributes =
149
151
  | FeatureAttributesAIChat
150
152
  | FeatureAttributesPreview
151
153
  | FeatureAttributesWallet
152
154
  | FeatureAttributesLibrary
153
155
  | FeatureAttributesSearch
154
- | FeatureAttributesMyPlaylists;
156
+ | FeatureAttributesMyPlaylists
157
+ | FeatureAttributesMyLearning;;
155
158
 
156
159
  export interface AdditionalUserInfo {
157
160
  jobTitle: string;
@@ -166,7 +169,8 @@ export type FeatureType =
166
169
  | 'wallet'
167
170
  | 'content-retirement'
168
171
  | 'my-playlists'
169
- | 'activity-feed';
172
+ | 'activity-feed'
173
+ | 'my-learning';
170
174
 
171
175
  export interface InitOptions {
172
176
  /** Mandatory identifier for the embedded feature */
package/dist/README.md CHANGED
@@ -87,7 +87,7 @@ export interface Go1Message {
87
87
  payload?: any;
88
88
  }
89
89
 
90
- export type Experience = 'manager' | 'learner' | 'context-aware'
90
+ export type Experience = 'manager' | 'learner' | 'role-aware'
91
91
 
92
92
  interface FeatureAttributeCommon {
93
93
  shouldSuppressPreview?: boolean;
@@ -145,13 +145,16 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
145
145
  playlistId?: number; // If embedding my-playlists feature with playlistId, the app will initialise with the specified playlistId page.
146
146
  }
147
147
 
148
+ export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {}
149
+
148
150
  export type FeatureAttributes =
149
151
  | FeatureAttributesAIChat
150
152
  | FeatureAttributesPreview
151
153
  | FeatureAttributesWallet
152
154
  | FeatureAttributesLibrary
153
155
  | FeatureAttributesSearch
154
- | FeatureAttributesMyPlaylists;
156
+ | FeatureAttributesMyPlaylists
157
+ | FeatureAttributesMyLearning;;
155
158
 
156
159
  export interface AdditionalUserInfo {
157
160
  jobTitle: string;
@@ -166,7 +169,8 @@ export type FeatureType =
166
169
  | 'wallet'
167
170
  | 'content-retirement'
168
171
  | 'my-playlists'
169
- | 'activity-feed';
172
+ | 'activity-feed'
173
+ | 'my-learning';
170
174
 
171
175
  export interface InitOptions {
172
176
  /** Mandatory identifier for the embedded feature */
@@ -20,7 +20,7 @@ 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
+ export type Experience = 'manager' | 'learner' | 'role-aware';
24
24
  export interface FeatureAttributeCommon {
25
25
  shouldSuppressPreview?: boolean;
26
26
  experience?: Experience;
@@ -71,11 +71,13 @@ export interface FeatureAttributesMyPlaylists extends FeatureAttributesPreviewCo
71
71
  playlistId?: number;
72
72
  go1OnlyEnabledFeatures?: go1OnlyEnabledFeatures;
73
73
  }
74
- export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview | FeatureAttributesWallet | FeatureAttributesLibrary | FeatureAttributesSearch | FeatureAttributesMyPlaylists;
74
+ export interface FeatureAttributesMyLearning extends FeatureAttributeCommon {
75
+ }
76
+ export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPreview | FeatureAttributesWallet | FeatureAttributesLibrary | FeatureAttributesSearch | FeatureAttributesMyPlaylists | FeatureAttributesMyLearning;
75
77
  export interface AdditionalUserInfo {
76
78
  jobTitle: string;
77
79
  }
78
- 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"];
79
81
  export type FeatureType = (typeof features)[number];
80
82
  export interface InitOptions {
81
83
  feature: FeatureType;
@@ -11,4 +11,5 @@ exports.features = [
11
11
  'content-retirement',
12
12
  'my-playlists',
13
13
  'activity-feed',
14
+ 'my-learning',
14
15
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "A React library to embed Go1 content into your website.",
5
5
  "main": "dist/go1-embedding-react-sdk/src/index.js",
6
6
  "files": [