@ray-js/api 0.6.27 → 0.6.29

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.
@@ -52,6 +52,7 @@ export declare const getDeviceInfo: typeof ty.device.getDeviceInfo;
52
52
  export declare const getProductInfo: typeof ty.device.getProductInfo;
53
53
  export declare const getSubDeviceInfoList: typeof ty.device.getSubDeviceInfoList;
54
54
  export declare const validDeviceOnlineType: typeof ty.device.validDeviceOnlineType;
55
+ export declare const publishCommonDps: typeof ty.device.publishDps;
55
56
  export declare const publishCommands: typeof ty.device.publishCommands;
56
57
  export declare const publishDpsWithPipeType: typeof ty.device.publishDpsWithPipeType;
57
58
  export declare const queryDps: typeof ty.device.queryDps;
@@ -158,9 +158,11 @@ export var getSubDeviceInfoList = factory('getSubDeviceInfoList', {
158
158
  });
159
159
  export var validDeviceOnlineType = factory('validDeviceOnlineType', {
160
160
  "namespace": "device"
161
- }); // Note: v1.0.0 由于Panel-sdk中封装,所以废弃原有DeviceKit中提供的 publishDps, Panel-sdk中封装的publishDps兼容原有publishDps。
162
- // export const publishDps = factory('publishDps', {"namespace":"device"}) as typeof ty.device.publishDps
161
+ }); // Note: v1.0.0 由于Panel-sdk中封装,所以废弃原有DeviceKit中提供的 publishDps,别名为 publishCommonDps, Panel-sdk中封装的publishDps兼容原有publishDps。
163
162
 
163
+ export var publishCommonDps = factory('publishDps', {
164
+ "namespace": "device"
165
+ });
164
166
  export var publishCommands = factory('publishCommands', {
165
167
  "namespace": "device"
166
168
  });
package/lib/index.d.ts CHANGED
@@ -24,4 +24,4 @@ export { default as setNavigationBarBack } from './setNavigationBarBack';
24
24
  * 提供 glboal-api 将 wx / ty 对象暴露出去,供给业务在Ray为显示导出api时进行快速响应开发。
25
25
  */
26
26
  export { default as globalApi } from './global-api';
27
- export * from './panel';
27
+ export * from './panel/index.thing';
package/lib/index.js CHANGED
@@ -25,4 +25,4 @@ export { default as setNavigationBarBack } from './setNavigationBarBack';
25
25
  */
26
26
 
27
27
  export { default as globalApi } from './global-api';
28
- export * from './panel';
28
+ export * from './panel/index.thing';
@@ -1,4 +1,4 @@
1
- import { kit } from '@ray-js/panel-sdk';
2
- export * from '@ray-js/panel-cloud';
3
- declare const initPanelEnvironment: typeof kit.initPanelEnvironment, publishDps: typeof kit.publishDps, I18N: typeof kit.I18N;
1
+ declare const initPanelEnvironment: () => void;
2
+ declare const publishDps: () => void;
3
+ declare const I18N: () => void;
4
4
  export { initPanelEnvironment, publishDps, I18N };
@@ -1,6 +1,13 @@
1
- import { kit } from '@ray-js/panel-sdk';
2
- export * from '@ray-js/panel-cloud';
3
- var initPanelEnvironment = kit.initPanelEnvironment,
4
- publishDps = kit.publishDps,
5
- I18N = kit.I18N;
1
+ var initPanelEnvironment = function () {
2
+ console.log('暂未实现');
3
+ };
4
+
5
+ var publishDps = function () {
6
+ console.log('暂未实现');
7
+ };
8
+
9
+ var I18N = function () {
10
+ console.log('暂未实现');
11
+ };
12
+
6
13
  export { initPanelEnvironment, publishDps, I18N };
@@ -0,0 +1,4 @@
1
+ import { kit } from '@ray-js/panel-sdk';
2
+ export * from '@ray-js/panel-cloud';
3
+ declare const initPanelEnvironment: typeof kit.initPanelEnvironment, publishDps: typeof kit.publishDps, I18N: typeof kit.I18N;
4
+ export { initPanelEnvironment, publishDps, I18N };
@@ -0,0 +1,6 @@
1
+ import { kit } from '@ray-js/panel-sdk';
2
+ export * from '@ray-js/panel-cloud';
3
+ var initPanelEnvironment = kit.initPanelEnvironment,
4
+ publishDps = kit.publishDps,
5
+ I18N = kit.I18N;
6
+ export { initPanelEnvironment, publishDps, I18N };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.6.27",
3
+ "version": "0.6.29",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,12 +26,12 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^0.6.27",
29
+ "@ray-js/framework": "^0.6.29",
30
30
  "@ray-js/panel-sdk": "^1.2.2",
31
- "@ray-js/router": "^0.6.27"
31
+ "@ray-js/router": "^0.6.29"
32
32
  },
33
33
  "devDependencies": {
34
- "@ray-js/cli": "^0.6.27",
34
+ "@ray-js/cli": "^0.6.29",
35
35
  "art-template": "^4.13.2",
36
36
  "fs-extra": "^10.1.0",
37
37
  "miniprogram-api-typings": "^3.4.3",
@@ -46,6 +46,6 @@
46
46
  "email": "tuyafe@tuya.com"
47
47
  }
48
48
  ],
49
- "gitHead": "5eb791784d2f9967884e3c70b7567d2f76757e08",
49
+ "gitHead": "8fd0011cd6c72804fdf29a0e6bd487038f67f0d9",
50
50
  "repository": {}
51
51
  }