@applicaster/zapp-react-native-ui-components 13.0.0-alpha.8532113155 → 13.0.0-alpha.9103242840
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/Components/BaseFocusable/index.ios.ts +1 -1
- package/Components/BaseFocusable/index.tsx +1 -1
- package/Components/Cell/Cell.tsx +4 -7
- package/Components/Cell/CellWithFocusable.tsx +59 -43
- package/Components/Cell/TvOSCellComponent.tsx +20 -22
- package/Components/Cell/__tests__/CellWIthFocusable.test.js +6 -13
- package/Components/Cell/index.js +3 -1
- package/Components/Focusable/FocusableTvOS.tsx +5 -1
- package/Components/Focusable/Touchable.tsx +20 -19
- package/Components/FocusableList/index.tsx +26 -9
- package/Components/FocusableScrollView/index.tsx +39 -12
- package/Components/Layout/TV/NavBarContainer.tsx +8 -7
- package/Components/Layout/TV/__tests__/__snapshots__/NavBarContainer.test.tsx.snap +1 -1
- package/Components/Layout/TV/__tests__/__snapshots__/ScreenContainer.test.tsx.snap +1 -1
- package/Components/MasterCell/DefaultComponents/BorderContainerView/index.tsx +1 -4
- package/Components/MasterCell/DefaultComponents/Image/Image.ios.tsx +11 -5
- package/Components/MasterCell/DefaultComponents/SecondaryImage/utils.ts +1 -1
- package/Components/MasterCell/DefaultComponents/__tests__/image.test.js +1 -1
- package/Components/MasterCell/hooks/useAsyncRendering/MasterCellAsyncRenderManager.ts +2 -2
- package/Components/MasterCell/utils/index.ts +1 -1
- package/Components/ModalComponent/Header/index.tsx +3 -3
- package/Components/River/ComponentsMap/ComponentsMap.tsx +65 -39
- package/Components/River/ComponentsMap/hooks/useLoadingState.ts +51 -78
- package/Components/River/RiverFooter.tsx +9 -39
- package/Components/River/RiverItem.tsx +2 -37
- package/Components/River/TV/index.tsx +6 -1
- package/Components/River/__tests__/__snapshots__/componentsMap.test.js.snap +31 -100
- package/Components/River/__tests__/componentsMap.test.js +5 -17
- package/Components/Screen/index.tsx +39 -13
- package/Components/Tabs/Tab.tsx +6 -6
- package/Components/TextInputTv/index.tsx +2 -2
- package/Components/Transitioner/AnimationManager.js +8 -8
- package/Components/Transitioner/Scene.tsx +23 -52
- package/Components/Transitioner/__tests__/__snapshots__/Scene.test.js.snap +43 -59
- package/Components/Transitioner/__tests__/__snapshots__/transitioner.test.js.snap +2 -2
- package/Components/Transitioner/index.js +4 -8
- package/Components/VideoLive/LiveImageManager.ts +1 -27
- package/Components/VideoLive/PlayerLiveImageComponent.tsx +21 -29
- package/Components/VideoLive/__tests__/PlayerLiveImageComponent.test.tsx +1 -51
- package/Components/VideoLive/__tests__/__snapshots__/PlayerLiveImageComponent.test.tsx.snap +5 -0
- package/Components/VideoModal/ModalAnimation/AnimationComponent.tsx +6 -7
- package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +3 -2
- package/Components/VideoModal/ModalAnimation/utils.ts +2 -2
- package/Components/VideoModal/PlayerWrapper.tsx +35 -16
- package/Components/VideoModal/VideoModal.tsx +23 -14
- package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +1 -1
- package/Components/VideoModal/__tests__/__snapshots__/PlayerWrapper.test.tsx.snap +90 -0
- package/Components/VideoModal/hooks/utils/index.ts +0 -33
- package/Components/VideoModal/utils.ts +1 -1
- package/Contexts/ComponentsMapOffsetContext/index.tsx +46 -0
- package/Contexts/ScreenContext/index.tsx +2 -3
- package/Decorators/ZappPipesDataConnector/__tests__/Hero.js +1 -1
- package/Decorators/ZappPipesDataConnector/index.tsx +1 -31
- package/package.json +5 -5
- package/Components/Cell/CellWithFocusable.ios.tsx +0 -126
- package/Components/MasterCell/DefaultComponents/BorderContainerView/__tests__/index.test.tsx +0 -66
- package/Components/MasterCell/DefaultComponents/ImageBorderContainer/__tests__/index.test.ts +0 -93
- package/Components/Screen/hooks.ts +0 -56
- package/Components/VideoModal/OpaqueLayer.tsx +0 -33
- package/Components/VideoModal/hooks/__tests__/useDelayedPlayerDetails.test.ts +0 -89
- package/Components/VideoModal/hooks/index.ts +0 -7
- package/Components/VideoModal/hooks/useDelayedPlayerDetails.ts +0 -49
- package/Components/VideoModal/hooks/utils/__tests__/showDetails.test.ts +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { showDetails } from "..";
|
|
2
|
-
|
|
3
|
-
describe("showDetails", () => {
|
|
4
|
-
it("should return false if isPip is true", () => {
|
|
5
|
-
const result = showDetails({
|
|
6
|
-
isMobile: true,
|
|
7
|
-
isInline: true,
|
|
8
|
-
isDocked: false,
|
|
9
|
-
isPip: true,
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
expect(result).toBe(false);
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it("should return false if isDocked is true", () => {
|
|
16
|
-
const result = showDetails({
|
|
17
|
-
isMobile: true,
|
|
18
|
-
isInline: true,
|
|
19
|
-
isDocked: true,
|
|
20
|
-
isPip: false,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
expect(result).toBe(false);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
it("should return true if isMobile is true and isInline is true", () => {
|
|
27
|
-
const result = showDetails({
|
|
28
|
-
isMobile: true,
|
|
29
|
-
isInline: true,
|
|
30
|
-
isDocked: false,
|
|
31
|
-
isPip: false,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
expect(result).toBe(true);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it("should return false if isMobile is true and isInline is false", () => {
|
|
38
|
-
const result = showDetails({
|
|
39
|
-
isMobile: true,
|
|
40
|
-
isInline: false,
|
|
41
|
-
isDocked: false,
|
|
42
|
-
isPip: false,
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
expect(result).toBe(false);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it("should return true if isMobile is false", () => {
|
|
49
|
-
const result = showDetails({
|
|
50
|
-
isMobile: false,
|
|
51
|
-
isInline: true,
|
|
52
|
-
isDocked: false,
|
|
53
|
-
isPip: false,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
expect(result).toBe(true);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
it("should return true if isMobile is false and isInline is false", () => {
|
|
60
|
-
const result = showDetails({
|
|
61
|
-
isMobile: false,
|
|
62
|
-
isInline: false,
|
|
63
|
-
isDocked: false,
|
|
64
|
-
isPip: false,
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
expect(result).toBe(true);
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
it("should return false if all properties are false except isMobile", () => {
|
|
71
|
-
const result = showDetails({
|
|
72
|
-
isMobile: true,
|
|
73
|
-
isInline: false,
|
|
74
|
-
isDocked: false,
|
|
75
|
-
isPip: false,
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
expect(result).toBe(false);
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it("should return true if all properties are false except isInline", () => {
|
|
82
|
-
const result = showDetails({
|
|
83
|
-
isMobile: false,
|
|
84
|
-
isInline: true,
|
|
85
|
-
isDocked: false,
|
|
86
|
-
isPip: false,
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
expect(result).toBe(true);
|
|
90
|
-
});
|
|
91
|
-
});
|