@scalar/api-client 2.2.62 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +65 -0
- package/README.md +2 -6
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +38 -38
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +21 -21
- package/dist/components/DataTable/DataTableHeader.vue.js +9 -9
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -47
- package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableRow.vue.js +8 -8
- package/dist/components/SectionFilter.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerDropdown.vue.js +49 -38
- 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 +49 -46
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -7
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +3 -3
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +13 -14
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +18 -19
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.js +13 -14
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +20 -20
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +69 -64
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +71 -64
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +8 -7
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +21 -23
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- 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 +74 -63
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +31 -31
- 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 +120 -96
- 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 +32 -27
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as I, resolveComponent as z, openBlock as d, createBlock as p, withCtx as n, createVNode as t, createElementVNode as s, createTextVNode as w, createElementBlock as m, Fragment as f, renderList as D, normalizeClass as V, unref as i, toDisplayString as x, createCommentVNode as g } from "vue";
|
|
2
|
+
import { ScalarTooltip as E, ScalarIcon as B, ScalarButton as q } from "@scalar/components";
|
|
3
|
+
import R from "../../../components/CodeInput/CodeInput.vue.js";
|
|
4
|
+
import G from "../../../components/DataTable/DataTable.vue.js";
|
|
5
5
|
import v from "../../../components/DataTable/DataTableCell.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import P from "
|
|
10
|
-
|
|
6
|
+
import N from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
7
|
+
import k from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
8
|
+
import C from "../../../components/DataTable/DataTableRow.vue.js";
|
|
9
|
+
import { parameterIsInvalid as P, hasItemProperties as h } from "../libs/request.js";
|
|
10
|
+
import j from "./RequestTableTooltip.vue.js";
|
|
11
|
+
const L = { class: "contents" }, O = { class: "sr-only" }, A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, K = ["onClick"], H = {
|
|
11
12
|
key: 1,
|
|
12
13
|
class: "p-0.5"
|
|
13
|
-
},
|
|
14
|
+
}, oe = /* @__PURE__ */ I({
|
|
14
15
|
__name: "RequestTable",
|
|
15
16
|
props: {
|
|
16
17
|
items: {},
|
|
@@ -24,48 +25,71 @@ const j = { class: "contents" }, L = { class: "sr-only" }, N = { class: "text-c-
|
|
|
24
25
|
invalidParams: {}
|
|
25
26
|
},
|
|
26
27
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
return (
|
|
34
|
-
const
|
|
35
|
-
return
|
|
28
|
+
setup(F, { emit: U }) {
|
|
29
|
+
const b = F, r = U, S = ["", "", "36px"], y = (a, e, c) => {
|
|
30
|
+
r("updateRow", a, e, c);
|
|
31
|
+
}, _ = (a) => {
|
|
32
|
+
r("uploadFile", a);
|
|
33
|
+
}, $ = (a) => Array.isArray(a.default) && a.default.length === 1 ? a.default[0] : a.default;
|
|
34
|
+
return (a, e) => {
|
|
35
|
+
const c = z("RouterLink");
|
|
36
|
+
return d(), p(G, {
|
|
36
37
|
class: "group/table flex-1",
|
|
37
|
-
columns:
|
|
38
|
+
columns: S
|
|
38
39
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
default: n(() => [
|
|
41
|
+
t(C, { class: "sr-only !block" }, {
|
|
42
|
+
default: n(() => [
|
|
43
|
+
t(k, null, {
|
|
44
|
+
default: n(() => e[4] || (e[4] = [
|
|
45
|
+
s("span", { class: "sr-only" }, "Enabled", -1)
|
|
46
|
+
])),
|
|
47
|
+
_: 1
|
|
48
|
+
}),
|
|
49
|
+
t(k, null, {
|
|
50
|
+
default: n(() => e[5] || (e[5] = [
|
|
51
|
+
w("Key")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
}),
|
|
55
|
+
t(k, null, {
|
|
56
|
+
default: n(() => e[6] || (e[6] = [
|
|
57
|
+
w("Value")
|
|
58
|
+
])),
|
|
59
|
+
_: 1
|
|
60
|
+
})
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}),
|
|
64
|
+
(d(!0), m(f, null, D(a.items, (l, u) => (d(), p(C, {
|
|
65
|
+
id: l.key,
|
|
66
|
+
key: u,
|
|
67
|
+
class: V({
|
|
68
|
+
alert: i(P)(l).value,
|
|
69
|
+
error: a.invalidParams && a.invalidParams.has(l.key)
|
|
46
70
|
})
|
|
47
71
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
s("label",
|
|
50
|
-
|
|
72
|
+
default: n(() => [
|
|
73
|
+
s("label", L, [
|
|
74
|
+
a.isGlobal ? (d(), p(c, {
|
|
51
75
|
key: 0,
|
|
52
76
|
class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
|
|
53
|
-
to:
|
|
77
|
+
to: l.route ?? {}
|
|
54
78
|
}, {
|
|
55
|
-
default:
|
|
56
|
-
|
|
57
|
-
|
|
79
|
+
default: n(() => [
|
|
80
|
+
e[8] || (e[8] = s("span", { class: "sr-only" }, "Global", -1)),
|
|
81
|
+
t(i(E), {
|
|
58
82
|
as: "div",
|
|
59
83
|
side: "top"
|
|
60
84
|
}, {
|
|
61
|
-
trigger:
|
|
62
|
-
|
|
85
|
+
trigger: n(() => [
|
|
86
|
+
t(i(B), {
|
|
63
87
|
class: "text-c-1",
|
|
64
88
|
icon: "Globe",
|
|
65
89
|
size: "xs"
|
|
66
90
|
})
|
|
67
91
|
]),
|
|
68
|
-
content:
|
|
92
|
+
content: n(() => e[7] || (e[7] = [
|
|
69
93
|
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" }, [
|
|
70
94
|
s("div", { class: "text-c-1 flex items-center" }, [
|
|
71
95
|
s("span", { class: "text-pretty" }, " Global cookies are shared across the whole workspace. ")
|
|
@@ -76,101 +100,101 @@ const j = { class: "contents" }, L = { class: "sr-only" }, N = { class: "text-c-
|
|
|
76
100
|
})
|
|
77
101
|
]),
|
|
78
102
|
_: 2
|
|
79
|
-
}, 1032, ["to"])) : (
|
|
80
|
-
s("span",
|
|
81
|
-
|
|
103
|
+
}, 1032, ["to"])) : (d(), m(f, { key: 1 }, [
|
|
104
|
+
s("span", O, " Row " + x(l.enabled ? "Enabled" : "Disabled"), 1),
|
|
105
|
+
t(N, {
|
|
82
106
|
class: "!border-r-1/2",
|
|
83
|
-
disabled:
|
|
84
|
-
modelValue:
|
|
85
|
-
"onUpdate:modelValue": (o) =>
|
|
107
|
+
disabled: b.hasCheckboxDisabled,
|
|
108
|
+
modelValue: l.enabled,
|
|
109
|
+
"onUpdate:modelValue": (o) => r("toggleRow", u, o)
|
|
86
110
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])
|
|
87
111
|
], 64))
|
|
88
112
|
]),
|
|
89
|
-
|
|
90
|
-
default:
|
|
91
|
-
|
|
113
|
+
t(v, null, {
|
|
114
|
+
default: n(() => [
|
|
115
|
+
t(R, {
|
|
92
116
|
disableCloseBrackets: "",
|
|
93
|
-
disabled:
|
|
117
|
+
disabled: b.isReadOnly,
|
|
94
118
|
disableEnter: "",
|
|
95
119
|
disableTabIndent: "",
|
|
96
|
-
envVariables:
|
|
97
|
-
environment:
|
|
98
|
-
modelValue:
|
|
120
|
+
envVariables: a.envVariables,
|
|
121
|
+
environment: a.environment,
|
|
122
|
+
modelValue: l.key,
|
|
99
123
|
placeholder: "Key",
|
|
100
|
-
required: !!
|
|
101
|
-
workspace:
|
|
102
|
-
onBlur:
|
|
103
|
-
onFocus:
|
|
104
|
-
onSelectVariable: (o) =>
|
|
105
|
-
"onUpdate:modelValue": (o) =>
|
|
124
|
+
required: !!l.required,
|
|
125
|
+
workspace: a.workspace,
|
|
126
|
+
onBlur: e[0] || (e[0] = (o) => r("inputBlur")),
|
|
127
|
+
onFocus: e[1] || (e[1] = (o) => r("inputFocus")),
|
|
128
|
+
onSelectVariable: (o) => y(u, "key", o),
|
|
129
|
+
"onUpdate:modelValue": (o) => r("updateRow", u, "key", o)
|
|
106
130
|
}, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
107
131
|
]),
|
|
108
132
|
_: 2
|
|
109
133
|
}, 1024),
|
|
110
|
-
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
class:
|
|
114
|
-
"pr-6":
|
|
134
|
+
t(v, null, {
|
|
135
|
+
default: n(() => [
|
|
136
|
+
t(R, {
|
|
137
|
+
class: V({
|
|
138
|
+
"pr-6": i(h)(l)
|
|
115
139
|
}),
|
|
116
|
-
default:
|
|
140
|
+
default: l.default,
|
|
117
141
|
disableCloseBrackets: "",
|
|
118
|
-
disabled:
|
|
142
|
+
disabled: b.isReadOnly,
|
|
119
143
|
disableEnter: "",
|
|
120
144
|
disableTabIndent: "",
|
|
121
|
-
enum:
|
|
122
|
-
envVariables:
|
|
123
|
-
environment:
|
|
124
|
-
examples:
|
|
125
|
-
max:
|
|
126
|
-
min:
|
|
127
|
-
modelValue:
|
|
128
|
-
nullable: !!
|
|
145
|
+
enum: l.enum ?? [],
|
|
146
|
+
envVariables: a.envVariables,
|
|
147
|
+
environment: a.environment,
|
|
148
|
+
examples: l.examples ?? [],
|
|
149
|
+
max: l.maximum,
|
|
150
|
+
min: l.minimum,
|
|
151
|
+
modelValue: l.value,
|
|
152
|
+
nullable: !!l.nullable,
|
|
129
153
|
placeholder: "Value",
|
|
130
|
-
type:
|
|
131
|
-
workspace:
|
|
132
|
-
onBlur:
|
|
133
|
-
onFocus:
|
|
134
|
-
onSelectVariable: (o) =>
|
|
135
|
-
"onUpdate:modelValue": (o) =>
|
|
154
|
+
type: l.type,
|
|
155
|
+
workspace: a.workspace,
|
|
156
|
+
onBlur: e[2] || (e[2] = (o) => r("inputBlur")),
|
|
157
|
+
onFocus: e[3] || (e[3] = (o) => r("inputFocus")),
|
|
158
|
+
onSelectVariable: (o) => y(u, "value", o),
|
|
159
|
+
"onUpdate:modelValue": (o) => r("updateRow", u, "value", o)
|
|
136
160
|
}, {
|
|
137
|
-
icon:
|
|
138
|
-
|
|
161
|
+
icon: n(() => [
|
|
162
|
+
i(h)(l) ? (d(), p(j, {
|
|
139
163
|
key: 0,
|
|
140
|
-
item: { ...
|
|
141
|
-
}, null, 8, ["item"])) :
|
|
164
|
+
item: { ...l, default: $(l) }
|
|
165
|
+
}, null, 8, ["item"])) : g("", !0)
|
|
142
166
|
]),
|
|
143
167
|
_: 2
|
|
144
168
|
}, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
145
169
|
]),
|
|
146
170
|
_: 2
|
|
147
171
|
}, 1024),
|
|
148
|
-
|
|
172
|
+
a.showUploadButton ? (d(), p(v, {
|
|
149
173
|
key: 0,
|
|
150
174
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
151
175
|
}, {
|
|
152
|
-
default:
|
|
176
|
+
default: n(() => {
|
|
153
177
|
var o;
|
|
154
178
|
return [
|
|
155
|
-
|
|
156
|
-
s("div",
|
|
157
|
-
s("span", null,
|
|
179
|
+
l.file ? (d(), m(f, { key: 0 }, [
|
|
180
|
+
s("div", A, [
|
|
181
|
+
s("span", null, x((o = l.file) == null ? void 0 : o.name), 1)
|
|
158
182
|
]),
|
|
159
183
|
s("button", {
|
|
160
184
|
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",
|
|
161
185
|
type: "button",
|
|
162
|
-
onClick: (
|
|
163
|
-
}, " Delete ", 8,
|
|
164
|
-
], 64)) : (
|
|
165
|
-
|
|
186
|
+
onClick: (T) => r("removeFile", u)
|
|
187
|
+
}, " Delete ", 8, K)
|
|
188
|
+
], 64)) : (d(), m("div", H, [
|
|
189
|
+
t(i(q), {
|
|
166
190
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
167
191
|
size: "sm",
|
|
168
192
|
variant: "outlined",
|
|
169
|
-
onClick: (
|
|
193
|
+
onClick: (T) => _(u)
|
|
170
194
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
|
|
195
|
+
default: n(() => [
|
|
196
|
+
e[9] || (e[9] = s("span", null, "Upload File", -1)),
|
|
197
|
+
t(i(B), {
|
|
174
198
|
class: "ml-1",
|
|
175
199
|
icon: "UploadSimple",
|
|
176
200
|
size: "xs",
|
|
@@ -183,7 +207,7 @@ const j = { class: "contents" }, L = { class: "sr-only" }, N = { class: "text-c-
|
|
|
183
207
|
];
|
|
184
208
|
}),
|
|
185
209
|
_: 2
|
|
186
|
-
}, 1024)) :
|
|
210
|
+
}, 1024)) : g("", !0)
|
|
187
211
|
]),
|
|
188
212
|
_: 2
|
|
189
213
|
}, 1032, ["id", "class"]))), 128))
|
|
@@ -194,5 +218,5 @@ const j = { class: "contents" }, L = { class: "sr-only" }, N = { class: "text-c-
|
|
|
194
218
|
}
|
|
195
219
|
});
|
|
196
220
|
export {
|
|
197
|
-
|
|
221
|
+
oe as default
|
|
198
222
|
};
|
|
@@ -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":"AAkFA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAO9E,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,uBAAuB,CAAA;CAAE,CAAC;;AAgKrD,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-ffeb58c7"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,51 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import { parameterIsInvalid as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as u, computed as d, openBlock as t, createBlock as f, unref as n, withCtx as s, createElementVNode as m, createVNode as c, normalizeClass as b, createElementBlock as o, toDisplayString as r, createCommentVNode as i } from "vue";
|
|
2
|
+
import { ScalarTooltip as g, ScalarIcon as h } from "@scalar/components";
|
|
3
|
+
import { parameterIsInvalid as l } from "../libs/request.js";
|
|
4
|
+
const v = ["aria-label", "role"], y = { 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
5
|
key: 0,
|
|
6
6
|
class: "text-error-1"
|
|
7
|
-
},
|
|
7
|
+
}, _ = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "schema text-c-2 flex items-center"
|
|
10
|
-
},
|
|
10
|
+
}, I = { key: 0 }, w = { key: 1 }, x = { key: 2 }, C = { key: 3 }, B = { key: 4 }, N = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "text-pretty text-sm leading-snug",
|
|
13
13
|
style: { maxWidth: "16rem" }
|
|
14
|
-
},
|
|
14
|
+
}, E = /* @__PURE__ */ u({
|
|
15
15
|
__name: "RequestTableTooltip",
|
|
16
16
|
props: {
|
|
17
17
|
item: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
19
|
+
setup(p) {
|
|
20
|
+
const a = d(() => !!l(p.item).value);
|
|
21
|
+
return (e, S) => (t(), f(n(g), {
|
|
21
22
|
align: "start",
|
|
22
23
|
class: "w-full pr-px",
|
|
23
24
|
delay: 0,
|
|
24
25
|
side: "left",
|
|
25
26
|
triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 group-[.alert]:before:to-b-alert group-[.error]:before:to-b-danger 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"
|
|
26
27
|
}, {
|
|
27
|
-
trigger:
|
|
28
|
-
m("div",
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
trigger: s(() => [
|
|
29
|
+
m("div", {
|
|
30
|
+
"aria-label": a.value ? "Input is invalid" : "More Information",
|
|
31
|
+
class: "bg-b-1 mr-1 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]:bg-transparent",
|
|
32
|
+
role: a.value ? "alert" : "none"
|
|
33
|
+
}, [
|
|
34
|
+
c(n(h), {
|
|
35
|
+
class: b(
|
|
36
|
+
a.value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
|
|
32
37
|
),
|
|
33
|
-
icon:
|
|
38
|
+
icon: a.value ? "Alert" : "Info",
|
|
34
39
|
size: "sm",
|
|
35
40
|
thickness: "1.5"
|
|
36
41
|
}, null, 8, ["class", "icon"])
|
|
37
|
-
])
|
|
42
|
+
], 8, v)
|
|
38
43
|
]),
|
|
39
|
-
content:
|
|
40
|
-
m("div",
|
|
41
|
-
|
|
42
|
-
e.item.type ? (t(), o("span",
|
|
43
|
-
e.item.format ? (t(), o("span",
|
|
44
|
-
e.item.minimum ? (t(), o("span",
|
|
45
|
-
e.item.maximum ? (t(), o("span",
|
|
46
|
-
e.item.default ? (t(), o("span",
|
|
47
|
-
])),
|
|
48
|
-
e.item.description && !
|
|
44
|
+
content: s(() => [
|
|
45
|
+
m("div", y, [
|
|
46
|
+
a.value ? (t(), o("div", k, r(n(l)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), o("div", _, [
|
|
47
|
+
e.item.type ? (t(), o("span", I, r(e.item.type), 1)) : i("", !0),
|
|
48
|
+
e.item.format ? (t(), o("span", w, r(e.item.format), 1)) : i("", !0),
|
|
49
|
+
e.item.minimum ? (t(), o("span", x, "min: " + r(e.item.minimum), 1)) : i("", !0),
|
|
50
|
+
e.item.maximum ? (t(), o("span", C, "max: " + r(e.item.maximum), 1)) : i("", !0),
|
|
51
|
+
e.item.default ? (t(), o("span", B, "default: " + r(e.item.default), 1)) : i("", !0)
|
|
52
|
+
])) : i("", !0),
|
|
53
|
+
e.item.description && !a.value ? (t(), o("span", N, r(e.item.description), 1)) : i("", !0)
|
|
49
54
|
])
|
|
50
55
|
]),
|
|
51
56
|
_: 1
|
|
@@ -53,5 +58,5 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
|
|
|
53
58
|
}
|
|
54
59
|
});
|
|
55
60
|
export {
|
|
56
|
-
|
|
61
|
+
E as default
|
|
57
62
|
};
|
|
@@ -36,7 +36,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
|
|
|
36
36
|
}));
|
|
37
37
|
}, y = (s) => {
|
|
38
38
|
s != null && s.createNew && w.name === "request" && k();
|
|
39
|
-
}, N = "2.2
|
|
39
|
+
}, N = "2.3.2";
|
|
40
40
|
return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
|
|
41
41
|
o("div", {
|
|
42
42
|
class: q(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2
|
|
21
|
+
"version": "2.3.2",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -188,20 +188,20 @@
|
|
|
188
188
|
"whatwg-mimetype": "^4.0.0",
|
|
189
189
|
"yaml": "^2.4.5",
|
|
190
190
|
"zod": "^3.23.8",
|
|
191
|
-
"@scalar/components": "0.13.
|
|
191
|
+
"@scalar/components": "0.13.36",
|
|
192
192
|
"@scalar/draggable": "0.1.11",
|
|
193
|
-
"@scalar/
|
|
194
|
-
"@scalar/import": "0.2.36",
|
|
193
|
+
"@scalar/import": "0.3.1",
|
|
195
194
|
"@scalar/object-utils": "1.1.13",
|
|
196
|
-
"@scalar/
|
|
195
|
+
"@scalar/icons": "0.1.3",
|
|
196
|
+
"@scalar/oas-utils": "0.2.119",
|
|
197
197
|
"@scalar/openapi-parser": "0.10.10",
|
|
198
198
|
"@scalar/openapi-types": "0.1.9",
|
|
199
|
-
"@scalar/postman-to-openapi": "0.1.
|
|
199
|
+
"@scalar/postman-to-openapi": "0.1.42",
|
|
200
200
|
"@scalar/snippetz": "0.2.16",
|
|
201
|
-
"@scalar/themes": "0.9.
|
|
202
|
-
"@scalar/types": "0.0
|
|
203
|
-
"@scalar/use-
|
|
204
|
-
"@scalar/use-
|
|
201
|
+
"@scalar/themes": "0.9.78",
|
|
202
|
+
"@scalar/types": "0.1.0",
|
|
203
|
+
"@scalar/use-codemirror": "0.11.81",
|
|
204
|
+
"@scalar/use-hooks": "0.1.32",
|
|
205
205
|
"@scalar/use-toasts": "0.7.9",
|
|
206
206
|
"@scalar/use-tooltip": "1.0.6"
|
|
207
207
|
},
|