@applicaster/zapp-react-native-utils 15.0.0-rc.146 → 15.0.0-rc.148

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.
@@ -473,10 +473,10 @@ const MOBILE_ACTION_BUTTON_FIELDS = [
473
473
  { text: "primary navigation", value: "navigation_action" },
474
474
  { text: "secondary navigation", value: "secondary_navigation" },
475
475
  { text: "favorite", value: "local_storage_favourites_action" },
476
- { text: "more", value: "more" },
477
- { text: "add to calendar", value: "add_to_calendar" },
478
- { text: "share", value: "share" },
479
- { text: "downloads", value: "downloads" },
476
+ { text: "more", value: "open-modal-bottom-sheet-cell-action" },
477
+ { text: "add to calendar", value: "add_to_calendar_action" },
478
+ { text: "share", value: "native_share_action" },
479
+ { text: "downloads", value: "offline-content-button" },
480
480
  { text: "trailer", value: "trailer_action" },
481
481
  { text: "mute/unmute", value: "mute_unmute" },
482
482
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "15.0.0-rc.146",
3
+ "version": "15.0.0-rc.148",
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": "15.0.0-rc.146",
30
+ "@applicaster/applicaster-types": "15.0.0-rc.148",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -30,10 +30,7 @@ export function getComponentModule({
30
30
  components: ComponentsMap;
31
31
  plugins: Plugin[] | QuickBrickPlugin[];
32
32
  }) {
33
- const component = R.compose(
34
- R.prop(R.__, components),
35
- toPascalCase
36
- )(componentType);
33
+ const component = components[toPascalCase(componentType)];
37
34
 
38
35
  if (component) {
39
36
  return component;
@@ -60,7 +57,9 @@ export function findComponentByType({
60
57
  ? R.compose(...R.reverse(decorators))
61
58
  : decorators;
62
59
 
63
- const component = getComponentModule({ componentType, components, plugins });
60
+ const module = getComponentModule({ componentType, components, plugins });
61
+
62
+ const component = module?.Component || module;
64
63
 
65
64
  return R.unless(R.isNil, applyDecorators)(component);
66
65
  }
@@ -5,9 +5,9 @@ import { coreLogger } from "@applicaster/zapp-react-native-utils/logger";
5
5
 
6
6
  import { findComponentByType } from "@applicaster/zapp-react-native-utils/pluginUtils";
7
7
  import {
8
- usePlugins,
9
- useAppSelector,
10
8
  selectComponents,
9
+ useAppSelector,
10
+ usePlugins,
11
11
  } from "@applicaster/zapp-react-native-redux";
12
12
 
13
13
  type Decorator = (component: React.Component<any>) => React.Component<any>;