@mintlify/common 1.0.1306 → 1.0.1307

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 (62) hide show
  1. package/dist/apiStaticExportBasePaths.d.ts +1 -1
  2. package/dist/asyncapi/parser/getExamplesData.js +4 -3
  3. package/dist/asyncapi/parser/getMessagesData.js +6 -5
  4. package/dist/asyncapi/parser/getOperationsData.js +4 -3
  5. package/dist/colors.js +9 -8
  6. package/dist/css/tailwind.d.ts +1 -1
  7. package/dist/css/tailwindInternals.d.ts +1 -1
  8. package/dist/entitlements/index.d.ts +1 -1
  9. package/dist/getDisplayDomain.js +2 -1
  10. package/dist/getFileCategory.d.ts +2 -2
  11. package/dist/graphql/resolveGraphqlOperation.d.ts +1 -1
  12. package/dist/isAbsoluteUrl.d.ts +1 -1
  13. package/dist/mdx/currencyMath.js +2 -1
  14. package/dist/mdx/getCodeStyling.d.ts +1 -1
  15. package/dist/mdx/getMDXOptions.d.ts +2 -2
  16. package/dist/mdx/islands/extractPackageIslands.js +6 -5
  17. package/dist/mdx/islands/island-bindings.js +4 -3
  18. package/dist/mdx/islands/island-module-builder.js +12 -13
  19. package/dist/mdx/islands/package-page-url.js +4 -2
  20. package/dist/mdx/islands/package-sources.js +5 -3
  21. package/dist/mdx/islands/packageImports.js +4 -3
  22. package/dist/mdx/islands/remarkPackageIslands.js +10 -8
  23. package/dist/mdx/lib/mdx-utils.d.ts +1 -1
  24. package/dist/mdx/page-style.js +2 -1
  25. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/index.js +4 -3
  26. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.d.ts +4 -4
  27. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.js +8 -6
  28. package/dist/mdx/plugins/rehype/rehypeDynamicTailwindCss.js +4 -3
  29. package/dist/mdx/plugins/remark/pureTemplateComponents.js +6 -8
  30. package/dist/mdx/plugins/remark/remarkComponentIds.js +6 -8
  31. package/dist/mdx/plugins/remark/remarkExtractTableOfContents.js +11 -9
  32. package/dist/mdx/plugins/remark/remarkMdxExpandExpressions.js +10 -7
  33. package/dist/mdx/plugins/remark/remarkMdxRemoveJs.js +7 -8
  34. package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/index.d.ts +1 -1
  35. package/dist/mdx/plugins/remark/remarkPrompt.js +1 -1
  36. package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.d.ts +1 -1
  37. package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.js +10 -8
  38. package/dist/mdx/plugins/remark/staticEvaluator.js +4 -2
  39. package/dist/mdx/plugins/remark/unfoldComponentsForMarkdown.js +2 -1
  40. package/dist/mdx/preprocessCustomHeadingIds.js +5 -4
  41. package/dist/mdx/server-only/getMdx.d.ts +1 -1
  42. package/dist/mdx/server-only/getMdx.js +2 -1
  43. package/dist/mdx/snippets/constants.d.ts +1 -1
  44. package/dist/mdx/snippets/isBareSpecifier.d.ts +1 -1
  45. package/dist/mdx/snippets/resolveAllImports.js +21 -29
  46. package/dist/mdx/snippets/resolveImport/snippetDeclarations.js +4 -7
  47. package/dist/mdx/utils.d.ts +1 -1
  48. package/dist/navigation/filterDivisions.js +1 -2
  49. package/dist/navigation/scopeNavToPath.d.ts +1 -1
  50. package/dist/navigation/scopeNavToPath.js +4 -4
  51. package/dist/navigation/updateFirstHrefInDivision.d.ts +1 -1
  52. package/dist/openapi/additionalOperations.js +6 -5
  53. package/dist/openapi/encodings.js +2 -1
  54. package/dist/openapi/generateOpenApiPages.js +17 -16
  55. package/dist/openapi/getTagDisplayName.d.ts +1 -1
  56. package/dist/openapi/overlay/errors.d.ts +1 -1
  57. package/dist/openapi/overlay/overlayRegistry.d.ts +1 -1
  58. package/dist/openapi/tagHierarchy.js +1 -1
  59. package/dist/seo/resolveSeoMetatags.js +4 -3
  60. package/dist/tsconfig.build.tsbuildinfo +1 -1
  61. package/dist/types/AnalyticsEvent.d.ts +2 -2
  62. package/package.json +3 -3
