@samparkchat/sampark-web-chat 0.0.2 → 0.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samparkchat/sampark-web-chat",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "main": "sampark/sampark-web-chat/index.js",
5
5
  "types": "sampark/sampark-web-chat/index.d.ts",
6
6
  "private": false,
@@ -18,9 +18,6 @@ function App() {
18
18
  ]), userList = _d[0], setUserList = _d[1];
19
19
  var appId = 'INmD4HqR1yEs6f0NRwecDZoAyc9geghk';
20
20
  var secretKey = 'ux7YMNSeFzKv6a1HA2aCDnN7Cpwlt7X1ZFiAFXiu7ZcRq8Wqb3b5agc';
21
- //Staging
22
- // const appId = 'FZReo0rOJX7TDH65feuZ9jysumIY9ftU';
23
- // const secretKey = '1YYnT3yit6fmLpDbhKB5pooJx2QdgBo2HymZ5dMoxjLJZRY8eVBfJVK';
24
21
  var Sampark = new SamparkChat(appId, secretKey);
25
22
  var handleStartChat = function () {
26
23
  if (userId.trim() && userName.trim()) {
@@ -1 +1,6 @@
1
1
  import './index.css';
2
+ export { default as SamparkChatScreen } from './screens/SamparkchatScreen';
3
+ export { default as SamparkChatProvider } from './screens/SamparkChatProvider';
4
+ export { PeerChat } from "./sdk/client/PeerChat";
5
+ export { GroupChat } from "./sdk/client/Groupchat";
6
+ export { SamparkChat } from "./sdk/client/SamparkChat";
@@ -6,8 +6,8 @@ import reportWebVitals from './reportWebVitals';
6
6
  var root = ReactDOM.createRoot(document.getElementById('root'));
7
7
  root.render(React.createElement(React.StrictMode, null, React.createElement(App)));
8
8
  reportWebVitals();
9
- // export { default as SamparkChatScreen } from './screens/SamparkchatScreen';
10
- // export { default as SamparkChatProvider } from './screens/SamparkChatProvider';
11
- // export { PeerChat } from "./sdk/client/PeerChat";
12
- // export {GroupChat} from "./sdk/client/Groupchat";
13
- // export {SamparkChat} from "./sdk/client/SamparkChat";
9
+ export { default as SamparkChatScreen } from './screens/SamparkchatScreen';
10
+ export { default as SamparkChatProvider } from './screens/SamparkChatProvider';
11
+ export { PeerChat } from "./sdk/client/PeerChat";
12
+ export { GroupChat } from "./sdk/client/Groupchat";
13
+ export { SamparkChat } from "./sdk/client/SamparkChat";
@@ -3,5 +3,5 @@ interface SamparkChatProviderProps {
3
3
  children?: ReactNode;
4
4
  client: any;
5
5
  }
6
- export declare const SamparkChatProvider: React.FC<SamparkChatProviderProps>;
6
+ export declare const SamparkChatProvider: ({ children, client }: SamparkChatProviderProps) => React.ReactElement;
7
7
  export default SamparkChatProvider;
@@ -12,5 +12,5 @@ interface SamparkChatProps {
12
12
  style?: React.CSSProperties;
13
13
  textStyle?: React.CSSProperties;
14
14
  }
15
- declare const SamparkChatScreen: React.FC<SamparkChatProps>;
15
+ declare const SamparkChatScreen: ({ client, users, userId, userName, style, textStyle }: SamparkChatProps) => React.ReactElement;
16
16
  export default SamparkChatScreen;