@scalar/api-client 2.26.1 → 2.27.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 +102 -0
- package/dist/components/Server/ServerSelector.vue.js +6 -6
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +48 -43
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -10
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +1 -1
- 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 +101 -100
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +36 -2
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +38 -3
- 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/ResponseBlock.vue.d.ts +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +68 -69
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +35 -41
- 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/AuthSelector.vue.js +37 -41
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
- 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 +107 -87
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
- 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 -93
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
- 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 +29 -37
- package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
- package/dist/v2/components/modals/ModalClientContainer.vue.d.ts.map +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue.js +1 -1
- package/dist/v2/components/modals/ModalClientContainer.vue2.js +45 -42
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
- package/dist/v2/features/app/App.vue.d.ts +6 -1
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +48 -46
- package/dist/v2/features/app/app-events.d.ts +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +95 -56
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/AppSidebar.vue2.js +111 -105
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +12 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
- package/dist/v2/features/app/helpers/routes.d.ts +3 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
- package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
- package/dist/v2/features/app/hooks/use-theme.js +34 -0
- package/dist/v2/features/app/index.d.ts +0 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +27 -15
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +2 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +93 -88
- package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Settings.vue.js +19 -17
- package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +15 -15
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +31 -34
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
- package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
- package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
- package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/components/Section.vue.js +26 -15
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
- package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
- package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +2 -2
- package/dist/v2/helpers/index.d.ts +0 -1
- package/dist/v2/helpers/index.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
- package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
- package/dist/v2/hooks/use-global-hot-keys.js +8 -6
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +10 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +139 -155
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +104 -101
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +20 -18
- package/dist/v2/helpers/plugins.d.ts +0 -65
- package/dist/v2/helpers/plugins.d.ts.map +0 -1
- package/dist/v2/helpers/plugins.js +0 -11
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as v, ScalarToggle as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as w, createElementBlock as s, openBlock as r, Fragment as u, createElementVNode as t, createVNode as n, withCtx as d, unref as o, createTextVNode as i, toDisplayString as h } from "vue";
|
|
2
|
+
import { useModal as v, ScalarToggle as D, ScalarIcon as f, ScalarButton as y, ScalarModal as k } from "@scalar/components";
|
|
3
|
+
import M from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
4
|
+
import g from "./components/Section.vue.js";
|
|
5
|
+
const U = { class: "flex flex-col gap-12" }, C = { class: "bg-b-2 rounded-lg border text-sm" }, N = { class: "bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3" }, S = { class: "text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap" }, B = { class: "flex items-center" }, V = ["href"], T = { class: "flex items-center justify-between rounded-lg border p-3 text-sm" }, L = /* @__PURE__ */ w({
|
|
5
6
|
__name: "DocumentSettings",
|
|
6
7
|
props: {
|
|
7
8
|
documentUrl: {},
|
|
@@ -10,90 +11,98 @@ const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2"
|
|
|
10
11
|
isDraftDocument: { type: Boolean, default: !1 }
|
|
11
12
|
},
|
|
12
13
|
emits: ["delete:document", "update:watchMode"],
|
|
13
|
-
setup(l, { emit:
|
|
14
|
-
const
|
|
15
|
-
l.isDraftDocument ||
|
|
16
|
-
},
|
|
17
|
-
|
|
14
|
+
setup(l, { emit: b }) {
|
|
15
|
+
const c = b, a = v(), p = () => {
|
|
16
|
+
l.isDraftDocument || a.show();
|
|
17
|
+
}, x = () => {
|
|
18
|
+
c("delete:document"), a.hide();
|
|
18
19
|
};
|
|
19
|
-
return (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
t
|
|
28
|
-
e("
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
return ($, e) => (r(), s(u, null, [
|
|
21
|
+
t("div", U, [
|
|
22
|
+
n(g, null, {
|
|
23
|
+
title: d(() => [...e[2] || (e[2] = [
|
|
24
|
+
i("Features", -1)
|
|
25
|
+
])]),
|
|
26
|
+
default: d(() => [
|
|
27
|
+
t("div", C, [
|
|
28
|
+
t("div", N, [
|
|
29
|
+
e[3] || (e[3] = t("div", null, [
|
|
30
|
+
t("h4", null, "Watch Mode"),
|
|
31
|
+
t("p", { class: "text-c-2 mt-1" }, " When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")
|
|
32
|
+
], -1)),
|
|
33
|
+
n(o(D), {
|
|
34
|
+
class: "w-4",
|
|
35
|
+
disabled: !l.documentUrl,
|
|
36
|
+
modelValue: l.watchMode ?? !1,
|
|
37
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => c("update:watchMode", m))
|
|
38
|
+
}, null, 8, ["disabled", "modelValue"])
|
|
39
|
+
]),
|
|
40
|
+
t("div", S, [
|
|
41
|
+
t("div", B, [
|
|
42
|
+
l.documentUrl ? (r(), s(u, { key: 0 }, [
|
|
43
|
+
e[4] || (e[4] = t("span", { class: "bg-b-2 sticky left-0 pr-2 pl-3" }, "Source", -1)),
|
|
44
|
+
t("a", {
|
|
45
|
+
class: "text-c-2 group rounded pr-3 no-underline hover:underline",
|
|
46
|
+
href: l.documentUrl,
|
|
47
|
+
target: "_blank"
|
|
48
|
+
}, [
|
|
49
|
+
i(h(l.documentUrl) + " ", 1),
|
|
50
|
+
n(o(f), {
|
|
51
|
+
class: "ml-1 hidden w-2.5 group-hover:inline",
|
|
52
|
+
icon: "ExternalLink"
|
|
53
|
+
})
|
|
54
|
+
], 8, V)
|
|
55
|
+
], 64)) : (r(), s(u, { key: 1 }, [
|
|
48
56
|
n(o(f), {
|
|
49
|
-
class: "
|
|
50
|
-
icon: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
icon: "NotAllowed",
|
|
57
|
-
size: "sm"
|
|
58
|
-
}),
|
|
59
|
-
t[4] || (t[4] = e("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
|
|
60
|
-
], 64))
|
|
57
|
+
class: "text-c-2 mr-2 ml-3 w-4",
|
|
58
|
+
icon: "NotAllowed",
|
|
59
|
+
size: "sm"
|
|
60
|
+
}),
|
|
61
|
+
e[5] || (e[5] = t("span", { class: "text-c-2 pr-3" }, " No URL configured. Try importing an OpenAPI document from an URL. ", -1))
|
|
62
|
+
], 64))
|
|
63
|
+
])
|
|
61
64
|
])
|
|
62
65
|
])
|
|
63
|
-
])
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
e(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
n(g, null, {
|
|
70
|
+
title: d(() => [...e[6] || (e[6] = [
|
|
71
|
+
i("Danger Zone", -1)
|
|
72
|
+
])]),
|
|
73
|
+
default: d(() => [
|
|
74
|
+
t("div", T, [
|
|
75
|
+
e[8] || (e[8] = t("div", null, [
|
|
76
|
+
t("h4", null, "Delete Collection"),
|
|
77
|
+
t("p", { class: "text-c-2 mt-1" }, " Be careful, my friend. Once deleted, there is no way to recover the collection. ")
|
|
78
|
+
], -1)),
|
|
79
|
+
n(o(y), {
|
|
80
|
+
disabled: l.isDraftDocument,
|
|
81
|
+
size: "sm",
|
|
82
|
+
variant: "danger",
|
|
83
|
+
onClick: p
|
|
84
|
+
}, {
|
|
85
|
+
default: d(() => [...e[7] || (e[7] = [
|
|
86
|
+
i(" Delete Collection ", -1)
|
|
87
|
+
])]),
|
|
88
|
+
_: 1
|
|
89
|
+
}, 8, ["disabled"])
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})
|
|
85
94
|
]),
|
|
86
|
-
n(o(
|
|
95
|
+
n(o(k), {
|
|
87
96
|
size: "xxs",
|
|
88
|
-
state: o(
|
|
97
|
+
state: o(a),
|
|
89
98
|
title: `Delete ${l.title}`
|
|
90
99
|
}, {
|
|
91
|
-
default:
|
|
92
|
-
n(
|
|
100
|
+
default: d(() => [
|
|
101
|
+
n(M, {
|
|
93
102
|
variableName: l.title ?? "",
|
|
94
103
|
warningMessage: "This action cannot be undone.",
|
|
95
|
-
onClose:
|
|
96
|
-
onDelete:
|
|
104
|
+
onClose: e[1] || (e[1] = (m) => o(a).hide()),
|
|
105
|
+
onDelete: x
|
|
97
106
|
}, null, 8, ["variableName"])
|
|
98
107
|
]),
|
|
99
108
|
_: 1
|
|
@@ -102,5 +111,5 @@ const M = { class: "flex flex-col gap-12" }, U = { class: "flex flex-col gap-2"
|
|
|
102
111
|
}
|
|
103
112
|
});
|
|
104
113
|
export {
|
|
105
|
-
|
|
114
|
+
L as default
|
|
106
115
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type __VLS_Slots = {
|
|
2
2
|
title?: () => string;
|
|
3
3
|
description?: () => string;
|
|
4
|
-
|
|
4
|
+
actions?: () => unknown;
|
|
5
|
+
default: () => unknown;
|
|
5
6
|
};
|
|
6
7
|
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/components/Section.vue"],"names":[],"mappings":"AAyCA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,OAAO,CAAA;CACvB,CAAC;AAgEF,QAAA,MAAM,UAAU,+QACd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as i, useSlots as r, createElementBlock as s, openBlock as o, createCommentVNode as l, renderSlot as c, createElementVNode as n } from "vue";
|
|
2
|
+
const a = { class: "flex flex-col gap-2" }, d = {
|
|
3
3
|
key: 0,
|
|
4
|
-
class: "
|
|
5
|
-
},
|
|
4
|
+
class: "flex items-start justify-between gap-2"
|
|
5
|
+
}, _ = { class: "flex flex-col gap-2" }, p = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex h-8 items-center"
|
|
8
|
+
}, f = { class: "font-bold" }, m = {
|
|
6
9
|
key: 1,
|
|
7
|
-
class: "text-c-2 mb-4
|
|
8
|
-
},
|
|
10
|
+
class: "text-c-2 mb-4 text-sm"
|
|
11
|
+
}, x = /* @__PURE__ */ i({
|
|
9
12
|
__name: "Section",
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
setup(u) {
|
|
14
|
+
const e = r();
|
|
15
|
+
return (t, h) => (o(), s("div", a, [
|
|
16
|
+
e.title || e.description ? (o(), s("div", d, [
|
|
17
|
+
n("div", _, [
|
|
18
|
+
e.title ? (o(), s("div", p, [
|
|
19
|
+
n("h3", f, [
|
|
20
|
+
c(t.$slots, "title")
|
|
21
|
+
])
|
|
22
|
+
])) : l("", !0),
|
|
23
|
+
e.description ? (o(), s("p", m, [
|
|
24
|
+
c(t.$slots, "description")
|
|
25
|
+
])) : l("", !0)
|
|
26
|
+
]),
|
|
27
|
+
e.actions ? c(t.$slots, "actions", { key: 0 }) : l("", !0)
|
|
17
28
|
])) : l("", !0),
|
|
18
|
-
|
|
29
|
+
c(t.$slots, "default")
|
|
19
30
|
]));
|
|
20
31
|
}
|
|
21
32
|
});
|
|
22
33
|
export {
|
|
23
|
-
|
|
34
|
+
x as default
|
|
24
35
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { IntegrationThemeId,
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import type { IntegrationThemeId, themePresets } from '@scalar/themes';
|
|
2
|
+
type ThemePresets = typeof themePresets;
|
|
3
|
+
type Themes = Exclude<ThemePresets[number]['slug'], IntegrationThemeId>;
|
|
4
|
+
export declare const getThemeColors: (themeId: Themes | "none") => {
|
|
4
5
|
light: string;
|
|
5
6
|
dark: string;
|
|
6
7
|
accent: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"get-theme-colors.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/settings/helpers/get-theme-colors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEtE,KAAK,YAAY,GAAG,OAAO,YAAY,CAAA;AAEvC,KAAK,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,CAAA;AAEvE,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAetG,CAAA"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
const c = (
|
|
1
|
+
const c = (e) => ({
|
|
2
2
|
default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
|
|
3
3
|
alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
|
|
4
4
|
moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
|
|
5
5
|
purple: { light: "#f5f6f8", dark: "#22252b", accent: "#5469d4" },
|
|
6
6
|
solarized: { light: "#fdf6e3", dark: "#00212b", accent: "#007acc" },
|
|
7
|
-
|
|
7
|
+
"blue-planet": { light: "#f0f2f5", dark: "#000e23", accent: "#e0e2e6" },
|
|
8
8
|
saturn: { light: "#e4e4df", dark: "#2c2c30", accent: "#1763a6" },
|
|
9
|
-
kepler: { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
|
|
9
|
+
"kepler-11e": { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
|
|
10
10
|
mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
|
|
11
|
-
|
|
12
|
-
laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" }
|
|
13
|
-
|
|
14
|
-
})[f] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
|
|
11
|
+
"deep-space": { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
|
|
12
|
+
laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" }
|
|
13
|
+
})[e] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" };
|
|
15
14
|
export {
|
|
16
15
|
c as getThemeColors
|
|
17
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"handle-hotkeys.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/handle-hotkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA8ErD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,aAAa,EAAE,UAAU,iBAAiB,EAAE,QAAQ,YAAY,KAAG,IAkCvG,CAAA"}
|
|
@@ -29,7 +29,7 @@ const r = {
|
|
|
29
29
|
8: { event: "tabs:focus:tab", modifiers: ["default"] },
|
|
30
30
|
9: { event: "tabs:focus:tab-last", modifiers: ["default"] }
|
|
31
31
|
}
|
|
32
|
-
}, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
|
|
32
|
+
}, d = /* @__PURE__ */ new Set(["Escape", "ArrowDown", "ArrowUp", "Enter"]), u = (t, a) => a.length > 0 && a.map((e) => e === "default" ? f() ? "metaKey" : "ctrlKey" : e).every((e) => t[e] === !0), l = (t, a) => {
|
|
33
33
|
if (!(t.target instanceof HTMLElement))
|
|
34
34
|
return !1;
|
|
35
35
|
const e = t.target;
|
|
@@ -47,7 +47,7 @@ const r = {
|
|
|
47
47
|
a.emit(s.event, o, { skipUnpackProxy: !0 });
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
|
|
50
|
+
s.modifiers.length > 0 || l(t, i) || a.emit(s.event, o, { skipUnpackProxy: !0 });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
53
|
m as handleHotkeys
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
3
|
import type { ClientLayout } from '../../v2/types/layout';
|
|
3
4
|
/**
|
|
4
5
|
* Global hotkey handler for the app (web + desktop)
|
|
5
6
|
*
|
|
6
7
|
* @param eventBus - workspace event bus
|
|
7
8
|
* @param layout - client layout
|
|
9
|
+
* @param disableListeners - whether to disable the listeners
|
|
8
10
|
*/
|
|
9
|
-
export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout) => void;
|
|
11
|
+
export declare const useGlobalHotKeys: (eventBus: WorkspaceEventBus, layout: ClientLayout, disableListeners?: MaybeRefOrGetter<boolean>) => void;
|
|
10
12
|
//# sourceMappingURL=use-global-hot-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"use-global-hot-keys.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-global-hot-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,EAAE,KAAK,gBAAgB,EAAuC,MAAM,KAAK,CAAA;AAGhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,iBAAiB,EAC3B,QAAQ,YAAY,EACpB,mBAAmB,gBAAgB,CAAC,OAAO,CAAC,KAC3C,IAYF,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { onMounted as d, onBeforeUnmount as
|
|
2
|
-
import { handleHotkeys as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { onMounted as d, onBeforeUnmount as i, toValue as s } from "vue";
|
|
2
|
+
import { handleHotkeys as w } from "../helpers/handle-hotkeys.js";
|
|
3
|
+
const l = (o, n, t) => {
|
|
4
|
+
const e = (r) => {
|
|
5
|
+
s(t) || w(r, o, n);
|
|
6
|
+
};
|
|
7
|
+
d(() => window.addEventListener("keydown", e)), i(() => window.removeEventListener("keydown", e));
|
|
6
8
|
};
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
l as useGlobalHotKeys
|
|
9
11
|
};
|
|
@@ -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,QAiRA"}
|
|
@@ -101,6 +101,13 @@ function l({
|
|
|
101
101
|
o.value.active().auth.updateSecuritySchemeSecrets,
|
|
102
102
|
a
|
|
103
103
|
)(e)
|
|
104
|
+
), t.on(
|
|
105
|
+
"auth:clear:security-scheme-secrets",
|
|
106
|
+
(e) => r(
|
|
107
|
+
"auth:clear:security-scheme-secrets",
|
|
108
|
+
o.value.active().auth.clearSecuritySchemeSecrets,
|
|
109
|
+
a
|
|
110
|
+
)(e)
|
|
104
111
|
), t.on(
|
|
105
112
|
"server:add:server",
|
|
106
113
|
(e) => r("server:add:server", o.value.active().server.addServer, a)(e)
|
|
@@ -155,6 +162,9 @@ function l({
|
|
|
155
162
|
o.value.active().operation.deleteAllOperationParameters,
|
|
156
163
|
a
|
|
157
164
|
)(e)
|
|
165
|
+
), t.on(
|
|
166
|
+
"operation:update:extension",
|
|
167
|
+
(e) => r("operation:update:extension", o.value.active().operation.updateOperationExtension, a)(e)
|
|
158
168
|
), t.on(
|
|
159
169
|
"operation:update:requestBody:contentType",
|
|
160
170
|
(e) => r(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAy4CA,QAAA,MAAM,YAAY;;;cAx1BqB,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;iFA01BxD,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.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-23d35bb5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|