@applicaster/zapp-react-native-ui-components 12.0.0-alpha.4300857220 → 12.0.0-alpha.4337072244

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.
Files changed (36) hide show
  1. package/Components/BaseFocusable/index.tsx +1 -1
  2. package/Components/Cell/Cell.tsx +5 -5
  3. package/Components/Cell/CellWithFocusable.tsx +17 -5
  4. package/Components/FocusableGroup/index.tsx +1 -0
  5. package/Components/HandlePlayable/HandlePlayable.tsx +3 -0
  6. package/Components/Layout/TV/ScreenLayoutContextProvider.tsx +2 -2
  7. package/Components/Layout/TV/__tests__/__snapshots__/index.test.tsx.snap +10 -50
  8. package/Components/Layout/TV/__tests__/index.test.tsx +18 -74
  9. package/Components/Layout/TV/index.tsx +43 -102
  10. package/Components/MasterCell/DefaultComponents/ActionButton.tsx +2 -0
  11. package/Components/MasterCell/DefaultComponents/ImageContainer/index.tsx +5 -1
  12. package/Components/MasterCell/DefaultComponents/Text/index.tsx +14 -2
  13. package/Components/MasterCell/DefaultComponents/__tests__/text.test.tsx +24 -9
  14. package/Components/MasterCell/DefaultComponents/tv/ButtonContainerView/index.android.tsx +4 -1
  15. package/Components/MasterCell/DefaultComponents/tv/ButtonContainerView/index.tsx +4 -1
  16. package/Components/MasterCell/SharedUI/CollapsibleTextContainer/index.ts +1 -3
  17. package/Components/MasterCell/hooks/useAsyncRendering/index.ts +1 -1
  18. package/Components/MeasurmentsPortal/BasicMeasurementsPortal.tsx +11 -7
  19. package/Components/MeasurmentsPortal/MeasurementsPortal.tsx +10 -1
  20. package/Components/PlayerContainer/PlayerContainer.tsx +4 -1
  21. package/Components/River/ComponentsMap/ComponentsMap.tsx +18 -17
  22. package/Components/River/RefreshControl.tsx +55 -1
  23. package/Components/River/TV/River.tsx +0 -23
  24. package/Components/Screen/TV/hooks/index.ts +3 -0
  25. package/Components/Screen/TV/hooks/useInitialFocus.ts +67 -0
  26. package/Components/Screen/TV/hooks/useRestoreFocus.ts +22 -0
  27. package/Components/Screen/TV/index.web.tsx +174 -0
  28. package/Components/ScreenResolver/index.tsx +3 -1
  29. package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +13 -2
  30. package/Components/VideoModal/PlayerWrapper.tsx +2 -2
  31. package/Components/VideoModal/VideoModal.tsx +19 -19
  32. package/Contexts/ScreenContext/index.tsx +2 -2
  33. package/Contexts/ZappPipesContext/ZappPipesEntryContext.ts +1 -1
  34. package/events/index.ts +1 -0
  35. package/package.json +5 -5
  36. package/Components/Layout/TV/TransitionOverlay.tsx +0 -64
