@ray-js/api 0.5.4 → 0.5.6-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 (137) hide show
  1. package/@types/BaseKit.d.ts +1009 -65
  2. package/@types/{TYKit.d.ts → BizKit.d.ts} +69 -42
  3. package/@types/DeviceKit.d.ts +788 -1564
  4. package/@types/MiniKit.d.ts +381 -26
  5. package/@types/all-kits.d.ts +1 -1
  6. package/lib/{BaseKit-2.3.11.d.ts → BaseKit-2.5.1-anonymize.2.d.ts} +18 -1
  7. package/lib/{BaseKit-2.3.11.js → BaseKit-2.5.1-anonymize.2.js} +18 -1
  8. package/lib/BizKit-2.4.6-rc.101.d.ts +40 -0
  9. package/lib/{TYKit-2.2.6.js → BizKit-2.4.6-rc.101.js} +1 -1
  10. package/lib/{DeviceKit-2.3.3.d.ts → DeviceKit-2.5.2-anonymize.1.d.ts} +43 -56
  11. package/lib/{DeviceKit-2.3.3.wechat.js → DeviceKit-2.5.2-anonymize.1.js} +85 -124
  12. package/lib/{MiniKit-2.4.3.d.ts → MiniKit-4.4.0-anonymize.4.d.ts} +14 -0
  13. package/lib/{MiniKit-2.4.3.wechat.js → MiniKit-4.4.0-anonymize.4.js} +14 -0
  14. package/lib/all-kits.d.ts +5 -5
  15. package/lib/all-kits.js +5 -5
  16. package/lib/getApp/index.native.js +4 -0
  17. package/lib/getBoundingClientRect/index.js +26 -1
  18. package/lib/getCurrentPages/index.native.js +5 -0
  19. package/lib/getElementById/index.native.js +13 -0
  20. package/lib/getI18nInfo/index.native.js +9 -0
  21. package/lib/hideNotification/index.native.js +7 -0
  22. package/lib/hideTabBar/index.native.js +2 -0
  23. package/lib/navigateBack/index.native.js +2 -0
  24. package/lib/navigateTo/index.native.js +2 -0
  25. package/lib/reLaunch/index.native.js +2 -0
  26. package/lib/readFileSync/index.native.js +8 -0
  27. package/lib/redirectTo/index.native.js +2 -0
  28. package/lib/requestCloud/index.native.js +8 -0
  29. package/lib/setNavigationBarColor/index.native.js +2 -0
  30. package/lib/setNavigationBarTitle/index.native.js +2 -0
  31. package/lib/showTabBar/index.native.js +2 -0
  32. package/lib/switchTab/index.native.js +2 -0
  33. package/package.json +8 -8
  34. package/lib/BaseKit-2.3.11.android.js +0 -1
  35. package/lib/BaseKit-2.3.11.ios.js +0 -1
  36. package/lib/BaseKit-2.3.11.tuya.js +0 -66
  37. package/lib/BaseKit-2.3.11.web.js +0 -66
  38. package/lib/BaseKit-2.3.11.wechat.js +0 -66
  39. package/lib/DeviceKit-2.3.3.android.js +0 -1
  40. package/lib/DeviceKit-2.3.3.ios.js +0 -1
  41. package/lib/DeviceKit-2.3.3.js +0 -407
  42. package/lib/DeviceKit-2.3.3.tuya.js +0 -407
  43. package/lib/DeviceKit-2.3.3.web.js +0 -407
  44. package/lib/MiniKit-2.4.3.android.js +0 -1
  45. package/lib/MiniKit-2.4.3.ios.js +0 -1
  46. package/lib/MiniKit-2.4.3.js +0 -43
  47. package/lib/MiniKit-2.4.3.tuya.js +0 -43
  48. package/lib/MiniKit-2.4.3.web.js +0 -43
  49. package/lib/TYKit-2.2.6.android.js +0 -1
  50. package/lib/TYKit-2.2.6.d.ts +0 -40
  51. package/lib/TYKit-2.2.6.ios.js +0 -1
  52. package/lib/TYKit-2.2.6.tuya.js +0 -53
  53. package/lib/TYKit-2.2.6.web.js +0 -53
  54. package/lib/TYKit-2.2.6.wechat.js +0 -53
  55. package/lib/all-kits.android.js +0 -1
  56. package/lib/all-kits.ios.js +0 -1
  57. package/lib/all-kits.tuya.js +0 -6
  58. package/lib/all-kits.web.js +0 -6
  59. package/lib/all-kits.wechat.js +0 -6
  60. package/lib/core/index.android.js +0 -1
  61. package/lib/core/index.ios.js +0 -1
  62. package/lib/core/index.tuya.js +0 -1
  63. package/lib/core/index.web.js +0 -1
  64. package/lib/core/index.wechat.js +0 -1
  65. package/lib/core/promisify/index.android.js +0 -1
  66. package/lib/core/promisify/index.ios.js +0 -1
  67. package/lib/core/promisify/index.tuya.js +0 -27
  68. package/lib/core/promisify/index.web.js +0 -27
  69. package/lib/core/promisify/index.wechat.js +0 -27
  70. package/lib/getApp/index.android.js +0 -1
  71. package/lib/getApp/index.ios.js +0 -1
  72. package/lib/getApp/index.web.js +0 -4
  73. package/lib/getBoundingClientRect/index.android.js +0 -1
  74. package/lib/getBoundingClientRect/index.ios.js +0 -1
  75. package/lib/getBoundingClientRect/index.web.js +0 -26
  76. package/lib/getCurrentPages/index.android.js +0 -1
  77. package/lib/getCurrentPages/index.ios.js +0 -1
  78. package/lib/getCurrentPages/index.web.js +0 -4
  79. package/lib/getElementById/index.android.js +0 -1
  80. package/lib/getElementById/index.ios.js +0 -1
  81. package/lib/getElementById/index.web.js +0 -7
  82. package/lib/getI18nInfo/index.android.js +0 -1
  83. package/lib/getI18nInfo/index.ios.js +0 -1
  84. package/lib/getI18nInfo/index.web.js +0 -4
  85. package/lib/hideNotification/index.android.js +0 -1
  86. package/lib/hideNotification/index.ios.js +0 -1
  87. package/lib/hideNotification/index.tuya.js +0 -3
  88. package/lib/hideNotification/index.web.js +0 -3
  89. package/lib/hideNotification/index.wechat.js +0 -3
  90. package/lib/hideTabBar/index.android.js +0 -1
  91. package/lib/hideTabBar/index.ios.js +0 -1
  92. package/lib/hideTabBar/index.web.js +0 -4
  93. package/lib/index.android.js +0 -1
  94. package/lib/index.ios.js +0 -1
  95. package/lib/index.tuya.js +0 -20
  96. package/lib/index.web.js +0 -20
  97. package/lib/index.wechat.js +0 -20
  98. package/lib/navigateBack/index.android.js +0 -1
  99. package/lib/navigateBack/index.ios.js +0 -1
  100. package/lib/navigateBack/index.web.js +0 -14
  101. package/lib/navigateTo/index.android.js +0 -1
  102. package/lib/navigateTo/index.ios.js +0 -1
  103. package/lib/navigateTo/index.web.js +0 -11
  104. package/lib/reLaunch/index.android.js +0 -1
  105. package/lib/reLaunch/index.ios.js +0 -1
  106. package/lib/reLaunch/index.web.js +0 -11
  107. package/lib/readFileSync/index.android.js +0 -1
  108. package/lib/readFileSync/index.ios.js +0 -1
  109. package/lib/readFileSync/index.web.js +0 -6
  110. package/lib/redirectTo/index.android.js +0 -1
  111. package/lib/redirectTo/index.ios.js +0 -1
  112. package/lib/redirectTo/index.web.js +0 -13
  113. package/lib/requestCloud/index.android.js +0 -1
  114. package/lib/requestCloud/index.ios.js +0 -1
  115. package/lib/requestCloud/index.web.js +0 -7
  116. package/lib/setNavigationBarColor/index.android.js +0 -1
  117. package/lib/setNavigationBarColor/index.ios.js +0 -1
  118. package/lib/setNavigationBarColor/index.web.js +0 -11
  119. package/lib/setNavigationBarTitle/index.android.js +0 -1
  120. package/lib/setNavigationBarTitle/index.ios.js +0 -1
  121. package/lib/setNavigationBarTitle/index.web.js +0 -11
  122. package/lib/showNotification/index.android.js +0 -1
  123. package/lib/showNotification/index.ios.js +0 -1
  124. package/lib/showNotification/index.tuya.js +0 -3
  125. package/lib/showNotification/index.web.js +0 -3
  126. package/lib/showNotification/index.wechat.js +0 -3
  127. package/lib/showTabBar/index.android.js +0 -1
  128. package/lib/showTabBar/index.ios.js +0 -1
  129. package/lib/showTabBar/index.web.js +0 -4
  130. package/lib/switchTab/index.android.js +0 -1
  131. package/lib/switchTab/index.ios.js +0 -1
  132. package/lib/switchTab/index.web.js +0 -11
  133. package/lib/utils.android.js +0 -1
  134. package/lib/utils.ios.js +0 -1
  135. package/lib/utils.tuya.js +0 -21
  136. package/lib/utils.web.js +0 -21
  137. package/lib/utils.wechat.js +0 -20
