@scalar/api-reference 1.25.35 → 1.25.37
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 +21 -0
- package/dist/browser/standalone.js +13407 -13399
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts +3 -12
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +21 -21
- package/dist/components/ApiClientModal.vue.d.ts +3 -12
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.d.ts +4 -13
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts +8 -17
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/Badge/Badge.vue.d.ts +1 -1
- package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +1 -1
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/CardContent.vue.d.ts +1 -10
- package/dist/components/Card/CardContent.vue.d.ts.map +1 -1
- package/dist/components/Card/CardFooter.vue.d.ts +1 -10
- package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
- package/dist/components/Card/CardHeader.vue.d.ts +1 -10
- package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTab.vue.d.ts +1 -1
- package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
- package/dist/components/Card/CardTabHeader.vue.d.ts +4 -4
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.d.ts +1 -1
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.d.ts +3 -12
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +14 -14
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +56 -56
- package/dist/components/Content/Content.vue.d.ts +3 -12
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue2.js +41 -41
- package/dist/components/Content/Introduction/Description.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +3 -12
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Lazy.vue.d.ts +4 -27
- package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.d.ts +4 -25
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts +3 -12
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue2.js +32 -32
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +30 -30
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +6 -15
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +45 -45
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +37 -37
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts +3 -12
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts +3 -12
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue2.js +35 -35
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +3 -12
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +4 -27
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.d.ts +4 -27
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts +3 -12
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts +3 -12
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +16 -16
- package/dist/components/Content/Schema/Schema.vue.d.ts +4 -25
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -29
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +85 -85
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts +3 -12
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +11 -11
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +4 -27
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +114 -114
- package/dist/components/Content/Tag/Endpoints.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue2.js +11 -11
- package/dist/components/Content/Tag/Tag.vue.d.ts +3 -12
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -12
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue2.js +22 -22
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts +3 -12
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +39 -39
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +6 -15
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +1 -1
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +14 -14
- package/dist/components/GettingStarted.vue.d.ts +9 -18
- package/dist/components/GettingStarted.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +32 -32
- package/dist/components/HelpfulLink.vue.d.ts +3 -12
- package/dist/components/HelpfulLink.vue.d.ts.map +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +3 -12
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/IntersectionObserver.vue.d.ts +6 -15
- package/dist/components/IntersectionObserver.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/Layouts.vue.d.ts +5 -14
- package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.d.ts +5 -14
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/LoadingSkeleton.vue.d.ts +4 -25
- package/dist/components/LoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.d.ts +6 -15
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/ScreenReader.vue.d.ts +4 -25
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.d.ts +3 -12
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.d.ts +3 -12
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts +3 -12
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts +1 -1
- package/dist/components/Section/SectionColumns.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContent.vue.d.ts +4 -25
- package/dist/components/Section/SectionContent.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.d.ts +4 -29
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts +3 -12
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue2.js +9 -9
- package/dist/components/Sidebar/Sidebar.vue.d.ts +3 -12
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts +6 -15
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +24 -24
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +3 -12
- package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +253 -13
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +8 -29
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerForm.vue2.js +41 -41
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts +3 -12
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +19 -19
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +6 -15
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +3 -12
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +3 -12
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts +6 -15
- package/dist/features/ExampleRequest/TextSelect.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +3 -12
- package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +83 -83
- package/dist/features/Search/SearchButton.vue.d.ts +4 -25
- package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue2.js +27 -27
- package/dist/features/Search/SearchModal.vue.d.ts +3 -12
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue2.js +66 -66
- package/dist/features/Search/useSearchIndex.d.ts +2 -2
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useNavState.d.ts +3 -3
- package/dist/hooks/useReactiveSpec.d.ts +2 -2
- package/dist/hooks/useRefOnMount.d.ts +1 -1
- package/dist/hooks/useRefOnMount.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts +1 -1
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormButton.vue.d.ts +2 -2
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts +1 -1
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +3 -12
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue2.js +21 -21
- package/dist/legacy/components/SecurityScheme.vue.d.ts +3 -12
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue2.js +147 -147
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +37 -37
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +6 -15
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +36 -36
- package/dist/legacy/stores/useRequestStore.d.ts +7 -3
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +12 -12
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import { Listbox as
|
|
4
|
-
import { ScalarIcon as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, ref as f, computed as x, openBlock as n, createBlock as c, unref as t, withCtx as r, createElementVNode as e, normalizeClass as C, createVNode as p, createTextVNode as h, toDisplayString as d, Teleport as V, normalizeStyle as B, createElementBlock as L, Fragment as O, renderList as N, createCommentVNode as j } from "vue";
|
|
2
|
+
import { useFloating as z, autoUpdate as E, offset as F, flip as U, shift as D } from "@floating-ui/vue";
|
|
3
|
+
import { Listbox as T, ListboxButton as I, ListboxOptions as M, ListboxOption as q } from "@headlessui/vue";
|
|
4
|
+
import { ScalarIcon as A } from "@scalar/components";
|
|
5
|
+
import G from "./CardFormButton.vue.js";
|
|
6
|
+
const H = { class: "scopes-label" }, J = ["checked"], K = { class: "dropdown-item-title" }, P = { class: "dropdown-item-description" }, Z = /* @__PURE__ */ S({
|
|
7
7
|
__name: "SecuritySchemeScopes",
|
|
8
8
|
props: {
|
|
9
9
|
scopes: {},
|
|
10
10
|
selected: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:selected"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
13
|
+
setup(g, { emit: w }) {
|
|
14
|
+
const _ = g, b = w, m = f(), u = f(), { floatingStyles: v } = z(m, u, {
|
|
15
15
|
placement: "bottom-end",
|
|
16
|
-
whileElementsMounted:
|
|
17
|
-
middleware: [
|
|
18
|
-
}),
|
|
19
|
-
get: () =>
|
|
20
|
-
set: (
|
|
16
|
+
whileElementsMounted: E,
|
|
17
|
+
middleware: [F(5), U(), D()]
|
|
18
|
+
}), a = x({
|
|
19
|
+
get: () => _.selected,
|
|
20
|
+
set: (o) => b("update:selected", o)
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
22
|
+
return (o, s) => Object.keys(o.scopes ?? {}).length ? (n(), c(t(T), {
|
|
23
23
|
key: 0,
|
|
24
|
-
modelValue:
|
|
25
|
-
"onUpdate:modelValue":
|
|
24
|
+
modelValue: a.value,
|
|
25
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
|
|
26
26
|
multiple: ""
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
28
|
+
default: r(({ open: l }) => [
|
|
29
29
|
e("div", {
|
|
30
30
|
ref_key: "trigger",
|
|
31
31
|
ref: m,
|
|
32
32
|
class: C(["wrapper", { "wrapper-open": l }])
|
|
33
33
|
}, [
|
|
34
|
-
p(t(
|
|
35
|
-
default:
|
|
36
|
-
e("div",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
p(t(
|
|
34
|
+
p(t(I), { as: G }, {
|
|
35
|
+
default: r(() => [
|
|
36
|
+
e("div", H, [
|
|
37
|
+
h(" Scopes " + d(a.value.length), 1),
|
|
38
|
+
s[1] || (s[1] = e("em", null, "/", -1)),
|
|
39
|
+
h(d(Object.entries(o.scopes ?? {}).length) + " ", 1),
|
|
40
|
+
p(t(A), {
|
|
41
41
|
icon: l ? "ChevronUp" : "ChevronDown",
|
|
42
42
|
size: "sm"
|
|
43
43
|
}, null, 8, ["icon"])
|
|
@@ -46,33 +46,33 @@ const K = (o) => (j("data-v-6d6455a4"), o = o(), z(), o), P = { class: "scopes-l
|
|
|
46
46
|
_: 2
|
|
47
47
|
}, 1024)
|
|
48
48
|
], 2),
|
|
49
|
-
(
|
|
49
|
+
(n(), c(V, { to: "body" }, [
|
|
50
50
|
e("div", {
|
|
51
51
|
ref_key: "dropdown",
|
|
52
52
|
ref: u,
|
|
53
53
|
class: "floating scalar-app",
|
|
54
54
|
style: B(t(v))
|
|
55
55
|
}, [
|
|
56
|
-
p(t(
|
|
56
|
+
p(t(M), {
|
|
57
57
|
as: "dl",
|
|
58
58
|
class: "dropdown"
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
(
|
|
62
|
-
key:
|
|
60
|
+
default: r(() => [
|
|
61
|
+
(n(!0), L(O, null, N(Object.entries(o.scopes ?? {}), ([i, k]) => (n(), c(t(q), {
|
|
62
|
+
key: i,
|
|
63
63
|
as: "div",
|
|
64
64
|
class: "dropdown-item",
|
|
65
|
-
value:
|
|
65
|
+
value: i
|
|
66
66
|
}, {
|
|
67
|
-
default:
|
|
67
|
+
default: r(({ selected: y }) => [
|
|
68
68
|
e("input", {
|
|
69
|
-
checked:
|
|
69
|
+
checked: y,
|
|
70
70
|
class: "dropdown-item-check",
|
|
71
71
|
tabindex: "-1",
|
|
72
72
|
type: "checkbox"
|
|
73
|
-
}, null, 8,
|
|
74
|
-
e("dt",
|
|
75
|
-
e("dd",
|
|
73
|
+
}, null, 8, J),
|
|
74
|
+
e("dt", K, d(i), 1),
|
|
75
|
+
e("dd", P, d(k), 1)
|
|
76
76
|
]),
|
|
77
77
|
_: 2
|
|
78
78
|
}, 1032, ["value"]))), 128))
|
|
@@ -83,9 +83,9 @@ const K = (o) => (j("data-v-6d6455a4"), o = o(), z(), o), P = { class: "scopes-l
|
|
|
83
83
|
]))
|
|
84
84
|
]),
|
|
85
85
|
_: 1
|
|
86
|
-
}, 8, ["modelValue"])) :
|
|
86
|
+
}, 8, ["modelValue"])) : j("", !0);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
Z as default
|
|
91
91
|
};
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
value?: OpenAPIV2.SecurityDefinitionsObject | OpenAPIV3.ComponentsObject["securitySchemes"] | OpenAPIV3_1.ComponentsObject["securitySchemes"];
|
|
4
|
-
}
|
|
5
|
-
input: (key: string) =>
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
4
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
input: (key: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
7
7
|
value?: OpenAPIV2.SecurityDefinitionsObject | OpenAPIV3.ComponentsObject["securitySchemes"] | OpenAPIV3_1.ComponentsObject["securitySchemes"];
|
|
8
|
-
}
|
|
8
|
+
}> & Readonly<{
|
|
9
9
|
onInput?: ((key: string) => any) | undefined;
|
|
10
|
-
}, {}, {}>;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToOption<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
12
|
//# sourceMappingURL=SecuritySchemeSelector.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YASxE,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;YAF/C,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;YASxE,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;YAF/C,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;;;AAwNrD,wBASG"}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarListbox as
|
|
3
|
-
import { useAuthenticationStore as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as N, onMounted as O, onServerPrefetch as V, computed as l, openBlock as d, createElementBlock as x, toDisplayString as y, createBlock as _, unref as r, withCtx as f, createVNode as S, createElementVNode as j, createTextVNode as z, createCommentVNode as I } from "vue";
|
|
2
|
+
import { ScalarListbox as K, ScalarButton as P, ScalarIcon as $ } from "@scalar/components";
|
|
3
|
+
import { useAuthenticationStore as D } from "../stores/useAuthenticationStore.js";
|
|
4
|
+
const E = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "security-scheme-label"
|
|
7
|
-
}, M = /* @__PURE__ */
|
|
7
|
+
}, M = /* @__PURE__ */ N({
|
|
8
8
|
__name: "SecuritySchemeSelector",
|
|
9
9
|
props: {
|
|
10
10
|
value: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["input"],
|
|
13
|
-
setup(
|
|
14
|
-
const a =
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
setup(m, { emit: v }) {
|
|
14
|
+
const a = m, b = v, { authentication: o, setAuthentication: A } = D();
|
|
15
|
+
O(() => {
|
|
16
|
+
o.preferredSecurityScheme || u(Object.keys(a.value ?? {})[0] ?? null);
|
|
17
17
|
});
|
|
18
|
-
const
|
|
18
|
+
const u = (e) => {
|
|
19
19
|
A({
|
|
20
20
|
preferredSecurityScheme: e
|
|
21
21
|
}), b("input", e);
|
|
22
22
|
};
|
|
23
|
-
|
|
24
|
-
() =>
|
|
23
|
+
V(
|
|
24
|
+
() => u(Object.keys(a.value ?? {})[0] ?? null)
|
|
25
25
|
);
|
|
26
|
-
const w = (e) => !(e != null && e.type), C = (e) => e.type.toLowerCase() === "apikey",
|
|
26
|
+
const w = (e) => !(e != null && e.type), C = (e) => e.type.toLowerCase() === "apikey", B = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", L = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", g = (e) => e.type.toLowerCase() === "oauth2", i = (e, t) => `${k(e)} (${t})`, k = (e) => {
|
|
27
27
|
var t, n;
|
|
28
|
-
return w(e) ? "No Authentication" : C(e) ? "API Key" :
|
|
29
|
-
},
|
|
30
|
-
() =>
|
|
28
|
+
return w(e) ? "No Authentication" : C(e) ? "API Key" : B(e) ? "Basic Authentication" : L(e) ? "Bearer Authentication" : g(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (n = e.flows) != null && n.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
|
|
29
|
+
}, s = l(() => Object.keys(a.value ?? {})), p = l(
|
|
30
|
+
() => s.value.map((e) => {
|
|
31
31
|
var t;
|
|
32
32
|
return {
|
|
33
33
|
id: e,
|
|
34
|
-
label:
|
|
34
|
+
label: i((t = a.value) == null ? void 0 : t[e], e)
|
|
35
35
|
};
|
|
36
36
|
})
|
|
37
|
-
),
|
|
37
|
+
), h = l({
|
|
38
38
|
get: () => {
|
|
39
39
|
var e;
|
|
40
|
-
return (e =
|
|
41
|
-
(t) => t.id ===
|
|
40
|
+
return (e = p.value) == null ? void 0 : e.find(
|
|
41
|
+
(t) => t.id === o.preferredSecurityScheme
|
|
42
42
|
);
|
|
43
43
|
},
|
|
44
|
-
set: (e) =>
|
|
44
|
+
set: (e) => u((e == null ? void 0 : e.id) ?? "")
|
|
45
45
|
});
|
|
46
46
|
return (e, t) => {
|
|
47
47
|
var n;
|
|
48
|
-
return
|
|
48
|
+
return s.value.length === 1 ? (d(), x("div", E, y(i((n = e.value) == null ? void 0 : n[s.value[0]], s.value[0])), 1)) : s.value.length > 1 ? (d(), _(r(K), {
|
|
49
49
|
key: 1,
|
|
50
|
-
modelValue:
|
|
51
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
50
|
+
modelValue: h.value,
|
|
51
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => h.value = c),
|
|
52
52
|
label: "Security Scheme",
|
|
53
|
-
options:
|
|
53
|
+
options: p.value,
|
|
54
54
|
resize: ""
|
|
55
55
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
56
|
+
default: f(() => [
|
|
57
|
+
S(r(P), {
|
|
58
58
|
class: "security-scheme-button",
|
|
59
59
|
fullWidth: "",
|
|
60
60
|
variant: "ghost"
|
|
61
61
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
var
|
|
62
|
+
default: f(() => {
|
|
63
|
+
var c;
|
|
64
64
|
return [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
(
|
|
68
|
-
r(
|
|
65
|
+
t[1] || (t[1] = j("span", { class: "sr-only" }, "Selected:", -1)),
|
|
66
|
+
z(" " + y(r(o).preferredSecurityScheme ? i(
|
|
67
|
+
(c = e.value) == null ? void 0 : c[r(o).preferredSecurityScheme],
|
|
68
|
+
r(o).preferredSecurityScheme
|
|
69
69
|
) : "No Authentication") + " ", 1),
|
|
70
|
-
|
|
70
|
+
S(r($), {
|
|
71
71
|
icon: "ChevronDown",
|
|
72
72
|
size: "xs"
|
|
73
73
|
})
|
|
@@ -77,10 +77,10 @@ const T = (o) => (z("data-v-e94bff6c"), o = o(), K(), o), F = {
|
|
|
77
77
|
})
|
|
78
78
|
]),
|
|
79
79
|
_: 1
|
|
80
|
-
}, 8, ["modelValue", "options"])) :
|
|
80
|
+
}, 8, ["modelValue", "options"])) : I("", !0);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
export {
|
|
85
|
-
|
|
85
|
+
M as default
|
|
86
86
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { ClientRequestConfig, RequestResult } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Request state
|
|
4
|
+
*/
|
|
5
|
+
type RequestHistoryOrder = string[];
|
|
2
6
|
type RequestHistoryEntry = RequestResult;
|
|
3
7
|
export declare const useRequestStore: () => {
|
|
4
|
-
readOnly: import("vue").Ref<boolean>;
|
|
8
|
+
readOnly: import("vue").Ref<boolean, boolean>;
|
|
5
9
|
activeRequest: {
|
|
6
10
|
id?: string | undefined;
|
|
7
11
|
name?: string | undefined;
|
|
@@ -47,8 +51,8 @@ export declare const useRequestStore: () => {
|
|
|
47
51
|
};
|
|
48
52
|
activeResponse: import("vue").ComputedRef<import("..").ClientResponse | null>;
|
|
49
53
|
requestHistory: Record<string, RequestResult>;
|
|
50
|
-
requestHistoryOrder: import("vue").Ref<string[]>;
|
|
51
|
-
activeRequestId: import("vue").Ref<string>;
|
|
54
|
+
requestHistoryOrder: import("vue").Ref<string[], string[] | RequestHistoryOrder>;
|
|
55
|
+
activeRequestId: import("vue").Ref<string, string>;
|
|
52
56
|
setActiveResponse: (historyID: string) => void;
|
|
53
57
|
resetActiveResponse: () => void;
|
|
54
58
|
addRequestToHistory: (value: RequestHistoryEntry) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRequestStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useRequestStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"useRequestStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useRequestStore.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAElE;;GAEG;AACH,KAAK,mBAAmB,GAAG,MAAM,EAAE,CAAA;AACnC,KAAK,mBAAmB,GAAG,aAAa,CAAA;AA8DxC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCApCU,MAAM;;iCAPR,mBAAmB;gCA2BpB,mBAAmB;CA2BpD,CAAA"}
|