@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.
Files changed (91) hide show
  1. package/README.md +0 -6
  2. package/lib/ctx/ctx.js +3 -0
  3. package/lib/index.d.ts +0 -4
  4. package/lib/index.js +1 -3
  5. package/lib/interface.d.ts +1 -0
  6. package/lib/ui/bottomLeftContent.js +55 -119
  7. package/lib/ui/bottomRightContent.js +3 -6
  8. package/lib/ui/ui.d.ts +0 -5
  9. package/lib/ui/ui.js +19 -37
  10. package/lib/utils/fullLinkTracking.d.ts +5 -0
  11. package/lib/utils/fullLinkTracking.js +71 -0
  12. package/lib/utils/navigation.d.ts +2 -1
  13. package/lib/utils/navigation.js +13 -3
  14. package/lib/widgets/battery/battery.js +1 -2
  15. package/lib/widgets/battery/batteryFull.js +1 -2
  16. package/lib/widgets/floodlight/floodlight.js +1 -2
  17. package/lib/widgets/flowLowTip/flowLowTip.js +1 -2
  18. package/lib/widgets/fullScreen/fullScreen.js +1 -2
  19. package/lib/widgets/fullScreen/fullTravelRouteControl.d.ts +1 -1
  20. package/lib/widgets/fullScreen/fullTravelRouteControl.js +1 -1
  21. package/lib/widgets/fullScreen/verticalScreen.js +1 -2
  22. package/lib/widgets/moveInteractiveControl/controlButton.js +1 -2
  23. package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.js +3 -12
  24. package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.less +4 -24
  25. package/lib/widgets/multiCamera/landscapeTip.js +1 -2
  26. package/lib/widgets/multiCamera/moveablePtzControl.js +1 -1
  27. package/lib/widgets/multiCamera/multiPtz.js +1 -2
  28. package/lib/widgets/multiCamera/ptzMoveableTip.js +1 -2
  29. package/lib/widgets/multiCamera/switchLayout.js +1 -2
  30. package/lib/widgets/multiCamera/tileMultiPtz.js +1 -2
  31. package/lib/widgets/multiCamera/tileSwitchLayout.js +1 -2
  32. package/lib/widgets/multiCamera/tileTip.js +1 -2
  33. package/lib/widgets/muted/muted.js +1 -2
  34. package/lib/widgets/ptz/ptz.js +1 -2
  35. package/lib/widgets/ptz/ptzControl.js +1 -1
  36. package/lib/widgets/ptzControlTip/ptzControlTip.js +3 -6
  37. package/lib/widgets/ptzControlTip/ptzControlTip.less +0 -6
  38. package/lib/widgets/realTimeMagnification/realTimeMagnification.js +1 -2
  39. package/lib/widgets/recordVideo/recordVideo.js +1 -2
  40. package/lib/widgets/resolution/fullResolutionControl.js +19 -29
  41. package/lib/widgets/resolution/resolution.js +2 -3
  42. package/lib/widgets/screenshot/screenshot.js +1 -2
  43. package/lib/widgets/signal4G/signal4G.js +1 -4
  44. package/lib/widgets/siren/siren.js +1 -2
  45. package/lib/widgets/tempHumidity/tempHumidity.js +1 -2
  46. package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +1 -2
  47. package/lib/widgets/trialBadge/index.d.ts +2 -1
  48. package/lib/widgets/trialBadge/index.js +20 -17
  49. package/lib/widgets/trialBadge/index.less +0 -24
  50. package/lib/widgets/trialBadge/useTrialBadge.d.ts +3 -2
  51. package/lib/widgets/trialBadge/useTrialBadge.js +13 -2
  52. package/lib/widgets/tryExperience/tryExperience.js +1 -2
  53. package/lib/widgets/videoBitKBP/videoBitKBP.js +1 -2
  54. package/lib/widgets/voiceIntercom/voiceIntercom.js +24 -50
  55. package/lib/widgets/voiceIntercom/voiceIntercom.less +0 -16
  56. package/lib/widgets/zoomTurntable/turntable/index.d.ts +7 -5
  57. package/lib/widgets/zoomTurntable/turntable/index.js +1 -2
  58. package/lib/widgets/zoomTurntable/zoomTurntableEntry.js +1 -2
  59. package/lib/widgets/zoomTurntable/zoomTurntableTip.js +1 -2
  60. package/package.json +7 -15
  61. package/lib/renderer/capabilities.d.ts +0 -8
  62. package/lib/renderer/capabilities.js +0 -19
  63. package/lib/renderer/context.d.ts +0 -5
  64. package/lib/renderer/context.js +0 -6
  65. package/lib/renderer/directionControl.d.ts +0 -6
  66. package/lib/renderer/directionControl.js +0 -3
  67. package/lib/renderer/font.less +0 -5
  68. package/lib/renderer/glyphs.d.ts +0 -1
  69. package/lib/renderer/glyphs.js +0 -256
  70. package/lib/renderer/index.module.less +0 -48
  71. package/lib/renderer/ptzZoom.d.ts +0 -6
  72. package/lib/renderer/ptzZoom.js +0 -3
  73. package/lib/renderer/text.d.ts +0 -4
  74. package/lib/renderer/text.js +0 -32
  75. package/lib/renderer/text.module.less +0 -4
  76. package/lib/renderer/viewport.d.ts +0 -7
  77. package/lib/renderer/viewport.js +0 -24
  78. package/lib/res/lynx-signal/index.d.ts +0 -1
  79. package/lib/res/lynx-signal/index.js +0 -22
  80. package/lib/res/lynx-signal/signalFour0.png +0 -0
  81. package/lib/res/lynx-signal/signalFour1.png +0 -0
  82. package/lib/res/lynx-signal/signalFour2.png +0 -0
  83. package/lib/res/lynx-signal/signalFour3.png +0 -0
  84. package/lib/res/lynx-signal/signalFour4.png +0 -0
  85. package/lib/res/lynx-signal/signalThree0.png +0 -0
  86. package/lib/res/lynx-signal/signalThree1.png +0 -0
  87. package/lib/res/lynx-signal/signalThree2.png +0 -0
  88. package/lib/res/lynx-signal/signalThree3.png +0 -0
  89. package/lib/res/player-more-arrow.png +0 -0
  90. package/lib/ui/scrollHintArrow.d.ts +0 -23
  91. package/lib/ui/scrollHintArrow.js +0 -82
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
- }