Skip to content

Commit

Permalink
Merge branch 'next' into refactor/template
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/shared/src/components.ts
#	packages/taro-mini-runner/__tests__/__snapshots__/alipay.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/bytedance.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/custom-tabbar.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/jd.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/qq.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/swan.spec.ts.snap
#	packages/taro-mini-runner/__tests__/__snapshots__/tabbar.spec.ts.snap
#	packages/taro-mini-runner/package.json
  • Loading branch information
Chen-jj committed Aug 16, 2020
2 parents 70c0089 + 4e019d4 commit 3ca4131
Show file tree
Hide file tree
Showing 65 changed files with 3,894 additions and 572 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 新建一个新的 Issue
url: https://nervjs.github.io/taro-issue-helper/
url: https://tls.jd.com/taro-issue-helper
about: 请点击 「Open」 按钮打开新链接创建 Issue
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"license": "MIT"
}
},
"version": "3.0.6",
"version": "3.0.7",
"npmClient": "yarn"
}
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-taroapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-transform-taroapi",
"version": "3.0.6",
"version": "3.0.7",
"main": "dist/index.js",
"scripts": {
"build": "tsc"
Expand Down
2 changes: 2 additions & 0 deletions packages/babel-preset-taro/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ module.exports = (_, options = {}) => {
packageName: '@tarojs/taro',
apis
}])
} else {
plugins.push([require('babel-plugin-dynamic-import-node')])
}

