@applicaster/zapp-react-dom-app 13.0.10-alpha.9045951059 → 13.0.10-rc.0
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.
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
} from "@applicaster/zapp-react-native-utils/functionUtils";
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
|
-
AccessibilityManager,
|
|
20
19
|
ARROW_KEYS,
|
|
21
20
|
focusManager,
|
|
22
21
|
keyCode,
|
|
@@ -84,8 +83,8 @@ interface State {
|
|
|
84
83
|
|
|
85
84
|
type KeyCode = { code: string; keyCode: number | string };
|
|
86
85
|
|
|
87
|
-
const
|
|
88
|
-
"
|
|
86
|
+
export const alertConfirmationMesage =
|
|
87
|
+
"Are you sure you want to exit application?";
|
|
89
88
|
|
|
90
89
|
class InteractionManagerClass extends React.Component<Props, State> {
|
|
91
90
|
onKeyDownListener: (keyCode: KeyCode) => void;
|
|
@@ -102,8 +101,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
102
101
|
private confirmDialog: ConfirmationDialogState =
|
|
103
102
|
confirmationDialogStore.getState();
|
|
104
103
|
|
|
105
|
-
accessibilityManager: AccessibilityManager;
|
|
106
|
-
|
|
107
104
|
state: State = {
|
|
108
105
|
isKeyboardVisible: false,
|
|
109
106
|
keyboardInput: "",
|
|
@@ -155,7 +152,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
155
152
|
this.confirmDialog.setConfirmAction(this.performExit);
|
|
156
153
|
this.confirmDialog.setCancelAction(this.onConfirmDialogClose);
|
|
157
154
|
this.longPressDetector = new KeyboardLongPressManager();
|
|
158
|
-
this.accessibilityManager = AccessibilityManager.getInstance();
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
componentDidMount() {
|
|
@@ -261,6 +257,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
261
257
|
*/
|
|
262
258
|
showConfirmationDialog({
|
|
263
259
|
title: "",
|
|
260
|
+
message: alertConfirmationMesage,
|
|
264
261
|
confirmCompletion: this.performExit,
|
|
265
262
|
});
|
|
266
263
|
}
|
|
@@ -283,6 +280,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
283
280
|
} else {
|
|
284
281
|
showConfirmationDialog({
|
|
285
282
|
title: "",
|
|
283
|
+
message: alertConfirmationMesage,
|
|
286
284
|
confirmCompletion: this.performExit,
|
|
287
285
|
cancelCompletion: this.onConfirmDialogClose,
|
|
288
286
|
});
|
|
@@ -329,16 +327,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
329
327
|
return homePath === navigator.currentRoute;
|
|
330
328
|
}
|
|
331
329
|
|
|
332
|
-
isStartupHook() {
|
|
333
|
-
const { navigator } = this.props;
|
|
334
|
-
|
|
335
|
-
const isStartUpHook =
|
|
336
|
-
Array.isArray(navigator.startUpHooks) &&
|
|
337
|
-
navigator.startUpHooks.length > 0;
|
|
338
|
-
|
|
339
|
-
return isStartUpHook;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
330
|
goToHome() {
|
|
343
331
|
const { navigator } = this.props;
|
|
344
332
|
const { rivers } = this.props;
|
|
@@ -429,7 +417,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
429
417
|
this.onConfirmDialogClose();
|
|
430
418
|
} else if (navigator.canGoBack()) {
|
|
431
419
|
navigator.goBack();
|
|
432
|
-
} else if (this.isHomeScreen()
|
|
420
|
+
} else if (this.isHomeScreen()) {
|
|
433
421
|
this.platformBack();
|
|
434
422
|
} else if (navigator.currentRoute.includes("hook")) {
|
|
435
423
|
// If code reaches this block navigator cant go back, it is not home,
|
|
@@ -563,13 +551,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
563
551
|
) {
|
|
564
552
|
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
565
553
|
setDisplayState(DISPLAY_STATES.HUD);
|
|
566
|
-
|
|
567
|
-
this.accessibilityManager.addHeading(
|
|
568
|
-
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
569
|
-
);
|
|
570
|
-
|
|
571
|
-
focusManager.recoverFocus();
|
|
572
|
-
this.resetHudTimeout();
|
|
573
554
|
} else {
|
|
574
555
|
focusManager.pressIn();
|
|
575
556
|
focusManager.press();
|
|
@@ -614,12 +595,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
614
595
|
this.resetHudTimeout();
|
|
615
596
|
}
|
|
616
597
|
|
|
617
|
-
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
618
|
-
this.accessibilityManager.addHeading(
|
|
619
|
-
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
620
|
-
);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
598
|
return true;
|
|
624
599
|
}
|
|
625
600
|
}
|
package/App/Layout/index.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { createPortal } from "react-dom";
|
|
3
2
|
|
|
4
3
|
import { Background } from "@applicaster/zapp-react-dom-ui-components/Components/Background";
|
|
5
4
|
import { ConfirmDialog } from "@applicaster/zapp-react-dom-ui-components/Components/ConfirmDialog";
|
|
@@ -30,7 +29,7 @@ export function Layout({ children }: Props) {
|
|
|
30
29
|
>
|
|
31
30
|
{children}
|
|
32
31
|
</LayoutComponent>
|
|
33
|
-
|
|
32
|
+
<ConfirmDialog />
|
|
34
33
|
</>
|
|
35
34
|
);
|
|
36
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "13.0.10-
|
|
3
|
+
"version": "13.0.10-rc.0",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "13.0.10-
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "13.0.10-
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "13.0.10-
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.10-
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "13.0.10-
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "13.0.10-rc.0",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "13.0.10-rc.0",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "13.0.10-rc.0",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.10-rc.0",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "13.0.10-rc.0",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"react-router-dom": "^5.1.2",
|
|
32
32
|
"typeface-montserrat": "^0.0.54",
|