@next-core/brick-utils 2.45.10 → 2.45.11

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.
@@ -1,5 +1,5 @@
1
1
  import { Storyboard, BrickPackage } from "@next-core/brick-types";
2
- import { ScanBricksOptions } from "./scanBricksInStoryboard";
2
+ import { ScanBricksOptions } from "./scanStoryboard";
3
3
  interface DllAndDeps {
4
4
  dll: string[];
5
5
  deps: string[];
@@ -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, scanStoryboardAst, collectBricksByCustomTemplates, } from "./scanStoryboard";
22
+ export { type ScanBricksOptions, scanStoryboard, scanStoryboardAst, collectBricksByCustomTemplates, } from "./scanStoryboard";
23
23
  export * from "./JsonStorage";
24
24
  export * from "./builder";
25
25
  export * from "./deepFreeze";
@@ -1,8 +1,5 @@
1
1
  import { Storyboard, BrickConf } from "@next-core/brick-types";
2
- export interface ScanBricksOptions {
3
- keepDuplicates?: boolean;
4
- ignoreBricksInUnusedCustomTemplates?: boolean;
5
- }
2
+ import { ScanBricksOptions } from "./scanStoryboard";
6
3
  /**
7
4
  * Scan bricks in storyboard.
8
5
  *
@@ -10,10 +10,7 @@ export interface ScanBricksOptions {
10
10
  * @param storyboard - Storyboard.
11
11
  * @param options - If options is a boolean, it means `isUniq` or `de-duplicate`.
12
12
  */
13
- export declare function scanStoryboard(storyboard: Storyboard, options?: boolean | ScanBricksOptions): {
14
- bricks: string[];
15
- customApis: string[];
16
- };
13
+ export declare function scanStoryboard(storyboard: Storyboard, options?: boolean | ScanBricksOptions): ReturnType<typeof scanStoryboardAst>;
17
14
  /**
18
15
  * Scan bricks and custom apis in storyboard.
19
16
  *
@@ -23,6 +20,7 @@ export declare function scanStoryboard(storyboard: Storyboard, options?: boolean
23
20
  export declare function scanStoryboardAst(ast: StoryboardNodeRoot, options?: boolean | ScanBricksOptions): {
24
21
  bricks: string[];
25
22
  customApis: string[];
23
+ usedTemplates: string[];
26
24
  };
27
25
  export declare function collectBricksInBrickConf(brickConf: BrickConf): string[];
28
26
  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.45.10",
3
+ "version": "2.45.11",
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",
@@ -48,5 +48,5 @@
48
48
  "lodash": "*",
49
49
  "moment": "*"
50
50
  },
51
- "gitHead": "e8da7514af47f855d11a4d2cba13eed1be4aeaf2"
51
+ "gitHead": "b197aae45cf0f283902470dadad7263c959984cc"
52
52
  }