@scalar/api-client 2.2.56 → 2.2.57
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 +33 -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 +53 -54
- package/dist/components/CodeInput/CodeInput.vue.d.ts +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +3 -19
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +154 -129
- package/dist/components/DataTable/DataTableInput.vue.d.ts +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +17 -16
- package/dist/layouts/App/create-api-client-app.d.ts +62 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +120 -100
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +1 -2
- package/dist/layouts/Web/create-api-client-web.d.ts +62 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +64 -58
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +82 -80
- package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
- package/dist/libs/extractAttachmentFilename.js +8 -7
- package/dist/libs/find-request.d.ts +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/hot-keys.js +9 -8
- package/dist/libs/send-request/create-request-operation.test.d.ts +3 -2
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +4 -3
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +3 -3
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +4 -1
- package/dist/store/request-example.d.ts +22 -12
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +13 -13
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +6 -6
- package/dist/store/store.d.ts +92 -67
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +12 -12
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/RequestRoot.test.d.ts +2 -0
- package/dist/views/Request/RequestRoot.test.d.ts.map +1 -0
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue2.js +72 -60
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +113 -107
- 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 +37 -37
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +55 -51
- 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 +171 -166
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +187 -180
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +41 -49
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +62 -45
- package/package.json +12 -12
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +0 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +0 -176
- package/dist/components/CommandPalette/CommandPaletteRequest.vue2.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, resolveComponent as $, openBlock as r, createBlock as p, withCtx as t, createElementBlock as m, Fragment as f, renderList as I, normalizeClass as y, unref as u, createElementVNode as s, createVNode as d, toDisplayString as w, createCommentVNode as V } from "vue";
|
|
2
2
|
import { ScalarTooltip as T, ScalarIcon as g, ScalarButton as z } from "@scalar/components";
|
|
3
3
|
import x from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
4
|
import D from "../../../components/DataTable/DataTable.vue.js";
|
|
@@ -7,7 +7,10 @@ import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
|
7
7
|
import E from "../../../components/DataTable/DataTableRow.vue.js";
|
|
8
8
|
import { parameterIsInvalid as G, hasItemProperties as B } from "../libs/request.js";
|
|
9
9
|
import P from "./RequestTableTooltip.vue.js";
|
|
10
|
-
const
|
|
10
|
+
const j = { class: "contents" }, L = { class: "sr-only" }, N = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, O = ["onClick"], A = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "p-0.5"
|
|
13
|
+
}, ee = /* @__PURE__ */ _({
|
|
11
14
|
__name: "RequestTable",
|
|
12
15
|
props: {
|
|
13
16
|
items: {},
|
|
@@ -22,20 +25,20 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
22
25
|
},
|
|
23
26
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
24
27
|
setup(h, { emit: R }) {
|
|
25
|
-
const
|
|
26
|
-
n("updateRow", l, a,
|
|
28
|
+
const c = h, n = R, C = ["", "", "36px"], k = (l, a, b) => {
|
|
29
|
+
n("updateRow", l, a, b);
|
|
27
30
|
}, F = (l) => {
|
|
28
31
|
n("uploadFile", l);
|
|
29
32
|
}, U = (l) => Array.isArray(l.default) && l.default.length === 1 ? l.default[0] : l.default;
|
|
30
33
|
return (l, a) => {
|
|
31
|
-
const
|
|
34
|
+
const b = $("RouterLink");
|
|
32
35
|
return r(), p(D, {
|
|
33
36
|
class: "group/table flex-1",
|
|
34
37
|
columns: C
|
|
35
38
|
}, {
|
|
36
39
|
default: t(() => [
|
|
37
|
-
(r(!0),
|
|
38
|
-
key:
|
|
40
|
+
(r(!0), m(f, null, I(l.items, (e, i) => (r(), p(E, {
|
|
41
|
+
key: i,
|
|
39
42
|
id: e.key,
|
|
40
43
|
class: y({
|
|
41
44
|
alert: u(G)(e).value,
|
|
@@ -43,27 +46,27 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
43
46
|
})
|
|
44
47
|
}, {
|
|
45
48
|
default: t(() => [
|
|
46
|
-
s("label",
|
|
47
|
-
l.isGlobal ? (r(), p(
|
|
49
|
+
s("label", j, [
|
|
50
|
+
l.isGlobal ? (r(), p(b, {
|
|
48
51
|
key: 0,
|
|
49
52
|
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
50
53
|
to: e.route ?? {}
|
|
51
54
|
}, {
|
|
52
55
|
default: t(() => [
|
|
53
56
|
a[5] || (a[5] = s("span", { class: "sr-only" }, "Global", -1)),
|
|
54
|
-
|
|
57
|
+
d(u(T), {
|
|
55
58
|
as: "div",
|
|
56
59
|
side: "top"
|
|
57
60
|
}, {
|
|
58
61
|
trigger: t(() => [
|
|
59
|
-
|
|
62
|
+
d(u(g), {
|
|
60
63
|
class: "text-c-1",
|
|
61
64
|
icon: "Globe",
|
|
62
65
|
size: "xs"
|
|
63
66
|
})
|
|
64
67
|
]),
|
|
65
68
|
content: t(() => a[4] || (a[4] = [
|
|
66
|
-
s("div", { class: "w-content bg-b-1
|
|
69
|
+
s("div", { class: "w-content bg-b-1 text-xxs text-c-1 z-100 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, [
|
|
67
70
|
s("div", { class: "text-c-1 flex items-center" }, [
|
|
68
71
|
s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
69
72
|
])
|
|
@@ -73,21 +76,21 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
73
76
|
})
|
|
74
77
|
]),
|
|
75
78
|
_: 2
|
|
76
|
-
}, 1032, ["to"])) : (r(),
|
|
77
|
-
s("span",
|
|
78
|
-
|
|
79
|
+
}, 1032, ["to"])) : (r(), m(f, { key: 1 }, [
|
|
80
|
+
s("span", L, " Row " + w(e.enabled ? "Enabled" : "Disabled"), 1),
|
|
81
|
+
d(q, {
|
|
79
82
|
class: "!border-r-1/2",
|
|
80
|
-
disabled:
|
|
83
|
+
disabled: c.hasCheckboxDisabled,
|
|
81
84
|
modelValue: e.enabled,
|
|
82
|
-
"onUpdate:modelValue": (o) => n("toggleRow",
|
|
85
|
+
"onUpdate:modelValue": (o) => n("toggleRow", i, o)
|
|
83
86
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
|
|
84
87
|
], 64))
|
|
85
88
|
]),
|
|
86
|
-
|
|
89
|
+
d(v, null, {
|
|
87
90
|
default: t(() => [
|
|
88
|
-
|
|
91
|
+
d(x, {
|
|
89
92
|
disableCloseBrackets: "",
|
|
90
|
-
disabled:
|
|
93
|
+
disabled: c.isReadOnly,
|
|
91
94
|
disableEnter: "",
|
|
92
95
|
disableTabIndent: "",
|
|
93
96
|
envVariables: l.envVariables,
|
|
@@ -98,21 +101,21 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
98
101
|
workspace: l.workspace,
|
|
99
102
|
onBlur: a[0] || (a[0] = (o) => n("inputBlur")),
|
|
100
103
|
onFocus: a[1] || (a[1] = (o) => n("inputFocus")),
|
|
101
|
-
onSelectVariable: (o) => k(
|
|
102
|
-
"onUpdate:modelValue": (o) => n("updateRow",
|
|
104
|
+
onSelectVariable: (o) => k(i, "key", o),
|
|
105
|
+
"onUpdate:modelValue": (o) => n("updateRow", i, "key", o)
|
|
103
106
|
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
104
107
|
]),
|
|
105
108
|
_: 2
|
|
106
109
|
}, 1024),
|
|
107
|
-
|
|
110
|
+
d(v, null, {
|
|
108
111
|
default: t(() => [
|
|
109
|
-
|
|
112
|
+
d(x, {
|
|
110
113
|
class: y({
|
|
111
114
|
"pr-6": u(B)(e)
|
|
112
115
|
}),
|
|
113
116
|
default: e.default,
|
|
114
117
|
disableCloseBrackets: "",
|
|
115
|
-
disabled:
|
|
118
|
+
disabled: c.isReadOnly,
|
|
116
119
|
disableEnter: "",
|
|
117
120
|
disableTabIndent: "",
|
|
118
121
|
enum: e.enum ?? [],
|
|
@@ -128,8 +131,8 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
128
131
|
workspace: l.workspace,
|
|
129
132
|
onBlur: a[2] || (a[2] = (o) => n("inputBlur")),
|
|
130
133
|
onFocus: a[3] || (a[3] = (o) => n("inputFocus")),
|
|
131
|
-
onSelectVariable: (o) => k(
|
|
132
|
-
"onUpdate:modelValue": (o) => n("updateRow",
|
|
134
|
+
onSelectVariable: (o) => k(i, "value", o),
|
|
135
|
+
"onUpdate:modelValue": (o) => n("updateRow", i, "value", o)
|
|
133
136
|
}, {
|
|
134
137
|
icon: t(() => [
|
|
135
138
|
u(B)(e) ? (r(), p(P, {
|
|
@@ -144,38 +147,39 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
144
147
|
}, 1024),
|
|
145
148
|
l.showUploadButton ? (r(), p(v, {
|
|
146
149
|
key: 0,
|
|
147
|
-
class: "group/upload
|
|
150
|
+
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
148
151
|
}, {
|
|
149
152
|
default: t(() => {
|
|
150
153
|
var o;
|
|
151
154
|
return [
|
|
152
|
-
e.file ? (r(),
|
|
153
|
-
s("div",
|
|
155
|
+
e.file ? (r(), m(f, { key: 0 }, [
|
|
156
|
+
s("div", N, [
|
|
154
157
|
s("span", null, w((o = e.file) == null ? void 0 : o.name), 1)
|
|
155
158
|
]),
|
|
156
159
|
s("button", {
|
|
157
160
|
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
161
|
type: "button",
|
|
159
|
-
onClick: (S) => n("removeFile",
|
|
160
|
-
}, " Delete ", 8,
|
|
161
|
-
], 64)) : (r(),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
162
|
+
onClick: (S) => n("removeFile", i)
|
|
163
|
+
}, " Delete ", 8, O)
|
|
164
|
+
], 64)) : (r(), m("div", A, [
|
|
165
|
+
d(u(z), {
|
|
166
|
+
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
167
|
+
size: "sm",
|
|
168
|
+
variant: "outlined",
|
|
169
|
+
onClick: (S) => F(i)
|
|
170
|
+
}, {
|
|
171
|
+
default: t(() => [
|
|
172
|
+
a[6] || (a[6] = s("span", null, "Upload File", -1)),
|
|
173
|
+
d(u(g), {
|
|
174
|
+
class: "ml-1",
|
|
175
|
+
icon: "UploadSimple",
|
|
176
|
+
size: "xs",
|
|
177
|
+
thickness: "2.5"
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, ["onClick"])
|
|
182
|
+
]))
|
|
179
183
|
];
|
|
180
184
|
}),
|
|
181
185
|
_: 2
|
|
@@ -190,5 +194,5 @@ const L = { class: "contents" }, N = { class: "sr-only" }, O = { class: "text-c-
|
|
|
190
194
|
}
|
|
191
195
|
});
|
|
192
196
|
export {
|
|
193
|
-
|
|
197
|
+
ee as default
|
|
194
198
|
};
|
|
@@ -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":";;;cAmiBuC,MAAM;aAAO,MAAM;;;;;cAAnB,MAAM;aAAO,MAAM;;;AA2wB1D,wBAMG"}
|
|
@@ -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 d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8def2cd7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|