@fern-api/fdr-sdk 1.2.39-e182f82244 → 1.2.39-f82f6883d8

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 (28) hide show
  1. package/dist/js/converters/index.js +1 -6
  2. package/dist/js/converters/index.js.map +1 -1
  3. package/dist/js/converters/index.mjs +1 -6
  4. package/dist/js/converters/index.mjs.map +1 -1
  5. package/dist/js/index.js +1 -6
  6. package/dist/js/index.js.map +1 -1
  7. package/dist/js/index.mjs +1 -6
  8. package/dist/js/index.mjs.map +1 -1
  9. package/dist/js/navigation/index.js +1 -6
  10. package/dist/js/navigation/index.js.map +1 -1
  11. package/dist/js/navigation/index.mjs +1 -6
  12. package/dist/js/navigation/index.mjs.map +1 -1
  13. package/dist/js/navigation/ledger-root-builder.js +125 -16
  14. package/dist/js/navigation/ledger-root-builder.js.map +1 -1
  15. package/dist/js/navigation/ledger-root-builder.mjs +125 -16
  16. package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts +2 -0
  19. package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts.map +1 -0
  20. package/dist/types/navigation/__test__/ledger-root-builder.metadataPreservation.test.d.ts +2 -0
  21. package/dist/types/navigation/__test__/ledger-root-builder.metadataPreservation.test.d.ts.map +1 -0
  22. package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts +2 -0
  23. package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts.map +1 -0
  24. package/dist/types/navigation/ledger-root-builder.d.ts +10 -0
  25. package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
  26. package/dist/types/navigation/utils/findNode.d.ts.map +1 -1
  27. package/dist/types/navigation/utils/followRedirect.d.ts.map +1 -1
  28. package/package.json +1 -1
@@ -15761,12 +15761,6 @@ function findNode(root, slug) {
15761
15761
  }
15762
15762
  }
15763
15763
  }
15764
- if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
15765
- const landingPageSlug = root.child.landingPage.slug;
15766
- if (slug === landingPageSlug) {
15767
- return { type: "redirect", redirect: landingPageSlug };
15768
- }
15769
- }
15770
15764
  return {
15771
15765
  type: "notFound",
15772
15766
  // External product links don't have pointsTo, only internal products and versions do
@@ -15983,6 +15977,7 @@ function followRedirect2(nodeToFollow) {
15983
15977
  * Versioned and ProductGroup nodes are special in that they have a default child.
15984
15978
  */
15985
15979
  case "productgroup":
15980
+ return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
15986
15981
  case "versioned":
15987
15982
  return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
15988
15983
  case "apiReference":