@@ -0,0 +1,40 @@
1
+ /// <reference path="../@types/BizKit.d.ts" />
2
+ export declare const apiRequestByAtop: any;
3
+ export declare const event: any;
4
+ export declare const beginEvent: any;
5
+ export declare const trackEvent: any;
6
+ export declare const endEvent: any;
7
+ export declare const getAppInfo: any;
8
+ export declare const getCurrentWifiSSID: any;
9
+ export declare const openCountrySelectPage: any;
10
+ export declare const getIconfontInfo: any;
11
+ export declare const uploadImage: any;
12
+ export declare const getLangKey: any;
13
+ export declare const getLangContent: any;
14
+ export declare const openRNPanel: any;
15
+ export declare const openPanel: any;
16
+ export declare const preloadPanel: any;
17
+ export declare const openInnerH5: any;
18
+ export declare const openAppSystemSettingPage: any;
19
+ export declare const openSystemSettingPage: any;
20
+ export declare const emitChannel: any;
21
+ export declare const router: any;
22
+ export declare const canIUseRouter: any;
23
+ export declare const goDeviceDetail: any;
24
+ export declare const goDeviceAlarm: any;
25
+ export declare const share: any;
26
+ export declare const getShareChannelList: any;
27
+ export declare const resizeImage: any;
28
+ export declare const rotateImage: any;
29
+ export declare const saveToAlbum: any;
30
+ export declare const onCountrySelectResult: any;
31
+ export declare const offCountrySelectResult: any;
32
+ export declare const onUploadProgressUpdate: any;
33
+ export declare const offUploadProgressUpdate: any;
34
+ export declare const onReceiveMessage: any;
35
+ export declare const offReceiveMessage: any;
36
+ export declare const onRouterEvent: any;
37
+ export declare const offRouterEvent: any;
38
+ export declare const onRouterResult: any;
39
+ export declare const offRouterResult: any;
40
+ export declare const registerChannel: any;
@@ -1,4 +1,4 @@
1
- /// <reference path="../@types/TYKit.d.ts" />
1
+ /// <reference path="../@types/BizKit.d.ts" />
2
2
  import { factory } from './utils';
3
3
  export var apiRequestByAtop = factory('apiRequestByAtop');
4
4
  export var event = factory('event');
@@ -1,16 +1,24 @@
1
1
  /// <reference path="../@types/DeviceKit.d.ts" />
2
+ export declare const unregisterLeaveBeaconFenceEvent: typeof ty.device.unregisterLeaveBeaconFenceEvent;
3
+ export declare const registerLeaveBeaconFenceEvent: typeof ty.device.registerLeaveBeaconFenceEvent;
4
+ export declare const writeBeaconFenceConfig: typeof ty.device.writeBeaconFenceConfig;
5
+ export declare const readBeaconFenceConfig: typeof ty.device.readBeaconFenceConfig;
6
+ export declare const disconnectBTBond: typeof ty.device.disconnectBTBond;
7
+ export declare const connectBTBond: typeof ty.device.connectBTBond;
8
+ export declare const cancelBLEFileTransfer: typeof ty.device.cancelBLEFileTransfer;
9
+ export declare const postBLEFileTransfer: typeof ty.device.postBLEFileTransfer;
2
10
  export declare const getBLEDeviceRSSI: typeof ty.device.getBLEDeviceRSSI;
