@rsmax/one 1.3.14 → 1.3.15-canary.19

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.
@@ -1 +1,5 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from 'rsmax/ali';
1
+ export declare const navigateTo: (arg?: any) => Promise<any>;
2
+ export declare const navigateBack: (arg?: any) => Promise<any>;
3
+ export declare const redirectTo: (arg?: any) => Promise<any>;
4
+ export declare const reLaunch: (arg?: any) => Promise<any>;
5
+ export declare const switchTab: (arg?: any) => Promise<any>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.switchTab = exports.reLaunch = exports.redirectTo = exports.navigateBack = exports.navigateTo = void 0;
4
- var ali_1 = require("rsmax/ali");
5
- Object.defineProperty(exports, "navigateTo", { enumerable: true, get: function () { return ali_1.navigateTo; } });
6
- Object.defineProperty(exports, "navigateBack", { enumerable: true, get: function () { return ali_1.navigateBack; } });
7
- Object.defineProperty(exports, "redirectTo", { enumerable: true, get: function () { return ali_1.redirectTo; } });
8
- Object.defineProperty(exports, "reLaunch", { enumerable: true, get: function () { return ali_1.reLaunch; } });
9
- Object.defineProperty(exports, "switchTab", { enumerable: true, get: function () { return ali_1.switchTab; } });
4
+ const framework_shared_1 = require("@rsmax/framework-shared");
5
+ exports.navigateTo = (0, framework_shared_1.promisify)(my.navigateTo);
6
+ exports.navigateBack = (0, framework_shared_1.promisify)(my.navigateBack);
7
+ exports.redirectTo = (0, framework_shared_1.promisify)(my.redirectTo);
8
+ exports.reLaunch = (0, framework_shared_1.promisify)(my.reLaunch);
9
+ exports.switchTab = (0, framework_shared_1.promisify)(my.switchTab);
@@ -1 +1,5 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from '@rsmax/toutiao';
1
+ export declare const navigateTo: (arg?: any) => Promise<any>;
2
+ export declare const navigateBack: (arg?: any) => Promise<any>;
3
+ export declare const redirectTo: (arg?: any) => Promise<any>;
4
+ export declare const reLaunch: (arg?: any) => Promise<any>;
5
+ export declare const switchTab: (arg?: any) => Promise<any>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.switchTab = exports.reLaunch = exports.redirectTo = exports.navigateBack = exports.navigateTo = void 0;
4
- var toutiao_1 = require("@rsmax/toutiao");
5
- Object.defineProperty(exports, "navigateTo", { enumerable: true, get: function () { return toutiao_1.navigateTo; } });
6
- Object.defineProperty(exports, "navigateBack", { enumerable: true, get: function () { return toutiao_1.navigateBack; } });
7
- Object.defineProperty(exports, "redirectTo", { enumerable: true, get: function () { return toutiao_1.redirectTo; } });
8
- Object.defineProperty(exports, "reLaunch", { enumerable: true, get: function () { return toutiao_1.reLaunch; } });
9
- Object.defineProperty(exports, "switchTab", { enumerable: true, get: function () { return toutiao_1.switchTab; } });
4
+ const framework_shared_1 = require("@rsmax/framework-shared");
5
+ exports.navigateTo = (0, framework_shared_1.promisify)(tt.navigateTo);
6
+ exports.navigateBack = (0, framework_shared_1.promisify)(tt.navigateBack);
7
+ exports.redirectTo = (0, framework_shared_1.promisify)(tt.redirectTo);
8
+ exports.reLaunch = (0, framework_shared_1.promisify)(tt.reLaunch);
9
+ exports.switchTab = (0, framework_shared_1.promisify)(tt.switchTab);
@@ -1 +1,5 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from 'rsmax/ali';
1
+ export declare const navigateTo: (arg?: any) => Promise<any>;
2
+ export declare const navigateBack: (arg?: any) => Promise<any>;
3
+ export declare const redirectTo: (arg?: any) => Promise<any>;
4
+ export declare const reLaunch: (arg?: any) => Promise<any>;
5
+ export declare const switchTab: (arg?: any) => Promise<any>;
@@ -1 +1,6 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from 'rsmax/ali';
1
+ import { promisify } from '@rsmax/framework-shared';
2
+ export const navigateTo = promisify(my.navigateTo);
3
+ export const navigateBack = promisify(my.navigateBack);
4
+ export const redirectTo = promisify(my.redirectTo);
5
+ export const reLaunch = promisify(my.reLaunch);
6
+ export const switchTab = promisify(my.switchTab);
@@ -1 +1,5 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from '@rsmax/toutiao';
1
+ export declare const navigateTo: (arg?: any) => Promise<any>;
2
+ export declare const navigateBack: (arg?: any) => Promise<any>;
3
+ export declare const redirectTo: (arg?: any) => Promise<any>;
4
+ export declare const reLaunch: (arg?: any) => Promise<any>;
5
+ export declare const switchTab: (arg?: any) => Promise<any>;
@@ -1 +1,6 @@
1
- export { navigateTo, navigateBack, redirectTo, reLaunch, switchTab } from '@rsmax/toutiao';
1
+ import { promisify } from '@rsmax/framework-shared';
2
+ export const navigateTo = promisify(tt.navigateTo);
3
+ export const navigateBack = promisify(tt.navigateBack);
4
+ export const redirectTo = promisify(tt.redirectTo);
5
+ export const reLaunch = promisify(tt.reLaunch);
6
+ export const switchTab = promisify(tt.switchTab);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsmax/one",
3
- "version": "1.3.14",
3
+ "version": "1.3.15-canary.19+89bcd6a",
4
4
  "description": "Rsmax 小程序多端方案",
5
5
  "repository": "git+https://github.com/remaxjs/remax.git",
6
6
  "license": "MIT",
@@ -16,19 +16,19 @@
16
16
  "test": "rstest run"
17
17
  },
18
18
  "dependencies": {
19
- "@rsmax/ali": "1.3.14",
20
- "@rsmax/framework-shared": "1.3.14",
19
+ "@rsmax/ali": "1.3.15-canary.19+89bcd6a",
20
+ "@rsmax/framework-shared": "1.3.15-canary.19+89bcd6a",
21
21
  "@rsmax/redbox-react": "^1.0.3",
22
- "@rsmax/runtime": "1.3.14",
23
- "@rsmax/toutiao": "1.3.14",
24
- "@rsmax/web": "1.3.14",
25
- "@rsmax/wechat": "1.3.14",
22
+ "@rsmax/runtime": "1.3.15-canary.19+89bcd6a",
23
+ "@rsmax/toutiao": "1.3.15-canary.19+89bcd6a",
24
+ "@rsmax/web": "1.3.15-canary.19+89bcd6a",
25
+ "@rsmax/wechat": "1.3.15-canary.19+89bcd6a",
26
26
  "clsx": "^2.1.1",
27
27
  "memoize-one": "^5.1.1",
28
28
  "react-autosize-textarea": "^7.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@rsmax/types": "1.3.14",
31
+ "@rsmax/types": "1.3.15-canary.19+89bcd6a",
32
32
  "@types/react": "^18.3.0",
33
33
  "@types/react-dom": "^18.3.0",
34
34
  "@types/react-test-renderer": "^18.3.0",
@@ -40,5 +40,5 @@
40
40
  "access": "public"
41
41
  },
42
42
  "esnext": "./esm/index.js",
43
- "gitHead": "a542ee33a167f862ec9db0f7466a33f1cef31106"
43
+ "gitHead": "89bcd6a55f580707f23f434c59d0f283a44d2597"
44
44
  }