@applicaster/zapp-react-native-ui-components 12.0.0-rc.26 → 12.0.0-rc.29

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 (30) hide show
  1. package/Components/Layout/TV/__tests__/__snapshots__/index.test.tsx.snap +1 -41
  2. package/Components/Layout/TV/__tests__/index.test.tsx +0 -21
  3. package/Components/Layout/TV/index.tsx +20 -36
  4. package/Components/MasterCell/utils/index.ts +2 -2
  5. package/Components/ModalComponent/BottomSheetModalContent.tsx +121 -0
  6. package/Components/ModalComponent/Button/Item.tsx +82 -0
  7. package/Components/ModalComponent/Button/ItemIcon.tsx +60 -0
  8. package/Components/ModalComponent/Button/ItemLabel.tsx +101 -0
  9. package/Components/ModalComponent/Button/assets.ts +4 -0
  10. package/Components/ModalComponent/Button/index.tsx +111 -0
  11. package/Components/ModalComponent/Header/CloseButton.tsx +59 -0
  12. package/Components/ModalComponent/Header/Title.tsx +70 -0
  13. package/Components/ModalComponent/Header/assets.ts +4 -0
  14. package/Components/ModalComponent/Header/index.tsx +71 -0
  15. package/Components/ModalComponent/Header/utils.ts +79 -0
  16. package/Components/ModalComponent/index.tsx +38 -0
  17. package/Components/ModalComponent/utils.ts +126 -0
  18. package/Components/RouteManager/__tests__/__snapshots__/routeManager.test.js.snap +1 -0
  19. package/Components/RouteManager/__tests__/routeManager.test.js +9 -2
  20. package/Components/RouteManager/index.tsx +4 -2
  21. package/Components/Screen/__tests__/Screen.test.tsx +83 -69
  22. package/Components/Screen/__tests__/__snapshots__/Screen.test.tsx.snap +10 -6
  23. package/Components/Screen/__tests__/navigationHandler.test.ts +1 -178
  24. package/Components/Screen/index.tsx +84 -44
  25. package/Components/Screen/navigationHandler.ts +0 -82
  26. package/Components/VideoModal/PlayerDetails.tsx +3 -0
  27. package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +1 -0
  28. package/Components/index.js +2 -0
  29. package/Contexts/ScreenContext/index.tsx +1 -1
  30. package/package.json +5 -5
@@ -23,6 +23,8 @@ const containerStyle = ({
23
23
  backgroundColor: modal_background_color,
24
24
  });
25
25
 
26
+ // const audioMarginStyle = { marginTop: 0, marginBottom: 0 };
27
+
26
28
  export const PlayerDetails = ({
27
29
  entry,
28
30
  style,
@@ -75,6 +77,7 @@ export const PlayerDetails = ({
75
77
  transform: [{ translateY }],
76
78
  opacity,
77
79
  },
80
+ // isAudioPlayer && audioMarginStyle,
78
81
  ]}
79
82
  >
80
83
  {screenData && (
@@ -36,6 +36,7 @@ jest.mock("@applicaster/zapp-react-native-utils/reactUtils", () => ({
36
36
  }));
37
37
 
38
38
  jest.mock("@applicaster/zapp-react-native-utils/reactHooks/navigation", () => ({
39
+ isNavBarVisible: jest.fn(() => true),
39
40
  useRoute: jest.fn(() => ({
40
41
  pathname: "/river/testId",
41
42
  })),
@@ -4,6 +4,8 @@ export { River } from "./River";
4
4
 
5
5
  export { PlayerContainer } from "./PlayerContainer";
6
6
 
7
+ export { ModalComponent } from "./ModalComponent";
8
+
7
9
  export { ContentScreen } from "./ContentScreen";
8
10
 
9
11
  export { TextInputTv } from "./TextInputTv";
@@ -4,10 +4,10 @@ import {
4
4
  useCurrentScreenData,
5
5
  useNavigation,
6
6
  useRoute,
7
+ isNavBarVisible,
7
8
  } from "@applicaster/zapp-react-native-utils/reactHooks";
8
9
  import { useModalNavigationContext } from "@applicaster/zapp-react-native-ui-components/Contexts/ModalNavigationContext";
9
10
  import { useNestedNavigationContext } from "@applicaster/zapp-react-native-ui-components/Contexts/NestedNavigationContext";
10
- import { isNavBarVisible } from "../../Components/Screen/navigationHandler";
11
11
 
12
12
  type ScreenContextType = {
13
13
  navBar: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-rc.26",
3
+ "version": "12.0.0-rc.29",
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-rc.26",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.26",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.26",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.26",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.29",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.29",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.29",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.29",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",