@ray-js/api 0.5.7-beta-2 → 0.5.9-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.
- package/package.json +5 -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.native.d.ts +0 -1
- package/lib/readFileSync/index.native.js +0 -8
- package/lib/redirectTo/index.native.d.ts +0 -2
- package/lib/redirectTo/index.native.js +0 -2
- package/lib/requestCloud/index.native.d.ts +0 -1
- package/lib/requestCloud/index.native.js +0 -8
- package/lib/setNavigationBarColor/index.native.d.ts +0 -2
- package/lib/setNavigationBarColor/index.native.js +0 -2
- package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
- package/lib/setNavigationBarTitle/index.native.js +0 -2
- 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
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-beta-1",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -26,15 +26,12 @@
|
|
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
|
-
"@ray-js/router": "^0.5.7-beta-2",
|
32
|
-
"@ray-js/router-native": "^0.5.7-beta-2",
|
33
|
-
"@ray-js/runtime-native": "^0.5.7-beta-2",
|
29
|
+
"@ray-js/framework": "^0.5.9-beta-1",
|
30
|
+
"@ray-js/router": "^0.5.9-beta-1",
|
34
31
|
"react-native": "0.59.10"
|
35
32
|
},
|
36
33
|
"devDependencies": {
|
37
|
-
"@ray-js/cli": "^0.5.
|
34
|
+
"@ray-js/cli": "^0.5.9-beta-1",
|
38
35
|
"art-template": "^4.13.2",
|
39
36
|
"fs-extra": "^10.1.0",
|
40
37
|
"miniprogram-api-typings": "^3.4.3",
|
@@ -46,6 +43,6 @@
|
|
46
43
|
"email": "tuyafe@tuya.com"
|
47
44
|
}
|
48
45
|
],
|
49
|
-
"gitHead": "
|
46
|
+
"gitHead": "45232c09ae46aee3f29663e455158965ad329ff3",
|
50
47
|
"repository": {}
|
51
48
|
}
|
@@ -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
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function (): any;
|
@@ -1 +0,0 @@
|
|
1
|
-
export default function (): any;
|