@thallylabs/migrate 0.2.9 → 0.2.10
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/dist/index.d.ts +24 -2
- package/dist/index.js +580 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -47,12 +47,13 @@ interface MigrationNavbarConfig {
|
|
|
47
47
|
href: string;
|
|
48
48
|
} | null;
|
|
49
49
|
/** Local public assets used until an owner uploads a brand replacement. */
|
|
50
|
+
/** Explicit null requests a text-only brand when the source has no logo. */
|
|
50
51
|
logo?: {
|
|
51
52
|
light: string;
|
|
52
53
|
dark?: string;
|
|
53
54
|
showTitle?: boolean;
|
|
54
55
|
rightText?: string;
|
|
55
|
-
};
|
|
56
|
+
} | null;
|
|
56
57
|
}
|
|
57
58
|
interface MigrationFooterConfig {
|
|
58
59
|
socials?: Record<string, string>;
|
|
@@ -76,6 +77,15 @@ interface MigrationDocsConfig {
|
|
|
76
77
|
display?: 'tabs' | 'dropdown';
|
|
77
78
|
};
|
|
78
79
|
theme?: 'default' | 'maple' | 'sharp' | 'minimal';
|
|
80
|
+
appearance?: {
|
|
81
|
+
default?: 'system' | 'light' | 'dark';
|
|
82
|
+
showToggle?: boolean;
|
|
83
|
+
};
|
|
84
|
+
background?: {
|
|
85
|
+
image?: string;
|
|
86
|
+
imageDark?: string;
|
|
87
|
+
decoration?: 'none' | 'grid' | 'gradient';
|
|
88
|
+
};
|
|
79
89
|
/** Icon set for content `icon` names; Mintlify's `icons.library` carries through. */
|
|
80
90
|
icons?: {
|
|
81
91
|
library?: 'lucide' | 'fontawesome' | 'tabler';
|
|
@@ -166,6 +176,11 @@ interface MigrationBundle {
|
|
|
166
176
|
platform: MigrationPlatform;
|
|
167
177
|
pages: Array<MigrationPage>;
|
|
168
178
|
assets: Array<MigrationAsset>;
|
|
179
|
+
/** Repository-configured remote specs awaiting a bounded network fetch by the host. */
|
|
180
|
+
remoteApiSpecs?: Array<{
|
|
181
|
+
url: string;
|
|
182
|
+
tabLabel?: string;
|
|
183
|
+
}>;
|
|
169
184
|
/** Customer-owned component source and registry; paths are repository-relative. */
|
|
170
185
|
componentFiles?: Array<RenderedMigrationFile>;
|
|
171
186
|
docsConfig: MigrationDocsConfig;
|
|
@@ -431,4 +446,11 @@ declare const defaultMigrationFetcher: MigrationFetcher;
|
|
|
431
446
|
/** Crawl one public docs origin into a canonical, caller-independent bundle. */
|
|
432
447
|
declare function migrateUrl(options: UrlMigrationOptions): Promise<MigrationBundle>;
|
|
433
448
|
|
|
434
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Attach safely downloaded specs to the exact authored API tabs. Source links
|
|
451
|
+
* to Mintlify's tag/summary routes receive redirects only when an operation
|
|
452
|
+
* can be identified uniquely; guessing would silently route to wrong APIs.
|
|
453
|
+
*/
|
|
454
|
+
declare function hydrateRemoteApiSpecs(bundle: MigrationBundle, fetcher?: MigrationFetcher): Promise<MigrationBundle>;
|
|
455
|
+
|
|
456
|
+
export { type GitHubRepositorySource, type MigrationAsset, type MigrationBundle, type MigrationDocsConfig, type MigrationFetchRequest, type MigrationFetchResponse, type MigrationFetcher, type MigrationNavigationGroup, type MigrationNavigationTab, type MigrationPage, type MigrationPlatform, type MigrationWarning, type RenderedMigrationFile, type RepositoryMigrationOptions, type UrlMigrationOptions, addMintlifyDirectoryRedirects, buildNavigationFromPages, cloneGitHubRepository, defaultMigrationFetcher, detectRepositoryDocsDir, detectRepositoryPlatform, gitmodulePaths, hydrateRemoteApiSpecs, mergeMigrationConfig, migrateRepository, migrateUrl, normalizeMdx, parseGitHubRepositoryUrl, parseMarkdownPage, projectFernNavigation, projectMintlifyNavigation, pruneMissingNavigationPages, readFernConfig, readMintlifyConfig, renderMigrationFiles, validateMigrationUrl };
|