@ray-js/api 0.3.0-beta.1c347991 → 0.3.0-beta.bfd3bb4d

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 (53) hide show
  1. package/@types/api.d.ts +3 -3
  2. package/lib/authorize/index.d.ts +3 -0
  3. package/lib/authorizeStatus/index.d.ts +3 -0
  4. package/lib/chooseImage/index.d.ts +3 -0
  5. package/lib/clearStorage/index.d.ts +3 -0
  6. package/lib/clearStorageSync/index.d.ts +3 -0
  7. package/lib/getAppInfo/index.native.d.ts +2 -1
  8. package/lib/getAppInfo/index.tuya.d.ts +2 -1
  9. package/lib/getClipboardData/index.d.ts +3 -0
  10. package/lib/getNetworkType/index.d.ts +3 -0
  11. package/lib/getStorage/index.d.ts +3 -0
  12. package/lib/getStorageSync/index.d.ts +3 -0
  13. package/lib/getSystemInfo/index.d.ts +3 -0
  14. package/lib/getSystemInfo/index.native.d.ts +2 -1
  15. package/lib/getSystemInfo/index.tuya.d.ts +2 -1
  16. package/lib/getSystemInfoSync/index.d.ts +3 -0
  17. package/lib/getSystemInfoSync/index.native.d.ts +2 -1
  18. package/lib/getSystemInfoSync/index.tuya.d.ts +2 -1
  19. package/lib/hideLoading/index.d.ts +3 -0
  20. package/lib/hideLoading/index.native.d.ts +2 -1
  21. package/lib/hideLoading/index.tuya.d.ts +2 -1
  22. package/lib/hideToast/index.d.ts +3 -0
  23. package/lib/hideToast/index.native.d.ts +2 -1
  24. package/lib/hideToast/index.tuya.d.ts +2 -1
  25. package/lib/makePhoneCall/index.d.ts +3 -0
  26. package/lib/offBluetoothAdapterStateChange/index.d.ts +3 -0
  27. package/lib/offNetworkStatusChange/index.d.ts +3 -0
  28. package/lib/offProgressUpdate/index.d.ts +3 -0
  29. package/lib/onBluetoothAdapterStateChange/index.d.ts +3 -0
  30. package/lib/onNetworkStatusChange/index.d.ts +3 -0
  31. package/lib/onProgressUpdate/index.d.ts +3 -0
  32. package/lib/previewImage/index.d.ts +3 -0
  33. package/lib/readFile/index.d.ts +3 -0
  34. package/lib/readFileSync/index.d.ts +3 -0
  35. package/lib/removeStorage/index.d.ts +3 -0
  36. package/lib/removeStorageSync/index.d.ts +3 -0
  37. package/lib/request/index.d.ts +3 -0
  38. package/lib/setClipboardData/index.d.ts +3 -0
  39. package/lib/setStorage/index.d.ts +3 -0
  40. package/lib/setStorageSync/index.d.ts +3 -0
  41. package/lib/showActionSheet/index.d.ts +3 -0
  42. package/lib/showActionSheet/index.native.d.ts +2 -1
  43. package/lib/showActionSheet/index.tuya.d.ts +2 -1
  44. package/lib/showLoading/index.d.ts +3 -0
  45. package/lib/showLoading/index.native.d.ts +2 -1
  46. package/lib/showLoading/index.tuya.d.ts +2 -1
  47. package/lib/showModal/index.d.ts +3 -0
  48. package/lib/showModal/index.native.d.ts +2 -1
  49. package/lib/showModal/index.tuya.d.ts +2 -1
  50. package/lib/showToast/index.d.ts +3 -0
  51. package/lib/showToast/index.native.d.ts +2 -1
  52. package/lib/uploadFile/index.d.ts +3 -0
  53. package/package.json +13 -18
