@scalar/api-client 2.2.48 → 2.2.50
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 +41 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +1 -1
- package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
- package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +1 -3
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +11 -8
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
- package/dist/components/Form/Form.vue.d.ts +3 -1
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +30 -25
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
- package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
- package/dist/components/ScreenReader.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +13 -13
- package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
- package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
- package/dist/layouts/App/create-api-client-app.d.ts +387 -477
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +390 -479
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +3 -15
- package/dist/libs/env-helpers.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +7 -7
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +3 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +11 -15
- package/dist/libs/hot-keys.test.d.ts +2 -0
- package/dist/libs/hot-keys.test.d.ts.map +1 -0
- package/dist/libs/index.js +27 -26
- package/dist/libs/send-request/build-request-security.d.ts +1 -1
- package/dist/libs/send-request/build-request-security.js +19 -16
- package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +37 -34
- package/dist/store/active-entities.d.ts +58 -67
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +61 -74
- package/dist/store/collections.d.ts +90 -90
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -17
- package/dist/store/cookies.d.ts +14 -14
- package/dist/store/environment.d.ts +19 -18
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +2 -8
- package/dist/store/import-spec.d.ts +16 -106
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +9 -14
- package/dist/store/request-example.d.ts +25 -25
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +15 -20
- package/dist/store/requests.d.ts +84 -84
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +17 -40
- package/dist/store/router-params.d.ts +13 -11
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +5 -5
- package/dist/store/security-schemes.d.ts +58 -58
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +1 -3
- package/dist/store/servers.d.ts +17 -17
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +2 -9
- package/dist/store/store.d.ts +387 -477
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +2 -4
- package/dist/store/tags.d.ts +28 -28
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +19 -34
- package/dist/store/workspace.d.ts +36 -36
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +1 -5
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +18 -18
- package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +24 -24
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +140 -132
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +160 -141
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +50 -48
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
- 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 +38 -44
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.js +38 -55
- package/dist/views/Request/libs/auth.d.ts +2 -2
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +28 -29
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +42 -65
- package/dist/views/Request/libs/request.d.ts +5 -0
- package/dist/views/Request/libs/request.d.ts.map +1 -1
- package/dist/views/Request/libs/request.js +37 -2
- package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
- package/dist/views/Request/libs/watch-mode.js +10 -34
- package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +21 -22
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +73 -81
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
- package/package.json +14 -14
|
@@ -1,68 +1,67 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as _, resolveComponent as $, openBlock as r, createBlock as p, withCtx as t, createElementBlock as b, Fragment as f, renderList as I, normalizeClass as w, unref as i, createElementVNode as s, createVNode as u, toDisplayString as y, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ScalarTooltip as T, ScalarIcon as x, ScalarButton as z } from "@scalar/components";
|
|
3
|
+
import g from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
|
+
import D from "../../../components/DataTable/DataTable.vue.js";
|
|
4
5
|
import v from "../../../components/DataTable/DataTableCell.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, P = ["onClick"], oe = /* @__PURE__ */ $({
|
|
6
|
+
import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
|
+
import E from "../../../components/DataTable/DataTableRow.vue.js";
|
|
8
|
+
import { parameterIsInvalid as G, hasItemProperties as B } from "../libs/request.js";
|
|
9
|
+
import L from "./RequestTableTooltip.vue.js";
|
|
10
|
+
const N = { class: "contents" }, O = { class: "sr-only" }, j = { class: "text-c-2 filemask flex max-w-[100%] items-end justify-end overflow-hidden" }, A = ["onClick"], Z = /* @__PURE__ */ _({
|
|
11
11
|
__name: "RequestTable",
|
|
12
12
|
props: {
|
|
13
13
|
items: {},
|
|
14
14
|
hasCheckboxDisabled: { type: Boolean, default: !1 },
|
|
15
15
|
showUploadButton: { type: Boolean, default: !1 },
|
|
16
16
|
isGlobal: { type: Boolean, default: !1 },
|
|
17
|
-
isReadOnly: { type: Boolean, default: !1 }
|
|
17
|
+
isReadOnly: { type: Boolean, default: !1 },
|
|
18
|
+
environment: {},
|
|
19
|
+
envVariables: {},
|
|
20
|
+
workspace: {}
|
|
18
21
|
},
|
|
19
22
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
20
23
|
setup(R, { emit: h }) {
|
|
21
|
-
const m = R, n = h,
|
|
22
|
-
n("updateRow",
|
|
23
|
-
},
|
|
24
|
-
n("uploadFile",
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return `Max is ${e.maximum}`;
|
|
32
|
-
}
|
|
33
|
-
return !1;
|
|
34
|
-
}), F = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
|
|
35
|
-
return (e, o) => {
|
|
36
|
-
const c = U("RouterLink");
|
|
37
|
-
return r(), i(G, {
|
|
38
|
-
class: "flex-1",
|
|
39
|
-
columns: _
|
|
24
|
+
const m = R, n = h, C = ["", "", "36px"], k = (l, a, c) => {
|
|
25
|
+
n("updateRow", l, a, c);
|
|
26
|
+
}, F = (l) => {
|
|
27
|
+
n("uploadFile", l);
|
|
28
|
+
}, S = (l) => Array.isArray(l.default) && l.default.length === 1 ? l.default[0] : l.default;
|
|
29
|
+
return (l, a) => {
|
|
30
|
+
const c = $("RouterLink");
|
|
31
|
+
return r(), p(D, {
|
|
32
|
+
class: "group/table flex-1",
|
|
33
|
+
columns: C
|
|
40
34
|
}, {
|
|
41
35
|
default: t(() => [
|
|
42
|
-
(r(!0), f
|
|
36
|
+
(r(!0), b(f, null, I(l.items, (e, d) => (r(), p(E, {
|
|
37
|
+
key: d,
|
|
38
|
+
class: w({
|
|
39
|
+
alert: i(G)(e).value
|
|
40
|
+
})
|
|
41
|
+
}, {
|
|
43
42
|
default: t(() => [
|
|
44
|
-
s("label",
|
|
45
|
-
|
|
43
|
+
s("label", N, [
|
|
44
|
+
l.isGlobal ? (r(), p(c, {
|
|
46
45
|
key: 0,
|
|
47
|
-
class: "!border-r-1/2 border-t-1/2 text-c-2 flex
|
|
48
|
-
to:
|
|
46
|
+
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
47
|
+
to: e.route ?? {}
|
|
49
48
|
}, {
|
|
50
49
|
default: t(() => [
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
a[5] || (a[5] = s("span", { class: "sr-only" }, "Global", -1)),
|
|
51
|
+
u(i(T), {
|
|
53
52
|
as: "div",
|
|
54
53
|
side: "top"
|
|
55
54
|
}, {
|
|
56
55
|
trigger: t(() => [
|
|
57
|
-
|
|
56
|
+
u(i(x), {
|
|
58
57
|
class: "text-c-1",
|
|
59
58
|
icon: "Globe",
|
|
60
59
|
size: "xs"
|
|
61
60
|
})
|
|
62
61
|
]),
|
|
63
|
-
content: t(() =>
|
|
64
|
-
s("div", { class: "
|
|
65
|
-
s("div", { class: "flex items-center
|
|
62
|
+
content: t(() => a[4] || (a[4] = [
|
|
63
|
+
s("div", { class: "w-content bg-b-1 z-100 text-xxs text-c-1 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
|
|
64
|
+
s("div", { class: "text-c-1 flex items-center" }, [
|
|
66
65
|
s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
67
66
|
])
|
|
68
67
|
], -1)
|
|
@@ -71,103 +70,101 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
|
|
|
71
70
|
})
|
|
72
71
|
]),
|
|
73
72
|
_: 2
|
|
74
|
-
}, 1032, ["to"])) : (r(), f
|
|
75
|
-
s("span",
|
|
76
|
-
|
|
73
|
+
}, 1032, ["to"])) : (r(), b(f, { key: 1 }, [
|
|
74
|
+
s("span", O, " Row " + y(e.enabled ? "Enabled" : "Disabled"), 1),
|
|
75
|
+
u(q, {
|
|
77
76
|
class: "!border-r-1/2",
|
|
78
77
|
disabled: m.hasCheckboxDisabled,
|
|
79
|
-
modelValue:
|
|
80
|
-
"onUpdate:modelValue": (
|
|
78
|
+
modelValue: e.enabled,
|
|
79
|
+
"onUpdate:modelValue": (o) => n("toggleRow", d, o)
|
|
81
80
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
|
|
82
81
|
], 64))
|
|
83
82
|
]),
|
|
84
|
-
|
|
83
|
+
u(v, null, {
|
|
85
84
|
default: t(() => [
|
|
86
|
-
|
|
85
|
+
u(g, {
|
|
87
86
|
disableCloseBrackets: "",
|
|
88
87
|
disabled: m.isReadOnly,
|
|
89
88
|
disableEnter: "",
|
|
90
89
|
disableTabIndent: "",
|
|
91
|
-
|
|
90
|
+
envVariables: l.envVariables,
|
|
91
|
+
environment: l.environment,
|
|
92
|
+
modelValue: e.key,
|
|
92
93
|
placeholder: "Key",
|
|
93
|
-
required: !!
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
required: !!e.required,
|
|
95
|
+
workspace: l.workspace,
|
|
96
|
+
onBlur: a[0] || (a[0] = (o) => n("inputBlur")),
|
|
97
|
+
onFocus: a[1] || (a[1] = (o) => n("inputFocus")),
|
|
98
|
+
onSelectVariable: (o) => k(d, "key", o),
|
|
99
|
+
"onUpdate:modelValue": (o) => n("updateRow", d, "key", o)
|
|
100
|
+
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
99
101
|
]),
|
|
100
102
|
_: 2
|
|
101
103
|
}, 1024),
|
|
102
|
-
|
|
104
|
+
u(v, null, {
|
|
103
105
|
default: t(() => [
|
|
104
|
-
|
|
105
|
-
class:
|
|
106
|
-
"pr-6":
|
|
106
|
+
u(g, {
|
|
107
|
+
class: w({
|
|
108
|
+
"pr-6": i(B)(e)
|
|
107
109
|
}),
|
|
108
|
-
default:
|
|
110
|
+
default: e.default,
|
|
109
111
|
disableCloseBrackets: "",
|
|
110
112
|
disabled: m.isReadOnly,
|
|
111
113
|
disableEnter: "",
|
|
112
114
|
disableTabIndent: "",
|
|
113
|
-
enum:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
enum: e.enum ?? [],
|
|
116
|
+
envVariables: l.envVariables,
|
|
117
|
+
environment: l.environment,
|
|
118
|
+
examples: e.examples ?? [],
|
|
119
|
+
max: e.maximum,
|
|
120
|
+
min: e.minimum,
|
|
121
|
+
modelValue: e.value,
|
|
122
|
+
nullable: !!e.nullable,
|
|
119
123
|
placeholder: "Value",
|
|
120
|
-
type:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
type: e.type,
|
|
125
|
+
workspace: l.workspace,
|
|
126
|
+
onBlur: a[2] || (a[2] = (o) => n("inputBlur")),
|
|
127
|
+
onFocus: a[3] || (a[3] = (o) => n("inputFocus")),
|
|
128
|
+
onSelectVariable: (o) => k(d, "value", o),
|
|
129
|
+
"onUpdate:modelValue": (o) => n("updateRow", d, "value", o)
|
|
130
|
+
}, {
|
|
126
131
|
icon: t(() => [
|
|
127
|
-
|
|
132
|
+
i(B)(e) ? (r(), p(L, {
|
|
128
133
|
key: 0,
|
|
129
|
-
item: { ...
|
|
130
|
-
}, null, 8, ["item"])) :
|
|
134
|
+
item: { ...e, default: S(e) }
|
|
135
|
+
}, null, 8, ["item"])) : V("", !0)
|
|
131
136
|
]),
|
|
132
137
|
_: 2
|
|
133
|
-
}, [
|
|
134
|
-
k(l).value ? {
|
|
135
|
-
name: "warning",
|
|
136
|
-
fn: t(() => [
|
|
137
|
-
q(y(k(l).value), 1)
|
|
138
|
-
]),
|
|
139
|
-
key: "0"
|
|
140
|
-
} : void 0
|
|
141
|
-
]), 1032, ["class", "default", "disabled", "enum", "examples", "max", "min", "modelValue", "nullable", "type", "onSelectVariable", "onUpdate:modelValue"])
|
|
138
|
+
}, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
142
139
|
]),
|
|
143
140
|
_: 2
|
|
144
141
|
}, 1024),
|
|
145
|
-
|
|
142
|
+
l.showUploadButton ? (r(), p(v, {
|
|
146
143
|
key: 0,
|
|
147
|
-
class: "group/upload
|
|
144
|
+
class: "group/upload relative overflow-hidden text-ellipsis whitespace-nowrap p-1"
|
|
148
145
|
}, {
|
|
149
146
|
default: t(() => {
|
|
150
|
-
var
|
|
147
|
+
var o;
|
|
151
148
|
return [
|
|
152
|
-
|
|
153
|
-
s("div",
|
|
154
|
-
s("span", null, y((
|
|
149
|
+
e.file ? (r(), b(f, { key: 0 }, [
|
|
150
|
+
s("div", j, [
|
|
151
|
+
s("span", null, y((o = e.file) == null ? void 0 : o.name), 1)
|
|
155
152
|
]),
|
|
156
153
|
s("button", {
|
|
157
|
-
class: "
|
|
154
|
+
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
158
155
|
type: "button",
|
|
159
|
-
onClick: (
|
|
160
|
-
}, " Delete ", 8,
|
|
161
|
-
], 64)) : (r(), i(
|
|
156
|
+
onClick: (U) => n("removeFile", d)
|
|
157
|
+
}, " Delete ", 8, A)
|
|
158
|
+
], 64)) : (r(), p(i(z), {
|
|
162
159
|
key: 1,
|
|
163
|
-
class: "bg-b-2 hover:bg-b-3 border-0 py-px
|
|
160
|
+
class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 py-px shadow-none",
|
|
164
161
|
size: "sm",
|
|
165
162
|
variant: "outlined",
|
|
166
|
-
onClick: (
|
|
163
|
+
onClick: (U) => F(d)
|
|
167
164
|
}, {
|
|
168
165
|
default: t(() => [
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
a[6] || (a[6] = s("span", null, "File", -1)),
|
|
167
|
+
u(i(x), {
|
|
171
168
|
class: "ml-1",
|
|
172
169
|
icon: "UploadSimple",
|
|
173
170
|
size: "xs",
|
|
@@ -179,10 +176,10 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
|
|
|
179
176
|
];
|
|
180
177
|
}),
|
|
181
178
|
_: 2
|
|
182
|
-
}, 1024)) :
|
|
179
|
+
}, 1024)) : V("", !0)
|
|
183
180
|
]),
|
|
184
181
|
_: 2
|
|
185
|
-
},
|
|
182
|
+
}, 1032, ["class"]))), 128))
|
|
186
183
|
]),
|
|
187
184
|
_: 1
|
|
188
185
|
});
|
|
@@ -190,5 +187,5 @@ const A = { class: "contents" }, M = { class: "sr-only" }, K = { class: "text-c-
|
|
|
190
187
|
}
|
|
191
188
|
});
|
|
192
189
|
export {
|
|
193
|
-
|
|
190
|
+
Z as default
|
|
194
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAM9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAsJrD,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestTableTooltip.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-30c955c6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,42 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as c, ScalarIcon as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as d, normalizeClass as u, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
|
|
2
|
+
import { ScalarTooltip as c, ScalarIcon as f } from "@scalar/components";
|
|
3
|
+
import { parameterIsInvalid as n } from "../libs/request.js";
|
|
4
|
+
const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
|
|
4
5
|
key: 0,
|
|
5
|
-
class: "
|
|
6
|
+
class: "text-error-1"
|
|
7
|
+
}, y = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "schema text-c-2 flex items-center"
|
|
10
|
+
}, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 }, x = { key: 4 }, C = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "text-pretty text-sm leading-snug",
|
|
6
13
|
style: { maxWidth: "16rem" }
|
|
7
|
-
},
|
|
14
|
+
}, V = /* @__PURE__ */ l({
|
|
8
15
|
__name: "RequestTableTooltip",
|
|
9
16
|
props: {
|
|
10
17
|
item: {}
|
|
11
18
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return (e,
|
|
19
|
+
setup(I) {
|
|
20
|
+
return (e, B) => (t(), p(r(c), {
|
|
14
21
|
align: "start",
|
|
15
22
|
class: "w-full pr-px",
|
|
16
23
|
delay: 0,
|
|
17
24
|
side: "left",
|
|
18
|
-
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
|
|
25
|
+
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert before:min-h-[calc(100%-4px)] before:pointer-events-none before:right-[23px] before:top-0.5 before:w-3 absolute h-full right-0 -outline-offset-1"
|
|
19
26
|
}, {
|
|
20
27
|
trigger: a(() => [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class:
|
|
24
|
-
|
|
28
|
+
m("div", g, [
|
|
29
|
+
d(r(f), {
|
|
30
|
+
class: u(
|
|
31
|
+
r(n)(e.item).value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
|
|
32
|
+
),
|
|
33
|
+
icon: r(n)(e.item).value ? "Alert" : "Info",
|
|
25
34
|
size: "sm",
|
|
26
35
|
thickness: "1.5"
|
|
27
|
-
})
|
|
36
|
+
}, null, 8, ["class", "icon"])
|
|
28
37
|
])
|
|
29
38
|
]),
|
|
30
39
|
content: a(() => [
|
|
31
|
-
|
|
32
|
-
n("div", h, [
|
|
33
|
-
e.item.type ? (t(), o("span",
|
|
34
|
-
e.item.format ? (t(), o("span",
|
|
40
|
+
m("div", b, [
|
|
41
|
+
r(n)(e.item).value ? (t(), o("div", h, s(r(n)(e.item).value), 1)) : (t(), o("div", y, [
|
|
42
|
+
e.item.type ? (t(), o("span", v, s(e.item.type), 1)) : i("", !0),
|
|
43
|
+
e.item.format ? (t(), o("span", k, s(e.item.format), 1)) : i("", !0),
|
|
35
44
|
e.item.minimum ? (t(), o("span", _, "min: " + s(e.item.minimum), 1)) : i("", !0),
|
|
36
|
-
e.item.maximum ? (t(), o("span",
|
|
37
|
-
e.item.default ? (t(), o("span",
|
|
38
|
-
]),
|
|
39
|
-
e.item.description ? (t(), o("span",
|
|
45
|
+
e.item.maximum ? (t(), o("span", w, "max: " + s(e.item.maximum), 1)) : i("", !0),
|
|
46
|
+
e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : i("", !0)
|
|
47
|
+
])),
|
|
48
|
+
e.item.description && !r(n)(e.item).value ? (t(), o("span", C, s(e.item.description), 1)) : i("", !0)
|
|
40
49
|
])
|
|
41
50
|
]),
|
|
42
51
|
_: 1
|
|
@@ -44,5 +53,5 @@ const f = { class: "bg-b-1 pl-1 pr-1.5 mr-0.25" }, u = { class: "grid gap-1.5 po
|
|
|
44
53
|
}
|
|
45
54
|
});
|
|
46
55
|
export {
|
|
47
|
-
|
|
56
|
+
V as default
|
|
48
57
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Collection } from '@scalar/oas-utils/entities/spec';
|
|
1
|
+
import type { Collection, Operation } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the user gets the getting started state displayed
|
|
4
4
|
*/
|
|
5
|
-
export declare const isGettingStarted: (activeWorkspaceCollections: Collection[], activeWorkspaceRequests:
|
|
5
|
+
export declare const isGettingStarted: (activeWorkspaceCollections: Collection[], activeWorkspaceRequests: Operation["uid"][], requests: Record<string, any>) => boolean;
|
|
6
6
|
//# sourceMappingURL=getting-started.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getting-started.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/getting-started.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"getting-started.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/helpers/getting-started.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,gBAAgB,+BACC,UAAU,EAAE,2BACf,SAAS,CAAC,KAAK,CAAC,EAAE,YACjC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAY9B,CAAA"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const q = (u, t, i) => {
|
|
2
2
|
var n;
|
|
3
|
-
const s = u.find(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
const f = ((n = i[(s == null ? void 0 : s.requests[0]) ?? ""]) == null ? void 0 : n.summary) !== "My First Request";
|
|
13
|
-
return q && t && !f;
|
|
3
|
+
const s = u.find((m) => {
|
|
4
|
+
var r;
|
|
5
|
+
return ((r = m.info) == null ? void 0 : r.title) === "Drafts";
|
|
6
|
+
}), f = t.length === 1;
|
|
7
|
+
if (!t[0]) return !1;
|
|
8
|
+
const e = s == null ? void 0 : s.requests.includes(t[0]);
|
|
9
|
+
if (!e) return !1;
|
|
10
|
+
const g = ((n = i[(s == null ? void 0 : s.requests[0]) ?? ""]) == null ? void 0 : n.summary) !== "My First Request";
|
|
11
|
+
return f && e && !g;
|
|
14
12
|
};
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
q as isGettingStarted
|
|
17
15
|
};
|
|
@@ -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":"AAuhBA,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAA;CACvB,CAAC;;;;;cAMqC,MAAM;aAAO,MAAM;;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AA+xB1D,wBAOG"}
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b7bf7c07"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|