@getuserfeedback/react-native 5.0.6 → 5.0.8

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.
@@ -8,7 +8,7 @@ import { type NativeDirectCommandSession } from "./native-direct-command-session
8
8
  import type { NativeDirectCommandSessionController } from "./native-direct-command-session-controller.js";
9
9
  import { type NativeViewHostProjectionProps } from "./native-view-host-projection.js";
10
10
  export type NativeRuntimeRootProps = {
11
- coreUrl?: string;
11
+ coreUrl: string;
12
12
  coreWebViewComponent?: CoreWebViewHostProps["webViewComponent"];
13
13
  startupCommands?: NativeRuntimeStartupCommands;
14
14
  onCommandSessionChange?: (session: NativeCoreCommandSession | null) => void;
@@ -18,7 +18,6 @@ import { createNativeDirectCommandSession, } from "./native-direct-command-sessi
18
18
  import { NativeViewHostProjection, } from "./native-view-host-projection.js";
19
19
  import { createNativeViewRecordController, } from "./native-view-record-controller.js";
20
20
  import { createProviderCommandEnvelope, REACT_NATIVE_CLIENT_META, } from "./provider-command-helpers.js";
21
- import { REACT_NATIVE_DEFAULT_CORE_URL } from "./runtime-endpoints.js";
22
21
  const DEFAULT_STARTUP_COMMAND_SETTLEMENT_TIMEOUT_MS = 30000;
23
22
  async function dispatchStartupCommands(input) {
24
23
  for (const command of input.commands) {
@@ -27,7 +26,7 @@ async function dispatchStartupCommands(input) {
27
26
  });
28
27
  }
29
28
  }
30
- export function NativeRuntimeRoot({ coreUrl = REACT_NATIVE_DEFAULT_CORE_URL, coreWebViewComponent, onCommandSessionChange, onError, onHandleInvalidated, onInvalidMessage, onStartupTerminalError, startupCommandSettlementTimeoutMs = DEFAULT_STARTUP_COMMAND_SETTLEMENT_TIMEOUT_MS, startupCommands, viewNativeViewComponent, viewWebViewComponent, }) {
29
+ export function NativeRuntimeRoot({ coreUrl, coreWebViewComponent, onCommandSessionChange, onError, onHandleInvalidated, onInvalidMessage, onStartupTerminalError, startupCommandSettlementTimeoutMs = DEFAULT_STARTUP_COMMAND_SETTLEMENT_TIMEOUT_MS, startupCommands, viewNativeViewComponent, viewWebViewComponent, }) {
31
30
  const [coreHostRevision, setCoreHostRevision] = useState(0);
32
31
  const [session, setSession] = useState(null);
33
32
  const sessionRef = useRef(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.0.6";
6
+ export const REACT_NATIVE_SDK_VERSION = reactNativeSdkVersion.length > 0 ? reactNativeSdkVersion : "5.0.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getuserfeedback/react-native",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "getuserfeedback React Native SDK",
5
5
  "keywords": [
6
6
  "getuserfeedback",
@@ -1,2 +0,0 @@
1
- /** Core artifact pinned to this React Native package release. */
2
- export declare const REACT_NATIVE_DEFAULT_CORE_URL = "https://cdn.getuserfeedback.com/widget/core/v2/core.html";
@@ -1,2 +0,0 @@
1
- /** Core artifact pinned to this React Native package release. */
2
- export const REACT_NATIVE_DEFAULT_CORE_URL = "https://cdn.getuserfeedback.com/widget/core/v2/core.html";