@scalar/api-reference 1.36.2 → 1.38.0
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/CHANGELOG.md +83 -0
- package/dist/browser/standalone.js +28796 -26431
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceContent.vue.d.ts +34 -0
- package/dist/components/ApiReferenceContent.vue.d.ts.map +1 -0
- package/dist/components/ApiReferenceContent.vue.js +8 -0
- package/dist/components/ApiReferenceContent.vue2.js +148 -0
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +239 -219
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +21 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +132 -95
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +28 -28
- package/dist/components/Content/Models/Models.vue.d.ts +10 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +25 -27
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +6 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Models/ModernLayout.vue2.js +30 -29
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -6
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +58 -46
- package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-ref-name.js +9 -7
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +15 -14
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +3 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +34 -30
- package/dist/components/Content/Tags/Tag.vue.d.ts +3 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +14 -12
- package/dist/components/Content/Tags/TagSection.vue.d.ts +2 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +49 -52
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue.js +2 -2
- package/dist/components/GettingStarted.vue2.js +22 -22
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts +1 -0
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +12 -12
- package/dist/esm.d.ts +2 -2
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.d.ts +21 -9
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +42 -53
- package/dist/features/Operation/components/Header.vue.d.ts +2 -2
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +9 -8
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -2
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +31 -29
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +5 -1
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +16 -17
- package/dist/features/Operation/components/ParameterList.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +17 -19
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +6 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +64 -65
- package/dist/features/Operation/components/RequestBody.vue.d.ts +4 -0
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +65 -65
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +4 -0
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +29 -22
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +6 -0
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +18 -16
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -5
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +99 -90
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -5
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -87
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -1
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/api-client-modal/ApiClientModal.vue.js +23 -26
- package/dist/features/api-client-modal/useApiClient.d.ts +3039 -2895
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentFetcher.js +13 -11
- package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
- package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
- package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
- package/dist/features/example-responses/ExampleResponse.vue2.js +26 -18
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +53 -53
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +10 -7
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +47 -44
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +15 -21
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +18 -18
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +8 -8
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +34 -28
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +27 -27
- package/dist/helpers/test-utils.d.ts +3 -365
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +4 -2
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +31 -27
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -19
- package/dist/standalone/lib/html-api.d.ts +3 -3
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/register-globals.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +46 -40
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +11 -11
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +2 -2
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -10
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/helpers/featured-clients.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +3 -0
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +32 -31
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +15 -8
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/InfoBlock.vue.js +25 -20
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts +8 -7
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +27 -32
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -22
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js +70 -65
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts +9 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +2 -2
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue2.js +60 -57
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +3 -365
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +3 -183
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -1
- package/dist/v2/helpers/map-configuration.d.ts +24 -24
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +20 -17
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +0 -13
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +0 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +0 -52
- package/dist/components/Content/Operations/TraversedEntryContainer.vue2.js +0 -4
- package/dist/components/Content/Operations/index.d.ts +0 -2
- package/dist/components/Content/Operations/index.d.ts.map +0 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.d.ts.map +0 -1
- package/dist/hooks/useConfig.js +0 -10
- package/dist/legacy/stores/index.d.ts +0 -2
- package/dist/legacy/stores/index.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.d.ts +0 -5
- package/dist/legacy/stores/useExampleStore.d.ts.map +0 -1
- package/dist/legacy/stores/useExampleStore.js +0 -8
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +0 -14
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +0 -55
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +0 -79
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +0 -7
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +0 -236
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +0 -41
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +0 -22
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts +0 -20
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +0 -33
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts +0 -17
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +0 -26
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts +0 -4
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +0 -10
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +0 -3
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts +0 -29
- package/dist/v2/blocks/scalar-request-example-block/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAudA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAM3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAYrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAiBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAE1B,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,KAAK,EAAE,cAAc,CAAA;IACrB,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA8gBF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4fb6913c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,89 +1,90 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import N from "../components/
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const
|
|
1
|
+
import { defineComponent as v, computed as S, createBlock as a, openBlock as i, unref as o, createSlots as g, withCtx as r, createElementVNode as s, createCommentVNode as n, createElementBlock as l, createVNode as t, Fragment as C, toDisplayString as d, withModifiers as B, normalizeClass as w, createTextVNode as c } from "vue";
|
|
2
|
+
import { OperationCodeSample as O } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
|
+
import { ScalarErrorBoundary as I, ScalarIconButton as P, ScalarMarkdown as R } from "@scalar/components";
|
|
4
|
+
import { ScalarIconPlay as $, ScalarIconCopy as q, ScalarIconWebhooksLogo as W } from "@scalar/icons";
|
|
5
|
+
import { isOperationDeprecated as T, getOperationStability as h, getOperationStabilityColor as L } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { useClipboard as z } from "@scalar/use-hooks/useClipboard";
|
|
7
|
+
import { getResolvedRef as D } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
8
|
+
import E from "../../../components/OperationPath.vue.js";
|
|
9
|
+
import N from "../components/callbacks/Callbacks.vue.js";
|
|
10
|
+
import V from "../components/OperationParameters.vue.js";
|
|
11
|
+
import F from "../components/OperationResponses.vue.js";
|
|
12
|
+
import A from "../../../components/Section/SectionAccordion.vue.js";
|
|
13
|
+
import M from "../../example-responses/ExampleResponses.vue.js";
|
|
14
|
+
import j from "../../../components/LinkList/LinkList.vue.js";
|
|
15
|
+
import U from "../../external-docs/ExternalDocs.vue.js";
|
|
16
|
+
import u from "../../x-badges/XBadges.vue.js";
|
|
17
|
+
import G from "../../test-request-button/TestRequestButton.vue.js";
|
|
18
|
+
import H from "../../../components/HttpMethod/HttpMethod.vue.js";
|
|
19
|
+
import J from "../../../components/Anchor/Anchor.vue.js";
|
|
20
|
+
import f from "../../../components/Badge/Badge.vue.js";
|
|
21
|
+
const K = { class: "operation-title" }, Q = { class: "operation-details" }, X = { class: "endpoint-label" }, Y = { class: "endpoint-label-path" }, Z = { class: "endpoint-label-name" }, _ = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "font-code text-sm"
|
|
24
|
+
}, x = { class: "endpoint-content" }, ee = { class: "operation-details-card" }, oe = { class: "operation-details-card-item" }, te = { class: "operation-details-card-item" }, ie = {
|
|
22
25
|
key: 0,
|
|
23
26
|
class: "operation-details-card-item"
|
|
24
|
-
},
|
|
27
|
+
}, Oe = /* @__PURE__ */ v({
|
|
25
28
|
__name: "ClassicLayout",
|
|
26
29
|
props: {
|
|
27
30
|
id: {},
|
|
28
31
|
path: {},
|
|
29
|
-
clientOptions: {},
|
|
30
32
|
method: {},
|
|
31
|
-
config: {},
|
|
32
33
|
operation: {},
|
|
33
|
-
isWebhook: { type: Boolean },
|
|
34
34
|
server: {},
|
|
35
35
|
securitySchemes: {},
|
|
36
|
-
store: {}
|
|
36
|
+
store: {},
|
|
37
|
+
options: {}
|
|
37
38
|
},
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
return (e,
|
|
39
|
+
setup(m) {
|
|
40
|
+
const y = S(() => m.operation.summary || m.path || ""), { copyToClipboard: k } = z();
|
|
41
|
+
return (e, p) => (i(), a(o(A), {
|
|
41
42
|
id: e.id,
|
|
42
43
|
class: "reference-endpoint",
|
|
43
44
|
transparent: ""
|
|
44
45
|
}, g({
|
|
45
|
-
title:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
t(o(
|
|
46
|
+
title: r(() => [
|
|
47
|
+
s("div", K, [
|
|
48
|
+
s("div", Q, [
|
|
49
|
+
t(o(H), {
|
|
49
50
|
class: "endpoint-type",
|
|
50
51
|
method: e.method,
|
|
51
52
|
short: ""
|
|
52
53
|
}, null, 8, ["method"]),
|
|
53
|
-
t(o(
|
|
54
|
+
t(o(J), {
|
|
54
55
|
id: e.id,
|
|
55
56
|
class: "endpoint-anchor"
|
|
56
57
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
t(
|
|
61
|
-
deprecated: o(
|
|
58
|
+
default: r(() => [
|
|
59
|
+
s("h3", X, [
|
|
60
|
+
s("div", Y, [
|
|
61
|
+
t(E, {
|
|
62
|
+
deprecated: o(T)(e.operation),
|
|
62
63
|
path: e.path
|
|
63
64
|
}, null, 8, ["deprecated", "path"])
|
|
64
65
|
]),
|
|
65
|
-
|
|
66
|
-
o(
|
|
66
|
+
s("div", Z, d(y.value), 1),
|
|
67
|
+
o(h)(e.operation) ? (i(), a(o(f), {
|
|
67
68
|
key: 0,
|
|
68
|
-
class:
|
|
69
|
+
class: w(["capitalize", o(L)(e.operation)])
|
|
69
70
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
|
|
71
|
+
default: r(() => [
|
|
72
|
+
c(d(o(h)(e.operation)), 1)
|
|
72
73
|
]),
|
|
73
74
|
_: 1
|
|
74
75
|
}, 8, ["class"])) : n("", !0),
|
|
75
|
-
e.isWebhook ? (i(),
|
|
76
|
+
e.options.isWebhook ? (i(), a(o(f), {
|
|
76
77
|
key: 1,
|
|
77
78
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
78
79
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
t(o(
|
|
81
|
-
|
|
80
|
+
default: r(() => [
|
|
81
|
+
t(o(W), { weight: "bold" }),
|
|
82
|
+
p[1] || (p[1] = c("Webhook "))
|
|
82
83
|
]),
|
|
83
84
|
_: 1,
|
|
84
85
|
__: [1]
|
|
85
86
|
})) : n("", !0),
|
|
86
|
-
t(o(
|
|
87
|
+
t(o(u), {
|
|
87
88
|
badges: e.operation["x-badges"],
|
|
88
89
|
position: "before"
|
|
89
90
|
}, null, 8, ["badges"])
|
|
@@ -94,82 +95,90 @@ const H = { class: "operation-title" }, J = { class: "operation-details" }, K =
|
|
|
94
95
|
])
|
|
95
96
|
])
|
|
96
97
|
]),
|
|
97
|
-
actions:
|
|
98
|
-
t(o(
|
|
98
|
+
actions: r(({ active: b }) => [
|
|
99
|
+
t(o(u), {
|
|
99
100
|
badges: e.operation["x-badges"],
|
|
100
101
|
position: "after"
|
|
101
102
|
}, null, 8, ["badges"]),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
e.options?.hideTestRequestButton ? n("", !0) : (i(), l(C, { key: 0 }, [
|
|
104
|
+
b && !e.options.isWebhook ? (i(), a(o(G), {
|
|
105
|
+
key: 0,
|
|
106
|
+
method: e.method,
|
|
107
|
+
path: e.path
|
|
108
|
+
}, null, 8, ["method", "path"])) : (i(), a(o($), {
|
|
109
|
+
key: 1,
|
|
110
|
+
class: "endpoint-try-hint size-4.5"
|
|
111
|
+
}))
|
|
112
|
+
], 64)),
|
|
113
|
+
e.options?.showOperationId && e.operation.operationId ? (i(), l("span", _, d(e.operation.operationId), 1)) : n("", !0),
|
|
114
|
+
t(o(P), {
|
|
111
115
|
class: "endpoint-copy p-0.5",
|
|
112
|
-
icon: o(
|
|
116
|
+
icon: o(q),
|
|
113
117
|
label: "Copy endpoint URL",
|
|
114
118
|
size: "xs",
|
|
115
119
|
variant: "ghost",
|
|
116
|
-
onClick:
|
|
120
|
+
onClick: p[0] || (p[0] = B((se) => o(k)(e.path), ["stop"]))
|
|
117
121
|
}, null, 8, ["icon"])
|
|
118
122
|
]),
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
t(
|
|
123
|
+
default: r(() => [
|
|
124
|
+
s("div", x, [
|
|
125
|
+
s("div", ee, [
|
|
126
|
+
s("div", oe, [
|
|
127
|
+
t(V, {
|
|
128
|
+
options: e.options,
|
|
124
129
|
parameters: (
|
|
125
130
|
// These have been resolved in the Operation.vue component
|
|
126
131
|
e.operation.parameters
|
|
127
132
|
),
|
|
128
|
-
requestBody: o(
|
|
129
|
-
}, null, 8, ["parameters", "requestBody"])
|
|
133
|
+
requestBody: o(D)(e.operation.requestBody)
|
|
134
|
+
}, null, 8, ["options", "parameters", "requestBody"])
|
|
130
135
|
]),
|
|
131
|
-
|
|
132
|
-
t(
|
|
133
|
-
|
|
136
|
+
s("div", te, [
|
|
137
|
+
t(F, {
|
|
138
|
+
options: {
|
|
139
|
+
orderRequiredPropertiesFirst: e.options.orderRequiredPropertiesFirst,
|
|
140
|
+
orderSchemaPropertiesBy: e.options.orderSchemaPropertiesBy
|
|
141
|
+
},
|
|
134
142
|
responses: e.operation.responses
|
|
135
|
-
}, null, 8, ["responses"])
|
|
143
|
+
}, null, 8, ["options", "responses"])
|
|
136
144
|
]),
|
|
137
|
-
e.operation?.callbacks ? (i(),
|
|
138
|
-
t(
|
|
145
|
+
e.operation?.callbacks ? (i(), l("div", ie, [
|
|
146
|
+
t(N, {
|
|
139
147
|
callbacks: e.operation.callbacks,
|
|
140
148
|
method: e.method,
|
|
149
|
+
options: e.options,
|
|
141
150
|
path: e.path
|
|
142
|
-
}, null, 8, ["callbacks", "method", "path"])
|
|
151
|
+
}, null, 8, ["callbacks", "method", "options", "path"])
|
|
143
152
|
])) : n("", !0)
|
|
144
153
|
]),
|
|
145
|
-
e.operation.responses ? (i(),
|
|
154
|
+
e.operation.responses ? (i(), a(o(M), {
|
|
146
155
|
key: 0,
|
|
147
156
|
class: "operation-example-card",
|
|
148
157
|
responses: e.operation.responses
|
|
149
158
|
}, null, 8, ["responses"])) : n("", !0),
|
|
150
|
-
|
|
151
|
-
e.operation.externalDocs ? (i(),
|
|
152
|
-
default:
|
|
153
|
-
t(o(
|
|
159
|
+
s("div", null, [
|
|
160
|
+
e.operation.externalDocs ? (i(), a(o(j), { key: 0 }, {
|
|
161
|
+
default: r(() => [
|
|
162
|
+
t(o(U), {
|
|
154
163
|
value: e.operation.externalDocs
|
|
155
164
|
}, null, 8, ["value"])
|
|
156
165
|
]),
|
|
157
166
|
_: 1
|
|
158
167
|
})) : n("", !0),
|
|
159
|
-
t(o(
|
|
160
|
-
default:
|
|
161
|
-
t(o(
|
|
168
|
+
t(o(I), null, {
|
|
169
|
+
default: r(() => [
|
|
170
|
+
t(o(O), {
|
|
162
171
|
class: "operation-example-card",
|
|
163
|
-
clientOptions: e.clientOptions,
|
|
172
|
+
clientOptions: e.options.clientOptions,
|
|
164
173
|
fallback: "",
|
|
174
|
+
isWebhook: e.options.isWebhook,
|
|
165
175
|
method: e.method,
|
|
166
176
|
operation: e.operation,
|
|
167
177
|
path: e.path,
|
|
168
|
-
isWebhook: e.isWebhook,
|
|
169
178
|
securitySchemes: e.securitySchemes,
|
|
170
179
|
selectedClient: e.store.workspace["x-scalar-default-client"],
|
|
171
180
|
selectedServer: e.server
|
|
172
|
-
}, null, 8, ["clientOptions", "
|
|
181
|
+
}, null, 8, ["clientOptions", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
173
182
|
]),
|
|
174
183
|
_: 1
|
|
175
184
|
})
|
|
@@ -180,8 +189,8 @@ const H = { class: "operation-title" }, J = { class: "operation-details" }, K =
|
|
|
180
189
|
}, [
|
|
181
190
|
e.operation.description ? {
|
|
182
191
|
name: "description",
|
|
183
|
-
fn:
|
|
184
|
-
t(o(
|
|
192
|
+
fn: r(() => [
|
|
193
|
+
t(o(R), {
|
|
185
194
|
anchorPrefix: e.id,
|
|
186
195
|
transformType: "heading",
|
|
187
196
|
value: e.operation.description,
|
|
@@ -195,5 +204,5 @@ const H = { class: "operation-title" }, J = { class: "operation-details" }, K =
|
|
|
195
204
|
}
|
|
196
205
|
});
|
|
197
206
|
export {
|
|
198
|
-
|
|
207
|
+
Oe as default
|
|
199
208
|
};
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
+
import { type ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
4
|
import type { OperationObject, SecuritySchemeObject, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
6
5
|
type __VLS_Props = {
|
|
7
6
|
id: string;
|
|
8
7
|
path: string;
|
|
9
|
-
clientOptions: ClientOptionGroup[];
|
|
10
|
-
config: ApiReferenceConfiguration;
|
|
11
8
|
method: HttpMethodType;
|
|
12
9
|
operation: OperationObject;
|
|
13
|
-
isWebhook: boolean;
|
|
14
10
|
securitySchemes: SecuritySchemeObject[];
|
|
15
11
|
server: ServerObject | undefined;
|
|
16
12
|
store: WorkspaceStore;
|
|
13
|
+
/** Global options that can be derived from the top level config or assigned at a block level */
|
|
14
|
+
options: {
|
|
15
|
+
/** Sets some additional display properties when an operation is a webhook */
|
|
16
|
+
isWebhook: boolean;
|
|
17
|
+
showOperationId: boolean | undefined;
|
|
18
|
+
hideTestRequestButton: boolean | undefined;
|
|
19
|
+
expandAllResponses: boolean | undefined;
|
|
20
|
+
clientOptions: ClientOptionGroup[];
|
|
21
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
22
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
23
|
+
};
|
|
17
24
|
};
|
|
18
25
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
26
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA+OA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,oDAAoD,CAAA;AAE3D,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAOrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAuBrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,SAAS,EAAE,eAAe,CAAA;IAC1B,eAAe,EAAE,oBAAoB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,gGAAgG;IAChG,OAAO,EAAE;QACP,6EAA6E;QAC7E,SAAS,EAAE,OAAO,CAAA;QAClB,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA0dF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-acddad0e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|