3
- export declare const subscribeTYBLEConnectStatus: typeof ty.device.subscribeTYBLEConnectStatus;
4
- export declare const unsubscribeTYBLEConnectStatus: typeof ty.device.unsubscribeTYBLEConnectStatus;
5
- export declare const connectTYBLEDevice: typeof ty.device.connectTYBLEDevice;
11
+ export declare const subscribeBLEConnectStatus: typeof ty.device.subscribeBLEConnectStatus;
12
+ export declare const unsubscribeBLEConnectStatus: typeof ty.device.unsubscribeBLEConnectStatus;
13
+ export declare const connectBLEDevice: typeof ty.device.connectBLEDevice;
6
14
  export declare const directConnectBLEDevice: typeof ty.device.directConnectBLEDevice;
7
- export declare const disconnectTYBLEDevice: typeof ty.device.disconnectTYBLEDevice;
8
- export declare const getTYBLEOnlineState: typeof ty.device.getTYBLEOnlineState;
9
- export declare const subscribeTYBLETransparentDataReport: typeof ty.device.subscribeTYBLETransparentDataReport;
10
- export declare const unsubscribeTYBLETransparentDataReport: typeof ty.device.unsubscribeTYBLETransparentDataReport;
11
- export declare const publishTYBLETransparentData: typeof ty.device.publishTYBLETransparentData;
15
+ export declare const disconnectBLEDevice: typeof ty.device.disconnectBLEDevice;
16
+ export declare const getBLEOnlineState: typeof ty.device.getBLEOnlineState;
17
+ export declare const subscribeBLETransparentDataReport: typeof ty.device.subscribeBLETransparentDataReport;
18
+ export declare const unsubscribeBLETransparentDataReport: typeof ty.device.unsubscribeBLETransparentDataReport;
19
+ export declare const publishBLETransparentData: typeof ty.device.publishBLETransparentData;
12
20
  export declare const getEncryptLocalKeyWithData: typeof ty.device.getEncryptLocalKeyWithData;
13
- export declare const postTYBLEBigDataChannelWithProgress: typeof ty.device.postTYBLEBigDataChannelWithProgress;
21
+ export declare const postBLEBigDataChannelWithProgress: typeof ty.device.postBLEBigDataChannelWithProgress;
14
22
  export declare const startBLEMeshLowPowerConnection: typeof ty.device.startBLEMeshLowPowerConnection;
15
23
  export declare const stopBLEMeshLowPowerConnection: typeof ty.device.stopBLEMeshLowPowerConnection;
16
24
  export declare const startBLEScanBeacon: typeof ty.device.startBLEScanBeacon;
@@ -32,33 +40,8 @@ export declare const stopDirectlyConnectedDeviceActivator: typeof ty.device.stop
32
40
  export declare const openCategoryActivatorPage: typeof ty.device.openCategoryActivatorPage;
33
41
  export declare const startDirectlyConnectedSearchDevice: typeof ty.device.startDirectlyConnectedSearchDevice;
34
42
  export declare const stopDirectlyConnectedSearchDevice: typeof ty.device.stopDirectlyConnectedSearchDevice;
35
- export declare const resetFactory: typeof ty.device.resetFactory;
36
- export declare const removeDevice: typeof ty.device.removeDevice;
37
- export declare const registerZigbeeGateWaySubDeviceListener: typeof ty.device.registerZigbeeGateWaySubDeviceListener;
38
- export declare const unregisterZigbeeGateWaySubDeviceListener: typeof ty.device.unregisterZigbeeGateWaySubDeviceListener;
39
- export declare const getDeviceOnlineType: typeof ty.device.getDeviceOnlineType;
40
- export declare const getDeviceInfo: typeof ty.device.getDeviceInfo;
41
- export declare const getProductInfo: typeof ty.device.getProductInfo;
42
- export declare const getSubDeviceInfoList: typeof ty.device.getSubDeviceInfoList;
43
- export declare const validDeviceOnlineType: typeof ty.device.validDeviceOnlineType;
44
- export declare const publishDps: typeof ty.device.publishDps;
45
- export declare const publishCommands: typeof ty.device.publishCommands;
46
- export declare const publishDpsWithPipeType: typeof ty.device.publishDpsWithPipeType;
47
- export declare const queryDps: typeof ty.device.queryDps;
48
- export declare const publishMqttMessage: typeof ty.device.publishMqttMessage;
49
- export declare const publishLanMessage: typeof ty.device.publishLanMessage;
50
- export declare const publishSocketMessage: typeof ty.device.publishSocketMessage;
51
- export declare const getDeviceProperty: typeof ty.device.getDeviceProperty;
52
- export declare const setDeviceProperty: typeof ty.device.setDeviceProperty;
53
- export declare const syncDeviceInfo: typeof ty.device.syncDeviceInfo;
54
- export declare const subscribeDeviceRemoved: typeof ty.device.subscribeDeviceRemoved;
55
- export declare const unSubscribeDeviceRemoved: typeof ty.device.unSubscribeDeviceRemoved;
56
- export declare const registerMQTTDeviceListener: typeof ty.device.registerMQTTDeviceListener;
57
- export declare const unregisterMQTTDeviceListener: typeof ty.device.unregisterMQTTDeviceListener;
58
- export declare const registerMQTTProtocolListener: typeof ty.device.registerMQTTProtocolListener;
59
- export declare const unregisterMQTTProtocolListener: typeof ty.device.unregisterMQTTProtocolListener;
60
- export declare const registerDeviceListListener: typeof ty.device.registerDeviceListListener;
61
- export declare const unregisterDeviceListListener: typeof ty.device.unregisterDeviceListListener;
43
+ export declare const getDeviceWifiActivatorStatus: typeof ty.device.getDeviceWifiActivatorStatus;
44
+ export declare const startDeviceWifiActivator: typeof ty.device.startDeviceWifiActivator;
62
45
  export declare const checkOTAUpdateInfo: typeof ty.device.checkOTAUpdateInfo;
63
46
  export declare const openDeviceDetailPage: typeof ty.device.openDeviceDetailPage;
64
47
  export declare const openGroupDetailPage: typeof ty.device.openGroupDetailPage;
@@ -83,12 +66,20 @@ export declare const openShareDevice: typeof ty.device.openShareDevice;
83
66
  export declare const addDeviceToDesk: typeof ty.device.addDeviceToDesk;
84
67
  export declare const removeShareDevice: typeof ty.device.removeShareDevice;
85
68
  export declare const getSupportedThirdPartyServices: typeof ty.device.getSupportedThirdPartyServices;
