diff --git a/package.json b/package.json index 19ae2db6..4d07fd99 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ ], "devDependencies": { "@babel/core": "^7.2.0", + "babel-plugin-dynamic-import-node": "^2.3.3", "@babel/plugin-proposal-class-properties": "^7.2.0", "@babel/plugin-proposal-decorators": "^7.2.0", "@babel/plugin-proposal-export-default-from": "^7.10.4", @@ -48,7 +49,7 @@ "setup": "rm -rf node_modules && yarn install && npm run clean && npm run build", "lint": "eslint --ext .js --ext .jsx ./", "lint:fix": "npm run lint -- --fix", - "test": "jest --logHeapUsage --detectOpenHandles", + "test": "jest --logHeapUsage --detectOpenHandles --testPathIgnorePatterns=/jsx-compiler/", "build": "ts-node ./scripts/build.ts", "clean": "rimraf packages/*/lib", "check-and-publish": "node ./scripts/check-and-publish", diff --git a/packages/miniapp-render/CHANGELOG.md b/packages/miniapp-render/CHANGELOG.md index 88f2fa16..710711a2 100644 --- a/packages/miniapp-render/CHANGELOG.md +++ b/packages/miniapp-render/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [2.8.10] - 2023-08-23 + +- Support onChooseAvatar event in buton in wechat + +### Fixed ## [2.8.9] - 2022-03-23 diff --git a/packages/miniapp-render/package.json b/packages/miniapp-render/package.json index b6c29986..2f60fdd6 100644 --- a/packages/miniapp-render/package.json +++ b/packages/miniapp-render/package.json @@ -1,6 +1,6 @@ { "name": "miniapp-render", - "version": "2.8.9", + "version": "2.8.10", "description": "DOM simulator for MiniApp", "files": [ "dist" diff --git a/packages/miniapp-render/src/builtInComponents/button.js b/packages/miniapp-render/src/builtInComponents/button.js index 2aac8d15..2b0ee6d2 100644 --- a/packages/miniapp-render/src/builtInComponents/button.js +++ b/packages/miniapp-render/src/builtInComponents/button.js @@ -27,5 +27,9 @@ export default { { name: 'onButtonGetAuthorize', eventName: 'getauthorize' + }, + { + name: 'onButtonChooseAvatar', + eventName: 'chooseavatar' }] }; diff --git a/packages/rax-miniapp-runtime-webpack-plugin/CHANGELOG.md b/packages/rax-miniapp-runtime-webpack-plugin/CHANGELOG.md index dc5caffd..20b5bc3c 100644 --- a/packages/rax-miniapp-runtime-webpack-plugin/CHANGELOG.md +++ b/packages/rax-miniapp-runtime-webpack-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [5.0.5] - 2023-08-23 + +### Fixed + +- Support onChooseAvatar event in buton in wechat + ## [5.0.4] - 2022-08-30 ### Fixed diff --git a/packages/rax-miniapp-runtime-webpack-plugin/package.json b/packages/rax-miniapp-runtime-webpack-plugin/package.json index 4001eebb..5763c8fa 100644 --- a/packages/rax-miniapp-runtime-webpack-plugin/package.json +++ b/packages/rax-miniapp-runtime-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "rax-miniapp-runtime-webpack-plugin", - "version": "5.0.4", + "version": "5.0.5", "description": "A webpack plugin for miniapp runtime build", "main": "src/index.js", "files": [ diff --git a/packages/rax-miniapp-runtime-webpack-plugin/src/platforms/wechat.js b/packages/rax-miniapp-runtime-webpack-plugin/src/platforms/wechat.js index 8201b6e3..7b9c2a32 100644 --- a/packages/rax-miniapp-runtime-webpack-plugin/src/platforms/wechat.js +++ b/packages/rax-miniapp-runtime-webpack-plugin/src/platforms/wechat.js @@ -347,7 +347,8 @@ const Button = { GetPhoneNumber: '', Error: '', OpenSetting: '', - LaunchApp: '' + LaunchApp: '', + ChooseAvatar: '' }, basicEvents: { ...tapEvents,