@go1/go1-embedding-react-sdk 0.0.5 → 0.0.8
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 +7 -3
- package/dist/README.md +7 -3
- package/dist/common/types.d.ts +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -49,9 +49,11 @@ type OnGo1MessageReceived = (message: Go1Message) => void;
|
|
|
49
49
|
|
|
50
50
|
type SendMessageToGo1 = (message: Go1Message) => void;
|
|
51
51
|
|
|
52
|
+
type Go1MessageType = 'preview_start_content' | 'set_additional_embedding_data' | 'go1_app_initialised';
|
|
53
|
+
|
|
52
54
|
interface Go1Message {
|
|
53
|
-
type:
|
|
54
|
-
payload?: any;
|
|
55
|
+
type: Go1MessageType;
|
|
56
|
+
payload?: any;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
interface ThemeInformation {
|
|
@@ -64,9 +66,11 @@ interface ThemeInformation {
|
|
|
64
66
|
*/
|
|
65
67
|
export interface FeatureAttributesAIChat {
|
|
66
68
|
experience: 'manager' | 'learner';
|
|
67
|
-
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | '
|
|
69
|
+
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | 'aspirations';
|
|
70
|
+
message?: string; // The desired message to start the chat, which will be shown to the user
|
|
68
71
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
69
72
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
73
|
+
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
export type FeatureAttributes = FeatureAttributesAIChat
|
package/dist/README.md
CHANGED
|
@@ -49,9 +49,11 @@ type OnGo1MessageReceived = (message: Go1Message) => void;
|
|
|
49
49
|
|
|
50
50
|
type SendMessageToGo1 = (message: Go1Message) => void;
|
|
51
51
|
|
|
52
|
+
type Go1MessageType = 'preview_start_content' | 'set_additional_embedding_data' | 'go1_app_initialised';
|
|
53
|
+
|
|
52
54
|
interface Go1Message {
|
|
53
|
-
type:
|
|
54
|
-
payload?: any;
|
|
55
|
+
type: Go1MessageType;
|
|
56
|
+
payload?: any;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
interface ThemeInformation {
|
|
@@ -64,9 +66,11 @@ interface ThemeInformation {
|
|
|
64
66
|
*/
|
|
65
67
|
export interface FeatureAttributesAIChat {
|
|
66
68
|
experience: 'manager' | 'learner';
|
|
67
|
-
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | '
|
|
69
|
+
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | 'aspirations';
|
|
70
|
+
message?: string; // The desired message to start the chat, which will be shown to the user
|
|
68
71
|
existingSkills?: string[]; // max items 7, any more are discarded
|
|
69
72
|
desiredSkills?: string[]; // max items 7, any more are discarded
|
|
73
|
+
desiredRole?: string; // e.g. "Senior Account Manager"
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
export type FeatureAttributes = FeatureAttributesAIChat
|
package/dist/common/types.d.ts
CHANGED
|
@@ -11,15 +11,18 @@ export interface AdditionalInfoMessage {
|
|
|
11
11
|
export interface ThemeInformation {
|
|
12
12
|
accent: string;
|
|
13
13
|
}
|
|
14
|
+
export type Go1MessageType = 'preview_start_content' | 'set_additional_embedding_data' | 'go1_app_initialised';
|
|
14
15
|
export interface Go1Message {
|
|
15
|
-
type:
|
|
16
|
+
type: Go1MessageType;
|
|
16
17
|
payload?: any;
|
|
17
18
|
}
|
|
18
19
|
export interface FeatureAttributesAIChat {
|
|
19
20
|
experience: 'manager' | 'learner';
|
|
20
|
-
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | '
|
|
21
|
+
intent?: 'skill_gap' | 'improve_skills' | 'next_role' | 'aspirations';
|
|
22
|
+
message?: string;
|
|
21
23
|
existingSkills?: string[];
|
|
22
24
|
desiredSkills?: string[];
|
|
25
|
+
desiredRole?: string;
|
|
23
26
|
}
|
|
24
27
|
export type FeatureAttributes = FeatureAttributesAIChat;
|
|
25
28
|
export interface AdditionalUserInfo {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go1/go1-embedding-react-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
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": [
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@testing-library/jest-dom": "5.
|
|
23
|
+
"@testing-library/jest-dom": "5.17.0",
|
|
24
24
|
"@testing-library/react": "14.0.0",
|
|
25
25
|
"@testing-library/user-event": "14.4.3",
|
|
26
|
-
"jest": "^29.6.
|
|
26
|
+
"jest": "^29.6.2",
|
|
27
27
|
"react": "18.2.0",
|
|
28
28
|
"react-dom": "^18.2.0",
|
|
29
29
|
"ts-jest": "^29.1.1",
|