@fern-api/fern-api-dev 5.10.2-2-g771a16b4819 → 5.10.2

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