@applicaster/quick-brick-core 12.0.0-alpha.5471145113 → 12.0.0-alpha.5522474195

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.
@@ -7,6 +7,10 @@
7
7
  import * as React from "react";
8
8
  import * as R from "ramda";
9
9
  import { Dimensions } from "react-native";
10
+ import {
11
+ isNotEmpty,
12
+ isNotNil,
13
+ } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
10
14
 
11
15
  import {
12
16
  createZappReduxStore,
@@ -27,6 +31,9 @@ import { remoteDataLoader } from "../App/appRemoteDataLoader/remoteDataLoader";
27
31
  import * as QuickBrickManager from "@applicaster/zapp-react-native-bridge/QuickBrick";
28
32
  import { isAndroidPlatform } from "@applicaster/zapp-react-native-utils/reactUtils";
29
33
 
34
+ const isNotEmptyObject = (value: unknown) =>
35
+ isNotNil(value) && R.is(Object, value) && isNotEmpty(value);
36
+
30
37
  /**
31
38
  * Creates a Zapp App with the provided options
32
39
  * @export
@@ -55,8 +62,8 @@ export function createZappApp(zappAppConfig: ZappAppConfig) {
55
62
 
56
63
  const useTabletLayout =
57
64
  isTablet({ width, height }, width > height ? "landscape" : "portrait") &&
58
- tabletLayout &&
59
- tabletCellStyles;
65
+ isNotEmptyObject(tabletLayout) &&
66
+ isNotEmptyObject(tabletCellStyles);
60
67
 
61
68
  function fetchPluginConfiguration(plugin) {
62
69
  const configuration = R.compose(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "12.0.0-alpha.5471145113",
3
+ "version": "12.0.0-alpha.5522474195",
4
4
  "description": "Core package for Applicaster's Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "homepage": "https://github.com/applicaster/quickbrick#readme",
32
32
  "dependencies": {
33
- "@applicaster/applicaster-types": "12.0.0-alpha.5471145113",
34
- "@applicaster/quick-brick-core-plugins": "12.0.0-alpha.5471145113",
35
- "@applicaster/zapp-pipes-v2-client": "12.0.0-alpha.5471145113",
36
- "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.5471145113",
37
- "@applicaster/zapp-react-native-redux": "12.0.0-alpha.5471145113",
38
- "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.5471145113",
39
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.5471145113",
33
+ "@applicaster/applicaster-types": "12.0.0-alpha.5522474195",
34
+ "@applicaster/quick-brick-core-plugins": "12.0.0-alpha.5522474195",
35
+ "@applicaster/zapp-pipes-v2-client": "12.0.0-alpha.5522474195",
36
+ "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.5522474195",
37
+ "@applicaster/zapp-react-native-redux": "12.0.0-alpha.5522474195",
38
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.5522474195",
39
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.5522474195",
40
40
  "atob": "^2.1.2",
41
41
  "axios": "^0.28.0",
42
42
  "btoa": "^1.2.1",