@scalar/api-client 2.2.4 → 2.2.6

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 (77) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarServer.vue.js +15 -15
  4. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +1 -1
  5. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +24 -24
  7. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +2 -2
  8. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -5
  9. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  10. package/dist/components/DataTable/DataTableCheckbox.vue.js +5 -6
  11. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  12. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -8
  13. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  14. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -10
  15. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  16. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  17. package/dist/components/HttpMethod/HttpMethod.vue2.js +16 -17
  18. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  19. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +85 -84
  20. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  21. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +24 -26
  22. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +6 -0
  23. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  24. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +28 -23
  25. package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
  26. package/dist/components/OpenApiClientButton.vue.js +1 -1
  27. package/dist/components/OpenApiClientButton.vue2.js +16 -16
  28. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  29. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -6
  30. package/dist/layouts/App/create-api-client-app.d.ts +1 -0
  31. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  32. package/dist/layouts/Modal/create-api-client-modal.d.ts +2 -0
  33. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  34. package/dist/layouts/Web/create-api-client-web.d.ts +1 -0
  35. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  36. package/dist/libs/create-client.d.ts +2 -1
  37. package/dist/libs/create-client.d.ts.map +1 -1
  38. package/dist/libs/create-client.js +36 -35
  39. package/dist/store/store.d.ts +3 -1
  40. package/dist/store/store.d.ts.map +1 -1
  41. package/dist/store/store.js +47 -45
  42. package/dist/style.css +1 -1
  43. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  44. package/dist/views/Cookies/Cookies.vue2.js +18 -20
  45. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  46. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +13 -13
  47. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  48. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +20 -19
  49. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  50. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  51. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  52. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  53. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  54. package/dist/views/Request/RequestSection/RequestBody.vue2.js +12 -14
  55. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  56. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  57. package/dist/views/Request/RequestSidebar.vue2.js +60 -61
  58. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  60. package/dist/views/Request/RequestSidebarItem.vue2.js +187 -195
  61. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  62. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  63. package/dist/views/Request/RequestSubpageHeader.vue2.js +24 -28
  64. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  65. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  66. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +5 -5
  67. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  68. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  69. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -25
  70. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  71. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +41 -30
  72. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  73. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -4
  74. package/dist/views/Request/libs/oauth2.d.ts +6 -2
  75. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  76. package/dist/views/Request/libs/oauth2.js +43 -37
  77. package/package.json +13 -14
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AA0gBA,wBAMG"}
1
+ {"version":3,"file":"Cookies.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Cookies/Cookies.vue"],"names":[],"mappings":";AAwgBA,wBAMG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, computed as D, onMounted as M, onBeforeUnmount as R, openBlock as n, createBlock as O, withCtx as a, createVNode as s, unref as l, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as $, createTextVNode as k, toDisplayString as j, withDirectives as E, vShow as N } from "vue";
1
+ import { defineComponent as B, computed as D, onMounted as M, onBeforeUnmount as R, openBlock as n, createBlock as O, withCtx as a, createVNode as s, unref as l, createElementVNode as f, createElementBlock as m, Fragment as _, renderList as x, normalizeClass as $, createTextVNode as v, toDisplayString as j, withDirectives as E, vShow as N } from "vue";
2
2
  import F from "../../components/Sidebar/SidebarButton.vue.js";
3
3
  import K from "../../components/Sidebar/SidebarList.vue.js";
4
4
  import A from "../../components/Sidebar/SidebarListElement.vue.js";
@@ -12,10 +12,10 @@ import q from "./CookieRaw.vue.js";
12
12
  import { useWorkspace as G } from "../../store/store.js";
13
13
  import J from "../../components/Sidebar/Sidebar.vue.js";
14
14
  import { useSidebar as Q } from "../../hooks/useSidebar.js";
