@ray-js/api 0.5.8-beta-1 → 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.
Files changed (32) hide show
  1. package/package.json +5 -8
  2. package/lib/getApp/index.native.d.ts +0 -2
  3. package/lib/getApp/index.native.js +0 -4
  4. package/lib/getCurrentPages/index.native.d.ts +0 -1
  5. package/lib/getCurrentPages/index.native.js +0 -5
  6. package/lib/getElementById/index.native.d.ts +0 -1
  7. package/lib/getElementById/index.native.js +0 -13
  8. package/lib/getI18nInfo/index.native.js +0 -9
  9. package/lib/hideNotification/index.native.d.ts +0 -2
  10. package/lib/hideNotification/index.native.js +0 -7
  11. package/lib/hideTabBar/index.native.d.ts +0 -2
  12. package/lib/hideTabBar/index.native.js +0 -2
  13. package/lib/navigateBack/index.native.d.ts +0 -2
  14. package/lib/navigateBack/index.native.js +0 -2
  15. package/lib/navigateTo/index.native.d.ts +0 -2
  16. package/lib/navigateTo/index.native.js +0 -2
  17. package/lib/reLaunch/index.native.d.ts +0 -2
  18. package/lib/reLaunch/index.native.js +0 -2
  19. package/lib/readFileSync/index.native.d.ts +0 -1
  20. package/lib/readFileSync/index.native.js +0 -8
  21. package/lib/redirectTo/index.native.d.ts +0 -2
  22. package/lib/redirectTo/index.native.js +0 -2
  23. package/lib/requestCloud/index.native.d.ts +0 -1
  24. package/lib/requestCloud/index.native.js +0 -8
  25. package/lib/setNavigationBarColor/index.native.d.ts +0 -2
  26. package/lib/setNavigationBarColor/index.native.js +0 -2
  27. package/lib/setNavigationBarTitle/index.native.d.ts +0 -2
  28. package/lib/setNavigationBarTitle/index.native.js +0 -2
  29. package/lib/showTabBar/index.native.d.ts +0 -2
  30. package/lib/showTabBar/index.native.js +0 -2
  31. package/lib/switchTab/index.native.d.ts +0 -2
  32. 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.8-beta-1",
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.8-beta-1",
30
- "@ray-js/framework-native": "^0.5.8-beta-1",
31
- "@ray-js/router": "^0.5.8-beta-1",
32
- "@ray-js/router-native": "^0.5.8-beta-1",
33
- "@ray-js/runtime-native": "^0.5.8-beta-1",
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.8-beta-1",
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": "dbd3b62bdfcf744832f15a2aac92ac15b091d0f9",
46
+ "gitHead": "45232c09ae46aee3f29663e455158965ad329ff3",
50
47
  "repository": {}
51
48
  }
@@ -1,2 +0,0 @@
1
- declare const _default: () => import("@ray-js/runtime-native/lib/instance").AppInstance | null;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import { Current } from '@ray-js/runtime-native/lib/current';
2
- export default (function () {
3
- return Current.app;
4
- });
@@ -1 +0,0 @@
1
- export default function (): import("@ray-js/runtime-native/lib/instance").PageInstance[];
@@ -1,5 +0,0 @@
1
- import { getCurrentPages } from '@ray-js/runtime-native';
2
- export default function () {
3
- // TODO: 实现 web native 下的 pages 队列管理?
4
- return getCurrentPages();
5
- }
@@ -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,2 +0,0 @@
1
- declare const hideNotification: () => void;
2
- export default hideNotification;
@@ -1,7 +0,0 @@
1
- import Notification from '@ray-js/ray-panel-notification';
2
-
3
- var hideNotification = function () {
4
- Notification.hide();
5
- };
6
-
7
- export default hideNotification;
@@ -1,2 +0,0 @@
1
- import { hideTabBar } from '@ray-js/framework-native';
2
- export default hideTabBar;
@@ -1,2 +0,0 @@
1
- import { hideTabBar } from '@ray-js/framework-native';
2
- export default hideTabBar;
@@ -1,2 +0,0 @@
1
- import { navigateBack } from '@ray-js/router-native';
2
- export default navigateBack;
@@ -1,2 +0,0 @@
1
- import { navigateBack } from '@ray-js/router-native';
2
- export default navigateBack;
@@ -1,2 +0,0 @@
1
- import { navigateTo } from '@ray-js/router-native';
2
- export default navigateTo;
@@ -1,2 +0,0 @@
1
- import { navigateTo } from '@ray-js/router-native';
2
- export default navigateTo;
@@ -1,2 +0,0 @@
1
- import { reLaunch } from '@ray-js/router-native';
2
- export default reLaunch;
@@ -1,2 +0,0 @@
1
- import { reLaunch } from '@ray-js/router-native';
2
- export default reLaunch;
@@ -1 +0,0 @@
1
- export default function (): any;
@@ -1,8 +0,0 @@
1
- export default function () {
2
- if (!ty.readFileSync) {
3
- console.warn('// TODO 暂未实现方法 ty.readFileSync');
4
- return;
5
- }
6
-
7
- return ty.readFileSync.apply(this, arguments);
8
- }
@@ -1,2 +0,0 @@
1
- import { redirectTo } from '@ray-js/router-native';
2
- export default redirectTo;
@@ -1,2 +0,0 @@
1
- import { redirectTo } from '@ray-js/router-native';
2
- export default redirectTo;
@@ -1 +0,0 @@
1
- export default function (): any;
@@ -1,8 +0,0 @@
1
- export default function () {
2
- if (!ty.requestCloud) {
3
- console.warn('// TODO 暂未实现方法 ty.requestCloud');
4
- return;
5
- }
6
-
7
- return ty.requestCloud.apply(this, arguments);
8
- }
@@ -1,2 +0,0 @@
1
- import { setNavigationBarColor } from '@ray-js/runtime-native';
2
- export default setNavigationBarColor;
@@ -1,2 +0,0 @@
1
- import { setNavigationBarColor } from '@ray-js/runtime-native';
2
- export default setNavigationBarColor;
@@ -1,2 +0,0 @@
1
- import { setNavigationBarTitle } from '@ray-js/runtime-native';
2
- export default setNavigationBarTitle;
@@ -1,2 +0,0 @@
1
- import { setNavigationBarTitle } from '@ray-js/runtime-native';
2
- export default setNavigationBarTitle;
@@ -1,2 +0,0 @@
1
- import { showTabBar } from '@ray-js/runtime-native';
2
- export default showTabBar;
@@ -1,2 +0,0 @@
1
- import { showTabBar } from '@ray-js/runtime-native';
2
- export default showTabBar;
@@ -1,2 +0,0 @@
1
- import { switchTab } from '@ray-js/router-native';
2
- export default switchTab;
@@ -1,2 +0,0 @@
1
- import { switchTab } from '@ray-js/router-native';
2
- export default switchTab;