@scalar/api-reference 1.25.6 → 1.25.9
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 +64 -0
- package/dist/browser/standalone.js +10872 -11312
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.js +5 -5
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +56 -53
- package/dist/components/Content/Authentication/Authentication.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +9 -9
- package/dist/components/Content/Models/Models.vue.d.ts +1 -1
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +1 -1
- package/dist/components/Content/Models/Models.vue2.js +65 -42
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Operation.vue.js +2 -2
- package/dist/components/Content/Operation/Operation.vue2.js +46 -59
- package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +18 -18
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +14 -14
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhook.vue.js +5 -33
- package/dist/components/Content/Webhooks/Webhook.vue2.js +37 -2
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +93 -62
- package/dist/components/Section/CompactSection.vue.d.ts +28 -0
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -0
- package/dist/components/Section/CompactSection.vue.js +7 -0
- package/dist/components/Section/CompactSection.vue2.js +59 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Section/index.d.ts.map +1 -1
- package/dist/{components/Content/Models/CollapsedModel.vue.d.ts → embeds/ExampleRequest/ExampleRequest.vue.d.ts} +9 -5
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -0
- package/dist/embeds/ExampleRequest/index.d.ts +2 -0
- package/dist/embeds/ExampleRequest/index.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +508 -0
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/index.d.ts +3 -0
- package/dist/embeds/OpenApiDocument/index.d.ts.map +1 -0
- package/dist/embeds/OpenApiDocument/types.d.ts +3 -0
- package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -0
- package/dist/embeds/index.d.ts +3 -0
- package/dist/embeds/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +24 -74
- package/dist/features/BaseUrl/types.d.ts +1 -1
- package/dist/features/BaseUrl/types.d.ts.map +1 -1
- package/dist/features/BaseUrl/utils/getServers.d.ts +3 -2
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -1
- package/dist/{components/Content/Introduction/DownloadSpec.vue.d.ts → features/DownloadLink/DownloadLink.vue.d.ts} +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -0
- package/dist/features/DownloadLink/DownloadLink.vue.js +7 -0
- package/dist/features/DownloadLink/DownloadLink.vue2.js +36 -0
- package/dist/features/DownloadLink/index.d.ts +2 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +1 -3
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +127 -122
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +3 -3
- package/dist/features/Search/SearchModal.vue2.js +63 -58
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.d.ts +1 -1
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/getHarRequest.d.ts.map +1 -1
- package/dist/helpers/getHarRequest.js +8 -15
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/helpers/getModels.d.ts.map +1 -1
- package/dist/helpers/openClientFor.d.ts +1 -1
- package/dist/helpers/openClientFor.d.ts.map +1 -1
- package/dist/helpers/openClientFor.js +5 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.d.ts +3 -2
- package/dist/helpers/provideSymbols.d.ts.map +1 -1
- package/dist/helpers/provideSymbols.js +3 -2
- package/dist/index.js +65 -64
- package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +57 -53
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +4 -4
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +5 -5
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +1 -1
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/normalizeHeaders.d.ts +2 -3
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
- package/dist/legacy/helpers/normalizeHeaders.js +24 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts +2 -2
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
- package/dist/legacy/stores/useServerStore.d.ts +32 -6
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
- package/dist/legacy/stores/useServerStore.js +70 -11
- package/dist/legacy/types.d.ts +0 -23
- package/dist/legacy/types.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +13 -12
- package/dist/components/Content/Introduction/DownloadSpec.vue.d.ts.map +0 -1
- package/dist/components/Content/Introduction/DownloadSpec.vue.js +0 -7
- package/dist/components/Content/Introduction/DownloadSpec.vue2.js +0 -30
- package/dist/components/Content/Models/CollapsedModel.vue.d.ts.map +0 -1
- package/dist/components/Content/Models/CollapsedModel.vue.js +0 -7
- package/dist/components/Content/Models/CollapsedModel.vue2.js +0 -70
- package/dist/features/BaseUrl/utils/index.d.ts +0 -2
- package/dist/features/BaseUrl/utils/index.d.ts.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarModal as
|
|
3
|
-
import
|
|
4
|
-
import { useKeyboardNavigation as
|
|
5
|
-
import { useSearchIndex as
|
|
6
|
-
import { useSidebar as
|
|
7
|
-
const
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
], -1)),
|
|
1
|
+
import { defineComponent as B, toRef as R, ref as T, watch as U, openBlock as u, createBlock as k, unref as t, withCtx as r, createElementVNode as s, createVNode as h, isRef as q, createTextVNode as f, toDisplayString as d, createElementBlock as E, Fragment as L, renderList as M, createSlots as D, normalizeClass as H, pushScopeId as O, popScopeId as P } from "vue";
|
|
2
|
+
import { ScalarModal as $, ScalarSearchInput as z, ScalarSearchResultList as K, ScalarSearchResultItem as W } from "@scalar/components";
|
|
3
|
+
import Y from "../../components/Sidebar/SidebarHttpBadge.vue.js";
|
|
4
|
+
import { useKeyboardNavigation as j } from "./useKeyboardNavigation.js";
|
|
5
|
+
import { useSearchIndex as A } from "./useSearchIndex.js";
|
|
6
|
+
import { useSidebar as G } from "../../hooks/useSidebar.js";
|
|
7
|
+
const J = (l) => (O("data-v-fb0fd0be"), l = l(), P(), l), Q = /* @__PURE__ */ J(() => /* @__PURE__ */ s("div", { class: "ref-search-meta" }, [
|
|
8
|
+
/* @__PURE__ */ s("span", null, "↑↓ Navigate"),
|
|
9
|
+
/* @__PURE__ */ s("span", null, "⏎ Select")
|
|
10
|
+
], -1)), oe = /* @__PURE__ */ B({
|
|
11
11
|
__name: "SearchModal",
|
|
12
12
|
props: {
|
|
13
13
|
parsedSpec: {},
|
|
14
14
|
modalState: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
18
|
-
resetSearch:
|
|
19
|
-
fuseSearch:
|
|
16
|
+
setup(l) {
|
|
17
|
+
const c = l, I = R(c, "parsedSpec"), _ = R(c.modalState.open), {
|
|
18
|
+
resetSearch: b,
|
|
19
|
+
fuseSearch: C,
|
|
20
20
|
selectedSearchResult: m,
|
|
21
21
|
searchResultsWithPlaceholderResults: p,
|
|
22
|
-
searchText:
|
|
23
|
-
} =
|
|
24
|
-
specification:
|
|
22
|
+
searchText: i
|
|
23
|
+
} = A({
|
|
24
|
+
specification: I
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
j({
|
|
27
27
|
selectedSearchResult: m,
|
|
28
|
-
active:
|
|
28
|
+
active: _,
|
|
29
29
|
searchResultsWithPlaceholderResults: p,
|
|
30
|
-
onSearchResultClick:
|
|
30
|
+
onSearchResultClick: S
|
|
31
31
|
});
|
|
32
32
|
const w = {
|
|
33
33
|
heading: "DocsPage",
|
|
@@ -35,78 +35,83 @@ const A = (r) => (D("data-v-6ee7fa31"), r = r(), H(), r), G = /* @__PURE__ */ A(
|
|
|
35
35
|
req: "Terminal",
|
|
36
36
|
tag: "CodeFolder",
|
|
37
37
|
webhook: "Terminal"
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
() =>
|
|
38
|
+
}, V = T(null);
|
|
39
|
+
U(
|
|
40
|
+
() => c.modalState.open,
|
|
41
41
|
(o) => {
|
|
42
|
-
o &&
|
|
42
|
+
o && b();
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
|
-
const { setCollapsedSidebarItem:
|
|
46
|
-
function
|
|
45
|
+
const { setCollapsedSidebarItem: N } = G(), x = /#(tag\/[^/]*)/;
|
|
46
|
+
function S(o) {
|
|
47
47
|
let a = "models";
|
|
48
|
-
const e = o.item.href.match(
|
|
49
|
-
e != null && e.length && e.length > 1 && (a = e[1]),
|
|
48
|
+
const e = o.item.href.match(x);
|
|
49
|
+
e != null && e.length && e.length > 1 && (a = e[1]), N(a, !0), c.modalState.hide();
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function F(o) {
|
|
52
52
|
const a = new URL(window.location.href);
|
|
53
53
|
return a.hash = o, a.toString();
|
|
54
54
|
}
|
|
55
|
-
return (o, a) => (u(),
|
|
55
|
+
return (o, a) => (u(), k(t($), {
|
|
56
56
|
state: o.modalState,
|
|
57
57
|
variant: "search"
|
|
58
58
|
}, {
|
|
59
|
-
default:
|
|
60
|
-
|
|
59
|
+
default: r(() => [
|
|
60
|
+
s("div", {
|
|
61
61
|
ref_key: "searchModalRef",
|
|
62
|
-
ref:
|
|
62
|
+
ref: V,
|
|
63
63
|
class: "ref-search-container"
|
|
64
64
|
}, [
|
|
65
|
-
h(t(
|
|
66
|
-
modelValue: t(
|
|
67
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) =>
|
|
68
|
-
onInput: t(
|
|
65
|
+
h(t(z), {
|
|
66
|
+
modelValue: t(i),
|
|
67
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => q(i) ? i.value = e : null),
|
|
68
|
+
onInput: t(C)
|
|
69
69
|
}, null, 8, ["modelValue", "onInput"])
|
|
70
70
|
], 512),
|
|
71
|
-
h(t(
|
|
71
|
+
h(t(K), {
|
|
72
72
|
class: "ref-search-results custom-scroll",
|
|
73
73
|
noResults: !t(p).length
|
|
74
74
|
}, {
|
|
75
|
-
query:
|
|
76
|
-
|
|
75
|
+
query: r(() => [
|
|
76
|
+
f(d(t(i)), 1)
|
|
77
77
|
]),
|
|
78
|
-
default:
|
|
79
|
-
(u(!0),
|
|
78
|
+
default: r(() => [
|
|
79
|
+
(u(!0), E(L, null, M(t(p), (e, g) => (u(), k(t(W), {
|
|
80
80
|
id: e.item.href,
|
|
81
81
|
key: e.refIndex,
|
|
82
|
-
active: t(m) ===
|
|
83
|
-
href:
|
|
82
|
+
active: t(m) === g,
|
|
83
|
+
href: F(e.item.href),
|
|
84
84
|
icon: w[e.item.type],
|
|
85
|
-
onClick: (
|
|
86
|
-
onFocus: (
|
|
87
|
-
},
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
onClick: (n) => S(e),
|
|
86
|
+
onFocus: (n) => m.value = g
|
|
87
|
+
}, D({
|
|
88
|
+
default: r(() => {
|
|
89
|
+
var n, v;
|
|
90
|
+
return [
|
|
91
|
+
s("span", {
|
|
92
|
+
class: H({ deprecated: (v = (n = e.item.operation) == null ? void 0 : n.information) == null ? void 0 : v.deprecated })
|
|
93
|
+
}, d(e.item.title), 3)
|
|
94
|
+
];
|
|
95
|
+
}),
|
|
91
96
|
_: 2
|
|
92
97
|
}, [
|
|
93
98
|
(e.item.httpVerb || e.item.path) && e.item.path !== e.item.title ? {
|
|
94
99
|
name: "description",
|
|
95
|
-
fn:
|
|
96
|
-
|
|
100
|
+
fn: r(() => [
|
|
101
|
+
f(d(e.item.path), 1)
|
|
97
102
|
]),
|
|
98
103
|
key: "0"
|
|
99
104
|
} : e.item.description ? {
|
|
100
105
|
name: "description",
|
|
101
|
-
fn:
|
|
102
|
-
|
|
106
|
+
fn: r(() => [
|
|
107
|
+
f(d(e.item.description), 1)
|
|
103
108
|
]),
|
|
104
109
|
key: "1"
|
|
105
110
|
} : void 0,
|
|
106
111
|
e.item.type === "req" ? {
|
|
107
112
|
name: "addon",
|
|
108
|
-
fn:
|
|
109
|
-
h(
|
|
113
|
+
fn: r(() => [
|
|
114
|
+
h(Y, {
|
|
110
115
|
method: e.item.httpVerb ?? "get"
|
|
111
116
|
}, null, 8, ["method"])
|
|
112
117
|
]),
|
|
@@ -116,12 +121,12 @@ const A = (r) => (D("data-v-6ee7fa31"), r = r(), H(), r), G = /* @__PURE__ */ A(
|
|
|
116
121
|
]),
|
|
117
122
|
_: 1
|
|
118
123
|
}, 8, ["noResults"]),
|
|
119
|
-
|
|
124
|
+
Q
|
|
120
125
|
]),
|
|
121
126
|
_: 1
|
|
122
127
|
}, 8, ["state"]));
|
|
123
128
|
}
|
|
124
129
|
});
|
|
125
130
|
export {
|
|
126
|
-
|
|
131
|
+
oe as default
|
|
127
132
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEmptySpecification.d.ts","sourceRoot":"","sources":["../../src/helpers/createEmptySpecification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createEmptySpecification.d.ts","sourceRoot":"","sources":["../../src/helpers/createEmptySpecification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,oBAAoB,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAsB1C,IAAI,CACX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ClientRequestConfig, type ServerState } from '#legacy';
|
|
2
|
-
import type { OpenAPIV3 } from '@scalar/openapi-
|
|
2
|
+
import type { OpenAPIV3 } from '@scalar/openapi-types';
|
|
3
3
|
import type { AuthenticationState, TransformedOperation } from '@scalar/types/legacy';
|
|
4
4
|
/**
|
|
5
5
|
* Generate parameters for the request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getApiClientRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getApiClientRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getApiClientRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getApiClientRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGjB,MAAM,SAAS,CAAA;AAKhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAI7B;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,cAAc,GACf,EAAE;IACD,WAAW,EAAE,WAAW,CAAA;IACxB,SAAS,EAAE,oBAAoB,CAAA;IAC/B,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAA;IAChD,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAA;CAC9D,GAAG,mBAAmB,CAmCtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHarRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getHarRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getHarRequest.d.ts","sourceRoot":"","sources":["../../src/helpers/getHarRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,eAAO,MAAM,aAAa,gBACX,OAAO,CAAC,kBAAkB,CAAC,EAAE,KACzC,UAyCF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { normalizeHeaders as i } from "../legacy/helpers/normalizeHeaders.js";
|
|
2
|
+
const h = (...s) => {
|
|
3
3
|
let e = {
|
|
4
4
|
httpVersion: "1.1",
|
|
5
5
|
method: "GET",
|
|
@@ -11,7 +11,7 @@ const c = (...i) => {
|
|
|
11
11
|
cookies: [],
|
|
12
12
|
bodySize: -1
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
s.forEach((r) => {
|
|
15
15
|
e = {
|
|
16
16
|
...e,
|
|
17
17
|
...r,
|
|
@@ -22,20 +22,13 @@ const c = (...i) => {
|
|
|
22
22
|
],
|
|
23
23
|
cookies: [...e.cookies, ...r.cookies ?? []]
|
|
24
24
|
};
|
|
25
|
-
});
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
{}
|
|
29
|
-
), d = h.from(a).normalize(!0);
|
|
30
|
-
e.headers = Object.entries(d).map(
|
|
31
|
-
([r, o]) => ({ name: r, value: o })
|
|
32
|
-
);
|
|
33
|
-
const { path: s, ...t } = e;
|
|
34
|
-
return s ? {
|
|
25
|
+
}), e.headers = i(e.headers);
|
|
26
|
+
const { path: o, ...t } = e;
|
|
27
|
+
return o ? {
|
|
35
28
|
...t,
|
|
36
|
-
url: `${e.url}${
|
|
29
|
+
url: `${e.url}${o}`
|
|
37
30
|
} : t;
|
|
38
31
|
};
|
|
39
32
|
export {
|
|
40
|
-
|
|
33
|
+
h as getHarRequest
|
|
41
34
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-
|
|
1
|
+
import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { Spec } from '@scalar/types/legacy';
|
|
3
3
|
/**
|
|
4
4
|
* Returns all models from the specification, no matter if it’s Swagger 2.0 or OpenAPI 3.x.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getModels.d.ts","sourceRoot":"","sources":["../../src/helpers/getModels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getModels.d.ts","sourceRoot":"","sources":["../../src/helpers/getModels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,mHA4BpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openClientFor.d.ts","sourceRoot":"","sources":["../../src/helpers/openClientFor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"openClientFor.d.ts","sourceRoot":"","sources":["../../src/helpers/openClientFor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAWhE;;GAEG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,oBAAoB,EAC/B,cAAc,CAAC,EAAE,SAAS,CAAC,yBAAyB,EAAE,QAuBvD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useServerStore as r } from "../legacy/stores/useServerStore.js";
|
|
2
|
+
import { useApiClientStore as s } from "../legacy/stores/useApiClientStore.js";
|
|
3
|
+
import { getApiClientRequest as i } from "./getApiClientRequest.js";
|
|
4
4
|
import { useRequestStore as n } from "../legacy/stores/useRequestStore.js";
|
|
5
5
|
import { useOpenApiStore as u } from "../legacy/stores/useOpenApiStore.js";
|
|
6
|
-
const { server: l } =
|
|
6
|
+
const { server: l } = r(), { setOperation: p, setGlobalSecurity: c } = u(), { toggleApiClient: m } = s(), { setActiveRequest: S, resetActiveResponse: a } = n();
|
|
7
7
|
function C(e, o) {
|
|
8
|
-
const t =
|
|
8
|
+
const t = i({
|
|
9
9
|
serverState: l,
|
|
10
10
|
operation: e,
|
|
11
11
|
// Let the API client handle the authentication.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/helpers/parse.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAMhD,eAAO,MAAM,KAAK,kBACD,GAAG,eAGf;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,KACA,OAAO,CAAC,IAAI,CAmDd,CAAA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { OpenAPIV3 } from '@scalar/openapi-
|
|
1
|
+
import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
2
|
import type { InjectionKey } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Collection of symbols to use with provide inject
|
|
5
5
|
*/
|
|
6
|
-
export declare const GLOBAL_SECURITY_SYMBOL: InjectionKey<() => OpenAPIV3.SecurityRequirementObject[] | undefined>;
|
|
6
|
+
export declare const GLOBAL_SECURITY_SYMBOL: InjectionKey<() => OpenAPIV3.SecurityRequirementObject[] | OpenAPIV3_1.SecurityRequirementObject[] | undefined>;
|
|
7
7
|
export declare const HIDE_DOWNLOAD_BUTTON_SYMBOL: InjectionKey<() => boolean | undefined>;
|
|
8
|
+
export declare const OPENAPI_DOCUMENT_URL_SYMBOL: InjectionKey<() => string | undefined>;
|
|
8
9
|
//# sourceMappingURL=provideSymbols.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"provideSymbols.d.ts","sourceRoot":"","sources":["../../src/helpers/provideSymbols.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAe,YAAY,CAC5D,MACI,SAAS,CAAC,yBAAyB,EAAE,GACrC,WAAW,CAAC,yBAAyB,EAAE,GACvC,SAAS,CACd,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,OAAO,GAAG,SAAS,CAC1B,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAe,YAAY,CACjE,MAAM,MAAM,GAAG,SAAS,CACzB,CAAA"}
|