@getuserfeedback/react-native 5.1.2 → 5.1.4

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
@@ -43,6 +43,7 @@ export interface FlowRun {
43
43
  * Public client exposed by `useGetUserFeedback`.
44
44
  *
45
45
  * @see https://getuserfeedback.com/docs/get-started/react-native-sdk
46
+ * @see https://getuserfeedback.com/docs/reference/react-native-sdk-reference
46
47
  */
47
48
  export interface Client {
48
49
  readonly instanceId: string;
@@ -63,7 +64,9 @@ export interface Client {
63
64
  close: () => Promise<void>;
64
65
  /** Resets widget state and the current user identity. */
65
66
  reset: (options?: CommandOptions) => Promise<void>;
67
+ /** Updates app navigation and environment context used by targeting. */
66
68
  updateHostContext: (context: HostContext, options?: CommandOptions) => Promise<void>;
69
+ /** Emits a named app signal into the widget runtime. */
67
70
  emitHostSignal: (name: string, data?: unknown, options?: CommandOptions) => Promise<void>;
68
71
  }
69
72
  export {};
@@ -31,4 +31,9 @@ export type GetUserFeedbackProviderProps = {
31
31
  webViewComponent?: NativeWebViewComponent;
32
32
  };
33
33
  export declare function GetUserFeedbackProvider({ children, clientOptions, instanceId: instanceIdProp, onError, webViewComponent, }: GetUserFeedbackProviderProps): ReactElement;
34
+ /**
35
+ * Returns the React Native SDK client from the nearest provider.
36
+ *
37
+ * @see https://getuserfeedback.com/docs/reference/react-native-sdk-reference#usegetuserfeedback
38
+ */
34
39
  export declare function useGetUserFeedback(): Client;
@@ -141,6 +141,11 @@ export function GetUserFeedbackProvider({ children, clientOptions, instanceId: i
141
141
  viewWebViewComponent: webViewComponent,
142
142
  }))));
143
143
  }
144
+ /**
145
+ * Returns the React Native SDK client from the nearest provider.
146
+ *
147
+ * @see https://getuserfeedback.com/docs/reference/react-native-sdk-reference#usegetuserfeedback
148
+ */
144
149
  export function useGetUserFeedback() {
145
150
  const client = useContext(GetUserFeedbackContext);
146
151
  if (client === null) {
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.1.2";
6
+ export const REACT_NATIVE_SDK_VERSION = reactNativeSdkVersion.length > 0 ? reactNativeSdkVersion : "5.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getuserfeedback/react-native",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "description": "getuserfeedback React Native SDK",
5
5
  "keywords": [
6
6
  "getuserfeedback",
@@ -44,8 +44,8 @@
44
44
  "lint": "biome check ."
45
45
  },
46
46
  "dependencies": {
47
- "@getuserfeedback/protocol": "^3.31.4",
48
- "@getuserfeedback/sdk": "^0.13.2",
47
+ "@getuserfeedback/protocol": "^4.0.0",
48
+ "@getuserfeedback/sdk": "^0.13.4",
49
49
  "robot3": "^1.2.0"
50
50
  },
51
51
  "peerDependencies": {