@applicaster/zapp-react-native-ui-components 14.0.23 → 14.0.24-alpha.5957182363
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.
|
@@ -17,13 +17,12 @@ type Props = {
|
|
|
17
17
|
focused?: boolean;
|
|
18
18
|
parentFocus?: ParentFocus;
|
|
19
19
|
screenData: HookPluginProps;
|
|
20
|
+
callback: hookCallback;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
const HookRenderer = (props: Props) => {
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
screenData: { callback, payload, hookPlugin },
|
|
26
|
-
} = props;
|
|
24
|
+
const { focused, screenData, callback } = props;
|
|
25
|
+
const { payload, hookPlugin } = screenData;
|
|
27
26
|
|
|
28
27
|
const {
|
|
29
28
|
module: { Component: HookComponent, presentFullScreen },
|
|
@@ -13,6 +13,7 @@ import { riverLogger } from "./logger";
|
|
|
13
13
|
import { tvPluginsWithCellRenderer } from "../../const";
|
|
14
14
|
import { isTV } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
15
15
|
import type { BehaviorSubject } from "rxjs";
|
|
16
|
+
import { useCallbackActions } from "@applicaster/zapp-react-native-utils/zappFrameworkUtils/HookCallback/useCallbackActions";
|
|
16
17
|
import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
|
|
17
18
|
|
|
18
19
|
export type RiverItemType = {
|
|
@@ -86,6 +87,7 @@ function RiverItemComponent(props: RiverItemType) {
|
|
|
86
87
|
loadingState,
|
|
87
88
|
} = props;
|
|
88
89
|
|
|
90
|
+
const callbackAction = useCallbackActions(item);
|
|
89
91
|
const readyToBeDisplayed = useLoadingState(index, loadingState);
|
|
90
92
|
|
|
91
93
|
const feedUrl = getFeedUrl(feed, index);
|
|
@@ -161,6 +163,7 @@ function RiverItemComponent(props: RiverItemType) {
|
|
|
161
163
|
groupId={groupId}
|
|
162
164
|
feedUrl={feedUrl}
|
|
163
165
|
isLast={isLast}
|
|
166
|
+
callback={callbackAction}
|
|
164
167
|
/>
|
|
165
168
|
);
|
|
166
169
|
}
|
|
@@ -2,15 +2,9 @@ import * as React from "react";
|
|
|
2
2
|
|
|
3
3
|
import { componentsLogger } from "../../Helpers/logger";
|
|
4
4
|
import { useScreenAnalytics } from "@applicaster/zapp-react-native-utils/analyticsUtils/helpers/hooks";
|
|
5
|
-
|
|
6
5
|
import { useScreenComponentResolver } from "./hooks/useScreenComponentResolver";
|
|
7
6
|
import { withDefaultScreenContext } from "./withDefaultScreenContext";
|
|
8
7
|
|
|
9
|
-
export enum PresentationType {
|
|
10
|
-
Standalone = "Standalone",
|
|
11
|
-
Hook = "Hook",
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
const logger = componentsLogger.addSubsystem("ScreenResolver");
|
|
15
9
|
|
|
16
10
|
type Props = {
|
|
@@ -29,6 +23,11 @@ type Props = {
|
|
|
29
23
|
groupId?: string;
|
|
30
24
|
};
|
|
31
25
|
|
|
26
|
+
export enum PresentationType {
|
|
27
|
+
Standalone = "Standalone",
|
|
28
|
+
Hook = "Hook",
|
|
29
|
+
}
|
|
30
|
+
|
|
32
31
|
export function ScreenResolverComponent(props: Props) {
|
|
33
32
|
const { screenType } = props;
|
|
34
33
|
const component = useScreenComponentResolver(screenType, props);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.24-alpha.5957182363",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "14.0.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "14.0.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "14.0.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "14.0.
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.24-alpha.5957182363",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "14.0.24-alpha.5957182363",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "14.0.24-alpha.5957182363",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.24-alpha.5957182363",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|