diff --git a/.github/workflows/sync-components-types.yml b/.github/workflows/sync-components-types.yml index 14f0cd2bd04..b437f3c9ab0 100644 --- a/.github/workflows/sync-components-types.yml +++ b/.github/workflows/sync-components-types.yml @@ -24,10 +24,11 @@ jobs: cp -r .taro-docs/packages/taro-components/types/* packages/taro-components/types rm -rf .taro-docs + # Bootstrap project - name: Cache pnpm modules uses: actions/cache@v3 with: - path: node_modules + path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- @@ -40,9 +41,16 @@ jobs: - recursive: true args: [--frozen-lockfile, --strict-peer-dependencies] - args: [--filter @tarojs/components, -D, miniapp-types@latest] + # Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制 + - name: Setup Node 16 + uses: actions/setup-node@v4 + with: + node-version: 16 + cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' # Don't touch! - name: build - run: pnpm build + run: pnpm --filter=@tarojs/components... build - name: execute sync script run: | diff --git a/crates/native_binding/package.json b/crates/native_binding/package.json index f2549f2736c..6d0598cb014 100644 --- a/crates/native_binding/package.json +++ b/crates/native_binding/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/binding", - "version": "3.6.22", + "version": "3.6.23", "description": "Node binding for taro", "main": "binding.js", "typings": "binding.d.ts", diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index b95bf30c573..b50470acaec 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,7 +1,7 @@ { "name": "@tarojs/binding-darwin-arm64", "description": "Native binding for taro", - "version": "3.6.22", + "version": "3.6.23", "os": [ "darwin" ], diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 9023fd62f4a..deb97daeb41 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,7 +1,7 @@ { "name": "@tarojs/binding-darwin-x64", "description": "Native binding for taro", - "version": "3.6.22", + "version": "3.6.23", "os": [ "darwin" ], diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 6c473b572eb..3be48772ec2 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,7 +1,7 @@ { "name": "@tarojs/binding-linux-x64-gnu", "description": "Native binding for taro", - "version": "3.6.22", + "version": "3.6.23", "os": [ "linux" ], diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index fb6d5234168..a83f3354fa6 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,7 +1,7 @@ { "name": "@tarojs/binding-win32-x64-msvc", "description": "Native binding for taro", - "version": "3.6.22", + "version": "3.6.23", "os": [ "win32" ], diff --git a/package.json b/package.json index 65427dd045e..443418aac44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "taro", - "version": "3.6.22", + "version": "3.6.23", "description": "开放式跨端跨框架开发解决方案", "homepage": "https://github.com/NervJS/taro#readme", "author": "O2Team", diff --git a/packages/babel-plugin-transform-react-jsx-to-rn-stylesheet/package.json b/packages/babel-plugin-transform-react-jsx-to-rn-stylesheet/package.json index e888aca914e..415c24fe909 100644 --- a/packages/babel-plugin-transform-react-jsx-to-rn-stylesheet/package.json +++ b/packages/babel-plugin-transform-react-jsx-to-rn-stylesheet/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-transform-react-jsx-to-rn-stylesheet", - "version": "3.6.22", + "version": "3.6.23", "description": "Transform stylesheet selector to style in JSX Elements.", "license": "MIT", "main": "dist/index.js", diff --git a/packages/babel-plugin-transform-taroapi/package.json b/packages/babel-plugin-transform-taroapi/package.json index b2a62f82ad0..8e43a759783 100644 --- a/packages/babel-plugin-transform-taroapi/package.json +++ b/packages/babel-plugin-transform-taroapi/package.json @@ -1,6 +1,6 @@ { "name": "babel-plugin-transform-taroapi", - "version": "3.6.22", + "version": "3.6.23", "main": "dist/index.js", "scripts": { "build": "tsc", diff --git a/packages/babel-preset-taro/package.json b/packages/babel-preset-taro/package.json index 27cfd56ae2c..44102d8a440 100644 --- a/packages/babel-preset-taro/package.json +++ b/packages/babel-preset-taro/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-taro", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro babel preset", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/babel-preset-taro#readme", diff --git a/packages/create-app/package.json b/packages/create-app/package.json index 1287f3b72df..235c8bfdfc7 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/create-app", - "version": "3.6.22", + "version": "3.6.23", "description": "create taro app with one command", "author": "VincentW ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/create-app#readme", diff --git a/packages/css-to-react-native/package.json b/packages/css-to-react-native/package.json index 8d649b531db..75f1b4b777c 100644 --- a/packages/css-to-react-native/package.json +++ b/packages/css-to-react-native/package.json @@ -1,7 +1,7 @@ { "name": "taro-css-to-react-native", "description": "Convert CSS text to a React Native stylesheet object", - "version": "3.6.22", + "version": "3.6.23", "main": "dist/index.js", "license": "MIT", "files": [ diff --git a/packages/eslint-config-taro/package.json b/packages/eslint-config-taro/package.json index 283fec9294e..7681d36a987 100644 --- a/packages/eslint-config-taro/package.json +++ b/packages/eslint-config-taro/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-taro", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro specific linting rules for ESLint", "main": "index.js", "files": [ diff --git a/packages/postcss-html-transform/package.json b/packages/postcss-html-transform/package.json index 12aa9199697..37bd2ea853f 100644 --- a/packages/postcss-html-transform/package.json +++ b/packages/postcss-html-transform/package.json @@ -1,6 +1,6 @@ { "name": "postcss-html-transform", - "version": "3.6.22", + "version": "3.6.23", "description": "transform html tag name selector", "main": "index.js", "author": "drchan", diff --git a/packages/postcss-plugin-constparse/package.json b/packages/postcss-plugin-constparse/package.json index 87a76a6d01b..92b43a468f7 100644 --- a/packages/postcss-plugin-constparse/package.json +++ b/packages/postcss-plugin-constparse/package.json @@ -1,6 +1,6 @@ { "name": "postcss-plugin-constparse", - "version": "3.6.22", + "version": "3.6.23", "description": "parse constants defined in config", "main": "index.js", "author": "Simba", diff --git a/packages/postcss-pxtransform/package.json b/packages/postcss-pxtransform/package.json index 06726fbf929..75543223835 100644 --- a/packages/postcss-pxtransform/package.json +++ b/packages/postcss-pxtransform/package.json @@ -1,6 +1,6 @@ { "name": "postcss-pxtransform", - "version": "3.6.22", + "version": "3.6.23", "description": "PostCSS plugin px 转小程序 rpx及h5 rem 单位", "main": "index.js", "keywords": [ diff --git a/packages/postcss-unit-transform/package.json b/packages/postcss-unit-transform/package.json index 17fa4edf5ec..327115646a7 100644 --- a/packages/postcss-unit-transform/package.json +++ b/packages/postcss-unit-transform/package.json @@ -1,6 +1,6 @@ { "name": "postcss-taro-unit-transform", - "version": "3.6.22", + "version": "3.6.23", "description": "小程序单位转换", "main": "index.js", "scripts": { diff --git a/packages/shared/package.json b/packages/shared/package.json index 0119d032fae..1d1675fe953 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/shared", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro utils internal use.", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/shared#readme", diff --git a/packages/stylelint-config-taro-rn/package.json b/packages/stylelint-config-taro-rn/package.json index 8dec018d301..3f34990893f 100644 --- a/packages/stylelint-config-taro-rn/package.json +++ b/packages/stylelint-config-taro-rn/package.json @@ -1,6 +1,6 @@ { "name": "stylelint-config-taro-rn", - "version": "3.6.22", + "version": "3.6.23", "description": "Shareable stylelint config for React Native CSS modules", "main": "index.js", "files": [ diff --git a/packages/stylelint-taro-rn/package.json b/packages/stylelint-taro-rn/package.json index eaab5e4a5c0..18b8fdd1d03 100644 --- a/packages/stylelint-taro-rn/package.json +++ b/packages/stylelint-taro-rn/package.json @@ -1,7 +1,7 @@ { "name": "stylelint-taro-rn", "description": "A collection of React Native specific rules for stylelint", - "version": "3.6.22", + "version": "3.6.23", "main": "dist/index.js", "files": [ "dist", diff --git a/packages/taro-alipay/package.json b/packages/taro-alipay/package.json index 25dc0647627..ca7c8d29eb6 100644 --- a/packages/taro-alipay/package.json +++ b/packages/taro-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-alipay", - "version": "3.6.22", + "version": "3.6.23", "description": "支付宝小程序平台插件", "author": "Chen-jj", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-alipay#readme", diff --git a/packages/taro-api/package.json b/packages/taro-api/package.json index 10b5cee426e..00e5c22591e 100644 --- a/packages/taro-api/package.json +++ b/packages/taro-api/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/api", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro common API", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/api#readme", diff --git a/packages/taro-cli-convertor/package.json b/packages/taro-cli-convertor/package.json index c4cc8d39d7b..8d877c1f802 100644 --- a/packages/taro-cli-convertor/package.json +++ b/packages/taro-cli-convertor/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/cli-convertor", - "version": "3.6.22", + "version": "3.6.23", "description": "cli tool for taro-convert", "main": "index.js", "scripts": { diff --git a/packages/taro-cli-convertor/src/index.ts b/packages/taro-cli-convertor/src/index.ts index 33678ec2234..4cea0093ef2 100644 --- a/packages/taro-cli-convertor/src/index.ts +++ b/packages/taro-cli-convertor/src/index.ts @@ -1805,9 +1805,9 @@ ${code} ps.push(creator.createFileFromTemplate(templateName, 'config/dev.js', 'config/dev.js', createOpts)) ps.push(creator.createFileFromTemplate(templateName, 'config/prod.js', 'config/prod.js', createOpts)) ps.push(creator.createFileFromTemplate(templateName, 'project.config.json', 'project.config.json', createOpts)) - ps.push(creator.createFileFromTemplate(templateName, '.gitignore', '.gitignore', createOpts)) - ps.push(creator.createFileFromTemplate(templateName, '.editorconfig', '.editorconfig', createOpts)) - ps.push(creator.createFileFromTemplate(templateName, '.eslintrc.js', '.eslintrc.js', createOpts)) + ps.push(creator.createFileFromTemplate(templateName, '_gitignore', '.gitignore', createOpts)) + ps.push(creator.createFileFromTemplate(templateName, '_editorconfig', '.editorconfig', createOpts)) + ps.push(creator.createFileFromTemplate(templateName, '_eslintrc', '.eslintrc', createOpts)) ps.push(creator.createFileFromTemplate(templateName, 'babel.config.js', 'babel.config.js', createOpts)) ps.push(creator.createFileFromTemplate(templateName, 'src/index.html', 'src/index.html', createOpts)) Promise.all(ps).then(() => { diff --git a/packages/taro-cli/package.json b/packages/taro-cli/package.json index 0a250074d37..033c4c7e642 100644 --- a/packages/taro-cli/package.json +++ b/packages/taro-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/cli", - "version": "3.6.22", + "version": "3.6.23", "description": "cli tool for taro", "main": "index.js", "types": "dist/index.d.ts", diff --git a/packages/taro-components-advanced/package.json b/packages/taro-components-advanced/package.json index 62a96c11c08..c6741009986 100644 --- a/packages/taro-components-advanced/package.json +++ b/packages/taro-components-advanced/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-advanced", - "version": "3.6.22", + "version": "3.6.23", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/taro-components-library-react/package.json b/packages/taro-components-library-react/package.json index eccd4526790..28e5a254e17 100644 --- a/packages/taro-components-library-react/package.json +++ b/packages/taro-components-library-react/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-library-react", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 组件库 React 版本库", "private": true, "main": "index.js", diff --git a/packages/taro-components-library-vue2/package.json b/packages/taro-components-library-vue2/package.json index 59fff231839..1fa7b6e9cbb 100644 --- a/packages/taro-components-library-vue2/package.json +++ b/packages/taro-components-library-vue2/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-library-vue2", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 组件库 Vue2 版本库", "private": true, "main": "index.js", diff --git a/packages/taro-components-library-vue3/package.json b/packages/taro-components-library-vue3/package.json index 6c1b9b70b5d..109f06d2289 100644 --- a/packages/taro-components-library-vue3/package.json +++ b/packages/taro-components-library-vue3/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-library-vue3", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 组件库 Vue3 版本库", "private": true, "main": "index.js", diff --git a/packages/taro-components-react/package.json b/packages/taro-components-react/package.json index e0abbe36699..bf808ea16b6 100644 --- a/packages/taro-components-react/package.json +++ b/packages/taro-components-react/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-react", - "version": "3.6.22", + "version": "3.6.23", "description": "", "main:h5": "src/index.js", "main": "dist/index.js", diff --git a/packages/taro-components-rn/package.json b/packages/taro-components-rn/package.json index 0e651ae96c0..73a90c7ce76 100644 --- a/packages/taro-components-rn/package.json +++ b/packages/taro-components-rn/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components-rn", - "version": "3.6.22", + "version": "3.6.23", "description": "多端解决方案基础组件(RN)", "main": "./dist/index.js", "scripts": { diff --git a/packages/taro-components/package.json b/packages/taro-components/package.json index f1926c6c1aa..4cc483dc37a 100644 --- a/packages/taro-components/package.json +++ b/packages/taro-components/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/components", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 组件库", "browser": "dist/index.js", "main:h5": "dist/index.js", diff --git a/packages/taro-components/scripts/json-schema-to-types.ts b/packages/taro-components/scripts/json-schema-to-types.ts index 485b4410dd2..573f214415d 100644 --- a/packages/taro-components/scripts/json-schema-to-types.ts +++ b/packages/taro-components/scripts/json-schema-to-types.ts @@ -123,7 +123,7 @@ class GenerateTypes { const isIgnore = value.indexOf('@ignore') !== -1 // 保留内置类型 - const inherentTypes = ['global', 'h5', 'rn', 'quickapp', 'harmony'] + const inherentTypes = ['global', 'h5', 'rn', 'quickapp', 'harmony', 'harmony_hybrid'] inherentTypes.forEach((type) => { if (preSupportedPlatforms?.includes(type)) { supportedPlatforms.push(type) diff --git a/packages/taro-components/types/Input.d.ts b/packages/taro-components/types/Input.d.ts index d7eec254692..63c5bee7f35 100644 --- a/packages/taro-components/types/Input.d.ts +++ b/packages/taro-components/types/Input.d.ts @@ -7,6 +7,7 @@ interface InputProps extends StandardProps, FormItemProps { value?: string /** 设置 React 非受控输入框的初始内容 * @supported weapp, alipay, swan, tt, qq, jd, h5, rn + * @unique */ defaultValue?: string /** input 的类型 diff --git a/packages/taro-components/types/Map.d.ts b/packages/taro-components/types/Map.d.ts index ff21beb21d7..47214127782 100644 --- a/packages/taro-components/types/Map.d.ts +++ b/packages/taro-components/types/Map.d.ts @@ -637,7 +637,6 @@ declare namespace MapProps { longitude: number latitude: number } - interface onPolylineTapEventDetail { polylineId: number longitude: number @@ -648,7 +647,6 @@ declare namespace MapProps { errCode: number errMsg: string } - interface onInterpolatePointEventDetail { markerId: number longitude: number diff --git a/packages/taro-components/types/PickerView.d.ts b/packages/taro-components/types/PickerView.d.ts index ef743c67ba6..1f972466689 100644 --- a/packages/taro-components/types/PickerView.d.ts +++ b/packages/taro-components/types/PickerView.d.ts @@ -7,6 +7,7 @@ interface PickerViewProps extends StandardProps { value?: number[] /** 设置 React 非受控状态下的初始取值 * @supported weapp, alipay, swan, tt, qq, jd, rn + * @unique */ defaultValue?: number[] /** 设置选择器中间选中框的样式 diff --git a/packages/taro-components/types/ShareElement.d.ts b/packages/taro-components/types/ShareElement.d.ts index a02a70ebfcc..79530a366c9 100644 --- a/packages/taro-components/types/ShareElement.d.ts +++ b/packages/taro-components/types/ShareElement.d.ts @@ -8,6 +8,7 @@ interface ShareElementProps extends StandardProps { key?: string /** 映射标记 * @supported weapp + * @unique */ mapkey?: string /** 映射标记 diff --git a/packages/taro-components/types/Slider.d.ts b/packages/taro-components/types/Slider.d.ts index 2884f0e3cad..8b5e6a108d0 100644 --- a/packages/taro-components/types/Slider.d.ts +++ b/packages/taro-components/types/Slider.d.ts @@ -28,6 +28,7 @@ interface SliderProps extends StandardProps, FormItemProps { value?: number /** 设置 React 非受控状态下的初始取值 * @supported weapp, alipay, swan, tt, qq, jd, h5, rn + * @unique */ defaultValue?: string /** 背景条的颜色(请使用 backgroundColor) diff --git a/packages/taro-components/types/Swiper.d.ts b/packages/taro-components/types/Swiper.d.ts index 24a123bea0f..331931b9983 100644 --- a/packages/taro-components/types/Swiper.d.ts +++ b/packages/taro-components/types/Swiper.d.ts @@ -28,7 +28,7 @@ interface SwiperProps extends StandardProps { current?: number /** 当前所在滑块的 item-id ,不能与 current 被同时指定 * @default "" - * @supported tt + * @supported swan, tt, qq, jd * @weapp deprecated */ currentItemId?: string diff --git a/packages/taro-components/types/Switch.d.ts b/packages/taro-components/types/Switch.d.ts index 1c68e9019d3..1f0239435fa 100644 --- a/packages/taro-components/types/Switch.d.ts +++ b/packages/taro-components/types/Switch.d.ts @@ -8,6 +8,7 @@ interface SwitchProps extends StandardProps, FormItemProps { checked?: boolean /** 设置在 React 非受控状态下,当前是否选中 * @supported weapp, alipay, swan, tt, qq, jd, h5, rn + * @unique */ defaultChecked?: boolean /** 是否禁用 diff --git a/packages/taro-components/types/Textarea.d.ts b/packages/taro-components/types/Textarea.d.ts index da62726bf97..820733373bc 100644 --- a/packages/taro-components/types/Textarea.d.ts +++ b/packages/taro-components/types/Textarea.d.ts @@ -7,6 +7,7 @@ interface TextareaProps extends StandardProps, FormItemProps { value?: string /** 设置 React 非受控输入框的初始内容 * @supported weapp, alipay, swan, tt, qq, jd, h5, rn + * @unique */ defaultValue?: string /** 输入框为空时占位符 diff --git a/packages/taro-components/types/Video.d.ts b/packages/taro-components/types/Video.d.ts index a6d4e77022f..7cb6276134d 100644 --- a/packages/taro-components/types/Video.d.ts +++ b/packages/taro-components/types/Video.d.ts @@ -315,7 +315,7 @@ interface VideoProps extends StandardProps { onTimeUpdate?: CommonEventFunction /** 当视频进入和退出全屏时触发 * - * @supported alipay, h5, rn, harmony_hybrid + * @supported h5, rn, harmony_hybrid */ onFullscreenChange?: CommonEventFunction /** 视频出现缓冲时触发 diff --git a/packages/taro-extend/package.json b/packages/taro-extend/package.json index ba5cab74f69..36db3c75437 100644 --- a/packages/taro-extend/package.json +++ b/packages/taro-extend/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/extend", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro extend functionality", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-extend#readme", diff --git a/packages/taro-h5/package.json b/packages/taro-h5/package.json index 7040617c162..1e373c1cba6 100644 --- a/packages/taro-h5/package.json +++ b/packages/taro-h5/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/taro-h5", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro h5 framework", "browser": "dist/index.js", "main:h5": "dist/index.esm.js", diff --git a/packages/taro-helper/package.json b/packages/taro-helper/package.json index 4c766fe6503..35ef62b8e92 100644 --- a/packages/taro-helper/package.json +++ b/packages/taro-helper/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/helper", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro Helper", "main": "index.js", "types": "dist/index.d.ts", diff --git a/packages/taro-jd/package.json b/packages/taro-jd/package.json index 222e8d72f4b..60a472ad993 100644 --- a/packages/taro-jd/package.json +++ b/packages/taro-jd/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-jd", - "version": "3.6.22", + "version": "3.6.23", "description": "京东小程序平台插件", "author": "Chen-jj", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-jd#readme", diff --git a/packages/taro-loader/package.json b/packages/taro-loader/package.json index d86263a0843..7e5aeb28b91 100644 --- a/packages/taro-loader/package.json +++ b/packages/taro-loader/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/taro-loader", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro runner use webpack loader", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-loader#readme", diff --git a/packages/taro-mini-runner/package.json b/packages/taro-mini-runner/package.json index e4f0f248246..d3f0b29d346 100644 --- a/packages/taro-mini-runner/package.json +++ b/packages/taro-mini-runner/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/mini-runner", - "version": "3.6.22", + "version": "3.6.23", "description": "Mini app runner for taro", "main": "index.js", "scripts": { diff --git a/packages/taro-platform-h5/package.json b/packages/taro-platform-h5/package.json index f5ed25ae667..f4caa0503b1 100644 --- a/packages/taro-platform-h5/package.json +++ b/packages/taro-platform-h5/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-h5", - "version": "3.6.22", + "version": "3.6.23", "description": "Web 端平台插件", "author": "ZakaryCode", "license": "MIT", diff --git a/packages/taro-platform-harmony-hybrid/package.json b/packages/taro-platform-harmony-hybrid/package.json index 5f5453a6a42..1b7884fdae0 100644 --- a/packages/taro-platform-harmony-hybrid/package.json +++ b/packages/taro-platform-harmony-hybrid/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-harmony-hybrid", - "version": "3.6.22", + "version": "3.6.23", "description": "Harmony 端平台插件", "author": "ZakaryCode", "license": "MIT", diff --git a/packages/taro-plugin-html/package.json b/packages/taro-plugin-html/package.json index 18ee1804f9a..4216cc2110b 100644 --- a/packages/taro-plugin-html/package.json +++ b/packages/taro-plugin-html/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-html", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端支持使用 HTML 标签的插件", "main": "index.js", "scripts": { diff --git a/packages/taro-plugin-http/package.json b/packages/taro-plugin-http/package.json index aeae83671b2..7a7abce7d71 100644 --- a/packages/taro-plugin-http/package.json +++ b/packages/taro-plugin-http/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-http", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端支持使用 web 请求 的插件", "main": "index.js", "scripts": { diff --git a/packages/taro-plugin-inject/package.json b/packages/taro-plugin-inject/package.json index 17f993e7ca2..5c07d8b43b0 100644 --- a/packages/taro-plugin-inject/package.json +++ b/packages/taro-plugin-inject/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-inject", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端平台中间层插件", "author": "luckyadam", "homepage": "https://github.com/nervjs/taro", diff --git a/packages/taro-plugin-mini-ci/package.json b/packages/taro-plugin-mini-ci/package.json index 376cddaaa48..04fe025b5e6 100644 --- a/packages/taro-plugin-mini-ci/package.json +++ b/packages/taro-plugin-mini-ci/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-mini-ci", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端构建后支持CI(持续集成)的插件", "keywords": [ "Taro", diff --git a/packages/taro-plugin-react-devtools/package.json b/packages/taro-plugin-react-devtools/package.json index d4ac932fa2a..637241bff78 100644 --- a/packages/taro-plugin-react-devtools/package.json +++ b/packages/taro-plugin-react-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-react-devtools", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端支持使用 React DevTools 的插件", "main": "index.js", "scripts": { diff --git a/packages/taro-plugin-react/package.json b/packages/taro-plugin-react/package.json index d0c92823d8e..9c8919ec848 100644 --- a/packages/taro-plugin-react/package.json +++ b/packages/taro-plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-framework-react", - "version": "3.6.22", + "version": "3.6.23", "description": "React/Preact/Nerv 框架插件", "author": "drchan", "homepage": "https://github.com/nervjs/taro", diff --git a/packages/taro-plugin-vue-devtools/package.json b/packages/taro-plugin-vue-devtools/package.json index c556b579f6d..3c43a6217b0 100644 --- a/packages/taro-plugin-vue-devtools/package.json +++ b/packages/taro-plugin-vue-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-vue-devtools", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro 小程序端支持使用 Vue DevTools 的插件", "main": "index.js", "scripts": { diff --git a/packages/taro-plugin-vue2/package.json b/packages/taro-plugin-vue2/package.json index a61b527517b..ee44c208444 100644 --- a/packages/taro-plugin-vue2/package.json +++ b/packages/taro-plugin-vue2/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-framework-vue2", - "version": "3.6.22", + "version": "3.6.23", "description": "Vue2 框架插件", "author": "drchan", "homepage": "https://github.com/nervjs/taro", diff --git a/packages/taro-plugin-vue3/package.json b/packages/taro-plugin-vue3/package.json index 8992d445c0e..f829e1bb4e6 100644 --- a/packages/taro-plugin-vue3/package.json +++ b/packages/taro-plugin-vue3/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-framework-vue3", - "version": "3.6.22", + "version": "3.6.23", "description": "Vue3 框架插件", "author": "drchan", "homepage": "https://github.com/nervjs/taro", diff --git a/packages/taro-qq/package.json b/packages/taro-qq/package.json index 9762f85d943..92a7cafdc69 100644 --- a/packages/taro-qq/package.json +++ b/packages/taro-qq/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-qq", - "version": "3.6.22", + "version": "3.6.23", "description": "QQ 小程序平台插件", "author": "Chen-jj", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-qq#readme", diff --git a/packages/taro-react/package.json b/packages/taro-react/package.json index de480b41191..b3fd44d0b95 100644 --- a/packages/taro-react/package.json +++ b/packages/taro-react/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/react", - "version": "3.6.22", + "version": "3.6.23", "description": "like react-dom, but for mini apps.", "author": "yuche ", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-react#readme", diff --git a/packages/taro-rn-runner/package.json b/packages/taro-rn-runner/package.json index cf253b6edfb..a48ff6ca5a5 100644 --- a/packages/taro-rn-runner/package.json +++ b/packages/taro-rn-runner/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/rn-runner", - "version": "3.6.22", + "version": "3.6.23", "description": "ReactNative build tool for taro", "main": "index.js", "repository": { diff --git a/packages/taro-rn-style-transformer/package.json b/packages/taro-rn-style-transformer/package.json index 1fa1b2be7a5..48ab08c391b 100644 --- a/packages/taro-rn-style-transformer/package.json +++ b/packages/taro-rn-style-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/rn-style-transformer", - "version": "3.6.22", + "version": "3.6.23", "description": "提供Taro RN 统一处理样式文件能力", "main": "dist/index.js", "scripts": { diff --git a/packages/taro-rn-supporter/package.json b/packages/taro-rn-supporter/package.json index 7f7eadc9397..4503a8b3415 100644 --- a/packages/taro-rn-supporter/package.json +++ b/packages/taro-rn-supporter/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/rn-supporter", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro rn supporter", "main": "dist/index.js", "scripts": { diff --git a/packages/taro-rn-transformer/package.json b/packages/taro-rn-transformer/package.json index 7d9b5ee9835..25a1232c568 100644 --- a/packages/taro-rn-transformer/package.json +++ b/packages/taro-rn-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/rn-transformer", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro RN 入口文件处理", "main": "dist/index.js", "types": "./src/types/index.d.ts", diff --git a/packages/taro-rn/package.json b/packages/taro-rn/package.json index c126631bcc2..771d04a0955 100644 --- a/packages/taro-rn/package.json +++ b/packages/taro-rn/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/taro-rn", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro RN framework", "main": "dist/index.js", "typings": "types/index.d.ts", diff --git a/packages/taro-rn/tsconfig.json b/packages/taro-rn/tsconfig.json index 68abda5532c..c81abdcb995 100644 --- a/packages/taro-rn/tsconfig.json +++ b/packages/taro-rn/tsconfig.json @@ -7,6 +7,7 @@ "jsx": "react", "lib": ["ESNEXT"], "paths": { + "@tarojs/runtime": ["./types/runtime.d.ts"], "react": ["./node_modules/@types/react", "./node_modules/react"], "vue": ["./src/types/vue/index.d.ts"] }, diff --git a/packages/taro-rn/types/runtime.d.ts b/packages/taro-rn/types/runtime.d.ts new file mode 100644 index 00000000000..f38aacf9889 --- /dev/null +++ b/packages/taro-rn/types/runtime.d.ts @@ -0,0 +1,3 @@ +declare module '@tarojs/runtime' { + export * from '@tarojs/runtime-rn' +} diff --git a/packages/taro-router-rn/package.json b/packages/taro-router-rn/package.json index 74efbb9e706..2c12df0e21d 100644 --- a/packages/taro-router-rn/package.json +++ b/packages/taro-router-rn/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/router-rn", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro-router-rn", "main": "dist/index.js", "typings": "src/index.ts", diff --git a/packages/taro-router/package.json b/packages/taro-router/package.json index 1d0e3a1f541..19142d21459 100644 --- a/packages/taro-router/package.json +++ b/packages/taro-router/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/router", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro-router", "browser": "dist/index.js", "main:h5": "dist/index.esm.js", diff --git a/packages/taro-runner-utils/package.json b/packages/taro-runner-utils/package.json index ff144c193e6..fe85da353ea 100644 --- a/packages/taro-runner-utils/package.json +++ b/packages/taro-runner-utils/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/runner-utils", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro runner utilities.", "main": "dist/index.js", "types": "types/index.d.ts", diff --git a/packages/taro-runtime-rn/package.json b/packages/taro-runtime-rn/package.json index 439fce1c24d..72b9f4603f7 100644 --- a/packages/taro-runtime-rn/package.json +++ b/packages/taro-runtime-rn/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/runtime-rn", - "version": "3.6.22", + "version": "3.6.23", "description": "taro-runtime-rn", "main": "dist/index.js", "types": "./src/index.ts", diff --git a/packages/taro-runtime/package.json b/packages/taro-runtime/package.json index 54e5bbb3b24..e782c570910 100644 --- a/packages/taro-runtime/package.json +++ b/packages/taro-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/runtime", - "version": "3.6.22", + "version": "3.6.23", "description": "taro runtime for mini apps.", "browser": "dist/index.js", "main:h5": "dist/runtime.esm.js", diff --git a/packages/taro-service/package.json b/packages/taro-service/package.json index 08dacdaa370..80440060c62 100644 --- a/packages/taro-service/package.json +++ b/packages/taro-service/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/service", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro Service", "main": "index.js", "types": "types/index.d.ts", diff --git a/packages/taro-swan/package.json b/packages/taro-swan/package.json index 3e1dda267ce..03f5ef408b7 100644 --- a/packages/taro-swan/package.json +++ b/packages/taro-swan/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-swan", - "version": "3.6.22", + "version": "3.6.23", "description": "百度小程序平台插件", "author": "Chen-jj", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-swan#readme", diff --git a/packages/taro-transformer-wx/package.json b/packages/taro-transformer-wx/package.json index 17146edac84..6e5b254553a 100644 --- a/packages/taro-transformer-wx/package.json +++ b/packages/taro-transformer-wx/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/transformer-wx", - "version": "3.6.22", + "version": "3.6.23", "description": "Transfrom Nerv Component to Wechat mini program.", "repository": { "type": "git", diff --git a/packages/taro-tt/package.json b/packages/taro-tt/package.json index 6806f326f77..e3346d5f12e 100644 --- a/packages/taro-tt/package.json +++ b/packages/taro-tt/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-tt", - "version": "3.6.22", + "version": "3.6.23", "description": "头条小程序平台插件", "author": "Chen-jj", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-tt#readme", diff --git a/packages/taro-weapp/package.json b/packages/taro-weapp/package.json index 243bf31b4c7..4e9dce687fd 100644 --- a/packages/taro-weapp/package.json +++ b/packages/taro-weapp/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/plugin-platform-weapp", - "version": "3.6.22", + "version": "3.6.23", "description": "微信小程序平台插件", "author": "drchan", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro-weapp#readme", diff --git a/packages/taro-webpack-runner/package.json b/packages/taro-webpack-runner/package.json index a397ea76690..6f74f4fe741 100644 --- a/packages/taro-webpack-runner/package.json +++ b/packages/taro-webpack-runner/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/webpack-runner", - "version": "3.6.22", + "version": "3.6.23", "description": "webpack runner for taro", "main": "index.js", "scripts": { diff --git a/packages/taro-webpack5-prebundle/package.json b/packages/taro-webpack5-prebundle/package.json index 401d4a6ab42..d6f197658e0 100644 --- a/packages/taro-webpack5-prebundle/package.json +++ b/packages/taro-webpack5-prebundle/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/webpack5-prebundle", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro app webpack5 prebundle", "main": "dist/index.js", "scripts": { diff --git a/packages/taro-webpack5-runner/package.json b/packages/taro-webpack5-runner/package.json index 9358e421fd8..04a78d979dd 100644 --- a/packages/taro-webpack5-runner/package.json +++ b/packages/taro-webpack5-runner/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/webpack5-runner", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro app runner", "main": "index.js", "scripts": { diff --git a/packages/taro-with-weapp/package.json b/packages/taro-with-weapp/package.json index fe1e2f5fccf..9e4a832b14e 100644 --- a/packages/taro-with-weapp/package.json +++ b/packages/taro-with-weapp/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/with-weapp", - "version": "3.6.22", + "version": "3.6.23", "description": "taroize 之后的运行时", "main": "index.js", "files": [ diff --git a/packages/taro/package.json b/packages/taro/package.json index e83b7159684..1e92a0689d2 100644 --- a/packages/taro/package.json +++ b/packages/taro/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/taro", - "version": "3.6.22", + "version": "3.6.23", "description": "Taro framework", "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme", "main": "index.js", diff --git a/packages/taro/types/api/media/audio.d.ts b/packages/taro/types/api/media/audio.d.ts index a82fd31408f..0d8eedcac9f 100644 --- a/packages/taro/types/api/media/audio.d.ts +++ b/packages/taro/types/api/media/audio.d.ts @@ -800,6 +800,15 @@ declare module '../../index' { setPosition(...args: any[]): void } + namespace createInnerAudioContext { + interface Option { + /** 是否使用 WebAudio 作为底层音频驱动,默认关闭。对于短音频、播放频繁的音频建议开启此选项,开启后将获得更优的性能表现。由于开启此选项后也会带来一定的内存增长,因此对于长音频建议关闭此选项。 + * @supported weapp + */ + useWebAudioImplement: boolean + } + } + interface TaroStatic { /** 结束播放语音。 * **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口** @@ -979,7 +988,7 @@ declare module '../../index' { * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html */ - createInnerAudioContext(): InnerAudioContext + createInnerAudioContext(option?: createInnerAudioContext.Option): InnerAudioContext /** 创建 audio 上下文 AudioContext 对象。 * **注意:1.6.0 版本开始,本接口不再维护。建议使用能力更强的 [Taro.createInnerAudioContext](./createInnerAudioContext) 接口** diff --git a/packages/taro/types/index.d.ts b/packages/taro/types/index.d.ts index 9e3d942f36a..763a40b2d2d 100644 --- a/packages/taro/types/index.d.ts +++ b/packages/taro/types/index.d.ts @@ -3,53 +3,64 @@ * * 目录结构 * ├── api 小程序端能力 API - * │ ├── ad + * │   ├── ad * │ │ └── index.d.ts 广告 API - * │ ├── alipay + * │   ├── ai + * │   │   ├── face.d.ts 人脸检测 API + * │   │   ├── inference.d.ts AI 推理 API + * │   │   └── visionkit.d.ts 视觉算法 API + * │   ├── alipay * │ │ └── index.d.ts 支付宝小程序 API - * │ ├── base + * │   ├── base * │ │ ├── index.d.ts 基础 API + * │   │   ├── crypto.d.ts 基础 -> 加密 API * │ │ ├── debug.d.ts 基础 -> 调试 API + * │   │   ├── env.d.ts 基础 -> ENV + * │   │   ├── performance.d.ts * │ │ ├── system.d.ts 基础 -> 系统 API - * │ │ ├── update.d.ts 基础 -> 更新 API - * │ │ ├── weapp 基础 -> 小程序 API - * │ │ │ ├── life-cycle.d.ts 基础 -> 小程序 API -> 生命周期 - * │ │ │ └── app-event.d.ts 基础 -> 小程序 API -> 应用级事件 - * │ │ └── env.d.ts 基础 -> ENV - * │ ├── canvas + * │   │   ├── update.d.ts 基础 -> 更新 API + * │   │   └── weapp 基础 -> 小程序 API + * │   │   ├── app-event.d.ts 基础 -> 小程序 API -> 应用级事件 + * │   │   └── life-cycle.d.ts 基础 -> 小程序 API -> 生命周期 + * │   ├── canvas * │ │ └── index.d.ts 画布 API - * │ ├── cloud + * │   ├── cloud * │ │ └── index.d.ts 微信小程序云开发 API - * │ ├── data-analysis + * │   ├── data-analysis * │ │ └── index.d.ts 数据分析 API - * │ ├── device + * │   ├── device * │ │ ├── accelerometer.d.ts 设备 -> 加速计 API + * │   │   ├── accessibility.d.ts 设备 -> 无障碍 API * │ │ ├── battery.d.ts 设备 -> 电量 API - * │ │ ├── ble.d.ts 设备 -> 低功耗蓝牙 API - * │ │ ├── bluetooth.d. 设备 -> 蓝牙 API + * │   │   ├── bluetooth-ble.d.ts 设备 -> 蓝牙-低功耗中心设备 API + * │   │   ├── bluetooth-peripheral.d.ts 设备 -> 蓝牙-低功耗外围设备 API + * │   │   ├── bluetooth.d.ts 设备 -> 蓝牙-通用 API + * │   │   ├── calendar.d.ts 设备 -> 日历 API * │ │ ├── clipboard.d.ts 设备 -> 剪贴板 API * │ │ ├── compass.d.ts 设备 -> 罗盘 API * │ │ ├── contact.d.ts 设备 -> 联系人 API - * │ │ ├── motion.d.ts 设备 -> 设备方向 API * │ │ ├── gyroscope.d.ts 设备 -> 陀螺仪 API * │ │ ├── iBeacon.d.ts 设备 -> iBeacon API - * │ │ ├── network.d.ts 设备 -> 网络 API - * │ │ ├── nfc.d.ts 设备 -> NFC API - * │ │ ├── performance.d.ts 设备 -> 性能 API + * │   │   ├── keyboard.d.ts 设备 -> 键盘 API + * │   │   ├── memory.d.ts 设备 -> 内存 API + * │ │ ├── motion.d.ts 设备 -> 设备方向 API + * │   │   ├── network.d.ts 设备 -> 网络 API + * │   │   ├── nfc.d.ts 设备 -> NFC 读写 API * │ │ ├── phone.d.ts 设备 -> 电话 API * │ │ ├── scan.d.ts 设备 -> 扫码 API * │ │ ├── screen.d.ts 设备 -> 屏幕 API + * │   │   ├── sms.d.ts 设备 -> 短信 API * │ │ ├── vibrate.d.ts 设备 -> 振动 API * │ │ └── wifi.d.ts 设备 -> Wi-Fi API - * │ ├── ext + * │   ├── ext * │ │ └── index.d.ts 第三方平台 API - * │ ├── files + * │   ├── files * │ │ └── index.d.ts 文件 API - * │ ├── framework + * │   ├── framework * │ │ └── index.d.ts 小程序框架 API - * │ ├── location + * │   ├── location * │ │ └── index.d.ts 位置 API - * │ ├── media + * │   ├── media * │ │ ├── audio.d.ts 媒体 -> 音频 API * │ │ ├── background-audio.d.ts 媒体 -> 背景音频 API * │ │ ├── camera.d.ts 媒体 -> 相机 API @@ -57,21 +68,26 @@ * │ │ ├── image.d.ts 媒体 -> 图片 API * │ │ ├── live.d.ts 媒体 -> 实时音视频 API * │ │ ├── map.d.ts 媒体 -> 地图 API + * │   │   ├── media-recorder.d.ts 媒体 -> 画面录制器 API * │ │ ├── recorder.d.ts 媒体 -> 录音 API - * │ │ ├── video.d.ts 媒体 -> 视频 API + * │   │   ├── video-decoder.d.ts 媒体 -> 视频解码器 API * │ │ └── video-processing.d.ts 媒体 -> 音视频合成 API - * │ ├── network + * │ │ ├── video.d.ts 媒体 -> 视频 API + * │   │   └── voip.d.ts 媒体 -> 实时语音 API + * │   ├── navigate + * │   │   └── index.d.ts 跳转 API + * │   ├── network * │ │ ├── download.d.ts 网络 -> 下载 API * │ │ ├── mdns.d.ts 网络 -> mDNS API * │ │ ├── request.d.ts 网络 -> 发起请求 API + * │   │   ├── tcp.d.ts 网络 -> TCP 通信 API * │ │ ├── udp.d.ts 网络 -> UDP 通信 API * │ │ ├── upload.d.ts 网络 -> 上传 API * │ │ └── websocket.d.ts 网络 -> WebSocket API - * │ ├── open-api + * │   ├── open-api * │ │ ├── account.d.ts 开放接口 -> 账号信息 API * │ │ ├── address.d.ts 开放接口 -> 收货地址 API * │ │ ├── authorize.d.ts 开放接口 -> 授权 API - * │ │ ├── bookshelf.d.ts 开放接口 -> 书架 API * │ │ ├── card.d.ts 开放接口 -> 卡券 API * | | ├── channels.d.ts 开放接口 -> 视频号 API * | | ├── customer-service.d.ts 开放接口 -> 微信客服 API @@ -80,11 +96,10 @@ * │ │ ├── favorites.d.ts 开放接口 -> 收藏 API * │ │ ├── group.d.ts 开放接口 -> 微信群 API * │ │ ├── invoice.d.ts 开放接口 -> 发票 API - * │ │ ├── licence-plate.d.ts 开放接口 -> 车牌 API + * │   │   ├── license-plate.d.ts 开放接口 -> 车牌 API * │ │ ├── login.d.ts 开放接口 -> 登录 API * │ │ ├── my-miniprogram.d.ts 开放接口 -> 我的小程序 API * │ │ ├── privacy.d.ts 开放接口 -> 隐私信息授权 API - * │ │ ├── payment.d.ts 开放接口 -> 支付 API * │ │ ├── redpackage.d.ts 开放接口 -> 微信红包 API * │ │ ├── settings.d.ts 开放接口 -> 设置 API * │ │ ├── soter.d.ts 开放接口 -> 生物认证 API @@ -92,23 +107,33 @@ * | | ├── subscribe-message.d.ts 开放接口 -> 订阅消息 API * │ │ ├── user-info.d.ts 开放接口 -> 用户信息 API * │ │ └── werun.d.ts 开放接口 -> 微信运动 API - * │ ├── route + * │   ├── payment + * │   │   └── index.d.ts 支付 API + * │   ├── qq + * │   │   └── index.d.ts QQ 小程序 API + * │   ├── route * │ │ └── index.d.ts 路由 API - * │ ├── share + * │   ├── share * │ │ └── index.d.ts 转发 API - * │ ├── skyline + * │   ├── skyline * │ │ └── index.d.ts 微信 Skyline API - * │ ├── storage + * │   ├── storage * │ │ ├── background-fetch.d.ts 数据缓存 -> 后台获取 API - * │ │ └── index.d.ts 数据缓存 API - * │ ├── swan + * │   │   ├── cache-manager.d.ts 数据缓存 -> 缓存管理 API + * │   │   └── index.d.ts 数据缓存 API + * │   ├── swan + * │   │   ├── bookshelf.d.ts 百度小程序 -> 书架 API + * │   │   ├── download-package.d.ts 百度小程序 -> 下载包 API * │ │ └── index.d.ts 百度小程序 API - * │ ├── ui + * │   │   └── pay.d.ts 百度小程序 -> 支付 API + * │   ├── taro.extend.d.ts Taro 扩展 API 类型定义 + * │   ├── taro.hooks.d.ts Taro Hooks 类型定义 + * │   ├── ui * │ │ ├── animation.d.ts 界面 -> 动画 API * │ │ ├── background.d.ts 界面 -> 背景 API * │ │ ├── custom-component.d.ts 界面 -> 自定义组件 API * │ │ ├── fonts.d.ts 界面 -> 字体 API - * │ │ ├── keyboard.d.ts 界面 -> 键盘 API + * │   │   ├── interaction.d.ts 界面 -> 交互 API * │ │ ├── menu.d.ts 界面 -> 菜单 API * │ │ ├── navigation-bar.d.ts 界面 -> 导航栏 API * │ │ ├── pull-down-refresh.d.ts 界面 -> 下拉刷新 API @@ -116,14 +141,25 @@ * │ │ ├── sticky.d.ts 界面 -> 置顶 API * │ │ ├── tab-bar.d.ts 界面 -> TabBar API * │ │ ├── window.d.ts 界面 -> 窗口 API - * │ │ └── interaction.d.ts 界面 -> 交互 API - * │ ├── worker + * │   ├── worker * │ │ └── index.d.ts Worker API - * │ ├── wxml + * │   └── wxml * │ │ └── index.d.ts WXML API - * │ ├── taro.extend.d.ts Taro 扩展 API 类型定义 - * │ └── taro.hooks.d.ts Taro Hooks 类型定义 + * ├── compile + * │   ├── compiler.d.ts + * │   ├── config + * │   │   ├── h5.d.ts + * │   │   ├── index.d.ts + * │   │   ├── manifest.d.ts + * │   │   ├── mini.d.ts + * │   │   ├── project.d.ts + * │   │   ├── rn.d.ts + * │   │   └── util.d.ts + * │   ├── hooks.d.ts Taro Hooks 类型定义 + * │   └── index.d.ts + * ├── global.d.ts * ├── index.d.ts 此文件 + * ├── taro.api.d.ts * ├── taro.component.d.ts Taro Component 类型定义 * ├── taro.config.d.ts Taro 小程序 App 与 Window 设置类型定义 * └── taro.lifecycle.d.ts Taro 生命周期类型定义 @@ -135,6 +171,7 @@ /// /// /// +/// /// /// diff --git a/packages/taro/types/taro.api.d.ts b/packages/taro/types/taro.api.d.ts index c13b1cc51e7..9b086e37977 100644 --- a/packages/taro/types/taro.api.d.ts +++ b/packages/taro/types/taro.api.d.ts @@ -63,7 +63,6 @@ /// /// /// -/// /// /// /// @@ -121,6 +120,7 @@ /// /// +/// /// /// /// diff --git a/packages/taro/types/taro.runtime.d.ts b/packages/taro/types/taro.runtime.d.ts new file mode 100644 index 00000000000..b083b300b97 --- /dev/null +++ b/packages/taro/types/taro.runtime.d.ts @@ -0,0 +1,9 @@ +import type { options } from '@tarojs/runtime' + +import Taro from './index' + +declare module './index' { + interface TaroStatic { + options: typeof options + } +} diff --git a/packages/taroize/package.json b/packages/taroize/package.json index 7fa1c10225d..98185e2a1c5 100644 --- a/packages/taroize/package.json +++ b/packages/taroize/package.json @@ -1,6 +1,6 @@ { "name": "@tarojs/taroize", - "version": "3.6.22", + "version": "3.6.23", "description": "转换原生微信小程序代码为 Taro 代码", "main": "index.js", "files": [