@scalar/api-client 2.2.21 → 2.2.22
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 +6 -0
- 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 +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +16 -16
- package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +2 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +19 -18
- package/dist/store/store.d.ts +5 -5
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +53 -48
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +105 -108
- package/dist/views/Request/RequestSidebar.vue.d.ts +3 -4
- 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 +160 -163
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -1
- 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 +44 -49
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +6 -6
|
@@ -1,84 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, openBlock as r, createElementBlock as u, createElementVNode as n, unref as e, createBlock as g, normalizeClass as x, createCommentVNode as i, createVNode as a } from "vue";
|
|
2
2
|
import v from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
-
import w from "../../components/
|
|
4
|
-
import h from "../../
|
|
5
|
-
import {
|
|
6
|
-
import { ScalarIcon as g } from "@scalar/components";
|
|
3
|
+
import w from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
4
|
+
import { useActiveEntities as h } from "../../store/active-entities.js";
|
|
5
|
+
import { ScalarIcon as b } from "@scalar/components";
|
|
7
6
|
import { useRouter as B } from "vue-router";
|
|
8
|
-
import
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
import { useLayout as
|
|
11
|
-
const
|
|
7
|
+
import $ from "../../components/OpenApiClientButton.vue.js";
|
|
8
|
+
import { useWorkspace as R } from "../../store/store.js";
|
|
9
|
+
import { useLayout as S } from "../../hooks/useLayout.js";
|
|
10
|
+
const z = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, A = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, E = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, D = /* @__PURE__ */ V({
|
|
12
11
|
__name: "RequestSubpageHeader",
|
|
13
12
|
props: {
|
|
14
|
-
modelValue: { type: Boolean }
|
|
15
|
-
isReadonly: { type: Boolean }
|
|
13
|
+
modelValue: { type: Boolean }
|
|
16
14
|
},
|
|
17
15
|
emits: ["update:modelValue", "hideModal", "importCurl"],
|
|
18
|
-
setup(
|
|
19
|
-
const { activeCollection:
|
|
20
|
-
return (
|
|
21
|
-
var
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class: V(["gitbook-hidden ml-1", [
|
|
26
|
-
{ hidden: e.modelValue },
|
|
27
|
-
{ "xl:!flex": !e.modelValue },
|
|
28
|
-
{ "!flex": t(d) === "modal" },
|
|
29
|
-
{ "!hidden": t(d) === "modal" && e.modelValue }
|
|
30
|
-
]]),
|
|
31
|
-
modelValue: e.modelValue,
|
|
32
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) => e.$emit("update:modelValue", l))
|
|
33
|
-
}, null, 8, ["class", "modelValue"]),
|
|
34
|
-
e.isReadonly ? s("", !0) : (n(), c(w, {
|
|
16
|
+
setup(M) {
|
|
17
|
+
const { activeCollection: s } = h(), { isReadOnly: m, hideClientButton: C, showSidebar: k } = R(), { layout: d } = S(), { currentRoute: y } = B();
|
|
18
|
+
return (t, o) => {
|
|
19
|
+
var p, f, c;
|
|
20
|
+
return r(), u("div", z, [
|
|
21
|
+
n("div", A, [
|
|
22
|
+
e(k) ? (r(), g(w, {
|
|
35
23
|
key: 0,
|
|
36
|
-
class: "
|
|
37
|
-
|
|
24
|
+
class: x(["ml-1", [
|
|
25
|
+
{ hidden: t.modelValue },
|
|
26
|
+
{ "xl:!flex": !t.modelValue },
|
|
27
|
+
{ "!flex": e(d) === "modal" },
|
|
28
|
+
{ "!hidden": e(d) === "modal" && t.modelValue }
|
|
29
|
+
]]),
|
|
30
|
+
modelValue: t.modelValue,
|
|
31
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.$emit("update:modelValue", l))
|
|
32
|
+
}, null, 8, ["class", "modelValue"])) : i("", !0)
|
|
38
33
|
]),
|
|
39
|
-
|
|
40
|
-
onImportCurl: o[1] || (o[1] = (l) =>
|
|
34
|
+
a(v, {
|
|
35
|
+
onImportCurl: o[1] || (o[1] = (l) => t.$emit("importCurl", l))
|
|
41
36
|
}),
|
|
42
|
-
|
|
43
|
-
e
|
|
37
|
+
n("div", E, [
|
|
38
|
+
e(m) && ((p = e(s)) != null && p.documentUrl) && !e(C) ? (r(), g(e($), {
|
|
44
39
|
key: 0,
|
|
45
40
|
buttonSource: "modal",
|
|
46
41
|
class: "!w-fit lg:-mr-1",
|
|
47
|
-
integration: (
|
|
48
|
-
source:
|
|
49
|
-
url: (
|
|
50
|
-
}, null, 8, ["integration", "source", "url"])) :
|
|
51
|
-
e
|
|
42
|
+
integration: (f = e(s)) == null ? void 0 : f.integration,
|
|
43
|
+
source: e(y).query.source === "gitbook" ? "gitbook" : "api-reference",
|
|
44
|
+
url: (c = e(s)) == null ? void 0 : c.documentUrl
|
|
45
|
+
}, null, 8, ["integration", "source", "url"])) : i("", !0),
|
|
46
|
+
e(m) ? (r(), u("button", {
|
|
52
47
|
key: 1,
|
|
53
48
|
class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
|
|
54
49
|
type: "button",
|
|
55
|
-
onClick: o[2] || (o[2] = (l) =>
|
|
50
|
+
onClick: o[2] || (o[2] = (l) => t.$emit("hideModal"))
|
|
56
51
|
}, [
|
|
57
|
-
|
|
52
|
+
a(e(b), {
|
|
58
53
|
icon: "Close",
|
|
59
54
|
size: "lg",
|
|
60
55
|
thickness: "2"
|
|
61
56
|
}),
|
|
62
|
-
o[4] || (o[4] =
|
|
63
|
-
])) :
|
|
64
|
-
e
|
|
57
|
+
o[4] || (o[4] = n("span", { class: "sr-only" }, "Close Client", -1))
|
|
58
|
+
])) : i("", !0),
|
|
59
|
+
e(m) ? (r(), u("button", {
|
|
65
60
|
key: 2,
|
|
66
61
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
|
|
67
62
|
type: "button",
|
|
68
|
-
onClick: o[3] || (o[3] = (l) =>
|
|
63
|
+
onClick: o[3] || (o[3] = (l) => t.$emit("hideModal"))
|
|
69
64
|
}, [
|
|
70
|
-
|
|
65
|
+
a(e(b), {
|
|
71
66
|
icon: "Close",
|
|
72
67
|
size: "md",
|
|
73
68
|
thickness: "1.75"
|
|
74
69
|
}),
|
|
75
|
-
o[5] || (o[5] =
|
|
76
|
-
])) :
|
|
70
|
+
o[5] || (o[5] = n("span", { class: "sr-only" }, "Close Client", -1))
|
|
71
|
+
])) : i("", !0)
|
|
77
72
|
])
|
|
78
73
|
]);
|
|
79
74
|
};
|
|
80
75
|
}
|
|
81
76
|
});
|
|
82
77
|
export {
|
|
83
|
-
|
|
78
|
+
D as default
|
|
84
79
|
};
|
|
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
20
|
+
}, h = "2.2.22";
|
|
21
21
|
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["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.2.22",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -171,19 +171,19 @@
|
|
|
171
171
|
"zod": "^3.23.8",
|
|
172
172
|
"@scalar/components": "0.13.10",
|
|
173
173
|
"@scalar/draggable": "0.1.8",
|
|
174
|
-
"@scalar/import": "0.2.11",
|
|
175
174
|
"@scalar/icons": "0.1.2",
|
|
175
|
+
"@scalar/oas-utils": "0.2.91",
|
|
176
176
|
"@scalar/object-utils": "1.1.12",
|
|
177
|
+
"@scalar/import": "0.2.11",
|
|
177
178
|
"@scalar/openapi-parser": "0.10.2",
|
|
178
|
-
"@scalar/oas-utils": "0.2.91",
|
|
179
179
|
"@scalar/openapi-types": "0.1.5",
|
|
180
180
|
"@scalar/postman-to-openapi": "0.1.14",
|
|
181
|
-
"@scalar/themes": "0.9.58",
|
|
182
181
|
"@scalar/types": "0.0.25",
|
|
182
|
+
"@scalar/themes": "0.9.58",
|
|
183
183
|
"@scalar/use-codemirror": "0.11.54",
|
|
184
|
+
"@scalar/use-toasts": "0.7.7",
|
|
184
185
|
"@scalar/use-hooks": "0.1.11",
|
|
185
|
-
"@scalar/use-tooltip": "1.0.4"
|
|
186
|
-
"@scalar/use-toasts": "0.7.7"
|
|
186
|
+
"@scalar/use-tooltip": "1.0.4"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@types/js-cookie": "^3.0.6",
|