@mintlify/msft-sdk 1.1.22 → 1.1.24

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 (346) hide show
  1. package/dist/api-playground/ApiPlayground/Request/BodySection.js +65 -0
  2. package/dist/api-playground/ApiPlayground/Request/BodySection.js.map +1 -0
  3. package/dist/api-playground/ApiPlayground/Request/ParameterSection.js +33 -0
  4. package/dist/api-playground/ApiPlayground/Request/ParameterSection.js.map +1 -0
  5. package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js +201 -0
  6. package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js.map +1 -0
  7. package/dist/api-playground/ApiPlayground/Request/SecuritySection.js +147 -0
  8. package/dist/api-playground/ApiPlayground/Request/SecuritySection.js.map +1 -0
  9. package/dist/api-playground/ApiPlayground/Request/ServerSection.js +31 -0
  10. package/dist/api-playground/ApiPlayground/Request/ServerSection.js.map +1 -0
  11. package/dist/api-playground/ApiPlayground/Request/index.js +44 -0
  12. package/dist/api-playground/ApiPlayground/Request/index.js.map +1 -0
  13. package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js +94 -0
  14. package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js.map +1 -0
  15. package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js +91 -0
  16. package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js.map +1 -0
  17. package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js +63 -0
  18. package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js.map +1 -0
  19. package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js +34 -0
  20. package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js.map +1 -0
  21. package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js +62 -0
  22. package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js.map +1 -0
  23. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js +110 -0
  24. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js.map +1 -0
  25. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js +88 -0
  26. package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js.map +1 -0
  27. package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js +62 -0
  28. package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js.map +1 -0
  29. package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js +55 -0
  30. package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js.map +1 -0
  31. package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js +68 -0
  32. package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js.map +1 -0
  33. package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js +45 -0
  34. package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js.map +1 -0
  35. package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js +7 -0
  36. package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js.map +1 -0
  37. package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js +45 -0
  38. package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js.map +1 -0
  39. package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js +54 -0
  40. package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js.map +1 -0
  41. package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js +15 -0
  42. package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js.map +1 -0
  43. package/dist/api-playground/ApiPlayground/Response/ResponseError.js +14 -0
  44. package/dist/api-playground/ApiPlayground/Response/ResponseError.js.map +1 -0
  45. package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js +12 -0
  46. package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js.map +1 -0
  47. package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js +20 -0
  48. package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js.map +1 -0
  49. package/dist/api-playground/ApiPlayground/Response/ResponseTable.js +21 -0
  50. package/dist/api-playground/ApiPlayground/Response/ResponseTable.js.map +1 -0
  51. package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js +93 -0
  52. package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js.map +1 -0
  53. package/dist/api-playground/ApiPlayground/Response/index.js +80 -0
  54. package/dist/api-playground/ApiPlayground/Response/index.js.map +1 -0
  55. package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js +24 -0
  56. package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js.map +1 -0
  57. package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js +45 -0
  58. package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js.map +1 -0
  59. package/dist/api-playground/ApiPlayground/components/ArrayCount.js +18 -0
  60. package/dist/api-playground/ApiPlayground/components/ArrayCount.js.map +1 -0
  61. package/dist/api-playground/ApiPlayground/components/BasePathSelector.js +40 -0
  62. package/dist/api-playground/ApiPlayground/components/BasePathSelector.js.map +1 -0
  63. package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js +44 -0
  64. package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js.map +1 -0
  65. package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js +45 -0
  66. package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js.map +1 -0
  67. package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js +39 -0
  68. package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js.map +1 -0
  69. package/dist/api-playground/ApiPlayground/components/InputContainer.js +129 -0
  70. package/dist/api-playground/ApiPlayground/components/InputContainer.js.map +1 -0
  71. package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js +60 -0
  72. package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js.map +1 -0
  73. package/dist/api-playground/ApiPlayground/components/ModalHeader.js +16 -0
  74. package/dist/api-playground/ApiPlayground/components/ModalHeader.js.map +1 -0
  75. package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js +29 -0
  76. package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js.map +1 -0
  77. package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js +20 -0
  78. package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js.map +1 -0
  79. package/dist/api-playground/ApiPlayground/components/PathHeader.js +163 -0
  80. package/dist/api-playground/ApiPlayground/components/PathHeader.js.map +1 -0
  81. package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js +59 -0
  82. package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js.map +1 -0
  83. package/dist/api-playground/ApiPlayground/components/PrettyPath.js +50 -0
  84. package/dist/api-playground/ApiPlayground/components/PrettyPath.js.map +1 -0
  85. package/dist/api-playground/ApiPlayground/components/SendPill.js +40 -0
  86. package/dist/api-playground/ApiPlayground/components/SendPill.js.map +1 -0
  87. package/dist/api-playground/ApiPlayground/components/TrashButton.js +27 -0
  88. package/dist/api-playground/ApiPlayground/components/TrashButton.js.map +1 -0
  89. package/dist/api-playground/ApiPlayground/components/TypeDropdown.js +53 -0
  90. package/dist/api-playground/ApiPlayground/components/TypeDropdown.js.map +1 -0
  91. package/dist/api-playground/ApiPlayground/index.js +68 -0
  92. package/dist/api-playground/ApiPlayground/index.js.map +1 -0
  93. package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js +51 -0
  94. package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js.map +1 -0
  95. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js +20 -0
  96. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js.map +1 -0
  97. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js +19 -0
  98. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js.map +1 -0
  99. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js +29 -0
  100. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js.map +1 -0
  101. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js +6 -0
  102. package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js.map +1 -0
  103. package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js +13 -0
  104. package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js.map +1 -0
  105. package/dist/api-playground/EndpointFields/components/Description.js +13 -0
  106. package/dist/api-playground/EndpointFields/components/Description.js.map +1 -0
  107. package/dist/api-playground/EndpointFields/components/OneOfDropdown.js +20 -0
  108. package/dist/api-playground/EndpointFields/components/OneOfDropdown.js.map +1 -0
  109. package/dist/api-playground/EndpointFields/components/OptionDropdown.js +36 -0
  110. package/dist/api-playground/EndpointFields/components/OptionDropdown.js.map +1 -0
  111. package/dist/api-playground/EndpointFields/components/SectionHeading.js +44 -0
  112. package/dist/api-playground/EndpointFields/components/SectionHeading.js.map +1 -0
  113. package/dist/api-playground/EndpointFields/index.js +7 -0
  114. package/dist/api-playground/EndpointFields/index.js.map +1 -0
  115. package/dist/api-playground-2/Api.js +13 -0
  116. package/dist/api-playground-2/Api.js.map +1 -0
  117. package/dist/api-playground-2/ApiExamples.js +27 -18
  118. package/dist/api-playground-2/ApiExamples.js.map +1 -1
  119. package/dist/api-playground-2/ApiFields.js +253 -0
  120. package/dist/api-playground-2/ApiFields.js.map +1 -0
  121. package/dist/api-playground-2/EndpointHeader.js +52 -0
  122. package/dist/api-playground-2/EndpointHeader.js.map +1 -0
  123. package/dist/api-playground-2/OperationPage.js +101 -0
  124. package/dist/api-playground-2/OperationPage.js.map +1 -0
  125. package/dist/api-playground-2/Playground.js +136 -0
  126. package/dist/api-playground-2/Playground.js.map +1 -0
  127. package/dist/api-playground-2/SchemaPage.js +14 -0
  128. package/dist/api-playground-2/SchemaPage.js.map +1 -0
  129. package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js +88 -0
  130. package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js.map +1 -0
  131. package/dist/api-playground-2/components/EndpointFields/fields/Enum.js +16 -0
  132. package/dist/api-playground-2/components/EndpointFields/fields/Enum.js.map +1 -0
  133. package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js +21 -0
  134. package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js.map +1 -0
  135. package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js +57 -0
  136. package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js.map +1 -0
  137. package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js +90 -0
  138. package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js.map +1 -0
  139. package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js +122 -0
  140. package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js.map +1 -0
  141. package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js +75 -0
  142. package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js.map +1 -0
  143. package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js +253 -0
  144. package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js.map +1 -0
  145. package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js +28 -0
  146. package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js.map +1 -0
  147. package/dist/api-playground-2/components/Example/GeneratedRequestExample.js +113 -118
  148. package/dist/api-playground-2/components/Example/GeneratedRequestExample.js.map +1 -1
  149. package/dist/api-playground-2/components/Example/RequestExample.js +55 -50
  150. package/dist/api-playground-2/components/Example/RequestExample.js.map +1 -1
  151. package/dist/api-playground-2/components/Request/BodySection.js +41 -0
  152. package/dist/api-playground-2/components/Request/BodySection.js.map +1 -0
  153. package/dist/api-playground-2/components/Request/InputSectionContainer.js +66 -0
  154. package/dist/api-playground-2/components/Request/InputSectionContainer.js.map +1 -0
  155. package/dist/api-playground-2/components/Request/ParameterSection.js +36 -0
  156. package/dist/api-playground-2/components/Request/ParameterSection.js.map +1 -0
  157. package/dist/api-playground-2/components/Request/SecuritySection.js +55 -0
  158. package/dist/api-playground-2/components/Request/SecuritySection.js.map +1 -0
  159. package/dist/api-playground-2/components/Request/ServerSection.js +33 -0
  160. package/dist/api-playground-2/components/Request/ServerSection.js.map +1 -0
  161. package/dist/api-playground-2/components/Request/inputs/ArrayInput.js +55 -0
  162. package/dist/api-playground-2/components/Request/inputs/ArrayInput.js.map +1 -0
  163. package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js +48 -0
  164. package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js.map +1 -0
  165. package/dist/api-playground-2/components/Request/inputs/FileInput.js +43 -0
  166. package/dist/api-playground-2/components/Request/inputs/FileInput.js.map +1 -0
  167. package/dist/api-playground-2/components/Request/inputs/InputContainer.js +127 -0
  168. package/dist/api-playground-2/components/Request/inputs/InputContainer.js.map +1 -0
  169. package/dist/api-playground-2/components/Request/inputs/NullInput.js +15 -0
  170. package/dist/api-playground-2/components/Request/inputs/NullInput.js.map +1 -0
  171. package/dist/api-playground-2/components/Request/inputs/NumberInput.js +46 -0
  172. package/dist/api-playground-2/components/Request/inputs/NumberInput.js.map +1 -0
  173. package/dist/api-playground-2/components/Request/inputs/ObjectInput.js +104 -0
  174. package/dist/api-playground-2/components/Request/inputs/ObjectInput.js.map +1 -0
  175. package/dist/api-playground-2/components/Request/inputs/OneOfInput.js +77 -0
  176. package/dist/api-playground-2/components/Request/inputs/OneOfInput.js.map +1 -0
  177. package/dist/api-playground-2/components/Request/inputs/SelectInput.js +54 -0
  178. package/dist/api-playground-2/components/Request/inputs/SelectInput.js.map +1 -0
  179. package/dist/api-playground-2/components/Request/inputs/StringInput.js +44 -0
  180. package/dist/api-playground-2/components/Request/inputs/StringInput.js.map +1 -0
  181. package/dist/api-playground-2/components/Request/inputs/TextInput.js +29 -0
  182. package/dist/api-playground-2/components/Request/inputs/TextInput.js.map +1 -0
  183. package/dist/api-playground-2/components/TypeDropdown.js +48 -0
  184. package/dist/api-playground-2/components/TypeDropdown.js.map +1 -0
  185. package/dist/api-playground-2/constants/index.js +6 -4
  186. package/dist/api-playground-2/constants/index.js.map +1 -1
  187. package/dist/api-playground-2/contexts/ApiPlaygroundContext.js +11 -0
  188. package/dist/api-playground-2/contexts/ApiPlaygroundContext.js.map +1 -0
  189. package/dist/api-playground-2/generators/createBodyData.js +1 -1
  190. package/dist/api-playground-2/generators/createBodyData.js.map +1 -1
  191. package/dist/api-playground-2/generators/createHeaders.js +18 -18
  192. package/dist/api-playground-2/generators/createHeaders.js.map +1 -1
  193. package/dist/api-playground-2/generators/generateInteractiveCodeSample.js +21 -19
  194. package/dist/api-playground-2/generators/generateInteractiveCodeSample.js.map +1 -1
  195. package/dist/api-playground-2/generators/generateRequest.js +26 -25
  196. package/dist/api-playground-2/generators/generateRequest.js.map +1 -1
  197. package/dist/api-playground-2/generators/generateSnippet.js +187 -36
  198. package/dist/api-playground-2/generators/generateSnippet.js.map +1 -1
  199. package/dist/api-playground-2/generators/generateSnippetMap.js +13 -11
  200. package/dist/api-playground-2/generators/generateSnippetMap.js.map +1 -1
  201. package/dist/api-playground-2/hooks/useCopyPathWithInputs.js +14 -0
  202. package/dist/api-playground-2/hooks/useCopyPathWithInputs.js.map +1 -0
  203. package/dist/api-playground-2/hooks/useInitializeInputs.js +101 -0
  204. package/dist/api-playground-2/hooks/useInitializeInputs.js.map +1 -0
  205. package/dist/api-playground-2/hooks/usePlaygroundInputsStore.js +24 -13
  206. package/dist/api-playground-2/hooks/usePlaygroundInputsStore.js.map +1 -1
  207. package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js +156 -0
  208. package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js.map +1 -0
  209. package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js +57 -0
  210. package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js.map +1 -0
  211. package/dist/api-playground-2/schemaGraph/processExamples.js +41 -8
  212. package/dist/api-playground-2/schemaGraph/processExamples.js.map +1 -1
  213. package/dist/api-playground-2/schemaGraph/processSecurityOptions.js +107 -0
  214. package/dist/api-playground-2/schemaGraph/processSecurityOptions.js.map +1 -0
  215. package/dist/api-playground-2/schemaGraph/utils.js +195 -43
  216. package/dist/api-playground-2/schemaGraph/utils.js.map +1 -1
  217. package/dist/api-playground-2/types/index.js +118 -0
  218. package/dist/api-playground-2/types/index.js.map +1 -0
  219. package/dist/common/guards.js +37 -0
  220. package/dist/common/guards.js.map +1 -0
  221. package/dist/common/potentiallyParseOpenApiString.js +25 -0
  222. package/dist/common/potentiallyParseOpenApiString.js.map +1 -0
  223. package/dist/common/replaceSlashIndex.js +7 -0
  224. package/dist/common/replaceSlashIndex.js.map +1 -0
  225. package/dist/common/slugToTitle.js +11 -0
  226. package/dist/common/slugToTitle.js.map +1 -0
  227. package/dist/components/Api/Expandable.js +119 -0
  228. package/dist/components/Api/Expandable.js.map +1 -0
  229. package/dist/components/Api/Markdown.js +66 -0
  230. package/dist/components/Api/Markdown.js.map +1 -0
  231. package/dist/components/Api/Param.js +191 -0
  232. package/dist/components/Api/Param.js.map +1 -0
  233. package/dist/components/content-components/code-block.js +68 -61
  234. package/dist/components/content-components/code-block.js.map +1 -1
  235. package/dist/components/content-components/code-group.js +36 -25
  236. package/dist/components/content-components/code-group.js.map +1 -1
  237. package/dist/components/content-components/getNodeText.js +5 -0
  238. package/dist/components/content-components/getNodeText.js.map +1 -0
  239. package/dist/components/toc/index.js +4 -4
  240. package/dist/components/toc/index.js.map +1 -1
  241. package/dist/constants/index.js +5 -0
  242. package/dist/constants/index.js.map +1 -0
  243. package/dist/constants/zIndex.js +7 -0
  244. package/dist/constants/zIndex.js.map +1 -0
  245. package/dist/contexts/ApiPlaygroundInputsContext.js +18 -0
  246. package/dist/contexts/ApiPlaygroundInputsContext.js.map +1 -0
  247. package/dist/contexts/ConfigContext.js +2 -3
  248. package/dist/contexts/ConfigContext.js.map +1 -1
  249. package/dist/contexts/EndpointLocationContext.js +18 -0
  250. package/dist/contexts/EndpointLocationContext.js.map +1 -0
  251. package/dist/contexts/MDXContentContext.js +19 -0
  252. package/dist/contexts/MDXContentContext.js.map +1 -0
  253. package/dist/env.js +6 -1
  254. package/dist/env.js.map +1 -1
  255. package/dist/hooks/useApiPlaygroundInputs.js +7 -0
  256. package/dist/hooks/useApiPlaygroundInputs.js.map +1 -0
  257. package/dist/hooks/useApiPlaygroundPrefillExamples.js +40 -0
  258. package/dist/hooks/useApiPlaygroundPrefillExamples.js.map +1 -0
  259. package/dist/hooks/useBaseUrlOptions.js +19 -0
  260. package/dist/hooks/useBaseUrlOptions.js.map +1 -0
  261. package/dist/hooks/useCheckHash.js +18 -0
  262. package/dist/hooks/useCheckHash.js.map +1 -0
  263. package/dist/hooks/useComponentSchemas.js +10 -0
  264. package/dist/hooks/useComponentSchemas.js.map +1 -0
  265. package/dist/hooks/useCurrentPath.js +17 -0
  266. package/dist/hooks/useCurrentPath.js.map +1 -0
  267. package/dist/hooks/useEndpoint.js +3 -3
  268. package/dist/hooks/useExpandableMemory.js +46 -0
  269. package/dist/hooks/useExpandableMemory.js.map +1 -0
  270. package/dist/hooks/useGenerateNextAdditionalProperties.js +12 -0
  271. package/dist/hooks/useGenerateNextAdditionalProperties.js.map +1 -0
  272. package/dist/hooks/useGenerateNextItems.js +12 -0
  273. package/dist/hooks/useGenerateNextItems.js.map +1 -0
  274. package/dist/hooks/useGenerateNextProperties.js +12 -0
  275. package/dist/hooks/useGenerateNextProperties.js.map +1 -0
  276. package/dist/hooks/useKeyboardShortcut.js +26 -0
  277. package/dist/hooks/useKeyboardShortcut.js.map +1 -0
  278. package/dist/hooks/useMDXContent.js +7 -0
  279. package/dist/hooks/useMDXContent.js.map +1 -0
  280. package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js +10 -0
  281. package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js.map +1 -0
  282. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js +16 -0
  283. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js.map +1 -0
  284. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js +16 -0
  285. package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js.map +1 -0
  286. package/dist/hooks/usePlaygroundSchemaOptions.js +43 -0
  287. package/dist/hooks/usePlaygroundSchemaOptions.js.map +1 -0
  288. package/dist/hooks/usePrefilledInputs/index.js +66 -0
  289. package/dist/hooks/usePrefilledInputs/index.js.map +1 -0
  290. package/dist/hooks/usePrefilledInputs/storedServerVariables.js +30 -0
  291. package/dist/hooks/usePrefilledInputs/storedServerVariables.js.map +1 -0
  292. package/dist/hooks/useSecurityOption.js +11 -0
  293. package/dist/hooks/useSecurityOption.js.map +1 -0
  294. package/dist/hooks/useSendPlaygroundRequest.js +146 -15
  295. package/dist/hooks/useSendPlaygroundRequest.js.map +1 -1
  296. package/dist/hooks/useSetDefaultValue.js +64 -0
  297. package/dist/hooks/useSetDefaultValue.js.map +1 -0
  298. package/dist/index.d.ts +281 -0
  299. package/dist/index.js +143 -108
  300. package/dist/index.js.map +1 -1
  301. package/dist/openapi/filterEnums.js +21 -0
  302. package/dist/openapi/filterEnums.js.map +1 -0
  303. package/dist/openapi/generateNextAdditionalProperties.js +8 -0
  304. package/dist/openapi/generateNextAdditionalProperties.js.map +1 -0
  305. package/dist/openapi/generateNextItems.js +8 -0
  306. package/dist/openapi/generateNextItems.js.map +1 -0
  307. package/dist/openapi/generateNextProperties.js +24 -0
  308. package/dist/openapi/generateNextProperties.js.map +1 -0
  309. package/dist/openapi/generateOptionLabels.js +21 -0
  310. package/dist/openapi/generateOptionLabels.js.map +1 -0
  311. package/dist/openapi/generateSimpleLabels.js +5 -0
  312. package/dist/openapi/generateSimpleLabels.js.map +1 -0
  313. package/dist/openapi/generateTypeStringFromSchema.js +34 -0
  314. package/dist/openapi/generateTypeStringFromSchema.js.map +1 -0
  315. package/dist/openapi/getAuthFilteredSchemaArray.js +19 -0
  316. package/dist/openapi/getAuthFilteredSchemaArray.js.map +1 -0
  317. package/dist/paths/isEqualIgnoringLeadingSlash.js +22 -0
  318. package/dist/paths/isEqualIgnoringLeadingSlash.js.map +1 -0
  319. package/dist/paths/optionallyRemoveLeadingSlash.js +7 -0
  320. package/dist/paths/optionallyRemoveLeadingSlash.js.map +1 -0
  321. package/dist/paths/optionallyRemoveTrailingSlash.js +7 -0
  322. package/dist/paths/optionallyRemoveTrailingSlash.js.map +1 -0
  323. package/dist/styles.css +1 -1
  324. package/dist/utils/api-playground/defaults.js +16 -0
  325. package/dist/utils/api-playground/defaults.js.map +1 -0
  326. package/dist/utils/api-playground/paramFieldDefaults.js +11 -0
  327. package/dist/utils/api-playground/paramFieldDefaults.js.map +1 -0
  328. package/dist/utils/api-reference/getFilteredSecurityOptions.js +5 -0
  329. package/dist/utils/api-reference/getFilteredSecurityOptions.js.map +1 -0
  330. package/dist/utils/api-reference/getNextPropertiesByType.js +6 -0
  331. package/dist/utils/api-reference/getNextPropertiesByType.js.map +1 -0
  332. package/dist/utils/containsMarkdownTable.js +5 -0
  333. package/dist/utils/containsMarkdownTable.js.map +1 -0
  334. package/dist/utils/copyToClipboard.js +12 -0
  335. package/dist/utils/copyToClipboard.js.map +1 -0
  336. package/dist/utils/decodeSlug.js +8 -0
  337. package/dist/utils/decodeSlug.js.map +1 -0
  338. package/dist/utils/flattenObject.js +11 -0
  339. package/dist/utils/flattenObject.js.map +1 -0
  340. package/dist/utils/formatJSON.js +39 -0
  341. package/dist/utils/formatJSON.js.map +1 -0
  342. package/dist/utils/optionallyAddLeadingSlash.js +7 -0
  343. package/dist/utils/optionallyAddLeadingSlash.js.map +1 -0
  344. package/dist/utils/scrollElementIntoView.js +21 -0
  345. package/dist/utils/scrollElementIntoView.js.map +1 -0
  346. package/package.json +2 -3
