@scalar/api-client 2.2.62 → 2.3.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 +46 -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/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/SectionFilter.vue.js +2 -2
- 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/style.css +1 -1
- 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/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 +17 -17
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as u, normalizeClass as d, createElementBlock as o, toDisplayString as
|
|
2
|
-
import { ScalarTooltip as
|
|
1
|
+
import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as u, normalizeClass as d, createElementBlock as o, toDisplayString as i, createCommentVNode as s } from "vue";
|
|
2
|
+
import { ScalarTooltip as f, ScalarIcon as c } from "@scalar/components";
|
|
3
3
|
import { parameterIsInvalid as n } from "../libs/request.js";
|
|
4
|
-
const g = { class: "bg-b-1 mr-
|
|
4
|
+
const g = { class: "bg-b-1 mr-1 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]: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 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-error-1"
|
|
7
7
|
}, y = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "schema text-c-2 flex items-center"
|
|
10
|
-
}, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 },
|
|
10
|
+
}, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 }, C = { key: 4 }, I = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "text-pretty text-sm leading-snug",
|
|
13
13
|
style: { maxWidth: "16rem" }
|
|
14
|
-
},
|
|
14
|
+
}, z = /* @__PURE__ */ l({
|
|
15
15
|
__name: "RequestTableTooltip",
|
|
16
16
|
props: {
|
|
17
17
|
item: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (e,
|
|
19
|
+
setup(B) {
|
|
20
|
+
return (e, N) => (t(), p(r(f), {
|
|
21
21
|
align: "start",
|
|
22
22
|
class: "w-full pr-px",
|
|
23
23
|
delay: 0,
|
|
@@ -26,7 +26,7 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
|
|
|
26
26
|
}, {
|
|
27
27
|
trigger: a(() => [
|
|
28
28
|
m("div", g, [
|
|
29
|
-
u(r(
|
|
29
|
+
u(r(c), {
|
|
30
30
|
class: d(
|
|
31
31
|
r(n)(e.item).value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
|
|
32
32
|
),
|
|
@@ -38,14 +38,14 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
|
|
|
38
38
|
]),
|
|
39
39
|
content: a(() => [
|
|
40
40
|
m("div", b, [
|
|
41
|
-
r(n)(e.item).value ? (t(), o("div", h,
|
|
42
|
-
e.item.type ? (t(), o("span", v,
|
|
43
|
-
e.item.format ? (t(), o("span", k,
|
|
44
|
-
e.item.minimum ? (t(), o("span", _, "min: " +
|
|
45
|
-
e.item.maximum ? (t(), o("span", w, "max: " +
|
|
46
|
-
e.item.default ? (t(), o("span",
|
|
47
|
-
])),
|
|
48
|
-
e.item.description && !r(n)(e.item).value ? (t(), o("span",
|
|
41
|
+
r(n)(e.item).value ? (t(), o("div", h, i(r(n)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), o("div", y, [
|
|
42
|
+
e.item.type ? (t(), o("span", v, i(e.item.type), 1)) : s("", !0),
|
|
43
|
+
e.item.format ? (t(), o("span", k, i(e.item.format), 1)) : s("", !0),
|
|
44
|
+
e.item.minimum ? (t(), o("span", _, "min: " + i(e.item.minimum), 1)) : s("", !0),
|
|
45
|
+
e.item.maximum ? (t(), o("span", w, "max: " + i(e.item.maximum), 1)) : s("", !0),
|
|
46
|
+
e.item.default ? (t(), o("span", C, "default: " + i(e.item.default), 1)) : s("", !0)
|
|
47
|
+
])) : s("", !0),
|
|
48
|
+
e.item.description && !r(n)(e.item).value ? (t(), o("span", I, i(e.item.description), 1)) : s("", !0)
|
|
49
49
|
])
|
|
50
50
|
]),
|
|
51
51
|
_: 1
|
|
@@ -53,5 +53,5 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
z as default
|
|
57
57
|
};
|
|
@@ -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.
|
|
39
|
+
}, N = "2.3.1";
|
|
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.
|
|
21
|
+
"version": "2.3.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -188,21 +188,21 @@
|
|
|
188
188
|
"whatwg-mimetype": "^4.0.0",
|
|
189
189
|
"yaml": "^2.4.5",
|
|
190
190
|
"zod": "^3.23.8",
|
|
191
|
-
"@scalar/components": "0.13.
|
|
192
|
-
"@scalar/draggable": "0.1.11",
|
|
191
|
+
"@scalar/components": "0.13.35",
|
|
193
192
|
"@scalar/icons": "0.1.3",
|
|
194
|
-
"@scalar/import": "0.
|
|
193
|
+
"@scalar/import": "0.3.0",
|
|
194
|
+
"@scalar/draggable": "0.1.11",
|
|
195
195
|
"@scalar/object-utils": "1.1.13",
|
|
196
|
-
"@scalar/oas-utils": "0.2.
|
|
196
|
+
"@scalar/oas-utils": "0.2.118",
|
|
197
197
|
"@scalar/openapi-parser": "0.10.10",
|
|
198
198
|
"@scalar/openapi-types": "0.1.9",
|
|
199
|
-
"@scalar/
|
|
199
|
+
"@scalar/themes": "0.9.77",
|
|
200
|
+
"@scalar/postman-to-openapi": "0.1.41",
|
|
200
201
|
"@scalar/snippetz": "0.2.16",
|
|
201
|
-
"@scalar/
|
|
202
|
-
"@scalar/
|
|
203
|
-
"@scalar/use-hooks": "0.1.29",
|
|
204
|
-
"@scalar/use-codemirror": "0.11.78",
|
|
202
|
+
"@scalar/types": "0.1.0",
|
|
203
|
+
"@scalar/use-hooks": "0.1.31",
|
|
205
204
|
"@scalar/use-toasts": "0.7.9",
|
|
205
|
+
"@scalar/use-codemirror": "0.11.80",
|
|
206
206
|
"@scalar/use-tooltip": "1.0.6"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|