@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
package/Components/default-cell-renderer/__tests__/__snapshots__/defaultCellRenderer.test.tsx.snap
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`DefaultCellRenderer returns a react component and it renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
|
-
|
|
6
|
+
{
|
|
7
7
|
"alignItems": "flex-start",
|
|
8
8
|
"flex": 1,
|
|
9
9
|
}
|
|
@@ -15,7 +15,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
15
15
|
skipButtons={false}
|
|
16
16
|
store={null}
|
|
17
17
|
style={
|
|
18
|
-
|
|
18
|
+
{
|
|
19
19
|
"backgroundColor": "transparent",
|
|
20
20
|
"margin": 12,
|
|
21
21
|
"opacity": 1,
|
|
@@ -23,7 +23,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
wrapperRef={
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"current": null,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -33,7 +33,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
33
33
|
key="0"
|
|
34
34
|
skipButtons={false}
|
|
35
35
|
style={
|
|
36
|
-
|
|
36
|
+
{
|
|
37
37
|
"borderRadius": 3,
|
|
38
38
|
"height": 80,
|
|
39
39
|
"width": 169,
|
|
@@ -46,7 +46,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
46
46
|
skipButtons={false}
|
|
47
47
|
store={null}
|
|
48
48
|
wrapperRef={
|
|
49
|
-
|
|
49
|
+
{
|
|
50
50
|
"current": null,
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -58,7 +58,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
58
58
|
numberOfLines={2}
|
|
59
59
|
skipButtons={false}
|
|
60
60
|
style={
|
|
61
|
-
|
|
61
|
+
{
|
|
62
62
|
"color": "#000",
|
|
63
63
|
"fontFamily": "HelveticaNeue-Light",
|
|
64
64
|
"fontSize": 16,
|
|
@@ -74,7 +74,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
74
74
|
exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
75
75
|
<View
|
|
76
76
|
style={
|
|
77
|
-
|
|
77
|
+
{
|
|
78
78
|
"flex": 1,
|
|
79
79
|
"width": 429,
|
|
80
80
|
}
|
|
@@ -86,14 +86,14 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
86
86
|
skipButtons={false}
|
|
87
87
|
store={null}
|
|
88
88
|
style={
|
|
89
|
-
|
|
89
|
+
{
|
|
90
90
|
"aspectRatio": 0.880733945,
|
|
91
91
|
"flex": 1,
|
|
92
92
|
"padding": 10,
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
wrapperRef={
|
|
96
|
-
|
|
96
|
+
{
|
|
97
97
|
"current": null,
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -104,7 +104,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
104
104
|
skipButtons={false}
|
|
105
105
|
store={null}
|
|
106
106
|
style={
|
|
107
|
-
|
|
107
|
+
{
|
|
108
108
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
109
109
|
"borderRadius": 4,
|
|
110
110
|
"flex": 1,
|
|
@@ -112,7 +112,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
wrapperRef={
|
|
115
|
-
|
|
115
|
+
{
|
|
116
116
|
"current": null,
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -123,7 +123,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
123
123
|
skipButtons={false}
|
|
124
124
|
store={null}
|
|
125
125
|
wrapperRef={
|
|
126
|
-
|
|
126
|
+
{
|
|
127
127
|
"current": null,
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -133,7 +133,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
133
133
|
key="0"
|
|
134
134
|
skipButtons={false}
|
|
135
135
|
style={
|
|
136
|
-
|
|
136
|
+
{
|
|
137
137
|
"aspectRatio": 1.7782608696,
|
|
138
138
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
139
139
|
}
|
|
@@ -145,7 +145,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
145
145
|
skipButtons={false}
|
|
146
146
|
store={null}
|
|
147
147
|
wrapperRef={
|
|
148
|
-
|
|
148
|
+
{
|
|
149
149
|
"current": null,
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -156,7 +156,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
156
156
|
numberOfLines={2}
|
|
157
157
|
skipButtons={false}
|
|
158
158
|
style={
|
|
159
|
-
|
|
159
|
+
{
|
|
160
160
|
"color": "rgba(239,239,239,1.0)",
|
|
161
161
|
"fontSize": 26,
|
|
162
162
|
"fontWeight": "700",
|
|
@@ -173,13 +173,13 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
173
173
|
skipButtons={false}
|
|
174
174
|
store={null}
|
|
175
175
|
style={
|
|
176
|
-
|
|
176
|
+
{
|
|
177
177
|
"paddingHorizontal": "6%",
|
|
178
178
|
"paddingTop": "3%",
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
wrapperRef={
|
|
182
|
-
|
|
182
|
+
{
|
|
183
183
|
"current": null,
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -190,7 +190,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
190
190
|
numberOfLines={1}
|
|
191
191
|
skipButtons={false}
|
|
192
192
|
style={
|
|
193
|
-
|
|
193
|
+
{
|
|
194
194
|
"color": "rgba(239,239,239,1.0)",
|
|
195
195
|
"fontSize": 24,
|
|
196
196
|
"fontWeight": "400",
|
|
@@ -207,7 +207,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
207
207
|
exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
208
208
|
<View
|
|
209
209
|
style={
|
|
210
|
-
|
|
210
|
+
{
|
|
211
211
|
"flex": 1,
|
|
212
212
|
"width": 429,
|
|
213
213
|
}
|
|
@@ -219,14 +219,14 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
219
219
|
skipButtons={false}
|
|
220
220
|
store={null}
|
|
221
221
|
style={
|
|
222
|
-
|
|
222
|
+
{
|
|
223
223
|
"aspectRatio": 0.880733945,
|
|
224
224
|
"flex": 1,
|
|
225
225
|
"padding": 10,
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
wrapperRef={
|
|
229
|
-
|
|
229
|
+
{
|
|
230
230
|
"current": null,
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -237,7 +237,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
237
237
|
skipButtons={false}
|
|
238
238
|
store={null}
|
|
239
239
|
style={
|
|
240
|
-
|
|
240
|
+
{
|
|
241
241
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
242
242
|
"borderRadius": 4,
|
|
243
243
|
"flex": 1,
|
|
@@ -245,7 +245,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
wrapperRef={
|
|
248
|
-
|
|
248
|
+
{
|
|
249
249
|
"current": null,
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -256,7 +256,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
256
256
|
skipButtons={false}
|
|
257
257
|
store={null}
|
|
258
258
|
wrapperRef={
|
|
259
|
-
|
|
259
|
+
{
|
|
260
260
|
"current": null,
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -266,7 +266,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
266
266
|
key="0"
|
|
267
267
|
skipButtons={false}
|
|
268
268
|
style={
|
|
269
|
-
|
|
269
|
+
{
|
|
270
270
|
"aspectRatio": 1.7782608696,
|
|
271
271
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
272
272
|
}
|
|
@@ -278,7 +278,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
278
278
|
skipButtons={false}
|
|
279
279
|
store={null}
|
|
280
280
|
wrapperRef={
|
|
281
|
-
|
|
281
|
+
{
|
|
282
282
|
"current": null,
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -289,7 +289,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
289
289
|
numberOfLines={2}
|
|
290
290
|
skipButtons={false}
|
|
291
291
|
style={
|
|
292
|
-
|
|
292
|
+
{
|
|
293
293
|
"color": "rgba(239,239,239,1.0)",
|
|
294
294
|
"fontSize": 26,
|
|
295
295
|
"fontWeight": "700",
|
|
@@ -306,13 +306,13 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
306
306
|
skipButtons={false}
|
|
307
307
|
store={null}
|
|
308
308
|
style={
|
|
309
|
-
|
|
309
|
+
{
|
|
310
310
|
"paddingHorizontal": "6%",
|
|
311
311
|
"paddingTop": "3%",
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
wrapperRef={
|
|
315
|
-
|
|
315
|
+
{
|
|
316
316
|
"current": null,
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -323,7 +323,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
323
323
|
numberOfLines={1}
|
|
324
324
|
skipButtons={false}
|
|
325
325
|
style={
|
|
326
|
-
|
|
326
|
+
{
|
|
327
327
|
"color": "rgba(239,239,239,1.0)",
|
|
328
328
|
"fontSize": 24,
|
|
329
329
|
"fontWeight": "400",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
|
|
2
|
+
import React, { PropsWithChildren } from "react";
|
|
3
|
+
|
|
4
|
+
export const ComponentsMapOffsetContext = React.createContext({
|
|
5
|
+
setComponentsMapOffset: (_offset: number) => void 0,
|
|
6
|
+
componentsMapOffset: 0,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const ComponentsMapOffsetContextProvider = ({
|
|
10
|
+
children,
|
|
11
|
+
}: PropsWithChildren<{}>) => {
|
|
12
|
+
const theme = useTheme<BaseThemePropertiesTV>();
|
|
13
|
+
|
|
14
|
+
const [componentsMapOffset, setComponentsMapOffset] = React.useState(
|
|
15
|
+
theme?.screen_margin_top
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const contextValue = {
|
|
19
|
+
componentsMapOffset,
|
|
20
|
+
setComponentsMapOffset,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<ComponentsMapOffsetContext.Provider value={contextValue}>
|
|
25
|
+
{children}
|
|
26
|
+
</ComponentsMapOffsetContext.Provider>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const withComponentsMapOffsetContext = (Component: any) =>
|
|
31
|
+
function ComponentsMapOffsetContextProviderWrapper(props: {}) {
|
|
32
|
+
return (
|
|
33
|
+
<ComponentsMapOffsetContextProvider>
|
|
34
|
+
<Component {...props} />
|
|
35
|
+
</ComponentsMapOffsetContextProvider>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const withComponentsMapOffsetContextConsumer = (Component: any) =>
|
|
40
|
+
function ComponentsMapOffsetContextConsumerWrapper(props: {}) {
|
|
41
|
+
const { componentsMapOffset } = React.useContext(
|
|
42
|
+
ComponentsMapOffsetContext
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
return <Component {...props} componentsMapOffset={componentsMapOffset} />;
|
|
46
|
+
};
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { FocusableGroupContext } from "./FocusableGroupContext";
|
|
3
3
|
|
|
4
4
|
export const withFocusableContext = (Component) => {
|
|
5
5
|
// eslint-disable-next-line react/display-name
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const WithFocusableContext = (
|
|
7
|
+
{ groupId, ...props }: Record<string, any>,
|
|
8
|
+
ref
|
|
9
|
+
) => {
|
|
10
|
+
return (
|
|
11
|
+
<FocusableGroupContext.Consumer>
|
|
12
|
+
{(groupIdContext: string) => {
|
|
13
|
+
// eslint-disable-next-line react/display-name
|
|
14
|
+
const propsGroupId = groupId || null;
|
|
15
|
+
const providedGroupId = propsGroupId || groupIdContext;
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
return <Component {...props} groupId={providedGroupId} ref={ref} />;
|
|
18
|
+
}}
|
|
19
|
+
</FocusableGroupContext.Consumer>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return React.forwardRef(WithFocusableContext);
|
|
17
24
|
};
|
|
@@ -5,18 +5,18 @@ import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
|
|
|
5
5
|
|
|
6
6
|
type ComponentProps = {
|
|
7
7
|
component: {
|
|
8
|
-
id: string
|
|
9
|
-
rules: { item_limit: number
|
|
10
|
-
component_type: string
|
|
8
|
+
id: string;
|
|
9
|
+
rules: { item_limit: number; component_cells_selectable: boolean };
|
|
10
|
+
component_type: string;
|
|
11
11
|
styles: {
|
|
12
|
-
cell_style: string
|
|
13
|
-
header: { visible: boolean }
|
|
14
|
-
component_cells_selectable: boolean
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
zappPipesData: { url: string
|
|
18
|
-
selected: boolean
|
|
19
|
-
assets: { menu_button: string }
|
|
12
|
+
cell_style: string;
|
|
13
|
+
header: { visible: boolean };
|
|
14
|
+
component_cells_selectable: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
zappPipesData: { url: string; data: { title: string } };
|
|
18
|
+
selected: boolean;
|
|
19
|
+
assets: { menu_button: string };
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
function withAnalytics(Component) {
|
|
@@ -4,206 +4,206 @@ exports[`WithRiverFeedLoader renders correctly 1`] = `
|
|
|
4
4
|
<View
|
|
5
5
|
dispatch={[MockFunction]}
|
|
6
6
|
river={
|
|
7
|
-
|
|
7
|
+
{
|
|
8
8
|
"id": "A1234",
|
|
9
|
-
"ui_components":
|
|
10
|
-
|
|
11
|
-
"data":
|
|
9
|
+
"ui_components": [
|
|
10
|
+
{
|
|
11
|
+
"data": {
|
|
12
12
|
"source": "http://datasource0",
|
|
13
13
|
},
|
|
14
|
-
"rules":
|
|
14
|
+
"rules": {
|
|
15
15
|
"clear_cache_on_reload": false,
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
|
-
|
|
19
|
-
"data":
|
|
18
|
+
{
|
|
19
|
+
"data": {
|
|
20
20
|
"source": "http://datasource1",
|
|
21
21
|
},
|
|
22
|
-
"rules":
|
|
22
|
+
"rules": {
|
|
23
23
|
"clear_cache_on_reload": false,
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
-
|
|
27
|
-
"data":
|
|
26
|
+
{
|
|
27
|
+
"data": {
|
|
28
28
|
"source": "http://datasource2",
|
|
29
29
|
},
|
|
30
|
-
"rules":
|
|
30
|
+
"rules": {
|
|
31
31
|
"clear_cache_on_reload": false,
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
"data":
|
|
34
|
+
{
|
|
35
|
+
"data": {
|
|
36
36
|
"source": "http://datasource3",
|
|
37
37
|
},
|
|
38
|
-
"rules":
|
|
38
|
+
"rules": {
|
|
39
39
|
"clear_cache_on_reload": false,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
"data":
|
|
42
|
+
{
|
|
43
|
+
"data": {
|
|
44
44
|
"source": "http://datasource4",
|
|
45
45
|
},
|
|
46
|
-
"rules":
|
|
46
|
+
"rules": {
|
|
47
47
|
"clear_cache_on_reload": false,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
-
|
|
51
|
-
"data":
|
|
50
|
+
{
|
|
51
|
+
"data": {
|
|
52
52
|
"source": "http://datasource5",
|
|
53
53
|
},
|
|
54
|
-
"rules":
|
|
54
|
+
"rules": {
|
|
55
55
|
"clear_cache_on_reload": false,
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
|
-
|
|
59
|
-
"data":
|
|
58
|
+
{
|
|
59
|
+
"data": {
|
|
60
60
|
"source": "http://datasource6",
|
|
61
61
|
},
|
|
62
|
-
"rules":
|
|
62
|
+
"rules": {
|
|
63
63
|
"clear_cache_on_reload": false,
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
|
-
|
|
67
|
-
"data":
|
|
66
|
+
{
|
|
67
|
+
"data": {
|
|
68
68
|
"source": "http://datasource7",
|
|
69
69
|
},
|
|
70
|
-
"rules":
|
|
70
|
+
"rules": {
|
|
71
71
|
"clear_cache_on_reload": false,
|
|
72
72
|
},
|
|
73
73
|
},
|
|
74
|
-
|
|
75
|
-
"data":
|
|
74
|
+
{
|
|
75
|
+
"data": {
|
|
76
76
|
"source": "http://datasource8",
|
|
77
77
|
},
|
|
78
|
-
"rules":
|
|
78
|
+
"rules": {
|
|
79
79
|
"clear_cache_on_reload": false,
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
|
-
|
|
83
|
-
"data":
|
|
82
|
+
{
|
|
83
|
+
"data": {
|
|
84
84
|
"source": "http://datasource9",
|
|
85
85
|
},
|
|
86
|
-
"rules":
|
|
86
|
+
"rules": {
|
|
87
87
|
"clear_cache_on_reload": false,
|
|
88
88
|
},
|
|
89
89
|
},
|
|
90
|
-
|
|
91
|
-
"data":
|
|
90
|
+
{
|
|
91
|
+
"data": {
|
|
92
92
|
"source": "http://datasource10",
|
|
93
93
|
},
|
|
94
|
-
"rules":
|
|
94
|
+
"rules": {
|
|
95
95
|
"clear_cache_on_reload": false,
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
|
-
|
|
99
|
-
"data":
|
|
98
|
+
{
|
|
99
|
+
"data": {
|
|
100
100
|
"source": "http://datasource11",
|
|
101
101
|
},
|
|
102
|
-
"rules":
|
|
102
|
+
"rules": {
|
|
103
103
|
"clear_cache_on_reload": false,
|
|
104
104
|
},
|
|
105
105
|
},
|
|
106
|
-
|
|
107
|
-
"data":
|
|
106
|
+
{
|
|
107
|
+
"data": {
|
|
108
108
|
"source": "http://datasource12",
|
|
109
109
|
},
|
|
110
|
-
"rules":
|
|
110
|
+
"rules": {
|
|
111
111
|
"clear_cache_on_reload": true,
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
|
-
|
|
115
|
-
"data":
|
|
114
|
+
{
|
|
115
|
+
"data": {
|
|
116
116
|
"source": "http://datasource13",
|
|
117
117
|
},
|
|
118
|
-
"rules":
|
|
118
|
+
"rules": {
|
|
119
119
|
"clear_cache_on_reload": false,
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
|
-
|
|
123
|
-
"data":
|
|
122
|
+
{
|
|
123
|
+
"data": {
|
|
124
124
|
"source": "http://datasource14",
|
|
125
125
|
},
|
|
126
|
-
"rules":
|
|
126
|
+
"rules": {
|
|
127
127
|
"clear_cache_on_reload": false,
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
|
-
|
|
131
|
-
"data":
|
|
130
|
+
{
|
|
131
|
+
"data": {
|
|
132
132
|
"source": "http://datasource15",
|
|
133
133
|
},
|
|
134
|
-
"rules":
|
|
134
|
+
"rules": {
|
|
135
135
|
"clear_cache_on_reload": false,
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
|
-
|
|
139
|
-
"data":
|
|
138
|
+
{
|
|
139
|
+
"data": {
|
|
140
140
|
"source": "http://datasource16",
|
|
141
141
|
},
|
|
142
|
-
"rules":
|
|
142
|
+
"rules": {
|
|
143
143
|
"clear_cache_on_reload": false,
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
|
-
|
|
147
|
-
"data":
|
|
146
|
+
{
|
|
147
|
+
"data": {
|
|
148
148
|
"source": "http://datasource17",
|
|
149
149
|
},
|
|
150
|
-
"rules":
|
|
150
|
+
"rules": {
|
|
151
151
|
"clear_cache_on_reload": false,
|
|
152
152
|
},
|
|
153
153
|
},
|
|
154
|
-
|
|
155
|
-
"data":
|
|
154
|
+
{
|
|
155
|
+
"data": {
|
|
156
156
|
"source": "http://datasource18",
|
|
157
157
|
},
|
|
158
|
-
"rules":
|
|
158
|
+
"rules": {
|
|
159
159
|
"clear_cache_on_reload": false,
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
|
-
|
|
163
|
-
"data":
|
|
162
|
+
{
|
|
163
|
+
"data": {
|
|
164
164
|
"source": "http://datasource19",
|
|
165
165
|
},
|
|
166
|
-
"rules":
|
|
166
|
+
"rules": {
|
|
167
167
|
"clear_cache_on_reload": false,
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
|
-
|
|
171
|
-
"data":
|
|
170
|
+
{
|
|
171
|
+
"data": {
|
|
172
172
|
"source": "http://datasource20",
|
|
173
173
|
},
|
|
174
|
-
"rules":
|
|
174
|
+
"rules": {
|
|
175
175
|
"clear_cache_on_reload": true,
|
|
176
176
|
},
|
|
177
177
|
},
|
|
178
|
-
|
|
179
|
-
"data":
|
|
178
|
+
{
|
|
179
|
+
"data": {
|
|
180
180
|
"source": "http://datasource21",
|
|
181
181
|
},
|
|
182
|
-
"rules":
|
|
182
|
+
"rules": {
|
|
183
183
|
"clear_cache_on_reload": false,
|
|
184
184
|
},
|
|
185
185
|
},
|
|
186
|
-
|
|
187
|
-
"data":
|
|
186
|
+
{
|
|
187
|
+
"data": {
|
|
188
188
|
"source": "http://datasource22",
|
|
189
189
|
},
|
|
190
|
-
"rules":
|
|
190
|
+
"rules": {
|
|
191
191
|
"clear_cache_on_reload": false,
|
|
192
192
|
},
|
|
193
193
|
},
|
|
194
|
-
|
|
195
|
-
"data":
|
|
194
|
+
{
|
|
195
|
+
"data": {
|
|
196
196
|
"source": "http://datasource23",
|
|
197
197
|
},
|
|
198
|
-
"rules":
|
|
198
|
+
"rules": {
|
|
199
199
|
"clear_cache_on_reload": false,
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
|
-
|
|
203
|
-
"data":
|
|
202
|
+
{
|
|
203
|
+
"data": {
|
|
204
204
|
"source": "http://datasource24",
|
|
205
205
|
},
|
|
206
|
-
"rules":
|
|
206
|
+
"rules": {
|
|
207
207
|
"clear_cache_on_reload": false,
|
|
208
208
|
},
|
|
209
209
|
},
|