@ray-js/runtime 0.5.9 → 0.5.10

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/current.js CHANGED
@@ -1,8 +1,8 @@
1
- export var current = {
2
- app: null,
3
- page: null,
4
- renderOptions: {}
1
+ export const current = {
2
+ app: null,
3
+ page: null,
4
+ renderOptions: {},
5
5
  };
6
6
  export function getCurrent() {
7
- return current;
8
- }
7
+ return current;
8
+ }
package/lib/index.js CHANGED
@@ -1,21 +1,15 @@
1
1
  export { lifecycle } from './lifecycle';
2
2
  export { PageInstance } from './PageInstance';
3
3
  export { PageInstanceContext } from './PageInstanceContext';
4
- export { useAppEvent } from './useAppEvent'; // 页面事件
5
-
4
+ export { useAppEvent } from './useAppEvent';
5
+ // 页面事件
6
6
  export { usePageEvent } from './usePageEvent';
7
7
  export { withPageLifecycle } from './withPageLifecycle';
8
8
  export { getCurrent } from './current';
9
- export var useNativeEffect = function () {
10
- return console.warn("// TODO \u6682\u672A\u5B9E\u73B0\u94A9\u5B50 'useNativeEffect'");
9
+ export const useNativeEffect = () => console.warn(`// TODO 暂未实现钩子 'useNativeEffect'`);
10
+ export const useQuery = () => {
11
+ console.warn(`// TODO 暂未实现钩子 'useQuery'`);
12
+ return null;
11
13
  };
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
- };
14
+ export const usePageInstance = () => console.warn(`// TODO 暂未实现钩子 'usePageInstance'`);
15
+ export const useComponentInstance = () => console.warn(`// TODO 暂未实现钩子 'useComponentInstance'`);
package/lib/index.mini.js CHANGED
@@ -2,4 +2,4 @@ export * from '@ray-core/runtime';
2
2
  export { withPageLifecycle } from './withPageLifecycle';
3
3
  export { lifecycle } from './lifecycle';
4
4
  export { PageInstance } from './PageInstance';
5
- export { PageInstanceContext } from './PageInstanceContext';
5
+ export { PageInstanceContext } from './PageInstanceContext';
package/lib/instance.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,3 @@
1
- export function useAppEvent() {// TODO: App 事件
2
- }
1
+ export function useAppEvent(event, fn) {
2
+ // TODO: App 事件
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/runtime",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Ray cross runtime",
5
5
  "keywords": [
6
6
  "ray"
@@ -24,8 +24,8 @@
24
24
  "@ray-core/runtime": "^0.0.x"
25
25
  },
26
26
  "devDependencies": {
27
- "@ray-js/cli": "^0.5.9",
28
- "@ray-js/types": "^0.5.9"
27
+ "@ray-js/cli": "^0.5.10",
28
+ "@ray-js/types": "^0.5.10"
29
29
  },
30
30
  "maintainers": [
31
31
  {
@@ -33,6 +33,6 @@
33
33
  "email": "tuyafe@tuya.com"
34
34
  }
35
35
  ],
36
- "gitHead": "8618821f05c00f4987138f5b523ae6261e32c9a6",
36
+ "gitHead": "955dd59a037cbfbafd76f6f8f82d74d447e6a152",
37
37
  "repository": {}
38
38
  }