docusaurus-theme-openapi-docs 0.0.0-619 → 0.0.0-685
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/lib/index.d.ts +2 -0
- package/lib/index.js +53 -27
- package/lib/markdown/createDescription.d.ts +1 -0
- package/lib/markdown/createDescription.js +8 -11
- package/lib/markdown/schema.d.ts +3 -0
- package/lib/markdown/schema.js +138 -139
- package/lib/markdown/utils.d.ts +8 -0
- package/lib/markdown/utils.js +36 -42
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
- package/lib/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
- package/lib/theme/ApiExplorer/Accept/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Accept/index.js +38 -0
- package/lib/theme/ApiExplorer/Accept/slice.d.ts +11 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Accept/slice.js +7 -5
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Container/index.js +29 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +30 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/String.js +134 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +74 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +47 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +156 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +46 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/Line/index.js +47 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +44 -0
- package/lib/theme/ApiExplorer/ApiCodeBlock/index.js +40 -0
- package/lib/theme/ApiExplorer/Authorization/auth-types.d.ts +3 -0
- package/lib/theme/{ApiDemoPanel → ApiExplorer}/Authorization/auth-types.js +4 -10
- package/lib/theme/ApiExplorer/Authorization/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Authorization/index.js +157 -0
- package/lib/theme/ApiExplorer/Authorization/slice.d.ts +40 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Authorization/slice.js +23 -16
- package/lib/theme/ApiExplorer/Body/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/Body/index.js +363 -0
- package/lib/theme/ApiExplorer/Body/slice.d.ts +82 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Body/slice.js +21 -12
- package/lib/theme/ApiExplorer/CodeSnippets/index.d.ts +20 -0
- package/lib/theme/ApiExplorer/CodeSnippets/index.js +406 -0
- package/lib/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +291 -0
- package/lib/theme/ApiExplorer/CodeTabs/index.js +174 -0
- package/lib/theme/ApiExplorer/ContentType/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/ContentType/index.js +40 -0
- package/lib/theme/ApiExplorer/ContentType/slice.d.ts +11 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/ContentType/slice.js +7 -5
- package/lib/theme/ApiExplorer/Export/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Export/index.js +57 -0
- package/lib/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +25 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FloatingButton/index.js +28 -0
- package/{lib-next/theme/ApiDemoPanel/FormFileUpload/styles.module.css → lib/theme/ApiExplorer/FormFileUpload/_FormFileUpload.scss} +32 -35
- package/lib/theme/ApiExplorer/FormFileUpload/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/FormFileUpload/index.js +161 -0
- package/lib/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/lib/theme/ApiExplorer/FormItem/index.d.ts +10 -0
- package/lib/theme/ApiExplorer/FormItem/index.js +44 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormMultiSelect/index.js +51 -0
- package/{src/theme/ApiDemoPanel/FormSelect/styles.module.css → lib/theme/ApiExplorer/FormSelect/_FormSelect.scss} +15 -23
- package/lib/theme/ApiExplorer/FormSelect/index.d.ts +8 -0
- package/lib/theme/ApiExplorer/FormSelect/index.js +35 -0
- package/lib/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.d.ts +9 -0
- package/lib/theme/ApiExplorer/FormTextInput/index.js +73 -0
- package/lib/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/LiveEditor/index.js +154 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/MethodEndpoint/index.js +83 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.js +194 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.js +89 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.js +63 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.d.ts +6 -0
- package/lib/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.js +38 -0
- package/{src/theme/ApiDemoPanel/ParamOptions/styles.module.css → lib/theme/ApiExplorer/ParamOptions/_ParamOptions.scss} +38 -92
- package/lib/theme/ApiExplorer/ParamOptions/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/ParamOptions/index.js +210 -0
- package/lib/theme/ApiExplorer/ParamOptions/slice.d.ts +17 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/ParamOptions/slice.js +7 -5
- package/lib/theme/ApiExplorer/Request/_Request.scss +122 -0
- package/lib/theme/ApiExplorer/Request/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Request/index.js +365 -0
- package/lib/theme/ApiExplorer/Request/makeRequest.d.ts +4 -0
- package/{lib-next/theme/ApiDemoPanel/Execute → lib/theme/ApiExplorer/Request}/makeRequest.js +10 -9
- package/lib/theme/ApiExplorer/Response/_Response.scss +119 -0
- package/lib/theme/ApiExplorer/Response/index.d.ts +6 -0
- package/lib/theme/ApiExplorer/Response/index.js +190 -0
- package/lib/theme/ApiExplorer/Response/slice.d.ts +17 -0
- package/lib/theme/ApiExplorer/Response/slice.js +51 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/SecuritySchemes/index.js +380 -0
- package/{src/theme/ApiDemoPanel/Request/styles.module.css → lib/theme/ApiExplorer/Server/_Server.scss} +15 -7
- package/lib/theme/ApiExplorer/Server/index.d.ts +3 -0
- package/lib/theme/ApiExplorer/Server/index.js +187 -0
- package/lib/theme/ApiExplorer/Server/slice.d.ts +13 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Server/slice.js +10 -5
- package/lib/theme/ApiExplorer/buildPostmanRequest.d.ts +20 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/buildPostmanRequest.js +27 -40
- package/lib/theme/ApiExplorer/index.d.ts +7 -0
- package/lib/theme/ApiExplorer/index.js +37 -0
- package/lib/theme/ApiExplorer/persistanceMiddleware.d.ts +3 -0
- package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/persistanceMiddleware.js +11 -14
- package/lib/theme/ApiExplorer/storage-utils.d.ts +4 -0
- package/lib/theme/{ApiDemoPanel → ApiExplorer}/storage-utils.js +14 -13
- package/lib/theme/ApiItem/Layout/index.d.ts +4 -0
- package/lib/theme/ApiItem/Layout/index.js +78 -56
- package/lib/theme/ApiItem/hooks.d.ts +12 -0
- package/lib/theme/ApiItem/hooks.js +5 -10
- package/lib/theme/ApiItem/index.d.ts +4 -0
- package/lib/theme/ApiItem/index.js +141 -118
- package/lib/theme/ApiItem/store.d.ts +46 -0
- package/lib/theme/ApiItem/store.js +44 -34
- package/lib/theme/ApiLogo/index.d.ts +2 -0
- package/lib/theme/ApiLogo/index.js +34 -32
- package/lib/theme/ApiTabs/_ApiTabs.scss +140 -0
- package/lib/theme/ApiTabs/index.js +105 -190
- package/lib/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +97 -0
- package/lib/theme/DiscriminatorTabs/index.js +102 -189
- package/lib/theme/Markdown/Details/_Details.scss +119 -0
- package/lib/theme/MimeTabs/_MimeTabs.scss +69 -0
- package/lib/theme/MimeTabs/index.js +125 -199
- package/lib/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/lib/theme/ParamsItem/index.js +9 -8
- package/lib/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/lib/theme/ResponseSamples/index.js +2 -7
- package/lib/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/lib/theme/SchemaItem/index.js +31 -22
- package/lib/theme/SchemaTabs/_SchemaTabs.scss +64 -0
- package/lib/theme/SchemaTabs/index.js +97 -185
- package/lib/theme/styles.scss +160 -0
- package/lib/types.d.ts +157 -0
- package/lib/types.js +8 -1
- package/package.json +17 -23
- package/src/index.ts +33 -3
- package/src/theme/ApiDemoPanel/ApiCodeBlock/ExpandButton/index.js +165 -0
- package/src/theme/ApiDemoPanel/ApiCodeBlock/Line/_Line.scss +46 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Accept/index.tsx +2 -2
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/_Container.scss +7 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Container/index.js +29 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/Element.js +30 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/String.js +134 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Content/_Content.scss +91 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/_CopyButton.scss +44 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/CopyButton/index.js +74 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/_ExitButton.scss +16 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExitButton/index.js +47 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/_ExpandButton.scss +62 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/ExpandButton/index.js +156 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/_Line.scss +46 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/Line/index.js +47 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/_WordWrapButton.scss +10 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/WordWrapButton/index.js +44 -0
- package/src/theme/ApiExplorer/ApiCodeBlock/index.js +40 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/index.tsx +3 -3
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/slice.ts +1 -1
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Body/index.tsx +64 -41
- package/src/theme/{ApiDemoPanel/Curl → ApiExplorer/CodeSnippets}/index.tsx +94 -34
- package/src/theme/ApiExplorer/CodeTabs/_CodeTabs.scss +291 -0
- package/src/theme/ApiExplorer/CodeTabs/index.js +174 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/ContentType/index.tsx +2 -2
- package/src/theme/ApiExplorer/FloatingButton/_FloatingButton.scss +25 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/FloatingButton/index.tsx +1 -3
- package/src/theme/{ApiDemoPanel/FormFileUpload/styles.module.css → ApiExplorer/FormFileUpload/_FormFileUpload.scss} +32 -35
- package/src/theme/{ApiDemoPanel → ApiExplorer}/FormFileUpload/index.tsx +10 -6
- package/src/theme/ApiExplorer/FormItem/_FormItem.scss +21 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/FormItem/index.tsx +8 -12
- package/src/theme/ApiExplorer/FormMultiSelect/_FormMultiSelect.scss +30 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/FormMultiSelect/index.tsx +6 -3
- package/{lib/theme/ApiDemoPanel/FormSelect/styles.module.css → src/theme/ApiExplorer/FormSelect/_FormSelect.scss} +15 -23
- package/src/theme/{ApiDemoPanel → ApiExplorer}/FormSelect/index.tsx +5 -3
- package/src/theme/ApiExplorer/FormTextInput/_FormTextInput.scss +34 -0
- package/src/theme/ApiExplorer/FormTextInput/index.tsx +80 -0
- package/src/theme/ApiExplorer/LiveEditor/_LiveEditor.scss +15 -0
- package/src/theme/ApiExplorer/LiveEditor/index.tsx +112 -0
- package/src/theme/ApiExplorer/MethodEndpoint/_MethodEndpoint.scss +22 -0
- package/src/theme/ApiExplorer/MethodEndpoint/index.tsx +87 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem.tsx +156 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem.tsx +64 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem.tsx +86 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem.tsx +65 -0
- package/src/theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem.tsx +38 -0
- package/{lib-next/theme/ApiDemoPanel/ParamOptions/styles.module.css → src/theme/ApiExplorer/ParamOptions/_ParamOptions.scss} +38 -92
- package/src/theme/ApiExplorer/ParamOptions/index.tsx +145 -0
- package/src/theme/ApiExplorer/Request/_Request.scss +122 -0
- package/src/theme/ApiExplorer/Request/index.tsx +286 -0
- package/src/theme/{ApiDemoPanel/Execute → ApiExplorer/Request}/makeRequest.ts +9 -6
- package/src/theme/ApiExplorer/Response/_Response.scss +119 -0
- package/src/theme/ApiExplorer/Response/index.tsx +154 -0
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Response/slice.ts +22 -1
- package/src/theme/{ApiDemoPanel → ApiExplorer}/SecuritySchemes/index.tsx +5 -3
- package/{lib/theme/ApiDemoPanel/Request/styles.module.css → src/theme/ApiExplorer/Server/_Server.scss} +15 -7
- package/src/theme/{ApiDemoPanel → ApiExplorer}/Server/index.tsx +13 -17
- package/src/theme/{ApiDemoPanel → ApiExplorer}/buildPostmanRequest.ts +2 -2
- package/src/theme/{ApiDemoPanel → ApiExplorer}/index.tsx +14 -17
- package/src/theme/{ApiDemoPanel → ApiExplorer}/persistanceMiddleware.ts +1 -1
- package/src/theme/ApiItem/index.tsx +7 -7
- package/src/theme/ApiItem/store.ts +7 -7
- package/src/theme/ApiTabs/_ApiTabs.scss +140 -0
- package/src/theme/ApiTabs/index.js +105 -190
- package/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +97 -0
- package/src/theme/DiscriminatorTabs/index.js +102 -189
- package/src/theme/Markdown/Details/_Details.scss +119 -0
- package/src/theme/MimeTabs/_MimeTabs.scss +69 -0
- package/src/theme/MimeTabs/index.js +125 -199
- package/src/theme/ParamsItem/_ParamsItem.scss +54 -0
- package/src/theme/ParamsItem/index.js +9 -8
- package/src/theme/ResponseSamples/_ResponseSamples.scss +3 -0
- package/src/theme/ResponseSamples/index.js +2 -7
- package/src/theme/SchemaItem/_SchemaItem.scss +89 -0
- package/src/theme/SchemaItem/index.js +31 -22
- package/src/theme/SchemaTabs/_SchemaTabs.scss +64 -0
- package/src/theme/SchemaTabs/index.js +97 -185
- package/src/theme/styles.scss +160 -0
- package/src/theme-openapi.d.ts +90 -47
- package/tsconfig.json +6 -3
- package/lib/postman-code-generators.d.ts +0 -9
- package/lib/react-magic-dropzone.d.ts +0 -9
- package/lib/theme/ApiDemoPanel/Accept/index.js +0 -32
- package/lib/theme/ApiDemoPanel/Accept/slice.js +0 -31
- package/lib/theme/ApiDemoPanel/Authorization/index.js +0 -107
- package/lib/theme/ApiDemoPanel/Authorization/slice.js +0 -123
- package/lib/theme/ApiDemoPanel/Body/index.js +0 -256
- package/lib/theme/ApiDemoPanel/Body/slice.js +0 -102
- package/lib/theme/ApiDemoPanel/CodeTabs/index.js +0 -161
- package/lib/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
- package/lib/theme/ApiDemoPanel/ContentType/index.js +0 -32
- package/lib/theme/ApiDemoPanel/ContentType/slice.js +0 -31
- package/lib/theme/ApiDemoPanel/Curl/index.js +0 -240
- package/lib/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
- package/lib/theme/ApiDemoPanel/Execute/index.js +0 -151
- package/lib/theme/ApiDemoPanel/Execute/makeRequest.js +0 -181
- package/lib/theme/ApiDemoPanel/Export/index.js +0 -47
- package/lib/theme/ApiDemoPanel/FloatingButton/index.js +0 -30
- package/lib/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
- package/lib/theme/ApiDemoPanel/FormFileUpload/index.js +0 -83
- package/lib/theme/ApiDemoPanel/FormFileUpload/styles.module.css +0 -75
- package/lib/theme/ApiDemoPanel/FormItem/index.js +0 -38
- package/lib/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
- package/lib/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -45
- package/lib/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
- package/lib/theme/ApiDemoPanel/FormSelect/index.js +0 -34
- package/lib/theme/ApiDemoPanel/FormTextInput/index.js +0 -28
- package/lib/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
- package/lib/theme/ApiDemoPanel/LiveEditor/index.js +0 -62
- package/lib/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
- package/lib/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -56
- package/lib/theme/ApiDemoPanel/ParamOptions/index.js +0 -216
- package/lib/theme/ApiDemoPanel/ParamOptions/slice.js +0 -34
- package/lib/theme/ApiDemoPanel/ParamOptions/styles.module.css +0 -176
- package/lib/theme/ApiDemoPanel/Request/index.js +0 -67
- package/lib/theme/ApiDemoPanel/Response/index.js +0 -66
- package/lib/theme/ApiDemoPanel/Response/slice.js +0 -36
- package/lib/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -257
- package/lib/theme/ApiDemoPanel/Server/index.js +0 -104
- package/lib/theme/ApiDemoPanel/Server/slice.js +0 -40
- package/lib/theme/ApiDemoPanel/Server/styles.module.css +0 -56
- package/lib/theme/ApiDemoPanel/buildPostmanRequest.js +0 -303
- package/lib/theme/ApiDemoPanel/index.js +0 -41
- package/lib/theme/ApiDemoPanel/persistanceMiddleware.js +0 -59
- package/lib/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
- package/lib/theme/ApiDemoPanel/react-modal.d.ts +0 -8
- package/lib/theme/ApiTabs/styles.module.css +0 -120
- package/lib/theme/DiscriminatorTabs/styles.module.css +0 -119
- package/lib/theme/MimeTabs/styles.module.css +0 -126
- package/lib/theme/ParamsItem/styles.module.css +0 -24
- package/lib/theme/ResponseSamples/styles.module.css +0 -7
- package/lib/theme/SchemaItem/styles.module.css +0 -38
- package/lib/theme/SchemaTabs/styles.module.css +0 -110
- package/lib/theme/styles.css +0 -520
- package/lib/theme-classic.d.ts +0 -13
- package/lib/theme-openapi.d.ts +0 -234
- package/lib/theme-translations.d.ts +0 -9
- package/lib-next/index.js +0 -29
- package/lib-next/markdown/createDescription.js +0 -13
- package/lib-next/markdown/schema.js +0 -153
- package/lib-next/markdown/utils.js +0 -44
- package/lib-next/postman-code-generators.d.ts +0 -9
- package/lib-next/react-magic-dropzone.d.ts +0 -9
- package/lib-next/theme/ApiDemoPanel/Accept/index.js +0 -30
- package/lib-next/theme/ApiDemoPanel/Authorization/auth-types.js +0 -29
- package/lib-next/theme/ApiDemoPanel/Authorization/index.js +0 -142
- package/lib-next/theme/ApiDemoPanel/Body/index.js +0 -324
- package/lib-next/theme/ApiDemoPanel/CodeTabs/index.js +0 -201
- package/lib-next/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
- package/lib-next/theme/ApiDemoPanel/ContentType/index.js +0 -30
- package/lib-next/theme/ApiDemoPanel/Curl/index.js +0 -283
- package/lib-next/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
- package/lib-next/theme/ApiDemoPanel/Execute/index.js +0 -167
- package/lib-next/theme/ApiDemoPanel/Export/index.js +0 -45
- package/lib-next/theme/ApiDemoPanel/FloatingButton/index.js +0 -22
- package/lib-next/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
- package/lib-next/theme/ApiDemoPanel/FormFileUpload/index.js +0 -106
- package/lib-next/theme/ApiDemoPanel/FormItem/index.js +0 -36
- package/lib-next/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
- package/lib-next/theme/ApiDemoPanel/FormMultiSelect/index.js +0 -45
- package/lib-next/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
- package/lib-next/theme/ApiDemoPanel/FormSelect/index.js +0 -26
- package/lib-next/theme/ApiDemoPanel/FormSelect/styles.module.css +0 -51
- package/lib-next/theme/ApiDemoPanel/FormTextInput/index.js +0 -24
- package/lib-next/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
- package/lib-next/theme/ApiDemoPanel/LiveEditor/index.js +0 -59
- package/lib-next/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
- package/lib-next/theme/ApiDemoPanel/MethodEndpoint/index.js +0 -53
- package/lib-next/theme/ApiDemoPanel/ParamOptions/index.js +0 -292
- package/lib-next/theme/ApiDemoPanel/Request/index.js +0 -60
- package/lib-next/theme/ApiDemoPanel/Request/styles.module.css +0 -18
- package/lib-next/theme/ApiDemoPanel/Response/index.js +0 -67
- package/lib-next/theme/ApiDemoPanel/Response/slice.js +0 -23
- package/lib-next/theme/ApiDemoPanel/SecuritySchemes/index.js +0 -274
- package/lib-next/theme/ApiDemoPanel/Server/index.js +0 -132
- package/lib-next/theme/ApiDemoPanel/Server/styles.module.css +0 -56
- package/lib-next/theme/ApiDemoPanel/index.js +0 -28
- package/lib-next/theme/ApiDemoPanel/storage-utils.js +0 -33
- package/lib-next/theme/ApiItem/Layout/index.js +0 -68
- package/lib-next/theme/ApiItem/Layout/styles.module.css +0 -17
- package/lib-next/theme/ApiItem/hooks.js +0 -10
- package/lib-next/theme/ApiItem/index.js +0 -155
- package/lib-next/theme/ApiItem/store.js +0 -38
- package/lib-next/theme/ApiLogo/index.js +0 -48
- package/lib-next/theme/ApiTabs/index.js +0 -277
- package/lib-next/theme/ApiTabs/styles.module.css +0 -120
- package/lib-next/theme/DiscriminatorTabs/index.js +0 -272
- package/lib-next/theme/DiscriminatorTabs/styles.module.css +0 -119
- package/lib-next/theme/MimeTabs/index.js +0 -295
- package/lib-next/theme/MimeTabs/styles.module.css +0 -126
- package/lib-next/theme/ParamsItem/index.js +0 -135
- package/lib-next/theme/ParamsItem/styles.module.css +0 -24
- package/lib-next/theme/ResponseSamples/index.js +0 -27
- package/lib-next/theme/ResponseSamples/styles.module.css +0 -7
- package/lib-next/theme/SchemaItem/index.js +0 -114
- package/lib-next/theme/SchemaItem/styles.module.css +0 -38
- package/lib-next/theme/SchemaTabs/index.js +0 -270
- package/lib-next/theme/SchemaTabs/styles.module.css +0 -110
- package/lib-next/theme/styles.css +0 -520
- package/lib-next/theme-classic.d.ts +0 -13
- package/lib-next/theme-openapi.d.ts +0 -234
- package/lib-next/theme-translations.d.ts +0 -9
- package/lib-next/types.js +0 -1
- package/src/theme/ApiDemoPanel/Body/json2xml.js +0 -43
- package/src/theme/ApiDemoPanel/CodeTabs/index.tsx +0 -239
- package/src/theme/ApiDemoPanel/CodeTabs/styles.module.css +0 -17
- package/src/theme/ApiDemoPanel/Curl/languages.json +0 -1386
- package/src/theme/ApiDemoPanel/Curl/styles.module.css +0 -84
- package/src/theme/ApiDemoPanel/Execute/index.tsx +0 -189
- package/src/theme/ApiDemoPanel/FloatingButton/styles.module.css +0 -26
- package/src/theme/ApiDemoPanel/FormItem/styles.module.css +0 -12
- package/src/theme/ApiDemoPanel/FormMultiSelect/styles.module.css +0 -38
- package/src/theme/ApiDemoPanel/FormTextInput/index.tsx +0 -34
- package/src/theme/ApiDemoPanel/FormTextInput/styles.module.css +0 -21
- package/src/theme/ApiDemoPanel/LiveEditor/index.tsx +0 -75
- package/src/theme/ApiDemoPanel/LiveEditor/styles.module.css +0 -35
- package/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx +0 -62
- package/src/theme/ApiDemoPanel/ParamOptions/index.tsx +0 -326
- package/src/theme/ApiDemoPanel/Request/index.tsx +0 -71
- package/src/theme/ApiDemoPanel/Response/index.tsx +0 -75
- package/src/theme/ApiDemoPanel/Server/styles.module.css +0 -56
- package/src/theme/ApiDemoPanel/postman-collection.d.ts +0 -10
- package/src/theme/ApiDemoPanel/react-modal.d.ts +0 -8
- package/src/theme/ApiTabs/styles.module.css +0 -120
- package/src/theme/DiscriminatorTabs/styles.module.css +0 -119
- package/src/theme/MimeTabs/styles.module.css +0 -126
- package/src/theme/ParamsItem/styles.module.css +0 -24
- package/src/theme/ResponseSamples/styles.module.css +0 -7
- package/src/theme/SchemaItem/styles.module.css +0 -38
- package/src/theme/SchemaTabs/styles.module.css +0 -110
- package/src/theme/styles.css +0 -520
- /package/{lib-next/theme/ApiDemoPanel → lib/theme/ApiExplorer}/Body/json2xml.js +0 -0
- /package/{lib-next/theme/ApiDemoPanel/Curl → lib/theme/ApiExplorer/CodeSnippets}/languages.json +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/Accept/slice.ts +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/Authorization/auth-types.ts +0 -0
- /package/{lib/theme/ApiDemoPanel → src/theme/ApiExplorer}/Body/json2xml.js +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/Body/slice.ts +0 -0
- /package/{lib/theme/ApiDemoPanel/Curl → src/theme/ApiExplorer/CodeSnippets}/languages.json +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/ContentType/slice.ts +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/Export/index.tsx +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/ParamOptions/slice.ts +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/Server/slice.ts +0 -0
- /package/{lib-next/theme/ApiDemoPanel → src/theme/ApiExplorer}/postman-collection.d.ts +0 -0
- /package/{lib-next/theme/ApiDemoPanel → src/theme/ApiExplorer}/react-modal.d.ts +0 -0
- /package/src/theme/{ApiDemoPanel → ApiExplorer}/storage-utils.ts +0 -0
package/src/theme-openapi.d.ts
CHANGED
|
@@ -63,143 +63,176 @@ declare module "@theme/SchemaTabs" {
|
|
|
63
63
|
export default function SchemaTabs(props: any): JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
declare module "@theme/
|
|
66
|
+
declare module "@theme/ApiExplorer/Accept" {
|
|
67
67
|
export default function Accept(): JSX.Element;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
declare module "@theme/
|
|
70
|
+
declare module "@theme/ApiExplorer/Accept/slice" {
|
|
71
71
|
export default accept as Reducer<State, AnyAction>;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
declare module "@theme/
|
|
74
|
+
declare module "@theme/ApiExplorer/Authorization" {
|
|
75
75
|
export default function Authorization(): JSX.Element;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
declare module "@theme/
|
|
78
|
+
declare module "@theme/ApiExplorer/Authorization/slice" {
|
|
79
79
|
export { AuthState, Scheme, setAuthData, setSelectedAuth, createAuth };
|
|
80
80
|
export default auth as Reducer<State, AnyAction>;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
declare module "@theme/
|
|
84
|
-
import { Props as BodyProps } from "@theme/
|
|
83
|
+
declare module "@theme/ApiExplorer/Body" {
|
|
84
|
+
import { Props as BodyProps } from "@theme/ApiExplorer/Body";
|
|
85
85
|
|
|
86
86
|
export default function Body(props: BodyProps): JSX.Element;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
declare module "@theme/
|
|
89
|
+
declare module "@theme/ApiExplorer/Body/json2xml" {
|
|
90
90
|
export default function json2xml(any, any?): any;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
declare module "@theme/
|
|
94
|
-
import { Body, Content, State } from "@theme/
|
|
93
|
+
declare module "@theme/ApiExplorer/Body/slice" {
|
|
94
|
+
import { Body, Content, State } from "@theme/ApiExplorer/Body/slice";
|
|
95
95
|
|
|
96
96
|
export { Body, Content, State };
|
|
97
97
|
export function setStringRawBody(any, any?): any;
|
|
98
98
|
export default body as Reducer<State, AnyAction>;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
declare module "@theme/
|
|
101
|
+
declare module "@theme/ApiExplorer/buildPostmanRequest" {
|
|
102
102
|
export default function buildPostmanRequest(any, any?): any;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
declare module "@theme/
|
|
106
|
-
import { Props as CodeTabsProps } from "@theme/
|
|
105
|
+
declare module "@theme/ApiExplorer/CodeTabs" {
|
|
106
|
+
import { Props as CodeTabsProps } from "@theme/ApiExplorer/CodeTabs";
|
|
107
107
|
|
|
108
108
|
export default function CodeTabs(props: CodeTabsProps): JSX.Element;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
declare module "@theme/
|
|
111
|
+
declare module "@theme/ApiExplorer/ContentType" {
|
|
112
112
|
export default function ContentType(): JSX.Element;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
declare module "@theme/
|
|
115
|
+
declare module "@theme/ApiExplorer/ContentType/slice" {
|
|
116
116
|
export { setContentType };
|
|
117
117
|
export default contentType as Reducer<State, AnyAction>;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
declare module "@theme/
|
|
121
|
-
import { Props as CurlProps } from "@theme/
|
|
120
|
+
declare module "@theme/ApiExplorer/CodeSnippets" {
|
|
121
|
+
import { Props as CurlProps } from "@theme/ApiExplorer/CodeSnippets";
|
|
122
122
|
|
|
123
|
-
export { languageSet, Language } from "@theme/
|
|
123
|
+
export { languageSet, Language } from "@theme/ApiExplorer/CodeSnippets";
|
|
124
124
|
export default function Curl(props: CurlProps): JSX.Element;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
declare module "@theme/
|
|
128
|
-
import { Props as FloatingButtonProps } from "@theme/
|
|
127
|
+
declare module "@theme/ApiExplorer/FloatingButton" {
|
|
128
|
+
import { Props as FloatingButtonProps } from "@theme/ApiExplorer/FloatingButton";
|
|
129
129
|
|
|
130
130
|
export default function FloatingButton(
|
|
131
131
|
props: FloatingButtonProps
|
|
132
132
|
): JSX.Element;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
declare module "@theme/
|
|
136
|
-
import { Props as FormItemProps } from "@theme/
|
|
135
|
+
declare module "@theme/ApiExplorer/FormItem" {
|
|
136
|
+
import { Props as FormItemProps } from "@theme/ApiExplorer/FormItem";
|
|
137
137
|
|
|
138
138
|
export default function FormItem(props: FormItemProps): JSX.Element;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
declare module "@theme/
|
|
142
|
-
import { Props as FormSelectProps } from "@theme/
|
|
141
|
+
declare module "@theme/ApiExplorer/FormSelect" {
|
|
142
|
+
import { Props as FormSelectProps } from "@theme/ApiExplorer/FormSelect";
|
|
143
143
|
|
|
144
144
|
export default function FormSelect(props: FormSelectProps): JSX.Element;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
declare module "@theme/
|
|
148
|
-
import { Props as FormTextInputProps } from "@theme/
|
|
147
|
+
declare module "@theme/ApiExplorer/FormTextInput" {
|
|
148
|
+
import { Props as FormTextInputProps } from "@theme/ApiExplorer/FormTextInput";
|
|
149
149
|
|
|
150
150
|
export default function FormTextInput(props: FormTextInputProps): JSX.Element;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
declare module "@theme/
|
|
154
|
-
import { Props as FormFileUploadProps } from "@theme/
|
|
153
|
+
declare module "@theme/ApiExplorer/FormFileUpload" {
|
|
154
|
+
import { Props as FormFileUploadProps } from "@theme/ApiExplorer/FormFileUpload";
|
|
155
155
|
|
|
156
156
|
export default function FormFileUpload(
|
|
157
157
|
props: FormFileUploadProps
|
|
158
158
|
): JSX.Element;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
declare module "@theme/
|
|
162
|
-
import { Props as FormMultiSelectProps } from "@theme/
|
|
161
|
+
declare module "@theme/ApiExplorer/FormMultiSelect" {
|
|
162
|
+
import { Props as FormMultiSelectProps } from "@theme/ApiExplorer/FormMultiSelect";
|
|
163
163
|
|
|
164
164
|
export default function FormMultiSelect(
|
|
165
165
|
props: FormMultiSelectProps
|
|
166
166
|
): JSX.Element;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
declare module "@theme/
|
|
170
|
-
import { Props as ExecuteProps } from "@theme/
|
|
169
|
+
declare module "@theme/ApiExplorer/Execute" {
|
|
170
|
+
import { Props as ExecuteProps } from "@theme/ApiExplorer/Execute";
|
|
171
171
|
|
|
172
172
|
export default function Execute(props: ExecuteProps): JSX.Element;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
declare module "@theme/
|
|
175
|
+
declare module "@theme/ApiExplorer/LiveEditor" {
|
|
176
176
|
export default function LiveEditor(props: any): JSX.Element;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
declare module "@theme/
|
|
180
|
-
import { Props as MethodEndpointProps } from "@theme/
|
|
179
|
+
declare module "@theme/ApiExplorer/MethodEndpoint" {
|
|
180
|
+
import { Props as MethodEndpointProps } from "@theme/ApiExplorer/MethodEndpoint";
|
|
181
181
|
|
|
182
182
|
export default function MethodEndpoint(
|
|
183
183
|
props: MethodEndpointProps
|
|
184
184
|
): JSX.Element;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
declare module "@theme/
|
|
188
|
-
import { ParamProps } from "@theme/
|
|
187
|
+
declare module "@theme/ApiExplorer/ParamOptions" {
|
|
188
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
189
189
|
|
|
190
190
|
export default function ParamOptions(props: ParamProps): JSX.Element;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
declare module "@theme/
|
|
193
|
+
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamMultiSelectFormItem" {
|
|
194
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
195
|
+
|
|
196
|
+
export default function ParamMultiSelectFormItem(
|
|
197
|
+
props: ParamProps
|
|
198
|
+
): JSX.Element;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamArrayFormItem" {
|
|
202
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
203
|
+
|
|
204
|
+
export default function ParamArrayFormItem(props: ParamProps): JSX.Element;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamSelectFormItem" {
|
|
208
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
209
|
+
|
|
210
|
+
export default function ParamSelectFormItem(props: ParamProps): JSX.Element;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamBooleanFormItem" {
|
|
214
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
215
|
+
|
|
216
|
+
export default function ParamBooleanFormItem(props: ParamProps): JSX.Element;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare module "@theme/ApiExplorer/ParamOptions/ParamFormItems/ParamTextFormItem" {
|
|
220
|
+
import { ParamProps } from "@theme/ApiExplorer/ParamOptions";
|
|
221
|
+
|
|
222
|
+
export default function ParamTextFormItem(props: ParamProps): JSX.Element;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare module "@theme/ApiExplorer/ParamOptions/slice" {
|
|
194
226
|
export type { Param };
|
|
227
|
+
export const setParam;
|
|
195
228
|
export default params as Reducer<State, AnyAction>;
|
|
196
229
|
}
|
|
197
230
|
|
|
198
|
-
declare module "@theme/
|
|
231
|
+
declare module "@theme/ApiExplorer/persistanceMiddleware" {
|
|
199
232
|
export { createPersistanceMiddleware };
|
|
200
233
|
}
|
|
201
234
|
|
|
202
|
-
declare module "@theme/
|
|
235
|
+
declare module "@theme/ApiExplorer/Request" {
|
|
203
236
|
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
|
|
204
237
|
|
|
205
238
|
export interface RequestProps {
|
|
@@ -208,27 +241,37 @@ declare module "@theme/ApiDemoPanel/Request" {
|
|
|
208
241
|
export default function Request(props: RequestProps): JSX.Element;
|
|
209
242
|
}
|
|
210
243
|
|
|
211
|
-
declare module "@theme/
|
|
212
|
-
|
|
244
|
+
declare module "@theme/ApiExplorer/Response" {
|
|
245
|
+
import { ApiItem } from "docusaurus-plugin-openapi-docs/src/types";
|
|
246
|
+
|
|
247
|
+
export interface ResponseProps {
|
|
248
|
+
item: NonNullable<ApiItem>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export default function Response(props: ResponseProps): JSX.Element;
|
|
213
252
|
}
|
|
214
253
|
|
|
215
|
-
declare module "@theme/
|
|
216
|
-
export { setResponse };
|
|
254
|
+
declare module "@theme/ApiExplorer/Response/slice" {
|
|
255
|
+
export { setResponse, setCode, setHeaders, clearCode, clearHeaders };
|
|
217
256
|
export default response as Reducer<State, AnyAction>;
|
|
218
257
|
}
|
|
219
258
|
|
|
220
|
-
declare module "@theme/
|
|
259
|
+
declare module "@theme/ApiExplorer/SecuritySchemes" {
|
|
221
260
|
export default function SecuritySchemes(props: any): JSX.Element;
|
|
222
261
|
}
|
|
223
262
|
|
|
224
|
-
declare module "@theme/
|
|
263
|
+
declare module "@theme/ApiExplorer/Server" {
|
|
225
264
|
export default function Server(): JSX.Element;
|
|
226
265
|
}
|
|
227
266
|
|
|
228
|
-
declare module "@theme/
|
|
267
|
+
declare module "@theme/ApiExplorer/ApiCodeBlock" {
|
|
268
|
+
export default function ApiCodeBlock(): JSX.Element;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
declare module "@theme/ApiExplorer/Server/slice" {
|
|
229
272
|
export default server as Reducer<State, AnyAction>;
|
|
230
273
|
}
|
|
231
274
|
|
|
232
|
-
declare module "@theme/
|
|
275
|
+
declare module "@theme/ApiExplorer/storage-utils" {
|
|
233
276
|
export { createStorage, hashArray };
|
|
234
277
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../tsconfig.base.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"lib": ["
|
|
5
|
-
"
|
|
6
|
-
"
|
|
4
|
+
"lib": ["ESNext", "DOM"],
|
|
5
|
+
"rootDir": "src",
|
|
6
|
+
"module": "CommonJS",
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
"noEmit": false,
|
|
9
|
+
"outDir": "lib",
|
|
7
10
|
"jsx": "react"
|
|
8
11
|
},
|
|
9
12
|
"include": ["src"]
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* ============================================================================
|
|
2
|
-
* Copyright (c) Palo Alto Networks
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
* ========================================================================== */
|
|
7
|
-
|
|
8
|
-
// TODO: Remove this when https://github.com/facebook/docusaurus/issues/6087 is resolved.
|
|
9
|
-
declare module "@paloaltonetworks/postman-code-generators";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* ============================================================================
|
|
2
|
-
* Copyright (c) Palo Alto Networks
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
* ========================================================================== */
|
|
7
|
-
|
|
8
|
-
// TODO: Remove this when https://github.com/facebook/docusaurus/issues/6087 is resolved.
|
|
9
|
-
declare module "react-magic-dropzone";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _FormItem = _interopRequireDefault(require("@theme/ApiDemoPanel/FormItem"));
|
|
9
|
-
var _FormSelect = _interopRequireDefault(require("@theme/ApiDemoPanel/FormSelect"));
|
|
10
|
-
var _hooks = require("@theme/ApiItem/hooks");
|
|
11
|
-
var _slice = require("./slice");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
/* ============================================================================
|
|
14
|
-
* Copyright (c) Palo Alto Networks
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
* ========================================================================== */
|
|
19
|
-
|
|
20
|
-
function Accept() {
|
|
21
|
-
const value = (0, _hooks.useTypedSelector)(state => state.accept.value);
|
|
22
|
-
const options = (0, _hooks.useTypedSelector)(state => state.accept.options);
|
|
23
|
-
const dispatch = (0, _hooks.useTypedDispatch)();
|
|
24
|
-
if (options.length <= 1) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
return <_FormItem.default label="Accept">
|
|
28
|
-
<_FormSelect.default value={value} options={options} onChange={e => dispatch((0, _slice.setAccept)(e.target.value))} />
|
|
29
|
-
</_FormItem.default>;
|
|
30
|
-
}
|
|
31
|
-
var _default = Accept;
|
|
32
|
-
exports.default = _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.slice = exports.setAccept = exports.default = void 0;
|
|
7
|
-
var _toolkit = require("@reduxjs/toolkit");
|
|
8
|
-
/* ============================================================================
|
|
9
|
-
* Copyright (c) Palo Alto Networks
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
* ========================================================================== */
|
|
14
|
-
|
|
15
|
-
const initialState = {};
|
|
16
|
-
const slice = (0, _toolkit.createSlice)({
|
|
17
|
-
name: "accept",
|
|
18
|
-
initialState,
|
|
19
|
-
reducers: {
|
|
20
|
-
setAccept: (state, action) => {
|
|
21
|
-
state.value = action.payload;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
exports.slice = slice;
|
|
26
|
-
const {
|
|
27
|
-
setAccept
|
|
28
|
-
} = slice.actions;
|
|
29
|
-
exports.setAccept = setAccept;
|
|
30
|
-
var _default = slice.reducer;
|
|
31
|
-
exports.default = _default;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _FormItem = _interopRequireDefault(require("@theme/ApiDemoPanel/FormItem"));
|
|
9
|
-
var _FormSelect = _interopRequireDefault(require("@theme/ApiDemoPanel/FormSelect"));
|
|
10
|
-
var _FormTextInput = _interopRequireDefault(require("@theme/ApiDemoPanel/FormTextInput"));
|
|
11
|
-
var _hooks = require("@theme/ApiItem/hooks");
|
|
12
|
-
var _slice = require("./slice");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
/* ============================================================================
|
|
15
|
-
* Copyright (c) Palo Alto Networks
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
* ========================================================================== */
|
|
20
|
-
|
|
21
|
-
function Authorization() {
|
|
22
|
-
const data = (0, _hooks.useTypedSelector)(state => state.auth.data);
|
|
23
|
-
const options = (0, _hooks.useTypedSelector)(state => state.auth.options);
|
|
24
|
-
const selected = (0, _hooks.useTypedSelector)(state => state.auth.selected);
|
|
25
|
-
const dispatch = (0, _hooks.useTypedDispatch)();
|
|
26
|
-
if (selected === undefined) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const selectedAuth = options[selected];
|
|
30
|
-
const optionKeys = Object.keys(options);
|
|
31
|
-
return <div>
|
|
32
|
-
{optionKeys.length > 1 && <_FormItem.default label="Security Scheme">
|
|
33
|
-
<_FormSelect.default options={optionKeys} value={selected} onChange={e => {
|
|
34
|
-
dispatch((0, _slice.setSelectedAuth)(e.target.value));
|
|
35
|
-
}} />
|
|
36
|
-
</_FormItem.default>}
|
|
37
|
-
{selectedAuth.map(a => {
|
|
38
|
-
if (a.type === "http" && a.scheme === "bearer") {
|
|
39
|
-
var _data$a$key$token;
|
|
40
|
-
return <_FormItem.default label="Bearer Token" key={a.key + "-bearer"}>
|
|
41
|
-
<_FormTextInput.default placeholder="Bearer Token" value={(_data$a$key$token = data[a.key].token) !== null && _data$a$key$token !== void 0 ? _data$a$key$token : ""} onChange={e => {
|
|
42
|
-
const value = e.target.value;
|
|
43
|
-
dispatch((0, _slice.setAuthData)({
|
|
44
|
-
scheme: a.key,
|
|
45
|
-
key: "token",
|
|
46
|
-
value: value ? value : undefined
|
|
47
|
-
}));
|
|
48
|
-
}} />
|
|
49
|
-
</_FormItem.default>;
|
|
50
|
-
}
|
|
51
|
-
if (a.type === "oauth2") {
|
|
52
|
-
var _data$a$key$token2;
|
|
53
|
-
return <_FormItem.default label="Bearer Token" key={a.key + "-oauth2"}>
|
|
54
|
-
<_FormTextInput.default placeholder="Bearer Token" value={(_data$a$key$token2 = data[a.key].token) !== null && _data$a$key$token2 !== void 0 ? _data$a$key$token2 : ""} onChange={e => {
|
|
55
|
-
const value = e.target.value;
|
|
56
|
-
dispatch((0, _slice.setAuthData)({
|
|
57
|
-
scheme: a.key,
|
|
58
|
-
key: "token",
|
|
59
|
-
value: value ? value : undefined
|
|
60
|
-
}));
|
|
61
|
-
}} />
|
|
62
|
-
</_FormItem.default>;
|
|
63
|
-
}
|
|
64
|
-
if (a.type === "http" && a.scheme === "basic") {
|
|
65
|
-
var _data$a$key$username, _data$a$key$password;
|
|
66
|
-
return <_react.default.Fragment key={a.key + "-basic"}>
|
|
67
|
-
<_FormItem.default label="Username">
|
|
68
|
-
<_FormTextInput.default placeholder="Username" value={(_data$a$key$username = data[a.key].username) !== null && _data$a$key$username !== void 0 ? _data$a$key$username : ""} onChange={e => {
|
|
69
|
-
const value = e.target.value;
|
|
70
|
-
dispatch((0, _slice.setAuthData)({
|
|
71
|
-
scheme: a.key,
|
|
72
|
-
key: "username",
|
|
73
|
-
value: value ? value : undefined
|
|
74
|
-
}));
|
|
75
|
-
}} />
|
|
76
|
-
</_FormItem.default>
|
|
77
|
-
<_FormItem.default label="Password">
|
|
78
|
-
<_FormTextInput.default placeholder="Password" password value={(_data$a$key$password = data[a.key].password) !== null && _data$a$key$password !== void 0 ? _data$a$key$password : ""} onChange={e => {
|
|
79
|
-
const value = e.target.value;
|
|
80
|
-
dispatch((0, _slice.setAuthData)({
|
|
81
|
-
scheme: a.key,
|
|
82
|
-
key: "password",
|
|
83
|
-
value: value ? value : undefined
|
|
84
|
-
}));
|
|
85
|
-
}} />
|
|
86
|
-
</_FormItem.default>
|
|
87
|
-
</_react.default.Fragment>;
|
|
88
|
-
}
|
|
89
|
-
if (a.type === "apiKey") {
|
|
90
|
-
var _data$a$key$apiKey;
|
|
91
|
-
return <_FormItem.default label={`${a.key}`} key={a.key + "-apikey"}>
|
|
92
|
-
<_FormTextInput.default placeholder={`${a.key}`} value={(_data$a$key$apiKey = data[a.key].apiKey) !== null && _data$a$key$apiKey !== void 0 ? _data$a$key$apiKey : ""} onChange={e => {
|
|
93
|
-
const value = e.target.value;
|
|
94
|
-
dispatch((0, _slice.setAuthData)({
|
|
95
|
-
scheme: a.key,
|
|
96
|
-
key: "apiKey",
|
|
97
|
-
value: value ? value : undefined
|
|
98
|
-
}));
|
|
99
|
-
}} />
|
|
100
|
-
</_FormItem.default>;
|
|
101
|
-
}
|
|
102
|
-
return null;
|
|
103
|
-
})}
|
|
104
|
-
</div>;
|
|
105
|
-
}
|
|
106
|
-
var _default = Authorization;
|
|
107
|
-
exports.default = _default;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createAuth = createAuth;
|
|
7
|
-
exports.slice = exports.setSelectedAuth = exports.setAuthData = exports.default = void 0;
|
|
8
|
-
var _toolkit = require("@reduxjs/toolkit");
|
|
9
|
-
var _storageUtils = require("@theme/ApiDemoPanel/storage-utils");
|
|
10
|
-
var _authTypes = require("./auth-types");
|
|
11
|
-
/* ============================================================================
|
|
12
|
-
* Copyright (c) Palo Alto Networks
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the MIT license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
* ========================================================================== */
|
|
17
|
-
|
|
18
|
-
// The global definitions
|
|
19
|
-
// "securitySchemes": {
|
|
20
|
-
// "BearerAuth": { "type": "http", "scheme": "BeAreR" },
|
|
21
|
-
// "BasicAuth": { "type": "http", "scheme": "basic" }
|
|
22
|
-
// },
|
|
23
|
-
|
|
24
|
-
// The operation level requirements
|
|
25
|
-
// "security": [
|
|
26
|
-
// { "BearerAuth": [] },
|
|
27
|
-
// { "BearerAuth": [], "BasicAuth": [] }
|
|
28
|
-
// ],
|
|
29
|
-
|
|
30
|
-
// SLICE_STATE
|
|
31
|
-
// data:
|
|
32
|
-
// BearerAuth:
|
|
33
|
-
// token=xxx
|
|
34
|
-
// BasicAuth:
|
|
35
|
-
// username=xxx
|
|
36
|
-
// password=xxx
|
|
37
|
-
//
|
|
38
|
-
// options:
|
|
39
|
-
// "BearerAuth": [{ key: "BearerAuth", scopes: [], ...rest }]
|
|
40
|
-
// "BearerAuth and BasicAuth": [{ key: "BearerAuth", scopes: [], ...rest }, { key: "BasicAuth", scopes: [], ...rest }]
|
|
41
|
-
//
|
|
42
|
-
// selected: "BearerAuth and BasicAuth"
|
|
43
|
-
|
|
44
|
-
// LOCAL_STORAGE
|
|
45
|
-
// hash(SLICE_STATE.options) -> "BearerAuth and BasicAuth"
|
|
46
|
-
// BearerAuth -> { token: xxx }
|
|
47
|
-
// BasicAuth -> { username: xxx, password: xxx }
|
|
48
|
-
|
|
49
|
-
function createAuth({
|
|
50
|
-
security,
|
|
51
|
-
securitySchemes,
|
|
52
|
-
options: opts
|
|
53
|
-
}) {
|
|
54
|
-
var _persisted;
|
|
55
|
-
const storage = (0, _storageUtils.createStorage)("sessionStorage");
|
|
56
|
-
let data = {};
|
|
57
|
-
let options = {};
|
|
58
|
-
for (const option of security !== null && security !== void 0 ? security : []) {
|
|
59
|
-
const id = Object.keys(option).join(" and ");
|
|
60
|
-
for (const [schemeID, scopes] of Object.entries(option)) {
|
|
61
|
-
const scheme = securitySchemes === null || securitySchemes === void 0 ? void 0 : securitySchemes[schemeID];
|
|
62
|
-
if (scheme) {
|
|
63
|
-
if (options[id] === undefined) {
|
|
64
|
-
options[id] = [];
|
|
65
|
-
}
|
|
66
|
-
const dataKeys = (0, _authTypes.getAuthDataKeys)(scheme);
|
|
67
|
-
for (const key of dataKeys) {
|
|
68
|
-
if (data[schemeID] === undefined) {
|
|
69
|
-
data[schemeID] = {};
|
|
70
|
-
}
|
|
71
|
-
let persisted = undefined;
|
|
72
|
-
try {
|
|
73
|
-
var _storage$getItem;
|
|
74
|
-
persisted = JSON.parse((_storage$getItem = storage.getItem(schemeID)) !== null && _storage$getItem !== void 0 ? _storage$getItem : "")[key];
|
|
75
|
-
} catch {}
|
|
76
|
-
data[schemeID][key] = persisted;
|
|
77
|
-
}
|
|
78
|
-
options[id].push({
|
|
79
|
-
...scheme,
|
|
80
|
-
key: schemeID,
|
|
81
|
-
scopes
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
let persisted = undefined;
|
|
87
|
-
try {
|
|
88
|
-
var _storage$getItem2;
|
|
89
|
-
persisted = (_storage$getItem2 = storage.getItem((0, _storageUtils.hashArray)(Object.keys(options)))) !== null && _storage$getItem2 !== void 0 ? _storage$getItem2 : undefined;
|
|
90
|
-
} catch {}
|
|
91
|
-
return {
|
|
92
|
-
data,
|
|
93
|
-
options,
|
|
94
|
-
selected: (_persisted = persisted) !== null && _persisted !== void 0 ? _persisted : Object.keys(options)[0]
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
const initialState = {};
|
|
98
|
-
const slice = (0, _toolkit.createSlice)({
|
|
99
|
-
name: "auth",
|
|
100
|
-
initialState,
|
|
101
|
-
reducers: {
|
|
102
|
-
setAuthData: (state, action) => {
|
|
103
|
-
const {
|
|
104
|
-
scheme,
|
|
105
|
-
key,
|
|
106
|
-
value
|
|
107
|
-
} = action.payload;
|
|
108
|
-
state.data[scheme][key] = value;
|
|
109
|
-
},
|
|
110
|
-
setSelectedAuth: (state, action) => {
|
|
111
|
-
state.selected = action.payload;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
exports.slice = slice;
|
|
116
|
-
const {
|
|
117
|
-
setAuthData,
|
|
118
|
-
setSelectedAuth
|
|
119
|
-
} = slice.actions;
|
|
120
|
-
exports.setSelectedAuth = setSelectedAuth;
|
|
121
|
-
exports.setAuthData = setAuthData;
|
|
122
|
-
var _default = slice.reducer;
|
|
123
|
-
exports.default = _default;
|