package/dist/index.d.ts CHANGED
@@ -1,18 +1,46 @@
1
+ import { ApiPlaygroundDisplayType } from '@mintlify/models';
2
+ import { ApiPlaygroundInputs } from '@mintlify/validation';
3
+ import { ApiPlaygroundResultType } from '@mintlify/models';
1
4
  import { ClassValue } from 'clsx';
5
+ import { CodeSample } from '@mintlify/validation';
6
+ import { Context } from 'react';
2
7
  import { default as default_2 } from 'react';
8
+ import { DocsConfig } from '@mintlify/validation';
3
9
  import { Element as Element_2 } from 'hast';
10
+ import { Endpoint } from '@mintlify/validation';
4
11
  import { Handle } from 'hast-util-to-mdast';
5
12
  import { JSX as JSX_2 } from 'react/jsx-runtime';
13
+ import { MdxExtracts as MdxExtracts_2 } from '@mintlify/common';
6
14
  import { MdxJsxFlowElement } from 'mdast-util-mdx-jsx';
7
15
  import { Node as Node_2 } from 'unist';
8
16
  import { Node as Node_3 } from 'hast';
17
+ import { OpenAPIV3 } from 'openapi-types';
18
+ import { OpenAPIV3_1 } from 'openapi-types';
19
+ import { Operation } from '@mintlify/validation';
20
+ import { PageMetaTags } from '@mintlify/models';
21
+ import { ParameterObject } from '@mintlify/validation';
9
22
  import { Plugin as Plugin_2 } from 'unified';
