@ray-js/ray-ipc-player 0.0.13-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.
Files changed (46) hide show
  1. package/README.md +107 -0
  2. package/lib/constant.android.js +1 -0
  3. package/lib/constant.d.ts +23 -0
  4. package/lib/constant.ios.js +1 -0
  5. package/lib/constant.js +28 -0
  6. package/lib/constant.tuya.js +28 -0
  7. package/lib/constant.web.js +28 -0
  8. package/lib/constant.wechat.js +28 -0
  9. package/lib/i18n/index.android.js +1 -0
  10. package/lib/i18n/index.d.ts +3 -0
  11. package/lib/i18n/index.ios.js +1 -0
  12. package/lib/i18n/index.js +4 -0
  13. package/lib/i18n/index.tuya.js +4 -0
  14. package/lib/i18n/index.web.js +4 -0
  15. package/lib/i18n/index.wechat.js +4 -0
  16. package/lib/i18n/strings.android.js +1 -0
  17. package/lib/i18n/strings.d.ts +1521 -0
  18. package/lib/i18n/strings.ios.js +1 -0
  19. package/lib/i18n/strings.js +1520 -0
  20. package/lib/i18n/strings.json +1569 -0
  21. package/lib/i18n/strings.tuya.js +1520 -0
  22. package/lib/i18n/strings.web.js +1520 -0
  23. package/lib/i18n/strings.wechat.js +1520 -0
  24. package/lib/index.android.js +1 -0
  25. package/lib/index.config.android.js +1 -0
  26. package/lib/index.config.ios.js +1 -0
  27. package/lib/index.config.js +4 -0
  28. package/lib/index.config.tuya.js +4 -0
  29. package/lib/index.config.web.js +4 -0
  30. package/lib/index.config.wechat.js +4 -0
  31. package/lib/index.d.ts +3 -0
  32. package/lib/index.ios.js +1 -0
  33. package/lib/index.js +497 -0
  34. package/lib/index.module.less +127 -0
  35. package/lib/index.tuya.js +497 -0
  36. package/lib/index.web.js +497 -0
  37. package/lib/index.wechat.js +497 -0
  38. package/lib/typings/index.d.ts +153 -0
  39. package/lib/utils.android.js +1 -0
  40. package/lib/utils.d.ts +1 -0
  41. package/lib/utils.ios.js +1 -0
  42. package/lib/utils.js +19 -0
  43. package/lib/utils.tuya.js +19 -0
  44. package/lib/utils.web.js +19 -0
  45. package/lib/utils.wechat.js +19 -0
  46. package/package.json +87 -0
@@ -0,0 +1,19 @@
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
+ };
@@ -0,0 +1,19 @@
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/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@ray-js/ray-ipc-player",
3
+ "version": "0.0.13-beta-1",
4
+ "description": "ray小程序播放器",
5
+ "keywords": [
6
+ "tuya-panel",
7
+ "ray"
8
+ ],
9
+ "main": "lib/index.js",
10
+ "types": "lib/index.d.ts",
11
+ "scripts": {
12
+ "lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
13
+ "build": "ray build --type=component",
14
+ "watch": "ray start --type=component",
15
+ "build:tuya": "ray build ./example --target=tuya",
16
+ "build:wechat": "ray build ./example --target=wechat",
17
+ "build:web": "ray build ./example --target=web",
18
+ "build:native": "ray build ./example --target=native",
19
+ "start:native": "ray start ./example -t native --verbose",
20
+ "start:tuya": "ray start ./example -t tuya --verbose",
21
+ "start:wechat": "ray start ./example -t wechat --verbose",
22
+ "start:web": "ray start ./example -t web",
23
+ "prepublishOnly": "yarn build",
24
+ "release-it": "standard-version"
25
+ },
26
+ "license": "MIT",
27
+ "dependencies": {
28
+ "@ray-js/components": "0.4.10",
29
+ "@ray-js/framework": "0.4.10",
30
+ "@ray-js/framework-mp": "0.4.10",
31
+ "@ray-js/framework-native": "0.4.10",
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",
38
+ "immer": "^9.0.15",
39
+ "react-native": "0.59.10",
40
+ "react-redux": "^7.2.1",
41
+ "redux": "^4.1.2",
42
+ "redux-actions": "^2.6.5",
43
+ "redux-logger": "^3.0.6",
44
+ "redux-observable": "^2.0.0",
45
+ "redux-thunk": "^2.4.0",
46
+ "rxjs": "^6.3.1",
47
+ "rxjs-compat": "^6.3.1",
48
+ "use-immer": "^0.5.1",
49
+ "classnames": "^2.3.1"
50
+ },
51
+ "devDependencies": {
52
+ "@commitlint/cli": "^7.2.1",
53
+ "@commitlint/config-conventional": "^9.0.1",
54
+ "@ray-js/babel-preset-standard": "0.4.10",
55
+ "@ray-js/cli": "0.4.10",
56
+ "@ray-js/rn-transformer-helper": "0.4.10",
57
+ "@ray-js/types": "0.4.10",
58
+ "@types/node": "^17.0.43",
59
+ "core-js": "^3.19.1",
60
+ "eslint-config-tuya-panel": "^0.4.1",
61
+ "husky": "^1.2.0",
62
+ "lint-staged": "^10.2.11",
63
+ "standard-version": "9.3.2"
64
+ },
65
+ "husky": {
66
+ "hooks": {
67
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS --config commitlint.config.js",
68
+ "pre-commit": "lint-staged"
69
+ }
70
+ },
71
+ "lint-staged": {
72
+ "*.{ts,tsx,js,jsx}": [
73
+ "eslint --fix",
74
+ "git add"
75
+ ],
76
+ "*.{json,md,yml,yaml}": [
77
+ "prettier --write",
78
+ "git add"
79
+ ]
80
+ },
81
+ "maintainers": [
82
+ {
83
+ "name": "tuyafe",
84
+ "email": "tuyafe@tuya.com"
85
+ }
86
+ ]
87
+ }