@sagepilot-ai/react-native-sdk 0.1.0 → 0.2.0
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ You configure the SDK with:
|
|
|
38
38
|
- `tokenStorage`: secure storage adapter for SDK-created customer session tokens
|
|
39
39
|
- optional request, presentation, and behavior settings
|
|
40
40
|
|
|
41
|
-
For normal Sagepilot cloud usage, omit `host`; API calls default to `https://
|
|
41
|
+
For normal Sagepilot cloud usage, omit `host`; API calls and the WebView default to `https://app.sagepilot.ai`.
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
44
|
await SagepilotChat.configure({
|
|
@@ -64,7 +64,7 @@ These options are part of the supported React Native SDK configuration contract.
|
|
|
64
64
|
| Option | Purpose |
|
|
65
65
|
|---|---|
|
|
66
66
|
| `key` | Public routing key in the format `workspace_id:channel_id`. |
|
|
67
|
-
| `host` | Sagepilot
|
|
67
|
+
| `host` | Sagepilot app/API host override. Most apps should omit this. |
|
|
68
68
|
| `widgetHost` | Optional hosted widget origin override for development or dedicated widget routing. Most apps should omit this. |
|
|
69
69
|
| `headers` | Additional headers for SDK service requests. Do not pass server API keys or long-lived secrets from a mobile app. |
|
|
70
70
|
| `fetch` | Custom fetch implementation for runtimes that need one. |
|
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var SagepilotChatError = class extends Error {
|
|
|
46
46
|
|
|
47
47
|
// src/core/config/constants.ts
|
|
48
48
|
var SDK_NAME = "@sagepilot-ai/react-native-sdk";
|
|
49
|
-
var SDK_VERSION = "0.
|
|
49
|
+
var SDK_VERSION = "0.2.0";
|
|
50
50
|
var DEFAULT_HOST = "https://app.sagepilot.ai";
|
|
51
51
|
var DEFAULT_WIDGET_HOST = "https://app.sagepilot.ai";
|
|
52
52
|
var CUSTOMER_API_PREFIX = "/customer-api/v1";
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var SagepilotChatError = class extends Error {
|
|
|
15
15
|
|
|
16
16
|
// src/core/config/constants.ts
|
|
17
17
|
var SDK_NAME = "@sagepilot-ai/react-native-sdk";
|
|
18
|
-
var SDK_VERSION = "0.
|
|
18
|
+
var SDK_VERSION = "0.2.0";
|
|
19
19
|
var DEFAULT_HOST = "https://app.sagepilot.ai";
|
|
20
20
|
var DEFAULT_WIDGET_HOST = "https://app.sagepilot.ai";
|
|
21
21
|
var CUSTOMER_API_PREFIX = "/customer-api/v1";
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sagepilot-ai/react-native-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Sagepilot AI React Native chat SDK",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sagepilot",
|
|
7
|
+
"react-native",
|
|
8
|
+
"chat",
|
|
9
|
+
"customer-support",
|
|
10
|
+
"webview",
|
|
11
|
+
"sdk"
|
|
12
|
+
],
|
|
5
13
|
"license": "MIT",
|
|
6
14
|
"type": "module",
|
|
7
15
|
"main": "./dist/index.cjs",
|