@robylon/web-react-sdk 1.1.30-staging.3 → 1.1.30
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 +403 -166
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ChatbotContainer/ChatbotContainer.d.ts +15 -0
- package/dist/cjs/types/components/ChatbotContainer/index.d.ts +1 -0
- package/dist/cjs/types/components/ChatbotFloatingButton.d.ts +3 -0
- package/dist/cjs/types/components/ChatbotIframe.d.ts +2 -0
- package/dist/cjs/types/components/RobylonChatbot.d.ts +3 -0
- package/dist/cjs/types/constants/fontStyles.d.ts +2 -0
- package/dist/cjs/types/core/state.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +2 -1
- package/dist/cjs/types/types.d.ts +30 -0
- package/dist/cjs/types/utils/fetchData.d.ts +16 -0
- package/dist/cjs/types/vanilla/components/ChatbotContainer.d.ts +45 -0
- package/dist/cjs/types/vanilla/components/ChatbotFloatingButton.d.ts +26 -0
- package/dist/cjs/types/vanilla/components/ChatbotIframe.d.ts +7 -0
- package/dist/cjs/types/vanilla/index.d.ts +12 -8
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ChatbotContainer/ChatbotContainer.d.ts +15 -0
- package/dist/esm/types/components/ChatbotContainer/index.d.ts +1 -0
- package/dist/esm/types/components/ChatbotFloatingButton.d.ts +3 -0
- package/dist/esm/types/components/ChatbotIframe.d.ts +2 -0
- package/dist/esm/types/components/RobylonChatbot.d.ts +3 -0
- package/dist/esm/types/constants/fontStyles.d.ts +2 -0
- package/dist/esm/types/core/state.d.ts +1 -0
- package/dist/esm/types/index.d.ts +2 -1
- package/dist/esm/types/types.d.ts +30 -0
- package/dist/esm/types/utils/fetchData.d.ts +16 -0
- package/dist/esm/types/vanilla/components/ChatbotContainer.d.ts +45 -0
- package/dist/esm/types/vanilla/components/ChatbotFloatingButton.d.ts +26 -0
- package/dist/esm/types/vanilla/components/ChatbotIframe.d.ts +7 -0
- package/dist/esm/types/vanilla/index.d.ts +12 -8
- package/dist/index.d.ts +46 -10
- package/dist/umd/robylon-chatbot.js +1 -1
- package/dist/umd/robylon-chatbot.js.map +1 -1
- package/dist/umd/types/components/ChatbotContainer/ChatbotContainer.d.ts +15 -0
- package/dist/umd/types/components/ChatbotContainer/index.d.ts +1 -0
- package/dist/umd/types/components/ChatbotFloatingButton.d.ts +3 -0
- package/dist/umd/types/components/ChatbotIframe.d.ts +2 -0
- package/dist/umd/types/components/RobylonChatbot.d.ts +3 -0
- package/dist/umd/types/constants/fontStyles.d.ts +2 -0
- package/dist/umd/types/core/state.d.ts +1 -0
- package/dist/umd/types/index.d.ts +2 -1
- package/dist/umd/types/types.d.ts +30 -0
- package/dist/umd/types/utils/fetchData.d.ts +16 -0
- package/dist/umd/types/vanilla/components/ChatbotContainer.d.ts +45 -0
- package/dist/umd/types/vanilla/components/ChatbotFloatingButton.d.ts +26 -0
- package/dist/umd/types/vanilla/components/ChatbotIframe.d.ts +7 -0
- package/dist/umd/types/vanilla/index.d.ts +12 -8
- package/package.json +14 -2
- package/dist/cjs/types/types/config.d.ts +0 -33
- package/dist/cjs/types/types/index.d.ts +0 -16
- package/dist/esm/types/types/config.d.ts +0 -33
- package/dist/esm/types/types/index.d.ts +0 -16
- package/dist/umd/types/types/config.d.ts +0 -33
- package/dist/umd/types/types/index.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robylon/web-react-sdk",
|
|
3
|
-
"version": "1.1.30
|
|
3
|
+
"version": "1.1.30",
|
|
4
4
|
"description": "React SDK for Robylon AI Chatbot",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
"build:staging:all": "npm run clean && cross-env NODE_ENV=staging PUBLISH_TYPE=staging TARGET=all rollup -c",
|
|
24
24
|
"build:production:all": "npm run clean && cross-env NODE_ENV=production PUBLISH_TYPE=production TARGET=all rollup -c",
|
|
25
25
|
"build": "npm run build:development:all",
|
|
26
|
+
"version:staging": "npm version prerelease --preid=staging",
|
|
27
|
+
"version:production": "npm version patch",
|
|
28
|
+
"trigger:staging": "node scripts/trigger-staging-workflow.js",
|
|
29
|
+
"trigger:production": "gh workflow run deploy-sdk.yml",
|
|
30
|
+
"deploy:staging": "npm run version:staging && npm run trigger:staging",
|
|
31
|
+
"deploy:production": "npm run version:production && npm run trigger:production",
|
|
32
|
+
"update-changelog": "node scripts/update-changelog.js",
|
|
33
|
+
"install-hooks": "node scripts/install-hooks.js",
|
|
26
34
|
"publish:staging": "node scripts/validate-publish.js staging && npm run build:staging:all && npm version prerelease --preid=staging --force && npm publish --tag staging && node scripts/create-version-tag.js",
|
|
27
35
|
"publish:production": "node scripts/validate-publish.js production && npm run build:production:all && node scripts/publish-version.js && npm publish --tag latest && node scripts/create-version-tag.js",
|
|
28
36
|
"publish:hotfix": "node scripts/validate-publish.js hotfix && npm run build:production:all && npm version prerelease --preid=patch && npm publish --tag hotfix && node scripts/create-version-tag.js",
|
|
@@ -32,7 +40,11 @@
|
|
|
32
40
|
"lint:fix": "eslint src/**/*.{ts,tsx} --fix",
|
|
33
41
|
"prepare": "node scripts/husky-setup.js",
|
|
34
42
|
"branch": "node scripts/create-branch.js",
|
|
35
|
-
"release": "node scripts/release.js"
|
|
43
|
+
"release": "node scripts/release.js",
|
|
44
|
+
"build:vanilla": "cross-env TARGET=unpkg rollup -c",
|
|
45
|
+
"build:development:cloudfront": "npm run clean && cross-env NODE_ENV=development TARGET=cloudfront rollup -c",
|
|
46
|
+
"build:staging:cloudfront": "npm run clean && cross-env NODE_ENV=staging PUBLISH_TYPE=staging TARGET=cloudfront rollup -c",
|
|
47
|
+
"build:production:cloudfront": "npm run clean && cross-env NODE_ENV=production PUBLISH_TYPE=production TARGET=cloudfront rollup -c"
|
|
36
48
|
},
|
|
37
49
|
"publishConfig": {
|
|
38
50
|
"access": "public"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface UserProfile {
|
|
2
|
-
email: string;
|
|
3
|
-
name: string;
|
|
4
|
-
platform?: string;
|
|
5
|
-
OS?: string;
|
|
6
|
-
browser?: string;
|
|
7
|
-
sdkVersion?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChatbotStyles {
|
|
10
|
-
buttonPosition?: "bottom-right" | "bottom-left";
|
|
11
|
-
primaryColor?: string;
|
|
12
|
-
buttonSize?: "small" | "medium" | "large";
|
|
13
|
-
}
|
|
14
|
-
export interface ChatbotConfig {
|
|
15
|
-
chatbotId: string;
|
|
16
|
-
userId: string;
|
|
17
|
-
token: string;
|
|
18
|
-
userProfile?: Record<string, any>;
|
|
19
|
-
domain: string;
|
|
20
|
-
brand_colour: string;
|
|
21
|
-
image_url?: string;
|
|
22
|
-
chat_interface_config?: {
|
|
23
|
-
chat_bubble_prompts?: string[];
|
|
24
|
-
display_name?: string;
|
|
25
|
-
welcome_message?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface RobylonSdkConfig {
|
|
29
|
-
chatbot_id: string;
|
|
30
|
-
user_id: string;
|
|
31
|
-
token?: string;
|
|
32
|
-
userProfile: UserProfile;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./config";
|
|
2
|
-
export * from "./state";
|
|
3
|
-
export interface ChatbotConfig {
|
|
4
|
-
chatbotId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
token: string;
|
|
7
|
-
userProfile?: Record<string, any>;
|
|
8
|
-
domain: string;
|
|
9
|
-
brand_colour: string;
|
|
10
|
-
image_url?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ChatbotState {
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
isInitialized: boolean;
|
|
15
|
-
error: string | null;
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface UserProfile {
|
|
2
|
-
email: string;
|
|
3
|
-
name: string;
|
|
4
|
-
platform?: string;
|
|
5
|
-
OS?: string;
|
|
6
|
-
browser?: string;
|
|
7
|
-
sdkVersion?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChatbotStyles {
|
|
10
|
-
buttonPosition?: "bottom-right" | "bottom-left";
|
|
11
|
-
primaryColor?: string;
|
|
12
|
-
buttonSize?: "small" | "medium" | "large";
|
|
13
|
-
}
|
|
14
|
-
export interface ChatbotConfig {
|
|
15
|
-
chatbotId: string;
|
|
16
|
-
userId: string;
|
|
17
|
-
token: string;
|
|
18
|
-
userProfile?: Record<string, any>;
|
|
19
|
-
domain: string;
|
|
20
|
-
brand_colour: string;
|
|
21
|
-
image_url?: string;
|
|
22
|
-
chat_interface_config?: {
|
|
23
|
-
chat_bubble_prompts?: string[];
|
|
24
|
-
display_name?: string;
|
|
25
|
-
welcome_message?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface RobylonSdkConfig {
|
|
29
|
-
chatbot_id: string;
|
|
30
|
-
user_id: string;
|
|
31
|
-
token?: string;
|
|
32
|
-
userProfile: UserProfile;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./config";
|
|
2
|
-
export * from "./state";
|
|
3
|
-
export interface ChatbotConfig {
|
|
4
|
-
chatbotId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
token: string;
|
|
7
|
-
userProfile?: Record<string, any>;
|
|
8
|
-
domain: string;
|
|
9
|
-
brand_colour: string;
|
|
10
|
-
image_url?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ChatbotState {
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
isInitialized: boolean;
|
|
15
|
-
error: string | null;
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface UserProfile {
|
|
2
|
-
email: string;
|
|
3
|
-
name: string;
|
|
4
|
-
platform?: string;
|
|
5
|
-
OS?: string;
|
|
6
|
-
browser?: string;
|
|
7
|
-
sdkVersion?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChatbotStyles {
|
|
10
|
-
buttonPosition?: "bottom-right" | "bottom-left";
|
|
11
|
-
primaryColor?: string;
|
|
12
|
-
buttonSize?: "small" | "medium" | "large";
|
|
13
|
-
}
|
|
14
|
-
export interface ChatbotConfig {
|
|
15
|
-
chatbotId: string;
|
|
16
|
-
userId: string;
|
|
17
|
-
token: string;
|
|
18
|
-
userProfile?: Record<string, any>;
|
|
19
|
-
domain: string;
|
|
20
|
-
brand_colour: string;
|
|
21
|
-
image_url?: string;
|
|
22
|
-
chat_interface_config?: {
|
|
23
|
-
chat_bubble_prompts?: string[];
|
|
24
|
-
display_name?: string;
|
|
25
|
-
welcome_message?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface RobylonSdkConfig {
|
|
29
|
-
chatbot_id: string;
|
|
30
|
-
user_id: string;
|
|
31
|
-
token?: string;
|
|
32
|
-
userProfile: UserProfile;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./config";
|
|
2
|
-
export * from "./state";
|
|
3
|
-
export interface ChatbotConfig {
|
|
4
|
-
chatbotId: string;
|
|
5
|
-
userId: string;
|
|
6
|
-
token: string;
|
|
7
|
-
userProfile?: Record<string, any>;
|
|
8
|
-
domain: string;
|
|
9
|
-
brand_colour: string;
|
|
10
|
-
image_url?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ChatbotState {
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
isInitialized: boolean;
|
|
15
|
-
error: string | null;
|
|
16
|
-
}
|