@@ -264,7 +264,8 @@ function scanContent(tree, candidates, constantNames) {
264
264
  const rejected = new Set();
265
265
  const attributeStubNames = new Set();
266
266
  visit(tree, (node) => {
267
- var _a, _b, _c;
267
+ var _a, _b;
268
+ var _c;
268
269
  if (isMdxJsEsm(node))
269
270
  return;
270
271
  if ((node.type === 'mdxJsxFlowElement' || node.type === 'mdxJsxTextElement') &&
@@ -275,13 +276,10 @@ function scanContent(tree, candidates, constantNames) {
275
276
  rejected.add(memberRoot);
276
277
  }
277
278
  if (candidates.has(node.name) && 'attributes' in node) {
278
- const hasOnlyLiteralAttributes = node.attributes.every((attribute) => {
279
- var _a;
280
- return attribute.type === 'mdxJsxAttribute' &&
281
- (attribute.value == null ||
282
- typeof attribute.value === 'string' ||
283
- isConstantReference((_a = attribute.value.data) === null || _a === void 0 ? void 0 : _a.estree, constantNames));
284
- });
279
+ const hasOnlyLiteralAttributes = node.attributes.every((attribute) => { var _a; return attribute.type === 'mdxJsxAttribute' &&
280
+ (attribute.value == null ||
281
+ typeof attribute.value === 'string' ||
282
+ isConstantReference((_a = attribute.value.data) === null || _a === void 0 ? void 0 : _a.estree, constantNames)); });
285
283
  if (!hasOnlyLiteralAttributes)
286
284
  rejected.add(node.name);
287
285
  }
@@ -46,7 +46,8 @@ export const remarkComponentIds = (pageMetadata) => (tree) => {
46
46
  usedTabIds.add(explicitId);
47
47
  });
48
48
  const precomputeTabSlugs = (node) => {
49
- var _a, _b, _c, _d;
49
+ var _a, _b, _c;
50
+ var _d;
50
51
  if (node.type === 'mdxJsxFlowElement' && node.name === 'Tab') {
51
52
  // Respect an explicit `id` prop rather than overwriting it with the
52
53
  // slugified title (same as Accordion/View below). This keeps the URL
@@ -73,8 +74,8 @@ export const remarkComponentIds = (pageMetadata) => (tree) => {
73
74
  }
74
75
  }
75
76
  else if (node.type === 'mdxJsxFlowElement' &&
76
- (node.name === 'Heading' || ['h1', 'h2', 'h3', 'h4'].includes((_c = node.name) !== null && _c !== void 0 ? _c : ''))) {
77
- const id = (_d = node.attributes.find((attr) => 'name' in attr && attr.name === 'id')) === null || _d === void 0 ? void 0 : _d.value;
77
+ (node.name === 'Heading' || ['h1', 'h2', 'h3', 'h4'].includes((_d = node.name) !== null && _d !== void 0 ? _d : ''))) {
78
+ const id = (_c = node.attributes.find((attr) => 'name' in attr && attr.name === 'id')) === null || _c === void 0 ? void 0 : _c.value;
78
79
  if (id && typeof id === 'string')
79
80
  headingSlugs.set(node, id);
80
81
  }
@@ -123,11 +124,8 @@ export const remarkComponentIds = (pageMetadata) => (tree) => {
123
124
  }
124
125
  }
125
126
  };
126
- const isHeadingNode = (node) => {
127
- var _a;
128
- return node.type === 'mdxJsxFlowElement' &&
129
- (node.name === 'Heading' || ['h1', 'h2', 'h3', 'h4'].includes((_a = node.name) !== null && _a !== void 0 ? _a : ''));
130
- };
127
+ const isHeadingNode = (node) => { var _a; return node.type === 'mdxJsxFlowElement' &&
128
+ (node.name === 'Heading' || ['h1', 'h2', 'h3', 'h4'].includes((_a = node.name) !== null && _a !== void 0 ? _a : '')); };
131
129
  const collectDirectChildIds = (node, type) => {
132
130
  const childIds = [];
133
131
  const isMatch = node.type === 'mdxJsxFlowElement' &&
@@ -57,7 +57,8 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
57
57
  const excludedNodes = new Set();
58
58
  const isAvoidedPageMode = AVOIDED_PAGE_MODES.includes((_a = pageMetadata === null || pageMetadata === void 0 ? void 0 : pageMetadata.mode) !== null && _a !== void 0 ? _a : '');
59
59
  visit(tree, (node) => {
60
- var _a, _b;
60
+ var _a;
61
+ var _b;
61
62
  if (node.type === 'mdxJsxFlowElement' && node.name === MINT_ISLAND_COMPONENT) {
62
63
  for (const heading of (_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.islandHeadings) !== null && _b !== void 0 ? _b : [])
63
64
  slugs.reserve(heading.slug);
@@ -172,7 +173,8 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
172
173
  arrToPushInto.push(entry);
173
174
  };
174
175
  visit(tree, (node) => {
175
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
176
+ var _a, _b, _c;
177
+ var _d, _e, _f, _g, _h, _j;
176
178
  if (excludedNodes.has(node))
177
179
  return;
178
180
  const currentTabId = tabContentMap.get(node);
@@ -194,7 +196,7 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
194
196
  register(fragmentHeadings);
195
197
  for (const heading of fragmentHeadings) {
196
198
  pushEntry(Object.assign(Object.assign({}, heading), { tabId: currentTabId, viewId: currentViewId, variationIds: currentVariationIds, authRules: currentAuthRules || heading.authRules
197
- ? [...(currentAuthRules !== null && currentAuthRules !== void 0 ? currentAuthRules : []), ...((_b = heading.authRules) !== null && _b !== void 0 ? _b : [])]
199
+ ? [...(currentAuthRules !== null && currentAuthRules !== void 0 ? currentAuthRules : []), ...((_d = heading.authRules) !== null && _d !== void 0 ? _d : [])]
198
200
  : undefined }), heading.depth);
199
201
  }
200
202
  return;
@@ -202,7 +204,7 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
202
204
  if (node.type === 'mdxJsxFlowElement' && node.name === MINT_ISLAND_COMPONENT) {
203
205
  if (isAvoidedPageMode)
204
206
  return;
205
- for (const { title, slug, depth } of (_d = (_c = node.data) === null || _c === void 0 ? void 0 : _c.islandHeadings) !== null && _d !== void 0 ? _d : []) {
207
+ for (const { title, slug, depth } of (_e = (_b = node.data) === null || _b === void 0 ? void 0 : _b.islandHeadings) !== null && _e !== void 0 ? _e : []) {
206
208
  pushEntry({
207
209
  title,
208
210
  slug,
@@ -217,13 +219,13 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
217
219
  return;
218
220
  }
219
221
  const isValidHeading = node.type === 'heading' && HEADING_LEVELS.includes(node.depth);
220
- const isValidMdxHeading = node.type === 'mdxJsxFlowElement' && HEADING_NAMES.includes((_e = node.name) !== null && _e !== void 0 ? _e : '');
222
+ const isValidMdxHeading = node.type === 'mdxJsxFlowElement' && HEADING_NAMES.includes((_f = node.name) !== null && _f !== void 0 ? _f : '');
221
223
  const isTransformedHeading = node.type === 'mdxJsxFlowElement' && node.name === 'Heading';
222
224
  const isValidUpdate = node.type === 'mdxJsxFlowElement' &&
223
225
  node.name === 'Update' &&
224
226
  node.attributes.some((attr) => 'name' in attr && attr.name === 'label');
225
227
  const stepTitleSize = node.type === 'mdxJsxFlowElement' && node.name === 'Step'
226
- ? ((_f = getStringAttribute(node.attributes, 'titleSize')) !== null && _f !== void 0 ? _f : inheritedStepTitleSizeMap.get(node))
228
+ ? ((_g = getStringAttribute(node.attributes, 'titleSize')) !== null && _g !== void 0 ? _g : inheritedStepTitleSizeMap.get(node))
227
229
  : undefined;
228
230
  const hasNoAnchor = node.type === 'mdxJsxFlowElement' &&
229
231
  node.attributes.some((attr) => 'name' in attr &&
@@ -232,7 +234,7 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
232
234
  attr.value === 'true' ||
233
235
  (typeof attr.value === 'object' && attr.value.value === 'true')));
234
236
  const stepTitle = node.type === 'mdxJsxFlowElement' && node.name === 'Step'
235
- ? getTitleMarkdownText(node, (_g = getStringAttribute(node.attributes, 'title')) !== null && _g !== void 0 ? _g : '')
237
+ ? getTitleMarkdownText(node, (_h = getStringAttribute(node.attributes, 'title')) !== null && _h !== void 0 ? _h : '')
236
238
  : undefined;
237
239
  const isValidStep = node.type === 'mdxJsxFlowElement' &&
238
240
  node.name === 'Step' &&
@@ -258,7 +260,7 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
258
260
  }
259
261
  else if ('name' in node && node.name === 'Step') {
260
262
  const titleSizeToLevel = { h2: 2, h3: 3, h4: 4 };
261
- level = (_h = titleSizeToLevel[stepTitleSize !== null && stepTitleSize !== void 0 ? stepTitleSize : '']) !== null && _h !== void 0 ? _h : 3;
263
+ level = (_j = titleSizeToLevel[stepTitleSize !== null && stepTitleSize !== void 0 ? stepTitleSize : '']) !== null && _j !== void 0 ? _j : 3;
262
264
  // @ts-expect-error we're assigning to depth despite the node not containing depth in the type
263
265
  node.depth = level;
264
266
  }
@@ -271,7 +273,7 @@ export const remarkExtractTableOfContents = (mdxExtracts, pageMetadata) => {
271
273
  level = levelAttr.value;
272
274
  }
273
275
  }
274
- else if ('name' in node && ((_j = node.name) === null || _j === void 0 ? void 0 : _j[1])) {
276
+ else if ('name' in node && ((_c = node.name) === null || _c === void 0 ? void 0 : _c[1])) {
275
277
  const num = Number(node.name[1]);
276
278
  level = !isNaN(num) ? num : undefined;
277
279
  if (level !== undefined) {
@@ -135,7 +135,8 @@ export const remarkMdxExpandExpressions = (options) => (tree) => __awaiter(void
135
135
  }
136
136
  });
137
137
  const expandExpression = (node_1, options_1, _a) => __awaiter(void 0, [node_1, options_1, _a], void 0, function* (node, options, { knownComponents, knownConstants, depth, budget }) {
138
- var _b, _c, _d, _e;
138
+ var _b, _c;
139
+ var _d, _e;
139
140
  if (!node.value.includes('<MDX'))
140
141
  return;
141
142
  let expression;
@@ -179,10 +180,10 @@ const expandExpression = (node_1, options_1, _a) => __awaiter(void 0, [node_1, o
179
180
  });
180
181
  const processor = unified()
181
182
  .use(remarkMarkAndUnravel)
182
- .use((_c = (_b = options.extraPlugins) === null || _b === void 0 ? void 0 : _b.remarkPlugins) !== null && _c !== void 0 ? _c : [])
183
+ .use((_d = (_b = options.extraPlugins) === null || _b === void 0 ? void 0 : _b.remarkPlugins) !== null && _d !== void 0 ? _d : [])
183
184
  .use(remarkPlugins)
184
185
  .use(remarkRehype, REMARK_REHYPE_OPTIONS)
185
- .use((_e = (_d = options.extraPlugins) === null || _d === void 0 ? void 0 : _d.rehypePlugins) !== null && _e !== void 0 ? _e : [])
186
+ .use((_e = (_c = options.extraPlugins) === null || _c === void 0 ? void 0 : _c.rehypePlugins) !== null && _e !== void 0 ? _e : [])
186
187
  .use(rehypePlugins);
187
188
  const hast = (yield processor.run(getAST(raw)));
188
189
  if (node.type === 'mdxTextExpression')
@@ -263,11 +264,12 @@ export const getExportedConstants = (tree) => {
263
264
  const constants = {};
264
265
  const budget = { remaining: MAX_ANALYSIS_NODES };
265
266
  visit(tree, 'mdxjsEsm', (node) => {
266
- var _a, _b, _c, _d;
267
- for (const statement of (_c = (_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.estree) === null || _b === void 0 ? void 0 : _b.body) !== null && _c !== void 0 ? _c : []) {
267
+ var _a, _b, _c;
268
+ var _d;
269
+ for (const statement of (_d = (_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.estree) === null || _b === void 0 ? void 0 : _b.body) !== null && _d !== void 0 ? _d : []) {
268
270
  if (statement.type !== 'ExportNamedDeclaration')
269
271
  continue;
270
- if (((_d = statement.declaration) === null || _d === void 0 ? void 0 : _d.type) !== 'VariableDeclaration')
272
+ if (((_c = statement.declaration) === null || _c === void 0 ? void 0 : _c.type) !== 'VariableDeclaration')
271
273
  continue;
272
274
  if (statement.declaration.kind !== 'const')
273
275
  continue;
@@ -515,7 +517,8 @@ const markReachability = (expression, constants) => {
515
517
  return reachability;
516
518
  };
517
519
  export const dedent = (text) => {
518
- var _a, _b;
520
+ var _a;
521
+ var _b;
519
522
  const lines = text.split('\n');
520
523
  let indent = Infinity;
521
524
  for (const line of lines) {
@@ -576,7 +576,8 @@ function isBlockCommentsAndWhitespace(value) {
576
576
  return true;
577
577
  }
578
578
  function isCommentOnlyExpression(node) {
579
- var _a, _b, _c;
579
+ var _a;
580
+ var _b, _c;
580
581
  const estree = (_a = node.data) === null || _a === void 0 ? void 0 : _a.estree;
581
582
  return (estree != null &&
582
583
  estree.body.length === 0 &&
@@ -716,18 +717,16 @@ function sanitizer(edit) {
716
717
  data: { estree: program },
717
718
  });
718
719
  }
719
- edit.remove(tree, (node) => {
720
- var _a, _b;
721
- return isMdxJsEsm(node) &&
722
- !((_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.estree) === null || _b === void 0 ? void 0 : _b.body.some((statement) => keptStatements.has(statement)));
723
- });
720
+ edit.remove(tree, (node) => { var _a, _b; return isMdxJsEsm(node) &&
721
+ !((_b = (_a = node.data) === null || _a === void 0 ? void 0 : _a.estree) === null || _b === void 0 ? void 0 : _b.body.some((statement) => keptStatements.has(statement))); });
724
722
  // Sanitize JSX attributes. Any bare identifier that survives is added to stubbedNamesMap
725
723
  // so it gets a stub even if its import was already stripped by a prior plugin.
726
724
  visit(tree, (node) => {
727
725
  if (!('attributes' in node))
728
726
  return CONTINUE;
729
727
  const newAttributes = node.attributes.map((attr) => {
730
- var _a, _b, _c, _d, _e, _f, _g, _h;
728
+ var _a, _b, _c, _d, _e, _f;
729
+ var _g, _h;
731
730
  if (attr.type === 'mdxJsxAttribute' && !(attr.value instanceof Object))
732
731
  return attr;
733
732
  if (typeof attr.value === 'string' && isStringSafe(attr.value))
@@ -758,7 +757,7 @@ function sanitizer(edit) {
758
757
  return undefined;
759
758
  }
760
759
  if (Object.keys(DEFAULT_PROP_EXPRESSIONS).includes(attr.name)) {
761
- edit.rewriteAttribute(attr.value, (_f = (_e = DEFAULT_PROP_EXPRESSIONS[attr.name]) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : '{}', structuredClone((_h = (_g = DEFAULT_PROP_EXPRESSIONS[attr.name]) === null || _g === void 0 ? void 0 : _g.estree) !== null && _h !== void 0 ? _h : objectEstree));
760
+ edit.rewriteAttribute(attr.value, (_g = (_e = DEFAULT_PROP_EXPRESSIONS[attr.name]) === null || _e === void 0 ? void 0 : _e.value) !== null && _g !== void 0 ? _g : '{}', structuredClone((_h = (_f = DEFAULT_PROP_EXPRESSIONS[attr.name]) === null || _f === void 0 ? void 0 : _f.estree) !== null && _h !== void 0 ? _h : objectEstree));
762
761
  return attr;
763
762
  }
764
763
  }
@@ -1,4 +1,4 @@
1
1
  import type { Root } from 'mdast';
2
2
  export declare const remarkMdxRemoveUnknownJsx: ({ allowlist }?: {
3
3
  allowlist?: string[];
4
- }) => (tree: Root) => Root | import("mdast-util-mdx-jsx").MdxJsxFlowElement | import("mdast-util-mdx-jsx").MdxJsxTextElement | import("mdast").Link | import("mdast").Delete | import("mdast").Code | import("mdast").Text | import("mdast").Heading | import("mdast").Blockquote | import("mdast").Break | import("mdast").Definition | import("mdast").Emphasis | import("mdast").FootnoteDefinition | import("mdast").FootnoteReference | import("mdast").Html | import("mdast").Image | import("mdast").ImageReference | import("mdast").InlineCode | import("mdast").LinkReference | import("mdast").List | import("mdast").ListItem | import("mdast").Paragraph | import("mdast").Strong | import("mdast").Table | import("mdast").TableCell | import("mdast").TableRow | import("mdast").ThematicBreak | import("mdast").Yaml | import("mdast-util-math").InlineMath | import("mdast-util-math").Math | import("mdast-util-mdx-expression").MdxTextExpression | import("mdast-util-mdx-expression").MdxFlowExpression | import("mdast-util-mdxjs-esm").MdxjsEsm;
4
+ }) => (tree: Root) => import("mdast").Blockquote | import("mdast").Break | import("mdast").Code | import("mdast").Definition | import("mdast").Delete | import("mdast").Emphasis | import("mdast").FootnoteDefinition | import("mdast").FootnoteReference | import("mdast").Heading | import("mdast").Html | import("mdast").Image | import("mdast").ImageReference | import("mdast").InlineCode | import("mdast-util-math").InlineMath | import("mdast").Link | import("mdast").LinkReference | import("mdast").List | import("mdast").ListItem | import("mdast-util-math").Math | import("mdast-util-mdx-expression").MdxFlowExpression | import("mdast-util-mdx-jsx").MdxJsxFlowElement | import("mdast-util-mdx-jsx").MdxJsxTextElement | import("mdast-util-mdx-expression").MdxTextExpression | import("mdast-util-mdxjs-esm").MdxjsEsm | import("mdast").Paragraph | Root | import("mdast").Strong | import("mdast").Table | import("mdast").TableCell | import("mdast").TableRow | import("mdast").Text | import("mdast").ThematicBreak | import("mdast").Yaml;
@@ -4,7 +4,7 @@ const dedent = (text) => {
4
4
  const lines = text.split('\n');
5
5
  const indents = lines
6
6
  .filter((line) => line.trim().length > 0)
7
- .map((line) => { var _a, _b, _c; return (_c = (_b = (_a = line.match(/^(\s*)/)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0; });
7
+ .map((line) => { var _a, _b; var _c; return (_c = (_b = (_a = line.match(/^(\s*)/)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0; });
8
8
  const minIndent = indents.length > 0 ? Math.min(...indents) : 0;
9
9
  if (minIndent === 0)
10
10
  return text;
@@ -7,7 +7,7 @@ export declare function isVisibilityElement(node: {
7
7
  type: string;
8
8
  name?: string | null;
9
9
  }): node is MdxJsxElement;
10
- export declare const VISIBILITY_AUDIENCES: readonly ["humans", "agents", "signed-in", "signed-out"];
10
+ export declare const VISIBILITY_AUDIENCES: readonly ['humans', 'agents', 'signed-in', 'signed-out'];
11
11
  export type VisibilityAudience = (typeof VISIBILITY_AUDIENCES)[number];
12
12
  export declare const VISIBILITY_FOR_EXPECTED = "\"humans\", \"agents\", \"signed-in\", \"signed-out\", or { groups: [...] }";
13
13
  export type VisibilityResolution = {
@@ -34,15 +34,16 @@ function expressionOf(value) {
34
34
  return (statement === null || statement === void 0 ? void 0 : statement.type) === 'ExpressionStatement' ? statement.expression : undefined;
35
35
  }
36
36
  function foldString(node) {
37
- var _a, _b, _c;
37
+ var _a, _b;
38
+ var _c;
38
39
  switch (node === null || node === void 0 ? void 0 : node.type) {
39
40
  case 'Literal':
40
41
  return typeof node.value === 'string' ? node.value : undefined;
41
42
  case 'TemplateLiteral': {
42
- let out = (_b = (_a = node.quasis[0]) === null || _a === void 0 ? void 0 : _a.value.cooked) !== null && _b !== void 0 ? _b : undefined;
43
+ let out = (_c = (_a = node.quasis[0]) === null || _a === void 0 ? void 0 : _a.value.cooked) !== null && _c !== void 0 ? _c : undefined;
43
44
  for (const [index, expression] of node.expressions.entries()) {
44
45
  const folded = foldString(expression);
45
- const next = (_c = node.quasis[index + 1]) === null || _c === void 0 ? void 0 : _c.value.cooked;
46
+ const next = (_b = node.quasis[index + 1]) === null || _b === void 0 ? void 0 : _b.value.cooked;
46
47
  if (out === undefined || folded === undefined || next == null)
47
48
  return undefined;
48
49
  out += folded + next;
@@ -124,7 +125,8 @@ function mayOverrideFor(attr) {
124
125
  * object it was read from may have been changed by a write the evaluator cannot see.
125
126
  */
126
127
  export function resolveVisibilityFor(node, scope = new Map(), literalScope) {
127
- var _a, _b, _c;
128
+ var _a, _b;
129
+ var _c;
128
130
  let invalidRaw;
129
131
  let sawDynamic = false;
130
132
  let sawAttribute = false;
@@ -155,7 +157,7 @@ export function resolveVisibilityFor(node, scope = new Map(), literalScope) {
155
157
  }
156
158
  const quoted = raw.match(/^(["'`])((?:\\.|(?!\1)[^\\])*)\1$/);
157
159
  if (quoted) {
158
- const inner = (_a = quoted[2]) !== null && _a !== void 0 ? _a : '';
160
+ const inner = (_c = quoted[2]) !== null && _c !== void 0 ? _c : '';
159
161
  const isTemplateWithInterpolation = quoted[1] === '`' && inner.includes('${');
160
162
  if (!isTemplateWithInterpolation) {
161
163
  if (isVisibilityAudience(inner)) {
@@ -168,12 +170,12 @@ export function resolveVisibilityFor(node, scope = new Map(), literalScope) {
168
170
  const groups = resolveGroups(attr.value);
169
171
  if (groups)
170
172
  return { kind: 'groups', groups };
171
- if (((_b = expressionOf(attr.value)) === null || _b === void 0 ? void 0 : _b.type) === 'ObjectExpression' || raw.startsWith('{')) {
173
+ if (((_a = expressionOf(attr.value)) === null || _a === void 0 ? void 0 : _a.type) === 'ObjectExpression' || raw.startsWith('{')) {
172
174
  invalidRaw !== null && invalidRaw !== void 0 ? invalidRaw : (invalidRaw = raw);
173
175
  continue;
174
176
  }
175
177
  }
176
- const expression = extractProgramExpression('data' in attr.value ? (_c = attr.value.data) === null || _c === void 0 ? void 0 : _c.estree : undefined);
178
+ const expression = extractProgramExpression('data' in attr.value ? (_b = attr.value.data) === null || _b === void 0 ? void 0 : _b.estree : undefined);
177
179
  const evaluated = evaluateStatic(expression, { scope });
178
180
  if (evaluated.ok) {
179
181
  const value = evaluated.value;
@@ -675,7 +677,7 @@ function unfoldVariation(node, ctx) {
675
677
  const ids = variationIds(props.get('is'));
676
678
  if (ids.length === 0)
677
679
  return [];
678
- const title = ids.map((id) => { var _a, _b; return (_b = (_a = ctx.variationLabels) === null || _a === void 0 ? void 0 : _a.get(id)) !== null && _b !== void 0 ? _b : id; }).join(', ');
680
+ const title = ids.map((id) => { var _a; var _b; return (_b = (_a = ctx.variationLabels) === null || _a === void 0 ? void 0 : _a.get(id)) !== null && _b !== void 0 ? _b : id; }).join(', ');
679
681
  return wrapPhrasingRuns([
680
682
  ...parseMarkdown(headlineMarkdown(title, undefined), ctx),
681
683
  ...transformChildren([...node.children], ctx),
@@ -227,7 +227,8 @@ export function bindPattern(pattern, value, env) {
227
227
  }
228
228
  }
229
229
  export function evaluateStatic(node, env) {
230
- var _a, _b;
230
+ var _a;
231
+ var _b;
231
232
  if (!isObject(node))
232
233
  return EVAL_FAILED;
233
234
  switch (node.type) {
@@ -613,7 +614,8 @@ const BROWSER_ONLY_GLOBALS = new Set([
613
614
  ]);
614
615
  /** Whether `node` reads children that are markdown, directly or as `props.children`. */
615
616
  export function readsMarkdownChildren(node, env) {
616
- var _a, _b;
617
+ var _a;
618
+ var _b;
617
619
  if (env.markdownChildren !== true || !isObject(node))
618
620
  return false;
619
621
  if (node.type === 'Identifier') {
@@ -851,7 +851,8 @@ function mentionsMarkdownChildren(node, ctx) {
851
851
  let found = false;
852
852
  visitReferences(node, new Set(), {
853
853
  reference: (identifier) => {
854
- var _a, _b;
854
+ var _a;
855
+ var _b;
855
856
  if (identifier.name === ctx.childrenName) {
856
857
  found || (found = !((_b = (_a = ctx.failedProps) === null || _a === void 0 ? void 0 : _a.has('children')) !== null && _b !== void 0 ? _b : false));
857
858
  return;
@@ -45,7 +45,8 @@ export function customHeadingIdSourceLines(content, options) {
45
45
  return rewriteCustomHeadingIds(content, options).sourceLines;
46
46
  }
47
47
  function rewriteCustomHeadingIds(content, options) {
48
- var _a, _b, _c, _d, _e;
48
+ var _a, _b;
49
+ var _c, _d, _e;
49
50
  const lines = content.split('\n');
50
51
  const result = [];
51
52
  const sourceLines = [];
@@ -79,7 +80,7 @@ function rewriteCustomHeadingIds(content, options) {
79
80
  const headingRe = mdxDepth > 0 ? MDX_HEADING_ID_RE : HEADING_ID_RE;
80
81
  const heading = !commented && headingRe.exec(line);
81
82
  if (heading && heading[2] && heading[3] && heading[4]) {
82
- const indent = (_a = heading[1]) !== null && _a !== void 0 ? _a : '';
83
+ const indent = (_c = heading[1]) !== null && _c !== void 0 ? _c : '';
83
84
  const level = heading[2].length;
84
85
  const sanitizedId = (options === null || options === void 0 ? void 0 : options.preserveOriginal)
85
86
  ? sanitizeHtmlAttr(heading[4])
@@ -89,8 +90,8 @@ function rewriteCustomHeadingIds(content, options) {
89
90
  continue;
90
91
  }
91
92
  mdxDepth = Math.max(0, mdxDepth +
92
- ((_c = (_b = visible.match(MDX_OPEN_RE)) === null || _b === void 0 ? void 0 : _b.length) !== null && _c !== void 0 ? _c : 0) -
93
- ((_e = (_d = visible.match(MDX_CLOSE_RE)) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0));
93
+ ((_d = (_a = visible.match(MDX_OPEN_RE)) === null || _a === void 0 ? void 0 : _a.length) !== null && _d !== void 0 ? _d : 0) -
94
+ ((_e = (_b = visible.match(MDX_CLOSE_RE)) === null || _b === void 0 ? void 0 : _b.length) !== null && _e !== void 0 ? _e : 0));
94
95
  result.push(line);
95
96
  sourceLines.push(sourceLine);
96
97
  }
@@ -28,7 +28,7 @@ export type GetMdxType = {
28
28
  panelMdxSourceWithNoJs?: SerializeSuccess;
29
29
  parseFailed?: boolean;
30
30
  };
31
- export declare function getMdx({ path, content, metadata, snippets, subdomain, codeStyling, config, tailwindSelectors, pageType, trace, customLanguages, variables, rehypePlugins, remarkPlugins, earlyRemarkPlugins, allowedComponents, packageBuild, singlePass, }: {
31
+ export declare function getMdx({ path, content, metadata, snippets, subdomain, codeStyling, config, tailwindSelectors, pageType, trace, customLanguages, variables, rehypePlugins, remarkPlugins, earlyRemarkPlugins, allowedComponents, packageBuild, singlePass }: {
32
32
  path: string;
33
33
  content: string;
34
34
  metadata: PageMetaTags;
@@ -46,7 +46,8 @@ const getPackageIslandOptions = (packageBuild, pagePath, processedContent) => {
46
46
  };
47
47
  export function getMdx(_a) {
48
48
  return __awaiter(this, arguments, void 0, function* ({ path, content, metadata, snippets, subdomain, codeStyling, config, tailwindSelectors = undefined, pageType = 'default', trace = undefined, customLanguages = [], variables = undefined, rehypePlugins = [], remarkPlugins = [], earlyRemarkPlugins = [], allowedComponents = [], packageBuild = undefined, singlePass = true, }) {
49
- var _b, _c, _d, _e;
49
+ var _b;
50
+ var _c, _d, _e;
50
51
  const traceFn = trace !== null && trace !== void 0 ? trace : ((_name, fn) => fn());
51
52
  const processedContent = preprocessPageContent(content, variables);
52
53
  const processedSnippets = snippets.map((snippet) => (Object.assign(Object.assign({}, snippet), { content: preprocessCustomHeadingIds(preprocessMdxFragmentCode(replaceVariables(snippet.content, variables))) })));
@@ -1,2 +1,2 @@
1
- export declare const JSX_EXTENSIONS: readonly [".jsx", ".tsx"];
1
+ export declare const JSX_EXTENSIONS: readonly ['.jsx', '.tsx'];
2
2
  export declare const SNIPPET_EXTENSIONS: readonly [".mdx", ".jsx", ".tsx", ".md"];
@@ -1,4 +1,4 @@
1
- export declare const HOST_PROVIDED_PACKAGES: readonly ["react", "react-dom"];
1
+ export declare const HOST_PROVIDED_PACKAGES: readonly ['react', 'react-dom'];
2
2
  export declare const isBareSpecifier: (source: string) => boolean;
3
3
  export declare const getSpecifierPackageName: (source: string) => string | undefined;
4
4
  export declare const isHostProvidedSpecifier: (source: string) => boolean;
@@ -62,13 +62,10 @@ const toImportSpecifier = ({ local, exported }) => {
62
62
  return { type: MdxImportSpecifier.ImportSpecifier, name: imported };
63
63
  return { type: MdxImportSpecifier.RenamedImportSpecifier, name: imported, renamedName: bound };
64
64
  };
65
- const isPackageReExport = (statement, packageNames) => {
66
- var _a;
67
- return statement.type === 'ExportNamedDeclaration' &&
68
- typeof ((_a = statement.source) === null || _a === void 0 ? void 0 : _a.value) === 'string' &&
69
- isNonHostBareImport(statement.source.value) &&
70
- isDeclaredPackageImport(statement.source.value, packageNames);
71
- };
65
+ const isPackageReExport = (statement, packageNames) => { var _a; return statement.type === 'ExportNamedDeclaration' &&
66
+ typeof ((_a = statement.source) === null || _a === void 0 ? void 0 : _a.value) === 'string' &&
67
+ isNonHostBareImport(statement.source.value) &&
68
+ isDeclaredPackageImport(statement.source.value, packageNames); };
72
69
  const takePackageReExports = (tree, packageNames) => {
73
70
  const reExports = [];
74
71
  tree.children = tree.children.flatMap((node) => {
@@ -98,21 +95,19 @@ const takePackageReExports = (tree, packageNames) => {
98
95
  });
99
96
  return reExports;
100
97
  };
101
- const declaredPackageImports = (snippet, packages) => {
98
+ const declaredPackageImports = (snippet, packages) => { var _a; return Object.entries((_a = snippet.importMap) !== null && _a !== void 0 ? _a : {}).flatMap(([source, specifiers]) => {
102
99
  var _a;
103
- return Object.entries((_a = snippet.importMap) !== null && _a !== void 0 ? _a : {}).flatMap(([source, specifiers]) => {
104
- var _a;
105
- const resolvedPath = resolveImportPath(source, snippet.filename);
106
- if (resolvedPath == null) {
107
- return isNonHostBareImport(source) && isDeclaredPackageImport(source, packages.packageNames)
108
- ? [[source, specifiers]]
109
- : [];
110
- }
111
- return ((_a = packages.packageSnippets) === null || _a === void 0 ? void 0 : _a.has(resolvedPath)) ? [[resolvedPath, specifiers]] : [];
112
- });
113
- };
100
+ const resolvedPath = resolveImportPath(source, snippet.filename);
101
+ if (resolvedPath == null) {
102
+ return isNonHostBareImport(source) && isDeclaredPackageImport(source, packages.packageNames)
103
+ ? [[source, specifiers]]
104
+ : [];
105
+ }
106
+ return ((_a = packages.packageSnippets) === null || _a === void 0 ? void 0 : _a.has(resolvedPath)) ? [[resolvedPath, specifiers]] : [];
107
+ }); };
114
108
  export const resolveAllImports = (params) => __awaiter(void 0, void 0, void 0, function* () {
115
- var _a, _b, _c, _d, _e;
109
+ var _a;
110
+ var _b, _c, _d, _e;
116
111
  const { snippets, fileWithImports, onWarning, packages } = params;
117
112
  let ast = fileWithImports.tree;
118
113
  const kept = packages && /\.mdx?$/.test(fileWithImports.filename)
@@ -125,10 +120,10 @@ export const resolveAllImports = (params) => __awaiter(void 0, void 0, void 0, f
125
120
  const resolvedPath = resolveImportPath(source, fileWithImports.filename);
126
121
  if (packages && resolvedPath == null && isNonHostBareImport(source)) {
127
122
  if (isDeclaredPackageImport(source, packages.packageNames)) {
128
- kept.push([source, (_a = fileWithImports.importMap[source]) !== null && _a !== void 0 ? _a : []]);
123
+ kept.push([source, (_b = fileWithImports.importMap[source]) !== null && _b !== void 0 ? _b : []]);
129
124
  continue;
130
125
  }
131
- const message = `Package ${(_b = getSpecifierPackageName(source)) !== null && _b !== void 0 ? _b : source} imported in ${fileWithImports.filename} is not declared in package.json dependencies.`;
126
+ const message = `Package ${(_c = getSpecifierPackageName(source)) !== null && _c !== void 0 ? _c : source} imported in ${fileWithImports.filename} is not declared in package.json dependencies.`;
132
127
  if (onWarning) {
133
128
  onWarning({ type: 'undeclared-package', message });
134
129
  }
@@ -137,7 +132,7 @@ export const resolveAllImports = (params) => __awaiter(void 0, void 0, void 0, f
137
132
  }
138
133
  continue;
139
134
  }
140
- if (resolvedPath != null && ((_c = packages === null || packages === void 0 ? void 0 : packages.packageSnippets) === null || _c === void 0 ? void 0 : _c.has(resolvedPath))) {
135
+ if (resolvedPath != null && ((_a = packages === null || packages === void 0 ? void 0 : packages.packageSnippets) === null || _a === void 0 ? void 0 : _a.has(resolvedPath))) {
141
136
  kept.push([resolvedPath, (_d = fileWithImports.importMap[source]) !== null && _d !== void 0 ? _d : []]);
142
137
  continue;
143
138
  }
@@ -220,12 +215,9 @@ export const resolveAllImports = (params) => __awaiter(void 0, void 0, void 0, f
220
215
  kept.push(...Object.entries(yield takeImports(ast)));
221
216
  if (!packages || kept.length === 0)
222
217
  return ast;
223
- const { imports, conflicts } = mergeImports(kept.filter(([source, specifiers]) => {
224
- var _a;
225
- return specifiers.length > 0 ||
226
- isDeclaredPackageImport(source, packages.packageNames) ||
227
- ((_a = packages.packageSnippets) === null || _a === void 0 ? void 0 : _a.has(source));
228
- }));
218
+ const { imports, conflicts } = mergeImports(kept.filter(([source, specifiers]) => { var _a; return specifiers.length > 0 ||
219
+ isDeclaredPackageImport(source, packages.packageNames) ||
220
+ ((_a = packages.packageSnippets) === null || _a === void 0 ? void 0 : _a.has(source)); }));
229
221
  for (const { local, first, second } of conflicts) {
230
222
  const message = `${local} is imported twice in ${fileWithImports.filename}, as ${first} and as ${second}. Snippets inlined into a page share its imports, so import one of them under another name.`;
231
223
  if (onWarning) {
@@ -581,13 +581,10 @@ heldBindings = new Map()) {
581
581
  const reused = [];
582
582
  const injectedUnits = [];
583
583
  for (const unit of ordered) {
584
- const bases = new Map([...unit.names].map((unitName) => {
585
- var _a;
586
- return [
587
- unitName,
588
- (_a = renames.get(unitName)) !== null && _a !== void 0 ? _a : unitName,
589
- ];
590
- }));
584
+ const bases = new Map([...unit.names].map((unitName) => { var _a; return [
585
+ unitName,
586
+ (_a = renames.get(unitName)) !== null && _a !== void 0 ? _a : unitName,
587
+ ]; }));
591
588
  for (let suffix = 0;; suffix++) {
592
589
  const names = [];
593
590
  for (const [unitName, base] of bases) {
@@ -3,7 +3,7 @@ import { MdxFlowExpression, MdxjsEsm, MdxJsxAttribute, MdxJsxExpressionAttribute
3
3
  import type { MdxJsxFlowElement, MdxJsxTextElement } from 'mdast-util-mdx-jsx';
4
4
  import type { Node } from 'unist';
5
5
  import type { MdxNodeBodyChildType } from '../types/mdx/index.js';
6
- export declare const SMIL_ELEMENT_NAMES: readonly ["animate", "animateMotion", "animateTransform", "mpath", "set"];
6
+ export declare const SMIL_ELEMENT_NAMES: readonly ['animate', 'animateMotion', 'animateTransform', 'mpath', 'set'];
7
7
  export declare const isMdxJsEsm: (node: Node) => node is MdxjsEsm;
8
8
  export declare const isMdxExpression: (node: Node) => node is MdxFlowExpression | MdxTextExpression;
9
9
  export declare function estreeIsProgram<T extends MdxFlowExpression | MdxTextExpression | MdxjsEsm>(node: T): node is T & {
@@ -297,8 +297,7 @@ function buildDivisionItem(param) {
297
297
  (isAbsoluteUrl(userHref) ||
298
298
  (!hasChildNav && userHref.startsWith('/') && !userHref.startsWith('//')));
299
299
  if (!isUserDefinedHref && divisionKey === 'dropdowns' && !isActive && currentPath) {
300
- href =
301
- (_c = (_b = findCorrespondingDropdownHref(item, currentPath, userGroups !== null && userGroups !== void 0 ? userGroups : new Set(), isPreview)) !== null && _b !== void 0 ? _b : findSamePageInDropdownVersion(page === null || page === void 0 ? void 0 : page.href, findDivisionName(item), currentPath, rootNav, userGroups !== null && userGroups !== void 0 ? userGroups : new Set(), isPreview)) !== null && _c !== void 0 ? _c : '';
300
+ href = (_c = (_b = findCorrespondingDropdownHref(item, currentPath, userGroups !== null && userGroups !== void 0 ? userGroups : new Set(), isPreview)) !== null && _b !== void 0 ? _b : findSamePageInDropdownVersion(page === null || page === void 0 ? void 0 : page.href, findDivisionName(item), currentPath, rootNav, userGroups !== null && userGroups !== void 0 ? userGroups : new Set(), isPreview)) !== null && _c !== void 0 ? _c : '';
302
301
  }
303
302
  if (!href) {
304
303
  href = isUserDefinedHref ? userHref : (page === null || page === void 0 ? void 0 : page.href) || '/';
@@ -10,7 +10,7 @@ export type ScopedNavForPath = {
10
10
  currentVersion: string | undefined;
11
11
  currentLanguage: LocaleType | undefined;
12
12
  };
13
- export declare function getScopedNavForPath({ decoratedNav, currentPath, userGroups, isPreview, includeProductVersionMetadata, }: {
13
+ export declare function getScopedNavForPath({ decoratedNav, currentPath, userGroups, isPreview, includeProductVersionMetadata }: {
14
14
  decoratedNav: DecoratedNavigationConfig;
15
15
  currentPath: string;
16
16
  userGroups?: Set<string>;
@@ -576,7 +576,8 @@ function cachedPathToLanguageDict(decoratedNav) {
576
576
  return dict;
577
577
  }
578
578
  export function getScopedNavForPath({ decoratedNav, currentPath, userGroups = new Set(), isPreview = false, includeProductVersionMetadata = false, }) {
579
- var _a, _b, _c, _d, _e, _f, _g;
579
+ var _a, _b, _c, _d;
580
+ var _e, _f, _g;
580
581
  const containingProductNames = new Set();
581
582
  collectContainingProductNames(
582
583
  // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- structural nav traversal over the zod union types
@@ -607,10 +608,9 @@ export function getScopedNavForPath({ decoratedNav, currentPath, userGroups = ne
607
608
  const localeFromDict = dictLanguage && isLocale(dictLanguage) ? dictLanguage : undefined;
608
609
  currentVersion =
609
610
  dictVersion ||
610
- getVersionOrLanguageFromPath('version', decoratedNav, currentPath, defaultVersion, (_d = (_c = initial.versions[0]) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : '') ||
611
+ getVersionOrLanguageFromPath('version', decoratedNav, currentPath, defaultVersion, (_e = (_c = initial.versions[0]) === null || _c === void 0 ? void 0 : _c.name) !== null && _e !== void 0 ? _e : '') ||
611
612
  undefined;
612
- currentLanguage =
613
- (_g = localeFromDict !== null && localeFromDict !== void 0 ? localeFromDict : getVersionOrLanguageFromPath('language', decoratedNav, currentPath, defaultLanguage, (_f = (_e = initial.languages[0]) === null || _e === void 0 ? void 0 : _e.language) !== null && _f !== void 0 ? _f : undefined)) !== null && _g !== void 0 ? _g : undefined;
613
+ currentLanguage = (_g = localeFromDict !== null && localeFromDict !== void 0 ? localeFromDict : getVersionOrLanguageFromPath('language', decoratedNav, currentPath, defaultLanguage, (_f = (_d = initial.languages[0]) === null || _d === void 0 ? void 0 : _d.language) !== null && _f !== void 0 ? _f : undefined)) !== null && _g !== void 0 ? _g : undefined;
614
614
  }
615
615
  const filtered = filterDivisions({
616
616
  currentPath,
@@ -18,7 +18,7 @@ export type DivisionMatch = {
18
18
  canonicalOverride?: true;
19
19
  groups?: PageGroups;
20
20
  };
21
- export declare function updateFirstHrefInDivision({ type, currentPath, entry, parentGroups, nearestDivisionValue, isActiveGroup, inActiveDivision, currentDivisionValue, allDivisionValues, firstHrefInDivision, navigationDivisions, isHiddenPage, activeGroupNames, activeDivisionOwner, inHiddenSubtree, }: {
21
+ export declare function updateFirstHrefInDivision({ type, currentPath, entry, parentGroups, nearestDivisionValue, isActiveGroup, inActiveDivision, currentDivisionValue, allDivisionValues, firstHrefInDivision, navigationDivisions, isHiddenPage, activeGroupNames, activeDivisionOwner, inHiddenSubtree }: {
22
22
  type: 'version' | 'language';
23
23
  currentPath: string;
24
24
  entry: DecoratedNavigationConfig | DecoratedPageOrGroupConfig;