@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,22 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const c = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as s, createBlock as e, openBlock as r, normalizeProps as t, mergeProps as a, withCtx as n, renderSlot as p } from "vue";
|
|
2
|
+
import l from "./ClassicLayout.vue.js";
|
|
3
|
+
import u from "./ModernLayout.vue.js";
|
|
4
|
+
const c = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Tag",
|
|
6
6
|
props: {
|
|
7
7
|
tag: {},
|
|
8
8
|
layout: {},
|
|
9
|
-
moreThanOneTag: { type: Boolean }
|
|
9
|
+
moreThanOneTag: { type: Boolean },
|
|
10
|
+
isLoading: { type: Boolean },
|
|
11
|
+
onShowMore: { type: Function }
|
|
10
12
|
},
|
|
11
|
-
setup(
|
|
12
|
-
return (o,
|
|
13
|
-
default:
|
|
14
|
-
|
|
13
|
+
setup(i) {
|
|
14
|
+
return (o, m) => o.layout === "classic" ? (r(), e(l, t(a({ key: 0 }, o.$props)), {
|
|
15
|
+
default: n(() => [
|
|
16
|
+
p(o.$slots, "default")
|
|
15
17
|
]),
|
|
16
18
|
_: 3
|
|
17
|
-
}, 16)) : (r(), e(
|
|
18
|
-
default:
|
|
19
|
-
|
|
19
|
+
}, 16)) : (r(), e(u, t(a({ key: 1 }, o.$props)), {
|
|
20
|
+
default: n(() => [
|
|
21
|
+
p(o.$slots, "default")
|
|
20
22
|
]),
|
|
21
23
|
_: 3
|
|
22
24
|
}, 16));
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { TraversedTag } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedTag } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tag: TraversedTag;
|
|
4
4
|
headerId?: string;
|
|
5
5
|
isCollapsed?: boolean;
|
|
6
|
+
isLoading?: boolean;
|
|
6
7
|
};
|
|
7
8
|
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>;
|
|
8
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAe9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;AA6KF,wBAMG"}
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
1
|
+
import { defineComponent as p, createBlock as i, createCommentVNode as r, openBlock as n, unref as o, withCtx as t, withDirectives as u, createVNode as a, createTextVNode as d, toDisplayString as f, vShow as s } from "vue";
|
|
2
|
+
import { ScalarMarkdown as g } from "@scalar/components";
|
|
3
3
|
import C from "../../ScreenReader.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import v from "../../
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
const q = /* @__PURE__ */ f({
|
|
4
|
+
import S from "../../Section/Section.vue.js";
|
|
5
|
+
import c from "../../Section/SectionHeader.vue.js";
|
|
6
|
+
import v from "../../Anchor/Anchor.vue.js";
|
|
7
|
+
import _ from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
+
import y from "../../Section/SectionContent.vue.js";
|
|
9
|
+
import h from "../../Section/SectionColumns.vue.js";
|
|
10
|
+
import m from "../../Section/SectionColumn.vue.js";
|
|
11
|
+
import k from "../../OperationsList/OperationsList.vue.js";
|
|
12
|
+
import w from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
13
|
+
const R = /* @__PURE__ */ p({
|
|
15
14
|
__name: "TagSection",
|
|
16
15
|
props: {
|
|
17
16
|
tag: {},
|
|
18
17
|
headerId: {},
|
|
19
|
-
isCollapsed: { type: Boolean }
|
|
18
|
+
isCollapsed: { type: Boolean },
|
|
19
|
+
isLoading: { type: Boolean }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
return (o, l) => o.tag ? (d(), r(e(_), {
|
|
21
|
+
setup(B) {
|
|
22
|
+
return (e, l) => e.tag ? (n(), i(o(S), {
|
|
24
23
|
key: 0,
|
|
25
|
-
id:
|
|
26
|
-
label:
|
|
24
|
+
id: e.tag.id,
|
|
25
|
+
label: e.tag.title?.toUpperCase(),
|
|
27
26
|
role: "none"
|
|
28
27
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
u(
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
id:
|
|
28
|
+
default: t(() => [
|
|
29
|
+
u(a(o(c), null, {
|
|
30
|
+
default: t(() => [
|
|
31
|
+
a(o(v), {
|
|
32
|
+
id: e.tag.id
|
|
34
33
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
37
|
-
id:
|
|
34
|
+
default: t(() => [
|
|
35
|
+
a(o(_), {
|
|
36
|
+
id: e.headerId,
|
|
38
37
|
level: 2
|
|
39
38
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
default:
|
|
44
|
-
|
|
39
|
+
default: t(() => [
|
|
40
|
+
d(f(e.tag.title) + " ", 1),
|
|
41
|
+
e.isCollapsed ? (n(), i(C, { key: 0 }, {
|
|
42
|
+
default: t(() => l[0] || (l[0] = [
|
|
43
|
+
d(" (Collapsed)")
|
|
45
44
|
])),
|
|
46
45
|
_: 1,
|
|
47
46
|
__: [0]
|
|
48
|
-
})) :
|
|
47
|
+
})) : r("", !0)
|
|
49
48
|
]),
|
|
50
49
|
_: 1
|
|
51
50
|
}, 8, ["id"])
|
|
@@ -55,27 +54,25 @@ const q = /* @__PURE__ */ f({
|
|
|
55
54
|
]),
|
|
56
55
|
_: 1
|
|
57
56
|
}, 512), [
|
|
58
|
-
[
|
|
57
|
+
[s, !e.isLoading]
|
|
59
58
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
clamp: o.isCollapsed ? 7 : void 0,
|
|
70
|
-
value: o.tag?.description ?? "",
|
|
59
|
+
a(o(y), { loading: e.isLoading }, {
|
|
60
|
+
default: t(() => [
|
|
61
|
+
a(o(h), null, {
|
|
62
|
+
default: t(() => [
|
|
63
|
+
a(o(m), null, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
a(o(g), {
|
|
66
|
+
clamp: e.isCollapsed ? 7 : void 0,
|
|
67
|
+
value: e.tag?.description ?? "",
|
|
71
68
|
withImages: ""
|
|
72
69
|
}, null, 8, ["clamp", "value"])
|
|
73
70
|
]),
|
|
74
71
|
_: 1
|
|
75
72
|
}),
|
|
76
|
-
|
|
77
|
-
default:
|
|
78
|
-
|
|
73
|
+
a(o(m), null, {
|
|
74
|
+
default: t(() => [
|
|
75
|
+
a(o(k), { tag: e.tag }, null, 8, ["tag"])
|
|
79
76
|
]),
|
|
80
77
|
_: 1
|
|
81
78
|
})
|
|
@@ -85,14 +82,14 @@ const q = /* @__PURE__ */ f({
|
|
|
85
82
|
]),
|
|
86
83
|
_: 1
|
|
87
84
|
}, 8, ["loading"]),
|
|
88
|
-
|
|
89
|
-
value:
|
|
85
|
+
a(o(w), {
|
|
86
|
+
value: e.tag.xKeys
|
|
90
87
|
}, null, 8, ["value"])
|
|
91
88
|
]),
|
|
92
89
|
_: 1
|
|
93
|
-
}, 8, ["id", "label"])) :
|
|
90
|
+
}, 8, ["id", "label"])) : r("", !0);
|
|
94
91
|
}
|
|
95
92
|
});
|
|
96
93
|
export {
|
|
97
|
-
|
|
94
|
+
R as default
|
|
98
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AAuYhE,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-87962c91"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
|
|
2
2
|
import { ScalarButton as p } from "@scalar/components";
|
|
3
|
-
import { themeLabels as
|
|
4
|
-
const
|
|
3
|
+
import { themeLabels as v } from "@scalar/themes";
|
|
4
|
+
const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ f({
|
|
5
5
|
__name: "GettingStarted",
|
|
6
6
|
props: {
|
|
7
7
|
theme: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
|
|
10
|
-
setup(E, { emit:
|
|
11
|
-
const
|
|
10
|
+
setup(E, { emit: g }) {
|
|
11
|
+
const m = g, h = [
|
|
12
12
|
"default",
|
|
13
13
|
"alternate",
|
|
14
14
|
"moon",
|
|
@@ -20,19 +20,19 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
20
20
|
"mars",
|
|
21
21
|
"deepSpace"
|
|
22
22
|
];
|
|
23
|
-
async function
|
|
23
|
+
async function u() {
|
|
24
24
|
const s = await fetch(
|
|
25
25
|
"https://registry.scalar.com/@scalar/apis/galaxy/latest?format=yaml"
|
|
26
26
|
);
|
|
27
|
-
|
|
27
|
+
m("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s, a) => (
|
|
30
|
-
e("div",
|
|
31
|
-
a[3] || (a[3] =
|
|
32
|
-
e("div",
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onClick:
|
|
29
|
+
return (s, a) => (i(), o("div", S, [
|
|
30
|
+
e("div", x, [
|
|
31
|
+
a[3] || (a[3] = r('<div class="start-logo" data-v-87962c91><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-87962c91></path></svg></div><h1 class="start-h1" data-v-87962c91>Swagger Editor</h1><p class="start-p" data-v-87962c91> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
|
+
e("div", b, [
|
|
33
|
+
c(l(p), {
|
|
34
|
+
class: "w-full",
|
|
35
|
+
onClick: u
|
|
36
36
|
}, {
|
|
37
37
|
default: n(() => a[1] || (a[1] = [
|
|
38
38
|
d(" Show Example ")
|
|
@@ -40,8 +40,8 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
40
40
|
_: 1,
|
|
41
41
|
__: [1]
|
|
42
42
|
}),
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
c(l(p), {
|
|
44
|
+
class: "w-full",
|
|
45
45
|
variant: "outlined",
|
|
46
46
|
onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
|
|
47
47
|
}, {
|
|
@@ -54,17 +54,17 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
|
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
e("div", k, [
|
|
57
|
-
a[5] || (a[5] =
|
|
57
|
+
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-87962c91><div class="start-h2" data-v-87962c91>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-87962c91><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-87962c91></path></svg><span data-v-87962c91>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-87962c91><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g data-v-87962c91><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-87962c91></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-87962c91></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-87962c91></path></g></svg><span data-v-87962c91>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-87962c91><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g fill="currentColor" fill-rule="nonzero" data-v-87962c91><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-87962c91></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-87962c91></polygon></g></svg><span data-v-87962c91>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-87962c91><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g fill="none" fill-rule="evenodd" data-v-87962c91><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-87962c91></circle><g stroke="currentColor" data-v-87962c91><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-87962c91></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-87962c91></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-87962c91></ellipse></g></g></svg><span data-v-87962c91>React</span></a></div>', 1)),
|
|
58
58
|
e("div", Z, [
|
|
59
59
|
a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
60
|
-
(
|
|
60
|
+
(i(), o(w, null, y(h, (t) => e("div", {
|
|
61
61
|
key: t,
|
|
62
|
-
class:
|
|
63
|
-
onClick: (F) => s.$emit("changeTheme", { id: t, label: l(
|
|
64
|
-
},
|
|
62
|
+
class: A(["start-item", { "start-item-active": t === s.theme }]),
|
|
63
|
+
onClick: (F) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
|
|
64
|
+
}, C(l(v)[t]), 11, _)), 64))
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
|
-
a[6] || (a[6] =
|
|
67
|
+
a[6] || (a[6] = r('<p class="start-h1" data-v-87962c91>Features</p><ul class="start-ul" data-v-87962c91><li data-v-87962c91><p class="start-h3" data-v-87962c91>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
68
68
|
]));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAO9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationsList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f88c366"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/
|
|
1
|
+
import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/navigation';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
operation: TraversedOperation | TraversedWebhook;
|
|
4
4
|
isCollapsed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,4CAA4C,CAAA;AAOnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7dff261d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
id: string;
|
|
3
|
+
onShowMore: ((id: string) => void) | undefined;
|
|
3
4
|
};
|
|
4
5
|
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>;
|
|
5
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShowMoreButton.vue.d.ts","sourceRoot":"","sources":["../../src/components/ShowMoreButton.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;;AAkEF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4b6e7dc9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIconCaretDown as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const h = /* @__PURE__ */ c({
|
|
1
|
+
import { defineComponent as r, createElementBlock as c, openBlock as a, createTextVNode as i, createVNode as s, unref as l } from "vue";
|
|
2
|
+
import { ScalarIconCaretDown as m } from "@scalar/icons";
|
|
3
|
+
import { useSidebar as d } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
4
|
+
const S = /* @__PURE__ */ r({
|
|
6
5
|
__name: "ShowMoreButton",
|
|
7
6
|
props: {
|
|
8
|
-
id: {}
|
|
7
|
+
id: {},
|
|
8
|
+
onShowMore: { type: Function }
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const { setCollapsedSidebarItem: t } =
|
|
12
|
-
t(e.id, !0),
|
|
11
|
+
const { setCollapsedSidebarItem: t } = d(), n = () => {
|
|
12
|
+
t(e.id, !0), e.onShowMore?.(e.id);
|
|
13
13
|
};
|
|
14
|
-
return (
|
|
14
|
+
return (u, o) => (a(), c("button", {
|
|
15
15
|
class: "show-more",
|
|
16
16
|
type: "button",
|
|
17
17
|
onClick: n
|
|
18
18
|
}, [
|
|
19
|
-
o[0] || (o[0] =
|
|
20
|
-
|
|
19
|
+
o[0] || (o[0] = i(" Show More ")),
|
|
20
|
+
s(l(m), {
|
|
21
21
|
class: "text-c-2 mt-0.25 size-3",
|
|
22
22
|
weight: "bold"
|
|
23
23
|
})
|
|
@@ -25,5 +25,5 @@ const h = /* @__PURE__ */ c({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
S as default
|
|
29
29
|
};
|
package/dist/esm.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiReferenceConfiguration,
|
|
1
|
+
import type { ApiReferenceConfiguration, SourceConfiguration } from '@scalar/types/api-reference';
|
|
2
2
|
/**
|
|
3
3
|
* Initialize Scalar References
|
|
4
4
|
*
|
|
@@ -16,7 +16,7 @@ initialConfig: Partial<ApiReferenceConfiguration> | Partial<ApiReferenceConfigur
|
|
|
16
16
|
mountOnInitialize?: boolean): {
|
|
17
17
|
/** Update the configuration for a mounted reference */
|
|
18
18
|
updateConfig(newConfig: Partial<ApiReferenceConfiguration>, mergeConfigs?: boolean): void;
|
|
19
|
-
updateSpec(spec:
|
|
19
|
+
updateSpec(spec: SourceConfiguration): void;
|
|
20
20
|
/** Mount the references to a given element */
|
|
21
21
|
mount: (mountingEl?: HTMLElement | null) => void;
|
|
22
22
|
/** Unmount the app from an element */
|
package/dist/esm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAMjG;;;;GAIG;AACH,wBAAgB,sBAAsB;AACpC,yCAAyC;AACzC,EAAE,EAAE,WAAW,GAAG,IAAI;AACtB,iDAAiD;AACjD,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC,EAAE;AACxF;;;GAGG;AACH,iBAAiB,UAAO;IA2BtB,uDAAuD;4BAC/B,OAAO,CAAC,yBAAyB,CAAC;qBAOzC,mBAAmB;IAOpC,8CAA8C;;IAE9C,sCAAsC;;EAGzC"}
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
+
import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
|
|
1
2
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
3
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
3
|
-
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
4
4
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
5
|
-
import type {
|
|
6
|
-
import type { ClientOptionGroup } from '../../v2/blocks/scalar-request-example-block/types';
|
|
5
|
+
import type { PathItemObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
7
6
|
type __VLS_Props = {
|
|
8
|
-
path: string;
|
|
9
|
-
method: HttpMethod;
|
|
10
|
-
clientOptions: ClientOptionGroup[];
|
|
11
|
-
config: ApiReferenceConfiguration;
|
|
12
|
-
document: OpenApiDocument;
|
|
13
|
-
isWebhook: boolean;
|
|
14
7
|
id: string;
|
|
8
|
+
method: HttpMethod;
|
|
9
|
+
/** Key of the operations path in the document.paths object */
|
|
10
|
+
path: string;
|
|
11
|
+
/** OpenAPI path object that will include the operation */
|
|
12
|
+
pathValue: PathItemObject | undefined;
|
|
13
|
+
/** Active server*/
|
|
15
14
|
server: Server | undefined;
|
|
15
|
+
/** Document level security requirements */
|
|
16
|
+
security: SecurityRequirementObject[] | undefined;
|
|
16
17
|
store: WorkspaceStore;
|
|
17
18
|
/** @deprecated Use `document` instead, we just need the selected security scheme uids for now */
|
|
18
19
|
collection: Collection;
|
|
20
|
+
options: {
|
|
21
|
+
layout: 'classic' | 'modern';
|
|
22
|
+
/** Sets some additional display properties when an operation is a webhook */
|
|
23
|
+
isWebhook: boolean;
|
|
24
|
+
showOperationId: boolean | undefined;
|
|
25
|
+
hideTestRequestButton: boolean | undefined;
|
|
26
|
+
expandAllResponses: boolean | undefined;
|
|
27
|
+
clientOptions: ClientOptionGroup[];
|
|
28
|
+
orderRequiredPropertiesFirst: boolean | undefined;
|
|
29
|
+
orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
|
|
30
|
+
};
|
|
19
31
|
};
|
|
20
32
|
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>;
|
|
21
33
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAEpE,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EAE1B,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,SAAS,EAAE,cAAc,GAAG,SAAS,CAAA;IACrC,mBAAmB;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IAGjD,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,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;;AAuIF,wBAMG"}
|