@ray-js/ray-ipc-player 1.0.0 → 2.0.1-beta-1
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/lib/constant.d.ts +1 -1
- package/lib/constant.js +1 -1
- package/lib/i18n/strings.d.ts +138 -138
- package/lib/i18n/strings.js +138 -138
- package/lib/i18n/strings.json +138 -138
- package/lib/index.js +2 -2
- package/package.json +9 -15
- package/lib/utils.android.js +0 -1
- package/lib/utils.ios.js +0 -1
- package/lib/utils.tuya.js +0 -19
- package/lib/utils.web.js +0 -19
- package/lib/utils.wechat.js +0 -19
package/lib/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import "core-js/modules/es.object.to-string.js";
|
|
5
5
|
import "core-js/modules/es.promise.js";
|
|
6
|
+
import "core-js/modules/es.array.concat.js";
|
|
6
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
8
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
8
9
|
import { useImmer } from 'use-immer';
|
|
@@ -390,7 +391,7 @@ var Player = function (props) {
|
|
|
390
391
|
return /*#__PURE__*/React.createElement(View, {
|
|
391
392
|
className: Styles.ipc_player
|
|
392
393
|
}, /*#__PURE__*/React.createElement(IpcPlayer, _extends({
|
|
393
|
-
className: Styles.player,
|
|
394
|
+
className: "".concat(Styles.player, " ").concat(playState.updateLy),
|
|
394
395
|
onVideotap: function handlePlayerClick() {
|
|
395
396
|
// console.log("videoTap:", devId);
|
|
396
397
|
onPlayerTap && onPlayerTap(devId);
|
|
@@ -441,7 +442,6 @@ var Player = function (props) {
|
|
|
441
442
|
borderStyle: borderStyle,
|
|
442
443
|
borderColor: borderColor,
|
|
443
444
|
borderWidth: borderWidth,
|
|
444
|
-
updateLayout: playState.updateLy,
|
|
445
445
|
backgroundColor: bgColor
|
|
446
446
|
}, extend)), /*#__PURE__*/React.createElement(View, {
|
|
447
447
|
style: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/ray-ipc-player",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-beta-1",
|
|
4
4
|
"description": "ray小程序播放器",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tuya-panel",
|
|
@@ -25,16 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ray-js/
|
|
29
|
-
"@ray-js/
|
|
30
|
-
"@ray-js/
|
|
31
|
-
"@ray-js/
|
|
32
|
-
"@ray-js/framework-shared": "0.4.10",
|
|
33
|
-
"@ray-js/location-native": "0.4.10",
|
|
34
|
-
"@ray-js/panel-components": "0.4.10",
|
|
35
|
-
"@ray-js/panel-sdk": "^1.0.0",
|
|
36
|
-
"@ray-js/ray-panel-wrapper": "0.4.10",
|
|
37
|
-
"@ray-js/remax-tuya": "0.4.10",
|
|
28
|
+
"@ray-js/ray": "latest",
|
|
29
|
+
"@ray-js/panel-components": "latest",
|
|
30
|
+
"@ray-js/panel-sdk": "latest",
|
|
31
|
+
"@ray-js/remax-tuya": "latest",
|
|
38
32
|
"immer": "^9.0.15",
|
|
39
33
|
"react-native": "0.59.10",
|
|
40
34
|
"react-redux": "^7.2.1",
|
|
@@ -51,10 +45,10 @@
|
|
|
51
45
|
"devDependencies": {
|
|
52
46
|
"@commitlint/cli": "^7.2.1",
|
|
53
47
|
"@commitlint/config-conventional": "^9.0.1",
|
|
54
|
-
"@ray-js/babel-preset-standard": "
|
|
55
|
-
"@ray-js/cli": "
|
|
56
|
-
"@ray-js/rn-transformer-helper": "
|
|
57
|
-
"@ray-js/types": "
|
|
48
|
+
"@ray-js/babel-preset-standard": "latest",
|
|
49
|
+
"@ray-js/cli": "latest",
|
|
50
|
+
"@ray-js/rn-transformer-helper": "latest",
|
|
51
|
+
"@ray-js/types": "latest",
|
|
58
52
|
"@types/node": "^17.0.43",
|
|
59
53
|
"core-js": "^3.19.1",
|
|
60
54
|
"eslint-config-tuya-panel": "^0.4.1",
|
package/lib/utils.android.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.putDpData=void 0;var putDpData=function(dpIds,deviceId){return new Promise(function(resolve,reject){ty.device.publishDps({deviceId:deviceId,mode:2,pipelines:[],options:{},dps:dpIds,success:function success(res){return resolve(res);},fail:function fail(e){return reject(e);}});});};exports.putDpData=putDpData;
|
package/lib/utils.ios.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.putDpData=void 0;var putDpData=function(dpIds,deviceId){return new Promise(function(resolve,reject){ty.device.publishDps({deviceId:deviceId,mode:2,pipelines:[],options:{},dps:dpIds,success:function success(res){return resolve(res);},fail:function fail(e){return reject(e);}});});};exports.putDpData=putDpData;
|
package/lib/utils.tuya.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.object.to-string.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
|
-
export var putDpData = function (dpIds, deviceId) {
|
|
4
|
-
return new Promise(function (resolve, reject) {
|
|
5
|
-
ty.device.publishDps({
|
|
6
|
-
deviceId: deviceId,
|
|
7
|
-
mode: 2,
|
|
8
|
-
pipelines: [],
|
|
9
|
-
options: {},
|
|
10
|
-
dps: dpIds,
|
|
11
|
-
success: function success(res) {
|
|
12
|
-
return resolve(res);
|
|
13
|
-
},
|
|
14
|
-
fail: function fail(e) {
|
|
15
|
-
return reject(e);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
};
|
package/lib/utils.web.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.object.to-string.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
|
-
export var putDpData = function (dpIds, deviceId) {
|
|
4
|
-
return new Promise(function (resolve, reject) {
|
|
5
|
-
ty.device.publishDps({
|
|
6
|
-
deviceId: deviceId,
|
|
7
|
-
mode: 2,
|
|
8
|
-
pipelines: [],
|
|
9
|
-
options: {},
|
|
10
|
-
dps: dpIds,
|
|
11
|
-
success: function success(res) {
|
|
12
|
-
return resolve(res);
|
|
13
|
-
},
|
|
14
|
-
fail: function fail(e) {
|
|
15
|
-
return reject(e);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
};
|
package/lib/utils.wechat.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.object.to-string.js";
|
|
2
|
-
import "core-js/modules/es.promise.js";
|
|
3
|
-
export var putDpData = function (dpIds, deviceId) {
|
|
4
|
-
return new Promise(function (resolve, reject) {
|
|
5
|
-
ty.device.publishDps({
|
|
6
|
-
deviceId: deviceId,
|
|
7
|
-
mode: 2,
|
|
8
|
-
pipelines: [],
|
|
9
|
-
options: {},
|
|
10
|
-
dps: dpIds,
|
|
11
|
-
success: function success(res) {
|
|
12
|
-
return resolve(res);
|
|
13
|
-
},
|
|
14
|
-
fail: function fail(e) {
|
|
15
|
-
return reject(e);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
};
|