69
+ export declare const getGroupDeviceList: typeof ty.device.getGroupDeviceList;
70
+ export declare const getGroupDeviceNum: typeof ty.device.getGroupDeviceNum;
71
+ export declare const getDeviceNumWithDpCode: typeof ty.device.getDeviceNumWithDpCode;
72
+ export declare const publishGroupDpCodes: typeof ty.device.publishGroupDpCodes;
73
+ export declare const publishSigMeshMultiDps: typeof ty.device.publishSigMeshMultiDps;
74
+ export declare const openMeshLocalGroup: typeof ty.device.openMeshLocalGroup;
86
75
  export declare const getGroupInfo: typeof ty.device.getGroupInfo;
87
76
  export declare const publishGroupDps: typeof ty.device.publishGroupDps;
88
77
  export declare const getGroupProperty: typeof ty.device.getGroupProperty;
89
78
  export declare const setGroupProperty: typeof ty.device.setGroupProperty;
90
79
  export declare const registerGroupChange: typeof ty.device.registerGroupChange;
91
80
  export declare const unRegisterGroupChange: typeof ty.device.unRegisterGroupChange;
81
+ export declare const getMeshDeviceId: typeof ty.device.getMeshDeviceId;
82
+ export declare const getDpDataByMesh: typeof ty.device.getDpDataByMesh;
92
83
  export declare const checkOTAUpgradeStatus: typeof ty.device.checkOTAUpgradeStatus;
93
84
  export declare const openOTAUpgrade: typeof ty.device.openOTAUpgrade;
94
85
  export declare const pushRNPanel: typeof ty.device.pushRNPanel;
@@ -98,14 +89,18 @@ export declare const getDeviceThingModelInfo: typeof ty.device.getDeviceThingMod
98
89
  export declare const publishThingModelMessage: typeof ty.device.publishThingModelMessage;
99
90
  export declare const subscribeReceivedThingModelMessage: typeof ty.device.subscribeReceivedThingModelMessage;
100
91
  export declare const unSubscribeReceivedThingModelMessage: typeof ty.device.unSubscribeReceivedThingModelMessage;
101
- export declare const onTYBLEConnectStatusChange: typeof ty.device.onTYBLEConnectStatusChange;
102
- export declare const offTYBLEConnectStatusChange: typeof ty.device.offTYBLEConnectStatusChange;
103
- export declare const onTYBLETransparentDataReport: typeof ty.device.onTYBLETransparentDataReport;
104
- export declare const offTYBLETransparentDataReport: typeof ty.device.offTYBLETransparentDataReport;
105
- export declare const onTYBLEBigDataChannelProgressEvent: typeof ty.device.onTYBLEBigDataChannelProgressEvent;
106
- export declare const offTYBLEBigDataChannelProgressEvent: typeof ty.device.offTYBLEBigDataChannelProgressEvent;
107
- export declare const onTYBLEScanBindDevice: typeof ty.device.onTYBLEScanBindDevice;
108
- export declare const offTYBLEScanBindDevice: typeof ty.device.offTYBLEScanBindDevice;
92
+ export declare const onLeaveBeaconFence: typeof ty.device.onLeaveBeaconFence;
93
+ export declare const offLeaveBeaconFence: typeof ty.device.offLeaveBeaconFence;
94
+ export declare const onFileTransferProgress: typeof ty.device.onFileTransferProgress;
95
+ export declare const offFileTransferProgress: typeof ty.device.offFileTransferProgress;
96
+ export declare const onBLEConnectStatusChange: typeof ty.device.onBLEConnectStatusChange;
97
+ export declare const offBLEConnectStatusChange: typeof ty.device.offBLEConnectStatusChange;
98
+ export declare const onBLETransparentDataReport: typeof ty.device.onBLETransparentDataReport;
99
+ export declare const offBLETransparentDataReport: typeof ty.device.offBLETransparentDataReport;
100
+ export declare const onBLEBigDataChannelProgressEvent: typeof ty.device.onBLEBigDataChannelProgressEvent;
101
+ export declare const offBLEBigDataChannelProgressEvent: typeof ty.device.offBLEBigDataChannelProgressEvent;
102
+ export declare const onBLEScanBindDevice: typeof ty.device.onBLEScanBindDevice;
103
+ export declare const offBLEScanBindDevice: typeof ty.device.offBLEScanBindDevice;
109
104
  export declare const onBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.onBLEBigDataChannelDeviceToAppSuccess;
110
105
  export declare const offBLEBigDataChannelDeviceToAppSuccess: typeof ty.device.offBLEBigDataChannelDeviceToAppSuccess;
111
106
  export declare const onBLEBigDataChannelUploadCloudProgress: typeof ty.device.onBLEBigDataChannelUploadCloudProgress;
@@ -114,20 +109,12 @@ export declare const onSubDeviceInfoUpdateEvent: typeof ty.device.onSubDeviceInf
114
109
  export declare const offSubDeviceInfoUpdateEvent: typeof ty.device.offSubDeviceInfoUpdateEvent;
115
110
  export declare const onDirectlyConnectedSearchDeviceEvent: typeof ty.device.onDirectlyConnectedSearchDeviceEvent;
116
111
  export declare const offDirectlyConnectedSearchDeviceEvent: typeof ty.device.offDirectlyConnectedSearchDeviceEvent;
117
- export declare const onDpDataChange: typeof ty.device.onDpDataChange;
118
- export declare const offDpDataChange: typeof ty.device.offDpDataChange;
119
- export declare const onMqttMessageReceived: typeof ty.device.onMqttMessageReceived;
120
- export declare const offMqttMessageReceived: typeof ty.device.offMqttMessageReceived;
121
- export declare const onSocketMessageReceived: typeof ty.device.onSocketMessageReceived;
122
- export declare const offSocketMessageReceived: typeof ty.device.offSocketMessageReceived;
123
- export declare const onDeviceOnlineStatusUpdate: typeof ty.device.onDeviceOnlineStatusUpdate;
124
- export declare const offDeviceOnlineStatusUpdate: typeof ty.device.offDeviceOnlineStatusUpdate;
125
- export declare const onDeviceInfoUpdated: typeof ty.device.onDeviceInfoUpdated;
126
- export declare const offDeviceInfoUpdated: typeof ty.device.offDeviceInfoUpdated;
127
- export declare const onDeviceRemoved: typeof ty.device.onDeviceRemoved;
128
- export declare const offDeviceRemoved: typeof ty.device.offDeviceRemoved;
129
112
  export declare const onTimerUpdate: typeof ty.device.onTimerUpdate;
130
113
  export declare const offTimerUpdate: typeof ty.device.offTimerUpdate;
