@ray-js/runtime 0.5.9-beta-1 → 0.5.10-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/lib/index.d.ts +5 -0
- package/lib/index.js +14 -1
- package/lib/index.mini.d.ts +5 -0
- package/lib/index.mini.js +5 -0
- package/mini.js +1 -0
- package/package.json +9 -5
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as runtime from '@ray-core/runtime';
|
|
1
2
|
export { lifecycle } from './lifecycle';
|
|
2
3
|
export { PageInstance } from './PageInstance';
|
|
3
4
|
export { PageInstanceContext } from './PageInstanceContext';
|
|
@@ -5,3 +6,7 @@ export { useAppEvent } from './useAppEvent';
|
|
|
5
6
|
export { usePageEvent } from './usePageEvent';
|
|
6
7
|
export { withPageLifecycle } from './withPageLifecycle';
|
|
7
8
|
export { getCurrent } from './current';
|
|
9
|
+
export declare const useNativeEffect: typeof runtime['useNativeEffect'];
|
|
10
|
+
export declare const useQuery: typeof runtime['useQuery'];
|
|
11
|
+
export declare const usePageInstance: typeof runtime['usePageInstance'];
|
|
12
|
+
export declare const useComponentInstance: typeof runtime['useComponentInstance'];
|
package/lib/index.js
CHANGED
|
@@ -5,4 +5,17 @@ export { useAppEvent } from './useAppEvent'; // 页面事件
|
|
|
5
5
|
|
|
6
6
|
export { usePageEvent } from './usePageEvent';
|
|
7
7
|
export { withPageLifecycle } from './withPageLifecycle';
|
|
8
|
-
export { getCurrent } from './current';
|
|
8
|
+
export { getCurrent } from './current';
|
|
9
|
+
export var useNativeEffect = function () {
|
|
10
|
+
return console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u94A9\u5B50 'useNativeEffect'");
|
|
11
|
+
};
|
|
12
|
+
export var useQuery = function () {
|
|
13
|
+
console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u94A9\u5B50 'useQuery'");
|
|
14
|
+
return null;
|
|
15
|
+
};
|
|
16
|
+
export var usePageInstance = function () {
|
|
17
|
+
return console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u94A9\u5B50 'usePageInstance'");
|
|
18
|
+
};
|
|
19
|
+
export var useComponentInstance = function () {
|
|
20
|
+
return console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u94A9\u5B50 'useComponentInstance'");
|
|
21
|
+
};
|
package/mini.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/index.mini'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/runtime",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10-beta-1",
|
|
4
4
|
"description": "Ray cross runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"main": "lib/index.js",
|
|
10
10
|
"files": [
|
|
11
|
-
"lib"
|
|
11
|
+
"lib",
|
|
12
|
+
"mini.js"
|
|
12
13
|
],
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public",
|
|
@@ -19,9 +20,12 @@
|
|
|
19
20
|
"build": "ray build --type=component --transform-mode=pure",
|
|
20
21
|
"watch": "tsc -p ./tsconfig.build.json --module esnext --outDir lib --watch"
|
|
21
22
|
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@ray-core/runtime": "^0.0.x"
|
|
25
|
+
},
|
|
22
26
|
"devDependencies": {
|
|
23
|
-
"@ray-js/cli": "^0.5.
|
|
24
|
-
"@ray-js/types": "^0.5.
|
|
27
|
+
"@ray-js/cli": "^0.5.10-beta-1",
|
|
28
|
+
"@ray-js/types": "^0.5.10-beta-1"
|
|
25
29
|
},
|
|
26
30
|
"maintainers": [
|
|
27
31
|
{
|
|
@@ -29,6 +33,6 @@
|
|
|
29
33
|
"email": "tuyafe@tuya.com"
|
|
30
34
|
}
|
|
31
35
|
],
|
|
32
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "269dad23e6a4cbbc8289142e6a60cc2586e4c130",
|
|
33
37
|
"repository": {}
|
|
34
38
|
}
|