@ray-js/ipc-player-integration 0.0.59-beta.0 → 0.0.60-beta.0
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.
- package/README.md +0 -6
- package/lib/ctx/ctx.js +3 -0
- package/lib/index.d.ts +0 -4
- package/lib/index.js +1 -3
- package/lib/interface.d.ts +1 -0
- package/lib/ui/bottomLeftContent.js +55 -119
- package/lib/ui/bottomRightContent.js +3 -6
- package/lib/ui/ui.d.ts +0 -5
- package/lib/ui/ui.js +19 -37
- package/lib/utils/fullLinkTracking.d.ts +5 -0
- package/lib/utils/fullLinkTracking.js +71 -0
- package/lib/utils/navigation.d.ts +2 -1
- package/lib/utils/navigation.js +13 -3
- package/lib/widgets/battery/battery.js +1 -2
- package/lib/widgets/battery/batteryFull.js +1 -2
- package/lib/widgets/floodlight/floodlight.js +1 -2
- package/lib/widgets/flowLowTip/flowLowTip.js +1 -2
- package/lib/widgets/fullScreen/fullScreen.js +1 -2
- package/lib/widgets/fullScreen/fullTravelRouteControl.d.ts +1 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.js +1 -1
- package/lib/widgets/fullScreen/verticalScreen.js +1 -2
- package/lib/widgets/moveInteractiveControl/controlButton.js +1 -2
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.js +3 -12
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.less +4 -24
- package/lib/widgets/multiCamera/landscapeTip.js +1 -2
- package/lib/widgets/multiCamera/moveablePtzControl.js +1 -1
- package/lib/widgets/multiCamera/multiPtz.js +1 -2
- package/lib/widgets/multiCamera/ptzMoveableTip.js +1 -2
- package/lib/widgets/multiCamera/switchLayout.js +1 -2
- package/lib/widgets/multiCamera/tileMultiPtz.js +1 -2
- package/lib/widgets/multiCamera/tileSwitchLayout.js +1 -2
- package/lib/widgets/multiCamera/tileTip.js +1 -2
- package/lib/widgets/muted/muted.js +1 -2
- package/lib/widgets/ptz/ptz.js +1 -2
- package/lib/widgets/ptz/ptzControl.js +1 -1
- package/lib/widgets/ptzControlTip/ptzControlTip.js +3 -6
- package/lib/widgets/ptzControlTip/ptzControlTip.less +0 -6
- package/lib/widgets/realTimeMagnification/realTimeMagnification.js +1 -2
- package/lib/widgets/recordVideo/recordVideo.js +1 -2
- package/lib/widgets/resolution/fullResolutionControl.js +19 -29
- package/lib/widgets/resolution/resolution.js +2 -3
- package/lib/widgets/screenshot/screenshot.js +1 -2
- package/lib/widgets/signal4G/signal4G.js +1 -4
- package/lib/widgets/siren/siren.js +1 -2
- package/lib/widgets/tempHumidity/tempHumidity.js +1 -2
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +1 -2
- package/lib/widgets/trialBadge/index.d.ts +2 -1
- package/lib/widgets/trialBadge/index.js +20 -17
- package/lib/widgets/trialBadge/index.less +0 -24
- package/lib/widgets/trialBadge/useTrialBadge.d.ts +3 -2
- package/lib/widgets/trialBadge/useTrialBadge.js +13 -2
- package/lib/widgets/tryExperience/tryExperience.js +1 -2
- package/lib/widgets/videoBitKBP/videoBitKBP.js +1 -2
- package/lib/widgets/voiceIntercom/voiceIntercom.js +24 -50
- package/lib/widgets/voiceIntercom/voiceIntercom.less +0 -16
- package/lib/widgets/zoomTurntable/turntable/index.d.ts +7 -5
- package/lib/widgets/zoomTurntable/turntable/index.js +1 -2
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.js +1 -2
- package/lib/widgets/zoomTurntable/zoomTurntableTip.js +1 -2
- package/package.json +7 -15
- package/lib/renderer/capabilities.d.ts +0 -8
- package/lib/renderer/capabilities.js +0 -19
- package/lib/renderer/context.d.ts +0 -5
- package/lib/renderer/context.js +0 -6
- package/lib/renderer/directionControl.d.ts +0 -6
- package/lib/renderer/directionControl.js +0 -3
- package/lib/renderer/font.less +0 -5
- package/lib/renderer/glyphs.d.ts +0 -1
- package/lib/renderer/glyphs.js +0 -256
- package/lib/renderer/index.module.less +0 -48
- package/lib/renderer/ptzZoom.d.ts +0 -6
- package/lib/renderer/ptzZoom.js +0 -3
- package/lib/renderer/text.d.ts +0 -4
- package/lib/renderer/text.js +0 -32
- package/lib/renderer/text.module.less +0 -4
- package/lib/renderer/viewport.d.ts +0 -7
- package/lib/renderer/viewport.js +0 -24
- package/lib/res/lynx-signal/index.d.ts +0 -1
- package/lib/res/lynx-signal/index.js +0 -22
- package/lib/res/lynx-signal/signalFour0.png +0 -0
- package/lib/res/lynx-signal/signalFour1.png +0 -0
- package/lib/res/lynx-signal/signalFour2.png +0 -0
- package/lib/res/lynx-signal/signalFour3.png +0 -0
- package/lib/res/lynx-signal/signalFour4.png +0 -0
- package/lib/res/lynx-signal/signalThree0.png +0 -0
- package/lib/res/lynx-signal/signalThree1.png +0 -0
- package/lib/res/lynx-signal/signalThree2.png +0 -0
- package/lib/res/lynx-signal/signalThree3.png +0 -0
- package/lib/res/player-more-arrow.png +0 -0
- package/lib/ui/scrollHintArrow.d.ts +0 -23
- package/lib/ui/scrollHintArrow.js +0 -82
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare function usesNativeHintImage(renderMode: string, platform: string): boolean;
|
|
3
|
-
/** Android cannot paint the WebView fade mask: end its viewport at the hint's left edge.
|
|
4
|
-
* Layout width and hint position still use the original measured WebView budget.
|
|
5
|
-
*/
|
|
6
|
-
export declare function getHintViewport(renderMode: string, platform: string, scrollMode: boolean, lockedWidth: number, availableWidth: number, hintSize: number, hintEdgeGap: number, atEnd?: boolean): {
|
|
7
|
-
layoutWidth: number;
|
|
8
|
-
visibleWidth: number;
|
|
9
|
-
width: string;
|
|
10
|
-
};
|
|
11
|
-
/** Consume a Lynx control tap before paging can remove its native hit target. */
|
|
12
|
-
export declare function ScrollHintButton({ renderMode, platform, onPress, ...props }: {
|
|
13
|
-
renderMode: string;
|
|
14
|
-
platform?: string;
|
|
15
|
-
onPress?: () => void;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}): React.JSX.Element;
|
|
18
|
-
/** Keep legacy/iOS geometry; Android Lynx paints a real image rather than CSS URL/borders. */
|
|
19
|
-
export declare function ScrollHintArrow({ renderMode, platform, button, }: {
|
|
20
|
-
renderMode: string;
|
|
21
|
-
platform: string;
|
|
22
|
-
button: boolean;
|
|
23
|
-
}): React.JSX.Element;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
const _excluded = ["renderMode", "platform", "onPress"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { CoverView, Image, View } from '@ray-js/ray';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
|
-
import moreArrow from '../res/player-more-arrow.png';
|
|
8
|
-
export function usesNativeHintImage(renderMode, platform) {
|
|
9
|
-
return renderMode === 'lynx' && platform === 'android';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** Android cannot paint the WebView fade mask: end its viewport at the hint's left edge.
|
|
13
|
-
* Layout width and hint position still use the original measured WebView budget.
|
|
14
|
-
*/
|
|
15
|
-
export function getHintViewport(renderMode, platform, scrollMode, lockedWidth, availableWidth, hintSize, hintEdgeGap) {
|
|
16
|
-
let atEnd = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
|
|
17
|
-
const layoutWidth = lockedWidth > 0 ? lockedWidth : availableWidth;
|
|
18
|
-
const reservedHintWidth = usesNativeHintImage(renderMode, platform) && scrollMode && !atEnd ? hintSize + hintEdgeGap : 0;
|
|
19
|
-
const visibleWidth = Math.max(0, layoutWidth - reservedHintWidth);
|
|
20
|
-
return {
|
|
21
|
-
layoutWidth,
|
|
22
|
-
visibleWidth,
|
|
23
|
-
width: lockedWidth > 0 ? `${visibleWidth}px` : reservedHintWidth ? `calc(100% - ${reservedHintWidth}px)` : '100%'
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** Consume a Lynx control tap before paging can remove its native hit target. */
|
|
28
|
-
export function ScrollHintButton(_ref) {
|
|
29
|
-
let {
|
|
30
|
-
renderMode,
|
|
31
|
-
platform,
|
|
32
|
-
onPress
|
|
33
|
-
} = _ref,
|
|
34
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
const nativeHitTarget = usesNativeHintImage(renderMode, platform || '');
|
|
36
|
-
const HintHost = nativeHitTarget ? View : CoverView;
|
|
37
|
-
return /*#__PURE__*/React.createElement(HintHost, _extends({}, props, nativeHitTarget ? {
|
|
38
|
-
flatten: false,
|
|
39
|
-
'native-interaction-enabled': true
|
|
40
|
-
} : {}, {
|
|
41
|
-
onClick: onPress ? event => {
|
|
42
|
-
var _event$origin, _event$origin$stopPro;
|
|
43
|
-
if (renderMode === 'lynx') event === null || event === void 0 || (_event$origin = event.origin) === null || _event$origin === void 0 || (_event$origin$stopPro = _event$origin.stopPropagation) === null || _event$origin$stopPro === void 0 || _event$origin$stopPro.call(_event$origin);
|
|
44
|
-
onPress();
|
|
45
|
-
} : undefined
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** Keep legacy/iOS geometry; Android Lynx paints a real image rather than CSS URL/borders. */
|
|
50
|
-
export function ScrollHintArrow(_ref2) {
|
|
51
|
-
let {
|
|
52
|
-
renderMode,
|
|
53
|
-
platform,
|
|
54
|
-
button
|
|
55
|
-
} = _ref2;
|
|
56
|
-
if (usesNativeHintImage(renderMode, platform)) {
|
|
57
|
-
const size = button ? '14px' : '10px';
|
|
58
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
59
|
-
className: "ipc-player-bottom-left-scroll-hint-image",
|
|
60
|
-
src: moreArrow,
|
|
61
|
-
mode: "aspectFit",
|
|
62
|
-
style: {
|
|
63
|
-
width: size,
|
|
64
|
-
height: size,
|
|
65
|
-
flexShrink: 0,
|
|
66
|
-
pointerEvents: 'none'
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
71
|
-
className: clsx('ipc-player-bottom-left-scroll-hint-arrow', {
|
|
72
|
-
'ipc-player-bottom-left-scroll-hint-arrow--right': true,
|
|
73
|
-
'ipc-player-bottom-left-scroll-hint-arrow--light': button,
|
|
74
|
-
'ipc-player-bottom-left-scroll-hint-arrow--static': button
|
|
75
|
-
}),
|
|
76
|
-
style: button ? {
|
|
77
|
-
width: '9px',
|
|
78
|
-
height: '9px',
|
|
79
|
-
transform: 'translate(-1px, 0) rotate(45deg)'
|
|
80
|
-
} : undefined
|
|
81
|
-
});
|
|
82
|
-
}
|