@applicaster/quick-brick-core 13.0.0-alpha.4936752427 → 13.0.0-alpha.4958485095
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.
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
3
|
import { focusManager } from "@applicaster/zapp-react-native-utils/appUtils/focusManager";
|
|
4
|
+
import { isVizioPlatform } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
4
5
|
import { Spinner } from "@applicaster/zapp-react-native-ui-components/Components/Spinner";
|
|
5
|
-
import { Spinner as CSSSpinner } from "@applicaster/zapp-react-dom-ui-components/Components/Spinner";
|
|
6
|
-
import { isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
7
6
|
import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
|
|
8
7
|
|
|
9
8
|
import { useLoadingOverlayVisibility } from "./useLoadingOverlayVisibility";
|
|
@@ -15,12 +14,12 @@ const styles = StyleSheet.create({
|
|
|
15
14
|
opacity: 0.5,
|
|
16
15
|
alignItems: "center",
|
|
17
16
|
justifyContent: "center",
|
|
17
|
+
zIndex: 100,
|
|
18
|
+
flex: 1,
|
|
18
19
|
},
|
|
19
20
|
});
|
|
20
21
|
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
export const LoadingOverlay = () => {
|
|
22
|
+
const LoadingOverlayComponent = () => {
|
|
24
23
|
const visible = useLoadingOverlayVisibility();
|
|
25
24
|
const theme = useTheme();
|
|
26
25
|
|
|
@@ -40,7 +39,11 @@ export const LoadingOverlay = () => {
|
|
|
40
39
|
<View
|
|
41
40
|
style={[StyleSheet.absoluteFill, styles.container, { backgroundColor }]}
|
|
42
41
|
>
|
|
43
|
-
<
|
|
42
|
+
<Spinner />
|
|
44
43
|
</View>
|
|
45
44
|
) : null;
|
|
46
45
|
};
|
|
46
|
+
|
|
47
|
+
export const LoadingOverlay = isVizioPlatform()
|
|
48
|
+
? LoadingOverlayComponent
|
|
49
|
+
: () => null;
|
|
@@ -49,6 +49,7 @@ import { coreAppLogger } from "../logger";
|
|
|
49
49
|
import {
|
|
50
50
|
getPlatform,
|
|
51
51
|
isTV,
|
|
52
|
+
isVizioPlatform,
|
|
52
53
|
} from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
53
54
|
import { useConnectionInfo } from "@applicaster/zapp-react-native-utils/reactHooks/connection";
|
|
54
55
|
import {
|
|
@@ -67,6 +68,7 @@ import { useModalStore } from "@applicaster/zapp-react-native-utils/modalState";
|
|
|
67
68
|
import { useSubscriberFor } from "@applicaster/zapp-react-native-utils/reactHooks/useSubscriberFor";
|
|
68
69
|
import { QBUIComponentEvents } from "@applicaster/zapp-react-native-ui-components/events";
|
|
69
70
|
import { Hook } from "@applicaster/zapp-react-native-utils/appUtils/HooksManager/Hook";
|
|
71
|
+
import { URLSchemeContext } from "../DeepLinking/URLSchemeListener/URLSchemeContextProvider";
|
|
70
72
|
|
|
71
73
|
import { loadingOverlayManager } from "../LoadingOverlay";
|
|
72
74
|
|
|
@@ -88,6 +90,8 @@ const navigationActions = {
|
|
|
88
90
|
const platform = getPlatform();
|
|
89
91
|
|
|
90
92
|
export function NavigationProvider({ children }: Props) {
|
|
93
|
+
const { url: deepLinkURL } = React.useContext(URLSchemeContext);
|
|
94
|
+
|
|
91
95
|
const {
|
|
92
96
|
appData: { layoutVersion },
|
|
93
97
|
rivers,
|
|
@@ -650,8 +654,8 @@ export function NavigationProvider({ children }: Props) {
|
|
|
650
654
|
});
|
|
651
655
|
|
|
652
656
|
const openLoadingOverlay = React.useCallback(() => {
|
|
653
|
-
|
|
654
|
-
}, []);
|
|
657
|
+
deepLinkURL && isVizioPlatform() && loadingOverlayManager.show();
|
|
658
|
+
}, [deepLinkURL]);
|
|
655
659
|
|
|
656
660
|
const closeLoadingOverlay = React.useCallback(() => {
|
|
657
661
|
loadingOverlayManager.hide();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.4958485095",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@applicaster/applicaster-types": "13.0.0-alpha.
|
|
33
|
-
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.
|
|
35
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.
|
|
32
|
+
"@applicaster/applicaster-types": "13.0.0-alpha.4958485095",
|
|
33
|
+
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.4958485095",
|
|
34
|
+
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.4958485095",
|
|
35
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.4958485095",
|
|
36
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.4958485095",
|
|
37
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.4958485095",
|
|
38
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.4958485095",
|
|
39
39
|
"atob": "^2.1.2",
|
|
40
40
|
"axios": "^0.28.0",
|
|
41
41
|
"btoa": "^1.2.1",
|