@applicaster/zapp-react-native-ui-components 12.0.12-rc.0 → 12.0.12-rc.2
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.
|
@@ -24,6 +24,7 @@ type Props = {
|
|
|
24
24
|
audio_player_rtl?: boolean;
|
|
25
25
|
magic_background?: boolean;
|
|
26
26
|
audio_player_background_image_query?: string;
|
|
27
|
+
audio_player_background_image_default_color?: string;
|
|
27
28
|
start_time?: string;
|
|
28
29
|
end_time?: string;
|
|
29
30
|
};
|
|
@@ -35,6 +36,7 @@ type Props = {
|
|
|
35
36
|
audio_player_rtl?: string;
|
|
36
37
|
magic_background?: string;
|
|
37
38
|
audio_player_background_image_query?: string;
|
|
39
|
+
audio_player_background_image_default_color?: string;
|
|
38
40
|
audio_player_background_image?: string;
|
|
39
41
|
audio_player_artwork_aspect_ratio?: string;
|
|
40
42
|
lg_tv_audio_player_title_font_family?: string;
|
|
@@ -80,6 +82,10 @@ export function AudioPlayer(props: Props) {
|
|
|
80
82
|
"audio_player_background_image_query"
|
|
81
83
|
);
|
|
82
84
|
|
|
85
|
+
const audioPlayerBackgroundImageDefaultColor = getProp(
|
|
86
|
+
"audio_player_background_image_default_color"
|
|
87
|
+
);
|
|
88
|
+
|
|
83
89
|
const isRTL = rtlFlag === "1" || rtlFlag === "true" || rtlFlag === true;
|
|
84
90
|
|
|
85
91
|
const titleFontFamily = getProp(
|
|
@@ -158,6 +164,7 @@ export function AudioPlayer(props: Props) {
|
|
|
158
164
|
channelIcon,
|
|
159
165
|
magicBackground,
|
|
160
166
|
audioPlayerBackgroundImageQuery,
|
|
167
|
+
audioPlayerBackgroundImageDefaultColor,
|
|
161
168
|
};
|
|
162
169
|
}, [getProp]);
|
|
163
170
|
|
|
@@ -5,6 +5,7 @@ exports[`<AudioPlayer /> renders correctly 1`] = `
|
|
|
5
5
|
config={
|
|
6
6
|
Object {
|
|
7
7
|
"artworkAspectRatio": "1:1",
|
|
8
|
+
"audioPlayerBackgroundImageDefaultColor": "",
|
|
8
9
|
"audioPlayerBackgroundImageQuery": "",
|
|
9
10
|
"backgroundColor": "black",
|
|
10
11
|
"backgroundImage": "https://example.com",
|
|
@@ -27,6 +28,7 @@ exports[`<AudioPlayer /> renders correctly 1`] = `
|
|
|
27
28
|
config={
|
|
28
29
|
Object {
|
|
29
30
|
"artworkAspectRatio": "1:1",
|
|
31
|
+
"audioPlayerBackgroundImageDefaultColor": "",
|
|
30
32
|
"audioPlayerBackgroundImageQuery": "",
|
|
31
33
|
"backgroundColor": "black",
|
|
32
34
|
"backgroundImage": "https://example.com",
|
|
@@ -49,6 +51,7 @@ exports[`<AudioPlayer /> renders correctly 1`] = `
|
|
|
49
51
|
config={
|
|
50
52
|
Object {
|
|
51
53
|
"artworkAspectRatio": "1:1",
|
|
54
|
+
"audioPlayerBackgroundImageDefaultColor": "",
|
|
52
55
|
"audioPlayerBackgroundImageQuery": "",
|
|
53
56
|
"backgroundColor": "black",
|
|
54
57
|
"backgroundImage": "https://example.com",
|
|
@@ -71,6 +74,7 @@ exports[`<AudioPlayer /> renders correctly 1`] = `
|
|
|
71
74
|
config={
|
|
72
75
|
Object {
|
|
73
76
|
"artworkAspectRatio": "1:1",
|
|
77
|
+
"audioPlayerBackgroundImageDefaultColor": "",
|
|
74
78
|
"audioPlayerBackgroundImageQuery": "",
|
|
75
79
|
"backgroundColor": "black",
|
|
76
80
|
"backgroundImage": "https://example.com",
|
|
@@ -100,6 +104,7 @@ exports[`<AudioPlayer /> renders correctly 1`] = `
|
|
|
100
104
|
config={
|
|
101
105
|
Object {
|
|
102
106
|
"artworkAspectRatio": "1:1",
|
|
107
|
+
"audioPlayerBackgroundImageDefaultColor": "",
|
|
103
108
|
"audioPlayerBackgroundImageQuery": "",
|
|
104
109
|
"backgroundColor": "black",
|
|
105
110
|
"backgroundImage": "https://example.com",
|
|
@@ -228,6 +228,8 @@ export const AnimationView = ({
|
|
|
228
228
|
isAudioItem,
|
|
229
229
|
moveUpValue,
|
|
230
230
|
moveComponentHorizontalValue,
|
|
231
|
+
isRTL,
|
|
232
|
+
inlineAudioPlayer,
|
|
231
233
|
]
|
|
232
234
|
);
|
|
233
235
|
|
|
@@ -278,6 +280,11 @@ export const AnimationView = ({
|
|
|
278
280
|
moveUpValue,
|
|
279
281
|
moveComponentHorizontalValue,
|
|
280
282
|
videoModalMode,
|
|
283
|
+
isAudioItem,
|
|
284
|
+
isTablet,
|
|
285
|
+
isTabletLandscape,
|
|
286
|
+
isRTL,
|
|
287
|
+
inlineAudioPlayer,
|
|
281
288
|
]
|
|
282
289
|
);
|
|
283
290
|
|
|
@@ -306,7 +313,7 @@ export const AnimationView = ({
|
|
|
306
313
|
}
|
|
307
314
|
|
|
308
315
|
if (
|
|
309
|
-
videoModalMode === "MAXIMIZED" &&
|
|
316
|
+
(videoModalMode === "MAXIMIZED" || videoModalMode === "MINIMIZED") &&
|
|
310
317
|
defaultValue.x !== screenWidth &&
|
|
311
318
|
width &&
|
|
312
319
|
height
|
|
@@ -332,7 +339,13 @@ export const AnimationView = ({
|
|
|
332
339
|
animatedValue.setValue(value);
|
|
333
340
|
}
|
|
334
341
|
}
|
|
335
|
-
}, [
|
|
342
|
+
}, [
|
|
343
|
+
animatedValue,
|
|
344
|
+
animationType,
|
|
345
|
+
getAnimationValue,
|
|
346
|
+
playerAnimationState,
|
|
347
|
+
videoModalState,
|
|
348
|
+
]);
|
|
336
349
|
|
|
337
350
|
React.useEffect(() => {
|
|
338
351
|
if (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "12.0.12-rc.
|
|
3
|
+
"version": "12.0.12-rc.2",
|
|
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.12-rc.
|
|
38
|
-
"@applicaster/zapp-react-native-bridge": "12.0.12-rc.
|
|
39
|
-
"@applicaster/zapp-react-native-redux": "12.0.12-rc.
|
|
40
|
-
"@applicaster/zapp-react-native-utils": "12.0.12-rc.
|
|
37
|
+
"@applicaster/applicaster-types": "12.0.12-rc.2",
|
|
38
|
+
"@applicaster/zapp-react-native-bridge": "12.0.12-rc.2",
|
|
39
|
+
"@applicaster/zapp-react-native-redux": "12.0.12-rc.2",
|
|
40
|
+
"@applicaster/zapp-react-native-utils": "12.0.12-rc.2",
|
|
41
41
|
"promise": "^8.3.0",
|
|
42
42
|
"react-router-native": "^5.1.2",
|
|
43
43
|
"url": "^0.11.0",
|