@scalar/api-client 2.2.42 → 2.2.44

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 (58) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/layouts/App/create-api-client-app.d.ts +29 -29
  3. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  4. package/dist/layouts/Modal/create-api-client-modal.d.ts +58 -58
  5. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  6. package/dist/layouts/Web/create-api-client-web.d.ts +29 -29
  7. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  8. package/dist/libs/create-client.d.ts +29 -29
  9. package/dist/libs/create-client.d.ts.map +1 -1
  10. package/dist/libs/find-request.d.ts +1 -1
  11. package/dist/libs/find-request.d.ts.map +1 -1
  12. package/dist/libs/send-request/send-request.d.ts +8 -10
  13. package/dist/libs/send-request/send-request.d.ts.map +1 -1
  14. package/dist/libs/send-request/send-request.js +100 -100
  15. package/dist/store/active-entities.d.ts +5 -3
  16. package/dist/store/active-entities.d.ts.map +1 -1
  17. package/dist/store/collections.d.ts +12 -12
  18. package/dist/store/collections.d.ts.map +1 -1
  19. package/dist/store/import-spec.d.ts +2 -2
  20. package/dist/store/import-spec.d.ts.map +1 -1
  21. package/dist/store/requests.d.ts +13 -13
  22. package/dist/store/requests.d.ts.map +1 -1
  23. package/dist/store/security-schemes.d.ts.map +1 -1
  24. package/dist/store/security-schemes.js +25 -25
  25. package/dist/store/store.d.ts +29 -29
  26. package/dist/store/store.d.ts.map +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +4 -4
  29. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +5 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +60 -58
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +10 -7
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  35. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +103 -115
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +9 -1
  37. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +52 -44
  40. package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue.d.ts → RequestAuthTab.vue.d.ts} +7 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -0
  42. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +7 -0
  43. package/dist/views/Request/RequestSection/RequestAuth/{RequestExampleAuth.vue2.js → RequestAuthTab.vue2.js} +68 -62
  44. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  46. package/dist/views/Request/RequestSection/RequestBody.vue2.js +107 -97
  47. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +2 -1
  48. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  49. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  50. package/dist/views/Request/RequestSection/RequestSection.vue2.js +78 -67
  51. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  52. package/dist/views/Request/libs/auth.d.ts +22 -2
  53. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  54. package/dist/views/Request/libs/auth.js +56 -5
  55. package/dist/views/Request/libs/index.js +9 -6
  56. package/package.json +12 -12
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +0 -1
  58. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +0 -7
@@ -1,6 +1,14 @@
1
+ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
+ import type { Workspace } from '@scalar/oas-utils/entities/workspace';
1
3
  type __VLS_Props = {
2
- selectedSecuritySchemeUids: string[];
4
+ collection: Collection;
3
5
  layout: 'client' | 'reference';
6
+ selectedSchemeOptions: {
7
+ id: string;
8
+ label: string;
9
+ }[];
10
+ server: Server | undefined;
11
+ workspace: Workspace;
4
12
  };
5
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFormElement>;
6
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AA8LA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;IACpC,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;CAC/B,CAAC;;AA2MF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAQrE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA+MF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthDataTable.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f417cbbe"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b74275b0"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,74 +1,82 @@
1
- import { defineComponent as y, ref as f, computed as S, watch as x, openBlock as r, createElementBlock as o, withModifiers as k, Fragment as w, renderList as g, normalizeClass as p, createElementVNode as n, toDisplayString as _, unref as l, createCommentVNode as c, createBlock as C, withCtx as U, createVNode as v } from "vue";
1
+ import { defineComponent as b, ref as m, computed as y, watch as k, openBlock as r, createElementBlock as s, withModifiers as w, Fragment as x, renderList as S, normalizeClass as p, createElementVNode as n, toDisplayString as g, createCommentVNode as h, createBlock as C, unref as c, withCtx as _, createVNode as f } from "vue";
2
2
  import { useModal as z } from "@scalar/components";
