@applicaster/zapp-react-native-utils 16.0.0-rc.39 → 16.0.0-rc.40

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.
@@ -33,7 +33,7 @@ export interface ActionExecutionContext {
33
33
  /** Callback function for action completion */
34
34
  callback?: (result: { success: boolean; error: any; abort: boolean }) => void;
35
35
 
36
- screenState: Record<any, any>;
36
+ screenState?: Record<any, any>;
37
37
  }
38
38
 
39
39
  /**
@@ -781,21 +781,6 @@ function getPlayerConfiguration({ platform, version }) {
781
781
  }
782
782
  );
783
783
 
784
- if (
785
- platform.includes("android") ||
786
- platform.includes("amazon") ||
787
- platform.includes("ios") ||
788
- platform.includes("tvos")
789
- ) {
790
- general.fields.push({
791
- key: "user_agent",
792
- label: "User agent",
793
- initial_value: "",
794
- type: "text_input",
795
- label_tooltip: "Override default user agent string",
796
- });
797
- }
798
-
799
784
  if (platform === "android_for_quickbrick") {
800
785
  general.fields.push({
801
786
  key: "stop_playback_on_task_removal",
@@ -2415,6 +2400,21 @@ function getPlayerConfiguration({ platform, version }) {
2415
2400
  );
2416
2401
  }
2417
2402
 
2403
+ if (
2404
+ platform.includes("android") ||
2405
+ platform.includes("amazon") ||
2406
+ platform.includes("ios") ||
2407
+ platform.includes("tvos")
2408
+ ) {
2409
+ general.fields.push({
2410
+ key: "user_agent",
2411
+ label: "User agent",
2412
+ initial_value: "",
2413
+ type: "text_input",
2414
+ label_tooltip: "Override default user agent string",
2415
+ });
2416
+ }
2417
+
2418
2418
  compact([
2419
2419
  {
2420
2420
  key: "liveCatchUpEnabled",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "16.0.0-rc.39",
3
+ "version": "16.0.0-rc.40",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "16.0.0-rc.39",
30
+ "@applicaster/applicaster-types": "16.0.0-rc.40",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -41,5 +41,5 @@ export const useComponentScreenState = <T = unknown>(
41
41
  [componentId, store]
42
42
  );
43
43
 
44
- return [value, setValue] as const;
44
+ return [value, setValue];
45
45
  };