@applicaster/zapp-react-native-ui-components 13.0.0-alpha.3592223128 → 13.0.0-alpha.4585770583
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/Cell/Cell.tsx
CHANGED
|
@@ -148,6 +148,10 @@ export class CellComponent extends React.Component<Props, State> {
|
|
|
148
148
|
shouldScrollVertically?.(mouse, focusable, id, title)
|
|
149
149
|
) {
|
|
150
150
|
this.scrollVertically(focusable);
|
|
151
|
+
|
|
152
|
+
const accessibilityManager = AccessibilityManager.getInstance();
|
|
153
|
+
// Text from DSP should be localized already
|
|
154
|
+
accessibilityManager.readText({ text: title });
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
157
|
}
|
|
@@ -11,6 +11,9 @@ import { isTV } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
|
11
11
|
import { useIsTablet } from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
12
12
|
import { PlayerDetails } from "./PlayerDetails";
|
|
13
13
|
import { playerDimesionsHack } from "./utils";
|
|
14
|
+
import { PathnameContext } from "../../Contexts/PathnameContext";
|
|
15
|
+
import { ScreenContextProvider } from "../../Contexts/ScreenContext";
|
|
16
|
+
import { ROUTE_TYPES } from "@applicaster/zapp-react-native-utils/navigationUtils/routeTypes";
|
|
14
17
|
|
|
15
18
|
import {
|
|
16
19
|
AnimatedScrollModal,
|
|
@@ -133,15 +136,7 @@ const getStyles = (baseStyle, isMobile, isPortrait) => {
|
|
|
133
136
|
return baseStyle;
|
|
134
137
|
};
|
|
135
138
|
|
|
136
|
-
const showDetails = (
|
|
137
|
-
isMobile: boolean,
|
|
138
|
-
docked: boolean,
|
|
139
|
-
isInlineModal
|
|
140
|
-
): boolean => {
|
|
141
|
-
if (!isInlineModal) {
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
|
|
139
|
+
const showDetails = (isMobile: boolean, docked: boolean): boolean => {
|
|
145
140
|
// for mobile we always show details. Mounting of it very heavy operation.
|
|
146
141
|
if (isMobile) {
|
|
147
142
|
return true;
|
|
@@ -214,62 +209,72 @@ const PlayerWrapperComponent = (props: Props) => {
|
|
|
214
209
|
[containerDimensions, playerDimesionsHack]
|
|
215
210
|
);
|
|
216
211
|
|
|
212
|
+
const pathname = `${ROUTE_TYPES.VIDEO_MODAL}/${entry?.id}`;
|
|
213
|
+
|
|
217
214
|
return (
|
|
218
|
-
<
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
style,
|
|
223
|
-
playerDimesionsHack,
|
|
224
|
-
]}
|
|
225
|
-
>
|
|
226
|
-
<AnimationComponent
|
|
227
|
-
animationType={ComponentAnimationType.moveUpComponent}
|
|
228
|
-
additionalData={{ saveArea: true }}
|
|
229
|
-
style={[directionStyles(isTabletLandscape), defaultStyles.flex]}
|
|
230
|
-
>
|
|
231
|
-
<View
|
|
232
|
-
testID={`${entry?.id}-player-container`}
|
|
215
|
+
<PathnameContext.Provider value={pathname}>
|
|
216
|
+
<ScreenContextProvider pathname={pathname}>
|
|
217
|
+
<WrapperView
|
|
218
|
+
edges={getEdges(isTablet, isInlineModal) as readonly Edge[]}
|
|
233
219
|
style={[
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
containerStyle,
|
|
220
|
+
safeAreaStyles(configuration, isTablet),
|
|
221
|
+
style,
|
|
237
222
|
playerDimesionsHack,
|
|
238
223
|
]}
|
|
239
224
|
>
|
|
240
225
|
<AnimationComponent
|
|
241
226
|
animationType={ComponentAnimationType.moveUpComponent}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
useLayoutMeasure: isTabletLandscape,
|
|
245
|
-
disableAnimatedComponent: !isTabletLandscape,
|
|
246
|
-
resetAnimationValue: isTabletLandscape && docked,
|
|
247
|
-
}}
|
|
227
|
+
additionalData={{ saveArea: true }}
|
|
228
|
+
style={[directionStyles(isTabletLandscape), defaultStyles.flex]}
|
|
248
229
|
>
|
|
249
|
-
<
|
|
250
|
-
{
|
|
251
|
-
|
|
230
|
+
<PathnameContext.Provider value={pathname}>
|
|
231
|
+
<ScreenContextProvider pathname={pathname}>
|
|
232
|
+
<View
|
|
233
|
+
testID={`${entry?.id}-player-container`}
|
|
234
|
+
style={[
|
|
235
|
+
defaultStyles.playerContainer,
|
|
236
|
+
containerDimensions,
|
|
237
|
+
containerStyle,
|
|
238
|
+
playerDimesionsHack,
|
|
239
|
+
]}
|
|
240
|
+
>
|
|
241
|
+
<AnimationComponent
|
|
242
|
+
animationType={ComponentAnimationType.moveUpComponent}
|
|
243
|
+
style={isTabletLandscape ? defaultStyles.flex : undefined}
|
|
244
|
+
additionalData={{
|
|
245
|
+
useLayoutMeasure: isTabletLandscape,
|
|
246
|
+
disableAnimatedComponent: !isTabletLandscape,
|
|
247
|
+
resetAnimationValue: isTabletLandscape && docked,
|
|
248
|
+
}}
|
|
249
|
+
>
|
|
250
|
+
<AnimatedVideoPlayerComponent>
|
|
251
|
+
{children(childrenStyles)}
|
|
252
|
+
</AnimatedVideoPlayerComponent>
|
|
253
|
+
</AnimationComponent>
|
|
254
|
+
</View>
|
|
255
|
+
|
|
256
|
+
<AnimatedScrollModal>
|
|
257
|
+
{showDetails(!isTablet, docked) && (
|
|
258
|
+
<AnimationComponent
|
|
259
|
+
animationType={ComponentAnimationType.componentFade}
|
|
260
|
+
style={defaultStyles.flex}
|
|
261
|
+
>
|
|
262
|
+
<PlayerDetails
|
|
263
|
+
configuration={configuration}
|
|
264
|
+
style={defaultStyles.playerDetails}
|
|
265
|
+
entry={entry}
|
|
266
|
+
isTabletLandscape={isTabletLandscape}
|
|
267
|
+
isTablet={isTablet}
|
|
268
|
+
/>
|
|
269
|
+
</AnimationComponent>
|
|
270
|
+
)}
|
|
271
|
+
</AnimatedScrollModal>
|
|
272
|
+
</ScreenContextProvider>
|
|
273
|
+
</PathnameContext.Provider>
|
|
252
274
|
</AnimationComponent>
|
|
253
|
-
</
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
{showDetails(!isTablet, docked, isInlineModal) && (
|
|
257
|
-
<AnimationComponent
|
|
258
|
-
animationType={ComponentAnimationType.componentFade}
|
|
259
|
-
style={defaultStyles.flex}
|
|
260
|
-
>
|
|
261
|
-
<PlayerDetails
|
|
262
|
-
configuration={configuration}
|
|
263
|
-
style={defaultStyles.playerDetails}
|
|
264
|
-
entry={entry}
|
|
265
|
-
isTabletLandscape={isTabletLandscape}
|
|
266
|
-
isTablet={isTablet}
|
|
267
|
-
/>
|
|
268
|
-
</AnimationComponent>
|
|
269
|
-
)}
|
|
270
|
-
</AnimatedScrollModal>
|
|
271
|
-
</AnimationComponent>
|
|
272
|
-
</WrapperView>
|
|
275
|
+
</WrapperView>
|
|
276
|
+
</ScreenContextProvider>
|
|
277
|
+
</PathnameContext.Provider>
|
|
273
278
|
);
|
|
274
279
|
};
|
|
275
280
|
|
|
@@ -405,6 +405,36 @@ exports[`PlayerWrapper renders properly 1`] = `
|
|
|
405
405
|
}
|
|
406
406
|
testID="test-player-container"
|
|
407
407
|
/>
|
|
408
|
+
<View
|
|
409
|
+
animationType="componentFade"
|
|
410
|
+
style={
|
|
411
|
+
Object {
|
|
412
|
+
"flex": 1,
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
>
|
|
416
|
+
<View
|
|
417
|
+
configuration={
|
|
418
|
+
Object {
|
|
419
|
+
"tablet_landscape_player_container_background_color": "red",
|
|
420
|
+
"tablet_landscape_sidebar_width": "35%",
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
entry={
|
|
424
|
+
Object {
|
|
425
|
+
"id": "test",
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
isTablet={false}
|
|
429
|
+
isTabletLandscape={false}
|
|
430
|
+
style={
|
|
431
|
+
Object {
|
|
432
|
+
"flex": 1,
|
|
433
|
+
"paddingTop": 20,
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/>
|
|
437
|
+
</View>
|
|
408
438
|
</View>
|
|
409
439
|
</RNCSafeAreaView>
|
|
410
440
|
</RNCSafeAreaProvider>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.4585770583",
|
|
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": "13.0.0-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.
|
|
39
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.
|
|
40
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.
|
|
37
|
+
"@applicaster/applicaster-types": "13.0.0-alpha.4585770583",
|
|
38
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.4585770583",
|
|
39
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.4585770583",
|
|
40
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.4585770583",
|
|
41
41
|
"promise": "^8.3.0",
|
|
42
42
|
"react-router-native": "^5.1.2",
|
|
43
43
|
"url": "^0.11.0",
|