@applicaster/zapp-react-native-utils 15.0.0-rc.145 → 15.0.0-rc.147
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.147",
|
|
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.
|
|
30
|
+
"@applicaster/applicaster-types": "15.0.0-rc.147",
|
|
31
31
|
"buffer": "^5.2.1",
|
|
32
32
|
"camelize": "^1.0.0",
|
|
33
33
|
"dayjs": "^1.11.10",
|
package/pluginUtils/index.ts
CHANGED
|
@@ -30,10 +30,7 @@ export function getComponentModule({
|
|
|
30
30
|
components: ComponentsMap;
|
|
31
31
|
plugins: Plugin[] | QuickBrickPlugin[];
|
|
32
32
|
}) {
|
|
33
|
-
const component =
|
|
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
|
|
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>;
|