return {
Expand Down
7 changes: 4 additions & 3 deletions packages/babel-preset-taro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-taro",
"version": "3.0.6",
"version": "3.0.7",
"description": "> TODO: description",
"author": "yuche <i@yuche.me>",
"homepage": "https://github.com/nervjs/taro/tree/master/packages/babel-preset-taro#readme",
Expand Down Expand Up @@ -33,8 +33,9 @@
"@babel/preset-react": "^7.7.4",
"@babel/preset-typescript": "^7.8.0",
"@babel/runtime": "^7.7.4",
"@tarojs/taro-h5": "3.0.6",
"babel-plugin-transform-taroapi": "3.0.6",
"@tarojs/taro-h5": "3.0.7",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-transform-taroapi": "3.0.7",
"core-js": "^3.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/eslint-config-taro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-taro",
"version": "3.0.6",
"version": "3.0.7",
"description": "Taro specific linting rules for ESLint",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-taro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-taro",
"version": "3.0.6",
"version": "3.0.7",
"description": "Taro specific linting plugin for ESLint",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-plugin-constparse/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-plugin-constparse",
"version": "3.0.6",
"version": "3.0.7",
"description": "parse constants defined in config",
"main": "index.js",
"author": "Simba",
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-pxtransform/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-pxtransform",
"version": "3.0.6",
"version": "3.0.7",
"description": "PostCSS plugin px 转小程序 rpx及h5 rem 单位",
"keywords": [
"postcss",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/shared",
"version": "3.0.6",
"version": "3.0.7",
"description": "> TODO: description",
"author": "yuche <i@yuche.me>",
"homepage": "https://github.com/nervjs/taro/tree/master/packages/shared#readme",
Expand Down
39 changes: 32 additions & 7 deletions packages/shared/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ const Map = {
longitude: '',
latitude: '',
scale: '16',
markers: '',
markers: '[]',
covers: '',
polyline: '',
circles: '',
polyline: '[]',
circles: '[]',
controls: '',
'include-point': 'false',
'include-points': '[]',
'show-location': '',
polygons: '',
subkey: '',
Expand Down Expand Up @@ -381,6 +381,11 @@ const ScrollView = {
bindScrolltoUpper: '',
bindScrolltoLower: '',
bindScroll: '',
animation: '',
bindTransitionEnd: '',
bindAnimationStart: '',
bindAnimationIteration: '',
bindAnimationEnd: '',
...touchEvents
}

Expand Down Expand Up @@ -485,9 +490,13 @@ const LivePlayer = {
'sound-mode': singleQuote('speaker'),
'auto-pause-if-navigate': 'true',
'auto-pause-if-open-native': 'true',
'picture-in-picture-mode': '[]',
bindStateChange: '',
bindFullScreenChange: '',
bindNetStatus: ''
bindNetStatus: '',
bindAudioVolumeNotify: '',
bindEnterPictureInPicture: '',
bindLeavePictureInPicture: ''
}

const LivePusher = {
Expand Down Expand Up @@ -555,6 +564,16 @@ const Video = {
'vslide-gesture': 'false',
'vslide-gesture-in-fullscreen': 'true',
'ad-unit-id': '',
'poster-for-crawler': '',
'show-casting-button': 'false',
'picture-in-picture-mode': '[]',
// picture-in-picture-show-progress 属性先注释掉的原因如下:
// 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
// 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
// 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
// 'picture-in-picture-show-progress': 'false',
'enable-auto-rotation': 'false',
'show-screen-lock-button': 'false',
bindPlay: '',
bindPause: '',
bindEnded: '',
Expand All @@ -563,11 +582,15 @@ const Video = {
bindWaiting: '',
bindError: '',
bindProgress: '',
bindLoadedMetadata: ''
bindLoadedMetadata: '',
bindControlsToggle: '',
bindEnterPictureInPicture: '',
bindLeavePictureInPicture: '',
bindSeekComplete: ''
}

const Canvas = {
type: '',
type: singleQuote('2d'),
'canvas-id': '',
'disable-scroll': 'false',
bindTouchStart: '',
Expand All @@ -581,6 +604,8 @@ const Canvas = {
const Ad = {
'unit-id': '',
'ad-intervals': '',
'ad-type': singleQuote('banner'),
'ad-theme': singleQuote('white'),
bindLoad: '',
bindError: '',
bindClose: ''
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ export class BaseTemplate {
Object.assign(newComp, styles, this.getEvents())
}

if (compName === 'swiper-item') {
delete newComp.style
}

if (compName === 'slot' || compName === 'slot-view') {
result[compName] = {
slot: 'i.name'
Expand Down
4 changes: 2 additions & 2 deletions packages/taro-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/api",
"version": "3.0.6",
"version": "3.0.7",
"description": "Taro common API",
"author": "yuche <i@yuche.me>",
"homepage": "https://github.com/nervjs/taro/tree/master/packages/api#readme",
Expand Down Expand Up @@ -29,6 +29,6 @@
"url": "https://github.com/NervJS/taro/issues"
},
"dependencies": {
"@tarojs/runtime": "3.0.6"
"@tarojs/runtime": "3.0.7"
}
}
22 changes: 11 additions & 11 deletions packages/taro-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/cli",
"version": "3.0.6",
"version": "3.0.7",
"description": "cli tool for taro",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -44,11 +44,11 @@
"license": "MIT",
"dependencies": {
"@hapi/joi": "17.1.1",
"@tarojs/helper": "3.0.6",
"@tarojs/service": "3.0.6",
"@tarojs/shared": "3.0.6",
"@tarojs/taro": "3.0.6",
"@tarojs/taroize": "3.0.6",
"@tarojs/helper": "3.0.7",
"@tarojs/service": "3.0.7",
"@tarojs/shared": "3.0.7",
"@tarojs/taro": "3.0.7",
"@tarojs/taroize": "3.0.7",
"@tarojs/transformer-wx": "^2.0.4",
"@types/request": "^2.48.1",
"@typescript-eslint/parser": "^2.0.0",
Expand Down Expand Up @@ -76,11 +76,11 @@
"ejs": "^2.6.1",
"envinfo": "^6.0.1",
"eslint": "^6.1.0",
"eslint-config-taro": "3.0.6",
"eslint-config-taro": "3.0.7",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-react-hooks": "^1.6.1",
"eslint-plugin-taro": "3.0.6",
"eslint-plugin-taro": "3.0.7",
"eslint-plugin-vue": "^6.2.2",
"fbjs": "^1.0.0",
"find-yarn-workspace-root": "1.2.1",
Expand All @@ -103,7 +103,7 @@
"postcss-modules-resolve-imports": "^1.3.0",
"postcss-modules-scope": "^1.1.0",
"postcss-modules-values": "^1.3.0",
"postcss-pxtransform": "3.0.6",
"postcss-pxtransform": "3.0.7",
"postcss-reporter": "^6.0.1",
"postcss-taro-unit-transform": "1.2.15",
"postcss-url": "^7.3.2",
Expand All @@ -124,7 +124,7 @@
"xxhashjs": "^0.2.2"
},
"devDependencies": {
"@tarojs/mini-runner": "3.0.6",
"@tarojs/webpack-runner": "3.0.6"
"@tarojs/mini-runner": "3.0.7",
"@tarojs/webpack-runner": "3.0.7"
}
}
Loading

0 comments on commit 3ca4131

Please sign in to comment.