@ray-js/api 0.6.22-beta-2 → 0.6.25
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/@types/BaseKit.d.ts +1345 -1357
- package/@types/MiniKit.d.ts +9 -10
- package/lib/BaseKit-3.0.0.d.ts +80 -80
- package/lib/DeviceKit-3.0.0.d.ts +0 -1
- package/lib/DeviceKit-3.0.0.js +3 -4
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/lib/panel/README.md +3 -0
- package/lib/panel/index.d.ts +4 -0
- package/lib/panel/index.js +6 -0
- package/package.json +7 -5
package/@types/MiniKit.d.ts
CHANGED
@@ -978,31 +978,30 @@ declare namespace ty {
|
|
978
978
|
*/
|
979
979
|
export function offNativeEvent(listener: (params: NativeUploadData) => void): void
|
980
980
|
|
981
|
-
export
|
981
|
+
export type HighwayMethod =
|
982
982
|
/** HTTP 请求 OPTIONS */
|
983
|
-
|
983
|
+
| 'OPTIONS'
|
984
984
|
|
985
985
|
/** HTTP 请求 GET */
|
986
|
-
|
986
|
+
| 'GET'
|
987
987
|
|
988
988
|
/** HTTP 请求 HEAD */
|
989
|
-
|
989
|
+
| 'HEAD'
|
990
990
|
|
991
991
|
/** HTTP 请求 POST */
|
992
|
-
|
992
|
+
| 'POST'
|
993
993
|
|
994
994
|
/** HTTP 请求 PUT */
|
995
|
-
|
995
|
+
| 'PUT'
|
996
996
|
|
997
997
|
/** HTTP 请求 DELETE */
|
998
|
-
|
998
|
+
| 'DELETE'
|
999
999
|
|
1000
1000
|
/** HTTP 请求 TRACE */
|
1001
|
-
|
1001
|
+
| 'TRACE'
|
1002
1002
|
|
1003
1003
|
/** HTTP 请求 TRACE */
|
1004
|
-
|
1005
|
-
}
|
1004
|
+
| 'CONNECT'
|
1006
1005
|
|
1007
1006
|
export type ReferrerInfo = {
|
1008
1007
|
/** 来源小程序、公众号或 App 的 appId */
|
package/lib/BaseKit-3.0.0.d.ts
CHANGED
@@ -1,81 +1,81 @@
|
|
1
1
|
/// <reference path="../@types/BaseKit.d.ts" />
|
2
|
-
export declare const stopAccelerometer:
|
3
|
-
export declare const startAccelerometer:
|
4
|
-
export declare const getAudioFileDuration:
|
5
|
-
export declare const authorize:
|
6
|
-
export declare const authorizeStatus:
|
7
|
-
export declare const navigateToMiniProgram:
|
8
|
-
export declare const startCompass:
|
9
|
-
export declare const stopCompass:
|
10
|
-
export declare const startDeviceMotionListening:
|
11
|
-
export declare const stopDeviceMotionListening:
|
12
|
-
export declare const startGyroscope:
|
13
|
-
export declare const stopGyroscope:
|
14
|
-
export declare const chooseImage:
|
15
|
-
export declare const chooseMedia:
|
16
|
-
export declare const chooseCropImage:
|
17
|
-
export declare const previewImage:
|
18
|
-
export declare const getImageInfo:
|
19
|
-
export declare const getVideoInfo:
|
20
|
-
export declare const saveVideoToPhotosAlbum:
|
21
|
-
export declare const showToast:
|
22
|
-
export declare const showModal:
|
23
|
-
export declare const showLoading:
|
24
|
-
export declare const showActionSheet:
|
25
|
-
export declare const hideToast:
|
26
|
-
export declare const hideLoading:
|
27
|
-
export declare const makePhoneCall:
|
28
|
-
export declare const setClipboardData:
|
29
|
-
export declare const getClipboardData:
|
30
|
-
export declare const updateVolume:
|
31
|
-
export declare const getCurrentVolume:
|
32
|
-
export declare const registerSystemVolumeChange:
|
33
|
-
export declare const unRegisterSystemVolumeChange:
|
34
|
-
export declare const getSystemSetting:
|
35
|
-
export declare const getMobileDeviceInfo:
|
36
|
-
export declare const getSystemInfo:
|
37
|
-
export declare const getSystemInfoSync:
|
38
|
-
export declare const getWifiList:
|
39
|
-
export declare const getConnectedWifi:
|
40
|
-
export declare const openSystemBluetoothSetting:
|
41
|
-
export declare const getNetworkType:
|
42
|
-
export declare const setScreenBrightness:
|
43
|
-
export declare const getScreenBrightness:
|
44
|
-
export declare const setKeepScreenOn:
|
45
|
-
export declare const vibrateShort:
|
46
|
-
export declare const vibrateLong:
|
47
|
-
export declare const scanCode:
|
48
|
-
export declare const setStorage:
|
49
|
-
export declare const setStorageSync:
|
50
|
-
export declare const getStorage:
|
51
|
-
export declare const getStorageSync:
|
52
|
-
export declare const removeStorage:
|
53
|
-
export declare const removeStorageSync:
|
54
|
-
export declare const clearStorage:
|
55
|
-
export declare const clearStorageSync:
|
56
|
-
export declare const onSystemVolumeChangeEvent:
|
57
|
-
export declare const offSystemVolumeChangeEvent:
|
58
|
-
export declare const onGetWifiList:
|
59
|
-
export declare const offGetWifiList:
|
60
|
-
export declare const onRecordingEvent:
|
61
|
-
export declare const offRecordingEvent:
|
62
|
-
export declare const onAccelerometerChange:
|
63
|
-
export declare const offAccelerometerChange:
|
64
|
-
export declare const onCompassChange:
|
65
|
-
export declare const offCompassChange:
|
66
|
-
export declare const onDeviceMotionChange:
|
67
|
-
export declare const offDeviceMotionChange:
|
68
|
-
export declare const onGyroscopeChange:
|
69
|
-
export declare const offGyroscopeChange:
|
70
|
-
export declare const onMemoryWarning:
|
71
|
-
export declare const offMemoryWarning:
|
72
|
-
export declare const onBluetoothAdapterStateChange:
|
73
|
-
export declare const offBluetoothAdapterStateChange:
|
74
|
-
export declare const onNetworkStatusChange:
|
75
|
-
export declare const offNetworkStatusChange:
|
76
|
-
export declare const createInnerAudioContext:
|
77
|
-
export declare const downloadFile:
|
78
|
-
export declare const getFileSystemManager:
|
79
|
-
export declare const request:
|
80
|
-
export declare const getRecorderManager:
|
81
|
-
export declare const uploadFile:
|
2
|
+
export declare const stopAccelerometer: any;
|
3
|
+
export declare const startAccelerometer: any;
|
4
|
+
export declare const getAudioFileDuration: any;
|
5
|
+
export declare const authorize: any;
|
6
|
+
export declare const authorizeStatus: any;
|
7
|
+
export declare const navigateToMiniProgram: any;
|
8
|
+
export declare const startCompass: any;
|
9
|
+
export declare const stopCompass: any;
|
10
|
+
export declare const startDeviceMotionListening: any;
|
11
|
+
export declare const stopDeviceMotionListening: any;
|
12
|
+
export declare const startGyroscope: any;
|
13
|
+
export declare const stopGyroscope: any;
|
14
|
+
export declare const chooseImage: any;
|
15
|
+
export declare const chooseMedia: any;
|
16
|
+
export declare const chooseCropImage: any;
|
17
|
+
export declare const previewImage: any;
|
18
|
+
export declare const getImageInfo: any;
|
19
|
+
export declare const getVideoInfo: any;
|
20
|
+
export declare const saveVideoToPhotosAlbum: any;
|
21
|
+
export declare const showToast: any;
|
22
|
+
export declare const showModal: any;
|
23
|
+
export declare const showLoading: any;
|
24
|
+
export declare const showActionSheet: any;
|
25
|
+
export declare const hideToast: any;
|
26
|
+
export declare const hideLoading: any;
|
27
|
+
export declare const makePhoneCall: any;
|
28
|
+
export declare const setClipboardData: any;
|
29
|
+
export declare const getClipboardData: any;
|
30
|
+
export declare const updateVolume: any;
|
31
|
+
export declare const getCurrentVolume: any;
|
32
|
+
export declare const registerSystemVolumeChange: any;
|
33
|
+
export declare const unRegisterSystemVolumeChange: any;
|
34
|
+
export declare const getSystemSetting: any;
|
35
|
+
export declare const getMobileDeviceInfo: any;
|
36
|
+
export declare const getSystemInfo: any;
|
37
|
+
export declare const getSystemInfoSync: any;
|
38
|
+
export declare const getWifiList: any;
|
39
|
+
export declare const getConnectedWifi: any;
|
40
|
+
export declare const openSystemBluetoothSetting: any;
|
41
|
+
export declare const getNetworkType: any;
|
42
|
+
export declare const setScreenBrightness: any;
|
43
|
+
export declare const getScreenBrightness: any;
|
44
|
+
export declare const setKeepScreenOn: any;
|
45
|
+
export declare const vibrateShort: any;
|
46
|
+
export declare const vibrateLong: any;
|
47
|
+
export declare const scanCode: any;
|
48
|
+
export declare const setStorage: any;
|
49
|
+
export declare const setStorageSync: any;
|
50
|
+
export declare const getStorage: any;
|
51
|
+
export declare const getStorageSync: any;
|
52
|
+
export declare const removeStorage: any;
|
53
|
+
export declare const removeStorageSync: any;
|
54
|
+
export declare const clearStorage: any;
|
55
|
+
export declare const clearStorageSync: any;
|
56
|
+
export declare const onSystemVolumeChangeEvent: any;
|
57
|
+
export declare const offSystemVolumeChangeEvent: any;
|
58
|
+
export declare const onGetWifiList: any;
|
59
|
+
export declare const offGetWifiList: any;
|
60
|
+
export declare const onRecordingEvent: any;
|
61
|
+
export declare const offRecordingEvent: any;
|
62
|
+
export declare const onAccelerometerChange: any;
|
63
|
+
export declare const offAccelerometerChange: any;
|
64
|
+
export declare const onCompassChange: any;
|
65
|
+
export declare const offCompassChange: any;
|
66
|
+
export declare const onDeviceMotionChange: any;
|
67
|
+
export declare const offDeviceMotionChange: any;
|
68
|
+
export declare const onGyroscopeChange: any;
|
69
|
+
export declare const offGyroscopeChange: any;
|
70
|
+
export declare const onMemoryWarning: any;
|
71
|
+
export declare const offMemoryWarning: any;
|
72
|
+
export declare const onBluetoothAdapterStateChange: any;
|
73
|
+
export declare const offBluetoothAdapterStateChange: any;
|
74
|
+
export declare const onNetworkStatusChange: any;
|
75
|
+
export declare const offNetworkStatusChange: any;
|
76
|
+
export declare const createInnerAudioContext: any;
|
77
|
+
export declare const downloadFile: any;
|
78
|
+
export declare const getFileSystemManager: any;
|
79
|
+
export declare const request: any;
|
80
|
+
export declare const getRecorderManager: any;
|
81
|
+
export declare const uploadFile: any;
|
package/lib/DeviceKit-3.0.0.d.ts
CHANGED
@@ -52,7 +52,6 @@ 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 publishDps: typeof ty.device.publishDps;
|
56
55
|
export declare const publishCommands: typeof ty.device.publishCommands;
|
57
56
|
export declare const publishDpsWithPipeType: typeof ty.device.publishDpsWithPipeType;
|
58
57
|
export declare const queryDps: typeof ty.device.queryDps;
|
package/lib/DeviceKit-3.0.0.js
CHANGED
@@ -158,10 +158,9 @@ export var getSubDeviceInfoList = factory('getSubDeviceInfoList', {
|
|
158
158
|
});
|
159
159
|
export var validDeviceOnlineType = factory('validDeviceOnlineType', {
|
160
160
|
"namespace": "device"
|
161
|
-
});
|
162
|
-
export
|
163
|
-
|
164
|
-
});
|
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
|
163
|
+
|
165
164
|
export var publishCommands = factory('publishCommands', {
|
166
165
|
"namespace": "device"
|
167
166
|
});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -24,4 +24,5 @@ export { default as setNavigationBarBack } from './setNavigationBarBack';
|
|
24
24
|
* 提供 glboal-api 将 wx / ty 对象暴露出去,供给业务在Ray为显示导出api时进行快速响应开发。
|
25
25
|
*/
|
26
26
|
|
27
|
-
export { default as globalApi } from './global-api';
|
27
|
+
export { default as globalApi } from './global-api';
|
28
|
+
export * from './panel';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.25",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,11 +26,13 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.6.
|
30
|
-
"@ray-js/router": "^0.6.
|
29
|
+
"@ray-js/framework": "^0.6.25",
|
30
|
+
"@ray-js/router": "^0.6.25"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
|
-
"@ray-js/cli": "^0.6.
|
33
|
+
"@ray-js/cli": "^0.6.25",
|
34
|
+
"@ray-js/panel-cloud": "^1.2.0",
|
35
|
+
"@ray-js/panel-sdk": "^1.2.0",
|
34
36
|
"art-template": "^4.13.2",
|
35
37
|
"fs-extra": "^10.1.0",
|
36
38
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -42,6 +44,6 @@
|
|
42
44
|
"email": "tuyafe@tuya.com"
|
43
45
|
}
|
44
46
|
],
|
45
|
-
"gitHead": "
|
47
|
+
"gitHead": "410b4714bc5f496978ddd642ee092f0fe3d8bf8d",
|
46
48
|
"repository": {}
|
47
49
|
}
|