15
- const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ee = ["onClick"], te = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ B({
15
+ const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1rem_-_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, ee = ["onClick"], te = { class: "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(1.75rem_-_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative" }, xe = /* @__PURE__ */ B({
16
16
  __name: "Cookies",
17
17
  setup(oe) {
18
- const { cookies: p, cookieMutators: v, events: g } = G(), { collapsedSidebarFolders: i, toggleSidebarFolder: y } = Q(), b = T(), L = U(), C = () => {
18
+ const { cookies: p, cookieMutators: k, events: g } = G(), { collapsedSidebarFolders: i, toggleSidebarFolder: y } = Q(), b = T(), L = U(), C = () => {
19
19
  const t = Object.keys(p).length, e = P.parse({
20
20
  name: `Cookie ${t}`,
21
21
  value: "",
@@ -25,9 +25,9 @@ const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border b
25
25
  httpOnly: !1,
26
26
  sameSite: "None"
27
27
  });
28
- v.add(e), b.push(e.uid);
28
+ k.add(e), b.push(e.uid);
29
29
  }, V = (t) => {
30
- v.delete(t);
30
+ k.delete(t);
31
31
  const e = Object.values(p).filter(
32
32
  (o) => o.uid !== t
33
33
  );
@@ -70,38 +70,36 @@ const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border b
70
70
  "rotate-90": l(i)[r]
71
71
  }]),
72
72
  icon: "ChevronRight",
73
- size: "sm",
74
- thickness: "2.5"
73
+ size: "md"
75
74
  }, null, 8, ["class"]),
76
- k(" " + j(r), 1)
75
+ v(" " + j(r), 1)
77
76
  ], 8, Y),
