@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.
- 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 +201 -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 +44 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenu.js.map +1 -0
- package/dist/api-playground/ApiPlayground/components/EndpointsMenuLink.js +45 -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 +27 -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 +113 -118
- package/dist/api-playground-2/components/Example/GeneratedRequestExample.js.map +1 -1
- package/dist/api-playground-2/components/Example/RequestExample.js +55 -50
- package/dist/api-playground-2/components/Example/RequestExample.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 +6 -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/createBodyData.js +1 -1
- package/dist/api-playground-2/generators/createBodyData.js.map +1 -1
- package/dist/api-playground-2/generators/createHeaders.js +18 -18
- package/dist/api-playground-2/generators/createHeaders.js.map +1 -1
- package/dist/api-playground-2/generators/generateInteractiveCodeSample.js +21 -19
- package/dist/api-playground-2/generators/generateInteractiveCodeSample.js.map +1 -1
- package/dist/api-playground-2/generators/generateRequest.js +26 -25
- package/dist/api-playground-2/generators/generateRequest.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/generators/generateSnippetMap.js +13 -11
- package/dist/api-playground-2/generators/generateSnippetMap.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/usePlaygroundInputsStore.js +24 -13
- package/dist/api-playground-2/hooks/usePlaygroundInputsStore.js.map +1 -1
- 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/processExamples.js +41 -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/utils.js +195 -43
- 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 +37 -0
- package/dist/common/guards.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/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/toc/index.js +4 -4
- package/dist/components/toc/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 +2 -3
- 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 +19 -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/useCurrentPath.js +17 -0
- package/dist/hooks/useCurrentPath.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 +281 -0
- package/dist/index.js +143 -108
- 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/decodeSlug.js +8 -0
- package/dist/utils/decodeSlug.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/optionallyAddLeadingSlash.js +7 -0
- package/dist/utils/optionallyAddLeadingSlash.js.map +1 -0
- package/dist/utils/scrollElementIntoView.js +21 -0
- package/dist/utils/scrollElementIntoView.js.map +1 -0
- 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
|
|
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
|
|
6
|
-
import { ComponentsProvider as
|
|
7
|
-
import { NavTree as
|
|
8
|
-
import { ApiReferenceProvider2 as
|
|
9
|
-
import { TableOfContents as
|
|
10
|
-
import { PivotAwareTOC as
|
|
11
|
-
import { PageContextMenu as
|
|
12
|
-
import { copyMarkdownToClipboard as
|
|
13
|
-
import { generateLlmsFullTxt as
|
|
14
|
-
import { getNodeText as
|
|
15
|
-
import { capitalize as
|
|
16
|
-
import { cn as
|
|
17
|
-
import { getClassNames as
|
|
18
|
-
import { convertHtmlToMdx as
|
|
19
|
-
import { serializeMdx as
|
|
20
|
-
import { extractHeadings as
|
|
21
|
-
import { rehypeRemoveHtmlComments as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|