@rsmax/build-store 1.3.14 → 1.3.15-canary.28

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/lib/index.d.ts CHANGED
@@ -30,6 +30,7 @@ declare const Store: {
30
30
  props: string[];
31
31
  };
32
32
  extractedTemplates: Map<string, ExtractedTemplate>;
33
+ componentDepth: Map<string, number>;
33
34
  templateId: number;
34
35
  registerNativeComponent(componentPath: string, output: string): string;
35
36
  registerPluginComponent(componentPath: string, importer: string): string;
package/lib/index.js CHANGED
@@ -53,6 +53,8 @@ const Store = {
53
53
  props: [],
54
54
  },
55
55
  extractedTemplates: new Map(),
56
+ // 渐进式层级统计:每个宿主组件的实际最大层级(1 + 祖先链出现次数)
57
+ componentDepth: new Map(),
56
58
  templateId: 1,
57
59
  registerNativeComponent(componentPath, output) {
58
60
  let component = this.nativeComponents.get(componentPath);
@@ -112,6 +114,8 @@ const Store = {
112
114
  this.appEvents.clear();
113
115
  this.pageEvents.clear();
114
116
  this.templateId = 1;
117
+ // 清空层级统计
118
+ this.componentDepth.clear();
115
119
  },
116
120
  };
117
121
  exports.default = Store;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsmax/build-store",
3
- "version": "1.3.14",
3
+ "version": "1.3.15-canary.28+9f3bcfa",
4
4
  "description": "使用真正的 React 构建跨平台小程序",
5
5
  "homepage": "https://remax.wdchiphop.cn",
6
6
  "repository": {
@@ -23,15 +23,15 @@
23
23
  "clean": "rimraf lib tsconfig.tsbuildinfo"
24
24
  },
25
25
  "dependencies": {
26
- "@rsmax/shared": "1.3.14",
26
+ "@rsmax/shared": "1.3.15-canary.28+9f3bcfa",
27
27
  "lodash": "^4.17.11"
28
28
  },
29
29
  "devDependencies": {
30
- "@rsmax/types": "1.3.14",
30
+ "@rsmax/types": "1.3.15-canary.28+9f3bcfa",
31
31
  "@types/lodash": "^4.14.135"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "a542ee33a167f862ec9db0f7466a33f1cef31106"
36
+ "gitHead": "9f3bcfa2fbcde65e21632b978576f368a162ae43"
37
37
  }