builder.io 1.12.1 → 1.12.3

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -87,5 +87,13 @@ interface RipgrepResult {
87
87
  matches: RipgrepMatch[];
88
88
  }
89
89
  export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
90
+ /**
91
+ * Returns true if query is likely a string literal rather than a regex.
92
+ * Returns false otherwise.
93
+ * This is intended to ensure that queries such as "import {" do not get
94
+ * interpreted as invalid regex values by ripgrep.
95
+ * @param query - The query to check
96
+ */
97
+ export declare const isLikelyFixedString: (query: string) => boolean;
90
98
  export declare function newAbortError(): Error;
91
99
  export {};
@@ -18,7 +18,7 @@ export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, se
18
18
  tags?: object;
19
19
  maxTokens?: number;
20
20
  }, metadata?: any) => Promise<string>;
21
- export declare const getAllDesignSystems: (credentials: Credentials, opts?: {
21
+ interface GetAllDesignSystemsOpts {
22
22
  /**
23
23
  * If true, only design systems that the user has permission to edit will be
24
24
  * returned. If false, all design systems that the user has permission to edit
@@ -31,8 +31,16 @@ export declare const getAllDesignSystems: (credentials: Credentials, opts?: {
31
31
  * Defaults to false.
32
32
  */
33
33
  includeGlobalScopeDesignSystems?: boolean;
34
- }) => Promise<DesignSystem[]>;
35
- export declare const getDisplayDesignSystems: (credentials: Credentials) => Promise<DisplayDesignSystem[]>;
34
+ /**
35
+ * If true, the # of component docs in each design system will also be returned.
36
+ * Defaults to false.
37
+ */
38
+ includeDocumentCount?: boolean;
39
+ }
40
+ export declare function getAllDesignSystems(credentials: Credentials, opts: {
41
+ includeDocumentCount: true;
42
+ } & Omit<GetAllDesignSystemsOpts, "includeDocumentCount">): Promise<DisplayDesignSystem[]>;
43
+ export declare function getAllDesignSystems(credentials: Credentials, opts?: GetAllDesignSystemsOpts): Promise<DesignSystem[]>;
36
44
  export declare const getDesignSystemsByScope: (scope: DesignSystemScope, designSystems: DesignSystem[]) => DesignSystem[];
37
45
  export declare const getDesignSystemByName: (designSystemName: string, designSystems: DesignSystem[]) => DesignSystem | null;
38
46
  export declare const getDesignSystemByNameAndScope: (credentials: Credentials, designSystemName: string, scope: DesignSystemScope, designSystems: DesignSystem[]) => DesignSystem | null;
@@ -45,3 +53,4 @@ export declare const addDesignSystem: (credentials: Credentials, body: {
45
53
  }) => Promise<any>;
46
54
  export declare const updateDesignSystem: (credentials: Credentials, body: UpdateDesignSystemInput) => Promise<any>;
47
55
  export declare const checkRepoIndexingFolder: (sys: DevToolsSys) => Promise<boolean>;
56
+ export {};