@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 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?: 'manager' | 'learner';
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?: 'manager' | 'learner';
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 */
@@ -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?: 'manager' | 'learner';
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 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;
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;
@@ -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.52",
3
+ "version": "0.0.54",
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": [