78
77
  E(f("div", Z, [
79
- (n(!0), m(_, null, x(o, (d, c) => (n(), m("div", { key: c }, [
78
+ (n(!0), m(_, null, x(o, (d, u) => (n(), m("div", { key: u }, [
80
79
  f("button", {
81
80
  class: "flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
82
81
  type: "button",
83
- onClick: (u) => l(y)(r + c)
82
+ onClick: (c) => l(y)(r + u)
84
83
  }, [
85
84
  s(l(z), {
86
85
  class: $(["text-c-3", {
87
- "rotate-90": l(i)[r + c]
86
+ "rotate-90": l(i)[r + u]
88
87
  }]),
89
88
  icon: "ChevronRight",
90
- size: "sm",
91
- thickness: "2.5"
89
+ size: "md"
92
90
  }, null, 8, ["class"]),
93
- k(" " + j(c), 1)
91
+ v(" " + j(u), 1)
94
92
  ], 8, ee),
95
93
  E(f("div", te, [
96
- (n(!0), m(_, null, x(d, (u) => (n(), O(A, {
97
- key: u.uid,
94
+ (n(!0), m(_, null, x(d, (c) => (n(), O(A, {
95
+ key: c.uid,
98
96
  class: "cookie text-xs",
99
- variable: { name: u.name, uid: u.uid },
97
+ variable: { name: c.name, uid: c.uid },
100
98
  warningMessage: "Are you sure you want to delete this cookie?",
101
- onDelete: (re) => V(u.uid)
99
+ onDelete: (re) => V(c.uid)
102
100
  }, null, 8, ["variable", "onDelete"]))), 128))
103
101
  ], 512), [
104
- [N, w(r + c)]
102
+ [N, w(r + u)]
105
103
  ])
106
104
  ]))), 128))
107
105
  ], 512), [
@@ -119,7 +117,7 @@ const X = { class: "flex-1" }, Y = ["onClick"], Z = { class: "before:bg-border b
119
117
  hotkey: "N"
120
118
  }, {
121
119
  title: a(() => e[0] || (e[0] = [
122
- k("Add Cookie")
120
+ v("Add Cookie")
123
121
  ])),
124
122
  _: 1
125
123
  })
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAsOhD,wBAQG"}
1
+ {"version":3,"file":"EnvironmentVariableDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/EnvironmentVariableDropdown.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAKlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAIxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;IAC3D,kBAAkB,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;IAC7D,MAAM,EAAE,MAAM,CAAA;IAEd,gBAAgB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,CAAC;;gCAkEiC,IAAI,GAAG,MAAM;;;;;;;AAqOhD,wBAQG"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as z, ref as d, computed as v, onMounted as I, openBlock as s, createBlock as m, Teleport as P, createElementVNode as a, normalizeStyle as w, createElementBlock as p, Fragment as R, renderList as T, normalizeClass as j, createTextVNode as h, toDisplayString as y, unref as b, withCtx as q, createVNode as D, createCommentVNode as F } from "vue";
1
+ import { defineComponent as N, ref as d, computed as v, onMounted as I, openBlock as s, createBlock as m, Teleport as P, createElementVNode as a, normalizeStyle as h, createElementBlock as p, Fragment as R, renderList as T, normalizeClass as j, createTextVNode as w, toDisplayString as y, unref as b, withCtx as q, createVNode as D, createCommentVNode as F } from "vue";
2
2
  import { ScalarButton as K, ScalarIcon as O } from "@scalar/components";
3
3
  import { onClickOutside as L } from "@vueuse/core";
4
4
  import M from "fuse.js";
5
5
  import { parseEnvVariables as x } from "../../libs/environment-parser.js";
6
- const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ z({
6
+ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 whitespace-nowrap" }, H = { class: "w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap" }, oe = /* @__PURE__ */ N({
7
7
  __name: "EnvironmentVariableDropdown",
8
8
  props: {
9
9
  query: {},
@@ -22,17 +22,17 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
22
22
  workspace: e
23
23
  }
24
24
  }), c.value = !1;
25
- }, { push: C, currentRoute: S } = r.router, A = new M(x(r.activeEnvVariables.value), {
25
+ }, { push: C, currentRoute: S } = r.router, z = new M(x(r.activeEnvVariables.value), {
26
26
  keys: ["key", "value"]
27
27
  }), i = v(() => {
28
28
  const e = r.query;
29
29
  if (!e)
30
30
  return x(r.activeEnvVariables.value).slice(-4).filter(({ key: t, value: l }) => t !== "" || l !== "");
31
- const o = A.search(e, { limit: 10 });
31
+ const o = z.search(e, { limit: 10 });
32
32
  return o.length > 0 ? o.map((t) => t.item).filter(({ key: t, value: l }) => t !== "" || l !== "") : [];
33
33
  }), f = (e) => {
34
34
  E("select", e);
35
- }, B = (e) => e.value ? e.value.color : "#8E8E8E";
35
+ }, A = (e) => e.value ? e.value.color : "#8E8E8E";
36
36
  g({
37
37
  handleArrowKey: (e) => {
38
38
  const o = e === "up" ? -1 : 1, t = i.value.length;
@@ -47,7 +47,7 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
47
47
  }), I(() => {
48
48
  n.value = 0;
49
49
  });
50
- const N = v(() => {
50
+ const B = v(() => {
51
51
  var e, o;
52
52
  return {
53
53
  left: (((e = r.dropdownPosition) == null ? void 0 : e.left) ?? 0) + "px",
@@ -69,7 +69,7 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
69
69
  ref_key: "dropdownRef",
70
70
  ref: u,
71
71
  class: "fixed left-0 top-0 flex flex-col p-0.75 max-h-[60svh] w-56 rounded border custom-scroll",
72
- style: w(N.value)
72
+ style: h(B.value)
73
73
  }, [
74
74
  i.value.length ? (s(), p("ul", Q, [
75
75
  (s(!0), p(R, null, T(i.value, (t, l) => (s(), p("li", {
@@ -80,11 +80,11 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
80
80
  a("div", G, [
81
81
  a("span", {
82
82
  class: "h-2.5 w-2.5 min-w-2.5 rounded-full",
83
- style: w({
84
- backgroundColor: B(e.activeEnvironment)
83
+ style: h({
84
+ backgroundColor: A(e.activeEnvironment)
85
85
  })
86
86
  }, null, 4),
87
- h(" " + y(t.key), 1)
87
+ w(" " + y(t.key), 1)
88
88
  ]),
89
89
  a("span", H, y(t.value), 1)
90
90
  ], 10, $))), 128))
@@ -96,10 +96,10 @@ const Q = { key: 0 }, $ = ["onClick"], G = { class: "flex items-center gap-1.5 w
96
96
  }, {
97
97
  default: q(() => [
98
98
  D(b(O), {
99
- class: "w-2.5",
100
- icon: "Add"
99
+ icon: "Add",
100
+ size: "sm"
101
101
  }),
102
- o[0] || (o[0] = h(" Add Variable "))
102
+ o[0] || (o[0] = w(" Add Variable "))
103
103
  ]),
104
104
  _: 1
105
105
  })),
@@ -1 +1 @@
1
- {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAwOA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,iCAAiC,CAAA;AAOxC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC;;AAudF,wBAMG"}
1
+ {"version":3,"file":"OAuth2.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/OAuth2.vue"],"names":[],"mappings":"AAyOA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAE1B,MAAM,iCAAiC,CAAA;AAOxC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC;;AAwdF,wBAMG"}
@@ -1,27 +1,28 @@
1
- import { defineComponent as C, openBlock as i, createElementBlock as k, Fragment as y, createVNode as d, unref as a, withCtx as o, createTextVNode as s, createElementVNode as V, createBlock as m, createCommentVNode as f } from "vue";
2
- import { useActiveEntities as T } from "../../../../store/active-entities.js";
1
+ import { defineComponent as T, openBlock as i, createElementBlock as k, Fragment as y, createVNode as d, unref as a, withCtx as o, createTextVNode as s, createElementVNode as V, createBlock as m, createCommentVNode as f } from "vue";
2
+ import { useActiveEntities as P } from "../../../../store/active-entities.js";
3
3
  import n from "../RequestAuthDataTableInput.vue.js";
4
- import { useLoadingState as P, ScalarButton as U } from "@scalar/components";
5
- import { pkceOptions as A } from "@scalar/oas-utils/entities/spec";
6
- import { useToasts as B } from "@scalar/use-toasts";
7
- import F from "./OAuthScopesInput.vue.js";
4
+ import { useLoadingState as A, ScalarButton as U } from "@scalar/components";
5
+ import { pkceOptions as B } from "@scalar/oas-utils/entities/spec";
6
+ import { useToasts as F } from "@scalar/use-toasts";
7
+ import O from "./OAuthScopesInput.vue.js";
8
8
  import u from "../../../../components/DataTable/DataTableRow.vue.js";
9
- import { authorizeOauth2 as O } from "../../libs/oauth2.js";
10
- import { useWorkspace as E } from "../../../../store/store.js";
11
- const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8 flex items-center justify-self-end" }, X = /* @__PURE__ */ C({
9
+ import { authorizeOauth2 as E } from "../../libs/oauth2.js";
10
+ import { useWorkspace as I } from "../../../../store/store.js";
11
+ const R = { class: "h-8 flex items-center justify-self-end" }, b = { class: "h-8 flex items-center justify-self-end" }, Y = /* @__PURE__ */ T({
12
12
  __name: "OAuth2",
13
13
  props: {
14
14
  scheme: {},
15
15
  flow: {}
16
16
  },
17
17
  setup(w) {
18
- const p = P(), { toast: $ } = B(), { activeCollection: g, activeServer: S } = T(), { isReadOnly: v, securitySchemeMutators: z } = E(), r = (l, e) => z.edit(w.scheme.uid, l, e), h = async () => {
18
+ const p = A(), { toast: $ } = F(), { activeCollection: g, activeServer: v, activeWorkspace: S } = P(), { isReadOnly: z, securitySchemeMutators: h } = I(), r = (l, e) => h.edit(w.scheme.uid, l, e), C = async () => {
19
19
  var t;
20
20
  if (p.isLoading || !((t = g.value) != null && t.uid)) return;
21
21
  p.startLoading();
22
- const [l, e] = await O(
22
+ const [l, e] = await E(
23
23
  w.flow,
24
- S.value
24
+ v.value,
25
+ S.value.proxyUrl
25
26
  ).finally(() => p.stopLoading());
26
27
  e ? r(`flows.${w.flow.type}.token`, e) : (console.error(l), $((l == null ? void 0 : l.message) ?? "Failed to authorize", "error"));
27
28
  };
@@ -46,7 +47,7 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
46
47
  }),
47
48
  d(a(u), { class: "min-w-full" }, {
48
49
  default: o(() => [
49
- V("div", I, [
50
+ V("div", R, [
50
51
  d(a(U), {
51
52
  class: "p-0 py-0.5 px-2 mr-1",
52
53
  loading: a(p),
@@ -64,7 +65,7 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
64
65
  _: 1
65
66
  })
66
67
  ], 64)) : (i(), k(y, { key: 1 }, [
67
- a(v) ? f("", !0) : (i(), m(a(u), { key: 0 }, {
68
+ a(z) ? f("", !0) : (i(), m(a(u), { key: 0 }, {
68
69
  default: o(() => [
69
70
  "authorizationUrl" in l.flow ? (i(), m(n, {
70
71
  key: 0,
@@ -182,7 +183,7 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
182
183
  default: o(() => [
183
184
  d(n, {
184
185
  id: `oauth2-use-pkce-${l.scheme.uid}`,
185
- enum: a(A),
186
+ enum: a(B),
186
187
  modelValue: l.flow["x-usePkce"],
187
188
  readOnly: "",
188
189
  "onUpdate:modelValue": e[9] || (e[9] = (t) => r(
@@ -200,7 +201,7 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
200
201
  })) : f("", !0),
201
202
  Object.keys(l.flow.scopes ?? {}).length ? (i(), m(a(u), { key: 5 }, {
202
203
  default: o(() => [
203
- d(F, {
204
+ d(O, {
204
205
  flow: l.flow,
205
206
  updateScheme: r
206
207
  }, null, 8, ["flow"])
@@ -209,13 +210,13 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
209
210
  })) : f("", !0),
210
211
  d(a(u), { class: "min-w-full" }, {
211
212
  default: o(() => [
212
- V("div", R, [
213
+ V("div", b, [
213
214
  d(a(U), {
214
215
  class: "p-0 py-0.5 px-2 mr-1",
215
216
  loading: a(p),
216
217
  size: "sm",
217
218
  variant: "outlined",
218
- onClick: h
219
+ onClick: C
219
220
  }, {
220
221
  default: o(() => e[20] || (e[20] = [
221
222
  s(" Authorize ")
@@ -230,5 +231,5 @@ const I = { class: "h-8 flex items-center justify-self-end" }, R = { class: "h-8
230
231
  }
231
232
  });
232
233
  export {
233
- X as default
234
+ Y as default
234
235
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA8YA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAkgBF,wBAOG"}
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA8YA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAggBF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fb32077d"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-77ffb391"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -177,9 +177,9 @@ const ae = { class: "flex flex-1 gap-1 items-center justify-between" }, ue = {
177
177
  t[2] || (t[2] = a("div", { class: "fade-right" }, null, -1))
178
178
  ])) : (m(), p("div", fe, " None ")),
179
179
  c(i(B), {
180
- class: "min-w-3 ml-auto mr-2.5",
180
+ class: "mr-[9px]",
181
181
  icon: "ChevronDown",
182
- size: "xs"
182
+ size: "md"
183
183
  })
184
184
  ]),
185
185
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AA+kBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA+3BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AA6kBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA+3BF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1876b784"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9187b053"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as Z, computed as b, ref as I, watch as W, openBlock as f, createBlock as h, withCtx as d, createTextVNode as z, toDisplayString as k, createVNode as s, unref as u, createElementVNode as w, createCommentVNode as ee, createElementBlock as U, Fragment as ae, nextTick as te } from "vue";
1
+ import { defineComponent as Z, computed as b, ref as I, watch as W, openBlock as f, createBlock as h, withCtx as d, createTextVNode as z, toDisplayString as F, createVNode as s, unref as u, createElementVNode as w, createCommentVNode as ee, createElementBlock as U, Fragment as ae, nextTick as te } from "vue";
2
2
  import oe from "../../../components/CodeInput/CodeInput.vue.js";
3
3
  import ne from "../../../components/DataTable/DataTable.vue.js";
4
4
  import le from "../../../components/DataTable/DataTableHeader.vue.js";
5
5
  import T from "../../../components/DataTable/DataTableRow.vue.js";
6
6
  import re from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { useActiveEntities as ie } from "../../../store/active-entities.js";
8
- import { ScalarListbox as A, ScalarButton as F, ScalarIcon as E } from "@scalar/components";
8
+ import { ScalarListbox as A, ScalarButton as k, ScalarIcon as E } from "@scalar/components";
9
9
  import { requestExampleParametersSchema as J } from "@scalar/oas-utils/entities/spec";
10
10
  import { canMethodHaveBody as ue } from "@scalar/oas-utils/helpers";
11
11
  import $ from "./RequestTable.vue.js";
@@ -277,7 +277,7 @@ const se = {
277
277
  });
278
278
  return (e, a) => (f(), h(re, null, {
279
279
  title: d(() => [
280
- z(k(e.title), 1)
280
+ z(F(e.title), 1)
281
281
  ]),
282
282
  default: d(() => [
283
283
  s(ne, { columns: [""] }, {
@@ -293,7 +293,7 @@ const se = {
293
293
  teleport: ""
294
294
  }, {
295
295
  default: d(() => [
296
- s(u(F), {
296
+ s(u(k), {
297
297
  class: "flex gap-1.5 h-full px-2 text-c-2 font-normal hover:text-c-1 w-fit",
298
298
  fullWidth: "",
299
299
  variant: "ghost"
@@ -301,11 +301,10 @@ const se = {
301
301
  default: d(() => {
302
302
  var t;
303
303
  return [
304
- w("span", null, k((t = v.value) == null ? void 0 : t.label), 1),
304
+ w("span", null, F((t = v.value) == null ? void 0 : t.label), 1),
305
305
  s(u(E), {
306
306
  icon: "ChevronDown",
307
- size: "xs",
308
- thickness: "2.5"
307
+ size: "md"
309
308
  })
310
309
  ];
311
310
  }),
@@ -323,7 +322,7 @@ const se = {
323
322
  teleport: ""
324
323
  }, {
325
324
  default: d(() => [
326
- s(u(F), {
325
+ s(u(k), {
327
326
  class: "flex gap-1.5 h-full px-2 text-c-2 font-normal hover:text-c-1 w-fit",
328
327
  fullWidth: "",
329
328
  variant: "ghost"
@@ -331,11 +330,10 @@ const se = {
331
330
  default: d(() => {
332
331
  var t;
333
332
  return [
334
- w("span", null, k((t = _.value) == null ? void 0 : t.label), 1),
333
+ w("span", null, F((t = _.value) == null ? void 0 : t.label), 1),
335
334
  s(u(E), {
336
335
  icon: "ChevronDown",
337
- size: "xs",
338
- thickness: "2.5"
336
+ size: "md"
339
337
  })
340
338
  ];
341
339
  }),
@@ -358,8 +356,8 @@ const se = {
358
356
  w("span", null, "No Body", -1)
359
357
  ]))) : v.value.id === "binaryFile" ? (f(), U("div", ce, [
360
358
  (t = u(o)) != null && t.body.binary ? (f(), U(ae, { key: 0 }, [
361
- w("span", me, k(((l = u(o)) == null ? void 0 : l.body.binary).name), 1),
362
- s(u(F), {
359
+ w("span", me, F(((l = u(o)) == null ? void 0 : l.body.binary).name), 1),
360
+ s(u(k), {
363
361
  class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 ml-1 shadow-none",
364
362
  size: "sm",
365
363
  variant: "outlined",
@@ -370,7 +368,7 @@ const se = {
370
368
  ])),
371
369
  _: 1
372
370
  })
373
- ], 64)) : (f(), h(u(F), {
371
+ ], 64)) : (f(), h(u(k), {
374
372
  key: 1,
375
373
  class: "bg-b-2 hover:bg-b-3 border-0 text-c-2 shadow-none",
376
374
  size: "sm",
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AAqaA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;cAKqC,MAAM;aAAO,MAAM;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AAioB1D,wBAOG"}
1
+ {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":"AA+ZA,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;cAKqC,MAAM;aAAO,MAAM;;;;;;cAAnB,MAAM;aAAO,MAAM;;;;AA+nB1D,wBAOG"}
@@ -1,7 +1,7 @@
1
- import o from "./RequestSidebar.vue2.js";
1
+ import e from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a96336d"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-360eb73e"]]);
5
5
  export {
6
6
  m as default
7
7
  };