@applicaster/zapp-react-native-utils 13.0.0-alpha.6714678893 → 13.0.0-alpha.7100577251
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/actionsExecutor/ActionExecutor.ts +16 -9
- package/actionsExecutor/ActionExecutorContext.tsx +59 -8
- package/alertUtils/alert.ts +148 -0
- package/alertUtils/index.ts +1 -148
- package/analyticsUtils/AnalyticPlayerListener.ts +18 -1
- package/analyticsUtils/__tests__/__snapshots__/analyticsManagerNoModule.test.js.snap +9 -9
- package/analyticsUtils/helpers/hooks.ts +1 -1
- package/appUtils/HooksManager/Hook.ts +2 -2
- package/appUtils/HooksManager/__tests__/__snapshots__/hook.test.js.snap +7 -7
- package/appUtils/HooksManager/__tests__/__snapshots__/hooksManager.test.js.snap +186 -186
- package/appUtils/HooksManager/types.ts +5 -2
- package/appUtils/accessibilityManager/index.ts +42 -1
- package/appUtils/contextKeysManager/contextResolver.ts +77 -0
- package/appUtils/focusManager/__tests__/__snapshots__/focusManager.test.js.snap +6 -6
- package/appUtils/focusManager/index.ts +91 -65
- package/appUtils/focusManager/treeDataStructure/Tree/index.js +23 -0
- package/appUtils/focusManager/utils/enums.ts +4 -0
- package/appUtils/focusManagerAux/utils/index.ts +4 -3
- package/appUtils/keyCodes/__tests__/__snapshots__/keyCodes.test.js.snap +2 -2
- package/appUtils/keyCodes/__tests__/keyCodes.test.js +1 -1
- package/appUtils/keyCodes/keys/keysByPlatform.ts +4 -0
- package/appUtils/keyInputHandler/KeyInputHandler.ts +68 -0
- package/appUtils/orientationHelper.ts +1 -1
- package/appUtils/platform/const.ts +14 -0
- package/appUtils/platform/platformUtils.ts +41 -4
- package/appUtils/playerManager/player.ts +19 -7
- package/appUtils/playerManager/playerNative.ts +3 -2
- package/appUtils/playerManager/usePlayerControllerSetup.tsx +3 -3
- package/arrayUtils/__tests__/__snapshots__/arrayUtils.test.ts.snap +4 -4
- package/functionUtils/__tests__/__snapshots__/functionUtils.test.js.snap +4 -4
- package/idleUtils/__tests__/withTimeout$.test.ts +37 -0
- package/idleUtils/index.ts +1 -1
- package/idleUtils/withTimeout.ts +15 -2
- package/logger/const.ts +9 -67
- package/manifestUtils/__tests__/createConfig.test.js +16 -16
- package/navigationUtils/__tests__/__snapshots__/navigationUtils.test.js.snap +6 -6
- package/navigationUtils/__tests__/itemTypes.test.js +2 -2
- package/navigationUtils/__tests__/navigationUtils.test.js +2 -2
- package/navigationUtils/index.ts +3 -3
- package/package.json +3 -2
- package/reactHooks/autoscrolling/__tests__/useTrackCurrentAutoScrollingElement.test.ts +1 -1
- package/reactHooks/autoscrolling/__tests__/useTrackedView.test.tsx +1 -1
- package/reactHooks/cell-click/__tests__/index.test.js +10 -2
- package/reactHooks/cell-click/index.ts +7 -1
- package/reactHooks/feed/__tests__/useBuildPipesUrl.test.tsx +4 -4
- package/reactHooks/feed/__tests__/useFeedLoader.test.tsx +10 -11
- package/reactHooks/feed/useFeedLoader.tsx +1 -1
- package/reactHooks/feed/usePipesCacheReset.ts +5 -5
- package/reactHooks/flatList/__tests__/index.test.tsx +30 -21
- package/reactHooks/layout/__tests__/index.test.tsx +10 -10
- package/reactHooks/layout/useDimensions/helpers/__tests__/getInitialDimensions.native.test.js +14 -28
- package/reactHooks/layout/useDimensions/helpers/__tests__/getInitialDimensions.test.js +1 -1
- package/reactHooks/layout/useDimensions/useDimensions.ts +8 -0
- package/reactHooks/navigation/__tests__/index.test.tsx +0 -4
- package/reactHooks/navigation/index.ts +22 -214
- package/reactHooks/navigation/useGetBottomTabBarHeight.ts +12 -0
- package/reactHooks/navigation/useGetNavBarTopBorderWidth.ts +14 -0
- package/reactHooks/navigation/useGetTabBarHeight.ts +12 -0
- package/reactHooks/navigation/useIsScreenActive.ts +17 -0
- package/reactHooks/navigation/useNavigationPluginData.ts +15 -0
- package/reactHooks/navigation/useNavigationType.ts +15 -0
- package/reactHooks/navigation/usePathname.ts +4 -0
- package/reactHooks/navigation/useRoute.ts +100 -0
- package/reactHooks/navigation/useUniqueRouteSuffix.ts +41 -0
- package/reactHooks/player/TVSeekControlller/ISeekController.ts +32 -0
- package/reactHooks/player/TVSeekControlller/LongPressSeekController.ts +71 -0
- package/reactHooks/player/TVSeekControlller/TVSeekController.ts +258 -0
- package/reactHooks/player/TVSeekControlller/TapSeekController.ts +53 -0
- package/reactHooks/player/__tests__/{useAutoSeek.test.tsx → useAutoSeek._test.tsx} +2 -3
- package/reactHooks/player/const.ts +0 -4
- package/reactHooks/player/index.ts +0 -6
- package/reactHooks/state/useRefWithInitialValue.ts +14 -0
- package/reactHooks/state/useStateFromSubscribe.ts +23 -0
- package/reactHooks/usePluginConfiguration.ts +1 -1
- package/reactHooks/useSubscriberFor.ts +4 -3
- package/reactUtils/__tests__/reactUtils.test.js +10 -28
- package/reactUtils/createContext/__tests__/__snapshots__/helpers.test.js.snap +19 -19
- package/reactUtils/createContext/__tests__/__snapshots__/index.test.js.snap +2 -2
- package/reactUtils/createContext/__tests__/__snapshots__/provider.test.js.snap +3 -3
- package/reactUtils/createContext/__tests__/helpers.test.js +8 -8
- package/screenState/index.ts +24 -10
- package/theme/__mocks__/index.ts +4 -0
- package/theme/index.ts +1 -1
- package/time/Timer.ts +5 -2
- package/types.ts +1 -0
- package/zappFrameworkUtils/presentPluginOneTime.ts +2 -3
- package/manifestUtils/sharedConfiguration/screenPicker/__tests__/utils.test.js +0 -304
- package/manifestUtils/sharedConfiguration/screenPicker/stylesFields.js +0 -875
- package/manifestUtils/sharedConfiguration/screenPicker/utils.js +0 -130
- package/reactHooks/player/useAutoSeek.tsx +0 -87
- package/reactHooks/player/useSeek.tsx +0 -66
- package/reactHooks/player/useTapSeek.tsx +0 -58
- /package/reactHooks/player/__tests__/{useTapSeek.test.ts → useTapSeek._test.ts} +0 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`HooksManager when target route is playable executes the player hook 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
6
|
"callback": [Function],
|
|
7
7
|
"hookPlugin": Hook {
|
|
8
|
-
"configuration":
|
|
8
|
+
"configuration": {
|
|
9
9
|
"config_field": "bar",
|
|
10
10
|
},
|
|
11
11
|
"identifier": "headless_player_hook",
|
|
12
12
|
"lastHook": true,
|
|
13
|
-
"manager":
|
|
13
|
+
"manager": {
|
|
14
14
|
"executeHook": [Function],
|
|
15
15
|
"handleHooks": [Function],
|
|
16
16
|
"presentScreenHook": [Function],
|
|
17
17
|
"runInBackground": [Function],
|
|
18
|
-
"subscriber":
|
|
19
|
-
"handlers":
|
|
20
|
-
"complete":
|
|
18
|
+
"subscriber": {
|
|
19
|
+
"handlers": {
|
|
20
|
+
"complete": [
|
|
21
21
|
[MockFunction] {
|
|
22
|
-
"calls":
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
"calls": [
|
|
23
|
+
[
|
|
24
|
+
{
|
|
25
25
|
"callback": [Function],
|
|
26
26
|
"hookPlugin": [Circular],
|
|
27
|
-
"payload":
|
|
27
|
+
"payload": {
|
|
28
28
|
"foo": "bar",
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
[Function],
|
|
32
32
|
],
|
|
33
33
|
],
|
|
34
|
-
"results":
|
|
35
|
-
|
|
34
|
+
"results": [
|
|
35
|
+
{
|
|
36
36
|
"type": "return",
|
|
37
37
|
"value": undefined,
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
|
-
"presentScreenHook":
|
|
42
|
+
"presentScreenHook": [
|
|
43
43
|
[MockFunction],
|
|
44
44
|
],
|
|
45
|
-
"success":
|
|
45
|
+
"success": [
|
|
46
46
|
[MockFunction] {
|
|
47
|
-
"calls":
|
|
47
|
+
"calls": [
|
|
48
48
|
[Circular],
|
|
49
49
|
],
|
|
50
|
-
"results":
|
|
51
|
-
|
|
50
|
+
"results": [
|
|
51
|
+
{
|
|
52
52
|
"type": "return",
|
|
53
53
|
"value": undefined,
|
|
54
54
|
},
|
|
@@ -61,22 +61,22 @@ Array [
|
|
|
61
61
|
"removeHandler": [Function],
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
|
-
"module":
|
|
64
|
+
"module": {
|
|
65
65
|
"hasPlayerHook": true,
|
|
66
66
|
"run": [MockFunction] {
|
|
67
|
-
"calls":
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
"calls": [
|
|
68
|
+
[
|
|
69
|
+
{
|
|
70
70
|
"foo": "bar",
|
|
71
71
|
},
|
|
72
72
|
[Function],
|
|
73
|
-
|
|
73
|
+
{
|
|
74
74
|
"config_field": "bar",
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
],
|
|
78
|
-
"results":
|
|
79
|
-
|
|
78
|
+
"results": [
|
|
79
|
+
{
|
|
80
80
|
"type": "return",
|
|
81
81
|
"value": undefined,
|
|
82
82
|
},
|
|
@@ -86,7 +86,7 @@ Array [
|
|
|
86
86
|
"state": 7,
|
|
87
87
|
"weight": 1,
|
|
88
88
|
},
|
|
89
|
-
"payload":
|
|
89
|
+
"payload": {
|
|
90
90
|
"foo": "bar",
|
|
91
91
|
},
|
|
92
92
|
},
|
|
@@ -95,54 +95,54 @@ Array [
|
|
|
95
95
|
`;
|
|
96
96
|
|
|
97
97
|
exports[`HooksManager when target route is playable executes the player hook 2`] = `
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
[
|
|
99
|
+
{
|
|
100
100
|
"callback": [Function],
|
|
101
101
|
"hookPlugin": Hook {
|
|
102
|
-
"configuration":
|
|
102
|
+
"configuration": {
|
|
103
103
|
"config_field": "bar",
|
|
104
104
|
},
|
|
105
105
|
"identifier": "headless_player_hook",
|
|
106
106
|
"lastHook": true,
|
|
107
|
-
"manager":
|
|
107
|
+
"manager": {
|
|
108
108
|
"executeHook": [Function],
|
|
109
109
|
"handleHooks": [Function],
|
|
110
110
|
"presentScreenHook": [Function],
|
|
111
111
|
"runInBackground": [Function],
|
|
112
|
-
"subscriber":
|
|
113
|
-
"handlers":
|
|
114
|
-
"complete":
|
|
112
|
+
"subscriber": {
|
|
113
|
+
"handlers": {
|
|
114
|
+
"complete": [
|
|
115
115
|
[MockFunction] {
|
|
116
|
-
"calls":
|
|
116
|
+
"calls": [
|
|
117
117
|
[Circular],
|
|
118
118
|
],
|
|
119
|
-
"results":
|
|
120
|
-
|
|
119
|
+
"results": [
|
|
120
|
+
{
|
|
121
121
|
"type": "return",
|
|
122
122
|
"value": undefined,
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
125
|
},
|
|
126
126
|
],
|
|
127
|
-
"presentScreenHook":
|
|
127
|
+
"presentScreenHook": [
|
|
128
128
|
[MockFunction],
|
|
129
129
|
],
|
|
130
|
-
"success":
|
|
130
|
+
"success": [
|
|
131
131
|
[MockFunction] {
|
|
132
|
-
"calls":
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
"calls": [
|
|
133
|
+
[
|
|
134
|
+
{
|
|
135
135
|
"callback": [Function],
|
|
136
136
|
"hookPlugin": [Circular],
|
|
137
|
-
"payload":
|
|
137
|
+
"payload": {
|
|
138
138
|
"foo": "bar",
|
|
139
139
|
},
|
|
140
140
|
},
|
|
141
141
|
[Function],
|
|
142
142
|
],
|
|
143
143
|
],
|
|
144
|
-
"results":
|
|
145
|
-
|
|
144
|
+
"results": [
|
|
145
|
+
{
|
|
146
146
|
"type": "return",
|
|
147
147
|
"value": undefined,
|
|
148
148
|
},
|
|
@@ -155,22 +155,22 @@ Array [
|
|
|
155
155
|
"removeHandler": [Function],
|
|
156
156
|
},
|
|
157
157
|
},
|
|
158
|
-
"module":
|
|
158
|
+
"module": {
|
|
159
159
|
"hasPlayerHook": true,
|
|
160
160
|
"run": [MockFunction] {
|
|
161
|
-
"calls":
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
"calls": [
|
|
162
|
+
[
|
|
163
|
+
{
|
|
164
164
|
"foo": "bar",
|
|
165
165
|
},
|
|
166
166
|
[Function],
|
|
167
|
-
|
|
167
|
+
{
|
|
168
168
|
"config_field": "bar",
|
|
169
169
|
},
|
|
170
170
|
],
|
|
171
171
|
],
|
|
172
|
-
"results":
|
|
173
|
-
|
|
172
|
+
"results": [
|
|
173
|
+
{
|
|
174
174
|
"type": "return",
|
|
175
175
|
"value": undefined,
|
|
176
176
|
},
|
|
@@ -180,7 +180,7 @@ Array [
|
|
|
180
180
|
"state": 7,
|
|
181
181
|
"weight": 1,
|
|
182
182
|
},
|
|
183
|
-
"payload":
|
|
183
|
+
"payload": {
|
|
184
184
|
"foo": "bar",
|
|
185
185
|
},
|
|
186
186
|
},
|
|
@@ -189,66 +189,66 @@ Array [
|
|
|
189
189
|
`;
|
|
190
190
|
|
|
191
191
|
exports[`HooksManager when there are preload hooks hook with screen: executes 1`] = `
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
194
|
"callback": [Function],
|
|
195
195
|
"hookPlugin": Hook {
|
|
196
|
-
"advertising":
|
|
197
|
-
"configuration":
|
|
196
|
+
"advertising": {},
|
|
197
|
+
"configuration": {
|
|
198
198
|
"name": "hook_screen",
|
|
199
199
|
},
|
|
200
|
-
"data":
|
|
201
|
-
"general":
|
|
200
|
+
"data": {},
|
|
201
|
+
"general": {
|
|
202
202
|
"allow_screen_plugin_presentation": true,
|
|
203
203
|
"is_flow_blocker": true,
|
|
204
204
|
},
|
|
205
205
|
"home": false,
|
|
206
|
-
"hooks":
|
|
207
|
-
"postload_plugins":
|
|
208
|
-
"preload_plugins":
|
|
206
|
+
"hooks": {
|
|
207
|
+
"postload_plugins": [],
|
|
208
|
+
"preload_plugins": [],
|
|
209
209
|
},
|
|
210
210
|
"id": "1bb8ad39-a42e-4096-a134-56aadbd35c83",
|
|
211
211
|
"identifier": "hook_screen",
|
|
212
212
|
"lastHook": true,
|
|
213
|
-
"manager":
|
|
213
|
+
"manager": {
|
|
214
214
|
"executeHook": [Function],
|
|
215
215
|
"handleHooks": [Function],
|
|
216
216
|
"presentScreenHook": [Function],
|
|
217
217
|
"runInBackground": [Function],
|
|
218
|
-
"subscriber":
|
|
219
|
-
"handlers":
|
|
220
|
-
"complete":
|
|
218
|
+
"subscriber": {
|
|
219
|
+
"handlers": {
|
|
220
|
+
"complete": [
|
|
221
221
|
[MockFunction] {
|
|
222
|
-
"calls":
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
"calls": [
|
|
223
|
+
[
|
|
224
|
+
{
|
|
225
225
|
"callback": [Function],
|
|
226
226
|
"hookPlugin": [Circular],
|
|
227
|
-
"payload":
|
|
227
|
+
"payload": {
|
|
228
228
|
"foo": "bar",
|
|
229
229
|
},
|
|
230
230
|
},
|
|
231
231
|
[Function],
|
|
232
232
|
],
|
|
233
233
|
],
|
|
234
|
-
"results":
|
|
235
|
-
|
|
234
|
+
"results": [
|
|
235
|
+
{
|
|
236
236
|
"type": "return",
|
|
237
237
|
"value": undefined,
|
|
238
238
|
},
|
|
239
239
|
],
|
|
240
240
|
},
|
|
241
241
|
],
|
|
242
|
-
"presentScreenHook":
|
|
242
|
+
"presentScreenHook": [
|
|
243
243
|
[MockFunction] {
|
|
244
|
-
"calls":
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
"calls": [
|
|
245
|
+
[
|
|
246
|
+
{
|
|
247
247
|
"hookPlugin": [Circular],
|
|
248
|
-
"payload":
|
|
248
|
+
"payload": {
|
|
249
249
|
"callback": [Function],
|
|
250
250
|
"hookPlugin": [Circular],
|
|
251
|
-
"payload":
|
|
251
|
+
"payload": {
|
|
252
252
|
"foo": "bar",
|
|
253
253
|
},
|
|
254
254
|
},
|
|
@@ -257,21 +257,21 @@ Array [
|
|
|
257
257
|
[Function],
|
|
258
258
|
],
|
|
259
259
|
],
|
|
260
|
-
"results":
|
|
261
|
-
|
|
260
|
+
"results": [
|
|
261
|
+
{
|
|
262
262
|
"type": "return",
|
|
263
263
|
"value": undefined,
|
|
264
264
|
},
|
|
265
265
|
],
|
|
266
266
|
},
|
|
267
267
|
],
|
|
268
|
-
"success":
|
|
268
|
+
"success": [
|
|
269
269
|
[MockFunction] {
|
|
270
|
-
"calls":
|
|
270
|
+
"calls": [
|
|
271
271
|
[Circular],
|
|
272
272
|
],
|
|
273
|
-
"results":
|
|
274
|
-
|
|
273
|
+
"results": [
|
|
274
|
+
{
|
|
275
275
|
"type": "return",
|
|
276
276
|
"value": undefined,
|
|
277
277
|
},
|
|
@@ -284,14 +284,14 @@ Array [
|
|
|
284
284
|
"removeHandler": [Function],
|
|
285
285
|
},
|
|
286
286
|
},
|
|
287
|
-
"module":
|
|
287
|
+
"module": {
|
|
288
288
|
"isFlowBlocker": [Function],
|
|
289
289
|
"run": [MockFunction],
|
|
290
290
|
},
|
|
291
291
|
"name": "Hook: F_blocker, allow_P, present",
|
|
292
|
-
"navigations":
|
|
293
|
-
|
|
294
|
-
"assets":
|
|
292
|
+
"navigations": [
|
|
293
|
+
{
|
|
294
|
+
"assets": {
|
|
295
295
|
"arrow_image_url": "https://assets-secure.applicaster.com/zapp/default_ui_components/default_assets/side_menu/arrow.png",
|
|
296
296
|
"close_button_image_url": "https://assets-secure.applicaster.com/zapp/default_ui_components/default_assets/side_menu/close.png",
|
|
297
297
|
},
|
|
@@ -299,67 +299,67 @@ Array [
|
|
|
299
299
|
"default": false,
|
|
300
300
|
"id": "3d7b4d04-1526-4116-baeb-bfb28f40f07b",
|
|
301
301
|
"name": "2-Level Menu",
|
|
302
|
-
"nav_items":
|
|
303
|
-
|
|
304
|
-
"assets":
|
|
305
|
-
"data":
|
|
302
|
+
"nav_items": [
|
|
303
|
+
{
|
|
304
|
+
"assets": {},
|
|
305
|
+
"data": {
|
|
306
306
|
"connected": null,
|
|
307
307
|
"source": null,
|
|
308
308
|
"target": "29cf3064-6acd-4a7f-961a-503a7d4fa8f9",
|
|
309
309
|
"type": null,
|
|
310
310
|
},
|
|
311
|
-
"general":
|
|
311
|
+
"general": {
|
|
312
312
|
"home": false,
|
|
313
313
|
"new": false,
|
|
314
314
|
},
|
|
315
315
|
"id": "f0387fba-636f-43e0-9a4f-e4fff551e1c0",
|
|
316
316
|
"position": 1,
|
|
317
|
-
"styles":
|
|
317
|
+
"styles": {},
|
|
318
318
|
"title": "Home",
|
|
319
319
|
"type": "label",
|
|
320
320
|
},
|
|
321
|
-
|
|
322
|
-
"assets":
|
|
323
|
-
"data":
|
|
321
|
+
{
|
|
322
|
+
"assets": {},
|
|
323
|
+
"data": {
|
|
324
324
|
"connected": null,
|
|
325
325
|
"source": null,
|
|
326
326
|
"target": "b886e64a-1234-4cd5-96ce-69629f11cdf8",
|
|
327
327
|
"type": null,
|
|
328
328
|
},
|
|
329
|
-
"general":
|
|
329
|
+
"general": {
|
|
330
330
|
"home": false,
|
|
331
331
|
"new": false,
|
|
332
332
|
},
|
|
333
333
|
"id": "c666eb1e-46d3-4dcb-8b8c-a7c0fe560deb",
|
|
334
334
|
"position": 2,
|
|
335
|
-
"styles":
|
|
335
|
+
"styles": {},
|
|
336
336
|
"title": "All Shows",
|
|
337
337
|
"type": "label",
|
|
338
338
|
},
|
|
339
|
-
|
|
340
|
-
"assets":
|
|
341
|
-
"data":
|
|
339
|
+
{
|
|
340
|
+
"assets": {},
|
|
341
|
+
"data": {
|
|
342
342
|
"connected": null,
|
|
343
343
|
"source": null,
|
|
344
344
|
"target": "8b57d5ad-dc15-42b4-9e6d-1ce5a3c36922",
|
|
345
345
|
"type": null,
|
|
346
346
|
},
|
|
347
|
-
"general":
|
|
347
|
+
"general": {
|
|
348
348
|
"home": false,
|
|
349
349
|
"new": false,
|
|
350
350
|
},
|
|
351
351
|
"id": "f969f1d8-e0cc-4ca6-ba71-5d219929f2b6",
|
|
352
352
|
"position": 3,
|
|
353
|
-
"styles":
|
|
353
|
+
"styles": {},
|
|
354
354
|
"title": "Screen Picker",
|
|
355
355
|
"type": "label",
|
|
356
356
|
},
|
|
357
357
|
],
|
|
358
358
|
"navigation_type": "two_level_rn_menu",
|
|
359
|
-
"rules":
|
|
359
|
+
"rules": {
|
|
360
360
|
"screen_transition": "slide-from-left",
|
|
361
361
|
},
|
|
362
|
-
"styles":
|
|
362
|
+
"styles": {
|
|
363
363
|
"align": "default",
|
|
364
364
|
"android_font_family": "Roboto-Regular",
|
|
365
365
|
"android_font_size": "13",
|
|
@@ -379,35 +379,35 @@ Array [
|
|
|
379
379
|
"separation_line_color": "#00000000",
|
|
380
380
|
},
|
|
381
381
|
},
|
|
382
|
-
|
|
383
|
-
"assets":
|
|
382
|
+
{
|
|
383
|
+
"assets": {},
|
|
384
384
|
"category": "nav_bar",
|
|
385
385
|
"default": true,
|
|
386
386
|
"id": "357084dc-d2c0-4780-8dd6-295e18c7cc7f",
|
|
387
387
|
"name": "Navigation Bar",
|
|
388
|
-
"nav_items":
|
|
389
|
-
|
|
390
|
-
"assets":
|
|
391
|
-
"data":
|
|
388
|
+
"nav_items": [
|
|
389
|
+
{
|
|
390
|
+
"assets": {},
|
|
391
|
+
"data": {
|
|
392
392
|
"connected": null,
|
|
393
393
|
"source": null,
|
|
394
394
|
"target": "b886e64a-1234-4cd5-96ce-69629f11cdf8",
|
|
395
395
|
"type": null,
|
|
396
396
|
},
|
|
397
|
-
"general":
|
|
397
|
+
"general": {
|
|
398
398
|
"home": false,
|
|
399
399
|
"new": false,
|
|
400
400
|
},
|
|
401
401
|
"id": "500f03b6-17ba-4533-ad20-985272484c1d",
|
|
402
402
|
"position": 1,
|
|
403
|
-
"styles":
|
|
403
|
+
"styles": {},
|
|
404
404
|
"title": "All Shows",
|
|
405
405
|
"type": "button",
|
|
406
406
|
},
|
|
407
407
|
],
|
|
408
408
|
"navigation_type": "navigation_bar",
|
|
409
|
-
"rules":
|
|
410
|
-
"styles":
|
|
409
|
+
"rules": {},
|
|
410
|
+
"styles": {
|
|
411
411
|
"android_font_family": "Roboto-Medium",
|
|
412
412
|
"background_color": "#ff4a90e2",
|
|
413
413
|
"background_type": "Color",
|
|
@@ -421,18 +421,18 @@ Array [
|
|
|
421
421
|
},
|
|
422
422
|
},
|
|
423
423
|
],
|
|
424
|
-
"rules":
|
|
424
|
+
"rules": {},
|
|
425
425
|
"screen_id": "1bb8ad39-a42e-4096-a134-56aadbd35c83",
|
|
426
426
|
"state": 7,
|
|
427
|
-
"styles":
|
|
427
|
+
"styles": {
|
|
428
428
|
"family": "FAMILY_1",
|
|
429
429
|
"presentation": "present",
|
|
430
430
|
},
|
|
431
431
|
"type": "general",
|
|
432
|
-
"ui_components":
|
|
432
|
+
"ui_components": [],
|
|
433
433
|
"weight": 7,
|
|
434
434
|
},
|
|
435
|
-
"payload":
|
|
435
|
+
"payload": {
|
|
436
436
|
"foo": "bar",
|
|
437
437
|
},
|
|
438
438
|
},
|
|
@@ -441,57 +441,57 @@ Array [
|
|
|
441
441
|
`;
|
|
442
442
|
|
|
443
443
|
exports[`HooksManager when there are preload hooks hook with screen: executes 2`] = `
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
[
|
|
445
|
+
{
|
|
446
446
|
"callback": [Function],
|
|
447
447
|
"hookPlugin": Hook {
|
|
448
|
-
"advertising":
|
|
449
|
-
"configuration":
|
|
448
|
+
"advertising": {},
|
|
449
|
+
"configuration": {
|
|
450
450
|
"name": "hook_screen",
|
|
451
451
|
},
|
|
452
|
-
"data":
|
|
453
|
-
"general":
|
|
452
|
+
"data": {},
|
|
453
|
+
"general": {
|
|
454
454
|
"allow_screen_plugin_presentation": true,
|
|
455
455
|
"is_flow_blocker": true,
|
|
456
456
|
},
|
|
457
457
|
"home": false,
|
|
458
|
-
"hooks":
|
|
459
|
-
"postload_plugins":
|
|
460
|
-
"preload_plugins":
|
|
458
|
+
"hooks": {
|
|
459
|
+
"postload_plugins": [],
|
|
460
|
+
"preload_plugins": [],
|
|
461
461
|
},
|
|
462
462
|
"id": "1bb8ad39-a42e-4096-a134-56aadbd35c83",
|
|
463
463
|
"identifier": "hook_screen",
|
|
464
464
|
"lastHook": true,
|
|
465
|
-
"manager":
|
|
465
|
+
"manager": {
|
|
466
466
|
"executeHook": [Function],
|
|
467
467
|
"handleHooks": [Function],
|
|
468
468
|
"presentScreenHook": [Function],
|
|
469
469
|
"runInBackground": [Function],
|
|
470
|
-
"subscriber":
|
|
471
|
-
"handlers":
|
|
472
|
-
"complete":
|
|
470
|
+
"subscriber": {
|
|
471
|
+
"handlers": {
|
|
472
|
+
"complete": [
|
|
473
473
|
[MockFunction] {
|
|
474
|
-
"calls":
|
|
474
|
+
"calls": [
|
|
475
475
|
[Circular],
|
|
476
476
|
],
|
|
477
|
-
"results":
|
|
478
|
-
|
|
477
|
+
"results": [
|
|
478
|
+
{
|
|
479
479
|
"type": "return",
|
|
480
480
|
"value": undefined,
|
|
481
481
|
},
|
|
482
482
|
],
|
|
483
483
|
},
|
|
484
484
|
],
|
|
485
|
-
"presentScreenHook":
|
|
485
|
+
"presentScreenHook": [
|
|
486
486
|
[MockFunction] {
|
|
487
|
-
"calls":
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
"calls": [
|
|
488
|
+
[
|
|
489
|
+
{
|
|
490
490
|
"hookPlugin": [Circular],
|
|
491
|
-
"payload":
|
|
491
|
+
"payload": {
|
|
492
492
|
"callback": [Function],
|
|
493
493
|
"hookPlugin": [Circular],
|
|
494
|
-
"payload":
|
|
494
|
+
"payload": {
|
|
495
495
|
"foo": "bar",
|
|
496
496
|
},
|
|
497
497
|
},
|
|
@@ -500,30 +500,30 @@ Array [
|
|
|
500
500
|
[Function],
|
|
501
501
|
],
|
|
502
502
|
],
|
|
503
|
-
"results":
|
|
504
|
-
|
|
503
|
+
"results": [
|
|
504
|
+
{
|
|
505
505
|
"type": "return",
|
|
506
506
|
"value": undefined,
|
|
507
507
|
},
|
|
508
508
|
],
|
|
509
509
|
},
|
|
510
510
|
],
|
|
511
|
-
"success":
|
|
511
|
+
"success": [
|
|
512
512
|
[MockFunction] {
|
|
513
|
-
"calls":
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
"calls": [
|
|
514
|
+
[
|
|
515
|
+
{
|
|
516
516
|
"callback": [Function],
|
|
517
517
|
"hookPlugin": [Circular],
|
|
518
|
-
"payload":
|
|
518
|
+
"payload": {
|
|
519
519
|
"foo": "bar",
|
|
520
520
|
},
|
|
521
521
|
},
|
|
522
522
|
[Function],
|
|
523
523
|
],
|
|
524
524
|
],
|
|
525
|
-
"results":
|
|
526
|
-
|
|
525
|
+
"results": [
|
|
526
|
+
{
|
|
527
527
|
"type": "return",
|
|
528
528
|
"value": undefined,
|
|
529
529
|
},
|
|
@@ -536,14 +536,14 @@ Array [
|
|
|
536
536
|
"removeHandler": [Function],
|
|
537
537
|
},
|
|
538
538
|
},
|
|
539
|
-
"module":
|
|
539
|
+
"module": {
|
|
540
540
|
"isFlowBlocker": [Function],
|
|
541
541
|
"run": [MockFunction],
|
|
542
542
|
},
|
|
543
543
|
"name": "Hook: F_blocker, allow_P, present",
|
|
544
|
-
"navigations":
|
|
545
|
-
|
|
546
|
-
"assets":
|
|
544
|
+
"navigations": [
|
|
545
|
+
{
|
|
546
|
+
"assets": {
|
|
547
547
|
"arrow_image_url": "https://assets-secure.applicaster.com/zapp/default_ui_components/default_assets/side_menu/arrow.png",
|
|
548
548
|
"close_button_image_url": "https://assets-secure.applicaster.com/zapp/default_ui_components/default_assets/side_menu/close.png",
|
|
549
549
|
},
|
|
@@ -551,67 +551,67 @@ Array [
|
|
|
551
551
|
"default": false,
|
|
552
552
|
"id": "3d7b4d04-1526-4116-baeb-bfb28f40f07b",
|
|
553
553
|
"name": "2-Level Menu",
|
|
554
|
-
"nav_items":
|
|
555
|
-
|
|
556
|
-
"assets":
|
|
557
|
-
"data":
|
|
554
|
+
"nav_items": [
|
|
555
|
+
{
|
|
556
|
+
"assets": {},
|
|
557
|
+
"data": {
|
|
558
558
|
"connected": null,
|
|
559
559
|
"source": null,
|
|
560
560
|
"target": "29cf3064-6acd-4a7f-961a-503a7d4fa8f9",
|
|
561
561
|
"type": null,
|
|
562
562
|
},
|
|
563
|
-
"general":
|
|
563
|
+
"general": {
|
|
564
564
|
"home": false,
|
|
565
565
|
"new": false,
|
|
566
566
|
},
|
|
567
567
|
"id": "f0387fba-636f-43e0-9a4f-e4fff551e1c0",
|
|
568
568
|
"position": 1,
|
|
569
|
-
"styles":
|
|
569
|
+
"styles": {},
|
|
570
570
|
"title": "Home",
|
|
571
571
|
"type": "label",
|
|
572
572
|
},
|
|
573
|
-
|
|
574
|
-
"assets":
|
|
575
|
-
"data":
|
|
573
|
+
{
|
|
574
|
+
"assets": {},
|
|
575
|
+
"data": {
|
|
576
576
|
"connected": null,
|
|
577
577
|
"source": null,
|
|
578
578
|
"target": "b886e64a-1234-4cd5-96ce-69629f11cdf8",
|
|
579
579
|
"type": null,
|
|
580
580
|
},
|
|
581
|
-
"general":
|
|
581
|
+
"general": {
|
|
582
582
|
"home": false,
|
|
583
583
|
"new": false,
|
|
584
584
|
},
|
|
585
585
|
"id": "c666eb1e-46d3-4dcb-8b8c-a7c0fe560deb",
|
|
586
586
|
"position": 2,
|
|
587
|
-
"styles":
|
|
587
|
+
"styles": {},
|
|
588
588
|
"title": "All Shows",
|
|
589
589
|
"type": "label",
|
|
590
590
|
},
|
|
591
|
-
|
|
592
|
-
"assets":
|
|
593
|
-
"data":
|
|
591
|
+
{
|
|
592
|
+
"assets": {},
|
|
593
|
+
"data": {
|
|
594
594
|
"connected": null,
|
|
595
595
|
"source": null,
|
|
596
596
|
"target": "8b57d5ad-dc15-42b4-9e6d-1ce5a3c36922",
|
|
597
597
|
"type": null,
|
|
598
598
|
},
|
|
599
|
-
"general":
|
|
599
|
+
"general": {
|
|
600
600
|
"home": false,
|
|
601
601
|
"new": false,
|
|
602
602
|
},
|
|
603
603
|
"id": "f969f1d8-e0cc-4ca6-ba71-5d219929f2b6",
|
|
604
604
|
"position": 3,
|
|
605
|
-
"styles":
|
|
605
|
+
"styles": {},
|
|
606
606
|
"title": "Screen Picker",
|
|
607
607
|
"type": "label",
|
|
608
608
|
},
|
|
609
609
|
],
|
|
610
610
|
"navigation_type": "two_level_rn_menu",
|
|
611
|
-
"rules":
|
|
611
|
+
"rules": {
|
|
612
612
|
"screen_transition": "slide-from-left",
|
|
613
613
|
},
|
|
614
|
-
"styles":
|
|
614
|
+
"styles": {
|
|
615
615
|
"align": "default",
|
|
616
616
|
"android_font_family": "Roboto-Regular",
|
|
617
617
|
"android_font_size": "13",
|
|
@@ -631,35 +631,35 @@ Array [
|
|
|
631
631
|
"separation_line_color": "#00000000",
|
|
632
632
|
},
|
|
633
633
|
},
|
|
634
|
-
|
|
635
|
-
"assets":
|
|
634
|
+
{
|
|
635
|
+
"assets": {},
|
|
636
636
|
"category": "nav_bar",
|
|
637
637
|
"default": true,
|
|
638
638
|
"id": "357084dc-d2c0-4780-8dd6-295e18c7cc7f",
|
|
639
639
|
"name": "Navigation Bar",
|
|
640
|
-
"nav_items":
|
|
641
|
-
|
|
642
|
-
"assets":
|
|
643
|
-
"data":
|
|
640
|
+
"nav_items": [
|
|
641
|
+
{
|
|
642
|
+
"assets": {},
|
|
643
|
+
"data": {
|
|
644
644
|
"connected": null,
|
|
645
645
|
"source": null,
|
|
646
646
|
"target": "b886e64a-1234-4cd5-96ce-69629f11cdf8",
|
|
647
647
|
"type": null,
|
|
648
648
|
},
|
|
649
|
-
"general":
|
|
649
|
+
"general": {
|
|
650
650
|
"home": false,
|
|
651
651
|
"new": false,
|
|
652
652
|
},
|
|
653
653
|
"id": "500f03b6-17ba-4533-ad20-985272484c1d",
|
|
654
654
|
"position": 1,
|
|
655
|
-
"styles":
|
|
655
|
+
"styles": {},
|
|
656
656
|
"title": "All Shows",
|
|
657
657
|
"type": "button",
|
|
658
658
|
},
|
|
659
659
|
],
|
|
660
660
|
"navigation_type": "navigation_bar",
|
|
661
|
-
"rules":
|
|
662
|
-
"styles":
|
|
661
|
+
"rules": {},
|
|
662
|
+
"styles": {
|
|
663
663
|
"android_font_family": "Roboto-Medium",
|
|
664
664
|
"background_color": "#ff4a90e2",
|
|
665
665
|
"background_type": "Color",
|
|
@@ -673,18 +673,18 @@ Array [
|
|
|
673
673
|
},
|
|
674
674
|
},
|
|
675
675
|
],
|
|
676
|
-
"rules":
|
|
676
|
+
"rules": {},
|
|
677
677
|
"screen_id": "1bb8ad39-a42e-4096-a134-56aadbd35c83",
|
|
678
678
|
"state": 7,
|
|
679
|
-
"styles":
|
|
679
|
+
"styles": {
|
|
680
680
|
"family": "FAMILY_1",
|
|
681
681
|
"presentation": "present",
|
|
682
682
|
},
|
|
683
683
|
"type": "general",
|
|
684
|
-
"ui_components":
|
|
684
|
+
"ui_components": [],
|
|
685
685
|
"weight": 7,
|
|
686
686
|
},
|
|
687
|
-
"payload":
|
|
687
|
+
"payload": {
|
|
688
688
|
"foo": "bar",
|
|
689
689
|
},
|
|
690
690
|
},
|