114
+ export declare const onGroupInfoChange: typeof ty.device.onGroupInfoChange;
115
+ export declare const offGroupInfoChange: typeof ty.device.offGroupInfoChange;
116
+ export declare const onGroupDpCodeChange: typeof ty.device.onGroupDpCodeChange;
117
+ export declare const offGroupDpCodeChange: typeof ty.device.offGroupDpCodeChange;
131
118
  export declare const onGroupRemovedEvent: typeof ty.device.onGroupRemovedEvent;
132
119
  export declare const offGroupRemovedEvent: typeof ty.device.offGroupRemovedEvent;
133
120
  export declare const onGroupDpDataChangeEvent: typeof ty.device.onGroupDpDataChangeEvent;
@@ -1,39 +1,63 @@
1
1
  /// <reference path="../@types/DeviceKit.d.ts" />
2
2
  import { factory } from './utils';
3
+ export var unregisterLeaveBeaconFenceEvent = factory('unregisterLeaveBeaconFenceEvent', {
4
+ "namespace": "device"
5
+ });
6
+ export var registerLeaveBeaconFenceEvent = factory('registerLeaveBeaconFenceEvent', {
7
+ "namespace": "device"
8
+ });
9
+ export var writeBeaconFenceConfig = factory('writeBeaconFenceConfig', {
10
+ "namespace": "device"
11
+ });
12
+ export var readBeaconFenceConfig = factory('readBeaconFenceConfig', {
13
+ "namespace": "device"
14
+ });
15
+ export var disconnectBTBond = factory('disconnectBTBond', {
16
+ "namespace": "device"
17
+ });
18
+ export var connectBTBond = factory('connectBTBond', {
19
+ "namespace": "device"
20
+ });
21
+ export var cancelBLEFileTransfer = factory('cancelBLEFileTransfer', {
22
+ "namespace": "device"
23
+ });
24
+ export var postBLEFileTransfer = factory('postBLEFileTransfer', {
25
+ "namespace": "device"
26
+ });
3
27
  export var getBLEDeviceRSSI = factory('getBLEDeviceRSSI', {
4
28
  "namespace": "device"
5
29
  });