10
23
  import * as React_2 from 'react';
11
24
  import { ReactNode } from 'react';
25
+ import { RequestBodyObject } from '@mintlify/validation';
26
+ import { ResponseObject } from '@mintlify/validation';
12
27
  import { Root } from 'mdast';
13
28
  import { Root as Root_2 } from 'hast';
29
+ import { SchemaObject } from '@mintlify/validation';
30
+ import { SecurityOption } from '@mintlify/validation';
31
+ import { ServerObject } from '@mintlify/validation';
14
32
  import { State } from 'hast-util-to-mdast';
33
+ import { StoreApi } from 'zustand';
15
34
  import { Text as Text_2 } from 'hast';
35
+ import { UseBoundStore } from 'zustand';
36
+ import { UUID } from '@mintlify/validation';
37
+
38
+ export declare const addApiReferenceDataFromMdxAndDocsConfig: ({ pageMetadata, apiReferenceData2, mdxExtracts, docsConfig, }: {
39
+ pageMetadata: PageMetaTags;
40
+ apiReferenceData2: ApiReferenceDataV2 | undefined;
41
+ mdxExtracts: MdxExtracts_2 | undefined;
42
+ docsConfig: DocsConfig | undefined;
43
+ }) => ApiReferenceDataV2;
16
44
 
