@ray-js/api 0.3.17-beta-75b85d66 → 0.3.20-beta-95743fa5

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 (126) hide show
  1. package/@types/api.d.ts +1 -0
  2. package/@types/api.extend.d.ts +29 -0
  3. package/lib/exitMiniProgram/index.d.ts +3 -1
  4. package/lib/exitMiniProgram/index.js +5 -2
  5. package/lib/exitMiniProgram/index.web.js +5 -2
  6. package/lib/getAppInfo/index.d.ts +3 -1
  7. package/lib/getAppInfo/index.js +5 -2
  8. package/lib/getAppInfo/index.web.js +5 -2
  9. package/lib/getEnterOptions/index.d.ts +3 -1
  10. package/lib/getEnterOptions/index.js +5 -2
  11. package/lib/getEnterOptions/index.web.js +5 -2
  12. package/lib/getEnterOptionsSync/index.d.ts +3 -1
  13. package/lib/getEnterOptionsSync/index.js +5 -2
  14. package/lib/getEnterOptionsSync/index.web.js +5 -2
  15. package/lib/getLangContent/index.d.ts +3 -1
  16. package/lib/getLangContent/index.js +5 -2
  17. package/lib/getLangContent/index.web.js +5 -2
  18. package/lib/getLangKey/index.d.ts +3 -1
  19. package/lib/getLangKey/index.js +5 -2
  20. package/lib/getLangKey/index.web.js +5 -2
  21. package/lib/getLaunchOptions/index.d.ts +3 -1
  22. package/lib/getLaunchOptions/index.js +5 -2
  23. package/lib/getLaunchOptions/index.web.js +5 -2
  24. package/lib/getLaunchOptionsSync/index.d.ts +4 -2
  25. package/lib/getLaunchOptionsSync/index.js +5 -2
  26. package/lib/getLaunchOptionsSync/index.web.js +5 -2
  27. package/lib/goDeviceAlarm/index.d.ts +3 -1
  28. package/lib/goDeviceAlarm/index.js +5 -2
  29. package/lib/goDeviceAlarm/index.web.js +5 -2
  30. package/lib/goDeviceDetail/index.d.ts +3 -1
  31. package/lib/goDeviceDetail/index.js +5 -2
  32. package/lib/goDeviceDetail/index.web.js +5 -2
  33. package/lib/hideHomeButton/index.d.ts +3 -1
  34. package/lib/hideHomeButton/index.js +5 -2
  35. package/lib/hideHomeButton/index.web.js +5 -2
  36. package/lib/hideNavigationBarLoading/index.d.ts +3 -1
  37. package/lib/hideNavigationBarLoading/index.js +5 -2
  38. package/lib/hideNavigationBarLoading/index.web.js +5 -2
  39. package/lib/hideTabBar/index.d.ts +1 -0
  40. package/lib/hideTabBar/index.js +1 -0
  41. package/lib/hideTabBar/index.web.js +1 -0
  42. package/lib/hideTabBarRedDot/index.d.ts +3 -1
  43. package/lib/hideTabBarRedDot/index.js +5 -2
  44. package/lib/hideTabBarRedDot/index.web.js +5 -2
  45. package/lib/index.android.js +1 -1
  46. package/lib/index.d.ts +2 -0
  47. package/lib/index.ios.js +1 -1
  48. package/lib/index.js +3 -1
  49. package/lib/index.tuya.js +3 -1
  50. package/lib/index.web.js +3 -1
  51. package/lib/index.wechat.js +3 -1
  52. package/lib/navigateBack/index.d.ts +4 -3
  53. package/lib/navigateBack/index.js +6 -2
  54. package/lib/navigateBack/index.web.js +6 -2
  55. package/lib/navigateBackMiniProgram/index.d.ts +3 -1
  56. package/lib/navigateBackMiniProgram/index.js +5 -2
  57. package/lib/navigateBackMiniProgram/index.web.js +5 -2
  58. package/lib/navigateTo/index.d.ts +3 -3
  59. package/lib/navigateTo/index.js +6 -2
  60. package/lib/navigateTo/index.web.js +6 -2
  61. package/lib/navigateToMiniProgram/index.d.ts +3 -1
  62. package/lib/navigateToMiniProgram/index.js +5 -2
  63. package/lib/navigateToMiniProgram/index.web.js +5 -2
  64. package/lib/onRouterEvent/index.d.ts +3 -1
  65. package/lib/onRouterEvent/index.js +5 -2
  66. package/lib/onRouterEvent/index.web.js +5 -2
  67. package/lib/reLaunch/index.d.ts +3 -3
  68. package/lib/reLaunch/index.js +6 -2
  69. package/lib/reLaunch/index.web.js +6 -2
  70. package/lib/redirectTo/index.d.ts +3 -3
  71. package/lib/redirectTo/index.js +6 -2
  72. package/lib/redirectTo/index.web.js +6 -2
  73. package/lib/removeTabBarBadge/index.d.ts +3 -1
  74. package/lib/removeTabBarBadge/index.js +5 -2
  75. package/lib/removeTabBarBadge/index.web.js +5 -2
  76. package/lib/requestCloud/index.android.js +1 -0
  77. package/lib/requestCloud/index.d.ts +3 -0
  78. package/lib/requestCloud/index.ios.js +1 -0
  79. package/lib/requestCloud/index.js +7 -0
  80. package/lib/requestCloud/index.md +18 -0
  81. package/lib/requestCloud/index.native.d.ts +1 -0
  82. package/lib/requestCloud/index.tuya.d.ts +1 -0
  83. package/lib/requestCloud/index.tuya.js +8 -0
  84. package/lib/requestCloud/index.web.js +7 -0
  85. package/lib/requestCloud/index.wechat.d.ts +1 -0
  86. package/lib/requestCloud/index.wechat.js +8 -0
  87. package/lib/resizeImage/index.d.ts +3 -1
  88. package/lib/resizeImage/index.js +5 -2
  89. package/lib/resizeImage/index.web.js +5 -2
  90. package/lib/router/index.d.ts +3 -1
  91. package/lib/router/index.js +5 -2
  92. package/lib/router/index.web.js +5 -2
  93. package/lib/setNavigationBarColor/index.d.ts +4 -6
  94. package/lib/setNavigationBarColor/index.js +6 -2
  95. package/lib/setNavigationBarColor/index.web.js +6 -2
  96. package/lib/setNavigationBarTitle/index.d.ts +4 -5
  97. package/lib/setNavigationBarTitle/index.js +6 -2
  98. package/lib/setNavigationBarTitle/index.web.js +6 -2
  99. package/lib/setTabBarBadge/index.d.ts +3 -1
  100. package/lib/setTabBarBadge/index.js +5 -2
  101. package/lib/setTabBarBadge/index.web.js +5 -2
  102. package/lib/setTabBarItem/index.d.ts +3 -1
  103. package/lib/setTabBarItem/index.js +5 -2
  104. package/lib/setTabBarItem/index.web.js +5 -2
  105. package/lib/setTabBarStyle/index.d.ts +3 -1
  106. package/lib/setTabBarStyle/index.js +5 -2
  107. package/lib/setTabBarStyle/index.web.js +5 -2
  108. package/lib/showNavigationBarLoading/index.d.ts +3 -1
  109. package/lib/showNavigationBarLoading/index.js +5 -2
  110. package/lib/showNavigationBarLoading/index.web.js +5 -2
  111. package/lib/showTabBar/index.d.ts +1 -0
  112. package/lib/showTabBar/index.js +1 -0
  113. package/lib/showTabBar/index.web.js +1 -0
  114. package/lib/showTabBarRedDot/index.d.ts +3 -1
  115. package/lib/showTabBarRedDot/index.js +5 -2
  116. package/lib/showTabBarRedDot/index.web.js +5 -2
  117. package/lib/startPullDownRefresh/index.d.ts +3 -1
  118. package/lib/startPullDownRefresh/index.js +5 -2
  119. package/lib/startPullDownRefresh/index.web.js +5 -2
  120. package/lib/stopPullDownRefresh/index.d.ts +3 -1
  121. package/lib/stopPullDownRefresh/index.js +5 -2
  122. package/lib/stopPullDownRefresh/index.web.js +5 -2
  123. package/lib/switchTab/index.d.ts +4 -3
  124. package/lib/switchTab/index.js +6 -2
  125. package/lib/switchTab/index.web.js +6 -2
  126. package/package.json +9 -9
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var showNavigationBarLoading = function () {
2
3
  console.warn('// TODO: 暂未实现');
3
- }
4
+ };
5
+
6
+ export default showNavigationBarLoading;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var showNavigationBarLoading = function () {
2
3
  console.warn('// TODO: 暂未实现');
3
- }
4
+ };
5
+
6
+ export default showNavigationBarLoading;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  declare const _default: (arg?: {
2
3
  animation?: boolean | undefined;
3
4
  } & {
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  import { showTabBar } from '@ray-js/framework';
2
3
  import { promisify } from '../core';
3
4
  export default promisify(showTabBar);
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../@types/api.d.ts" />
1
2
  import { showTabBar } from '@ray-js/framework';
2
3
  import { promisify } from '../core';
3
4
  export default promisify(showTabBar);
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showTabBarRedDot: typeof ty.showTabBarRedDot;
3
+ export default showTabBarRedDot;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var showTabBarRedDot = function () {
2
3
  console.warn('// TODO 暂未实现方法 showTabBarRedDot');
3
- }
4
+ };
5
+
6
+ export default showTabBarRedDot;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var showTabBarRedDot = function () {
2
3
  console.warn('// TODO 暂未实现方法 showTabBarRedDot');
3
- }
4
+ };
5
+
6
+ export default showTabBarRedDot;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const startPullDownRefresh: typeof ty.startPullDownRefresh;
3
+ export default startPullDownRefresh;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var startPullDownRefresh = function () {
2
3
  console.warn('// TODO 暂未实现方法 startPullDownRefresh');
3
- }
4
+ };
5
+
6
+ export default startPullDownRefresh;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var startPullDownRefresh = function () {
2
3
  console.warn('// TODO 暂未实现方法 startPullDownRefresh');
3
- }
4
+ };
5
+
6
+ export default startPullDownRefresh;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const stopPullDownRefresh: typeof ty.stopPullDownRefresh;
3
+ export default stopPullDownRefresh;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var stopPullDownRefresh = function () {
2
3
  console.warn('// TODO 暂未实现方法 stopPullDownRefresh');
3
- }
4
+ };
5
+
6
+ export default stopPullDownRefresh;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var stopPullDownRefresh = function () {
2
3
  console.warn('// TODO 暂未实现方法 stopPullDownRefresh');
3
- }
4
+ };
5
+
6
+ export default stopPullDownRefresh;
@@ -1,3 +1,4 @@
1
- export default function (options: {
2
- url: string;
3
- }): Promise<void>;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.switchTab;
4
+ export default _default;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var switchTab = function (options) {
5
7
  router.push(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default switchTab;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var switchTab = function (options) {
5
7
  router.push(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default switchTab;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.3.17-beta-75b85d66",
3
+ "version": "0.3.20-beta-95743fa5",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -25,12 +25,12 @@
25
25
  "watch": "ray start --type=component"
26
26
  },
27
27
  "dependencies": {
28
- "@ray-js/framework": "^0.3.17-beta-75b85d66",
29
- "@ray-js/framework-native": "^0.3.17-beta-75b85d66",
30
- "@ray-js/ray-panel-notification": "^0.3.17-beta-75b85d66",
31
- "@ray-js/router": "^0.3.17-beta-75b85d66",
32
- "@ray-js/router-native": "^0.3.17-beta-75b85d66",
33
- "@ray-js/runtime-native": "^0.3.17-beta-75b85d66",
28
+ "@ray-js/framework": "^0.3.20-beta-95743fa5",
29
+ "@ray-js/framework-native": "^0.3.20-beta-95743fa5",
30
+ "@ray-js/ray-panel-notification": "^0.3.20-beta-95743fa5",
31
+ "@ray-js/router": "^0.3.20-beta-95743fa5",
32
+ "@ray-js/router-native": "^0.3.20-beta-95743fa5",
33
+ "@ray-js/runtime-native": "^0.3.20-beta-95743fa5",
34
34
  "@tuya-miniapp/base-kit": "^2.1.2",
35
35
  "@tuya-miniapp/device-kit": "^2.1.6",
36
36
  "@tuya-miniapp/mini-kit": "^2.3.7",
@@ -38,7 +38,7 @@
38
38
  "react-native": "0.59.10"
39
39
  },
40
40
  "devDependencies": {
41
- "@ray-js/cli": "^0.3.17-beta-75b85d66",
41
+ "@ray-js/cli": "^0.3.20-beta-95743fa5",
42
42
  "art-template": "^4.13.2",
43
43
  "fs-extra": "^10.1.0",
44
44
  "miniprogram-api-typings": "^3.4.3",
@@ -50,6 +50,6 @@
50
50
  "email": "tuyafe@tuya.com"
51
51
  }
52
52
  ],
53
- "gitHead": "6c41a80262db6ba76c87086883a12682975fd359",
53
+ "gitHead": "4382fab026023bf1b03f89df6b88872cc555ca21",
54
54
  "repository": {}
55
55
  }