@applicaster/quick-brick-core 14.0.0-alpha.3259144304 → 14.0.0-alpha.3497255033
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/App/ActionSetters/index.ts +0 -1
- package/App/ActionsProvider/index.js +1 -1
- package/App/AppStateDecorator/index.tsx +9 -4
- package/App/DeepLinking/URLSchemeHandler/SchemeHandlerHooks/__tests__/usePresentSchemeHandler.test.tsx +11 -4
- package/App/DeepLinking/URLSchemeHandler/SchemeHandlerHooks/useOpenSchemeHandler/index.ts +7 -2
- package/App/DeepLinking/URLSchemeHandler/SchemeHandlerHooks/usePresentSchemeHandler.ts +6 -4
- package/App/DeepLinking/URLSchemeHandler/__tests__/URLSchemeHandler.test.tsx +4 -4
- package/App/ErrorBoundary/index.tsx +4 -0
- package/App/ModalProvider/ModalBottomSheet/DraggableBottomSheet/index.tsx +2 -2
- package/App/ModalProvider/ModalBottomSheet/ModalBottomSheetFrame.tsx +6 -1
- package/App/ModalProvider/ModalChildrenWrapper/index.tsx +2 -7
- package/App/ModalProvider/ModalPresenter.tsx +2 -1
- package/App/NavigationProvider/NavigationProvider.tsx +29 -9
- package/App/NavigationProvider/navigator/__tests__/__snapshots__/reducer.test.ts.snap +0 -177
- package/App/NavigationProvider/navigator/__tests__/reducer.test.ts +2 -70
- package/App/NavigationProvider/navigator/reducer.ts +30 -101
- package/App/NavigationProvider/navigator/selectors.ts +2 -1
- package/App/RouterDecorator/__tests__/routerDecorator.test.js +3 -3
- package/App/StoreConnector/index.ts +1 -1
- package/App/ThemeManager/index.tsx +9 -1
- package/App/__tests__/createQuickBrickApp.test.js +13 -10
- package/App/appLifeCycleManager/__tests__/appLifeCycleManager.test.tsx +22 -27
- package/App/appLifeCycleManager/index.tsx +5 -6
- package/App/components/ZappAppWrapper.ts +3 -0
- package/App/components/ZappAppWrapper.web.ts +3 -0
- package/App/index.tsx +28 -22
- package/App/remoteContextReloader/__tests__/getRemoteContextData.test.js +11 -12
- package/App/remoteContextReloader/getRemoteContextData/getNativeRemoteContextData.ts +5 -3
- package/README.md +0 -4
- package/const/index.ts +6 -0
- package/createZappApp/__tests__/createZappApp.test.js +11 -0
- package/createZappApp/index.tsx +4 -5
- package/index.d.ts +0 -1
- package/package.json +9 -20
- package/renderZappApp/index.js +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as R from "ramda";
|
|
3
3
|
|
|
4
|
-
import { connectToStore } from "@applicaster/zapp-react-native-redux";
|
|
4
|
+
import { connectToStore } from "@applicaster/zapp-react-native-redux/utils/connectToStore";
|
|
5
5
|
|
|
6
6
|
import { ActionsProvider as ActionsProviderComponent } from "./ActionsProvider";
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@ import * as React from "react";
|
|
|
2
2
|
import { AppState, AppStateStatus } from "react-native";
|
|
3
3
|
import * as R from "ramda";
|
|
4
4
|
|
|
5
|
-
import { connectToStore } from "@applicaster/zapp-react-native-redux";
|
|
5
|
+
import { connectToStore } from "@applicaster/zapp-react-native-redux/utils/connectToStore";
|
|
6
6
|
import { setAppState } from "@applicaster/zapp-react-native-redux/appState";
|
|
7
|
-
import { Dispatch } from "
|
|
7
|
+
import { Dispatch } from "@reduxjs/toolkit";
|
|
8
8
|
|
|
9
9
|
type Props = {
|
|
10
10
|
Component: () => React.ComponentType<any>;
|
|
@@ -19,6 +19,7 @@ function withAppManagerDecorator(
|
|
|
19
19
|
currentState: AppStateStatus;
|
|
20
20
|
isAvailable: boolean;
|
|
21
21
|
plugins: QuickBrickPlugin[];
|
|
22
|
+
appStateListener: ReturnType<typeof AppState.addEventListener>;
|
|
22
23
|
|
|
23
24
|
constructor(props: Props) {
|
|
24
25
|
super(props);
|
|
@@ -30,11 +31,15 @@ function withAppManagerDecorator(
|
|
|
30
31
|
|
|
31
32
|
componentDidMount() {
|
|
32
33
|
this.plugins = this.getAppStatePlugins();
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
this.appStateListener = AppState.addEventListener(
|
|
36
|
+
"change",
|
|
37
|
+
this.onChange
|
|
38
|
+
);
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
componentWillUnmount() {
|
|
37
|
-
|
|
42
|
+
this.appStateListener.remove();
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
dispatchAction(nextState: AppStateStatus, eventType) {
|
|
@@ -4,7 +4,6 @@ import { renderHook } from "@testing-library/react-native";
|
|
|
4
4
|
import { sessionStorage } from "@applicaster/zapp-react-native-bridge/ZappStorage/SessionStorage";
|
|
5
5
|
import * as helpers from "../../../helpers";
|
|
6
6
|
import * as feedLoader from "@applicaster/zapp-react-native-utils/reactHooks/feed/useFeedLoader";
|
|
7
|
-
import * as useNavigationHooks from "@applicaster/zapp-react-native-utils/reactHooks/navigation/useNavigation";
|
|
8
7
|
import { WrappedWithProviders } from "@applicaster/zapp-react-native-utils/testUtils";
|
|
9
8
|
import { usePresentSchemeHandler } from "../usePresentSchemeHandler";
|
|
10
9
|
|
|
@@ -16,15 +15,20 @@ const rivers = {
|
|
|
16
15
|
},
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
const
|
|
18
|
+
const mock_navigator = {
|
|
20
19
|
currentRoute: "/river/A1234",
|
|
21
20
|
replace: jest.fn(),
|
|
22
21
|
goHome: jest.fn(),
|
|
23
22
|
} as any;
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
jest.mock(
|
|
25
|
+
"@applicaster/zapp-react-native-utils/reactHooks/navigation/useNavigation",
|
|
26
|
+
() => ({
|
|
27
|
+
useNavigation: jest.fn(() => mock_navigator),
|
|
28
|
+
})
|
|
29
|
+
);
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
const mockStore = configureStore();
|
|
28
32
|
|
|
29
33
|
const helperSpy = jest.spyOn(helpers, "handlePresentNavigation");
|
|
30
34
|
const feedLoaderSpy = jest.spyOn(feedLoader, "useFeedLoader");
|
|
@@ -33,6 +37,7 @@ const onFinish = jest.fn((cb) => {
|
|
|
33
37
|
cb();
|
|
34
38
|
});
|
|
35
39
|
|
|
40
|
+
const navigator = mock_navigator;
|
|
36
41
|
jest.useFakeTimers();
|
|
37
42
|
|
|
38
43
|
describe("usePresentSchemeHandler", () => {
|
|
@@ -210,6 +215,8 @@ describe("usePresentSchemeHandler", () => {
|
|
|
210
215
|
actions?.find(R.propEq("type", "SET_APP_NOT_READY"))
|
|
211
216
|
).toBeDefined();
|
|
212
217
|
|
|
218
|
+
expect(actions?.find(R.propEq("type", "SET_APP_READY"))).toBeDefined();
|
|
219
|
+
|
|
213
220
|
expect(navigator.replace).toBeCalledWith({});
|
|
214
221
|
};
|
|
215
222
|
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
useAppSelector,
|
|
3
|
+
selectContentTypes,
|
|
4
|
+
selectRivers,
|
|
5
|
+
} from "@applicaster/zapp-react-native-redux";
|
|
2
6
|
import { ZappPipesEntryContext } from "@applicaster/zapp-react-native-ui-components/Contexts";
|
|
3
7
|
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks/navigation";
|
|
4
8
|
import { useEffect } from "react";
|
|
@@ -97,7 +101,8 @@ async function handleQuery({
|
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
export function useOpenSchemeHandler({ query, url, onFinish }) {
|
|
100
|
-
const
|
|
104
|
+
const rivers = useAppSelector(selectRivers);
|
|
105
|
+
const contentTypes = useAppSelector(selectContentTypes);
|
|
101
106
|
const navigator = useNavigation();
|
|
102
107
|
const homeId = getHomeScreenId(rivers);
|
|
103
108
|
const homeRoute = `/river/${homeId}`;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
loadAppContextData,
|
|
3
|
+
useAppDispatch,
|
|
4
|
+
useActions,
|
|
5
|
+
} from "@applicaster/zapp-react-native-redux";
|
|
2
6
|
import * as R from "ramda";
|
|
3
7
|
import * as React from "react";
|
|
4
8
|
import axios from "axios";
|
|
5
|
-
import { useDispatch } from "react-redux";
|
|
6
9
|
|
|
7
10
|
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
8
11
|
|
|
9
12
|
import { useFeedLoader } from "@applicaster/zapp-react-native-utils/reactHooks/feed/useFeedLoader";
|
|
10
13
|
|
|
11
14
|
import { sessionStorage } from "@applicaster/zapp-react-native-bridge/ZappStorage/SessionStorage";
|
|
12
|
-
import { loadAppContextData } from "@applicaster/zapp-react-native-redux";
|
|
13
15
|
import { noop } from "@applicaster/zapp-react-native-utils/functionUtils";
|
|
14
16
|
|
|
15
17
|
import {
|
|
@@ -60,7 +62,7 @@ export function usePresentSchemeHandler({
|
|
|
60
62
|
|
|
61
63
|
const rivers = useRivers();
|
|
62
64
|
const screenRiver = findRiver({ screen_id, rivers });
|
|
63
|
-
const dispatch =
|
|
65
|
+
const dispatch = useAppDispatch();
|
|
64
66
|
|
|
65
67
|
const actions = useActions({
|
|
66
68
|
setAppReady,
|
|
@@ -6,16 +6,16 @@ const theme = {
|
|
|
6
6
|
app_background_color: "white",
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
jest.mock(
|
|
10
|
+
"@applicaster/zapp-react-native-utils/reactHooks/navigation/useNavigation"
|
|
11
|
+
);
|
|
12
12
|
|
|
13
13
|
jest.mock("@applicaster/zapp-react-native-utils/theme", () => ({
|
|
14
14
|
useTheme: jest.fn(() => theme),
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
jest.mock("@applicaster/zapp-react-native-redux/hooks", () => ({
|
|
18
|
-
usePickFromState: jest.fn(() =>
|
|
18
|
+
usePickFromState: jest.fn(() => ({})),
|
|
19
19
|
}));
|
|
20
20
|
|
|
21
21
|
const { URLSchemeHandler } = require("../URLSchemeHandler");
|
|
@@ -60,6 +60,10 @@ export class ErrorBoundary extends React.Component<Props> {
|
|
|
60
60
|
useErrorStore.getState().setError(error, info, recoverable);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
static getDerivedStateFromError(_error) {
|
|
64
|
+
return { hasError: true };
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
render() {
|
|
64
68
|
return <ErrorBoundaryContent>{this.props.children}</ErrorBoundaryContent>;
|
|
65
69
|
}
|
|
@@ -52,9 +52,9 @@ export class DraggableBottomSheet extends Component<Props, ComponentState> {
|
|
|
52
52
|
_lastScrollYValue: number;
|
|
53
53
|
_lastScrollY: Animated.Value;
|
|
54
54
|
_dragY: Animated.Value;
|
|
55
|
-
_reverseLastScrollY: Animated.
|
|
55
|
+
_reverseLastScrollY: Animated.AnimatedInterpolation<number>;
|
|
56
56
|
_translateYOffset: Animated.Value;
|
|
57
|
-
_translateY: Animated.
|
|
57
|
+
_translateY: Animated.AnimatedInterpolation<number>;
|
|
58
58
|
_snapPoints: SnapPoints;
|
|
59
59
|
_prevContentHeight = 0;
|
|
60
60
|
|
|
@@ -42,12 +42,17 @@ const defaultBottomOffset = platformSelect({
|
|
|
42
42
|
android: 0,
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
+
const SAFE_AREA_BREAKING_API_VERSION = 35;
|
|
46
|
+
|
|
45
47
|
const getSheetHeight = ({ height, bottomOffset, maxHeight }) => {
|
|
46
48
|
return platformSelect({
|
|
47
49
|
ios: height - bottomOffset,
|
|
48
50
|
default:
|
|
49
51
|
(height || maxHeight) -
|
|
50
|
-
(
|
|
52
|
+
(isAndroidPlatform() &&
|
|
53
|
+
!isAndroidVersionAtLeast(SAFE_AREA_BREAKING_API_VERSION)
|
|
54
|
+
? bottomOffset
|
|
55
|
+
: 0),
|
|
51
56
|
});
|
|
52
57
|
};
|
|
53
58
|
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import React, { ReactChild } from "react";
|
|
2
|
-
import { StyleSheet, ViewProps } from "react-native";
|
|
3
|
-
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
2
|
+
import { View, StyleSheet, ViewProps } from "react-native";
|
|
4
3
|
|
|
5
4
|
type Props = ViewProps & { children: ReactChild };
|
|
6
5
|
|
|
7
6
|
export function ModalChildrenWrapper({ children }: Props) {
|
|
8
|
-
return
|
|
9
|
-
<GestureHandlerRootView style={StyleSheet.absoluteFill}>
|
|
10
|
-
{children}
|
|
11
|
-
</GestureHandlerRootView>
|
|
12
|
-
);
|
|
7
|
+
return <View style={StyleSheet.absoluteFill}>{children}</View>;
|
|
13
8
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Modal, ModalProps } from "react-native";
|
|
3
|
+
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
3
4
|
|
|
4
5
|
type Props = ModalProps & {
|
|
5
6
|
children: React.ReactChild;
|
|
@@ -13,7 +14,7 @@ export function ModalPresenter(props: Props) {
|
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<Presenter visible={visible} {...presenterOptions}>
|
|
16
|
-
{children}
|
|
17
|
+
<GestureHandlerRootView>{children}</GestureHandlerRootView>
|
|
17
18
|
</Presenter>
|
|
18
19
|
);
|
|
19
20
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
getTargetRoute,
|
|
8
8
|
usesVideoModal,
|
|
9
9
|
} from "@applicaster/zapp-react-native-utils/navigationUtils";
|
|
10
|
+
import { last } from "@applicaster/zapp-react-native-utils/utils";
|
|
10
11
|
import {
|
|
11
12
|
allowedOrientationsForScreen,
|
|
12
13
|
useGetScreenOrientation,
|
|
@@ -121,8 +122,20 @@ export function NavigationProvider({ children }: Props) {
|
|
|
121
122
|
NavigationReducerState
|
|
122
123
|
>(reducer, initialState, (x) => x);
|
|
123
124
|
|
|
125
|
+
const topStackRoute = last(state?.stack?.mainStack);
|
|
126
|
+
|
|
127
|
+
/** TODO: temporary variable, before we remove need for a "current".
|
|
128
|
+
There is no current as we are using stack navigator. Route data should be contextualised per screen
|
|
129
|
+
There are some cases to use a route data from top of the stack but it should be separate method.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
const currentLocation = {
|
|
133
|
+
...topStackRoute,
|
|
134
|
+
route: topStackRoute?.route || "/", // Fallback for initial state.
|
|
135
|
+
};
|
|
136
|
+
|
|
124
137
|
const stateRef = React.useRef<NavigationReducerState>(state);
|
|
125
|
-
const pathname =
|
|
138
|
+
const pathname = currentLocation?.route; // TODO: remove. Pathname is part of the route, not a global.
|
|
126
139
|
const pathnameRef = React.useRef(pathname);
|
|
127
140
|
|
|
128
141
|
const { context } = React.useContext(ZappPipesEntryContext.Context);
|
|
@@ -146,6 +159,8 @@ export function NavigationProvider({ children }: Props) {
|
|
|
146
159
|
}
|
|
147
160
|
}, [pathname]);
|
|
148
161
|
|
|
162
|
+
// TODO remove.
|
|
163
|
+
// There is no concept of active river. Multiple rivers can be rendered at the same time.
|
|
149
164
|
const activeRiver = React.useMemo(
|
|
150
165
|
() => activeRiverSelector({ pathname, rivers }),
|
|
151
166
|
[pathname, rivers]
|
|
@@ -186,6 +201,7 @@ export function NavigationProvider({ children }: Props) {
|
|
|
186
201
|
// TODO: Move in proper place
|
|
187
202
|
const modalPresenterScreenOrientation = useGetScreenOrientation(activeRiver);
|
|
188
203
|
|
|
204
|
+
// TODO: Move modal state to separate store
|
|
189
205
|
const closeVideoModal = () => {
|
|
190
206
|
if (navigator.modalData) {
|
|
191
207
|
allowedOrientationsForScreen(modalPresenterScreenOrientation);
|
|
@@ -213,13 +229,15 @@ export function NavigationProvider({ children }: Props) {
|
|
|
213
229
|
const isVideoModalDocked = () =>
|
|
214
230
|
state?.options.videoModal.mode === "MINIMIZED";
|
|
215
231
|
|
|
232
|
+
// TODO: Remove as it's using a concept of "current" route.
|
|
233
|
+
// Route is contextualised and shouldn't be used this way.
|
|
216
234
|
const routeData = () => {
|
|
217
235
|
// eslint-disable-next-line no-console
|
|
218
236
|
console.warn(`you are retrieving screen data from navigator.routeData()
|
|
219
237
|
This function will be removed in a later version of quick brick.
|
|
220
238
|
You can retrieve this data from navigator.screenData`);
|
|
221
239
|
|
|
222
|
-
return legacyScreenData(
|
|
240
|
+
return legacyScreenData(currentLocation?.state as NavigationScreenData);
|
|
223
241
|
};
|
|
224
242
|
|
|
225
243
|
// TODO: remove it by refactoring back buttons handlers
|
|
@@ -262,7 +280,7 @@ export function NavigationProvider({ children }: Props) {
|
|
|
262
280
|
if (
|
|
263
281
|
targetRoute !== pathnameRef.current ||
|
|
264
282
|
item?.id !==
|
|
265
|
-
legacyScreenData(
|
|
283
|
+
legacyScreenData(currentLocation?.state as NavigationScreenData)?.id
|
|
266
284
|
) {
|
|
267
285
|
replaceEvent();
|
|
268
286
|
navigateTo(item, ACTIONS.REPLACE, options);
|
|
@@ -688,7 +706,8 @@ export function NavigationProvider({ children }: Props) {
|
|
|
688
706
|
}
|
|
689
707
|
}, [state?.options?.videoModal?.previousMode]);
|
|
690
708
|
|
|
691
|
-
|
|
709
|
+
// TODO: remove. This shouldn't be part of navigator
|
|
710
|
+
const getNestedEntry = () => currentLocation?.state?.nested?.entry ?? null;
|
|
692
711
|
|
|
693
712
|
// It will only work for the regular stack and pathname, It won't work for modals
|
|
694
713
|
// TODO: integrate video/hook and regular modal into stack.
|
|
@@ -706,7 +725,7 @@ export function NavigationProvider({ children }: Props) {
|
|
|
706
725
|
() => ({
|
|
707
726
|
activeRiver,
|
|
708
727
|
getPathname: () => pathnameRef.current, // hack use to fix issue causing broken navigation as currentRoute is unreliable
|
|
709
|
-
currentRoute: pathname,
|
|
728
|
+
currentRoute: pathname, // TODO: remove. Current route shouldn't be needed
|
|
710
729
|
previousAction: lastEntrySelector(state)
|
|
711
730
|
?.action as QuickBrickNavigationActionType,
|
|
712
731
|
push: pushItem,
|
|
@@ -716,14 +735,15 @@ export function NavigationProvider({ children }: Props) {
|
|
|
716
735
|
goHome,
|
|
717
736
|
canGoBack,
|
|
718
737
|
goBack,
|
|
719
|
-
routeData,
|
|
738
|
+
routeData, // TODO: remove
|
|
720
739
|
screenData: legacyScreenData(
|
|
721
|
-
|
|
740
|
+
// TODO: remove
|
|
741
|
+
currentLocation?.state as NavigationScreenData,
|
|
722
742
|
plugins
|
|
723
743
|
),
|
|
724
|
-
data:
|
|
744
|
+
data: currentLocation?.state as NavigationScreenData,
|
|
725
745
|
getNestedEntry,
|
|
726
|
-
key:
|
|
746
|
+
key: currentLocation?.key, // TODO: remove
|
|
727
747
|
modalData: state.stack.modal?.state ?? null,
|
|
728
748
|
openModal,
|
|
729
749
|
dismissModal,
|
|
@@ -13,7 +13,6 @@ exports[`ACTIONS matches snapshot 1`] = `
|
|
|
13
13
|
"PUSH": "PUSH",
|
|
14
14
|
"REPLACE": "REPLACE",
|
|
15
15
|
"REPLACE_TOP": "REPLACE_TOP",
|
|
16
|
-
"SET_LOCATION": "SET_LOCATION",
|
|
17
16
|
"SET_NESTED_CONTENT": "SET_NESTED_CONTENT",
|
|
18
17
|
"SET_VIDEO_MODAL_ITEM": "SET_VIDEO_MODAL_ITEM",
|
|
19
18
|
}
|
|
@@ -22,30 +21,6 @@ exports[`ACTIONS matches snapshot 1`] = `
|
|
|
22
21
|
exports[`reducer when a back action is dispatched push, back, push, back does what it's supposed to do 1`] = `
|
|
23
22
|
{
|
|
24
23
|
"state1": {
|
|
25
|
-
"location": {
|
|
26
|
-
"key": "mocked-uuid",
|
|
27
|
-
"pathname": "/river/A1234",
|
|
28
|
-
"state": {
|
|
29
|
-
"entry": undefined,
|
|
30
|
-
"options": undefined,
|
|
31
|
-
"screen": {
|
|
32
|
-
"home": true,
|
|
33
|
-
"home_offline": true,
|
|
34
|
-
"hooks": {
|
|
35
|
-
"preload_plugins": [],
|
|
36
|
-
},
|
|
37
|
-
"id": "A1234",
|
|
38
|
-
"name": "Home",
|
|
39
|
-
"navigations": [
|
|
40
|
-
{
|
|
41
|
-
"id": "nav_id",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
"supports_offline": false,
|
|
45
|
-
"type": "general_content",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
24
|
"options": {
|
|
50
25
|
"videoModal": {
|
|
51
26
|
"item": null,
|
|
@@ -86,36 +61,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
86
61
|
},
|
|
87
62
|
},
|
|
88
63
|
"state2": {
|
|
89
|
-
"location": {
|
|
90
|
-
"key": "mocked-uuid",
|
|
91
|
-
"pathname": "/river/A1234/river/B7890",
|
|
92
|
-
"state": {
|
|
93
|
-
"entry": {
|
|
94
|
-
"id": "C0987",
|
|
95
|
-
"title": "Entry",
|
|
96
|
-
"type": {
|
|
97
|
-
"value": "feed",
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
"options": undefined,
|
|
101
|
-
"screen": {
|
|
102
|
-
"home": false,
|
|
103
|
-
"home_offline": false,
|
|
104
|
-
"hooks": {
|
|
105
|
-
"preload_plugins": [],
|
|
106
|
-
},
|
|
107
|
-
"id": "B5678",
|
|
108
|
-
"name": "Screen name",
|
|
109
|
-
"navigations": [
|
|
110
|
-
{
|
|
111
|
-
"id": "nav_id",
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
"supports_offline": false,
|
|
115
|
-
"type": "general_content",
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
64
|
"options": {
|
|
120
65
|
"videoModal": {
|
|
121
66
|
"item": null,
|
|
@@ -187,36 +132,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
187
132
|
},
|
|
188
133
|
},
|
|
189
134
|
"state3": {
|
|
190
|
-
"location": {
|
|
191
|
-
"key": "mocked-uuid",
|
|
192
|
-
"pathname": "/river/A1234/river/B7890/river/C0987",
|
|
193
|
-
"state": {
|
|
194
|
-
"entry": {
|
|
195
|
-
"id": "D1234",
|
|
196
|
-
"title": "Entry 2",
|
|
197
|
-
"type": {
|
|
198
|
-
"value": "video",
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
"options": undefined,
|
|
202
|
-
"screen": {
|
|
203
|
-
"home": false,
|
|
204
|
-
"home_offline": false,
|
|
205
|
-
"hooks": {
|
|
206
|
-
"preload_plugins": [],
|
|
207
|
-
},
|
|
208
|
-
"id": "C9090",
|
|
209
|
-
"name": "Screen 2 name",
|
|
210
|
-
"navigations": [
|
|
211
|
-
{
|
|
212
|
-
"id": "nav_id",
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
"supports_offline": false,
|
|
216
|
-
"type": "general_content",
|
|
217
|
-
},
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
135
|
"options": {
|
|
221
136
|
"videoModal": {
|
|
222
137
|
"item": null,
|
|
@@ -319,37 +234,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
319
234
|
},
|
|
320
235
|
},
|
|
321
236
|
"state4": {
|
|
322
|
-
"location": {
|
|
323
|
-
"action": "PUSH",
|
|
324
|
-
"key": "mocked-uuid",
|
|
325
|
-
"pathname": "/river/A1234/river/B7890",
|
|
326
|
-
"state": {
|
|
327
|
-
"entry": {
|
|
328
|
-
"id": "C0987",
|
|
329
|
-
"title": "Entry",
|
|
330
|
-
"type": {
|
|
331
|
-
"value": "feed",
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
"options": undefined,
|
|
335
|
-
"screen": {
|
|
336
|
-
"home": false,
|
|
337
|
-
"home_offline": false,
|
|
338
|
-
"hooks": {
|
|
339
|
-
"preload_plugins": [],
|
|
340
|
-
},
|
|
341
|
-
"id": "B5678",
|
|
342
|
-
"name": "Screen name",
|
|
343
|
-
"navigations": [
|
|
344
|
-
{
|
|
345
|
-
"id": "nav_id",
|
|
346
|
-
},
|
|
347
|
-
],
|
|
348
|
-
"supports_offline": false,
|
|
349
|
-
"type": "general_content",
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
},
|
|
353
237
|
"options": {
|
|
354
238
|
"videoModal": {
|
|
355
239
|
"item": null,
|
|
@@ -421,36 +305,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
421
305
|
},
|
|
422
306
|
},
|
|
423
307
|
"state5": {
|
|
424
|
-
"location": {
|
|
425
|
-
"key": "mocked-uuid",
|
|
426
|
-
"pathname": "/river/A1234/river/B7890/river/D5678",
|
|
427
|
-
"state": {
|
|
428
|
-
"entry": {
|
|
429
|
-
"id": "C0987",
|
|
430
|
-
"title": "Entry",
|
|
431
|
-
"type": {
|
|
432
|
-
"value": "feed",
|
|
433
|
-
},
|
|
434
|
-
},
|
|
435
|
-
"options": undefined,
|
|
436
|
-
"screen": {
|
|
437
|
-
"home": false,
|
|
438
|
-
"home_offline": false,
|
|
439
|
-
"hooks": {
|
|
440
|
-
"preload_plugins": [],
|
|
441
|
-
},
|
|
442
|
-
"id": "B5678",
|
|
443
|
-
"name": "Screen name",
|
|
444
|
-
"navigations": [
|
|
445
|
-
{
|
|
446
|
-
"id": "nav_id",
|
|
447
|
-
},
|
|
448
|
-
],
|
|
449
|
-
"supports_offline": false,
|
|
450
|
-
"type": "general_content",
|
|
451
|
-
},
|
|
452
|
-
},
|
|
453
|
-
},
|
|
454
308
|
"options": {
|
|
455
309
|
"videoModal": {
|
|
456
310
|
"item": null,
|
|
@@ -553,37 +407,6 @@ exports[`reducer when a back action is dispatched push, back, push, back does wh
|
|
|
553
407
|
},
|
|
554
408
|
},
|
|
555
409
|
"state6": {
|
|
556
|
-
"location": {
|
|
557
|
-
"action": "PUSH",
|
|
558
|
-
"key": "mocked-uuid",
|
|
559
|
-
"pathname": "/river/A1234/river/B7890",
|
|
560
|
-
"state": {
|
|
561
|
-
"entry": {
|
|
562
|
-
"id": "C0987",
|
|
563
|
-
"title": "Entry",
|
|
564
|
-
"type": {
|
|
565
|
-
"value": "feed",
|
|
566
|
-
},
|
|
567
|
-
},
|
|
568
|
-
"options": undefined,
|
|
569
|
-
"screen": {
|
|
570
|
-
"home": false,
|
|
571
|
-
"home_offline": false,
|
|
572
|
-
"hooks": {
|
|
573
|
-
"preload_plugins": [],
|
|
574
|
-
},
|
|
575
|
-
"id": "B5678",
|
|
576
|
-
"name": "Screen name",
|
|
577
|
-
"navigations": [
|
|
578
|
-
{
|
|
579
|
-
"id": "nav_id",
|
|
580
|
-
},
|
|
581
|
-
],
|
|
582
|
-
"supports_offline": false,
|
|
583
|
-
"type": "general_content",
|
|
584
|
-
},
|
|
585
|
-
},
|
|
586
|
-
},
|
|
587
410
|
"options": {
|
|
588
411
|
"videoModal": {
|
|
589
412
|
"item": null,
|