@robylon/web-react-sdk 1.1.8 → 1.1.9-staging.1

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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  interface ChatbotProps {
3
3
  api_key: string;
4
- user_id: string;
4
+ user_id?: string;
5
5
  user_token?: string;
6
6
  user_profile?: Record<string, any>;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  export interface ChatbotConfig {
2
2
  chatbotId: string;
3
3
  userId: string;
4
- token: string;
4
+ token?: string;
5
5
  userProfile?: Record<string, any>;
6
6
  domain: string;
7
7
  brand_colour: string;
@@ -0,0 +1 @@
1
+ export declare function generateUUID(): string;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
 
3
3
  interface ChatbotProps {
4
4
  api_key: string;
5
- user_id: string;
5
+ user_id?: string;
6
6
  user_token?: string;
7
7
  user_profile?: Record<string, any>;
8
8
  }
@@ -11,7 +11,7 @@ declare const RobylonChatbot: React.FC<ChatbotProps>;
11
11
  interface ChatbotConfig {
12
12
  chatbotId: string;
13
13
  userId: string;
14
- token: string;
14
+ token?: string;
15
15
  userProfile?: Record<string, any>;
16
16
  domain: string;
17
17
  brand_colour: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robylon/web-react-sdk",
3
- "version": "1.1.8",
3
+ "version": "1.1.9-staging.1",
4
4
  "description": "React SDK for Robylon AI Chatbot",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -49,6 +49,7 @@
49
49
  "@rollup/plugin-typescript": "^11.1.5",
50
50
  "@testing-library/jest-dom": "^6.1.6",
51
51
  "@testing-library/react": "^14.1.2",
52
+ "@types/lodash": "^4.17.13",
52
53
  "@types/react": "^18.2.45",
53
54
  "@types/react-dom": "^18.2.18",
54
55
  "@typescript-eslint/eslint-plugin": "^6.15.0",
@@ -68,5 +69,8 @@
68
69
  "peerDependencies": {
69
70
  "react": "^18.2.0",
70
71
  "react-dom": "^18.2.0"
72
+ },
73
+ "dependencies": {
74
+ "lodash": "^4.17.21"
71
75
  }
72
76
  }