@mintlify/common 1.0.1138 → 1.0.1140

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 (544) hide show
  1. package/dist/api-reference/parseApiTargetFromMetadata.d.ts +0 -0
  2. package/dist/api-reference/parseApiTargetFromMetadata.js +0 -0
  3. package/dist/apiStaticExportBasePaths.d.ts +0 -0
  4. package/dist/apiStaticExportBasePaths.js +0 -0
  5. package/dist/asyncapi/checkForExternalRefs.d.ts +0 -0
  6. package/dist/asyncapi/checkForExternalRefs.js +0 -0
  7. package/dist/asyncapi/getAsyncApiChannelMetadata.d.ts +0 -0
  8. package/dist/asyncapi/getAsyncApiChannelMetadata.js +0 -0
  9. package/dist/asyncapi/getAsyncApiDocumentFromUrl.d.ts +0 -0
  10. package/dist/asyncapi/getAsyncApiDocumentFromUrl.js +0 -0
  11. package/dist/asyncapi/getEnumValues.d.ts +0 -0
  12. package/dist/asyncapi/getEnumValues.js +0 -0
  13. package/dist/asyncapi/index.d.ts +0 -0
  14. package/dist/asyncapi/index.js +0 -0
  15. package/dist/asyncapi/parseAsyncApiString.d.ts +0 -0
  16. package/dist/asyncapi/parseAsyncApiString.js +0 -0
  17. package/dist/asyncapi/parser/extractSchemaProperties.d.ts +0 -0
  18. package/dist/asyncapi/parser/extractSchemaProperties.js +0 -0
  19. package/dist/asyncapi/parser/getBindingsData.d.ts +0 -0
  20. package/dist/asyncapi/parser/getBindingsData.js +0 -0
  21. package/dist/asyncapi/parser/getChannelData.d.ts +0 -0
  22. package/dist/asyncapi/parser/getChannelData.js +0 -0
  23. package/dist/asyncapi/parser/getExamplesData.d.ts +0 -0
  24. package/dist/asyncapi/parser/getExamplesData.js +0 -0
  25. package/dist/asyncapi/parser/getExtensionsData.d.ts +0 -0
  26. package/dist/asyncapi/parser/getExtensionsData.js +0 -0
  27. package/dist/asyncapi/parser/getMessagesData.d.ts +0 -0
  28. package/dist/asyncapi/parser/getMessagesData.js +0 -0
  29. package/dist/asyncapi/parser/getOperationsData.d.ts +0 -0
  30. package/dist/asyncapi/parser/getOperationsData.js +0 -0
  31. package/dist/asyncapi/parser/getParametersData.d.ts +0 -0
  32. package/dist/asyncapi/parser/getParametersData.js +0 -0
  33. package/dist/asyncapi/parser/getSecuritySchemesData.d.ts +0 -0
  34. package/dist/asyncapi/parser/getSecuritySchemesData.js +0 -0
  35. package/dist/asyncapi/parser/getServersData.d.ts +0 -0
  36. package/dist/asyncapi/parser/getServersData.js +0 -0
  37. package/dist/asyncapi/prepAsyncApiFrontmatter.d.ts +0 -0
  38. package/dist/asyncapi/prepAsyncApiFrontmatter.js +0 -0
  39. package/dist/asyncapi/validateAsyncApi.d.ts +0 -0
  40. package/dist/asyncapi/validateAsyncApi.js +0 -0
  41. package/dist/basePaths.d.ts +0 -0
  42. package/dist/basePaths.js +0 -0
  43. package/dist/camelToSentenceCase.d.ts +0 -0
  44. package/dist/camelToSentenceCase.js +0 -0
  45. package/dist/colors.d.ts +0 -0
  46. package/dist/colors.js +0 -0
  47. package/dist/css/index.d.ts +0 -0
  48. package/dist/css/index.js +0 -0
  49. package/dist/css/tailwind.d.ts +0 -0
  50. package/dist/css/tailwind.js +0 -0
  51. package/dist/divisions/generatePathToBoostDict.d.ts +0 -0
  52. package/dist/divisions/generatePathToBoostDict.js +0 -0
  53. package/dist/divisions/generatePathToHiddenDict.d.ts +0 -0
  54. package/dist/divisions/generatePathToHiddenDict.js +0 -0
  55. package/dist/divisions/generatePathToHiddenFromSearchDict.d.ts +0 -0
  56. package/dist/divisions/generatePathToHiddenFromSearchDict.js +0 -0
  57. package/dist/divisions/generatePathToLanguageDict.d.ts +0 -0
  58. package/dist/divisions/generatePathToLanguageDict.js +0 -0
  59. package/dist/divisions/generatePathToProductDict.d.ts +0 -0
  60. package/dist/divisions/generatePathToProductDict.js +0 -0
  61. package/dist/divisions/generatePathToPublicDict.d.ts +0 -0
  62. package/dist/divisions/generatePathToPublicDict.js +0 -0
  63. package/dist/divisions/generatePathToVersionDict.d.ts +0 -0
  64. package/dist/divisions/generatePathToVersionDict.js +0 -0
  65. package/dist/divisions/generatePathToVersionDictForDocsConfig.d.ts +0 -0
  66. package/dist/divisions/generatePathToVersionDictForDocsConfig.js +0 -0
  67. package/dist/divisions/index.d.ts +0 -0
  68. package/dist/divisions/index.js +0 -0
  69. package/dist/divisions/iterateObjectArrayProperty.d.ts +0 -0
  70. package/dist/divisions/iterateObjectArrayProperty.js +0 -0
  71. package/dist/entitlements/index.d.ts +0 -0
  72. package/dist/entitlements/index.js +0 -0
  73. package/dist/exponentialBackoff.d.ts +0 -0
  74. package/dist/exponentialBackoff.js +0 -0
  75. package/dist/frontmatter/index.d.ts +0 -0
  76. package/dist/frontmatter/index.js +0 -0
  77. package/dist/frontmatter/parseFrontmatter.d.ts +0 -0
  78. package/dist/frontmatter/parseFrontmatter.js +0 -0
  79. package/dist/fs/addBasePath.d.ts +0 -0
  80. package/dist/fs/addBasePath.js +0 -0
  81. package/dist/fs/createPathArr.d.ts +0 -0
  82. package/dist/fs/createPathArr.js +0 -0
  83. package/dist/fs/index.d.ts +0 -0
  84. package/dist/fs/index.js +0 -0
  85. package/dist/fs/normalizeRelativePath.d.ts +0 -0
  86. package/dist/fs/normalizeRelativePath.js +0 -0
  87. package/dist/fs/optionallySlash.d.ts +0 -0
  88. package/dist/fs/optionallySlash.js +0 -0
  89. package/dist/fs/removeBasePath.d.ts +0 -0
  90. package/dist/fs/removeBasePath.js +0 -0
  91. package/dist/fs/removeLeadingSlash.d.ts +0 -0
  92. package/dist/fs/removeLeadingSlash.js +0 -0
  93. package/dist/fs/toPosixPath.d.ts +0 -0
  94. package/dist/fs/toPosixPath.js +0 -0
  95. package/dist/getDisplayDomain.d.ts +0 -0
  96. package/dist/getDisplayDomain.js +0 -0
  97. package/dist/getFileCategory.d.ts +0 -0
  98. package/dist/getFileCategory.js +0 -0
  99. package/dist/getRelativeRecordName.d.ts +0 -0
  100. package/dist/getRelativeRecordName.js +0 -0
  101. package/dist/getRelativeRecordName.test.d.ts +0 -0
  102. package/dist/getRelativeRecordName.test.js +0 -0
  103. package/dist/getSecurityOptionsForAuthMethod.d.ts +0 -0
  104. package/dist/getSecurityOptionsForAuthMethod.js +0 -0
  105. package/dist/index.d.ts +1 -0
  106. package/dist/index.js +1 -0
  107. package/dist/isAbsoluteUrl.d.ts +0 -0
  108. package/dist/isAbsoluteUrl.js +0 -0
  109. package/dist/isAllowedRedirectUri.d.ts +0 -0
  110. package/dist/isAllowedRedirectUri.js +0 -0
  111. package/dist/isAllowedRedirectUri.test.d.ts +0 -0
  112. package/dist/isAllowedRedirectUri.test.js +0 -0
  113. package/dist/isDocsConfig.d.ts +0 -0
  114. package/dist/isDocsConfig.js +0 -0
  115. package/dist/isOrgLessThanTwoWeeksOld.d.ts +0 -0
  116. package/dist/isOrgLessThanTwoWeeksOld.js +0 -0
  117. package/dist/isValidEmail.d.ts +0 -0
  118. package/dist/isValidEmail.js +0 -0
  119. package/dist/isWildcardRedirect.d.ts +0 -0
  120. package/dist/isWildcardRedirect.js +0 -0
  121. package/dist/knownMcpClients.d.ts +0 -0
  122. package/dist/knownMcpClients.js +0 -0
  123. package/dist/knownMcpClients.test.d.ts +0 -0
  124. package/dist/knownMcpClients.test.js +0 -0
  125. package/dist/live-preview.d.ts +0 -0
  126. package/dist/live-preview.js +0 -0
  127. package/dist/mdx/astUtils.d.ts +0 -0
  128. package/dist/mdx/astUtils.js +0 -0
  129. package/dist/mdx/componentIds.d.ts +0 -0
  130. package/dist/mdx/componentIds.js +0 -0
  131. package/dist/mdx/getCodeStyling.d.ts +0 -0
  132. package/dist/mdx/getCodeStyling.js +0 -0
  133. package/dist/mdx/getMDXOptions.d.ts +0 -0
  134. package/dist/mdx/getMDXOptions.js +0 -0
  135. package/dist/mdx/getS3ImageUri.d.ts +0 -0
  136. package/dist/mdx/getS3ImageUri.js +0 -0
  137. package/dist/mdx/index.d.ts +0 -0
  138. package/dist/mdx/index.js +0 -0
  139. package/dist/mdx/lib/findExportedNode.d.ts +0 -0
  140. package/dist/mdx/lib/findExportedNode.js +0 -0
  141. package/dist/mdx/lib/index.d.ts +0 -0
  142. package/dist/mdx/lib/index.js +0 -0
  143. package/dist/mdx/lib/mdx-utils.d.ts +0 -0
  144. package/dist/mdx/lib/mdx-utils.js +0 -0
  145. package/dist/mdx/lib/remark-utils.d.ts +0 -0
  146. package/dist/mdx/lib/remark-utils.js +0 -0
  147. package/dist/mdx/plugins/index.d.ts +0 -0
  148. package/dist/mdx/plugins/index.js +0 -0
  149. package/dist/mdx/plugins/rehype/index.d.ts +0 -0
  150. package/dist/mdx/plugins/rehype/index.js +0 -0
  151. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/buildMetaAttributes.d.ts +0 -0
  152. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/buildMetaAttributes.js +0 -0
  153. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/index.d.ts +0 -0
  154. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/index.js +0 -0
  155. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.d.ts +0 -0
  156. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/metaOptions.js +0 -0
  157. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/parseMetaString.d.ts +0 -0
  158. package/dist/mdx/plugins/rehype/rehypeCodeBlocks/parseMetaString.js +0 -0
  159. package/dist/mdx/plugins/rehype/rehypeDynamicTailwindCss.d.ts +0 -0
  160. package/dist/mdx/plugins/rehype/rehypeDynamicTailwindCss.js +0 -0
  161. package/dist/mdx/plugins/rehype/rehypeKeyboardSymbols.d.ts +0 -0
  162. package/dist/mdx/plugins/rehype/rehypeKeyboardSymbols.js +0 -0
  163. package/dist/mdx/plugins/rehype/rehypeListItemText.d.ts +0 -0
  164. package/dist/mdx/plugins/rehype/rehypeListItemText.js +0 -0
  165. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/findParentSchema.d.ts +0 -0
  166. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/findParentSchema.js +0 -0
  167. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/index.d.ts +0 -0
  168. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/index.js +0 -0
  169. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/insertSchema.d.ts +0 -0
  170. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/insertSchema.js +0 -0
  171. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/parsers.d.ts +0 -0
  172. package/dist/mdx/plugins/rehype/rehypeMdxExtractEndpoint/parsers.js +0 -0
  173. package/dist/mdx/plugins/rehype/rehypeMdxExtractExamples.d.ts +0 -0
  174. package/dist/mdx/plugins/rehype/rehypeMdxExtractExamples.js +0 -0
  175. package/dist/mdx/plugins/rehype/rehypeOptimizedVideo.d.ts +0 -0
  176. package/dist/mdx/plugins/rehype/rehypeOptimizedVideo.js +0 -0
  177. package/dist/mdx/plugins/rehype/rehypeParamFieldIds.d.ts +0 -0
  178. package/dist/mdx/plugins/rehype/rehypeParamFieldIds.js +0 -0
  179. package/dist/mdx/plugins/rehype/rehypeRawComponents.d.ts +0 -0
  180. package/dist/mdx/plugins/rehype/rehypeRawComponents.js +0 -0
  181. package/dist/mdx/plugins/rehype/rehypeTable.d.ts +0 -0
  182. package/dist/mdx/plugins/rehype/rehypeTable.js +0 -0
  183. package/dist/mdx/plugins/rehype/rehypeUnicodeIds.d.ts +0 -0
  184. package/dist/mdx/plugins/rehype/rehypeUnicodeIds.js +0 -0
  185. package/dist/mdx/plugins/rehype/rehypeZoomImages.d.ts +0 -0
  186. package/dist/mdx/plugins/rehype/rehypeZoomImages.js +0 -0
  187. package/dist/mdx/plugins/rehype/segment.d.ts +0 -0
  188. package/dist/mdx/plugins/rehype/segment.js +0 -0
  189. package/dist/mdx/plugins/remark/index.d.ts +0 -0
  190. package/dist/mdx/plugins/remark/index.js +0 -0
  191. package/dist/mdx/plugins/remark/remark-mdx-style-string-to-object.d.ts +0 -0
  192. package/dist/mdx/plugins/remark/remark-mdx-style-string-to-object.js +0 -0
  193. package/dist/mdx/plugins/remark/remarkComponentIds.d.ts +0 -0
  194. package/dist/mdx/plugins/remark/remarkComponentIds.js +0 -0
  195. package/dist/mdx/plugins/remark/remarkExpandContent.d.ts +0 -0
  196. package/dist/mdx/plugins/remark/remarkExpandContent.js +0 -0
  197. package/dist/mdx/plugins/remark/remarkExtractChangelogFilters.d.ts +0 -0
  198. package/dist/mdx/plugins/remark/remarkExtractChangelogFilters.js +0 -0
  199. package/dist/mdx/plugins/remark/remarkExtractMultiView.d.ts +0 -0
  200. package/dist/mdx/plugins/remark/remarkExtractMultiView.js +0 -0
  201. package/dist/mdx/plugins/remark/remarkExtractTableOfContents.d.ts +0 -0
  202. package/dist/mdx/plugins/remark/remarkExtractTableOfContents.js +0 -0
  203. package/dist/mdx/plugins/remark/remarkFileTree.d.ts +0 -0
  204. package/dist/mdx/plugins/remark/remarkFileTree.js +0 -0
  205. package/dist/mdx/plugins/remark/remarkFrames.d.ts +0 -0
  206. package/dist/mdx/plugins/remark/remarkFrames.js +0 -0
  207. package/dist/mdx/plugins/remark/remarkMapExplicitAnchors.d.ts +0 -0
  208. package/dist/mdx/plugins/remark/remarkMapExplicitAnchors.js +0 -0
  209. package/dist/mdx/plugins/remark/remarkMdxClientComponentBoundaries.d.ts +0 -0
  210. package/dist/mdx/plugins/remark/remarkMdxClientComponentBoundaries.js +0 -0
  211. package/dist/mdx/plugins/remark/remarkMdxExpandExpressions.d.ts +0 -0
  212. package/dist/mdx/plugins/remark/remarkMdxExpandExpressions.js +0 -0
  213. package/dist/mdx/plugins/remark/remarkMdxExtractPanel.d.ts +0 -0
  214. package/dist/mdx/plugins/remark/remarkMdxExtractPanel.js +0 -0
  215. package/dist/mdx/plugins/remark/remarkMdxInjectSnippets.d.ts +0 -0
  216. package/dist/mdx/plugins/remark/remarkMdxInjectSnippets.js +0 -0
  217. package/dist/mdx/plugins/remark/remarkMdxRemoveJs.d.ts +0 -0
  218. package/dist/mdx/plugins/remark/remarkMdxRemoveJs.js +0 -0
  219. package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/createCommentNode.d.ts +0 -0
  220. package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/createCommentNode.js +0 -0
  221. package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/index.d.ts +0 -0
  222. package/dist/mdx/plugins/remark/remarkMdxRemoveUnknownJsx/index.js +0 -0
  223. package/dist/mdx/plugins/remark/remarkMdxRemoveUnusedVariables.d.ts +0 -0
  224. package/dist/mdx/plugins/remark/remarkMdxRemoveUnusedVariables.js +0 -0
  225. package/dist/mdx/plugins/remark/remarkMermaid.d.ts +0 -0
  226. package/dist/mdx/plugins/remark/remarkMermaid.js +0 -0
  227. package/dist/mdx/plugins/remark/remarkNoCopyLanguage.d.ts +0 -0
  228. package/dist/mdx/plugins/remark/remarkNoCopyLanguage.js +0 -0
  229. package/dist/mdx/plugins/remark/remarkPrompt.d.ts +0 -0
  230. package/dist/mdx/plugins/remark/remarkPrompt.js +0 -0
  231. package/dist/mdx/plugins/remark/remarkRemoveImports.d.ts +0 -0
  232. package/dist/mdx/plugins/remark/remarkRemoveImports.js +0 -0
  233. package/dist/mdx/plugins/remark/remarkResolveRelativeLinks.d.ts +0 -0
  234. package/dist/mdx/plugins/remark/remarkResolveRelativeLinks.js +0 -0
  235. package/dist/mdx/plugins/remark/remarkSplitCodeGroup.d.ts +0 -0
  236. package/dist/mdx/plugins/remark/remarkSplitCodeGroup.js +0 -0
  237. package/dist/mdx/plugins/remark/remarkSplitTabs.d.ts +0 -0
  238. package/dist/mdx/plugins/remark/remarkSplitTabs.js +0 -0
  239. package/dist/mdx/plugins/remark/remarkTitleMarkdown.d.ts +0 -0
  240. package/dist/mdx/plugins/remark/remarkTitleMarkdown.js +0 -0
  241. package/dist/mdx/plugins/remark/remarkUnwrapInlineJsx.d.ts +0 -0
  242. package/dist/mdx/plugins/remark/remarkUnwrapInlineJsx.js +0 -0
  243. package/dist/mdx/plugins/remark/remarkUnwrapJsxHeadings.d.ts +0 -0
  244. package/dist/mdx/plugins/remark/remarkUnwrapJsxHeadings.js +0 -0
  245. package/dist/mdx/plugins/remark/remarkValidateAccordions.d.ts +0 -0
  246. package/dist/mdx/plugins/remark/remarkValidateAccordions.js +0 -0
  247. package/dist/mdx/plugins/remark/remarkValidateApiExamples.d.ts +0 -0
  248. package/dist/mdx/plugins/remark/remarkValidateApiExamples.js +0 -0
  249. package/dist/mdx/plugins/remark/remarkValidateSteps.d.ts +0 -0
  250. package/dist/mdx/plugins/remark/remarkValidateSteps.js +0 -0
  251. package/dist/mdx/plugins/remark/remarkValidateTabs.d.ts +0 -0
  252. package/dist/mdx/plugins/remark/remarkValidateTabs.js +0 -0
  253. package/dist/mdx/plugins/remark/remarkValidateVisibility.d.ts +0 -0
  254. package/dist/mdx/plugins/remark/remarkValidateVisibility.js +0 -0
  255. package/dist/mdx/plugins/remark/remarkVideo.d.ts +0 -0
  256. package/dist/mdx/plugins/remark/remarkVideo.js +0 -0
  257. package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.d.ts +0 -0
  258. package/dist/mdx/plugins/remark/remarkVisibilityForMarkdown.js +0 -0
  259. package/dist/mdx/plugins/remark/variation.d.ts +0 -0
  260. package/dist/mdx/plugins/remark/variation.js +0 -0
  261. package/dist/mdx/preprocessCustomHeadingIds.d.ts +0 -0
  262. package/dist/mdx/preprocessCustomHeadingIds.js +0 -0
  263. package/dist/mdx/preprocessCustomHeadingIds.test.d.ts +0 -0
  264. package/dist/mdx/preprocessCustomHeadingIds.test.js +0 -0
  265. package/dist/mdx/preprocessMdxFragmentCode.d.ts +0 -0
  266. package/dist/mdx/preprocessMdxFragmentCode.js +0 -0
  267. package/dist/mdx/preprocessMdxFragmentCode.test.d.ts +0 -0
  268. package/dist/mdx/preprocessMdxFragmentCode.test.js +0 -0
  269. package/dist/mdx/remark.d.ts +0 -0
  270. package/dist/mdx/remark.js +0 -0
  271. package/dist/mdx/replaceVariables.d.ts +0 -0
  272. package/dist/mdx/replaceVariables.js +0 -0
  273. package/dist/mdx/server-only/getMdx/snippets.d.ts +0 -0
  274. package/dist/mdx/server-only/getMdx/snippets.js +0 -0
  275. package/dist/mdx/server-only/getMdx.d.ts +0 -0
  276. package/dist/mdx/server-only/getMdx.js +0 -0
  277. package/dist/mdx/server-only/getSerializeExtras.d.ts +0 -0
  278. package/dist/mdx/server-only/getSerializeExtras.js +0 -0
  279. package/dist/mdx/server-only/index.d.ts +0 -0
  280. package/dist/mdx/server-only/index.js +0 -0
  281. package/dist/mdx/snippets/buildImportMap.d.ts +0 -0
  282. package/dist/mdx/snippets/buildImportMap.js +0 -0
  283. package/dist/mdx/snippets/constants.d.ts +0 -0
  284. package/dist/mdx/snippets/constants.js +0 -0
  285. package/dist/mdx/snippets/extractImportSources.d.ts +0 -0
  286. package/dist/mdx/snippets/extractImportSources.js +0 -0
  287. package/dist/mdx/snippets/findAndRemoveExports.d.ts +0 -0
  288. package/dist/mdx/snippets/findAndRemoveExports.js +0 -0
  289. package/dist/mdx/snippets/findAndRemoveImports.d.ts +0 -0
  290. package/dist/mdx/snippets/findAndRemoveImports.js +0 -0
  291. package/dist/mdx/snippets/getExportMap.d.ts +0 -0
  292. package/dist/mdx/snippets/getExportMap.js +0 -0
  293. package/dist/mdx/snippets/getJsxEsmTree.d.ts +0 -0
  294. package/dist/mdx/snippets/getJsxEsmTree.js +0 -0
  295. package/dist/mdx/snippets/hasImports.d.ts +0 -0
  296. package/dist/mdx/snippets/hasImports.js +0 -0
  297. package/dist/mdx/snippets/index.d.ts +0 -0
  298. package/dist/mdx/snippets/index.js +0 -0
  299. package/dist/mdx/snippets/isImportedAsSnippet.d.ts +0 -0
  300. package/dist/mdx/snippets/isImportedAsSnippet.js +0 -0
  301. package/dist/mdx/snippets/isJsxOrTsx.d.ts +0 -0
  302. package/dist/mdx/snippets/isJsxOrTsx.js +0 -0
  303. package/dist/mdx/snippets/isSnippetExtension.d.ts +0 -0
  304. package/dist/mdx/snippets/isSnippetExtension.js +0 -0
  305. package/dist/mdx/snippets/nodeIncludesExport.d.ts +0 -0
  306. package/dist/mdx/snippets/nodeIncludesExport.js +0 -0
  307. package/dist/mdx/snippets/removeExports.d.ts +0 -0
  308. package/dist/mdx/snippets/removeExports.js +0 -0
  309. package/dist/mdx/snippets/resolveAllImports.d.ts +0 -0
  310. package/dist/mdx/snippets/resolveAllImports.js +0 -0
  311. package/dist/mdx/snippets/resolveImport/addExportPrefix.d.ts +0 -0
  312. package/dist/mdx/snippets/resolveImport/addExportPrefix.js +0 -0
  313. package/dist/mdx/snippets/resolveImport/containsRegularFunction.d.ts +0 -0
  314. package/dist/mdx/snippets/resolveImport/containsRegularFunction.js +0 -0
  315. package/dist/mdx/snippets/resolveImport/exportCollision.d.ts +0 -0
  316. package/dist/mdx/snippets/resolveImport/exportCollision.js +0 -0
  317. package/dist/mdx/snippets/resolveImport/findExport.d.ts +0 -0
  318. package/dist/mdx/snippets/resolveImport/findExport.js +0 -0
  319. package/dist/mdx/snippets/resolveImport/index.d.ts +0 -0
  320. package/dist/mdx/snippets/resolveImport/index.js +0 -0
  321. package/dist/mdx/snippets/resolveImport/injectToTopOfFile.d.ts +0 -0
  322. package/dist/mdx/snippets/resolveImport/injectToTopOfFile.js +0 -0
  323. package/dist/mdx/snippets/resolveImport/resolveComponentWithContent.d.ts +0 -0
  324. package/dist/mdx/snippets/resolveImport/resolveComponentWithContent.js +0 -0
  325. package/dist/mdx/snippets/resolveImportPath.d.ts +0 -0
  326. package/dist/mdx/snippets/resolveImportPath.js +0 -0
  327. package/dist/mdx/snippets/stripTsxTypes.d.ts +0 -0
  328. package/dist/mdx/snippets/stripTsxTypes.js +0 -0
  329. package/dist/mdx/titleMarkdown.d.ts +0 -0
  330. package/dist/mdx/titleMarkdown.js +0 -0
  331. package/dist/mdx/utils.d.ts +0 -0
  332. package/dist/mdx/utils.js +0 -0
  333. package/dist/mintIgnore.d.ts +6 -2
  334. package/dist/mintIgnore.js +28 -4
  335. package/dist/navigation/accessiblePagesTraversal.test.d.ts +0 -0
  336. package/dist/navigation/accessiblePagesTraversal.test.js +0 -0
  337. package/dist/navigation/activeDivisionMatching.test.d.ts +0 -0
  338. package/dist/navigation/activeDivisionMatching.test.js +0 -0
  339. package/dist/navigation/checkNavAccess.d.ts +0 -0
  340. package/dist/navigation/checkNavAccess.js +0 -0
  341. package/dist/navigation/decoratedNavigationConfig.d.ts +0 -0
  342. package/dist/navigation/decoratedNavigationConfig.js +0 -0
  343. package/dist/navigation/filterDivisions.d.ts +0 -0
  344. package/dist/navigation/filterDivisions.js +0 -0
  345. package/dist/navigation/filterDivisions.test.d.ts +0 -0
  346. package/dist/navigation/filterDivisions.test.js +0 -0
  347. package/dist/navigation/firstHrefDivisionScoping.test.d.ts +0 -0
  348. package/dist/navigation/firstHrefDivisionScoping.test.js +0 -0
  349. package/dist/navigation/generatePathToBreadcrumbsMap.d.ts +0 -0
  350. package/dist/navigation/generatePathToBreadcrumbsMap.js +0 -0
  351. package/dist/navigation/generatePathToBreadcrumbsMapForDocsConfig.d.ts +0 -0
  352. package/dist/navigation/generatePathToBreadcrumbsMapForDocsConfig.js +0 -0
  353. package/dist/navigation/getAllPathsInDecoratedNav.d.ts +0 -0
  354. package/dist/navigation/getAllPathsInDecoratedNav.js +0 -0
  355. package/dist/navigation/getAllPathsInDocsNav.d.ts +0 -0
  356. package/dist/navigation/getAllPathsInDocsNav.js +0 -0
  357. package/dist/navigation/getFirstPageFromNavConfig.d.ts +0 -0
  358. package/dist/navigation/getFirstPageFromNavConfig.js +0 -0
  359. package/dist/navigation/getFirstPageFromNavigation.d.ts +0 -0
  360. package/dist/navigation/getFirstPageFromNavigation.js +0 -0
  361. package/dist/navigation/getScopedNavForPath.test.d.ts +0 -0
  362. package/dist/navigation/getScopedNavForPath.test.js +0 -0
  363. package/dist/navigation/getVersionOrLanguageFromPath.d.ts +0 -0
  364. package/dist/navigation/getVersionOrLanguageFromPath.js +0 -0
  365. package/dist/navigation/getVersionOrLanguageFromPath.test.d.ts +0 -0
  366. package/dist/navigation/getVersionOrLanguageFromPath.test.js +0 -0
  367. package/dist/navigation/index.d.ts +0 -0
  368. package/dist/navigation/index.js +0 -0
  369. package/dist/navigation/isCommonPage.d.ts +0 -0
  370. package/dist/navigation/isCommonPage.js +0 -0
  371. package/dist/navigation/isCommonPage.test.d.ts +0 -0
  372. package/dist/navigation/isCommonPage.test.js +0 -0
  373. package/dist/navigation/isGroup.d.ts +0 -0
  374. package/dist/navigation/isGroup.js +0 -0
  375. package/dist/navigation/isPage.d.ts +0 -0
  376. package/dist/navigation/isPage.js +0 -0
  377. package/dist/navigation/pathsDifferByOneSegment.test.d.ts +0 -0
  378. package/dist/navigation/pathsDifferByOneSegment.test.js +0 -0
  379. package/dist/navigation/prioritize-default-division-item.d.ts +0 -0
  380. package/dist/navigation/prioritize-default-division-item.js +0 -0
  381. package/dist/navigation/scopeNavDictCache.test.d.ts +0 -0
  382. package/dist/navigation/scopeNavDictCache.test.js +0 -0
  383. package/dist/navigation/scopeNavStateFlip.test.d.ts +0 -0
  384. package/dist/navigation/scopeNavStateFlip.test.js +0 -0
  385. package/dist/navigation/scopeNavToPath.d.ts +0 -0
  386. package/dist/navigation/scopeNavToPath.js +0 -0
  387. package/dist/navigation/scopeNavToPath.test.d.ts +0 -0
  388. package/dist/navigation/scopeNavToPath.test.js +0 -0
  389. package/dist/navigation/scopeOffPathDivisions.test.d.ts +0 -0
  390. package/dist/navigation/scopeOffPathDivisions.test.js +0 -0
  391. package/dist/navigation/scopeProductNav.test.d.ts +0 -0
  392. package/dist/navigation/scopeProductNav.test.js +0 -0
  393. package/dist/navigation/updateFirstHrefInDivision.d.ts +0 -0
  394. package/dist/navigation/updateFirstHrefInDivision.js +0 -0
  395. package/dist/navigation/updateFirstHrefInDivision.test.d.ts +0 -0
  396. package/dist/navigation/updateFirstHrefInDivision.test.js +0 -0
  397. package/dist/navigation/versionLanguageResolution.test.d.ts +0 -0
  398. package/dist/navigation/versionLanguageResolution.test.js +0 -0
  399. package/dist/openapi/buildOpenApiMetaTag.d.ts +0 -0
  400. package/dist/openapi/buildOpenApiMetaTag.js +0 -0
  401. package/dist/openapi/content-registry.test.d.ts +0 -0
  402. package/dist/openapi/content-registry.test.js +0 -0
  403. package/dist/openapi/contentRegistry.d.ts +0 -0
  404. package/dist/openapi/contentRegistry.js +0 -0
  405. package/dist/openapi/endpointRef.d.ts +0 -0
  406. package/dist/openapi/endpointRef.js +0 -0
  407. package/dist/openapi/fetchYamlDocument.d.ts +0 -0
  408. package/dist/openapi/fetchYamlDocument.js +0 -0
  409. package/dist/openapi/filenameUtils.d.ts +0 -0
  410. package/dist/openapi/filenameUtils.js +0 -0
  411. package/dist/openapi/findNavGroup.d.ts +0 -0
  412. package/dist/openapi/findNavGroup.js +0 -0
  413. package/dist/openapi/findOpenApiPath.d.ts +0 -0
  414. package/dist/openapi/findOpenApiPath.js +0 -0
  415. package/dist/openapi/generateOpenApiPages.d.ts +0 -0
  416. package/dist/openapi/generateOpenApiPages.js +0 -0
  417. package/dist/openapi/getMatchingOpenApiFile.d.ts +0 -0
  418. package/dist/openapi/getMatchingOpenApiFile.js +0 -0
  419. package/dist/openapi/getOpenApiDocumentFromUrl.d.ts +0 -0
  420. package/dist/openapi/getOpenApiDocumentFromUrl.js +0 -0
  421. package/dist/openapi/getOpenApiOperationMethodAndEndpoint.d.ts +0 -0
  422. package/dist/openapi/getOpenApiOperationMethodAndEndpoint.js +0 -0
  423. package/dist/openapi/getOpenApiTitleAndDescription.d.ts +0 -0
  424. package/dist/openapi/getOpenApiTitleAndDescription.js +0 -0
  425. package/dist/openapi/getTagDisplayName.d.ts +0 -0
  426. package/dist/openapi/getTagDisplayName.js +0 -0
  427. package/dist/openapi/index.d.ts +0 -0
  428. package/dist/openapi/index.js +0 -0
  429. package/dist/openapi/openApiFrontmatterIsOriginalFileLocation.d.ts +0 -0
  430. package/dist/openapi/openApiFrontmatterIsOriginalFileLocation.js +0 -0
  431. package/dist/openapi/overlay/applyOverlay.d.ts +0 -0
  432. package/dist/openapi/overlay/applyOverlay.js +0 -0
  433. package/dist/openapi/overlay/errors.d.ts +0 -0
  434. package/dist/openapi/overlay/errors.js +0 -0
  435. package/dist/openapi/overlay/jsonValue.d.ts +0 -0
  436. package/dist/openapi/overlay/jsonValue.js +0 -0
  437. package/dist/openapi/overlay/mergeValue.d.ts +0 -0
  438. package/dist/openapi/overlay/mergeValue.js +0 -0
  439. package/dist/openapi/overlay/overlayRegistry.d.ts +0 -0
  440. package/dist/openapi/overlay/overlayRegistry.js +0 -0
  441. package/dist/openapi/parseApiString.d.ts +0 -0
  442. package/dist/openapi/parseApiString.js +0 -0
  443. package/dist/openapi/parseOpenApiString.d.ts +0 -0
  444. package/dist/openapi/parseOpenApiString.js +0 -0
  445. package/dist/openapi/truncateCircularReferences.d.ts +0 -0
  446. package/dist/openapi/truncateCircularReferences.js +0 -0
  447. package/dist/openapi/validate.d.ts +0 -0
  448. package/dist/openapi/validate.js +0 -0
  449. package/dist/optionallyRemoveLeadingSlash.d.ts +0 -0
  450. package/dist/optionallyRemoveLeadingSlash.js +0 -0
  451. package/dist/parse-inline-style.d.ts +0 -0
  452. package/dist/parse-inline-style.js +0 -0
  453. package/dist/paths/isEqualIgnoringLeadingSlash.d.ts +0 -0
  454. package/dist/paths/isEqualIgnoringLeadingSlash.js +0 -0
  455. package/dist/paths/isEqualIgnoringLeadingSlash.test.d.ts +0 -0
  456. package/dist/paths/isEqualIgnoringLeadingSlash.test.js +0 -0
  457. package/dist/rss/constants.d.ts +0 -0
  458. package/dist/rss/constants.js +0 -0
  459. package/dist/rss/dates.d.ts +0 -0
  460. package/dist/rss/dates.js +0 -0
  461. package/dist/rss/encodeContentAsHtml.d.ts +0 -0
  462. package/dist/rss/encodeContentAsHtml.js +0 -0
  463. package/dist/rss/enhanceSnippetsWithImportNames.d.ts +0 -0
  464. package/dist/rss/enhanceSnippetsWithImportNames.js +0 -0
  465. package/dist/rss/getV4FeedUpdates.d.ts +0 -0
  466. package/dist/rss/getV4FeedUpdates.js +0 -0
  467. package/dist/rss/index.d.ts +0 -0
  468. package/dist/rss/index.js +0 -0
  469. package/dist/rss/processUpdateNode.d.ts +0 -0
  470. package/dist/rss/processUpdateNode.js +0 -0
  471. package/dist/rss/resolveSnippets.d.ts +0 -0
  472. package/dist/rss/resolveSnippets.js +0 -0
  473. package/dist/schema/common.d.ts +0 -0
  474. package/dist/schema/common.js +0 -0
  475. package/dist/sdk/index.d.ts +0 -0
  476. package/dist/sdk/index.js +0 -0
  477. package/dist/sdk/parseSdkString.d.ts +0 -0
  478. package/dist/sdk/parseSdkString.js +0 -0
  479. package/dist/search/highlight.d.ts +7 -0
  480. package/dist/search/highlight.js +400 -0
  481. package/dist/search/highlight.test.d.ts +1 -0
  482. package/dist/search/highlight.test.js +176 -0
  483. package/dist/search/index.d.ts +1 -0
  484. package/dist/search/index.js +1 -0
  485. package/dist/secureCompare.d.ts +0 -0
  486. package/dist/secureCompare.js +0 -0
  487. package/dist/services/aws.d.ts +0 -0
  488. package/dist/services/aws.js +0 -0
  489. package/dist/slug/addTrailingSlash.d.ts +0 -0
  490. package/dist/slug/addTrailingSlash.js +0 -0
  491. package/dist/slug/getDecoratedNavPageAndSlug.d.ts +0 -0
  492. package/dist/slug/getDecoratedNavPageAndSlug.js +0 -0
  493. package/dist/slug/index.d.ts +0 -0
  494. package/dist/slug/index.js +0 -0
  495. package/dist/slug/pagePathToSlug.d.ts +0 -0
  496. package/dist/slug/pagePathToSlug.js +0 -0
  497. package/dist/slug/replaceSlashIndex.d.ts +0 -0
  498. package/dist/slug/replaceSlashIndex.js +0 -0
  499. package/dist/slug/slugToTitle.d.ts +0 -0
  500. package/dist/slug/slugToTitle.js +0 -0
  501. package/dist/slugify.d.ts +0 -0
  502. package/dist/slugify.js +0 -0
  503. package/dist/title.d.ts +0 -0
  504. package/dist/title.js +0 -0
  505. package/dist/topologicalSort.d.ts +0 -0
  506. package/dist/topologicalSort.js +0 -0
  507. package/dist/truncateAtWordBoundary.d.ts +0 -0
  508. package/dist/truncateAtWordBoundary.js +0 -0
  509. package/dist/tsconfig.build.tsbuildinfo +1 -1
  510. package/dist/types/AnalyticsEvent.d.ts +0 -0
  511. package/dist/types/AnalyticsEvent.js +0 -0
  512. package/dist/types/asyncapi.d.ts +0 -0
  513. package/dist/types/asyncapi.js +0 -0
  514. package/dist/types/guards.d.ts +0 -0
  515. package/dist/types/guards.js +0 -0
  516. package/dist/types/index.d.ts +0 -0
  517. package/dist/types/index.js +0 -0
  518. package/dist/types/mdx/ChangelogFilter.d.ts +0 -0
  519. package/dist/types/mdx/ChangelogFilter.js +0 -0
  520. package/dist/types/mdx/MdxCodeExampleData.d.ts +0 -0
  521. package/dist/types/mdx/MdxCodeExampleData.js +0 -0
  522. package/dist/types/mdx/MdxExtracts.d.ts +0 -0
  523. package/dist/types/mdx/MdxExtracts.js +0 -0
  524. package/dist/types/mdx/MultiViewItemType.d.ts +0 -0
  525. package/dist/types/mdx/MultiViewItemType.js +0 -0
  526. package/dist/types/mdx/PanelType.d.ts +0 -0
  527. package/dist/types/mdx/PanelType.js +0 -0
  528. package/dist/types/mdx/TableOfContentsSectionType.d.ts +0 -0
  529. package/dist/types/mdx/TableOfContentsSectionType.js +0 -0
  530. package/dist/types/mdx/index.d.ts +0 -0
  531. package/dist/types/mdx/index.js +0 -0
  532. package/dist/types/mdx/snippets/import.d.ts +0 -0
  533. package/dist/types/mdx/snippets/import.js +0 -0
  534. package/dist/types/openapi.d.ts +0 -0
  535. package/dist/types/openapi.js +0 -0
  536. package/dist/types/rss.d.ts +0 -0
  537. package/dist/types/rss.js +0 -0
  538. package/dist/validateCustomDomainBasePath.d.ts +0 -0
  539. package/dist/validateCustomDomainBasePath.js +0 -0
  540. package/dist/validateCustomDomainBasePath.test.d.ts +0 -0
  541. package/dist/validateCustomDomainBasePath.test.js +0 -0
  542. package/dist/validateRedirectUrl.d.ts +0 -0
  543. package/dist/validateRedirectUrl.js +0 -0
  544. package/package.json +2 -2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/mdx/utils.js CHANGED
