@fern-api/fern-api-dev 5.10.2 → 5.10.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.
- package/cli.cjs +48 -11
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -623221,7 +623221,7 @@ var AccessTokenPosthogManager = class {
|
|
|
623221
623221
|
properties: {
|
|
623222
623222
|
...event,
|
|
623223
623223
|
...event.properties,
|
|
623224
|
-
version: "5.10.
|
|
623224
|
+
version: "5.10.3",
|
|
623225
623225
|
usingAccessToken: true
|
|
623226
623226
|
}
|
|
623227
623227
|
});
|
|
@@ -623275,7 +623275,7 @@ var UserPosthogManager = class {
|
|
|
623275
623275
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
623276
623276
|
event: "CLI",
|
|
623277
623277
|
properties: {
|
|
623278
|
-
version: "5.10.
|
|
623278
|
+
version: "5.10.3",
|
|
623279
623279
|
...event,
|
|
623280
623280
|
...event.properties,
|
|
623281
623281
|
usingAccessToken: false,
|
|
@@ -805267,14 +805267,18 @@ function applyChildOverlays(children2, parent, overlay) {
|
|
|
805267
805267
|
});
|
|
805268
805268
|
}
|
|
805269
805269
|
if (parentType === "tabbed") {
|
|
805270
|
+
const orderedTabIds = collectOrderedTabIds(overlay);
|
|
805271
|
+
let tabIndex = 0;
|
|
805270
805272
|
return children2.map((child) => {
|
|
805271
805273
|
const childObj = child;
|
|
805272
805274
|
if (childObj == null || typeof childObj !== "object") {
|
|
805273
805275
|
return walkAndApply(child, overlay);
|
|
805274
805276
|
}
|
|
805275
805277
|
if (childObj["type"] === "tab") {
|
|
805278
|
+
const positionalTabId = orderedTabIds[tabIndex];
|
|
805279
|
+
tabIndex++;
|
|
805276
805280
|
const walked = walkAndApply(child, overlay);
|
|
805277
|
-
return applyTabOverlayToNode(walked, overlay);
|
|
805281
|
+
return applyTabOverlayToNode(walked, overlay, positionalTabId);
|
|
805278
805282
|
}
|
|
805279
805283
|
return walkAndApply(child, overlay);
|
|
805280
805284
|
});
|
|
@@ -805360,20 +805364,29 @@ function applyVersionOverlayToNode(node4, versionOverlay) {
|
|
|
805360
805364
|
}
|
|
805361
805365
|
return node4;
|
|
805362
805366
|
}
|
|
805363
|
-
function applyTabOverlayToNode(node4, overlay) {
|
|
805367
|
+
function applyTabOverlayToNode(node4, overlay, positionalTabId) {
|
|
805364
805368
|
const tabSlug = extractLastSlugSegment(node4["slug"]);
|
|
805369
|
+
let appliedTabId;
|
|
805365
805370
|
if (overlay.tabs != null && tabSlug != null) {
|
|
805366
805371
|
for (const [tabId, tabOverlay] of Object.entries(overlay.tabs)) {
|
|
805367
805372
|
const isMatch = tabId === tabSlug || tabOverlay.slug != null && tabOverlay.slug === tabSlug;
|
|
805368
805373
|
if (isMatch && tabOverlay.displayName != null) {
|
|
805369
805374
|
node4["title"] = tabOverlay.displayName;
|
|
805375
|
+
appliedTabId = tabId;
|
|
805370
805376
|
break;
|
|
805371
805377
|
}
|
|
805372
805378
|
}
|
|
805373
805379
|
}
|
|
805374
|
-
|
|
805380
|
+
if (appliedTabId == null && positionalTabId != null && overlay.tabs != null) {
|
|
805381
|
+
const tabOverlayEntry = overlay.tabs[positionalTabId];
|
|
805382
|
+
if (tabOverlayEntry?.displayName != null) {
|
|
805383
|
+
node4["title"] = tabOverlayEntry.displayName;
|
|
805384
|
+
appliedTabId = positionalTabId;
|
|
805385
|
+
}
|
|
805386
|
+
}
|
|
805387
|
+
const tabNavOverlay = findTabNavOverlay(tabSlug, overlay, positionalTabId);
|
|
805375
805388
|
if (tabNavOverlay != null) {
|
|
805376
|
-
if (overlay.tabs != null) {
|
|
805389
|
+
if (overlay.tabs != null && appliedTabId == null) {
|
|
805377
805390
|
const tabOverlayEntry = overlay.tabs[tabNavOverlay.tabId];
|
|
805378
805391
|
if (tabOverlayEntry?.displayName != null) {
|
|
805379
805392
|
node4["title"] = tabOverlayEntry.displayName;
|
|
@@ -805402,7 +805415,7 @@ function applyTabOverlayToNode(node4, overlay) {
|
|
|
805402
805415
|
}
|
|
805403
805416
|
return walkAndApply(node4, overlay);
|
|
805404
805417
|
}
|
|
805405
|
-
function findTabNavOverlay(tabSlug, overlay) {
|
|
805418
|
+
function findTabNavOverlay(tabSlug, overlay, positionalTabId) {
|
|
805406
805419
|
if (overlay.navigation == null) {
|
|
805407
805420
|
return void 0;
|
|
805408
805421
|
}
|
|
@@ -805420,8 +805433,27 @@ function findTabNavOverlay(tabSlug, overlay) {
|
|
|
805420
805433
|
}
|
|
805421
805434
|
}
|
|
805422
805435
|
}
|
|
805436
|
+
if (positionalTabId != null) {
|
|
805437
|
+
for (const navItem of overlay.navigation) {
|
|
805438
|
+
if (navItem.type === "tab" && navItem.tabId === positionalTabId) {
|
|
805439
|
+
return navItem;
|
|
805440
|
+
}
|
|
805441
|
+
}
|
|
805442
|
+
}
|
|
805423
805443
|
return void 0;
|
|
805424
805444
|
}
|
|
805445
|
+
function collectOrderedTabIds(overlay) {
|
|
805446
|
+
if (overlay.navigation != null) {
|
|
805447
|
+
const fromNavigation = overlay.navigation.filter((item) => item.type === "tab").map((item) => item.tabId);
|
|
805448
|
+
if (fromNavigation.length > 0) {
|
|
805449
|
+
return fromNavigation;
|
|
805450
|
+
}
|
|
805451
|
+
}
|
|
805452
|
+
if (overlay.tabs != null) {
|
|
805453
|
+
return Object.keys(overlay.tabs);
|
|
805454
|
+
}
|
|
805455
|
+
return [];
|
|
805456
|
+
}
|
|
805425
805457
|
function collectFlatNavigationOverlays(overlay) {
|
|
805426
805458
|
if (overlay.navigation == null) {
|
|
805427
805459
|
return [];
|
|
@@ -848194,7 +848226,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
848194
848226
|
var LOGS_FOLDER_NAME = "logs";
|
|
848195
848227
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
848196
848228
|
function getCliSource() {
|
|
848197
|
-
const version7 = "5.10.
|
|
848229
|
+
const version7 = "5.10.3";
|
|
848198
848230
|
return `cli@${version7}`;
|
|
848199
848231
|
}
|
|
848200
848232
|
var DebugLogger = class {
|
|
@@ -850043,9 +850075,13 @@ async function runAppPreviewServer({ initialProject, reloadProject, validateProj
|
|
|
850043
850075
|
let updatedRoot = applyTranslatedFrontmatterToNavTree(docsDefinition.config.root, localePages, context3);
|
|
850044
850076
|
const localeNavOverlay = translationNavigationOverlays?.[locale];
|
|
850045
850077
|
let translatedAnnouncement = docsDefinition.config.announcement;
|
|
850078
|
+
let translatedNavbarLinks = docsDefinition.config.navbarLinks;
|
|
850046
850079
|
if (localeNavOverlay != null) {
|
|
850047
850080
|
updatedRoot = applyTranslatedNavigationOverlays(updatedRoot, localeNavOverlay);
|
|
850048
850081
|
translatedAnnouncement = getTranslatedAnnouncement(localeNavOverlay) ?? translatedAnnouncement;
|
|
850082
|
+
if (localeNavOverlay.navbarLinks != null) {
|
|
850083
|
+
translatedNavbarLinks = localeNavOverlay.navbarLinks;
|
|
850084
|
+
}
|
|
850049
850085
|
}
|
|
850050
850086
|
const translatedDefinition = {
|
|
850051
850087
|
...docsDefinition,
|
|
@@ -850053,7 +850089,8 @@ async function runAppPreviewServer({ initialProject, reloadProject, validateProj
|
|
|
850053
850089
|
config: {
|
|
850054
850090
|
...docsDefinition.config,
|
|
850055
850091
|
root: updatedRoot,
|
|
850056
|
-
announcement: translatedAnnouncement
|
|
850092
|
+
announcement: translatedAnnouncement,
|
|
850093
|
+
navbarLinks: translatedNavbarLinks
|
|
850057
850094
|
}
|
|
850058
850095
|
};
|
|
850059
850096
|
translations.set(locale, translatedDefinition);
|
|
@@ -860851,7 +860888,7 @@ var LegacyDocsPublisher = class {
|
|
|
860851
860888
|
previewId,
|
|
860852
860889
|
disableTemplates: void 0,
|
|
860853
860890
|
skipUpload,
|
|
860854
|
-
cliVersion: "5.10.
|
|
860891
|
+
cliVersion: "5.10.3",
|
|
860855
860892
|
loginCommand: "fern auth login"
|
|
860856
860893
|
});
|
|
860857
860894
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -935412,7 +935449,7 @@ var CliContext = class _CliContext {
|
|
|
935412
935449
|
if (false) {
|
|
935413
935450
|
this.logger.error("CLI_VERSION is not defined");
|
|
935414
935451
|
}
|
|
935415
|
-
return "5.10.
|
|
935452
|
+
return "5.10.3";
|
|
935416
935453
|
}
|
|
935417
935454
|
getCliName() {
|
|
935418
935455
|
if (false) {
|
package/package.json
CHANGED