3
- import A from "./DeleteRequestAuthModal.vue.js";
4
- import M from "./RequestExampleAuth.vue.js";
5
- import { displaySchemeFormatter as N } from "../../libs/auth.js";
6
- import $ from "../../../../components/DataTable/DataTable.vue.js";
7
- import { useWorkspace as B } from "../../../../store/store.js";
8
- const E = {
3
+ import O from "./DeleteRequestAuthModal.vue.js";
4
+ import M from "./RequestAuthTab.vue.js";
5
+ import N from "../../../../components/DataTable/DataTable.vue.js";
6
+ const $ = {
9
7
  key: 0,
10
8
  class: "border-t flex px-3 flex-wrap gap-x-2.5 overflow-hidden"
11
- }, V = ["onClick"], q = { class: "whitespace-nowrap font-medium z-10 relative" }, D = {
9
+ }, A = ["onClick"], B = { class: "whitespace-nowrap font-medium z-10 relative" }, V = {
12
10
  key: 0,
13
11
  class: "absolute bottom-[var(--scalar-border-width)] z-1 inset-x-1 h-px bg-current left-1/2 -translate-x-1/2 w-full"
14
- }, F = {
12
+ }, q = {
15
13
  key: 2,
16
14
  class: "text-c-3 px-4 text-sm border-t min-h-16 justify-center flex items-center bg-b-1"
17
- }, J = /* @__PURE__ */ y({
15
+ }, F = /* @__PURE__ */ b({
18
16
  __name: "RequestAuthDataTable",
19
17
  props: {
20
- selectedSecuritySchemeUids: {},
21
- layout: {}
18
+ collection: {},
19
+ layout: { default: "client" },
20
+ selectedSchemeOptions: { default: () => [] },
21
+ server: {},
22
+ workspace: {}
22
23
  },
23
- setup(u) {
24
- const { securitySchemes: d } = B(), m = z(), b = f(null), e = f(0), h = S(() => u.selectedSecuritySchemeUids[e.value] || null);
25
- return x(
26
- () => u.selectedSecuritySchemeUids,
27
- (t) => {
28
- t[e.value] || (e.value = Math.max(0, e.value - 1));
24
+ setup(i) {
25
+ const u = z(), v = m(null), o = m(0), d = y(() => {
26
+ const e = i.selectedSchemeOptions[o.value];
27
+ if (!e) return [];
28
+ const t = e == null ? void 0 : e.id.split(",");
29
+ return t.length > 1 ? t : [e.id];
30
+ });
31
+ return k(
32
+ () => i.selectedSchemeOptions,
33
+ (e) => {
34
+ e[o.value] || (o.value = Math.max(0, o.value - 1));
29
35
  }
30
- ), (t, s) => (r(), o("form", {
31
- onSubmit: s[1] || (s[1] = k(() => {
36
+ ), (e, t) => (r(), s("form", {
37
+ onSubmit: t[1] || (t[1] = w(() => {
32
38
  }, ["prevent"]))
33
39
  }, [
34
- t.selectedSecuritySchemeUids.length > 1 ? (r(), o("div", E, [
35
- (r(!0), o(w, null, g(t.selectedSecuritySchemeUids, (a, i) => (r(), o("div", {
36
- key: a,
37
- class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [e.value === i ? "text-c-1" : "text-c-3"]])
40
+ e.selectedSchemeOptions.length > 1 ? (r(), s("div", $, [
41
+ (r(!0), s(x, null, S(e.selectedSchemeOptions, (l, a) => (r(), s("div", {
42
+ key: l.id,
43
+ class: p(["flex relative h-8 z-1 cursor-pointer -mb-[var(--scalar-border-width)]", [o.value === a ? "text-c-1" : "text-c-3"]])
38
44
  }, [
39
45
  n("button", {
40
46
  class: "floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium",
41
47
  type: "button",
42
- onClick: (R) => e.value = i
48
+ onClick: (D) => o.value = a
43
49
  }, [
44
- n("span", q, _(l(d)[a] ? l(N)(l(d)[a]).label : ""), 1)
45
- ], 8, V),
46
- s[2] || (s[2] = n("div", { class: "absolute bottom-0 z-0 -inset-x-96 h-[var(--scalar-border-width)] bg-border" }, null, -1)),
47
- e.value === i ? (r(), o("div", D)) : c("", !0)
50
+ n("span", B, g(l.label), 1)
51
+ ], 8, A),
52
+ t[2] || (t[2] = n("div", { class: "absolute bottom-0 z-0 -inset-x-96 h-[var(--scalar-border-width)] bg-border" }, null, -1)),
53
+ o.value === a ? (r(), s("div", V)) : h("", !0)
48
54
  ], 2))), 128))
49
- ])) : c("", !0),
50
- h.value ? (r(), C(l($), {
55
+ ])) : h("", !0),
56
+ d.value.length ? (r(), C(c(N), {
51
57
  key: 1,
52
- class: p(["flex-1", t.layout === "reference" && "border-0"]),
58
+ class: p(["flex-1", e.layout === "reference" && "border-0"]),
53
59
  columns: [""]
54
60
  }, {
55
- default: U(() => [
56
- v(M, {
57
- layout: t.layout,
58
- selectedSecuritySchemeUids: [h.value]
59
- }, null, 8, ["layout", "selectedSecuritySchemeUids"])
61
+ default: _(() => [
62
+ f(M, {
63
+ collection: e.collection,
64
+ layout: e.layout,
65
+ securitySchemeUids: d.value,
66
+ server: e.server,
67
+ workspace: e.workspace
68
+ }, null, 8, ["collection", "layout", "securitySchemeUids", "server", "workspace"])
60
69
  ]),
61
70
  _: 1
62
- }, 8, ["class"])) : c("", !0),
63
- t.selectedSecuritySchemeUids.length ? c("", !0) : (r(), o("div", F, " No authentication selected ")),
64
- v(A, {
65
- scheme: b.value,
66
- state: l(m),
67
- onClose: s[0] || (s[0] = (a) => l(m).hide())
71
+ }, 8, ["class"])) : (r(), s("div", q, " No authentication selected ")),
72
+ f(O, {
73
+ scheme: v.value,
74
+ state: c(u),
75
+ onClose: t[0] || (t[0] = (l) => c(u).hide())
68
76
  }, null, 8, ["scheme", "state"])
69
77
  ], 32));
70
78
  }
71
79
  });
72
80
  export {
73
- J as default
81
+ F as default
74
82
  };
@@ -1,7 +1,12 @@
1
+ import type { Workspace } from '@scalar/oas-utils/entities';
2
+ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
1
3
  type __VLS_Props = {
2
- selectedSecuritySchemeUids: string[];
4
+ collection: Collection;
3
5
  layout: 'client' | 'reference';
6
+ securitySchemeUids: string[];
7
+ server: Server | undefined;
8
+ workspace: Workspace;
4
9
  };
5
10
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
11
  export default _default;
7
- //# sourceMappingURL=RequestExampleAuth.vue.d.ts.map
12
+ //# sourceMappingURL=RequestAuthTab.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAsNA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AASxC,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAgYJ,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import t from "./RequestAuthTab.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9f4fbbdb"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -1,88 +1,91 @@
1
- import { defineComponent as K, computed as F, ref as I, openBlock as a, createElementBlock as n, Fragment as i, renderList as m, createBlock as _, unref as f, normalizeClass as U, withCtx as o, createVNode as u, createTextVNode as y, toDisplayString as C, createCommentVNode as b, createElementVNode as $, capitalize as x } from "vue";
2
- import N from "./OAuth2.vue.js";
1
+ import { defineComponent as K, computed as F, ref as I, openBlock as o, createElementBlock as n, Fragment as i, renderList as w, createBlock as x, unref as s, normalizeClass as U, withCtx as r, createVNode as u, createTextVNode as y, toDisplayString as c, createCommentVNode as b, createElementVNode as C, capitalize as m } from "vue";
2
+ import { useWorkspace as N } from "../../../../store/store.js";
3
+ import j from "./OAuth2.vue.js";
3
4
  import v from "./RequestAuthDataTableInput.vue.js";
4
- import s from "../../../../components/DataTable/DataTableRow.vue.js";
5
- import j from "../../../../components/DataTable/DataTableCell.vue.js";
6
- import { useWorkspace as q } from "../../../../store/store.js";
5
+ import f from "../../../../components/DataTable/DataTableRow.vue.js";
6
+ import q from "../../../../components/DataTable/DataTableCell.vue.js";
7
7
  const R = {
8
8
  key: 0,
9
9
  class: "border-t min-h-8 flex text-sm"
10
- }, z = { class: "flex h-8 gap-2.5 px-3 max-w-full overflow-x-auto" }, E = ["onClick"], M = { class: "z-10 relative" }, P = {
10
+ }, z = { class: "flex h-8 gap-2.5 px-3 max-w-full overflow-x-auto" }, M = ["onClick"], P = { class: "z-10 relative" }, Q = {
11
11
  key: 4,
12
12
  class: "border-t text-c-3 px-4 text-sm min-h-16 justify-center flex items-center bg-b-1"
13
13
  }, G = /* @__PURE__ */ K({
14
- __name: "RequestExampleAuth",
14
+ __name: "RequestAuthTab",
15
15
  props: {
16
- selectedSecuritySchemeUids: {},
17
- layout: {}
16
+ collection: {},
17
+ layout: {},
18
+ securitySchemeUids: {},
19
+ server: {},
20
+ workspace: {}
18
21
  },
19
- setup(g) {
20
- const { securitySchemes: S, securitySchemeMutators: c } = q(), w = F(
21
- () => g.selectedSecuritySchemeUids.map((t) => ({
22
- scheme: S[t]
22
+ setup($) {
23
+ const { securitySchemes: g, securitySchemeMutators: T } = N(), _ = F(
24
+ () => $.securitySchemeUids.map((t) => ({
25
+ scheme: g[t]
23
26
  }))
24
- ), d = I(""), T = (t) => {
27
+ ), d = I(""), S = (t) => {
25
28
  if (t.type === "apiKey")
26
- return `${x(t.nameKey)}: ${t.in}`;
29
+ return `${m(t.nameKey)}: ${t.in}`;
27
30
  if (t.type === "oauth2") {
28
31
  const l = Object.values(t.flows ?? {})[0];
29
- return `${x(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
32
+ return `${m(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
30
33
  }
31
- return t.type === "http" ? `${x(t.nameKey)}: ${t.scheme}` : `${x(t.nameKey)}: ${t.type}`;
32
- }, V = (t, l, e) => c.edit(t, l, e);
33
- return (t, l) => (a(!0), n(i, null, m(w.value, ({ scheme: e }, B) => (a(), n(i, {
34
+ return t.type === "http" ? `${m(t.nameKey)}: ${t.scheme}` : `${m(t.nameKey)}: ${t.type}`;
35
+ }, V = (t, l, e) => T.edit(t, l, e);
36
+ return (t, l) => (o(!0), n(i, null, w(_.value, ({ scheme: e }, B) => (o(), n(i, {
34
37
  key: e == null ? void 0 : e.uid
35
38
  }, [
36
- w.value.length > 1 ? (a(), _(f(s), {
39
+ _.value.length > 1 ? (o(), x(s(f), {
37
40
  key: 0,
38
41
  class: U({
39
42
  "request-example-references-header": t.layout === "reference"
40
43
  })
41
44
  }, {
42
- default: o(() => [
43
- u(f(j), {
45
+ default: r(() => [
46
+ u(s(q), {
44
47
  class: U([
45
48
  "text-c-3 pl-2 font-medium flex items-center",
46
49
  t.layout === "reference" && `border-t ${B !== 0 ? "mt-2" : ""}`
47
50
  ])
48
51
  }, {
49
- default: o(() => [
50
- y(C(T(e)), 1)
52
+ default: r(() => [
53
+ y(c(S(e)), 1)
51
54
  ]),
52
55
  _: 2
53
56
  }, 1032, ["class"])
54
57
  ]),
55
58
  _: 2
56
59
  }, 1032, ["class"])) : b("", !0),
57
- (e == null ? void 0 : e.type) === "http" ? (a(), n(i, { key: 1 }, [
58
- e.scheme === "bearer" ? (a(), _(f(s), { key: 0 }, {
59
- default: o(() => [
60
+ (e == null ? void 0 : e.type) === "http" ? (o(), n(i, { key: 1 }, [
61
+ e.scheme === "bearer" ? (o(), x(s(f), { key: 0 }, {
62
+ default: r(() => [
60
63
  u(v, {
61
64
  containerClass: t.layout === "reference" && "border-t",
62
65
  modelValue: e.token,
63
66
  placeholder: "Token",
64
67
  type: "password",
65
- "onUpdate:modelValue": (r) => V(e.uid, "token", r)
68
+ "onUpdate:modelValue": (a) => V(e.uid, "token", a)
66
69
  }, {
67
- default: o(() => l[0] || (l[0] = [
70
+ default: r(() => l[0] || (l[0] = [
68
71
  y(" Bearer Token ")
69
72
  ])),
70
73
  _: 2
71
74
  }, 1032, ["containerClass", "modelValue", "onUpdate:modelValue"])
72
75
  ]),
73
76
  _: 2
74
- }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (a(), n(i, { key: 1 }, [
75
- u(f(s), null, {
76
- default: o(() => [
77
+ }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(i, { key: 1 }, [
78
+ u(s(f), null, {
79
+ default: r(() => [
77
80
  u(v, {
78
81
  class: "text-c-2",
79
82
  containerClass: t.layout === "reference" && "auth-blend-required border-t",
80
83
  modelValue: e.username,
81
84
  placeholder: "janedoe",
82
85
  required: "",
83
- "onUpdate:modelValue": (r) => V(e.uid, "username", r)
86
+ "onUpdate:modelValue": (a) => V(e.uid, "username", a)
84
87
  }, {
85
- default: o(() => l[1] || (l[1] = [
88
+ default: r(() => l[1] || (l[1] = [
86
89
  y(" Username ")
87
90
  ])),
88
91
  _: 2
@@ -90,15 +93,15 @@ const R = {
90
93
  ]),
91
94
  _: 2
92
95
  }, 1024),
93
- u(f(s), null, {
94
- default: o(() => [
96
+ u(s(f), null, {
97
+ default: r(() => [
95
98
  u(v, {
96
99
  modelValue: e.password,
97
100
  placeholder: "********",
98
101
  type: "password",
99
- "onUpdate:modelValue": (r) => V(e.uid, "password", r)
102
+ "onUpdate:modelValue": (a) => V(e.uid, "password", a)
100
103
  }, {
101
- default: o(() => l[2] || (l[2] = [
104
+ default: r(() => l[2] || (l[2] = [
102
105
  y(" Password ")
103
106
  ])),
104
107
  _: 2
@@ -107,16 +110,16 @@ const R = {
107
110
  _: 2
108
111
  }, 1024)
109
112
  ], 64)) : b("", !0)
110
- ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (a(), n(i, { key: 2 }, [
111
- u(f(s), null, {
112
- default: o(() => [
113
+ ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(i, { key: 2 }, [
114
+ u(s(f), null, {
115
+ default: r(() => [
113
116
  u(v, {
114
117
  containerClass: t.layout === "reference" && "border-t",
115
118
  modelValue: e.name,
116
119
  placeholder: "api-key",
117
- "onUpdate:modelValue": (r) => V(e.uid, "name", r)
120
+ "onUpdate:modelValue": (a) => V(e.uid, "name", a)
118
121
  }, {
119
- default: o(() => l[3] || (l[3] = [
122
+ default: r(() => l[3] || (l[3] = [
120
123
  y(" Name ")
121
124
  ])),
122
125
  _: 2
@@ -124,14 +127,14 @@ const R = {
124
127
  ]),
125
128
  _: 2
126
129
  }, 1024),
127
- u(f(s), null, {
128
- default: o(() => [
130
+ u(s(f), null, {
131
+ default: r(() => [
129
132
  u(v, {
130
133
  modelValue: e.value,
131
134
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
132
- "onUpdate:modelValue": (r) => V(e.uid, "value", r)
135
+ "onUpdate:modelValue": (a) => V(e.uid, "value", a)
133
136
  }, {
134
- default: o(() => l[4] || (l[4] = [
137
+ default: r(() => l[4] || (l[4] = [
135
138
  y(" Value ")
136
139
  ])),
137
140
  _: 2
@@ -139,35 +142,38 @@ const R = {
139
142
  ]),
140
143
  _: 2
141
144
  }, 1024)
142
- ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (a(), n(i, { key: 3 }, [
143
- u(f(s), null, {
144
- default: o(() => [
145
- Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
146
- $("div", z, [
147
- (a(!0), n(i, null, m(e == null ? void 0 : e.flows, (r, p, k) => (a(), n("button", {
145
+ ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(i, { key: 3 }, [
146
+ u(s(f), null, {
147
+ default: r(() => [
148
+ Object.keys(e.flows).length > 1 ? (o(), n("div", R, [
149
+ C("div", z, [
150
+ (o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n("button", {
148
151
  key: p,
149
152
  class: U(["floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium text-c-3", {
150
153
  "!text-c-1 !border-current border-b-[1px] !rounded-none": t.layout !== "reference" && (d.value === p || k === 0 && !d.value),
151
154
  "!text-c-1 !border-current border-b-[1px] !rounded-none opacity-100": t.layout === "reference" && (d.value === p || k === 0 && !d.value)
152
155
  }]),
153
156
  type: "button",
154
- onClick: (Q) => d.value = p
157
+ onClick: (D) => d.value = p
155
158
  }, [
156
- $("span", M, C(p), 1)
157
- ], 10, E))), 128))
159
+ C("span", P, c(p), 1)
160
+ ], 10, M))), 128))
158
161
  ])
159
162
  ])) : b("", !0)
160
163
  ]),
161
164
  _: 2
162
165
  }, 1024),
163
- (a(!0), n(i, null, m(e == null ? void 0 : e.flows, (r, p, k) => (a(), n(i, { key: p }, [
164
- d.value === p || k === 0 && !d.value ? (a(), _(N, {
166
+ (o(!0), n(i, null, w(e == null ? void 0 : e.flows, (a, p, k) => (o(), n(i, { key: p }, [
167
+ d.value === p || k === 0 && !d.value ? (o(), x(j, {
165
168
  key: 0,
166
- flow: r,
167
- scheme: e
168
- }, null, 8, ["flow", "scheme"])) : b("", !0)
169
+ collection: t.collection,
170
+ flow: a,
171
+ scheme: e,
172
+ server: t.server,
173
+ workspace: t.workspace
174
+ }, null, 8, ["collection", "flow", "scheme", "server", "workspace"])) : b("", !0)
169
175
  ], 64))), 128))
170
- ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", P, " Coming soon ")) : b("", !0)
176
+ ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", Q, " Coming soon ")) : b("", !0)
171
177
  ], 64))), 128));
172
178
  }
173
179
  });
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAymBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AA85BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAonBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAy6BF,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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a8f0448"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5f71c977"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };