@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/components/CommandPalette/CommandActionInput.vue.js +1 -1
  3. package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +5 -5
  4. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +18 -18
  5. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +7 -7
  6. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  7. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +44 -5
  8. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -44
  9. package/dist/style.css +1 -1
  10. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +18 -10
  11. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  12. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +149 -126
  13. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts +20 -0
  14. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.d.ts.map +1 -0
  15. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue.js +7 -0
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +76 -0
  17. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +22 -5
  18. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +1 -1
  19. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +79 -64
  20. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +16 -8
  21. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +2 -2
  23. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
  24. package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +84 -82
  25. package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -1
  26. package/dist/v2/components/forms/ConfirmationForm.vue.js +43 -5
  27. package/dist/v2/components/forms/ConfirmationForm.vue2.js +2 -43
  28. package/dist/v2/components/modals/DeleteModal.vue.js +11 -11
  29. package/dist/v2/features/operation/Operation.vue.js +1 -1
  30. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  31. package/dist/v2/features/settings/DocumentSettings.vue.js +104 -5
  32. package/dist/v2/features/settings/DocumentSettings.vue2.js +2 -104
  33. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  34. package/dist/views/Collection/CollectionSettings.vue.js +1 -4
  35. package/dist/views/Collection/CollectionSettings.vue2.js +5 -5
  36. package/dist/views/Environment/EnvironmentColorModal.vue.js +6 -6
  37. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  38. 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
@@ -12,7 +12,7 @@ const k = ["placeholder"], E = /* @__PURE__ */ m({
12
12
  const n = s, r = i, a = c(null);
13
13
  f(
14
14
  () => h(() => {
15
- n.autofocus || a.value?.focus();
15
+ n.autofocus && a.value?.focus();
16
16
  })
17
17
  );
18
18
  const l = b({
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, computed as p, createBlock as c, openBlock as r, withCtx as d, createElementBlock as u, createCommentVNode as g, toDisplayString as b } from "vue";
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
- }, w = /* @__PURE__ */ m({
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 = p(() => t.variableName.length > 18 ? t.variableName.slice(0, 18) + "…" : t.variableName);
15
- return (n, e) => (r(), c(f, {
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
- w as default
29
+ k as default
30
30
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, ref as u, createBlock as f, openBlock as v, withCtx as n, createElementVNode as m, createVNode as l, unref as s } from "vue";
2
- import { ScalarButton as x, ScalarTextInput as V } from "@scalar/components";
3
- import { LibraryIcon as _ } from "@scalar/icons/library";
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 S from "./SidebarListElementForm.vue.js";
6
- const C = { class: "grid grid-cols-[auto_1fr] gap-2" }, g = { class: "flex aspect-square" }, $ = /* @__PURE__ */ p({
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, i = c, a = u(r.name), o = u(r.icon);
15
- return (w, e) => (v(), f(S, {
16
- onCancel: e[2] || (e[2] = (t) => i("close")),
17
- onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
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", C, [
21
- m("div", g, [
22
- l(b, {
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
- l(s(x), {
28
+ a(s(_), {
29
29
  class: "aspect-square h-auto px-0",
30
30
  variant: "outlined"
31
31
  }, {
32
32
  default: n(() => [
33
- l(s(_), {
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
- l(s(V), {
45
- modelValue: a.value,
46
- "onUpdate:modelValue": e[1] || (e[1] = (t) => a.value = 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
- $ as default
57
+ q as default
58
58
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as a, ref as i, createBlock as u, openBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
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 C = /* @__PURE__ */ a({
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 = i(r.name);
12
- return (x, e) => (s(), u(v, {
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: d(() => [
17
- p(f(c), {
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
- C as default
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":"AAkDA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAuGF,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
+ {"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 "./SidebarListElementForm.vue2.js";
2
- /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-98703c3c"]]);
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
- a as default
45
+ B as default
7
46
  };
@@ -1,46 +1,4 @@
1
- import { defineComponent as u, createElementBlock as d, openBlock as p, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as n, unref as a, withCtx as s, createTextVNode as r, toDisplayString as v } from "vue";
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
- y as default
3
+ f as default
46
4
  };