File without changes
@@ -22,9 +22,11 @@ export declare function processMintIgnoreString(mintIgnoreContent: string): stri
22
22
  *
23
23
  * @param filePath The path of the file to check.
24
24
  * @param globs An array of custom glob patterns (output from processMintIgnoreString).
25
+ * @param isDirectory Whether the path is a directory. Directory-only patterns such as `junk/`
26
+ * only match when this is true or `filePath` ends with a slash.
25
27
  * @returns True if the file matches any of the ignore patterns (default or custom), false otherwise.
26
28
  */
27
- export declare function isMintIgnored(filePath: string, globs?: string[]): boolean;
29
+ export declare function isMintIgnored(filePath: string, globs?: string[], isDirectory?: boolean): boolean;
28
30
  /**
29
31
  * A reusable matcher produced by {@link createMintIgnoreMatcher}.
30
32
  *
@@ -41,9 +43,11 @@ export type MintIgnoreMatcher = Pick<Ignore, 'ignores'>;
41
43
  *
42
44
  * @param filePath The path of the file to check.
43
45
  * @param matcher A matcher from {@link createMintIgnoreMatcher}.
46
+ * @param isDirectory Whether the path is a directory. Directory-only patterns such as `junk/`
47
+ * only match when this is true or `filePath` ends with a slash.
44
48
  * @returns True if the file matches any of the matcher's patterns, false otherwise.
45
49
  */