package/@types/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- /// <reference types="@tuya-miniapp/BaseKit" />
3
- /// <reference types="@tuya-miniapp/GZLKit" />
4
- /// <reference types="@tuya-miniapp/TYKit" />
2
+ /// <reference types="@tuya-miniapp/base-kit" />
3
+ /// <reference types="@tuya-miniapp/mini-kit" />
4
+ /// <reference types="@tuya-miniapp/ty-kit" />
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const authorize: typeof ty.authorize;
3
+ export default authorize;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const authorizeStatus: typeof ty.authorizeStatus;
3
+ export default authorizeStatus;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const chooseImage: typeof ty.chooseImage;
3
+ export default chooseImage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const clearStorage: typeof ty.clearStorage;
3
+ export default clearStorage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const clearStorageSync: typeof ty.clearStorageSync;
3
+ export default clearStorageSync;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/ty-kit" />
2
+ declare const _default: typeof ty.getAppInfo;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/ty-kit" />
2
+ declare const _default: typeof ty.getAppInfo;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getClipboardData: typeof ty.getClipboardData;
3
+ export default getClipboardData;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getNetworkType: typeof ty.getNetworkType;
3
+ export default getNetworkType;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getStorage: typeof ty.getStorage;
3
+ export default getStorage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getStorageSync: typeof ty.getStorageSync;
3
+ export default getStorageSync;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getSystemInfo: typeof ty.getSystemInfo;
3
+ export default getSystemInfo;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.getSystemInfo;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.getSystemInfo;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const getSystemInfoSync: typeof ty.getSystemInfoSync;
3
+ export default getSystemInfoSync;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.getSystemInfoSync;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.getSystemInfoSync;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const hideLoading: typeof ty.hideLoading;
3
+ export default hideLoading;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.hideLoading;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.hideLoading;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const hideToast: typeof ty.hideToast;
3
+ export default hideToast;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.hideToast;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.hideToast;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const makePhoneCall: typeof ty.makePhoneCall;
3
+ export default makePhoneCall;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const offBluetoothAdapterStateChange: typeof ty.offBluetoothAdapterStateChange;
3
+ export default offBluetoothAdapterStateChange;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const offNetworkStatusChange: typeof ty.offNetworkStatusChange;
3
+ export default offNetworkStatusChange;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const offProgressUpdate: typeof ty.offProgressUpdate;
3
+ export default offProgressUpdate;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const onBluetoothAdapterStateChange: typeof ty.onBluetoothAdapterStateChange;
3
+ export default onBluetoothAdapterStateChange;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const onNetworkStatusChange: typeof ty.onNetworkStatusChange;
3
+ export default onNetworkStatusChange;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const onProgressUpdate: typeof ty.onProgressUpdate;
3
+ export default onProgressUpdate;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const previewImage: typeof ty.previewImage;
3
+ export default previewImage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const readFile: typeof ty.readFile;
3
+ export default readFile;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const readFileSync: typeof ty.readFileSync;
3
+ export default readFileSync;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const removeStorage: typeof ty.removeStorage;
3
+ export default removeStorage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const removeStorageSync: typeof ty.removeStorageSync;
3
+ export default removeStorageSync;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const request: typeof ty.request;
3
+ export default request;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setClipboardData: typeof ty.setClipboardData;
3
+ export default setClipboardData;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setStorage: typeof ty.setStorage;
3
+ export default setStorage;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setStorageSync: typeof ty.setStorageSync;
3
+ export default setStorageSync;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showActionSheet: typeof ty.showActionSheet;
3
+ export default showActionSheet;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showActionSheet;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showActionSheet;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showLoading: typeof ty.showLoading;
3
+ export default showLoading;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showLoading;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showLoading;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showModal: typeof ty.showModal;
3
+ export default showModal;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showModal;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showModal;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showToast: typeof ty.showToast;
3
+ export default showToast;
@@ -1,2 +1,3 @@
1
- declare const _default: any;
1
+ /// <reference types="@tuya-miniapp/base-kit" />
2
+ declare const _default: typeof ty.showToast;
2
3
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const uploadFile: typeof ty.uploadFile;
3
+ export default uploadFile;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.3.0-beta.1c347991",
3
+ "version": "0.3.0-beta.bfd3bb4d",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
7
7
  ],
8
- "author": "子长 <zichang.nong@tuya.com>",
9
8
  "license": "MIT",
10
9
  "main": "lib/index.js",
11
10
  "files": [
@@ -26,24 +25,20 @@
26
25
  "watch": "ray start --type=component"
27
26
  },
28
27
  "dependencies": {
29
- "@ray-js/env": "^0.3.0-beta.1c347991",
30
- "@ray-js/framework": "^0.3.0-beta.1c347991",
31
- "@ray-js/framework-native": "^0.3.0-beta.1c347991",
32
- "@ray-js/ray-panel-notification": "^0.3.0-beta.1c347991",
33
- "@ray-js/router": "^0.3.0-beta.1c347991",
34
- "@ray-js/router-native": "^0.3.0-beta.1c347991",
35
- "@ray-js/runtime-native": "^0.3.0-beta.1c347991",
36
- "@tuya-miniapp/BaseKit": "^2.0.3",
37
- "@tuya-miniapp/DeviceKit": "^2.0.5",
38
- "@tuya-miniapp/HomeKit": "^2.0.2",
39
- "@tuya-miniapp/IndustryKit": "^0.0.30",
40
- "@tuya-miniapp/MapKit": "^2.0.3",
41
- "@tuya-miniapp/MiniKit": "^2.0.5",
42
- "@tuya-miniapp/TYKit": "^2.0.4",
28
+ "@ray-js/framework": "^0.3.0-beta.bfd3bb4d",
29
+ "@ray-js/framework-native": "^0.3.0-beta.bfd3bb4d",
30
+ "@ray-js/ray-panel-notification": "^0.3.0-beta.bfd3bb4d",
31
+ "@ray-js/router": "^0.3.0-beta.bfd3bb4d",
32
+ "@ray-js/router-native": "^0.3.0-beta.bfd3bb4d",
33
+ "@ray-js/runtime-native": "^0.3.0-beta.bfd3bb4d",
34
+ "@tuya-miniapp/base-kit": "^2.1.2",
35
+ "@tuya-miniapp/device-kit": "^2.1.6",
36
+ "@tuya-miniapp/mini-kit": "^2.3.0",
37
+ "@tuya-miniapp/ty-kit": "^2.0.7",
43
38
  "react-native": "0.59.10"
44
39
  },
45
40
  "devDependencies": {
46
- "@ray-js/cli": "^0.3.0-beta.1c347991",
41
+ "@ray-js/cli": "^0.3.0-beta.bfd3bb4d",
47
42
  "miniprogram-api-typings": "^3.4.3",
48
43
  "react": "^17.0.2"
49
44
  },
@@ -53,6 +48,6 @@
53
48
  "email": "tuyafe@tuya.com"
54
49
  }
55
50
  ],
56
- "gitHead": "e0bd013022ddda63380d3c9e20fd8cadb46cd61f",
51
+ "gitHead": "bc8d1b1c2d2839273d1ed71b02fbfa6bc957006d",
57
52
  "repository": {}
58
53
  }