@rsmax/one 1.3.13 → 1.3.15-alpha.29

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.3.14](https://github.com/remaxjs/remax/compare/v1.3.13...v1.3.14) (2025-09-10)
7
+
8
+ **Note:** Version bump only for package @rsmax/one
9
+
6
10
  ## [1.3.13](https://github.com/remaxjs/remax/compare/v1.3.12...v1.3.13) (2025-06-16)
7
11
 
8
12
  **Note:** Version bump only for package @rsmax/one
@@ -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.13",
3
+ "version": "1.3.15-alpha.29+42a6372",
4
4
  "description": "Rsmax 小程序多端方案",
5
5
  "repository": "git+https://github.com/remaxjs/remax.git",
6
6
  "license": "MIT",
@@ -13,22 +13,21 @@
13
13
  "postbuild": "node ./scripts/postbuild.js",
14
14
  "build:cjs": "tsc --module CommonJS --outDir cjs",
15
15
  "clean": "rimraf cjs esm tsconfig.tsbuildinfo",
16
- "test": "vitest run"
16
+ "test": "rstest run"
17
17
  },
18
18
  "dependencies": {
19
- "@rsmax/ali": "1.3.13",
20
- "@rsmax/framework-shared": "1.3.13",
21
- "@rsmax/redbox-react": "^1.0.3",
22
- "@rsmax/runtime": "1.3.13",
23
- "@rsmax/toutiao": "1.3.13",
24
- "@rsmax/web": "1.3.13",
25
- "@rsmax/wechat": "1.3.13",
19
+ "@rsmax/ali": "1.3.15-alpha.29+42a6372",
20
+ "@rsmax/framework-shared": "1.3.15-alpha.29+42a6372",
21
+ "@rsmax/runtime": "1.3.15-alpha.29+42a6372",
22
+ "@rsmax/toutiao": "1.3.15-alpha.29+42a6372",
23
+ "@rsmax/web": "1.3.15-alpha.29+42a6372",
24
+ "@rsmax/wechat": "1.3.15-alpha.29+42a6372",
26
25
  "clsx": "^2.1.1",
27
26
  "memoize-one": "^5.1.1",
28
27
  "react-autosize-textarea": "^7.0.0"
29
28
  },
30
29
  "devDependencies": {
31
- "@rsmax/types": "1.3.13",
30
+ "@rsmax/types": "1.3.15-alpha.29+42a6372",
32
31
  "@types/react": "^18.3.0",
33
32
  "@types/react-dom": "^18.3.0",
34
33
  "@types/react-test-renderer": "^18.3.0",
@@ -40,5 +39,5 @@
40
39
  "access": "public"
41
40
  },
42
41
  "esnext": "./esm/index.js",
43
- "gitHead": "ff3656307036567c5b9d9b62dcaa599f539d56b7"
42
+ "gitHead": "42a6372a437e9f43f5bf03de5a4e15302caaccee"
44
43
  }
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from '@rstest/core';
2
+
3
+ export default defineConfig({
4
+ globals: true,
5
+ exclude: ['cjs/', 'esm/', 'node_modules/'],
6
+ });
package/vitest.config.js DELETED
@@ -1,8 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- globals: true,
6
- exclude: ['cjs/', 'esm/', 'node_modules/'],
7
- },
8
- });