@graineai/inapp-react-native 0.26.0 → 0.26.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/INTEGRATION.md
CHANGED
|
@@ -824,6 +824,10 @@ fourth. The guarantees, so you do not have to think about them:
|
|
|
824
824
|
unmounting the old screen after the new one mounted cannot erase it.
|
|
825
825
|
- **Reconnect-safe.** The newest context is replayed whenever the media or the
|
|
826
826
|
screen channel (re)connects.
|
|
827
|
+
- **Self-healing.** The newest screen is re-asserted every few seconds during
|
|
828
|
+
a call and when the app returns to the foreground, with its original
|
|
829
|
+
sequence number — so a frame lost in flight is repaired within seconds, not
|
|
830
|
+
at the next screen change; one that arrived is simply ignored.
|
|
827
831
|
- **Applied every turn.** The runtime puts the last-reported screen on the
|
|
828
832
|
prompt at every generation, so nothing that rewrites the prompt mid-call — a
|
|
829
833
|
language switch, a summary — can make the agent forget where the customer is.
|
|
@@ -916,7 +920,7 @@ told to ignore).
|
|
|
916
920
|
|
|
917
921
|
| Prop | Type | Notes |
|
|
918
922
|
|---|---|---|
|
|
919
|
-
| `publishableKey` | `string` | Required unless you pass `client`. |
|
|
923
|
+
| `publishableKey` | `string` | Required unless you pass `client`. Selects the agent — one key per agent; there is no `agentId` prop. |
|
|
920
924
|
| `baseUrl` | `string` | Defaults to Graine's host. |
|
|
921
925
|
| `client` | `GraineInAppClient` | Use **your** instance instead of building one. Pass this if your app has a module-level client. |
|
|
922
926
|
| `navigationRef` | `ref` | The same ref you give `NavigationContainer`. Makes the agent screen-aware with no per-screen code. |
|
package/package.json
CHANGED