17
45
  export declare const allComponents: {
18
46
  CodeBlock: typeof CodeBlock;
@@ -28,12 +56,82 @@ export declare const allComponents: {
28
56
  Summary: typeof Summary;
29
57
  };
30
58
 
59
+ export declare const Api: ({ children }: {
60
+ children: ReactNode;
61
+ }) => JSX_2.Element | null;
62
+
63
+ export declare const ApiExamples: ({ className, isModal, apiReferenceData, noInputs }: ApiExamplesProps) => JSX_2.Element;
64
+
65
+ declare type ApiExamplesProps = {
66
+ className?: string;
67
+ isModal?: boolean;
68
+ apiReferenceData?: ApiReferenceDataV2;
69
+ noInputs?: boolean;
70
+ };
71
+
72
+ export declare function ApiFields({ pageMetadata }: {
73
+ pageMetadata: PageMetaTags;
74
+ }): JSX_2.Element;
75
+
76
+ export declare const ApiPlayground: ({ endpoint, display }: ApiPlaygroundParams) => JSX_2.Element;
77
+
78
+ export declare const ApiPlaygroundContext: Context<ApiPlaygroundContextType>;
79
+
80
+ export declare const ApiPlaygroundContextLegacy: Context<ApiPlaygroundContextTypeLegacy>;
81
+
82
+ export declare type ApiPlaygroundContextType = {
83
+ isSending?: boolean;
84
+ sendRequest?: () => void;
85
+ isPlaygroundExpanded: boolean;
86
+ result?: ApiPlaygroundResultType;
87
+ selectedBaseUrlIndex: number;
88
+ setSelectedBaseUrlIndex?: (index: number) => void;
89
+ setIsPlaygroundExpanded?: (expanded: boolean) => void;
90
+ baseUrlOptions?: string[];
91
+ selectedExampleIndex?: number;
92
+ setSelectedExampleIndex?: (index: number) => void;
93
+ };
94
+
95
+ export declare type ApiPlaygroundContextTypeLegacy = {
96
+ isSending?: boolean;
97
+ sendRequest?: () => void;
98
+ isPlaygroundExpanded: boolean;
99
+ result?: ApiPlaygroundResultType;
100
+ selectedBaseUrlIndex: number;
101
+ setSelectedBaseUrlIndex?: (index: number) => void;
102
+ setIsPlaygroundExpanded?: (expanded: boolean) => void;
103
+ baseUrlOptions?: string[];
104
+ selectedExampleIndex?: number;
105
+ setSelectedExampleIndex?: (index: number) => void;
106
+ };
107
+
108
+ declare type ApiPlaygroundParams = {
109
+ endpoint: Endpoint;
110
+ display: ApiPlaygroundDisplayType;
111
+ };
112
+
31
113
  declare interface ApiReferenceContextValue {
32
114
  apiReferenceData2?: any;
33
115
  docsConfig?: any;
34
116
  mdxExtracts?: any;
35
117
  }
36
118
 
119
+ export declare interface ApiReferenceDataV2 {
120
+ filename?: string;
121
+ originalFileLocation?: string;
122
+ operation?: OperationV2;
123
+ schemaData?: SchemaV2;
124
+ dependencies?: {
125
+ parameters?: Record<UUID, ParameterObject>;
126
+ requestBody?: RequestBodyObject;
127
+ responses?: Record<UUID, ResponseObject>;
128
+ servers: Record<UUID, ServerObject>;
129
+ security: Record<UUID, ResolvedSecurityObject>;
130
+ processedSecurityOptions?: ProcessedSecurityOption[];
131
+ schemas?: Record<UUID, SchemaObject>;
132
+ };
133
+ }
134
+
37
135
  export declare function ApiReferenceProvider2({ apiReferenceData2, docsConfig, mdxExtracts, children, }: ApiReferenceProvider2Props): JSX_2.Element;
38
136
 
39
137
  declare interface ApiReferenceProvider2Props {
@@ -62,6 +160,12 @@ declare type CalloutType = "note" | "tip" | "important" | "caution" | "warning"
62
160
 
63
161
  export declare const capitalize: (str: string) => string;
64
162
 
163
+ declare const CIRCULAR_REF_KEY = "$circularRef";
164
+
165
+ export declare type CircularRefObject = {
166
+ [CIRCULAR_REF_KEY]: UUID;
167
+ };
168
+
65
169
  export declare function cn(...inputs: ClassValue[]): string;
66
170
 
67
171
  export declare function CodeBlock({ children, className, fileName, language, blob, contentType, }: CodeBlockProps): JSX_2.Element;
@@ -75,6 +179,13 @@ declare interface CodeBlockProps {
75
179
  contentType?: string;
76
180
  }
77
181
 
182
+ export declare type CodeExample = {
183
+ dropdown?: boolean;
184
+ language?: string;
185
+ code?: string | default_2.ReactElement | default_2.ReactElement[];
186
+ filename?: string;
187
+ };
188
+
78
189
  declare interface ComponentsContextValue {
79
190
  LinkComponent?: LinkComponent;
80
191
  }
@@ -128,6 +239,8 @@ declare interface DetailsProps {
128
239
  open?: boolean;
129
240
  }
130
241
 
242
+ export declare type DifferentiatedType = SchemaObject['type'] | 'oneOf' | 'any' | 'enum<string>' | 'enum<number>' | 'enum<integer>' | 'file';
243
+
131
244
  /**
132
245
  * DocsLayout component provides a complete documentation layout with sidebar navigation
133
246
  * and main content area. It's designed to be scalable, customizable, and tree-shakable.
@@ -297,6 +410,24 @@ export declare type ElementType = {
297
410
  tagName?: string;
298
411
  };
299
412
 
413
+ export declare const EndpointFields: () => JSX_2.Element | null;
414
+
415
+ export declare const EndpointHeader: ({ onCopy, baseUrlOptions, selectedBaseUrlIndex, setSelectedBaseUrlIndex, isCopiedActive, display, path, method, onBaseUrlChange, isInPlaygroundModal, }: EndpointHeaderProps) => JSX_2.Element;
416
+
417
+ declare type EndpointHeaderProps = {
418
+ onCopy: () => void;
419
+ baseUrlOptions: string[];
420
+ selectedBaseUrlIndex: number;
421
+ setSelectedBaseUrlIndex: (index: number) => void;
422
+ isCopiedActive: boolean;
423
+ isInPlaygroundModal: boolean;
424
+ display: 'simple' | 'none' | 'interactive';
425
+ path: string;
426
+ method: string;
427
+ onBaseUrlChange: () => void;
428
+ children?: React.ReactNode;
429
+ };
430
+
300
431
  export declare function extractHeadings(): (tree: Node_2, file: unknown) => void;
301
432
 
302
433
  export declare function generateLlmsFullTxt(pages: LlmsPageConfig[], baseUrl: string): Promise<string>;
@@ -357,6 +488,9 @@ export declare interface LlmsPageConfig {
357
488
  };
358
489
  }
359
490
 
491
+ declare type Location_2 = 'request' | 'response';
492
+ export { Location_2 as Location }
493
+
360
494
  export declare interface MDXComponents {
361
495
  h1?: default_2.ComponentType<any>;
362
496
  h2?: default_2.ComponentType<any>;
@@ -444,6 +578,31 @@ declare interface NavTreeProps {
444
578
  bottomLinks?: BottomLinkConfig[];
445
579
  }
446
580
 
581
+ export declare const OperationPage: ({ apiReferenceData, operation, children, }: {
582
+ apiReferenceData: ApiReferenceDataV2;
583
+ operation: OperationV2;
584
+ children: ReactNode;
585
+ }) => JSX_2.Element;
586
+
587
+ export declare type OperationV2 = Operation & {
588
+ path: string;
589
+ baseUrl: string | undefined;
590
+ baseUrlOptions: string[];
591
+ title: string;
592
+ description: string;
593
+ securityRequirements?: SecurityOption[];
594
+ requestExamples?: CodeExample[];
595
+ responseExamples?: CodeExample[];
596
+ codeSamples?: CodeSample[];
597
+ requestExampleType?: 'mdx' | 'webhook' | 'codeSamples' | 'generated';
598
+ requestExampleLanguages?: string[];
599
+ requiredOnlyExamples?: boolean;
600
+ responseExampleType?: 'mdx' | 'generated';
601
+ prefillPlaygroundWithExample?: boolean;
602
+ prefillPlaygroundExamples?: ApiPlaygroundInputs[];
603
+ disableProxy?: boolean;
604
+ };
605
+
447
606
  export declare const PageContextMenu: ({ className, pathname, markdownContent, onCopyMarkdown, onViewMarkdown, allPages, baseUrl, }: PageContextMenuProps) => JSX_2.Element;
448
607
 
449
608
  /**
@@ -502,6 +661,39 @@ export declare interface PlainTextPageProps {
502
661
  content: string;
503
662
  }
504
663
 
664
+ export declare const Playground: ({ isPlaygroundExpanded, setIsPlaygroundExpanded, baseUrl, baseUrlOptions, apiReferenceData, }: PlaygroundProps) => JSX_2.Element | null;
665
+
666
+ declare interface PlaygroundInputsState {
667
+ inputs: Record<string, PlaygroundInputValue>;
668
+ initialize: (initialValues: Record<string, PlaygroundInputValue>) => void;
669
+ setInput: (name: string, value: PlaygroundInputValue) => void;
670
+ setInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
671
+ replaceInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
672
+ getInput: (name: string) => PlaygroundInputValue;
673
+ getApiPlaygroundInputs: () => ApiPlaygroundInputs;
674
+ clear: () => void;
675
+ reset: () => void;
676
+ selectedSecurityOptionIndex: number;
677
+ setSelectedSecurityOptionIndex: (index: number) => void;
678
+ }
679
+
680
+ declare type PlaygroundInputValue = unknown;
681
+
682
+ declare type PlaygroundProps = {
683
+ isPlaygroundExpanded: boolean;
684
+ setIsPlaygroundExpanded: (isPlaygroundExpanded: boolean) => void;
685
+ baseUrl: string;
686
+ baseUrlOptions: string[];
687
+ apiReferenceData: ApiReferenceDataV2;
688
+ };
689
+
690
+ export declare type ProcessedSecurityOption = {
691
+ scheme: SecuritySchemeAndScope;
692
+ schema: SchemaObject;
693
+ };
694
+
695
+ export declare const processSecurityOptions: (apiReferenceData: ApiReferenceDataV2) => ProcessedSecurityOption[];
696
+
505
697
  export declare const rehypeCallouts: Plugin_2<[], Node_3>;
506
698
 
507
699
  export declare const rehypeCodeblocks: Plugin_2<[], Node_3>;
@@ -524,8 +716,54 @@ export declare function remarkHeadingIds(): (tree: Root) => void;
524
716
 
525
717
  export declare function removeHtmlComments(root: Root_2): void;
526
718
 
719
+ /**
720
+ * SchemaObject after being processed by the various transformations in `resolveOperationWithDependencies`.
721
+ * This is the type of object that all the API UI components should be consuming. Any properties that
722
+ * aren't actually part of the OpenAPI V3/3.1 SchemaObject type should be put here—as such, we should
723
+ * be very judicious about adding anything to this type!
724
+ */
725
+ export declare type ResolvedSchemaObject = SchemaObject & {
726
+ /**
727
+ * Distinct from the `required` property of the OpenAPI V3/3.1 SchemaObject type, which is either
728
+ * a boolean on a property (V3) or an array of strings on the parent schema (V3.1). Our version is
729
+ * determined from whichever one of those is relevant; a UI component doesn't have to do any figuring-out
730
+ * itself, it just has to check for this property.
731
+ */
732
+ isRequired?: boolean;
733
+ /**
734
+ * A unique key representing the path to this schema node from the root. Used for generating
735
+ * unique input keys in the playground data store.
736
+ */
737
+ uniqueKey?: string;
738
+ isCircular?: boolean;
739
+ type?: DifferentiatedType;
740
+ [CIRCULAR_REF_KEY]?: UUID;
741
+ };
742
+
743
+ export declare type ResolvedSecurityObject = {
744
+ [name: string]: SecuritySchemeAndScope;
745
+ };
746
+
527
747
  export declare const sanitizePreTags: Plugin_2<[], Node_3>;
528
748
 
749
+ export declare type SchemaGeneratedExample = {
750
+ title: string;
751
+ description?: string;
752
+ value: unknown;
753
+ };
754
+
755
+ export declare const SchemaPage: ({ apiReferenceData, children, }: {
756
+ apiReferenceData: ApiReferenceDataV2;
757
+ children: ReactNode;
758
+ }) => JSX_2.Element | null;
759
+
760
+ export declare type SchemaV2 = SchemaObject;
761
+
762
+ export declare type SecuritySchemeAndScope = (OpenAPIV3.SecuritySchemeObject | OpenAPIV3_1.SecuritySchemeObject) & {
763
+ scopes?: string[];
764
+ 'x-default'?: string;
765
+ };
766
+
529
767
  export declare function serializeMdx(mdxString: string): Promise<SerializeMdxResult>;
530
768
 
531
769
  export declare interface SerializeMdxResult {
@@ -598,8 +836,51 @@ export declare function useApiReference(): ApiReferenceContextValue | undefined;
598
836
 
599
837
  export declare function useComponents(): ComponentsContextValue;
600
838
 
839
+ export declare const useCopyPathWithInputs: ({ path, baseUrl }: {
840
+ path: string;
841
+ baseUrl: string;
842
+ }) => string;
843
+
844
+ /**
845
+ * CLANKED
846
+ * Syncs playground state with URL pathname changes.
847
+ *
848
+ * This hook implements the following behavior:
849
+ * - When the pathname changes, it resets the playground inputs
850
+ * - After reset, it initializes with the new default values for the current endpoint
851
+ * - When playground closes without pathname change, state is preserved
852
+ * - Query parameter changes (like ?playground=open) do NOT reset the state
853
+ *
854
+ * Uses refs to track previous pathname to avoid unnecessary resets.
855
+ */
856
+ export declare function useInitializeInputs({ apiReferenceData, selectedBaseUrlIndex, selectedExampleIndex, selectedRequestBodyContentTypeIndex, }: UsePlaygroundStateSyncProps): void;
857
+
601
858
  export declare function useMarkdownCopy(pathname: string): void;
602
859
 
860
+ export declare const usePlaygroundInputsStore: UseBoundStore<StoreApi<PlaygroundInputsState>>;
861
+
862
+ declare interface UsePlaygroundStateSyncProps {
863
+ apiReferenceData: ApiReferenceDataV2;
864
+ selectedBaseUrlIndex: number;
865
+ selectedExampleIndex: number;
866
+ selectedRequestBodyContentTypeIndex: number;
867
+ }
868
+
869
+ export declare const useSelectedSecurityOption: () => {
870
+ selectedSecurityOptionIndex: number;
871
+ setSelectedSecurityOptionIndex: (index: number) => void;
872
+ };
873
+
874
+ export declare const useSendPlaygroundRequest: ({ apiReferenceData, baseUrl, contentType, setResult, setIsSending, }: UseSendPlaygroundRequestProps) => () => Promise<void>;
875
+
876
+ declare type UseSendPlaygroundRequestProps = {
877
+ apiReferenceData: ApiReferenceDataV2;
878
+ baseUrl: string | undefined;
879
+ contentType: string | undefined;
880
+ setResult: (result: ApiPlaygroundResultType) => void;
881
+ setIsSending: (isSending: boolean) => void;
882
+ };
883
+
603
884
  export declare function ZonePivot({ pivot, target, children }: ZonePivotProps): JSX_2.Element | null;
604
885
 
605
886
  export declare interface ZonePivotGroup {
package/dist/index.js CHANGED
@@ -1,119 +1,154 @@
1
1
  import { DocsPage as r } from "./components/docsPage.js";
2
- import { DocsLayout as m } from "./components/docsLayout.js";
2
+ import { DocsLayout as p } from "./components/docsLayout.js";
3
3
  import { MDXRenderer as a } from "./components/mdx-renderer.js";
4
4
  import { PlainTextPage as f } from "./components/plain-text-page.js";
5
- import { createDefaultComponents as n, defaultComponents as s } from "./components/content-components/default-components.js";
6
- import { ComponentsProvider as i, useComponents as T } from "./context/components-context.js";
7
- import { NavTree as b } from "./components/nav-tree/index.js";
8
- import { ApiReferenceProvider2 as P, useApiReference as y } from "./components/Api/ApiReferenceProvider.js";
9
- import { TableOfContents as c } from "./components/toc/index.js";
10
- import { PivotAwareTOC as u } from "./components/toc/pivot-aware-toc.js";
11
- import { PageContextMenu as k } from "./components/page-context-menu.js";
12
- import { copyMarkdownToClipboard as w, getPageMarkdown as R, useMarkdownCopy as D } from "./hooks/useMarkdownCopy.js";
13
- import { generateLlmsFullTxt as Z, generateLlmsTxt as L } from "./utils/generate-llms-txt.js";
14
- import { getNodeText as A } from "./utils/get-node-text.js";
15
- import { capitalize as B } from "./utils/string.js";
16
- import { cn as I } from "./utils/cn.js";
17
- import { getClassNames as S, getTextContent as J, isElement as X } from "./utils/rehype.js";
18
- import { convertHtmlToMdx as q } from "./parser/convert-html-to-mdx.js";
19
- import { serializeMdx as K } from "./parser/serialize-mdx.js";
20
- import { extractHeadings as U } from "./plugins/extract-headings.js";
21
- import { rehypeRemoveHtmlComments as W, removeHtmlComments as Y } from "./plugins/sanitize/remove-html-comments.js";
22
- import { CodeBlock as $ } from "./components/content-components/code-block.js";
23
- import { Heading as oe } from "./components/content-components/heading.js";
24
- import { Link as te } from "./components/content-components/link.js";
25
- import { Callout as pe } from "./components/content-components/callouts.js";
26
- import { ZonePivot as xe } from "./components/content-components/zone-pivots/zone-pivot.js";
27
- import { ZoneTarget as le } from "./components/content-components/zone-pivots/zone-target.js";
28
- import { ZonePivotProvider as se } from "./components/content-components/zone-pivots/zone-pivot-context.js";
29
- import { ZonePivotSelector as ie } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
30
- import { ParamName as Ce } from "./components/content-components/param-name.js";
31
- import { Tabs as ge } from "./components/content-components/tabs/tabs.js";
32
- import { Tab as ye } from "./components/content-components/tabs/tab.js";
33
- import { Details as ce, Summary as ve } from "./components/content-components/details/details.js";
34
- import { Table as he, TableBody as ke, TableCaption as Me, TableCell as we, TableFooter as Re, TableHead as De, TableHeader as Ne, TableRow as Ze } from "./components/content-components/table/index.js";
35
- import { allComponents as ze } from "./components/content-components/all-components.js";
36
- import { Home as Fe } from "./components/content-components/home.js";
37
- import { MobileNavTree as Ee } from "./components/nav-tree/mobile-nav.js";
38
- import { rehypeCodeblocks as Oe } from "./plugins/rehype/rehype-code-blocks.js";
39
- import { remarkHeadingIds as Je } from "./plugins/remark/remark-heading-ids.js";
40
- import { sanitizePreTags as je } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
41
- import { rehypeCallouts as Ge } from "./plugins/sanitize/rehype-callouts.js";
42
- import { rehypeParamName as Qe } from "./plugins/sanitize/rehype-param-name.js";
43
- import { rehypeTabs as Ve } from "./plugins/sanitize/rehype-tabs.js";
44
- import { rehypeDetails as Ye } from "./plugins/sanitize/rehype-details.js";
45
- import { rehypeHeadingIds as $e } from "./plugins/sanitize/rehype-heading-ids.js";
46
- import { rehypeZonePivots as oo } from "./plugins/sanitize/rehype-zone-pivots.js";
47
- import { mdxJsxFlowElementHandler as to, rehypeRemark as mo } from "./plugins/sanitize/rehype-remark.js";
48
- import { tableCellHandler as ao, tableHandler as xo, tableRowHandler as fo } from "./plugins/sanitize/rehype-table-align.js";
5
+ import { createDefaultComponents as l, defaultComponents as s } from "./components/content-components/default-components.js";
6
+ import { ComponentsProvider as d, useComponents as u } from "./context/components-context.js";
7
+ import { NavTree as C } from "./components/nav-tree/index.js";
8
+ import { ApiReferenceProvider2 as y, useApiReference as T } from "./components/Api/ApiReferenceProvider.js";
9
+ import { TableOfContents as b } from "./components/toc/index.js";
10
+ import { PivotAwareTOC as v } from "./components/toc/pivot-aware-toc.js";
11
+ import { PageContextMenu as A } from "./components/page-context-menu.js";
12
+ import { copyMarkdownToClipboard as R, getPageMarkdown as k, useMarkdownCopy as D } from "./hooks/useMarkdownCopy.js";
13
+ import { generateLlmsFullTxt as w, generateLlmsTxt as F } from "./utils/generate-llms-txt.js";
14
+ import { getNodeText as N } from "./utils/get-node-text.js";
15
+ import { capitalize as L } from "./utils/string.js";
16
+ import { cn as Z } from "./utils/cn.js";
17
+ import { getClassNames as B, getTextContent as q, isElement as J } from "./utils/rehype.js";
18
+ import { convertHtmlToMdx as X } from "./parser/convert-html-to-mdx.js";
19
+ import { serializeMdx as G } from "./parser/serialize-mdx.js";
20
+ import { extractHeadings as Q } from "./plugins/extract-headings.js";
21
+ import { rehypeRemoveHtmlComments as V, removeHtmlComments as Y } from "./plugins/sanitize/remove-html-comments.js";
22
+ import { Api as $ } from "./api-playground-2/Api.js";
23
+ import { OperationPage as oe } from "./api-playground-2/OperationPage.js";
24
+ import { SchemaPage as te } from "./api-playground-2/SchemaPage.js";
25
+ import { ApiExamples as me } from "./api-playground-2/ApiExamples.js";
26
+ import { ApiFields as xe } from "./api-playground-2/ApiFields.js";
27
+ import { Playground as ne } from "./api-playground-2/Playground.js";
28
+ import { EndpointHeader as se } from "./api-playground-2/EndpointHeader.js";
29
+ import { ApiPlaygroundContext as de } from "./api-playground-2/contexts/ApiPlaygroundContext.js";
30
+ import { usePlaygroundInputsStore as ge, useSelectedSecurityOption as Ce } from "./api-playground-2/hooks/usePlaygroundInputsStore.js";
31
+ import { useSendPlaygroundRequest as ye } from "./api-playground-2/hooks/useSendPlaygroundRequest.js";
32
+ import { useInitializeInputs as ce } from "./api-playground-2/hooks/useInitializeInputs.js";
33
+ import { useCopyPathWithInputs as He } from "./api-playground-2/hooks/useCopyPathWithInputs.js";
34
+ import { addApiReferenceDataFromMdxAndDocsConfig as he } from "./api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js";
35
+ import { processSecurityOptions as Me } from "./api-playground-2/schemaGraph/processSecurityOptions.js";
36
+ import { ApiPlayground as ke } from "./api-playground/ApiPlayground/index.js";
37
+ import { ApiPlaygroundContext as Se } from "./api-playground/ApiPlayground/ApiPlaygroundContext.js";
38
+ import { default as Fe } from "./api-playground/EndpointFields/index.js";
39
+ import { CodeBlock as Ne } from "./components/content-components/code-block.js";
40
+ import { Heading as Le } from "./components/content-components/heading.js";
41
+ import { Link as Ze } from "./components/content-components/link.js";
42
+ import { Callout as Be } from "./components/content-components/callouts.js";
43
+ import { ZonePivot as Je } from "./components/content-components/zone-pivots/zone-pivot.js";
44
+ import { ZoneTarget as Xe } from "./components/content-components/zone-pivots/zone-target.js";
45
+ import { ZonePivotProvider as Ge } from "./components/content-components/zone-pivots/zone-pivot-context.js";
46
+ import { ZonePivotSelector as Qe } from "./components/content-components/zone-pivots/zone-pivot-selector.js";
47
+ import { ParamName as Ve } from "./components/content-components/param-name.js";
48
+ import { Tabs as _e } from "./components/content-components/tabs/tabs.js";
49
+ import { Tab as eo } from "./components/content-components/tabs/tab.js";
50
+ import { Details as ro, Summary as to } from "./components/content-components/details/details.js";
51
+ import { Table as mo, TableBody as ao, TableCaption as xo, TableCell as fo, TableFooter as no, TableHead as lo, TableHeader as so, TableRow as io } from "./components/content-components/table/index.js";
52
+ import { allComponents as go } from "./components/content-components/all-components.js";
53
+ import { Home as Po } from "./components/content-components/home.js";
54
+ import { MobileNavTree as To } from "./components/nav-tree/mobile-nav.js";
55
+ import { rehypeCodeblocks as bo } from "./plugins/rehype/rehype-code-blocks.js";
56
+ import { remarkHeadingIds as vo } from "./plugins/remark/remark-heading-ids.js";
57
+ import { sanitizePreTags as Ao } from "./plugins/sanitize/rehype-pre-to-mdx-fence.js";
58
+ import { rehypeCallouts as Ro } from "./plugins/sanitize/rehype-callouts.js";
59
+ import { rehypeParamName as Do } from "./plugins/sanitize/rehype-param-name.js";
60
+ import { rehypeTabs as wo } from "./plugins/sanitize/rehype-tabs.js";
61
+ import { rehypeDetails as Io } from "./plugins/sanitize/rehype-details.js";
62
+ import { rehypeHeadingIds as Eo } from "./plugins/sanitize/rehype-heading-ids.js";
63
+ import { rehypeZonePivots as Oo } from "./plugins/sanitize/rehype-zone-pivots.js";
64
+ import { mdxJsxFlowElementHandler as zo, rehypeRemark as Bo } from "./plugins/sanitize/rehype-remark.js";
65
+ import { tableCellHandler as Jo, tableHandler as Wo, tableRowHandler as Xo } from "./plugins/sanitize/rehype-table-align.js";
49
66
  export {
50
- P as ApiReferenceProvider2,
51
- pe as Callout,
52
- $ as CodeBlock,
53
- i as ComponentsProvider,
54
- ce as Details,
55
- m as DocsLayout,
67
+ $ as Api,
68
+ me as ApiExamples,
69
+ xe as ApiFields,
70
+ ke as ApiPlayground,
71
+ de as ApiPlaygroundContext,
72
+ Se as ApiPlaygroundContextLegacy,
73
+ y as ApiReferenceProvider2,
74
+ Be as Callout,
75
+ Ne as CodeBlock,
76
+ d as ComponentsProvider,
77
+ ro as Details,
78
+ p as DocsLayout,
56
79
  r as DocsPage,
57
- oe as Heading,
58
- Fe as Home,
59
- te as Link,
80
+ Fe as EndpointFields,
81
+ se as EndpointHeader,
82
+ Le as Heading,
83
+ Po as Home,
84
+ Ze as Link,
60
85
  a as MDXRenderer,
61
- Ee as MobileNavTree,
62
- b as NavTree,
63
- k as PageContextMenu,
64
- Ce as ParamName,
65
- u as PivotAwareTOC,
86
+ To as MobileNavTree,
87
+ C as NavTree,
88
+ oe as OperationPage,
89
+ A as PageContextMenu,
90
+ Ve as ParamName,
91
+ v as PivotAwareTOC,
66
92
  f as PlainTextPage,
67
- ve as Summary,
68
- ye as Tab,
69
- he as Table,
70
- ke as TableBody,
71
- Me as TableCaption,
72
- we as TableCell,
73
- Re as TableFooter,
74
- De as TableHead,
75
- Ne as TableHeader,
76
- c as TableOfContents,
77
- Ze as TableRow,
78
- ge as Tabs,
79
- xe as ZonePivot,
80
- se as ZonePivotProvider,
81
- ie as ZonePivotSelector,
82
- le as ZoneTarget,
83
- ze as allComponents,
84
- B as capitalize,
85
- I as cn,
86
- q as convertHtmlToMdx,
87
- w as copyMarkdownToClipboard,
88
- n as createDefaultComponents,
93
+ ne as Playground,
94
+ te as SchemaPage,
95
+ to as Summary,
96
+ eo as Tab,
97
+ mo as Table,
98
+ ao as TableBody,
99
+ xo as TableCaption,
100
+ fo as TableCell,
101
+ no as TableFooter,
102
+ lo as TableHead,
103
+ so as TableHeader,
104
+ b as TableOfContents,
105
+ io as TableRow,
106
+ _e as Tabs,
107
+ Je as ZonePivot,
108
+ Ge as ZonePivotProvider,
109
+ Qe as ZonePivotSelector,
110
+ Xe as ZoneTarget,
111
+ he as addApiReferenceDataFromMdxAndDocsConfig,
112
+ go as allComponents,
113
+ L as capitalize,
114
+ Z as cn,
115
+ X as convertHtmlToMdx,
116
+ R as copyMarkdownToClipboard,
117
+ l as createDefaultComponents,
89
118
  s as defaultComponents,
90
- U as extractHeadings,
91
- Z as generateLlmsFullTxt,
92
- L as generateLlmsTxt,
93
- S as getClassNames,
94
- A as getNodeText,
95
- R as getPageMarkdown,
96
- J as getTextContent,
97
- X as isElement,
98
- to as mdxJsxFlowElementHandler,
99
- Ge as rehypeCallouts,
100
- Oe as rehypeCodeblocks,
101
- Ye as rehypeDetails,
102
- $e as rehypeHeadingIds,
103
- Qe as rehypeParamName,
104
- mo as rehypeRemark,
105
- W as rehypeRemoveHtmlComments,
106
- Ve as rehypeTabs,
107
- oo as rehypeZonePivots,
108
- Je as remarkHeadingIds,
119
+ Q as extractHeadings,
120
+ w as generateLlmsFullTxt,
121
+ F as generateLlmsTxt,
122
+ B as getClassNames,
123
+ N as getNodeText,
124
+ k as getPageMarkdown,
125
+ q as getTextContent,
126
+ J as isElement,
127
+ zo as mdxJsxFlowElementHandler,
128
+ Me as processSecurityOptions,
129
+ Ro as rehypeCallouts,
130
+ bo as rehypeCodeblocks,
131
+ Io as rehypeDetails,
132
+ Eo as rehypeHeadingIds,
133
+ Do as rehypeParamName,
134
+ Bo as rehypeRemark,
135
+ V as rehypeRemoveHtmlComments,
136
+ wo as rehypeTabs,
137
+ Oo as rehypeZonePivots,
138
+ vo as remarkHeadingIds,
109
139
  Y as removeHtmlComments,
110
- je as sanitizePreTags,
111
- K as serializeMdx,
112
- ao as tableCellHandler,
113
- xo as tableHandler,
114
- fo as tableRowHandler,
115
- y as useApiReference,
116
- T as useComponents,
117
- D as useMarkdownCopy
140
+ Ao as sanitizePreTags,
141
+ G as serializeMdx,
142
+ Jo as tableCellHandler,
143
+ Wo as tableHandler,
144
+ Xo as tableRowHandler,
145
+ T as useApiReference,
146
+ u as useComponents,
147
+ He as useCopyPathWithInputs,
148
+ ce as useInitializeInputs,
149
+ D as useMarkdownCopy,
150
+ ge as usePlaygroundInputsStore,
151
+ Ce as useSelectedSecurityOption,
152
+ ye as useSendPlaygroundRequest
118
153
  };
119
154
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}