@getuserfeedback/react-native 5.11.0 → 5.12.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/dist/client.d.ts CHANGED
@@ -13,9 +13,6 @@ type IdentifyOptions = {
13
13
  };
14
14
  export type OpenFlowOptions = Pick<OpenCommand, "hideCloseButton" | "metadata">;
15
15
  export type PrerenderFlowOptions = Pick<PrerenderCommand, "hideCloseButton">;
16
- type HostContext = Extract<PublicCommandPayload, {
17
- kind: "updateHostContext";
18
- }>["context"];
19
16
  type CommandOptions = {
20
17
  /**
21
18
  * @deprecated Omit this option. The SDK owns command identity and transport
@@ -109,15 +106,4 @@ export interface Client {
109
106
  onOpenRequested: (callback: OpenRequestedCallback) => () => void;
110
107
  /** Resets widget state, authentication, and the current user identity. */
111
108
  reset: (options?: CommandOptions) => Promise<void>;
112
- /**
113
- * Updates current-route and host-supplied targeting context. URL and page
114
- * fields can enrich events and consent-gated telemetry; `env` and `storage`
115
- * are local-targeting inputs only.
116
- */
117
- updateHostContext: (context: HostContext, options?: CommandOptions) => Promise<void>;
118
- /**
119
- * Emits an ephemeral signal for local engagement targeting. This does not
120
- * persist a customer occurrence; use `track()` or `screen()` for that.
121
- */
122
- emitHostSignal: (name: string, data?: unknown, options?: CommandOptions) => Promise<void>;
123
109
  }
@@ -2,7 +2,7 @@ import type { PublicCommandPayload } from "@getuserfeedback/protocol";
2
2
  import { type OpenRequestDispatcher } from "@getuserfeedback/sdk/internal/open-request-dispatcher";
3
3
  import type { Client } from "./client.js";
4
4
  type NativeProviderClientCommand = Extract<PublicCommandPayload, {
5
- kind: "configure" | "identify" | "track" | "close" | "reset" | "updateHostContext" | "emitHostSignal";
5
+ kind: "configure" | "identify" | "track" | "close" | "reset";
6
6
  }>;
7
7
  type NativeProviderCommandOptions = NonNullable<Parameters<Client["configure"]>[1]>;
8
8
  type NativeProviderClientOptions = {
@@ -64,7 +64,5 @@ export function createNativeProviderClient({ dispatchCommand, flow, instanceId,
64
64
  close: () => dispatchCommand({ kind: "close" }),
65
65
  onOpenRequested: openRequestDispatcher.subscribe,
66
66
  reset: (options) => dispatchCommand({ kind: "reset" }, options),
67
- updateHostContext: (context, options) => dispatchCommand({ kind: "updateHostContext", context }, options),
68
- emitHostSignal: (name, data, options) => dispatchCommand(Object.assign({ kind: "emitHostSignal", name: parseRequiredString("name", name) }, (data === undefined ? {} : { data })), options),
69
67
  };
70
68
  }
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@ const reactNativeSdkVersion = typeof __GX_REACT_NATIVE_SDK_VERSION__ === "string
3
3
  : "";
4
4
  // Build scripts patch this fallback to the package version for published artifacts.
5
5
  // Source-linked workspace usage keeps the local fallback.
6
- export const REACT_NATIVE_SDK_VERSION = reactNativeSdkVersion.length > 0 ? reactNativeSdkVersion : "5.11.0";
6
+ export const REACT_NATIVE_SDK_VERSION = reactNativeSdkVersion.length > 0 ? reactNativeSdkVersion : "5.12.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getuserfeedback/react-native",
3
- "version": "5.11.0",
3
+ "version": "5.12.0",
4
4
  "description": "getuserfeedback React Native SDK",
5
5
  "keywords": [
6
6
  "getuserfeedback",