builder.io 1.7.35 → 1.8.1

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.
@@ -27,8 +27,20 @@ export interface CLIArgs {
27
27
  skipDetailedGrouping?: boolean;
28
28
  /** Skip display of header in repo indexing */
29
29
  skipHeader?: boolean;
30
- /** Design system package to use for repo indexing */
30
+ /** NPM package name to index */
31
31
  designSystemPackage?: string;
32
+ /**
33
+ * A user-friendly design system name to index.
34
+ *
35
+ * This can be used in conjunction with designSystemPackage to index components
36
+ * where the design system name is different than the npm package name.
37
+ * Example: --designSystemPackage=@adobe/react-spectrum --designSystemName="Adobe React Spectrum"
38
+ *
39
+ * This flag can also be used with includeDirectories to specify a name for design systems
40
+ * that are not npm packages.
41
+ * Example: --includeDirectories="path/to/swift/ui/components" --designSystemName="Native UI"
42
+ **/
43
+ designSystemName?: string;
32
44
  /**
33
45
  * Comma separated string of directories to look in for repo indexing.
34
46
  * Use this when component implementations live in a different place
@@ -44,9 +44,10 @@ export declare class InitStateMachine {
44
44
  * If no backup is available, do nothing.
45
45
  */
46
46
  private restoreFromPartialBackup;
47
- cloneRepository({ repo, repoPath, backupResult, }: {
47
+ cloneRepository({ repo, repoPath, backupResult, config, }: {
48
48
  repo: Required<WorkspaceFolder>;
49
49
  repoPath: string;
50
50
  backupResult: GitBackupDownloadResult | undefined;
51
+ config: InitConfig;
51
52
  }): Promise<boolean>;
52
53
  }
@@ -10,7 +10,7 @@ export declare const parseDesignSystem: (sys: DevToolsSys, designSystemPackage?:
10
10
  export declare const storeComponentDocs: (credentials: Credentials, body: StoreComponentDocsInput, debug?: boolean) => Promise<any>;
11
11
  export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, sessionId: string, message: GenerateUserMessage, debug?: boolean, designSystemPackage?: string, workspaceConfig?: WorkspaceConfiguration, opts?: {
12
12
  tags?: object;
13
- }) => Promise<string>;
13
+ }, metadata?: any) => Promise<string>;
14
14
  export declare const getAllDesignSystems: (credentials: Credentials) => Promise<DesignSystem[]>;
15
15
  export declare const getDesignSystemByName: (credentials: Credentials, designSystemName: string) => Promise<DesignSystem | null>;
16
16
  export declare const addDesignSystem: (credentials: Credentials, body: {