@applicaster/zapp-react-native-ui-components 15.1.0-rc.7 → 15.1.0-rc.9
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.
|
@@ -83,7 +83,7 @@ export function CellRendererResolver({
|
|
|
83
83
|
|
|
84
84
|
if (!cellRendererPlugin && !isGroup(component)) {
|
|
85
85
|
logger.warning({
|
|
86
|
-
message:
|
|
86
|
+
message: `Could not resolve cell builder plugin: ${component?.component_type}`,
|
|
87
87
|
data: { component },
|
|
88
88
|
});
|
|
89
89
|
}
|
|
@@ -107,7 +107,7 @@ describe("ComponentResolverComponent", () => {
|
|
|
107
107
|
expect(mockLogger.warning).toHaveBeenNthCalledWith(
|
|
108
108
|
1,
|
|
109
109
|
expect.objectContaining({
|
|
110
|
-
message: "Could not resolve cell builder plugin",
|
|
110
|
+
message: "Could not resolve cell builder plugin: foo",
|
|
111
111
|
})
|
|
112
112
|
);
|
|
113
113
|
|
|
@@ -262,9 +262,14 @@ const PlayerContainerComponent = (props: Props) => {
|
|
|
262
262
|
|
|
263
263
|
showNavBar(true);
|
|
264
264
|
navigator.goBack();
|
|
265
|
-
}, [isModal,
|
|
265
|
+
}, [isModal, state.playerId, showNavBar, navigator]);
|
|
266
266
|
|
|
267
|
-
const
|
|
267
|
+
const pluginConfiguration = React.useMemo(
|
|
268
|
+
() => player?.getPluginConfiguration(),
|
|
269
|
+
[player]
|
|
270
|
+
);
|
|
271
|
+
|
|
272
|
+
const playEntry = (entry: ZappEntry) => navigator.replaceTop(entry, { mode });
|
|
268
273
|
|
|
269
274
|
const onPlayNextPerformNextVideoPlay = React.useCallback(() => {
|
|
270
275
|
if (!playNextOverlayState.entry) {
|
|
@@ -448,13 +453,6 @@ const PlayerContainerComponent = (props: Props) => {
|
|
|
448
453
|
}
|
|
449
454
|
}, []);
|
|
450
455
|
|
|
451
|
-
const pluginConfiguration = React.useMemo(() => {
|
|
452
|
-
return (
|
|
453
|
-
playerManager.getPluginConfiguration() ||
|
|
454
|
-
R.prop("__plugin_configuration", Player)
|
|
455
|
-
);
|
|
456
|
-
}, [playerManager.isRegistered()]);
|
|
457
|
-
|
|
458
456
|
const disableMiniPlayer = React.useMemo(() => {
|
|
459
457
|
return pluginConfiguration?.disable_mini_player_when_inline;
|
|
460
458
|
}, [pluginConfiguration]);
|
|
@@ -5,6 +5,7 @@ import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks/n
|
|
|
5
5
|
import { useIsTablet } from "@applicaster/zapp-react-native-utils/reactHooks/device/useIsTablet";
|
|
6
6
|
import { playerManager } from "@applicaster/zapp-react-native-utils/appUtils";
|
|
7
7
|
import { create } from "zustand";
|
|
8
|
+
import { usePlayer } from "@applicaster/zapp-react-native-utils/appUtils/playerManager/usePlayer";
|
|
8
9
|
|
|
9
10
|
export const useConfiguration = () => {
|
|
10
11
|
const {
|
|
@@ -17,13 +18,18 @@ export const useConfiguration = () => {
|
|
|
17
18
|
"pluginConfigurations",
|
|
18
19
|
]);
|
|
19
20
|
|
|
21
|
+
const player = usePlayer();
|
|
22
|
+
|
|
20
23
|
const targetScreenId = contentTypes?.[item?.type?.value]?.screen_id;
|
|
21
24
|
const targetScreenConfiguration = rivers?.[targetScreenId];
|
|
22
25
|
|
|
23
26
|
const pluginConfiguration =
|
|
24
27
|
pluginConfigurations[targetScreenConfiguration?.type]?.configuration_json;
|
|
25
28
|
|
|
26
|
-
const playerPluginConfig =
|
|
29
|
+
const playerPluginConfig =
|
|
30
|
+
player?.getPluginConfiguration() ??
|
|
31
|
+
playerManager.getInstanceController()?.getPluginConfiguration() ??
|
|
32
|
+
{};
|
|
27
33
|
|
|
28
34
|
const config = mergeRight(playerPluginConfig, {
|
|
29
35
|
...pluginConfiguration,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "15.1.0-rc.
|
|
3
|
+
"version": "15.1.0-rc.9",
|
|
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": "15.1.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "15.1.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "15.1.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "15.1.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "15.1.0-rc.9",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "15.1.0-rc.9",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "15.1.0-rc.9",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "15.1.0-rc.9",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|