@applicaster/zapp-react-native-ui-components 13.0.0-alpha.6525006318 → 13.0.0-alpha.6944415045
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/AppContainer/__tests__/__snapshots__/AppContainer.test.js.snap +1 -1
- package/Components/AudioPlayer/__tests__/__snapshots__/Runtime.test.js.snap +4 -4
- package/Components/AudioPlayer/__tests__/__snapshots__/artWork.test.js.snap +3 -3
- package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayer.test.js.snap +6 -6
- package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayerLayout.test.js.snap +7 -7
- package/Components/AudioPlayer/__tests__/__snapshots__/channel.test.js.snap +3 -3
- package/Components/AudioPlayer/__tests__/__snapshots__/summary.test.js.snap +2 -2
- package/Components/AudioPlayer/__tests__/__snapshots__/title.test.js.snap +2 -2
- package/Components/BaseFocusable/index.tsx +65 -28
- package/Components/Cell/Cell.tsx +11 -9
- package/Components/Cell/CellWithFocusable.tsx +1 -1
- package/Components/Cell/TvOSCellComponent.tsx +23 -30
- package/Components/Cell/index.js +3 -1
- package/Components/CellRendererResolver/__tests__/__snapshots__/cellRendererResolver.test.js.snap +20 -20
- package/Components/CellRendererResolver/__tests__/cellRendererResolver.test.js +5 -3
- package/Components/ComponentResolver/__tests__/__snapshots__/componentResolver.test.js.snap +5 -5
- package/Components/ComponentResolver/__tests__/componentResolver.test.js +11 -9
- package/Components/DisplayState/__tests__/__snapshots__/displayState.test.js.snap +2 -2
- package/Components/Focusable/Focusable.tsx +0 -54
- package/Components/Focusable/FocusableTvOS.tsx +6 -2
- package/Components/FocusableList/index.tsx +25 -10
- package/Components/FocusableScrollView/index.tsx +39 -12
- package/Components/GeneralContentScreen/utils/__tests__/useCurationAPI.test.js +76 -7
- package/Components/GeneralContentScreen/utils/useCurationAPI.ts +53 -9
- package/Components/Layout/TV/NavBarContainer.tsx +8 -7
- package/Components/Layout/TV/__tests__/ScreenContainer.test.tsx +1 -0
- package/Components/Layout/TV/__tests__/__snapshots__/LayoutContainer.test.tsx.snap +1 -1
- package/Components/Layout/TV/__tests__/__snapshots__/NavBarContainer.test.tsx.snap +3 -3
- package/Components/Layout/TV/__tests__/__snapshots__/ScreenContainer.test.tsx.snap +9 -9
- package/Components/Layout/TV/__tests__/__snapshots__/index.test.tsx.snap +1 -1
- package/Components/Layout/TV/__tests__/index.test.tsx +7 -3
- package/Components/MasterCell/DefaultComponents/Image/Image.ios.tsx +1 -1
- package/Components/MasterCell/DefaultComponents/SecondaryImage/__tests__/__snapshots__/Image.test.tsx.snap +3 -3
- package/Components/MasterCell/SharedUI/CollapsibleTextContainer/__tests__/__snapshots__/index.test.tsx.snap +1 -1
- package/Components/MasterCell/__tests__/__snapshots__/dataAdapter.test.js.snap +180 -180
- package/Components/MasterCell/__tests__/__snapshots__/elementMapper.test.js.snap +7 -7
- package/Components/MasterCell/__tests__/__snapshots__/masterCell.test.js.snap +34 -34
- package/Components/MasterCell/hooks/useAsyncRendering/index.ts +2 -2
- package/Components/NativeFocusables/{index.js → index.ts} +4 -2
- package/Components/OfflineHandler/__tests__/__snapshots__/index.test.tsx.snap +7 -7
- package/Components/OfflineHandler/__tests__/index.test.tsx +28 -25
- package/Components/PlayerContainer/PlayerContainer.tsx +5 -11
- package/Components/PlayerContainer/PlayerContainerContext.tsx +9 -0
- package/Components/River/RefreshControl.tsx +1 -1
- package/Components/River/TV/index.tsx +6 -1
- package/Components/River/__tests__/__snapshots__/componentsMap.test.js.snap +17 -17
- package/Components/River/__tests__/__snapshots__/river.test.js.snap +12 -12
- package/Components/River/__tests__/componentsMap.test.js +47 -12
- package/Components/RouteManager/__tests__/__snapshots__/routeManager.test.js.snap +1 -1
- package/Components/RouteManager/__tests__/__snapshots__/testId.test.js.snap +1 -1
- package/Components/Screen/__tests__/Screen.test.tsx +41 -27
- package/Components/Screen/__tests__/__snapshots__/Screen.test.tsx.snap +4 -4
- package/Components/ScreenResolver/__tests__/__snapshots__/screenResolver.test.js.snap +2 -2
- package/Components/ScreenResolver/__tests__/screenResolver.test.js +31 -27
- package/Components/Tabs/Tab.tsx +1 -0
- package/Components/TextInputTv/__tests__/TextInputTv.test.js +42 -42
- package/Components/TextInputTv/__tests__/__snapshots__/TextInputTv.test.js.snap +7 -0
- package/Components/TextInputTv/index.tsx +2 -2
- package/Components/Touchable/__tests__/__snapshots__/touchable.test.tsx.snap +2 -2
- package/Components/Transitioner/__tests__/__snapshots__/AnimationManager.test.js.snap +26 -26
- package/Components/Transitioner/__tests__/__snapshots__/Scene.test.js.snap +9 -9
- package/Components/Transitioner/__tests__/__snapshots__/config.test.js.snap +20 -20
- package/Components/Transitioner/__tests__/__snapshots__/transitioner.test.js.snap +2 -2
- package/Components/VideoLive/__tests__/PlayerLiveImageComponent.test.tsx +12 -7
- package/Components/VideoLive/__tests__/__snapshots__/PlayerLiveImageComponent.test.tsx.snap +6 -6
- package/Components/VideoModal/ModalAnimation/AnimatedScrollModal.tsx +5 -1
- package/Components/VideoModal/ModalAnimation/AnimatedVideoPlayerComponent.tsx +5 -1
- package/Components/VideoModal/ModalAnimation/AnimationComponent.tsx +1 -1
- package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +4 -10
- package/Components/VideoModal/ModalAnimation/index.ts +2 -1
- package/Components/VideoModal/ModalAnimation/useModalAnimationContext.ts +6 -0
- package/Components/VideoModal/__tests__/PlayerDetails.test.tsx +5 -2
- package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +12 -9
- package/Components/VideoModal/__tests__/__snapshots__/PlayerDetails.test.tsx.snap +4 -4
- package/Components/VideoModal/__tests__/__snapshots__/PlayerWrapper.test.tsx.snap +78 -78
- package/Components/VideoModal/utils.ts +2 -4
- package/Components/Viewport/ViewportAware/__tests__/__snapshots__/viewportAware.test.js.snap +2 -2
- package/Components/Viewport/ViewportTracker/__tests__/__snapshots__/viewportTracker.test.js.snap +1 -1
- package/Components/ZappFrameworkComponents/BarView/BarView.tsx +1 -0
- package/Components/ZappUIComponent/__tests__/__snapshots__/ZappUIComponent.test.js.snap +11 -11
- package/Components/default-cell-renderer/__tests__/__snapshots__/defaultCellRenderer.test.tsx.snap +30 -30
- package/Contexts/ComponentsMapOffsetContext/index.tsx +46 -0
- package/Contexts/ConfigutaionContext/__tests__/__snapshots__/ConfigurationProvider.test.tsx.snap +1 -1
- package/Contexts/FocusableGroupContext/withFocusableContext.tsx +18 -11
- package/Decorators/Analytics/{index.js → index.tsx} +11 -11
- package/Decorators/Navigator/__tests__/__snapshots__/navigator.test.js.snap +2 -2
- package/Decorators/RiverFeedLoader/__tests__/__snapshots__/riverFeedLoader.test.tsx.snap +77 -77
- package/Decorators/RiverFeedLoader/__tests__/riverFeedLoader.test.tsx +34 -39
- package/Decorators/RiverFeedLoader/__tests__/utils.test.ts +0 -9
- package/Decorators/RiverFeedLoader/index.tsx +1 -1
- package/Decorators/RiverFeedLoader/utils/getDatasourceUrl.ts +39 -0
- package/Decorators/RiverFeedLoader/utils/index.ts +29 -0
- package/Decorators/RiverFeedLoader/utils/usePipesContexts.ts +40 -0
- package/Decorators/RiverResolver/__tests__/__snapshots__/riverResolver.test.tsx.snap +5 -5
- package/Decorators/RiverResolver/__tests__/riverResolver.test.tsx +16 -10
- package/Decorators/ZappPipesDataConnector/index.tsx +1 -1
- package/package.json +12 -6
- package/Decorators/RiverFeedLoader/utils.ts +0 -100
|
@@ -4,8 +4,8 @@ exports[`PlayerWrapper renders inline 1`] = `
|
|
|
4
4
|
<RNCSafeAreaProvider
|
|
5
5
|
onInsetsChange={[Function]}
|
|
6
6
|
style={
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
[
|
|
8
|
+
{
|
|
9
9
|
"flex": 1,
|
|
10
10
|
},
|
|
11
11
|
undefined,
|
|
@@ -14,7 +14,7 @@ exports[`PlayerWrapper renders inline 1`] = `
|
|
|
14
14
|
>
|
|
15
15
|
<RNCSafeAreaView
|
|
16
16
|
edges={
|
|
17
|
-
|
|
17
|
+
{
|
|
18
18
|
"bottom": "off",
|
|
19
19
|
"left": "off",
|
|
20
20
|
"right": "off",
|
|
@@ -22,31 +22,31 @@ exports[`PlayerWrapper renders inline 1`] = `
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
style={
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
27
|
"backgroundColor": "transparent",
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
{
|
|
30
30
|
"height": 800,
|
|
31
31
|
"width": 300,
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
{},
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
>
|
|
37
37
|
<View
|
|
38
38
|
additionalData={
|
|
39
|
-
|
|
39
|
+
{
|
|
40
40
|
"saveArea": true,
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
animationType="moveUpComponent"
|
|
44
44
|
style={
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
[
|
|
46
|
+
{
|
|
47
47
|
"flexDirection": "column",
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
{
|
|
50
50
|
"flex": 1,
|
|
51
51
|
},
|
|
52
52
|
]
|
|
@@ -54,19 +54,19 @@ exports[`PlayerWrapper renders inline 1`] = `
|
|
|
54
54
|
>
|
|
55
55
|
<View
|
|
56
56
|
style={
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
59
|
"alignSelf": "center",
|
|
60
60
|
"position": "relative",
|
|
61
61
|
"zIndex": 200,
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
{
|
|
64
64
|
"aspectRatio": 1.7777777777777777,
|
|
65
65
|
"height": undefined,
|
|
66
66
|
"width": "100%",
|
|
67
67
|
},
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
{},
|
|
69
|
+
{},
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
testID="test-player-container"
|
|
@@ -74,27 +74,27 @@ exports[`PlayerWrapper renders inline 1`] = `
|
|
|
74
74
|
<View
|
|
75
75
|
animationType="componentFade"
|
|
76
76
|
style={
|
|
77
|
-
|
|
77
|
+
{
|
|
78
78
|
"flex": 1,
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
>
|
|
82
82
|
<View
|
|
83
83
|
configuration={
|
|
84
|
-
|
|
84
|
+
{
|
|
85
85
|
"tablet_landscape_player_container_background_color": "red",
|
|
86
86
|
"tablet_landscape_sidebar_width": "35%",
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
entry={
|
|
90
|
-
|
|
90
|
+
{
|
|
91
91
|
"id": "test",
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
isTablet={false}
|
|
95
95
|
isTabletLandscape={false}
|
|
96
96
|
style={
|
|
97
|
-
|
|
97
|
+
{
|
|
98
98
|
"flex": 1,
|
|
99
99
|
"paddingTop": 20,
|
|
100
100
|
}
|
|
@@ -110,8 +110,8 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
|
|
|
110
110
|
<RNCSafeAreaProvider
|
|
111
111
|
onInsetsChange={[Function]}
|
|
112
112
|
style={
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
[
|
|
114
|
+
{
|
|
115
115
|
"flex": 1,
|
|
116
116
|
},
|
|
117
117
|
undefined,
|
|
@@ -120,7 +120,7 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
|
|
|
120
120
|
>
|
|
121
121
|
<RNCSafeAreaView
|
|
122
122
|
edges={
|
|
123
|
-
|
|
123
|
+
{
|
|
124
124
|
"bottom": "off",
|
|
125
125
|
"left": "off",
|
|
126
126
|
"right": "off",
|
|
@@ -128,31 +128,31 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
style={
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
[
|
|
132
|
+
{
|
|
133
133
|
"backgroundColor": "transparent",
|
|
134
134
|
},
|
|
135
|
-
|
|
135
|
+
{
|
|
136
136
|
"height": undefined,
|
|
137
137
|
"width": 300,
|
|
138
138
|
},
|
|
139
|
-
|
|
139
|
+
{},
|
|
140
140
|
]
|
|
141
141
|
}
|
|
142
142
|
>
|
|
143
143
|
<View
|
|
144
144
|
additionalData={
|
|
145
|
-
|
|
145
|
+
{
|
|
146
146
|
"saveArea": true,
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
animationType="moveUpComponent"
|
|
150
150
|
style={
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
[
|
|
152
|
+
{
|
|
153
153
|
"flexDirection": "column",
|
|
154
154
|
},
|
|
155
|
-
|
|
155
|
+
{
|
|
156
156
|
"flex": 1,
|
|
157
157
|
},
|
|
158
158
|
]
|
|
@@ -160,19 +160,19 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
|
|
|
160
160
|
>
|
|
161
161
|
<View
|
|
162
162
|
style={
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
[
|
|
164
|
+
{
|
|
165
165
|
"alignSelf": "center",
|
|
166
166
|
"position": "relative",
|
|
167
167
|
"zIndex": 200,
|
|
168
168
|
},
|
|
169
|
-
|
|
169
|
+
{
|
|
170
170
|
"aspectRatio": undefined,
|
|
171
171
|
"height": undefined,
|
|
172
172
|
"width": "100%",
|
|
173
173
|
},
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
{},
|
|
175
|
+
{},
|
|
176
176
|
]
|
|
177
177
|
}
|
|
178
178
|
testID="test-player-container"
|
|
@@ -180,27 +180,27 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
|
|
|
180
180
|
<View
|
|
181
181
|
animationType="componentFade"
|
|
182
182
|
style={
|
|
183
|
-
|
|
183
|
+
{
|
|
184
184
|
"flex": 1,
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
>
|
|
188
188
|
<View
|
|
189
189
|
configuration={
|
|
190
|
-
|
|
190
|
+
{
|
|
191
191
|
"tablet_landscape_player_container_background_color": "red",
|
|
192
192
|
"tablet_landscape_sidebar_width": "35%",
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
entry={
|
|
196
|
-
|
|
196
|
+
{
|
|
197
197
|
"id": "test",
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
isTablet={false}
|
|
201
201
|
isTabletLandscape={false}
|
|
202
202
|
style={
|
|
203
|
-
|
|
203
|
+
{
|
|
204
204
|
"flex": 1,
|
|
205
205
|
"paddingTop": 20,
|
|
206
206
|
}
|
|
@@ -216,8 +216,8 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
216
216
|
<RNCSafeAreaProvider
|
|
217
217
|
onInsetsChange={[Function]}
|
|
218
218
|
style={
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
[
|
|
220
|
+
{
|
|
221
221
|
"flex": 1,
|
|
222
222
|
},
|
|
223
223
|
undefined,
|
|
@@ -226,7 +226,7 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
226
226
|
>
|
|
227
227
|
<RNCSafeAreaView
|
|
228
228
|
edges={
|
|
229
|
-
|
|
229
|
+
{
|
|
230
230
|
"bottom": "off",
|
|
231
231
|
"left": "off",
|
|
232
232
|
"right": "off",
|
|
@@ -234,31 +234,31 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
style={
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
[
|
|
238
|
+
{
|
|
239
239
|
"backgroundColor": "red",
|
|
240
240
|
},
|
|
241
|
-
|
|
241
|
+
{
|
|
242
242
|
"height": 800,
|
|
243
243
|
"width": 300,
|
|
244
244
|
},
|
|
245
|
-
|
|
245
|
+
{},
|
|
246
246
|
]
|
|
247
247
|
}
|
|
248
248
|
>
|
|
249
249
|
<View
|
|
250
250
|
additionalData={
|
|
251
|
-
|
|
251
|
+
{
|
|
252
252
|
"saveArea": true,
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
animationType="moveUpComponent"
|
|
256
256
|
style={
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
[
|
|
258
|
+
{
|
|
259
259
|
"flexDirection": "row",
|
|
260
260
|
},
|
|
261
|
-
|
|
261
|
+
{
|
|
262
262
|
"flex": 1,
|
|
263
263
|
},
|
|
264
264
|
]
|
|
@@ -266,26 +266,26 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
266
266
|
>
|
|
267
267
|
<View
|
|
268
268
|
style={
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
[
|
|
270
|
+
{
|
|
271
271
|
"alignSelf": "center",
|
|
272
272
|
"position": "relative",
|
|
273
273
|
"zIndex": 200,
|
|
274
274
|
},
|
|
275
|
-
|
|
275
|
+
{
|
|
276
276
|
"aspectRatio": 1.7777777777777777,
|
|
277
277
|
"height": undefined,
|
|
278
278
|
"width": 195,
|
|
279
279
|
},
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
{},
|
|
281
|
+
{},
|
|
282
282
|
]
|
|
283
283
|
}
|
|
284
284
|
testID="test-player-container"
|
|
285
285
|
>
|
|
286
286
|
<View
|
|
287
287
|
additionalData={
|
|
288
|
-
|
|
288
|
+
{
|
|
289
289
|
"disableAnimatedComponent": false,
|
|
290
290
|
"resetAnimationValue": undefined,
|
|
291
291
|
"useLayoutMeasure": true,
|
|
@@ -293,7 +293,7 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
293
293
|
}
|
|
294
294
|
animationType="moveUpComponent"
|
|
295
295
|
style={
|
|
296
|
-
|
|
296
|
+
{
|
|
297
297
|
"flex": 1,
|
|
298
298
|
}
|
|
299
299
|
}
|
|
@@ -302,27 +302,27 @@ exports[`PlayerWrapper renders inline on tablet in landscape orientation 1`] = `
|
|
|
302
302
|
<View
|
|
303
303
|
animationType="componentFade"
|
|
304
304
|
style={
|
|
305
|
-
|
|
305
|
+
{
|
|
306
306
|
"flex": 1,
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
>
|
|
310
310
|
<View
|
|
311
311
|
configuration={
|
|
312
|
-
|
|
312
|
+
{
|
|
313
313
|
"tablet_landscape_player_container_background_color": "red",
|
|
314
314
|
"tablet_landscape_sidebar_width": "35%",
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
entry={
|
|
318
|
-
|
|
318
|
+
{
|
|
319
319
|
"id": "test",
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
isTablet={true}
|
|
323
323
|
isTabletLandscape={true}
|
|
324
324
|
style={
|
|
325
|
-
|
|
325
|
+
{
|
|
326
326
|
"flex": 1,
|
|
327
327
|
"paddingTop": 20,
|
|
328
328
|
}
|
|
@@ -338,8 +338,8 @@ exports[`PlayerWrapper renders properly 1`] = `
|
|
|
338
338
|
<RNCSafeAreaProvider
|
|
339
339
|
onInsetsChange={[Function]}
|
|
340
340
|
style={
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
[
|
|
342
|
+
{
|
|
343
343
|
"flex": 1,
|
|
344
344
|
},
|
|
345
345
|
undefined,
|
|
@@ -348,7 +348,7 @@ exports[`PlayerWrapper renders properly 1`] = `
|
|
|
348
348
|
>
|
|
349
349
|
<RNCSafeAreaView
|
|
350
350
|
edges={
|
|
351
|
-
|
|
351
|
+
{
|
|
352
352
|
"bottom": "off",
|
|
353
353
|
"left": "off",
|
|
354
354
|
"right": "off",
|
|
@@ -356,31 +356,31 @@ exports[`PlayerWrapper renders properly 1`] = `
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
style={
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
[
|
|
360
|
+
{
|
|
361
361
|
"backgroundColor": "transparent",
|
|
362
362
|
},
|
|
363
|
-
|
|
363
|
+
{
|
|
364
364
|
"height": 800,
|
|
365
365
|
"width": 300,
|
|
366
366
|
},
|
|
367
|
-
|
|
367
|
+
{},
|
|
368
368
|
]
|
|
369
369
|
}
|
|
370
370
|
>
|
|
371
371
|
<View
|
|
372
372
|
additionalData={
|
|
373
|
-
|
|
373
|
+
{
|
|
374
374
|
"saveArea": true,
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
animationType="moveUpComponent"
|
|
378
378
|
style={
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
[
|
|
380
|
+
{
|
|
381
381
|
"flexDirection": "column",
|
|
382
382
|
},
|
|
383
|
-
|
|
383
|
+
{
|
|
384
384
|
"flex": 1,
|
|
385
385
|
},
|
|
386
386
|
]
|
|
@@ -388,19 +388,19 @@ exports[`PlayerWrapper renders properly 1`] = `
|
|
|
388
388
|
>
|
|
389
389
|
<View
|
|
390
390
|
style={
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
[
|
|
392
|
+
{
|
|
393
393
|
"alignSelf": "center",
|
|
394
394
|
"position": "relative",
|
|
395
395
|
"zIndex": 200,
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
{
|
|
398
398
|
"aspectRatio": 1.7786666666666666,
|
|
399
399
|
"height": undefined,
|
|
400
400
|
"width": "100%",
|
|
401
401
|
},
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
{},
|
|
403
|
+
{},
|
|
404
404
|
]
|
|
405
405
|
}
|
|
406
406
|
testID="test-player-container"
|
|
@@ -2,10 +2,8 @@ import * as R from "ramda";
|
|
|
2
2
|
|
|
3
3
|
import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
4
4
|
import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
useIsTablet,
|
|
8
|
-
} from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
5
|
+
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks/navigation/useNavigation";
|
|
6
|
+
import { useIsTablet } from "@applicaster/zapp-react-native-utils/reactHooks/device/useIsTablet";
|
|
9
7
|
import { playerManager } from "@applicaster/zapp-react-native-utils/appUtils";
|
|
10
8
|
|
|
11
9
|
export const useConfiguration = () => {
|
package/Components/Viewport/ViewportAware/__tests__/__snapshots__/viewportAware.test.js.snap
CHANGED
|
@@ -50,7 +50,7 @@ exports[`<ViewportAware /> renders its children correctly 1`] = `
|
|
|
50
50
|
ViewportEvents {
|
|
51
51
|
"firesLastEventOnAdd": true,
|
|
52
52
|
"lastEvent": null,
|
|
53
|
-
"listeners":
|
|
53
|
+
"listeners": [],
|
|
54
54
|
"notify": [Function],
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@ exports[`<ViewportAware /> renders its children correctly 1`] = `
|
|
|
60
60
|
ViewportEvents {
|
|
61
61
|
"firesLastEventOnAdd": true,
|
|
62
62
|
"lastEvent": null,
|
|
63
|
-
"listeners":
|
|
63
|
+
"listeners": [],
|
|
64
64
|
"notify": [Function],
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`ZappUIComponent when zapp pipes data is loading renders correctly otherwise 1`] = `
|
|
4
4
|
<ContextProvider
|
|
5
5
|
value={
|
|
6
|
-
|
|
6
|
+
{
|
|
7
7
|
"parent": null,
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders correctly other
|
|
|
12
12
|
onLoadFinished={[MockFunction]}
|
|
13
13
|
parent={null}
|
|
14
14
|
zappPipesData={
|
|
15
|
-
|
|
15
|
+
{
|
|
16
16
|
"loading": true,
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -23,7 +23,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders correctly other
|
|
|
23
23
|
exports[`ZappUIComponent when zapp pipes data is loading renders null if no loading component is provided 1`] = `
|
|
24
24
|
<ContextProvider
|
|
25
25
|
value={
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"parent": null,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -32,7 +32,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders null if no load
|
|
|
32
32
|
onLoadFinished={[MockFunction]}
|
|
33
33
|
parent={null}
|
|
34
34
|
zappPipesData={
|
|
35
|
-
|
|
35
|
+
{
|
|
36
36
|
"loading": true,
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -43,7 +43,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders null if no load
|
|
|
43
43
|
exports[`ZappUIComponent when zapp pipes data returns properly renders correctly 1`] = `
|
|
44
44
|
<ContextProvider
|
|
45
45
|
value={
|
|
46
|
-
|
|
46
|
+
{
|
|
47
47
|
"parent": null,
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -52,9 +52,9 @@ exports[`ZappUIComponent when zapp pipes data returns properly renders correctly
|
|
|
52
52
|
onLoadFinished={[MockFunction]}
|
|
53
53
|
parent={null}
|
|
54
54
|
zappPipesData={
|
|
55
|
-
|
|
56
|
-
"data":
|
|
57
|
-
"type":
|
|
55
|
+
{
|
|
56
|
+
"data": {
|
|
57
|
+
"type": {
|
|
58
58
|
"value": "feed",
|
|
59
59
|
},
|
|
60
60
|
},
|
|
@@ -68,7 +68,7 @@ exports[`ZappUIComponent when zapp pipes data returns properly renders correctly
|
|
|
68
68
|
exports[`ZappUIComponent whenn zapp pipes data returns with error renders correctly otherwise 1`] = `
|
|
69
69
|
<ContextProvider
|
|
70
70
|
value={
|
|
71
|
-
|
|
71
|
+
{
|
|
72
72
|
"parent": null,
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -77,8 +77,8 @@ exports[`ZappUIComponent whenn zapp pipes data returns with error renders correc
|
|
|
77
77
|
onLoadFinished={[MockFunction]}
|
|
78
78
|
parent={null}
|
|
79
79
|
zappPipesData={
|
|
80
|
-
|
|
81
|
-
"error":
|
|
80
|
+
{
|
|
81
|
+
"error": {
|
|
82
82
|
"message": "oups",
|
|
83
83
|
},
|
|
84
84
|
"loading": false,
|