@fern-api/fdr-sdk 1.2.44-345d4ef0ea → 1.2.44-72dfb6b83c
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/js/converters/index.js +9 -2
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +9 -2
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +9 -2
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +9 -2
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +9 -2
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +9 -2
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +25 -3
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +25 -3
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.d.ts +2 -0
- package/dist/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.d.ts.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.js +308 -0
- package/dist/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.js.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.pointsTo.test.js +122 -10
- package/dist/navigation/__test__/ledger-root-builder.pointsTo.test.js.map +1 -1
- package/dist/navigation/__test__/ledger-root-builder.rootChildOrder.test.js +5 -5
- package/dist/navigation/__test__/ledger-root-builder.rootChildOrder.test.js.map +1 -1
- package/dist/navigation/__test__/ledger-root-builder.sidebarDepth.test.js +194 -0
- package/dist/navigation/__test__/ledger-root-builder.sidebarDepth.test.js.map +1 -1
- package/dist/navigation/__test__/ledger-root-builder.skipSlugSiblingSection.test.js +86 -0
- package/dist/navigation/__test__/ledger-root-builder.skipSlugSiblingSection.test.js.map +1 -1
- package/dist/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/navigation/ledger-root-builder.js +45 -5
- package/dist/navigation/ledger-root-builder.js.map +1 -1
- package/dist/navigation/utils/updatePointsTo.d.ts.map +1 -1
- package/dist/navigation/utils/updatePointsTo.js +12 -4
- package/dist/navigation/utils/updatePointsTo.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.contentfulRedirectRepro.test.d.ts.map +1 -0
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/types/navigation/utils/updatePointsTo.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/index.mjs
CHANGED
|
@@ -19762,8 +19762,15 @@ function mutableUpdatePointsTo(input) {
|
|
|
19762
19762
|
const slugMap = collector.getSlugMapWithParents();
|
|
19763
19763
|
const updateNode = (node) => {
|
|
19764
19764
|
if (navigation_exports.hasPointsTo(node)) {
|
|
19765
|
-
if (node.pointsTo != null
|
|
19766
|
-
|
|
19765
|
+
if (node.pointsTo != null) {
|
|
19766
|
+
const targetNode = slugMap.get(node.pointsTo)?.node;
|
|
19767
|
+
if (node.type === "tab" || node.type !== "root" && targetNode != null) {
|
|
19768
|
+
return;
|
|
19769
|
+
}
|
|
19770
|
+
if (node.type === "root" && targetNode != null) {
|
|
19771
|
+
node.pointsTo = targetNode.canonicalSlug ?? (node.slug === targetNode.slug ? void 0 : targetNode.slug);
|
|
19772
|
+
return;
|
|
19773
|
+
}
|
|
19767
19774
|
}
|
|
19768
19775
|
const pointsTo = followRedirect2(node);
|
|
19769
19776
|
if (pointsTo != null) {
|