@scalar/api-client 2.3.8 → 2.3.10
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 +30 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +8 -8
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts +1 -1
- package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +1 -0
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +8 -8
- package/dist/layouts/App/create-api-client-app.d.ts +658 -473
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +1337 -967
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +4 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +658 -473
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +651 -466
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +18 -20
- package/dist/libs/find-request.d.ts +4 -4
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/send-request/build-request-security.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts +49 -47
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +67 -61
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +44 -34
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +18 -18
- package/dist/store/environment.d.ts +9 -9
- package/dist/store/import-spec.d.ts +154 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +272 -272
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +44 -44
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +10 -10
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/servers.d.ts +50 -30
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/store.d.ts +655 -470
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +10 -10
- package/dist/store/workspace.d.ts +44 -44
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +5 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +52 -11
- package/dist/views/Collection/CollectionNavigation.vue.js +34 -34
- package/dist/views/Collection/CollectionServerForm.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Request/Request.vue.d.ts +2 -0
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +71 -75
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +49 -46
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +24 -24
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +26 -19
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +191 -193
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +2 -0
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +50 -47
- package/package.json +13 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuth.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-1f349e0c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as
|
|
1
|
+
import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as g, createElementBlock as p, normalizeClass as z, createCommentVNode as E, createVNode as f, Fragment as k, createTextVNode as x } from "vue";
|
|
2
2
|
import { useModal as K, ScalarComboboxMultiselect as W, ScalarButton as F, ScalarIcon as G } from "@scalar/components";
|
|
3
3
|
import { isDefined as H } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -21,17 +21,17 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
21
21
|
workspace: {}
|
|
22
22
|
},
|
|
23
23
|
setup(s) {
|
|
24
|
-
const { layout:
|
|
25
|
-
securitySchemes:
|
|
24
|
+
const { layout: q } = P(), {
|
|
25
|
+
securitySchemes: v,
|
|
26
26
|
securitySchemeMutators: O,
|
|
27
27
|
requestMutators: w,
|
|
28
28
|
collectionMutators: M
|
|
29
|
-
} = Q(), R = L(), C = D(null), y = K(),
|
|
29
|
+
} = Q(), R = L(), C = D(null), y = K(), S = D(
|
|
30
30
|
null
|
|
31
31
|
), A = h(() => {
|
|
32
32
|
const e = Z(s.operation, s.collection);
|
|
33
33
|
return { filteredRequirements: e.filter((o) => Object.keys(o).length), requirements: e };
|
|
34
|
-
}),
|
|
34
|
+
}), b = h(() => {
|
|
35
35
|
const { filteredRequirements: e, requirements: t } = A.value;
|
|
36
36
|
if (!t.length)
|
|
37
37
|
return null;
|
|
@@ -45,8 +45,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
45
45
|
}), a = h(
|
|
46
46
|
() => s.selectedSecuritySchemeUids.map((e) => {
|
|
47
47
|
if (Array.isArray(e))
|
|
48
|
-
return _(e,
|
|
49
|
-
const t =
|
|
48
|
+
return _(e, v);
|
|
49
|
+
const t = v[e ?? ""];
|
|
50
50
|
if (t)
|
|
51
51
|
return ee(t);
|
|
52
52
|
}).filter(H)
|
|
@@ -68,10 +68,10 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
68
68
|
}
|
|
69
69
|
const V = (e) => {
|
|
70
70
|
var t;
|
|
71
|
-
|
|
71
|
+
s.collection.useCollectionSecurity ? M.edit(s.collection.uid, "selectedSecuritySchemeUids", e) : (t = s.operation) != null && t.uid && w.edit(s.operation.uid, "selectedSecuritySchemeUids", e);
|
|
72
72
|
};
|
|
73
73
|
function $({ id: e, label: t }) {
|
|
74
|
-
|
|
74
|
+
S.value = { id: e, label: t }, y.show();
|
|
75
75
|
}
|
|
76
76
|
const B = (e) => {
|
|
77
77
|
var o;
|
|
@@ -88,8 +88,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
88
88
|
return te(
|
|
89
89
|
A.value.filteredRequirements,
|
|
90
90
|
((e = s.collection) == null ? void 0 : e.securitySchemes) ?? [],
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
v,
|
|
92
|
+
q === "modal" || s.layout === "reference"
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -103,18 +103,18 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
103
103
|
id: r(R),
|
|
104
104
|
class: "inline-flex items-center gap-1"
|
|
105
105
|
}, [
|
|
106
|
-
i("span", null,
|
|
107
|
-
|
|
106
|
+
i("span", null, g(e.title), 1),
|
|
107
|
+
b.value ? (m(), p("span", {
|
|
108
108
|
key: 0,
|
|
109
|
-
class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1":
|
|
110
|
-
},
|
|
109
|
+
class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }])
|
|
110
|
+
}, g(b.value.text), 3)) : E("", !0)
|
|
111
111
|
], 8, le)
|
|
112
112
|
]),
|
|
113
113
|
actions: d(() => [
|
|
114
114
|
i("div", oe, [
|
|
115
115
|
f(r(W), {
|
|
116
116
|
class: "w-72 text-xs",
|
|
117
|
-
isDeletable: r(
|
|
117
|
+
isDeletable: r(q) !== "modal" && e.layout !== "reference",
|
|
118
118
|
modelValue: a.value,
|
|
119
119
|
multiple: "",
|
|
120
120
|
options: T.value,
|
|
@@ -134,14 +134,14 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
134
134
|
var o;
|
|
135
135
|
return [
|
|
136
136
|
i("div", ne, [
|
|
137
|
-
a.value.length === 0 ? (m(), p(
|
|
137
|
+
a.value.length === 0 ? (m(), p(k, { key: 0 }, [
|
|
138
138
|
t[2] || (t[2] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
139
|
-
t[3] || (t[3] =
|
|
140
|
-
], 64)) : a.value.length === 1 ? (m(), p(
|
|
139
|
+
t[3] || (t[3] = x(" Auth Type "))
|
|
140
|
+
], 64)) : a.value.length === 1 ? (m(), p(k, { key: 1 }, [
|
|
141
141
|
t[4] || (t[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
142
|
-
|
|
143
|
-
], 64)) : (m(), p(
|
|
144
|
-
t[5] || (t[5] =
|
|
142
|
+
x(" " + g((o = a.value[0]) == null ? void 0 : o.label), 1)
|
|
143
|
+
], 64)) : (m(), p(k, { key: 2 }, [
|
|
144
|
+
t[5] || (t[5] = x(" Multiple ")),
|
|
145
145
|
t[6] || (t[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
146
146
|
], 64))
|
|
147
147
|
]),
|
|
@@ -170,12 +170,12 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
170
170
|
workspace: e.workspace
|
|
171
171
|
}, null, 8, ["collection", "envVariables", "environment", "layout", "selectedSchemeOptions", "server", "workspace"]),
|
|
172
172
|
f(X, {
|
|
173
|
-
scheme:
|
|
173
|
+
scheme: S.value,
|
|
174
174
|
state: r(y),
|
|
175
175
|
onClose: t[0] || (t[0] = (o) => r(y).hide()),
|
|
176
176
|
onDelete: t[1] || (t[1] = (o) => {
|
|
177
177
|
var n;
|
|
178
|
-
return B((n =
|
|
178
|
+
return B((n = S.value) == null ? void 0 : n.id);
|
|
179
179
|
})
|
|
180
180
|
}, null, 8, ["scheme", "state"])
|
|
181
181
|
]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
3
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
4
|
import type { EnvVariable } from '../../../../store/active-entities';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
collection: Collection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0aF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./RequestAuthTab.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-36066bff"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import { type Operation, type RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
3
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
4
|
import type { EnvVariable } from '../../../store/active-entities';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
example: RequestExample;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqnBA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAqnBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAarE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAM1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAs6BJ,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bf1b90e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
1
|
import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
collection: Collection;
|
|
5
5
|
example: RequestExample;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA8KA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAcrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+PF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestCodeExample.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = /* @__PURE__ */
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-6c928e79"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import type { Operation, RequestExample } from '@scalar/oas-utils/entities/spec';
|
|
3
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
4
|
import type { EnvVariable } from '../../../store/active-entities';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
example: RequestExample;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"RequestPathParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestPathParams.vue"],"names":[],"mappings":"AAqIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;IAC5C,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B,CAAC;;AAwLF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestSection.test.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
2
|
import type { SelectedSecuritySchemeUids } from '@scalar/oas-utils/entities/shared';
|
|
4
3
|
import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
|
|
4
|
+
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
5
5
|
import type { EnvVariable } from '../../../store/active-entities';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
collection: Collection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AA4TA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AASrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,OAAO,EAAE,cAAc,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+UF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6ea5cf36"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, computed as p, useId as O, ref as H, watch as N, openBlock as m, createBlock as b, withCtx as v, createElementVNode as d, unref as
|
|
1
|
+
import { defineComponent as E, computed as p, useId as O, ref as H, watch as N, openBlock as m, createBlock as b, withCtx as v, createElementVNode as d, unref as t, createElementBlock as c, createCommentVNode as w, toDisplayString as I, createVNode as n, withDirectives as i, vShow as s } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as K } from "@scalar/components";
|
|
3
3
|
import { canMethodHaveBody as f, isDefined as U, REGEX as V } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import D from "../../../components/SectionFilter.vue.js";
|
|
@@ -39,14 +39,14 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
39
39
|
"Headers",
|
|
40
40
|
"Query",
|
|
41
41
|
"Body"
|
|
42
|
-
], { requestMutators:
|
|
42
|
+
], { requestMutators: q, cookies: P, securitySchemes: S } = T(), { layout: u } = W(), h = p(() => {
|
|
43
43
|
const e = /* @__PURE__ */ new Set(["All", ...A]);
|
|
44
|
-
return l.example.parameters.path.length || e.delete("Variables"), f(l.operation.method ?? "get") || e.delete("Body"),
|
|
44
|
+
return l.example.parameters.path.length || e.delete("Variables"), f(l.operation.method ?? "get") || e.delete("Body"), k.value && e.delete("Auth"), [...e];
|
|
45
45
|
}), r = p(
|
|
46
46
|
() => Object.fromEntries(
|
|
47
|
-
|
|
47
|
+
h.value.map((e) => [e, O()])
|
|
48
48
|
)
|
|
49
|
-
),
|
|
49
|
+
), k = p(
|
|
50
50
|
() => {
|
|
51
51
|
var e;
|
|
52
52
|
return u === "modal" && ((e = l.operation.security) == null ? void 0 : e.length) === 0;
|
|
@@ -60,9 +60,9 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
60
60
|
);
|
|
61
61
|
const g = (e) => {
|
|
62
62
|
const o = e.target;
|
|
63
|
-
|
|
63
|
+
q.edit(l.operation.uid, "summary", o.value);
|
|
64
64
|
}, B = p(
|
|
65
|
-
() => (l.workspace.cookies ?? []).map((e) =>
|
|
65
|
+
() => (l.workspace.cookies ?? []).map((e) => P[e]).filter(U).filter((e) => e.name).filter(
|
|
66
66
|
(e) => {
|
|
67
67
|
var o;
|
|
68
68
|
return $(((o = l.server) == null ? void 0 : o.url) || l.operation.path, e.domain);
|
|
@@ -84,8 +84,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
84
84
|
}, {
|
|
85
85
|
title: v(() => [
|
|
86
86
|
d("div", z, [
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
t(u) !== "modal" ? (m(), c("label", G)) : w("", !0),
|
|
88
|
+
t(u) !== "modal" ? (m(), c("input", {
|
|
89
89
|
key: 1,
|
|
90
90
|
id: "requestname",
|
|
91
91
|
class: "text-c-1 group-hover-input pl-1.25 md:-ml-1.25 pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded has-[:focus-visible]:outline",
|
|
@@ -98,7 +98,7 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
98
98
|
modelValue: a.value,
|
|
99
99
|
"onUpdate:modelValue": o[0] || (o[0] = (R) => a.value = R),
|
|
100
100
|
filterIds: r.value,
|
|
101
|
-
filters:
|
|
101
|
+
filters: h.value
|
|
102
102
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
103
103
|
]),
|
|
104
104
|
default: v(() => [
|
|
@@ -107,8 +107,9 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
107
107
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col divide-y",
|
|
108
108
|
role: a.value === "All" ? "tabpanel" : "none"
|
|
109
109
|
}, [
|
|
110
|
-
e.collection && e.workspace && (
|
|
110
|
+
e.collection && e.workspace && (t(u) !== "modal" || Object.keys(t(S) ?? {}).length) ? i((m(), b(F, {
|
|
111
111
|
key: 0,
|
|
112
|
+
class: "request-section-content-auth",
|
|
112
113
|
id: r.value.Auth,
|
|
113
114
|
collection: e.collection,
|
|
114
115
|
envVariables: e.envVariables,
|
|
@@ -123,10 +124,11 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
123
124
|
}, null, 8, ["id", "collection", "envVariables", "environment", "operation", "role", "selectedSecuritySchemeUids", "server", "workspace"])), [
|
|
124
125
|
[
|
|
125
126
|
s,
|
|
126
|
-
!
|
|
127
|
+
!k.value && (a.value === "All" || a.value === "Auth")
|
|
127
128
|
]
|
|
128
129
|
]) : w("", !0),
|
|
129
|
-
|
|
130
|
+
i(n(j, {
|
|
131
|
+
class: "request-section-content-path-params",
|
|
130
132
|
id: r.value.Variables,
|
|
131
133
|
envVariables: e.envVariables,
|
|
132
134
|
environment: e.environment,
|
|
@@ -143,7 +145,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
143
145
|
(a.value === "All" || a.value === "Variables") && e.example.parameters.path.length
|
|
144
146
|
]
|
|
145
147
|
]),
|
|
146
|
-
|
|
148
|
+
i(n(y, {
|
|
149
|
+
class: "request-section-content-cookies",
|
|
147
150
|
id: r.value.Cookies,
|
|
148
151
|
envVariables: e.envVariables,
|
|
149
152
|
environment: e.environment,
|
|
@@ -159,7 +162,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
159
162
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
|
|
160
163
|
[s, a.value === "All" || a.value === "Cookies"]
|
|
161
164
|
]),
|
|
162
|
-
|
|
165
|
+
i(n(y, {
|
|
166
|
+
class: "request-section-content-headers",
|
|
163
167
|
id: r.value.Headers,
|
|
164
168
|
envVariables: e.envVariables,
|
|
165
169
|
environment: e.environment,
|
|
@@ -173,7 +177,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
173
177
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
174
178
|
[s, a.value === "All" || a.value === "Headers"]
|
|
175
179
|
]),
|
|
176
|
-
|
|
180
|
+
i(n(y, {
|
|
181
|
+
class: "request-section-content-query",
|
|
177
182
|
id: r.value.Query,
|
|
178
183
|
envVariables: e.envVariables,
|
|
179
184
|
environment: e.environment,
|
|
@@ -187,7 +192,8 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
187
192
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
188
193
|
[s, a.value === "All" || a.value === "Query"]
|
|
189
194
|
]),
|
|
190
|
-
|
|
195
|
+
i(n(L, {
|
|
196
|
+
class: "request-section-content-body",
|
|
191
197
|
id: r.value.Body,
|
|
192
198
|
envVariables: e.envVariables,
|
|
193
199
|
environment: e.environment,
|
|
@@ -199,13 +205,14 @@ const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
199
205
|
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"]), [
|
|
200
206
|
[
|
|
201
207
|
s,
|
|
202
|
-
e.operation.method && (a.value === "All" || a.value === "Body") &&
|
|
208
|
+
e.operation.method && (a.value === "All" || a.value === "Body") && t(f)(e.operation.method)
|
|
203
209
|
]
|
|
204
210
|
]),
|
|
205
211
|
o[1] || (o[1] = d("div", { class: "-my-0.25 flex flex-grow" }, null, -1)),
|
|
206
|
-
n(
|
|
212
|
+
n(t(K), null, {
|
|
207
213
|
default: v(() => [
|
|
208
214
|
n(M, {
|
|
215
|
+
class: "request-section-content-code-example",
|
|
209
216
|
collection: e.collection,
|
|
210
217
|
example: e.example,
|
|
211
218
|
operation: e.operation,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
2
2
|
import type { RequestExampleParameter } from '@scalar/oas-utils/entities/spec';
|
|
3
3
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
4
|
-
import type
|
|
4
|
+
import { type RouteLocationRaw } from 'vue-router';
|
|
5
5
|
import type { EnvVariable } from '../../../store/active-entities';
|
|
6
6
|
type __VLS_Props = {
|
|
7
7
|
items?: (RequestExampleParameter & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAghBxB,wBASG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5c4132b8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|