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

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.
@@ -20,10 +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' | 'role-aware';
23
+ export type ExternalExperience = 'manager' | 'learner' | 'role-aware';
24
24
  export interface FeatureAttributeCommon {
25
25
  shouldSuppressPreview?: boolean;
26
- experience?: Experience;
26
+ experience?: ExternalExperience;
27
27
  featureName?: string;
28
28
  contentScope?: 'subscription' | 'library';
29
29
  }
@@ -51,7 +51,6 @@ export interface FeatureAttributesWallet extends FeatureAttributeCommon {
51
51
  }
52
52
  export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
53
53
  isGo1MobileApp?: boolean;
54
- experience?: 'learner';
55
54
  }
56
55
  export interface FeatureAttributesLibrary extends FeatureAttributesPreviewCommon, FeatureAttributesRetirement {
57
56
  libraryEmptyStateDescription?: string;
@@ -77,7 +76,7 @@ export type FeatureAttributes = FeatureAttributesAIChat | FeatureAttributesPrevi
77
76
  export interface AdditionalUserInfo {
78
77
  jobTitle: string;
79
78
  }
80
- export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed", "my-learning"];
79
+ export declare const features: readonly ["ai-chat", "content-hub", "preview", "library", "search", "wallet", "content-retirement", "my-playlists", "activity-feed", "my-learning", "insights"];
81
80
  export type FeatureType = (typeof features)[number];
82
81
  export interface InitOptions {
83
82
  feature: FeatureType;
@@ -12,4 +12,5 @@ exports.features = [
12
12
  'my-playlists',
13
13
  'activity-feed',
14
14
  'my-learning',
15
+ 'insights',
15
16
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
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": [