@scalar/api-client 2.3.9 → 2.3.10
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 +10 -0
- package/dist/layouts/App/create-api-client-app.d.ts +20 -7
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -14
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +4 -4
- package/dist/layouts/Web/create-api-client-web.d.ts +20 -7
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +20 -7
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +18 -20
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +14 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/store.d.ts +20 -7
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +5 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +52 -11
- package/dist/views/Collection/CollectionNavigation.vue.js +34 -34
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +2 -2
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Request/Request.vue.d.ts +2 -0
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +71 -75
- 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 +49 -46
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as
|
|
1
|
+
import { defineComponent as I, useId as L, ref as D, computed as h, openBlock as m, createBlock as N, withCtx as d, createElementVNode as i, unref as r, toDisplayString as g, createElementBlock as p, normalizeClass as z, createCommentVNode as E, createVNode as f, Fragment as k, createTextVNode as x } from "vue";
|
|
2
2
|
import { useModal as K, ScalarComboboxMultiselect as W, ScalarButton as F, ScalarIcon as G } from "@scalar/components";
|
|
3
3
|
import { isDefined as H } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -21,17 +21,17 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
21
21
|
workspace: {}
|
|
22
22
|
},
|
|
23
23
|
setup(s) {
|
|
24
|
-
const { layout:
|
|
25
|
-
securitySchemes:
|
|
24
|
+
const { layout: q } = P(), {
|
|
25
|
+
securitySchemes: v,
|
|
26
26
|
securitySchemeMutators: O,
|
|
27
27
|
requestMutators: w,
|
|
28
28
|
collectionMutators: M
|
|
29
|
-
} = Q(), R = L(), C = D(null), y = K(),
|
|
29
|
+
} = Q(), R = L(), C = D(null), y = K(), S = D(
|
|
30
30
|
null
|
|
31
31
|
), A = h(() => {
|
|
32
32
|
const e = Z(s.operation, s.collection);
|
|
33
33
|
return { filteredRequirements: e.filter((o) => Object.keys(o).length), requirements: e };
|
|
34
|
-
}),
|
|
34
|
+
}), b = h(() => {
|
|
35
35
|
const { filteredRequirements: e, requirements: t } = A.value;
|
|
36
36
|
if (!t.length)
|
|
37
37
|
return null;
|
|
@@ -45,8 +45,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
45
45
|
}), a = h(
|
|
46
46
|
() => s.selectedSecuritySchemeUids.map((e) => {
|
|
47
47
|
if (Array.isArray(e))
|
|
48
|
-
return _(e,
|
|
49
|
-
const t =
|
|
48
|
+
return _(e, v);
|
|
49
|
+
const t = v[e ?? ""];
|
|
50
50
|
if (t)
|
|
51
51
|
return ee(t);
|
|
52
52
|
}).filter(H)
|
|
@@ -68,10 +68,10 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
68
68
|
}
|
|
69
69
|
const V = (e) => {
|
|
70
70
|
var t;
|
|
71
|
-
|
|
71
|
+
s.collection.useCollectionSecurity ? M.edit(s.collection.uid, "selectedSecuritySchemeUids", e) : (t = s.operation) != null && t.uid && w.edit(s.operation.uid, "selectedSecuritySchemeUids", e);
|
|
72
72
|
};
|
|
73
73
|
function $({ id: e, label: t }) {
|
|
74
|
-
|
|
74
|
+
S.value = { id: e, label: t }, y.show();
|
|
75
75
|
}
|
|
76
76
|
const B = (e) => {
|
|
77
77
|
var o;
|
|
@@ -88,8 +88,8 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
88
88
|
return te(
|
|
89
89
|
A.value.filteredRequirements,
|
|
90
90
|
((e = s.collection) == null ? void 0 : e.securitySchemes) ?? [],
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
v,
|
|
92
|
+
q === "modal" || s.layout === "reference"
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -103,18 +103,18 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
103
103
|
id: r(R),
|
|
104
104
|
class: "inline-flex items-center gap-1"
|
|
105
105
|
}, [
|
|
106
|
-
i("span", null,
|
|
107
|
-
|
|
106
|
+
i("span", null, g(e.title), 1),
|
|
107
|
+
b.value ? (m(), p("span", {
|
|
108
108
|
key: 0,
|
|
109
|
-
class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1":
|
|
110
|
-
},
|
|
109
|
+
class: z(["text-c-3 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }])
|
|
110
|
+
}, g(b.value.text), 3)) : E("", !0)
|
|
111
111
|
], 8, le)
|
|
112
112
|
]),
|
|
113
113
|
actions: d(() => [
|
|
114
114
|
i("div", oe, [
|
|
115
115
|
f(r(W), {
|
|
116
116
|
class: "w-72 text-xs",
|
|
117
|
-
isDeletable: r(
|
|
117
|
+
isDeletable: r(q) !== "modal" && e.layout !== "reference",
|
|
118
118
|
modelValue: a.value,
|
|
119
119
|
multiple: "",
|
|
120
120
|
options: T.value,
|
|
@@ -134,14 +134,14 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
134
134
|
var o;
|
|
135
135
|
return [
|
|
136
136
|
i("div", ne, [
|
|
137
|
-
a.value.length === 0 ? (m(), p(
|
|
137
|
+
a.value.length === 0 ? (m(), p(k, { key: 0 }, [
|
|
138
138
|
t[2] || (t[2] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
139
|
-
t[3] || (t[3] =
|
|
140
|
-
], 64)) : a.value.length === 1 ? (m(), p(
|
|
139
|
+
t[3] || (t[3] = x(" Auth Type "))
|
|
140
|
+
], 64)) : a.value.length === 1 ? (m(), p(k, { key: 1 }, [
|
|
141
141
|
t[4] || (t[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
142
|
-
|
|
143
|
-
], 64)) : (m(), p(
|
|
144
|
-
t[5] || (t[5] =
|
|
142
|
+
x(" " + g((o = a.value[0]) == null ? void 0 : o.label), 1)
|
|
143
|
+
], 64)) : (m(), p(k, { key: 2 }, [
|
|
144
|
+
t[5] || (t[5] = x(" Multiple ")),
|
|
145
145
|
t[6] || (t[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
146
146
|
], 64))
|
|
147
147
|
]),
|
|
@@ -170,12 +170,12 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
170
170
|
workspace: e.workspace
|
|
171
171
|
}, null, 8, ["collection", "envVariables", "environment", "layout", "selectedSchemeOptions", "server", "workspace"]),
|
|
172
172
|
f(X, {
|
|
173
|
-
scheme:
|
|
173
|
+
scheme: S.value,
|
|
174
174
|
state: r(y),
|
|
175
175
|
onClose: t[0] || (t[0] = (o) => r(y).hide()),
|
|
176
176
|
onDelete: t[1] || (t[1] = (o) => {
|
|
177
177
|
var n;
|
|
178
|
-
return B((n =
|
|
178
|
+
return B((n = S.value) == null ? void 0 : n.id);
|
|
179
179
|
})
|
|
180
180
|
}, null, 8, ["scheme", "state"])
|
|
181
181
|
]),
|
|
@@ -37,7 +37,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
|
|
|
37
37
|
}));
|
|
38
38
|
}, y = (s) => {
|
|
39
39
|
s != null && s.createNew && w.name === "request" && k();
|
|
40
|
-
}, N = "2.3.
|
|
40
|
+
}, N = "2.3.10";
|
|
41
41
|
return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
|
|
42
42
|
o("div", {
|
|
43
43
|
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.3.
|
|
21
|
+
"version": "2.3.10",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -190,20 +190,20 @@
|
|
|
190
190
|
"yaml": "^2.4.5",
|
|
191
191
|
"zod": "^3.23.8",
|
|
192
192
|
"@scalar/components": "0.13.41",
|
|
193
|
-
"@scalar/icons": "0.1.3",
|
|
194
193
|
"@scalar/draggable": "0.1.11",
|
|
195
|
-
"@scalar/
|
|
196
|
-
"@scalar/
|
|
197
|
-
"@scalar/object-utils": "1.1.13",
|
|
194
|
+
"@scalar/icons": "0.1.3",
|
|
195
|
+
"@scalar/import": "0.3.7",
|
|
198
196
|
"@scalar/openapi-parser": "0.10.12",
|
|
197
|
+
"@scalar/oas-utils": "0.2.124",
|
|
199
198
|
"@scalar/openapi-types": "0.1.9",
|
|
200
|
-
"@scalar/postman-to-openapi": "0.1.
|
|
199
|
+
"@scalar/postman-to-openapi": "0.1.47",
|
|
200
|
+
"@scalar/object-utils": "1.1.13",
|
|
201
201
|
"@scalar/snippetz": "0.2.18",
|
|
202
|
-
"@scalar/themes": "0.9.82",
|
|
203
202
|
"@scalar/types": "0.1.4",
|
|
204
|
-
"@scalar/use-codemirror": "0.11.86",
|
|
205
|
-
"@scalar/use-toasts": "0.7.9",
|
|
206
203
|
"@scalar/use-hooks": "0.1.36",
|
|
204
|
+
"@scalar/themes": "0.9.82",
|
|
205
|
+
"@scalar/use-toasts": "0.7.9",
|
|
206
|
+
"@scalar/use-codemirror": "0.11.86",
|
|
207
207
|
"@scalar/use-tooltip": "1.0.6"
|
|
208
208
|
},
|
|
209
209
|
"devDependencies": {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"vite-svg-loader": "^5.1.0",
|
|
221
221
|
"vitest": "^1.6.0",
|
|
222
222
|
"@scalar/build-tooling": "0.1.17",
|
|
223
|
-
"@scalar/galaxy": "0.3.
|
|
223
|
+
"@scalar/galaxy": "0.3.1"
|
|
224
224
|
},
|
|
225
225
|
"scripts": {
|
|
226
226
|
"build": "scalar-build-vite",
|