@mintlify/msft-sdk 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-playground/ApiPlayground/Request/BodySection.js +65 -0
- package/dist/api-playground/ApiPlayground/Request/BodySection.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/ParameterSection.js +33 -0
- package/dist/api-playground/ApiPlayground/Request/ParameterSection.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js +202 -0
- package/dist/api-playground/ApiPlayground/Request/PlaygroundModal.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/SecuritySection.js +147 -0
- package/dist/api-playground/ApiPlayground/Request/SecuritySection.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/ServerSection.js +31 -0
- package/dist/api-playground/ApiPlayground/Request/ServerSection.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/index.js +44 -0
- package/dist/api-playground/ApiPlayground/Request/index.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js +94 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ArrayInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js +91 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/DifferentiatedInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js +63 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/FileInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js +34 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/NullInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js +62 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/NumberInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js +110 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ObjectChildren.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js +88 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/ObjectInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js +62 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/RecursiveInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js +55 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/SelectInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js +68 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/StringInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js +45 -0
- package/dist/api-playground/ApiPlayground/Request/inputs/TextInput.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js +7 -0
- package/dist/api-playground/ApiPlayground/Response/CopyFileToClipboardButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js +45 -0
- package/dist/api-playground/ApiPlayground/Response/DownloadFileButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js +54 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseBody/CodeResponseContent.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js +15 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseBody/index.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseError.js +14 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseError.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js +12 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseHeaders.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js +20 -0
- package/dist/api-playground/ApiPlayground/Response/ResponsePlaceholder.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseTable.js +21 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseTable.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js +93 -0
- package/dist/api-playground/ApiPlayground/Response/ResponseTopbar.js.map +1 -0
- package/dist/api-playground/ApiPlayground/Response/index.js +80 -0
- package/dist/api-playground/ApiPlayground/Response/index.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js +24 -0
- package/dist/api-playground/ApiPlayground/components/AdditionalItemButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js +45 -0
- package/dist/api-playground/ApiPlayground/components/AdditionalPropertyButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/ArrayCount.js +18 -0
- package/dist/api-playground/ApiPlayground/components/ArrayCount.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/BasePathSelector.js +40 -0
- package/dist/api-playground/ApiPlayground/components/BasePathSelector.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js +43 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js +44 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js +39 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenuSearch.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/InputContainer.js +129 -0
- package/dist/api-playground/ApiPlayground/components/InputContainer.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js +60 -0
- package/dist/api-playground/ApiPlayground/components/InputSectionContainer.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/ModalHeader.js +16 -0
- package/dist/api-playground/ApiPlayground/components/ModalHeader.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js +29 -0
- package/dist/api-playground/ApiPlayground/components/ObjectExpandButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js +20 -0
- package/dist/api-playground/ApiPlayground/components/ParamFieldWrapper.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/PathHeader.js +163 -0
- package/dist/api-playground/ApiPlayground/components/PathHeader.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js +59 -0
- package/dist/api-playground/ApiPlayground/components/PlaygroundModalWrapper.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/PrettyPath.js +50 -0
- package/dist/api-playground/ApiPlayground/components/PrettyPath.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/SendPill.js +40 -0
- package/dist/api-playground/ApiPlayground/components/SendPill.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/TrashButton.js +27 -0
- package/dist/api-playground/ApiPlayground/components/TrashButton.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/TypeDropdown.js +53 -0
- package/dist/api-playground/ApiPlayground/components/TypeDropdown.js.map +1 -0
- package/dist/api-playground/ApiPlayground/index.js +68 -0
- package/dist/api-playground/ApiPlayground/index.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js +51 -0
- package/dist/api-playground/EndpointFields/ParamFields/ExampleDescription.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js +20 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/Enum.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js +19 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/NumberMetadata.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js +29 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/StringMetadata.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js +6 -0
- package/dist/api-playground/EndpointFields/ParamFields/PrimitiveParamField/index.js.map +1 -0
- package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js +13 -0
- package/dist/api-playground/EndpointFields/ParamFields/RecursiveParamField.js.map +1 -0
- package/dist/api-playground/EndpointFields/components/Description.js +13 -0
- package/dist/api-playground/EndpointFields/components/Description.js.map +1 -0
- package/dist/api-playground/EndpointFields/components/OneOfDropdown.js +20 -0
- package/dist/api-playground/EndpointFields/components/OneOfDropdown.js.map +1 -0
- package/dist/api-playground/EndpointFields/components/OptionDropdown.js +36 -0
- package/dist/api-playground/EndpointFields/components/OptionDropdown.js.map +1 -0
- package/dist/api-playground/EndpointFields/components/SectionHeading.js +44 -0
- package/dist/api-playground/EndpointFields/components/SectionHeading.js.map +1 -0
- package/dist/api-playground/EndpointFields/index.js +7 -0
- package/dist/api-playground/EndpointFields/index.js.map +1 -0
- package/dist/api-playground-2/Api.js +13 -0
- package/dist/api-playground-2/Api.js.map +1 -0
- package/dist/api-playground-2/ApiExamples.js +19 -18
- package/dist/api-playground-2/ApiExamples.js.map +1 -1
- package/dist/api-playground-2/ApiFields.js +253 -0
- package/dist/api-playground-2/ApiFields.js.map +1 -0
- package/dist/api-playground-2/EndpointHeader.js +52 -0
- package/dist/api-playground-2/EndpointHeader.js.map +1 -0
- package/dist/api-playground-2/OperationPage.js +101 -0
- package/dist/api-playground-2/OperationPage.js.map +1 -0
- package/dist/api-playground-2/Playground.js +136 -0
- package/dist/api-playground-2/Playground.js.map +1 -0
- package/dist/api-playground-2/SchemaPage.js +14 -0
- package/dist/api-playground-2/SchemaPage.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js +88 -0
- package/dist/api-playground-2/components/EndpointFields/EndpointSecurity.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/Enum.js +16 -0
- package/dist/api-playground-2/components/EndpointFields/fields/Enum.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js +21 -0
- package/dist/api-playground-2/components/EndpointFields/fields/NumberMetadata.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js +57 -0
- package/dist/api-playground-2/components/EndpointFields/fields/PrimitiveParamField.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js +90 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleArrayParamField.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js +122 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleObjectParamField.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js +75 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimplePrimitiveParamField.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js +253 -0
- package/dist/api-playground-2/components/EndpointFields/fields/SimpleSchemaField.js.map +1 -0
- package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js +28 -0
- package/dist/api-playground-2/components/EndpointFields/fields/StringMetadata.js.map +1 -0
- package/dist/api-playground-2/components/Example/GeneratedRequestExample.js +101 -114
- package/dist/api-playground-2/components/Example/GeneratedRequestExample.js.map +1 -1
- package/dist/api-playground-2/components/Request/BodySection.js +41 -0
- package/dist/api-playground-2/components/Request/BodySection.js.map +1 -0
- package/dist/api-playground-2/components/Request/InputSectionContainer.js +66 -0
- package/dist/api-playground-2/components/Request/InputSectionContainer.js.map +1 -0
- package/dist/api-playground-2/components/Request/ParameterSection.js +36 -0
- package/dist/api-playground-2/components/Request/ParameterSection.js.map +1 -0
- package/dist/api-playground-2/components/Request/SecuritySection.js +55 -0
- package/dist/api-playground-2/components/Request/SecuritySection.js.map +1 -0
- package/dist/api-playground-2/components/Request/ServerSection.js +33 -0
- package/dist/api-playground-2/components/Request/ServerSection.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/ArrayInput.js +55 -0
- package/dist/api-playground-2/components/Request/inputs/ArrayInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js +48 -0
- package/dist/api-playground-2/components/Request/inputs/DifferentiatedInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/FileInput.js +43 -0
- package/dist/api-playground-2/components/Request/inputs/FileInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/InputContainer.js +127 -0
- package/dist/api-playground-2/components/Request/inputs/InputContainer.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/NullInput.js +15 -0
- package/dist/api-playground-2/components/Request/inputs/NullInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/NumberInput.js +46 -0
- package/dist/api-playground-2/components/Request/inputs/NumberInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/ObjectInput.js +104 -0
- package/dist/api-playground-2/components/Request/inputs/ObjectInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/OneOfInput.js +77 -0
- package/dist/api-playground-2/components/Request/inputs/OneOfInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/SelectInput.js +54 -0
- package/dist/api-playground-2/components/Request/inputs/SelectInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/StringInput.js +44 -0
- package/dist/api-playground-2/components/Request/inputs/StringInput.js.map +1 -0
- package/dist/api-playground-2/components/Request/inputs/TextInput.js +29 -0
- package/dist/api-playground-2/components/Request/inputs/TextInput.js.map +1 -0
- package/dist/api-playground-2/components/TypeDropdown.js +48 -0
- package/dist/api-playground-2/components/TypeDropdown.js.map +1 -0
- package/dist/api-playground-2/constants/index.js +15 -4
- package/dist/api-playground-2/constants/index.js.map +1 -1
- package/dist/api-playground-2/contexts/ApiPlaygroundContext.js +11 -0
- package/dist/api-playground-2/contexts/ApiPlaygroundContext.js.map +1 -0
- package/dist/api-playground-2/generators/generateInteractiveCodeSample.js +6 -6
- package/dist/api-playground-2/generators/generateInteractiveCodeSample.js.map +1 -1
- package/dist/api-playground-2/generators/generateSnippet.js +187 -36
- package/dist/api-playground-2/generators/generateSnippet.js.map +1 -1
- package/dist/api-playground-2/hooks/useCopyPathWithInputs.js +14 -0
- package/dist/api-playground-2/hooks/useCopyPathWithInputs.js.map +1 -0
- package/dist/api-playground-2/hooks/useInitializeInputs.js +101 -0
- package/dist/api-playground-2/hooks/useInitializeInputs.js.map +1 -0
- package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js +156 -0
- package/dist/api-playground-2/hooks/useSendPlaygroundRequest.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js +57 -0
- package/dist/api-playground-2/schemaGraph/addApiReferenceDataFromMdxAndDocsConfig.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/addUniqueKeysToSchema.js +41 -0
- package/dist/api-playground-2/schemaGraph/addUniqueKeysToSchema.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/errors.js +19 -0
- package/dist/api-playground-2/schemaGraph/errors.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js +26 -0
- package/dist/api-playground-2/schemaGraph/getApiReferenceDataFromGraph.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/getDocumentProperties.js +58 -0
- package/dist/api-playground-2/schemaGraph/getDocumentProperties.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/getSchemaGraphOperationData.js +77 -0
- package/dist/api-playground-2/schemaGraph/getSchemaGraphOperationData.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/getSchemaGraphSchemaData.js +16 -0
- package/dist/api-playground-2/schemaGraph/getSchemaGraphSchemaData.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/processExamples.js +118 -8
- package/dist/api-playground-2/schemaGraph/processExamples.js.map +1 -1
- package/dist/api-playground-2/schemaGraph/processSecurityOptions.js +107 -0
- package/dist/api-playground-2/schemaGraph/processSecurityOptions.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/reduceCompositions.js +283 -0
- package/dist/api-playground-2/schemaGraph/reduceCompositions.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/resolveGraphNode.js +61 -0
- package/dist/api-playground-2/schemaGraph/resolveGraphNode.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/resolveOperationWithDependencies.js +149 -0
- package/dist/api-playground-2/schemaGraph/resolveOperationWithDependencies.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/resolveSchemaWithDependencies.js +33 -0
- package/dist/api-playground-2/schemaGraph/resolveSchemaWithDependencies.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/sortSchemaByRequired.js +35 -0
- package/dist/api-playground-2/schemaGraph/sortSchemaByRequired.js.map +1 -0
- package/dist/api-playground-2/schemaGraph/utils.js +243 -45
- package/dist/api-playground-2/schemaGraph/utils.js.map +1 -1
- package/dist/api-playground-2/types/index.js +118 -0
- package/dist/api-playground-2/types/index.js.map +1 -0
- package/dist/common/guards.js +32 -6
- package/dist/common/guards.js.map +1 -1
- package/dist/common/parseApiTargetFromMetadata.js +24 -0
- package/dist/common/parseApiTargetFromMetadata.js.map +1 -0
- package/dist/common/parseOpenApiString.js +42 -0
- package/dist/common/parseOpenApiString.js.map +1 -0
- package/dist/common/potentiallyParseOpenApiString.js +25 -0
- package/dist/common/potentiallyParseOpenApiString.js.map +1 -0
- package/dist/common/replaceSlashIndex.js +7 -0
- package/dist/common/replaceSlashIndex.js.map +1 -0
- package/dist/common/slugToTitle.js +11 -0
- package/dist/common/slugToTitle.js.map +1 -0
- package/dist/components/Api/ApiReferenceProvider.js +6 -15
- package/dist/components/Api/ApiReferenceProvider.js.map +1 -1
- package/dist/components/Api/Expandable.js +119 -0
- package/dist/components/Api/Expandable.js.map +1 -0
- package/dist/components/Api/Markdown.js +66 -0
- package/dist/components/Api/Markdown.js.map +1 -0
- package/dist/components/Api/Param.js +191 -0
- package/dist/components/Api/Param.js.map +1 -0
- package/dist/components/content-components/code-block.js +68 -61
- package/dist/components/content-components/code-block.js.map +1 -1
- package/dist/components/content-components/code-group.js +36 -25
- package/dist/components/content-components/code-group.js.map +1 -1
- package/dist/components/content-components/getNodeText.js +5 -0
- package/dist/components/content-components/getNodeText.js.map +1 -0
- package/dist/components/nav-tree/index.js +135 -109
- package/dist/components/nav-tree/index.js.map +1 -1
- package/dist/constants/index.js +5 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/zIndex.js +7 -0
- package/dist/constants/zIndex.js.map +1 -0
- package/dist/contexts/ApiPlaygroundInputsContext.js +18 -0
- package/dist/contexts/ApiPlaygroundInputsContext.js.map +1 -0
- package/dist/contexts/ConfigContext.js +60 -12
- package/dist/contexts/ConfigContext.js.map +1 -1
- package/dist/contexts/EndpointLocationContext.js +18 -0
- package/dist/contexts/EndpointLocationContext.js.map +1 -0
- package/dist/contexts/MDXContentContext.js +18 -0
- package/dist/contexts/MDXContentContext.js.map +1 -0
- package/dist/env.js +6 -1
- package/dist/env.js.map +1 -1
- package/dist/hooks/useApiPlaygroundInputs.js +7 -0
- package/dist/hooks/useApiPlaygroundInputs.js.map +1 -0
- package/dist/hooks/useApiPlaygroundPrefillExamples.js +40 -0
- package/dist/hooks/useApiPlaygroundPrefillExamples.js.map +1 -0
- package/dist/hooks/useBaseUrlOptions.js +19 -0
- package/dist/hooks/useBaseUrlOptions.js.map +1 -0
- package/dist/hooks/useCheckHash.js +18 -0
- package/dist/hooks/useCheckHash.js.map +1 -0
- package/dist/hooks/useComponentSchemas.js +10 -0
- package/dist/hooks/useComponentSchemas.js.map +1 -0
- package/dist/hooks/useEndpoint.js +3 -3
- package/dist/hooks/useExpandableMemory.js +46 -0
- package/dist/hooks/useExpandableMemory.js.map +1 -0
- package/dist/hooks/useGenerateNextAdditionalProperties.js +12 -0
- package/dist/hooks/useGenerateNextAdditionalProperties.js.map +1 -0
- package/dist/hooks/useGenerateNextItems.js +12 -0
- package/dist/hooks/useGenerateNextItems.js.map +1 -0
- package/dist/hooks/useGenerateNextProperties.js +12 -0
- package/dist/hooks/useGenerateNextProperties.js.map +1 -0
- package/dist/hooks/useKeyboardShortcut.js +26 -0
- package/dist/hooks/useKeyboardShortcut.js.map +1 -0
- package/dist/hooks/useMDXContent.js +7 -0
- package/dist/hooks/useMDXContent.js.map +1 -0
- package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js +10 -0
- package/dist/hooks/useMDXContentController/useApiPlaygroundInputs.js.map +1 -0
- package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js +16 -0
- package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiBaseIndexCallback.js.map +1 -0
- package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js +16 -0
- package/dist/hooks/useMDXContentController/useMDXContentCallbacks/useSetApiPlaygroundInputsCallback.js.map +1 -0
- package/dist/hooks/usePlaygroundSchemaOptions.js +43 -0
- package/dist/hooks/usePlaygroundSchemaOptions.js.map +1 -0
- package/dist/hooks/usePrefilledInputs/index.js +66 -0
- package/dist/hooks/usePrefilledInputs/index.js.map +1 -0
- package/dist/hooks/usePrefilledInputs/storedServerVariables.js +30 -0
- package/dist/hooks/usePrefilledInputs/storedServerVariables.js.map +1 -0
- package/dist/hooks/useSecurityOption.js +11 -0
- package/dist/hooks/useSecurityOption.js.map +1 -0
- package/dist/hooks/useSendPlaygroundRequest.js +146 -15
- package/dist/hooks/useSendPlaygroundRequest.js.map +1 -1
- package/dist/hooks/useSetDefaultValue.js +64 -0
- package/dist/hooks/useSetDefaultValue.js.map +1 -0
- package/dist/index.d.ts +404 -7
- package/dist/index.js +159 -112
- package/dist/index.js.map +1 -1
- package/dist/openapi/filterEnums.js +21 -0
- package/dist/openapi/filterEnums.js.map +1 -0
- package/dist/openapi/generateNextAdditionalProperties.js +8 -0
- package/dist/openapi/generateNextAdditionalProperties.js.map +1 -0
- package/dist/openapi/generateNextItems.js +8 -0
- package/dist/openapi/generateNextItems.js.map +1 -0
- package/dist/openapi/generateNextProperties.js +24 -0
- package/dist/openapi/generateNextProperties.js.map +1 -0
- package/dist/openapi/generateOptionLabels.js +21 -0
- package/dist/openapi/generateOptionLabels.js.map +1 -0
- package/dist/openapi/generateSimpleLabels.js +5 -0
- package/dist/openapi/generateSimpleLabels.js.map +1 -0
- package/dist/openapi/generateTypeStringFromSchema.js +34 -0
- package/dist/openapi/generateTypeStringFromSchema.js.map +1 -0
- package/dist/openapi/getAuthFilteredSchemaArray.js +19 -0
- package/dist/openapi/getAuthFilteredSchemaArray.js.map +1 -0
- package/dist/paths/isEqualIgnoringLeadingSlash.js +22 -0
- package/dist/paths/isEqualIgnoringLeadingSlash.js.map +1 -0
- package/dist/paths/optionallyRemoveLeadingSlash.js +7 -0
- package/dist/paths/optionallyRemoveLeadingSlash.js.map +1 -0
- package/dist/paths/optionallyRemoveTrailingSlash.js +7 -0
- package/dist/paths/optionallyRemoveTrailingSlash.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/utils/api-playground/defaults.js +16 -0
- package/dist/utils/api-playground/defaults.js.map +1 -0
- package/dist/utils/api-playground/paramFieldDefaults.js +11 -0
- package/dist/utils/api-playground/paramFieldDefaults.js.map +1 -0
- package/dist/utils/api-reference/getFilteredSecurityOptions.js +5 -0
- package/dist/utils/api-reference/getFilteredSecurityOptions.js.map +1 -0
- package/dist/utils/api-reference/getNextPropertiesByType.js +6 -0
- package/dist/utils/api-reference/getNextPropertiesByType.js.map +1 -0
- package/dist/utils/containsMarkdownTable.js +5 -0
- package/dist/utils/containsMarkdownTable.js.map +1 -0
- package/dist/utils/copyToClipboard.js +12 -0
- package/dist/utils/copyToClipboard.js.map +1 -0
- package/dist/utils/flattenObject.js +11 -0
- package/dist/utils/flattenObject.js.map +1 -0
- package/dist/utils/formatJSON.js +39 -0
- package/dist/utils/formatJSON.js.map +1 -0
- package/dist/utils/scrollElementIntoView.js +21 -0
- package/dist/utils/scrollElementIntoView.js.map +1 -0
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,61 @@
|
|
|
1
|
+
import { ApiPlaygroundDisplayType } from '@mintlify/models';
|
|
2
|
+
import { ApiPlaygroundInputs } from '@mintlify/validation';
|
|
3
|
+
import { ApiPlaygroundResultType } from '@mintlify/models';
|
|
4
|
+
import { AsyncAPIDocumentInterface } from '@mintlify/common';
|
|
5
|
+
import { ChannelData } from '@mintlify/common';
|
|
1
6
|
import { ClassValue } from 'clsx';
|
|
7
|
+
import { CodeSample } from '@mintlify/validation';
|
|
8
|
+
import { Context } from 'react';
|
|
9
|
+
import { DecoratedNavigationConfig } from '@mintlify/validation';
|
|
2
10
|
import { default as default_2 } from 'react';
|
|
11
|
+
import { DeploymentEntitlements } from '@mintlify/validation';
|
|
12
|
+
import { DeploymentFeedbackType } from '@mintlify/validation';
|
|
13
|
+
import { DeploymentPreviewType } from '@mintlify/validation';
|
|
14
|
+
import { DocsConfig } from '@mintlify/validation';
|
|
3
15
|
import { Element as Element_2 } from 'hast';
|
|
16
|
+
import { Endpoint } from '@mintlify/validation';
|
|
17
|
+
import { GitSource } from '@mintlify/validation';
|
|
4
18
|
import { Handle } from 'hast-util-to-mdast';
|
|
19
|
+
import { IncrementalDataSchemaArray } from '@mintlify/validation';
|
|
20
|
+
import { InkeepType } from '@mintlify/models';
|
|
5
21
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
22
|
+
import { MdxExtracts as MdxExtracts_2 } from '@mintlify/common';
|
|
6
23
|
import { MdxJsxFlowElement } from 'mdast-util-mdx-jsx';
|
|
24
|
+
import { MintConfig } from '@mintlify/models';
|
|
7
25
|
import { Node as Node_2 } from 'unist';
|
|
8
26
|
import { Node as Node_3 } from 'hast';
|
|
27
|
+
import { OpenApiMetadata } from '@mintlify/models';
|
|
28
|
+
import { OpenAPIV3 } from 'openapi-types';
|
|
29
|
+
import { OpenAPIV3_1 } from 'openapi-types';
|
|
30
|
+
import { Operation } from '@mintlify/validation';
|
|
31
|
+
import { PageMetaTags } from '@mintlify/models';
|
|
32
|
+
import { PageType } from '@mintlify/models';
|
|
33
|
+
import { ParameterObject } from '@mintlify/validation';
|
|
9
34
|
import { Plugin as Plugin_2 } from 'unified';
|
|
10
35
|
import * as React_2 from 'react';
|
|
11
36
|
import { ReactNode } from 'react';
|
|
37
|
+
import { RequestBodyObject } from '@mintlify/validation';
|
|
38
|
+
import { ResponseObject } from '@mintlify/validation';
|
|
12
39
|
import { Root } from 'mdast';
|
|
13
40
|
import { Root as Root_2 } from 'hast';
|
|
41
|
+
import { SchemaGraphData } from '@mintlify/validation';
|
|
42
|
+
import { SchemaObject } from '@mintlify/validation';
|
|
43
|
+
import { SecurityOption } from '@mintlify/validation';
|
|
44
|
+
import { SerializeSuccess } from '@mintlify/mdx/types';
|
|
45
|
+
import { ServerObject } from '@mintlify/validation';
|
|
14
46
|
import { State } from 'hast-util-to-mdast';
|
|
47
|
+
import { StoreApi } from 'zustand';
|
|
15
48
|
import { Text as Text_2 } from 'hast';
|
|
49
|
+
import { TrieveType } from '@mintlify/validation';
|
|
50
|
+
import { UseBoundStore } from 'zustand';
|
|
51
|
+
import { UUID } from '@mintlify/validation';
|
|
52
|
+
|
|
53
|
+
export declare const addApiReferenceDataFromMdxAndDocsConfig: ({ pageMetadata, apiReferenceData2, mdxExtracts, docsConfig, }: {
|
|
54
|
+
pageMetadata: PageMetaTags;
|
|
55
|
+
apiReferenceData2: ApiReferenceDataV2 | undefined;
|
|
56
|
+
mdxExtracts: MdxExtracts_2 | undefined;
|
|
57
|
+
docsConfig: DocsConfig | undefined;
|
|
58
|
+
}) => ApiReferenceDataV2;
|
|
16
59
|
|
|
17
60
|
export declare const allComponents: {
|
|
18
61
|
CodeBlock: typeof CodeBlock;
|
|
@@ -28,21 +71,129 @@ export declare const allComponents: {
|
|
|
28
71
|
Summary: typeof Summary;
|
|
29
72
|
};
|
|
30
73
|
|
|
74
|
+
export declare interface AnchorConfig {
|
|
75
|
+
href: string;
|
|
76
|
+
title: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
icon?: default_2.ComponentType<{
|
|
79
|
+
className?: string;
|
|
80
|
+
}>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export declare const Api: ({ children }: {
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
}) => JSX_2.Element | null;
|
|
86
|
+
|
|
87
|
+
export declare const ApiExamples: ({ className, isModal, apiReferenceData, noInputs }: ApiExamplesProps) => JSX_2.Element;
|
|
88
|
+
|
|
89
|
+
declare type ApiExamplesProps = {
|
|
90
|
+
className?: string;
|
|
91
|
+
isModal?: boolean;
|
|
92
|
+
apiReferenceData?: ApiReferenceDataV2;
|
|
93
|
+
noInputs?: boolean;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export declare function ApiFields({ pageMetadata }: {
|
|
97
|
+
pageMetadata: PageMetaTags;
|
|
98
|
+
}): JSX_2.Element;
|
|
99
|
+
|
|
100
|
+
export declare const ApiPlayground: ({ endpoint, display, pathname }: ApiPlaygroundParams) => JSX_2.Element;
|
|
101
|
+
|
|
102
|
+
export declare const ApiPlaygroundContext: Context<ApiPlaygroundContextType>;
|
|
103
|
+
|
|
104
|
+
export declare const ApiPlaygroundContextLegacy: Context<ApiPlaygroundContextTypeLegacy>;
|
|
105
|
+
|
|
106
|
+
export declare type ApiPlaygroundContextType = {
|
|
107
|
+
isSending?: boolean;
|
|
108
|
+
sendRequest?: () => void;
|
|
109
|
+
isPlaygroundExpanded: boolean;
|
|
110
|
+
result?: ApiPlaygroundResultType;
|
|
111
|
+
selectedBaseUrlIndex: number;
|
|
112
|
+
setSelectedBaseUrlIndex?: (index: number) => void;
|
|
113
|
+
setIsPlaygroundExpanded?: (expanded: boolean) => void;
|
|
114
|
+
baseUrlOptions?: string[];
|
|
115
|
+
selectedExampleIndex?: number;
|
|
116
|
+
setSelectedExampleIndex?: (index: number) => void;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export declare type ApiPlaygroundContextTypeLegacy = {
|
|
120
|
+
isSending?: boolean;
|
|
121
|
+
sendRequest?: () => void;
|
|
122
|
+
isPlaygroundExpanded: boolean;
|
|
123
|
+
result?: ApiPlaygroundResultType;
|
|
124
|
+
selectedBaseUrlIndex: number;
|
|
125
|
+
setSelectedBaseUrlIndex?: (index: number) => void;
|
|
126
|
+
setIsPlaygroundExpanded?: (expanded: boolean) => void;
|
|
127
|
+
baseUrlOptions?: string[];
|
|
128
|
+
selectedExampleIndex?: number;
|
|
129
|
+
setSelectedExampleIndex?: (index: number) => void;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare type ApiPlaygroundParams = {
|
|
133
|
+
endpoint: Endpoint;
|
|
134
|
+
display: ApiPlaygroundDisplayType;
|
|
135
|
+
pathname: string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export declare const ApiReferenceContext: Context<ApiReferenceContextType>;
|
|
139
|
+
|
|
140
|
+
export declare const ApiReferenceContext2: Context<ApiReferenceContext2Type>;
|
|
141
|
+
|
|
142
|
+
export declare type ApiReferenceContext2Type = {
|
|
143
|
+
apiReferenceData2: ApiReferenceDataV2;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export declare type ApiReferenceContextType = {
|
|
147
|
+
apiReferenceData: ApiReferenceData;
|
|
148
|
+
};
|
|
149
|
+
|
|
31
150
|
declare interface ApiReferenceContextValue {
|
|
32
151
|
apiReferenceData2?: any;
|
|
33
152
|
docsConfig?: any;
|
|
34
153
|
mdxExtracts?: any;
|
|
35
154
|
}
|
|
36
155
|
|
|
37
|
-
|
|
156
|
+
declare type ApiReferenceData = {
|
|
157
|
+
metadata?: OpenApiMetadata;
|
|
158
|
+
endpoint?: Endpoint;
|
|
159
|
+
schemaData?: SchemaData;
|
|
160
|
+
componentSchemas?: ComponentSchemas;
|
|
161
|
+
channel?: ChannelData;
|
|
162
|
+
channelId?: string;
|
|
163
|
+
document?: AsyncAPIDocumentInterface;
|
|
164
|
+
};
|
|
38
165
|
|
|
39
|
-
declare interface
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
166
|
+
export declare interface ApiReferenceDataV2 {
|
|
167
|
+
filename?: string;
|
|
168
|
+
originalFileLocation?: string;
|
|
169
|
+
operation?: OperationV2;
|
|
170
|
+
schemaData?: SchemaV2;
|
|
171
|
+
dependencies?: {
|
|
172
|
+
parameters?: Record<UUID, ParameterObject>;
|
|
173
|
+
requestBody?: RequestBodyObject;
|
|
174
|
+
responses?: Record<UUID, ResponseObject>;
|
|
175
|
+
servers: Record<UUID, ServerObject>;
|
|
176
|
+
security: Record<UUID, ResolvedSecurityObject>;
|
|
177
|
+
processedSecurityOptions?: ProcessedSecurityOption[];
|
|
178
|
+
schemas?: Record<UUID, SchemaObject>;
|
|
179
|
+
};
|
|
44
180
|
}
|
|
45
181
|
|
|
182
|
+
export declare function ApiReferenceProvider({ value, children, }: {
|
|
183
|
+
value: ApiReferenceContextType;
|
|
184
|
+
children: ReactNode;
|
|
185
|
+
}): JSX_2.Element;
|
|
186
|
+
|
|
187
|
+
export declare function ApiReferenceProvider2({ pageMetadata, docsConfig, mdxExtracts, apiReferenceData2, children, }: ApiReferenceProvider2Props): JSX_2.Element;
|
|
188
|
+
|
|
189
|
+
export declare type ApiReferenceProvider2Props = {
|
|
190
|
+
pageMetadata: PageMetaTags;
|
|
191
|
+
docsConfig: DocsConfig | undefined;
|
|
192
|
+
mdxExtracts: MdxExtracts_2 | undefined;
|
|
193
|
+
apiReferenceData2: ApiReferenceDataV2 | undefined;
|
|
194
|
+
children: ReactNode;
|
|
195
|
+
};
|
|
196
|
+
|
|
46
197
|
export declare interface BottomLinkConfig {
|
|
47
198
|
href: string;
|
|
48
199
|
label: string;
|
|
@@ -62,6 +213,12 @@ declare type CalloutType = "note" | "tip" | "important" | "caution" | "warning"
|
|
|
62
213
|
|
|
63
214
|
export declare const capitalize: (str: string) => string;
|
|
64
215
|
|
|
216
|
+
declare const CIRCULAR_REF_KEY = "$circularRef";
|
|
217
|
+
|
|
218
|
+
export declare type CircularRefObject = {
|
|
219
|
+
[CIRCULAR_REF_KEY]: UUID;
|
|
220
|
+
};
|
|
221
|
+
|
|
65
222
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
66
223
|
|
|
67
224
|
export declare function CodeBlock({ children, className, fileName, language, blob, contentType, }: CodeBlockProps): JSX_2.Element;
|
|
@@ -75,6 +232,15 @@ declare interface CodeBlockProps {
|
|
|
75
232
|
contentType?: string;
|
|
76
233
|
}
|
|
77
234
|
|
|
235
|
+
export declare type CodeExample = {
|
|
236
|
+
dropdown?: boolean;
|
|
237
|
+
language?: string;
|
|
238
|
+
code?: string | default_2.ReactElement | default_2.ReactElement[];
|
|
239
|
+
filename?: string;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
declare type ComponentSchemas = Record<string, OpenAPIV3_1.SchemaObject>;
|
|
243
|
+
|
|
78
244
|
declare interface ComponentsContextValue {
|
|
79
245
|
LinkComponent?: LinkComponent;
|
|
80
246
|
}
|
|
@@ -121,6 +287,26 @@ export declare interface CreateDefaultComponentsOptions {
|
|
|
121
287
|
|
|
122
288
|
export declare const defaultComponents: MDXComponents;
|
|
123
289
|
|
|
290
|
+
export declare const DeploymentMetadataContext: Context<DeploymentMetadataContextType>;
|
|
291
|
+
|
|
292
|
+
export declare type DeploymentMetadataContextType = {
|
|
293
|
+
subdomain?: string;
|
|
294
|
+
actualSubdomain?: string;
|
|
295
|
+
gitSource?: GitSource;
|
|
296
|
+
inkeep?: InkeepType;
|
|
297
|
+
trieve?: TrieveType;
|
|
298
|
+
feedback?: DeploymentFeedbackType;
|
|
299
|
+
entitlements?: DeploymentEntitlements;
|
|
300
|
+
buildId?: string;
|
|
301
|
+
clientVersion?: string;
|
|
302
|
+
preview?: DeploymentPreviewType;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
export declare function DeploymentMetadataProvider({ value, children, }: {
|
|
306
|
+
value: DeploymentMetadataContextType;
|
|
307
|
+
children: ReactNode;
|
|
308
|
+
}): JSX_2.Element;
|
|
309
|
+
|
|
124
310
|
export declare function Details({ children, open }: DetailsProps): JSX_2.Element;
|
|
125
311
|
|
|
126
312
|
declare interface DetailsProps {
|
|
@@ -128,6 +314,21 @@ declare interface DetailsProps {
|
|
|
128
314
|
open?: boolean;
|
|
129
315
|
}
|
|
130
316
|
|
|
317
|
+
export declare type DifferentiatedType = SchemaObject['type'] | 'oneOf' | 'any' | 'enum<string>' | 'enum<number>' | 'enum<integer>' | 'file';
|
|
318
|
+
|
|
319
|
+
export declare const DocsConfigContext: Context<DocsConfigContextType>;
|
|
320
|
+
|
|
321
|
+
export declare type DocsConfigContextType = {
|
|
322
|
+
mintConfig?: MintConfig;
|
|
323
|
+
docsConfig?: DocsConfig;
|
|
324
|
+
docsNavWithMetadata?: DecoratedNavigationConfig;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
export declare function DocsConfigProvider({ value, children, }: {
|
|
328
|
+
value: DocsConfigContextType;
|
|
329
|
+
children: ReactNode;
|
|
330
|
+
}): JSX_2.Element;
|
|
331
|
+
|
|
131
332
|
/**
|
|
132
333
|
* DocsLayout component provides a complete documentation layout with sidebar navigation
|
|
133
334
|
* and main content area. It's designed to be scalable, customizable, and tree-shakable.
|
|
@@ -297,12 +498,35 @@ export declare type ElementType = {
|
|
|
297
498
|
tagName?: string;
|
|
298
499
|
};
|
|
299
500
|
|
|
501
|
+
export declare const EndpointFields: () => JSX_2.Element | null;
|
|
502
|
+
|
|
503
|
+
export declare const EndpointHeader: ({ onCopy, baseUrlOptions, selectedBaseUrlIndex, setSelectedBaseUrlIndex, isCopiedActive, display, path, method, onBaseUrlChange, isInPlaygroundModal, }: EndpointHeaderProps) => JSX_2.Element;
|
|
504
|
+
|
|
505
|
+
declare type EndpointHeaderProps = {
|
|
506
|
+
onCopy: () => void;
|
|
507
|
+
baseUrlOptions: string[];
|
|
508
|
+
selectedBaseUrlIndex: number;
|
|
509
|
+
setSelectedBaseUrlIndex: (index: number) => void;
|
|
510
|
+
isCopiedActive: boolean;
|
|
511
|
+
isInPlaygroundModal: boolean;
|
|
512
|
+
display: 'simple' | 'none' | 'interactive';
|
|
513
|
+
path: string;
|
|
514
|
+
method: string;
|
|
515
|
+
onBaseUrlChange: () => void;
|
|
516
|
+
children?: React.ReactNode;
|
|
517
|
+
};
|
|
518
|
+
|
|
300
519
|
export declare function extractHeadings(): (tree: Node_2, file: unknown) => void;
|
|
301
520
|
|
|
302
521
|
export declare function generateLlmsFullTxt(pages: LlmsPageConfig[], baseUrl: string): Promise<string>;
|
|
303
522
|
|
|
304
523
|
export declare function generateLlmsTxt(pages: LlmsPageConfig[], baseUrl: string): string;
|
|
305
524
|
|
|
525
|
+
export declare const getApiReferenceDataFromGraph: ({ metadata, schemaGraphData, }: {
|
|
526
|
+
metadata: PageMetaTags;
|
|
527
|
+
schemaGraphData: SchemaGraphData;
|
|
528
|
+
}) => ApiReferenceDataV2;
|
|
529
|
+
|
|
306
530
|
export declare function getClassNames(element: Element_2): string[];
|
|
307
531
|
|
|
308
532
|
export declare const getNodeText: (node: unknown) => string;
|
|
@@ -357,6 +581,9 @@ export declare interface LlmsPageConfig {
|
|
|
357
581
|
};
|
|
358
582
|
}
|
|
359
583
|
|
|
584
|
+
declare type Location_2 = 'request' | 'response';
|
|
585
|
+
export { Location_2 as Location }
|
|
586
|
+
|
|
360
587
|
export declare interface MDXComponents {
|
|
361
588
|
h1?: default_2.ComponentType<any>;
|
|
362
589
|
h2?: default_2.ComponentType<any>;
|
|
@@ -429,7 +656,7 @@ export declare interface NavItem {
|
|
|
429
656
|
method?: string;
|
|
430
657
|
}
|
|
431
658
|
|
|
432
|
-
export declare function NavTree({ navTree, activeId, className, activeHref, theme, bottomLinks, }: NavTreeProps): JSX_2.Element | null;
|
|
659
|
+
export declare function NavTree({ navTree, activeId, className, activeHref, theme, bottomLinks, anchors, }: NavTreeProps): JSX_2.Element | null;
|
|
433
660
|
|
|
434
661
|
export declare interface NavTreeData {
|
|
435
662
|
items: NavItem[];
|
|
@@ -442,8 +669,36 @@ declare interface NavTreeProps {
|
|
|
442
669
|
activeHref?: string;
|
|
443
670
|
theme?: "light" | "dark" | "system";
|
|
444
671
|
bottomLinks?: BottomLinkConfig[];
|
|
672
|
+
anchors?: AnchorConfig[];
|
|
445
673
|
}
|
|
446
674
|
|
|
675
|
+
export declare const OperationPage: ({ apiReferenceData, operation, children, }: {
|
|
676
|
+
apiReferenceData: ApiReferenceDataV2;
|
|
677
|
+
operation: OperationV2;
|
|
678
|
+
children: ReactNode;
|
|
679
|
+
}) => JSX_2.Element;
|
|
680
|
+
|
|
681
|
+
export declare type OperationV2 = Operation & {
|
|
682
|
+
path: string;
|
|
683
|
+
baseUrl: string | undefined;
|
|
684
|
+
baseUrlOptions: string[];
|
|
685
|
+
title: string;
|
|
686
|
+
description: string;
|
|
687
|
+
securityRequirements?: SecurityOption[];
|
|
688
|
+
requestExamples?: CodeExample[];
|
|
689
|
+
responseExamples?: CodeExample[];
|
|
690
|
+
codeSamples?: CodeSample[];
|
|
691
|
+
requestExampleType?: 'mdx' | 'webhook' | 'codeSamples' | 'generated';
|
|
692
|
+
requestExampleLanguages?: string[];
|
|
693
|
+
requiredOnlyExamples?: boolean;
|
|
694
|
+
responseExampleType?: 'mdx' | 'generated';
|
|
695
|
+
prefillPlaygroundWithExample?: boolean;
|
|
696
|
+
prefillPlaygroundExamples?: ApiPlaygroundInputs[];
|
|
697
|
+
disableProxy?: boolean;
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
export declare const PageContext: Context<PageContextType>;
|
|
701
|
+
|
|
447
702
|
export declare const PageContextMenu: ({ className, pathname, markdownContent, onCopyMarkdown, onViewMarkdown, allPages, baseUrl, }: PageContextMenuProps) => JSX_2.Element;
|
|
448
703
|
|
|
449
704
|
/**
|
|
@@ -474,6 +729,21 @@ export declare interface PageContextMenuProps {
|
|
|
474
729
|
baseUrl?: string;
|
|
475
730
|
}
|
|
476
731
|
|
|
732
|
+
export declare type PageContextType = {
|
|
733
|
+
pageMetadata: PageMetaTags;
|
|
734
|
+
pageType?: PageType;
|
|
735
|
+
mdxExtracts?: MdxExtracts_2;
|
|
736
|
+
description?: SerializeSuccess | string | null;
|
|
737
|
+
panelMdxSource?: SerializeSuccess;
|
|
738
|
+
panelMdxSourceWithNoJs?: SerializeSuccess;
|
|
739
|
+
pathname?: string;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
export declare function PageProvider({ value, children }: {
|
|
743
|
+
value: PageContextType;
|
|
744
|
+
children: ReactNode;
|
|
745
|
+
}): JSX_2.Element;
|
|
746
|
+
|
|
477
747
|
export declare function ParamName({ children }: ParamNameProps): JSX_2.Element;
|
|
478
748
|
|
|
479
749
|
declare interface ParamNameProps {
|
|
@@ -502,6 +772,39 @@ export declare interface PlainTextPageProps {
|
|
|
502
772
|
content: string;
|
|
503
773
|
}
|
|
504
774
|
|
|
775
|
+
export declare const Playground: ({ isPlaygroundExpanded, setIsPlaygroundExpanded, baseUrl, baseUrlOptions, apiReferenceData, }: PlaygroundProps) => JSX_2.Element | null;
|
|
776
|
+
|
|
777
|
+
declare interface PlaygroundInputsState {
|
|
778
|
+
inputs: Record<string, PlaygroundInputValue>;
|
|
779
|
+
initialize: (initialValues: Record<string, PlaygroundInputValue>) => void;
|
|
780
|
+
setInput: (name: string, value: PlaygroundInputValue) => void;
|
|
781
|
+
setInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
|
|
782
|
+
replaceInputs: (inputs: Record<string, PlaygroundInputValue>) => void;
|
|
783
|
+
getInput: (name: string) => PlaygroundInputValue;
|
|
784
|
+
getApiPlaygroundInputs: () => ApiPlaygroundInputs;
|
|
785
|
+
clear: () => void;
|
|
786
|
+
reset: () => void;
|
|
787
|
+
selectedSecurityOptionIndex: number;
|
|
788
|
+
setSelectedSecurityOptionIndex: (index: number) => void;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
declare type PlaygroundInputValue = unknown;
|
|
792
|
+
|
|
793
|
+
declare type PlaygroundProps = {
|
|
794
|
+
isPlaygroundExpanded: boolean;
|
|
795
|
+
setIsPlaygroundExpanded: (isPlaygroundExpanded: boolean) => void;
|
|
796
|
+
baseUrl: string;
|
|
797
|
+
baseUrlOptions: string[];
|
|
798
|
+
apiReferenceData: ApiReferenceDataV2;
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
export declare type ProcessedSecurityOption = {
|
|
802
|
+
scheme: SecuritySchemeAndScope;
|
|
803
|
+
schema: SchemaObject;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
export declare const processSecurityOptions: (apiReferenceData: ApiReferenceDataV2) => ProcessedSecurityOption[];
|
|
807
|
+
|
|
505
808
|
export declare const rehypeCallouts: Plugin_2<[], Node_3>;
|
|
506
809
|
|
|
507
810
|
export declare const rehypeCodeblocks: Plugin_2<[], Node_3>;
|
|
@@ -524,8 +827,59 @@ export declare function remarkHeadingIds(): (tree: Root) => void;
|
|
|
524
827
|
|
|
525
828
|
export declare function removeHtmlComments(root: Root_2): void;
|
|
526
829
|
|
|
830
|
+
/**
|
|
831
|
+
* SchemaObject after being processed by the various transformations in `resolveOperationWithDependencies`.
|
|
832
|
+
* This is the type of object that all the API UI components should be consuming. Any properties that
|
|
833
|
+
* aren't actually part of the OpenAPI V3/3.1 SchemaObject type should be put here—as such, we should
|
|
834
|
+
* be very judicious about adding anything to this type!
|
|
835
|
+
*/
|
|
836
|
+
export declare type ResolvedSchemaObject = SchemaObject & {
|
|
837
|
+
/**
|
|
838
|
+
* Distinct from the `required` property of the OpenAPI V3/3.1 SchemaObject type, which is either
|
|
839
|
+
* a boolean on a property (V3) or an array of strings on the parent schema (V3.1). Our version is
|
|
840
|
+
* determined from whichever one of those is relevant; a UI component doesn't have to do any figuring-out
|
|
841
|
+
* itself, it just has to check for this property.
|
|
842
|
+
*/
|
|
843
|
+
isRequired?: boolean;
|
|
844
|
+
/**
|
|
845
|
+
* A unique key representing the path to this schema node from the root. Used for generating
|
|
846
|
+
* unique input keys in the playground data store.
|
|
847
|
+
*/
|
|
848
|
+
uniqueKey?: string;
|
|
849
|
+
isCircular?: boolean;
|
|
850
|
+
type?: DifferentiatedType;
|
|
851
|
+
[CIRCULAR_REF_KEY]?: UUID;
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
export declare type ResolvedSecurityObject = {
|
|
855
|
+
[name: string]: SecuritySchemeAndScope;
|
|
856
|
+
};
|
|
857
|
+
|
|
527
858
|
export declare const sanitizePreTags: Plugin_2<[], Node_3>;
|
|
528
859
|
|
|
860
|
+
declare type SchemaData = {
|
|
861
|
+
schemaArray: IncrementalDataSchemaArray;
|
|
862
|
+
example: unknown;
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
export declare type SchemaGeneratedExample = {
|
|
866
|
+
title: string;
|
|
867
|
+
description?: string;
|
|
868
|
+
value: unknown;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
export declare const SchemaPage: ({ apiReferenceData, children, }: {
|
|
872
|
+
apiReferenceData: ApiReferenceDataV2;
|
|
873
|
+
children: ReactNode;
|
|
874
|
+
}) => JSX_2.Element | null;
|
|
875
|
+
|
|
876
|
+
export declare type SchemaV2 = SchemaObject;
|
|
877
|
+
|
|
878
|
+
export declare type SecuritySchemeAndScope = (OpenAPIV3.SecuritySchemeObject | OpenAPIV3_1.SecuritySchemeObject) & {
|
|
879
|
+
scopes?: string[];
|
|
880
|
+
'x-default'?: string;
|
|
881
|
+
};
|
|
882
|
+
|
|
529
883
|
export declare function serializeMdx(mdxString: string): Promise<SerializeMdxResult>;
|
|
530
884
|
|
|
531
885
|
export declare interface SerializeMdxResult {
|
|
@@ -598,8 +952,51 @@ export declare function useApiReference(): ApiReferenceContextValue | undefined;
|
|
|
598
952
|
|
|
599
953
|
export declare function useComponents(): ComponentsContextValue;
|
|
600
954
|
|
|
955
|
+
export declare const useCopyPathWithInputs: ({ path, baseUrl }: {
|
|
956
|
+
path: string;
|
|
957
|
+
baseUrl: string;
|
|
958
|
+
}) => string;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* CLANKED
|
|
962
|
+
* Syncs playground state with URL pathname changes.
|
|
963
|
+
*
|
|
964
|
+
* This hook implements the following behavior:
|
|
965
|
+
* - When the pathname changes, it resets the playground inputs
|
|
966
|
+
* - After reset, it initializes with the new default values for the current endpoint
|
|
967
|
+
* - When playground closes without pathname change, state is preserved
|
|
968
|
+
* - Query parameter changes (like ?playground=open) do NOT reset the state
|
|
969
|
+
*
|
|
970
|
+
* Uses refs to track previous pathname to avoid unnecessary resets.
|
|
971
|
+
*/
|
|
972
|
+
export declare function useInitializeInputs({ apiReferenceData, selectedBaseUrlIndex, selectedExampleIndex, selectedRequestBodyContentTypeIndex, }: UsePlaygroundStateSyncProps): void;
|
|
973
|
+
|
|
601
974
|
export declare function useMarkdownCopy(pathname: string): void;
|
|
602
975
|
|
|
976
|
+
export declare const usePlaygroundInputsStore: UseBoundStore<StoreApi<PlaygroundInputsState>>;
|
|
977
|
+
|
|
978
|
+
declare interface UsePlaygroundStateSyncProps {
|
|
979
|
+
apiReferenceData: ApiReferenceDataV2;
|
|
980
|
+
selectedBaseUrlIndex: number;
|
|
981
|
+
selectedExampleIndex: number;
|
|
982
|
+
selectedRequestBodyContentTypeIndex: number;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export declare const useSelectedSecurityOption: () => {
|
|
986
|
+
selectedSecurityOptionIndex: number;
|
|
987
|
+
setSelectedSecurityOptionIndex: (index: number) => void;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
export declare const useSendPlaygroundRequest: ({ apiReferenceData, baseUrl, contentType, setResult, setIsSending, }: UseSendPlaygroundRequestProps) => () => Promise<void>;
|
|
991
|
+
|
|
992
|
+
declare type UseSendPlaygroundRequestProps = {
|
|
993
|
+
apiReferenceData: ApiReferenceDataV2;
|
|
994
|
+
baseUrl: string | undefined;
|
|
995
|
+
contentType: string | undefined;
|
|
996
|
+
setResult: (result: ApiPlaygroundResultType) => void;
|
|
997
|
+
setIsSending: (isSending: boolean) => void;
|
|
998
|
+
};
|
|
999
|
+
|
|
603
1000
|
export declare function ZonePivot({ pivot, target, children }: ZonePivotProps): JSX_2.Element | null;
|
|
604
1001
|
|
|
605
1002
|
export declare interface ZonePivotGroup {
|