@tarojs/taro 4.1.12-beta.3 → 4.1.12-beta.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "4.1.12-beta.3",
3
+ "version": "4.1.12-beta.33",
4
4
  "description": "Taro framework",
5
5
  "author": "O2Team",
6
6
  "license": "MIT",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@types/postcss-url": "^10.0.4",
27
- "@tarojs/api": "4.1.12-beta.3",
28
- "@tarojs/runtime": "4.1.12-beta.3"
27
+ "@tarojs/api": "4.1.12-beta.33",
28
+ "@tarojs/runtime": "4.1.12-beta.33"
29
29
  },
30
30
  "devDependencies": {
31
31
  "html-webpack-plugin": "^5.6.0",
@@ -33,9 +33,9 @@
33
33
  "webpack-chain": "^6.5.1",
34
34
  "webpack-dev-server": "^4.15.2",
35
35
  "rollup": "^3.29.4",
36
- "@tarojs/components": "4.1.12-beta.3",
37
- "@tarojs/helper": "4.1.12-beta.3",
38
- "@tarojs/shared": "4.1.12-beta.3"
36
+ "@tarojs/components": "4.1.12-beta.33",
37
+ "@tarojs/helper": "4.1.12-beta.33",
38
+ "@tarojs/shared": "4.1.12-beta.33"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "^18",
@@ -46,9 +46,9 @@
46
46
  "webpack": "^5",
47
47
  "webpack-chain": "^6",
48
48
  "webpack-dev-server": "^4",
49
- "@tarojs/components": "4.1.12-beta.3",
50
- "@tarojs/helper": "4.1.12-beta.3",
51
- "@tarojs/shared": "4.1.12-beta.3"
49
+ "@tarojs/helper": "4.1.12-beta.33",
50
+ "@tarojs/shared": "4.1.12-beta.33",
51
+ "@tarojs/components": "4.1.12-beta.33"
52
52
  },
53
53
  "peerDependenciesMeta": {
54
54
  "@types/react": {
@@ -11,6 +11,11 @@ declare module '../../index' {
11
11
  interface Option {
12
12
  /** 剪贴板的内容 */
13
13
  data: string
14
+ /** 其他配置项 */
15
+ options?: {
16
+ /** 隐藏默认的 “内容已复制” message */
17
+ hideDefaultMessage: boolean
18
+ }
14
19
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
15
20
  complete?: (res: TaroGeneral.CallbackResult) => void
16
21
  /** 接口调用失败的回调函数 */
@@ -6,6 +6,7 @@ export interface IComponentConfig {
6
6
  exclude: Set<string>
7
7
  thirdPartyComponents: Map<Tagname, Attrs>
8
8
  includeAll: boolean
9
+ scopedIncludes: Map<string, Set<string>>
9
10
  }
10
11
 
11
12
  export interface IModifyChainData {
@@ -331,6 +331,27 @@ declare module './index' {
331
331
  plugins?: Plugins
332
332
  }
333
333
 
334
+ /** 子分包独立模板 root 配置项,可以是路径字符串或包含额外选项的对象 */
335
+ type SubPackageIndieRootConfig = string | {
336
+ /** 分包根路径(相对于 sourceDir) */
337
+ path: string
338
+ /**
339
+ * 是否禁用递归组件(comp/custom-wrapper/recursive-component)的生成。
340
+ * 设为 true 时,该 root 下不会生成 comp.*、custom-wrapper.*、recursive-component.js,
341
+ * base.wxml 最后一层的 container template 也不会引用 <comp>,超出 baseLevel 的节点将被静默截断。
342
+ * @default false
343
+ */
344
+ disableRecursiveComponent?: boolean
345
+ }
346
+
347
+ /** 子分包独立模板配置项 */
348
+ interface SubPackageIndieConfig {
349
+ /** 主入口分包根路径(相对于 sourceDir),runtime chunks 将生成到此目录 */
350
+ mainPackageRoot: SubPackageIndieRootConfig
351
+ /** 子组件分包根路径列表,只生成独立的模板文件 */
352
+ subPackageRoots?: SubPackageIndieRootConfig[]
353
+ }
354
+
334
355
  interface Plugins {
335
356
  [key: string]: {
336
357
  version: string
@@ -470,6 +491,23 @@ declare module './index' {
470
491
  */
471
492
  subPackages?: SubPackage[]
472
493
  subpackages?: SubPackage[]
494
+ /** 子分包独立模板配置(用于 newBlended 模式),支持多入口配置
495
+ * @example
496
+ * ```js
497
+ * subPackageIndie: [
498
+ * {
499
+ * mainPackageRoot: 'pages/order/index',
500
+ * subPackageRoots: ['pages/order/list', 'pages/order/detail']
501
+ * },
502
+ * {
503
+ * mainPackageRoot: 'pages/user/index',
504
+ * subPackageRoots: ['pages/user/profile']
505
+ * }
506
+ * ]
507
+ * ```
508
+ * @since 4.1.x
509
+ */
510
+ subPackageIndie?: SubPackageIndieConfig[]
473
511
  /** Worker 代码放置的目录
474
512
  * 使用 Worker 处理多线程任务时,设置 Worker 代码放置的目录
475
513
  * @since 1.9.90