@ray-js/api 0.5.8-beta-1 → 0.5.9
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 +88 -1008
- package/@types/DeviceKit.d.ts +152 -1488
- package/@types/MiniKit.d.ts +26 -381
- package/@types/{BizKit.d.ts → TYKit.d.ts} +41 -104
- package/@types/all-kits.d.ts +1 -1
- package/lib/{BaseKit-3.0.0.d.ts → BaseKit-2.3.11.d.ts} +2 -18
- package/lib/{BaseKit-3.0.0.js → BaseKit-2.3.11.js} +2 -18
- package/lib/{DeviceKit-3.0.0.d.ts → DeviceKit-2.3.3.d.ts} +18 -58
- package/lib/{DeviceKit-3.0.0.js → DeviceKit-2.3.3.js} +20 -140
- package/lib/{MiniKit-3.0.0.d.ts → MiniKit-2.4.3.d.ts} +0 -14
- package/lib/{MiniKit-3.0.0.js → MiniKit-2.4.3.js} +0 -14
- package/lib/{BizKit-3.0.1.d.ts → TYKit-2.2.6.d.ts} +1 -2
- package/lib/{BizKit-3.0.1.js → TYKit-2.2.6.js} +1 -2
- package/lib/all-kits.d.ts +5 -5
- package/lib/all-kits.js +5 -5
- package/lib/getApp/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getApp/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getBoundingClientRect/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getBoundingClientRect/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getCurrentPages/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getCurrentPages/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getElementById/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getElementById/{index.thing.js → index.tuya.js} +0 -0
- package/lib/getI18nInfo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/getI18nInfo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/hideTabBar/index.d.ts +7 -1
- package/lib/hideTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/hideTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateBack/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateBack/{index.thing.js → index.tuya.js} +0 -0
- package/lib/navigateTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/navigateTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/reLaunch/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/reLaunch/{index.thing.js → index.tuya.js} +0 -0
- package/lib/readFileSync/{index.native.d.ts → index.tuya.d.ts} +0 -0
- package/lib/readFileSync/{index.native.js → index.tuya.js} +0 -0
- package/lib/redirectTo/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/redirectTo/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{readFileSync/index.thing.d.ts → requestCloud/index.tuya.d.ts} +0 -0
- package/lib/requestCloud/{index.native.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.native.d.ts → setNavigationBarColor/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarColor/{index.thing.js → index.tuya.js} +0 -0
- package/lib/{requestCloud/index.thing.d.ts → setNavigationBarTitle/index.tuya.d.ts} +0 -0
- package/lib/setNavigationBarTitle/{index.thing.js → index.tuya.js} +0 -0
- package/lib/showTabBar/index.d.ts +7 -1
- package/lib/showTabBar/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/showTabBar/{index.thing.js → index.tuya.js} +0 -0
- package/lib/switchTab/{index.thing.d.ts → index.tuya.d.ts} +0 -0
- package/lib/switchTab/{index.thing.js → index.tuya.js} +0 -0
- package/package.json +9 -8
- package/lib/getApp/index.native.d.ts +0 -2
- package/lib/getApp/index.native.js +0 -4
- package/lib/getCurrentPages/index.native.d.ts +0 -1
- package/lib/getCurrentPages/index.native.js +0 -5
- package/lib/getElementById/index.native.d.ts +0 -1
- package/lib/getElementById/index.native.js +0 -13
- package/lib/getI18nInfo/index.native.js +0 -9
- package/lib/hideNotification/index.native.d.ts +0 -2
- package/lib/hideNotification/index.native.js +0 -7
- package/lib/hideTabBar/index.native.d.ts +0 -2
- package/lib/hideTabBar/index.native.js +0 -2
- package/lib/navigateBack/index.native.d.ts +0 -2
- package/lib/navigateBack/index.native.js +0 -2
- package/lib/navigateTo/index.native.d.ts +0 -2
- package/lib/navigateTo/index.native.js +0 -2
- package/lib/reLaunch/index.native.d.ts +0 -2
- package/lib/reLaunch/index.native.js +0 -2
- package/lib/readFileSync/index.thing.js +0 -8
- package/lib/redirectTo/index.native.d.ts +0 -2
- package/lib/redirectTo/index.native.js +0 -2
- package/lib/requestCloud/index.thing.js +0 -8
- package/lib/setNavigationBarColor/index.native.d.ts +0 -2
- package/lib/setNavigationBarColor/index.native.js +0 -2
- package/lib/setNavigationBarColor/index.thing.d.ts +0 -1
- package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
- package/lib/setNavigationBarTitle/index.native.js +0 -2
- package/lib/setNavigationBarTitle/index.thing.d.ts +0 -1
- package/lib/showTabBar/index.native.d.ts +0 -2
- package/lib/showTabBar/index.native.js +0 -2
- package/lib/switchTab/index.native.d.ts +0 -2
- package/lib/switchTab/index.native.js +0 -2
@@ -1,63 +1,39 @@
|
|
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
|
-
});
|
27
3
|
export var getBLEDeviceRSSI = factory('getBLEDeviceRSSI', {
|
28
4
|
"namespace": "device"
|
29
5
|
});
|
30
|
-
export var
|
6
|
+
export var subscribeTYBLEConnectStatus = factory('subscribeTYBLEConnectStatus', {
|
31
7
|
"namespace": "device"
|
32
8
|
});
|
33
|
-
export var
|
9
|
+
export var unsubscribeTYBLEConnectStatus = factory('unsubscribeTYBLEConnectStatus', {
|
34
10
|
"namespace": "device"
|
35
11
|
});
|
36
|
-
export var
|
12
|
+
export var connectTYBLEDevice = factory('connectTYBLEDevice', {
|
37
13
|
"namespace": "device"
|
38
14
|
});
|
39
15
|
export var directConnectBLEDevice = factory('directConnectBLEDevice', {
|
40
16
|
"namespace": "device"
|
41
17
|
});
|
42
|
-
export var
|
18
|
+
export var disconnectTYBLEDevice = factory('disconnectTYBLEDevice', {
|
43
19
|
"namespace": "device"
|
44
20
|
});
|
45
|
-
export var
|
21
|
+
export var getTYBLEOnlineState = factory('getTYBLEOnlineState', {
|
46
22
|
"namespace": "device"
|
47
23
|
});
|
48
|
-
export var
|
24
|
+
export var subscribeTYBLETransparentDataReport = factory('subscribeTYBLETransparentDataReport', {
|
49
25
|
"namespace": "device"
|
50
26
|
});
|
51
|
-
export var
|
27
|
+
export var unsubscribeTYBLETransparentDataReport = factory('unsubscribeTYBLETransparentDataReport', {
|
52
28
|
"namespace": "device"
|
53
29
|
});
|
54
|
-
export var
|
30
|
+
export var publishTYBLETransparentData = factory('publishTYBLETransparentData', {
|
55
31
|
"namespace": "device"
|
56
32
|
});
|
57
33
|
export var getEncryptLocalKeyWithData = factory('getEncryptLocalKeyWithData', {
|
58
34
|
"namespace": "device"
|
59
35
|
});
|
60
|
-
export var
|
36
|
+
export var postTYBLEBigDataChannelWithProgress = factory('postTYBLEBigDataChannelWithProgress', {
|
61
37
|
"namespace": "device"
|
62
38
|
});
|
63
39
|
export var startBLEMeshLowPowerConnection = factory('startBLEMeshLowPowerConnection', {
|
@@ -123,15 +99,6 @@ export var startDirectlyConnectedSearchDevice = factory('startDirectlyConnectedS
|
|
123
99
|
export var stopDirectlyConnectedSearchDevice = factory('stopDirectlyConnectedSearchDevice', {
|
124
100
|
"namespace": "device"
|
125
101
|
});
|
126
|
-
export var getDeviceWifiActivatorStatus = factory('getDeviceWifiActivatorStatus', {
|
127
|
-
"namespace": "device"
|
128
|
-
});
|
129
|
-
export var startDeviceWifiActivator = factory('startDeviceWifiActivator', {
|
130
|
-
"namespace": "device"
|
131
|
-
});
|
132
|
-
export var renameDeviceName = factory('renameDeviceName', {
|
133
|
-
"namespace": "device"
|
134
|
-
});
|
135
102
|
export var resetFactory = factory('resetFactory', {
|
136
103
|
"namespace": "device"
|
137
104
|
});
|
@@ -213,15 +180,6 @@ export var registerDeviceListListener = factory('registerDeviceListListener', {
|
|
213
180
|
export var unregisterDeviceListListener = factory('unregisterDeviceListListener', {
|
214
181
|
"namespace": "device"
|
215
182
|
});
|
216
|
-
export var registerTopicListListener = factory('registerTopicListListener', {
|
217
|
-
"namespace": "device"
|
218
|
-
});
|
219
|
-
export var unregisterTopicListListener = factory('unregisterTopicListListener', {
|
220
|
-
"namespace": "device"
|
221
|
-
});
|
222
|
-
export var getMqttConnectState = factory('getMqttConnectState', {
|
223
|
-
"namespace": "device"
|
224
|
-
});
|
225
183
|
export var checkOTAUpdateInfo = factory('checkOTAUpdateInfo', {
|
226
184
|
"namespace": "device"
|
227
185
|
});
|
@@ -294,51 +252,6 @@ export var removeShareDevice = factory('removeShareDevice', {
|
|
294
252
|
export var getSupportedThirdPartyServices = factory('getSupportedThirdPartyServices', {
|
295
253
|
"namespace": "device"
|
296
254
|
});
|
297
|
-
export var openRecommendSceneDetail = factory('openRecommendSceneDetail', {
|
298
|
-
"namespace": "device"
|
299
|
-
});
|
300
|
-
export var openDeviceExecutionAndAnutomation = factory('openDeviceExecutionAndAnutomation', {
|
301
|
-
"namespace": "device"
|
302
|
-
});
|
303
|
-
export var saveSceneAction = factory('saveSceneAction', {
|
304
|
-
"namespace": "device"
|
305
|
-
});
|
306
|
-
export var createAction = factory('createAction', {
|
307
|
-
"namespace": "device"
|
308
|
-
});
|
309
|
-
export var editAction = factory('editAction', {
|
310
|
-
"namespace": "device"
|
311
|
-
});
|
312
|
-
export var showSceneDialog = factory('showSceneDialog', {
|
313
|
-
"namespace": "device"
|
314
|
-
});
|
315
|
-
export var openPreConditionPage = factory('openPreConditionPage', {
|
316
|
-
"namespace": "device"
|
317
|
-
});
|
318
|
-
export var createCondition = factory('createCondition', {
|
319
|
-
"namespace": "device"
|
320
|
-
});
|
321
|
-
export var editCondition = factory('editCondition', {
|
322
|
-
"namespace": "device"
|
323
|
-
});
|
324
|
-
export var getGroupDeviceList = factory('getGroupDeviceList', {
|
325
|
-
"namespace": "device"
|
326
|
-
});
|
327
|
-
export var getGroupDeviceNum = factory('getGroupDeviceNum', {
|
328
|
-
"namespace": "device"
|
329
|
-
});
|
330
|
-
export var getDeviceNumWithDpCode = factory('getDeviceNumWithDpCode', {
|
331
|
-
"namespace": "device"
|
332
|
-
});
|
333
|
-
export var publishGroupDpCodes = factory('publishGroupDpCodes', {
|
334
|
-
"namespace": "device"
|
335
|
-
});
|
336
|
-
export var publishSigMeshMultiDps = factory('publishSigMeshMultiDps', {
|
337
|
-
"namespace": "device"
|
338
|
-
});
|
339
|
-
export var openMeshLocalGroup = factory('openMeshLocalGroup', {
|
340
|
-
"namespace": "device"
|
341
|
-
});
|
342
255
|
export var getGroupInfo = factory('getGroupInfo', {
|
343
256
|
"namespace": "device"
|
344
257
|
});
|
@@ -357,18 +270,15 @@ export var registerGroupChange = factory('registerGroupChange', {
|
|
357
270
|
export var unRegisterGroupChange = factory('unRegisterGroupChange', {
|
358
271
|
"namespace": "device"
|
359
272
|
});
|
360
|
-
export var getMeshDeviceId = factory('getMeshDeviceId', {
|
361
|
-
"namespace": "device"
|
362
|
-
});
|
363
|
-
export var getDpDataByMesh = factory('getDpDataByMesh', {
|
364
|
-
"namespace": "device"
|
365
|
-
});
|
366
273
|
export var checkOTAUpgradeStatus = factory('checkOTAUpgradeStatus', {
|
367
274
|
"namespace": "device"
|
368
275
|
});
|
369
276
|
export var openOTAUpgrade = factory('openOTAUpgrade', {
|
370
277
|
"namespace": "device"
|
371
278
|
});
|
279
|
+
export var pushRNPanel = factory('pushRNPanel', {
|
280
|
+
"namespace": "device"
|
281
|
+
});
|
372
282
|
export var deviceIsSupportThingModel = factory('deviceIsSupportThingModel', {
|
373
283
|
"namespace": "device"
|
374
284
|
});
|
@@ -387,40 +297,28 @@ export var subscribeReceivedThingModelMessage = factory('subscribeReceivedThingM
|
|
387
297
|
export var unSubscribeReceivedThingModelMessage = factory('unSubscribeReceivedThingModelMessage', {
|
388
298
|
"namespace": "device"
|
389
299
|
});
|
390
|
-
export var
|
391
|
-
"namespace": "device"
|
392
|
-
});
|
393
|
-
export var offLeaveBeaconFence = factory('offLeaveBeaconFence', {
|
300
|
+
export var onTYBLEConnectStatusChange = factory('onTYBLEConnectStatusChange', {
|
394
301
|
"namespace": "device"
|
395
302
|
});
|
396
|
-
export var
|
303
|
+
export var offTYBLEConnectStatusChange = factory('offTYBLEConnectStatusChange', {
|
397
304
|
"namespace": "device"
|
398
305
|
});
|
399
|
-
export var
|
306
|
+
export var onTYBLETransparentDataReport = factory('onTYBLETransparentDataReport', {
|
400
307
|
"namespace": "device"
|
401
308
|
});
|
402
|
-
export var
|
309
|
+
export var offTYBLETransparentDataReport = factory('offTYBLETransparentDataReport', {
|
403
310
|
"namespace": "device"
|
404
311
|
});
|
405
|
-
export var
|
312
|
+
export var onTYBLEBigDataChannelProgressEvent = factory('onTYBLEBigDataChannelProgressEvent', {
|
406
313
|
"namespace": "device"
|
407
314
|
});
|
408
|
-
export var
|
315
|
+
export var offTYBLEBigDataChannelProgressEvent = factory('offTYBLEBigDataChannelProgressEvent', {
|
409
316
|
"namespace": "device"
|
410
317
|
});
|
411
|
-
export var
|
318
|
+
export var onTYBLEScanBindDevice = factory('onTYBLEScanBindDevice', {
|
412
319
|
"namespace": "device"
|
413
320
|
});
|
414
|
-
export var
|
415
|
-
"namespace": "device"
|
416
|
-
});
|
417
|
-
export var offBLEBigDataChannelProgressEvent = factory('offBLEBigDataChannelProgressEvent', {
|
418
|
-
"namespace": "device"
|
419
|
-
});
|
420
|
-
export var onBLEScanBindDevice = factory('onBLEScanBindDevice', {
|
421
|
-
"namespace": "device"
|
422
|
-
});
|
423
|
-
export var offBLEScanBindDevice = factory('offBLEScanBindDevice', {
|
321
|
+
export var offTYBLEScanBindDevice = factory('offTYBLEScanBindDevice', {
|
424
322
|
"namespace": "device"
|
425
323
|
});
|
426
324
|
export var onBLEBigDataChannelDeviceToAppSuccess = factory('onBLEBigDataChannelDeviceToAppSuccess', {
|
@@ -483,30 +381,12 @@ export var onDeviceRemoved = factory('onDeviceRemoved', {
|
|
483
381
|
export var offDeviceRemoved = factory('offDeviceRemoved', {
|
484
382
|
"namespace": "device"
|
485
383
|
});
|
486
|
-
export var onMqttConnectState = factory('onMqttConnectState', {
|
487
|
-
"namespace": "device"
|
488
|
-
});
|
489
|
-
export var offMqttConnectState = factory('offMqttConnectState', {
|
490
|
-
"namespace": "device"
|
491
|
-
});
|
492
384
|
export var onTimerUpdate = factory('onTimerUpdate', {
|
493
385
|
"namespace": "device"
|
494
386
|
});
|
495
387
|
export var offTimerUpdate = factory('offTimerUpdate', {
|
496
388
|
"namespace": "device"
|
497
389
|
});
|
498
|
-
export var onGroupInfoChange = factory('onGroupInfoChange', {
|
499
|
-
"namespace": "device"
|
500
|
-
});
|
501
|
-
export var offGroupInfoChange = factory('offGroupInfoChange', {
|
502
|
-
"namespace": "device"
|
503
|
-
});
|
504
|
-
export var onGroupDpCodeChange = factory('onGroupDpCodeChange', {
|
505
|
-
"namespace": "device"
|
506
|
-
});
|
507
|
-
export var offGroupDpCodeChange = factory('offGroupDpCodeChange', {
|
508
|
-
"namespace": "device"
|
509
|
-
});
|
510
390
|
export var onGroupRemovedEvent = factory('onGroupRemovedEvent', {
|
511
391
|
"namespace": "device"
|
512
392
|
});
|
@@ -1,11 +1,6 @@
|
|
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;
|
9
4
|
export declare const showTabBarRedDot: typeof ty.showTabBarRedDot;
|
10
5
|
export declare const showTabBar: typeof ty.showTabBar;
|
11
6
|
export declare const setTabBarStyle: typeof ty.setTabBarStyle;
|
@@ -14,7 +9,6 @@ export declare const setTabBarBadge: typeof ty.setTabBarBadge;
|
|
14
9
|
export declare const removeTabBarBadge: typeof ty.removeTabBarBadge;
|
15
10
|
export declare const hideTabBarRedDot: typeof ty.hideTabBarRedDot;
|
16
11
|
export declare const hideTabBar: typeof ty.hideTabBar;
|
17
|
-
export declare const apiRequestByHighway: typeof ty.apiRequestByHighway;
|
18
12
|
export declare const navigateBackMiniProgram: typeof ty.navigateBackMiniProgram;
|
19
13
|
export declare const exitMiniProgram: typeof ty.exitMiniProgram;
|
20
14
|
export declare const getLaunchOptions: typeof ty.getLaunchOptions;
|
@@ -28,14 +22,6 @@ export declare const getMenuButtonBoundingClientRectSync: typeof ty.getMenuButto
|
|
28
22
|
export declare const preDownloadMiniApp: typeof ty.preDownloadMiniApp;
|
29
23
|
export declare const login: typeof ty.login;
|
30
24
|
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;
|
39
25
|
export declare const showNavigationBarLoading: typeof ty.showNavigationBarLoading;
|
40
26
|
export declare const setNavigationBarTitle: typeof ty.setNavigationBarTitle;
|
41
27
|
export declare const setNavigationBarColor: typeof ty.setNavigationBarColor;
|
@@ -2,11 +2,6 @@
|
|
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');
|
10
5
|
export var showTabBarRedDot = factory('showTabBarRedDot');
|
11
6
|
export var showTabBar = factory('showTabBar');
|
12
7
|
export var setTabBarStyle = factory('setTabBarStyle');
|
@@ -15,7 +10,6 @@ export var setTabBarBadge = factory('setTabBarBadge');
|
|
15
10
|
export var removeTabBarBadge = factory('removeTabBarBadge');
|
16
11
|
export var hideTabBarRedDot = factory('hideTabBarRedDot');
|
17
12
|
export var hideTabBar = factory('hideTabBar');
|
18
|
-
export var apiRequestByHighway = factory('apiRequestByHighway');
|
19
13
|
export var navigateBackMiniProgram = factory('navigateBackMiniProgram');
|
20
14
|
export var exitMiniProgram = factory('exitMiniProgram');
|
21
15
|
export var getLaunchOptions = factory('getLaunchOptions');
|
@@ -29,14 +23,6 @@ export var getMenuButtonBoundingClientRectSync = factory('getMenuButtonBoundingC
|
|
29
23
|
export var preDownloadMiniApp = factory('preDownloadMiniApp');
|
30
24
|
export var login = factory('login');
|
31
25
|
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');
|
40
26
|
export var showNavigationBarLoading = factory('showNavigationBarLoading');
|
41
27
|
export var setNavigationBarTitle = factory('setNavigationBarTitle');
|
42
28
|
export var setNavigationBarColor = factory('setNavigationBarColor');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference path="../@types/
|
1
|
+
/// <reference path="../@types/TYKit.d.ts" />
|
2
2
|
export declare const apiRequestByAtop: typeof ty.apiRequestByAtop;
|
3
3
|
export declare const event: typeof ty.event;
|
4
4
|
export declare const beginEvent: typeof ty.beginEvent;
|
@@ -24,7 +24,6 @@ export declare const goDeviceDetail: typeof ty.goDeviceDetail;
|
|
24
24
|
export declare const goDeviceAlarm: typeof ty.goDeviceAlarm;
|
25
25
|
export declare const share: typeof ty.share;
|
26
26
|
export declare const getShareChannelList: typeof ty.getShareChannelList;
|
27
|
-
export declare const getUserInfo: typeof ty.getUserInfo;
|
28
27
|
export declare const resizeImage: typeof ty.resizeImage;
|
29
28
|
export declare const rotateImage: typeof ty.rotateImage;
|
30
29
|
export declare const saveToAlbum: typeof ty.saveToAlbum;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/// <reference path="../@types/
|
1
|
+
/// <reference path="../@types/TYKit.d.ts" />
|
2
2
|
import { factory } from './utils';
|
3
3
|
export var apiRequestByAtop = factory('apiRequestByAtop');
|
4
4
|
export var event = factory('event');
|
@@ -35,7 +35,6 @@ export var goDeviceAlarm = factory('goDeviceAlarm', {
|
|
35
35
|
});
|
36
36
|
export var share = factory('share');
|
37
37
|
export var getShareChannelList = factory('getShareChannelList');
|
38
|
-
export var getUserInfo = factory('getUserInfo');
|
39
38
|
export var resizeImage = factory('resizeImage');
|
40
39
|
export var rotateImage = factory('rotateImage');
|
41
40
|
export var saveToAlbum = factory('saveToAlbum', {
|
package/lib/all-kits.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import * as device from './DeviceKit-3.
|
2
|
-
export * from './BaseKit-3.
|
3
|
-
export * from './BizKit-3.0.1';
|
1
|
+
import * as device from './DeviceKit-2.3.3';
|
2
|
+
export * from './BaseKit-2.3.11';
|
4
3
|
export { device };
|
5
|
-
export * from './DeviceKit-3.
|
6
|
-
export * from './MiniKit-
|
4
|
+
export * from './DeviceKit-2.3.3';
|
5
|
+
export * from './MiniKit-2.4.3';
|
6
|
+
export * from './TYKit-2.2.6';
|
package/lib/all-kits.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import * as device from './DeviceKit-3.
|
2
|
-
export * from './BaseKit-3.
|
3
|
-
export * from './BizKit-3.0.1';
|
1
|
+
import * as device from './DeviceKit-2.3.3';
|
2
|
+
export * from './BaseKit-2.3.11';
|
4
3
|
export { device };
|
5
|
-
export * from './DeviceKit-3.
|
6
|
-
export * from './MiniKit-
|
4
|
+
export * from './DeviceKit-2.3.3';
|
5
|
+
export * from './MiniKit-2.4.3';
|
6
|
+
export * from './TYKit-2.2.6';
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,3 +1,9 @@
|
|
1
1
|
/// <reference path="../../@types/api.d.ts" />
|
2
|
-
declare const _default: (arg?:
|
2
|
+
declare const _default: (arg?: {
|
3
|
+
animation?: boolean | undefined;
|
4
|
+
} & {
|
5
|
+
success?: ((S?: any) => void) | undefined;
|
6
|
+
fail?: ((F?: any) => void) | undefined;
|
7
|
+
complete?: ((C?: any) => void) | undefined;
|
8
|
+
} & import("../core").PromisifyArgs<any, any>) => Promise<any>;
|
3
9
|
export default _default;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,3 +1,9 @@
|
|
1
1
|
/// <reference path="../../@types/api.d.ts" />
|
2
|
-
declare const _default: (arg?:
|
2
|
+
declare const _default: (arg?: {
|
3
|
+
animation?: boolean | undefined;
|
4
|
+
} & {
|
5
|
+
success?: ((S?: any) => void) | undefined;
|
6
|
+
fail?: ((F?: any) => void) | undefined;
|
7
|
+
complete?: ((C?: any) => void) | undefined;
|
8
|
+
} & import("../core").PromisifyArgs<any, any>) => Promise<any>;
|
3
9
|
export default _default;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.9",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,15 +26,16 @@
|
|
26
26
|
"build:kit:api": "node scripts/api-creator.mjs"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@ray-js/framework": "^0.5.
|
30
|
-
"@ray-js/
|
31
|
-
"@
|
32
|
-
"@
|
33
|
-
"@
|
29
|
+
"@ray-js/framework": "^0.5.9",
|
30
|
+
"@ray-js/router": "^0.5.9",
|
31
|
+
"@tuya-miniapp/base-kit": "^2.1.2",
|
32
|
+
"@tuya-miniapp/device-kit": "^2.1.6",
|
33
|
+
"@tuya-miniapp/mini-kit": "^2.3.7",
|
34
|
+
"@tuya-miniapp/ty-kit": "^2.0.7",
|
34
35
|
"react-native": "0.59.10"
|
35
36
|
},
|
36
37
|
"devDependencies": {
|
37
|
-
"@ray-js/cli": "^0.5.
|
38
|
+
"@ray-js/cli": "^0.5.9",
|
38
39
|
"art-template": "^4.13.2",
|
39
40
|
"fs-extra": "^10.1.0",
|
40
41
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -46,6 +47,6 @@
|
|
46
47
|
"email": "tuyafe@tuya.com"
|
47
48
|
}
|
48
49
|
],
|
49
|
-
"gitHead": "
|
50
|
+
"gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
|
50
51
|
"repository": {}
|
51
52
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function (): import("@ray-js/runtime-native/lib/instance").PageInstance[];
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function getElementById(id: string): Promise<HTMLElement | null>;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import "core-js/modules/es.object.to-string.js";
|
2
|
-
import "core-js/modules/es.promise.js";
|
3
|
-
export default function getElementById(id) {
|
4
|
-
return new Promise(function (resolve, reject) {
|
5
|
-
var ref = global.__refs[id];
|
6
|
-
|
7
|
-
if (ref) {
|
8
|
-
resolve(ref.current);
|
9
|
-
} else {
|
10
|
-
reject(null);
|
11
|
-
}
|
12
|
-
});
|
13
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { NativeModules } from 'react-native';
|
2
|
-
export default function () {
|
3
|
-
var source = NativeModules.TYRCTPBTBridgeManager.getConstants();
|
4
|
-
|
5
|
-
var _ref = typeof source === 'string' ? JSON.parse(source) : source,
|
6
|
-
constants = _ref.constants;
|
7
|
-
|
8
|
-
return constants.TYUniLocalizationManager;
|
9
|
-
}
|