@applicaster/quick-brick-core 14.0.0-alpha.3011001369 → 14.0.0-alpha.3065652724

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.
@@ -52,9 +52,9 @@ export class DraggableBottomSheet extends Component<Props, ComponentState> {
52
52
  _lastScrollYValue: number;
53
53
  _lastScrollY: Animated.Value;
54
54
  _dragY: Animated.Value;
55
- _reverseLastScrollY: Animated.AnimatedMultiplication;
55
+ _reverseLastScrollY: Animated.AnimatedInterpolation<number>;
56
56
  _translateYOffset: Animated.Value;
57
- _translateY: Animated.AnimatedAddition;
57
+ _translateY: Animated.AnimatedInterpolation<number>;
58
58
  _snapPoints: SnapPoints;
59
59
  _prevContentHeight = 0;
60
60
 
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { Modal, ModalProps } from "react-native";
3
+ import { GestureHandlerRootView } from "react-native-gesture-handler";
3
4
 
4
5
  type Props = ModalProps & {
5
6
  children: React.ReactChild;
@@ -13,7 +14,7 @@ export function ModalPresenter(props: Props) {
13
14
 
14
15
  return (
15
16
  <Presenter visible={visible} {...presenterOptions}>
16
- {children}
17
+ <GestureHandlerRootView>{children}</GestureHandlerRootView>
17
18
  </Presenter>
18
19
  );
19
20
  }
@@ -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
- return [id, getProps(plugin?.configuration || {})];
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_";
@@ -0,0 +1,3 @@
1
+ import { GestureHandlerRootView } from "react-native-gesture-handler";
2
+
3
+ export const ZappAppWrapper = GestureHandlerRootView;
@@ -0,0 +1,3 @@
1
+ import { View } from "react-native";
2
+
3
+ export const ZappAppWrapper = View;
package/App/index.tsx CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as React from "react";
2
2
  import * as R from "ramda";
3
3
 
4
- import { GestureHandlerRootView } from "react-native-gesture-handler";
5
-
6
4
  import {
7
5
  initialWindowMetrics,
8
6
  SafeAreaProvider,
@@ -33,6 +31,7 @@ import { withActionExecutor } from "@applicaster/zapp-react-native-utils/actions
33
31
  import { withScreenDataContextProvider } from "@applicaster/zapp-react-native-ui-components/Contexts/ScreenDataContext";
34
32
  import { LogicAggregatorContainer } from "./LogicAggregatorContainer";
35
33
  import { LoadingOverlay } from "./LoadingOverlay";
34
+ import { ZappAppWrapper } from "./components/ZappAppWrapper";
36
35
 
37
36
  interface AppOptions {
38
37
  Layout: React.ComponentType;
@@ -61,7 +60,7 @@ const App = ({
61
60
  } = props;
62
61
 
63
62
  return (
64
- <GestureHandlerRootView>
63
+ <ZappAppWrapper>
65
64
  <ThemeManager plugins={plugins}>
66
65
  <SafeAreaProvider initialMetrics={initialWindowMetrics}>
67
66
  <AppContainer styles={styles}>
@@ -87,7 +86,7 @@ const App = ({
87
86
  </AppContainer>
88
87
  </SafeAreaProvider>
89
88
  </ThemeManager>
90
- </GestureHandlerRootView>
89
+ </ZappAppWrapper>
91
90
  );
92
91
  });
93
92
 
package/const/index.ts CHANGED
@@ -38,3 +38,9 @@ export const requiredSessionKeys = [
38
38
  export const QUICK_BRICK_NAVBAR = "quick-brick-navbar";
39
39
 
40
40
  export const QUICK_BRICK_CONTENT = "quick-brick-content";
41
+
42
+ export const QUICK_BRICK_NAVBAR_SECTIONS = {
43
+ right: "nav-bar-right",
44
+ menu: "navbar-items",
45
+ left: "nav-bar-left",
46
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-core",
3
- "version": "14.0.0-alpha.3011001369",
3
+ "version": "14.0.0-alpha.3065652724",
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": "14.0.0-alpha.3011001369",
32
- "@applicaster/quick-brick-core-plugins": "14.0.0-alpha.3011001369",
33
- "@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.3011001369",
34
- "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.3011001369",
35
- "@applicaster/zapp-react-native-redux": "14.0.0-alpha.3011001369",
36
- "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.3011001369",
37
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.3011001369",
31
+ "@applicaster/applicaster-types": "14.0.0-alpha.3065652724",
32
+ "@applicaster/quick-brick-core-plugins": "14.0.0-alpha.3065652724",
33
+ "@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.3065652724",
34
+ "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.3065652724",
35
+ "@applicaster/zapp-react-native-redux": "14.0.0-alpha.3065652724",
36
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.3065652724",
37
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.3065652724",
38
38
  "atob": "^2.1.2",
39
39
  "axios": "^0.28.0",
40
40
  "btoa": "^1.2.1",