@regantis-sdk/react-native-chat 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @regantis/react-native-chat
1
+ # @regantis-sdk/react-native-chat
2
2
 
3
3
  Native Regantis customer support chat for React Native Android and iOS.
4
4
 
@@ -13,7 +13,7 @@ Native Regantis customer support chat for React Native Android and iOS.
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- npm install @regantis/react-native-chat
16
+ npm install @regantis-sdk/react-native-chat
17
17
  ```
18
18
 
19
19
  For iOS, install pods after adding the package:
@@ -28,7 +28,7 @@ Android is autolinked by React Native.
28
28
  ## Basic usage
29
29
 
30
30
  ```jsx
31
- import { RegantisChat } from '@regantis/react-native-chat';
31
+ import { RegantisChat } from '@regantis-sdk/react-native-chat';
32
32
 
33
33
  export default function SupportScreen() {
34
34
  return <RegantisChat apiKey="YOUR_REACT_NATIVE_CHAT_API_KEY" />;
@@ -42,7 +42,7 @@ The SDK downloads the Chat settings and UI texts from the CRM. Theme, colors, lo
42
42
  Do not put the customer identity signing secret in the mobile app. Generate the identity timestamp and HMAC signature on your server and return them through your authenticated app API.
43
43
 
44
44
  ```jsx
45
- import { RegantisChat } from '@regantis/react-native-chat';
45
+ import { RegantisChat } from '@regantis-sdk/react-native-chat';
46
46
 
47
47
  export default function SupportScreen({ user, chatIdentity }) {
48
48
  return (
@@ -131,7 +131,7 @@ The web-only launcher settings such as desktop/mobile corner placement and minim
131
131
  The UI is optional. The same package exports the client if an app needs its own presentation layer:
132
132
 
133
133
  ```js
134
- import { createRegantisChatClient } from '@regantis/react-native-chat';
134
+ import { createRegantisChatClient } from '@regantis-sdk/react-native-chat';
135
135
 
136
136
  const chat = createRegantisChatClient({
137
137
  apiKey: 'YOUR_REACT_NATIVE_CHAT_API_KEY',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regantis-sdk/react-native-chat",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Regantis customer support chat SDK for React Native Android and iOS",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -316,7 +316,7 @@ function RegantisChat(props) {
316
316
  {state.settings.show_logo && state.settings.logo_url ? <Image source={{ uri: state.settings.logo_url }} style={styles.logo} resizeMode="contain" /> : <View style={styles.logoFallback}><Text style={styles.logoFallbackText}>R</Text></View>}
317
317
  <View style={styles.headerCopy}>
318
318
  <Text numberOfLines={1} style={styles.headerTitle}>{state.settings.operator_name || t('support_name')}</Text>
319
- <Text style={styles.headerStatus}>{state.realtimeConnected ? '● ' : '○ '}{state.realtimeConnected ? t('chat') : t('offline')}</Text>
319
+ <Text numberOfLines={1} style={styles.headerStatus}>{t('welcome_text')}</Text>
320
320
  </View>
321
321
  </View>
322
322
  <View style={styles.headerActions}>
package/src/defaults.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module.exports = {
4
4
  DEFAULT_SERVER_URL: 'https://www.crm.regantis.technology',
5
- SDK_VERSION: '0.1.0',
5
+ SDK_VERSION: '0.1.1',
6
6
  DEFAULT_SETTINGS: {
7
7
  operator_name: 'Operator',
8
8
  use_profile_names: 0,