@applicaster/quick-brick-core 14.0.0-alpha.5351122050 → 14.0.0-alpha.5365702091

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
@@ -31,6 +31,7 @@ import { withActionExecutor } from "@applicaster/zapp-react-native-utils/actions
31
31
  import { withScreenDataContextProvider } from "@applicaster/zapp-react-native-ui-components/Contexts/ScreenDataContext";
32
32
  import { LogicAggregatorContainer } from "./LogicAggregatorContainer";
33
33
  import { LoadingOverlay } from "./LoadingOverlay";
34
+ import { ZappAppWrapper } from "./components/ZappAppWrapper";
34
35
 
35
36
  interface AppOptions {
36
37
  Layout: React.ComponentType;
@@ -59,31 +60,33 @@ const App = ({
59
60
  } = props;
60
61
 
61
62
  return (
62
- <ThemeManager plugins={plugins}>
63
- <SafeAreaProvider initialMetrics={initialWindowMetrics}>
64
- <AppContainer styles={styles}>
65
- <ErrorBoundary>
66
- <URLSchemeListener>
67
- <SplashLoader>
68
- <OfflineHandler>
69
- <Layout>
70
- <RouteManager />
71
- </Layout>
72
- </OfflineHandler>
73
- </SplashLoader>
74
- <ModalProvider />
75
- </URLSchemeListener>
76
- <LoadingOverlay />
77
- </ErrorBoundary>
78
- <LogicAggregatorContainer
79
- components={React.useMemo(
80
- () => [InteractionManager, ApplyScreenHooks],
81
- [InteractionManager, ApplyScreenHooks]
82
- )}
83
- />
84
- </AppContainer>
85
- </SafeAreaProvider>
86
- </ThemeManager>
63
+ <ZappAppWrapper>
64
+ <ThemeManager plugins={plugins}>
65
+ <SafeAreaProvider initialMetrics={initialWindowMetrics}>
66
+ <AppContainer styles={styles}>
67
+ <ErrorBoundary>
68
+ <URLSchemeListener>
69
+ <SplashLoader>
70
+ <OfflineHandler>
71
+ <Layout>
72
+ <RouteManager />
73
+ </Layout>
74
+ </OfflineHandler>
75
+ </SplashLoader>
76
+ <ModalProvider />
77
+ </URLSchemeListener>
78
+ <LoadingOverlay />
79
+ </ErrorBoundary>
80
+ <LogicAggregatorContainer
81
+ components={React.useMemo(
82
+ () => [InteractionManager, ApplyScreenHooks],
83
+ [InteractionManager, ApplyScreenHooks]
84
+ )}
85
+ />
86
+ </AppContainer>
87
+ </SafeAreaProvider>
88
+ </ThemeManager>
89
+ </ZappAppWrapper>
87
90
  );
88
91
  });
89
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.5351122050",
3
+ "version": "14.0.0-alpha.5365702091",
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.5351122050",
32
- "@applicaster/quick-brick-core-plugins": "14.0.0-alpha.5351122050",
33
- "@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.5351122050",
34
- "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.5351122050",
35
- "@applicaster/zapp-react-native-redux": "14.0.0-alpha.5351122050",
36
- "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.5351122050",
37
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.5351122050",
31
+ "@applicaster/applicaster-types": "14.0.0-alpha.5365702091",
32
+ "@applicaster/quick-brick-core-plugins": "14.0.0-alpha.5365702091",
33
+ "@applicaster/zapp-pipes-v2-client": "14.0.0-alpha.5365702091",
34
+ "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.5365702091",
35
+ "@applicaster/zapp-react-native-redux": "14.0.0-alpha.5365702091",
36
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.5365702091",
37
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.5365702091",
38
38
  "atob": "^2.1.2",
39
39
  "axios": "^0.28.0",
40
40
  "btoa": "^1.2.1",