@ray-js/ipc-player-integration 0.0.70 → 0.0.71-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 +6 -0
- package/lib/ctx/ctx.js +12 -17
- package/lib/ctx/ctx.test.js +54 -19
- package/lib/ctx/intercom.test.d.ts +1 -0
- package/lib/ctx/intercom.test.js +85 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +3 -1
- package/lib/renderer/capabilities.d.ts +8 -0
- package/lib/renderer/capabilities.js +19 -0
- package/lib/renderer/context.d.ts +5 -0
- package/lib/renderer/context.js +6 -0
- package/lib/renderer/directionControl.d.ts +6 -0
- package/lib/renderer/directionControl.js +3 -0
- package/lib/renderer/font-manifest.json +9 -0
- package/lib/renderer/font.less +5 -0
- package/lib/renderer/glyphs.d.ts +1 -0
- package/lib/renderer/glyphs.js +256 -0
- package/lib/renderer/index.module.less +48 -0
- package/lib/renderer/overlay.d.ts +6 -0
- package/lib/renderer/overlay.js +18 -0
- package/lib/renderer/ptzZoom.d.ts +6 -0
- package/lib/renderer/ptzZoom.js +3 -0
- package/lib/renderer/text.d.ts +4 -0
- package/lib/renderer/text.js +32 -0
- package/lib/renderer/text.module.less +4 -0
- package/lib/renderer/viewport.d.ts +7 -0
- package/lib/renderer/viewport.js +24 -0
- package/lib/res/lynx-signal/index.d.ts +1 -0
- package/lib/res/lynx-signal/index.js +22 -0
- 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-charging.png +0 -0
- package/lib/res/player-more-arrow.png +0 -0
- package/lib/res/player-solar.png +0 -0
- package/lib/ui/bottomLeftContent.js +121 -53
- package/lib/ui/bottomRightContent.js +10 -5
- package/lib/ui/scrollHintArrow.d.ts +23 -0
- package/lib/ui/scrollHintArrow.js +83 -0
- package/lib/ui/topLeftContent.js +4 -2
- package/lib/ui/topRightContent.js +4 -2
- package/lib/ui/ui.d.ts +5 -0
- package/lib/ui/ui.js +46 -23
- package/lib/widgets/battery/battery.js +7 -5
- package/lib/widgets/battery/batteryFull.js +7 -5
- package/lib/widgets/battery/statusIcon.d.ts +6 -0
- package/lib/widgets/battery/statusIcon.js +36 -0
- package/lib/widgets/battery/statusIcon.less +24 -0
- package/lib/widgets/captureResult/captureResult.js +2 -1
- package/lib/widgets/captureToast/captureToast.d.ts +10 -0
- package/lib/widgets/captureToast/captureToast.js +58 -0
- package/lib/widgets/floodlight/floodlight.js +2 -1
- package/lib/widgets/flowLowTip/flowLowTip.js +2 -1
- package/lib/widgets/fullScreen/fullScreen.js +2 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.d.ts +1 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.js +1 -1
- package/lib/widgets/fullScreen/verticalScreen.js +2 -1
- package/lib/widgets/moveInteractiveControl/controlButton.js +2 -1
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.js +16 -5
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.less +24 -4
- package/lib/widgets/multiCamera/landscapeTip.js +8 -2
- package/lib/widgets/multiCamera/moveablePtzControl.js +5 -3
- package/lib/widgets/multiCamera/multiPtz.js +2 -1
- package/lib/widgets/multiCamera/ptzMoveableTip.js +8 -2
- package/lib/widgets/multiCamera/switchLayout.js +2 -1
- package/lib/widgets/multiCamera/tileMultiPtz.js +2 -1
- package/lib/widgets/multiCamera/tileSwitchLayout.js +2 -1
- package/lib/widgets/multiCamera/tileTip.js +8 -2
- package/lib/widgets/muted/muted.js +2 -1
- package/lib/widgets/muted/muted.test.js +66 -52
- package/lib/widgets/ptz/ptz.js +2 -1
- package/lib/widgets/ptz/ptzControl.js +4 -3
- package/lib/widgets/ptzControlTip/ptzControlTip.js +9 -4
- package/lib/widgets/ptzControlTip/ptzControlTip.less +6 -0
- package/lib/widgets/realTimeMagnification/realTimeMagnification.js +2 -1
- package/lib/widgets/recordVideo/recordVideo.js +47 -169
- package/lib/widgets/recordVideo/recordVideo.lifecycle.test.js +4 -2
- package/lib/widgets/recordVideo/recordVideo.test.js +169 -2
- package/lib/widgets/recordVideo/recordVideoTimer.d.ts +3 -0
- package/lib/widgets/recordVideo/recordVideoTimer.js +26 -0
- package/lib/widgets/resolution/fullResolutionControl.js +29 -19
- package/lib/widgets/resolution/resolution.js +3 -2
- package/lib/widgets/screenshot/screenshot.js +48 -122
- package/lib/widgets/screenshot/screenshot.permissions.test.d.ts +1 -0
- package/lib/widgets/screenshot/screenshot.permissions.test.js +137 -0
- package/lib/widgets/screenshot/screenshot.test.js +108 -113
- package/lib/widgets/signal4G/signal4G.js +4 -1
- package/lib/widgets/siren/siren.js +2 -1
- package/lib/widgets/tempHumidity/tempHumidity.js +2 -1
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +2 -1
- package/lib/widgets/trialBadge/index.js +8 -3
- package/lib/widgets/trialBadge/index.less +24 -0
- package/lib/widgets/tryExperience/tryExperience.js +2 -1
- package/lib/widgets/videoBitKBP/videoBitKBP.js +2 -1
- package/lib/widgets/voiceIntercom/voiceIntercom.js +57 -81
- package/lib/widgets/voiceIntercom/voiceIntercom.less +35 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.test.d.ts +1 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.test.js +135 -0
- package/lib/widgets/zoomTurntable/lynxDockLayout.d.ts +6 -0
- package/lib/widgets/zoomTurntable/lynxDockLayout.js +30 -0
- package/lib/widgets/zoomTurntable/turntable/index.d.ts +5 -7
- package/lib/widgets/zoomTurntable/turntable/index.js +3 -1
- package/lib/widgets/zoomTurntable/turntable/lynx.d.ts +5 -0
- package/lib/widgets/zoomTurntable/turntable/lynx.js +273 -0
- package/lib/widgets/zoomTurntable/turntable/lynx.less +9 -0
- package/lib/widgets/zoomTurntable/turntable/lynxModel.d.ts +37 -0
- package/lib/widgets/zoomTurntable/turntable/lynxModel.js +122 -0
- package/lib/widgets/zoomTurntable/turntable/lynxPaint.d.ts +3 -0
- package/lib/widgets/zoomTurntable/turntable/lynxPaint.js +36 -0
- package/lib/widgets/zoomTurntable/zoomTurntableDock.d.ts +5 -3
- package/lib/widgets/zoomTurntable/zoomTurntableDock.js +4 -4
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.js +32 -19
- package/lib/widgets/zoomTurntable/zoomTurntableTip.js +17 -3
- package/package.json +15 -7
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { View } from '@ray-js/ray';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { usePlayerOverlayHost, usePlayerOverlayFillStyle } from '../../renderer/overlay';
|
|
5
|
+
import { usePlayerRenderMode } from '../../renderer/context';
|
|
6
|
+
import { PlayerText as Text } from '../../renderer/text';
|
|
4
7
|
import { useStore } from '../../ctx/store';
|
|
5
8
|
import { PlayState } from '../../interface';
|
|
6
9
|
import { widgetClick, widgetLabs } from '../../ui/constant';
|
|
@@ -16,11 +19,14 @@ import './zoomTurntableTip.less';
|
|
|
16
19
|
* 差别在于入口位于横向 ScrollView 内、位置不固定,所以圈选框坐标由 JS 内联注入而非写死。
|
|
17
20
|
*/
|
|
18
21
|
export const ZoomTurntableTip = props => {
|
|
22
|
+
const Host = usePlayerOverlayHost();
|
|
23
|
+
const overlayStyle = usePlayerOverlayFillStyle();
|
|
19
24
|
const {
|
|
20
25
|
devId,
|
|
21
26
|
deleteContent,
|
|
22
27
|
anchorRect
|
|
23
28
|
} = props;
|
|
29
|
+
const isLynx = usePlayerRenderMode() === 'lynx';
|
|
24
30
|
const {
|
|
25
31
|
playState
|
|
26
32
|
} = useStore({
|
|
@@ -64,7 +70,10 @@ export const ZoomTurntableTip = props => {
|
|
|
64
70
|
if (playState !== PlayState.PLAYING || !layout) {
|
|
65
71
|
return null;
|
|
66
72
|
}
|
|
67
|
-
return /*#__PURE__*/React.createElement(
|
|
73
|
+
return /*#__PURE__*/React.createElement(Host, {
|
|
74
|
+
className: isLynx ? 'ipc-player-plugin-zoom-turntable-tip-native' : undefined,
|
|
75
|
+
style: overlayStyle
|
|
76
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
68
77
|
className: clsx('ipc-player-plugin-zoom-turntable-tip-ring'),
|
|
69
78
|
style: layout.ring
|
|
70
79
|
}), /*#__PURE__*/React.createElement(View, {
|
|
@@ -84,5 +93,10 @@ export const ZoomTurntableTip = props => {
|
|
|
84
93
|
const storage = new Storage(devId);
|
|
85
94
|
storage.set(zoomTurntableTipId, true);
|
|
86
95
|
}
|
|
87
|
-
},
|
|
96
|
+
}, isLynx ? /*#__PURE__*/React.createElement(Text, {
|
|
97
|
+
style: {
|
|
98
|
+
fontSize: '12px',
|
|
99
|
+
lineHeight: '17px'
|
|
100
|
+
}
|
|
101
|
+
}, Strings.getLang('ipc_player_tip_confirm')) : Strings.getLang('ipc_player_tip_confirm'))));
|
|
88
102
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/ipc-player-integration",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71-beta.0",
|
|
4
4
|
"description": "IPC 融合播放器",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"files": [
|
|
@@ -29,17 +29,19 @@
|
|
|
29
29
|
"start:web": "ray start ./example -t web",
|
|
30
30
|
"prepublishOnly": "yarn build",
|
|
31
31
|
"release-it": "standard-version",
|
|
32
|
-
"test": "yarn jest"
|
|
32
|
+
"test": "yarn jest",
|
|
33
|
+
"test:lynx": "node --test tests/*.test.cjs",
|
|
34
|
+
"test:features": "jest --runInBand --runTestsByPath tests/master-features.test.tsx tests/auto-clarity-config.test.tsx src/utils/authorize/album.test.ts src/widgets/recordVideo/recordVideo.test.tsx src/widgets/screenshot/screenshot.test.tsx src/widgets/zoomTurntable/lensModel.test.ts src/widgets/muted/muted.test.tsx tests/zoom-turntable-tip.test.tsx tests/zoom-turntable-touch.test.tsx"
|
|
33
35
|
},
|
|
34
36
|
"peerDependencies": {
|
|
35
37
|
"ahooks": "^3.1.6"
|
|
36
38
|
},
|
|
37
39
|
"dependencies": {
|
|
38
|
-
"@ray-js/direction-control": "
|
|
39
|
-
"@ray-js/ipc-ptz-zoom": "
|
|
40
|
+
"@ray-js/direction-control": "0.0.13-beta.1",
|
|
41
|
+
"@ray-js/ipc-ptz-zoom": "0.0.5-beta.0",
|
|
40
42
|
"@ray-js/panel-sdk": "^1.13.1",
|
|
41
|
-
"@ray-js/ray-ipc-player": "
|
|
42
|
-
"@ray-js/ray-ipc-utils": "^1.1.
|
|
43
|
+
"@ray-js/ray-ipc-player": "2.1.8-beta.1",
|
|
44
|
+
"@ray-js/ray-ipc-utils": "^1.1.18",
|
|
43
45
|
"@ray-js/svg": "0.2.0",
|
|
44
46
|
"clsx": "^1.2.1",
|
|
45
47
|
"color": "^5.0.2",
|
|
@@ -57,7 +59,13 @@
|
|
|
57
59
|
"eslint-config-tuya-panel": "^0.4.2",
|
|
58
60
|
"husky": "^1.2.0",
|
|
59
61
|
"lint-staged": "^10.2.11",
|
|
60
|
-
"standard-version": "9.3.2"
|
|
62
|
+
"standard-version": "9.3.2",
|
|
63
|
+
"react": "17.0.2",
|
|
64
|
+
"react-dom": "17.0.2",
|
|
65
|
+
"typescript": "4.9.5",
|
|
66
|
+
"jest": "29.7.0",
|
|
67
|
+
"ts-jest": "29.2.6",
|
|
68
|
+
"jest-environment-jsdom": "29.7.0"
|
|
61
69
|
},
|
|
62
70
|
"resolutions": {
|
|
63
71
|
"@ray-js/builder-mp": "^1.7.62"
|