@next-core/brick-utils 2.39.6 → 2.40.0

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.
@@ -19,7 +19,7 @@ export * from "./cook";
19
19
  export * from "./resolveContextConcurrently";
20
20
  export * from "./scanCustomApisInStoryboard";
21
21
  export * from "./smartDisplayForEvaluableString";
22
- export { scanStoryboard } from "./scanStoryboard";
22
+ export { scanStoryboard, collectBricksByCustomTemplates, } from "./scanStoryboard";
23
23
  export * from "./JsonStorage";
24
24
  export * from "./builder";
25
25
  export * from "./deepFreeze";
@@ -1,4 +1,4 @@
1
- import { Storyboard, BrickConf } from "@next-core/brick-types";
1
+ import { Storyboard, BrickConf, CustomTemplate } from "@next-core/brick-types";
2
2
  export interface ScanBricksOptions {
3
3
  keepDuplicates?: boolean;
4
4
  ignoreBricksInUnusedCustomTemplates?: boolean;
@@ -14,3 +14,4 @@ export declare function scanStoryboard(storyboard: Storyboard, options?: boolean
14
14
  customApis: string[];
15
15
  };
16
16
  export declare function collectBricksInBrickConf(brickConf: BrickConf, collection: string[]): void;
17
+ export declare function collectBricksByCustomTemplates(customTemplates: CustomTemplate[]): Map<string, string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/brick-utils",
3
- "version": "2.39.6",
3
+ "version": "2.40.0",
4
4
  "description": "Pure utility functions for kernel",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/brick-utils",
6
6
  "license": "GPL-3.0",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@next-core/brick-types": "^2.73.1",
33
- "@next-core/cook": "^1.6.50",
32
+ "@next-core/brick-types": "^2.74.0",
33
+ "@next-core/cook": "^1.6.51",
34
34
  "file-saver": "^2.0.5",
35
35
  "path-to-regexp": "^6.2.1"
36
36
  },
@@ -46,5 +46,5 @@
46
46
  "lodash": "*",
47
47
  "moment": "*"
48
48
  },
49
- "gitHead": "43c6c5fa4afae84d4e3b4e0fb4b247b4879cb8e6"
49
+ "gitHead": "290ad67518280f6eec544d6fe3a7d8476189793a"
50
50
  }