@sagepilot-ai/react-native-sdk 0.4.3 → 0.5.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 CHANGED
@@ -6,6 +6,8 @@ The SDK opens the Sagepilot-hosted chat experience inside a React Native WebView
6
6
 
7
7
  For full integration docs, see [React Native SDK docs](https://docs.sagepilot.ai/sdks/react-native/overview).
8
8
 
9
+ For automatic app observations, initialize the [React Native events add-on](../react-native-events-addon/README.md) separately with an SDK installation key.
10
+
9
11
  ## Requirements
10
12
 
11
13
  - React 18+
@@ -16,7 +18,7 @@ For full integration docs, see [React Native SDK docs](https://docs.sagepilot.ai
16
18
 
17
19
  ## Install
18
20
 
19
- Base SDK **0.4.3** adds the optional native URL handler. Camera and push add-ons remain at **0.4.2** and retain their existing peer compatibility; chat-only apps do not need either add-on.
21
+ The base SDK, camera add-on and push add-on share release **0.4.2**. Install matching versions of the add-ons your app uses; chat-only apps do not need either add-on.
20
22
 
21
23
  ```bash
22
24
  npm install @sagepilot-ai/react-native-sdk@latest react-native-webview
@@ -91,8 +93,6 @@ export function SagepilotProvider({ children }: { children: ReactNode }) {
91
93
  }
92
94
  ```
93
95
 
94
- For native product navigation, pass `onOpenURL` to `SagepilotChatProvider`. It receives external top-level destinations; return `true` (or a promise resolving to `true`) when your native router handles the URL. Returning `false`, omitting the callback, or throwing preserves the existing `Linking.openURL` fallback. Same-origin widget pages, including `/cta` click tracking, load normally before their final destination is offered to the callback. A handled destination resets the hosted WebView so reopening chat does not leave it on a tracking page.
95
-
96
96
  ```tsx
97
97
  export function App() {
98
98
  return (
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ var import_react_native2 = require("react-native");
54
54
 
55
55
  // package.json
56
56
  var name = "@sagepilot-ai/react-native-sdk";
57
- var version = "0.4.3";
57
+ var version = "0.5.0";
58
58
 
59
59
  // src/core/config/constants.ts
60
60
  var SDK_NAME = name;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { AppState as AppState2, Platform } from "react-native";
3
3
 
4
4
  // package.json
5
5
  var name = "@sagepilot-ai/react-native-sdk";
6
- var version = "0.4.3";
6
+ var version = "0.5.0";
7
7
 
8
8
  // src/core/config/constants.ts
9
9
  var SDK_NAME = name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sagepilot-ai/react-native-sdk",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "Sagepilot AI React Native chat SDK",
5
5
  "keywords": [
6
6
  "sagepilot",