@applicaster/zapp-react-native-utils 12.0.0-alpha.4963544520 → 12.0.0-alpha.5001350756
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.
|
@@ -206,7 +206,7 @@ export function getTargetInDirection(
|
|
|
206
206
|
const overrideTarget = currentNode?.component?.props[overridePropName];
|
|
207
207
|
|
|
208
208
|
if (overrideTarget) {
|
|
209
|
-
const target = targetNodes.find((n) => n
|
|
209
|
+
const target = targetNodes.find((n) => n?.id === overrideTarget);
|
|
210
210
|
|
|
211
211
|
if (target) return target;
|
|
212
212
|
}
|
|
@@ -359,6 +359,13 @@ export class Player {
|
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
+
onVideoError = (error: Error) => {
|
|
363
|
+
this.invokeListenersUpdate({
|
|
364
|
+
callbackName: SharedPlayerCallBacksKeys.OnVideoError,
|
|
365
|
+
event: error,
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
|
|
362
369
|
onError = (error: Error) => {
|
|
363
370
|
this.invokeListenersUpdate({
|
|
364
371
|
callbackName: SharedPlayerCallBacksKeys.OnError,
|
|
@@ -650,6 +657,7 @@ export class Player {
|
|
|
650
657
|
onPlayerSeekComplete: this.onSeekComplete,
|
|
651
658
|
onVideoEnd: this.onVideoEnd,
|
|
652
659
|
onError: this.onError,
|
|
660
|
+
onVideoError: this.onVideoError,
|
|
653
661
|
onLoad: this.onLoad,
|
|
654
662
|
onPlayerPause: this.onPlayerPause,
|
|
655
663
|
onPlayerResume: this.onPlayerResume,
|
package/cellUtils/index.ts
CHANGED
|
@@ -468,36 +468,3 @@ export const getColorFromData = ({
|
|
|
468
468
|
|
|
469
469
|
return valueFromLayout;
|
|
470
470
|
};
|
|
471
|
-
|
|
472
|
-
export const getImageStyles = ({
|
|
473
|
-
image,
|
|
474
|
-
value,
|
|
475
|
-
}: {
|
|
476
|
-
image: any;
|
|
477
|
-
value: any;
|
|
478
|
-
}) => {
|
|
479
|
-
return {
|
|
480
|
-
width: image.imageContentWidth,
|
|
481
|
-
height: image.imageContentHeight,
|
|
482
|
-
aspectRatio: image.aspectRatio,
|
|
483
|
-
borderRadius: toNumberWithDefaultZero(value("image_corner_radius")),
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
export const getImageContainerPaddingStyles = ({ value }: { value: any }) => {
|
|
488
|
-
return {
|
|
489
|
-
paddingTop: value("image_padding_top"),
|
|
490
|
-
paddingBottom: value("image_padding_bottom"),
|
|
491
|
-
paddingLeft: value("image_padding_left"),
|
|
492
|
-
paddingRight: value("image_padding_right"),
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
export const getImageContainerMarginStyles = ({ value }: { value: any }) => {
|
|
497
|
-
return {
|
|
498
|
-
marginTop: value("image_margin_top"),
|
|
499
|
-
marginBottom: value("image_margin_bottom"),
|
|
500
|
-
marginLeft: value("image_margin_left"),
|
|
501
|
-
marginRight: value("image_margin_right"),
|
|
502
|
-
};
|
|
503
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "12.0.0-alpha.
|
|
3
|
+
"version": "12.0.0-alpha.5001350756",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "12.0.0-alpha.
|
|
31
|
+
"@applicaster/applicaster-types": "12.0.0-alpha.5001350756",
|
|
32
32
|
"buffer": "^5.2.1",
|
|
33
33
|
"camelize": "^1.0.0",
|
|
34
34
|
"create-react-context": "^0.2.3",
|