@scalar/api-client 2.23.0 → 2.23.3
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 +65 -0
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +13 -3
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +68 -68
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +54 -53
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +5 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +3 -2
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.d.ts +2 -1
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +7 -4
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +78 -78
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +3 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts +2 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +8 -5
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +49 -45
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +63 -51
- 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/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +4 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -181
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +118 -107
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +30 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +11 -178
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -110
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/auth-options.js +5 -29
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts +6 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +85 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +9 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +15 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +3 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +23 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +4 -6
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +51 -42
- package/dist/v2/features/app/app-state.d.ts +1 -1
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +40 -38
- package/dist/v2/features/app/helpers/routes.d.ts +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- 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 +14 -11
- package/dist/v2/features/import-listener/helpers/import-document-to-workspace.d.ts.map +1 -1
- package/dist/v2/features/import-listener/helpers/import-document-to-workspace.js +3 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +14 -12
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +44 -35
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +3 -5
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +116 -109
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +0 -8
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +0 -33
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +0 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +0 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as W, ref as w, useId as D, watch as I, nextTick as N, onBeforeMount as E, onBeforeUnmount as F, computed as
|
|
2
|
-
import { addScalarClassesToHeadless as
|
|
1
|
+
import { defineComponent as W, ref as w, useId as D, watch as I, nextTick as N, onBeforeMount as E, onBeforeUnmount as F, computed as u, toValue as U, withDirectives as k, createElementBlock as d, openBlock as m, createElementVNode as s, unref as o, createVNode as l, withCtx as V, vShow as b } from "vue";
|
|
2
|
+
import { addScalarClassesToHeadless as $, ScalarTeleportRoot as A } from "@scalar/components";
|
|
3
3
|
import { ScalarToasts as z } from "@scalar/use-toasts";
|
|
4
4
|
import { useFocusTrap as H } from "@vueuse/integrations/useFocusTrap";
|
|
5
|
-
import {
|
|
5
|
+
import { mergeSecurity as L } from "../../blocks/scalar-auth-selector-block/helpers/merge-security.js";
|
|
6
6
|
import { initializeModalEvents as M } from "./modal-events.js";
|
|
7
7
|
import O from "../operation/Operation.vue.js";
|
|
8
8
|
import { getActiveEnvironment as R } from "../../helpers/get-active-environment.js";
|
|
@@ -57,21 +57,23 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
57
57
|
(a) => {
|
|
58
58
|
g.value = a, a ? y({ checkCanFocusTrap: () => N() }) : S();
|
|
59
59
|
}
|
|
60
|
-
), E(() =>
|
|
61
|
-
const p = 288, c =
|
|
60
|
+
), E(() => $()), F(() => S());
|
|
61
|
+
const p = 288, c = u(
|
|
62
62
|
() => e.workspaceStore?.workspace?.["x-scalar-sidebar-width"] ?? p
|
|
63
|
-
), T = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), h =
|
|
63
|
+
), T = (a) => e.workspaceStore?.update("x-scalar-sidebar-width", a), h = u(
|
|
64
64
|
() => R(e.workspaceStore, e.document.value)
|
|
65
|
-
), C =
|
|
65
|
+
), C = u(
|
|
66
66
|
() => L(
|
|
67
67
|
e.document.value?.components?.securitySchemes,
|
|
68
|
-
U(e.options)?.authentication?.securitySchemes
|
|
68
|
+
U(e.options)?.authentication?.securitySchemes,
|
|
69
|
+
e.workspaceStore.auth,
|
|
70
|
+
e.document.value?.["x-scalar-navigation"]?.name ?? ""
|
|
69
71
|
)
|
|
70
72
|
);
|
|
71
73
|
return x({
|
|
72
74
|
sidebarWidth: c,
|
|
73
75
|
environment: h
|
|
74
|
-
}), (a, t) => k((m(),
|
|
76
|
+
}), (a, t) => k((m(), d("div", P, [
|
|
75
77
|
s("div", J, [
|
|
76
78
|
s("div", {
|
|
77
79
|
id: o(f),
|
|
@@ -83,10 +85,10 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
83
85
|
role: "dialog",
|
|
84
86
|
tabindex: "-1"
|
|
85
87
|
}, [
|
|
86
|
-
l(o(
|
|
88
|
+
l(o(A), null, {
|
|
87
89
|
default: V(() => [
|
|
88
90
|
l(o(z)),
|
|
89
|
-
e.document.value && e.path?.value && e.method?.value ? (m(),
|
|
91
|
+
e.document.value && e.path?.value && e.method?.value ? (m(), d("main", X, [
|
|
90
92
|
l(o(G), {
|
|
91
93
|
modelValue: n.value,
|
|
92
94
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => n.value = i),
|
|
@@ -126,7 +128,7 @@ const P = { class: "scalar scalar-app" }, J = { class: "scalar-container" }, Q =
|
|
|
126
128
|
securitySchemes: C.value,
|
|
127
129
|
workspaceStore: e.workspaceStore
|
|
128
130
|
}, null, 8, ["document", "documentSlug", "environment", "eventBus", "exampleName", "method", "options", "path", "plugins", "securitySchemes", "workspaceStore"])
|
|
129
|
-
])) : (m(),
|
|
131
|
+
])) : (m(), d("div", Y, [...t[3] || (t[3] = [
|
|
130
132
|
s("span", { class: "text-c-3" }, "No document selected", -1)
|
|
131
133
|
])]))
|
|
132
134
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/operation/Operation.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAElE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAM/D;;;;;;;GAOG;;IAGC,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;IAD/B,6CAA6C;cACnC,UAAU,CAAC,SAAS,CAAC;;AAHnC,wBAkRC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as y, computed as n, toValue as
|
|
2
|
-
import { getResolvedRef as
|
|
1
|
+
import { defineComponent as y, computed as n, toValue as r, onMounted as f, createBlock as g, createElementBlock as k, openBlock as l, unref as i, createElementVNode as x } from "vue";
|
|
2
|
+
import { getResolvedRef as m } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
3
|
import { mapHiddenClientsConfig as C } from "../modal/helpers/map-hidden-clients-config.js";
|
|
4
|
-
import { combineParams as
|
|
5
|
-
import { getSelectedServer as
|
|
4
|
+
import { combineParams as w } from "./helpers/combine-params.js";
|
|
5
|
+
import { getSelectedServer as B } from "./helpers/get-selected-server.js";
|
|
6
6
|
import { getServers as U } from "../../helpers/get-servers.js";
|
|
7
|
-
import
|
|
7
|
+
import N from "../../blocks/operation-block/OperationBlock.vue.js";
|
|
8
8
|
const b = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "flex h-full w-full items-center justify-center"
|
|
11
|
-
},
|
|
12
|
-
...
|
|
11
|
+
}, V = {}, K = /* @__PURE__ */ y({
|
|
12
|
+
...V,
|
|
13
13
|
__name: "Operation",
|
|
14
14
|
props: {
|
|
15
15
|
documentSlug: {},
|
|
@@ -27,20 +27,20 @@ const b = {
|
|
|
27
27
|
options: {}
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
|
-
const u = n(() => e.path ?
|
|
30
|
+
const u = n(() => e.path ? m(e.document?.paths?.[e.path]) : null), c = n(() => {
|
|
31
31
|
if (!e.path || !e.method)
|
|
32
32
|
return null;
|
|
33
|
-
const t =
|
|
33
|
+
const t = m(e.document?.paths?.[e.path]?.[e.method]);
|
|
34
34
|
if (!t)
|
|
35
35
|
return null;
|
|
36
36
|
if (!u.value)
|
|
37
37
|
return t;
|
|
38
|
-
const a =
|
|
38
|
+
const a = w(
|
|
39
39
|
u.value.parameters,
|
|
40
40
|
t.parameters
|
|
41
41
|
);
|
|
42
42
|
return { ...t, parameters: a };
|
|
43
|
-
}),
|
|
43
|
+
}), s = n(() => [
|
|
44
44
|
...(e.workspaceStore.workspace?.["x-scalar-cookies"] ?? []).map((t) => ({
|
|
45
45
|
...t,
|
|
46
46
|
location: "workspace"
|
|
@@ -49,58 +49,67 @@ const b = {
|
|
|
49
49
|
...t,
|
|
50
50
|
location: "document"
|
|
51
51
|
}))
|
|
52
|
-
]),
|
|
53
|
-
const t =
|
|
52
|
+
]), o = n(() => {
|
|
53
|
+
const t = r(e.options)?.servers ?? c.value?.servers ?? u.value?.servers ?? e.document?.servers;
|
|
54
54
|
return U(t, {
|
|
55
|
-
baseServerUrl:
|
|
55
|
+
baseServerUrl: r(e.options)?.baseServerURL,
|
|
56
56
|
documentUrl: e.document?.["x-scalar-original-source-url"]
|
|
57
57
|
});
|
|
58
58
|
}), d = n(
|
|
59
|
-
() =>
|
|
59
|
+
() => B(e.document, o.value)
|
|
60
60
|
);
|
|
61
|
-
|
|
62
|
-
typeof e.document?.["x-scalar-selected-server"] > "u" &&
|
|
61
|
+
f(() => {
|
|
62
|
+
typeof e.document?.["x-scalar-selected-server"] > "u" && o.value?.[0]?.url && e.eventBus.emit("server:update:selected", { url: o.value[0].url });
|
|
63
63
|
});
|
|
64
|
-
const
|
|
64
|
+
const h = n(() => e.document?.["x-scalar-set-operation-security"] ? {
|
|
65
65
|
type: "operation",
|
|
66
66
|
path: e.path ?? "",
|
|
67
67
|
method: e.method ?? "get"
|
|
68
68
|
} : {
|
|
69
69
|
type: "document"
|
|
70
|
-
}),
|
|
71
|
-
() => C(
|
|
72
|
-
),
|
|
73
|
-
return (t, a) => e.path && e.method && e.exampleName &&
|
|
70
|
+
}), v = n(
|
|
71
|
+
() => C(r(e.options)?.hiddenClients)
|
|
72
|
+
), S = "2.23.3";
|
|
73
|
+
return (t, a) => e.path && e.method && e.exampleName && c.value ? (l(), g(i(N), {
|
|
74
74
|
key: 0,
|
|
75
|
-
appVersion: i(
|
|
76
|
-
authMeta:
|
|
75
|
+
appVersion: i(S),
|
|
76
|
+
authMeta: h.value,
|
|
77
77
|
documentSecurity: e.document?.security ?? [],
|
|
78
|
-
documentSelectedSecurity: e.
|
|
78
|
+
documentSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
|
|
79
|
+
type: "document",
|
|
80
|
+
documentName: e.documentSlug
|
|
81
|
+
}),
|
|
79
82
|
documentUrl: e.document?.["x-scalar-original-source-url"],
|
|
80
83
|
environment: e.environment,
|
|
81
84
|
eventBus: e.eventBus,
|
|
82
85
|
exampleKey: e.exampleName,
|
|
83
|
-
globalCookies:
|
|
84
|
-
hideClientButton:
|
|
85
|
-
history:
|
|
86
|
-
httpClients:
|
|
86
|
+
globalCookies: s.value,
|
|
87
|
+
hideClientButton: r(e.options)?.hideClientButton ?? !1,
|
|
88
|
+
history: e.workspaceStore.history.getHistory(e.documentSlug, e.path, e.method),
|
|
89
|
+
httpClients: v.value,
|
|
87
90
|
layout: e.layout,
|
|
88
91
|
method: e.method,
|
|
89
|
-
operation:
|
|
92
|
+
operation: c.value,
|
|
93
|
+
operationSelectedSecurity: e.workspaceStore.auth.getAuthSelectedSchemas({
|
|
94
|
+
type: "operation",
|
|
95
|
+
documentName: e.documentSlug,
|
|
96
|
+
path: e.path,
|
|
97
|
+
method: e.method
|
|
98
|
+
}),
|
|
90
99
|
path: e.path,
|
|
91
100
|
plugins: e.plugins,
|
|
92
101
|
proxyUrl: e.workspaceStore.workspace["x-scalar-active-proxy"] ?? "",
|
|
93
102
|
securitySchemes: e.securitySchemes,
|
|
94
103
|
selectedClient: e.workspaceStore.workspace["x-scalar-default-client"],
|
|
95
104
|
server: d.value,
|
|
96
|
-
servers:
|
|
105
|
+
servers: o.value,
|
|
97
106
|
setOperationSecurity: e.document?.["x-scalar-set-operation-security"] ?? !1,
|
|
98
|
-
"onUpdate:servers": a[0] || (a[0] = (
|
|
99
|
-
}, null, 8, ["appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "httpClients", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (
|
|
100
|
-
|
|
107
|
+
"onUpdate:servers": a[0] || (a[0] = (M) => e.eventBus.emit("ui:route:page", { name: "document.servers" }))
|
|
108
|
+
}, null, 8, ["appVersion", "authMeta", "documentSecurity", "documentSelectedSecurity", "documentUrl", "environment", "eventBus", "exampleKey", "globalCookies", "hideClientButton", "history", "httpClients", "layout", "method", "operation", "operationSelectedSecurity", "path", "plugins", "proxyUrl", "securitySchemes", "selectedClient", "server", "servers", "setOperationSecurity"])) : (l(), k("div", b, [...a[1] || (a[1] = [
|
|
109
|
+
x("span", { class: "text-c-3" }, "Select an operation to view details", -1)
|
|
101
110
|
])]));
|
|
102
111
|
}
|
|
103
112
|
});
|
|
104
113
|
export {
|
|
105
|
-
|
|
114
|
+
K as default
|
|
106
115
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
2
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
3
|
/**
|
|
3
4
|
* Get the selected security for an operation or document,
|
|
4
5
|
* Defaults to the first requirement if no selection is made and you pass in requirements
|
|
5
6
|
*/
|
|
6
|
-
export declare const getSelectedSecurity: (documentSelectedSecurity:
|
|
7
|
-
selectedIndex: number;
|
|
8
|
-
selectedSchemes: import("@scalar/workspace-store/schemas/v3.1/strict/security-requirement").SecurityRequirementObject[];
|
|
9
|
-
};
|
|
7
|
+
export declare const getSelectedSecurity: (documentSelectedSecurity: SelectedSecurity | undefined, operationSelectedSecurity: SelectedSecurity | undefined, securityRequirements?: NonNullable<OpenApiDocument["security"]>, setOperationSecurity?: boolean) => SelectedSecurity;
|
|
10
8
|
//# sourceMappingURL=get-selected-security.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-selected-security.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/get-selected-security.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"get-selected-security.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/get-selected-security.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAInG;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,0BAA0B,gBAAgB,GAAG,SAAS,EACtD,2BAA2B,gBAAgB,GAAG,SAAS,EACvD,uBAAsB,WAAW,CAAC,eAAe,CAAC,UAAU,CAAC,CAAM,EACnE,8BAA4B,KAC3B,gBA4BF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,
|
|
1
|
+
{"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAgQA"}
|
|
@@ -1,203 +1,210 @@
|
|
|
1
|
-
import { generateClientMutators as
|
|
2
|
-
import { computed as
|
|
3
|
-
const r = (
|
|
4
|
-
const n = await t
|
|
5
|
-
return await
|
|
1
|
+
import { generateClientMutators as i } from "@scalar/workspace-store/mutators";
|
|
2
|
+
import { computed as p } from "vue";
|
|
3
|
+
const r = (t, c, a) => async (o) => {
|
|
4
|
+
const n = await a[t]?.onBeforeExecute?.(o) ?? o;
|
|
5
|
+
return await c(n), await a[t]?.onAfterExecute?.(n), n;
|
|
6
6
|
};
|
|
7
7
|
function l({
|
|
8
|
-
eventBus:
|
|
9
|
-
store:
|
|
10
|
-
hooks:
|
|
8
|
+
eventBus: t,
|
|
9
|
+
store: c,
|
|
10
|
+
hooks: a
|
|
11
11
|
}) {
|
|
12
|
-
const o =
|
|
13
|
-
|
|
12
|
+
const o = p(() => i(c.value)), n = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
|
|
13
|
+
t.on(
|
|
14
14
|
"workspace:update:active-proxy",
|
|
15
|
-
(e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy,
|
|
16
|
-
),
|
|
15
|
+
(e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, a)(e)
|
|
16
|
+
), t.on(
|
|
17
17
|
"workspace:update:color-mode",
|
|
18
|
-
(e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode,
|
|
19
|
-
),
|
|
18
|
+
(e) => r("workspace:update:color-mode", o.value.workspace().workspace.updateColorMode, a)(e)
|
|
19
|
+
), t.on(
|
|
20
20
|
"workspace:update:theme",
|
|
21
|
-
(e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme,
|
|
22
|
-
),
|
|
21
|
+
(e) => r("workspace:update:theme", o.value.workspace().workspace.updateTheme, a)(e)
|
|
22
|
+
), t.on(
|
|
23
23
|
"workspace:update:selected-client",
|
|
24
24
|
(e) => r(
|
|
25
25
|
"workspace:update:selected-client",
|
|
26
26
|
o.value.workspace().workspace.updateSelectedClient,
|
|
27
|
-
|
|
27
|
+
a
|
|
28
28
|
)(e)
|
|
29
|
-
),
|
|
29
|
+
), t.on(
|
|
30
30
|
"document:update:icon",
|
|
31
|
-
(e) => r("document:update:icon", o.value.active().document.updateDocumentIcon,
|
|
32
|
-
),
|
|
31
|
+
(e) => r("document:update:icon", o.value.active().document.updateDocumentIcon, a)(e)
|
|
32
|
+
), t.on(
|
|
33
33
|
"document:update:info",
|
|
34
|
-
(e) => r("document:update:info", o.value.active().document.updateDocumentInfo,
|
|
35
|
-
),
|
|
34
|
+
(e) => r("document:update:info", o.value.active().document.updateDocumentInfo, a)(e)
|
|
35
|
+
), t.on(
|
|
36
36
|
"document:toggle:security",
|
|
37
|
-
(e) => r("document:toggle:security", o.value.active().document.toggleSecurity,
|
|
38
|
-
),
|
|
37
|
+
(e) => r("document:toggle:security", o.value.active().document.toggleSecurity, a)(e)
|
|
38
|
+
), t.on(
|
|
39
39
|
"document:update:watch-mode",
|
|
40
|
-
(e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode,
|
|
41
|
-
),
|
|
40
|
+
(e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode, a)(e)
|
|
41
|
+
), t.on(
|
|
42
42
|
"document:create:empty-document",
|
|
43
|
-
(e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument,
|
|
44
|
-
),
|
|
43
|
+
(e) => r("document:create:empty-document", o.value.active().document.createEmptyDocument, a)(e)
|
|
44
|
+
), t.on(
|
|
45
45
|
"document:delete:document",
|
|
46
|
-
(e) => r("document:delete:document", o.value.active().document.deleteDocument,
|
|
47
|
-
),
|
|
46
|
+
(e) => r("document:delete:document", o.value.active().document.deleteDocument, a)(e)
|
|
47
|
+
), t.on(
|
|
48
48
|
"environment:upsert:environment",
|
|
49
|
-
(e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment,
|
|
50
|
-
),
|
|
49
|
+
(e) => r("environment:upsert:environment", n(e).environment.upsertEnvironment, a)(e)
|
|
50
|
+
), t.on(
|
|
51
51
|
"environment:delete:environment",
|
|
52
|
-
(e) => r("environment:delete:environment", n(e).environment.deleteEnvironment,
|
|
53
|
-
),
|
|
52
|
+
(e) => r("environment:delete:environment", n(e).environment.deleteEnvironment, a)(e)
|
|
53
|
+
), t.on(
|
|
54
54
|
"environment:upsert:environment-variable",
|
|
55
55
|
(e) => r(
|
|
56
56
|
"environment:upsert:environment-variable",
|
|
57
57
|
n(e).environment.upsertEnvironmentVariable,
|
|
58
|
-
|
|
58
|
+
a
|
|
59
59
|
)(e)
|
|
60
|
-
),
|
|
60
|
+
), t.on(
|
|
61
61
|
"environment:delete:environment-variable",
|
|
62
62
|
(e) => r(
|
|
63
63
|
"environment:delete:environment-variable",
|
|
64
64
|
n(e).environment.deleteEnvironmentVariable,
|
|
65
|
-
|
|
65
|
+
a
|
|
66
66
|
)(e)
|
|
67
|
-
),
|
|
68
|
-
await r("cookie:upsert:cookie", n(e).cookie.upsertCookie,
|
|
69
|
-
}),
|
|
70
|
-
await r("cookie:delete:cookie", n(e).cookie.deleteCookie,
|
|
71
|
-
}),
|
|
67
|
+
), t.on("cookie:upsert:cookie", async (e) => {
|
|
68
|
+
await r("cookie:upsert:cookie", n(e).cookie.upsertCookie, a)(e);
|
|
69
|
+
}), t.on("cookie:delete:cookie", async (e) => {
|
|
70
|
+
await r("cookie:delete:cookie", n(e).cookie.deleteCookie, a)(e);
|
|
71
|
+
}), t.on(
|
|
72
72
|
"auth:delete:security-scheme",
|
|
73
|
-
(e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme,
|
|
74
|
-
),
|
|
73
|
+
(e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme, a)(e)
|
|
74
|
+
), t.on(
|
|
75
75
|
"auth:update:active-index",
|
|
76
|
-
(e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab,
|
|
77
|
-
),
|
|
76
|
+
(e) => r("auth:update:active-index", o.value.active().auth.updateSelectedAuthTab, a)(e)
|
|
77
|
+
), t.on(
|
|
78
78
|
"auth:update:security-scheme",
|
|
79
|
-
(e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme,
|
|
80
|
-
),
|
|
79
|
+
(e) => r("auth:update:security-scheme", o.value.active().auth.updateSecurityScheme, a)(e)
|
|
80
|
+
), t.on(
|
|
81
81
|
"auth:update:selected-scopes",
|
|
82
|
-
(e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes,
|
|
83
|
-
),
|
|
82
|
+
(e) => r("auth:update:selected-scopes", o.value.active().auth.updateSelectedScopes, a)(e)
|
|
83
|
+
), t.on(
|
|
84
84
|
"auth:update:selected-security-schemes",
|
|
85
85
|
(e) => r(
|
|
86
86
|
"auth:update:selected-security-schemes",
|
|
87
87
|
o.value.active().auth.updateSelectedSecuritySchemes,
|
|
88
|
-
|
|
88
|
+
a
|
|
89
89
|
)(e)
|
|
90
|
-
),
|
|
90
|
+
), t.on(
|
|
91
|
+
"auth:update:security-scheme-secrets",
|
|
92
|
+
(e) => r(
|
|
93
|
+
"auth:update:security-scheme-secrets",
|
|
94
|
+
o.value.active().auth.updateSecuritySchemeSecrets,
|
|
95
|
+
a
|
|
96
|
+
)(e)
|
|
97
|
+
), t.on(
|
|
91
98
|
"server:add:server",
|
|
92
|
-
(e) => r("server:add:server", o.value.active().server.addServer,
|
|
93
|
-
),
|
|
99
|
+
(e) => r("server:add:server", o.value.active().server.addServer, a)(e)
|
|
100
|
+
), t.on(
|
|
94
101
|
"server:update:server",
|
|
95
|
-
(e) => r("server:update:server", o.value.active().server.updateServer,
|
|
96
|
-
),
|
|
102
|
+
(e) => r("server:update:server", o.value.active().server.updateServer, a)(e)
|
|
103
|
+
), t.on(
|
|
97
104
|
"server:delete:server",
|
|
98
|
-
(e) => r("server:delete:server", o.value.active().server.deleteServer,
|
|
99
|
-
),
|
|
105
|
+
(e) => r("server:delete:server", o.value.active().server.deleteServer, a)(e)
|
|
106
|
+
), t.on(
|
|
100
107
|
"server:update:variables",
|
|
101
|
-
(e) => r("server:update:variables", o.value.active().server.updateServerVariables,
|
|
102
|
-
),
|
|
108
|
+
(e) => r("server:update:variables", o.value.active().server.updateServerVariables, a)(e)
|
|
109
|
+
), t.on(
|
|
103
110
|
"server:update:selected",
|
|
104
|
-
(e) => r("server:update:selected", o.value.active().server.updateSelectedServer,
|
|
105
|
-
),
|
|
111
|
+
(e) => r("server:update:selected", o.value.active().server.updateSelectedServer, a)(e)
|
|
112
|
+
), t.on(
|
|
106
113
|
"operation:create:operation",
|
|
107
|
-
(e) => r("operation:create:operation", o.value.active().operation.createOperation,
|
|
108
|
-
),
|
|
114
|
+
(e) => r("operation:create:operation", o.value.active().operation.createOperation, a)(e)
|
|
115
|
+
), t.on(
|
|
109
116
|
"operation:update:pathMethod",
|
|
110
117
|
(e) => r(
|
|
111
118
|
"operation:update:pathMethod",
|
|
112
119
|
o.value.active().operation.updateOperationPathMethod,
|
|
113
|
-
|
|
120
|
+
a
|
|
114
121
|
)(e)
|
|
115
|
-
),
|
|
122
|
+
), t.on(
|
|
116
123
|
"operation:update:summary",
|
|
117
|
-
(e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary,
|
|
118
|
-
),
|
|
124
|
+
(e) => r("operation:update:summary", o.value.active().operation.updateOperationSummary, a)(e)
|
|
125
|
+
), t.on(
|
|
119
126
|
"operation:delete:operation",
|
|
120
|
-
(e) => r("operation:delete:operation", o.value.active().operation.deleteOperation,
|
|
121
|
-
),
|
|
127
|
+
(e) => r("operation:delete:operation", o.value.active().operation.deleteOperation, a)(e)
|
|
128
|
+
), t.on(
|
|
122
129
|
"operation:delete:example",
|
|
123
|
-
(e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample,
|
|
124
|
-
),
|
|
130
|
+
(e) => r("operation:delete:example", o.value.active().operation.deleteOperationExample, a)(e)
|
|
131
|
+
), t.on(
|
|
125
132
|
"operation:upsert:parameter",
|
|
126
|
-
(e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter,
|
|
127
|
-
),
|
|
133
|
+
(e) => r("operation:upsert:parameter", o.value.active().operation.upsertOperationParameter, a)(e)
|
|
134
|
+
), t.on(
|
|
128
135
|
"operation:update:extra-parameters",
|
|
129
136
|
(e) => r(
|
|
130
137
|
"operation:update:extra-parameters",
|
|
131
138
|
o.value.active().operation.updateOperationExtraParameters,
|
|
132
|
-
|
|
139
|
+
a
|
|
133
140
|
)(e)
|
|
134
|
-
),
|
|
141
|
+
), t.on(
|
|
135
142
|
"operation:delete:parameter",
|
|
136
|
-
(e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter,
|
|
137
|
-
),
|
|
143
|
+
(e) => r("operation:delete:parameter", o.value.active().operation.deleteOperationParameter, a)(e)
|
|
144
|
+
), t.on(
|
|
138
145
|
"operation:delete-all:parameters",
|
|
139
146
|
(e) => r(
|
|
140
147
|
"operation:delete-all:parameters",
|
|
141
148
|
o.value.active().operation.deleteAllOperationParameters,
|
|
142
|
-
|
|
149
|
+
a
|
|
143
150
|
)(e)
|
|
144
|
-
),
|
|
151
|
+
), t.on(
|
|
145
152
|
"operation:update:requestBody:contentType",
|
|
146
153
|
(e) => r(
|
|
147
154
|
"operation:update:requestBody:contentType",
|
|
148
155
|
o.value.active().operation.updateOperationRequestBodyContentType,
|
|
149
|
-
|
|
156
|
+
a
|
|
150
157
|
)(e)
|
|
151
|
-
),
|
|
158
|
+
), t.on(
|
|
152
159
|
"operation:update:requestBody:value",
|
|
153
160
|
(e) => r(
|
|
154
161
|
"operation:update:requestBody:value",
|
|
155
162
|
o.value.active().operation.updateOperationRequestBodyExample,
|
|
156
|
-
|
|
163
|
+
a
|
|
157
164
|
)(e)
|
|
158
|
-
),
|
|
165
|
+
), t.on(
|
|
159
166
|
"operation:update:requestBody:formValue",
|
|
160
167
|
(e) => r(
|
|
161
168
|
"operation:update:requestBody:formValue",
|
|
162
169
|
o.value.active().operation.updateOperationRequestBodyFormValue,
|
|
163
|
-
|
|
170
|
+
a
|
|
164
171
|
)(e)
|
|
165
|
-
),
|
|
172
|
+
), t.on(
|
|
166
173
|
"operation:reload:history",
|
|
167
|
-
(e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory,
|
|
168
|
-
),
|
|
174
|
+
(e) => r("operation:reload:history", o.value.active().operation.reloadOperationHistory, a)(e)
|
|
175
|
+
), t.on(
|
|
169
176
|
"tag:create:tag",
|
|
170
|
-
(e) => r("tag:create:tag", o.value.active().tag.createTag,
|
|
171
|
-
),
|
|
177
|
+
(e) => r("tag:create:tag", o.value.active().tag.createTag, a)(e)
|
|
178
|
+
), t.on(
|
|
172
179
|
"tag:delete:tag",
|
|
173
|
-
(e) => r("tag:delete:tag", o.value.active().tag.deleteTag,
|
|
174
|
-
),
|
|
180
|
+
(e) => r("tag:delete:tag", o.value.active().tag.deleteTag, a)(e)
|
|
181
|
+
), t.on(
|
|
175
182
|
"tabs:add:tab",
|
|
176
|
-
(e) => r("tabs:add:tab", o.value.workspace().tabs.addTab,
|
|
177
|
-
),
|
|
183
|
+
(e) => r("tabs:add:tab", o.value.workspace().tabs.addTab, a)(e)
|
|
184
|
+
), t.on(
|
|
178
185
|
"tabs:close:tab",
|
|
179
|
-
(e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab,
|
|
180
|
-
),
|
|
186
|
+
(e) => r("tabs:close:tab", o.value.workspace().tabs.closeTab, a)(e)
|
|
187
|
+
), t.on(
|
|
181
188
|
"tabs:close:other-tabs",
|
|
182
|
-
(e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs,
|
|
183
|
-
),
|
|
189
|
+
(e) => r("tabs:close:other-tabs", o.value.workspace().tabs.closeOtherTabs, a)(e)
|
|
190
|
+
), t.on(
|
|
184
191
|
"tabs:focus:tab",
|
|
185
|
-
(e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab,
|
|
186
|
-
),
|
|
192
|
+
(e) => r("tabs:focus:tab", o.value.workspace().tabs.focusTab, a)(e)
|
|
193
|
+
), t.on(
|
|
187
194
|
"tabs:focus:tab-last",
|
|
188
|
-
(e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab,
|
|
189
|
-
),
|
|
195
|
+
(e) => r("tabs:focus:tab-last", o.value.workspace().tabs.focusLastTab, a)(e)
|
|
196
|
+
), t.on(
|
|
190
197
|
"tabs:navigate:previous",
|
|
191
|
-
(e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab,
|
|
192
|
-
),
|
|
198
|
+
(e) => r("tabs:navigate:previous", o.value.workspace().tabs.navigatePreviousTab, a)(e)
|
|
199
|
+
), t.on(
|
|
193
200
|
"tabs:navigate:next",
|
|
194
|
-
(e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab,
|
|
195
|
-
),
|
|
201
|
+
(e) => r("tabs:navigate:next", o.value.workspace().tabs.navigateNextTab, a)(e)
|
|
202
|
+
), t.on(
|
|
196
203
|
"tabs:update:tabs",
|
|
197
|
-
(e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs,
|
|
198
|
-
),
|
|
204
|
+
(e) => r("tabs:update:tabs", o.value.workspace().tabs.updateTabs, a)(e)
|
|
205
|
+
), t.on(
|
|
199
206
|
"hooks:on:request:complete",
|
|
200
|
-
(e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory,
|
|
207
|
+
(e) => r("hooks:on:request:complete", o.value.active().operation.addResponseToHistory, a)(e)
|
|
201
208
|
);
|
|
202
209
|
}
|
|
203
210
|
export {
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (u) => {
|
|
35
35
|
u?.createNew && g.name === "request" && p();
|
|
36
|
-
}, v = "2.23.
|
|
36
|
+
}, v = "2.23.3";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.23.
|
|
21
|
+
"version": "2.23.3",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -326,26 +326,26 @@
|
|
|
326
326
|
"whatwg-mimetype": "4.0.0",
|
|
327
327
|
"yaml": "^2.8.0",
|
|
328
328
|
"zod": "^4.3.5",
|
|
329
|
-
"@scalar/analytics-client": "1.0.1",
|
|
330
329
|
"@scalar/draggable": "0.3.0",
|
|
331
|
-
"@scalar/components": "0.17.
|
|
332
|
-
"@scalar/
|
|
330
|
+
"@scalar/components": "0.17.4",
|
|
331
|
+
"@scalar/analytics-client": "1.0.1",
|
|
333
332
|
"@scalar/icons": "0.5.2",
|
|
334
|
-
"@scalar/
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/
|
|
338
|
-
"@scalar/
|
|
333
|
+
"@scalar/import": "0.4.48",
|
|
334
|
+
"@scalar/json-magic": "0.9.6",
|
|
335
|
+
"@scalar/helpers": "0.2.11",
|
|
336
|
+
"@scalar/oas-utils": "0.6.34",
|
|
337
|
+
"@scalar/object-utils": "1.2.25",
|
|
338
|
+
"@scalar/openapi-parser": "0.24.7",
|
|
339
|
+
"@scalar/sidebar": "0.7.27",
|
|
339
340
|
"@scalar/openapi-types": "0.5.3",
|
|
340
|
-
"@scalar/
|
|
341
|
-
"@scalar/
|
|
341
|
+
"@scalar/snippetz": "0.6.11",
|
|
342
|
+
"@scalar/postman-to-openapi": "0.4.3",
|
|
342
343
|
"@scalar/themes": "0.14.0",
|
|
343
|
-
"@scalar/types": "0.6.
|
|
344
|
-
"@scalar/postman-to-openapi": "0.4.2",
|
|
345
|
-
"@scalar/use-codemirror": "0.13.29",
|
|
344
|
+
"@scalar/types": "0.6.2",
|
|
346
345
|
"@scalar/use-hooks": "0.3.7",
|
|
346
|
+
"@scalar/use-codemirror": "0.13.31",
|
|
347
347
|
"@scalar/use-toasts": "0.9.1",
|
|
348
|
-
"@scalar/workspace-store": "0.28.
|
|
348
|
+
"@scalar/workspace-store": "0.28.3"
|
|
349
349
|
},
|
|
350
350
|
"devDependencies": {
|
|
351
351
|
"@tailwindcss/vite": "^4.1.18",
|
|
@@ -360,8 +360,8 @@
|
|
|
360
360
|
"vite": "^7.3.1",
|
|
361
361
|
"vite-svg-loader": "5.1.0",
|
|
362
362
|
"vitest": "4.0.16",
|
|
363
|
-
"@scalar/
|
|
364
|
-
"@scalar/
|
|
363
|
+
"@scalar/galaxy": "0.5.12",
|
|
364
|
+
"@scalar/build-tooling": "0.4.1"
|
|
365
365
|
},
|
|
366
366
|
"scripts": {
|
|
367
367
|
"build": "scalar-build-vite",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operation-to-har.bench.d.ts","sourceRoot":"","sources":["../../../../../../src/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.bench.ts"],"names":[],"mappings":""}
|