@@ -129,17 +129,17 @@ const VideoModalComponent = () => {
129
129
  const pathname = `${ROUTE_TYPES.VIDEO_MODAL}/${item?.id}`;
130
130
 
131
131
  return (
132
- <AnimatedPlayerModalWrapper
133
- style={[
134
- styles.container,
135
- {
136
- backgroundColor,
137
- },
138
- ]}
139
- >
140
- <ScreenContextProvider pathname={pathname}>
141
- <PathnameContext.Provider value={pathname}>
142
- {itemIdHooksFinished === item?.id ? (
132
+ <ScreenContextProvider pathname={pathname}>
133
+ <PathnameContext.Provider value={pathname}>
134
+ {itemIdHooksFinished === item?.id ? (
135
+ <AnimatedPlayerModalWrapper
136
+ style={[
137
+ styles.container,
138
+ {
139
+ backgroundColor,
140
+ },
141
+ ]}
142
+ >
143
143
  <HandlePlayable
144
144
  item={item}
145
145
  isModal={mode !== "PIP"}
@@ -147,14 +147,14 @@ const VideoModalComponent = () => {
147
147
  modalWidth={modalSize.width}
148
148
  mode={mode}
149
149
  />
150
- ) : (
151
- <View style={styles.loaderContainer}>
152
- <Spinner />
153
- </View>
154
- )}
155
- </PathnameContext.Provider>
156
- </ScreenContextProvider>
157
- </AnimatedPlayerModalWrapper>
150
+ </AnimatedPlayerModalWrapper>
151
+ ) : (
152
+ <View style={styles.loaderContainer}>
153
+ <Spinner />
154
+ </View>
155
+ )}
156
+ </PathnameContext.Provider>
157
+ </ScreenContextProvider>
158
158
  );
159
159
  };
160
160
 
@@ -26,7 +26,7 @@ interface NavBarStoreState {
26
26
  setSummary: (subtitle: string) => void;
27
27
  height: number;
28
28
  scrollState: number;
29
- isOnBottomNavBar: boolean;
29
+ contentPosition: string;
30
30
  scrollYAnimated: Animated.Value;
31
31
  }
32
32
 
@@ -52,7 +52,7 @@ const createStore = () =>
52
52
  visible: true,
53
53
  height: 0,
54
54
  scrollState: 0,
55
- isOnBottomNavBar: true,
55
+ contentPosition: "",
56
56
  scrollYAnimated: new Animated.Value(0),
57
57
  setTitle(title) {
58
58
  set({ title });
@@ -63,7 +63,7 @@ function prepareContext(
63
63
  const parent = findParent(currentContext, route, getChildren);
64
64
 
65
65
  const newEntry = {
66
- route: route,
66
+ route,
67
67
  id: uuid(),
68
68
  data: newContext,
69
69
  } as SingleEntry;
package/events/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export enum QBUIComponentEvents {
2
2
  toggleGradient = "toggleGradient",
3
3
  topMenuBarTV_onFocus = "topMenuBarTV_onFocus",
4
+ navigatorReplaceItem = "navigatorReplaceItem",
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-alpha.4300857220",
3
+ "version": "12.0.0-alpha.4337072244",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "redux-mock-store": "^1.5.3"
35
35
  },
36
36
  "dependencies": {
37
- "@applicaster/applicaster-types": "12.0.0-alpha.4300857220",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4300857220",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4300857220",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4300857220",
37
+ "@applicaster/applicaster-types": "12.0.0-alpha.4337072244",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4337072244",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4337072244",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4337072244",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",
@@ -1,64 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { useCurrentScreenData } from "@applicaster/zapp-react-native-utils/reactHooks/screen";
4
- import { ifEmptyUseFallback } from "@applicaster/zapp-react-native-utils/cellUtils";
5
- import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
6
- import { isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
7
- import { Spinner } from "@applicaster/zapp-react-native-ui-components/Components/Spinner";
8
- import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
9
-
10
- import { useScreenConfiguration } from "../../River/useScreenConfiguration";
11
-
12
- const styles = StyleSheet.create({
13
- container: {
14
- position: "absolute",
15
- top: 0,
16
- left: 0,
17
- right: 0,
18
- bottom: 0,
19
-
20
- alignItems: "center",
21
- justifyContent: "center",
22
- },
23
- });
24
-
25
- export const TransitionOverlay = () => {
26
- const screen = useCurrentScreenData();
27
-
28
- const { backgroundColor: screenBackgroundColor } = useScreenConfiguration(
29
- screen?.id
30
- );
31
-
32
- const theme = useTheme();
33
-
34
- const themeBackgroundColor = React.useMemo(
35
- () => theme.app_background_color,
36
- [theme.app_background_color]
37
- );
38
-
39
- const backgroundColor = ifEmptyUseFallback(
40
- screenBackgroundColor,
41
- themeBackgroundColor
42
- );
43
-
44
- const {
45
- appState: { isTransitioning },
46
- } = usePickFromState(["appState"]);
47
-
48
- if (!isWeb() || !isTransitioning) {
49
- return null;
50
- }
51
-
52
- return (
53
- <View
54
- style={[
55
- styles.container,
56
- {
57
- backgroundColor,
58
- },
59
- ]}
60
- >
61
- <Spinner size={"large"} />
62
- </View>
63
- );
64
- };