@applicaster/zapp-react-native-ui-components 12.0.0-rc.104 → 12.0.0-rc.106

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.
@@ -76,8 +76,8 @@ export function masterCellBuilder({
76
76
  const selectedState = screen?.selectedEntry;
77
77
 
78
78
  const entryIsSelected = React.useMemo(
79
- () => selectedState?.id === item?.id,
80
- [selectedState?.id]
79
+ () => !!(selectedState?.id && selectedState?.id === item?.id),
80
+ [selectedState?.id, item?.id]
81
81
  );
82
82
 
83
83
  const elements = React.useMemo(
@@ -349,7 +349,12 @@ export const AnimatedScrollModalComponent = ({ children }: Props) => {
349
349
  };
350
350
 
351
351
  export const AnimatedScrollModal = ({ children }: Props) => {
352
- const Component = !isTV() ? AnimatedScrollModalComponent : React.Fragment;
352
+ const {
353
+ videoModalState: { visible },
354
+ } = useNavigation();
355
+
356
+ const Component =
357
+ !isTV() && visible ? AnimatedScrollModalComponent : React.Fragment;
353
358
 
354
359
  return <Component>{children}</Component>;
355
360
  };
@@ -155,7 +155,11 @@ export const AnimatedVideoPlayer = ({ children }: Props) => {
155
155
  };
156
156
 
157
157
  export const AnimatedVideoPlayerComponent = ({ children }: Props) => {
158
- const Component = !isTV() ? AnimatedVideoPlayer : React.Fragment;
158
+ const {
159
+ videoModalState: { visible },
160
+ } = useNavigation();
161
+
162
+ const Component = !isTV() && visible ? AnimatedVideoPlayer : React.Fragment;
159
163
 
160
164
  return <Component>{children}</Component>;
161
165
  };
@@ -72,12 +72,34 @@ exports[`PlayerWrapper renders inline 1`] = `
72
72
  testID="test-player-container"
73
73
  />
74
74
  <View
75
+ animationType="componentFade"
75
76
  style={
76
77
  Object {
77
78
  "flex": 1,
78
79
  }
79
80
  }
80
- />
81
+ >
82
+ <View
83
+ configuration={
84
+ Object {
85
+ "tablet_landscape_player_container_background_color": "red",
86
+ "tablet_landscape_sidebar_width": "35%",
87
+ }
88
+ }
89
+ entry={
90
+ Object {
91
+ "id": "test",
92
+ }
93
+ }
94
+ isTabletLandscape={false}
95
+ style={
96
+ Object {
97
+ "flex": 1,
98
+ "paddingTop": 20,
99
+ }
100
+ }
101
+ />
102
+ </View>
81
103
  </View>
82
104
  </RNCSafeAreaView>
83
105
  </RNCSafeAreaProvider>
@@ -158,6 +180,7 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
158
180
  style={
159
181
  Object {
160
182
  "flex": 1,
183
+ "paddingTop": 20,
161
184
  }
162
185
  }
163
186
  />
@@ -254,12 +277,34 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
254
277
  />
255
278
  </View>
256
279
  <View
280
+ animationType="componentFade"
257
281
  style={
258
282
  Object {
259
283
  "flex": 1,
260
284
  }
261
285
  }
262
- />
286
+ >
287
+ <View
288
+ configuration={
289
+ Object {
290
+ "tablet_landscape_player_container_background_color": "red",
291
+ "tablet_landscape_sidebar_width": "35%",
292
+ }
293
+ }
294
+ entry={
295
+ Object {
296
+ "id": "test",
297
+ }
298
+ }
299
+ isTabletLandscape={true}
300
+ style={
301
+ Object {
302
+ "flex": 1,
303
+ "paddingTop": 20,
304
+ }
305
+ }
306
+ />
307
+ </View>
263
308
  </View>
264
309
  </RNCSafeAreaView>
265
310
  </RNCSafeAreaProvider>
@@ -340,6 +385,7 @@ exports[`PlayerWrapper renders properly 1`] = `
340
385
  style={
341
386
  Object {
342
387
  "flex": 1,
388
+ "paddingTop": 20,
343
389
  }
344
390
  }
345
391
  />
@@ -16,9 +16,9 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
16
16
  store={null}
17
17
  style={
18
18
  Object {
19
- "backgroundColor": "#CCC",
19
+ "backgroundColor": "transparent",
20
20
  "margin": 12,
21
- "opacity": 0.6,
21
+ "opacity": 1,
22
22
  "width": 169,
23
23
  }
24
24
  }
@@ -105,7 +105,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
105
105
  store={null}
106
106
  style={
107
107
  Object {
108
- "backgroundColor": "rgba(252,70,27,1.0)",
108
+ "backgroundColor": "rgba(47,47,47,1.0)",
109
109
  "borderRadius": 4,
110
110
  "flex": 1,
111
111
  "overflow": "hidden",
@@ -238,7 +238,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
238
238
  store={null}
239
239
  style={
240
240
  Object {
241
- "backgroundColor": "rgba(252,70,27,1.0)",
241
+ "backgroundColor": "rgba(47,47,47,1.0)",
242
242
  "borderRadius": 4,
243
243
  "flex": 1,
244
244
  "overflow": "hidden",
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.104",
3
+ "version": "12.0.0-rc.106",
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.104",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.104",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.104",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.104",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.106",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.106",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.106",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.106",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",