@scalar/api-client 2.29.4 → 2.31.1
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 +95 -0
- package/dist/components/DataTable/DataTableCell.vue.js +1 -1
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +9 -69
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +22 -21
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +29 -14
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +57 -57
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +42 -12
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +57 -26
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
- package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +100 -49
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
- package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +18 -16
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
- package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +1 -1
- package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
- package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +154 -98
- package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +61 -63
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
- package/dist/v2/helpers/drag-handle-factory.js +41 -41
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +25 -15
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/helpers/remove-circular.d.ts +0 -15
- package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
- package/dist/v2/helpers/remove-circular.js +0 -18
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isObject as c } from "@scalar/helpers/object/is-object";
|
|
2
|
+
import { getResolvedRef as l } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { unpackProxyObject as p } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
4
|
+
const v = (f) => {
|
|
5
|
+
const i = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakMap(), o = (e) => {
|
|
6
|
+
if (!c(e) && !Array.isArray(e))
|
|
5
7
|
return e;
|
|
6
|
-
const t =
|
|
7
|
-
if (
|
|
8
|
+
const t = p(e, { depth: 1 });
|
|
9
|
+
if (r.has(t))
|
|
10
|
+
return r.get(t);
|
|
11
|
+
if (i.has(t))
|
|
8
12
|
return "[circular]";
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
return
|
|
13
|
+
if (i.add(t), "$ref" in e) {
|
|
14
|
+
const s = l(e), a = o(s);
|
|
15
|
+
return r.set(t, a), a;
|
|
12
16
|
}
|
|
13
17
|
if (Array.isArray(e)) {
|
|
14
|
-
const
|
|
15
|
-
return
|
|
18
|
+
const s = e.map(o);
|
|
19
|
+
return r.set(t, s), s;
|
|
16
20
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (typeof e == "object" && e !== null) {
|
|
20
|
-
const l = {};
|
|
21
|
-
for (const [s, a] of Object.entries(e))
|
|
22
|
-
l[s] = f(a);
|
|
23
|
-
return o.delete(t), l;
|
|
24
|
-
}
|
|
25
|
-
return o.delete(t), e;
|
|
21
|
+
const n = Object.fromEntries(Object.entries(e).map(([s, a]) => [s, o(a)]));
|
|
22
|
+
return r.set(t, n), n;
|
|
26
23
|
};
|
|
27
|
-
return f
|
|
24
|
+
return o(f);
|
|
28
25
|
};
|
|
29
26
|
export {
|
|
30
27
|
v as getResolvedRefDeep
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAsjBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EAEV,QAAQ,EACR,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AAGvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACxG,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAU1E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6DAA6D,CAAA;AAW7G,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,QAAQ,EAAE,UAAU,GAAG,WAAW,CAAA;CACnC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,oBAAoB,EAAE,CAAA;IACrC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;IACrD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;AAsrBF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-22abab53"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -11,8 +11,8 @@ import { getExample as re } from "../operation-block/helpers/get-example.js";
|
|
|
11
11
|
import { getResolvedUrl as ie } from "../operation-block/helpers/get-resolved-url.js";
|
|
12
12
|
import ue from "./components/RequestBody.vue.js";
|
|
13
13
|
import se from "./components/RequestCodeSnippet.vue.js";
|
|
14
|
-
import
|
|
15
|
-
import { createParameterHandlers as
|
|
14
|
+
import S from "./components/RequestParams.vue.js";
|
|
15
|
+
import { createParameterHandlers as k } from "./helpers/create-parameter-handlers.js";
|
|
16
16
|
import { getDefaultHeaders as me } from "./helpers/get-default-headers.js";
|
|
17
17
|
import { getParameterSchema as de } from "./helpers/get-parameter-schema.js";
|
|
18
18
|
import { groupBy as D } from "./helpers/group-by.js";
|
|
@@ -75,7 +75,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
75
75
|
)
|
|
76
76
|
), N = n(
|
|
77
77
|
() => me({ method: e.method, operation: e.operation, exampleKey: e.exampleKey })
|
|
78
|
-
),
|
|
78
|
+
), A = n(() => {
|
|
79
79
|
const t = e.operation["x-scalar-disable-parameters"]?.["default-headers"]?.[e.exampleKey] ?? {};
|
|
80
80
|
return N.value.map((a) => {
|
|
81
81
|
const l = I.value[a.name.toLowerCase()]?.[0];
|
|
@@ -88,8 +88,8 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
88
88
|
isDisabled: t[a.name.toLowerCase()] ?? !1
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
|
-
}),
|
|
92
|
-
...
|
|
91
|
+
}), p = n(() => [
|
|
92
|
+
...A.value,
|
|
93
93
|
...r.value.header ?? []
|
|
94
94
|
]), V = n(() => {
|
|
95
95
|
const t = ie({
|
|
@@ -149,23 +149,23 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
149
149
|
);
|
|
150
150
|
const F = (t) => {
|
|
151
151
|
const a = t.target.value;
|
|
152
|
-
e.eventBus.emit("operation:update:
|
|
152
|
+
e.eventBus.emit("operation:update:meta", {
|
|
153
153
|
meta: o.value,
|
|
154
|
-
payload: { summary: a }
|
|
154
|
+
payload: { summary: a.trim() }
|
|
155
155
|
});
|
|
156
156
|
}, B = n(() => ({
|
|
157
|
-
path:
|
|
157
|
+
path: k("path", e.eventBus, o.value, {
|
|
158
158
|
context: r.value.path ?? []
|
|
159
159
|
}),
|
|
160
|
-
cookie:
|
|
160
|
+
cookie: k("cookie", e.eventBus, o.value, {
|
|
161
161
|
context: P.value ?? [],
|
|
162
162
|
globalParameters: V.value.length
|
|
163
163
|
}),
|
|
164
|
-
header:
|
|
165
|
-
context:
|
|
166
|
-
defaultParameters:
|
|
164
|
+
header: k("header", e.eventBus, o.value, {
|
|
165
|
+
context: p.value,
|
|
166
|
+
defaultParameters: A.value.length
|
|
167
167
|
}),
|
|
168
|
-
query:
|
|
168
|
+
query: k("query", e.eventBus, o.value, {
|
|
169
169
|
context: r.value.query ?? []
|
|
170
170
|
})
|
|
171
171
|
})), G = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
|
|
@@ -195,7 +195,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
195
195
|
e.eventBus.emit(
|
|
196
196
|
"operation:update:requestBody:formValue",
|
|
197
197
|
{
|
|
198
|
-
payload: t.map((
|
|
198
|
+
payload: t.map((g) => ae(g, { depth: 1 })),
|
|
199
199
|
contentType: a,
|
|
200
200
|
meta: o.value
|
|
201
201
|
},
|
|
@@ -238,6 +238,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
238
238
|
}, [
|
|
239
239
|
m(d(y(ve), {
|
|
240
240
|
id: u.value.Auth,
|
|
241
|
+
createAnySecurityScheme: e.layout !== "modal",
|
|
241
242
|
environment: e.environment,
|
|
242
243
|
eventBus: e.eventBus,
|
|
243
244
|
meta: e.authMeta,
|
|
@@ -248,10 +249,10 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
248
249
|
selectedSecuritySchemes: e.selectedSecuritySchemes,
|
|
249
250
|
server: e.server,
|
|
250
251
|
title: "Authentication"
|
|
251
|
-
}, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
|
|
252
|
+
}, null, 8, ["id", "createAnySecurityScheme", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
|
|
252
253
|
[c, h("Auth") && !H.value]
|
|
253
254
|
]),
|
|
254
|
-
m(d(
|
|
255
|
+
m(d(S, f({
|
|
255
256
|
id: u.value.Variables,
|
|
256
257
|
environment: e.environment,
|
|
257
258
|
eventBus: e.eventBus,
|
|
@@ -262,7 +263,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
262
263
|
}, b(B.value.path)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
263
264
|
[c, h("Variables") && r.value.path?.length]
|
|
264
265
|
]),
|
|
265
|
-
m(d(
|
|
266
|
+
m(d(S, f({
|
|
266
267
|
id: u.value.Cookies,
|
|
267
268
|
environment: e.environment,
|
|
268
269
|
eventBus: e.eventBus,
|
|
@@ -273,17 +274,17 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
273
274
|
}, b(B.value.cookie)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
274
275
|
[c, h("Cookies")]
|
|
275
276
|
]),
|
|
276
|
-
m(d(
|
|
277
|
+
m(d(S, f({
|
|
277
278
|
id: u.value.Headers,
|
|
278
279
|
environment: e.environment,
|
|
279
280
|
eventBus: e.eventBus,
|
|
280
281
|
exampleKey: e.exampleKey,
|
|
281
|
-
rows:
|
|
282
|
+
rows: p.value ?? [],
|
|
282
283
|
title: "Headers"
|
|
283
284
|
}, b(B.value.header)), null, 16, ["id", "environment", "eventBus", "exampleKey", "rows"]), [
|
|
284
285
|
[c, h("Headers")]
|
|
285
286
|
]),
|
|
286
|
-
m(d(
|
|
287
|
+
m(d(S, f({
|
|
287
288
|
id: u.value.Query,
|
|
288
289
|
environment: e.environment,
|
|
289
290
|
eventBus: e.eventBus,
|
|
@@ -305,7 +306,7 @@ const ye = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
305
306
|
}, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
|
|
306
307
|
[c, h("Body") && y(w)(e.method)]
|
|
307
308
|
]),
|
|
308
|
-
(v(!0), x(W, null, Y(e.plugins, (l,
|
|
309
|
+
(v(!0), x(W, null, Y(e.plugins, (l, g) => (v(), q(y(ee), { key: g }, {
|
|
309
310
|
default: C(() => [
|
|
310
311
|
l?.components?.request ? m((v(), q(Z(l.components.request.component), f({
|
|
311
312
|
key: 0,
|
|
@@ -29,6 +29,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
29
29
|
path: string;
|
|
30
30
|
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
31
31
|
exampleName: string;
|
|
32
|
+
} | {
|
|
33
|
+
page: "operation";
|
|
34
|
+
path: "overview" | "servers" | "authentication";
|
|
35
|
+
operationPath: string;
|
|
36
|
+
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
37
|
+
documentSlug?: string;
|
|
32
38
|
})) | undefined>) => any;
|
|
33
39
|
deleteRow: (index: number) => any;
|
|
34
40
|
uploadFile: (index: number) => any;
|
|
@@ -57,6 +63,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
57
63
|
path: string;
|
|
58
64
|
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
59
65
|
exampleName: string;
|
|
66
|
+
} | {
|
|
67
|
+
page: "operation";
|
|
68
|
+
path: "overview" | "servers" | "authentication";
|
|
69
|
+
operationPath: string;
|
|
70
|
+
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
71
|
+
documentSlug?: string;
|
|
60
72
|
})) | undefined>) => any) | undefined;
|
|
61
73
|
onDeleteRow?: ((index: number) => any) | undefined;
|
|
62
74
|
onUploadFile?: ((index: number) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA1NN,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;kFA2NvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -53,6 +53,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
53
53
|
path: string;
|
|
54
54
|
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
55
55
|
exampleName: string;
|
|
56
|
+
} | {
|
|
57
|
+
page: "operation";
|
|
58
|
+
path: "overview" | "servers" | "authentication";
|
|
59
|
+
operationPath: string;
|
|
60
|
+
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
61
|
+
documentSlug?: string;
|
|
56
62
|
})) | undefined>) => any;
|
|
57
63
|
deleteRow: () => any;
|
|
58
64
|
uploadFile: () => any;
|
|
@@ -81,6 +87,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
81
87
|
path: string;
|
|
82
88
|
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
83
89
|
exampleName: string;
|
|
90
|
+
} | {
|
|
91
|
+
page: "operation";
|
|
92
|
+
path: "overview" | "servers" | "authentication";
|
|
93
|
+
operationPath: string;
|
|
94
|
+
method: import("@scalar/helpers/http/http-methods").HttpMethod;
|
|
95
|
+
documentSlug?: string;
|
|
84
96
|
})) | undefined>) => any) | undefined;
|
|
85
97
|
onDeleteRow?: (() => any) | undefined;
|
|
86
98
|
onUploadFile?: (() => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAtkBG,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;kFAykBpE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { canMethodHaveBody as m } from "@scalar/helpers/http/can-method-have-body";
|
|
2
2
|
import { getResolvedRef as r } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import { isElectron as y } from "../../../../libs/electron.js";
|
|
4
|
-
const l = "2.
|
|
4
|
+
const l = "2.31.1", T = "application/json", C = "*/*", a = (n, s, o) => ({
|
|
5
5
|
name: n,
|
|
6
6
|
defaultValue: s,
|
|
7
7
|
isOverridden: o.has(n.toLowerCase())
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBody.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-94c74c13"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ import S from "../../../components/layout/CollapsibleSection.vue.js";
|
|
|
10
10
|
const _ = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
13
|
-
}, $ = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, E = { class: "text-xxs font-code leading-
|
|
13
|
+
}, $ = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, E = { class: "text-xxs font-code leading-5" }, H = /* @__PURE__ */ h({
|
|
14
14
|
__name: "ResponseBody",
|
|
15
15
|
props: {
|
|
16
16
|
title: {},
|
|
@@ -62,7 +62,7 @@ const j = { class: "flex w-full items-center justify-between" }, H = {
|
|
|
62
62
|
v("div", {
|
|
63
63
|
ref_key: "contentContainer",
|
|
64
64
|
ref: c,
|
|
65
|
-
class: "text-xxs font-code h-full overflow-auto leading-
|
|
65
|
+
class: "text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap"
|
|
66
66
|
}, [
|
|
67
67
|
s.value ? (u(), m("div", U, k(s.value.message), 1)) : g("", !0),
|
|
68
68
|
o.value ? (u(), m("div", $, k(o.value), 1)) : g("", !0)
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import type { HttpMethod as HttpMethodType } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
5
|
import { type ClientLayout } from '../../../../hooks/index.js';
|
|
6
6
|
import { type History } from './AddressBarHistory.vue.js';
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* AddressBar component
|
|
9
|
+
* This component is used to display the address bar for the operation block
|
|
10
|
+
* It is used to display the path, method, server, and history for the operation
|
|
11
|
+
*/
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
export type AddressBarProps = {
|
|
8
15
|
/** Current request path */
|
|
9
16
|
path: string;
|
|
10
17
|
/** Current request method */
|
|
@@ -21,23 +28,21 @@ type __VLS_Props = {
|
|
|
21
28
|
eventBus: WorkspaceEventBus;
|
|
22
29
|
/** Environment */
|
|
23
30
|
environment: XScalarEnvironment;
|
|
31
|
+
/** Meta information for the server */
|
|
32
|
+
serverMeta: ServerMeta;
|
|
24
33
|
};
|
|
25
|
-
declare const __VLS_export: import("vue").DefineComponent<
|
|
34
|
+
declare const __VLS_export: import("vue").DefineComponent<AddressBarProps, {
|
|
26
35
|
methodConflict: import("vue").Ref<"delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null, "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | null>;
|
|
27
36
|
pathConflict: import("vue").Ref<string | null, string | null>;
|
|
28
37
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
29
38
|
execute: () => any;
|
|
30
|
-
"update:servers": () => any;
|
|
31
39
|
"select:history:item": (payload: {
|
|
32
40
|
index: number;
|
|
33
41
|
}) => any;
|
|
34
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
42
|
+
}, string, import("vue").PublicProps, Readonly<AddressBarProps> & Readonly<{
|
|
35
43
|
onExecute?: (() => any) | undefined;
|
|
36
|
-
"onUpdate:servers"?: (() => any) | undefined;
|
|
37
44
|
"onSelect:history:item"?: ((payload: {
|
|
38
45
|
index: number;
|
|
39
46
|
}) => any) | undefined;
|
|
40
47
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
-
declare const _default: typeof __VLS_export;
|
|
42
|
-
export default _default;
|
|
43
48
|
//# sourceMappingURL=AddressBar.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AA0dA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,UAAU,EACV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGzE;;;;GAIG;wBACkB,OAAO,YAAY;AAAxC,wBAAyC;AAKzC,MAAM,MAAM,eAAe,GAAG;IAC5B,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AACD,QAAA,MAAM,YAAY;;;;;;eAmB6B,MAAM;;;;;eAAN,MAAM;;kFAynBjD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f5565642"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|