@scalar/api-client 2.17.7 → 2.17.8
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 +25 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
- package/dist/style.css +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
- package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
- package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
- package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
- package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -4
- package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
- package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.17.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7699](https://github.com/scalar/scalar/pull/7699): feat: added ui for oauth2 credentials location
|
|
8
|
+
- [#7715](https://github.com/scalar/scalar/pull/7715): fix: remove scrollbar from buttons
|
|
9
|
+
|
|
10
|
+
#### Updated Dependencies
|
|
11
|
+
|
|
12
|
+
- **@scalar/workspace-store@0.24.5**
|
|
13
|
+
- [#7699](https://github.com/scalar/scalar/pull/7699): feat: added ui for oauth2 credentials location
|
|
14
|
+
|
|
15
|
+
- **@scalar/openapi-parser@0.23.12**
|
|
16
|
+
- [#7719](https://github.com/scalar/scalar/pull/7719): fix: self-referencing causes infinite loop in `dereference`
|
|
17
|
+
|
|
18
|
+
- **@scalar/oas-utils@0.6.15**
|
|
19
|
+
|
|
20
|
+
- **@scalar/sidebar@0.7.8**
|
|
21
|
+
|
|
22
|
+
- **@scalar/components@0.16.18**
|
|
23
|
+
|
|
24
|
+
- **@scalar/postman-to-openapi@0.3.56**
|
|
25
|
+
|
|
26
|
+
- **@scalar/use-codemirror@0.13.12**
|
|
27
|
+
|
|
3
28
|
## 2.17.7
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as m, computed as
|
|
1
|
+
import { defineComponent as m, computed as c, createBlock as p, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
|
|
2
2
|
import f from "./SidebarListElementForm.vue.js";
|
|
3
3
|
const v = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "text-c-2 text-sm leading-normal text-pretty"
|
|
6
|
-
},
|
|
6
|
+
}, k = /* @__PURE__ */ m({
|
|
7
7
|
__name: "DeleteSidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variableName: {},
|
|
@@ -11,8 +11,8 @@ const v = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "delete"],
|
|
13
13
|
setup(l, { emit: o }) {
|
|
14
|
-
const t = l, a = o, s =
|
|
15
|
-
return (n, e) => (r(),
|
|
14
|
+
const t = l, a = o, s = c(() => t.variableName.length > 18 ? t.variableName.slice(0, 18) + "…" : t.variableName);
|
|
15
|
+
return (n, e) => (r(), p(f, {
|
|
16
16
|
danger: "",
|
|
17
17
|
label: `Delete ${s.value}`,
|
|
18
18
|
onCancel: e[0] || (e[0] = (i) => a("close")),
|
|
@@ -26,5 +26,5 @@ const v = {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
k as default
|
|
30
30
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
2
|
-
import { ScalarButton as
|
|
3
|
-
import { LibraryIcon as
|
|
1
|
+
import { defineComponent as p, ref as i, createBlock as f, openBlock as v, withCtx as n, createElementVNode as m, createVNode as a, unref as s } from "vue";
|
|
2
|
+
import { ScalarButton as _, ScalarTextInput as x } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as V } from "@scalar/icons/library";
|
|
4
4
|
import b from "../../IconSelector.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import C from "./SidebarListElementForm.vue.js";
|
|
6
|
+
const S = { class: "grid grid-cols-[auto_1fr] gap-2" }, $ = { class: "flex aspect-square" }, q = /* @__PURE__ */ p({
|
|
7
7
|
__name: "EditSidebarListCollection",
|
|
8
8
|
props: {
|
|
9
9
|
name: {},
|
|
@@ -11,26 +11,26 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["close", "edit"],
|
|
13
13
|
setup(d, { emit: c }) {
|
|
14
|
-
const r = d,
|
|
15
|
-
return (
|
|
16
|
-
onCancel: e[2] || (e[2] = (t) =>
|
|
17
|
-
onSubmit: e[3] || (e[3] = (t) =>
|
|
14
|
+
const r = d, u = c, l = i(r.name), o = i(r.icon);
|
|
15
|
+
return (g, e) => (v(), f(C, {
|
|
16
|
+
onCancel: e[2] || (e[2] = (t) => u("close")),
|
|
17
|
+
onSubmit: e[3] || (e[3] = (t) => u("edit", l.value, o.value))
|
|
18
18
|
}, {
|
|
19
19
|
default: n(() => [
|
|
20
|
-
m("div",
|
|
21
|
-
m("div",
|
|
22
|
-
|
|
20
|
+
m("div", S, [
|
|
21
|
+
m("div", $, [
|
|
22
|
+
a(b, {
|
|
23
23
|
modelValue: o.value,
|
|
24
24
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
|
|
25
25
|
placement: "bottom-start"
|
|
26
26
|
}, {
|
|
27
27
|
default: n(() => [
|
|
28
|
-
|
|
28
|
+
a(s(_), {
|
|
29
29
|
class: "aspect-square h-auto px-0",
|
|
30
30
|
variant: "outlined"
|
|
31
31
|
}, {
|
|
32
32
|
default: n(() => [
|
|
33
|
-
|
|
33
|
+
a(s(V), {
|
|
34
34
|
class: "text-c-2 size-4",
|
|
35
35
|
src: o.value
|
|
36
36
|
}, null, 8, ["src"])
|
|
@@ -41,9 +41,9 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
41
41
|
_: 1
|
|
42
42
|
}, 8, ["modelValue"])
|
|
43
43
|
]),
|
|
44
|
-
|
|
45
|
-
modelValue:
|
|
46
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) =>
|
|
44
|
+
a(s(x), {
|
|
45
|
+
modelValue: l.value,
|
|
46
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.value = t),
|
|
47
47
|
autofocus: "",
|
|
48
48
|
class: "flex-1"
|
|
49
49
|
}, null, 8, ["modelValue"])
|
|
@@ -54,5 +54,5 @@ const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspec
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
q as default
|
|
58
58
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
1
|
+
import { defineComponent as a, ref as u, createBlock as i, openBlock as s, withCtx as p, createVNode as d, unref as f } from "vue";
|
|
2
2
|
import { ScalarTextInput as c } from "@scalar/components";
|
|
3
3
|
import v from "./SidebarListElementForm.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ a({
|
|
5
5
|
__name: "EditSidebarListElement",
|
|
6
6
|
props: {
|
|
7
7
|
name: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["close", "edit"],
|
|
10
10
|
setup(m, { emit: l }) {
|
|
11
|
-
const r = m, n = l, t =
|
|
12
|
-
return (x, e) => (s(),
|
|
11
|
+
const r = m, n = l, t = u(r.name);
|
|
12
|
+
return (x, e) => (s(), i(v, {
|
|
13
13
|
onCancel: e[1] || (e[1] = (o) => n("close")),
|
|
14
14
|
onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
|
|
15
15
|
}, {
|
|
16
|
-
default:
|
|
17
|
-
|
|
16
|
+
default: p(() => [
|
|
17
|
+
d(f(c), {
|
|
18
18
|
modelValue: t.value,
|
|
19
19
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value = o),
|
|
20
20
|
autofocus: ""
|
|
@@ -25,5 +25,5 @@ const C = /* @__PURE__ */ a({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
_ as default
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarListElementForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Actions/SidebarListElementForm.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA8EF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAsB/C,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,46 @@
|
|
|
1
|
-
import o from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as d, createElementBlock as u, openBlock as p, withModifiers as f, renderSlot as b, createElementVNode as c, createVNode as o, unref as a, withCtx as i, createTextVNode as r, toDisplayString as v } from "vue";
|
|
2
|
+
import { ScalarButton as s } from "@scalar/components";
|
|
3
|
+
const g = { class: "flex justify-between gap-10" }, B = /* @__PURE__ */ d({
|
|
4
|
+
__name: "SidebarListElementForm",
|
|
5
|
+
props: {
|
|
6
|
+
danger: { type: Boolean },
|
|
7
|
+
label: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["cancel", "submit"],
|
|
10
|
+
setup(S, { emit: l }) {
|
|
11
|
+
const n = l;
|
|
12
|
+
return (t, e) => (p(), u("form", {
|
|
13
|
+
class: "flex flex-col gap-4 text-base",
|
|
14
|
+
onSubmit: e[1] || (e[1] = f((m) => n("submit"), ["prevent"]))
|
|
15
|
+
}, [
|
|
16
|
+
b(t.$slots, "default"),
|
|
17
|
+
c("div", g, [
|
|
18
|
+
o(a(s), {
|
|
19
|
+
size: "sm",
|
|
20
|
+
type: "button",
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
onClick: e[0] || (e[0] = (m) => n("cancel"))
|
|
23
|
+
}, {
|
|
24
|
+
default: i(() => [...e[2] || (e[2] = [
|
|
25
|
+
r(" Cancel ", -1)
|
|
26
|
+
])]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
o(a(s), {
|
|
30
|
+
"data-testid": "sidebar-list-element-form-submit-button",
|
|
31
|
+
size: "sm",
|
|
32
|
+
type: "submit",
|
|
33
|
+
variant: t.danger ? "danger" : "solid"
|
|
34
|
+
}, {
|
|
35
|
+
default: i(() => [
|
|
36
|
+
r(v(t.label ?? "Save"), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}, 8, ["variant"])
|
|
40
|
+
])
|
|
41
|
+
], 32));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
5
44
|
export {
|
|
6
|
-
|
|
45
|
+
B as default
|
|
7
46
|
};
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ScalarButton as i } from "@scalar/components";
|
|
3
|
-
const g = { class: "flex justify-between gap-10" }, y = /* @__PURE__ */ u({
|
|
4
|
-
__name: "SidebarListElementForm",
|
|
5
|
-
props: {
|
|
6
|
-
danger: { type: Boolean },
|
|
7
|
-
label: {}
|
|
8
|
-
},
|
|
9
|
-
emits: ["cancel", "submit"],
|
|
10
|
-
setup(x, { emit: l }) {
|
|
11
|
-
const o = l;
|
|
12
|
-
return (t, e) => (p(), d("form", {
|
|
13
|
-
class: "flex flex-col gap-4 text-base",
|
|
14
|
-
onSubmit: e[1] || (e[1] = f((m) => o("submit"), ["prevent"]))
|
|
15
|
-
}, [
|
|
16
|
-
c(t.$slots, "default", {}, void 0, !0),
|
|
17
|
-
b("div", g, [
|
|
18
|
-
n(a(i), {
|
|
19
|
-
class: "flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",
|
|
20
|
-
type: "button",
|
|
21
|
-
variant: "outlined",
|
|
22
|
-
onClick: e[0] || (e[0] = (m) => o("cancel"))
|
|
23
|
-
}, {
|
|
24
|
-
default: s(() => [...e[2] || (e[2] = [
|
|
25
|
-
r(" Cancel ", -1)
|
|
26
|
-
])]),
|
|
27
|
-
_: 1
|
|
28
|
-
}),
|
|
29
|
-
n(a(i), {
|
|
30
|
-
class: "custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",
|
|
31
|
-
"data-testid": "sidebar-list-element-form-submit-button",
|
|
32
|
-
type: "submit",
|
|
33
|
-
variant: t.danger ? "danger" : "solid"
|
|
34
|
-
}, {
|
|
35
|
-
default: s(() => [
|
|
36
|
-
r(v(t.label ?? "Save"), 1)
|
|
37
|
-
]),
|
|
38
|
-
_: 1
|
|
39
|
-
}, 8, ["variant"])
|
|
40
|
-
])
|
|
41
|
-
], 32));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
1
|
+
import f from "./SidebarListElementForm.vue.js";
|
|
44
2
|
export {
|
|
45
|
-
|
|
3
|
+
f as default
|
|
46
4
|
};
|