@applicaster/zapp-react-native-ui-components 15.1.19 → 15.1.20
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.
|
@@ -145,7 +145,9 @@ export const prepareEntry = (entry: ZappEntry) => {
|
|
|
145
145
|
return entry;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
const playable = isVideoUrl(src);
|
|
149
|
+
|
|
150
|
+
return playable ? entry : null;
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
const getPlayableEntry = (entry) => {
|
|
@@ -246,12 +248,21 @@ const LiveImageComponent = (props: LiveImageProps) => {
|
|
|
246
248
|
|
|
247
249
|
const isCurrentlyFocused = useTrackCurrentAutoScrollingElement(componentId);
|
|
248
250
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
// New object identities here restart PlayerLiveImage's register effect,
|
|
252
|
+
// which throws away the in-flight player and runs preload hooks again.
|
|
253
|
+
const playerConfig = React.useMemo(
|
|
254
|
+
() => getPlayerConfig(player_screen_id, actionIdentifier),
|
|
255
|
+
[player_screen_id, actionIdentifier]
|
|
256
|
+
);
|
|
251
257
|
|
|
252
|
-
const
|
|
253
|
-
const plugins = appStore.get("plugins");
|
|
258
|
+
const { playerPluginId, screenConfig, preloadHooks } = playerConfig ?? {};
|
|
254
259
|
|
|
260
|
+
const playableEntry = React.useMemo(
|
|
261
|
+
() => (playerPluginId ? getPlayableEntry(item) : null),
|
|
262
|
+
[playerPluginId, item?.id]
|
|
263
|
+
);
|
|
264
|
+
|
|
265
|
+
const plugins = appStore.get("plugins");
|
|
255
266
|
const playerPlugin = findPluginByIdentifier(playerPluginId, plugins);
|
|
256
267
|
|
|
257
268
|
const isShouldRender =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.20",
|
|
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.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "15.1.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "15.1.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "15.1.
|
|
31
|
+
"@applicaster/applicaster-types": "15.1.20",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "15.1.20",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "15.1.20",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "15.1.20",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"react-native-sortables": "1.7.1",
|