46
- export declare function isMintIgnoredBy(filePath: string, matcher: MintIgnoreMatcher): boolean;
50
+ export declare function isMintIgnoredBy(filePath: string, matcher: MintIgnoreMatcher, isDirectory?: boolean): boolean;
47
51
  /**
48
52
  * Compiles the default ignores plus any custom patterns into a reusable matcher.
49
53
  *
@@ -1,4 +1,5 @@
1
1
  import ignore from 'ignore';
2
+ import { toPosixPath } from './fs/toPosixPath.js';
2
3
  /**
3
4
  * Default patterns that Mintlify always ignores, regardless of .mintignore configuration.
4
5
  * These directories are typically version control, IDE configs, or dependencies.
@@ -43,10 +44,12 @@ export function processMintIgnoreString(mintIgnoreContent) {
43
44
  *
44
45
  * @param filePath The path of the file to check.
45
46
  * @param globs An array of custom glob patterns (output from processMintIgnoreString).
47
+ * @param isDirectory Whether the path is a directory. Directory-only patterns such as `junk/`
48
+ * only match when this is true or `filePath` ends with a slash.
46
49
  * @returns True if the file matches any of the ignore patterns (default or custom), false otherwise.
47
50
  */
48
- export function isMintIgnored(filePath, globs = []) {
49
- return isMintIgnoredBy(filePath, createMintIgnoreMatcher(globs));
51
+ export function isMintIgnored(filePath, globs = [], isDirectory = false) {
52
+ return isMintIgnoredBy(filePath, createMintIgnoreMatcher(globs), isDirectory);
50
53
  }
51
54
  /**
52
55
  * Checks a path against a matcher the caller already built.
@@ -57,10 +60,19 @@ export function isMintIgnored(filePath, globs = []) {
57
60
  *
58
61
  * @param filePath The path of the file to check.
59
62
  * @param matcher A matcher from {@link createMintIgnoreMatcher}.
63
+ * @param isDirectory Whether the path is a directory. Directory-only patterns such as `junk/`
64
+ * only match when this is true or `filePath` ends with a slash.
60
65
  * @returns True if the file matches any of the matcher's patterns, false otherwise.
61
66
  */
62
- export function isMintIgnoredBy(filePath, matcher) {
63
- return matcher.ignores(filePath);
67
+ export function isMintIgnoredBy(filePath, matcher, isDirectory = false) {
68
+ const { path: normalized, hadTrailingSlash } = normalizeMintIgnorePath(filePath);
69
+ if (normalized.length === 0) {
70
+ return false;
71
+ }
72
+ if (isDirectory || hadTrailingSlash) {
73
+ return matcher.ignores(`${normalized}/`);
74
+ }
75
+ return matcher.ignores(normalized);
64
76
  }
65
77
  /**
66
78
  * Compiles the default ignores plus any custom patterns into a reusable matcher.
@@ -76,3 +88,15 @@ export function isMintIgnoredBy(filePath, matcher) {
76
88
  export function createMintIgnoreMatcher(globs = []) {
77
89
  return ignore().add(Array.from(new Set([...DEFAULT_MINT_IGNORES, ...globs])));
78
90
  }
91
+ function normalizeMintIgnorePath(filePath) {
92
+ let normalized = toPosixPath(filePath);
93
+ const hadTrailingSlash = normalized.endsWith('/');
94
+ while (normalized.startsWith('./')) {
95
+ normalized = normalized.slice(2);
96
+ }
97
+ if (normalized.startsWith('/')) {
98
+ normalized = normalized.slice(1);
99
+ }
100
+ normalized = normalized.replace(/\/+$/, '');
101
+ return { path: normalized, hadTrailingSlash };
102
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes