@scalar/api-client 2.3.24 → 2.3.26
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 +43 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -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 +73 -66
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +20 -20
- package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +54 -4
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +108 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +54 -4
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +54 -4
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +10 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +52 -2
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/requests.d.ts +2 -2
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts +54 -4
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +66 -55
- package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +34 -23
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
- 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 +90 -73
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +36 -36
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/index.d.ts +1 -0
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/index.js +17 -6
- package/dist/views/Request/libs/watch-mode.js +3 -3
- package/package.json +16 -16
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineComponent as _, openBlock as d, createBlock as p, withCtx as n, createVNode as t, createTextVNode as f, toDisplayString as c, createElementBlock as b, Fragment as h, renderList as q, normalizeClass as v, unref as r, createElementVNode as i, createCommentVNode as k } from "vue";
|
|
2
|
+
import { ScalarTooltip as D, ScalarIcon as x, ScalarButton as B } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as G } from "vue-router";
|
|
5
|
+
import R from "../../../components/CodeInput/CodeInput.vue.js";
|
|
6
|
+
import N from "../../../components/DataTable/DataTable.vue.js";
|
|
7
|
+
import y from "../../../components/DataTable/DataTableCell.vue.js";
|
|
8
|
+
import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
9
|
+
import w from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
10
|
+
import C from "../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
+
import { parameterIsInvalid as j, hasItemProperties as V } from "../libs/request.js";
|
|
12
|
+
import O from "./RequestTableTooltip.vue.js";
|
|
13
|
+
const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, K = ["onClick"], L = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "p-0.5"
|
|
15
|
-
},
|
|
16
|
+
}, ne = /* @__PURE__ */ _({
|
|
16
17
|
__name: "RequestTable",
|
|
17
18
|
props: {
|
|
18
19
|
items: {},
|
|
@@ -27,68 +28,68 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
27
28
|
label: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
s("updateRow", e,
|
|
33
|
-
},
|
|
31
|
+
setup(F, { emit: U }) {
|
|
32
|
+
const m = F, s = U, $ = ["", "", "36px"], g = (e, o, l) => {
|
|
33
|
+
s("updateRow", e, o, l);
|
|
34
|
+
}, S = (e) => {
|
|
34
35
|
s("uploadFile", e);
|
|
35
|
-
},
|
|
36
|
-
return (e,
|
|
36
|
+
}, z = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, T = (e) => !!(e.key || e.value);
|
|
37
|
+
return (e, o) => (d(), p(N, {
|
|
37
38
|
class: "group/table flex-1",
|
|
38
|
-
columns:
|
|
39
|
+
columns: $
|
|
39
40
|
}, {
|
|
40
41
|
default: n(() => [
|
|
41
|
-
t(
|
|
42
|
+
t(C, { class: "sr-only !block" }, {
|
|
42
43
|
default: n(() => [
|
|
43
|
-
t(
|
|
44
|
+
t(w, null, {
|
|
44
45
|
default: n(() => [
|
|
45
|
-
c(
|
|
46
|
+
f(c(e.label) + " Enabled", 1)
|
|
46
47
|
]),
|
|
47
48
|
_: 1
|
|
48
49
|
}),
|
|
49
|
-
t(
|
|
50
|
+
t(w, null, {
|
|
50
51
|
default: n(() => [
|
|
51
|
-
c(
|
|
52
|
+
f(c(e.label) + " Key", 1)
|
|
52
53
|
]),
|
|
53
54
|
_: 1
|
|
54
55
|
}),
|
|
55
|
-
t(
|
|
56
|
+
t(w, null, {
|
|
56
57
|
default: n(() => [
|
|
57
|
-
c(
|
|
58
|
+
f(c(e.label) + " Value", 1)
|
|
58
59
|
]),
|
|
59
60
|
_: 1
|
|
60
61
|
})
|
|
61
62
|
]),
|
|
62
63
|
_: 1
|
|
63
64
|
}),
|
|
64
|
-
(
|
|
65
|
+
(d(!0), b(h, null, q(e.items, (l, u) => (d(), p(C, {
|
|
65
66
|
id: l.key,
|
|
66
|
-
key:
|
|
67
|
-
class:
|
|
68
|
-
alert:
|
|
67
|
+
key: u,
|
|
68
|
+
class: v({
|
|
69
|
+
alert: r(j)(l).value,
|
|
69
70
|
error: e.invalidParams && e.invalidParams.has(l.key)
|
|
70
71
|
})
|
|
71
72
|
}, {
|
|
72
73
|
default: n(() => [
|
|
73
|
-
e.isGlobal ? (
|
|
74
|
+
e.isGlobal ? (d(), p(r(G), {
|
|
74
75
|
key: 0,
|
|
75
76
|
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
76
77
|
to: l.route ?? {}
|
|
77
78
|
}, {
|
|
78
79
|
default: n(() => [
|
|
79
|
-
|
|
80
|
-
t(
|
|
80
|
+
o[5] || (o[5] = i("span", { class: "sr-only" }, "Global", -1)),
|
|
81
|
+
t(r(D), {
|
|
81
82
|
as: "div",
|
|
82
83
|
side: "top"
|
|
83
84
|
}, {
|
|
84
85
|
trigger: n(() => [
|
|
85
|
-
t(
|
|
86
|
+
t(r(x), {
|
|
86
87
|
class: "text-c-1",
|
|
87
88
|
icon: "Globe",
|
|
88
89
|
size: "xs"
|
|
89
90
|
})
|
|
90
91
|
]),
|
|
91
|
-
content: n(() =>
|
|
92
|
+
content: n(() => o[4] || (o[4] = [
|
|
92
93
|
i("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" }, [
|
|
93
94
|
i("div", { class: "text-c-1 flex items-center" }, [
|
|
94
95
|
i("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
@@ -99,45 +100,47 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
99
100
|
})
|
|
100
101
|
]),
|
|
101
102
|
_: 2
|
|
102
|
-
}, 1032, ["to"])) : (
|
|
103
|
+
}, 1032, ["to"])) : (d(), p(P, {
|
|
103
104
|
key: 1,
|
|
104
105
|
class: "!border-r-1/2",
|
|
105
|
-
disabled:
|
|
106
|
+
disabled: m.hasCheckboxDisabled,
|
|
106
107
|
modelValue: l.enabled,
|
|
107
|
-
"onUpdate:modelValue": (
|
|
108
|
+
"onUpdate:modelValue": (a) => s("toggleRow", u, a)
|
|
108
109
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
|
|
109
|
-
t(
|
|
110
|
+
t(y, null, {
|
|
110
111
|
default: n(() => [
|
|
111
|
-
t(
|
|
112
|
+
t(R, {
|
|
112
113
|
disableCloseBrackets: "",
|
|
113
|
-
disabled:
|
|
114
|
+
disabled: m.isReadOnly,
|
|
114
115
|
disableEnter: "",
|
|
115
116
|
disableTabIndent: "",
|
|
117
|
+
lineWrapping: "",
|
|
116
118
|
envVariables: e.envVariables,
|
|
117
119
|
environment: e.environment,
|
|
118
120
|
modelValue: l.key,
|
|
119
121
|
placeholder: "Key",
|
|
120
122
|
required: !!l.required,
|
|
121
123
|
workspace: e.workspace,
|
|
122
|
-
onBlur:
|
|
123
|
-
onFocus:
|
|
124
|
-
onSelectVariable: (
|
|
125
|
-
"onUpdate:modelValue": (
|
|
124
|
+
onBlur: o[0] || (o[0] = (a) => s("inputBlur")),
|
|
125
|
+
onFocus: o[1] || (o[1] = (a) => s("inputFocus")),
|
|
126
|
+
onSelectVariable: (a) => g(u, "key", a),
|
|
127
|
+
"onUpdate:modelValue": (a) => s("updateRow", u, "key", a)
|
|
126
128
|
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
127
129
|
]),
|
|
128
130
|
_: 2
|
|
129
131
|
}, 1024),
|
|
130
|
-
t(
|
|
132
|
+
t(y, null, {
|
|
131
133
|
default: n(() => [
|
|
132
|
-
t(
|
|
133
|
-
class:
|
|
134
|
-
"pr-6":
|
|
135
|
-
|
|
134
|
+
t(R, {
|
|
135
|
+
class: v(
|
|
136
|
+
r(V)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
|
|
137
|
+
),
|
|
136
138
|
default: l.default,
|
|
137
139
|
disableCloseBrackets: "",
|
|
138
|
-
disabled:
|
|
140
|
+
disabled: m.isReadOnly,
|
|
139
141
|
disableEnter: "",
|
|
140
142
|
disableTabIndent: "",
|
|
143
|
+
lineWrapping: "",
|
|
141
144
|
enum: l.enum ?? [],
|
|
142
145
|
envVariables: e.envVariables,
|
|
143
146
|
environment: e.environment,
|
|
@@ -149,48 +152,62 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
149
152
|
placeholder: "Value",
|
|
150
153
|
type: l.type,
|
|
151
154
|
workspace: e.workspace,
|
|
152
|
-
onBlur:
|
|
153
|
-
onFocus:
|
|
154
|
-
onSelectVariable: (
|
|
155
|
-
"onUpdate:modelValue": (
|
|
155
|
+
onBlur: o[2] || (o[2] = (a) => s("inputBlur")),
|
|
156
|
+
onFocus: o[3] || (o[3] = (a) => s("inputFocus")),
|
|
157
|
+
onSelectVariable: (a) => g(u, "value", a),
|
|
158
|
+
"onUpdate:modelValue": (a) => s("updateRow", u, "value", a)
|
|
156
159
|
}, {
|
|
157
160
|
icon: n(() => [
|
|
158
|
-
|
|
161
|
+
T(l) && !l.required ? (d(), p(r(B), {
|
|
159
162
|
key: 0,
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
class: v([{
|
|
164
|
+
"-mr-0.5": r(V)(l)
|
|
165
|
+
}, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
|
|
166
|
+
size: "sm",
|
|
167
|
+
variant: "ghost",
|
|
168
|
+
onClick: (a) => s("deleteRow", u)
|
|
169
|
+
}, {
|
|
170
|
+
default: n(() => [
|
|
171
|
+
t(r(E), { class: "size-3.5" })
|
|
172
|
+
]),
|
|
173
|
+
_: 2
|
|
174
|
+
}, 1032, ["class", "onClick"])) : k("", !0),
|
|
175
|
+
r(V)(l) ? (d(), p(O, {
|
|
176
|
+
key: 1,
|
|
177
|
+
item: { ...l, default: z(l) }
|
|
178
|
+
}, null, 8, ["item"])) : k("", !0)
|
|
162
179
|
]),
|
|
163
180
|
_: 2
|
|
164
181
|
}, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
165
182
|
]),
|
|
166
183
|
_: 2
|
|
167
184
|
}, 1024),
|
|
168
|
-
e.showUploadButton ? (
|
|
185
|
+
e.showUploadButton ? (d(), p(y, {
|
|
169
186
|
key: 2,
|
|
170
187
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
171
188
|
}, {
|
|
172
189
|
default: n(() => {
|
|
173
|
-
var
|
|
190
|
+
var a;
|
|
174
191
|
return [
|
|
175
|
-
l.file ? (
|
|
176
|
-
i("div",
|
|
177
|
-
i("span", null,
|
|
192
|
+
l.file ? (d(), b(h, { key: 0 }, [
|
|
193
|
+
i("div", A, [
|
|
194
|
+
i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
|
|
178
195
|
]),
|
|
179
196
|
i("button", {
|
|
180
197
|
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",
|
|
181
198
|
type: "button",
|
|
182
|
-
onClick: (
|
|
183
|
-
}, " Delete ", 8,
|
|
184
|
-
], 64)) : (
|
|
185
|
-
t(
|
|
199
|
+
onClick: (I) => s("removeFile", u)
|
|
200
|
+
}, " Delete ", 8, K)
|
|
201
|
+
], 64)) : (d(), b("div", L, [
|
|
202
|
+
t(r(B), {
|
|
186
203
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
187
204
|
size: "sm",
|
|
188
205
|
variant: "outlined",
|
|
189
|
-
onClick: (
|
|
206
|
+
onClick: (I) => S(u)
|
|
190
207
|
}, {
|
|
191
208
|
default: n(() => [
|
|
192
|
-
|
|
193
|
-
t(
|
|
209
|
+
o[6] || (o[6] = i("span", null, "Upload File", -1)),
|
|
210
|
+
t(r(x), {
|
|
194
211
|
class: "ml-1",
|
|
195
212
|
icon: "Upload",
|
|
196
213
|
size: "xs",
|
|
@@ -203,7 +220,7 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
203
220
|
];
|
|
204
221
|
}),
|
|
205
222
|
_: 2
|
|
206
|
-
}, 1024)) :
|
|
223
|
+
}, 1024)) : k("", !0)
|
|
207
224
|
]),
|
|
208
225
|
_: 2
|
|
209
226
|
}, 1032, ["id", "class"]))), 128))
|
|
@@ -213,5 +230,5 @@ const j = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
213
230
|
}
|
|
214
231
|
});
|
|
215
232
|
export {
|
|
216
|
-
|
|
233
|
+
ne as default
|
|
217
234
|
};
|
|
@@ -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":"AAiFA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAO9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAuKrD,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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f9282a5e"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { defineComponent as u, computed as
|
|
2
|
-
import { ScalarTooltip as g
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { defineComponent as u, computed as c, openBlock as t, createBlock as n, unref as s, withCtx as m, createElementVNode as l, createElementBlock as i, toDisplayString as a, createCommentVNode as o } from "vue";
|
|
2
|
+
import { ScalarTooltip as g } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWarning as f, ScalarIconInfo as y } from "@scalar/icons";
|
|
4
|
+
import { parameterIsInvalid as p } from "../libs/request.js";
|
|
5
|
+
const h = ["aria-label", "role"], v = { 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" }, k = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "text-error-1"
|
|
7
|
-
},
|
|
8
|
+
}, b = {
|
|
8
9
|
key: 1,
|
|
9
10
|
class: "schema text-c-2 flex items-center"
|
|
10
|
-
},
|
|
11
|
+
}, _ = { key: 0 }, I = { key: 1 }, w = { key: 2 }, x = { key: 3 }, C = { key: 4 }, S = {
|
|
11
12
|
key: 2,
|
|
12
13
|
class: "text-pretty text-sm leading-snug",
|
|
13
14
|
style: { maxWidth: "16rem" }
|
|
14
|
-
},
|
|
15
|
+
}, V = /* @__PURE__ */ u({
|
|
15
16
|
__name: "RequestTableTooltip",
|
|
16
17
|
props: {
|
|
17
18
|
item: {}
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
return (e,
|
|
20
|
+
setup(d) {
|
|
21
|
+
const r = c(() => !!p(d.item).value);
|
|
22
|
+
return (e, B) => (t(), n(s(g), {
|
|
22
23
|
align: "start",
|
|
23
24
|
class: "w-full pr-px",
|
|
24
25
|
delay: 0,
|
|
25
26
|
side: "left",
|
|
26
|
-
triggerClass: "
|
|
27
|
+
triggerClass: "py-1"
|
|
27
28
|
}, {
|
|
28
|
-
trigger:
|
|
29
|
-
|
|
30
|
-
"aria-label":
|
|
31
|
-
class: "bg-b-1
|
|
32
|
-
role:
|
|
29
|
+
trigger: m(() => [
|
|
30
|
+
l("div", {
|
|
31
|
+
"aria-label": r.value ? "Input is invalid" : "More Information",
|
|
32
|
+
class: "bg-b-1 px-1 group-[.alert]:bg-transparent group-[.error]:bg-transparent",
|
|
33
|
+
role: r.value ? "alert" : "none"
|
|
33
34
|
}, [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
], 8, v)
|
|
35
|
+
r.value ? (t(), n(s(f), {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "text-orange size-3.5 brightness-[.9]"
|
|
38
|
+
})) : (t(), n(s(y), {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "text-c-2 hover:text-c-1 size-3.5"
|
|
41
|
+
}))
|
|
42
|
+
], 8, h)
|
|
43
43
|
]),
|
|
44
|
-
content:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
e.item.type ? (t(),
|
|
48
|
-
e.item.format ? (t(),
|
|
49
|
-
e.item.minimum ? (t(),
|
|
50
|
-
e.item.maximum ? (t(),
|
|
51
|
-
e.item.default ? (t(),
|
|
52
|
-
])) :
|
|
53
|
-
e.item.description && !
|
|
44
|
+
content: m(() => [
|
|
45
|
+
l("div", v, [
|
|
46
|
+
r.value ? (t(), i("div", k, a(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
|
|
47
|
+
e.item.type ? (t(), i("span", _, a(e.item.type), 1)) : o("", !0),
|
|
48
|
+
e.item.format ? (t(), i("span", I, a(e.item.format), 1)) : o("", !0),
|
|
49
|
+
e.item.minimum ? (t(), i("span", w, "min: " + a(e.item.minimum), 1)) : o("", !0),
|
|
50
|
+
e.item.maximum ? (t(), i("span", x, "max: " + a(e.item.maximum), 1)) : o("", !0),
|
|
51
|
+
e.item.default ? (t(), i("span", C, "default: " + a(e.item.default), 1)) : o("", !0)
|
|
52
|
+
])) : o("", !0),
|
|
53
|
+
e.item.description && !r.value ? (t(), i("span", S, a(e.item.description), 1)) : o("", !0)
|
|
54
54
|
])
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
@@ -58,5 +58,5 @@ const v = ["aria-label", "role"], y = { class: "w-content bg-b-1 text-xxs text-c
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
V as default
|
|
62
62
|
};
|
|
@@ -34,7 +34,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
|
|
|
34
34
|
}));
|
|
35
35
|
}, k = (o) => {
|
|
36
36
|
o != null && o.createNew && x.name === "request" && f();
|
|
37
|
-
}, w = "2.3.
|
|
37
|
+
}, w = "2.3.26";
|
|
38
38
|
return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (l(), u("div", W, [
|
|
39
39
|
s("div", {
|
|
40
40
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { formatComplexScheme as
|
|
2
|
-
import { authorizeOauth2 as i, authorizeServers as u, generateCodeChallenge as
|
|
1
|
+
import { formatComplexScheme as r, formatScheme as f, getSchemeOptions as m, getSecurityRequirements as o } from "./auth.js";
|
|
2
|
+
import { authorizeOauth2 as i, authorizeServers as u, generateCodeChallenge as c } from "./oauth2.js";
|
|
3
|
+
import { combineRenameDiffs as h, findResource as S, mutateCollectionDiff as s, mutateRequestDiff as D, mutateSecuritySchemeDiff as p, mutateServerDiff as g, mutateTagDiff as l, narrowUnionSchema as x, parseDiff as C, traverseZodSchema as R } from "./watch-mode.js";
|
|
3
4
|
export {
|
|
4
5
|
i as authorizeOauth2,
|
|
5
6
|
u as authorizeServers,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
h as combineRenameDiffs,
|
|
8
|
+
S as findResource,
|
|
9
|
+
r as formatComplexScheme,
|
|
10
|
+
f as formatScheme,
|
|
11
|
+
c as generateCodeChallenge,
|
|
9
12
|
m as getSchemeOptions,
|
|
10
|
-
|
|
13
|
+
o as getSecurityRequirements,
|
|
14
|
+
s as mutateCollectionDiff,
|
|
15
|
+
D as mutateRequestDiff,
|
|
16
|
+
p as mutateSecuritySchemeDiff,
|
|
17
|
+
g as mutateServerDiff,
|
|
18
|
+
l as mutateTagDiff,
|
|
19
|
+
x as narrowUnionSchema,
|
|
20
|
+
C as parseDiff,
|
|
21
|
+
R as traverseZodSchema
|
|
11
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { collectionSchema as M, requestSchema as V, serverSchema as q, tagSchema as S, securitySchemeSchema as Z, createExampleFromRequest as H } from "@scalar/oas-utils/entities/spec";
|
|
2
|
-
import {
|
|
2
|
+
import { schemaModel as R, isHttpMethod as j } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { getNestedValue as D } from "@scalar/object-utils/nested";
|
|
4
4
|
import x from "microdiff";
|
|
5
5
|
import { z as i } from "zod";
|
|
@@ -86,11 +86,11 @@ const G = (e, s = []) => {
|
|
|
86
86
|
value: void 0
|
|
87
87
|
};
|
|
88
88
|
const n = R(s.value, t, !1);
|
|
89
|
-
return n ? {
|
|
89
|
+
return typeof n > "u" || n === null ? null : {
|
|
90
90
|
path: a,
|
|
91
91
|
pathMinusOne: u,
|
|
92
92
|
value: n
|
|
93
|
-
}
|
|
93
|
+
};
|
|
94
94
|
}, L = (e, { activeCollection: s }, { collectionMutators: t }) => {
|
|
95
95
|
if (!s.value)
|
|
96
96
|
return !1;
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.3.
|
|
21
|
+
"version": "2.3.26",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -189,22 +189,22 @@
|
|
|
189
189
|
"whatwg-mimetype": "^4.0.0",
|
|
190
190
|
"yaml": "^2.4.5",
|
|
191
191
|
"zod": "^3.23.8",
|
|
192
|
-
"@scalar/
|
|
193
|
-
"@scalar/icons": "0.3.
|
|
194
|
-
"@scalar/import": "0.3.
|
|
195
|
-
"@scalar/
|
|
196
|
-
"@scalar/oas-utils": "0.2.134",
|
|
192
|
+
"@scalar/components": "0.13.53",
|
|
193
|
+
"@scalar/icons": "0.3.2",
|
|
194
|
+
"@scalar/import": "0.3.19",
|
|
195
|
+
"@scalar/oas-utils": "0.2.136",
|
|
197
196
|
"@scalar/object-utils": "1.1.13",
|
|
198
197
|
"@scalar/openapi-parser": "0.10.16",
|
|
199
|
-
"@scalar/openapi-types": "0.2.
|
|
200
|
-
"@scalar/postman-to-openapi": "0.2.
|
|
198
|
+
"@scalar/openapi-types": "0.2.1",
|
|
199
|
+
"@scalar/postman-to-openapi": "0.2.9",
|
|
200
|
+
"@scalar/themes": "0.10.3",
|
|
201
|
+
"@scalar/types": "0.1.11",
|
|
201
202
|
"@scalar/snippetz": "0.2.19",
|
|
202
|
-
"@scalar/
|
|
203
|
-
"@scalar/
|
|
204
|
-
"@scalar/use-
|
|
205
|
-
"@scalar/use-
|
|
206
|
-
"@scalar/
|
|
207
|
-
"@scalar/use-tooltip": "1.0.6"
|
|
203
|
+
"@scalar/use-codemirror": "0.11.98",
|
|
204
|
+
"@scalar/draggable": "0.1.11",
|
|
205
|
+
"@scalar/use-hooks": "0.1.45",
|
|
206
|
+
"@scalar/use-tooltip": "1.0.6",
|
|
207
|
+
"@scalar/use-toasts": "0.7.9"
|
|
208
208
|
},
|
|
209
209
|
"devDependencies": {
|
|
210
210
|
"@types/shell-quote": "^1.7.5",
|
|
@@ -219,8 +219,8 @@
|
|
|
219
219
|
"vite": "^5.4.10",
|
|
220
220
|
"vite-svg-loader": "^5.1.0",
|
|
221
221
|
"vitest": "^1.6.0",
|
|
222
|
-
"@scalar/
|
|
223
|
-
"@scalar/
|
|
222
|
+
"@scalar/galaxy": "0.3.1",
|
|
223
|
+
"@scalar/build-tooling": "0.1.17"
|
|
224
224
|
},
|
|
225
225
|
"scripts": {
|
|
226
226
|
"build": "scalar-build-vite",
|