6
- export var subscribeTYBLEConnectStatus = factory('subscribeTYBLEConnectStatus', {
30
+ export var subscribeBLEConnectStatus = factory('subscribeBLEConnectStatus', {
7
31
  "namespace": "device"
8
32
  });
9
- export var unsubscribeTYBLEConnectStatus = factory('unsubscribeTYBLEConnectStatus', {
33
+ export var unsubscribeBLEConnectStatus = factory('unsubscribeBLEConnectStatus', {
10
34
  "namespace": "device"
11
35
  });
12
- export var connectTYBLEDevice = factory('connectTYBLEDevice', {
36
+ export var connectBLEDevice = factory('connectBLEDevice', {
13
37
  "namespace": "device"
14
38
  });
15
39
  export var directConnectBLEDevice = factory('directConnectBLEDevice', {
16
40
  "namespace": "device"
17
41
  });
18
- export var disconnectTYBLEDevice = factory('disconnectTYBLEDevice', {
42
+ export var disconnectBLEDevice = factory('disconnectBLEDevice', {
19
43
  "namespace": "device"
20
44
  });
21
- export var getTYBLEOnlineState = factory('getTYBLEOnlineState', {
45
+ export var getBLEOnlineState = factory('getBLEOnlineState', {
22
46
  "namespace": "device"
23
47
  });
24
- export var subscribeTYBLETransparentDataReport = factory('subscribeTYBLETransparentDataReport', {
48
+ export var subscribeBLETransparentDataReport = factory('subscribeBLETransparentDataReport', {
25
49
  "namespace": "device"
26
50
  });
27
- export var unsubscribeTYBLETransparentDataReport = factory('unsubscribeTYBLETransparentDataReport', {
51
+ export var unsubscribeBLETransparentDataReport = factory('unsubscribeBLETransparentDataReport', {
28
52
  "namespace": "device"
29
53
  });
30
- export var publishTYBLETransparentData = factory('publishTYBLETransparentData', {
54
+ export var publishBLETransparentData = factory('publishBLETransparentData', {
31
55
  "namespace": "device"
32
56
  });
33
57
  export var getEncryptLocalKeyWithData = factory('getEncryptLocalKeyWithData', {
34
58
  "namespace": "device"
35
59
  });
36
- export var postTYBLEBigDataChannelWithProgress = factory('postTYBLEBigDataChannelWithProgress', {
60
+ export var postBLEBigDataChannelWithProgress = factory('postBLEBigDataChannelWithProgress', {
37
61
  "namespace": "device"
38
62
  });
39
63
  export var startBLEMeshLowPowerConnection = factory('startBLEMeshLowPowerConnection', {
@@ -99,85 +123,10 @@ export var startDirectlyConnectedSearchDevice = factory('startDirectlyConnectedS
99
123
  export var stopDirectlyConnectedSearchDevice = factory('stopDirectlyConnectedSearchDevice', {
100
124
  "namespace": "device"
101
125
  });
102
- export var resetFactory = factory('resetFactory', {
103
- "namespace": "device"
104
- });
105
- export var removeDevice = factory('removeDevice', {
106
- "namespace": "device"
107
- });
108
- export var registerZigbeeGateWaySubDeviceListener = factory('registerZigbeeGateWaySubDeviceListener', {
109
- "namespace": "device"
110
- });
111
- export var unregisterZigbeeGateWaySubDeviceListener = factory('unregisterZigbeeGateWaySubDeviceListener', {
112
- "namespace": "device"
113
- });
114
- export var getDeviceOnlineType = factory('getDeviceOnlineType', {
115
- "namespace": "device"
116
- });
117
- export var getDeviceInfo = factory('getDeviceInfo', {
118
- "namespace": "device"
119
- });
120
- export var getProductInfo = factory('getProductInfo', {
121
- "namespace": "device"
122
- });
123
- export var getSubDeviceInfoList = factory('getSubDeviceInfoList', {
124
- "namespace": "device"
125
- });
126
- export var validDeviceOnlineType = factory('validDeviceOnlineType', {
127
- "namespace": "device"
128
- });
129
- export var publishDps = factory('publishDps', {
130
- "namespace": "device"
131
- });
132
- export var publishCommands = factory('publishCommands', {
133
- "namespace": "device"
134
- });
135
- export var publishDpsWithPipeType = factory('publishDpsWithPipeType', {
136
- "namespace": "device"
137
- });
138
- export var queryDps = factory('queryDps', {
139
- "namespace": "device"
140
- });
141
- export var publishMqttMessage = factory('publishMqttMessage', {
142
- "namespace": "device"
143
- });
144
- export var publishLanMessage = factory('publishLanMessage', {
145
- "namespace": "device"
146
- });
147
- export var publishSocketMessage = factory('publishSocketMessage', {
148
- "namespace": "device"
149
- });
150
- export var getDeviceProperty = factory('getDeviceProperty', {
151
- "namespace": "device"
152
- });
153
- export var setDeviceProperty = factory('setDeviceProperty', {
154
- "namespace": "device"
155
- });
156
- export var syncDeviceInfo = factory('syncDeviceInfo', {
157
- "namespace": "device"
158
- });
159
- export var subscribeDeviceRemoved = factory('subscribeDeviceRemoved', {
160
- "namespace": "device"
161
- });
162
- export var unSubscribeDeviceRemoved = factory('unSubscribeDeviceRemoved', {
163
- "namespace": "device"
164
- });
165
- export var registerMQTTDeviceListener = factory('registerMQTTDeviceListener', {
166
- "namespace": "device"
167
- });
168
- export var unregisterMQTTDeviceListener = factory('unregisterMQTTDeviceListener', {
169
- "namespace": "device"
170
- });
171
- export var registerMQTTProtocolListener = factory('registerMQTTProtocolListener', {
126
+ export var getDeviceWifiActivatorStatus = factory('getDeviceWifiActivatorStatus', {
172
127
  "namespace": "device"
173
128
  });
174
- export var unregisterMQTTProtocolListener = factory('unregisterMQTTProtocolListener', {
175
- "namespace": "device"
176
- });
177
- export var registerDeviceListListener = factory('registerDeviceListListener', {
178
- "namespace": "device"
179
- });
180
- export var unregisterDeviceListListener = factory('unregisterDeviceListListener', {
129
+ export var startDeviceWifiActivator = factory('startDeviceWifiActivator', {
181
130
  "namespace": "device"
182
131
  });
183
132
  export var checkOTAUpdateInfo = factory('checkOTAUpdateInfo', {
@@ -252,6 +201,24 @@ export var removeShareDevice = factory('removeShareDevice', {
252
201
  export var getSupportedThirdPartyServices = factory('getSupportedThirdPartyServices', {
253
202
  "namespace": "device"
254
203
  });
204
+ export var getGroupDeviceList = factory('getGroupDeviceList', {
205
+ "namespace": "device"
206
+ });
207
+ export var getGroupDeviceNum = factory('getGroupDeviceNum', {
208
+ "namespace": "device"
209
+ });
210
+ export var getDeviceNumWithDpCode = factory('getDeviceNumWithDpCode', {
211
+ "namespace": "device"
212
+ });
213
+ export var publishGroupDpCodes = factory('publishGroupDpCodes', {
214
+ "namespace": "device"
215
+ });
216
+ export var publishSigMeshMultiDps = factory('publishSigMeshMultiDps', {
217
+ "namespace": "device"
218
+ });
219
+ export var openMeshLocalGroup = factory('openMeshLocalGroup', {
220
+ "namespace": "device"
221
+ });
255
222
  export var getGroupInfo = factory('getGroupInfo', {
256
223
  "namespace": "device"
257
224
  });
@@ -270,6 +237,12 @@ export var registerGroupChange = factory('registerGroupChange', {
270
237
  export var unRegisterGroupChange = factory('unRegisterGroupChange', {
271
238
  "namespace": "device"
272
239
  });
240
+ export var getMeshDeviceId = factory('getMeshDeviceId', {
241
+ "namespace": "device"
242
+ });
243
+ export var getDpDataByMesh = factory('getDpDataByMesh', {
244
+ "namespace": "device"
245
+ });
273
246
  export var checkOTAUpgradeStatus = factory('checkOTAUpgradeStatus', {
274
247
  "namespace": "device"
275
248
  });
@@ -297,94 +270,82 @@ export var subscribeReceivedThingModelMessage = factory('subscribeReceivedThingM
297
270
  export var unSubscribeReceivedThingModelMessage = factory('unSubscribeReceivedThingModelMessage', {
298
271
  "namespace": "device"
299
272
  });
300
- export var onTYBLEConnectStatusChange = factory('onTYBLEConnectStatusChange', {
273
+ export var onLeaveBeaconFence = factory('onLeaveBeaconFence', {
301
274
  "namespace": "device"
302
275
  });
303
- export var offTYBLEConnectStatusChange = factory('offTYBLEConnectStatusChange', {
276
+ export var offLeaveBeaconFence = factory('offLeaveBeaconFence', {
304
277
  "namespace": "device"
305
278
  });
306
- export var onTYBLETransparentDataReport = factory('onTYBLETransparentDataReport', {
279
+ export var onFileTransferProgress = factory('onFileTransferProgress', {
307
280
  "namespace": "device"
308
281
  });
309
- export var offTYBLETransparentDataReport = factory('offTYBLETransparentDataReport', {
282
+ export var offFileTransferProgress = factory('offFileTransferProgress', {
310
283
  "namespace": "device"
311
284
  });
312
- export var onTYBLEBigDataChannelProgressEvent = factory('onTYBLEBigDataChannelProgressEvent', {
285
+ export var onBLEConnectStatusChange = factory('onBLEConnectStatusChange', {
313
286
  "namespace": "device"
314
287
  });
315
- export var offTYBLEBigDataChannelProgressEvent = factory('offTYBLEBigDataChannelProgressEvent', {
288
+ export var offBLEConnectStatusChange = factory('offBLEConnectStatusChange', {
316
289
  "namespace": "device"
317
290
  });
318
- export var onTYBLEScanBindDevice = factory('onTYBLEScanBindDevice', {
291
+ export var onBLETransparentDataReport = factory('onBLETransparentDataReport', {
319
292
  "namespace": "device"
320
293
  });
321
- export var offTYBLEScanBindDevice = factory('offTYBLEScanBindDevice', {
294
+ export var offBLETransparentDataReport = factory('offBLETransparentDataReport', {
322
295
  "namespace": "device"
323
296
  });
324
- export var onBLEBigDataChannelDeviceToAppSuccess = factory('onBLEBigDataChannelDeviceToAppSuccess', {
297
+ export var onBLEBigDataChannelProgressEvent = factory('onBLEBigDataChannelProgressEvent', {
325
298
  "namespace": "device"
326
299
  });
327
- export var offBLEBigDataChannelDeviceToAppSuccess = factory('offBLEBigDataChannelDeviceToAppSuccess', {
328
- "namespace": "device"
329
- });
330
- export var onBLEBigDataChannelUploadCloudProgress = factory('onBLEBigDataChannelUploadCloudProgress', {
331
- "namespace": "device"
332
- });
333
- export var offBLEBigDataChannelUploadCloudProgress = factory('offBLEBigDataChannelUploadCloudProgress', {
300
+ export var offBLEBigDataChannelProgressEvent = factory('offBLEBigDataChannelProgressEvent', {
334
301
  "namespace": "device"
335
302
  });
336
- export var onSubDeviceInfoUpdateEvent = factory('onSubDeviceInfoUpdateEvent', {
303
+ export var onBLEScanBindDevice = factory('onBLEScanBindDevice', {
337
304
  "namespace": "device"
338
305
  });
339
- export var offSubDeviceInfoUpdateEvent = factory('offSubDeviceInfoUpdateEvent', {
306
+ export var offBLEScanBindDevice = factory('offBLEScanBindDevice', {
340
307
  "namespace": "device"
341
308
  });
342
- export var onDirectlyConnectedSearchDeviceEvent = factory('onDirectlyConnectedSearchDeviceEvent', {
343
- "namespace": "device"
344
- });
345
- export var offDirectlyConnectedSearchDeviceEvent = factory('offDirectlyConnectedSearchDeviceEvent', {
346
- "namespace": "device"
347
- });
348
- export var onDpDataChange = factory('onDpDataChange', {
309
+ export var onBLEBigDataChannelDeviceToAppSuccess = factory('onBLEBigDataChannelDeviceToAppSuccess', {
349
310
  "namespace": "device"
350
311
  });
351
- export var offDpDataChange = factory('offDpDataChange', {
312
+ export var offBLEBigDataChannelDeviceToAppSuccess = factory('offBLEBigDataChannelDeviceToAppSuccess', {
352
313
  "namespace": "device"
353
314
  });
354
- export var onMqttMessageReceived = factory('onMqttMessageReceived', {
315
+ export var onBLEBigDataChannelUploadCloudProgress = factory('onBLEBigDataChannelUploadCloudProgress', {
355
316
  "namespace": "device"
356
317
  });
357
- export var offMqttMessageReceived = factory('offMqttMessageReceived', {
318
+ export var offBLEBigDataChannelUploadCloudProgress = factory('offBLEBigDataChannelUploadCloudProgress', {
358
319
  "namespace": "device"
359
320
  });
360
- export var onSocketMessageReceived = factory('onSocketMessageReceived', {
321
+ export var onSubDeviceInfoUpdateEvent = factory('onSubDeviceInfoUpdateEvent', {
361
322
  "namespace": "device"
362
323
  });
363
- export var offSocketMessageReceived = factory('offSocketMessageReceived', {
324
+ export var offSubDeviceInfoUpdateEvent = factory('offSubDeviceInfoUpdateEvent', {
364
325
  "namespace": "device"
365
326
  });
366
- export var onDeviceOnlineStatusUpdate = factory('onDeviceOnlineStatusUpdate', {
327
+ export var onDirectlyConnectedSearchDeviceEvent = factory('onDirectlyConnectedSearchDeviceEvent', {
367
328
  "namespace": "device"
368
329
  });
369
- export var offDeviceOnlineStatusUpdate = factory('offDeviceOnlineStatusUpdate', {
330
+ export var offDirectlyConnectedSearchDeviceEvent = factory('offDirectlyConnectedSearchDeviceEvent', {
370
331
  "namespace": "device"
371
332
  });
372
- export var onDeviceInfoUpdated = factory('onDeviceInfoUpdated', {
333
+ export var onTimerUpdate = factory('onTimerUpdate', {
373
334
  "namespace": "device"
374
335
  });
375
- export var offDeviceInfoUpdated = factory('offDeviceInfoUpdated', {
336
+ export var offTimerUpdate = factory('offTimerUpdate', {
376
337
  "namespace": "device"
377
338
  });
378
- export var onDeviceRemoved = factory('onDeviceRemoved', {
339
+ export var onGroupInfoChange = factory('onGroupInfoChange', {
379
340
  "namespace": "device"
380
341
  });
381
- export var offDeviceRemoved = factory('offDeviceRemoved', {
342
+ export var offGroupInfoChange = factory('offGroupInfoChange', {
382
343
  "namespace": "device"
383
344
  });
384
- export var onTimerUpdate = factory('onTimerUpdate', {
345
+ export var onGroupDpCodeChange = factory('onGroupDpCodeChange', {
385
346
  "namespace": "device"
386
347
  });
387
- export var offTimerUpdate = factory('offTimerUpdate', {
348
+ export var offGroupDpCodeChange = factory('offGroupDpCodeChange', {
388
349
  "namespace": "device"
389
350
  });
390
351
  export var onGroupRemovedEvent = factory('onGroupRemovedEvent', {
@@ -1,6 +1,11 @@
1
1
  /// <reference path="../@types/MiniKit.d.ts" />
2
2
  export declare const nativeDisabled: typeof ty.nativeDisabled;
3
3
  export declare const nativeInovke: typeof ty.nativeInovke;
4
+ export declare const getPermissionConfig: typeof ty.getPermissionConfig;
5
+ export declare const getPermissionConfigSync: typeof ty.getPermissionConfigSync;
6
+ export declare const openSetting: typeof ty.openSetting;
7
+ export declare const changeDebugMode: typeof ty.changeDebugMode;
8
+ export declare const openHelpCenter: typeof ty.openHelpCenter;
4
9
  export declare const showTabBarRedDot: typeof ty.showTabBarRedDot;
5
10
  export declare const showTabBar: typeof ty.showTabBar;
6
11
  export declare const setTabBarStyle: typeof ty.setTabBarStyle;
@@ -9,6 +14,7 @@ export declare const setTabBarBadge: typeof ty.setTabBarBadge;
9
14
  export declare const removeTabBarBadge: typeof ty.removeTabBarBadge;
10
15
  export declare const hideTabBarRedDot: typeof ty.hideTabBarRedDot;
11
16
  export declare const hideTabBar: typeof ty.hideTabBar;
17
+ export declare const apiRequestByHighway: typeof ty.apiRequestByHighway;
12
18
  export declare const navigateBackMiniProgram: typeof ty.navigateBackMiniProgram;
13
19
  export declare const exitMiniProgram: typeof ty.exitMiniProgram;
14
20
  export declare const getLaunchOptions: typeof ty.getLaunchOptions;
@@ -22,6 +28,14 @@ export declare const getMenuButtonBoundingClientRectSync: typeof ty.getMenuButto
22
28
  export declare const preDownloadMiniApp: typeof ty.preDownloadMiniApp;
23
29
  export declare const login: typeof ty.login;
24
30
  export declare const setPageOrientation: typeof ty.setPageOrientation;
31
+ export declare const hideMenuButton: typeof ty.hideMenuButton;
32
+ export declare const showMenuButton: typeof ty.showMenuButton;
33
+ export declare const showStatusBar: typeof ty.showStatusBar;
34
+ export declare const hideStatusBar: typeof ty.hideStatusBar;
35
+ export declare const exitMiniWidget: typeof ty.exitMiniWidget;
36
+ export declare const canOpenURL: typeof ty.canOpenURL;
37
+ export declare const canOpenURLSync: typeof ty.canOpenURLSync;
38
+ export declare const openURL: typeof ty.openURL;
25
39
  export declare const showNavigationBarLoading: typeof ty.showNavigationBarLoading;
26
40
  export declare const setNavigationBarTitle: typeof ty.setNavigationBarTitle;
27
41
  export declare const setNavigationBarColor: typeof ty.setNavigationBarColor;
@@ -2,6 +2,11 @@
2
2
  import { factory } from './utils';
3
3
  export var nativeDisabled = factory('nativeDisabled');
4
4
  export var nativeInovke = factory('nativeInovke');
5
+ export var getPermissionConfig = factory('getPermissionConfig');
6
+ export var getPermissionConfigSync = factory('getPermissionConfigSync');
7
+ export var openSetting = factory('openSetting');
8
+ export var changeDebugMode = factory('changeDebugMode');
9
+ export var openHelpCenter = factory('openHelpCenter');
5
10
  export var showTabBarRedDot = factory('showTabBarRedDot');
6
11
  export var showTabBar = factory('showTabBar');
7
12
  export var setTabBarStyle = factory('setTabBarStyle');
@@ -10,6 +15,7 @@ export var setTabBarBadge = factory('setTabBarBadge');
10
15
  export var removeTabBarBadge = factory('removeTabBarBadge');
11
16
  export var hideTabBarRedDot = factory('hideTabBarRedDot');
12
17
  export var hideTabBar = factory('hideTabBar');
18
+ export var apiRequestByHighway = factory('apiRequestByHighway');
13
19
  export var navigateBackMiniProgram = factory('navigateBackMiniProgram');
14
20
  export var exitMiniProgram = factory('exitMiniProgram');
15
21
  export var getLaunchOptions = factory('getLaunchOptions');
@@ -23,6 +29,14 @@ export var getMenuButtonBoundingClientRectSync = factory('getMenuButtonBoundingC
23
29
  export var preDownloadMiniApp = factory('preDownloadMiniApp');
24
30
  export var login = factory('login');
25
31
  export var setPageOrientation = factory('setPageOrientation');
32
+ export var hideMenuButton = factory('hideMenuButton');
33
+ export var showMenuButton = factory('showMenuButton');
34
+ export var showStatusBar = factory('showStatusBar');
35
+ export var hideStatusBar = factory('hideStatusBar');
36
+ export var exitMiniWidget = factory('exitMiniWidget');
37
+ export var canOpenURL = factory('canOpenURL');
38
+ export var canOpenURLSync = factory('canOpenURLSync');
39
+ export var openURL = factory('openURL');
26
40
  export var showNavigationBarLoading = factory('showNavigationBarLoading');
27
41
  export var setNavigationBarTitle = factory('setNavigationBarTitle');
28
42
  export var setNavigationBarColor = factory('setNavigationBarColor');
package/lib/all-kits.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as device from './DeviceKit-2.3.3';
2
- export * from './BaseKit-2.3.11';
1
+ import * as device from './DeviceKit-2.5.2-anonymize.1';
2
+ export * from './BaseKit-2.5.1-anonymize.2';
3
+ export * from './BizKit-2.4.6-rc.101';
3
4
  export { device };
4
- export * from './DeviceKit-2.3.3';
5
- export * from './MiniKit-2.4.3';
6
- export * from './TYKit-2.2.6';
5
+ export * from './DeviceKit-2.5.2-anonymize.1';
6
+ export * from './MiniKit-4.4.0-anonymize.4';
package/lib/all-kits.js CHANGED
@@ -1,6 +1,6 @@
1
- import * as device from './DeviceKit-2.3.3';
2
- export * from './BaseKit-2.3.11';
1
+ import * as device from './DeviceKit-2.5.2-anonymize.1';
2
+ export * from './BaseKit-2.5.1-anonymize.2';
3
+ export * from './BizKit-2.4.6-rc.101';
3
4
  export { device };
4
- export * from './DeviceKit-2.3.3';
5
- export * from './MiniKit-2.4.3';
6
- export * from './TYKit-2.2.6';
5
+ export * from './DeviceKit-2.5.2-anonymize.1';
6
+ export * from './MiniKit-4.4.0-anonymize.4';
@@ -0,0 +1,4 @@
1
+ import { Current } from '@ray-js/runtime-native/lib/current';
2
+ export default (function () {
3
+ return Current.app;
4
+ });
@@ -1 +1,26 @@
1
- Object.defineProperty(exports,"__esModule",{value:true});exports.default=getBoundingClientRect;function getBoundingClientRect(element){return new Promise(function(resolve){var rect=element.getBoundingClientRect();var right=rect.right,left=rect.left,top=rect.top,bottom=rect.bottom,width=rect.width,height=rect.height;resolve({right:right,left:left,top:top,bottom:bottom,width:width,height:height});});}
1
+ import "core-js/modules/es.object.to-string.js";
2
+ import "core-js/modules/es.promise.js";
3
+
4
+ /**
5
+ * 获取元素的大小及其相对于视口的位置
6
+ * @param element HTEMLElement | Nodes
7
+ */
8
+ export default function getBoundingClientRect(element) {
9
+ return new Promise(function (resolve) {
10
+ var rect = element.getBoundingClientRect();
11
+ var right = rect.right,
12
+ left = rect.left,
13
+ top = rect.top,
14
+ bottom = rect.bottom,
15
+ width = rect.width,
16
+ height = rect.height;
17
+ resolve({
18
+ right: right,
19
+ left: left,
20
+ top: top,
21
+ bottom: bottom,
22
+ width: width,
23
+ height: height
24
+ });
25
+ });
26
+ }