@applicaster/quick-brick-core 13.0.6-alpha.4390983410 → 14.0.0-alpha.1015356256
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/App/ErrorBoundary/index.tsx +4 -0
- package/App/ThemeManager/index.tsx +9 -1
- package/README.md +1 -1
- package/package.json +9 -16
- package/renderZappApp/index.js +2 -1
|
@@ -60,6 +60,10 @@ export class ErrorBoundary extends React.Component<Props> {
|
|
|
60
60
|
useErrorStore.getState().setError(error, info, recoverable);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
static getDerivedStateFromError(_error) {
|
|
64
|
+
return { hasError: true };
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
render() {
|
|
64
68
|
return <ErrorBoundaryContent>{this.props.children}</ErrorBoundaryContent>;
|
|
65
69
|
}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
mapKeys,
|
|
9
9
|
partitionByKeys,
|
|
10
10
|
} from "@applicaster/zapp-react-native-utils/objectUtils";
|
|
11
|
+
import { getLocalizations } from "@applicaster/zapp-react-native-utils/appUtils/localizationsHelper";
|
|
11
12
|
|
|
12
13
|
type Props = {
|
|
13
14
|
children: React.ReactNode;
|
|
@@ -23,7 +24,14 @@ function populateTheme(plugin) {
|
|
|
23
24
|
return null;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
const themeLocalizations =
|
|
28
|
+
getLocalizations({
|
|
29
|
+
localizations: plugin?.configuration?.localizations,
|
|
30
|
+
}) || {};
|
|
31
|
+
|
|
32
|
+
const themeProps = getProps(plugin?.configuration || {});
|
|
33
|
+
|
|
34
|
+
return [id, { ...themeProps, ...themeLocalizations }];
|
|
27
35
|
}
|
|
28
36
|
|
|
29
37
|
const TABLET_PREFIX = "tablet_";
|
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ This function allows to quickly create a QuickBrick app by providing the require
|
|
|
74
74
|
|
|
75
75
|
## NavigationProvider
|
|
76
76
|
|
|
77
|
-
This module provides routing, navigation and navBar control to the QuickBrick applications. The Navigator provider is constructed using NavigationContext and navigator object, which are exposed to the user by `withNavigator` Decorator and `useNavigation` hook.
|
|
77
|
+
This module provides routing, navigation and navBar control to the QuickBrick applications. The Navigator provider is constructed using NavigationContext and navigator object, which are exposed to the user by `withNavigator` Decorator and `useNavigation` hook.
|
|
78
78
|
|
|
79
79
|
The app is already decorated with the Navigation Provider Context so the only thing, to use navigation in your screen/component`is to use`withNavigator`decorator or`useNavigationHook` directly
|
|
80
80
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0-alpha.1015356256",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.0-alpha.1015356256",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "14.0.0-alpha.1015356256",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.1015356256",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.1015356256",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.1015356256",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.1015356256",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.1015356256",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|
|
@@ -60,19 +60,12 @@
|
|
|
60
60
|
"react": "*",
|
|
61
61
|
"react-native": "*",
|
|
62
62
|
"react-native-fs": "*",
|
|
63
|
-
"react-native-gesture-handler": "*",
|
|
64
63
|
"react-native-linear-gradient": "*",
|
|
65
64
|
"react-native-safe-area-context": "*",
|
|
66
65
|
"react-native-svg": "*",
|
|
67
|
-
"react-native-web": "*",
|
|
68
66
|
"react-native-webview": "*",
|
|
69
67
|
"uglify-js": "*",
|
|
70
68
|
"validate-color": "*",
|
|
71
69
|
"zustand": "*"
|
|
72
|
-
}
|
|
73
|
-
"devDependencies": {
|
|
74
|
-
"nock": "^10.0.0",
|
|
75
|
-
"redux-mock-store": "^1.5.3"
|
|
76
|
-
},
|
|
77
|
-
"gitHead": "a473487564142c55cdb50f02505cf0b60fe75658"
|
|
70
|
+
}
|
|
78
71
|
}
|
package/renderZappApp/index.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* @param {React.ComponentType<any>} App component to start
|
|
20
20
|
*/
|
|
21
21
|
export function renderZappApp(options) {
|
|
22
|
-
const { App, AppRegistry, appMountId } = options;
|
|
22
|
+
const { App, AppRegistry, appMountId, mode } = options;
|
|
23
23
|
|
|
24
24
|
if (!App) {
|
|
25
25
|
throw new Error("No App Component provided, nothing to render");
|
|
@@ -37,6 +37,7 @@ export function renderZappApp(options) {
|
|
|
37
37
|
if (appMountId) {
|
|
38
38
|
AppRegistry.runApplication("QuickBrickApp", {
|
|
39
39
|
rootTag: document.getElementById(appMountId),
|
|
40
|
+
mode,
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
}
|