@applicaster/zapp-react-native-ui-components 14.0.0-alpha.4009339136 → 14.0.0-alpha.4077517019
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/AudioPlayer/{tv/Artwork.tsx → Artwork.tsx} +2 -3
- package/Components/AudioPlayer/{tv/index.tsx → AudioPlayer.tsx} +58 -17
- package/Components/AudioPlayer/AudioPlayerLayout.tsx +202 -0
- package/Components/AudioPlayer/{tv/Channel.tsx → Channel.tsx} +7 -7
- package/Components/AudioPlayer/{tv/Runtime.tsx → Runtime.tsx} +1 -7
- package/Components/AudioPlayer/{tv/Summary.tsx → Summary.tsx} +2 -6
- package/Components/AudioPlayer/{tv/Title.tsx → Title.tsx} +2 -6
- package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/Runtime.test.js.snap +2 -2
- package/Components/AudioPlayer/{mobile/__tests__/__snapshots__/audioPlayerMobileLayout.test.js.snap → __tests__/__snapshots__/audioPlayer.test.js.snap} +8 -2
- package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayerLayout.test.js.snap +72 -0
- package/Components/AudioPlayer/__tests__/__snapshots__/channel.test.js.snap +28 -0
- package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/summary.test.js.snap +2 -1
- package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/title.test.js.snap +2 -1
- package/Components/AudioPlayer/{tv/__tests__ → __tests__}/audioPlayer.test.js +3 -7
- package/Components/AudioPlayer/__tests__/audioPlayerLayout.test.js +26 -0
- package/Components/AudioPlayer/{tv/helpers.tsx → helpers.tsx} +2 -1
- package/Components/AudioPlayer/index.ts +1 -0
- package/Components/MasterCell/index.tsx +1 -1
- package/Components/PlayerContainer/PlayerContainer.tsx +19 -7
- package/Components/PlayerImageBackground/index.tsx +1 -1
- package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +9 -1
- package/Components/VideoModal/PlayerDetails.tsx +24 -2
- package/Components/VideoModal/PlayerWrapper.tsx +26 -142
- package/Components/VideoModal/VideoModal.tsx +3 -17
- package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +1 -7
- package/Components/VideoModal/__tests__/__snapshots__/PlayerWrapper.test.tsx.snap +44 -240
- package/Components/VideoModal/hooks/index.ts +0 -2
- package/Components/VideoModal/utils.ts +6 -0
- package/package.json +5 -5
- package/Components/AudioPlayer/index.tsx +0 -15
- package/Components/AudioPlayer/mobile/Layout.tsx +0 -66
- package/Components/AudioPlayer/mobile/__tests__/audioPlayerMobileLayout.test.js +0 -18
- package/Components/AudioPlayer/mobile/index.tsx +0 -18
- package/Components/AudioPlayer/tv/Layout.tsx +0 -168
- package/Components/AudioPlayer/tv/__tests__/__snapshots__/audioPlayer.test.js.snap +0 -164
- package/Components/AudioPlayer/tv/__tests__/__snapshots__/channel.test.js.snap +0 -19
- package/Components/AudioPlayer/types.ts +0 -40
- package/Components/VideoModal/hooks/useBackgroundColor.ts +0 -10
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/Runtime.test.js +0 -0
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/artWork.test.js.snap +0 -0
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/artWork.test.js +0 -0
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/channel.test.js +0 -0
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/summary.test.js +0 -0
- /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/title.test.js +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<AudioPlayerTV /> renders correctly 1`] = `
|
|
4
|
-
<View
|
|
5
|
-
accessibilityIgnoresInvertColors={true}
|
|
6
|
-
>
|
|
7
|
-
<Image
|
|
8
|
-
resizeMode="cover"
|
|
9
|
-
source={
|
|
10
|
-
{
|
|
11
|
-
"uri": "https://example.com",
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
style={
|
|
15
|
-
[
|
|
16
|
-
{
|
|
17
|
-
"bottom": 0,
|
|
18
|
-
"left": 0,
|
|
19
|
-
"position": "absolute",
|
|
20
|
-
"right": 0,
|
|
21
|
-
"top": 0,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"height": undefined,
|
|
25
|
-
"width": undefined,
|
|
26
|
-
},
|
|
27
|
-
undefined,
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
/>
|
|
31
|
-
<View
|
|
32
|
-
style={
|
|
33
|
-
[
|
|
34
|
-
{
|
|
35
|
-
"backgroundColor": "transparent",
|
|
36
|
-
"overflow": "hidden",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"backgroundColor": undefined,
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
>
|
|
44
|
-
<View
|
|
45
|
-
style={
|
|
46
|
-
{
|
|
47
|
-
"marginHorizontal": 24,
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
>
|
|
51
|
-
<Image
|
|
52
|
-
fadeDuration={0}
|
|
53
|
-
resizeMode="cover"
|
|
54
|
-
source={
|
|
55
|
-
{
|
|
56
|
-
"uri": "artwork_url",
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
style={
|
|
60
|
-
[
|
|
61
|
-
{
|
|
62
|
-
"height": 400,
|
|
63
|
-
"width": 400,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"borderRadius": 0,
|
|
67
|
-
},
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
/>
|
|
71
|
-
</View>
|
|
72
|
-
<View>
|
|
73
|
-
<Image
|
|
74
|
-
fadeDuration={0}
|
|
75
|
-
source={
|
|
76
|
-
{
|
|
77
|
-
"uri": "https://example.com",
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
style={
|
|
81
|
-
{
|
|
82
|
-
"height": 72,
|
|
83
|
-
"marginBottom": 30,
|
|
84
|
-
"width": 128,
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/>
|
|
88
|
-
<View
|
|
89
|
-
style={
|
|
90
|
-
{
|
|
91
|
-
"marginBottom": 12,
|
|
92
|
-
"width": 600,
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
>
|
|
96
|
-
<Text
|
|
97
|
-
numberOfLines={3}
|
|
98
|
-
style={
|
|
99
|
-
{
|
|
100
|
-
"color": "white",
|
|
101
|
-
"fontFamily": null,
|
|
102
|
-
"fontSize": 38,
|
|
103
|
-
"fontWeight": "600",
|
|
104
|
-
"textAlign": "right",
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
>
|
|
108
|
-
tittle
|
|
109
|
-
</Text>
|
|
110
|
-
</View>
|
|
111
|
-
<View
|
|
112
|
-
style={
|
|
113
|
-
{
|
|
114
|
-
"marginBottom": 30,
|
|
115
|
-
"width": 600,
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
>
|
|
119
|
-
<Text
|
|
120
|
-
numberOfLines={3}
|
|
121
|
-
style={
|
|
122
|
-
{
|
|
123
|
-
"color": "white",
|
|
124
|
-
"fontFamily": null,
|
|
125
|
-
"fontSize": 20,
|
|
126
|
-
"fontWeight": "600",
|
|
127
|
-
"opacity": 0.8,
|
|
128
|
-
"textAlign": "right",
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
>
|
|
132
|
-
Summary
|
|
133
|
-
</Text>
|
|
134
|
-
</View>
|
|
135
|
-
<View
|
|
136
|
-
style={
|
|
137
|
-
{
|
|
138
|
-
"justifyContent": "flex-end",
|
|
139
|
-
"width": 600,
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
>
|
|
143
|
-
<Text
|
|
144
|
-
numberOfLines={1}
|
|
145
|
-
style={
|
|
146
|
-
{
|
|
147
|
-
"alignItems": "flex-start",
|
|
148
|
-
"color": "white",
|
|
149
|
-
"flexDirection": "row-reverse",
|
|
150
|
-
"fontFamily": null,
|
|
151
|
-
"fontSize": 20,
|
|
152
|
-
"justifyContent": "flex-end",
|
|
153
|
-
"opacity": 0.8,
|
|
154
|
-
"textAlign": "right",
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
>
|
|
158
|
-
10:10 - 11:11
|
|
159
|
-
</Text>
|
|
160
|
-
</View>
|
|
161
|
-
</View>
|
|
162
|
-
</View>
|
|
163
|
-
</View>
|
|
164
|
-
`;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`<Channel /> renders correctly 1`] = `
|
|
4
|
-
<Image
|
|
5
|
-
fadeDuration={0}
|
|
6
|
-
source={
|
|
7
|
-
{
|
|
8
|
-
"uri": "https://example.com",
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
style={
|
|
12
|
-
{
|
|
13
|
-
"height": 72,
|
|
14
|
-
"marginBottom": 30,
|
|
15
|
-
"width": 128,
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/>
|
|
19
|
-
`;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ViewStyle } from "react-native";
|
|
2
|
-
|
|
3
|
-
export type Props = {
|
|
4
|
-
audio_item: ZappEntry & {
|
|
5
|
-
extensions?: {
|
|
6
|
-
audio_player_artwork_aspect_ratio?: string;
|
|
7
|
-
audio_player_background_image?: string;
|
|
8
|
-
audio_player_background_color?: string;
|
|
9
|
-
audio_player_channel_icon?: string;
|
|
10
|
-
audio_player_title_color?: string;
|
|
11
|
-
audio_player_summary_color?: string;
|
|
12
|
-
audio_player_rtl?: boolean;
|
|
13
|
-
audio_player_background_image_default_color?: string;
|
|
14
|
-
start_time?: string;
|
|
15
|
-
end_time?: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
plugin_configuration: {
|
|
19
|
-
audio_player_background_color?: string;
|
|
20
|
-
audio_player_title_color?: string;
|
|
21
|
-
audio_player_summary_color?: string;
|
|
22
|
-
audio_player_rtl?: string;
|
|
23
|
-
audio_player_background_image_default_color?: string;
|
|
24
|
-
audio_player_background_image?: string;
|
|
25
|
-
audio_player_artwork_aspect_ratio?: string;
|
|
26
|
-
lg_tv_audio_player_title_font_family?: string;
|
|
27
|
-
lg_tv_audio_player_title_font_size?: number;
|
|
28
|
-
lg_tv_audio_player_summary_font_family?: string;
|
|
29
|
-
lg_tv_audio_player_summary_font_size?: number;
|
|
30
|
-
samsung_tv_audio_player_title_font_family?: string;
|
|
31
|
-
samsung_tv_audio_player_title_font_size?: number;
|
|
32
|
-
samsung_tv_audio_player_summary_font_family?: string;
|
|
33
|
-
samsung_tv_audio_player_summary_font_size?: number;
|
|
34
|
-
tv_os_audio_player_title_font_family?: string;
|
|
35
|
-
tv_os_audio_player_title_font_size?: number;
|
|
36
|
-
tv_os_audio_player_summary_font_family?: string;
|
|
37
|
-
tv_os_audio_player_summary_font_size?: number;
|
|
38
|
-
};
|
|
39
|
-
style?: ViewStyle;
|
|
40
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
|
|
2
|
-
import { useConfiguration } from "../utils";
|
|
3
|
-
|
|
4
|
-
export const useBackgroundColor = (): string => {
|
|
5
|
-
const { modal_background_color: modalBackgroundColor } = useConfiguration();
|
|
6
|
-
|
|
7
|
-
const theme = useTheme<BaseThemePropertiesMobile>();
|
|
8
|
-
|
|
9
|
-
return modalBackgroundColor || theme?.status_background_color;
|
|
10
|
-
};
|
|
File without changes
|
/package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/artWork.test.js.snap
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|